* src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
[s-roff.git] / ChangeLog
blob645d7e8651652b44697a01bebb52f941103cb961
1 2004-02-21  Jeff Conrad  <jeff_conrad@msn.com>
3         * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
4         variable.
5         (sbasename) [__MSDOS__ || ...]: New function.
6         (system_shell_name) [__MSDOS__ || ...]: Use a different, more
7         generic algorithm.
8         (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
9         (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
10         of XXX.
11         Use STDOUT_FILENO instead of hardcoded file handle.
12         (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
14 2004-02-19  Werner LEMBERG  <wl@gnu.org>
16         * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
17         avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
19 2004-02-18  Werner LEMBERG  <wl@gnu.org>
21         * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
22         new font and mapping files.
24 2004-02-18  Jeff Conrad  <jeff_conrad@msn.com>
25             Keith Marshall  <keith.d.marshall@ntlworld.com>
27         * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
28         an input pipe.  This is needed for the MSVC compiler to make troff's
29         `-o' option work.
31         * src/roff/troff/div.cpp: Include nonposix.h.
32         (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
34 2004-02-17  Werner LEMBERG  <wl@gnu.org>
36         * font/devlj4/generate/special.awk: New script.
37         * font/devlj4/generate/Makefile (S): Use special.awk.
38         * font/devlj4/*: Regenerated, including the following new files:
39         Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
40         MS Symbol (SYMBOL), Wingdings (WINGDINGS).
41         * NEWS: Document new lj4 fonts and revised hpftodit.
43 2004-02-17  Paco Andrés Verdú  <pandres@dragonet.es>
45         * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
47 2004-01-25  Werner LEMBERG  <wl@gnu.org>
49         * src/libs/libgroff/progname.cpp: Replaced with...
50         * src/libs/libgroff/progname.c: New file.
51         * src/libs/libgroff/Makefile.sub: Updated accordingly.
53 2004-01-17  Werner LEMBERG  <wl@gnu.org>
55         * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
57 2004-01-16  Jeff Conrad  <jeff_conrad@msn.com>
59         * font/devlj4/generate/wingdings.map,
60         font/devlj4/generate/symbol.map: Include unnamed glyphs.
61         Use groff glyph names where possible.
62         * src/devices/grolj4/lj4_font.man: Minor updates.
64 2004-01-13  Werner LEMBERG  <wl@gnu.org>
66         * tmac/www.tmac (DC): Handle TTY devices.
68         * doc/webpage.ms: Document viewCVS from ffii.org.
69         * NEWS, README: Updated.
71         * src/roff/groff/groff.man: Mention lj4_font man page.
73         * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
74         variables.
75         (FONTS): Add SYMBOL and WINGDINGS.
76         (SYMBOL, WINGDINGS): New targets.
78 2004-01-13  Jeff Conrad  <jeff_conrad@msn.com>
80         * src/devices/grolj4/lj4_font.man: New man page.
81         * src/devices/grolj4/Makefile.sub (MAN5): New variable.
82         * src/devices/grolj4.man: Mention lj4_font man page.
84         * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
85         * src/utils/hpftodit/hpftodit.man: Document it.
86         (CW): New macro.
87         Remove details about fonts (which are now in lj4_font.man).
89         * font/devlj4/generate/symbol.map,
90         font/devlj4/generate/wingdings.map: New files.
92 2004-01-12  Werner LEMBERG  <wl@gnu.org>
94         * README: Mention ffii's viewcvs access.
96 2004-01-09  Werner LEMBERG  <wl@gnu.org>
98         * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
100 2004-01-09  Jeff Conrad  <jeff_conrad@msn.com>
102         Revert most of the change from 2004-01-03 to better control used
103         symbol sets.
105         * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
106         (text_symbol_sets, special_symbol_sets): New arrays.
107         (symbol_set_table): New global variable.
108         (read_symbol_sets): Use search order given in the text_symbol_sets
109         and special_symbol_sets arrays.  If command line flag -a is not
110         given, search both arrays.
111         (output_charset): Require x_height_tag only for command line flag -i.
113 2004-01-06  Werner LEMBERG  <wl@gnu.org>
115         Implement string-valued registers \n[.m] and \n[.M] to return the
116         name of the current drawing and background color, respectively.
118         * src/roff/troff/symbol.h: Moved to...
119         * src/include/symbol.h: Here.
120         Small fixes to make it work outside of the `troff' directory.
121         * src/roff/troff/symbol.cpp: Moved to...
122         * src/libs/libgroff/symbol.cpp: Here.
123         Small fixes to make it work outside of the `troff' directory.
125         * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
126         (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
127         Updated.
129         * src/include/color.h: Include symbol.h.
130         (color): Add new field `nm'.
131         * src/libs/libgroff/color.cpp (color::color): Updated.
133         * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
134         src/roff/troff/node.cpp, src/roff/troff/number.cpp,
135         src/roff/troff/reg.cpp: Don't include symbol.h.
137         * src/roff/troff/env.cpp: Don't include symbol.h.
138         (environment::get_glyph_color_string,
139         environment_get_fill_color_string): New member functions.
140         (init_env_requests): Handle `.m' and `.M' registers.
141         * src/roff/troff/input.cpp: Don't include symbol.h.
142         (default_symbol): Moved to symbol.cpp/symbol.h.
143         (do_glyph_color, do_fill_color, define_color): Pass symbol name
144         to color constructor.
145         * src/roff/troff/env.h: Updated.
147         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
148         Document new registers.
150 2004-01-05  Werner LEMBERG  <wl@gnu.org>
152         * src/roff/troff/nroff.cpp (space_node::get_breakpoints,
153         space_node::nbreaks): Protect against zero `next' field.
155 2004-01-03  Jeff Conrad  <jeff_conrad@msn.com>
157         In hpftodit, use the symbol sets offered in the TFM.
159         * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
160         (symbol_set, text_symbol_sets, special_symbol_sets,
161         symbol_set_table): Removed.
162         (get_printcode): Removed.
163         (read_symbol_sets): Initialize `symbol_set' field with
164         `NO_SYMBOL_SET'.
165         Simplify code to just use the `kind' value.
166         (output_charset): Improve output formatting.
167         (dump_symbols): Simplified.
169 2004-01-02  Werner LEMBERG  <wl@gnu.org>
171         * font/devlj4/generate/text.map: Add more MSL numbers.
173 2004-01-02  Jeff Conrad  <jeff_conrad@msn.com>
175         * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
176         (text_symbol_sets): Add more symbol sets.
177         (debug_flag): New static variable (moved from `main').
178         (get_printcode, show_symset): New functions.
179         (main): Remove `debug_flag'.
180         (output_charset): Use `show_symset'.
181         (dump_symbols):  Use `show_symset'.
182         Print symsets for all glyphs.
183         (read_map): Actually call `unicode_to_ucode_make' but this time
184         correctly.
186 2004-01-01  Werner LEMBERG  <wl@gnu.org>
188         * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
189         Fix placement of comments.
191 2004-01-01  Jeff Conrad  <jeff_conrad@msn.com>
193         * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
194         option `-d' is given.
195         (output_charset): Improve warning messages to give more information.
196         (dump_symbols): Make information more precise.
197         (usage): Updated.
198         (read_map): Don't call unicode_to_ucode_name; the glyph names must
199         appear as-is and shouldn't be decomposed.
201 2003-12-31  Werner LEMBERG  <wl@gnu.org>
203         * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
204         * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
205         (FONTS): Add TrueType font families Arial and Times New Roman.
206         (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
207         * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
208         `fl'.
210 2003-12-31  Jeff Conrad  <jeff_conrad@msn.com>
212         * test-groff.in (SEP): Quote value.
213         * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
214         `tem' to `char*' to avoid deallocation of a pointer to a constant
215         object which some compilers don't like.
217 2003-12-31  Werner LEMBERG  <wl@gnu.org>
219         * font/devlj4/generate (text.map, special.map): Rewritten to work
220         with the new hpftodit version.
222 2003-12-30  Jeff Conrad  <jeff_conrad@msn.com>
224         * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
225         set and 8bit character code for all glyphs also.
227 2003-12-30  Werner LEMBERG  <wl@gnu.org>
229         * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
231 2003-12-29  Werner LEMBERG  <wl@gnu.org>
233         More fixes for MSVC compiler.
235         * doc/Makefile.sub, contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use
236         $(SEP).
238         * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
239         STDERR_FILENO) [_MSC_VER]: Define conditionally.
240         (getpid) [_MSC_VER]: Remove.
241         Include direct.h and process.h conditionally.
243         * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
244         parentheses for a_delete.
246         * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
248         * test-groff: Replaced with...
249         * test-groff.in: This new template to handle path separator
250         properly.
252         * configure.ac: Check for direct.h and process.h.
253         Generate test-groff script.
254         * configure, src/include/config.hin: Regenerated.
256 2003-12-28  Werner LEMBERG  <wl@gnu.org>
258         Add integral extension glyph.
259         Add new option `-x' to afmtodit to suppress use of built-in AGL.
261         * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
263         * font/devps/generate/textmap: Provide entry for `integralex' to
264         override (old) PUA value of the AGL.
265         * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
266         * font/devps/*: Regenerated.
268         * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
269         * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
271 2003-12-27  Werner LEMBERG  <wl@gnu.org>
273         Add forgotten `coproduct' symbol (already available for DVI).
275         * font/devhtml/R.proto, font/devps/generate/textmap,
276         font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
277         src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
278         U+2210 (\[coproduct]).
280 2003-12-26  Jeff Conrad  <jeff_conrad@msn.com>
282         hpftodit has been extended to handle TrueType metric files and
283         more glyphs.  See hpftodit.man for more details.
285         * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h, 
286         ctype.h, and unicode.h.
287         s/msl/charcode/ everywhere since we now handle Unicode values also.
288         (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
289         Use it where appropriate.
290         (MULTIPLIER): Replaced with...
291         (multiplier): New global static variable.
292         (scale): Updated.
293         (tag_type): Add more TFM tags.
294         (tag_name): New array.
295         (ENUM_TYPE, FLOAT_TYPE): Removed.
296         (BYTE_TYPE): New value assigned.
297         (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
298         (text_symbol_sets, special_symbol_sets): Extended to cover more
299         sets.
300         (check_type): Add return value.
301         (check_units): Add parameters to get ppi and upem values.
302         Handle TrueType TFM data.
303         (output_font_name): New function.
304         (output_charset): Add parameter to handle TFM type.
305         Handle TrueType TFMs also.
306         (em_fract): New macro.
307         (dump_tags): Be much more verbose and handle more tags.
308         (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
309         (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
310         functions.
311         (read_map): Add parameter to handle TFM type.
312         Handle both MSL and Unicode mappings.
313         (main): Add two new command line options `-a' and `-q'.
314         Updated to make use of new functions.
315         (usage): Updated.
317         * src/utils/hpftodit/hpuni.cpp: New file.
319         * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
320         Updated.
322 2003-12-25  Werner LEMBERG  <wl@gnu.org>
324         * src/include/nonposix.h (read) [_MSC_VER]: Define.
326 2003-12-24  Werner LEMBERG  <wl@gnu.org>
328         * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
329         by Michail Vidiassov <master@iaas.msu.ru>.
331 2003-12-20  Werner LEMBERG  <wl@gnu.org>
333         * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
334         and u0049_0307.
335         Add missing latin-2 glyphs.
336         * font/devutf8/R.proto: Add missing latin-2 glyphs.
338         * tmac/troffrc: Load `composite.tmac' earlier.
340         * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
341         u00{53,73}_0327, and u0049_0307.
342         * tmac/X.tmac: Add u00{47,67}_0306.
343         * tmac/tty-char.tmac: Use composite glyph names for readability.
345         * NEWS: Updated.
347         * src/include/unicode.h: Remove `extern' keywords.
349 2003-12-20  Nilgün Belma Bugüner  <nilgun@superonline.com>
351         * tmac/latin5.tmac: New file.
353 2003-12-19  Werner LEMBERG  <wl@gnu.org>
355         Add some glyphs needed for Turkish.
357         * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
358         and u0049_0307.
360         * tmac/composite.tmac: Add `,' as a synonym for `ac' accent. 
361         * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
362         u00{53,73}_0327, and u0049_0307.
364 2003-12-18  Werner LEMBERG  <wl@gnu.org>
366         * src/devices/grops/ps.cc (ps_output::put_float): Revert change
367         from 2001-10-04.
368         Remove trailing zeros.
370 2003-12-17  Werner LEMBERG  <wl@gnu.org>
372         Make \? transparent to end-of-sentence recognition.
374         * src/roff/troff/input.cc (non_interpreted_node): Add
375         `ends_sentence' member function.
377 2003-12-16  Werner LEMBERG  <wl@gnu.org>
379         * doc/groff.texinfo: Document `dt' request correctly.
380         Other minor typographical improvements.
382 2003-12-10  Michail Vidiassov  <master@iaas.msu.ru>
384         * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
386 2003-12-10  Richard Stallman  <rms@gnu.org>
388         * LICENSE: Better wording.
390 2003-12-09  Werner LEMBERG  <wl@gnu.org>
392         * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
393         * configure, NEWS: Updated.
395 2003-12-08  Werner LEMBERG  <wl@gnu.org>
397         * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
399 2003-12-07  Bernd Warken  <bwarken@mayn.de>
401         * LICENSE: Updated.
403 2003-12-07  Werner LEMBERG  <wl@gnu.org>
405         * INSTALL: Improved.
407 2003-12-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
409         Use path separator character of target platform for compiled-in
410         default paths.
412         * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
413         * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
414         * configure: Regenerated.
415         * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
417 2003-12-05  Werner LEMBERG  <wl@gnu.org>
419         * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
420         Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
422 2003-12-04  Bernd Warken  <bwarken@mayn.de>
424         * LICENSE: New file.
426 2003-12-03  Werner LEMBERG  <wl@gnu.org>
428         * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
429         ligatures present in AFM files since groff currently only
430         understands some standard ligatures and nothing else.
432 2003-12-03  Jeff Conrad  <jeff_conrad@msn.com>
434         * src/roff/groff/groff.cpp (main): Don't run the spooler if
435         option -v is given.
437         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
438         messages.
439         Close stdout copy.
440         Don't use Unix wait flags.
442 2003-12-02  Werner LEMBERG  <wl@gnu.org>
444         * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
445         src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
446         src/roff/troff/uniuni.cpp: Moved to...
447         * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
448         src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
449         src/libs/libgroff/uniuni.cpp: Here.
451         * src/include/Makefile.sub.old (HDRS),
452         src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
453         src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
455 2003-12-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
457         * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
458         `DEBUG_FILE'.
459         Updated all users.
461 2003-12-01  Werner LEMBERG  <wl@gnu.org>
463         * groff.texinfo: Document special behaviour of `.vs 0'.
464         Improve documentation of `cflags' request.
465         * NEWS: Updated.
467 2003-11-29  Werner LEMBERG  <wl@gnu.org>
469         * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
470         * font/devlj4/CORONET: Regenerated.
472 2003-11-24  Werner LEMBERG  <wl@gnu.org>
474         * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
475         if processing hyphenation patterns in traditional mode.
476         Improve error messages.
478 2003-11-20  Werner LEMBERG  <wl@gnu.org>
480         * src/roff/troff/node.cpp (troff_output_file::put_char_width,
481         troff_output_file::put_char): Fix type of local variable `c'.
483 2003-11-19  Werner LEMBERG  <wl@gnu.org>
485         * src/roff/groff/pipeline.c (P): Removed.  Updated all function
486         declarations.
487         (i_to_a): Removed.  libgroff already provides this function.
488         (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
490 2003-11-18  Keith Marshall  <keith.d.marshall@ntlworld.com>
492         * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
493         HAVE_DECL_SYS_LIST.
495 2003-11-17  Werner LEMBERG  <wl@gnu.org>
497         * COPYING: Use correct version.
499 2003-11-11  Werner LEMBERG  <wl@gnu.org>
501         LynxOS 4.0.0 doesn't declare vfprintf.
503         * configure.ac: Check for vfprintf.
504         * configure: Regenerated.
505         * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
506         * src/include/config.hin: Regenerated.
508 2003-11-10  Werner LEMBERG  <wl@gnu.org>
510         LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
512         * configure.ac: Check for vsnprintf.
513         * configure: Regenerated.
514         * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
515         `HAVE_VSNPRINTF'.
516         * src/include/config.hin: Regenerated.
518 2003-11-09  Werner LEMBERG  <wl@gnu.org>
520         * aclocal.m4: Updated syntax to autoconf 2.59.
521         (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
522         Don't check for gsos2.
523         (GROFF_SRCDIR, GROFF_BUILDDIR): Removed.  autoconf 2.59 provides
524         working abs_top_srcdir and abs_top_builddir.
526         * configure.ac: Updated syntax to autoconf 2.59.
527         Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
528         Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
529         * configure: Regenerated.
531         * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
532         s/@groff_top_builddir@/@abs_top_builddir@/.
534         * src/roff/groff/pipeline.c (xstrsignal):
535         s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
537 2003-11-07  Werner LEMBERG  <wl@gnu.org>
539         * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
540         make start angle smaller than end angle to circumvent a bug in tpic
541         handling of some versions of dvipdfm (and dvipdfmx).
543 2003-10-30  Werner LEMBERG  <wl@gnu.org>
545         * src/devices/grops/grops.man: Improve section on creating EPS.
547 2003-10-29  Werner LEMBERG  <wl@gnu.org>
549         * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
550         -P-pletter).
552 2003-10-28  Werner LEMBERG  <wl@gnu.org>
554         * doc/groff.texinfo: Fix documentation of `.if'.
556 2003-10-27  Michail Vidiassov  <master@iaas.msu.ru>
558         * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
559         the form `uniXXXX' also.
561 2003-10-27  Werner LEMBERG  <wl@gnu.org>
563         * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
564         contrib/pic2graph/pic2graph.sh: Implement secure management of
565         temporary files.
566         Pass `-P-pletter' to groff to avoid data outside of the converted
567         area -- some versions of `convert' (for example 5.3.8) don't check
568         the bounding box of the image but always use a fixed image size
569         (letter paper format).
570         * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
571         contrib/pic2graph/pic2graph.man: Updated.
573         * src/roff/groff/groff.man: Document $TMP and $TEMP.
575 2003-10-26  Werner LEMBERG  <wl@gnu.org>
577         * src/preproc/pic/troff.cpp (troff_output::simple_circle,
578         troff_output::simple_ellipse, troff_output::simple_arc,
579         troff_output::simple_line, troff_output::simple_spline,
580         troff_output::simple_polygon): Insert a space before arguments.
581         (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
582         latter doesn't produce a node, so the following `.sp -1' would do
583         the wrong thing.
584         Don't emit `.sp -1' after \M.  This also doesn't produce a token
585         (and we don't have to care about compatibility mode).
586         (troff_output::set_color, troff_output::reset_color): Don't emit
587         `.sp -1' after \M and \m.
589         * src/roff/troff/input.cpp (old_have_input): New global variable.
590         (input_stack::get): Handle `old_have_input'.
591         (process_input_stack) <token::TOKEN_NEWLINE>: Call
592         `trapping_blank_line' depending on `old_have_input', not
593         `have_input'.
595 2003-10-20  Keith Marshall  <keith.d.marshall@ntlworld.com>
597         * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
598         (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
599         default directory names for temporary files.
600         [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
602         * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
603         [__MSDOS__] (run_pipeline): Honour environment variables.
604         Don't use `tmpnam' but `tempnam' to work around messy
605         implementation.
607         * README.MinGW: New file.
609 2003-10-16  Werner LEMBERG  <wl@gnu.org>
611         * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
612         `(*t)->next' without testing validity of `*t'.
613         (usage): Make it more readable.
615 2003-10-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
617         Make html device run under both MS-DOS and Win32.
619         * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
620         MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
621         spawn or fork+exec has to be used, and whether parent must sleep
622         until the child process terminates.  Used in
623         `char_buffer::run_output_filter'.
624         (copyofstdoutfd): Removed.
625         (char_buffer): Replace `write_file_html' and `write_file_troff'
626         member functions with `emit_troff_output' and `run_output_filter'.
627         (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
628         macros.
629         (replaceFd): Replaced with...
630         (set_redirection): New auxiliary function.
631         (waitForChild): Replaced with...
632         (save_and_redirect): New auxiliary function for.
634         (char_buffer::do_html, char_buffer::do_image): Simplified, using new
635         functions.
637 2003-10-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
639         * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
640         (GROFF_LIBC): New function.
641         * configure.ac: Call GROFF_LIBC.
642         Check for `kill'.
643         * configure: Regenerated.
645         * src/include/lib.h: Handle __MINGW32__.
646         * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
647         Add macro for `pipe'.
648         Define P_tmpdir.
650         * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
651         correctly.
653         * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
654         Implement.
656 2003-10-13  Werner LEMBERG  <wl@gnu.org>
658         Finally fix change 2003-08-26, based on ideas from Chuck Silvers
659         <chuq@chuq.com>.
661         * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
662         directory.
664 2003-10-12  Werner LEMBERG  <wl@gnu.org>
666         * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
667         src/roff/troff/input.cc (usage): Updated.
669         * NEWS, doc/groff.texinfo: Updated.
671 2003-10-12  Peter Miller  <millerp@canb.auug.org.au>
673         * src/libs/libgroff/searchpath.cpp
674         (search_path::open_file_cautious): New function which also handles
675         `-' as stdin and stdout depending on the access mode.
676         * src/include/searchpath.h (search_path): Updated.
678         * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
679         * src/devices/grops/ps.h: Include `searchpath.h'.
680         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
681         Open resource file with `include_search_path.open_file_cautious'.
682         * src/devices/grops/grops.man: Document new `-I' switch.
684         * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
685         (main), src/devices/grolj4/lj4.cpp (main),
686         src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
688         * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
689         Replaced with...
690         (include_search_path): New global variable.
691         (include_path_append): Removed.
692         (main): Use `include_search_path.command_line_dir' to handle `-I'.
693         (do_file): Simplify, using new
694         `include_search_path.open_file_cautious'.
696         * src/roff/groff/groff.cpp (print_commands): Accept file handle as
697         parameter.
698         (main): Pass arguments to `-I' to both troff and devices.
699         Improve handling of `-V'.
700         * src/roff/groff/groff.man: Document changes to -I and -V.
702         * src/roff/troff/input.cpp (include_search_path): New global
703         variable.
704         (next_file, source, ps_bbox_request, transparent_file,
705         process_input_file): Use new
706         `include_search_path.open_file_cautious'.
707         (main) Handle `-I' switch.
708         * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
709         Use new `include_search_path.open_file_cautious'.
710         * src/roff/troff/node.h: New extern symbol `include_search_path'.
711         * src/roff/troff/troff.man: Document new `-I' switch.
713 2003-09-15  Ruslan Ermilov  <ru@FreeBSD.org>
715         Support multiple calls of .Lb in LIBRARY section.
717         * tmac/doc-common (doc-in-library-section): New register.
718         (doc-section-library): New string.
719         (Sh): Set `doc-in-library-section'.
720         (Rd): Updated.
721         * tmac/doc-syms (Lb): Insert breaks before and after arguments
722         if in LIBRARY section.
723         * tmac/doc.tmac (doc-save-global-vars): Updated.
724         * NEWS, tmac/groff_mdoc.man: Updated.
726 2003-09-14  Ruslan Ermilov  <ru@FreeBSD.org>
728         * tmac/doc-common (doc-default-operating-system): New variable.
729         (Os): Use it.
731 2003-09-08  Werner LEMBERG  <wl@gnu.org>
733         * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
735 2003-08-31  Werner LEMBERG  <wl@gnu.org>
737         * contrib/mom/Makefile.sub: Fix last change to make it really work.
738         * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
739         (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
740         $(DEVFILES) are not empty.
741         * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
743 2003-08-26  Chuck Silvers  <chuq@chuq.com>
745         * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
746         with parallel runs of `make'.
748 2003-08-23  Stephen Gildea  <gildea@stop.mail-abuse.org>
750         * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
751         insert SORT_SEP.  With certain combinations of sort specifications,
752         refer sorted entries in the wrong order.  In particular, entries
753         with a missing field should be be sorted before all entries that
754         have that field, before refer looks to the next field.
756 2003-08-23  Werner LEMBERG  <wl@gnu.org>
758         * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
759         g++ linker is used.  Reported by Mark J. Reed
760         <mark.reed@turner.com>.
762 2003-08-16  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
764         Add key character `x' to tbl which makes tbl call a user-defined
765         macro on a table cell.
767         * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
768         * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
769         `set_modifier' after printing the compatibility request.
770         (set_modifier): Print call to `m->macro' if not empty.
771         * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
772         `macro'.
773         (process_format): Implement cases `x' and `X'.
774         * src/preproc/tbl/tbl.man, NEWS: Updated.
776 2003-08-15  Werner LEMBERG  <wl@gnu.org>
778         * doc/groff.texinfo: Minor fixes.
780 2003-08-09  Werner LEMBERG  <wl@gnu.org>
782         * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
784 2003-08-07  Werner LEMBERG  <wl@gnu.org>
786         * doc/Makefile.sub: Not all shells expand wildcards in the `for'
787         argument list to nothing if there is no file to match.  Use `ls' as
788         a protection, similar to autoconf.
790         * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
791         empty argument lists.
793         * doc/groff.texinfo: Improve documentation how vertical spacing
794         and line breaks interact.
795         Other minor fixes.
797         * tmac/www.tmac: Initialize `www-htmlimage-gap'.
799 2003-08-03  Werner LEMBERG  <wl@gnu.org>
801         * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
802         EPS (using eps2eps or similar programs to compute the bounding box).
804 2003-07-24  Werner LEMBERG  <wl@gnu.org>
806         * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
807         * doc/texinfo.tex: Updated from texinfo 4.6.
808         * README.CVS: From now on we need texinfo 4.6.
810 2003-07-23  Werner LEMBERG  <wl@gnu.org>
812         Add requests `dei1' and `ami1' for completeness.
814         * src/roff/troff/input.cc (calling_mode): Remove
815         CALLING_DISABLE_COMP.
816         (comp_mode): New enumeration.
817         (do_define_string, define_string, define_nocomp_string,
818         append_string, append_nocomp_string): Updated.
819         (do_define_macro): Add third parameter.
820         (define_macro, define_nocomp_macro, define_indirect_macro,
821         append_macro, append_nocomp_macro, append_indirect_macro): Updated.
822         (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
823         functions.
824         (ignore): Updated.
825         (init_input_requests): Add `dei1' and `ami1'.
827         * tmac/trace.tmac: Handle de1 and am1.
828         (de): Improve tracing message.
829         (am): Add missing `do'.
830         (return): Use de1.
832         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
833         Document new requests.
835 2003-07-22  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
837         Add option -G to .MPIMG to insert a gap between text and the image.
839         * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
840         www-finish-left-ll): Updated.
841         (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
842         (MPIMG): Make option -L and -R optional.
843         Implement option -G.
845 2003-07-22  Gaius Mulley  <gaius@glam.ac.uk>
847         * src/devices/grohtml/post-html.cpp
848         (html_printer::do_file_components): Don't use `stdout' as lvalue
849         since it can be a macro.
851 2003-07-22  Werner LEMBERG  <wl@gnu.org>
853         * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
854         the corresponding test in aclocal.m4.
856 2003-07-21  Werner LEMBERG  <wl@gnu.org>
858         * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
859         names but RGB values directly.  Otherwise pnmtopng depends on
860         an external file `rgb.txt' which maps colour names to values.
862 2003-07-20  Werner LEMBERG  <wl@gnu.org>
864         * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
865         * configure, src/include/config.hin: Regenerated.
867         * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
869 2003-07-19  Werner LEMBERG  <wl@gnu.org>
871         * PROBLEMS: Add solution for UTF-8 problem with hyphens.
873 2003-07-18  Werner LEMBERG  <wl@gnu.org>
875         * *.man: Switch to non-compatibility mode temporarily if GNU
876         syntax extensions are used in the particular man page.
878         * PROBLEMS: Add solutions for SGR problems.
880 2003-07-17  Werner LEMBERG  <wl@gnu.org>
882         Don't ignore grotty's command line options if \X'tty: sgr ...' is
883         used to change the drawing scheme.
885         * src/devives/grotty/tty.cpp (bold_flag_option,
886         underline_flag_option, italic_flag_option, reverse_flag_option,
887         bold_underline_mode_option): New global variables.
888         (update_options): New function.
889         (tty_printer::special): Call update_options.
890         (main): Don't set xxx_flag but xxx_flag_option, then call
891         update_options.
893 2003-07-14  Werner LEMBERG  <wl@gnu.org>
895         Make grotty emit proper Unicode box drawing characters for -Tutf8.
897         * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
898         values.
899         (hline_char, vline_char): New global variables.
900         (tty_printer::tty_printer): Initialize them.
901         (tty_printer::draw): Emit START_LINE and END_LINE flags for both
902         horizontal and vertical lines.
903         (crossings): New global array.
904         (tty_printer::end_page): Use it to determine the proper crossing
905         character for -Tutf8.
907 2003-07-12  Werner LEMBERG  <wl@gnu.org>
909         * doc/Makefilesub (HTMLDOCFILESALL): New macro.
910         (HTMLDOCFILES): Revert to `pic.html'.
911         (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
913 2003-07-11  Werner LEMBERG  <wl@gnu.org>
915         * doc/pic.ms: Improve documentation of absolute coordinates.
916         Document absolute positioning of pictures.
918         * NEWS: Add new pic capability.
920 2003-07-09  Hartmut Henkel  <hartmut_henkel@gmx.de>
922         * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
923         Rewritten.
925 2003-07-07  Werner LEMBERG  <wl@gnu.org>
927         Implement support for dashed and dotted ellipses in pic.  Based on
928         a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
930         * src/preproc/pic/common.cpp (common_output::ellipse_arc,
931         common_output::dashed_ellipse, common_output::dotted_ellipse): New
932         functions.  Ellipse arcs are approximated with circle arcs.
933         * src/preproc/pic/common.h (common_output): Updated.
934         * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
935         functions.
936         * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
938         * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
940 2003-07-06  Werner LEMBERG  <wl@gnu.org>
942         Make grotty work on platforms which have unsigned char as the
943         default for char.  Based on a patch by Thomas Klausner
944         <wiz@netbsd.org>.
946         * src/devices/grotty/tty.cpp (schar): New typedef.
947         Updated calls to declare_ptable and implement_ptable.
948         (glyph): Use schar for back_color_idx and fore_color_idx.
949         (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
950         (tty_printer::tty_color, tty_printer::tty_printer,
951         tty_printer::color_to_idx, tty_printer::put_color): Updated.
953 2003-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
955         * src/roff/nroff/nroff.sh: Add option -d for completeness.
956         * src/roff/nroff/nroff.man: Updated.
958 2003-07-05  Werner LEMBERG  <wl@gnu.org>
960         * NEWS, tmac/groff_www.man: Updated.
961         * doc/Makefile.sub: Updated.
963 2003-07-05  Gaius Mulley  <gaius@glam.ac.uk>
965         Implement support for multiple HTML output files.
967         * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
968         -j command line option.
970         * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
971         global variables.
972         (file): New fields `new_output_file', `require_links',
973         `output_file_name'.
974         (file::file): Updated.
975         (files::set_file_name, files::set_links_required,
976         files::are_links_required, files::is_new_output_file,
977         files::file_name, files::next_file_name): New functions.
978         (header_desc): New fields `no_of_level_one_headings',
979         `header_filename'.
980         (header_desc::header_desc): Updated.
981         (header_desc::write_headings): Handle multiple files.
982         (html_printer::write_header): Save file name in which header occurs.
983         (html_printer::determine_header_level): Possibly split files on
984         level one headings.
985         (html_printer::do_links, html_printer::troff_tag): Updated.
986         (html_printer::insert_split_file, html_printer::do_job_name,
987         html_printer::emit_link, html_printer::write_navigation,
988         html_printer::do_file_components): New functions.
989         (html_printer::~html_printer): Handle multiple files.
990         (main): Handle command line option `-j'.
992         * src/devices/grohtml/grohtml.man: Updated.
994         * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
995         which splits file.
997         * tmac/www.tmac (JOBNAME): New macro.
998         * tmac/s.tmac (SH-NO-TAG): New macro.
999         (@SH): Call SH-NO-TAG.
1000         (@NH): Updated.
1002 2003-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
1004         * tmac/groff_mdoc.man: Improve documentation of punctuation
1005         characters.
1007 2003-07-04  Ruslan Ermilov  <ru@FreeBSD.org>
1009         * tmac/doc.tmac (Bd): Change to doc-Li-font later.
1011 2003-07-03  Werner LEMBERG  <wl@gnu.org>
1013         * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
1015 2003-07-01  Ruslan Ermilov  <ru@FreeBSD.org>
1017         * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
1018         after `/*' and `*/'.
1019         Fix spacing.
1020         (Fn, Fo): Reduce indentation in synopsis.
1022         * tmac/doc-common (doc-check-depth): New macro.
1023         (doc-end-macro, Sh, Ss): Use it.
1024         (Cd): Fix behaviour in synopsis.
1025         (In): Make it parsed and callable.
1026         If not in the synopsis, represent the C header file enclosed in
1027         angle brackets.
1028         (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
1029         Use minus, not hyphen.
1031         * tmc/groff_mdoc.man: Updated.
1033 2003-07-01  Werner LEMBERG  <wl@gnu.org>
1035         Integrated grap2graph, contributed by Eric S. Raymond.
1037         * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
1038         New files.
1039         * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
1040         contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
1042 2003-07-01  Colin Watson  <cjwatson@debian.org>
1044         * src/xditview/*.c: Add prototypes, fix return types, add includes.
1045         Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
1047 2003-06-31  Ruslan Ermilov  <ru@FreeBSD.org>
1049         * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
1051 2003-06-31  Werner LEMBERG  <wl@gnu.org>
1053         * doc/Makefile.sub (CLEANADD): Remove all files created by
1054         running `make groff.{pdf,dvi}'.
1056         * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
1057         src/xditview also.
1059 2003-06-30  Werner LEMBERG  <wl@gnu.org>
1061         * Makefile.in (SHELL): Define as @SHELL@.
1062         (mkinstalldirs): Use $(SHELL).
1063         (MDEFINES): Add $(SHELL).
1064         * Makefile.comm (SHELL): Removed.
1066 2003-06-29  Werner LEMBERG  <wl@gnu.org>
1068         * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
1069         The X11 documentation files use them.
1070         * tmac/groff_ms.man, doc/groff.texinfo: Document them.
1072 2003-06-15  Robert Goulding  <goulding@Princeton.EDU>
1074         * tmac/e.tmac (@C): Handle .ad also.
1076 2003-06-12  Werner LEMBERG  <wl@gnu.org>
1078         * src/preproc/tbl/tbl.man: Document formatting of text blocks.
1080         * src/roff/troff/input.cc (token::next) <handle_escape_char>:
1081         Assign `n' even here.  It is possible to construct a node
1082         immediately following an escape character:
1084           .di xx
1085           \?\\\?a
1086           .br
1087           .di
1088           .xx
1090 2003-06-10  Werner LEMBERG  <wl@gnu.org>
1092         * README.WIN32: Removed.
1093         * MANIFEST: Updated.
1095 2003-06-07  Werner LEMBERG  <wl@gnu.org>
1097         * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
1099 2003-06-05  Werner LEMBERG  <wl@gnu.org>
1101         * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
1102         in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
1104 2003-06-03  Werner LEMBERG  <wl@gnu.org>
1106         * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
1107         is done by the calling function.
1109 2003-05-22  Ruslan Ermilov  <ru@FreeBSD.org>
1111         * tmac/X.tmac: Fix definition of `em'.
1113 2003-05-22  Werner LEMBERG  <wl@gnu.org>
1115         * src/roff/troff/input.cc (return_macro_request): Fix detection of
1116         argument.
1118 2003-05-18  Werner LEMBERG  <wl@gnu.org>
1120         * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
1121         to make items work which consist only of a tag.
1123 2003-05-17  Werner LEMBERG  <wl@gnu.org>
1125         * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
1126         aren't stretched in a tag (this can fail with unformatted boxes).
1127         Instead, insert a break and go back one line.
1129 2003-05-16  Werner LEMBERG  <wl@gnu.org>
1131         * src/roff/troff/input.cc (return_macro_request): If called with
1132         argument pop macro twice.  We need this to trace `return'.
1134         * tmac/trace.tmac: Handle `return'.
1135         Fix typos.
1137         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1138         Document.
1140 2003-05-15  Larry Kollar  <kollar@alltel.net>
1142         * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
1143         registers `FPS', `FVS', and `FPD'.
1145 2003-05-15  Werner LEMBERG  <wl@gnu.org>
1147         * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
1148         correctly.
1150 2003-05-03  Ruslan Ermilov  <ru@FreeBSD.org>
1152         * tmac/groff_mdoc.man: Slight improvements.
1154 2003-05-03  Werner LEMBERG  <wl@gnu.org>
1156         * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
1157         `doc-header-space' after header line if register `cR' is set.
1159 2003-05-02  Werner LEMBERG  <wl@gnu.org>
1161         * TODO: Updated.
1163 2003-05-01  Ruslan Ermilov  <ru@FreeBSD.org>
1165         * tmac/doc-common (Nd): Use \[em].
1167 2003-05-01  Werner LEMBERG  <wl@gnu.org>
1169         * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
1170         doc-footer-space): Initialize to 0.5i.
1171         (doc-setup-page-layout): Don't set doc-header-space and
1172         doc-footer-space.
1174 2003-04-30  Werner LEMBERG  <wl@gnu.org>
1176         * REVISION: Set to 1.
1178         * doc/pic.ms: Document possible problems with `figname'.
1180 2003-04-29  Werner LEMBERG  <wl@gnu.org>
1182 Version 1.19 released
1183 =====================
1185         * VERSION: Set to 1.19.
1186         * REVISION: Set to 0.
1187         * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
1189         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
1190         Define charset as `US-ASCII' in html output.
1192         * tmac/www.tmac (ULE): Add missing scaling indicator.
1194         * win32-diffs: Removed.
1196 2003-04-28  Werner LEMBERG  <wl@gnu.org>
1198         * doc/groff.texinfo: Document `dn' and `dl' registers if used with
1199         `.da' and `.boxa'.
1200         Document how to insert discardable whitespace with `.ss'.
1202 2003-04-27  Werner LEMBERG  <wl@gnu.org>
1204         * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
1205         work with plain TeX also.
1207         * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
1209 2003-04-25  Gaius Mulley  <gaius@glam.ac.uk>
1211         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
1212         Use a loose DTD.
1214 2003-04-24  Werner LEMBERG  <wl@gnu.org>
1216         * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
1217         vbox with positive height and zero depth if in TeX mode.
1219         * NEWS: Document glyph name changes for grodvi and grolj4.
1221 2003-04-23  Werner LEMBERG  <wl@gnu.org>
1223         * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
1224         * doc/pic.ms: Fixed.
1226 2003-04-21  Werner LEMBERG  <wl@gnu.org>
1228         HP-UX 10.20 has `snprintf' but it isn't declared.
1230         * configure.ac: Add declaration test for snprintf.
1231         * configure: Regenerated.
1232         * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
1233         * src/include/config.hin: Regenerated.
1235 2003-04-19  Werner LEMBERG  <wl@gnu.org>
1237         Add keyword `figname' to pic, specifying the name of the picture
1238         box in TeX mode.  Based on a patch from William J Poser
1239         <wjposer@unagi.cis.upenn.edu>.
1241         * src/preproc/pic/pic.y: New token `FIGNAME'.
1242         (macro_name): New rule of type <str>.
1243         (placeless_element): Handle `FIGNAME'.
1244         * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
1245         * src/preproc/pic/main.cpp (graphname): New global variable.
1246         (do_picture): Initialize `graphname'.
1247         * src/preproc/pic/pic.h: Updated.
1248         * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
1249         `graphname'.
1250         Simplify TeX code.
1251         (tex_output::text): Beautify output.
1252         * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
1253         `shaded' and `outlined' unconditionally.
1254         * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
1255         Minor improvements.
1257         * PROBLEMS, README.CVS: Mention that bison version 1.875b or
1258         greater is necessary.
1260 2003-04-17  Hartmut Henkel  <hartmut_henkel@gmx.de>
1262         Add option -r to soelim to avoid emission of `.lf' lines.
1263         Add option -t to produces TeX comment lines instead of `.lf' lines.
1265         * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
1266         and `tex_flag'.
1267         (usage): Updated.
1268         (main): Handle `-r' and `-t'.
1269         (set_location): Handle `raw_flag' and `tex_flag'.
1270         * src/preproc/soelim/soelim.man, NEWS: Updated.
1272 2003-04-17  Werner LEMBERG  <wl@gnu.org>
1274         * tmac/hyphenex.sh: Replaced with...
1275         * tmac/hyphenex.pl: This perl script to avoid sed compatibility
1276         nightmares.
1278         * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
1279         if --quiet is used for the configure script.
1280         * configure: Regenerated.
1282 2003-04-16  Werner LEMBERG  <wl@gnu.org>
1284         * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
1285         Add `const' to second argument.
1286         (html_printer::add_table_end): Add `const' to argument.
1287         * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
1288         `const' to arguments.
1289         * src/devices/grohtml/html-text.h: Updated.
1291         * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
1292         * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
1293         argument.
1295         * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
1296         cast for integer constant.
1298         * src/preproc/html/pre-html.cpp (image_device): Use `const'.
1299         (writeNbytes): Add `const' to first argument.
1300         (writeString): Add `const' to argument.
1301         (char_buffer::can_see): Add `const' to third argument.
1302         * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
1303         `const' to argument.
1304         * src/preproc/html/pushback.h: Updated.
1306         * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
1307         (include_path_append): Add `const' to argument.
1308         (do_file): Updated.
1310         * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
1311         for `value'.
1312         (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
1313         * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
1314         for `value'.
1315         (unicode_decompose_init::unicode_decompose_init): Updated.
1316         * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
1317         for `value'.
1318         (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
1319         * src/roff/troff/input.cc (process_startup_file): Add `const' to
1320         argument.
1322         * tmac/hyphenex.sh: Make script more portable by using a here
1323         document.
1325 2003-04-15  Werner LEMBERG  <wl@gnu.org>
1327         Renamed all `*.cc' files to `*.cpp'.
1328         Updated all configuration files, makefiles, and documentation.
1330 2003-04-14  Werner LEMBERG  <wl@gnu.org>
1332         * tmac/hyphenex.sh: Slight improvements.
1334 2003-04-13  Werner LEMBERG  <wl@gnu.org>
1336         * font/devascii/R.proto, font/devcp1037/R.proto,
1337         font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
1338         character slots with unnamed glyphs.
1340         * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
1341         (an-first): New global variable.
1342         (an-header): Emit vertical space between multiple man pages.
1344 2003-04-11  Werner LEMBERG  <wl@gnu.org>
1346         * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
1347         values.
1349 2003-04-10  Werner LEMBERG  <wl@gnu.org>
1351         * PROBLEMS: Revised.
1353 2003-04-10  Bernd Warken  <bwarken@mayn.de>
1355         * doc/webpage.ms: Improved.
1357 2003-04-09  Werner LEMBERG  <wl@gnu.org>
1359         Add register \n[.height] which returns the value of \H.
1360         Add register \n[.slant] which returns the value of \S.
1362         * src/roff/troff/env.cc (init_env_requests): Implement.
1363         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1364         Document.
1366 2003-04-08  Werner LEMBERG  <wl@gnu.org>
1368         * tmac/html.tmac: Move some of the data into html-end.tmac.
1369         Remove most of the character translations for eqn since html fonts
1370         now cover those characters.
1371         Load www.tmac.
1372         * tmac/html-end.tmac: New file.
1373         * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
1374         * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
1375         * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
1377 2003-04-07  Werner LEMBERG  <wl@gnu.org>
1379         * man/groff_out.man: Document negative values of `N' if -Thtml is
1380         used.
1382 2003-04-06  Werner LEMBERG  <wl@gnu.org>
1384         * Makefile.comm (depend.temp): Check location of YTABC.
1386 2003-04-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1388         * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
1389         binary path.
1390         (groff_bin_path): Rename to GROFF_BIN_PATH.
1391         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
1392         * doc/Makefile.in (TROFFBIN): New variable for troff
1393         binary path.
1394         (GROFFBIN): New variable for groff binary path.
1395         (groff_bin_path): Rename to GROFF_BIN_PATH.
1396         (TROFF): Use TROFFBIN.
1397         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
1398         * doc/Makefile.sub (GROFFBIN): New variable for groff
1399         binary path.
1400         (groff_bin_path): Rename to GROFF_BIN_PATH.
1401         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
1403         * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
1404         with INSTALL_SCRIPT.
1405         (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
1406         * Makefile.dev (all): Depend on DEVSCRIPTS.
1407         (install_dev): Likewise.
1408         * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
1409         scripts.
1410         * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
1411         (DEVGENSCRIPTS): New variable to hold generated scripts.
1413 2003-04-05  Werner LEMBERG  <wl@gnu.org>
1415         * src/libs/libdriver/input.cc (IntArray::operator[],
1416         IntArray::get_data): Remove meaningless `const' in return value.
1418         * README.CVS: New file.
1420 2003-04-04  Werner LEMBERG  <wl@gnu.org>
1422         Check for stdint.h in C++, not in C.
1424         * aclocal.m4 (GROFF_STDINT_H): New function,
1425         * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
1426         AC_CHECK_HEADERS.
1427         * configure, src/include/config.hin: Regenerated.
1428         * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
1431         Fix handling of &nbsp; in grohtml.  To do this, troff emits `N'
1432         with a negative value, representing the width of the unbreakable
1433         space (only for -Thtml).  grohtml then converts this back to
1434         &nbsp; and uses the value of N as its width.
1436         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
1437         unbreakable_space_node::tprint): Emit `N-<width>'.
1438         * src/include/printer.h (printer::set_numbered_char): Make it
1439         virtual.
1440         Make members `font_table' and `nfonts' protected instead of private.
1441         * src/devices/grohtml/post-html.cc
1442         (html_printer::set_numbered_char): New member function.
1445         * src/libs/libgroff/maxfilename.cc:
1446         s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
1448         * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
1449         emit word marker.
1451 2003-04-03  Sergey A. Osokin  <osa@freebsd.org.ru>
1453         * man/roff.man: Small fixes.
1455 2003-04-03  Werner LEMBERG  <wl@gnu.org>
1457         Make groff independent from locale's numeric settings.
1459         * configure.ac: Check for `setlocale'.
1460         * configure, src/include/config.hin: Regenerated.
1462         * src/include/lib.h: Handle HAVE_SETLOCALE.
1464         * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
1465         (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
1466         (main), src/preproc/pic/main.cc (main): Call `setlocale'.
1469         * doc/groff.texinfo: Change dir category to `Typesetting'.
1470         (Man font macros): Mention that there is no space between arguments
1471         of .BI and friends.
1473         * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
1474         (*printer::change_color, *printer::change_fill_color): Add missing
1475         `const'.
1477 2003-04-02  Werner LEMBERG  <wl@gnu.org>
1479         * src/devices/grohtml/html-table.cc (html_table::emit_col,
1480         html_table::is_gap): Compute table widths after converting border
1481         positions to avoid rounding errors.
1483 2003-04-01  Werner LEMBERG  <wl@gnu.org>
1485         * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
1486         `space_emitted' properly.
1488 2003-03-31  Werner LEMBERG  <wl@gnu.org>
1490         * src/devices/grohtml/html-table.cc: Fix column width calculation.
1491         (html_table::set_linelength): Don't add 1.
1492         (html_table::add_indent): Don't subtract 1.
1494         * tmac/html.tmac: Set default page offset to zero.
1496 2003-03-30  Werner LEMBERG  <wl@gnu.org>
1498         Make groff emit `&nbsp;' for `\ ' and `\~' if `-Thtml' is used.
1500         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
1501         unbreakable_space_node::tprint): New functions.
1502         (troff_output_file): Make space_char_hmotion_mode::tprint and
1503         unbreakable_space_node::tprint to friends.
1504         * src/roff/troff/node.h: Updated.
1506         * font/devhtml/R.proto: Add `&nbsp' at position 0xA0 (as defined
1507         in the HTML standard).
1509 2003-03-29  Werner LEMBERG  <wl@gnu.org>
1511         * src/roff/troff/env.cc (point_size): Fix emission of html tag.
1512         Otherwise, the following code
1514           .di xxx
1515           .ps 10
1516           a
1517           .br
1518           .di
1519           x\*[xxx]
1521         produces `x a' instead of `xa'.  This is a temporary fix, disabling
1522         font changes in diversions for -Thtml.
1524         * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
1525         `HTML-TAG'.
1526         (an-do-tag-html): Merge with ...
1527         (an-do-tag): This macro.
1528         Change code slightly to circumvent grohtml bug.
1529         * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
1531         * src/devices/grohtml/html-table.cc (html_table::emit_col,
1532         html_table::is_gap): Round `width' properly.
1534         * tmac/html.tmac: Provide some default layout parameters for
1535         grohtml.
1537         * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
1538         command.
1540 2003-03-28  Werner LEMBERG  <wl@gnu.org>
1542         src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
1544 2003-03-27  Werner LEMBERG  <wl@gnu.org>
1546         * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
1547         defined.
1549 2003-03-20  Werner LEMBERG  <wl@gnu.org>
1551         * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
1552         `.vs'.
1553         * doc/groff.texinfo: Updated.
1555 2003-03-19  Werner LEMBERG  <wl@gnu.org>
1557         * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
1558         TOKEN_END_TRAP>: Reset `have_input'.
1560 2003-03-18  Werner LEMBERG  <wl@gnu.org>
1562         * src/roff/groff/groff.man: Mention groff_trace man page.
1564 2003-03-16  Werner LEMBERG  <wl@gnu.org>
1566         * Makefile.in (LIBEXT): New variable to indicate the file extension
1567         of library files.  Computed heuristically from $(OBJEXT).
1568         (MDEFINES): Add $(LIBEXT).
1569         * Makefile.lib, Makefile.comm: Use it.
1571         * src/utils/pfbtops/pfbtops.c (get_text): New function.  Split
1572         overlong lines into smaller chunks.
1573         (get_binary): New function.
1574         (main): Use them.
1575         * src/utils/pfbtops/pfbtops.man: Updated.
1577 2003-03-15  Colin Watson  <cjwatson@debian.org>
1579         * src/roff/groff/groff.man: Minor syntax fix.
1581 2003-03-14  Egil Kvaleberg  <egil@kvaleberg.no>
1583         * src/devices/grops/ps.cc (ps_printer::media_set,
1584         ps_printer::~ps_printer): Handle zero paper width and length.
1586 2003-03-13  Werner LEMBERG  <wl@gnu.org>
1588         Add options -p and -l to grodvi.
1590         * src/devices/grodvi/dvi.cc: Include paper.h.
1591         (landscape_flag, user_paper_length, user_paper_width): New global
1592         variables.
1593         (dvi_printer::begin_page): Emit `papersize' special.
1594         Set color after initialization of `cur_h' and `cur_v'.
1595         (main): Add options `-l' and `-p'.
1596         * font/devdvi/Makefile.sub (DESC): Set `papersize'.
1597         * src/devices/grodvi/grodvi.man, NEWS: Updated.
1599         * src/devices/grops/psrm.cc (valid_input_table): Fixed.
1601 2003-03-12  Werner LEMBERG  <wl@gnu.org>
1603         * src/devices/grops/grops.man: Move documentation of .PSPIC to...
1604         * man/groff_tmac.man: This man page.
1605         * man/groff_font.man: Declare `paperwidth' and `paperlength' as
1606         deprecated.
1608         * tmac/X.tmac: Don't load pspic.tmac.
1610 2003-03-11  Werner LEMBERG  <wl@gnu.org>
1612         Make variable `pr' local to libdriver/input.cc.  Based on a patch
1613         by Bernd Warken <bwarken@mayn.de>.
1615         * src/include/driver.h (pr): Removed.
1617         * src/libs/libdriver/input.cc (pr): New global variable.
1618         (do_file): Deallocate `pr'.
1619         * src/libs/libdriver/printer.cc (pr): Removed.
1621         * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
1622         (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
1623         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
1624         (main): Don't delete `pr'.
1626 2003-03-10  Werner LEMBERG  <wl@gnu.org>
1628         * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
1629         * tmac/papersize.tmac: New file.
1630         * tmac/troffrc: Include `papersize.tmac'.
1631         * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
1632         * tmac/an-old.tmac: Set LT to LL by default.
1634         * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
1635         doc/groff.texinfo: Updated.
1637         * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
1638         bug which caused all odd iso papers to have wrong dimensions.
1640         * src/devices/grops/ps.cc (user_paper_width): New global variable.
1641         (main) <'p'>: Set `user_paper_width' also.
1642         (ps_printer::media_width, ps_printer::media_height): Use values
1643         given with option `-p'.
1645 2003-03-09  Werner LEMBERG  <wl@gnu.org>
1647         * src/include/nonposix.h: Provide default for SET_BINARY.
1649         * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
1650         src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
1651         unconditionally.
1653         * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
1654         (main): Treat \r\n as \n.
1656 2003-03-08  Werner LEMBERG  <wl@gnu.org>
1658         * tmac/an-old.tmac: Use register `HY' to control hyphenation.
1659         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
1661 2003-03-07  Werner LEMBERG  <wl@gnu.org>
1663         Added support to access more than 256 glyphs in Type 1 fonts.
1665         * src/devices/grops/ps.cc (subencoding): New structure.
1666         (style): Add `sub' field.
1667         Updated all users.
1668         (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
1669         Add `set_subencoding', `get_subfont' and `encode_subfont' member
1670         functions.
1671         Updated all users.
1672         (ps_printer::set_char): Use `set_subencoding'.
1673         (make_subencoding_name): New function.
1674         (ps_printer::set_style): Handle case where `sty.sub' is not zero.
1675         (ps_printer::~ps_printer): Emit subencoding definitions.
1677         * src/devices/grops/psrm.cc (valid_input_table): New array to
1678         properly support EBCDIC.
1679         (white_space): Add `\f'.
1680         (ps_get_line): Change first argument to be of type `string &'.
1681         Updated all callers.
1682         This allows to get lines of arbitrary length.
1683         Use `valid_input_table'.
1684         Remove warning about non-conforming PS line length.  This seems
1685         not to be of great importance -- for example, dvips don't emit
1686         a warning either.
1687         (PS_LINE_MAX): Removed.
1688         (matches_comment): Change first argument to be of type `string &'.
1690         * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
1692         * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
1693         %AGL_to_unicode, %default_ligatures): New hash tables.
1694         Read all map entries.
1695         Add unencoded characters.
1696         Check for default ligatures if there are no `L' entries.
1697         Print all kern entries.
1698         Print all characters in charset.
1699         * src/utils/afmtodit/afmtodit.man: Updated.
1701         * font/devps/*: Regerated all fonts.
1703         * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
1704         of characters, just use `.trin'.  Otherwise the mapping depends
1705         on the font encoding.
1706         * tmac/ps.tmac: Add `fi' and `fl'.
1707         Improve `Fi' and `Fl'.
1708         * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
1709         * tmac/Xps.tmac: Fix `em'.
1711         * NEWS: Updated.
1713 2003-03-04  Werner LEMBERG  <wl@gnu.org>
1715         * src/roff/troff/input.cc (charinfo_to_node_list): Reset
1716         `have_input'.
1718 2003-03-03  Werner LEMBERG  <wl@gnu.org>
1720         * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
1722         * font/devps/generate/textmap: Remove entry `similarequal'.
1723         * font/devps/symbolmap: Updated.
1725 2003-03-02  Werner LEMBERG  <wl@gnu.org>
1727         * src/libs/libgroff/font.cc (font::load): Fix error message for
1728         bad character type.
1730         * src/devices/grops/grops.man: Improve documentation of the -b
1731         flag.
1733         * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
1734         `ascii' and `cp1047'.
1736 2003-03-01  Werner LEMBERG  <wl@gnu.org>
1738         Document composite glyphs and the `composite' request.
1740         * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
1742 2003-02-28  Werner LEMBERG  <wl@gnu.org>
1744         * font/devdvi/generate/ec.map: Add some more Unicode entities.
1745         * font/devdvi/*EC: Updated.
1747         * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
1748         * tmac/latin1 (latin1-tr): Undo any previous mapping.
1749         * tmac/troffrc: Load `composite.tmac'.
1750         * tmac/Makefile.sub (NORMALFILES): Updated.
1752         * doc/groff.texinfo (Input Encodings): New section.
1753         * NEWS: Updated.
1755 2003-02-27  Werner LEMBERG  <wl@gnu.org>
1757         * doc/texinfo.tex: New version 2003-02-11.06.
1759         * tmac/doc-common (Dt): Don't emit warning for unknown section.
1760         * tmac/groff_mdoc.man: Fix description of `Dt'.
1762 2003-02-26  Egil Kvaleberg  <egil@kvaleberg.no>
1764         * font/devps/prologue.ps: Fix for included Postscript that does
1765         a setpagedevice -- which is now safely ignored.
1767         * NEWS: Updated.
1769         * src/devices/grops/ps.cc: Now sets the page size in the generated
1770         document.  This is done in two ways: Via a %%-comment for gv and
1771         the like, and via a PageSize and setpagedevice for programs that
1772         understands Postscript proper, like ps2pdf.
1774         * src/devices/grops/ps.h: New broken-flag to avoid page size
1775         definition, if required.
1777         * src/devices/grops/grops.man: New broken-flag 16 mentioned.
1779         * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
1780         Not really necessary due to the fix in prologue.ps, but cleaner:
1781         Such information does not belong in an .eps file.
1783         * doc/Makefile.sub: See doc/Makefile.in.
1785 2003-02-26  Ralph Corderoy  <ralph@inputplus.co.uk>
1787         * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
1788         instead of P1 since the latter is broken in some versions of netpbm.
1789         * configure: Updated.
1791 2003-02-26  Larry Kollar  <kollar@alltel.net>
1793         Make man pages more customizable.
1795         * tmac/an-old.tmac (FT): New register holding footer distance from
1796         bottom.
1797         (HF): New string holding the default heading font.
1798         (TH): Handle registers `IN' and `SN' set on the command line.
1799         Use `FT'.
1800         (PT, BT): New strings to customize header and footer lines.
1801         (an-header, an-footer): Use them.
1802         (SH, SS): Use `HF'.
1803         * tmac/groff_man.man: Document changes.
1805         * doc/groff.texinfo: Document man changes.
1806         Document Ultrix extensions of man.
1808 2003-02-26  Werner LEMBERG  <wl@gnu.org>
1810         * src/roff/troff/input.cc (do_width, do_if_request): Reset
1811         `have_input' after changing back to old environment.
1813         * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
1814         function up to be defined before first call.  This is necessary to
1815         avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
1817         * src/utils/afmtodit/afmtodit.pl: Make script search for files in
1818         the default font directory also.  Based on a patch from James
1819         J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
1820         * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
1821         * src/utils/afmtodit/afmtodit.man: Document it.
1823         * NEWS: Updated.
1825         * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
1827 2003-02-25  Gaius Mulley  <gaius@glam.ac.uk>
1829         * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
1830         (GROFF_PNMTOPS_NOSETPAGE): New macro.
1831         * configure.ac: Use it.
1832         * configure: Regenerated.
1833         * Makefile.in: Updated.
1835         * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
1836         (CLEANADD): Add www.tmac-sed.
1837         (pnmtops_nosetpage): Define default.
1838         (install_data): Handle www.tmac-sed and substitute
1839         @PNMTOPS_NOSETPAGE@.
1840         (stamp-sed): Add www.tmac.
1841         * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
1842         It now breaks URLs at suitable places.
1843         (www:substring_ok): New register set by...
1844         (www:@test_substring): New macro.
1845         (www:error): New alias to www-error.
1846         (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
1847         New macros.
1848         (URL): Use www:url_breaks.
1849         (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
1850         (CDS, CDE): New macros.
1852 2003-02-25  Werner LEMBERG  <wl@gnu.org>
1854         * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
1855         buffer overflow.
1857 2003-02-24  Werner LEMBERG  <wl@gnu.org>
1859         Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
1860         can be negative also.
1862         * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
1863         `int16'.
1864         (read_char_table): Avoid negative ascenders.
1865         (output_charset): Add cast.
1866         * font/devlj4/*: Regenerated.
1868         Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
1869         possible.
1871         * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
1872         * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
1873         of `<>'.
1874         * font/devdvi/*: Regenerated.
1876         Map `la' and `ra' to U+27E8 and U+27E9.  These two characters have
1877         normal width, while the previously used characters (U+2329 and
1878         U+232A) are classified as wide due to canonical equivalence with the
1879         CJK punctuation characters U+3008 and U+3009.
1881         * font/devutf8/R.proto: Updated.
1882         * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
1884         * man/groff_char.man: Simplify handling of table traps by
1885         introducing `start block' and `end block' macros.
1886         (Ns, Ne, 2s, 2e, Ds, De): New macros.
1887         (DL): Make it work with Unix troff also.
1888         Fix code values of `la' and `ra'.
1890         * tmac/dvi.tmac: Define `<>' for CW and CWI.
1892 2003-02-23  Gaius Mulley  <gaius@glam.ac.uk>
1894         * src/devices/grohtml/post-html.cc (element_list::~element_list):
1895         New destructor, fixing a major memory leak.
1897 2003-02-22  Werner LEMBERG  <wl@gnu.org>
1899         * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
1900         to be in conformance with Unicode 3.0 and newer.
1902         * font/devlj4/generate/text.map: Add `Eu'.
1903         * font/devlj4/generate/special.map: Flip `*e' and `+e'.
1904         * font/devlj4/S: Regenerated.
1906         * man/groff_char.man: Completely rewritten.
1908         * doc/groff.texinfo: Fix description of request and macro arguments.
1910 2003-02-20  Gaius Mulley  <gaius@glam.ac.uk>
1912         Valgrind fixes.
1914         * src/devices/grohtml/html-table.cc (html_table::~html_table):
1915         Deallocate `columns' list.
1916         * src/devices/grohtml/post-html.cc (char_block::~char_block):
1917         New destructor.
1918         (text_glob::text_glob_html, text_glob::text_glob_special,
1919         text_glob::text_glob_line, text_glob::text_glob_auto_image,
1920         text_glob::text_glob_tag): Avoid memory leaks.
1921         (text_glob::remember_table): Free memory before reassigning.
1923 2003-02-19  Werner LEMBERG  <wl@gnu.org>
1925         Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
1926         alias `hbar'), the Planck constant over two pi.
1928         * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
1929         `+e' for position 34.
1930         * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
1931         `u2662' and `u2661'.
1932         * font/devdvi/{MI,S}: Regenerated.
1933         * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
1934         * font/devlbp/*: Add `hbar' alias.
1935         * font/devlj4/generate/special.map: Ditto.
1936         * font/devlj4/S: Regenerated.
1937         * font/devps/generate/symbolchars: Add `+e'.
1938         * font/devps/generate/textmap: Fix PS name for `-h'.
1939         Add `hbar' alias.
1940         * font/devps/symbolmap: Regenerated.
1942         * src/devices/grops/ps.cc (transform_fill): Removed since unused.
1944         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
1945         `-h', `hbar'.
1946         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
1947         `-h'.
1949         * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
1950         `hbar'.
1951         * tmac/tty-char.tmac: Add `+e'.
1953 2003-02-17  Werner LEMBERG  <wl@gnu.org>
1955         Another round trying to really fix problems with `have_input'.
1957         * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
1958         (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
1960         * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
1961         handling if both foreground and background colors are default.
1963         * doc/groff.texinfo (Debugging): Document .lf differences to
1964         AT&T troff.
1966 2003-02-16  Werner LEMBERG  <wl@gnu.org>
1968         * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
1969         null-bytes in created string.
1971         * src/roff/troff/input.cc (lookup_color, interpolate_macro,
1972         alias_macro, lookup_request): Improve warning messages.
1974         * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
1975         not `strdup'.
1976         Free `last_image_filename'.
1978         * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
1979         `buffer'.
1980         (imageList::createPage, imageList::createImage): Use `free', not
1981         `a_delete'.
1982         (imageItem::~imageItem): Free `imageName'.
1983         (addRegDef): Use `strsave', not `strdup'.
1984         (get_resolution): Free `pathp'.
1986 2003-02-15  Werner LEMBERG  <wl@gnu.org>
1988         * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
1989         to `dummy'.
1991 2003-02-14  Werner LEMBERG  <wl@gnu.org>
1993         Add memory management for colors to deallocate unnamed colors
1994         properly.
1996         * src/include/color.h (color): New members `free_list' and `next'.
1997         New member functions `new' and `delete'.
1998         Add destructor.
1999         * src/libs/libgroff/color.cc: Implement it.
2001         * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
2002         for array size of new operator.
2004         * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
2005         redundant comparison.
2007         * src/roff/troff/input.cc (word_space_node::reread,
2008         hmotion_node::reread): Avoid warning about unused parameter.
2009         (reset_output_registers): Remove redundant parameter.
2010         (define_color): Undo change 2003-02-12.
2012         * src/roff/troff/reg.h: Updated.
2014         * src/roff/troff/node.cc (troff_output_file::really_print_line,
2015         output_file::put_filename, real_output_file::really_put_filename,
2016         ascii_output_file::really_print_line,
2017         break_char_node::get_hyphen_list): Avoid warning about unused
2018         parameter.
2019         (suppress_node::tprint): Updated.
2021         * configure.ac: Check declaration for rand() and srand().
2022         * configure: Regenerated.
2024         * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
2025         conditionally.
2026         * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
2027         and srand().
2029         * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
2030         to avoid compiler warnings.
2032         * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
2033         unused.
2035         * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
2036         is unused.
2037         * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
2038         (unused) parameter.
2039         Updated all callers.
2041         * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
2042         is unused.
2043         * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
2044         * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
2046         * src/devices/grohtml/post-html.cc (html_printer::emit_line):
2047         Parameter is unused.
2048         (html_printer::add_table_end): Define parameter conditionally.
2049         * src/devices/grohtml/output.cc (simple_output::special): Parameter
2050         is unused.
2052         * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
2053         (lbp_printer::set_char): Last parameter is unused.
2055         * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
2057 2003-02-13  Werner LEMBERG  <wl@gnu.org>
2059         New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
2060         Make \D'f ...' move horizontally again for backwards compatibility.
2061         Replace it with \D'Fg ...' where appropriate to avoid dependency
2062         on horizontal resolution.
2064         * src/roff/troff/input.cc (do_get_long_name): New function.
2065         (get_long_name): Call it.
2067         (read_draw_node): Handle `\D'Fx ...' by calling ...
2068         (read_color_draw_node): New function.
2070         (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
2071         `end'.
2072         Pass it to `do_get_long_name' which is used instead of
2073         `get_long_name'.
2075         * src/libs/libdriver/input.cc (color_from_Df_command): Remove
2076         unnecessary value guard.
2077         (parse_D_command) <'f'>: Add horizontal shift.
2079         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
2080         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
2081         (FILL_MAX): Removed.
2083         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2084         Updated.
2086 2003-02-12  Werner LEMBERG  <wl@gnu.org>
2088         * src/roff/troff/input.cc (do_name_test, do_expr_test,
2089         do_zero_width): Push `\n' if closing delimiter is missing.
2091         (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
2092         <'F'>: Make \F non-transparent at the beginning of line.
2093         (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
2094         token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
2095         `have_input'.
2097         (define_color): Free color in case of reassignment.
2099         * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
2100         @DefescListEnd): Use @Var, not @var.
2101         Fix all calls.
2103         * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
2105         * src/preproc/pic/object.cc (object_spec::~object_spec): Free
2106         `shaded' and `outlined' arrays.
2107         (object_spec::object_spec): Initialize `shaded' and `outlined'.
2108         (graphic_object::set_fill_color, graphic_object::set_outline_color):
2109         Use strsave.
2110         (closed_object::set_fill_color): Ditto.
2111         * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
2112         instead of strdup.
2113         (troff_output::reset_color): Use a_delete instead of free.
2114         * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
2116 2003-02-11  Werner LEMBERG  <wl@gnu.org>
2118         * doc/groff.texinfo: Improve documentation of `ad'.
2119         Document that \D'f...' is dependent on the horizontal resolution.
2120         * man/groff_diff.man: Improve documentation of \D'f...'.
2122         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
2123         compensating \h'...' for \D'f ...' since the latter no longer moves
2124         current position.
2125         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
2127 2003-02-10  Werner LEMBERG  <wl@gnu.org>
2129         Improve error messages for `x F' (and `F') commands.
2131         * src/include/error.h: Add declaration for
2132         `current_source_filename'.
2133         * src/libs/libgroff/filename.cc: Add `current_source_filename'.
2134         * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
2135         parameter for source file string.
2136         Updated all callers.
2138         * src/libs/libdriver/input.cc: Add `current_source_filename'.
2139         (remember_source_filename): New function.
2140         (parse_x_command <'F'>, do_file <'F'>): Use it.
2142 2003-02-09  Werner LEMBERG  <wl@gnu.org>
2144         Make grotty not emit warnings about unknown colors more than
2145         necessary.
2147         * src/devices/grotty/tty.cc: Include `ptable.h'.
2148         (TTY_MAX_COLORS): Removed.
2149         (DEFAULT_COLOR_IDX): Defined to -1.
2150         (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
2151         (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
2152         Change `tty_colors' to be a ptable.
2153         First arg of `put_color' is now `char'.
2154         New functions `make_rgb_string' and `tty_color'.
2155         (tty_printer::tty_printer): Use `tty_color'.
2156         (tty_printer::color_to_idx): Return value is now `char'.
2157         Use `tty_color'.
2159         * src/include/color.h (color): Add `print_color' member function.
2160         * src/libs/libgroff/color.cc (color::print_color): Implement it.
2162 2003-02-08  Werner LEMBERG  <wl@gnu.org>
2164         Valgrind fixes.
2166         * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
2167         encoding file.
2169         * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
2170         assume that value has been allocated with `new[]', thus use
2171         `a_delete' for deallocation.
2173         * src/libs/libdriver/input.cc (get_integer_arg,
2174         get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
2175         where appropriate.
2177         * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
2178         * src/libs/libgroff/nametoindex.cc
2179         (character_indexer::named_char_index): Use `new <type>[1]'.
2181         * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
2182         <type>[1]'.
2183         * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
2184         (split_text): Use `a_delete'.
2186         * src/preproc/pic/pic.y (define_label, define_variable): Use `new
2187         <type>[1]'.
2189         * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
2190         harmless memory leak.
2191         (hyphen_trie::read_patterns_file): Initialize `buf'.
2192         * src/roff/troff/node.cc (troff_output_file::troff_output_file):
2193         Initialize `current_fill_color'and `current_glyph_color'.
2194         * src/roff/troff/glyphuni.cc
2195         (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
2196         * src/roff/troff/uniuni.cc
2197         (unicode_decompose_init::unicode_decompose_init): Ditto.
2198         * src/roff/troff/uniglyph.cc
2199         (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
2201 2003-01-26  Werner LEMBERG  <wl@gnu.org>
2203         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
2204         `access' before calling `unlink'.
2205         (do_file): Handle __EMX__.
2207         * src/include/nonposix.h: Handle __EMX__.
2209         * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
2210         (fontpath,tmacpath): Use it.
2211         (MDEFINES): Add it.
2212         Sorted alphabetically.
2214         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
2215         @SEP@.
2216         * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
2217         @SEP@.
2219 2003-01-27  Werner LEMBERG  <wl@gnu.org>
2221         * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
2222         New files, copied from gnulib.
2223         * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
2224         * configure.ac: Updated.
2225         * configure: Regenerated.
2227         * src/include/config.hin: Regenerated.
2228         * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
2229         Don't define `strcasecmp' as `strcmp'.
2230         [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
2231         Dont define `strncasecmp' as `strncmp'.
2233         * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
2234         Removed.
2236 2003-01-26  Werner LEMBERG  <wl@gnu.org>
2238         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
2239         s/unline/unlink/.
2241 2003-01-25  Werner LEMBERG  <wl@gnu.org>
2243         * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
2245 2003-01-24  Werner LEMBERG  <wl@gnu.org>
2247         Add US-english hyphenation exceptions (converted from Barbara
2248         Beeton's hyphenation exception log reports which appear irregularly
2249         in TUGBoat).
2251         * tmac/hyphen.us: Updated to latest version.
2252         * tmac/README: Updated.
2253         * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
2254         * tmac/troffrc: Load `hyphenex.us'.
2255         * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
2256         * doc/groff.texinfo: Updated.
2258 2003-01-23  Werner LEMBERG  <wl@gnu.org>
2260         Improve hyphenation slightly.  This is a first step in redesigning
2261         the hyphenation algorithm to make it more flexible (e.g. allowing
2262         kerns and ligatures between the hyphenation character and the
2263         following character -- while not used normally in English, other
2264         languages like German would benefit).
2266         * src/roff/troff/env.cc (environment::hyphenate_line): Use
2267         assertion instead of if-clause.
2268         Let `get_hyphen_list' return the number of involved characters in
2269         the hyphenation pattern instead of computing it directly (which
2270         often yields too small values).
2271         * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
2272         * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
2273         parameter.
2275 2003-01-22  Werner LEMBERG  <wl@gnu.org>
2277         Fixing a bug which caused groff to hang if the hyphenation exception
2278         dictionary tried to grow.
2280         * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
2281         hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
2282         pointer to dictionary.
2284 2003-01-20  Werner LEMBERG  <wl@gnu.org>
2286         * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
2287         negative left italic correction.
2288         * src/utils/afmtodit/afmtodit.man: Document it.
2290         * font/devps/generate/Makefile (RFLAG): Add `-m'.
2291         * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
2292         S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
2294         * NEWS: Updated.
2296 2003-01-16  Werner LEMBERG  <wl@gnu.org>
2298         * NEWS: Updated.
2300 2003-01-16  Jörgen Grahn  <jgrahn@algonet.se>
2302         * src/preproc/refer/refer.man: Mention REFER environment variable.
2304 2003-01-05  Werner LEMBERG  <wl@gnu.org>
2306         Similar to \[is], the square root glyph (\[sr]) and the square root
2307         extension glyph (\[radicalex]) are now text symbols.  The new
2308         mathematical versions are called \[sqrt] and \[sqrtex],
2309         respectively.
2311         * font/devX*/S: Regenerated.
2312         * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
2313         * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
2314         * font/devdvi/EX, font/devdvi/S: Regenerated.
2315         * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
2316         * font/devlj4/generate/special.map: Add `sqrt'.
2317         * font/devlj4/S: Regenerated.
2318         * font/devps/generate/textmap: Add `sqrt'.
2319         * font/devps/S, font/devps/symbolmap: Regenerated.
2321         * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
2322         SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
2323         * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
2324         overlap horizontally.
2326         * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
2327         * tmac/dvi.tmac: Add `sr', and `sqrtex'.
2328         Fix `radicalex'.
2330         * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
2331         and `sqrtex' are overlapping glyphs.
2333 2003-01-04  Werner LEMBERG  <wl@gnu.org>
2335         * font/devdvi/generate/texsy.map: Add `is'.
2336         * font/devps/symbolmap: Regenerated.
2337         * font/devdvi/*TC, MI, S: Regenerated.
2339         * tmac/dvi.tmac: Remove `is'.
2341 2003-01-03  Werner LEMBERG  <wl@gnu.org>
2343         `is' is now a text symbol (only relevant for dvi).  The math variant
2344         can be accessed with `integral'.
2346         * font/devX*/S: Regenerated.
2347         * font/devdvi/generate/texex.map: Remove `is'.
2348         * font/devdvi/EX: Updated.
2349         * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
2350         * font/devlj4/generate/special.map: Ditto.
2351         * font/devlj4/S: Regenerated.
2352         * font/devps/generate/textmap: Add `integral'.
2353         * font/devps/S: Regenerated.
2355         * tmac/dvi.tmac: Define `is'.
2357         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
2359         * src/preproc/tbl/main.cc (process_format): Fix error message.
2361 2003-01-02  Werner LEMBERG  <wl@gnu.org>
2363         * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
2364         * font/devps/textmap: Fix entries for `ne' and `nc'.
2365         * font/devps/symbolmap: Regenerated.
2367         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
2368         src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
2369         `38', `58', `78', `-+', `|=', `nc', `ne'.
2371         * tmac/dvi.tmac: Add `nm', `ne', `nc'.
2372         Use `schar' for `aq'.
2373         * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
2374         * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
2375         * tmac/tty.tmac: Add `ne'.
2377         * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
2378         for fallback glyphs.
2380 2002-12-29  Werner LEMBERG  <wl@gnu.org>
2382         Add glyph `|='.
2384         * font/devX*/*: Regenerated.
2385         * font/devdvi/generate/ec.map: Remove `eq'.
2386         * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
2387         Assign `|=' to position 39.
2388         * font/devdvi/*EC, S: Regenerated.
2389         * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
2390         * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
2391         Assign `|=' to position 549.
2392         * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
2393         `equalmath'.
2394         Add `uni2243' for `|='.
2396         * tmac/ec.tmac: Add `eq'.
2397         * tmac/dvi.tmac: Add `=~'.
2398         * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
2399         `|='.
2401 2002-12-21  Werner LEMBERG  <wl@gnu.org>
2403         * font/devdvi/generate/tc.map: Remove `**'.
2404         * font/devdvi/*TC: Regenerated.
2405         * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
2406         `78', `<<', `>>'.
2407         * font/devutf8/NOTES: Updated.
2409         * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
2410         Don't give default parameter to `set_macro'.
2411         * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
2412         instead of `set_macro'.
2413         (charinfo::setx_macro): Implement it.
2414         (charinfo::set_macro): Don't change `mode'.
2416         * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
2417         * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
2418         * tmac/dvi.tmac: Define `!=' with `.schar'.
2420 2002-12-20  Werner LEMBERG  <wl@gnu.org>
2422         * font/devX*/S: Regenerated.
2423         * font/devdvi/generate/ec.map: Remove `pl'.
2424         * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
2425         * font/devdvi/*{TC,EC}: Regenerated.
2426         * font/devhtml/R.proto: Add `-+'.
2427         Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
2428         * font/devlbp/*: Remove `or'.
2429         * font/devlj4/generate/special.map: Remove `or'.
2430         * font/devlj4/S: Regenerated.
2431         * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
2432         `seveneighths', `threeeighths'.
2433         Remove `plusmath'.
2434         Replace `minusplus' with `uni2213'.
2435         * font/devps/symbolmap: Regenerated.
2436         * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
2437         Add `-+'.
2439         * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
2440         function.
2441         * src/roff/troff/node.cc (troff_output_file::put_char_width):
2442         Call glyph_color and fill_color even if tcommand_flag isn't set.
2443         (make_node, node::add_char): Check not ci->is_fallback but
2444         ci->is_normal.
2446         * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
2447         * tmac/ec.tmac: Add .rchar entry for `f/'.
2448         Don't remove `12', `14', `34'.
2449         Define `pl' to be always roman.
2450         * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
2451         Define `18', `38', `58', `78'.
2452         * tmac/tty.tmac: Add `-+'.
2453         * tmac/dvi.tmac: Define `f/'.
2454         (dvi-frac): Use `f/'.
2455         * tmac/X.tmac (X-frac, X-frac-mono): New macros.
2456         Define `18', `38', `58', `78'.
2458 2002-12-15  Colin Watson  <cjwatson@debian.org>
2460         * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
2462 2002-12-10  Werner LEMBERG  <wl@gnu.org>
2464         Add glyph `tno', a textual variant of `no'.
2466         * font/devX*/*: Regenerated.
2467         * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
2468         * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
2469         * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
2470         * font/devdvi/*: Regenerated.
2471         * font/devlbp/*: Add `tno'.
2472         * font/devlj4/generate/tex.map: Replace `no' with `tno'.
2473         * font/devlj4/*: Regenerated.
2474         * font/devps/generate/textmap: Replace `no' with `tno'.
2475         * font/devps/generate/symbolchars: Add `no'.
2476         * font/devps/*: Regenerated.
2478         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
2480         * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
2481         * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
2483         * NEWS: Updated.
2485         * tmac/dvi.tmac: Replace most `\\' with `\E'.
2486         Add definition for `sd'.
2487         * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
2489         * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
2491 2002-12-08  Werner LEMBERG  <wl@gnu.org>
2493         * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
2494         mode to avoid rounding errors.
2495         (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
2497         * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
2498         src/roff/troff/troff.man: Improve documentation of -T.
2500 2002-12-07  Jeff Conrad  <jeff_conrad@msn.com>
2502         * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
2503         (run_pipeline) [_WIN32]: Provide working function without `fork'.
2505 2002-12-06  Werner LEMBERG  <wl@gnu.org>
2507         * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
2508         glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
2509         Scaling Euro.sansserif glyphs down to have the same height as
2510         digits.
2511         Removed unnecessary points; added some extrema.
2513         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
2514         Regenerated.
2516 2002-12-04  Werner LEMBERG  <wl@gnu.org>
2518         * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
2519         and `Euro.symbol.bold.slanted'.
2520         Improve some glyph offsets and widths.
2521         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
2522         Regenerated.
2523         * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
2524         typo.
2525         * font/devps/generate/sfdtopfa.pe: Generate PFA in current
2526         direcory.
2528         * tmac/europs.tmac: Updated to new glyph indices.
2529         Use Euro.symbol for font familiy `A'.
2531         * doc/groff.texinfo: Minor improvements.
2533 2002-12-02  Werner LEMBERG  <wl@gnu.org>
2535         * font/devdvi/generate.tc.map: s/%O/%0/.
2536         * font/devdvi/*TC: Regenerated.
2538         * src/roff/troff/div.cc (init_div_requests): Sorted.
2540         * tmac/dvi.tmac: Remove `Ye'.
2541         * tmac/ec.tmac: Remove `Ye'.
2542         Add .rchar entry for `de'.
2544         * man/groff.man, man/groff_diff.man: Document register `.pe'.
2545         * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
2546         * NEWS: Updated.
2548 2002-11-30  Werner LEMBERG  <wl@gnu.org>
2550         Add PS font for various Euro glyphs.
2552         * font/devps/generate/freeeuro.sfd: New master font file for
2553         pfaedit.
2554         * font/devps/generate/sfdtopfa.pe: New conversion script for
2555         pfaedit.
2556         * font/devps/generate/Makefile (FONTS): Add `EURO'.
2557         (EURO, freeeuro.afm, freeeuro.pfa): New rules.
2558         * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
2559         `freeeuro.sfd'.
2560         * font/devps/EURO: Generated from `freeeuro.afm'.
2561         * font/devps/download: Add `freeuro.pfa'.
2562         * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
2563         `freeeuro.pfa'.
2565         * tmac/europs.tmac: New file.
2566         * tmac/ps.tmac: Include `europs.tmac'.
2567         * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
2569 2002-11-29  Werner LEMBERG  <wl@gnu.org>
2571         * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
2572         * font/devdvi/S: Regenerated.
2573         * font/devhtml/R.proto: Fix `CR' and `ci'.
2574         Add `OK'.
2575         * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
2576         Remove `bs'.
2577         * font/devps/symbolmap: Regenerated.
2578         * font/devutf8/R.proto: Fix `CR' and `ci'.
2579         Add `OK'.
2580         * font/devutf8/NOTES: Updated.
2582         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
2583         `ci'.
2584         Add `OK'.
2585         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
2587         * tmac/dvi.tmac: Add `lh' and `rh'.
2588         * tmac/Xps.tmac: Fix `lh' and `rh'.
2589         * tmac/X.tmac: Add `OK'.
2590         * tmac/lj4.tmac: Ditto.
2592 2002-11-24  Werner LEMBERG  <wl@gnu.org>
2594         * font/devX*/S: Regenerated.
2595         * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
2596         `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
2597         * font/devdvi/generate/texsy.map: Remove `or' glyph.
2598         * font/devdvi/S: Regenerated.
2599         * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
2600         `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
2601         `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
2602         `bracketleftbt', `bracketrighttp', `bracketrightex',
2603         `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
2604         `braceex', `braceleftex', `bracerightex', `bracerighttp',
2605         `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
2606         `rb', and `bv'.
2607         * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
2608         * font/devutf8/NOTES: Updated.
2609         * font/devlj4/generate/special.map: Add glyph `braceex'.
2610         * font/devlj4/S: Regenerated.
2612         * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
2614 2002-11-14  Werner LEMBERG  <wl@gnu.org>
2616         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
2617         and `vA'.
2618         Fix code for `an'.
2619         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
2621         * doc/texinfo.tex: New version from texinfo 4.3.
2622         * doc/groff.texinfo: Updated for texinfo 4.3.
2623         Use @tie{} where appropriate.
2624         * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
2625         * font/devdvi/generate/tc.map: Remove `rn'.
2626         * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
2627         * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
2628         Fix code for `an'.
2629         * font/devX100/*, font/devX100-12/*, font/devX75/*,
2630         font/devX75-12/*: Regenerated.
2632         * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
2633         Use .char (again) for `br', `ul', `rn', `or', and `ru'.
2634         Improve definition of `an'.
2635         * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
2636         `ru'.
2637         * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
2638         * tmac/X.tmac: Add definition for `or'.
2639         * tmac/Xps.tmac: Undo change 2002-11-05.
2640         * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
2642 2002-11-11  Werner LEMBERG  <wl@gnu.org>
2644         * src/roff/troff/node.cc (troff_output_file::put_char): Always
2645         call flush_tbuf.
2647 2002-11-10  Werner LEMBERG  <wl@gnu.org>
2649         Added three new requests `schar', `fschar', and `rfschar'.  `schar'
2650         defines a glyph which is searched after the check for fonts declared
2651         with `.special' (and before the check for all mounted special
2652         fonts).  `fschar' defines a glyph for a particular font which is
2653         searched after the check for fonts declared with `.fspecial' (and
2654         before the check for fonts declared with `.special').  `rfschar'
2655         removes glyphs defined with `fschar'.
2657         * src/roff/troff/token.h (char_mode): New enum.
2658         Declare do_define_character.
2659         * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
2660         `mode'.
2661         (charinfo::is_fallback): Updated.
2662         (charinfo::is_special): New method.
2663         * src/roff/troff/input.cc (do_define_character): Add and use
2664         optional second parameter used as a prefix for font-specific glyph
2665         names.
2666         (define_character, define_fallback_character): Updated.
2667         (define_special_character): New function.
2668         (init_input_requests): Add `schar'.
2669         (charinfo::charinfo, charinfo::set_macro): Updated.
2670         * src/roff/troff/node.cc: Include `stringclass.h'.
2671         (make_glyph_node): Handle special glyphs defined with `.schar' and
2672         `.fschar'.
2673         (define_font_special_character, remove_font_special_character): New
2674         functions.
2675         (init_node_requests): Sorted.
2676         Add `fschar' and `rfschar'.
2677         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2678         Document new requests.
2680         * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
2681         * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
2683 2002-11-08  Werner LEMBERG  <wl@gnu.org>
2685         Added new font `SC' (cmtex10) to devdvi.
2687         * devdvi/generate/Makefile (FONTS): Add `SC'.
2688         (SC): New rule.
2689         * devdvi/generate/textex.map: New map file for cmtex.
2690         * devdvi/SC: New.
2691         * devdvi/Makefile.sub (DEVFILES): Updated.
2692         * tmac/dvi.tmac: Add fspecial entries for SC.
2693         Add `MI', `S' and `CW' to the `special' call.  Otherwise, `SC' is
2694         found before `S' since the font position of `SC' is lower due to the
2695         gaps in DESC's `font' line.
2696         * tmac/ec.tmac: Add a `special' call.
2697         * NEWS: Updated.
2699         * font/devhtml/R.proto: Remove double entry for `ti'.
2700         * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
2701         * tmac/tty-char.tmac: Remove entry for `bq'.
2702         * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
2703         * tmac/ec.tmac: Don't remove `aq' glyph.
2704         * tmac/X.tmac: Fix entry for `em'.
2705         Add entries for `fo' and `fc'.
2706         * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
2708         * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
2709         documentation of `special' and `fspecial' requests.
2711 2002-11-05  Werner LEMBERG  <wl@gnu.org>
2713         * font/devascii/R.proto, font/devcp1047/R.proto,
2714         font/devlatin1/R.proto: Remove entry for `.i'.
2715         * font/devdvi/generate/textt.map: Add entry for `ad'.
2716         * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
2717         font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
2718         We need this for getting kerning values to compose `/l' and `/L'.
2719         * font/devdvi: Regenerated font definition files for CM fonts.
2720         * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
2721         * font/devutf8/R.proto: Ditto.
2722         Remove double entry for `ti'.
2724         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
2725         for (groff) ligatures, `la', and `ra'.
2726         Add "'C", "'c", `IJ', and `ij'.
2727         Remove double entry for `ti'.
2728         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
2729         double entries.
2730         Add "'C", "'c", `IJ', and `ij'.
2731         Fix entries for (groff) ligatures, `la', and `ra'.
2733         * tmac/ps.tmac (ps-achar): New macro.
2734         Define "'c" and "'C".
2735         * tmac/tty.tmac: Add entry for `.i'.
2736         * tmac/X.tmac (X-achar): New macro.
2737         Define "'c", "'C", and `:Y'.
2738         Add entries for `IJ' and `ij'.
2739         * tmac/Xps.tmac (Xps-achar): New macro.
2740         Define "'c" and "'C".
2741         Add entries for `IJ' and `ij'.
2742         * tmac/lbp.tmac (lbp-achar): New macro.
2743         Add fallback characters for all groff ligatures and many other
2744         glyphs.
2745         * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
2746         Add entries for `/l' and `/L'.
2747         Define "'c" and "'C".
2748         Add entries for `IJ' and `ij'.
2750 2002-11-02  Larry Kollar  <kollar@alltel.net>
2752         * PROBLEMS: Document how to solve Mac OS X compilation problems.
2754 2002-11-02  Werner LEMBERG  <wl@gnu.org>
2756         Adding support for composite glyphs: \[xxx yyy ...] and the
2757         `composite' request.
2759         * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
2760         to Unicode-based glyph names.
2761         * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
2762         glyph names to groff glyph names.
2763         * src/roff/troff/uniuni.cc: New file for canonically decomposing
2764         Unicode-based glyph names.
2765         * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
2766         for handling Unicode glyph names.
2767         * src/roff/troff/input.cc: Include unicode.h.
2768         (composite_glyph_name): New function.
2769         (token::next) <'['>: Handle Unicode glyph names and composite
2770         glyphs.
2771         (composite_dictionary): New dictionary for the `composite' request.
2772         (composite_request): Implement `composite' request.
2773         (init_input_requests): Add `composite'.
2774         Alphabetically sorted.
2775         * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
2776         commented out).
2777         (init_env_requests): Alphabetically sorted.
2778         Removed `tas' and `tar' (already commented out).
2779         * src/roff/troff/Makefile.sub: Updated.
2781 2002-10-31  Ruslan Ermilov  <ru@FreeBSD.org>
2783         * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
2784         of options.
2786 2002-10-29  Werner LEMBERG  <wl@gnu.org>
2788         Fix computation of .trunc register.  Additionally, its value (and
2789         the value of the .ne register) is now always set before entering the
2790         trap.
2792         * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
2793         `needed_space' before calling `space'.
2794         (top_level_diversion::space): Remove special code for 'sp before the
2795         first page.
2796         Call `begin_page' with the discarded space as a parameter.
2797         (top_level_diversion::begin_page): Add optional parameter to set
2798         `truncated_space'.
2799         * src/roff/troff/div.h: Updated.
2801         * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
2802         \n[.ne].
2804         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
2805         (LP): Remove superfluous call to `br'.
2806         * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
2807         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
2809 2002-10-26  Werner LEMBERG  <wl@gnu.org>
2811         * tmac/doc-ditroff: Remove useless switch/variable -rC.
2812         (doc-setup-header): Don't set page register `%'.
2813         * tmac/doc-nroff: Remove variable `C'.
2814         (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
2815         (doc-setup-header): Don't set page register `%'.
2816         Don't call `bp'.
2817         * tmac/doc-common (doc-header): Call `ns'.
2818         (doc-paragraph): Protect .sp with .br so that it survives traps
2819         possibly set by the user.
2820         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
2822         * tmac/doc*: Replace ' with . for consistency if no effect.
2824 2002-10-26  Werner LEMBERG  <wl@gnu.org>
2826         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
2827         so that it survives traps possibly set by the user.
2829         * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
2830         (troff_output_file::set_font): Call flush_tbuf if necessary.
2831         (troff_output_file::fill_color, troff_output_file::glyph_color): Call
2832         flush_tbuf and do_motion only if necessary.
2833         (troff_output_file::start_special,
2834         troff_output_file::put_char_width, troff_output_file::put_char,
2835         troff_output_file::draw): Updated.
2836         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
2837         vmotion_node::tprint): Undo change 2002-10-23.
2839 2002-10-25  Werner LEMBERG  <wl@gnu.org>
2841         * tmac/www.tmac (DC): Fix case of overlapping images.
2843 2002-10-23  Werner LEMBERG  <wl@gnu.org>
2845         * src/roff/troff/node.cc (troff_output_file::fill_color,
2846         troff_output_file::glyph_color): Set current color before testing
2847         color_flag.
2848         (troff_output_file::put_char_width, troff_output_file::put_char,
2849         troff_output_file::draw): Don't call flush_tbuf and/or do_motion
2850         before glyph_color.
2851         (troff_output_file::file_color, troff_output_file::glyph_color):
2852         Call do_motion.
2853         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
2854         vmotion_node::tprint): Move first, then call fill_color.
2856 2002-10-20  Werner LEMBERG  <wl@gnu.org>
2858         * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
2859         possible to use multiple main macro packages.
2861 2002-10-19  Werner LEMBERG  <wl@gnu.org>
2863         * src/devices/grops/ps.cc (cmyk_flag): New global variable.
2864         (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
2865         (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
2866         is set.
2867         * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
2868         `where' construction since `cmyksetcolor' is a PS Level 2 operator.
2870 2002-10-16  Werner LEMBERG  <wl@gnu.org>
2872         * NEWS, doc/webpage.ms: Updated.
2874 2002-10-14  Werner LEMBERG  <wl@gnu.org>
2876         * src/roff/troff/node.cc (troff_output_file::put_char_width,
2877         troff_output_file::put_char, troff_output_file::fill_color,
2878         troff_output_file::glyph_color): Handle case where color pointer
2879         is null.
2881 2002-10-13  Ruslan Ermilov  <ru@FreeBSD.org>
2883         Add the new -r option to grotty.  It is similar to the -i option
2884         except it tells grotty(1) to use the "reverse video" attribute to
2885         render italic fonts.
2887         * src/devices/grotty/tty.cc (reverse_flag): New global variable.
2888         (SGR_REVERSE, SGR_NO_REVERSE): New macros.
2889         (tty_printer::make_underline, tty_printer::put_color,
2890         tty_printer::end_page): Use it.
2891         (main): Add -r switch.
2892         (usage): Updated.
2893         * src/devices/grotty/grotty.man: Document it.
2895 2002-10-11  Ruslan Ermilov  <ru@FreeBSD.org>
2897         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
2898         cast to `unsigned char' to properly read patterns with 8bit
2899         characters.
2901 2002-10-08  Werner LEMBERG  <wl@gnu.org>
2903         * REVISION: Increased to 2.
2905 Version 1.18.1 released
2906 =======================
2908 2002-10-08  Werner LEMBERG  <wl@gnu.org>
2910         * doc/webpage.ms, NEWS: Updated.
2912 2002-10-07  Werner LEMBERG  <wl@gnu.org>
2914         * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
2915         suppress additional whitespace after the header.
2917         * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
2918         with NetBSD.
2920         * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
2922 2002-10-07  Ruslan Ermilov  <ru@FreeBSD.org>
2924         * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
2925         (Dt): Use it to improve language localization (especially Russian
2926         and French).
2928 2002-10-07  Daniel Senderowicz  <daniel@synchrods.com>
2930         * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
2931         * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
2932         drawing commands.
2933         * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
2934         curve type.
2935         Call `picurve' for BSPLINE.
2936         (HGPrintElt): Handle BSPLINE.
2937         * src/preproc/grn/README: Document it.
2939 2002-10-03  Werner LEMBERG  <wl@gnu.org>
2941         * src/roff/troff/node.cc (break_char_node::col): New variable.
2942         Updated constructor.
2943         (space_node::tprint, word_space_node::tprint): Call `fill_color'
2944         unconditionally.
2945         (space_node::space_node): Remove assertion.
2946         (break_char_node::add_self): Pass color argument to space node.
2947         * src/roff/troff/input.cc (token::add_to_node_list, token::process):
2948         Ditto.
2949         * src/roff/troff/env.cc (environment::do_break,
2950         environment::add_padding): Ditto.
2952 2002-10-02  Werner LEMBERG  <wl@gnu.org>
2954         Redesigning color support in troff.  Colors are no longer
2955         represented as separate nodes but are now part of glyph nodes and
2956         friends.  This fixes the current formatting misbehaviour due to the
2957         changes introduced on 2002-09-20.  Some extra code is necessary for
2958         proper grotty support: Without adding color variables to
2959         space-related nodes, the background color would be changed too late.
2961         * src/roff/troff/node.h, src/roff/troff/node.cc:
2962         s/current_pagecolor/current_fill_color/.
2963         s/current_glyphcolor/current_glyph_color/.
2964         (glyph_color_node, fill_color_node): Removed.
2965         (node::get_glyph_color, node::get_fill_color): New virtual member
2966         functions.
2967         (space_node::col): New variable.
2968         Updated constructors of space_node and derived classes accordingly.
2969         (hmotion_node::col): New variable.
2970         Updated constructors of hmotion_node and space_char_hmotion_node
2971         accordingly.
2972         (vmotion_node::col): New variable.
2973         Updated constructor accordingly.
2974         (draw_node::gcol, draw_node::fcol): New variables.
2975         Updated constructor accordingly.
2976         (special_node::gcol, special_node::fcol): New variables.
2977         Updated constructors accordingly.
2978         (troff_output_file::put_char, troff_output_file::put_charwidth,
2979         troff_output_file::draw): Set glyph and fill color.
2980         (troff_output_file::start_special): Set glyph and fill color.
2981         Always set current font.
2982         (troff_output_file::fill_color, troff_output_file::glyph_color):
2983         Don't call `do_motion'.
2984         (glyph_node::gcol, glyph_node::fcol): New variables.
2985         Updated constructors of glyph_node and ligature_node accordingly.
2986         (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
2987         member functions.
2988         (glyph_node::merge_glyph_node,
2989         kern_pair_node::add_discretionary_hyphen,
2990         node::add_discretionary_hyphen): Updated.
2991         (break_char_node::merge_self): Updated.
2992         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
2993         vmotion_node::tprint): Handle color.
2994         (make_glyph_node, make_node, node::add_char): Updated.
2996         * src/roff/troff/env.cc (environment::space_newline,
2997         environment::space, environment::output_line, environment::do_break,
2998         environment::make_tab_node, environment::add_padding, title):
2999         Updated.
3000         (environment_switch, environment_copy): Don't add color nodes.
3002         * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
3003         nothing.
3004         (token::next): Updated.
3005         \m and \M now are as transparent as \s.
3006         (process_input_stack, token::add_to_node_list, token::process,
3007         read_draw_node): Updated.
3008         (charinfo_to_node_list): Don't add color nodes.
3010         * doc/groff.texinfo: Updated.
3012 2002-09-27  Ruslan Ermilov  <ru@FreeBSD.org>
3014         * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
3015         strings.
3017 2002-09-27  Colin Watson  <cjwatson@debian.org>
3019         * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
3021 2002-09-23  Werner LEMBERG  <wl@gnu.org>
3023         * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
3024         appropriate.
3025         (DEFAULT_LINEWIDTH_FACTOR): New macro.
3026         (linewidth_factor): New global variable.
3027         (lbp_printer::set_line_thickness): Fix case for size < 0, using
3028         linewidth_factor.
3029         (long_options): Add -w/--linewidth option.
3030         (usage): Updated.
3031         (main): Handle -w option to set linewidth_factor.
3032         (lbp_printer::lbp_printer): Initialize req_linethickness, not
3033         line_thickness.
3035         * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
3037 2002-09-22  Paco Andrés Verdú  <pandres@dragonet.es>
3039         Fixed a bug in the line thickness setting code.
3041         * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
3042         variable.
3043         (lbp_printer::set_line_thickness): Pass environment as second
3044         parameter.
3045         Implement it actually.
3046         (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
3047         and `set_line_thickness, depending on the current font size.
3049 2002-09-21  Werner LEMBERG  <wl@gnu.org>
3051         Some Debian patches.
3053         * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
3054         * src/roff/troff/node.cc (bracket_node::copy): Initialize
3055         `list->last'.
3057 2002-09-20  Werner LEMBERG  <wl@gnu.org>
3059         * configure: Regenerated with autoconf 2.54.
3061 2002-09-20  Werner LEMBERG  <wl@gnu.org>
3063         * src/roff/troff/env.h (environment): Rename cur_glyph_color to
3064         glyph_color.
3065         Rename cur_fill_color to fill_color.
3066         * src/roff/troff/env.cc: Updated.
3068 2002-09-20  Werner LEMBERG  <wl@gnu.org>
3070         * src/roff/troff/env.cc (title): Copy color status after processing
3071         title.
3072         * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
3073         fill color nodes to reset colors properly.
3075         * tmac/www.tmac (DC): Fix color handling.
3077         * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
3078         * doc/groff.texinfo: Fixing documentation of `tl' request.
3079         * doc/webpage.ms: Updated.
3081 2002-09-19  Werner LEMBERG  <wl@gnu.org>
3083         * src/roff/troff/env.cc (environent_switch, environment_copy):
3084         Emit glyph and fill color nodes to initialize colors properly.
3086 2002-09-17  Colin Watson  <cjwatson@debian.org>
3088         * src/roff/troff/env.cc (environment::set_glyph_color,
3089         environment::set_fill_color): Fix typo which prevented \m[] work
3090         correctly.
3092 2002-09-17  Werner LEMBERG  <wl@gnu.org>
3094         Add left and right italic correction to non-slanted PS fonts.  This
3095         is an experimental feature to improve image rendering of grohtml.
3097         * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
3098         ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
3099         * font/devps/*: All non-slanted fonts regenerated.
3100         * NEWS: Updated.
3102 2002-09-16  Werner LEMBERG  <wl@gnu.org>
3104         Add a site-specific font directory.
3106         * Makefile.in (localfontdir, legacyfontdir): New variables.
3107         (fontpath): Use them.
3108         (MDEFINES, uninstall_dirs): Updated.
3109         * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
3110         Remove `FONTPATH' and `MACROPATH'.
3112         * src/roff/troff/troff.man, NEWS: Updated.
3113         * doc/groff.texinfo (Font Directories): New section.
3114         Other minor fixes.
3116         * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
3117         src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
3118         src/preproc/grn/grn.man: Minor fixes.
3120         * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
3121         Remove unused variable.
3123 2002-09-11  Werner LEMBERG  <wl@gnu.org>
3125         * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
3126         * man/groff_out.man: Fix documentation of 'N'.
3128 2002-09-09  Gaius Mulley  <gaius@glam.ac.uk>
3130         * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
3131         * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
3132         set.
3133         * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
3134         (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
3135         (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
3136         * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
3137         PRE_TAG>: Call `begin' with `FALSE'.
3139 2002-09-09  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
3141         * src/libs/libgroff/string.cc (string::extract): Fix position of
3142         terminating null byte.
3144 2002-09-08  Werner LEMBERG  <wl@gnu.org>
3146         Add global option `nospaces' to tbl so that leading and trailing
3147         spaces in data items are ignored.
3149         * src/libs/libgroff/string.cc (string::remove_spaces): New member
3150         function to remove leading and trailing spaces.
3151         * src/include/stringclass.h: Updated.
3153         * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
3155         * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
3156         option.
3157         Fix typo in error messages.
3158         (process_data): Implement `nospaces' option.
3159         * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
3161 2002-09-07  Werner LEMBERG  <wl@gnu.org>
3163         * src/include/config.hin: Add `HAVE_ISATTY'.
3164         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
3165         `fname' member.
3166         * src/libs/libgroff/tmpname.cc: Include `time.h'.
3167         * src/libs/libdriver/input.cc (Char): Add `operator==' and
3168         `operator!=' for `char'.
3169         * doc/groff.texinfo: Replace @ifnottex block for top node with
3170         @ifhtml block.
3172 2002-09-06  Werner LEMBERG  <wl@gnu.org>
3174         * doc/Makefile.in (.texinfo.html): Add -I switch.
3175         * doc/groff.texinfo: Add @ifnottex block for top node to make
3176         translation to HTML work.
3178 2002-09-05  Gaius Mulley  <gaius@glam.ac.uk>
3180         * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
3181         (get_papersize, determine_vertical_offset): Removed.
3182         (char_buffer::do_image): Always specify letter size.
3183         (main): Updated.
3184         (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
3185         -sPAPERSIZE.
3187 2002-09-05  Werner LEMBERG  <wl@gnu.org>
3189         * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
3190         default indentation.
3192 2002-09-04  Gaius Mulley  <gaius@glam.ac.uk>
3194         * src/preproc/html/pre-html.cc (imageList::createPage): Use
3195         -sPAPERSIZE for gs.
3196         (generateImages): Clean up push-back buffer.
3198 2002-09-04  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
3200         * doc/groff.texinfo: Minor fixes.
3202 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
3204         * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
3205         (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
3206         (gsPaper): Removed.
3207         (determine_vertical_offset): Use LETTER_LENGTH.
3208         (createPage): Moved to ...
3209         (imageList::createPage): This.
3210         Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
3211         (imageList::getMaxX): New function.
3212         (createImage): Moved to ...
3213         (imageList::createImage): This.
3214         (imageList::createImages): New function.
3215         (generateImages): Read `maxx' directly.
3216         Updated.
3217         (scanArguments): Don't specify `gsPaper' for `-o'.
3218         (makeTempFiles): Call `xtmpfile' with the last argument set to
3219         `TRUE'.
3221 2002-08-24  Werner LEMBERG  <wl@gnu.org>
3223         * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
3224         (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
3225         * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
3226         * src/preproc/html/pushback.cc: Include nonposix.h.
3227         * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
3228         conditionally.
3230 2002-08-23  Werner LEMBERG  <wl@gnu.org>
3232         Use $(OBJEXT) for the object file extension.
3234         * Makefile.comm (.SUFFIXES): Add .obj.
3235         (.cc.obj, .c.obj): New implicit rules.
3236         * Makefile.in (OBJEXT): New variable, initialized from autoconf.
3237         (MDEFINES): Add EXEEXT and OBJEXT.
3238         * */Makefile.sub: s/.o/.$(OBJEXT)/.
3240 2002-08-22  Werner LEMBERG  <wl@gnu.org>
3242         * INSTALL: Mention texinfo 4.2 as a prerequisite.
3244 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
3246         * src/devices/grohtml/post-html.cc (colType): Make enum global to
3247         the file.
3248         (html_printer::update_min_max, html_printer::add_table_end): New
3249         methods.
3250         (html_printer::lookahead_for_tables): Use them.
3251         Reset page offset correctly.
3252         (html_printer::~html_printer): Add creation of creator comment up.
3254 2002-08-20  Werner LEMBERG  <wl@gnu.org>
3256         * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
3257         * man/groff_tmac.man: Fix typos.
3258         * man/groff_font.man: Minor reordering.
3259         * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
3260         * contrib/groffer/groffer.man: Fix typos.
3262 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
3264         Avoid endless loops while scanning for tables.
3266         * src/devices/grohtml/post-html.cc (list::insert): Set
3267         ptr->right->left.
3268         (html_printer::next_horiz_pos): Add `text_glob' argument; update
3269         all callers.
3270         Return immediately if that argument is NULL.
3271         (html_printer::calc_nf): Don't test if `g' is NULL.
3272         (html_printer::lookahead_for_tables): Use
3273         `glyphs.move_right_get_data'.
3274         Don't test if `g' is NULL.
3276 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
3278         A better fix, replacing fix 2002-08-15, for increasing SIZE.
3280         * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
3281         a pointer.
3282         (char_block::char_block): Allocate `buffer'.
3283         (char_buffer::add_string): Use it.
3285 2002-08-15  Werner LEMBERG  <wl@gnu.org>
3287         * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
3288         src/devices/grodvi/grodvi.man: Document default line thickness.
3290 2002-08-15  Gaius Mulley  <gaius@glam.ac.uk>
3292         * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
3293         8192.
3295 2002-08-14  Werner LEMBERG  <wl@gnu.org>
3297         * doc/webpage.ms: Updated.
3299 2002-08-09  Werner LEMBERG  <wl@gnu.org>
3301         * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
3302         unbreakable space.
3304 2002-08-08  Aaron Campbell  <aaron@monkey.org>
3306         * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
3307         (&& -> &).
3309 2002-08-08  Werner LEMBERG  <wl@gnu.org>
3311         * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
3312         tok.next().
3313         (read_gray): Ditto.
3314         Don't push back a space but a newline onto the stack.
3316 2002-08-07  Gaius Mulley  <gaius@glam.ac.uk>
3318         Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
3319         inadvertently.
3321         * src/devices/grohtml/post-html.cc (html_printer::end_font,
3322         html_printer::start_font): Handle them.
3323         * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
3324         reset bold and tt.
3325         (html_text::do_bold): Don't reset italic and tt.
3326         (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
3327         * font/devhtml/DESC.proto: Add those fonts.
3328         * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
3330 2002-08-07  Werner LEMBERG  <wl@gnu.org>
3332         * MORE.STUFF: Added gpresent.
3334         * tmac/trace.tmac: Show nesting level by a corresponding amount of
3335         whitespace before printing the logging message.
3337 2002-07-31  Colin Watson  <cjwatson@debian.org>
3339         * src/devices/grohtml/html-table.cc (html_table::finish_row):
3340         Initialize `n' to zero.  This fixes a segfault on ARM.
3342 2002-07-30  Werner LEMBERG  <wl@gnu.org>
3344         * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
3346 2002-07-29  Werner LEMBERG  <wl@gnu.org>
3348         * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
3349         final semicolon.
3351 2002-07-28  Colin Watson  <cjwatson@debian.org>
3353         * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
3354         `.ps'.
3355         (html_printer::html_printer): Initialize `pointsize'.
3357 2002-07-26  Werner LEMBERG  <wl@gnu.org>
3359         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
3360         gnu.png.
3361         (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
3362         (gnu.eps): Add -rle switch to pnmtops.
3363         (distfiles): Add gnu.eps and gnu.png.
3365 2002-07-25  Petter Reinholdtsen  <pere@hungry.com>
3367         * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
3368         Add `operator!='.
3370 2002-07-24  Werner LEMBERG  <wl@gnu.org>
3372         * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
3373         ' \+' but '  *' for sed.
3374         (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
3376 2002-07-23  Werner LEMBERG  <wl@gnu.org>
3378         * doc/groff.texinfo: Document `papersize' keyword.
3379         * NEWS, man/groff_font.man: Updated.
3381 2002-07-23  Colin Watson  <cjwatson@debian.org>
3383         Extend papersize keyword to accept more than a single entry.  The
3384         first valid will be used.
3386         * src/libs/libgroff/font.cc (font::load_desc): Implement it.
3387         (font::scan_papersize): Really skip final newline.
3388         * src/preproc/html/pre-html.cc (get_papersize): Ditto.
3390 2002-07-23  Werner LEMBERG  <wl@gnu.org>
3392         * configure.ac: Test for isatty.
3393         * configure: Regenerated.
3394         * src/include/posix.h: Check HAVE_ISATTY.
3395         * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
3396         * src/utils/lookbib/lookbib.cc: Include posix.h.
3397         Don't declare isatty.
3399 2002-07-21  Werner LEMBERG  <wl@gnu.org>
3401         * NEWS: Add `output' request.
3403         * REVISION: Increased to 1.
3405 Version 1.18.0 released
3406 =======================
3408 2002-07-19  Gaius Mulley  <gaius@glam.ac.uk>
3410         Allow internal glyph indices > 0xFF in grohtml for input characters.
3412         * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
3413         as parameter.
3414         (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
3415         Updated all callers.
3416         (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
3417         (html_printer): Updated.
3419 2002-07-19  Werner LEMBERG  <wl@gnu.org>
3421         * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
3422         * font/devutf8/R.proto: Adding some missing glyphs.
3423         * font/devutf8/NOTES: Updated.
3425         * tmac/dvi.tmac: Add more composite glyphs.
3426         * tmac/html.tmac: Updated.
3428         * man/groff_char.man: Add `sum' and `product' entities.
3430         * NEWS: Updated.
3432 2002-07-18  Gaius Mulley  <gaius@glam.ac.uk>
3434         Improved table, tab, and indenting support.
3436         * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
3437         string_iterator::suppress_newline_flag): Removed.  Updated all
3438         function which have used it.
3440         * src/roff/troff/env.cc: Include `input.h'.
3441         (environment::add_node): Accept 0 as parameter.
3442         (environment::add_html_tag): Add `force' parameter.
3443         Updated all callers.
3444         (environment::add_html_tag_tabs): Ditto.
3445         For the moment, support left-aligned tabs only.
3446         (environment::make_html_tag): New function.
3447         (fill, no_fill): Set .br html tag additionally.
3448         (environment::newline): Emit `eol.ce' or `eol' tag for html.
3449         (environment::add_html_tag_eol): Removed.
3450         (tab_stops::distance_to_next_tab): Add variant for handling 
3451         nextpos'.
3452         (environment::distance_to_next_tab): Ditto.
3453         Updated all callers.
3454         (environment::handle_tab): Handle tabs for html.
3455         
3456         * src/roff/troff/env.h: Updated.
3458         * src/roff/troff/div.cc: Updated all callers of
3459         `environment::add_html_tag'.
3461         * src/devices/grohtml/html-table.cc,
3462         src/devices/grohtml/html-table.h: New files.
3464         * src/devices/grohtml/html-text.cc (html_text): New members
3465         `blank_para' and `start_space'.
3466         (html_text::issue_tag): Don't emit TABLE_TAG.
3467         Handle indentation for PRE_TAG and P_TAG.
3468         (html_text::end_tag): Updated.
3469         (html_text::table_is_void, html_text::issue_table_begin,
3470         html_text::issue_table_end): Removed.
3471         (html_text::do_push): Simplified.
3472         [DEBUGGING]: Small fix.
3473         (html_text::push_para): Add new parameter for indentation; updated
3474         all callers.
3475         Handle PRE_TAG.
3476         (html_text::do_indent, html_text::do_table, html_text::done_table,
3477         html_text::is_in_table): Removed.
3478         (html_text::do_pre): Handle P_TAG also.
3479         (html_text::shutdown): Handle p->indent.
3480         (html_text::check_emit_text): Simplified.
3481         (html_text::do_emittext): Reset `blank_para'.
3482         (html_text::do_para): Add new parameter for indentation; updated
3483         all callers.
3484         (html_text::remove_indent): New function.
3485         (html_text::do_space): Handle verbatim text properly.
3486         (html_text::ever_emitted_text, html_text::starts_with_space,
3487         html_text::remove_para_align): New functions.
3488         (html_text::dump_stack_element, html_text::dump_stack): Updated.
3490         * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
3491         Updated.
3493         * src/devices/grohtml/post-html.cc: Include html-table.h.
3494         (INDENTATION): Removed.
3495         (text_glob): Added many `is_<foo>' functions.
3496         Added table description `tab'.
3497         Added `get_arg',`get_tab_args', `remember_table', and `get_table'
3498         member functions.
3499         (list): Add `insert' and `move_to' member functions.
3500         (page): Add `insert_tag' member function.
3501         (page::dump_page) [DEBUG_TABLES]: Improved.
3502         (html_printer): Add `table' and `max_linelength' elements.
3503         Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
3504         `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
3505         `remove_tabs', `remove_courier_tabs'.
3506         (html_printer::emit_raw): Handle indentation.
3507         (html_printer::do_center, html_printer::write_header): Updated.
3508         (html_printer::is_courier_until_eol): Check for tag.
3509         (html_printer::do_linelength): Handle max_linelength.
3510         (html_printer::do_page_offset, html_printer::do_indentation): Handle
3511         fill_on.
3512         (html_printer::do_tempindent): Updated.
3513         (html_printer::do_indentedparagraph): Removed.
3514         (html_printer::do_indent): Simplified.
3515         (html_printer::do_eol): Use `ever_emitted_text'.
3516         (html_printer::do_flush, html_printer::do_links): Don't call
3517         done_table.
3518         (html_printer::do_break): Handle end_tempindent.
3519         (html_printer::troff_tag): Get argument.
3520         Don't handle `.ip'.
3521         Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
3522         (html_printer::flush_page): Call `lookahead_for_tables'.
3523         Don't call `done_table'.
3524         (html_printer::add_to_sbuf): Always call do_indent.
3526         * src/devices/grohtml/Makefile.sub: Updated.
3528         * tmac/an-old.tmac (TP): Don't handle html device specially.
3529         (an-do-tag-html): New function which will be used instead of
3530         `an-do-tag' if html device is used.
3532         * tmac/html.tmac: Call .po to pass default page offset to grohtml.
3534         * tmac/s.tmac (@IP): Don't handle html device specially.
3535         (@IP-html): New function which will be used instead of `@IP' if
3536         html device is used.
3538         * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
3539         is a hack which will eventually vanish again.
3540         (PIMG): Handle `-C' option correctly if not html.
3541         (HR): Use HTML-NS.
3543 2002-07-17  Werner LEMBERG  <wl@gnu.org>
3545         * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
3547 2002-07-14  Eric S. Raymond  <esr@thyrsus.com>
3549         * contrib/pic2graph/pic2graph.*: Use convert(1).
3550         * contrib/eqn2graph/eqn2graph.*: Minor fixes.
3552 2002-07-14  Bernd Warken  <bwarken@mayn.de>
3554         * tmac/groff_trace.man: New file.
3555         * tmac/Makefile.sub: Updated.
3556         * NEWS: Updated.
3558 2002-07-13  Werner LEMBERG  <wl@gnu.org>
3560         * src/roff/groff/groff.man: Add some cross references.
3562 2002-07-12  Werner LEMBERG  <wl@gnu.org>
3564         * src/roff/troff/input.cc (substring_request): Add warnings for
3565         string indices out of range.
3567 2002-07-11  Werner LEMBERG  <wl@gnu.org>
3569         * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
3570         * font/devdvi/*EC: Regenerated.
3572 2002-07-10  Bernd Warken  <bwarken@mayn.de>
3574         * man/groff_char.man: Updated and extended.
3576 2002-07-10  Werner LEMBERG  <wl@gnu.org>
3578         * src/roff/troff/input.cc (length_macro): Renamed to...
3579         (length_request): This.
3580         Move call of `tok.next()' to the very end, otherwise the register
3581         value hasn't been updated yet.
3582         (init_input_requests): Updated.
3584 2002-07-09  Werner LEMBERG  <wl@gnu.org>
3586         * src/roff/troff/input.cc (substring_macro): Renamed to...
3587         (substring_request): This.
3588         (init_input_requests): Updated.
3589         * src/roff/troff/request.h: Updated.
3591 2002-07-08  Robert D. Goulding  <goulding@Princeton.EDU>
3593         * src/roff/grog/grog.sh: Fix typo.
3595 2002-07-08  Werner LEMBERG  <wl@gnu.org>
3597         * win32-diffs: Updated.
3599         Handle `papersize' keyword properly in DESC.
3601         * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
3602         type.
3603         Updated all callers.
3604         * src/libs/libgroff/paper.cc: Add four more paper formats used by
3605         grolj4.
3606         * src/include/paper.h: Updated.
3608         * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
3609         Other minor C syntax fixes.
3610         (papersize, paperlength, paperwidth): Renamed to `user_*'.
3611         (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
3612         members.
3613         (lbp_printer::lbp_printer): Pass three arguments.
3614         Set paper dimensions properly.
3615         (make_printer, main): Updated.
3616         (handle_unknown_desc_command): Fix error messages.
3617         (main): Handle papersize keyword in DESC properly.
3619         * src/devices/grolj4/lj4.cc (paper_size): Renamed to
3620         `user_paper_size'.
3621         (lbp_printer::lbp_printer): Pass an argument.
3622         Set paper_size properly.
3623         (handle_unknown_desc_command): Removed.
3624         (make_printer, main): Updated.
3625         * src/devices/grolj4/grolj4.man: Minor documentation fix.
3627         * man/groff_font.man, NEWS: Updated.
3629 2002-07-07  Werner LEMBERG  <wl@gnu.org>
3631         Integrated eqn2graph, contributed by Eric S. Raymond.
3633         * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
3634         files.
3635         * Makefile.in, NEWS: Updated.
3637 2002-06-04  Werner LEMBERG  <wl@gnu.org>
3639         Changing the substring request to make it fit better with other
3640         string manipulation functions in other programming languages:
3641         Index 0 is now the first character in the string, and index -1
3642         indicates the last character.  Since this request didn't work
3643         properly anyway in the last release, it doesn't harm too much to
3644         change the syntax.
3646         * src/roff/troff/input.cc (substring_macro): Use loops to get
3647         the real string length (ignoring COMPATIBLE_SAVE and
3648         COMPATIBLE_RESTORE) and offsets.
3649         Implement change described above.
3651         * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
3652         (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
3654         * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
3656 2002-06-03  Werner LEMBERG  <wl@gnu.org>
3658         Make .chop work with .de1 and friends.  COMPATIBLE_SAVE and
3659         COMPATIBLE_RESTORE are completely ignored.
3661         * src/roff/troff/input.cc (char_list::set, char_list::get): New
3662         functions.
3663         (macro): `length' field renamed to `len'.
3664         Added new field `empty_macro' (1 if macro is empty), to be used
3665         instead of checking `len'.
3666         Updated all callers.
3667         (macro::empty): Updated.
3668         (macro::length, macro::set, macro::get): New functions.
3669         (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
3670         Set `empty_macro'.
3671         (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
3672         COMPATIBLE_RESTORE pairs.
3673         (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
3674         * src/roff/troff/request.h: Updated.
3676         * doc/groff.texinfo: Document .chop's behaviour better.
3678 2002-06-02  Werner LEMBERG  <wl@gnu.org>
3680         * doc/pic.ms: Fix documentation for the addition of positions.
3682         * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
3684 2002-06-29  Werner LEMBERG  <wl@gnu.org>
3686         Implementation of string arguments of the form \*[foo arg1 arg2 ...]
3688         * src/roff/troff/input.cc (have_string_arg): New global variable.
3689         (read_mode): New enumeration.
3690         (read_escape_name): Use it.  Update all calls.
3691         (read_long_escape_name): Use it.  Update all calls.
3692         Set have_string_arg if appropriate.
3693         (get_char_for_escape_name): Add parameter for handling space
3694         character.
3695         (interpolate_string_with_args, decode_string_args): New functions.
3696         (get_copy, token::next): Call it if necessary.
3697         (interpolate_string): Fix error message.
3699         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
3700         Document it.
3702 2002-06-24  Bernd Warken  <bwarken@mayn.de>
3704         * man/groff_tmac.man: Updated and extended.
3706 2002-06-24  Werner LEMBERG  <wl@gnu.org>
3708         * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
3710 2002-06-23  Werner LEMBERG  <wl@gnu.org>
3712         * doc/pic.ms: Improve documentation of composite block objects.
3714 2002-06-22  Werner LEMBERG  <wl@gnu.org>
3716         * src/roff/troff/input.cc (init_registers): Add three registers
3717         `seconds', `minutes', and `hours' to hold the current time.
3719         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
3720         Updated.
3722 2002-06-20  Werner LEMBERG  <wl@gnu.org>
3724         Make \X accept both `\ ' and `\~', converting them to single space
3725         characters.
3727         * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
3728         (token::unstretchable_space): New inline function.
3729         * src/roff/troff/input.cc (token::next, token::delimiter,
3730         token::description, token::add_to_node_list, token::process): Handle
3731         TOKEN_UNSTRETCHABLE_NODE.
3732         (encode_char): Handle tok.stretchable_space and
3733         tok.unstretchable_space.
3735         * NEWS, doc/groff.texinfo: Document it..
3737 2002-06-19  Werner LEMBERG  <wl@gnu.org>
3739         * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
3741         * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
3742         keyword to enable/disable SGR output.
3743         (tty_printer::change_fill_color): New function.
3744         * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
3746         * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
3747         call.
3749 2002-06-18  Werner LEMBERG  <wl@gnu.org>
3751         Add a `color' request and a `.color' register to control usage of
3752         colours.
3754         * src/roff/troff/input.cc (disable_color_flag): Replaced with...
3755         (color_flag): This (which is the inverse).
3756         (activate_color): New function.
3757         (main, init_input_requests): Updated.
3758         * src/roff/troff/troff.h, src/roff/troff/node.cc
3759         (troff_output_file::fill_color, troff_output_file::glyph_color):
3760         Updated.
3762         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
3763         Document the changes.
3765 2002-06-17  Colin Watson  <cjwatson@debian.org>
3767         Circumvent bug in autoconf 2.53 regarding top_builddir.
3769         * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
3770         * Makefile.in, doc/Makefile.in:
3771         s/@top_builddir@/@groff_top_builddir@/.
3772         * configure: Regenerated (with autoconf 2.53).
3774 2002-06-17  Werner LEMBERG  <wl@gnu.org>
3776         * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
3777         `paperwidth' and `paperlength' for the `papersize' keyword.
3779 2002-06-16  P. Alejandro Lopez-Valencia  <dradul@007mundo.com>
3781         * src/devices/grops/grops.man: Add info about Type 42 fonts.
3783 2002-06-15  Gaius Mulley  <gaius@glam.ac.uk>
3785         * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
3786         html_printer::do_linelength, html_printer::do_pageoffset,
3787         html_printer::do_indentation, html_printer::do_tempindent,
3788         html_printer::do_break, html_printer::begin_page): Clear indented
3789         text.
3790         * tmac/html.tmac: Disable hyphenation.
3792 2002-06-15  Werner LEMBERG  <wl@gnu.org>
3794         Don't produce HTML files if utility programs are missing.
3796         * Makefile.in (make_html, make_install_html): New variables.
3797         (MDEFINES): Updated.
3799         * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
3800         utility programs.
3801         * configure.ac: Use it.
3802         * configure: Regenerated.
3804         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
3805         (HTMLEXAMPLESFILES): This new variable.
3806         (EXAMPLESIMAGEFILES): Renamed to...
3807         (HTMLEXAMPLEIMAGEFILES): This.
3808         (CLEANADD): Add HTMLEXAMPLEFILES.
3809         (all): Use `make_html'.
3810         (html): New target.
3811         (install_data): Use `make_install_html'.
3812         Move html stuff to...
3813         (install_html): This new target.
3814         (uninstall_sub): Updated.
3816 2002-06-14  Bernd Warken  <bwarken@mayn.de>
3818         * src/roff/grog/Makefile.sub (grog): Renamed to...
3819         (grog.old): This.
3820         (grog): New rule to always install grog.sh as grog.
3822 2002-06-08  Bernd Warken  <bwarken@mayn.de>
3824         * src/roff/grog/grog.pl: Fix typo.
3826 2002-06-07  Werner LEMBERG  <wl@gnu.org>
3828         * doc/groff.texinfo: Add more info on .tr arguments.
3830 2002-06-05  Werner LEMBERG  <wl@gnu.org>
3832         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
3834         * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
3835         * configure: Regenerated.
3837 2002-06-05  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
3839         * src/roff/troff/symbol.cc (table_sizes): Add more values.
3841         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
3843 2002-06-04  Werner LEMBERG  <wl@gnu.org>
3845         * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
3846         is not initialized at the time we need it in case `--prefix' hasn't
3847         been set.  Check for `ac_default_prefix' also.
3848         Test for `papersize' keyword also and generalize allowed whitespace.
3849         * configure: Regenerated.
3851         * font/devps/Makefile.sub (DESC): Use `papersize' instead of
3852         `paperlength'.
3854         * src/libs/libgroff/Makefile.sub (version, revision): Replaced
3855         with...
3856         (src_version, src_revision): New variables to avoid overwriting
3857         from parent make process.
3858         (version.cc): Updated.
3860         * src/preproc/html/pre-html.cc: Include paper.h and font.h.
3861         (linebuf, linebufsize): New global variables.
3862         (sys_fatal): Use `fatal' to abort properly.
3863         (get_line): New function.
3864         (get_resolution): Use it.
3865         Improve error messages.
3866         (get_papersize): Check `papersize' also.
3867         Use `get_line'.
3868         Improve error messages.
3870 2002-06-03  Werner LEMBERG  <wl@gnu.org>
3872         * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
3873         should be removed only if builddir is not srcdir.
3874         (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
3875         (clean): Depend on `mostlyclean'.
3876         (distclean): Depend on `clean'.
3877         (realclean, extraclean): Depend on `distclean'.
3878         (.y.cc, .y.o): Simplified.  The output files are no longer written
3879         to srcdir but to builddir.
3880         * Makefile.in (MDEFINES): Add `version' and `revision'.
3881         (uninstall_dirs): Fix order of directories.
3882         * doc/Makefile.sub (version, revision): Removed.
3883         (CLEANADD): Removed grnexmpl.g, groff, groff-*.
3884         Added `HTMLDOCFILES'.
3885         (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
3886         * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
3887         src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
3888         as prefix.
3890         * doc/texinfo.tex (\authortt): New macro.
3891         (\shortcontt): Define.
3892         (\titlepage): Set \tt to \authortt while defining \authorfont.
3893         (\appendixbox): New macro.
3894         (\chapmacro, \appendixentry): Use \appendixbox to get even
3895         indentation for letters.
3896         (\summarycontents): Set \tt.
3897         (\internalpagesize): Add two arguments for real paper width and
3898         height as needed by pdfTeX.
3899         (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
3900         Updated.
3901         (\tempdima, \tempdimb): New temporary dimensions.
3902         (\pagesizesyyy): Updated.
3904 2002-06-02  Werner LEMBERG  <wl@gnu.org>
3906         Adding a new keyword `papersize' to the DESC file format (similar
3907         but not completely identical to grolbp's extension).  grops now has
3908         a -p command line option to override `papersize'.  Finally, grolbp
3909         has been adapted to the new syntax.
3911         * src/libs/libgroff/paper.cc, src/include/paper.h: New files.  It
3912         defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
3913         elements.
3914         * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
3915         (CCSRCS): Add `paper.cc'.
3917         * src/include/font.h (font): Add `papersize' element.
3918         * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
3919         (font::scan_papersize): New function.
3920         (font::load_desc): Use it for handling `papersize' keyword.
3921         * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
3923         * src/devices/grops/ps.cc: Include paper.h.
3924         (user_paper_length): New global variable.
3925         (ps_printer): Use paper length as initializer.
3926         (make_printer): Updated.
3927         (main): Handle new `-p' option.
3928         * src/devices/grops/grops.man: Updated.
3930         * src/devices/grolbp/lbp.cc: Include paper.h.
3931         s/papersizes/lbp_papersizes/.
3932         (set_papersize): Use new `papersizes' array.
3933         (handle_unknown_desc_command): Don't handle `papersize'.
3934         (main): Use `font::scan_papersize' for handling `-p' option.
3935         * src/devices/grolbp/grolbp.man: Updated.
3937         * man/groff_font.man: Document `papersize'.
3938         * NEWS: Updated.
3940 2002-05-30  Werner LEMBERG  <wl@gnu.org>
3942         * src/devices/grops/TODO: Updated.
3943         * src/devices/grops/grops.man: More info on paper formats.
3944         * man/groff_font.man: Document `paperheight' and `paperwidth'.
3946 2002-05-29  Werner LEMBERG  <wl@gnu.org>
3948         * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
3949         to list only if srcdir != currdir.
3950         (distfiles): New target.
3952         * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
3953         (NOMAKEDIRS): New variable.
3954         (DISTDIRS): Use it.
3956 2002-05-26  Werner LEMBERG  <wl@gnu.org>
3958         Add .output request, similar to \! at top-level.
3960         * src/roff/troff/input.cc (transparent): Remove unused declaration.
3961         (output_request): New function.
3962         (init_input_requests): Add it.
3963         Sorted.
3964         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
3965         Document it.
3967         * Makefile.in (MDEFINES): Add INSTALL_INFO.
3968         (prepare_examples): Fix typo.
3969         * doc/groff.texinfo (@direntry): Fix it.
3971 2002-05-25  Werner LEMBERG  <wl@gnu.org>
3973         Including the doc subdir into groff's Makefile system.
3975         * aclocal.m4 (GROFF_INSTALL_INFO): New function.
3976         * configure.ac: Use it.
3977         Generate `doc/Makefile'.
3978         * configure: Regenerated.
3980         * Makefile.in (infodir, INSTALL_INFO): New variables.
3981         (MDEFINES, uninstall_dirs): Updated.
3982         (OTHERDIRS): Add `doc'.
3983         * Makefile.comm (CLEANDIRADD): New variable.
3984         (mostlyclean): Use it.
3986         * doc/Makefile.sub, doc/Makefile.in: New files.
3987         * doc/Makefile: Removed.
3989         * NEWS, INSTALL: Updated.
3991 2002-05-24  Werner LEMBERG  <wl@gnu.org>
3993         * doc/homepage.ms: Renamed to ...
3994         * doc/webpage.ms: This.
3995         Use `.NHR'.
3997 2002-05-23  Werner LEMBERG  <wl@gnu.org>
3999         Integrating the `mom' macro package, contributed by Peter Schaffter
4000         <df191@ncf.ca>.
4002         * contrib/mom/*: New subdirectory tree.
4003         * Makefile.in (docdir, exampledir, htmldocdir): New variables to
4004         be used for documentation files.
4005         (MDEFINES, uninstall_dirs): Use them.
4006         (OTHERDIRS): Add contrib/mom.
4007         * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
4008         @HTMLDOCDIR@.
4009         * MANIFEST, NEWS: Updated.
4011 2002-05-22  Gaius Mulley  <gaius@glam.ac.uk>
4013         Change syntax of \O: \O[0] suppresses output, \O[1] enables output
4014         if at outer level; at start-up we are at outer level.
4016         * src/roff/troff/input.cc (do_suppress): Implement it.
4017         Simplify \O[3].
4019         Add option -p to show progress information.
4020         pre-grohtml will now render only one page at a time, reducing the
4021         size of needed disk resources enormously.
4023         * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
4024         (imagePageName): New global variable.
4025         (psPageName, show_progress, currentPageNo): New global variables.
4026         (html_system): Close saved stderr and stdout handles.
4027         (write_end_image): Accept a parameter to control \O escape.
4028         (write_start_image): Adapted to new \O meaning.
4029         (char_buffer::write_upto_newline): Updated.
4030         (createAllPages): Replaced with...
4031         (createPage): This new function to create a single page for images.
4032         It uses `psselect' from the psutils package.
4033         (removeAllPages): Removed.
4034         (createImage): Updated.
4035         Handle progress display.
4036         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
4037         (scanArguments): Add option -p.
4038         (makeTempFiles): Updated to create temp files for psPageName and
4039         imagePageName.
4040         (removeTempFiles): Removed.
4041         (main): Updated.
4043         * src/devices/grohtml/post-html.cc (header_desc::write_headings,
4044         html_printer::write_header): Append `\0' to `buffer'.
4045         (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
4046         (main): Handle -p.
4047         * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
4048         Handle `text_emitted'.
4049         (html_text::table_is_void): Slightly rewritten.
4050         (stop): New external symbol.
4051         (html_text::do_push) [DEBUGGING]: Use it and simplify.
4052         (html_text::shutdown): Call `dump_stack'.
4053         (html_text::do_space): Rewritten.
4054         * src/devices/grohtml/grohtml.man: Document -p and the need of
4055         `psselect'.
4057         * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
4058         new \O syntax.
4059         Call \O[0] if `ps4html' is active.
4060         * tmac/s.tmac (@EQ, @EN): Handle html better.
4061         (@TS, TE): Ditto.
4062         * tmac/html.tmac: Don't use black for background colour.
4064         * src/roff/troff/node.cc: Include `div.h'.
4065         (troff_output_file::really_print_line): Don't use `is_on'. 
4066         (troff_output_file::word_marker, troff_output_file::flush_tbuf
4067         troff_output_file::check_charinfo,
4068         troff_output_file::put_char_width, troff_output_file::put_char,
4069         troff_output_file::determine_line_limits, troff_output_file::draw,
4070         real_output_file::begin_page, glyph_color_node::tprintf,
4071         fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
4072         Use `is_on'.
4073         (troff_output_file::really_on): Call `do_motion'.
4074         (suppress_node::tprint): Use `get_page_number' instead of `%'
4075         register.
4076         Call `reset_output_registers' conditionally on `is_on'.
4078         * doc/groff.texinfo: Document new syntax of \O.
4079         * NEWS, man/groff_diff.man: Updated.
4081 2002-05-22  Werner LEMBERG  <wl@gnu.org>
4083         * MORE.STUFF: Add info about David Frey's deroff implementation.
4084         Mention troff.org.
4086 2002-05-16  Werner LEMBERG  <wl@gnu.org>
4088         Pic's `with' attribute now accepts positions.
4090         * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
4091         ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
4092         conflicts.
4093         (object_spec): Add rule for `WITH' and `position'.
4094         (relative_path): Give `corner' the precedence of `CHOP'.
4095         * src/preproc/pic/object.h (path): New members `pos' and
4096         `is_position'.
4097         * src/preproc/pic/object.cc: Updated initializers of `path'.
4098         (path::follow): Handle `is_position'.
4100         * doc/pic.ms: Completely updated grammar description.
4101         Many typographical improvements.
4103 2002-05-15  Werner LEMBERG  <wl@gnu.org>
4105         * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
4106         code of x in range 0-127) also.
4107         * doc/groff.texinfo, man/groff_diff.man: Updated.
4109         Added keywords `north', `south', `east', and `west' for corners
4110         in pic.
4112         * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
4113         and WEST.
4114         (yylex): Handle them.
4115         * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
4116         (corner): Handle them.
4118 2002-05-14  Werner LEMBERG  <wl@gnu.org>
4120         * src/devices/grops/grops.man: Clarify handling of `download' file.
4122 2002-05-11  Werner LEMBERG  <wl@gnu.org>
4124         Adding `warnscale' and `spreadwarn' requests, based on a patch from
4125         Jeffrey Friedl <jfriedl@yahoo.com>.
4127         * src/roff/troff/input.cc (spread_limit, warn_scale,
4128         warn_scaling_indicator): New global variables.
4129         (warnscale_request, spreadwarn_requests): New functions.
4130         (main): Initialize `warn_scale' and `warn_scaling_indicator'.
4131         (init_input_requests): Updated.
4132         (error_type): Add `OUTPUT_WARNING'.
4133         (do_error): Handle it.
4134         (output_warning): New warning function which shows output location.
4135         * src/roff/troff/env.h (spread_limit): New external variable.
4136         * src/roff/troff/env.cc (environment::choose_breakpoint): Use
4137         `output_warning'.
4138         (distribute_space): Emit warning if added space is larger than
4139         `spread_limit'.
4140         (environment::possibly_break_line): Emit warning if a line can't
4141         be adjusted on both sides.
4143         * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
4145 2002-05-08  Werner LEMBERG  <wl@gnu.org>
4147         * src/roff/troff/node.cc (special_node::special_node): Use
4148         env_definite_font(curenv) instead of curenv->get_font().  Otherwise
4149         \X''\% crashes, for example.
4151         * doc/groff.texinfo: Document \! and \? used at top-level.
4153 2002-05-06  Werner LEMBERG  <wl@gnu.org>
4155         * src/preproc/pic/pic.man: Fix some keyword syntax.
4156         Other minor typographical fixes.
4158         * src/roff/groff/groff.man: Fix typos.
4160 2002-05-04  Werner LEMBERG  <wl@gnu.org>
4162         * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
4163         (ShortOpt[]): This to avoid problems with refer.
4165         * doc/pic.ms: Fix typo.
4166         Fix pic grammar description.
4168         * tmac/an-old.tmac (ne): Use de1, not de.
4170 2002-05-03  Werner LEMBERG  <wl@gnu.org>
4172         * doc/groff.texinfo: Finished separation of glyphs and characters.
4173         Don't use the string `Appendix' for appendix headers (both in
4174         the text and the table of contents).
4175         * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
4176         directories.
4178         Use registers LL and LT (similar to -ms) for controlling the
4179         length of title and line, respectively, in the -man and -mdoc
4180         macro packages.
4182         * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
4183         (doc-setup-page-layout): Use \n[LL] and \n[LT].
4184         * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
4185         (TH): Use \n[LL].
4186         (an-header, an-p-footer): Use \n[LT].
4187         * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
4188         doc/groff.texinfo: Document it.
4190 2002-05-02  Werner LEMBERG  <wl@gnu.org>
4192         * doc/fdl.texi: New file.
4193         * doc/groff.texinfo: Include it.
4194         Define and use @copying.
4195         Starting with separating glyph, symbol, and character.
4197 2002-04-27  Werner LEMBERG  <wl@gnu.org>
4199         * Makefile.in (EXEEXT): Set it.
4200         * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
4201         programs.
4203         * src/include/nonposix.h: Define GS_NAME.
4204         * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
4206         Some preliminary changes for EMX support under OS/2.
4208         * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
4209         __EMX__ similar to __MSDOS__.
4210         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
4212 2002-04-25  Werner LEMBERG  <wl@gnu.org>
4214         * doc/groff.texinfo: Integrated groff_out.man.
4215         Some macro fixes.
4217 2002-04-23  Werner LEMBERG  <wl@gnu.org>
4219         * man/groff_out.man: Minor fixes.
4221 2002-04-23  Werner LEMBERG  <wl@gnu.org>
4223         * doc/groff.texinfo: Moving @cindex entries after @Def* to get
4224         correct page references.
4225         Fixed many index entries.
4227 2002-04-23  Bernd Warken  <bwarken@mayn.de>
4229         * man/roff.man: Enlarged.
4231 2002-04-22  Werner LEMBERG  <wl@gnu.org>
4233         * doc/groff.texinfo: More examples, other fixes.
4235 2002-04-20  Werner LEMBERG  <wl@gnu.org>
4237         * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
4238         will now form a chain, e.g.
4240           .pi foo
4241           .pi bar
4243         is now the same as
4245           .pi foo | bar
4247         This is for compatibility with plan 9's troff.
4249         * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
4250         with UNIX troff.
4251         * NEWS: Updated.
4253         * doc/groff.texinfo: Add documentation of remaining requests and
4254         registers.
4256 2002-04-19  Werner LEMBERG  <wl@gnu.org>
4258         * doc/groff.texinfo: Add documentation of remaining escapes.
4260         * font/devdvi/generate/tc.map: Remove entry for `sr'.
4261         * font/devdvi/*TC: Regenerated.
4263 2002-04-18  Werner LEMBERG  <wl@gnu.org>
4265         * src/roff/troff/input.cc (token::next): Make \H behave consistently
4266         if not in compatibility mode, i.e., increment relative to the
4267         previous height.
4268         * doc/groff.texinfo: Updated accordingly.
4270 2002-04-17  Werner LEMBERG  <wl@gnu.org>
4272         * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
4274 2002-04-16  Bernd Warken  <bwarken@mayn.de>
4276         * src/roff/groff/groff.man: Improve documentation of -P option.
4277         Other minor fixes.
4279 2002-04-15  Werner LEMBERG  <wl@gnu.org>
4281         Add new escape \F to switch font family.
4283         * src/roff/troff/input.cc (token::next): Handle \F.
4284         * src/roff/troff/env.cc (environment::set_family): Handle
4285         `interrupted' flag.
4286         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
4287         Document it.
4289 2002-04-14  Werner LEMBERG  <wl@gnu.org>
4291         * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
4292         spaces in tags.
4294 2002-04-13  Werner LEMBERG  <wl@gnu.org>
4296         Implement \f[] as an alternative to \fP.  Change \mP and \MP to
4297         \m[] and \M[], respectively.
4299         * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
4300         (symbol::symbol): Handle NULL string and empty string differently.
4301         * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
4302         * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
4303         Add optional parameter.
4304         Updated calling functions.
4305         (get_copy, do_glyph_color, do_fill_color, token::next): Use
4306         `symbol::is_empty'.
4307         * src/roff/troff/env.cc (environment::set_font): Ditto.
4309         * src/preproc/pic/troff.cc (troff_output::set_fill,
4310         troff_output::reset_color: Updated.
4312         * tmac/www.tmac: Updated.
4314         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
4315         doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
4316         Updated.
4318         * tmac/Xps.tmac: Remove some redundant code.
4320         * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
4321         tmac/dvi.tmac, contrib/groffer/groffer.man, man/roff.man,
4322         man/groff_out.man, man/groff.man, man/groff_diff.man,
4323         src/roff/groff/groff.man: Replace \f[P] with \f[].
4325 2002-04-13  Bernd Warken  <bwarken@mayn.de>
4327         * src/include/printer.h, src/libs/libdriver/printer.cc
4328         (printer::change_fill_color): New member function.
4329         * src/libs/libdriver/input.cc (parse_D_command): Use it.
4331 2002-04-12  Werner LEMBERG  <wl@gnu.org>
4333         * doc/groff.texinfo: Completed pass on gtroff reference.
4335 2002-04-11  Werner LEMBERG  <wl@gnu.org>
4337         * doc/groff.texinfo: More fixes.
4339 2002-04-11  Bernd Warken  <bwarken@mayn.de>
4341         * src/include/color.h: Decorate with `const'.
4342         Use `size_t'.
4343         Include `stddef.h'.
4344         * src/libs/libgroff.color.cc: Decorate with `const'.
4345         Use `size_t'.
4346         (color::color): Initialize members.
4347         * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
4348         command according to the documentation.
4350         * man/groff_out.man: Updated.
4351         Minor fixes.
4353 2002-04-11  Gaius Mulley  <gaius@glam.ac.uk>
4355         * src/preproc/html/pre-html.cc (write_start_image): Remove
4356         redundant output.
4357         * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
4359         * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
4360         \C'hy' caused an assertion failure.
4362         * src/roff/troff/env.cc (environment::environment): Initialize
4363         `emitted_node'.
4364         (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
4366 2002-04-10  Werner LEMBERG  <wl@gnu.org>
4368         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
4369         Document pvs request and .pvs register.
4371 2002-04-09  Werner LEMBERG  <wl@gnu.org>
4373         * doc/groff.texinfo: Improve and fix documentation of diversions
4374         and environments.
4376 2002-04-08  Werner LEMBERG  <wl@gnu.org>
4378         * doc/groff.texinfo: Fix documentation of drawing functions.
4379         Other minor fixes.
4381 2002-04-07  Werner LEMBERG  <wl@gnu.org>
4383         * doc/groff.texinfo: Better documentation of double quotes as
4384         arguments.
4385         Other minor fixes.
4387 2002-04-06  Werner LEMBERG  <wl@gnu.org>
4389         * man/groff_font.man: Document names of special characters better.
4390         * doc/groff.texinfo: Minor improvements.
4392         * tmac/lbp.tmac: Load latin1.tmac.
4393         * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
4395         * font/devX*/*: Regenerated (all chars > 0x80 removed).
4397 2002-04-05  Werner LEMBERG  <wl@gnu.org>
4399         * tmac/tty.tmac: Don't use shc request.
4400         * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
4401         * NEWS: Updated.
4403         * man/groff_diff.man: Minor fixes.
4405         * font/devlbp/*: Remove all `charXXX' entities.
4407         * src/libs/libgroff/font.cc (font::~font): Deallocate
4408         `special_device_coding'.
4409         (font::load): Use `new' for allocating `special_device_coding'.
4410         * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
4411         Removed unused member.
4413 2002-04-05  Werner LEMBERG  <wl@gnu.org>
4415         * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
4416         (resource_manager::do_begin_binary,
4417         resource_manager::do_begin_data): Use it.
4419         * doc/texinfo.tex: Updated to version 4.2.
4421         * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
4422         (token::zero_width_break): New inline function.
4423         * src/roff/troff/input.cc (token::next): Use it.
4424         (token::description): Updated.
4425         (encode_char): Ignore `\%', `\&', `\)', and `\:'.
4426         (token::add_to_node_list, token::process): Use it.
4427         * NEWS, doc/groff.texinfo: Updated.
4429         * src/preproc/eqn/over.cc (over_box::output): Fix typo.
4430         * tmac/tty.tmac: Add missing backslash.
4432 2002-04-04  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
4434         * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
4435         `.ps' register instead of `.s' to handle fractional point sizes.
4436         * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
4437         limit_box::output): Ditto.
4438         * src/preproc/eqn/other.cc (size_box::compute_metrics,
4439         size_box::output): Ditto.
4440         * src/preproc/eqn/over.cc (over_box::compute_metrics,
4441         over_box::output): Ditto.
4442         * src/preproc/eqn/script.cc (script_box::compute_metrics,
4443         script_box::output): Ditto.
4444         * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
4445         sqrt_box::output): Ditto.
4447 2002-04-03  Michael Selway  <mas@ssl.co.uk>
4449         * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
4450         Fix typo.
4452 2002-04-03  Werner LEMBERG  <wl@gnu.org>
4454         * doc/homepage.ms: Reduce title size.
4455         * doc/groff.texinfo: Fix documentation of .t register.
4456         Fix handling of colon.
4457         Fix `\' vs. `\\'.
4459         * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
4460         only if page length is positive to avoid a loop.
4462         * tmac/an-old.tmac (ne): Increase page length to avoid problems with
4463         tbl.
4465 2002-04-02  P. Alejandro Lopez-Valencia  <dradul@yahoo.com>
4467         * src/include/nonposix.h, src/roff/groff/pipeline.c:
4468         s/__CYGWIN32__/__CYGWIN__/.
4470 2002-03-28  Gaius Mulley  <gaius@glam.ac.uk>
4472         * doc/gnu.xpm: New image contributed by Emily Mulley.
4473         * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
4474         (homepage.html): Be dependent on gnu.eps.
4475         * doc/homepage.ms: Updated to new image.
4477         * src/devices/grohtml/post-html.cc (html_printer): New member
4478         `sbuf_prev_hpos'.
4479         (html_printer::flush_sbuf, html_printer::set_char): Set it.
4480         (html_printer::sbuf_continuation): Use it.
4482 2002-03-28  Werner LEMBERG  <wl@gnu.org>
4484         * src/libs/libgroff/getopt.c: Updated to latest version.
4486         * tmac/README: More on hyphen.tex license.
4488 2002-03-26  Larry Kollar  <kollar@alltel.net>
4490         * doc/groff.texinfo: Add documentation of most missing requests.
4492 2002-03-25  Werner LEMBERG  <wl@gnu.org>
4494         Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
4495         of `+-', `mu', and `di', respectively.
4497         * font/devascii/R.proto, font/devutf8/R.proto,
4498         font/devlatin1/R.proto, font/devhtml/R.proto,
4499         font/devcp1047/R.proto, font/devlpb/*: Add them.
4500         * font/devps/generate/textmap: Ditto.
4501         * font/devps/*: Regenerated.
4502         * font/devlj4/generate/text.map: Add them.
4503         * font/devlj4/*: Regenerated.
4504         * font/devdvi/generate/tc.map: Use them.
4505         * font/devdvi/generate/texsy.map: Add them.
4506         * font/devdvi/*: Regenerated.
4507         * font/devX*/*: Regenerated.
4509         * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
4510         tmac/tty-char.tmac: Updated.
4512         * NEWS, man/groff_char.man: Updated.
4514 2002-03-24  Werner LEMBERG  <wl@gnu.org>
4516         * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
4517         tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
4518         * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
4519         we use `.fchar' in dvi.tmac.
4520         * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
4521         * tmac/Xps.tmac: Simplify some char definitions.
4522         Add definition for \[f/].
4523         * man/groff_char.man: Updated for new X.tmac.
4525         * tmac/README: New file.
4527 2002-03-23  Phil Lobbes  <phil@perkpartners.com>
4529         * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
4530         internal .y.o rule took precendence over the .y.cc rule, compiling
4531         the yacc files with gcc instead of g++.
4533 2002-03-23  Werner LEMBERG  <wl@gnu.org>
4535         * tmac/dvi.tmac: Add replacement font for `CB'.
4537         * tmac/doc.tmac: s/request/macro/ in messages.
4538         (doc-generic-macro): Improve error message.
4539         * tmac/groff_mdoc.man: Minor improvements.
4541 2002-03-22  Werner LEMBERG  <wl@gnu.org>
4543         * doc/groff.texinfo: Document possible conflict between `tr' and
4544         `char' requests.
4546 2002-03-21  Werner LEMBERG  <wl@gnu.org>
4548         Improve handling of hyphenation patterns.  It is now possible to
4549         use most of TeX's pattern files unmodified.  To make the process
4550         more flexible, a new request `hpfcode' has been added which
4551         provides a character code mapping for the `hpf' request.  See
4552         comment before hpf_getc() for more details.
4554         * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
4555         functions.
4556         (read_patterns_file): Additional parameter for exception dictionary.
4557         Extended to recognize \pattern, \hyphenation, and \endinput.
4558         (do_hyphenation_patterns_file): Updated.
4559         * src/roff/troff/env.h (hpf_code_table): New extern.
4561         * src/roff/troff/input.cc (hpf_code_table): New array.
4562         (init_hpf_code_table, hyphenation_patterns_file_code): New
4563         functions.
4564         (hyphenation_code): Handle translation from `trin' correctly.
4565         (main, init_input_requests): Updated.
4566         (charinfo::set_translation): Handle hyphenation code also.
4568         * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
4569         inline function.
4571         * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
4572         char' is used for offsets in hyphenation exceptions.
4574         * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
4576         * NEWS, man/groff_diff.man, man/groff.man: Document it.
4578 2002-03-20  Larry Kollar  <kollar@alltel.net>
4580         * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
4581         requests.
4583 2002-03-18  Werner LEMBERG  <wl@gnu.org>
4585         * tmac/html.tmac: Fix serious typo.
4587 2002-03-17  Larry Kollar  <kollar@alltel.net>
4589         * doc/groff.texinfo: Add documentation for `writec' request.
4591 2002-03-17  Werner LEMBERG  <wl@gnu.org>
4593         Added request `hpfa' to append hyphenation patterns.
4595         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
4596         parameter `append'.
4597         (hyphenation_patterns_file): Renamed to...
4598         (do_hyphenation_patterns_file): This.
4599         (hyphenation_patterns_file, hyphenation_patterns_file_append): New
4600         functions.
4601         (init_hyphen_requests): Updated.
4602         * NEWS, man/groff.man, man/groff_diff.man: Document it.
4604 2002-03-16  Werner LEMBERG  <wl@gnu.org>
4606         Added request `writec' in analogy to `tmc'.
4608         * src/roff/troff/input.cc (write_request): Renamed to...
4609         (do_write_request): This.
4610         Added one parameter.
4611         (write_request, write_request_continue): New functions.
4612         (init_input_requests): Updated.
4613         * NEWS, man/groff.man, man/groff_diff.man: Document it.
4615         * font/devdvi/DESC.in (sizes): Allow all sizes in the range
4616         5-10000pt.
4617         * NEWS: Document it.
4619 2002-03-15  Werner LEMBERG  <wl@gnu.org>
4621         * man/groff.man: Add writem request.
4623         Add request `trin' (translate input) to make `.asciify' work
4624         correctly.  This is necessary since `charXXX' entity names are no
4625         longer hardcoded in font definition files.
4627         * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
4628         `translate_input' members.
4629         (charinfo::set_asciify_code, charinfo::get_asciify_code,
4630         charinfo::set_translation_input): New methods.
4631         (charinfo::set_translation): Add third argument.
4632         * src/roff/troff/input.cc (charinfo:set_translation): Set
4633         `asciify_code'.
4634         (do_translate): Add second argument.
4635         (translate_input): New function.
4636         (init_input_requests): Updated.
4637         * src/roff/troff/node.cc (glyph_node::asciify,
4638         composite_node::asciify): Use `get_asciify_code'.
4640         * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
4642         * NEWS, man/groff.man, man/groff_diff.man: Updated.
4644 2002-03-14  Larry Kollar  <kollar@alltel.net>
4646         * doc/groff.texinfo: Improve documentation of .RS and .RE.
4648 2002-03-14  Werner LEMBERG  <wl@gnu.org>
4650         Add a new request `sizes' similar to the `sizes' command in DESC
4651         files.
4653         * src/roff/troff/env.cc (override_sizes): New function.
4654         (init_env_requests): Use it.
4655         * src/roff/troff/token.h: Export `read_string'.
4656         * NEWS, man/groff_diff.man, man/groff.man: Document it.
4658 2002-03-12  Werner LEMBERG  <wl@gnu.org>
4660         * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
4662 2002-03-10  Werner LEMBERG  <wl@gnu.org>
4664         * tmac/pspic.tmac: Add support for -Tdvi.
4665         * tmac/dvi.tmac: Include pspic.tmac.
4666         * src/devices/grodvi/grodvi.man: Document it.
4667         * NEWS: Updated.
4669         * font/devlj4/generate/Makefile: Fix URL of metric files.
4671 2002-03-09  Werner LEMBERG  <wl@gnu.org>
4673         * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
4675 2002-03-09  Larry Kollar  <kollar@alltel.net>
4677         * tmac/groff_ms.man: Add documentation for RS and RE macros.
4679 2002-03-08  Werner LEMBERG  <wl@gnu.org>
4681         * doc/groff.texinfo: Fixes for texinfo 4.1.
4683 2002-03-07  Werner LEMBERG  <wl@gnu.org>
4685         * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
4686         included.
4687         Handle CYGWIN properly.
4689 2002-03-07  Paco Andrés Verdú  <pandres@dragonet.es>
4691         * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
4692         * tmac/lbp.tmac: Add some font translations.
4694 2002-03-02  Werner LEMBERG  <wl@gnu.org>
4696         * font/devcp1047/R.proto, font/devlatin1/R.proto,
4697         font/devhtml/R.proto: Remove `charXXX'  entries.
4698         * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
4699         where appropriate.
4701         * font/devlj4/generate/text.map: Remove `charXXX' entries.
4702         * font/devlj4/*: Regenerated all font definition files.
4703         * tmac/lj4.tmac: Load latin1.tmac.
4705         * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
4706         from 2000-06-17: LJ4 metric files are *not* text files.
4708         * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
4709         register to test for EBCDIC.
4711 2002-03-01  Werner LEMBERG  <wl@gnu.org>
4713         * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
4714         files (as grops already does).
4715         * src/utils/afmtodit/afmtodit.man: Document comment lines in map
4716         files.
4717         * src/devices/grops/grops.man: Document comment lines in encoding
4718         files.
4720         * tmac/cp1047.tmac: New file.
4721         * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
4722         * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
4723         * tmac/Makefile.sub (NORMALFILES): Updated.
4725         * tmac/ec.tmac: Don't load latin1.tmac again.
4727         * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
4728         font/devps/generate/dingbats.map,
4729         font/devps/generate/dingbats.rmap, font/devps/text.enc,
4730         font/devps/generate/Makefile (symbolmap): Add header comment.
4731         * font/devps/generate/textmap: Ditto.
4732         Remove `charXXX' entries.
4733         * font/devps/symbolmap: Regenerated.
4734         * font/devps/*: Regenerated all font definition files.
4736 2002-02-28  Werner LEMBERG  <wl@gnu.org>
4738         Add color support to grodvi (for drawing colors are currently
4739         translated to gray values).
4741         * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
4742         (dvi_printer): Add `cur_color' member.
4743         (dvi_printer::set_color): New function.
4744         (draw_dvi_printer): Remove `fill'.
4745         (draw_dvi_printer::fill_next): Pass environment as parameter.
4746         Update code for new color support translated to gray.
4747         (dvi_printer::set_char): Updated.
4748         (dvi_printer::begin_page, dvi_printer::end_page): Handle color
4749         changes crossing the page border.
4750         (dvi_printer::draw): Updated.
4751         Remove cases `f' and `F'.
4752         * tmac/dvi.tmac: Add color definitions.
4753         * NEWS, src/devices/grodvi/grodvi.man: Updated.
4755         * tmac/an-old.tmac (R): Make this a macro to emit a warning if
4756         used incorrectly.
4758         * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
4759         versions of autoconf.
4760         * configure: Updated.
4762         * doc/homepage.ms: Use `.blm'.
4763         * tmac/www.tmac (www-depth): New auxiliary variable.
4764         (www-pop-level): Don't issue HTML tag.
4765         (ULS, ULE, LI): Use absolute indentation.
4767         * src/devices/grops/ps.cc (ps_printer::begin_page,
4768         ps_printer::end_page): Switch forth and back to default color while
4769         starting a new page.
4771 2002-02-27  Werner LEMBERG  <wl@gnu.org>
4773         Add EC and TC fonts to devdvi.
4775         * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
4776         * font/devdvi/generate/cork.map: Renamed to...
4777         * font/devdvi/generate/ec.map: This.
4778         Remove entry for `aq'.
4779         * font/devdvi/generate/tc.map: New file.
4780         * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
4781         EC and TC fonts.
4782         (FONTS): Updated.
4783         * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
4784         * font/devdvi/Makefile.sub (DEVFILES): Updated.
4785         * tmac/ec.tmac: New file.
4786         * tmac/Makefile.sub (NORMALFILES): Updated.
4787         * NEWS, src/devices/grodvi/grodvi.man: Updated.
4788         * man/groff_char.man: Check `ECFONTS' register.
4790         * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
4792 2002-02-26  Werner LEMBERG  <wl@gnu.org>
4794         * font/devdvi/generate/*.map: Remove all `charXXX' entries.
4795         * font/devdvi/generate/cork.map: Add 'y and 'Y.
4796         * font/devdvi/*: Updated.
4797         * tmac/dvi.tmac: Formatting.
4799         Add font `HBI' for the dvi output.
4800         Add support for font families `T' and `H'.
4802         * font/devdvi/HBI: New file.
4803         * font/devdvi/B: Renamed to ...
4804         * font/devdvi/TB: This.
4805         * font/devdvi/BI: Renamed to ...
4806         * font/devdvi/TBI: This.
4807         * font/devdvi/I: Renamed to ...
4808         * font/devdvi/TI: This.
4809         * font/devdvi/R: Renamed to ...
4810         * font/devdvi/TR: This.
4811         * font/devdvi/H: Renamed to ...
4812         * font/devdvi/HR: This.
4813         * font/devdvi/Makefile.sub (DEVFILES): Updated.
4814         * font/devdvi/generate/Makefile (HBI): New rule.
4815         (FONTS): Updated.
4816         (R, I, B, BI, H): Renamed to ...
4817         (TR, TI, TB, TBI, HR): This, respectively.
4818         (srcdir): Fixed.
4819         * NEWS, src/devices/grodvi/grodvi.man: Updated.
4820         * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
4821         Add `styles' and `family' keywords.
4822         * tmac/dvi.tmac: Alias `H' to `HR'.
4823         Add some fspecial requests for italic fonts.
4824         Add TR and TI as special.
4825         Add support for `_' with font CWI.
4827         * src/roff/troff/number.cc (parse_expr): Add missing `break' for
4828         operator `:'.  Until now, the expression `0:1' would return 2
4829         instead of 1.
4831 2002-02-25  Werner LEMBERG  <wl@gnu.org>
4833         * man/groff_char.man: Added some missing PS glyph names (from the
4834         Adobe Glyph List).
4835         * font/devps/generate/textmap, font/devps/symbolmap: Add
4836         `arrowupdn'.
4838         * doc/groff.texinfo: Minor additions and fixes.
4839         * man/groff_diff.man: Remove documentation of fp request.  This
4840         is already covered in the original troff manual.
4841         Updated to be consistent with other doc files.
4842         * NEWS: Updated.
4844 2002-02-24  Werner LEMBERG  <wl@gnu.org>
4846         * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
4847         TTYDEVDIRS.
4848         Define new variable OTHERDEVDIRS (containing `font/devlj4
4849         font/devlbp' if not EBCDIC).
4850         * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
4851         (OTHERDEVDIRS): New variable.
4852         (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
4853         * configure: Regenerated.
4855         * NEWS, src/devices/grotty/grotty.man: Updated.
4857 2002-02-23  Werner LEMBERG  <wl@gnu.org>
4859         * src/roff/troff/input.cc (do_overstrike, do_bracket,
4860         get_line_arg): Honour input level.
4862         Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
4864         * font/*/*: Implement it in all font files.
4865         * font/devps/generate/textmap, font/devps/generate/symbolchars,
4866         * font/devps/symbolmap: Updated.
4867         * font/devlj4/generate/text.map: Updated.
4868         * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
4869         * font/devdvi/generate/texmi.map: Updated.
4871         * font/devutf8/R.proto: Remove all `charXXX' entries.
4872         * font/devutf8/NOTES: Updated.
4874         * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
4875         version 4.1.0.
4877         * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
4879         * NEWS, man/groff_char.man: Updated.
4881 2002-02-21  Phil Lobbes  <phil@perkpartners.com>
4883         * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
4885 2002-02-20  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
4887         * src/roff/grog/grog.pl: Fix computation of $refer.
4889 2002-02-19  Werner LEMBERG  <wl@gnu.org>
4891         * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
4892         `snprintf' and `vsnprintf'.
4894         * src/include/htmlindicate.h: Renamed to...
4895         * src/include/htmlhint.h: This.
4896         * src/include/Makefile.sub: Updated.
4897         * src/preproc/eqn/main.cc: Updated.
4899 2002-02-18  Werner LEMBERG  <wl@gnu.org>
4901         * man/roff.man, man/groff_out.man, man/groff.man,
4902         man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
4903         src/roff/troff/troff.man: Updated to latest changes in www.tmac.
4905         * win32-diffs: Updated.
4907 2002-02-17  Werner LEMBERG  <wl@gnu.org>
4909         * doc/Makefile (clean): Add *.eps.
4910         (MEMACROS): Removed.
4911         (TFLAG): New variable.
4912         (TROFF): Use it.
4913         Add -ww.
4914         (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
4915         (.me.dit): Fixed.
4916         (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
4918         * tmac/www.tmac: Use dummy diversion while resetting and disabling
4919         `.tl'.
4920         * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
4921         unstripped.
4922         * src/roff/troff/troff.man: Fix order of parameter description.
4924         * NEWS: Updated.
4926 2002-02-16  Gaius Mulley  <gaius@glam.ac.uk>
4928         Simplify image handling for grohtml.
4929         Fix <p> bug.
4931         * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
4932         comment out.
4933         (html_text::dump_stack): Don't emit newline while debugging.
4934         (html_text::do_push) [DEBUGGING]: Print more info.
4935         (html_text::check_emit_text): Fix handling of <p>.
4936         * src/devices/grohtml/html.h: Updated.
4937         * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
4938         replacing `fputc', `fputs', `putc'.  If DEBUGGING is defined, they
4939         send its data to stderr also.
4940         Update all callers.
4941         (simple_output::space_or_newline) [DEBUGGING]: Removed.
4942         * src/devices/grohtml/post-html.cc (html_printer::do_links,
4943         html_printer::html_printer): Remove `DEBUGGING' conditionals.
4945         * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
4946         Removed.
4947         * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
4948         is_inline_image): Removed.
4949         (html_begin_suppress, html_end_suppress): Don't take a parameter.
4950         (graphic_start, graphic_end): Removed.
4951         * src/include/htmlindicate.h: Updated.
4952         * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
4953         (macroset_template): New global variable.
4954         (makeFileName): Use `macroset_template'.
4955         (write_end_image): Don't take a parameter.
4956         Don't emit newline.
4957         (write_start_image: Don't emit newline.
4958         (char_buffer::write_upto_newline): Updated.
4959         (char_buffer::skip_to_newline): Renamed to ...
4960         (char_buffer::skip_until_newline): This.
4961         Fix code.
4962         (char_buffer::write_file_troff, char_buffer::write_file_html):
4963         Simplified.
4964         (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
4965         (removeAllPages): Remove `DEBUGGING' conditionals.
4966         (addRegDef, dump_args): New functions.
4967         (char_buffer::do_html, char_buffer::do_image): Handle
4968         `www-image-template' command line variable.
4969         Add more debugging code.
4970         (addps4html): Removed.
4971         (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
4973         * src/preproc/eqn/main.cc: Include `ctype.h'.
4974         (suppress_html): Removed.
4975         (do_file): Updated.
4976         (inline_equation): Use `html_begin_suppress' and
4977         `html_end_suppress'.
4978         * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
4979         (troff_output::start_picture, troff_output::finish_picture):
4980         Updated.
4981         * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
4982         (process_input_file): Updated.
4984         * src/roff/troff/div.cc (page_number): Set page number only if the
4985         `ps4html' register isn't defined.
4986         * src/roff/troff/input.cc (image_no): New external variable.
4987         (do_suppress): Use it.
4988         * src/roff/troff/node.h (suppress_node::image_id): New member.
4989         * src/roff/troff/node.cc (image_no): Remove `static' keyword.
4990         (suppress_node::suppress_node): Initialize `image_id' member.
4991         (suppress_node::same): Handle `image_id' also.
4992         (suppress_node::copy): Updated.
4993         (last_image_id): New global variable.
4994         (suppress_node::tprint): Use it.
4996         * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
4997         HTML-IMAGE-END.
4998         * tmac/pspic.mac (PSPIC): Fix html support.
4999         * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
5000         * tmac/www.tmac (www-image-template): Set up.
5001         (HTMLINDEX): Renamed to...
5002         (HX): This.
5003         (BODYCOLOR): Renamed to...
5004         (BCL): This.
5005         (BACKGROUND): Renamed to...
5006         (BGIMG): This.
5007         (URL): Change order of parameters for consistency.
5008         (MAILTO): Renamed to...
5009         (MTO): This.
5010         (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
5011         (IMG, PIMG, MPIMG): This.
5012         (HTML-H-BEGIN, HTML-H-END): Renamed to...
5013         (HnS, HnE): This.
5014         (LINKS): Renamed to...
5015         (LK): This.
5016         (LINE): Renamed to...
5017         (HR): This.
5018         (NO-AUTO-RULE): Renamed to...
5019         (NHR): This.
5020         (HTML-TL): Renamed to...
5021         (HTL): This.
5022         (UL-BEGIN, UL-END): Renamed to...
5023         (ULS, ULE): This.
5024         (DROPCAP): Renamed to...
5025         (DC): This.
5026         (TS, TE, EQ, EN): Provide default definitions.
5027         (www-make-unique-name): Updated.
5028         (HTML-IMAGE-INLINE): Fix typo.
5029         * tmac/groff_www.man: Updated.
5031         * doc/Makefile (homepage.html): Add option -r to grohtml.
5032         Use shortened image name.
5033         * doc/groff.texinfo: Updated info on grohtml strings and macros.
5034         * doc/homepage.ms: Updated and extended.
5036 2002-02-14  Werner LEMBERG  <wl@gnu.org>
5038         Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
5040         * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
5041         SGR_BACK_DEFAULT_COLOR): Replaced with ...
5042         (tty_printer::put_color): Use it.
5043         (ttr_printer::end_page): Simplify.
5045 2002-02-13  Werner LEMBERG  <wl@gnu.org>
5047         * tmac/groff_tmac.man: Moved to...
5048         * man/groff_tmac.man: This place.
5049         * tmac/Makefile.sub, man/Makefile.sub: Updated.
5051 2002-02-12  Werner LEMBERG  <wl@gnu.org>
5053         * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
5054         $(COMPILE.c) to not include groff's assert.h.
5056         * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
5057         variable.
5058         * NEWS, src/drivers/grotty/grotty.man: Document it.
5060 2002-02-11  Werner LEMBERG  <wl@gnu.org>
5062         * src/libs/snprintf/snprintf.c: Updated to latest version
5063         (2002-02-11).
5065         * src/roff/grog/grog.pl (process): Fix handling of `.['.  We now
5066         test whether there is `.]' also.
5067         Don't check for spaces after `.['.
5068         * src/roff/grog/grog.sh: Do the same.
5070 2002-02-10  Werner LEMBERG  <wl@gnu.org>
5072         Illegal -> Invalid.
5074         * src/libs/libgroff/illegal.cc: Renamed to ...
5075         * src/libs/libgroff/invalid.cc: This.
5076         (illegal_char_table): Renamed to ...
5077         (invalid_char_table): This.
5078         * src/libs/libgroff/Makefile.sub: Updated.
5079         * win32-diffs: Updated.
5081         * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
5082         src/libs/libdriver/input.cc (fatal_command, parse_color_command,
5083         parse_x_command), src/libs/libgroff/font.cc (text_file::next,
5084         font::load), src/preproc/eqn/main.cc (read_line, main),
5085         src/preproc/eqn/lex.cc (file_input::read_line),
5086         src/preproc/pic/lex.cc (file_input::read_line,
5087         simple_file_input::get, simple_file_input::peek),
5088         src/preproc/pic/main.cc (top_input::get, top_input::peek),
5089         src/preproc/pic/pic.man, src/preproc/refer/main.cc
5090         (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
5091         do_bib), src/preproc/tbl/main.cc (table_input::get),
5092         src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
5093         src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
5094         do_zero_width, read_request, encode_char, ps_get_line,
5095         transparent_file, get_char_for_escape_name, transparent_translate,
5096         asciify, input_char_description, read_string, set_string),
5097         src/roff/troff/env.cc (environment::add_html_tag),
5098         src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
5100         * src/include/lib.h: Updated.
5102         * src/preproc/eqn/eqn.cc: Removed.
5104         * NEWS: Updated.
5106         * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
5108 2002-02-09  Werner LEMBERG  <wl@gnu.org>
5110         * doc/gnu.xpm: New image.
5111         * doc/Makefile (DOCS): Add homepage.ps.
5112         Add rules for converting xpm->png and xpm->eps.
5113         Use `gnu.{xpm,eps}' as image names.
5114         * doc/homepage.ms: Updated.
5116 2002-02-09  Gaius Mulley  <gaius@glam.ac.uk>
5118         * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
5119         (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
5120         Remove calls to `B1' and `B2'
5121         (PNG-IMAGE): New macro for inclusion of images in PNG format.
5122         (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
5123         auxiliary variables for MARGIN-PNG-IMAGE.
5124         (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
5125         auxiliary macros for MARGIN-PNG-IMAGE.
5126         (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
5127         the margin.
5128         (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
5129         (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
5130         (DROPCAP): New macro to produce dropcap characters.
5131         (www-do-image): Renamed back to...
5132         (HTML-DO-IMAGE): This.
5133         Updated all callers.
5135         * doc/Makefile (gnubw.eps): Updated.
5136         * doc/homepage.ms: Updated.
5138 2002-02-08  Werner LEMBERG  <wl@gnu.org>
5140         * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
5141         Added `linethick' to table in section `Style Variables'.
5143 2002-02-08  Gaius Mulley  <gaius@glam.ac.uk>
5145         * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
5147 2002-02-07  Werner LEMBERG  <wl@gnu.org>
5149         Adding options -C (compatibility mode) and -c (grotty's old output
5150         scheme) to nroff.
5152         * src/roff/nroff/nroff.sh: Implement it.
5153         Remove `-Wall'.
5154         * NEWS, src/roff/nroff/nroff.man: Updated.
5156         * PROBLEMS: Document bison 1.32 bug.
5158         Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
5160         * src/roff/troff/node.cc (make_tfont): Define it earlier.
5161         * src/roff/troff/div.h: Add prototype for `end_diversions'.
5162         * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
5163         * src/roff/troff/env.h: Add prototype for `title'.
5165         Adding EBCDIC support to grotty.
5167         * src/devices/grotty/tty.cc (CSI): New macro.
5168         (SGR_*, tty_printer::put_color): Use it.
5170 2002-02-06  Werner LEMBERG  <wl@gnu.org>
5172         Implementing color support in grotty.  The new switch -c activates
5173         the old drawing scheme, disabling color at the same time.  The new
5174         switch `-i' selects italic instead of underlining (SGR only).
5176         * src/devices/grotty/tty.cc (putstring): New define instead of
5177         `fputs'.  Updated all callers.
5178         (old_drawing_scheme): New global variable.
5179         (COLOR_CHANGE): New enum value.
5180         (SGR_*): New defines containing color handling escape sequences.
5181         (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
5182         (glyph): New members `back_color_idx' and `fore_color_idx'.
5183         (glyph::order): Add COLOR_CHANGE.
5184         (tty_printer): New members `cur_fore_idx', `curr_back_idx',
5185         `is_underline', `is_bold', `cu_flag', `tty_colors'.
5186         New methods `make_underline', `make_bold', `color_to_idx',
5187         `change_color', `put_color'.
5188         (cu_flag): Moved into `tty_printer' class.
5189         (tty_printer::tty_printer): Initialize colors.
5190         (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
5191         tty_printer::draw, tty_printer::end_page): Handle colors also.
5192         (main): Add options `-c' and `-i'.
5193         (usage): Updated.
5194         * NEWS, src/devices/grotty/grotty.man: Updated.
5196         * src/include/errarg.h (errarg): Add support for `unsigned int'.
5197         * src/libs/libgroff/errarg.c: Implement it.
5199         * src/include/printer.h (printer): Add `change_color' method
5200         (currently used by grotty only).
5201         * src/libs/libdriver/printer.cc: Implement it.
5202         * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
5203         call to `pr->change_color'.
5205         * src/roff/troff/node.cc (troff_output_file::fill_color,
5206         troff_output_file::glyph_color): Call `do_motion'.
5208         * tmac/tty.tmac: Add color definitions.
5210         * src/roff/groff/groff.man: Minor fixes.
5212 2002-02-05  Bernd Warken  <bwarken@mayn.de>
5214         * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
5215         it.  This is a preparation for future changes.
5217 2002-02-05  Werner LEMBERG  <wl@gnu.org>
5219         * src/roff/troff/input.cc (process_input_stack): Fix the case
5220         where leading spaces are followed by \f or \s; previously, an
5221         incorrect space width has been used.
5223         * doc/roff.man (quoted_char): Fix argument.
5224         (comment): Define string.
5226 2002-02-04  Larry Kollar  <kollar@alltel.net>
5228         * doc/groff.texinfo: More fixes.
5230 2002-02-04  Werner LEMBERG  <wl@gnu.org>
5232         * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
5233         * src/preproc/eqn/main.cc (do_file, inline_equation): Call
5234         `restore_compatibility' before `output_string' -- the LINE_STRING
5235         register now already contains proper switches from and to
5236         compatibility mode.
5238         * man/groff_char.man: Add Euro symbol.
5239         * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
5240         * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
5241         * doc/groff.texinfo (Defstr*): Print strings with full syntax.
5242         Other minor fixes.
5244         * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
5245         texinfo->pdf.
5246         (.texinfo.html): Add support for texinfo->html.
5248 2002-02-03  Werner LEMBERG  <wl@gnu.org>
5250         Added three new requests `ds1', `as1', and `ami'.  The former two
5251         are equivalent to `ds' and `as' with the difference that
5252         compatibility mode is saved on entry, switched off during string
5253         expansion, and restored on exit.  The latter is the pendant to `dei'
5254         for `am'.
5256         (do_define_string): Use `define_mode' and `calling mode'.
5257         Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
5258         end of string, respectively.
5259         (define_string, append_string): Use `calling_mode'.
5260         (define_nocomp_string, append_nocomp_string,
5261         define_string_indirect): New functions.
5262         (init_input_requests): Updated.
5263         * NEWS, man/groff_diff.man, man/groff.man: Document it.
5265         * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
5266         `as1' for assigning LINE_STRING (this is `10' usually).  Sun's
5267         mm macro package accesses this string register directly.
5268         * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
5270         * tmac/trace.tmac: Trace calls to `am' also.  Make it work in
5271         compatibility mode.
5273 2002-02-02  Larry Kollar  <kollar@alltel.net>
5275         * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
5277 2002-01-31  Werner LEMBERG  <wl@gnu.org>
5279         * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
5281 2002-01-31  Bernd Warken  <bwarken@mayn.de>
5283         * src/devices/grolbp/lbp.cc (main): Delete `pr'.
5284         * man/groff_out.man: Revised and updated.
5286 2002-01-30  Bernd Warken  <bwarken@mayn.de>
5288         * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
5289         out the unused `{' and `}' commands.  Undefined by default.
5290         (IntArray): Make `data' private.
5291         (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
5292         new methods instead.
5293         (skip_line_D, skip_to_end_of_line): New functions.
5294         (get_D_fixed_args): Use `skip_line_D'.
5295         Changed to handle dummy odd arguments by ...
5296         (get_D_fixed_args_odd_dummy): This new function.
5297         (get_D_variable_args): Split some code into ...
5298         (get_possibly_integer_args): This new function.
5299         (send_draw): Use more `const'.
5300         (delete_current_env): New function.
5301         (position_to_end_of_args): Use `size_t'.
5302         Updated.
5303         (send_draw): Updated.
5304         (parse_D_command): Handle `c', `C', and `t' better.
5305         Updated.
5306         (do_file): Updated.
5308 2002-01-29  Werner LEMBERG  <wl@gnu.org>
5310         * NEWS: Revised.
5311         * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
5312         @Def...ListEnd which replaces @Def...x.  This is necessary to get
5313         proper HTML output -- see the comment in the file for more
5314         information.
5315         Updated all calls.
5317 2002-01-29  Gaius Mulley  <gaius@glam.ac.uk>
5319         Fixes to make color changes of 2002-01-21 work with grohtml.
5321         * src/devices/grohtml/post-html.cc (style): Updated.
5322         (html_printer): Remove unused methods.
5323         (html_printer::do_font, html_printer::draw, html_printer::set_char,
5324         html_printer::special): Updated.
5325         * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
5326         html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
5327         Added some debugging code.
5328         (html_text::start_tag): Updated.
5329         (html_text::do_push): New method.
5330         (html_text::push_para): Call it.
5331         Add method for handling color.
5332         (html_text::do_color): Updated.
5333         (html_text::shutdown): Handle color.
5334         * src/devices/grohtml/html-text.h (tag_definition): New member
5335         `col'.
5336         Updated.
5338 2002-01-28  Werner LEMBERG  <wl@gnu.org>
5340         * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
5342 2002-01-27  Gaius Mulley  <gaius@glam.ac.uk>
5344         Add two switches -a and -g to control the antialiasing bits for
5345         text and graphics, respectively.
5347         * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
5348         `-g'.
5349         * src/devices/grohtml/grohtml.man: Document them.
5350         * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
5351         New macros.
5352         (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
5353         (setupAntiAlias): New function.
5354         (createAllPages): Updated.
5355         (scanArguments): Handle `-a' and `-g'.
5356         (main): Call `setupAntiAlias'.
5357         * NEWS: Updated.
5359 2002-01-27  Werner LEMBERG  <wl@gnu.org>
5361         * doc/groff.texinfo (Def*): Call index function after deffn.
5363         * tmac/html.tmac: Call `nroff' request.
5365 2002-01-26  Larry Kollar  <kollar@alltel.net>
5367         * tmac/groff_ms.man: Add some omissions.
5369 2002-01-25  Larry Kollar  <kollar@alltel.net>
5371         * tmac/groff_ms.man: Typographical improvements.
5373 2002-01-25  Werner LEMBERG  <wl@gnu.org>
5375         * doc/groff.texinfo: Updated version and copyright.
5376         * src/devices/grops/grops.man: Updated.
5378         * tmac/groff_tmac.man: Fix `ig' macro.
5380         * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
5381         nroff mode.
5382         Use `.ne' unconditionally everywhere.
5383         (TS): Only insert some vertical space.  Doing a page break is no
5384         longer necessary due to the redefinition of the `ne' request.
5386         * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
5387         warning for unknown subcommands but parse and pass them to the
5388         device driver.
5390 2002-01-24  Werner LEMBERG  <wl@gnu.org>
5392         * tmac/groff_www.man, NEWS: Fix typos.
5394 2002-01-21  Werner LEMBERG  <wl@gnu.org>
5396         Complete revision of color support:
5398           Adapt programs to the new libdriver/input.cc.
5400           Color spaces are no longer converted to RGB but transferred as-is
5401           in the troff intermediate output format.
5403           Handle default color gracefully.  troff now supports a `default'
5404           color (which can't be changed).
5406           grops will now use the proper color space functions if available.
5408           Update pic.
5410         Note that currently grohtml doesn't handle colors properly.  This
5411         has to be fixed.
5413         * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
5414         (ui_to_a): New function.
5415         * src/include/lib.h: Updated.
5417         * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
5418         (color): Simplified; removed all `double' members and methods.
5419         A new array `components' now holds the color parameters.
5420         (color::is_default, color::get_components): New methods.
5421         (color::operator==, color:operator!=): New.
5422         (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
5423         to make access to the `components' array more comprehensible.
5424         * src/libs/libgroff/color.cc: Implement new color support.
5425         (atoh): Small fixes.
5426         (color::read_encoding): Simplified for new troff intermediate color
5427         output format.
5428         (default_color): New global variable.
5430         * src/roff/troff/input.cc (default_symbol): New global variable.
5431         (lookup_color): Use it.
5432         (default_black): Removed.
5433         (do_glyph_color, do_fill_color): Simplified.
5434         (define_color): Handle default color.
5435         Improve warnings.
5436         (do_if_request): Handle default color.
5437         * src/roff/troff/env.cc (environment::environment): Initialize
5438         colors with `default_color'.
5439         * src/roff/troff/node.cc (troff_output_file::put): Add method
5440         for `unsigned int'.
5441         (troff_output_file::hex): Removed.
5442         (troff_output_file::fill_color, troff_output_file::glyph_color):
5443         Updated to include/color.h and libdriver/input.cc.
5445         * src/preproc/pic/object.cc (draw_arrow): New parameter to set
5446         fill color properly (identically to the outline color).  \D'f...'
5447         doesn't work any more.
5448         All function calls to it updated.
5450         * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
5451         Updated.
5452         * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
5453         Updated.
5455         * src/devices/grops/ps.cc (ps_output::put_color): New method.
5456         (ps_printer::sbuf_color): Make a real member instead of pointer.
5457         (ps_printer::fill_color, ps_printer::output_color): Removed.
5458         (ps_printer::ps_printer): Updated.
5459         (ps_printer::set_char): Ditto.
5460         (ps_printer::set_color): Use various color schemes.
5461         Use `put_color' method.
5462         (ps_printer::flush_sbuf): Don't set color.
5463         (ps_printer::fill_path): Take `environment' as parameter.
5464         Simplify color handling.
5465         (ps_printer::set_line_thickness): Renamed to ...
5466         (ps_printer::set_line_thickness_and_color): This (and updated).
5467         (ps_printer::set_color): Change second parameter from `complete'
5468         to `fill' which better describes what it does.
5469         (ps_printer::draw): Call `flush_sbuf' to output graphic commands
5470         and text in the right order.
5471         Updated.
5472         Remove branches for `f' and `F'; this is handled by
5473         libdriver/input.cc.
5474         * src/devices/grops/ps.h: Updated.
5475         * font/devps/prologue (FL): Redefined.
5476         ({F,C}r,k,g: New color functions (with and without filling).
5478         * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
5479         * man/groff_diff.man, man/groff.man, man/groff_out.man,
5480         doc/groff.texinfo, NEWS: Updated.
5482 2002-01-20  Bernd Warken  <bwarken@mayn.de>
5484         * src/libs/libdriver/input.cc: Completely rewritten.  See comments
5485         in this file for what has been changed.
5487 2002-01-19  Werner LEMBERG  <wl@gnu.org>
5489         * test-groff: Fix GROFF_FONT_PATH.
5490         * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
5491         is read before .TH or .Dd is parsed.
5493 2002-01-18  Gaius Mulley  <gaius@glam.ac.uk>
5495         * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
5496         quadrant boundaries.
5498 2002-01-18  Werner LEMBERG  <wl@gnu.org>
5500         * devices/grops/ps.cc: Aargh!  Fix the fix of the incorrectly
5501         applied last patch.
5503 2002-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
5505         * tmac/doc.common: Initialize %I register for the %I macro to
5506         avoid (harmless) warning.
5507         * tmac/doc.tmac (Bd): There is no reason to enforce -compact
5508         when in the SYNOPSIS section.
5510 2002-01-17  Bruno Haible  <haible@clisp.cons.org>
5512         * src/preproc/pic/lex.cc (get_token): Fix typo.
5514 2002-01-17  Werner LEMBERG  <wl@gnu.org>
5516         * devices/grops/ps.cc: Fix incorrectly applied last patch.
5518 2002-01-17  Larry Kollar  <kollar@alltel.net>
5520         * tmac/groff_ms.man: Completely rewritten.
5522 2002-01-16  Werner LEMBERG  <wl@gnu.org>
5524         * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
5526 2002-01-15  Gaius Mulley  <gaius@glam.ac.uk>
5528         * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
5529         fill colors.
5530         (ps_printer::draw): Ditto.
5532 2002-01-14  Ruslan Ermilov  <ru@FreeBSD.org>
5534         * tmac/groff_mdoc.man: Minor fixes.
5536 2002-01-13  Werner LEMBERG  <wl@gnu.org>
5538         * man/groff_out.man: Some fixes.
5540 2002-01-13  Gaius Mulley  <gaius@glam.ac.uk>
5542         * doc/pic.ms: Fix typos.
5544 2002-01-12  Werner LEMBERG  <wl@gnu.org>
5546         * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
5548 2002-01-10  Werner LEMBERG  <wl@gnu.org>
5550         * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
5551         symbols.
5552         * NEWS: Updated.
5554 2002-01-09  Bernd Warken  <bwarken@mayn.de>
5556         * man/groff_out.man: Revised.
5557         * man/roff.man: Minor fixes.
5558         * src/roff/troff/troff.man: Some reordering.
5560 2002-01-09  Werner LEMBERG  <wl@gnu.org>
5562         * tmac/an-old.tmac: Add dummy macros for equation support.
5564 2002-01-07  Werner LEMBERG  <wl@gnu.org>
5566         doc/groff.texinfo: Fix documentation of glyph searching algorithm.
5568         * tmac/an-old.tmac: Revert change 2001-12-23.  This breaks too many
5569         man pages.
5570         * tmac/groff_man.man: Small improvements.
5572 2002-01-07  Bernd Warken  <bwarken@mayn.de>
5574         * man/groff_diff.man: Revised.
5576 2002-01-06  Werner LEMBERG  <wl@gnu.org>
5578         * tmac/www.tmac: Remove extraneous backslash.
5580 2002-01-06  Bernd Warken  <bwarken@mayn.de>
5582         * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
5584 2002-01-05  Werner LEMBERG  <wl@gnu.org>
5586         Integrated groffer, contributed by Bernd Warken.
5588         * contrib/groffer/*: New.       
5589         * Makefile.in, NEWS: Updated.
5591 2002-01-04  Werner LEMBERG  <wl@gnu.org>
5593         * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
5594         registers defined in macro packages.
5595         Revising the ms part.
5597 2002-01-04  Larry Kollar  <kollar@alltel.net>
5599         * doc/groff.texinfo: Add documentation for ms macros.
5601 2002-01-02  Werner LEMBERG  <wl@gnu.org>
5603         First step in adding PS support for the Euro symbol.  `eu' is the
5604         official Euro logo, `Eu' is a font-specific glyph variant.
5606         * font/devps/text.enc: Add `Euro' at position 9.
5607         * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
5608         * font/devps/symbolmap: Regenerated.
5610         * NEWS: Updated.
5612 2002-01-02  Bernd Warken  <bwarken@mayn.de>
5614         * man/roff.man: Revised.
5616 2002-01-01  Bernd Warken  <bwarken@mayn.de>
5618         * src/roff/groff/groff.man: Completely rewritten.
5620 2001-12-31  Werner LEMBERG  <wl@gnu.org>
5622         * doc/Makefile: Updated.
5624 2001-12-30  Werner LEMBERG  <wl@gnu.org>
5626         * tmac/www.tmac: Make all names of internal macros/registers/strings
5627         lowercase, and prepend `www-'.
5628         Other minor changes.
5629         * src/roff/troff/troff.man: Add preprocessor string at BOF.
5631 2001-12-30  Gaius Mulley  <gaius@glam.ac.uk>
5633         Implement option `-b' in grohtml to set the HTML background colour.
5635         * src/devices/grohtml/post-html.cc (default_background): New global
5636         variable.
5637         (html_printer::html_printer): Initialize `background' to
5638         `default_background'.
5639         (main): Implement option `-b'.
5640         (usage): Updated.
5641         * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
5642         of `-b' option.
5643         * src/devices/grohtml/grohtml.man: Updated.
5644         * doc/Makefile (.ms.html): Use `-b'.
5645         * tmac/html.tmac: Don't set background color.
5647         Add new grohtml tag `.html-tl'.
5649         * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
5650         member variable.
5651         (title_desc::title_desc): Updated.
5652         (html_printer::troff_tag): Handle `.html-tl'.
5653         (html_printer::write_title): Use `with_h1'.
5654         * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
5655         (HTML-TL): New macro.
5657         Add support for unordered lists in HTML.
5659         * tmac/www.tmac (www-level): New auxiliary register.
5660         (www-level1, www-level2, www-level3): New auxiliary strings.
5661         (www-push-level, www-pop-level): New auxiliary macros
5662         (UL-BEGIN, UL-END, LI): User macros for unordered lists.
5664         Miscellaneous.
5666         * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
5667         (DEFAULT_VERTICAL_OFFSET): Removed.
5668         (IMAGE_BOARDER_PIXELS): Set to 0.
5669         (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
5670         (vertical_offset): Initialize with 0.
5671         (gsPaper): New global variable.
5672         (get_resolution): Scan for and return unsigned int.
5673         (get_papersize): New function to get paper length from devps/DESC.
5674         (determine_vertical_offset): New function.
5675         (createAllPages): Produce gray-level images and use proper page
5676         length.
5677         (createImage): Use `-quiet' option of pnmcrop.
5678         (addZ): Fix passing of `-Z'.
5679         (scanArguments): Fix handling of `-o'.
5680         (main): Call `determine_vertical_offset'.
5681         * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
5682         code for `l'.
5684         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
5685         * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
5686         glyph descenders properly.
5688         * doc/homepage.ms: Include `gnubw.eps'.
5689         * doc/Makefile (gnubw.eps): New rule.
5690         (homepage.html): Depend on `gnubw.eps'.
5692 2001-12-25  Werner LEMBERG  <wl@gnu.org>
5694         * src/roff/troff/input.cc (default_black): Fix return value.
5696 2001-12-24  Ruslan Ermilov  <ru@FreeBSD.org>
5698         * tmac/doc-common (Dt): Change output of architecture strings.
5699         Do some syntax cleanup.
5700         * tmac/groff_mdoc.man: Updated.
5702 2001-12-23  Werner LEMBERG  <wl@gnu.org>
5704         Adding an `itc' request (input line trap accepting \c).
5706         * src/roff/troff/env.h (environment): New member
5707         `continued_input_trap'.
5708         Make `do_input_trap' a friend function instead of `input_trap'.
5709         * src/roff/troff/env.cc (environment::environment,
5710         environment::copy): Updated.
5711         (environment::newline): Implement it.
5712         (do_input_trap): New function.
5713         (input_trap): Call `do_input_trap'.
5714         (input_trap_continued): New function.
5715         (init_env_requests): Updated.
5716         * src/roff/troff/TODO: Updated.
5718         * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
5719         `.it'.
5721         * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
5723 2001-12-22  Ruslan Ermilov  <ru@FreeBSD.org>
5725         * tmac/doc-common, tmac/doc-syms: Small updates.
5727 2001-12-22  Colin Watson  <cjwatson@debian.org>
5729         * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
5731 2001-12-22  Bernd Warken  <bwarken@mayn.de>
5733         * MANIFEST: New file.
5735 2001-12-22  Werner LEMBERG  <wl@gnu.org>
5737         * src/preproc/grn/grn.man: Updated.
5739 2001-12-22  Solar Designer  <solar@openwall.com>
5741         * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
5742         (DBRead): Use it.
5744 2001-12-19  Werner LEMBERG  <wl@gnu.org>
5746         Implement a fallback character request `.fchar'.
5748         * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
5749         (is_fallback): New inline function.
5750         * src/roff/troff/input.cc (do_define_character): New function.
5751         (define_character): Call `do_define_character'.
5752         (define_fallback_character): New function.
5753         (init_input_requests): Add `fchar'.
5754         (charinfo::charinfo): Updated.
5755         (charinfo::set_macro): New argument to set `fallback' flag.
5756         * src/roff/troff/node.cc (make_glyph_node, make_node,
5757         node::add_char): Check `fallback' flag.
5758         * NEWS, man/groff_diff.man, man/groff_man: Updated.
5760 2001-12-16  Werner LEMBERG  <wl@gnu.org>
5762         * groff.texinfo: Document exact search algorithm for glyphs.
5764 2001-12-15  Werner LEMBERG  <wl@gnu.org>
5766         * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
5767         the left side of $(MANPAGES) rule to make it always non-empty.
5769 2001-12-14  Werner LEMBERG  <wl@gnu.org>
5771         * src/roff/troff/input.cc (default_black): Define default color
5772         `black' if not yet defined.
5774 2001-12-13  Werner LEMBERG  <wl@gnu.org>
5776         Implement new string-valued register `.fn' to return the current
5777         real (internal) font name.
5779         * env.cc (environment::get_font_name_string): New function.
5780         (init_env_requests): Add `.fn' register.
5781         * env.h (environment): Updated.
5782         * node.cc (font_info): Make `get_font_name' a friend.
5783         (get_font_name): New function.
5784         * node.h: Updated.
5786         * man/groff_diff.man, man/groff.man, NEWS: Updated.
5788 2001-12-12  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5790         * src/preproc/eqn/main.cc (inline_equation): Fix typos.
5792 2001-12-12  Werner LEMBERG  <wl@gnu.org>
5794         * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
5796 2001-12-10  Gaius Mulley  <gaius@glam.ac.uk>
5798         * man/groff_diff.man: Adding documentation for \O.
5800 2001-12-10  Werner LEMBERG  <wl@gnu.org>
5802         * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
5803         (scanArguments): Use PROG_PREFIX for the name of the troff binary.
5805 2001-12-09  Werner LEMBERG  <wl@gnu.org>
5807         * man/roff.man: Revised.
5808         * src/roff/groff/groff.man: Replace man page references with a
5809         pointer to roff.man.
5811 2001-12-09  Bernd Warken  <bwarken@mayn.de>
5813         * man/roff.man: Completely rewritten.
5815 2001-12-06  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5817         * src/preproc/eqn/main.cc (inline_equation): Improve error message.
5819 2001-12-05  Werner LEMBERG  <wl@gnu.org>
5821         * src/roff/troff/input.cc (get_delim_file_name): Removed since no
5822         longer used.
5823         * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
5824         order of initializers.
5825         * NEWS: Updated.
5827 2001-12-05  Gaius Mulley  <gaius@glam.ac.uk>
5829         * doc/groff.texinfo: Fix documentation of \O.
5831         * src/devices/grohtml/html-text.cc (html_text::do_indent,
5832         html_text::do_table, html_text::do_emittext, html_text::do_para):
5833         Use `const' for first argument.
5834         (html_text::do_table): Use cast.
5835         * src/devices/grohtml/html-text.h: Updated.
5836         * src/devices/grohtml/output.cc (simple_output::put_string): Add
5837         method for `const string &s'.
5838         * src/devices/grohtml/html.h: Updated.
5839         * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
5840         (ANCHOR_TEMPLATE): Modified.
5841         (manufacture_headings): New global variable to handle `-h' option.
5842         (is_subsection): Removed.
5843         (char_buffer::add_string): Add `const' to first argument.
5844         Protect against invalid string argument.
5845         Add method for `const string &s'.
5846         (text_glob): Completely redesigned.
5847         (page): Use `const' for strings and remove string length variable.
5848         (page::add_html): Removed.
5849         (page::add_end_encode): New member function.
5850         (to_unicode): Moved upwards.
5851         (title_desc, header_desc): Updated.
5852         (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
5853         definition.
5854         (html_printer::is_bold, html_printer::make_bold): New member
5855         functions.
5856         (html_printer::end_of_line): Updated.
5857         (generate_img_src, html_printer::do_auto_image,
5858         html_printer::do_title, html_printer::write_header,
5859         html_printer::determine_header_level, html_printer::do_heading,
5860         html_printer::do_linelength, html_printer::do_pageoffset,
5861         html_printer::do_indentation, html_printer::do_tempindent,
5862         html_printer::do_indentedparagraph, html_printer::do_break,
5863         html_printer::flush_sbuf, get_html_translation,
5864         html_printer::begin_page, html_printer::special): Rewritten to get
5865         rid of static string length limit.
5866         (html_printer::troff_tag): Added `.no-auto-rule'.
5867         (html_printer::flush_globs): Small fix.
5868         (html_printer::determine_space): Don't compute `space_width'.
5869         (html_printer::translate_to_html): Renamed to ...
5870         (html_printer::emit_html): This (with updates).
5871         (html_printer::write_header): Implement `-h' option.
5872         (html_printer::draw): Remove commented-out code.  Handle `F'
5873         command.
5874         (html_printer::add_char_to_sbuf): Removed.
5875         (html_printer::add_to_sbuf): Rewritten.
5876         (html_printer::sbuf_continuation): Fixed.
5877         (html_printer::seen_backwards_escape, reverse,
5878         html_printer::remove_last_char_from_sbuf): Removed.
5879         (char_translate_to_html, str_translate_to_html): Removed.
5880         (html_printer::overstrike): New function member.
5881         (html_printer::set_char): Use it.
5882         (html_printer::do_body): New function member.
5883         (html_printer::~html_printer): Use it.
5884         (main): Handle `-h' option.
5885         (usage): Updated.
5886         * src/devices/grohtml/grohtml.man: Document -h switch.
5888         * src/preproc/html/pre-html.cc: Include searchpath.h
5889         Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
5890         (get_resolution): New function.
5891         (checkImageDir): Use `0777' permissions in mkdir()
5892         (write_start_image): Rewritten to use `\O[5...]'.
5893         (createImage, generateImages): Updated.
5894         (main): Handle `F' and `h' options.
5895         Use `get_resolution'.
5897         * src/roff/troff/input.cc (begin, end, image): Removed.
5898         (do_suppress): Take parameter.
5899         Handle modified syntax of `\O'.
5900         (token::next): Updated.
5901         (init_markup_requests): Removed.
5902         (main): Updated.
5904         * src/roff/troff/div.h: Add declaration for begin_page().
5906         * tmac/color-html.tmac: Removed.  Contents moved to...
5907         * tmac/html.tmac: Here.  Set background color.
5908         * tmac/color.tmac: Removed.  Contents moved to...
5909         * tmac/ps.tmac: Here.
5910         * tmac/www.tmac: Remove the title command when generating images
5911         for html.
5912         (NO_AUTO_RULE): New macro.
5913         (HTML_DO_IMAGE): Use revised `\O' escapes.
5914         * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
5916 2001-12-02  Werner LEMBERG  <wl@gnu.org>
5918         * tmac/groff_mdoc.man: Fix typo.
5920 2001-12-01  Colin Watson  <cjwatson@debian.org>
5922         * man/roff.man: Fix typo.
5924 2001-11-29  Werner LEMBERG  <wl@gnu.org>
5926         * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
5927         stdlib.h.
5929         * src/roff/troff/input.cc (read_draw_node): Emit error message if
5930         more than one argument to \D'f ...'.
5932         * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
5934 2001-11-28  Werner LEMBERG  <wl@gnu.org>
5936         * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
5937         loaded only once.
5939         * tmac/groff_man.man: Minor cosmetic fix.
5941 2001-11-27  Werner LEMBERG  <wl@gnu.org>
5943         * src/roff/groff/groff.man, tmac/groff_tmac.man,
5944         tmac/groff_www.man: s/mwww/www/.
5946 2001-11-26  Werner LEMBERG  <wl@gnu.org>
5948         * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
5949         * configure: Regenerated.
5950         * win32-diffs: Updated.
5952         * tmac/groff_mwww.tmac: Renamed to ...
5953         * tmac/groff_www.tmac: This.
5954         * tmac/mwww.tmac: Removed.
5955         * NEWS, tmac/Makefile.sub: Updated.
5957 2001-11-21  Werner LEMBERG  <wl@gnu.org>
5959         * doc/groff.texinfo: Improve documentation of the `\v' escape.
5960         Fix explanation of `\D' and `rt'.
5962 2001-11-20  Werner LEMBERG  <wl@gnu.org>
5964         * tmac/an-old.tmac (an-header): Set header length equal to page
5965         width.
5966         * doc/groff.texinfo: Improve documentation of `ne' request.  Other
5967         minor fixes.
5968         * NEWS: Small fix.
5970 2001-11-19  Werner LEMBERG  <wl@gnu.org>
5972         * NEWS, man/Makefile.sub: Updated.
5974 2001-11-19  Bernd Warken  <bwarken@mayn.de>
5976         * man/ditroff.man: New file.
5978 2001-11-17  Werner LEMBERG  <wl@gnu.org>
5980         * man/groff_differences.man: Renamed to ...
5981         * man/groff_diff.man: This.  Updated.
5982         * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
5984         * src/preproc/html/pushbackbuffer.cc: Renamed to ...
5985         * src/preproc/html/pushback.cc: This.  Updated.
5986         * src/preproc/html/pushbackbuffer.h: Renamed to ...
5987         * src/preproc/html/pushback.h: This.
5988         * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
5989         Updated.
5991         * src/libs/libgroff/htmlindicate.cc: Renamed to ...
5992         * src/libs/libgroff/htmlhint.cc: This.
5993         * src/libs/libgroff/Makefile.sub: Updated.
5995         * tmac/an-old.tmac (an-end): Fix page length.
5997 2001-11-16  Werner LEMBERG  <wl@gnu.org>
5999         * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
6000         * man/Makefile.sub: Include groff_differences.man.
6001         * VERSION: Set to 1.18.
6002         * REVISION: Set to 0.
6004 2001-11-16  Bernd Warken  <bwarken@mayn.de>
6006         * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
6007         the second dot (or ending macro name) to end a macro.
6008         * doc/groff.texinfo: Doc fix.
6010 2001-11-16  Ruslan Ermilov  <ru@FreeBSD.org>
6012         * tmac/doc-common (doc-header): Handle very long document titles
6013         better.
6015 2001-11-16  Werner LEMBERG  <wl@gnu.org>
6017         * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
6019 2001-11-15  Werner LEMBERG  <wl@gnu.org>
6021         * src/roff/troff/troff.man: Revised and split into troff.man and...
6022         * man/groff_differences.man: New file.
6023         * NEWS: Updated.
6025 2001-11-13  Werner LEMBERG  <wl@gnu.org>
6027         * tmac/an-old.tmac (TS, TE): New macros for table support.
6029 2001-11-12  Werner LEMBERG  <wl@gnu.org>
6031         * src/include/lib.h: Provide a fix for emx to not include
6032         groff-getopt.h.
6034 2001-10-27  Werner LEMBERG  <wl@gnu.org>
6036         * src/roff/troff/input.cc (substring_macro): Fix computation of
6037         boundary values.
6039 2001-10-20  Werner LEMBERG  <wl@gnu.org>
6041         Undo change from 2001-08-28.
6043         * src/roff/troff/input.cc (have_input): New global variable.
6044         (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
6045         in compatibility mode.
6046         (process_input_stack): Use it.
6048 2001-10-19  Ruslan Ermilov  <ru@FreeBSD.org>
6050         * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
6051         being handled as end-of-sentence characters,
6053 2001-10-10  Gaius Mulley  <gaius@glam.ac.uk>
6055         * src/roff/troff/input.cc (file_iterator): New members
6056         `suppress_newline_flag' and `seen_escape'.
6057         (file_iterator::next_file): Updated.
6058         (file_iterator::fill): Use it.
6059         (string_iterator): New member `suppress_newline_flag'.
6060         (string_iterator::fill): Set it.
6061         (get_color_element): Use MAX_COLOR_VAL.
6062         * src/roff/troff/env.cc (environment): Remove `need_eol'.
6063         (no_fill): Don't set `env->ignore_next_eol'.
6064         (environment::newline): Handle `eol' tag properly.
6065         Emit `eol.ce'.
6066         (environment::add_html_tag): Set `env->ignore_next_eol'.
6067         Don't handle `.ce'.
6068         * src/roff/troff/env.h (environment): Updated.
6070         * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
6071         member function.
6072         (html_printer::outstanding_eol): New member function.
6073         (html_printer::do_title): Use new functions.
6074         (html_printer::troff_tag): Test `id_eol_ce'.
6076 2001-10-10  Werner LEMBERG  <wl@gnu.org>
6078         * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
6079         files work with -C also.
6081 2001-10-05  Werner LEMBERG  <wl@gnu.org>
6083         * doc/pic.ms: Minor fix.
6084         * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
6085         as a valid command line switch.
6086         * src/devices/grohtml/post-html.cc (main): Ditto.
6087         (usage): Updated.
6088         * src/devices/grohtml/grohtml.man: Updated.
6089         * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
6091 2001-10-04  Werner LEMBERG  <wl@gnu.org>
6093         Implementing color support in troff, pic, grops, and grohtml.  These
6094         changes are based on a major patch provided by Gaius Mulley
6095         <gaius@glam.ac.uk>.
6097         New request: `defcolor', supporting rgb, cmy, cmyk, and gray
6098         definitions with both hex values and fractions.
6100         New escapes: \m and \M for drawing and background color,
6101         respectively.  This corresponds to the troff output commands `m'
6102         and `DF'.
6104         groff and troff accept command line switch `-c' to disable color
6105         output (which is automatically disabled in compatibility mode).
6107         New scaling indicator `f' for fractions (1f = 65536u).
6109         New conditional operator `m' to test for defined colors with `if'
6110         and `ie'.
6112         New keywords `color' (or `colour', `colored', `coloured'), `outline'
6113         (or `outlined'), and `shaded' added to pic.
6115         * src/include/color.h: New file.
6116         * src/include/driver.h: Include it.
6117         * src/include/printer.h: Include color.h.
6118         (environment): New members `col' and `fill'.
6119         (printer): Remove `adjust_arc_center' member function.
6120         * src/include/Makefile.sub: Updated.
6122         * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
6123         `env.fill'.
6124         Handle `m' and `DF' troff commands.
6125         * src/libs/libgroff/color.cc: New file.
6126         * src/libs/libgroff/Makefile.sub: Updated.
6128         * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
6129         (stop): Removed.
6130         (createImage): Fix computation of `y2'.
6131         Use `pnmcrop' also.
6132         (buffer::write_file_html): Remove calls to `stop'.
6134         * src/preproc/pic/common.h (common_output): New abstract function
6135         members `set_color', `reset_color', `get_last_filled', and
6136         `get_outline_color'.
6137         * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
6138         (object_spec): Add members `shaded' and `outlined'.
6139         * src/preproc/pic/output.h (output): `command' is now abstract.
6140         New function members `set_color', `reset_color', `get_last_filled',
6141         and `get_outline_color'.
6142         * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
6143         `outline[d]', and `shaded'.
6144         * src/preproc/pic/object.cc (output::command): Removed.
6145         (output::set_location): Moved to output.h.
6146         (graphic_object): Add protected members `outline_color' and
6147         `color_fill'.
6148         Add member functions `set_outline_color', `get_outline_color', and
6149         `set_fill_color'.
6150         (closed_object): Add member function `set_fill_color'.
6151         Add member `color_fill'.
6152         (graphic_object::print_text): Use `out->set_color' and
6153         `out->reset_color'.
6154         (box_object::print, ellipse_object::print, circle_object::print,
6155         line_object::print, spline_object::print, arc_object::print): Ditto.
6156         (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
6157         * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
6158         `SHADED', making them `%left'.
6159         Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
6160         * src/preproc/pic/tex.cc (tex_output): New dummy function members
6161         `set_color', `reset_color', `get_last_filled', and
6162         `get_outline_color'.
6163         * src/preproc/pic/troff.cc (simple_output): New abstract function
6164         members `set_color', `reset_color', and `get_last_filled'.
6165         (simple_output::polygon, simple_output::circle,
6166         simple_output::ellipse): Use `get_last_filled'.
6167         (troff_output): New members `last_filled' and `last_outlined'.
6168         New function members `set_color', `reset_color', `get_last_filled',
6169         and `get_outline_color'.
6170         (troff_output::finish_picture): Use `reset_color'.
6171         (troff_output::set_fill): Test `last_filled'.
6172         * src/preproc/pic/pic.man: Updated.
6174         * src/roff/groff/groff.cc (main): Implement `-c' option.
6175         (synopsis, help): Updated.
6176         src/roff/groff/groff.man: Updated.
6178         * src/roff/troff/troff.h: Include color.h.
6179         (warning_type): Add WARN_COLOR.
6180         * src/roff/troff/env.h (environment): New members
6181         `{cur,prev}_{glyph,fill}_color'.
6182         New member functions `get_{prev_,}{glyph,fill}_color'.
6183         * src/roff/troff/env.cc: Initialize and implement them.
6184         * src/roff/troff/input.cc: New global variable `disable_color_flag'.
6185         Replace `NULL' with `0' everywhere for consistency.
6186         (lookup_color, default_black, do_glyph_color, do_fill_color,
6187         get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
6188         define_color): New functions.
6189         (token::next): Implement \M and \m escapes.
6190         (do_if_request): Implement `m' operator.
6191         (usage): Updated.
6192         (main): Implement `-c' option.
6193         (init_markup_requests): Add `defcolor' request.
6194         (warning_table): Add `color' warning.
6195         * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
6196         classes.
6197         * src/roff/troff/node.cc (troff_output_file): New members
6198         `current_{page,glyph}color'.  New member functions `put_hex',
6199         `glyph_color', and `fill_color'.
6200         (glyph_color_node::*, fill_color_node::*): Implement it.
6201         * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
6202         (parse_term): Add support for `f'.
6203         * src/roff/troff/troff.man: Updated.
6205         * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
6206         entry for `F'.
6207         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
6208         * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
6210         * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
6211         (tag_definition): Use `void *' for arg1.
6212         (html_text): New member functions `do_color' and `done_color'.
6213         Use `void *' for second parameter of `push_para' member function.
6214         New `push_para' member function with a single parameter.
6215         Use `char *' for parameter of `issue_table_begin' member funtion.
6216         New `issue_color_begin' member function.
6217         * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
6218         COLOR_TAG.
6219         (html_text::issue_color_begin): New function.
6220         (html_text::issue_table_begin): Use `char *' for parameter.
6221         (html_text::start_tag, html_text::shutdown,
6222         html_text::check_emit_text): Updated.
6223         (html_text::push_para): Use `void *' for second parameter.
6224         Add same function with only one parameter.
6225         (html_text::do_*): Updated.
6226         (html_text::do_color, html_text::done_color): New functions.
6227         * src/devices/grohtml/post-html.cc (style): New member `col'.
6228         Mew member `style' with 6 parameters.
6229         (style::style, style::operator==): Updated.
6230         (html_printer::do_font): Use it.
6231         (html_printer::draw): Add dummy entry for `F'.
6232         (html_printer::set_char): Updated.
6233         * src/devices/grohtml/grohtml.man: Updated.
6235         * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
6236         trailing zeroes removed.
6237         (ps_printer): New members `sbuf_color', `fill_color', and
6238         `output_color'.
6239         Removed member `fill'.
6240         New member function `set_color'.
6241         (ps_printer::ps_printer, ps_printer::set_char): Updated.
6242         (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
6243         ps_printer::fill_path, ps_printer::draw): Use `set_color'.
6245         * tmac/color-html.tmac, tmac/color.tmac: New files.
6246         * tmac/troffrc: Include them.
6247         * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
6248         * tmac/Makefile.sub: Updated.
6250         * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
6251         man/groff.man: Updated.
6252         * font/devps/prologue.ps: Define FC and CO functions.
6254 2001-10-04  Gaius Mulley  <gaius@glam.ac.uk>
6256         Fix incorrect cropping of images and incorrect handling of special
6257         characters.  Fix handling of file names in \O.
6259         * src/include/geometry.h: New file.
6260         * src/libs/libgroff/geometry.cc: New file.
6261         * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
6262         to `geometry.cc'.
6263         * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
6264         initial spaces.
6265         (do_suppress): Updated.
6266         * src/roff/troff/node.cc: Include geometry.h.
6267         (troff_output_file::flush_tbuf): Fixed parameters to
6268         `check_output_limits'.
6269         (troff_output_file::check_charinfo): Ditto.
6270         (troff_output_file::determine_line_limits): Add support for `Da'
6271         and `Dl' commands.
6273         * src/devices/grohtml/post-html.cc (str_translate_to_html):
6274         Add new parameter `is_special' to decode special characters from
6275         escape sequences.
6276         (html_printer::do_title, html_printer::do_heading,
6277         html_printer::do_indentedparagraph,
6278         html_printer::translate_to_html, html_printer::special): Updated.
6280 2001-10-03  Werner LEMBERG  <wl@gnu.org>
6282         * Makefile.sub (DISTCLEANFILES): Add stamp-h.
6283         Fix entry for config.h.
6284         * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
6285         * tmac/troffrc: Translate nonbreakable space character to `\~'.
6286         * src/preproc/eqn/eqn.man: Document -d command line option.
6288 2001-09-27  Werner LEMBERG  <wl@gnu.org>
6290         * man/groff.man: Use
6292           .ev xxx
6293           .na
6294           .nh
6295           <table>
6296           .ev
6298         instead of the old code (`.ad .hy' after the table) to suppress
6299         incorrect hyphenation for grohtml output.
6301 2001-09-22  Werner LEMBERG  <wl@gnu.org>
6303         * man/groff_font.man, man/groff_out.man: Minor fixes.
6305 2001-09-20  Werner LEMBERG  <wl@gnu.org>
6307         * PROBLEMS: Updated, reordered.  Improved EPS section (thanks to
6308         Arnold Robbins <arnold@skeeve.com>).
6310 2001-09-09  Werner LEMBERG  <wl@gnu.org>
6312         * configure: Regenerated with autoconf 2.52.
6314         * doc/groff.texinfo: Complete revision of indices.
6316 2001-09-07  Werner LEMBERG  <wl@gnu.org>
6318         * doc/Makefile (clean): Updated to delete all indices.
6320 2001-09-05  Werner LEMBERG  <wl@gnu.org>
6322         * src/roff/troff/troff.man: Remove superfluous line.
6324         * tmac/s.tmac: Enable all warnings only if no -W or -w option is
6325         given on the command line (or rather, if only the default warnings
6326         are set).
6328 2001-09-03  Werner LEMBERG  <wl@gnu.org>
6330         * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
6331         use .ne for TTY devices.
6333 2001-08-31  Werner LEMBERG  <wl@gnu.org>
6335         * src/roff/troff/token.h, src/roff/troff/input.cc:
6336         s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
6338 2001-08-28  Werner LEMBERG  <wl@gnu.org>
6340         * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
6341         * src/roff/troff/input.cc (token::next): Return
6342         TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
6343         compatibility mode.
6344         (token::description): Updated.
6345         (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
6346         (token::add_to_node_list, token::process): Ignore
6347         TOKEN_TRANSPARENT_ESCAPE.
6349 2001-08-27  Werner LEMBERG  <wl@gnu.org>
6351         * tmac/an-old.tmac: Fix `S' string.
6353 2001-08-26  Werner LEMBERG  <wl@gnu.org>
6355         * src/roff/troff/troff.man: Don't use .ne for TTY devices.
6357 2001-08-25  Werner LEMBERG  <wl@gnu.org>
6359         * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
6360         backslashes).
6361         Many other minor fixes.
6363         * configure.ac: Add message at end to inform how to compile
6364         xditview.
6365         * configure: Regenerated.
6367 2001-08-24  Werner LEMBERG  <wl@gnu.org>
6369         * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
6370         Updated to latest version of libc.
6372 2001-08-23  Werner LEMBERG  <wl@gnu.org>
6374         * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
6375         Autoconf 2.50 and newer can handle this.
6376         * configure: Regenerated.
6378 2001-08-21  Werner LEMBERG  <wl@gnu.org>
6380         * doc/pic.ms: Fix typo.
6381         * src/preproc/tbl/tbl.man: Document case of global options.
6383 2001-08-21  Gaius Mulley  <gaius@glam.ac.uk>
6385         * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
6386         handling of `CR' font.
6388 2001-08-20  Werner LEMBERG  <wl@gnu.org>
6390         Use a config.h file.
6392         * src/include/lib.h: Include config.h.
6393         * All C files: Ditto (if necessary).
6394         * All C++ source and header files: Include lib.h first (if
6395         necessary).
6397         * src/include/config.hin: New file (autogenerated by autoheader).
6398         * stamp-h.in: New file.
6399         * configure.ac: Updated.
6400         * aclocal.m4: Add third parameters to AC_DEFINE macros.
6401         (GROFF_ARRAY_DELETE): Simplified.
6402         * Makefile.sub (DISTCLEANFILES): Updated.
6403         Added targets for remaking config.status, config.hin, config.h,
6404         stamp-h.in, and stamp-h.
6405         * configure: Regenerated.
6407 2001-08-19  Werner LEMBERG  <wl@gnu.org>
6409         * NEWS: Updated.
6411 2001-08-18  Sebastian Krahmer  <krahmer@suse.de>
6413         * src/preproc/pic/pic.y (format_number): Use do_sprintf().
6414         (do_sprintf): Use snprintf().
6416 2001-08-18  Werner LEMBERG  <wl@gnu.org>
6418         * src/libs/snprintf/*: Added an snprintf module written by Mark
6419         Martinec.
6420         * src/libs/libgroff/Makefile.sub: Updated.
6421         * configure.ac: Add test for snprintf().
6422         * Makefile.in: Updated.
6423         * configure: Regenerated.
6425         * src/preproc/html/pre-html.cc (make_message): Reactivate code which
6426         uses snprintf().
6428 2001-08-14  Ruslan Ermilov  <ru@FreeBSD.org>
6430         * tmac/doc.tmac (Ex): New implementation.
6431         * tmac/doc-common, tmac/groff_tmac.man: Updated.
6433 2001-08-13  Ruslan Ermilov  <ru@FreeBSD.org>
6435         * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
6436         argument.
6437         * tmac/groff_tmac.man: Updated.
6439 2001-08-13  Werner LEMBERG  <wl@gnu.org>
6441         * src/preproc/tbl/tbl.man: Minor documentation update.
6443 2001-08-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6445         * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
6446         * configure.ac: Add declaration test for gettimeofday().
6447         * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
6448         * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
6449         * configure: Regenerated.
6451 2001-08-11  Werner LEMBERG  <wl@gnu.org>
6453         * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
6454         * configure.ac: Add declaration test for strcasecmp().
6455         * Makefile.in: Updated.
6456         * configure: Regenerated.
6457         * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
6458         this is necessary because groff's mkstemp.cc is C++.
6459         Add declaration conditionally for strcasecmp().
6461 2001-08-10  Werner LEMBERG  <wl@gnu.org>
6463         Integrated pic2graph, contributed by Eric S. Raymond.
6465         * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
6466         files.
6467         * Makefile.in, NEWS: Updated.
6469         * src/preproc/tbl/tbl.man: Revised.
6471 2001-08-09  Eric S. Raymond  <esr@thyrsus.com>
6473         * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
6475 2001-08-09  Werner LEMBERG  <wl@gnu.org>
6477         * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
6478         requests.
6480 2001-08-08  Paul Eggert  <eggert@twinsun.com>
6482         * Makefile.sub (configure): Depend on configure.ac, not
6483         configure.in.
6484         * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
6486 2001-08-07  Werner LEMBERG  <wl@gnu.org>
6488         * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
6489         fixes.
6491 2001-08-06  Werner LEMBERG  <wl@gnu.org>
6493         * src/roff/troff/troff.man: Improve documentation of -E option.
6495 2001-07-28  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
6497         * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
6498         Simplified.
6500 2001-07-27  Werner LEMBERG  <wl@gnu.org>
6502         * src/preproc/refer/refer.cc: Undo last change.
6503         * src/devices/grohtml/post-html.cc: Ditto.
6505 2001-07-26  Werner LEMBERG  <wl@gnu.org>
6507         * src/preproc/refer/refer.cc: Include `lib.h'.
6508         * src/devices/grohtml/post-html.cc: Ditto.
6510 2001-07-25  Gaius Mulley  <gaius@glam.ac.uk>
6512         * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
6513         * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
6514         * Makefile.in: Comment updated.
6515         * configure: Regenerated.
6517 2001-07-25  Werner LEMBERG  <wl@gnu.org>
6519         * src/preproc/pic/pic.cc: Removed.
6520         * src/preproc/pic/pic_tab.h: Removed.
6521         * src/preproc/refer/label.cc: Removed.
6523         * doc/Makefile (.ms.html): Don't use a file name extension in
6524         argument to grohtml's -I option.
6525         * Makefile.in (dist): Remove CVS directories.
6526         Call `distfiles' target.
6528         * src/devices/grohtml/grohtml.man: Add information about valid
6529         versions of pnmtopng.
6530         * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
6531         name instead of number.
6533 2001-07-24  Werner LEMBERG  <wl@gnu.org>
6535         * doc/groff.texinfo: Minor fixes.
6537 2001-07-21  Gaius Mulley  <gaius@glam.ac.uk>
6539         * doc/Makefile (.ms.html): Put image files into a subdirectory.
6540         (clean): Updated.
6542 2001-07-20  Werner LEMBERG  <wl@gnu.org>
6544         * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
6545         * src/libs/libgroff/mkstemp.cc: New file.
6546         * src/libs/libgroff/mksdir.cc: New file.
6547         * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
6548         (xtmpfile) [!HAVE_MKSTEMP]: Removed.
6549         * src/libs/libgroff/Makefile.sub: Updated.
6550         * src/include/lib.h: Add mksdir() prototype.
6551         * src/include/posix.h: Define S_IXUSR if not yet defined.
6553         * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
6554         (createAllPages): Use mksdir() instead of current code.
6555         * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
6556         (main): [!HAVE_MKSTEMP]: Removed.
6558         * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
6559         (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
6560         macros.
6561         * configure.ac: Add tests for stdint.h, sys/time.h, and
6562         gettimeofday().
6563         Call new GROFF_xxx macros.
6564         * configure: Regenerated.
6565         * Makefile.in: Comments updated.
6567 2001-07-20  Gaius Mulley  <gaius@glam.ac.uk>
6569         * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
6570         instead of current code.
6571         * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
6572         * src/roff/groff/groff.cc (possible_command::insert_args): New
6573         function.
6574         (main): Use it for predriver handling instead of insert_arg().
6576 2001-07-19  Werner LEMBERG  <wl@gnu.org>
6578         * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
6579         groff also.
6581         * src/include/posix.h: Define S_IWUSR if not yet defined.
6583 2001-07-18  Werner LEMBERG  <wl@gnu.org>
6585         * NEWS: Updated.
6587 2001-07-18  Ruslan Ermilov  <ru@FreeBSD.org>
6589         * tmac/groff_mdoc.man: Document new -width and -column syntax.
6590         Some other minor fixes.
6591         * tmac/an-old.tmac: Add `AT' and `UC' macros.
6593 2001-07-17  Gaius Mulley  <gaius@glam.ac.uk>
6595         Replace call to `troff' with `groff -Z' to make it aware of
6596         GROFF_BIN_PATH.
6598         * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
6599         (troff_command, command_prefix): Removed.
6600         (alterDeviceTo): Use groff.
6601         (addZ): New function.
6602         (char_buffer::do_html): Use it.
6603         (scanArguments): Use TROFF_COMMAND.
6604         (findPrefix): Removed.
6605         (main): Updated.
6606         * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
6608 2001-07-17  Eric S. Raymond  <esr@snark.thyrsus.com>
6610         * doc/pic.ms: Documentation fixes.
6612 2001-07-17  Werner LEMBERG  <wl@gnu.org>
6614         Replace atexit() with global destructor.
6616         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
6617         (xtmpfile_list_init): New global structure to deallocate
6618         xtmpfile_list on exit.  Its destructor inherits most code from
6619         remove_tmp_files().
6620         (remove_tmp_files): Deleted.
6621         (add_tmp_file): Simplified.
6623 2001-07-16  Werner LEMBERG  <wl@gnu.org>
6625         Replace strdup() with strsave().
6627         * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
6628         (set_papersize): Use strsave() and a_delete.
6629         (main): Use strsave().
6630         * src/preproc/html/pre-html.cc (make_message, createAllPages,
6631         removeAllPages): Use strsave() and a_delete.
6633         * configure.ac: Remove test for strdup.
6634         * Makefile.in: Comment updated.
6635         * configure: Regenerated.
6637 2001-07-15  Werner LEMBERG  <wl@gnu.org>
6639         * win32-diffs: Updated.
6641 2001-07-14  Werner LEMBERG  <wl@gnu.org>
6643         * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
6644         removing the old one.
6645         * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
6647 2001-07-14  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
6649         * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
6651 2001-07-12  Ruslan Ermilov  <ru@FreeBSD.org>
6653         Merge -xwidth into -width.  Add -xwidth functionality to -column
6654         also.
6656         * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
6657         avoid warning.
6658         (doc-do-Bl-args): Merge -xwidth code with -width.  Test whether
6659         string immediately following a leading dot starts with a valid mdoc
6660         argument.
6661         Add similar code to the -column branch.
6662         (doc-Bl-usage): Updated.
6663         * groff_mdoc.man: s/-xwidth/-width/.
6665 2001-07-12  Gaius Mulley  <gaius@glam.ac.uk>
6667         * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
6668         running into centered or non-formatted text.
6670 2001-07-11  Werner LEMBERG  <wl@gnu.org>
6672         Introduce short and long prefixes to have the selection at run-time
6673         whether there is a 8+3 limit for names of temporary files.
6675         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
6676         (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
6677         (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
6678         variables.
6679         (temp_init): New global structure to initialize above three
6680         variables.
6681         (xtmptemplate): Use two parameters for long and short prefix.
6682         Simplify code use above three variables.
6683         (xtmpfile): Use long and short prefixes as parameters.
6684         * src/include/lib.h: Updated.
6686         * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
6687         with ...
6688         ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
6689         (createAllPages, makeTempFiles): Updated.
6691 2001-07-09  Werner LEMBERG  <wl@gnu.org>
6693         * REVISION: Increased to 3.
6695 Version 1.17.2 released
6696 =======================
6698 2001-07-07  Werner LEMBERG  <wl@gnu.org>
6700         * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
6701         to size_t.
6703 2001-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
6705         * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
6706         Fix synopsis.
6707         * tmac/groff_mdoc.man: Fix synopsis.
6709 2001-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
6711         * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
6712         Restore `doc-Pa-font'.
6714 2001-07-04  Werner LEMBERG  <wl@gnu.org>
6716         * src/utils/indxbib/dirnamemax.c: Moved to ...
6717         * src/libs/libgroff/maxfilename.cc: Here.
6718         s/dir_name_max/file_name_max/.
6719         Add copyright.
6720         * src/include/lib.h: Add file_name_max.
6721         * src/utils/indxbib/indxbib.cc: Updated.
6722         * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
6723         Updated.
6725         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
6726         as empty.
6727         (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
6729         * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
6730         REGION_TEMPLATE): New macros.
6731         (createAllPages, makeTempFiles): Use them.
6732         Include `nonposix.h'.
6733         (html_system): New function.
6734         (createAllPages, createImage): Use it.
6735         Use EXE_EXT.
6737         * tmac/www.tmac: Fix typos.
6739 2001-07-03  Werner LEMBERG  <wl@gnu.org>
6741         * tmac/www.tmac: Disable hyphenation in normal text only if output
6742         device is html.
6743         (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
6744         * tmac/groff_mwww.man, NEWS: Updated.
6746 2001-07-03  Gaius Mulley  <gaius@glam.ac.uk>
6748         * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
6749         image location.
6751 2001-07-02  Ruslan Ermilov  <ru@FreeBSD.org>
6753         * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
6754         doc-display-ps-stack): Implement font and font size stack for
6755         displays.
6757 2001-07-02  Werner LEMBERG  <wl@gnu.org>
6759         * REVISION: Increased to 2.
6760         * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
6762         * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
6763         beginning of a line.
6764         * src/groff/grog/grog.sh: Ditto.
6766 2001-06-29  Peter Marquardt  <wwwutz@molgen.mpg.de>
6768         * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
6769         make it portable.
6771 2001-06-27  Werner LEMBERG  <wl@gnu.org>
6773         Fix problems with preprocessor string for `man' program.
6775         * *.man: Don't use `s' in preprocessor string --  it doesn't exist.
6776         Updated/added copyright.
6777         Moved Emacs's local variable to identify nroff mode to the end of
6778         the file; add local variable if missing.
6780 2001-06-26  Andras Salamon  <andras@cs.wits.ac.za>
6782         * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
6783         AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
6784         * configure: Regenerated.
6786 2001-06-25  Andras Salamon  <andras@cs.wits.ac.za>
6788         * aclocal.m4 (GROFF_PAGE): Fix page detection code.
6789         * configure: Regenerated.
6791 2001-06-24  Werner LEMBERG  <wl@gnu.org>
6793         * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
6794         but www.tmac.
6795         * doc/pic.ms: Fix typos.
6797 Version 1.17.1 released
6798 =======================
6800 2001-06-21  Golubev I. N.  <gin@mo.msk.ru>
6802         * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
6803         * configure: Updated.
6805 2001-06-20  Gaius Mulley  <gaius@glam.ac.uk>
6807         * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
6808         image names.
6809         * src/roff/troff/dic.cc (blank_line): Add html tag.
6811 2001-06-19  Gaius Mulley  <gaius@glam.ac.uk>
6813         * src/roff/troff/input.cc (do_suppress): Fix typo.
6815 2001-06-18  Gaius Mulley  <gaius@glam.ac.uk>
6817         Added two new options (-D and -I) to specify image names and a
6818         subdirectory to place the images in.
6820         Change syntax from \\Ox to \\O[x].
6822         * src/devices/grohtml/post-html.cc (main): Add options.
6823         (usage): Updated.
6824         * src/preproc/html/pre-html.cc: Include `stdarg.h'.
6825         Use `NULL' instead of `0' for null string pointers.
6826         (MAX_RETRIES): New macro.
6827         (lengthOfintToStr, intToStr, make_message): New functions.
6828         (makeFileName): Make function static.
6829         Implement -D and -I options.
6830         (checkImageDir): New function.
6831         (write_end_image, write_start_image): Use new syntax of \O.
6832         (createAllPages, removeAllPages): Implement -D and -I options.  Use
6833         make_message().
6834         (createImage): Use make_message().
6835         (addps4html): Add guard for malloc().
6836         (usage, scanArguments): Updated.
6837         (makeTempFiles): Use mkstemp().
6838         (removeTempFiles): Use unlink().
6839         (findPrefix): Add guard for malloc().
6840         (main): Updated.
6841         * src/roff/troff/input.cc (get_delim_file_name): New function to
6842         parse \O.
6843         (do_suppress): Updated to parse new syntax.
6844         * src/devices/grohtml/grohtml.man: Updated.
6845         * tmac/www.tmac: Updated to new syntax.
6847         * NEWS: Updated.
6849 2001-06-15  Werner LEMBERG  <wl@gnu.org>
6851         * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
6853         * src/devices/grohtml/grohtml.man: Minor improvements.
6855 2001-06-14  Werner LEMBERG  <wl@gnu.org>
6857         * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
6859 2001-06-11  Werner LEMBERG  <wl@gnu.org>
6861         * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
6862         line to specify preprocessor options -- mandb 2.3.1 only recognizes
6863         the former.
6864         * src/preproc/grn/grn.man: Add proper '\" string.
6866 2001-06-11  OKAZAKI Tetsurou  <okazaki@be.to>
6868         * test-groff: Don't use PATH but GROFF_BIN_PATH.
6870 2001-06-08  Werner LEMBERG  <wl@gnu.org>
6872         Updated to autoconf 2.50.
6874         * configure.in: Renamed to...
6875         * configure.ac: This.
6876         * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
6877         (GROFF_OS390): Updated.
6878         * configure: Regenerated.
6880 2001-05-18  Werner LEMBERG  <wl@gnu.org>
6882         * src/roff/troff/env.c, src/roff/troff/env.h,
6883         src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
6884         from 2000-12-21.
6886 2001-05-17  Jeffrey Friedl  <jfriedl@yahoo-inc.com>
6888         * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
6890 2001-05-16  Werner LEMBERG  <wl@gnu.org>
6892         * src/roff/troff/input.cc (read_size): Emit warning if value becomes
6893         less than or equal zero; set it to 1 then.
6894         * src/roff/troff/node.h (node::node): Initialize `last'.
6896 2001-05-08  Werner LEMBERG  <wl@gnu.org>
6898         * tmac/an-old.tmac: Make predefined strings work in compatibility
6899         mode.
6900         Add troff version guard.
6901         * tmac/doc.tmac: Simplify version guard.
6903 2001-05-07  Werner LEMBERG  <wl@gnu.org>
6905         The .ns and .rs requests are now honoured not only in the top-level
6906         but in all diversions (similar to UNIX troff).
6908         This change is based on a patch from Tadziu Hoffmann
6909         <hoffmann@usm.uni-muenchen.de>.
6911         * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
6912         (top_level_diversion): Remove `no_space_mode' member.
6913         * src/roff/troff/div.cc (diversion::diversion,
6914         top_level_diversion::top_level_diversion): Updated.
6915         (macro_diversion::output): Reset `no_space_mode'.
6916         (no_space, restore_spacing): Use `curdiv' unconditionally.
6917         (space_request, blank_line): Check `curdiv->no_space_mode'.
6918         (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
6919         `curdiv' unconditionally.
6920         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
6921         Updated.
6923 2001-05-06  Werner LEMBERG  <wl@gnu.org>
6925         Added two new requests `de1' and `am1' which are similar to `de' and
6926         `am' with the difference that compatibility mode is saved on entry,
6927         switched off during macro execution, and restored on exit.
6929         * src/roff/troff/input.h: Added two new special characters
6930         (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
6931         * src/roff/troff/input.cc (input_iterator): Added two member
6932         functions `save_compatible_flag' and `get_compatible_flag'.
6933         (input_stack): Ditto.
6934         (string_iterator): Ditto.  Also add private member
6935         `saved_compatible_flag'.
6936         (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
6937         (calling_mode): New enumeration.
6938         (do_define_macro): Use it.  Insert COMPATIBLE_SAVE and
6939         COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
6940         (define_macro, define_indirect_macro, append_macro, ignore): Use
6941         `calling_mode'.
6942         (define_nocomp_macro, append_nocomp_macro): New functions.
6943         (init_input_requests): Updated.
6944         (do_request): Rename local variable `saved_compatible_flag' to
6945         `old_compatible_flag'.
6946         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6948         * tmac/an-old.tmac: Use `de1' instead of `de' request for all
6949         public and trap-invoked macros.  As a consequence, the man macros
6950         work in compatibility mode also.
6952 2001-05-06  Solar Designer  <solar@openwall.com>
6954         * Makefile.in: Use $(mandir).
6956 2001-05-06  Alexios Zavras  <zvr@pobox.com>
6958         * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
6960 2001-05-05  Werner LEMBERG  <wl@gnu.org>
6962         Added `.ns' number register: Returns 1 in no-space mode (if in
6963         top-level diversion), 0 otherwise.
6965         * src/roff/troff/div.cc (no_space_mode_reg): New class.
6966         (init_div_requests): Updated.
6967         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
6968         Document it.
6970 2001-05-04  Werner LEMBERG  <wl@gnu.org>
6972         * src/roff/nroff/nroff.man: Improved documentation (especially
6973         locales).
6975 2001-05-02  Werner LEMBERG  <wl@gnu.org>
6977         Added `brp' request: This is \p as a request.
6979         * src/roff/troff/env.cc (environment::do_break): Add parameter
6980         `spread'.
6981         (do_break_request): New function (was `break_request').
6982         (break_request): Calls `do_break_request'.
6983         (break_spread_request): New; calls `do_break_request'.
6984         (init_env_requests): Updated.
6985         * src/roff/troff/env.h: Updated.
6986         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6988         * REVISION: Increased to 1.
6989         * win32-diffs: Updated.
6991 2001-05-01  Werner LEMBERG  <wl@gnu.org>
6993         * tmac/an-old.tmac: Fix minor compatibility mode issue.
6994         * tmac/troffrc-end: Make it really work in compatibility mode.
6996 2001-04-27  Werner LEMBERG  <wl@gnu.org>
6998         * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
6999         stdlib.h.
7001 2001-04-22  Werner LEMBERG  <wl@gnu.org>
7003         * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
7004         latest versions from glibc CVS archive.
7006         * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
7007         <c.zeelenberg@hccnet.nl>.
7009 2001-04-21  Werner LEMBERG  <wl@gnu.org>
7011         * configure.in: Move check for mkstemp() to...
7012         * aclocal.m4 (GROFF_MKSTEMP): This new function.
7013         * configure: Regenerated.
7015         * src/include/groff-getopt.h: Don't use variable names in
7016         declarations.
7018         * src/devices/grohtml/html-chars.h: Removed.  It isn't used.
7019         * src/devices/grohtml/Makefile.sub,
7020         src/devices/grohtml/post-html.cc: Updated.
7022 2001-04-21  Albert Chin-A-Young  <china@thewrittenword.com>
7024         * configure.in: Add special check for mkstemp().
7025         * src/libs/libgroff/tmpfile.cc: Use it.
7026         * src/utils/indxbib/indxbib.cc: Ditto.
7027         * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
7028         * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
7029         `const'.
7031 2001-04-20  Bruce Lilly  <blilly@erols.com>
7033         `Version_string' as C++ object was not visible to linker from C
7034         object files.
7035         Add `const' to `Version_string'.
7037         * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
7038         (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
7039         (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
7040         (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
7041         (scanArguments), src/preproc/refer/refer.cc (main),
7042         src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
7043         (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
7044         (main), src/devices/grohtml/post-html.cc (main),
7045         src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
7046         (main), src/utils/hpftodit/hpftodit.cc (main),
7047         src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
7048         (main), src/utils/lkbib/lkbib.cc (main),
7049         src/utils/addftinfo/addftinfo.cc (main): Implement it.
7051         * src/roff/groff/pipeline.c: Add _UWIN.
7052         * src/include/nonposix.h: Ditto.
7054 2001-04-20  Werner LEMBERG  <wl@gnu.org>
7056         * src/include/lib.h: Use HAVE_STRERROR.
7057         * src/roff/groff/pipeline.c: Ditto.
7058         * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
7059         * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
7060         * src/utils/pfbtops/pfbtops.c: Add copyright notice.
7061         * win32-diffs: Updated.
7062         * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
7064 2001-04-19  Werner LEMBERG  <wl@gnu.org>
7066         * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
7067         instead of hardwired `"troff"'.
7068         (char_buffer::read_file): Remove unused variables.
7069         (char_buffer::write_file_troff): Ditto.
7070         (char_buffer::write_file_html): Ditto.
7071         (generateImages): Ditto.
7072         (abs): Removed.
7073         * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
7075         * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
7077         * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
7078         * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
7079         index_search_item::search1): Ditto.
7080         * src/roff/troff/node.h (width_list): Reorder members.
7081         * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
7082         (lookup_warning): Ditto.
7083         (prepend_string): Commented out.
7084         * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
7085         * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
7086         * src/preproc/tbl/main.cc (process_format): Ditto.
7087         * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
7088         compiler warnings.
7089         * src/preproc/pic/pic.cc: Updated.
7090         * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
7091         * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
7092         * src/preproc/refer/command.cc (execute_command): Ditto.
7093         * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
7094         * src/preproc/refer/token.cc (lookup_token): Ditto.
7095         * src/preproc/soelim/soelim.cc: Ditto.
7096         * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
7097         (isHexDigit): Commented out.
7098         (pushBackBuffer::isString): Remove unused variable.
7099         * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
7100         warning.
7101         * src/devices/grops/psrm.cc (resource_manager::lookup_font,
7102         resource_manager::read_resource_arg, read_one_of, parse_extensions):
7103         Ditto.
7104         * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
7105         * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
7106         lookup_paper_size): Ditto.
7107         * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
7108         (text_glob, element_list): Reorder members.
7109         * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
7110         compiler warning.
7111         * src/devices/grohtml/html-text.h (html_text::emit_space): Change
7112         return value to `void'.
7113         * src/devices/grohtml/output.cc (word_list::word_list): Fix order
7114         of initializers.
7115         * src/devices/grohtml/html.h (simple_output::check_newline,
7116         simple_output::space_or_newline, simple_output::enable_newlines):
7117         Add return value.
7118         * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
7119         compiler warnings.
7120         * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
7121         * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
7122         output_ligatures, output_charset, read_map): Ditto.
7123         * src/utils/lookbib/lookbib.cc (main): Ditto.
7124         * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
7125         (do_file): Fix typo (`=' -> `==').
7126         * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
7127         * src/utils/addftinfo/addftinfo.cc (main): Ditto.
7129 2001-04-18  Ruslan Ermilov  <ru@FreeBSD.org>
7131         * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
7132         Fix usage of GROFF_BIN_PATH.
7133         * src/roff/nroff/nroff.man: Updated.
7135 2001-04-18  Werner LEMBERG  <wl@gnu.org>
7137         * NEWS: Fixing typos.
7138         Updated.
7140 Version 1.17 released
7141 =====================
7143 2001-04-17  Werner LEMBERG  <wl@gnu.org>
7145         * tmac/Makefile.sub (install-data): mdoc.local-s is in current
7146         directory, not in $(srcdir).
7148 2001-04-16  Werner LEMBERG  <wl@gnu.org>
7150         * doc/groff.texinfo: More info on conditionals.
7152 2001-04-15  Werner LEMBERG  <wl@gnu.org>
7154         * doc/groff.texinfo: Added some info about groff internals.
7156         * src/roff/troff/node.cc (make_glyph_node): Emit warning message
7157         about missing special character only if the name is non-null.
7159 2001-04-14  Werner LEMBERG  <wl@gnu.org>
7161         Removing the grohtml-old device driver which is now obsolete.
7163         * src/devices/grohtml-old/*: Removed.
7164         * font/devhtml-old/*: Removed.
7165         * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
7166         Remove comments.
7167         * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
7168         * test-groff (PATH): Updated.
7169         * tmac/Makefile.sub (NORMALFILES): Updated.
7170         * tmac/an-old.tmac: Remove special code for html-old device.
7171         Replace `html-or-html-old' register with `an-html'.
7172         * tmac/eqnrc: Updated.
7173         * tmac/html-old.tmac: Removed.
7174         * tmac/troffrc, tmac/troffrc-end: Updated.
7175         * tmac/www.tmac: Remove special code for html-old device.
7176         Replace `html-or-html-old' register with `www-html'.
7178         * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
7179         src/libs/libgroff/htmlindicate.cc (graphic_end),
7180         include/htmlindicate.h, src/preproc/grn/*.cc,
7181         src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
7182         single argument for consistency with rest of source code.
7184         * aclocal.m4, tmac/an-old.tmac: Fix copyright.
7186 2001-04-13  Ruslan Ermilov  <ru@FreeBSD.org>
7188         * src/roff/troff/troff.man: Fixing typos.
7190 2001-04-13  Werner LEMBERG  <wl@gnu.org>
7192         * doc/pic.ms: Fixing many font switches.
7193         * doc/groff.texinfo: Fixes, additions.
7194         * MORE.STUFF: Updated.
7196 2001-04-12  Gaius Mulley  <gaius@glam.ac.uk>
7198         * src/devices/grohtml/grohtml.man: Updated manual page regarding
7199         simple anchor.
7200         * src/preproc/html/pre-html.cc (createImage): Fixed right hand
7201         cropping of images.
7202         (removeTempFiles): New function to tidy up temporary files.
7203         * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
7204         Many fixes to do with the new inline suppress node and image regions
7205         are much tighter.
7206         * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
7207         (generate_img_src): New function.
7208         (html_printer::do_auto_image): Utilizes it.
7209         (do_heading, do_title): Include inline images within their contents.
7210         (html_printer::begin_page): Tidied up comments that are issued to
7211         the html output file.
7212         (html_printer::do_fill): Fixed so that `.nf' works with fonts other
7213         than courier.
7214         (text_glob::is_br): New method used by do_heading.
7215         * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
7216         equivalent diversion.
7217         * src/include/html-strings.h: Altered image tags to reflect the
7218         inline image node.
7219         * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
7220         parameter.
7221         * src/preproc/eqn/main.cc: Will suppress generation of image tags if
7222         it is already inside a pic image.  Only emit tags if the argument
7223         `-Tps:html' is present.
7224         * src/preproc/tbl/main.cc: Changes to reflect additional
7225         `html_end_suppress' parameter.
7226         * src/roff/troff/env.cc: Only emit eol tag if a node has been
7227         emitted since the last eol tag was written.
7228         * src/roff/troff/env.h: New boolean `emitted_node'.
7229         * src/roff/troff/input.cc (do_suppress): Handles extra suppress
7230         nodes \O3, \O4, \O5.  No longer use `output_low_mark_miny'.
7231         * src/roff/troff/node.cc (check_charinfo): New method. 
7232         (troff_output_file::determine_line_limits): Alterations to limit
7233         checking.
7234         * tmac/www.tmac: Changes to reflect new suppress nodes.
7235           
7236 2001-04-12  Bruno Haible  <haible@clisp.cons.org>
7238         * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
7239         Escape the html_glyph in the buffer.
7240         (str_translate_to_html): Output the unescaped escaped_char.
7241         * src/devices/grohtml/html-text.cc (issue_table_begin): Set
7242         `frame=void', not `frame=none'.  Add `border=0'.
7244 2001-04-12  Werner LEMBERG  <wl@gnu.org>
7246         * PROBLEMS: Add some words on how to avoid wrapper macros.
7248 2001-04-11  Blake McBride  <blake@florida-software.com>
7250         * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
7252 2001-04-11  Werner LEMBERG  <wl@gnu.org>
7254         * font/devlbp/Makefile.sub (CLEANADD): Set it.
7255         * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
7256         * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
7257         * Makefile.sub (DISTCLEANFILES): Here.
7259         * libs/libgroff/new.cc: Include `nonposix.h'.
7260         * win32-diffs: Updated.
7262 2001-04-10  Ruslan Ermilov  <ru@FreeBSD.org>
7264         Added skeleton macro for defunct macros.
7266         Updated documentation.
7268         When inside displays, an empty input line warning should be
7269         suppressed.  If another macro call is put inside a display,
7270         all subsequent empty lines found in that display caused a
7271         warning to be emitted.
7273         * tmac/doc.tmac (doc-defunct-macro): New macro.
7274         (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
7275         (doc-restore-global-vars): Fixed typo.
7276         (doc-empty-line): Check the `doc-display-depth' register to
7277         determine whether we are inside display or not.
7279         * tmac/doc-common: Removed `Or' and `Sf' registers.
7280         Moved obsolete `Ds' macro to doc.tmac.
7282         * tmac/groff_mdoc.man: Bump document date.
7283         Document `.Vt' under ``Variable Types''.
7284         Removed documentation for obsolete `.Or' macro.
7286 2001-04-10  Werner LEMBERG  <wl@gnu.org>
7288         * NEWS: Updated.
7289         * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
7291 2001-04-10  Bruno Haible  <haible@clisp.cons.org>
7293         * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
7294         (usage): Add stream argument. Don't exit.
7295         * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
7296         Write --version output to stdout, not stderr.
7297         (usage): Add stream argument. Don't exit.
7298         * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
7299         (usage): Add stream argument. Don't exit.
7300         * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
7301         constants.
7302         (usage): Add stream argument. Don't exit.
7303         (main): Write --help output to stdout, not stderr.
7304         * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
7305         (usage): Add stream argument. Don't exit.
7306         * src/devices/grops/ps.cc (main): Accept --help and --version.
7307         (usage): Add stream argument. Don't exit.
7308         * src/devices/grotty/tty.cc (main): Accept --help and --version.
7309         (usage): Add stream argument. Don't exit.
7310         * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
7311         (main): Accept --help and --version.
7312         * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
7313         (main): Accept --help and --version.
7314         * src/preproc/html/pre-html.cc (usage): Add stream argument.
7315         (scanArguments): Accept --help and --version.
7316         * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
7317         (main): Accept --help and --version.
7318         * src/preproc/refer/refer.cc (main): Accept --help and --version.
7319         (usage): Add stream argument. Don't exit.
7320         * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
7321         exit.
7322         (main): Accept --help and --version.
7323         * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
7324         (main): Accept --help and --version.
7325         * src/roff/groff/groff.cc (main): Accept --help and --version.
7326         (synopsis): Add stream argument.
7327         (help): Write --help output to stdout, not stderr.
7328         (usage): Add stream argument. Don't exit.
7329         * src/roff/grog/grog.pl: Accept --help and --version.
7330         (help): New sub.
7331         * src/roff/grog/grog.sh: Accept --help and --version.
7332         * src/roff/nroff/nroff.sh: Accept --help and --version.
7333         * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
7334         (usage): Add stream argument. Don't exit.
7335         (main): Accept --help and --version.
7336         * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
7337         (usage): New function with stream argument, doesn't exit.
7338         * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
7339         (usage): New function with stream argument, doesn't exit.
7340         * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
7341         (usage): Add stream argument. Don't exit.
7342         * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
7343         (main): Accept --help and --version.
7344         * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
7345         exit.
7346         (main): Accept --help and --version.
7347         * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
7348         (main): Accept --help and --version.
7349         * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
7350         (usage): Add stream argument. Don't exit.
7352 2001-04-10  Ruslan Ermilov  <ru@freebsd.org>
7354         Fix indentation in SYNOPSIS.
7356         Updated to include changes of latest BSD mdoc version (basically,
7357         the only change is that `.Fn' and `.Fc' put a final semicolon after
7358         a function declaration in the SYNOPSIS section).
7360         * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
7361         (doc-in-synopsis-section): New variable.  Updated all related
7362         functions.
7363         (doc-indent-synopsis-active): New register.
7364         (Nd, Fn, Fo): Use it.
7365         (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
7366         `.Cd' with long argument line produces indented wrapped lines. 
7367         Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
7368         undesirable line break to be output.
7369         (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
7370         `.rs'.
7371         (Fn, Fc): Add final `;' to output.
7372         (doc-save-global-vars, doc-restore-global-vars): Updated.
7373         * tmac/doc-common: Remove `Ex' register.
7374         Updated.
7375         * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
7376         copyright.
7378 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
7380         * tmac/doc.tmac (Cd): Simplify code.
7381         * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
7383 2001-04-06  Werner LEMBERG  <wl@gnu.org>
7385         Implement continuous underlining for nroff mode.  To do that, a new
7386         request in the ditroff language has been added: `x u N' (N is 0
7387         or 1).
7389         \X and \Y are now transparent to end-of-sentence recognition.
7391         * src/include/printer.h (printer): Add `type' parameter to `special'
7392         method.
7393         * src/libs/libdriver/printer.cc (printer::special): Updated.
7394         * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
7396         * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
7397         specials of type `p'.
7398         * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
7399         * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
7400         * src/devices/grops/ps.cc (ps_printer::special): Ditto.
7401         * src/devices/grotty/tty.cc: Add new enum CU_MODE.
7402         (glyph::order): New method.
7403         (tty_printer::add_char): Use it.
7404         (tty_printer::special): New method.
7405         (tty_printer::end_page): Implement it.
7407         * src/roff/troff/node.h (special_node): Add `no_init_string' member.
7408         * src/roff/troff/node.cc (special_node::special_node): Add parameter
7409         to set `no_init_string'.
7410         (special_node::tprint_start): Use it.
7411         (special_node::same, special_node::copy): Updated.
7412         (special_node::ends_sentence): New method.
7413         (troff_output_file::start_special): Add parameter to include
7414         inititialization of special conditionally.
7416         * src/roff/troff/env.h (environment): New member `underline_spaces'.
7417         * src/roff/troff/env.cc (do_underline_special): New function.
7418         (environment::set_font): Use it.
7419         (do_underline): Use it.  This was `underline()'.
7420         (underline): Call `do_underline()'.
7421         (continuous_underline): New function which calls `do_underline()'.
7422         (environment::newline): Use `do_underline_special()'.
7423         (init_env_requests): Updated.
7425         * NEWS, man/troff_out.man: Updated.
7427 2001-04-06  Bruno Haible  <haible@clisp.cons.org>
7429         * font/devutf8/R.proto: Fix code of 'shc'.
7431 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
7433         Many fixes.  Diag lists can now be nested also; additionally,
7434         `-compact' and `-offset' are supported.
7436         * tmac/doc.tmac (doc-have-indent): Replaced with ...
7437         (doc-list-have-indent-stackXXX): A new register stack.
7438         (doc-have-diag-list): Removed.
7439         (Bl): Use `doc-list-have-indent-stackXXX'.
7440         (El): Updated.
7441         (doc-diag-list): Use `doc-compact-list-stackXXX'.
7442         (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
7443         (doc-set-vertical-and-indent): Ditto.
7444         (doc-next-list-depth): Removed.
7445         (doc-increment-list-stack): Updated.
7446         (doc-decrement-list-stack): Use `doc-list-depth' instead of
7447         `doc-next-list-depth'.
7448         (doc-end-list, doc-end-column-list): Don't use
7449         `doc-increment-list-stack'.
7450         (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
7451         (doc-save-global-vars, doc-restore-global-vars): Updated.
7452         * tmac/doc-common: Updated.
7453         * tmac/groff_mdoc.man: Updated.
7454         * NEWS: Fix typo.
7456 2001-04-02  Werner LEMBERG  <wl@gnu.org>
7458         * src/devices/grotty/grotty.man: Fix grammatical error.
7460 2001-03-30  Ruslan Ermilov  <ru@freebsd.org>
7462         Remove .Ld from mdoc package; replace it with special handling of
7463         `...'.
7465         * tmac/doc-common: Remove `Ld' register.
7466         Uncomment `doc-volume-ds-*' strings.
7467         Remove `doc-operating-system-default'.
7468         (Os): Updated.
7469         * tmac/doc-syms (Ld): Removed.
7470         * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
7471         `...' specially.
7472         * NEWS: Updated.
7474         * tmac/groff_mdoc.man: Many fixes and updates.
7476 2001-03-29  Werner LEMBERG  <wl@gnu.org>
7478         * tmac/troffrc-end: Protect data with `.do'.  Reported by T. Kurt
7479         Bond <tkb@tkb.mpl.com>.
7480         * tmac/www.tmac: Save compatibility mode.
7482 2001-03-28  Ruslan Ermilov  <ru@freebsd.org>
7484         * tmac/groff_mdoc.man: Many fixes.
7486 2001-03-28  Werner LEMBERG  <wl@gnu.org>
7488         * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
7489         isn't recognized.
7491 2001-03-27  Werner LEMBERG  <wl@gnu.org>
7493         * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
7494         diversion.  This fixes overlong tags.
7496 2001-03-26  Werner LEMBERG  <wl@gnu.org>
7498         * doc/groff.texinfo: Fixed and improved documentation of fonts.
7499         * tmac/doc-syms: Fix error messages.
7500         * tmac/an-old.tmac: Remove incorrect double backslashes.
7502 2001-03-24  Ruslan Ermilov  <ru@freebsd.org>
7504         * tmac/Makefile.sub: Strip mdoc.local also
7505         * tmac/strip.sed: Fixed.
7507 2001-03-24  Werner LEMBERG  <wl@gnu.org>
7509         * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
7510         selecting the font size.
7511         * tmac/groff_mdoc.man, NEWS: Document it.
7513 2001-03-23  Werner LEMBERG  <wl@gnu.org>
7515         * src/roff/troff/div.cc (save_vertical_space): Add default argument
7516         to `sv' request.
7517         * src/roff/troff/env.cc (family_change): Make `.fam' accept no
7518         argument to restore previous font family.
7519         * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
7521         * doc/groff.texinfo: More fixes and additions (mainly for font
7522         manipulating commands).
7524         * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
7525         * tmac/groff_mdoc.man: This.  The quick reference has been removed.
7526         * tmac/Makefile.sub, NEWS: Updated.
7528 2001-03-23  Werner LEMBERG  <wl@gnu.org>
7530         Replaced mdoc implementation.  The new version is `state of the
7531         art', using almost all new features of groff 1.17 -- it won't run
7532         with older versions.
7534         * tmac/doc.tmac: Completely rewritten.
7535         * tmac/doc-common: Ditto.
7536         * tmac/doc-nroff: Ditto.
7537         * tmac/doc-ditroff: Ditto.
7538         * tmac/doc-syms: Ditto.
7539         * tmac/mdoc.local: New file.
7540         * tmac/groff_mdoc.samples.man: Replaced with ...
7541         * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
7542         * tmac/strip.sed: Updated.
7543         * tmac/Makefile.sub: Updated.
7544         * INSTALL: Updated.
7546         * tmac/groff_man.man: Add `man.local' to the FILES section.
7548 2001-03-22  Werner LEMBERG  <wl@gnu.org>
7550         * doc/groff.texinfo: Added many @noindent.
7551         Replaced @end_Example -> @endExample.
7552         Added info whether registers are r/o.
7553         Many other additions and fixes.
7555 2001-03-21  Werner LEMBERG  <wl@gnu.org>
7557         * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
7558         in makeinfo of texinfo 4.0) to be used in @Def* macros.
7559         Improved @Def* macros: Now the exact syntax of request, register,
7560         and escapes is shown.
7561         Added macros for parentheses and brackets to be used in @Def*.
7562         Many fixes and improvements of the documentation.
7564 2001-03-20  Werner LEMBERG  <wl@gnu.org>
7566         * doc/groff.texinfo: Added new index: `st' (for strings).
7567         Added macros @Defstr(x).
7568         Added macro @Example (adding @group).
7569         Other minor improvements.
7571 2001-03-19  Werner LEMBERG  <wl@gnu.org>
7573         * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
7574         `rq' for requests.  `fn' is no longer used.
7575         Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
7576         Removed @Deffn(x).
7578         * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
7579         number with name of man page.
7581 2001-03-19  Larry Kollar  <kollar@alltel.net>
7583         * doc/groff.texinfo: Complete revision.  Added many @Deffn to gain
7584         consistency.
7586 2001-03-19  Werner LEMBERG  <wl@gnu.org>
7588         * man/groff_font.man: Document `prepro', `postpro', and `print'.
7589         * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
7590         * src/devices/grohtml/grohtml.man: Fixing typos.
7592 2001-03-19  Gaius Mulley  <gaius@glam.ac.uk>
7594         * tmac/s.tmac (@IP): Pass `.ip' html tag.
7595         * tmac/groff_mwww.man: Remove .LINE macro
7596         * tmac/www.tmac (LINE): Add `.ti'.
7598         * src/devices/grohtml/post-html.cc (html_printer): New member
7599         `indent'.
7600         (html_printer::emit_raw): Use it.
7601         (html_printer::do_linelength): Ditto.
7602         (html_printer::do_pageoffset): Ditto.
7603         (html_printer::do_indentation): Ditto.
7604         (html_printer::do_tempindent): Ditto.
7605         (html_printer::do_break): Ditto.
7606         (html_printer::begin_page): Ditto.
7607         (html_printer::do_indentedparagraph): New function.
7608         (html_printer::troff_tag): Handle `.ip'.
7609         * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
7610         Add `<td width=...>' handling.
7611         (html_text::do_table): Add parameter.
7612         (html_text::do_indent): Updated.
7613         * src/devices/groohtml/html-text.h: Updated.
7615 2001-03-16  Gaius Mulley  <gaius@glam.ac.uk>
7617         Introduced simple html tables to implement indentation.
7619         * src/devices/grohtml/html.h (word, word_list): New structures.
7620         (simple_output): Use it.
7621         * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
7622         (html_printer): Improve indentation handling.
7623         (html_printer::emit_raw): Set `in_table' element.  Handle
7624         indentation if set.
7625         (html_printer::write_header): Move conditional downwards.
7626         Don't allow whitespace in tags.
7627         (html_printer::do_linelength): Handle line length and indentation
7628         conditionally.
7629         (html_printer::do_pageoffset): Handle indentation conditionally.
7630         (html_printer::do_indentation): Ditto.
7631         (html_printer::do_tempindent): New function member.
7632         (html_printer::do_fill): Take care of indentation.
7633         (html_printer::do_flush): Finish table.
7634         (html_printer::do_links): Ditto.
7635         (html_printer::do_break): New function for handling `.br' and `.ti'.
7636         (html_printer::troff_tag): Use it.
7637         Handle `.ti'.
7638         (html_printer::flush_globs): Fix.
7639         (html_printer::flush_page): Finish table.
7640         (html_printer::html_printer): Fix error message.  Set up
7641         `linelength'.
7642         (html_printer::add_to_sbuf): Remove special handling of character
7643         code 255.
7644         (to_unicode): Remove `stop()'.
7645         (html_printer::write_title): Cleanup.
7646         (html_printer::begin_page): Use `put_string()'.  Handle indentation.
7647         (html_printer::~html_printer): Flush text and end the line.
7648         Use `put_string()'.
7649         * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
7650         * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
7651         emission of tags.
7652         (html_text::start_tag): Disable newlines.
7653         (html_text::table_is_void): New function.
7654         (html_text::issue_table_begin): Ditto.
7655         (html_text::issue_table_end): Ditto.
7656         (html_text::push_para): Better table handling.
7657         (html_text::do_indent): New function.
7658         (html_text::do_table): Ditto.
7659         (html_text::done_table): Ditto.
7660         (html_text::do_tt): Handle PRE_TAG.
7661         (html_text::is_in_table): New function.
7662         (html_text::check_emit_text): Handle tables.
7663         (html_text::do_emittext): Use `nl()'.
7664         (html_text::do_para): Handle table.
7665         (html_text::remove_def): New function.
7666         * src/devices/grohtml/output.cc (word, word_list): Implement
7667         methods.
7668         (simple_output::end_line): Flush last word.
7669         (simple_output::simple_comment): Ditto.
7670         (simple_output::begin_comment): Recoded.
7671         (simple_output::end_comment): Ditto.
7672         (simple_output::comment_arg): Removed.
7673         (simple_output::check_newline): Improve test and flush last word.
7674         (simple_output::space_or_newline): Improved.
7675         (simple_output::write_newline): Replaced with...
7676         (simple_output::nl): This.
7677         (simple_output::put_raw_char): Flush last word.
7678         (simple_output::check_space): Removed.
7679         (simple_output::put_translated_string): Ditto.
7680         (simple_output::put_string): Simplified.
7681         (simple_output::put_number): Updated.
7682         (simple_output::put_float): Ditto.
7683         (simple_output::put_symbol): Removed.
7684         (simple_output::enable_newlines): Add `check_newline()'.
7685         (simple_output::flush_last_word): New function.
7687         * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
7688         * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
7690         * tmac/s.tmac (@PP, @IP): Add html conditional code.
7691         * tmac/an-old.tmac (TP): Ditto.
7693 2001-03-09  Ruslan Ermilov  <ru@freebsd.org>
7695         * mdate.sh: Make it POSIX compliant.
7697 2001-03-09  Werner LEMBERG  <wl@gnu.org>
7699         Added the `return' request to end a macro immediately.  It simply
7700         pops iterators from the input stack until a macro iterator is found.
7702         * src/roff/troff/input.cc (input_iterator::is_macro,
7703         macro_iterator::is_macro): New member.
7704         (input_return_boundary): New class to signal an immediate return
7705         to while_request().
7706         (input_stack::add_return_boundary, input_stack::is_return_boundary):
7707         New functions.
7708         (input_stack::clear): Use it.
7709         (input_stack::pop_macro): New function.
7710         (while_request): Use `is_return_boundary()'.
7711         (return_macro_request): New function.
7712         (init_input_requests): Use it.
7714         * src/roff/troff/TODO: Updated.
7715         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7717 2001-03-08  Werner LEMBERG  <wl@gnu.org>
7719         * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
7720         cleanup.
7722 2001-03-07  Werner LEMBERG  <wl@gnu.org>
7724         Make `\B' more rigid.
7726         * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
7727         parameter.
7728         (get_number_rigidly): New function.
7729         * src/roff/troff/input.cc (do_expr_test): Use it.
7730         * src/roff/troff/token.h: Updated.
7732         * src/roff/troff/request.h: Fix typo (init_html_request ->
7733         init_markup_request).
7735 2001-03-04  Gaius Mulley  <gaius@glam.ac.uk>
7737         Fixed grohtml handling of any named glyph for glyph indexes < 0x80. 
7738         Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
7739         are now `.begin', `.end', `.image'.
7741         * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
7742         (html_printer::add_to_sbuf): Changing type of `code' parameter.
7743         Use add_char_to_sbuf().
7744         (to_unicode): New function.
7745         (char_translate_to_html): Changing type of `ch' parameter.
7746         Use `to_unicode()'.
7747         (html_printer::~html_printer): Comment out doctype string.
7748         * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
7749         instead of `.html-end'.
7750         (write_start_image): Use `.begin' and `.image' instead of
7751         `.html-begin' and `.html-image'.
7752         * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
7753         (html_begin): Renamed to ...
7754         (begin): This.
7755         (html_end): Renamed to ...
7756         (end): This.
7757         (html_image): Renamed to ...
7758         (image): This.
7759         (init_html_requests): Renamed to ...
7760         (init_markup_requests): This.
7761         * tmac/www.tmac: Updated.
7763 2001-02-28  Bram  <bram@avontuur.org>
7765         * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
7766         constructor.
7768 2001-02-26  David Leonard  <david.leonard@csee.uq.edu.au>
7770         * doc/meref.me: Fixing some typos.
7772 2001-02-16  Werner LEMBERG  <wl@gnu.org>
7774         * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
7775         method.  Return `HYPHEN_MIDDLE' if it was `\:'.
7776         * src/roff/troff/node.h: Updated.
7778 2001-02-17  Ruslan Ermilov  <ru@FreeBSD.org>
7780         * tmac/groff_tmac.man: Fix typo.
7782 2001-02-16  Werner LEMBERG  <wl@gnu.org>
7784         Fixing a bug which prevented proper end-of-sentence recognition
7785         between an `unformatted' box and the following text.  As a
7786         consequence, vertical line distances are no longer preserved in
7787         boxes after a call to `.unformat' -- because boxes aren't
7788         line-oriented (contrary to diversions), this doesn't make sense
7789         anyway.
7791         * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
7792         value.
7793         (vertical_size_node::set_unformat_flag): New method.
7794         * src/roff/troff/node.hh: Updated.
7795         * src/roff/troff/input.cc (word_space_node::reread,
7796         hmotion_node::reread): Reset `unformat' flag after usage.
7797         (unformat_macro): Append only if `set_unformat_flag()' returns
7798         non-zero.
7799         * src/roff/troff/troff.man: Updated.
7801 2001-02-15  Werner LEMBERG  <wl@gnu.org>
7803         * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
7804         documentation of `asciify' and `unformat' requests.
7806 2001-02-13  Werner LEMBERG  <wl@gnu.org>
7808         Redesigned the `unformat' request.  It is no longer connected with
7809         `asciify' but rather uses new `reread()' methods if the `unformat'
7810         flag is set.  Additionally, the handling of space characters after
7811         unformatting has been fixed so that they retain their width.
7813         * src/roff/troff/node.h (width_list): New structure to store
7814         original widths of spaces.
7815         (node): Added `unformat' member.
7816         Replaced `num_spaces' variable with `orig_width' list.
7817         * src/roff/troff/node.cc (*node::asciify,
7818         asciify_reverse_node_list): Removed `unformat_only' flag and related
7819         code.
7820         (word_space_node::asciify, word_space_node::word_space_node): Use
7821         `orig_width'.
7822         (word_space_node::~word_space_node): New destructor.
7823         (word_space_node::copy): Updated to handle `orig_width'.
7824         (hmotion_node::copy, unbreakable_space_node::copy): Updated.
7825         (*node::merge_space): Update `orig_width' list if necessary.
7826         (*node::set_unformat_flag): New methods to set the `unformat' flag.
7827         * src/roff/troff/enc.cc (environment::space_newline): Use
7828         `width_list'.
7829         (environment::space): Added method to handle space width and
7830         sentence space width as parameters.  Use `width_list'.
7831         (environment::make_tab_node): Updated.
7832         * src/roff/troff/env.h: Updated.
7833         * src/roff/troff/input.cc (word_space_node::reread,
7834         unbreakable_space_node::reread, hmotion_node::reread): New methods
7835         to handle nodes specially if `unformat' flag is set.
7836         (do_asciify_macro): Renamed back to ...
7837         (asciify_macro): This.
7838         (unformat_macro): New implementation to simply set the `unformat'
7839         flag.
7841         * MORE.STUFF: Added more info about deroff.
7843 2001-02-08  Werner LEMBERG  <wl@gnu.org>
7845         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
7846         space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
7847         and `add_self()' methods to avoid hyphenation.  For example, the
7848         hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
7849         soft hyphen after `foo'.  Now the hyphen list is correctly
7850         `foo<ignore><ignore>bar'.
7852 2001-02-05  Yoshiteru Kageyama  <yt-kage@cb3.so-net.ne.jp>
7854         * tmac/groff_tmac.man: Fix `BIR' macro.
7856 2001-02-04  Werner LEMBERG  <wl@gnu.org>
7858         A new escape sequence `\:', inserting a zero-width break point.
7860         * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
7861         * src/roff/troff/input.cc (get_copy, token::next, asciify):
7862         Implement it.
7863         * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
7864         method.
7865         (space_node): Add `was_escape_colon' member.  Add `is_escape_colon()'
7866         and `asciify()' methods.
7867         * src/roff/troff/node.cc (space_node::space_node): Updated.
7868         (space_node::asciify): Handle `was_escape_colon'.
7869         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7871         Handle `\~' similar to other comparable requests.
7873         * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
7874         label.
7875         (token::next): Move creation of an unbreakable_space_node to...
7876         (token::add_to_node_list): Here.
7878         Fix a bug which sometimes prevented hyphenation of words connected
7879         with `\~' or `\ ' (and other escape sequences handled as
7880         TOKEN_NODE).  This also fixes a hyphenation problem with boxes
7881         (after a call to the `unformat' request).
7883         * src/roff/troff/env.h (environment::possibly_break_line,
7884         environment::hyphenate_line): Introducing `start_here' parameter.
7885         * src/roff/troff/env.cc (environment::space_newline,
7886         environment::space): Use it.
7887         (environment::possibly_break_line, environment::hyphenate_line):
7888         Implement it.
7889         * src/roff/troff/input.cc (process_input_stack): Use it.
7890         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
7891         space_char_hmotion_node, overstrike_node): Add
7892         `get_hyphenation_type()' method.
7893         * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
7894         if `unformat_only' is active.
7896 2001-01-30  Werner LEMBERG  <wl@gnu.org>
7898         Implemented new read-only number register `.linetabs' which
7899         returns 1 if in line-tabs mode, 0 otherwise.
7901         * src/roff/troff/env.h (environment): Add get_line_tabs() member.
7902         * src/roff/troff/env.cc (get_line_tabs): New function.
7903         (init_env_requests): Use it.
7904         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7906         * VERSION, REVISION: Changing to 1.17.0.
7908 2001-01-28  Werner LEMBERG  <wl@gnu.org>
7910         Fixed a bug which prevented hyphenation of words which are finished
7911         with `\)'.
7913         * src/roff/troff/token.h (token): Add enum type
7914         `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
7915         * src/roff/troff/input.cc (token::next, token::description,
7916         get_line_arg, token::add_to_node_list, token::process): Use it.
7918 2001-01-27  Werner LEMBERG  <wl@gnu.org>
7920         * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
7921         * src/roff/troff/div.cc (do_divert): Use it.
7923         * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
7925 2001-01-25  Werner LEMBERG  <wl@gnu.org>
7927         Adding the `linetabs' request.  If set, tab distances are not
7928         computed relative to the input line but relative to the output line.
7930         * src/roff/troff/env.h (environment): New member `line_tabs'.
7931         * src/roff/troff/env.cc (line_tabs_request): Implement request.
7932         (environment::environment, environment::copy): Updated.
7933         (environment::distance_to_next_tab): Use `line_tabs'.
7934         (init_env_requests): Register request.
7935         * src/roff/troff/troff.man, man/groff.man, NEWS: Document it.  Other
7936         fixes.
7938 2001-01-24  Werner LEMBERG  <wl@gnu.org>
7940         Introducing a new read-only register `.int' which is set to a
7941         positive value if the last output line is interrupted (i.e., if it
7942         contains `\c').
7944         * src/roff/troff/env.cc (init_env_requests): Add it.
7945         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7947 2001-01-23  Gaius Mulley  <gaius@glam.ac.uk>
7949         * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
7950         * src/preproc/html/pre-html.cc (findPrefix): New function which
7951         generates the troff executable name via the system prefix.
7952         * src/preproc/eqn/main.cc: Modified warning message.
7954 2001-01-23  Werner LEMBERG  <wl@gnu.org>
7956         troff's `box' and `boxa' requests didn't preserve temporary
7957         indentation.
7959         * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
7960         `saved_target_text_length' members.
7961         * src/roff/troff/div.cc (do_divert): Use them.
7963         Tabs (but not yet leaders and fields) are now handled correctly by
7964         `asciify' request.
7966         * node.h (hmotion_node): Add field `was_tab'.
7967         * env.cc (environment::make_tab_node): Set it.
7968         * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
7970         Added new request `unformat' which will, contrary to `asciify',
7971         preserve font information after unformatting (i.e., only nodes
7972         dealing with horizontal space are converted back to input
7973         characters).
7975         * input.cc (asciify_macro): Renamed to ...
7976         (do_asciify_macro): this, having a new parameter `unformat_only'.
7977         (asciify_macro, unformat_macro): New; using do_asciify_macro.
7978         (init_input_requests): Added `unformat'.
7979         * node.cc (*_node::asciify), asciify_reverse_node_list: Added
7980         parameter to control asciification process.
7981         * node.h (*_node::asciify): Ditto.
7982         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7984 2001-01-20  Werner LEMBERG  <wl@gnu.org>
7986         * doc/groff.texinfo: Minor improvement of `.in' documentation.
7988 2001-01-18  Werner LEMBERG  <wl@gnu.org>
7990         * tmac/ps.tmac: Remove call of psold.tmac.
7991         * tmac/psold.tmac: Comment updated.
7992         * tmac/psnew.tmac: Removed since no longer needed.
7993         * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
7995         * font/devutf8/R.proto: Adding `shc' glyph.
7996         * font/devutf8/NOTES: Updated.
7998         * test-groff: Updated.
8000 2001-01-15  Gaius Mulley  <gaius@glam.ac.uk>
8002         First cut of the new html device driver.  Changes to pre-html and
8003         the new grohtml are too numerous to be documented here.
8005         Stuff related to `html' has been renamed to `html-old' and `html2'
8006         stuff has been renamed to `html' (including directories).  The new
8007         html device driver is therefore invoked as `-Thtml'.
8009         Added new `\O' escape to suppress output (needed by html driver).
8011         Added functions and code to pass info about input-level commands
8012         (`.in', `.fl', etc.) to html driver.
8014         Three new functions (.html-begin, .html-end, and .html-image) for
8015         better html handling: `html-begin' will execute the remaining line
8016         if at the outermost nesting level, increasing an internal counter.
8017         `html-end' does the same but decreases the internal counter.
8018         `html_image' puts its arguments into a special node (suppress_node)
8019         to define an image region.
8021         The `output' request has been removed.
8023         * tmac/html-tags.tmac: Removed.
8024         * tmac/arkup.tmac: Updated and renamed to ...
8025         * tmac/www.tmac: New file.
8026         * tmac/markup.tmac Updated and renamed to ...
8027         * tmac/mwww.tmac: New file.
8028         * tmac/Makefile.sub: Updated.
8029         * tmac/an-old.tmac: Updated.
8030         * tmac/eqnrc: Updated.
8031         * tmac/groff_man.man
8032         * tmac/groff_markup.man: Updated and renamed to ...
8033         * tmac/groff_mwww.man: New file.
8034         * tmac/groff_tmac.man: Updated.
8035         * tmac/html-old.tmac: Updated and Renamed from html.tmac.
8036         * tmac/html.tmac: Updated and renamed from html2.tmac.
8037         * tmac/pspic.tmac: Updated html support.
8038         * tmac/s.tmac: Added html output support.
8039         * tmac/troffrc, tmac/troffrc-end: Updated.
8041         * Makefile.in, doc/Makefile: Updated.
8042         * doc/groff.texinfo: Added info about new `\O' escape.
8043         * doc/homepage.ms: Use `MAILTO' macro.
8045         * font/devhtml/DESC.proto: Add `C' font.
8046         * font/devhtml/Makefile.sub: Updated.
8047         * font/devhtml/R.proto: Minor fixes.
8048         * font/devhtml-old/Makefile.sub: Updated.
8050         * src/devices/grohtml-old/Makefile.sub: Updated.
8052         * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
8053         method.
8054         * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
8055         graphic_start): Add `inline' parameter.  Update.
8056         (html_end_suppress, graphic_end): Update.
8058         * src/include/html-strings.h: New file.
8059         * src/include/htmlindicate.h: Comments updated.
8060         * src/include/printer.h: Updated.
8062         * src/preproc/eqn/main.cc (do_file, main): Updated.
8063         * src/preproc/pic/troff.cc (troff_output::start_picture,
8064         troff_output::finish_picture): Updated.
8065         * src/preproc/tbl/main.cc (process_input_file): Updated.
8067         * src/roff/groff/groff.cc (main): Updated.
8068         Pass device arguments to predrivers also.
8069         Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
8070         * src/roff/troff/env.h (environment): Updated.
8071         New elements `need_eol' and `ignore_next_eol' (for html output).
8072         * src/roff/troff/env.cc (environment::environment): Add initializers
8073         for `need_eol' and `ignore_next_eol'.
8074         (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
8075         functions.
8076         (point_size, fill, no_fill, center, right_justify, line_length,
8077         indent, temporary_indent, break_request, handle_tab): Use
8078         `add_html_tag()'.
8079         (set_tabs): Use `add_html_tag_tabs()'.
8080         (environment::add_html_tag): Updated.
8081         (environment::do_break): Updated.
8082         * src/roff/troff/div.cc (space_request, flush_output): Use
8083         `environment::add_html_tag()'.
8084         * src/roff/troff/input.cc: Updated.
8085         New variable `html_level' to indicate nested `html-begin' requests.
8086         (file_iterator::fill): Use `environment::add_html_tag_eol()'.
8087         (non_interpreted_char_node, token_node, non_interpreted_node): Add
8088         `force_tprint()' method.
8089         (token::next): Handle `\O'.
8090         (do_suppress): Implement it.
8091         (html_begin, html_end, html_image): New functions.
8092         (init_output_requests): Renamed to ...
8093         (init_html_requests): this.
8094         (main): Use it.
8095         (macro::append_str, macro::append_unsigned, macro::append_int): New
8096         methods.
8097         New variable `output_low_mark_miny' to limit minimal value of y.
8098         (reset_output_registers): Use it.
8099         (output_request): Removed.
8100         (get_output_registers): New function.
8101         * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
8102         (*_node): Added `force_tprint()' if necessary.
8103         (special_node): New elements `tf' and `get_tfont()'.
8104         (suppress_node): New class.
8105         * src/roff/troff/node.cc:
8106         New global variables `image_no' and `suppress_start_page'.
8107         (real_output_file): New method `is_on()'.
8108         (troff_output_file): New method `start_special(tfont)'.
8109         (troff_output_file::really_print_line): Use `tprint' conditionally.
8110         (real_output_file::print_line): Updated.
8111         (real_output_file::on): Updated.
8112         (*_node): Added `force_tprint()'.
8113         (special_node::special_node): Initializer updated.
8114         (special_node::same, special_node::copy, special_node::tprint_start):
8115         Updated.
8116         (get_reg_int, get_reg_str): New functions.
8117         (suppress_node::*): New methods.
8118         New global variables last_position, last_image_filename;
8119         (min): New inline function.
8120         * src/roff/troff/reg.h, src/roff/troff/request.h,
8121         src/roff/troff/troff.h: Updated.
8123 2001-01-13  Werner LEMBERG  <wl@gnu.org>
8125         * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
8126         documentation of `asciify' request.
8128 2001-01-12  Werner LEMBERG  <wl@gnu.org>
8130         * src/roff/troff/input.cc: Move definition of special characters
8131         like `ESCAPE_TILDE' to ...
8132         * src/roff/troff/input.h: New file.
8133         * src/roff/troff/Makefile.sub (HDRS): Add it.
8135         Extending the .asciify request to `unformat' space characters also.
8137         * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
8138         to count input space characters.
8139         Update constructors to take care of it.
8140         * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
8141         `ESCAPE_SPACE' instead of normal space.
8142         (word_space_node::asciify): New method.
8143         (unbreakable_space_node::asciify): New method.
8144         (word_space_node::merge_space): New method.
8145         * src/roff/troff/env.cc (environment::space_newline,
8146         environment::space): Add code to initialize `num_spaces' (using the
8147         constructor of `word_space_node').
8148         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8149         Document it.
8151 2001-01-09  Werner LEMBERG  <wl@gnu.org>
8153         * man/groff_char.man: Use table header traps only conditionally.
8155 2001-01-09  Bjarni Ingi Gíslason  <bjarniig@hi.is>
8157         * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
8159 2001-01-08  Werner LEMBERG  <wl@gnu.org>
8161         Introducing the `box' and `boxa' requests which are similar to
8162         `di' resp. `da' but omitting a partially filled line (which is
8163         restored after ending the diversion).
8165         * src/roff/troff/div.h (diversion): Add elements to save partially
8166         filled line.
8167         * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
8168         partially filled line.
8169         (divert, divert_append): Updated.
8170         (box, box_append): New functions.
8171         (init_div_requests): Use them.
8172         * src/roff/troff/env.h (environment): do_divert() is now a friend.
8173         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8175         * doc/groff.texinfo: Fix documentation of `lf' request.
8177 2000-12-25  Werner LEMBERG  <wl@gnu.org>
8179         * src/roff/troff/troff.man, NEWS: Document `writem' request.
8181 2000-12-21  Werner LEMBERG  <wl@gnu.org>
8183         Ignore `ss' request if in compatibility mode.
8185         * src/roff/troff/input.cc: Make `compatible_flag' non-static.
8186         * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
8187         * src/roff/troff/env.cc (space_size): Use it.
8189         * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
8190         `ss' request in nroff mode.
8192         * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
8193         changes.
8195 2000-12-15  Ruslan Ermilov  <ru@FreeBSD.org>
8197         * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
8199 2000-12-13  Werner LEMBERG  <wl@gnu.org>
8201         * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
8202         * src/preproc/eqn/neqn.man: Small fixes and additions.
8204 2000-12-13  Ruslan Ermilov  <ru@FreeBSD.org>
8206         * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
8207         Fixing typo.
8209         * src/preproc/eqn/neqn.man: New file.
8211         * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
8212         negative' warning.
8214         * tmac/e.tmac: Add `T&' macro.
8215         Fix `indent cannot be negative' warning.
8216         * tmac/s.tmac: Fix `indent cannot be negative' warning.
8218 2000-12-07  Werner LEMBERG  <wl@gnu.org>
8220         * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
8222 2000-12-06  Werner LEMBERG  <wl@gnu.org>
8224         * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
8225         `alloca' symbol .
8227         * MORE.STUFF: Added info about deroff for djgpp.
8229         * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
8230         documentation of -rcR switch.
8232 2000-12-03  Werner LEMBERG  <wl@gnu.org>
8234         * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
8235         if -rcR=1 (which is now the default in nroff mode), a single, very
8236         long page is created instead of multiple pages: All `ne' and `wh'
8237         requests are put into conditionals; a new macro `an-end' is added to
8238         be called with `em'.
8240         Some other minor cleanups.
8242         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
8244 2000-12-02  Werner LEMBERG  <wl@gnu.org>
8246         Fixing a bug which prevented hyphenation in words followed
8247         immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
8249         * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
8250         Adding possibly_break_line().
8251         * src/roff/troff/env.h (environment): Make possibly_break_line()
8252         public.
8254         Make `\~' usable in .tr request.
8256         * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
8257         (token): Add stretchable_space().
8258         * src/roff/troff/input.cc (token::next, token::delimiter,
8259         token::description, process_input_stack, do_translate,
8260         add_to_node_list, token::process): Use it.
8261         * src/roff/troff/node.h (node): Add fourth parameter to add_char()
8262         for adjusting the space.
8263         * src/roff/troff/node.cc (node::add_char): Implement it.  Add code
8264         for stretchable space.
8265         * src/roff/troff/input.cc (token::add_to_node_list): Use it.
8266         (make_node): Add code for stretchable space.
8267         * src/roff/troff/env.cc (environment::add_char): Use it.
8268         * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
8269         (get_copy, token::next, transparent_translate, asciify): Use it.
8271         * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
8272         doc/groff.texinfo: Updated.
8273         * man/groff.man: Small reorderings.
8275 2000-11-23  Werner LEMBERG  <wl@gnu.org>
8277         * NEWS: Fixes.
8278         * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
8279         option.
8280         * src/roff/troff/input.cc (main): Add `config_macro_path' and
8281         `safer_macro_path' to -M option.
8282         * src/roff/troff/troff.man: Fixes.
8284 2000-11-22  Werner LEMBERG  <wl@gnu.org>
8286         Use safer path (except for config files) if -U isn't specified.  Add
8287         a special macro path (without home and current directory) for config
8288         files.  Add home directory to unsafe path for consistency.  Don't
8289         include the home directory in the font path.
8291         * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
8292         `macro_path'.
8293         * src/include/macropath.h: Add `config_macrp_path'.
8294         * src/libs/libgroff/fontfile.cc: Fix font path.
8295         * src/roff/troff/input.cc (process_startup_file): Use
8296         `config_macro_path'.
8297         (main): Select unsafe path if -U is given.
8299         * src/preproc/eqn/main.cc (main): Fixing search path for
8300         configuration file.
8301         * src/preproc/eqn/eqn.man: Updated.
8303         * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
8304         Updated.
8306         * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
8307         src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
8308         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
8309         src/devices/grotty/grotty.man: Updated.
8311         * Makefile.in: Fix comments.
8313 2000-11-17  Werner LEMBERG  <wl@gnu.org>
8315         * tmac/safer.tmac: Empty file added (again) for compatibility
8316         reasons.
8317         * tmac/Makefile.sub: Updated.
8319 2000-11-16  Werner LEMBERG  <wl@gnu.org>
8321         * src/devices/grodvi/dvi.cc (main),
8322         src/devices/grohtml2/post-html.cc (main),
8323         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
8324         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
8325         (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
8326         (main), src/preproc/html2/pre-html.cc (main),
8327         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
8328         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
8329         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
8330         (main), src/utils/hpftodit/hpftodit.cc (main),
8331         src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
8332         (main), src/utils/lookbib/lookbib.cc (main),
8333         src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
8334         (main): Use stdout for -v.
8335         * src/roff/groff/groff.cc (run_commands),
8336         src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
8337         to make direct printing to stdout possible.
8338         * src/roff/groff/pipeline.h: Updated.
8340         * src/utils/afmtodit/afmtodit.pl: Add -v switch.
8341         * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
8342         * src/utils/afmtodit/afmtodit.man: Updated.
8344         * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
8345         (version): New function.
8346         (usage): Updated.
8347         * src/utils/addftinfo/addftinfo.man: Updated.
8349         * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
8350         Fixing copyright dates.
8352         * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
8353         replacing it.
8355         * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
8356         version_string.
8358         * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
8360 2000-11-15  Werner LEMBERG  <wl@gnu.org>
8362         In all programs, make -v return immediately with exit status 0 to
8363         be compliant with the GNU standard.
8365         * src/devices/grodvi/dvi.cc (main),
8366         src/devices/grohtml2/post-html.cc (main),
8367         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
8368         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
8369         (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
8370         (main), src/preproc/html2/pre-html.cc (main),
8371         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
8372         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
8373         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
8374         (main): Implement it.
8375         * NEWS: Updated.
8377         * src/roff/groff/groff.cc (main): Add copyright notice.  Add refer
8378         and postprocessors to the -v option.
8380         * src/roff/grog/grog.pl: Implement -v.
8381         * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
8382         * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
8384         * src/roff/nroff/nroff.sh: Implement -v.
8385         * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
8386         * src/roff/nroff/nroff.man: Updated.
8387         
8388         * src/preproc/eqn/main.cc (main): Fix comment typo.
8390         * MORE.STUFF: Added info about djgpp port of grap.
8392 2000-11-14  Werner LEMBERG  <wl@gnu.org>
8394         * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
8395         mode (or rather, implemented non-compatibility mode).
8396         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
8398         * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
8399         replacing it -- we don't find gxditview otherwise.
8400         * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
8402         * src/preproc/pic/depend: Removed.  Unnecessary.
8404         Implemented dummy keyword `solid' in pic for compatibility with
8405         AT&T pic.
8407         * lex.cc (lookup_keyword): Added `solid'.
8408         * pic.y: Added SOLID with dummy rule.
8409         * pic.cc, pic_tab.h: Regenerated.
8410         * doc/pic.ms: Updated.
8412 2000-11-13  Werner LEMBERG  <wl@gnu.org>
8414         For security reasons, don't use the current directory but the home
8415         directory while searching and scanning troffrc and troffrc-end.
8416         Similarly, replace the current directory with the home directory
8417         in the font path.
8419         * Makefile.in (fontpath, tmacpath): Remove current directory.
8421         * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
8422         two parameters `add_home' and `add_current'.
8423         (search_path::~search_path, search_path::command_line_dir,
8424         search_path::open_file): Remove tests for `dirs' being zero.
8425         * src/include/searchpath.h: Adjust.
8426         * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
8427         `safer_macro_path'.
8428         * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
8430         * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
8431         * src/roff/troff/input.cc: Use `mac_path', initialized with
8432         `macro_path'.
8433         (process_startup_file): Set `mac_path' to `safer_macro_path'.
8434         * src/roff/troff/env.cc: Use `mac_path'.
8436         * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
8438         * NEWS, man/roff.man, src/roff/troff/troff.man,
8439         src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
8440         Updated.
8442 2000-11-12  Werner LEMBERG  <wl@gnu.org>
8444         * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
8446         * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
8447         * configure.in: Fix typo in comment.
8448         * configure: Regenerated.
8450         * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
8451         copyright dates.
8453 2000-11-08  Werner LEMBERG  <wl@gnu.org>
8455         Add system tmac directory (/usr/local/lib/groff/site-tmac).
8457         * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
8458         (uninstall_dirs): Add $(libdir), $(libprogramdir), and
8459         $(systemtmacdir).
8460         Use @libdir@.
8461         * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
8462         * tmac/Makefile.sub (install_data): Create
8463         $(systemtmacdir) and $(localtmacdir).
8464         (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
8465         * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
8466         NEWS, doc/groff.texinfo: Updated and minor fixes.
8468         * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
8469         * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
8470         $(systemtmacdir) since the wrapper files are platform-dependent.
8472 2000-11-01  Werner LEMBERG  <wl@gnu.org>
8474         * doc/groff.texinfo: Fix typo.
8476 2000-10-26  Werner LEMBERG  <wl@gnu.org>
8478         Convert macros `tmac.XXX' to `XXX.tmac'.  Special cases:
8479           tmac.doc.old -> doc-old.tmac
8480           tmac.an.old  -> an-old.tmac
8482         * tmac/tmac.*: Moved to ...
8483         * tmac/*.tmac: this.
8484         * tmac/man.local: Fix comment.
8485         * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
8486         tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. 
8487         Added some `FILES' sections.  More use of @...@ directives.  Other
8488         minor updates.
8489         * arch/djgpp/README, font/devutf8/NOTES: Updated.
8490         * doc/homepage.ms, doc/groff.texinfo: Updated.
8491         * man/groff.man, man/roff.man: Updated.
8492         * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
8493         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
8494         src/devices/grotty/grotty.man: Updated.
8495         * src/preproc/pic/pic.man: Updated.
8496         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
8497         instead of -mdoc.old.
8498         * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
8499         * src/roff/nroff/nroff.man: Updated.
8500         * NEWS: Updated.
8502         * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
8504         * tmac/mm.diff: Removed -- it has no use now since the mm package
8505         is part of groff.
8507         * tmac/*: Removed trailing spaces.
8509         * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
8510         the tmac subdirectory also).
8512         * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
8513         * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
8514         stuff since it is no longer needed.
8516         * README, PROBLEMS: Updated.
8518 2000-10-25  Werner LEMBERG  <wl@gnu.org>
8520         Invert current behaviour: Search first FOOBAR.tmac, then
8521         tmac.FOOBAR.
8523         * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
8524         (open_mac_file, macro_source): Implement it.
8525         * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
8526         doc/groff.texinfo, NEWS: Document it.
8528         * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
8529         Small documentation improvements.
8531         * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
8532         subdirectory also).
8534         * font/devps/Makefile.sub: Fix rules for dingbats.*map.
8536 2000-10-24  Werner LEMBERG  <wl@gnu.org>
8538         Add local tmac directory (groff/site-tmac).
8540         * Makefile.in: Add $(localtmacdir).
8541         (uninstall_dirs): Add $(localtmacdir).
8542         * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
8543         * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
8544         in $(localtmacdir).  Create $(localtmacdir).
8545         * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
8546         Updated and minor fixes.
8548         Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
8550         * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
8552 2000-10-23  Werner LEMBERG  <wl@gnu.org>
8554         Move hyphen.us to tmac directory.
8556         * src/roff/troff/hyphen.us: Removed.
8557         * src/tmac/hyphen.us: Added.
8558         * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
8560         Change installation structure for data files from .../groff/... to
8561         .../groff/<version><revision>/... to be conform with other GNU
8562         programs.
8564         * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
8565         doc/Makefile: Implement it.
8566         * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
8567         * configure: Updated.
8568         * arch/djgpp/README, font/devutf8/NOTES: Use it.
8569         * NEWS: Document it.
8570         * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
8571         @MACRODIR@ instead of hard-coded directories.
8573 2000-10-22  Werner LEMBERG  <wl@gnu.org>
8575         Implement $GROFF_BIN_PATH environment variable (which defaults to
8576         $bindir) used for child programs of groff and similar wrappers.
8578         * gendefs.sh: Improve documentation.
8579         * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
8580         src/preproc/eqn/Makefile.sub (neqn),
8581         src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
8582         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
8583         $GROFF_BIN_PATH.
8584         * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
8585         $GROFF_PATH__ (the latter for communication with troff).
8586         * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
8587         set.
8588         * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
8589         doc/groff.texinfo: Document it.
8591         * doc/groff.texinfo: Improve documentation of troff's -a option.
8593 2000-10-17  Gaius Mulley  <gaius@glam.ac.uk>
8595         * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
8596         non-intrusive eol marker.
8597         (troff_output_file::determine_line_limits): New function.
8598         (troff_output_file::draw): Use it.
8599         * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
8600         output_pending_lines() instead of output_line().
8601         * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
8602         * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
8603         createImage): Small fixes.
8604         
8605 2000-10-14  Werner LEMBERG  <wl@gnu.org>
8607         Replace tmac.safer with a real secure solution.
8609         * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
8610         system_request, pipe_output): Disable requests if in safer mode.
8611         * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
8612         * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
8613         * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
8614         doc/groff.texinfo, src/roff/groff/groff.man,
8615         src/roff/troff/troff.man, arch/djgpp/README: Updated.
8617         * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
8618         (resource_manager::output_prolog): Replace setenv() with putenv().
8620 2000-10-09  Werner LEMBERG  <wl@gnu.org>
8622         * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
8623         src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
8624         src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
8625         src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
8626         compilation errors with some compilers.  It seems that this code
8627         is no longer necessary -- if yes, it is easy to add some #ifdef's
8628         for that particular old-fashioned compiler.
8630         * MORE.STUFF: Added info about Meta-tbl.
8632         * doc/groff.texinfo: Added more info about `.if "..."..."'.
8634 2000-10-07  Werner LEMBERG  <wl@gnu.org>
8636         Adding a new escape sequence \B'...': If the string between
8637         the delimiters is a valid numeric expression, return the character
8638         `1', and `0' otherwise.  This is an analogon to \A.
8640         * src/roff/troff/input.cc (do_expr_test): Implement it.
8641         (token::next): Use it.
8642         * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
8644         * tmac/tmac.trace: Made independent from escape character.
8646 2000-10-06  Werner LEMBERG  <wl@gnu.org>
8648         Adding a new request .dei: define indirect.  The first and second
8649         parameter of .dei are taken from string registers instead directly;
8650         this very special request is needed to make tmac.trace independent
8651         from the escape character (which might even be disabled).
8653         * src/roff/troff/input.cc (do_define_macro): Implement it.
8654         (define_macro_indirect): New function.
8655         (init_input_requests): Use it.
8657         Adding two requests .ecs and .ecr: Save and restore the escape
8658         character.  These two requests are needed to make tmac.trace
8659         independent from the escape character (which might even be
8660         disabled).
8662         * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
8663         Implement it.
8664         (init_input_requests): Use it.
8666         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
8668 2000-09-22  Ricardo Soares Guimarães  <ricardo@conectiva.com.br>
8670         Adding a new option -P and new environment variable GROPS_PROLOGUE
8671         to grops, selecting a different prologue file (minor modifications
8672         by WL).
8674         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
8675         src/devices/grops/ps.cc (main): Implement it.
8676         * src/devices/grops/grops.man, NEWS: Document it.
8678 2000-09-22  Werner LEMBERG  <wl@gnu.org>
8680         * INSTALL: Add info about selecting paper format.
8682 2000-09-21  Werner LEMBERG  <wl@gnu.org>
8684         * src/roff/troff/input.cc (main): Fixing compiler warning.
8685         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
8686         strings.h from the former to the latter.
8687         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
8688         stuff from the former to the latter.
8690 2000-09-11  Werner LEMBERG  <wl@gnu.org>
8692         Implementing two new requests .tm1 and .tmc: The former is similar
8693         to .tm but can output leading spaces; its syntax is similar to
8694         defining a string, i.e., a `"' can be used to mark the beginning of
8695         the string to be written to stderr: `.tm1 " test'.  The latter is
8696         similar to .tm1 but doesn't write out a final newline character.
8698         * src/roff/troff/input.cc (terminal1, terminal_continue,
8699         do_terminal): New functions.
8700         (init_input_requests): Use them.
8701         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
8703 2000-09-09  Werner LEMBERG  <wl@gnu.org>
8705         * tmac/groff_mdoc.samples.man: Small fixes.
8707 2000-09-08  Werner LEMBERG  <wl@gnu.org>
8709         * tmac/groff_mdoc.man: Fixing typo.
8711 2000-09-02  Werner LEMBERG  <wl@gnu.org>
8713         Implementing a .nop request which does nothing.
8715         * src/roff/troff/input.cc (nop_request): New function.
8716         (init_input_requests): Use it.
8717         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
8719 2000-09-01  Werner LEMBERG  <wl@gnu.org>
8721         * doc/groff.texinfo: Added some comments.
8723 2000-08-30  Werner LEMBERG  <wl@gnu.org>
8725         * src/roff/troff/TODO: Updated.
8727 2000-08-25  Werner LEMBERG  <wl@gnu.org>
8729         * doc/groff.texinfo: Fix comment how to compile the DVI file.
8731 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
8733         * font/devps/generate/Makefile (SHELL): Define explicitly to
8734         "/bin/sh", for non-Unix platforms.
8735         (extraclean): Use a more portable "" quoting instead of a
8736         backslash (which doesn't work on DOS/Windows).
8737         
8738         * font/devlj4/generate/Makefile (extraclean): Ditto.
8740         * font/devdvi/generate/Makefile (extraclean): Ditto.
8742 2000-08-25  Werner LEMBERG  <wl@gnu.org>
8744         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
8745         src/roff/troff/troff.man: Document Eli's latest changes.
8747 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
8749         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
8750         macro file names of the form NAME.tmac as well as tmac.NAME.
8752 2000-08-25  Werner LEMBERG  <wl@gnu.org>
8754         * src/include/posix.h: Remove definition of FILENAME_MAX.
8756         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
8757         `sys_fatal' and `stop' function().
8759         * test-groff: Updated.
8761 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
8763         Added the new troff command .output <arg> to suppress output (while
8764         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
8765         registers (for passing the output dimensions to the output device).
8767         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
8768         parameter.
8769         * src/roff/troff/node.h, src/roff/troff/node.cc
8770         (troff_output_file::really_print_line,
8771         ascii_output_file::really_print_line,
8772         supress_output_file::really_print_line): Use `width' parameter.
8773         (troff_output_file::really_on, troff_output_file::really_off,
8774         output_file::on, output_file::off, real_output_file::on,
8775         real_output_file::off, real_output_file::really_on,
8776         real_output_file::really_off): New functions.
8777         (real_output_file:public output_file): New variable `output_on'.
8778         (real_output_file::begin_page, real_output_file::copy_file,
8779         real_output_file::transparent_char, real_output_file::print_line):
8780         Use it.
8781         (real_output_file::print_line): Use check_output_limits.
8782         * src/roff/troff/reg.h, src/roff/troff/request.h,
8783         src/roff/troff/input.cc (assign_registers): New function to remove
8784         two `goto's.
8785         (do_ps_file): Use it.
8786         (check_output_limits, reset_output_registers, output_request,
8787         init_output_requests): New functions.
8788         (init_input_requests): Updated.
8790         Added new grohtml2 device and html2 preprocessor (coding
8791         not yet finished) which will eventually replace grohtml.
8793         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
8794         Updated.
8795         * src/include/htmlindicate.h, src/include/htmlindicate
8796         (html_begin_suppress, html_end_suppress): New functions.
8797         * src/preproc/tbl/main.cc: Use it.
8798         * src/roff/groff/groff.cc: Add support for html2 device (which will
8799         automatically invoke the html2 preprocessor).
8800         * src/roff/troff/input.cc (is_html2): New variable.
8801         * src/roff/troff/troff.h, src/roff/troff/env.h,
8802         src/roff/troff/env.cc (environment::add_html_tag): New function
8803         (uses `is_html2').
8804         (environment::do_break): Use it.
8805         * font/devhtml2/*: New files.
8806         * src/devices/grohtml2: New device.
8807         * src/preproc/html2: New preprocessor.
8808         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
8810 2000-08-23  Werner LEMBERG  <wl@gnu.org>
8812         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
8814 2000-08-22  Werner LEMBERG  <wl@gnu.org>
8816         * src/include/lib.h: Provide a fix for IRIX to not include
8817         groff-getopt.h.
8819 2000-08-18  Werner LEMBERG  <wl@gnu.org>
8821         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
8822         since some non-GNU sed programs can't handle null regexps.
8823         * configure, src/preproc/eqn/Makefile.sub,
8824         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
8826         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
8827         bug (string.h and strings.h are both needed according to latest
8828         POSIX standard).
8830         * MORE.STUFF: Added info about unroff and troffcvt.
8832 2000-08-08  Werner LEMBERG  <wl@gnu.org>
8834         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
8835         used before -ms.
8837         * tmac/tmac.man.old: Remove unused number register.
8839         * tmac.doc: Minor documentation fix.
8841 2000-08-07  Paul Eggert  <eggert@twinsun.com>
8843         * src/roff/groff/pipeline.c (is_system_shell):
8844         Fix typo: "monocased_shell" no longer exists.
8846 2000-08-07  Paul Eggert  <eggert@twinsun.com>
8848         Remove FILENAME_MAX limits.
8850         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
8851         that the argument length is less than FILENAME_MAX.
8852         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
8853         Use struct hack to allocate and free file name.
8854         (struct xtmpfile_list): fname is now part of the structure,
8855         not a pointer to another string.
8857 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
8859         * src/include/posix.h: Add a default value for FILENAME_MAX.
8861 2000-08-06  Paul Eggert  <eggert@twinsun.com>
8863         Add support for new BSD-style man pages (with ".Dd" instead of
8864         ".TH"), so that "groff -man" understands both styles, even
8865         when running "groff -man" on a host whose system man page
8866         macros don't support ".Dd".
8868         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
8869         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
8870         in case the system man macros don't define Dd or TH.
8872         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
8873         * tmac/tmac.an: New one-line file.
8874         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
8876 2000-08-06  Werner LEMBERG  <wl@gnu.org>
8878         * src/roff/troff/troff.man: Fixing typos.
8880 Version 1.16.1 released
8881 =======================
8883 2000-07-31  Werner LEMBERG  <wl@gnu.org>
8885         Preparing release 1.16.1.
8887         * REVISION: Revision number set to 1.
8888         * MORE.STUFF: Added info about port to DOS.
8889         * NEWS, win32-diffs: Updated.
8891         * src/include/nonposix.h: Remove first line -- this file is used
8892         in C also.
8894         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
8895         link to it.
8897 2000-07-30  Werner LEMBERG  <wl@gnu.org>
8899         * doc/texinfo.tex: Update to latest version.
8901 2000-06-28  Paul Eggert  <eggert@twinsun.com>
8903         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
8904         commands that fail.  Don't assume that "export a=b" is valid shell
8905         syntax.  This is needed for Solaris 2.5.1.
8907         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
8908         comment about missing Solaris headers.
8910         * PROBLEMS: Add section about problems with Sun Make and VPATH.
8912 2000-06-25  Werner LEMBERG  <wl@gnu.org>
8914         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
8915         SET_BINARY().
8917         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
8919         * win32-diffs: Updated.
8920         * README.WIN32: Added CRs to make all Windows editors happy.
8922         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
8923         src/roff/groff/pipeline.c).
8925 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
8927         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
8928         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
8930 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
8932         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
8933         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
8934         are binary files.
8935         (main): Support non-Posix systems with several different styles of
8936         slash characters in file names.
8938         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
8939         (main) [SET_BINARY]: Switch stdin into binary mode.
8941         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
8942         (main): Support file names with several possible slash-type
8943         characters, as given by DIR_SEPS[] in nonposix.h.
8944         (main) [__MSDOS__]: If renaming the temporary index file fails
8945         because it has more than one dot in its trunk, replace the dot
8946         with an underscore and try again.
8947         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
8948         Newline.
8949         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
8951         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
8952         (File::File): Open the input file in binary mode.  Strip CR
8953         characters from each CR-LF pair.
8954         (xbasename): Support file names with several possible slash-type
8955         characters, as given by DIR_SEPS[] in nonposix.h.
8957         * src/include/Makefile.sub (HDRS): Add nonposix.h.
8959         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
8960         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
8961         [!_POSIX_VERSION]: Define for traditional Unix systems.
8962         (real_output_file::real_output_file): Remove the MSVC-specific
8963         call to popen, use instead POPEN_WT, appropriately defined on
8964         nonposix.h.  #include nonposix.h.
8965         (real_output_file::~real_output_file): Remove the MSVC-specific
8966         call to pclose, a suitable macro is now defined on nonposix.h.
8967         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
8968         and WEXITSTATUS instead of assuming traditional Unix
8969         interpretation of the status returned by pclose.
8971         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
8972         call to popen, use POPEN_RT instead (appropriately defined on
8973         nonposix.h).  #include nonposix.h.
8974         (ps_bbox_request): Open the PostScript file in binary mode.
8975         Close the file after processing it.
8976         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
8977         nonposix.h.
8979         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
8980         A version of run_pipeline that doesn't use `fork'.
8981         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
8982         (system_shell_name, system_shell_dash_c)
8983         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
8984         the ugliness of testing DOS/Windows file names for equality, and
8985         support both stock shells and ports of Unix shells.
8987         * src/roff/groff/groff.cc: #include nonposix.h.
8988         (BSHELL): Definition moved to nonposix.h.
8989         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
8990         instead of a literal "-c".
8991         (xbasename): Support file names with several possible slash-type
8992         characters, as given by DIR_SEPS[] in nonposix.h.
8993         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
8994         of literal strings.
8996         * src/preproc/soelim/soelim.cc: #include nonposix.h.
8997         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
8999         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
9000         pic_tab.h.
9002         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
9004         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
9005         eqn_tab.h.
9007         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
9009         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
9010         P_tmpdir is defined, use it instead of the literal "/tmp".
9011         (remove_tmp_files, add_tmp_file): New functions.
9012         (xtmpfile): Record temporary files and register an atexit function
9013         to delete them explicitly, instead of relying on the OS to do
9014         that, which doesn't work on non-Unix systems.
9016         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
9017         (search_path::search_path): Use PATH_SEP instead of a literal
9018         colon.
9019         (search_path::command_line_dir): Ditto.
9020         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
9021         to support non-Posix systems.
9023         * src/libs/libbib/search.cc: #include nonposix.h.
9024         (search_list::add_file): Open the file in binary mode.
9026         * src/libs/libbib/linear.cc: #include nonposix.h.
9027         (file_buffer::load): Remove \r characters preceding \n from the
9028         loaded buffer.
9030         * src/libs/libbib/index.cc: #include nonposix.h.
9031         (make_index_search_item): Open index_filename in O_BINARY mode.
9032         (index_search_item_iterator::get_tag): Ditto.  Remove \r
9033         characters before \n characters.
9034         (index_search_item::check_files): Open files in binary mode.
9035         (index_search_item::munge_filename): Support DOS-style file names
9036         with backslashes and drive letters, use IS_ABSOLUTE.
9038         * src/devices/grops/ps.cc: #include nonposix.h.
9039         (main) [SET_BINARY]: Switch stdout to binary mode.
9041         * src/devices/grolj4/lj4.cc: #include nonposix.h.
9042         (main) [SET_BINARY]: Switch stdout to binary mode.
9044         * src/devices/grolbp/lbp.cc: #include nonposix.h
9045         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
9047         * src/devices/grodvi/dvi.cc: #include nonposix.h.
9048         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
9049         nonposix.h).
9050         (main) [SET_BINARY]: Switch stdout to binary mode.
9051         [_MSC_VER]: Remove an explicit call to _setmode.
9053         * src/include/nonposix.h: New file.
9055         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
9056         operation when building with DJGPP.
9057         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
9058         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
9059         ENVSETUP.
9061         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
9062         MS-DOS.
9063         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
9064         etc. can include a semi-colon on DOS/Windows.
9065         (depend.temp): Use depend1.temp instead of depend.temp1, to
9066         prevent files from overerwiting each other on 8+3 filesystems.
9068         * gendef.sh (t): Change definition to work with DOS/Windows.
9070         doc/groff.texinfo: Apart of some typo corrections, I also changed
9071         some index entris, to make them more non-ambiguous, and also put
9072         @ignore around some parts that are not yet written, to allow the
9073         Info output be readable.
9075 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
9077         Replaced specific checks for function declarations with a generic
9078         routine taken from GNU bfd.
9080         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
9081         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
9082         * configure.in: Use it.
9083         * src/devices/grolbp/lbp.cc, src/include/lib.h,
9084         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
9085         src/roff/groff/groff.cc: Use it.
9086         * Makefile.in, configure: Updated.
9088 2000-06-07  Paco Andrés Verdú  <pandres@dragonet.es>
9090         * src/devides/grolbp/lbp.h: Removed unused variables.
9092 2000-05-31  Keith Thompson  <kst@sdsc.edu>
9094         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
9095         strncasecmp().
9097 2000-05-31  Werner LEMBERG  <wl@gnu.org>
9099         * aclocal.m4 (GROFF_SRAND): New function to test the return value
9100         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
9101         * configure.in: Use it.
9102         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
9103         * configure, Makefile.in: Updated.
9105         * configure.in: Add test for strncasecmp().
9106         * src/include/lib.h: Use it.
9108 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
9110         * src/preproc/grn/Makefile.sub: Add MLIB.
9112 2000-05-29  Nix  <nix@esperi.demon.co.uk>
9114         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
9116 2000-05-29  Werner LEMBERG  <wl@gnu.org>
9118         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
9120         * PROBLEMS: Small update.
9122         * src/devices/grolbp/lbp.cc: Various small fixes.
9124 2000-05-28  Keith Thompson  <kst@sdsc.edu>
9126         * src/roff/nroff/nroff.sh: Fix main loop syntax.
9128         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
9130 2000-05-25  Werner LEMBERG  <wl@gnu.org>
9132         * man/roff.man: Removed unused macro.
9134 2000-05-24  Werner LEMBERG  <wl@gnu.org>
9136         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
9137         This is needed e.g. if you do
9138         `make distclean; ./configure; make dist'.
9140 Version 1.16 released
9141 =====================
9143 2000-05-23  Werner LEMBERG  <wl@gnu.org>
9145         Adding font CWI (constant width italic) to devdvi.
9147         * font/devdvi/CWI: New file.
9148         * font/devdvi/generate/Makefile: Add generating rule.
9149         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
9150         tmac/tmac.dvi: Use it.
9151         * NEWS: Announce it.
9153         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
9154         * font/devlj4/generate/Makefile: Cosmetic changes only.
9156         * man/groff.man: Removed most of the redundant description of
9157         special characters (which is in groff_char.man).  Added font
9158         translation CB->CR for devdvi.  Other minor fixes.
9160         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
9161         (registered) symbols.
9163 2000-05-22  Werner LEMBERG  <wl@gnu.org>
9165         * doc/Makefile: Added rule for creating info files.
9167         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
9168         AMS font metrics.
9169         * font/devdvi/generate/Makefile: Fixed dependencies.
9171         * font/devps/*: Regenerated.  Heavy changes for Bookman and
9172         NewCentury Schoolbook!
9173         * font/devps/generate/afmname: Will now run with GNU awk.
9174         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
9175         * font/devps/generate/Makefile: Cosmetic changes only.
9177 2000-05-21  Werner LEMBERG  <wl@gnu.org>
9179         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
9180         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
9181         `.SS' now produces a heading with a smaller size than `.SH'. 
9182         Completely formatted.
9183         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
9185         * man/groff.man: Improved table appearance.  Use of `eo' request
9186         to reduce number of doubled backslashes in macro definitions.
9187         Replacing `\e' with `\(rs'.  Other minor fixes.
9189         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
9190         to have correct line number.
9192         * INSTALL: Small improvement.
9194 2000-05-20  Bernd Warken  <bwarken@mayn.de>
9196         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
9197         WL).
9199 2000-05-19  Bernd Warken  <bwarken@mayn.de>
9201         * man/groff.man: Complete update (with a lot of corrections by WL).
9203 2000-05-18  Werner LEMBERG  <wl@gnu.org>
9205         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
9207         * font/*/*: Implement it.
9208         * man/groff_char.man, NEWS: Document it.
9210         * src/include/unix.h: Removed.  It isn't used.
9212         * doc/groff.texinfo: Slight improvements.
9214 2000-05-17  Werner LEMBERG  <wl@gnu.org>
9216         * README, win32-diffs: Small fixes and improvements.
9218 2000-05-16  Werner LEMBERG  <wl@gnu.org>
9220         * FDL: New file (the Free Documentation License version 1.1).
9222         * doc/groff.texinfo: Added many start-up values for gtroff.
9223         Some structural improvements of the source code.
9225 2000-05-15  Werner LEMBERG  <wl@gnu.org>
9227         * src/roff/troff/input.cc: Added small comment about troffrc-end.
9228         * src/roff/troff/troff.man: Added info about troffrc-end.
9230 2000-05-14  Werner LEMBERG  <wl@gnu.org>
9232         * Makefile.in (EXTRADIRS): Fix typos.
9233         (dist): Handle deletion of old .tar.gz file correctly.
9234         (DISTDIRS): Include all tty output devices.
9236         * doc/groff.texinfo: Adding more cross references; countless other
9237         fixes.
9239 2000-05-13  Werner LEMBERG  <wl@gnu.org>
9241         * MORE.STUFF: Added Robert Marks's utilities.
9243 2000-05-12  Werner LEMBERG  <wl@gnu.org>
9245         Added win32 port contributed by Blake McBride
9246         <blake@florida-software.com>.
9248         * README.WIN32, win32-diffs: New files.
9249         * NEWS: Updated.
9251         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
9252         (tmove, tmove2): Added parentheses to avoid compiler warnings.
9253         (change): Removed unused variables.
9255         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
9256         (savebounds): Changed return value from `int' to `void'.
9257         * src/preproc/grn/hdb.cc: Ditto.
9259         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
9260         final backslash in comment to avoid compiler warning.
9262         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
9264         * doc/groff.texinfo: More fixes.
9266 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
9268         * tmac/tmac.doc: Documentation fix.
9270 2000-05-11  Werner LEMBERG  <wl@gnu.org>
9272         * doc/groff.texinfo: Reading the source code shows up a lot of
9273         omissions and incorrect data...  More conversion to @Deffn macros.
9275 2000-05-10  Werner LEMBERG  <wl@gnu.org>
9277         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
9278         dependency.
9280         * src/roff/troff/request.h: Removing unused `no_break_flag'.
9282 2000-05-09  Werner LEMBERG  <wl@gnu.org>
9284         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
9285         improvements.
9287         * doc/groff.texinfo: Extended history section.  More conversion to
9288         @Deffn macros.  More .tr documentation.
9290 2000-05-07  Werner LEMBERG  <wl@gnu.org>
9292         * doc/groff.texinfo: Completed tab section.  Added info about
9293         fields.
9295 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
9297         * PROBLEMS: Describe configure script fix for OS/390 Unix.
9299 2000-05-05  Werner LEMBERG  <wl@gnu.org>
9301         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
9302         LaTeX 2e).
9303         * NEWS: Document it.
9305         * man/troff.man: Minor optical improvements.
9307 2000-05-03  Werner LEMBERG  <wl@gnu.org>
9309         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
9311         * font/*/*: Implement it.
9312         * man/groff_char.man, NEWS: Document it.
9314 2000-05-02  Werner LEMBERG  <wl@gnu.org>
9316         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
9317         expansion.
9318         * NEWS: Document the three new man pages.
9320         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
9321         * configure: Updated.
9323         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
9325 2000-05-01  Werner LEMBERG  <wl@gnu.org>
9327         Added grap support to grog.
9329         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
9330         * src/roff/grog/grog.man: Document it.
9332         * doc/groff.texinfo, NEWS: Add info about grap support.
9334         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
9335         (with slight fixes by me).
9337         * tmac/groff_tmac.man: New file documenting tmac mechanism.
9338         * tmac/Makefile.sub: Add groff_tmac.man.
9339         * man/roff.man: New file giving overview of roff system.
9340         * man/troff.man: A short reference of troff.
9341         * man/Makefile.sub: Add roff.man and troff.man.
9343 2000-04-30  Werner LEMBERG  <wl@gnu.org>
9345         Added grap support to groff.
9347         * src/roff/groff/groff.cc: Implement it.
9348         * src/roff/groff/groff.man: Document it.
9350         * src/devices/grotty/grotty.man: Add cp1047 device.
9351         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
9352         Ditto.
9353         * src/roff/groff/groff.man: Ditto.
9354         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
9355         * doc/groff.texinfo: Ditto.
9357         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
9358         for cp1047.
9360 2000-04-29  Werner LEMBERG  <wl@gnu.org>
9362         * man/groff_char.man: Add `pc' glyph.
9363         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
9364         * tmac/tmac.tty: Add `pc' glyph.
9365         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
9366         we use cp1047 output device.
9368         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
9369         there are still hardcoded latin1->unicode values in utf8's font
9370         definition files.
9371         * configure: Updated.
9372         * NEWS: Minor clarification.  Updated.
9374         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
9375         Unix.
9377 2000-04-28  Werner LEMBERG  <wl@gnu.org>
9379         Adding EBCDIC code page 1047.
9381         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
9382         font/devcp1047/DESC.proto: New files.
9384         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
9385         either ascii/latin1 or cp1047.
9386         * Makefile.in: Use it.
9387         * configure: Updated.
9389         Replacing and/or adding `md' (mathdot) glyph with `pc'
9390         (periodcentered) in all text fonts.
9392         * font/*/*: Change it.
9394 2000-04-27  Werner LEMBERG  <wl@gnu.org>
9396         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
9398         * configure.in: Add check for strings.h.
9399         * src/include/driver.h: Use HAVE_STRINGS_H.
9400         * src/devices/grolbp/lpb.cc: Remove string.h.
9402         * src/include/groff-getopt.h: New file.  It will be used instead of
9403         getopt.h (to be included in lib.h) to avoid endless problems with
9404         picky C++ compilers.
9405         * src/include/lib.h: Use groff-getopt.h.
9406         * src/include/Makefile.sub: Updated.
9408         * configure: Updated.
9409         * Makefile.in: Updated.
9411         * NEWS: Mention EBCDIC support.
9413 2000-04-26  Werner LEMBERG  <wl@gnu.org>
9415         * TODO: Some additions.
9417 2000-04-25  Werner LEMBERG  <wl@gnu.org>
9419         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
9420         of mso request.
9422 2000-04-23  Werner LEMBERG  <wl@gnu.org>
9424         * src/roff/troff/troff.man: Minor fixes.
9426 2000-04-22  Werner LEMBERG  <wl@gnu.org>
9428         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
9429         `.T' string register and the incompatible definition of the `.T'
9430         number register (compared to Unix troff).
9432         * man/groff_char.man: Add some missing characters.
9433         * font/devutf8/NOTES: Update.
9435 2000-04-21  Werner LEMBERG  <wl@gnu.org>
9437         * src/include/htmlindicate.h, src/include/lib.h,
9438         src/include/posix.h: Fix copyright.
9440         * src/include/Makefile.sub: Update.
9442 2000-04-20  Werner LEMBERG  <wl@gnu.org>
9444         * src/roff/troff/input.cc (input_char_description): Removing
9445         superfluous space char.
9447         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
9449         * doc/groff.texinfo: Document EBCDIC.
9451 2000-04-19  Werner LEMBERG  <wl@gnu.org>
9453         Introducing `shc' as the glyph name for the soft hyphen character.
9455         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
9456         font/devlatin1/R.proto: Use it.
9458         * NEWS: Updated.
9460 2000-04-18  Werner LEMBERG  <wl@gnu.org>
9462         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
9463         dependency on ASCII order.
9465 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
9467         * src/libs/libgroff/illegal.c: Added EBCDIC table.
9468         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
9470         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
9471         to increase portability.
9473 2000-04-15  Werner LEMBERG  <wl@gnu.org>
9475         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
9476         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
9477         the generic `\n' if under OS/390 Unix.
9479         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
9481         * configure: Regenerated.
9483 2000-04-14  Werner LEMBERG  <wl@gnu.org>
9485         * doc/groff.texinfo: More conversions to @Deffn.
9487 2000-04-12  Werner LEMBERG  <wl@gnu.org>
9489         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
9490         with `:'.
9492         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
9494 2000-04-10  Werner LEMBERG  <wl@gnu.org>
9496         * doc/groff.texinfo: More conversions to @Deffn.
9498 2000-04-08  Werner LEMBERG  <wl@gnu.org>
9500         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
9501         Updated to latest version (glibc 2.1.3).
9503 2000-04-07  Werner LEMBERG  <wl@gnu.org>
9505         * doc/Makefile (clean): Include more index files.
9506         Add rule texinfo->dvi.
9508 2000-04-05  Werner LEMBERG  <wl@gnu.org>
9510         * doc/groff.texinfo: Added new index `op' for operators.  More
9511         info on end of sentence characters.  More use of @Deffn.
9513 2000-03-30  Werner LEMBERG  <wl@gnu.org>
9515         * */*.man: Adding a note that a whitespace can be inserted between
9516         a command line option and its parameter -- we are using GNU getopt.
9518         * src/roff/groff/groff.man: Add example of `-m mandoc'.
9520 2000-03-28  Werner LEMBERG  <wl@gnu.org>
9522         Correct anachronism of calling the man macro file with `-man'
9523         instead of `-m man' etc.
9525         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
9526         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
9527         load tmac.<package>.
9529         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
9531         * NEWS: Updated.
9533         * doc/groff.texinfo: Updated.
9535         * tmac/groff_man.man: Copyright added.
9537 2000-03-27  Werner LEMBERG  <wl@gnu.org>
9539         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
9540         typeset the request resp. escape name with a tt font -- due to a
9541         bug in texinfo.tex it is necessary to use the `-e' switch with
9542         texi2dvi.
9544         Improving info about usage of groff units.
9546         Other minor fixes.
9548 2000-03-20  Werner LEMBERG  <wl@gnu.org>
9550         * doc/groff.texinfo: Added section about man macro package
9551         (I've basically taken groff_man.man).  Introducing new indices `ma'
9552         for macros/strings and `gl' for glyph names.  Other minor fixes.
9554         * tmac/groff_man.man: Fixed some typos.
9556 2000-03-19  Werner LEMBERG  <wl@gnu.org>
9558         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
9559         Other minor fixes.
9561         * doc/texinfo.tex: New file.
9563 2000-03-18  Werner LEMBERG  <wl@gnu.org>
9565         * doc/groff.texinfo: Improved section on number registers.  Other
9566         minor updates.
9568 2000-03-16  Werner LEMBERG  <wl@gnu.org>
9570         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
9571         synopsis.
9573         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
9574         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
9575         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
9576         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
9578         * src/preproc/grn/grn.man: Better synopsis; added copyright.
9580         * src/roff/grog/grog.man: Updated copyright date.
9582 2000-03-14  Francisco Andrés Verdú  <pandres@dragonet.es>
9584         * configure.in: Added test for strdup.
9586         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
9587         is available.
9589         Replaced dynamic allocation of arrays `[...]' with `new' operator.
9591         Other minor fixes.
9593 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
9595         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
9597 2000-03-11  Werner LEMBERG  <wl@gnu.org>
9599         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
9600         compilers silent.
9601         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
9602         * src/include/lib.h: Remove some spaces.
9604 2000-03-10  Werner LEMBERG  <wl@gnu.org>
9606         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
9607         initializers from arguments (some compilers don't like this).
9609 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
9611         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
9612         used by pic and eqn to tell grohtml where the graphic regions start
9613         and end.
9614         * src/libs/libgroff/Makefile.sub: Use it.
9615         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
9616         graphic_start() and graphic_end() from htmlindicate.cc.
9618 2000-03-09  Werner LEMBERG  <wl@gnu.org>
9620         * tmac/tmac.safer: Will now work correctly in compatibility mode.
9621         * tmac/groff_man.man: More fixes.
9623 2000-03-08  Werner LEMBERG  <wl@gnu.org>
9625         * doc/Makefile: Added texput.log to the `clean' target.
9626         * doc/groff.texinfo: Added info about delimiters for escapes.
9628 2000-03-08  Bernd Warken  <bwarken@mayn.de>
9630         * src/preproc/pic/pic.man: Add info on conversion of pic images to
9631         other graphic formats.
9633 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
9635         * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
9636         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
9637         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
9638         files.
9640 2000-03-07  Werner LEMBERG  <wl@gnu.org>
9642         * doc/groff.texinfo: Spelling fixes.
9644 2000-03-06  Werner LEMBERG  <wl@gnu.org>
9646         * tmac/groff_man.man: Completely revised to cover everything in
9647         tmac.an.
9649         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
9650         Other minor fixings.
9651         * src/roff/troff/env.cc (environment_copy): Improve error message and
9652         fix itoa->i_to_a.
9653         * src/roff/troff/TODO: Updated.
9655         * doc/Makefile: Bug fixes -- this is still provisional, though...
9657         * tmac/eqnrc: Small fixes.
9659 2000-03-05  Abramo Bagnara  <abramo@alsa-project.org>
9661         Adding a request `evc' to copy environments.
9663         * src/roff/troff/env.cc (environment::copy, environment_copy):
9664         Implement it.
9665         * src/roff/troff/env.h: Add prototype.
9667 2000-03-05  Francisco Andrés Verdú  <pandres@dragonet.es>
9669         Adding strsep() -- Solaris 8 doesn't have it.
9671         * configure.in: Test it.
9672         * src/devices/grolbp/lbp.cc: Add code.
9674 2000-03-05  Werner LEMBERG  <wl@gnu.org>
9676         * src/roff/troff/div.cc (macro_diversion::output,
9677         top_level_diversion::output): Fixing an incompatibility with
9678         original troff: \x'0' updates the .a register also.  Thanks to
9679         <Andries.Brouwer@cwi.nl> for pointing this out.
9680         * doc/groff.texinfo: Document it.
9682         * Makefile.in: Create Makefile.dep if necessary before calling the
9683         submake process to avoid warning about nonexistent file.
9685         * NEWS, PROJECTS: Updated.
9687 2000-03-04  Werner LEMBERG  <wl@gnu.org>
9689         * tmac/troffrc: Add tmac.lbp.
9691 2000-03-03  Francisco Andrés Verdú  <pandres@dragonet.es>
9693         * tmac/tmac.lbp: New file.
9694         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
9695         command.
9697 2000-03-03  Werner LEMBERG  <wl@gnu.org>
9699         * Makefile.in: Fixing $(subdir).
9701         * README, NEWS: Small fixes.
9703         * test-groff: Adding path to grolbp.
9705         * configure.in: The (new) file src/xditview/Imakefile.in will be
9706         also configured -- it is now possible to build gxditview in a
9707         directory different from $srcdir.
9709 2000-03-02  Blake McBride  <blake@florida-software.com>
9711         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
9713         * MORE.STUFF: Added website of bell labs and info about plot2dev.
9715 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
9717         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
9718         files.
9720 2000-02-29  Werner LEMBERG  <wl@gnu.org>
9722         Adding GNU getopt to the groff distribution.
9724         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
9725         New files.
9726         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
9727         * aclocal.a4: Remove GROFF_GETOPT function.
9728         * configure.in, Makefile.in, PROBLEMS: Update.
9729         * src/include/lib.h: Replace getopt tests with getopt.h.
9730         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
9732         * doc/groff.texinfo: Further checking/updating.  Adding more index
9733         entries.
9735         * man/groff_out.man: Fix nroff mode activation (for emacs).
9736         * man/groff_font.man: Add missing ligature.
9738 2000-02-28  Werner LEMBERG  <wl@gnu.org>
9740         * doc/groff.texinfo: Further checking/updating.  Adding more index
9741         entries.
9743         * src/devices/grolbp/grolbp.man: Added a comment line at the
9744         beginning of the file (similar to shell scripts) which indicates
9745         that `tbl' should be used as a preprocessor.
9747 2000-02-27  Blake McBride  <blake@florida-software.com>
9749         Adapting groff to MS Visual C++ 6.0 compiler (tested with
9750         Windows NT 4.0).  Uses _MSC_VER define where necessary.
9752         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
9753         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
9754         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
9755         src/include/lib.h, src/libs/libgroff/errarg.cc,
9756         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
9757         src/preproc/refer/label.y, src/preproc/refer/label.cc,
9758         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
9759         src/roff/troff/div.cc, src/roff/troff/env.cc,
9760         src/roff/troff/input.cc, src/roff/troff/node.cc,
9761         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
9762         if_to_a() to avoid name clashes.
9763         * src/include/posix.h: Don't use unistd.h.
9764         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
9765         clause for integrating non-Unix xtmpfile() code.
9766         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
9767         structure; use "rt" for popen() in pipe_source(); add getpid()
9768         dummy function.
9769         * src/roff/troff/node.cc: Use special versions of popen() in
9770         real_output_file() and pclose() in ~real_output_file().
9772 2000-02-27  Werner LEMBERG  <wl@gnu.org>
9774         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
9775         LBP-8 series laser printers).  This code has been contributed by
9776         Francisco Andrés Verdú <pandres@dragonet.es>.
9778         * src/devices/grolbp/*: The grolbp output device.
9779         * font/devlpb/*: The font description files.
9780         * Makefile.in: Add grolpb and devlbp subdirectories.
9782         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
9783         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
9784         typographic fixes.
9786         * doc/groff.texinfo: Further checking/updating.  Adding more index
9787         entries.
9789         * NEWS: Updated.
9791         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
9793         * man/groff_font.man: Adding info about obsolete DESC keywords.
9794         * src/devices/grolj4/grolj4.man: Documenting additional DESC
9795         keywords.
9797 2000-02-26  Werner LEMBERG  <wl@gnu.org>
9799         * src/preproc/grn/grn.man: Added info about the gremlin file format
9800         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
9802 2000-02-25  Werner LEMBERG  <wl@gnu.org>
9804         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
9805         friends to be non-integer.
9807         * src/preproc/grn/grn.man: Document it.
9809         * doc/groff.texinfo: Further checking/updating.  Adding more index
9810         entries.
9812 2000-02-24  Werner LEMBERG  <wl@gnu.org>
9814         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
9815         line thicknesses to be integer multiples of this value.
9817         * src/preproc/grn/grn.man: Commenting out the -s option -- the
9818         corresponding code doesn't work (yet).
9820         * doc/groff.texinfo: Further checking/updating.  Adding more index
9821         entries.
9823 2000-02-23  Werner LEMBERG  <wl@gnu.org>
9825         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
9826         specify line thickness instead of base units.  The new default
9827         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
9828         thick lines respectively.
9830         Removed unused variable `prevval'.
9832         * src/preproc/grn/grn.man: Updated.
9834 2000-02-22  Werner LEMBERG  <wl@gnu.org>
9836         * src/preproc/grn/main.cc: Slight formatting.
9838         * src/roff/groff/groff.man: Formatting fix.
9839         * src/preproc/grn/grn.man: Ditto.
9841         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
9843         * doc/groff.texinfo: Further checking/updating.
9845 2000-02-21  Werner LEMBERG  <wl@gnu.org>
9847         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
9849         * test-groff: Added grn subdir to path.
9851         * doc/groff.texinfo: Some restructing and other small improvements.
9853         * src/roff/groff/groff.cc (help): Fixed info string.
9855 2000-02-20  Werner LEMBERG  <wl@gnu.org>
9857         * doc/meref.me: Fix description of .GS request.
9859         * src/roff/troff/troff.man: Fixing typo.
9861         Adding the `grn' preprocessor for gremlin graphic files.
9863         * src/preproc/grn/*: This is the Berkeley distribution written by
9864         David Slattengren and Barry Roitblat, adapted to groff by Daniel
9865         Senderowicz and Werner Lemberg.
9867         * doc/grnexampl.{me,g}: A sample for grn.
9869         * Makefile.in: Added subdirectory entry for grn.
9871         * src/roff/groff/groff.cc: Added support for grn.  It can be now
9872         called with the switch `-g'.
9874         * src/roff/groff/groff.man: Updated.
9876         * src/roff/grog/grog.{man,pl,sh}: Updated.
9878         * NEWS: Updated.
9880 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
9882         * src/include/lib.h: Added xtmptemplate and made xtmpfile
9883         parametrically polymorphic.
9885         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
9886         and the alterations to xtmpfile.
9887         xtmpfile can be requested to return the filename created
9888         and asked not to unlink the temp file.  The default behaviour
9889         if parameters are absent is exactly the same as before.
9891 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
9893         A new request `length' is available which returns the length of a
9894         string in a number register:
9896         * src/roff/troff/input.cc (length_macro): Implement it.
9897         * src/roff/troff/input.cc (init_input_requests): Register it.
9899 2000-02-11  Werner LEMBERG  <wl@gnu.org>
9901         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
9902         of the `substring' request.
9904         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
9905         request.
9907         * src/roff/troff/TODO, NEWS: Updated.
9909 2000-02-09  Werner LEMBERG  <wl@gnu.org>
9911         * src/roff/groff/groff.man: Added an example.
9913 2000-02-06  Werner LEMBERG  <wl@gnu.org>
9915         I've considerably modified the directory structure of the
9916         distribution to get a more vertical layout.  For example, the number
9917         of top level directories has been reduced from 42 to 6.
9919         As a consequence, many changes, especially to the makefiles, were
9920         necessary:
9922         * The makefile variables `top_builddir' and `top_srcdir' have been
9923         introduced.  Virtually all relative paths have been replaced with
9924         absolute ones using these two variables.
9926         * Dependencies (in the files `Makefile.dep') are no longer part of
9927         the distribution.  Instead, they are created during a `make install'
9928         in the build directory.
9930         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
9931         make `top_srcdir' and `top_builddir' absolute.
9933         Some other changes:
9935         * Man pages now depend on the files `VERSION' and `REVISION'.
9937         * The added shell script `mkinstalldirs' will replace `mkdir' in
9938         almost all cases.
9940         * VERSION: Version number increased to 1.16.
9942 2000-02-04  Werner LEMBERG  <wl@gnu.org>
9944         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
9946         * Makefile.in: Removed $(tmac_m) since it is no longer needed
9947         (after an update of the mm stuff).
9949         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
9951 2000-02-03  Werner LEMBERG  <wl@gnu.org>
9953         The .psbb request will now also accept Mac PS images (i.e. using LF
9954         as the EOL character).
9956         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
9957         (with slight modifications).
9958         * troff/input.cc (do_ps_file): Use it.
9960         * test-groff: Add grohtml and grolj4 output devices to PATH.
9962 2000-01-30  Werner LEMBERG  <wl@gnu.org>
9964         * NEWS, MORE.STUFF: Updated.
9966 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
9968         Add the `srand' command to pic.
9970         * pic/lex.cc, pic/pic.y: Implement it.
9971         * pic/pic.man: Document it.
9972         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
9974 2000-01-30  Werner LEMBERG  <wl@gnu.org>
9976         Add a new request `.psbb'.  This does exactly what the external
9977         program psbb did.  It scans a PostScript image file for a
9978         %%BoundingBox comment and extracts the bounding box values (in
9979         PostScript units) which are then stored in the four new (read-only)
9980         number registers `llx', `lly', `urx', and `ury'.
9982         This will allow the usage of the .PSPIC macro without worrying
9983         about unsafe behaviour of groff, i.e., it will work without the
9984         `-U' switch of groff.
9986         * troff/input.cc: Implement it.
9987         * tmac/tmac.pspic: Use it.
9988         * troff/troff.man, grops/grops.man, NEWS: Document it.
9989         * psbb/*, Makefile.in: Remove it since it is no longer needed.
9991         This is bloody C code simply adapted from psbb.c!  Any improvements
9992         welcome.
9994 2000-01-29  Werner LEMBERG  <wl@gnu.org>
9996         * man/groff_font.man: Minor clarifications.
9998         * NEWS: Updated.
10000 2000-01-28  Werner LEMBERG  <wl@gnu.org>
10002         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
10004 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
10006         * man/groff_font.man: Brought up to date regarding tcommand
10007         extensions.
10008         * libgroff/font.cc: Handle everything after `--' as a comment
10009         in the font files.
10010         * devps/*: Added comment delimiter inside devps font files.
10012 2000-01-28  Werner LEMBERG  <wl@gnu.org>
10014         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
10015         \fC...\fP (which now works as expected).
10017         * troff/troff.man: Fix typo.
10019 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
10021         Completed the pass_filenames implementation in troff.
10023         * libdriver/input.cc: Will read the new `F' tcommand.
10024         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
10025         * troff/input.cc: Use it.
10027 2000-01-26  Werner LEMBERG  <wl@gnu.org>
10029         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
10030         font will now be updated even if an invalid font is selected.
10032 2000-01-24  Werner LEMBERG  <wl@gnu.org>
10034         * doc/homepage.ms: Updated for new tmac.arkup.
10036         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
10038         * tmac/tmac.arkup: Cleanup.
10040         Added `\&' to .HTML macro to `leave vertical mode', so to say.
10042         Removed obsolete .LINK macro completely.
10044         The macros .URL, .FTP, and .MAILTO now accept a third argument which
10045         will be immediately appended to the second argument (to be used with
10046         punctuation, for example).
10048         Disabled .CDFTP macro temporarily for security reasons.
10050         * tmac/groff_markup.man: Complete revision for latest changes in
10051         tmac.arkup -- note that it does not yet format correctly with
10052         grohtml :-(
10054 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
10056         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
10057         * devutf8/R.proto: Add mappings for wp, lh, rh.
10058         * devutf8/NOTES: Updated.
10060 2000-01-23  Werner LEMBERG  <wl@gnu.org>
10062         * doc/groff.texinfo: Updated version/copyright info.
10064 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
10066         Added support for two new directives in device descriptions:
10067         `pass_filenames' (to pass the input file name to the output device)
10068         and `use_charnames_in_special' (to support e.g. accented characters
10069         in the `X' request).
10071         * include/font.h, troff/charinfo.h: Declare it.
10073         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
10075         * devhtml/DESC: Use it.
10077         * troff/input.cc: New function encoded_char.
10079         * troff/token.h: Add test for `specialness'.
10081 2000-01-21  Werner LEMBERG  <wl@gnu.org>
10083         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
10084         mistake from the list of files to be installed.
10086 2000-01-18  Werner LEMBERG  <wl@gnu.org>
10088         * README: Added info how to apply patches.
10090 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
10092         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
10094 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
10096         * troff/input.cc: Add support for troffrc-end.
10098         * tbl/main.cc: Altered to issue table-start and table-end special
10099         characters if using the html device.
10101         * devhtml/*: Modified font files to incorporate html encoding of
10102         characters.
10104         * tmac/groff_markup.man: New file documenting tmac.arkup.
10106         * tmac/troffrc-end: New file.  This is invoked after all user
10107         specified macros.  Currently used by the html device to include
10108         tmac.html.  Thus no need for users to specify -mhtml anymore.
10110         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
10111         (MAN7): Add groff_markup.man.
10113         * tmac/tmac.an, tmac/tmac.html: Small html updates.
10115         * tmac/troffrc: tmac.arkup will now be called for the html device.
10117         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
10118         extra device specific information about fonts.
10120         * doc/homepage.ms: New file.  It is an example how an HTML home page
10121         could look like with grohtml.
10123         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
10125 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
10127         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
10128         of Im, Re.
10130         * devutf8/NOTES: Updated.
10132 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
10134         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
10135         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
10136         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
10137         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
10138         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
10139         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
10140         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
10141         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
10142         warnings.
10144         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
10146 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
10148         grolj4: Paper size will be searched case-insensitively.
10150         * include/lib.h: Add check for strcasecmp().
10151         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
10152         * configure.in: Check for strcasecmp().
10154 2000-01-11  Werner LEMBERG  <wl@gnu.org>
10156         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
10157         `REVISION'.
10159 2000-01-10  Werner LEMBERG  <wl@gnu.org>
10161         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
10162         revision scheme.
10164         Add a new read-only register, `.Y', which contains the groff
10165         revision.
10167         * troff/input.cc (init_input_requests): Define it.
10168         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
10169         * doc/groff.texinfo, troff/troff.man: Document it.
10171         * libgroff/Makefile.sub (version.cc): Add definition of
10172         `Version_string[]', consisting of `<major>.<minor>.<revision>'
10173         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
10174         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
10175         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
10176         troff/input.cc, pfbtops/pfbtops.c: Use it.
10178 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
10180         Add a revision scheme to the groff package.
10182         * REVISION: New file.
10183         * libgroff/Makefile.sub (version.cc): Use it to define
10184         `revision_string[]'.
10185         * grops/psrm.cc: Use revision_string (converted to an unsigned
10186         integer) in constructor of resource_manager.
10188 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
10190         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
10191         files.
10192         * Makefile.in (DEVDIRS): Add devutf8.
10193         * grotty/tty.cc: Include device.h.
10194         (glyph): Change type of `code' to `unsigned int'.
10195         (tty_printer): New field is_utf8.  Constructor takes device argument.
10196         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
10197         (tty_printer::add_char): Change type of first arg to `unsigned int'.
10198         (tty_printer::put_char): New function.
10199         (tty_printer::end_page): Use put_char() instead of ::putchar().
10200         (make_printer): Pass device to tty_printer constructor.
10201         * nroff.sh: Determine default device by calling 'locale'.  As a
10202         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
10203         Recognize UTF-8 locales.
10204         * tmac/eqnrc: Recognize utf8 like latin1.
10205         * tmac/troffrc: Device utf8 needs tmac.tty.
10207 2000-01-07  Werner LEMBERG  <wl@gnu.org>
10209         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
10211 2000-01-07  Paul Eggert  <eggert@twinsun.com>
10213         Add a new predefined writeable number register, `year',
10214         which contains the current year.
10216         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
10217         * tmac/tmac.s: Use it.
10218         * troff/input.cc (init_registers): Initialize it.
10220 2000-01-06  Werner LEMBERG  <wl@gnu.org>
10222         * PROBLEMS: Fixed typo.
10224 2000-01-04  Paul Eggert  <eggert@twinsun.com>
10226         * PROBLEMS: Add Y2k advice for the yr number register.
10228 2000-01-03  Paul Eggert  <eggert@twinsun.com>
10230         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
10232 2000-01-02  Werner LEMBERG  <wl@gnu.org>
10234         * tmac/tmac.arkup: Slight modification of macros to provide better
10235         appearance for non-HTML formats.
10237 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
10239         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
10240         does not automatically translate to malloc(n) on all OSes
10241         (e.g., SunOS) so do it explicitly.  Also, check the returned
10242         value.
10244 2000-01-01  Werner LEMBERG  <wl@gnu.org>
10246         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
10248         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
10249         expects this variable
10251 2000-01-01  Gaius Mulley  <gaius@glam.ac.uk>
10253         * doc/Makefile: Added instructions to create HTML and text
10254         versions of some files.
10256 1999-12-31  Werner LEMBERG  <wl@gnu.org>
10258         * Updated INSTALL.gen.
10260         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
10261         better resp. correctly with non-HTML devices.
10263 Version 1.15 released
10264 =====================
10266 1999-12-28  Werner LEMBERG  <wl@gnu.org>
10268         * NEWS, VERSION: Changed to 1.15
10270 1999-12-27  Paul Eggert  <eggert@twinsun.com>
10272         * nroff/nroff.man: -S is safer, not safe.
10274         * groff/groff.cc (main): Use `safer', not `safe', in variable
10275         names.  This does not change the behavior.
10277         * troff/input.cc (main): Likewise.
10279         * nroff/nroff.sh: Likewise.
10281         * troff/input.cc (prepend_string): New function.
10282         (main): Prepend -msafer, so that we check macro libraries for
10283         safety.
10285         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
10287 Version 1.14 released
10288 =====================
10290 1999-12-26  Werner LEMBERG  <wl@gnu.org>
10292         * NEWS, VERSION: Changed to 1.14.
10294 1999-12-24  Werner LEMBERG  <wl@gnu.org>
10296         * refer/refer.cc: Fixing the last fix.
10298 Version 1.13 released
10299 =====================
10301 1999-12-23  Werner LEMBERG  <wl@gnu.org>
10303         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
10304         number disappear.
10306         * NEWS: Updated.
10308         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
10310         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
10311         document conventions, the version number must be a real.
10313 Version 1.12.1 released
10314 =======================
10316 1999-12-22  Werner LEMBERG  <wl@gnu.org>
10318         * VERSION: Changed to 1.12.1.
10320 1999-12-22  Alan Rooks  <arooks@istar.ca>
10322         * refer/refer.cc (do_file): Slight modification to satisfy the
10323         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
10324         UnixWare 7.1.
10326 1999-12-20  Werner LEMBERG  <wl@gnu.org>
10328         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
10329         notices.
10331         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
10332         list of unsafe requests.
10334         * pic/pic.man: Fixed a typo.
10336         * man/groff_out.man: Fixed a typo.
10338 1999-12-18  Werner LEMBERG  <wl@gnu.org>
10340         * Makefile.in: Doc fixes.
10342 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
10344         * groff/groff.cc: Missing `U' option added to getopt().
10346         * troff/troff.man: Missing `U' option added to synopsis.
10348 Version 1.12 released
10349 =====================
10351 1999-12-14  Werner LEMBERG  <wl@gnu.org>
10353         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
10354         to the synopsis.
10356         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
10357         with the more appropriate terms `safer' and `unsafe'.
10359         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
10360         sys_nerr and sys_errlist[].
10362         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
10364         * pic/pic.y, pic/pic.cc: Added check for fmod().
10366 1999-12-13  Werner LEMBERG  <wl@gnu.org>
10368         * VERSION: Changed to 1.12.
10370         Here some patches from various sources; most of them taken from
10371         the Debian distribution.
10373         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
10374         tmac/Makefile.sub: New files copied directly from the NetBSD
10375         distribution.  Probably, some additional adaptation later on is
10376         necessary...
10378         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
10379         of unsafe requests.
10381         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
10382         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
10383         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
10384         (`-S') is now the default.
10386         * README, NEWS: Updated.
10388 1999-12-09  Werner LEMBERG  <wl@gnu.org>
10390         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
10392         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
10394 1999-12-06  Werner LEMBERG  <wl@gnu.org>
10396         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
10397         grief than relief today.  Additionally, it is against the GNU
10398         coding standards.
10400         * configure: Recreated.
10402 1999-12-05  Werner LEMBERG  <wl@gnu.org>
10404         * configure.in: Added GROFF_LIBM.
10406         * configure: Recreated.
10408         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
10409         necessary.
10411         * Makefile.in: Added definition of $(LIBM).
10413         * Makefile.comm (LIBM): Removed.
10415         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
10417 1999-12-03  Gaius Mulley  <gaius@glam.ac.uk>
10419         * doc/Makefile: Added rule for generation pic.html.
10421         (clean): Files produced by grohtml will be removed also.
10423         * doc/pic.ms: Small fix.
10425         * tmac/tmac.html: Fixed suppression of headers.
10427 1999-11-16  Gaius Mulley  <gaius@glam.ac.uk>
10429         * tmac/tmac.html: Fixing horizontal arrows.
10431         Turning off hyphenation.
10433         * tmac/tmac.an: Improved support for grohtml; better indentation,
10434         no footers/headers.
10436 1999-10-31  Gaius Mulley  <gaius@glam.ac.uk>
10438         * tmac/tmac.arkup: Added CDFTP macro
10440         * tmac/tmac.html: All headers are turned off for ms, me, and mm
10441         macros.
10443         * tmac/troffrc: Some additions for HTML stuff.
10445 1999-10-06  Gaius Mulley  <gaius@glam.ac.uk>
10447         * tmac/tmac.html: Small changes.
10449 1999-09-26  Werner LEMBERG  <wl@gnu.org>
10451         * doc/groff.texinfo: Minor fixes.
10453 1999-09-26  Gaius Mulley  <gaius@glam.ac.uk>
10455         * devhtml/TR: Changed spacewidth to 3.
10457         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
10459         * tmac/tmac.html: Moved markup macros to tmap.arkup.
10461         * tmac/tmac.arkup: New file.
10463         * grohtml/ChangeLog: New file.
10465 1999-09-16  Werner LEMBERG  <wl@gnu.org>
10467         * doc/groff.texinfo (Common Features): Added Copying chapter.
10468         Changed format to @smallbook.
10470 1999-09-15  Werner LEMBERG  <wl@gnu.org>
10472         * NEWS: Added info about groff.texinfo.
10474         * doc/groff.texinfo: Will now compile (using texi2dvi) without
10475         warning messages.
10477 1999-09-14  Werner LEMBERG  <wl@gnu.org>
10479         * groff/groff.man: More updates.
10481 1999-09-13  Werner LEMBERG  <wl@gnu.org>
10483         * doc/groff.texinfo: New file.  This manual is still very
10484         rudimentary.  It has been originally contributed by Trent
10485         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
10486         additions by me.
10488         * INSTALL: Added information about the `doc' subdir
10490         * troff/troff.man: Minor fixes.
10492         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
10493         reordered options.
10495         * troff/input.cc (usage): Added missing `-ffam' to usage message.
10497         * Makefile.in (dist): groff-$(version).tar.gz must be removed
10498         also, otherwise it is included itself in another call of `make
10499         dist'.
10501         * groff/groff.cc (synopsis): Removed superfluous space.
10503         * PROJECTS, PROBLEMS, NEWS: Updated.
10505         * VERSION: Updated to 1.12beta.
10507         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
10509         * README: Updated: Included documentation about CVS repository,
10510         mailing lists, and daily snapshots.
10512         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
10514 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
10516         * tmac/tmac.an: If the tag didn't fit into the space that the
10517         macro `TP' specifies, the rest of the tag went into the space for
10518         the next line.
10520 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
10522         * grolj4/lj4.cc: Added duplex printing (option `-d').
10524         * grolj4/grolj4.man: Document duplex printing.
10526 1999-09-12  Werner LEMBERG  <wl@gnu.org>
10528         * doc/Makefile (pic.ps): Fixed rule which caused problems with
10529         non-GNUish sed programs.
10531         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
10532         definition.
10534         * configure.in (LIBS): Added `-lc'
10536         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
10538         * pic/tex.cc (solid_arc): Casting M_PI to double.
10540         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
10542         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
10543         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
10544         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
10546         * groff/groff_man.man: New file.  This manual page was originally
10547         written for the Debian GNU/Linux system by Susan G. Kleinmann
10548         <sgk@debian.org>.
10550         * eqn/list.cc (list_box::compute_metrics,
10551         list_box::compute_sublist_width): Removed variable declaration to
10552         avoid shadowing warnings.
10554         * grops/psrm.cc (resource_manager::process_file): Ditto.
10556         * tfmtodit/tfmtodit.cc (main): Ditto.
10558         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
10559         to avoid shadowing warnings.
10561         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
10562         shadowing loop variable.
10564         * groff/groff.man, troff/troff.man: Added doc about grohtml.
10566 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
10568         New grohtml frontend to convert groff input to html.
10570         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
10572         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
10574         * tmac/eqnrc: Added html device.
10576         * tmac/tmac.html: New file.
10578         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
10579         (troff_output::start_picture, troff_output::finish_picture),
10580         tbl/main.cc (process_input_file):
10581         Surrounded output with `graphics_start' and `graphics_end' so that
10582         the html driver can identify non-text portions.
10584         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
10585         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
10586         grotty/tty.ps (tty_printer::set_char): Additional parameter
10587         `name'.
10589         * include/printer.h: Class printer: New function
10590         set_char_and_width; new variables (is_char_named, is_named_set,
10591         named_command, named_char_s, named_char_n) to hold information
10592         about named characters -- needed by the html driver.
10594         * libdriver/printer.cc (printer::set_ascii_char,
10595         printer::set_special_char): Use set_char_and_width.
10597         * devhtml/*: New device files for html driver.
10599         * grohtml/*: New driver grohtml.
10601 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
10603         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
10604         default strings.
10606 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
10608         * libgroff/string.cc (search): Small fix to test against NULL
10609         pointer.
10611 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
10613         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
10614         \b'abc') were stacked in reverse order when processed in a
10615         diversion.
10617         * troff/node.h: Added `*last' to struct `node' to make the above
10618         fix work.
10620         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
10621         The default scale for the 'f' and 't' graphics functions were 'm'
10622         rather than 'u' (i.e., no scaling).
10624 1999-09-11  Peter Miller  <peterm@jna.com.au>
10626         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
10627         do_file), soelim/soelim.man: Added `-I file' option to soelim,
10628         defining include paths.
10630         * soelim/soelim.cc (include_path_append): New function.
10632 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
10634         * tbl/main.cc (process_options): Unix (at least Documenter's
10635         Workbench) tbl allows arbitrary non-alpha characters between
10636         options.
10638 1999-09-11  Paul Eggert  <eggert@twinsun.com>
10640         Y2k fixes.  Don't assume that the current year precedes 2000.
10642         * doc/meref.me: Add \n(y2, \n(y4.
10644         * tmac/doc-common (Yr): New number register.
10645         (Dd): Don't assume current year precedes 2000.
10647         * tmac/tmac.e (td): Likewise.
10648         (y2, y4): New number registers.
10650         * pic/pic.man: Update reference for pic paper to May, 1991
10651         version.
10653 1999-09-11  Werner LEMBERG  <wl@gnu.org>
10655         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
10656         Removed quotation marks which prevented correct expansion of
10657         $(tmac_wrap).
10659         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
10661 1999-09-10  Werner LEMBERG  <wl@gnu.org>
10663         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
10664         `config.cache'.
10666         * Removed configure.old.
10668 1999-08-31  Werner LEMBERG  <wl@gnu.org>
10670         * VERSION: Updated to 1.11.1
10672 1999-05-27  Werner LEMBERG  <wl@gnu.org>
10674         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
10676         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
10677         added quotations around $(tmac_wrap) to avoid syntax error if
10678         variable is empty.
10680         * configure: Newly generated using autoconf 2.13.
10682         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
10684 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
10686         * README, PROJECTS, NEWS, INSTALL, VERSION, 
10687         doc/Makefile. doc/pic.ms, groff/groff.man:
10688         Prepare for 1.11 release.  No code changes.
10689         Documentation for pic added (doc/pic.ms).
10691 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
10693         * Version 1.10 released.
10695 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
10697         * afmtodit/afmtodit.pl: Avoid comment on first line.
10699 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
10701         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
10702         * configure.in: Call it.
10704         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
10705         (distfiles): Doesn't depend on config.log or config.cache.
10707 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
10709         * grog/grog.sh: Use print "" rather than print in END rule.
10711 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
10713         * tbl/main.cc (process_data): Don't give error for excess data
10714         entries that are comments.
10716 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
10718         * tbl/main.cc (process_data): Fix case where new for-scope rules
10719         silently change meaning of code.
10721 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
10723         * troff/env.cc (hyphenate): Loop over all consecutive sequences
10724         of non-zero hyphenation codes.
10726 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
10728         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
10730 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
10732         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
10734 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
10736         * tmac/tmac.andoc: Make it work in compatibility mode.
10738         * refer/token.h (token_info::is_range_sep): New function.
10739         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
10740         * refer/ref.cc (reference::output): More sophisticated check for
10741         multiple pages.
10743         * devps/prologue.ps (MANUAL): New procedure.
10744         * grops/ps.cc (main): New -m option.
10745         (usage): Include -m.
10746         (ps_printer::~ps_printer): Implement -m.
10748         * aclocal.m4 (GROFF_G): New macro.
10749         * configure.in: Call it.
10750         * Makefile.in (g): Provided by configure.
10752         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
10754         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
10755         translations.
10757         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
10758         (tmac_m, tmac_s): Deleted.
10759         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
10760         tmac_s_prefix): New variables.
10761         (MDEFINES): Change accordingly.
10762         * Makefile.comm (.man.n): Use new TMAC_* variables.
10763         * configure.in (GROFF_TMAC): Call.
10764         * aclocal.m4 (GROFF_TMAC): Define.
10765         * tmac/Makefile.sub (stamp_wrap): New target.
10766         (install_data, uninstall_sub): Handle macro wrapping.
10768 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
10770         * tbl/main.cc (main): Ignore -T option.
10772 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
10774         * devlj4/generate/special.map: Add definition of \(nb.
10776         * tmac/tmac.dvi: Add definition of \(nb.
10778         * troff/dictionary.c (dictionary::dictionary): association::v gets
10779         initialized by association::association.
10781         * tmac/Makefile.sub: Avoid using temporary files when installing.
10783         * troff/env.cc (environment::set_font): Make bad font number a
10784         warning.
10786         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
10788         * Makefile.in (datadir): Use share rather than lib.
10790         * groff/groff.cc (basename): Rename to xbasename.
10792 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
10794         * Makefile (CCLIBS): Don't use.
10795         * Makefile.ccpg: Likewise.
10797         * acgroff.m4: Rename to...
10798         * aclocal.m4: Modify extensively for autoconf 2.
10799         * configure.in: Likewise.
10800         * Makefile.in: Likewise.
10802         * groff/pipeline.c (const): Declare as empty if __STDC__ not
10803         defined.
10804         (xstrsignal): Check for definition of NSIG. Conditionalize
10805         on SYS_SIGLIST_DECLARED.  Make return type const.
10807 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
10809         * troff/input.cc (interpolate_macro): Rephrase missing space
10810         warning.
10812 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
10814         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
10815         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
10816         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
10817         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
10818         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
10819         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
10820         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
10821         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
10822         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
10823         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
10824         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
10825         Fix 'for' scoping.
10827 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
10829         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
10830         string_iterator.
10831         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
10832         file.
10833         (macro_iterator::macro_iterator): Add additional argument.
10835 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
10837         * troff/div.cc (vertical_size::vertical_size): In place of integer
10838         specifying line spacing use cunits specifying post vertical
10839         space.
10840         (macro_diversion::output, top_level_diversion::output): Likewise.
10841         * troff/div.h: Change declarations accordingly.
10842         * troff/env.cc (pending_output_line): Replace ls field by post_vs
10843         field.
10844         (pending_output_line::pending_output_line,
10845         pending_output_line::output, environment::output,
10846         environment::output_line, environment::output_title,
10847         environment::hyphenate_line):  In place of
10848         integer specifying line spacing use cunits specifying post vertical
10849         space.
10850         (environment::environment): Add post_vertical_spacing and
10851         prev_post_vertical_spacing arguments.
10852         (environment::get_post_vertical_spacing): New function.
10853         (environment::total_post_vertical_spacing): New function.
10854         (environment::post_vertical_spacing): New function.
10855         (init_env_requests): Initialize pvs request and .pvs register.
10856         * troff/env.h: Change declarations.
10858 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
10860         * tmac/tmac.pspic: Immediately remove the temporary file.
10862 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
10864         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
10865         height is specified.
10867 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
10869         * tbl/table.c (struct vertical rule, class table_entry): Use int
10870         not short for start_row and end_row.
10872 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
10874         * troff/input.cc (trapping_blank_line, blank_line_macro): New
10875         functions.
10876         (diverted_space_node::reread, process_input_stack): Call
10877         trapping_blank_line() rather than blank_line().
10878         (init_input_requests): Bind "blm" to blank_line_macro().
10880         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
10882 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
10884         * troff/env.cc (environment::possibly_break_line): Require that
10885         width total excluding width of final space node be greater than
10886         the target text length.
10888 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
10890         * troff/node.cc (kern_pair_node::vertical_extent): New function.
10892 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
10894         * troff/node.cc (charinfo_node): New class.
10895         (glyph_node, composite_node): Derive from charinfo_node.  Change
10896         member functions accordingly.
10898 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
10900         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
10902 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
10904         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
10906         * devps/generate/textmap (notsubset): Add.
10908         * tmac/tmac.a4: New file.
10910 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
10912         * pic/main.cc (had_parse_error): New variable.
10913         (do_picture, do_whole_file): Set had_parse_error if yyparse()
10914         returns non-zero.
10915         (main): Return 1 if had_parse_error is true.
10917 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
10919         * grolj4/lj4.cc (main): Avoid use of strtoul.
10921 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
10923         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
10924         iso_8859_1 or $LESSCHARSET is latin1.
10926 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
10928         * hpftodit: New directory.
10929         * Makefile.in (CCPROGDIRS): Add hpftodit.
10930         * devlj4/generate: New directory.
10932 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
10934         * configure.in: Don't use AC_VFORK.
10935         * groff/pipeline.c (run_pipeline): Use fork() always.
10937 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
10939         * grops/ps.cc (main): Use %1 not %s in error message for -w.
10941         * Makefile.in (CCPROGDIRS): Add grolj4.
10942         (DEVDIRS): Add devlj4.
10943         * grolj4, devlj4: New directories.
10944         * tmac/troffrc: Handle lj4.
10945         * tmac/tmac.lj4: New file.
10947 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
10949         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
10951 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
10953         * troff/input.cc (do_if_request): At end of second string, switch
10954         environments before getting next token.
10956 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
10958         * devps/psstrip.sed: Split rule that strips whitespace on either
10959         side of delimiters.
10961 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
10963         * troff/node.h (font_family::make_definition): Add return value to
10964         declaration.  * troff/symbol.h (symbol::operator==,
10965         symbol::operator!=): Likewise.
10967 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
10969         * groff/groff.cc (main, help, synopsis): Handle -S.
10970         (possible_command::insert_arg): New function.
10972         * tmac/tmac.safer: New file.
10973         * tmac/msafer.man: New file.
10974         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
10976 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
10978         * pic/pic.h, pic/main.cc (safer_flag): New variable.
10979         * pic/pic.y (placeless_element): Avoid unsafe operations if
10980         `safer_flag' is set.
10981         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
10983 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
10985         * eqn/lex.cc (get_token): Put call to add_context() in block to
10986         work around Sun C++ 4.0 bug.
10988         * include/stringclass.h (operator +): Use ?: instead of `if' to
10989         work around Sun C++ 4.0 bug.
10991 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
10993         * tbl/main.cc (process_format): Accept - as a synonym for the _
10994         key letter.
10996         * libbib/index.cc (minus_one): Don't declare as const.
10998 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
11000         * troff/input.cc (get_char_for_escape_name): Push back a newline.
11002 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
11004         * troff/input.cc (write_macro_request): New function.
11005         (init_input_requests): Bind write_macro_request to writem.
11007 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
11009         * tmac/tmac.s (@EN): Turn filling back on even if there was no
11010         equation.
11012         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
11014         * tmac/tmac.s (@TS): Renamed from TS.
11015         (TS): Call LP then TS again.
11016         (cov*ab-init): Alias @TS to TS.
11018         * tmac/tmac.s: Allow QP or RS to initialize.
11020         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
11021         Move initializations of PS and LL here.
11022         (par@init): Don't initialize HY.  Avoid changing environment 0.
11023         (par*env-init): Don't all par@reset.
11025 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
11027         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
11029 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
11031         * Makefile.in (MDEFINES): Add LDFLAGS.
11032         (LDFLAGS): Add definition line.
11034 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
11036         * troff/input.cc (get_optional_char): Split off error check into...
11037         (check_missing_character): New function.
11038         * troff/token.h: Declare it.
11039         * troff/env.cc (margin_character): Don't call get_optional_char.
11040         Only call tok.next() after making the node.
11042         * include/lib.h (getopt): Make 2nd argument char *const *.
11044 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
11046         * nroff/conftest.sh: Deleted.
11048 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
11050         * pic/make-dos-dist: Deleted.
11052 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
11054         * devps/psstrip.sed: Strip comments before stripping trailing
11055         white space.
11057 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
11059         * Version 1.09 released.
11061 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
11063         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
11065 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
11067         * libgroff/font.cc (font::load_desc): Fix typo in error message.
11069 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
11071         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
11072         about returning without a value.
11074         * troff/charinfo.h (charinfo::get_special_translation): Cast
11075         TRANSLATE_NONE to int.
11077         * refer/token.cc (lookup_token, store_token): Remove bogus loop
11078         test.  Fix test so that it works with n unsigned.
11080         * pic/pic.y (defaults_table): Fully bracket initializer.
11081         * pic/lex.cc (lookup_keyword): Likewise.
11082         * eqn/lex.cc (token_table, def_table): Likewise.
11083         * eqn/box.cc (param_table): Likewise.
11084         * troff/input.cc (warning_table): Likewise.
11085         * libgroff/font.cc (table): Likewise.
11086         * grops/ps.cc (ps_printer::special): Likewise.
11087         * grops/psrm.cc (resource_manager::process_file): Likewise.
11088         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
11089         * refer/command.cc (command_table): Likewise.
11090         * addftinfo/addftinfo.cc (param_table): Likewise.
11092         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
11093         about temp's being unused.
11094         (unused): New function.
11096         * groff/pipeline.cc: Declare c_fatal.
11098         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
11099         uchar.
11101         * libbib/index.cc (index_search_item::load): Prevent compiler
11102         warnings about fd_closer's being unused.
11103         (unused): New function.
11105 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
11107         * troff/input.cc (copy_mode_error): Make `prefix' static.
11108         Fix typo.
11110         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
11111         defined.
11112         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
11113         HAVE_CC_OSFCN_H and modify accordingly.
11115         * troff/input.cc (init_charset_table): radicalex overlaps
11116         horizontally.
11118         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
11119         udodo!hans@relay.NL.net).
11120         * groff/configure.in: Call it.
11122         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
11123         * groff/configure.in: Call it.
11124         * include/lib.h: Conditionalize declaration of pclose.
11126         * troff/div.cc (last_page_number): New global variable.
11127         (top_level_diversion::begin_page): Exit if we just printed the
11128         last page.
11129         * troff/div.h (last_page_number): Declare it.
11130         * troff/input.cc (parse_output_page_list): Set last_page_number.
11132         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
11133         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
11134         tmac/tmac.X: Likewise.
11135         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
11136         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
11138 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
11140         * tmac/doc-ditroff (hK): Remove groff specific code which
11141         prevented page-breaks between separate manual entries.  If this is
11142         the first page, don't set the page number to 1.
11144         * acgroff.m4 (GROFF_POSIX): New macro.
11145         * configure.in: Use it.
11147         * troff/node.cc (class real_output_file,
11148         real_output_file::real_output_file,
11149         real_output_file::~real_output_file): Conditionalize use of
11150         popen/pclose on POPEN_MISSING.
11151         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
11152         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
11153         (pipe_source): Similarily.
11155         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
11157         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
11158         presence of declarations by trying to compile example with
11159         conflicting declarations.  (gcc only gives a warning for missing
11160         declarations.)
11162 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
11164         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
11165         (from Ulrich Lauther).
11167 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
11169         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
11171 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
11173         * indxbib/indxbib.cc (write_hash_table): Add code for case where
11174         pointers and ints have different sizes.
11176 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
11178         * tmac/tmac.s (par*env-init): Call par@reset.
11180 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
11182         * tmac/tmac.s (@IP): Switch to a new environment when diverting
11183         tag.
11184         (par*push-tag-env, par*pop-tag-env): New macros.
11186 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
11188         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
11189         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
11191         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
11192         comment.  Include <time.h>.
11194 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
11196         * grops/ps.cc (is_small_h, is_small_v): Deleted.
11197         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
11198         lines.
11200 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
11202         * troff/input.cc (read_request): Only print a prompt if reading
11203         from the terminal.  Also clearerr on EOF if reading from the
11204         terminal.  Declare isatty.
11206 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
11208         * refer/label.y: Rename map_t to map_func and extractor_t to
11209         extractor_func.
11211 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
11213         * include/assert.h: Don't use volatile.
11214         * libgroff/assert.cc: Likewise.
11216 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
11218         * troff/input.cc (abort_request): Look at character in tok before
11219         calling get_copy().
11221 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
11223         * troff/troff.h (NO_RETURN): Deleted.
11224         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
11225         * troff/input.cc (exit_troff): Likewise
11227         * Makefile.in: Remove `Making ...' messages since GNU make now
11228         gives these. 
11230         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
11232 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
11234         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
11235         to constant 1 inch.
11237 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
11239         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
11241 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
11243         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
11244         MARK_REG if there was no left delimiter.
11246 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
11248         * pic/troff.cc (troff_output::text): Set line thickness to
11249         relative before outputting text.
11251         * tmac/tmac.e (@k): Don't zero ?T.
11252         ((z): Likewise.
11254 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
11256         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
11258 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
11260         * troff/input.cc (decode_args): Warn about unquoted tabs (from
11261         Paul Eggert).
11263 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
11265         * troff/input.cc (ignoring): New variable.
11266         (ignore): Set ignoring during call to do_define_macro.
11267         (do_define_macro): Clear ignoring before interpolating terminating
11268         macro.
11269         (copy_mode_error): New function.
11270         (get_char_for_escape_name, read_long_escape_name,
11271         interpolate_arg): Use copy_mode_error.
11272         (warning_table): Add WARN_IG.
11273         * troff/troff.h (WARN_IG): Declare.
11274         (WARN_TOTAL): Change accordingly.
11276         * groff/pipeline.c (strsignal): Rename to xstrsignal.
11277         * groff/groff.cc (strsignal): Delete declaration.
11279 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
11281         * troff/div.cc (page_offset): Use 'm' as default scaling.
11283 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
11285         * nroff/nroff.sh: Ignore -u.
11287 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
11289         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
11291 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
11293         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
11294         drawing box.
11295         (B2): With -Tascii, leave additional vertical space before
11296         and after. Ensure that the left and right indent is restored to
11297         what it was even if the point size changes.  Don't call
11298         par@finish. Change the indent, line length and title length
11299         directly.  With -Tascii, make the width of the box 1n less.
11300         (B1): Remember 1n at the current point size.  Don't call
11301         par@reset.  Change the indent, line length and title length
11302         directly.  Ensure that the temporary indent is preserved.
11303         (par*box-mark-top): Turn off no spacing mode.
11305 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
11307         * Makefile.in (dist): Use .gz suffix.
11309 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
11311         * troff/input.cc (main): Add return 0.
11312         * pic/main.cc (main): Use return instead of exit.
11313         * tbl/main.cc (main): Likewise.
11314         * eqn/main.cc (main): Likewise.
11315         * grops/ps.cc (main): Likewise.
11316         * grotty/tty.cc (main): Likewise.
11317         * groff/groff.cc (main): Likewise.
11318         * grodvi/dvi.cc (main): Likewise.
11319         * refer/refer.cc (main): Likewise.
11320         * indxbib/indxbib.cc (main): Likewise.
11321         * lkbib/lkbib.cc (main): Likewise.
11322         * soelim/soelim.cc (main): Likewise.
11323         * addftinfo/addftinfo.cc (main): Likewise.
11324         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
11325         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
11327         * troff/token.h (process_input_stack): Don't declare as static.
11328         * troff/input.cc: Likewise.
11330         * troff/node.c (invalidate_fontno): Make it a static member of
11331         class font_family.  Change callers.
11332         * troff/node.c: Change declaration.
11334         * tbl/main.cc (struct input_entry_format): Add explicit public
11335         specifier.
11336         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
11337         struct double_hline_stuff): Likewise.
11338         * tbl/table.h (struct entry_format): Likewise.
11339         * pic/object.h (struct saved_state): Likewise.
11341         * include/stringclass.h: Add forward declarations of friend
11342         functions that are later declared as inline.  Don't include inline
11343         specifier in friend declaration.
11345         * libgroff/lib.h: Declare popen and pclose.
11346         * acgroff.m4 (GROFF_POPEN): New macro.
11347         * configure.in: Call it.
11349         * include/lib.h (PI): New constant. Undef first if necessary.
11350         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
11351         * grops/ps.cc (degrees, radians): Likewise.
11352         * libgroff/font.cc (font::get_skew): Likewise.
11354         * grops/ps.cc (is_ascii): New function.
11355         (ps_output::put_string): Use is_ascii.  Use csprint rather than
11356         isprint.
11357         (ps_printer::define_encoding): Use csspace.
11358         * libgroff/strtol.c (ISASCII): New macro.
11359         (strtol): Cast arguments to is*() and tolower() to unsigned char.
11360         Use ISASCII rather than isascii.
11361         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
11362         * libgroff/cset.cc: Likewise.
11363         * libdriver/input.cc: Include cset.h.
11364         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
11365         than isdigit().
11367         * refer/refer.cc (main): Use %ld rather than %d for longs.
11369         * libbib/index.cc (index_search_item_iterator::get_tag): Use
11370         S_ISREG macro.
11372         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
11374 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
11376         * troff/input.cc (hyphenation_code): Skip white space between
11377         char/code pairs.
11379 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
11381         * tbl/table.h (table::entry_list_tailp): New member.
11382         (table::table): Initialize it.
11383         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
11384         behaviour.
11386 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
11388         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
11389         with negative horizontal positions. Remove casts of glyph::hpos to
11390         int.
11391         (USHRT_MAX): Delete definition.
11392         (SHRT_MAX, SHRT_MIN): New definitions.
11393         (glyph::hpos): Change type to short.
11394         (tty_printer::end_page): Output multiple backspaces if necessary.
11395          Remove casts of glyph::hpos to int.
11396         
11397 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
11399         * tmac/tmac.s (@RT): New definition.
11401 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
11403         * refer/refer.cc (do_file): Make sure current_filename is set when
11404         filename is "-".
11406         * pic/common.cc (common_output::dot_line): Handle zero length
11407         lines.
11409 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
11411         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
11412         (par@init): Initialize \n[HY].
11414 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
11416         * troff/dictionary.cc (dictionary::remove): Continue when
11417         r < j < i.
11419 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
11421         * Makefile.com (.y.cc): Avoid ending up with two versions of
11422         $(YTABH).
11424 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
11426         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
11427         (\(,C): Likewise.  Also fix typo.
11429 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
11431         * lib.h: Delete extraneous semi-colon.
11433         * Add pso request: `so' from a pipe.
11434         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
11435         (file_iterator::close): New function.
11436         (file_iterator::~file_iterator, file_iterator::next_file): Use
11437         file_iterator::close.
11438         (file_iterator::backtrace): Say `process' rather than `file' when
11439         the stream is popened.
11440         (pipe_source): New function.
11441         (init_input_requests): Bind ".pso" to pipe_source.
11443 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
11445         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
11447         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
11448         digits in lower case.
11450 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
11452         * Version 1.08 released.
11454         * Makefile.in (dist): Insert || true after ln -s commands that
11455         might fail.
11457         * mm: Update to mm 1.16.
11459         * acgroff.m4 (GROFF_CSH_HACK): New macro.
11460         * configure.in: Call GROFF_CSH_HACK.  Substitute for
11461         SH_SCRIPT_SED_CMD.
11462         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
11463         MDEFINES.
11464         * nroff/Makefile.sub (nroff): New target.
11465         (install_data): Install nroff.
11466         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
11467         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
11469 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
11471         * eqn/Makefile.sub (neqn): Add chmod +x.
11473         * grog/Makefile.sub (grog): Remove spurious semi-colon.
11475 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
11477         * troff/input.cc (string_iterator::string_iterator()): Initialize
11478         lineno and count.
11480 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
11482         * troff/div.cc (macro_diversion::space,
11483         top_level_diversion::space): Don't set high_water_mark.
11484         (macro_diversion::output, top_level_diversion::output): Don't
11485         include post line space in high water mark.
11487 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
11489         * eqn/eqn.y: Don't define YYDEBUG.
11490         * pic/pic.y: Likewise.
11492 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
11494         * tmac/tmac.e ([3): Add space after comma following editors.
11495         Change double spaces to single spaces.
11496         ([4): Change double spaces to single spaces.
11498         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
11499         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
11500         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
11501         after %!PS-Adobe- (for Newsprint).
11503         * troff/div.cc (top_level_diversion::begin_page): When
11504         before_first_page is 1, set page_number to 1.
11506 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
11508         * eqn/box.cc (box::top_level): Protect equation with \&.
11510 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
11512         * groff/groff.cc (possible_command::set_name): Delete old name.
11514         * groff/groff.cc (possible_command::~possible_command): Use
11515         a_delete.
11517         * troff/node.cc (troff_output_file::begun_page): New member.
11518         (troff_output_file::troff_output_file): Initialize it.
11519         (troff_output_file::really_begin_page): Only output V command if a
11520         page has been begun.
11522         * pic/pic.y (placeless_element): Delete argument to PRINT after
11523         use.
11525 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
11527         * Make wrapman work.
11528         * troff/div.h (class top_level_diversion): Replace
11529         first_page_begun by before_first_page (with opposite sense).
11530         * Change first_page_begun to before_first_page inverting sense.
11531         * troff/div.cc (class nl_reg): New class.
11532         (init_div_requests): Use class nl_reg for \n(nl.
11533         (top_level_diversion::begin_page): Don't call
11534         output_file::begin_page if before_first_page is 2;
11535         reset before_first_page afterwards.  If have_next_page_number is
11536         false, then always increment page_number.
11537         * tmac/tmac.an: Set traps within TH rather than at the top-level.
11538         Restore compatibility mode after loading, and then disable
11539         compatibility mode in TH.
11541 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
11543         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
11544         past last line.
11545         * troff/node.h (output_file::trailer): Declare.
11546         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
11547         * troff/node.cc (output_file::trailer): New function.
11548         (troff_output_file::~troff_output_file): Move most code into...
11549         (troff_output_file::trailer): New function.
11550         (class troff_output_file): Delete page_length member. Declare
11551         trailer().
11552         (troff_output_file::really_begin_page): Use current page length
11553         for final V command.
11555         * tbl/main.cc (struct options): New decimal_point_char member.
11556         (options::options): Initialize this.
11557         (process_options): Implement decimalpoint option.
11558         (process_data): Pass decimal_point_char option to table::table.
11559         * tbl/table.h (class table): New decimal_point_char member.
11560         (table::table): Add additional argument.
11561         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
11562         second argument specifying decimal point character.  Use this
11563         instead of '.'.
11564         (table::table): Initialize decimal_point_char.
11565         (table::add_entry): Change call to find_dot.
11567         * troff/input.cc (get_copy, token::next): Implement \V.
11568         (interpolate_environment_variable): New function.
11570 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
11572         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
11573         * pic/pic.y: Likewise.
11575         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
11576         Add casts to int.
11577         * refer/ref.cc (reference::insert_field, reference::delete_field):
11578         Likewise.
11579         * troff/number.cc (parse_term): Likewise.
11581         * acgroff.m4 (GROFF_PROG_YACC): New macro.
11582         * configure.in: Use GROFF_PROG_YACC.
11584         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
11585         and g++.
11586         * Makefile.in (OPTIMIZE): New define.
11587         (DEBUG): Empty by default.
11588         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
11590         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
11591         (GROFF_ARRAY_DELETE): Likewise.
11592         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
11594         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
11596         * devps/psstrip.sed: Use different delimiter on last line (so that
11597         it works with BSD 4.4 sed.)
11599 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
11601         * devps/psstrip.sed: Delete comments.
11603         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
11604         optind, opterr, optarg.
11605         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
11606         opterr, optarg.
11608 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
11610         * Makefile.in (check): Dummy target.
11612 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
11614         * Version 1.07 released.
11616         * Integrate mm 1.11.
11618         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
11619         where start_col was meant.
11621 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
11623         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
11625 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
11627         * troff/input.cc (token::next): Make \z\o'...' and similar things
11628         work.
11630         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
11631         constants.
11632         (environment): Add margin_character_flags member.
11633         * env.cc (environment::environment(symbol),
11634         environment::environment(const environment *): Initialize
11635         margin_character_flags.
11636         (margin_character): Rewrite.
11637         (environment::output_line): Add a margin character if
11638         margin_character_flags is non-zero.  Turn off the
11639         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
11640         zero, use margin_character_node without copying and then set
11641         margin_character_node to 0.
11643         * devps/DESC.in: Change minimum size to 1000.
11645 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
11647         * troff/symbol.h (symbol::hash): Change return type to unsigned
11648         long.
11649         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
11650         Add casts to int.
11652         * test-groff: Use -r rather than -x.
11654         * grops/psfig.diff: Include in distribution again.
11656 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
11658         * Makefile.in (dist): Use gzip.
11660 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
11662         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
11663         unistd.h as well as in stdlib.h.
11664         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
11665         defined; otherwise include <sys/types.h> and <unistd.h> if
11666         UNISTD_H_DECLARES_GETOPT is defined.
11668         * configure.in: use builtin(include, ... rather than include(...
11669         * configure: Regenerate with autoconf 1.3.
11671         * libdriver/print.cc (printer::adjust_arc_center): Use new
11672         algorithm suggested by Andy Fyfe.
11674         * libdriver/printer.cc (printer::adjust_arc_center): New function.
11675         * include/printer.h: Declare this.
11676         * grops/ps.cc (ps_printer::draw): Use it.
11677         * grodvi/dvi.cc (dvi_printer::draw): Use it.
11679 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
11681         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
11683 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
11685         * eqn/main.cc (main): Handle "eqn -".
11687 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
11689         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
11691         * mm: Integrate version 1.08.
11693         * pic/troff.cc (troff_output::finish_picture): Set
11694         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
11695         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
11696         if it's not defined. Check whether the register is non-zero rather
11697         than whether it's not defined.
11698         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
11700         * indxbib/indxbib.cc: Move all signal handling into...
11701         * indxbib/signal.c: New file.
11702         * configure.in: Call AC_RETSIGTYPE.
11704         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
11705         * configure.in: Call GROFF_STRUCT_EXCEPTION.
11706         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
11708         * troff/input.cc (token::token, token::operator=): Work round SGI
11709         C++ bug.
11710         * pic/object.cc (position::position): Likewise.
11712 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
11714         * pic/pic.h: Move declaration of hypot().
11716 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
11718         * pic/pic.h: Declare hypot().
11720         * pic/pic.h: Define M_PI if necessary.
11722 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
11724         * tmac/tmac.e (re): Add alternative version that doesn't use groff
11725         `.ta T' feature.
11727         * devps/prologue.ps (RE): Handle the possibility that the old font
11728         doesn't have a FontName entry.
11730 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
11732         * tmac/tmac.e (fam): Redefine to set family in environment 2.
11733         (@C): Use @fam not fam.
11735 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
11737         * lookbib/lookbib.cc (main): Change type of start to const char *.
11738         * lkbib/lkbib.cc (main): Likewise.
11740         * eqn/lex.cc (definition::definition): Don't use member
11741         initializer syntax for members of anonymous unions.
11743         * troff/input.cc (input_stack::backtrace): Change type of to const
11744         char *.
11746 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
11748         * include/stringclass.h (class string): Declare inline friend
11749         functions as inline in class declaration.
11750         * troff/hvunits.h (class hunits, class vunits): Likewise.
11751         * include/refid.h (class reference_id): Likewise
11752         * troff/troff.h (points_to_units(units), scale(units, double)):
11753         Delete declarations.
11754         * libdriver/input.cc (get_char): Delete declaration.
11755         * include/lib.h: Change 2nd argument of getopt from const char **
11756         to char **.
11757         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
11758         char **' before assigning to a `const char **'.
11759         * tbl/table.cc: Delete extra declarations of prints().
11761 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
11763         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
11764         char **' before assigning to a `const char **'.
11766         * libgroff/errarg.cc (errarg::errarg): Don't use member
11767         initializer syntax for members of anonymous unions.
11769 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
11771         * mm: Integrate version 1.07.
11773 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
11775         * troff/input.c (translate2): Rename to
11776         (translate_no_transparent).
11777         (init_input_requests): Rename tr2 to trnt.
11779 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
11781         * troff/charinfo.h (class charinfo): Add transparent_translate field.
11782         (charinfo::set_translation, charinfo::set_special_translation):
11783         Add second argument that specifies value for
11784         transparent_translate.
11785         (charinfo::get_translation, charinfo::get_special_translation):
11786         Add optional second argument that specifies whether translation is
11787         being used for transparent throughput.
11788         * troff/input.cc (charinfo::set_translation,
11789         charinfo::set_special_translation): Handle second argument.
11790         (charinfo::charinfo): Initialize transparent_translate.
11791         (translate): Split main part off into
11792         (do_translate): New function.  Pass argument saying whether
11793         translation applies to transparent throughput.
11794         (translate2): New request.
11795         (init_input_requests): Bind translate2 to `tr2'.
11797 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
11799         * tbl/table.h (class table): Add `nokeep' flag.
11800         * tbl/main.cc (process_options): Handle `nokeep' option.
11801         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
11802         table::do_bottom): Don't output keep/release macro definitions or
11803         calls when `nokeep' option has been specified.
11805 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
11807         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
11809 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
11811         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
11812         block_entry::divert, alphabetic_block_entry::divert): Add extra
11813         argument giving column separation.
11814         (table::compute_widths): Pass column separation to
11815         table_entry::divert().
11816         (block_entry::do_divert): If an entry spans multiple columns and a
11817         minimumum width has been specified for each column, then set the
11818         line length to the sum of the widths (plus possibly the column
11819         separations).
11821         * troff/input.cc (set_escape_char): Don't set the escape_char
11822         until after calling has_arg().
11824 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
11826         * tbl/table.cc (table::do_top): Add missing \s0 for double box
11827         case.
11829         * tbl/table.cc (table::print_double_hline): Avoid extra new line
11830         in case where r > nrows - 1.
11832         * tbl/table.cc (BODY_HEIGHT): Deleted.
11833         (LINE_SEP): New definition.
11834         (table::print_single_hline, table::print_double_hline,
11835         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
11836         table::do_row, table::do_top): Use LINE_SEP space before a line
11837         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
11839         * tbl/table.cc (text_entry::print_contents): New function.
11840         (text_string_name, right_text_string_name): Deleted.
11841         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
11842         (simple_text_entry::do_width, numeric_text_entry::do_width,
11843         alphabetic_text_entry::do_width): Don't store the contents of the
11844         entry in a string.
11845         (left_text_entry::simple_print, right_text_entry::simple_print,
11846         center_text_entry::simple_print,
11847         alphabetic_text_entry::simple_print,
11848         numeric_text_entry::simple_print): Print the entry directly
11849         instead of using the stored string.
11851 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
11853         * devps/Makefile: Strip PostScript files.
11854         * devps/prologue: Rename to...
11855         * devps/prologue.ps.
11856         * devps/psstrip.sed: New file.
11857         * devps/download: Use .pfa rather than .ps for installed versions
11858         of fonts.
11860 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
11862         * troff/env.cc (input_trap): Give a warning if the argument is out
11863         of range.
11865         * troff/env.cc (adjust): Treat negative argument as missing. Round
11866         argument > 5 down to 5.
11868         * troff/env.cc (center, right_justify): Make negative argument zero.
11870         * troff/div.cc (page_offset, vertical_position_traps): Treat
11871         invalid argument as missing.
11872         * troff/env.cc (line_spacing, line_length, title_length, indent,
11873         underline, hyphen_line_max_request, control_char,
11874         no_break_control_char, widow_control_request, adjust, input_trap,
11875         point_size): Likewise.
11876         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
11877         constant_space): Likewise.
11878         * troff/input.cc (compatible, shift, warn_request,
11879         set_escape_char): Likewise.
11881         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
11882         * tbl/table.cc (table::table): Likewise.
11884         * Makefile.dev (install_dev): depends on $(DEVFILES).
11886 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
11888         * devX75, devX75-12, devX100, devX100-12: New directories.
11889         * Makefile.in: Add these to DEVDIRS.
11891         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
11892         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
11893         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
11894         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
11895         targets.
11896         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
11897         (uninstall): New target.
11898         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
11899         uninstall_prog, uninstall_dev): New targets.
11901         * troff/div.cc (return_request): Treat an invalid argument as
11902         missing.
11904 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
11906         * tmac/tmac.e ((f): Set up the environment even when there's a
11907         current diversion.  Transperently throughput a call to @N.
11908         (@N): New macro.
11910 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
11912         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
11913         up to vertical resolution.
11915         * tbl/table.cc (table::do_row): Change row number after printing
11916         stuff list.
11918         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
11920 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
11922         * Rename CHANGES to NEWS.
11924 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
11926         * libgroff/new.cc (operator new): Avoid calling malloc(0).
11928 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
11930         * man.ultrix: Removed.
11932 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
11934         * Makefile.comm (extraclean): Delete files whose names begin with
11935         `='.
11937         * pic/troff.cc (troff_output::text): Fix typo in implementation of
11938         aligned text.
11940 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
11942         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
11943         * troff/div.cc (page_length, need_space, space_request): Treat
11944         invalid optional argument as missing.
11945         * troff/env.cc (number_lines): If the first argument is present
11946         but not a number, turn on line numbering, don't change the next
11947         line number and parse the remaining arguments.
11949         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
11951 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
11953         * eqn/box.h: Change declaration accordingly.
11954         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
11955         the specified size was bad but don't give an error.  Check for
11956         overflow.
11957         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
11958         * eqn/lex (do_size): Likewise.
11960 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
11962         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
11963         compatible headers.
11965 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
11967         * tbl/table.cc (table::init_output): Improve error message when
11968         table won't fit on one page.
11970 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
11972         * pic/troff.cc (troff_output::start_picture): Generate line
11973         containing a horizontal motion equal to the width of the picture.
11975         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
11976         using GROFF_COMMAND_PREFIX environment variable.
11978 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
11980         * mdate.sh: Use $NF rather than $(NF).
11982 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
11984         * pic/main.cc (main):  Use %1 not %c in argument to warning.
11986         * eqn/main.cc (main): Output code to check that geqn was given the
11987         correct -T option.
11989 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
11991         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
11992         `ln -s ../Makefile .; make; rm -f Makefile'.
11994         * troff/hyphen: Rename to...
11995         * troff/hyphen.us:
11996         * troff/input.cc (main): Delete -H option. Don't call
11997         read_hyphen_file().
11998         * troff/env.cc: Include searchpath.h and macropath.h.
11999         (exception_dictionary): Deleted.
12000         (ht): Deleted.
12001         (read_hyphen_file): Deleted.
12002         (hyphenation_language): New struct.
12003         (class trie, class hyphen_trie): Move declarations up.
12004         (trie_node::~trie_node): Deleted.
12005         (trie::delete_trie_node): New function.
12006         (trie::do_delete): New pure virtual function.
12007         (hyphen_trie::do_delete): New function.
12008         (trie::~trie): New function.
12009         (hyphen_trie::~hyphen_trie): New function.
12010         (trie::clear): No need to chcek that tp is not 0.
12011         (current_language, language_dictionary): New variables.
12012         (hyphen_word): Give an error if no current language.  Use
12013         exceptions dictionary in current language.
12014         (hyphen_trie::read_patterns_file): Find file using macro_path.
12015         Allow comments (starting with %) in patterns file.  Don't make it
12016         a fatal error if the file can't be found.
12017         (hyphenate): Return if no current language.  Get the exceptions
12018         dictionary and the hyphenation patterns from the current language.
12019         (set_hyphenation_language): New variable.
12020         (hyphenation_patterns_file): New function.
12021         (hyphenation_language_reg): New class.
12022         (hyphenation_language_reg::get_string): New function.
12023         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
12024         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
12025         register.
12026         * groff/groff.cc (main, help, synopsis): Delete -H option.
12027         * include/Makefile.sub: Don't define HYPHENFILE.
12028         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
12029         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
12030         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
12031         hyphenation patterns.
12033 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
12035         * eqn/neqn.sh: New file.
12036         * eqn/Makefile.sub: Handle neqn.sh.
12038         * eqn/eqn.h: Declare `nroff' variable.
12039         * eqn/box.cc (param_table): Add `nroff' param.
12040         (nroff): Define it.
12041         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
12042         variable.
12043         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
12045         * troff/troff.h (WARN_FONT): New warning.
12046         (WARN_TOTAL): Change accordingly.
12047         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
12048         (warning_table): Add WARN_FONT.
12049         * troff/node.cc (mount_font_no_translate): Pass argument to
12050         font::load_font.  If this is non-zero, give a warning.
12051         Don't give an error message when accessing a font that has already
12052         been found to be invalid.
12053         * include/font.h (font::load, font::load_font): Add additional
12054         optional argument which suppresses error message if the font is
12055         not found.
12056         * libgroff/font.cc (font::load_font): Handle additional argument.
12057         (font::load): Add additional argument. If this is non-null, set it
12058         to 1 and don't give error message.
12060         * include/printer.h (printer::end_page): Add argument giving
12061         length of page.
12062         * libdriver/input.cc (do_file): Pass this.
12063         * grops/ps.cc (ps_printer::end_page): Add argument.
12064         * grodvi/dvi.cc (dvi_printer::end_page,
12065         draw_dvi_printer::end_page): Add argument.
12066         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
12067         columns_per_page members. New member nlines.
12068         (DEFAULT_LINES_PER_PAGE): Deleted.
12069         (tty_printer::tty_printer): Don't compute lines_per_page from
12070         font::paperlength. Don't compute columns_per_page from
12071         font::paperwidth.
12072         (tty_printer::add_char): Don't check horizontal position against
12073         columns_per_page. Grow glyphs vector if neccessary.
12074         (tty_printer::end_page): Add argument giving page_length in units.
12075         Discard lines past end of page.
12077 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
12079         * tmac/tmac.tty-char: Fix definition of \(/l.
12081         * tmac/tmac.X: Define \(en.
12083 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
12085         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
12086         lpq, then use lp rather than lpr.
12088         * tmac/tmac.s (par@reset): Don't call `ad'.
12089         (par*env-init): Call `ad'.
12091 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
12093         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
12094         date.
12096         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
12097         * indxbib/indxbib.cc: Likewise.
12099 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
12101         * libgroff/putenv.c: New file.
12102         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
12103         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
12104         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
12105         stdlib.h with AC_HAVE_HEADERS.
12107 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
12109         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
12110         does not exist.
12112 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
12114         * eqn/box.cc (gsize): Make it an int.
12115         (set_gsize): Parse argument handling increment or decrement.
12116         (box::top_level): Convert gsize to a string.
12118         * troff/input.cc (exit_troff): Make buf unsigned char [].
12119         Call to make_temp_iterator casts buf to char*.
12121         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
12123         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
12124         * Makefile.cpg (depend.temp): Likewise.
12126         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
12128         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
12130 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
12132         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
12134 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
12136         * Version 1.06 released.
12138         * Integrate mm 1.04.
12140 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
12142         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
12144 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
12146         * afmtodit/afmtodit.pl: Add -n option that disables generation of
12147         ligatures command.
12148         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
12149         afmtodit. Regenerate.
12151         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
12152         @f back past the current position.
12154         * tmac/tmac.e: Change calls to @R so that comments are not part of
12155         arguments.
12157 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
12159         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
12161         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
12162         check that we can link a call to a function declared in <stdio.h>.
12163         (GROFF_UNISTD_H): New macro.
12164         * configure.in: Call it.
12165         * Makefile.in: Document it.
12166         * include/posix.h: New file.
12167         * troff/troff.h: Don't include <osfcn.h>
12168         * troff/input.cc: Include posix.h.
12169         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
12170         osfcn.h.
12171         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
12172         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
12173         <fcntl.h>.
12174         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
12175         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
12176         * libbib/search.cc (O_RDONLY): Delete definition.
12177         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
12178         Don't include <osfcn.h>.
12180         * acgroff.m4 (GROFF_TIME_T): New macro.
12181         * configure.in: Call it.
12182         * Makefile.in: Document it.
12184         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
12185         * configure.in: Call it.
12186         * Makefile.in: Document -DTRADITIONAL_CPP.
12187         * include/ptable.h: Don't include generic.h.
12188         (name2): Define it.
12190         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
12191         Afterwards remove [T1 and [T2.
12192         (ref*spec!0, ref*spec!2): Use T1 rather than T.
12193         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
12194         (ref*add-T2): Renamed from ref*add-T.
12195         (ref*add-T1): New macro.
12197 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
12199         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
12201         * libbib/index.cc: Include <fcntl.h>.
12202         (O_RDONLY): Define if necessary.
12203         (make_index_search_item, index_search_item_iterator::get_tag,
12204         index_search_item::check_files): Use O_RDONLY.
12205         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
12206         (O_RDONLY): Define if necessary.
12207         (search_list::add_file): Use O_RDONLY.
12208         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
12209         <sys/stat.h>.
12210         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
12211         (main): Use these.
12213         * libbib/index.cc (S_ISREG): Define it if necessary.
12214         (index_search_item::load): Use S_ISREG.
12216         * include/driver.h: Include <errno.h>.
12218 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
12220         * eqn/box.cc (body_height): Increase default value to 85.
12221         (body_depth): Increase default value to 35.
12223 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
12225         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
12226         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
12227         protected from expansion with \E.
12229         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
12231         * Makefile (Makefile): New target.
12233         * Makefile.sub (configure, distfiles): New targets.
12235         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
12236         construct.
12238 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
12240         * eqn/box.cc (param_table): Add body_height and body_depth.
12242         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
12244 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
12246         * psbb/Makefile.sub: Don't link with libgroff.a.
12248         * acgroff.m4 (GROFF_PUTENV): New macro.
12249         * configure.in: Call GROFF_PUTENV.
12250         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
12251         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
12252         is defined.
12254         * troff/env.cc (distribute_space): Rename force_forward argument
12255         to force_reverse.  Reverse the list if force_reverse is true.
12257 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
12259         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
12261         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
12262         height or depth to be negative.  Guard against SUP_RAISE quantity
12263         being negative.
12265 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
12267         * devps/generate/textmap: Add `an' (arrowhorizex).
12268         * tmac/tmac.ps: \(an overlaps horizontally.
12269         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
12271         * devps/symbolchars: Add arrowverttp, arrowvertbt.
12272         * devps/textmap: Add arrowvertex.
12273         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
12274         updownarrow delimiters.
12275         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
12277         * tbl/table.cc (simple_entry::position_vertically,
12278         block_entry::position_vertically):  For a centered entry, perform
12279         the motion in two stages.
12281         * refer/refer.cc (split_punct): Don't call lookup_token if there
12282         is no token.
12284 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
12286         * troff/input.cc (token::next): Delete token_node after copying
12287         token.
12289         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
12290         cur_point_size.
12292         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
12294         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
12296 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
12298         * grops/ps.cc (usage): -b option takes an argument.
12300         * devps/prologue (PLG): New procedure.
12301         * grops/ps.cc (main, usage): New -g option.
12302         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
12303         length using PLG.
12305 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
12307         * include/cset.h: Include <limits.h> if we have it.
12309         * libgroff/illegal.cc: New file.
12310         * include/lib.h (illegal_input_char): Use table.
12311         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
12312         * pic/lex.cc (ARG1): Renumber to 14.
12313         * eqn/lex.cc (ARG1): Likewise.
12315         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
12316         (eg 1.05.90) correctly.
12318 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
12320         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
12321         Rename $r and $R registers to $v and $V.
12322         ($r, $R): Initialize to 0.
12323         (@v, @V): New macros.
12324         (sz): Call @v.
12325         (@M): Call @V.
12327         * troff/input.cc (main, usage): Add -R option that says not to
12328         load troffrc.
12329         * eqn/main.cc (main, usage): Rename -n to -R.
12331 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
12333         * devps/DESC.in: Leave font positions 5-9 blank.
12334         * devdvi/DESC.in: Likewise.
12336         * grog/grog.pl: Handle `.PS <file' correctly.
12338         * troff/input.cc (input_stack::push): Improve error message when
12339         input stack limit exceeded.
12341 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
12343         * refer/refer.cc (main): Fix typo in handling of `a' option.
12345         * refer/refer.cc (do_bib): In state START after a newline remain
12346         in state START.
12348         * groff/groff.sh: Deleted.
12349         * groff/Makefile.sub: Delete handling of groff.sh.
12351         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
12352         to determine whether to use \X'ps:...'.
12353         * tmac/troffrc: Set 0p register to 0.
12354         * tmac/tmac.ps: Set 0p register to 1.
12356         * groff/groff.cc: Support -X option. Give warning for -TXps and
12357         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
12358         * tmac/troffrc: Support -r.X=1.
12360         * pic/troff.cc (troff_output::dot): Don't test
12361         zero_length_line_flag.
12363 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
12365         * include/lib.h: Declare getopt() and friends unless
12366         STDLIB_H_DECLARES_GETOPT is defined.
12368         * doc/chars.tr: Delete.
12369         * man/groff_char.man: New file.
12371 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
12373         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
12374         user has changed register format.
12376 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
12378         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
12379         `postpro' command in DESC file.  Get spooler command from `print'
12380         command in DESC file.  Execute spooler command with /bin/sh.
12382         * groff/groff.cc: Split Unix-specific parts into...
12383         * groff/pipeline.c: New file.
12385         * LICENSE: Delete.
12386         * COPYING: New file.
12387         * all files: Update copyright notices.
12389         * Rearrange files.  Redo Makefiles.  Use autoconf.
12391 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
12393         * troff/input.c (charinfo_to_node_list): Interpret character
12394         definition with escape_char of `\'.
12396 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
12398         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
12399         Define INT_DIGITS as big enough for 64-bit integer.
12400         * lib/strtol.c: Don't include lib.h.
12401         * lib/lib.h: Delete ifdef __cplusplus stuff.
12403 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
12405         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
12406         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
12407         get DESC from current directory.
12409 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
12411         * tbl/main.c (main): Always reset the line number when reading
12412         from stdin.
12414         * tbl/table.c (table::print_single_hline, table::print_double_hline,
12415         table::define_bottom_macro, table::do_row, table::do_top): Round
12416         vertical spacing up to vertical resolution.
12418 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
12420         * ps/ps.h (enum resource_type): Avoid comma at end of
12421         enumerator-list.
12422         * dvi/dvi.c (class dvi_printer): Likewise.
12423         * dvi/tfmtodit.c (gf::load): Likewise.
12424         * refer/label.y (struct expression): Likewise.
12425         * refer/refer.c (class label_processing_state): Likewise.
12426         * refer/indxbib.c (do_file): Likewise.
12427         * troff/troff.c (enum warning_type): Likewise.
12428         * tbl/main.c (process_data): Likewise.
12429         * troff/charinfo.h (class charinfo):
12431 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
12433         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
12435 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
12437         * groff.c: Move to new groff subdirectory.
12438         * groff/Makefile: New file.
12439         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
12441         * man/mdate.sh: Use ls -L if supported.
12443         * Consolidate all header files produced by gendef into lib/defs.h.
12444         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
12445         Don't include path.h.
12446         * lib/Makefile (path.h): Don't generate.
12447         * troff/input.c: Include defs.h. Don't include config.h.
12448         * troff/Makefile (config.h): Don't generate.
12449         * refer/index.h: Don't include suffix.h.
12450         * refer/index.c: Include defs.h.
12451         * refer/indxbib.c: Include defs.h.
12452         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
12453         defs.h.
12454         * refer/Makefile (suffix.h, path.h): Don't generate.
12455         * groff.c: Don't include config.h. Include defs.h.
12456         * Makefile (config.h): Don't generate.
12457         (lib/defs.h): Generate.
12458         (topclean): Remove lib/defs.h.
12460 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
12462         * lib/malloc.c, lib/getpagesize.h: Deleted.
12463         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
12464         related stuff.
12465         * lib/Makefile: Delete malloc-related stuff.
12466         * lib/new.c: Workaround COOKIE_BUG if necessary.
12468         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
12469         needed header files directly.
12470         * refer/refer.h: Omit definition of DEFAULT_INDEX.
12471         * Makefile: Include definition of DEFAULT_INDEX in path.h.
12473 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
12475         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
12476         argument.
12477         * lib/font (font::load_desc, font::load): Don't split argument of
12478         unknown command.
12479         (font::handle_unknown_font_command): Change type.
12480         * ps/ps.c (ps_font::handle_unknown_font_command,
12481         handle_unknown_desc_command): Change type.
12482         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
12484 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
12486         * lib/font.h (font::handle_unknown_font_command): Add file and
12487         line arguments.
12488         * lib/font.c (font::handle_unknown_font_command):
12489         * ps/ps.c (ps_font::handle_unknown_font_command):
12490         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
12491         lineno arguments.  Use _with_file_and_line functions for error
12492         reporting.
12494         * lib/fontfile.c (font::unknown_desc_command_handler): New static
12495         data member.
12496         * lib/font.c (font::set_unknown_desc_command_handler): New
12497         function.
12498         (font::load_desc): For unknown commands, call
12499         unknown_desc_command_handler if not null.
12500         * lib/font.h (class font): Declare them.
12501         (FONT_COMMAND_HANDLER): New typedef.
12502         * ps/ps.c (handle_unknown_desc_command): New function.
12503         (main): Set bflag if we had a -b option. Call
12504         font::set_unknown_desc_command_handler.
12505         (broken.h): Don't include.
12506         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
12507         submake 
12508         * ps/devps/Makefile: Add `broken' command to DESC file using
12509         BROKEN_SPOOLER_FLAGS.
12511         * macros/tmac.e ([, ]): Add as synonyms for { and }.
12513         * macros/tmac.e ($p): Only exdent if \$3 > 0.
12515         * macros/tmac.e (@R, @S): New macros.
12516         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
12517         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
12518         Declare $H, $[0-9], .. macros with @S.
12519         Declare |0, |1, |2, |3 strings with @S.
12521         * macros/tmac.e (@S): Rename to @U.
12523         * macros/tmac.e (@z): Define @b and bp as empty instead of
12524         deleting them,
12526         * macros/tmac.e (@m): Deleted.
12527         (@h): Don't call @m.
12528         (@z): Don't set @m trap.
12530         * macros/tmac.e ($h, $f): Define |z as empty string.
12532         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
12533         (@q): Likewise.
12535         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
12536         removing them.
12537         ()f): Likewise for * register.
12539         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
12540         argument is missing, don't change $R.  Call sr with three
12541         arguments when initializing.
12543 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
12545         * macros/tmac.e (sr): New macro.
12546         Initialize $r and $R using sr.
12548         * macros/tmac.e (,): Delete \*(#[.
12550         * troff/env.c (set_tabs): Read the tab type even if the position
12551         is bad.  Allow the position of the first tab stop to be negative.
12553 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
12555         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
12556         _POSIX_VERSION.
12557         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
12558         rather than -DPATHCONF_MISSING.
12559         * Makefile: Get rid of PATHCONF_MISSING.
12561         * refer/map.c: New file.
12562         * refer/index.c: Interface to mmap through map.c.  Rename map_size
12563         to map_len.
12564         * refer/Makefile: Handle map.c.
12565         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
12567 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
12569         * Makefile: RANLIB should be `true' if there is no ranlib.
12570         * lib/Makefile (libgroff.a): Simplify.
12571         * driver/Makefile (libdriver.a): Simplify.
12573         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
12574         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
12575         defined.
12577 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
12579         * troff/env.c (compare_ranges): Declare as extern "C".
12581         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
12583         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
12585 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
12587         * pic/troff.c (troff_output::text): Merge in grops_output::text,
12588         but conditionalize use of \X based on \*(.T.
12589         (grops_output::*): Deleted.
12590         * pic/output.h: Delete declaration of make_grops_output.
12591         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
12592         by default. -n sets it to 0.
12593         (usage): Corresponding changes.
12594         * groff.c (main): Don't pass -x or -p to pic.
12595         * groff.sh: Likewise.
12597         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
12598         to be non-zero.
12600         * ps/devps/afmtodit: Change calculation of asc_boundary and
12601         desc_boundary.  Make these bounds inclusive.
12602         * ps/devps: Regenerate font files.
12604 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
12606         * macros/tmac.latin1: New file.
12607         * macros/tmac.tty-char: Use tmac.latin1.
12608         (tmac.tty-tr): Deleted.
12609         * macros/Makefile: Install tmac.latin1.
12610         * macros/tmac.dvi: Use tmac.latin1.
12611         * macros/troffrc: Translate \[char160] onto no-break space here.
12612         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
12614 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
12616         * macros/tmac.Xps: Use `do' request.
12618         * macros/tmac.ps: Use `do' request.
12620         * macros/tmac.e (@C): Use `do' request.
12622         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
12623         * macros/Makefile: Install tmac.X*.
12625         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
12626         * tty/Makefile: Don't install tmac.tty*.
12627         * macros/Makefile: Install tmac.tty*.
12629         * dvi/tmac.dvi: Move to macros.
12630         * dvi/Makefile: Don't install tmac.dvi.
12631         * macros/Makefile: Install tmac.dvi.
12633         * ps/tmac.ps*: Move to macros.
12634         * ps/Makefile: Don't install tmac.ps*.
12635         * macros/Makefile: Install tmac.ps*.
12637         * eqn/box.c: Provide draw_lines parameter corresponding to -D
12638         option.
12639         * macros/eqnrc: Set draw_lines parameter based on device.
12640         * groff.c: Don't pass -D flag to eqn.
12641         * groff.sh: Likewise.
12642         * eqn/main.c: Warn about use of -D.
12644         * troff/input.c (process_startup_file): New function.
12645         (main): Call process_startup_file().
12646         * macros/troffrc: New file.
12647         * macros/Makefile: Install troffrc.
12648         * groff.c (main): Don't pass extra -m option to troff. For a 
12649         pseudo device pass the name of the pseudo device to troff using
12650         -d.
12651         * groff.sh: Likewise.
12652         * groff.c (possible_command::prepend_arg): Deleted.
12654         * troff/input.c (do_request): New function.
12655         (init_input_requests): Bind "do" to do_request.
12657         * eqn/main.c (main): Instead of loading eqnchar from device directory,
12658         load eqnrc from macro directory.
12659         * macros/eqnrc: New file.
12660         * macros/Makefile: Install eqnrc.
12661         * ps/devps/eqnchar: Deleted.
12662         * ps/devps/Makefile: Don't install eqnchar.
12663         * dvi/devdvi/eqnchar: Deleted.
12664         * dvi/devdvi/Makefile: Don't install eqnchar.
12665         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
12666         variable optM.
12668         * lib/device.[ch]: New files.
12669         * lib/font.h (font::set_device_name, font::get_device_name):
12670         Deleted.
12671         * lib/fontfile.c: Use device.h.
12672         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
12673         * troff/input.c: Delete definition of `device'.
12674         (main): Don't initialize device.
12675         * troff/troff.h: Include device.h rather than declaring device.
12676         * troff/Makefile: No need to handle DEVICE.
12677         * driver/input.c: Include device.h. Don't use
12678         font::{set,get}_device_name.
12679         * groff.c, Makefile: Rename device.h to config.h.
12680         * groff.c: Use library device variable.
12681         * eqn/main.c: Use library device variable.
12682         * eqn/Makefile: No need to handle DEVICE.
12684         * lib/searchpath.[ch]: New files.
12685         * lib/Makefile: Handle searchpath.[ch].
12686         * troff/input.c (open_file, init_dirs): Deleted.
12687         (macro_dirs): Deleted.
12688         (open_mac_file, macro_source): Use class search_path.
12689         (add_string, struct string_list): Move definition.
12690         (main): Change -M option to use macro_path. Delete call to
12691         init_dirs().
12692         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
12693         Rewrite to use class search_path.
12694         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
12695         * lib/Makefile: fontfile.c depends on searchpath.h.
12696         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
12697         MACROPATH.
12698         * lib/macropath.[ch]: New files.
12699         * troff/Makefile: No need to handle MACROPATH.
12701         * troff/input.c: Delete DUMP code.
12702         * lib/fontfile.c, lib/font.h: Delete
12703         font::forget_command_line_font_dirs.
12705         * troff/input.c (push_token): New function.
12706         (handle_first_page_transition): Use push_token().
12707         (process_input_stack): Change handling of a space at the beginning
12708         of the line.
12710 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
12712         * troff/input.c (font_dirs): Delete unused variable.
12714         * eqn/lex.c (do_set): Correct error messages.
12716 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
12718         * troff/input.c (do_define_string): Allow the string name to be
12719         followed immediately by a tab.
12720         (define_character): Likewise.
12722 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
12724         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
12725         be negative.
12727         * troff/input.c (input_iterator::is_file): New virtual function.
12728         (file_iterator::is_file): New function.
12729         (input_stack::end_file): New function.
12730         (input_stack::next_file): Handle the situation where there is no
12731         file on the input stack correctly.  Avoid making two passes over
12732         the input stack.
12733         (next_file): Make the filename optional; in this case call
12734         input_stack::end_file().
12736 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
12738         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
12739         produce a real _ charater when the current font is CW and _
12740         otherwise.
12742         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
12743         expression to work around gcc 2.2 bug.
12745 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
12747         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
12749         * troff/env.c (environment::add_padding): New function.
12750         (environment::add_char): Use add_padding().
12751         (environment::space): Likewise.
12752         (environment::wrap_up_field): Add some padding if there is none
12753         and there's no current tab.
12754         * troff/env.h: Declare environment::add_padding.
12756 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
12758         * pic/pic.y: undef fmod and rand before declaring them.
12760 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
12762         * troff/input.c (main): If the DESC file specifies a font name of
12763         0, then leave the corresponding font position empty.
12765         * nroff.sh: New file.
12766         * Makefile (install.nobin): Install nroff.sh.
12768         * tty/devlatin1/R.proto: Add ao as synonym for de.
12769         * tty/tmac.tty-char: Define ao as o.
12771         * tty/dev{ascii,latin1}/R.proto: Add aq.
12772         * tty/tmac.tty-char: Delete definition of aq.
12774 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
12776         * troff/input.c (init_charset_table): Don't translate 0240.
12777         * ps/tmac.ps: Translate char160 to space.
12778         * dvi/tmac.dvi: Likewise.
12779         * tty/tmac.tty: Likewise.
12781 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
12783         * dvi/tmac.dvi: Add support for all Latin-1 characters.
12785         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
12786         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
12787         \(oe, \(r?, \(r!.
12789         * tty/tmac.tty-char: Add \(ah.
12791         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
12792         No need to define \(FM and \(!/. Conditionalize all character
12793         definitions.
12795         * ps/devps/lgreekmap: Add +h, +f, +p.
12797         * ps/tmac.psnew: New file.
12798         * ps/Makefile: Install tmac.psnew.
12800         * troff/input.c (charinfo_to_node_list): Don't ever interpret
12801         character definitions in compatible mode.
12803         * troff/input.c (remove_character): New function.
12804         (init_input_requests): Bind remove_character to "rchar".
12806         * ps/tmac.psold: New file.
12807         * ps/Makefile: Install tmac.psold.
12808         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
12809         characters into tmac.psold.  Make these definitions unconditional.
12811         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
12813         * ps/tmac.ps: Don't define \('c and \('C.
12815         * ps/devps/textmap: Move Greek characters to...
12816         * ps/devps/symbolchars:
12818 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
12820         * ps/devps/text.enc: Add quotesingle.
12821         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
12822         * tty/tmac.tty-char: Likewise.
12823         * dvi/devdvi/texmi.map: Add +h, +f, +p.
12824         * dvi/devdvi/texi.map: Add Fn.
12825         * dvi/devdvi/msam.map: Add lz.
12826         * dvi/tmac.dvi: Handle Bq, bq, aq.
12828         * pic/lex.c (get_token): Recognize 'th.
12829         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
12831 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
12833         * ps/devps/textmap: Move di, mu, +- to...
12834         * ps/devps/symbolchars:
12836         * macros/tmac.s (@XS): Don't call par@reset or fi.
12837         (XA): Call LP. Turn off adjustment. Reduce line length.
12839         * macros/tmac.s: Initially alias XS to LP.
12840         (XS): Rename to @XS.
12841         (cov*ab-init): Alias XS to @XS.
12843 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
12845         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
12846         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
12847         (token::is_size, token::changes_env): Deleted.
12848         * troff/number.c (parse_term): No need to process \s explicitly.
12849         Call tok.next() only after scale indicator has been processed.
12850         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
12851         \f etc explicitly.
12852         (token::next): Handle \s, \f, \S, \H immediately rather than
12853         returning them as tokens.
12854         (token::operator==, token::description, token::add_to_node_list,
12855         token::process): Remove handling of deleted tokens.
12857         * troff/env.c (environment::add_char): When adding padding
12858         indicator character, call start_line() if necessary.
12860 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
12862         * ps/devps/afmtodit: Don't output 0 kerns.
12864         * ps/devps/afmtodit: Remove directory from name of encoding in
12865         font description file.
12867         * ps/devps/afmtodit: Improve error messages.
12869         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
12871         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
12872         * ps/devps/FontMakefile: Deleted.
12873         * ps/devps/afmname: New file.
12875         * ps/devps/symbol.sed: New file.
12876         * ps/devps/symbol.diff: Deleted.
12877         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
12878         Generate zapfdr.afm from zapfd.afm.
12880         * tty/tmac.tty (tty-char): Prefix definition with ".
12882         * macros/tmac.an (TP): Don't start a diversion if one has already
12883         been started.
12885         * tty/tmac.tty-char: Add Latin-1 characters.
12887         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
12889 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
12891         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
12892         Move declaration of struct horizontal_span.
12894         * tbl/table.c (table::table): Initialize span_list.
12895         (table::~table): Delete span_list.
12897         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
12899         * ps/devps/Makefile: Avoid dependency on GNU make.
12901         * ps/tmac.ps: Check that character does not already exist before
12902         defining it.
12904         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
12905         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
12906         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
12907         files.
12909         * tty/tmac.tty-char: New file.
12910         * tty/Makefile: Install tmac.tty-char.
12911         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
12912         tmac.tty-char.
12914         * tty/tmac.tty: Fix definition of \(34.
12916         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
12917         bracket-drawing characters onto |. Add *o.
12919         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
12920         only if current_field.
12922         * troff/dictionary.c (dictionary::lookup): Free old_table after
12923         rehashing. 
12925 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
12927         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
12928         whose glyphs are identical to glyphs of some Roman character.
12930         * tty/devlatin1/R.proto (bu): Deleted.
12931         * tty/devascii/R.proto (bu): Deleted.
12932         * tty/tmac.tty: Add definition of \(bu.
12934         * eqn/main.c (do_file): Pass FILE as argument.
12935         (main): Automatically load eqnchar.  New options -F and -n.
12936         Pass do_file an opened FILE.
12937         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
12938         No need to include font.h.
12939         * groff.sh: Likewise.  Don't need to use - for standard input.
12940         Prefix files with -- if first file starts with -.
12942         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
12944         * troff/env.c (environment::possibly_break_line): Don't set line
12945         to 0 across call to output_line().  Don't call output_line() until
12946         after discarding nodes after break.
12948 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
12950         * request.h (macro::empty): Declare it.
12951         * input.c (macro::empty): New method.
12952         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
12953         macro is empty.
12955 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
12957         * troff/env.c (environment::start_field): Decrement space_total
12958         when a space is frozen.
12960 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
12962         * macros/tmac.an (R): Delete macro.
12964         * troff/input.c (get_copy, token::next): Support \# (like \" but
12965         newline is ignored).
12967         * troff/input.c (token::next): Fix error message in 'Y' case.
12969 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
12971         * eqn/delim.c (define_extensible_string): Recognize any prefix of
12972         a delimiter name.
12974 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
12976         * c++test.c: Include <osfcn.h>.
12978         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
12979         <errno.h> doesn't.
12981 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
12983         * tbl/table.c (table::divide_span): Don't count column separation
12984         if expand was specified.
12986         * tbl/main.c (process_format): Don't ignore width specs in
12987         continued format.  Give warning for changing equal widths or
12988         column separation in continued format.
12989         (process_data): Set column separation, minimum width, equal
12990         columns at end of table.
12992 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
12994         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
12995         node::add_discretionary_hyphen): Use soft_hyphen_char.
12996         (set_soft_hyphen_char): New function.
12997         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
12999         * Makefile (c++tested): Give more helpful message if test fails.
13001 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
13003         * troff/input.c (init_charset_table): Translate 0240 to
13004         an unbreakable space.
13006         * troff/token.h (token::hyphen_indicator): New function.
13007         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
13008         translation.
13009         * troff/input.c (translate): Allow translation to \%.
13010         * troff/node.c (node::add_char): Handle
13011         TRANSLATE_HYPHEN_INDICATOR.     
13012         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
13014         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
13015         for \(hy.
13017         * tty/devlatin1/R.proto: \(hy and - should print as 055.
13019 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
13021         * groff.c (run_commands): If the last command gets a SIGPIPE send
13022         a SIGPIPE to all children than haven't yet terminated.  When
13023         command terminates, set pid field to -1.
13025 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
13027         * groff.c (main): Pass an appropriate -filename option to gxditview.
13029 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
13031         * Makefile.bd (install): Remove existing program before copying.
13033         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
13034         programs which have Unix counterparts to be installed with
13035         user-specified prefix.
13037         * troff/input.c (exit_troff): Don't check if exit_started.
13038         (exit_request): Don't call exit_troff if exit_started.
13040         * Makefile.bd (install.mm): Rename to install.dwbmm.
13042 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
13044         * driver/input.c (do_file): Add missing break for '#' case.
13046 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
13048         * troff/input.c (input_stack::clear):  Clear past any boundaries and
13049         then add the boundaries back.
13051         * troff/input.c (exit_troff): Return immediately if already
13052         exiting.
13054         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
13055         end macro.
13056         (pg*end-page): If the text has ended and there are no more
13057         footnotes or keeps, exit.
13059         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
13061         * troff/input.c (init_charset_table): Make \(rq transparent by
13062         default.
13064         * macros/tmac.an: Define lq and rq strings.
13066         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
13068 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
13070         * troff/env.c (environment::final_break): New function.
13071         (environment::newline): Set prev_line_interrupted to 2 if
13072         exit_started.
13073         * troff/env.h: Declare environment::final_break.
13074         * troff/input.c (exit_troff): Call environment::final_break()
13075         instead of environment::do_break().
13077         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
13078         doesn't already exist.
13079         * macros/man.local: New file.
13080         * macros/tmac.an: Load man.local.
13081         * macros/man.ultrix: New file.
13083 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
13085         * troff/input.c (exit_groff): Rename to...
13086         (exit_troff): New function.
13088         * troff/div.c (exit_started, done_end_macro,
13089         seen_last_page_ejector): New global variables.
13090         (began_page_in_end_macro): New static variable.
13091         (exit_flag): Deleted.
13092         (top_level_diversion::top_level_diversion): Initialize
13093         last_page_count.
13094         (top_level_diversion): More elaborate test for whether
13095         cleanup_and_exit() should be called.
13096         Set began_page_in_end_macro if the end macro isn't yet finished.
13097         * troff/div.h (top_level_diversion::last_page_count): New data
13098         member.
13099         (top_level_diversion::set_last_page): New function.
13100         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
13101         * troff/env.c (do_break): Zero prev_line_interrupted.
13102         * troff/input.c (exit_flag): Delete declaration.
13103         (LAST_PAGE_EJECTOR): New magic cookie.
13104         (token::next): Handle LAST_PAGE_EJECTOR.
13105         (exit_groff): Set exit_started and done_end_macro instead of
13106         exit_flag.  Call top_level_diversion::set_last_page.  Push a
13107         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
13108         another ejection after setting seen_last_page_ejector.
13110 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
13112         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
13114         * macros/tmac.e (TH): Make sure there's room for the initial
13115         header.
13117         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
13118         Set FVS in points rather than units.
13120 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
13122         * troff/div.c (top_level_diversion::add_trap): Don't consider the
13123         position of empty slots.
13125 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
13127         * ps/devps/S: Fix height and depth of parenrightex.
13128         * ps/devps/symbol.diff: Regenerate.
13130 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
13132         * tmac.e (u): Do underlining as in -mgs.
13134 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
13136         * tty/tty.c (tty_printer::end_page): If overstriking is
13137         suppressed, still turn overstruck horizontal and vertical lines
13138         into +.
13140         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
13141         2.1.
13143         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
13145 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
13147         * Version 1.05 released.
13149 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
13151         * tty/tty.c: Instead of keeping an array of glyphs and then
13152         sorting it, keep a ordered linked list of glyphs for each line.
13154         * driver/driver.h: Include stddef.h.
13156         * tty/tty.c (compare_glyph):
13157         * refer/refer.c (rcompare):
13158         * troff/env.c (compare_ranges): Arguments of qsort comparison
13159         function should be const void *.
13161         * troff/number.c (parse_term):
13162         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
13163         switch statement.
13165         * refer/label.y (consider_authors): Don't access variables
13166         constructed under a condition outside that condition: put braces
13167         round for statement containing declaration; redeclare use of same
13168         variable later.
13170         * pic/pic.y (text_expr): Delete production that allows
13171         parenthesised text_expr.
13172         (expr): Allow a conditional_expr to appear in parentheses.
13173         (conditional_expr): Rename to any_expr.
13175         * mm: Install new version 1.01 from jh.
13177         * lib/font.c (font::get_width): Cache scaled widths.
13178         (font::font): Initialize widths_cache.
13179         (font::~font): Destroy widths_cache.
13180         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
13182 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
13184         * c++test.c, c++test.ref: New files.
13185         * Makefile: Check that the C++ compiler works.
13187         * ps/tmac.pspic (PSPIC): Do a break.
13189         * ps/tmac.ps: Move definition of PSPIC into...
13190         * ps/tmac.pspic: New file.
13191         (PSPIC): Draw box around picture, but make it invisible to grops.
13192         * ps/tmac.ps: Load tmac.pspic.
13193         * ps/Makefile: Install tmac.pspic.
13195 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
13197         * lib/font.c (scale_round): If n is negative,
13198         subtract .5 before truncating floating point result.
13200         * lib/fontfile.c: Include <errno.h>.
13202 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
13204         * driver/input.c (get_char): Inline. Don't update current_lineno.
13205         Change callers to up date current_lineno if necessary.
13206         Use get_char() instead of getc(current_file).
13208 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
13210         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
13212 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
13214         * tty/tty.c (tmac.tty): Define \(rg as (R).
13216 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
13218         * lib/lib.h: New define a_delete.
13219         * Use a_delete instead of delete when deleting an array of objects
13220         without destructors.
13222         * lib/lib.h: Rename adelete to ad_delete.
13223         * Change uses of adelete.
13225 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
13227         * eqn/eqn.y: Include lib.h.
13229         * troff/node.c (grow_font_table): Delete old_font_table.
13231         * mm: Install new version from jh.
13233 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
13235         * tbl/table.h (format_type): Make global instead of local to class
13236         entry_format.  Prefix enumerators with FORMAT_.
13237         * tbl/table.c, tbl/main.c: Corresponding changes.
13238         * refer/token.h (token_type): Make global.  Prefix enumerators
13239         with TOKEN_.
13240         * refer/token.[ch]: Corresponding changes.
13241         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
13243         * troff/div.c (node::set_vertical_size): Don't name argument.
13245 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
13247         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
13248         * lib/lib.h: Define adelete accordingly.
13249         * pic/object.c (graphic_object::graphic_object):
13250         * tbl/main.c (format::~format):
13251         * tbl/table.c (table::~table):
13252         * refer/ref.c (reference::~reference, reference::merge,
13253         reference::insert_field, reference::delete_field): Use adelete.
13255         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
13256         * refer/token.h:
13257         * tbl/table.h: Corresponding changes.
13259         * common.c (common_output::dashed_arc, common_output::dotted_arc):
13260         Ensure total_angle is positive.
13262 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
13264         * refer/ref.c (reference::merge, reference::insert_field,
13265         reference::delete_field): Avoid delete[0].
13267         * refer/token.c (init_special_chars): Move calls to cmupper
13268         outside calls to init_two_char_letter to work around bug in gcc
13269         2.0.
13271 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
13273         * lib/new.c (operator new): Use __builtin_new for g++.
13275         * pic/object.c (graphic_object::~graphic_object):  Don't use
13276         delete [] on 0.
13278         * pic/object.c (output::compute_scale): Initialize max_width and
13279         max_height.
13281 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
13283         * troff/input.c (write_request): Call fflush.
13285         * troff/node.h (class composite_node): Move declaration to node.c
13286         * troff/input.c (charinfo_to_node): Rename to ...
13287         (charinfo_to_node_list): Return node list rather than composite
13288         node.
13289         * troff/node.c (make_composite_node): New function.
13290         (make_node, add_char): Call make_composite_node instead of
13291         charinfo_to_node.
13292         (class composite_node): Add a tfont * member.  Delete font_size
13293         member.
13294         (composite_node::composite_node, composite_node::copy,
13295         composite_node::size): Corresponding changes.
13296         (composite_node::tprint): Provide constant spacing, emboldening
13297         and track kerning as specified in tfont.
13298         (composite_node::width): Change width calculation accordingly.
13299         * troff/env.h (environment::composite): New member.
13300         (environment::is_composite, environment::set_composite): New
13301         functions.
13302         * troff/env.c (environment::environment): Initialize composite.
13303         * troff/input.c (charinfo_to_node): Call
13304         environment::set_composite.
13305         * troff/node.c (make_composite_node, make_glyph_node): Use the
13306         plain version of the tfont if the environment is composite.
13308         * troff/node.c (font_info::get_space_width): Additional argument
13309         giving space_size.  Handle constant space correctly. Scale by
13310         space_size unless constant spaced.
13311         (env_sentence_space_width): New function.
13312         * troff/node.h: Declare it.
13313         * troff/env.h (environment::get_space_size,
13314         environment::get_sentence_space_size,
13315         environment::get_narrow_space_width,
13316         environment::get_half_narrow_space_width): Make inline.
13317         (environment::get_space_width): Make inline.  Just call
13318         env_space_width.
13319         * troff/env.c: Delete definitions for funtions made inline.
13320         (environment::space_newline, environment::space): Use
13321         env_sentence_space_width(). Don't scale by space_size.
13322         * troff/node.h: Move declarations of env*space_width() functions
13323         into env.h.
13325 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
13327         * macros/tmac.s (PS): Don't try to set negative indent.
13329 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
13331         * pic/pic.y: Fix min function.
13333 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
13335         * man/mdate.sh: Clear LANGUAGE.
13337 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
13339         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
13340         * pic/lex.c: New COMMAND keyword.
13341         * pic/pic.y (print_args, print_arg): New rules.
13342         (placeless_element): Use print_args for PRINT.
13343         New COMMAND element.
13345 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
13347         * troff/input.c (terminal): Handle missing argument correctly.
13349         * pic/pic.y (text_expr): New rule.
13351         * pic/pic.y: Implement := operator.
13353 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
13355         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
13356         mdoc.
13358 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
13360         * ps/devps/dingbatsrmap: Include this in the distribution.
13362         * macros/tmac.doc: Replace with new version from 2nd Networking
13363         Release. Fix loading of doc-* files.
13364         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
13365         * macros/tmac.doc.old: New file.  Apply fixes that had been
13366         applied to old tmac.doc.
13367         * macros/tmac.andoc: Check that we're running under groff.
13368         * macros/Makefile: Rework.
13370 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
13372         * tbl/table.h (format_type): 
13373         * refer/token.h (token_type): If NESTED_TYPES is defined, use
13374         typedef to make these types visible at file scope.
13375         * Makefile: Add NESTED_TYPES configuration option.
13377         * troff/div.c (mark): At the top level use the value of
13378         nl_reg_contents rather than the current vertical position.
13380 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
13382         * tty/tty.c: Implement \D for horizontal or vertical lines.
13383         (tty_printer::set_char): Use vec_used+2 as serial number.
13384         Don't allow size of vector to exceed USHRT_MAX-2.
13385         Split off part into...
13386         (tty_printer::add_char): New function.
13387         (tty_printer::draw): New function.
13388         (compare_glyph): Handle equal serial numbers.
13389         (tty_printer::end_page): Handle overstruck characters from \D.
13390         (main, usage): Implement -d option.
13392 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
13394         * tbl/main.c (process_format):
13395         * eqn/text.c (split_text):
13396         * troff/input.c (token::next): Use inner block for declarations
13397         with initializers in switch statement.
13399 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
13401         * pic/common.c (common_output::dash_line): Cope with zero-length
13402         lines.
13404 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
13406         * Version 1.04 released.
13408 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
13410         * macros/tmac.an (TH): Define a macro an-init to define variables
13411         based on command line arguments.
13412         (an-header): Call it.
13414 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
13416         * Makefile (install.mm): Rename to install.dwbmm.
13418         * Makefile: Integrate mm.
13419         * mm: New directory.
13421 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
13423         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
13424         <sys/types.h>.
13426         * pic/troff.c (troff_output::simple_spline,
13427         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
13428         shadowing parameter.
13430         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
13432         * lib/ptable.h: Add explicit casts when converting from unsigned
13433         long to unsigned.
13435         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
13436         * dvi/devdvi/Makefile: Install SA, SB.
13438         * refer/indxbib.c: Add declaration of mktemp.
13440         * refer/lookbib.c: Add declaration of isatty.
13442 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
13444         * pic/lex.c (interpolate_macro_with_args):  While collecting
13445         arguments, keep track of whether we're in a string.
13447 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
13449         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
13450         down with \v, so as to avoid problems with top of page trap
13451         setting no space mode.
13453 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
13455         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
13457 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
13459         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
13460         Improve error message.
13462 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
13464         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
13465         printf("%03o");
13467 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
13469         * groff.c (possible_command::execp): Always use _exit() after a
13470         failed exec.
13472         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
13473         NO_SYS_WAIT_H   configuration options.
13474         * groff.c: Use these options.  Use POSIX-style macros to extract
13475         fields from the status returned by wait().
13477 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
13479         * tbl/table.c (table::compute_separation_factor): Allow the
13480         separation factor to drop to 0.
13482 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
13484         * refer/search.c: Include <errno.h>.
13486 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
13488         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
13490         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
13491         C++. 
13493         * pic/lex.c (input_stack::bol): Move definition out of class body.
13495         * pic/main.c: On MSDOS munge argv[0].
13497         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
13499         * lib/ptable.c (hash_string): Use unsigned long rather than
13500         unsigned.
13501         (next_ptable_size): Use unsigned rather than int.  Give an error
13502         message if we've hit the largest table size.
13503         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
13504         table size.
13506         * pic/object.h (object_spec): Make flags unsigned long.  Declare
13507         flags as const unisgned long rather than as enums.
13509         * pic/output.c: Deleted.
13511         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
13513         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
13514         Add additional argument.
13515         (line_entry::note_double_vrule_on_{left,right}): Set value of
13516         douvle_vrule_on_{right,left} flag according to argument.
13517         (simple_line_entry::simple_print,
13518         simple_line_entry::double_line_print): If adjacent to double vrule
13519         on a corner extend rather than shorten the rule by half the double
13520         vrule sep.
13522         * troff/number.c (parse_term): In checking for overflow, handle the
13523         case where the current horizontal position is negative.
13525 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
13527         * pic/object.c (draw_arrow): Check for object having zero length.
13529 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
13531         * eqn/main.c (do_file): Split off inline equation handling into...
13532         (inline_equation): New function.  Search for starting delimiter
13533         using...
13534         (delim_search): New function. Don't recognize a delimiter that
13535         occurs in the name of an escape sequence, number register, string
13536         etc.
13538 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
13540         * eqn/delim.c (delim_box::compute_metrics): Don't call
13541         define_extensible_string if left is 0.
13542         (delim_box::output):  Don't print the left delimiter if left is 0.
13543         (delim_box::debug_print): Check for left == 0 before calling printf.
13545 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
13547         * troff/Makefile (majorminor.c): Include only digits in
13548         minor_version.
13550 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
13552         * refer/dirnamemax.c: new file.
13553         * refer/genlimits.c: Deleted.
13554         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
13555         Don't check path length.
13556         * refer/Makefile: Add dir_name_max.o; delete genlimits.
13557         * Makefile: Add PATHCONF_MISSING option.
13559         * refer/indxbib.c (get_cwd): New function.
13560         (main): Use get_cwd().
13561         * lib/getcwd.c: New file.
13562         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
13563         GETCWD in SUBFLAGS.
13564         * lib/Makefile: Compile getcwd.o.
13566         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
13567         userdict.
13569         * refer/indxbib.c (main): Check success of mktemp.
13571         * lib/tmpfile.c: New file.
13572         * lib/Makefile: Add tmpfile.c.
13573         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
13574         * ps/ps.h: Delete declaration of mktemp().
13575         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
13576         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
13577         * driver/driver.h: No need now to include errno.h.
13579         * everywhere: Set errno to 0 before calling fopen().
13581         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
13582         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
13583         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
13585 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
13587         * troff/env.h (translate_space_to_dummy): Declare it.
13588         * troff/env.c (environment::space_newline, environment::space):
13589         If translate_space_to_dummy is set then make the width of spaces 0.
13590         * troff/input.c (translate): If the second character of a
13591         translation is a space, translate to unbreakable space.  If the
13592         first character is a space, set or clear translate_space_to_dummy
13593         according to whether the second character is \&.  Weird!
13595 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
13597         * groff.c (run_commands): Don't use non-zero exit code because a
13598         command gets SIGPIPE.
13600         * groff.c, groff.sh: Use -mXps with -TXps.
13602         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
13603         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
13604         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
13605         (ps_printer::special): New specials invis and endinvis.
13606         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
13607         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
13608         (ps_printer::end_page): Check that invis_count == 0.
13609         (ps_printer::invis_count): New member.
13610         (ps_printer::ps_printer): Initialize invis_count to 0.
13612         * troff/env.c (environment::hyphenate_line): Hyphenation
13613         indicator at beginning of word inhibits splitting after -, \(em
13614         etc.
13616         * pic/pic.y (element): Allow another element to follow } without
13617         any intervening separator.
13619 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
13621         * pic/lex.c (get_delimited): Allow tabs before delimiter.
13623 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
13625         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
13626         declaration of wait() in header files.
13627         * Makefile: Get rid of -DHAVE_UNION_WAIT.
13629         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
13631         * lib/lib.h: Declare return type of strerror as char *.
13633         * man/Makefile: Add g flag to sed substitutions.
13634         * Makefile (shgroff, bindist): Likewise.
13636 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
13638         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
13639         * ps/devps/prologue (PBEGIN): Define showpage after pushing
13640         userdict.
13642 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
13644         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
13645         userdict.
13647 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
13649         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
13650         group.
13652 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
13654         * troff/input.c (define_number_reg):  If currently undefined,
13655         don't define it if the argument is an invalid expression.
13657         * Makefile: Ignore return value of `if' commands without `else'
13658         parts.
13660         * Makefile: Split up CPPDEFINES into a series of separate
13661         configuration options.
13663         * troff/input.c (init_registers): Use time_t instead of long
13664         unless LONG_FOR_TIME_T is defined.  Use returned result rather
13665         than passing pointer.
13666         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
13668         * lib/Makefile (fontpath.h): Use gendef.
13670 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
13672         * troff/input.c (input_iterator::shift): Delete argument name.
13673         * troff/node.c (suppress_output_file::really_begin_page,
13674         suppress_output_file::really_transparent_char, node::ascii_print,
13675         node::tprint): Delete names of unused arguments.
13677 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
13679         * refer/label.y (string):  Pass $4 to command_error.
13681 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
13683         * Version 1.03 released.
13685 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
13687         * Makefile: Pass definition of SHELL in SUBFLAGS.
13689         * gendef: New file.
13690         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
13691         ps/Makefile: Use gendef to construct header files that are
13692         constructed from the Makefile.
13694         * macros/Makefile: make all should build stripped version of tmac.e.
13696         * refer/Makefile (clean): Remove y.output.
13698 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
13700         * ps/pfbtops.c (main): Add -v option which prints out a version
13701         number.
13702         * ps/Makefile (pfbtops): Link with libgroff.a.
13704 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
13706         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
13707         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
13709         * refer/lkbib.c (main): Always terminate reference with blank
13710         line.
13711         * refer/lookbib.c (main): Likewise.
13713         * refer/linear.c (file_buffer::load): Check that the file is not a
13714         binary file.
13716         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
13717         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
13718         Delete second inclusion of <sys/param.h>.
13720 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
13722         * troff/token.h (token::special): Deleted.
13724         * tbl/main.c (process_format): Rework so that opt->tab_char is
13725         recognized only when appropriate.
13727         * ps/Makefile (clean): Remove pfbtops.
13729 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
13731         * lib/font.c (text_file::next): Don't return if we have got a
13732         blank line.
13734 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
13736         * refer/refer.c (store_reference): Get hash code from old_table[i]
13737         when rehashing the table.
13739 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
13741         * eqn/box.c (box::top_level): Save size and prev size using \R and
13742         restore it afterwards. Set the size to the size at the beginning
13743         of the line.
13744         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
13745         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
13747         * refer/Makefile (limits.h): Use ./genlimits.
13749 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
13751         * refer/index.c: Delete declarations of stat() and fstat().
13753 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
13755         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
13757 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
13759         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
13761 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
13763         * troff/input.c (token::get_char): Handle \e.
13765         * refer/linear.c: Delete declarations of fstat() and stat().
13767 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
13769         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
13770         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
13772 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
13774         * troff/input.c (do_define_macro): Improve error handling for end
13775         of file while defining macro.
13777 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
13779         * eqn/box.h: Fix declaration of set_gsize.
13780         * eqn/box.c (set_gsize): Make argument const char *.
13781         (gsize): Declare as char *.
13782         * eqn/main.c (main): Don't convert gsize to int.
13783         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
13785         * Version 1.02 released.
13787 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
13789         * macros/tmac.andoc: New file.
13790         * macros/Makefile: Install tmac.andoc.
13792         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
13793         operator new and delete on OP_DELETE_BROKEN not being defined.
13794         * Makefile: Mention OP_DELETE_BROKEN.
13796 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
13798         * Makefile (bindist): Pass SUBFLAGS.
13800 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
13802         * Makefile, groff.c: Pass definitions to groff.c via device.h.
13804         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
13805         parameter.
13807         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
13809         * ps/ps.h, ps/psrm.c: Make comment_table and
13810         header_comment_table local to resource_manager::process_file.
13812         * groff.sh: With -TXps pass -printCommand option to gxditview.
13814         * groff.c (possible_command::print): Implement using
13815         append_arg_to_string.
13817         * xditview: Merge in new implementation with own ChangeLog.
13819 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
13821         * groff.c (main): Implement PRINT_OPTION.
13822         (append_arg_to_string): New command.
13823         (device_table): Set PRINT_OPTION flag for Xps.
13825 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
13827         * troff/groff.h: Rename to troff.h.
13829         * pic/lex.c (lookup_keyword, docmp): New functions.
13830         (get_token): Use new lookup_keyword.
13831         Don't include key.h.
13832         * pic/key.[ch], pic/pic.gperf: Deleted.
13833         * pic/Makefile: Remove gperf stuff.
13835         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
13836         into output.h.
13837         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
13839         * troff/Makefile, troff/node.c: Move definition of
13840         STORE_WIDTH into node.c.
13842         * etc/grog.pl, etc/grog.sh: Support -mdoc.
13844 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
13846         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
13847         dvi/devdvi/texb.map: Add lq and rq.
13848         dvi/devdvi: Regenerate fonts.
13849         * ps/devps/textmap: Add lq and rq.
13850         * ps/devps: Regenerate fonts.
13851         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
13852         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
13854         * pic/object.c (position_rectangle): When checking radius
13855         cope with possiblity that width or height is negative.
13856         (box_object::box_object): Have separate xrad and yrad with
13857         signs matching signs of dim components.
13858         (box_object::{north,south}_{east,west}): Use xrad and yrad.
13859         (box_object::print): With rounded boxes use absolute values
13860         for dim and rad arguments.
13862         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
13863         in fontpath.h.
13865         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
13867         * various files: Add explicit destructors to keep Saber CC +d
13868         happy.
13870 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
13872         * eqn/box.c (box::top_level): Restore fonts correctly after
13873         font changes in line containing inline equation.  Also
13874         restore previous font as well as current font.
13875         * eqn/pbox.h: Define necessary string and register names.
13877         * troff/input.c (token::next): Case 'R' calls do_register.
13878         (do_register): New function.
13880 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
13882         * groff.c, groff.sh: Support Xps device.  Allow each device
13883         to have a pseudo_name and a real_name.
13885         * groff.c (run_commands): Don't print `Broken pipe' messages.
13887         * ps/pfbtops.c: New file.
13888         * ps/Makefile: Add pfbtops.
13890         * troff/number.c (parse_term): Improved error message.
13892 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
13894         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
13896         * Makefile: Integrate refer.
13897         * refer: New directory.
13898         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
13899         man/lkbib.man: New files.
13900         * man/Makefile: Support refer man pages.
13902         * lib/lib.h: Declare is_prime.
13903         * lib/prime.c: New file.
13905         * troff/input.c (macro_source): New function.
13906         (init_input_requests): Bind "mso" to macro_source.
13908         * troff/env.c (environment::possibly_break_line): Maintain
13909         pointer to pointer to node to be split in ndp so as to avoid
13910         using address of freed node.
13912         * troff/env.c (environment::hyphenate_line): Maintain pointer to
13913         pointer to first node to be hyphenated in startp so as to
13914         avoid using address of freed node.
13916         * troff/env.c (class trie, class hyphen_trie): Make the
13917         elements of the trie be of type char not unsigned char.
13918         Declare arguments to be const char* instead of unsigned char *.
13919         
13920         * troff/env.c (hyphenate): Initialize hbuf[0].
13922         * troff/input.c (set_string): Declare p to be char * and cast
13923         *p to unsigned char when necessary.
13925         * troff/input.c (do_define_macro): Declare s to be const
13926         char*. Cast element to unisgned char when necessary, Declare
13927         d to be an int.  Handle EOF better.
13929         * troff/Makefile, troff/input.c: Different scheme for passing
13930         definitions of MACROPATH, HYPHENFILE and DEVICE.
13932 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
13934         * tty/devascii/R.proto: Delete entry for em.
13935         * tty/devlatin1/R.proto: Likewise.
13937 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
13939         * troff/input.c (translate): Stop when we get a space. Treat eof
13940         like newline.
13942         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
13944 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
13946         * tbl/main.c (process_format): A font name following a `f'
13947         modifier that starts with a digit can be only one character long.
13948         Also deal with EOF on the second character of the font name.
13950 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
13952         * troff/input.c (token::next): Turn \~ into an
13953         unbreakable_space_node.
13954         * troff/node.c (unbreakable_space_node): New class.
13955         * troff/node.h: Declare it.
13957 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
13959         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
13960         it's >= 0, before outputting it as a single byte.
13962 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
13964         * lib/font.c: Make font_char_metric::code an int.
13965         (font::get_code): Change return type to int.
13966         (font::load): Allow code to be arbitrary integer.
13967         * lib/font.h (font::get_code): Change return type to int.
13968         (font::number_to_index): Change argument type to int.
13969         * troff/input.c (token::next):  In case 'N', allow any value.
13970         Store value in token::val.
13971         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
13972         (token::get_char, token::add_to_node_list, token::process): Get
13973         number from val.
13974         (charinfo::set_number): Change argument to int.
13975         (charinfo::get_number):  Require that NUMBERED flag be set.
13976         (get_charinfo_by_number): Store numbered characters not between 0
13977         and 255 in a dictionary.
13978         * troff/charinfo.h (get_charinfo_by_number): Change argument type
13979         to int.
13980         (charinfo::number): Change type to int.
13981         (charinfo::set_number): Change type of set_number to int.
13982         * troff/node.c (troff_output_file::put_char_width,
13983         troff_output_file::put_char): Test whether character is numbered
13984         using charinfo::numbered().
13985         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
13986         values of num.
13987         * lib/nametoindex.c: New implementation to cope with arbitrary
13988         number characters.
13990         * troff/input.c (token::operator==): Test val for
13991         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
13992         TOKEN_SIZE.
13994         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
13995         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
13997 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
13999         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
14000         variable.
14002         * all Makefiles: rm targets of cp and >.
14004         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
14005         it.
14007         * eqn/lex.c (def_table): Add dollar.
14009 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
14011         * troff/input.c (do_width): Push back newline before closing delim
14012         like do_bracket.
14014 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
14016         * groff.c (possible_command::prepend_arg): New function.
14017         (main): Prepend device -m option.
14018         * groff.sh: Put device -m options before command-line options.
14020 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
14022         * macros/tmac.an (IP): Quote argument to TP.
14024         * ps/ps.c (main): New option -b, which sets...
14025         (broken_flags): New variable.
14026         (ps_printer::~ps_printer): Incorporate the setup section in the
14027         prolog if (broken_flags & NO_SETUP_SECTION).
14028         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
14029         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
14030         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
14031         ps_printer::print_needed_font_comment,
14032         ps_printer::print_supplied_font_comment,
14033         ps_printer::print_include_font_comments,
14034         ps_printer::lookup_doc_font, ps_printer::download_fonts,
14035         ps_printer::read_download_file, read_document_fonts, add_font,
14036         skip_line, parse_fonts_arg, document_font::document_font,
14037         document_font::~document_font, document_font::download,
14038         ps_output::include_file):  Deleted.
14039         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
14040         rather than %!PS-Adobe-2.0.  Make calls to
14041         resource_manager::need_font for each font that we used. Replace
14042         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
14043         print_supplied_font_comment, print_needed_font_comment by call to
14044         resource_manager::print_header_comments. Output %%Orientation
14045         comment. Output %%Requirements: numcopies comment if ncopies > 1.
14046         Don't output the prolog directly.  Instead call
14047         resource_manager::output_prolog.  Only define #copies when ncopies
14048         > 1.  Delete calls to print_include_font_comments  and
14049         download_fonts.  Add call to resource_manager::document_setup.
14050         (ps_printer::do_file): Call resource_manager::import_file instead
14051         of including it ourselves.
14052         (ps_printer::do_import): Likewise.  Also don't call
14053         merge_import_fonts. Push userdict on the dictionary stack before
14054         and pop it afterwards.
14055         Move declaration of ps_output into ps.h.
14056         * ps/psrm.c: New file implementing resource_manager class.
14057         * ps/ps.h: New file declaring ps_output and resource_manager
14058         classes.
14059         * ps/devps/zapfdr.ps:
14060         * ps/devps/symbolsl.ps:
14061         * ps/devps/prologue:  Use 3.0 conventions.
14062         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
14063         Add default definition of BROKEN_SPOOLER_FLAGS.
14064         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
14065         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
14067 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
14069         * etc/grog.pl: New file.
14070         * Makefile (GROG): New variable.
14071         Add GROG to SUBFLAGS.
14072         * etc/Makefile (GROG): New variable.
14073         (install.nobin): Install $(GROG) rather than grog.sh.
14075 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
14077         * eqn/special.c (special_box::compute_metrics): Make the input and
14078         output strings the same.  Get the new height and depth from the
14079         predefined height and depth registers.  Also make subscript kern
14080         and skew available.
14081         (special_box::compute_subscript_kern, special_box::compute_skew):
14082         New functions.
14084         * eqn/box.c (pointer_box::compute_skew,
14085         simple_box::compute_metrics, box::top_level)
14086         * eqn/text.c (prime_box::compute_metrics,
14087         prime_box::comput_subscript_kern)
14088         * eqn/limit.c (limit_box::compute_metrics):
14089         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
14090         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
14091         negative numbers in `nr' requests with a leading 0.
14093 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
14095         * eqn/special.c: New file.
14096         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
14097         Add new rule for simple.
14098         * eqn/lex.c (token_table): Add SPECIAL.
14099         * eqn/box.h: Declare make_special_box.
14100         * eqn/Makefile: Add special.[co].
14102 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
14104         * ps/devps/prologue: Possibly set packing to true while defining.
14105         Create grops dictionary here.  Initialize local variables before
14106         defining procedures.
14107         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
14108         the dictionary stack. Set strokeadjust and overprint to false if
14109         the relevant operators are defined.
14110         (PEND): New procedure.
14111         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
14112         prologue.  Do everything else in the setup section.
14113         (ps_printer::do_import): Just call PBEGIN and PEND around the
14114         picture. Also push userdict before, and pop it afterwards.
14116 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
14118         * troff/node.c (bracket_node::tprint): Brackets were being printed
14119         1m too low.
14121         * macros/tmac.an (SH, SS): Set fill mode.
14123 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
14125         * troff/div.c (top_level_diversion::begin_page): Set
14126         high_water_mark to 0.
14128 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
14130         * man/mdate.sh: New file.
14131         * man/mdate.c: Deleted.
14132         * man/Makefile: Use mdate.sh instead of mdate.
14133         (mdate): Deleted.
14135         * eqn/lex.c (do_gsize): Supply missing argument to error message.
14137 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
14139         * man/mdate.c: New file.
14140         * man/*.man: Replace modification date by @MDATE@.
14141         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
14142         (mdate): New target.
14144         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
14145         Remove illegal input characters.
14147 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
14149         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
14151 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
14153         * troff/div.c (begin_page): Change behaviour when
14154         !first_page_begun and !break_flag.
14156         * troff/input.c (do_name_test): Return 0 if argument is empty.
14158         * troff/input.c (read_long_escape_name): Require closing ] to be
14159         at same input level as opening [.
14161         * troff/input.c (read_increment_and_escape_name): New function.
14162         (get_copy, process_input_stack): Use this for \n.
14164 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
14166         * troff/div.c (top_level_diversion::begin_page): Ignore the
14167         current value of page_number if !first_page_begun.
14169         * groff.c (main): Fix declaration of buf.
14171         * troff/input.c (do_name_test): New function.
14172         (token::next): Implement \A.
14173         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
14174         (token::description, token::add_to_node_list, token::process):
14175         Handle TOKEN_ESCAPE.
14176         * troff/token.h: New token TOKEN_ESCAPE.
14178 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
14180         * pic/main.c (do_picture): Allow space before and after filename
14181         following `<'.  Check that the filename is not empty.
14183 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
14185         * Version 1.01 released. 
14187         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
14189         * dvi/tmac.dvi: ftr HR to H.
14191         * macros/tmac.e: Round up computation of $r.
14193         * xditview/tmac.X:  Don't give up completely in compatibility mode.
14194         Use \n(.s instead of \n[.s].
14196         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
14197         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
14198         Add u to factors inside \s[...]. Rename frac to dvi-frac.
14199         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
14200         short names in the char definitions.
14202         * ps/tmac.ps: Don't give up completely in compatibility mode.
14203         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
14204         quote in front of \n(.s. Add u to factors inside \s[...].
14206 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
14208         * tty/tmac.tty: Call the nroff request.
14210         * macros/tmac.e ((x, )x):  Better definitions that work properly
14211         in a diversion.
14212         (@0, @1): Helper macros for (x.
14214         * macros/tmac.e ($s, hl): Use \l rather than \D.
14216         * tty/tmac.tty: Make it work better in compatibility mode.
14217         (pchar): Rename to tty-char.
14219         * macros/tmac.e (@E): New macro.
14220         (r, i, b, rb, bi): Use @E.
14222         * macros/tmac.e (@F): Don't use (;...) syntax.
14224         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
14225         it was modified for groff.
14227         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
14229         * macros/tmac.e (<., .>): Removed.
14230         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
14232         * macros/tmac.e: Remove check that groff is being used.
14234         * macros/tmac.e (@C): Change families only if using groff; turn
14235         compatibility mode off while changing familes. Save compatibility
14236         mode before changing families and restore it afterwards.
14238         * macros/tmac.e (@h): Remove test for offset + line length.
14240         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
14241         (lo, th, ac): Define to call @S instead of using als.
14243         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
14244         the ratio of the vertical spacing to the point size in units
14245         expressed as a percentage.  Use these instead of $10r and $10R,
14246         Delete $10r and $10R.
14248         * lib/font.c (font::load): In default computation of space_width,
14249         divide by sizescale.  Use scale_round.
14251         * macros/tmac.an (TP): Don't call `nf'.
14252         (an-do-tag): Don't call `fi'.
14254 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
14256         * troff/input.c (process_input_stack): Handle the case where
14257         spaces at the beginning of an input line are followed by a
14258         newline.
14260 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
14262         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
14263         * groff.sh: Use pic -x with the dvi device.
14265         * dvi/devdvi/FontMakefile (H): Don't use -s.
14267         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
14268         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
14269         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
14270         in FONTS.
14272 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
14274         * ps/psfig.diff: New file.
14275         * ps/tmac.psfig: New file.
14277 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
14279         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
14280         (]-): Don't call ref*do-tl.
14282         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
14284         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
14285         (fn@do-FS): Rename to fn*do-FS.
14287         * troff/input.c (transparent_translate): New function.
14288         (process_input_stack): Apply transparent_translate before calling
14289         diversion::transparent_output(unsigned char).
14291 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
14293         * troff/input.c (do_define_macro): Define the macro before calling
14294         skip_line.
14296         * xditview/Makefile: Add DEVICES variable.  Change install target
14297         to use this.
14299 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
14301         * groff.c (run_commands): Handle the possibility that there are
14302         child processes other than those forked by us.
14304 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
14306         * lib/string.c (string::append): New function.
14307         * lib/stringclass.h: Declare it.
14309 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
14311         * eqn/main.c (main): New option -N which sets
14312         no_newline_in_delim_flag. 
14313         (do_file): If no_newline_in_delim_flag is set don't allow newlines
14314         in delimiters.
14315         * groff.c (main): Pass -N on to eqn.
14316         (help, synopsis): Mention -N.
14317         * groff.sh: Implement -N.
14319 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
14321         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
14322         (]-): Call ref*do-tl if ref*need-tl is non-zero.
14323         (XP): Allow as initializer.
14325 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
14327         * troff/env.c (environment::wrap_up_field): If field_spaces are
14328         non-zero and we have a current_tab, subtract padding from
14329         tab_distance.  If this makes tab_distance <= 0, use the next tab
14330         stop instead.  If there isn't any next tab or it's a left tab,
14331         wrap up the current tab.
14332         (environment::start_field): Initialize tab_precedes_field.
14333         (environment::wrap_up_tab): If there's a current field, update
14334         pre_field_width, field_distance and tab_precedes_field.
14335         * troff/env.h (environment::tab_precedes_field): New member.
14337 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
14339         * ps/ps.c (ps_printer::do_file): New function.
14340         (ps_printer::special): Bind to `file' special.
14341         (ps_printer::do_exec): Set ndefined_styles to 0.
14343 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
14345         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
14346         Avoid stripping first character from the start of unrecognized
14347         escapes.  Use lex_error instead of error to report errors.
14348         * eqn/lex.c (get_token): Rework handling of escapes.
14349         (lex_error): Move declaration into...
14350         * eqn/eqn.h.
14352         * xditview/xditview.c (main): Make -page option work.
14354         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
14356 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
14358         * macros/tmac.s (B2): Correct size of box.
14360 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
14362         * macros/tmac.s (B2): Postpone drawing the box until in the
14363         top-level diversion.
14365         * tty/tmac.tty: Add font translations for C, CR, CW.
14367         * groff.c (synopsis, help): Document -i.
14368         * groff.sh: Implement -i.
14370         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
14371         Simplify the construction of SN.
14373         * troff/number.c (parse_term): Give `|' a higher precedence.
14374         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
14375         accordingly.
14377         * macros/tmac.s (B2): Use par@finish instead of par@reset.
14379 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
14381         * lib/string.c (string::move): New function.
14382         * lib/stringclass.h: Declare it.
14384 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
14386         * troff/env.c (distribute_space): Add optional argument
14387         `force_forward'.
14388         (environment::wrap_up_field): Call distribute_space with
14389         `force_forward' argument of 1.
14391 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
14393         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
14394         Inline it.  Move reallocation into...
14395         (string::grow1): New function.
14396         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
14397         dependencies to include library header files.
14398         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
14400 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
14402         * macros/tmac.s (@NH): Use the same number registers than -ms does
14403         for the heading level counters.  Use the same string that -ms does
14404         for the number for this heading.
14406 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
14408         * lib/new.c (operator new): Cast result of malloc to char *.
14410         * troff/input.c (spring_trap, lookup_request): Add assert that nm
14411         is not null.
14413 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
14415         * groff.c (main): Support -i.
14417 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
14419         * pic/pic.h: Include <osfcn.h>.
14421         * ps/ps.c: Add declaration of mktemp.
14423         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
14424         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
14425         argument as union wait *.
14426         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
14427         argument to union wait *.
14429 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
14431         * tty/tmac.tty: Add definition of \(co.
14433         * pic/object.c (make_arc): Only increase radius when radius
14434         strictly less than d.
14435         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
14436         more than once.
14438         * troff/env.c (environment::environment(symbol),
14439         environment::environment(const environment *)):  Initialize
14440         input_trap_count.
14442 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
14444         * tbl/main.c (main): Add exit(0).
14446         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
14448         * pic/main.c (main):
14449         * eqn/main.c (main):
14450         * tbl/main.c (main):
14451         * etc/soelim.c (main):
14452         * driver/printer.c (printer::~printer):
14453         * troff/node.c (real_output_file::~real_output_file,
14454         real_output_file::flush):  Check for errors on stdout.
14456         * most files: Add 1991 to copyright notice.
14458         * macros/tmac.s: Don't test \n(.x and \n(.y.
14460         * troff/input.c (token::next): Rename `escape_char' label to
14461         `handle_escape_char' and `normal_char' label to
14462         `handle_normal_char'.
14464 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
14466         * groff.c (main, synopsis, help): Support -a option.
14467         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
14468         to trflags while parsing options.
14470 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
14472         * troff/number.c (parse_term): With `m', `M' and `n' scale
14473         indicators, convert scale factor to hunits before scaling.
14475 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
14477         * lib/font.c (scale_round): Better test for overflow when n is
14478         negative.
14480 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
14482         * tbl/main.c (process_format): Add second argument of type
14483         options*. Change callers.  Allow opt->tab_char as well as '\t'
14484         between format items.
14486 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
14488         * macros/tmac.an (PD): With no arguments, make sure register PD is
14489         at least \n[.V].
14490         (TH): Call PD with no argument, instead of setting register PD
14491         directly.
14493 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
14495         * Version 1.00 released.
14497 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
14499         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
14501         * dvi/devdvi/DESC: Mount CW instead of CR.
14503         * dvi/tmac.dvi: Add definition of \(tm.
14505         * dvi/devdvi/texsy.map: Add lh, and rh.
14506         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
14507         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
14509         * dvi/devdvi/FontMakefile: Generate H from cmss10.
14510         * dvi/devdvi/Makefile: Install H.
14511         * dvi/devdvi/H: New file.
14513 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
14515         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
14516         be 0.
14518 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
14520         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
14522         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
14524         * macros/tmac.s (@EN): Handle the case where the equation is empty
14525         but the label is not.
14527 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
14529         * troff/groff.h: New warning category WARN_SPACE.
14530         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
14531         WARN_SPACE to warning_table.
14532         (interpolate_macro): Give a warning of type WARN_SPACE if the name
14533         is longer than two characters and is not defined, but the first
14534         two characters do make a defined name.
14536         * PROBLEMS: New file.
14538         * CHANGES: New file.
14539         * README-0.6, README-1.00: Deleted.
14541         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
14542         * xditview/devX75/Makefile: Make devX75-12.
14543         * xditview/devX100/Makefile: Make devX100-12.
14545         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
14546         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
14548 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
14550         * README-0.7: Rename to README-1.00.
14552         * macros/tmac.pic: New file.
14553         * macros/Makefile (install.nobin): Install tmac.pic.
14555 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
14557         * troff/env.c (hyphen_word): Correct the test for whether the
14558         token is a hyphen.  Reset npos to 0.
14560         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
14562 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
14564         * macros/tmac.s (ds*common-end): Call par*reset.
14565         (PE): Likewise.
14566         (par@reset-indent): Deleted.
14568         * macros/tmac.s (@IP): Divert the label.
14570 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
14572         * xditview/draw.c (setGC): Use a line width of .1m rather than
14573         .04m by default; round rather than truncate value.
14575         * tbl/table.c (class empty_entry): New class.
14576         (empty_entry::empty_entry, empty_entry::line_type): New functions.
14577         (table::add_entry): Represent empty entries by objects of type
14578         empty_entry.
14579         (table_entry::line_type): Return -1.
14580         (table::determine_row_type): Ignore entries with line_type 0.
14581         Treat type -1 as non-lines.
14583 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
14585         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
14586         macros/tmac.s: Rename \(-d to \(Sd.
14588 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
14590         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
14591         * xditview/libXdvi/DviChar.c: Likewise.
14592         * dvi/devdvi/texsy.map: Add `<<', `>>'.
14594 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
14596         * troff/div.c (top_level_diversion::begin_page): Call
14597         init_output() if the_output is 0.
14599 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
14601         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
14602         ESCAPE_c.
14603         (get_copy): Turn \E into ESCAPE_E.
14604         (token::process, asciify): Handle ESCAPE_E.
14606         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
14607         (RD): New macro.
14608         (DS): Implement `.DS R'.
14610 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
14612         * macros/tmac.s (FS): New macro.
14614         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
14616         * macros/tmac.s (cov*tl-init): Remove after first execution
14617         instead of aliasing to @nop.  Call top of page macro explicitly
14618         instead of setting trap; call @init first.  Set pg@top as top of
14619         page macro.
14620         (cov*auto-init): Deleted.  Set cov*tl-init instead of
14621         cov*auto-init as top of page trap. 
14622         (TL, LP): Do a break instead of calling cov*tl-init.
14623         (cov*print): With RP format but no TL, alias FS and FE to @FS and
14624         @FE; in this case also give a warning and always start another
14625         page. No need to set pg@top here.
14626         (cov*tl-init): Rename to cov*first-page-init.
14628         * macros/tmac.s (RP): Do `.pn 0'.
14629         (cov*tl-init): With RP format don't do `.pn 0'.
14631         * macros/tmac.s (pg@cs-top): Set no space mode.
14633         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
14634         (cov*ab-init): Alias TL, AU and AI to these.
14636 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
14638         * macros/tmac.s (@EQ): Move the space before the equation into @EN
14639         (@EN): Do nothing unless \n[dl] is > 0.
14641 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
14643         * pic/object.c (ellipse_object::radius): New function.
14645         * VERSION: Change version to 0.7.
14647         * tbl/table.c (block_entry::do_divert): Declare return type as
14648         void.
14649         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
14651 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
14653         * troff/column.c: New file.
14654         * troff/Makefile: Corresponding changes.
14656         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
14657         Friend of vunits.
14659         * troff/div.c (top_level_diversion::space): If the space causes
14660         the first-page transition and springs a trap, truncate the space
14661         to 0.
14663 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
14665         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
14666         the document.
14668         * pic/troff.c (troff_output::line_thickness,
14669         troff_output::set_fill): Do a horizontal motion to compensate for
14670         the width of the \D escape sequence.
14672 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
14674         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
14675         (not X75).
14677         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
14678         to printf.
14680         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
14681         Supply empty definition.
14682         (text_entry::simple_print, simple_text_entry::simple_print):
14683         Delete declarations.
14684         (table::add_entry): Represent empty entries by objects of type
14685         `simple_entry'.
14687 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
14689         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
14691         * tbl/table.c (left_text_entry::add_tab): New function.
14693         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
14694         initialize like LP.
14696 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
14698         * troff/env.c (environment::start_field): Give an error message if
14699         there is no next tab.
14701 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
14703         * troff/env.c (hyphenate): Skip initial elements with zero
14704         hyphenation code.
14706         * macros/tmac.s (par@init): Keep VS in points rather than units.
14708 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
14710         * pic/main.c (main): Implement `-c' option.
14711         * pic/output.h: Declare make_tpic_output().
14712         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
14713         protected.
14714         (tpic_output): New class.
14715         (tpic_output::tpic_output, tpic_output::set_pen_size,
14716         tpic_output::command, make_tpic_output): New functions.
14718 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
14720         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
14721         if they're not already defined.
14722         * tbl/table.c (init_output): Don't test \n(.g.
14724         * troff/input.c (do_if_request): Delete `g' condition. Recognize
14725         `d', `r' and `c' conditions even in compatibility mode.
14727 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
14729         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
14730         box.
14732 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
14734         * troff/env.h (environment::prev_line_interrupted): New member.
14735         (environment::get_prev_line_interrupted): New function.
14736         * troff/env.c (environment::newline): Set prev_line_interrupted.
14737         (environment::environment(const environment *),
14738         environment::environment(symbol)): Initialize
14739         prev_line_interrupted.
14740         * troff/input.c (process_input_stack): Don't give special
14741         treatment to space and newline at the beginning of the line if the
14742         previous line was interrupted.
14744 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
14746         * eqn/eqn.y: Disallow PRIME by itself.
14747         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
14748         PRIME.
14749         (def_table): Remove definition of '.  Define prime to be `.
14751         * eqn/eqn.y: Split off part of rule `script' into a new rule
14752         `nonsup'.
14754 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
14756         * macros/tmac.s ({, }): New string aliases.
14758 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
14760         * README-0.7: New file.
14762 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
14764         * macros/tmac.s: New file.
14765         * man/groff_ms.man: New file.
14766         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
14767         * Makefile.bd: Similarily.
14768         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
14769         definition of TMAC_S.
14770         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
14771         * macros/TODO: New file.
14773 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
14775         * troff/env.c (right_justify): New function.
14776         (init_env_requests): Bind this to request "rj".
14777         (center_lines): Set right_justify_lines to 0. If we get a bad
14778         integer, center 1 line.
14779         (environment::environment(symbol), environment::environment(const
14780         environment *)): Initialize right_justify_lines.
14781         (environment::get_right_justify_lines): New function.
14782         (init_env_requests): Bind this to number_register ".rj".
14784         * troff/env.c (environment::choose_breakpoint): Implement
14785         hyphenation_margin and hyphenation_space.
14786         (environment::get_hyphenation_space,
14787         environment::get_hyphenation_margin): New functions.
14788         (init_env_requests): Bind these to .hys and .hym.
14789         (hyphenation_space_request, hyphenation_margin_request): New
14790         functions
14791         (init_env_requests): Bind these to hys and hym.
14792         (environment::environment(symbol), environment::environment(const
14793         environment *)): Initialize hyphenation_margin and
14794         hyphenation_space.
14795         * troff/env.h: Corresponding changes to class environment.
14797 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
14799         * troff/div.c (blank_line): Always do a break.
14801         * eqn/box.c (do_text): Turn off escapes while appending text to
14802         string.
14804 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
14806         * troff/input.c (while_break_request, while_continue_request): New
14807         functions.
14808         (init_input_requests): Bind these to "break" and "continue".
14809         (while_depth, while_break_flag): New variables.
14810         (while_request): Update while_depth.  Break out of loop if
14811         while_break_flag is set.
14813 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
14815         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
14816         rather than 0.
14818 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
14820         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
14822         * stringify: New file.
14823         * Makefile (groff.o): Use stringify.
14825         * xditview/tmac.X: Remove definition of \(rn.
14826         * xditview/libXdvi/DviChar.c: Remove radicalex from
14827         Adobe_symbol_map.
14829 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
14831         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
14832         (alphabetic_block_entry::alphabetic_block_entry,
14833         alphabetic_block_entry::divert, alphabetic_block_entry::print):
14834         New functions.
14835         (block_entry::divert): Split off body into ...
14836         (block_entry::do_divert): If the block is alphabetic, subtract 2n
14837         from the line length; also update the span width to dl+2n, and the
14838         alphabetic span width to dl.
14840         * driver/input.c (do_file):  While reading argument to D command,
14841         when expanding buffer, multiply szp by sizeof(int) rather than 2
14842         in the argument to memcpy.
14844         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
14845         width of alphabetic columns.
14847 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
14849         * troff/node.c (lookup_family): Supply second argument to lookup.
14851         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
14852         search, return immediately if v is 0.
14854         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
14855         (troff_output::start_picture): Set this reg.
14856         (troff_output::end_picture): Remove this reg
14857         * eqn/box.c (box::extra_space): Don't produce `\x's if
14858         EQN_NO_EXTRA_SPACE_REG is defined.
14860         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
14861         * eqn/text.c (split_text): Map ' to \(fm when it's the first
14862         character.
14864 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
14866         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
14867         requests.
14869         * troff/div.c (top_level_diversion::top_level_diversion):
14870         Initialize page_number to 0.
14872 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
14874         * groff/troff (environment::environment(const environment *)):
14875         Initialize name to e->name, rather than "anonymous".
14877 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
14879         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
14880         requested_page.  Split middle part into ...
14881         (FindPage): New function.
14882         (SetValues): If we don't yet know the last page, and the requested
14883         page is greater than the current page, call FindPage.
14884         Update the font_map_string before doing this.
14886         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
14887         Translate \(lh and \(rh into left and right double arrows.
14889         * troff/node.c (class hyphen_inhibitor_node): New class.
14890         (hyphen_inhibitor_node::hyphen_inhibitor_node,
14891         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
14892         hyphen_inhibitor_node::type,
14893         hyphen_inhibitor_node::get_hyphenation_type): New functions.
14894         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
14895         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
14896         word.
14898 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
14900         * troff/node.h (dummy_node::get_hyphenation_type,
14901         transparent_dummy_node::get_hyphenation_type):  Declare them.
14902         * troff/node.c: (dummy_node::get_hyphenation_type,
14903         transparent_dummy_node::get_hyphenation_type): New functions.
14905 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
14907         * xditview/libXdvi/draw.c: If M_PI not defined after including
14908         math.h, then define it.
14910         * xditview/Makefile: Add definition of AR. Pass it to the submake
14911         in libXdvi.
14912         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
14914 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
14916         * troff/dictionary.h (object_dictionary::alias): Declare return
14917         value as int.
14918         * troff/dictionary.c (object_dictionary::alias): Return non-zero
14919         if the old name was defined.
14920         * troff/input.c (alias_macro): Give a warning if the old name was
14921         not defined.
14922         * troff/reg.c (alias_reg): Likewise.
14924 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
14926         * troff/input.c (token::next): Delete implementation of \R.
14928         * macros/Makefile: Strip comments from tmac.e while installing it.
14930         * troff/input.c: New variable `nroff_mode'.
14931         (troff_request, nroff_request): New functions.
14932         (init_input_requests): Bind `troff' and `nroff' to troff_request
14933         and nroff_request.
14934         (do_if_request): Compute results of t and n conditions from
14935         nroff_mode.
14937         * text/text.c (split_text): Fix typo in >=.
14939         * eqn/lex.c: Add definition of `==' to def_table.
14941 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
14943         * pic/tex.c (tex_output::start_picture): Change the definitions of
14944         \graph and \graphtemp so that they work properly with Plain TeX.
14946         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
14947         argument to `ar' is not less than the first.
14949         * pic/pic.y: Allow a comma between elements of the variable list
14950         in the argument to `reset'.
14952         * pic/object.c (arc_object::arc_object): Fix computation of
14953         radius.
14955         * eqn/main.c (main): Add exit(0).
14957 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
14959         * troff/div.c (begin_page): Test no_space_mode after doing the
14960         break, but still push the page ejector cookie before doing the
14961         break.  Also set the next page number after doing the break.
14962         
14963         * xditview/xditview.c (NewFile): Don't set the title and icon name
14964         if this is the first file and its name is `-'.
14965         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
14966         the X75 and X100 devices.
14967         (main): If a device has the XT_OPTION flag set and there's exactly
14968         one file argument, pass the driver -xrm and -title options to set
14969         the icon name and window title to the name of the file.
14971         * troff/env.c (environment_switch): If there was an argument but
14972         it wasn't a valid number or name, then pop an environment but
14973         don't give an error message on underflow.
14975         * troff/number.c (start_number): Correct spelling in error message.
14977         * troff/input.c (token::delimiter): Don't print an error message
14978         if err is false.
14980         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
14981         ParseDrawFunction if dw->display_enable is true.
14983 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
14985         * pic/pic.y: Parse text positioning like normal attributes, so as
14986         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
14987         positioning attribute.
14989 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
14991         * tbl/main.c (process_data): When in state START while reading a
14992         text block, don't change to state MIDDLE if c is a newline.
14994 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
14996         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
14997         so as to avoid shadowing parameter.
14999 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
15001         * tbl/table.c (trim_space): Deleted.
15002         (table::add_entry): Don't call trim_space.
15004 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
15006         * VERSION: Change version to 0.6.
15008         * troff/number.c (parse_expr): Make == work.
15010 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
15012         * man/grog.man: New file.
15013         * man/Makefile: Add grog.n to MAN1PAGES.
15014         * etc/grog.sh: New file.
15015         * etc/Makefile: Install grog.sh as grog.
15017 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
15019         * troff/input.c (token::next): Implement \E.
15021 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
15023         * xditview/tmac.X: Change font translations to match tmac.ps.
15025         * troff/input.c (non_empty_name_warning): Don't give a warning if
15026         `\{' terminates the name.
15028 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
15030         * ps/devps/symbol.diff: New file.
15031         * ps/devps/FontMakefile: Mention symbol.diff.
15033 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
15035         * troff/node.c (font_position): Use get_long_name to read the
15036         external_name.
15038         * troff/env.c (environment_switch): If we get a number that's < 0
15039         or >= NENVIRONMENTS, treat it like a name.
15040         Change NENVIRONMENTS to 10.
15042         * troff/groff.h: Remove definition of FONTS_MAX.
15043         * troff/node.h (class font_family): Make map a pointer instead of
15044         an array. Add a map_size member. Make it a class. Make nm const
15045         and public. Make invalidate_fontno a friend.
15046         * troff/node.c: Define font_table_size. Make font_info a pointer
15047         rather than an array.
15048         (class troff_output_file): Allocate font_position dynamically. Add
15049         nfont_positions member.
15050         (troff_output_file::set_font): Grow font_position if necessary.
15051         (troff_output_file::~troff_output_file): Delete font_position.
15052         (troff_output_file::troff_output_file): Allocate font_position.
15053         (grow_font_table): New function.
15054         (troff_output_file::really_begin_page,
15055         troff_output_file:really_copy_page): Use nfont_positions rather
15056         than FONTS_MAX.
15057         (mount_font_no_translate, mount_style): Call grow_font_table if
15058         necessary.
15059         (font_family::font_family): Allocate map.
15060         (font_family::make_definite): Grow map if necessary. Use
15061         font_table_size instead of FONTS_MAX.
15062         (font_family::~font_family): New function.
15063         (invalidate_fontno): Use font_family::map_size.
15064         (get_fontno, env_space_width, env_half_narrow_space_width,
15065         env_narrow_space_width, symbol_fotno, is_good_fontno,
15066         get_bold_fontno, make_glyph_node): Use font_table_size rather than
15067         FONTS_MAX.
15068         (next_available_font_position): Never return 0.
15070 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
15072         * ps/tmac.ps: Add font translations for compatibility with dpost.
15074 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
15076         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
15077         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
15078         Move definitions baseline_sep, shift_down, column_sep,
15079         matrix_side_sep into...
15080         * eqn/box.c: Add them to param_table.
15081         * eqn/pbox.h: Add declarations to pbox.h.
15083         * troff/input.c (set_string): Cast value to unsigned char *.
15085         * troff/token.h (process_input_stack): Declare it static before
15086         declaring it a friend.
15088 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
15090         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
15091         and bottom.
15092         * dvi/devdvi/EX: Regenerate.
15094         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
15095         transparent.
15097 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
15099         * eqn/lex.c: In defaults_table, make definition of `dot' call
15100         `dot_def'.  Don't explicitly make it roman.  Similarily for other
15101         accents.
15103         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
15104         argument.
15105         (for_input::get, for_input::peek): Use this.
15106         (do_for): Add by_is_multiplicative argument.
15107         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
15108         Change semantic value of optional_by to be a double plus a flag
15109         saying whethet the by clause is multiplicative.
15111         * eqn/lex.c (get_delimited_text): Remember location of start of
15112         definition.  Improve error handling when EOF is encountered.
15114         * lib/font.h: Rename handle_x_command to
15115         handle_unknown_font_command.
15116         * lib/font.c (font::load): Call handle_unknown_font_command for
15117         any unknown command in the font description file.  Don't call
15118         handle_x_command. Include the name of the command in the argv.
15119         Improve message for unknown command after kernpairs or charset
15120         command.
15121         * ps/ps.c (ps_font::handle_x_command): Rename to
15122         handle_unknown_font_command.  Remove message about `x download'
15123         command.  Give error message for wrong number of arguments.
15124         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
15125         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
15126         handle_unknown_font_command. Give an error message for wrong
15127         number of arguments.  Rename design_size to designsize.
15128         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
15129         checksum', `designsize' instead of `design_size'.
15131 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
15133         * eqn/*.[chy]: Change underaccent to uaccent.
15135         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
15136         give it the same precedence as ACCENT.
15137         * eqn/other.c (make_underaccent_box): New function.
15138         * eqn/box.h: Declare it.
15139         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
15140         def_table.
15142 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
15144         * pic/pic.y (reset_all): New function. Called in rule for RESET.
15145         (parse_init): Call reset_all.
15146         (define_variable): When defining scale reset only those
15147         pre-defined variables that are scaled.
15148         (defaults_table): Add `scale' as non-scaled value.
15150         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
15151         together with the text; allow any number of positioning words;
15152         allow center as a positioning word.
15154         * pic/object.c (output::compute_scale): Get picture maximum height
15155         and width from variables called maxpswid and maxpsht.
15156         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
15158 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
15160         * pic/object.c (object_spec::make_text): Multiply textht by number
15161         of text items.
15163         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
15164         occur.
15165         (do_sprintf): New function.
15166         (pic.gperf): Add sprintf token.
15167         (text, sprintf): New rules.
15169         * pic/pic.y: `rand()' with no arguments returns a random number
15170         in the range [0,1).
15172         * pic/pic.y: Allow a bare expression to be an attribute: change
15173         precedences to support this.  Change optional_ordinal rule to
15174         optional_ordinal_last to avoid reduce/reduce conflict.
15175         * pic/object.c (object_spec::object_spec): Initialize direction.
15177         * pic/pic.y: Implement ^ operator meaning exponentiation.
15179         * troff/node.h: Add default argument to mount_font.
15180         * troff/node.c (font_position): Read an optional third argument
15181         giving the external_name.
15182         (mount_font): Add optional argument giving the external_name.
15183         (mount_font_not_translate): Have additional argument giving
15184         external name.  Use this name to load the font.  Pass both names
15185         to font_info::font_info.
15186         (font_info::font_info): Have additional argument giving
15187         external_name.
15188         (class tfont): New member external_name.
15189         (font_info::get_tfont): Use external name to construct tfont_spec.
15191 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
15193         * eqn/lex.c (init_table): Add argument giving device.  Define
15194         name of device to be "1".
15195         (do_ifdef): Counts as true if the argument has been defined with
15196         `define'.
15197         * eqn/main.c (main): Call init_table with device argument. Make
15198         device local to main.
15199         * eqn/eqn.h: Change declaration of init_table. Remove declaration
15200         of device.
15202         * pic/lex.c (get_delimited): Allow text to be delimited by
15203         matching {}s.  Don't recognize ending delimiter within a string.
15205         * troff/input.c (get_delim_name): New function.
15206         (token::next): Implement \C.
15208         * lib/font.c (font::load): Grok ---.  Add an alias for each
15209         character based on its code.
15210         (font::get_code_width): Deleted.
15211         * lib/font.h (class font): Declare font::number_to_index().
15212         Remove declaration of font::get_code_width.
15213         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
15214         to indices of named characters.
15215         (font::number_to_index): New function.
15216         * troff/input.c (font::number_to_index): New function.
15217         (get_charinfo_by_number, charinfo::get_number,
15218         charinfo::set_number): New functions.
15219         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
15220         (token::process, token::description, token::get_char,
15221         token::add_to_node_list, token::operator==): Handle
15222         TOKEN_NUMBERED_CHAR.
15223         * troff/charinfo.h: Declare get_charinfo_by_number,
15224         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
15225         charinfo class.
15226         (charinfo::numbered): New function.
15227         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
15228         * troff/env.h (class environment): Remove declaration of ...
15229         * troff/env.c (environment::make_numbered_char_node): Deleted.
15230         * troff/node.c (make_numbered_node): Deleted.
15231         (class numbered_glyph_node): Remove.
15232         (troff_output_file::put_char_width, troff_output_file::put_char):
15233         Handle numbered chars.
15234         (troff_output_file::numbered_char): Removed.
15235         (tfont::get_code_width): Removed.
15236         (make_glyph_node): Don't search special fonts for numbered
15237         characters.
15238         * troff/node.h: Remove declaration of make_numbered_node.
15239         * driver/input.c (do_file): Handle N command.
15240         * driver/printer.h: Add declaration of ...
15241         * driver/printer.c (printer::set_numbered_char): New function.
15242         * dvi/tfmtodit.c (main): Generate unnamed entries.
15243         * ps/devps/afmtodit: Likewise.
15244         * xditview/xtotroff.c (MapFont): Likewise.
15245         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
15247         * tbl/main.c (process_format): If multiple widths are specified
15248         for a column but all the widths are the same, don't give an error
15249         message.
15251         * tbl/table.c (table::do_row): If the current row is all lines and
15252         the stuff doesn't contains a line, mark the top of the row after
15253         printing stuff before the row.  If the current row is not all
15254         lines and the stuff doesn't contain a line, don't unnecessarily
15255         mark the top of the row before printing the stuff.
15256         
15257 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
15259         * troff/groff.h: Remove MAX_PATH.
15260         * troff/input.c (open_file): Dynamically allocate space for the
15261         path.
15262         (open_mac_file, process_macro_file): Corresponding changes.
15264 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
15266         * troff/node.h (class output_file): Make copy_file pure.  Add
15267         vspace method ifdef COLUMN. Add is_printing method.
15268         * troff/node.c: Add class printing_reg. Add class
15269         real_output_file. Derive other output_file classes from
15270         real_output_file; in these classes rename begin_page to
15271         really_begin_page, print_line to really_print_line, copy_file to
15272         really_copy_file, transparent_char to really_transparent_char.
15273         Move output_file::flush to real_output_file. Add printing member
15274         to class output_file.
15275         * troff/div.h: Remove printing member from top_level_diversion.
15276         Add vspace member function to class diversion ifdef COLUMN. Add
15277         some declarations ifdef COLUMN.
15278         * troff/div.c (top_level_diversion::copy_file,
15279         top_level_diversion::transparent_output,
15280         top_level_diversion::output): Don't test printing member before
15281         output.
15282         * troff/input.c: Handle initial variable_space_request ifdef
15283         COLUMN.
15284         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
15285         but comment it out.
15287 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
15289         * troff/div.c (diversion::need): Make any space forced.  If we
15290         sprung a trap, set truncated_space to minus the distance to the
15291         trap and set needed_space to the amount that was needed.
15292         (top_level_diversion::space): A forced space turns no_space_mode
15293         off.
15294         (class constant_vunits_reg): New class.
15295         (init_div_requests): Implement number registers .trunc and .ne
15296         using constant_vunits_reg.
15297         (class truncated_space_reg): Deleted.   
15299         * troff/div.h: Don't have a no_space_mode member in diversion.
15300         Instead have it in top_level_diversion.
15301         * troff/div.c (diversion::diversion): Don't initialize
15302         no_space_mode.
15303         (top_level_diversion::top_level_diversion): Initialize
15304         no_space_mode.
15305         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
15306         (macro_diversion::output): Don't clear no_space_mode.
15308         * troff/input.c (diverted_space_node::reread): Don't call
15309         environment::do_break.  In fill mode, act like a blank line.
15310         (diverted_copy_file_node::reread): Don't call
15311         environment::do_break.
15313         * troff/div.c (blank_line): New function.
15314         * troff/div.h: Declare it.
15315         * troff/input.c (process_input_stack): Call it.
15317         * troff/div.c (truncated_space_reg::get_string): New function.
15318         (init_div_requests): Bind to .trunc.
15319         (space_request, top_level_diversion::space,
15320         top_level_diversion::output, macro_diversion::space,
15321         macro_diversion::output): Update truncated_space.
15322         (macro_diversion::output): Redo calculations when trap sprung.
15323         (macro_diversion::output, macro_diversion::space): No need for
15324         trap_flag.
15326         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
15327         after truncating post line spacing.
15329 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
15331         * ps/devps/prologue (MF, SF): Make them work even if setfont is
15332         defined as a procedure rather than as an operator.
15334 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
15336         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
15338 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
15340         * troff/div.c (top_level_diversion::output): Merge
15341         output_file::print_line and output_file::end_of_line member
15342         functions.
15343         * troff/div.h (class output_file):
15344         * troff/node.c (troff_output_file::print_line,
15345         troff_output_file::end_of_line, output_file::end_of_line,
15346         ascii_output_file::print_line, suppress_output_file::print_line):
15347         Corresponding changes.  
15349 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
15351         * troff/input.c (token::next): Don't give a warning for `\.'.
15353         * troff/env.c (environment::get_center_lines): New function.
15354         (init_env_requests): Bind number register .ce to it.
15355         * troff/env.h: Declare it.
15356         * tbl/table.c (table::init_output): Define reset macro to restore
15357         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
15358         Then do .ce 0.
15359         (table::print): If center option not given, then imply center
15360         option if SAVED_CENTER_REG > 0.
15362 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
15364         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
15365         Troff.ps from DOWNLOAD.
15366         
15367         * troff/Makefile: Change comment in DEFINES to avoid confusing
15368         System V make.
15370         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
15371         code.  Don't try to catch errors with stopped.
15372         (check_line_lengths): New function.
15373         * ps/devps/prologue (EXEC): Deleted.
15374         (EBEGIN, EEND): New procedures.
15376 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
15378         * troff/input.c: Include request.h before node.h.
15379         * troff/node.c: Likewise.
15380         * troff/env.c: Likewise.
15381         * troff/div.c: Likewise.
15382         * troff/node.h (class special_node): Store argument as a macro
15383         rather than a char *.
15384         * troff/node.c (special_node::special_node, special_node::copy):
15385         Grok this.
15386         (special_node::~special_node): Deleted.
15387         (special_node::tprint): Deleted.
15388         (special_node::tprint_start, special_node::tprint_end,
15389         special_node::tprint_char): New functions.
15390         (troff_output_file::special): Deleted.
15391         (troff_output_file::start_special, troff_output_file::end_special,
15392         troff_output_file::special_char): New functions.
15393         * troff/input.c (special_node::tprint): New function.
15394         (do_special): Use macro not char *.
15395         (do_transparent_macro): Deleted.
15396         (token::next): Don't call do_transparent_macro.
15398         * troff/input.c (token::next): Add 'Y' case.
15399         (do_transparent_macro): New function.
15400         * troff/node.c (troff_output_file::special): Handle newlines with
15401         argument using new continuation convention.
15402         * driver/input.c (get_string): Cope with continuation convention.
15403         (do_file): Don't call skip_line after calling get_string(1).
15404         * ps/ps.c (ps_printer::special, ps_printer::do_import,
15405         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
15406         arg.
15407         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
15408         with +.
15410 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
15412         * troff/input.c (asciify): By default, illegal input characters
15413         should return empty string.
15415         * troff/input.c (copy_file): Handle first page transition like title.
15416         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
15418         * troff/input.c (token::next): Improve error message for EOF after
15419         escape character.
15420         (input_char_description): New function.
15421         (get_char_for_escape_name): Use input_char_description.
15422         (token::next): Warn about unrecognized escape sequences.
15423         (warning_table): Add WARN_ESCAPE.
15424         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
15425         accordingly.
15427         * troff/token.h: Remove declaration of process_input_stack.
15429         * troff/input.c: Remove declaration of init_hyphen_requests.
15430         * troff/request.h: Correct spelling in declaration of same.
15432         * troff/input.c (token::next): Check whether escape_char is 0.
15434 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
15436         * groff.c (main, usage, help): Implement -P and -L options.
15437         * groff.sh: Likewise.
15439         * troff/input.c (token::next): Use some gotos to avoid code
15440         duplication.
15442         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
15443         Avoid calling symbol::symbol if name empty.
15445 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
15447         * troff/input.c (init_input_requests): Make \n(.x return the major
15448         version number and \n(.y return the minor version number.
15449         * troff/Makefile: Construct file majorminor.c defining
15450         major_version and minor_version automatically from ../VERSION.
15452         * troff/node.c (class glyph_node): Make operator new and operator
15453         delete public.
15454         (class ligature_node): Similarily.
15456         * troff/input.c (operator==(const macro &, const macro &)): New
15457         function.
15458         (non_interpreted_node::same): Use this.
15459         (string_iterator::string_iterator): Make macro& argument const.
15461         * troff/input.c (input_iterator::get): New function. Don't make
15462         asciify_macro or class non_interpreted_node friends of class
15463         input_iterator.
15464         (non_interpreted_node::interpret): Use input_iterator::get.
15465         (asciify_macro): Likewise.
15467         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
15468         ~non_interpreted_node): Deleted.
15469         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
15470         Deleted.
15472         * troff/symbol.h: Make all symbol member functions const.
15474         * lib/strtol.c: New file.
15475         * lib/Makefile: Add strtol.c.
15476         * Makefile: Define STRTOL as strtol.o to include strtol in
15477         libgroff.a.
15479 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
15481         * pic/troff.c (troff_output::simple_circle): Divide by scale.
15483 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
15485         * troff/input.c (do_special): Use input_level.
15487         * troff/token.h (TOKEN_BACKSPACE): New token.
15488         (token::backspace): New function.
15489         * troff/input.c (token::description, token::next, token::process):
15490         Grok TOKEN_BACKSPACE.
15491         (do_special): Turn TOKEN_BACKSPACE back into \b.
15493         * troff/token.h (token::leader): New function.
15494         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
15496         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
15498         * troff/input.c (do_special): Use token::description in error
15499         message.
15501 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
15503         * troff/input.c (decode_args): Combine quoted and
15504         quote_input_level variables. Make it a for (;;) loop.
15506         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
15508         * troff/input.c (read_long_escape_name): The test for whether to
15509         expand buffer was off by 1.
15510         (read_string): Similarily.
15512 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
15514         * troff/input.c: Use `const int' rather than `static const int'.
15516         * troff/div.h (diversion::copy_file): Declare as pure virtual.
15517         (macro_diversion::copy_file): New function.
15518         * troff/node.h: New class diverted_copy_file_node.
15519         * troff/node.c: Implement it.
15520         * troff/input.c (copy_file): Use diversion::copy_file. Handle
15521         first page transition by pushing a diverted_copy_file_node.
15522         * troff/input.c (token::next, process_input_stack): Don't handle
15523         COPY_FILE_REQUEST.
15525 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
15527         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
15528         whether space widths need adjusting.
15530         * troff/charinfo.h: Generalize translated_to_space to
15531         special_translation so as to allow translation to \&.
15532         * troff/input.c (translate): Allow translation to \&.
15533         (charinfo::*): Corresponding changes.
15534         * troff/node.c (make_node, node::add_char): Corresponding changes.
15535         * troff/node.h (dummy_node::dummy_node): Allow optional first
15536         argument.
15538         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
15539         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
15540         TOKEN_REQUEST.
15541         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
15542         TOKEN_REQUEST with an argument of TITLE_REQUEST.
15543         (token::process): Grok that.
15544         * troff/input.c (copy_file): Handle first page transition like
15545         title by pushing a COPY_FILE_REQUEST cookie.
15546         (token::next, process_input_stack): Grok that.
15547         * troff/node.h (output_file::copy_file): Add x and y arguments.
15548         Make it non-pure.
15549         * troff/div.c (top_level_diversion::copy_file): Supply them.
15550         * troff/node.c (troff_output_file::copy_file): Add x and y
15551         arguments; moveto specified position.  Invalidate font_position
15552         array after copying file.
15553         (output_file::copy_file): New function.
15554         (suppressed_output_file::copy_file, ascii_output::copy_file):
15555         Removed.
15556         * troff/input.c (transparent_file): New function.
15557         (init_input_requests): Bind to "trf".
15558         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
15559         (process_input_stack): Likewise.
15561         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
15563         * troff/node.c (init_node_requests): New number registers .kern
15564         pointing to global_kern_mode, and .lg pointing to
15565         global_ligature_mode.
15567         * troff/node.c (ligature): Don't change it if we get a bad
15568         integer.
15570         * troff/input.c (do_define_string): Don't strip tabs.
15572         * troff/input.c (asciify_macro): Make the string_iterator auto.
15574         * troff/node.c (init_font_requests): Rename to...
15575         (init_node_requests):
15576         * troff/node.h: Change declaration.
15577         * troff/input.c (main): Change call.
15579         * troff/input.c (node::reread, diverted_space_node::reread): New
15580         methods.
15581         (process_input_stack): Call reread rather than
15582         get_diverted_space_node.
15583         * troff/node.c (node::get_diverted_space_node,
15584         diverted_space_node::get_diverted_space_node): Removed.
15585         * troff/node.h: Declare reread methods instead of
15586         get_diverted_space_node methods. Make `n' member private.
15587         * troff/input.c: (token::diverted_space): Removed.
15588         * troff/token.h: Removed declaration.
15589         
15591 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
15593         * eqn/script.c (script_box::compute_metrics): Don't let
15594         SUP_RAISE_FORMAT become negative.
15596         * tbl/table.c (table::do_row): Entries that don't end in the
15597         this row shouldn't make the row non-blank.
15598         
15599         * tbl/table.c (table::make_columns_equal): Only set the width of
15600         columns which are marked as equal.
15601         
15602         * tbl/main.c (process_data): Before issuing excess data error,
15603         if last character was a newline unget it; then get it again after
15604         the error.  Also include the contents of the entry in the message.
15606         * groff.c: New file.
15607         * Makefile: Build groff from groff.c.  Make it possible to use
15608         either groff.sh or groff.c as groff.
15609         * Makefile.bd: Similarily.
15611 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
15613         * groff.sh: Don't delay expansion of $@ in assignment to files.
15614         Remove occurrences of \".
15616 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
15618         * all Makefiles: Simplify and rearrange.
15620         * Makefile: Handle fmod like malloc.
15621         * lib/Makefile: Similarily.
15622         * lib/fmod.c: Remove #ifdef NEED_FMOD.
15624         * Makefile: Rename OPTIMISE to OPTIMIZE.
15626         * groff.sh: Remove assignment to PATH.
15627         * Makefile: Remove SHPATH variable.
15628         * Makefile.bd: Similarily.
15630         * groff.sh: Add -V option to print the pipeline instead of
15631         executing it.
15633 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
15635         * lib/font.c: Split off file searching into ...
15636         * lib/fontfile.c: New file.
15638         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
15640 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
15642         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
15643         Also change misleading comment.
15644         (table::do_vspan): Change similarily misleading comment.
15645         * tbl/main.c (process_data): A format row with an explicit `s'
15646         uses up a data line, even if all the other columns are `_' or `='.
15648         * troff/input.c (token::description): Fix description of
15649         TOKEN_DUMMY and TOKEN_EMPTY.
15651 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
15653         * groff.sh: Fix description of -Z in help message.
15655 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
15657         * pic/object.c (object_spec::make_object): Allow negative and zero
15658         line thicknesses.
15659         * pic/pic.y: Give linethick default value of -1.0.
15660         * pic/troff.c (troff_output::troff_output): Initialize
15661         last_line_thickness to BAD_THICKNESS.
15662         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
15663         (troff_output::line_thickness): Canonicalize negative thicknesses
15664         to RELATIVE_THICKNESS.
15665         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
15666         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
15667         to -1.0.
15668         (tex_output::start_picture): Set pen_size to -2.0.
15670         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
15671         0, then use 0 linewidth.
15672         (ps_printer::ps_printer): Initialize line_thickness to -1.
15674         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
15676         * ps/devps/symbolchars: Remove `or'.
15677         * ps/tmac.ps: Implement \(or with .char.
15679         * ps/devps/symbolchars: Move most characters into textmap.
15680         * ps/devps/textmap: Add names for troff bracket characters. Remove
15681         ul, ru, br, bv.
15683         * ps/devps/TSymbol.ps: Removed.
15684         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
15685         * ps/tmac.ps: Do with .char what TSymbol did.
15686         * ps/devps/download: Remove TSymbol.
15688         * ps/devps/T: Removed.
15689         * ps/devps/Troff.ps: Removed.
15690         * ps/devps/Troff.afm: Removed.
15691         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
15692         * ps/devps/download: Remove Troff.
15693         * ps/devps/FontMakefile: Remove T target.
15694         * ps/devps/DESC-A4: Remove T from font list.
15695         * ps/devps/DESC-letter: Likewise.
15697         * troff/input.c (macro_to_node): Rename to ...
15698         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
15699         character's definition while processing it.
15700         * troff/node.c (node::add_char, make_node): Change calls to
15701         macro_to_node accordingly.
15703         * troff/input.c (token::next): Translate \_ to \(ul.
15705         * tty/devascii/R.proto: Add `|'.
15706         * tty/devlatin1/R.proto: Likewise.
15708 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
15710         * man: Put the version number in all the man pages.
15712 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
15714         * Makefile.bd: New file.
15715         * README.bd: New file.
15717         * VERSION: New file.
15718         * lib/version.c: Removed.
15719         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
15720         in clean target.
15722         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
15723         environment variable.
15725         * all Makefiles: Split install target into install.bin for
15726         binaries, and install.nobin for everything else.
15727         * Makefile: Add bindist target.
15729         * man/afmtodit.man: New file.
15730         * man/Makefile: Add afmtodit.n to MAN1PAGES.
15731         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
15732         in BINDIR.
15733         * ps/Makefile: Pass BINDIR to make install in devps.
15735         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
15736         the space character.
15738         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
15740 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
15742         * ps/ps.c: Redo font downloading.
15743         * ps/devps/download: New file.
15744         * ps/devps/Makefile: Add download to DEVICEFILES.
15745         * ps/devps/afmtodit: Remove -d option.
15746         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
15747         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
15748         * ps/devps/zapfdr.ps: Likewise.
15749         * ps/devps/TSymbol.ps: Likewise.
15751 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
15753         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
15755 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
15757         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
15758         then strip the first line if it starts with %.
15759         * Makefile: Add a comment about this.
15761         * man/tfmtodit.man: New file.
15762         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
15763         * dvi/Makefile: Install tfmtodit in BINDIR.
15765         * dvi/tfmtodit.c (usage): Mention -v option.
15767 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
15769         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
15770         * troff/node.c (troff_output_file::transparent_char): Don't call
15771         flush_tbuf.
15773         * eqn: Add check_tabs method to most box classes.
15774         * eqn/box.c (box::top_level): Call check_tabs.
15776         * eqn/script.c (script_box::output): Use \Z.
15777         * eqn/limit.c (limit_box::output): Use \Z.
15779         * eqn/box.c (box::top_level): Use itoa.
15781 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
15783         * dvi/tmac.dvi: Add font translations for CR, C, TT.
15784         * dvi/devdvi/Makefile: Don't make links to CW.
15786         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
15787         HX, HD.
15788         * xditview/tmac.X: Likewise.
15790         * troff/node.c: Add font translation feature.
15791         (get_font_translation): New function.
15792         (symbol_fontno): Translate the font name.
15793         (mount_font_no_translate): Rename to mount_font to this.
15794         (mount_font): New function.
15795         (font_family::make_definite): Call mount_font_no_translate instead
15796         of mount_font.
15797         (mount_style): Translate the font name.
15798         (font_translate): New function.
15799         (init_font_requests): Bind "ftr" to font_translate.
15801         * ps/devps/prologue (SN): New procedure that rounds a position to
15802         the nearest (pixel + (.25,.25)).
15803         (DL): Use SN to round endpoints.
15805         * lib/version.c: Changed version to 0.5.
15807 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
15809         * Makefile: Move definition of PAGE to the very beginning, so that
15810         people are less likely to miss it.
15812 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
15814         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
15816         * troff/env.c (environment::choose_breakpoint): Make `can't find
15817         breakpoint' error a warning of type WARN_BREAK.  Change message to
15818         `can't break line'.
15819         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
15820         code 040000.
15821         * troff/input.c: Add WARN_BREAK to warning_table.  Include
15822         WARN_BREAK in DEFAULT_WARNING_MASK.
15824         * tty/tmac.tty: Add definition of \(+-.
15826         * groff.sh: Remove `--' option to set command.
15828         * dvi/devdvi/texsy.map: Remove duplicate md entry.
15830         * ps/devps/eqnchar: Better definition of cdot using md.
15831         * dvi/devdvi/eqnchar:  Likewise.
15832         * xditview/devX100/eqnchar:  Likewise.
15833         * xditview/devX75/eqnchar: Likewise.
15834         * eqn/lex.c: Add definition of cdot.
15836 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
15838         * troff/input.c (get_optional_char): New function.
15839         * troff/input.c (set_page_character): Use get_optional_char(),
15840         rather than has_arg() and tok.get_char(1).
15841         * troff/env.c (tab_character, leader_character, hyphen_char,
15842         field_characters): Likewise.
15843         (margin_character): Likewise.  Also always delete the
15844         margin_character_node.
15846         * troff/input.c (token::get_char): Use token::description.
15848         * troff/input.c (has_arg): Don't skip over tab and \}.
15849         * troff/number.c (start_number): Give a warning if the number
15850         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
15852 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
15854         * troff/input.c (empty_name_warning, non_empty_name_warning): New
15855         functions.
15856         (get_name, get_long_name): Use these.  Rename `warn' argument to
15857         `required'.
15859         * troff/node.c (get_fontno): Test that the symbol is not null.
15861         * troff/input.c (token::description): New function.
15862         * troff/number.c (parse_term): Use token::description in `numeric
15863         expression expected' message.
15864         * troff/groff.h: Add WARN_MISSING.
15865         * troff/number.c (start_number): New function.
15866         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
15867         get_incr_number): Use start_number().
15868         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
15869         default.
15870         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
15871         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
15872         token::descripion.
15873         * troff/input.c (token::get_char): Use WARN_MISSING.
15874         * troff/input.c (token::delimiter): Use token::description.
15875         * troff/env.c (environment_switch): Back out Aug 3 change.
15876         * troff/input.c (has_arg): Skip over \}s and tabs but give a
15877         warning.
15878         * troff/token.h (token::tab): New function.
15879         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
15880         * troff/reg.c (alter_format): Likewise.
15881         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
15883 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
15885         * troff (most files): Redo warnings. Divide warnings into various
15886         categories; warning() has an additional first argument indicating
15887         the category it falls into.
15888         * troff/input.c (main): -w now takes an argument. New option -W.
15889         (enable_warning, disable_warning): New functions.
15891         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
15892         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
15894 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
15896         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
15897         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
15898         * xditview/devX75/eqnchar: Likewise.
15899         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
15901         * eqn/other.c: When bar or over applies to a single character
15902         don't produce an overline_box or an underline_box. Instead produce
15903         an accent_box or an underaccent_box, with the accent a line
15904         whose width is accent_width.  New classes underaccent_box,
15905         overline_char_box and underline_char_box.
15906         * eqn/box.h: Move overline_box, underline_box, accent_box class
15907         declarations into eqn/other.c. Add declarations of
15908         make_underline_box, make_overline_box, make_accent_box.
15909         * eqn/eqn.y: Call make_overline_box, make_underline_box
15910         make_accent_box instead of constructors.
15911         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
15913         * eqn/other.c: Add accent_box::~accent_box.
15914         * eqn/box.h: Declare it.
15916         * groff.sh: With -Tps, use eqn -D.
15918         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
15919         rather than \l.
15920         (underline_box::output): Similarily.
15921         (accent_box::output): Use \Z.
15923         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
15924         bit smaller.)
15926 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
15928         * troff/div.c (top_level_diversion::transparent_output(unsigned
15929         char)): Use asciify.
15930         * troff/input.c (asciify): Don't make it static.
15931         * troff/token.h (asciify): Declare it.
15932         
15933         * troff/input.c (get_name, get_long_name, token::get_char,
15934         token::delimiter): Add an extra default argument which says
15935         whether a warning should be printed.
15936         * troff: Pass a non-zero argument to one of these rather than
15937         printing a warning directly.
15939 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
15941         * troff: Consistently use symbol::is_null.
15943         * troff/dictionary.h: Move some inline functions into
15944         dictionary.c.
15946         * troff/request.h: Move inline functions into input.c.
15947         (request_or_macro::invoke): Make it pure.
15949         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
15950         * troff/input.c (init_input_requests): Use class constant_int_reg.
15951         (class compatible_reg): Deleted.
15952         * troff/div.c (init_div_requests): Use class constant_int_reg.
15953         (class last_post_line_extra_space_reg): Deleted.
15955         * troff/env.c (tab_character): Don't change the tab character if
15956         we get an invalid argument.
15957         (hyphen_char): Similarily.
15959         * troff/reg.c (alter_format): Check that nm is not null.
15961         * Makefile, groff.sh: Make it possible to customize the commands
15962         used for printing PostScript and dvi files. Also make it possible
15963         to customize the path used by groff.sh.
15965         * eqn/eqn.y: Make `left' right associative.
15967 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
15969         * pic/pic.h: Added definition of M_SQRT2 for those systems that
15970         don't have it.
15972         * pic/pic.h: Removed definition of INT_MAX.
15974         * troff/node.c (italic_corrected_node::vertical_extent): Omit
15975         `return'.
15977         * troff/input.c (token::next):  Handle \R like \n.
15979 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
15981         * ps/tmac.pc (PSPIC): Simplify.
15983         * troff/env.c (tab_stops::to_string):
15984         * pic/pic.y (object_type_name):
15985         * pic/troff.c (simple_output::line):
15986         * pic/tex.c (tex_output::spline):
15987         * pic/object.c (object_spec::make_object):
15988         * tbl/main.c (process_data):  Add cases to switch statements to
15989         avoid cfront warnings. (Some of these are spurious, since the
15990         switch already has a default case.)
15992         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
15993         `ps-'.  Don't test systat; instead check number of arguments to
15994         ps-bb.
15996 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
15998         * macros/tmac.e: Do not decrease the page offset by 0.5i.
16000         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
16001         Unlink the file as soon as we have opened it, so that we don't
16002         have to bother with signal handlers.
16003         (handler): Deleted.
16004         (fatal_error_exit): Deleted.
16005         (main): Don't call signal.
16007         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
16008         can be ignored.
16009         * dvi/devdvi/Makefile: Use the -k option with S and MI.
16011         * pic/pic.y:  If there is a label, or an nth construction before
16012         the first `.' in the argument to `with', ignore it and generate a
16013         warning.
16014         * pic/lex.c (lex_warning): New function.
16016         * tbl/table.c (table::init_output): In section keep and release
16017         macro, use 0 indent when diverting and the correct indent when
16018         rereading.
16020         * troff/input.c (interpolate_number_format): Do not interpolate
16021         anything if the number register is not defined.
16023         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
16025 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
16027         * ps/devps/prologue (PICTURE): Set components of graphics state to
16028         their default values.
16030         * ps/devps/text.enc: Add trademark
16031         * ps/devps/textmap: Add names for club, spade, heart, diamond,
16032         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
16033         * ps/devps/symbolchars: Add names for summation and product.
16035         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
16036         suchthat. Add pp. Add upper-case letters.
16038         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
16039         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
16040         Upsilon.
16042         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
16043         rA (right angle bracket) to ra.  Introduce names for double-headed
16044         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
16045         * ps/devps/textmap: Likewise for ps device.
16046         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
16047         * tty/devascii/R.proto: Rename lA to la and rA to ra.
16048         * tty/devascii/R.proto: Likewise.
16049         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
16050         \(uA, \(dA.
16051         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
16053         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
16055         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
16056         def_table.
16058 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
16060         * troff/div.c (when_request): Use symbol::is_null rather than
16061         has_arg to determine whether we have an argument.
16062         (change_trap): Remove the trap if we get an invalid number. Give
16063         an error if we don't get at least the macro name.
16064         (diversion_trap): Remove trap if we get an invalid name or number.
16066         * troff/env.c (environment_switch): Pop if we get an invalid
16067         symbol or numeric expression.
16069         * troff/input.c (do_define_macro):  If EOF is encoutered while
16070         defining the macro, do tok.next() before returning.
16072         * troff/token.h (has_arg): Move definition from here, to ...
16073         * troff/input.c (has_arg): ... here
16075         * troff/env.c (space_size): Do nothing if we get an invalid argument.
16076         * troff/input.c (shift): Likewise.
16078         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
16079         for `.c'.
16081         * pic/troff.c (troff_output::start_picture):  Comment out calls to
16082         `..'.
16084         * eqn/main.c (do_file): Subtract 1 from current_lineno if
16085         interpret_lf_args succeeds.
16087         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
16088         \\.  This avoids problems with \$N.
16090         * groff.sh: Pass -C to preprocessors.
16092         * lib/lf.c (interpret_lf_args):  Be more flexible.
16094         * tbl/main.c (main): Add -C option.
16095         (table_input::get): Do not recognize TE if followed by character
16096         other than a space or newline unless -C option given.
16097         (process_input_file): Likewise for lf, TS.
16098         (process_data): Likewise for lf in text blocks.
16100         * eqn/main.c (main): Add -C option.
16101         (do_file): Don't recognize EQ, EN or lf if followed by character
16102         other than space or newline unless -C option given.
16103         * eqn/lex.c (file_input::read_line): Similarily.
16104         * eqn/eqn.h: Declare compatible_flag.
16106         * etc/soelim.c (main): Add -C option.
16107         (interpret_lf_args): Use version in libgroff.
16108         (do_file):
16110         * pic/main.c (main): Add -C option, which sets compatible_flag.
16111         (top_input::get), (top_input::peek):  If -C option not given,
16112         do not recognize .PS/.PE/.PF/.lf if followed by a character
16113         other than space or newline.
16114         * pic/lex.c (file_input::read_line): Similarily.
16115         * pic/pic.h: Add declaration of compatible_flag.
16117 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
16119         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
16121         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
16122         derived from node.  New class space_char_hmotion_node.
16123         * troff/input.c (asciify_macro): New function.
16124         * troff/input.c (init_input_requests): New request `asciify' bound
16125         to asciify_macro.
16126         * macros/mm.diff: New file.
16127         * Makefile:  In install.mm target use `patch' to apply
16128         macros/mm.diff.
16130         * troff/input.c (macro::print_size): Just print the size in bytes.
16132         * troff/div.c (return_request): Correct the argument
16133         interpretation.
16135 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
16137         * troff/node.h (class composite_node): Add sz member.
16138         * troff/node.c (composite_node::size): Return sz.
16139         * troff/input.c (macro_to_node):  Use the initial size in the
16140         environment as the size of the composite_node.
16142         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
16143         default.
16145 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
16147         * troff/div.c (change_trap): If we get a bad number expression,
16148         do nothing.
16150 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
16152         * lib/matherr.c (matherr): Define this only if math.h defines
16153         TLOSS.
16155 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
16157         * troff/div.c (macro_diversion::distance_to_next_trap): If there
16158         no diversion trap return vunits(INT_MAX - vresolution).
16160 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
16162         * troff/input.c (do_zero_width): New implementation that doesn't
16163         use a temporary environment. Use instead:
16164         (token::add_to_node_list): New function.
16165         * troff/env.c (environment::get_prev_char_height),
16166         (environment::get_prev_char_height),
16167         (environment::get_prev_char_skew): New functions.
16168         (environment::get_prev_char): New function.
16169         (environment::get_prev_char_width): Change to use get_prev_char.
16170         (init_env_request): Implement new registers .cht, .cdp, .csk.
16171         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
16172         \Z being processed in a separate environment.
16174 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
16176         * tbl/table.c: Removed TABLE_BOTTOM_REG.
16178         * tbl/table.c (table::init_output): In the section release macro,
16179         give a warning message if the section won't fit on one page.
16181         * tbl/table.c (table::do_top): Emit table keep only if table is
16182         boxed.
16183         (table::do_bottom): Likewise for table release.
16184         (table::table), (table::add_vertical_rule):  Remove reference to
16185         keep member.
16186         * tbl/table.h: Remove keep member.
16188         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
16189         SECTION_RELEASE_MACRO, if there's not enough space before the next
16190         trap to output the diversion, call T# ourselves, set
16191         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
16192         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
16193         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
16194         vertical position and return to it before turning traps on again.
16195         
16196 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
16198         * troff/node.c, troff/node.h: In classes derived from node,
16199         replace prev_char_width method by last_char_node method.
16200         * troff/env.c (environment::get_prev_char_width): Use
16201         node::last_char_node rather than node::get_prev_char_width.
16203         * Makefile: Added comment about -fno-inline on 68030-based
16204         Apollos.
16206         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
16207         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
16208         expressions using sizeof to int.
16209         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
16211         * macros/tmac.e (TS):  Don't move @f back past the current
16212         position.
16214 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
16216         * ps/ps.c (main): Buffer stderr.
16217         * dvi/dvi.c (main): Likewise.
16218         * tty/tty.c (main): Likewise.
16220         * ps/ps.c (ps_printer::do_import): Improve error handling.
16222         * troff/input.c (abort_request): Use asciify.
16224         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
16225         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
16226         type of first argument int rather than char.  This works around a
16227         bug on the 68030 based Apollo using g++ 1.37.1.
16229         * tbl/table.h (class table): Add `keep' member.
16230         * tbl/table.c (table::table): Initialize `keep'.
16231         (table::add_vertical_rule): Set `keep' to 1.
16232         (table::do_top): Only emit table keep macro is `keep' is non-zero.
16233         (table::do_bottom): Likewise for table release macro.
16234         (table::do_row): Emit section keep macro even if the row is 0.
16236 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
16238         * macros/tmac.e (@C): Preserve the font family across the change
16239         in environments.
16241 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
16243         * lib/font.c: Initialize font::hor and font::vert to 1.
16244         (font::load_desc): Check the values of font::hor and font::vert.
16246         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
16247         be included in a C compilation.
16248         (iftoa): Use INT_DIGITS. Include lib.h.
16249         (itoa): Likewise.
16250         (as_string): Likewise.
16251         * tbl/table.c: Removed definition of INT_DIGITS.
16252         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
16253         * troff/input.c (input_input_requests): Likewise.
16254         * ps/ps.c (make_encoding_name): Likewise.
16255         (ps_printer::set_style): Likewise.
16256         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
16258         * tty/devascii/R.proto: Map fm onto '.
16259         * tty/devlatin1/R.proto: Likewise.
16261 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
16263         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
16264         argument to \w is at a different input level.
16266         * tbl/table.c (table::init_output): Define a new macro
16267         REPEATED_VPT_MACRO, like vpt but if in a diversion also
16268         transparently outputs itself.
16269         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
16270         vpt.
16271         (table::do_row): Likewise.
16273         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
16274         TRANSPARENT_STRING_NAME.
16276         * tbl/table.c (table::init_output): In the table release macro
16277         print an error message and don't produce any output if after
16278         issuing the need request the table still will not fit.  Also
16279         remove the diversion after bringing it back.
16281         * tbl/table.c (table::init_output): Define a new macro
16282         REPEATED_MARK_MACRO, like mk but if in a diversion also
16283         transparently outputs itself.
16284         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
16285         is necessary because .TH might not call .T#.
16286         (table::do_top): Likewise TOP_REG.
16287         (table::define_bottom_macro): If TOP_REG is no longer valid, use
16288         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
16289         table header might contain just the two top rules.
16291 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
16293         * troff/div.c: Implement new request `ptr' to print all traps.
16295         * troff/env.c (init_env_requests): Implement `.tabs' reg with
16296         init_string_env_reg.
16297         * troff/env.c (class tab_reg): Deleted.
16299 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
16301         * troff/div.c: New number register .pn returns the number of the
16302         next page as set by the pn request.
16304         * macros/tmac.an: Redid headers and footers.  Number each manual
16305         entry starting from 1 unless \nC is > 0, like Sun.  Added an
16306         optional 5th argument to .TH which specifies the manual name and
16307         appears in the center of the header.  Understand the X, P and D
16308         registers like Sun.
16310 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
16312         * troff/env.c (init_env_requests): New number register `.lt' to
16313         return the title length.
16315         * troff/node.h (class transparent_dummy_node): New class.
16316         * troff/node.c (class transparent_dummy_node): Provide member
16317         functions. 
16318         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
16319         than a dummy_node.
16321         * troff/input.c (token::next): New escape sequence \).
16322         * troff/input.c (get_copy): Recognize \) in copy mode.
16324         * troff/input.c (input_stack::clear): New function.
16325         * troff/input.c (exit_request): Use input_stack::clear.
16327         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
16328         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
16330         * troff/env.c: Move set_page_character to input.c.  Move
16331         page_character to input.c also.
16332         * troff/env.c (title): Split off the reading of the parts of the
16333         title into read_title_parts.
16334         * troff/input.c (read_title_parts): New function.  Check the
16335         input_level when testing whether a token matches the delimiter.
16337         * troff/input.c (exit_request): New function.
16338         * troff/input.c (init_input_requests): Bind ex request to
16339         exit_request rather than exit_groff.
16341         * troff/input.c (exit_groff): Call tok.next() before
16342         process_input_stack().
16344 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
16346         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
16347         * troff/env.h: ditto.
16348         * troff/input.c: ditto.
16350         * troff/env.c (environment::is_empty): Test pending_lines.
16352         * troff/env.c (environment::have_pending_lines): Removed.
16354         * troff/input.c: Add request to flush pending lines from the
16355         environment.
16357         * troff/env.c, troff/env.h: Add automatic widow control feature.
16359         * troff/input.c (exit_groff):  Do process_input_stack() after
16360         do_break() but before setting exit_flag to 2.
16362         * troff/input.c: Remove FLUSH_PENDING_LINES and
16363         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
16364         environment after END_TRAP token seen, but only if there aren't
16365         any more traps still unfinished.
16366         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
16368 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
16370         * troff/env.c: Rename the `retain_size' member of class
16371         pending_output_line to `no_fill'.
16373         * troff/env.c (title): When the line is output, make the
16374         retain_size argument !fill.
16376         * troff/node.h: Add `hyphenated' member to struct breakpoint.
16377         * troff/node.c (space_node::get_breakpoints),
16378         (dbreak_node::get_breakpoints):  Fill this in.
16379         * troff/env.c:  Allow specification of maximum number of
16380         consecutive hyphenated lines.
16382         * troff/env.c (environment::is_empty): Add test for !current_tab.
16384 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
16386         * troff/env.c (environment::hyphenate_line): Don't completely give
16387         up if the word is not to be hyphenated; continue so that breaks
16388         can be made at break_char_node's.
16390         * lib/lib.h: Only define INT_MAX if it's not already defined;
16391         undef INT_MIN if it's already defined.
16393         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
16395         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
16396         This works around a bug in AT&T C++ 2.0 used with an ANSI C
16397         compiler.
16398         
16399         * macros/tmac.an (an-header): Set no-space mode.
16401         * macros/tmac.an (TH): Start a new page if necessary.
16403         * Started using ChangeLog at version 0.4.
16405 Local Variables:
16406 version-control: never
16407 coding: latin-1
16408 End: