Implement string-valued registers \n[.m] and \n[.M] to return the
[s-roff.git] / ChangeLog
blob2bce1c65f96814386f94d004db6ee1b5022a3037
1 2004-01-06  Werner LEMBERG  <wl@gnu.org>
3         Implement string-valued registers \n[.m] and \n[.M] to return the
4         name of the current drawing and background color, respectively.
6         * src/roff/troff/symbol.h: Moved to...
7         * src/include/symbol.h: Here.
8         Small fixes to make it work outside of the `troff' directory.
9         * src/roff/troff/symbol.cpp: Moved to...
10         * src/libs/libgroff/symbol.cpp: Here.
11         Small fixes to make it work outside of the `troff' directory.
13         * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
14         (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
15         Updated.
17         * src/include/color.h: Include symbol.h.
18         (color): Add new field `nm'.
19         * src/libs/libgroff/color.cpp (color::color): Updated.
21         * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
22         src/roff/troff/node.cpp, src/roff/troff/number.cpp,
23         src/roff/troff/reg.cpp: Don't include symbol.h.
25         * src/roff/troff/env.cpp: Don't include symbol.h.
26         (environment::get_glyph_color_string,
27         environment_get_fill_color_string): New member functions.
28         (init_env_requests): Handle `.m' and `.M' registers.
29         * src/roff/troff/input.cpp: Don't include symbol.h.
30         (default_symbol): Moved to symbol.cpp/symbol.h.
31         (do_glyph_color, do_fill_color, define_color): Pass symbol name
32         to color constructor.
33         * src/roff/troff/env.h: Updated.
35         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
36         Document new registers.
38 2004-01-05  Werner LEMBERG  <wl@gnu.org>
40         * src/roff/troff/nroff.cpp (space_node::get_breakpoints,
41         space_node::nbreaks): Protect against zero `next' field.
43 2004-01-03  Jeff Conrad  <jeff_conrad@msn.com>
45         In hpftodit, use the symbol sets offered in the TFM.
47         * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
48         (symbol_set, text_symbol_sets, special_symbol_sets,
49         symbol_set_table): Removed.
50         (get_printcode): Removed.
51         (read_symbol_sets): Initialize `symbol_set' field with
52         `NO_SYMBOL_SET'.
53         Simplify code to just use the `kind' value.
54         (output_charset): Improve output formatting.
55         (dump_symbols): Simplified.
57 2004-01-02  Werner LEMBERG  <wl@gnu.org>
59         * font/devlj4/generate/text.map: Add more MSL numbers.
61 2004-01-02  Jeff Conrad  <jeff_conrad@msn.com>
63         * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
64         (text_symbol_sets): Add more symbol sets.
65         (debug_flag): New static variable (moved from `main').
66         (get_printcode, show_symset): New functions.
67         (main): Remove `debug_flag'.
68         (output_charset): Use `show_symset'.
69         (dump_symbols):  Use `show_symset'.
70         Print symsets for all glyphs.
71         (read_map): Actually call `unicode_to_ucode_make' but this time
72         correctly.
74 2004-01-01  Werner LEMBERG  <wl@gnu.org>
76         * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
77         Fix placement of comments.
79 2004-01-01  Jeff Conrad  <jeff_conrad@msn.com>
81         * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
82         option `-d' is given.
83         (output_charset): Improve warning messages to give more information.
84         (dump_symbols): Make information more precise.
85         (usage): Updated.
86         (read_map): Don't call unicode_to_ucode_name; the glyph names must
87         appear as-is and shouldn't be decomposed.
89 2003-12-31  Werner LEMBERG  <wl@gnu.org>
91         * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
92         * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
93         (FONTS): Add TrueType font families Arial and Times New Roman.
94         (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
95         * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
96         `fl'.
98 2003-12-31  Jeff Conrad  <jeff_conrad@msn.com>
100         * test-groff.in (SEP): Quote value.
101         * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
102         `tem' to `char*' to avoid deallocation of a pointer to a constant
103         object which some compilers don't like.
105 2003-12-31  Werner LEMBERG  <wl@gnu.org>
107         * font/devlj4/generate (text.map, special.map): Rewritten to work
108         with the new hpftodit version.
110 2003-12-30  Jeff Conrad  <jeff_conrad@msn.com>
112         * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
113         set and 8bit character code for all glyphs also.
115 2003-12-30  Werner LEMBERG  <wl@gnu.org>
117         * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
119 2003-12-29  Werner LEMBERG  <wl@gnu.org>
121         More fixes for MSVC compiler.
123         * doc/Makefile.sub, contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use
124         $(SEP).
126         * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
127         STDERR_FILENO) [_MSC_VER]: Define conditionally.
128         (getpid) [_MSC_VER]: Remove.
129         Include direct.h and process.h conditionally.
131         * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
132         parentheses for a_delete.
134         * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
136         * test-groff: Replaced with...
137         * test-groff.in: This new template to handle path separator
138         properly.
140         * configure.ac: Check for direct.h and process.h.
141         Generate test-groff script.
142         * configure, src/include/config.hin: Regenerated.
144 2003-12-28  Werner LEMBERG  <wl@gnu.org>
146         Add integral extension glyph.
147         Add new option `-x' to afmtodit to suppress use of built-in AGL.
149         * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
151         * font/devps/generate/textmap: Provide entry for `integralex' to
152         override (old) PUA value of the AGL.
153         * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
154         * font/devps/*: Regenerated.
156         * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
157         * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
159 2003-12-27  Werner LEMBERG  <wl@gnu.org>
161         Add forgotten `coproduct' symbol (already available for DVI).
163         * font/devhtml/R.proto, font/devps/generate/textmap,
164         font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
165         src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
166         U+2210 (\[coproduct]).
168 2003-12-26  Jeff Conrad  <jeff_conrad@msn.com>
170         hpftodit has been extended to handle TrueType metric files and
171         more glyphs.  See hpftodit.man for more details.
173         * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h, 
174         ctype.h, and unicode.h.
175         s/msl/charcode/ everywhere since we now handle Unicode values also.
176         (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
177         Use it where appropriate.
178         (MULTIPLIER): Replaced with...
179         (multiplier): New global static variable.
180         (scale): Updated.
181         (tag_type): Add more TFM tags.
182         (tag_name): New array.
183         (ENUM_TYPE, FLOAT_TYPE): Removed.
184         (BYTE_TYPE): New value assigned.
185         (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
186         (text_symbol_sets, special_symbol_sets): Extended to cover more
187         sets.
188         (check_type): Add return value.
189         (check_units): Add parameters to get ppi and upem values.
190         Handle TrueType TFM data.
191         (output_font_name): New function.
192         (output_charset): Add parameter to handle TFM type.
193         Handle TrueType TFMs also.
194         (em_fract): New macro.
195         (dump_tags): Be much more verbose and handle more tags.
196         (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
197         (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
198         functions.
199         (read_map): Add parameter to handle TFM type.
200         Handle both MSL and Unicode mappings.
201         (main): Add two new command line options `-a' and `-q'.
202         Updated to make use of new functions.
203         (usage): Updated.
205         * src/utils/hpftodit/hpuni.cpp: New file.
207         * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
208         Updated.
210 2003-12-25  Werner LEMBERG  <wl@gnu.org>
212         * src/include/nonposix.h (read) [_MSC_VER]: Define.
214 2003-12-24  Werner LEMBERG  <wl@gnu.org>
216         * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
217         by Michail Vidiassov <master@iaas.msu.ru>.
219 2003-12-20  Werner LEMBERG  <wl@gnu.org>
221         * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
222         and u0049_0307.
223         Add missing latin-2 glyphs.
224         * font/devutf8/R.proto: Add missing latin-2 glyphs.
226         * tmac/troffrc: Load `composite.tmac' earlier.
228         * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
229         u00{53,73}_0327, and u0049_0307.
230         * tmac/X.tmac: Add u00{47,67}_0306.
231         * tmac/tty-char.tmac: Use composite glyph names for readability.
233         * NEWS: Updated.
235         * src/include/unicode.h: Remove `extern' keywords.
237 2003-12-20  Nilgün Belma Bugüner  <nilgun@superonline.com>
239         * tmac/latin5.tmac: New file.
241 2003-12-19  Werner LEMBERG  <wl@gnu.org>
243         Add some glyphs needed for Turkish.
245         * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
246         and u0049_0307.
248         * tmac/composite.tmac: Add `,' as a synonym for `ac' accent. 
249         * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
250         u00{53,73}_0327, and u0049_0307.
252 2003-12-18  Werner LEMBERG  <wl@gnu.org>
254         * src/devices/grops/ps.cc (ps_output::put_float): Revert change
255         from 2001-10-04.
256         Remove trailing zeros.
258 2003-12-17  Werner LEMBERG  <wl@gnu.org>
260         Make \? transparent to end-of-sentence recognition.
262         * src/roff/troff/input.cc (non_interpreted_node): Add
263         `ends_sentence' member function.
265 2003-12-16  Werner LEMBERG  <wl@gnu.org>
267         * doc/groff.texinfo: Document `dt' request correctly.
268         Other minor typographical improvements.
270 2003-12-10  Michail Vidiassov  <master@iaas.msu.ru>
272         * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
274 2003-12-10  Richard Stallman  <rms@gnu.org>
276         * LICENSE: Better wording.
278 2003-12-09  Werner LEMBERG  <wl@gnu.org>
280         * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
281         * configure, NEWS: Updated.
283 2003-12-08  Werner LEMBERG  <wl@gnu.org>
285         * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
287 2003-12-07  Bernd Warken  <bwarken@mayn.de>
289         * LICENSE: Updated.
291 2003-12-07  Werner LEMBERG  <wl@gnu.org>
293         * INSTALL: Improved.
295 2003-12-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
297         Use path separator character of target platform for compiled-in
298         default paths.
300         * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
301         * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
302         * configure: Regenerated.
303         * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
305 2003-12-05  Werner LEMBERG  <wl@gnu.org>
307         * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
308         Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
310 2003-12-04  Bernd Warken  <bwarken@mayn.de>
312         * LICENSE: New file.
314 2003-12-03  Werner LEMBERG  <wl@gnu.org>
316         * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
317         ligatures present in AFM files since groff currently only
318         understands some standard ligatures and nothing else.
320 2003-12-03  Jeff Conrad  <jeff_conrad@msn.com>
322         * src/roff/groff/groff.cpp (main): Don't run the spooler if
323         option -v is given.
325         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
326         messages.
327         Close stdout copy.
328         Don't use Unix wait flags.
330 2003-12-02  Werner LEMBERG  <wl@gnu.org>
332         * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
333         src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
334         src/roff/troff/uniuni.cpp: Moved to...
335         * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
336         src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
337         src/libs/libgroff/uniuni.cpp: Here.
339         * src/include/Makefile.sub.old (HDRS),
340         src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
341         src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
343 2003-12-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
345         * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
346         `DEBUG_FILE'.
347         Updated all users.
349 2003-12-01  Werner LEMBERG  <wl@gnu.org>
351         * groff.texinfo: Document special behaviour of `.vs 0'.
352         Improve documentation of `cflags' request.
353         * NEWS: Updated.
355 2003-11-29  Werner LEMBERG  <wl@gnu.org>
357         * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
358         * font/devlj4/CORONET: Regenerated.
360 2003-11-24  Werner LEMBERG  <wl@gnu.org>
362         * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
363         if processing hyphenation patterns in traditional mode.
364         Improve error messages.
366 2003-11-20  Werner LEMBERG  <wl@gnu.org>
368         * src/roff/troff/node.cpp (troff_output_file::put_char_width,
369         troff_output_file::put_char): Fix type of local variable `c'.
371 2003-11-19  Werner LEMBERG  <wl@gnu.org>
373         * src/roff/groff/pipeline.c (P): Removed.  Updated all function
374         declarations.
375         (i_to_a): Removed.  libgroff already provides this function.
376         (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
378 2003-11-18  Keith Marshall  <keith.d.marshall@ntlworld.com>
380         * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
381         HAVE_DECL_SYS_LIST.
383 2003-11-17  Werner LEMBERG  <wl@gnu.org>
385         * COPYING: Use correct version.
387 2003-11-11  Werner LEMBERG  <wl@gnu.org>
389         LynxOS 4.0.0 doesn't declare vfprintf.
391         * configure.ac: Check for vfprintf.
392         * configure: Regenerated.
393         * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
394         * src/include/config.hin: Regenerated.
396 2003-11-10  Werner LEMBERG  <wl@gnu.org>
398         LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
400         * configure.ac: Check for vsnprintf.
401         * configure: Regenerated.
402         * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
403         `HAVE_VSNPRINTF'.
404         * src/include/config.hin: Regenerated.
406 2003-11-09  Werner LEMBERG  <wl@gnu.org>
408         * aclocal.m4: Updated syntax to autoconf 2.59.
409         (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
410         Don't check for gsos2.
411         (GROFF_SRCDIR, GROFF_BUILDDIR): Removed.  autoconf 2.59 provides
412         working abs_top_srcdir and abs_top_builddir.
414         * configure.ac: Updated syntax to autoconf 2.59.
415         Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
416         Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
417         * configure: Regenerated.
419         * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
420         s/@groff_top_builddir@/@abs_top_builddir@/.
422         * src/roff/groff/pipeline.c (xstrsignal):
423         s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
425 2003-11-07  Werner LEMBERG  <wl@gnu.org>
427         * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
428         make start angle smaller than end angle to circumvent a bug in tpic
429         handling of some versions of dvipdfm (and dvipdfmx).
431 2003-10-30  Werner LEMBERG  <wl@gnu.org>
433         * src/devices/grops/grops.man: Improve section on creating EPS.
435 2003-10-29  Werner LEMBERG  <wl@gnu.org>
437         * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
438         -P-pletter).
440 2003-10-28  Werner LEMBERG  <wl@gnu.org>
442         * doc/groff.texinfo: Fix documentation of `.if'.
444 2003-10-27  Michail Vidiassov  <master@iaas.msu.ru>
446         * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
447         the form `uniXXXX' also.
449 2003-10-27  Werner LEMBERG  <wl@gnu.org>
451         * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
452         contrib/pic2graph/pic2graph.sh: Implement secure management of
453         temporary files.
454         Pass `-P-pletter' to groff to avoid data outside of the converted
455         area -- some versions of `convert' (for example 5.3.8) don't check
456         the bounding box of the image but always use a fixed image size
457         (letter paper format).
458         * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
459         contrib/pic2graph/pic2graph.man: Updated.
461         * src/roff/groff/groff.man: Document $TMP and $TEMP.
463 2003-10-26  Werner LEMBERG  <wl@gnu.org>
465         * src/preproc/pic/troff.cpp (troff_output::simple_circle,
466         troff_output::simple_ellipse, troff_output::simple_arc,
467         troff_output::simple_line, troff_output::simple_spline,
468         troff_output::simple_polygon): Insert a space before arguments.
469         (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
470         latter doesn't produce a node, so the following `.sp -1' would do
471         the wrong thing.
472         Don't emit `.sp -1' after \M.  This also doesn't produce a token
473         (and we don't have to care about compatibility mode).
474         (troff_output::set_color, troff_output::reset_color): Don't emit
475         `.sp -1' after \M and \m.
477         * src/roff/troff/input.cpp (old_have_input): New global variable.
478         (input_stack::get): Handle `old_have_input'.
479         (process_input_stack) <token::TOKEN_NEWLINE>: Call
480         `trapping_blank_line' depending on `old_have_input', not
481         `have_input'.
483 2003-10-20  Keith Marshall  <keith.d.marshall@ntlworld.com>
485         * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
486         (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
487         default directory names for temporary files.
488         [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
490         * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
491         [__MSDOS__] (run_pipeline): Honour environment variables.
492         Don't use `tmpnam' but `tempnam' to work around messy
493         implementation.
495         * README.MinGW: New file.
497 2003-10-16  Werner LEMBERG  <wl@gnu.org>
499         * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
500         `(*t)->next' without testing validity of `*t'.
501         (usage): Make it more readable.
503 2003-10-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
505         Make html device run under both MS-DOS and Win32.
507         * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
508         MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
509         spawn or fork+exec has to be used, and whether parent must sleep
510         until the child process terminates.  Used in
511         `char_buffer::run_output_filter'.
512         (copyofstdoutfd): Removed.
513         (char_buffer): Replace `write_file_html' and `write_file_troff'
514         member functions with `emit_troff_output' and `run_output_filter'.
515         (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
516         macros.
517         (replaceFd): Replaced with...
518         (set_redirection): New auxiliary function.
519         (waitForChild): Replaced with...
520         (save_and_redirect): New auxiliary function for.
522         (char_buffer::do_html, char_buffer::do_image): Simplified, using new
523         functions.
525 2003-10-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
527         * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
528         (GROFF_LIBC): New function.
529         * configure.ac: Call GROFF_LIBC.
530         Check for `kill'.
531         * configure: Regenerated.
533         * src/include/lib.h: Handle __MINGW32__.
534         * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
535         Add macro for `pipe'.
536         Define P_tmpdir.
538         * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
539         correctly.
541         * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
542         Implement.
544 2003-10-13  Werner LEMBERG  <wl@gnu.org>
546         Finally fix change 2003-08-26, based on ideas from Chuck Silvers
547         <chuq@chuq.com>.
549         * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
550         directory.
552 2003-10-12  Werner LEMBERG  <wl@gnu.org>
554         * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
555         src/roff/troff/input.cc (usage): Updated.
557         * NEWS, doc/groff.texinfo: Updated.
559 2003-10-12  Peter Miller  <millerp@canb.auug.org.au>
561         * src/libs/libgroff/searchpath.cpp
562         (search_path::open_file_cautious): New function which also handles
563         `-' as stdin and stdout depending on the access mode.
564         * src/include/searchpath.h (search_path): Updated.
566         * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
567         * src/devices/grops/ps.h: Include `searchpath.h'.
568         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
569         Open resource file with `include_search_path.open_file_cautious'.
570         * src/devices/grops/grops.man: Document new `-I' switch.
572         * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
573         (main), src/devices/grolj4/lj4.cpp (main),
574         src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
576         * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
577         Replaced with...
578         (include_search_path): New global variable.
579         (include_path_append): Removed.
580         (main): Use `include_search_path.command_line_dir' to handle `-I'.
581         (do_file): Simplify, using new
582         `include_search_path.open_file_cautious'.
584         * src/roff/groff/groff.cpp (print_commands): Accept file handle as
585         parameter.
586         (main): Pass arguments to `-I' to both troff and devices.
587         Improve handling of `-V'.
588         * src/roff/groff/groff.man: Document changes to -I and -V.
590         * src/roff/troff/input.cpp (include_search_path): New global
591         variable.
592         (next_file, source, ps_bbox_request, transparent_file,
593         process_input_file): Use new
594         `include_search_path.open_file_cautious'.
595         (main) Handle `-I' switch.
596         * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
597         Use new `include_search_path.open_file_cautious'.
598         * src/roff/troff/node.h: New extern symbol `include_search_path'.
599         * src/roff/troff/troff.man: Document new `-I' switch.
601 2003-09-15  Ruslan Ermilov  <ru@FreeBSD.org>
603         Support multiple calls of .Lb in LIBRARY section.
605         * tmac/doc-common (doc-in-library-section): New register.
606         (doc-section-library): New string.
607         (Sh): Set `doc-in-library-section'.
608         (Rd): Updated.
609         * tmac/doc-syms (Lb): Insert breaks before and after arguments
610         if in LIBRARY section.
611         * tmac/doc.tmac (doc-save-global-vars): Updated.
612         * NEWS, tmac/groff_mdoc.man: Updated.
614 2003-09-14  Ruslan Ermilov  <ru@FreeBSD.org>
616         * tmac/doc-common (doc-default-operating-system): New variable.
617         (Os): Use it.
619 2003-09-08  Werner LEMBERG  <wl@gnu.org>
621         * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
623 2003-08-31  Werner LEMBERG  <wl@gnu.org>
625         * contrib/mom/Makefile.sub: Fix last change to make it really work.
626         * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
627         (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
628         $(DEVFILES) are not empty.
629         * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
631 2003-08-26  Chuck Silvers  <chuq@chuq.com>
633         * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
634         with parallel runs of `make'.
636 2003-08-23  Stephen Gildea  <gildea@stop.mail-abuse.org>
638         * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
639         insert SORT_SEP.  With certain combinations of sort specifications,
640         refer sorted entries in the wrong order.  In particular, entries
641         with a missing field should be be sorted before all entries that
642         have that field, before refer looks to the next field.
644 2003-08-23  Werner LEMBERG  <wl@gnu.org>
646         * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
647         g++ linker is used.  Reported by Mark J. Reed
648         <mark.reed@turner.com>.
650 2003-08-16  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
652         Add key character `x' to tbl which makes tbl call a user-defined
653         macro on a table cell.
655         * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
656         * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
657         `set_modifier' after printing the compatibility request.
658         (set_modifier): Print call to `m->macro' if not empty.
659         * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
660         `macro'.
661         (process_format): Implement cases `x' and `X'.
662         * src/preproc/tbl/tbl.man, NEWS: Updated.
664 2003-08-15  Werner LEMBERG  <wl@gnu.org>
666         * doc/groff.texinfo: Minor fixes.
668 2003-08-09  Werner LEMBERG  <wl@gnu.org>
670         * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
672 2003-08-07  Werner LEMBERG  <wl@gnu.org>
674         * doc/Makefile.sub: Not all shells expand wildcards in the `for'
675         argument list to nothing if there is no file to match.  Use `ls' as
676         a protection, similar to autoconf.
678         * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
679         empty argument lists.
681         * doc/groff.texinfo: Improve documentation how vertical spacing
682         and line breaks interact.
683         Other minor fixes.
685         * tmac/www.tmac: Initialize `www-htmlimage-gap'.
687 2003-08-03  Werner LEMBERG  <wl@gnu.org>
689         * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
690         EPS (using eps2eps or similar programs to compute the bounding box).
692 2003-07-24  Werner LEMBERG  <wl@gnu.org>
694         * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
695         * doc/texinfo.tex: Updated from texinfo 4.6.
696         * README.CVS: From now on we need texinfo 4.6.
698 2003-07-23  Werner LEMBERG  <wl@gnu.org>
700         Add requests `dei1' and `ami1' for completeness.
702         * src/roff/troff/input.cc (calling_mode): Remove
703         CALLING_DISABLE_COMP.
704         (comp_mode): New enumeration.
705         (do_define_string, define_string, define_nocomp_string,
706         append_string, append_nocomp_string): Updated.
707         (do_define_macro): Add third parameter.
708         (define_macro, define_nocomp_macro, define_indirect_macro,
709         append_macro, append_nocomp_macro, append_indirect_macro): Updated.
710         (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
711         functions.
712         (ignore): Updated.
713         (init_input_requests): Add `dei1' and `ami1'.
715         * tmac/trace.tmac: Handle de1 and am1.
716         (de): Improve tracing message.
717         (am): Add missing `do'.
718         (return): Use de1.
720         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
721         Document new requests.
723 2003-07-22  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
725         Add option -G to .MPIMG to insert a gap between text and the image.
727         * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
728         www-finish-left-ll): Updated.
729         (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
730         (MPIMG): Make option -L and -R optional.
731         Implement option -G.
733 2003-07-22  Gaius Mulley  <gaius@glam.ac.uk>
735         * src/devices/grohtml/post-html.cpp
736         (html_printer::do_file_components): Don't use `stdout' as lvalue
737         since it can be a macro.
739 2003-07-22  Werner LEMBERG  <wl@gnu.org>
741         * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
742         the corresponding test in aclocal.m4.
744 2003-07-21  Werner LEMBERG  <wl@gnu.org>
746         * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
747         names but RGB values directly.  Otherwise pnmtopng depends on
748         an external file `rgb.txt' which maps colour names to values.
750 2003-07-20  Werner LEMBERG  <wl@gnu.org>
752         * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
753         * configure, src/include/config.hin: Regenerated.
755         * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
757 2003-07-19  Werner LEMBERG  <wl@gnu.org>
759         * PROBLEMS: Add solution for UTF-8 problem with hyphens.
761 2003-07-18  Werner LEMBERG  <wl@gnu.org>
763         * *.man: Switch to non-compatibility mode temporarily if GNU
764         syntax extensions are used in the particular man page.
766         * PROBLEMS: Add solutions for SGR problems.
768 2003-07-17  Werner LEMBERG  <wl@gnu.org>
770         Don't ignore grotty's command line options if \X'tty: sgr ...' is
771         used to change the drawing scheme.
773         * src/devives/grotty/tty.cpp (bold_flag_option,
774         underline_flag_option, italic_flag_option, reverse_flag_option,
775         bold_underline_mode_option): New global variables.
776         (update_options): New function.
777         (tty_printer::special): Call update_options.
778         (main): Don't set xxx_flag but xxx_flag_option, then call
779         update_options.
781 2003-07-14  Werner LEMBERG  <wl@gnu.org>
783         Make grotty emit proper Unicode box drawing characters for -Tutf8.
785         * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
786         values.
787         (hline_char, vline_char): New global variables.
788         (tty_printer::tty_printer): Initialize them.
789         (tty_printer::draw): Emit START_LINE and END_LINE flags for both
790         horizontal and vertical lines.
791         (crossings): New global array.
792         (tty_printer::end_page): Use it to determine the proper crossing
793         character for -Tutf8.
795 2003-07-12  Werner LEMBERG  <wl@gnu.org>
797         * doc/Makefilesub (HTMLDOCFILESALL): New macro.
798         (HTMLDOCFILES): Revert to `pic.html'.
799         (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
801 2003-07-11  Werner LEMBERG  <wl@gnu.org>
803         * doc/pic.ms: Improve documentation of absolute coordinates.
804         Document absolute positioning of pictures.
806         * NEWS: Add new pic capability.
808 2003-07-09  Hartmut Henkel  <hartmut_henkel@gmx.de>
810         * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
811         Rewritten.
813 2003-07-07  Werner LEMBERG  <wl@gnu.org>
815         Implement support for dashed and dotted ellipses in pic.  Based on
816         a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
818         * src/preproc/pic/common.cpp (common_output::ellipse_arc,
819         common_output::dashed_ellipse, common_output::dotted_ellipse): New
820         functions.  Ellipse arcs are approximated with circle arcs.
821         * src/preproc/pic/common.h (common_output): Updated.
822         * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
823         functions.
824         * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
826         * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
828 2003-07-06  Werner LEMBERG  <wl@gnu.org>
830         Make grotty work on platforms which have unsigned char as the
831         default for char.  Based on a patch by Thomas Klausner
832         <wiz@netbsd.org>.
834         * src/devices/grotty/tty.cpp (schar): New typedef.
835         Updated calls to declare_ptable and implement_ptable.
836         (glyph): Use schar for back_color_idx and fore_color_idx.
837         (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
838         (tty_printer::tty_color, tty_printer::tty_printer,
839         tty_printer::color_to_idx, tty_printer::put_color): Updated.
841 2003-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
843         * src/roff/nroff/nroff.sh: Add option -d for completeness.
844         * src/roff/nroff/nroff.man: Updated.
846 2003-07-05  Werner LEMBERG  <wl@gnu.org>
848         * NEWS, tmac/groff_www.man: Updated.
849         * doc/Makefile.sub: Updated.
851 2003-07-05  Gaius Mulley  <gaius@glam.ac.uk>
853         Implement support for multiple HTML output files.
855         * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
856         -j command line option.
858         * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
859         global variables.
860         (file): New fields `new_output_file', `require_links',
861         `output_file_name'.
862         (file::file): Updated.
863         (files::set_file_name, files::set_links_required,
864         files::are_links_required, files::is_new_output_file,
865         files::file_name, files::next_file_name): New functions.
866         (header_desc): New fields `no_of_level_one_headings',
867         `header_filename'.
868         (header_desc::header_desc): Updated.
869         (header_desc::write_headings): Handle multiple files.
870         (html_printer::write_header): Save file name in which header occurs.
871         (html_printer::determine_header_level): Possibly split files on
872         level one headings.
873         (html_printer::do_links, html_printer::troff_tag): Updated.
874         (html_printer::insert_split_file, html_printer::do_job_name,
875         html_printer::emit_link, html_printer::write_navigation,
876         html_printer::do_file_components): New functions.
877         (html_printer::~html_printer): Handle multiple files.
878         (main): Handle command line option `-j'.
880         * src/devices/grohtml/grohtml.man: Updated.
882         * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
883         which splits file.
885         * tmac/www.tmac (JOBNAME): New macro.
886         * tmac/s.tmac (SH-NO-TAG): New macro.
887         (@SH): Call SH-NO-TAG.
888         (@NH): Updated.
890 2003-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
892         * tmac/groff_mdoc.man: Improve documentation of punctuation
893         characters.
895 2003-07-04  Ruslan Ermilov  <ru@FreeBSD.org>
897         * tmac/doc.tmac (Bd): Change to doc-Li-font later.
899 2003-07-03  Werner LEMBERG  <wl@gnu.org>
901         * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
903 2003-07-01  Ruslan Ermilov  <ru@FreeBSD.org>
905         * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
906         after `/*' and `*/'.
907         Fix spacing.
908         (Fn, Fo): Reduce indentation in synopsis.
910         * tmac/doc-common (doc-check-depth): New macro.
911         (doc-end-macro, Sh, Ss): Use it.
912         (Cd): Fix behaviour in synopsis.
913         (In): Make it parsed and callable.
914         If not in the synopsis, represent the C header file enclosed in
915         angle brackets.
916         (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
917         Use minus, not hyphen.
919         * tmc/groff_mdoc.man: Updated.
921 2003-07-01  Werner LEMBERG  <wl@gnu.org>
923         Integrated grap2graph, contributed by Eric S. Raymond.
925         * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
926         New files.
927         * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
928         contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
930 2003-07-01  Colin Watson  <cjwatson@debian.org>
932         * src/xditview/*.c: Add prototypes, fix return types, add includes.
933         Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
935 2003-06-31  Ruslan Ermilov  <ru@FreeBSD.org>
937         * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
939 2003-06-31  Werner LEMBERG  <wl@gnu.org>
941         * doc/Makefile.sub (CLEANADD): Remove all files created by
942         running `make groff.{pdf,dvi}'.
944         * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
945         src/xditview also.
947 2003-06-30  Werner LEMBERG  <wl@gnu.org>
949         * Makefile.in (SHELL): Define as @SHELL@.
950         (mkinstalldirs): Use $(SHELL).
951         (MDEFINES): Add $(SHELL).
952         * Makefile.comm (SHELL): Removed.
954 2003-06-29  Werner LEMBERG  <wl@gnu.org>
956         * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
957         The X11 documentation files use them.
958         * tmac/groff_ms.man, doc/groff.texinfo: Document them.
960 2003-06-15  Robert Goulding  <goulding@Princeton.EDU>
962         * tmac/e.tmac (@C): Handle .ad also.
964 2003-06-12  Werner LEMBERG  <wl@gnu.org>
966         * src/preproc/tbl/tbl.man: Document formatting of text blocks.
968         * src/roff/troff/input.cc (token::next) <handle_escape_char>:
969         Assign `n' even here.  It is possible to construct a node
970         immediately following an escape character:
972           .di xx
973           \?\\\?a
974           .br
975           .di
976           .xx
978 2003-06-10  Werner LEMBERG  <wl@gnu.org>
980         * README.WIN32: Removed.
981         * MANIFEST: Updated.
983 2003-06-07  Werner LEMBERG  <wl@gnu.org>
985         * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
987 2003-06-05  Werner LEMBERG  <wl@gnu.org>
989         * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
990         in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
992 2003-06-03  Werner LEMBERG  <wl@gnu.org>
994         * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
995         is done by the calling function.
997 2003-05-22  Ruslan Ermilov  <ru@FreeBSD.org>
999         * tmac/X.tmac: Fix definition of `em'.
1001 2003-05-22  Werner LEMBERG  <wl@gnu.org>
1003         * src/roff/troff/input.cc (return_macro_request): Fix detection of
1004         argument.
1006 2003-05-18  Werner LEMBERG  <wl@gnu.org>
1008         * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
1009         to make items work which consist only of a tag.
1011 2003-05-17  Werner LEMBERG  <wl@gnu.org>
1013         * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
1014         aren't stretched in a tag (this can fail with unformatted boxes).
1015         Instead, insert a break and go back one line.
1017 2003-05-16  Werner LEMBERG  <wl@gnu.org>
1019         * src/roff/troff/input.cc (return_macro_request): If called with
1020         argument pop macro twice.  We need this to trace `return'.
1022         * tmac/trace.tmac: Handle `return'.
1023         Fix typos.
1025         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1026         Document.
1028 2003-05-15  Larry Kollar  <kollar@alltel.net>
1030         * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
1031         registers `FPS', `FVS', and `FPD'.
1033 2003-05-15  Werner LEMBERG  <wl@gnu.org>
1035         * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
1036         correctly.
1038 2003-05-03  Ruslan Ermilov  <ru@FreeBSD.org>
1040         * tmac/groff_mdoc.man: Slight improvements.
1042 2003-05-03  Werner LEMBERG  <wl@gnu.org>
1044         * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
1045         `doc-header-space' after header line if register `cR' is set.
1047 2003-05-02  Werner LEMBERG  <wl@gnu.org>
1049         * TODO: Updated.
1051 2003-05-01  Ruslan Ermilov  <ru@FreeBSD.org>
1053         * tmac/doc-common (Nd): Use \[em].
1055 2003-05-01  Werner LEMBERG  <wl@gnu.org>
1057         * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
1058         doc-footer-space): Initialize to 0.5i.
1059         (doc-setup-page-layout): Don't set doc-header-space and
1060         doc-footer-space.
1062 2003-04-30  Werner LEMBERG  <wl@gnu.org>
1064         * REVISION: Set to 1.
1066         * doc/pic.ms: Document possible problems with `figname'.
1068 2003-04-29  Werner LEMBERG  <wl@gnu.org>
1070 Version 1.19 released
1071 =====================
1073         * VERSION: Set to 1.19.
1074         * REVISION: Set to 0.
1075         * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
1077         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
1078         Define charset as `US-ASCII' in html output.
1080         * tmac/www.tmac (ULE): Add missing scaling indicator.
1082         * win32-diffs: Removed.
1084 2003-04-28  Werner LEMBERG  <wl@gnu.org>
1086         * doc/groff.texinfo: Document `dn' and `dl' registers if used with
1087         `.da' and `.boxa'.
1088         Document how to insert discardable whitespace with `.ss'.
1090 2003-04-27  Werner LEMBERG  <wl@gnu.org>
1092         * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
1093         work with plain TeX also.
1095         * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
1097 2003-04-25  Gaius Mulley  <gaius@glam.ac.uk>
1099         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
1100         Use a loose DTD.
1102 2003-04-24  Werner LEMBERG  <wl@gnu.org>
1104         * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
1105         vbox with positive height and zero depth if in TeX mode.
1107         * NEWS: Document glyph name changes for grodvi and grolj4.
1109 2003-04-23  Werner LEMBERG  <wl@gnu.org>
1111         * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
1112         * doc/pic.ms: Fixed.
1114 2003-04-21  Werner LEMBERG  <wl@gnu.org>
1116         HP-UX 10.20 has `snprintf' but it isn't declared.
1118         * configure.ac: Add declaration test for snprintf.
1119         * configure: Regenerated.
1120         * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
1121         * src/include/config.hin: Regenerated.
1123 2003-04-19  Werner LEMBERG  <wl@gnu.org>
1125         Add keyword `figname' to pic, specifying the name of the picture
1126         box in TeX mode.  Based on a patch from William J Poser
1127         <wjposer@unagi.cis.upenn.edu>.
1129         * src/preproc/pic/pic.y: New token `FIGNAME'.
1130         (macro_name): New rule of type <str>.
1131         (placeless_element): Handle `FIGNAME'.
1132         * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
1133         * src/preproc/pic/main.cpp (graphname): New global variable.
1134         (do_picture): Initialize `graphname'.
1135         * src/preproc/pic/pic.h: Updated.
1136         * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
1137         `graphname'.
1138         Simplify TeX code.
1139         (tex_output::text): Beautify output.
1140         * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
1141         `shaded' and `outlined' unconditionally.
1142         * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
1143         Minor improvements.
1145         * PROBLEMS, README.CVS: Mention that bison version 1.875b or
1146         greater is necessary.
1148 2003-04-17  Hartmut Henkel  <hartmut_henkel@gmx.de>
1150         Add option -r to soelim to avoid emission of `.lf' lines.
1151         Add option -t to produces TeX comment lines instead of `.lf' lines.
1153         * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
1154         and `tex_flag'.
1155         (usage): Updated.
1156         (main): Handle `-r' and `-t'.
1157         (set_location): Handle `raw_flag' and `tex_flag'.
1158         * src/preproc/soelim/soelim.man, NEWS: Updated.
1160 2003-04-17  Werner LEMBERG  <wl@gnu.org>
1162         * tmac/hyphenex.sh: Replaced with...
1163         * tmac/hyphenex.pl: This perl script to avoid sed compatibility
1164         nightmares.
1166         * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
1167         if --quiet is used for the configure script.
1168         * configure: Regenerated.
1170 2003-04-16  Werner LEMBERG  <wl@gnu.org>
1172         * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
1173         Add `const' to second argument.
1174         (html_printer::add_table_end): Add `const' to argument.
1175         * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
1176         `const' to arguments.
1177         * src/devices/grohtml/html-text.h: Updated.
1179         * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
1180         * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
1181         argument.
1183         * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
1184         cast for integer constant.
1186         * src/preproc/html/pre-html.cpp (image_device): Use `const'.
1187         (writeNbytes): Add `const' to first argument.
1188         (writeString): Add `const' to argument.
1189         (char_buffer::can_see): Add `const' to third argument.
1190         * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
1191         `const' to argument.
1192         * src/preproc/html/pushback.h: Updated.
1194         * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
1195         (include_path_append): Add `const' to argument.
1196         (do_file): Updated.
1198         * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
1199         for `value'.
1200         (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
1201         * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
1202         for `value'.
1203         (unicode_decompose_init::unicode_decompose_init): Updated.
1204         * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
1205         for `value'.
1206         (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
1207         * src/roff/troff/input.cc (process_startup_file): Add `const' to
1208         argument.
1210         * tmac/hyphenex.sh: Make script more portable by using a here
1211         document.
1213 2003-04-15  Werner LEMBERG  <wl@gnu.org>
1215         Renamed all `*.cc' files to `*.cpp'.
1216         Updated all configuration files, makefiles, and documentation.
1218 2003-04-14  Werner LEMBERG  <wl@gnu.org>
1220         * tmac/hyphenex.sh: Slight improvements.
1222 2003-04-13  Werner LEMBERG  <wl@gnu.org>
1224         * font/devascii/R.proto, font/devcp1037/R.proto,
1225         font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
1226         character slots with unnamed glyphs.
1228         * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
1229         (an-first): New global variable.
1230         (an-header): Emit vertical space between multiple man pages.
1232 2003-04-11  Werner LEMBERG  <wl@gnu.org>
1234         * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
1235         values.
1237 2003-04-10  Werner LEMBERG  <wl@gnu.org>
1239         * PROBLEMS: Revised.
1241 2003-04-10  Bernd Warken  <bwarken@mayn.de>
1243         * doc/webpage.ms: Improved.
1245 2003-04-09  Werner LEMBERG  <wl@gnu.org>
1247         Add register \n[.height] which returns the value of \H.
1248         Add register \n[.slant] which returns the value of \S.
1250         * src/roff/troff/env.cc (init_env_requests): Implement.
1251         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1252         Document.
1254 2003-04-08  Werner LEMBERG  <wl@gnu.org>
1256         * tmac/html.tmac: Move some of the data into html-end.tmac.
1257         Remove most of the character translations for eqn since html fonts
1258         now cover those characters.
1259         Load www.tmac.
1260         * tmac/html-end.tmac: New file.
1261         * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
1262         * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
1263         * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
1265 2003-04-07  Werner LEMBERG  <wl@gnu.org>
1267         * man/groff_out.man: Document negative values of `N' if -Thtml is
1268         used.
1270 2003-04-06  Werner LEMBERG  <wl@gnu.org>
1272         * Makefile.comm (depend.temp): Check location of YTABC.
1274 2003-04-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1276         * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
1277         binary path.
1278         (groff_bin_path): Rename to GROFF_BIN_PATH.
1279         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
1280         * doc/Makefile.in (TROFFBIN): New variable for troff
1281         binary path.
1282         (GROFFBIN): New variable for groff binary path.
1283         (groff_bin_path): Rename to GROFF_BIN_PATH.
1284         (TROFF): Use TROFFBIN.
1285         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
1286         * doc/Makefile.sub (GROFFBIN): New variable for groff
1287         binary path.
1288         (groff_bin_path): Rename to GROFF_BIN_PATH.
1289         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
1291         * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
1292         with INSTALL_SCRIPT.
1293         (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
1294         * Makefile.dev (all): Depend on DEVSCRIPTS.
1295         (install_dev): Likewise.
1296         * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
1297         scripts.
1298         * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
1299         (DEVGENSCRIPTS): New variable to hold generated scripts.
1301 2003-04-05  Werner LEMBERG  <wl@gnu.org>
1303         * src/libs/libdriver/input.cc (IntArray::operator[],
1304         IntArray::get_data): Remove meaningless `const' in return value.
1306         * README.CVS: New file.
1308 2003-04-04  Werner LEMBERG  <wl@gnu.org>
1310         Check for stdint.h in C++, not in C.
1312         * aclocal.m4 (GROFF_STDINT_H): New function,
1313         * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
1314         AC_CHECK_HEADERS.
1315         * configure, src/include/config.hin: Regenerated.
1316         * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
1319         Fix handling of &nbsp; in grohtml.  To do this, troff emits `N'
1320         with a negative value, representing the width of the unbreakable
1321         space (only for -Thtml).  grohtml then converts this back to
1322         &nbsp; and uses the value of N as its width.
1324         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
1325         unbreakable_space_node::tprint): Emit `N-<width>'.
1326         * src/include/printer.h (printer::set_numbered_char): Make it
1327         virtual.
1328         Make members `font_table' and `nfonts' protected instead of private.
1329         * src/devices/grohtml/post-html.cc
1330         (html_printer::set_numbered_char): New member function.
1333         * src/libs/libgroff/maxfilename.cc:
1334         s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
1336         * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
1337         emit word marker.
1339 2003-04-03  Sergey A. Osokin  <osa@freebsd.org.ru>
1341         * man/roff.man: Small fixes.
1343 2003-04-03  Werner LEMBERG  <wl@gnu.org>
1345         Make groff independent from locale's numeric settings.
1347         * configure.ac: Check for `setlocale'.
1348         * configure, src/include/config.hin: Regenerated.
1350         * src/include/lib.h: Handle HAVE_SETLOCALE.
1352         * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
1353         (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
1354         (main), src/preproc/pic/main.cc (main): Call `setlocale'.
1357         * doc/groff.texinfo: Change dir category to `Typesetting'.
1358         (Man font macros): Mention that there is no space between arguments
1359         of .BI and friends.
1361         * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
1362         (*printer::change_color, *printer::change_fill_color): Add missing
1363         `const'.
1365 2003-04-02  Werner LEMBERG  <wl@gnu.org>
1367         * src/devices/grohtml/html-table.cc (html_table::emit_col,
1368         html_table::is_gap): Compute table widths after converting border
1369         positions to avoid rounding errors.
1371 2003-04-01  Werner LEMBERG  <wl@gnu.org>
1373         * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
1374         `space_emitted' properly.
1376 2003-03-31  Werner LEMBERG  <wl@gnu.org>
1378         * src/devices/grohtml/html-table.cc: Fix column width calculation.
1379         (html_table::set_linelength): Don't add 1.
1380         (html_table::add_indent): Don't subtract 1.
1382         * tmac/html.tmac: Set default page offset to zero.
1384 2003-03-30  Werner LEMBERG  <wl@gnu.org>
1386         Make groff emit `&nbsp;' for `\ ' and `\~' if `-Thtml' is used.
1388         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
1389         unbreakable_space_node::tprint): New functions.
1390         (troff_output_file): Make space_char_hmotion_mode::tprint and
1391         unbreakable_space_node::tprint to friends.
1392         * src/roff/troff/node.h: Updated.
1394         * font/devhtml/R.proto: Add `&nbsp' at position 0xA0 (as defined
1395         in the HTML standard).
1397 2003-03-29  Werner LEMBERG  <wl@gnu.org>
1399         * src/roff/troff/env.cc (point_size): Fix emission of html tag.
1400         Otherwise, the following code
1402           .di xxx
1403           .ps 10
1404           a
1405           .br
1406           .di
1407           x\*[xxx]
1409         produces `x a' instead of `xa'.  This is a temporary fix, disabling
1410         font changes in diversions for -Thtml.
1412         * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
1413         `HTML-TAG'.
1414         (an-do-tag-html): Merge with ...
1415         (an-do-tag): This macro.
1416         Change code slightly to circumvent grohtml bug.
1417         * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
1419         * src/devices/grohtml/html-table.cc (html_table::emit_col,
1420         html_table::is_gap): Round `width' properly.
1422         * tmac/html.tmac: Provide some default layout parameters for
1423         grohtml.
1425         * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
1426         command.
1428 2003-03-28  Werner LEMBERG  <wl@gnu.org>
1430         src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
1432 2003-03-27  Werner LEMBERG  <wl@gnu.org>
1434         * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
1435         defined.
1437 2003-03-20  Werner LEMBERG  <wl@gnu.org>
1439         * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
1440         `.vs'.
1441         * doc/groff.texinfo: Updated.
1443 2003-03-19  Werner LEMBERG  <wl@gnu.org>
1445         * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
1446         TOKEN_END_TRAP>: Reset `have_input'.
1448 2003-03-18  Werner LEMBERG  <wl@gnu.org>
1450         * src/roff/groff/groff.man: Mention groff_trace man page.
1452 2003-03-16  Werner LEMBERG  <wl@gnu.org>
1454         * Makefile.in (LIBEXT): New variable to indicate the file extension
1455         of library files.  Computed heuristically from $(OBJEXT).
1456         (MDEFINES): Add $(LIBEXT).
1457         * Makefile.lib, Makefile.comm: Use it.
1459         * src/utils/pfbtops/pfbtops.c (get_text): New function.  Split
1460         overlong lines into smaller chunks.
1461         (get_binary): New function.
1462         (main): Use them.
1463         * src/utils/pfbtops/pfbtops.man: Updated.
1465 2003-03-15  Colin Watson  <cjwatson@debian.org>
1467         * src/roff/groff/groff.man: Minor syntax fix.
1469 2003-03-14  Egil Kvaleberg  <egil@kvaleberg.no>
1471         * src/devices/grops/ps.cc (ps_printer::media_set,
1472         ps_printer::~ps_printer): Handle zero paper width and length.
1474 2003-03-13  Werner LEMBERG  <wl@gnu.org>
1476         Add options -p and -l to grodvi.
1478         * src/devices/grodvi/dvi.cc: Include paper.h.
1479         (landscape_flag, user_paper_length, user_paper_width): New global
1480         variables.
1481         (dvi_printer::begin_page): Emit `papersize' special.
1482         Set color after initialization of `cur_h' and `cur_v'.
1483         (main): Add options `-l' and `-p'.
1484         * font/devdvi/Makefile.sub (DESC): Set `papersize'.
1485         * src/devices/grodvi/grodvi.man, NEWS: Updated.
1487         * src/devices/grops/psrm.cc (valid_input_table): Fixed.
1489 2003-03-12  Werner LEMBERG  <wl@gnu.org>
1491         * src/devices/grops/grops.man: Move documentation of .PSPIC to...
1492         * man/groff_tmac.man: This man page.
1493         * man/groff_font.man: Declare `paperwidth' and `paperlength' as
1494         deprecated.
1496         * tmac/X.tmac: Don't load pspic.tmac.
1498 2003-03-11  Werner LEMBERG  <wl@gnu.org>
1500         Make variable `pr' local to libdriver/input.cc.  Based on a patch
1501         by Bernd Warken <bwarken@mayn.de>.
1503         * src/include/driver.h (pr): Removed.
1505         * src/libs/libdriver/input.cc (pr): New global variable.
1506         (do_file): Deallocate `pr'.
1507         * src/libs/libdriver/printer.cc (pr): Removed.
1509         * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
1510         (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
1511         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
1512         (main): Don't delete `pr'.
1514 2003-03-10  Werner LEMBERG  <wl@gnu.org>
1516         * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
1517         * tmac/papersize.tmac: New file.
1518         * tmac/troffrc: Include `papersize.tmac'.
1519         * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
1520         * tmac/an-old.tmac: Set LT to LL by default.
1522         * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
1523         doc/groff.texinfo: Updated.
1525         * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
1526         bug which caused all odd iso papers to have wrong dimensions.
1528         * src/devices/grops/ps.cc (user_paper_width): New global variable.
1529         (main) <'p'>: Set `user_paper_width' also.
1530         (ps_printer::media_width, ps_printer::media_height): Use values
1531         given with option `-p'.
1533 2003-03-09  Werner LEMBERG  <wl@gnu.org>
1535         * src/include/nonposix.h: Provide default for SET_BINARY.
1537         * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
1538         src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
1539         unconditionally.
1541         * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
1542         (main): Treat \r\n as \n.
1544 2003-03-08  Werner LEMBERG  <wl@gnu.org>
1546         * tmac/an-old.tmac: Use register `HY' to control hyphenation.
1547         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
1549 2003-03-07  Werner LEMBERG  <wl@gnu.org>
1551         Added support to access more than 256 glyphs in Type 1 fonts.
1553         * src/devices/grops/ps.cc (subencoding): New structure.
1554         (style): Add `sub' field.
1555         Updated all users.
1556         (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
1557         Add `set_subencoding', `get_subfont' and `encode_subfont' member
1558         functions.
1559         Updated all users.
1560         (ps_printer::set_char): Use `set_subencoding'.
1561         (make_subencoding_name): New function.
1562         (ps_printer::set_style): Handle case where `sty.sub' is not zero.
1563         (ps_printer::~ps_printer): Emit subencoding definitions.
1565         * src/devices/grops/psrm.cc (valid_input_table): New array to
1566         properly support EBCDIC.
1567         (white_space): Add `\f'.
1568         (ps_get_line): Change first argument to be of type `string &'.
1569         Updated all callers.
1570         This allows to get lines of arbitrary length.
1571         Use `valid_input_table'.
1572         Remove warning about non-conforming PS line length.  This seems
1573         not to be of great importance -- for example, dvips don't emit
1574         a warning either.
1575         (PS_LINE_MAX): Removed.
1576         (matches_comment): Change first argument to be of type `string &'.
1578         * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
1580         * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
1581         %AGL_to_unicode, %default_ligatures): New hash tables.
1582         Read all map entries.
1583         Add unencoded characters.
1584         Check for default ligatures if there are no `L' entries.
1585         Print all kern entries.
1586         Print all characters in charset.
1587         * src/utils/afmtodit/afmtodit.man: Updated.
1589         * font/devps/*: Regerated all fonts.
1591         * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
1592         of characters, just use `.trin'.  Otherwise the mapping depends
1593         on the font encoding.
1594         * tmac/ps.tmac: Add `fi' and `fl'.
1595         Improve `Fi' and `Fl'.
1596         * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
1597         * tmac/Xps.tmac: Fix `em'.
1599         * NEWS: Updated.
1601 2003-03-04  Werner LEMBERG  <wl@gnu.org>
1603         * src/roff/troff/input.cc (charinfo_to_node_list): Reset
1604         `have_input'.
1606 2003-03-03  Werner LEMBERG  <wl@gnu.org>
1608         * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
1610         * font/devps/generate/textmap: Remove entry `similarequal'.
1611         * font/devps/symbolmap: Updated.
1613 2003-03-02  Werner LEMBERG  <wl@gnu.org>
1615         * src/libs/libgroff/font.cc (font::load): Fix error message for
1616         bad character type.
1618         * src/devices/grops/grops.man: Improve documentation of the -b
1619         flag.
1621         * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
1622         `ascii' and `cp1047'.
1624 2003-03-01  Werner LEMBERG  <wl@gnu.org>
1626         Document composite glyphs and the `composite' request.
1628         * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
1630 2003-02-28  Werner LEMBERG  <wl@gnu.org>
1632         * font/devdvi/generate/ec.map: Add some more Unicode entities.
1633         * font/devdvi/*EC: Updated.
1635         * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
1636         * tmac/latin1 (latin1-tr): Undo any previous mapping.
1637         * tmac/troffrc: Load `composite.tmac'.
1638         * tmac/Makefile.sub (NORMALFILES): Updated.
1640         * doc/groff.texinfo (Input Encodings): New section.
1641         * NEWS: Updated.
1643 2003-02-27  Werner LEMBERG  <wl@gnu.org>
1645         * doc/texinfo.tex: New version 2003-02-11.06.
1647         * tmac/doc-common (Dt): Don't emit warning for unknown section.
1648         * tmac/groff_mdoc.man: Fix description of `Dt'.
1650 2003-02-26  Egil Kvaleberg  <egil@kvaleberg.no>
1652         * font/devps/prologue.ps: Fix for included Postscript that does
1653         a setpagedevice -- which is now safely ignored.
1655         * NEWS: Updated.
1657         * src/devices/grops/ps.cc: Now sets the page size in the generated
1658         document.  This is done in two ways: Via a %%-comment for gv and
1659         the like, and via a PageSize and setpagedevice for programs that
1660         understands Postscript proper, like ps2pdf.
1662         * src/devices/grops/ps.h: New broken-flag to avoid page size
1663         definition, if required.
1665         * src/devices/grops/grops.man: New broken-flag 16 mentioned.
1667         * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
1668         Not really necessary due to the fix in prologue.ps, but cleaner:
1669         Such information does not belong in an .eps file.
1671         * doc/Makefile.sub: See doc/Makefile.in.
1673 2003-02-26  Ralph Corderoy  <ralph@inputplus.co.uk>
1675         * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
1676         instead of P1 since the latter is broken in some versions of netpbm.
1677         * configure: Updated.
1679 2003-02-26  Larry Kollar  <kollar@alltel.net>
1681         Make man pages more customizable.
1683         * tmac/an-old.tmac (FT): New register holding footer distance from
1684         bottom.
1685         (HF): New string holding the default heading font.
1686         (TH): Handle registers `IN' and `SN' set on the command line.
1687         Use `FT'.
1688         (PT, BT): New strings to customize header and footer lines.
1689         (an-header, an-footer): Use them.
1690         (SH, SS): Use `HF'.
1691         * tmac/groff_man.man: Document changes.
1693         * doc/groff.texinfo: Document man changes.
1694         Document Ultrix extensions of man.
1696 2003-02-26  Werner LEMBERG  <wl@gnu.org>
1698         * src/roff/troff/input.cc (do_width, do_if_request): Reset
1699         `have_input' after changing back to old environment.
1701         * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
1702         function up to be defined before first call.  This is necessary to
1703         avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
1705         * src/utils/afmtodit/afmtodit.pl: Make script search for files in
1706         the default font directory also.  Based on a patch from James
1707         J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
1708         * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
1709         * src/utils/afmtodit/afmtodit.man: Document it.
1711         * NEWS: Updated.
1713         * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
1715 2003-02-25  Gaius Mulley  <gaius@glam.ac.uk>
1717         * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
1718         (GROFF_PNMTOPS_NOSETPAGE): New macro.
1719         * configure.ac: Use it.
1720         * configure: Regenerated.
1721         * Makefile.in: Updated.
1723         * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
1724         (CLEANADD): Add www.tmac-sed.
1725         (pnmtops_nosetpage): Define default.
1726         (install_data): Handle www.tmac-sed and substitute
1727         @PNMTOPS_NOSETPAGE@.
1728         (stamp-sed): Add www.tmac.
1729         * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
1730         It now breaks URLs at suitable places.
1731         (www:substring_ok): New register set by...
1732         (www:@test_substring): New macro.
1733         (www:error): New alias to www-error.
1734         (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
1735         New macros.
1736         (URL): Use www:url_breaks.
1737         (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
1738         (CDS, CDE): New macros.
1740 2003-02-25  Werner LEMBERG  <wl@gnu.org>
1742         * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
1743         buffer overflow.
1745 2003-02-24  Werner LEMBERG  <wl@gnu.org>
1747         Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
1748         can be negative also.
1750         * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
1751         `int16'.
1752         (read_char_table): Avoid negative ascenders.
1753         (output_charset): Add cast.
1754         * font/devlj4/*: Regenerated.
1756         Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
1757         possible.
1759         * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
1760         * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
1761         of `<>'.
1762         * font/devdvi/*: Regenerated.
1764         Map `la' and `ra' to U+27E8 and U+27E9.  These two characters have
1765         normal width, while the previously used characters (U+2329 and
1766         U+232A) are classified as wide due to canonical equivalence with the
1767         CJK punctuation characters U+3008 and U+3009.
1769         * font/devutf8/R.proto: Updated.
1770         * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
1772         * man/groff_char.man: Simplify handling of table traps by
1773         introducing `start block' and `end block' macros.
1774         (Ns, Ne, 2s, 2e, Ds, De): New macros.
1775         (DL): Make it work with Unix troff also.
1776         Fix code values of `la' and `ra'.
1778         * tmac/dvi.tmac: Define `<>' for CW and CWI.
1780 2003-02-23  Gaius Mulley  <gaius@glam.ac.uk>
1782         * src/devices/grohtml/post-html.cc (element_list::~element_list):
1783         New destructor, fixing a major memory leak.
1785 2003-02-22  Werner LEMBERG  <wl@gnu.org>
1787         * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
1788         to be in conformance with Unicode 3.0 and newer.
1790         * font/devlj4/generate/text.map: Add `Eu'.
1791         * font/devlj4/generate/special.map: Flip `*e' and `+e'.
1792         * font/devlj4/S: Regenerated.
1794         * man/groff_char.man: Completely rewritten.
1796         * doc/groff.texinfo: Fix description of request and macro arguments.
1798 2003-02-20  Gaius Mulley  <gaius@glam.ac.uk>
1800         Valgrind fixes.
1802         * src/devices/grohtml/html-table.cc (html_table::~html_table):
1803         Deallocate `columns' list.
1804         * src/devices/grohtml/post-html.cc (char_block::~char_block):
1805         New destructor.
1806         (text_glob::text_glob_html, text_glob::text_glob_special,
1807         text_glob::text_glob_line, text_glob::text_glob_auto_image,
1808         text_glob::text_glob_tag): Avoid memory leaks.
1809         (text_glob::remember_table): Free memory before reassigning.
1811 2003-02-19  Werner LEMBERG  <wl@gnu.org>
1813         Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
1814         alias `hbar'), the Planck constant over two pi.
1816         * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
1817         `+e' for position 34.
1818         * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
1819         `u2662' and `u2661'.
1820         * font/devdvi/{MI,S}: Regenerated.
1821         * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
1822         * font/devlbp/*: Add `hbar' alias.
1823         * font/devlj4/generate/special.map: Ditto.
1824         * font/devlj4/S: Regenerated.
1825         * font/devps/generate/symbolchars: Add `+e'.
1826         * font/devps/generate/textmap: Fix PS name for `-h'.
1827         Add `hbar' alias.
1828         * font/devps/symbolmap: Regenerated.
1830         * src/devices/grops/ps.cc (transform_fill): Removed since unused.
1832         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
1833         `-h', `hbar'.
1834         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
1835         `-h'.
1837         * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
1838         `hbar'.
1839         * tmac/tty-char.tmac: Add `+e'.
1841 2003-02-17  Werner LEMBERG  <wl@gnu.org>
1843         Another round trying to really fix problems with `have_input'.
1845         * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
1846         (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
1848         * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
1849         handling if both foreground and background colors are default.
1851         * doc/groff.texinfo (Debugging): Document .lf differences to
1852         AT&T troff.
1854 2003-02-16  Werner LEMBERG  <wl@gnu.org>
1856         * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
1857         null-bytes in created string.
1859         * src/roff/troff/input.cc (lookup_color, interpolate_macro,
1860         alias_macro, lookup_request): Improve warning messages.
1862         * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
1863         not `strdup'.
1864         Free `last_image_filename'.
1866         * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
1867         `buffer'.
1868         (imageList::createPage, imageList::createImage): Use `free', not
1869         `a_delete'.
1870         (imageItem::~imageItem): Free `imageName'.
1871         (addRegDef): Use `strsave', not `strdup'.
1872         (get_resolution): Free `pathp'.
1874 2003-02-15  Werner LEMBERG  <wl@gnu.org>
1876         * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
1877         to `dummy'.
1879 2003-02-14  Werner LEMBERG  <wl@gnu.org>
1881         Add memory management for colors to deallocate unnamed colors
1882         properly.
1884         * src/include/color.h (color): New members `free_list' and `next'.
1885         New member functions `new' and `delete'.
1886         Add destructor.
1887         * src/libs/libgroff/color.cc: Implement it.
1889         * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
1890         for array size of new operator.
1892         * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
1893         redundant comparison.
1895         * src/roff/troff/input.cc (word_space_node::reread,
1896         hmotion_node::reread): Avoid warning about unused parameter.
1897         (reset_output_registers): Remove redundant parameter.
1898         (define_color): Undo change 2003-02-12.
1900         * src/roff/troff/reg.h: Updated.
1902         * src/roff/troff/node.cc (troff_output_file::really_print_line,
1903         output_file::put_filename, real_output_file::really_put_filename,
1904         ascii_output_file::really_print_line,
1905         break_char_node::get_hyphen_list): Avoid warning about unused
1906         parameter.
1907         (suppress_node::tprint): Updated.
1909         * configure.ac: Check declaration for rand() and srand().
1910         * configure: Regenerated.
1912         * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
1913         conditionally.
1914         * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
1915         and srand().
1917         * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
1918         to avoid compiler warnings.
1920         * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
1921         unused.
1923         * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
1924         is unused.
1925         * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
1926         (unused) parameter.
1927         Updated all callers.
1929         * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
1930         is unused.
1931         * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
1932         * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
1934         * src/devices/grohtml/post-html.cc (html_printer::emit_line):
1935         Parameter is unused.
1936         (html_printer::add_table_end): Define parameter conditionally.
1937         * src/devices/grohtml/output.cc (simple_output::special): Parameter
1938         is unused.
1940         * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
1941         (lbp_printer::set_char): Last parameter is unused.
1943         * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
1945 2003-02-13  Werner LEMBERG  <wl@gnu.org>
1947         New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
1948         Make \D'f ...' move horizontally again for backwards compatibility.
1949         Replace it with \D'Fg ...' where appropriate to avoid dependency
1950         on horizontal resolution.
1952         * src/roff/troff/input.cc (do_get_long_name): New function.
1953         (get_long_name): Call it.
1955         (read_draw_node): Handle `\D'Fx ...' by calling ...
1956         (read_color_draw_node): New function.
1958         (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
1959         `end'.
1960         Pass it to `do_get_long_name' which is used instead of
1961         `get_long_name'.
1963         * src/libs/libdriver/input.cc (color_from_Df_command): Remove
1964         unnecessary value guard.
1965         (parse_D_command) <'f'>: Add horizontal shift.
1967         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
1968         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
1969         (FILL_MAX): Removed.
1971         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1972         Updated.
1974 2003-02-12  Werner LEMBERG  <wl@gnu.org>
1976         * src/roff/troff/input.cc (do_name_test, do_expr_test,
1977         do_zero_width): Push `\n' if closing delimiter is missing.
1979         (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
1980         <'F'>: Make \F non-transparent at the beginning of line.
1981         (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
1982         token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
1983         `have_input'.
1985         (define_color): Free color in case of reassignment.
1987         * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
1988         @DefescListEnd): Use @Var, not @var.
1989         Fix all calls.
1991         * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
1993         * src/preproc/pic/object.cc (object_spec::~object_spec): Free
1994         `shaded' and `outlined' arrays.
1995         (object_spec::object_spec): Initialize `shaded' and `outlined'.
1996         (graphic_object::set_fill_color, graphic_object::set_outline_color):
1997         Use strsave.
1998         (closed_object::set_fill_color): Ditto.
1999         * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
2000         instead of strdup.
2001         (troff_output::reset_color): Use a_delete instead of free.
2002         * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
2004 2003-02-11  Werner LEMBERG  <wl@gnu.org>
2006         * doc/groff.texinfo: Improve documentation of `ad'.
2007         Document that \D'f...' is dependent on the horizontal resolution.
2008         * man/groff_diff.man: Improve documentation of \D'f...'.
2010         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
2011         compensating \h'...' for \D'f ...' since the latter no longer moves
2012         current position.
2013         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
2015 2003-02-10  Werner LEMBERG  <wl@gnu.org>
2017         Improve error messages for `x F' (and `F') commands.
2019         * src/include/error.h: Add declaration for
2020         `current_source_filename'.
2021         * src/libs/libgroff/filename.cc: Add `current_source_filename'.
2022         * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
2023         parameter for source file string.
2024         Updated all callers.
2026         * src/libs/libdriver/input.cc: Add `current_source_filename'.
2027         (remember_source_filename): New function.
2028         (parse_x_command <'F'>, do_file <'F'>): Use it.
2030 2003-02-09  Werner LEMBERG  <wl@gnu.org>
2032         Make grotty not emit warnings about unknown colors more than
2033         necessary.
2035         * src/devices/grotty/tty.cc: Include `ptable.h'.
2036         (TTY_MAX_COLORS): Removed.
2037         (DEFAULT_COLOR_IDX): Defined to -1.
2038         (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
2039         (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
2040         Change `tty_colors' to be a ptable.
2041         First arg of `put_color' is now `char'.
2042         New functions `make_rgb_string' and `tty_color'.
2043         (tty_printer::tty_printer): Use `tty_color'.
2044         (tty_printer::color_to_idx): Return value is now `char'.
2045         Use `tty_color'.
2047         * src/include/color.h (color): Add `print_color' member function.
2048         * src/libs/libgroff/color.cc (color::print_color): Implement it.
2050 2003-02-08  Werner LEMBERG  <wl@gnu.org>
2052         Valgrind fixes.
2054         * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
2055         encoding file.
2057         * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
2058         assume that value has been allocated with `new[]', thus use
2059         `a_delete' for deallocation.
2061         * src/libs/libdriver/input.cc (get_integer_arg,
2062         get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
2063         where appropriate.
2065         * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
2066         * src/libs/libgroff/nametoindex.cc
2067         (character_indexer::named_char_index): Use `new <type>[1]'.
2069         * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
2070         <type>[1]'.
2071         * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
2072         (split_text): Use `a_delete'.
2074         * src/preproc/pic/pic.y (define_label, define_variable): Use `new
2075         <type>[1]'.
2077         * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
2078         harmless memory leak.
2079         (hyphen_trie::read_patterns_file): Initialize `buf'.
2080         * src/roff/troff/node.cc (troff_output_file::troff_output_file):
2081         Initialize `current_fill_color'and `current_glyph_color'.
2082         * src/roff/troff/glyphuni.cc
2083         (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
2084         * src/roff/troff/uniuni.cc
2085         (unicode_decompose_init::unicode_decompose_init): Ditto.
2086         * src/roff/troff/uniglyph.cc
2087         (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
2089 2003-01-26  Werner LEMBERG  <wl@gnu.org>
2091         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
2092         `access' before calling `unlink'.
2093         (do_file): Handle __EMX__.
2095         * src/include/nonposix.h: Handle __EMX__.
2097         * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
2098         (fontpath,tmacpath): Use it.
2099         (MDEFINES): Add it.
2100         Sorted alphabetically.
2102         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
2103         @SEP@.
2104         * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
2105         @SEP@.
2107 2003-01-27  Werner LEMBERG  <wl@gnu.org>
2109         * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
2110         New files, copied from gnulib.
2111         * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
2112         * configure.ac: Updated.
2113         * configure: Regenerated.
2115         * src/include/config.hin: Regenerated.
2116         * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
2117         Don't define `strcasecmp' as `strcmp'.
2118         [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
2119         Dont define `strncasecmp' as `strncmp'.
2121         * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
2122         Removed.
2124 2003-01-26  Werner LEMBERG  <wl@gnu.org>
2126         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
2127         s/unline/unlink/.
2129 2003-01-25  Werner LEMBERG  <wl@gnu.org>
2131         * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
2133 2003-01-24  Werner LEMBERG  <wl@gnu.org>
2135         Add US-english hyphenation exceptions (converted from Barbara
2136         Beeton's hyphenation exception log reports which appear irregularly
2137         in TUGBoat).
2139         * tmac/hyphen.us: Updated to latest version.
2140         * tmac/README: Updated.
2141         * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
2142         * tmac/troffrc: Load `hyphenex.us'.
2143         * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
2144         * doc/groff.texinfo: Updated.
2146 2003-01-23  Werner LEMBERG  <wl@gnu.org>
2148         Improve hyphenation slightly.  This is a first step in redesigning
2149         the hyphenation algorithm to make it more flexible (e.g. allowing
2150         kerns and ligatures between the hyphenation character and the
2151         following character -- while not used normally in English, other
2152         languages like German would benefit).
2154         * src/roff/troff/env.cc (environment::hyphenate_line): Use
2155         assertion instead of if-clause.
2156         Let `get_hyphen_list' return the number of involved characters in
2157         the hyphenation pattern instead of computing it directly (which
2158         often yields too small values).
2159         * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
2160         * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
2161         parameter.
2163 2003-01-22  Werner LEMBERG  <wl@gnu.org>
2165         Fixing a bug which caused groff to hang if the hyphenation exception
2166         dictionary tried to grow.
2168         * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
2169         hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
2170         pointer to dictionary.
2172 2003-01-20  Werner LEMBERG  <wl@gnu.org>
2174         * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
2175         negative left italic correction.
2176         * src/utils/afmtodit/afmtodit.man: Document it.
2178         * font/devps/generate/Makefile (RFLAG): Add `-m'.
2179         * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
2180         S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
2182         * NEWS: Updated.
2184 2003-01-16  Werner LEMBERG  <wl@gnu.org>
2186         * NEWS: Updated.
2188 2003-01-16  Jörgen Grahn  <jgrahn@algonet.se>
2190         * src/preproc/refer/refer.man: Mention REFER environment variable.
2192 2003-01-05  Werner LEMBERG  <wl@gnu.org>
2194         Similar to \[is], the square root glyph (\[sr]) and the square root
2195         extension glyph (\[radicalex]) are now text symbols.  The new
2196         mathematical versions are called \[sqrt] and \[sqrtex],
2197         respectively.
2199         * font/devX*/S: Regenerated.
2200         * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
2201         * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
2202         * font/devdvi/EX, font/devdvi/S: Regenerated.
2203         * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
2204         * font/devlj4/generate/special.map: Add `sqrt'.
2205         * font/devlj4/S: Regenerated.
2206         * font/devps/generate/textmap: Add `sqrt'.
2207         * font/devps/S, font/devps/symbolmap: Regenerated.
2209         * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
2210         SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
2211         * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
2212         overlap horizontally.
2214         * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
2215         * tmac/dvi.tmac: Add `sr', and `sqrtex'.
2216         Fix `radicalex'.
2218         * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
2219         and `sqrtex' are overlapping glyphs.
2221 2003-01-04  Werner LEMBERG  <wl@gnu.org>
2223         * font/devdvi/generate/texsy.map: Add `is'.
2224         * font/devps/symbolmap: Regenerated.
2225         * font/devdvi/*TC, MI, S: Regenerated.
2227         * tmac/dvi.tmac: Remove `is'.
2229 2003-01-03  Werner LEMBERG  <wl@gnu.org>
2231         `is' is now a text symbol (only relevant for dvi).  The math variant
2232         can be accessed with `integral'.
2234         * font/devX*/S: Regenerated.
2235         * font/devdvi/generate/texex.map: Remove `is'.
2236         * font/devdvi/EX: Updated.
2237         * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
2238         * font/devlj4/generate/special.map: Ditto.
2239         * font/devlj4/S: Regenerated.
2240         * font/devps/generate/textmap: Add `integral'.
2241         * font/devps/S: Regenerated.
2243         * tmac/dvi.tmac: Define `is'.
2245         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
2247         * src/preproc/tbl/main.cc (process_format): Fix error message.
2249 2003-01-02  Werner LEMBERG  <wl@gnu.org>
2251         * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
2252         * font/devps/textmap: Fix entries for `ne' and `nc'.
2253         * font/devps/symbolmap: Regenerated.
2255         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
2256         src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
2257         `38', `58', `78', `-+', `|=', `nc', `ne'.
2259         * tmac/dvi.tmac: Add `nm', `ne', `nc'.
2260         Use `schar' for `aq'.
2261         * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
2262         * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
2263         * tmac/tty.tmac: Add `ne'.
2265         * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
2266         for fallback glyphs.
2268 2002-12-29  Werner LEMBERG  <wl@gnu.org>
2270         Add glyph `|='.
2272         * font/devX*/*: Regenerated.
2273         * font/devdvi/generate/ec.map: Remove `eq'.
2274         * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
2275         Assign `|=' to position 39.
2276         * font/devdvi/*EC, S: Regenerated.
2277         * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
2278         * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
2279         Assign `|=' to position 549.
2280         * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
2281         `equalmath'.
2282         Add `uni2243' for `|='.
2284         * tmac/ec.tmac: Add `eq'.
2285         * tmac/dvi.tmac: Add `=~'.
2286         * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
2287         `|='.
2289 2002-12-21  Werner LEMBERG  <wl@gnu.org>
2291         * font/devdvi/generate/tc.map: Remove `**'.
2292         * font/devdvi/*TC: Regenerated.
2293         * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
2294         `78', `<<', `>>'.
2295         * font/devutf8/NOTES: Updated.
2297         * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
2298         Don't give default parameter to `set_macro'.
2299         * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
2300         instead of `set_macro'.
2301         (charinfo::setx_macro): Implement it.
2302         (charinfo::set_macro): Don't change `mode'.
2304         * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
2305         * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
2306         * tmac/dvi.tmac: Define `!=' with `.schar'.
2308 2002-12-20  Werner LEMBERG  <wl@gnu.org>
2310         * font/devX*/S: Regenerated.
2311         * font/devdvi/generate/ec.map: Remove `pl'.
2312         * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
2313         * font/devdvi/*{TC,EC}: Regenerated.
2314         * font/devhtml/R.proto: Add `-+'.
2315         Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
2316         * font/devlbp/*: Remove `or'.
2317         * font/devlj4/generate/special.map: Remove `or'.
2318         * font/devlj4/S: Regenerated.
2319         * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
2320         `seveneighths', `threeeighths'.
2321         Remove `plusmath'.
2322         Replace `minusplus' with `uni2213'.
2323         * font/devps/symbolmap: Regenerated.
2324         * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
2325         Add `-+'.
2327         * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
2328         function.
2329         * src/roff/troff/node.cc (troff_output_file::put_char_width):
2330         Call glyph_color and fill_color even if tcommand_flag isn't set.
2331         (make_node, node::add_char): Check not ci->is_fallback but
2332         ci->is_normal.
2334         * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
2335         * tmac/ec.tmac: Add .rchar entry for `f/'.
2336         Don't remove `12', `14', `34'.
2337         Define `pl' to be always roman.
2338         * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
2339         Define `18', `38', `58', `78'.
2340         * tmac/tty.tmac: Add `-+'.
2341         * tmac/dvi.tmac: Define `f/'.
2342         (dvi-frac): Use `f/'.
2343         * tmac/X.tmac (X-frac, X-frac-mono): New macros.
2344         Define `18', `38', `58', `78'.
2346 2002-12-15  Colin Watson  <cjwatson@debian.org>
2348         * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
2350 2002-12-10  Werner LEMBERG  <wl@gnu.org>
2352         Add glyph `tno', a textual variant of `no'.
2354         * font/devX*/*: Regenerated.
2355         * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
2356         * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
2357         * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
2358         * font/devdvi/*: Regenerated.
2359         * font/devlbp/*: Add `tno'.
2360         * font/devlj4/generate/tex.map: Replace `no' with `tno'.
2361         * font/devlj4/*: Regenerated.
2362         * font/devps/generate/textmap: Replace `no' with `tno'.
2363         * font/devps/generate/symbolchars: Add `no'.
2364         * font/devps/*: Regenerated.
2366         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
2368         * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
2369         * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
2371         * NEWS: Updated.
2373         * tmac/dvi.tmac: Replace most `\\' with `\E'.
2374         Add definition for `sd'.
2375         * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
2377         * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
2379 2002-12-08  Werner LEMBERG  <wl@gnu.org>
2381         * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
2382         mode to avoid rounding errors.
2383         (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
2385         * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
2386         src/roff/troff/troff.man: Improve documentation of -T.
2388 2002-12-07  Jeff Conrad  <jeff_conrad@msn.com>
2390         * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
2391         (run_pipeline) [_WIN32]: Provide working function without `fork'.
2393 2002-12-06  Werner LEMBERG  <wl@gnu.org>
2395         * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
2396         glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
2397         Scaling Euro.sansserif glyphs down to have the same height as
2398         digits.
2399         Removed unnecessary points; added some extrema.
2401         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
2402         Regenerated.
2404 2002-12-04  Werner LEMBERG  <wl@gnu.org>
2406         * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
2407         and `Euro.symbol.bold.slanted'.
2408         Improve some glyph offsets and widths.
2409         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
2410         Regenerated.
2411         * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
2412         typo.
2413         * font/devps/generate/sfdtopfa.pe: Generate PFA in current
2414         direcory.
2416         * tmac/europs.tmac: Updated to new glyph indices.
2417         Use Euro.symbol for font familiy `A'.
2419         * doc/groff.texinfo: Minor improvements.
2421 2002-12-02  Werner LEMBERG  <wl@gnu.org>
2423         * font/devdvi/generate.tc.map: s/%O/%0/.
2424         * font/devdvi/*TC: Regenerated.
2426         * src/roff/troff/div.cc (init_div_requests): Sorted.
2428         * tmac/dvi.tmac: Remove `Ye'.
2429         * tmac/ec.tmac: Remove `Ye'.
2430         Add .rchar entry for `de'.
2432         * man/groff.man, man/groff_diff.man: Document register `.pe'.
2433         * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
2434         * NEWS: Updated.
2436 2002-11-30  Werner LEMBERG  <wl@gnu.org>
2438         Add PS font for various Euro glyphs.
2440         * font/devps/generate/freeeuro.sfd: New master font file for
2441         pfaedit.
2442         * font/devps/generate/sfdtopfa.pe: New conversion script for
2443         pfaedit.
2444         * font/devps/generate/Makefile (FONTS): Add `EURO'.
2445         (EURO, freeeuro.afm, freeeuro.pfa): New rules.
2446         * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
2447         `freeeuro.sfd'.
2448         * font/devps/EURO: Generated from `freeeuro.afm'.
2449         * font/devps/download: Add `freeuro.pfa'.
2450         * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
2451         `freeeuro.pfa'.
2453         * tmac/europs.tmac: New file.
2454         * tmac/ps.tmac: Include `europs.tmac'.
2455         * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
2457 2002-11-29  Werner LEMBERG  <wl@gnu.org>
2459         * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
2460         * font/devdvi/S: Regenerated.
2461         * font/devhtml/R.proto: Fix `CR' and `ci'.
2462         Add `OK'.
2463         * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
2464         Remove `bs'.
2465         * font/devps/symbolmap: Regenerated.
2466         * font/devutf8/R.proto: Fix `CR' and `ci'.
2467         Add `OK'.
2468         * font/devutf8/NOTES: Updated.
2470         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
2471         `ci'.
2472         Add `OK'.
2473         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
2475         * tmac/dvi.tmac: Add `lh' and `rh'.
2476         * tmac/Xps.tmac: Fix `lh' and `rh'.
2477         * tmac/X.tmac: Add `OK'.
2478         * tmac/lj4.tmac: Ditto.
2480 2002-11-24  Werner LEMBERG  <wl@gnu.org>
2482         * font/devX*/S: Regenerated.
2483         * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
2484         `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
2485         * font/devdvi/generate/texsy.map: Remove `or' glyph.
2486         * font/devdvi/S: Regenerated.
2487         * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
2488         `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
2489         `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
2490         `bracketleftbt', `bracketrighttp', `bracketrightex',
2491         `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
2492         `braceex', `braceleftex', `bracerightex', `bracerighttp',
2493         `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
2494         `rb', and `bv'.
2495         * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
2496         * font/devutf8/NOTES: Updated.
2497         * font/devlj4/generate/special.map: Add glyph `braceex'.
2498         * font/devlj4/S: Regenerated.
2500         * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
2502 2002-11-14  Werner LEMBERG  <wl@gnu.org>
2504         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
2505         and `vA'.
2506         Fix code for `an'.
2507         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
2509         * doc/texinfo.tex: New version from texinfo 4.3.
2510         * doc/groff.texinfo: Updated for texinfo 4.3.
2511         Use @tie{} where appropriate.
2512         * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
2513         * font/devdvi/generate/tc.map: Remove `rn'.
2514         * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
2515         * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
2516         Fix code for `an'.
2517         * font/devX100/*, font/devX100-12/*, font/devX75/*,
2518         font/devX75-12/*: Regenerated.
2520         * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
2521         Use .char (again) for `br', `ul', `rn', `or', and `ru'.
2522         Improve definition of `an'.
2523         * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
2524         `ru'.
2525         * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
2526         * tmac/X.tmac: Add definition for `or'.
2527         * tmac/Xps.tmac: Undo change 2002-11-05.
2528         * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
2530 2002-11-11  Werner LEMBERG  <wl@gnu.org>
2532         * src/roff/troff/node.cc (troff_output_file::put_char): Always
2533         call flush_tbuf.
2535 2002-11-10  Werner LEMBERG  <wl@gnu.org>
2537         Added three new requests `schar', `fschar', and `rfschar'.  `schar'
2538         defines a glyph which is searched after the check for fonts declared
2539         with `.special' (and before the check for all mounted special
2540         fonts).  `fschar' defines a glyph for a particular font which is
2541         searched after the check for fonts declared with `.fspecial' (and
2542         before the check for fonts declared with `.special').  `rfschar'
2543         removes glyphs defined with `fschar'.
2545         * src/roff/troff/token.h (char_mode): New enum.
2546         Declare do_define_character.
2547         * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
2548         `mode'.
2549         (charinfo::is_fallback): Updated.
2550         (charinfo::is_special): New method.
2551         * src/roff/troff/input.cc (do_define_character): Add and use
2552         optional second parameter used as a prefix for font-specific glyph
2553         names.
2554         (define_character, define_fallback_character): Updated.
2555         (define_special_character): New function.
2556         (init_input_requests): Add `schar'.
2557         (charinfo::charinfo, charinfo::set_macro): Updated.
2558         * src/roff/troff/node.cc: Include `stringclass.h'.
2559         (make_glyph_node): Handle special glyphs defined with `.schar' and
2560         `.fschar'.
2561         (define_font_special_character, remove_font_special_character): New
2562         functions.
2563         (init_node_requests): Sorted.
2564         Add `fschar' and `rfschar'.
2565         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2566         Document new requests.
2568         * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
2569         * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
2571 2002-11-08  Werner LEMBERG  <wl@gnu.org>
2573         Added new font `SC' (cmtex10) to devdvi.
2575         * devdvi/generate/Makefile (FONTS): Add `SC'.
2576         (SC): New rule.
2577         * devdvi/generate/textex.map: New map file for cmtex.
2578         * devdvi/SC: New.
2579         * devdvi/Makefile.sub (DEVFILES): Updated.
2580         * tmac/dvi.tmac: Add fspecial entries for SC.
2581         Add `MI', `S' and `CW' to the `special' call.  Otherwise, `SC' is
2582         found before `S' since the font position of `SC' is lower due to the
2583         gaps in DESC's `font' line.
2584         * tmac/ec.tmac: Add a `special' call.
2585         * NEWS: Updated.
2587         * font/devhtml/R.proto: Remove double entry for `ti'.
2588         * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
2589         * tmac/tty-char.tmac: Remove entry for `bq'.
2590         * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
2591         * tmac/ec.tmac: Don't remove `aq' glyph.
2592         * tmac/X.tmac: Fix entry for `em'.
2593         Add entries for `fo' and `fc'.
2594         * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
2596         * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
2597         documentation of `special' and `fspecial' requests.
2599 2002-11-05  Werner LEMBERG  <wl@gnu.org>
2601         * font/devascii/R.proto, font/devcp1047/R.proto,
2602         font/devlatin1/R.proto: Remove entry for `.i'.
2603         * font/devdvi/generate/textt.map: Add entry for `ad'.
2604         * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
2605         font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
2606         We need this for getting kerning values to compose `/l' and `/L'.
2607         * font/devdvi: Regenerated font definition files for CM fonts.
2608         * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
2609         * font/devutf8/R.proto: Ditto.
2610         Remove double entry for `ti'.
2612         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
2613         for (groff) ligatures, `la', and `ra'.
2614         Add "'C", "'c", `IJ', and `ij'.
2615         Remove double entry for `ti'.
2616         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
2617         double entries.
2618         Add "'C", "'c", `IJ', and `ij'.
2619         Fix entries for (groff) ligatures, `la', and `ra'.
2621         * tmac/ps.tmac (ps-achar): New macro.
2622         Define "'c" and "'C".
2623         * tmac/tty.tmac: Add entry for `.i'.
2624         * tmac/X.tmac (X-achar): New macro.
2625         Define "'c", "'C", and `:Y'.
2626         Add entries for `IJ' and `ij'.
2627         * tmac/Xps.tmac (Xps-achar): New macro.
2628         Define "'c" and "'C".
2629         Add entries for `IJ' and `ij'.
2630         * tmac/lbp.tmac (lbp-achar): New macro.
2631         Add fallback characters for all groff ligatures and many other
2632         glyphs.
2633         * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
2634         Add entries for `/l' and `/L'.
2635         Define "'c" and "'C".
2636         Add entries for `IJ' and `ij'.
2638 2002-11-02  Larry Kollar  <kollar@alltel.net>
2640         * PROBLEMS: Document how to solve Mac OS X compilation problems.
2642 2002-11-02  Werner LEMBERG  <wl@gnu.org>
2644         Adding support for composite glyphs: \[xxx yyy ...] and the
2645         `composite' request.
2647         * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
2648         to Unicode-based glyph names.
2649         * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
2650         glyph names to groff glyph names.
2651         * src/roff/troff/uniuni.cc: New file for canonically decomposing
2652         Unicode-based glyph names.
2653         * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
2654         for handling Unicode glyph names.
2655         * src/roff/troff/input.cc: Include unicode.h.
2656         (composite_glyph_name): New function.
2657         (token::next) <'['>: Handle Unicode glyph names and composite
2658         glyphs.
2659         (composite_dictionary): New dictionary for the `composite' request.
2660         (composite_request): Implement `composite' request.
2661         (init_input_requests): Add `composite'.
2662         Alphabetically sorted.
2663         * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
2664         commented out).
2665         (init_env_requests): Alphabetically sorted.
2666         Removed `tas' and `tar' (already commented out).
2667         * src/roff/troff/Makefile.sub: Updated.
2669 2002-10-31  Ruslan Ermilov  <ru@FreeBSD.org>
2671         * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
2672         of options.
2674 2002-10-29  Werner LEMBERG  <wl@gnu.org>
2676         Fix computation of .trunc register.  Additionally, its value (and
2677         the value of the .ne register) is now always set before entering the
2678         trap.
2680         * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
2681         `needed_space' before calling `space'.
2682         (top_level_diversion::space): Remove special code for 'sp before the
2683         first page.
2684         Call `begin_page' with the discarded space as a parameter.
2685         (top_level_diversion::begin_page): Add optional parameter to set
2686         `truncated_space'.
2687         * src/roff/troff/div.h: Updated.
2689         * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
2690         \n[.ne].
2692         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
2693         (LP): Remove superfluous call to `br'.
2694         * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
2695         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
2697 2002-10-26  Werner LEMBERG  <wl@gnu.org>
2699         * tmac/doc-ditroff: Remove useless switch/variable -rC.
2700         (doc-setup-header): Don't set page register `%'.
2701         * tmac/doc-nroff: Remove variable `C'.
2702         (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
2703         (doc-setup-header): Don't set page register `%'.
2704         Don't call `bp'.
2705         * tmac/doc-common (doc-header): Call `ns'.
2706         (doc-paragraph): Protect .sp with .br so that it survives traps
2707         possibly set by the user.
2708         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
2710         * tmac/doc*: Replace ' with . for consistency if no effect.
2712 2002-10-26  Werner LEMBERG  <wl@gnu.org>
2714         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
2715         so that it survives traps possibly set by the user.
2717         * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
2718         (troff_output_file::set_font): Call flush_tbuf if necessary.
2719         (troff_output_file::fill_color, troff_output_file::glyph_color): Call
2720         flush_tbuf and do_motion only if necessary.
2721         (troff_output_file::start_special,
2722         troff_output_file::put_char_width, troff_output_file::put_char,
2723         troff_output_file::draw): Updated.
2724         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
2725         vmotion_node::tprint): Undo change 2002-10-23.
2727 2002-10-25  Werner LEMBERG  <wl@gnu.org>
2729         * tmac/www.tmac (DC): Fix case of overlapping images.
2731 2002-10-23  Werner LEMBERG  <wl@gnu.org>
2733         * src/roff/troff/node.cc (troff_output_file::fill_color,
2734         troff_output_file::glyph_color): Set current color before testing
2735         color_flag.
2736         (troff_output_file::put_char_width, troff_output_file::put_char,
2737         troff_output_file::draw): Don't call flush_tbuf and/or do_motion
2738         before glyph_color.
2739         (troff_output_file::file_color, troff_output_file::glyph_color):
2740         Call do_motion.
2741         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
2742         vmotion_node::tprint): Move first, then call fill_color.
2744 2002-10-20  Werner LEMBERG  <wl@gnu.org>
2746         * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
2747         possible to use multiple main macro packages.
2749 2002-10-19  Werner LEMBERG  <wl@gnu.org>
2751         * src/devices/grops/ps.cc (cmyk_flag): New global variable.
2752         (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
2753         (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
2754         is set.
2755         * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
2756         `where' construction since `cmyksetcolor' is a PS Level 2 operator.
2758 2002-10-16  Werner LEMBERG  <wl@gnu.org>
2760         * NEWS, doc/webpage.ms: Updated.
2762 2002-10-14  Werner LEMBERG  <wl@gnu.org>
2764         * src/roff/troff/node.cc (troff_output_file::put_char_width,
2765         troff_output_file::put_char, troff_output_file::fill_color,
2766         troff_output_file::glyph_color): Handle case where color pointer
2767         is null.
2769 2002-10-13  Ruslan Ermilov  <ru@FreeBSD.org>
2771         Add the new -r option to grotty.  It is similar to the -i option
2772         except it tells grotty(1) to use the "reverse video" attribute to
2773         render italic fonts.
2775         * src/devices/grotty/tty.cc (reverse_flag): New global variable.
2776         (SGR_REVERSE, SGR_NO_REVERSE): New macros.
2777         (tty_printer::make_underline, tty_printer::put_color,
2778         tty_printer::end_page): Use it.
2779         (main): Add -r switch.
2780         (usage): Updated.
2781         * src/devices/grotty/grotty.man: Document it.
2783 2002-10-11  Ruslan Ermilov  <ru@FreeBSD.org>
2785         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
2786         cast to `unsigned char' to properly read patterns with 8bit
2787         characters.
2789 2002-10-08  Werner LEMBERG  <wl@gnu.org>
2791         * REVISION: Increased to 2.
2793 Version 1.18.1 released
2794 =======================
2796 2002-10-08  Werner LEMBERG  <wl@gnu.org>
2798         * doc/webpage.ms, NEWS: Updated.
2800 2002-10-07  Werner LEMBERG  <wl@gnu.org>
2802         * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
2803         suppress additional whitespace after the header.
2805         * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
2806         with NetBSD.
2808         * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
2810 2002-10-07  Ruslan Ermilov  <ru@FreeBSD.org>
2812         * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
2813         (Dt): Use it to improve language localization (especially Russian
2814         and French).
2816 2002-10-07  Daniel Senderowicz  <daniel@synchrods.com>
2818         * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
2819         * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
2820         drawing commands.
2821         * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
2822         curve type.
2823         Call `picurve' for BSPLINE.
2824         (HGPrintElt): Handle BSPLINE.
2825         * src/preproc/grn/README: Document it.
2827 2002-10-03  Werner LEMBERG  <wl@gnu.org>
2829         * src/roff/troff/node.cc (break_char_node::col): New variable.
2830         Updated constructor.
2831         (space_node::tprint, word_space_node::tprint): Call `fill_color'
2832         unconditionally.
2833         (space_node::space_node): Remove assertion.
2834         (break_char_node::add_self): Pass color argument to space node.
2835         * src/roff/troff/input.cc (token::add_to_node_list, token::process):
2836         Ditto.
2837         * src/roff/troff/env.cc (environment::do_break,
2838         environment::add_padding): Ditto.
2840 2002-10-02  Werner LEMBERG  <wl@gnu.org>
2842         Redesigning color support in troff.  Colors are no longer
2843         represented as separate nodes but are now part of glyph nodes and
2844         friends.  This fixes the current formatting misbehaviour due to the
2845         changes introduced on 2002-09-20.  Some extra code is necessary for
2846         proper grotty support: Without adding color variables to
2847         space-related nodes, the background color would be changed too late.
2849         * src/roff/troff/node.h, src/roff/troff/node.cc:
2850         s/current_pagecolor/current_fill_color/.
2851         s/current_glyphcolor/current_glyph_color/.
2852         (glyph_color_node, fill_color_node): Removed.
2853         (node::get_glyph_color, node::get_fill_color): New virtual member
2854         functions.
2855         (space_node::col): New variable.
2856         Updated constructors of space_node and derived classes accordingly.
2857         (hmotion_node::col): New variable.
2858         Updated constructors of hmotion_node and space_char_hmotion_node
2859         accordingly.
2860         (vmotion_node::col): New variable.
2861         Updated constructor accordingly.
2862         (draw_node::gcol, draw_node::fcol): New variables.
2863         Updated constructor accordingly.
2864         (special_node::gcol, special_node::fcol): New variables.
2865         Updated constructors accordingly.
2866         (troff_output_file::put_char, troff_output_file::put_charwidth,
2867         troff_output_file::draw): Set glyph and fill color.
2868         (troff_output_file::start_special): Set glyph and fill color.
2869         Always set current font.
2870         (troff_output_file::fill_color, troff_output_file::glyph_color):
2871         Don't call `do_motion'.
2872         (glyph_node::gcol, glyph_node::fcol): New variables.
2873         Updated constructors of glyph_node and ligature_node accordingly.
2874         (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
2875         member functions.
2876         (glyph_node::merge_glyph_node,
2877         kern_pair_node::add_discretionary_hyphen,
2878         node::add_discretionary_hyphen): Updated.
2879         (break_char_node::merge_self): Updated.
2880         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
2881         vmotion_node::tprint): Handle color.
2882         (make_glyph_node, make_node, node::add_char): Updated.
2884         * src/roff/troff/env.cc (environment::space_newline,
2885         environment::space, environment::output_line, environment::do_break,
2886         environment::make_tab_node, environment::add_padding, title):
2887         Updated.
2888         (environment_switch, environment_copy): Don't add color nodes.
2890         * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
2891         nothing.
2892         (token::next): Updated.
2893         \m and \M now are as transparent as \s.
2894         (process_input_stack, token::add_to_node_list, token::process,
2895         read_draw_node): Updated.
2896         (charinfo_to_node_list): Don't add color nodes.
2898         * doc/groff.texinfo: Updated.
2900 2002-09-27  Ruslan Ermilov  <ru@FreeBSD.org>
2902         * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
2903         strings.
2905 2002-09-27  Colin Watson  <cjwatson@debian.org>
2907         * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
2909 2002-09-23  Werner LEMBERG  <wl@gnu.org>
2911         * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
2912         appropriate.
2913         (DEFAULT_LINEWIDTH_FACTOR): New macro.
2914         (linewidth_factor): New global variable.
2915         (lbp_printer::set_line_thickness): Fix case for size < 0, using
2916         linewidth_factor.
2917         (long_options): Add -w/--linewidth option.
2918         (usage): Updated.
2919         (main): Handle -w option to set linewidth_factor.
2920         (lbp_printer::lbp_printer): Initialize req_linethickness, not
2921         line_thickness.
2923         * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
2925 2002-09-22  Paco Andrés Verdú  <pandres@dragonet.es>
2927         Fixed a bug in the line thickness setting code.
2929         * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
2930         variable.
2931         (lbp_printer::set_line_thickness): Pass environment as second
2932         parameter.
2933         Implement it actually.
2934         (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
2935         and `set_line_thickness, depending on the current font size.
2937 2002-09-21  Werner LEMBERG  <wl@gnu.org>
2939         Some Debian patches.
2941         * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
2942         * src/roff/troff/node.cc (bracket_node::copy): Initialize
2943         `list->last'.
2945 2002-09-20  Werner LEMBERG  <wl@gnu.org>
2947         * configure: Regenerated with autoconf 2.54.
2949 2002-09-20  Werner LEMBERG  <wl@gnu.org>
2951         * src/roff/troff/env.h (environment): Rename cur_glyph_color to
2952         glyph_color.
2953         Rename cur_fill_color to fill_color.
2954         * src/roff/troff/env.cc: Updated.
2956 2002-09-20  Werner LEMBERG  <wl@gnu.org>
2958         * src/roff/troff/env.cc (title): Copy color status after processing
2959         title.
2960         * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
2961         fill color nodes to reset colors properly.
2963         * tmac/www.tmac (DC): Fix color handling.
2965         * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
2966         * doc/groff.texinfo: Fixing documentation of `tl' request.
2967         * doc/webpage.ms: Updated.
2969 2002-09-19  Werner LEMBERG  <wl@gnu.org>
2971         * src/roff/troff/env.cc (environent_switch, environment_copy):
2972         Emit glyph and fill color nodes to initialize colors properly.
2974 2002-09-17  Colin Watson  <cjwatson@debian.org>
2976         * src/roff/troff/env.cc (environment::set_glyph_color,
2977         environment::set_fill_color): Fix typo which prevented \m[] work
2978         correctly.
2980 2002-09-17  Werner LEMBERG  <wl@gnu.org>
2982         Add left and right italic correction to non-slanted PS fonts.  This
2983         is an experimental feature to improve image rendering of grohtml.
2985         * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
2986         ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
2987         * font/devps/*: All non-slanted fonts regenerated.
2988         * NEWS: Updated.
2990 2002-09-16  Werner LEMBERG  <wl@gnu.org>
2992         Add a site-specific font directory.
2994         * Makefile.in (localfontdir, legacyfontdir): New variables.
2995         (fontpath): Use them.
2996         (MDEFINES, uninstall_dirs): Updated.
2997         * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
2998         Remove `FONTPATH' and `MACROPATH'.
3000         * src/roff/troff/troff.man, NEWS: Updated.
3001         * doc/groff.texinfo (Font Directories): New section.
3002         Other minor fixes.
3004         * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
3005         src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
3006         src/preproc/grn/grn.man: Minor fixes.
3008         * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
3009         Remove unused variable.
3011 2002-09-11  Werner LEMBERG  <wl@gnu.org>
3013         * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
3014         * man/groff_out.man: Fix documentation of 'N'.
3016 2002-09-09  Gaius Mulley  <gaius@glam.ac.uk>
3018         * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
3019         * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
3020         set.
3021         * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
3022         (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
3023         (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
3024         * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
3025         PRE_TAG>: Call `begin' with `FALSE'.
3027 2002-09-09  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
3029         * src/libs/libgroff/string.cc (string::extract): Fix position of
3030         terminating null byte.
3032 2002-09-08  Werner LEMBERG  <wl@gnu.org>
3034         Add global option `nospaces' to tbl so that leading and trailing
3035         spaces in data items are ignored.
3037         * src/libs/libgroff/string.cc (string::remove_spaces): New member
3038         function to remove leading and trailing spaces.
3039         * src/include/stringclass.h: Updated.
3041         * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
3043         * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
3044         option.
3045         Fix typo in error messages.
3046         (process_data): Implement `nospaces' option.
3047         * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
3049 2002-09-07  Werner LEMBERG  <wl@gnu.org>
3051         * src/include/config.hin: Add `HAVE_ISATTY'.
3052         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
3053         `fname' member.
3054         * src/libs/libgroff/tmpname.cc: Include `time.h'.
3055         * src/libs/libdriver/input.cc (Char): Add `operator==' and
3056         `operator!=' for `char'.
3057         * doc/groff.texinfo: Replace @ifnottex block for top node with
3058         @ifhtml block.
3060 2002-09-06  Werner LEMBERG  <wl@gnu.org>
3062         * doc/Makefile.in (.texinfo.html): Add -I switch.
3063         * doc/groff.texinfo: Add @ifnottex block for top node to make
3064         translation to HTML work.
3066 2002-09-05  Gaius Mulley  <gaius@glam.ac.uk>
3068         * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
3069         (get_papersize, determine_vertical_offset): Removed.
3070         (char_buffer::do_image): Always specify letter size.
3071         (main): Updated.
3072         (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
3073         -sPAPERSIZE.
3075 2002-09-05  Werner LEMBERG  <wl@gnu.org>
3077         * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
3078         default indentation.
3080 2002-09-04  Gaius Mulley  <gaius@glam.ac.uk>
3082         * src/preproc/html/pre-html.cc (imageList::createPage): Use
3083         -sPAPERSIZE for gs.
3084         (generateImages): Clean up push-back buffer.
3086 2002-09-04  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
3088         * doc/groff.texinfo: Minor fixes.
3090 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
3092         * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
3093         (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
3094         (gsPaper): Removed.
3095         (determine_vertical_offset): Use LETTER_LENGTH.
3096         (createPage): Moved to ...
3097         (imageList::createPage): This.
3098         Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
3099         (imageList::getMaxX): New function.
3100         (createImage): Moved to ...
3101         (imageList::createImage): This.
3102         (imageList::createImages): New function.
3103         (generateImages): Read `maxx' directly.
3104         Updated.
3105         (scanArguments): Don't specify `gsPaper' for `-o'.
3106         (makeTempFiles): Call `xtmpfile' with the last argument set to
3107         `TRUE'.
3109 2002-08-24  Werner LEMBERG  <wl@gnu.org>
3111         * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
3112         (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
3113         * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
3114         * src/preproc/html/pushback.cc: Include nonposix.h.
3115         * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
3116         conditionally.
3118 2002-08-23  Werner LEMBERG  <wl@gnu.org>
3120         Use $(OBJEXT) for the object file extension.
3122         * Makefile.comm (.SUFFIXES): Add .obj.
3123         (.cc.obj, .c.obj): New implicit rules.
3124         * Makefile.in (OBJEXT): New variable, initialized from autoconf.
3125         (MDEFINES): Add EXEEXT and OBJEXT.
3126         * */Makefile.sub: s/.o/.$(OBJEXT)/.
3128 2002-08-22  Werner LEMBERG  <wl@gnu.org>
3130         * INSTALL: Mention texinfo 4.2 as a prerequisite.
3132 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
3134         * src/devices/grohtml/post-html.cc (colType): Make enum global to
3135         the file.
3136         (html_printer::update_min_max, html_printer::add_table_end): New
3137         methods.
3138         (html_printer::lookahead_for_tables): Use them.
3139         Reset page offset correctly.
3140         (html_printer::~html_printer): Add creation of creator comment up.
3142 2002-08-20  Werner LEMBERG  <wl@gnu.org>
3144         * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
3145         * man/groff_tmac.man: Fix typos.
3146         * man/groff_font.man: Minor reordering.
3147         * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
3148         * contrib/groffer/groffer.man: Fix typos.
3150 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
3152         Avoid endless loops while scanning for tables.
3154         * src/devices/grohtml/post-html.cc (list::insert): Set
3155         ptr->right->left.
3156         (html_printer::next_horiz_pos): Add `text_glob' argument; update
3157         all callers.
3158         Return immediately if that argument is NULL.
3159         (html_printer::calc_nf): Don't test if `g' is NULL.
3160         (html_printer::lookahead_for_tables): Use
3161         `glyphs.move_right_get_data'.
3162         Don't test if `g' is NULL.
3164 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
3166         A better fix, replacing fix 2002-08-15, for increasing SIZE.
3168         * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
3169         a pointer.
3170         (char_block::char_block): Allocate `buffer'.
3171         (char_buffer::add_string): Use it.
3173 2002-08-15  Werner LEMBERG  <wl@gnu.org>
3175         * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
3176         src/devices/grodvi/grodvi.man: Document default line thickness.
3178 2002-08-15  Gaius Mulley  <gaius@glam.ac.uk>
3180         * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
3181         8192.
3183 2002-08-14  Werner LEMBERG  <wl@gnu.org>
3185         * doc/webpage.ms: Updated.
3187 2002-08-09  Werner LEMBERG  <wl@gnu.org>
3189         * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
3190         unbreakable space.
3192 2002-08-08  Aaron Campbell  <aaron@monkey.org>
3194         * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
3195         (&& -> &).
3197 2002-08-08  Werner LEMBERG  <wl@gnu.org>
3199         * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
3200         tok.next().
3201         (read_gray): Ditto.
3202         Don't push back a space but a newline onto the stack.
3204 2002-08-07  Gaius Mulley  <gaius@glam.ac.uk>
3206         Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
3207         inadvertently.
3209         * src/devices/grohtml/post-html.cc (html_printer::end_font,
3210         html_printer::start_font): Handle them.
3211         * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
3212         reset bold and tt.
3213         (html_text::do_bold): Don't reset italic and tt.
3214         (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
3215         * font/devhtml/DESC.proto: Add those fonts.
3216         * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
3218 2002-08-07  Werner LEMBERG  <wl@gnu.org>
3220         * MORE.STUFF: Added gpresent.
3222         * tmac/trace.tmac: Show nesting level by a corresponding amount of
3223         whitespace before printing the logging message.
3225 2002-07-31  Colin Watson  <cjwatson@debian.org>
3227         * src/devices/grohtml/html-table.cc (html_table::finish_row):
3228         Initialize `n' to zero.  This fixes a segfault on ARM.
3230 2002-07-30  Werner LEMBERG  <wl@gnu.org>
3232         * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
3234 2002-07-29  Werner LEMBERG  <wl@gnu.org>
3236         * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
3237         final semicolon.
3239 2002-07-28  Colin Watson  <cjwatson@debian.org>
3241         * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
3242         `.ps'.
3243         (html_printer::html_printer): Initialize `pointsize'.
3245 2002-07-26  Werner LEMBERG  <wl@gnu.org>
3247         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
3248         gnu.png.
3249         (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
3250         (gnu.eps): Add -rle switch to pnmtops.
3251         (distfiles): Add gnu.eps and gnu.png.
3253 2002-07-25  Petter Reinholdtsen  <pere@hungry.com>
3255         * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
3256         Add `operator!='.
3258 2002-07-24  Werner LEMBERG  <wl@gnu.org>
3260         * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
3261         ' \+' but '  *' for sed.
3262         (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
3264 2002-07-23  Werner LEMBERG  <wl@gnu.org>
3266         * doc/groff.texinfo: Document `papersize' keyword.
3267         * NEWS, man/groff_font.man: Updated.
3269 2002-07-23  Colin Watson  <cjwatson@debian.org>
3271         Extend papersize keyword to accept more than a single entry.  The
3272         first valid will be used.
3274         * src/libs/libgroff/font.cc (font::load_desc): Implement it.
3275         (font::scan_papersize): Really skip final newline.
3276         * src/preproc/html/pre-html.cc (get_papersize): Ditto.
3278 2002-07-23  Werner LEMBERG  <wl@gnu.org>
3280         * configure.ac: Test for isatty.
3281         * configure: Regenerated.
3282         * src/include/posix.h: Check HAVE_ISATTY.
3283         * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
3284         * src/utils/lookbib/lookbib.cc: Include posix.h.
3285         Don't declare isatty.
3287 2002-07-21  Werner LEMBERG  <wl@gnu.org>
3289         * NEWS: Add `output' request.
3291         * REVISION: Increased to 1.
3293 Version 1.18.0 released
3294 =======================
3296 2002-07-19  Gaius Mulley  <gaius@glam.ac.uk>
3298         Allow internal glyph indices > 0xFF in grohtml for input characters.
3300         * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
3301         as parameter.
3302         (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
3303         Updated all callers.
3304         (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
3305         (html_printer): Updated.
3307 2002-07-19  Werner LEMBERG  <wl@gnu.org>
3309         * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
3310         * font/devutf8/R.proto: Adding some missing glyphs.
3311         * font/devutf8/NOTES: Updated.
3313         * tmac/dvi.tmac: Add more composite glyphs.
3314         * tmac/html.tmac: Updated.
3316         * man/groff_char.man: Add `sum' and `product' entities.
3318         * NEWS: Updated.
3320 2002-07-18  Gaius Mulley  <gaius@glam.ac.uk>
3322         Improved table, tab, and indenting support.
3324         * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
3325         string_iterator::suppress_newline_flag): Removed.  Updated all
3326         function which have used it.
3328         * src/roff/troff/env.cc: Include `input.h'.
3329         (environment::add_node): Accept 0 as parameter.
3330         (environment::add_html_tag): Add `force' parameter.
3331         Updated all callers.
3332         (environment::add_html_tag_tabs): Ditto.
3333         For the moment, support left-aligned tabs only.
3334         (environment::make_html_tag): New function.
3335         (fill, no_fill): Set .br html tag additionally.
3336         (environment::newline): Emit `eol.ce' or `eol' tag for html.
3337         (environment::add_html_tag_eol): Removed.
3338         (tab_stops::distance_to_next_tab): Add variant for handling 
3339         nextpos'.
3340         (environment::distance_to_next_tab): Ditto.
3341         Updated all callers.
3342         (environment::handle_tab): Handle tabs for html.
3343         
3344         * src/roff/troff/env.h: Updated.
3346         * src/roff/troff/div.cc: Updated all callers of
3347         `environment::add_html_tag'.
3349         * src/devices/grohtml/html-table.cc,
3350         src/devices/grohtml/html-table.h: New files.
3352         * src/devices/grohtml/html-text.cc (html_text): New members
3353         `blank_para' and `start_space'.
3354         (html_text::issue_tag): Don't emit TABLE_TAG.
3355         Handle indentation for PRE_TAG and P_TAG.
3356         (html_text::end_tag): Updated.
3357         (html_text::table_is_void, html_text::issue_table_begin,
3358         html_text::issue_table_end): Removed.
3359         (html_text::do_push): Simplified.
3360         [DEBUGGING]: Small fix.
3361         (html_text::push_para): Add new parameter for indentation; updated
3362         all callers.
3363         Handle PRE_TAG.
3364         (html_text::do_indent, html_text::do_table, html_text::done_table,
3365         html_text::is_in_table): Removed.
3366         (html_text::do_pre): Handle P_TAG also.
3367         (html_text::shutdown): Handle p->indent.
3368         (html_text::check_emit_text): Simplified.
3369         (html_text::do_emittext): Reset `blank_para'.
3370         (html_text::do_para): Add new parameter for indentation; updated
3371         all callers.
3372         (html_text::remove_indent): New function.
3373         (html_text::do_space): Handle verbatim text properly.
3374         (html_text::ever_emitted_text, html_text::starts_with_space,
3375         html_text::remove_para_align): New functions.
3376         (html_text::dump_stack_element, html_text::dump_stack): Updated.
3378         * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
3379         Updated.
3381         * src/devices/grohtml/post-html.cc: Include html-table.h.
3382         (INDENTATION): Removed.
3383         (text_glob): Added many `is_<foo>' functions.
3384         Added table description `tab'.
3385         Added `get_arg',`get_tab_args', `remember_table', and `get_table'
3386         member functions.
3387         (list): Add `insert' and `move_to' member functions.
3388         (page): Add `insert_tag' member function.
3389         (page::dump_page) [DEBUG_TABLES]: Improved.
3390         (html_printer): Add `table' and `max_linelength' elements.
3391         Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
3392         `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
3393         `remove_tabs', `remove_courier_tabs'.
3394         (html_printer::emit_raw): Handle indentation.
3395         (html_printer::do_center, html_printer::write_header): Updated.
3396         (html_printer::is_courier_until_eol): Check for tag.
3397         (html_printer::do_linelength): Handle max_linelength.
3398         (html_printer::do_page_offset, html_printer::do_indentation): Handle
3399         fill_on.
3400         (html_printer::do_tempindent): Updated.
3401         (html_printer::do_indentedparagraph): Removed.
3402         (html_printer::do_indent): Simplified.
3403         (html_printer::do_eol): Use `ever_emitted_text'.
3404         (html_printer::do_flush, html_printer::do_links): Don't call
3405         done_table.
3406         (html_printer::do_break): Handle end_tempindent.
3407         (html_printer::troff_tag): Get argument.
3408         Don't handle `.ip'.
3409         Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
3410         (html_printer::flush_page): Call `lookahead_for_tables'.
3411         Don't call `done_table'.
3412         (html_printer::add_to_sbuf): Always call do_indent.
3414         * src/devices/grohtml/Makefile.sub: Updated.
3416         * tmac/an-old.tmac (TP): Don't handle html device specially.
3417         (an-do-tag-html): New function which will be used instead of
3418         `an-do-tag' if html device is used.
3420         * tmac/html.tmac: Call .po to pass default page offset to grohtml.
3422         * tmac/s.tmac (@IP): Don't handle html device specially.
3423         (@IP-html): New function which will be used instead of `@IP' if
3424         html device is used.
3426         * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
3427         is a hack which will eventually vanish again.
3428         (PIMG): Handle `-C' option correctly if not html.
3429         (HR): Use HTML-NS.
3431 2002-07-17  Werner LEMBERG  <wl@gnu.org>
3433         * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
3435 2002-07-14  Eric S. Raymond  <esr@thyrsus.com>
3437         * contrib/pic2graph/pic2graph.*: Use convert(1).
3438         * contrib/eqn2graph/eqn2graph.*: Minor fixes.
3440 2002-07-14  Bernd Warken  <bwarken@mayn.de>
3442         * tmac/groff_trace.man: New file.
3443         * tmac/Makefile.sub: Updated.
3444         * NEWS: Updated.
3446 2002-07-13  Werner LEMBERG  <wl@gnu.org>
3448         * src/roff/groff/groff.man: Add some cross references.
3450 2002-07-12  Werner LEMBERG  <wl@gnu.org>
3452         * src/roff/troff/input.cc (substring_request): Add warnings for
3453         string indices out of range.
3455 2002-07-11  Werner LEMBERG  <wl@gnu.org>
3457         * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
3458         * font/devdvi/*EC: Regenerated.
3460 2002-07-10  Bernd Warken  <bwarken@mayn.de>
3462         * man/groff_char.man: Updated and extended.
3464 2002-07-10  Werner LEMBERG  <wl@gnu.org>
3466         * src/roff/troff/input.cc (length_macro): Renamed to...
3467         (length_request): This.
3468         Move call of `tok.next()' to the very end, otherwise the register
3469         value hasn't been updated yet.
3470         (init_input_requests): Updated.
3472 2002-07-09  Werner LEMBERG  <wl@gnu.org>
3474         * src/roff/troff/input.cc (substring_macro): Renamed to...
3475         (substring_request): This.
3476         (init_input_requests): Updated.
3477         * src/roff/troff/request.h: Updated.
3479 2002-07-08  Robert D. Goulding  <goulding@Princeton.EDU>
3481         * src/roff/grog/grog.sh: Fix typo.
3483 2002-07-08  Werner LEMBERG  <wl@gnu.org>
3485         * win32-diffs: Updated.
3487         Handle `papersize' keyword properly in DESC.
3489         * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
3490         type.
3491         Updated all callers.
3492         * src/libs/libgroff/paper.cc: Add four more paper formats used by
3493         grolj4.
3494         * src/include/paper.h: Updated.
3496         * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
3497         Other minor C syntax fixes.
3498         (papersize, paperlength, paperwidth): Renamed to `user_*'.
3499         (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
3500         members.
3501         (lbp_printer::lbp_printer): Pass three arguments.
3502         Set paper dimensions properly.
3503         (make_printer, main): Updated.
3504         (handle_unknown_desc_command): Fix error messages.
3505         (main): Handle papersize keyword in DESC properly.
3507         * src/devices/grolj4/lj4.cc (paper_size): Renamed to
3508         `user_paper_size'.
3509         (lbp_printer::lbp_printer): Pass an argument.
3510         Set paper_size properly.
3511         (handle_unknown_desc_command): Removed.
3512         (make_printer, main): Updated.
3513         * src/devices/grolj4/grolj4.man: Minor documentation fix.
3515         * man/groff_font.man, NEWS: Updated.
3517 2002-07-07  Werner LEMBERG  <wl@gnu.org>
3519         Integrated eqn2graph, contributed by Eric S. Raymond.
3521         * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
3522         files.
3523         * Makefile.in, NEWS: Updated.
3525 2002-06-04  Werner LEMBERG  <wl@gnu.org>
3527         Changing the substring request to make it fit better with other
3528         string manipulation functions in other programming languages:
3529         Index 0 is now the first character in the string, and index -1
3530         indicates the last character.  Since this request didn't work
3531         properly anyway in the last release, it doesn't harm too much to
3532         change the syntax.
3534         * src/roff/troff/input.cc (substring_macro): Use loops to get
3535         the real string length (ignoring COMPATIBLE_SAVE and
3536         COMPATIBLE_RESTORE) and offsets.
3537         Implement change described above.
3539         * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
3540         (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
3542         * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
3544 2002-06-03  Werner LEMBERG  <wl@gnu.org>
3546         Make .chop work with .de1 and friends.  COMPATIBLE_SAVE and
3547         COMPATIBLE_RESTORE are completely ignored.
3549         * src/roff/troff/input.cc (char_list::set, char_list::get): New
3550         functions.
3551         (macro): `length' field renamed to `len'.
3552         Added new field `empty_macro' (1 if macro is empty), to be used
3553         instead of checking `len'.
3554         Updated all callers.
3555         (macro::empty): Updated.
3556         (macro::length, macro::set, macro::get): New functions.
3557         (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
3558         Set `empty_macro'.
3559         (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
3560         COMPATIBLE_RESTORE pairs.
3561         (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
3562         * src/roff/troff/request.h: Updated.
3564         * doc/groff.texinfo: Document .chop's behaviour better.
3566 2002-06-02  Werner LEMBERG  <wl@gnu.org>
3568         * doc/pic.ms: Fix documentation for the addition of positions.
3570         * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
3572 2002-06-29  Werner LEMBERG  <wl@gnu.org>
3574         Implementation of string arguments of the form \*[foo arg1 arg2 ...]
3576         * src/roff/troff/input.cc (have_string_arg): New global variable.
3577         (read_mode): New enumeration.
3578         (read_escape_name): Use it.  Update all calls.
3579         (read_long_escape_name): Use it.  Update all calls.
3580         Set have_string_arg if appropriate.
3581         (get_char_for_escape_name): Add parameter for handling space
3582         character.
3583         (interpolate_string_with_args, decode_string_args): New functions.
3584         (get_copy, token::next): Call it if necessary.
3585         (interpolate_string): Fix error message.
3587         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
3588         Document it.
3590 2002-06-24  Bernd Warken  <bwarken@mayn.de>
3592         * man/groff_tmac.man: Updated and extended.
3594 2002-06-24  Werner LEMBERG  <wl@gnu.org>
3596         * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
3598 2002-06-23  Werner LEMBERG  <wl@gnu.org>
3600         * doc/pic.ms: Improve documentation of composite block objects.
3602 2002-06-22  Werner LEMBERG  <wl@gnu.org>
3604         * src/roff/troff/input.cc (init_registers): Add three registers
3605         `seconds', `minutes', and `hours' to hold the current time.
3607         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
3608         Updated.
3610 2002-06-20  Werner LEMBERG  <wl@gnu.org>
3612         Make \X accept both `\ ' and `\~', converting them to single space
3613         characters.
3615         * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
3616         (token::unstretchable_space): New inline function.
3617         * src/roff/troff/input.cc (token::next, token::delimiter,
3618         token::description, token::add_to_node_list, token::process): Handle
3619         TOKEN_UNSTRETCHABLE_NODE.
3620         (encode_char): Handle tok.stretchable_space and
3621         tok.unstretchable_space.
3623         * NEWS, doc/groff.texinfo: Document it..
3625 2002-06-19  Werner LEMBERG  <wl@gnu.org>
3627         * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
3629         * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
3630         keyword to enable/disable SGR output.
3631         (tty_printer::change_fill_color): New function.
3632         * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
3634         * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
3635         call.
3637 2002-06-18  Werner LEMBERG  <wl@gnu.org>
3639         Add a `color' request and a `.color' register to control usage of
3640         colours.
3642         * src/roff/troff/input.cc (disable_color_flag): Replaced with...
3643         (color_flag): This (which is the inverse).
3644         (activate_color): New function.
3645         (main, init_input_requests): Updated.
3646         * src/roff/troff/troff.h, src/roff/troff/node.cc
3647         (troff_output_file::fill_color, troff_output_file::glyph_color):
3648         Updated.
3650         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
3651         Document the changes.
3653 2002-06-17  Colin Watson  <cjwatson@debian.org>
3655         Circumvent bug in autoconf 2.53 regarding top_builddir.
3657         * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
3658         * Makefile.in, doc/Makefile.in:
3659         s/@top_builddir@/@groff_top_builddir@/.
3660         * configure: Regenerated (with autoconf 2.53).
3662 2002-06-17  Werner LEMBERG  <wl@gnu.org>
3664         * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
3665         `paperwidth' and `paperlength' for the `papersize' keyword.
3667 2002-06-16  P. Alejandro Lopez-Valencia  <dradul@007mundo.com>
3669         * src/devices/grops/grops.man: Add info about Type 42 fonts.
3671 2002-06-15  Gaius Mulley  <gaius@glam.ac.uk>
3673         * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
3674         html_printer::do_linelength, html_printer::do_pageoffset,
3675         html_printer::do_indentation, html_printer::do_tempindent,
3676         html_printer::do_break, html_printer::begin_page): Clear indented
3677         text.
3678         * tmac/html.tmac: Disable hyphenation.
3680 2002-06-15  Werner LEMBERG  <wl@gnu.org>
3682         Don't produce HTML files if utility programs are missing.
3684         * Makefile.in (make_html, make_install_html): New variables.
3685         (MDEFINES): Updated.
3687         * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
3688         utility programs.
3689         * configure.ac: Use it.
3690         * configure: Regenerated.
3692         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
3693         (HTMLEXAMPLESFILES): This new variable.
3694         (EXAMPLESIMAGEFILES): Renamed to...
3695         (HTMLEXAMPLEIMAGEFILES): This.
3696         (CLEANADD): Add HTMLEXAMPLEFILES.
3697         (all): Use `make_html'.
3698         (html): New target.
3699         (install_data): Use `make_install_html'.
3700         Move html stuff to...
3701         (install_html): This new target.
3702         (uninstall_sub): Updated.
3704 2002-06-14  Bernd Warken  <bwarken@mayn.de>
3706         * src/roff/grog/Makefile.sub (grog): Renamed to...
3707         (grog.old): This.
3708         (grog): New rule to always install grog.sh as grog.
3710 2002-06-08  Bernd Warken  <bwarken@mayn.de>
3712         * src/roff/grog/grog.pl: Fix typo.
3714 2002-06-07  Werner LEMBERG  <wl@gnu.org>
3716         * doc/groff.texinfo: Add more info on .tr arguments.
3718 2002-06-05  Werner LEMBERG  <wl@gnu.org>
3720         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
3722         * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
3723         * configure: Regenerated.
3725 2002-06-05  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
3727         * src/roff/troff/symbol.cc (table_sizes): Add more values.
3729         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
3731 2002-06-04  Werner LEMBERG  <wl@gnu.org>
3733         * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
3734         is not initialized at the time we need it in case `--prefix' hasn't
3735         been set.  Check for `ac_default_prefix' also.
3736         Test for `papersize' keyword also and generalize allowed whitespace.
3737         * configure: Regenerated.
3739         * font/devps/Makefile.sub (DESC): Use `papersize' instead of
3740         `paperlength'.
3742         * src/libs/libgroff/Makefile.sub (version, revision): Replaced
3743         with...
3744         (src_version, src_revision): New variables to avoid overwriting
3745         from parent make process.
3746         (version.cc): Updated.
3748         * src/preproc/html/pre-html.cc: Include paper.h and font.h.
3749         (linebuf, linebufsize): New global variables.
3750         (sys_fatal): Use `fatal' to abort properly.
3751         (get_line): New function.
3752         (get_resolution): Use it.
3753         Improve error messages.
3754         (get_papersize): Check `papersize' also.
3755         Use `get_line'.
3756         Improve error messages.
3758 2002-06-03  Werner LEMBERG  <wl@gnu.org>
3760         * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
3761         should be removed only if builddir is not srcdir.
3762         (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
3763         (clean): Depend on `mostlyclean'.
3764         (distclean): Depend on `clean'.
3765         (realclean, extraclean): Depend on `distclean'.
3766         (.y.cc, .y.o): Simplified.  The output files are no longer written
3767         to srcdir but to builddir.
3768         * Makefile.in (MDEFINES): Add `version' and `revision'.
3769         (uninstall_dirs): Fix order of directories.
3770         * doc/Makefile.sub (version, revision): Removed.
3771         (CLEANADD): Removed grnexmpl.g, groff, groff-*.
3772         Added `HTMLDOCFILES'.
3773         (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
3774         * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
3775         src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
3776         as prefix.
3778         * doc/texinfo.tex (\authortt): New macro.
3779         (\shortcontt): Define.
3780         (\titlepage): Set \tt to \authortt while defining \authorfont.
3781         (\appendixbox): New macro.
3782         (\chapmacro, \appendixentry): Use \appendixbox to get even
3783         indentation for letters.
3784         (\summarycontents): Set \tt.
3785         (\internalpagesize): Add two arguments for real paper width and
3786         height as needed by pdfTeX.
3787         (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
3788         Updated.
3789         (\tempdima, \tempdimb): New temporary dimensions.
3790         (\pagesizesyyy): Updated.
3792 2002-06-02  Werner LEMBERG  <wl@gnu.org>
3794         Adding a new keyword `papersize' to the DESC file format (similar
3795         but not completely identical to grolbp's extension).  grops now has
3796         a -p command line option to override `papersize'.  Finally, grolbp
3797         has been adapted to the new syntax.
3799         * src/libs/libgroff/paper.cc, src/include/paper.h: New files.  It
3800         defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
3801         elements.
3802         * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
3803         (CCSRCS): Add `paper.cc'.
3805         * src/include/font.h (font): Add `papersize' element.
3806         * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
3807         (font::scan_papersize): New function.
3808         (font::load_desc): Use it for handling `papersize' keyword.
3809         * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
3811         * src/devices/grops/ps.cc: Include paper.h.
3812         (user_paper_length): New global variable.
3813         (ps_printer): Use paper length as initializer.
3814         (make_printer): Updated.
3815         (main): Handle new `-p' option.
3816         * src/devices/grops/grops.man: Updated.
3818         * src/devices/grolbp/lbp.cc: Include paper.h.
3819         s/papersizes/lbp_papersizes/.
3820         (set_papersize): Use new `papersizes' array.
3821         (handle_unknown_desc_command): Don't handle `papersize'.
3822         (main): Use `font::scan_papersize' for handling `-p' option.
3823         * src/devices/grolbp/grolbp.man: Updated.
3825         * man/groff_font.man: Document `papersize'.
3826         * NEWS: Updated.
3828 2002-05-30  Werner LEMBERG  <wl@gnu.org>
3830         * src/devices/grops/TODO: Updated.
3831         * src/devices/grops/grops.man: More info on paper formats.
3832         * man/groff_font.man: Document `paperheight' and `paperwidth'.
3834 2002-05-29  Werner LEMBERG  <wl@gnu.org>
3836         * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
3837         to list only if srcdir != currdir.
3838         (distfiles): New target.
3840         * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
3841         (NOMAKEDIRS): New variable.
3842         (DISTDIRS): Use it.
3844 2002-05-26  Werner LEMBERG  <wl@gnu.org>
3846         Add .output request, similar to \! at top-level.
3848         * src/roff/troff/input.cc (transparent): Remove unused declaration.
3849         (output_request): New function.
3850         (init_input_requests): Add it.
3851         Sorted.
3852         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
3853         Document it.
3855         * Makefile.in (MDEFINES): Add INSTALL_INFO.
3856         (prepare_examples): Fix typo.
3857         * doc/groff.texinfo (@direntry): Fix it.
3859 2002-05-25  Werner LEMBERG  <wl@gnu.org>
3861         Including the doc subdir into groff's Makefile system.
3863         * aclocal.m4 (GROFF_INSTALL_INFO): New function.
3864         * configure.ac: Use it.
3865         Generate `doc/Makefile'.
3866         * configure: Regenerated.
3868         * Makefile.in (infodir, INSTALL_INFO): New variables.
3869         (MDEFINES, uninstall_dirs): Updated.
3870         (OTHERDIRS): Add `doc'.
3871         * Makefile.comm (CLEANDIRADD): New variable.
3872         (mostlyclean): Use it.
3874         * doc/Makefile.sub, doc/Makefile.in: New files.
3875         * doc/Makefile: Removed.
3877         * NEWS, INSTALL: Updated.
3879 2002-05-24  Werner LEMBERG  <wl@gnu.org>
3881         * doc/homepage.ms: Renamed to ...
3882         * doc/webpage.ms: This.
3883         Use `.NHR'.
3885 2002-05-23  Werner LEMBERG  <wl@gnu.org>
3887         Integrating the `mom' macro package, contributed by Peter Schaffter
3888         <df191@ncf.ca>.
3890         * contrib/mom/*: New subdirectory tree.
3891         * Makefile.in (docdir, exampledir, htmldocdir): New variables to
3892         be used for documentation files.
3893         (MDEFINES, uninstall_dirs): Use them.
3894         (OTHERDIRS): Add contrib/mom.
3895         * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
3896         @HTMLDOCDIR@.
3897         * MANIFEST, NEWS: Updated.
3899 2002-05-22  Gaius Mulley  <gaius@glam.ac.uk>
3901         Change syntax of \O: \O[0] suppresses output, \O[1] enables output
3902         if at outer level; at start-up we are at outer level.
3904         * src/roff/troff/input.cc (do_suppress): Implement it.
3905         Simplify \O[3].
3907         Add option -p to show progress information.
3908         pre-grohtml will now render only one page at a time, reducing the
3909         size of needed disk resources enormously.
3911         * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
3912         (imagePageName): New global variable.
3913         (psPageName, show_progress, currentPageNo): New global variables.
3914         (html_system): Close saved stderr and stdout handles.
3915         (write_end_image): Accept a parameter to control \O escape.
3916         (write_start_image): Adapted to new \O meaning.
3917         (char_buffer::write_upto_newline): Updated.
3918         (createAllPages): Replaced with...
3919         (createPage): This new function to create a single page for images.
3920         It uses `psselect' from the psutils package.
3921         (removeAllPages): Removed.
3922         (createImage): Updated.
3923         Handle progress display.
3924         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
3925         (scanArguments): Add option -p.
3926         (makeTempFiles): Updated to create temp files for psPageName and
3927         imagePageName.
3928         (removeTempFiles): Removed.
3929         (main): Updated.
3931         * src/devices/grohtml/post-html.cc (header_desc::write_headings,
3932         html_printer::write_header): Append `\0' to `buffer'.
3933         (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
3934         (main): Handle -p.
3935         * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
3936         Handle `text_emitted'.
3937         (html_text::table_is_void): Slightly rewritten.
3938         (stop): New external symbol.
3939         (html_text::do_push) [DEBUGGING]: Use it and simplify.
3940         (html_text::shutdown): Call `dump_stack'.
3941         (html_text::do_space): Rewritten.
3942         * src/devices/grohtml/grohtml.man: Document -p and the need of
3943         `psselect'.
3945         * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
3946         new \O syntax.
3947         Call \O[0] if `ps4html' is active.
3948         * tmac/s.tmac (@EQ, @EN): Handle html better.
3949         (@TS, TE): Ditto.
3950         * tmac/html.tmac: Don't use black for background colour.
3952         * src/roff/troff/node.cc: Include `div.h'.
3953         (troff_output_file::really_print_line): Don't use `is_on'. 
3954         (troff_output_file::word_marker, troff_output_file::flush_tbuf
3955         troff_output_file::check_charinfo,
3956         troff_output_file::put_char_width, troff_output_file::put_char,
3957         troff_output_file::determine_line_limits, troff_output_file::draw,
3958         real_output_file::begin_page, glyph_color_node::tprintf,
3959         fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
3960         Use `is_on'.
3961         (troff_output_file::really_on): Call `do_motion'.
3962         (suppress_node::tprint): Use `get_page_number' instead of `%'
3963         register.
3964         Call `reset_output_registers' conditionally on `is_on'.
3966         * doc/groff.texinfo: Document new syntax of \O.
3967         * NEWS, man/groff_diff.man: Updated.
3969 2002-05-22  Werner LEMBERG  <wl@gnu.org>
3971         * MORE.STUFF: Add info about David Frey's deroff implementation.
3972         Mention troff.org.
3974 2002-05-16  Werner LEMBERG  <wl@gnu.org>
3976         Pic's `with' attribute now accepts positions.
3978         * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
3979         ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
3980         conflicts.
3981         (object_spec): Add rule for `WITH' and `position'.
3982         (relative_path): Give `corner' the precedence of `CHOP'.
3983         * src/preproc/pic/object.h (path): New members `pos' and
3984         `is_position'.
3985         * src/preproc/pic/object.cc: Updated initializers of `path'.
3986         (path::follow): Handle `is_position'.
3988         * doc/pic.ms: Completely updated grammar description.
3989         Many typographical improvements.
3991 2002-05-15  Werner LEMBERG  <wl@gnu.org>
3993         * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
3994         code of x in range 0-127) also.
3995         * doc/groff.texinfo, man/groff_diff.man: Updated.
3997         Added keywords `north', `south', `east', and `west' for corners
3998         in pic.
4000         * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
4001         and WEST.
4002         (yylex): Handle them.
4003         * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
4004         (corner): Handle them.
4006 2002-05-14  Werner LEMBERG  <wl@gnu.org>
4008         * src/devices/grops/grops.man: Clarify handling of `download' file.
4010 2002-05-11  Werner LEMBERG  <wl@gnu.org>
4012         Adding `warnscale' and `spreadwarn' requests, based on a patch from
4013         Jeffrey Friedl <jfriedl@yahoo.com>.
4015         * src/roff/troff/input.cc (spread_limit, warn_scale,
4016         warn_scaling_indicator): New global variables.
4017         (warnscale_request, spreadwarn_requests): New functions.
4018         (main): Initialize `warn_scale' and `warn_scaling_indicator'.
4019         (init_input_requests): Updated.
4020         (error_type): Add `OUTPUT_WARNING'.
4021         (do_error): Handle it.
4022         (output_warning): New warning function which shows output location.
4023         * src/roff/troff/env.h (spread_limit): New external variable.
4024         * src/roff/troff/env.cc (environment::choose_breakpoint): Use
4025         `output_warning'.
4026         (distribute_space): Emit warning if added space is larger than
4027         `spread_limit'.
4028         (environment::possibly_break_line): Emit warning if a line can't
4029         be adjusted on both sides.
4031         * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
4033 2002-05-08  Werner LEMBERG  <wl@gnu.org>
4035         * src/roff/troff/node.cc (special_node::special_node): Use
4036         env_definite_font(curenv) instead of curenv->get_font().  Otherwise
4037         \X''\% crashes, for example.
4039         * doc/groff.texinfo: Document \! and \? used at top-level.
4041 2002-05-06  Werner LEMBERG  <wl@gnu.org>
4043         * src/preproc/pic/pic.man: Fix some keyword syntax.
4044         Other minor typographical fixes.
4046         * src/roff/groff/groff.man: Fix typos.
4048 2002-05-04  Werner LEMBERG  <wl@gnu.org>
4050         * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
4051         (ShortOpt[]): This to avoid problems with refer.
4053         * doc/pic.ms: Fix typo.
4054         Fix pic grammar description.
4056         * tmac/an-old.tmac (ne): Use de1, not de.
4058 2002-05-03  Werner LEMBERG  <wl@gnu.org>
4060         * doc/groff.texinfo: Finished separation of glyphs and characters.
4061         Don't use the string `Appendix' for appendix headers (both in
4062         the text and the table of contents).
4063         * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
4064         directories.
4066         Use registers LL and LT (similar to -ms) for controlling the
4067         length of title and line, respectively, in the -man and -mdoc
4068         macro packages.
4070         * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
4071         (doc-setup-page-layout): Use \n[LL] and \n[LT].
4072         * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
4073         (TH): Use \n[LL].
4074         (an-header, an-p-footer): Use \n[LT].
4075         * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
4076         doc/groff.texinfo: Document it.
4078 2002-05-02  Werner LEMBERG  <wl@gnu.org>
4080         * doc/fdl.texi: New file.
4081         * doc/groff.texinfo: Include it.
4082         Define and use @copying.
4083         Starting with separating glyph, symbol, and character.
4085 2002-04-27  Werner LEMBERG  <wl@gnu.org>
4087         * Makefile.in (EXEEXT): Set it.
4088         * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
4089         programs.
4091         * src/include/nonposix.h: Define GS_NAME.
4092         * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
4094         Some preliminary changes for EMX support under OS/2.
4096         * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
4097         __EMX__ similar to __MSDOS__.
4098         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
4100 2002-04-25  Werner LEMBERG  <wl@gnu.org>
4102         * doc/groff.texinfo: Integrated groff_out.man.
4103         Some macro fixes.
4105 2002-04-23  Werner LEMBERG  <wl@gnu.org>
4107         * man/groff_out.man: Minor fixes.
4109 2002-04-23  Werner LEMBERG  <wl@gnu.org>
4111         * doc/groff.texinfo: Moving @cindex entries after @Def* to get
4112         correct page references.
4113         Fixed many index entries.
4115 2002-04-23  Bernd Warken  <bwarken@mayn.de>
4117         * man/roff.man: Enlarged.
4119 2002-04-22  Werner LEMBERG  <wl@gnu.org>
4121         * doc/groff.texinfo: More examples, other fixes.
4123 2002-04-20  Werner LEMBERG  <wl@gnu.org>
4125         * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
4126         will now form a chain, e.g.
4128           .pi foo
4129           .pi bar
4131         is now the same as
4133           .pi foo | bar
4135         This is for compatibility with plan 9's troff.
4137         * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
4138         with UNIX troff.
4139         * NEWS: Updated.
4141         * doc/groff.texinfo: Add documentation of remaining requests and
4142         registers.
4144 2002-04-19  Werner LEMBERG  <wl@gnu.org>
4146         * doc/groff.texinfo: Add documentation of remaining escapes.
4148         * font/devdvi/generate/tc.map: Remove entry for `sr'.
4149         * font/devdvi/*TC: Regenerated.
4151 2002-04-18  Werner LEMBERG  <wl@gnu.org>
4153         * src/roff/troff/input.cc (token::next): Make \H behave consistently
4154         if not in compatibility mode, i.e., increment relative to the
4155         previous height.
4156         * doc/groff.texinfo: Updated accordingly.
4158 2002-04-17  Werner LEMBERG  <wl@gnu.org>
4160         * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
4162 2002-04-16  Bernd Warken  <bwarken@mayn.de>
4164         * src/roff/groff/groff.man: Improve documentation of -P option.
4165         Other minor fixes.
4167 2002-04-15  Werner LEMBERG  <wl@gnu.org>
4169         Add new escape \F to switch font family.
4171         * src/roff/troff/input.cc (token::next): Handle \F.
4172         * src/roff/troff/env.cc (environment::set_family): Handle
4173         `interrupted' flag.
4174         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
4175         Document it.
4177 2002-04-14  Werner LEMBERG  <wl@gnu.org>
4179         * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
4180         spaces in tags.
4182 2002-04-13  Werner LEMBERG  <wl@gnu.org>
4184         Implement \f[] as an alternative to \fP.  Change \mP and \MP to
4185         \m[] and \M[], respectively.
4187         * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
4188         (symbol::symbol): Handle NULL string and empty string differently.
4189         * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
4190         * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
4191         Add optional parameter.
4192         Updated calling functions.
4193         (get_copy, do_glyph_color, do_fill_color, token::next): Use
4194         `symbol::is_empty'.
4195         * src/roff/troff/env.cc (environment::set_font): Ditto.
4197         * src/preproc/pic/troff.cc (troff_output::set_fill,
4198         troff_output::reset_color: Updated.
4200         * tmac/www.tmac: Updated.
4202         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
4203         doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
4204         Updated.
4206         * tmac/Xps.tmac: Remove some redundant code.
4208         * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
4209         tmac/dvi.tmac, contrib/groffer/groffer.man, man/roff.man,
4210         man/groff_out.man, man/groff.man, man/groff_diff.man,
4211         src/roff/groff/groff.man: Replace \f[P] with \f[].
4213 2002-04-13  Bernd Warken  <bwarken@mayn.de>
4215         * src/include/printer.h, src/libs/libdriver/printer.cc
4216         (printer::change_fill_color): New member function.
4217         * src/libs/libdriver/input.cc (parse_D_command): Use it.
4219 2002-04-12  Werner LEMBERG  <wl@gnu.org>
4221         * doc/groff.texinfo: Completed pass on gtroff reference.
4223 2002-04-11  Werner LEMBERG  <wl@gnu.org>
4225         * doc/groff.texinfo: More fixes.
4227 2002-04-11  Bernd Warken  <bwarken@mayn.de>
4229         * src/include/color.h: Decorate with `const'.
4230         Use `size_t'.
4231         Include `stddef.h'.
4232         * src/libs/libgroff.color.cc: Decorate with `const'.
4233         Use `size_t'.
4234         (color::color): Initialize members.
4235         * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
4236         command according to the documentation.
4238         * man/groff_out.man: Updated.
4239         Minor fixes.
4241 2002-04-11  Gaius Mulley  <gaius@glam.ac.uk>
4243         * src/preproc/html/pre-html.cc (write_start_image): Remove
4244         redundant output.
4245         * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
4247         * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
4248         \C'hy' caused an assertion failure.
4250         * src/roff/troff/env.cc (environment::environment): Initialize
4251         `emitted_node'.
4252         (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
4254 2002-04-10  Werner LEMBERG  <wl@gnu.org>
4256         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
4257         Document pvs request and .pvs register.
4259 2002-04-09  Werner LEMBERG  <wl@gnu.org>
4261         * doc/groff.texinfo: Improve and fix documentation of diversions
4262         and environments.
4264 2002-04-08  Werner LEMBERG  <wl@gnu.org>
4266         * doc/groff.texinfo: Fix documentation of drawing functions.
4267         Other minor fixes.
4269 2002-04-07  Werner LEMBERG  <wl@gnu.org>
4271         * doc/groff.texinfo: Better documentation of double quotes as
4272         arguments.
4273         Other minor fixes.
4275 2002-04-06  Werner LEMBERG  <wl@gnu.org>
4277         * man/groff_font.man: Document names of special characters better.
4278         * doc/groff.texinfo: Minor improvements.
4280         * tmac/lbp.tmac: Load latin1.tmac.
4281         * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
4283         * font/devX*/*: Regenerated (all chars > 0x80 removed).
4285 2002-04-05  Werner LEMBERG  <wl@gnu.org>
4287         * tmac/tty.tmac: Don't use shc request.
4288         * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
4289         * NEWS: Updated.
4291         * man/groff_diff.man: Minor fixes.
4293         * font/devlbp/*: Remove all `charXXX' entities.
4295         * src/libs/libgroff/font.cc (font::~font): Deallocate
4296         `special_device_coding'.
4297         (font::load): Use `new' for allocating `special_device_coding'.
4298         * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
4299         Removed unused member.
4301 2002-04-05  Werner LEMBERG  <wl@gnu.org>
4303         * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
4304         (resource_manager::do_begin_binary,
4305         resource_manager::do_begin_data): Use it.
4307         * doc/texinfo.tex: Updated to version 4.2.
4309         * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
4310         (token::zero_width_break): New inline function.
4311         * src/roff/troff/input.cc (token::next): Use it.
4312         (token::description): Updated.
4313         (encode_char): Ignore `\%', `\&', `\)', and `\:'.
4314         (token::add_to_node_list, token::process): Use it.
4315         * NEWS, doc/groff.texinfo: Updated.
4317         * src/preproc/eqn/over.cc (over_box::output): Fix typo.
4318         * tmac/tty.tmac: Add missing backslash.
4320 2002-04-04  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
4322         * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
4323         `.ps' register instead of `.s' to handle fractional point sizes.
4324         * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
4325         limit_box::output): Ditto.
4326         * src/preproc/eqn/other.cc (size_box::compute_metrics,
4327         size_box::output): Ditto.
4328         * src/preproc/eqn/over.cc (over_box::compute_metrics,
4329         over_box::output): Ditto.
4330         * src/preproc/eqn/script.cc (script_box::compute_metrics,
4331         script_box::output): Ditto.
4332         * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
4333         sqrt_box::output): Ditto.
4335 2002-04-03  Michael Selway  <mas@ssl.co.uk>
4337         * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
4338         Fix typo.
4340 2002-04-03  Werner LEMBERG  <wl@gnu.org>
4342         * doc/homepage.ms: Reduce title size.
4343         * doc/groff.texinfo: Fix documentation of .t register.
4344         Fix handling of colon.
4345         Fix `\' vs. `\\'.
4347         * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
4348         only if page length is positive to avoid a loop.
4350         * tmac/an-old.tmac (ne): Increase page length to avoid problems with
4351         tbl.
4353 2002-04-02  P. Alejandro Lopez-Valencia  <dradul@yahoo.com>
4355         * src/include/nonposix.h, src/roff/groff/pipeline.c:
4356         s/__CYGWIN32__/__CYGWIN__/.
4358 2002-03-28  Gaius Mulley  <gaius@glam.ac.uk>
4360         * doc/gnu.xpm: New image contributed by Emily Mulley.
4361         * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
4362         (homepage.html): Be dependent on gnu.eps.
4363         * doc/homepage.ms: Updated to new image.
4365         * src/devices/grohtml/post-html.cc (html_printer): New member
4366         `sbuf_prev_hpos'.
4367         (html_printer::flush_sbuf, html_printer::set_char): Set it.
4368         (html_printer::sbuf_continuation): Use it.
4370 2002-03-28  Werner LEMBERG  <wl@gnu.org>
4372         * src/libs/libgroff/getopt.c: Updated to latest version.
4374         * tmac/README: More on hyphen.tex license.
4376 2002-03-26  Larry Kollar  <kollar@alltel.net>
4378         * doc/groff.texinfo: Add documentation of most missing requests.
4380 2002-03-25  Werner LEMBERG  <wl@gnu.org>
4382         Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
4383         of `+-', `mu', and `di', respectively.
4385         * font/devascii/R.proto, font/devutf8/R.proto,
4386         font/devlatin1/R.proto, font/devhtml/R.proto,
4387         font/devcp1047/R.proto, font/devlpb/*: Add them.
4388         * font/devps/generate/textmap: Ditto.
4389         * font/devps/*: Regenerated.
4390         * font/devlj4/generate/text.map: Add them.
4391         * font/devlj4/*: Regenerated.
4392         * font/devdvi/generate/tc.map: Use them.
4393         * font/devdvi/generate/texsy.map: Add them.
4394         * font/devdvi/*: Regenerated.
4395         * font/devX*/*: Regenerated.
4397         * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
4398         tmac/tty-char.tmac: Updated.
4400         * NEWS, man/groff_char.man: Updated.
4402 2002-03-24  Werner LEMBERG  <wl@gnu.org>
4404         * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
4405         tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
4406         * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
4407         we use `.fchar' in dvi.tmac.
4408         * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
4409         * tmac/Xps.tmac: Simplify some char definitions.
4410         Add definition for \[f/].
4411         * man/groff_char.man: Updated for new X.tmac.
4413         * tmac/README: New file.
4415 2002-03-23  Phil Lobbes  <phil@perkpartners.com>
4417         * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
4418         internal .y.o rule took precendence over the .y.cc rule, compiling
4419         the yacc files with gcc instead of g++.
4421 2002-03-23  Werner LEMBERG  <wl@gnu.org>
4423         * tmac/dvi.tmac: Add replacement font for `CB'.
4425         * tmac/doc.tmac: s/request/macro/ in messages.
4426         (doc-generic-macro): Improve error message.
4427         * tmac/groff_mdoc.man: Minor improvements.
4429 2002-03-22  Werner LEMBERG  <wl@gnu.org>
4431         * doc/groff.texinfo: Document possible conflict between `tr' and
4432         `char' requests.
4434 2002-03-21  Werner LEMBERG  <wl@gnu.org>
4436         Improve handling of hyphenation patterns.  It is now possible to
4437         use most of TeX's pattern files unmodified.  To make the process
4438         more flexible, a new request `hpfcode' has been added which
4439         provides a character code mapping for the `hpf' request.  See
4440         comment before hpf_getc() for more details.
4442         * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
4443         functions.
4444         (read_patterns_file): Additional parameter for exception dictionary.
4445         Extended to recognize \pattern, \hyphenation, and \endinput.
4446         (do_hyphenation_patterns_file): Updated.
4447         * src/roff/troff/env.h (hpf_code_table): New extern.
4449         * src/roff/troff/input.cc (hpf_code_table): New array.
4450         (init_hpf_code_table, hyphenation_patterns_file_code): New
4451         functions.
4452         (hyphenation_code): Handle translation from `trin' correctly.
4453         (main, init_input_requests): Updated.
4454         (charinfo::set_translation): Handle hyphenation code also.
4456         * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
4457         inline function.
4459         * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
4460         char' is used for offsets in hyphenation exceptions.
4462         * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
4464         * NEWS, man/groff_diff.man, man/groff.man: Document it.
4466 2002-03-20  Larry Kollar  <kollar@alltel.net>
4468         * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
4469         requests.
4471 2002-03-18  Werner LEMBERG  <wl@gnu.org>
4473         * tmac/html.tmac: Fix serious typo.
4475 2002-03-17  Larry Kollar  <kollar@alltel.net>
4477         * doc/groff.texinfo: Add documentation for `writec' request.
4479 2002-03-17  Werner LEMBERG  <wl@gnu.org>
4481         Added request `hpfa' to append hyphenation patterns.
4483         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
4484         parameter `append'.
4485         (hyphenation_patterns_file): Renamed to...
4486         (do_hyphenation_patterns_file): This.
4487         (hyphenation_patterns_file, hyphenation_patterns_file_append): New
4488         functions.
4489         (init_hyphen_requests): Updated.
4490         * NEWS, man/groff.man, man/groff_diff.man: Document it.
4492 2002-03-16  Werner LEMBERG  <wl@gnu.org>
4494         Added request `writec' in analogy to `tmc'.
4496         * src/roff/troff/input.cc (write_request): Renamed to...
4497         (do_write_request): This.
4498         Added one parameter.
4499         (write_request, write_request_continue): New functions.
4500         (init_input_requests): Updated.
4501         * NEWS, man/groff.man, man/groff_diff.man: Document it.
4503         * font/devdvi/DESC.in (sizes): Allow all sizes in the range
4504         5-10000pt.
4505         * NEWS: Document it.
4507 2002-03-15  Werner LEMBERG  <wl@gnu.org>
4509         * man/groff.man: Add writem request.
4511         Add request `trin' (translate input) to make `.asciify' work
4512         correctly.  This is necessary since `charXXX' entity names are no
4513         longer hardcoded in font definition files.
4515         * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
4516         `translate_input' members.
4517         (charinfo::set_asciify_code, charinfo::get_asciify_code,
4518         charinfo::set_translation_input): New methods.
4519         (charinfo::set_translation): Add third argument.
4520         * src/roff/troff/input.cc (charinfo:set_translation): Set
4521         `asciify_code'.
4522         (do_translate): Add second argument.
4523         (translate_input): New function.
4524         (init_input_requests): Updated.
4525         * src/roff/troff/node.cc (glyph_node::asciify,
4526         composite_node::asciify): Use `get_asciify_code'.
4528         * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
4530         * NEWS, man/groff.man, man/groff_diff.man: Updated.
4532 2002-03-14  Larry Kollar  <kollar@alltel.net>
4534         * doc/groff.texinfo: Improve documentation of .RS and .RE.
4536 2002-03-14  Werner LEMBERG  <wl@gnu.org>
4538         Add a new request `sizes' similar to the `sizes' command in DESC
4539         files.
4541         * src/roff/troff/env.cc (override_sizes): New function.
4542         (init_env_requests): Use it.
4543         * src/roff/troff/token.h: Export `read_string'.
4544         * NEWS, man/groff_diff.man, man/groff.man: Document it.
4546 2002-03-12  Werner LEMBERG  <wl@gnu.org>
4548         * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
4550 2002-03-10  Werner LEMBERG  <wl@gnu.org>
4552         * tmac/pspic.tmac: Add support for -Tdvi.
4553         * tmac/dvi.tmac: Include pspic.tmac.
4554         * src/devices/grodvi/grodvi.man: Document it.
4555         * NEWS: Updated.
4557         * font/devlj4/generate/Makefile: Fix URL of metric files.
4559 2002-03-09  Werner LEMBERG  <wl@gnu.org>
4561         * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
4563 2002-03-09  Larry Kollar  <kollar@alltel.net>
4565         * tmac/groff_ms.man: Add documentation for RS and RE macros.
4567 2002-03-08  Werner LEMBERG  <wl@gnu.org>
4569         * doc/groff.texinfo: Fixes for texinfo 4.1.
4571 2002-03-07  Werner LEMBERG  <wl@gnu.org>
4573         * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
4574         included.
4575         Handle CYGWIN properly.
4577 2002-03-07  Paco Andrés Verdú  <pandres@dragonet.es>
4579         * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
4580         * tmac/lbp.tmac: Add some font translations.
4582 2002-03-02  Werner LEMBERG  <wl@gnu.org>
4584         * font/devcp1047/R.proto, font/devlatin1/R.proto,
4585         font/devhtml/R.proto: Remove `charXXX'  entries.
4586         * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
4587         where appropriate.
4589         * font/devlj4/generate/text.map: Remove `charXXX' entries.
4590         * font/devlj4/*: Regenerated all font definition files.
4591         * tmac/lj4.tmac: Load latin1.tmac.
4593         * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
4594         from 2000-06-17: LJ4 metric files are *not* text files.
4596         * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
4597         register to test for EBCDIC.
4599 2002-03-01  Werner LEMBERG  <wl@gnu.org>
4601         * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
4602         files (as grops already does).
4603         * src/utils/afmtodit/afmtodit.man: Document comment lines in map
4604         files.
4605         * src/devices/grops/grops.man: Document comment lines in encoding
4606         files.
4608         * tmac/cp1047.tmac: New file.
4609         * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
4610         * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
4611         * tmac/Makefile.sub (NORMALFILES): Updated.
4613         * tmac/ec.tmac: Don't load latin1.tmac again.
4615         * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
4616         font/devps/generate/dingbats.map,
4617         font/devps/generate/dingbats.rmap, font/devps/text.enc,
4618         font/devps/generate/Makefile (symbolmap): Add header comment.
4619         * font/devps/generate/textmap: Ditto.
4620         Remove `charXXX' entries.
4621         * font/devps/symbolmap: Regenerated.
4622         * font/devps/*: Regenerated all font definition files.
4624 2002-02-28  Werner LEMBERG  <wl@gnu.org>
4626         Add color support to grodvi (for drawing colors are currently
4627         translated to gray values).
4629         * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
4630         (dvi_printer): Add `cur_color' member.
4631         (dvi_printer::set_color): New function.
4632         (draw_dvi_printer): Remove `fill'.
4633         (draw_dvi_printer::fill_next): Pass environment as parameter.
4634         Update code for new color support translated to gray.
4635         (dvi_printer::set_char): Updated.
4636         (dvi_printer::begin_page, dvi_printer::end_page): Handle color
4637         changes crossing the page border.
4638         (dvi_printer::draw): Updated.
4639         Remove cases `f' and `F'.
4640         * tmac/dvi.tmac: Add color definitions.
4641         * NEWS, src/devices/grodvi/grodvi.man: Updated.
4643         * tmac/an-old.tmac (R): Make this a macro to emit a warning if
4644         used incorrectly.
4646         * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
4647         versions of autoconf.
4648         * configure: Updated.
4650         * doc/homepage.ms: Use `.blm'.
4651         * tmac/www.tmac (www-depth): New auxiliary variable.
4652         (www-pop-level): Don't issue HTML tag.
4653         (ULS, ULE, LI): Use absolute indentation.
4655         * src/devices/grops/ps.cc (ps_printer::begin_page,
4656         ps_printer::end_page): Switch forth and back to default color while
4657         starting a new page.
4659 2002-02-27  Werner LEMBERG  <wl@gnu.org>
4661         Add EC and TC fonts to devdvi.
4663         * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
4664         * font/devdvi/generate/cork.map: Renamed to...
4665         * font/devdvi/generate/ec.map: This.
4666         Remove entry for `aq'.
4667         * font/devdvi/generate/tc.map: New file.
4668         * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
4669         EC and TC fonts.
4670         (FONTS): Updated.
4671         * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
4672         * font/devdvi/Makefile.sub (DEVFILES): Updated.
4673         * tmac/ec.tmac: New file.
4674         * tmac/Makefile.sub (NORMALFILES): Updated.
4675         * NEWS, src/devices/grodvi/grodvi.man: Updated.
4676         * man/groff_char.man: Check `ECFONTS' register.
4678         * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
4680 2002-02-26  Werner LEMBERG  <wl@gnu.org>
4682         * font/devdvi/generate/*.map: Remove all `charXXX' entries.
4683         * font/devdvi/generate/cork.map: Add 'y and 'Y.
4684         * font/devdvi/*: Updated.
4685         * tmac/dvi.tmac: Formatting.
4687         Add font `HBI' for the dvi output.
4688         Add support for font families `T' and `H'.
4690         * font/devdvi/HBI: New file.
4691         * font/devdvi/B: Renamed to ...
4692         * font/devdvi/TB: This.
4693         * font/devdvi/BI: Renamed to ...
4694         * font/devdvi/TBI: This.
4695         * font/devdvi/I: Renamed to ...
4696         * font/devdvi/TI: This.
4697         * font/devdvi/R: Renamed to ...
4698         * font/devdvi/TR: This.
4699         * font/devdvi/H: Renamed to ...
4700         * font/devdvi/HR: This.
4701         * font/devdvi/Makefile.sub (DEVFILES): Updated.
4702         * font/devdvi/generate/Makefile (HBI): New rule.
4703         (FONTS): Updated.
4704         (R, I, B, BI, H): Renamed to ...
4705         (TR, TI, TB, TBI, HR): This, respectively.
4706         (srcdir): Fixed.
4707         * NEWS, src/devices/grodvi/grodvi.man: Updated.
4708         * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
4709         Add `styles' and `family' keywords.
4710         * tmac/dvi.tmac: Alias `H' to `HR'.
4711         Add some fspecial requests for italic fonts.
4712         Add TR and TI as special.
4713         Add support for `_' with font CWI.
4715         * src/roff/troff/number.cc (parse_expr): Add missing `break' for
4716         operator `:'.  Until now, the expression `0:1' would return 2
4717         instead of 1.
4719 2002-02-25  Werner LEMBERG  <wl@gnu.org>
4721         * man/groff_char.man: Added some missing PS glyph names (from the
4722         Adobe Glyph List).
4723         * font/devps/generate/textmap, font/devps/symbolmap: Add
4724         `arrowupdn'.
4726         * doc/groff.texinfo: Minor additions and fixes.
4727         * man/groff_diff.man: Remove documentation of fp request.  This
4728         is already covered in the original troff manual.
4729         Updated to be consistent with other doc files.
4730         * NEWS: Updated.
4732 2002-02-24  Werner LEMBERG  <wl@gnu.org>
4734         * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
4735         TTYDEVDIRS.
4736         Define new variable OTHERDEVDIRS (containing `font/devlj4
4737         font/devlbp' if not EBCDIC).
4738         * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
4739         (OTHERDEVDIRS): New variable.
4740         (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
4741         * configure: Regenerated.
4743         * NEWS, src/devices/grotty/grotty.man: Updated.
4745 2002-02-23  Werner LEMBERG  <wl@gnu.org>
4747         * src/roff/troff/input.cc (do_overstrike, do_bracket,
4748         get_line_arg): Honour input level.
4750         Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
4752         * font/*/*: Implement it in all font files.
4753         * font/devps/generate/textmap, font/devps/generate/symbolchars,
4754         * font/devps/symbolmap: Updated.
4755         * font/devlj4/generate/text.map: Updated.
4756         * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
4757         * font/devdvi/generate/texmi.map: Updated.
4759         * font/devutf8/R.proto: Remove all `charXXX' entries.
4760         * font/devutf8/NOTES: Updated.
4762         * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
4763         version 4.1.0.
4765         * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
4767         * NEWS, man/groff_char.man: Updated.
4769 2002-02-21  Phil Lobbes  <phil@perkpartners.com>
4771         * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
4773 2002-02-20  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
4775         * src/roff/grog/grog.pl: Fix computation of $refer.
4777 2002-02-19  Werner LEMBERG  <wl@gnu.org>
4779         * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
4780         `snprintf' and `vsnprintf'.
4782         * src/include/htmlindicate.h: Renamed to...
4783         * src/include/htmlhint.h: This.
4784         * src/include/Makefile.sub: Updated.
4785         * src/preproc/eqn/main.cc: Updated.
4787 2002-02-18  Werner LEMBERG  <wl@gnu.org>
4789         * man/roff.man, man/groff_out.man, man/groff.man,
4790         man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
4791         src/roff/troff/troff.man: Updated to latest changes in www.tmac.
4793         * win32-diffs: Updated.
4795 2002-02-17  Werner LEMBERG  <wl@gnu.org>
4797         * doc/Makefile (clean): Add *.eps.
4798         (MEMACROS): Removed.
4799         (TFLAG): New variable.
4800         (TROFF): Use it.
4801         Add -ww.
4802         (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
4803         (.me.dit): Fixed.
4804         (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
4806         * tmac/www.tmac: Use dummy diversion while resetting and disabling
4807         `.tl'.
4808         * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
4809         unstripped.
4810         * src/roff/troff/troff.man: Fix order of parameter description.
4812         * NEWS: Updated.
4814 2002-02-16  Gaius Mulley  <gaius@glam.ac.uk>
4816         Simplify image handling for grohtml.
4817         Fix <p> bug.
4819         * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
4820         comment out.
4821         (html_text::dump_stack): Don't emit newline while debugging.
4822         (html_text::do_push) [DEBUGGING]: Print more info.
4823         (html_text::check_emit_text): Fix handling of <p>.
4824         * src/devices/grohtml/html.h: Updated.
4825         * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
4826         replacing `fputc', `fputs', `putc'.  If DEBUGGING is defined, they
4827         send its data to stderr also.
4828         Update all callers.
4829         (simple_output::space_or_newline) [DEBUGGING]: Removed.
4830         * src/devices/grohtml/post-html.cc (html_printer::do_links,
4831         html_printer::html_printer): Remove `DEBUGGING' conditionals.
4833         * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
4834         Removed.
4835         * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
4836         is_inline_image): Removed.
4837         (html_begin_suppress, html_end_suppress): Don't take a parameter.
4838         (graphic_start, graphic_end): Removed.
4839         * src/include/htmlindicate.h: Updated.
4840         * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
4841         (macroset_template): New global variable.
4842         (makeFileName): Use `macroset_template'.
4843         (write_end_image): Don't take a parameter.
4844         Don't emit newline.
4845         (write_start_image: Don't emit newline.
4846         (char_buffer::write_upto_newline): Updated.
4847         (char_buffer::skip_to_newline): Renamed to ...
4848         (char_buffer::skip_until_newline): This.
4849         Fix code.
4850         (char_buffer::write_file_troff, char_buffer::write_file_html):
4851         Simplified.
4852         (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
4853         (removeAllPages): Remove `DEBUGGING' conditionals.
4854         (addRegDef, dump_args): New functions.
4855         (char_buffer::do_html, char_buffer::do_image): Handle
4856         `www-image-template' command line variable.
4857         Add more debugging code.
4858         (addps4html): Removed.
4859         (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
4861         * src/preproc/eqn/main.cc: Include `ctype.h'.
4862         (suppress_html): Removed.
4863         (do_file): Updated.
4864         (inline_equation): Use `html_begin_suppress' and
4865         `html_end_suppress'.
4866         * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
4867         (troff_output::start_picture, troff_output::finish_picture):
4868         Updated.
4869         * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
4870         (process_input_file): Updated.
4872         * src/roff/troff/div.cc (page_number): Set page number only if the
4873         `ps4html' register isn't defined.
4874         * src/roff/troff/input.cc (image_no): New external variable.
4875         (do_suppress): Use it.
4876         * src/roff/troff/node.h (suppress_node::image_id): New member.
4877         * src/roff/troff/node.cc (image_no): Remove `static' keyword.
4878         (suppress_node::suppress_node): Initialize `image_id' member.
4879         (suppress_node::same): Handle `image_id' also.
4880         (suppress_node::copy): Updated.
4881         (last_image_id): New global variable.
4882         (suppress_node::tprint): Use it.
4884         * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
4885         HTML-IMAGE-END.
4886         * tmac/pspic.mac (PSPIC): Fix html support.
4887         * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
4888         * tmac/www.tmac (www-image-template): Set up.
4889         (HTMLINDEX): Renamed to...
4890         (HX): This.
4891         (BODYCOLOR): Renamed to...
4892         (BCL): This.
4893         (BACKGROUND): Renamed to...
4894         (BGIMG): This.
4895         (URL): Change order of parameters for consistency.
4896         (MAILTO): Renamed to...
4897         (MTO): This.
4898         (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
4899         (IMG, PIMG, MPIMG): This.
4900         (HTML-H-BEGIN, HTML-H-END): Renamed to...
4901         (HnS, HnE): This.
4902         (LINKS): Renamed to...
4903         (LK): This.
4904         (LINE): Renamed to...
4905         (HR): This.
4906         (NO-AUTO-RULE): Renamed to...
4907         (NHR): This.
4908         (HTML-TL): Renamed to...
4909         (HTL): This.
4910         (UL-BEGIN, UL-END): Renamed to...
4911         (ULS, ULE): This.
4912         (DROPCAP): Renamed to...
4913         (DC): This.
4914         (TS, TE, EQ, EN): Provide default definitions.
4915         (www-make-unique-name): Updated.
4916         (HTML-IMAGE-INLINE): Fix typo.
4917         * tmac/groff_www.man: Updated.
4919         * doc/Makefile (homepage.html): Add option -r to grohtml.
4920         Use shortened image name.
4921         * doc/groff.texinfo: Updated info on grohtml strings and macros.
4922         * doc/homepage.ms: Updated and extended.
4924 2002-02-14  Werner LEMBERG  <wl@gnu.org>
4926         Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
4928         * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
4929         SGR_BACK_DEFAULT_COLOR): Replaced with ...
4930         (tty_printer::put_color): Use it.
4931         (ttr_printer::end_page): Simplify.
4933 2002-02-13  Werner LEMBERG  <wl@gnu.org>
4935         * tmac/groff_tmac.man: Moved to...
4936         * man/groff_tmac.man: This place.
4937         * tmac/Makefile.sub, man/Makefile.sub: Updated.
4939 2002-02-12  Werner LEMBERG  <wl@gnu.org>
4941         * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
4942         $(COMPILE.c) to not include groff's assert.h.
4944         * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
4945         variable.
4946         * NEWS, src/drivers/grotty/grotty.man: Document it.
4948 2002-02-11  Werner LEMBERG  <wl@gnu.org>
4950         * src/libs/snprintf/snprintf.c: Updated to latest version
4951         (2002-02-11).
4953         * src/roff/grog/grog.pl (process): Fix handling of `.['.  We now
4954         test whether there is `.]' also.
4955         Don't check for spaces after `.['.
4956         * src/roff/grog/grog.sh: Do the same.
4958 2002-02-10  Werner LEMBERG  <wl@gnu.org>
4960         Illegal -> Invalid.
4962         * src/libs/libgroff/illegal.cc: Renamed to ...
4963         * src/libs/libgroff/invalid.cc: This.
4964         (illegal_char_table): Renamed to ...
4965         (invalid_char_table): This.
4966         * src/libs/libgroff/Makefile.sub: Updated.
4967         * win32-diffs: Updated.
4969         * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
4970         src/libs/libdriver/input.cc (fatal_command, parse_color_command,
4971         parse_x_command), src/libs/libgroff/font.cc (text_file::next,
4972         font::load), src/preproc/eqn/main.cc (read_line, main),
4973         src/preproc/eqn/lex.cc (file_input::read_line),
4974         src/preproc/pic/lex.cc (file_input::read_line,
4975         simple_file_input::get, simple_file_input::peek),
4976         src/preproc/pic/main.cc (top_input::get, top_input::peek),
4977         src/preproc/pic/pic.man, src/preproc/refer/main.cc
4978         (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
4979         do_bib), src/preproc/tbl/main.cc (table_input::get),
4980         src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
4981         src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
4982         do_zero_width, read_request, encode_char, ps_get_line,
4983         transparent_file, get_char_for_escape_name, transparent_translate,
4984         asciify, input_char_description, read_string, set_string),
4985         src/roff/troff/env.cc (environment::add_html_tag),
4986         src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
4988         * src/include/lib.h: Updated.
4990         * src/preproc/eqn/eqn.cc: Removed.
4992         * NEWS: Updated.
4994         * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
4996 2002-02-09  Werner LEMBERG  <wl@gnu.org>
4998         * doc/gnu.xpm: New image.
4999         * doc/Makefile (DOCS): Add homepage.ps.
5000         Add rules for converting xpm->png and xpm->eps.
5001         Use `gnu.{xpm,eps}' as image names.
5002         * doc/homepage.ms: Updated.
5004 2002-02-09  Gaius Mulley  <gaius@glam.ac.uk>
5006         * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
5007         (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
5008         Remove calls to `B1' and `B2'
5009         (PNG-IMAGE): New macro for inclusion of images in PNG format.
5010         (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
5011         auxiliary variables for MARGIN-PNG-IMAGE.
5012         (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
5013         auxiliary macros for MARGIN-PNG-IMAGE.
5014         (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
5015         the margin.
5016         (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
5017         (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
5018         (DROPCAP): New macro to produce dropcap characters.
5019         (www-do-image): Renamed back to...
5020         (HTML-DO-IMAGE): This.
5021         Updated all callers.
5023         * doc/Makefile (gnubw.eps): Updated.
5024         * doc/homepage.ms: Updated.
5026 2002-02-08  Werner LEMBERG  <wl@gnu.org>
5028         * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
5029         Added `linethick' to table in section `Style Variables'.
5031 2002-02-08  Gaius Mulley  <gaius@glam.ac.uk>
5033         * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
5035 2002-02-07  Werner LEMBERG  <wl@gnu.org>
5037         Adding options -C (compatibility mode) and -c (grotty's old output
5038         scheme) to nroff.
5040         * src/roff/nroff/nroff.sh: Implement it.
5041         Remove `-Wall'.
5042         * NEWS, src/roff/nroff/nroff.man: Updated.
5044         * PROBLEMS: Document bison 1.32 bug.
5046         Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
5048         * src/roff/troff/node.cc (make_tfont): Define it earlier.
5049         * src/roff/troff/div.h: Add prototype for `end_diversions'.
5050         * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
5051         * src/roff/troff/env.h: Add prototype for `title'.
5053         Adding EBCDIC support to grotty.
5055         * src/devices/grotty/tty.cc (CSI): New macro.
5056         (SGR_*, tty_printer::put_color): Use it.
5058 2002-02-06  Werner LEMBERG  <wl@gnu.org>
5060         Implementing color support in grotty.  The new switch -c activates
5061         the old drawing scheme, disabling color at the same time.  The new
5062         switch `-i' selects italic instead of underlining (SGR only).
5064         * src/devices/grotty/tty.cc (putstring): New define instead of
5065         `fputs'.  Updated all callers.
5066         (old_drawing_scheme): New global variable.
5067         (COLOR_CHANGE): New enum value.
5068         (SGR_*): New defines containing color handling escape sequences.
5069         (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
5070         (glyph): New members `back_color_idx' and `fore_color_idx'.
5071         (glyph::order): Add COLOR_CHANGE.
5072         (tty_printer): New members `cur_fore_idx', `curr_back_idx',
5073         `is_underline', `is_bold', `cu_flag', `tty_colors'.
5074         New methods `make_underline', `make_bold', `color_to_idx',
5075         `change_color', `put_color'.
5076         (cu_flag): Moved into `tty_printer' class.
5077         (tty_printer::tty_printer): Initialize colors.
5078         (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
5079         tty_printer::draw, tty_printer::end_page): Handle colors also.
5080         (main): Add options `-c' and `-i'.
5081         (usage): Updated.
5082         * NEWS, src/devices/grotty/grotty.man: Updated.
5084         * src/include/errarg.h (errarg): Add support for `unsigned int'.
5085         * src/libs/libgroff/errarg.c: Implement it.
5087         * src/include/printer.h (printer): Add `change_color' method
5088         (currently used by grotty only).
5089         * src/libs/libdriver/printer.cc: Implement it.
5090         * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
5091         call to `pr->change_color'.
5093         * src/roff/troff/node.cc (troff_output_file::fill_color,
5094         troff_output_file::glyph_color): Call `do_motion'.
5096         * tmac/tty.tmac: Add color definitions.
5098         * src/roff/groff/groff.man: Minor fixes.
5100 2002-02-05  Bernd Warken  <bwarken@mayn.de>
5102         * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
5103         it.  This is a preparation for future changes.
5105 2002-02-05  Werner LEMBERG  <wl@gnu.org>
5107         * src/roff/troff/input.cc (process_input_stack): Fix the case
5108         where leading spaces are followed by \f or \s; previously, an
5109         incorrect space width has been used.
5111         * doc/roff.man (quoted_char): Fix argument.
5112         (comment): Define string.
5114 2002-02-04  Larry Kollar  <kollar@alltel.net>
5116         * doc/groff.texinfo: More fixes.
5118 2002-02-04  Werner LEMBERG  <wl@gnu.org>
5120         * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
5121         * src/preproc/eqn/main.cc (do_file, inline_equation): Call
5122         `restore_compatibility' before `output_string' -- the LINE_STRING
5123         register now already contains proper switches from and to
5124         compatibility mode.
5126         * man/groff_char.man: Add Euro symbol.
5127         * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
5128         * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
5129         * doc/groff.texinfo (Defstr*): Print strings with full syntax.
5130         Other minor fixes.
5132         * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
5133         texinfo->pdf.
5134         (.texinfo.html): Add support for texinfo->html.
5136 2002-02-03  Werner LEMBERG  <wl@gnu.org>
5138         Added three new requests `ds1', `as1', and `ami'.  The former two
5139         are equivalent to `ds' and `as' with the difference that
5140         compatibility mode is saved on entry, switched off during string
5141         expansion, and restored on exit.  The latter is the pendant to `dei'
5142         for `am'.
5144         (do_define_string): Use `define_mode' and `calling mode'.
5145         Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
5146         end of string, respectively.
5147         (define_string, append_string): Use `calling_mode'.
5148         (define_nocomp_string, append_nocomp_string,
5149         define_string_indirect): New functions.
5150         (init_input_requests): Updated.
5151         * NEWS, man/groff_diff.man, man/groff.man: Document it.
5153         * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
5154         `as1' for assigning LINE_STRING (this is `10' usually).  Sun's
5155         mm macro package accesses this string register directly.
5156         * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
5158         * tmac/trace.tmac: Trace calls to `am' also.  Make it work in
5159         compatibility mode.
5161 2002-02-02  Larry Kollar  <kollar@alltel.net>
5163         * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
5165 2002-01-31  Werner LEMBERG  <wl@gnu.org>
5167         * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
5169 2002-01-31  Bernd Warken  <bwarken@mayn.de>
5171         * src/devices/grolbp/lbp.cc (main): Delete `pr'.
5172         * man/groff_out.man: Revised and updated.
5174 2002-01-30  Bernd Warken  <bwarken@mayn.de>
5176         * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
5177         out the unused `{' and `}' commands.  Undefined by default.
5178         (IntArray): Make `data' private.
5179         (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
5180         new methods instead.
5181         (skip_line_D, skip_to_end_of_line): New functions.
5182         (get_D_fixed_args): Use `skip_line_D'.
5183         Changed to handle dummy odd arguments by ...
5184         (get_D_fixed_args_odd_dummy): This new function.
5185         (get_D_variable_args): Split some code into ...
5186         (get_possibly_integer_args): This new function.
5187         (send_draw): Use more `const'.
5188         (delete_current_env): New function.
5189         (position_to_end_of_args): Use `size_t'.
5190         Updated.
5191         (send_draw): Updated.
5192         (parse_D_command): Handle `c', `C', and `t' better.
5193         Updated.
5194         (do_file): Updated.
5196 2002-01-29  Werner LEMBERG  <wl@gnu.org>
5198         * NEWS: Revised.
5199         * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
5200         @Def...ListEnd which replaces @Def...x.  This is necessary to get
5201         proper HTML output -- see the comment in the file for more
5202         information.
5203         Updated all calls.
5205 2002-01-29  Gaius Mulley  <gaius@glam.ac.uk>
5207         Fixes to make color changes of 2002-01-21 work with grohtml.
5209         * src/devices/grohtml/post-html.cc (style): Updated.
5210         (html_printer): Remove unused methods.
5211         (html_printer::do_font, html_printer::draw, html_printer::set_char,
5212         html_printer::special): Updated.
5213         * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
5214         html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
5215         Added some debugging code.
5216         (html_text::start_tag): Updated.
5217         (html_text::do_push): New method.
5218         (html_text::push_para): Call it.
5219         Add method for handling color.
5220         (html_text::do_color): Updated.
5221         (html_text::shutdown): Handle color.
5222         * src/devices/grohtml/html-text.h (tag_definition): New member
5223         `col'.
5224         Updated.
5226 2002-01-28  Werner LEMBERG  <wl@gnu.org>
5228         * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
5230 2002-01-27  Gaius Mulley  <gaius@glam.ac.uk>
5232         Add two switches -a and -g to control the antialiasing bits for
5233         text and graphics, respectively.
5235         * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
5236         `-g'.
5237         * src/devices/grohtml/grohtml.man: Document them.
5238         * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
5239         New macros.
5240         (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
5241         (setupAntiAlias): New function.
5242         (createAllPages): Updated.
5243         (scanArguments): Handle `-a' and `-g'.
5244         (main): Call `setupAntiAlias'.
5245         * NEWS: Updated.
5247 2002-01-27  Werner LEMBERG  <wl@gnu.org>
5249         * doc/groff.texinfo (Def*): Call index function after deffn.
5251         * tmac/html.tmac: Call `nroff' request.
5253 2002-01-26  Larry Kollar  <kollar@alltel.net>
5255         * tmac/groff_ms.man: Add some omissions.
5257 2002-01-25  Larry Kollar  <kollar@alltel.net>
5259         * tmac/groff_ms.man: Typographical improvements.
5261 2002-01-25  Werner LEMBERG  <wl@gnu.org>
5263         * doc/groff.texinfo: Updated version and copyright.
5264         * src/devices/grops/grops.man: Updated.
5266         * tmac/groff_tmac.man: Fix `ig' macro.
5268         * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
5269         nroff mode.
5270         Use `.ne' unconditionally everywhere.
5271         (TS): Only insert some vertical space.  Doing a page break is no
5272         longer necessary due to the redefinition of the `ne' request.
5274         * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
5275         warning for unknown subcommands but parse and pass them to the
5276         device driver.
5278 2002-01-24  Werner LEMBERG  <wl@gnu.org>
5280         * tmac/groff_www.man, NEWS: Fix typos.
5282 2002-01-21  Werner LEMBERG  <wl@gnu.org>
5284         Complete revision of color support:
5286           Adapt programs to the new libdriver/input.cc.
5288           Color spaces are no longer converted to RGB but transferred as-is
5289           in the troff intermediate output format.
5291           Handle default color gracefully.  troff now supports a `default'
5292           color (which can't be changed).
5294           grops will now use the proper color space functions if available.
5296           Update pic.
5298         Note that currently grohtml doesn't handle colors properly.  This
5299         has to be fixed.
5301         * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
5302         (ui_to_a): New function.
5303         * src/include/lib.h: Updated.
5305         * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
5306         (color): Simplified; removed all `double' members and methods.
5307         A new array `components' now holds the color parameters.
5308         (color::is_default, color::get_components): New methods.
5309         (color::operator==, color:operator!=): New.
5310         (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
5311         to make access to the `components' array more comprehensible.
5312         * src/libs/libgroff/color.cc: Implement new color support.
5313         (atoh): Small fixes.
5314         (color::read_encoding): Simplified for new troff intermediate color
5315         output format.
5316         (default_color): New global variable.
5318         * src/roff/troff/input.cc (default_symbol): New global variable.
5319         (lookup_color): Use it.
5320         (default_black): Removed.
5321         (do_glyph_color, do_fill_color): Simplified.
5322         (define_color): Handle default color.
5323         Improve warnings.
5324         (do_if_request): Handle default color.
5325         * src/roff/troff/env.cc (environment::environment): Initialize
5326         colors with `default_color'.
5327         * src/roff/troff/node.cc (troff_output_file::put): Add method
5328         for `unsigned int'.
5329         (troff_output_file::hex): Removed.
5330         (troff_output_file::fill_color, troff_output_file::glyph_color):
5331         Updated to include/color.h and libdriver/input.cc.
5333         * src/preproc/pic/object.cc (draw_arrow): New parameter to set
5334         fill color properly (identically to the outline color).  \D'f...'
5335         doesn't work any more.
5336         All function calls to it updated.
5338         * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
5339         Updated.
5340         * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
5341         Updated.
5343         * src/devices/grops/ps.cc (ps_output::put_color): New method.
5344         (ps_printer::sbuf_color): Make a real member instead of pointer.
5345         (ps_printer::fill_color, ps_printer::output_color): Removed.
5346         (ps_printer::ps_printer): Updated.
5347         (ps_printer::set_char): Ditto.
5348         (ps_printer::set_color): Use various color schemes.
5349         Use `put_color' method.
5350         (ps_printer::flush_sbuf): Don't set color.
5351         (ps_printer::fill_path): Take `environment' as parameter.
5352         Simplify color handling.
5353         (ps_printer::set_line_thickness): Renamed to ...
5354         (ps_printer::set_line_thickness_and_color): This (and updated).
5355         (ps_printer::set_color): Change second parameter from `complete'
5356         to `fill' which better describes what it does.
5357         (ps_printer::draw): Call `flush_sbuf' to output graphic commands
5358         and text in the right order.
5359         Updated.
5360         Remove branches for `f' and `F'; this is handled by
5361         libdriver/input.cc.
5362         * src/devices/grops/ps.h: Updated.
5363         * font/devps/prologue (FL): Redefined.
5364         ({F,C}r,k,g: New color functions (with and without filling).
5366         * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
5367         * man/groff_diff.man, man/groff.man, man/groff_out.man,
5368         doc/groff.texinfo, NEWS: Updated.
5370 2002-01-20  Bernd Warken  <bwarken@mayn.de>
5372         * src/libs/libdriver/input.cc: Completely rewritten.  See comments
5373         in this file for what has been changed.
5375 2002-01-19  Werner LEMBERG  <wl@gnu.org>
5377         * test-groff: Fix GROFF_FONT_PATH.
5378         * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
5379         is read before .TH or .Dd is parsed.
5381 2002-01-18  Gaius Mulley  <gaius@glam.ac.uk>
5383         * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
5384         quadrant boundaries.
5386 2002-01-18  Werner LEMBERG  <wl@gnu.org>
5388         * devices/grops/ps.cc: Aargh!  Fix the fix of the incorrectly
5389         applied last patch.
5391 2002-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
5393         * tmac/doc.common: Initialize %I register for the %I macro to
5394         avoid (harmless) warning.
5395         * tmac/doc.tmac (Bd): There is no reason to enforce -compact
5396         when in the SYNOPSIS section.
5398 2002-01-17  Bruno Haible  <haible@clisp.cons.org>
5400         * src/preproc/pic/lex.cc (get_token): Fix typo.
5402 2002-01-17  Werner LEMBERG  <wl@gnu.org>
5404         * devices/grops/ps.cc: Fix incorrectly applied last patch.
5406 2002-01-17  Larry Kollar  <kollar@alltel.net>
5408         * tmac/groff_ms.man: Completely rewritten.
5410 2002-01-16  Werner LEMBERG  <wl@gnu.org>
5412         * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
5414 2002-01-15  Gaius Mulley  <gaius@glam.ac.uk>
5416         * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
5417         fill colors.
5418         (ps_printer::draw): Ditto.
5420 2002-01-14  Ruslan Ermilov  <ru@FreeBSD.org>
5422         * tmac/groff_mdoc.man: Minor fixes.
5424 2002-01-13  Werner LEMBERG  <wl@gnu.org>
5426         * man/groff_out.man: Some fixes.
5428 2002-01-13  Gaius Mulley  <gaius@glam.ac.uk>
5430         * doc/pic.ms: Fix typos.
5432 2002-01-12  Werner LEMBERG  <wl@gnu.org>
5434         * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
5436 2002-01-10  Werner LEMBERG  <wl@gnu.org>
5438         * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
5439         symbols.
5440         * NEWS: Updated.
5442 2002-01-09  Bernd Warken  <bwarken@mayn.de>
5444         * man/groff_out.man: Revised.
5445         * man/roff.man: Minor fixes.
5446         * src/roff/troff/troff.man: Some reordering.
5448 2002-01-09  Werner LEMBERG  <wl@gnu.org>
5450         * tmac/an-old.tmac: Add dummy macros for equation support.
5452 2002-01-07  Werner LEMBERG  <wl@gnu.org>
5454         doc/groff.texinfo: Fix documentation of glyph searching algorithm.
5456         * tmac/an-old.tmac: Revert change 2001-12-23.  This breaks too many
5457         man pages.
5458         * tmac/groff_man.man: Small improvements.
5460 2002-01-07  Bernd Warken  <bwarken@mayn.de>
5462         * man/groff_diff.man: Revised.
5464 2002-01-06  Werner LEMBERG  <wl@gnu.org>
5466         * tmac/www.tmac: Remove extraneous backslash.
5468 2002-01-06  Bernd Warken  <bwarken@mayn.de>
5470         * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
5472 2002-01-05  Werner LEMBERG  <wl@gnu.org>
5474         Integrated groffer, contributed by Bernd Warken.
5476         * contrib/groffer/*: New.       
5477         * Makefile.in, NEWS: Updated.
5479 2002-01-04  Werner LEMBERG  <wl@gnu.org>
5481         * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
5482         registers defined in macro packages.
5483         Revising the ms part.
5485 2002-01-04  Larry Kollar  <kollar@alltel.net>
5487         * doc/groff.texinfo: Add documentation for ms macros.
5489 2002-01-02  Werner LEMBERG  <wl@gnu.org>
5491         First step in adding PS support for the Euro symbol.  `eu' is the
5492         official Euro logo, `Eu' is a font-specific glyph variant.
5494         * font/devps/text.enc: Add `Euro' at position 9.
5495         * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
5496         * font/devps/symbolmap: Regenerated.
5498         * NEWS: Updated.
5500 2002-01-02  Bernd Warken  <bwarken@mayn.de>
5502         * man/roff.man: Revised.
5504 2002-01-01  Bernd Warken  <bwarken@mayn.de>
5506         * src/roff/groff/groff.man: Completely rewritten.
5508 2001-12-31  Werner LEMBERG  <wl@gnu.org>
5510         * doc/Makefile: Updated.
5512 2001-12-30  Werner LEMBERG  <wl@gnu.org>
5514         * tmac/www.tmac: Make all names of internal macros/registers/strings
5515         lowercase, and prepend `www-'.
5516         Other minor changes.
5517         * src/roff/troff/troff.man: Add preprocessor string at BOF.
5519 2001-12-30  Gaius Mulley  <gaius@glam.ac.uk>
5521         Implement option `-b' in grohtml to set the HTML background colour.
5523         * src/devices/grohtml/post-html.cc (default_background): New global
5524         variable.
5525         (html_printer::html_printer): Initialize `background' to
5526         `default_background'.
5527         (main): Implement option `-b'.
5528         (usage): Updated.
5529         * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
5530         of `-b' option.
5531         * src/devices/grohtml/grohtml.man: Updated.
5532         * doc/Makefile (.ms.html): Use `-b'.
5533         * tmac/html.tmac: Don't set background color.
5535         Add new grohtml tag `.html-tl'.
5537         * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
5538         member variable.
5539         (title_desc::title_desc): Updated.
5540         (html_printer::troff_tag): Handle `.html-tl'.
5541         (html_printer::write_title): Use `with_h1'.
5542         * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
5543         (HTML-TL): New macro.
5545         Add support for unordered lists in HTML.
5547         * tmac/www.tmac (www-level): New auxiliary register.
5548         (www-level1, www-level2, www-level3): New auxiliary strings.
5549         (www-push-level, www-pop-level): New auxiliary macros
5550         (UL-BEGIN, UL-END, LI): User macros for unordered lists.
5552         Miscellaneous.
5554         * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
5555         (DEFAULT_VERTICAL_OFFSET): Removed.
5556         (IMAGE_BOARDER_PIXELS): Set to 0.
5557         (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
5558         (vertical_offset): Initialize with 0.
5559         (gsPaper): New global variable.
5560         (get_resolution): Scan for and return unsigned int.
5561         (get_papersize): New function to get paper length from devps/DESC.
5562         (determine_vertical_offset): New function.
5563         (createAllPages): Produce gray-level images and use proper page
5564         length.
5565         (createImage): Use `-quiet' option of pnmcrop.
5566         (addZ): Fix passing of `-Z'.
5567         (scanArguments): Fix handling of `-o'.
5568         (main): Call `determine_vertical_offset'.
5569         * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
5570         code for `l'.
5572         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
5573         * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
5574         glyph descenders properly.
5576         * doc/homepage.ms: Include `gnubw.eps'.
5577         * doc/Makefile (gnubw.eps): New rule.
5578         (homepage.html): Depend on `gnubw.eps'.
5580 2001-12-25  Werner LEMBERG  <wl@gnu.org>
5582         * src/roff/troff/input.cc (default_black): Fix return value.
5584 2001-12-24  Ruslan Ermilov  <ru@FreeBSD.org>
5586         * tmac/doc-common (Dt): Change output of architecture strings.
5587         Do some syntax cleanup.
5588         * tmac/groff_mdoc.man: Updated.
5590 2001-12-23  Werner LEMBERG  <wl@gnu.org>
5592         Adding an `itc' request (input line trap accepting \c).
5594         * src/roff/troff/env.h (environment): New member
5595         `continued_input_trap'.
5596         Make `do_input_trap' a friend function instead of `input_trap'.
5597         * src/roff/troff/env.cc (environment::environment,
5598         environment::copy): Updated.
5599         (environment::newline): Implement it.
5600         (do_input_trap): New function.
5601         (input_trap): Call `do_input_trap'.
5602         (input_trap_continued): New function.
5603         (init_env_requests): Updated.
5604         * src/roff/troff/TODO: Updated.
5606         * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
5607         `.it'.
5609         * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
5611 2001-12-22  Ruslan Ermilov  <ru@FreeBSD.org>
5613         * tmac/doc-common, tmac/doc-syms: Small updates.
5615 2001-12-22  Colin Watson  <cjwatson@debian.org>
5617         * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
5619 2001-12-22  Bernd Warken  <bwarken@mayn.de>
5621         * MANIFEST: New file.
5623 2001-12-22  Werner LEMBERG  <wl@gnu.org>
5625         * src/preproc/grn/grn.man: Updated.
5627 2001-12-22  Solar Designer  <solar@openwall.com>
5629         * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
5630         (DBRead): Use it.
5632 2001-12-19  Werner LEMBERG  <wl@gnu.org>
5634         Implement a fallback character request `.fchar'.
5636         * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
5637         (is_fallback): New inline function.
5638         * src/roff/troff/input.cc (do_define_character): New function.
5639         (define_character): Call `do_define_character'.
5640         (define_fallback_character): New function.
5641         (init_input_requests): Add `fchar'.
5642         (charinfo::charinfo): Updated.
5643         (charinfo::set_macro): New argument to set `fallback' flag.
5644         * src/roff/troff/node.cc (make_glyph_node, make_node,
5645         node::add_char): Check `fallback' flag.
5646         * NEWS, man/groff_diff.man, man/groff_man: Updated.
5648 2001-12-16  Werner LEMBERG  <wl@gnu.org>
5650         * groff.texinfo: Document exact search algorithm for glyphs.
5652 2001-12-15  Werner LEMBERG  <wl@gnu.org>
5654         * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
5655         the left side of $(MANPAGES) rule to make it always non-empty.
5657 2001-12-14  Werner LEMBERG  <wl@gnu.org>
5659         * src/roff/troff/input.cc (default_black): Define default color
5660         `black' if not yet defined.
5662 2001-12-13  Werner LEMBERG  <wl@gnu.org>
5664         Implement new string-valued register `.fn' to return the current
5665         real (internal) font name.
5667         * env.cc (environment::get_font_name_string): New function.
5668         (init_env_requests): Add `.fn' register.
5669         * env.h (environment): Updated.
5670         * node.cc (font_info): Make `get_font_name' a friend.
5671         (get_font_name): New function.
5672         * node.h: Updated.
5674         * man/groff_diff.man, man/groff.man, NEWS: Updated.
5676 2001-12-12  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5678         * src/preproc/eqn/main.cc (inline_equation): Fix typos.
5680 2001-12-12  Werner LEMBERG  <wl@gnu.org>
5682         * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
5684 2001-12-10  Gaius Mulley  <gaius@glam.ac.uk>
5686         * man/groff_diff.man: Adding documentation for \O.
5688 2001-12-10  Werner LEMBERG  <wl@gnu.org>
5690         * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
5691         (scanArguments): Use PROG_PREFIX for the name of the troff binary.
5693 2001-12-09  Werner LEMBERG  <wl@gnu.org>
5695         * man/roff.man: Revised.
5696         * src/roff/groff/groff.man: Replace man page references with a
5697         pointer to roff.man.
5699 2001-12-09  Bernd Warken  <bwarken@mayn.de>
5701         * man/roff.man: Completely rewritten.
5703 2001-12-06  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5705         * src/preproc/eqn/main.cc (inline_equation): Improve error message.
5707 2001-12-05  Werner LEMBERG  <wl@gnu.org>
5709         * src/roff/troff/input.cc (get_delim_file_name): Removed since no
5710         longer used.
5711         * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
5712         order of initializers.
5713         * NEWS: Updated.
5715 2001-12-05  Gaius Mulley  <gaius@glam.ac.uk>
5717         * doc/groff.texinfo: Fix documentation of \O.
5719         * src/devices/grohtml/html-text.cc (html_text::do_indent,
5720         html_text::do_table, html_text::do_emittext, html_text::do_para):
5721         Use `const' for first argument.
5722         (html_text::do_table): Use cast.
5723         * src/devices/grohtml/html-text.h: Updated.
5724         * src/devices/grohtml/output.cc (simple_output::put_string): Add
5725         method for `const string &s'.
5726         * src/devices/grohtml/html.h: Updated.
5727         * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
5728         (ANCHOR_TEMPLATE): Modified.
5729         (manufacture_headings): New global variable to handle `-h' option.
5730         (is_subsection): Removed.
5731         (char_buffer::add_string): Add `const' to first argument.
5732         Protect against invalid string argument.
5733         Add method for `const string &s'.
5734         (text_glob): Completely redesigned.
5735         (page): Use `const' for strings and remove string length variable.
5736         (page::add_html): Removed.
5737         (page::add_end_encode): New member function.
5738         (to_unicode): Moved upwards.
5739         (title_desc, header_desc): Updated.
5740         (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
5741         definition.
5742         (html_printer::is_bold, html_printer::make_bold): New member
5743         functions.
5744         (html_printer::end_of_line): Updated.
5745         (generate_img_src, html_printer::do_auto_image,
5746         html_printer::do_title, html_printer::write_header,
5747         html_printer::determine_header_level, html_printer::do_heading,
5748         html_printer::do_linelength, html_printer::do_pageoffset,
5749         html_printer::do_indentation, html_printer::do_tempindent,
5750         html_printer::do_indentedparagraph, html_printer::do_break,
5751         html_printer::flush_sbuf, get_html_translation,
5752         html_printer::begin_page, html_printer::special): Rewritten to get
5753         rid of static string length limit.
5754         (html_printer::troff_tag): Added `.no-auto-rule'.
5755         (html_printer::flush_globs): Small fix.
5756         (html_printer::determine_space): Don't compute `space_width'.
5757         (html_printer::translate_to_html): Renamed to ...
5758         (html_printer::emit_html): This (with updates).
5759         (html_printer::write_header): Implement `-h' option.
5760         (html_printer::draw): Remove commented-out code.  Handle `F'
5761         command.
5762         (html_printer::add_char_to_sbuf): Removed.
5763         (html_printer::add_to_sbuf): Rewritten.
5764         (html_printer::sbuf_continuation): Fixed.
5765         (html_printer::seen_backwards_escape, reverse,
5766         html_printer::remove_last_char_from_sbuf): Removed.
5767         (char_translate_to_html, str_translate_to_html): Removed.
5768         (html_printer::overstrike): New function member.
5769         (html_printer::set_char): Use it.
5770         (html_printer::do_body): New function member.
5771         (html_printer::~html_printer): Use it.
5772         (main): Handle `-h' option.
5773         (usage): Updated.
5774         * src/devices/grohtml/grohtml.man: Document -h switch.
5776         * src/preproc/html/pre-html.cc: Include searchpath.h
5777         Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
5778         (get_resolution): New function.
5779         (checkImageDir): Use `0777' permissions in mkdir()
5780         (write_start_image): Rewritten to use `\O[5...]'.
5781         (createImage, generateImages): Updated.
5782         (main): Handle `F' and `h' options.
5783         Use `get_resolution'.
5785         * src/roff/troff/input.cc (begin, end, image): Removed.
5786         (do_suppress): Take parameter.
5787         Handle modified syntax of `\O'.
5788         (token::next): Updated.
5789         (init_markup_requests): Removed.
5790         (main): Updated.
5792         * src/roff/troff/div.h: Add declaration for begin_page().
5794         * tmac/color-html.tmac: Removed.  Contents moved to...
5795         * tmac/html.tmac: Here.  Set background color.
5796         * tmac/color.tmac: Removed.  Contents moved to...
5797         * tmac/ps.tmac: Here.
5798         * tmac/www.tmac: Remove the title command when generating images
5799         for html.
5800         (NO_AUTO_RULE): New macro.
5801         (HTML_DO_IMAGE): Use revised `\O' escapes.
5802         * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
5804 2001-12-02  Werner LEMBERG  <wl@gnu.org>
5806         * tmac/groff_mdoc.man: Fix typo.
5808 2001-12-01  Colin Watson  <cjwatson@debian.org>
5810         * man/roff.man: Fix typo.
5812 2001-11-29  Werner LEMBERG  <wl@gnu.org>
5814         * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
5815         stdlib.h.
5817         * src/roff/troff/input.cc (read_draw_node): Emit error message if
5818         more than one argument to \D'f ...'.
5820         * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
5822 2001-11-28  Werner LEMBERG  <wl@gnu.org>
5824         * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
5825         loaded only once.
5827         * tmac/groff_man.man: Minor cosmetic fix.
5829 2001-11-27  Werner LEMBERG  <wl@gnu.org>
5831         * src/roff/groff/groff.man, tmac/groff_tmac.man,
5832         tmac/groff_www.man: s/mwww/www/.
5834 2001-11-26  Werner LEMBERG  <wl@gnu.org>
5836         * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
5837         * configure: Regenerated.
5838         * win32-diffs: Updated.
5840         * tmac/groff_mwww.tmac: Renamed to ...
5841         * tmac/groff_www.tmac: This.
5842         * tmac/mwww.tmac: Removed.
5843         * NEWS, tmac/Makefile.sub: Updated.
5845 2001-11-21  Werner LEMBERG  <wl@gnu.org>
5847         * doc/groff.texinfo: Improve documentation of the `\v' escape.
5848         Fix explanation of `\D' and `rt'.
5850 2001-11-20  Werner LEMBERG  <wl@gnu.org>
5852         * tmac/an-old.tmac (an-header): Set header length equal to page
5853         width.
5854         * doc/groff.texinfo: Improve documentation of `ne' request.  Other
5855         minor fixes.
5856         * NEWS: Small fix.
5858 2001-11-19  Werner LEMBERG  <wl@gnu.org>
5860         * NEWS, man/Makefile.sub: Updated.
5862 2001-11-19  Bernd Warken  <bwarken@mayn.de>
5864         * man/ditroff.man: New file.
5866 2001-11-17  Werner LEMBERG  <wl@gnu.org>
5868         * man/groff_differences.man: Renamed to ...
5869         * man/groff_diff.man: This.  Updated.
5870         * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
5872         * src/preproc/html/pushbackbuffer.cc: Renamed to ...
5873         * src/preproc/html/pushback.cc: This.  Updated.
5874         * src/preproc/html/pushbackbuffer.h: Renamed to ...
5875         * src/preproc/html/pushback.h: This.
5876         * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
5877         Updated.
5879         * src/libs/libgroff/htmlindicate.cc: Renamed to ...
5880         * src/libs/libgroff/htmlhint.cc: This.
5881         * src/libs/libgroff/Makefile.sub: Updated.
5883         * tmac/an-old.tmac (an-end): Fix page length.
5885 2001-11-16  Werner LEMBERG  <wl@gnu.org>
5887         * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
5888         * man/Makefile.sub: Include groff_differences.man.
5889         * VERSION: Set to 1.18.
5890         * REVISION: Set to 0.
5892 2001-11-16  Bernd Warken  <bwarken@mayn.de>
5894         * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
5895         the second dot (or ending macro name) to end a macro.
5896         * doc/groff.texinfo: Doc fix.
5898 2001-11-16  Ruslan Ermilov  <ru@FreeBSD.org>
5900         * tmac/doc-common (doc-header): Handle very long document titles
5901         better.
5903 2001-11-16  Werner LEMBERG  <wl@gnu.org>
5905         * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
5907 2001-11-15  Werner LEMBERG  <wl@gnu.org>
5909         * src/roff/troff/troff.man: Revised and split into troff.man and...
5910         * man/groff_differences.man: New file.
5911         * NEWS: Updated.
5913 2001-11-13  Werner LEMBERG  <wl@gnu.org>
5915         * tmac/an-old.tmac (TS, TE): New macros for table support.
5917 2001-11-12  Werner LEMBERG  <wl@gnu.org>
5919         * src/include/lib.h: Provide a fix for emx to not include
5920         groff-getopt.h.
5922 2001-10-27  Werner LEMBERG  <wl@gnu.org>
5924         * src/roff/troff/input.cc (substring_macro): Fix computation of
5925         boundary values.
5927 2001-10-20  Werner LEMBERG  <wl@gnu.org>
5929         Undo change from 2001-08-28.
5931         * src/roff/troff/input.cc (have_input): New global variable.
5932         (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
5933         in compatibility mode.
5934         (process_input_stack): Use it.
5936 2001-10-19  Ruslan Ermilov  <ru@FreeBSD.org>
5938         * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
5939         being handled as end-of-sentence characters,
5941 2001-10-10  Gaius Mulley  <gaius@glam.ac.uk>
5943         * src/roff/troff/input.cc (file_iterator): New members
5944         `suppress_newline_flag' and `seen_escape'.
5945         (file_iterator::next_file): Updated.
5946         (file_iterator::fill): Use it.
5947         (string_iterator): New member `suppress_newline_flag'.
5948         (string_iterator::fill): Set it.
5949         (get_color_element): Use MAX_COLOR_VAL.
5950         * src/roff/troff/env.cc (environment): Remove `need_eol'.
5951         (no_fill): Don't set `env->ignore_next_eol'.
5952         (environment::newline): Handle `eol' tag properly.
5953         Emit `eol.ce'.
5954         (environment::add_html_tag): Set `env->ignore_next_eol'.
5955         Don't handle `.ce'.
5956         * src/roff/troff/env.h (environment): Updated.
5958         * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
5959         member function.
5960         (html_printer::outstanding_eol): New member function.
5961         (html_printer::do_title): Use new functions.
5962         (html_printer::troff_tag): Test `id_eol_ce'.
5964 2001-10-10  Werner LEMBERG  <wl@gnu.org>
5966         * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
5967         files work with -C also.
5969 2001-10-05  Werner LEMBERG  <wl@gnu.org>
5971         * doc/pic.ms: Minor fix.
5972         * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
5973         as a valid command line switch.
5974         * src/devices/grohtml/post-html.cc (main): Ditto.
5975         (usage): Updated.
5976         * src/devices/grohtml/grohtml.man: Updated.
5977         * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
5979 2001-10-04  Werner LEMBERG  <wl@gnu.org>
5981         Implementing color support in troff, pic, grops, and grohtml.  These
5982         changes are based on a major patch provided by Gaius Mulley
5983         <gaius@glam.ac.uk>.
5985         New request: `defcolor', supporting rgb, cmy, cmyk, and gray
5986         definitions with both hex values and fractions.
5988         New escapes: \m and \M for drawing and background color,
5989         respectively.  This corresponds to the troff output commands `m'
5990         and `DF'.
5992         groff and troff accept command line switch `-c' to disable color
5993         output (which is automatically disabled in compatibility mode).
5995         New scaling indicator `f' for fractions (1f = 65536u).
5997         New conditional operator `m' to test for defined colors with `if'
5998         and `ie'.
6000         New keywords `color' (or `colour', `colored', `coloured'), `outline'
6001         (or `outlined'), and `shaded' added to pic.
6003         * src/include/color.h: New file.
6004         * src/include/driver.h: Include it.
6005         * src/include/printer.h: Include color.h.
6006         (environment): New members `col' and `fill'.
6007         (printer): Remove `adjust_arc_center' member function.
6008         * src/include/Makefile.sub: Updated.
6010         * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
6011         `env.fill'.
6012         Handle `m' and `DF' troff commands.
6013         * src/libs/libgroff/color.cc: New file.
6014         * src/libs/libgroff/Makefile.sub: Updated.
6016         * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
6017         (stop): Removed.
6018         (createImage): Fix computation of `y2'.
6019         Use `pnmcrop' also.
6020         (buffer::write_file_html): Remove calls to `stop'.
6022         * src/preproc/pic/common.h (common_output): New abstract function
6023         members `set_color', `reset_color', `get_last_filled', and
6024         `get_outline_color'.
6025         * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
6026         (object_spec): Add members `shaded' and `outlined'.
6027         * src/preproc/pic/output.h (output): `command' is now abstract.
6028         New function members `set_color', `reset_color', `get_last_filled',
6029         and `get_outline_color'.
6030         * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
6031         `outline[d]', and `shaded'.
6032         * src/preproc/pic/object.cc (output::command): Removed.
6033         (output::set_location): Moved to output.h.
6034         (graphic_object): Add protected members `outline_color' and
6035         `color_fill'.
6036         Add member functions `set_outline_color', `get_outline_color', and
6037         `set_fill_color'.
6038         (closed_object): Add member function `set_fill_color'.
6039         Add member `color_fill'.
6040         (graphic_object::print_text): Use `out->set_color' and
6041         `out->reset_color'.
6042         (box_object::print, ellipse_object::print, circle_object::print,
6043         line_object::print, spline_object::print, arc_object::print): Ditto.
6044         (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
6045         * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
6046         `SHADED', making them `%left'.
6047         Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
6048         * src/preproc/pic/tex.cc (tex_output): New dummy function members
6049         `set_color', `reset_color', `get_last_filled', and
6050         `get_outline_color'.
6051         * src/preproc/pic/troff.cc (simple_output): New abstract function
6052         members `set_color', `reset_color', and `get_last_filled'.
6053         (simple_output::polygon, simple_output::circle,
6054         simple_output::ellipse): Use `get_last_filled'.
6055         (troff_output): New members `last_filled' and `last_outlined'.
6056         New function members `set_color', `reset_color', `get_last_filled',
6057         and `get_outline_color'.
6058         (troff_output::finish_picture): Use `reset_color'.
6059         (troff_output::set_fill): Test `last_filled'.
6060         * src/preproc/pic/pic.man: Updated.
6062         * src/roff/groff/groff.cc (main): Implement `-c' option.
6063         (synopsis, help): Updated.
6064         src/roff/groff/groff.man: Updated.
6066         * src/roff/troff/troff.h: Include color.h.
6067         (warning_type): Add WARN_COLOR.
6068         * src/roff/troff/env.h (environment): New members
6069         `{cur,prev}_{glyph,fill}_color'.
6070         New member functions `get_{prev_,}{glyph,fill}_color'.
6071         * src/roff/troff/env.cc: Initialize and implement them.
6072         * src/roff/troff/input.cc: New global variable `disable_color_flag'.
6073         Replace `NULL' with `0' everywhere for consistency.
6074         (lookup_color, default_black, do_glyph_color, do_fill_color,
6075         get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
6076         define_color): New functions.
6077         (token::next): Implement \M and \m escapes.
6078         (do_if_request): Implement `m' operator.
6079         (usage): Updated.
6080         (main): Implement `-c' option.
6081         (init_markup_requests): Add `defcolor' request.
6082         (warning_table): Add `color' warning.
6083         * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
6084         classes.
6085         * src/roff/troff/node.cc (troff_output_file): New members
6086         `current_{page,glyph}color'.  New member functions `put_hex',
6087         `glyph_color', and `fill_color'.
6088         (glyph_color_node::*, fill_color_node::*): Implement it.
6089         * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
6090         (parse_term): Add support for `f'.
6091         * src/roff/troff/troff.man: Updated.
6093         * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
6094         entry for `F'.
6095         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
6096         * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
6098         * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
6099         (tag_definition): Use `void *' for arg1.
6100         (html_text): New member functions `do_color' and `done_color'.
6101         Use `void *' for second parameter of `push_para' member function.
6102         New `push_para' member function with a single parameter.
6103         Use `char *' for parameter of `issue_table_begin' member funtion.
6104         New `issue_color_begin' member function.
6105         * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
6106         COLOR_TAG.
6107         (html_text::issue_color_begin): New function.
6108         (html_text::issue_table_begin): Use `char *' for parameter.
6109         (html_text::start_tag, html_text::shutdown,
6110         html_text::check_emit_text): Updated.
6111         (html_text::push_para): Use `void *' for second parameter.
6112         Add same function with only one parameter.
6113         (html_text::do_*): Updated.
6114         (html_text::do_color, html_text::done_color): New functions.
6115         * src/devices/grohtml/post-html.cc (style): New member `col'.
6116         Mew member `style' with 6 parameters.
6117         (style::style, style::operator==): Updated.
6118         (html_printer::do_font): Use it.
6119         (html_printer::draw): Add dummy entry for `F'.
6120         (html_printer::set_char): Updated.
6121         * src/devices/grohtml/grohtml.man: Updated.
6123         * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
6124         trailing zeroes removed.
6125         (ps_printer): New members `sbuf_color', `fill_color', and
6126         `output_color'.
6127         Removed member `fill'.
6128         New member function `set_color'.
6129         (ps_printer::ps_printer, ps_printer::set_char): Updated.
6130         (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
6131         ps_printer::fill_path, ps_printer::draw): Use `set_color'.
6133         * tmac/color-html.tmac, tmac/color.tmac: New files.
6134         * tmac/troffrc: Include them.
6135         * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
6136         * tmac/Makefile.sub: Updated.
6138         * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
6139         man/groff.man: Updated.
6140         * font/devps/prologue.ps: Define FC and CO functions.
6142 2001-10-04  Gaius Mulley  <gaius@glam.ac.uk>
6144         Fix incorrect cropping of images and incorrect handling of special
6145         characters.  Fix handling of file names in \O.
6147         * src/include/geometry.h: New file.
6148         * src/libs/libgroff/geometry.cc: New file.
6149         * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
6150         to `geometry.cc'.
6151         * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
6152         initial spaces.
6153         (do_suppress): Updated.
6154         * src/roff/troff/node.cc: Include geometry.h.
6155         (troff_output_file::flush_tbuf): Fixed parameters to
6156         `check_output_limits'.
6157         (troff_output_file::check_charinfo): Ditto.
6158         (troff_output_file::determine_line_limits): Add support for `Da'
6159         and `Dl' commands.
6161         * src/devices/grohtml/post-html.cc (str_translate_to_html):
6162         Add new parameter `is_special' to decode special characters from
6163         escape sequences.
6164         (html_printer::do_title, html_printer::do_heading,
6165         html_printer::do_indentedparagraph,
6166         html_printer::translate_to_html, html_printer::special): Updated.
6168 2001-10-03  Werner LEMBERG  <wl@gnu.org>
6170         * Makefile.sub (DISTCLEANFILES): Add stamp-h.
6171         Fix entry for config.h.
6172         * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
6173         * tmac/troffrc: Translate nonbreakable space character to `\~'.
6174         * src/preproc/eqn/eqn.man: Document -d command line option.
6176 2001-09-27  Werner LEMBERG  <wl@gnu.org>
6178         * man/groff.man: Use
6180           .ev xxx
6181           .na
6182           .nh
6183           <table>
6184           .ev
6186         instead of the old code (`.ad .hy' after the table) to suppress
6187         incorrect hyphenation for grohtml output.
6189 2001-09-22  Werner LEMBERG  <wl@gnu.org>
6191         * man/groff_font.man, man/groff_out.man: Minor fixes.
6193 2001-09-20  Werner LEMBERG  <wl@gnu.org>
6195         * PROBLEMS: Updated, reordered.  Improved EPS section (thanks to
6196         Arnold Robbins <arnold@skeeve.com>).
6198 2001-09-09  Werner LEMBERG  <wl@gnu.org>
6200         * configure: Regenerated with autoconf 2.52.
6202         * doc/groff.texinfo: Complete revision of indices.
6204 2001-09-07  Werner LEMBERG  <wl@gnu.org>
6206         * doc/Makefile (clean): Updated to delete all indices.
6208 2001-09-05  Werner LEMBERG  <wl@gnu.org>
6210         * src/roff/troff/troff.man: Remove superfluous line.
6212         * tmac/s.tmac: Enable all warnings only if no -W or -w option is
6213         given on the command line (or rather, if only the default warnings
6214         are set).
6216 2001-09-03  Werner LEMBERG  <wl@gnu.org>
6218         * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
6219         use .ne for TTY devices.
6221 2001-08-31  Werner LEMBERG  <wl@gnu.org>
6223         * src/roff/troff/token.h, src/roff/troff/input.cc:
6224         s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
6226 2001-08-28  Werner LEMBERG  <wl@gnu.org>
6228         * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
6229         * src/roff/troff/input.cc (token::next): Return
6230         TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
6231         compatibility mode.
6232         (token::description): Updated.
6233         (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
6234         (token::add_to_node_list, token::process): Ignore
6235         TOKEN_TRANSPARENT_ESCAPE.
6237 2001-08-27  Werner LEMBERG  <wl@gnu.org>
6239         * tmac/an-old.tmac: Fix `S' string.
6241 2001-08-26  Werner LEMBERG  <wl@gnu.org>
6243         * src/roff/troff/troff.man: Don't use .ne for TTY devices.
6245 2001-08-25  Werner LEMBERG  <wl@gnu.org>
6247         * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
6248         backslashes).
6249         Many other minor fixes.
6251         * configure.ac: Add message at end to inform how to compile
6252         xditview.
6253         * configure: Regenerated.
6255 2001-08-24  Werner LEMBERG  <wl@gnu.org>
6257         * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
6258         Updated to latest version of libc.
6260 2001-08-23  Werner LEMBERG  <wl@gnu.org>
6262         * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
6263         Autoconf 2.50 and newer can handle this.
6264         * configure: Regenerated.
6266 2001-08-21  Werner LEMBERG  <wl@gnu.org>
6268         * doc/pic.ms: Fix typo.
6269         * src/preproc/tbl/tbl.man: Document case of global options.
6271 2001-08-21  Gaius Mulley  <gaius@glam.ac.uk>
6273         * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
6274         handling of `CR' font.
6276 2001-08-20  Werner LEMBERG  <wl@gnu.org>
6278         Use a config.h file.
6280         * src/include/lib.h: Include config.h.
6281         * All C files: Ditto (if necessary).
6282         * All C++ source and header files: Include lib.h first (if
6283         necessary).
6285         * src/include/config.hin: New file (autogenerated by autoheader).
6286         * stamp-h.in: New file.
6287         * configure.ac: Updated.
6288         * aclocal.m4: Add third parameters to AC_DEFINE macros.
6289         (GROFF_ARRAY_DELETE): Simplified.
6290         * Makefile.sub (DISTCLEANFILES): Updated.
6291         Added targets for remaking config.status, config.hin, config.h,
6292         stamp-h.in, and stamp-h.
6293         * configure: Regenerated.
6295 2001-08-19  Werner LEMBERG  <wl@gnu.org>
6297         * NEWS: Updated.
6299 2001-08-18  Sebastian Krahmer  <krahmer@suse.de>
6301         * src/preproc/pic/pic.y (format_number): Use do_sprintf().
6302         (do_sprintf): Use snprintf().
6304 2001-08-18  Werner LEMBERG  <wl@gnu.org>
6306         * src/libs/snprintf/*: Added an snprintf module written by Mark
6307         Martinec.
6308         * src/libs/libgroff/Makefile.sub: Updated.
6309         * configure.ac: Add test for snprintf().
6310         * Makefile.in: Updated.
6311         * configure: Regenerated.
6313         * src/preproc/html/pre-html.cc (make_message): Reactivate code which
6314         uses snprintf().
6316 2001-08-14  Ruslan Ermilov  <ru@FreeBSD.org>
6318         * tmac/doc.tmac (Ex): New implementation.
6319         * tmac/doc-common, tmac/groff_tmac.man: Updated.
6321 2001-08-13  Ruslan Ermilov  <ru@FreeBSD.org>
6323         * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
6324         argument.
6325         * tmac/groff_tmac.man: Updated.
6327 2001-08-13  Werner LEMBERG  <wl@gnu.org>
6329         * src/preproc/tbl/tbl.man: Minor documentation update.
6331 2001-08-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6333         * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
6334         * configure.ac: Add declaration test for gettimeofday().
6335         * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
6336         * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
6337         * configure: Regenerated.
6339 2001-08-11  Werner LEMBERG  <wl@gnu.org>
6341         * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
6342         * configure.ac: Add declaration test for strcasecmp().
6343         * Makefile.in: Updated.
6344         * configure: Regenerated.
6345         * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
6346         this is necessary because groff's mkstemp.cc is C++.
6347         Add declaration conditionally for strcasecmp().
6349 2001-08-10  Werner LEMBERG  <wl@gnu.org>
6351         Integrated pic2graph, contributed by Eric S. Raymond.
6353         * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
6354         files.
6355         * Makefile.in, NEWS: Updated.
6357         * src/preproc/tbl/tbl.man: Revised.
6359 2001-08-09  Eric S. Raymond  <esr@thyrsus.com>
6361         * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
6363 2001-08-09  Werner LEMBERG  <wl@gnu.org>
6365         * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
6366         requests.
6368 2001-08-08  Paul Eggert  <eggert@twinsun.com>
6370         * Makefile.sub (configure): Depend on configure.ac, not
6371         configure.in.
6372         * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
6374 2001-08-07  Werner LEMBERG  <wl@gnu.org>
6376         * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
6377         fixes.
6379 2001-08-06  Werner LEMBERG  <wl@gnu.org>
6381         * src/roff/troff/troff.man: Improve documentation of -E option.
6383 2001-07-28  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
6385         * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
6386         Simplified.
6388 2001-07-27  Werner LEMBERG  <wl@gnu.org>
6390         * src/preproc/refer/refer.cc: Undo last change.
6391         * src/devices/grohtml/post-html.cc: Ditto.
6393 2001-07-26  Werner LEMBERG  <wl@gnu.org>
6395         * src/preproc/refer/refer.cc: Include `lib.h'.
6396         * src/devices/grohtml/post-html.cc: Ditto.
6398 2001-07-25  Gaius Mulley  <gaius@glam.ac.uk>
6400         * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
6401         * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
6402         * Makefile.in: Comment updated.
6403         * configure: Regenerated.
6405 2001-07-25  Werner LEMBERG  <wl@gnu.org>
6407         * src/preproc/pic/pic.cc: Removed.
6408         * src/preproc/pic/pic_tab.h: Removed.
6409         * src/preproc/refer/label.cc: Removed.
6411         * doc/Makefile (.ms.html): Don't use a file name extension in
6412         argument to grohtml's -I option.
6413         * Makefile.in (dist): Remove CVS directories.
6414         Call `distfiles' target.
6416         * src/devices/grohtml/grohtml.man: Add information about valid
6417         versions of pnmtopng.
6418         * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
6419         name instead of number.
6421 2001-07-24  Werner LEMBERG  <wl@gnu.org>
6423         * doc/groff.texinfo: Minor fixes.
6425 2001-07-21  Gaius Mulley  <gaius@glam.ac.uk>
6427         * doc/Makefile (.ms.html): Put image files into a subdirectory.
6428         (clean): Updated.
6430 2001-07-20  Werner LEMBERG  <wl@gnu.org>
6432         * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
6433         * src/libs/libgroff/mkstemp.cc: New file.
6434         * src/libs/libgroff/mksdir.cc: New file.
6435         * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
6436         (xtmpfile) [!HAVE_MKSTEMP]: Removed.
6437         * src/libs/libgroff/Makefile.sub: Updated.
6438         * src/include/lib.h: Add mksdir() prototype.
6439         * src/include/posix.h: Define S_IXUSR if not yet defined.
6441         * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
6442         (createAllPages): Use mksdir() instead of current code.
6443         * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
6444         (main): [!HAVE_MKSTEMP]: Removed.
6446         * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
6447         (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
6448         macros.
6449         * configure.ac: Add tests for stdint.h, sys/time.h, and
6450         gettimeofday().
6451         Call new GROFF_xxx macros.
6452         * configure: Regenerated.
6453         * Makefile.in: Comments updated.
6455 2001-07-20  Gaius Mulley  <gaius@glam.ac.uk>
6457         * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
6458         instead of current code.
6459         * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
6460         * src/roff/groff/groff.cc (possible_command::insert_args): New
6461         function.
6462         (main): Use it for predriver handling instead of insert_arg().
6464 2001-07-19  Werner LEMBERG  <wl@gnu.org>
6466         * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
6467         groff also.
6469         * src/include/posix.h: Define S_IWUSR if not yet defined.
6471 2001-07-18  Werner LEMBERG  <wl@gnu.org>
6473         * NEWS: Updated.
6475 2001-07-18  Ruslan Ermilov  <ru@FreeBSD.org>
6477         * tmac/groff_mdoc.man: Document new -width and -column syntax.
6478         Some other minor fixes.
6479         * tmac/an-old.tmac: Add `AT' and `UC' macros.
6481 2001-07-17  Gaius Mulley  <gaius@glam.ac.uk>
6483         Replace call to `troff' with `groff -Z' to make it aware of
6484         GROFF_BIN_PATH.
6486         * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
6487         (troff_command, command_prefix): Removed.
6488         (alterDeviceTo): Use groff.
6489         (addZ): New function.
6490         (char_buffer::do_html): Use it.
6491         (scanArguments): Use TROFF_COMMAND.
6492         (findPrefix): Removed.
6493         (main): Updated.
6494         * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
6496 2001-07-17  Eric S. Raymond  <esr@snark.thyrsus.com>
6498         * doc/pic.ms: Documentation fixes.
6500 2001-07-17  Werner LEMBERG  <wl@gnu.org>
6502         Replace atexit() with global destructor.
6504         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
6505         (xtmpfile_list_init): New global structure to deallocate
6506         xtmpfile_list on exit.  Its destructor inherits most code from
6507         remove_tmp_files().
6508         (remove_tmp_files): Deleted.
6509         (add_tmp_file): Simplified.
6511 2001-07-16  Werner LEMBERG  <wl@gnu.org>
6513         Replace strdup() with strsave().
6515         * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
6516         (set_papersize): Use strsave() and a_delete.
6517         (main): Use strsave().
6518         * src/preproc/html/pre-html.cc (make_message, createAllPages,
6519         removeAllPages): Use strsave() and a_delete.
6521         * configure.ac: Remove test for strdup.
6522         * Makefile.in: Comment updated.
6523         * configure: Regenerated.
6525 2001-07-15  Werner LEMBERG  <wl@gnu.org>
6527         * win32-diffs: Updated.
6529 2001-07-14  Werner LEMBERG  <wl@gnu.org>
6531         * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
6532         removing the old one.
6533         * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
6535 2001-07-14  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
6537         * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
6539 2001-07-12  Ruslan Ermilov  <ru@FreeBSD.org>
6541         Merge -xwidth into -width.  Add -xwidth functionality to -column
6542         also.
6544         * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
6545         avoid warning.
6546         (doc-do-Bl-args): Merge -xwidth code with -width.  Test whether
6547         string immediately following a leading dot starts with a valid mdoc
6548         argument.
6549         Add similar code to the -column branch.
6550         (doc-Bl-usage): Updated.
6551         * groff_mdoc.man: s/-xwidth/-width/.
6553 2001-07-12  Gaius Mulley  <gaius@glam.ac.uk>
6555         * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
6556         running into centered or non-formatted text.
6558 2001-07-11  Werner LEMBERG  <wl@gnu.org>
6560         Introduce short and long prefixes to have the selection at run-time
6561         whether there is a 8+3 limit for names of temporary files.
6563         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
6564         (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
6565         (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
6566         variables.
6567         (temp_init): New global structure to initialize above three
6568         variables.
6569         (xtmptemplate): Use two parameters for long and short prefix.
6570         Simplify code use above three variables.
6571         (xtmpfile): Use long and short prefixes as parameters.
6572         * src/include/lib.h: Updated.
6574         * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
6575         with ...
6576         ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
6577         (createAllPages, makeTempFiles): Updated.
6579 2001-07-09  Werner LEMBERG  <wl@gnu.org>
6581         * REVISION: Increased to 3.
6583 Version 1.17.2 released
6584 =======================
6586 2001-07-07  Werner LEMBERG  <wl@gnu.org>
6588         * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
6589         to size_t.
6591 2001-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
6593         * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
6594         Fix synopsis.
6595         * tmac/groff_mdoc.man: Fix synopsis.
6597 2001-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
6599         * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
6600         Restore `doc-Pa-font'.
6602 2001-07-04  Werner LEMBERG  <wl@gnu.org>
6604         * src/utils/indxbib/dirnamemax.c: Moved to ...
6605         * src/libs/libgroff/maxfilename.cc: Here.
6606         s/dir_name_max/file_name_max/.
6607         Add copyright.
6608         * src/include/lib.h: Add file_name_max.
6609         * src/utils/indxbib/indxbib.cc: Updated.
6610         * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
6611         Updated.
6613         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
6614         as empty.
6615         (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
6617         * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
6618         REGION_TEMPLATE): New macros.
6619         (createAllPages, makeTempFiles): Use them.
6620         Include `nonposix.h'.
6621         (html_system): New function.
6622         (createAllPages, createImage): Use it.
6623         Use EXE_EXT.
6625         * tmac/www.tmac: Fix typos.
6627 2001-07-03  Werner LEMBERG  <wl@gnu.org>
6629         * tmac/www.tmac: Disable hyphenation in normal text only if output
6630         device is html.
6631         (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
6632         * tmac/groff_mwww.man, NEWS: Updated.
6634 2001-07-03  Gaius Mulley  <gaius@glam.ac.uk>
6636         * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
6637         image location.
6639 2001-07-02  Ruslan Ermilov  <ru@FreeBSD.org>
6641         * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
6642         doc-display-ps-stack): Implement font and font size stack for
6643         displays.
6645 2001-07-02  Werner LEMBERG  <wl@gnu.org>
6647         * REVISION: Increased to 2.
6648         * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
6650         * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
6651         beginning of a line.
6652         * src/groff/grog/grog.sh: Ditto.
6654 2001-06-29  Peter Marquardt  <wwwutz@molgen.mpg.de>
6656         * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
6657         make it portable.
6659 2001-06-27  Werner LEMBERG  <wl@gnu.org>
6661         Fix problems with preprocessor string for `man' program.
6663         * *.man: Don't use `s' in preprocessor string --  it doesn't exist.
6664         Updated/added copyright.
6665         Moved Emacs's local variable to identify nroff mode to the end of
6666         the file; add local variable if missing.
6668 2001-06-26  Andras Salamon  <andras@cs.wits.ac.za>
6670         * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
6671         AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
6672         * configure: Regenerated.
6674 2001-06-25  Andras Salamon  <andras@cs.wits.ac.za>
6676         * aclocal.m4 (GROFF_PAGE): Fix page detection code.
6677         * configure: Regenerated.
6679 2001-06-24  Werner LEMBERG  <wl@gnu.org>
6681         * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
6682         but www.tmac.
6683         * doc/pic.ms: Fix typos.
6685 Version 1.17.1 released
6686 =======================
6688 2001-06-21  Golubev I. N.  <gin@mo.msk.ru>
6690         * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
6691         * configure: Updated.
6693 2001-06-20  Gaius Mulley  <gaius@glam.ac.uk>
6695         * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
6696         image names.
6697         * src/roff/troff/dic.cc (blank_line): Add html tag.
6699 2001-06-19  Gaius Mulley  <gaius@glam.ac.uk>
6701         * src/roff/troff/input.cc (do_suppress): Fix typo.
6703 2001-06-18  Gaius Mulley  <gaius@glam.ac.uk>
6705         Added two new options (-D and -I) to specify image names and a
6706         subdirectory to place the images in.
6708         Change syntax from \\Ox to \\O[x].
6710         * src/devices/grohtml/post-html.cc (main): Add options.
6711         (usage): Updated.
6712         * src/preproc/html/pre-html.cc: Include `stdarg.h'.
6713         Use `NULL' instead of `0' for null string pointers.
6714         (MAX_RETRIES): New macro.
6715         (lengthOfintToStr, intToStr, make_message): New functions.
6716         (makeFileName): Make function static.
6717         Implement -D and -I options.
6718         (checkImageDir): New function.
6719         (write_end_image, write_start_image): Use new syntax of \O.
6720         (createAllPages, removeAllPages): Implement -D and -I options.  Use
6721         make_message().
6722         (createImage): Use make_message().
6723         (addps4html): Add guard for malloc().
6724         (usage, scanArguments): Updated.
6725         (makeTempFiles): Use mkstemp().
6726         (removeTempFiles): Use unlink().
6727         (findPrefix): Add guard for malloc().
6728         (main): Updated.
6729         * src/roff/troff/input.cc (get_delim_file_name): New function to
6730         parse \O.
6731         (do_suppress): Updated to parse new syntax.
6732         * src/devices/grohtml/grohtml.man: Updated.
6733         * tmac/www.tmac: Updated to new syntax.
6735         * NEWS: Updated.
6737 2001-06-15  Werner LEMBERG  <wl@gnu.org>
6739         * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
6741         * src/devices/grohtml/grohtml.man: Minor improvements.
6743 2001-06-14  Werner LEMBERG  <wl@gnu.org>
6745         * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
6747 2001-06-11  Werner LEMBERG  <wl@gnu.org>
6749         * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
6750         line to specify preprocessor options -- mandb 2.3.1 only recognizes
6751         the former.
6752         * src/preproc/grn/grn.man: Add proper '\" string.
6754 2001-06-11  OKAZAKI Tetsurou  <okazaki@be.to>
6756         * test-groff: Don't use PATH but GROFF_BIN_PATH.
6758 2001-06-08  Werner LEMBERG  <wl@gnu.org>
6760         Updated to autoconf 2.50.
6762         * configure.in: Renamed to...
6763         * configure.ac: This.
6764         * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
6765         (GROFF_OS390): Updated.
6766         * configure: Regenerated.
6768 2001-05-18  Werner LEMBERG  <wl@gnu.org>
6770         * src/roff/troff/env.c, src/roff/troff/env.h,
6771         src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
6772         from 2000-12-21.
6774 2001-05-17  Jeffrey Friedl  <jfriedl@yahoo-inc.com>
6776         * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
6778 2001-05-16  Werner LEMBERG  <wl@gnu.org>
6780         * src/roff/troff/input.cc (read_size): Emit warning if value becomes
6781         less than or equal zero; set it to 1 then.
6782         * src/roff/troff/node.h (node::node): Initialize `last'.
6784 2001-05-08  Werner LEMBERG  <wl@gnu.org>
6786         * tmac/an-old.tmac: Make predefined strings work in compatibility
6787         mode.
6788         Add troff version guard.
6789         * tmac/doc.tmac: Simplify version guard.
6791 2001-05-07  Werner LEMBERG  <wl@gnu.org>
6793         The .ns and .rs requests are now honoured not only in the top-level
6794         but in all diversions (similar to UNIX troff).
6796         This change is based on a patch from Tadziu Hoffmann
6797         <hoffmann@usm.uni-muenchen.de>.
6799         * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
6800         (top_level_diversion): Remove `no_space_mode' member.
6801         * src/roff/troff/div.cc (diversion::diversion,
6802         top_level_diversion::top_level_diversion): Updated.
6803         (macro_diversion::output): Reset `no_space_mode'.
6804         (no_space, restore_spacing): Use `curdiv' unconditionally.
6805         (space_request, blank_line): Check `curdiv->no_space_mode'.
6806         (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
6807         `curdiv' unconditionally.
6808         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
6809         Updated.
6811 2001-05-06  Werner LEMBERG  <wl@gnu.org>
6813         Added two new requests `de1' and `am1' which are similar to `de' and
6814         `am' with the difference that compatibility mode is saved on entry,
6815         switched off during macro execution, and restored on exit.
6817         * src/roff/troff/input.h: Added two new special characters
6818         (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
6819         * src/roff/troff/input.cc (input_iterator): Added two member
6820         functions `save_compatible_flag' and `get_compatible_flag'.
6821         (input_stack): Ditto.
6822         (string_iterator): Ditto.  Also add private member
6823         `saved_compatible_flag'.
6824         (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
6825         (calling_mode): New enumeration.
6826         (do_define_macro): Use it.  Insert COMPATIBLE_SAVE and
6827         COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
6828         (define_macro, define_indirect_macro, append_macro, ignore): Use
6829         `calling_mode'.
6830         (define_nocomp_macro, append_nocomp_macro): New functions.
6831         (init_input_requests): Updated.
6832         (do_request): Rename local variable `saved_compatible_flag' to
6833         `old_compatible_flag'.
6834         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6836         * tmac/an-old.tmac: Use `de1' instead of `de' request for all
6837         public and trap-invoked macros.  As a consequence, the man macros
6838         work in compatibility mode also.
6840 2001-05-06  Solar Designer  <solar@openwall.com>
6842         * Makefile.in: Use $(mandir).
6844 2001-05-06  Alexios Zavras  <zvr@pobox.com>
6846         * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
6848 2001-05-05  Werner LEMBERG  <wl@gnu.org>
6850         Added `.ns' number register: Returns 1 in no-space mode (if in
6851         top-level diversion), 0 otherwise.
6853         * src/roff/troff/div.cc (no_space_mode_reg): New class.
6854         (init_div_requests): Updated.
6855         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
6856         Document it.
6858 2001-05-04  Werner LEMBERG  <wl@gnu.org>
6860         * src/roff/nroff/nroff.man: Improved documentation (especially
6861         locales).
6863 2001-05-02  Werner LEMBERG  <wl@gnu.org>
6865         Added `brp' request: This is \p as a request.
6867         * src/roff/troff/env.cc (environment::do_break): Add parameter
6868         `spread'.
6869         (do_break_request): New function (was `break_request').
6870         (break_request): Calls `do_break_request'.
6871         (break_spread_request): New; calls `do_break_request'.
6872         (init_env_requests): Updated.
6873         * src/roff/troff/env.h: Updated.
6874         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6876         * REVISION: Increased to 1.
6877         * win32-diffs: Updated.
6879 2001-05-01  Werner LEMBERG  <wl@gnu.org>
6881         * tmac/an-old.tmac: Fix minor compatibility mode issue.
6882         * tmac/troffrc-end: Make it really work in compatibility mode.
6884 2001-04-27  Werner LEMBERG  <wl@gnu.org>
6886         * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
6887         stdlib.h.
6889 2001-04-22  Werner LEMBERG  <wl@gnu.org>
6891         * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
6892         latest versions from glibc CVS archive.
6894         * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
6895         <c.zeelenberg@hccnet.nl>.
6897 2001-04-21  Werner LEMBERG  <wl@gnu.org>
6899         * configure.in: Move check for mkstemp() to...
6900         * aclocal.m4 (GROFF_MKSTEMP): This new function.
6901         * configure: Regenerated.
6903         * src/include/groff-getopt.h: Don't use variable names in
6904         declarations.
6906         * src/devices/grohtml/html-chars.h: Removed.  It isn't used.
6907         * src/devices/grohtml/Makefile.sub,
6908         src/devices/grohtml/post-html.cc: Updated.
6910 2001-04-21  Albert Chin-A-Young  <china@thewrittenword.com>
6912         * configure.in: Add special check for mkstemp().
6913         * src/libs/libgroff/tmpfile.cc: Use it.
6914         * src/utils/indxbib/indxbib.cc: Ditto.
6915         * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
6916         * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
6917         `const'.
6919 2001-04-20  Bruce Lilly  <blilly@erols.com>
6921         `Version_string' as C++ object was not visible to linker from C
6922         object files.
6923         Add `const' to `Version_string'.
6925         * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
6926         (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
6927         (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
6928         (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
6929         (scanArguments), src/preproc/refer/refer.cc (main),
6930         src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
6931         (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
6932         (main), src/devices/grohtml/post-html.cc (main),
6933         src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
6934         (main), src/utils/hpftodit/hpftodit.cc (main),
6935         src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
6936         (main), src/utils/lkbib/lkbib.cc (main),
6937         src/utils/addftinfo/addftinfo.cc (main): Implement it.
6939         * src/roff/groff/pipeline.c: Add _UWIN.
6940         * src/include/nonposix.h: Ditto.
6942 2001-04-20  Werner LEMBERG  <wl@gnu.org>
6944         * src/include/lib.h: Use HAVE_STRERROR.
6945         * src/roff/groff/pipeline.c: Ditto.
6946         * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
6947         * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
6948         * src/utils/pfbtops/pfbtops.c: Add copyright notice.
6949         * win32-diffs: Updated.
6950         * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
6952 2001-04-19  Werner LEMBERG  <wl@gnu.org>
6954         * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
6955         instead of hardwired `"troff"'.
6956         (char_buffer::read_file): Remove unused variables.
6957         (char_buffer::write_file_troff): Ditto.
6958         (char_buffer::write_file_html): Ditto.
6959         (generateImages): Ditto.
6960         (abs): Removed.
6961         * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
6963         * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
6965         * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
6966         * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
6967         index_search_item::search1): Ditto.
6968         * src/roff/troff/node.h (width_list): Reorder members.
6969         * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
6970         (lookup_warning): Ditto.
6971         (prepend_string): Commented out.
6972         * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
6973         * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
6974         * src/preproc/tbl/main.cc (process_format): Ditto.
6975         * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
6976         compiler warnings.
6977         * src/preproc/pic/pic.cc: Updated.
6978         * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
6979         * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
6980         * src/preproc/refer/command.cc (execute_command): Ditto.
6981         * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
6982         * src/preproc/refer/token.cc (lookup_token): Ditto.
6983         * src/preproc/soelim/soelim.cc: Ditto.
6984         * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
6985         (isHexDigit): Commented out.
6986         (pushBackBuffer::isString): Remove unused variable.
6987         * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
6988         warning.
6989         * src/devices/grops/psrm.cc (resource_manager::lookup_font,
6990         resource_manager::read_resource_arg, read_one_of, parse_extensions):
6991         Ditto.
6992         * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
6993         * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
6994         lookup_paper_size): Ditto.
6995         * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
6996         (text_glob, element_list): Reorder members.
6997         * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
6998         compiler warning.
6999         * src/devices/grohtml/html-text.h (html_text::emit_space): Change
7000         return value to `void'.
7001         * src/devices/grohtml/output.cc (word_list::word_list): Fix order
7002         of initializers.
7003         * src/devices/grohtml/html.h (simple_output::check_newline,
7004         simple_output::space_or_newline, simple_output::enable_newlines):
7005         Add return value.
7006         * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
7007         compiler warnings.
7008         * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
7009         * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
7010         output_ligatures, output_charset, read_map): Ditto.
7011         * src/utils/lookbib/lookbib.cc (main): Ditto.
7012         * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
7013         (do_file): Fix typo (`=' -> `==').
7014         * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
7015         * src/utils/addftinfo/addftinfo.cc (main): Ditto.
7017 2001-04-18  Ruslan Ermilov  <ru@FreeBSD.org>
7019         * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
7020         Fix usage of GROFF_BIN_PATH.
7021         * src/roff/nroff/nroff.man: Updated.
7023 2001-04-18  Werner LEMBERG  <wl@gnu.org>
7025         * NEWS: Fixing typos.
7026         Updated.
7028 Version 1.17 released
7029 =====================
7031 2001-04-17  Werner LEMBERG  <wl@gnu.org>
7033         * tmac/Makefile.sub (install-data): mdoc.local-s is in current
7034         directory, not in $(srcdir).
7036 2001-04-16  Werner LEMBERG  <wl@gnu.org>
7038         * doc/groff.texinfo: More info on conditionals.
7040 2001-04-15  Werner LEMBERG  <wl@gnu.org>
7042         * doc/groff.texinfo: Added some info about groff internals.
7044         * src/roff/troff/node.cc (make_glyph_node): Emit warning message
7045         about missing special character only if the name is non-null.
7047 2001-04-14  Werner LEMBERG  <wl@gnu.org>
7049         Removing the grohtml-old device driver which is now obsolete.
7051         * src/devices/grohtml-old/*: Removed.
7052         * font/devhtml-old/*: Removed.
7053         * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
7054         Remove comments.
7055         * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
7056         * test-groff (PATH): Updated.
7057         * tmac/Makefile.sub (NORMALFILES): Updated.
7058         * tmac/an-old.tmac: Remove special code for html-old device.
7059         Replace `html-or-html-old' register with `an-html'.
7060         * tmac/eqnrc: Updated.
7061         * tmac/html-old.tmac: Removed.
7062         * tmac/troffrc, tmac/troffrc-end: Updated.
7063         * tmac/www.tmac: Remove special code for html-old device.
7064         Replace `html-or-html-old' register with `www-html'.
7066         * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
7067         src/libs/libgroff/htmlindicate.cc (graphic_end),
7068         include/htmlindicate.h, src/preproc/grn/*.cc,
7069         src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
7070         single argument for consistency with rest of source code.
7072         * aclocal.m4, tmac/an-old.tmac: Fix copyright.
7074 2001-04-13  Ruslan Ermilov  <ru@FreeBSD.org>
7076         * src/roff/troff/troff.man: Fixing typos.
7078 2001-04-13  Werner LEMBERG  <wl@gnu.org>
7080         * doc/pic.ms: Fixing many font switches.
7081         * doc/groff.texinfo: Fixes, additions.
7082         * MORE.STUFF: Updated.
7084 2001-04-12  Gaius Mulley  <gaius@glam.ac.uk>
7086         * src/devices/grohtml/grohtml.man: Updated manual page regarding
7087         simple anchor.
7088         * src/preproc/html/pre-html.cc (createImage): Fixed right hand
7089         cropping of images.
7090         (removeTempFiles): New function to tidy up temporary files.
7091         * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
7092         Many fixes to do with the new inline suppress node and image regions
7093         are much tighter.
7094         * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
7095         (generate_img_src): New function.
7096         (html_printer::do_auto_image): Utilizes it.
7097         (do_heading, do_title): Include inline images within their contents.
7098         (html_printer::begin_page): Tidied up comments that are issued to
7099         the html output file.
7100         (html_printer::do_fill): Fixed so that `.nf' works with fonts other
7101         than courier.
7102         (text_glob::is_br): New method used by do_heading.
7103         * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
7104         equivalent diversion.
7105         * src/include/html-strings.h: Altered image tags to reflect the
7106         inline image node.
7107         * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
7108         parameter.
7109         * src/preproc/eqn/main.cc: Will suppress generation of image tags if
7110         it is already inside a pic image.  Only emit tags if the argument
7111         `-Tps:html' is present.
7112         * src/preproc/tbl/main.cc: Changes to reflect additional
7113         `html_end_suppress' parameter.
7114         * src/roff/troff/env.cc: Only emit eol tag if a node has been
7115         emitted since the last eol tag was written.
7116         * src/roff/troff/env.h: New boolean `emitted_node'.
7117         * src/roff/troff/input.cc (do_suppress): Handles extra suppress
7118         nodes \O3, \O4, \O5.  No longer use `output_low_mark_miny'.
7119         * src/roff/troff/node.cc (check_charinfo): New method. 
7120         (troff_output_file::determine_line_limits): Alterations to limit
7121         checking.
7122         * tmac/www.tmac: Changes to reflect new suppress nodes.
7123           
7124 2001-04-12  Bruno Haible  <haible@clisp.cons.org>
7126         * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
7127         Escape the html_glyph in the buffer.
7128         (str_translate_to_html): Output the unescaped escaped_char.
7129         * src/devices/grohtml/html-text.cc (issue_table_begin): Set
7130         `frame=void', not `frame=none'.  Add `border=0'.
7132 2001-04-12  Werner LEMBERG  <wl@gnu.org>
7134         * PROBLEMS: Add some words on how to avoid wrapper macros.
7136 2001-04-11  Blake McBride  <blake@florida-software.com>
7138         * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
7140 2001-04-11  Werner LEMBERG  <wl@gnu.org>
7142         * font/devlbp/Makefile.sub (CLEANADD): Set it.
7143         * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
7144         * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
7145         * Makefile.sub (DISTCLEANFILES): Here.
7147         * libs/libgroff/new.cc: Include `nonposix.h'.
7148         * win32-diffs: Updated.
7150 2001-04-10  Ruslan Ermilov  <ru@FreeBSD.org>
7152         Added skeleton macro for defunct macros.
7154         Updated documentation.
7156         When inside displays, an empty input line warning should be
7157         suppressed.  If another macro call is put inside a display,
7158         all subsequent empty lines found in that display caused a
7159         warning to be emitted.
7161         * tmac/doc.tmac (doc-defunct-macro): New macro.
7162         (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
7163         (doc-restore-global-vars): Fixed typo.
7164         (doc-empty-line): Check the `doc-display-depth' register to
7165         determine whether we are inside display or not.
7167         * tmac/doc-common: Removed `Or' and `Sf' registers.
7168         Moved obsolete `Ds' macro to doc.tmac.
7170         * tmac/groff_mdoc.man: Bump document date.
7171         Document `.Vt' under ``Variable Types''.
7172         Removed documentation for obsolete `.Or' macro.
7174 2001-04-10  Werner LEMBERG  <wl@gnu.org>
7176         * NEWS: Updated.
7177         * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
7179 2001-04-10  Bruno Haible  <haible@clisp.cons.org>
7181         * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
7182         (usage): Add stream argument. Don't exit.
7183         * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
7184         Write --version output to stdout, not stderr.
7185         (usage): Add stream argument. Don't exit.
7186         * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
7187         (usage): Add stream argument. Don't exit.
7188         * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
7189         constants.
7190         (usage): Add stream argument. Don't exit.
7191         (main): Write --help output to stdout, not stderr.
7192         * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
7193         (usage): Add stream argument. Don't exit.
7194         * src/devices/grops/ps.cc (main): Accept --help and --version.
7195         (usage): Add stream argument. Don't exit.
7196         * src/devices/grotty/tty.cc (main): Accept --help and --version.
7197         (usage): Add stream argument. Don't exit.
7198         * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
7199         (main): Accept --help and --version.
7200         * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
7201         (main): Accept --help and --version.
7202         * src/preproc/html/pre-html.cc (usage): Add stream argument.
7203         (scanArguments): Accept --help and --version.
7204         * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
7205         (main): Accept --help and --version.
7206         * src/preproc/refer/refer.cc (main): Accept --help and --version.
7207         (usage): Add stream argument. Don't exit.
7208         * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
7209         exit.
7210         (main): Accept --help and --version.
7211         * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
7212         (main): Accept --help and --version.
7213         * src/roff/groff/groff.cc (main): Accept --help and --version.
7214         (synopsis): Add stream argument.
7215         (help): Write --help output to stdout, not stderr.
7216         (usage): Add stream argument. Don't exit.
7217         * src/roff/grog/grog.pl: Accept --help and --version.
7218         (help): New sub.
7219         * src/roff/grog/grog.sh: Accept --help and --version.
7220         * src/roff/nroff/nroff.sh: Accept --help and --version.
7221         * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
7222         (usage): Add stream argument. Don't exit.
7223         (main): Accept --help and --version.
7224         * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
7225         (usage): New function with stream argument, doesn't exit.
7226         * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
7227         (usage): New function with stream argument, doesn't exit.
7228         * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
7229         (usage): Add stream argument. Don't exit.
7230         * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
7231         (main): Accept --help and --version.
7232         * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
7233         exit.
7234         (main): Accept --help and --version.
7235         * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
7236         (main): Accept --help and --version.
7237         * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
7238         (usage): Add stream argument. Don't exit.
7240 2001-04-10  Ruslan Ermilov  <ru@freebsd.org>
7242         Fix indentation in SYNOPSIS.
7244         Updated to include changes of latest BSD mdoc version (basically,
7245         the only change is that `.Fn' and `.Fc' put a final semicolon after
7246         a function declaration in the SYNOPSIS section).
7248         * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
7249         (doc-in-synopsis-section): New variable.  Updated all related
7250         functions.
7251         (doc-indent-synopsis-active): New register.
7252         (Nd, Fn, Fo): Use it.
7253         (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
7254         `.Cd' with long argument line produces indented wrapped lines. 
7255         Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
7256         undesirable line break to be output.
7257         (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
7258         `.rs'.
7259         (Fn, Fc): Add final `;' to output.
7260         (doc-save-global-vars, doc-restore-global-vars): Updated.
7261         * tmac/doc-common: Remove `Ex' register.
7262         Updated.
7263         * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
7264         copyright.
7266 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
7268         * tmac/doc.tmac (Cd): Simplify code.
7269         * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
7271 2001-04-06  Werner LEMBERG  <wl@gnu.org>
7273         Implement continuous underlining for nroff mode.  To do that, a new
7274         request in the ditroff language has been added: `x u N' (N is 0
7275         or 1).
7277         \X and \Y are now transparent to end-of-sentence recognition.
7279         * src/include/printer.h (printer): Add `type' parameter to `special'
7280         method.
7281         * src/libs/libdriver/printer.cc (printer::special): Updated.
7282         * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
7284         * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
7285         specials of type `p'.
7286         * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
7287         * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
7288         * src/devices/grops/ps.cc (ps_printer::special): Ditto.
7289         * src/devices/grotty/tty.cc: Add new enum CU_MODE.
7290         (glyph::order): New method.
7291         (tty_printer::add_char): Use it.
7292         (tty_printer::special): New method.
7293         (tty_printer::end_page): Implement it.
7295         * src/roff/troff/node.h (special_node): Add `no_init_string' member.
7296         * src/roff/troff/node.cc (special_node::special_node): Add parameter
7297         to set `no_init_string'.
7298         (special_node::tprint_start): Use it.
7299         (special_node::same, special_node::copy): Updated.
7300         (special_node::ends_sentence): New method.
7301         (troff_output_file::start_special): Add parameter to include
7302         inititialization of special conditionally.
7304         * src/roff/troff/env.h (environment): New member `underline_spaces'.
7305         * src/roff/troff/env.cc (do_underline_special): New function.
7306         (environment::set_font): Use it.
7307         (do_underline): Use it.  This was `underline()'.
7308         (underline): Call `do_underline()'.
7309         (continuous_underline): New function which calls `do_underline()'.
7310         (environment::newline): Use `do_underline_special()'.
7311         (init_env_requests): Updated.
7313         * NEWS, man/troff_out.man: Updated.
7315 2001-04-06  Bruno Haible  <haible@clisp.cons.org>
7317         * font/devutf8/R.proto: Fix code of 'shc'.
7319 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
7321         Many fixes.  Diag lists can now be nested also; additionally,
7322         `-compact' and `-offset' are supported.
7324         * tmac/doc.tmac (doc-have-indent): Replaced with ...
7325         (doc-list-have-indent-stackXXX): A new register stack.
7326         (doc-have-diag-list): Removed.
7327         (Bl): Use `doc-list-have-indent-stackXXX'.
7328         (El): Updated.
7329         (doc-diag-list): Use `doc-compact-list-stackXXX'.
7330         (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
7331         (doc-set-vertical-and-indent): Ditto.
7332         (doc-next-list-depth): Removed.
7333         (doc-increment-list-stack): Updated.
7334         (doc-decrement-list-stack): Use `doc-list-depth' instead of
7335         `doc-next-list-depth'.
7336         (doc-end-list, doc-end-column-list): Don't use
7337         `doc-increment-list-stack'.
7338         (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
7339         (doc-save-global-vars, doc-restore-global-vars): Updated.
7340         * tmac/doc-common: Updated.
7341         * tmac/groff_mdoc.man: Updated.
7342         * NEWS: Fix typo.
7344 2001-04-02  Werner LEMBERG  <wl@gnu.org>
7346         * src/devices/grotty/grotty.man: Fix grammatical error.
7348 2001-03-30  Ruslan Ermilov  <ru@freebsd.org>
7350         Remove .Ld from mdoc package; replace it with special handling of
7351         `...'.
7353         * tmac/doc-common: Remove `Ld' register.
7354         Uncomment `doc-volume-ds-*' strings.
7355         Remove `doc-operating-system-default'.
7356         (Os): Updated.
7357         * tmac/doc-syms (Ld): Removed.
7358         * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
7359         `...' specially.
7360         * NEWS: Updated.
7362         * tmac/groff_mdoc.man: Many fixes and updates.
7364 2001-03-29  Werner LEMBERG  <wl@gnu.org>
7366         * tmac/troffrc-end: Protect data with `.do'.  Reported by T. Kurt
7367         Bond <tkb@tkb.mpl.com>.
7368         * tmac/www.tmac: Save compatibility mode.
7370 2001-03-28  Ruslan Ermilov  <ru@freebsd.org>
7372         * tmac/groff_mdoc.man: Many fixes.
7374 2001-03-28  Werner LEMBERG  <wl@gnu.org>
7376         * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
7377         isn't recognized.
7379 2001-03-27  Werner LEMBERG  <wl@gnu.org>
7381         * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
7382         diversion.  This fixes overlong tags.
7384 2001-03-26  Werner LEMBERG  <wl@gnu.org>
7386         * doc/groff.texinfo: Fixed and improved documentation of fonts.
7387         * tmac/doc-syms: Fix error messages.
7388         * tmac/an-old.tmac: Remove incorrect double backslashes.
7390 2001-03-24  Ruslan Ermilov  <ru@freebsd.org>
7392         * tmac/Makefile.sub: Strip mdoc.local also
7393         * tmac/strip.sed: Fixed.
7395 2001-03-24  Werner LEMBERG  <wl@gnu.org>
7397         * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
7398         selecting the font size.
7399         * tmac/groff_mdoc.man, NEWS: Document it.
7401 2001-03-23  Werner LEMBERG  <wl@gnu.org>
7403         * src/roff/troff/div.cc (save_vertical_space): Add default argument
7404         to `sv' request.
7405         * src/roff/troff/env.cc (family_change): Make `.fam' accept no
7406         argument to restore previous font family.
7407         * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
7409         * doc/groff.texinfo: More fixes and additions (mainly for font
7410         manipulating commands).
7412         * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
7413         * tmac/groff_mdoc.man: This.  The quick reference has been removed.
7414         * tmac/Makefile.sub, NEWS: Updated.
7416 2001-03-23  Werner LEMBERG  <wl@gnu.org>
7418         Replaced mdoc implementation.  The new version is `state of the
7419         art', using almost all new features of groff 1.17 -- it won't run
7420         with older versions.
7422         * tmac/doc.tmac: Completely rewritten.
7423         * tmac/doc-common: Ditto.
7424         * tmac/doc-nroff: Ditto.
7425         * tmac/doc-ditroff: Ditto.
7426         * tmac/doc-syms: Ditto.
7427         * tmac/mdoc.local: New file.
7428         * tmac/groff_mdoc.samples.man: Replaced with ...
7429         * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
7430         * tmac/strip.sed: Updated.
7431         * tmac/Makefile.sub: Updated.
7432         * INSTALL: Updated.
7434         * tmac/groff_man.man: Add `man.local' to the FILES section.
7436 2001-03-22  Werner LEMBERG  <wl@gnu.org>
7438         * doc/groff.texinfo: Added many @noindent.
7439         Replaced @end_Example -> @endExample.
7440         Added info whether registers are r/o.
7441         Many other additions and fixes.
7443 2001-03-21  Werner LEMBERG  <wl@gnu.org>
7445         * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
7446         in makeinfo of texinfo 4.0) to be used in @Def* macros.
7447         Improved @Def* macros: Now the exact syntax of request, register,
7448         and escapes is shown.
7449         Added macros for parentheses and brackets to be used in @Def*.
7450         Many fixes and improvements of the documentation.
7452 2001-03-20  Werner LEMBERG  <wl@gnu.org>
7454         * doc/groff.texinfo: Added new index: `st' (for strings).
7455         Added macros @Defstr(x).
7456         Added macro @Example (adding @group).
7457         Other minor improvements.
7459 2001-03-19  Werner LEMBERG  <wl@gnu.org>
7461         * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
7462         `rq' for requests.  `fn' is no longer used.
7463         Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
7464         Removed @Deffn(x).
7466         * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
7467         number with name of man page.
7469 2001-03-19  Larry Kollar  <kollar@alltel.net>
7471         * doc/groff.texinfo: Complete revision.  Added many @Deffn to gain
7472         consistency.
7474 2001-03-19  Werner LEMBERG  <wl@gnu.org>
7476         * man/groff_font.man: Document `prepro', `postpro', and `print'.
7477         * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
7478         * src/devices/grohtml/grohtml.man: Fixing typos.
7480 2001-03-19  Gaius Mulley  <gaius@glam.ac.uk>
7482         * tmac/s.tmac (@IP): Pass `.ip' html tag.
7483         * tmac/groff_mwww.man: Remove .LINE macro
7484         * tmac/www.tmac (LINE): Add `.ti'.
7486         * src/devices/grohtml/post-html.cc (html_printer): New member
7487         `indent'.
7488         (html_printer::emit_raw): Use it.
7489         (html_printer::do_linelength): Ditto.
7490         (html_printer::do_pageoffset): Ditto.
7491         (html_printer::do_indentation): Ditto.
7492         (html_printer::do_tempindent): Ditto.
7493         (html_printer::do_break): Ditto.
7494         (html_printer::begin_page): Ditto.
7495         (html_printer::do_indentedparagraph): New function.
7496         (html_printer::troff_tag): Handle `.ip'.
7497         * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
7498         Add `<td width=...>' handling.
7499         (html_text::do_table): Add parameter.
7500         (html_text::do_indent): Updated.
7501         * src/devices/groohtml/html-text.h: Updated.
7503 2001-03-16  Gaius Mulley  <gaius@glam.ac.uk>
7505         Introduced simple html tables to implement indentation.
7507         * src/devices/grohtml/html.h (word, word_list): New structures.
7508         (simple_output): Use it.
7509         * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
7510         (html_printer): Improve indentation handling.
7511         (html_printer::emit_raw): Set `in_table' element.  Handle
7512         indentation if set.
7513         (html_printer::write_header): Move conditional downwards.
7514         Don't allow whitespace in tags.
7515         (html_printer::do_linelength): Handle line length and indentation
7516         conditionally.
7517         (html_printer::do_pageoffset): Handle indentation conditionally.
7518         (html_printer::do_indentation): Ditto.
7519         (html_printer::do_tempindent): New function member.
7520         (html_printer::do_fill): Take care of indentation.
7521         (html_printer::do_flush): Finish table.
7522         (html_printer::do_links): Ditto.
7523         (html_printer::do_break): New function for handling `.br' and `.ti'.
7524         (html_printer::troff_tag): Use it.
7525         Handle `.ti'.
7526         (html_printer::flush_globs): Fix.
7527         (html_printer::flush_page): Finish table.
7528         (html_printer::html_printer): Fix error message.  Set up
7529         `linelength'.
7530         (html_printer::add_to_sbuf): Remove special handling of character
7531         code 255.
7532         (to_unicode): Remove `stop()'.
7533         (html_printer::write_title): Cleanup.
7534         (html_printer::begin_page): Use `put_string()'.  Handle indentation.
7535         (html_printer::~html_printer): Flush text and end the line.
7536         Use `put_string()'.
7537         * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
7538         * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
7539         emission of tags.
7540         (html_text::start_tag): Disable newlines.
7541         (html_text::table_is_void): New function.
7542         (html_text::issue_table_begin): Ditto.
7543         (html_text::issue_table_end): Ditto.
7544         (html_text::push_para): Better table handling.
7545         (html_text::do_indent): New function.
7546         (html_text::do_table): Ditto.
7547         (html_text::done_table): Ditto.
7548         (html_text::do_tt): Handle PRE_TAG.
7549         (html_text::is_in_table): New function.
7550         (html_text::check_emit_text): Handle tables.
7551         (html_text::do_emittext): Use `nl()'.
7552         (html_text::do_para): Handle table.
7553         (html_text::remove_def): New function.
7554         * src/devices/grohtml/output.cc (word, word_list): Implement
7555         methods.
7556         (simple_output::end_line): Flush last word.
7557         (simple_output::simple_comment): Ditto.
7558         (simple_output::begin_comment): Recoded.
7559         (simple_output::end_comment): Ditto.
7560         (simple_output::comment_arg): Removed.
7561         (simple_output::check_newline): Improve test and flush last word.
7562         (simple_output::space_or_newline): Improved.
7563         (simple_output::write_newline): Replaced with...
7564         (simple_output::nl): This.
7565         (simple_output::put_raw_char): Flush last word.
7566         (simple_output::check_space): Removed.
7567         (simple_output::put_translated_string): Ditto.
7568         (simple_output::put_string): Simplified.
7569         (simple_output::put_number): Updated.
7570         (simple_output::put_float): Ditto.
7571         (simple_output::put_symbol): Removed.
7572         (simple_output::enable_newlines): Add `check_newline()'.
7573         (simple_output::flush_last_word): New function.
7575         * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
7576         * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
7578         * tmac/s.tmac (@PP, @IP): Add html conditional code.
7579         * tmac/an-old.tmac (TP): Ditto.
7581 2001-03-09  Ruslan Ermilov  <ru@freebsd.org>
7583         * mdate.sh: Make it POSIX compliant.
7585 2001-03-09  Werner LEMBERG  <wl@gnu.org>
7587         Added the `return' request to end a macro immediately.  It simply
7588         pops iterators from the input stack until a macro iterator is found.
7590         * src/roff/troff/input.cc (input_iterator::is_macro,
7591         macro_iterator::is_macro): New member.
7592         (input_return_boundary): New class to signal an immediate return
7593         to while_request().
7594         (input_stack::add_return_boundary, input_stack::is_return_boundary):
7595         New functions.
7596         (input_stack::clear): Use it.
7597         (input_stack::pop_macro): New function.
7598         (while_request): Use `is_return_boundary()'.
7599         (return_macro_request): New function.
7600         (init_input_requests): Use it.
7602         * src/roff/troff/TODO: Updated.
7603         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7605 2001-03-08  Werner LEMBERG  <wl@gnu.org>
7607         * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
7608         cleanup.
7610 2001-03-07  Werner LEMBERG  <wl@gnu.org>
7612         Make `\B' more rigid.
7614         * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
7615         parameter.
7616         (get_number_rigidly): New function.
7617         * src/roff/troff/input.cc (do_expr_test): Use it.
7618         * src/roff/troff/token.h: Updated.
7620         * src/roff/troff/request.h: Fix typo (init_html_request ->
7621         init_markup_request).
7623 2001-03-04  Gaius Mulley  <gaius@glam.ac.uk>
7625         Fixed grohtml handling of any named glyph for glyph indexes < 0x80. 
7626         Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
7627         are now `.begin', `.end', `.image'.
7629         * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
7630         (html_printer::add_to_sbuf): Changing type of `code' parameter.
7631         Use add_char_to_sbuf().
7632         (to_unicode): New function.
7633         (char_translate_to_html): Changing type of `ch' parameter.
7634         Use `to_unicode()'.
7635         (html_printer::~html_printer): Comment out doctype string.
7636         * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
7637         instead of `.html-end'.
7638         (write_start_image): Use `.begin' and `.image' instead of
7639         `.html-begin' and `.html-image'.
7640         * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
7641         (html_begin): Renamed to ...
7642         (begin): This.
7643         (html_end): Renamed to ...
7644         (end): This.
7645         (html_image): Renamed to ...
7646         (image): This.
7647         (init_html_requests): Renamed to ...
7648         (init_markup_requests): This.
7649         * tmac/www.tmac: Updated.
7651 2001-02-28  Bram  <bram@avontuur.org>
7653         * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
7654         constructor.
7656 2001-02-26  David Leonard  <david.leonard@csee.uq.edu.au>
7658         * doc/meref.me: Fixing some typos.
7660 2001-02-16  Werner LEMBERG  <wl@gnu.org>
7662         * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
7663         method.  Return `HYPHEN_MIDDLE' if it was `\:'.
7664         * src/roff/troff/node.h: Updated.
7666 2001-02-17  Ruslan Ermilov  <ru@FreeBSD.org>
7668         * tmac/groff_tmac.man: Fix typo.
7670 2001-02-16  Werner LEMBERG  <wl@gnu.org>
7672         Fixing a bug which prevented proper end-of-sentence recognition
7673         between an `unformatted' box and the following text.  As a
7674         consequence, vertical line distances are no longer preserved in
7675         boxes after a call to `.unformat' -- because boxes aren't
7676         line-oriented (contrary to diversions), this doesn't make sense
7677         anyway.
7679         * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
7680         value.
7681         (vertical_size_node::set_unformat_flag): New method.
7682         * src/roff/troff/node.hh: Updated.
7683         * src/roff/troff/input.cc (word_space_node::reread,
7684         hmotion_node::reread): Reset `unformat' flag after usage.
7685         (unformat_macro): Append only if `set_unformat_flag()' returns
7686         non-zero.
7687         * src/roff/troff/troff.man: Updated.
7689 2001-02-15  Werner LEMBERG  <wl@gnu.org>
7691         * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
7692         documentation of `asciify' and `unformat' requests.
7694 2001-02-13  Werner LEMBERG  <wl@gnu.org>
7696         Redesigned the `unformat' request.  It is no longer connected with
7697         `asciify' but rather uses new `reread()' methods if the `unformat'
7698         flag is set.  Additionally, the handling of space characters after
7699         unformatting has been fixed so that they retain their width.
7701         * src/roff/troff/node.h (width_list): New structure to store
7702         original widths of spaces.
7703         (node): Added `unformat' member.
7704         Replaced `num_spaces' variable with `orig_width' list.
7705         * src/roff/troff/node.cc (*node::asciify,
7706         asciify_reverse_node_list): Removed `unformat_only' flag and related
7707         code.
7708         (word_space_node::asciify, word_space_node::word_space_node): Use
7709         `orig_width'.
7710         (word_space_node::~word_space_node): New destructor.
7711         (word_space_node::copy): Updated to handle `orig_width'.
7712         (hmotion_node::copy, unbreakable_space_node::copy): Updated.
7713         (*node::merge_space): Update `orig_width' list if necessary.
7714         (*node::set_unformat_flag): New methods to set the `unformat' flag.
7715         * src/roff/troff/enc.cc (environment::space_newline): Use
7716         `width_list'.
7717         (environment::space): Added method to handle space width and
7718         sentence space width as parameters.  Use `width_list'.
7719         (environment::make_tab_node): Updated.
7720         * src/roff/troff/env.h: Updated.
7721         * src/roff/troff/input.cc (word_space_node::reread,
7722         unbreakable_space_node::reread, hmotion_node::reread): New methods
7723         to handle nodes specially if `unformat' flag is set.
7724         (do_asciify_macro): Renamed back to ...
7725         (asciify_macro): This.
7726         (unformat_macro): New implementation to simply set the `unformat'
7727         flag.
7729         * MORE.STUFF: Added more info about deroff.
7731 2001-02-08  Werner LEMBERG  <wl@gnu.org>
7733         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
7734         space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
7735         and `add_self()' methods to avoid hyphenation.  For example, the
7736         hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
7737         soft hyphen after `foo'.  Now the hyphen list is correctly
7738         `foo<ignore><ignore>bar'.
7740 2001-02-05  Yoshiteru Kageyama  <yt-kage@cb3.so-net.ne.jp>
7742         * tmac/groff_tmac.man: Fix `BIR' macro.
7744 2001-02-04  Werner LEMBERG  <wl@gnu.org>
7746         A new escape sequence `\:', inserting a zero-width break point.
7748         * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
7749         * src/roff/troff/input.cc (get_copy, token::next, asciify):
7750         Implement it.
7751         * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
7752         method.
7753         (space_node): Add `was_escape_colon' member.  Add `is_escape_colon()'
7754         and `asciify()' methods.
7755         * src/roff/troff/node.cc (space_node::space_node): Updated.
7756         (space_node::asciify): Handle `was_escape_colon'.
7757         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7759         Handle `\~' similar to other comparable requests.
7761         * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
7762         label.
7763         (token::next): Move creation of an unbreakable_space_node to...
7764         (token::add_to_node_list): Here.
7766         Fix a bug which sometimes prevented hyphenation of words connected
7767         with `\~' or `\ ' (and other escape sequences handled as
7768         TOKEN_NODE).  This also fixes a hyphenation problem with boxes
7769         (after a call to the `unformat' request).
7771         * src/roff/troff/env.h (environment::possibly_break_line,
7772         environment::hyphenate_line): Introducing `start_here' parameter.
7773         * src/roff/troff/env.cc (environment::space_newline,
7774         environment::space): Use it.
7775         (environment::possibly_break_line, environment::hyphenate_line):
7776         Implement it.
7777         * src/roff/troff/input.cc (process_input_stack): Use it.
7778         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
7779         space_char_hmotion_node, overstrike_node): Add
7780         `get_hyphenation_type()' method.
7781         * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
7782         if `unformat_only' is active.
7784 2001-01-30  Werner LEMBERG  <wl@gnu.org>
7786         Implemented new read-only number register `.linetabs' which
7787         returns 1 if in line-tabs mode, 0 otherwise.
7789         * src/roff/troff/env.h (environment): Add get_line_tabs() member.
7790         * src/roff/troff/env.cc (get_line_tabs): New function.
7791         (init_env_requests): Use it.
7792         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7794         * VERSION, REVISION: Changing to 1.17.0.
7796 2001-01-28  Werner LEMBERG  <wl@gnu.org>
7798         Fixed a bug which prevented hyphenation of words which are finished
7799         with `\)'.
7801         * src/roff/troff/token.h (token): Add enum type
7802         `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
7803         * src/roff/troff/input.cc (token::next, token::description,
7804         get_line_arg, token::add_to_node_list, token::process): Use it.
7806 2001-01-27  Werner LEMBERG  <wl@gnu.org>
7808         * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
7809         * src/roff/troff/div.cc (do_divert): Use it.
7811         * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
7813 2001-01-25  Werner LEMBERG  <wl@gnu.org>
7815         Adding the `linetabs' request.  If set, tab distances are not
7816         computed relative to the input line but relative to the output line.
7818         * src/roff/troff/env.h (environment): New member `line_tabs'.
7819         * src/roff/troff/env.cc (line_tabs_request): Implement request.
7820         (environment::environment, environment::copy): Updated.
7821         (environment::distance_to_next_tab): Use `line_tabs'.
7822         (init_env_requests): Register request.
7823         * src/roff/troff/troff.man, man/groff.man, NEWS: Document it.  Other
7824         fixes.
7826 2001-01-24  Werner LEMBERG  <wl@gnu.org>
7828         Introducing a new read-only register `.int' which is set to a
7829         positive value if the last output line is interrupted (i.e., if it
7830         contains `\c').
7832         * src/roff/troff/env.cc (init_env_requests): Add it.
7833         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7835 2001-01-23  Gaius Mulley  <gaius@glam.ac.uk>
7837         * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
7838         * src/preproc/html/pre-html.cc (findPrefix): New function which
7839         generates the troff executable name via the system prefix.
7840         * src/preproc/eqn/main.cc: Modified warning message.
7842 2001-01-23  Werner LEMBERG  <wl@gnu.org>
7844         troff's `box' and `boxa' requests didn't preserve temporary
7845         indentation.
7847         * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
7848         `saved_target_text_length' members.
7849         * src/roff/troff/div.cc (do_divert): Use them.
7851         Tabs (but not yet leaders and fields) are now handled correctly by
7852         `asciify' request.
7854         * node.h (hmotion_node): Add field `was_tab'.
7855         * env.cc (environment::make_tab_node): Set it.
7856         * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
7858         Added new request `unformat' which will, contrary to `asciify',
7859         preserve font information after unformatting (i.e., only nodes
7860         dealing with horizontal space are converted back to input
7861         characters).
7863         * input.cc (asciify_macro): Renamed to ...
7864         (do_asciify_macro): this, having a new parameter `unformat_only'.
7865         (asciify_macro, unformat_macro): New; using do_asciify_macro.
7866         (init_input_requests): Added `unformat'.
7867         * node.cc (*_node::asciify), asciify_reverse_node_list: Added
7868         parameter to control asciification process.
7869         * node.h (*_node::asciify): Ditto.
7870         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7872 2001-01-20  Werner LEMBERG  <wl@gnu.org>
7874         * doc/groff.texinfo: Minor improvement of `.in' documentation.
7876 2001-01-18  Werner LEMBERG  <wl@gnu.org>
7878         * tmac/ps.tmac: Remove call of psold.tmac.
7879         * tmac/psold.tmac: Comment updated.
7880         * tmac/psnew.tmac: Removed since no longer needed.
7881         * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
7883         * font/devutf8/R.proto: Adding `shc' glyph.
7884         * font/devutf8/NOTES: Updated.
7886         * test-groff: Updated.
7888 2001-01-15  Gaius Mulley  <gaius@glam.ac.uk>
7890         First cut of the new html device driver.  Changes to pre-html and
7891         the new grohtml are too numerous to be documented here.
7893         Stuff related to `html' has been renamed to `html-old' and `html2'
7894         stuff has been renamed to `html' (including directories).  The new
7895         html device driver is therefore invoked as `-Thtml'.
7897         Added new `\O' escape to suppress output (needed by html driver).
7899         Added functions and code to pass info about input-level commands
7900         (`.in', `.fl', etc.) to html driver.
7902         Three new functions (.html-begin, .html-end, and .html-image) for
7903         better html handling: `html-begin' will execute the remaining line
7904         if at the outermost nesting level, increasing an internal counter.
7905         `html-end' does the same but decreases the internal counter.
7906         `html_image' puts its arguments into a special node (suppress_node)
7907         to define an image region.
7909         The `output' request has been removed.
7911         * tmac/html-tags.tmac: Removed.
7912         * tmac/arkup.tmac: Updated and renamed to ...
7913         * tmac/www.tmac: New file.
7914         * tmac/markup.tmac Updated and renamed to ...
7915         * tmac/mwww.tmac: New file.
7916         * tmac/Makefile.sub: Updated.
7917         * tmac/an-old.tmac: Updated.
7918         * tmac/eqnrc: Updated.
7919         * tmac/groff_man.man
7920         * tmac/groff_markup.man: Updated and renamed to ...
7921         * tmac/groff_mwww.man: New file.
7922         * tmac/groff_tmac.man: Updated.
7923         * tmac/html-old.tmac: Updated and Renamed from html.tmac.
7924         * tmac/html.tmac: Updated and renamed from html2.tmac.
7925         * tmac/pspic.tmac: Updated html support.
7926         * tmac/s.tmac: Added html output support.
7927         * tmac/troffrc, tmac/troffrc-end: Updated.
7929         * Makefile.in, doc/Makefile: Updated.
7930         * doc/groff.texinfo: Added info about new `\O' escape.
7931         * doc/homepage.ms: Use `MAILTO' macro.
7933         * font/devhtml/DESC.proto: Add `C' font.
7934         * font/devhtml/Makefile.sub: Updated.
7935         * font/devhtml/R.proto: Minor fixes.
7936         * font/devhtml-old/Makefile.sub: Updated.
7938         * src/devices/grohtml-old/Makefile.sub: Updated.
7940         * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
7941         method.
7942         * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
7943         graphic_start): Add `inline' parameter.  Update.
7944         (html_end_suppress, graphic_end): Update.
7946         * src/include/html-strings.h: New file.
7947         * src/include/htmlindicate.h: Comments updated.
7948         * src/include/printer.h: Updated.
7950         * src/preproc/eqn/main.cc (do_file, main): Updated.
7951         * src/preproc/pic/troff.cc (troff_output::start_picture,
7952         troff_output::finish_picture): Updated.
7953         * src/preproc/tbl/main.cc (process_input_file): Updated.
7955         * src/roff/groff/groff.cc (main): Updated.
7956         Pass device arguments to predrivers also.
7957         Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
7958         * src/roff/troff/env.h (environment): Updated.
7959         New elements `need_eol' and `ignore_next_eol' (for html output).
7960         * src/roff/troff/env.cc (environment::environment): Add initializers
7961         for `need_eol' and `ignore_next_eol'.
7962         (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
7963         functions.
7964         (point_size, fill, no_fill, center, right_justify, line_length,
7965         indent, temporary_indent, break_request, handle_tab): Use
7966         `add_html_tag()'.
7967         (set_tabs): Use `add_html_tag_tabs()'.
7968         (environment::add_html_tag): Updated.
7969         (environment::do_break): Updated.
7970         * src/roff/troff/div.cc (space_request, flush_output): Use
7971         `environment::add_html_tag()'.
7972         * src/roff/troff/input.cc: Updated.
7973         New variable `html_level' to indicate nested `html-begin' requests.
7974         (file_iterator::fill): Use `environment::add_html_tag_eol()'.
7975         (non_interpreted_char_node, token_node, non_interpreted_node): Add
7976         `force_tprint()' method.
7977         (token::next): Handle `\O'.
7978         (do_suppress): Implement it.
7979         (html_begin, html_end, html_image): New functions.
7980         (init_output_requests): Renamed to ...
7981         (init_html_requests): this.
7982         (main): Use it.
7983         (macro::append_str, macro::append_unsigned, macro::append_int): New
7984         methods.
7985         New variable `output_low_mark_miny' to limit minimal value of y.
7986         (reset_output_registers): Use it.
7987         (output_request): Removed.
7988         (get_output_registers): New function.
7989         * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
7990         (*_node): Added `force_tprint()' if necessary.
7991         (special_node): New elements `tf' and `get_tfont()'.
7992         (suppress_node): New class.
7993         * src/roff/troff/node.cc:
7994         New global variables `image_no' and `suppress_start_page'.
7995         (real_output_file): New method `is_on()'.
7996         (troff_output_file): New method `start_special(tfont)'.
7997         (troff_output_file::really_print_line): Use `tprint' conditionally.
7998         (real_output_file::print_line): Updated.
7999         (real_output_file::on): Updated.
8000         (*_node): Added `force_tprint()'.
8001         (special_node::special_node): Initializer updated.
8002         (special_node::same, special_node::copy, special_node::tprint_start):
8003         Updated.
8004         (get_reg_int, get_reg_str): New functions.
8005         (suppress_node::*): New methods.
8006         New global variables last_position, last_image_filename;
8007         (min): New inline function.
8008         * src/roff/troff/reg.h, src/roff/troff/request.h,
8009         src/roff/troff/troff.h: Updated.
8011 2001-01-13  Werner LEMBERG  <wl@gnu.org>
8013         * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
8014         documentation of `asciify' request.
8016 2001-01-12  Werner LEMBERG  <wl@gnu.org>
8018         * src/roff/troff/input.cc: Move definition of special characters
8019         like `ESCAPE_TILDE' to ...
8020         * src/roff/troff/input.h: New file.
8021         * src/roff/troff/Makefile.sub (HDRS): Add it.
8023         Extending the .asciify request to `unformat' space characters also.
8025         * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
8026         to count input space characters.
8027         Update constructors to take care of it.
8028         * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
8029         `ESCAPE_SPACE' instead of normal space.
8030         (word_space_node::asciify): New method.
8031         (unbreakable_space_node::asciify): New method.
8032         (word_space_node::merge_space): New method.
8033         * src/roff/troff/env.cc (environment::space_newline,
8034         environment::space): Add code to initialize `num_spaces' (using the
8035         constructor of `word_space_node').
8036         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8037         Document it.
8039 2001-01-09  Werner LEMBERG  <wl@gnu.org>
8041         * man/groff_char.man: Use table header traps only conditionally.
8043 2001-01-09  Bjarni Ingi Gíslason  <bjarniig@hi.is>
8045         * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
8047 2001-01-08  Werner LEMBERG  <wl@gnu.org>
8049         Introducing the `box' and `boxa' requests which are similar to
8050         `di' resp. `da' but omitting a partially filled line (which is
8051         restored after ending the diversion).
8053         * src/roff/troff/div.h (diversion): Add elements to save partially
8054         filled line.
8055         * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
8056         partially filled line.
8057         (divert, divert_append): Updated.
8058         (box, box_append): New functions.
8059         (init_div_requests): Use them.
8060         * src/roff/troff/env.h (environment): do_divert() is now a friend.
8061         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8063         * doc/groff.texinfo: Fix documentation of `lf' request.
8065 2000-12-25  Werner LEMBERG  <wl@gnu.org>
8067         * src/roff/troff/troff.man, NEWS: Document `writem' request.
8069 2000-12-21  Werner LEMBERG  <wl@gnu.org>
8071         Ignore `ss' request if in compatibility mode.
8073         * src/roff/troff/input.cc: Make `compatible_flag' non-static.
8074         * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
8075         * src/roff/troff/env.cc (space_size): Use it.
8077         * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
8078         `ss' request in nroff mode.
8080         * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
8081         changes.
8083 2000-12-15  Ruslan Ermilov  <ru@FreeBSD.org>
8085         * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
8087 2000-12-13  Werner LEMBERG  <wl@gnu.org>
8089         * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
8090         * src/preproc/eqn/neqn.man: Small fixes and additions.
8092 2000-12-13  Ruslan Ermilov  <ru@FreeBSD.org>
8094         * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
8095         Fixing typo.
8097         * src/preproc/eqn/neqn.man: New file.
8099         * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
8100         negative' warning.
8102         * tmac/e.tmac: Add `T&' macro.
8103         Fix `indent cannot be negative' warning.
8104         * tmac/s.tmac: Fix `indent cannot be negative' warning.
8106 2000-12-07  Werner LEMBERG  <wl@gnu.org>
8108         * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
8110 2000-12-06  Werner LEMBERG  <wl@gnu.org>
8112         * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
8113         `alloca' symbol .
8115         * MORE.STUFF: Added info about deroff for djgpp.
8117         * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
8118         documentation of -rcR switch.
8120 2000-12-03  Werner LEMBERG  <wl@gnu.org>
8122         * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
8123         if -rcR=1 (which is now the default in nroff mode), a single, very
8124         long page is created instead of multiple pages: All `ne' and `wh'
8125         requests are put into conditionals; a new macro `an-end' is added to
8126         be called with `em'.
8128         Some other minor cleanups.
8130         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
8132 2000-12-02  Werner LEMBERG  <wl@gnu.org>
8134         Fixing a bug which prevented hyphenation in words followed
8135         immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
8137         * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
8138         Adding possibly_break_line().
8139         * src/roff/troff/env.h (environment): Make possibly_break_line()
8140         public.
8142         Make `\~' usable in .tr request.
8144         * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
8145         (token): Add stretchable_space().
8146         * src/roff/troff/input.cc (token::next, token::delimiter,
8147         token::description, process_input_stack, do_translate,
8148         add_to_node_list, token::process): Use it.
8149         * src/roff/troff/node.h (node): Add fourth parameter to add_char()
8150         for adjusting the space.
8151         * src/roff/troff/node.cc (node::add_char): Implement it.  Add code
8152         for stretchable space.
8153         * src/roff/troff/input.cc (token::add_to_node_list): Use it.
8154         (make_node): Add code for stretchable space.
8155         * src/roff/troff/env.cc (environment::add_char): Use it.
8156         * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
8157         (get_copy, token::next, transparent_translate, asciify): Use it.
8159         * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
8160         doc/groff.texinfo: Updated.
8161         * man/groff.man: Small reorderings.
8163 2000-11-23  Werner LEMBERG  <wl@gnu.org>
8165         * NEWS: Fixes.
8166         * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
8167         option.
8168         * src/roff/troff/input.cc (main): Add `config_macro_path' and
8169         `safer_macro_path' to -M option.
8170         * src/roff/troff/troff.man: Fixes.
8172 2000-11-22  Werner LEMBERG  <wl@gnu.org>
8174         Use safer path (except for config files) if -U isn't specified.  Add
8175         a special macro path (without home and current directory) for config
8176         files.  Add home directory to unsafe path for consistency.  Don't
8177         include the home directory in the font path.
8179         * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
8180         `macro_path'.
8181         * src/include/macropath.h: Add `config_macrp_path'.
8182         * src/libs/libgroff/fontfile.cc: Fix font path.
8183         * src/roff/troff/input.cc (process_startup_file): Use
8184         `config_macro_path'.
8185         (main): Select unsafe path if -U is given.
8187         * src/preproc/eqn/main.cc (main): Fixing search path for
8188         configuration file.
8189         * src/preproc/eqn/eqn.man: Updated.
8191         * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
8192         Updated.
8194         * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
8195         src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
8196         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
8197         src/devices/grotty/grotty.man: Updated.
8199         * Makefile.in: Fix comments.
8201 2000-11-17  Werner LEMBERG  <wl@gnu.org>
8203         * tmac/safer.tmac: Empty file added (again) for compatibility
8204         reasons.
8205         * tmac/Makefile.sub: Updated.
8207 2000-11-16  Werner LEMBERG  <wl@gnu.org>
8209         * src/devices/grodvi/dvi.cc (main),
8210         src/devices/grohtml2/post-html.cc (main),
8211         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
8212         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
8213         (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
8214         (main), src/preproc/html2/pre-html.cc (main),
8215         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
8216         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
8217         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
8218         (main), src/utils/hpftodit/hpftodit.cc (main),
8219         src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
8220         (main), src/utils/lookbib/lookbib.cc (main),
8221         src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
8222         (main): Use stdout for -v.
8223         * src/roff/groff/groff.cc (run_commands),
8224         src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
8225         to make direct printing to stdout possible.
8226         * src/roff/groff/pipeline.h: Updated.
8228         * src/utils/afmtodit/afmtodit.pl: Add -v switch.
8229         * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
8230         * src/utils/afmtodit/afmtodit.man: Updated.
8232         * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
8233         (version): New function.
8234         (usage): Updated.
8235         * src/utils/addftinfo/addftinfo.man: Updated.
8237         * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
8238         Fixing copyright dates.
8240         * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
8241         replacing it.
8243         * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
8244         version_string.
8246         * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
8248 2000-11-15  Werner LEMBERG  <wl@gnu.org>
8250         In all programs, make -v return immediately with exit status 0 to
8251         be compliant with the GNU standard.
8253         * src/devices/grodvi/dvi.cc (main),
8254         src/devices/grohtml2/post-html.cc (main),
8255         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
8256         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
8257         (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
8258         (main), src/preproc/html2/pre-html.cc (main),
8259         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
8260         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
8261         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
8262         (main): Implement it.
8263         * NEWS: Updated.
8265         * src/roff/groff/groff.cc (main): Add copyright notice.  Add refer
8266         and postprocessors to the -v option.
8268         * src/roff/grog/grog.pl: Implement -v.
8269         * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
8270         * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
8272         * src/roff/nroff/nroff.sh: Implement -v.
8273         * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
8274         * src/roff/nroff/nroff.man: Updated.
8275         
8276         * src/preproc/eqn/main.cc (main): Fix comment typo.
8278         * MORE.STUFF: Added info about djgpp port of grap.
8280 2000-11-14  Werner LEMBERG  <wl@gnu.org>
8282         * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
8283         mode (or rather, implemented non-compatibility mode).
8284         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
8286         * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
8287         replacing it -- we don't find gxditview otherwise.
8288         * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
8290         * src/preproc/pic/depend: Removed.  Unnecessary.
8292         Implemented dummy keyword `solid' in pic for compatibility with
8293         AT&T pic.
8295         * lex.cc (lookup_keyword): Added `solid'.
8296         * pic.y: Added SOLID with dummy rule.
8297         * pic.cc, pic_tab.h: Regenerated.
8298         * doc/pic.ms: Updated.
8300 2000-11-13  Werner LEMBERG  <wl@gnu.org>
8302         For security reasons, don't use the current directory but the home
8303         directory while searching and scanning troffrc and troffrc-end.
8304         Similarly, replace the current directory with the home directory
8305         in the font path.
8307         * Makefile.in (fontpath, tmacpath): Remove current directory.
8309         * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
8310         two parameters `add_home' and `add_current'.
8311         (search_path::~search_path, search_path::command_line_dir,
8312         search_path::open_file): Remove tests for `dirs' being zero.
8313         * src/include/searchpath.h: Adjust.
8314         * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
8315         `safer_macro_path'.
8316         * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
8318         * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
8319         * src/roff/troff/input.cc: Use `mac_path', initialized with
8320         `macro_path'.
8321         (process_startup_file): Set `mac_path' to `safer_macro_path'.
8322         * src/roff/troff/env.cc: Use `mac_path'.
8324         * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
8326         * NEWS, man/roff.man, src/roff/troff/troff.man,
8327         src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
8328         Updated.
8330 2000-11-12  Werner LEMBERG  <wl@gnu.org>
8332         * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
8334         * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
8335         * configure.in: Fix typo in comment.
8336         * configure: Regenerated.
8338         * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
8339         copyright dates.
8341 2000-11-08  Werner LEMBERG  <wl@gnu.org>
8343         Add system tmac directory (/usr/local/lib/groff/site-tmac).
8345         * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
8346         (uninstall_dirs): Add $(libdir), $(libprogramdir), and
8347         $(systemtmacdir).
8348         Use @libdir@.
8349         * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
8350         * tmac/Makefile.sub (install_data): Create
8351         $(systemtmacdir) and $(localtmacdir).
8352         (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
8353         * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
8354         NEWS, doc/groff.texinfo: Updated and minor fixes.
8356         * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
8357         * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
8358         $(systemtmacdir) since the wrapper files are platform-dependent.
8360 2000-11-01  Werner LEMBERG  <wl@gnu.org>
8362         * doc/groff.texinfo: Fix typo.
8364 2000-10-26  Werner LEMBERG  <wl@gnu.org>
8366         Convert macros `tmac.XXX' to `XXX.tmac'.  Special cases:
8367           tmac.doc.old -> doc-old.tmac
8368           tmac.an.old  -> an-old.tmac
8370         * tmac/tmac.*: Moved to ...
8371         * tmac/*.tmac: this.
8372         * tmac/man.local: Fix comment.
8373         * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
8374         tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. 
8375         Added some `FILES' sections.  More use of @...@ directives.  Other
8376         minor updates.
8377         * arch/djgpp/README, font/devutf8/NOTES: Updated.
8378         * doc/homepage.ms, doc/groff.texinfo: Updated.
8379         * man/groff.man, man/roff.man: Updated.
8380         * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
8381         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
8382         src/devices/grotty/grotty.man: Updated.
8383         * src/preproc/pic/pic.man: Updated.
8384         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
8385         instead of -mdoc.old.
8386         * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
8387         * src/roff/nroff/nroff.man: Updated.
8388         * NEWS: Updated.
8390         * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
8392         * tmac/mm.diff: Removed -- it has no use now since the mm package
8393         is part of groff.
8395         * tmac/*: Removed trailing spaces.
8397         * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
8398         the tmac subdirectory also).
8400         * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
8401         * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
8402         stuff since it is no longer needed.
8404         * README, PROBLEMS: Updated.
8406 2000-10-25  Werner LEMBERG  <wl@gnu.org>
8408         Invert current behaviour: Search first FOOBAR.tmac, then
8409         tmac.FOOBAR.
8411         * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
8412         (open_mac_file, macro_source): Implement it.
8413         * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
8414         doc/groff.texinfo, NEWS: Document it.
8416         * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
8417         Small documentation improvements.
8419         * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
8420         subdirectory also).
8422         * font/devps/Makefile.sub: Fix rules for dingbats.*map.
8424 2000-10-24  Werner LEMBERG  <wl@gnu.org>
8426         Add local tmac directory (groff/site-tmac).
8428         * Makefile.in: Add $(localtmacdir).
8429         (uninstall_dirs): Add $(localtmacdir).
8430         * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
8431         * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
8432         in $(localtmacdir).  Create $(localtmacdir).
8433         * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
8434         Updated and minor fixes.
8436         Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
8438         * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
8440 2000-10-23  Werner LEMBERG  <wl@gnu.org>
8442         Move hyphen.us to tmac directory.
8444         * src/roff/troff/hyphen.us: Removed.
8445         * src/tmac/hyphen.us: Added.
8446         * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
8448         Change installation structure for data files from .../groff/... to
8449         .../groff/<version><revision>/... to be conform with other GNU
8450         programs.
8452         * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
8453         doc/Makefile: Implement it.
8454         * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
8455         * configure: Updated.
8456         * arch/djgpp/README, font/devutf8/NOTES: Use it.
8457         * NEWS: Document it.
8458         * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
8459         @MACRODIR@ instead of hard-coded directories.
8461 2000-10-22  Werner LEMBERG  <wl@gnu.org>
8463         Implement $GROFF_BIN_PATH environment variable (which defaults to
8464         $bindir) used for child programs of groff and similar wrappers.
8466         * gendefs.sh: Improve documentation.
8467         * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
8468         src/preproc/eqn/Makefile.sub (neqn),
8469         src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
8470         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
8471         $GROFF_BIN_PATH.
8472         * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
8473         $GROFF_PATH__ (the latter for communication with troff).
8474         * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
8475         set.
8476         * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
8477         doc/groff.texinfo: Document it.
8479         * doc/groff.texinfo: Improve documentation of troff's -a option.
8481 2000-10-17  Gaius Mulley  <gaius@glam.ac.uk>
8483         * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
8484         non-intrusive eol marker.
8485         (troff_output_file::determine_line_limits): New function.
8486         (troff_output_file::draw): Use it.
8487         * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
8488         output_pending_lines() instead of output_line().
8489         * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
8490         * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
8491         createImage): Small fixes.
8492         
8493 2000-10-14  Werner LEMBERG  <wl@gnu.org>
8495         Replace tmac.safer with a real secure solution.
8497         * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
8498         system_request, pipe_output): Disable requests if in safer mode.
8499         * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
8500         * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
8501         * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
8502         doc/groff.texinfo, src/roff/groff/groff.man,
8503         src/roff/troff/troff.man, arch/djgpp/README: Updated.
8505         * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
8506         (resource_manager::output_prolog): Replace setenv() with putenv().
8508 2000-10-09  Werner LEMBERG  <wl@gnu.org>
8510         * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
8511         src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
8512         src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
8513         src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
8514         compilation errors with some compilers.  It seems that this code
8515         is no longer necessary -- if yes, it is easy to add some #ifdef's
8516         for that particular old-fashioned compiler.
8518         * MORE.STUFF: Added info about Meta-tbl.
8520         * doc/groff.texinfo: Added more info about `.if "..."..."'.
8522 2000-10-07  Werner LEMBERG  <wl@gnu.org>
8524         Adding a new escape sequence \B'...': If the string between
8525         the delimiters is a valid numeric expression, return the character
8526         `1', and `0' otherwise.  This is an analogon to \A.
8528         * src/roff/troff/input.cc (do_expr_test): Implement it.
8529         (token::next): Use it.
8530         * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
8532         * tmac/tmac.trace: Made independent from escape character.
8534 2000-10-06  Werner LEMBERG  <wl@gnu.org>
8536         Adding a new request .dei: define indirect.  The first and second
8537         parameter of .dei are taken from string registers instead directly;
8538         this very special request is needed to make tmac.trace independent
8539         from the escape character (which might even be disabled).
8541         * src/roff/troff/input.cc (do_define_macro): Implement it.
8542         (define_macro_indirect): New function.
8543         (init_input_requests): Use it.
8545         Adding two requests .ecs and .ecr: Save and restore the escape
8546         character.  These two requests are needed to make tmac.trace
8547         independent from the escape character (which might even be
8548         disabled).
8550         * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
8551         Implement it.
8552         (init_input_requests): Use it.
8554         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
8556 2000-09-22  Ricardo Soares Guimarães  <ricardo@conectiva.com.br>
8558         Adding a new option -P and new environment variable GROPS_PROLOGUE
8559         to grops, selecting a different prologue file (minor modifications
8560         by WL).
8562         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
8563         src/devices/grops/ps.cc (main): Implement it.
8564         * src/devices/grops/grops.man, NEWS: Document it.
8566 2000-09-22  Werner LEMBERG  <wl@gnu.org>
8568         * INSTALL: Add info about selecting paper format.
8570 2000-09-21  Werner LEMBERG  <wl@gnu.org>
8572         * src/roff/troff/input.cc (main): Fixing compiler warning.
8573         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
8574         strings.h from the former to the latter.
8575         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
8576         stuff from the former to the latter.
8578 2000-09-11  Werner LEMBERG  <wl@gnu.org>
8580         Implementing two new requests .tm1 and .tmc: The former is similar
8581         to .tm but can output leading spaces; its syntax is similar to
8582         defining a string, i.e., a `"' can be used to mark the beginning of
8583         the string to be written to stderr: `.tm1 " test'.  The latter is
8584         similar to .tm1 but doesn't write out a final newline character.
8586         * src/roff/troff/input.cc (terminal1, terminal_continue,
8587         do_terminal): New functions.
8588         (init_input_requests): Use them.
8589         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
8591 2000-09-09  Werner LEMBERG  <wl@gnu.org>
8593         * tmac/groff_mdoc.samples.man: Small fixes.
8595 2000-09-08  Werner LEMBERG  <wl@gnu.org>
8597         * tmac/groff_mdoc.man: Fixing typo.
8599 2000-09-02  Werner LEMBERG  <wl@gnu.org>
8601         Implementing a .nop request which does nothing.
8603         * src/roff/troff/input.cc (nop_request): New function.
8604         (init_input_requests): Use it.
8605         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
8607 2000-09-01  Werner LEMBERG  <wl@gnu.org>
8609         * doc/groff.texinfo: Added some comments.
8611 2000-08-30  Werner LEMBERG  <wl@gnu.org>
8613         * src/roff/troff/TODO: Updated.
8615 2000-08-25  Werner LEMBERG  <wl@gnu.org>
8617         * doc/groff.texinfo: Fix comment how to compile the DVI file.
8619 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
8621         * font/devps/generate/Makefile (SHELL): Define explicitly to
8622         "/bin/sh", for non-Unix platforms.
8623         (extraclean): Use a more portable "" quoting instead of a
8624         backslash (which doesn't work on DOS/Windows).
8625         
8626         * font/devlj4/generate/Makefile (extraclean): Ditto.
8628         * font/devdvi/generate/Makefile (extraclean): Ditto.
8630 2000-08-25  Werner LEMBERG  <wl@gnu.org>
8632         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
8633         src/roff/troff/troff.man: Document Eli's latest changes.
8635 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
8637         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
8638         macro file names of the form NAME.tmac as well as tmac.NAME.
8640 2000-08-25  Werner LEMBERG  <wl@gnu.org>
8642         * src/include/posix.h: Remove definition of FILENAME_MAX.
8644         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
8645         `sys_fatal' and `stop' function().
8647         * test-groff: Updated.
8649 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
8651         Added the new troff command .output <arg> to suppress output (while
8652         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
8653         registers (for passing the output dimensions to the output device).
8655         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
8656         parameter.
8657         * src/roff/troff/node.h, src/roff/troff/node.cc
8658         (troff_output_file::really_print_line,
8659         ascii_output_file::really_print_line,
8660         supress_output_file::really_print_line): Use `width' parameter.
8661         (troff_output_file::really_on, troff_output_file::really_off,
8662         output_file::on, output_file::off, real_output_file::on,
8663         real_output_file::off, real_output_file::really_on,
8664         real_output_file::really_off): New functions.
8665         (real_output_file:public output_file): New variable `output_on'.
8666         (real_output_file::begin_page, real_output_file::copy_file,
8667         real_output_file::transparent_char, real_output_file::print_line):
8668         Use it.
8669         (real_output_file::print_line): Use check_output_limits.
8670         * src/roff/troff/reg.h, src/roff/troff/request.h,
8671         src/roff/troff/input.cc (assign_registers): New function to remove
8672         two `goto's.
8673         (do_ps_file): Use it.
8674         (check_output_limits, reset_output_registers, output_request,
8675         init_output_requests): New functions.
8676         (init_input_requests): Updated.
8678         Added new grohtml2 device and html2 preprocessor (coding
8679         not yet finished) which will eventually replace grohtml.
8681         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
8682         Updated.
8683         * src/include/htmlindicate.h, src/include/htmlindicate
8684         (html_begin_suppress, html_end_suppress): New functions.
8685         * src/preproc/tbl/main.cc: Use it.
8686         * src/roff/groff/groff.cc: Add support for html2 device (which will
8687         automatically invoke the html2 preprocessor).
8688         * src/roff/troff/input.cc (is_html2): New variable.
8689         * src/roff/troff/troff.h, src/roff/troff/env.h,
8690         src/roff/troff/env.cc (environment::add_html_tag): New function
8691         (uses `is_html2').
8692         (environment::do_break): Use it.
8693         * font/devhtml2/*: New files.
8694         * src/devices/grohtml2: New device.
8695         * src/preproc/html2: New preprocessor.
8696         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
8698 2000-08-23  Werner LEMBERG  <wl@gnu.org>
8700         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
8702 2000-08-22  Werner LEMBERG  <wl@gnu.org>
8704         * src/include/lib.h: Provide a fix for IRIX to not include
8705         groff-getopt.h.
8707 2000-08-18  Werner LEMBERG  <wl@gnu.org>
8709         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
8710         since some non-GNU sed programs can't handle null regexps.
8711         * configure, src/preproc/eqn/Makefile.sub,
8712         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
8714         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
8715         bug (string.h and strings.h are both needed according to latest
8716         POSIX standard).
8718         * MORE.STUFF: Added info about unroff and troffcvt.
8720 2000-08-08  Werner LEMBERG  <wl@gnu.org>
8722         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
8723         used before -ms.
8725         * tmac/tmac.man.old: Remove unused number register.
8727         * tmac.doc: Minor documentation fix.
8729 2000-08-07  Paul Eggert  <eggert@twinsun.com>
8731         * src/roff/groff/pipeline.c (is_system_shell):
8732         Fix typo: "monocased_shell" no longer exists.
8734 2000-08-07  Paul Eggert  <eggert@twinsun.com>
8736         Remove FILENAME_MAX limits.
8738         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
8739         that the argument length is less than FILENAME_MAX.
8740         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
8741         Use struct hack to allocate and free file name.
8742         (struct xtmpfile_list): fname is now part of the structure,
8743         not a pointer to another string.
8745 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
8747         * src/include/posix.h: Add a default value for FILENAME_MAX.
8749 2000-08-06  Paul Eggert  <eggert@twinsun.com>
8751         Add support for new BSD-style man pages (with ".Dd" instead of
8752         ".TH"), so that "groff -man" understands both styles, even
8753         when running "groff -man" on a host whose system man page
8754         macros don't support ".Dd".
8756         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
8757         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
8758         in case the system man macros don't define Dd or TH.
8760         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
8761         * tmac/tmac.an: New one-line file.
8762         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
8764 2000-08-06  Werner LEMBERG  <wl@gnu.org>
8766         * src/roff/troff/troff.man: Fixing typos.
8768 Version 1.16.1 released
8769 =======================
8771 2000-07-31  Werner LEMBERG  <wl@gnu.org>
8773         Preparing release 1.16.1.
8775         * REVISION: Revision number set to 1.
8776         * MORE.STUFF: Added info about port to DOS.
8777         * NEWS, win32-diffs: Updated.
8779         * src/include/nonposix.h: Remove first line -- this file is used
8780         in C also.
8782         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
8783         link to it.
8785 2000-07-30  Werner LEMBERG  <wl@gnu.org>
8787         * doc/texinfo.tex: Update to latest version.
8789 2000-06-28  Paul Eggert  <eggert@twinsun.com>
8791         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
8792         commands that fail.  Don't assume that "export a=b" is valid shell
8793         syntax.  This is needed for Solaris 2.5.1.
8795         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
8796         comment about missing Solaris headers.
8798         * PROBLEMS: Add section about problems with Sun Make and VPATH.
8800 2000-06-25  Werner LEMBERG  <wl@gnu.org>
8802         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
8803         SET_BINARY().
8805         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
8807         * win32-diffs: Updated.
8808         * README.WIN32: Added CRs to make all Windows editors happy.
8810         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
8811         src/roff/groff/pipeline.c).
8813 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
8815         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
8816         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
8818 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
8820         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
8821         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
8822         are binary files.
8823         (main): Support non-Posix systems with several different styles of
8824         slash characters in file names.
8826         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
8827         (main) [SET_BINARY]: Switch stdin into binary mode.
8829         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
8830         (main): Support file names with several possible slash-type
8831         characters, as given by DIR_SEPS[] in nonposix.h.
8832         (main) [__MSDOS__]: If renaming the temporary index file fails
8833         because it has more than one dot in its trunk, replace the dot
8834         with an underscore and try again.
8835         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
8836         Newline.
8837         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
8839         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
8840         (File::File): Open the input file in binary mode.  Strip CR
8841         characters from each CR-LF pair.
8842         (xbasename): Support file names with several possible slash-type
8843         characters, as given by DIR_SEPS[] in nonposix.h.
8845         * src/include/Makefile.sub (HDRS): Add nonposix.h.
8847         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
8848         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
8849         [!_POSIX_VERSION]: Define for traditional Unix systems.
8850         (real_output_file::real_output_file): Remove the MSVC-specific
8851         call to popen, use instead POPEN_WT, appropriately defined on
8852         nonposix.h.  #include nonposix.h.
8853         (real_output_file::~real_output_file): Remove the MSVC-specific
8854         call to pclose, a suitable macro is now defined on nonposix.h.
8855         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
8856         and WEXITSTATUS instead of assuming traditional Unix
8857         interpretation of the status returned by pclose.
8859         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
8860         call to popen, use POPEN_RT instead (appropriately defined on
8861         nonposix.h).  #include nonposix.h.
8862         (ps_bbox_request): Open the PostScript file in binary mode.
8863         Close the file after processing it.
8864         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
8865         nonposix.h.
8867         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
8868         A version of run_pipeline that doesn't use `fork'.
8869         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
8870         (system_shell_name, system_shell_dash_c)
8871         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
8872         the ugliness of testing DOS/Windows file names for equality, and
8873         support both stock shells and ports of Unix shells.
8875         * src/roff/groff/groff.cc: #include nonposix.h.
8876         (BSHELL): Definition moved to nonposix.h.
8877         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
8878         instead of a literal "-c".
8879         (xbasename): Support file names with several possible slash-type
8880         characters, as given by DIR_SEPS[] in nonposix.h.
8881         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
8882         of literal strings.
8884         * src/preproc/soelim/soelim.cc: #include nonposix.h.
8885         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
8887         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
8888         pic_tab.h.
8890         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
8892         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
8893         eqn_tab.h.
8895         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
8897         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
8898         P_tmpdir is defined, use it instead of the literal "/tmp".
8899         (remove_tmp_files, add_tmp_file): New functions.
8900         (xtmpfile): Record temporary files and register an atexit function
8901         to delete them explicitly, instead of relying on the OS to do
8902         that, which doesn't work on non-Unix systems.
8904         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
8905         (search_path::search_path): Use PATH_SEP instead of a literal
8906         colon.
8907         (search_path::command_line_dir): Ditto.
8908         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
8909         to support non-Posix systems.
8911         * src/libs/libbib/search.cc: #include nonposix.h.
8912         (search_list::add_file): Open the file in binary mode.
8914         * src/libs/libbib/linear.cc: #include nonposix.h.
8915         (file_buffer::load): Remove \r characters preceding \n from the
8916         loaded buffer.
8918         * src/libs/libbib/index.cc: #include nonposix.h.
8919         (make_index_search_item): Open index_filename in O_BINARY mode.
8920         (index_search_item_iterator::get_tag): Ditto.  Remove \r
8921         characters before \n characters.
8922         (index_search_item::check_files): Open files in binary mode.
8923         (index_search_item::munge_filename): Support DOS-style file names
8924         with backslashes and drive letters, use IS_ABSOLUTE.
8926         * src/devices/grops/ps.cc: #include nonposix.h.
8927         (main) [SET_BINARY]: Switch stdout to binary mode.
8929         * src/devices/grolj4/lj4.cc: #include nonposix.h.
8930         (main) [SET_BINARY]: Switch stdout to binary mode.
8932         * src/devices/grolbp/lbp.cc: #include nonposix.h
8933         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
8935         * src/devices/grodvi/dvi.cc: #include nonposix.h.
8936         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
8937         nonposix.h).
8938         (main) [SET_BINARY]: Switch stdout to binary mode.
8939         [_MSC_VER]: Remove an explicit call to _setmode.
8941         * src/include/nonposix.h: New file.
8943         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
8944         operation when building with DJGPP.
8945         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
8946         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
8947         ENVSETUP.
8949         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
8950         MS-DOS.
8951         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
8952         etc. can include a semi-colon on DOS/Windows.
8953         (depend.temp): Use depend1.temp instead of depend.temp1, to
8954         prevent files from overerwiting each other on 8+3 filesystems.
8956         * gendef.sh (t): Change definition to work with DOS/Windows.
8958         doc/groff.texinfo: Apart of some typo corrections, I also changed
8959         some index entris, to make them more non-ambiguous, and also put
8960         @ignore around some parts that are not yet written, to allow the
8961         Info output be readable.
8963 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
8965         Replaced specific checks for function declarations with a generic
8966         routine taken from GNU bfd.
8968         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
8969         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
8970         * configure.in: Use it.
8971         * src/devices/grolbp/lbp.cc, src/include/lib.h,
8972         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
8973         src/roff/groff/groff.cc: Use it.
8974         * Makefile.in, configure: Updated.
8976 2000-06-07  Paco Andrés Verdú  <pandres@dragonet.es>
8978         * src/devides/grolbp/lbp.h: Removed unused variables.
8980 2000-05-31  Keith Thompson  <kst@sdsc.edu>
8982         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
8983         strncasecmp().
8985 2000-05-31  Werner LEMBERG  <wl@gnu.org>
8987         * aclocal.m4 (GROFF_SRAND): New function to test the return value
8988         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
8989         * configure.in: Use it.
8990         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
8991         * configure, Makefile.in: Updated.
8993         * configure.in: Add test for strncasecmp().
8994         * src/include/lib.h: Use it.
8996 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
8998         * src/preproc/grn/Makefile.sub: Add MLIB.
9000 2000-05-29  Nix  <nix@esperi.demon.co.uk>
9002         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
9004 2000-05-29  Werner LEMBERG  <wl@gnu.org>
9006         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
9008         * PROBLEMS: Small update.
9010         * src/devices/grolbp/lbp.cc: Various small fixes.
9012 2000-05-28  Keith Thompson  <kst@sdsc.edu>
9014         * src/roff/nroff/nroff.sh: Fix main loop syntax.
9016         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
9018 2000-05-25  Werner LEMBERG  <wl@gnu.org>
9020         * man/roff.man: Removed unused macro.
9022 2000-05-24  Werner LEMBERG  <wl@gnu.org>
9024         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
9025         This is needed e.g. if you do
9026         `make distclean; ./configure; make dist'.
9028 Version 1.16 released
9029 =====================
9031 2000-05-23  Werner LEMBERG  <wl@gnu.org>
9033         Adding font CWI (constant width italic) to devdvi.
9035         * font/devdvi/CWI: New file.
9036         * font/devdvi/generate/Makefile: Add generating rule.
9037         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
9038         tmac/tmac.dvi: Use it.
9039         * NEWS: Announce it.
9041         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
9042         * font/devlj4/generate/Makefile: Cosmetic changes only.
9044         * man/groff.man: Removed most of the redundant description of
9045         special characters (which is in groff_char.man).  Added font
9046         translation CB->CR for devdvi.  Other minor fixes.
9048         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
9049         (registered) symbols.
9051 2000-05-22  Werner LEMBERG  <wl@gnu.org>
9053         * doc/Makefile: Added rule for creating info files.
9055         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
9056         AMS font metrics.
9057         * font/devdvi/generate/Makefile: Fixed dependencies.
9059         * font/devps/*: Regenerated.  Heavy changes for Bookman and
9060         NewCentury Schoolbook!
9061         * font/devps/generate/afmname: Will now run with GNU awk.
9062         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
9063         * font/devps/generate/Makefile: Cosmetic changes only.
9065 2000-05-21  Werner LEMBERG  <wl@gnu.org>
9067         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
9068         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
9069         `.SS' now produces a heading with a smaller size than `.SH'. 
9070         Completely formatted.
9071         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
9073         * man/groff.man: Improved table appearance.  Use of `eo' request
9074         to reduce number of doubled backslashes in macro definitions.
9075         Replacing `\e' with `\(rs'.  Other minor fixes.
9077         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
9078         to have correct line number.
9080         * INSTALL: Small improvement.
9082 2000-05-20  Bernd Warken  <bwarken@mayn.de>
9084         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
9085         WL).
9087 2000-05-19  Bernd Warken  <bwarken@mayn.de>
9089         * man/groff.man: Complete update (with a lot of corrections by WL).
9091 2000-05-18  Werner LEMBERG  <wl@gnu.org>
9093         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
9095         * font/*/*: Implement it.
9096         * man/groff_char.man, NEWS: Document it.
9098         * src/include/unix.h: Removed.  It isn't used.
9100         * doc/groff.texinfo: Slight improvements.
9102 2000-05-17  Werner LEMBERG  <wl@gnu.org>
9104         * README, win32-diffs: Small fixes and improvements.
9106 2000-05-16  Werner LEMBERG  <wl@gnu.org>
9108         * FDL: New file (the Free Documentation License version 1.1).
9110         * doc/groff.texinfo: Added many start-up values for gtroff.
9111         Some structural improvements of the source code.
9113 2000-05-15  Werner LEMBERG  <wl@gnu.org>
9115         * src/roff/troff/input.cc: Added small comment about troffrc-end.
9116         * src/roff/troff/troff.man: Added info about troffrc-end.
9118 2000-05-14  Werner LEMBERG  <wl@gnu.org>
9120         * Makefile.in (EXTRADIRS): Fix typos.
9121         (dist): Handle deletion of old .tar.gz file correctly.
9122         (DISTDIRS): Include all tty output devices.
9124         * doc/groff.texinfo: Adding more cross references; countless other
9125         fixes.
9127 2000-05-13  Werner LEMBERG  <wl@gnu.org>
9129         * MORE.STUFF: Added Robert Marks's utilities.
9131 2000-05-12  Werner LEMBERG  <wl@gnu.org>
9133         Added win32 port contributed by Blake McBride
9134         <blake@florida-software.com>.
9136         * README.WIN32, win32-diffs: New files.
9137         * NEWS: Updated.
9139         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
9140         (tmove, tmove2): Added parentheses to avoid compiler warnings.
9141         (change): Removed unused variables.
9143         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
9144         (savebounds): Changed return value from `int' to `void'.
9145         * src/preproc/grn/hdb.cc: Ditto.
9147         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
9148         final backslash in comment to avoid compiler warning.
9150         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
9152         * doc/groff.texinfo: More fixes.
9154 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
9156         * tmac/tmac.doc: Documentation fix.
9158 2000-05-11  Werner LEMBERG  <wl@gnu.org>
9160         * doc/groff.texinfo: Reading the source code shows up a lot of
9161         omissions and incorrect data...  More conversion to @Deffn macros.
9163 2000-05-10  Werner LEMBERG  <wl@gnu.org>
9165         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
9166         dependency.
9168         * src/roff/troff/request.h: Removing unused `no_break_flag'.
9170 2000-05-09  Werner LEMBERG  <wl@gnu.org>
9172         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
9173         improvements.
9175         * doc/groff.texinfo: Extended history section.  More conversion to
9176         @Deffn macros.  More .tr documentation.
9178 2000-05-07  Werner LEMBERG  <wl@gnu.org>
9180         * doc/groff.texinfo: Completed tab section.  Added info about
9181         fields.
9183 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
9185         * PROBLEMS: Describe configure script fix for OS/390 Unix.
9187 2000-05-05  Werner LEMBERG  <wl@gnu.org>
9189         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
9190         LaTeX 2e).
9191         * NEWS: Document it.
9193         * man/troff.man: Minor optical improvements.
9195 2000-05-03  Werner LEMBERG  <wl@gnu.org>
9197         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
9199         * font/*/*: Implement it.
9200         * man/groff_char.man, NEWS: Document it.
9202 2000-05-02  Werner LEMBERG  <wl@gnu.org>
9204         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
9205         expansion.
9206         * NEWS: Document the three new man pages.
9208         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
9209         * configure: Updated.
9211         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
9213 2000-05-01  Werner LEMBERG  <wl@gnu.org>
9215         Added grap support to grog.
9217         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
9218         * src/roff/grog/grog.man: Document it.
9220         * doc/groff.texinfo, NEWS: Add info about grap support.
9222         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
9223         (with slight fixes by me).
9225         * tmac/groff_tmac.man: New file documenting tmac mechanism.
9226         * tmac/Makefile.sub: Add groff_tmac.man.
9227         * man/roff.man: New file giving overview of roff system.
9228         * man/troff.man: A short reference of troff.
9229         * man/Makefile.sub: Add roff.man and troff.man.
9231 2000-04-30  Werner LEMBERG  <wl@gnu.org>
9233         Added grap support to groff.
9235         * src/roff/groff/groff.cc: Implement it.
9236         * src/roff/groff/groff.man: Document it.
9238         * src/devices/grotty/grotty.man: Add cp1047 device.
9239         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
9240         Ditto.
9241         * src/roff/groff/groff.man: Ditto.
9242         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
9243         * doc/groff.texinfo: Ditto.
9245         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
9246         for cp1047.
9248 2000-04-29  Werner LEMBERG  <wl@gnu.org>
9250         * man/groff_char.man: Add `pc' glyph.
9251         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
9252         * tmac/tmac.tty: Add `pc' glyph.
9253         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
9254         we use cp1047 output device.
9256         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
9257         there are still hardcoded latin1->unicode values in utf8's font
9258         definition files.
9259         * configure: Updated.
9260         * NEWS: Minor clarification.  Updated.
9262         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
9263         Unix.
9265 2000-04-28  Werner LEMBERG  <wl@gnu.org>
9267         Adding EBCDIC code page 1047.
9269         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
9270         font/devcp1047/DESC.proto: New files.
9272         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
9273         either ascii/latin1 or cp1047.
9274         * Makefile.in: Use it.
9275         * configure: Updated.
9277         Replacing and/or adding `md' (mathdot) glyph with `pc'
9278         (periodcentered) in all text fonts.
9280         * font/*/*: Change it.
9282 2000-04-27  Werner LEMBERG  <wl@gnu.org>
9284         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
9286         * configure.in: Add check for strings.h.
9287         * src/include/driver.h: Use HAVE_STRINGS_H.
9288         * src/devices/grolbp/lpb.cc: Remove string.h.
9290         * src/include/groff-getopt.h: New file.  It will be used instead of
9291         getopt.h (to be included in lib.h) to avoid endless problems with
9292         picky C++ compilers.
9293         * src/include/lib.h: Use groff-getopt.h.
9294         * src/include/Makefile.sub: Updated.
9296         * configure: Updated.
9297         * Makefile.in: Updated.
9299         * NEWS: Mention EBCDIC support.
9301 2000-04-26  Werner LEMBERG  <wl@gnu.org>
9303         * TODO: Some additions.
9305 2000-04-25  Werner LEMBERG  <wl@gnu.org>
9307         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
9308         of mso request.
9310 2000-04-23  Werner LEMBERG  <wl@gnu.org>
9312         * src/roff/troff/troff.man: Minor fixes.
9314 2000-04-22  Werner LEMBERG  <wl@gnu.org>
9316         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
9317         `.T' string register and the incompatible definition of the `.T'
9318         number register (compared to Unix troff).
9320         * man/groff_char.man: Add some missing characters.
9321         * font/devutf8/NOTES: Update.
9323 2000-04-21  Werner LEMBERG  <wl@gnu.org>
9325         * src/include/htmlindicate.h, src/include/lib.h,
9326         src/include/posix.h: Fix copyright.
9328         * src/include/Makefile.sub: Update.
9330 2000-04-20  Werner LEMBERG  <wl@gnu.org>
9332         * src/roff/troff/input.cc (input_char_description): Removing
9333         superfluous space char.
9335         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
9337         * doc/groff.texinfo: Document EBCDIC.
9339 2000-04-19  Werner LEMBERG  <wl@gnu.org>
9341         Introducing `shc' as the glyph name for the soft hyphen character.
9343         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
9344         font/devlatin1/R.proto: Use it.
9346         * NEWS: Updated.
9348 2000-04-18  Werner LEMBERG  <wl@gnu.org>
9350         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
9351         dependency on ASCII order.
9353 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
9355         * src/libs/libgroff/illegal.c: Added EBCDIC table.
9356         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
9358         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
9359         to increase portability.
9361 2000-04-15  Werner LEMBERG  <wl@gnu.org>
9363         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
9364         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
9365         the generic `\n' if under OS/390 Unix.
9367         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
9369         * configure: Regenerated.
9371 2000-04-14  Werner LEMBERG  <wl@gnu.org>
9373         * doc/groff.texinfo: More conversions to @Deffn.
9375 2000-04-12  Werner LEMBERG  <wl@gnu.org>
9377         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
9378         with `:'.
9380         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
9382 2000-04-10  Werner LEMBERG  <wl@gnu.org>
9384         * doc/groff.texinfo: More conversions to @Deffn.
9386 2000-04-08  Werner LEMBERG  <wl@gnu.org>
9388         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
9389         Updated to latest version (glibc 2.1.3).
9391 2000-04-07  Werner LEMBERG  <wl@gnu.org>
9393         * doc/Makefile (clean): Include more index files.
9394         Add rule texinfo->dvi.
9396 2000-04-05  Werner LEMBERG  <wl@gnu.org>
9398         * doc/groff.texinfo: Added new index `op' for operators.  More
9399         info on end of sentence characters.  More use of @Deffn.
9401 2000-03-30  Werner LEMBERG  <wl@gnu.org>
9403         * */*.man: Adding a note that a whitespace can be inserted between
9404         a command line option and its parameter -- we are using GNU getopt.
9406         * src/roff/groff/groff.man: Add example of `-m mandoc'.
9408 2000-03-28  Werner LEMBERG  <wl@gnu.org>
9410         Correct anachronism of calling the man macro file with `-man'
9411         instead of `-m man' etc.
9413         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
9414         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
9415         load tmac.<package>.
9417         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
9419         * NEWS: Updated.
9421         * doc/groff.texinfo: Updated.
9423         * tmac/groff_man.man: Copyright added.
9425 2000-03-27  Werner LEMBERG  <wl@gnu.org>
9427         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
9428         typeset the request resp. escape name with a tt font -- due to a
9429         bug in texinfo.tex it is necessary to use the `-e' switch with
9430         texi2dvi.
9432         Improving info about usage of groff units.
9434         Other minor fixes.
9436 2000-03-20  Werner LEMBERG  <wl@gnu.org>
9438         * doc/groff.texinfo: Added section about man macro package
9439         (I've basically taken groff_man.man).  Introducing new indices `ma'
9440         for macros/strings and `gl' for glyph names.  Other minor fixes.
9442         * tmac/groff_man.man: Fixed some typos.
9444 2000-03-19  Werner LEMBERG  <wl@gnu.org>
9446         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
9447         Other minor fixes.
9449         * doc/texinfo.tex: New file.
9451 2000-03-18  Werner LEMBERG  <wl@gnu.org>
9453         * doc/groff.texinfo: Improved section on number registers.  Other
9454         minor updates.
9456 2000-03-16  Werner LEMBERG  <wl@gnu.org>
9458         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
9459         synopsis.
9461         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
9462         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
9463         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
9464         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
9466         * src/preproc/grn/grn.man: Better synopsis; added copyright.
9468         * src/roff/grog/grog.man: Updated copyright date.
9470 2000-03-14  Francisco Andrés Verdú  <pandres@dragonet.es>
9472         * configure.in: Added test for strdup.
9474         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
9475         is available.
9477         Replaced dynamic allocation of arrays `[...]' with `new' operator.
9479         Other minor fixes.
9481 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
9483         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
9485 2000-03-11  Werner LEMBERG  <wl@gnu.org>
9487         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
9488         compilers silent.
9489         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
9490         * src/include/lib.h: Remove some spaces.
9492 2000-03-10  Werner LEMBERG  <wl@gnu.org>
9494         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
9495         initializers from arguments (some compilers don't like this).
9497 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
9499         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
9500         used by pic and eqn to tell grohtml where the graphic regions start
9501         and end.
9502         * src/libs/libgroff/Makefile.sub: Use it.
9503         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
9504         graphic_start() and graphic_end() from htmlindicate.cc.
9506 2000-03-09  Werner LEMBERG  <wl@gnu.org>
9508         * tmac/tmac.safer: Will now work correctly in compatibility mode.
9509         * tmac/groff_man.man: More fixes.
9511 2000-03-08  Werner LEMBERG  <wl@gnu.org>
9513         * doc/Makefile: Added texput.log to the `clean' target.
9514         * doc/groff.texinfo: Added info about delimiters for escapes.
9516 2000-03-08  Bernd Warken  <bwarken@mayn.de>
9518         * src/preproc/pic/pic.man: Add info on conversion of pic images to
9519         other graphic formats.
9521 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
9523         * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
9524         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
9525         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
9526         files.
9528 2000-03-07  Werner LEMBERG  <wl@gnu.org>
9530         * doc/groff.texinfo: Spelling fixes.
9532 2000-03-06  Werner LEMBERG  <wl@gnu.org>
9534         * tmac/groff_man.man: Completely revised to cover everything in
9535         tmac.an.
9537         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
9538         Other minor fixings.
9539         * src/roff/troff/env.cc (environment_copy): Improve error message and
9540         fix itoa->i_to_a.
9541         * src/roff/troff/TODO: Updated.
9543         * doc/Makefile: Bug fixes -- this is still provisional, though...
9545         * tmac/eqnrc: Small fixes.
9547 2000-03-05  Abramo Bagnara  <abramo@alsa-project.org>
9549         Adding a request `evc' to copy environments.
9551         * src/roff/troff/env.cc (environment::copy, environment_copy):
9552         Implement it.
9553         * src/roff/troff/env.h: Add prototype.
9555 2000-03-05  Francisco Andrés Verdú  <pandres@dragonet.es>
9557         Adding strsep() -- Solaris 8 doesn't have it.
9559         * configure.in: Test it.
9560         * src/devices/grolbp/lbp.cc: Add code.
9562 2000-03-05  Werner LEMBERG  <wl@gnu.org>
9564         * src/roff/troff/div.cc (macro_diversion::output,
9565         top_level_diversion::output): Fixing an incompatibility with
9566         original troff: \x'0' updates the .a register also.  Thanks to
9567         <Andries.Brouwer@cwi.nl> for pointing this out.
9568         * doc/groff.texinfo: Document it.
9570         * Makefile.in: Create Makefile.dep if necessary before calling the
9571         submake process to avoid warning about nonexistent file.
9573         * NEWS, PROJECTS: Updated.
9575 2000-03-04  Werner LEMBERG  <wl@gnu.org>
9577         * tmac/troffrc: Add tmac.lbp.
9579 2000-03-03  Francisco Andrés Verdú  <pandres@dragonet.es>
9581         * tmac/tmac.lbp: New file.
9582         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
9583         command.
9585 2000-03-03  Werner LEMBERG  <wl@gnu.org>
9587         * Makefile.in: Fixing $(subdir).
9589         * README, NEWS: Small fixes.
9591         * test-groff: Adding path to grolbp.
9593         * configure.in: The (new) file src/xditview/Imakefile.in will be
9594         also configured -- it is now possible to build gxditview in a
9595         directory different from $srcdir.
9597 2000-03-02  Blake McBride  <blake@florida-software.com>
9599         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
9601         * MORE.STUFF: Added website of bell labs and info about plot2dev.
9603 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
9605         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
9606         files.
9608 2000-02-29  Werner LEMBERG  <wl@gnu.org>
9610         Adding GNU getopt to the groff distribution.
9612         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
9613         New files.
9614         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
9615         * aclocal.a4: Remove GROFF_GETOPT function.
9616         * configure.in, Makefile.in, PROBLEMS: Update.
9617         * src/include/lib.h: Replace getopt tests with getopt.h.
9618         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
9620         * doc/groff.texinfo: Further checking/updating.  Adding more index
9621         entries.
9623         * man/groff_out.man: Fix nroff mode activation (for emacs).
9624         * man/groff_font.man: Add missing ligature.
9626 2000-02-28  Werner LEMBERG  <wl@gnu.org>
9628         * doc/groff.texinfo: Further checking/updating.  Adding more index
9629         entries.
9631         * src/devices/grolbp/grolbp.man: Added a comment line at the
9632         beginning of the file (similar to shell scripts) which indicates
9633         that `tbl' should be used as a preprocessor.
9635 2000-02-27  Blake McBride  <blake@florida-software.com>
9637         Adapting groff to MS Visual C++ 6.0 compiler (tested with
9638         Windows NT 4.0).  Uses _MSC_VER define where necessary.
9640         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
9641         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
9642         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
9643         src/include/lib.h, src/libs/libgroff/errarg.cc,
9644         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
9645         src/preproc/refer/label.y, src/preproc/refer/label.cc,
9646         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
9647         src/roff/troff/div.cc, src/roff/troff/env.cc,
9648         src/roff/troff/input.cc, src/roff/troff/node.cc,
9649         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
9650         if_to_a() to avoid name clashes.
9651         * src/include/posix.h: Don't use unistd.h.
9652         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
9653         clause for integrating non-Unix xtmpfile() code.
9654         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
9655         structure; use "rt" for popen() in pipe_source(); add getpid()
9656         dummy function.
9657         * src/roff/troff/node.cc: Use special versions of popen() in
9658         real_output_file() and pclose() in ~real_output_file().
9660 2000-02-27  Werner LEMBERG  <wl@gnu.org>
9662         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
9663         LBP-8 series laser printers).  This code has been contributed by
9664         Francisco Andrés Verdú <pandres@dragonet.es>.
9666         * src/devices/grolbp/*: The grolbp output device.
9667         * font/devlpb/*: The font description files.
9668         * Makefile.in: Add grolpb and devlbp subdirectories.
9670         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
9671         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
9672         typographic fixes.
9674         * doc/groff.texinfo: Further checking/updating.  Adding more index
9675         entries.
9677         * NEWS: Updated.
9679         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
9681         * man/groff_font.man: Adding info about obsolete DESC keywords.
9682         * src/devices/grolj4/grolj4.man: Documenting additional DESC
9683         keywords.
9685 2000-02-26  Werner LEMBERG  <wl@gnu.org>
9687         * src/preproc/grn/grn.man: Added info about the gremlin file format
9688         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
9690 2000-02-25  Werner LEMBERG  <wl@gnu.org>
9692         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
9693         friends to be non-integer.
9695         * src/preproc/grn/grn.man: Document it.
9697         * doc/groff.texinfo: Further checking/updating.  Adding more index
9698         entries.
9700 2000-02-24  Werner LEMBERG  <wl@gnu.org>
9702         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
9703         line thicknesses to be integer multiples of this value.
9705         * src/preproc/grn/grn.man: Commenting out the -s option -- the
9706         corresponding code doesn't work (yet).
9708         * doc/groff.texinfo: Further checking/updating.  Adding more index
9709         entries.
9711 2000-02-23  Werner LEMBERG  <wl@gnu.org>
9713         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
9714         specify line thickness instead of base units.  The new default
9715         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
9716         thick lines respectively.
9718         Removed unused variable `prevval'.
9720         * src/preproc/grn/grn.man: Updated.
9722 2000-02-22  Werner LEMBERG  <wl@gnu.org>
9724         * src/preproc/grn/main.cc: Slight formatting.
9726         * src/roff/groff/groff.man: Formatting fix.
9727         * src/preproc/grn/grn.man: Ditto.
9729         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
9731         * doc/groff.texinfo: Further checking/updating.
9733 2000-02-21  Werner LEMBERG  <wl@gnu.org>
9735         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
9737         * test-groff: Added grn subdir to path.
9739         * doc/groff.texinfo: Some restructing and other small improvements.
9741         * src/roff/groff/groff.cc (help): Fixed info string.
9743 2000-02-20  Werner LEMBERG  <wl@gnu.org>
9745         * doc/meref.me: Fix description of .GS request.
9747         * src/roff/troff/troff.man: Fixing typo.
9749         Adding the `grn' preprocessor for gremlin graphic files.
9751         * src/preproc/grn/*: This is the Berkeley distribution written by
9752         David Slattengren and Barry Roitblat, adapted to groff by Daniel
9753         Senderowicz and Werner Lemberg.
9755         * doc/grnexampl.{me,g}: A sample for grn.
9757         * Makefile.in: Added subdirectory entry for grn.
9759         * src/roff/groff/groff.cc: Added support for grn.  It can be now
9760         called with the switch `-g'.
9762         * src/roff/groff/groff.man: Updated.
9764         * src/roff/grog/grog.{man,pl,sh}: Updated.
9766         * NEWS: Updated.
9768 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
9770         * src/include/lib.h: Added xtmptemplate and made xtmpfile
9771         parametrically polymorphic.
9773         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
9774         and the alterations to xtmpfile.
9775         xtmpfile can be requested to return the filename created
9776         and asked not to unlink the temp file.  The default behaviour
9777         if parameters are absent is exactly the same as before.
9779 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
9781         A new request `length' is available which returns the length of a
9782         string in a number register:
9784         * src/roff/troff/input.cc (length_macro): Implement it.
9785         * src/roff/troff/input.cc (init_input_requests): Register it.
9787 2000-02-11  Werner LEMBERG  <wl@gnu.org>
9789         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
9790         of the `substring' request.
9792         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
9793         request.
9795         * src/roff/troff/TODO, NEWS: Updated.
9797 2000-02-09  Werner LEMBERG  <wl@gnu.org>
9799         * src/roff/groff/groff.man: Added an example.
9801 2000-02-06  Werner LEMBERG  <wl@gnu.org>
9803         I've considerably modified the directory structure of the
9804         distribution to get a more vertical layout.  For example, the number
9805         of top level directories has been reduced from 42 to 6.
9807         As a consequence, many changes, especially to the makefiles, were
9808         necessary:
9810         * The makefile variables `top_builddir' and `top_srcdir' have been
9811         introduced.  Virtually all relative paths have been replaced with
9812         absolute ones using these two variables.
9814         * Dependencies (in the files `Makefile.dep') are no longer part of
9815         the distribution.  Instead, they are created during a `make install'
9816         in the build directory.
9818         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
9819         make `top_srcdir' and `top_builddir' absolute.
9821         Some other changes:
9823         * Man pages now depend on the files `VERSION' and `REVISION'.
9825         * The added shell script `mkinstalldirs' will replace `mkdir' in
9826         almost all cases.
9828         * VERSION: Version number increased to 1.16.
9830 2000-02-04  Werner LEMBERG  <wl@gnu.org>
9832         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
9834         * Makefile.in: Removed $(tmac_m) since it is no longer needed
9835         (after an update of the mm stuff).
9837         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
9839 2000-02-03  Werner LEMBERG  <wl@gnu.org>
9841         The .psbb request will now also accept Mac PS images (i.e. using LF
9842         as the EOL character).
9844         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
9845         (with slight modifications).
9846         * troff/input.cc (do_ps_file): Use it.
9848         * test-groff: Add grohtml and grolj4 output devices to PATH.
9850 2000-01-30  Werner LEMBERG  <wl@gnu.org>
9852         * NEWS, MORE.STUFF: Updated.
9854 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
9856         Add the `srand' command to pic.
9858         * pic/lex.cc, pic/pic.y: Implement it.
9859         * pic/pic.man: Document it.
9860         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
9862 2000-01-30  Werner LEMBERG  <wl@gnu.org>
9864         Add a new request `.psbb'.  This does exactly what the external
9865         program psbb did.  It scans a PostScript image file for a
9866         %%BoundingBox comment and extracts the bounding box values (in
9867         PostScript units) which are then stored in the four new (read-only)
9868         number registers `llx', `lly', `urx', and `ury'.
9870         This will allow the usage of the .PSPIC macro without worrying
9871         about unsafe behaviour of groff, i.e., it will work without the
9872         `-U' switch of groff.
9874         * troff/input.cc: Implement it.
9875         * tmac/tmac.pspic: Use it.
9876         * troff/troff.man, grops/grops.man, NEWS: Document it.
9877         * psbb/*, Makefile.in: Remove it since it is no longer needed.
9879         This is bloody C code simply adapted from psbb.c!  Any improvements
9880         welcome.
9882 2000-01-29  Werner LEMBERG  <wl@gnu.org>
9884         * man/groff_font.man: Minor clarifications.
9886         * NEWS: Updated.
9888 2000-01-28  Werner LEMBERG  <wl@gnu.org>
9890         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
9892 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
9894         * man/groff_font.man: Brought up to date regarding tcommand
9895         extensions.
9896         * libgroff/font.cc: Handle everything after `--' as a comment
9897         in the font files.
9898         * devps/*: Added comment delimiter inside devps font files.
9900 2000-01-28  Werner LEMBERG  <wl@gnu.org>
9902         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
9903         \fC...\fP (which now works as expected).
9905         * troff/troff.man: Fix typo.
9907 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
9909         Completed the pass_filenames implementation in troff.
9911         * libdriver/input.cc: Will read the new `F' tcommand.
9912         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
9913         * troff/input.cc: Use it.
9915 2000-01-26  Werner LEMBERG  <wl@gnu.org>
9917         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
9918         font will now be updated even if an invalid font is selected.
9920 2000-01-24  Werner LEMBERG  <wl@gnu.org>
9922         * doc/homepage.ms: Updated for new tmac.arkup.
9924         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
9926         * tmac/tmac.arkup: Cleanup.
9928         Added `\&' to .HTML macro to `leave vertical mode', so to say.
9930         Removed obsolete .LINK macro completely.
9932         The macros .URL, .FTP, and .MAILTO now accept a third argument which
9933         will be immediately appended to the second argument (to be used with
9934         punctuation, for example).
9936         Disabled .CDFTP macro temporarily for security reasons.
9938         * tmac/groff_markup.man: Complete revision for latest changes in
9939         tmac.arkup -- note that it does not yet format correctly with
9940         grohtml :-(
9942 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
9944         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
9945         * devutf8/R.proto: Add mappings for wp, lh, rh.
9946         * devutf8/NOTES: Updated.
9948 2000-01-23  Werner LEMBERG  <wl@gnu.org>
9950         * doc/groff.texinfo: Updated version/copyright info.
9952 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
9954         Added support for two new directives in device descriptions:
9955         `pass_filenames' (to pass the input file name to the output device)
9956         and `use_charnames_in_special' (to support e.g. accented characters
9957         in the `X' request).
9959         * include/font.h, troff/charinfo.h: Declare it.
9961         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
9963         * devhtml/DESC: Use it.
9965         * troff/input.cc: New function encoded_char.
9967         * troff/token.h: Add test for `specialness'.
9969 2000-01-21  Werner LEMBERG  <wl@gnu.org>
9971         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
9972         mistake from the list of files to be installed.
9974 2000-01-18  Werner LEMBERG  <wl@gnu.org>
9976         * README: Added info how to apply patches.
9978 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
9980         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
9982 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
9984         * troff/input.cc: Add support for troffrc-end.
9986         * tbl/main.cc: Altered to issue table-start and table-end special
9987         characters if using the html device.
9989         * devhtml/*: Modified font files to incorporate html encoding of
9990         characters.
9992         * tmac/groff_markup.man: New file documenting tmac.arkup.
9994         * tmac/troffrc-end: New file.  This is invoked after all user
9995         specified macros.  Currently used by the html device to include
9996         tmac.html.  Thus no need for users to specify -mhtml anymore.
9998         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
9999         (MAN7): Add groff_markup.man.
10001         * tmac/tmac.an, tmac/tmac.html: Small html updates.
10003         * tmac/troffrc: tmac.arkup will now be called for the html device.
10005         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
10006         extra device specific information about fonts.
10008         * doc/homepage.ms: New file.  It is an example how an HTML home page
10009         could look like with grohtml.
10011         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
10013 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
10015         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
10016         of Im, Re.
10018         * devutf8/NOTES: Updated.
10020 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
10022         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
10023         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
10024         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
10025         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
10026         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
10027         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
10028         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
10029         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
10030         warnings.
10032         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
10034 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
10036         grolj4: Paper size will be searched case-insensitively.
10038         * include/lib.h: Add check for strcasecmp().
10039         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
10040         * configure.in: Check for strcasecmp().
10042 2000-01-11  Werner LEMBERG  <wl@gnu.org>
10044         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
10045         `REVISION'.
10047 2000-01-10  Werner LEMBERG  <wl@gnu.org>
10049         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
10050         revision scheme.
10052         Add a new read-only register, `.Y', which contains the groff
10053         revision.
10055         * troff/input.cc (init_input_requests): Define it.
10056         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
10057         * doc/groff.texinfo, troff/troff.man: Document it.
10059         * libgroff/Makefile.sub (version.cc): Add definition of
10060         `Version_string[]', consisting of `<major>.<minor>.<revision>'
10061         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
10062         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
10063         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
10064         troff/input.cc, pfbtops/pfbtops.c: Use it.
10066 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
10068         Add a revision scheme to the groff package.
10070         * REVISION: New file.
10071         * libgroff/Makefile.sub (version.cc): Use it to define
10072         `revision_string[]'.
10073         * grops/psrm.cc: Use revision_string (converted to an unsigned
10074         integer) in constructor of resource_manager.
10076 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
10078         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
10079         files.
10080         * Makefile.in (DEVDIRS): Add devutf8.
10081         * grotty/tty.cc: Include device.h.
10082         (glyph): Change type of `code' to `unsigned int'.
10083         (tty_printer): New field is_utf8.  Constructor takes device argument.
10084         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
10085         (tty_printer::add_char): Change type of first arg to `unsigned int'.
10086         (tty_printer::put_char): New function.
10087         (tty_printer::end_page): Use put_char() instead of ::putchar().
10088         (make_printer): Pass device to tty_printer constructor.
10089         * nroff.sh: Determine default device by calling 'locale'.  As a
10090         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
10091         Recognize UTF-8 locales.
10092         * tmac/eqnrc: Recognize utf8 like latin1.
10093         * tmac/troffrc: Device utf8 needs tmac.tty.
10095 2000-01-07  Werner LEMBERG  <wl@gnu.org>
10097         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
10099 2000-01-07  Paul Eggert  <eggert@twinsun.com>
10101         Add a new predefined writeable number register, `year',
10102         which contains the current year.
10104         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
10105         * tmac/tmac.s: Use it.
10106         * troff/input.cc (init_registers): Initialize it.
10108 2000-01-06  Werner LEMBERG  <wl@gnu.org>
10110         * PROBLEMS: Fixed typo.
10112 2000-01-04  Paul Eggert  <eggert@twinsun.com>
10114         * PROBLEMS: Add Y2k advice for the yr number register.
10116 2000-01-03  Paul Eggert  <eggert@twinsun.com>
10118         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
10120 2000-01-02  Werner LEMBERG  <wl@gnu.org>
10122         * tmac/tmac.arkup: Slight modification of macros to provide better
10123         appearance for non-HTML formats.
10125 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
10127         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
10128         does not automatically translate to malloc(n) on all OSes
10129         (e.g., SunOS) so do it explicitly.  Also, check the returned
10130         value.
10132 2000-01-01  Werner LEMBERG  <wl@gnu.org>
10134         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
10136         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
10137         expects this variable
10139 2000-01-01  Gaius Mulley  <gaius@glam.ac.uk>
10141         * doc/Makefile: Added instructions to create HTML and text
10142         versions of some files.
10144 1999-12-31  Werner LEMBERG  <wl@gnu.org>
10146         * Updated INSTALL.gen.
10148         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
10149         better resp. correctly with non-HTML devices.
10151 Version 1.15 released
10152 =====================
10154 1999-12-28  Werner LEMBERG  <wl@gnu.org>
10156         * NEWS, VERSION: Changed to 1.15
10158 1999-12-27  Paul Eggert  <eggert@twinsun.com>
10160         * nroff/nroff.man: -S is safer, not safe.
10162         * groff/groff.cc (main): Use `safer', not `safe', in variable
10163         names.  This does not change the behavior.
10165         * troff/input.cc (main): Likewise.
10167         * nroff/nroff.sh: Likewise.
10169         * troff/input.cc (prepend_string): New function.
10170         (main): Prepend -msafer, so that we check macro libraries for
10171         safety.
10173         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
10175 Version 1.14 released
10176 =====================
10178 1999-12-26  Werner LEMBERG  <wl@gnu.org>
10180         * NEWS, VERSION: Changed to 1.14.
10182 1999-12-24  Werner LEMBERG  <wl@gnu.org>
10184         * refer/refer.cc: Fixing the last fix.
10186 Version 1.13 released
10187 =====================
10189 1999-12-23  Werner LEMBERG  <wl@gnu.org>
10191         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
10192         number disappear.
10194         * NEWS: Updated.
10196         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
10198         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
10199         document conventions, the version number must be a real.
10201 Version 1.12.1 released
10202 =======================
10204 1999-12-22  Werner LEMBERG  <wl@gnu.org>
10206         * VERSION: Changed to 1.12.1.
10208 1999-12-22  Alan Rooks  <arooks@istar.ca>
10210         * refer/refer.cc (do_file): Slight modification to satisfy the
10211         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
10212         UnixWare 7.1.
10214 1999-12-20  Werner LEMBERG  <wl@gnu.org>
10216         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
10217         notices.
10219         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
10220         list of unsafe requests.
10222         * pic/pic.man: Fixed a typo.
10224         * man/groff_out.man: Fixed a typo.
10226 1999-12-18  Werner LEMBERG  <wl@gnu.org>
10228         * Makefile.in: Doc fixes.
10230 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
10232         * groff/groff.cc: Missing `U' option added to getopt().
10234         * troff/troff.man: Missing `U' option added to synopsis.
10236 Version 1.12 released
10237 =====================
10239 1999-12-14  Werner LEMBERG  <wl@gnu.org>
10241         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
10242         to the synopsis.
10244         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
10245         with the more appropriate terms `safer' and `unsafe'.
10247         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
10248         sys_nerr and sys_errlist[].
10250         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
10252         * pic/pic.y, pic/pic.cc: Added check for fmod().
10254 1999-12-13  Werner LEMBERG  <wl@gnu.org>
10256         * VERSION: Changed to 1.12.
10258         Here some patches from various sources; most of them taken from
10259         the Debian distribution.
10261         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
10262         tmac/Makefile.sub: New files copied directly from the NetBSD
10263         distribution.  Probably, some additional adaptation later on is
10264         necessary...
10266         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
10267         of unsafe requests.
10269         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
10270         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
10271         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
10272         (`-S') is now the default.
10274         * README, NEWS: Updated.
10276 1999-12-09  Werner LEMBERG  <wl@gnu.org>
10278         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
10280         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
10282 1999-12-06  Werner LEMBERG  <wl@gnu.org>
10284         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
10285         grief than relief today.  Additionally, it is against the GNU
10286         coding standards.
10288         * configure: Recreated.
10290 1999-12-05  Werner LEMBERG  <wl@gnu.org>
10292         * configure.in: Added GROFF_LIBM.
10294         * configure: Recreated.
10296         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
10297         necessary.
10299         * Makefile.in: Added definition of $(LIBM).
10301         * Makefile.comm (LIBM): Removed.
10303         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
10305 1999-12-03  Gaius Mulley  <gaius@glam.ac.uk>
10307         * doc/Makefile: Added rule for generation pic.html.
10309         (clean): Files produced by grohtml will be removed also.
10311         * doc/pic.ms: Small fix.
10313         * tmac/tmac.html: Fixed suppression of headers.
10315 1999-11-16  Gaius Mulley  <gaius@glam.ac.uk>
10317         * tmac/tmac.html: Fixing horizontal arrows.
10319         Turning off hyphenation.
10321         * tmac/tmac.an: Improved support for grohtml; better indentation,
10322         no footers/headers.
10324 1999-10-31  Gaius Mulley  <gaius@glam.ac.uk>
10326         * tmac/tmac.arkup: Added CDFTP macro
10328         * tmac/tmac.html: All headers are turned off for ms, me, and mm
10329         macros.
10331         * tmac/troffrc: Some additions for HTML stuff.
10333 1999-10-06  Gaius Mulley  <gaius@glam.ac.uk>
10335         * tmac/tmac.html: Small changes.
10337 1999-09-26  Werner LEMBERG  <wl@gnu.org>
10339         * doc/groff.texinfo: Minor fixes.
10341 1999-09-26  Gaius Mulley  <gaius@glam.ac.uk>
10343         * devhtml/TR: Changed spacewidth to 3.
10345         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
10347         * tmac/tmac.html: Moved markup macros to tmap.arkup.
10349         * tmac/tmac.arkup: New file.
10351         * grohtml/ChangeLog: New file.
10353 1999-09-16  Werner LEMBERG  <wl@gnu.org>
10355         * doc/groff.texinfo (Common Features): Added Copying chapter.
10356         Changed format to @smallbook.
10358 1999-09-15  Werner LEMBERG  <wl@gnu.org>
10360         * NEWS: Added info about groff.texinfo.
10362         * doc/groff.texinfo: Will now compile (using texi2dvi) without
10363         warning messages.
10365 1999-09-14  Werner LEMBERG  <wl@gnu.org>
10367         * groff/groff.man: More updates.
10369 1999-09-13  Werner LEMBERG  <wl@gnu.org>
10371         * doc/groff.texinfo: New file.  This manual is still very
10372         rudimentary.  It has been originally contributed by Trent
10373         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
10374         additions by me.
10376         * INSTALL: Added information about the `doc' subdir
10378         * troff/troff.man: Minor fixes.
10380         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
10381         reordered options.
10383         * troff/input.cc (usage): Added missing `-ffam' to usage message.
10385         * Makefile.in (dist): groff-$(version).tar.gz must be removed
10386         also, otherwise it is included itself in another call of `make
10387         dist'.
10389         * groff/groff.cc (synopsis): Removed superfluous space.
10391         * PROJECTS, PROBLEMS, NEWS: Updated.
10393         * VERSION: Updated to 1.12beta.
10395         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
10397         * README: Updated: Included documentation about CVS repository,
10398         mailing lists, and daily snapshots.
10400         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
10402 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
10404         * tmac/tmac.an: If the tag didn't fit into the space that the
10405         macro `TP' specifies, the rest of the tag went into the space for
10406         the next line.
10408 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
10410         * grolj4/lj4.cc: Added duplex printing (option `-d').
10412         * grolj4/grolj4.man: Document duplex printing.
10414 1999-09-12  Werner LEMBERG  <wl@gnu.org>
10416         * doc/Makefile (pic.ps): Fixed rule which caused problems with
10417         non-GNUish sed programs.
10419         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
10420         definition.
10422         * configure.in (LIBS): Added `-lc'
10424         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
10426         * pic/tex.cc (solid_arc): Casting M_PI to double.
10428         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
10430         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
10431         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
10432         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
10434         * groff/groff_man.man: New file.  This manual page was originally
10435         written for the Debian GNU/Linux system by Susan G. Kleinmann
10436         <sgk@debian.org>.
10438         * eqn/list.cc (list_box::compute_metrics,
10439         list_box::compute_sublist_width): Removed variable declaration to
10440         avoid shadowing warnings.
10442         * grops/psrm.cc (resource_manager::process_file): Ditto.
10444         * tfmtodit/tfmtodit.cc (main): Ditto.
10446         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
10447         to avoid shadowing warnings.
10449         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
10450         shadowing loop variable.
10452         * groff/groff.man, troff/troff.man: Added doc about grohtml.
10454 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
10456         New grohtml frontend to convert groff input to html.
10458         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
10460         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
10462         * tmac/eqnrc: Added html device.
10464         * tmac/tmac.html: New file.
10466         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
10467         (troff_output::start_picture, troff_output::finish_picture),
10468         tbl/main.cc (process_input_file):
10469         Surrounded output with `graphics_start' and `graphics_end' so that
10470         the html driver can identify non-text portions.
10472         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
10473         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
10474         grotty/tty.ps (tty_printer::set_char): Additional parameter
10475         `name'.
10477         * include/printer.h: Class printer: New function
10478         set_char_and_width; new variables (is_char_named, is_named_set,
10479         named_command, named_char_s, named_char_n) to hold information
10480         about named characters -- needed by the html driver.
10482         * libdriver/printer.cc (printer::set_ascii_char,
10483         printer::set_special_char): Use set_char_and_width.
10485         * devhtml/*: New device files for html driver.
10487         * grohtml/*: New driver grohtml.
10489 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
10491         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
10492         default strings.
10494 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
10496         * libgroff/string.cc (search): Small fix to test against NULL
10497         pointer.
10499 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
10501         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
10502         \b'abc') were stacked in reverse order when processed in a
10503         diversion.
10505         * troff/node.h: Added `*last' to struct `node' to make the above
10506         fix work.
10508         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
10509         The default scale for the 'f' and 't' graphics functions were 'm'
10510         rather than 'u' (i.e., no scaling).
10512 1999-09-11  Peter Miller  <peterm@jna.com.au>
10514         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
10515         do_file), soelim/soelim.man: Added `-I file' option to soelim,
10516         defining include paths.
10518         * soelim/soelim.cc (include_path_append): New function.
10520 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
10522         * tbl/main.cc (process_options): Unix (at least Documenter's
10523         Workbench) tbl allows arbitrary non-alpha characters between
10524         options.
10526 1999-09-11  Paul Eggert  <eggert@twinsun.com>
10528         Y2k fixes.  Don't assume that the current year precedes 2000.
10530         * doc/meref.me: Add \n(y2, \n(y4.
10532         * tmac/doc-common (Yr): New number register.
10533         (Dd): Don't assume current year precedes 2000.
10535         * tmac/tmac.e (td): Likewise.
10536         (y2, y4): New number registers.
10538         * pic/pic.man: Update reference for pic paper to May, 1991
10539         version.
10541 1999-09-11  Werner LEMBERG  <wl@gnu.org>
10543         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
10544         Removed quotation marks which prevented correct expansion of
10545         $(tmac_wrap).
10547         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
10549 1999-09-10  Werner LEMBERG  <wl@gnu.org>
10551         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
10552         `config.cache'.
10554         * Removed configure.old.
10556 1999-08-31  Werner LEMBERG  <wl@gnu.org>
10558         * VERSION: Updated to 1.11.1
10560 1999-05-27  Werner LEMBERG  <wl@gnu.org>
10562         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
10564         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
10565         added quotations around $(tmac_wrap) to avoid syntax error if
10566         variable is empty.
10568         * configure: Newly generated using autoconf 2.13.
10570         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
10572 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
10574         * README, PROJECTS, NEWS, INSTALL, VERSION, 
10575         doc/Makefile. doc/pic.ms, groff/groff.man:
10576         Prepare for 1.11 release.  No code changes.
10577         Documentation for pic added (doc/pic.ms).
10579 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
10581         * Version 1.10 released.
10583 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
10585         * afmtodit/afmtodit.pl: Avoid comment on first line.
10587 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
10589         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
10590         * configure.in: Call it.
10592         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
10593         (distfiles): Doesn't depend on config.log or config.cache.
10595 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
10597         * grog/grog.sh: Use print "" rather than print in END rule.
10599 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
10601         * tbl/main.cc (process_data): Don't give error for excess data
10602         entries that are comments.
10604 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
10606         * tbl/main.cc (process_data): Fix case where new for-scope rules
10607         silently change meaning of code.
10609 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
10611         * troff/env.cc (hyphenate): Loop over all consecutive sequences
10612         of non-zero hyphenation codes.
10614 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
10616         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
10618 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
10620         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
10622 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
10624         * tmac/tmac.andoc: Make it work in compatibility mode.
10626         * refer/token.h (token_info::is_range_sep): New function.
10627         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
10628         * refer/ref.cc (reference::output): More sophisticated check for
10629         multiple pages.
10631         * devps/prologue.ps (MANUAL): New procedure.
10632         * grops/ps.cc (main): New -m option.
10633         (usage): Include -m.
10634         (ps_printer::~ps_printer): Implement -m.
10636         * aclocal.m4 (GROFF_G): New macro.
10637         * configure.in: Call it.
10638         * Makefile.in (g): Provided by configure.
10640         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
10642         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
10643         translations.
10645         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
10646         (tmac_m, tmac_s): Deleted.
10647         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
10648         tmac_s_prefix): New variables.
10649         (MDEFINES): Change accordingly.
10650         * Makefile.comm (.man.n): Use new TMAC_* variables.
10651         * configure.in (GROFF_TMAC): Call.
10652         * aclocal.m4 (GROFF_TMAC): Define.
10653         * tmac/Makefile.sub (stamp_wrap): New target.
10654         (install_data, uninstall_sub): Handle macro wrapping.
10656 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
10658         * tbl/main.cc (main): Ignore -T option.
10660 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
10662         * devlj4/generate/special.map: Add definition of \(nb.
10664         * tmac/tmac.dvi: Add definition of \(nb.
10666         * troff/dictionary.c (dictionary::dictionary): association::v gets
10667         initialized by association::association.
10669         * tmac/Makefile.sub: Avoid using temporary files when installing.
10671         * troff/env.cc (environment::set_font): Make bad font number a
10672         warning.
10674         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
10676         * Makefile.in (datadir): Use share rather than lib.
10678         * groff/groff.cc (basename): Rename to xbasename.
10680 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
10682         * Makefile (CCLIBS): Don't use.
10683         * Makefile.ccpg: Likewise.
10685         * acgroff.m4: Rename to...
10686         * aclocal.m4: Modify extensively for autoconf 2.
10687         * configure.in: Likewise.
10688         * Makefile.in: Likewise.
10690         * groff/pipeline.c (const): Declare as empty if __STDC__ not
10691         defined.
10692         (xstrsignal): Check for definition of NSIG. Conditionalize
10693         on SYS_SIGLIST_DECLARED.  Make return type const.
10695 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
10697         * troff/input.cc (interpolate_macro): Rephrase missing space
10698         warning.
10700 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
10702         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
10703         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
10704         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
10705         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
10706         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
10707         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
10708         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
10709         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
10710         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
10711         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
10712         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
10713         Fix 'for' scoping.
10715 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
10717         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
10718         string_iterator.
10719         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
10720         file.
10721         (macro_iterator::macro_iterator): Add additional argument.
10723 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
10725         * troff/div.cc (vertical_size::vertical_size): In place of integer
10726         specifying line spacing use cunits specifying post vertical
10727         space.
10728         (macro_diversion::output, top_level_diversion::output): Likewise.
10729         * troff/div.h: Change declarations accordingly.
10730         * troff/env.cc (pending_output_line): Replace ls field by post_vs
10731         field.
10732         (pending_output_line::pending_output_line,
10733         pending_output_line::output, environment::output,
10734         environment::output_line, environment::output_title,
10735         environment::hyphenate_line):  In place of
10736         integer specifying line spacing use cunits specifying post vertical
10737         space.
10738         (environment::environment): Add post_vertical_spacing and
10739         prev_post_vertical_spacing arguments.
10740         (environment::get_post_vertical_spacing): New function.
10741         (environment::total_post_vertical_spacing): New function.
10742         (environment::post_vertical_spacing): New function.
10743         (init_env_requests): Initialize pvs request and .pvs register.
10744         * troff/env.h: Change declarations.
10746 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
10748         * tmac/tmac.pspic: Immediately remove the temporary file.
10750 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
10752         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
10753         height is specified.
10755 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
10757         * tbl/table.c (struct vertical rule, class table_entry): Use int
10758         not short for start_row and end_row.
10760 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
10762         * troff/input.cc (trapping_blank_line, blank_line_macro): New
10763         functions.
10764         (diverted_space_node::reread, process_input_stack): Call
10765         trapping_blank_line() rather than blank_line().
10766         (init_input_requests): Bind "blm" to blank_line_macro().
10768         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
10770 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
10772         * troff/env.cc (environment::possibly_break_line): Require that
10773         width total excluding width of final space node be greater than
10774         the target text length.
10776 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
10778         * troff/node.cc (kern_pair_node::vertical_extent): New function.
10780 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
10782         * troff/node.cc (charinfo_node): New class.
10783         (glyph_node, composite_node): Derive from charinfo_node.  Change
10784         member functions accordingly.
10786 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
10788         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
10790 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
10792         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
10794         * devps/generate/textmap (notsubset): Add.
10796         * tmac/tmac.a4: New file.
10798 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
10800         * pic/main.cc (had_parse_error): New variable.
10801         (do_picture, do_whole_file): Set had_parse_error if yyparse()
10802         returns non-zero.
10803         (main): Return 1 if had_parse_error is true.
10805 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
10807         * grolj4/lj4.cc (main): Avoid use of strtoul.
10809 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
10811         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
10812         iso_8859_1 or $LESSCHARSET is latin1.
10814 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
10816         * hpftodit: New directory.
10817         * Makefile.in (CCPROGDIRS): Add hpftodit.
10818         * devlj4/generate: New directory.
10820 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
10822         * configure.in: Don't use AC_VFORK.
10823         * groff/pipeline.c (run_pipeline): Use fork() always.
10825 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
10827         * grops/ps.cc (main): Use %1 not %s in error message for -w.
10829         * Makefile.in (CCPROGDIRS): Add grolj4.
10830         (DEVDIRS): Add devlj4.
10831         * grolj4, devlj4: New directories.
10832         * tmac/troffrc: Handle lj4.
10833         * tmac/tmac.lj4: New file.
10835 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
10837         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
10839 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
10841         * troff/input.cc (do_if_request): At end of second string, switch
10842         environments before getting next token.
10844 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
10846         * devps/psstrip.sed: Split rule that strips whitespace on either
10847         side of delimiters.
10849 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
10851         * troff/node.h (font_family::make_definition): Add return value to
10852         declaration.  * troff/symbol.h (symbol::operator==,
10853         symbol::operator!=): Likewise.
10855 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
10857         * groff/groff.cc (main, help, synopsis): Handle -S.
10858         (possible_command::insert_arg): New function.
10860         * tmac/tmac.safer: New file.
10861         * tmac/msafer.man: New file.
10862         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
10864 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
10866         * pic/pic.h, pic/main.cc (safer_flag): New variable.
10867         * pic/pic.y (placeless_element): Avoid unsafe operations if
10868         `safer_flag' is set.
10869         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
10871 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
10873         * eqn/lex.cc (get_token): Put call to add_context() in block to
10874         work around Sun C++ 4.0 bug.
10876         * include/stringclass.h (operator +): Use ?: instead of `if' to
10877         work around Sun C++ 4.0 bug.
10879 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
10881         * tbl/main.cc (process_format): Accept - as a synonym for the _
10882         key letter.
10884         * libbib/index.cc (minus_one): Don't declare as const.
10886 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
10888         * troff/input.cc (get_char_for_escape_name): Push back a newline.
10890 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
10892         * troff/input.cc (write_macro_request): New function.
10893         (init_input_requests): Bind write_macro_request to writem.
10895 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
10897         * tmac/tmac.s (@EN): Turn filling back on even if there was no
10898         equation.
10900         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
10902         * tmac/tmac.s (@TS): Renamed from TS.
10903         (TS): Call LP then TS again.
10904         (cov*ab-init): Alias @TS to TS.
10906         * tmac/tmac.s: Allow QP or RS to initialize.
10908         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
10909         Move initializations of PS and LL here.
10910         (par@init): Don't initialize HY.  Avoid changing environment 0.
10911         (par*env-init): Don't all par@reset.
10913 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
10915         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
10917 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
10919         * Makefile.in (MDEFINES): Add LDFLAGS.
10920         (LDFLAGS): Add definition line.
10922 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
10924         * troff/input.cc (get_optional_char): Split off error check into...
10925         (check_missing_character): New function.
10926         * troff/token.h: Declare it.
10927         * troff/env.cc (margin_character): Don't call get_optional_char.
10928         Only call tok.next() after making the node.
10930         * include/lib.h (getopt): Make 2nd argument char *const *.
10932 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
10934         * nroff/conftest.sh: Deleted.
10936 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
10938         * pic/make-dos-dist: Deleted.
10940 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
10942         * devps/psstrip.sed: Strip comments before stripping trailing
10943         white space.
10945 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
10947         * Version 1.09 released.
10949 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
10951         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
10953 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
10955         * libgroff/font.cc (font::load_desc): Fix typo in error message.
10957 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
10959         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
10960         about returning without a value.
10962         * troff/charinfo.h (charinfo::get_special_translation): Cast
10963         TRANSLATE_NONE to int.
10965         * refer/token.cc (lookup_token, store_token): Remove bogus loop
10966         test.  Fix test so that it works with n unsigned.
10968         * pic/pic.y (defaults_table): Fully bracket initializer.
10969         * pic/lex.cc (lookup_keyword): Likewise.
10970         * eqn/lex.cc (token_table, def_table): Likewise.
10971         * eqn/box.cc (param_table): Likewise.
10972         * troff/input.cc (warning_table): Likewise.
10973         * libgroff/font.cc (table): Likewise.
10974         * grops/ps.cc (ps_printer::special): Likewise.
10975         * grops/psrm.cc (resource_manager::process_file): Likewise.
10976         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
10977         * refer/command.cc (command_table): Likewise.
10978         * addftinfo/addftinfo.cc (param_table): Likewise.
10980         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
10981         about temp's being unused.
10982         (unused): New function.
10984         * groff/pipeline.cc: Declare c_fatal.
10986         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
10987         uchar.
10989         * libbib/index.cc (index_search_item::load): Prevent compiler
10990         warnings about fd_closer's being unused.
10991         (unused): New function.
10993 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
10995         * troff/input.cc (copy_mode_error): Make `prefix' static.
10996         Fix typo.
10998         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
10999         defined.
11000         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
11001         HAVE_CC_OSFCN_H and modify accordingly.
11003         * troff/input.cc (init_charset_table): radicalex overlaps
11004         horizontally.
11006         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
11007         udodo!hans@relay.NL.net).
11008         * groff/configure.in: Call it.
11010         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
11011         * groff/configure.in: Call it.
11012         * include/lib.h: Conditionalize declaration of pclose.
11014         * troff/div.cc (last_page_number): New global variable.
11015         (top_level_diversion::begin_page): Exit if we just printed the
11016         last page.
11017         * troff/div.h (last_page_number): Declare it.
11018         * troff/input.cc (parse_output_page_list): Set last_page_number.
11020         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
11021         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
11022         tmac/tmac.X: Likewise.
11023         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
11024         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
11026 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
11028         * tmac/doc-ditroff (hK): Remove groff specific code which
11029         prevented page-breaks between separate manual entries.  If this is
11030         the first page, don't set the page number to 1.
11032         * acgroff.m4 (GROFF_POSIX): New macro.
11033         * configure.in: Use it.
11035         * troff/node.cc (class real_output_file,
11036         real_output_file::real_output_file,
11037         real_output_file::~real_output_file): Conditionalize use of
11038         popen/pclose on POPEN_MISSING.
11039         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
11040         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
11041         (pipe_source): Similarily.
11043         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
11045         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
11046         presence of declarations by trying to compile example with
11047         conflicting declarations.  (gcc only gives a warning for missing
11048         declarations.)
11050 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
11052         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
11053         (from Ulrich Lauther).
11055 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
11057         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
11059 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
11061         * indxbib/indxbib.cc (write_hash_table): Add code for case where
11062         pointers and ints have different sizes.
11064 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
11066         * tmac/tmac.s (par*env-init): Call par@reset.
11068 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
11070         * tmac/tmac.s (@IP): Switch to a new environment when diverting
11071         tag.
11072         (par*push-tag-env, par*pop-tag-env): New macros.
11074 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
11076         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
11077         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
11079         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
11080         comment.  Include <time.h>.
11082 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
11084         * grops/ps.cc (is_small_h, is_small_v): Deleted.
11085         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
11086         lines.
11088 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
11090         * troff/input.cc (read_request): Only print a prompt if reading
11091         from the terminal.  Also clearerr on EOF if reading from the
11092         terminal.  Declare isatty.
11094 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
11096         * refer/label.y: Rename map_t to map_func and extractor_t to
11097         extractor_func.
11099 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
11101         * include/assert.h: Don't use volatile.
11102         * libgroff/assert.cc: Likewise.
11104 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
11106         * troff/input.cc (abort_request): Look at character in tok before
11107         calling get_copy().
11109 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
11111         * troff/troff.h (NO_RETURN): Deleted.
11112         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
11113         * troff/input.cc (exit_troff): Likewise
11115         * Makefile.in: Remove `Making ...' messages since GNU make now
11116         gives these. 
11118         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
11120 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
11122         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
11123         to constant 1 inch.
11125 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
11127         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
11129 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
11131         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
11132         MARK_REG if there was no left delimiter.
11134 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
11136         * pic/troff.cc (troff_output::text): Set line thickness to
11137         relative before outputting text.
11139         * tmac/tmac.e (@k): Don't zero ?T.
11140         ((z): Likewise.
11142 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
11144         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
11146 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
11148         * troff/input.cc (decode_args): Warn about unquoted tabs (from
11149         Paul Eggert).
11151 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
11153         * troff/input.cc (ignoring): New variable.
11154         (ignore): Set ignoring during call to do_define_macro.
11155         (do_define_macro): Clear ignoring before interpolating terminating
11156         macro.
11157         (copy_mode_error): New function.
11158         (get_char_for_escape_name, read_long_escape_name,
11159         interpolate_arg): Use copy_mode_error.
11160         (warning_table): Add WARN_IG.
11161         * troff/troff.h (WARN_IG): Declare.
11162         (WARN_TOTAL): Change accordingly.
11164         * groff/pipeline.c (strsignal): Rename to xstrsignal.
11165         * groff/groff.cc (strsignal): Delete declaration.
11167 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
11169         * troff/div.cc (page_offset): Use 'm' as default scaling.
11171 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
11173         * nroff/nroff.sh: Ignore -u.
11175 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
11177         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
11179 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
11181         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
11182         drawing box.
11183         (B2): With -Tascii, leave additional vertical space before
11184         and after. Ensure that the left and right indent is restored to
11185         what it was even if the point size changes.  Don't call
11186         par@finish. Change the indent, line length and title length
11187         directly.  With -Tascii, make the width of the box 1n less.
11188         (B1): Remember 1n at the current point size.  Don't call
11189         par@reset.  Change the indent, line length and title length
11190         directly.  Ensure that the temporary indent is preserved.
11191         (par*box-mark-top): Turn off no spacing mode.
11193 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
11195         * Makefile.in (dist): Use .gz suffix.
11197 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
11199         * troff/input.cc (main): Add return 0.
11200         * pic/main.cc (main): Use return instead of exit.
11201         * tbl/main.cc (main): Likewise.
11202         * eqn/main.cc (main): Likewise.
11203         * grops/ps.cc (main): Likewise.
11204         * grotty/tty.cc (main): Likewise.
11205         * groff/groff.cc (main): Likewise.
11206         * grodvi/dvi.cc (main): Likewise.
11207         * refer/refer.cc (main): Likewise.
11208         * indxbib/indxbib.cc (main): Likewise.
11209         * lkbib/lkbib.cc (main): Likewise.
11210         * soelim/soelim.cc (main): Likewise.
11211         * addftinfo/addftinfo.cc (main): Likewise.
11212         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
11213         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
11215         * troff/token.h (process_input_stack): Don't declare as static.
11216         * troff/input.cc: Likewise.
11218         * troff/node.c (invalidate_fontno): Make it a static member of
11219         class font_family.  Change callers.
11220         * troff/node.c: Change declaration.
11222         * tbl/main.cc (struct input_entry_format): Add explicit public
11223         specifier.
11224         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
11225         struct double_hline_stuff): Likewise.
11226         * tbl/table.h (struct entry_format): Likewise.
11227         * pic/object.h (struct saved_state): Likewise.
11229         * include/stringclass.h: Add forward declarations of friend
11230         functions that are later declared as inline.  Don't include inline
11231         specifier in friend declaration.
11233         * libgroff/lib.h: Declare popen and pclose.
11234         * acgroff.m4 (GROFF_POPEN): New macro.
11235         * configure.in: Call it.
11237         * include/lib.h (PI): New constant. Undef first if necessary.
11238         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
11239         * grops/ps.cc (degrees, radians): Likewise.
11240         * libgroff/font.cc (font::get_skew): Likewise.
11242         * grops/ps.cc (is_ascii): New function.
11243         (ps_output::put_string): Use is_ascii.  Use csprint rather than
11244         isprint.
11245         (ps_printer::define_encoding): Use csspace.
11246         * libgroff/strtol.c (ISASCII): New macro.
11247         (strtol): Cast arguments to is*() and tolower() to unsigned char.
11248         Use ISASCII rather than isascii.
11249         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
11250         * libgroff/cset.cc: Likewise.
11251         * libdriver/input.cc: Include cset.h.
11252         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
11253         than isdigit().
11255         * refer/refer.cc (main): Use %ld rather than %d for longs.
11257         * libbib/index.cc (index_search_item_iterator::get_tag): Use
11258         S_ISREG macro.
11260         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
11262 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
11264         * troff/input.cc (hyphenation_code): Skip white space between
11265         char/code pairs.
11267 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
11269         * tbl/table.h (table::entry_list_tailp): New member.
11270         (table::table): Initialize it.
11271         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
11272         behaviour.
11274 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
11276         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
11277         with negative horizontal positions. Remove casts of glyph::hpos to
11278         int.
11279         (USHRT_MAX): Delete definition.
11280         (SHRT_MAX, SHRT_MIN): New definitions.
11281         (glyph::hpos): Change type to short.
11282         (tty_printer::end_page): Output multiple backspaces if necessary.
11283          Remove casts of glyph::hpos to int.
11284         
11285 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
11287         * tmac/tmac.s (@RT): New definition.
11289 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
11291         * refer/refer.cc (do_file): Make sure current_filename is set when
11292         filename is "-".
11294         * pic/common.cc (common_output::dot_line): Handle zero length
11295         lines.
11297 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
11299         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
11300         (par@init): Initialize \n[HY].
11302 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
11304         * troff/dictionary.cc (dictionary::remove): Continue when
11305         r < j < i.
11307 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
11309         * Makefile.com (.y.cc): Avoid ending up with two versions of
11310         $(YTABH).
11312 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
11314         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
11315         (\(,C): Likewise.  Also fix typo.
11317 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
11319         * lib.h: Delete extraneous semi-colon.
11321         * Add pso request: `so' from a pipe.
11322         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
11323         (file_iterator::close): New function.
11324         (file_iterator::~file_iterator, file_iterator::next_file): Use
11325         file_iterator::close.
11326         (file_iterator::backtrace): Say `process' rather than `file' when
11327         the stream is popened.
11328         (pipe_source): New function.
11329         (init_input_requests): Bind ".pso" to pipe_source.
11331 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
11333         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
11335         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
11336         digits in lower case.
11338 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
11340         * Version 1.08 released.
11342         * Makefile.in (dist): Insert || true after ln -s commands that
11343         might fail.
11345         * mm: Update to mm 1.16.
11347         * acgroff.m4 (GROFF_CSH_HACK): New macro.
11348         * configure.in: Call GROFF_CSH_HACK.  Substitute for
11349         SH_SCRIPT_SED_CMD.
11350         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
11351         MDEFINES.
11352         * nroff/Makefile.sub (nroff): New target.
11353         (install_data): Install nroff.
11354         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
11355         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
11357 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
11359         * eqn/Makefile.sub (neqn): Add chmod +x.
11361         * grog/Makefile.sub (grog): Remove spurious semi-colon.
11363 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
11365         * troff/input.cc (string_iterator::string_iterator()): Initialize
11366         lineno and count.
11368 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
11370         * troff/div.cc (macro_diversion::space,
11371         top_level_diversion::space): Don't set high_water_mark.
11372         (macro_diversion::output, top_level_diversion::output): Don't
11373         include post line space in high water mark.
11375 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
11377         * eqn/eqn.y: Don't define YYDEBUG.
11378         * pic/pic.y: Likewise.
11380 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
11382         * tmac/tmac.e ([3): Add space after comma following editors.
11383         Change double spaces to single spaces.
11384         ([4): Change double spaces to single spaces.
11386         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
11387         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
11388         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
11389         after %!PS-Adobe- (for Newsprint).
11391         * troff/div.cc (top_level_diversion::begin_page): When
11392         before_first_page is 1, set page_number to 1.
11394 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
11396         * eqn/box.cc (box::top_level): Protect equation with \&.
11398 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
11400         * groff/groff.cc (possible_command::set_name): Delete old name.
11402         * groff/groff.cc (possible_command::~possible_command): Use
11403         a_delete.
11405         * troff/node.cc (troff_output_file::begun_page): New member.
11406         (troff_output_file::troff_output_file): Initialize it.
11407         (troff_output_file::really_begin_page): Only output V command if a
11408         page has been begun.
11410         * pic/pic.y (placeless_element): Delete argument to PRINT after
11411         use.
11413 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
11415         * Make wrapman work.
11416         * troff/div.h (class top_level_diversion): Replace
11417         first_page_begun by before_first_page (with opposite sense).
11418         * Change first_page_begun to before_first_page inverting sense.
11419         * troff/div.cc (class nl_reg): New class.
11420         (init_div_requests): Use class nl_reg for \n(nl.
11421         (top_level_diversion::begin_page): Don't call
11422         output_file::begin_page if before_first_page is 2;
11423         reset before_first_page afterwards.  If have_next_page_number is
11424         false, then always increment page_number.
11425         * tmac/tmac.an: Set traps within TH rather than at the top-level.
11426         Restore compatibility mode after loading, and then disable
11427         compatibility mode in TH.
11429 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
11431         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
11432         past last line.
11433         * troff/node.h (output_file::trailer): Declare.
11434         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
11435         * troff/node.cc (output_file::trailer): New function.
11436         (troff_output_file::~troff_output_file): Move most code into...
11437         (troff_output_file::trailer): New function.
11438         (class troff_output_file): Delete page_length member. Declare
11439         trailer().
11440         (troff_output_file::really_begin_page): Use current page length
11441         for final V command.
11443         * tbl/main.cc (struct options): New decimal_point_char member.
11444         (options::options): Initialize this.
11445         (process_options): Implement decimalpoint option.
11446         (process_data): Pass decimal_point_char option to table::table.
11447         * tbl/table.h (class table): New decimal_point_char member.
11448         (table::table): Add additional argument.
11449         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
11450         second argument specifying decimal point character.  Use this
11451         instead of '.'.
11452         (table::table): Initialize decimal_point_char.
11453         (table::add_entry): Change call to find_dot.
11455         * troff/input.cc (get_copy, token::next): Implement \V.
11456         (interpolate_environment_variable): New function.
11458 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
11460         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
11461         * pic/pic.y: Likewise.
11463         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
11464         Add casts to int.
11465         * refer/ref.cc (reference::insert_field, reference::delete_field):
11466         Likewise.
11467         * troff/number.cc (parse_term): Likewise.
11469         * acgroff.m4 (GROFF_PROG_YACC): New macro.
11470         * configure.in: Use GROFF_PROG_YACC.
11472         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
11473         and g++.
11474         * Makefile.in (OPTIMIZE): New define.
11475         (DEBUG): Empty by default.
11476         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
11478         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
11479         (GROFF_ARRAY_DELETE): Likewise.
11480         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
11482         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
11484         * devps/psstrip.sed: Use different delimiter on last line (so that
11485         it works with BSD 4.4 sed.)
11487 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
11489         * devps/psstrip.sed: Delete comments.
11491         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
11492         optind, opterr, optarg.
11493         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
11494         opterr, optarg.
11496 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
11498         * Makefile.in (check): Dummy target.
11500 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
11502         * Version 1.07 released.
11504         * Integrate mm 1.11.
11506         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
11507         where start_col was meant.
11509 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
11511         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
11513 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
11515         * troff/input.cc (token::next): Make \z\o'...' and similar things
11516         work.
11518         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
11519         constants.
11520         (environment): Add margin_character_flags member.
11521         * env.cc (environment::environment(symbol),
11522         environment::environment(const environment *): Initialize
11523         margin_character_flags.
11524         (margin_character): Rewrite.
11525         (environment::output_line): Add a margin character if
11526         margin_character_flags is non-zero.  Turn off the
11527         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
11528         zero, use margin_character_node without copying and then set
11529         margin_character_node to 0.
11531         * devps/DESC.in: Change minimum size to 1000.
11533 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
11535         * troff/symbol.h (symbol::hash): Change return type to unsigned
11536         long.
11537         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
11538         Add casts to int.
11540         * test-groff: Use -r rather than -x.
11542         * grops/psfig.diff: Include in distribution again.
11544 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
11546         * Makefile.in (dist): Use gzip.
11548 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
11550         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
11551         unistd.h as well as in stdlib.h.
11552         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
11553         defined; otherwise include <sys/types.h> and <unistd.h> if
11554         UNISTD_H_DECLARES_GETOPT is defined.
11556         * configure.in: use builtin(include, ... rather than include(...
11557         * configure: Regenerate with autoconf 1.3.
11559         * libdriver/print.cc (printer::adjust_arc_center): Use new
11560         algorithm suggested by Andy Fyfe.
11562         * libdriver/printer.cc (printer::adjust_arc_center): New function.
11563         * include/printer.h: Declare this.
11564         * grops/ps.cc (ps_printer::draw): Use it.
11565         * grodvi/dvi.cc (dvi_printer::draw): Use it.
11567 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
11569         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
11571 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
11573         * eqn/main.cc (main): Handle "eqn -".
11575 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
11577         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
11579         * mm: Integrate version 1.08.
11581         * pic/troff.cc (troff_output::finish_picture): Set
11582         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
11583         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
11584         if it's not defined. Check whether the register is non-zero rather
11585         than whether it's not defined.
11586         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
11588         * indxbib/indxbib.cc: Move all signal handling into...
11589         * indxbib/signal.c: New file.
11590         * configure.in: Call AC_RETSIGTYPE.
11592         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
11593         * configure.in: Call GROFF_STRUCT_EXCEPTION.
11594         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
11596         * troff/input.cc (token::token, token::operator=): Work round SGI
11597         C++ bug.
11598         * pic/object.cc (position::position): Likewise.
11600 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
11602         * pic/pic.h: Move declaration of hypot().
11604 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
11606         * pic/pic.h: Declare hypot().
11608         * pic/pic.h: Define M_PI if necessary.
11610 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
11612         * tmac/tmac.e (re): Add alternative version that doesn't use groff
11613         `.ta T' feature.
11615         * devps/prologue.ps (RE): Handle the possibility that the old font
11616         doesn't have a FontName entry.
11618 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
11620         * tmac/tmac.e (fam): Redefine to set family in environment 2.
11621         (@C): Use @fam not fam.
11623 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
11625         * lookbib/lookbib.cc (main): Change type of start to const char *.
11626         * lkbib/lkbib.cc (main): Likewise.
11628         * eqn/lex.cc (definition::definition): Don't use member
11629         initializer syntax for members of anonymous unions.
11631         * troff/input.cc (input_stack::backtrace): Change type of to const
11632         char *.
11634 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
11636         * include/stringclass.h (class string): Declare inline friend
11637         functions as inline in class declaration.
11638         * troff/hvunits.h (class hunits, class vunits): Likewise.
11639         * include/refid.h (class reference_id): Likewise
11640         * troff/troff.h (points_to_units(units), scale(units, double)):
11641         Delete declarations.
11642         * libdriver/input.cc (get_char): Delete declaration.
11643         * include/lib.h: Change 2nd argument of getopt from const char **
11644         to char **.
11645         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
11646         char **' before assigning to a `const char **'.
11647         * tbl/table.cc: Delete extra declarations of prints().
11649 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
11651         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
11652         char **' before assigning to a `const char **'.
11654         * libgroff/errarg.cc (errarg::errarg): Don't use member
11655         initializer syntax for members of anonymous unions.
11657 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
11659         * mm: Integrate version 1.07.
11661 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
11663         * troff/input.c (translate2): Rename to
11664         (translate_no_transparent).
11665         (init_input_requests): Rename tr2 to trnt.
11667 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
11669         * troff/charinfo.h (class charinfo): Add transparent_translate field.
11670         (charinfo::set_translation, charinfo::set_special_translation):
11671         Add second argument that specifies value for
11672         transparent_translate.
11673         (charinfo::get_translation, charinfo::get_special_translation):
11674         Add optional second argument that specifies whether translation is
11675         being used for transparent throughput.
11676         * troff/input.cc (charinfo::set_translation,
11677         charinfo::set_special_translation): Handle second argument.
11678         (charinfo::charinfo): Initialize transparent_translate.
11679         (translate): Split main part off into
11680         (do_translate): New function.  Pass argument saying whether
11681         translation applies to transparent throughput.
11682         (translate2): New request.
11683         (init_input_requests): Bind translate2 to `tr2'.
11685 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
11687         * tbl/table.h (class table): Add `nokeep' flag.
11688         * tbl/main.cc (process_options): Handle `nokeep' option.
11689         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
11690         table::do_bottom): Don't output keep/release macro definitions or
11691         calls when `nokeep' option has been specified.
11693 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
11695         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
11697 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
11699         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
11700         block_entry::divert, alphabetic_block_entry::divert): Add extra
11701         argument giving column separation.
11702         (table::compute_widths): Pass column separation to
11703         table_entry::divert().
11704         (block_entry::do_divert): If an entry spans multiple columns and a
11705         minimumum width has been specified for each column, then set the
11706         line length to the sum of the widths (plus possibly the column
11707         separations).
11709         * troff/input.cc (set_escape_char): Don't set the escape_char
11710         until after calling has_arg().
11712 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
11714         * tbl/table.cc (table::do_top): Add missing \s0 for double box
11715         case.
11717         * tbl/table.cc (table::print_double_hline): Avoid extra new line
11718         in case where r > nrows - 1.
11720         * tbl/table.cc (BODY_HEIGHT): Deleted.
11721         (LINE_SEP): New definition.
11722         (table::print_single_hline, table::print_double_hline,
11723         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
11724         table::do_row, table::do_top): Use LINE_SEP space before a line
11725         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
11727         * tbl/table.cc (text_entry::print_contents): New function.
11728         (text_string_name, right_text_string_name): Deleted.
11729         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
11730         (simple_text_entry::do_width, numeric_text_entry::do_width,
11731         alphabetic_text_entry::do_width): Don't store the contents of the
11732         entry in a string.
11733         (left_text_entry::simple_print, right_text_entry::simple_print,
11734         center_text_entry::simple_print,
11735         alphabetic_text_entry::simple_print,
11736         numeric_text_entry::simple_print): Print the entry directly
11737         instead of using the stored string.
11739 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
11741         * devps/Makefile: Strip PostScript files.
11742         * devps/prologue: Rename to...
11743         * devps/prologue.ps.
11744         * devps/psstrip.sed: New file.
11745         * devps/download: Use .pfa rather than .ps for installed versions
11746         of fonts.
11748 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
11750         * troff/env.cc (input_trap): Give a warning if the argument is out
11751         of range.
11753         * troff/env.cc (adjust): Treat negative argument as missing. Round
11754         argument > 5 down to 5.
11756         * troff/env.cc (center, right_justify): Make negative argument zero.
11758         * troff/div.cc (page_offset, vertical_position_traps): Treat
11759         invalid argument as missing.
11760         * troff/env.cc (line_spacing, line_length, title_length, indent,
11761         underline, hyphen_line_max_request, control_char,
11762         no_break_control_char, widow_control_request, adjust, input_trap,
11763         point_size): Likewise.
11764         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
11765         constant_space): Likewise.
11766         * troff/input.cc (compatible, shift, warn_request,
11767         set_escape_char): Likewise.
11769         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
11770         * tbl/table.cc (table::table): Likewise.
11772         * Makefile.dev (install_dev): depends on $(DEVFILES).
11774 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
11776         * devX75, devX75-12, devX100, devX100-12: New directories.
11777         * Makefile.in: Add these to DEVDIRS.
11779         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
11780         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
11781         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
11782         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
11783         targets.
11784         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
11785         (uninstall): New target.
11786         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
11787         uninstall_prog, uninstall_dev): New targets.
11789         * troff/div.cc (return_request): Treat an invalid argument as
11790         missing.
11792 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
11794         * tmac/tmac.e ((f): Set up the environment even when there's a
11795         current diversion.  Transperently throughput a call to @N.
11796         (@N): New macro.
11798 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
11800         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
11801         up to vertical resolution.
11803         * tbl/table.cc (table::do_row): Change row number after printing
11804         stuff list.
11806         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
11808 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
11810         * Rename CHANGES to NEWS.
11812 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
11814         * libgroff/new.cc (operator new): Avoid calling malloc(0).
11816 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
11818         * man.ultrix: Removed.
11820 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
11822         * Makefile.comm (extraclean): Delete files whose names begin with
11823         `='.
11825         * pic/troff.cc (troff_output::text): Fix typo in implementation of
11826         aligned text.
11828 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
11830         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
11831         * troff/div.cc (page_length, need_space, space_request): Treat
11832         invalid optional argument as missing.
11833         * troff/env.cc (number_lines): If the first argument is present
11834         but not a number, turn on line numbering, don't change the next
11835         line number and parse the remaining arguments.
11837         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
11839 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
11841         * eqn/box.h: Change declaration accordingly.
11842         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
11843         the specified size was bad but don't give an error.  Check for
11844         overflow.
11845         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
11846         * eqn/lex (do_size): Likewise.
11848 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
11850         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
11851         compatible headers.
11853 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
11855         * tbl/table.cc (table::init_output): Improve error message when
11856         table won't fit on one page.
11858 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
11860         * pic/troff.cc (troff_output::start_picture): Generate line
11861         containing a horizontal motion equal to the width of the picture.
11863         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
11864         using GROFF_COMMAND_PREFIX environment variable.
11866 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
11868         * mdate.sh: Use $NF rather than $(NF).
11870 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
11872         * pic/main.cc (main):  Use %1 not %c in argument to warning.
11874         * eqn/main.cc (main): Output code to check that geqn was given the
11875         correct -T option.
11877 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
11879         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
11880         `ln -s ../Makefile .; make; rm -f Makefile'.
11882         * troff/hyphen: Rename to...
11883         * troff/hyphen.us:
11884         * troff/input.cc (main): Delete -H option. Don't call
11885         read_hyphen_file().
11886         * troff/env.cc: Include searchpath.h and macropath.h.
11887         (exception_dictionary): Deleted.
11888         (ht): Deleted.
11889         (read_hyphen_file): Deleted.
11890         (hyphenation_language): New struct.
11891         (class trie, class hyphen_trie): Move declarations up.
11892         (trie_node::~trie_node): Deleted.
11893         (trie::delete_trie_node): New function.
11894         (trie::do_delete): New pure virtual function.
11895         (hyphen_trie::do_delete): New function.
11896         (trie::~trie): New function.
11897         (hyphen_trie::~hyphen_trie): New function.
11898         (trie::clear): No need to chcek that tp is not 0.
11899         (current_language, language_dictionary): New variables.
11900         (hyphen_word): Give an error if no current language.  Use
11901         exceptions dictionary in current language.
11902         (hyphen_trie::read_patterns_file): Find file using macro_path.
11903         Allow comments (starting with %) in patterns file.  Don't make it
11904         a fatal error if the file can't be found.
11905         (hyphenate): Return if no current language.  Get the exceptions
11906         dictionary and the hyphenation patterns from the current language.
11907         (set_hyphenation_language): New variable.
11908         (hyphenation_patterns_file): New function.
11909         (hyphenation_language_reg): New class.
11910         (hyphenation_language_reg::get_string): New function.
11911         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
11912         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
11913         register.
11914         * groff/groff.cc (main, help, synopsis): Delete -H option.
11915         * include/Makefile.sub: Don't define HYPHENFILE.
11916         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
11917         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
11918         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
11919         hyphenation patterns.
11921 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
11923         * eqn/neqn.sh: New file.
11924         * eqn/Makefile.sub: Handle neqn.sh.
11926         * eqn/eqn.h: Declare `nroff' variable.
11927         * eqn/box.cc (param_table): Add `nroff' param.
11928         (nroff): Define it.
11929         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
11930         variable.
11931         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
11933         * troff/troff.h (WARN_FONT): New warning.
11934         (WARN_TOTAL): Change accordingly.
11935         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
11936         (warning_table): Add WARN_FONT.
11937         * troff/node.cc (mount_font_no_translate): Pass argument to
11938         font::load_font.  If this is non-zero, give a warning.
11939         Don't give an error message when accessing a font that has already
11940         been found to be invalid.
11941         * include/font.h (font::load, font::load_font): Add additional
11942         optional argument which suppresses error message if the font is
11943         not found.
11944         * libgroff/font.cc (font::load_font): Handle additional argument.
11945         (font::load): Add additional argument. If this is non-null, set it
11946         to 1 and don't give error message.
11948         * include/printer.h (printer::end_page): Add argument giving
11949         length of page.
11950         * libdriver/input.cc (do_file): Pass this.
11951         * grops/ps.cc (ps_printer::end_page): Add argument.
11952         * grodvi/dvi.cc (dvi_printer::end_page,
11953         draw_dvi_printer::end_page): Add argument.
11954         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
11955         columns_per_page members. New member nlines.
11956         (DEFAULT_LINES_PER_PAGE): Deleted.
11957         (tty_printer::tty_printer): Don't compute lines_per_page from
11958         font::paperlength. Don't compute columns_per_page from
11959         font::paperwidth.
11960         (tty_printer::add_char): Don't check horizontal position against
11961         columns_per_page. Grow glyphs vector if neccessary.
11962         (tty_printer::end_page): Add argument giving page_length in units.
11963         Discard lines past end of page.
11965 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
11967         * tmac/tmac.tty-char: Fix definition of \(/l.
11969         * tmac/tmac.X: Define \(en.
11971 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
11973         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
11974         lpq, then use lp rather than lpr.
11976         * tmac/tmac.s (par@reset): Don't call `ad'.
11977         (par*env-init): Call `ad'.
11979 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
11981         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
11982         date.
11984         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
11985         * indxbib/indxbib.cc: Likewise.
11987 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
11989         * libgroff/putenv.c: New file.
11990         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
11991         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
11992         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
11993         stdlib.h with AC_HAVE_HEADERS.
11995 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
11997         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
11998         does not exist.
12000 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
12002         * eqn/box.cc (gsize): Make it an int.
12003         (set_gsize): Parse argument handling increment or decrement.
12004         (box::top_level): Convert gsize to a string.
12006         * troff/input.cc (exit_troff): Make buf unsigned char [].
12007         Call to make_temp_iterator casts buf to char*.
12009         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
12011         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
12012         * Makefile.cpg (depend.temp): Likewise.
12014         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
12016         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
12018 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
12020         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
12022 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
12024         * Version 1.06 released.
12026         * Integrate mm 1.04.
12028 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
12030         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
12032 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
12034         * afmtodit/afmtodit.pl: Add -n option that disables generation of
12035         ligatures command.
12036         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
12037         afmtodit. Regenerate.
12039         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
12040         @f back past the current position.
12042         * tmac/tmac.e: Change calls to @R so that comments are not part of
12043         arguments.
12045 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
12047         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
12049         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
12050         check that we can link a call to a function declared in <stdio.h>.
12051         (GROFF_UNISTD_H): New macro.
12052         * configure.in: Call it.
12053         * Makefile.in: Document it.
12054         * include/posix.h: New file.
12055         * troff/troff.h: Don't include <osfcn.h>
12056         * troff/input.cc: Include posix.h.
12057         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
12058         osfcn.h.
12059         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
12060         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
12061         <fcntl.h>.
12062         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
12063         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
12064         * libbib/search.cc (O_RDONLY): Delete definition.
12065         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
12066         Don't include <osfcn.h>.
12068         * acgroff.m4 (GROFF_TIME_T): New macro.
12069         * configure.in: Call it.
12070         * Makefile.in: Document it.
12072         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
12073         * configure.in: Call it.
12074         * Makefile.in: Document -DTRADITIONAL_CPP.
12075         * include/ptable.h: Don't include generic.h.
12076         (name2): Define it.
12078         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
12079         Afterwards remove [T1 and [T2.
12080         (ref*spec!0, ref*spec!2): Use T1 rather than T.
12081         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
12082         (ref*add-T2): Renamed from ref*add-T.
12083         (ref*add-T1): New macro.
12085 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
12087         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
12089         * libbib/index.cc: Include <fcntl.h>.
12090         (O_RDONLY): Define if necessary.
12091         (make_index_search_item, index_search_item_iterator::get_tag,
12092         index_search_item::check_files): Use O_RDONLY.
12093         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
12094         (O_RDONLY): Define if necessary.
12095         (search_list::add_file): Use O_RDONLY.
12096         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
12097         <sys/stat.h>.
12098         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
12099         (main): Use these.
12101         * libbib/index.cc (S_ISREG): Define it if necessary.
12102         (index_search_item::load): Use S_ISREG.
12104         * include/driver.h: Include <errno.h>.
12106 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
12108         * eqn/box.cc (body_height): Increase default value to 85.
12109         (body_depth): Increase default value to 35.
12111 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
12113         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
12114         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
12115         protected from expansion with \E.
12117         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
12119         * Makefile (Makefile): New target.
12121         * Makefile.sub (configure, distfiles): New targets.
12123         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
12124         construct.
12126 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
12128         * eqn/box.cc (param_table): Add body_height and body_depth.
12130         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
12132 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
12134         * psbb/Makefile.sub: Don't link with libgroff.a.
12136         * acgroff.m4 (GROFF_PUTENV): New macro.
12137         * configure.in: Call GROFF_PUTENV.
12138         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
12139         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
12140         is defined.
12142         * troff/env.cc (distribute_space): Rename force_forward argument
12143         to force_reverse.  Reverse the list if force_reverse is true.
12145 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
12147         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
12149         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
12150         height or depth to be negative.  Guard against SUP_RAISE quantity
12151         being negative.
12153 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
12155         * devps/generate/textmap: Add `an' (arrowhorizex).
12156         * tmac/tmac.ps: \(an overlaps horizontally.
12157         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
12159         * devps/symbolchars: Add arrowverttp, arrowvertbt.
12160         * devps/textmap: Add arrowvertex.
12161         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
12162         updownarrow delimiters.
12163         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
12165         * tbl/table.cc (simple_entry::position_vertically,
12166         block_entry::position_vertically):  For a centered entry, perform
12167         the motion in two stages.
12169         * refer/refer.cc (split_punct): Don't call lookup_token if there
12170         is no token.
12172 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
12174         * troff/input.cc (token::next): Delete token_node after copying
12175         token.
12177         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
12178         cur_point_size.
12180         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
12182         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
12184 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
12186         * grops/ps.cc (usage): -b option takes an argument.
12188         * devps/prologue (PLG): New procedure.
12189         * grops/ps.cc (main, usage): New -g option.
12190         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
12191         length using PLG.
12193 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
12195         * include/cset.h: Include <limits.h> if we have it.
12197         * libgroff/illegal.cc: New file.
12198         * include/lib.h (illegal_input_char): Use table.
12199         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
12200         * pic/lex.cc (ARG1): Renumber to 14.
12201         * eqn/lex.cc (ARG1): Likewise.
12203         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
12204         (eg 1.05.90) correctly.
12206 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
12208         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
12209         Rename $r and $R registers to $v and $V.
12210         ($r, $R): Initialize to 0.
12211         (@v, @V): New macros.
12212         (sz): Call @v.
12213         (@M): Call @V.
12215         * troff/input.cc (main, usage): Add -R option that says not to
12216         load troffrc.
12217         * eqn/main.cc (main, usage): Rename -n to -R.
12219 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
12221         * devps/DESC.in: Leave font positions 5-9 blank.
12222         * devdvi/DESC.in: Likewise.
12224         * grog/grog.pl: Handle `.PS <file' correctly.
12226         * troff/input.cc (input_stack::push): Improve error message when
12227         input stack limit exceeded.
12229 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
12231         * refer/refer.cc (main): Fix typo in handling of `a' option.
12233         * refer/refer.cc (do_bib): In state START after a newline remain
12234         in state START.
12236         * groff/groff.sh: Deleted.
12237         * groff/Makefile.sub: Delete handling of groff.sh.
12239         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
12240         to determine whether to use \X'ps:...'.
12241         * tmac/troffrc: Set 0p register to 0.
12242         * tmac/tmac.ps: Set 0p register to 1.
12244         * groff/groff.cc: Support -X option. Give warning for -TXps and
12245         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
12246         * tmac/troffrc: Support -r.X=1.
12248         * pic/troff.cc (troff_output::dot): Don't test
12249         zero_length_line_flag.
12251 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
12253         * include/lib.h: Declare getopt() and friends unless
12254         STDLIB_H_DECLARES_GETOPT is defined.
12256         * doc/chars.tr: Delete.
12257         * man/groff_char.man: New file.
12259 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
12261         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
12262         user has changed register format.
12264 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
12266         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
12267         `postpro' command in DESC file.  Get spooler command from `print'
12268         command in DESC file.  Execute spooler command with /bin/sh.
12270         * groff/groff.cc: Split Unix-specific parts into...
12271         * groff/pipeline.c: New file.
12273         * LICENSE: Delete.
12274         * COPYING: New file.
12275         * all files: Update copyright notices.
12277         * Rearrange files.  Redo Makefiles.  Use autoconf.
12279 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
12281         * troff/input.c (charinfo_to_node_list): Interpret character
12282         definition with escape_char of `\'.
12284 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
12286         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
12287         Define INT_DIGITS as big enough for 64-bit integer.
12288         * lib/strtol.c: Don't include lib.h.
12289         * lib/lib.h: Delete ifdef __cplusplus stuff.
12291 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
12293         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
12294         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
12295         get DESC from current directory.
12297 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
12299         * tbl/main.c (main): Always reset the line number when reading
12300         from stdin.
12302         * tbl/table.c (table::print_single_hline, table::print_double_hline,
12303         table::define_bottom_macro, table::do_row, table::do_top): Round
12304         vertical spacing up to vertical resolution.
12306 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
12308         * ps/ps.h (enum resource_type): Avoid comma at end of
12309         enumerator-list.
12310         * dvi/dvi.c (class dvi_printer): Likewise.
12311         * dvi/tfmtodit.c (gf::load): Likewise.
12312         * refer/label.y (struct expression): Likewise.
12313         * refer/refer.c (class label_processing_state): Likewise.
12314         * refer/indxbib.c (do_file): Likewise.
12315         * troff/troff.c (enum warning_type): Likewise.
12316         * tbl/main.c (process_data): Likewise.
12317         * troff/charinfo.h (class charinfo):
12319 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
12321         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
12323 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
12325         * groff.c: Move to new groff subdirectory.
12326         * groff/Makefile: New file.
12327         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
12329         * man/mdate.sh: Use ls -L if supported.
12331         * Consolidate all header files produced by gendef into lib/defs.h.
12332         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
12333         Don't include path.h.
12334         * lib/Makefile (path.h): Don't generate.
12335         * troff/input.c: Include defs.h. Don't include config.h.
12336         * troff/Makefile (config.h): Don't generate.
12337         * refer/index.h: Don't include suffix.h.
12338         * refer/index.c: Include defs.h.
12339         * refer/indxbib.c: Include defs.h.
12340         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
12341         defs.h.
12342         * refer/Makefile (suffix.h, path.h): Don't generate.
12343         * groff.c: Don't include config.h. Include defs.h.
12344         * Makefile (config.h): Don't generate.
12345         (lib/defs.h): Generate.
12346         (topclean): Remove lib/defs.h.
12348 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
12350         * lib/malloc.c, lib/getpagesize.h: Deleted.
12351         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
12352         related stuff.
12353         * lib/Makefile: Delete malloc-related stuff.
12354         * lib/new.c: Workaround COOKIE_BUG if necessary.
12356         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
12357         needed header files directly.
12358         * refer/refer.h: Omit definition of DEFAULT_INDEX.
12359         * Makefile: Include definition of DEFAULT_INDEX in path.h.
12361 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
12363         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
12364         argument.
12365         * lib/font (font::load_desc, font::load): Don't split argument of
12366         unknown command.
12367         (font::handle_unknown_font_command): Change type.
12368         * ps/ps.c (ps_font::handle_unknown_font_command,
12369         handle_unknown_desc_command): Change type.
12370         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
12372 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
12374         * lib/font.h (font::handle_unknown_font_command): Add file and
12375         line arguments.
12376         * lib/font.c (font::handle_unknown_font_command):
12377         * ps/ps.c (ps_font::handle_unknown_font_command):
12378         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
12379         lineno arguments.  Use _with_file_and_line functions for error
12380         reporting.
12382         * lib/fontfile.c (font::unknown_desc_command_handler): New static
12383         data member.
12384         * lib/font.c (font::set_unknown_desc_command_handler): New
12385         function.
12386         (font::load_desc): For unknown commands, call
12387         unknown_desc_command_handler if not null.
12388         * lib/font.h (class font): Declare them.
12389         (FONT_COMMAND_HANDLER): New typedef.
12390         * ps/ps.c (handle_unknown_desc_command): New function.
12391         (main): Set bflag if we had a -b option. Call
12392         font::set_unknown_desc_command_handler.
12393         (broken.h): Don't include.
12394         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
12395         submake 
12396         * ps/devps/Makefile: Add `broken' command to DESC file using
12397         BROKEN_SPOOLER_FLAGS.
12399         * macros/tmac.e ([, ]): Add as synonyms for { and }.
12401         * macros/tmac.e ($p): Only exdent if \$3 > 0.
12403         * macros/tmac.e (@R, @S): New macros.
12404         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
12405         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
12406         Declare $H, $[0-9], .. macros with @S.
12407         Declare |0, |1, |2, |3 strings with @S.
12409         * macros/tmac.e (@S): Rename to @U.
12411         * macros/tmac.e (@z): Define @b and bp as empty instead of
12412         deleting them,
12414         * macros/tmac.e (@m): Deleted.
12415         (@h): Don't call @m.
12416         (@z): Don't set @m trap.
12418         * macros/tmac.e ($h, $f): Define |z as empty string.
12420         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
12421         (@q): Likewise.
12423         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
12424         removing them.
12425         ()f): Likewise for * register.
12427         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
12428         argument is missing, don't change $R.  Call sr with three
12429         arguments when initializing.
12431 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
12433         * macros/tmac.e (sr): New macro.
12434         Initialize $r and $R using sr.
12436         * macros/tmac.e (,): Delete \*(#[.
12438         * troff/env.c (set_tabs): Read the tab type even if the position
12439         is bad.  Allow the position of the first tab stop to be negative.
12441 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
12443         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
12444         _POSIX_VERSION.
12445         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
12446         rather than -DPATHCONF_MISSING.
12447         * Makefile: Get rid of PATHCONF_MISSING.
12449         * refer/map.c: New file.
12450         * refer/index.c: Interface to mmap through map.c.  Rename map_size
12451         to map_len.
12452         * refer/Makefile: Handle map.c.
12453         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
12455 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
12457         * Makefile: RANLIB should be `true' if there is no ranlib.
12458         * lib/Makefile (libgroff.a): Simplify.
12459         * driver/Makefile (libdriver.a): Simplify.
12461         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
12462         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
12463         defined.
12465 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
12467         * troff/env.c (compare_ranges): Declare as extern "C".
12469         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
12471         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
12473 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
12475         * pic/troff.c (troff_output::text): Merge in grops_output::text,
12476         but conditionalize use of \X based on \*(.T.
12477         (grops_output::*): Deleted.
12478         * pic/output.h: Delete declaration of make_grops_output.
12479         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
12480         by default. -n sets it to 0.
12481         (usage): Corresponding changes.
12482         * groff.c (main): Don't pass -x or -p to pic.
12483         * groff.sh: Likewise.
12485         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
12486         to be non-zero.
12488         * ps/devps/afmtodit: Change calculation of asc_boundary and
12489         desc_boundary.  Make these bounds inclusive.
12490         * ps/devps: Regenerate font files.
12492 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
12494         * macros/tmac.latin1: New file.
12495         * macros/tmac.tty-char: Use tmac.latin1.
12496         (tmac.tty-tr): Deleted.
12497         * macros/Makefile: Install tmac.latin1.
12498         * macros/tmac.dvi: Use tmac.latin1.
12499         * macros/troffrc: Translate \[char160] onto no-break space here.
12500         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
12502 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
12504         * macros/tmac.Xps: Use `do' request.
12506         * macros/tmac.ps: Use `do' request.
12508         * macros/tmac.e (@C): Use `do' request.
12510         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
12511         * macros/Makefile: Install tmac.X*.
12513         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
12514         * tty/Makefile: Don't install tmac.tty*.
12515         * macros/Makefile: Install tmac.tty*.
12517         * dvi/tmac.dvi: Move to macros.
12518         * dvi/Makefile: Don't install tmac.dvi.
12519         * macros/Makefile: Install tmac.dvi.
12521         * ps/tmac.ps*: Move to macros.
12522         * ps/Makefile: Don't install tmac.ps*.
12523         * macros/Makefile: Install tmac.ps*.
12525         * eqn/box.c: Provide draw_lines parameter corresponding to -D
12526         option.
12527         * macros/eqnrc: Set draw_lines parameter based on device.
12528         * groff.c: Don't pass -D flag to eqn.
12529         * groff.sh: Likewise.
12530         * eqn/main.c: Warn about use of -D.
12532         * troff/input.c (process_startup_file): New function.
12533         (main): Call process_startup_file().
12534         * macros/troffrc: New file.
12535         * macros/Makefile: Install troffrc.
12536         * groff.c (main): Don't pass extra -m option to troff. For a 
12537         pseudo device pass the name of the pseudo device to troff using
12538         -d.
12539         * groff.sh: Likewise.
12540         * groff.c (possible_command::prepend_arg): Deleted.
12542         * troff/input.c (do_request): New function.
12543         (init_input_requests): Bind "do" to do_request.
12545         * eqn/main.c (main): Instead of loading eqnchar from device directory,
12546         load eqnrc from macro directory.
12547         * macros/eqnrc: New file.
12548         * macros/Makefile: Install eqnrc.
12549         * ps/devps/eqnchar: Deleted.
12550         * ps/devps/Makefile: Don't install eqnchar.
12551         * dvi/devdvi/eqnchar: Deleted.
12552         * dvi/devdvi/Makefile: Don't install eqnchar.
12553         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
12554         variable optM.
12556         * lib/device.[ch]: New files.
12557         * lib/font.h (font::set_device_name, font::get_device_name):
12558         Deleted.
12559         * lib/fontfile.c: Use device.h.
12560         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
12561         * troff/input.c: Delete definition of `device'.
12562         (main): Don't initialize device.
12563         * troff/troff.h: Include device.h rather than declaring device.
12564         * troff/Makefile: No need to handle DEVICE.
12565         * driver/input.c: Include device.h. Don't use
12566         font::{set,get}_device_name.
12567         * groff.c, Makefile: Rename device.h to config.h.
12568         * groff.c: Use library device variable.
12569         * eqn/main.c: Use library device variable.
12570         * eqn/Makefile: No need to handle DEVICE.
12572         * lib/searchpath.[ch]: New files.
12573         * lib/Makefile: Handle searchpath.[ch].
12574         * troff/input.c (open_file, init_dirs): Deleted.
12575         (macro_dirs): Deleted.
12576         (open_mac_file, macro_source): Use class search_path.
12577         (add_string, struct string_list): Move definition.
12578         (main): Change -M option to use macro_path. Delete call to
12579         init_dirs().
12580         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
12581         Rewrite to use class search_path.
12582         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
12583         * lib/Makefile: fontfile.c depends on searchpath.h.
12584         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
12585         MACROPATH.
12586         * lib/macropath.[ch]: New files.
12587         * troff/Makefile: No need to handle MACROPATH.
12589         * troff/input.c: Delete DUMP code.
12590         * lib/fontfile.c, lib/font.h: Delete
12591         font::forget_command_line_font_dirs.
12593         * troff/input.c (push_token): New function.
12594         (handle_first_page_transition): Use push_token().
12595         (process_input_stack): Change handling of a space at the beginning
12596         of the line.
12598 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
12600         * troff/input.c (font_dirs): Delete unused variable.
12602         * eqn/lex.c (do_set): Correct error messages.
12604 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
12606         * troff/input.c (do_define_string): Allow the string name to be
12607         followed immediately by a tab.
12608         (define_character): Likewise.
12610 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
12612         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
12613         be negative.
12615         * troff/input.c (input_iterator::is_file): New virtual function.
12616         (file_iterator::is_file): New function.
12617         (input_stack::end_file): New function.
12618         (input_stack::next_file): Handle the situation where there is no
12619         file on the input stack correctly.  Avoid making two passes over
12620         the input stack.
12621         (next_file): Make the filename optional; in this case call
12622         input_stack::end_file().
12624 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
12626         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
12627         produce a real _ charater when the current font is CW and _
12628         otherwise.
12630         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
12631         expression to work around gcc 2.2 bug.
12633 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
12635         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
12637         * troff/env.c (environment::add_padding): New function.
12638         (environment::add_char): Use add_padding().
12639         (environment::space): Likewise.
12640         (environment::wrap_up_field): Add some padding if there is none
12641         and there's no current tab.
12642         * troff/env.h: Declare environment::add_padding.
12644 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
12646         * pic/pic.y: undef fmod and rand before declaring them.
12648 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
12650         * troff/input.c (main): If the DESC file specifies a font name of
12651         0, then leave the corresponding font position empty.
12653         * nroff.sh: New file.
12654         * Makefile (install.nobin): Install nroff.sh.
12656         * tty/devlatin1/R.proto: Add ao as synonym for de.
12657         * tty/tmac.tty-char: Define ao as o.
12659         * tty/dev{ascii,latin1}/R.proto: Add aq.
12660         * tty/tmac.tty-char: Delete definition of aq.
12662 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
12664         * troff/input.c (init_charset_table): Don't translate 0240.
12665         * ps/tmac.ps: Translate char160 to space.
12666         * dvi/tmac.dvi: Likewise.
12667         * tty/tmac.tty: Likewise.
12669 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
12671         * dvi/tmac.dvi: Add support for all Latin-1 characters.
12673         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
12674         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
12675         \(oe, \(r?, \(r!.
12677         * tty/tmac.tty-char: Add \(ah.
12679         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
12680         No need to define \(FM and \(!/. Conditionalize all character
12681         definitions.
12683         * ps/devps/lgreekmap: Add +h, +f, +p.
12685         * ps/tmac.psnew: New file.
12686         * ps/Makefile: Install tmac.psnew.
12688         * troff/input.c (charinfo_to_node_list): Don't ever interpret
12689         character definitions in compatible mode.
12691         * troff/input.c (remove_character): New function.
12692         (init_input_requests): Bind remove_character to "rchar".
12694         * ps/tmac.psold: New file.
12695         * ps/Makefile: Install tmac.psold.
12696         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
12697         characters into tmac.psold.  Make these definitions unconditional.
12699         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
12701         * ps/tmac.ps: Don't define \('c and \('C.
12703         * ps/devps/textmap: Move Greek characters to...
12704         * ps/devps/symbolchars:
12706 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
12708         * ps/devps/text.enc: Add quotesingle.
12709         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
12710         * tty/tmac.tty-char: Likewise.
12711         * dvi/devdvi/texmi.map: Add +h, +f, +p.
12712         * dvi/devdvi/texi.map: Add Fn.
12713         * dvi/devdvi/msam.map: Add lz.
12714         * dvi/tmac.dvi: Handle Bq, bq, aq.
12716         * pic/lex.c (get_token): Recognize 'th.
12717         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
12719 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
12721         * ps/devps/textmap: Move di, mu, +- to...
12722         * ps/devps/symbolchars:
12724         * macros/tmac.s (@XS): Don't call par@reset or fi.
12725         (XA): Call LP. Turn off adjustment. Reduce line length.
12727         * macros/tmac.s: Initially alias XS to LP.
12728         (XS): Rename to @XS.
12729         (cov*ab-init): Alias XS to @XS.
12731 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
12733         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
12734         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
12735         (token::is_size, token::changes_env): Deleted.
12736         * troff/number.c (parse_term): No need to process \s explicitly.
12737         Call tok.next() only after scale indicator has been processed.
12738         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
12739         \f etc explicitly.
12740         (token::next): Handle \s, \f, \S, \H immediately rather than
12741         returning them as tokens.
12742         (token::operator==, token::description, token::add_to_node_list,
12743         token::process): Remove handling of deleted tokens.
12745         * troff/env.c (environment::add_char): When adding padding
12746         indicator character, call start_line() if necessary.
12748 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
12750         * ps/devps/afmtodit: Don't output 0 kerns.
12752         * ps/devps/afmtodit: Remove directory from name of encoding in
12753         font description file.
12755         * ps/devps/afmtodit: Improve error messages.
12757         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
12759         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
12760         * ps/devps/FontMakefile: Deleted.
12761         * ps/devps/afmname: New file.
12763         * ps/devps/symbol.sed: New file.
12764         * ps/devps/symbol.diff: Deleted.
12765         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
12766         Generate zapfdr.afm from zapfd.afm.
12768         * tty/tmac.tty (tty-char): Prefix definition with ".
12770         * macros/tmac.an (TP): Don't start a diversion if one has already
12771         been started.
12773         * tty/tmac.tty-char: Add Latin-1 characters.
12775         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
12777 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
12779         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
12780         Move declaration of struct horizontal_span.
12782         * tbl/table.c (table::table): Initialize span_list.
12783         (table::~table): Delete span_list.
12785         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
12787         * ps/devps/Makefile: Avoid dependency on GNU make.
12789         * ps/tmac.ps: Check that character does not already exist before
12790         defining it.
12792         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
12793         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
12794         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
12795         files.
12797         * tty/tmac.tty-char: New file.
12798         * tty/Makefile: Install tmac.tty-char.
12799         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
12800         tmac.tty-char.
12802         * tty/tmac.tty: Fix definition of \(34.
12804         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
12805         bracket-drawing characters onto |. Add *o.
12807         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
12808         only if current_field.
12810         * troff/dictionary.c (dictionary::lookup): Free old_table after
12811         rehashing. 
12813 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
12815         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
12816         whose glyphs are identical to glyphs of some Roman character.
12818         * tty/devlatin1/R.proto (bu): Deleted.
12819         * tty/devascii/R.proto (bu): Deleted.
12820         * tty/tmac.tty: Add definition of \(bu.
12822         * eqn/main.c (do_file): Pass FILE as argument.
12823         (main): Automatically load eqnchar.  New options -F and -n.
12824         Pass do_file an opened FILE.
12825         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
12826         No need to include font.h.
12827         * groff.sh: Likewise.  Don't need to use - for standard input.
12828         Prefix files with -- if first file starts with -.
12830         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
12832         * troff/env.c (environment::possibly_break_line): Don't set line
12833         to 0 across call to output_line().  Don't call output_line() until
12834         after discarding nodes after break.
12836 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
12838         * request.h (macro::empty): Declare it.
12839         * input.c (macro::empty): New method.
12840         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
12841         macro is empty.
12843 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
12845         * troff/env.c (environment::start_field): Decrement space_total
12846         when a space is frozen.
12848 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
12850         * macros/tmac.an (R): Delete macro.
12852         * troff/input.c (get_copy, token::next): Support \# (like \" but
12853         newline is ignored).
12855         * troff/input.c (token::next): Fix error message in 'Y' case.
12857 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
12859         * eqn/delim.c (define_extensible_string): Recognize any prefix of
12860         a delimiter name.
12862 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
12864         * c++test.c: Include <osfcn.h>.
12866         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
12867         <errno.h> doesn't.
12869 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
12871         * tbl/table.c (table::divide_span): Don't count column separation
12872         if expand was specified.
12874         * tbl/main.c (process_format): Don't ignore width specs in
12875         continued format.  Give warning for changing equal widths or
12876         column separation in continued format.
12877         (process_data): Set column separation, minimum width, equal
12878         columns at end of table.
12880 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
12882         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
12883         node::add_discretionary_hyphen): Use soft_hyphen_char.
12884         (set_soft_hyphen_char): New function.
12885         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
12887         * Makefile (c++tested): Give more helpful message if test fails.
12889 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
12891         * troff/input.c (init_charset_table): Translate 0240 to
12892         an unbreakable space.
12894         * troff/token.h (token::hyphen_indicator): New function.
12895         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
12896         translation.
12897         * troff/input.c (translate): Allow translation to \%.
12898         * troff/node.c (node::add_char): Handle
12899         TRANSLATE_HYPHEN_INDICATOR.     
12900         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
12902         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
12903         for \(hy.
12905         * tty/devlatin1/R.proto: \(hy and - should print as 055.
12907 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
12909         * groff.c (run_commands): If the last command gets a SIGPIPE send
12910         a SIGPIPE to all children than haven't yet terminated.  When
12911         command terminates, set pid field to -1.
12913 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
12915         * groff.c (main): Pass an appropriate -filename option to gxditview.
12917 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
12919         * Makefile.bd (install): Remove existing program before copying.
12921         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
12922         programs which have Unix counterparts to be installed with
12923         user-specified prefix.
12925         * troff/input.c (exit_troff): Don't check if exit_started.
12926         (exit_request): Don't call exit_troff if exit_started.
12928         * Makefile.bd (install.mm): Rename to install.dwbmm.
12930 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
12932         * driver/input.c (do_file): Add missing break for '#' case.
12934 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
12936         * troff/input.c (input_stack::clear):  Clear past any boundaries and
12937         then add the boundaries back.
12939         * troff/input.c (exit_troff): Return immediately if already
12940         exiting.
12942         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
12943         end macro.
12944         (pg*end-page): If the text has ended and there are no more
12945         footnotes or keeps, exit.
12947         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
12949         * troff/input.c (init_charset_table): Make \(rq transparent by
12950         default.
12952         * macros/tmac.an: Define lq and rq strings.
12954         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
12956 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
12958         * troff/env.c (environment::final_break): New function.
12959         (environment::newline): Set prev_line_interrupted to 2 if
12960         exit_started.
12961         * troff/env.h: Declare environment::final_break.
12962         * troff/input.c (exit_troff): Call environment::final_break()
12963         instead of environment::do_break().
12965         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
12966         doesn't already exist.
12967         * macros/man.local: New file.
12968         * macros/tmac.an: Load man.local.
12969         * macros/man.ultrix: New file.
12971 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
12973         * troff/input.c (exit_groff): Rename to...
12974         (exit_troff): New function.
12976         * troff/div.c (exit_started, done_end_macro,
12977         seen_last_page_ejector): New global variables.
12978         (began_page_in_end_macro): New static variable.
12979         (exit_flag): Deleted.
12980         (top_level_diversion::top_level_diversion): Initialize
12981         last_page_count.
12982         (top_level_diversion): More elaborate test for whether
12983         cleanup_and_exit() should be called.
12984         Set began_page_in_end_macro if the end macro isn't yet finished.
12985         * troff/div.h (top_level_diversion::last_page_count): New data
12986         member.
12987         (top_level_diversion::set_last_page): New function.
12988         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
12989         * troff/env.c (do_break): Zero prev_line_interrupted.
12990         * troff/input.c (exit_flag): Delete declaration.
12991         (LAST_PAGE_EJECTOR): New magic cookie.
12992         (token::next): Handle LAST_PAGE_EJECTOR.
12993         (exit_groff): Set exit_started and done_end_macro instead of
12994         exit_flag.  Call top_level_diversion::set_last_page.  Push a
12995         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
12996         another ejection after setting seen_last_page_ejector.
12998 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
13000         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
13002         * macros/tmac.e (TH): Make sure there's room for the initial
13003         header.
13005         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
13006         Set FVS in points rather than units.
13008 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
13010         * troff/div.c (top_level_diversion::add_trap): Don't consider the
13011         position of empty slots.
13013 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
13015         * ps/devps/S: Fix height and depth of parenrightex.
13016         * ps/devps/symbol.diff: Regenerate.
13018 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
13020         * tmac.e (u): Do underlining as in -mgs.
13022 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
13024         * tty/tty.c (tty_printer::end_page): If overstriking is
13025         suppressed, still turn overstruck horizontal and vertical lines
13026         into +.
13028         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
13029         2.1.
13031         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
13033 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
13035         * Version 1.05 released.
13037 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
13039         * tty/tty.c: Instead of keeping an array of glyphs and then
13040         sorting it, keep a ordered linked list of glyphs for each line.
13042         * driver/driver.h: Include stddef.h.
13044         * tty/tty.c (compare_glyph):
13045         * refer/refer.c (rcompare):
13046         * troff/env.c (compare_ranges): Arguments of qsort comparison
13047         function should be const void *.
13049         * troff/number.c (parse_term):
13050         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
13051         switch statement.
13053         * refer/label.y (consider_authors): Don't access variables
13054         constructed under a condition outside that condition: put braces
13055         round for statement containing declaration; redeclare use of same
13056         variable later.
13058         * pic/pic.y (text_expr): Delete production that allows
13059         parenthesised text_expr.
13060         (expr): Allow a conditional_expr to appear in parentheses.
13061         (conditional_expr): Rename to any_expr.
13063         * mm: Install new version 1.01 from jh.
13065         * lib/font.c (font::get_width): Cache scaled widths.
13066         (font::font): Initialize widths_cache.
13067         (font::~font): Destroy widths_cache.
13068         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
13070 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
13072         * c++test.c, c++test.ref: New files.
13073         * Makefile: Check that the C++ compiler works.
13075         * ps/tmac.pspic (PSPIC): Do a break.
13077         * ps/tmac.ps: Move definition of PSPIC into...
13078         * ps/tmac.pspic: New file.
13079         (PSPIC): Draw box around picture, but make it invisible to grops.
13080         * ps/tmac.ps: Load tmac.pspic.
13081         * ps/Makefile: Install tmac.pspic.
13083 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
13085         * lib/font.c (scale_round): If n is negative,
13086         subtract .5 before truncating floating point result.
13088         * lib/fontfile.c: Include <errno.h>.
13090 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
13092         * driver/input.c (get_char): Inline. Don't update current_lineno.
13093         Change callers to up date current_lineno if necessary.
13094         Use get_char() instead of getc(current_file).
13096 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
13098         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
13100 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
13102         * tty/tty.c (tmac.tty): Define \(rg as (R).
13104 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
13106         * lib/lib.h: New define a_delete.
13107         * Use a_delete instead of delete when deleting an array of objects
13108         without destructors.
13110         * lib/lib.h: Rename adelete to ad_delete.
13111         * Change uses of adelete.
13113 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
13115         * eqn/eqn.y: Include lib.h.
13117         * troff/node.c (grow_font_table): Delete old_font_table.
13119         * mm: Install new version from jh.
13121 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
13123         * tbl/table.h (format_type): Make global instead of local to class
13124         entry_format.  Prefix enumerators with FORMAT_.
13125         * tbl/table.c, tbl/main.c: Corresponding changes.
13126         * refer/token.h (token_type): Make global.  Prefix enumerators
13127         with TOKEN_.
13128         * refer/token.[ch]: Corresponding changes.
13129         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
13131         * troff/div.c (node::set_vertical_size): Don't name argument.
13133 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
13135         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
13136         * lib/lib.h: Define adelete accordingly.
13137         * pic/object.c (graphic_object::graphic_object):
13138         * tbl/main.c (format::~format):
13139         * tbl/table.c (table::~table):
13140         * refer/ref.c (reference::~reference, reference::merge,
13141         reference::insert_field, reference::delete_field): Use adelete.
13143         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
13144         * refer/token.h:
13145         * tbl/table.h: Corresponding changes.
13147         * common.c (common_output::dashed_arc, common_output::dotted_arc):
13148         Ensure total_angle is positive.
13150 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
13152         * refer/ref.c (reference::merge, reference::insert_field,
13153         reference::delete_field): Avoid delete[0].
13155         * refer/token.c (init_special_chars): Move calls to cmupper
13156         outside calls to init_two_char_letter to work around bug in gcc
13157         2.0.
13159 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
13161         * lib/new.c (operator new): Use __builtin_new for g++.
13163         * pic/object.c (graphic_object::~graphic_object):  Don't use
13164         delete [] on 0.
13166         * pic/object.c (output::compute_scale): Initialize max_width and
13167         max_height.
13169 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
13171         * troff/input.c (write_request): Call fflush.
13173         * troff/node.h (class composite_node): Move declaration to node.c
13174         * troff/input.c (charinfo_to_node): Rename to ...
13175         (charinfo_to_node_list): Return node list rather than composite
13176         node.
13177         * troff/node.c (make_composite_node): New function.
13178         (make_node, add_char): Call make_composite_node instead of
13179         charinfo_to_node.
13180         (class composite_node): Add a tfont * member.  Delete font_size
13181         member.
13182         (composite_node::composite_node, composite_node::copy,
13183         composite_node::size): Corresponding changes.
13184         (composite_node::tprint): Provide constant spacing, emboldening
13185         and track kerning as specified in tfont.
13186         (composite_node::width): Change width calculation accordingly.
13187         * troff/env.h (environment::composite): New member.
13188         (environment::is_composite, environment::set_composite): New
13189         functions.
13190         * troff/env.c (environment::environment): Initialize composite.
13191         * troff/input.c (charinfo_to_node): Call
13192         environment::set_composite.
13193         * troff/node.c (make_composite_node, make_glyph_node): Use the
13194         plain version of the tfont if the environment is composite.
13196         * troff/node.c (font_info::get_space_width): Additional argument
13197         giving space_size.  Handle constant space correctly. Scale by
13198         space_size unless constant spaced.
13199         (env_sentence_space_width): New function.
13200         * troff/node.h: Declare it.
13201         * troff/env.h (environment::get_space_size,
13202         environment::get_sentence_space_size,
13203         environment::get_narrow_space_width,
13204         environment::get_half_narrow_space_width): Make inline.
13205         (environment::get_space_width): Make inline.  Just call
13206         env_space_width.
13207         * troff/env.c: Delete definitions for funtions made inline.
13208         (environment::space_newline, environment::space): Use
13209         env_sentence_space_width(). Don't scale by space_size.
13210         * troff/node.h: Move declarations of env*space_width() functions
13211         into env.h.
13213 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
13215         * macros/tmac.s (PS): Don't try to set negative indent.
13217 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
13219         * pic/pic.y: Fix min function.
13221 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
13223         * man/mdate.sh: Clear LANGUAGE.
13225 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
13227         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
13228         * pic/lex.c: New COMMAND keyword.
13229         * pic/pic.y (print_args, print_arg): New rules.
13230         (placeless_element): Use print_args for PRINT.
13231         New COMMAND element.
13233 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
13235         * troff/input.c (terminal): Handle missing argument correctly.
13237         * pic/pic.y (text_expr): New rule.
13239         * pic/pic.y: Implement := operator.
13241 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
13243         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
13244         mdoc.
13246 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
13248         * ps/devps/dingbatsrmap: Include this in the distribution.
13250         * macros/tmac.doc: Replace with new version from 2nd Networking
13251         Release. Fix loading of doc-* files.
13252         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
13253         * macros/tmac.doc.old: New file.  Apply fixes that had been
13254         applied to old tmac.doc.
13255         * macros/tmac.andoc: Check that we're running under groff.
13256         * macros/Makefile: Rework.
13258 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
13260         * tbl/table.h (format_type): 
13261         * refer/token.h (token_type): If NESTED_TYPES is defined, use
13262         typedef to make these types visible at file scope.
13263         * Makefile: Add NESTED_TYPES configuration option.
13265         * troff/div.c (mark): At the top level use the value of
13266         nl_reg_contents rather than the current vertical position.
13268 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
13270         * tty/tty.c: Implement \D for horizontal or vertical lines.
13271         (tty_printer::set_char): Use vec_used+2 as serial number.
13272         Don't allow size of vector to exceed USHRT_MAX-2.
13273         Split off part into...
13274         (tty_printer::add_char): New function.
13275         (tty_printer::draw): New function.
13276         (compare_glyph): Handle equal serial numbers.
13277         (tty_printer::end_page): Handle overstruck characters from \D.
13278         (main, usage): Implement -d option.
13280 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
13282         * tbl/main.c (process_format):
13283         * eqn/text.c (split_text):
13284         * troff/input.c (token::next): Use inner block for declarations
13285         with initializers in switch statement.
13287 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
13289         * pic/common.c (common_output::dash_line): Cope with zero-length
13290         lines.
13292 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
13294         * Version 1.04 released.
13296 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
13298         * macros/tmac.an (TH): Define a macro an-init to define variables
13299         based on command line arguments.
13300         (an-header): Call it.
13302 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
13304         * Makefile (install.mm): Rename to install.dwbmm.
13306         * Makefile: Integrate mm.
13307         * mm: New directory.
13309 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
13311         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
13312         <sys/types.h>.
13314         * pic/troff.c (troff_output::simple_spline,
13315         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
13316         shadowing parameter.
13318         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
13320         * lib/ptable.h: Add explicit casts when converting from unsigned
13321         long to unsigned.
13323         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
13324         * dvi/devdvi/Makefile: Install SA, SB.
13326         * refer/indxbib.c: Add declaration of mktemp.
13328         * refer/lookbib.c: Add declaration of isatty.
13330 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
13332         * pic/lex.c (interpolate_macro_with_args):  While collecting
13333         arguments, keep track of whether we're in a string.
13335 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
13337         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
13338         down with \v, so as to avoid problems with top of page trap
13339         setting no space mode.
13341 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
13343         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
13345 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
13347         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
13348         Improve error message.
13350 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
13352         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
13353         printf("%03o");
13355 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
13357         * groff.c (possible_command::execp): Always use _exit() after a
13358         failed exec.
13360         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
13361         NO_SYS_WAIT_H   configuration options.
13362         * groff.c: Use these options.  Use POSIX-style macros to extract
13363         fields from the status returned by wait().
13365 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
13367         * tbl/table.c (table::compute_separation_factor): Allow the
13368         separation factor to drop to 0.
13370 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
13372         * refer/search.c: Include <errno.h>.
13374 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
13376         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
13378         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
13379         C++. 
13381         * pic/lex.c (input_stack::bol): Move definition out of class body.
13383         * pic/main.c: On MSDOS munge argv[0].
13385         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
13387         * lib/ptable.c (hash_string): Use unsigned long rather than
13388         unsigned.
13389         (next_ptable_size): Use unsigned rather than int.  Give an error
13390         message if we've hit the largest table size.
13391         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
13392         table size.
13394         * pic/object.h (object_spec): Make flags unsigned long.  Declare
13395         flags as const unisgned long rather than as enums.
13397         * pic/output.c: Deleted.
13399         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
13401         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
13402         Add additional argument.
13403         (line_entry::note_double_vrule_on_{left,right}): Set value of
13404         douvle_vrule_on_{right,left} flag according to argument.
13405         (simple_line_entry::simple_print,
13406         simple_line_entry::double_line_print): If adjacent to double vrule
13407         on a corner extend rather than shorten the rule by half the double
13408         vrule sep.
13410         * troff/number.c (parse_term): In checking for overflow, handle the
13411         case where the current horizontal position is negative.
13413 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
13415         * pic/object.c (draw_arrow): Check for object having zero length.
13417 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
13419         * eqn/main.c (do_file): Split off inline equation handling into...
13420         (inline_equation): New function.  Search for starting delimiter
13421         using...
13422         (delim_search): New function. Don't recognize a delimiter that
13423         occurs in the name of an escape sequence, number register, string
13424         etc.
13426 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
13428         * eqn/delim.c (delim_box::compute_metrics): Don't call
13429         define_extensible_string if left is 0.
13430         (delim_box::output):  Don't print the left delimiter if left is 0.
13431         (delim_box::debug_print): Check for left == 0 before calling printf.
13433 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
13435         * troff/Makefile (majorminor.c): Include only digits in
13436         minor_version.
13438 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
13440         * refer/dirnamemax.c: new file.
13441         * refer/genlimits.c: Deleted.
13442         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
13443         Don't check path length.
13444         * refer/Makefile: Add dir_name_max.o; delete genlimits.
13445         * Makefile: Add PATHCONF_MISSING option.
13447         * refer/indxbib.c (get_cwd): New function.
13448         (main): Use get_cwd().
13449         * lib/getcwd.c: New file.
13450         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
13451         GETCWD in SUBFLAGS.
13452         * lib/Makefile: Compile getcwd.o.
13454         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
13455         userdict.
13457         * refer/indxbib.c (main): Check success of mktemp.
13459         * lib/tmpfile.c: New file.
13460         * lib/Makefile: Add tmpfile.c.
13461         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
13462         * ps/ps.h: Delete declaration of mktemp().
13463         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
13464         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
13465         * driver/driver.h: No need now to include errno.h.
13467         * everywhere: Set errno to 0 before calling fopen().
13469         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
13470         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
13471         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
13473 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
13475         * troff/env.h (translate_space_to_dummy): Declare it.
13476         * troff/env.c (environment::space_newline, environment::space):
13477         If translate_space_to_dummy is set then make the width of spaces 0.
13478         * troff/input.c (translate): If the second character of a
13479         translation is a space, translate to unbreakable space.  If the
13480         first character is a space, set or clear translate_space_to_dummy
13481         according to whether the second character is \&.  Weird!
13483 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
13485         * groff.c (run_commands): Don't use non-zero exit code because a
13486         command gets SIGPIPE.
13488         * groff.c, groff.sh: Use -mXps with -TXps.
13490         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
13491         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
13492         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
13493         (ps_printer::special): New specials invis and endinvis.
13494         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
13495         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
13496         (ps_printer::end_page): Check that invis_count == 0.
13497         (ps_printer::invis_count): New member.
13498         (ps_printer::ps_printer): Initialize invis_count to 0.
13500         * troff/env.c (environment::hyphenate_line): Hyphenation
13501         indicator at beginning of word inhibits splitting after -, \(em
13502         etc.
13504         * pic/pic.y (element): Allow another element to follow } without
13505         any intervening separator.
13507 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
13509         * pic/lex.c (get_delimited): Allow tabs before delimiter.
13511 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
13513         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
13514         declaration of wait() in header files.
13515         * Makefile: Get rid of -DHAVE_UNION_WAIT.
13517         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
13519         * lib/lib.h: Declare return type of strerror as char *.
13521         * man/Makefile: Add g flag to sed substitutions.
13522         * Makefile (shgroff, bindist): Likewise.
13524 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
13526         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
13527         * ps/devps/prologue (PBEGIN): Define showpage after pushing
13528         userdict.
13530 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
13532         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
13533         userdict.
13535 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
13537         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
13538         group.
13540 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
13542         * troff/input.c (define_number_reg):  If currently undefined,
13543         don't define it if the argument is an invalid expression.
13545         * Makefile: Ignore return value of `if' commands without `else'
13546         parts.
13548         * Makefile: Split up CPPDEFINES into a series of separate
13549         configuration options.
13551         * troff/input.c (init_registers): Use time_t instead of long
13552         unless LONG_FOR_TIME_T is defined.  Use returned result rather
13553         than passing pointer.
13554         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
13556         * lib/Makefile (fontpath.h): Use gendef.
13558 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
13560         * troff/input.c (input_iterator::shift): Delete argument name.
13561         * troff/node.c (suppress_output_file::really_begin_page,
13562         suppress_output_file::really_transparent_char, node::ascii_print,
13563         node::tprint): Delete names of unused arguments.
13565 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
13567         * refer/label.y (string):  Pass $4 to command_error.
13569 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
13571         * Version 1.03 released.
13573 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
13575         * Makefile: Pass definition of SHELL in SUBFLAGS.
13577         * gendef: New file.
13578         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
13579         ps/Makefile: Use gendef to construct header files that are
13580         constructed from the Makefile.
13582         * macros/Makefile: make all should build stripped version of tmac.e.
13584         * refer/Makefile (clean): Remove y.output.
13586 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
13588         * ps/pfbtops.c (main): Add -v option which prints out a version
13589         number.
13590         * ps/Makefile (pfbtops): Link with libgroff.a.
13592 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
13594         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
13595         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
13597         * refer/lkbib.c (main): Always terminate reference with blank
13598         line.
13599         * refer/lookbib.c (main): Likewise.
13601         * refer/linear.c (file_buffer::load): Check that the file is not a
13602         binary file.
13604         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
13605         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
13606         Delete second inclusion of <sys/param.h>.
13608 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
13610         * troff/token.h (token::special): Deleted.
13612         * tbl/main.c (process_format): Rework so that opt->tab_char is
13613         recognized only when appropriate.
13615         * ps/Makefile (clean): Remove pfbtops.
13617 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
13619         * lib/font.c (text_file::next): Don't return if we have got a
13620         blank line.
13622 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
13624         * refer/refer.c (store_reference): Get hash code from old_table[i]
13625         when rehashing the table.
13627 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
13629         * eqn/box.c (box::top_level): Save size and prev size using \R and
13630         restore it afterwards. Set the size to the size at the beginning
13631         of the line.
13632         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
13633         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
13635         * refer/Makefile (limits.h): Use ./genlimits.
13637 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
13639         * refer/index.c: Delete declarations of stat() and fstat().
13641 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
13643         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
13645 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
13647         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
13649 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
13651         * troff/input.c (token::get_char): Handle \e.
13653         * refer/linear.c: Delete declarations of fstat() and stat().
13655 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
13657         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
13658         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
13660 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
13662         * troff/input.c (do_define_macro): Improve error handling for end
13663         of file while defining macro.
13665 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
13667         * eqn/box.h: Fix declaration of set_gsize.
13668         * eqn/box.c (set_gsize): Make argument const char *.
13669         (gsize): Declare as char *.
13670         * eqn/main.c (main): Don't convert gsize to int.
13671         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
13673         * Version 1.02 released.
13675 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
13677         * macros/tmac.andoc: New file.
13678         * macros/Makefile: Install tmac.andoc.
13680         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
13681         operator new and delete on OP_DELETE_BROKEN not being defined.
13682         * Makefile: Mention OP_DELETE_BROKEN.
13684 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
13686         * Makefile (bindist): Pass SUBFLAGS.
13688 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
13690         * Makefile, groff.c: Pass definitions to groff.c via device.h.
13692         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
13693         parameter.
13695         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
13697         * ps/ps.h, ps/psrm.c: Make comment_table and
13698         header_comment_table local to resource_manager::process_file.
13700         * groff.sh: With -TXps pass -printCommand option to gxditview.
13702         * groff.c (possible_command::print): Implement using
13703         append_arg_to_string.
13705         * xditview: Merge in new implementation with own ChangeLog.
13707 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
13709         * groff.c (main): Implement PRINT_OPTION.
13710         (append_arg_to_string): New command.
13711         (device_table): Set PRINT_OPTION flag for Xps.
13713 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
13715         * troff/groff.h: Rename to troff.h.
13717         * pic/lex.c (lookup_keyword, docmp): New functions.
13718         (get_token): Use new lookup_keyword.
13719         Don't include key.h.
13720         * pic/key.[ch], pic/pic.gperf: Deleted.
13721         * pic/Makefile: Remove gperf stuff.
13723         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
13724         into output.h.
13725         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
13727         * troff/Makefile, troff/node.c: Move definition of
13728         STORE_WIDTH into node.c.
13730         * etc/grog.pl, etc/grog.sh: Support -mdoc.
13732 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
13734         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
13735         dvi/devdvi/texb.map: Add lq and rq.
13736         dvi/devdvi: Regenerate fonts.
13737         * ps/devps/textmap: Add lq and rq.
13738         * ps/devps: Regenerate fonts.
13739         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
13740         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
13742         * pic/object.c (position_rectangle): When checking radius
13743         cope with possiblity that width or height is negative.
13744         (box_object::box_object): Have separate xrad and yrad with
13745         signs matching signs of dim components.
13746         (box_object::{north,south}_{east,west}): Use xrad and yrad.
13747         (box_object::print): With rounded boxes use absolute values
13748         for dim and rad arguments.
13750         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
13751         in fontpath.h.
13753         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
13755         * various files: Add explicit destructors to keep Saber CC +d
13756         happy.
13758 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
13760         * eqn/box.c (box::top_level): Restore fonts correctly after
13761         font changes in line containing inline equation.  Also
13762         restore previous font as well as current font.
13763         * eqn/pbox.h: Define necessary string and register names.
13765         * troff/input.c (token::next): Case 'R' calls do_register.
13766         (do_register): New function.
13768 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
13770         * groff.c, groff.sh: Support Xps device.  Allow each device
13771         to have a pseudo_name and a real_name.
13773         * groff.c (run_commands): Don't print `Broken pipe' messages.
13775         * ps/pfbtops.c: New file.
13776         * ps/Makefile: Add pfbtops.
13778         * troff/number.c (parse_term): Improved error message.
13780 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
13782         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
13784         * Makefile: Integrate refer.
13785         * refer: New directory.
13786         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
13787         man/lkbib.man: New files.
13788         * man/Makefile: Support refer man pages.
13790         * lib/lib.h: Declare is_prime.
13791         * lib/prime.c: New file.
13793         * troff/input.c (macro_source): New function.
13794         (init_input_requests): Bind "mso" to macro_source.
13796         * troff/env.c (environment::possibly_break_line): Maintain
13797         pointer to pointer to node to be split in ndp so as to avoid
13798         using address of freed node.
13800         * troff/env.c (environment::hyphenate_line): Maintain pointer to
13801         pointer to first node to be hyphenated in startp so as to
13802         avoid using address of freed node.
13804         * troff/env.c (class trie, class hyphen_trie): Make the
13805         elements of the trie be of type char not unsigned char.
13806         Declare arguments to be const char* instead of unsigned char *.
13807         
13808         * troff/env.c (hyphenate): Initialize hbuf[0].
13810         * troff/input.c (set_string): Declare p to be char * and cast
13811         *p to unsigned char when necessary.
13813         * troff/input.c (do_define_macro): Declare s to be const
13814         char*. Cast element to unisgned char when necessary, Declare
13815         d to be an int.  Handle EOF better.
13817         * troff/Makefile, troff/input.c: Different scheme for passing
13818         definitions of MACROPATH, HYPHENFILE and DEVICE.
13820 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
13822         * tty/devascii/R.proto: Delete entry for em.
13823         * tty/devlatin1/R.proto: Likewise.
13825 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
13827         * troff/input.c (translate): Stop when we get a space. Treat eof
13828         like newline.
13830         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
13832 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
13834         * tbl/main.c (process_format): A font name following a `f'
13835         modifier that starts with a digit can be only one character long.
13836         Also deal with EOF on the second character of the font name.
13838 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
13840         * troff/input.c (token::next): Turn \~ into an
13841         unbreakable_space_node.
13842         * troff/node.c (unbreakable_space_node): New class.
13843         * troff/node.h: Declare it.
13845 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
13847         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
13848         it's >= 0, before outputting it as a single byte.
13850 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
13852         * lib/font.c: Make font_char_metric::code an int.
13853         (font::get_code): Change return type to int.
13854         (font::load): Allow code to be arbitrary integer.
13855         * lib/font.h (font::get_code): Change return type to int.
13856         (font::number_to_index): Change argument type to int.
13857         * troff/input.c (token::next):  In case 'N', allow any value.
13858         Store value in token::val.
13859         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
13860         (token::get_char, token::add_to_node_list, token::process): Get
13861         number from val.
13862         (charinfo::set_number): Change argument to int.
13863         (charinfo::get_number):  Require that NUMBERED flag be set.
13864         (get_charinfo_by_number): Store numbered characters not between 0
13865         and 255 in a dictionary.
13866         * troff/charinfo.h (get_charinfo_by_number): Change argument type
13867         to int.
13868         (charinfo::number): Change type to int.
13869         (charinfo::set_number): Change type of set_number to int.
13870         * troff/node.c (troff_output_file::put_char_width,
13871         troff_output_file::put_char): Test whether character is numbered
13872         using charinfo::numbered().
13873         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
13874         values of num.
13875         * lib/nametoindex.c: New implementation to cope with arbitrary
13876         number characters.
13878         * troff/input.c (token::operator==): Test val for
13879         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
13880         TOKEN_SIZE.
13882         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
13883         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
13885 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
13887         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
13888         variable.
13890         * all Makefiles: rm targets of cp and >.
13892         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
13893         it.
13895         * eqn/lex.c (def_table): Add dollar.
13897 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
13899         * troff/input.c (do_width): Push back newline before closing delim
13900         like do_bracket.
13902 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
13904         * groff.c (possible_command::prepend_arg): New function.
13905         (main): Prepend device -m option.
13906         * groff.sh: Put device -m options before command-line options.
13908 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
13910         * macros/tmac.an (IP): Quote argument to TP.
13912         * ps/ps.c (main): New option -b, which sets...
13913         (broken_flags): New variable.
13914         (ps_printer::~ps_printer): Incorporate the setup section in the
13915         prolog if (broken_flags & NO_SETUP_SECTION).
13916         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
13917         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
13918         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
13919         ps_printer::print_needed_font_comment,
13920         ps_printer::print_supplied_font_comment,
13921         ps_printer::print_include_font_comments,
13922         ps_printer::lookup_doc_font, ps_printer::download_fonts,
13923         ps_printer::read_download_file, read_document_fonts, add_font,
13924         skip_line, parse_fonts_arg, document_font::document_font,
13925         document_font::~document_font, document_font::download,
13926         ps_output::include_file):  Deleted.
13927         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
13928         rather than %!PS-Adobe-2.0.  Make calls to
13929         resource_manager::need_font for each font that we used. Replace
13930         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
13931         print_supplied_font_comment, print_needed_font_comment by call to
13932         resource_manager::print_header_comments. Output %%Orientation
13933         comment. Output %%Requirements: numcopies comment if ncopies > 1.
13934         Don't output the prolog directly.  Instead call
13935         resource_manager::output_prolog.  Only define #copies when ncopies
13936         > 1.  Delete calls to print_include_font_comments  and
13937         download_fonts.  Add call to resource_manager::document_setup.
13938         (ps_printer::do_file): Call resource_manager::import_file instead
13939         of including it ourselves.
13940         (ps_printer::do_import): Likewise.  Also don't call
13941         merge_import_fonts. Push userdict on the dictionary stack before
13942         and pop it afterwards.
13943         Move declaration of ps_output into ps.h.
13944         * ps/psrm.c: New file implementing resource_manager class.
13945         * ps/ps.h: New file declaring ps_output and resource_manager
13946         classes.
13947         * ps/devps/zapfdr.ps:
13948         * ps/devps/symbolsl.ps:
13949         * ps/devps/prologue:  Use 3.0 conventions.
13950         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
13951         Add default definition of BROKEN_SPOOLER_FLAGS.
13952         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
13953         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
13955 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
13957         * etc/grog.pl: New file.
13958         * Makefile (GROG): New variable.
13959         Add GROG to SUBFLAGS.
13960         * etc/Makefile (GROG): New variable.
13961         (install.nobin): Install $(GROG) rather than grog.sh.
13963 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
13965         * eqn/special.c (special_box::compute_metrics): Make the input and
13966         output strings the same.  Get the new height and depth from the
13967         predefined height and depth registers.  Also make subscript kern
13968         and skew available.
13969         (special_box::compute_subscript_kern, special_box::compute_skew):
13970         New functions.
13972         * eqn/box.c (pointer_box::compute_skew,
13973         simple_box::compute_metrics, box::top_level)
13974         * eqn/text.c (prime_box::compute_metrics,
13975         prime_box::comput_subscript_kern)
13976         * eqn/limit.c (limit_box::compute_metrics):
13977         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
13978         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
13979         negative numbers in `nr' requests with a leading 0.
13981 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
13983         * eqn/special.c: New file.
13984         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
13985         Add new rule for simple.
13986         * eqn/lex.c (token_table): Add SPECIAL.
13987         * eqn/box.h: Declare make_special_box.
13988         * eqn/Makefile: Add special.[co].
13990 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
13992         * ps/devps/prologue: Possibly set packing to true while defining.
13993         Create grops dictionary here.  Initialize local variables before
13994         defining procedures.
13995         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
13996         the dictionary stack. Set strokeadjust and overprint to false if
13997         the relevant operators are defined.
13998         (PEND): New procedure.
13999         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
14000         prologue.  Do everything else in the setup section.
14001         (ps_printer::do_import): Just call PBEGIN and PEND around the
14002         picture. Also push userdict before, and pop it afterwards.
14004 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
14006         * troff/node.c (bracket_node::tprint): Brackets were being printed
14007         1m too low.
14009         * macros/tmac.an (SH, SS): Set fill mode.
14011 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
14013         * troff/div.c (top_level_diversion::begin_page): Set
14014         high_water_mark to 0.
14016 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
14018         * man/mdate.sh: New file.
14019         * man/mdate.c: Deleted.
14020         * man/Makefile: Use mdate.sh instead of mdate.
14021         (mdate): Deleted.
14023         * eqn/lex.c (do_gsize): Supply missing argument to error message.
14025 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
14027         * man/mdate.c: New file.
14028         * man/*.man: Replace modification date by @MDATE@.
14029         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
14030         (mdate): New target.
14032         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
14033         Remove illegal input characters.
14035 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
14037         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
14039 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
14041         * troff/div.c (begin_page): Change behaviour when
14042         !first_page_begun and !break_flag.
14044         * troff/input.c (do_name_test): Return 0 if argument is empty.
14046         * troff/input.c (read_long_escape_name): Require closing ] to be
14047         at same input level as opening [.
14049         * troff/input.c (read_increment_and_escape_name): New function.
14050         (get_copy, process_input_stack): Use this for \n.
14052 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
14054         * troff/div.c (top_level_diversion::begin_page): Ignore the
14055         current value of page_number if !first_page_begun.
14057         * groff.c (main): Fix declaration of buf.
14059         * troff/input.c (do_name_test): New function.
14060         (token::next): Implement \A.
14061         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
14062         (token::description, token::add_to_node_list, token::process):
14063         Handle TOKEN_ESCAPE.
14064         * troff/token.h: New token TOKEN_ESCAPE.
14066 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
14068         * pic/main.c (do_picture): Allow space before and after filename
14069         following `<'.  Check that the filename is not empty.
14071 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
14073         * Version 1.01 released. 
14075         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
14077         * dvi/tmac.dvi: ftr HR to H.
14079         * macros/tmac.e: Round up computation of $r.
14081         * xditview/tmac.X:  Don't give up completely in compatibility mode.
14082         Use \n(.s instead of \n[.s].
14084         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
14085         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
14086         Add u to factors inside \s[...]. Rename frac to dvi-frac.
14087         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
14088         short names in the char definitions.
14090         * ps/tmac.ps: Don't give up completely in compatibility mode.
14091         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
14092         quote in front of \n(.s. Add u to factors inside \s[...].
14094 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
14096         * tty/tmac.tty: Call the nroff request.
14098         * macros/tmac.e ((x, )x):  Better definitions that work properly
14099         in a diversion.
14100         (@0, @1): Helper macros for (x.
14102         * macros/tmac.e ($s, hl): Use \l rather than \D.
14104         * tty/tmac.tty: Make it work better in compatibility mode.
14105         (pchar): Rename to tty-char.
14107         * macros/tmac.e (@E): New macro.
14108         (r, i, b, rb, bi): Use @E.
14110         * macros/tmac.e (@F): Don't use (;...) syntax.
14112         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
14113         it was modified for groff.
14115         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
14117         * macros/tmac.e (<., .>): Removed.
14118         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
14120         * macros/tmac.e: Remove check that groff is being used.
14122         * macros/tmac.e (@C): Change families only if using groff; turn
14123         compatibility mode off while changing familes. Save compatibility
14124         mode before changing families and restore it afterwards.
14126         * macros/tmac.e (@h): Remove test for offset + line length.
14128         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
14129         (lo, th, ac): Define to call @S instead of using als.
14131         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
14132         the ratio of the vertical spacing to the point size in units
14133         expressed as a percentage.  Use these instead of $10r and $10R,
14134         Delete $10r and $10R.
14136         * lib/font.c (font::load): In default computation of space_width,
14137         divide by sizescale.  Use scale_round.
14139         * macros/tmac.an (TP): Don't call `nf'.
14140         (an-do-tag): Don't call `fi'.
14142 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
14144         * troff/input.c (process_input_stack): Handle the case where
14145         spaces at the beginning of an input line are followed by a
14146         newline.
14148 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
14150         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
14151         * groff.sh: Use pic -x with the dvi device.
14153         * dvi/devdvi/FontMakefile (H): Don't use -s.
14155         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
14156         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
14157         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
14158         in FONTS.
14160 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
14162         * ps/psfig.diff: New file.
14163         * ps/tmac.psfig: New file.
14165 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
14167         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
14168         (]-): Don't call ref*do-tl.
14170         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
14172         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
14173         (fn@do-FS): Rename to fn*do-FS.
14175         * troff/input.c (transparent_translate): New function.
14176         (process_input_stack): Apply transparent_translate before calling
14177         diversion::transparent_output(unsigned char).
14179 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
14181         * troff/input.c (do_define_macro): Define the macro before calling
14182         skip_line.
14184         * xditview/Makefile: Add DEVICES variable.  Change install target
14185         to use this.
14187 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
14189         * groff.c (run_commands): Handle the possibility that there are
14190         child processes other than those forked by us.
14192 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
14194         * lib/string.c (string::append): New function.
14195         * lib/stringclass.h: Declare it.
14197 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
14199         * eqn/main.c (main): New option -N which sets
14200         no_newline_in_delim_flag. 
14201         (do_file): If no_newline_in_delim_flag is set don't allow newlines
14202         in delimiters.
14203         * groff.c (main): Pass -N on to eqn.
14204         (help, synopsis): Mention -N.
14205         * groff.sh: Implement -N.
14207 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
14209         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
14210         (]-): Call ref*do-tl if ref*need-tl is non-zero.
14211         (XP): Allow as initializer.
14213 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
14215         * troff/env.c (environment::wrap_up_field): If field_spaces are
14216         non-zero and we have a current_tab, subtract padding from
14217         tab_distance.  If this makes tab_distance <= 0, use the next tab
14218         stop instead.  If there isn't any next tab or it's a left tab,
14219         wrap up the current tab.
14220         (environment::start_field): Initialize tab_precedes_field.
14221         (environment::wrap_up_tab): If there's a current field, update
14222         pre_field_width, field_distance and tab_precedes_field.
14223         * troff/env.h (environment::tab_precedes_field): New member.
14225 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
14227         * ps/ps.c (ps_printer::do_file): New function.
14228         (ps_printer::special): Bind to `file' special.
14229         (ps_printer::do_exec): Set ndefined_styles to 0.
14231 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
14233         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
14234         Avoid stripping first character from the start of unrecognized
14235         escapes.  Use lex_error instead of error to report errors.
14236         * eqn/lex.c (get_token): Rework handling of escapes.
14237         (lex_error): Move declaration into...
14238         * eqn/eqn.h.
14240         * xditview/xditview.c (main): Make -page option work.
14242         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
14244 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
14246         * macros/tmac.s (B2): Correct size of box.
14248 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
14250         * macros/tmac.s (B2): Postpone drawing the box until in the
14251         top-level diversion.
14253         * tty/tmac.tty: Add font translations for C, CR, CW.
14255         * groff.c (synopsis, help): Document -i.
14256         * groff.sh: Implement -i.
14258         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
14259         Simplify the construction of SN.
14261         * troff/number.c (parse_term): Give `|' a higher precedence.
14262         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
14263         accordingly.
14265         * macros/tmac.s (B2): Use par@finish instead of par@reset.
14267 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
14269         * lib/string.c (string::move): New function.
14270         * lib/stringclass.h: Declare it.
14272 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
14274         * troff/env.c (distribute_space): Add optional argument
14275         `force_forward'.
14276         (environment::wrap_up_field): Call distribute_space with
14277         `force_forward' argument of 1.
14279 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
14281         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
14282         Inline it.  Move reallocation into...
14283         (string::grow1): New function.
14284         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
14285         dependencies to include library header files.
14286         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
14288 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
14290         * macros/tmac.s (@NH): Use the same number registers than -ms does
14291         for the heading level counters.  Use the same string that -ms does
14292         for the number for this heading.
14294 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
14296         * lib/new.c (operator new): Cast result of malloc to char *.
14298         * troff/input.c (spring_trap, lookup_request): Add assert that nm
14299         is not null.
14301 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
14303         * groff.c (main): Support -i.
14305 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
14307         * pic/pic.h: Include <osfcn.h>.
14309         * ps/ps.c: Add declaration of mktemp.
14311         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
14312         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
14313         argument as union wait *.
14314         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
14315         argument to union wait *.
14317 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
14319         * tty/tmac.tty: Add definition of \(co.
14321         * pic/object.c (make_arc): Only increase radius when radius
14322         strictly less than d.
14323         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
14324         more than once.
14326         * troff/env.c (environment::environment(symbol),
14327         environment::environment(const environment *)):  Initialize
14328         input_trap_count.
14330 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
14332         * tbl/main.c (main): Add exit(0).
14334         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
14336         * pic/main.c (main):
14337         * eqn/main.c (main):
14338         * tbl/main.c (main):
14339         * etc/soelim.c (main):
14340         * driver/printer.c (printer::~printer):
14341         * troff/node.c (real_output_file::~real_output_file,
14342         real_output_file::flush):  Check for errors on stdout.
14344         * most files: Add 1991 to copyright notice.
14346         * macros/tmac.s: Don't test \n(.x and \n(.y.
14348         * troff/input.c (token::next): Rename `escape_char' label to
14349         `handle_escape_char' and `normal_char' label to
14350         `handle_normal_char'.
14352 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
14354         * groff.c (main, synopsis, help): Support -a option.
14355         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
14356         to trflags while parsing options.
14358 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
14360         * troff/number.c (parse_term): With `m', `M' and `n' scale
14361         indicators, convert scale factor to hunits before scaling.
14363 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
14365         * lib/font.c (scale_round): Better test for overflow when n is
14366         negative.
14368 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
14370         * tbl/main.c (process_format): Add second argument of type
14371         options*. Change callers.  Allow opt->tab_char as well as '\t'
14372         between format items.
14374 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
14376         * macros/tmac.an (PD): With no arguments, make sure register PD is
14377         at least \n[.V].
14378         (TH): Call PD with no argument, instead of setting register PD
14379         directly.
14381 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
14383         * Version 1.00 released.
14385 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
14387         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
14389         * dvi/devdvi/DESC: Mount CW instead of CR.
14391         * dvi/tmac.dvi: Add definition of \(tm.
14393         * dvi/devdvi/texsy.map: Add lh, and rh.
14394         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
14395         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
14397         * dvi/devdvi/FontMakefile: Generate H from cmss10.
14398         * dvi/devdvi/Makefile: Install H.
14399         * dvi/devdvi/H: New file.
14401 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
14403         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
14404         be 0.
14406 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
14408         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
14410         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
14412         * macros/tmac.s (@EN): Handle the case where the equation is empty
14413         but the label is not.
14415 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
14417         * troff/groff.h: New warning category WARN_SPACE.
14418         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
14419         WARN_SPACE to warning_table.
14420         (interpolate_macro): Give a warning of type WARN_SPACE if the name
14421         is longer than two characters and is not defined, but the first
14422         two characters do make a defined name.
14424         * PROBLEMS: New file.
14426         * CHANGES: New file.
14427         * README-0.6, README-1.00: Deleted.
14429         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
14430         * xditview/devX75/Makefile: Make devX75-12.
14431         * xditview/devX100/Makefile: Make devX100-12.
14433         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
14434         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
14436 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
14438         * README-0.7: Rename to README-1.00.
14440         * macros/tmac.pic: New file.
14441         * macros/Makefile (install.nobin): Install tmac.pic.
14443 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
14445         * troff/env.c (hyphen_word): Correct the test for whether the
14446         token is a hyphen.  Reset npos to 0.
14448         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
14450 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
14452         * macros/tmac.s (ds*common-end): Call par*reset.
14453         (PE): Likewise.
14454         (par@reset-indent): Deleted.
14456         * macros/tmac.s (@IP): Divert the label.
14458 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
14460         * xditview/draw.c (setGC): Use a line width of .1m rather than
14461         .04m by default; round rather than truncate value.
14463         * tbl/table.c (class empty_entry): New class.
14464         (empty_entry::empty_entry, empty_entry::line_type): New functions.
14465         (table::add_entry): Represent empty entries by objects of type
14466         empty_entry.
14467         (table_entry::line_type): Return -1.
14468         (table::determine_row_type): Ignore entries with line_type 0.
14469         Treat type -1 as non-lines.
14471 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
14473         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
14474         macros/tmac.s: Rename \(-d to \(Sd.
14476 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
14478         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
14479         * xditview/libXdvi/DviChar.c: Likewise.
14480         * dvi/devdvi/texsy.map: Add `<<', `>>'.
14482 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
14484         * troff/div.c (top_level_diversion::begin_page): Call
14485         init_output() if the_output is 0.
14487 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
14489         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
14490         ESCAPE_c.
14491         (get_copy): Turn \E into ESCAPE_E.
14492         (token::process, asciify): Handle ESCAPE_E.
14494         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
14495         (RD): New macro.
14496         (DS): Implement `.DS R'.
14498 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
14500         * macros/tmac.s (FS): New macro.
14502         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
14504         * macros/tmac.s (cov*tl-init): Remove after first execution
14505         instead of aliasing to @nop.  Call top of page macro explicitly
14506         instead of setting trap; call @init first.  Set pg@top as top of
14507         page macro.
14508         (cov*auto-init): Deleted.  Set cov*tl-init instead of
14509         cov*auto-init as top of page trap. 
14510         (TL, LP): Do a break instead of calling cov*tl-init.
14511         (cov*print): With RP format but no TL, alias FS and FE to @FS and
14512         @FE; in this case also give a warning and always start another
14513         page. No need to set pg@top here.
14514         (cov*tl-init): Rename to cov*first-page-init.
14516         * macros/tmac.s (RP): Do `.pn 0'.
14517         (cov*tl-init): With RP format don't do `.pn 0'.
14519         * macros/tmac.s (pg@cs-top): Set no space mode.
14521         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
14522         (cov*ab-init): Alias TL, AU and AI to these.
14524 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
14526         * macros/tmac.s (@EQ): Move the space before the equation into @EN
14527         (@EN): Do nothing unless \n[dl] is > 0.
14529 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
14531         * pic/object.c (ellipse_object::radius): New function.
14533         * VERSION: Change version to 0.7.
14535         * tbl/table.c (block_entry::do_divert): Declare return type as
14536         void.
14537         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
14539 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
14541         * troff/column.c: New file.
14542         * troff/Makefile: Corresponding changes.
14544         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
14545         Friend of vunits.
14547         * troff/div.c (top_level_diversion::space): If the space causes
14548         the first-page transition and springs a trap, truncate the space
14549         to 0.
14551 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
14553         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
14554         the document.
14556         * pic/troff.c (troff_output::line_thickness,
14557         troff_output::set_fill): Do a horizontal motion to compensate for
14558         the width of the \D escape sequence.
14560 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
14562         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
14563         (not X75).
14565         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
14566         to printf.
14568         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
14569         Supply empty definition.
14570         (text_entry::simple_print, simple_text_entry::simple_print):
14571         Delete declarations.
14572         (table::add_entry): Represent empty entries by objects of type
14573         `simple_entry'.
14575 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
14577         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
14579         * tbl/table.c (left_text_entry::add_tab): New function.
14581         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
14582         initialize like LP.
14584 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
14586         * troff/env.c (environment::start_field): Give an error message if
14587         there is no next tab.
14589 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
14591         * troff/env.c (hyphenate): Skip initial elements with zero
14592         hyphenation code.
14594         * macros/tmac.s (par@init): Keep VS in points rather than units.
14596 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
14598         * pic/main.c (main): Implement `-c' option.
14599         * pic/output.h: Declare make_tpic_output().
14600         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
14601         protected.
14602         (tpic_output): New class.
14603         (tpic_output::tpic_output, tpic_output::set_pen_size,
14604         tpic_output::command, make_tpic_output): New functions.
14606 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
14608         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
14609         if they're not already defined.
14610         * tbl/table.c (init_output): Don't test \n(.g.
14612         * troff/input.c (do_if_request): Delete `g' condition. Recognize
14613         `d', `r' and `c' conditions even in compatibility mode.
14615 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
14617         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
14618         box.
14620 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
14622         * troff/env.h (environment::prev_line_interrupted): New member.
14623         (environment::get_prev_line_interrupted): New function.
14624         * troff/env.c (environment::newline): Set prev_line_interrupted.
14625         (environment::environment(const environment *),
14626         environment::environment(symbol)): Initialize
14627         prev_line_interrupted.
14628         * troff/input.c (process_input_stack): Don't give special
14629         treatment to space and newline at the beginning of the line if the
14630         previous line was interrupted.
14632 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
14634         * eqn/eqn.y: Disallow PRIME by itself.
14635         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
14636         PRIME.
14637         (def_table): Remove definition of '.  Define prime to be `.
14639         * eqn/eqn.y: Split off part of rule `script' into a new rule
14640         `nonsup'.
14642 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
14644         * macros/tmac.s ({, }): New string aliases.
14646 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
14648         * README-0.7: New file.
14650 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
14652         * macros/tmac.s: New file.
14653         * man/groff_ms.man: New file.
14654         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
14655         * Makefile.bd: Similarily.
14656         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
14657         definition of TMAC_S.
14658         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
14659         * macros/TODO: New file.
14661 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
14663         * troff/env.c (right_justify): New function.
14664         (init_env_requests): Bind this to request "rj".
14665         (center_lines): Set right_justify_lines to 0. If we get a bad
14666         integer, center 1 line.
14667         (environment::environment(symbol), environment::environment(const
14668         environment *)): Initialize right_justify_lines.
14669         (environment::get_right_justify_lines): New function.
14670         (init_env_requests): Bind this to number_register ".rj".
14672         * troff/env.c (environment::choose_breakpoint): Implement
14673         hyphenation_margin and hyphenation_space.
14674         (environment::get_hyphenation_space,
14675         environment::get_hyphenation_margin): New functions.
14676         (init_env_requests): Bind these to .hys and .hym.
14677         (hyphenation_space_request, hyphenation_margin_request): New
14678         functions
14679         (init_env_requests): Bind these to hys and hym.
14680         (environment::environment(symbol), environment::environment(const
14681         environment *)): Initialize hyphenation_margin and
14682         hyphenation_space.
14683         * troff/env.h: Corresponding changes to class environment.
14685 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
14687         * troff/div.c (blank_line): Always do a break.
14689         * eqn/box.c (do_text): Turn off escapes while appending text to
14690         string.
14692 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
14694         * troff/input.c (while_break_request, while_continue_request): New
14695         functions.
14696         (init_input_requests): Bind these to "break" and "continue".
14697         (while_depth, while_break_flag): New variables.
14698         (while_request): Update while_depth.  Break out of loop if
14699         while_break_flag is set.
14701 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
14703         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
14704         rather than 0.
14706 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
14708         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
14710         * stringify: New file.
14711         * Makefile (groff.o): Use stringify.
14713         * xditview/tmac.X: Remove definition of \(rn.
14714         * xditview/libXdvi/DviChar.c: Remove radicalex from
14715         Adobe_symbol_map.
14717 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
14719         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
14720         (alphabetic_block_entry::alphabetic_block_entry,
14721         alphabetic_block_entry::divert, alphabetic_block_entry::print):
14722         New functions.
14723         (block_entry::divert): Split off body into ...
14724         (block_entry::do_divert): If the block is alphabetic, subtract 2n
14725         from the line length; also update the span width to dl+2n, and the
14726         alphabetic span width to dl.
14728         * driver/input.c (do_file):  While reading argument to D command,
14729         when expanding buffer, multiply szp by sizeof(int) rather than 2
14730         in the argument to memcpy.
14732         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
14733         width of alphabetic columns.
14735 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
14737         * troff/node.c (lookup_family): Supply second argument to lookup.
14739         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
14740         search, return immediately if v is 0.
14742         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
14743         (troff_output::start_picture): Set this reg.
14744         (troff_output::end_picture): Remove this reg
14745         * eqn/box.c (box::extra_space): Don't produce `\x's if
14746         EQN_NO_EXTRA_SPACE_REG is defined.
14748         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
14749         * eqn/text.c (split_text): Map ' to \(fm when it's the first
14750         character.
14752 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
14754         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
14755         requests.
14757         * troff/div.c (top_level_diversion::top_level_diversion):
14758         Initialize page_number to 0.
14760 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
14762         * groff/troff (environment::environment(const environment *)):
14763         Initialize name to e->name, rather than "anonymous".
14765 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
14767         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
14768         requested_page.  Split middle part into ...
14769         (FindPage): New function.
14770         (SetValues): If we don't yet know the last page, and the requested
14771         page is greater than the current page, call FindPage.
14772         Update the font_map_string before doing this.
14774         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
14775         Translate \(lh and \(rh into left and right double arrows.
14777         * troff/node.c (class hyphen_inhibitor_node): New class.
14778         (hyphen_inhibitor_node::hyphen_inhibitor_node,
14779         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
14780         hyphen_inhibitor_node::type,
14781         hyphen_inhibitor_node::get_hyphenation_type): New functions.
14782         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
14783         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
14784         word.
14786 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
14788         * troff/node.h (dummy_node::get_hyphenation_type,
14789         transparent_dummy_node::get_hyphenation_type):  Declare them.
14790         * troff/node.c: (dummy_node::get_hyphenation_type,
14791         transparent_dummy_node::get_hyphenation_type): New functions.
14793 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
14795         * xditview/libXdvi/draw.c: If M_PI not defined after including
14796         math.h, then define it.
14798         * xditview/Makefile: Add definition of AR. Pass it to the submake
14799         in libXdvi.
14800         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
14802 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
14804         * troff/dictionary.h (object_dictionary::alias): Declare return
14805         value as int.
14806         * troff/dictionary.c (object_dictionary::alias): Return non-zero
14807         if the old name was defined.
14808         * troff/input.c (alias_macro): Give a warning if the old name was
14809         not defined.
14810         * troff/reg.c (alias_reg): Likewise.
14812 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
14814         * troff/input.c (token::next): Delete implementation of \R.
14816         * macros/Makefile: Strip comments from tmac.e while installing it.
14818         * troff/input.c: New variable `nroff_mode'.
14819         (troff_request, nroff_request): New functions.
14820         (init_input_requests): Bind `troff' and `nroff' to troff_request
14821         and nroff_request.
14822         (do_if_request): Compute results of t and n conditions from
14823         nroff_mode.
14825         * text/text.c (split_text): Fix typo in >=.
14827         * eqn/lex.c: Add definition of `==' to def_table.
14829 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
14831         * pic/tex.c (tex_output::start_picture): Change the definitions of
14832         \graph and \graphtemp so that they work properly with Plain TeX.
14834         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
14835         argument to `ar' is not less than the first.
14837         * pic/pic.y: Allow a comma between elements of the variable list
14838         in the argument to `reset'.
14840         * pic/object.c (arc_object::arc_object): Fix computation of
14841         radius.
14843         * eqn/main.c (main): Add exit(0).
14845 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
14847         * troff/div.c (begin_page): Test no_space_mode after doing the
14848         break, but still push the page ejector cookie before doing the
14849         break.  Also set the next page number after doing the break.
14850         
14851         * xditview/xditview.c (NewFile): Don't set the title and icon name
14852         if this is the first file and its name is `-'.
14853         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
14854         the X75 and X100 devices.
14855         (main): If a device has the XT_OPTION flag set and there's exactly
14856         one file argument, pass the driver -xrm and -title options to set
14857         the icon name and window title to the name of the file.
14859         * troff/env.c (environment_switch): If there was an argument but
14860         it wasn't a valid number or name, then pop an environment but
14861         don't give an error message on underflow.
14863         * troff/number.c (start_number): Correct spelling in error message.
14865         * troff/input.c (token::delimiter): Don't print an error message
14866         if err is false.
14868         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
14869         ParseDrawFunction if dw->display_enable is true.
14871 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
14873         * pic/pic.y: Parse text positioning like normal attributes, so as
14874         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
14875         positioning attribute.
14877 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
14879         * tbl/main.c (process_data): When in state START while reading a
14880         text block, don't change to state MIDDLE if c is a newline.
14882 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
14884         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
14885         so as to avoid shadowing parameter.
14887 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
14889         * tbl/table.c (trim_space): Deleted.
14890         (table::add_entry): Don't call trim_space.
14892 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
14894         * VERSION: Change version to 0.6.
14896         * troff/number.c (parse_expr): Make == work.
14898 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
14900         * man/grog.man: New file.
14901         * man/Makefile: Add grog.n to MAN1PAGES.
14902         * etc/grog.sh: New file.
14903         * etc/Makefile: Install grog.sh as grog.
14905 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
14907         * troff/input.c (token::next): Implement \E.
14909 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
14911         * xditview/tmac.X: Change font translations to match tmac.ps.
14913         * troff/input.c (non_empty_name_warning): Don't give a warning if
14914         `\{' terminates the name.
14916 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
14918         * ps/devps/symbol.diff: New file.
14919         * ps/devps/FontMakefile: Mention symbol.diff.
14921 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
14923         * troff/node.c (font_position): Use get_long_name to read the
14924         external_name.
14926         * troff/env.c (environment_switch): If we get a number that's < 0
14927         or >= NENVIRONMENTS, treat it like a name.
14928         Change NENVIRONMENTS to 10.
14930         * troff/groff.h: Remove definition of FONTS_MAX.
14931         * troff/node.h (class font_family): Make map a pointer instead of
14932         an array. Add a map_size member. Make it a class. Make nm const
14933         and public. Make invalidate_fontno a friend.
14934         * troff/node.c: Define font_table_size. Make font_info a pointer
14935         rather than an array.
14936         (class troff_output_file): Allocate font_position dynamically. Add
14937         nfont_positions member.
14938         (troff_output_file::set_font): Grow font_position if necessary.
14939         (troff_output_file::~troff_output_file): Delete font_position.
14940         (troff_output_file::troff_output_file): Allocate font_position.
14941         (grow_font_table): New function.
14942         (troff_output_file::really_begin_page,
14943         troff_output_file:really_copy_page): Use nfont_positions rather
14944         than FONTS_MAX.
14945         (mount_font_no_translate, mount_style): Call grow_font_table if
14946         necessary.
14947         (font_family::font_family): Allocate map.
14948         (font_family::make_definite): Grow map if necessary. Use
14949         font_table_size instead of FONTS_MAX.
14950         (font_family::~font_family): New function.
14951         (invalidate_fontno): Use font_family::map_size.
14952         (get_fontno, env_space_width, env_half_narrow_space_width,
14953         env_narrow_space_width, symbol_fotno, is_good_fontno,
14954         get_bold_fontno, make_glyph_node): Use font_table_size rather than
14955         FONTS_MAX.
14956         (next_available_font_position): Never return 0.
14958 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
14960         * ps/tmac.ps: Add font translations for compatibility with dpost.
14962 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
14964         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
14965         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
14966         Move definitions baseline_sep, shift_down, column_sep,
14967         matrix_side_sep into...
14968         * eqn/box.c: Add them to param_table.
14969         * eqn/pbox.h: Add declarations to pbox.h.
14971         * troff/input.c (set_string): Cast value to unsigned char *.
14973         * troff/token.h (process_input_stack): Declare it static before
14974         declaring it a friend.
14976 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
14978         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
14979         and bottom.
14980         * dvi/devdvi/EX: Regenerate.
14982         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
14983         transparent.
14985 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
14987         * eqn/lex.c: In defaults_table, make definition of `dot' call
14988         `dot_def'.  Don't explicitly make it roman.  Similarily for other
14989         accents.
14991         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
14992         argument.
14993         (for_input::get, for_input::peek): Use this.
14994         (do_for): Add by_is_multiplicative argument.
14995         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
14996         Change semantic value of optional_by to be a double plus a flag
14997         saying whethet the by clause is multiplicative.
14999         * eqn/lex.c (get_delimited_text): Remember location of start of
15000         definition.  Improve error handling when EOF is encountered.
15002         * lib/font.h: Rename handle_x_command to
15003         handle_unknown_font_command.
15004         * lib/font.c (font::load): Call handle_unknown_font_command for
15005         any unknown command in the font description file.  Don't call
15006         handle_x_command. Include the name of the command in the argv.
15007         Improve message for unknown command after kernpairs or charset
15008         command.
15009         * ps/ps.c (ps_font::handle_x_command): Rename to
15010         handle_unknown_font_command.  Remove message about `x download'
15011         command.  Give error message for wrong number of arguments.
15012         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
15013         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
15014         handle_unknown_font_command. Give an error message for wrong
15015         number of arguments.  Rename design_size to designsize.
15016         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
15017         checksum', `designsize' instead of `design_size'.
15019 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
15021         * eqn/*.[chy]: Change underaccent to uaccent.
15023         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
15024         give it the same precedence as ACCENT.
15025         * eqn/other.c (make_underaccent_box): New function.
15026         * eqn/box.h: Declare it.
15027         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
15028         def_table.
15030 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
15032         * pic/pic.y (reset_all): New function. Called in rule for RESET.
15033         (parse_init): Call reset_all.
15034         (define_variable): When defining scale reset only those
15035         pre-defined variables that are scaled.
15036         (defaults_table): Add `scale' as non-scaled value.
15038         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
15039         together with the text; allow any number of positioning words;
15040         allow center as a positioning word.
15042         * pic/object.c (output::compute_scale): Get picture maximum height
15043         and width from variables called maxpswid and maxpsht.
15044         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
15046 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
15048         * pic/object.c (object_spec::make_text): Multiply textht by number
15049         of text items.
15051         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
15052         occur.
15053         (do_sprintf): New function.
15054         (pic.gperf): Add sprintf token.
15055         (text, sprintf): New rules.
15057         * pic/pic.y: `rand()' with no arguments returns a random number
15058         in the range [0,1).
15060         * pic/pic.y: Allow a bare expression to be an attribute: change
15061         precedences to support this.  Change optional_ordinal rule to
15062         optional_ordinal_last to avoid reduce/reduce conflict.
15063         * pic/object.c (object_spec::object_spec): Initialize direction.
15065         * pic/pic.y: Implement ^ operator meaning exponentiation.
15067         * troff/node.h: Add default argument to mount_font.
15068         * troff/node.c (font_position): Read an optional third argument
15069         giving the external_name.
15070         (mount_font): Add optional argument giving the external_name.
15071         (mount_font_not_translate): Have additional argument giving
15072         external name.  Use this name to load the font.  Pass both names
15073         to font_info::font_info.
15074         (font_info::font_info): Have additional argument giving
15075         external_name.
15076         (class tfont): New member external_name.
15077         (font_info::get_tfont): Use external name to construct tfont_spec.
15079 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
15081         * eqn/lex.c (init_table): Add argument giving device.  Define
15082         name of device to be "1".
15083         (do_ifdef): Counts as true if the argument has been defined with
15084         `define'.
15085         * eqn/main.c (main): Call init_table with device argument. Make
15086         device local to main.
15087         * eqn/eqn.h: Change declaration of init_table. Remove declaration
15088         of device.
15090         * pic/lex.c (get_delimited): Allow text to be delimited by
15091         matching {}s.  Don't recognize ending delimiter within a string.
15093         * troff/input.c (get_delim_name): New function.
15094         (token::next): Implement \C.
15096         * lib/font.c (font::load): Grok ---.  Add an alias for each
15097         character based on its code.
15098         (font::get_code_width): Deleted.
15099         * lib/font.h (class font): Declare font::number_to_index().
15100         Remove declaration of font::get_code_width.
15101         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
15102         to indices of named characters.
15103         (font::number_to_index): New function.
15104         * troff/input.c (font::number_to_index): New function.
15105         (get_charinfo_by_number, charinfo::get_number,
15106         charinfo::set_number): New functions.
15107         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
15108         (token::process, token::description, token::get_char,
15109         token::add_to_node_list, token::operator==): Handle
15110         TOKEN_NUMBERED_CHAR.
15111         * troff/charinfo.h: Declare get_charinfo_by_number,
15112         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
15113         charinfo class.
15114         (charinfo::numbered): New function.
15115         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
15116         * troff/env.h (class environment): Remove declaration of ...
15117         * troff/env.c (environment::make_numbered_char_node): Deleted.
15118         * troff/node.c (make_numbered_node): Deleted.
15119         (class numbered_glyph_node): Remove.
15120         (troff_output_file::put_char_width, troff_output_file::put_char):
15121         Handle numbered chars.
15122         (troff_output_file::numbered_char): Removed.
15123         (tfont::get_code_width): Removed.
15124         (make_glyph_node): Don't search special fonts for numbered
15125         characters.
15126         * troff/node.h: Remove declaration of make_numbered_node.
15127         * driver/input.c (do_file): Handle N command.
15128         * driver/printer.h: Add declaration of ...
15129         * driver/printer.c (printer::set_numbered_char): New function.
15130         * dvi/tfmtodit.c (main): Generate unnamed entries.
15131         * ps/devps/afmtodit: Likewise.
15132         * xditview/xtotroff.c (MapFont): Likewise.
15133         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
15135         * tbl/main.c (process_format): If multiple widths are specified
15136         for a column but all the widths are the same, don't give an error
15137         message.
15139         * tbl/table.c (table::do_row): If the current row is all lines and
15140         the stuff doesn't contains a line, mark the top of the row after
15141         printing stuff before the row.  If the current row is not all
15142         lines and the stuff doesn't contain a line, don't unnecessarily
15143         mark the top of the row before printing the stuff.
15144         
15145 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
15147         * troff/groff.h: Remove MAX_PATH.
15148         * troff/input.c (open_file): Dynamically allocate space for the
15149         path.
15150         (open_mac_file, process_macro_file): Corresponding changes.
15152 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
15154         * troff/node.h (class output_file): Make copy_file pure.  Add
15155         vspace method ifdef COLUMN. Add is_printing method.
15156         * troff/node.c: Add class printing_reg. Add class
15157         real_output_file. Derive other output_file classes from
15158         real_output_file; in these classes rename begin_page to
15159         really_begin_page, print_line to really_print_line, copy_file to
15160         really_copy_file, transparent_char to really_transparent_char.
15161         Move output_file::flush to real_output_file. Add printing member
15162         to class output_file.
15163         * troff/div.h: Remove printing member from top_level_diversion.
15164         Add vspace member function to class diversion ifdef COLUMN. Add
15165         some declarations ifdef COLUMN.
15166         * troff/div.c (top_level_diversion::copy_file,
15167         top_level_diversion::transparent_output,
15168         top_level_diversion::output): Don't test printing member before
15169         output.
15170         * troff/input.c: Handle initial variable_space_request ifdef
15171         COLUMN.
15172         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
15173         but comment it out.
15175 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
15177         * troff/div.c (diversion::need): Make any space forced.  If we
15178         sprung a trap, set truncated_space to minus the distance to the
15179         trap and set needed_space to the amount that was needed.
15180         (top_level_diversion::space): A forced space turns no_space_mode
15181         off.
15182         (class constant_vunits_reg): New class.
15183         (init_div_requests): Implement number registers .trunc and .ne
15184         using constant_vunits_reg.
15185         (class truncated_space_reg): Deleted.   
15187         * troff/div.h: Don't have a no_space_mode member in diversion.
15188         Instead have it in top_level_diversion.
15189         * troff/div.c (diversion::diversion): Don't initialize
15190         no_space_mode.
15191         (top_level_diversion::top_level_diversion): Initialize
15192         no_space_mode.
15193         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
15194         (macro_diversion::output): Don't clear no_space_mode.
15196         * troff/input.c (diverted_space_node::reread): Don't call
15197         environment::do_break.  In fill mode, act like a blank line.
15198         (diverted_copy_file_node::reread): Don't call
15199         environment::do_break.
15201         * troff/div.c (blank_line): New function.
15202         * troff/div.h: Declare it.
15203         * troff/input.c (process_input_stack): Call it.
15205         * troff/div.c (truncated_space_reg::get_string): New function.
15206         (init_div_requests): Bind to .trunc.
15207         (space_request, top_level_diversion::space,
15208         top_level_diversion::output, macro_diversion::space,
15209         macro_diversion::output): Update truncated_space.
15210         (macro_diversion::output): Redo calculations when trap sprung.
15211         (macro_diversion::output, macro_diversion::space): No need for
15212         trap_flag.
15214         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
15215         after truncating post line spacing.
15217 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
15219         * ps/devps/prologue (MF, SF): Make them work even if setfont is
15220         defined as a procedure rather than as an operator.
15222 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
15224         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
15226 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
15228         * troff/div.c (top_level_diversion::output): Merge
15229         output_file::print_line and output_file::end_of_line member
15230         functions.
15231         * troff/div.h (class output_file):
15232         * troff/node.c (troff_output_file::print_line,
15233         troff_output_file::end_of_line, output_file::end_of_line,
15234         ascii_output_file::print_line, suppress_output_file::print_line):
15235         Corresponding changes.  
15237 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
15239         * troff/input.c (token::next): Don't give a warning for `\.'.
15241         * troff/env.c (environment::get_center_lines): New function.
15242         (init_env_requests): Bind number register .ce to it.
15243         * troff/env.h: Declare it.
15244         * tbl/table.c (table::init_output): Define reset macro to restore
15245         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
15246         Then do .ce 0.
15247         (table::print): If center option not given, then imply center
15248         option if SAVED_CENTER_REG > 0.
15250 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
15252         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
15253         Troff.ps from DOWNLOAD.
15254         
15255         * troff/Makefile: Change comment in DEFINES to avoid confusing
15256         System V make.
15258         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
15259         code.  Don't try to catch errors with stopped.
15260         (check_line_lengths): New function.
15261         * ps/devps/prologue (EXEC): Deleted.
15262         (EBEGIN, EEND): New procedures.
15264 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
15266         * troff/input.c: Include request.h before node.h.
15267         * troff/node.c: Likewise.
15268         * troff/env.c: Likewise.
15269         * troff/div.c: Likewise.
15270         * troff/node.h (class special_node): Store argument as a macro
15271         rather than a char *.
15272         * troff/node.c (special_node::special_node, special_node::copy):
15273         Grok this.
15274         (special_node::~special_node): Deleted.
15275         (special_node::tprint): Deleted.
15276         (special_node::tprint_start, special_node::tprint_end,
15277         special_node::tprint_char): New functions.
15278         (troff_output_file::special): Deleted.
15279         (troff_output_file::start_special, troff_output_file::end_special,
15280         troff_output_file::special_char): New functions.
15281         * troff/input.c (special_node::tprint): New function.
15282         (do_special): Use macro not char *.
15283         (do_transparent_macro): Deleted.
15284         (token::next): Don't call do_transparent_macro.
15286         * troff/input.c (token::next): Add 'Y' case.
15287         (do_transparent_macro): New function.
15288         * troff/node.c (troff_output_file::special): Handle newlines with
15289         argument using new continuation convention.
15290         * driver/input.c (get_string): Cope with continuation convention.
15291         (do_file): Don't call skip_line after calling get_string(1).
15292         * ps/ps.c (ps_printer::special, ps_printer::do_import,
15293         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
15294         arg.
15295         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
15296         with +.
15298 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
15300         * troff/input.c (asciify): By default, illegal input characters
15301         should return empty string.
15303         * troff/input.c (copy_file): Handle first page transition like title.
15304         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
15306         * troff/input.c (token::next): Improve error message for EOF after
15307         escape character.
15308         (input_char_description): New function.
15309         (get_char_for_escape_name): Use input_char_description.
15310         (token::next): Warn about unrecognized escape sequences.
15311         (warning_table): Add WARN_ESCAPE.
15312         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
15313         accordingly.
15315         * troff/token.h: Remove declaration of process_input_stack.
15317         * troff/input.c: Remove declaration of init_hyphen_requests.
15318         * troff/request.h: Correct spelling in declaration of same.
15320         * troff/input.c (token::next): Check whether escape_char is 0.
15322 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
15324         * groff.c (main, usage, help): Implement -P and -L options.
15325         * groff.sh: Likewise.
15327         * troff/input.c (token::next): Use some gotos to avoid code
15328         duplication.
15330         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
15331         Avoid calling symbol::symbol if name empty.
15333 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
15335         * troff/input.c (init_input_requests): Make \n(.x return the major
15336         version number and \n(.y return the minor version number.
15337         * troff/Makefile: Construct file majorminor.c defining
15338         major_version and minor_version automatically from ../VERSION.
15340         * troff/node.c (class glyph_node): Make operator new and operator
15341         delete public.
15342         (class ligature_node): Similarily.
15344         * troff/input.c (operator==(const macro &, const macro &)): New
15345         function.
15346         (non_interpreted_node::same): Use this.
15347         (string_iterator::string_iterator): Make macro& argument const.
15349         * troff/input.c (input_iterator::get): New function. Don't make
15350         asciify_macro or class non_interpreted_node friends of class
15351         input_iterator.
15352         (non_interpreted_node::interpret): Use input_iterator::get.
15353         (asciify_macro): Likewise.
15355         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
15356         ~non_interpreted_node): Deleted.
15357         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
15358         Deleted.
15360         * troff/symbol.h: Make all symbol member functions const.
15362         * lib/strtol.c: New file.
15363         * lib/Makefile: Add strtol.c.
15364         * Makefile: Define STRTOL as strtol.o to include strtol in
15365         libgroff.a.
15367 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
15369         * pic/troff.c (troff_output::simple_circle): Divide by scale.
15371 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
15373         * troff/input.c (do_special): Use input_level.
15375         * troff/token.h (TOKEN_BACKSPACE): New token.
15376         (token::backspace): New function.
15377         * troff/input.c (token::description, token::next, token::process):
15378         Grok TOKEN_BACKSPACE.
15379         (do_special): Turn TOKEN_BACKSPACE back into \b.
15381         * troff/token.h (token::leader): New function.
15382         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
15384         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
15386         * troff/input.c (do_special): Use token::description in error
15387         message.
15389 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
15391         * troff/input.c (decode_args): Combine quoted and
15392         quote_input_level variables. Make it a for (;;) loop.
15394         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
15396         * troff/input.c (read_long_escape_name): The test for whether to
15397         expand buffer was off by 1.
15398         (read_string): Similarily.
15400 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
15402         * troff/input.c: Use `const int' rather than `static const int'.
15404         * troff/div.h (diversion::copy_file): Declare as pure virtual.
15405         (macro_diversion::copy_file): New function.
15406         * troff/node.h: New class diverted_copy_file_node.
15407         * troff/node.c: Implement it.
15408         * troff/input.c (copy_file): Use diversion::copy_file. Handle
15409         first page transition by pushing a diverted_copy_file_node.
15410         * troff/input.c (token::next, process_input_stack): Don't handle
15411         COPY_FILE_REQUEST.
15413 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
15415         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
15416         whether space widths need adjusting.
15418         * troff/charinfo.h: Generalize translated_to_space to
15419         special_translation so as to allow translation to \&.
15420         * troff/input.c (translate): Allow translation to \&.
15421         (charinfo::*): Corresponding changes.
15422         * troff/node.c (make_node, node::add_char): Corresponding changes.
15423         * troff/node.h (dummy_node::dummy_node): Allow optional first
15424         argument.
15426         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
15427         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
15428         TOKEN_REQUEST.
15429         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
15430         TOKEN_REQUEST with an argument of TITLE_REQUEST.
15431         (token::process): Grok that.
15432         * troff/input.c (copy_file): Handle first page transition like
15433         title by pushing a COPY_FILE_REQUEST cookie.
15434         (token::next, process_input_stack): Grok that.
15435         * troff/node.h (output_file::copy_file): Add x and y arguments.
15436         Make it non-pure.
15437         * troff/div.c (top_level_diversion::copy_file): Supply them.
15438         * troff/node.c (troff_output_file::copy_file): Add x and y
15439         arguments; moveto specified position.  Invalidate font_position
15440         array after copying file.
15441         (output_file::copy_file): New function.
15442         (suppressed_output_file::copy_file, ascii_output::copy_file):
15443         Removed.
15444         * troff/input.c (transparent_file): New function.
15445         (init_input_requests): Bind to "trf".
15446         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
15447         (process_input_stack): Likewise.
15449         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
15451         * troff/node.c (init_node_requests): New number registers .kern
15452         pointing to global_kern_mode, and .lg pointing to
15453         global_ligature_mode.
15455         * troff/node.c (ligature): Don't change it if we get a bad
15456         integer.
15458         * troff/input.c (do_define_string): Don't strip tabs.
15460         * troff/input.c (asciify_macro): Make the string_iterator auto.
15462         * troff/node.c (init_font_requests): Rename to...
15463         (init_node_requests):
15464         * troff/node.h: Change declaration.
15465         * troff/input.c (main): Change call.
15467         * troff/input.c (node::reread, diverted_space_node::reread): New
15468         methods.
15469         (process_input_stack): Call reread rather than
15470         get_diverted_space_node.
15471         * troff/node.c (node::get_diverted_space_node,
15472         diverted_space_node::get_diverted_space_node): Removed.
15473         * troff/node.h: Declare reread methods instead of
15474         get_diverted_space_node methods. Make `n' member private.
15475         * troff/input.c: (token::diverted_space): Removed.
15476         * troff/token.h: Removed declaration.
15477         
15479 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
15481         * eqn/script.c (script_box::compute_metrics): Don't let
15482         SUP_RAISE_FORMAT become negative.
15484         * tbl/table.c (table::do_row): Entries that don't end in the
15485         this row shouldn't make the row non-blank.
15486         
15487         * tbl/table.c (table::make_columns_equal): Only set the width of
15488         columns which are marked as equal.
15489         
15490         * tbl/main.c (process_data): Before issuing excess data error,
15491         if last character was a newline unget it; then get it again after
15492         the error.  Also include the contents of the entry in the message.
15494         * groff.c: New file.
15495         * Makefile: Build groff from groff.c.  Make it possible to use
15496         either groff.sh or groff.c as groff.
15497         * Makefile.bd: Similarily.
15499 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
15501         * groff.sh: Don't delay expansion of $@ in assignment to files.
15502         Remove occurrences of \".
15504 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
15506         * all Makefiles: Simplify and rearrange.
15508         * Makefile: Handle fmod like malloc.
15509         * lib/Makefile: Similarily.
15510         * lib/fmod.c: Remove #ifdef NEED_FMOD.
15512         * Makefile: Rename OPTIMISE to OPTIMIZE.
15514         * groff.sh: Remove assignment to PATH.
15515         * Makefile: Remove SHPATH variable.
15516         * Makefile.bd: Similarily.
15518         * groff.sh: Add -V option to print the pipeline instead of
15519         executing it.
15521 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
15523         * lib/font.c: Split off file searching into ...
15524         * lib/fontfile.c: New file.
15526         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
15528 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
15530         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
15531         Also change misleading comment.
15532         (table::do_vspan): Change similarily misleading comment.
15533         * tbl/main.c (process_data): A format row with an explicit `s'
15534         uses up a data line, even if all the other columns are `_' or `='.
15536         * troff/input.c (token::description): Fix description of
15537         TOKEN_DUMMY and TOKEN_EMPTY.
15539 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
15541         * groff.sh: Fix description of -Z in help message.
15543 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
15545         * pic/object.c (object_spec::make_object): Allow negative and zero
15546         line thicknesses.
15547         * pic/pic.y: Give linethick default value of -1.0.
15548         * pic/troff.c (troff_output::troff_output): Initialize
15549         last_line_thickness to BAD_THICKNESS.
15550         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
15551         (troff_output::line_thickness): Canonicalize negative thicknesses
15552         to RELATIVE_THICKNESS.
15553         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
15554         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
15555         to -1.0.
15556         (tex_output::start_picture): Set pen_size to -2.0.
15558         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
15559         0, then use 0 linewidth.
15560         (ps_printer::ps_printer): Initialize line_thickness to -1.
15562         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
15564         * ps/devps/symbolchars: Remove `or'.
15565         * ps/tmac.ps: Implement \(or with .char.
15567         * ps/devps/symbolchars: Move most characters into textmap.
15568         * ps/devps/textmap: Add names for troff bracket characters. Remove
15569         ul, ru, br, bv.
15571         * ps/devps/TSymbol.ps: Removed.
15572         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
15573         * ps/tmac.ps: Do with .char what TSymbol did.
15574         * ps/devps/download: Remove TSymbol.
15576         * ps/devps/T: Removed.
15577         * ps/devps/Troff.ps: Removed.
15578         * ps/devps/Troff.afm: Removed.
15579         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
15580         * ps/devps/download: Remove Troff.
15581         * ps/devps/FontMakefile: Remove T target.
15582         * ps/devps/DESC-A4: Remove T from font list.
15583         * ps/devps/DESC-letter: Likewise.
15585         * troff/input.c (macro_to_node): Rename to ...
15586         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
15587         character's definition while processing it.
15588         * troff/node.c (node::add_char, make_node): Change calls to
15589         macro_to_node accordingly.
15591         * troff/input.c (token::next): Translate \_ to \(ul.
15593         * tty/devascii/R.proto: Add `|'.
15594         * tty/devlatin1/R.proto: Likewise.
15596 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
15598         * man: Put the version number in all the man pages.
15600 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
15602         * Makefile.bd: New file.
15603         * README.bd: New file.
15605         * VERSION: New file.
15606         * lib/version.c: Removed.
15607         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
15608         in clean target.
15610         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
15611         environment variable.
15613         * all Makefiles: Split install target into install.bin for
15614         binaries, and install.nobin for everything else.
15615         * Makefile: Add bindist target.
15617         * man/afmtodit.man: New file.
15618         * man/Makefile: Add afmtodit.n to MAN1PAGES.
15619         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
15620         in BINDIR.
15621         * ps/Makefile: Pass BINDIR to make install in devps.
15623         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
15624         the space character.
15626         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
15628 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
15630         * ps/ps.c: Redo font downloading.
15631         * ps/devps/download: New file.
15632         * ps/devps/Makefile: Add download to DEVICEFILES.
15633         * ps/devps/afmtodit: Remove -d option.
15634         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
15635         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
15636         * ps/devps/zapfdr.ps: Likewise.
15637         * ps/devps/TSymbol.ps: Likewise.
15639 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
15641         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
15643 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
15645         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
15646         then strip the first line if it starts with %.
15647         * Makefile: Add a comment about this.
15649         * man/tfmtodit.man: New file.
15650         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
15651         * dvi/Makefile: Install tfmtodit in BINDIR.
15653         * dvi/tfmtodit.c (usage): Mention -v option.
15655 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
15657         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
15658         * troff/node.c (troff_output_file::transparent_char): Don't call
15659         flush_tbuf.
15661         * eqn: Add check_tabs method to most box classes.
15662         * eqn/box.c (box::top_level): Call check_tabs.
15664         * eqn/script.c (script_box::output): Use \Z.
15665         * eqn/limit.c (limit_box::output): Use \Z.
15667         * eqn/box.c (box::top_level): Use itoa.
15669 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
15671         * dvi/tmac.dvi: Add font translations for CR, C, TT.
15672         * dvi/devdvi/Makefile: Don't make links to CW.
15674         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
15675         HX, HD.
15676         * xditview/tmac.X: Likewise.
15678         * troff/node.c: Add font translation feature.
15679         (get_font_translation): New function.
15680         (symbol_fontno): Translate the font name.
15681         (mount_font_no_translate): Rename to mount_font to this.
15682         (mount_font): New function.
15683         (font_family::make_definite): Call mount_font_no_translate instead
15684         of mount_font.
15685         (mount_style): Translate the font name.
15686         (font_translate): New function.
15687         (init_font_requests): Bind "ftr" to font_translate.
15689         * ps/devps/prologue (SN): New procedure that rounds a position to
15690         the nearest (pixel + (.25,.25)).
15691         (DL): Use SN to round endpoints.
15693         * lib/version.c: Changed version to 0.5.
15695 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
15697         * Makefile: Move definition of PAGE to the very beginning, so that
15698         people are less likely to miss it.
15700 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
15702         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
15704         * troff/env.c (environment::choose_breakpoint): Make `can't find
15705         breakpoint' error a warning of type WARN_BREAK.  Change message to
15706         `can't break line'.
15707         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
15708         code 040000.
15709         * troff/input.c: Add WARN_BREAK to warning_table.  Include
15710         WARN_BREAK in DEFAULT_WARNING_MASK.
15712         * tty/tmac.tty: Add definition of \(+-.
15714         * groff.sh: Remove `--' option to set command.
15716         * dvi/devdvi/texsy.map: Remove duplicate md entry.
15718         * ps/devps/eqnchar: Better definition of cdot using md.
15719         * dvi/devdvi/eqnchar:  Likewise.
15720         * xditview/devX100/eqnchar:  Likewise.
15721         * xditview/devX75/eqnchar: Likewise.
15722         * eqn/lex.c: Add definition of cdot.
15724 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
15726         * troff/input.c (get_optional_char): New function.
15727         * troff/input.c (set_page_character): Use get_optional_char(),
15728         rather than has_arg() and tok.get_char(1).
15729         * troff/env.c (tab_character, leader_character, hyphen_char,
15730         field_characters): Likewise.
15731         (margin_character): Likewise.  Also always delete the
15732         margin_character_node.
15734         * troff/input.c (token::get_char): Use token::description.
15736         * troff/input.c (has_arg): Don't skip over tab and \}.
15737         * troff/number.c (start_number): Give a warning if the number
15738         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
15740 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
15742         * troff/input.c (empty_name_warning, non_empty_name_warning): New
15743         functions.
15744         (get_name, get_long_name): Use these.  Rename `warn' argument to
15745         `required'.
15747         * troff/node.c (get_fontno): Test that the symbol is not null.
15749         * troff/input.c (token::description): New function.
15750         * troff/number.c (parse_term): Use token::description in `numeric
15751         expression expected' message.
15752         * troff/groff.h: Add WARN_MISSING.
15753         * troff/number.c (start_number): New function.
15754         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
15755         get_incr_number): Use start_number().
15756         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
15757         default.
15758         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
15759         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
15760         token::descripion.
15761         * troff/input.c (token::get_char): Use WARN_MISSING.
15762         * troff/input.c (token::delimiter): Use token::description.
15763         * troff/env.c (environment_switch): Back out Aug 3 change.
15764         * troff/input.c (has_arg): Skip over \}s and tabs but give a
15765         warning.
15766         * troff/token.h (token::tab): New function.
15767         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
15768         * troff/reg.c (alter_format): Likewise.
15769         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
15771 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
15773         * troff (most files): Redo warnings. Divide warnings into various
15774         categories; warning() has an additional first argument indicating
15775         the category it falls into.
15776         * troff/input.c (main): -w now takes an argument. New option -W.
15777         (enable_warning, disable_warning): New functions.
15779         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
15780         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
15782 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
15784         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
15785         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
15786         * xditview/devX75/eqnchar: Likewise.
15787         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
15789         * eqn/other.c: When bar or over applies to a single character
15790         don't produce an overline_box or an underline_box. Instead produce
15791         an accent_box or an underaccent_box, with the accent a line
15792         whose width is accent_width.  New classes underaccent_box,
15793         overline_char_box and underline_char_box.
15794         * eqn/box.h: Move overline_box, underline_box, accent_box class
15795         declarations into eqn/other.c. Add declarations of
15796         make_underline_box, make_overline_box, make_accent_box.
15797         * eqn/eqn.y: Call make_overline_box, make_underline_box
15798         make_accent_box instead of constructors.
15799         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
15801         * eqn/other.c: Add accent_box::~accent_box.
15802         * eqn/box.h: Declare it.
15804         * groff.sh: With -Tps, use eqn -D.
15806         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
15807         rather than \l.
15808         (underline_box::output): Similarily.
15809         (accent_box::output): Use \Z.
15811         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
15812         bit smaller.)
15814 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
15816         * troff/div.c (top_level_diversion::transparent_output(unsigned
15817         char)): Use asciify.
15818         * troff/input.c (asciify): Don't make it static.
15819         * troff/token.h (asciify): Declare it.
15820         
15821         * troff/input.c (get_name, get_long_name, token::get_char,
15822         token::delimiter): Add an extra default argument which says
15823         whether a warning should be printed.
15824         * troff: Pass a non-zero argument to one of these rather than
15825         printing a warning directly.
15827 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
15829         * troff: Consistently use symbol::is_null.
15831         * troff/dictionary.h: Move some inline functions into
15832         dictionary.c.
15834         * troff/request.h: Move inline functions into input.c.
15835         (request_or_macro::invoke): Make it pure.
15837         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
15838         * troff/input.c (init_input_requests): Use class constant_int_reg.
15839         (class compatible_reg): Deleted.
15840         * troff/div.c (init_div_requests): Use class constant_int_reg.
15841         (class last_post_line_extra_space_reg): Deleted.
15843         * troff/env.c (tab_character): Don't change the tab character if
15844         we get an invalid argument.
15845         (hyphen_char): Similarily.
15847         * troff/reg.c (alter_format): Check that nm is not null.
15849         * Makefile, groff.sh: Make it possible to customize the commands
15850         used for printing PostScript and dvi files. Also make it possible
15851         to customize the path used by groff.sh.
15853         * eqn/eqn.y: Make `left' right associative.
15855 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
15857         * pic/pic.h: Added definition of M_SQRT2 for those systems that
15858         don't have it.
15860         * pic/pic.h: Removed definition of INT_MAX.
15862         * troff/node.c (italic_corrected_node::vertical_extent): Omit
15863         `return'.
15865         * troff/input.c (token::next):  Handle \R like \n.
15867 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
15869         * ps/tmac.pc (PSPIC): Simplify.
15871         * troff/env.c (tab_stops::to_string):
15872         * pic/pic.y (object_type_name):
15873         * pic/troff.c (simple_output::line):
15874         * pic/tex.c (tex_output::spline):
15875         * pic/object.c (object_spec::make_object):
15876         * tbl/main.c (process_data):  Add cases to switch statements to
15877         avoid cfront warnings. (Some of these are spurious, since the
15878         switch already has a default case.)
15880         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
15881         `ps-'.  Don't test systat; instead check number of arguments to
15882         ps-bb.
15884 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
15886         * macros/tmac.e: Do not decrease the page offset by 0.5i.
15888         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
15889         Unlink the file as soon as we have opened it, so that we don't
15890         have to bother with signal handlers.
15891         (handler): Deleted.
15892         (fatal_error_exit): Deleted.
15893         (main): Don't call signal.
15895         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
15896         can be ignored.
15897         * dvi/devdvi/Makefile: Use the -k option with S and MI.
15899         * pic/pic.y:  If there is a label, or an nth construction before
15900         the first `.' in the argument to `with', ignore it and generate a
15901         warning.
15902         * pic/lex.c (lex_warning): New function.
15904         * tbl/table.c (table::init_output): In section keep and release
15905         macro, use 0 indent when diverting and the correct indent when
15906         rereading.
15908         * troff/input.c (interpolate_number_format): Do not interpolate
15909         anything if the number register is not defined.
15911         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
15913 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
15915         * ps/devps/prologue (PICTURE): Set components of graphics state to
15916         their default values.
15918         * ps/devps/text.enc: Add trademark
15919         * ps/devps/textmap: Add names for club, spade, heart, diamond,
15920         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
15921         * ps/devps/symbolchars: Add names for summation and product.
15923         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
15924         suchthat. Add pp. Add upper-case letters.
15926         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
15927         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
15928         Upsilon.
15930         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
15931         rA (right angle bracket) to ra.  Introduce names for double-headed
15932         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
15933         * ps/devps/textmap: Likewise for ps device.
15934         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
15935         * tty/devascii/R.proto: Rename lA to la and rA to ra.
15936         * tty/devascii/R.proto: Likewise.
15937         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
15938         \(uA, \(dA.
15939         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
15941         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
15943         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
15944         def_table.
15946 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
15948         * troff/div.c (when_request): Use symbol::is_null rather than
15949         has_arg to determine whether we have an argument.
15950         (change_trap): Remove the trap if we get an invalid number. Give
15951         an error if we don't get at least the macro name.
15952         (diversion_trap): Remove trap if we get an invalid name or number.
15954         * troff/env.c (environment_switch): Pop if we get an invalid
15955         symbol or numeric expression.
15957         * troff/input.c (do_define_macro):  If EOF is encoutered while
15958         defining the macro, do tok.next() before returning.
15960         * troff/token.h (has_arg): Move definition from here, to ...
15961         * troff/input.c (has_arg): ... here
15963         * troff/env.c (space_size): Do nothing if we get an invalid argument.
15964         * troff/input.c (shift): Likewise.
15966         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
15967         for `.c'.
15969         * pic/troff.c (troff_output::start_picture):  Comment out calls to
15970         `..'.
15972         * eqn/main.c (do_file): Subtract 1 from current_lineno if
15973         interpret_lf_args succeeds.
15975         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
15976         \\.  This avoids problems with \$N.
15978         * groff.sh: Pass -C to preprocessors.
15980         * lib/lf.c (interpret_lf_args):  Be more flexible.
15982         * tbl/main.c (main): Add -C option.
15983         (table_input::get): Do not recognize TE if followed by character
15984         other than a space or newline unless -C option given.
15985         (process_input_file): Likewise for lf, TS.
15986         (process_data): Likewise for lf in text blocks.
15988         * eqn/main.c (main): Add -C option.
15989         (do_file): Don't recognize EQ, EN or lf if followed by character
15990         other than space or newline unless -C option given.
15991         * eqn/lex.c (file_input::read_line): Similarily.
15992         * eqn/eqn.h: Declare compatible_flag.
15994         * etc/soelim.c (main): Add -C option.
15995         (interpret_lf_args): Use version in libgroff.
15996         (do_file):
15998         * pic/main.c (main): Add -C option, which sets compatible_flag.
15999         (top_input::get), (top_input::peek):  If -C option not given,
16000         do not recognize .PS/.PE/.PF/.lf if followed by a character
16001         other than space or newline.
16002         * pic/lex.c (file_input::read_line): Similarily.
16003         * pic/pic.h: Add declaration of compatible_flag.
16005 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
16007         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
16009         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
16010         derived from node.  New class space_char_hmotion_node.
16011         * troff/input.c (asciify_macro): New function.
16012         * troff/input.c (init_input_requests): New request `asciify' bound
16013         to asciify_macro.
16014         * macros/mm.diff: New file.
16015         * Makefile:  In install.mm target use `patch' to apply
16016         macros/mm.diff.
16018         * troff/input.c (macro::print_size): Just print the size in bytes.
16020         * troff/div.c (return_request): Correct the argument
16021         interpretation.
16023 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
16025         * troff/node.h (class composite_node): Add sz member.
16026         * troff/node.c (composite_node::size): Return sz.
16027         * troff/input.c (macro_to_node):  Use the initial size in the
16028         environment as the size of the composite_node.
16030         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
16031         default.
16033 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
16035         * troff/div.c (change_trap): If we get a bad number expression,
16036         do nothing.
16038 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
16040         * lib/matherr.c (matherr): Define this only if math.h defines
16041         TLOSS.
16043 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
16045         * troff/div.c (macro_diversion::distance_to_next_trap): If there
16046         no diversion trap return vunits(INT_MAX - vresolution).
16048 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
16050         * troff/input.c (do_zero_width): New implementation that doesn't
16051         use a temporary environment. Use instead:
16052         (token::add_to_node_list): New function.
16053         * troff/env.c (environment::get_prev_char_height),
16054         (environment::get_prev_char_height),
16055         (environment::get_prev_char_skew): New functions.
16056         (environment::get_prev_char): New function.
16057         (environment::get_prev_char_width): Change to use get_prev_char.
16058         (init_env_request): Implement new registers .cht, .cdp, .csk.
16059         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
16060         \Z being processed in a separate environment.
16062 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
16064         * tbl/table.c: Removed TABLE_BOTTOM_REG.
16066         * tbl/table.c (table::init_output): In the section release macro,
16067         give a warning message if the section won't fit on one page.
16069         * tbl/table.c (table::do_top): Emit table keep only if table is
16070         boxed.
16071         (table::do_bottom): Likewise for table release.
16072         (table::table), (table::add_vertical_rule):  Remove reference to
16073         keep member.
16074         * tbl/table.h: Remove keep member.
16076         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
16077         SECTION_RELEASE_MACRO, if there's not enough space before the next
16078         trap to output the diversion, call T# ourselves, set
16079         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
16080         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
16081         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
16082         vertical position and return to it before turning traps on again.
16083         
16084 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
16086         * troff/node.c, troff/node.h: In classes derived from node,
16087         replace prev_char_width method by last_char_node method.
16088         * troff/env.c (environment::get_prev_char_width): Use
16089         node::last_char_node rather than node::get_prev_char_width.
16091         * Makefile: Added comment about -fno-inline on 68030-based
16092         Apollos.
16094         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
16095         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
16096         expressions using sizeof to int.
16097         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
16099         * macros/tmac.e (TS):  Don't move @f back past the current
16100         position.
16102 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
16104         * ps/ps.c (main): Buffer stderr.
16105         * dvi/dvi.c (main): Likewise.
16106         * tty/tty.c (main): Likewise.
16108         * ps/ps.c (ps_printer::do_import): Improve error handling.
16110         * troff/input.c (abort_request): Use asciify.
16112         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
16113         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
16114         type of first argument int rather than char.  This works around a
16115         bug on the 68030 based Apollo using g++ 1.37.1.
16117         * tbl/table.h (class table): Add `keep' member.
16118         * tbl/table.c (table::table): Initialize `keep'.
16119         (table::add_vertical_rule): Set `keep' to 1.
16120         (table::do_top): Only emit table keep macro is `keep' is non-zero.
16121         (table::do_bottom): Likewise for table release macro.
16122         (table::do_row): Emit section keep macro even if the row is 0.
16124 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
16126         * macros/tmac.e (@C): Preserve the font family across the change
16127         in environments.
16129 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
16131         * lib/font.c: Initialize font::hor and font::vert to 1.
16132         (font::load_desc): Check the values of font::hor and font::vert.
16134         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
16135         be included in a C compilation.
16136         (iftoa): Use INT_DIGITS. Include lib.h.
16137         (itoa): Likewise.
16138         (as_string): Likewise.
16139         * tbl/table.c: Removed definition of INT_DIGITS.
16140         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
16141         * troff/input.c (input_input_requests): Likewise.
16142         * ps/ps.c (make_encoding_name): Likewise.
16143         (ps_printer::set_style): Likewise.
16144         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
16146         * tty/devascii/R.proto: Map fm onto '.
16147         * tty/devlatin1/R.proto: Likewise.
16149 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
16151         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
16152         argument to \w is at a different input level.
16154         * tbl/table.c (table::init_output): Define a new macro
16155         REPEATED_VPT_MACRO, like vpt but if in a diversion also
16156         transparently outputs itself.
16157         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
16158         vpt.
16159         (table::do_row): Likewise.
16161         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
16162         TRANSPARENT_STRING_NAME.
16164         * tbl/table.c (table::init_output): In the table release macro
16165         print an error message and don't produce any output if after
16166         issuing the need request the table still will not fit.  Also
16167         remove the diversion after bringing it back.
16169         * tbl/table.c (table::init_output): Define a new macro
16170         REPEATED_MARK_MACRO, like mk but if in a diversion also
16171         transparently outputs itself.
16172         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
16173         is necessary because .TH might not call .T#.
16174         (table::do_top): Likewise TOP_REG.
16175         (table::define_bottom_macro): If TOP_REG is no longer valid, use
16176         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
16177         table header might contain just the two top rules.
16179 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
16181         * troff/div.c: Implement new request `ptr' to print all traps.
16183         * troff/env.c (init_env_requests): Implement `.tabs' reg with
16184         init_string_env_reg.
16185         * troff/env.c (class tab_reg): Deleted.
16187 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
16189         * troff/div.c: New number register .pn returns the number of the
16190         next page as set by the pn request.
16192         * macros/tmac.an: Redid headers and footers.  Number each manual
16193         entry starting from 1 unless \nC is > 0, like Sun.  Added an
16194         optional 5th argument to .TH which specifies the manual name and
16195         appears in the center of the header.  Understand the X, P and D
16196         registers like Sun.
16198 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
16200         * troff/env.c (init_env_requests): New number register `.lt' to
16201         return the title length.
16203         * troff/node.h (class transparent_dummy_node): New class.
16204         * troff/node.c (class transparent_dummy_node): Provide member
16205         functions. 
16206         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
16207         than a dummy_node.
16209         * troff/input.c (token::next): New escape sequence \).
16210         * troff/input.c (get_copy): Recognize \) in copy mode.
16212         * troff/input.c (input_stack::clear): New function.
16213         * troff/input.c (exit_request): Use input_stack::clear.
16215         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
16216         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
16218         * troff/env.c: Move set_page_character to input.c.  Move
16219         page_character to input.c also.
16220         * troff/env.c (title): Split off the reading of the parts of the
16221         title into read_title_parts.
16222         * troff/input.c (read_title_parts): New function.  Check the
16223         input_level when testing whether a token matches the delimiter.
16225         * troff/input.c (exit_request): New function.
16226         * troff/input.c (init_input_requests): Bind ex request to
16227         exit_request rather than exit_groff.
16229         * troff/input.c (exit_groff): Call tok.next() before
16230         process_input_stack().
16232 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
16234         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
16235         * troff/env.h: ditto.
16236         * troff/input.c: ditto.
16238         * troff/env.c (environment::is_empty): Test pending_lines.
16240         * troff/env.c (environment::have_pending_lines): Removed.
16242         * troff/input.c: Add request to flush pending lines from the
16243         environment.
16245         * troff/env.c, troff/env.h: Add automatic widow control feature.
16247         * troff/input.c (exit_groff):  Do process_input_stack() after
16248         do_break() but before setting exit_flag to 2.
16250         * troff/input.c: Remove FLUSH_PENDING_LINES and
16251         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
16252         environment after END_TRAP token seen, but only if there aren't
16253         any more traps still unfinished.
16254         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
16256 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
16258         * troff/env.c: Rename the `retain_size' member of class
16259         pending_output_line to `no_fill'.
16261         * troff/env.c (title): When the line is output, make the
16262         retain_size argument !fill.
16264         * troff/node.h: Add `hyphenated' member to struct breakpoint.
16265         * troff/node.c (space_node::get_breakpoints),
16266         (dbreak_node::get_breakpoints):  Fill this in.
16267         * troff/env.c:  Allow specification of maximum number of
16268         consecutive hyphenated lines.
16270         * troff/env.c (environment::is_empty): Add test for !current_tab.
16272 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
16274         * troff/env.c (environment::hyphenate_line): Don't completely give
16275         up if the word is not to be hyphenated; continue so that breaks
16276         can be made at break_char_node's.
16278         * lib/lib.h: Only define INT_MAX if it's not already defined;
16279         undef INT_MIN if it's already defined.
16281         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
16283         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
16284         This works around a bug in AT&T C++ 2.0 used with an ANSI C
16285         compiler.
16286         
16287         * macros/tmac.an (an-header): Set no-space mode.
16289         * macros/tmac.an (TH): Start a new page if necessary.
16291         * Started using ChangeLog at version 0.4.
16293 Local Variables:
16294 version-control: never
16295 coding: latin-1
16296 End: