Use path separator character of target platform for compiled-in
[s-roff.git] / ChangeLog
blob69dc1fce4535d894902fcafaf70a849052200847
1 2003-12-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
3         Use path separator character of target platform for compiled-in
4         default paths.
6         * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
7         * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
8         * configure: Regenerated.
9         * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
11 2003-12-05  Werner LEMBERG  <wl@gnu.org>
13         * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
14         Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
16 2003-12-04  Bernd Warken  <bwarken@mayn.de>
18         * LICENSE: New file.
20 2003-12-03  Werner LEMBERG  <wl@gnu.org>
22         * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
23         ligatures present in AFM files since groff currently only
24         understands some standard ligatures and nothing else.
26 2003-12-03  Jeff Conrad  <jeff_conrad@msn.com>
28         * src/roff/groff/groff.cpp (main): Don't run the spooler if
29         option -v is given.
31         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
32         messages.
33         Close stdout copy.
34         Don't use Unix wait flags.
36 2003-12-02  Werner LEMBERG  <wl@gnu.org>
38         * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
39         src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
40         src/roff/troff/uniuni.cpp: Moved to...
41         * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
42         src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
43         src/libs/libgroff/uniuni.cpp: Here.
45         * src/include/Makefile.sub.old (HDRS),
46         src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
47         src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
49 2003-12-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
51         * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
52         `DEBUG_FILE'.
53         Updated all users.
55 2003-12-01  Werner LEMBERG  <wl@gnu.org>
57         * groff.texinfo: Document special behaviour of `.vs 0'.
58         Improve documentation of `cflags' request.
59         * NEWS: Updated.
61 2003-11-29  Werner LEMBERG  <wl@gnu.org>
63         * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
64         * font/devlj4/CORONET: Regenerated.
66 2003-11-24  Werner LEMBERG  <wl@gnu.org>
68         * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
69         if processing hyphenation patterns in traditional mode.
70         Improve error messages.
72 2003-11-20  Werner LEMBERG  <wl@gnu.org>
74         * src/roff/troff/node.cpp (troff_output_file::put_char_width,
75         troff_output_file::put_char): Fix type of local variable `c'.
77 2003-11-19  Werner LEMBERG  <wl@gnu.org>
79         * src/roff/groff/pipeline.c (P): Removed.  Updated all function
80         declarations.
81         (i_to_a): Removed.  libgroff already provides this function.
82         (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
84 2003-11-18  Keith Marshall  <keith.d.marshall@ntlworld.com>
86         * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
87         HAVE_DECL_SYS_LIST.
89 2003-11-17  Werner LEMBERG  <wl@gnu.org>
91         * COPYING: Use correct version.
93 2003-11-11  Werner LEMBERG  <wl@gnu.org>
95         LynxOS 4.0.0 doesn't declare vfprintf.
97         * configure.ac: Check for vfprintf.
98         * configure: Regenerated.
99         * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
100         * src/include/config.hin: Regenerated.
102 2003-11-10  Werner LEMBERG  <wl@gnu.org>
104         LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
106         * configure.ac: Check for vsnprintf.
107         * configure: Regenerated.
108         * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
109         `HAVE_VSNPRINTF'.
110         * src/include/config.hin: Regenerated.
112 2003-11-09  Werner LEMBERG  <wl@gnu.org>
114         * aclocal.m4: Updated syntax to autoconf 2.59.
115         (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
116         Don't check for gsos2.
117         (GROFF_SRCDIR, GROFF_BUILDDIR): Removed.  autoconf 2.59 provides
118         working abs_top_srcdir and abs_top_builddir.
120         * configure.ac: Updated syntax to autoconf 2.59.
121         Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
122         Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
123         * configure: Regenerated.
125         * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
126         s/@groff_top_builddir@/@abs_top_builddir@/.
128         * src/roff/groff/pipeline.c (xstrsignal):
129         s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
131 2003-11-07  Werner LEMBERG  <wl@gnu.org>
133         * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
134         make start angle smaller than end angle to circumvent a bug in tpic
135         handling of some versions of dvipdfm (and dvipdfmx).
137 2003-10-30  Werner LEMBERG  <wl@gnu.org>
139         * src/devices/grops/grops.man: Improve section on creating EPS.
141 2003-10-29  Werner LEMBERG  <wl@gnu.org>
143         * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
144         -P-pletter).
146 2003-10-28  Werner LEMBERG  <wl@gnu.org>
148         * doc/groff.texinfo: Fix documentation of `.if'.
150 2003-10-27  Michail Vidiassov  <master@iaas.msu.ru>
152         * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
153         the form `uniXXXX' also.
155 2003-10-27  Werner LEMBERG  <wl@gnu.org>
157         * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
158         contrib/pic2graph/pic2graph.sh: Implement secure management of
159         temporary files.
160         Pass `-P-pletter' to groff to avoid data outside of the converted
161         area -- some versions of `convert' (for example 5.3.8) don't check
162         the bounding box of the image but always use a fixed image size
163         (letter paper format).
164         * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
165         contrib/pic2graph/pic2graph.man: Updated.
167         * src/roff/groff/groff.man: Document $TMP and $TEMP.
169 2003-10-26  Werner LEMBERG  <wl@gnu.org>
171         * src/preproc/pic/troff.cpp (troff_output::simple_circle,
172         troff_output::simple_ellipse, troff_output::simple_arc,
173         troff_output::simple_line, troff_output::simple_spline,
174         troff_output::simple_polygon): Insert a space before arguments.
175         (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
176         latter doesn't produce a node, so the following `.sp -1' would do
177         the wrong thing.
178         Don't emit `.sp -1' after \M.  This also doesn't produce a token
179         (and we don't have to care about compatibility mode).
180         (troff_output::set_color, troff_output::reset_color): Don't emit
181         `.sp -1' after \M and \m.
183         * src/roff/troff/input.cpp (old_have_input): New global variable.
184         (input_stack::get): Handle `old_have_input'.
185         (process_input_stack) <token::TOKEN_NEWLINE>: Call
186         `trapping_blank_line' depending on `old_have_input', not
187         `have_input'.
189 2003-10-20  Keith Marshall  <keith.d.marshall@ntlworld.com>
191         * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
192         (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
193         default directory names for temporary files.
194         [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
196         * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
197         [__MSDOS__] (run_pipeline): Honour environment variables.
198         Don't use `tmpnam' but `tempnam' to work around messy
199         implementation.
201         * README.MinGW: New file.
203 2003-10-16  Werner LEMBERG  <wl@gnu.org>
205         * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
206         `(*t)->next' without testing validity of `*t'.
207         (usage): Make it more readable.
209 2003-10-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
211         Make html device run under both MS-DOS and Win32.
213         * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
214         MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
215         spawn or fork+exec has to be used, and whether parent must sleep
216         until the child process terminates.  Used in
217         `char_buffer::run_output_filter'.
218         (copyofstdoutfd): Removed.
219         (char_buffer): Replace `write_file_html' and `write_file_troff'
220         member functions with `emit_troff_output' and `run_output_filter'.
221         (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
222         macros.
223         (replaceFd): Replaced with...
224         (set_redirection): New auxiliary function.
225         (waitForChild): Replaced with...
226         (save_and_redirect): New auxiliary function for.
228         (char_buffer::do_html, char_buffer::do_image): Simplified, using new
229         functions.
231 2003-10-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
233         * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
234         (GROFF_LIBC): New function.
235         * configure.ac: Call GROFF_LIBC.
236         Check for `kill'.
237         * configure: Regenerated.
239         * src/include/lib.h: Handle __MINGW32__.
240         * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
241         Add macro for `pipe'.
242         Define P_tmpdir.
244         * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
245         correctly.
247         * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
248         Implement.
250 2003-10-13  Werner LEMBERG  <wl@gnu.org>
252         Finally fix change 2003-08-26, based on ideas from Chuck Silvers
253         <chuq@chuq.com>.
255         * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
256         directory.
258 2003-10-12  Werner LEMBERG  <wl@gnu.org>
260         * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
261         src/roff/troff/input.cc (usage): Updated.
263         * NEWS, doc/groff.texinfo: Updated.
265 2003-10-12  Peter Miller  <millerp@canb.auug.org.au>
267         * src/libs/libgroff/searchpath.cpp
268         (search_path::open_file_cautious): New function which also handles
269         `-' as stdin and stdout depending on the access mode.
270         * src/include/searchpath.h (search_path): Updated.
272         * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
273         * src/devices/grops/ps.h: Include `searchpath.h'.
274         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
275         Open resource file with `include_search_path.open_file_cautious'.
276         * src/devices/grops/grops.man: Document new `-I' switch.
278         * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
279         (main), src/devices/grolj4/lj4.cpp (main),
280         src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
282         * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
283         Replaced with...
284         (include_search_path): New global variable.
285         (include_path_append): Removed.
286         (main): Use `include_search_path.command_line_dir' to handle `-I'.
287         (do_file): Simplify, using new
288         `include_search_path.open_file_cautious'.
290         * src/roff/groff/groff.cpp (print_commands): Accept file handle as
291         parameter.
292         (main): Pass arguments to `-I' to both troff and devices.
293         Improve handling of `-V'.
294         * src/roff/groff/groff.man: Document changes to -I and -V.
296         * src/roff/troff/input.cpp (include_search_path): New global
297         variable.
298         (next_file, source, ps_bbox_request, transparent_file,
299         process_input_file): Use new
300         `include_search_path.open_file_cautious'.
301         (main) Handle `-I' switch.
302         * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
303         Use new `include_search_path.open_file_cautious'.
304         * src/roff/troff/node.h: New extern symbol `include_search_path'.
305         * src/roff/troff/troff.man: Document new `-I' switch.
307 2003-09-15  Ruslan Ermilov  <ru@FreeBSD.org>
309         Support multiple calls of .Lb in LIBRARY section.
311         * tmac/doc-common (doc-in-library-section): New register.
312         (doc-section-library): New string.
313         (Sh): Set `doc-in-library-section'.
314         (Rd): Updated.
315         * tmac/doc-syms (Lb): Insert breaks before and after arguments
316         if in LIBRARY section.
317         * tmac/doc.tmac (doc-save-global-vars): Updated.
318         * NEWS, tmac/groff_mdoc.man: Updated.
320 2003-09-14  Ruslan Ermilov  <ru@FreeBSD.org>
322         * tmac/doc-common (doc-default-operating-system): New variable.
323         (Os): Use it.
325 2003-09-08  Werner LEMBERG  <wl@gnu.org>
327         * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
329 2003-08-31  Werner LEMBERG  <wl@gnu.org>
331         * contrib/mom/Makefile.sub: Fix last change to make it really work.
332         * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
333         (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
334         $(DEVFILES) are not empty.
335         * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
337 2003-08-26  Chuck Silvers  <chuq@chuq.com>
339         * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
340         with parallel runs of `make'.
342 2003-08-23  Stephen Gildea  <gildea@stop.mail-abuse.org>
344         * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
345         insert SORT_SEP.  With certain combinations of sort specifications,
346         refer sorted entries in the wrong order.  In particular, entries
347         with a missing field should be be sorted before all entries that
348         have that field, before refer looks to the next field.
350 2003-08-23  Werner LEMBERG  <wl@gnu.org>
352         * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
353         g++ linker is used.  Reported by Mark J. Reed
354         <mark.reed@turner.com>.
356 2003-08-16  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
358         Add key character `x' to tbl which makes tbl call a user-defined
359         macro on a table cell.
361         * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
362         * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
363         `set_modifier' after printing the compatibility request.
364         (set_modifier): Print call to `m->macro' if not empty.
365         * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
366         `macro'.
367         (process_format): Implement cases `x' and `X'.
368         * src/preproc/tbl/tbl.man, NEWS: Updated.
370 2003-08-15  Werner LEMBERG  <wl@gnu.org>
372         * doc/groff.texinfo: Minor fixes.
374 2003-08-09  Werner LEMBERG  <wl@gnu.org>
376         * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
378 2003-08-07  Werner LEMBERG  <wl@gnu.org>
380         * doc/Makefile.sub: Not all shells expand wildcards in the `for'
381         argument list to nothing if there is no file to match.  Use `ls' as
382         a protection, similar to autoconf.
384         * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
385         empty argument lists.
387         * doc/groff.texinfo: Improve documentation how vertical spacing
388         and line breaks interact.
389         Other minor fixes.
391         * tmac/www.tmac: Initialize `www-htmlimage-gap'.
393 2003-08-03  Werner LEMBERG  <wl@gnu.org>
395         * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
396         EPS (using eps2eps or similar programs to compute the bounding box).
398 2003-07-24  Werner LEMBERG  <wl@gnu.org>
400         * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
401         * doc/texinfo.tex: Updated from texinfo 4.6.
402         * README.CVS: From now on we need texinfo 4.6.
404 2003-07-23  Werner LEMBERG  <wl@gnu.org>
406         Add requests `dei1' and `ami1' for completeness.
408         * src/roff/troff/input.cc (calling_mode): Remove
409         CALLING_DISABLE_COMP.
410         (comp_mode): New enumeration.
411         (do_define_string, define_string, define_nocomp_string,
412         append_string, append_nocomp_string): Updated.
413         (do_define_macro): Add third parameter.
414         (define_macro, define_nocomp_macro, define_indirect_macro,
415         append_macro, append_nocomp_macro, append_indirect_macro): Updated.
416         (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
417         functions.
418         (ignore): Updated.
419         (init_input_requests): Add `dei1' and `ami1'.
421         * tmac/trace.tmac: Handle de1 and am1.
422         (de): Improve tracing message.
423         (am): Add missing `do'.
424         (return): Use de1.
426         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
427         Document new requests.
429 2003-07-22  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
431         Add option -G to .MPIMG to insert a gap between text and the image.
433         * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
434         www-finish-left-ll): Updated.
435         (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
436         (MPIMG): Make option -L and -R optional.
437         Implement option -G.
439 2003-07-22  Gaius Mulley  <gaius@glam.ac.uk>
441         * src/devices/grohtml/post-html.cpp
442         (html_printer::do_file_components): Don't use `stdout' as lvalue
443         since it can be a macro.
445 2003-07-22  Werner LEMBERG  <wl@gnu.org>
447         * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
448         the corresponding test in aclocal.m4.
450 2003-07-21  Werner LEMBERG  <wl@gnu.org>
452         * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
453         names but RGB values directly.  Otherwise pnmtopng depends on
454         an external file `rgb.txt' which maps colour names to values.
456 2003-07-20  Werner LEMBERG  <wl@gnu.org>
458         * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
459         * configure, src/include/config.hin: Regenerated.
461         * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
463 2003-07-19  Werner LEMBERG  <wl@gnu.org>
465         * PROBLEMS: Add solution for UTF-8 problem with hyphens.
467 2003-07-18  Werner LEMBERG  <wl@gnu.org>
469         * *.man: Switch to non-compatibility mode temporarily if GNU
470         syntax extensions are used in the particular man page.
472         * PROBLEMS: Add solutions for SGR problems.
474 2003-07-17  Werner LEMBERG  <wl@gnu.org>
476         Don't ignore grotty's command line options if \X'tty: sgr ...' is
477         used to change the drawing scheme.
479         * src/devives/grotty/tty.cpp (bold_flag_option,
480         underline_flag_option, italic_flag_option, reverse_flag_option,
481         bold_underline_mode_option): New global variables.
482         (update_options): New function.
483         (tty_printer::special): Call update_options.
484         (main): Don't set xxx_flag but xxx_flag_option, then call
485         update_options.
487 2003-07-14  Werner LEMBERG  <wl@gnu.org>
489         Make grotty emit proper Unicode box drawing characters for -Tutf8.
491         * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
492         values.
493         (hline_char, vline_char): New global variables.
494         (tty_printer::tty_printer): Initialize them.
495         (tty_printer::draw): Emit START_LINE and END_LINE flags for both
496         horizontal and vertical lines.
497         (crossings): New global array.
498         (tty_printer::end_page): Use it to determine the proper crossing
499         character for -Tutf8.
501 2003-07-12  Werner LEMBERG  <wl@gnu.org>
503         * doc/Makefilesub (HTMLDOCFILESALL): New macro.
504         (HTMLDOCFILES): Revert to `pic.html'.
505         (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
507 2003-07-11  Werner LEMBERG  <wl@gnu.org>
509         * doc/pic.ms: Improve documentation of absolute coordinates.
510         Document absolute positioning of pictures.
512         * NEWS: Add new pic capability.
514 2003-07-09  Hartmut Henkel  <hartmut_henkel@gmx.de>
516         * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
517         Rewritten.
519 2003-07-07  Werner LEMBERG  <wl@gnu.org>
521         Implement support for dashed and dotted ellipses in pic.  Based on
522         a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
524         * src/preproc/pic/common.cpp (common_output::ellipse_arc,
525         common_output::dashed_ellipse, common_output::dotted_ellipse): New
526         functions.  Ellipse arcs are approximated with circle arcs.
527         * src/preproc/pic/common.h (common_output): Updated.
528         * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
529         functions.
530         * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
532         * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
534 2003-07-06  Werner LEMBERG  <wl@gnu.org>
536         Make grotty work on platforms which have unsigned char as the
537         default for char.  Based on a patch by Thomas Klausner
538         <wiz@netbsd.org>.
540         * src/devices/grotty/tty.cpp (schar): New typedef.
541         Updated calls to declare_ptable and implement_ptable.
542         (glyph): Use schar for back_color_idx and fore_color_idx.
543         (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
544         (tty_printer::tty_color, tty_printer::tty_printer,
545         tty_printer::color_to_idx, tty_printer::put_color): Updated.
547 2003-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
549         * src/roff/nroff/nroff.sh: Add option -d for completeness.
550         * src/roff/nroff/nroff.man: Updated.
552 2003-07-05  Werner LEMBERG  <wl@gnu.org>
554         * NEWS, tmac/groff_www.man: Updated.
555         * doc/Makefile.sub: Updated.
557 2003-07-05  Gaius Mulley  <gaius@glam.ac.uk>
559         Implement support for multiple HTML output files.
561         * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
562         -j command line option.
564         * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
565         global variables.
566         (file): New fields `new_output_file', `require_links',
567         `output_file_name'.
568         (file::file): Updated.
569         (files::set_file_name, files::set_links_required,
570         files::are_links_required, files::is_new_output_file,
571         files::file_name, files::next_file_name): New functions.
572         (header_desc): New fields `no_of_level_one_headings',
573         `header_filename'.
574         (header_desc::header_desc): Updated.
575         (header_desc::write_headings): Handle multiple files.
576         (html_printer::write_header): Save file name in which header occurs.
577         (html_printer::determine_header_level): Possibly split files on
578         level one headings.
579         (html_printer::do_links, html_printer::troff_tag): Updated.
580         (html_printer::insert_split_file, html_printer::do_job_name,
581         html_printer::emit_link, html_printer::write_navigation,
582         html_printer::do_file_components): New functions.
583         (html_printer::~html_printer): Handle multiple files.
584         (main): Handle command line option `-j'.
586         * src/devices/grohtml/grohtml.man: Updated.
588         * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
589         which splits file.
591         * tmac/www.tmac (JOBNAME): New macro.
592         * tmac/s.tmac (SH-NO-TAG): New macro.
593         (@SH): Call SH-NO-TAG.
594         (@NH): Updated.
596 2003-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
598         * tmac/groff_mdoc.man: Improve documentation of punctuation
599         characters.
601 2003-07-04  Ruslan Ermilov  <ru@FreeBSD.org>
603         * tmac/doc.tmac (Bd): Change to doc-Li-font later.
605 2003-07-03  Werner LEMBERG  <wl@gnu.org>
607         * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
609 2003-07-01  Ruslan Ermilov  <ru@FreeBSD.org>
611         * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
612         after `/*' and `*/'.
613         Fix spacing.
614         (Fn, Fo): Reduce indentation in synopsis.
616         * tmac/doc-common (doc-check-depth): New macro.
617         (doc-end-macro, Sh, Ss): Use it.
618         (Cd): Fix behaviour in synopsis.
619         (In): Make it parsed and callable.
620         If not in the synopsis, represent the C header file enclosed in
621         angle brackets.
622         (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
623         Use minus, not hyphen.
625         * tmc/groff_mdoc.man: Updated.
627 2003-07-01  Werner LEMBERG  <wl@gnu.org>
629         Integrated grap2graph, contributed by Eric S. Raymond.
631         * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
632         New files.
633         * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
634         contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
636 2003-07-01  Colin Watson  <cjwatson@debian.org>
638         * src/xditview/*.c: Add prototypes, fix return types, add includes.
639         Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
641 2003-06-31  Ruslan Ermilov  <ru@FreeBSD.org>
643         * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
645 2003-06-31  Werner LEMBERG  <wl@gnu.org>
647         * doc/Makefile.sub (CLEANADD): Remove all files created by
648         running `make groff.{pdf,dvi}'.
650         * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
651         src/xditview also.
653 2003-06-30  Werner LEMBERG  <wl@gnu.org>
655         * Makefile.in (SHELL): Define as @SHELL@.
656         (mkinstalldirs): Use $(SHELL).
657         (MDEFINES): Add $(SHELL).
658         * Makefile.comm (SHELL): Removed.
660 2003-06-29  Werner LEMBERG  <wl@gnu.org>
662         * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
663         The X11 documentation files use them.
664         * tmac/groff_ms.man, doc/groff.texinfo: Document them.
666 2003-06-15  Robert Goulding  <goulding@Princeton.EDU>
668         * tmac/e.tmac (@C): Handle .ad also.
670 2003-06-12  Werner LEMBERG  <wl@gnu.org>
672         * src/preproc/tbl/tbl.man: Document formatting of text blocks.
674         * src/roff/troff/input.cc (token::next) <handle_escape_char>:
675         Assign `n' even here.  It is possible to construct a node
676         immediately following an escape character:
678           .di xx
679           \?\\\?a
680           .br
681           .di
682           .xx
684 2003-06-10  Werner LEMBERG  <wl@gnu.org>
686         * README.WIN32: Removed.
687         * MANIFEST: Updated.
689 2003-06-07  Werner LEMBERG  <wl@gnu.org>
691         * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
693 2003-06-05  Werner LEMBERG  <wl@gnu.org>
695         * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
696         in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
698 2003-06-03  Werner LEMBERG  <wl@gnu.org>
700         * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
701         is done by the calling function.
703 2003-05-22  Ruslan Ermilov  <ru@FreeBSD.org>
705         * tmac/X.tmac: Fix definition of `em'.
707 2003-05-22  Werner LEMBERG  <wl@gnu.org>
709         * src/roff/troff/input.cc (return_macro_request): Fix detection of
710         argument.
712 2003-05-18  Werner LEMBERG  <wl@gnu.org>
714         * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
715         to make items work which consist only of a tag.
717 2003-05-17  Werner LEMBERG  <wl@gnu.org>
719         * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
720         aren't stretched in a tag (this can fail with unformatted boxes).
721         Instead, insert a break and go back one line.
723 2003-05-16  Werner LEMBERG  <wl@gnu.org>
725         * src/roff/troff/input.cc (return_macro_request): If called with
726         argument pop macro twice.  We need this to trace `return'.
728         * tmac/trace.tmac: Handle `return'.
729         Fix typos.
731         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
732         Document.
734 2003-05-15  Larry Kollar  <kollar@alltel.net>
736         * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
737         registers `FPS', `FVS', and `FPD'.
739 2003-05-15  Werner LEMBERG  <wl@gnu.org>
741         * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
742         correctly.
744 2003-05-03  Ruslan Ermilov  <ru@FreeBSD.org>
746         * tmac/groff_mdoc.man: Slight improvements.
748 2003-05-03  Werner LEMBERG  <wl@gnu.org>
750         * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
751         `doc-header-space' after header line if register `cR' is set.
753 2003-05-02  Werner LEMBERG  <wl@gnu.org>
755         * TODO: Updated.
757 2003-05-01  Ruslan Ermilov  <ru@FreeBSD.org>
759         * tmac/doc-common (Nd): Use \[em].
761 2003-05-01  Werner LEMBERG  <wl@gnu.org>
763         * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
764         doc-footer-space): Initialize to 0.5i.
765         (doc-setup-page-layout): Don't set doc-header-space and
766         doc-footer-space.
768 2003-04-30  Werner LEMBERG  <wl@gnu.org>
770         * REVISION: Set to 1.
772         * doc/pic.ms: Document possible problems with `figname'.
774 2003-04-29  Werner LEMBERG  <wl@gnu.org>
776 Version 1.19 released
777 =====================
779         * VERSION: Set to 1.19.
780         * REVISION: Set to 0.
781         * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
783         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
784         Define charset as `US-ASCII' in html output.
786         * tmac/www.tmac (ULE): Add missing scaling indicator.
788         * win32-diffs: Removed.
790 2003-04-28  Werner LEMBERG  <wl@gnu.org>
792         * doc/groff.texinfo: Document `dn' and `dl' registers if used with
793         `.da' and `.boxa'.
794         Document how to insert discardable whitespace with `.ss'.
796 2003-04-27  Werner LEMBERG  <wl@gnu.org>
798         * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
799         work with plain TeX also.
801         * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
803 2003-04-25  Gaius Mulley  <gaius@glam.ac.uk>
805         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
806         Use a loose DTD.
808 2003-04-24  Werner LEMBERG  <wl@gnu.org>
810         * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
811         vbox with positive height and zero depth if in TeX mode.
813         * NEWS: Document glyph name changes for grodvi and grolj4.
815 2003-04-23  Werner LEMBERG  <wl@gnu.org>
817         * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
818         * doc/pic.ms: Fixed.
820 2003-04-21  Werner LEMBERG  <wl@gnu.org>
822         HP-UX 10.20 has `snprintf' but it isn't declared.
824         * configure.ac: Add declaration test for snprintf.
825         * configure: Regenerated.
826         * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
827         * src/include/config.hin: Regenerated.
829 2003-04-19  Werner LEMBERG  <wl@gnu.org>
831         Add keyword `figname' to pic, specifying the name of the picture
832         box in TeX mode.  Based on a patch from William J Poser
833         <wjposer@unagi.cis.upenn.edu>.
835         * src/preproc/pic/pic.y: New token `FIGNAME'.
836         (macro_name): New rule of type <str>.
837         (placeless_element): Handle `FIGNAME'.
838         * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
839         * src/preproc/pic/main.cpp (graphname): New global variable.
840         (do_picture): Initialize `graphname'.
841         * src/preproc/pic/pic.h: Updated.
842         * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
843         `graphname'.
844         Simplify TeX code.
845         (tex_output::text): Beautify output.
846         * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
847         `shaded' and `outlined' unconditionally.
848         * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
849         Minor improvements.
851         * PROBLEMS, README.CVS: Mention that bison version 1.875b or
852         greater is necessary.
854 2003-04-17  Hartmut Henkel  <hartmut_henkel@gmx.de>
856         Add option -r to soelim to avoid emission of `.lf' lines.
857         Add option -t to produces TeX comment lines instead of `.lf' lines.
859         * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
860         and `tex_flag'.
861         (usage): Updated.
862         (main): Handle `-r' and `-t'.
863         (set_location): Handle `raw_flag' and `tex_flag'.
864         * src/preproc/soelim/soelim.man, NEWS: Updated.
866 2003-04-17  Werner LEMBERG  <wl@gnu.org>
868         * tmac/hyphenex.sh: Replaced with...
869         * tmac/hyphenex.pl: This perl script to avoid sed compatibility
870         nightmares.
872         * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
873         if --quiet is used for the configure script.
874         * configure: Regenerated.
876 2003-04-16  Werner LEMBERG  <wl@gnu.org>
878         * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
879         Add `const' to second argument.
880         (html_printer::add_table_end): Add `const' to argument.
881         * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
882         `const' to arguments.
883         * src/devices/grohtml/html-text.h: Updated.
885         * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
886         * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
887         argument.
889         * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
890         cast for integer constant.
892         * src/preproc/html/pre-html.cpp (image_device): Use `const'.
893         (writeNbytes): Add `const' to first argument.
894         (writeString): Add `const' to argument.
895         (char_buffer::can_see): Add `const' to third argument.
896         * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
897         `const' to argument.
898         * src/preproc/html/pushback.h: Updated.
900         * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
901         (include_path_append): Add `const' to argument.
902         (do_file): Updated.
904         * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
905         for `value'.
906         (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
907         * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
908         for `value'.
909         (unicode_decompose_init::unicode_decompose_init): Updated.
910         * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
911         for `value'.
912         (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
913         * src/roff/troff/input.cc (process_startup_file): Add `const' to
914         argument.
916         * tmac/hyphenex.sh: Make script more portable by using a here
917         document.
919 2003-04-15  Werner LEMBERG  <wl@gnu.org>
921         Renamed all `*.cc' files to `*.cpp'.
922         Updated all configuration files, makefiles, and documentation.
924 2003-04-14  Werner LEMBERG  <wl@gnu.org>
926         * tmac/hyphenex.sh: Slight improvements.
928 2003-04-13  Werner LEMBERG  <wl@gnu.org>
930         * font/devascii/R.proto, font/devcp1037/R.proto,
931         font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
932         character slots with unnamed glyphs.
934         * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
935         (an-first): New global variable.
936         (an-header): Emit vertical space between multiple man pages.
938 2003-04-11  Werner LEMBERG  <wl@gnu.org>
940         * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
941         values.
943 2003-04-10  Werner LEMBERG  <wl@gnu.org>
945         * PROBLEMS: Revised.
947 2003-04-10  Bernd Warken  <bwarken@mayn.de>
949         * doc/webpage.ms: Improved.
951 2003-04-09  Werner LEMBERG  <wl@gnu.org>
953         Add register \n[.height] which returns the value of \H.
954         Add register \n[.slant] which returns the value of \S.
956         * src/roff/troff/env.cc (init_env_requests): Implement.
957         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
958         Document.
960 2003-04-08  Werner LEMBERG  <wl@gnu.org>
962         * tmac/html.tmac: Move some of the data into html-end.tmac.
963         Remove most of the character translations for eqn since html fonts
964         now cover those characters.
965         Load www.tmac.
966         * tmac/html-end.tmac: New file.
967         * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
968         * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
969         * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
971 2003-04-07  Werner LEMBERG  <wl@gnu.org>
973         * man/groff_out.man: Document negative values of `N' if -Thtml is
974         used.
976 2003-04-06  Werner LEMBERG  <wl@gnu.org>
978         * Makefile.comm (depend.temp): Check location of YTABC.
980 2003-04-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
982         * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
983         binary path.
984         (groff_bin_path): Rename to GROFF_BIN_PATH.
985         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
986         * doc/Makefile.in (TROFFBIN): New variable for troff
987         binary path.
988         (GROFFBIN): New variable for groff binary path.
989         (groff_bin_path): Rename to GROFF_BIN_PATH.
990         (TROFF): Use TROFFBIN.
991         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
992         * doc/Makefile.sub (GROFFBIN): New variable for groff
993         binary path.
994         (groff_bin_path): Rename to GROFF_BIN_PATH.
995         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
997         * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
998         with INSTALL_SCRIPT.
999         (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
1000         * Makefile.dev (all): Depend on DEVSCRIPTS.
1001         (install_dev): Likewise.
1002         * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
1003         scripts.
1004         * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
1005         (DEVGENSCRIPTS): New variable to hold generated scripts.
1007 2003-04-05  Werner LEMBERG  <wl@gnu.org>
1009         * src/libs/libdriver/input.cc (IntArray::operator[],
1010         IntArray::get_data): Remove meaningless `const' in return value.
1012         * README.CVS: New file.
1014 2003-04-04  Werner LEMBERG  <wl@gnu.org>
1016         Check for stdint.h in C++, not in C.
1018         * aclocal.m4 (GROFF_STDINT_H): New function,
1019         * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
1020         AC_CHECK_HEADERS.
1021         * configure, src/include/config.hin: Regenerated.
1022         * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
1025         Fix handling of &nbsp; in grohtml.  To do this, troff emits `N'
1026         with a negative value, representing the width of the unbreakable
1027         space (only for -Thtml).  grohtml then converts this back to
1028         &nbsp; and uses the value of N as its width.
1030         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
1031         unbreakable_space_node::tprint): Emit `N-<width>'.
1032         * src/include/printer.h (printer::set_numbered_char): Make it
1033         virtual.
1034         Make members `font_table' and `nfonts' protected instead of private.
1035         * src/devices/grohtml/post-html.cc
1036         (html_printer::set_numbered_char): New member function.
1039         * src/libs/libgroff/maxfilename.cc:
1040         s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
1042         * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
1043         emit word marker.
1045 2003-04-03  Sergey A. Osokin  <osa@freebsd.org.ru>
1047         * man/roff.man: Small fixes.
1049 2003-04-03  Werner LEMBERG  <wl@gnu.org>
1051         Make groff independent from locale's numeric settings.
1053         * configure.ac: Check for `setlocale'.
1054         * configure, src/include/config.hin: Regenerated.
1056         * src/include/lib.h: Handle HAVE_SETLOCALE.
1058         * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
1059         (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
1060         (main), src/preproc/pic/main.cc (main): Call `setlocale'.
1063         * doc/groff.texinfo: Change dir category to `Typesetting'.
1064         (Man font macros): Mention that there is no space between arguments
1065         of .BI and friends.
1067         * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
1068         (*printer::change_color, *printer::change_fill_color): Add missing
1069         `const'.
1071 2003-04-02  Werner LEMBERG  <wl@gnu.org>
1073         * src/devices/grohtml/html-table.cc (html_table::emit_col,
1074         html_table::is_gap): Compute table widths after converting border
1075         positions to avoid rounding errors.
1077 2003-04-01  Werner LEMBERG  <wl@gnu.org>
1079         * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
1080         `space_emitted' properly.
1082 2003-03-31  Werner LEMBERG  <wl@gnu.org>
1084         * src/devices/grohtml/html-table.cc: Fix column width calculation.
1085         (html_table::set_linelength): Don't add 1.
1086         (html_table::add_indent): Don't subtract 1.
1088         * tmac/html.tmac: Set default page offset to zero.
1090 2003-03-30  Werner LEMBERG  <wl@gnu.org>
1092         Make groff emit `&nbsp;' for `\ ' and `\~' if `-Thtml' is used.
1094         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
1095         unbreakable_space_node::tprint): New functions.
1096         (troff_output_file): Make space_char_hmotion_mode::tprint and
1097         unbreakable_space_node::tprint to friends.
1098         * src/roff/troff/node.h: Updated.
1100         * font/devhtml/R.proto: Add `&nbsp' at position 0xA0 (as defined
1101         in the HTML standard).
1103 2003-03-29  Werner LEMBERG  <wl@gnu.org>
1105         * src/roff/troff/env.cc (point_size): Fix emission of html tag.
1106         Otherwise, the following code
1108           .di xxx
1109           .ps 10
1110           a
1111           .br
1112           .di
1113           x\*[xxx]
1115         produces `x a' instead of `xa'.  This is a temporary fix, disabling
1116         font changes in diversions for -Thtml.
1118         * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
1119         `HTML-TAG'.
1120         (an-do-tag-html): Merge with ...
1121         (an-do-tag): This macro.
1122         Change code slightly to circumvent grohtml bug.
1123         * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
1125         * src/devices/grohtml/html-table.cc (html_table::emit_col,
1126         html_table::is_gap): Round `width' properly.
1128         * tmac/html.tmac: Provide some default layout parameters for
1129         grohtml.
1131         * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
1132         command.
1134 2003-03-28  Werner LEMBERG  <wl@gnu.org>
1136         src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
1138 2003-03-27  Werner LEMBERG  <wl@gnu.org>
1140         * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
1141         defined.
1143 2003-03-20  Werner LEMBERG  <wl@gnu.org>
1145         * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
1146         `.vs'.
1147         * doc/groff.texinfo: Updated.
1149 2003-03-19  Werner LEMBERG  <wl@gnu.org>
1151         * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
1152         TOKEN_END_TRAP>: Reset `have_input'.
1154 2003-03-18  Werner LEMBERG  <wl@gnu.org>
1156         * src/roff/groff/groff.man: Mention groff_trace man page.
1158 2003-03-16  Werner LEMBERG  <wl@gnu.org>
1160         * Makefile.in (LIBEXT): New variable to indicate the file extension
1161         of library files.  Computed heuristically from $(OBJEXT).
1162         (MDEFINES): Add $(LIBEXT).
1163         * Makefile.lib, Makefile.comm: Use it.
1165         * src/utils/pfbtops/pfbtops.c (get_text): New function.  Split
1166         overlong lines into smaller chunks.
1167         (get_binary): New function.
1168         (main): Use them.
1169         * src/utils/pfbtops/pfbtops.man: Updated.
1171 2003-03-15  Colin Watson  <cjwatson@debian.org>
1173         * src/roff/groff/groff.man: Minor syntax fix.
1175 2003-03-14  Egil Kvaleberg  <egil@kvaleberg.no>
1177         * src/devices/grops/ps.cc (ps_printer::media_set,
1178         ps_printer::~ps_printer): Handle zero paper width and length.
1180 2003-03-13  Werner LEMBERG  <wl@gnu.org>
1182         Add options -p and -l to grodvi.
1184         * src/devices/grodvi/dvi.cc: Include paper.h.
1185         (landscape_flag, user_paper_length, user_paper_width): New global
1186         variables.
1187         (dvi_printer::begin_page): Emit `papersize' special.
1188         Set color after initialization of `cur_h' and `cur_v'.
1189         (main): Add options `-l' and `-p'.
1190         * font/devdvi/Makefile.sub (DESC): Set `papersize'.
1191         * src/devices/grodvi/grodvi.man, NEWS: Updated.
1193         * src/devices/grops/psrm.cc (valid_input_table): Fixed.
1195 2003-03-12  Werner LEMBERG  <wl@gnu.org>
1197         * src/devices/grops/grops.man: Move documentation of .PSPIC to...
1198         * man/groff_tmac.man: This man page.
1199         * man/groff_font.man: Declare `paperwidth' and `paperlength' as
1200         deprecated.
1202         * tmac/X.tmac: Don't load pspic.tmac.
1204 2003-03-11  Werner LEMBERG  <wl@gnu.org>
1206         Make variable `pr' local to libdriver/input.cc.  Based on a patch
1207         by Bernd Warken <bwarken@mayn.de>.
1209         * src/include/driver.h (pr): Removed.
1211         * src/libs/libdriver/input.cc (pr): New global variable.
1212         (do_file): Deallocate `pr'.
1213         * src/libs/libdriver/printer.cc (pr): Removed.
1215         * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
1216         (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
1217         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
1218         (main): Don't delete `pr'.
1220 2003-03-10  Werner LEMBERG  <wl@gnu.org>
1222         * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
1223         * tmac/papersize.tmac: New file.
1224         * tmac/troffrc: Include `papersize.tmac'.
1225         * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
1226         * tmac/an-old.tmac: Set LT to LL by default.
1228         * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
1229         doc/groff.texinfo: Updated.
1231         * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
1232         bug which caused all odd iso papers to have wrong dimensions.
1234         * src/devices/grops/ps.cc (user_paper_width): New global variable.
1235         (main) <'p'>: Set `user_paper_width' also.
1236         (ps_printer::media_width, ps_printer::media_height): Use values
1237         given with option `-p'.
1239 2003-03-09  Werner LEMBERG  <wl@gnu.org>
1241         * src/include/nonposix.h: Provide default for SET_BINARY.
1243         * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
1244         src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
1245         unconditionally.
1247         * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
1248         (main): Treat \r\n as \n.
1250 2003-03-08  Werner LEMBERG  <wl@gnu.org>
1252         * tmac/an-old.tmac: Use register `HY' to control hyphenation.
1253         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
1255 2003-03-07  Werner LEMBERG  <wl@gnu.org>
1257         Added support to access more than 256 glyphs in Type 1 fonts.
1259         * src/devices/grops/ps.cc (subencoding): New structure.
1260         (style): Add `sub' field.
1261         Updated all users.
1262         (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
1263         Add `set_subencoding', `get_subfont' and `encode_subfont' member
1264         functions.
1265         Updated all users.
1266         (ps_printer::set_char): Use `set_subencoding'.
1267         (make_subencoding_name): New function.
1268         (ps_printer::set_style): Handle case where `sty.sub' is not zero.
1269         (ps_printer::~ps_printer): Emit subencoding definitions.
1271         * src/devices/grops/psrm.cc (valid_input_table): New array to
1272         properly support EBCDIC.
1273         (white_space): Add `\f'.
1274         (ps_get_line): Change first argument to be of type `string &'.
1275         Updated all callers.
1276         This allows to get lines of arbitrary length.
1277         Use `valid_input_table'.
1278         Remove warning about non-conforming PS line length.  This seems
1279         not to be of great importance -- for example, dvips don't emit
1280         a warning either.
1281         (PS_LINE_MAX): Removed.
1282         (matches_comment): Change first argument to be of type `string &'.
1284         * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
1286         * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
1287         %AGL_to_unicode, %default_ligatures): New hash tables.
1288         Read all map entries.
1289         Add unencoded characters.
1290         Check for default ligatures if there are no `L' entries.
1291         Print all kern entries.
1292         Print all characters in charset.
1293         * src/utils/afmtodit/afmtodit.man: Updated.
1295         * font/devps/*: Regerated all fonts.
1297         * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
1298         of characters, just use `.trin'.  Otherwise the mapping depends
1299         on the font encoding.
1300         * tmac/ps.tmac: Add `fi' and `fl'.
1301         Improve `Fi' and `Fl'.
1302         * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
1303         * tmac/Xps.tmac: Fix `em'.
1305         * NEWS: Updated.
1307 2003-03-04  Werner LEMBERG  <wl@gnu.org>
1309         * src/roff/troff/input.cc (charinfo_to_node_list): Reset
1310         `have_input'.
1312 2003-03-03  Werner LEMBERG  <wl@gnu.org>
1314         * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
1316         * font/devps/generate/textmap: Remove entry `similarequal'.
1317         * font/devps/symbolmap: Updated.
1319 2003-03-02  Werner LEMBERG  <wl@gnu.org>
1321         * src/libs/libgroff/font.cc (font::load): Fix error message for
1322         bad character type.
1324         * src/devices/grops/grops.man: Improve documentation of the -b
1325         flag.
1327         * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
1328         `ascii' and `cp1047'.
1330 2003-03-01  Werner LEMBERG  <wl@gnu.org>
1332         Document composite glyphs and the `composite' request.
1334         * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
1336 2003-02-28  Werner LEMBERG  <wl@gnu.org>
1338         * font/devdvi/generate/ec.map: Add some more Unicode entities.
1339         * font/devdvi/*EC: Updated.
1341         * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
1342         * tmac/latin1 (latin1-tr): Undo any previous mapping.
1343         * tmac/troffrc: Load `composite.tmac'.
1344         * tmac/Makefile.sub (NORMALFILES): Updated.
1346         * doc/groff.texinfo (Input Encodings): New section.
1347         * NEWS: Updated.
1349 2003-02-27  Werner LEMBERG  <wl@gnu.org>
1351         * doc/texinfo.tex: New version 2003-02-11.06.
1353         * tmac/doc-common (Dt): Don't emit warning for unknown section.
1354         * tmac/groff_mdoc.man: Fix description of `Dt'.
1356 2003-02-26  Egil Kvaleberg  <egil@kvaleberg.no>
1358         * font/devps/prologue.ps: Fix for included Postscript that does
1359         a setpagedevice -- which is now safely ignored.
1361         * NEWS: Updated.
1363         * src/devices/grops/ps.cc: Now sets the page size in the generated
1364         document.  This is done in two ways: Via a %%-comment for gv and
1365         the like, and via a PageSize and setpagedevice for programs that
1366         understands Postscript proper, like ps2pdf.
1368         * src/devices/grops/ps.h: New broken-flag to avoid page size
1369         definition, if required.
1371         * src/devices/grops/grops.man: New broken-flag 16 mentioned.
1373         * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
1374         Not really necessary due to the fix in prologue.ps, but cleaner:
1375         Such information does not belong in an .eps file.
1377         * doc/Makefile.sub: See doc/Makefile.in.
1379 2003-02-26  Ralph Corderoy  <ralph@inputplus.co.uk>
1381         * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
1382         instead of P1 since the latter is broken in some versions of netpbm.
1383         * configure: Updated.
1385 2003-02-26  Larry Kollar  <kollar@alltel.net>
1387         Make man pages more customizable.
1389         * tmac/an-old.tmac (FT): New register holding footer distance from
1390         bottom.
1391         (HF): New string holding the default heading font.
1392         (TH): Handle registers `IN' and `SN' set on the command line.
1393         Use `FT'.
1394         (PT, BT): New strings to customize header and footer lines.
1395         (an-header, an-footer): Use them.
1396         (SH, SS): Use `HF'.
1397         * tmac/groff_man.man: Document changes.
1399         * doc/groff.texinfo: Document man changes.
1400         Document Ultrix extensions of man.
1402 2003-02-26  Werner LEMBERG  <wl@gnu.org>
1404         * src/roff/troff/input.cc (do_width, do_if_request): Reset
1405         `have_input' after changing back to old environment.
1407         * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
1408         function up to be defined before first call.  This is necessary to
1409         avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
1411         * src/utils/afmtodit/afmtodit.pl: Make script search for files in
1412         the default font directory also.  Based on a patch from James
1413         J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
1414         * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
1415         * src/utils/afmtodit/afmtodit.man: Document it.
1417         * NEWS: Updated.
1419         * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
1421 2003-02-25  Gaius Mulley  <gaius@glam.ac.uk>
1423         * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
1424         (GROFF_PNMTOPS_NOSETPAGE): New macro.
1425         * configure.ac: Use it.
1426         * configure: Regenerated.
1427         * Makefile.in: Updated.
1429         * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
1430         (CLEANADD): Add www.tmac-sed.
1431         (pnmtops_nosetpage): Define default.
1432         (install_data): Handle www.tmac-sed and substitute
1433         @PNMTOPS_NOSETPAGE@.
1434         (stamp-sed): Add www.tmac.
1435         * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
1436         It now breaks URLs at suitable places.
1437         (www:substring_ok): New register set by...
1438         (www:@test_substring): New macro.
1439         (www:error): New alias to www-error.
1440         (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
1441         New macros.
1442         (URL): Use www:url_breaks.
1443         (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
1444         (CDS, CDE): New macros.
1446 2003-02-25  Werner LEMBERG  <wl@gnu.org>
1448         * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
1449         buffer overflow.
1451 2003-02-24  Werner LEMBERG  <wl@gnu.org>
1453         Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
1454         can be negative also.
1456         * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
1457         `int16'.
1458         (read_char_table): Avoid negative ascenders.
1459         (output_charset): Add cast.
1460         * font/devlj4/*: Regenerated.
1462         Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
1463         possible.
1465         * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
1466         * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
1467         of `<>'.
1468         * font/devdvi/*: Regenerated.
1470         Map `la' and `ra' to U+27E8 and U+27E9.  These two characters have
1471         normal width, while the previously used characters (U+2329 and
1472         U+232A) are classified as wide due to canonical equivalence with the
1473         CJK punctuation characters U+3008 and U+3009.
1475         * font/devutf8/R.proto: Updated.
1476         * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
1478         * man/groff_char.man: Simplify handling of table traps by
1479         introducing `start block' and `end block' macros.
1480         (Ns, Ne, 2s, 2e, Ds, De): New macros.
1481         (DL): Make it work with Unix troff also.
1482         Fix code values of `la' and `ra'.
1484         * tmac/dvi.tmac: Define `<>' for CW and CWI.
1486 2003-02-23  Gaius Mulley  <gaius@glam.ac.uk>
1488         * src/devices/grohtml/post-html.cc (element_list::~element_list):
1489         New destructor, fixing a major memory leak.
1491 2003-02-22  Werner LEMBERG  <wl@gnu.org>
1493         * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
1494         to be in conformance with Unicode 3.0 and newer.
1496         * font/devlj4/generate/text.map: Add `Eu'.
1497         * font/devlj4/generate/special.map: Flip `*e' and `+e'.
1498         * font/devlj4/S: Regenerated.
1500         * man/groff_char.man: Completely rewritten.
1502         * doc/groff.texinfo: Fix description of request and macro arguments.
1504 2003-02-20  Gaius Mulley  <gaius@glam.ac.uk>
1506         Valgrind fixes.
1508         * src/devices/grohtml/html-table.cc (html_table::~html_table):
1509         Deallocate `columns' list.
1510         * src/devices/grohtml/post-html.cc (char_block::~char_block):
1511         New destructor.
1512         (text_glob::text_glob_html, text_glob::text_glob_special,
1513         text_glob::text_glob_line, text_glob::text_glob_auto_image,
1514         text_glob::text_glob_tag): Avoid memory leaks.
1515         (text_glob::remember_table): Free memory before reassigning.
1517 2003-02-19  Werner LEMBERG  <wl@gnu.org>
1519         Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
1520         alias `hbar'), the Planck constant over two pi.
1522         * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
1523         `+e' for position 34.
1524         * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
1525         `u2662' and `u2661'.
1526         * font/devdvi/{MI,S}: Regenerated.
1527         * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
1528         * font/devlbp/*: Add `hbar' alias.
1529         * font/devlj4/generate/special.map: Ditto.
1530         * font/devlj4/S: Regenerated.
1531         * font/devps/generate/symbolchars: Add `+e'.
1532         * font/devps/generate/textmap: Fix PS name for `-h'.
1533         Add `hbar' alias.
1534         * font/devps/symbolmap: Regenerated.
1536         * src/devices/grops/ps.cc (transform_fill): Removed since unused.
1538         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
1539         `-h', `hbar'.
1540         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
1541         `-h'.
1543         * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
1544         `hbar'.
1545         * tmac/tty-char.tmac: Add `+e'.
1547 2003-02-17  Werner LEMBERG  <wl@gnu.org>
1549         Another round trying to really fix problems with `have_input'.
1551         * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
1552         (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
1554         * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
1555         handling if both foreground and background colors are default.
1557         * doc/groff.texinfo (Debugging): Document .lf differences to
1558         AT&T troff.
1560 2003-02-16  Werner LEMBERG  <wl@gnu.org>
1562         * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
1563         null-bytes in created string.
1565         * src/roff/troff/input.cc (lookup_color, interpolate_macro,
1566         alias_macro, lookup_request): Improve warning messages.
1568         * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
1569         not `strdup'.
1570         Free `last_image_filename'.
1572         * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
1573         `buffer'.
1574         (imageList::createPage, imageList::createImage): Use `free', not
1575         `a_delete'.
1576         (imageItem::~imageItem): Free `imageName'.
1577         (addRegDef): Use `strsave', not `strdup'.
1578         (get_resolution): Free `pathp'.
1580 2003-02-15  Werner LEMBERG  <wl@gnu.org>
1582         * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
1583         to `dummy'.
1585 2003-02-14  Werner LEMBERG  <wl@gnu.org>
1587         Add memory management for colors to deallocate unnamed colors
1588         properly.
1590         * src/include/color.h (color): New members `free_list' and `next'.
1591         New member functions `new' and `delete'.
1592         Add destructor.
1593         * src/libs/libgroff/color.cc: Implement it.
1595         * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
1596         for array size of new operator.
1598         * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
1599         redundant comparison.
1601         * src/roff/troff/input.cc (word_space_node::reread,
1602         hmotion_node::reread): Avoid warning about unused parameter.
1603         (reset_output_registers): Remove redundant parameter.
1604         (define_color): Undo change 2003-02-12.
1606         * src/roff/troff/reg.h: Updated.
1608         * src/roff/troff/node.cc (troff_output_file::really_print_line,
1609         output_file::put_filename, real_output_file::really_put_filename,
1610         ascii_output_file::really_print_line,
1611         break_char_node::get_hyphen_list): Avoid warning about unused
1612         parameter.
1613         (suppress_node::tprint): Updated.
1615         * configure.ac: Check declaration for rand() and srand().
1616         * configure: Regenerated.
1618         * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
1619         conditionally.
1620         * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
1621         and srand().
1623         * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
1624         to avoid compiler warnings.
1626         * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
1627         unused.
1629         * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
1630         is unused.
1631         * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
1632         (unused) parameter.
1633         Updated all callers.
1635         * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
1636         is unused.
1637         * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
1638         * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
1640         * src/devices/grohtml/post-html.cc (html_printer::emit_line):
1641         Parameter is unused.
1642         (html_printer::add_table_end): Define parameter conditionally.
1643         * src/devices/grohtml/output.cc (simple_output::special): Parameter
1644         is unused.
1646         * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
1647         (lbp_printer::set_char): Last parameter is unused.
1649         * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
1651 2003-02-13  Werner LEMBERG  <wl@gnu.org>
1653         New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
1654         Make \D'f ...' move horizontally again for backwards compatibility.
1655         Replace it with \D'Fg ...' where appropriate to avoid dependency
1656         on horizontal resolution.
1658         * src/roff/troff/input.cc (do_get_long_name): New function.
1659         (get_long_name): Call it.
1661         (read_draw_node): Handle `\D'Fx ...' by calling ...
1662         (read_color_draw_node): New function.
1664         (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
1665         `end'.
1666         Pass it to `do_get_long_name' which is used instead of
1667         `get_long_name'.
1669         * src/libs/libdriver/input.cc (color_from_Df_command): Remove
1670         unnecessary value guard.
1671         (parse_D_command) <'f'>: Add horizontal shift.
1673         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
1674         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
1675         (FILL_MAX): Removed.
1677         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1678         Updated.
1680 2003-02-12  Werner LEMBERG  <wl@gnu.org>
1682         * src/roff/troff/input.cc (do_name_test, do_expr_test,
1683         do_zero_width): Push `\n' if closing delimiter is missing.
1685         (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
1686         <'F'>: Make \F non-transparent at the beginning of line.
1687         (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
1688         token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
1689         `have_input'.
1691         (define_color): Free color in case of reassignment.
1693         * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
1694         @DefescListEnd): Use @Var, not @var.
1695         Fix all calls.
1697         * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
1699         * src/preproc/pic/object.cc (object_spec::~object_spec): Free
1700         `shaded' and `outlined' arrays.
1701         (object_spec::object_spec): Initialize `shaded' and `outlined'.
1702         (graphic_object::set_fill_color, graphic_object::set_outline_color):
1703         Use strsave.
1704         (closed_object::set_fill_color): Ditto.
1705         * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
1706         instead of strdup.
1707         (troff_output::reset_color): Use a_delete instead of free.
1708         * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
1710 2003-02-11  Werner LEMBERG  <wl@gnu.org>
1712         * doc/groff.texinfo: Improve documentation of `ad'.
1713         Document that \D'f...' is dependent on the horizontal resolution.
1714         * man/groff_diff.man: Improve documentation of \D'f...'.
1716         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
1717         compensating \h'...' for \D'f ...' since the latter no longer moves
1718         current position.
1719         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
1721 2003-02-10  Werner LEMBERG  <wl@gnu.org>
1723         Improve error messages for `x F' (and `F') commands.
1725         * src/include/error.h: Add declaration for
1726         `current_source_filename'.
1727         * src/libs/libgroff/filename.cc: Add `current_source_filename'.
1728         * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
1729         parameter for source file string.
1730         Updated all callers.
1732         * src/libs/libdriver/input.cc: Add `current_source_filename'.
1733         (remember_source_filename): New function.
1734         (parse_x_command <'F'>, do_file <'F'>): Use it.
1736 2003-02-09  Werner LEMBERG  <wl@gnu.org>
1738         Make grotty not emit warnings about unknown colors more than
1739         necessary.
1741         * src/devices/grotty/tty.cc: Include `ptable.h'.
1742         (TTY_MAX_COLORS): Removed.
1743         (DEFAULT_COLOR_IDX): Defined to -1.
1744         (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
1745         (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
1746         Change `tty_colors' to be a ptable.
1747         First arg of `put_color' is now `char'.
1748         New functions `make_rgb_string' and `tty_color'.
1749         (tty_printer::tty_printer): Use `tty_color'.
1750         (tty_printer::color_to_idx): Return value is now `char'.
1751         Use `tty_color'.
1753         * src/include/color.h (color): Add `print_color' member function.
1754         * src/libs/libgroff/color.cc (color::print_color): Implement it.
1756 2003-02-08  Werner LEMBERG  <wl@gnu.org>
1758         Valgrind fixes.
1760         * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
1761         encoding file.
1763         * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
1764         assume that value has been allocated with `new[]', thus use
1765         `a_delete' for deallocation.
1767         * src/libs/libdriver/input.cc (get_integer_arg,
1768         get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
1769         where appropriate.
1771         * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
1772         * src/libs/libgroff/nametoindex.cc
1773         (character_indexer::named_char_index): Use `new <type>[1]'.
1775         * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
1776         <type>[1]'.
1777         * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
1778         (split_text): Use `a_delete'.
1780         * src/preproc/pic/pic.y (define_label, define_variable): Use `new
1781         <type>[1]'.
1783         * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
1784         harmless memory leak.
1785         (hyphen_trie::read_patterns_file): Initialize `buf'.
1786         * src/roff/troff/node.cc (troff_output_file::troff_output_file):
1787         Initialize `current_fill_color'and `current_glyph_color'.
1788         * src/roff/troff/glyphuni.cc
1789         (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
1790         * src/roff/troff/uniuni.cc
1791         (unicode_decompose_init::unicode_decompose_init): Ditto.
1792         * src/roff/troff/uniglyph.cc
1793         (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
1795 2003-01-26  Werner LEMBERG  <wl@gnu.org>
1797         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
1798         `access' before calling `unlink'.
1799         (do_file): Handle __EMX__.
1801         * src/include/nonposix.h: Handle __EMX__.
1803         * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
1804         (fontpath,tmacpath): Use it.
1805         (MDEFINES): Add it.
1806         Sorted alphabetically.
1808         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
1809         @SEP@.
1810         * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
1811         @SEP@.
1813 2003-01-27  Werner LEMBERG  <wl@gnu.org>
1815         * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
1816         New files, copied from gnulib.
1817         * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
1818         * configure.ac: Updated.
1819         * configure: Regenerated.
1821         * src/include/config.hin: Regenerated.
1822         * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
1823         Don't define `strcasecmp' as `strcmp'.
1824         [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
1825         Dont define `strncasecmp' as `strncmp'.
1827         * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
1828         Removed.
1830 2003-01-26  Werner LEMBERG  <wl@gnu.org>
1832         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
1833         s/unline/unlink/.
1835 2003-01-25  Werner LEMBERG  <wl@gnu.org>
1837         * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
1839 2003-01-24  Werner LEMBERG  <wl@gnu.org>
1841         Add US-english hyphenation exceptions (converted from Barbara
1842         Beeton's hyphenation exception log reports which appear irregularly
1843         in TUGBoat).
1845         * tmac/hyphen.us: Updated to latest version.
1846         * tmac/README: Updated.
1847         * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
1848         * tmac/troffrc: Load `hyphenex.us'.
1849         * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
1850         * doc/groff.texinfo: Updated.
1852 2003-01-23  Werner LEMBERG  <wl@gnu.org>
1854         Improve hyphenation slightly.  This is a first step in redesigning
1855         the hyphenation algorithm to make it more flexible (e.g. allowing
1856         kerns and ligatures between the hyphenation character and the
1857         following character -- while not used normally in English, other
1858         languages like German would benefit).
1860         * src/roff/troff/env.cc (environment::hyphenate_line): Use
1861         assertion instead of if-clause.
1862         Let `get_hyphen_list' return the number of involved characters in
1863         the hyphenation pattern instead of computing it directly (which
1864         often yields too small values).
1865         * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
1866         * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
1867         parameter.
1869 2003-01-22  Werner LEMBERG  <wl@gnu.org>
1871         Fixing a bug which caused groff to hang if the hyphenation exception
1872         dictionary tried to grow.
1874         * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
1875         hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
1876         pointer to dictionary.
1878 2003-01-20  Werner LEMBERG  <wl@gnu.org>
1880         * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
1881         negative left italic correction.
1882         * src/utils/afmtodit/afmtodit.man: Document it.
1884         * font/devps/generate/Makefile (RFLAG): Add `-m'.
1885         * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
1886         S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
1888         * NEWS: Updated.
1890 2003-01-16  Werner LEMBERG  <wl@gnu.org>
1892         * NEWS: Updated.
1894 2003-01-16  Jörgen Grahn  <jgrahn@algonet.se>
1896         * src/preproc/refer/refer.man: Mention REFER environment variable.
1898 2003-01-05  Werner LEMBERG  <wl@gnu.org>
1900         Similar to \[is], the square root glyph (\[sr]) and the square root
1901         extension glyph (\[radicalex]) are now text symbols.  The new
1902         mathematical versions are called \[sqrt] and \[sqrtex],
1903         respectively.
1905         * font/devX*/S: Regenerated.
1906         * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
1907         * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
1908         * font/devdvi/EX, font/devdvi/S: Regenerated.
1909         * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
1910         * font/devlj4/generate/special.map: Add `sqrt'.
1911         * font/devlj4/S: Regenerated.
1912         * font/devps/generate/textmap: Add `sqrt'.
1913         * font/devps/S, font/devps/symbolmap: Regenerated.
1915         * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
1916         SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
1917         * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
1918         overlap horizontally.
1920         * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
1921         * tmac/dvi.tmac: Add `sr', and `sqrtex'.
1922         Fix `radicalex'.
1924         * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
1925         and `sqrtex' are overlapping glyphs.
1927 2003-01-04  Werner LEMBERG  <wl@gnu.org>
1929         * font/devdvi/generate/texsy.map: Add `is'.
1930         * font/devps/symbolmap: Regenerated.
1931         * font/devdvi/*TC, MI, S: Regenerated.
1933         * tmac/dvi.tmac: Remove `is'.
1935 2003-01-03  Werner LEMBERG  <wl@gnu.org>
1937         `is' is now a text symbol (only relevant for dvi).  The math variant
1938         can be accessed with `integral'.
1940         * font/devX*/S: Regenerated.
1941         * font/devdvi/generate/texex.map: Remove `is'.
1942         * font/devdvi/EX: Updated.
1943         * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
1944         * font/devlj4/generate/special.map: Ditto.
1945         * font/devlj4/S: Regenerated.
1946         * font/devps/generate/textmap: Add `integral'.
1947         * font/devps/S: Regenerated.
1949         * tmac/dvi.tmac: Define `is'.
1951         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
1953         * src/preproc/tbl/main.cc (process_format): Fix error message.
1955 2003-01-02  Werner LEMBERG  <wl@gnu.org>
1957         * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
1958         * font/devps/textmap: Fix entries for `ne' and `nc'.
1959         * font/devps/symbolmap: Regenerated.
1961         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
1962         src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
1963         `38', `58', `78', `-+', `|=', `nc', `ne'.
1965         * tmac/dvi.tmac: Add `nm', `ne', `nc'.
1966         Use `schar' for `aq'.
1967         * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
1968         * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
1969         * tmac/tty.tmac: Add `ne'.
1971         * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
1972         for fallback glyphs.
1974 2002-12-29  Werner LEMBERG  <wl@gnu.org>
1976         Add glyph `|='.
1978         * font/devX*/*: Regenerated.
1979         * font/devdvi/generate/ec.map: Remove `eq'.
1980         * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
1981         Assign `|=' to position 39.
1982         * font/devdvi/*EC, S: Regenerated.
1983         * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
1984         * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
1985         Assign `|=' to position 549.
1986         * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
1987         `equalmath'.
1988         Add `uni2243' for `|='.
1990         * tmac/ec.tmac: Add `eq'.
1991         * tmac/dvi.tmac: Add `=~'.
1992         * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
1993         `|='.
1995 2002-12-21  Werner LEMBERG  <wl@gnu.org>
1997         * font/devdvi/generate/tc.map: Remove `**'.
1998         * font/devdvi/*TC: Regenerated.
1999         * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
2000         `78', `<<', `>>'.
2001         * font/devutf8/NOTES: Updated.
2003         * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
2004         Don't give default parameter to `set_macro'.
2005         * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
2006         instead of `set_macro'.
2007         (charinfo::setx_macro): Implement it.
2008         (charinfo::set_macro): Don't change `mode'.
2010         * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
2011         * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
2012         * tmac/dvi.tmac: Define `!=' with `.schar'.
2014 2002-12-20  Werner LEMBERG  <wl@gnu.org>
2016         * font/devX*/S: Regenerated.
2017         * font/devdvi/generate/ec.map: Remove `pl'.
2018         * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
2019         * font/devdvi/*{TC,EC}: Regenerated.
2020         * font/devhtml/R.proto: Add `-+'.
2021         Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
2022         * font/devlbp/*: Remove `or'.
2023         * font/devlj4/generate/special.map: Remove `or'.
2024         * font/devlj4/S: Regenerated.
2025         * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
2026         `seveneighths', `threeeighths'.
2027         Remove `plusmath'.
2028         Replace `minusplus' with `uni2213'.
2029         * font/devps/symbolmap: Regenerated.
2030         * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
2031         Add `-+'.
2033         * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
2034         function.
2035         * src/roff/troff/node.cc (troff_output_file::put_char_width):
2036         Call glyph_color and fill_color even if tcommand_flag isn't set.
2037         (make_node, node::add_char): Check not ci->is_fallback but
2038         ci->is_normal.
2040         * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
2041         * tmac/ec.tmac: Add .rchar entry for `f/'.
2042         Don't remove `12', `14', `34'.
2043         Define `pl' to be always roman.
2044         * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
2045         Define `18', `38', `58', `78'.
2046         * tmac/tty.tmac: Add `-+'.
2047         * tmac/dvi.tmac: Define `f/'.
2048         (dvi-frac): Use `f/'.
2049         * tmac/X.tmac (X-frac, X-frac-mono): New macros.
2050         Define `18', `38', `58', `78'.
2052 2002-12-15  Colin Watson  <cjwatson@debian.org>
2054         * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
2056 2002-12-10  Werner LEMBERG  <wl@gnu.org>
2058         Add glyph `tno', a textual variant of `no'.
2060         * font/devX*/*: Regenerated.
2061         * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
2062         * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
2063         * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
2064         * font/devdvi/*: Regenerated.
2065         * font/devlbp/*: Add `tno'.
2066         * font/devlj4/generate/tex.map: Replace `no' with `tno'.
2067         * font/devlj4/*: Regenerated.
2068         * font/devps/generate/textmap: Replace `no' with `tno'.
2069         * font/devps/generate/symbolchars: Add `no'.
2070         * font/devps/*: Regenerated.
2072         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
2074         * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
2075         * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
2077         * NEWS: Updated.
2079         * tmac/dvi.tmac: Replace most `\\' with `\E'.
2080         Add definition for `sd'.
2081         * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
2083         * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
2085 2002-12-08  Werner LEMBERG  <wl@gnu.org>
2087         * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
2088         mode to avoid rounding errors.
2089         (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
2091         * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
2092         src/roff/troff/troff.man: Improve documentation of -T.
2094 2002-12-07  Jeff Conrad  <jeff_conrad@msn.com>
2096         * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
2097         (run_pipeline) [_WIN32]: Provide working function without `fork'.
2099 2002-12-06  Werner LEMBERG  <wl@gnu.org>
2101         * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
2102         glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
2103         Scaling Euro.sansserif glyphs down to have the same height as
2104         digits.
2105         Removed unnecessary points; added some extrema.
2107         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
2108         Regenerated.
2110 2002-12-04  Werner LEMBERG  <wl@gnu.org>
2112         * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
2113         and `Euro.symbol.bold.slanted'.
2114         Improve some glyph offsets and widths.
2115         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
2116         Regenerated.
2117         * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
2118         typo.
2119         * font/devps/generate/sfdtopfa.pe: Generate PFA in current
2120         direcory.
2122         * tmac/europs.tmac: Updated to new glyph indices.
2123         Use Euro.symbol for font familiy `A'.
2125         * doc/groff.texinfo: Minor improvements.
2127 2002-12-02  Werner LEMBERG  <wl@gnu.org>
2129         * font/devdvi/generate.tc.map: s/%O/%0/.
2130         * font/devdvi/*TC: Regenerated.
2132         * src/roff/troff/div.cc (init_div_requests): Sorted.
2134         * tmac/dvi.tmac: Remove `Ye'.
2135         * tmac/ec.tmac: Remove `Ye'.
2136         Add .rchar entry for `de'.
2138         * man/groff.man, man/groff_diff.man: Document register `.pe'.
2139         * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
2140         * NEWS: Updated.
2142 2002-11-30  Werner LEMBERG  <wl@gnu.org>
2144         Add PS font for various Euro glyphs.
2146         * font/devps/generate/freeeuro.sfd: New master font file for
2147         pfaedit.
2148         * font/devps/generate/sfdtopfa.pe: New conversion script for
2149         pfaedit.
2150         * font/devps/generate/Makefile (FONTS): Add `EURO'.
2151         (EURO, freeeuro.afm, freeeuro.pfa): New rules.
2152         * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
2153         `freeeuro.sfd'.
2154         * font/devps/EURO: Generated from `freeeuro.afm'.
2155         * font/devps/download: Add `freeuro.pfa'.
2156         * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
2157         `freeeuro.pfa'.
2159         * tmac/europs.tmac: New file.
2160         * tmac/ps.tmac: Include `europs.tmac'.
2161         * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
2163 2002-11-29  Werner LEMBERG  <wl@gnu.org>
2165         * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
2166         * font/devdvi/S: Regenerated.
2167         * font/devhtml/R.proto: Fix `CR' and `ci'.
2168         Add `OK'.
2169         * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
2170         Remove `bs'.
2171         * font/devps/symbolmap: Regenerated.
2172         * font/devutf8/R.proto: Fix `CR' and `ci'.
2173         Add `OK'.
2174         * font/devutf8/NOTES: Updated.
2176         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
2177         `ci'.
2178         Add `OK'.
2179         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
2181         * tmac/dvi.tmac: Add `lh' and `rh'.
2182         * tmac/Xps.tmac: Fix `lh' and `rh'.
2183         * tmac/X.tmac: Add `OK'.
2184         * tmac/lj4.tmac: Ditto.
2186 2002-11-24  Werner LEMBERG  <wl@gnu.org>
2188         * font/devX*/S: Regenerated.
2189         * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
2190         `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
2191         * font/devdvi/generate/texsy.map: Remove `or' glyph.
2192         * font/devdvi/S: Regenerated.
2193         * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
2194         `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
2195         `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
2196         `bracketleftbt', `bracketrighttp', `bracketrightex',
2197         `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
2198         `braceex', `braceleftex', `bracerightex', `bracerighttp',
2199         `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
2200         `rb', and `bv'.
2201         * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
2202         * font/devutf8/NOTES: Updated.
2203         * font/devlj4/generate/special.map: Add glyph `braceex'.
2204         * font/devlj4/S: Regenerated.
2206         * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
2208 2002-11-14  Werner LEMBERG  <wl@gnu.org>
2210         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
2211         and `vA'.
2212         Fix code for `an'.
2213         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
2215         * doc/texinfo.tex: New version from texinfo 4.3.
2216         * doc/groff.texinfo: Updated for texinfo 4.3.
2217         Use @tie{} where appropriate.
2218         * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
2219         * font/devdvi/generate/tc.map: Remove `rn'.
2220         * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
2221         * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
2222         Fix code for `an'.
2223         * font/devX100/*, font/devX100-12/*, font/devX75/*,
2224         font/devX75-12/*: Regenerated.
2226         * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
2227         Use .char (again) for `br', `ul', `rn', `or', and `ru'.
2228         Improve definition of `an'.
2229         * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
2230         `ru'.
2231         * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
2232         * tmac/X.tmac: Add definition for `or'.
2233         * tmac/Xps.tmac: Undo change 2002-11-05.
2234         * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
2236 2002-11-11  Werner LEMBERG  <wl@gnu.org>
2238         * src/roff/troff/node.cc (troff_output_file::put_char): Always
2239         call flush_tbuf.
2241 2002-11-10  Werner LEMBERG  <wl@gnu.org>
2243         Added three new requests `schar', `fschar', and `rfschar'.  `schar'
2244         defines a glyph which is searched after the check for fonts declared
2245         with `.special' (and before the check for all mounted special
2246         fonts).  `fschar' defines a glyph for a particular font which is
2247         searched after the check for fonts declared with `.fspecial' (and
2248         before the check for fonts declared with `.special').  `rfschar'
2249         removes glyphs defined with `fschar'.
2251         * src/roff/troff/token.h (char_mode): New enum.
2252         Declare do_define_character.
2253         * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
2254         `mode'.
2255         (charinfo::is_fallback): Updated.
2256         (charinfo::is_special): New method.
2257         * src/roff/troff/input.cc (do_define_character): Add and use
2258         optional second parameter used as a prefix for font-specific glyph
2259         names.
2260         (define_character, define_fallback_character): Updated.
2261         (define_special_character): New function.
2262         (init_input_requests): Add `schar'.
2263         (charinfo::charinfo, charinfo::set_macro): Updated.
2264         * src/roff/troff/node.cc: Include `stringclass.h'.
2265         (make_glyph_node): Handle special glyphs defined with `.schar' and
2266         `.fschar'.
2267         (define_font_special_character, remove_font_special_character): New
2268         functions.
2269         (init_node_requests): Sorted.
2270         Add `fschar' and `rfschar'.
2271         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2272         Document new requests.
2274         * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
2275         * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
2277 2002-11-08  Werner LEMBERG  <wl@gnu.org>
2279         Added new font `SC' (cmtex10) to devdvi.
2281         * devdvi/generate/Makefile (FONTS): Add `SC'.
2282         (SC): New rule.
2283         * devdvi/generate/textex.map: New map file for cmtex.
2284         * devdvi/SC: New.
2285         * devdvi/Makefile.sub (DEVFILES): Updated.
2286         * tmac/dvi.tmac: Add fspecial entries for SC.
2287         Add `MI', `S' and `CW' to the `special' call.  Otherwise, `SC' is
2288         found before `S' since the font position of `SC' is lower due to the
2289         gaps in DESC's `font' line.
2290         * tmac/ec.tmac: Add a `special' call.
2291         * NEWS: Updated.
2293         * font/devhtml/R.proto: Remove double entry for `ti'.
2294         * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
2295         * tmac/tty-char.tmac: Remove entry for `bq'.
2296         * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
2297         * tmac/ec.tmac: Don't remove `aq' glyph.
2298         * tmac/X.tmac: Fix entry for `em'.
2299         Add entries for `fo' and `fc'.
2300         * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
2302         * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
2303         documentation of `special' and `fspecial' requests.
2305 2002-11-05  Werner LEMBERG  <wl@gnu.org>
2307         * font/devascii/R.proto, font/devcp1047/R.proto,
2308         font/devlatin1/R.proto: Remove entry for `.i'.
2309         * font/devdvi/generate/textt.map: Add entry for `ad'.
2310         * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
2311         font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
2312         We need this for getting kerning values to compose `/l' and `/L'.
2313         * font/devdvi: Regenerated font definition files for CM fonts.
2314         * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
2315         * font/devutf8/R.proto: Ditto.
2316         Remove double entry for `ti'.
2318         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
2319         for (groff) ligatures, `la', and `ra'.
2320         Add "'C", "'c", `IJ', and `ij'.
2321         Remove double entry for `ti'.
2322         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
2323         double entries.
2324         Add "'C", "'c", `IJ', and `ij'.
2325         Fix entries for (groff) ligatures, `la', and `ra'.
2327         * tmac/ps.tmac (ps-achar): New macro.
2328         Define "'c" and "'C".
2329         * tmac/tty.tmac: Add entry for `.i'.
2330         * tmac/X.tmac (X-achar): New macro.
2331         Define "'c", "'C", and `:Y'.
2332         Add entries for `IJ' and `ij'.
2333         * tmac/Xps.tmac (Xps-achar): New macro.
2334         Define "'c" and "'C".
2335         Add entries for `IJ' and `ij'.
2336         * tmac/lbp.tmac (lbp-achar): New macro.
2337         Add fallback characters for all groff ligatures and many other
2338         glyphs.
2339         * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
2340         Add entries for `/l' and `/L'.
2341         Define "'c" and "'C".
2342         Add entries for `IJ' and `ij'.
2344 2002-11-02  Larry Kollar  <kollar@alltel.net>
2346         * PROBLEMS: Document how to solve Mac OS X compilation problems.
2348 2002-11-02  Werner LEMBERG  <wl@gnu.org>
2350         Adding support for composite glyphs: \[xxx yyy ...] and the
2351         `composite' request.
2353         * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
2354         to Unicode-based glyph names.
2355         * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
2356         glyph names to groff glyph names.
2357         * src/roff/troff/uniuni.cc: New file for canonically decomposing
2358         Unicode-based glyph names.
2359         * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
2360         for handling Unicode glyph names.
2361         * src/roff/troff/input.cc: Include unicode.h.
2362         (composite_glyph_name): New function.
2363         (token::next) <'['>: Handle Unicode glyph names and composite
2364         glyphs.
2365         (composite_dictionary): New dictionary for the `composite' request.
2366         (composite_request): Implement `composite' request.
2367         (init_input_requests): Add `composite'.
2368         Alphabetically sorted.
2369         * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
2370         commented out).
2371         (init_env_requests): Alphabetically sorted.
2372         Removed `tas' and `tar' (already commented out).
2373         * src/roff/troff/Makefile.sub: Updated.
2375 2002-10-31  Ruslan Ermilov  <ru@FreeBSD.org>
2377         * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
2378         of options.
2380 2002-10-29  Werner LEMBERG  <wl@gnu.org>
2382         Fix computation of .trunc register.  Additionally, its value (and
2383         the value of the .ne register) is now always set before entering the
2384         trap.
2386         * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
2387         `needed_space' before calling `space'.
2388         (top_level_diversion::space): Remove special code for 'sp before the
2389         first page.
2390         Call `begin_page' with the discarded space as a parameter.
2391         (top_level_diversion::begin_page): Add optional parameter to set
2392         `truncated_space'.
2393         * src/roff/troff/div.h: Updated.
2395         * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
2396         \n[.ne].
2398         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
2399         (LP): Remove superfluous call to `br'.
2400         * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
2401         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
2403 2002-10-26  Werner LEMBERG  <wl@gnu.org>
2405         * tmac/doc-ditroff: Remove useless switch/variable -rC.
2406         (doc-setup-header): Don't set page register `%'.
2407         * tmac/doc-nroff: Remove variable `C'.
2408         (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
2409         (doc-setup-header): Don't set page register `%'.
2410         Don't call `bp'.
2411         * tmac/doc-common (doc-header): Call `ns'.
2412         (doc-paragraph): Protect .sp with .br so that it survives traps
2413         possibly set by the user.
2414         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
2416         * tmac/doc*: Replace ' with . for consistency if no effect.
2418 2002-10-26  Werner LEMBERG  <wl@gnu.org>
2420         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
2421         so that it survives traps possibly set by the user.
2423         * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
2424         (troff_output_file::set_font): Call flush_tbuf if necessary.
2425         (troff_output_file::fill_color, troff_output_file::glyph_color): Call
2426         flush_tbuf and do_motion only if necessary.
2427         (troff_output_file::start_special,
2428         troff_output_file::put_char_width, troff_output_file::put_char,
2429         troff_output_file::draw): Updated.
2430         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
2431         vmotion_node::tprint): Undo change 2002-10-23.
2433 2002-10-25  Werner LEMBERG  <wl@gnu.org>
2435         * tmac/www.tmac (DC): Fix case of overlapping images.
2437 2002-10-23  Werner LEMBERG  <wl@gnu.org>
2439         * src/roff/troff/node.cc (troff_output_file::fill_color,
2440         troff_output_file::glyph_color): Set current color before testing
2441         color_flag.
2442         (troff_output_file::put_char_width, troff_output_file::put_char,
2443         troff_output_file::draw): Don't call flush_tbuf and/or do_motion
2444         before glyph_color.
2445         (troff_output_file::file_color, troff_output_file::glyph_color):
2446         Call do_motion.
2447         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
2448         vmotion_node::tprint): Move first, then call fill_color.
2450 2002-10-20  Werner LEMBERG  <wl@gnu.org>
2452         * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
2453         possible to use multiple main macro packages.
2455 2002-10-19  Werner LEMBERG  <wl@gnu.org>
2457         * src/devices/grops/ps.cc (cmyk_flag): New global variable.
2458         (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
2459         (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
2460         is set.
2461         * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
2462         `where' construction since `cmyksetcolor' is a PS Level 2 operator.
2464 2002-10-16  Werner LEMBERG  <wl@gnu.org>
2466         * NEWS, doc/webpage.ms: Updated.
2468 2002-10-14  Werner LEMBERG  <wl@gnu.org>
2470         * src/roff/troff/node.cc (troff_output_file::put_char_width,
2471         troff_output_file::put_char, troff_output_file::fill_color,
2472         troff_output_file::glyph_color): Handle case where color pointer
2473         is null.
2475 2002-10-13  Ruslan Ermilov  <ru@FreeBSD.org>
2477         Add the new -r option to grotty.  It is similar to the -i option
2478         except it tells grotty(1) to use the "reverse video" attribute to
2479         render italic fonts.
2481         * src/devices/grotty/tty.cc (reverse_flag): New global variable.
2482         (SGR_REVERSE, SGR_NO_REVERSE): New macros.
2483         (tty_printer::make_underline, tty_printer::put_color,
2484         tty_printer::end_page): Use it.
2485         (main): Add -r switch.
2486         (usage): Updated.
2487         * src/devices/grotty/grotty.man: Document it.
2489 2002-10-11  Ruslan Ermilov  <ru@FreeBSD.org>
2491         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
2492         cast to `unsigned char' to properly read patterns with 8bit
2493         characters.
2495 2002-10-08  Werner LEMBERG  <wl@gnu.org>
2497         * REVISION: Increased to 2.
2499 Version 1.18.1 released
2500 =======================
2502 2002-10-08  Werner LEMBERG  <wl@gnu.org>
2504         * doc/webpage.ms, NEWS: Updated.
2506 2002-10-07  Werner LEMBERG  <wl@gnu.org>
2508         * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
2509         suppress additional whitespace after the header.
2511         * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
2512         with NetBSD.
2514         * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
2516 2002-10-07  Ruslan Ermilov  <ru@FreeBSD.org>
2518         * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
2519         (Dt): Use it to improve language localization (especially Russian
2520         and French).
2522 2002-10-07  Daniel Senderowicz  <daniel@synchrods.com>
2524         * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
2525         * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
2526         drawing commands.
2527         * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
2528         curve type.
2529         Call `picurve' for BSPLINE.
2530         (HGPrintElt): Handle BSPLINE.
2531         * src/preproc/grn/README: Document it.
2533 2002-10-03  Werner LEMBERG  <wl@gnu.org>
2535         * src/roff/troff/node.cc (break_char_node::col): New variable.
2536         Updated constructor.
2537         (space_node::tprint, word_space_node::tprint): Call `fill_color'
2538         unconditionally.
2539         (space_node::space_node): Remove assertion.
2540         (break_char_node::add_self): Pass color argument to space node.
2541         * src/roff/troff/input.cc (token::add_to_node_list, token::process):
2542         Ditto.
2543         * src/roff/troff/env.cc (environment::do_break,
2544         environment::add_padding): Ditto.
2546 2002-10-02  Werner LEMBERG  <wl@gnu.org>
2548         Redesigning color support in troff.  Colors are no longer
2549         represented as separate nodes but are now part of glyph nodes and
2550         friends.  This fixes the current formatting misbehaviour due to the
2551         changes introduced on 2002-09-20.  Some extra code is necessary for
2552         proper grotty support: Without adding color variables to
2553         space-related nodes, the background color would be changed too late.
2555         * src/roff/troff/node.h, src/roff/troff/node.cc:
2556         s/current_pagecolor/current_fill_color/.
2557         s/current_glyphcolor/current_glyph_color/.
2558         (glyph_color_node, fill_color_node): Removed.
2559         (node::get_glyph_color, node::get_fill_color): New virtual member
2560         functions.
2561         (space_node::col): New variable.
2562         Updated constructors of space_node and derived classes accordingly.
2563         (hmotion_node::col): New variable.
2564         Updated constructors of hmotion_node and space_char_hmotion_node
2565         accordingly.
2566         (vmotion_node::col): New variable.
2567         Updated constructor accordingly.
2568         (draw_node::gcol, draw_node::fcol): New variables.
2569         Updated constructor accordingly.
2570         (special_node::gcol, special_node::fcol): New variables.
2571         Updated constructors accordingly.
2572         (troff_output_file::put_char, troff_output_file::put_charwidth,
2573         troff_output_file::draw): Set glyph and fill color.
2574         (troff_output_file::start_special): Set glyph and fill color.
2575         Always set current font.
2576         (troff_output_file::fill_color, troff_output_file::glyph_color):
2577         Don't call `do_motion'.
2578         (glyph_node::gcol, glyph_node::fcol): New variables.
2579         Updated constructors of glyph_node and ligature_node accordingly.
2580         (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
2581         member functions.
2582         (glyph_node::merge_glyph_node,
2583         kern_pair_node::add_discretionary_hyphen,
2584         node::add_discretionary_hyphen): Updated.
2585         (break_char_node::merge_self): Updated.
2586         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
2587         vmotion_node::tprint): Handle color.
2588         (make_glyph_node, make_node, node::add_char): Updated.
2590         * src/roff/troff/env.cc (environment::space_newline,
2591         environment::space, environment::output_line, environment::do_break,
2592         environment::make_tab_node, environment::add_padding, title):
2593         Updated.
2594         (environment_switch, environment_copy): Don't add color nodes.
2596         * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
2597         nothing.
2598         (token::next): Updated.
2599         \m and \M now are as transparent as \s.
2600         (process_input_stack, token::add_to_node_list, token::process,
2601         read_draw_node): Updated.
2602         (charinfo_to_node_list): Don't add color nodes.
2604         * doc/groff.texinfo: Updated.
2606 2002-09-27  Ruslan Ermilov  <ru@FreeBSD.org>
2608         * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
2609         strings.
2611 2002-09-27  Colin Watson  <cjwatson@debian.org>
2613         * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
2615 2002-09-23  Werner LEMBERG  <wl@gnu.org>
2617         * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
2618         appropriate.
2619         (DEFAULT_LINEWIDTH_FACTOR): New macro.
2620         (linewidth_factor): New global variable.
2621         (lbp_printer::set_line_thickness): Fix case for size < 0, using
2622         linewidth_factor.
2623         (long_options): Add -w/--linewidth option.
2624         (usage): Updated.
2625         (main): Handle -w option to set linewidth_factor.
2626         (lbp_printer::lbp_printer): Initialize req_linethickness, not
2627         line_thickness.
2629         * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
2631 2002-09-22  Paco Andrés Verdú  <pandres@dragonet.es>
2633         Fixed a bug in the line thickness setting code.
2635         * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
2636         variable.
2637         (lbp_printer::set_line_thickness): Pass environment as second
2638         parameter.
2639         Implement it actually.
2640         (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
2641         and `set_line_thickness, depending on the current font size.
2643 2002-09-21  Werner LEMBERG  <wl@gnu.org>
2645         Some Debian patches.
2647         * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
2648         * src/roff/troff/node.cc (bracket_node::copy): Initialize
2649         `list->last'.
2651 2002-09-20  Werner LEMBERG  <wl@gnu.org>
2653         * configure: Regenerated with autoconf 2.54.
2655 2002-09-20  Werner LEMBERG  <wl@gnu.org>
2657         * src/roff/troff/env.h (environment): Rename cur_glyph_color to
2658         glyph_color.
2659         Rename cur_fill_color to fill_color.
2660         * src/roff/troff/env.cc: Updated.
2662 2002-09-20  Werner LEMBERG  <wl@gnu.org>
2664         * src/roff/troff/env.cc (title): Copy color status after processing
2665         title.
2666         * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
2667         fill color nodes to reset colors properly.
2669         * tmac/www.tmac (DC): Fix color handling.
2671         * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
2672         * doc/groff.texinfo: Fixing documentation of `tl' request.
2673         * doc/webpage.ms: Updated.
2675 2002-09-19  Werner LEMBERG  <wl@gnu.org>
2677         * src/roff/troff/env.cc (environent_switch, environment_copy):
2678         Emit glyph and fill color nodes to initialize colors properly.
2680 2002-09-17  Colin Watson  <cjwatson@debian.org>
2682         * src/roff/troff/env.cc (environment::set_glyph_color,
2683         environment::set_fill_color): Fix typo which prevented \m[] work
2684         correctly.
2686 2002-09-17  Werner LEMBERG  <wl@gnu.org>
2688         Add left and right italic correction to non-slanted PS fonts.  This
2689         is an experimental feature to improve image rendering of grohtml.
2691         * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
2692         ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
2693         * font/devps/*: All non-slanted fonts regenerated.
2694         * NEWS: Updated.
2696 2002-09-16  Werner LEMBERG  <wl@gnu.org>
2698         Add a site-specific font directory.
2700         * Makefile.in (localfontdir, legacyfontdir): New variables.
2701         (fontpath): Use them.
2702         (MDEFINES, uninstall_dirs): Updated.
2703         * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
2704         Remove `FONTPATH' and `MACROPATH'.
2706         * src/roff/troff/troff.man, NEWS: Updated.
2707         * doc/groff.texinfo (Font Directories): New section.
2708         Other minor fixes.
2710         * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
2711         src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
2712         src/preproc/grn/grn.man: Minor fixes.
2714         * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
2715         Remove unused variable.
2717 2002-09-11  Werner LEMBERG  <wl@gnu.org>
2719         * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
2720         * man/groff_out.man: Fix documentation of 'N'.
2722 2002-09-09  Gaius Mulley  <gaius@glam.ac.uk>
2724         * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
2725         * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
2726         set.
2727         * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
2728         (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
2729         (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
2730         * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
2731         PRE_TAG>: Call `begin' with `FALSE'.
2733 2002-09-09  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
2735         * src/libs/libgroff/string.cc (string::extract): Fix position of
2736         terminating null byte.
2738 2002-09-08  Werner LEMBERG  <wl@gnu.org>
2740         Add global option `nospaces' to tbl so that leading and trailing
2741         spaces in data items are ignored.
2743         * src/libs/libgroff/string.cc (string::remove_spaces): New member
2744         function to remove leading and trailing spaces.
2745         * src/include/stringclass.h: Updated.
2747         * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
2749         * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
2750         option.
2751         Fix typo in error messages.
2752         (process_data): Implement `nospaces' option.
2753         * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
2755 2002-09-07  Werner LEMBERG  <wl@gnu.org>
2757         * src/include/config.hin: Add `HAVE_ISATTY'.
2758         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
2759         `fname' member.
2760         * src/libs/libgroff/tmpname.cc: Include `time.h'.
2761         * src/libs/libdriver/input.cc (Char): Add `operator==' and
2762         `operator!=' for `char'.
2763         * doc/groff.texinfo: Replace @ifnottex block for top node with
2764         @ifhtml block.
2766 2002-09-06  Werner LEMBERG  <wl@gnu.org>
2768         * doc/Makefile.in (.texinfo.html): Add -I switch.
2769         * doc/groff.texinfo: Add @ifnottex block for top node to make
2770         translation to HTML work.
2772 2002-09-05  Gaius Mulley  <gaius@glam.ac.uk>
2774         * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
2775         (get_papersize, determine_vertical_offset): Removed.
2776         (char_buffer::do_image): Always specify letter size.
2777         (main): Updated.
2778         (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
2779         -sPAPERSIZE.
2781 2002-09-05  Werner LEMBERG  <wl@gnu.org>
2783         * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
2784         default indentation.
2786 2002-09-04  Gaius Mulley  <gaius@glam.ac.uk>
2788         * src/preproc/html/pre-html.cc (imageList::createPage): Use
2789         -sPAPERSIZE for gs.
2790         (generateImages): Clean up push-back buffer.
2792 2002-09-04  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
2794         * doc/groff.texinfo: Minor fixes.
2796 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
2798         * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
2799         (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
2800         (gsPaper): Removed.
2801         (determine_vertical_offset): Use LETTER_LENGTH.
2802         (createPage): Moved to ...
2803         (imageList::createPage): This.
2804         Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
2805         (imageList::getMaxX): New function.
2806         (createImage): Moved to ...
2807         (imageList::createImage): This.
2808         (imageList::createImages): New function.
2809         (generateImages): Read `maxx' directly.
2810         Updated.
2811         (scanArguments): Don't specify `gsPaper' for `-o'.
2812         (makeTempFiles): Call `xtmpfile' with the last argument set to
2813         `TRUE'.
2815 2002-08-24  Werner LEMBERG  <wl@gnu.org>
2817         * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
2818         (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
2819         * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
2820         * src/preproc/html/pushback.cc: Include nonposix.h.
2821         * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
2822         conditionally.
2824 2002-08-23  Werner LEMBERG  <wl@gnu.org>
2826         Use $(OBJEXT) for the object file extension.
2828         * Makefile.comm (.SUFFIXES): Add .obj.
2829         (.cc.obj, .c.obj): New implicit rules.
2830         * Makefile.in (OBJEXT): New variable, initialized from autoconf.
2831         (MDEFINES): Add EXEEXT and OBJEXT.
2832         * */Makefile.sub: s/.o/.$(OBJEXT)/.
2834 2002-08-22  Werner LEMBERG  <wl@gnu.org>
2836         * INSTALL: Mention texinfo 4.2 as a prerequisite.
2838 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
2840         * src/devices/grohtml/post-html.cc (colType): Make enum global to
2841         the file.
2842         (html_printer::update_min_max, html_printer::add_table_end): New
2843         methods.
2844         (html_printer::lookahead_for_tables): Use them.
2845         Reset page offset correctly.
2846         (html_printer::~html_printer): Add creation of creator comment up.
2848 2002-08-20  Werner LEMBERG  <wl@gnu.org>
2850         * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
2851         * man/groff_tmac.man: Fix typos.
2852         * man/groff_font.man: Minor reordering.
2853         * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
2854         * contrib/groffer/groffer.man: Fix typos.
2856 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
2858         Avoid endless loops while scanning for tables.
2860         * src/devices/grohtml/post-html.cc (list::insert): Set
2861         ptr->right->left.
2862         (html_printer::next_horiz_pos): Add `text_glob' argument; update
2863         all callers.
2864         Return immediately if that argument is NULL.
2865         (html_printer::calc_nf): Don't test if `g' is NULL.
2866         (html_printer::lookahead_for_tables): Use
2867         `glyphs.move_right_get_data'.
2868         Don't test if `g' is NULL.
2870 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
2872         A better fix, replacing fix 2002-08-15, for increasing SIZE.
2874         * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
2875         a pointer.
2876         (char_block::char_block): Allocate `buffer'.
2877         (char_buffer::add_string): Use it.
2879 2002-08-15  Werner LEMBERG  <wl@gnu.org>
2881         * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
2882         src/devices/grodvi/grodvi.man: Document default line thickness.
2884 2002-08-15  Gaius Mulley  <gaius@glam.ac.uk>
2886         * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
2887         8192.
2889 2002-08-14  Werner LEMBERG  <wl@gnu.org>
2891         * doc/webpage.ms: Updated.
2893 2002-08-09  Werner LEMBERG  <wl@gnu.org>
2895         * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
2896         unbreakable space.
2898 2002-08-08  Aaron Campbell  <aaron@monkey.org>
2900         * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
2901         (&& -> &).
2903 2002-08-08  Werner LEMBERG  <wl@gnu.org>
2905         * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
2906         tok.next().
2907         (read_gray): Ditto.
2908         Don't push back a space but a newline onto the stack.
2910 2002-08-07  Gaius Mulley  <gaius@glam.ac.uk>
2912         Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
2913         inadvertently.
2915         * src/devices/grohtml/post-html.cc (html_printer::end_font,
2916         html_printer::start_font): Handle them.
2917         * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
2918         reset bold and tt.
2919         (html_text::do_bold): Don't reset italic and tt.
2920         (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
2921         * font/devhtml/DESC.proto: Add those fonts.
2922         * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
2924 2002-08-07  Werner LEMBERG  <wl@gnu.org>
2926         * MORE.STUFF: Added gpresent.
2928         * tmac/trace.tmac: Show nesting level by a corresponding amount of
2929         whitespace before printing the logging message.
2931 2002-07-31  Colin Watson  <cjwatson@debian.org>
2933         * src/devices/grohtml/html-table.cc (html_table::finish_row):
2934         Initialize `n' to zero.  This fixes a segfault on ARM.
2936 2002-07-30  Werner LEMBERG  <wl@gnu.org>
2938         * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
2940 2002-07-29  Werner LEMBERG  <wl@gnu.org>
2942         * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
2943         final semicolon.
2945 2002-07-28  Colin Watson  <cjwatson@debian.org>
2947         * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
2948         `.ps'.
2949         (html_printer::html_printer): Initialize `pointsize'.
2951 2002-07-26  Werner LEMBERG  <wl@gnu.org>
2953         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
2954         gnu.png.
2955         (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
2956         (gnu.eps): Add -rle switch to pnmtops.
2957         (distfiles): Add gnu.eps and gnu.png.
2959 2002-07-25  Petter Reinholdtsen  <pere@hungry.com>
2961         * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
2962         Add `operator!='.
2964 2002-07-24  Werner LEMBERG  <wl@gnu.org>
2966         * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
2967         ' \+' but '  *' for sed.
2968         (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
2970 2002-07-23  Werner LEMBERG  <wl@gnu.org>
2972         * doc/groff.texinfo: Document `papersize' keyword.
2973         * NEWS, man/groff_font.man: Updated.
2975 2002-07-23  Colin Watson  <cjwatson@debian.org>
2977         Extend papersize keyword to accept more than a single entry.  The
2978         first valid will be used.
2980         * src/libs/libgroff/font.cc (font::load_desc): Implement it.
2981         (font::scan_papersize): Really skip final newline.
2982         * src/preproc/html/pre-html.cc (get_papersize): Ditto.
2984 2002-07-23  Werner LEMBERG  <wl@gnu.org>
2986         * configure.ac: Test for isatty.
2987         * configure: Regenerated.
2988         * src/include/posix.h: Check HAVE_ISATTY.
2989         * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
2990         * src/utils/lookbib/lookbib.cc: Include posix.h.
2991         Don't declare isatty.
2993 2002-07-21  Werner LEMBERG  <wl@gnu.org>
2995         * NEWS: Add `output' request.
2997         * REVISION: Increased to 1.
2999 Version 1.18.0 released
3000 =======================
3002 2002-07-19  Gaius Mulley  <gaius@glam.ac.uk>
3004         Allow internal glyph indices > 0xFF in grohtml for input characters.
3006         * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
3007         as parameter.
3008         (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
3009         Updated all callers.
3010         (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
3011         (html_printer): Updated.
3013 2002-07-19  Werner LEMBERG  <wl@gnu.org>
3015         * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
3016         * font/devutf8/R.proto: Adding some missing glyphs.
3017         * font/devutf8/NOTES: Updated.
3019         * tmac/dvi.tmac: Add more composite glyphs.
3020         * tmac/html.tmac: Updated.
3022         * man/groff_char.man: Add `sum' and `product' entities.
3024         * NEWS: Updated.
3026 2002-07-18  Gaius Mulley  <gaius@glam.ac.uk>
3028         Improved table, tab, and indenting support.
3030         * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
3031         string_iterator::suppress_newline_flag): Removed.  Updated all
3032         function which have used it.
3034         * src/roff/troff/env.cc: Include `input.h'.
3035         (environment::add_node): Accept 0 as parameter.
3036         (environment::add_html_tag): Add `force' parameter.
3037         Updated all callers.
3038         (environment::add_html_tag_tabs): Ditto.
3039         For the moment, support left-aligned tabs only.
3040         (environment::make_html_tag): New function.
3041         (fill, no_fill): Set .br html tag additionally.
3042         (environment::newline): Emit `eol.ce' or `eol' tag for html.
3043         (environment::add_html_tag_eol): Removed.
3044         (tab_stops::distance_to_next_tab): Add variant for handling 
3045         nextpos'.
3046         (environment::distance_to_next_tab): Ditto.
3047         Updated all callers.
3048         (environment::handle_tab): Handle tabs for html.
3049         
3050         * src/roff/troff/env.h: Updated.
3052         * src/roff/troff/div.cc: Updated all callers of
3053         `environment::add_html_tag'.
3055         * src/devices/grohtml/html-table.cc,
3056         src/devices/grohtml/html-table.h: New files.
3058         * src/devices/grohtml/html-text.cc (html_text): New members
3059         `blank_para' and `start_space'.
3060         (html_text::issue_tag): Don't emit TABLE_TAG.
3061         Handle indentation for PRE_TAG and P_TAG.
3062         (html_text::end_tag): Updated.
3063         (html_text::table_is_void, html_text::issue_table_begin,
3064         html_text::issue_table_end): Removed.
3065         (html_text::do_push): Simplified.
3066         [DEBUGGING]: Small fix.
3067         (html_text::push_para): Add new parameter for indentation; updated
3068         all callers.
3069         Handle PRE_TAG.
3070         (html_text::do_indent, html_text::do_table, html_text::done_table,
3071         html_text::is_in_table): Removed.
3072         (html_text::do_pre): Handle P_TAG also.
3073         (html_text::shutdown): Handle p->indent.
3074         (html_text::check_emit_text): Simplified.
3075         (html_text::do_emittext): Reset `blank_para'.
3076         (html_text::do_para): Add new parameter for indentation; updated
3077         all callers.
3078         (html_text::remove_indent): New function.
3079         (html_text::do_space): Handle verbatim text properly.
3080         (html_text::ever_emitted_text, html_text::starts_with_space,
3081         html_text::remove_para_align): New functions.
3082         (html_text::dump_stack_element, html_text::dump_stack): Updated.
3084         * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
3085         Updated.
3087         * src/devices/grohtml/post-html.cc: Include html-table.h.
3088         (INDENTATION): Removed.
3089         (text_glob): Added many `is_<foo>' functions.
3090         Added table description `tab'.
3091         Added `get_arg',`get_tab_args', `remember_table', and `get_table'
3092         member functions.
3093         (list): Add `insert' and `move_to' member functions.
3094         (page): Add `insert_tag' member function.
3095         (page::dump_page) [DEBUG_TABLES]: Improved.
3096         (html_printer): Add `table' and `max_linelength' elements.
3097         Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
3098         `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
3099         `remove_tabs', `remove_courier_tabs'.
3100         (html_printer::emit_raw): Handle indentation.
3101         (html_printer::do_center, html_printer::write_header): Updated.
3102         (html_printer::is_courier_until_eol): Check for tag.
3103         (html_printer::do_linelength): Handle max_linelength.
3104         (html_printer::do_page_offset, html_printer::do_indentation): Handle
3105         fill_on.
3106         (html_printer::do_tempindent): Updated.
3107         (html_printer::do_indentedparagraph): Removed.
3108         (html_printer::do_indent): Simplified.
3109         (html_printer::do_eol): Use `ever_emitted_text'.
3110         (html_printer::do_flush, html_printer::do_links): Don't call
3111         done_table.
3112         (html_printer::do_break): Handle end_tempindent.
3113         (html_printer::troff_tag): Get argument.
3114         Don't handle `.ip'.
3115         Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
3116         (html_printer::flush_page): Call `lookahead_for_tables'.
3117         Don't call `done_table'.
3118         (html_printer::add_to_sbuf): Always call do_indent.
3120         * src/devices/grohtml/Makefile.sub: Updated.
3122         * tmac/an-old.tmac (TP): Don't handle html device specially.
3123         (an-do-tag-html): New function which will be used instead of
3124         `an-do-tag' if html device is used.
3126         * tmac/html.tmac: Call .po to pass default page offset to grohtml.
3128         * tmac/s.tmac (@IP): Don't handle html device specially.
3129         (@IP-html): New function which will be used instead of `@IP' if
3130         html device is used.
3132         * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
3133         is a hack which will eventually vanish again.
3134         (PIMG): Handle `-C' option correctly if not html.
3135         (HR): Use HTML-NS.
3137 2002-07-17  Werner LEMBERG  <wl@gnu.org>
3139         * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
3141 2002-07-14  Eric S. Raymond  <esr@thyrsus.com>
3143         * contrib/pic2graph/pic2graph.*: Use convert(1).
3144         * contrib/eqn2graph/eqn2graph.*: Minor fixes.
3146 2002-07-14  Bernd Warken  <bwarken@mayn.de>
3148         * tmac/groff_trace.man: New file.
3149         * tmac/Makefile.sub: Updated.
3150         * NEWS: Updated.
3152 2002-07-13  Werner LEMBERG  <wl@gnu.org>
3154         * src/roff/groff/groff.man: Add some cross references.
3156 2002-07-12  Werner LEMBERG  <wl@gnu.org>
3158         * src/roff/troff/input.cc (substring_request): Add warnings for
3159         string indices out of range.
3161 2002-07-11  Werner LEMBERG  <wl@gnu.org>
3163         * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
3164         * font/devdvi/*EC: Regenerated.
3166 2002-07-10  Bernd Warken  <bwarken@mayn.de>
3168         * man/groff_char.man: Updated and extended.
3170 2002-07-10  Werner LEMBERG  <wl@gnu.org>
3172         * src/roff/troff/input.cc (length_macro): Renamed to...
3173         (length_request): This.
3174         Move call of `tok.next()' to the very end, otherwise the register
3175         value hasn't been updated yet.
3176         (init_input_requests): Updated.
3178 2002-07-09  Werner LEMBERG  <wl@gnu.org>
3180         * src/roff/troff/input.cc (substring_macro): Renamed to...
3181         (substring_request): This.
3182         (init_input_requests): Updated.
3183         * src/roff/troff/request.h: Updated.
3185 2002-07-08  Robert D. Goulding  <goulding@Princeton.EDU>
3187         * src/roff/grog/grog.sh: Fix typo.
3189 2002-07-08  Werner LEMBERG  <wl@gnu.org>
3191         * win32-diffs: Updated.
3193         Handle `papersize' keyword properly in DESC.
3195         * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
3196         type.
3197         Updated all callers.
3198         * src/libs/libgroff/paper.cc: Add four more paper formats used by
3199         grolj4.
3200         * src/include/paper.h: Updated.
3202         * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
3203         Other minor C syntax fixes.
3204         (papersize, paperlength, paperwidth): Renamed to `user_*'.
3205         (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
3206         members.
3207         (lbp_printer::lbp_printer): Pass three arguments.
3208         Set paper dimensions properly.
3209         (make_printer, main): Updated.
3210         (handle_unknown_desc_command): Fix error messages.
3211         (main): Handle papersize keyword in DESC properly.
3213         * src/devices/grolj4/lj4.cc (paper_size): Renamed to
3214         `user_paper_size'.
3215         (lbp_printer::lbp_printer): Pass an argument.
3216         Set paper_size properly.
3217         (handle_unknown_desc_command): Removed.
3218         (make_printer, main): Updated.
3219         * src/devices/grolj4/grolj4.man: Minor documentation fix.
3221         * man/groff_font.man, NEWS: Updated.
3223 2002-07-07  Werner LEMBERG  <wl@gnu.org>
3225         Integrated eqn2graph, contributed by Eric S. Raymond.
3227         * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
3228         files.
3229         * Makefile.in, NEWS: Updated.
3231 2002-06-04  Werner LEMBERG  <wl@gnu.org>
3233         Changing the substring request to make it fit better with other
3234         string manipulation functions in other programming languages:
3235         Index 0 is now the first character in the string, and index -1
3236         indicates the last character.  Since this request didn't work
3237         properly anyway in the last release, it doesn't harm too much to
3238         change the syntax.
3240         * src/roff/troff/input.cc (substring_macro): Use loops to get
3241         the real string length (ignoring COMPATIBLE_SAVE and
3242         COMPATIBLE_RESTORE) and offsets.
3243         Implement change described above.
3245         * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
3246         (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
3248         * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
3250 2002-06-03  Werner LEMBERG  <wl@gnu.org>
3252         Make .chop work with .de1 and friends.  COMPATIBLE_SAVE and
3253         COMPATIBLE_RESTORE are completely ignored.
3255         * src/roff/troff/input.cc (char_list::set, char_list::get): New
3256         functions.
3257         (macro): `length' field renamed to `len'.
3258         Added new field `empty_macro' (1 if macro is empty), to be used
3259         instead of checking `len'.
3260         Updated all callers.
3261         (macro::empty): Updated.
3262         (macro::length, macro::set, macro::get): New functions.
3263         (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
3264         Set `empty_macro'.
3265         (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
3266         COMPATIBLE_RESTORE pairs.
3267         (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
3268         * src/roff/troff/request.h: Updated.
3270         * doc/groff.texinfo: Document .chop's behaviour better.
3272 2002-06-02  Werner LEMBERG  <wl@gnu.org>
3274         * doc/pic.ms: Fix documentation for the addition of positions.
3276         * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
3278 2002-06-29  Werner LEMBERG  <wl@gnu.org>
3280         Implementation of string arguments of the form \*[foo arg1 arg2 ...]
3282         * src/roff/troff/input.cc (have_string_arg): New global variable.
3283         (read_mode): New enumeration.
3284         (read_escape_name): Use it.  Update all calls.
3285         (read_long_escape_name): Use it.  Update all calls.
3286         Set have_string_arg if appropriate.
3287         (get_char_for_escape_name): Add parameter for handling space
3288         character.
3289         (interpolate_string_with_args, decode_string_args): New functions.
3290         (get_copy, token::next): Call it if necessary.
3291         (interpolate_string): Fix error message.
3293         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
3294         Document it.
3296 2002-06-24  Bernd Warken  <bwarken@mayn.de>
3298         * man/groff_tmac.man: Updated and extended.
3300 2002-06-24  Werner LEMBERG  <wl@gnu.org>
3302         * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
3304 2002-06-23  Werner LEMBERG  <wl@gnu.org>
3306         * doc/pic.ms: Improve documentation of composite block objects.
3308 2002-06-22  Werner LEMBERG  <wl@gnu.org>
3310         * src/roff/troff/input.cc (init_registers): Add three registers
3311         `seconds', `minutes', and `hours' to hold the current time.
3313         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
3314         Updated.
3316 2002-06-20  Werner LEMBERG  <wl@gnu.org>
3318         Make \X accept both `\ ' and `\~', converting them to single space
3319         characters.
3321         * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
3322         (token::unstretchable_space): New inline function.
3323         * src/roff/troff/input.cc (token::next, token::delimiter,
3324         token::description, token::add_to_node_list, token::process): Handle
3325         TOKEN_UNSTRETCHABLE_NODE.
3326         (encode_char): Handle tok.stretchable_space and
3327         tok.unstretchable_space.
3329         * NEWS, doc/groff.texinfo: Document it..
3331 2002-06-19  Werner LEMBERG  <wl@gnu.org>
3333         * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
3335         * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
3336         keyword to enable/disable SGR output.
3337         (tty_printer::change_fill_color): New function.
3338         * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
3340         * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
3341         call.
3343 2002-06-18  Werner LEMBERG  <wl@gnu.org>
3345         Add a `color' request and a `.color' register to control usage of
3346         colours.
3348         * src/roff/troff/input.cc (disable_color_flag): Replaced with...
3349         (color_flag): This (which is the inverse).
3350         (activate_color): New function.
3351         (main, init_input_requests): Updated.
3352         * src/roff/troff/troff.h, src/roff/troff/node.cc
3353         (troff_output_file::fill_color, troff_output_file::glyph_color):
3354         Updated.
3356         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
3357         Document the changes.
3359 2002-06-17  Colin Watson  <cjwatson@debian.org>
3361         Circumvent bug in autoconf 2.53 regarding top_builddir.
3363         * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
3364         * Makefile.in, doc/Makefile.in:
3365         s/@top_builddir@/@groff_top_builddir@/.
3366         * configure: Regenerated (with autoconf 2.53).
3368 2002-06-17  Werner LEMBERG  <wl@gnu.org>
3370         * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
3371         `paperwidth' and `paperlength' for the `papersize' keyword.
3373 2002-06-16  P. Alejandro Lopez-Valencia  <dradul@007mundo.com>
3375         * src/devices/grops/grops.man: Add info about Type 42 fonts.
3377 2002-06-15  Gaius Mulley  <gaius@glam.ac.uk>
3379         * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
3380         html_printer::do_linelength, html_printer::do_pageoffset,
3381         html_printer::do_indentation, html_printer::do_tempindent,
3382         html_printer::do_break, html_printer::begin_page): Clear indented
3383         text.
3384         * tmac/html.tmac: Disable hyphenation.
3386 2002-06-15  Werner LEMBERG  <wl@gnu.org>
3388         Don't produce HTML files if utility programs are missing.
3390         * Makefile.in (make_html, make_install_html): New variables.
3391         (MDEFINES): Updated.
3393         * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
3394         utility programs.
3395         * configure.ac: Use it.
3396         * configure: Regenerated.
3398         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
3399         (HTMLEXAMPLESFILES): This new variable.
3400         (EXAMPLESIMAGEFILES): Renamed to...
3401         (HTMLEXAMPLEIMAGEFILES): This.
3402         (CLEANADD): Add HTMLEXAMPLEFILES.
3403         (all): Use `make_html'.
3404         (html): New target.
3405         (install_data): Use `make_install_html'.
3406         Move html stuff to...
3407         (install_html): This new target.
3408         (uninstall_sub): Updated.
3410 2002-06-14  Bernd Warken  <bwarken@mayn.de>
3412         * src/roff/grog/Makefile.sub (grog): Renamed to...
3413         (grog.old): This.
3414         (grog): New rule to always install grog.sh as grog.
3416 2002-06-08  Bernd Warken  <bwarken@mayn.de>
3418         * src/roff/grog/grog.pl: Fix typo.
3420 2002-06-07  Werner LEMBERG  <wl@gnu.org>
3422         * doc/groff.texinfo: Add more info on .tr arguments.
3424 2002-06-05  Werner LEMBERG  <wl@gnu.org>
3426         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
3428         * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
3429         * configure: Regenerated.
3431 2002-06-05  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
3433         * src/roff/troff/symbol.cc (table_sizes): Add more values.
3435         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
3437 2002-06-04  Werner LEMBERG  <wl@gnu.org>
3439         * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
3440         is not initialized at the time we need it in case `--prefix' hasn't
3441         been set.  Check for `ac_default_prefix' also.
3442         Test for `papersize' keyword also and generalize allowed whitespace.
3443         * configure: Regenerated.
3445         * font/devps/Makefile.sub (DESC): Use `papersize' instead of
3446         `paperlength'.
3448         * src/libs/libgroff/Makefile.sub (version, revision): Replaced
3449         with...
3450         (src_version, src_revision): New variables to avoid overwriting
3451         from parent make process.
3452         (version.cc): Updated.
3454         * src/preproc/html/pre-html.cc: Include paper.h and font.h.
3455         (linebuf, linebufsize): New global variables.
3456         (sys_fatal): Use `fatal' to abort properly.
3457         (get_line): New function.
3458         (get_resolution): Use it.
3459         Improve error messages.
3460         (get_papersize): Check `papersize' also.
3461         Use `get_line'.
3462         Improve error messages.
3464 2002-06-03  Werner LEMBERG  <wl@gnu.org>
3466         * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
3467         should be removed only if builddir is not srcdir.
3468         (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
3469         (clean): Depend on `mostlyclean'.
3470         (distclean): Depend on `clean'.
3471         (realclean, extraclean): Depend on `distclean'.
3472         (.y.cc, .y.o): Simplified.  The output files are no longer written
3473         to srcdir but to builddir.
3474         * Makefile.in (MDEFINES): Add `version' and `revision'.
3475         (uninstall_dirs): Fix order of directories.
3476         * doc/Makefile.sub (version, revision): Removed.
3477         (CLEANADD): Removed grnexmpl.g, groff, groff-*.
3478         Added `HTMLDOCFILES'.
3479         (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
3480         * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
3481         src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
3482         as prefix.
3484         * doc/texinfo.tex (\authortt): New macro.
3485         (\shortcontt): Define.
3486         (\titlepage): Set \tt to \authortt while defining \authorfont.
3487         (\appendixbox): New macro.
3488         (\chapmacro, \appendixentry): Use \appendixbox to get even
3489         indentation for letters.
3490         (\summarycontents): Set \tt.
3491         (\internalpagesize): Add two arguments for real paper width and
3492         height as needed by pdfTeX.
3493         (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
3494         Updated.
3495         (\tempdima, \tempdimb): New temporary dimensions.
3496         (\pagesizesyyy): Updated.
3498 2002-06-02  Werner LEMBERG  <wl@gnu.org>
3500         Adding a new keyword `papersize' to the DESC file format (similar
3501         but not completely identical to grolbp's extension).  grops now has
3502         a -p command line option to override `papersize'.  Finally, grolbp
3503         has been adapted to the new syntax.
3505         * src/libs/libgroff/paper.cc, src/include/paper.h: New files.  It
3506         defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
3507         elements.
3508         * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
3509         (CCSRCS): Add `paper.cc'.
3511         * src/include/font.h (font): Add `papersize' element.
3512         * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
3513         (font::scan_papersize): New function.
3514         (font::load_desc): Use it for handling `papersize' keyword.
3515         * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
3517         * src/devices/grops/ps.cc: Include paper.h.
3518         (user_paper_length): New global variable.
3519         (ps_printer): Use paper length as initializer.
3520         (make_printer): Updated.
3521         (main): Handle new `-p' option.
3522         * src/devices/grops/grops.man: Updated.
3524         * src/devices/grolbp/lbp.cc: Include paper.h.
3525         s/papersizes/lbp_papersizes/.
3526         (set_papersize): Use new `papersizes' array.
3527         (handle_unknown_desc_command): Don't handle `papersize'.
3528         (main): Use `font::scan_papersize' for handling `-p' option.
3529         * src/devices/grolbp/grolbp.man: Updated.
3531         * man/groff_font.man: Document `papersize'.
3532         * NEWS: Updated.
3534 2002-05-30  Werner LEMBERG  <wl@gnu.org>
3536         * src/devices/grops/TODO: Updated.
3537         * src/devices/grops/grops.man: More info on paper formats.
3538         * man/groff_font.man: Document `paperheight' and `paperwidth'.
3540 2002-05-29  Werner LEMBERG  <wl@gnu.org>
3542         * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
3543         to list only if srcdir != currdir.
3544         (distfiles): New target.
3546         * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
3547         (NOMAKEDIRS): New variable.
3548         (DISTDIRS): Use it.
3550 2002-05-26  Werner LEMBERG  <wl@gnu.org>
3552         Add .output request, similar to \! at top-level.
3554         * src/roff/troff/input.cc (transparent): Remove unused declaration.
3555         (output_request): New function.
3556         (init_input_requests): Add it.
3557         Sorted.
3558         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
3559         Document it.
3561         * Makefile.in (MDEFINES): Add INSTALL_INFO.
3562         (prepare_examples): Fix typo.
3563         * doc/groff.texinfo (@direntry): Fix it.
3565 2002-05-25  Werner LEMBERG  <wl@gnu.org>
3567         Including the doc subdir into groff's Makefile system.
3569         * aclocal.m4 (GROFF_INSTALL_INFO): New function.
3570         * configure.ac: Use it.
3571         Generate `doc/Makefile'.
3572         * configure: Regenerated.
3574         * Makefile.in (infodir, INSTALL_INFO): New variables.
3575         (MDEFINES, uninstall_dirs): Updated.
3576         (OTHERDIRS): Add `doc'.
3577         * Makefile.comm (CLEANDIRADD): New variable.
3578         (mostlyclean): Use it.
3580         * doc/Makefile.sub, doc/Makefile.in: New files.
3581         * doc/Makefile: Removed.
3583         * NEWS, INSTALL: Updated.
3585 2002-05-24  Werner LEMBERG  <wl@gnu.org>
3587         * doc/homepage.ms: Renamed to ...
3588         * doc/webpage.ms: This.
3589         Use `.NHR'.
3591 2002-05-23  Werner LEMBERG  <wl@gnu.org>
3593         Integrating the `mom' macro package, contributed by Peter Schaffter
3594         <df191@ncf.ca>.
3596         * contrib/mom/*: New subdirectory tree.
3597         * Makefile.in (docdir, exampledir, htmldocdir): New variables to
3598         be used for documentation files.
3599         (MDEFINES, uninstall_dirs): Use them.
3600         (OTHERDIRS): Add contrib/mom.
3601         * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
3602         @HTMLDOCDIR@.
3603         * MANIFEST, NEWS: Updated.
3605 2002-05-22  Gaius Mulley  <gaius@glam.ac.uk>
3607         Change syntax of \O: \O[0] suppresses output, \O[1] enables output
3608         if at outer level; at start-up we are at outer level.
3610         * src/roff/troff/input.cc (do_suppress): Implement it.
3611         Simplify \O[3].
3613         Add option -p to show progress information.
3614         pre-grohtml will now render only one page at a time, reducing the
3615         size of needed disk resources enormously.
3617         * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
3618         (imagePageName): New global variable.
3619         (psPageName, show_progress, currentPageNo): New global variables.
3620         (html_system): Close saved stderr and stdout handles.
3621         (write_end_image): Accept a parameter to control \O escape.
3622         (write_start_image): Adapted to new \O meaning.
3623         (char_buffer::write_upto_newline): Updated.
3624         (createAllPages): Replaced with...
3625         (createPage): This new function to create a single page for images.
3626         It uses `psselect' from the psutils package.
3627         (removeAllPages): Removed.
3628         (createImage): Updated.
3629         Handle progress display.
3630         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
3631         (scanArguments): Add option -p.
3632         (makeTempFiles): Updated to create temp files for psPageName and
3633         imagePageName.
3634         (removeTempFiles): Removed.
3635         (main): Updated.
3637         * src/devices/grohtml/post-html.cc (header_desc::write_headings,
3638         html_printer::write_header): Append `\0' to `buffer'.
3639         (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
3640         (main): Handle -p.
3641         * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
3642         Handle `text_emitted'.
3643         (html_text::table_is_void): Slightly rewritten.
3644         (stop): New external symbol.
3645         (html_text::do_push) [DEBUGGING]: Use it and simplify.
3646         (html_text::shutdown): Call `dump_stack'.
3647         (html_text::do_space): Rewritten.
3648         * src/devices/grohtml/grohtml.man: Document -p and the need of
3649         `psselect'.
3651         * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
3652         new \O syntax.
3653         Call \O[0] if `ps4html' is active.
3654         * tmac/s.tmac (@EQ, @EN): Handle html better.
3655         (@TS, TE): Ditto.
3656         * tmac/html.tmac: Don't use black for background colour.
3658         * src/roff/troff/node.cc: Include `div.h'.
3659         (troff_output_file::really_print_line): Don't use `is_on'. 
3660         (troff_output_file::word_marker, troff_output_file::flush_tbuf
3661         troff_output_file::check_charinfo,
3662         troff_output_file::put_char_width, troff_output_file::put_char,
3663         troff_output_file::determine_line_limits, troff_output_file::draw,
3664         real_output_file::begin_page, glyph_color_node::tprintf,
3665         fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
3666         Use `is_on'.
3667         (troff_output_file::really_on): Call `do_motion'.
3668         (suppress_node::tprint): Use `get_page_number' instead of `%'
3669         register.
3670         Call `reset_output_registers' conditionally on `is_on'.
3672         * doc/groff.texinfo: Document new syntax of \O.
3673         * NEWS, man/groff_diff.man: Updated.
3675 2002-05-22  Werner LEMBERG  <wl@gnu.org>
3677         * MORE.STUFF: Add info about David Frey's deroff implementation.
3678         Mention troff.org.
3680 2002-05-16  Werner LEMBERG  <wl@gnu.org>
3682         Pic's `with' attribute now accepts positions.
3684         * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
3685         ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
3686         conflicts.
3687         (object_spec): Add rule for `WITH' and `position'.
3688         (relative_path): Give `corner' the precedence of `CHOP'.
3689         * src/preproc/pic/object.h (path): New members `pos' and
3690         `is_position'.
3691         * src/preproc/pic/object.cc: Updated initializers of `path'.
3692         (path::follow): Handle `is_position'.
3694         * doc/pic.ms: Completely updated grammar description.
3695         Many typographical improvements.
3697 2002-05-15  Werner LEMBERG  <wl@gnu.org>
3699         * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
3700         code of x in range 0-127) also.
3701         * doc/groff.texinfo, man/groff_diff.man: Updated.
3703         Added keywords `north', `south', `east', and `west' for corners
3704         in pic.
3706         * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
3707         and WEST.
3708         (yylex): Handle them.
3709         * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
3710         (corner): Handle them.
3712 2002-05-14  Werner LEMBERG  <wl@gnu.org>
3714         * src/devices/grops/grops.man: Clarify handling of `download' file.
3716 2002-05-11  Werner LEMBERG  <wl@gnu.org>
3718         Adding `warnscale' and `spreadwarn' requests, based on a patch from
3719         Jeffrey Friedl <jfriedl@yahoo.com>.
3721         * src/roff/troff/input.cc (spread_limit, warn_scale,
3722         warn_scaling_indicator): New global variables.
3723         (warnscale_request, spreadwarn_requests): New functions.
3724         (main): Initialize `warn_scale' and `warn_scaling_indicator'.
3725         (init_input_requests): Updated.
3726         (error_type): Add `OUTPUT_WARNING'.
3727         (do_error): Handle it.
3728         (output_warning): New warning function which shows output location.
3729         * src/roff/troff/env.h (spread_limit): New external variable.
3730         * src/roff/troff/env.cc (environment::choose_breakpoint): Use
3731         `output_warning'.
3732         (distribute_space): Emit warning if added space is larger than
3733         `spread_limit'.
3734         (environment::possibly_break_line): Emit warning if a line can't
3735         be adjusted on both sides.
3737         * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
3739 2002-05-08  Werner LEMBERG  <wl@gnu.org>
3741         * src/roff/troff/node.cc (special_node::special_node): Use
3742         env_definite_font(curenv) instead of curenv->get_font().  Otherwise
3743         \X''\% crashes, for example.
3745         * doc/groff.texinfo: Document \! and \? used at top-level.
3747 2002-05-06  Werner LEMBERG  <wl@gnu.org>
3749         * src/preproc/pic/pic.man: Fix some keyword syntax.
3750         Other minor typographical fixes.
3752         * src/roff/groff/groff.man: Fix typos.
3754 2002-05-04  Werner LEMBERG  <wl@gnu.org>
3756         * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
3757         (ShortOpt[]): This to avoid problems with refer.
3759         * doc/pic.ms: Fix typo.
3760         Fix pic grammar description.
3762         * tmac/an-old.tmac (ne): Use de1, not de.
3764 2002-05-03  Werner LEMBERG  <wl@gnu.org>
3766         * doc/groff.texinfo: Finished separation of glyphs and characters.
3767         Don't use the string `Appendix' for appendix headers (both in
3768         the text and the table of contents).
3769         * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
3770         directories.
3772         Use registers LL and LT (similar to -ms) for controlling the
3773         length of title and line, respectively, in the -man and -mdoc
3774         macro packages.
3776         * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
3777         (doc-setup-page-layout): Use \n[LL] and \n[LT].
3778         * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
3779         (TH): Use \n[LL].
3780         (an-header, an-p-footer): Use \n[LT].
3781         * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
3782         doc/groff.texinfo: Document it.
3784 2002-05-02  Werner LEMBERG  <wl@gnu.org>
3786         * doc/fdl.texi: New file.
3787         * doc/groff.texinfo: Include it.
3788         Define and use @copying.
3789         Starting with separating glyph, symbol, and character.
3791 2002-04-27  Werner LEMBERG  <wl@gnu.org>
3793         * Makefile.in (EXEEXT): Set it.
3794         * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
3795         programs.
3797         * src/include/nonposix.h: Define GS_NAME.
3798         * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
3800         Some preliminary changes for EMX support under OS/2.
3802         * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
3803         __EMX__ similar to __MSDOS__.
3804         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
3806 2002-04-25  Werner LEMBERG  <wl@gnu.org>
3808         * doc/groff.texinfo: Integrated groff_out.man.
3809         Some macro fixes.
3811 2002-04-23  Werner LEMBERG  <wl@gnu.org>
3813         * man/groff_out.man: Minor fixes.
3815 2002-04-23  Werner LEMBERG  <wl@gnu.org>
3817         * doc/groff.texinfo: Moving @cindex entries after @Def* to get
3818         correct page references.
3819         Fixed many index entries.
3821 2002-04-23  Bernd Warken  <bwarken@mayn.de>
3823         * man/roff.man: Enlarged.
3825 2002-04-22  Werner LEMBERG  <wl@gnu.org>
3827         * doc/groff.texinfo: More examples, other fixes.
3829 2002-04-20  Werner LEMBERG  <wl@gnu.org>
3831         * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
3832         will now form a chain, e.g.
3834           .pi foo
3835           .pi bar
3837         is now the same as
3839           .pi foo | bar
3841         This is for compatibility with plan 9's troff.
3843         * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
3844         with UNIX troff.
3845         * NEWS: Updated.
3847         * doc/groff.texinfo: Add documentation of remaining requests and
3848         registers.
3850 2002-04-19  Werner LEMBERG  <wl@gnu.org>
3852         * doc/groff.texinfo: Add documentation of remaining escapes.
3854         * font/devdvi/generate/tc.map: Remove entry for `sr'.
3855         * font/devdvi/*TC: Regenerated.
3857 2002-04-18  Werner LEMBERG  <wl@gnu.org>
3859         * src/roff/troff/input.cc (token::next): Make \H behave consistently
3860         if not in compatibility mode, i.e., increment relative to the
3861         previous height.
3862         * doc/groff.texinfo: Updated accordingly.
3864 2002-04-17  Werner LEMBERG  <wl@gnu.org>
3866         * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
3868 2002-04-16  Bernd Warken  <bwarken@mayn.de>
3870         * src/roff/groff/groff.man: Improve documentation of -P option.
3871         Other minor fixes.
3873 2002-04-15  Werner LEMBERG  <wl@gnu.org>
3875         Add new escape \F to switch font family.
3877         * src/roff/troff/input.cc (token::next): Handle \F.
3878         * src/roff/troff/env.cc (environment::set_family): Handle
3879         `interrupted' flag.
3880         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
3881         Document it.
3883 2002-04-14  Werner LEMBERG  <wl@gnu.org>
3885         * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
3886         spaces in tags.
3888 2002-04-13  Werner LEMBERG  <wl@gnu.org>
3890         Implement \f[] as an alternative to \fP.  Change \mP and \MP to
3891         \m[] and \M[], respectively.
3893         * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
3894         (symbol::symbol): Handle NULL string and empty string differently.
3895         * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
3896         * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
3897         Add optional parameter.
3898         Updated calling functions.
3899         (get_copy, do_glyph_color, do_fill_color, token::next): Use
3900         `symbol::is_empty'.
3901         * src/roff/troff/env.cc (environment::set_font): Ditto.
3903         * src/preproc/pic/troff.cc (troff_output::set_fill,
3904         troff_output::reset_color: Updated.
3906         * tmac/www.tmac: Updated.
3908         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
3909         doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
3910         Updated.
3912         * tmac/Xps.tmac: Remove some redundant code.
3914         * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
3915         tmac/dvi.tmac, contrib/groffer/groffer.man, man/roff.man,
3916         man/groff_out.man, man/groff.man, man/groff_diff.man,
3917         src/roff/groff/groff.man: Replace \f[P] with \f[].
3919 2002-04-13  Bernd Warken  <bwarken@mayn.de>
3921         * src/include/printer.h, src/libs/libdriver/printer.cc
3922         (printer::change_fill_color): New member function.
3923         * src/libs/libdriver/input.cc (parse_D_command): Use it.
3925 2002-04-12  Werner LEMBERG  <wl@gnu.org>
3927         * doc/groff.texinfo: Completed pass on gtroff reference.
3929 2002-04-11  Werner LEMBERG  <wl@gnu.org>
3931         * doc/groff.texinfo: More fixes.
3933 2002-04-11  Bernd Warken  <bwarken@mayn.de>
3935         * src/include/color.h: Decorate with `const'.
3936         Use `size_t'.
3937         Include `stddef.h'.
3938         * src/libs/libgroff.color.cc: Decorate with `const'.
3939         Use `size_t'.
3940         (color::color): Initialize members.
3941         * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
3942         command according to the documentation.
3944         * man/groff_out.man: Updated.
3945         Minor fixes.
3947 2002-04-11  Gaius Mulley  <gaius@glam.ac.uk>
3949         * src/preproc/html/pre-html.cc (write_start_image): Remove
3950         redundant output.
3951         * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
3953         * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
3954         \C'hy' caused an assertion failure.
3956         * src/roff/troff/env.cc (environment::environment): Initialize
3957         `emitted_node'.
3958         (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
3960 2002-04-10  Werner LEMBERG  <wl@gnu.org>
3962         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
3963         Document pvs request and .pvs register.
3965 2002-04-09  Werner LEMBERG  <wl@gnu.org>
3967         * doc/groff.texinfo: Improve and fix documentation of diversions
3968         and environments.
3970 2002-04-08  Werner LEMBERG  <wl@gnu.org>
3972         * doc/groff.texinfo: Fix documentation of drawing functions.
3973         Other minor fixes.
3975 2002-04-07  Werner LEMBERG  <wl@gnu.org>
3977         * doc/groff.texinfo: Better documentation of double quotes as
3978         arguments.
3979         Other minor fixes.
3981 2002-04-06  Werner LEMBERG  <wl@gnu.org>
3983         * man/groff_font.man: Document names of special characters better.
3984         * doc/groff.texinfo: Minor improvements.
3986         * tmac/lbp.tmac: Load latin1.tmac.
3987         * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
3989         * font/devX*/*: Regenerated (all chars > 0x80 removed).
3991 2002-04-05  Werner LEMBERG  <wl@gnu.org>
3993         * tmac/tty.tmac: Don't use shc request.
3994         * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
3995         * NEWS: Updated.
3997         * man/groff_diff.man: Minor fixes.
3999         * font/devlbp/*: Remove all `charXXX' entities.
4001         * src/libs/libgroff/font.cc (font::~font): Deallocate
4002         `special_device_coding'.
4003         (font::load): Use `new' for allocating `special_device_coding'.
4004         * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
4005         Removed unused member.
4007 2002-04-05  Werner LEMBERG  <wl@gnu.org>
4009         * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
4010         (resource_manager::do_begin_binary,
4011         resource_manager::do_begin_data): Use it.
4013         * doc/texinfo.tex: Updated to version 4.2.
4015         * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
4016         (token::zero_width_break): New inline function.
4017         * src/roff/troff/input.cc (token::next): Use it.
4018         (token::description): Updated.
4019         (encode_char): Ignore `\%', `\&', `\)', and `\:'.
4020         (token::add_to_node_list, token::process): Use it.
4021         * NEWS, doc/groff.texinfo: Updated.
4023         * src/preproc/eqn/over.cc (over_box::output): Fix typo.
4024         * tmac/tty.tmac: Add missing backslash.
4026 2002-04-04  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
4028         * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
4029         `.ps' register instead of `.s' to handle fractional point sizes.
4030         * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
4031         limit_box::output): Ditto.
4032         * src/preproc/eqn/other.cc (size_box::compute_metrics,
4033         size_box::output): Ditto.
4034         * src/preproc/eqn/over.cc (over_box::compute_metrics,
4035         over_box::output): Ditto.
4036         * src/preproc/eqn/script.cc (script_box::compute_metrics,
4037         script_box::output): Ditto.
4038         * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
4039         sqrt_box::output): Ditto.
4041 2002-04-03  Michael Selway  <mas@ssl.co.uk>
4043         * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
4044         Fix typo.
4046 2002-04-03  Werner LEMBERG  <wl@gnu.org>
4048         * doc/homepage.ms: Reduce title size.
4049         * doc/groff.texinfo: Fix documentation of .t register.
4050         Fix handling of colon.
4051         Fix `\' vs. `\\'.
4053         * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
4054         only if page length is positive to avoid a loop.
4056         * tmac/an-old.tmac (ne): Increase page length to avoid problems with
4057         tbl.
4059 2002-04-02  P. Alejandro Lopez-Valencia  <dradul@yahoo.com>
4061         * src/include/nonposix.h, src/roff/groff/pipeline.c:
4062         s/__CYGWIN32__/__CYGWIN__/.
4064 2002-03-28  Gaius Mulley  <gaius@glam.ac.uk>
4066         * doc/gnu.xpm: New image contributed by Emily Mulley.
4067         * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
4068         (homepage.html): Be dependent on gnu.eps.
4069         * doc/homepage.ms: Updated to new image.
4071         * src/devices/grohtml/post-html.cc (html_printer): New member
4072         `sbuf_prev_hpos'.
4073         (html_printer::flush_sbuf, html_printer::set_char): Set it.
4074         (html_printer::sbuf_continuation): Use it.
4076 2002-03-28  Werner LEMBERG  <wl@gnu.org>
4078         * src/libs/libgroff/getopt.c: Updated to latest version.
4080         * tmac/README: More on hyphen.tex license.
4082 2002-03-26  Larry Kollar  <kollar@alltel.net>
4084         * doc/groff.texinfo: Add documentation of most missing requests.
4086 2002-03-25  Werner LEMBERG  <wl@gnu.org>
4088         Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
4089         of `+-', `mu', and `di', respectively.
4091         * font/devascii/R.proto, font/devutf8/R.proto,
4092         font/devlatin1/R.proto, font/devhtml/R.proto,
4093         font/devcp1047/R.proto, font/devlpb/*: Add them.
4094         * font/devps/generate/textmap: Ditto.
4095         * font/devps/*: Regenerated.
4096         * font/devlj4/generate/text.map: Add them.
4097         * font/devlj4/*: Regenerated.
4098         * font/devdvi/generate/tc.map: Use them.
4099         * font/devdvi/generate/texsy.map: Add them.
4100         * font/devdvi/*: Regenerated.
4101         * font/devX*/*: Regenerated.
4103         * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
4104         tmac/tty-char.tmac: Updated.
4106         * NEWS, man/groff_char.man: Updated.
4108 2002-03-24  Werner LEMBERG  <wl@gnu.org>
4110         * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
4111         tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
4112         * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
4113         we use `.fchar' in dvi.tmac.
4114         * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
4115         * tmac/Xps.tmac: Simplify some char definitions.
4116         Add definition for \[f/].
4117         * man/groff_char.man: Updated for new X.tmac.
4119         * tmac/README: New file.
4121 2002-03-23  Phil Lobbes  <phil@perkpartners.com>
4123         * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
4124         internal .y.o rule took precendence over the .y.cc rule, compiling
4125         the yacc files with gcc instead of g++.
4127 2002-03-23  Werner LEMBERG  <wl@gnu.org>
4129         * tmac/dvi.tmac: Add replacement font for `CB'.
4131         * tmac/doc.tmac: s/request/macro/ in messages.
4132         (doc-generic-macro): Improve error message.
4133         * tmac/groff_mdoc.man: Minor improvements.
4135 2002-03-22  Werner LEMBERG  <wl@gnu.org>
4137         * doc/groff.texinfo: Document possible conflict between `tr' and
4138         `char' requests.
4140 2002-03-21  Werner LEMBERG  <wl@gnu.org>
4142         Improve handling of hyphenation patterns.  It is now possible to
4143         use most of TeX's pattern files unmodified.  To make the process
4144         more flexible, a new request `hpfcode' has been added which
4145         provides a character code mapping for the `hpf' request.  See
4146         comment before hpf_getc() for more details.
4148         * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
4149         functions.
4150         (read_patterns_file): Additional parameter for exception dictionary.
4151         Extended to recognize \pattern, \hyphenation, and \endinput.
4152         (do_hyphenation_patterns_file): Updated.
4153         * src/roff/troff/env.h (hpf_code_table): New extern.
4155         * src/roff/troff/input.cc (hpf_code_table): New array.
4156         (init_hpf_code_table, hyphenation_patterns_file_code): New
4157         functions.
4158         (hyphenation_code): Handle translation from `trin' correctly.
4159         (main, init_input_requests): Updated.
4160         (charinfo::set_translation): Handle hyphenation code also.
4162         * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
4163         inline function.
4165         * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
4166         char' is used for offsets in hyphenation exceptions.
4168         * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
4170         * NEWS, man/groff_diff.man, man/groff.man: Document it.
4172 2002-03-20  Larry Kollar  <kollar@alltel.net>
4174         * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
4175         requests.
4177 2002-03-18  Werner LEMBERG  <wl@gnu.org>
4179         * tmac/html.tmac: Fix serious typo.
4181 2002-03-17  Larry Kollar  <kollar@alltel.net>
4183         * doc/groff.texinfo: Add documentation for `writec' request.
4185 2002-03-17  Werner LEMBERG  <wl@gnu.org>
4187         Added request `hpfa' to append hyphenation patterns.
4189         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
4190         parameter `append'.
4191         (hyphenation_patterns_file): Renamed to...
4192         (do_hyphenation_patterns_file): This.
4193         (hyphenation_patterns_file, hyphenation_patterns_file_append): New
4194         functions.
4195         (init_hyphen_requests): Updated.
4196         * NEWS, man/groff.man, man/groff_diff.man: Document it.
4198 2002-03-16  Werner LEMBERG  <wl@gnu.org>
4200         Added request `writec' in analogy to `tmc'.
4202         * src/roff/troff/input.cc (write_request): Renamed to...
4203         (do_write_request): This.
4204         Added one parameter.
4205         (write_request, write_request_continue): New functions.
4206         (init_input_requests): Updated.
4207         * NEWS, man/groff.man, man/groff_diff.man: Document it.
4209         * font/devdvi/DESC.in (sizes): Allow all sizes in the range
4210         5-10000pt.
4211         * NEWS: Document it.
4213 2002-03-15  Werner LEMBERG  <wl@gnu.org>
4215         * man/groff.man: Add writem request.
4217         Add request `trin' (translate input) to make `.asciify' work
4218         correctly.  This is necessary since `charXXX' entity names are no
4219         longer hardcoded in font definition files.
4221         * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
4222         `translate_input' members.
4223         (charinfo::set_asciify_code, charinfo::get_asciify_code,
4224         charinfo::set_translation_input): New methods.
4225         (charinfo::set_translation): Add third argument.
4226         * src/roff/troff/input.cc (charinfo:set_translation): Set
4227         `asciify_code'.
4228         (do_translate): Add second argument.
4229         (translate_input): New function.
4230         (init_input_requests): Updated.
4231         * src/roff/troff/node.cc (glyph_node::asciify,
4232         composite_node::asciify): Use `get_asciify_code'.
4234         * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
4236         * NEWS, man/groff.man, man/groff_diff.man: Updated.
4238 2002-03-14  Larry Kollar  <kollar@alltel.net>
4240         * doc/groff.texinfo: Improve documentation of .RS and .RE.
4242 2002-03-14  Werner LEMBERG  <wl@gnu.org>
4244         Add a new request `sizes' similar to the `sizes' command in DESC
4245         files.
4247         * src/roff/troff/env.cc (override_sizes): New function.
4248         (init_env_requests): Use it.
4249         * src/roff/troff/token.h: Export `read_string'.
4250         * NEWS, man/groff_diff.man, man/groff.man: Document it.
4252 2002-03-12  Werner LEMBERG  <wl@gnu.org>
4254         * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
4256 2002-03-10  Werner LEMBERG  <wl@gnu.org>
4258         * tmac/pspic.tmac: Add support for -Tdvi.
4259         * tmac/dvi.tmac: Include pspic.tmac.
4260         * src/devices/grodvi/grodvi.man: Document it.
4261         * NEWS: Updated.
4263         * font/devlj4/generate/Makefile: Fix URL of metric files.
4265 2002-03-09  Werner LEMBERG  <wl@gnu.org>
4267         * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
4269 2002-03-09  Larry Kollar  <kollar@alltel.net>
4271         * tmac/groff_ms.man: Add documentation for RS and RE macros.
4273 2002-03-08  Werner LEMBERG  <wl@gnu.org>
4275         * doc/groff.texinfo: Fixes for texinfo 4.1.
4277 2002-03-07  Werner LEMBERG  <wl@gnu.org>
4279         * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
4280         included.
4281         Handle CYGWIN properly.
4283 2002-03-07  Paco Andrés Verdú  <pandres@dragonet.es>
4285         * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
4286         * tmac/lbp.tmac: Add some font translations.
4288 2002-03-02  Werner LEMBERG  <wl@gnu.org>
4290         * font/devcp1047/R.proto, font/devlatin1/R.proto,
4291         font/devhtml/R.proto: Remove `charXXX'  entries.
4292         * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
4293         where appropriate.
4295         * font/devlj4/generate/text.map: Remove `charXXX' entries.
4296         * font/devlj4/*: Regenerated all font definition files.
4297         * tmac/lj4.tmac: Load latin1.tmac.
4299         * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
4300         from 2000-06-17: LJ4 metric files are *not* text files.
4302         * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
4303         register to test for EBCDIC.
4305 2002-03-01  Werner LEMBERG  <wl@gnu.org>
4307         * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
4308         files (as grops already does).
4309         * src/utils/afmtodit/afmtodit.man: Document comment lines in map
4310         files.
4311         * src/devices/grops/grops.man: Document comment lines in encoding
4312         files.
4314         * tmac/cp1047.tmac: New file.
4315         * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
4316         * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
4317         * tmac/Makefile.sub (NORMALFILES): Updated.
4319         * tmac/ec.tmac: Don't load latin1.tmac again.
4321         * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
4322         font/devps/generate/dingbats.map,
4323         font/devps/generate/dingbats.rmap, font/devps/text.enc,
4324         font/devps/generate/Makefile (symbolmap): Add header comment.
4325         * font/devps/generate/textmap: Ditto.
4326         Remove `charXXX' entries.
4327         * font/devps/symbolmap: Regenerated.
4328         * font/devps/*: Regenerated all font definition files.
4330 2002-02-28  Werner LEMBERG  <wl@gnu.org>
4332         Add color support to grodvi (for drawing colors are currently
4333         translated to gray values).
4335         * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
4336         (dvi_printer): Add `cur_color' member.
4337         (dvi_printer::set_color): New function.
4338         (draw_dvi_printer): Remove `fill'.
4339         (draw_dvi_printer::fill_next): Pass environment as parameter.
4340         Update code for new color support translated to gray.
4341         (dvi_printer::set_char): Updated.
4342         (dvi_printer::begin_page, dvi_printer::end_page): Handle color
4343         changes crossing the page border.
4344         (dvi_printer::draw): Updated.
4345         Remove cases `f' and `F'.
4346         * tmac/dvi.tmac: Add color definitions.
4347         * NEWS, src/devices/grodvi/grodvi.man: Updated.
4349         * tmac/an-old.tmac (R): Make this a macro to emit a warning if
4350         used incorrectly.
4352         * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
4353         versions of autoconf.
4354         * configure: Updated.
4356         * doc/homepage.ms: Use `.blm'.
4357         * tmac/www.tmac (www-depth): New auxiliary variable.
4358         (www-pop-level): Don't issue HTML tag.
4359         (ULS, ULE, LI): Use absolute indentation.
4361         * src/devices/grops/ps.cc (ps_printer::begin_page,
4362         ps_printer::end_page): Switch forth and back to default color while
4363         starting a new page.
4365 2002-02-27  Werner LEMBERG  <wl@gnu.org>
4367         Add EC and TC fonts to devdvi.
4369         * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
4370         * font/devdvi/generate/cork.map: Renamed to...
4371         * font/devdvi/generate/ec.map: This.
4372         Remove entry for `aq'.
4373         * font/devdvi/generate/tc.map: New file.
4374         * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
4375         EC and TC fonts.
4376         (FONTS): Updated.
4377         * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
4378         * font/devdvi/Makefile.sub (DEVFILES): Updated.
4379         * tmac/ec.tmac: New file.
4380         * tmac/Makefile.sub (NORMALFILES): Updated.
4381         * NEWS, src/devices/grodvi/grodvi.man: Updated.
4382         * man/groff_char.man: Check `ECFONTS' register.
4384         * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
4386 2002-02-26  Werner LEMBERG  <wl@gnu.org>
4388         * font/devdvi/generate/*.map: Remove all `charXXX' entries.
4389         * font/devdvi/generate/cork.map: Add 'y and 'Y.
4390         * font/devdvi/*: Updated.
4391         * tmac/dvi.tmac: Formatting.
4393         Add font `HBI' for the dvi output.
4394         Add support for font families `T' and `H'.
4396         * font/devdvi/HBI: New file.
4397         * font/devdvi/B: Renamed to ...
4398         * font/devdvi/TB: This.
4399         * font/devdvi/BI: Renamed to ...
4400         * font/devdvi/TBI: This.
4401         * font/devdvi/I: Renamed to ...
4402         * font/devdvi/TI: This.
4403         * font/devdvi/R: Renamed to ...
4404         * font/devdvi/TR: This.
4405         * font/devdvi/H: Renamed to ...
4406         * font/devdvi/HR: This.
4407         * font/devdvi/Makefile.sub (DEVFILES): Updated.
4408         * font/devdvi/generate/Makefile (HBI): New rule.
4409         (FONTS): Updated.
4410         (R, I, B, BI, H): Renamed to ...
4411         (TR, TI, TB, TBI, HR): This, respectively.
4412         (srcdir): Fixed.
4413         * NEWS, src/devices/grodvi/grodvi.man: Updated.
4414         * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
4415         Add `styles' and `family' keywords.
4416         * tmac/dvi.tmac: Alias `H' to `HR'.
4417         Add some fspecial requests for italic fonts.
4418         Add TR and TI as special.
4419         Add support for `_' with font CWI.
4421         * src/roff/troff/number.cc (parse_expr): Add missing `break' for
4422         operator `:'.  Until now, the expression `0:1' would return 2
4423         instead of 1.
4425 2002-02-25  Werner LEMBERG  <wl@gnu.org>
4427         * man/groff_char.man: Added some missing PS glyph names (from the
4428         Adobe Glyph List).
4429         * font/devps/generate/textmap, font/devps/symbolmap: Add
4430         `arrowupdn'.
4432         * doc/groff.texinfo: Minor additions and fixes.
4433         * man/groff_diff.man: Remove documentation of fp request.  This
4434         is already covered in the original troff manual.
4435         Updated to be consistent with other doc files.
4436         * NEWS: Updated.
4438 2002-02-24  Werner LEMBERG  <wl@gnu.org>
4440         * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
4441         TTYDEVDIRS.
4442         Define new variable OTHERDEVDIRS (containing `font/devlj4
4443         font/devlbp' if not EBCDIC).
4444         * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
4445         (OTHERDEVDIRS): New variable.
4446         (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
4447         * configure: Regenerated.
4449         * NEWS, src/devices/grotty/grotty.man: Updated.
4451 2002-02-23  Werner LEMBERG  <wl@gnu.org>
4453         * src/roff/troff/input.cc (do_overstrike, do_bracket,
4454         get_line_arg): Honour input level.
4456         Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
4458         * font/*/*: Implement it in all font files.
4459         * font/devps/generate/textmap, font/devps/generate/symbolchars,
4460         * font/devps/symbolmap: Updated.
4461         * font/devlj4/generate/text.map: Updated.
4462         * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
4463         * font/devdvi/generate/texmi.map: Updated.
4465         * font/devutf8/R.proto: Remove all `charXXX' entries.
4466         * font/devutf8/NOTES: Updated.
4468         * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
4469         version 4.1.0.
4471         * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
4473         * NEWS, man/groff_char.man: Updated.
4475 2002-02-21  Phil Lobbes  <phil@perkpartners.com>
4477         * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
4479 2002-02-20  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
4481         * src/roff/grog/grog.pl: Fix computation of $refer.
4483 2002-02-19  Werner LEMBERG  <wl@gnu.org>
4485         * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
4486         `snprintf' and `vsnprintf'.
4488         * src/include/htmlindicate.h: Renamed to...
4489         * src/include/htmlhint.h: This.
4490         * src/include/Makefile.sub: Updated.
4491         * src/preproc/eqn/main.cc: Updated.
4493 2002-02-18  Werner LEMBERG  <wl@gnu.org>
4495         * man/roff.man, man/groff_out.man, man/groff.man,
4496         man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
4497         src/roff/troff/troff.man: Updated to latest changes in www.tmac.
4499         * win32-diffs: Updated.
4501 2002-02-17  Werner LEMBERG  <wl@gnu.org>
4503         * doc/Makefile (clean): Add *.eps.
4504         (MEMACROS): Removed.
4505         (TFLAG): New variable.
4506         (TROFF): Use it.
4507         Add -ww.
4508         (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
4509         (.me.dit): Fixed.
4510         (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
4512         * tmac/www.tmac: Use dummy diversion while resetting and disabling
4513         `.tl'.
4514         * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
4515         unstripped.
4516         * src/roff/troff/troff.man: Fix order of parameter description.
4518         * NEWS: Updated.
4520 2002-02-16  Gaius Mulley  <gaius@glam.ac.uk>
4522         Simplify image handling for grohtml.
4523         Fix <p> bug.
4525         * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
4526         comment out.
4527         (html_text::dump_stack): Don't emit newline while debugging.
4528         (html_text::do_push) [DEBUGGING]: Print more info.
4529         (html_text::check_emit_text): Fix handling of <p>.
4530         * src/devices/grohtml/html.h: Updated.
4531         * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
4532         replacing `fputc', `fputs', `putc'.  If DEBUGGING is defined, they
4533         send its data to stderr also.
4534         Update all callers.
4535         (simple_output::space_or_newline) [DEBUGGING]: Removed.
4536         * src/devices/grohtml/post-html.cc (html_printer::do_links,
4537         html_printer::html_printer): Remove `DEBUGGING' conditionals.
4539         * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
4540         Removed.
4541         * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
4542         is_inline_image): Removed.
4543         (html_begin_suppress, html_end_suppress): Don't take a parameter.
4544         (graphic_start, graphic_end): Removed.
4545         * src/include/htmlindicate.h: Updated.
4546         * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
4547         (macroset_template): New global variable.
4548         (makeFileName): Use `macroset_template'.
4549         (write_end_image): Don't take a parameter.
4550         Don't emit newline.
4551         (write_start_image: Don't emit newline.
4552         (char_buffer::write_upto_newline): Updated.
4553         (char_buffer::skip_to_newline): Renamed to ...
4554         (char_buffer::skip_until_newline): This.
4555         Fix code.
4556         (char_buffer::write_file_troff, char_buffer::write_file_html):
4557         Simplified.
4558         (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
4559         (removeAllPages): Remove `DEBUGGING' conditionals.
4560         (addRegDef, dump_args): New functions.
4561         (char_buffer::do_html, char_buffer::do_image): Handle
4562         `www-image-template' command line variable.
4563         Add more debugging code.
4564         (addps4html): Removed.
4565         (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
4567         * src/preproc/eqn/main.cc: Include `ctype.h'.
4568         (suppress_html): Removed.
4569         (do_file): Updated.
4570         (inline_equation): Use `html_begin_suppress' and
4571         `html_end_suppress'.
4572         * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
4573         (troff_output::start_picture, troff_output::finish_picture):
4574         Updated.
4575         * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
4576         (process_input_file): Updated.
4578         * src/roff/troff/div.cc (page_number): Set page number only if the
4579         `ps4html' register isn't defined.
4580         * src/roff/troff/input.cc (image_no): New external variable.
4581         (do_suppress): Use it.
4582         * src/roff/troff/node.h (suppress_node::image_id): New member.
4583         * src/roff/troff/node.cc (image_no): Remove `static' keyword.
4584         (suppress_node::suppress_node): Initialize `image_id' member.
4585         (suppress_node::same): Handle `image_id' also.
4586         (suppress_node::copy): Updated.
4587         (last_image_id): New global variable.
4588         (suppress_node::tprint): Use it.
4590         * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
4591         HTML-IMAGE-END.
4592         * tmac/pspic.mac (PSPIC): Fix html support.
4593         * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
4594         * tmac/www.tmac (www-image-template): Set up.
4595         (HTMLINDEX): Renamed to...
4596         (HX): This.
4597         (BODYCOLOR): Renamed to...
4598         (BCL): This.
4599         (BACKGROUND): Renamed to...
4600         (BGIMG): This.
4601         (URL): Change order of parameters for consistency.
4602         (MAILTO): Renamed to...
4603         (MTO): This.
4604         (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
4605         (IMG, PIMG, MPIMG): This.
4606         (HTML-H-BEGIN, HTML-H-END): Renamed to...
4607         (HnS, HnE): This.
4608         (LINKS): Renamed to...
4609         (LK): This.
4610         (LINE): Renamed to...
4611         (HR): This.
4612         (NO-AUTO-RULE): Renamed to...
4613         (NHR): This.
4614         (HTML-TL): Renamed to...
4615         (HTL): This.
4616         (UL-BEGIN, UL-END): Renamed to...
4617         (ULS, ULE): This.
4618         (DROPCAP): Renamed to...
4619         (DC): This.
4620         (TS, TE, EQ, EN): Provide default definitions.
4621         (www-make-unique-name): Updated.
4622         (HTML-IMAGE-INLINE): Fix typo.
4623         * tmac/groff_www.man: Updated.
4625         * doc/Makefile (homepage.html): Add option -r to grohtml.
4626         Use shortened image name.
4627         * doc/groff.texinfo: Updated info on grohtml strings and macros.
4628         * doc/homepage.ms: Updated and extended.
4630 2002-02-14  Werner LEMBERG  <wl@gnu.org>
4632         Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
4634         * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
4635         SGR_BACK_DEFAULT_COLOR): Replaced with ...
4636         (tty_printer::put_color): Use it.
4637         (ttr_printer::end_page): Simplify.
4639 2002-02-13  Werner LEMBERG  <wl@gnu.org>
4641         * tmac/groff_tmac.man: Moved to...
4642         * man/groff_tmac.man: This place.
4643         * tmac/Makefile.sub, man/Makefile.sub: Updated.
4645 2002-02-12  Werner LEMBERG  <wl@gnu.org>
4647         * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
4648         $(COMPILE.c) to not include groff's assert.h.
4650         * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
4651         variable.
4652         * NEWS, src/drivers/grotty/grotty.man: Document it.
4654 2002-02-11  Werner LEMBERG  <wl@gnu.org>
4656         * src/libs/snprintf/snprintf.c: Updated to latest version
4657         (2002-02-11).
4659         * src/roff/grog/grog.pl (process): Fix handling of `.['.  We now
4660         test whether there is `.]' also.
4661         Don't check for spaces after `.['.
4662         * src/roff/grog/grog.sh: Do the same.
4664 2002-02-10  Werner LEMBERG  <wl@gnu.org>
4666         Illegal -> Invalid.
4668         * src/libs/libgroff/illegal.cc: Renamed to ...
4669         * src/libs/libgroff/invalid.cc: This.
4670         (illegal_char_table): Renamed to ...
4671         (invalid_char_table): This.
4672         * src/libs/libgroff/Makefile.sub: Updated.
4673         * win32-diffs: Updated.
4675         * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
4676         src/libs/libdriver/input.cc (fatal_command, parse_color_command,
4677         parse_x_command), src/libs/libgroff/font.cc (text_file::next,
4678         font::load), src/preproc/eqn/main.cc (read_line, main),
4679         src/preproc/eqn/lex.cc (file_input::read_line),
4680         src/preproc/pic/lex.cc (file_input::read_line,
4681         simple_file_input::get, simple_file_input::peek),
4682         src/preproc/pic/main.cc (top_input::get, top_input::peek),
4683         src/preproc/pic/pic.man, src/preproc/refer/main.cc
4684         (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
4685         do_bib), src/preproc/tbl/main.cc (table_input::get),
4686         src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
4687         src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
4688         do_zero_width, read_request, encode_char, ps_get_line,
4689         transparent_file, get_char_for_escape_name, transparent_translate,
4690         asciify, input_char_description, read_string, set_string),
4691         src/roff/troff/env.cc (environment::add_html_tag),
4692         src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
4694         * src/include/lib.h: Updated.
4696         * src/preproc/eqn/eqn.cc: Removed.
4698         * NEWS: Updated.
4700         * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
4702 2002-02-09  Werner LEMBERG  <wl@gnu.org>
4704         * doc/gnu.xpm: New image.
4705         * doc/Makefile (DOCS): Add homepage.ps.
4706         Add rules for converting xpm->png and xpm->eps.
4707         Use `gnu.{xpm,eps}' as image names.
4708         * doc/homepage.ms: Updated.
4710 2002-02-09  Gaius Mulley  <gaius@glam.ac.uk>
4712         * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
4713         (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
4714         Remove calls to `B1' and `B2'
4715         (PNG-IMAGE): New macro for inclusion of images in PNG format.
4716         (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
4717         auxiliary variables for MARGIN-PNG-IMAGE.
4718         (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
4719         auxiliary macros for MARGIN-PNG-IMAGE.
4720         (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
4721         the margin.
4722         (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
4723         (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
4724         (DROPCAP): New macro to produce dropcap characters.
4725         (www-do-image): Renamed back to...
4726         (HTML-DO-IMAGE): This.
4727         Updated all callers.
4729         * doc/Makefile (gnubw.eps): Updated.
4730         * doc/homepage.ms: Updated.
4732 2002-02-08  Werner LEMBERG  <wl@gnu.org>
4734         * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
4735         Added `linethick' to table in section `Style Variables'.
4737 2002-02-08  Gaius Mulley  <gaius@glam.ac.uk>
4739         * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
4741 2002-02-07  Werner LEMBERG  <wl@gnu.org>
4743         Adding options -C (compatibility mode) and -c (grotty's old output
4744         scheme) to nroff.
4746         * src/roff/nroff/nroff.sh: Implement it.
4747         Remove `-Wall'.
4748         * NEWS, src/roff/nroff/nroff.man: Updated.
4750         * PROBLEMS: Document bison 1.32 bug.
4752         Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
4754         * src/roff/troff/node.cc (make_tfont): Define it earlier.
4755         * src/roff/troff/div.h: Add prototype for `end_diversions'.
4756         * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
4757         * src/roff/troff/env.h: Add prototype for `title'.
4759         Adding EBCDIC support to grotty.
4761         * src/devices/grotty/tty.cc (CSI): New macro.
4762         (SGR_*, tty_printer::put_color): Use it.
4764 2002-02-06  Werner LEMBERG  <wl@gnu.org>
4766         Implementing color support in grotty.  The new switch -c activates
4767         the old drawing scheme, disabling color at the same time.  The new
4768         switch `-i' selects italic instead of underlining (SGR only).
4770         * src/devices/grotty/tty.cc (putstring): New define instead of
4771         `fputs'.  Updated all callers.
4772         (old_drawing_scheme): New global variable.
4773         (COLOR_CHANGE): New enum value.
4774         (SGR_*): New defines containing color handling escape sequences.
4775         (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
4776         (glyph): New members `back_color_idx' and `fore_color_idx'.
4777         (glyph::order): Add COLOR_CHANGE.
4778         (tty_printer): New members `cur_fore_idx', `curr_back_idx',
4779         `is_underline', `is_bold', `cu_flag', `tty_colors'.
4780         New methods `make_underline', `make_bold', `color_to_idx',
4781         `change_color', `put_color'.
4782         (cu_flag): Moved into `tty_printer' class.
4783         (tty_printer::tty_printer): Initialize colors.
4784         (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
4785         tty_printer::draw, tty_printer::end_page): Handle colors also.
4786         (main): Add options `-c' and `-i'.
4787         (usage): Updated.
4788         * NEWS, src/devices/grotty/grotty.man: Updated.
4790         * src/include/errarg.h (errarg): Add support for `unsigned int'.
4791         * src/libs/libgroff/errarg.c: Implement it.
4793         * src/include/printer.h (printer): Add `change_color' method
4794         (currently used by grotty only).
4795         * src/libs/libdriver/printer.cc: Implement it.
4796         * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
4797         call to `pr->change_color'.
4799         * src/roff/troff/node.cc (troff_output_file::fill_color,
4800         troff_output_file::glyph_color): Call `do_motion'.
4802         * tmac/tty.tmac: Add color definitions.
4804         * src/roff/groff/groff.man: Minor fixes.
4806 2002-02-05  Bernd Warken  <bwarken@mayn.de>
4808         * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
4809         it.  This is a preparation for future changes.
4811 2002-02-05  Werner LEMBERG  <wl@gnu.org>
4813         * src/roff/troff/input.cc (process_input_stack): Fix the case
4814         where leading spaces are followed by \f or \s; previously, an
4815         incorrect space width has been used.
4817         * doc/roff.man (quoted_char): Fix argument.
4818         (comment): Define string.
4820 2002-02-04  Larry Kollar  <kollar@alltel.net>
4822         * doc/groff.texinfo: More fixes.
4824 2002-02-04  Werner LEMBERG  <wl@gnu.org>
4826         * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
4827         * src/preproc/eqn/main.cc (do_file, inline_equation): Call
4828         `restore_compatibility' before `output_string' -- the LINE_STRING
4829         register now already contains proper switches from and to
4830         compatibility mode.
4832         * man/groff_char.man: Add Euro symbol.
4833         * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
4834         * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
4835         * doc/groff.texinfo (Defstr*): Print strings with full syntax.
4836         Other minor fixes.
4838         * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
4839         texinfo->pdf.
4840         (.texinfo.html): Add support for texinfo->html.
4842 2002-02-03  Werner LEMBERG  <wl@gnu.org>
4844         Added three new requests `ds1', `as1', and `ami'.  The former two
4845         are equivalent to `ds' and `as' with the difference that
4846         compatibility mode is saved on entry, switched off during string
4847         expansion, and restored on exit.  The latter is the pendant to `dei'
4848         for `am'.
4850         (do_define_string): Use `define_mode' and `calling mode'.
4851         Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
4852         end of string, respectively.
4853         (define_string, append_string): Use `calling_mode'.
4854         (define_nocomp_string, append_nocomp_string,
4855         define_string_indirect): New functions.
4856         (init_input_requests): Updated.
4857         * NEWS, man/groff_diff.man, man/groff.man: Document it.
4859         * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
4860         `as1' for assigning LINE_STRING (this is `10' usually).  Sun's
4861         mm macro package accesses this string register directly.
4862         * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
4864         * tmac/trace.tmac: Trace calls to `am' also.  Make it work in
4865         compatibility mode.
4867 2002-02-02  Larry Kollar  <kollar@alltel.net>
4869         * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
4871 2002-01-31  Werner LEMBERG  <wl@gnu.org>
4873         * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
4875 2002-01-31  Bernd Warken  <bwarken@mayn.de>
4877         * src/devices/grolbp/lbp.cc (main): Delete `pr'.
4878         * man/groff_out.man: Revised and updated.
4880 2002-01-30  Bernd Warken  <bwarken@mayn.de>
4882         * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
4883         out the unused `{' and `}' commands.  Undefined by default.
4884         (IntArray): Make `data' private.
4885         (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
4886         new methods instead.
4887         (skip_line_D, skip_to_end_of_line): New functions.
4888         (get_D_fixed_args): Use `skip_line_D'.
4889         Changed to handle dummy odd arguments by ...
4890         (get_D_fixed_args_odd_dummy): This new function.
4891         (get_D_variable_args): Split some code into ...
4892         (get_possibly_integer_args): This new function.
4893         (send_draw): Use more `const'.
4894         (delete_current_env): New function.
4895         (position_to_end_of_args): Use `size_t'.
4896         Updated.
4897         (send_draw): Updated.
4898         (parse_D_command): Handle `c', `C', and `t' better.
4899         Updated.
4900         (do_file): Updated.
4902 2002-01-29  Werner LEMBERG  <wl@gnu.org>
4904         * NEWS: Revised.
4905         * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
4906         @Def...ListEnd which replaces @Def...x.  This is necessary to get
4907         proper HTML output -- see the comment in the file for more
4908         information.
4909         Updated all calls.
4911 2002-01-29  Gaius Mulley  <gaius@glam.ac.uk>
4913         Fixes to make color changes of 2002-01-21 work with grohtml.
4915         * src/devices/grohtml/post-html.cc (style): Updated.
4916         (html_printer): Remove unused methods.
4917         (html_printer::do_font, html_printer::draw, html_printer::set_char,
4918         html_printer::special): Updated.
4919         * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
4920         html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
4921         Added some debugging code.
4922         (html_text::start_tag): Updated.
4923         (html_text::do_push): New method.
4924         (html_text::push_para): Call it.
4925         Add method for handling color.
4926         (html_text::do_color): Updated.
4927         (html_text::shutdown): Handle color.
4928         * src/devices/grohtml/html-text.h (tag_definition): New member
4929         `col'.
4930         Updated.
4932 2002-01-28  Werner LEMBERG  <wl@gnu.org>
4934         * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
4936 2002-01-27  Gaius Mulley  <gaius@glam.ac.uk>
4938         Add two switches -a and -g to control the antialiasing bits for
4939         text and graphics, respectively.
4941         * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
4942         `-g'.
4943         * src/devices/grohtml/grohtml.man: Document them.
4944         * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
4945         New macros.
4946         (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
4947         (setupAntiAlias): New function.
4948         (createAllPages): Updated.
4949         (scanArguments): Handle `-a' and `-g'.
4950         (main): Call `setupAntiAlias'.
4951         * NEWS: Updated.
4953 2002-01-27  Werner LEMBERG  <wl@gnu.org>
4955         * doc/groff.texinfo (Def*): Call index function after deffn.
4957         * tmac/html.tmac: Call `nroff' request.
4959 2002-01-26  Larry Kollar  <kollar@alltel.net>
4961         * tmac/groff_ms.man: Add some omissions.
4963 2002-01-25  Larry Kollar  <kollar@alltel.net>
4965         * tmac/groff_ms.man: Typographical improvements.
4967 2002-01-25  Werner LEMBERG  <wl@gnu.org>
4969         * doc/groff.texinfo: Updated version and copyright.
4970         * src/devices/grops/grops.man: Updated.
4972         * tmac/groff_tmac.man: Fix `ig' macro.
4974         * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
4975         nroff mode.
4976         Use `.ne' unconditionally everywhere.
4977         (TS): Only insert some vertical space.  Doing a page break is no
4978         longer necessary due to the redefinition of the `ne' request.
4980         * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
4981         warning for unknown subcommands but parse and pass them to the
4982         device driver.
4984 2002-01-24  Werner LEMBERG  <wl@gnu.org>
4986         * tmac/groff_www.man, NEWS: Fix typos.
4988 2002-01-21  Werner LEMBERG  <wl@gnu.org>
4990         Complete revision of color support:
4992           Adapt programs to the new libdriver/input.cc.
4994           Color spaces are no longer converted to RGB but transferred as-is
4995           in the troff intermediate output format.
4997           Handle default color gracefully.  troff now supports a `default'
4998           color (which can't be changed).
5000           grops will now use the proper color space functions if available.
5002           Update pic.
5004         Note that currently grohtml doesn't handle colors properly.  This
5005         has to be fixed.
5007         * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
5008         (ui_to_a): New function.
5009         * src/include/lib.h: Updated.
5011         * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
5012         (color): Simplified; removed all `double' members and methods.
5013         A new array `components' now holds the color parameters.
5014         (color::is_default, color::get_components): New methods.
5015         (color::operator==, color:operator!=): New.
5016         (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
5017         to make access to the `components' array more comprehensible.
5018         * src/libs/libgroff/color.cc: Implement new color support.
5019         (atoh): Small fixes.
5020         (color::read_encoding): Simplified for new troff intermediate color
5021         output format.
5022         (default_color): New global variable.
5024         * src/roff/troff/input.cc (default_symbol): New global variable.
5025         (lookup_color): Use it.
5026         (default_black): Removed.
5027         (do_glyph_color, do_fill_color): Simplified.
5028         (define_color): Handle default color.
5029         Improve warnings.
5030         (do_if_request): Handle default color.
5031         * src/roff/troff/env.cc (environment::environment): Initialize
5032         colors with `default_color'.
5033         * src/roff/troff/node.cc (troff_output_file::put): Add method
5034         for `unsigned int'.
5035         (troff_output_file::hex): Removed.
5036         (troff_output_file::fill_color, troff_output_file::glyph_color):
5037         Updated to include/color.h and libdriver/input.cc.
5039         * src/preproc/pic/object.cc (draw_arrow): New parameter to set
5040         fill color properly (identically to the outline color).  \D'f...'
5041         doesn't work any more.
5042         All function calls to it updated.
5044         * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
5045         Updated.
5046         * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
5047         Updated.
5049         * src/devices/grops/ps.cc (ps_output::put_color): New method.
5050         (ps_printer::sbuf_color): Make a real member instead of pointer.
5051         (ps_printer::fill_color, ps_printer::output_color): Removed.
5052         (ps_printer::ps_printer): Updated.
5053         (ps_printer::set_char): Ditto.
5054         (ps_printer::set_color): Use various color schemes.
5055         Use `put_color' method.
5056         (ps_printer::flush_sbuf): Don't set color.
5057         (ps_printer::fill_path): Take `environment' as parameter.
5058         Simplify color handling.
5059         (ps_printer::set_line_thickness): Renamed to ...
5060         (ps_printer::set_line_thickness_and_color): This (and updated).
5061         (ps_printer::set_color): Change second parameter from `complete'
5062         to `fill' which better describes what it does.
5063         (ps_printer::draw): Call `flush_sbuf' to output graphic commands
5064         and text in the right order.
5065         Updated.
5066         Remove branches for `f' and `F'; this is handled by
5067         libdriver/input.cc.
5068         * src/devices/grops/ps.h: Updated.
5069         * font/devps/prologue (FL): Redefined.
5070         ({F,C}r,k,g: New color functions (with and without filling).
5072         * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
5073         * man/groff_diff.man, man/groff.man, man/groff_out.man,
5074         doc/groff.texinfo, NEWS: Updated.
5076 2002-01-20  Bernd Warken  <bwarken@mayn.de>
5078         * src/libs/libdriver/input.cc: Completely rewritten.  See comments
5079         in this file for what has been changed.
5081 2002-01-19  Werner LEMBERG  <wl@gnu.org>
5083         * test-groff: Fix GROFF_FONT_PATH.
5084         * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
5085         is read before .TH or .Dd is parsed.
5087 2002-01-18  Gaius Mulley  <gaius@glam.ac.uk>
5089         * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
5090         quadrant boundaries.
5092 2002-01-18  Werner LEMBERG  <wl@gnu.org>
5094         * devices/grops/ps.cc: Aargh!  Fix the fix of the incorrectly
5095         applied last patch.
5097 2002-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
5099         * tmac/doc.common: Initialize %I register for the %I macro to
5100         avoid (harmless) warning.
5101         * tmac/doc.tmac (Bd): There is no reason to enforce -compact
5102         when in the SYNOPSIS section.
5104 2002-01-17  Bruno Haible  <haible@clisp.cons.org>
5106         * src/preproc/pic/lex.cc (get_token): Fix typo.
5108 2002-01-17  Werner LEMBERG  <wl@gnu.org>
5110         * devices/grops/ps.cc: Fix incorrectly applied last patch.
5112 2002-01-17  Larry Kollar  <kollar@alltel.net>
5114         * tmac/groff_ms.man: Completely rewritten.
5116 2002-01-16  Werner LEMBERG  <wl@gnu.org>
5118         * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
5120 2002-01-15  Gaius Mulley  <gaius@glam.ac.uk>
5122         * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
5123         fill colors.
5124         (ps_printer::draw): Ditto.
5126 2002-01-14  Ruslan Ermilov  <ru@FreeBSD.org>
5128         * tmac/groff_mdoc.man: Minor fixes.
5130 2002-01-13  Werner LEMBERG  <wl@gnu.org>
5132         * man/groff_out.man: Some fixes.
5134 2002-01-13  Gaius Mulley  <gaius@glam.ac.uk>
5136         * doc/pic.ms: Fix typos.
5138 2002-01-12  Werner LEMBERG  <wl@gnu.org>
5140         * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
5142 2002-01-10  Werner LEMBERG  <wl@gnu.org>
5144         * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
5145         symbols.
5146         * NEWS: Updated.
5148 2002-01-09  Bernd Warken  <bwarken@mayn.de>
5150         * man/groff_out.man: Revised.
5151         * man/roff.man: Minor fixes.
5152         * src/roff/troff/troff.man: Some reordering.
5154 2002-01-09  Werner LEMBERG  <wl@gnu.org>
5156         * tmac/an-old.tmac: Add dummy macros for equation support.
5158 2002-01-07  Werner LEMBERG  <wl@gnu.org>
5160         doc/groff.texinfo: Fix documentation of glyph searching algorithm.
5162         * tmac/an-old.tmac: Revert change 2001-12-23.  This breaks too many
5163         man pages.
5164         * tmac/groff_man.man: Small improvements.
5166 2002-01-07  Bernd Warken  <bwarken@mayn.de>
5168         * man/groff_diff.man: Revised.
5170 2002-01-06  Werner LEMBERG  <wl@gnu.org>
5172         * tmac/www.tmac: Remove extraneous backslash.
5174 2002-01-06  Bernd Warken  <bwarken@mayn.de>
5176         * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
5178 2002-01-05  Werner LEMBERG  <wl@gnu.org>
5180         Integrated groffer, contributed by Bernd Warken.
5182         * contrib/groffer/*: New.       
5183         * Makefile.in, NEWS: Updated.
5185 2002-01-04  Werner LEMBERG  <wl@gnu.org>
5187         * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
5188         registers defined in macro packages.
5189         Revising the ms part.
5191 2002-01-04  Larry Kollar  <kollar@alltel.net>
5193         * doc/groff.texinfo: Add documentation for ms macros.
5195 2002-01-02  Werner LEMBERG  <wl@gnu.org>
5197         First step in adding PS support for the Euro symbol.  `eu' is the
5198         official Euro logo, `Eu' is a font-specific glyph variant.
5200         * font/devps/text.enc: Add `Euro' at position 9.
5201         * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
5202         * font/devps/symbolmap: Regenerated.
5204         * NEWS: Updated.
5206 2002-01-02  Bernd Warken  <bwarken@mayn.de>
5208         * man/roff.man: Revised.
5210 2002-01-01  Bernd Warken  <bwarken@mayn.de>
5212         * src/roff/groff/groff.man: Completely rewritten.
5214 2001-12-31  Werner LEMBERG  <wl@gnu.org>
5216         * doc/Makefile: Updated.
5218 2001-12-30  Werner LEMBERG  <wl@gnu.org>
5220         * tmac/www.tmac: Make all names of internal macros/registers/strings
5221         lowercase, and prepend `www-'.
5222         Other minor changes.
5223         * src/roff/troff/troff.man: Add preprocessor string at BOF.
5225 2001-12-30  Gaius Mulley  <gaius@glam.ac.uk>
5227         Implement option `-b' in grohtml to set the HTML background colour.
5229         * src/devices/grohtml/post-html.cc (default_background): New global
5230         variable.
5231         (html_printer::html_printer): Initialize `background' to
5232         `default_background'.
5233         (main): Implement option `-b'.
5234         (usage): Updated.
5235         * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
5236         of `-b' option.
5237         * src/devices/grohtml/grohtml.man: Updated.
5238         * doc/Makefile (.ms.html): Use `-b'.
5239         * tmac/html.tmac: Don't set background color.
5241         Add new grohtml tag `.html-tl'.
5243         * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
5244         member variable.
5245         (title_desc::title_desc): Updated.
5246         (html_printer::troff_tag): Handle `.html-tl'.
5247         (html_printer::write_title): Use `with_h1'.
5248         * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
5249         (HTML-TL): New macro.
5251         Add support for unordered lists in HTML.
5253         * tmac/www.tmac (www-level): New auxiliary register.
5254         (www-level1, www-level2, www-level3): New auxiliary strings.
5255         (www-push-level, www-pop-level): New auxiliary macros
5256         (UL-BEGIN, UL-END, LI): User macros for unordered lists.
5258         Miscellaneous.
5260         * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
5261         (DEFAULT_VERTICAL_OFFSET): Removed.
5262         (IMAGE_BOARDER_PIXELS): Set to 0.
5263         (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
5264         (vertical_offset): Initialize with 0.
5265         (gsPaper): New global variable.
5266         (get_resolution): Scan for and return unsigned int.
5267         (get_papersize): New function to get paper length from devps/DESC.
5268         (determine_vertical_offset): New function.
5269         (createAllPages): Produce gray-level images and use proper page
5270         length.
5271         (createImage): Use `-quiet' option of pnmcrop.
5272         (addZ): Fix passing of `-Z'.
5273         (scanArguments): Fix handling of `-o'.
5274         (main): Call `determine_vertical_offset'.
5275         * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
5276         code for `l'.
5278         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
5279         * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
5280         glyph descenders properly.
5282         * doc/homepage.ms: Include `gnubw.eps'.
5283         * doc/Makefile (gnubw.eps): New rule.
5284         (homepage.html): Depend on `gnubw.eps'.
5286 2001-12-25  Werner LEMBERG  <wl@gnu.org>
5288         * src/roff/troff/input.cc (default_black): Fix return value.
5290 2001-12-24  Ruslan Ermilov  <ru@FreeBSD.org>
5292         * tmac/doc-common (Dt): Change output of architecture strings.
5293         Do some syntax cleanup.
5294         * tmac/groff_mdoc.man: Updated.
5296 2001-12-23  Werner LEMBERG  <wl@gnu.org>
5298         Adding an `itc' request (input line trap accepting \c).
5300         * src/roff/troff/env.h (environment): New member
5301         `continued_input_trap'.
5302         Make `do_input_trap' a friend function instead of `input_trap'.
5303         * src/roff/troff/env.cc (environment::environment,
5304         environment::copy): Updated.
5305         (environment::newline): Implement it.
5306         (do_input_trap): New function.
5307         (input_trap): Call `do_input_trap'.
5308         (input_trap_continued): New function.
5309         (init_env_requests): Updated.
5310         * src/roff/troff/TODO: Updated.
5312         * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
5313         `.it'.
5315         * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
5317 2001-12-22  Ruslan Ermilov  <ru@FreeBSD.org>
5319         * tmac/doc-common, tmac/doc-syms: Small updates.
5321 2001-12-22  Colin Watson  <cjwatson@debian.org>
5323         * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
5325 2001-12-22  Bernd Warken  <bwarken@mayn.de>
5327         * MANIFEST: New file.
5329 2001-12-22  Werner LEMBERG  <wl@gnu.org>
5331         * src/preproc/grn/grn.man: Updated.
5333 2001-12-22  Solar Designer  <solar@openwall.com>
5335         * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
5336         (DBRead): Use it.
5338 2001-12-19  Werner LEMBERG  <wl@gnu.org>
5340         Implement a fallback character request `.fchar'.
5342         * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
5343         (is_fallback): New inline function.
5344         * src/roff/troff/input.cc (do_define_character): New function.
5345         (define_character): Call `do_define_character'.
5346         (define_fallback_character): New function.
5347         (init_input_requests): Add `fchar'.
5348         (charinfo::charinfo): Updated.
5349         (charinfo::set_macro): New argument to set `fallback' flag.
5350         * src/roff/troff/node.cc (make_glyph_node, make_node,
5351         node::add_char): Check `fallback' flag.
5352         * NEWS, man/groff_diff.man, man/groff_man: Updated.
5354 2001-12-16  Werner LEMBERG  <wl@gnu.org>
5356         * groff.texinfo: Document exact search algorithm for glyphs.
5358 2001-12-15  Werner LEMBERG  <wl@gnu.org>
5360         * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
5361         the left side of $(MANPAGES) rule to make it always non-empty.
5363 2001-12-14  Werner LEMBERG  <wl@gnu.org>
5365         * src/roff/troff/input.cc (default_black): Define default color
5366         `black' if not yet defined.
5368 2001-12-13  Werner LEMBERG  <wl@gnu.org>
5370         Implement new string-valued register `.fn' to return the current
5371         real (internal) font name.
5373         * env.cc (environment::get_font_name_string): New function.
5374         (init_env_requests): Add `.fn' register.
5375         * env.h (environment): Updated.
5376         * node.cc (font_info): Make `get_font_name' a friend.
5377         (get_font_name): New function.
5378         * node.h: Updated.
5380         * man/groff_diff.man, man/groff.man, NEWS: Updated.
5382 2001-12-12  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5384         * src/preproc/eqn/main.cc (inline_equation): Fix typos.
5386 2001-12-12  Werner LEMBERG  <wl@gnu.org>
5388         * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
5390 2001-12-10  Gaius Mulley  <gaius@glam.ac.uk>
5392         * man/groff_diff.man: Adding documentation for \O.
5394 2001-12-10  Werner LEMBERG  <wl@gnu.org>
5396         * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
5397         (scanArguments): Use PROG_PREFIX for the name of the troff binary.
5399 2001-12-09  Werner LEMBERG  <wl@gnu.org>
5401         * man/roff.man: Revised.
5402         * src/roff/groff/groff.man: Replace man page references with a
5403         pointer to roff.man.
5405 2001-12-09  Bernd Warken  <bwarken@mayn.de>
5407         * man/roff.man: Completely rewritten.
5409 2001-12-06  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5411         * src/preproc/eqn/main.cc (inline_equation): Improve error message.
5413 2001-12-05  Werner LEMBERG  <wl@gnu.org>
5415         * src/roff/troff/input.cc (get_delim_file_name): Removed since no
5416         longer used.
5417         * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
5418         order of initializers.
5419         * NEWS: Updated.
5421 2001-12-05  Gaius Mulley  <gaius@glam.ac.uk>
5423         * doc/groff.texinfo: Fix documentation of \O.
5425         * src/devices/grohtml/html-text.cc (html_text::do_indent,
5426         html_text::do_table, html_text::do_emittext, html_text::do_para):
5427         Use `const' for first argument.
5428         (html_text::do_table): Use cast.
5429         * src/devices/grohtml/html-text.h: Updated.
5430         * src/devices/grohtml/output.cc (simple_output::put_string): Add
5431         method for `const string &s'.
5432         * src/devices/grohtml/html.h: Updated.
5433         * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
5434         (ANCHOR_TEMPLATE): Modified.
5435         (manufacture_headings): New global variable to handle `-h' option.
5436         (is_subsection): Removed.
5437         (char_buffer::add_string): Add `const' to first argument.
5438         Protect against invalid string argument.
5439         Add method for `const string &s'.
5440         (text_glob): Completely redesigned.
5441         (page): Use `const' for strings and remove string length variable.
5442         (page::add_html): Removed.
5443         (page::add_end_encode): New member function.
5444         (to_unicode): Moved upwards.
5445         (title_desc, header_desc): Updated.
5446         (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
5447         definition.
5448         (html_printer::is_bold, html_printer::make_bold): New member
5449         functions.
5450         (html_printer::end_of_line): Updated.
5451         (generate_img_src, html_printer::do_auto_image,
5452         html_printer::do_title, html_printer::write_header,
5453         html_printer::determine_header_level, html_printer::do_heading,
5454         html_printer::do_linelength, html_printer::do_pageoffset,
5455         html_printer::do_indentation, html_printer::do_tempindent,
5456         html_printer::do_indentedparagraph, html_printer::do_break,
5457         html_printer::flush_sbuf, get_html_translation,
5458         html_printer::begin_page, html_printer::special): Rewritten to get
5459         rid of static string length limit.
5460         (html_printer::troff_tag): Added `.no-auto-rule'.
5461         (html_printer::flush_globs): Small fix.
5462         (html_printer::determine_space): Don't compute `space_width'.
5463         (html_printer::translate_to_html): Renamed to ...
5464         (html_printer::emit_html): This (with updates).
5465         (html_printer::write_header): Implement `-h' option.
5466         (html_printer::draw): Remove commented-out code.  Handle `F'
5467         command.
5468         (html_printer::add_char_to_sbuf): Removed.
5469         (html_printer::add_to_sbuf): Rewritten.
5470         (html_printer::sbuf_continuation): Fixed.
5471         (html_printer::seen_backwards_escape, reverse,
5472         html_printer::remove_last_char_from_sbuf): Removed.
5473         (char_translate_to_html, str_translate_to_html): Removed.
5474         (html_printer::overstrike): New function member.
5475         (html_printer::set_char): Use it.
5476         (html_printer::do_body): New function member.
5477         (html_printer::~html_printer): Use it.
5478         (main): Handle `-h' option.
5479         (usage): Updated.
5480         * src/devices/grohtml/grohtml.man: Document -h switch.
5482         * src/preproc/html/pre-html.cc: Include searchpath.h
5483         Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
5484         (get_resolution): New function.
5485         (checkImageDir): Use `0777' permissions in mkdir()
5486         (write_start_image): Rewritten to use `\O[5...]'.
5487         (createImage, generateImages): Updated.
5488         (main): Handle `F' and `h' options.
5489         Use `get_resolution'.
5491         * src/roff/troff/input.cc (begin, end, image): Removed.
5492         (do_suppress): Take parameter.
5493         Handle modified syntax of `\O'.
5494         (token::next): Updated.
5495         (init_markup_requests): Removed.
5496         (main): Updated.
5498         * src/roff/troff/div.h: Add declaration for begin_page().
5500         * tmac/color-html.tmac: Removed.  Contents moved to...
5501         * tmac/html.tmac: Here.  Set background color.
5502         * tmac/color.tmac: Removed.  Contents moved to...
5503         * tmac/ps.tmac: Here.
5504         * tmac/www.tmac: Remove the title command when generating images
5505         for html.
5506         (NO_AUTO_RULE): New macro.
5507         (HTML_DO_IMAGE): Use revised `\O' escapes.
5508         * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
5510 2001-12-02  Werner LEMBERG  <wl@gnu.org>
5512         * tmac/groff_mdoc.man: Fix typo.
5514 2001-12-01  Colin Watson  <cjwatson@debian.org>
5516         * man/roff.man: Fix typo.
5518 2001-11-29  Werner LEMBERG  <wl@gnu.org>
5520         * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
5521         stdlib.h.
5523         * src/roff/troff/input.cc (read_draw_node): Emit error message if
5524         more than one argument to \D'f ...'.
5526         * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
5528 2001-11-28  Werner LEMBERG  <wl@gnu.org>
5530         * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
5531         loaded only once.
5533         * tmac/groff_man.man: Minor cosmetic fix.
5535 2001-11-27  Werner LEMBERG  <wl@gnu.org>
5537         * src/roff/groff/groff.man, tmac/groff_tmac.man,
5538         tmac/groff_www.man: s/mwww/www/.
5540 2001-11-26  Werner LEMBERG  <wl@gnu.org>
5542         * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
5543         * configure: Regenerated.
5544         * win32-diffs: Updated.
5546         * tmac/groff_mwww.tmac: Renamed to ...
5547         * tmac/groff_www.tmac: This.
5548         * tmac/mwww.tmac: Removed.
5549         * NEWS, tmac/Makefile.sub: Updated.
5551 2001-11-21  Werner LEMBERG  <wl@gnu.org>
5553         * doc/groff.texinfo: Improve documentation of the `\v' escape.
5554         Fix explanation of `\D' and `rt'.
5556 2001-11-20  Werner LEMBERG  <wl@gnu.org>
5558         * tmac/an-old.tmac (an-header): Set header length equal to page
5559         width.
5560         * doc/groff.texinfo: Improve documentation of `ne' request.  Other
5561         minor fixes.
5562         * NEWS: Small fix.
5564 2001-11-19  Werner LEMBERG  <wl@gnu.org>
5566         * NEWS, man/Makefile.sub: Updated.
5568 2001-11-19  Bernd Warken  <bwarken@mayn.de>
5570         * man/ditroff.man: New file.
5572 2001-11-17  Werner LEMBERG  <wl@gnu.org>
5574         * man/groff_differences.man: Renamed to ...
5575         * man/groff_diff.man: This.  Updated.
5576         * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
5578         * src/preproc/html/pushbackbuffer.cc: Renamed to ...
5579         * src/preproc/html/pushback.cc: This.  Updated.
5580         * src/preproc/html/pushbackbuffer.h: Renamed to ...
5581         * src/preproc/html/pushback.h: This.
5582         * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
5583         Updated.
5585         * src/libs/libgroff/htmlindicate.cc: Renamed to ...
5586         * src/libs/libgroff/htmlhint.cc: This.
5587         * src/libs/libgroff/Makefile.sub: Updated.
5589         * tmac/an-old.tmac (an-end): Fix page length.
5591 2001-11-16  Werner LEMBERG  <wl@gnu.org>
5593         * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
5594         * man/Makefile.sub: Include groff_differences.man.
5595         * VERSION: Set to 1.18.
5596         * REVISION: Set to 0.
5598 2001-11-16  Bernd Warken  <bwarken@mayn.de>
5600         * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
5601         the second dot (or ending macro name) to end a macro.
5602         * doc/groff.texinfo: Doc fix.
5604 2001-11-16  Ruslan Ermilov  <ru@FreeBSD.org>
5606         * tmac/doc-common (doc-header): Handle very long document titles
5607         better.
5609 2001-11-16  Werner LEMBERG  <wl@gnu.org>
5611         * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
5613 2001-11-15  Werner LEMBERG  <wl@gnu.org>
5615         * src/roff/troff/troff.man: Revised and split into troff.man and...
5616         * man/groff_differences.man: New file.
5617         * NEWS: Updated.
5619 2001-11-13  Werner LEMBERG  <wl@gnu.org>
5621         * tmac/an-old.tmac (TS, TE): New macros for table support.
5623 2001-11-12  Werner LEMBERG  <wl@gnu.org>
5625         * src/include/lib.h: Provide a fix for emx to not include
5626         groff-getopt.h.
5628 2001-10-27  Werner LEMBERG  <wl@gnu.org>
5630         * src/roff/troff/input.cc (substring_macro): Fix computation of
5631         boundary values.
5633 2001-10-20  Werner LEMBERG  <wl@gnu.org>
5635         Undo change from 2001-08-28.
5637         * src/roff/troff/input.cc (have_input): New global variable.
5638         (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
5639         in compatibility mode.
5640         (process_input_stack): Use it.
5642 2001-10-19  Ruslan Ermilov  <ru@FreeBSD.org>
5644         * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
5645         being handled as end-of-sentence characters,
5647 2001-10-10  Gaius Mulley  <gaius@glam.ac.uk>
5649         * src/roff/troff/input.cc (file_iterator): New members
5650         `suppress_newline_flag' and `seen_escape'.
5651         (file_iterator::next_file): Updated.
5652         (file_iterator::fill): Use it.
5653         (string_iterator): New member `suppress_newline_flag'.
5654         (string_iterator::fill): Set it.
5655         (get_color_element): Use MAX_COLOR_VAL.
5656         * src/roff/troff/env.cc (environment): Remove `need_eol'.
5657         (no_fill): Don't set `env->ignore_next_eol'.
5658         (environment::newline): Handle `eol' tag properly.
5659         Emit `eol.ce'.
5660         (environment::add_html_tag): Set `env->ignore_next_eol'.
5661         Don't handle `.ce'.
5662         * src/roff/troff/env.h (environment): Updated.
5664         * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
5665         member function.
5666         (html_printer::outstanding_eol): New member function.
5667         (html_printer::do_title): Use new functions.
5668         (html_printer::troff_tag): Test `id_eol_ce'.
5670 2001-10-10  Werner LEMBERG  <wl@gnu.org>
5672         * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
5673         files work with -C also.
5675 2001-10-05  Werner LEMBERG  <wl@gnu.org>
5677         * doc/pic.ms: Minor fix.
5678         * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
5679         as a valid command line switch.
5680         * src/devices/grohtml/post-html.cc (main): Ditto.
5681         (usage): Updated.
5682         * src/devices/grohtml/grohtml.man: Updated.
5683         * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
5685 2001-10-04  Werner LEMBERG  <wl@gnu.org>
5687         Implementing color support in troff, pic, grops, and grohtml.  These
5688         changes are based on a major patch provided by Gaius Mulley
5689         <gaius@glam.ac.uk>.
5691         New request: `defcolor', supporting rgb, cmy, cmyk, and gray
5692         definitions with both hex values and fractions.
5694         New escapes: \m and \M for drawing and background color,
5695         respectively.  This corresponds to the troff output commands `m'
5696         and `DF'.
5698         groff and troff accept command line switch `-c' to disable color
5699         output (which is automatically disabled in compatibility mode).
5701         New scaling indicator `f' for fractions (1f = 65536u).
5703         New conditional operator `m' to test for defined colors with `if'
5704         and `ie'.
5706         New keywords `color' (or `colour', `colored', `coloured'), `outline'
5707         (or `outlined'), and `shaded' added to pic.
5709         * src/include/color.h: New file.
5710         * src/include/driver.h: Include it.
5711         * src/include/printer.h: Include color.h.
5712         (environment): New members `col' and `fill'.
5713         (printer): Remove `adjust_arc_center' member function.
5714         * src/include/Makefile.sub: Updated.
5716         * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
5717         `env.fill'.
5718         Handle `m' and `DF' troff commands.
5719         * src/libs/libgroff/color.cc: New file.
5720         * src/libs/libgroff/Makefile.sub: Updated.
5722         * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
5723         (stop): Removed.
5724         (createImage): Fix computation of `y2'.
5725         Use `pnmcrop' also.
5726         (buffer::write_file_html): Remove calls to `stop'.
5728         * src/preproc/pic/common.h (common_output): New abstract function
5729         members `set_color', `reset_color', `get_last_filled', and
5730         `get_outline_color'.
5731         * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
5732         (object_spec): Add members `shaded' and `outlined'.
5733         * src/preproc/pic/output.h (output): `command' is now abstract.
5734         New function members `set_color', `reset_color', `get_last_filled',
5735         and `get_outline_color'.
5736         * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
5737         `outline[d]', and `shaded'.
5738         * src/preproc/pic/object.cc (output::command): Removed.
5739         (output::set_location): Moved to output.h.
5740         (graphic_object): Add protected members `outline_color' and
5741         `color_fill'.
5742         Add member functions `set_outline_color', `get_outline_color', and
5743         `set_fill_color'.
5744         (closed_object): Add member function `set_fill_color'.
5745         Add member `color_fill'.
5746         (graphic_object::print_text): Use `out->set_color' and
5747         `out->reset_color'.
5748         (box_object::print, ellipse_object::print, circle_object::print,
5749         line_object::print, spline_object::print, arc_object::print): Ditto.
5750         (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
5751         * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
5752         `SHADED', making them `%left'.
5753         Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
5754         * src/preproc/pic/tex.cc (tex_output): New dummy function members
5755         `set_color', `reset_color', `get_last_filled', and
5756         `get_outline_color'.
5757         * src/preproc/pic/troff.cc (simple_output): New abstract function
5758         members `set_color', `reset_color', and `get_last_filled'.
5759         (simple_output::polygon, simple_output::circle,
5760         simple_output::ellipse): Use `get_last_filled'.
5761         (troff_output): New members `last_filled' and `last_outlined'.
5762         New function members `set_color', `reset_color', `get_last_filled',
5763         and `get_outline_color'.
5764         (troff_output::finish_picture): Use `reset_color'.
5765         (troff_output::set_fill): Test `last_filled'.
5766         * src/preproc/pic/pic.man: Updated.
5768         * src/roff/groff/groff.cc (main): Implement `-c' option.
5769         (synopsis, help): Updated.
5770         src/roff/groff/groff.man: Updated.
5772         * src/roff/troff/troff.h: Include color.h.
5773         (warning_type): Add WARN_COLOR.
5774         * src/roff/troff/env.h (environment): New members
5775         `{cur,prev}_{glyph,fill}_color'.
5776         New member functions `get_{prev_,}{glyph,fill}_color'.
5777         * src/roff/troff/env.cc: Initialize and implement them.
5778         * src/roff/troff/input.cc: New global variable `disable_color_flag'.
5779         Replace `NULL' with `0' everywhere for consistency.
5780         (lookup_color, default_black, do_glyph_color, do_fill_color,
5781         get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
5782         define_color): New functions.
5783         (token::next): Implement \M and \m escapes.
5784         (do_if_request): Implement `m' operator.
5785         (usage): Updated.
5786         (main): Implement `-c' option.
5787         (init_markup_requests): Add `defcolor' request.
5788         (warning_table): Add `color' warning.
5789         * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
5790         classes.
5791         * src/roff/troff/node.cc (troff_output_file): New members
5792         `current_{page,glyph}color'.  New member functions `put_hex',
5793         `glyph_color', and `fill_color'.
5794         (glyph_color_node::*, fill_color_node::*): Implement it.
5795         * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
5796         (parse_term): Add support for `f'.
5797         * src/roff/troff/troff.man: Updated.
5799         * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
5800         entry for `F'.
5801         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
5802         * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
5804         * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
5805         (tag_definition): Use `void *' for arg1.
5806         (html_text): New member functions `do_color' and `done_color'.
5807         Use `void *' for second parameter of `push_para' member function.
5808         New `push_para' member function with a single parameter.
5809         Use `char *' for parameter of `issue_table_begin' member funtion.
5810         New `issue_color_begin' member function.
5811         * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
5812         COLOR_TAG.
5813         (html_text::issue_color_begin): New function.
5814         (html_text::issue_table_begin): Use `char *' for parameter.
5815         (html_text::start_tag, html_text::shutdown,
5816         html_text::check_emit_text): Updated.
5817         (html_text::push_para): Use `void *' for second parameter.
5818         Add same function with only one parameter.
5819         (html_text::do_*): Updated.
5820         (html_text::do_color, html_text::done_color): New functions.
5821         * src/devices/grohtml/post-html.cc (style): New member `col'.
5822         Mew member `style' with 6 parameters.
5823         (style::style, style::operator==): Updated.
5824         (html_printer::do_font): Use it.
5825         (html_printer::draw): Add dummy entry for `F'.
5826         (html_printer::set_char): Updated.
5827         * src/devices/grohtml/grohtml.man: Updated.
5829         * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
5830         trailing zeroes removed.
5831         (ps_printer): New members `sbuf_color', `fill_color', and
5832         `output_color'.
5833         Removed member `fill'.
5834         New member function `set_color'.
5835         (ps_printer::ps_printer, ps_printer::set_char): Updated.
5836         (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
5837         ps_printer::fill_path, ps_printer::draw): Use `set_color'.
5839         * tmac/color-html.tmac, tmac/color.tmac: New files.
5840         * tmac/troffrc: Include them.
5841         * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
5842         * tmac/Makefile.sub: Updated.
5844         * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
5845         man/groff.man: Updated.
5846         * font/devps/prologue.ps: Define FC and CO functions.
5848 2001-10-04  Gaius Mulley  <gaius@glam.ac.uk>
5850         Fix incorrect cropping of images and incorrect handling of special
5851         characters.  Fix handling of file names in \O.
5853         * src/include/geometry.h: New file.
5854         * src/libs/libgroff/geometry.cc: New file.
5855         * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
5856         to `geometry.cc'.
5857         * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
5858         initial spaces.
5859         (do_suppress): Updated.
5860         * src/roff/troff/node.cc: Include geometry.h.
5861         (troff_output_file::flush_tbuf): Fixed parameters to
5862         `check_output_limits'.
5863         (troff_output_file::check_charinfo): Ditto.
5864         (troff_output_file::determine_line_limits): Add support for `Da'
5865         and `Dl' commands.
5867         * src/devices/grohtml/post-html.cc (str_translate_to_html):
5868         Add new parameter `is_special' to decode special characters from
5869         escape sequences.
5870         (html_printer::do_title, html_printer::do_heading,
5871         html_printer::do_indentedparagraph,
5872         html_printer::translate_to_html, html_printer::special): Updated.
5874 2001-10-03  Werner LEMBERG  <wl@gnu.org>
5876         * Makefile.sub (DISTCLEANFILES): Add stamp-h.
5877         Fix entry for config.h.
5878         * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
5879         * tmac/troffrc: Translate nonbreakable space character to `\~'.
5880         * src/preproc/eqn/eqn.man: Document -d command line option.
5882 2001-09-27  Werner LEMBERG  <wl@gnu.org>
5884         * man/groff.man: Use
5886           .ev xxx
5887           .na
5888           .nh
5889           <table>
5890           .ev
5892         instead of the old code (`.ad .hy' after the table) to suppress
5893         incorrect hyphenation for grohtml output.
5895 2001-09-22  Werner LEMBERG  <wl@gnu.org>
5897         * man/groff_font.man, man/groff_out.man: Minor fixes.
5899 2001-09-20  Werner LEMBERG  <wl@gnu.org>
5901         * PROBLEMS: Updated, reordered.  Improved EPS section (thanks to
5902         Arnold Robbins <arnold@skeeve.com>).
5904 2001-09-09  Werner LEMBERG  <wl@gnu.org>
5906         * configure: Regenerated with autoconf 2.52.
5908         * doc/groff.texinfo: Complete revision of indices.
5910 2001-09-07  Werner LEMBERG  <wl@gnu.org>
5912         * doc/Makefile (clean): Updated to delete all indices.
5914 2001-09-05  Werner LEMBERG  <wl@gnu.org>
5916         * src/roff/troff/troff.man: Remove superfluous line.
5918         * tmac/s.tmac: Enable all warnings only if no -W or -w option is
5919         given on the command line (or rather, if only the default warnings
5920         are set).
5922 2001-09-03  Werner LEMBERG  <wl@gnu.org>
5924         * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
5925         use .ne for TTY devices.
5927 2001-08-31  Werner LEMBERG  <wl@gnu.org>
5929         * src/roff/troff/token.h, src/roff/troff/input.cc:
5930         s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
5932 2001-08-28  Werner LEMBERG  <wl@gnu.org>
5934         * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
5935         * src/roff/troff/input.cc (token::next): Return
5936         TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
5937         compatibility mode.
5938         (token::description): Updated.
5939         (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
5940         (token::add_to_node_list, token::process): Ignore
5941         TOKEN_TRANSPARENT_ESCAPE.
5943 2001-08-27  Werner LEMBERG  <wl@gnu.org>
5945         * tmac/an-old.tmac: Fix `S' string.
5947 2001-08-26  Werner LEMBERG  <wl@gnu.org>
5949         * src/roff/troff/troff.man: Don't use .ne for TTY devices.
5951 2001-08-25  Werner LEMBERG  <wl@gnu.org>
5953         * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
5954         backslashes).
5955         Many other minor fixes.
5957         * configure.ac: Add message at end to inform how to compile
5958         xditview.
5959         * configure: Regenerated.
5961 2001-08-24  Werner LEMBERG  <wl@gnu.org>
5963         * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
5964         Updated to latest version of libc.
5966 2001-08-23  Werner LEMBERG  <wl@gnu.org>
5968         * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
5969         Autoconf 2.50 and newer can handle this.
5970         * configure: Regenerated.
5972 2001-08-21  Werner LEMBERG  <wl@gnu.org>
5974         * doc/pic.ms: Fix typo.
5975         * src/preproc/tbl/tbl.man: Document case of global options.
5977 2001-08-21  Gaius Mulley  <gaius@glam.ac.uk>
5979         * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
5980         handling of `CR' font.
5982 2001-08-20  Werner LEMBERG  <wl@gnu.org>
5984         Use a config.h file.
5986         * src/include/lib.h: Include config.h.
5987         * All C files: Ditto (if necessary).
5988         * All C++ source and header files: Include lib.h first (if
5989         necessary).
5991         * src/include/config.hin: New file (autogenerated by autoheader).
5992         * stamp-h.in: New file.
5993         * configure.ac: Updated.
5994         * aclocal.m4: Add third parameters to AC_DEFINE macros.
5995         (GROFF_ARRAY_DELETE): Simplified.
5996         * Makefile.sub (DISTCLEANFILES): Updated.
5997         Added targets for remaking config.status, config.hin, config.h,
5998         stamp-h.in, and stamp-h.
5999         * configure: Regenerated.
6001 2001-08-19  Werner LEMBERG  <wl@gnu.org>
6003         * NEWS: Updated.
6005 2001-08-18  Sebastian Krahmer  <krahmer@suse.de>
6007         * src/preproc/pic/pic.y (format_number): Use do_sprintf().
6008         (do_sprintf): Use snprintf().
6010 2001-08-18  Werner LEMBERG  <wl@gnu.org>
6012         * src/libs/snprintf/*: Added an snprintf module written by Mark
6013         Martinec.
6014         * src/libs/libgroff/Makefile.sub: Updated.
6015         * configure.ac: Add test for snprintf().
6016         * Makefile.in: Updated.
6017         * configure: Regenerated.
6019         * src/preproc/html/pre-html.cc (make_message): Reactivate code which
6020         uses snprintf().
6022 2001-08-14  Ruslan Ermilov  <ru@FreeBSD.org>
6024         * tmac/doc.tmac (Ex): New implementation.
6025         * tmac/doc-common, tmac/groff_tmac.man: Updated.
6027 2001-08-13  Ruslan Ermilov  <ru@FreeBSD.org>
6029         * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
6030         argument.
6031         * tmac/groff_tmac.man: Updated.
6033 2001-08-13  Werner LEMBERG  <wl@gnu.org>
6035         * src/preproc/tbl/tbl.man: Minor documentation update.
6037 2001-08-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6039         * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
6040         * configure.ac: Add declaration test for gettimeofday().
6041         * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
6042         * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
6043         * configure: Regenerated.
6045 2001-08-11  Werner LEMBERG  <wl@gnu.org>
6047         * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
6048         * configure.ac: Add declaration test for strcasecmp().
6049         * Makefile.in: Updated.
6050         * configure: Regenerated.
6051         * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
6052         this is necessary because groff's mkstemp.cc is C++.
6053         Add declaration conditionally for strcasecmp().
6055 2001-08-10  Werner LEMBERG  <wl@gnu.org>
6057         Integrated pic2graph, contributed by Eric S. Raymond.
6059         * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
6060         files.
6061         * Makefile.in, NEWS: Updated.
6063         * src/preproc/tbl/tbl.man: Revised.
6065 2001-08-09  Eric S. Raymond  <esr@thyrsus.com>
6067         * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
6069 2001-08-09  Werner LEMBERG  <wl@gnu.org>
6071         * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
6072         requests.
6074 2001-08-08  Paul Eggert  <eggert@twinsun.com>
6076         * Makefile.sub (configure): Depend on configure.ac, not
6077         configure.in.
6078         * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
6080 2001-08-07  Werner LEMBERG  <wl@gnu.org>
6082         * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
6083         fixes.
6085 2001-08-06  Werner LEMBERG  <wl@gnu.org>
6087         * src/roff/troff/troff.man: Improve documentation of -E option.
6089 2001-07-28  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
6091         * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
6092         Simplified.
6094 2001-07-27  Werner LEMBERG  <wl@gnu.org>
6096         * src/preproc/refer/refer.cc: Undo last change.
6097         * src/devices/grohtml/post-html.cc: Ditto.
6099 2001-07-26  Werner LEMBERG  <wl@gnu.org>
6101         * src/preproc/refer/refer.cc: Include `lib.h'.
6102         * src/devices/grohtml/post-html.cc: Ditto.
6104 2001-07-25  Gaius Mulley  <gaius@glam.ac.uk>
6106         * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
6107         * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
6108         * Makefile.in: Comment updated.
6109         * configure: Regenerated.
6111 2001-07-25  Werner LEMBERG  <wl@gnu.org>
6113         * src/preproc/pic/pic.cc: Removed.
6114         * src/preproc/pic/pic_tab.h: Removed.
6115         * src/preproc/refer/label.cc: Removed.
6117         * doc/Makefile (.ms.html): Don't use a file name extension in
6118         argument to grohtml's -I option.
6119         * Makefile.in (dist): Remove CVS directories.
6120         Call `distfiles' target.
6122         * src/devices/grohtml/grohtml.man: Add information about valid
6123         versions of pnmtopng.
6124         * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
6125         name instead of number.
6127 2001-07-24  Werner LEMBERG  <wl@gnu.org>
6129         * doc/groff.texinfo: Minor fixes.
6131 2001-07-21  Gaius Mulley  <gaius@glam.ac.uk>
6133         * doc/Makefile (.ms.html): Put image files into a subdirectory.
6134         (clean): Updated.
6136 2001-07-20  Werner LEMBERG  <wl@gnu.org>
6138         * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
6139         * src/libs/libgroff/mkstemp.cc: New file.
6140         * src/libs/libgroff/mksdir.cc: New file.
6141         * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
6142         (xtmpfile) [!HAVE_MKSTEMP]: Removed.
6143         * src/libs/libgroff/Makefile.sub: Updated.
6144         * src/include/lib.h: Add mksdir() prototype.
6145         * src/include/posix.h: Define S_IXUSR if not yet defined.
6147         * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
6148         (createAllPages): Use mksdir() instead of current code.
6149         * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
6150         (main): [!HAVE_MKSTEMP]: Removed.
6152         * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
6153         (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
6154         macros.
6155         * configure.ac: Add tests for stdint.h, sys/time.h, and
6156         gettimeofday().
6157         Call new GROFF_xxx macros.
6158         * configure: Regenerated.
6159         * Makefile.in: Comments updated.
6161 2001-07-20  Gaius Mulley  <gaius@glam.ac.uk>
6163         * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
6164         instead of current code.
6165         * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
6166         * src/roff/groff/groff.cc (possible_command::insert_args): New
6167         function.
6168         (main): Use it for predriver handling instead of insert_arg().
6170 2001-07-19  Werner LEMBERG  <wl@gnu.org>
6172         * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
6173         groff also.
6175         * src/include/posix.h: Define S_IWUSR if not yet defined.
6177 2001-07-18  Werner LEMBERG  <wl@gnu.org>
6179         * NEWS: Updated.
6181 2001-07-18  Ruslan Ermilov  <ru@FreeBSD.org>
6183         * tmac/groff_mdoc.man: Document new -width and -column syntax.
6184         Some other minor fixes.
6185         * tmac/an-old.tmac: Add `AT' and `UC' macros.
6187 2001-07-17  Gaius Mulley  <gaius@glam.ac.uk>
6189         Replace call to `troff' with `groff -Z' to make it aware of
6190         GROFF_BIN_PATH.
6192         * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
6193         (troff_command, command_prefix): Removed.
6194         (alterDeviceTo): Use groff.
6195         (addZ): New function.
6196         (char_buffer::do_html): Use it.
6197         (scanArguments): Use TROFF_COMMAND.
6198         (findPrefix): Removed.
6199         (main): Updated.
6200         * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
6202 2001-07-17  Eric S. Raymond  <esr@snark.thyrsus.com>
6204         * doc/pic.ms: Documentation fixes.
6206 2001-07-17  Werner LEMBERG  <wl@gnu.org>
6208         Replace atexit() with global destructor.
6210         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
6211         (xtmpfile_list_init): New global structure to deallocate
6212         xtmpfile_list on exit.  Its destructor inherits most code from
6213         remove_tmp_files().
6214         (remove_tmp_files): Deleted.
6215         (add_tmp_file): Simplified.
6217 2001-07-16  Werner LEMBERG  <wl@gnu.org>
6219         Replace strdup() with strsave().
6221         * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
6222         (set_papersize): Use strsave() and a_delete.
6223         (main): Use strsave().
6224         * src/preproc/html/pre-html.cc (make_message, createAllPages,
6225         removeAllPages): Use strsave() and a_delete.
6227         * configure.ac: Remove test for strdup.
6228         * Makefile.in: Comment updated.
6229         * configure: Regenerated.
6231 2001-07-15  Werner LEMBERG  <wl@gnu.org>
6233         * win32-diffs: Updated.
6235 2001-07-14  Werner LEMBERG  <wl@gnu.org>
6237         * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
6238         removing the old one.
6239         * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
6241 2001-07-14  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
6243         * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
6245 2001-07-12  Ruslan Ermilov  <ru@FreeBSD.org>
6247         Merge -xwidth into -width.  Add -xwidth functionality to -column
6248         also.
6250         * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
6251         avoid warning.
6252         (doc-do-Bl-args): Merge -xwidth code with -width.  Test whether
6253         string immediately following a leading dot starts with a valid mdoc
6254         argument.
6255         Add similar code to the -column branch.
6256         (doc-Bl-usage): Updated.
6257         * groff_mdoc.man: s/-xwidth/-width/.
6259 2001-07-12  Gaius Mulley  <gaius@glam.ac.uk>
6261         * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
6262         running into centered or non-formatted text.
6264 2001-07-11  Werner LEMBERG  <wl@gnu.org>
6266         Introduce short and long prefixes to have the selection at run-time
6267         whether there is a 8+3 limit for names of temporary files.
6269         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
6270         (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
6271         (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
6272         variables.
6273         (temp_init): New global structure to initialize above three
6274         variables.
6275         (xtmptemplate): Use two parameters for long and short prefix.
6276         Simplify code use above three variables.
6277         (xtmpfile): Use long and short prefixes as parameters.
6278         * src/include/lib.h: Updated.
6280         * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
6281         with ...
6282         ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
6283         (createAllPages, makeTempFiles): Updated.
6285 2001-07-09  Werner LEMBERG  <wl@gnu.org>
6287         * REVISION: Increased to 3.
6289 Version 1.17.2 released
6290 =======================
6292 2001-07-07  Werner LEMBERG  <wl@gnu.org>
6294         * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
6295         to size_t.
6297 2001-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
6299         * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
6300         Fix synopsis.
6301         * tmac/groff_mdoc.man: Fix synopsis.
6303 2001-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
6305         * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
6306         Restore `doc-Pa-font'.
6308 2001-07-04  Werner LEMBERG  <wl@gnu.org>
6310         * src/utils/indxbib/dirnamemax.c: Moved to ...
6311         * src/libs/libgroff/maxfilename.cc: Here.
6312         s/dir_name_max/file_name_max/.
6313         Add copyright.
6314         * src/include/lib.h: Add file_name_max.
6315         * src/utils/indxbib/indxbib.cc: Updated.
6316         * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
6317         Updated.
6319         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
6320         as empty.
6321         (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
6323         * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
6324         REGION_TEMPLATE): New macros.
6325         (createAllPages, makeTempFiles): Use them.
6326         Include `nonposix.h'.
6327         (html_system): New function.
6328         (createAllPages, createImage): Use it.
6329         Use EXE_EXT.
6331         * tmac/www.tmac: Fix typos.
6333 2001-07-03  Werner LEMBERG  <wl@gnu.org>
6335         * tmac/www.tmac: Disable hyphenation in normal text only if output
6336         device is html.
6337         (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
6338         * tmac/groff_mwww.man, NEWS: Updated.
6340 2001-07-03  Gaius Mulley  <gaius@glam.ac.uk>
6342         * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
6343         image location.
6345 2001-07-02  Ruslan Ermilov  <ru@FreeBSD.org>
6347         * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
6348         doc-display-ps-stack): Implement font and font size stack for
6349         displays.
6351 2001-07-02  Werner LEMBERG  <wl@gnu.org>
6353         * REVISION: Increased to 2.
6354         * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
6356         * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
6357         beginning of a line.
6358         * src/groff/grog/grog.sh: Ditto.
6360 2001-06-29  Peter Marquardt  <wwwutz@molgen.mpg.de>
6362         * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
6363         make it portable.
6365 2001-06-27  Werner LEMBERG  <wl@gnu.org>
6367         Fix problems with preprocessor string for `man' program.
6369         * *.man: Don't use `s' in preprocessor string --  it doesn't exist.
6370         Updated/added copyright.
6371         Moved Emacs's local variable to identify nroff mode to the end of
6372         the file; add local variable if missing.
6374 2001-06-26  Andras Salamon  <andras@cs.wits.ac.za>
6376         * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
6377         AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
6378         * configure: Regenerated.
6380 2001-06-25  Andras Salamon  <andras@cs.wits.ac.za>
6382         * aclocal.m4 (GROFF_PAGE): Fix page detection code.
6383         * configure: Regenerated.
6385 2001-06-24  Werner LEMBERG  <wl@gnu.org>
6387         * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
6388         but www.tmac.
6389         * doc/pic.ms: Fix typos.
6391 Version 1.17.1 released
6392 =======================
6394 2001-06-21  Golubev I. N.  <gin@mo.msk.ru>
6396         * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
6397         * configure: Updated.
6399 2001-06-20  Gaius Mulley  <gaius@glam.ac.uk>
6401         * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
6402         image names.
6403         * src/roff/troff/dic.cc (blank_line): Add html tag.
6405 2001-06-19  Gaius Mulley  <gaius@glam.ac.uk>
6407         * src/roff/troff/input.cc (do_suppress): Fix typo.
6409 2001-06-18  Gaius Mulley  <gaius@glam.ac.uk>
6411         Added two new options (-D and -I) to specify image names and a
6412         subdirectory to place the images in.
6414         Change syntax from \\Ox to \\O[x].
6416         * src/devices/grohtml/post-html.cc (main): Add options.
6417         (usage): Updated.
6418         * src/preproc/html/pre-html.cc: Include `stdarg.h'.
6419         Use `NULL' instead of `0' for null string pointers.
6420         (MAX_RETRIES): New macro.
6421         (lengthOfintToStr, intToStr, make_message): New functions.
6422         (makeFileName): Make function static.
6423         Implement -D and -I options.
6424         (checkImageDir): New function.
6425         (write_end_image, write_start_image): Use new syntax of \O.
6426         (createAllPages, removeAllPages): Implement -D and -I options.  Use
6427         make_message().
6428         (createImage): Use make_message().
6429         (addps4html): Add guard for malloc().
6430         (usage, scanArguments): Updated.
6431         (makeTempFiles): Use mkstemp().
6432         (removeTempFiles): Use unlink().
6433         (findPrefix): Add guard for malloc().
6434         (main): Updated.
6435         * src/roff/troff/input.cc (get_delim_file_name): New function to
6436         parse \O.
6437         (do_suppress): Updated to parse new syntax.
6438         * src/devices/grohtml/grohtml.man: Updated.
6439         * tmac/www.tmac: Updated to new syntax.
6441         * NEWS: Updated.
6443 2001-06-15  Werner LEMBERG  <wl@gnu.org>
6445         * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
6447         * src/devices/grohtml/grohtml.man: Minor improvements.
6449 2001-06-14  Werner LEMBERG  <wl@gnu.org>
6451         * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
6453 2001-06-11  Werner LEMBERG  <wl@gnu.org>
6455         * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
6456         line to specify preprocessor options -- mandb 2.3.1 only recognizes
6457         the former.
6458         * src/preproc/grn/grn.man: Add proper '\" string.
6460 2001-06-11  OKAZAKI Tetsurou  <okazaki@be.to>
6462         * test-groff: Don't use PATH but GROFF_BIN_PATH.
6464 2001-06-08  Werner LEMBERG  <wl@gnu.org>
6466         Updated to autoconf 2.50.
6468         * configure.in: Renamed to...
6469         * configure.ac: This.
6470         * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
6471         (GROFF_OS390): Updated.
6472         * configure: Regenerated.
6474 2001-05-18  Werner LEMBERG  <wl@gnu.org>
6476         * src/roff/troff/env.c, src/roff/troff/env.h,
6477         src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
6478         from 2000-12-21.
6480 2001-05-17  Jeffrey Friedl  <jfriedl@yahoo-inc.com>
6482         * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
6484 2001-05-16  Werner LEMBERG  <wl@gnu.org>
6486         * src/roff/troff/input.cc (read_size): Emit warning if value becomes
6487         less than or equal zero; set it to 1 then.
6488         * src/roff/troff/node.h (node::node): Initialize `last'.
6490 2001-05-08  Werner LEMBERG  <wl@gnu.org>
6492         * tmac/an-old.tmac: Make predefined strings work in compatibility
6493         mode.
6494         Add troff version guard.
6495         * tmac/doc.tmac: Simplify version guard.
6497 2001-05-07  Werner LEMBERG  <wl@gnu.org>
6499         The .ns and .rs requests are now honoured not only in the top-level
6500         but in all diversions (similar to UNIX troff).
6502         This change is based on a patch from Tadziu Hoffmann
6503         <hoffmann@usm.uni-muenchen.de>.
6505         * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
6506         (top_level_diversion): Remove `no_space_mode' member.
6507         * src/roff/troff/div.cc (diversion::diversion,
6508         top_level_diversion::top_level_diversion): Updated.
6509         (macro_diversion::output): Reset `no_space_mode'.
6510         (no_space, restore_spacing): Use `curdiv' unconditionally.
6511         (space_request, blank_line): Check `curdiv->no_space_mode'.
6512         (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
6513         `curdiv' unconditionally.
6514         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
6515         Updated.
6517 2001-05-06  Werner LEMBERG  <wl@gnu.org>
6519         Added two new requests `de1' and `am1' which are similar to `de' and
6520         `am' with the difference that compatibility mode is saved on entry,
6521         switched off during macro execution, and restored on exit.
6523         * src/roff/troff/input.h: Added two new special characters
6524         (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
6525         * src/roff/troff/input.cc (input_iterator): Added two member
6526         functions `save_compatible_flag' and `get_compatible_flag'.
6527         (input_stack): Ditto.
6528         (string_iterator): Ditto.  Also add private member
6529         `saved_compatible_flag'.
6530         (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
6531         (calling_mode): New enumeration.
6532         (do_define_macro): Use it.  Insert COMPATIBLE_SAVE and
6533         COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
6534         (define_macro, define_indirect_macro, append_macro, ignore): Use
6535         `calling_mode'.
6536         (define_nocomp_macro, append_nocomp_macro): New functions.
6537         (init_input_requests): Updated.
6538         (do_request): Rename local variable `saved_compatible_flag' to
6539         `old_compatible_flag'.
6540         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6542         * tmac/an-old.tmac: Use `de1' instead of `de' request for all
6543         public and trap-invoked macros.  As a consequence, the man macros
6544         work in compatibility mode also.
6546 2001-05-06  Solar Designer  <solar@openwall.com>
6548         * Makefile.in: Use $(mandir).
6550 2001-05-06  Alexios Zavras  <zvr@pobox.com>
6552         * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
6554 2001-05-05  Werner LEMBERG  <wl@gnu.org>
6556         Added `.ns' number register: Returns 1 in no-space mode (if in
6557         top-level diversion), 0 otherwise.
6559         * src/roff/troff/div.cc (no_space_mode_reg): New class.
6560         (init_div_requests): Updated.
6561         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
6562         Document it.
6564 2001-05-04  Werner LEMBERG  <wl@gnu.org>
6566         * src/roff/nroff/nroff.man: Improved documentation (especially
6567         locales).
6569 2001-05-02  Werner LEMBERG  <wl@gnu.org>
6571         Added `brp' request: This is \p as a request.
6573         * src/roff/troff/env.cc (environment::do_break): Add parameter
6574         `spread'.
6575         (do_break_request): New function (was `break_request').
6576         (break_request): Calls `do_break_request'.
6577         (break_spread_request): New; calls `do_break_request'.
6578         (init_env_requests): Updated.
6579         * src/roff/troff/env.h: Updated.
6580         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6582         * REVISION: Increased to 1.
6583         * win32-diffs: Updated.
6585 2001-05-01  Werner LEMBERG  <wl@gnu.org>
6587         * tmac/an-old.tmac: Fix minor compatibility mode issue.
6588         * tmac/troffrc-end: Make it really work in compatibility mode.
6590 2001-04-27  Werner LEMBERG  <wl@gnu.org>
6592         * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
6593         stdlib.h.
6595 2001-04-22  Werner LEMBERG  <wl@gnu.org>
6597         * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
6598         latest versions from glibc CVS archive.
6600         * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
6601         <c.zeelenberg@hccnet.nl>.
6603 2001-04-21  Werner LEMBERG  <wl@gnu.org>
6605         * configure.in: Move check for mkstemp() to...
6606         * aclocal.m4 (GROFF_MKSTEMP): This new function.
6607         * configure: Regenerated.
6609         * src/include/groff-getopt.h: Don't use variable names in
6610         declarations.
6612         * src/devices/grohtml/html-chars.h: Removed.  It isn't used.
6613         * src/devices/grohtml/Makefile.sub,
6614         src/devices/grohtml/post-html.cc: Updated.
6616 2001-04-21  Albert Chin-A-Young  <china@thewrittenword.com>
6618         * configure.in: Add special check for mkstemp().
6619         * src/libs/libgroff/tmpfile.cc: Use it.
6620         * src/utils/indxbib/indxbib.cc: Ditto.
6621         * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
6622         * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
6623         `const'.
6625 2001-04-20  Bruce Lilly  <blilly@erols.com>
6627         `Version_string' as C++ object was not visible to linker from C
6628         object files.
6629         Add `const' to `Version_string'.
6631         * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
6632         (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
6633         (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
6634         (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
6635         (scanArguments), src/preproc/refer/refer.cc (main),
6636         src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
6637         (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
6638         (main), src/devices/grohtml/post-html.cc (main),
6639         src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
6640         (main), src/utils/hpftodit/hpftodit.cc (main),
6641         src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
6642         (main), src/utils/lkbib/lkbib.cc (main),
6643         src/utils/addftinfo/addftinfo.cc (main): Implement it.
6645         * src/roff/groff/pipeline.c: Add _UWIN.
6646         * src/include/nonposix.h: Ditto.
6648 2001-04-20  Werner LEMBERG  <wl@gnu.org>
6650         * src/include/lib.h: Use HAVE_STRERROR.
6651         * src/roff/groff/pipeline.c: Ditto.
6652         * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
6653         * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
6654         * src/utils/pfbtops/pfbtops.c: Add copyright notice.
6655         * win32-diffs: Updated.
6656         * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
6658 2001-04-19  Werner LEMBERG  <wl@gnu.org>
6660         * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
6661         instead of hardwired `"troff"'.
6662         (char_buffer::read_file): Remove unused variables.
6663         (char_buffer::write_file_troff): Ditto.
6664         (char_buffer::write_file_html): Ditto.
6665         (generateImages): Ditto.
6666         (abs): Removed.
6667         * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
6669         * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
6671         * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
6672         * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
6673         index_search_item::search1): Ditto.
6674         * src/roff/troff/node.h (width_list): Reorder members.
6675         * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
6676         (lookup_warning): Ditto.
6677         (prepend_string): Commented out.
6678         * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
6679         * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
6680         * src/preproc/tbl/main.cc (process_format): Ditto.
6681         * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
6682         compiler warnings.
6683         * src/preproc/pic/pic.cc: Updated.
6684         * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
6685         * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
6686         * src/preproc/refer/command.cc (execute_command): Ditto.
6687         * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
6688         * src/preproc/refer/token.cc (lookup_token): Ditto.
6689         * src/preproc/soelim/soelim.cc: Ditto.
6690         * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
6691         (isHexDigit): Commented out.
6692         (pushBackBuffer::isString): Remove unused variable.
6693         * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
6694         warning.
6695         * src/devices/grops/psrm.cc (resource_manager::lookup_font,
6696         resource_manager::read_resource_arg, read_one_of, parse_extensions):
6697         Ditto.
6698         * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
6699         * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
6700         lookup_paper_size): Ditto.
6701         * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
6702         (text_glob, element_list): Reorder members.
6703         * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
6704         compiler warning.
6705         * src/devices/grohtml/html-text.h (html_text::emit_space): Change
6706         return value to `void'.
6707         * src/devices/grohtml/output.cc (word_list::word_list): Fix order
6708         of initializers.
6709         * src/devices/grohtml/html.h (simple_output::check_newline,
6710         simple_output::space_or_newline, simple_output::enable_newlines):
6711         Add return value.
6712         * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
6713         compiler warnings.
6714         * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
6715         * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
6716         output_ligatures, output_charset, read_map): Ditto.
6717         * src/utils/lookbib/lookbib.cc (main): Ditto.
6718         * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
6719         (do_file): Fix typo (`=' -> `==').
6720         * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
6721         * src/utils/addftinfo/addftinfo.cc (main): Ditto.
6723 2001-04-18  Ruslan Ermilov  <ru@FreeBSD.org>
6725         * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
6726         Fix usage of GROFF_BIN_PATH.
6727         * src/roff/nroff/nroff.man: Updated.
6729 2001-04-18  Werner LEMBERG  <wl@gnu.org>
6731         * NEWS: Fixing typos.
6732         Updated.
6734 Version 1.17 released
6735 =====================
6737 2001-04-17  Werner LEMBERG  <wl@gnu.org>
6739         * tmac/Makefile.sub (install-data): mdoc.local-s is in current
6740         directory, not in $(srcdir).
6742 2001-04-16  Werner LEMBERG  <wl@gnu.org>
6744         * doc/groff.texinfo: More info on conditionals.
6746 2001-04-15  Werner LEMBERG  <wl@gnu.org>
6748         * doc/groff.texinfo: Added some info about groff internals.
6750         * src/roff/troff/node.cc (make_glyph_node): Emit warning message
6751         about missing special character only if the name is non-null.
6753 2001-04-14  Werner LEMBERG  <wl@gnu.org>
6755         Removing the grohtml-old device driver which is now obsolete.
6757         * src/devices/grohtml-old/*: Removed.
6758         * font/devhtml-old/*: Removed.
6759         * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
6760         Remove comments.
6761         * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
6762         * test-groff (PATH): Updated.
6763         * tmac/Makefile.sub (NORMALFILES): Updated.
6764         * tmac/an-old.tmac: Remove special code for html-old device.
6765         Replace `html-or-html-old' register with `an-html'.
6766         * tmac/eqnrc: Updated.
6767         * tmac/html-old.tmac: Removed.
6768         * tmac/troffrc, tmac/troffrc-end: Updated.
6769         * tmac/www.tmac: Remove special code for html-old device.
6770         Replace `html-or-html-old' register with `www-html'.
6772         * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
6773         src/libs/libgroff/htmlindicate.cc (graphic_end),
6774         include/htmlindicate.h, src/preproc/grn/*.cc,
6775         src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
6776         single argument for consistency with rest of source code.
6778         * aclocal.m4, tmac/an-old.tmac: Fix copyright.
6780 2001-04-13  Ruslan Ermilov  <ru@FreeBSD.org>
6782         * src/roff/troff/troff.man: Fixing typos.
6784 2001-04-13  Werner LEMBERG  <wl@gnu.org>
6786         * doc/pic.ms: Fixing many font switches.
6787         * doc/groff.texinfo: Fixes, additions.
6788         * MORE.STUFF: Updated.
6790 2001-04-12  Gaius Mulley  <gaius@glam.ac.uk>
6792         * src/devices/grohtml/grohtml.man: Updated manual page regarding
6793         simple anchor.
6794         * src/preproc/html/pre-html.cc (createImage): Fixed right hand
6795         cropping of images.
6796         (removeTempFiles): New function to tidy up temporary files.
6797         * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
6798         Many fixes to do with the new inline suppress node and image regions
6799         are much tighter.
6800         * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
6801         (generate_img_src): New function.
6802         (html_printer::do_auto_image): Utilizes it.
6803         (do_heading, do_title): Include inline images within their contents.
6804         (html_printer::begin_page): Tidied up comments that are issued to
6805         the html output file.
6806         (html_printer::do_fill): Fixed so that `.nf' works with fonts other
6807         than courier.
6808         (text_glob::is_br): New method used by do_heading.
6809         * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
6810         equivalent diversion.
6811         * src/include/html-strings.h: Altered image tags to reflect the
6812         inline image node.
6813         * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
6814         parameter.
6815         * src/preproc/eqn/main.cc: Will suppress generation of image tags if
6816         it is already inside a pic image.  Only emit tags if the argument
6817         `-Tps:html' is present.
6818         * src/preproc/tbl/main.cc: Changes to reflect additional
6819         `html_end_suppress' parameter.
6820         * src/roff/troff/env.cc: Only emit eol tag if a node has been
6821         emitted since the last eol tag was written.
6822         * src/roff/troff/env.h: New boolean `emitted_node'.
6823         * src/roff/troff/input.cc (do_suppress): Handles extra suppress
6824         nodes \O3, \O4, \O5.  No longer use `output_low_mark_miny'.
6825         * src/roff/troff/node.cc (check_charinfo): New method. 
6826         (troff_output_file::determine_line_limits): Alterations to limit
6827         checking.
6828         * tmac/www.tmac: Changes to reflect new suppress nodes.
6829           
6830 2001-04-12  Bruno Haible  <haible@clisp.cons.org>
6832         * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
6833         Escape the html_glyph in the buffer.
6834         (str_translate_to_html): Output the unescaped escaped_char.
6835         * src/devices/grohtml/html-text.cc (issue_table_begin): Set
6836         `frame=void', not `frame=none'.  Add `border=0'.
6838 2001-04-12  Werner LEMBERG  <wl@gnu.org>
6840         * PROBLEMS: Add some words on how to avoid wrapper macros.
6842 2001-04-11  Blake McBride  <blake@florida-software.com>
6844         * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
6846 2001-04-11  Werner LEMBERG  <wl@gnu.org>
6848         * font/devlbp/Makefile.sub (CLEANADD): Set it.
6849         * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
6850         * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
6851         * Makefile.sub (DISTCLEANFILES): Here.
6853         * libs/libgroff/new.cc: Include `nonposix.h'.
6854         * win32-diffs: Updated.
6856 2001-04-10  Ruslan Ermilov  <ru@FreeBSD.org>
6858         Added skeleton macro for defunct macros.
6860         Updated documentation.
6862         When inside displays, an empty input line warning should be
6863         suppressed.  If another macro call is put inside a display,
6864         all subsequent empty lines found in that display caused a
6865         warning to be emitted.
6867         * tmac/doc.tmac (doc-defunct-macro): New macro.
6868         (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
6869         (doc-restore-global-vars): Fixed typo.
6870         (doc-empty-line): Check the `doc-display-depth' register to
6871         determine whether we are inside display or not.
6873         * tmac/doc-common: Removed `Or' and `Sf' registers.
6874         Moved obsolete `Ds' macro to doc.tmac.
6876         * tmac/groff_mdoc.man: Bump document date.
6877         Document `.Vt' under ``Variable Types''.
6878         Removed documentation for obsolete `.Or' macro.
6880 2001-04-10  Werner LEMBERG  <wl@gnu.org>
6882         * NEWS: Updated.
6883         * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
6885 2001-04-10  Bruno Haible  <haible@clisp.cons.org>
6887         * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
6888         (usage): Add stream argument. Don't exit.
6889         * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
6890         Write --version output to stdout, not stderr.
6891         (usage): Add stream argument. Don't exit.
6892         * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
6893         (usage): Add stream argument. Don't exit.
6894         * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
6895         constants.
6896         (usage): Add stream argument. Don't exit.
6897         (main): Write --help output to stdout, not stderr.
6898         * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
6899         (usage): Add stream argument. Don't exit.
6900         * src/devices/grops/ps.cc (main): Accept --help and --version.
6901         (usage): Add stream argument. Don't exit.
6902         * src/devices/grotty/tty.cc (main): Accept --help and --version.
6903         (usage): Add stream argument. Don't exit.
6904         * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
6905         (main): Accept --help and --version.
6906         * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
6907         (main): Accept --help and --version.
6908         * src/preproc/html/pre-html.cc (usage): Add stream argument.
6909         (scanArguments): Accept --help and --version.
6910         * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
6911         (main): Accept --help and --version.
6912         * src/preproc/refer/refer.cc (main): Accept --help and --version.
6913         (usage): Add stream argument. Don't exit.
6914         * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
6915         exit.
6916         (main): Accept --help and --version.
6917         * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
6918         (main): Accept --help and --version.
6919         * src/roff/groff/groff.cc (main): Accept --help and --version.
6920         (synopsis): Add stream argument.
6921         (help): Write --help output to stdout, not stderr.
6922         (usage): Add stream argument. Don't exit.
6923         * src/roff/grog/grog.pl: Accept --help and --version.
6924         (help): New sub.
6925         * src/roff/grog/grog.sh: Accept --help and --version.
6926         * src/roff/nroff/nroff.sh: Accept --help and --version.
6927         * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
6928         (usage): Add stream argument. Don't exit.
6929         (main): Accept --help and --version.
6930         * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
6931         (usage): New function with stream argument, doesn't exit.
6932         * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
6933         (usage): New function with stream argument, doesn't exit.
6934         * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
6935         (usage): Add stream argument. Don't exit.
6936         * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
6937         (main): Accept --help and --version.
6938         * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
6939         exit.
6940         (main): Accept --help and --version.
6941         * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
6942         (main): Accept --help and --version.
6943         * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
6944         (usage): Add stream argument. Don't exit.
6946 2001-04-10  Ruslan Ermilov  <ru@freebsd.org>
6948         Fix indentation in SYNOPSIS.
6950         Updated to include changes of latest BSD mdoc version (basically,
6951         the only change is that `.Fn' and `.Fc' put a final semicolon after
6952         a function declaration in the SYNOPSIS section).
6954         * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
6955         (doc-in-synopsis-section): New variable.  Updated all related
6956         functions.
6957         (doc-indent-synopsis-active): New register.
6958         (Nd, Fn, Fo): Use it.
6959         (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
6960         `.Cd' with long argument line produces indented wrapped lines. 
6961         Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
6962         undesirable line break to be output.
6963         (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
6964         `.rs'.
6965         (Fn, Fc): Add final `;' to output.
6966         (doc-save-global-vars, doc-restore-global-vars): Updated.
6967         * tmac/doc-common: Remove `Ex' register.
6968         Updated.
6969         * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
6970         copyright.
6972 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
6974         * tmac/doc.tmac (Cd): Simplify code.
6975         * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
6977 2001-04-06  Werner LEMBERG  <wl@gnu.org>
6979         Implement continuous underlining for nroff mode.  To do that, a new
6980         request in the ditroff language has been added: `x u N' (N is 0
6981         or 1).
6983         \X and \Y are now transparent to end-of-sentence recognition.
6985         * src/include/printer.h (printer): Add `type' parameter to `special'
6986         method.
6987         * src/libs/libdriver/printer.cc (printer::special): Updated.
6988         * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
6990         * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
6991         specials of type `p'.
6992         * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
6993         * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
6994         * src/devices/grops/ps.cc (ps_printer::special): Ditto.
6995         * src/devices/grotty/tty.cc: Add new enum CU_MODE.
6996         (glyph::order): New method.
6997         (tty_printer::add_char): Use it.
6998         (tty_printer::special): New method.
6999         (tty_printer::end_page): Implement it.
7001         * src/roff/troff/node.h (special_node): Add `no_init_string' member.
7002         * src/roff/troff/node.cc (special_node::special_node): Add parameter
7003         to set `no_init_string'.
7004         (special_node::tprint_start): Use it.
7005         (special_node::same, special_node::copy): Updated.
7006         (special_node::ends_sentence): New method.
7007         (troff_output_file::start_special): Add parameter to include
7008         inititialization of special conditionally.
7010         * src/roff/troff/env.h (environment): New member `underline_spaces'.
7011         * src/roff/troff/env.cc (do_underline_special): New function.
7012         (environment::set_font): Use it.
7013         (do_underline): Use it.  This was `underline()'.
7014         (underline): Call `do_underline()'.
7015         (continuous_underline): New function which calls `do_underline()'.
7016         (environment::newline): Use `do_underline_special()'.
7017         (init_env_requests): Updated.
7019         * NEWS, man/troff_out.man: Updated.
7021 2001-04-06  Bruno Haible  <haible@clisp.cons.org>
7023         * font/devutf8/R.proto: Fix code of 'shc'.
7025 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
7027         Many fixes.  Diag lists can now be nested also; additionally,
7028         `-compact' and `-offset' are supported.
7030         * tmac/doc.tmac (doc-have-indent): Replaced with ...
7031         (doc-list-have-indent-stackXXX): A new register stack.
7032         (doc-have-diag-list): Removed.
7033         (Bl): Use `doc-list-have-indent-stackXXX'.
7034         (El): Updated.
7035         (doc-diag-list): Use `doc-compact-list-stackXXX'.
7036         (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
7037         (doc-set-vertical-and-indent): Ditto.
7038         (doc-next-list-depth): Removed.
7039         (doc-increment-list-stack): Updated.
7040         (doc-decrement-list-stack): Use `doc-list-depth' instead of
7041         `doc-next-list-depth'.
7042         (doc-end-list, doc-end-column-list): Don't use
7043         `doc-increment-list-stack'.
7044         (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
7045         (doc-save-global-vars, doc-restore-global-vars): Updated.
7046         * tmac/doc-common: Updated.
7047         * tmac/groff_mdoc.man: Updated.
7048         * NEWS: Fix typo.
7050 2001-04-02  Werner LEMBERG  <wl@gnu.org>
7052         * src/devices/grotty/grotty.man: Fix grammatical error.
7054 2001-03-30  Ruslan Ermilov  <ru@freebsd.org>
7056         Remove .Ld from mdoc package; replace it with special handling of
7057         `...'.
7059         * tmac/doc-common: Remove `Ld' register.
7060         Uncomment `doc-volume-ds-*' strings.
7061         Remove `doc-operating-system-default'.
7062         (Os): Updated.
7063         * tmac/doc-syms (Ld): Removed.
7064         * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
7065         `...' specially.
7066         * NEWS: Updated.
7068         * tmac/groff_mdoc.man: Many fixes and updates.
7070 2001-03-29  Werner LEMBERG  <wl@gnu.org>
7072         * tmac/troffrc-end: Protect data with `.do'.  Reported by T. Kurt
7073         Bond <tkb@tkb.mpl.com>.
7074         * tmac/www.tmac: Save compatibility mode.
7076 2001-03-28  Ruslan Ermilov  <ru@freebsd.org>
7078         * tmac/groff_mdoc.man: Many fixes.
7080 2001-03-28  Werner LEMBERG  <wl@gnu.org>
7082         * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
7083         isn't recognized.
7085 2001-03-27  Werner LEMBERG  <wl@gnu.org>
7087         * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
7088         diversion.  This fixes overlong tags.
7090 2001-03-26  Werner LEMBERG  <wl@gnu.org>
7092         * doc/groff.texinfo: Fixed and improved documentation of fonts.
7093         * tmac/doc-syms: Fix error messages.
7094         * tmac/an-old.tmac: Remove incorrect double backslashes.
7096 2001-03-24  Ruslan Ermilov  <ru@freebsd.org>
7098         * tmac/Makefile.sub: Strip mdoc.local also
7099         * tmac/strip.sed: Fixed.
7101 2001-03-24  Werner LEMBERG  <wl@gnu.org>
7103         * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
7104         selecting the font size.
7105         * tmac/groff_mdoc.man, NEWS: Document it.
7107 2001-03-23  Werner LEMBERG  <wl@gnu.org>
7109         * src/roff/troff/div.cc (save_vertical_space): Add default argument
7110         to `sv' request.
7111         * src/roff/troff/env.cc (family_change): Make `.fam' accept no
7112         argument to restore previous font family.
7113         * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
7115         * doc/groff.texinfo: More fixes and additions (mainly for font
7116         manipulating commands).
7118         * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
7119         * tmac/groff_mdoc.man: This.  The quick reference has been removed.
7120         * tmac/Makefile.sub, NEWS: Updated.
7122 2001-03-23  Werner LEMBERG  <wl@gnu.org>
7124         Replaced mdoc implementation.  The new version is `state of the
7125         art', using almost all new features of groff 1.17 -- it won't run
7126         with older versions.
7128         * tmac/doc.tmac: Completely rewritten.
7129         * tmac/doc-common: Ditto.
7130         * tmac/doc-nroff: Ditto.
7131         * tmac/doc-ditroff: Ditto.
7132         * tmac/doc-syms: Ditto.
7133         * tmac/mdoc.local: New file.
7134         * tmac/groff_mdoc.samples.man: Replaced with ...
7135         * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
7136         * tmac/strip.sed: Updated.
7137         * tmac/Makefile.sub: Updated.
7138         * INSTALL: Updated.
7140         * tmac/groff_man.man: Add `man.local' to the FILES section.
7142 2001-03-22  Werner LEMBERG  <wl@gnu.org>
7144         * doc/groff.texinfo: Added many @noindent.
7145         Replaced @end_Example -> @endExample.
7146         Added info whether registers are r/o.
7147         Many other additions and fixes.
7149 2001-03-21  Werner LEMBERG  <wl@gnu.org>
7151         * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
7152         in makeinfo of texinfo 4.0) to be used in @Def* macros.
7153         Improved @Def* macros: Now the exact syntax of request, register,
7154         and escapes is shown.
7155         Added macros for parentheses and brackets to be used in @Def*.
7156         Many fixes and improvements of the documentation.
7158 2001-03-20  Werner LEMBERG  <wl@gnu.org>
7160         * doc/groff.texinfo: Added new index: `st' (for strings).
7161         Added macros @Defstr(x).
7162         Added macro @Example (adding @group).
7163         Other minor improvements.
7165 2001-03-19  Werner LEMBERG  <wl@gnu.org>
7167         * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
7168         `rq' for requests.  `fn' is no longer used.
7169         Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
7170         Removed @Deffn(x).
7172         * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
7173         number with name of man page.
7175 2001-03-19  Larry Kollar  <kollar@alltel.net>
7177         * doc/groff.texinfo: Complete revision.  Added many @Deffn to gain
7178         consistency.
7180 2001-03-19  Werner LEMBERG  <wl@gnu.org>
7182         * man/groff_font.man: Document `prepro', `postpro', and `print'.
7183         * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
7184         * src/devices/grohtml/grohtml.man: Fixing typos.
7186 2001-03-19  Gaius Mulley  <gaius@glam.ac.uk>
7188         * tmac/s.tmac (@IP): Pass `.ip' html tag.
7189         * tmac/groff_mwww.man: Remove .LINE macro
7190         * tmac/www.tmac (LINE): Add `.ti'.
7192         * src/devices/grohtml/post-html.cc (html_printer): New member
7193         `indent'.
7194         (html_printer::emit_raw): Use it.
7195         (html_printer::do_linelength): Ditto.
7196         (html_printer::do_pageoffset): Ditto.
7197         (html_printer::do_indentation): Ditto.
7198         (html_printer::do_tempindent): Ditto.
7199         (html_printer::do_break): Ditto.
7200         (html_printer::begin_page): Ditto.
7201         (html_printer::do_indentedparagraph): New function.
7202         (html_printer::troff_tag): Handle `.ip'.
7203         * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
7204         Add `<td width=...>' handling.
7205         (html_text::do_table): Add parameter.
7206         (html_text::do_indent): Updated.
7207         * src/devices/groohtml/html-text.h: Updated.
7209 2001-03-16  Gaius Mulley  <gaius@glam.ac.uk>
7211         Introduced simple html tables to implement indentation.
7213         * src/devices/grohtml/html.h (word, word_list): New structures.
7214         (simple_output): Use it.
7215         * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
7216         (html_printer): Improve indentation handling.
7217         (html_printer::emit_raw): Set `in_table' element.  Handle
7218         indentation if set.
7219         (html_printer::write_header): Move conditional downwards.
7220         Don't allow whitespace in tags.
7221         (html_printer::do_linelength): Handle line length and indentation
7222         conditionally.
7223         (html_printer::do_pageoffset): Handle indentation conditionally.
7224         (html_printer::do_indentation): Ditto.
7225         (html_printer::do_tempindent): New function member.
7226         (html_printer::do_fill): Take care of indentation.
7227         (html_printer::do_flush): Finish table.
7228         (html_printer::do_links): Ditto.
7229         (html_printer::do_break): New function for handling `.br' and `.ti'.
7230         (html_printer::troff_tag): Use it.
7231         Handle `.ti'.
7232         (html_printer::flush_globs): Fix.
7233         (html_printer::flush_page): Finish table.
7234         (html_printer::html_printer): Fix error message.  Set up
7235         `linelength'.
7236         (html_printer::add_to_sbuf): Remove special handling of character
7237         code 255.
7238         (to_unicode): Remove `stop()'.
7239         (html_printer::write_title): Cleanup.
7240         (html_printer::begin_page): Use `put_string()'.  Handle indentation.
7241         (html_printer::~html_printer): Flush text and end the line.
7242         Use `put_string()'.
7243         * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
7244         * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
7245         emission of tags.
7246         (html_text::start_tag): Disable newlines.
7247         (html_text::table_is_void): New function.
7248         (html_text::issue_table_begin): Ditto.
7249         (html_text::issue_table_end): Ditto.
7250         (html_text::push_para): Better table handling.
7251         (html_text::do_indent): New function.
7252         (html_text::do_table): Ditto.
7253         (html_text::done_table): Ditto.
7254         (html_text::do_tt): Handle PRE_TAG.
7255         (html_text::is_in_table): New function.
7256         (html_text::check_emit_text): Handle tables.
7257         (html_text::do_emittext): Use `nl()'.
7258         (html_text::do_para): Handle table.
7259         (html_text::remove_def): New function.
7260         * src/devices/grohtml/output.cc (word, word_list): Implement
7261         methods.
7262         (simple_output::end_line): Flush last word.
7263         (simple_output::simple_comment): Ditto.
7264         (simple_output::begin_comment): Recoded.
7265         (simple_output::end_comment): Ditto.
7266         (simple_output::comment_arg): Removed.
7267         (simple_output::check_newline): Improve test and flush last word.
7268         (simple_output::space_or_newline): Improved.
7269         (simple_output::write_newline): Replaced with...
7270         (simple_output::nl): This.
7271         (simple_output::put_raw_char): Flush last word.
7272         (simple_output::check_space): Removed.
7273         (simple_output::put_translated_string): Ditto.
7274         (simple_output::put_string): Simplified.
7275         (simple_output::put_number): Updated.
7276         (simple_output::put_float): Ditto.
7277         (simple_output::put_symbol): Removed.
7278         (simple_output::enable_newlines): Add `check_newline()'.
7279         (simple_output::flush_last_word): New function.
7281         * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
7282         * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
7284         * tmac/s.tmac (@PP, @IP): Add html conditional code.
7285         * tmac/an-old.tmac (TP): Ditto.
7287 2001-03-09  Ruslan Ermilov  <ru@freebsd.org>
7289         * mdate.sh: Make it POSIX compliant.
7291 2001-03-09  Werner LEMBERG  <wl@gnu.org>
7293         Added the `return' request to end a macro immediately.  It simply
7294         pops iterators from the input stack until a macro iterator is found.
7296         * src/roff/troff/input.cc (input_iterator::is_macro,
7297         macro_iterator::is_macro): New member.
7298         (input_return_boundary): New class to signal an immediate return
7299         to while_request().
7300         (input_stack::add_return_boundary, input_stack::is_return_boundary):
7301         New functions.
7302         (input_stack::clear): Use it.
7303         (input_stack::pop_macro): New function.
7304         (while_request): Use `is_return_boundary()'.
7305         (return_macro_request): New function.
7306         (init_input_requests): Use it.
7308         * src/roff/troff/TODO: Updated.
7309         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7311 2001-03-08  Werner LEMBERG  <wl@gnu.org>
7313         * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
7314         cleanup.
7316 2001-03-07  Werner LEMBERG  <wl@gnu.org>
7318         Make `\B' more rigid.
7320         * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
7321         parameter.
7322         (get_number_rigidly): New function.
7323         * src/roff/troff/input.cc (do_expr_test): Use it.
7324         * src/roff/troff/token.h: Updated.
7326         * src/roff/troff/request.h: Fix typo (init_html_request ->
7327         init_markup_request).
7329 2001-03-04  Gaius Mulley  <gaius@glam.ac.uk>
7331         Fixed grohtml handling of any named glyph for glyph indexes < 0x80. 
7332         Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
7333         are now `.begin', `.end', `.image'.
7335         * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
7336         (html_printer::add_to_sbuf): Changing type of `code' parameter.
7337         Use add_char_to_sbuf().
7338         (to_unicode): New function.
7339         (char_translate_to_html): Changing type of `ch' parameter.
7340         Use `to_unicode()'.
7341         (html_printer::~html_printer): Comment out doctype string.
7342         * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
7343         instead of `.html-end'.
7344         (write_start_image): Use `.begin' and `.image' instead of
7345         `.html-begin' and `.html-image'.
7346         * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
7347         (html_begin): Renamed to ...
7348         (begin): This.
7349         (html_end): Renamed to ...
7350         (end): This.
7351         (html_image): Renamed to ...
7352         (image): This.
7353         (init_html_requests): Renamed to ...
7354         (init_markup_requests): This.
7355         * tmac/www.tmac: Updated.
7357 2001-02-28  Bram  <bram@avontuur.org>
7359         * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
7360         constructor.
7362 2001-02-26  David Leonard  <david.leonard@csee.uq.edu.au>
7364         * doc/meref.me: Fixing some typos.
7366 2001-02-16  Werner LEMBERG  <wl@gnu.org>
7368         * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
7369         method.  Return `HYPHEN_MIDDLE' if it was `\:'.
7370         * src/roff/troff/node.h: Updated.
7372 2001-02-17  Ruslan Ermilov  <ru@FreeBSD.org>
7374         * tmac/groff_tmac.man: Fix typo.
7376 2001-02-16  Werner LEMBERG  <wl@gnu.org>
7378         Fixing a bug which prevented proper end-of-sentence recognition
7379         between an `unformatted' box and the following text.  As a
7380         consequence, vertical line distances are no longer preserved in
7381         boxes after a call to `.unformat' -- because boxes aren't
7382         line-oriented (contrary to diversions), this doesn't make sense
7383         anyway.
7385         * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
7386         value.
7387         (vertical_size_node::set_unformat_flag): New method.
7388         * src/roff/troff/node.hh: Updated.
7389         * src/roff/troff/input.cc (word_space_node::reread,
7390         hmotion_node::reread): Reset `unformat' flag after usage.
7391         (unformat_macro): Append only if `set_unformat_flag()' returns
7392         non-zero.
7393         * src/roff/troff/troff.man: Updated.
7395 2001-02-15  Werner LEMBERG  <wl@gnu.org>
7397         * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
7398         documentation of `asciify' and `unformat' requests.
7400 2001-02-13  Werner LEMBERG  <wl@gnu.org>
7402         Redesigned the `unformat' request.  It is no longer connected with
7403         `asciify' but rather uses new `reread()' methods if the `unformat'
7404         flag is set.  Additionally, the handling of space characters after
7405         unformatting has been fixed so that they retain their width.
7407         * src/roff/troff/node.h (width_list): New structure to store
7408         original widths of spaces.
7409         (node): Added `unformat' member.
7410         Replaced `num_spaces' variable with `orig_width' list.
7411         * src/roff/troff/node.cc (*node::asciify,
7412         asciify_reverse_node_list): Removed `unformat_only' flag and related
7413         code.
7414         (word_space_node::asciify, word_space_node::word_space_node): Use
7415         `orig_width'.
7416         (word_space_node::~word_space_node): New destructor.
7417         (word_space_node::copy): Updated to handle `orig_width'.
7418         (hmotion_node::copy, unbreakable_space_node::copy): Updated.
7419         (*node::merge_space): Update `orig_width' list if necessary.
7420         (*node::set_unformat_flag): New methods to set the `unformat' flag.
7421         * src/roff/troff/enc.cc (environment::space_newline): Use
7422         `width_list'.
7423         (environment::space): Added method to handle space width and
7424         sentence space width as parameters.  Use `width_list'.
7425         (environment::make_tab_node): Updated.
7426         * src/roff/troff/env.h: Updated.
7427         * src/roff/troff/input.cc (word_space_node::reread,
7428         unbreakable_space_node::reread, hmotion_node::reread): New methods
7429         to handle nodes specially if `unformat' flag is set.
7430         (do_asciify_macro): Renamed back to ...
7431         (asciify_macro): This.
7432         (unformat_macro): New implementation to simply set the `unformat'
7433         flag.
7435         * MORE.STUFF: Added more info about deroff.
7437 2001-02-08  Werner LEMBERG  <wl@gnu.org>
7439         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
7440         space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
7441         and `add_self()' methods to avoid hyphenation.  For example, the
7442         hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
7443         soft hyphen after `foo'.  Now the hyphen list is correctly
7444         `foo<ignore><ignore>bar'.
7446 2001-02-05  Yoshiteru Kageyama  <yt-kage@cb3.so-net.ne.jp>
7448         * tmac/groff_tmac.man: Fix `BIR' macro.
7450 2001-02-04  Werner LEMBERG  <wl@gnu.org>
7452         A new escape sequence `\:', inserting a zero-width break point.
7454         * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
7455         * src/roff/troff/input.cc (get_copy, token::next, asciify):
7456         Implement it.
7457         * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
7458         method.
7459         (space_node): Add `was_escape_colon' member.  Add `is_escape_colon()'
7460         and `asciify()' methods.
7461         * src/roff/troff/node.cc (space_node::space_node): Updated.
7462         (space_node::asciify): Handle `was_escape_colon'.
7463         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7465         Handle `\~' similar to other comparable requests.
7467         * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
7468         label.
7469         (token::next): Move creation of an unbreakable_space_node to...
7470         (token::add_to_node_list): Here.
7472         Fix a bug which sometimes prevented hyphenation of words connected
7473         with `\~' or `\ ' (and other escape sequences handled as
7474         TOKEN_NODE).  This also fixes a hyphenation problem with boxes
7475         (after a call to the `unformat' request).
7477         * src/roff/troff/env.h (environment::possibly_break_line,
7478         environment::hyphenate_line): Introducing `start_here' parameter.
7479         * src/roff/troff/env.cc (environment::space_newline,
7480         environment::space): Use it.
7481         (environment::possibly_break_line, environment::hyphenate_line):
7482         Implement it.
7483         * src/roff/troff/input.cc (process_input_stack): Use it.
7484         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
7485         space_char_hmotion_node, overstrike_node): Add
7486         `get_hyphenation_type()' method.
7487         * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
7488         if `unformat_only' is active.
7490 2001-01-30  Werner LEMBERG  <wl@gnu.org>
7492         Implemented new read-only number register `.linetabs' which
7493         returns 1 if in line-tabs mode, 0 otherwise.
7495         * src/roff/troff/env.h (environment): Add get_line_tabs() member.
7496         * src/roff/troff/env.cc (get_line_tabs): New function.
7497         (init_env_requests): Use it.
7498         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7500         * VERSION, REVISION: Changing to 1.17.0.
7502 2001-01-28  Werner LEMBERG  <wl@gnu.org>
7504         Fixed a bug which prevented hyphenation of words which are finished
7505         with `\)'.
7507         * src/roff/troff/token.h (token): Add enum type
7508         `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
7509         * src/roff/troff/input.cc (token::next, token::description,
7510         get_line_arg, token::add_to_node_list, token::process): Use it.
7512 2001-01-27  Werner LEMBERG  <wl@gnu.org>
7514         * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
7515         * src/roff/troff/div.cc (do_divert): Use it.
7517         * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
7519 2001-01-25  Werner LEMBERG  <wl@gnu.org>
7521         Adding the `linetabs' request.  If set, tab distances are not
7522         computed relative to the input line but relative to the output line.
7524         * src/roff/troff/env.h (environment): New member `line_tabs'.
7525         * src/roff/troff/env.cc (line_tabs_request): Implement request.
7526         (environment::environment, environment::copy): Updated.
7527         (environment::distance_to_next_tab): Use `line_tabs'.
7528         (init_env_requests): Register request.
7529         * src/roff/troff/troff.man, man/groff.man, NEWS: Document it.  Other
7530         fixes.
7532 2001-01-24  Werner LEMBERG  <wl@gnu.org>
7534         Introducing a new read-only register `.int' which is set to a
7535         positive value if the last output line is interrupted (i.e., if it
7536         contains `\c').
7538         * src/roff/troff/env.cc (init_env_requests): Add it.
7539         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7541 2001-01-23  Gaius Mulley  <gaius@glam.ac.uk>
7543         * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
7544         * src/preproc/html/pre-html.cc (findPrefix): New function which
7545         generates the troff executable name via the system prefix.
7546         * src/preproc/eqn/main.cc: Modified warning message.
7548 2001-01-23  Werner LEMBERG  <wl@gnu.org>
7550         troff's `box' and `boxa' requests didn't preserve temporary
7551         indentation.
7553         * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
7554         `saved_target_text_length' members.
7555         * src/roff/troff/div.cc (do_divert): Use them.
7557         Tabs (but not yet leaders and fields) are now handled correctly by
7558         `asciify' request.
7560         * node.h (hmotion_node): Add field `was_tab'.
7561         * env.cc (environment::make_tab_node): Set it.
7562         * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
7564         Added new request `unformat' which will, contrary to `asciify',
7565         preserve font information after unformatting (i.e., only nodes
7566         dealing with horizontal space are converted back to input
7567         characters).
7569         * input.cc (asciify_macro): Renamed to ...
7570         (do_asciify_macro): this, having a new parameter `unformat_only'.
7571         (asciify_macro, unformat_macro): New; using do_asciify_macro.
7572         (init_input_requests): Added `unformat'.
7573         * node.cc (*_node::asciify), asciify_reverse_node_list: Added
7574         parameter to control asciification process.
7575         * node.h (*_node::asciify): Ditto.
7576         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7578 2001-01-20  Werner LEMBERG  <wl@gnu.org>
7580         * doc/groff.texinfo: Minor improvement of `.in' documentation.
7582 2001-01-18  Werner LEMBERG  <wl@gnu.org>
7584         * tmac/ps.tmac: Remove call of psold.tmac.
7585         * tmac/psold.tmac: Comment updated.
7586         * tmac/psnew.tmac: Removed since no longer needed.
7587         * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
7589         * font/devutf8/R.proto: Adding `shc' glyph.
7590         * font/devutf8/NOTES: Updated.
7592         * test-groff: Updated.
7594 2001-01-15  Gaius Mulley  <gaius@glam.ac.uk>
7596         First cut of the new html device driver.  Changes to pre-html and
7597         the new grohtml are too numerous to be documented here.
7599         Stuff related to `html' has been renamed to `html-old' and `html2'
7600         stuff has been renamed to `html' (including directories).  The new
7601         html device driver is therefore invoked as `-Thtml'.
7603         Added new `\O' escape to suppress output (needed by html driver).
7605         Added functions and code to pass info about input-level commands
7606         (`.in', `.fl', etc.) to html driver.
7608         Three new functions (.html-begin, .html-end, and .html-image) for
7609         better html handling: `html-begin' will execute the remaining line
7610         if at the outermost nesting level, increasing an internal counter.
7611         `html-end' does the same but decreases the internal counter.
7612         `html_image' puts its arguments into a special node (suppress_node)
7613         to define an image region.
7615         The `output' request has been removed.
7617         * tmac/html-tags.tmac: Removed.
7618         * tmac/arkup.tmac: Updated and renamed to ...
7619         * tmac/www.tmac: New file.
7620         * tmac/markup.tmac Updated and renamed to ...
7621         * tmac/mwww.tmac: New file.
7622         * tmac/Makefile.sub: Updated.
7623         * tmac/an-old.tmac: Updated.
7624         * tmac/eqnrc: Updated.
7625         * tmac/groff_man.man
7626         * tmac/groff_markup.man: Updated and renamed to ...
7627         * tmac/groff_mwww.man: New file.
7628         * tmac/groff_tmac.man: Updated.
7629         * tmac/html-old.tmac: Updated and Renamed from html.tmac.
7630         * tmac/html.tmac: Updated and renamed from html2.tmac.
7631         * tmac/pspic.tmac: Updated html support.
7632         * tmac/s.tmac: Added html output support.
7633         * tmac/troffrc, tmac/troffrc-end: Updated.
7635         * Makefile.in, doc/Makefile: Updated.
7636         * doc/groff.texinfo: Added info about new `\O' escape.
7637         * doc/homepage.ms: Use `MAILTO' macro.
7639         * font/devhtml/DESC.proto: Add `C' font.
7640         * font/devhtml/Makefile.sub: Updated.
7641         * font/devhtml/R.proto: Minor fixes.
7642         * font/devhtml-old/Makefile.sub: Updated.
7644         * src/devices/grohtml-old/Makefile.sub: Updated.
7646         * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
7647         method.
7648         * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
7649         graphic_start): Add `inline' parameter.  Update.
7650         (html_end_suppress, graphic_end): Update.
7652         * src/include/html-strings.h: New file.
7653         * src/include/htmlindicate.h: Comments updated.
7654         * src/include/printer.h: Updated.
7656         * src/preproc/eqn/main.cc (do_file, main): Updated.
7657         * src/preproc/pic/troff.cc (troff_output::start_picture,
7658         troff_output::finish_picture): Updated.
7659         * src/preproc/tbl/main.cc (process_input_file): Updated.
7661         * src/roff/groff/groff.cc (main): Updated.
7662         Pass device arguments to predrivers also.
7663         Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
7664         * src/roff/troff/env.h (environment): Updated.
7665         New elements `need_eol' and `ignore_next_eol' (for html output).
7666         * src/roff/troff/env.cc (environment::environment): Add initializers
7667         for `need_eol' and `ignore_next_eol'.
7668         (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
7669         functions.
7670         (point_size, fill, no_fill, center, right_justify, line_length,
7671         indent, temporary_indent, break_request, handle_tab): Use
7672         `add_html_tag()'.
7673         (set_tabs): Use `add_html_tag_tabs()'.
7674         (environment::add_html_tag): Updated.
7675         (environment::do_break): Updated.
7676         * src/roff/troff/div.cc (space_request, flush_output): Use
7677         `environment::add_html_tag()'.
7678         * src/roff/troff/input.cc: Updated.
7679         New variable `html_level' to indicate nested `html-begin' requests.
7680         (file_iterator::fill): Use `environment::add_html_tag_eol()'.
7681         (non_interpreted_char_node, token_node, non_interpreted_node): Add
7682         `force_tprint()' method.
7683         (token::next): Handle `\O'.
7684         (do_suppress): Implement it.
7685         (html_begin, html_end, html_image): New functions.
7686         (init_output_requests): Renamed to ...
7687         (init_html_requests): this.
7688         (main): Use it.
7689         (macro::append_str, macro::append_unsigned, macro::append_int): New
7690         methods.
7691         New variable `output_low_mark_miny' to limit minimal value of y.
7692         (reset_output_registers): Use it.
7693         (output_request): Removed.
7694         (get_output_registers): New function.
7695         * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
7696         (*_node): Added `force_tprint()' if necessary.
7697         (special_node): New elements `tf' and `get_tfont()'.
7698         (suppress_node): New class.
7699         * src/roff/troff/node.cc:
7700         New global variables `image_no' and `suppress_start_page'.
7701         (real_output_file): New method `is_on()'.
7702         (troff_output_file): New method `start_special(tfont)'.
7703         (troff_output_file::really_print_line): Use `tprint' conditionally.
7704         (real_output_file::print_line): Updated.
7705         (real_output_file::on): Updated.
7706         (*_node): Added `force_tprint()'.
7707         (special_node::special_node): Initializer updated.
7708         (special_node::same, special_node::copy, special_node::tprint_start):
7709         Updated.
7710         (get_reg_int, get_reg_str): New functions.
7711         (suppress_node::*): New methods.
7712         New global variables last_position, last_image_filename;
7713         (min): New inline function.
7714         * src/roff/troff/reg.h, src/roff/troff/request.h,
7715         src/roff/troff/troff.h: Updated.
7717 2001-01-13  Werner LEMBERG  <wl@gnu.org>
7719         * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
7720         documentation of `asciify' request.
7722 2001-01-12  Werner LEMBERG  <wl@gnu.org>
7724         * src/roff/troff/input.cc: Move definition of special characters
7725         like `ESCAPE_TILDE' to ...
7726         * src/roff/troff/input.h: New file.
7727         * src/roff/troff/Makefile.sub (HDRS): Add it.
7729         Extending the .asciify request to `unformat' space characters also.
7731         * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
7732         to count input space characters.
7733         Update constructors to take care of it.
7734         * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
7735         `ESCAPE_SPACE' instead of normal space.
7736         (word_space_node::asciify): New method.
7737         (unbreakable_space_node::asciify): New method.
7738         (word_space_node::merge_space): New method.
7739         * src/roff/troff/env.cc (environment::space_newline,
7740         environment::space): Add code to initialize `num_spaces' (using the
7741         constructor of `word_space_node').
7742         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
7743         Document it.
7745 2001-01-09  Werner LEMBERG  <wl@gnu.org>
7747         * man/groff_char.man: Use table header traps only conditionally.
7749 2001-01-09  Bjarni Ingi Gíslason  <bjarniig@hi.is>
7751         * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
7753 2001-01-08  Werner LEMBERG  <wl@gnu.org>
7755         Introducing the `box' and `boxa' requests which are similar to
7756         `di' resp. `da' but omitting a partially filled line (which is
7757         restored after ending the diversion).
7759         * src/roff/troff/div.h (diversion): Add elements to save partially
7760         filled line.
7761         * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
7762         partially filled line.
7763         (divert, divert_append): Updated.
7764         (box, box_append): New functions.
7765         (init_div_requests): Use them.
7766         * src/roff/troff/env.h (environment): do_divert() is now a friend.
7767         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7769         * doc/groff.texinfo: Fix documentation of `lf' request.
7771 2000-12-25  Werner LEMBERG  <wl@gnu.org>
7773         * src/roff/troff/troff.man, NEWS: Document `writem' request.
7775 2000-12-21  Werner LEMBERG  <wl@gnu.org>
7777         Ignore `ss' request if in compatibility mode.
7779         * src/roff/troff/input.cc: Make `compatible_flag' non-static.
7780         * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
7781         * src/roff/troff/env.cc (space_size): Use it.
7783         * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
7784         `ss' request in nroff mode.
7786         * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
7787         changes.
7789 2000-12-15  Ruslan Ermilov  <ru@FreeBSD.org>
7791         * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
7793 2000-12-13  Werner LEMBERG  <wl@gnu.org>
7795         * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
7796         * src/preproc/eqn/neqn.man: Small fixes and additions.
7798 2000-12-13  Ruslan Ermilov  <ru@FreeBSD.org>
7800         * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
7801         Fixing typo.
7803         * src/preproc/eqn/neqn.man: New file.
7805         * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
7806         negative' warning.
7808         * tmac/e.tmac: Add `T&' macro.
7809         Fix `indent cannot be negative' warning.
7810         * tmac/s.tmac: Fix `indent cannot be negative' warning.
7812 2000-12-07  Werner LEMBERG  <wl@gnu.org>
7814         * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
7816 2000-12-06  Werner LEMBERG  <wl@gnu.org>
7818         * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
7819         `alloca' symbol .
7821         * MORE.STUFF: Added info about deroff for djgpp.
7823         * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
7824         documentation of -rcR switch.
7826 2000-12-03  Werner LEMBERG  <wl@gnu.org>
7828         * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
7829         if -rcR=1 (which is now the default in nroff mode), a single, very
7830         long page is created instead of multiple pages: All `ne' and `wh'
7831         requests are put into conditionals; a new macro `an-end' is added to
7832         be called with `em'.
7834         Some other minor cleanups.
7836         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
7838 2000-12-02  Werner LEMBERG  <wl@gnu.org>
7840         Fixing a bug which prevented hyphenation in words followed
7841         immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
7843         * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
7844         Adding possibly_break_line().
7845         * src/roff/troff/env.h (environment): Make possibly_break_line()
7846         public.
7848         Make `\~' usable in .tr request.
7850         * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
7851         (token): Add stretchable_space().
7852         * src/roff/troff/input.cc (token::next, token::delimiter,
7853         token::description, process_input_stack, do_translate,
7854         add_to_node_list, token::process): Use it.
7855         * src/roff/troff/node.h (node): Add fourth parameter to add_char()
7856         for adjusting the space.
7857         * src/roff/troff/node.cc (node::add_char): Implement it.  Add code
7858         for stretchable space.
7859         * src/roff/troff/input.cc (token::add_to_node_list): Use it.
7860         (make_node): Add code for stretchable space.
7861         * src/roff/troff/env.cc (environment::add_char): Use it.
7862         * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
7863         (get_copy, token::next, transparent_translate, asciify): Use it.
7865         * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
7866         doc/groff.texinfo: Updated.
7867         * man/groff.man: Small reorderings.
7869 2000-11-23  Werner LEMBERG  <wl@gnu.org>
7871         * NEWS: Fixes.
7872         * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
7873         option.
7874         * src/roff/troff/input.cc (main): Add `config_macro_path' and
7875         `safer_macro_path' to -M option.
7876         * src/roff/troff/troff.man: Fixes.
7878 2000-11-22  Werner LEMBERG  <wl@gnu.org>
7880         Use safer path (except for config files) if -U isn't specified.  Add
7881         a special macro path (without home and current directory) for config
7882         files.  Add home directory to unsafe path for consistency.  Don't
7883         include the home directory in the font path.
7885         * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
7886         `macro_path'.
7887         * src/include/macropath.h: Add `config_macrp_path'.
7888         * src/libs/libgroff/fontfile.cc: Fix font path.
7889         * src/roff/troff/input.cc (process_startup_file): Use
7890         `config_macro_path'.
7891         (main): Select unsafe path if -U is given.
7893         * src/preproc/eqn/main.cc (main): Fixing search path for
7894         configuration file.
7895         * src/preproc/eqn/eqn.man: Updated.
7897         * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
7898         Updated.
7900         * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
7901         src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
7902         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
7903         src/devices/grotty/grotty.man: Updated.
7905         * Makefile.in: Fix comments.
7907 2000-11-17  Werner LEMBERG  <wl@gnu.org>
7909         * tmac/safer.tmac: Empty file added (again) for compatibility
7910         reasons.
7911         * tmac/Makefile.sub: Updated.
7913 2000-11-16  Werner LEMBERG  <wl@gnu.org>
7915         * src/devices/grodvi/dvi.cc (main),
7916         src/devices/grohtml2/post-html.cc (main),
7917         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
7918         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
7919         (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
7920         (main), src/preproc/html2/pre-html.cc (main),
7921         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
7922         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
7923         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
7924         (main), src/utils/hpftodit/hpftodit.cc (main),
7925         src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
7926         (main), src/utils/lookbib/lookbib.cc (main),
7927         src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
7928         (main): Use stdout for -v.
7929         * src/roff/groff/groff.cc (run_commands),
7930         src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
7931         to make direct printing to stdout possible.
7932         * src/roff/groff/pipeline.h: Updated.
7934         * src/utils/afmtodit/afmtodit.pl: Add -v switch.
7935         * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
7936         * src/utils/afmtodit/afmtodit.man: Updated.
7938         * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
7939         (version): New function.
7940         (usage): Updated.
7941         * src/utils/addftinfo/addftinfo.man: Updated.
7943         * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
7944         Fixing copyright dates.
7946         * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
7947         replacing it.
7949         * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
7950         version_string.
7952         * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
7954 2000-11-15  Werner LEMBERG  <wl@gnu.org>
7956         In all programs, make -v return immediately with exit status 0 to
7957         be compliant with the GNU standard.
7959         * src/devices/grodvi/dvi.cc (main),
7960         src/devices/grohtml2/post-html.cc (main),
7961         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
7962         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
7963         (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
7964         (main), src/preproc/html2/pre-html.cc (main),
7965         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
7966         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
7967         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
7968         (main): Implement it.
7969         * NEWS: Updated.
7971         * src/roff/groff/groff.cc (main): Add copyright notice.  Add refer
7972         and postprocessors to the -v option.
7974         * src/roff/grog/grog.pl: Implement -v.
7975         * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
7976         * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
7978         * src/roff/nroff/nroff.sh: Implement -v.
7979         * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
7980         * src/roff/nroff/nroff.man: Updated.
7981         
7982         * src/preproc/eqn/main.cc (main): Fix comment typo.
7984         * MORE.STUFF: Added info about djgpp port of grap.
7986 2000-11-14  Werner LEMBERG  <wl@gnu.org>
7988         * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
7989         mode (or rather, implemented non-compatibility mode).
7990         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
7992         * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
7993         replacing it -- we don't find gxditview otherwise.
7994         * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
7996         * src/preproc/pic/depend: Removed.  Unnecessary.
7998         Implemented dummy keyword `solid' in pic for compatibility with
7999         AT&T pic.
8001         * lex.cc (lookup_keyword): Added `solid'.
8002         * pic.y: Added SOLID with dummy rule.
8003         * pic.cc, pic_tab.h: Regenerated.
8004         * doc/pic.ms: Updated.
8006 2000-11-13  Werner LEMBERG  <wl@gnu.org>
8008         For security reasons, don't use the current directory but the home
8009         directory while searching and scanning troffrc and troffrc-end.
8010         Similarly, replace the current directory with the home directory
8011         in the font path.
8013         * Makefile.in (fontpath, tmacpath): Remove current directory.
8015         * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
8016         two parameters `add_home' and `add_current'.
8017         (search_path::~search_path, search_path::command_line_dir,
8018         search_path::open_file): Remove tests for `dirs' being zero.
8019         * src/include/searchpath.h: Adjust.
8020         * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
8021         `safer_macro_path'.
8022         * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
8024         * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
8025         * src/roff/troff/input.cc: Use `mac_path', initialized with
8026         `macro_path'.
8027         (process_startup_file): Set `mac_path' to `safer_macro_path'.
8028         * src/roff/troff/env.cc: Use `mac_path'.
8030         * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
8032         * NEWS, man/roff.man, src/roff/troff/troff.man,
8033         src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
8034         Updated.
8036 2000-11-12  Werner LEMBERG  <wl@gnu.org>
8038         * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
8040         * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
8041         * configure.in: Fix typo in comment.
8042         * configure: Regenerated.
8044         * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
8045         copyright dates.
8047 2000-11-08  Werner LEMBERG  <wl@gnu.org>
8049         Add system tmac directory (/usr/local/lib/groff/site-tmac).
8051         * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
8052         (uninstall_dirs): Add $(libdir), $(libprogramdir), and
8053         $(systemtmacdir).
8054         Use @libdir@.
8055         * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
8056         * tmac/Makefile.sub (install_data): Create
8057         $(systemtmacdir) and $(localtmacdir).
8058         (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
8059         * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
8060         NEWS, doc/groff.texinfo: Updated and minor fixes.
8062         * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
8063         * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
8064         $(systemtmacdir) since the wrapper files are platform-dependent.
8066 2000-11-01  Werner LEMBERG  <wl@gnu.org>
8068         * doc/groff.texinfo: Fix typo.
8070 2000-10-26  Werner LEMBERG  <wl@gnu.org>
8072         Convert macros `tmac.XXX' to `XXX.tmac'.  Special cases:
8073           tmac.doc.old -> doc-old.tmac
8074           tmac.an.old  -> an-old.tmac
8076         * tmac/tmac.*: Moved to ...
8077         * tmac/*.tmac: this.
8078         * tmac/man.local: Fix comment.
8079         * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
8080         tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. 
8081         Added some `FILES' sections.  More use of @...@ directives.  Other
8082         minor updates.
8083         * arch/djgpp/README, font/devutf8/NOTES: Updated.
8084         * doc/homepage.ms, doc/groff.texinfo: Updated.
8085         * man/groff.man, man/roff.man: Updated.
8086         * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
8087         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
8088         src/devices/grotty/grotty.man: Updated.
8089         * src/preproc/pic/pic.man: Updated.
8090         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
8091         instead of -mdoc.old.
8092         * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
8093         * src/roff/nroff/nroff.man: Updated.
8094         * NEWS: Updated.
8096         * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
8098         * tmac/mm.diff: Removed -- it has no use now since the mm package
8099         is part of groff.
8101         * tmac/*: Removed trailing spaces.
8103         * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
8104         the tmac subdirectory also).
8106         * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
8107         * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
8108         stuff since it is no longer needed.
8110         * README, PROBLEMS: Updated.
8112 2000-10-25  Werner LEMBERG  <wl@gnu.org>
8114         Invert current behaviour: Search first FOOBAR.tmac, then
8115         tmac.FOOBAR.
8117         * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
8118         (open_mac_file, macro_source): Implement it.
8119         * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
8120         doc/groff.texinfo, NEWS: Document it.
8122         * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
8123         Small documentation improvements.
8125         * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
8126         subdirectory also).
8128         * font/devps/Makefile.sub: Fix rules for dingbats.*map.
8130 2000-10-24  Werner LEMBERG  <wl@gnu.org>
8132         Add local tmac directory (groff/site-tmac).
8134         * Makefile.in: Add $(localtmacdir).
8135         (uninstall_dirs): Add $(localtmacdir).
8136         * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
8137         * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
8138         in $(localtmacdir).  Create $(localtmacdir).
8139         * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
8140         Updated and minor fixes.
8142         Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
8144         * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
8146 2000-10-23  Werner LEMBERG  <wl@gnu.org>
8148         Move hyphen.us to tmac directory.
8150         * src/roff/troff/hyphen.us: Removed.
8151         * src/tmac/hyphen.us: Added.
8152         * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
8154         Change installation structure for data files from .../groff/... to
8155         .../groff/<version><revision>/... to be conform with other GNU
8156         programs.
8158         * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
8159         doc/Makefile: Implement it.
8160         * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
8161         * configure: Updated.
8162         * arch/djgpp/README, font/devutf8/NOTES: Use it.
8163         * NEWS: Document it.
8164         * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
8165         @MACRODIR@ instead of hard-coded directories.
8167 2000-10-22  Werner LEMBERG  <wl@gnu.org>
8169         Implement $GROFF_BIN_PATH environment variable (which defaults to
8170         $bindir) used for child programs of groff and similar wrappers.
8172         * gendefs.sh: Improve documentation.
8173         * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
8174         src/preproc/eqn/Makefile.sub (neqn),
8175         src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
8176         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
8177         $GROFF_BIN_PATH.
8178         * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
8179         $GROFF_PATH__ (the latter for communication with troff).
8180         * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
8181         set.
8182         * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
8183         doc/groff.texinfo: Document it.
8185         * doc/groff.texinfo: Improve documentation of troff's -a option.
8187 2000-10-17  Gaius Mulley  <gaius@glam.ac.uk>
8189         * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
8190         non-intrusive eol marker.
8191         (troff_output_file::determine_line_limits): New function.
8192         (troff_output_file::draw): Use it.
8193         * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
8194         output_pending_lines() instead of output_line().
8195         * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
8196         * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
8197         createImage): Small fixes.
8198         
8199 2000-10-14  Werner LEMBERG  <wl@gnu.org>
8201         Replace tmac.safer with a real secure solution.
8203         * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
8204         system_request, pipe_output): Disable requests if in safer mode.
8205         * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
8206         * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
8207         * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
8208         doc/groff.texinfo, src/roff/groff/groff.man,
8209         src/roff/troff/troff.man, arch/djgpp/README: Updated.
8211         * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
8212         (resource_manager::output_prolog): Replace setenv() with putenv().
8214 2000-10-09  Werner LEMBERG  <wl@gnu.org>
8216         * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
8217         src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
8218         src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
8219         src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
8220         compilation errors with some compilers.  It seems that this code
8221         is no longer necessary -- if yes, it is easy to add some #ifdef's
8222         for that particular old-fashioned compiler.
8224         * MORE.STUFF: Added info about Meta-tbl.
8226         * doc/groff.texinfo: Added more info about `.if "..."..."'.
8228 2000-10-07  Werner LEMBERG  <wl@gnu.org>
8230         Adding a new escape sequence \B'...': If the string between
8231         the delimiters is a valid numeric expression, return the character
8232         `1', and `0' otherwise.  This is an analogon to \A.
8234         * src/roff/troff/input.cc (do_expr_test): Implement it.
8235         (token::next): Use it.
8236         * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
8238         * tmac/tmac.trace: Made independent from escape character.
8240 2000-10-06  Werner LEMBERG  <wl@gnu.org>
8242         Adding a new request .dei: define indirect.  The first and second
8243         parameter of .dei are taken from string registers instead directly;
8244         this very special request is needed to make tmac.trace independent
8245         from the escape character (which might even be disabled).
8247         * src/roff/troff/input.cc (do_define_macro): Implement it.
8248         (define_macro_indirect): New function.
8249         (init_input_requests): Use it.
8251         Adding two requests .ecs and .ecr: Save and restore the escape
8252         character.  These two requests are needed to make tmac.trace
8253         independent from the escape character (which might even be
8254         disabled).
8256         * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
8257         Implement it.
8258         (init_input_requests): Use it.
8260         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
8262 2000-09-22  Ricardo Soares Guimarães  <ricardo@conectiva.com.br>
8264         Adding a new option -P and new environment variable GROPS_PROLOGUE
8265         to grops, selecting a different prologue file (minor modifications
8266         by WL).
8268         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
8269         src/devices/grops/ps.cc (main): Implement it.
8270         * src/devices/grops/grops.man, NEWS: Document it.
8272 2000-09-22  Werner LEMBERG  <wl@gnu.org>
8274         * INSTALL: Add info about selecting paper format.
8276 2000-09-21  Werner LEMBERG  <wl@gnu.org>
8278         * src/roff/troff/input.cc (main): Fixing compiler warning.
8279         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
8280         strings.h from the former to the latter.
8281         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
8282         stuff from the former to the latter.
8284 2000-09-11  Werner LEMBERG  <wl@gnu.org>
8286         Implementing two new requests .tm1 and .tmc: The former is similar
8287         to .tm but can output leading spaces; its syntax is similar to
8288         defining a string, i.e., a `"' can be used to mark the beginning of
8289         the string to be written to stderr: `.tm1 " test'.  The latter is
8290         similar to .tm1 but doesn't write out a final newline character.
8292         * src/roff/troff/input.cc (terminal1, terminal_continue,
8293         do_terminal): New functions.
8294         (init_input_requests): Use them.
8295         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
8297 2000-09-09  Werner LEMBERG  <wl@gnu.org>
8299         * tmac/groff_mdoc.samples.man: Small fixes.
8301 2000-09-08  Werner LEMBERG  <wl@gnu.org>
8303         * tmac/groff_mdoc.man: Fixing typo.
8305 2000-09-02  Werner LEMBERG  <wl@gnu.org>
8307         Implementing a .nop request which does nothing.
8309         * src/roff/troff/input.cc (nop_request): New function.
8310         (init_input_requests): Use it.
8311         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
8313 2000-09-01  Werner LEMBERG  <wl@gnu.org>
8315         * doc/groff.texinfo: Added some comments.
8317 2000-08-30  Werner LEMBERG  <wl@gnu.org>
8319         * src/roff/troff/TODO: Updated.
8321 2000-08-25  Werner LEMBERG  <wl@gnu.org>
8323         * doc/groff.texinfo: Fix comment how to compile the DVI file.
8325 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
8327         * font/devps/generate/Makefile (SHELL): Define explicitly to
8328         "/bin/sh", for non-Unix platforms.
8329         (extraclean): Use a more portable "" quoting instead of a
8330         backslash (which doesn't work on DOS/Windows).
8331         
8332         * font/devlj4/generate/Makefile (extraclean): Ditto.
8334         * font/devdvi/generate/Makefile (extraclean): Ditto.
8336 2000-08-25  Werner LEMBERG  <wl@gnu.org>
8338         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
8339         src/roff/troff/troff.man: Document Eli's latest changes.
8341 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
8343         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
8344         macro file names of the form NAME.tmac as well as tmac.NAME.
8346 2000-08-25  Werner LEMBERG  <wl@gnu.org>
8348         * src/include/posix.h: Remove definition of FILENAME_MAX.
8350         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
8351         `sys_fatal' and `stop' function().
8353         * test-groff: Updated.
8355 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
8357         Added the new troff command .output <arg> to suppress output (while
8358         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
8359         registers (for passing the output dimensions to the output device).
8361         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
8362         parameter.
8363         * src/roff/troff/node.h, src/roff/troff/node.cc
8364         (troff_output_file::really_print_line,
8365         ascii_output_file::really_print_line,
8366         supress_output_file::really_print_line): Use `width' parameter.
8367         (troff_output_file::really_on, troff_output_file::really_off,
8368         output_file::on, output_file::off, real_output_file::on,
8369         real_output_file::off, real_output_file::really_on,
8370         real_output_file::really_off): New functions.
8371         (real_output_file:public output_file): New variable `output_on'.
8372         (real_output_file::begin_page, real_output_file::copy_file,
8373         real_output_file::transparent_char, real_output_file::print_line):
8374         Use it.
8375         (real_output_file::print_line): Use check_output_limits.
8376         * src/roff/troff/reg.h, src/roff/troff/request.h,
8377         src/roff/troff/input.cc (assign_registers): New function to remove
8378         two `goto's.
8379         (do_ps_file): Use it.
8380         (check_output_limits, reset_output_registers, output_request,
8381         init_output_requests): New functions.
8382         (init_input_requests): Updated.
8384         Added new grohtml2 device and html2 preprocessor (coding
8385         not yet finished) which will eventually replace grohtml.
8387         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
8388         Updated.
8389         * src/include/htmlindicate.h, src/include/htmlindicate
8390         (html_begin_suppress, html_end_suppress): New functions.
8391         * src/preproc/tbl/main.cc: Use it.
8392         * src/roff/groff/groff.cc: Add support for html2 device (which will
8393         automatically invoke the html2 preprocessor).
8394         * src/roff/troff/input.cc (is_html2): New variable.
8395         * src/roff/troff/troff.h, src/roff/troff/env.h,
8396         src/roff/troff/env.cc (environment::add_html_tag): New function
8397         (uses `is_html2').
8398         (environment::do_break): Use it.
8399         * font/devhtml2/*: New files.
8400         * src/devices/grohtml2: New device.
8401         * src/preproc/html2: New preprocessor.
8402         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
8404 2000-08-23  Werner LEMBERG  <wl@gnu.org>
8406         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
8408 2000-08-22  Werner LEMBERG  <wl@gnu.org>
8410         * src/include/lib.h: Provide a fix for IRIX to not include
8411         groff-getopt.h.
8413 2000-08-18  Werner LEMBERG  <wl@gnu.org>
8415         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
8416         since some non-GNU sed programs can't handle null regexps.
8417         * configure, src/preproc/eqn/Makefile.sub,
8418         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
8420         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
8421         bug (string.h and strings.h are both needed according to latest
8422         POSIX standard).
8424         * MORE.STUFF: Added info about unroff and troffcvt.
8426 2000-08-08  Werner LEMBERG  <wl@gnu.org>
8428         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
8429         used before -ms.
8431         * tmac/tmac.man.old: Remove unused number register.
8433         * tmac.doc: Minor documentation fix.
8435 2000-08-07  Paul Eggert  <eggert@twinsun.com>
8437         * src/roff/groff/pipeline.c (is_system_shell):
8438         Fix typo: "monocased_shell" no longer exists.
8440 2000-08-07  Paul Eggert  <eggert@twinsun.com>
8442         Remove FILENAME_MAX limits.
8444         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
8445         that the argument length is less than FILENAME_MAX.
8446         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
8447         Use struct hack to allocate and free file name.
8448         (struct xtmpfile_list): fname is now part of the structure,
8449         not a pointer to another string.
8451 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
8453         * src/include/posix.h: Add a default value for FILENAME_MAX.
8455 2000-08-06  Paul Eggert  <eggert@twinsun.com>
8457         Add support for new BSD-style man pages (with ".Dd" instead of
8458         ".TH"), so that "groff -man" understands both styles, even
8459         when running "groff -man" on a host whose system man page
8460         macros don't support ".Dd".
8462         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
8463         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
8464         in case the system man macros don't define Dd or TH.
8466         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
8467         * tmac/tmac.an: New one-line file.
8468         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
8470 2000-08-06  Werner LEMBERG  <wl@gnu.org>
8472         * src/roff/troff/troff.man: Fixing typos.
8474 Version 1.16.1 released
8475 =======================
8477 2000-07-31  Werner LEMBERG  <wl@gnu.org>
8479         Preparing release 1.16.1.
8481         * REVISION: Revision number set to 1.
8482         * MORE.STUFF: Added info about port to DOS.
8483         * NEWS, win32-diffs: Updated.
8485         * src/include/nonposix.h: Remove first line -- this file is used
8486         in C also.
8488         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
8489         link to it.
8491 2000-07-30  Werner LEMBERG  <wl@gnu.org>
8493         * doc/texinfo.tex: Update to latest version.
8495 2000-06-28  Paul Eggert  <eggert@twinsun.com>
8497         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
8498         commands that fail.  Don't assume that "export a=b" is valid shell
8499         syntax.  This is needed for Solaris 2.5.1.
8501         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
8502         comment about missing Solaris headers.
8504         * PROBLEMS: Add section about problems with Sun Make and VPATH.
8506 2000-06-25  Werner LEMBERG  <wl@gnu.org>
8508         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
8509         SET_BINARY().
8511         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
8513         * win32-diffs: Updated.
8514         * README.WIN32: Added CRs to make all Windows editors happy.
8516         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
8517         src/roff/groff/pipeline.c).
8519 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
8521         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
8522         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
8524 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
8526         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
8527         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
8528         are binary files.
8529         (main): Support non-Posix systems with several different styles of
8530         slash characters in file names.
8532         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
8533         (main) [SET_BINARY]: Switch stdin into binary mode.
8535         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
8536         (main): Support file names with several possible slash-type
8537         characters, as given by DIR_SEPS[] in nonposix.h.
8538         (main) [__MSDOS__]: If renaming the temporary index file fails
8539         because it has more than one dot in its trunk, replace the dot
8540         with an underscore and try again.
8541         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
8542         Newline.
8543         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
8545         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
8546         (File::File): Open the input file in binary mode.  Strip CR
8547         characters from each CR-LF pair.
8548         (xbasename): Support file names with several possible slash-type
8549         characters, as given by DIR_SEPS[] in nonposix.h.
8551         * src/include/Makefile.sub (HDRS): Add nonposix.h.
8553         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
8554         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
8555         [!_POSIX_VERSION]: Define for traditional Unix systems.
8556         (real_output_file::real_output_file): Remove the MSVC-specific
8557         call to popen, use instead POPEN_WT, appropriately defined on
8558         nonposix.h.  #include nonposix.h.
8559         (real_output_file::~real_output_file): Remove the MSVC-specific
8560         call to pclose, a suitable macro is now defined on nonposix.h.
8561         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
8562         and WEXITSTATUS instead of assuming traditional Unix
8563         interpretation of the status returned by pclose.
8565         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
8566         call to popen, use POPEN_RT instead (appropriately defined on
8567         nonposix.h).  #include nonposix.h.
8568         (ps_bbox_request): Open the PostScript file in binary mode.
8569         Close the file after processing it.
8570         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
8571         nonposix.h.
8573         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
8574         A version of run_pipeline that doesn't use `fork'.
8575         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
8576         (system_shell_name, system_shell_dash_c)
8577         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
8578         the ugliness of testing DOS/Windows file names for equality, and
8579         support both stock shells and ports of Unix shells.
8581         * src/roff/groff/groff.cc: #include nonposix.h.
8582         (BSHELL): Definition moved to nonposix.h.
8583         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
8584         instead of a literal "-c".
8585         (xbasename): Support file names with several possible slash-type
8586         characters, as given by DIR_SEPS[] in nonposix.h.
8587         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
8588         of literal strings.
8590         * src/preproc/soelim/soelim.cc: #include nonposix.h.
8591         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
8593         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
8594         pic_tab.h.
8596         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
8598         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
8599         eqn_tab.h.
8601         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
8603         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
8604         P_tmpdir is defined, use it instead of the literal "/tmp".
8605         (remove_tmp_files, add_tmp_file): New functions.
8606         (xtmpfile): Record temporary files and register an atexit function
8607         to delete them explicitly, instead of relying on the OS to do
8608         that, which doesn't work on non-Unix systems.
8610         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
8611         (search_path::search_path): Use PATH_SEP instead of a literal
8612         colon.
8613         (search_path::command_line_dir): Ditto.
8614         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
8615         to support non-Posix systems.
8617         * src/libs/libbib/search.cc: #include nonposix.h.
8618         (search_list::add_file): Open the file in binary mode.
8620         * src/libs/libbib/linear.cc: #include nonposix.h.
8621         (file_buffer::load): Remove \r characters preceding \n from the
8622         loaded buffer.
8624         * src/libs/libbib/index.cc: #include nonposix.h.
8625         (make_index_search_item): Open index_filename in O_BINARY mode.
8626         (index_search_item_iterator::get_tag): Ditto.  Remove \r
8627         characters before \n characters.
8628         (index_search_item::check_files): Open files in binary mode.
8629         (index_search_item::munge_filename): Support DOS-style file names
8630         with backslashes and drive letters, use IS_ABSOLUTE.
8632         * src/devices/grops/ps.cc: #include nonposix.h.
8633         (main) [SET_BINARY]: Switch stdout to binary mode.
8635         * src/devices/grolj4/lj4.cc: #include nonposix.h.
8636         (main) [SET_BINARY]: Switch stdout to binary mode.
8638         * src/devices/grolbp/lbp.cc: #include nonposix.h
8639         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
8641         * src/devices/grodvi/dvi.cc: #include nonposix.h.
8642         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
8643         nonposix.h).
8644         (main) [SET_BINARY]: Switch stdout to binary mode.
8645         [_MSC_VER]: Remove an explicit call to _setmode.
8647         * src/include/nonposix.h: New file.
8649         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
8650         operation when building with DJGPP.
8651         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
8652         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
8653         ENVSETUP.
8655         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
8656         MS-DOS.
8657         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
8658         etc. can include a semi-colon on DOS/Windows.
8659         (depend.temp): Use depend1.temp instead of depend.temp1, to
8660         prevent files from overerwiting each other on 8+3 filesystems.
8662         * gendef.sh (t): Change definition to work with DOS/Windows.
8664         doc/groff.texinfo: Apart of some typo corrections, I also changed
8665         some index entris, to make them more non-ambiguous, and also put
8666         @ignore around some parts that are not yet written, to allow the
8667         Info output be readable.
8669 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
8671         Replaced specific checks for function declarations with a generic
8672         routine taken from GNU bfd.
8674         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
8675         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
8676         * configure.in: Use it.
8677         * src/devices/grolbp/lbp.cc, src/include/lib.h,
8678         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
8679         src/roff/groff/groff.cc: Use it.
8680         * Makefile.in, configure: Updated.
8682 2000-06-07  Paco Andrés Verdú  <pandres@dragonet.es>
8684         * src/devides/grolbp/lbp.h: Removed unused variables.
8686 2000-05-31  Keith Thompson  <kst@sdsc.edu>
8688         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
8689         strncasecmp().
8691 2000-05-31  Werner LEMBERG  <wl@gnu.org>
8693         * aclocal.m4 (GROFF_SRAND): New function to test the return value
8694         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
8695         * configure.in: Use it.
8696         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
8697         * configure, Makefile.in: Updated.
8699         * configure.in: Add test for strncasecmp().
8700         * src/include/lib.h: Use it.
8702 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
8704         * src/preproc/grn/Makefile.sub: Add MLIB.
8706 2000-05-29  Nix  <nix@esperi.demon.co.uk>
8708         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
8710 2000-05-29  Werner LEMBERG  <wl@gnu.org>
8712         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
8714         * PROBLEMS: Small update.
8716         * src/devices/grolbp/lbp.cc: Various small fixes.
8718 2000-05-28  Keith Thompson  <kst@sdsc.edu>
8720         * src/roff/nroff/nroff.sh: Fix main loop syntax.
8722         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
8724 2000-05-25  Werner LEMBERG  <wl@gnu.org>
8726         * man/roff.man: Removed unused macro.
8728 2000-05-24  Werner LEMBERG  <wl@gnu.org>
8730         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
8731         This is needed e.g. if you do
8732         `make distclean; ./configure; make dist'.
8734 Version 1.16 released
8735 =====================
8737 2000-05-23  Werner LEMBERG  <wl@gnu.org>
8739         Adding font CWI (constant width italic) to devdvi.
8741         * font/devdvi/CWI: New file.
8742         * font/devdvi/generate/Makefile: Add generating rule.
8743         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
8744         tmac/tmac.dvi: Use it.
8745         * NEWS: Announce it.
8747         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
8748         * font/devlj4/generate/Makefile: Cosmetic changes only.
8750         * man/groff.man: Removed most of the redundant description of
8751         special characters (which is in groff_char.man).  Added font
8752         translation CB->CR for devdvi.  Other minor fixes.
8754         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
8755         (registered) symbols.
8757 2000-05-22  Werner LEMBERG  <wl@gnu.org>
8759         * doc/Makefile: Added rule for creating info files.
8761         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
8762         AMS font metrics.
8763         * font/devdvi/generate/Makefile: Fixed dependencies.
8765         * font/devps/*: Regenerated.  Heavy changes for Bookman and
8766         NewCentury Schoolbook!
8767         * font/devps/generate/afmname: Will now run with GNU awk.
8768         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
8769         * font/devps/generate/Makefile: Cosmetic changes only.
8771 2000-05-21  Werner LEMBERG  <wl@gnu.org>
8773         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
8774         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
8775         `.SS' now produces a heading with a smaller size than `.SH'. 
8776         Completely formatted.
8777         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
8779         * man/groff.man: Improved table appearance.  Use of `eo' request
8780         to reduce number of doubled backslashes in macro definitions.
8781         Replacing `\e' with `\(rs'.  Other minor fixes.
8783         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
8784         to have correct line number.
8786         * INSTALL: Small improvement.
8788 2000-05-20  Bernd Warken  <bwarken@mayn.de>
8790         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
8791         WL).
8793 2000-05-19  Bernd Warken  <bwarken@mayn.de>
8795         * man/groff.man: Complete update (with a lot of corrections by WL).
8797 2000-05-18  Werner LEMBERG  <wl@gnu.org>
8799         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
8801         * font/*/*: Implement it.
8802         * man/groff_char.man, NEWS: Document it.
8804         * src/include/unix.h: Removed.  It isn't used.
8806         * doc/groff.texinfo: Slight improvements.
8808 2000-05-17  Werner LEMBERG  <wl@gnu.org>
8810         * README, win32-diffs: Small fixes and improvements.
8812 2000-05-16  Werner LEMBERG  <wl@gnu.org>
8814         * FDL: New file (the Free Documentation License version 1.1).
8816         * doc/groff.texinfo: Added many start-up values for gtroff.
8817         Some structural improvements of the source code.
8819 2000-05-15  Werner LEMBERG  <wl@gnu.org>
8821         * src/roff/troff/input.cc: Added small comment about troffrc-end.
8822         * src/roff/troff/troff.man: Added info about troffrc-end.
8824 2000-05-14  Werner LEMBERG  <wl@gnu.org>
8826         * Makefile.in (EXTRADIRS): Fix typos.
8827         (dist): Handle deletion of old .tar.gz file correctly.
8828         (DISTDIRS): Include all tty output devices.
8830         * doc/groff.texinfo: Adding more cross references; countless other
8831         fixes.
8833 2000-05-13  Werner LEMBERG  <wl@gnu.org>
8835         * MORE.STUFF: Added Robert Marks's utilities.
8837 2000-05-12  Werner LEMBERG  <wl@gnu.org>
8839         Added win32 port contributed by Blake McBride
8840         <blake@florida-software.com>.
8842         * README.WIN32, win32-diffs: New files.
8843         * NEWS: Updated.
8845         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
8846         (tmove, tmove2): Added parentheses to avoid compiler warnings.
8847         (change): Removed unused variables.
8849         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
8850         (savebounds): Changed return value from `int' to `void'.
8851         * src/preproc/grn/hdb.cc: Ditto.
8853         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
8854         final backslash in comment to avoid compiler warning.
8856         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
8858         * doc/groff.texinfo: More fixes.
8860 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
8862         * tmac/tmac.doc: Documentation fix.
8864 2000-05-11  Werner LEMBERG  <wl@gnu.org>
8866         * doc/groff.texinfo: Reading the source code shows up a lot of
8867         omissions and incorrect data...  More conversion to @Deffn macros.
8869 2000-05-10  Werner LEMBERG  <wl@gnu.org>
8871         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
8872         dependency.
8874         * src/roff/troff/request.h: Removing unused `no_break_flag'.
8876 2000-05-09  Werner LEMBERG  <wl@gnu.org>
8878         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
8879         improvements.
8881         * doc/groff.texinfo: Extended history section.  More conversion to
8882         @Deffn macros.  More .tr documentation.
8884 2000-05-07  Werner LEMBERG  <wl@gnu.org>
8886         * doc/groff.texinfo: Completed tab section.  Added info about
8887         fields.
8889 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
8891         * PROBLEMS: Describe configure script fix for OS/390 Unix.
8893 2000-05-05  Werner LEMBERG  <wl@gnu.org>
8895         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
8896         LaTeX 2e).
8897         * NEWS: Document it.
8899         * man/troff.man: Minor optical improvements.
8901 2000-05-03  Werner LEMBERG  <wl@gnu.org>
8903         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
8905         * font/*/*: Implement it.
8906         * man/groff_char.man, NEWS: Document it.
8908 2000-05-02  Werner LEMBERG  <wl@gnu.org>
8910         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
8911         expansion.
8912         * NEWS: Document the three new man pages.
8914         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
8915         * configure: Updated.
8917         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
8919 2000-05-01  Werner LEMBERG  <wl@gnu.org>
8921         Added grap support to grog.
8923         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
8924         * src/roff/grog/grog.man: Document it.
8926         * doc/groff.texinfo, NEWS: Add info about grap support.
8928         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
8929         (with slight fixes by me).
8931         * tmac/groff_tmac.man: New file documenting tmac mechanism.
8932         * tmac/Makefile.sub: Add groff_tmac.man.
8933         * man/roff.man: New file giving overview of roff system.
8934         * man/troff.man: A short reference of troff.
8935         * man/Makefile.sub: Add roff.man and troff.man.
8937 2000-04-30  Werner LEMBERG  <wl@gnu.org>
8939         Added grap support to groff.
8941         * src/roff/groff/groff.cc: Implement it.
8942         * src/roff/groff/groff.man: Document it.
8944         * src/devices/grotty/grotty.man: Add cp1047 device.
8945         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
8946         Ditto.
8947         * src/roff/groff/groff.man: Ditto.
8948         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
8949         * doc/groff.texinfo: Ditto.
8951         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
8952         for cp1047.
8954 2000-04-29  Werner LEMBERG  <wl@gnu.org>
8956         * man/groff_char.man: Add `pc' glyph.
8957         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
8958         * tmac/tmac.tty: Add `pc' glyph.
8959         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
8960         we use cp1047 output device.
8962         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
8963         there are still hardcoded latin1->unicode values in utf8's font
8964         definition files.
8965         * configure: Updated.
8966         * NEWS: Minor clarification.  Updated.
8968         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
8969         Unix.
8971 2000-04-28  Werner LEMBERG  <wl@gnu.org>
8973         Adding EBCDIC code page 1047.
8975         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
8976         font/devcp1047/DESC.proto: New files.
8978         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
8979         either ascii/latin1 or cp1047.
8980         * Makefile.in: Use it.
8981         * configure: Updated.
8983         Replacing and/or adding `md' (mathdot) glyph with `pc'
8984         (periodcentered) in all text fonts.
8986         * font/*/*: Change it.
8988 2000-04-27  Werner LEMBERG  <wl@gnu.org>
8990         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
8992         * configure.in: Add check for strings.h.
8993         * src/include/driver.h: Use HAVE_STRINGS_H.
8994         * src/devices/grolbp/lpb.cc: Remove string.h.
8996         * src/include/groff-getopt.h: New file.  It will be used instead of
8997         getopt.h (to be included in lib.h) to avoid endless problems with
8998         picky C++ compilers.
8999         * src/include/lib.h: Use groff-getopt.h.
9000         * src/include/Makefile.sub: Updated.
9002         * configure: Updated.
9003         * Makefile.in: Updated.
9005         * NEWS: Mention EBCDIC support.
9007 2000-04-26  Werner LEMBERG  <wl@gnu.org>
9009         * TODO: Some additions.
9011 2000-04-25  Werner LEMBERG  <wl@gnu.org>
9013         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
9014         of mso request.
9016 2000-04-23  Werner LEMBERG  <wl@gnu.org>
9018         * src/roff/troff/troff.man: Minor fixes.
9020 2000-04-22  Werner LEMBERG  <wl@gnu.org>
9022         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
9023         `.T' string register and the incompatible definition of the `.T'
9024         number register (compared to Unix troff).
9026         * man/groff_char.man: Add some missing characters.
9027         * font/devutf8/NOTES: Update.
9029 2000-04-21  Werner LEMBERG  <wl@gnu.org>
9031         * src/include/htmlindicate.h, src/include/lib.h,
9032         src/include/posix.h: Fix copyright.
9034         * src/include/Makefile.sub: Update.
9036 2000-04-20  Werner LEMBERG  <wl@gnu.org>
9038         * src/roff/troff/input.cc (input_char_description): Removing
9039         superfluous space char.
9041         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
9043         * doc/groff.texinfo: Document EBCDIC.
9045 2000-04-19  Werner LEMBERG  <wl@gnu.org>
9047         Introducing `shc' as the glyph name for the soft hyphen character.
9049         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
9050         font/devlatin1/R.proto: Use it.
9052         * NEWS: Updated.
9054 2000-04-18  Werner LEMBERG  <wl@gnu.org>
9056         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
9057         dependency on ASCII order.
9059 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
9061         * src/libs/libgroff/illegal.c: Added EBCDIC table.
9062         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
9064         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
9065         to increase portability.
9067 2000-04-15  Werner LEMBERG  <wl@gnu.org>
9069         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
9070         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
9071         the generic `\n' if under OS/390 Unix.
9073         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
9075         * configure: Regenerated.
9077 2000-04-14  Werner LEMBERG  <wl@gnu.org>
9079         * doc/groff.texinfo: More conversions to @Deffn.
9081 2000-04-12  Werner LEMBERG  <wl@gnu.org>
9083         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
9084         with `:'.
9086         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
9088 2000-04-10  Werner LEMBERG  <wl@gnu.org>
9090         * doc/groff.texinfo: More conversions to @Deffn.
9092 2000-04-08  Werner LEMBERG  <wl@gnu.org>
9094         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
9095         Updated to latest version (glibc 2.1.3).
9097 2000-04-07  Werner LEMBERG  <wl@gnu.org>
9099         * doc/Makefile (clean): Include more index files.
9100         Add rule texinfo->dvi.
9102 2000-04-05  Werner LEMBERG  <wl@gnu.org>
9104         * doc/groff.texinfo: Added new index `op' for operators.  More
9105         info on end of sentence characters.  More use of @Deffn.
9107 2000-03-30  Werner LEMBERG  <wl@gnu.org>
9109         * */*.man: Adding a note that a whitespace can be inserted between
9110         a command line option and its parameter -- we are using GNU getopt.
9112         * src/roff/groff/groff.man: Add example of `-m mandoc'.
9114 2000-03-28  Werner LEMBERG  <wl@gnu.org>
9116         Correct anachronism of calling the man macro file with `-man'
9117         instead of `-m man' etc.
9119         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
9120         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
9121         load tmac.<package>.
9123         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
9125         * NEWS: Updated.
9127         * doc/groff.texinfo: Updated.
9129         * tmac/groff_man.man: Copyright added.
9131 2000-03-27  Werner LEMBERG  <wl@gnu.org>
9133         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
9134         typeset the request resp. escape name with a tt font -- due to a
9135         bug in texinfo.tex it is necessary to use the `-e' switch with
9136         texi2dvi.
9138         Improving info about usage of groff units.
9140         Other minor fixes.
9142 2000-03-20  Werner LEMBERG  <wl@gnu.org>
9144         * doc/groff.texinfo: Added section about man macro package
9145         (I've basically taken groff_man.man).  Introducing new indices `ma'
9146         for macros/strings and `gl' for glyph names.  Other minor fixes.
9148         * tmac/groff_man.man: Fixed some typos.
9150 2000-03-19  Werner LEMBERG  <wl@gnu.org>
9152         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
9153         Other minor fixes.
9155         * doc/texinfo.tex: New file.
9157 2000-03-18  Werner LEMBERG  <wl@gnu.org>
9159         * doc/groff.texinfo: Improved section on number registers.  Other
9160         minor updates.
9162 2000-03-16  Werner LEMBERG  <wl@gnu.org>
9164         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
9165         synopsis.
9167         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
9168         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
9169         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
9170         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
9172         * src/preproc/grn/grn.man: Better synopsis; added copyright.
9174         * src/roff/grog/grog.man: Updated copyright date.
9176 2000-03-14  Francisco Andrés Verdú  <pandres@dragonet.es>
9178         * configure.in: Added test for strdup.
9180         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
9181         is available.
9183         Replaced dynamic allocation of arrays `[...]' with `new' operator.
9185         Other minor fixes.
9187 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
9189         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
9191 2000-03-11  Werner LEMBERG  <wl@gnu.org>
9193         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
9194         compilers silent.
9195         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
9196         * src/include/lib.h: Remove some spaces.
9198 2000-03-10  Werner LEMBERG  <wl@gnu.org>
9200         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
9201         initializers from arguments (some compilers don't like this).
9203 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
9205         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
9206         used by pic and eqn to tell grohtml where the graphic regions start
9207         and end.
9208         * src/libs/libgroff/Makefile.sub: Use it.
9209         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
9210         graphic_start() and graphic_end() from htmlindicate.cc.
9212 2000-03-09  Werner LEMBERG  <wl@gnu.org>
9214         * tmac/tmac.safer: Will now work correctly in compatibility mode.
9215         * tmac/groff_man.man: More fixes.
9217 2000-03-08  Werner LEMBERG  <wl@gnu.org>
9219         * doc/Makefile: Added texput.log to the `clean' target.
9220         * doc/groff.texinfo: Added info about delimiters for escapes.
9222 2000-03-08  Bernd Warken  <bwarken@mayn.de>
9224         * src/preproc/pic/pic.man: Add info on conversion of pic images to
9225         other graphic formats.
9227 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
9229         * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
9230         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
9231         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
9232         files.
9234 2000-03-07  Werner LEMBERG  <wl@gnu.org>
9236         * doc/groff.texinfo: Spelling fixes.
9238 2000-03-06  Werner LEMBERG  <wl@gnu.org>
9240         * tmac/groff_man.man: Completely revised to cover everything in
9241         tmac.an.
9243         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
9244         Other minor fixings.
9245         * src/roff/troff/env.cc (environment_copy): Improve error message and
9246         fix itoa->i_to_a.
9247         * src/roff/troff/TODO: Updated.
9249         * doc/Makefile: Bug fixes -- this is still provisional, though...
9251         * tmac/eqnrc: Small fixes.
9253 2000-03-05  Abramo Bagnara  <abramo@alsa-project.org>
9255         Adding a request `evc' to copy environments.
9257         * src/roff/troff/env.cc (environment::copy, environment_copy):
9258         Implement it.
9259         * src/roff/troff/env.h: Add prototype.
9261 2000-03-05  Francisco Andrés Verdú  <pandres@dragonet.es>
9263         Adding strsep() -- Solaris 8 doesn't have it.
9265         * configure.in: Test it.
9266         * src/devices/grolbp/lbp.cc: Add code.
9268 2000-03-05  Werner LEMBERG  <wl@gnu.org>
9270         * src/roff/troff/div.cc (macro_diversion::output,
9271         top_level_diversion::output): Fixing an incompatibility with
9272         original troff: \x'0' updates the .a register also.  Thanks to
9273         <Andries.Brouwer@cwi.nl> for pointing this out.
9274         * doc/groff.texinfo: Document it.
9276         * Makefile.in: Create Makefile.dep if necessary before calling the
9277         submake process to avoid warning about nonexistent file.
9279         * NEWS, PROJECTS: Updated.
9281 2000-03-04  Werner LEMBERG  <wl@gnu.org>
9283         * tmac/troffrc: Add tmac.lbp.
9285 2000-03-03  Francisco Andrés Verdú  <pandres@dragonet.es>
9287         * tmac/tmac.lbp: New file.
9288         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
9289         command.
9291 2000-03-03  Werner LEMBERG  <wl@gnu.org>
9293         * Makefile.in: Fixing $(subdir).
9295         * README, NEWS: Small fixes.
9297         * test-groff: Adding path to grolbp.
9299         * configure.in: The (new) file src/xditview/Imakefile.in will be
9300         also configured -- it is now possible to build gxditview in a
9301         directory different from $srcdir.
9303 2000-03-02  Blake McBride  <blake@florida-software.com>
9305         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
9307         * MORE.STUFF: Added website of bell labs and info about plot2dev.
9309 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
9311         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
9312         files.
9314 2000-02-29  Werner LEMBERG  <wl@gnu.org>
9316         Adding GNU getopt to the groff distribution.
9318         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
9319         New files.
9320         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
9321         * aclocal.a4: Remove GROFF_GETOPT function.
9322         * configure.in, Makefile.in, PROBLEMS: Update.
9323         * src/include/lib.h: Replace getopt tests with getopt.h.
9324         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
9326         * doc/groff.texinfo: Further checking/updating.  Adding more index
9327         entries.
9329         * man/groff_out.man: Fix nroff mode activation (for emacs).
9330         * man/groff_font.man: Add missing ligature.
9332 2000-02-28  Werner LEMBERG  <wl@gnu.org>
9334         * doc/groff.texinfo: Further checking/updating.  Adding more index
9335         entries.
9337         * src/devices/grolbp/grolbp.man: Added a comment line at the
9338         beginning of the file (similar to shell scripts) which indicates
9339         that `tbl' should be used as a preprocessor.
9341 2000-02-27  Blake McBride  <blake@florida-software.com>
9343         Adapting groff to MS Visual C++ 6.0 compiler (tested with
9344         Windows NT 4.0).  Uses _MSC_VER define where necessary.
9346         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
9347         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
9348         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
9349         src/include/lib.h, src/libs/libgroff/errarg.cc,
9350         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
9351         src/preproc/refer/label.y, src/preproc/refer/label.cc,
9352         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
9353         src/roff/troff/div.cc, src/roff/troff/env.cc,
9354         src/roff/troff/input.cc, src/roff/troff/node.cc,
9355         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
9356         if_to_a() to avoid name clashes.
9357         * src/include/posix.h: Don't use unistd.h.
9358         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
9359         clause for integrating non-Unix xtmpfile() code.
9360         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
9361         structure; use "rt" for popen() in pipe_source(); add getpid()
9362         dummy function.
9363         * src/roff/troff/node.cc: Use special versions of popen() in
9364         real_output_file() and pclose() in ~real_output_file().
9366 2000-02-27  Werner LEMBERG  <wl@gnu.org>
9368         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
9369         LBP-8 series laser printers).  This code has been contributed by
9370         Francisco Andrés Verdú <pandres@dragonet.es>.
9372         * src/devices/grolbp/*: The grolbp output device.
9373         * font/devlpb/*: The font description files.
9374         * Makefile.in: Add grolpb and devlbp subdirectories.
9376         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
9377         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
9378         typographic fixes.
9380         * doc/groff.texinfo: Further checking/updating.  Adding more index
9381         entries.
9383         * NEWS: Updated.
9385         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
9387         * man/groff_font.man: Adding info about obsolete DESC keywords.
9388         * src/devices/grolj4/grolj4.man: Documenting additional DESC
9389         keywords.
9391 2000-02-26  Werner LEMBERG  <wl@gnu.org>
9393         * src/preproc/grn/grn.man: Added info about the gremlin file format
9394         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
9396 2000-02-25  Werner LEMBERG  <wl@gnu.org>
9398         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
9399         friends to be non-integer.
9401         * src/preproc/grn/grn.man: Document it.
9403         * doc/groff.texinfo: Further checking/updating.  Adding more index
9404         entries.
9406 2000-02-24  Werner LEMBERG  <wl@gnu.org>
9408         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
9409         line thicknesses to be integer multiples of this value.
9411         * src/preproc/grn/grn.man: Commenting out the -s option -- the
9412         corresponding code doesn't work (yet).
9414         * doc/groff.texinfo: Further checking/updating.  Adding more index
9415         entries.
9417 2000-02-23  Werner LEMBERG  <wl@gnu.org>
9419         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
9420         specify line thickness instead of base units.  The new default
9421         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
9422         thick lines respectively.
9424         Removed unused variable `prevval'.
9426         * src/preproc/grn/grn.man: Updated.
9428 2000-02-22  Werner LEMBERG  <wl@gnu.org>
9430         * src/preproc/grn/main.cc: Slight formatting.
9432         * src/roff/groff/groff.man: Formatting fix.
9433         * src/preproc/grn/grn.man: Ditto.
9435         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
9437         * doc/groff.texinfo: Further checking/updating.
9439 2000-02-21  Werner LEMBERG  <wl@gnu.org>
9441         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
9443         * test-groff: Added grn subdir to path.
9445         * doc/groff.texinfo: Some restructing and other small improvements.
9447         * src/roff/groff/groff.cc (help): Fixed info string.
9449 2000-02-20  Werner LEMBERG  <wl@gnu.org>
9451         * doc/meref.me: Fix description of .GS request.
9453         * src/roff/troff/troff.man: Fixing typo.
9455         Adding the `grn' preprocessor for gremlin graphic files.
9457         * src/preproc/grn/*: This is the Berkeley distribution written by
9458         David Slattengren and Barry Roitblat, adapted to groff by Daniel
9459         Senderowicz and Werner Lemberg.
9461         * doc/grnexampl.{me,g}: A sample for grn.
9463         * Makefile.in: Added subdirectory entry for grn.
9465         * src/roff/groff/groff.cc: Added support for grn.  It can be now
9466         called with the switch `-g'.
9468         * src/roff/groff/groff.man: Updated.
9470         * src/roff/grog/grog.{man,pl,sh}: Updated.
9472         * NEWS: Updated.
9474 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
9476         * src/include/lib.h: Added xtmptemplate and made xtmpfile
9477         parametrically polymorphic.
9479         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
9480         and the alterations to xtmpfile.
9481         xtmpfile can be requested to return the filename created
9482         and asked not to unlink the temp file.  The default behaviour
9483         if parameters are absent is exactly the same as before.
9485 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
9487         A new request `length' is available which returns the length of a
9488         string in a number register:
9490         * src/roff/troff/input.cc (length_macro): Implement it.
9491         * src/roff/troff/input.cc (init_input_requests): Register it.
9493 2000-02-11  Werner LEMBERG  <wl@gnu.org>
9495         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
9496         of the `substring' request.
9498         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
9499         request.
9501         * src/roff/troff/TODO, NEWS: Updated.
9503 2000-02-09  Werner LEMBERG  <wl@gnu.org>
9505         * src/roff/groff/groff.man: Added an example.
9507 2000-02-06  Werner LEMBERG  <wl@gnu.org>
9509         I've considerably modified the directory structure of the
9510         distribution to get a more vertical layout.  For example, the number
9511         of top level directories has been reduced from 42 to 6.
9513         As a consequence, many changes, especially to the makefiles, were
9514         necessary:
9516         * The makefile variables `top_builddir' and `top_srcdir' have been
9517         introduced.  Virtually all relative paths have been replaced with
9518         absolute ones using these two variables.
9520         * Dependencies (in the files `Makefile.dep') are no longer part of
9521         the distribution.  Instead, they are created during a `make install'
9522         in the build directory.
9524         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
9525         make `top_srcdir' and `top_builddir' absolute.
9527         Some other changes:
9529         * Man pages now depend on the files `VERSION' and `REVISION'.
9531         * The added shell script `mkinstalldirs' will replace `mkdir' in
9532         almost all cases.
9534         * VERSION: Version number increased to 1.16.
9536 2000-02-04  Werner LEMBERG  <wl@gnu.org>
9538         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
9540         * Makefile.in: Removed $(tmac_m) since it is no longer needed
9541         (after an update of the mm stuff).
9543         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
9545 2000-02-03  Werner LEMBERG  <wl@gnu.org>
9547         The .psbb request will now also accept Mac PS images (i.e. using LF
9548         as the EOL character).
9550         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
9551         (with slight modifications).
9552         * troff/input.cc (do_ps_file): Use it.
9554         * test-groff: Add grohtml and grolj4 output devices to PATH.
9556 2000-01-30  Werner LEMBERG  <wl@gnu.org>
9558         * NEWS, MORE.STUFF: Updated.
9560 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
9562         Add the `srand' command to pic.
9564         * pic/lex.cc, pic/pic.y: Implement it.
9565         * pic/pic.man: Document it.
9566         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
9568 2000-01-30  Werner LEMBERG  <wl@gnu.org>
9570         Add a new request `.psbb'.  This does exactly what the external
9571         program psbb did.  It scans a PostScript image file for a
9572         %%BoundingBox comment and extracts the bounding box values (in
9573         PostScript units) which are then stored in the four new (read-only)
9574         number registers `llx', `lly', `urx', and `ury'.
9576         This will allow the usage of the .PSPIC macro without worrying
9577         about unsafe behaviour of groff, i.e., it will work without the
9578         `-U' switch of groff.
9580         * troff/input.cc: Implement it.
9581         * tmac/tmac.pspic: Use it.
9582         * troff/troff.man, grops/grops.man, NEWS: Document it.
9583         * psbb/*, Makefile.in: Remove it since it is no longer needed.
9585         This is bloody C code simply adapted from psbb.c!  Any improvements
9586         welcome.
9588 2000-01-29  Werner LEMBERG  <wl@gnu.org>
9590         * man/groff_font.man: Minor clarifications.
9592         * NEWS: Updated.
9594 2000-01-28  Werner LEMBERG  <wl@gnu.org>
9596         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
9598 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
9600         * man/groff_font.man: Brought up to date regarding tcommand
9601         extensions.
9602         * libgroff/font.cc: Handle everything after `--' as a comment
9603         in the font files.
9604         * devps/*: Added comment delimiter inside devps font files.
9606 2000-01-28  Werner LEMBERG  <wl@gnu.org>
9608         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
9609         \fC...\fP (which now works as expected).
9611         * troff/troff.man: Fix typo.
9613 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
9615         Completed the pass_filenames implementation in troff.
9617         * libdriver/input.cc: Will read the new `F' tcommand.
9618         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
9619         * troff/input.cc: Use it.
9621 2000-01-26  Werner LEMBERG  <wl@gnu.org>
9623         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
9624         font will now be updated even if an invalid font is selected.
9626 2000-01-24  Werner LEMBERG  <wl@gnu.org>
9628         * doc/homepage.ms: Updated for new tmac.arkup.
9630         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
9632         * tmac/tmac.arkup: Cleanup.
9634         Added `\&' to .HTML macro to `leave vertical mode', so to say.
9636         Removed obsolete .LINK macro completely.
9638         The macros .URL, .FTP, and .MAILTO now accept a third argument which
9639         will be immediately appended to the second argument (to be used with
9640         punctuation, for example).
9642         Disabled .CDFTP macro temporarily for security reasons.
9644         * tmac/groff_markup.man: Complete revision for latest changes in
9645         tmac.arkup -- note that it does not yet format correctly with
9646         grohtml :-(
9648 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
9650         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
9651         * devutf8/R.proto: Add mappings for wp, lh, rh.
9652         * devutf8/NOTES: Updated.
9654 2000-01-23  Werner LEMBERG  <wl@gnu.org>
9656         * doc/groff.texinfo: Updated version/copyright info.
9658 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
9660         Added support for two new directives in device descriptions:
9661         `pass_filenames' (to pass the input file name to the output device)
9662         and `use_charnames_in_special' (to support e.g. accented characters
9663         in the `X' request).
9665         * include/font.h, troff/charinfo.h: Declare it.
9667         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
9669         * devhtml/DESC: Use it.
9671         * troff/input.cc: New function encoded_char.
9673         * troff/token.h: Add test for `specialness'.
9675 2000-01-21  Werner LEMBERG  <wl@gnu.org>
9677         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
9678         mistake from the list of files to be installed.
9680 2000-01-18  Werner LEMBERG  <wl@gnu.org>
9682         * README: Added info how to apply patches.
9684 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
9686         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
9688 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
9690         * troff/input.cc: Add support for troffrc-end.
9692         * tbl/main.cc: Altered to issue table-start and table-end special
9693         characters if using the html device.
9695         * devhtml/*: Modified font files to incorporate html encoding of
9696         characters.
9698         * tmac/groff_markup.man: New file documenting tmac.arkup.
9700         * tmac/troffrc-end: New file.  This is invoked after all user
9701         specified macros.  Currently used by the html device to include
9702         tmac.html.  Thus no need for users to specify -mhtml anymore.
9704         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
9705         (MAN7): Add groff_markup.man.
9707         * tmac/tmac.an, tmac/tmac.html: Small html updates.
9709         * tmac/troffrc: tmac.arkup will now be called for the html device.
9711         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
9712         extra device specific information about fonts.
9714         * doc/homepage.ms: New file.  It is an example how an HTML home page
9715         could look like with grohtml.
9717         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
9719 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
9721         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
9722         of Im, Re.
9724         * devutf8/NOTES: Updated.
9726 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
9728         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
9729         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
9730         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
9731         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
9732         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
9733         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
9734         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
9735         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
9736         warnings.
9738         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
9740 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
9742         grolj4: Paper size will be searched case-insensitively.
9744         * include/lib.h: Add check for strcasecmp().
9745         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
9746         * configure.in: Check for strcasecmp().
9748 2000-01-11  Werner LEMBERG  <wl@gnu.org>
9750         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
9751         `REVISION'.
9753 2000-01-10  Werner LEMBERG  <wl@gnu.org>
9755         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
9756         revision scheme.
9758         Add a new read-only register, `.Y', which contains the groff
9759         revision.
9761         * troff/input.cc (init_input_requests): Define it.
9762         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
9763         * doc/groff.texinfo, troff/troff.man: Document it.
9765         * libgroff/Makefile.sub (version.cc): Add definition of
9766         `Version_string[]', consisting of `<major>.<minor>.<revision>'
9767         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
9768         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
9769         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
9770         troff/input.cc, pfbtops/pfbtops.c: Use it.
9772 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
9774         Add a revision scheme to the groff package.
9776         * REVISION: New file.
9777         * libgroff/Makefile.sub (version.cc): Use it to define
9778         `revision_string[]'.
9779         * grops/psrm.cc: Use revision_string (converted to an unsigned
9780         integer) in constructor of resource_manager.
9782 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
9784         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
9785         files.
9786         * Makefile.in (DEVDIRS): Add devutf8.
9787         * grotty/tty.cc: Include device.h.
9788         (glyph): Change type of `code' to `unsigned int'.
9789         (tty_printer): New field is_utf8.  Constructor takes device argument.
9790         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
9791         (tty_printer::add_char): Change type of first arg to `unsigned int'.
9792         (tty_printer::put_char): New function.
9793         (tty_printer::end_page): Use put_char() instead of ::putchar().
9794         (make_printer): Pass device to tty_printer constructor.
9795         * nroff.sh: Determine default device by calling 'locale'.  As a
9796         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
9797         Recognize UTF-8 locales.
9798         * tmac/eqnrc: Recognize utf8 like latin1.
9799         * tmac/troffrc: Device utf8 needs tmac.tty.
9801 2000-01-07  Werner LEMBERG  <wl@gnu.org>
9803         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
9805 2000-01-07  Paul Eggert  <eggert@twinsun.com>
9807         Add a new predefined writeable number register, `year',
9808         which contains the current year.
9810         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
9811         * tmac/tmac.s: Use it.
9812         * troff/input.cc (init_registers): Initialize it.
9814 2000-01-06  Werner LEMBERG  <wl@gnu.org>
9816         * PROBLEMS: Fixed typo.
9818 2000-01-04  Paul Eggert  <eggert@twinsun.com>
9820         * PROBLEMS: Add Y2k advice for the yr number register.
9822 2000-01-03  Paul Eggert  <eggert@twinsun.com>
9824         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
9826 2000-01-02  Werner LEMBERG  <wl@gnu.org>
9828         * tmac/tmac.arkup: Slight modification of macros to provide better
9829         appearance for non-HTML formats.
9831 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
9833         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
9834         does not automatically translate to malloc(n) on all OSes
9835         (e.g., SunOS) so do it explicitly.  Also, check the returned
9836         value.
9838 2000-01-01  Werner LEMBERG  <wl@gnu.org>
9840         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
9842         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
9843         expects this variable
9845 2000-01-01  Gaius Mulley  <gaius@glam.ac.uk>
9847         * doc/Makefile: Added instructions to create HTML and text
9848         versions of some files.
9850 1999-12-31  Werner LEMBERG  <wl@gnu.org>
9852         * Updated INSTALL.gen.
9854         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
9855         better resp. correctly with non-HTML devices.
9857 Version 1.15 released
9858 =====================
9860 1999-12-28  Werner LEMBERG  <wl@gnu.org>
9862         * NEWS, VERSION: Changed to 1.15
9864 1999-12-27  Paul Eggert  <eggert@twinsun.com>
9866         * nroff/nroff.man: -S is safer, not safe.
9868         * groff/groff.cc (main): Use `safer', not `safe', in variable
9869         names.  This does not change the behavior.
9871         * troff/input.cc (main): Likewise.
9873         * nroff/nroff.sh: Likewise.
9875         * troff/input.cc (prepend_string): New function.
9876         (main): Prepend -msafer, so that we check macro libraries for
9877         safety.
9879         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
9881 Version 1.14 released
9882 =====================
9884 1999-12-26  Werner LEMBERG  <wl@gnu.org>
9886         * NEWS, VERSION: Changed to 1.14.
9888 1999-12-24  Werner LEMBERG  <wl@gnu.org>
9890         * refer/refer.cc: Fixing the last fix.
9892 Version 1.13 released
9893 =====================
9895 1999-12-23  Werner LEMBERG  <wl@gnu.org>
9897         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
9898         number disappear.
9900         * NEWS: Updated.
9902         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
9904         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
9905         document conventions, the version number must be a real.
9907 Version 1.12.1 released
9908 =======================
9910 1999-12-22  Werner LEMBERG  <wl@gnu.org>
9912         * VERSION: Changed to 1.12.1.
9914 1999-12-22  Alan Rooks  <arooks@istar.ca>
9916         * refer/refer.cc (do_file): Slight modification to satisfy the
9917         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
9918         UnixWare 7.1.
9920 1999-12-20  Werner LEMBERG  <wl@gnu.org>
9922         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
9923         notices.
9925         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
9926         list of unsafe requests.
9928         * pic/pic.man: Fixed a typo.
9930         * man/groff_out.man: Fixed a typo.
9932 1999-12-18  Werner LEMBERG  <wl@gnu.org>
9934         * Makefile.in: Doc fixes.
9936 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
9938         * groff/groff.cc: Missing `U' option added to getopt().
9940         * troff/troff.man: Missing `U' option added to synopsis.
9942 Version 1.12 released
9943 =====================
9945 1999-12-14  Werner LEMBERG  <wl@gnu.org>
9947         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
9948         to the synopsis.
9950         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
9951         with the more appropriate terms `safer' and `unsafe'.
9953         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
9954         sys_nerr and sys_errlist[].
9956         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
9958         * pic/pic.y, pic/pic.cc: Added check for fmod().
9960 1999-12-13  Werner LEMBERG  <wl@gnu.org>
9962         * VERSION: Changed to 1.12.
9964         Here some patches from various sources; most of them taken from
9965         the Debian distribution.
9967         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
9968         tmac/Makefile.sub: New files copied directly from the NetBSD
9969         distribution.  Probably, some additional adaptation later on is
9970         necessary...
9972         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
9973         of unsafe requests.
9975         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
9976         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
9977         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
9978         (`-S') is now the default.
9980         * README, NEWS: Updated.
9982 1999-12-09  Werner LEMBERG  <wl@gnu.org>
9984         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
9986         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
9988 1999-12-06  Werner LEMBERG  <wl@gnu.org>
9990         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
9991         grief than relief today.  Additionally, it is against the GNU
9992         coding standards.
9994         * configure: Recreated.
9996 1999-12-05  Werner LEMBERG  <wl@gnu.org>
9998         * configure.in: Added GROFF_LIBM.
10000         * configure: Recreated.
10002         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
10003         necessary.
10005         * Makefile.in: Added definition of $(LIBM).
10007         * Makefile.comm (LIBM): Removed.
10009         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
10011 1999-12-03  Gaius Mulley  <gaius@glam.ac.uk>
10013         * doc/Makefile: Added rule for generation pic.html.
10015         (clean): Files produced by grohtml will be removed also.
10017         * doc/pic.ms: Small fix.
10019         * tmac/tmac.html: Fixed suppression of headers.
10021 1999-11-16  Gaius Mulley  <gaius@glam.ac.uk>
10023         * tmac/tmac.html: Fixing horizontal arrows.
10025         Turning off hyphenation.
10027         * tmac/tmac.an: Improved support for grohtml; better indentation,
10028         no footers/headers.
10030 1999-10-31  Gaius Mulley  <gaius@glam.ac.uk>
10032         * tmac/tmac.arkup: Added CDFTP macro
10034         * tmac/tmac.html: All headers are turned off for ms, me, and mm
10035         macros.
10037         * tmac/troffrc: Some additions for HTML stuff.
10039 1999-10-06  Gaius Mulley  <gaius@glam.ac.uk>
10041         * tmac/tmac.html: Small changes.
10043 1999-09-26  Werner LEMBERG  <wl@gnu.org>
10045         * doc/groff.texinfo: Minor fixes.
10047 1999-09-26  Gaius Mulley  <gaius@glam.ac.uk>
10049         * devhtml/TR: Changed spacewidth to 3.
10051         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
10053         * tmac/tmac.html: Moved markup macros to tmap.arkup.
10055         * tmac/tmac.arkup: New file.
10057         * grohtml/ChangeLog: New file.
10059 1999-09-16  Werner LEMBERG  <wl@gnu.org>
10061         * doc/groff.texinfo (Common Features): Added Copying chapter.
10062         Changed format to @smallbook.
10064 1999-09-15  Werner LEMBERG  <wl@gnu.org>
10066         * NEWS: Added info about groff.texinfo.
10068         * doc/groff.texinfo: Will now compile (using texi2dvi) without
10069         warning messages.
10071 1999-09-14  Werner LEMBERG  <wl@gnu.org>
10073         * groff/groff.man: More updates.
10075 1999-09-13  Werner LEMBERG  <wl@gnu.org>
10077         * doc/groff.texinfo: New file.  This manual is still very
10078         rudimentary.  It has been originally contributed by Trent
10079         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
10080         additions by me.
10082         * INSTALL: Added information about the `doc' subdir
10084         * troff/troff.man: Minor fixes.
10086         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
10087         reordered options.
10089         * troff/input.cc (usage): Added missing `-ffam' to usage message.
10091         * Makefile.in (dist): groff-$(version).tar.gz must be removed
10092         also, otherwise it is included itself in another call of `make
10093         dist'.
10095         * groff/groff.cc (synopsis): Removed superfluous space.
10097         * PROJECTS, PROBLEMS, NEWS: Updated.
10099         * VERSION: Updated to 1.12beta.
10101         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
10103         * README: Updated: Included documentation about CVS repository,
10104         mailing lists, and daily snapshots.
10106         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
10108 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
10110         * tmac/tmac.an: If the tag didn't fit into the space that the
10111         macro `TP' specifies, the rest of the tag went into the space for
10112         the next line.
10114 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
10116         * grolj4/lj4.cc: Added duplex printing (option `-d').
10118         * grolj4/grolj4.man: Document duplex printing.
10120 1999-09-12  Werner LEMBERG  <wl@gnu.org>
10122         * doc/Makefile (pic.ps): Fixed rule which caused problems with
10123         non-GNUish sed programs.
10125         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
10126         definition.
10128         * configure.in (LIBS): Added `-lc'
10130         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
10132         * pic/tex.cc (solid_arc): Casting M_PI to double.
10134         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
10136         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
10137         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
10138         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
10140         * groff/groff_man.man: New file.  This manual page was originally
10141         written for the Debian GNU/Linux system by Susan G. Kleinmann
10142         <sgk@debian.org>.
10144         * eqn/list.cc (list_box::compute_metrics,
10145         list_box::compute_sublist_width): Removed variable declaration to
10146         avoid shadowing warnings.
10148         * grops/psrm.cc (resource_manager::process_file): Ditto.
10150         * tfmtodit/tfmtodit.cc (main): Ditto.
10152         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
10153         to avoid shadowing warnings.
10155         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
10156         shadowing loop variable.
10158         * groff/groff.man, troff/troff.man: Added doc about grohtml.
10160 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
10162         New grohtml frontend to convert groff input to html.
10164         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
10166         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
10168         * tmac/eqnrc: Added html device.
10170         * tmac/tmac.html: New file.
10172         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
10173         (troff_output::start_picture, troff_output::finish_picture),
10174         tbl/main.cc (process_input_file):
10175         Surrounded output with `graphics_start' and `graphics_end' so that
10176         the html driver can identify non-text portions.
10178         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
10179         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
10180         grotty/tty.ps (tty_printer::set_char): Additional parameter
10181         `name'.
10183         * include/printer.h: Class printer: New function
10184         set_char_and_width; new variables (is_char_named, is_named_set,
10185         named_command, named_char_s, named_char_n) to hold information
10186         about named characters -- needed by the html driver.
10188         * libdriver/printer.cc (printer::set_ascii_char,
10189         printer::set_special_char): Use set_char_and_width.
10191         * devhtml/*: New device files for html driver.
10193         * grohtml/*: New driver grohtml.
10195 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
10197         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
10198         default strings.
10200 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
10202         * libgroff/string.cc (search): Small fix to test against NULL
10203         pointer.
10205 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
10207         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
10208         \b'abc') were stacked in reverse order when processed in a
10209         diversion.
10211         * troff/node.h: Added `*last' to struct `node' to make the above
10212         fix work.
10214         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
10215         The default scale for the 'f' and 't' graphics functions were 'm'
10216         rather than 'u' (i.e., no scaling).
10218 1999-09-11  Peter Miller  <peterm@jna.com.au>
10220         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
10221         do_file), soelim/soelim.man: Added `-I file' option to soelim,
10222         defining include paths.
10224         * soelim/soelim.cc (include_path_append): New function.
10226 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
10228         * tbl/main.cc (process_options): Unix (at least Documenter's
10229         Workbench) tbl allows arbitrary non-alpha characters between
10230         options.
10232 1999-09-11  Paul Eggert  <eggert@twinsun.com>
10234         Y2k fixes.  Don't assume that the current year precedes 2000.
10236         * doc/meref.me: Add \n(y2, \n(y4.
10238         * tmac/doc-common (Yr): New number register.
10239         (Dd): Don't assume current year precedes 2000.
10241         * tmac/tmac.e (td): Likewise.
10242         (y2, y4): New number registers.
10244         * pic/pic.man: Update reference for pic paper to May, 1991
10245         version.
10247 1999-09-11  Werner LEMBERG  <wl@gnu.org>
10249         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
10250         Removed quotation marks which prevented correct expansion of
10251         $(tmac_wrap).
10253         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
10255 1999-09-10  Werner LEMBERG  <wl@gnu.org>
10257         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
10258         `config.cache'.
10260         * Removed configure.old.
10262 1999-08-31  Werner LEMBERG  <wl@gnu.org>
10264         * VERSION: Updated to 1.11.1
10266 1999-05-27  Werner LEMBERG  <wl@gnu.org>
10268         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
10270         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
10271         added quotations around $(tmac_wrap) to avoid syntax error if
10272         variable is empty.
10274         * configure: Newly generated using autoconf 2.13.
10276         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
10278 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
10280         * README, PROJECTS, NEWS, INSTALL, VERSION, 
10281         doc/Makefile. doc/pic.ms, groff/groff.man:
10282         Prepare for 1.11 release.  No code changes.
10283         Documentation for pic added (doc/pic.ms).
10285 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
10287         * Version 1.10 released.
10289 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
10291         * afmtodit/afmtodit.pl: Avoid comment on first line.
10293 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
10295         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
10296         * configure.in: Call it.
10298         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
10299         (distfiles): Doesn't depend on config.log or config.cache.
10301 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
10303         * grog/grog.sh: Use print "" rather than print in END rule.
10305 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
10307         * tbl/main.cc (process_data): Don't give error for excess data
10308         entries that are comments.
10310 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
10312         * tbl/main.cc (process_data): Fix case where new for-scope rules
10313         silently change meaning of code.
10315 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
10317         * troff/env.cc (hyphenate): Loop over all consecutive sequences
10318         of non-zero hyphenation codes.
10320 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
10322         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
10324 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
10326         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
10328 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
10330         * tmac/tmac.andoc: Make it work in compatibility mode.
10332         * refer/token.h (token_info::is_range_sep): New function.
10333         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
10334         * refer/ref.cc (reference::output): More sophisticated check for
10335         multiple pages.
10337         * devps/prologue.ps (MANUAL): New procedure.
10338         * grops/ps.cc (main): New -m option.
10339         (usage): Include -m.
10340         (ps_printer::~ps_printer): Implement -m.
10342         * aclocal.m4 (GROFF_G): New macro.
10343         * configure.in: Call it.
10344         * Makefile.in (g): Provided by configure.
10346         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
10348         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
10349         translations.
10351         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
10352         (tmac_m, tmac_s): Deleted.
10353         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
10354         tmac_s_prefix): New variables.
10355         (MDEFINES): Change accordingly.
10356         * Makefile.comm (.man.n): Use new TMAC_* variables.
10357         * configure.in (GROFF_TMAC): Call.
10358         * aclocal.m4 (GROFF_TMAC): Define.
10359         * tmac/Makefile.sub (stamp_wrap): New target.
10360         (install_data, uninstall_sub): Handle macro wrapping.
10362 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
10364         * tbl/main.cc (main): Ignore -T option.
10366 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
10368         * devlj4/generate/special.map: Add definition of \(nb.
10370         * tmac/tmac.dvi: Add definition of \(nb.
10372         * troff/dictionary.c (dictionary::dictionary): association::v gets
10373         initialized by association::association.
10375         * tmac/Makefile.sub: Avoid using temporary files when installing.
10377         * troff/env.cc (environment::set_font): Make bad font number a
10378         warning.
10380         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
10382         * Makefile.in (datadir): Use share rather than lib.
10384         * groff/groff.cc (basename): Rename to xbasename.
10386 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
10388         * Makefile (CCLIBS): Don't use.
10389         * Makefile.ccpg: Likewise.
10391         * acgroff.m4: Rename to...
10392         * aclocal.m4: Modify extensively for autoconf 2.
10393         * configure.in: Likewise.
10394         * Makefile.in: Likewise.
10396         * groff/pipeline.c (const): Declare as empty if __STDC__ not
10397         defined.
10398         (xstrsignal): Check for definition of NSIG. Conditionalize
10399         on SYS_SIGLIST_DECLARED.  Make return type const.
10401 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
10403         * troff/input.cc (interpolate_macro): Rephrase missing space
10404         warning.
10406 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
10408         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
10409         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
10410         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
10411         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
10412         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
10413         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
10414         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
10415         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
10416         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
10417         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
10418         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
10419         Fix 'for' scoping.
10421 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
10423         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
10424         string_iterator.
10425         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
10426         file.
10427         (macro_iterator::macro_iterator): Add additional argument.
10429 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
10431         * troff/div.cc (vertical_size::vertical_size): In place of integer
10432         specifying line spacing use cunits specifying post vertical
10433         space.
10434         (macro_diversion::output, top_level_diversion::output): Likewise.
10435         * troff/div.h: Change declarations accordingly.
10436         * troff/env.cc (pending_output_line): Replace ls field by post_vs
10437         field.
10438         (pending_output_line::pending_output_line,
10439         pending_output_line::output, environment::output,
10440         environment::output_line, environment::output_title,
10441         environment::hyphenate_line):  In place of
10442         integer specifying line spacing use cunits specifying post vertical
10443         space.
10444         (environment::environment): Add post_vertical_spacing and
10445         prev_post_vertical_spacing arguments.
10446         (environment::get_post_vertical_spacing): New function.
10447         (environment::total_post_vertical_spacing): New function.
10448         (environment::post_vertical_spacing): New function.
10449         (init_env_requests): Initialize pvs request and .pvs register.
10450         * troff/env.h: Change declarations.
10452 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
10454         * tmac/tmac.pspic: Immediately remove the temporary file.
10456 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
10458         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
10459         height is specified.
10461 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
10463         * tbl/table.c (struct vertical rule, class table_entry): Use int
10464         not short for start_row and end_row.
10466 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
10468         * troff/input.cc (trapping_blank_line, blank_line_macro): New
10469         functions.
10470         (diverted_space_node::reread, process_input_stack): Call
10471         trapping_blank_line() rather than blank_line().
10472         (init_input_requests): Bind "blm" to blank_line_macro().
10474         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
10476 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
10478         * troff/env.cc (environment::possibly_break_line): Require that
10479         width total excluding width of final space node be greater than
10480         the target text length.
10482 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
10484         * troff/node.cc (kern_pair_node::vertical_extent): New function.
10486 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
10488         * troff/node.cc (charinfo_node): New class.
10489         (glyph_node, composite_node): Derive from charinfo_node.  Change
10490         member functions accordingly.
10492 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
10494         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
10496 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
10498         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
10500         * devps/generate/textmap (notsubset): Add.
10502         * tmac/tmac.a4: New file.
10504 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
10506         * pic/main.cc (had_parse_error): New variable.
10507         (do_picture, do_whole_file): Set had_parse_error if yyparse()
10508         returns non-zero.
10509         (main): Return 1 if had_parse_error is true.
10511 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
10513         * grolj4/lj4.cc (main): Avoid use of strtoul.
10515 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
10517         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
10518         iso_8859_1 or $LESSCHARSET is latin1.
10520 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
10522         * hpftodit: New directory.
10523         * Makefile.in (CCPROGDIRS): Add hpftodit.
10524         * devlj4/generate: New directory.
10526 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
10528         * configure.in: Don't use AC_VFORK.
10529         * groff/pipeline.c (run_pipeline): Use fork() always.
10531 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
10533         * grops/ps.cc (main): Use %1 not %s in error message for -w.
10535         * Makefile.in (CCPROGDIRS): Add grolj4.
10536         (DEVDIRS): Add devlj4.
10537         * grolj4, devlj4: New directories.
10538         * tmac/troffrc: Handle lj4.
10539         * tmac/tmac.lj4: New file.
10541 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
10543         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
10545 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
10547         * troff/input.cc (do_if_request): At end of second string, switch
10548         environments before getting next token.
10550 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
10552         * devps/psstrip.sed: Split rule that strips whitespace on either
10553         side of delimiters.
10555 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
10557         * troff/node.h (font_family::make_definition): Add return value to
10558         declaration.  * troff/symbol.h (symbol::operator==,
10559         symbol::operator!=): Likewise.
10561 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
10563         * groff/groff.cc (main, help, synopsis): Handle -S.
10564         (possible_command::insert_arg): New function.
10566         * tmac/tmac.safer: New file.
10567         * tmac/msafer.man: New file.
10568         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
10570 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
10572         * pic/pic.h, pic/main.cc (safer_flag): New variable.
10573         * pic/pic.y (placeless_element): Avoid unsafe operations if
10574         `safer_flag' is set.
10575         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
10577 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
10579         * eqn/lex.cc (get_token): Put call to add_context() in block to
10580         work around Sun C++ 4.0 bug.
10582         * include/stringclass.h (operator +): Use ?: instead of `if' to
10583         work around Sun C++ 4.0 bug.
10585 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
10587         * tbl/main.cc (process_format): Accept - as a synonym for the _
10588         key letter.
10590         * libbib/index.cc (minus_one): Don't declare as const.
10592 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
10594         * troff/input.cc (get_char_for_escape_name): Push back a newline.
10596 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
10598         * troff/input.cc (write_macro_request): New function.
10599         (init_input_requests): Bind write_macro_request to writem.
10601 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
10603         * tmac/tmac.s (@EN): Turn filling back on even if there was no
10604         equation.
10606         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
10608         * tmac/tmac.s (@TS): Renamed from TS.
10609         (TS): Call LP then TS again.
10610         (cov*ab-init): Alias @TS to TS.
10612         * tmac/tmac.s: Allow QP or RS to initialize.
10614         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
10615         Move initializations of PS and LL here.
10616         (par@init): Don't initialize HY.  Avoid changing environment 0.
10617         (par*env-init): Don't all par@reset.
10619 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
10621         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
10623 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
10625         * Makefile.in (MDEFINES): Add LDFLAGS.
10626         (LDFLAGS): Add definition line.
10628 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
10630         * troff/input.cc (get_optional_char): Split off error check into...
10631         (check_missing_character): New function.
10632         * troff/token.h: Declare it.
10633         * troff/env.cc (margin_character): Don't call get_optional_char.
10634         Only call tok.next() after making the node.
10636         * include/lib.h (getopt): Make 2nd argument char *const *.
10638 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
10640         * nroff/conftest.sh: Deleted.
10642 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
10644         * pic/make-dos-dist: Deleted.
10646 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
10648         * devps/psstrip.sed: Strip comments before stripping trailing
10649         white space.
10651 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
10653         * Version 1.09 released.
10655 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
10657         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
10659 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
10661         * libgroff/font.cc (font::load_desc): Fix typo in error message.
10663 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
10665         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
10666         about returning without a value.
10668         * troff/charinfo.h (charinfo::get_special_translation): Cast
10669         TRANSLATE_NONE to int.
10671         * refer/token.cc (lookup_token, store_token): Remove bogus loop
10672         test.  Fix test so that it works with n unsigned.
10674         * pic/pic.y (defaults_table): Fully bracket initializer.
10675         * pic/lex.cc (lookup_keyword): Likewise.
10676         * eqn/lex.cc (token_table, def_table): Likewise.
10677         * eqn/box.cc (param_table): Likewise.
10678         * troff/input.cc (warning_table): Likewise.
10679         * libgroff/font.cc (table): Likewise.
10680         * grops/ps.cc (ps_printer::special): Likewise.
10681         * grops/psrm.cc (resource_manager::process_file): Likewise.
10682         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
10683         * refer/command.cc (command_table): Likewise.
10684         * addftinfo/addftinfo.cc (param_table): Likewise.
10686         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
10687         about temp's being unused.
10688         (unused): New function.
10690         * groff/pipeline.cc: Declare c_fatal.
10692         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
10693         uchar.
10695         * libbib/index.cc (index_search_item::load): Prevent compiler
10696         warnings about fd_closer's being unused.
10697         (unused): New function.
10699 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
10701         * troff/input.cc (copy_mode_error): Make `prefix' static.
10702         Fix typo.
10704         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
10705         defined.
10706         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
10707         HAVE_CC_OSFCN_H and modify accordingly.
10709         * troff/input.cc (init_charset_table): radicalex overlaps
10710         horizontally.
10712         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
10713         udodo!hans@relay.NL.net).
10714         * groff/configure.in: Call it.
10716         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
10717         * groff/configure.in: Call it.
10718         * include/lib.h: Conditionalize declaration of pclose.
10720         * troff/div.cc (last_page_number): New global variable.
10721         (top_level_diversion::begin_page): Exit if we just printed the
10722         last page.
10723         * troff/div.h (last_page_number): Declare it.
10724         * troff/input.cc (parse_output_page_list): Set last_page_number.
10726         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
10727         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
10728         tmac/tmac.X: Likewise.
10729         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
10730         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
10732 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
10734         * tmac/doc-ditroff (hK): Remove groff specific code which
10735         prevented page-breaks between separate manual entries.  If this is
10736         the first page, don't set the page number to 1.
10738         * acgroff.m4 (GROFF_POSIX): New macro.
10739         * configure.in: Use it.
10741         * troff/node.cc (class real_output_file,
10742         real_output_file::real_output_file,
10743         real_output_file::~real_output_file): Conditionalize use of
10744         popen/pclose on POPEN_MISSING.
10745         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
10746         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
10747         (pipe_source): Similarily.
10749         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
10751         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
10752         presence of declarations by trying to compile example with
10753         conflicting declarations.  (gcc only gives a warning for missing
10754         declarations.)
10756 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
10758         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
10759         (from Ulrich Lauther).
10761 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
10763         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
10765 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
10767         * indxbib/indxbib.cc (write_hash_table): Add code for case where
10768         pointers and ints have different sizes.
10770 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
10772         * tmac/tmac.s (par*env-init): Call par@reset.
10774 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
10776         * tmac/tmac.s (@IP): Switch to a new environment when diverting
10777         tag.
10778         (par*push-tag-env, par*pop-tag-env): New macros.
10780 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
10782         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
10783         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
10785         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
10786         comment.  Include <time.h>.
10788 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
10790         * grops/ps.cc (is_small_h, is_small_v): Deleted.
10791         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
10792         lines.
10794 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
10796         * troff/input.cc (read_request): Only print a prompt if reading
10797         from the terminal.  Also clearerr on EOF if reading from the
10798         terminal.  Declare isatty.
10800 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
10802         * refer/label.y: Rename map_t to map_func and extractor_t to
10803         extractor_func.
10805 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
10807         * include/assert.h: Don't use volatile.
10808         * libgroff/assert.cc: Likewise.
10810 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
10812         * troff/input.cc (abort_request): Look at character in tok before
10813         calling get_copy().
10815 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
10817         * troff/troff.h (NO_RETURN): Deleted.
10818         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
10819         * troff/input.cc (exit_troff): Likewise
10821         * Makefile.in: Remove `Making ...' messages since GNU make now
10822         gives these. 
10824         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
10826 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
10828         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
10829         to constant 1 inch.
10831 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
10833         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
10835 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
10837         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
10838         MARK_REG if there was no left delimiter.
10840 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
10842         * pic/troff.cc (troff_output::text): Set line thickness to
10843         relative before outputting text.
10845         * tmac/tmac.e (@k): Don't zero ?T.
10846         ((z): Likewise.
10848 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
10850         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
10852 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
10854         * troff/input.cc (decode_args): Warn about unquoted tabs (from
10855         Paul Eggert).
10857 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
10859         * troff/input.cc (ignoring): New variable.
10860         (ignore): Set ignoring during call to do_define_macro.
10861         (do_define_macro): Clear ignoring before interpolating terminating
10862         macro.
10863         (copy_mode_error): New function.
10864         (get_char_for_escape_name, read_long_escape_name,
10865         interpolate_arg): Use copy_mode_error.
10866         (warning_table): Add WARN_IG.
10867         * troff/troff.h (WARN_IG): Declare.
10868         (WARN_TOTAL): Change accordingly.
10870         * groff/pipeline.c (strsignal): Rename to xstrsignal.
10871         * groff/groff.cc (strsignal): Delete declaration.
10873 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
10875         * troff/div.cc (page_offset): Use 'm' as default scaling.
10877 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
10879         * nroff/nroff.sh: Ignore -u.
10881 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
10883         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
10885 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
10887         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
10888         drawing box.
10889         (B2): With -Tascii, leave additional vertical space before
10890         and after. Ensure that the left and right indent is restored to
10891         what it was even if the point size changes.  Don't call
10892         par@finish. Change the indent, line length and title length
10893         directly.  With -Tascii, make the width of the box 1n less.
10894         (B1): Remember 1n at the current point size.  Don't call
10895         par@reset.  Change the indent, line length and title length
10896         directly.  Ensure that the temporary indent is preserved.
10897         (par*box-mark-top): Turn off no spacing mode.
10899 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
10901         * Makefile.in (dist): Use .gz suffix.
10903 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
10905         * troff/input.cc (main): Add return 0.
10906         * pic/main.cc (main): Use return instead of exit.
10907         * tbl/main.cc (main): Likewise.
10908         * eqn/main.cc (main): Likewise.
10909         * grops/ps.cc (main): Likewise.
10910         * grotty/tty.cc (main): Likewise.
10911         * groff/groff.cc (main): Likewise.
10912         * grodvi/dvi.cc (main): Likewise.
10913         * refer/refer.cc (main): Likewise.
10914         * indxbib/indxbib.cc (main): Likewise.
10915         * lkbib/lkbib.cc (main): Likewise.
10916         * soelim/soelim.cc (main): Likewise.
10917         * addftinfo/addftinfo.cc (main): Likewise.
10918         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
10919         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
10921         * troff/token.h (process_input_stack): Don't declare as static.
10922         * troff/input.cc: Likewise.
10924         * troff/node.c (invalidate_fontno): Make it a static member of
10925         class font_family.  Change callers.
10926         * troff/node.c: Change declaration.
10928         * tbl/main.cc (struct input_entry_format): Add explicit public
10929         specifier.
10930         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
10931         struct double_hline_stuff): Likewise.
10932         * tbl/table.h (struct entry_format): Likewise.
10933         * pic/object.h (struct saved_state): Likewise.
10935         * include/stringclass.h: Add forward declarations of friend
10936         functions that are later declared as inline.  Don't include inline
10937         specifier in friend declaration.
10939         * libgroff/lib.h: Declare popen and pclose.
10940         * acgroff.m4 (GROFF_POPEN): New macro.
10941         * configure.in: Call it.
10943         * include/lib.h (PI): New constant. Undef first if necessary.
10944         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
10945         * grops/ps.cc (degrees, radians): Likewise.
10946         * libgroff/font.cc (font::get_skew): Likewise.
10948         * grops/ps.cc (is_ascii): New function.
10949         (ps_output::put_string): Use is_ascii.  Use csprint rather than
10950         isprint.
10951         (ps_printer::define_encoding): Use csspace.
10952         * libgroff/strtol.c (ISASCII): New macro.
10953         (strtol): Cast arguments to is*() and tolower() to unsigned char.
10954         Use ISASCII rather than isascii.
10955         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
10956         * libgroff/cset.cc: Likewise.
10957         * libdriver/input.cc: Include cset.h.
10958         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
10959         than isdigit().
10961         * refer/refer.cc (main): Use %ld rather than %d for longs.
10963         * libbib/index.cc (index_search_item_iterator::get_tag): Use
10964         S_ISREG macro.
10966         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
10968 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
10970         * troff/input.cc (hyphenation_code): Skip white space between
10971         char/code pairs.
10973 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
10975         * tbl/table.h (table::entry_list_tailp): New member.
10976         (table::table): Initialize it.
10977         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
10978         behaviour.
10980 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
10982         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
10983         with negative horizontal positions. Remove casts of glyph::hpos to
10984         int.
10985         (USHRT_MAX): Delete definition.
10986         (SHRT_MAX, SHRT_MIN): New definitions.
10987         (glyph::hpos): Change type to short.
10988         (tty_printer::end_page): Output multiple backspaces if necessary.
10989          Remove casts of glyph::hpos to int.
10990         
10991 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
10993         * tmac/tmac.s (@RT): New definition.
10995 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
10997         * refer/refer.cc (do_file): Make sure current_filename is set when
10998         filename is "-".
11000         * pic/common.cc (common_output::dot_line): Handle zero length
11001         lines.
11003 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
11005         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
11006         (par@init): Initialize \n[HY].
11008 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
11010         * troff/dictionary.cc (dictionary::remove): Continue when
11011         r < j < i.
11013 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
11015         * Makefile.com (.y.cc): Avoid ending up with two versions of
11016         $(YTABH).
11018 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
11020         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
11021         (\(,C): Likewise.  Also fix typo.
11023 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
11025         * lib.h: Delete extraneous semi-colon.
11027         * Add pso request: `so' from a pipe.
11028         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
11029         (file_iterator::close): New function.
11030         (file_iterator::~file_iterator, file_iterator::next_file): Use
11031         file_iterator::close.
11032         (file_iterator::backtrace): Say `process' rather than `file' when
11033         the stream is popened.
11034         (pipe_source): New function.
11035         (init_input_requests): Bind ".pso" to pipe_source.
11037 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
11039         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
11041         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
11042         digits in lower case.
11044 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
11046         * Version 1.08 released.
11048         * Makefile.in (dist): Insert || true after ln -s commands that
11049         might fail.
11051         * mm: Update to mm 1.16.
11053         * acgroff.m4 (GROFF_CSH_HACK): New macro.
11054         * configure.in: Call GROFF_CSH_HACK.  Substitute for
11055         SH_SCRIPT_SED_CMD.
11056         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
11057         MDEFINES.
11058         * nroff/Makefile.sub (nroff): New target.
11059         (install_data): Install nroff.
11060         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
11061         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
11063 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
11065         * eqn/Makefile.sub (neqn): Add chmod +x.
11067         * grog/Makefile.sub (grog): Remove spurious semi-colon.
11069 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
11071         * troff/input.cc (string_iterator::string_iterator()): Initialize
11072         lineno and count.
11074 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
11076         * troff/div.cc (macro_diversion::space,
11077         top_level_diversion::space): Don't set high_water_mark.
11078         (macro_diversion::output, top_level_diversion::output): Don't
11079         include post line space in high water mark.
11081 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
11083         * eqn/eqn.y: Don't define YYDEBUG.
11084         * pic/pic.y: Likewise.
11086 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
11088         * tmac/tmac.e ([3): Add space after comma following editors.
11089         Change double spaces to single spaces.
11090         ([4): Change double spaces to single spaces.
11092         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
11093         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
11094         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
11095         after %!PS-Adobe- (for Newsprint).
11097         * troff/div.cc (top_level_diversion::begin_page): When
11098         before_first_page is 1, set page_number to 1.
11100 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
11102         * eqn/box.cc (box::top_level): Protect equation with \&.
11104 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
11106         * groff/groff.cc (possible_command::set_name): Delete old name.
11108         * groff/groff.cc (possible_command::~possible_command): Use
11109         a_delete.
11111         * troff/node.cc (troff_output_file::begun_page): New member.
11112         (troff_output_file::troff_output_file): Initialize it.
11113         (troff_output_file::really_begin_page): Only output V command if a
11114         page has been begun.
11116         * pic/pic.y (placeless_element): Delete argument to PRINT after
11117         use.
11119 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
11121         * Make wrapman work.
11122         * troff/div.h (class top_level_diversion): Replace
11123         first_page_begun by before_first_page (with opposite sense).
11124         * Change first_page_begun to before_first_page inverting sense.
11125         * troff/div.cc (class nl_reg): New class.
11126         (init_div_requests): Use class nl_reg for \n(nl.
11127         (top_level_diversion::begin_page): Don't call
11128         output_file::begin_page if before_first_page is 2;
11129         reset before_first_page afterwards.  If have_next_page_number is
11130         false, then always increment page_number.
11131         * tmac/tmac.an: Set traps within TH rather than at the top-level.
11132         Restore compatibility mode after loading, and then disable
11133         compatibility mode in TH.
11135 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
11137         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
11138         past last line.
11139         * troff/node.h (output_file::trailer): Declare.
11140         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
11141         * troff/node.cc (output_file::trailer): New function.
11142         (troff_output_file::~troff_output_file): Move most code into...
11143         (troff_output_file::trailer): New function.
11144         (class troff_output_file): Delete page_length member. Declare
11145         trailer().
11146         (troff_output_file::really_begin_page): Use current page length
11147         for final V command.
11149         * tbl/main.cc (struct options): New decimal_point_char member.
11150         (options::options): Initialize this.
11151         (process_options): Implement decimalpoint option.
11152         (process_data): Pass decimal_point_char option to table::table.
11153         * tbl/table.h (class table): New decimal_point_char member.
11154         (table::table): Add additional argument.
11155         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
11156         second argument specifying decimal point character.  Use this
11157         instead of '.'.
11158         (table::table): Initialize decimal_point_char.
11159         (table::add_entry): Change call to find_dot.
11161         * troff/input.cc (get_copy, token::next): Implement \V.
11162         (interpolate_environment_variable): New function.
11164 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
11166         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
11167         * pic/pic.y: Likewise.
11169         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
11170         Add casts to int.
11171         * refer/ref.cc (reference::insert_field, reference::delete_field):
11172         Likewise.
11173         * troff/number.cc (parse_term): Likewise.
11175         * acgroff.m4 (GROFF_PROG_YACC): New macro.
11176         * configure.in: Use GROFF_PROG_YACC.
11178         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
11179         and g++.
11180         * Makefile.in (OPTIMIZE): New define.
11181         (DEBUG): Empty by default.
11182         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
11184         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
11185         (GROFF_ARRAY_DELETE): Likewise.
11186         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
11188         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
11190         * devps/psstrip.sed: Use different delimiter on last line (so that
11191         it works with BSD 4.4 sed.)
11193 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
11195         * devps/psstrip.sed: Delete comments.
11197         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
11198         optind, opterr, optarg.
11199         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
11200         opterr, optarg.
11202 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
11204         * Makefile.in (check): Dummy target.
11206 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
11208         * Version 1.07 released.
11210         * Integrate mm 1.11.
11212         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
11213         where start_col was meant.
11215 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
11217         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
11219 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
11221         * troff/input.cc (token::next): Make \z\o'...' and similar things
11222         work.
11224         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
11225         constants.
11226         (environment): Add margin_character_flags member.
11227         * env.cc (environment::environment(symbol),
11228         environment::environment(const environment *): Initialize
11229         margin_character_flags.
11230         (margin_character): Rewrite.
11231         (environment::output_line): Add a margin character if
11232         margin_character_flags is non-zero.  Turn off the
11233         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
11234         zero, use margin_character_node without copying and then set
11235         margin_character_node to 0.
11237         * devps/DESC.in: Change minimum size to 1000.
11239 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
11241         * troff/symbol.h (symbol::hash): Change return type to unsigned
11242         long.
11243         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
11244         Add casts to int.
11246         * test-groff: Use -r rather than -x.
11248         * grops/psfig.diff: Include in distribution again.
11250 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
11252         * Makefile.in (dist): Use gzip.
11254 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
11256         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
11257         unistd.h as well as in stdlib.h.
11258         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
11259         defined; otherwise include <sys/types.h> and <unistd.h> if
11260         UNISTD_H_DECLARES_GETOPT is defined.
11262         * configure.in: use builtin(include, ... rather than include(...
11263         * configure: Regenerate with autoconf 1.3.
11265         * libdriver/print.cc (printer::adjust_arc_center): Use new
11266         algorithm suggested by Andy Fyfe.
11268         * libdriver/printer.cc (printer::adjust_arc_center): New function.
11269         * include/printer.h: Declare this.
11270         * grops/ps.cc (ps_printer::draw): Use it.
11271         * grodvi/dvi.cc (dvi_printer::draw): Use it.
11273 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
11275         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
11277 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
11279         * eqn/main.cc (main): Handle "eqn -".
11281 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
11283         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
11285         * mm: Integrate version 1.08.
11287         * pic/troff.cc (troff_output::finish_picture): Set
11288         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
11289         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
11290         if it's not defined. Check whether the register is non-zero rather
11291         than whether it's not defined.
11292         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
11294         * indxbib/indxbib.cc: Move all signal handling into...
11295         * indxbib/signal.c: New file.
11296         * configure.in: Call AC_RETSIGTYPE.
11298         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
11299         * configure.in: Call GROFF_STRUCT_EXCEPTION.
11300         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
11302         * troff/input.cc (token::token, token::operator=): Work round SGI
11303         C++ bug.
11304         * pic/object.cc (position::position): Likewise.
11306 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
11308         * pic/pic.h: Move declaration of hypot().
11310 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
11312         * pic/pic.h: Declare hypot().
11314         * pic/pic.h: Define M_PI if necessary.
11316 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
11318         * tmac/tmac.e (re): Add alternative version that doesn't use groff
11319         `.ta T' feature.
11321         * devps/prologue.ps (RE): Handle the possibility that the old font
11322         doesn't have a FontName entry.
11324 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
11326         * tmac/tmac.e (fam): Redefine to set family in environment 2.
11327         (@C): Use @fam not fam.
11329 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
11331         * lookbib/lookbib.cc (main): Change type of start to const char *.
11332         * lkbib/lkbib.cc (main): Likewise.
11334         * eqn/lex.cc (definition::definition): Don't use member
11335         initializer syntax for members of anonymous unions.
11337         * troff/input.cc (input_stack::backtrace): Change type of to const
11338         char *.
11340 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
11342         * include/stringclass.h (class string): Declare inline friend
11343         functions as inline in class declaration.
11344         * troff/hvunits.h (class hunits, class vunits): Likewise.
11345         * include/refid.h (class reference_id): Likewise
11346         * troff/troff.h (points_to_units(units), scale(units, double)):
11347         Delete declarations.
11348         * libdriver/input.cc (get_char): Delete declaration.
11349         * include/lib.h: Change 2nd argument of getopt from const char **
11350         to char **.
11351         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
11352         char **' before assigning to a `const char **'.
11353         * tbl/table.cc: Delete extra declarations of prints().
11355 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
11357         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
11358         char **' before assigning to a `const char **'.
11360         * libgroff/errarg.cc (errarg::errarg): Don't use member
11361         initializer syntax for members of anonymous unions.
11363 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
11365         * mm: Integrate version 1.07.
11367 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
11369         * troff/input.c (translate2): Rename to
11370         (translate_no_transparent).
11371         (init_input_requests): Rename tr2 to trnt.
11373 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
11375         * troff/charinfo.h (class charinfo): Add transparent_translate field.
11376         (charinfo::set_translation, charinfo::set_special_translation):
11377         Add second argument that specifies value for
11378         transparent_translate.
11379         (charinfo::get_translation, charinfo::get_special_translation):
11380         Add optional second argument that specifies whether translation is
11381         being used for transparent throughput.
11382         * troff/input.cc (charinfo::set_translation,
11383         charinfo::set_special_translation): Handle second argument.
11384         (charinfo::charinfo): Initialize transparent_translate.
11385         (translate): Split main part off into
11386         (do_translate): New function.  Pass argument saying whether
11387         translation applies to transparent throughput.
11388         (translate2): New request.
11389         (init_input_requests): Bind translate2 to `tr2'.
11391 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
11393         * tbl/table.h (class table): Add `nokeep' flag.
11394         * tbl/main.cc (process_options): Handle `nokeep' option.
11395         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
11396         table::do_bottom): Don't output keep/release macro definitions or
11397         calls when `nokeep' option has been specified.
11399 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
11401         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
11403 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
11405         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
11406         block_entry::divert, alphabetic_block_entry::divert): Add extra
11407         argument giving column separation.
11408         (table::compute_widths): Pass column separation to
11409         table_entry::divert().
11410         (block_entry::do_divert): If an entry spans multiple columns and a
11411         minimumum width has been specified for each column, then set the
11412         line length to the sum of the widths (plus possibly the column
11413         separations).
11415         * troff/input.cc (set_escape_char): Don't set the escape_char
11416         until after calling has_arg().
11418 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
11420         * tbl/table.cc (table::do_top): Add missing \s0 for double box
11421         case.
11423         * tbl/table.cc (table::print_double_hline): Avoid extra new line
11424         in case where r > nrows - 1.
11426         * tbl/table.cc (BODY_HEIGHT): Deleted.
11427         (LINE_SEP): New definition.
11428         (table::print_single_hline, table::print_double_hline,
11429         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
11430         table::do_row, table::do_top): Use LINE_SEP space before a line
11431         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
11433         * tbl/table.cc (text_entry::print_contents): New function.
11434         (text_string_name, right_text_string_name): Deleted.
11435         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
11436         (simple_text_entry::do_width, numeric_text_entry::do_width,
11437         alphabetic_text_entry::do_width): Don't store the contents of the
11438         entry in a string.
11439         (left_text_entry::simple_print, right_text_entry::simple_print,
11440         center_text_entry::simple_print,
11441         alphabetic_text_entry::simple_print,
11442         numeric_text_entry::simple_print): Print the entry directly
11443         instead of using the stored string.
11445 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
11447         * devps/Makefile: Strip PostScript files.
11448         * devps/prologue: Rename to...
11449         * devps/prologue.ps.
11450         * devps/psstrip.sed: New file.
11451         * devps/download: Use .pfa rather than .ps for installed versions
11452         of fonts.
11454 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
11456         * troff/env.cc (input_trap): Give a warning if the argument is out
11457         of range.
11459         * troff/env.cc (adjust): Treat negative argument as missing. Round
11460         argument > 5 down to 5.
11462         * troff/env.cc (center, right_justify): Make negative argument zero.
11464         * troff/div.cc (page_offset, vertical_position_traps): Treat
11465         invalid argument as missing.
11466         * troff/env.cc (line_spacing, line_length, title_length, indent,
11467         underline, hyphen_line_max_request, control_char,
11468         no_break_control_char, widow_control_request, adjust, input_trap,
11469         point_size): Likewise.
11470         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
11471         constant_space): Likewise.
11472         * troff/input.cc (compatible, shift, warn_request,
11473         set_escape_char): Likewise.
11475         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
11476         * tbl/table.cc (table::table): Likewise.
11478         * Makefile.dev (install_dev): depends on $(DEVFILES).
11480 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
11482         * devX75, devX75-12, devX100, devX100-12: New directories.
11483         * Makefile.in: Add these to DEVDIRS.
11485         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
11486         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
11487         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
11488         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
11489         targets.
11490         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
11491         (uninstall): New target.
11492         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
11493         uninstall_prog, uninstall_dev): New targets.
11495         * troff/div.cc (return_request): Treat an invalid argument as
11496         missing.
11498 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
11500         * tmac/tmac.e ((f): Set up the environment even when there's a
11501         current diversion.  Transperently throughput a call to @N.
11502         (@N): New macro.
11504 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
11506         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
11507         up to vertical resolution.
11509         * tbl/table.cc (table::do_row): Change row number after printing
11510         stuff list.
11512         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
11514 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
11516         * Rename CHANGES to NEWS.
11518 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
11520         * libgroff/new.cc (operator new): Avoid calling malloc(0).
11522 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
11524         * man.ultrix: Removed.
11526 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
11528         * Makefile.comm (extraclean): Delete files whose names begin with
11529         `='.
11531         * pic/troff.cc (troff_output::text): Fix typo in implementation of
11532         aligned text.
11534 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
11536         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
11537         * troff/div.cc (page_length, need_space, space_request): Treat
11538         invalid optional argument as missing.
11539         * troff/env.cc (number_lines): If the first argument is present
11540         but not a number, turn on line numbering, don't change the next
11541         line number and parse the remaining arguments.
11543         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
11545 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
11547         * eqn/box.h: Change declaration accordingly.
11548         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
11549         the specified size was bad but don't give an error.  Check for
11550         overflow.
11551         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
11552         * eqn/lex (do_size): Likewise.
11554 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
11556         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
11557         compatible headers.
11559 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
11561         * tbl/table.cc (table::init_output): Improve error message when
11562         table won't fit on one page.
11564 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
11566         * pic/troff.cc (troff_output::start_picture): Generate line
11567         containing a horizontal motion equal to the width of the picture.
11569         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
11570         using GROFF_COMMAND_PREFIX environment variable.
11572 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
11574         * mdate.sh: Use $NF rather than $(NF).
11576 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
11578         * pic/main.cc (main):  Use %1 not %c in argument to warning.
11580         * eqn/main.cc (main): Output code to check that geqn was given the
11581         correct -T option.
11583 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
11585         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
11586         `ln -s ../Makefile .; make; rm -f Makefile'.
11588         * troff/hyphen: Rename to...
11589         * troff/hyphen.us:
11590         * troff/input.cc (main): Delete -H option. Don't call
11591         read_hyphen_file().
11592         * troff/env.cc: Include searchpath.h and macropath.h.
11593         (exception_dictionary): Deleted.
11594         (ht): Deleted.
11595         (read_hyphen_file): Deleted.
11596         (hyphenation_language): New struct.
11597         (class trie, class hyphen_trie): Move declarations up.
11598         (trie_node::~trie_node): Deleted.
11599         (trie::delete_trie_node): New function.
11600         (trie::do_delete): New pure virtual function.
11601         (hyphen_trie::do_delete): New function.
11602         (trie::~trie): New function.
11603         (hyphen_trie::~hyphen_trie): New function.
11604         (trie::clear): No need to chcek that tp is not 0.
11605         (current_language, language_dictionary): New variables.
11606         (hyphen_word): Give an error if no current language.  Use
11607         exceptions dictionary in current language.
11608         (hyphen_trie::read_patterns_file): Find file using macro_path.
11609         Allow comments (starting with %) in patterns file.  Don't make it
11610         a fatal error if the file can't be found.
11611         (hyphenate): Return if no current language.  Get the exceptions
11612         dictionary and the hyphenation patterns from the current language.
11613         (set_hyphenation_language): New variable.
11614         (hyphenation_patterns_file): New function.
11615         (hyphenation_language_reg): New class.
11616         (hyphenation_language_reg::get_string): New function.
11617         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
11618         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
11619         register.
11620         * groff/groff.cc (main, help, synopsis): Delete -H option.
11621         * include/Makefile.sub: Don't define HYPHENFILE.
11622         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
11623         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
11624         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
11625         hyphenation patterns.
11627 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
11629         * eqn/neqn.sh: New file.
11630         * eqn/Makefile.sub: Handle neqn.sh.
11632         * eqn/eqn.h: Declare `nroff' variable.
11633         * eqn/box.cc (param_table): Add `nroff' param.
11634         (nroff): Define it.
11635         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
11636         variable.
11637         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
11639         * troff/troff.h (WARN_FONT): New warning.
11640         (WARN_TOTAL): Change accordingly.
11641         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
11642         (warning_table): Add WARN_FONT.
11643         * troff/node.cc (mount_font_no_translate): Pass argument to
11644         font::load_font.  If this is non-zero, give a warning.
11645         Don't give an error message when accessing a font that has already
11646         been found to be invalid.
11647         * include/font.h (font::load, font::load_font): Add additional
11648         optional argument which suppresses error message if the font is
11649         not found.
11650         * libgroff/font.cc (font::load_font): Handle additional argument.
11651         (font::load): Add additional argument. If this is non-null, set it
11652         to 1 and don't give error message.
11654         * include/printer.h (printer::end_page): Add argument giving
11655         length of page.
11656         * libdriver/input.cc (do_file): Pass this.
11657         * grops/ps.cc (ps_printer::end_page): Add argument.
11658         * grodvi/dvi.cc (dvi_printer::end_page,
11659         draw_dvi_printer::end_page): Add argument.
11660         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
11661         columns_per_page members. New member nlines.
11662         (DEFAULT_LINES_PER_PAGE): Deleted.
11663         (tty_printer::tty_printer): Don't compute lines_per_page from
11664         font::paperlength. Don't compute columns_per_page from
11665         font::paperwidth.
11666         (tty_printer::add_char): Don't check horizontal position against
11667         columns_per_page. Grow glyphs vector if neccessary.
11668         (tty_printer::end_page): Add argument giving page_length in units.
11669         Discard lines past end of page.
11671 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
11673         * tmac/tmac.tty-char: Fix definition of \(/l.
11675         * tmac/tmac.X: Define \(en.
11677 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
11679         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
11680         lpq, then use lp rather than lpr.
11682         * tmac/tmac.s (par@reset): Don't call `ad'.
11683         (par*env-init): Call `ad'.
11685 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
11687         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
11688         date.
11690         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
11691         * indxbib/indxbib.cc: Likewise.
11693 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
11695         * libgroff/putenv.c: New file.
11696         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
11697         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
11698         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
11699         stdlib.h with AC_HAVE_HEADERS.
11701 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
11703         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
11704         does not exist.
11706 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
11708         * eqn/box.cc (gsize): Make it an int.
11709         (set_gsize): Parse argument handling increment or decrement.
11710         (box::top_level): Convert gsize to a string.
11712         * troff/input.cc (exit_troff): Make buf unsigned char [].
11713         Call to make_temp_iterator casts buf to char*.
11715         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
11717         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
11718         * Makefile.cpg (depend.temp): Likewise.
11720         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
11722         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
11724 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
11726         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
11728 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
11730         * Version 1.06 released.
11732         * Integrate mm 1.04.
11734 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
11736         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
11738 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
11740         * afmtodit/afmtodit.pl: Add -n option that disables generation of
11741         ligatures command.
11742         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
11743         afmtodit. Regenerate.
11745         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
11746         @f back past the current position.
11748         * tmac/tmac.e: Change calls to @R so that comments are not part of
11749         arguments.
11751 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
11753         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
11755         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
11756         check that we can link a call to a function declared in <stdio.h>.
11757         (GROFF_UNISTD_H): New macro.
11758         * configure.in: Call it.
11759         * Makefile.in: Document it.
11760         * include/posix.h: New file.
11761         * troff/troff.h: Don't include <osfcn.h>
11762         * troff/input.cc: Include posix.h.
11763         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
11764         osfcn.h.
11765         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
11766         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
11767         <fcntl.h>.
11768         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
11769         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
11770         * libbib/search.cc (O_RDONLY): Delete definition.
11771         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
11772         Don't include <osfcn.h>.
11774         * acgroff.m4 (GROFF_TIME_T): New macro.
11775         * configure.in: Call it.
11776         * Makefile.in: Document it.
11778         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
11779         * configure.in: Call it.
11780         * Makefile.in: Document -DTRADITIONAL_CPP.
11781         * include/ptable.h: Don't include generic.h.
11782         (name2): Define it.
11784         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
11785         Afterwards remove [T1 and [T2.
11786         (ref*spec!0, ref*spec!2): Use T1 rather than T.
11787         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
11788         (ref*add-T2): Renamed from ref*add-T.
11789         (ref*add-T1): New macro.
11791 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
11793         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
11795         * libbib/index.cc: Include <fcntl.h>.
11796         (O_RDONLY): Define if necessary.
11797         (make_index_search_item, index_search_item_iterator::get_tag,
11798         index_search_item::check_files): Use O_RDONLY.
11799         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
11800         (O_RDONLY): Define if necessary.
11801         (search_list::add_file): Use O_RDONLY.
11802         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
11803         <sys/stat.h>.
11804         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
11805         (main): Use these.
11807         * libbib/index.cc (S_ISREG): Define it if necessary.
11808         (index_search_item::load): Use S_ISREG.
11810         * include/driver.h: Include <errno.h>.
11812 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
11814         * eqn/box.cc (body_height): Increase default value to 85.
11815         (body_depth): Increase default value to 35.
11817 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
11819         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
11820         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
11821         protected from expansion with \E.
11823         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
11825         * Makefile (Makefile): New target.
11827         * Makefile.sub (configure, distfiles): New targets.
11829         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
11830         construct.
11832 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
11834         * eqn/box.cc (param_table): Add body_height and body_depth.
11836         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
11838 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
11840         * psbb/Makefile.sub: Don't link with libgroff.a.
11842         * acgroff.m4 (GROFF_PUTENV): New macro.
11843         * configure.in: Call GROFF_PUTENV.
11844         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
11845         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
11846         is defined.
11848         * troff/env.cc (distribute_space): Rename force_forward argument
11849         to force_reverse.  Reverse the list if force_reverse is true.
11851 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
11853         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
11855         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
11856         height or depth to be negative.  Guard against SUP_RAISE quantity
11857         being negative.
11859 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
11861         * devps/generate/textmap: Add `an' (arrowhorizex).
11862         * tmac/tmac.ps: \(an overlaps horizontally.
11863         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
11865         * devps/symbolchars: Add arrowverttp, arrowvertbt.
11866         * devps/textmap: Add arrowvertex.
11867         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
11868         updownarrow delimiters.
11869         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
11871         * tbl/table.cc (simple_entry::position_vertically,
11872         block_entry::position_vertically):  For a centered entry, perform
11873         the motion in two stages.
11875         * refer/refer.cc (split_punct): Don't call lookup_token if there
11876         is no token.
11878 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
11880         * troff/input.cc (token::next): Delete token_node after copying
11881         token.
11883         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
11884         cur_point_size.
11886         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
11888         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
11890 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
11892         * grops/ps.cc (usage): -b option takes an argument.
11894         * devps/prologue (PLG): New procedure.
11895         * grops/ps.cc (main, usage): New -g option.
11896         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
11897         length using PLG.
11899 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
11901         * include/cset.h: Include <limits.h> if we have it.
11903         * libgroff/illegal.cc: New file.
11904         * include/lib.h (illegal_input_char): Use table.
11905         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
11906         * pic/lex.cc (ARG1): Renumber to 14.
11907         * eqn/lex.cc (ARG1): Likewise.
11909         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
11910         (eg 1.05.90) correctly.
11912 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
11914         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
11915         Rename $r and $R registers to $v and $V.
11916         ($r, $R): Initialize to 0.
11917         (@v, @V): New macros.
11918         (sz): Call @v.
11919         (@M): Call @V.
11921         * troff/input.cc (main, usage): Add -R option that says not to
11922         load troffrc.
11923         * eqn/main.cc (main, usage): Rename -n to -R.
11925 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
11927         * devps/DESC.in: Leave font positions 5-9 blank.
11928         * devdvi/DESC.in: Likewise.
11930         * grog/grog.pl: Handle `.PS <file' correctly.
11932         * troff/input.cc (input_stack::push): Improve error message when
11933         input stack limit exceeded.
11935 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
11937         * refer/refer.cc (main): Fix typo in handling of `a' option.
11939         * refer/refer.cc (do_bib): In state START after a newline remain
11940         in state START.
11942         * groff/groff.sh: Deleted.
11943         * groff/Makefile.sub: Delete handling of groff.sh.
11945         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
11946         to determine whether to use \X'ps:...'.
11947         * tmac/troffrc: Set 0p register to 0.
11948         * tmac/tmac.ps: Set 0p register to 1.
11950         * groff/groff.cc: Support -X option. Give warning for -TXps and
11951         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
11952         * tmac/troffrc: Support -r.X=1.
11954         * pic/troff.cc (troff_output::dot): Don't test
11955         zero_length_line_flag.
11957 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
11959         * include/lib.h: Declare getopt() and friends unless
11960         STDLIB_H_DECLARES_GETOPT is defined.
11962         * doc/chars.tr: Delete.
11963         * man/groff_char.man: New file.
11965 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
11967         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
11968         user has changed register format.
11970 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
11972         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
11973         `postpro' command in DESC file.  Get spooler command from `print'
11974         command in DESC file.  Execute spooler command with /bin/sh.
11976         * groff/groff.cc: Split Unix-specific parts into...
11977         * groff/pipeline.c: New file.
11979         * LICENSE: Delete.
11980         * COPYING: New file.
11981         * all files: Update copyright notices.
11983         * Rearrange files.  Redo Makefiles.  Use autoconf.
11985 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
11987         * troff/input.c (charinfo_to_node_list): Interpret character
11988         definition with escape_char of `\'.
11990 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
11992         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
11993         Define INT_DIGITS as big enough for 64-bit integer.
11994         * lib/strtol.c: Don't include lib.h.
11995         * lib/lib.h: Delete ifdef __cplusplus stuff.
11997 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
11999         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
12000         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
12001         get DESC from current directory.
12003 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
12005         * tbl/main.c (main): Always reset the line number when reading
12006         from stdin.
12008         * tbl/table.c (table::print_single_hline, table::print_double_hline,
12009         table::define_bottom_macro, table::do_row, table::do_top): Round
12010         vertical spacing up to vertical resolution.
12012 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
12014         * ps/ps.h (enum resource_type): Avoid comma at end of
12015         enumerator-list.
12016         * dvi/dvi.c (class dvi_printer): Likewise.
12017         * dvi/tfmtodit.c (gf::load): Likewise.
12018         * refer/label.y (struct expression): Likewise.
12019         * refer/refer.c (class label_processing_state): Likewise.
12020         * refer/indxbib.c (do_file): Likewise.
12021         * troff/troff.c (enum warning_type): Likewise.
12022         * tbl/main.c (process_data): Likewise.
12023         * troff/charinfo.h (class charinfo):
12025 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
12027         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
12029 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
12031         * groff.c: Move to new groff subdirectory.
12032         * groff/Makefile: New file.
12033         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
12035         * man/mdate.sh: Use ls -L if supported.
12037         * Consolidate all header files produced by gendef into lib/defs.h.
12038         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
12039         Don't include path.h.
12040         * lib/Makefile (path.h): Don't generate.
12041         * troff/input.c: Include defs.h. Don't include config.h.
12042         * troff/Makefile (config.h): Don't generate.
12043         * refer/index.h: Don't include suffix.h.
12044         * refer/index.c: Include defs.h.
12045         * refer/indxbib.c: Include defs.h.
12046         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
12047         defs.h.
12048         * refer/Makefile (suffix.h, path.h): Don't generate.
12049         * groff.c: Don't include config.h. Include defs.h.
12050         * Makefile (config.h): Don't generate.
12051         (lib/defs.h): Generate.
12052         (topclean): Remove lib/defs.h.
12054 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
12056         * lib/malloc.c, lib/getpagesize.h: Deleted.
12057         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
12058         related stuff.
12059         * lib/Makefile: Delete malloc-related stuff.
12060         * lib/new.c: Workaround COOKIE_BUG if necessary.
12062         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
12063         needed header files directly.
12064         * refer/refer.h: Omit definition of DEFAULT_INDEX.
12065         * Makefile: Include definition of DEFAULT_INDEX in path.h.
12067 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
12069         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
12070         argument.
12071         * lib/font (font::load_desc, font::load): Don't split argument of
12072         unknown command.
12073         (font::handle_unknown_font_command): Change type.
12074         * ps/ps.c (ps_font::handle_unknown_font_command,
12075         handle_unknown_desc_command): Change type.
12076         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
12078 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
12080         * lib/font.h (font::handle_unknown_font_command): Add file and
12081         line arguments.
12082         * lib/font.c (font::handle_unknown_font_command):
12083         * ps/ps.c (ps_font::handle_unknown_font_command):
12084         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
12085         lineno arguments.  Use _with_file_and_line functions for error
12086         reporting.
12088         * lib/fontfile.c (font::unknown_desc_command_handler): New static
12089         data member.
12090         * lib/font.c (font::set_unknown_desc_command_handler): New
12091         function.
12092         (font::load_desc): For unknown commands, call
12093         unknown_desc_command_handler if not null.
12094         * lib/font.h (class font): Declare them.
12095         (FONT_COMMAND_HANDLER): New typedef.
12096         * ps/ps.c (handle_unknown_desc_command): New function.
12097         (main): Set bflag if we had a -b option. Call
12098         font::set_unknown_desc_command_handler.
12099         (broken.h): Don't include.
12100         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
12101         submake 
12102         * ps/devps/Makefile: Add `broken' command to DESC file using
12103         BROKEN_SPOOLER_FLAGS.
12105         * macros/tmac.e ([, ]): Add as synonyms for { and }.
12107         * macros/tmac.e ($p): Only exdent if \$3 > 0.
12109         * macros/tmac.e (@R, @S): New macros.
12110         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
12111         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
12112         Declare $H, $[0-9], .. macros with @S.
12113         Declare |0, |1, |2, |3 strings with @S.
12115         * macros/tmac.e (@S): Rename to @U.
12117         * macros/tmac.e (@z): Define @b and bp as empty instead of
12118         deleting them,
12120         * macros/tmac.e (@m): Deleted.
12121         (@h): Don't call @m.
12122         (@z): Don't set @m trap.
12124         * macros/tmac.e ($h, $f): Define |z as empty string.
12126         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
12127         (@q): Likewise.
12129         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
12130         removing them.
12131         ()f): Likewise for * register.
12133         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
12134         argument is missing, don't change $R.  Call sr with three
12135         arguments when initializing.
12137 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
12139         * macros/tmac.e (sr): New macro.
12140         Initialize $r and $R using sr.
12142         * macros/tmac.e (,): Delete \*(#[.
12144         * troff/env.c (set_tabs): Read the tab type even if the position
12145         is bad.  Allow the position of the first tab stop to be negative.
12147 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
12149         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
12150         _POSIX_VERSION.
12151         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
12152         rather than -DPATHCONF_MISSING.
12153         * Makefile: Get rid of PATHCONF_MISSING.
12155         * refer/map.c: New file.
12156         * refer/index.c: Interface to mmap through map.c.  Rename map_size
12157         to map_len.
12158         * refer/Makefile: Handle map.c.
12159         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
12161 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
12163         * Makefile: RANLIB should be `true' if there is no ranlib.
12164         * lib/Makefile (libgroff.a): Simplify.
12165         * driver/Makefile (libdriver.a): Simplify.
12167         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
12168         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
12169         defined.
12171 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
12173         * troff/env.c (compare_ranges): Declare as extern "C".
12175         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
12177         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
12179 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
12181         * pic/troff.c (troff_output::text): Merge in grops_output::text,
12182         but conditionalize use of \X based on \*(.T.
12183         (grops_output::*): Deleted.
12184         * pic/output.h: Delete declaration of make_grops_output.
12185         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
12186         by default. -n sets it to 0.
12187         (usage): Corresponding changes.
12188         * groff.c (main): Don't pass -x or -p to pic.
12189         * groff.sh: Likewise.
12191         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
12192         to be non-zero.
12194         * ps/devps/afmtodit: Change calculation of asc_boundary and
12195         desc_boundary.  Make these bounds inclusive.
12196         * ps/devps: Regenerate font files.
12198 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
12200         * macros/tmac.latin1: New file.
12201         * macros/tmac.tty-char: Use tmac.latin1.
12202         (tmac.tty-tr): Deleted.
12203         * macros/Makefile: Install tmac.latin1.
12204         * macros/tmac.dvi: Use tmac.latin1.
12205         * macros/troffrc: Translate \[char160] onto no-break space here.
12206         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
12208 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
12210         * macros/tmac.Xps: Use `do' request.
12212         * macros/tmac.ps: Use `do' request.
12214         * macros/tmac.e (@C): Use `do' request.
12216         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
12217         * macros/Makefile: Install tmac.X*.
12219         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
12220         * tty/Makefile: Don't install tmac.tty*.
12221         * macros/Makefile: Install tmac.tty*.
12223         * dvi/tmac.dvi: Move to macros.
12224         * dvi/Makefile: Don't install tmac.dvi.
12225         * macros/Makefile: Install tmac.dvi.
12227         * ps/tmac.ps*: Move to macros.
12228         * ps/Makefile: Don't install tmac.ps*.
12229         * macros/Makefile: Install tmac.ps*.
12231         * eqn/box.c: Provide draw_lines parameter corresponding to -D
12232         option.
12233         * macros/eqnrc: Set draw_lines parameter based on device.
12234         * groff.c: Don't pass -D flag to eqn.
12235         * groff.sh: Likewise.
12236         * eqn/main.c: Warn about use of -D.
12238         * troff/input.c (process_startup_file): New function.
12239         (main): Call process_startup_file().
12240         * macros/troffrc: New file.
12241         * macros/Makefile: Install troffrc.
12242         * groff.c (main): Don't pass extra -m option to troff. For a 
12243         pseudo device pass the name of the pseudo device to troff using
12244         -d.
12245         * groff.sh: Likewise.
12246         * groff.c (possible_command::prepend_arg): Deleted.
12248         * troff/input.c (do_request): New function.
12249         (init_input_requests): Bind "do" to do_request.
12251         * eqn/main.c (main): Instead of loading eqnchar from device directory,
12252         load eqnrc from macro directory.
12253         * macros/eqnrc: New file.
12254         * macros/Makefile: Install eqnrc.
12255         * ps/devps/eqnchar: Deleted.
12256         * ps/devps/Makefile: Don't install eqnchar.
12257         * dvi/devdvi/eqnchar: Deleted.
12258         * dvi/devdvi/Makefile: Don't install eqnchar.
12259         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
12260         variable optM.
12262         * lib/device.[ch]: New files.
12263         * lib/font.h (font::set_device_name, font::get_device_name):
12264         Deleted.
12265         * lib/fontfile.c: Use device.h.
12266         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
12267         * troff/input.c: Delete definition of `device'.
12268         (main): Don't initialize device.
12269         * troff/troff.h: Include device.h rather than declaring device.
12270         * troff/Makefile: No need to handle DEVICE.
12271         * driver/input.c: Include device.h. Don't use
12272         font::{set,get}_device_name.
12273         * groff.c, Makefile: Rename device.h to config.h.
12274         * groff.c: Use library device variable.
12275         * eqn/main.c: Use library device variable.
12276         * eqn/Makefile: No need to handle DEVICE.
12278         * lib/searchpath.[ch]: New files.
12279         * lib/Makefile: Handle searchpath.[ch].
12280         * troff/input.c (open_file, init_dirs): Deleted.
12281         (macro_dirs): Deleted.
12282         (open_mac_file, macro_source): Use class search_path.
12283         (add_string, struct string_list): Move definition.
12284         (main): Change -M option to use macro_path. Delete call to
12285         init_dirs().
12286         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
12287         Rewrite to use class search_path.
12288         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
12289         * lib/Makefile: fontfile.c depends on searchpath.h.
12290         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
12291         MACROPATH.
12292         * lib/macropath.[ch]: New files.
12293         * troff/Makefile: No need to handle MACROPATH.
12295         * troff/input.c: Delete DUMP code.
12296         * lib/fontfile.c, lib/font.h: Delete
12297         font::forget_command_line_font_dirs.
12299         * troff/input.c (push_token): New function.
12300         (handle_first_page_transition): Use push_token().
12301         (process_input_stack): Change handling of a space at the beginning
12302         of the line.
12304 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
12306         * troff/input.c (font_dirs): Delete unused variable.
12308         * eqn/lex.c (do_set): Correct error messages.
12310 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
12312         * troff/input.c (do_define_string): Allow the string name to be
12313         followed immediately by a tab.
12314         (define_character): Likewise.
12316 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
12318         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
12319         be negative.
12321         * troff/input.c (input_iterator::is_file): New virtual function.
12322         (file_iterator::is_file): New function.
12323         (input_stack::end_file): New function.
12324         (input_stack::next_file): Handle the situation where there is no
12325         file on the input stack correctly.  Avoid making two passes over
12326         the input stack.
12327         (next_file): Make the filename optional; in this case call
12328         input_stack::end_file().
12330 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
12332         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
12333         produce a real _ charater when the current font is CW and _
12334         otherwise.
12336         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
12337         expression to work around gcc 2.2 bug.
12339 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
12341         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
12343         * troff/env.c (environment::add_padding): New function.
12344         (environment::add_char): Use add_padding().
12345         (environment::space): Likewise.
12346         (environment::wrap_up_field): Add some padding if there is none
12347         and there's no current tab.
12348         * troff/env.h: Declare environment::add_padding.
12350 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
12352         * pic/pic.y: undef fmod and rand before declaring them.
12354 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
12356         * troff/input.c (main): If the DESC file specifies a font name of
12357         0, then leave the corresponding font position empty.
12359         * nroff.sh: New file.
12360         * Makefile (install.nobin): Install nroff.sh.
12362         * tty/devlatin1/R.proto: Add ao as synonym for de.
12363         * tty/tmac.tty-char: Define ao as o.
12365         * tty/dev{ascii,latin1}/R.proto: Add aq.
12366         * tty/tmac.tty-char: Delete definition of aq.
12368 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
12370         * troff/input.c (init_charset_table): Don't translate 0240.
12371         * ps/tmac.ps: Translate char160 to space.
12372         * dvi/tmac.dvi: Likewise.
12373         * tty/tmac.tty: Likewise.
12375 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
12377         * dvi/tmac.dvi: Add support for all Latin-1 characters.
12379         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
12380         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
12381         \(oe, \(r?, \(r!.
12383         * tty/tmac.tty-char: Add \(ah.
12385         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
12386         No need to define \(FM and \(!/. Conditionalize all character
12387         definitions.
12389         * ps/devps/lgreekmap: Add +h, +f, +p.
12391         * ps/tmac.psnew: New file.
12392         * ps/Makefile: Install tmac.psnew.
12394         * troff/input.c (charinfo_to_node_list): Don't ever interpret
12395         character definitions in compatible mode.
12397         * troff/input.c (remove_character): New function.
12398         (init_input_requests): Bind remove_character to "rchar".
12400         * ps/tmac.psold: New file.
12401         * ps/Makefile: Install tmac.psold.
12402         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
12403         characters into tmac.psold.  Make these definitions unconditional.
12405         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
12407         * ps/tmac.ps: Don't define \('c and \('C.
12409         * ps/devps/textmap: Move Greek characters to...
12410         * ps/devps/symbolchars:
12412 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
12414         * ps/devps/text.enc: Add quotesingle.
12415         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
12416         * tty/tmac.tty-char: Likewise.
12417         * dvi/devdvi/texmi.map: Add +h, +f, +p.
12418         * dvi/devdvi/texi.map: Add Fn.
12419         * dvi/devdvi/msam.map: Add lz.
12420         * dvi/tmac.dvi: Handle Bq, bq, aq.
12422         * pic/lex.c (get_token): Recognize 'th.
12423         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
12425 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
12427         * ps/devps/textmap: Move di, mu, +- to...
12428         * ps/devps/symbolchars:
12430         * macros/tmac.s (@XS): Don't call par@reset or fi.
12431         (XA): Call LP. Turn off adjustment. Reduce line length.
12433         * macros/tmac.s: Initially alias XS to LP.
12434         (XS): Rename to @XS.
12435         (cov*ab-init): Alias XS to @XS.
12437 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
12439         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
12440         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
12441         (token::is_size, token::changes_env): Deleted.
12442         * troff/number.c (parse_term): No need to process \s explicitly.
12443         Call tok.next() only after scale indicator has been processed.
12444         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
12445         \f etc explicitly.
12446         (token::next): Handle \s, \f, \S, \H immediately rather than
12447         returning them as tokens.
12448         (token::operator==, token::description, token::add_to_node_list,
12449         token::process): Remove handling of deleted tokens.
12451         * troff/env.c (environment::add_char): When adding padding
12452         indicator character, call start_line() if necessary.
12454 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
12456         * ps/devps/afmtodit: Don't output 0 kerns.
12458         * ps/devps/afmtodit: Remove directory from name of encoding in
12459         font description file.
12461         * ps/devps/afmtodit: Improve error messages.
12463         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
12465         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
12466         * ps/devps/FontMakefile: Deleted.
12467         * ps/devps/afmname: New file.
12469         * ps/devps/symbol.sed: New file.
12470         * ps/devps/symbol.diff: Deleted.
12471         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
12472         Generate zapfdr.afm from zapfd.afm.
12474         * tty/tmac.tty (tty-char): Prefix definition with ".
12476         * macros/tmac.an (TP): Don't start a diversion if one has already
12477         been started.
12479         * tty/tmac.tty-char: Add Latin-1 characters.
12481         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
12483 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
12485         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
12486         Move declaration of struct horizontal_span.
12488         * tbl/table.c (table::table): Initialize span_list.
12489         (table::~table): Delete span_list.
12491         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
12493         * ps/devps/Makefile: Avoid dependency on GNU make.
12495         * ps/tmac.ps: Check that character does not already exist before
12496         defining it.
12498         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
12499         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
12500         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
12501         files.
12503         * tty/tmac.tty-char: New file.
12504         * tty/Makefile: Install tmac.tty-char.
12505         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
12506         tmac.tty-char.
12508         * tty/tmac.tty: Fix definition of \(34.
12510         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
12511         bracket-drawing characters onto |. Add *o.
12513         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
12514         only if current_field.
12516         * troff/dictionary.c (dictionary::lookup): Free old_table after
12517         rehashing. 
12519 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
12521         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
12522         whose glyphs are identical to glyphs of some Roman character.
12524         * tty/devlatin1/R.proto (bu): Deleted.
12525         * tty/devascii/R.proto (bu): Deleted.
12526         * tty/tmac.tty: Add definition of \(bu.
12528         * eqn/main.c (do_file): Pass FILE as argument.
12529         (main): Automatically load eqnchar.  New options -F and -n.
12530         Pass do_file an opened FILE.
12531         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
12532         No need to include font.h.
12533         * groff.sh: Likewise.  Don't need to use - for standard input.
12534         Prefix files with -- if first file starts with -.
12536         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
12538         * troff/env.c (environment::possibly_break_line): Don't set line
12539         to 0 across call to output_line().  Don't call output_line() until
12540         after discarding nodes after break.
12542 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
12544         * request.h (macro::empty): Declare it.
12545         * input.c (macro::empty): New method.
12546         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
12547         macro is empty.
12549 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
12551         * troff/env.c (environment::start_field): Decrement space_total
12552         when a space is frozen.
12554 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
12556         * macros/tmac.an (R): Delete macro.
12558         * troff/input.c (get_copy, token::next): Support \# (like \" but
12559         newline is ignored).
12561         * troff/input.c (token::next): Fix error message in 'Y' case.
12563 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
12565         * eqn/delim.c (define_extensible_string): Recognize any prefix of
12566         a delimiter name.
12568 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
12570         * c++test.c: Include <osfcn.h>.
12572         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
12573         <errno.h> doesn't.
12575 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
12577         * tbl/table.c (table::divide_span): Don't count column separation
12578         if expand was specified.
12580         * tbl/main.c (process_format): Don't ignore width specs in
12581         continued format.  Give warning for changing equal widths or
12582         column separation in continued format.
12583         (process_data): Set column separation, minimum width, equal
12584         columns at end of table.
12586 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
12588         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
12589         node::add_discretionary_hyphen): Use soft_hyphen_char.
12590         (set_soft_hyphen_char): New function.
12591         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
12593         * Makefile (c++tested): Give more helpful message if test fails.
12595 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
12597         * troff/input.c (init_charset_table): Translate 0240 to
12598         an unbreakable space.
12600         * troff/token.h (token::hyphen_indicator): New function.
12601         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
12602         translation.
12603         * troff/input.c (translate): Allow translation to \%.
12604         * troff/node.c (node::add_char): Handle
12605         TRANSLATE_HYPHEN_INDICATOR.     
12606         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
12608         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
12609         for \(hy.
12611         * tty/devlatin1/R.proto: \(hy and - should print as 055.
12613 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
12615         * groff.c (run_commands): If the last command gets a SIGPIPE send
12616         a SIGPIPE to all children than haven't yet terminated.  When
12617         command terminates, set pid field to -1.
12619 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
12621         * groff.c (main): Pass an appropriate -filename option to gxditview.
12623 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
12625         * Makefile.bd (install): Remove existing program before copying.
12627         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
12628         programs which have Unix counterparts to be installed with
12629         user-specified prefix.
12631         * troff/input.c (exit_troff): Don't check if exit_started.
12632         (exit_request): Don't call exit_troff if exit_started.
12634         * Makefile.bd (install.mm): Rename to install.dwbmm.
12636 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
12638         * driver/input.c (do_file): Add missing break for '#' case.
12640 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
12642         * troff/input.c (input_stack::clear):  Clear past any boundaries and
12643         then add the boundaries back.
12645         * troff/input.c (exit_troff): Return immediately if already
12646         exiting.
12648         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
12649         end macro.
12650         (pg*end-page): If the text has ended and there are no more
12651         footnotes or keeps, exit.
12653         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
12655         * troff/input.c (init_charset_table): Make \(rq transparent by
12656         default.
12658         * macros/tmac.an: Define lq and rq strings.
12660         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
12662 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
12664         * troff/env.c (environment::final_break): New function.
12665         (environment::newline): Set prev_line_interrupted to 2 if
12666         exit_started.
12667         * troff/env.h: Declare environment::final_break.
12668         * troff/input.c (exit_troff): Call environment::final_break()
12669         instead of environment::do_break().
12671         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
12672         doesn't already exist.
12673         * macros/man.local: New file.
12674         * macros/tmac.an: Load man.local.
12675         * macros/man.ultrix: New file.
12677 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
12679         * troff/input.c (exit_groff): Rename to...
12680         (exit_troff): New function.
12682         * troff/div.c (exit_started, done_end_macro,
12683         seen_last_page_ejector): New global variables.
12684         (began_page_in_end_macro): New static variable.
12685         (exit_flag): Deleted.
12686         (top_level_diversion::top_level_diversion): Initialize
12687         last_page_count.
12688         (top_level_diversion): More elaborate test for whether
12689         cleanup_and_exit() should be called.
12690         Set began_page_in_end_macro if the end macro isn't yet finished.
12691         * troff/div.h (top_level_diversion::last_page_count): New data
12692         member.
12693         (top_level_diversion::set_last_page): New function.
12694         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
12695         * troff/env.c (do_break): Zero prev_line_interrupted.
12696         * troff/input.c (exit_flag): Delete declaration.
12697         (LAST_PAGE_EJECTOR): New magic cookie.
12698         (token::next): Handle LAST_PAGE_EJECTOR.
12699         (exit_groff): Set exit_started and done_end_macro instead of
12700         exit_flag.  Call top_level_diversion::set_last_page.  Push a
12701         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
12702         another ejection after setting seen_last_page_ejector.
12704 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
12706         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
12708         * macros/tmac.e (TH): Make sure there's room for the initial
12709         header.
12711         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
12712         Set FVS in points rather than units.
12714 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
12716         * troff/div.c (top_level_diversion::add_trap): Don't consider the
12717         position of empty slots.
12719 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
12721         * ps/devps/S: Fix height and depth of parenrightex.
12722         * ps/devps/symbol.diff: Regenerate.
12724 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
12726         * tmac.e (u): Do underlining as in -mgs.
12728 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
12730         * tty/tty.c (tty_printer::end_page): If overstriking is
12731         suppressed, still turn overstruck horizontal and vertical lines
12732         into +.
12734         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
12735         2.1.
12737         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
12739 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
12741         * Version 1.05 released.
12743 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
12745         * tty/tty.c: Instead of keeping an array of glyphs and then
12746         sorting it, keep a ordered linked list of glyphs for each line.
12748         * driver/driver.h: Include stddef.h.
12750         * tty/tty.c (compare_glyph):
12751         * refer/refer.c (rcompare):
12752         * troff/env.c (compare_ranges): Arguments of qsort comparison
12753         function should be const void *.
12755         * troff/number.c (parse_term):
12756         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
12757         switch statement.
12759         * refer/label.y (consider_authors): Don't access variables
12760         constructed under a condition outside that condition: put braces
12761         round for statement containing declaration; redeclare use of same
12762         variable later.
12764         * pic/pic.y (text_expr): Delete production that allows
12765         parenthesised text_expr.
12766         (expr): Allow a conditional_expr to appear in parentheses.
12767         (conditional_expr): Rename to any_expr.
12769         * mm: Install new version 1.01 from jh.
12771         * lib/font.c (font::get_width): Cache scaled widths.
12772         (font::font): Initialize widths_cache.
12773         (font::~font): Destroy widths_cache.
12774         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
12776 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
12778         * c++test.c, c++test.ref: New files.
12779         * Makefile: Check that the C++ compiler works.
12781         * ps/tmac.pspic (PSPIC): Do a break.
12783         * ps/tmac.ps: Move definition of PSPIC into...
12784         * ps/tmac.pspic: New file.
12785         (PSPIC): Draw box around picture, but make it invisible to grops.
12786         * ps/tmac.ps: Load tmac.pspic.
12787         * ps/Makefile: Install tmac.pspic.
12789 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
12791         * lib/font.c (scale_round): If n is negative,
12792         subtract .5 before truncating floating point result.
12794         * lib/fontfile.c: Include <errno.h>.
12796 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
12798         * driver/input.c (get_char): Inline. Don't update current_lineno.
12799         Change callers to up date current_lineno if necessary.
12800         Use get_char() instead of getc(current_file).
12802 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
12804         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
12806 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
12808         * tty/tty.c (tmac.tty): Define \(rg as (R).
12810 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
12812         * lib/lib.h: New define a_delete.
12813         * Use a_delete instead of delete when deleting an array of objects
12814         without destructors.
12816         * lib/lib.h: Rename adelete to ad_delete.
12817         * Change uses of adelete.
12819 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
12821         * eqn/eqn.y: Include lib.h.
12823         * troff/node.c (grow_font_table): Delete old_font_table.
12825         * mm: Install new version from jh.
12827 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
12829         * tbl/table.h (format_type): Make global instead of local to class
12830         entry_format.  Prefix enumerators with FORMAT_.
12831         * tbl/table.c, tbl/main.c: Corresponding changes.
12832         * refer/token.h (token_type): Make global.  Prefix enumerators
12833         with TOKEN_.
12834         * refer/token.[ch]: Corresponding changes.
12835         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
12837         * troff/div.c (node::set_vertical_size): Don't name argument.
12839 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
12841         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
12842         * lib/lib.h: Define adelete accordingly.
12843         * pic/object.c (graphic_object::graphic_object):
12844         * tbl/main.c (format::~format):
12845         * tbl/table.c (table::~table):
12846         * refer/ref.c (reference::~reference, reference::merge,
12847         reference::insert_field, reference::delete_field): Use adelete.
12849         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
12850         * refer/token.h:
12851         * tbl/table.h: Corresponding changes.
12853         * common.c (common_output::dashed_arc, common_output::dotted_arc):
12854         Ensure total_angle is positive.
12856 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
12858         * refer/ref.c (reference::merge, reference::insert_field,
12859         reference::delete_field): Avoid delete[0].
12861         * refer/token.c (init_special_chars): Move calls to cmupper
12862         outside calls to init_two_char_letter to work around bug in gcc
12863         2.0.
12865 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
12867         * lib/new.c (operator new): Use __builtin_new for g++.
12869         * pic/object.c (graphic_object::~graphic_object):  Don't use
12870         delete [] on 0.
12872         * pic/object.c (output::compute_scale): Initialize max_width and
12873         max_height.
12875 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
12877         * troff/input.c (write_request): Call fflush.
12879         * troff/node.h (class composite_node): Move declaration to node.c
12880         * troff/input.c (charinfo_to_node): Rename to ...
12881         (charinfo_to_node_list): Return node list rather than composite
12882         node.
12883         * troff/node.c (make_composite_node): New function.
12884         (make_node, add_char): Call make_composite_node instead of
12885         charinfo_to_node.
12886         (class composite_node): Add a tfont * member.  Delete font_size
12887         member.
12888         (composite_node::composite_node, composite_node::copy,
12889         composite_node::size): Corresponding changes.
12890         (composite_node::tprint): Provide constant spacing, emboldening
12891         and track kerning as specified in tfont.
12892         (composite_node::width): Change width calculation accordingly.
12893         * troff/env.h (environment::composite): New member.
12894         (environment::is_composite, environment::set_composite): New
12895         functions.
12896         * troff/env.c (environment::environment): Initialize composite.
12897         * troff/input.c (charinfo_to_node): Call
12898         environment::set_composite.
12899         * troff/node.c (make_composite_node, make_glyph_node): Use the
12900         plain version of the tfont if the environment is composite.
12902         * troff/node.c (font_info::get_space_width): Additional argument
12903         giving space_size.  Handle constant space correctly. Scale by
12904         space_size unless constant spaced.
12905         (env_sentence_space_width): New function.
12906         * troff/node.h: Declare it.
12907         * troff/env.h (environment::get_space_size,
12908         environment::get_sentence_space_size,
12909         environment::get_narrow_space_width,
12910         environment::get_half_narrow_space_width): Make inline.
12911         (environment::get_space_width): Make inline.  Just call
12912         env_space_width.
12913         * troff/env.c: Delete definitions for funtions made inline.
12914         (environment::space_newline, environment::space): Use
12915         env_sentence_space_width(). Don't scale by space_size.
12916         * troff/node.h: Move declarations of env*space_width() functions
12917         into env.h.
12919 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
12921         * macros/tmac.s (PS): Don't try to set negative indent.
12923 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
12925         * pic/pic.y: Fix min function.
12927 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
12929         * man/mdate.sh: Clear LANGUAGE.
12931 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
12933         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
12934         * pic/lex.c: New COMMAND keyword.
12935         * pic/pic.y (print_args, print_arg): New rules.
12936         (placeless_element): Use print_args for PRINT.
12937         New COMMAND element.
12939 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
12941         * troff/input.c (terminal): Handle missing argument correctly.
12943         * pic/pic.y (text_expr): New rule.
12945         * pic/pic.y: Implement := operator.
12947 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
12949         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
12950         mdoc.
12952 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
12954         * ps/devps/dingbatsrmap: Include this in the distribution.
12956         * macros/tmac.doc: Replace with new version from 2nd Networking
12957         Release. Fix loading of doc-* files.
12958         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
12959         * macros/tmac.doc.old: New file.  Apply fixes that had been
12960         applied to old tmac.doc.
12961         * macros/tmac.andoc: Check that we're running under groff.
12962         * macros/Makefile: Rework.
12964 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
12966         * tbl/table.h (format_type): 
12967         * refer/token.h (token_type): If NESTED_TYPES is defined, use
12968         typedef to make these types visible at file scope.
12969         * Makefile: Add NESTED_TYPES configuration option.
12971         * troff/div.c (mark): At the top level use the value of
12972         nl_reg_contents rather than the current vertical position.
12974 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
12976         * tty/tty.c: Implement \D for horizontal or vertical lines.
12977         (tty_printer::set_char): Use vec_used+2 as serial number.
12978         Don't allow size of vector to exceed USHRT_MAX-2.
12979         Split off part into...
12980         (tty_printer::add_char): New function.
12981         (tty_printer::draw): New function.
12982         (compare_glyph): Handle equal serial numbers.
12983         (tty_printer::end_page): Handle overstruck characters from \D.
12984         (main, usage): Implement -d option.
12986 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
12988         * tbl/main.c (process_format):
12989         * eqn/text.c (split_text):
12990         * troff/input.c (token::next): Use inner block for declarations
12991         with initializers in switch statement.
12993 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
12995         * pic/common.c (common_output::dash_line): Cope with zero-length
12996         lines.
12998 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
13000         * Version 1.04 released.
13002 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
13004         * macros/tmac.an (TH): Define a macro an-init to define variables
13005         based on command line arguments.
13006         (an-header): Call it.
13008 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
13010         * Makefile (install.mm): Rename to install.dwbmm.
13012         * Makefile: Integrate mm.
13013         * mm: New directory.
13015 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
13017         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
13018         <sys/types.h>.
13020         * pic/troff.c (troff_output::simple_spline,
13021         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
13022         shadowing parameter.
13024         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
13026         * lib/ptable.h: Add explicit casts when converting from unsigned
13027         long to unsigned.
13029         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
13030         * dvi/devdvi/Makefile: Install SA, SB.
13032         * refer/indxbib.c: Add declaration of mktemp.
13034         * refer/lookbib.c: Add declaration of isatty.
13036 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
13038         * pic/lex.c (interpolate_macro_with_args):  While collecting
13039         arguments, keep track of whether we're in a string.
13041 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
13043         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
13044         down with \v, so as to avoid problems with top of page trap
13045         setting no space mode.
13047 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
13049         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
13051 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
13053         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
13054         Improve error message.
13056 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
13058         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
13059         printf("%03o");
13061 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
13063         * groff.c (possible_command::execp): Always use _exit() after a
13064         failed exec.
13066         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
13067         NO_SYS_WAIT_H   configuration options.
13068         * groff.c: Use these options.  Use POSIX-style macros to extract
13069         fields from the status returned by wait().
13071 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
13073         * tbl/table.c (table::compute_separation_factor): Allow the
13074         separation factor to drop to 0.
13076 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
13078         * refer/search.c: Include <errno.h>.
13080 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
13082         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
13084         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
13085         C++. 
13087         * pic/lex.c (input_stack::bol): Move definition out of class body.
13089         * pic/main.c: On MSDOS munge argv[0].
13091         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
13093         * lib/ptable.c (hash_string): Use unsigned long rather than
13094         unsigned.
13095         (next_ptable_size): Use unsigned rather than int.  Give an error
13096         message if we've hit the largest table size.
13097         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
13098         table size.
13100         * pic/object.h (object_spec): Make flags unsigned long.  Declare
13101         flags as const unisgned long rather than as enums.
13103         * pic/output.c: Deleted.
13105         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
13107         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
13108         Add additional argument.
13109         (line_entry::note_double_vrule_on_{left,right}): Set value of
13110         douvle_vrule_on_{right,left} flag according to argument.
13111         (simple_line_entry::simple_print,
13112         simple_line_entry::double_line_print): If adjacent to double vrule
13113         on a corner extend rather than shorten the rule by half the double
13114         vrule sep.
13116         * troff/number.c (parse_term): In checking for overflow, handle the
13117         case where the current horizontal position is negative.
13119 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
13121         * pic/object.c (draw_arrow): Check for object having zero length.
13123 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
13125         * eqn/main.c (do_file): Split off inline equation handling into...
13126         (inline_equation): New function.  Search for starting delimiter
13127         using...
13128         (delim_search): New function. Don't recognize a delimiter that
13129         occurs in the name of an escape sequence, number register, string
13130         etc.
13132 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
13134         * eqn/delim.c (delim_box::compute_metrics): Don't call
13135         define_extensible_string if left is 0.
13136         (delim_box::output):  Don't print the left delimiter if left is 0.
13137         (delim_box::debug_print): Check for left == 0 before calling printf.
13139 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
13141         * troff/Makefile (majorminor.c): Include only digits in
13142         minor_version.
13144 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
13146         * refer/dirnamemax.c: new file.
13147         * refer/genlimits.c: Deleted.
13148         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
13149         Don't check path length.
13150         * refer/Makefile: Add dir_name_max.o; delete genlimits.
13151         * Makefile: Add PATHCONF_MISSING option.
13153         * refer/indxbib.c (get_cwd): New function.
13154         (main): Use get_cwd().
13155         * lib/getcwd.c: New file.
13156         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
13157         GETCWD in SUBFLAGS.
13158         * lib/Makefile: Compile getcwd.o.
13160         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
13161         userdict.
13163         * refer/indxbib.c (main): Check success of mktemp.
13165         * lib/tmpfile.c: New file.
13166         * lib/Makefile: Add tmpfile.c.
13167         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
13168         * ps/ps.h: Delete declaration of mktemp().
13169         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
13170         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
13171         * driver/driver.h: No need now to include errno.h.
13173         * everywhere: Set errno to 0 before calling fopen().
13175         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
13176         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
13177         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
13179 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
13181         * troff/env.h (translate_space_to_dummy): Declare it.
13182         * troff/env.c (environment::space_newline, environment::space):
13183         If translate_space_to_dummy is set then make the width of spaces 0.
13184         * troff/input.c (translate): If the second character of a
13185         translation is a space, translate to unbreakable space.  If the
13186         first character is a space, set or clear translate_space_to_dummy
13187         according to whether the second character is \&.  Weird!
13189 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
13191         * groff.c (run_commands): Don't use non-zero exit code because a
13192         command gets SIGPIPE.
13194         * groff.c, groff.sh: Use -mXps with -TXps.
13196         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
13197         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
13198         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
13199         (ps_printer::special): New specials invis and endinvis.
13200         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
13201         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
13202         (ps_printer::end_page): Check that invis_count == 0.
13203         (ps_printer::invis_count): New member.
13204         (ps_printer::ps_printer): Initialize invis_count to 0.
13206         * troff/env.c (environment::hyphenate_line): Hyphenation
13207         indicator at beginning of word inhibits splitting after -, \(em
13208         etc.
13210         * pic/pic.y (element): Allow another element to follow } without
13211         any intervening separator.
13213 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
13215         * pic/lex.c (get_delimited): Allow tabs before delimiter.
13217 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
13219         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
13220         declaration of wait() in header files.
13221         * Makefile: Get rid of -DHAVE_UNION_WAIT.
13223         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
13225         * lib/lib.h: Declare return type of strerror as char *.
13227         * man/Makefile: Add g flag to sed substitutions.
13228         * Makefile (shgroff, bindist): Likewise.
13230 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
13232         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
13233         * ps/devps/prologue (PBEGIN): Define showpage after pushing
13234         userdict.
13236 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
13238         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
13239         userdict.
13241 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
13243         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
13244         group.
13246 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
13248         * troff/input.c (define_number_reg):  If currently undefined,
13249         don't define it if the argument is an invalid expression.
13251         * Makefile: Ignore return value of `if' commands without `else'
13252         parts.
13254         * Makefile: Split up CPPDEFINES into a series of separate
13255         configuration options.
13257         * troff/input.c (init_registers): Use time_t instead of long
13258         unless LONG_FOR_TIME_T is defined.  Use returned result rather
13259         than passing pointer.
13260         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
13262         * lib/Makefile (fontpath.h): Use gendef.
13264 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
13266         * troff/input.c (input_iterator::shift): Delete argument name.
13267         * troff/node.c (suppress_output_file::really_begin_page,
13268         suppress_output_file::really_transparent_char, node::ascii_print,
13269         node::tprint): Delete names of unused arguments.
13271 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
13273         * refer/label.y (string):  Pass $4 to command_error.
13275 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
13277         * Version 1.03 released.
13279 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
13281         * Makefile: Pass definition of SHELL in SUBFLAGS.
13283         * gendef: New file.
13284         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
13285         ps/Makefile: Use gendef to construct header files that are
13286         constructed from the Makefile.
13288         * macros/Makefile: make all should build stripped version of tmac.e.
13290         * refer/Makefile (clean): Remove y.output.
13292 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
13294         * ps/pfbtops.c (main): Add -v option which prints out a version
13295         number.
13296         * ps/Makefile (pfbtops): Link with libgroff.a.
13298 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
13300         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
13301         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
13303         * refer/lkbib.c (main): Always terminate reference with blank
13304         line.
13305         * refer/lookbib.c (main): Likewise.
13307         * refer/linear.c (file_buffer::load): Check that the file is not a
13308         binary file.
13310         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
13311         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
13312         Delete second inclusion of <sys/param.h>.
13314 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
13316         * troff/token.h (token::special): Deleted.
13318         * tbl/main.c (process_format): Rework so that opt->tab_char is
13319         recognized only when appropriate.
13321         * ps/Makefile (clean): Remove pfbtops.
13323 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
13325         * lib/font.c (text_file::next): Don't return if we have got a
13326         blank line.
13328 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
13330         * refer/refer.c (store_reference): Get hash code from old_table[i]
13331         when rehashing the table.
13333 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
13335         * eqn/box.c (box::top_level): Save size and prev size using \R and
13336         restore it afterwards. Set the size to the size at the beginning
13337         of the line.
13338         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
13339         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
13341         * refer/Makefile (limits.h): Use ./genlimits.
13343 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
13345         * refer/index.c: Delete declarations of stat() and fstat().
13347 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
13349         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
13351 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
13353         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
13355 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
13357         * troff/input.c (token::get_char): Handle \e.
13359         * refer/linear.c: Delete declarations of fstat() and stat().
13361 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
13363         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
13364         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
13366 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
13368         * troff/input.c (do_define_macro): Improve error handling for end
13369         of file while defining macro.
13371 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
13373         * eqn/box.h: Fix declaration of set_gsize.
13374         * eqn/box.c (set_gsize): Make argument const char *.
13375         (gsize): Declare as char *.
13376         * eqn/main.c (main): Don't convert gsize to int.
13377         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
13379         * Version 1.02 released.
13381 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
13383         * macros/tmac.andoc: New file.
13384         * macros/Makefile: Install tmac.andoc.
13386         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
13387         operator new and delete on OP_DELETE_BROKEN not being defined.
13388         * Makefile: Mention OP_DELETE_BROKEN.
13390 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
13392         * Makefile (bindist): Pass SUBFLAGS.
13394 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
13396         * Makefile, groff.c: Pass definitions to groff.c via device.h.
13398         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
13399         parameter.
13401         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
13403         * ps/ps.h, ps/psrm.c: Make comment_table and
13404         header_comment_table local to resource_manager::process_file.
13406         * groff.sh: With -TXps pass -printCommand option to gxditview.
13408         * groff.c (possible_command::print): Implement using
13409         append_arg_to_string.
13411         * xditview: Merge in new implementation with own ChangeLog.
13413 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
13415         * groff.c (main): Implement PRINT_OPTION.
13416         (append_arg_to_string): New command.
13417         (device_table): Set PRINT_OPTION flag for Xps.
13419 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
13421         * troff/groff.h: Rename to troff.h.
13423         * pic/lex.c (lookup_keyword, docmp): New functions.
13424         (get_token): Use new lookup_keyword.
13425         Don't include key.h.
13426         * pic/key.[ch], pic/pic.gperf: Deleted.
13427         * pic/Makefile: Remove gperf stuff.
13429         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
13430         into output.h.
13431         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
13433         * troff/Makefile, troff/node.c: Move definition of
13434         STORE_WIDTH into node.c.
13436         * etc/grog.pl, etc/grog.sh: Support -mdoc.
13438 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
13440         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
13441         dvi/devdvi/texb.map: Add lq and rq.
13442         dvi/devdvi: Regenerate fonts.
13443         * ps/devps/textmap: Add lq and rq.
13444         * ps/devps: Regenerate fonts.
13445         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
13446         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
13448         * pic/object.c (position_rectangle): When checking radius
13449         cope with possiblity that width or height is negative.
13450         (box_object::box_object): Have separate xrad and yrad with
13451         signs matching signs of dim components.
13452         (box_object::{north,south}_{east,west}): Use xrad and yrad.
13453         (box_object::print): With rounded boxes use absolute values
13454         for dim and rad arguments.
13456         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
13457         in fontpath.h.
13459         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
13461         * various files: Add explicit destructors to keep Saber CC +d
13462         happy.
13464 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
13466         * eqn/box.c (box::top_level): Restore fonts correctly after
13467         font changes in line containing inline equation.  Also
13468         restore previous font as well as current font.
13469         * eqn/pbox.h: Define necessary string and register names.
13471         * troff/input.c (token::next): Case 'R' calls do_register.
13472         (do_register): New function.
13474 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
13476         * groff.c, groff.sh: Support Xps device.  Allow each device
13477         to have a pseudo_name and a real_name.
13479         * groff.c (run_commands): Don't print `Broken pipe' messages.
13481         * ps/pfbtops.c: New file.
13482         * ps/Makefile: Add pfbtops.
13484         * troff/number.c (parse_term): Improved error message.
13486 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
13488         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
13490         * Makefile: Integrate refer.
13491         * refer: New directory.
13492         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
13493         man/lkbib.man: New files.
13494         * man/Makefile: Support refer man pages.
13496         * lib/lib.h: Declare is_prime.
13497         * lib/prime.c: New file.
13499         * troff/input.c (macro_source): New function.
13500         (init_input_requests): Bind "mso" to macro_source.
13502         * troff/env.c (environment::possibly_break_line): Maintain
13503         pointer to pointer to node to be split in ndp so as to avoid
13504         using address of freed node.
13506         * troff/env.c (environment::hyphenate_line): Maintain pointer to
13507         pointer to first node to be hyphenated in startp so as to
13508         avoid using address of freed node.
13510         * troff/env.c (class trie, class hyphen_trie): Make the
13511         elements of the trie be of type char not unsigned char.
13512         Declare arguments to be const char* instead of unsigned char *.
13513         
13514         * troff/env.c (hyphenate): Initialize hbuf[0].
13516         * troff/input.c (set_string): Declare p to be char * and cast
13517         *p to unsigned char when necessary.
13519         * troff/input.c (do_define_macro): Declare s to be const
13520         char*. Cast element to unisgned char when necessary, Declare
13521         d to be an int.  Handle EOF better.
13523         * troff/Makefile, troff/input.c: Different scheme for passing
13524         definitions of MACROPATH, HYPHENFILE and DEVICE.
13526 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
13528         * tty/devascii/R.proto: Delete entry for em.
13529         * tty/devlatin1/R.proto: Likewise.
13531 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
13533         * troff/input.c (translate): Stop when we get a space. Treat eof
13534         like newline.
13536         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
13538 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
13540         * tbl/main.c (process_format): A font name following a `f'
13541         modifier that starts with a digit can be only one character long.
13542         Also deal with EOF on the second character of the font name.
13544 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
13546         * troff/input.c (token::next): Turn \~ into an
13547         unbreakable_space_node.
13548         * troff/node.c (unbreakable_space_node): New class.
13549         * troff/node.h: Declare it.
13551 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
13553         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
13554         it's >= 0, before outputting it as a single byte.
13556 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
13558         * lib/font.c: Make font_char_metric::code an int.
13559         (font::get_code): Change return type to int.
13560         (font::load): Allow code to be arbitrary integer.
13561         * lib/font.h (font::get_code): Change return type to int.
13562         (font::number_to_index): Change argument type to int.
13563         * troff/input.c (token::next):  In case 'N', allow any value.
13564         Store value in token::val.
13565         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
13566         (token::get_char, token::add_to_node_list, token::process): Get
13567         number from val.
13568         (charinfo::set_number): Change argument to int.
13569         (charinfo::get_number):  Require that NUMBERED flag be set.
13570         (get_charinfo_by_number): Store numbered characters not between 0
13571         and 255 in a dictionary.
13572         * troff/charinfo.h (get_charinfo_by_number): Change argument type
13573         to int.
13574         (charinfo::number): Change type to int.
13575         (charinfo::set_number): Change type of set_number to int.
13576         * troff/node.c (troff_output_file::put_char_width,
13577         troff_output_file::put_char): Test whether character is numbered
13578         using charinfo::numbered().
13579         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
13580         values of num.
13581         * lib/nametoindex.c: New implementation to cope with arbitrary
13582         number characters.
13584         * troff/input.c (token::operator==): Test val for
13585         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
13586         TOKEN_SIZE.
13588         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
13589         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
13591 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
13593         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
13594         variable.
13596         * all Makefiles: rm targets of cp and >.
13598         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
13599         it.
13601         * eqn/lex.c (def_table): Add dollar.
13603 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
13605         * troff/input.c (do_width): Push back newline before closing delim
13606         like do_bracket.
13608 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
13610         * groff.c (possible_command::prepend_arg): New function.
13611         (main): Prepend device -m option.
13612         * groff.sh: Put device -m options before command-line options.
13614 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
13616         * macros/tmac.an (IP): Quote argument to TP.
13618         * ps/ps.c (main): New option -b, which sets...
13619         (broken_flags): New variable.
13620         (ps_printer::~ps_printer): Incorporate the setup section in the
13621         prolog if (broken_flags & NO_SETUP_SECTION).
13622         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
13623         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
13624         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
13625         ps_printer::print_needed_font_comment,
13626         ps_printer::print_supplied_font_comment,
13627         ps_printer::print_include_font_comments,
13628         ps_printer::lookup_doc_font, ps_printer::download_fonts,
13629         ps_printer::read_download_file, read_document_fonts, add_font,
13630         skip_line, parse_fonts_arg, document_font::document_font,
13631         document_font::~document_font, document_font::download,
13632         ps_output::include_file):  Deleted.
13633         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
13634         rather than %!PS-Adobe-2.0.  Make calls to
13635         resource_manager::need_font for each font that we used. Replace
13636         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
13637         print_supplied_font_comment, print_needed_font_comment by call to
13638         resource_manager::print_header_comments. Output %%Orientation
13639         comment. Output %%Requirements: numcopies comment if ncopies > 1.
13640         Don't output the prolog directly.  Instead call
13641         resource_manager::output_prolog.  Only define #copies when ncopies
13642         > 1.  Delete calls to print_include_font_comments  and
13643         download_fonts.  Add call to resource_manager::document_setup.
13644         (ps_printer::do_file): Call resource_manager::import_file instead
13645         of including it ourselves.
13646         (ps_printer::do_import): Likewise.  Also don't call
13647         merge_import_fonts. Push userdict on the dictionary stack before
13648         and pop it afterwards.
13649         Move declaration of ps_output into ps.h.
13650         * ps/psrm.c: New file implementing resource_manager class.
13651         * ps/ps.h: New file declaring ps_output and resource_manager
13652         classes.
13653         * ps/devps/zapfdr.ps:
13654         * ps/devps/symbolsl.ps:
13655         * ps/devps/prologue:  Use 3.0 conventions.
13656         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
13657         Add default definition of BROKEN_SPOOLER_FLAGS.
13658         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
13659         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
13661 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
13663         * etc/grog.pl: New file.
13664         * Makefile (GROG): New variable.
13665         Add GROG to SUBFLAGS.
13666         * etc/Makefile (GROG): New variable.
13667         (install.nobin): Install $(GROG) rather than grog.sh.
13669 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
13671         * eqn/special.c (special_box::compute_metrics): Make the input and
13672         output strings the same.  Get the new height and depth from the
13673         predefined height and depth registers.  Also make subscript kern
13674         and skew available.
13675         (special_box::compute_subscript_kern, special_box::compute_skew):
13676         New functions.
13678         * eqn/box.c (pointer_box::compute_skew,
13679         simple_box::compute_metrics, box::top_level)
13680         * eqn/text.c (prime_box::compute_metrics,
13681         prime_box::comput_subscript_kern)
13682         * eqn/limit.c (limit_box::compute_metrics):
13683         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
13684         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
13685         negative numbers in `nr' requests with a leading 0.
13687 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
13689         * eqn/special.c: New file.
13690         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
13691         Add new rule for simple.
13692         * eqn/lex.c (token_table): Add SPECIAL.
13693         * eqn/box.h: Declare make_special_box.
13694         * eqn/Makefile: Add special.[co].
13696 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
13698         * ps/devps/prologue: Possibly set packing to true while defining.
13699         Create grops dictionary here.  Initialize local variables before
13700         defining procedures.
13701         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
13702         the dictionary stack. Set strokeadjust and overprint to false if
13703         the relevant operators are defined.
13704         (PEND): New procedure.
13705         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
13706         prologue.  Do everything else in the setup section.
13707         (ps_printer::do_import): Just call PBEGIN and PEND around the
13708         picture. Also push userdict before, and pop it afterwards.
13710 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
13712         * troff/node.c (bracket_node::tprint): Brackets were being printed
13713         1m too low.
13715         * macros/tmac.an (SH, SS): Set fill mode.
13717 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
13719         * troff/div.c (top_level_diversion::begin_page): Set
13720         high_water_mark to 0.
13722 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
13724         * man/mdate.sh: New file.
13725         * man/mdate.c: Deleted.
13726         * man/Makefile: Use mdate.sh instead of mdate.
13727         (mdate): Deleted.
13729         * eqn/lex.c (do_gsize): Supply missing argument to error message.
13731 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
13733         * man/mdate.c: New file.
13734         * man/*.man: Replace modification date by @MDATE@.
13735         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
13736         (mdate): New target.
13738         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
13739         Remove illegal input characters.
13741 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
13743         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
13745 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
13747         * troff/div.c (begin_page): Change behaviour when
13748         !first_page_begun and !break_flag.
13750         * troff/input.c (do_name_test): Return 0 if argument is empty.
13752         * troff/input.c (read_long_escape_name): Require closing ] to be
13753         at same input level as opening [.
13755         * troff/input.c (read_increment_and_escape_name): New function.
13756         (get_copy, process_input_stack): Use this for \n.
13758 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
13760         * troff/div.c (top_level_diversion::begin_page): Ignore the
13761         current value of page_number if !first_page_begun.
13763         * groff.c (main): Fix declaration of buf.
13765         * troff/input.c (do_name_test): New function.
13766         (token::next): Implement \A.
13767         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
13768         (token::description, token::add_to_node_list, token::process):
13769         Handle TOKEN_ESCAPE.
13770         * troff/token.h: New token TOKEN_ESCAPE.
13772 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
13774         * pic/main.c (do_picture): Allow space before and after filename
13775         following `<'.  Check that the filename is not empty.
13777 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
13779         * Version 1.01 released. 
13781         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
13783         * dvi/tmac.dvi: ftr HR to H.
13785         * macros/tmac.e: Round up computation of $r.
13787         * xditview/tmac.X:  Don't give up completely in compatibility mode.
13788         Use \n(.s instead of \n[.s].
13790         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
13791         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
13792         Add u to factors inside \s[...]. Rename frac to dvi-frac.
13793         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
13794         short names in the char definitions.
13796         * ps/tmac.ps: Don't give up completely in compatibility mode.
13797         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
13798         quote in front of \n(.s. Add u to factors inside \s[...].
13800 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
13802         * tty/tmac.tty: Call the nroff request.
13804         * macros/tmac.e ((x, )x):  Better definitions that work properly
13805         in a diversion.
13806         (@0, @1): Helper macros for (x.
13808         * macros/tmac.e ($s, hl): Use \l rather than \D.
13810         * tty/tmac.tty: Make it work better in compatibility mode.
13811         (pchar): Rename to tty-char.
13813         * macros/tmac.e (@E): New macro.
13814         (r, i, b, rb, bi): Use @E.
13816         * macros/tmac.e (@F): Don't use (;...) syntax.
13818         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
13819         it was modified for groff.
13821         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
13823         * macros/tmac.e (<., .>): Removed.
13824         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
13826         * macros/tmac.e: Remove check that groff is being used.
13828         * macros/tmac.e (@C): Change families only if using groff; turn
13829         compatibility mode off while changing familes. Save compatibility
13830         mode before changing families and restore it afterwards.
13832         * macros/tmac.e (@h): Remove test for offset + line length.
13834         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
13835         (lo, th, ac): Define to call @S instead of using als.
13837         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
13838         the ratio of the vertical spacing to the point size in units
13839         expressed as a percentage.  Use these instead of $10r and $10R,
13840         Delete $10r and $10R.
13842         * lib/font.c (font::load): In default computation of space_width,
13843         divide by sizescale.  Use scale_round.
13845         * macros/tmac.an (TP): Don't call `nf'.
13846         (an-do-tag): Don't call `fi'.
13848 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
13850         * troff/input.c (process_input_stack): Handle the case where
13851         spaces at the beginning of an input line are followed by a
13852         newline.
13854 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
13856         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
13857         * groff.sh: Use pic -x with the dvi device.
13859         * dvi/devdvi/FontMakefile (H): Don't use -s.
13861         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
13862         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
13863         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
13864         in FONTS.
13866 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
13868         * ps/psfig.diff: New file.
13869         * ps/tmac.psfig: New file.
13871 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
13873         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
13874         (]-): Don't call ref*do-tl.
13876         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
13878         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
13879         (fn@do-FS): Rename to fn*do-FS.
13881         * troff/input.c (transparent_translate): New function.
13882         (process_input_stack): Apply transparent_translate before calling
13883         diversion::transparent_output(unsigned char).
13885 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
13887         * troff/input.c (do_define_macro): Define the macro before calling
13888         skip_line.
13890         * xditview/Makefile: Add DEVICES variable.  Change install target
13891         to use this.
13893 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
13895         * groff.c (run_commands): Handle the possibility that there are
13896         child processes other than those forked by us.
13898 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
13900         * lib/string.c (string::append): New function.
13901         * lib/stringclass.h: Declare it.
13903 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
13905         * eqn/main.c (main): New option -N which sets
13906         no_newline_in_delim_flag. 
13907         (do_file): If no_newline_in_delim_flag is set don't allow newlines
13908         in delimiters.
13909         * groff.c (main): Pass -N on to eqn.
13910         (help, synopsis): Mention -N.
13911         * groff.sh: Implement -N.
13913 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
13915         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
13916         (]-): Call ref*do-tl if ref*need-tl is non-zero.
13917         (XP): Allow as initializer.
13919 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
13921         * troff/env.c (environment::wrap_up_field): If field_spaces are
13922         non-zero and we have a current_tab, subtract padding from
13923         tab_distance.  If this makes tab_distance <= 0, use the next tab
13924         stop instead.  If there isn't any next tab or it's a left tab,
13925         wrap up the current tab.
13926         (environment::start_field): Initialize tab_precedes_field.
13927         (environment::wrap_up_tab): If there's a current field, update
13928         pre_field_width, field_distance and tab_precedes_field.
13929         * troff/env.h (environment::tab_precedes_field): New member.
13931 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
13933         * ps/ps.c (ps_printer::do_file): New function.
13934         (ps_printer::special): Bind to `file' special.
13935         (ps_printer::do_exec): Set ndefined_styles to 0.
13937 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
13939         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
13940         Avoid stripping first character from the start of unrecognized
13941         escapes.  Use lex_error instead of error to report errors.
13942         * eqn/lex.c (get_token): Rework handling of escapes.
13943         (lex_error): Move declaration into...
13944         * eqn/eqn.h.
13946         * xditview/xditview.c (main): Make -page option work.
13948         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
13950 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
13952         * macros/tmac.s (B2): Correct size of box.
13954 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
13956         * macros/tmac.s (B2): Postpone drawing the box until in the
13957         top-level diversion.
13959         * tty/tmac.tty: Add font translations for C, CR, CW.
13961         * groff.c (synopsis, help): Document -i.
13962         * groff.sh: Implement -i.
13964         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
13965         Simplify the construction of SN.
13967         * troff/number.c (parse_term): Give `|' a higher precedence.
13968         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
13969         accordingly.
13971         * macros/tmac.s (B2): Use par@finish instead of par@reset.
13973 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
13975         * lib/string.c (string::move): New function.
13976         * lib/stringclass.h: Declare it.
13978 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
13980         * troff/env.c (distribute_space): Add optional argument
13981         `force_forward'.
13982         (environment::wrap_up_field): Call distribute_space with
13983         `force_forward' argument of 1.
13985 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
13987         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
13988         Inline it.  Move reallocation into...
13989         (string::grow1): New function.
13990         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
13991         dependencies to include library header files.
13992         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
13994 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
13996         * macros/tmac.s (@NH): Use the same number registers than -ms does
13997         for the heading level counters.  Use the same string that -ms does
13998         for the number for this heading.
14000 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
14002         * lib/new.c (operator new): Cast result of malloc to char *.
14004         * troff/input.c (spring_trap, lookup_request): Add assert that nm
14005         is not null.
14007 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
14009         * groff.c (main): Support -i.
14011 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
14013         * pic/pic.h: Include <osfcn.h>.
14015         * ps/ps.c: Add declaration of mktemp.
14017         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
14018         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
14019         argument as union wait *.
14020         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
14021         argument to union wait *.
14023 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
14025         * tty/tmac.tty: Add definition of \(co.
14027         * pic/object.c (make_arc): Only increase radius when radius
14028         strictly less than d.
14029         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
14030         more than once.
14032         * troff/env.c (environment::environment(symbol),
14033         environment::environment(const environment *)):  Initialize
14034         input_trap_count.
14036 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
14038         * tbl/main.c (main): Add exit(0).
14040         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
14042         * pic/main.c (main):
14043         * eqn/main.c (main):
14044         * tbl/main.c (main):
14045         * etc/soelim.c (main):
14046         * driver/printer.c (printer::~printer):
14047         * troff/node.c (real_output_file::~real_output_file,
14048         real_output_file::flush):  Check for errors on stdout.
14050         * most files: Add 1991 to copyright notice.
14052         * macros/tmac.s: Don't test \n(.x and \n(.y.
14054         * troff/input.c (token::next): Rename `escape_char' label to
14055         `handle_escape_char' and `normal_char' label to
14056         `handle_normal_char'.
14058 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
14060         * groff.c (main, synopsis, help): Support -a option.
14061         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
14062         to trflags while parsing options.
14064 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
14066         * troff/number.c (parse_term): With `m', `M' and `n' scale
14067         indicators, convert scale factor to hunits before scaling.
14069 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
14071         * lib/font.c (scale_round): Better test for overflow when n is
14072         negative.
14074 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
14076         * tbl/main.c (process_format): Add second argument of type
14077         options*. Change callers.  Allow opt->tab_char as well as '\t'
14078         between format items.
14080 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
14082         * macros/tmac.an (PD): With no arguments, make sure register PD is
14083         at least \n[.V].
14084         (TH): Call PD with no argument, instead of setting register PD
14085         directly.
14087 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
14089         * Version 1.00 released.
14091 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
14093         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
14095         * dvi/devdvi/DESC: Mount CW instead of CR.
14097         * dvi/tmac.dvi: Add definition of \(tm.
14099         * dvi/devdvi/texsy.map: Add lh, and rh.
14100         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
14101         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
14103         * dvi/devdvi/FontMakefile: Generate H from cmss10.
14104         * dvi/devdvi/Makefile: Install H.
14105         * dvi/devdvi/H: New file.
14107 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
14109         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
14110         be 0.
14112 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
14114         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
14116         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
14118         * macros/tmac.s (@EN): Handle the case where the equation is empty
14119         but the label is not.
14121 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
14123         * troff/groff.h: New warning category WARN_SPACE.
14124         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
14125         WARN_SPACE to warning_table.
14126         (interpolate_macro): Give a warning of type WARN_SPACE if the name
14127         is longer than two characters and is not defined, but the first
14128         two characters do make a defined name.
14130         * PROBLEMS: New file.
14132         * CHANGES: New file.
14133         * README-0.6, README-1.00: Deleted.
14135         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
14136         * xditview/devX75/Makefile: Make devX75-12.
14137         * xditview/devX100/Makefile: Make devX100-12.
14139         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
14140         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
14142 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
14144         * README-0.7: Rename to README-1.00.
14146         * macros/tmac.pic: New file.
14147         * macros/Makefile (install.nobin): Install tmac.pic.
14149 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
14151         * troff/env.c (hyphen_word): Correct the test for whether the
14152         token is a hyphen.  Reset npos to 0.
14154         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
14156 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
14158         * macros/tmac.s (ds*common-end): Call par*reset.
14159         (PE): Likewise.
14160         (par@reset-indent): Deleted.
14162         * macros/tmac.s (@IP): Divert the label.
14164 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
14166         * xditview/draw.c (setGC): Use a line width of .1m rather than
14167         .04m by default; round rather than truncate value.
14169         * tbl/table.c (class empty_entry): New class.
14170         (empty_entry::empty_entry, empty_entry::line_type): New functions.
14171         (table::add_entry): Represent empty entries by objects of type
14172         empty_entry.
14173         (table_entry::line_type): Return -1.
14174         (table::determine_row_type): Ignore entries with line_type 0.
14175         Treat type -1 as non-lines.
14177 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
14179         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
14180         macros/tmac.s: Rename \(-d to \(Sd.
14182 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
14184         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
14185         * xditview/libXdvi/DviChar.c: Likewise.
14186         * dvi/devdvi/texsy.map: Add `<<', `>>'.
14188 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
14190         * troff/div.c (top_level_diversion::begin_page): Call
14191         init_output() if the_output is 0.
14193 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
14195         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
14196         ESCAPE_c.
14197         (get_copy): Turn \E into ESCAPE_E.
14198         (token::process, asciify): Handle ESCAPE_E.
14200         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
14201         (RD): New macro.
14202         (DS): Implement `.DS R'.
14204 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
14206         * macros/tmac.s (FS): New macro.
14208         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
14210         * macros/tmac.s (cov*tl-init): Remove after first execution
14211         instead of aliasing to @nop.  Call top of page macro explicitly
14212         instead of setting trap; call @init first.  Set pg@top as top of
14213         page macro.
14214         (cov*auto-init): Deleted.  Set cov*tl-init instead of
14215         cov*auto-init as top of page trap. 
14216         (TL, LP): Do a break instead of calling cov*tl-init.
14217         (cov*print): With RP format but no TL, alias FS and FE to @FS and
14218         @FE; in this case also give a warning and always start another
14219         page. No need to set pg@top here.
14220         (cov*tl-init): Rename to cov*first-page-init.
14222         * macros/tmac.s (RP): Do `.pn 0'.
14223         (cov*tl-init): With RP format don't do `.pn 0'.
14225         * macros/tmac.s (pg@cs-top): Set no space mode.
14227         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
14228         (cov*ab-init): Alias TL, AU and AI to these.
14230 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
14232         * macros/tmac.s (@EQ): Move the space before the equation into @EN
14233         (@EN): Do nothing unless \n[dl] is > 0.
14235 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
14237         * pic/object.c (ellipse_object::radius): New function.
14239         * VERSION: Change version to 0.7.
14241         * tbl/table.c (block_entry::do_divert): Declare return type as
14242         void.
14243         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
14245 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
14247         * troff/column.c: New file.
14248         * troff/Makefile: Corresponding changes.
14250         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
14251         Friend of vunits.
14253         * troff/div.c (top_level_diversion::space): If the space causes
14254         the first-page transition and springs a trap, truncate the space
14255         to 0.
14257 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
14259         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
14260         the document.
14262         * pic/troff.c (troff_output::line_thickness,
14263         troff_output::set_fill): Do a horizontal motion to compensate for
14264         the width of the \D escape sequence.
14266 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
14268         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
14269         (not X75).
14271         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
14272         to printf.
14274         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
14275         Supply empty definition.
14276         (text_entry::simple_print, simple_text_entry::simple_print):
14277         Delete declarations.
14278         (table::add_entry): Represent empty entries by objects of type
14279         `simple_entry'.
14281 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
14283         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
14285         * tbl/table.c (left_text_entry::add_tab): New function.
14287         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
14288         initialize like LP.
14290 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
14292         * troff/env.c (environment::start_field): Give an error message if
14293         there is no next tab.
14295 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
14297         * troff/env.c (hyphenate): Skip initial elements with zero
14298         hyphenation code.
14300         * macros/tmac.s (par@init): Keep VS in points rather than units.
14302 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
14304         * pic/main.c (main): Implement `-c' option.
14305         * pic/output.h: Declare make_tpic_output().
14306         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
14307         protected.
14308         (tpic_output): New class.
14309         (tpic_output::tpic_output, tpic_output::set_pen_size,
14310         tpic_output::command, make_tpic_output): New functions.
14312 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
14314         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
14315         if they're not already defined.
14316         * tbl/table.c (init_output): Don't test \n(.g.
14318         * troff/input.c (do_if_request): Delete `g' condition. Recognize
14319         `d', `r' and `c' conditions even in compatibility mode.
14321 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
14323         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
14324         box.
14326 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
14328         * troff/env.h (environment::prev_line_interrupted): New member.
14329         (environment::get_prev_line_interrupted): New function.
14330         * troff/env.c (environment::newline): Set prev_line_interrupted.
14331         (environment::environment(const environment *),
14332         environment::environment(symbol)): Initialize
14333         prev_line_interrupted.
14334         * troff/input.c (process_input_stack): Don't give special
14335         treatment to space and newline at the beginning of the line if the
14336         previous line was interrupted.
14338 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
14340         * eqn/eqn.y: Disallow PRIME by itself.
14341         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
14342         PRIME.
14343         (def_table): Remove definition of '.  Define prime to be `.
14345         * eqn/eqn.y: Split off part of rule `script' into a new rule
14346         `nonsup'.
14348 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
14350         * macros/tmac.s ({, }): New string aliases.
14352 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
14354         * README-0.7: New file.
14356 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
14358         * macros/tmac.s: New file.
14359         * man/groff_ms.man: New file.
14360         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
14361         * Makefile.bd: Similarily.
14362         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
14363         definition of TMAC_S.
14364         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
14365         * macros/TODO: New file.
14367 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
14369         * troff/env.c (right_justify): New function.
14370         (init_env_requests): Bind this to request "rj".
14371         (center_lines): Set right_justify_lines to 0. If we get a bad
14372         integer, center 1 line.
14373         (environment::environment(symbol), environment::environment(const
14374         environment *)): Initialize right_justify_lines.
14375         (environment::get_right_justify_lines): New function.
14376         (init_env_requests): Bind this to number_register ".rj".
14378         * troff/env.c (environment::choose_breakpoint): Implement
14379         hyphenation_margin and hyphenation_space.
14380         (environment::get_hyphenation_space,
14381         environment::get_hyphenation_margin): New functions.
14382         (init_env_requests): Bind these to .hys and .hym.
14383         (hyphenation_space_request, hyphenation_margin_request): New
14384         functions
14385         (init_env_requests): Bind these to hys and hym.
14386         (environment::environment(symbol), environment::environment(const
14387         environment *)): Initialize hyphenation_margin and
14388         hyphenation_space.
14389         * troff/env.h: Corresponding changes to class environment.
14391 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
14393         * troff/div.c (blank_line): Always do a break.
14395         * eqn/box.c (do_text): Turn off escapes while appending text to
14396         string.
14398 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
14400         * troff/input.c (while_break_request, while_continue_request): New
14401         functions.
14402         (init_input_requests): Bind these to "break" and "continue".
14403         (while_depth, while_break_flag): New variables.
14404         (while_request): Update while_depth.  Break out of loop if
14405         while_break_flag is set.
14407 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
14409         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
14410         rather than 0.
14412 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
14414         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
14416         * stringify: New file.
14417         * Makefile (groff.o): Use stringify.
14419         * xditview/tmac.X: Remove definition of \(rn.
14420         * xditview/libXdvi/DviChar.c: Remove radicalex from
14421         Adobe_symbol_map.
14423 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
14425         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
14426         (alphabetic_block_entry::alphabetic_block_entry,
14427         alphabetic_block_entry::divert, alphabetic_block_entry::print):
14428         New functions.
14429         (block_entry::divert): Split off body into ...
14430         (block_entry::do_divert): If the block is alphabetic, subtract 2n
14431         from the line length; also update the span width to dl+2n, and the
14432         alphabetic span width to dl.
14434         * driver/input.c (do_file):  While reading argument to D command,
14435         when expanding buffer, multiply szp by sizeof(int) rather than 2
14436         in the argument to memcpy.
14438         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
14439         width of alphabetic columns.
14441 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
14443         * troff/node.c (lookup_family): Supply second argument to lookup.
14445         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
14446         search, return immediately if v is 0.
14448         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
14449         (troff_output::start_picture): Set this reg.
14450         (troff_output::end_picture): Remove this reg
14451         * eqn/box.c (box::extra_space): Don't produce `\x's if
14452         EQN_NO_EXTRA_SPACE_REG is defined.
14454         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
14455         * eqn/text.c (split_text): Map ' to \(fm when it's the first
14456         character.
14458 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
14460         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
14461         requests.
14463         * troff/div.c (top_level_diversion::top_level_diversion):
14464         Initialize page_number to 0.
14466 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
14468         * groff/troff (environment::environment(const environment *)):
14469         Initialize name to e->name, rather than "anonymous".
14471 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
14473         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
14474         requested_page.  Split middle part into ...
14475         (FindPage): New function.
14476         (SetValues): If we don't yet know the last page, and the requested
14477         page is greater than the current page, call FindPage.
14478         Update the font_map_string before doing this.
14480         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
14481         Translate \(lh and \(rh into left and right double arrows.
14483         * troff/node.c (class hyphen_inhibitor_node): New class.
14484         (hyphen_inhibitor_node::hyphen_inhibitor_node,
14485         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
14486         hyphen_inhibitor_node::type,
14487         hyphen_inhibitor_node::get_hyphenation_type): New functions.
14488         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
14489         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
14490         word.
14492 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
14494         * troff/node.h (dummy_node::get_hyphenation_type,
14495         transparent_dummy_node::get_hyphenation_type):  Declare them.
14496         * troff/node.c: (dummy_node::get_hyphenation_type,
14497         transparent_dummy_node::get_hyphenation_type): New functions.
14499 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
14501         * xditview/libXdvi/draw.c: If M_PI not defined after including
14502         math.h, then define it.
14504         * xditview/Makefile: Add definition of AR. Pass it to the submake
14505         in libXdvi.
14506         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
14508 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
14510         * troff/dictionary.h (object_dictionary::alias): Declare return
14511         value as int.
14512         * troff/dictionary.c (object_dictionary::alias): Return non-zero
14513         if the old name was defined.
14514         * troff/input.c (alias_macro): Give a warning if the old name was
14515         not defined.
14516         * troff/reg.c (alias_reg): Likewise.
14518 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
14520         * troff/input.c (token::next): Delete implementation of \R.
14522         * macros/Makefile: Strip comments from tmac.e while installing it.
14524         * troff/input.c: New variable `nroff_mode'.
14525         (troff_request, nroff_request): New functions.
14526         (init_input_requests): Bind `troff' and `nroff' to troff_request
14527         and nroff_request.
14528         (do_if_request): Compute results of t and n conditions from
14529         nroff_mode.
14531         * text/text.c (split_text): Fix typo in >=.
14533         * eqn/lex.c: Add definition of `==' to def_table.
14535 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
14537         * pic/tex.c (tex_output::start_picture): Change the definitions of
14538         \graph and \graphtemp so that they work properly with Plain TeX.
14540         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
14541         argument to `ar' is not less than the first.
14543         * pic/pic.y: Allow a comma between elements of the variable list
14544         in the argument to `reset'.
14546         * pic/object.c (arc_object::arc_object): Fix computation of
14547         radius.
14549         * eqn/main.c (main): Add exit(0).
14551 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
14553         * troff/div.c (begin_page): Test no_space_mode after doing the
14554         break, but still push the page ejector cookie before doing the
14555         break.  Also set the next page number after doing the break.
14556         
14557         * xditview/xditview.c (NewFile): Don't set the title and icon name
14558         if this is the first file and its name is `-'.
14559         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
14560         the X75 and X100 devices.
14561         (main): If a device has the XT_OPTION flag set and there's exactly
14562         one file argument, pass the driver -xrm and -title options to set
14563         the icon name and window title to the name of the file.
14565         * troff/env.c (environment_switch): If there was an argument but
14566         it wasn't a valid number or name, then pop an environment but
14567         don't give an error message on underflow.
14569         * troff/number.c (start_number): Correct spelling in error message.
14571         * troff/input.c (token::delimiter): Don't print an error message
14572         if err is false.
14574         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
14575         ParseDrawFunction if dw->display_enable is true.
14577 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
14579         * pic/pic.y: Parse text positioning like normal attributes, so as
14580         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
14581         positioning attribute.
14583 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
14585         * tbl/main.c (process_data): When in state START while reading a
14586         text block, don't change to state MIDDLE if c is a newline.
14588 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
14590         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
14591         so as to avoid shadowing parameter.
14593 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
14595         * tbl/table.c (trim_space): Deleted.
14596         (table::add_entry): Don't call trim_space.
14598 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
14600         * VERSION: Change version to 0.6.
14602         * troff/number.c (parse_expr): Make == work.
14604 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
14606         * man/grog.man: New file.
14607         * man/Makefile: Add grog.n to MAN1PAGES.
14608         * etc/grog.sh: New file.
14609         * etc/Makefile: Install grog.sh as grog.
14611 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
14613         * troff/input.c (token::next): Implement \E.
14615 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
14617         * xditview/tmac.X: Change font translations to match tmac.ps.
14619         * troff/input.c (non_empty_name_warning): Don't give a warning if
14620         `\{' terminates the name.
14622 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
14624         * ps/devps/symbol.diff: New file.
14625         * ps/devps/FontMakefile: Mention symbol.diff.
14627 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
14629         * troff/node.c (font_position): Use get_long_name to read the
14630         external_name.
14632         * troff/env.c (environment_switch): If we get a number that's < 0
14633         or >= NENVIRONMENTS, treat it like a name.
14634         Change NENVIRONMENTS to 10.
14636         * troff/groff.h: Remove definition of FONTS_MAX.
14637         * troff/node.h (class font_family): Make map a pointer instead of
14638         an array. Add a map_size member. Make it a class. Make nm const
14639         and public. Make invalidate_fontno a friend.
14640         * troff/node.c: Define font_table_size. Make font_info a pointer
14641         rather than an array.
14642         (class troff_output_file): Allocate font_position dynamically. Add
14643         nfont_positions member.
14644         (troff_output_file::set_font): Grow font_position if necessary.
14645         (troff_output_file::~troff_output_file): Delete font_position.
14646         (troff_output_file::troff_output_file): Allocate font_position.
14647         (grow_font_table): New function.
14648         (troff_output_file::really_begin_page,
14649         troff_output_file:really_copy_page): Use nfont_positions rather
14650         than FONTS_MAX.
14651         (mount_font_no_translate, mount_style): Call grow_font_table if
14652         necessary.
14653         (font_family::font_family): Allocate map.
14654         (font_family::make_definite): Grow map if necessary. Use
14655         font_table_size instead of FONTS_MAX.
14656         (font_family::~font_family): New function.
14657         (invalidate_fontno): Use font_family::map_size.
14658         (get_fontno, env_space_width, env_half_narrow_space_width,
14659         env_narrow_space_width, symbol_fotno, is_good_fontno,
14660         get_bold_fontno, make_glyph_node): Use font_table_size rather than
14661         FONTS_MAX.
14662         (next_available_font_position): Never return 0.
14664 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
14666         * ps/tmac.ps: Add font translations for compatibility with dpost.
14668 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
14670         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
14671         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
14672         Move definitions baseline_sep, shift_down, column_sep,
14673         matrix_side_sep into...
14674         * eqn/box.c: Add them to param_table.
14675         * eqn/pbox.h: Add declarations to pbox.h.
14677         * troff/input.c (set_string): Cast value to unsigned char *.
14679         * troff/token.h (process_input_stack): Declare it static before
14680         declaring it a friend.
14682 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
14684         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
14685         and bottom.
14686         * dvi/devdvi/EX: Regenerate.
14688         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
14689         transparent.
14691 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
14693         * eqn/lex.c: In defaults_table, make definition of `dot' call
14694         `dot_def'.  Don't explicitly make it roman.  Similarily for other
14695         accents.
14697         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
14698         argument.
14699         (for_input::get, for_input::peek): Use this.
14700         (do_for): Add by_is_multiplicative argument.
14701         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
14702         Change semantic value of optional_by to be a double plus a flag
14703         saying whethet the by clause is multiplicative.
14705         * eqn/lex.c (get_delimited_text): Remember location of start of
14706         definition.  Improve error handling when EOF is encountered.
14708         * lib/font.h: Rename handle_x_command to
14709         handle_unknown_font_command.
14710         * lib/font.c (font::load): Call handle_unknown_font_command for
14711         any unknown command in the font description file.  Don't call
14712         handle_x_command. Include the name of the command in the argv.
14713         Improve message for unknown command after kernpairs or charset
14714         command.
14715         * ps/ps.c (ps_font::handle_x_command): Rename to
14716         handle_unknown_font_command.  Remove message about `x download'
14717         command.  Give error message for wrong number of arguments.
14718         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
14719         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
14720         handle_unknown_font_command. Give an error message for wrong
14721         number of arguments.  Rename design_size to designsize.
14722         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
14723         checksum', `designsize' instead of `design_size'.
14725 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
14727         * eqn/*.[chy]: Change underaccent to uaccent.
14729         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
14730         give it the same precedence as ACCENT.
14731         * eqn/other.c (make_underaccent_box): New function.
14732         * eqn/box.h: Declare it.
14733         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
14734         def_table.
14736 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
14738         * pic/pic.y (reset_all): New function. Called in rule for RESET.
14739         (parse_init): Call reset_all.
14740         (define_variable): When defining scale reset only those
14741         pre-defined variables that are scaled.
14742         (defaults_table): Add `scale' as non-scaled value.
14744         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
14745         together with the text; allow any number of positioning words;
14746         allow center as a positioning word.
14748         * pic/object.c (output::compute_scale): Get picture maximum height
14749         and width from variables called maxpswid and maxpsht.
14750         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
14752 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
14754         * pic/object.c (object_spec::make_text): Multiply textht by number
14755         of text items.
14757         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
14758         occur.
14759         (do_sprintf): New function.
14760         (pic.gperf): Add sprintf token.
14761         (text, sprintf): New rules.
14763         * pic/pic.y: `rand()' with no arguments returns a random number
14764         in the range [0,1).
14766         * pic/pic.y: Allow a bare expression to be an attribute: change
14767         precedences to support this.  Change optional_ordinal rule to
14768         optional_ordinal_last to avoid reduce/reduce conflict.
14769         * pic/object.c (object_spec::object_spec): Initialize direction.
14771         * pic/pic.y: Implement ^ operator meaning exponentiation.
14773         * troff/node.h: Add default argument to mount_font.
14774         * troff/node.c (font_position): Read an optional third argument
14775         giving the external_name.
14776         (mount_font): Add optional argument giving the external_name.
14777         (mount_font_not_translate): Have additional argument giving
14778         external name.  Use this name to load the font.  Pass both names
14779         to font_info::font_info.
14780         (font_info::font_info): Have additional argument giving
14781         external_name.
14782         (class tfont): New member external_name.
14783         (font_info::get_tfont): Use external name to construct tfont_spec.
14785 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
14787         * eqn/lex.c (init_table): Add argument giving device.  Define
14788         name of device to be "1".
14789         (do_ifdef): Counts as true if the argument has been defined with
14790         `define'.
14791         * eqn/main.c (main): Call init_table with device argument. Make
14792         device local to main.
14793         * eqn/eqn.h: Change declaration of init_table. Remove declaration
14794         of device.
14796         * pic/lex.c (get_delimited): Allow text to be delimited by
14797         matching {}s.  Don't recognize ending delimiter within a string.
14799         * troff/input.c (get_delim_name): New function.
14800         (token::next): Implement \C.
14802         * lib/font.c (font::load): Grok ---.  Add an alias for each
14803         character based on its code.
14804         (font::get_code_width): Deleted.
14805         * lib/font.h (class font): Declare font::number_to_index().
14806         Remove declaration of font::get_code_width.
14807         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
14808         to indices of named characters.
14809         (font::number_to_index): New function.
14810         * troff/input.c (font::number_to_index): New function.
14811         (get_charinfo_by_number, charinfo::get_number,
14812         charinfo::set_number): New functions.
14813         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
14814         (token::process, token::description, token::get_char,
14815         token::add_to_node_list, token::operator==): Handle
14816         TOKEN_NUMBERED_CHAR.
14817         * troff/charinfo.h: Declare get_charinfo_by_number,
14818         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
14819         charinfo class.
14820         (charinfo::numbered): New function.
14821         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
14822         * troff/env.h (class environment): Remove declaration of ...
14823         * troff/env.c (environment::make_numbered_char_node): Deleted.
14824         * troff/node.c (make_numbered_node): Deleted.
14825         (class numbered_glyph_node): Remove.
14826         (troff_output_file::put_char_width, troff_output_file::put_char):
14827         Handle numbered chars.
14828         (troff_output_file::numbered_char): Removed.
14829         (tfont::get_code_width): Removed.
14830         (make_glyph_node): Don't search special fonts for numbered
14831         characters.
14832         * troff/node.h: Remove declaration of make_numbered_node.
14833         * driver/input.c (do_file): Handle N command.
14834         * driver/printer.h: Add declaration of ...
14835         * driver/printer.c (printer::set_numbered_char): New function.
14836         * dvi/tfmtodit.c (main): Generate unnamed entries.
14837         * ps/devps/afmtodit: Likewise.
14838         * xditview/xtotroff.c (MapFont): Likewise.
14839         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
14841         * tbl/main.c (process_format): If multiple widths are specified
14842         for a column but all the widths are the same, don't give an error
14843         message.
14845         * tbl/table.c (table::do_row): If the current row is all lines and
14846         the stuff doesn't contains a line, mark the top of the row after
14847         printing stuff before the row.  If the current row is not all
14848         lines and the stuff doesn't contain a line, don't unnecessarily
14849         mark the top of the row before printing the stuff.
14850         
14851 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
14853         * troff/groff.h: Remove MAX_PATH.
14854         * troff/input.c (open_file): Dynamically allocate space for the
14855         path.
14856         (open_mac_file, process_macro_file): Corresponding changes.
14858 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
14860         * troff/node.h (class output_file): Make copy_file pure.  Add
14861         vspace method ifdef COLUMN. Add is_printing method.
14862         * troff/node.c: Add class printing_reg. Add class
14863         real_output_file. Derive other output_file classes from
14864         real_output_file; in these classes rename begin_page to
14865         really_begin_page, print_line to really_print_line, copy_file to
14866         really_copy_file, transparent_char to really_transparent_char.
14867         Move output_file::flush to real_output_file. Add printing member
14868         to class output_file.
14869         * troff/div.h: Remove printing member from top_level_diversion.
14870         Add vspace member function to class diversion ifdef COLUMN. Add
14871         some declarations ifdef COLUMN.
14872         * troff/div.c (top_level_diversion::copy_file,
14873         top_level_diversion::transparent_output,
14874         top_level_diversion::output): Don't test printing member before
14875         output.
14876         * troff/input.c: Handle initial variable_space_request ifdef
14877         COLUMN.
14878         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
14879         but comment it out.
14881 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
14883         * troff/div.c (diversion::need): Make any space forced.  If we
14884         sprung a trap, set truncated_space to minus the distance to the
14885         trap and set needed_space to the amount that was needed.
14886         (top_level_diversion::space): A forced space turns no_space_mode
14887         off.
14888         (class constant_vunits_reg): New class.
14889         (init_div_requests): Implement number registers .trunc and .ne
14890         using constant_vunits_reg.
14891         (class truncated_space_reg): Deleted.   
14893         * troff/div.h: Don't have a no_space_mode member in diversion.
14894         Instead have it in top_level_diversion.
14895         * troff/div.c (diversion::diversion): Don't initialize
14896         no_space_mode.
14897         (top_level_diversion::top_level_diversion): Initialize
14898         no_space_mode.
14899         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
14900         (macro_diversion::output): Don't clear no_space_mode.
14902         * troff/input.c (diverted_space_node::reread): Don't call
14903         environment::do_break.  In fill mode, act like a blank line.
14904         (diverted_copy_file_node::reread): Don't call
14905         environment::do_break.
14907         * troff/div.c (blank_line): New function.
14908         * troff/div.h: Declare it.
14909         * troff/input.c (process_input_stack): Call it.
14911         * troff/div.c (truncated_space_reg::get_string): New function.
14912         (init_div_requests): Bind to .trunc.
14913         (space_request, top_level_diversion::space,
14914         top_level_diversion::output, macro_diversion::space,
14915         macro_diversion::output): Update truncated_space.
14916         (macro_diversion::output): Redo calculations when trap sprung.
14917         (macro_diversion::output, macro_diversion::space): No need for
14918         trap_flag.
14920         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
14921         after truncating post line spacing.
14923 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
14925         * ps/devps/prologue (MF, SF): Make them work even if setfont is
14926         defined as a procedure rather than as an operator.
14928 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
14930         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
14932 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
14934         * troff/div.c (top_level_diversion::output): Merge
14935         output_file::print_line and output_file::end_of_line member
14936         functions.
14937         * troff/div.h (class output_file):
14938         * troff/node.c (troff_output_file::print_line,
14939         troff_output_file::end_of_line, output_file::end_of_line,
14940         ascii_output_file::print_line, suppress_output_file::print_line):
14941         Corresponding changes.  
14943 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
14945         * troff/input.c (token::next): Don't give a warning for `\.'.
14947         * troff/env.c (environment::get_center_lines): New function.
14948         (init_env_requests): Bind number register .ce to it.
14949         * troff/env.h: Declare it.
14950         * tbl/table.c (table::init_output): Define reset macro to restore
14951         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
14952         Then do .ce 0.
14953         (table::print): If center option not given, then imply center
14954         option if SAVED_CENTER_REG > 0.
14956 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
14958         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
14959         Troff.ps from DOWNLOAD.
14960         
14961         * troff/Makefile: Change comment in DEFINES to avoid confusing
14962         System V make.
14964         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
14965         code.  Don't try to catch errors with stopped.
14966         (check_line_lengths): New function.
14967         * ps/devps/prologue (EXEC): Deleted.
14968         (EBEGIN, EEND): New procedures.
14970 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
14972         * troff/input.c: Include request.h before node.h.
14973         * troff/node.c: Likewise.
14974         * troff/env.c: Likewise.
14975         * troff/div.c: Likewise.
14976         * troff/node.h (class special_node): Store argument as a macro
14977         rather than a char *.
14978         * troff/node.c (special_node::special_node, special_node::copy):
14979         Grok this.
14980         (special_node::~special_node): Deleted.
14981         (special_node::tprint): Deleted.
14982         (special_node::tprint_start, special_node::tprint_end,
14983         special_node::tprint_char): New functions.
14984         (troff_output_file::special): Deleted.
14985         (troff_output_file::start_special, troff_output_file::end_special,
14986         troff_output_file::special_char): New functions.
14987         * troff/input.c (special_node::tprint): New function.
14988         (do_special): Use macro not char *.
14989         (do_transparent_macro): Deleted.
14990         (token::next): Don't call do_transparent_macro.
14992         * troff/input.c (token::next): Add 'Y' case.
14993         (do_transparent_macro): New function.
14994         * troff/node.c (troff_output_file::special): Handle newlines with
14995         argument using new continuation convention.
14996         * driver/input.c (get_string): Cope with continuation convention.
14997         (do_file): Don't call skip_line after calling get_string(1).
14998         * ps/ps.c (ps_printer::special, ps_printer::do_import,
14999         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
15000         arg.
15001         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
15002         with +.
15004 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
15006         * troff/input.c (asciify): By default, illegal input characters
15007         should return empty string.
15009         * troff/input.c (copy_file): Handle first page transition like title.
15010         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
15012         * troff/input.c (token::next): Improve error message for EOF after
15013         escape character.
15014         (input_char_description): New function.
15015         (get_char_for_escape_name): Use input_char_description.
15016         (token::next): Warn about unrecognized escape sequences.
15017         (warning_table): Add WARN_ESCAPE.
15018         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
15019         accordingly.
15021         * troff/token.h: Remove declaration of process_input_stack.
15023         * troff/input.c: Remove declaration of init_hyphen_requests.
15024         * troff/request.h: Correct spelling in declaration of same.
15026         * troff/input.c (token::next): Check whether escape_char is 0.
15028 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
15030         * groff.c (main, usage, help): Implement -P and -L options.
15031         * groff.sh: Likewise.
15033         * troff/input.c (token::next): Use some gotos to avoid code
15034         duplication.
15036         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
15037         Avoid calling symbol::symbol if name empty.
15039 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
15041         * troff/input.c (init_input_requests): Make \n(.x return the major
15042         version number and \n(.y return the minor version number.
15043         * troff/Makefile: Construct file majorminor.c defining
15044         major_version and minor_version automatically from ../VERSION.
15046         * troff/node.c (class glyph_node): Make operator new and operator
15047         delete public.
15048         (class ligature_node): Similarily.
15050         * troff/input.c (operator==(const macro &, const macro &)): New
15051         function.
15052         (non_interpreted_node::same): Use this.
15053         (string_iterator::string_iterator): Make macro& argument const.
15055         * troff/input.c (input_iterator::get): New function. Don't make
15056         asciify_macro or class non_interpreted_node friends of class
15057         input_iterator.
15058         (non_interpreted_node::interpret): Use input_iterator::get.
15059         (asciify_macro): Likewise.
15061         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
15062         ~non_interpreted_node): Deleted.
15063         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
15064         Deleted.
15066         * troff/symbol.h: Make all symbol member functions const.
15068         * lib/strtol.c: New file.
15069         * lib/Makefile: Add strtol.c.
15070         * Makefile: Define STRTOL as strtol.o to include strtol in
15071         libgroff.a.
15073 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
15075         * pic/troff.c (troff_output::simple_circle): Divide by scale.
15077 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
15079         * troff/input.c (do_special): Use input_level.
15081         * troff/token.h (TOKEN_BACKSPACE): New token.
15082         (token::backspace): New function.
15083         * troff/input.c (token::description, token::next, token::process):
15084         Grok TOKEN_BACKSPACE.
15085         (do_special): Turn TOKEN_BACKSPACE back into \b.
15087         * troff/token.h (token::leader): New function.
15088         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
15090         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
15092         * troff/input.c (do_special): Use token::description in error
15093         message.
15095 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
15097         * troff/input.c (decode_args): Combine quoted and
15098         quote_input_level variables. Make it a for (;;) loop.
15100         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
15102         * troff/input.c (read_long_escape_name): The test for whether to
15103         expand buffer was off by 1.
15104         (read_string): Similarily.
15106 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
15108         * troff/input.c: Use `const int' rather than `static const int'.
15110         * troff/div.h (diversion::copy_file): Declare as pure virtual.
15111         (macro_diversion::copy_file): New function.
15112         * troff/node.h: New class diverted_copy_file_node.
15113         * troff/node.c: Implement it.
15114         * troff/input.c (copy_file): Use diversion::copy_file. Handle
15115         first page transition by pushing a diverted_copy_file_node.
15116         * troff/input.c (token::next, process_input_stack): Don't handle
15117         COPY_FILE_REQUEST.
15119 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
15121         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
15122         whether space widths need adjusting.
15124         * troff/charinfo.h: Generalize translated_to_space to
15125         special_translation so as to allow translation to \&.
15126         * troff/input.c (translate): Allow translation to \&.
15127         (charinfo::*): Corresponding changes.
15128         * troff/node.c (make_node, node::add_char): Corresponding changes.
15129         * troff/node.h (dummy_node::dummy_node): Allow optional first
15130         argument.
15132         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
15133         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
15134         TOKEN_REQUEST.
15135         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
15136         TOKEN_REQUEST with an argument of TITLE_REQUEST.
15137         (token::process): Grok that.
15138         * troff/input.c (copy_file): Handle first page transition like
15139         title by pushing a COPY_FILE_REQUEST cookie.
15140         (token::next, process_input_stack): Grok that.
15141         * troff/node.h (output_file::copy_file): Add x and y arguments.
15142         Make it non-pure.
15143         * troff/div.c (top_level_diversion::copy_file): Supply them.
15144         * troff/node.c (troff_output_file::copy_file): Add x and y
15145         arguments; moveto specified position.  Invalidate font_position
15146         array after copying file.
15147         (output_file::copy_file): New function.
15148         (suppressed_output_file::copy_file, ascii_output::copy_file):
15149         Removed.
15150         * troff/input.c (transparent_file): New function.
15151         (init_input_requests): Bind to "trf".
15152         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
15153         (process_input_stack): Likewise.
15155         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
15157         * troff/node.c (init_node_requests): New number registers .kern
15158         pointing to global_kern_mode, and .lg pointing to
15159         global_ligature_mode.
15161         * troff/node.c (ligature): Don't change it if we get a bad
15162         integer.
15164         * troff/input.c (do_define_string): Don't strip tabs.
15166         * troff/input.c (asciify_macro): Make the string_iterator auto.
15168         * troff/node.c (init_font_requests): Rename to...
15169         (init_node_requests):
15170         * troff/node.h: Change declaration.
15171         * troff/input.c (main): Change call.
15173         * troff/input.c (node::reread, diverted_space_node::reread): New
15174         methods.
15175         (process_input_stack): Call reread rather than
15176         get_diverted_space_node.
15177         * troff/node.c (node::get_diverted_space_node,
15178         diverted_space_node::get_diverted_space_node): Removed.
15179         * troff/node.h: Declare reread methods instead of
15180         get_diverted_space_node methods. Make `n' member private.
15181         * troff/input.c: (token::diverted_space): Removed.
15182         * troff/token.h: Removed declaration.
15183         
15185 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
15187         * eqn/script.c (script_box::compute_metrics): Don't let
15188         SUP_RAISE_FORMAT become negative.
15190         * tbl/table.c (table::do_row): Entries that don't end in the
15191         this row shouldn't make the row non-blank.
15192         
15193         * tbl/table.c (table::make_columns_equal): Only set the width of
15194         columns which are marked as equal.
15195         
15196         * tbl/main.c (process_data): Before issuing excess data error,
15197         if last character was a newline unget it; then get it again after
15198         the error.  Also include the contents of the entry in the message.
15200         * groff.c: New file.
15201         * Makefile: Build groff from groff.c.  Make it possible to use
15202         either groff.sh or groff.c as groff.
15203         * Makefile.bd: Similarily.
15205 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
15207         * groff.sh: Don't delay expansion of $@ in assignment to files.
15208         Remove occurrences of \".
15210 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
15212         * all Makefiles: Simplify and rearrange.
15214         * Makefile: Handle fmod like malloc.
15215         * lib/Makefile: Similarily.
15216         * lib/fmod.c: Remove #ifdef NEED_FMOD.
15218         * Makefile: Rename OPTIMISE to OPTIMIZE.
15220         * groff.sh: Remove assignment to PATH.
15221         * Makefile: Remove SHPATH variable.
15222         * Makefile.bd: Similarily.
15224         * groff.sh: Add -V option to print the pipeline instead of
15225         executing it.
15227 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
15229         * lib/font.c: Split off file searching into ...
15230         * lib/fontfile.c: New file.
15232         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
15234 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
15236         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
15237         Also change misleading comment.
15238         (table::do_vspan): Change similarily misleading comment.
15239         * tbl/main.c (process_data): A format row with an explicit `s'
15240         uses up a data line, even if all the other columns are `_' or `='.
15242         * troff/input.c (token::description): Fix description of
15243         TOKEN_DUMMY and TOKEN_EMPTY.
15245 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
15247         * groff.sh: Fix description of -Z in help message.
15249 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
15251         * pic/object.c (object_spec::make_object): Allow negative and zero
15252         line thicknesses.
15253         * pic/pic.y: Give linethick default value of -1.0.
15254         * pic/troff.c (troff_output::troff_output): Initialize
15255         last_line_thickness to BAD_THICKNESS.
15256         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
15257         (troff_output::line_thickness): Canonicalize negative thicknesses
15258         to RELATIVE_THICKNESS.
15259         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
15260         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
15261         to -1.0.
15262         (tex_output::start_picture): Set pen_size to -2.0.
15264         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
15265         0, then use 0 linewidth.
15266         (ps_printer::ps_printer): Initialize line_thickness to -1.
15268         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
15270         * ps/devps/symbolchars: Remove `or'.
15271         * ps/tmac.ps: Implement \(or with .char.
15273         * ps/devps/symbolchars: Move most characters into textmap.
15274         * ps/devps/textmap: Add names for troff bracket characters. Remove
15275         ul, ru, br, bv.
15277         * ps/devps/TSymbol.ps: Removed.
15278         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
15279         * ps/tmac.ps: Do with .char what TSymbol did.
15280         * ps/devps/download: Remove TSymbol.
15282         * ps/devps/T: Removed.
15283         * ps/devps/Troff.ps: Removed.
15284         * ps/devps/Troff.afm: Removed.
15285         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
15286         * ps/devps/download: Remove Troff.
15287         * ps/devps/FontMakefile: Remove T target.
15288         * ps/devps/DESC-A4: Remove T from font list.
15289         * ps/devps/DESC-letter: Likewise.
15291         * troff/input.c (macro_to_node): Rename to ...
15292         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
15293         character's definition while processing it.
15294         * troff/node.c (node::add_char, make_node): Change calls to
15295         macro_to_node accordingly.
15297         * troff/input.c (token::next): Translate \_ to \(ul.
15299         * tty/devascii/R.proto: Add `|'.
15300         * tty/devlatin1/R.proto: Likewise.
15302 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
15304         * man: Put the version number in all the man pages.
15306 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
15308         * Makefile.bd: New file.
15309         * README.bd: New file.
15311         * VERSION: New file.
15312         * lib/version.c: Removed.
15313         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
15314         in clean target.
15316         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
15317         environment variable.
15319         * all Makefiles: Split install target into install.bin for
15320         binaries, and install.nobin for everything else.
15321         * Makefile: Add bindist target.
15323         * man/afmtodit.man: New file.
15324         * man/Makefile: Add afmtodit.n to MAN1PAGES.
15325         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
15326         in BINDIR.
15327         * ps/Makefile: Pass BINDIR to make install in devps.
15329         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
15330         the space character.
15332         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
15334 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
15336         * ps/ps.c: Redo font downloading.
15337         * ps/devps/download: New file.
15338         * ps/devps/Makefile: Add download to DEVICEFILES.
15339         * ps/devps/afmtodit: Remove -d option.
15340         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
15341         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
15342         * ps/devps/zapfdr.ps: Likewise.
15343         * ps/devps/TSymbol.ps: Likewise.
15345 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
15347         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
15349 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
15351         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
15352         then strip the first line if it starts with %.
15353         * Makefile: Add a comment about this.
15355         * man/tfmtodit.man: New file.
15356         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
15357         * dvi/Makefile: Install tfmtodit in BINDIR.
15359         * dvi/tfmtodit.c (usage): Mention -v option.
15361 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
15363         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
15364         * troff/node.c (troff_output_file::transparent_char): Don't call
15365         flush_tbuf.
15367         * eqn: Add check_tabs method to most box classes.
15368         * eqn/box.c (box::top_level): Call check_tabs.
15370         * eqn/script.c (script_box::output): Use \Z.
15371         * eqn/limit.c (limit_box::output): Use \Z.
15373         * eqn/box.c (box::top_level): Use itoa.
15375 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
15377         * dvi/tmac.dvi: Add font translations for CR, C, TT.
15378         * dvi/devdvi/Makefile: Don't make links to CW.
15380         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
15381         HX, HD.
15382         * xditview/tmac.X: Likewise.
15384         * troff/node.c: Add font translation feature.
15385         (get_font_translation): New function.
15386         (symbol_fontno): Translate the font name.
15387         (mount_font_no_translate): Rename to mount_font to this.
15388         (mount_font): New function.
15389         (font_family::make_definite): Call mount_font_no_translate instead
15390         of mount_font.
15391         (mount_style): Translate the font name.
15392         (font_translate): New function.
15393         (init_font_requests): Bind "ftr" to font_translate.
15395         * ps/devps/prologue (SN): New procedure that rounds a position to
15396         the nearest (pixel + (.25,.25)).
15397         (DL): Use SN to round endpoints.
15399         * lib/version.c: Changed version to 0.5.
15401 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
15403         * Makefile: Move definition of PAGE to the very beginning, so that
15404         people are less likely to miss it.
15406 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
15408         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
15410         * troff/env.c (environment::choose_breakpoint): Make `can't find
15411         breakpoint' error a warning of type WARN_BREAK.  Change message to
15412         `can't break line'.
15413         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
15414         code 040000.
15415         * troff/input.c: Add WARN_BREAK to warning_table.  Include
15416         WARN_BREAK in DEFAULT_WARNING_MASK.
15418         * tty/tmac.tty: Add definition of \(+-.
15420         * groff.sh: Remove `--' option to set command.
15422         * dvi/devdvi/texsy.map: Remove duplicate md entry.
15424         * ps/devps/eqnchar: Better definition of cdot using md.
15425         * dvi/devdvi/eqnchar:  Likewise.
15426         * xditview/devX100/eqnchar:  Likewise.
15427         * xditview/devX75/eqnchar: Likewise.
15428         * eqn/lex.c: Add definition of cdot.
15430 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
15432         * troff/input.c (get_optional_char): New function.
15433         * troff/input.c (set_page_character): Use get_optional_char(),
15434         rather than has_arg() and tok.get_char(1).
15435         * troff/env.c (tab_character, leader_character, hyphen_char,
15436         field_characters): Likewise.
15437         (margin_character): Likewise.  Also always delete the
15438         margin_character_node.
15440         * troff/input.c (token::get_char): Use token::description.
15442         * troff/input.c (has_arg): Don't skip over tab and \}.
15443         * troff/number.c (start_number): Give a warning if the number
15444         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
15446 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
15448         * troff/input.c (empty_name_warning, non_empty_name_warning): New
15449         functions.
15450         (get_name, get_long_name): Use these.  Rename `warn' argument to
15451         `required'.
15453         * troff/node.c (get_fontno): Test that the symbol is not null.
15455         * troff/input.c (token::description): New function.
15456         * troff/number.c (parse_term): Use token::description in `numeric
15457         expression expected' message.
15458         * troff/groff.h: Add WARN_MISSING.
15459         * troff/number.c (start_number): New function.
15460         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
15461         get_incr_number): Use start_number().
15462         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
15463         default.
15464         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
15465         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
15466         token::descripion.
15467         * troff/input.c (token::get_char): Use WARN_MISSING.
15468         * troff/input.c (token::delimiter): Use token::description.
15469         * troff/env.c (environment_switch): Back out Aug 3 change.
15470         * troff/input.c (has_arg): Skip over \}s and tabs but give a
15471         warning.
15472         * troff/token.h (token::tab): New function.
15473         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
15474         * troff/reg.c (alter_format): Likewise.
15475         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
15477 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
15479         * troff (most files): Redo warnings. Divide warnings into various
15480         categories; warning() has an additional first argument indicating
15481         the category it falls into.
15482         * troff/input.c (main): -w now takes an argument. New option -W.
15483         (enable_warning, disable_warning): New functions.
15485         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
15486         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
15488 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
15490         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
15491         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
15492         * xditview/devX75/eqnchar: Likewise.
15493         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
15495         * eqn/other.c: When bar or over applies to a single character
15496         don't produce an overline_box or an underline_box. Instead produce
15497         an accent_box or an underaccent_box, with the accent a line
15498         whose width is accent_width.  New classes underaccent_box,
15499         overline_char_box and underline_char_box.
15500         * eqn/box.h: Move overline_box, underline_box, accent_box class
15501         declarations into eqn/other.c. Add declarations of
15502         make_underline_box, make_overline_box, make_accent_box.
15503         * eqn/eqn.y: Call make_overline_box, make_underline_box
15504         make_accent_box instead of constructors.
15505         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
15507         * eqn/other.c: Add accent_box::~accent_box.
15508         * eqn/box.h: Declare it.
15510         * groff.sh: With -Tps, use eqn -D.
15512         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
15513         rather than \l.
15514         (underline_box::output): Similarily.
15515         (accent_box::output): Use \Z.
15517         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
15518         bit smaller.)
15520 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
15522         * troff/div.c (top_level_diversion::transparent_output(unsigned
15523         char)): Use asciify.
15524         * troff/input.c (asciify): Don't make it static.
15525         * troff/token.h (asciify): Declare it.
15526         
15527         * troff/input.c (get_name, get_long_name, token::get_char,
15528         token::delimiter): Add an extra default argument which says
15529         whether a warning should be printed.
15530         * troff: Pass a non-zero argument to one of these rather than
15531         printing a warning directly.
15533 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
15535         * troff: Consistently use symbol::is_null.
15537         * troff/dictionary.h: Move some inline functions into
15538         dictionary.c.
15540         * troff/request.h: Move inline functions into input.c.
15541         (request_or_macro::invoke): Make it pure.
15543         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
15544         * troff/input.c (init_input_requests): Use class constant_int_reg.
15545         (class compatible_reg): Deleted.
15546         * troff/div.c (init_div_requests): Use class constant_int_reg.
15547         (class last_post_line_extra_space_reg): Deleted.
15549         * troff/env.c (tab_character): Don't change the tab character if
15550         we get an invalid argument.
15551         (hyphen_char): Similarily.
15553         * troff/reg.c (alter_format): Check that nm is not null.
15555         * Makefile, groff.sh: Make it possible to customize the commands
15556         used for printing PostScript and dvi files. Also make it possible
15557         to customize the path used by groff.sh.
15559         * eqn/eqn.y: Make `left' right associative.
15561 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
15563         * pic/pic.h: Added definition of M_SQRT2 for those systems that
15564         don't have it.
15566         * pic/pic.h: Removed definition of INT_MAX.
15568         * troff/node.c (italic_corrected_node::vertical_extent): Omit
15569         `return'.
15571         * troff/input.c (token::next):  Handle \R like \n.
15573 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
15575         * ps/tmac.pc (PSPIC): Simplify.
15577         * troff/env.c (tab_stops::to_string):
15578         * pic/pic.y (object_type_name):
15579         * pic/troff.c (simple_output::line):
15580         * pic/tex.c (tex_output::spline):
15581         * pic/object.c (object_spec::make_object):
15582         * tbl/main.c (process_data):  Add cases to switch statements to
15583         avoid cfront warnings. (Some of these are spurious, since the
15584         switch already has a default case.)
15586         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
15587         `ps-'.  Don't test systat; instead check number of arguments to
15588         ps-bb.
15590 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
15592         * macros/tmac.e: Do not decrease the page offset by 0.5i.
15594         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
15595         Unlink the file as soon as we have opened it, so that we don't
15596         have to bother with signal handlers.
15597         (handler): Deleted.
15598         (fatal_error_exit): Deleted.
15599         (main): Don't call signal.
15601         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
15602         can be ignored.
15603         * dvi/devdvi/Makefile: Use the -k option with S and MI.
15605         * pic/pic.y:  If there is a label, or an nth construction before
15606         the first `.' in the argument to `with', ignore it and generate a
15607         warning.
15608         * pic/lex.c (lex_warning): New function.
15610         * tbl/table.c (table::init_output): In section keep and release
15611         macro, use 0 indent when diverting and the correct indent when
15612         rereading.
15614         * troff/input.c (interpolate_number_format): Do not interpolate
15615         anything if the number register is not defined.
15617         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
15619 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
15621         * ps/devps/prologue (PICTURE): Set components of graphics state to
15622         their default values.
15624         * ps/devps/text.enc: Add trademark
15625         * ps/devps/textmap: Add names for club, spade, heart, diamond,
15626         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
15627         * ps/devps/symbolchars: Add names for summation and product.
15629         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
15630         suchthat. Add pp. Add upper-case letters.
15632         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
15633         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
15634         Upsilon.
15636         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
15637         rA (right angle bracket) to ra.  Introduce names for double-headed
15638         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
15639         * ps/devps/textmap: Likewise for ps device.
15640         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
15641         * tty/devascii/R.proto: Rename lA to la and rA to ra.
15642         * tty/devascii/R.proto: Likewise.
15643         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
15644         \(uA, \(dA.
15645         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
15647         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
15649         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
15650         def_table.
15652 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
15654         * troff/div.c (when_request): Use symbol::is_null rather than
15655         has_arg to determine whether we have an argument.
15656         (change_trap): Remove the trap if we get an invalid number. Give
15657         an error if we don't get at least the macro name.
15658         (diversion_trap): Remove trap if we get an invalid name or number.
15660         * troff/env.c (environment_switch): Pop if we get an invalid
15661         symbol or numeric expression.
15663         * troff/input.c (do_define_macro):  If EOF is encoutered while
15664         defining the macro, do tok.next() before returning.
15666         * troff/token.h (has_arg): Move definition from here, to ...
15667         * troff/input.c (has_arg): ... here
15669         * troff/env.c (space_size): Do nothing if we get an invalid argument.
15670         * troff/input.c (shift): Likewise.
15672         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
15673         for `.c'.
15675         * pic/troff.c (troff_output::start_picture):  Comment out calls to
15676         `..'.
15678         * eqn/main.c (do_file): Subtract 1 from current_lineno if
15679         interpret_lf_args succeeds.
15681         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
15682         \\.  This avoids problems with \$N.
15684         * groff.sh: Pass -C to preprocessors.
15686         * lib/lf.c (interpret_lf_args):  Be more flexible.
15688         * tbl/main.c (main): Add -C option.
15689         (table_input::get): Do not recognize TE if followed by character
15690         other than a space or newline unless -C option given.
15691         (process_input_file): Likewise for lf, TS.
15692         (process_data): Likewise for lf in text blocks.
15694         * eqn/main.c (main): Add -C option.
15695         (do_file): Don't recognize EQ, EN or lf if followed by character
15696         other than space or newline unless -C option given.
15697         * eqn/lex.c (file_input::read_line): Similarily.
15698         * eqn/eqn.h: Declare compatible_flag.
15700         * etc/soelim.c (main): Add -C option.
15701         (interpret_lf_args): Use version in libgroff.
15702         (do_file):
15704         * pic/main.c (main): Add -C option, which sets compatible_flag.
15705         (top_input::get), (top_input::peek):  If -C option not given,
15706         do not recognize .PS/.PE/.PF/.lf if followed by a character
15707         other than space or newline.
15708         * pic/lex.c (file_input::read_line): Similarily.
15709         * pic/pic.h: Add declaration of compatible_flag.
15711 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
15713         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
15715         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
15716         derived from node.  New class space_char_hmotion_node.
15717         * troff/input.c (asciify_macro): New function.
15718         * troff/input.c (init_input_requests): New request `asciify' bound
15719         to asciify_macro.
15720         * macros/mm.diff: New file.
15721         * Makefile:  In install.mm target use `patch' to apply
15722         macros/mm.diff.
15724         * troff/input.c (macro::print_size): Just print the size in bytes.
15726         * troff/div.c (return_request): Correct the argument
15727         interpretation.
15729 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
15731         * troff/node.h (class composite_node): Add sz member.
15732         * troff/node.c (composite_node::size): Return sz.
15733         * troff/input.c (macro_to_node):  Use the initial size in the
15734         environment as the size of the composite_node.
15736         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
15737         default.
15739 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
15741         * troff/div.c (change_trap): If we get a bad number expression,
15742         do nothing.
15744 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
15746         * lib/matherr.c (matherr): Define this only if math.h defines
15747         TLOSS.
15749 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
15751         * troff/div.c (macro_diversion::distance_to_next_trap): If there
15752         no diversion trap return vunits(INT_MAX - vresolution).
15754 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
15756         * troff/input.c (do_zero_width): New implementation that doesn't
15757         use a temporary environment. Use instead:
15758         (token::add_to_node_list): New function.
15759         * troff/env.c (environment::get_prev_char_height),
15760         (environment::get_prev_char_height),
15761         (environment::get_prev_char_skew): New functions.
15762         (environment::get_prev_char): New function.
15763         (environment::get_prev_char_width): Change to use get_prev_char.
15764         (init_env_request): Implement new registers .cht, .cdp, .csk.
15765         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
15766         \Z being processed in a separate environment.
15768 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
15770         * tbl/table.c: Removed TABLE_BOTTOM_REG.
15772         * tbl/table.c (table::init_output): In the section release macro,
15773         give a warning message if the section won't fit on one page.
15775         * tbl/table.c (table::do_top): Emit table keep only if table is
15776         boxed.
15777         (table::do_bottom): Likewise for table release.
15778         (table::table), (table::add_vertical_rule):  Remove reference to
15779         keep member.
15780         * tbl/table.h: Remove keep member.
15782         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
15783         SECTION_RELEASE_MACRO, if there's not enough space before the next
15784         trap to output the diversion, call T# ourselves, set
15785         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
15786         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
15787         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
15788         vertical position and return to it before turning traps on again.
15789         
15790 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
15792         * troff/node.c, troff/node.h: In classes derived from node,
15793         replace prev_char_width method by last_char_node method.
15794         * troff/env.c (environment::get_prev_char_width): Use
15795         node::last_char_node rather than node::get_prev_char_width.
15797         * Makefile: Added comment about -fno-inline on 68030-based
15798         Apollos.
15800         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
15801         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
15802         expressions using sizeof to int.
15803         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
15805         * macros/tmac.e (TS):  Don't move @f back past the current
15806         position.
15808 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
15810         * ps/ps.c (main): Buffer stderr.
15811         * dvi/dvi.c (main): Likewise.
15812         * tty/tty.c (main): Likewise.
15814         * ps/ps.c (ps_printer::do_import): Improve error handling.
15816         * troff/input.c (abort_request): Use asciify.
15818         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
15819         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
15820         type of first argument int rather than char.  This works around a
15821         bug on the 68030 based Apollo using g++ 1.37.1.
15823         * tbl/table.h (class table): Add `keep' member.
15824         * tbl/table.c (table::table): Initialize `keep'.
15825         (table::add_vertical_rule): Set `keep' to 1.
15826         (table::do_top): Only emit table keep macro is `keep' is non-zero.
15827         (table::do_bottom): Likewise for table release macro.
15828         (table::do_row): Emit section keep macro even if the row is 0.
15830 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
15832         * macros/tmac.e (@C): Preserve the font family across the change
15833         in environments.
15835 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
15837         * lib/font.c: Initialize font::hor and font::vert to 1.
15838         (font::load_desc): Check the values of font::hor and font::vert.
15840         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
15841         be included in a C compilation.
15842         (iftoa): Use INT_DIGITS. Include lib.h.
15843         (itoa): Likewise.
15844         (as_string): Likewise.
15845         * tbl/table.c: Removed definition of INT_DIGITS.
15846         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
15847         * troff/input.c (input_input_requests): Likewise.
15848         * ps/ps.c (make_encoding_name): Likewise.
15849         (ps_printer::set_style): Likewise.
15850         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
15852         * tty/devascii/R.proto: Map fm onto '.
15853         * tty/devlatin1/R.proto: Likewise.
15855 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
15857         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
15858         argument to \w is at a different input level.
15860         * tbl/table.c (table::init_output): Define a new macro
15861         REPEATED_VPT_MACRO, like vpt but if in a diversion also
15862         transparently outputs itself.
15863         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
15864         vpt.
15865         (table::do_row): Likewise.
15867         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
15868         TRANSPARENT_STRING_NAME.
15870         * tbl/table.c (table::init_output): In the table release macro
15871         print an error message and don't produce any output if after
15872         issuing the need request the table still will not fit.  Also
15873         remove the diversion after bringing it back.
15875         * tbl/table.c (table::init_output): Define a new macro
15876         REPEATED_MARK_MACRO, like mk but if in a diversion also
15877         transparently outputs itself.
15878         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
15879         is necessary because .TH might not call .T#.
15880         (table::do_top): Likewise TOP_REG.
15881         (table::define_bottom_macro): If TOP_REG is no longer valid, use
15882         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
15883         table header might contain just the two top rules.
15885 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
15887         * troff/div.c: Implement new request `ptr' to print all traps.
15889         * troff/env.c (init_env_requests): Implement `.tabs' reg with
15890         init_string_env_reg.
15891         * troff/env.c (class tab_reg): Deleted.
15893 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
15895         * troff/div.c: New number register .pn returns the number of the
15896         next page as set by the pn request.
15898         * macros/tmac.an: Redid headers and footers.  Number each manual
15899         entry starting from 1 unless \nC is > 0, like Sun.  Added an
15900         optional 5th argument to .TH which specifies the manual name and
15901         appears in the center of the header.  Understand the X, P and D
15902         registers like Sun.
15904 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
15906         * troff/env.c (init_env_requests): New number register `.lt' to
15907         return the title length.
15909         * troff/node.h (class transparent_dummy_node): New class.
15910         * troff/node.c (class transparent_dummy_node): Provide member
15911         functions. 
15912         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
15913         than a dummy_node.
15915         * troff/input.c (token::next): New escape sequence \).
15916         * troff/input.c (get_copy): Recognize \) in copy mode.
15918         * troff/input.c (input_stack::clear): New function.
15919         * troff/input.c (exit_request): Use input_stack::clear.
15921         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
15922         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
15924         * troff/env.c: Move set_page_character to input.c.  Move
15925         page_character to input.c also.
15926         * troff/env.c (title): Split off the reading of the parts of the
15927         title into read_title_parts.
15928         * troff/input.c (read_title_parts): New function.  Check the
15929         input_level when testing whether a token matches the delimiter.
15931         * troff/input.c (exit_request): New function.
15932         * troff/input.c (init_input_requests): Bind ex request to
15933         exit_request rather than exit_groff.
15935         * troff/input.c (exit_groff): Call tok.next() before
15936         process_input_stack().
15938 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
15940         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
15941         * troff/env.h: ditto.
15942         * troff/input.c: ditto.
15944         * troff/env.c (environment::is_empty): Test pending_lines.
15946         * troff/env.c (environment::have_pending_lines): Removed.
15948         * troff/input.c: Add request to flush pending lines from the
15949         environment.
15951         * troff/env.c, troff/env.h: Add automatic widow control feature.
15953         * troff/input.c (exit_groff):  Do process_input_stack() after
15954         do_break() but before setting exit_flag to 2.
15956         * troff/input.c: Remove FLUSH_PENDING_LINES and
15957         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
15958         environment after END_TRAP token seen, but only if there aren't
15959         any more traps still unfinished.
15960         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
15962 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
15964         * troff/env.c: Rename the `retain_size' member of class
15965         pending_output_line to `no_fill'.
15967         * troff/env.c (title): When the line is output, make the
15968         retain_size argument !fill.
15970         * troff/node.h: Add `hyphenated' member to struct breakpoint.
15971         * troff/node.c (space_node::get_breakpoints),
15972         (dbreak_node::get_breakpoints):  Fill this in.
15973         * troff/env.c:  Allow specification of maximum number of
15974         consecutive hyphenated lines.
15976         * troff/env.c (environment::is_empty): Add test for !current_tab.
15978 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
15980         * troff/env.c (environment::hyphenate_line): Don't completely give
15981         up if the word is not to be hyphenated; continue so that breaks
15982         can be made at break_char_node's.
15984         * lib/lib.h: Only define INT_MAX if it's not already defined;
15985         undef INT_MIN if it's already defined.
15987         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
15989         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
15990         This works around a bug in AT&T C++ 2.0 used with an ANSI C
15991         compiler.
15992         
15993         * macros/tmac.an (an-header): Set no-space mode.
15995         * macros/tmac.an (TH): Start a new page if necessary.
15997         * Started using ChangeLog at version 0.4.
15999 Local Variables:
16000 version-control: never
16001 coding: latin-1
16002 End: