* src/utils/afmtodit/afmtodit.pl: Remove an incorrect `my' from
[s-roff.git] / ChangeLog
blob065ccdd12df42f7d9386800b0d82d1cb4cca41c6
1 2004-02-14  Werner LEMBERG  <wl@gnu.org>
3         * src/utils/afmtodit/afmtodit.pl: Remove an incorrect `my' from
4         $psname and $italic_angle.
5         Immediately restart file input loops if `split' returns an empty
6         array.
8 2004-02-13  Michail Vidiassov  <master@iaas.msu.ru>
9             Werner LEMBERG  <wl@gnu.org>
11         Update afmtodit to better support Unicode (Michail).
12         Update afmtodit to use Perl 5 syntax (Werner).
14         * src/utils/afmtodit/afmtodit.pl: Don't use `getopts.pl' but
15         `Getopts::Std'.
16         Decorate variables with `my' where necessary.
17         Use `defined' where necessary to avoid warnings.
18         Don't use `do' for subroutine calls.
19         Other minor syntax updates.
20         Check for both `uXXXX[X[X]]' and `uniXXXX'.
21         Handle glyph variants properly.
22         (%unicode_decomposed, %AGL_to_unicode): Don't use `u' prefix in
23         strings.
25         * src/utils/afmtodit/afmtodit.man: Updated.
27 2004-02-13  Werner LEMBERG  <wl@gnu.org>
29         Make groff.texinfo work with texinfo 4.8.
31         * doc/groff.texinfo (@Var): Use @r and @slanted.
32         (@defdummy, @Def*): Use @c to avoid empty lines.
33         (\angles): Replaced with...
34         (\Langlemacro, \Ranglemacro): New TeX macros.
35         (@Langlemacro, @Ranglemacro): New variables defined with @set.
36         (@angles): Use @Langlemacro and @Ranglemacro.
37         (\LE): Replaced with...
38         (\LEmacro): New TeX macro.
39         (@LEmacro): New variable defined with @set.
40         (@LE): Use @LEmacro.
41         (@Lparenmacro, @Rparenmacro, @Lbrackmacro, @Rbrackmacro): New
42         variables defined with @set.
43         (@lparen, @rparen, @lbrack, @rbrack): Replaced with...
44         (@Lparen, @Rparen, @Lbrack, @Rbrack): New macros.
45         Update all callers.
47         Other minor updates.
49         * doc/texinfo.tex: Update to texinfo version 4.8.
51         * README.CVS: Updated.
53 2004-02-09  Alejandro López-Valencia <palopez@etb.net.co> (tiny change)
55         * doc/groff.texinfo (ms Document Control Registers): Document `HY'
56         and `FAM' registers.
58 2004-02-05  Werner LEMBERG  <wl@gnu.org>
60         * tmac/groff_mdoc.man, tmac/doc-common, tmac/doc-ditroff,
61         tmac/doc-nroff, tmac/doc-old.tmac, tmac/doc-syms, tmac/doc.tmac:
62         Update BSD license.
64 2004-02-01  Werner LEMBERG  <wl@gnu.org>
66         * src/roff/groff/groff.man: Add information about paper size.
68 2005-01-25  Werner LEMBERG  <wl@gnu.org>
70         * src/roff/nroff/nroff.sh: Handle `*.ISO8859-1' in locale.  From
71         NetBSD bin/29114.
73 2005-01-22  Ruslan Ermilov  <ru@FreeBSD.org>
75         * tmac/doc.tmac (Sm): Improved.  It didn't work properly in many
76         cases.
77         (Re): Emit a warning if called without `.Rs'.
78         (doc-finish-reference): Use parameter for decreasing
79         `doc-reference-count'.
80         (doc-print-reference): Pass specific count parameters to
81         `doc-finish-reference'.
83 2005-01-21  Werner LEMBERG  <wl@gnu.org>
85         * src/libs/libdriver/input.cpp (delete_current_env, do_file):
86         Reset pointers to zero after deallocation.  This fixes a crash
87         if a driver is called with multiple input files.  Reported by
88         Ken Chilton <ken@chiltonfamily.org>.
90         * src/devices/grops/grops.man: Add more info on DSC.
92 2005-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
94         * tmac/doc-common (Dd), tmac/doc-ditroff (gX, doc-setup-header):
95         Remove dead code.
97 2004-01-17  Werner LEMBERG  <wl@gnu.org>
99         * src/roff/troff/div.cpp (top_level_diversion::space): Protect
100         against division by zero.
102 2005-01-13  Ruslan Ermilov  <ru@FreeBSD.org>
104         * tmac/doc.tmac (Ef): Restore doc-curr-font and doc-curr-size.
106 2004-12-19  Werner LEMBERG  <wl@gnu.org>
108         * install-sh: New version; taken from texinfo CVS.
110 2004-12-17  Werner LEMBERG  <wl@gnu.org>
112         * tmac/devtag.tmac: Protect against loading twice.
113         Protect agains compatibility mode.
114         * tmac/www.tmac: Protect against loading twice.
115         Load `devtag.tmac' before switching off compatibility mode.
116         * tmac/an-old.tmac, tmac/s.tmac: Load `devtag.tmac'.
118 2004-12-16  Mike Bianchi  <mbianchi@Foveal.com>
120         * configure.ac: Produce `contrib/gdiffmk/tests/runtests'.
121         * configure: Updated.
123 2004-12-15  Thomas Klausner  <wiz@netbsd.org>
125         * tmac/doc-syms, tmac/groff_mdoc.man: Add `libpam' library.
127 2004-12-15  Werner LEMBERG  <wl@gnu.org>
129         Make `test-groff' work again -- previously, wrong paths have been
130         used.  Additionally, it can now be called from anywhere.
132         * test-groff.in: Don't test for groff binary.  This is no longer
133         necessary since the proper paths are determined by `configure'.
134         (EXEEXT): Removed.  No longer used.
135         (srcdir, builddir): Use values provided by the configure script.
136         (XENVIRONMENT): Updated.
138         * INSTALL: Updated.
140 2004-12-14  Gaius Mulley  <gaius@glam.ac.uk>
142         Make .tag and .taga work for all devices (but only grohtml actually
143         handles them).
145         * src/devices/grohtml/post-html.cpp: s/html-tag/devtag/.
146         (text_glob::is_br, page::add_tag, html_printer::troff_tag,
147         html_printer::handle_assertion): Don't use hard-coded string
148         lengths.
149         (html_printer::lookahead_for_table): Reset `tbl' properly if
150         necessary.
151         (html_printer::devtag): New function, handling `devtag'.
152         (html_printer::special): Don't handle `html-tag'.
154         * src/include/printer.h, src/libs/libdriver/printer.cpp
155         (printer::devtag): New virtual function.
157         * src/libs/libdriver/input.cpp (parse_x_command) <'X'>: Handle
158         `devtag'.
160         * src/roff/troff/env.cpp, src/roff/troff/mtsm.cpp,
161         src/roff/troff/node.cpp: s/html-tag/devtag/.
163         * src/roff/troff/input.cpp (tag, taga): Always call
164         curenv->add_node.
166         * tmac/an-old.tmac, tmac/s.tmac, tmac/troffrc-end: Use DEVTAG*
167         macros instead of HTML-TAG*.
169         * tmac/devtag.tmac: New file, defining the DEVTAG-* macros.
171         * tmac/www.tmac: Load devtag.tmac.
172         Replace HTML-TAG* macros with DEVTAG* macros.
173         (HTML, HTML-NS): Changed definitions.
174         (URL): Use HTML-NS.
175         (HTML-TAG, HTML-TAG-NS, HTML-TAG-NEXT): Removed.
177         * tmac/Makefile.sub (NORMALFILES): Add devtag.tmac.
179 2004-12-10  Werner LEMBERG  <wl@gnu.org>
181         Import Mike's `gdiffmk' package.
183         * contrib/gdiffmk/*: New files.
184         * Makefile.in (OTHERDIRS): Add contrib/gdiffmk.
185         * NEWS: Updated.
187 2004-12-08  Werner LEMBERG  <wl@gnu.org>
189         Import Keith's `pdfmark' package.  Integration is very preliminary.
191         * contrib/pdfmark/*: New files.
192         * Makefile.in (OTHERDIRS): Add contrib/pdfmark.
193         * NEWS: Updated.
195 2004-12-07  Gaius Mulley  <gaius@glam.ac.uk>
197         Fix a bug with title handling in HTML.
199         * src/devices/grohtml/post-html.cpp (text_glob::is_nf,
200         text_glob::is_fi, text_glob::is_ce): Use strlen to compute string
201         length.
202         (html_printer::handle_tag_within_title): New function.
203         (html_printer::do_title): Use it.
205         * tmac/s.tmac (TL): Don't set `need_eo_tl'.
206         (cov*tl-au-print): Emit `.eo.tl' tag.
208 2004-12-05  Alejandro López-Valencia  <dradul@etb.net.co>
210         * man/groff_char.man: Minor imrovements.
212 2004-12-04  Werner LEMBERG  <wl@gnu.org>
214         * src/preproc/eqn/eqn.man: Revised.
216 2004-11-25  Werner LEMBERG  <wl@gnu.org>
218         * src/utils/xtotroff/xtotroff.c: Reformat to be similar to other
219         groff source files.
220         Include config.h.
221         Include limits.h.
222         Remove X_NOT_STDC_ENV conditional.
223         (Version_string, program_name): New global variables.
224         (groff_flag): Removed.
225         (MapFont): Updated.
226         (usage): Take a stream as argument.
227         Use `program_name'.
228         Update all callers.
229         (main): Add `long_options' array for `--help' and `--version'.
230         Make `-g' a dummy option.
231         Handle `-v' and unknown options.
232         Remove unused `position' variable.
234         * src/utils/xtotroff/Makefile.sub (MAN1): Define.
235         (XLIBS): Add LIBGROFF.
237         * src/utils/xtotroff/xtotroff.man, src/utils/xtotroff/Makefile.in:
238         New files.
240         * src/devices/xditview/Dvi.c (default_font_map): Split into three
241         parts to avoid compiler warning.
242         (resources): Don't initialize with `default_font_map'.
243         (ClassInitialize): Initialize first element of `resources'.
245         * src/devices/xditview/Makefile.sub (devdir, xtotroff, DPIS, fonts):
246         Removed.
248         * src/utils/lkbib/lkbib.man, src/utils/lookbib/lookbib.man,
249         src/utils/pfbtops/pfbtops.man: Revised, updated.
251         * configure.ac: Generate src/utils/xtotroff/Makefile.
252         * configure: Regenerated.
254 2004-11-24  Werner LEMBERG  <wl@gnu.org>
256         First fixes to get produce HTML.
258         * src/devices/grohtml/post-html.cpp (generate_img_src): Add `alt'
259         attribute.
261         * tmac/www.tmac (IMG, PIMG, MPIMG): Add `alt' attribute.
262         (HR, LI): Use `HTML</p>', not `HTML'.
264         * doc/webpage.ms: Minor updates.
266 2004-11-23  Larry Kollar  <kollar@alltel.net>
268         Add option -S grohtml to determine the file split level.
270         * src/devices/grohtml/post-html.cpp (split_level): New global
271         variable.
272         (html_header::determine_header_level): Use split_level.
273         (main): Handle `-S' command line option.
274         Sort options.
276         * src/preproc/html/pre-html.cpp (scanArguments): Updated.
278         * src/devices/grohtml/grohtml.man: Document it.
279         Sort options.
281         * NEWS: Document it.
283 2004-11-23  Y T  <doarhop@hotmail.com>
285         * tmac/s.tmac (ref*add-V, ref*add-N): New macros for handling
286         the volume and number refer entries.
288 2004-11-22  Werner LEMBERG  <wl@gnu.org>
290         * src/devices/grohtml/html-table.cpp
291         (html_table::emit_table_header): Don't emit `cols' attribute which
292         doesn't exist in HTML 4.0 and is thus invalid.
294         * NEWS: More minor fixes and updates.
296 2004-11-18  Werner LEMBERG  <wl@gnu.org>
298         * tmac/www.tmac (HTML-NS, HTML-TAG-NS, HTML-TAG-NEXT): Simplified.
299         (HTML</p>): Minor clean-up.
301         * tmac/groff_www.man: Updated.
303         * src/devices/grohtml/grohtml.man: Revised and updated.
305         * NEWS: Updated.
307 2004-11-18  Gaius Mulley  <gaius@glam.ac.uk>
309         * src/devices/grohtml/post-html.cpp (html_printer::do_heading):
310         Fix space insertion.
311         (html_printer::do_links): Fix rules generation around automatic
312         heading links.
314         * tmac/www.tmac (LK): Use HTML-TAG-NS.
315         (HR): Simplify.
316         No longer emit empty line for non-HTML devices.
318 2004-11-17  Werner LEMBERG  <wl@gnu.org>
320         * doc/Makefile.in (prepare_examples, webpage.html): Handle
321         `groff.css'.
323         * doc/Makefile.sub (EXAMPLEFILES, CLEANNOTSRCDIRADD,
324         prepare_examples, webpage.html): Handle `groff.css'.
326 2004-11-15  Werner LEMBERG  <wl@gnu.org>
328         * NEWS, README, doc/webpage.ms: Updated.
330         * tmac/www.tmac (HTML, HTML-TAG): Minor clean-ups.
332 2004-10-30  Gaius Mulley  <gaius@glam.ac.uk>
334         * src/include/printer.h (printer): Remove virtual function
335         `round_width'.
336         Update all source files.
338         * src/devices/grohtml/post-html.cpp (html_printer): New member
339         function `round_width'.
341 2004-10-20  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
343         * src/preproc/tbl/table.cpp (table::do_row): Fix handling of the `d'
344         column key letter suffix.
346 2004-10-14  Werner LEMBERG  <wl@gnu.org>
348         * Makefile.in (check): Depend on `site.exp' and `docheck'.
349         (docheck): Run dejagnu's `runtest' if it exists.
350         (site.exp): Create dejagnu configuration file.
352         * Makefile.sub (DISTCLEANFILES): Add files related to dejagnu.
354 2004-10-13  Werner LEMBERG  <wl@gnu.org>
356         * src/devices/grohtml/html-text.cpp (html_text_get_alignment),
357         src/devices/grohtml/post-html.cpp (make_val,
358         html_printer::handle_state_assertion): Fix compiler warnings.
360         * src/roff/troff/div.cpp: Include `stringclass.h' and `mtsm.h'.
361         (diversion::diversion): Fix order of initializers.
363         * src/roff/troff/div.h: Don't include `mtsm.h'.
365         * src/roff/troff/env.cpp: Include `stringclass.h' and `mtsm.h'.
366         (environment::environment): Fix order of initializers.
367         (environment::make_tag, environment::construct_format_state): Fix
368         compiler warnings.
370         * src/roff/troff/input.cpp: Include `stringclass.h' and `mtsm.h'.
371         (input_iterator::input_iterator, macro::macro): Fix order of
372         initializers.
374         * src/roff/troff/mtsm.cpp: Include only necessary header files.
375         (state_set::add, state_set::val): Fix compiler warnings.
377         * src/roff/troff/mtsm.h: Don't include `stringclass.h'.
378         (bool_value_state, int_value_state, units_value_state,
379         string_value_state): Remove comma after last element which causes
380         an error with g++ 3.3.3.
382         * src/roff/troff/node.cpp: Include `stringclass.h'.
383         (hline_node::hline_node, vline_node::vline_node,
384         space_char_hmotion_node, left_italic_corrected_node): Fix compiler
385         warnings.
386         (zero_width_node::zero_width_node): Fix order of initializers.
388         * src/roff/troff/node.h: Don't include `mtsm.h'.
389         (hmotion_node): Fix compiler warnings.
391         * src/roff/troff/number.cpp: Include `stringclass.h' and `mtsm.h'.
393 2004-10-12  Gaius Mulley  <gaius@glam.ac.uk>
395         * doc/groff.css: New file.
397         * doc/webpage.ms: Use `groff.css'.
398         Other small fixes.
400         * tmac/an-old.tmac (need_eo_h): New number register.
401         (TH): Emit `.eo.tl' tag after title.
402         (SH): Set `need_eo_h'.
403         (an-trap): Handle `need_eo_h'.
404         (an-do-tag): s/HTML-TAG-NS/HTML-TAG-NEXT/.
406         * tmac/s.tmac (need_eo_h, need_eo_tl): New number registers.
407         (TL): Always start diversion.
408         Updated.
409         (@AI): Always call `par@reset'.
410         (@AB): Update code for -Thtml.
411         (cov*tl-au-print): Handle -Thtml.
412         (par@reset): Handle `need_eo_tl', `need_eo_h'.
413         (@IP): Simplified.
414         (@IT-html): Removed.
415         (@SH): Set `need_eo_h' for -Thtml.
416         (par@TL): s/HTML-TAG/HTMl-TAG-NS/.
417         Set `need_eo_tl'.
418         (@NH): s/HTML-TAG/HTMl-TAG-NS/.
419         Set `need_eo_h' for -Thtml.
420         (@EQ, @EN): Don't handle -Thtml specially.
421         (par@load-init): Don't handle -Thtml specially.
423         * tmac/www.tmac (www:paraspace): New macro.
424         (HTML-NS, HTML-TAG-NS): Use new `tag' request.
425         (HTML</p>, HTML-TAG-NEXT): New macros.
426         (HnE): Emit tag `.eo.h' instead of break.
427         (HR): s/HTML-NS/HTML/.
428         (www-end-nowhere): End diversion only if `www-html' not set.
429         Emit `.eo.tl' tag.
430         (ULS, ULE): s|HTML|HTML</p>|.
431         (LI): Call `www:paraspace'.
432         (HEAD): New macro.
434 2004-10-11  Gaius Mulley  <gaius@glam.ac.uk>
436         * src/roff/troff/request.h (macro): Make `p' public.
437         New variable `is_a_diversion'.
438         New member function `is_diversion'.
441         * src/devices/grohtml/html.h (simple_output): New member function
442         `force_nl'.
444         * src/devices/grohtml/html-table.cpp (tabs::compatible): Fix
445         computation of `total'.
446         (tabs::check_init): New function.
447         (html_table::emit_table_header): Emit style data.
448         (html_table::insert_column): Improved.
450         * src/devices/grohtml/html-table.h: Updated.
452         * src/devices/grohtml/html-text.cpp (html_text::html_text):
453         Initialize `start_space' with TRUE.
454         (html_text::end_tag, html_start_tag): Fix `P_TAG' and `PRE_TAG'
455         cases.
456         (html_text::flush_text): Set `start_space' flag.
457         (html_text::uses_indent, html_text::remove_para_space,
458         html_text::get_alignment): New functions.
459         (html_text::push_para): Updated.
460         (html_text::do_para): Check for empty argument.
461         Don't set `space_emitted'.
462         (html_text::do_space, html_text::emit_space): Updated.
464         * src/devices/grohtml/html-text.h (tag_definition): New variable
465         `really_issued'.
466         (html_text): New member function `uses_indent', `remove_para_space',
467         `get_alignment'.
469         * src/devices/grohtml/output.cpp (simple_output::force_nl): New
470         function.
471         (simple_output:nl): Always emit `\n'.
473         * src/devices/grohtml/post-html.cpp: Include `string.h'.
474         (BASE_POINT_SIZE): Removed.
475         (base_point_size, head_info): New global variables.
476         (text_glob): New member functions `is_ll', `is_tl', `is_eo_tl',
477         `is_eo_h'.
478         (text_glob::is_nf, text_glob::is_fi): Handle `.fi 0' and `.fi 1'
479         tags, respectively.
480         (page::add_and_encode): Pass additional parameter for tag flag.
481         (assert_pos): New structure.
482         (assert_state): New class.
483         (html_printer): Remove `indentation', `prev_indent'.
484         Add variables `troff_indent', `device_indent', `temp_indent'.
485         Add variables `seen_indent', `next_indent', `seen_pageoffset',
486         `next_pageoffset', `seen_linelenght', `next_linelength',
487         `seen_center', `next_center', `seen_space', `seen_break', `as'.
488         Add member functions `do_check_center', `do_space', `do_head',
489         `get_troff_indent', `restore_troff_indent', `handle_assertion',
490         `handle_state_assertion', `do_end_para', `set_char_and_width'.
491         Change argument to `do_fill' to `char *'.
492         Update constructor.
493         (html_printer::emit_raw): Call `shutdown_table'.
494         Use new functions.
495         (html_printer::do_center): Simplified.
496         (html_printer::do_title): Improved.
497         (html_printer::write_header): Emit one more newline.
498         Use new functions.
499         (html_printer::do_heading, html_printer::do_indent,
500         html_printer::do_eol, html_printer::do_tab_ts,
501         html_printer::do_tab, html_printer::do_tab0,
502         html_printer::calc_po_in, html_printer::next_horiz_pos,
503         html_printer::remove_courier_tabs,
504         html_printer::insert_tab0_foreach_tab, html_printer::begin_page):
505         Updated.
506         (html_printer::do_linelength, html_printer::do_pageoffset,
507         html_printer::do_indentation, html_printer::do_tempindent,
508         html_printer::do_tab_te): Simplified.
509         (html_printer::do_pointsize): Check whether point size is really
510         associated a `.tl' tag.
511         (html_printer::do_break): Rewritten.
512         (html_printer::troff_tag): Improved.
513         (html_printer::flush_globs): Updated.
514         (html_printer::lookahead_for_tables): Handle `is_br'.
515         Use new functions.
516         (html_printer::set_char): Check `sbuf_style.f'.
517         (html_printer::write_navigation): Use string comparison.
518         (html_printer::~html_printer): Emit `head_info'.
519         (html_printer::special): Rewritten.
520         (get_str, make_val): New functions.
521         (main): New option `s' to set the base point size.
523         * src/preproc/html/pre-html.cpp (scanArguments): Handle option `s'.
525 2004-10-10  Gaius Mulley  <gaius@glam.ac.uk>
527         * src/roff/troff/node.cpp: New extern `debug_state'.
528         Include `stringclass.h' and `mtsm.h'.
529         Implement new classes and class members from `node.h'.
530         (real_output_file): Make `fp' public.
531         (troff_output_file): New variables `cur_div_level' and `tag_list'.
532         Update constructors.
533         (troff_output_file::really_print_line): Check whether we should push
534         the current troff state and use the state at the start of the
535         invocation of this diversion.
536         (troff_output_file::add_to_tag_list): New member function.
537         (node::add_char): Handle `glyph_comp_np'.
539         * src/roff/troff/node.h: Include `mtsm.h'.
540         (node): New variables `state', `push_state', `div_nest_level',
541         `is_special'.  Update constructors, all descendants.
542         Pass additional argument to `add_char' member function.
543         New virtual member functions `is_tag', `debug_node',
544         `debug_node_list'.  Update all descendants.
545         (tag_node): New class for handling tags.
546         (output_file): Add variable `state'.
548 2004-10-09  Gaius Mulley  <gaius@glam.ac.uk>
550         * src/roff/troff/mtsm.cpp, src/roff/troff/mtsm.h: New files,
551         providing a minimal troff state machine to emit meta tags for the
552         post-grohtml device driver.
554         * src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS): Handle new
555         files.
557 2004-10-09  Werner LEMBERG  <wl@gnu.org>
559         * tmac/trace.tmac: Fix handling of `am' and `am1' calls.
561 2004-10-06  Gaius Mulley  <gaius@glam.ac.uk>
563         * src/roff/troff/column.cpp (vjustify_node::copy): Updated.
565         * src/roff/troff/div.h: Include `mtsm.h'.
566         (diversion): New variables `any_chars_added', `needs_push',
567         `saved_seen_break', `saved_seen_space', `saved_seen_eol',
568         `saved_suppress_next_eol', `modified_tag'.
569         New virtual member function `is_diversion'.  Update all descendants.
571         * src/roff/troff/div.cpp (diversion::diversion,
572         macro_diversion::macro_diversion): Updated.
573         (do_divert): Handle `seen_break', `seen_space', `seen_eol',
574         `suppress_next_eol'.
575         (top_level_diversion::space): Handle `curenv->seen_space'.
576         (page_offset): Update tag handling.
577         (space_request, blank_line, flush_output): Don't call `add_html_tag'.
579         * src/roff/troff/env.h (environment): Make `tabs' public.
580         Remove `ignore_next_eol', `emitted_node'.
581         Update `output_line', `output'.
582         New variables `seen_space', `seen_eol', `suppress_next_eol',
583         `seen_break'.
584         New member functions `construct_state', `make_tag',
585         `construct_format_state, `construct_new_line_state,
586         `dump_troff_state'.
587         Remove `add_html_tag', `make_html_tag'.
589         * src/roff/troff/env.cpp: New externs `suppress_push',
590         `get_diversion_state', `global_diverted_space'.
591         (pending_output_line): New variable `was_centered'.
592         Update constructor and all callers.
593         (pending_output_line::output): Call `curenv->construct_format_state'.
594         (environment::environment, environment::copy): Updated.
595         (environment::output): Handle `was_centered'.
596         (environment::add_char): Handle construct and diversion state.
597         (environment::add_node): Handle construct state.
598         (environment::newline): Handle `was_centered'.
599         (environment::output_line): Updated.
600         (environment::possibly_break_line): Updated.
601         Update tag handling.
602         (environment::add_html_tag): Replaced with...
603         (environment::make_tag): New function.
604         (environment::add_html_tag_tabs, environment::make_html_tag): Removed.
605         (environment::dump_troff_state): New debugging function.
606         (environment::construct_state, environment::construct_format_state,
607         environment::construct_new_line_state): New functions.
608         (environment::do_break): Updated.
609         Handle `global_diverted_space'.
610         (environment::handle_tag): Update tag handling.
611         (point_size, fill, do_break_request): Don't call `add_html_tag'.
612         (no_fill): Don't call `add_html_tag'.
613         Set `suppress_next_eol'.
614         (center, right_justify, line_length, indent, temporary_indent,
615         set_tabs):
616         Update tag handling.
618         * src/roff/troff/input.cpp: Don't include `stringclass.h'.
619         (input_iterator): New variables `is_diversion', `diversion_state'.
620         Update constructors.
621         (input_stack): New member functions `get_div_level',
622         `get_diversion_state', `check_end_diversion'.
623         New variables `div_level', `diversion_state'.  Initialize them.
624         (suppress_push, global_diverted_space): New global variables.
625         (input_stack::finish_get, input_stack::finish_peek,
626         input_stack::remove_boundary, input_stack::end_file,
627         input_stack::clear, input_stack::pop_macro): Call
628         `check_end_diversion'.
629         (input_stack::push): Handle `div_level' and `diversion_state'.
630         (get_diversion_state): New function.
631         (diverted_space_node::reread): Handle `global_diverted_space'.
632         (macro::macro): Update constructors.
633         (macro::is_diversion): New function.
634         (macro::operator=): Set `is_a_diversion'.
635         (string_iterator): New member function `is_diversion'.
636         (string_iterator::string_iterator): Update constructors.
637         (string_iterator::fill): Set `div_nest_level'.
638         (macro_iterator): New member function `is_diversion'.
639         (do_if_request): Handle `suppress_push'.
640         (tag, taga): New functions.
641         (init_input_requests): Add `tag' and `taga' requests.
643 2004-10-05  Gaius Mulley  <gaius@glam.ac.uk>
645         * src/include/font.h (font): New member function
646         `get_image_generator'.
647         New variables `unscaled_charwidths' and `image_generator'.
649         * src/libs/libgroff/font.cpp (font::get_width): Always return the
650         character's unscaled width if `font::unscaled_charwidths' is set.
651         (font::get_image_generator): New function.
652         (font::load_desc): Check the `unscaled_charwidths' and
653         `image_generator' keywords.
655         * src/libs/libgroff/fontfile.cpp: Initialize
656         `font::unscaled_charwidths' and `font::image_generator'.
658         * font/devhtml/DESC.proto: s/html/unscaled_charwidths/.
660         * font/devhtml/Makefile.sub (DESC): Set `image_generator' keyword.
662         * man/groff_font.man: Document `unscaled_charwidths' and
663         `image_generator'.
665         * src/preproc/html/pre-html.cpp: Include `device.h'.
666         (image_gen): New global variable.
667         (imageList::createPage): Use `image_gen'.
668         (main): Use `image_generator' keyword.
670 2004-10-04  Gaius Mulley  <gaius@glam.ac.uk>
672         * tmac/html.tmac: Handle \[sqrtex].
674 2004-10-04  Gaius Mulley  <gaius@glam.ac.uk>
676         * src/include/printer.h (printer): New virtual method `round_width'.
678         * src/devices/grodvi/dvi.cpp, src/devices/grolbp/lbp.cpp,
679         src/devices/grolj4/lj4.cpp, src/devices/grops/ps.cpp,
680         src/devices/grotty/tty.cpp (printer::round_width): New function
681         member.
683         * src/devices/grohtml/post-html.cpp (printer::round_width): New
684         function member.
685         (html_printer::set_numbered_char): Use it.
687 2004-10-03  Gaius Mulley  <gaius@glam.ac.uk>
689         * aclocal.m4 (GROFF_GHOSTSCRIPT_PATH): New macro.
691         * configure.ac: Call GROFF_GHOSTSCRIPT_PATH.
693         * configure: Regenerated.
695         * Makefile.in (GHOSTSCRIPT): New variable.
696         (MDEFINES): Add GHOSTSCRIPT.
698 2004-10-03  Werner LEMBERG  <wl@gnu.org>
700         * INSTALL.gen: Updated (taken from texinfo CVS).
702 2004-09-28  Werner LEMBERG  <wl@gnu.org>
704         * NEWS: Updated.
706 2004-09-28  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
708         * tmac/groff_www.man: Revised and updated.
710 2004-09-26  Werner LEMBERG  <wl@gnu.org>
712         Fix \$@ and \$* to handle any number of arguments.
714         * src/roff/troff/input.h (BEGIN_QUOTE, END_QUOTE): New special
715         characters.
717         * src/roff/troff/input.cpp (input_iterator::internal_level):
718         Removed.
719         (input_stack): New member functions `increase_level' and
720         `decrease_level'.
721         (input_stack::get_level): Don't use `internal_level'.
722         (get_copy, token::next): Handle BEGIN_QUOTE and END_QUOTE.
723         (end_quote_iterator): Completely removed.
724         (interpolate_arg): Build string for \$@ and \$* which is then
725         pushed onto the input stack.
727 2004-09-23  Keith Marshall  <keith.d.marshall@ntlworld.com>
729         * tmac/groff_ms.man, doc/groff.texinfo: Document changes from
730         2004-09-19.
732 2004-09-23  Werner LEMBERG  <wl@gnu.org>
734         * tmac/an-old.tmac (ne): Using default scaling operator.
736 2004-09-19  Keith Marshall  <keith.d.marshall@ntlworld.com>
738         This change implements the following features:
740         PORPHANS
741           New numeric register: Defines number of lines following LP, PP,
742           QP, IP or XP, which must be kept together, before any automatic
743           page break.  If insufficient space remains on the current page, a
744           page break is forced before the new paragraph begins.
746         HORPHANS
747           New numeric register: Sets number of lines of following paragraph
748           which must be kept with a heading, defined by NH or SH, before any
749           automatic page break.  If insufficient space remains on the
750           current page, a page break is forced before the heading.
752         GROWPS
753           (Thanks to Joerg van den Hoff, for this idea).
755           New numeric register: Sets the first level of heading (set with
756           NH), which will keep the same point size as body text; e.g. if
757           GROWPS is set to 3, .NH 3, .NH 4, ... will produce headings at the
758           point size specified by \n[PS], but .NH 2 and .NH 1 will have
759           progressively larger point sizes, determined by \n[PSINCR] (see
760           below).
762         PSINCR
763           New numeric register: Sets the point size increment for each level
764           of heading, (set with NH), below the threshold level set by
765           GROWPS; e.g. if \n[PS] = 10, \n[GROWPS] = 3 and \n[PSINCR] = 2.0p,
766           then .NH 1 will produce 14pt headings, .NH 2 will produce 12pt,
767           and all other levels will remain at 10pt, (because \n[PS] = 10).
769         SH
770           Existing macro now accepts a numeric argument, to make heading
771           size match that of NH with same argument value, when the
772           GROWPS/PSINCR feature is enabled.
774         SN-DOT
775           New string, set by NH macro, replaces the existing (undocumented)
776           use of SN, to represent the assigned section number.
778         SN-NO-DOT
779           New string, set by NH macro, represents the assigned section
780           number, but omits the terminal period (periods at intermediate
781           levels are retained).
783         SN
784           String set by NH macro, originally undocumented, now implemented
785           as an alias for SN-DOT (which reproduces original behaviour).
787         * tmac/s.tmac (PORPHANS): New register.
788         (par*start): Use it.
789         (HORPHANS, GROWPS, PSINCR): New registers.
790         (SH-NO-TAG, @SH): Use them.
791         (@NH): Improved.
793 2004-09-19  Keith Marshall  <keith.d.marshall@ntlworld.com>
795         * NEWS, doc/groff.texinfo, tmac/groff_ms.man: Document the deletion
796         of `Ds' and `De' macros.
798 2004-09-10  Werner LEMBERG  <wl@gnu.org>
800         In tbl, handle \a as an interpreted leader character if in
801         compatibility mode.
803         * src/preproc/tbl/table.h (PREFIX, PREFIX_CHAR, LEADER,
804         LEADER_CHAR): New macros.
805         (compatible_flag): New declaration.
807         * src/preproc/tbl/main.cpp (table_input): Add LEADER_1, LEADER_2,
808         LEADER_3, and LEADER_4 to `state'.
809         (table_input::get): Handle `\a'.
811         * src/preproc/tbl/table.cpp (PREFIX): Removed.
812         (LEADER_REG): New macro.
813         (table::init_output): Define LEADER_REG string register if in
814         compatibility mode.
816         * src/preproc/tbl/tbl.man: Document it.
818 2004-08-18  Werner LEMBERG  <wl@gnu.org>
820         * tmac/doc.tmac (An): Fix error message.
822 2004-08-06  Werner LEMBERG  <wl@gnu.org>
824         * src/preproc/tbl/main.cpp (main): Call `fatal' not `error' if a
825         file can't be opened.  UNIX tbl has the same behaviour.
827 2004-08-05  Y T  <doarhop@hotmail.com>
829         * src/preproc/grn/hdb.cpp (compatibility_flag): Add declaration.
830         (DBRead): If in compatibility mode, take into account the text
831         when computing figure boundaries.
833 2004-08-05  Werner LEMBERG  <wl@gnu.org>
835         * src/preproc/soelim/soelim.man: Improved.  Based on suggestions
836         from Tadziu Hoffmann.
838 2004-08-03  Werner LEMBERG  <wl@gnu.org>
840         * doc/meref.me: Document `_M' register.
842 2004-08-03  Martin Husemann  <martin@duskware.de>
844         Make hpftodit work correctly on big-endian systems.
846         * src/utils/hpftodit/hpftodit.cpp (File): New method
847         `get_uint32(char *)'.
848         (entry): New member `orig_value'.
849         (read_tags): Use new method.
850         (output_font_name, read_and_output_pcltypeface, dump_ascii):
851         Updated.
853 2004-08-01  Werner LEMBERG  <wl@gnu.org>
855         * tmac/s.tmac: Undo change 2003-06-29.  The proper macro definitions
856         are already in X11's `macros.t' file.
858 2004-08-01  Jeff Conrad  <jeff_conrad@msn.com>
860         * src/utils/hpftodit/hfptodit.cpp (output_font_name, dump_ascii):
861         Fix casting bug.
862         (read_and_output_pcltypeface): Handle strings with length <= 4.
864 2004-07-27  Egil Kvaleberg  <egil@kvaleberg.no>
866         * tmac/s.tmac (pg@top): Don't save `PO' register.
867         (pg*end-col, pg*end-page): Directly use `PO' register.
869 2004-07-27  Werner LEMBERG  <wl@gnu.org>
871         * man/groff_tmac.man: Mention `trace' and `pic' macro packages.
873         * src/preproc/refer/refer.cpp (output_references): Check for
874         empty hash table.
875         * src/preproc/refer/refer.man: Improve documentation of
876         `bibliography' command.
878 2004-07-26  Werner LEMBERG  <wl@gnu.org>
880         Add requests `fcolor' and `gcolor'.
882         * src/roff/troff/env.cpp (fill_color_change, glyph_color_change):
883         New functions.
884         (init_env_requests): Add `fcolor' and `gcolor'.
886         * src/roff/troff/input.h: Export do_glyph_color and do_fill_color.
888         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
889         Document new requests.
891 2004-07-24  Werner LEMBERG  <wl@gnu.org>
893         Add support for fractional point sizes in ms macros.  A value for
894         PS, VS, FPS, and FVS greater than or equal to 1000 is always divided
895         by 1000.  For example, `.nr PS 10250' sets the font size to 10.25p.
897         * tmac/s.tmac (@AU, @AI, par@load-init, par@init, par@reset, NL,
898         PX): Handle fractional point sizes for PS, VS, FPS, and FVS.
900         * tmac/groff_ms.man, docs/groff.texinfo, NEWS: Document it.
902 2004-07-19  Werner LEMBERG  <wl@gnu.org>
904         * src/preproc/pic/lex.cpp (for_input): Add member `from'.
905         Update constructor.
906         (do_for, for_input::get, for_input::peek): Handle negative `by'.
907         * src/preproc/pic/pic.man, doc/pic.ms, NEWS: Document it.
909 2004-07-08  Thomas Klausner  <wiz@netbsd.org>
911         * tmac/doc-syms (doc-str-St--p1003.1-2004): New string.
912         * tmac/groff_mdoc.man: Updated.
914 2004-07-05  Werner LEMBERG  <wl@gnu.org>
916         * doc/groff.texinfo: Further improve documentation of `hcode'.
918 2004-07-04  Sang Dae Yu  <sdyu@bh.knu.ac.kr>
920         Improve appearance of arrows in pic.
922         * src/preproc/pic/object.cpp (draw_arrow): Make outline of filled
923         arrow head thin.
924         Use two line segments for drawing non-filled arrow head.
925         (line_object::print, spline_object::print): Shorten line length to
926         avoid arrow sticking.
927         (arc_object::print): Take arrow direction into account.
929 2004-07-03  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
931         * tmac/groff_www.man: Update documentation of .MPIMG.
933 2004-07-03  Werner LEMBERG  <wl@gnu.org>
935         * tmac/an-old.tmac (RI): Always start with font `R'.
936         (RI, IR): Properly end with font `R'.
938 2004-07-02  Paul Eggert  <eggert@cs.ucla.edu>
940         * man/ditroff.man, man/groff_font.man, man/groff_out.man,
941         src/devices/grohtml/grohtml.man, src/preproc/grn/grn.man,
942         src/preproc/pic/pic.man, tmac/groff_man.man, tmac/groff_ms.man:
943         Don't pass more than six arguments to .R, .I, .B, etc., for
944         compatibility with traditional troff macros.
946 2004-07-02  Werner LEMBERG  <wl@gnu.org>
948         * src/roff/troff/input.h: s/COMPATIBLE_SAVE/PUSH_GROFF_MODE/.
949         s/COMPATIBLE_RESTORE/POP_GROFFCOMP_MODE/.
950         Update all users.
951         (PUSH_COMP_MODE): New internal character constant.
952         Update all users.
954         * src/roff/troff/input.cpp (get_copy): Handle PUSH_GROFF_MODE,
955         PUSH_COMP_MODE, and POP_GROFFCOMP_MODE.
956         (token::next, macro::append): Handle PUSH_COMP_MODE.
957         (decode_args): Add PUSH_GROFF_MODE or PUSH_COMP_MODE before and
958         POP_GROFFCOMP after each of the decoded arguments to make them
959         independent from the compatibility mode status.
960         (comp_mode): Add `COMP_ENABLE'.
961         (do_define_string, do_define_macro): Handle COMP_ENABLE.
962         (define_string, append_string, define_macro, define_indirect_macro,
963         append_macro, append_indirect_macro): Handle `compatible_flag'.
964         (chop_macro, substring_request, asciify): Handle PUSH_COMP_MODE.
966         * man/groff_diff.man, doc/groff.texinfo: Updated.
968 2004-07-01  Werner LEMBERG  <wl@gnu.org>
970         * doc/groff.texinfo: Improve documentation of `hcode'.
971         Use @documentencoding and convert document to latin-1; to do that
972         make latin characters active and assign proper macros (within a
973         @tex...@end tex environment).
974         * doc/Makefile.in (.texinfo.html, groff): Use --enable-encoding.
975         * doc/Makefile.sub (groff): Ditto.
977 2004-06-29  Werner LEMBERG  <wl@gnu.org>
979         Implement two new conditional operators `F <name>' and `S <name>'
980         which check whether <name> is a valid font or style, respectively.
982         * src/libs/libgroff/font.cpp (text_file): Add `silent' member.
983         (text_file::text_file): Updated.
984         (text_file::error): Don't emit message if `silent' is set.
985         (font::load_font): Add optional third argument (which is directly
986         passed to `load'.
987         (font::load): Add optional second argument to check the header of
988         a font only, without emitting warning or error messages.
989         * src/include/font.h (font): Updated.
991         * src/roff/troff/input.cpp (do_if_request): Implement `S' and `F'
992         conditionals.
993         * src/roff/troff/node.cpp (mount_font_no_translate): Add optional
994         fourth argument to check a font without mounting.
995         (check_font, check_style): New functions.
996         * src/roff/troff/node.h: Updated.
998         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
999         Updated.
1001 2004-06-27  Werner LEMBERG  <wl@gnu.org>
1003         Implement new string-valued register `.sty' to return the current
1004         style name.
1006         * env.cpp (environment::get_style_name_string): New function.
1007         (init_env_requests): Add `.sty' register.
1008         * env.h (environment): Updated.
1009         * node.cpp (font_info): Make `get_style_name' a friend.
1010         (get_style_name): New function.
1011         * node.h: Updated.
1013         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
1014         Updated.
1016 2004-06-15  Werner LEMBERG  <wl@gnu.org>
1018         * src/preproc/tbl/main.cpp (process_data) <GOT_RIGHT_BRACE>: Handle
1019         `nospaces' option.
1021 2004-06-10  Colin Percival  <colin.percival@wadham.ox.ac.uk>
1023         * doc/meintro.me, doc/meref.me: Don't use \*[td], \n[dy], \*[mo],
1024         and \n[mo] to avoid dependency on current date.
1026 2004-06-08  Werner LEMBERG  <wl@gnu.org>
1028         * Makefile.sub (install_data): New target.
1030 2004-06-04  Werner LEMBERG  <wl@gnu.org>
1032         * src/libs/libxutil/Makefile.sub (EXTRA_CFLAGS): Define.
1034 2004-06-03  Werner LEMBERG  <wl@gnu.org>
1036         * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Fix typo and
1037         order of libraries.
1038         (install_data): Add $(srcdir).
1040         * src/utils/xtotroff/Makefile.sub (EXTRA_LDFLAGS): Fix order of
1041         libraries.
1043 2004-06-02  Werner LEMBERG  <wl@gnu.org>
1045         * aclocal.m4 (GROFF_X11): s/have_no_x/groff_no_x/.
1046         Add X11 stuff to CFLAGS, LDFLAGS, and LIBS temporarily.
1047         Add test for Xmu library.
1048         (GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
1049         GROFF_APPRESDIR_DEFAULT): New macros.
1051         * configure.ac: Call GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
1052         and GROFF_APPRESDIR_DEFAULT.
1054         * configure: Regenerated.
1056         * Makefile.in (appresdir): New variable.
1057         (MDEFINES): Add appresdir.
1059         * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Add -Xmu and
1060         -Xt.
1061         (install_data, uninstall_sub): New targets to handle GXditview.ad.
1063         * src/utils/indxbib/Makefiles.ub (install_data): Depend on
1064         `$(srcdir)/eign', not `eign'.
1066         * MANIFEST, INSTALL, NEWS, PROBLEMS: Updated.
1068         * man/groff_out.man, man/roff.man, src/devices/grops/grops.man,
1069         src/devices/xditview/gxditview.man, src/roff/groff/groff.man:
1070         Protect (g)xditview with `\%' to avoid hyphenation.
1071         Other minor formatting.
1073 2004-06-01  Werner LEMBERG  <wl@gnu.org>
1075         Integrate gxditview into groff's standard directory hierarchy.
1077         * src/xditview/*: Moved to ...
1078         * src/devices/xditview/*: Here.
1079         Moved DviChar.h and XFontName.h to src/include.
1080         Moved DviChar.c and XFontName.c to new directory src/libs/libxutil.
1081         Split off `xmalloc' into new file src/libs/libxutil/xmalloc.c.
1082         Moved xtotroff.c to new directory src/utils/xtotroff.
1083         Provide proper Makefile.sub files (reusing the stuff from
1084         Imakefile.in).
1085         DESC renamed to DESC.in.
1086         Removed GXDitview-ad.h, INSTALL, Imakefile.in.
1087         Converted everything from K&R to ANSI C.
1088         Decorated with const where appropriate.
1089         Cast string constants with `String' and `char *' where appropriate.
1090         Made it compile with C++ (used as a C compiler).
1091         Removed other minor compiler warnings.
1093         * src/devices/xditview/device.c: Include config.h, string.h, and
1094         defs.h.
1095         Don't declare `exit', `strtok', `strchr', and `getenv'.
1096         (FONTPATH): Remove.
1098         * src/devices/xditview/font.c: Don't declare `XParseFontName' and
1099         `XFormatFontName'.
1101         * src/devices/xditview/xditview.c: Include config.h.
1102         Include stdio.h earlier.
1103         Protect declaration of `popen' and `pclose' with
1104         NEED_DECLARATION_POPEN and NEED_DECLARATION_PCLOSE.
1105         Replace `caddr_t' with `XtPointer'.
1106         (MakePromptFunc): New typedef.
1107         (DoPrint): Use RETSIGTYPE.
1108         (promptfunction): Change type to MakePromptFunc.
1109         (MakePrompt): Use MakePromptFunc for third argument.
1110         (xmalloc): Removed.
1112         * src/devices/xditview/ad2c: Add casts to `String'.
1114         * src/include/XFontName.h (XFontNameString): Don't use array
1115         notation.
1116         Add prototypes for `XParseFontName', `XFormatFontName',
1117         `XCompareFontName', and `XCopyFontName'.
1119         * src/include/Makefile.sub (HDRS): Add `DviChar.h' and
1120         `XFontName.h'.
1122         * src/utils/xtotroff/xtotroff.c: Include getopt.h.
1123         Don't declare `XParseFontName' and `XFormatFontName'.
1124         (xmalloc): Removed.
1125         (main): Remove `optind' and `optarg'.
1127         * Makefile.in (XDEVDIRS, XPROGDIRS, XLIBDIRS): New variables
1128         (to select programs which need X).
1129         Make XDEVIDIRS depend on `FORCE'.
1130         (X_CFLAGS, X_LIBS, X_EXTRA_LIBS, X_PRE_LIBS): New variables (for
1131         X support).
1132         (MDEFINES): Updated.
1133         (LIBDIRS): Use XLIBDIRS.
1134         (CPROGDIRS): Use XPROGDIRS.
1135         (DEVDIRS): Remove font directories for gxditview.
1136         (ALLDIRS, DISTDIRS): Add XDEVDIRS.
1137         (EXTRADIRS): Remove src/xditview.
1139         * Makefile.sub (DISCLEANFILES): Updated.
1141         * Makefile.comm (LIBXUTIL): New variable.
1142         (.cpp.o, .cpp.obj): Handle EXTRA_CCFLAGS.
1143         (.c.o, .c.obj, .y.o): Handle EXTRA_CFLAGS.
1145         * Makefile.cpg, Makefile.ccpg ($PROG): Handle EXTRA_LDFLAGS.
1147         * aclocal.m4 (GROFF_X11): New function.
1149         * configure.ac: Call GROFF_X11.
1150         Don't create src/xditview/Imakefile.
1151         Don't emit notice how to build gxditview.
1153         * configure: Regenerated.
1155         * test-groff.in (GROFF_BIN_PATH, XENVIRONMENT): Updated.
1157 2004-05-28  Akihiro Sagawa  <sagawa@sohgoh.net>
1159         * Makefile.in (CPPFLAGS): Define.
1160         (MDEFINES): Add CPPFLAGS.
1162 2004-05-27  Werner LEMBERG  <wl@gnu.org>
1164         * arch/misc/Makefile.sub (shdeps.sed): Use $(srcdir).
1166 2004-05-26  Niklas Edmundsson  <nikke@acc.umu.se>
1168         Fix problems with `friend name injections'.
1170         * src/preproc/eqn/box.h (make_mark_box, make_lineup_box,
1171         make_script_box), src/roff/troff/div.h (end_diversions),
1172         src/roff/troff/env.h (title), input.cpp (process_input_stack): Undo
1173         change 2004-04-08.
1175 2004-05-25  Bernd Warken  <bwarken@mayn.de>
1177         * src/preproc/pic/pic.man, doc/pic.ms: Add example for `command'.
1179 2004-05-25  Werner LEMBERG  <wl@gnu.org>
1181         * src/libs/libgroff/cset.cpp, src/libs/libgroff/lf.cpp,
1182         src/libs/libgroff/color.cpp: Include lib.h.
1184 2004-05-25  Paul Eggert  <eggert@cs.ucla.edu>
1186         * PROBLEMS: Update documentation for problems with Sun C++ 5.0
1187         through Forte 6u1, and for how to get GNU make on Solaris.
1189 2004-05-24  Werner LEMBERG  <wl@gnu.org>
1191         * PROBLEMS: Document problems with gcc 3.4.0 on Sun.  Reported
1192         by Paul Eggert.
1194 2004-05-15  Keith Marshall  <keith.d.marshall@ntlworld.com>
1196         * arch/misc/Makefile.sub (shdeps.sed): Don't use `$<' in explicit
1197         rule.
1199 2005-05-14  Werner LEMBERG  <wl@gnu.org>
1201         * REVISION: Set to 2.
1203         * aclocal.m4 (GROFF_STDINT_H): Removed.
1204         (GROFF_INTTYPES_H): Define HAVE_CC_INTTYPES_H.
1206         * configure.ac: Updated.
1207         * configure, src/include/config.hin: Regenerated.
1209         * src/libs/libgroff/tmpname.cpp: Don't include stdint.h but
1210         inttypes.h conditionally.
1212 2003-05-13  Werner LEMBERG  <wl@gnu.org>
1214 Version 1.19.1 released
1215 =======================
1217 2004-05-10  Stephen Gildea  <http://www.gildea.com/stephen>
1219         * src/preproc/refer/label.y (same_author_last_name,
1220         same_author_name): Handle empty sort keys.
1222 2004-05-10  Werner LEMBERG  <wl@gnu.org>
1224         * NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,
1225         tmac/TODO: Updated.
1227         * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
1228         doc-str-Lb-librt): Reset font.
1229         (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
1230         Provide `doc-str-Lb' to reset font.
1231         * tmac/groff_mdoc.man: Updated.
1233 2004-05-08  Jan Schaumann  <jschauma@netmeister.org>
1235         * src/preproc/html/pre-html.cpp (make_message): Make it work for
1236         snprintf versions which don't conform to ANSI C 99 (this is,
1237         counting the string's trailing null byte in the return value).
1239 2004-05-07  Keith Marshall  <keith.d.marshall@ntlworld.com>
1241         * src/roff/troff/node.cpp (suppress_node::tprint): Don't expect
1242         that all implementations of sprintf handle null pointers correctly.
1244 2004-05-04  Werner LEMBERG  <wl@gnu.org>
1246         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1247         Document `.U' register.
1249         * src/roff/troff/env.cpp (environment::mark_last_line)
1250         [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers.
1252 2004-05-04  Larry Kollar  <kollar@alltel.net>
1254         New read-only register `.U'; it returns 1 in safer mode and 0
1255         otherwise.
1257         * src/roff/troff/input.cpp (init_input_requests): Implement `.U'
1258         register.
1260 2004-05-03  Werner LEMBERG  <wl@gnu.org>
1262         * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
1264 2004-04-17  Werner LEMBERG  <wl@gnu.org>
1266         * src/include/font.h (font): Use `int' for ch_index.
1267         * src/libs/libgroff/font.cpp (font::alloc_ch_index,
1268         font::compact): Updated.
1270         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
1271         warnings.
1273         * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
1274         (hyphen_word): Fix compiler warnings.
1275         * src/roff/troff/input.cpp (get_char_for_escape_name): Return
1276         `char'.
1277         Update all callers.
1278         (get_delim_number, get_line_arg): Change second argument type to
1279         `unsigned char'.
1280         (macro_header::copy, token::next, do_define_string,
1281         do_define_character, substring_request, asciify_macro,
1282         unformat_macro, read_size, non_interpreted_node::interpret,
1283         while_request, main: Fix compiler warnings.
1284         (read_color_draw_node): Initialize `col'.
1286         * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
1287         `start_col' and `end_col' of type `int'.
1288         (vertical_rule): Make `col' of type `int'.
1290         * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
1291         for EOF.
1293         * src/preproc/refer/label.y (uppercase_array, lowercase_array):
1294         New arrays.
1295         (format_serial): Use them to remove dependency on ASCII.
1297         * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
1298         compiler warning.
1299         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
1300         Ditto.
1302         * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
1303         compiler warnings.
1304         (glyph): Change type of `hpos' to `int'.
1306         * src/devices/lbp/lbp.cpp (strsep): Removed.  Unused.
1307         * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
1309         * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
1311         * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
1313 2004-04-16  Werner LEMBERG  <wl@gnu.org>
1315         * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
1316         src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
1317         src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
1318         `double' instead of `float' everywhere.
1319         * src/preproc/grn/main.cpp: Use `double' instead of `float'
1320         everywhere.
1321         (main): Add return value.
1322         * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
1323         everywhere.
1324         Update all user functions.
1326         * src/include/search.h, src/include/ptable.h, src/include/printer.h,
1327         src/preproc/eqn/box.h, src/preproc/pic/object.h,
1328         src/preproc/refer/refer.h, src/preproc/tbl/table.h,
1329         src/preproc/tbl/table.cpp, src/roff/troff/env.h,
1330         src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
1331         src/roff/troff/input.cpp, src/roff/troff/request.h,
1332         src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
1333         declarations.
1335         * src/utils/indxbib/signal.c: Include stdlib.h.
1337 2004-04-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
1339         * tmac/s.tmac (@init, RP): Allow initialization of the PO register
1340         before the first page.
1342 2004-04-14  Thomas Klausner  <wiz@netbsd.org>
1344         * tmac/doc-common (doc-volume-as-*): Use lowercase names.
1345         (doc-operating-system-*): Updated.
1346         * tmac/doc-syms (doc-str-St-*): Various small fixes.
1347         (doc-str-Lb-*): Add more library names.
1349 2004-04-10  Art Haas  <ahaas@airmail.net>
1351         * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
1352         use anonymous type.
1354 2004-04-09  Art Haas  <ahaas@airmail.net>
1356         * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
1358 2004-04-09  Keith Marshall  <keith.d.marshall@ntlworld.com>
1360         * arch/misc/shdeps.sh: Generate better comment for sed script.
1362 2004-04-08  Art Haas  <ahaas@airmail.net>
1364         * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
1365         src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
1366         src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
1367         src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
1368         (polyfill), src/preproc/grn/main.cpp (polyfill),
1369         src/preproc/refer/command.cpp (command_table),
1370         src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
1371         gcc 3.5 doesn't like).
1373 2004-04-08  Werner LEMBERG  <wl@gnu.org>
1375         Removing many compiler warnings.  groff should now compile with
1376         a C++ compiler used for C files also.  [Simple variable renamings
1377         to avoid shadowing aren't logged in detail.]
1379         * src/devices/grodvi/dvi.cpp: Some local variable renamings.
1380         (draw_dvi_printer::draw) ['c']: Enclose in block.
1382         * src/devices/grohtml/post-html.cpp: Some local variable renamings.
1383         (page::add_line): Fix typos.
1384         * src/devices/grohtml/html-text.cpp: Some local variable renamings.
1386         * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
1387         Some local variable renamings.
1388         * src/devices/grolbp/lbp.h: Some local variable renamings.
1390         * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
1391         variable renamings.
1393         * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
1394         Remove redundant local variable declaration.
1395         * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
1396         Don't use `caddr_t' but `void *'.
1397         Enclose functions with `extern "C"' for C++.
1399         * src/libs/libdriver/input.cpp (remember_filename,
1400         remember_source_filename): Use cast for string constant.
1402         * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
1403         src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
1404         src/libs/libgroff/geometry.cpp: Some local variable renamings.
1405         * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
1406         style.
1407         Enclose functions with `extern "C"' for C++.
1408         * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
1409         (needs_quoting): Return `int'.
1410         (quote_arg): Add proper casts to malloc and realloc.
1411         * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
1412         various MS Windows environments.
1413         (spawnvp_wrapper): Add proper cast to malloc.
1415         * src/preproc/eqn/box.h: Remove redundant declarations of
1416         `make_script_box', `make_mark_box' and `make_lineup_box'.
1417         * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
1418         * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
1419         variable renamings.
1421         * src/preproc/grn/hpoint.cpp: Some local variable renamings.
1422         * src/preproc/grn/hgraph.cpp: Some local variable renamings.
1423         (dx, dy): Renamed functions to...
1424         (deltax, deltay): This.
1425         * src/preproc/grn/main.cpp: Some local variable renamings.
1426         (deffont): Add `const'.
1427         (initpic, conv): Use cast for string constant.
1429         * src/preproc/html/pre-html.cpp: Some local variable renamings.
1430         (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
1431         (char_buffer::run_output_filter): Second argument is unused.
1432         * src/preproc/html/pushback.cpp: Some local variable renamings.
1434         * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
1435         * src/preproc/pic/object.cpp: Some local variable renamings.
1437         * src/preproc/refer/label.y (lookup_label): Remove redundant
1438         declaration of local variable.
1440         * src/preproc/soelim.cpp: Remove redundant declaration of
1441         `interpret_lf_args'.
1443         * src/preproc/tbl/main.cpp: Some local variable renamings.
1445         * src/roff/groff/groff.cpp (main): Use cast for string constant.
1446         * src/roff/groff/pipeline.c: Enclose declarations of `error',
1447         `c_fatal', and `i_to_a' with `extern "C"' for C++.
1448         Don't use C++-style comments.
1450         * src/roff/troff/env.h: Remove redundant declaration of `title'.
1451         * src/roff/troff/node.h, src/roff/troff/env.cpp,
1452         src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
1453         renamings.
1454         * src/roff/troff/div.h: Remove redundant declaration of
1455         `end_diversions'.
1456         * src/roff/troff/troff.h: Remove redundant declaration of
1457         `cleanup_and_exit'
1458         * src/roff/troff/input.cpp: Remove redundant declaration of
1459         `handle_first_page_transition' and `process_input_stack'.
1461         * src/utils/hpftodit.cpp: Some local variable renamings.
1463         * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
1464         for C++.
1465         Don't define RETSIGTYPE.
1466         * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
1468         * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
1469         (error): Use `const' in argument.
1470         (main): Remove redundant declaration of `optind'.
1471         Move declaration of `Version_string' to top-level.
1473         * PROBLEMS: Document difficulties compiling signal.c if a C++
1474         compiler is used for C.
1476 2004-04-07  Werner LEMBERG  <wl@gnu.org>
1478         * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
1480 2004-04-06  Keith Marshall  <keith.d.marshall@ntlworld.com>
1482         Make scripts like nroff.sh and neqn.sh portable across various
1483         (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
1484         non-POSIX path separators.  The idea is to extend those scripts to
1485         decide at run-time (of the script) which path separator to use.
1487         * arch/misc/Makefile.sub: New file.
1488         * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
1489         This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
1490         a proper definition of the variable `GROFF_RUNTIME'.
1492         * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
1493         (MDEFINES): Add SH_DEPS_SED_SCRIPT.
1494         (PROGDEPDIRS): New variable.
1495         `FORCE' it.
1496         (PROGDIRS): Add PROGDEPDIRS.
1498         * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
1499         Don't substitute @SEP@ and @BINDIR@.
1500         * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
1501         (PATH): Use GROFF_RUNTIME.
1503         * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
1504         Don't substitute @SEP@ and @BINDIR@.
1505         * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
1506         (PATH): Use GROFF_RUNTIME.
1508 2004-04-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
1510         * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
1511         Cygwin which doesn't handle stderr correctly.
1513 2004-03-08  Werner LEMBERG  <wl@gnu.org>
1515         * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
1516         against empty argument.  Problem reported by <cgd@broadcom.com>.
1518 2004-03-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
1520         * Makefile.in (SEP): Replaced with...
1521         (RT_SEP, SH_SEP): Separators for the target platform's native path
1522         separator and the build environment, respectively.
1523         (fontpath, tmacpath): Use RT_SEP.
1524         (MDEFINES): Updated.
1526         * contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
1527         * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
1528         * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
1529         * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
1531 2004-03-05  Werner LEMBERG  <wl@gnu.org>
1533         * fonts/devlj4/Makefile.sub (LJ4RES): Set to 1200.  This helps to
1534         reduce alignment problems with newer printers which use built-in
1535         TrueType fonts (instead of the older Intellifonts).  The ideal
1536         solution is to provide a second set of groff metric files, but this
1537         is extremely time-consuming to produce, given that HP's metric
1538         files are very rudimentary.
1540 2004-03-01  Werner LEMBERG  <wl@gnu.org>
1542         * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
1543         s/operand/argument/ in error message.
1545 2004-03-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
1547         * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
1548         is in use.
1550 2004-03-01  Antti Kantee  <pooka@netbsd.org>
1552         * tmac/s.tmac (XE): Fix error message.
1554 2004-02-27  Jeff Conrad  <jeff_conrad@msn.com>
1556         * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
1557         New macros.
1559         * src/roff/groff/pipeline.c: Declare strcasecmp.
1560         (run_pipeline) [_WIN32]: Use function name variants which don't
1561         start with `_'.
1562         Fix stream handling.
1564 2004-02-27  Keith Marshall  <keith.d.marshall@ntlworld.com>
1566         * src/include/nonposix.h: Fix declaration of `system_shell_name'.
1567         Declare `spawnvp_wrapper' and macro definitions of spawnvp only
1568         for platforms which use the native Win32 runtime libraries.
1569         (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
1571         * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
1572         QUOTE_ARG_REALLOC_ERROR): Fix string.
1574         * src/preproc/html/pre-html.cpp: Remove declaration of
1575         `spawnvp_wrapper'.
1576         Don't use __MINGW32__.
1577         s/DEBUG_FILE/DEBUG_FILE_DIR/.
1578         (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
1579         (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
1580         (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
1581         calls to `set_redirection' and `WAIT'.
1582         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
1583         Fix calls to `set_redirection' and `save_and_redirect'.
1584         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
1585         to `set_redirection' and `save_and_redirect'.
1586         (usage): Fix message.
1587         (makeTempFiles, main): Use `DEBUG_FILE'.
1589 2004-02-21  Werner LEMBERG  <wl@gnu.org>
1591         * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
1593 2004-02-21  Keith Marshall  <keith.d.marshall@ntlworld.com>
1595         * src/libs/libgroff/quotearg.c: New file, providing proper argument
1596         quoting for MSVC's spawn* and exec* functions.
1597         * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
1598         spawnvp with proper quoting for MSVC.
1600         * src/libs/libgroff/assert.cpp (program_name),
1601         src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
1602         * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
1604         * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
1606         * src/include/error.h (program_name): Declare as `extern "C"'.
1607         * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
1609 2004-02-21  Jeff Conrad  <jeff_conrad@msn.com>
1611         * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
1612         spawnvp_wrapper.
1613         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
1615 2004-02-20  Jeff Conrad  <jeff_conrad@msn.com>
1617         * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
1618         variable.
1619         (sbasename) [__MSDOS__ || ...]: New function.
1620         (system_shell_name) [__MSDOS__ || ...]: Use a different, more
1621         generic algorithm.
1622         (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
1623         (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
1624         of XXX.
1625         Use STDOUT_FILENO instead of hardcoded file handle.
1626         (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
1628 2004-02-19  Werner LEMBERG  <wl@gnu.org>
1630         * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
1631         avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
1633 2004-02-18  Werner LEMBERG  <wl@gnu.org>
1635         * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
1636         new font and mapping files.
1638 2004-02-18  Jeff Conrad  <jeff_conrad@msn.com>
1639             Keith Marshall  <keith.d.marshall@ntlworld.com>
1641         * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
1642         an input pipe.  This is needed for the MSVC compiler to make troff's
1643         `-o' option work.
1645         * src/roff/troff/div.cpp: Include nonposix.h.
1646         (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
1648 2004-02-17  Werner LEMBERG  <wl@gnu.org>
1650         * font/devlj4/generate/special.awk: New script.
1651         * font/devlj4/generate/Makefile (S): Use special.awk.
1652         * font/devlj4/*: Regenerated, including the following new files:
1653         Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
1654         MS Symbol (SYMBOL), Wingdings (WINGDINGS).
1655         * NEWS: Document new lj4 fonts and revised hpftodit.
1657 2004-02-17  Paco Andrés Verdú  <pandres@dragonet.es>
1659         * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
1661 2004-01-25  Werner LEMBERG  <wl@gnu.org>
1663         * src/libs/libgroff/progname.cpp: Replaced with...
1664         * src/libs/libgroff/progname.c: New file.
1665         * src/libs/libgroff/Makefile.sub: Updated accordingly.
1667 2004-01-17  Werner LEMBERG  <wl@gnu.org>
1669         * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
1671 2004-01-16  Jeff Conrad  <jeff_conrad@msn.com>
1673         * font/devlj4/generate/wingdings.map,
1674         font/devlj4/generate/symbol.map: Include unnamed glyphs.
1675         Use groff glyph names where possible.
1676         * src/devices/grolj4/lj4_font.man: Minor updates.
1678 2004-01-13  Werner LEMBERG  <wl@gnu.org>
1680         * tmac/www.tmac (DC): Handle TTY devices.
1682         * doc/webpage.ms: Document viewCVS from ffii.org.
1683         * NEWS, README: Updated.
1685         * src/roff/groff/groff.man: Mention lj4_font man page.
1687         * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
1688         variables.
1689         (FONTS): Add SYMBOL and WINGDINGS.
1690         (SYMBOL, WINGDINGS): New targets.
1692 2004-01-13  Jeff Conrad  <jeff_conrad@msn.com>
1694         * src/devices/grolj4/lj4_font.man: New man page.
1695         * src/devices/grolj4/Makefile.sub (MAN5): New variable.
1696         * src/devices/grolj4.man: Mention lj4_font man page.
1698         * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
1699         * src/utils/hpftodit/hpftodit.man: Document it.
1700         (CW): New macro.
1701         Remove details about fonts (which are now in lj4_font.man).
1703         * font/devlj4/generate/symbol.map,
1704         font/devlj4/generate/wingdings.map: New files.
1706 2004-01-12  Werner LEMBERG  <wl@gnu.org>
1708         * README: Mention ffii's viewcvs access.
1710 2004-01-09  Werner LEMBERG  <wl@gnu.org>
1712         * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
1714 2004-01-09  Jeff Conrad  <jeff_conrad@msn.com>
1716         Revert most of the change from 2004-01-03 to better control used
1717         symbol sets.
1719         * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
1720         (text_symbol_sets, special_symbol_sets): New arrays.
1721         (symbol_set_table): New global variable.
1722         (read_symbol_sets): Use search order given in the text_symbol_sets
1723         and special_symbol_sets arrays.  If command line flag -a is not
1724         given, search both arrays.
1725         (output_charset): Require x_height_tag only for command line flag -i.
1727 2004-01-06  Werner LEMBERG  <wl@gnu.org>
1729         Implement string-valued registers \n[.m] and \n[.M] to return the
1730         name of the current drawing and background color, respectively.
1732         * src/roff/troff/symbol.h: Moved to...
1733         * src/include/symbol.h: Here.
1734         Small fixes to make it work outside of the `troff' directory.
1735         * src/roff/troff/symbol.cpp: Moved to...
1736         * src/libs/libgroff/symbol.cpp: Here.
1737         Small fixes to make it work outside of the `troff' directory.
1739         * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
1740         (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
1741         Updated.
1743         * src/include/color.h: Include symbol.h.
1744         (color): Add new field `nm'.
1745         * src/libs/libgroff/color.cpp (color::color): Updated.
1747         * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
1748         src/roff/troff/node.cpp, src/roff/troff/number.cpp,
1749         src/roff/troff/reg.cpp: Don't include symbol.h.
1751         * src/roff/troff/env.cpp: Don't include symbol.h.
1752         (environment::get_glyph_color_string,
1753         environment_get_fill_color_string): New member functions.
1754         (init_env_requests): Handle `.m' and `.M' registers.
1755         * src/roff/troff/input.cpp: Don't include symbol.h.
1756         (default_symbol): Moved to symbol.cpp/symbol.h.
1757         (do_glyph_color, do_fill_color, define_color): Pass symbol name
1758         to color constructor.
1759         * src/roff/troff/env.h: Updated.
1761         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1762         Document new registers.
1764 2004-01-05  Werner LEMBERG  <wl@gnu.org>
1766         * src/roff/troff/node.cpp (space_node::get_breakpoints,
1767         space_node::nbreaks): Protect against zero `next' field.
1769 2004-01-03  Jeff Conrad  <jeff_conrad@msn.com>
1771         In hpftodit, use the symbol sets offered in the TFM.
1773         * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
1774         (symbol_set, text_symbol_sets, special_symbol_sets,
1775         symbol_set_table): Removed.
1776         (get_printcode): Removed.
1777         (read_symbol_sets): Initialize `symbol_set' field with
1778         `NO_SYMBOL_SET'.
1779         Simplify code to just use the `kind' value.
1780         (output_charset): Improve output formatting.
1781         (dump_symbols): Simplified.
1783 2004-01-02  Werner LEMBERG  <wl@gnu.org>
1785         * font/devlj4/generate/text.map: Add more MSL numbers.
1787 2004-01-02  Jeff Conrad  <jeff_conrad@msn.com>
1789         * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
1790         (text_symbol_sets): Add more symbol sets.
1791         (debug_flag): New static variable (moved from `main').
1792         (get_printcode, show_symset): New functions.
1793         (main): Remove `debug_flag'.
1794         (output_charset): Use `show_symset'.
1795         (dump_symbols):  Use `show_symset'.
1796         Print symsets for all glyphs.
1797         (read_map): Actually call `unicode_to_ucode_make' but this time
1798         correctly.
1800 2004-01-01  Werner LEMBERG  <wl@gnu.org>
1802         * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
1803         Fix placement of comments.
1805 2004-01-01  Jeff Conrad  <jeff_conrad@msn.com>
1807         * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
1808         option `-d' is given.
1809         (output_charset): Improve warning messages to give more information.
1810         (dump_symbols): Make information more precise.
1811         (usage): Updated.
1812         (read_map): Don't call unicode_to_ucode_name; the glyph names must
1813         appear as-is and shouldn't be decomposed.
1815 2003-12-31  Werner LEMBERG  <wl@gnu.org>
1817         * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
1818         * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
1819         (FONTS): Add TrueType font families Arial and Times New Roman.
1820         (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
1821         * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
1822         `fl'.
1824 2003-12-31  Jeff Conrad  <jeff_conrad@msn.com>
1826         * test-groff.in (SEP): Quote value.
1827         * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
1828         `tem' to `char*' to avoid deallocation of a pointer to a constant
1829         object which some compilers don't like.
1831 2003-12-31  Werner LEMBERG  <wl@gnu.org>
1833         * font/devlj4/generate (text.map, special.map): Rewritten to work
1834         with the new hpftodit version.
1836 2003-12-30  Jeff Conrad  <jeff_conrad@msn.com>
1838         * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
1839         set and 8bit character code for all glyphs also.
1841 2003-12-30  Werner LEMBERG  <wl@gnu.org>
1843         * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
1845 2003-12-29  Werner LEMBERG  <wl@gnu.org>
1847         More fixes for MSVC compiler.
1849         * doc/Makefile.sub, contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use
1850         $(SEP).
1852         * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
1853         STDERR_FILENO) [_MSC_VER]: Define conditionally.
1854         (getpid) [_MSC_VER]: Remove.
1855         Include direct.h and process.h conditionally.
1857         * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
1858         parentheses for a_delete.
1860         * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
1862         * test-groff: Replaced with...
1863         * test-groff.in: This new template to handle path separator
1864         properly.
1866         * configure.ac: Check for direct.h and process.h.
1867         Generate test-groff script.
1868         * configure, src/include/config.hin: Regenerated.
1870 2003-12-28  Werner LEMBERG  <wl@gnu.org>
1872         Add integral extension glyph.
1873         Add new option `-x' to afmtodit to suppress use of built-in AGL.
1875         * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
1877         * font/devps/generate/textmap: Provide entry for `integralex' to
1878         override (old) PUA value of the AGL.
1879         * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
1880         * font/devps/*: Regenerated.
1882         * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
1883         * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
1885 2003-12-27  Werner LEMBERG  <wl@gnu.org>
1887         Add forgotten `coproduct' symbol (already available for DVI).
1889         * font/devhtml/R.proto, font/devps/generate/textmap,
1890         font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
1891         src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
1892         U+2210 (\[coproduct]).
1894 2003-12-26  Jeff Conrad  <jeff_conrad@msn.com>
1896         hpftodit has been extended to handle TrueType metric files and
1897         more glyphs.  See hpftodit.man for more details.
1899         * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h, 
1900         ctype.h, and unicode.h.
1901         s/msl/charcode/ everywhere since we now handle Unicode values also.
1902         (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
1903         Use it where appropriate.
1904         (MULTIPLIER): Replaced with...
1905         (multiplier): New global static variable.
1906         (scale): Updated.
1907         (tag_type): Add more TFM tags.
1908         (tag_name): New array.
1909         (ENUM_TYPE, FLOAT_TYPE): Removed.
1910         (BYTE_TYPE): New value assigned.
1911         (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
1912         (text_symbol_sets, special_symbol_sets): Extended to cover more
1913         sets.
1914         (check_type): Add return value.
1915         (check_units): Add parameters to get ppi and upem values.
1916         Handle TrueType TFM data.
1917         (output_font_name): New function.
1918         (output_charset): Add parameter to handle TFM type.
1919         Handle TrueType TFMs also.
1920         (em_fract): New macro.
1921         (dump_tags): Be much more verbose and handle more tags.
1922         (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
1923         (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
1924         functions.
1925         (read_map): Add parameter to handle TFM type.
1926         Handle both MSL and Unicode mappings.
1927         (main): Add two new command line options `-a' and `-q'.
1928         Updated to make use of new functions.
1929         (usage): Updated.
1931         * src/utils/hpftodit/hpuni.cpp: New file.
1933         * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
1934         Updated.
1936 2003-12-25  Werner LEMBERG  <wl@gnu.org>
1938         * src/include/nonposix.h (read) [_MSC_VER]: Define.
1940 2003-12-24  Werner LEMBERG  <wl@gnu.org>
1942         * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
1943         by Michail Vidiassov <master@iaas.msu.ru>.
1945 2003-12-20  Werner LEMBERG  <wl@gnu.org>
1947         * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
1948         and u0049_0307.
1949         Add missing latin-2 glyphs.
1950         * font/devutf8/R.proto: Add missing latin-2 glyphs.
1952         * tmac/troffrc: Load `composite.tmac' earlier.
1954         * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
1955         u00{53,73}_0327, and u0049_0307.
1956         * tmac/X.tmac: Add u00{47,67}_0306.
1957         * tmac/tty-char.tmac: Use composite glyph names for readability.
1959         * NEWS: Updated.
1961         * src/include/unicode.h: Remove `extern' keywords.
1963 2003-12-20  Nilgün Belma Bugüner  <nilgun@superonline.com>
1965         * tmac/latin5.tmac: New file.
1967 2003-12-19  Werner LEMBERG  <wl@gnu.org>
1969         Add some glyphs needed for Turkish.
1971         * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
1972         and u0049_0307.
1974         * tmac/composite.tmac: Add `,' as a synonym for `ac' accent. 
1975         * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
1976         u00{53,73}_0327, and u0049_0307.
1978 2003-12-18  Werner LEMBERG  <wl@gnu.org>
1980         * src/devices/grops/ps.cc (ps_output::put_float): Revert change
1981         from 2001-10-04.
1982         Remove trailing zeros.
1984 2003-12-17  Werner LEMBERG  <wl@gnu.org>
1986         Make \? transparent to end-of-sentence recognition.
1988         * src/roff/troff/input.cc (non_interpreted_node): Add
1989         `ends_sentence' member function.
1991 2003-12-16  Werner LEMBERG  <wl@gnu.org>
1993         * doc/groff.texinfo: Document `dt' request correctly.
1994         Other minor typographical improvements.
1996 2003-12-10  Michail Vidiassov  <master@iaas.msu.ru>
1998         * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
2000 2003-12-10  Richard Stallman  <rms@gnu.org>
2002         * LICENSE: Better wording.
2004 2003-12-09  Werner LEMBERG  <wl@gnu.org>
2006         * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
2007         * configure, NEWS: Updated.
2009 2003-12-08  Werner LEMBERG  <wl@gnu.org>
2011         * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
2013 2003-12-07  Bernd Warken  <bwarken@mayn.de>
2015         * LICENSE: Updated.
2017 2003-12-07  Werner LEMBERG  <wl@gnu.org>
2019         * INSTALL: Improved.
2021 2003-12-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
2023         Use path separator character of target platform for compiled-in
2024         default paths.
2026         * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
2027         * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
2028         * configure: Regenerated.
2029         * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
2031 2003-12-05  Werner LEMBERG  <wl@gnu.org>
2033         * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
2034         Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
2036 2003-12-04  Bernd Warken  <bwarken@mayn.de>
2038         * LICENSE: New file.
2040 2003-12-03  Werner LEMBERG  <wl@gnu.org>
2042         * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
2043         ligatures present in AFM files since groff currently only
2044         understands some standard ligatures and nothing else.
2046 2003-12-03  Jeff Conrad  <jeff_conrad@msn.com>
2048         * src/roff/groff/groff.cpp (main): Don't run the spooler if
2049         option -v is given.
2051         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
2052         messages.
2053         Close stdout copy.
2054         Don't use Unix wait flags.
2056 2003-12-02  Werner LEMBERG  <wl@gnu.org>
2058         * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
2059         src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
2060         src/roff/troff/uniuni.cpp: Moved to...
2061         * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
2062         src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
2063         src/libs/libgroff/uniuni.cpp: Here.
2065         * src/include/Makefile.sub.old (HDRS),
2066         src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
2067         src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
2069 2003-12-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
2071         * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
2072         `DEBUG_FILE'.
2073         Updated all users.
2075 2003-12-01  Werner LEMBERG  <wl@gnu.org>
2077         * groff.texinfo: Document special behaviour of `.vs 0'.
2078         Improve documentation of `cflags' request.
2079         * NEWS: Updated.
2081 2003-11-29  Werner LEMBERG  <wl@gnu.org>
2083         * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
2084         * font/devlj4/CORONET: Regenerated.
2086 2003-11-24  Werner LEMBERG  <wl@gnu.org>
2088         * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
2089         if processing hyphenation patterns in traditional mode.
2090         Improve error messages.
2092 2003-11-20  Werner LEMBERG  <wl@gnu.org>
2094         * src/roff/troff/node.cpp (troff_output_file::put_char_width,
2095         troff_output_file::put_char): Fix type of local variable `c'.
2097 2003-11-19  Werner LEMBERG  <wl@gnu.org>
2099         * src/roff/groff/pipeline.c (P): Removed.  Updated all function
2100         declarations.
2101         (i_to_a): Removed.  libgroff already provides this function.
2102         (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
2104 2003-11-18  Keith Marshall  <keith.d.marshall@ntlworld.com>
2106         * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
2107         HAVE_DECL_SYS_LIST.
2109 2003-11-17  Werner LEMBERG  <wl@gnu.org>
2111         * COPYING: Use correct version.
2113 2003-11-11  Werner LEMBERG  <wl@gnu.org>
2115         LynxOS 4.0.0 doesn't declare vfprintf.
2117         * configure.ac: Check for vfprintf.
2118         * configure: Regenerated.
2119         * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
2120         * src/include/config.hin: Regenerated.
2122 2003-11-10  Werner LEMBERG  <wl@gnu.org>
2124         LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
2126         * configure.ac: Check for vsnprintf.
2127         * configure: Regenerated.
2128         * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
2129         `HAVE_VSNPRINTF'.
2130         * src/include/config.hin: Regenerated.
2132 2003-11-09  Werner LEMBERG  <wl@gnu.org>
2134         * aclocal.m4: Updated syntax to autoconf 2.59.
2135         (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
2136         Don't check for gsos2.
2137         (GROFF_SRCDIR, GROFF_BUILDDIR): Removed.  autoconf 2.59 provides
2138         working abs_top_srcdir and abs_top_builddir.
2140         * configure.ac: Updated syntax to autoconf 2.59.
2141         Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
2142         Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
2143         * configure: Regenerated.
2145         * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
2146         s/@groff_top_builddir@/@abs_top_builddir@/.
2148         * src/roff/groff/pipeline.c (xstrsignal):
2149         s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
2151 2003-11-07  Werner LEMBERG  <wl@gnu.org>
2153         * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
2154         make start angle smaller than end angle to circumvent a bug in tpic
2155         handling of some versions of dvipdfm (and dvipdfmx).
2157 2003-10-30  Werner LEMBERG  <wl@gnu.org>
2159         * src/devices/grops/grops.man: Improve section on creating EPS.
2161 2003-10-29  Werner LEMBERG  <wl@gnu.org>
2163         * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
2164         -P-pletter).
2166 2003-10-28  Werner LEMBERG  <wl@gnu.org>
2168         * doc/groff.texinfo: Fix documentation of `.if'.
2170 2003-10-27  Michail Vidiassov  <master@iaas.msu.ru>
2172         * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
2173         the form `uniXXXX' also.
2175 2003-10-27  Werner LEMBERG  <wl@gnu.org>
2177         * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
2178         contrib/pic2graph/pic2graph.sh: Implement secure management of
2179         temporary files.
2180         Pass `-P-pletter' to groff to avoid data outside of the converted
2181         area -- some versions of `convert' (for example 5.3.8) don't check
2182         the bounding box of the image but always use a fixed image size
2183         (letter paper format).
2184         * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
2185         contrib/pic2graph/pic2graph.man: Updated.
2187         * src/roff/groff/groff.man: Document $TMP and $TEMP.
2189 2003-10-26  Werner LEMBERG  <wl@gnu.org>
2191         * src/preproc/pic/troff.cpp (troff_output::simple_circle,
2192         troff_output::simple_ellipse, troff_output::simple_arc,
2193         troff_output::simple_line, troff_output::simple_spline,
2194         troff_output::simple_polygon): Insert a space before arguments.
2195         (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
2196         latter doesn't produce a node, so the following `.sp -1' would do
2197         the wrong thing.
2198         Don't emit `.sp -1' after \M.  This also doesn't produce a token
2199         (and we don't have to care about compatibility mode).
2200         (troff_output::set_color, troff_output::reset_color): Don't emit
2201         `.sp -1' after \M and \m.
2203         * src/roff/troff/input.cpp (old_have_input): New global variable.
2204         (input_stack::get): Handle `old_have_input'.
2205         (process_input_stack) <token::TOKEN_NEWLINE>: Call
2206         `trapping_blank_line' depending on `old_have_input', not
2207         `have_input'.
2209 2003-10-20  Keith Marshall  <keith.d.marshall@ntlworld.com>
2211         * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
2212         (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
2213         default directory names for temporary files.
2214         [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
2216         * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
2217         [__MSDOS__] (run_pipeline): Honour environment variables.
2218         Don't use `tmpnam' but `tempnam' to work around messy
2219         implementation.
2221         * README.MinGW: New file.
2223 2003-10-16  Werner LEMBERG  <wl@gnu.org>
2225         * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
2226         `(*t)->next' without testing validity of `*t'.
2227         (usage): Make it more readable.
2229 2003-10-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
2231         Make html device run under both MS-DOS and Win32.
2233         * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
2234         MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
2235         spawn or fork+exec has to be used, and whether parent must sleep
2236         until the child process terminates.  Used in
2237         `char_buffer::run_output_filter'.
2238         (copyofstdoutfd): Removed.
2239         (char_buffer): Replace `write_file_html' and `write_file_troff'
2240         member functions with `emit_troff_output' and `run_output_filter'.
2241         (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
2242         macros.
2243         (replaceFd): Replaced with...
2244         (set_redirection): New auxiliary function.
2245         (waitForChild): Replaced with...
2246         (save_and_redirect): New auxiliary function for.
2248         (char_buffer::do_html, char_buffer::do_image): Simplified, using new
2249         functions.
2251 2003-10-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
2253         * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
2254         (GROFF_LIBC): New function.
2255         * configure.ac: Call GROFF_LIBC.
2256         Check for `kill'.
2257         * configure: Regenerated.
2259         * src/include/lib.h: Handle __MINGW32__.
2260         * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
2261         Add macro for `pipe'.
2262         Define P_tmpdir.
2264         * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
2265         correctly.
2267         * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
2268         Implement.
2270 2003-10-13  Werner LEMBERG  <wl@gnu.org>
2272         Finally fix change 2003-08-26, based on ideas from Chuck Silvers
2273         <chuq@chuq.com>.
2275         * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
2276         directory.
2278 2003-10-12  Werner LEMBERG  <wl@gnu.org>
2280         * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
2281         src/roff/troff/input.cc (usage): Updated.
2283         * NEWS, doc/groff.texinfo: Updated.
2285 2003-10-12  Peter Miller  <millerp@canb.auug.org.au>
2287         * src/libs/libgroff/searchpath.cpp
2288         (search_path::open_file_cautious): New function which also handles
2289         `-' as stdin and stdout depending on the access mode.
2290         * src/include/searchpath.h (search_path): Updated.
2292         * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
2293         * src/devices/grops/ps.h: Include `searchpath.h'.
2294         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
2295         Open resource file with `include_search_path.open_file_cautious'.
2296         * src/devices/grops/grops.man: Document new `-I' switch.
2298         * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
2299         (main), src/devices/grolj4/lj4.cpp (main),
2300         src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
2302         * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
2303         Replaced with...
2304         (include_search_path): New global variable.
2305         (include_path_append): Removed.
2306         (main): Use `include_search_path.command_line_dir' to handle `-I'.
2307         (do_file): Simplify, using new
2308         `include_search_path.open_file_cautious'.
2310         * src/roff/groff/groff.cpp (print_commands): Accept file handle as
2311         parameter.
2312         (main): Pass arguments to `-I' to both troff and devices.
2313         Improve handling of `-V'.
2314         * src/roff/groff/groff.man: Document changes to -I and -V.
2316         * src/roff/troff/input.cpp (include_search_path): New global
2317         variable.
2318         (next_file, source, ps_bbox_request, transparent_file,
2319         process_input_file): Use new
2320         `include_search_path.open_file_cautious'.
2321         (main) Handle `-I' switch.
2322         * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
2323         Use new `include_search_path.open_file_cautious'.
2324         * src/roff/troff/node.h: New extern symbol `include_search_path'.
2325         * src/roff/troff/troff.man: Document new `-I' switch.
2327 2003-09-15  Ruslan Ermilov  <ru@FreeBSD.org>
2329         Support multiple calls of .Lb in LIBRARY section.
2331         * tmac/doc-common (doc-in-library-section): New register.
2332         (doc-section-library): New string.
2333         (Sh): Set `doc-in-library-section'.
2334         (Rd): Updated.
2335         * tmac/doc-syms (Lb): Insert breaks before and after arguments
2336         if in LIBRARY section.
2337         * tmac/doc.tmac (doc-save-global-vars): Updated.
2338         * NEWS, tmac/groff_mdoc.man: Updated.
2340 2003-09-14  Ruslan Ermilov  <ru@FreeBSD.org>
2342         * tmac/doc-common (doc-default-operating-system): New variable.
2343         (Os): Use it.
2345 2003-09-08  Werner LEMBERG  <wl@gnu.org>
2347         * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
2349 2003-08-31  Werner LEMBERG  <wl@gnu.org>
2351         * contrib/mom/Makefile.sub: Fix last change to make it really work.
2352         * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
2353         (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
2354         $(DEVFILES) are not empty.
2355         * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
2357 2003-08-26  Chuck Silvers  <chuq@chuq.com>
2359         * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
2360         with parallel runs of `make'.
2362 2003-08-23  Stephen Gildea  <http://www.gildea.com/stephen>
2364         * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
2365         insert SORT_SEP.  With certain combinations of sort specifications,
2366         refer sorted entries in the wrong order.  In particular, entries
2367         with a missing field should be be sorted before all entries that
2368         have that field, before refer looks to the next field.
2370 2003-08-23  Werner LEMBERG  <wl@gnu.org>
2372         * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
2373         g++ linker is used.  Reported by Mark J. Reed
2374         <mark.reed@turner.com>.
2376 2003-08-16  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
2378         Add key character `x' to tbl which makes tbl call a user-defined
2379         macro on a table cell.
2381         * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
2382         * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
2383         `set_modifier' after printing the compatibility request.
2384         (set_modifier): Print call to `m->macro' if not empty.
2385         * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
2386         `macro'.
2387         (process_format): Implement cases `x' and `X'.
2388         * src/preproc/tbl/tbl.man, NEWS: Updated.
2390 2003-08-15  Werner LEMBERG  <wl@gnu.org>
2392         * doc/groff.texinfo: Minor fixes.
2394 2003-08-09  Werner LEMBERG  <wl@gnu.org>
2396         * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
2398 2003-08-07  Werner LEMBERG  <wl@gnu.org>
2400         * doc/Makefile.sub: Not all shells expand wildcards in the `for'
2401         argument list to nothing if there is no file to match.  Use `ls' as
2402         a protection, similar to autoconf.
2404         * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
2405         empty argument lists.
2407         * doc/groff.texinfo: Improve documentation how vertical spacing
2408         and line breaks interact.
2409         Other minor fixes.
2411         * tmac/www.tmac: Initialize `www-htmlimage-gap'.
2413 2003-08-03  Werner LEMBERG  <wl@gnu.org>
2415         * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
2416         EPS (using eps2eps or similar programs to compute the bounding box).
2418 2003-07-24  Werner LEMBERG  <wl@gnu.org>
2420         * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
2421         * doc/texinfo.tex: Updated from texinfo 4.6.
2422         * README.CVS: From now on we need texinfo 4.6.
2424 2003-07-23  Werner LEMBERG  <wl@gnu.org>
2426         Add requests `dei1' and `ami1' for completeness.
2428         * src/roff/troff/input.cc (calling_mode): Remove
2429         CALLING_DISABLE_COMP.
2430         (comp_mode): New enumeration.
2431         (do_define_string, define_string, define_nocomp_string,
2432         append_string, append_nocomp_string): Updated.
2433         (do_define_macro): Add third parameter.
2434         (define_macro, define_nocomp_macro, define_indirect_macro,
2435         append_macro, append_nocomp_macro, append_indirect_macro): Updated.
2436         (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
2437         functions.
2438         (ignore): Updated.
2439         (init_input_requests): Add `dei1' and `ami1'.
2441         * tmac/trace.tmac: Handle de1 and am1.
2442         (de): Improve tracing message.
2443         (am): Add missing `do'.
2444         (return): Use de1.
2446         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2447         Document new requests.
2449 2003-07-22  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
2451         Add option -G to .MPIMG to insert a gap between text and the image.
2453         * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
2454         www-finish-left-ll): Updated.
2455         (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
2456         (MPIMG): Make option -L and -R optional.
2457         Implement option -G.
2459 2003-07-22  Gaius Mulley  <gaius@glam.ac.uk>
2461         * src/devices/grohtml/post-html.cpp
2462         (html_printer::do_file_components): Don't use `stdout' as lvalue
2463         since it can be a macro.
2465 2003-07-22  Werner LEMBERG  <wl@gnu.org>
2467         * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
2468         the corresponding test in aclocal.m4.
2470 2003-07-21  Werner LEMBERG  <wl@gnu.org>
2472         * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
2473         names but RGB values directly.  Otherwise pnmtopng depends on
2474         an external file `rgb.txt' which maps colour names to values.
2476 2003-07-20  Werner LEMBERG  <wl@gnu.org>
2478         * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
2479         * configure, src/include/config.hin: Regenerated.
2481         * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
2483 2003-07-19  Werner LEMBERG  <wl@gnu.org>
2485         * PROBLEMS: Add solution for UTF-8 problem with hyphens.
2487 2003-07-18  Werner LEMBERG  <wl@gnu.org>
2489         * *.man: Switch to non-compatibility mode temporarily if GNU
2490         syntax extensions are used in the particular man page.
2492         * PROBLEMS: Add solutions for SGR problems.
2494 2003-07-17  Werner LEMBERG  <wl@gnu.org>
2496         Don't ignore grotty's command line options if \X'tty: sgr ...' is
2497         used to change the drawing scheme.
2499         * src/devives/grotty/tty.cpp (bold_flag_option,
2500         underline_flag_option, italic_flag_option, reverse_flag_option,
2501         bold_underline_mode_option): New global variables.
2502         (update_options): New function.
2503         (tty_printer::special): Call update_options.
2504         (main): Don't set xxx_flag but xxx_flag_option, then call
2505         update_options.
2507 2003-07-14  Werner LEMBERG  <wl@gnu.org>
2509         Make grotty emit proper Unicode box drawing characters for -Tutf8.
2511         * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
2512         values.
2513         (hline_char, vline_char): New global variables.
2514         (tty_printer::tty_printer): Initialize them.
2515         (tty_printer::draw): Emit START_LINE and END_LINE flags for both
2516         horizontal and vertical lines.
2517         (crossings): New global array.
2518         (tty_printer::end_page): Use it to determine the proper crossing
2519         character for -Tutf8.
2521 2003-07-12  Werner LEMBERG  <wl@gnu.org>
2523         * doc/Makefilesub (HTMLDOCFILESALL): New macro.
2524         (HTMLDOCFILES): Revert to `pic.html'.
2525         (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
2527 2003-07-11  Werner LEMBERG  <wl@gnu.org>
2529         * doc/pic.ms: Improve documentation of absolute coordinates.
2530         Document absolute positioning of pictures.
2532         * NEWS: Add new pic capability.
2534 2003-07-09  Hartmut Henkel  <hartmut_henkel@gmx.de>
2536         * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
2537         Rewritten.
2539 2003-07-07  Werner LEMBERG  <wl@gnu.org>
2541         Implement support for dashed and dotted ellipses in pic.  Based on
2542         a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
2544         * src/preproc/pic/common.cpp (common_output::ellipse_arc,
2545         common_output::dashed_ellipse, common_output::dotted_ellipse): New
2546         functions.  Ellipse arcs are approximated with circle arcs.
2547         * src/preproc/pic/common.h (common_output): Updated.
2548         * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
2549         functions.
2550         * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
2552         * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
2554 2003-07-06  Werner LEMBERG  <wl@gnu.org>
2556         Make grotty work on platforms which have unsigned char as the
2557         default for char.  Based on a patch by Thomas Klausner
2558         <wiz@netbsd.org>.
2560         * src/devices/grotty/tty.cpp (schar): New typedef.
2561         Updated calls to declare_ptable and implement_ptable.
2562         (glyph): Use schar for back_color_idx and fore_color_idx.
2563         (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
2564         (tty_printer::tty_color, tty_printer::tty_printer,
2565         tty_printer::color_to_idx, tty_printer::put_color): Updated.
2567 2003-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
2569         * src/roff/nroff/nroff.sh: Add option -d for completeness.
2570         * src/roff/nroff/nroff.man: Updated.
2572 2003-07-05  Werner LEMBERG  <wl@gnu.org>
2574         * NEWS, tmac/groff_www.man: Updated.
2575         * doc/Makefile.sub: Updated.
2577 2003-07-05  Gaius Mulley  <gaius@glam.ac.uk>
2579         Implement support for multiple HTML output files.
2581         * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
2582         -j command line option.
2584         * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
2585         global variables.
2586         (file): New fields `new_output_file', `require_links',
2587         `output_file_name'.
2588         (file::file): Updated.
2589         (files::set_file_name, files::set_links_required,
2590         files::are_links_required, files::is_new_output_file,
2591         files::file_name, files::next_file_name): New functions.
2592         (header_desc): New fields `no_of_level_one_headings',
2593         `header_filename'.
2594         (header_desc::header_desc): Updated.
2595         (header_desc::write_headings): Handle multiple files.
2596         (html_printer::write_header): Save file name in which header occurs.
2597         (html_printer::determine_header_level): Possibly split files on
2598         level one headings.
2599         (html_printer::do_links, html_printer::troff_tag): Updated.
2600         (html_printer::insert_split_file, html_printer::do_job_name,
2601         html_printer::emit_link, html_printer::write_navigation,
2602         html_printer::do_file_components): New functions.
2603         (html_printer::~html_printer): Handle multiple files.
2604         (main): Handle command line option `-j'.
2606         * src/devices/grohtml/grohtml.man: Updated.
2608         * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
2609         which splits file.
2611         * tmac/www.tmac (JOBNAME): New macro.
2612         * tmac/s.tmac (SH-NO-TAG): New macro.
2613         (@SH): Call SH-NO-TAG.
2614         (@NH): Updated.
2616 2003-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
2618         * tmac/groff_mdoc.man: Improve documentation of punctuation
2619         characters.
2621 2003-07-04  Ruslan Ermilov  <ru@FreeBSD.org>
2623         * tmac/doc.tmac (Bd): Change to doc-Li-font later.
2625 2003-07-03  Werner LEMBERG  <wl@gnu.org>
2627         * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
2629 2003-07-01  Ruslan Ermilov  <ru@FreeBSD.org>
2631         * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
2632         after `/*' and `*/'.
2633         Fix spacing.
2634         (Fn, Fo): Reduce indentation in synopsis.
2636         * tmac/doc-common (doc-check-depth): New macro.
2637         (doc-end-macro, Sh, Ss): Use it.
2638         (Cd): Fix behaviour in synopsis.
2639         (In): Make it parsed and callable.
2640         If not in the synopsis, represent the C header file enclosed in
2641         angle brackets.
2642         (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
2643         Use minus, not hyphen.
2645         * tmc/groff_mdoc.man: Updated.
2647 2003-07-01  Werner LEMBERG  <wl@gnu.org>
2649         Integrated grap2graph, contributed by Eric S. Raymond.
2651         * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
2652         New files.
2653         * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
2654         contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
2656 2003-07-01  Colin Watson  <cjwatson@debian.org>
2658         * src/xditview/*.c: Add prototypes, fix return types, add includes.
2659         Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
2661 2003-06-31  Ruslan Ermilov  <ru@FreeBSD.org>
2663         * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
2665 2003-06-31  Werner LEMBERG  <wl@gnu.org>
2667         * doc/Makefile.sub (CLEANADD): Remove all files created by
2668         running `make groff.{pdf,dvi}'.
2670         * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
2671         src/xditview also.
2673 2003-06-30  Werner LEMBERG  <wl@gnu.org>
2675         * Makefile.in (SHELL): Define as @SHELL@.
2676         (mkinstalldirs): Use $(SHELL).
2677         (MDEFINES): Add $(SHELL).
2678         * Makefile.comm (SHELL): Removed.
2680 2003-06-29  Werner LEMBERG  <wl@gnu.org>
2682         * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
2683         The X11 documentation files use them.
2684         * tmac/groff_ms.man, doc/groff.texinfo: Document them.
2686 2003-06-15  Robert Goulding  <goulding@Princeton.EDU>
2688         * tmac/e.tmac (@C): Handle .ad also.
2690 2003-06-12  Werner LEMBERG  <wl@gnu.org>
2692         * src/preproc/tbl/tbl.man: Document formatting of text blocks.
2694         * src/roff/troff/input.cc (token::next) <handle_escape_char>:
2695         Assign `n' even here.  It is possible to construct a node
2696         immediately following an escape character:
2698           .di xx
2699           \?\\\?a
2700           .br
2701           .di
2702           .xx
2704 2003-06-10  Werner LEMBERG  <wl@gnu.org>
2706         * README.WIN32: Removed.
2707         * MANIFEST: Updated.
2709 2003-06-07  Werner LEMBERG  <wl@gnu.org>
2711         * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
2713 2003-06-05  Werner LEMBERG  <wl@gnu.org>
2715         * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
2716         in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
2718 2003-06-03  Werner LEMBERG  <wl@gnu.org>
2720         * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
2721         is done by the calling function.
2723 2003-05-22  Ruslan Ermilov  <ru@FreeBSD.org>
2725         * tmac/X.tmac: Fix definition of `em'.
2727 2003-05-22  Werner LEMBERG  <wl@gnu.org>
2729         * src/roff/troff/input.cc (return_macro_request): Fix detection of
2730         argument.
2732 2003-05-18  Werner LEMBERG  <wl@gnu.org>
2734         * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
2735         to make items work which consist only of a tag.
2737 2003-05-17  Werner LEMBERG  <wl@gnu.org>
2739         * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
2740         aren't stretched in a tag (this can fail with unformatted boxes).
2741         Instead, insert a break and go back one line.
2743 2003-05-16  Werner LEMBERG  <wl@gnu.org>
2745         * src/roff/troff/input.cc (return_macro_request): If called with
2746         argument pop macro twice.  We need this to trace `return'.
2748         * tmac/trace.tmac: Handle `return'.
2749         Fix typos.
2751         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2752         Document.
2754 2003-05-15  Larry Kollar  <kollar@alltel.net>
2756         * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
2757         registers `FPS', `FVS', and `FPD'.
2759 2003-05-15  Werner LEMBERG  <wl@gnu.org>
2761         * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
2762         correctly.
2764 2003-05-03  Ruslan Ermilov  <ru@FreeBSD.org>
2766         * tmac/groff_mdoc.man: Slight improvements.
2768 2003-05-03  Werner LEMBERG  <wl@gnu.org>
2770         * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
2771         `doc-header-space' after header line if register `cR' is set.
2773 2003-05-02  Werner LEMBERG  <wl@gnu.org>
2775         * TODO: Updated.
2777 2003-05-01  Ruslan Ermilov  <ru@FreeBSD.org>
2779         * tmac/doc-common (Nd): Use \[em].
2781 2003-05-01  Werner LEMBERG  <wl@gnu.org>
2783         * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
2784         doc-footer-space): Initialize to 0.5i.
2785         (doc-setup-page-layout): Don't set doc-header-space and
2786         doc-footer-space.
2788 2003-04-30  Werner LEMBERG  <wl@gnu.org>
2790         * REVISION: Set to 1.
2792         * doc/pic.ms: Document possible problems with `figname'.
2794 2003-04-29  Werner LEMBERG  <wl@gnu.org>
2796 Version 1.19 released
2797 =====================
2799         * VERSION: Set to 1.19.
2800         * REVISION: Set to 0.
2801         * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
2803         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
2804         Define charset as `US-ASCII' in html output.
2806         * tmac/www.tmac (ULE): Add missing scaling indicator.
2808         * win32-diffs: Removed.
2810 2003-04-28  Werner LEMBERG  <wl@gnu.org>
2812         * doc/groff.texinfo: Document `dn' and `dl' registers if used with
2813         `.da' and `.boxa'.
2814         Document how to insert discardable whitespace with `.ss'.
2816 2003-04-27  Werner LEMBERG  <wl@gnu.org>
2818         * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
2819         work with plain TeX also.
2821         * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
2823 2003-04-25  Gaius Mulley  <gaius@glam.ac.uk>
2825         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
2826         Use a loose DTD.
2828 2003-04-24  Werner LEMBERG  <wl@gnu.org>
2830         * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
2831         vbox with positive height and zero depth if in TeX mode.
2833         * NEWS: Document glyph name changes for grodvi and grolj4.
2835 2003-04-23  Werner LEMBERG  <wl@gnu.org>
2837         * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
2838         * doc/pic.ms: Fixed.
2840 2003-04-21  Werner LEMBERG  <wl@gnu.org>
2842         HP-UX 10.20 has `snprintf' but it isn't declared.
2844         * configure.ac: Add declaration test for snprintf.
2845         * configure: Regenerated.
2846         * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
2847         * src/include/config.hin: Regenerated.
2849 2003-04-19  Werner LEMBERG  <wl@gnu.org>
2851         Add keyword `figname' to pic, specifying the name of the picture
2852         box in TeX mode.  Based on a patch from William J Poser
2853         <wjposer@unagi.cis.upenn.edu>.
2855         * src/preproc/pic/pic.y: New token `FIGNAME'.
2856         (macro_name): New rule of type <str>.
2857         (placeless_element): Handle `FIGNAME'.
2858         * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
2859         * src/preproc/pic/main.cpp (graphname): New global variable.
2860         (do_picture): Initialize `graphname'.
2861         * src/preproc/pic/pic.h: Updated.
2862         * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
2863         `graphname'.
2864         Simplify TeX code.
2865         (tex_output::text): Beautify output.
2866         * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
2867         `shaded' and `outlined' unconditionally.
2868         * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
2869         Minor improvements.
2871         * PROBLEMS, README.CVS: Mention that bison version 1.875b or
2872         greater is necessary.
2874 2003-04-17  Hartmut Henkel  <hartmut_henkel@gmx.de>
2876         Add option -r to soelim to avoid emission of `.lf' lines.
2877         Add option -t to produces TeX comment lines instead of `.lf' lines.
2879         * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
2880         and `tex_flag'.
2881         (usage): Updated.
2882         (main): Handle `-r' and `-t'.
2883         (set_location): Handle `raw_flag' and `tex_flag'.
2884         * src/preproc/soelim/soelim.man, NEWS: Updated.
2886 2003-04-17  Werner LEMBERG  <wl@gnu.org>
2888         * tmac/hyphenex.sh: Replaced with...
2889         * tmac/hyphenex.pl: This perl script to avoid sed compatibility
2890         nightmares.
2892         * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
2893         if --quiet is used for the configure script.
2894         * configure: Regenerated.
2896 2003-04-16  Werner LEMBERG  <wl@gnu.org>
2898         * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
2899         Add `const' to second argument.
2900         (html_printer::add_table_end): Add `const' to argument.
2901         * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
2902         `const' to arguments.
2903         * src/devices/grohtml/html-text.h: Updated.
2905         * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
2906         * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
2907         argument.
2909         * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
2910         cast for integer constant.
2912         * src/preproc/html/pre-html.cpp (image_device): Use `const'.
2913         (writeNbytes): Add `const' to first argument.
2914         (writeString): Add `const' to argument.
2915         (char_buffer::can_see): Add `const' to third argument.
2916         * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
2917         `const' to argument.
2918         * src/preproc/html/pushback.h: Updated.
2920         * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
2921         (include_path_append): Add `const' to argument.
2922         (do_file): Updated.
2924         * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
2925         for `value'.
2926         (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
2927         * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
2928         for `value'.
2929         (unicode_decompose_init::unicode_decompose_init): Updated.
2930         * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
2931         for `value'.
2932         (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
2933         * src/roff/troff/input.cc (process_startup_file): Add `const' to
2934         argument.
2936         * tmac/hyphenex.sh: Make script more portable by using a here
2937         document.
2939 2003-04-15  Werner LEMBERG  <wl@gnu.org>
2941         Renamed all `*.cc' files to `*.cpp'.
2942         Updated all configuration files, makefiles, and documentation.
2944 2003-04-14  Werner LEMBERG  <wl@gnu.org>
2946         * tmac/hyphenex.sh: Slight improvements.
2948 2003-04-13  Werner LEMBERG  <wl@gnu.org>
2950         * font/devascii/R.proto, font/devcp1037/R.proto,
2951         font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
2952         character slots with unnamed glyphs.
2954         * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
2955         (an-first): New global variable.
2956         (an-header): Emit vertical space between multiple man pages.
2958 2003-04-11  Werner LEMBERG  <wl@gnu.org>
2960         * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
2961         values.
2963 2003-04-10  Werner LEMBERG  <wl@gnu.org>
2965         * PROBLEMS: Revised.
2967 2003-04-10  Bernd Warken  <bwarken@mayn.de>
2969         * doc/webpage.ms: Improved.
2971 2003-04-09  Werner LEMBERG  <wl@gnu.org>
2973         Add register \n[.height] which returns the value of \H.
2974         Add register \n[.slant] which returns the value of \S.
2976         * src/roff/troff/env.cc (init_env_requests): Implement.
2977         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2978         Document.
2980 2003-04-08  Werner LEMBERG  <wl@gnu.org>
2982         * tmac/html.tmac: Move some of the data into html-end.tmac.
2983         Remove most of the character translations for eqn since html fonts
2984         now cover those characters.
2985         Load www.tmac.
2986         * tmac/html-end.tmac: New file.
2987         * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
2988         * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
2989         * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
2991 2003-04-07  Werner LEMBERG  <wl@gnu.org>
2993         * man/groff_out.man: Document negative values of `N' if -Thtml is
2994         used.
2996 2003-04-06  Werner LEMBERG  <wl@gnu.org>
2998         * Makefile.comm (depend.temp): Check location of YTABC.
3000 2003-04-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3002         * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
3003         binary path.
3004         (groff_bin_path): Rename to GROFF_BIN_PATH.
3005         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3006         * doc/Makefile.in (TROFFBIN): New variable for troff
3007         binary path.
3008         (GROFFBIN): New variable for groff binary path.
3009         (groff_bin_path): Rename to GROFF_BIN_PATH.
3010         (TROFF): Use TROFFBIN.
3011         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3012         * doc/Makefile.sub (GROFFBIN): New variable for groff
3013         binary path.
3014         (groff_bin_path): Rename to GROFF_BIN_PATH.
3015         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3017         * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
3018         with INSTALL_SCRIPT.
3019         (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
3020         * Makefile.dev (all): Depend on DEVSCRIPTS.
3021         (install_dev): Likewise.
3022         * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
3023         scripts.
3024         * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
3025         (DEVGENSCRIPTS): New variable to hold generated scripts.
3027 2003-04-05  Werner LEMBERG  <wl@gnu.org>
3029         * src/libs/libdriver/input.cc (IntArray::operator[],
3030         IntArray::get_data): Remove meaningless `const' in return value.
3032         * README.CVS: New file.
3034 2003-04-04  Werner LEMBERG  <wl@gnu.org>
3036         Check for stdint.h in C++, not in C.
3038         * aclocal.m4 (GROFF_STDINT_H): New function,
3039         * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
3040         AC_CHECK_HEADERS.
3041         * configure, src/include/config.hin: Regenerated.
3042         * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
3045         Fix handling of &nbsp; in grohtml.  To do this, troff emits `N'
3046         with a negative value, representing the width of the unbreakable
3047         space (only for -Thtml).  grohtml then converts this back to
3048         &nbsp; and uses the value of N as its width.
3050         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
3051         unbreakable_space_node::tprint): Emit `N-<width>'.
3052         * src/include/printer.h (printer::set_numbered_char): Make it
3053         virtual.
3054         Make members `font_table' and `nfonts' protected instead of private.
3055         * src/devices/grohtml/post-html.cc
3056         (html_printer::set_numbered_char): New member function.
3059         * src/libs/libgroff/maxfilename.cc:
3060         s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
3062         * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
3063         emit word marker.
3065 2003-04-03  Sergey A. Osokin  <osa@freebsd.org.ru>
3067         * man/roff.man: Small fixes.
3069 2003-04-03  Werner LEMBERG  <wl@gnu.org>
3071         Make groff independent from locale's numeric settings.
3073         * configure.ac: Check for `setlocale'.
3074         * configure, src/include/config.hin: Regenerated.
3076         * src/include/lib.h: Handle HAVE_SETLOCALE.
3078         * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
3079         (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
3080         (main), src/preproc/pic/main.cc (main): Call `setlocale'.
3083         * doc/groff.texinfo: Change dir category to `Typesetting'.
3084         (Man font macros): Mention that there is no space between arguments
3085         of .BI and friends.
3087         * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
3088         (*printer::change_color, *printer::change_fill_color): Add missing
3089         `const'.
3091 2003-04-02  Werner LEMBERG  <wl@gnu.org>
3093         * src/devices/grohtml/html-table.cc (html_table::emit_col,
3094         html_table::is_gap): Compute table widths after converting border
3095         positions to avoid rounding errors.
3097 2003-04-01  Werner LEMBERG  <wl@gnu.org>
3099         * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
3100         `space_emitted' properly.
3102 2003-03-31  Werner LEMBERG  <wl@gnu.org>
3104         * src/devices/grohtml/html-table.cc: Fix column width calculation.
3105         (html_table::set_linelength): Don't add 1.
3106         (html_table::add_indent): Don't subtract 1.
3108         * tmac/html.tmac: Set default page offset to zero.
3110 2003-03-30  Werner LEMBERG  <wl@gnu.org>
3112         Make groff emit `&nbsp;' for `\ ' and `\~' if `-Thtml' is used.
3114         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
3115         unbreakable_space_node::tprint): New functions.
3116         (troff_output_file): Make space_char_hmotion_mode::tprint and
3117         unbreakable_space_node::tprint to friends.
3118         * src/roff/troff/node.h: Updated.
3120         * font/devhtml/R.proto: Add `&nbsp' at position 0xA0 (as defined
3121         in the HTML standard).
3123 2003-03-29  Werner LEMBERG  <wl@gnu.org>
3125         * src/roff/troff/env.cc (point_size): Fix emission of html tag.
3126         Otherwise, the following code
3128           .di xxx
3129           .ps 10
3130           a
3131           .br
3132           .di
3133           x\*[xxx]
3135         produces `x a' instead of `xa'.  This is a temporary fix, disabling
3136         font changes in diversions for -Thtml.
3138         * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
3139         `HTML-TAG'.
3140         (an-do-tag-html): Merge with ...
3141         (an-do-tag): This macro.
3142         Change code slightly to circumvent grohtml bug.
3143         * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
3145         * src/devices/grohtml/html-table.cc (html_table::emit_col,
3146         html_table::is_gap): Round `width' properly.
3148         * tmac/html.tmac: Provide some default layout parameters for
3149         grohtml.
3151         * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
3152         command.
3154 2003-03-28  Werner LEMBERG  <wl@gnu.org>
3156         src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
3158 2003-03-27  Werner LEMBERG  <wl@gnu.org>
3160         * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
3161         defined.
3163 2003-03-20  Werner LEMBERG  <wl@gnu.org>
3165         * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
3166         `.vs'.
3167         * doc/groff.texinfo: Updated.
3169 2003-03-19  Werner LEMBERG  <wl@gnu.org>
3171         * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
3172         TOKEN_END_TRAP>: Reset `have_input'.
3174 2003-03-18  Werner LEMBERG  <wl@gnu.org>
3176         * src/roff/groff/groff.man: Mention groff_trace man page.
3178 2003-03-16  Werner LEMBERG  <wl@gnu.org>
3180         * Makefile.in (LIBEXT): New variable to indicate the file extension
3181         of library files.  Computed heuristically from $(OBJEXT).
3182         (MDEFINES): Add $(LIBEXT).
3183         * Makefile.lib, Makefile.comm: Use it.
3185         * src/utils/pfbtops/pfbtops.c (get_text): New function.  Split
3186         overlong lines into smaller chunks.
3187         (get_binary): New function.
3188         (main): Use them.
3189         * src/utils/pfbtops/pfbtops.man: Updated.
3191 2003-03-15  Colin Watson  <cjwatson@debian.org>
3193         * src/roff/groff/groff.man: Minor syntax fix.
3195 2003-03-14  Egil Kvaleberg  <egil@kvaleberg.no>
3197         * src/devices/grops/ps.cc (ps_printer::media_set,
3198         ps_printer::~ps_printer): Handle zero paper width and length.
3200 2003-03-13  Werner LEMBERG  <wl@gnu.org>
3202         Add options -p and -l to grodvi.
3204         * src/devices/grodvi/dvi.cc: Include paper.h.
3205         (landscape_flag, user_paper_length, user_paper_width): New global
3206         variables.
3207         (dvi_printer::begin_page): Emit `papersize' special.
3208         Set color after initialization of `cur_h' and `cur_v'.
3209         (main): Add options `-l' and `-p'.
3210         * font/devdvi/Makefile.sub (DESC): Set `papersize'.
3211         * src/devices/grodvi/grodvi.man, NEWS: Updated.
3213         * src/devices/grops/psrm.cc (valid_input_table): Fixed.
3215 2003-03-12  Werner LEMBERG  <wl@gnu.org>
3217         * src/devices/grops/grops.man: Move documentation of .PSPIC to...
3218         * man/groff_tmac.man: This man page.
3219         * man/groff_font.man: Declare `paperwidth' and `paperlength' as
3220         deprecated.
3222         * tmac/X.tmac: Don't load pspic.tmac.
3224 2003-03-11  Werner LEMBERG  <wl@gnu.org>
3226         Make variable `pr' local to libdriver/input.cc.  Based on a patch
3227         by Bernd Warken <bwarken@mayn.de>.
3229         * src/include/driver.h (pr): Removed.
3231         * src/libs/libdriver/input.cc (pr): New global variable.
3232         (do_file): Deallocate `pr'.
3233         * src/libs/libdriver/printer.cc (pr): Removed.
3235         * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
3236         (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
3237         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
3238         (main): Don't delete `pr'.
3240 2003-03-10  Werner LEMBERG  <wl@gnu.org>
3242         * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
3243         * tmac/papersize.tmac: New file.
3244         * tmac/troffrc: Include `papersize.tmac'.
3245         * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
3246         * tmac/an-old.tmac: Set LT to LL by default.
3248         * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
3249         doc/groff.texinfo: Updated.
3251         * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
3252         bug which caused all odd iso papers to have wrong dimensions.
3254         * src/devices/grops/ps.cc (user_paper_width): New global variable.
3255         (main) <'p'>: Set `user_paper_width' also.
3256         (ps_printer::media_width, ps_printer::media_height): Use values
3257         given with option `-p'.
3259 2003-03-09  Werner LEMBERG  <wl@gnu.org>
3261         * src/include/nonposix.h: Provide default for SET_BINARY.
3263         * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
3264         src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
3265         unconditionally.
3267         * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
3268         (main): Treat \r\n as \n.
3270 2003-03-08  Werner LEMBERG  <wl@gnu.org>
3272         * tmac/an-old.tmac: Use register `HY' to control hyphenation.
3273         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
3275 2003-03-07  Werner LEMBERG  <wl@gnu.org>
3277         Added support to access more than 256 glyphs in Type 1 fonts.
3279         * src/devices/grops/ps.cc (subencoding): New structure.
3280         (style): Add `sub' field.
3281         Updated all users.
3282         (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
3283         Add `set_subencoding', `get_subfont' and `encode_subfont' member
3284         functions.
3285         Updated all users.
3286         (ps_printer::set_char): Use `set_subencoding'.
3287         (make_subencoding_name): New function.
3288         (ps_printer::set_style): Handle case where `sty.sub' is not zero.
3289         (ps_printer::~ps_printer): Emit subencoding definitions.
3291         * src/devices/grops/psrm.cc (valid_input_table): New array to
3292         properly support EBCDIC.
3293         (white_space): Add `\f'.
3294         (ps_get_line): Change first argument to be of type `string &'.
3295         Updated all callers.
3296         This allows to get lines of arbitrary length.
3297         Use `valid_input_table'.
3298         Remove warning about non-conforming PS line length.  This seems
3299         not to be of great importance -- for example, dvips don't emit
3300         a warning either.
3301         (PS_LINE_MAX): Removed.
3302         (matches_comment): Change first argument to be of type `string &'.
3304         * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
3306         * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
3307         %AGL_to_unicode, %default_ligatures): New hash tables.
3308         Read all map entries.
3309         Add unencoded characters.
3310         Check for default ligatures if there are no `L' entries.
3311         Print all kern entries.
3312         Print all characters in charset.
3313         * src/utils/afmtodit/afmtodit.man: Updated.
3315         * font/devps/*: Regerated all fonts.
3317         * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
3318         of characters, just use `.trin'.  Otherwise the mapping depends
3319         on the font encoding.
3320         * tmac/ps.tmac: Add `fi' and `fl'.
3321         Improve `Fi' and `Fl'.
3322         * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
3323         * tmac/Xps.tmac: Fix `em'.
3325         * NEWS: Updated.
3327 2003-03-04  Werner LEMBERG  <wl@gnu.org>
3329         * src/roff/troff/input.cc (charinfo_to_node_list): Reset
3330         `have_input'.
3332 2003-03-03  Werner LEMBERG  <wl@gnu.org>
3334         * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
3336         * font/devps/generate/textmap: Remove entry `similarequal'.
3337         * font/devps/symbolmap: Updated.
3339 2003-03-02  Werner LEMBERG  <wl@gnu.org>
3341         * src/libs/libgroff/font.cc (font::load): Fix error message for
3342         bad character type.
3344         * src/devices/grops/grops.man: Improve documentation of the -b
3345         flag.
3347         * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
3348         `ascii' and `cp1047'.
3350 2003-03-01  Werner LEMBERG  <wl@gnu.org>
3352         Document composite glyphs and the `composite' request.
3354         * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
3356 2003-02-28  Werner LEMBERG  <wl@gnu.org>
3358         * font/devdvi/generate/ec.map: Add some more Unicode entities.
3359         * font/devdvi/*EC: Updated.
3361         * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
3362         * tmac/latin1 (latin1-tr): Undo any previous mapping.
3363         * tmac/troffrc: Load `composite.tmac'.
3364         * tmac/Makefile.sub (NORMALFILES): Updated.
3366         * doc/groff.texinfo (Input Encodings): New section.
3367         * NEWS: Updated.
3369 2003-02-27  Werner LEMBERG  <wl@gnu.org>
3371         * doc/texinfo.tex: New version 2003-02-11.06.
3373         * tmac/doc-common (Dt): Don't emit warning for unknown section.
3374         * tmac/groff_mdoc.man: Fix description of `Dt'.
3376 2003-02-26  Egil Kvaleberg  <egil@kvaleberg.no>
3378         * font/devps/prologue.ps: Fix for included Postscript that does
3379         a setpagedevice -- which is now safely ignored.
3381         * NEWS: Updated.
3383         * src/devices/grops/ps.cc: Now sets the page size in the generated
3384         document.  This is done in two ways: Via a %%-comment for gv and
3385         the like, and via a PageSize and setpagedevice for programs that
3386         understands Postscript proper, like ps2pdf.
3388         * src/devices/grops/ps.h: New broken-flag to avoid page size
3389         definition, if required.
3391         * src/devices/grops/grops.man: New broken-flag 16 mentioned.
3393         * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
3394         Not really necessary due to the fix in prologue.ps, but cleaner:
3395         Such information does not belong in an .eps file.
3397         * doc/Makefile.sub: See doc/Makefile.in.
3399 2003-02-26  Ralph Corderoy  <ralph@inputplus.co.uk>
3401         * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
3402         instead of P1 since the latter is broken in some versions of netpbm.
3403         * configure: Updated.
3405 2003-02-26  Larry Kollar  <kollar@alltel.net>
3407         Make man pages more customizable.
3409         * tmac/an-old.tmac (FT): New register holding footer distance from
3410         bottom.
3411         (HF): New string holding the default heading font.
3412         (TH): Handle registers `IN' and `SN' set on the command line.
3413         Use `FT'.
3414         (PT, BT): New strings to customize header and footer lines.
3415         (an-header, an-footer): Use them.
3416         (SH, SS): Use `HF'.
3417         * tmac/groff_man.man: Document changes.
3419         * doc/groff.texinfo: Document man changes.
3420         Document Ultrix extensions of man.
3422 2003-02-26  Werner LEMBERG  <wl@gnu.org>
3424         * src/roff/troff/input.cc (do_width, do_if_request): Reset
3425         `have_input' after changing back to old environment.
3427         * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
3428         function up to be defined before first call.  This is necessary to
3429         avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
3431         * src/utils/afmtodit/afmtodit.pl: Make script search for files in
3432         the default font directory also.  Based on a patch from James
3433         J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
3434         * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
3435         * src/utils/afmtodit/afmtodit.man: Document it.
3437         * NEWS: Updated.
3439         * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
3441 2003-02-25  Gaius Mulley  <gaius@glam.ac.uk>
3443         * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
3444         (GROFF_PNMTOPS_NOSETPAGE): New macro.
3445         * configure.ac: Use it.
3446         * configure: Regenerated.
3447         * Makefile.in: Updated.
3449         * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
3450         (CLEANADD): Add www.tmac-sed.
3451         (pnmtops_nosetpage): Define default.
3452         (install_data): Handle www.tmac-sed and substitute
3453         @PNMTOPS_NOSETPAGE@.
3454         (stamp-sed): Add www.tmac.
3455         * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
3456         It now breaks URLs at suitable places.
3457         (www:substring_ok): New register set by...
3458         (www:@test_substring): New macro.
3459         (www:error): New alias to www-error.
3460         (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
3461         New macros.
3462         (URL): Use www:url_breaks.
3463         (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
3464         (CDS, CDE): New macros.
3466 2003-02-25  Werner LEMBERG  <wl@gnu.org>
3468         * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
3469         buffer overflow.
3471 2003-02-24  Werner LEMBERG  <wl@gnu.org>
3473         Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
3474         can be negative also.
3476         * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
3477         `int16'.
3478         (read_char_table): Avoid negative ascenders.
3479         (output_charset): Add cast.
3480         * font/devlj4/*: Regenerated.
3482         Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
3483         possible.
3485         * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
3486         * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
3487         of `<>'.
3488         * font/devdvi/*: Regenerated.
3490         Map `la' and `ra' to U+27E8 and U+27E9.  These two characters have
3491         normal width, while the previously used characters (U+2329 and
3492         U+232A) are classified as wide due to canonical equivalence with the
3493         CJK punctuation characters U+3008 and U+3009.
3495         * font/devutf8/R.proto: Updated.
3496         * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
3498         * man/groff_char.man: Simplify handling of table traps by
3499         introducing `start block' and `end block' macros.
3500         (Ns, Ne, 2s, 2e, Ds, De): New macros.
3501         (DL): Make it work with Unix troff also.
3502         Fix code values of `la' and `ra'.
3504         * tmac/dvi.tmac: Define `<>' for CW and CWI.
3506 2003-02-23  Gaius Mulley  <gaius@glam.ac.uk>
3508         * src/devices/grohtml/post-html.cc (element_list::~element_list):
3509         New destructor, fixing a major memory leak.
3511 2003-02-22  Werner LEMBERG  <wl@gnu.org>
3513         * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
3514         to be in conformance with Unicode 3.0 and newer.
3516         * font/devlj4/generate/text.map: Add `Eu'.
3517         * font/devlj4/generate/special.map: Flip `*e' and `+e'.
3518         * font/devlj4/S: Regenerated.
3520         * man/groff_char.man: Completely rewritten.
3522         * doc/groff.texinfo: Fix description of request and macro arguments.
3524 2003-02-20  Gaius Mulley  <gaius@glam.ac.uk>
3526         Valgrind fixes.
3528         * src/devices/grohtml/html-table.cc (html_table::~html_table):
3529         Deallocate `columns' list.
3530         * src/devices/grohtml/post-html.cc (char_block::~char_block):
3531         New destructor.
3532         (text_glob::text_glob_html, text_glob::text_glob_special,
3533         text_glob::text_glob_line, text_glob::text_glob_auto_image,
3534         text_glob::text_glob_tag): Avoid memory leaks.
3535         (text_glob::remember_table): Free memory before reassigning.
3537 2003-02-19  Werner LEMBERG  <wl@gnu.org>
3539         Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
3540         alias `hbar'), the Planck constant over two pi.
3542         * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
3543         `+e' for position 34.
3544         * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
3545         `u2662' and `u2661'.
3546         * font/devdvi/{MI,S}: Regenerated.
3547         * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
3548         * font/devlbp/*: Add `hbar' alias.
3549         * font/devlj4/generate/special.map: Ditto.
3550         * font/devlj4/S: Regenerated.
3551         * font/devps/generate/symbolchars: Add `+e'.
3552         * font/devps/generate/textmap: Fix PS name for `-h'.
3553         Add `hbar' alias.
3554         * font/devps/symbolmap: Regenerated.
3556         * src/devices/grops/ps.cc (transform_fill): Removed since unused.
3558         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
3559         `-h', `hbar'.
3560         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
3561         `-h'.
3563         * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
3564         `hbar'.
3565         * tmac/tty-char.tmac: Add `+e'.
3567 2003-02-17  Werner LEMBERG  <wl@gnu.org>
3569         Another round trying to really fix problems with `have_input'.
3571         * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
3572         (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
3574         * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
3575         handling if both foreground and background colors are default.
3577         * doc/groff.texinfo (Debugging): Document .lf differences to
3578         AT&T troff.
3580 2003-02-16  Werner LEMBERG  <wl@gnu.org>
3582         * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
3583         null-bytes in created string.
3585         * src/roff/troff/input.cc (lookup_color, interpolate_macro,
3586         alias_macro, lookup_request): Improve warning messages.
3588         * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
3589         not `strdup'.
3590         Free `last_image_filename'.
3592         * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
3593         `buffer'.
3594         (imageList::createPage, imageList::createImage): Use `free', not
3595         `a_delete'.
3596         (imageItem::~imageItem): Free `imageName'.
3597         (addRegDef): Use `strsave', not `strdup'.
3598         (get_resolution): Free `pathp'.
3600 2003-02-15  Werner LEMBERG  <wl@gnu.org>
3602         * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
3603         to `dummy'.
3605 2003-02-14  Werner LEMBERG  <wl@gnu.org>
3607         Add memory management for colors to deallocate unnamed colors
3608         properly.
3610         * src/include/color.h (color): New members `free_list' and `next'.
3611         New member functions `new' and `delete'.
3612         Add destructor.
3613         * src/libs/libgroff/color.cc: Implement it.
3615         * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
3616         for array size of new operator.
3618         * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
3619         redundant comparison.
3621         * src/roff/troff/input.cc (word_space_node::reread,
3622         hmotion_node::reread): Avoid warning about unused parameter.
3623         (reset_output_registers): Remove redundant parameter.
3624         (define_color): Undo change 2003-02-12.
3626         * src/roff/troff/reg.h: Updated.
3628         * src/roff/troff/node.cc (troff_output_file::really_print_line,
3629         output_file::put_filename, real_output_file::really_put_filename,
3630         ascii_output_file::really_print_line,
3631         break_char_node::get_hyphen_list): Avoid warning about unused
3632         parameter.
3633         (suppress_node::tprint): Updated.
3635         * configure.ac: Check declaration for rand() and srand().
3636         * configure: Regenerated.
3638         * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
3639         conditionally.
3640         * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
3641         and srand().
3643         * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
3644         to avoid compiler warnings.
3646         * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
3647         unused.
3649         * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
3650         is unused.
3651         * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
3652         (unused) parameter.
3653         Updated all callers.
3655         * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
3656         is unused.
3657         * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
3658         * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
3660         * src/devices/grohtml/post-html.cc (html_printer::emit_line):
3661         Parameter is unused.
3662         (html_printer::add_table_end): Define parameter conditionally.
3663         * src/devices/grohtml/output.cc (simple_output::special): Parameter
3664         is unused.
3666         * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
3667         (lbp_printer::set_char): Last parameter is unused.
3669         * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
3671 2003-02-13  Werner LEMBERG  <wl@gnu.org>
3673         New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
3674         Make \D'f ...' move horizontally again for backwards compatibility.
3675         Replace it with \D'Fg ...' where appropriate to avoid dependency
3676         on horizontal resolution.
3678         * src/roff/troff/input.cc (do_get_long_name): New function.
3679         (get_long_name): Call it.
3681         (read_draw_node): Handle `\D'Fx ...' by calling ...
3682         (read_color_draw_node): New function.
3684         (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
3685         `end'.
3686         Pass it to `do_get_long_name' which is used instead of
3687         `get_long_name'.
3689         * src/libs/libdriver/input.cc (color_from_Df_command): Remove
3690         unnecessary value guard.
3691         (parse_D_command) <'f'>: Add horizontal shift.
3693         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
3694         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
3695         (FILL_MAX): Removed.
3697         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3698         Updated.
3700 2003-02-12  Werner LEMBERG  <wl@gnu.org>
3702         * src/roff/troff/input.cc (do_name_test, do_expr_test,
3703         do_zero_width): Push `\n' if closing delimiter is missing.
3705         (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
3706         <'F'>: Make \F non-transparent at the beginning of line.
3707         (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
3708         token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
3709         `have_input'.
3711         (define_color): Free color in case of reassignment.
3713         * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
3714         @DefescListEnd): Use @Var, not @var.
3715         Fix all calls.
3717         * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
3719         * src/preproc/pic/object.cc (object_spec::~object_spec): Free
3720         `shaded' and `outlined' arrays.
3721         (object_spec::object_spec): Initialize `shaded' and `outlined'.
3722         (graphic_object::set_fill_color, graphic_object::set_outline_color):
3723         Use strsave.
3724         (closed_object::set_fill_color): Ditto.
3725         * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
3726         instead of strdup.
3727         (troff_output::reset_color): Use a_delete instead of free.
3728         * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
3730 2003-02-11  Werner LEMBERG  <wl@gnu.org>
3732         * doc/groff.texinfo: Improve documentation of `ad'.
3733         Document that \D'f...' is dependent on the horizontal resolution.
3734         * man/groff_diff.man: Improve documentation of \D'f...'.
3736         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
3737         compensating \h'...' for \D'f ...' since the latter no longer moves
3738         current position.
3739         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
3741 2003-02-10  Werner LEMBERG  <wl@gnu.org>
3743         Improve error messages for `x F' (and `F') commands.
3745         * src/include/error.h: Add declaration for
3746         `current_source_filename'.
3747         * src/libs/libgroff/filename.cc: Add `current_source_filename'.
3748         * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
3749         parameter for source file string.
3750         Updated all callers.
3752         * src/libs/libdriver/input.cc: Add `current_source_filename'.
3753         (remember_source_filename): New function.
3754         (parse_x_command <'F'>, do_file <'F'>): Use it.
3756 2003-02-09  Werner LEMBERG  <wl@gnu.org>
3758         Make grotty not emit warnings about unknown colors more than
3759         necessary.
3761         * src/devices/grotty/tty.cc: Include `ptable.h'.
3762         (TTY_MAX_COLORS): Removed.
3763         (DEFAULT_COLOR_IDX): Defined to -1.
3764         (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
3765         (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
3766         Change `tty_colors' to be a ptable.
3767         First arg of `put_color' is now `char'.
3768         New functions `make_rgb_string' and `tty_color'.
3769         (tty_printer::tty_printer): Use `tty_color'.
3770         (tty_printer::color_to_idx): Return value is now `char'.
3771         Use `tty_color'.
3773         * src/include/color.h (color): Add `print_color' member function.
3774         * src/libs/libgroff/color.cc (color::print_color): Implement it.
3776 2003-02-08  Werner LEMBERG  <wl@gnu.org>
3778         Valgrind fixes.
3780         * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
3781         encoding file.
3783         * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
3784         assume that value has been allocated with `new[]', thus use
3785         `a_delete' for deallocation.
3787         * src/libs/libdriver/input.cc (get_integer_arg,
3788         get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
3789         where appropriate.
3791         * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
3792         * src/libs/libgroff/nametoindex.cc
3793         (character_indexer::named_char_index): Use `new <type>[1]'.
3795         * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
3796         <type>[1]'.
3797         * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
3798         (split_text): Use `a_delete'.
3800         * src/preproc/pic/pic.y (define_label, define_variable): Use `new
3801         <type>[1]'.
3803         * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
3804         harmless memory leak.
3805         (hyphen_trie::read_patterns_file): Initialize `buf'.
3806         * src/roff/troff/node.cc (troff_output_file::troff_output_file):
3807         Initialize `current_fill_color'and `current_glyph_color'.
3808         * src/roff/troff/glyphuni.cc
3809         (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
3810         * src/roff/troff/uniuni.cc
3811         (unicode_decompose_init::unicode_decompose_init): Ditto.
3812         * src/roff/troff/uniglyph.cc
3813         (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
3815 2003-01-26  Werner LEMBERG  <wl@gnu.org>
3817         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
3818         `access' before calling `unlink'.
3819         (do_file): Handle __EMX__.
3821         * src/include/nonposix.h: Handle __EMX__.
3823         * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
3824         (fontpath,tmacpath): Use it.
3825         (MDEFINES): Add it.
3826         Sorted alphabetically.
3828         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
3829         @SEP@.
3830         * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
3831         @SEP@.
3833 2003-01-27  Werner LEMBERG  <wl@gnu.org>
3835         * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
3836         New files, copied from gnulib.
3837         * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
3838         * configure.ac: Updated.
3839         * configure: Regenerated.
3841         * src/include/config.hin: Regenerated.
3842         * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
3843         Don't define `strcasecmp' as `strcmp'.
3844         [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
3845         Dont define `strncasecmp' as `strncmp'.
3847         * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
3848         Removed.
3850 2003-01-26  Werner LEMBERG  <wl@gnu.org>
3852         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
3853         s/unline/unlink/.
3855 2003-01-25  Werner LEMBERG  <wl@gnu.org>
3857         * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
3859 2003-01-24  Werner LEMBERG  <wl@gnu.org>
3861         Add US-english hyphenation exceptions (converted from Barbara
3862         Beeton's hyphenation exception log reports which appear irregularly
3863         in TUGBoat).
3865         * tmac/hyphen.us: Updated to latest version.
3866         * tmac/README: Updated.
3867         * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
3868         * tmac/troffrc: Load `hyphenex.us'.
3869         * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
3870         * doc/groff.texinfo: Updated.
3872 2003-01-23  Werner LEMBERG  <wl@gnu.org>
3874         Improve hyphenation slightly.  This is a first step in redesigning
3875         the hyphenation algorithm to make it more flexible (e.g. allowing
3876         kerns and ligatures between the hyphenation character and the
3877         following character -- while not used normally in English, other
3878         languages like German would benefit).
3880         * src/roff/troff/env.cc (environment::hyphenate_line): Use
3881         assertion instead of if-clause.
3882         Let `get_hyphen_list' return the number of involved characters in
3883         the hyphenation pattern instead of computing it directly (which
3884         often yields too small values).
3885         * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
3886         * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
3887         parameter.
3889 2003-01-22  Werner LEMBERG  <wl@gnu.org>
3891         Fixing a bug which caused groff to hang if the hyphenation exception
3892         dictionary tried to grow.
3894         * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
3895         hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
3896         pointer to dictionary.
3898 2003-01-20  Werner LEMBERG  <wl@gnu.org>
3900         * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
3901         negative left italic correction.
3902         * src/utils/afmtodit/afmtodit.man: Document it.
3904         * font/devps/generate/Makefile (RFLAG): Add `-m'.
3905         * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
3906         S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
3908         * NEWS: Updated.
3910 2003-01-16  Werner LEMBERG  <wl@gnu.org>
3912         * NEWS: Updated.
3914 2003-01-16  Jörgen Grahn  <jgrahn@algonet.se>
3916         * src/preproc/refer/refer.man: Mention REFER environment variable.
3918 2003-01-05  Werner LEMBERG  <wl@gnu.org>
3920         Similar to \[is], the square root glyph (\[sr]) and the square root
3921         extension glyph (\[radicalex]) are now text symbols.  The new
3922         mathematical versions are called \[sqrt] and \[sqrtex],
3923         respectively.
3925         * font/devX*/S: Regenerated.
3926         * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
3927         * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
3928         * font/devdvi/EX, font/devdvi/S: Regenerated.
3929         * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
3930         * font/devlj4/generate/special.map: Add `sqrt'.
3931         * font/devlj4/S: Regenerated.
3932         * font/devps/generate/textmap: Add `sqrt'.
3933         * font/devps/S, font/devps/symbolmap: Regenerated.
3935         * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
3936         SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
3937         * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
3938         overlap horizontally.
3940         * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
3941         * tmac/dvi.tmac: Add `sr', and `sqrtex'.
3942         Fix `radicalex'.
3944         * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
3945         and `sqrtex' are overlapping glyphs.
3947 2003-01-04  Werner LEMBERG  <wl@gnu.org>
3949         * font/devdvi/generate/texsy.map: Add `is'.
3950         * font/devps/symbolmap: Regenerated.
3951         * font/devdvi/*TC, MI, S: Regenerated.
3953         * tmac/dvi.tmac: Remove `is'.
3955 2003-01-03  Werner LEMBERG  <wl@gnu.org>
3957         `is' is now a text symbol (only relevant for dvi).  The math variant
3958         can be accessed with `integral'.
3960         * font/devX*/S: Regenerated.
3961         * font/devdvi/generate/texex.map: Remove `is'.
3962         * font/devdvi/EX: Updated.
3963         * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
3964         * font/devlj4/generate/special.map: Ditto.
3965         * font/devlj4/S: Regenerated.
3966         * font/devps/generate/textmap: Add `integral'.
3967         * font/devps/S: Regenerated.
3969         * tmac/dvi.tmac: Define `is'.
3971         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
3973         * src/preproc/tbl/main.cc (process_format): Fix error message.
3975 2003-01-02  Werner LEMBERG  <wl@gnu.org>
3977         * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
3978         * font/devps/textmap: Fix entries for `ne' and `nc'.
3979         * font/devps/symbolmap: Regenerated.
3981         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
3982         src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
3983         `38', `58', `78', `-+', `|=', `nc', `ne'.
3985         * tmac/dvi.tmac: Add `nm', `ne', `nc'.
3986         Use `schar' for `aq'.
3987         * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
3988         * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
3989         * tmac/tty.tmac: Add `ne'.
3991         * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
3992         for fallback glyphs.
3994 2002-12-29  Werner LEMBERG  <wl@gnu.org>
3996         Add glyph `|='.
3998         * font/devX*/*: Regenerated.
3999         * font/devdvi/generate/ec.map: Remove `eq'.
4000         * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
4001         Assign `|=' to position 39.
4002         * font/devdvi/*EC, S: Regenerated.
4003         * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
4004         * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
4005         Assign `|=' to position 549.
4006         * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
4007         `equalmath'.
4008         Add `uni2243' for `|='.
4010         * tmac/ec.tmac: Add `eq'.
4011         * tmac/dvi.tmac: Add `=~'.
4012         * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
4013         `|='.
4015 2002-12-21  Werner LEMBERG  <wl@gnu.org>
4017         * font/devdvi/generate/tc.map: Remove `**'.
4018         * font/devdvi/*TC: Regenerated.
4019         * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
4020         `78', `<<', `>>'.
4021         * font/devutf8/NOTES: Updated.
4023         * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
4024         Don't give default parameter to `set_macro'.
4025         * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
4026         instead of `set_macro'.
4027         (charinfo::setx_macro): Implement it.
4028         (charinfo::set_macro): Don't change `mode'.
4030         * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
4031         * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
4032         * tmac/dvi.tmac: Define `!=' with `.schar'.
4034 2002-12-20  Werner LEMBERG  <wl@gnu.org>
4036         * font/devX*/S: Regenerated.
4037         * font/devdvi/generate/ec.map: Remove `pl'.
4038         * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
4039         * font/devdvi/*{TC,EC}: Regenerated.
4040         * font/devhtml/R.proto: Add `-+'.
4041         Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
4042         * font/devlbp/*: Remove `or'.
4043         * font/devlj4/generate/special.map: Remove `or'.
4044         * font/devlj4/S: Regenerated.
4045         * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
4046         `seveneighths', `threeeighths'.
4047         Remove `plusmath'.
4048         Replace `minusplus' with `uni2213'.
4049         * font/devps/symbolmap: Regenerated.
4050         * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
4051         Add `-+'.
4053         * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
4054         function.
4055         * src/roff/troff/node.cc (troff_output_file::put_char_width):
4056         Call glyph_color and fill_color even if tcommand_flag isn't set.
4057         (make_node, node::add_char): Check not ci->is_fallback but
4058         ci->is_normal.
4060         * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
4061         * tmac/ec.tmac: Add .rchar entry for `f/'.
4062         Don't remove `12', `14', `34'.
4063         Define `pl' to be always roman.
4064         * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
4065         Define `18', `38', `58', `78'.
4066         * tmac/tty.tmac: Add `-+'.
4067         * tmac/dvi.tmac: Define `f/'.
4068         (dvi-frac): Use `f/'.
4069         * tmac/X.tmac (X-frac, X-frac-mono): New macros.
4070         Define `18', `38', `58', `78'.
4072 2002-12-15  Colin Watson  <cjwatson@debian.org>
4074         * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
4076 2002-12-10  Werner LEMBERG  <wl@gnu.org>
4078         Add glyph `tno', a textual variant of `no'.
4080         * font/devX*/*: Regenerated.
4081         * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
4082         * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
4083         * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
4084         * font/devdvi/*: Regenerated.
4085         * font/devlbp/*: Add `tno'.
4086         * font/devlj4/generate/tex.map: Replace `no' with `tno'.
4087         * font/devlj4/*: Regenerated.
4088         * font/devps/generate/textmap: Replace `no' with `tno'.
4089         * font/devps/generate/symbolchars: Add `no'.
4090         * font/devps/*: Regenerated.
4092         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
4094         * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
4095         * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
4097         * NEWS: Updated.
4099         * tmac/dvi.tmac: Replace most `\\' with `\E'.
4100         Add definition for `sd'.
4101         * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
4103         * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
4105 2002-12-08  Werner LEMBERG  <wl@gnu.org>
4107         * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
4108         mode to avoid rounding errors.
4109         (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
4111         * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
4112         src/roff/troff/troff.man: Improve documentation of -T.
4114 2002-12-07  Jeff Conrad  <jeff_conrad@msn.com>
4116         * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
4117         (run_pipeline) [_WIN32]: Provide working function without `fork'.
4119 2002-12-06  Werner LEMBERG  <wl@gnu.org>
4121         * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
4122         glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
4123         Scaling Euro.sansserif glyphs down to have the same height as
4124         digits.
4125         Removed unnecessary points; added some extrema.
4127         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
4128         Regenerated.
4130 2002-12-04  Werner LEMBERG  <wl@gnu.org>
4132         * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
4133         and `Euro.symbol.bold.slanted'.
4134         Improve some glyph offsets and widths.
4135         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
4136         Regenerated.
4137         * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
4138         typo.
4139         * font/devps/generate/sfdtopfa.pe: Generate PFA in current
4140         direcory.
4142         * tmac/europs.tmac: Updated to new glyph indices.
4143         Use Euro.symbol for font familiy `A'.
4145         * doc/groff.texinfo: Minor improvements.
4147 2002-12-02  Werner LEMBERG  <wl@gnu.org>
4149         * font/devdvi/generate.tc.map: s/%O/%0/.
4150         * font/devdvi/*TC: Regenerated.
4152         * src/roff/troff/div.cc (init_div_requests): Sorted.
4154         * tmac/dvi.tmac: Remove `Ye'.
4155         * tmac/ec.tmac: Remove `Ye'.
4156         Add .rchar entry for `de'.
4158         * man/groff.man, man/groff_diff.man: Document register `.pe'.
4159         * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
4160         * NEWS: Updated.
4162 2002-11-30  Werner LEMBERG  <wl@gnu.org>
4164         Add PS font for various Euro glyphs.
4166         * font/devps/generate/freeeuro.sfd: New master font file for
4167         pfaedit.
4168         * font/devps/generate/sfdtopfa.pe: New conversion script for
4169         pfaedit.
4170         * font/devps/generate/Makefile (FONTS): Add `EURO'.
4171         (EURO, freeeuro.afm, freeeuro.pfa): New rules.
4172         * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
4173         `freeeuro.sfd'.
4174         * font/devps/EURO: Generated from `freeeuro.afm'.
4175         * font/devps/download: Add `freeuro.pfa'.
4176         * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
4177         `freeeuro.pfa'.
4179         * tmac/europs.tmac: New file.
4180         * tmac/ps.tmac: Include `europs.tmac'.
4181         * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
4183 2002-11-29  Werner LEMBERG  <wl@gnu.org>
4185         * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
4186         * font/devdvi/S: Regenerated.
4187         * font/devhtml/R.proto: Fix `CR' and `ci'.
4188         Add `OK'.
4189         * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
4190         Remove `bs'.
4191         * font/devps/symbolmap: Regenerated.
4192         * font/devutf8/R.proto: Fix `CR' and `ci'.
4193         Add `OK'.
4194         * font/devutf8/NOTES: Updated.
4196         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
4197         `ci'.
4198         Add `OK'.
4199         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4201         * tmac/dvi.tmac: Add `lh' and `rh'.
4202         * tmac/Xps.tmac: Fix `lh' and `rh'.
4203         * tmac/X.tmac: Add `OK'.
4204         * tmac/lj4.tmac: Ditto.
4206 2002-11-24  Werner LEMBERG  <wl@gnu.org>
4208         * font/devX*/S: Regenerated.
4209         * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
4210         `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
4211         * font/devdvi/generate/texsy.map: Remove `or' glyph.
4212         * font/devdvi/S: Regenerated.
4213         * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
4214         `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
4215         `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
4216         `bracketleftbt', `bracketrighttp', `bracketrightex',
4217         `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
4218         `braceex', `braceleftex', `bracerightex', `bracerighttp',
4219         `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
4220         `rb', and `bv'.
4221         * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
4222         * font/devutf8/NOTES: Updated.
4223         * font/devlj4/generate/special.map: Add glyph `braceex'.
4224         * font/devlj4/S: Regenerated.
4226         * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
4228 2002-11-14  Werner LEMBERG  <wl@gnu.org>
4230         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
4231         and `vA'.
4232         Fix code for `an'.
4233         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4235         * doc/texinfo.tex: New version from texinfo 4.3.
4236         * doc/groff.texinfo: Updated for texinfo 4.3.
4237         Use @tie{} where appropriate.
4238         * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
4239         * font/devdvi/generate/tc.map: Remove `rn'.
4240         * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
4241         * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
4242         Fix code for `an'.
4243         * font/devX100/*, font/devX100-12/*, font/devX75/*,
4244         font/devX75-12/*: Regenerated.
4246         * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
4247         Use .char (again) for `br', `ul', `rn', `or', and `ru'.
4248         Improve definition of `an'.
4249         * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
4250         `ru'.
4251         * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
4252         * tmac/X.tmac: Add definition for `or'.
4253         * tmac/Xps.tmac: Undo change 2002-11-05.
4254         * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
4256 2002-11-11  Werner LEMBERG  <wl@gnu.org>
4258         * src/roff/troff/node.cc (troff_output_file::put_char): Always
4259         call flush_tbuf.
4261 2002-11-10  Werner LEMBERG  <wl@gnu.org>
4263         Added three new requests `schar', `fschar', and `rfschar'.  `schar'
4264         defines a glyph which is searched after the check for fonts declared
4265         with `.special' (and before the check for all mounted special
4266         fonts).  `fschar' defines a glyph for a particular font which is
4267         searched after the check for fonts declared with `.fspecial' (and
4268         before the check for fonts declared with `.special').  `rfschar'
4269         removes glyphs defined with `fschar'.
4271         * src/roff/troff/token.h (char_mode): New enum.
4272         Declare do_define_character.
4273         * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
4274         `mode'.
4275         (charinfo::is_fallback): Updated.
4276         (charinfo::is_special): New method.
4277         * src/roff/troff/input.cc (do_define_character): Add and use
4278         optional second parameter used as a prefix for font-specific glyph
4279         names.
4280         (define_character, define_fallback_character): Updated.
4281         (define_special_character): New function.
4282         (init_input_requests): Add `schar'.
4283         (charinfo::charinfo, charinfo::set_macro): Updated.
4284         * src/roff/troff/node.cc: Include `stringclass.h'.
4285         (make_glyph_node): Handle special glyphs defined with `.schar' and
4286         `.fschar'.
4287         (define_font_special_character, remove_font_special_character): New
4288         functions.
4289         (init_node_requests): Sorted.
4290         Add `fschar' and `rfschar'.
4291         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4292         Document new requests.
4294         * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
4295         * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
4297 2002-11-08  Werner LEMBERG  <wl@gnu.org>
4299         Added new font `SC' (cmtex10) to devdvi.
4301         * devdvi/generate/Makefile (FONTS): Add `SC'.
4302         (SC): New rule.
4303         * devdvi/generate/textex.map: New map file for cmtex.
4304         * devdvi/SC: New.
4305         * devdvi/Makefile.sub (DEVFILES): Updated.
4306         * tmac/dvi.tmac: Add fspecial entries for SC.
4307         Add `MI', `S' and `CW' to the `special' call.  Otherwise, `SC' is
4308         found before `S' since the font position of `SC' is lower due to the
4309         gaps in DESC's `font' line.
4310         * tmac/ec.tmac: Add a `special' call.
4311         * NEWS: Updated.
4313         * font/devhtml/R.proto: Remove double entry for `ti'.
4314         * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
4315         * tmac/tty-char.tmac: Remove entry for `bq'.
4316         * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
4317         * tmac/ec.tmac: Don't remove `aq' glyph.
4318         * tmac/X.tmac: Fix entry for `em'.
4319         Add entries for `fo' and `fc'.
4320         * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
4322         * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
4323         documentation of `special' and `fspecial' requests.
4325 2002-11-05  Werner LEMBERG  <wl@gnu.org>
4327         * font/devascii/R.proto, font/devcp1047/R.proto,
4328         font/devlatin1/R.proto: Remove entry for `.i'.
4329         * font/devdvi/generate/textt.map: Add entry for `ad'.
4330         * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
4331         font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
4332         We need this for getting kerning values to compose `/l' and `/L'.
4333         * font/devdvi: Regenerated font definition files for CM fonts.
4334         * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
4335         * font/devutf8/R.proto: Ditto.
4336         Remove double entry for `ti'.
4338         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
4339         for (groff) ligatures, `la', and `ra'.
4340         Add "'C", "'c", `IJ', and `ij'.
4341         Remove double entry for `ti'.
4342         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
4343         double entries.
4344         Add "'C", "'c", `IJ', and `ij'.
4345         Fix entries for (groff) ligatures, `la', and `ra'.
4347         * tmac/ps.tmac (ps-achar): New macro.
4348         Define "'c" and "'C".
4349         * tmac/tty.tmac: Add entry for `.i'.
4350         * tmac/X.tmac (X-achar): New macro.
4351         Define "'c", "'C", and `:Y'.
4352         Add entries for `IJ' and `ij'.
4353         * tmac/Xps.tmac (Xps-achar): New macro.
4354         Define "'c" and "'C".
4355         Add entries for `IJ' and `ij'.
4356         * tmac/lbp.tmac (lbp-achar): New macro.
4357         Add fallback characters for all groff ligatures and many other
4358         glyphs.
4359         * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
4360         Add entries for `/l' and `/L'.
4361         Define "'c" and "'C".
4362         Add entries for `IJ' and `ij'.
4364 2002-11-02  Larry Kollar  <kollar@alltel.net>
4366         * PROBLEMS: Document how to solve Mac OS X compilation problems.
4368 2002-11-02  Werner LEMBERG  <wl@gnu.org>
4370         Adding support for composite glyphs: \[xxx yyy ...] and the
4371         `composite' request.
4373         * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
4374         to Unicode-based glyph names.
4375         * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
4376         glyph names to groff glyph names.
4377         * src/roff/troff/uniuni.cc: New file for canonically decomposing
4378         Unicode-based glyph names.
4379         * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
4380         for handling Unicode glyph names.
4381         * src/roff/troff/input.cc: Include unicode.h.
4382         (composite_glyph_name): New function.
4383         (token::next) <'['>: Handle Unicode glyph names and composite
4384         glyphs.
4385         (composite_dictionary): New dictionary for the `composite' request.
4386         (composite_request): Implement `composite' request.
4387         (init_input_requests): Add `composite'.
4388         Alphabetically sorted.
4389         * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
4390         commented out).
4391         (init_env_requests): Alphabetically sorted.
4392         Removed `tas' and `tar' (already commented out).
4393         * src/roff/troff/Makefile.sub: Updated.
4395 2002-10-31  Ruslan Ermilov  <ru@FreeBSD.org>
4397         * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
4398         of options.
4400 2002-10-29  Werner LEMBERG  <wl@gnu.org>
4402         Fix computation of .trunc register.  Additionally, its value (and
4403         the value of the .ne register) is now always set before entering the
4404         trap.
4406         * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
4407         `needed_space' before calling `space'.
4408         (top_level_diversion::space): Remove special code for 'sp before the
4409         first page.
4410         Call `begin_page' with the discarded space as a parameter.
4411         (top_level_diversion::begin_page): Add optional parameter to set
4412         `truncated_space'.
4413         * src/roff/troff/div.h: Updated.
4415         * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
4416         \n[.ne].
4418         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
4419         (LP): Remove superfluous call to `br'.
4420         * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
4421         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
4423 2002-10-26  Werner LEMBERG  <wl@gnu.org>
4425         * tmac/doc-ditroff: Remove useless switch/variable -rC.
4426         (doc-setup-header): Don't set page register `%'.
4427         * tmac/doc-nroff: Remove variable `C'.
4428         (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
4429         (doc-setup-header): Don't set page register `%'.
4430         Don't call `bp'.
4431         * tmac/doc-common (doc-header): Call `ns'.
4432         (doc-paragraph): Protect .sp with .br so that it survives traps
4433         possibly set by the user.
4434         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
4436         * tmac/doc*: Replace ' with . for consistency if no effect.
4438 2002-10-26  Werner LEMBERG  <wl@gnu.org>
4440         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
4441         so that it survives traps possibly set by the user.
4443         * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
4444         (troff_output_file::set_font): Call flush_tbuf if necessary.
4445         (troff_output_file::fill_color, troff_output_file::glyph_color): Call
4446         flush_tbuf and do_motion only if necessary.
4447         (troff_output_file::start_special,
4448         troff_output_file::put_char_width, troff_output_file::put_char,
4449         troff_output_file::draw): Updated.
4450         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4451         vmotion_node::tprint): Undo change 2002-10-23.
4453 2002-10-25  Werner LEMBERG  <wl@gnu.org>
4455         * tmac/www.tmac (DC): Fix case of overlapping images.
4457 2002-10-23  Werner LEMBERG  <wl@gnu.org>
4459         * src/roff/troff/node.cc (troff_output_file::fill_color,
4460         troff_output_file::glyph_color): Set current color before testing
4461         color_flag.
4462         (troff_output_file::put_char_width, troff_output_file::put_char,
4463         troff_output_file::draw): Don't call flush_tbuf and/or do_motion
4464         before glyph_color.
4465         (troff_output_file::file_color, troff_output_file::glyph_color):
4466         Call do_motion.
4467         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4468         vmotion_node::tprint): Move first, then call fill_color.
4470 2002-10-20  Werner LEMBERG  <wl@gnu.org>
4472         * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
4473         possible to use multiple main macro packages.
4475 2002-10-19  Werner LEMBERG  <wl@gnu.org>
4477         * src/devices/grops/ps.cc (cmyk_flag): New global variable.
4478         (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
4479         (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
4480         is set.
4481         * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
4482         `where' construction since `cmyksetcolor' is a PS Level 2 operator.
4484 2002-10-16  Werner LEMBERG  <wl@gnu.org>
4486         * NEWS, doc/webpage.ms: Updated.
4488 2002-10-14  Werner LEMBERG  <wl@gnu.org>
4490         * src/roff/troff/node.cc (troff_output_file::put_char_width,
4491         troff_output_file::put_char, troff_output_file::fill_color,
4492         troff_output_file::glyph_color): Handle case where color pointer
4493         is null.
4495 2002-10-13  Ruslan Ermilov  <ru@FreeBSD.org>
4497         Add the new -r option to grotty.  It is similar to the -i option
4498         except it tells grotty(1) to use the "reverse video" attribute to
4499         render italic fonts.
4501         * src/devices/grotty/tty.cc (reverse_flag): New global variable.
4502         (SGR_REVERSE, SGR_NO_REVERSE): New macros.
4503         (tty_printer::make_underline, tty_printer::put_color,
4504         tty_printer::end_page): Use it.
4505         (main): Add -r switch.
4506         (usage): Updated.
4507         * src/devices/grotty/grotty.man: Document it.
4509 2002-10-11  Ruslan Ermilov  <ru@FreeBSD.org>
4511         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
4512         cast to `unsigned char' to properly read patterns with 8bit
4513         characters.
4515 2002-10-08  Werner LEMBERG  <wl@gnu.org>
4517         * REVISION: Increased to 2.
4519 Version 1.18.1 released
4520 =======================
4522 2002-10-08  Werner LEMBERG  <wl@gnu.org>
4524         * doc/webpage.ms, NEWS: Updated.
4526 2002-10-07  Werner LEMBERG  <wl@gnu.org>
4528         * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
4529         suppress additional whitespace after the header.
4531         * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
4532         with NetBSD.
4534         * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
4536 2002-10-07  Ruslan Ermilov  <ru@FreeBSD.org>
4538         * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
4539         (Dt): Use it to improve language localization (especially Russian
4540         and French).
4542 2002-10-07  Daniel Senderowicz  <daniel@synchrods.com>
4544         * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
4545         * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
4546         drawing commands.
4547         * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
4548         curve type.
4549         Call `picurve' for BSPLINE.
4550         (HGPrintElt): Handle BSPLINE.
4551         * src/preproc/grn/README: Document it.
4553 2002-10-03  Werner LEMBERG  <wl@gnu.org>
4555         * src/roff/troff/node.cc (break_char_node::col): New variable.
4556         Updated constructor.
4557         (space_node::tprint, word_space_node::tprint): Call `fill_color'
4558         unconditionally.
4559         (space_node::space_node): Remove assertion.
4560         (break_char_node::add_self): Pass color argument to space node.
4561         * src/roff/troff/input.cc (token::add_to_node_list, token::process):
4562         Ditto.
4563         * src/roff/troff/env.cc (environment::do_break,
4564         environment::add_padding): Ditto.
4566 2002-10-02  Werner LEMBERG  <wl@gnu.org>
4568         Redesigning color support in troff.  Colors are no longer
4569         represented as separate nodes but are now part of glyph nodes and
4570         friends.  This fixes the current formatting misbehaviour due to the
4571         changes introduced on 2002-09-20.  Some extra code is necessary for
4572         proper grotty support: Without adding color variables to
4573         space-related nodes, the background color would be changed too late.
4575         * src/roff/troff/node.h, src/roff/troff/node.cc:
4576         s/current_pagecolor/current_fill_color/.
4577         s/current_glyphcolor/current_glyph_color/.
4578         (glyph_color_node, fill_color_node): Removed.
4579         (node::get_glyph_color, node::get_fill_color): New virtual member
4580         functions.
4581         (space_node::col): New variable.
4582         Updated constructors of space_node and derived classes accordingly.
4583         (hmotion_node::col): New variable.
4584         Updated constructors of hmotion_node and space_char_hmotion_node
4585         accordingly.
4586         (vmotion_node::col): New variable.
4587         Updated constructor accordingly.
4588         (draw_node::gcol, draw_node::fcol): New variables.
4589         Updated constructor accordingly.
4590         (special_node::gcol, special_node::fcol): New variables.
4591         Updated constructors accordingly.
4592         (troff_output_file::put_char, troff_output_file::put_charwidth,
4593         troff_output_file::draw): Set glyph and fill color.
4594         (troff_output_file::start_special): Set glyph and fill color.
4595         Always set current font.
4596         (troff_output_file::fill_color, troff_output_file::glyph_color):
4597         Don't call `do_motion'.
4598         (glyph_node::gcol, glyph_node::fcol): New variables.
4599         Updated constructors of glyph_node and ligature_node accordingly.
4600         (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
4601         member functions.
4602         (glyph_node::merge_glyph_node,
4603         kern_pair_node::add_discretionary_hyphen,
4604         node::add_discretionary_hyphen): Updated.
4605         (break_char_node::merge_self): Updated.
4606         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4607         vmotion_node::tprint): Handle color.
4608         (make_glyph_node, make_node, node::add_char): Updated.
4610         * src/roff/troff/env.cc (environment::space_newline,
4611         environment::space, environment::output_line, environment::do_break,
4612         environment::make_tab_node, environment::add_padding, title):
4613         Updated.
4614         (environment_switch, environment_copy): Don't add color nodes.
4616         * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
4617         nothing.
4618         (token::next): Updated.
4619         \m and \M now are as transparent as \s.
4620         (process_input_stack, token::add_to_node_list, token::process,
4621         read_draw_node): Updated.
4622         (charinfo_to_node_list): Don't add color nodes.
4624         * doc/groff.texinfo: Updated.
4626 2002-09-27  Ruslan Ermilov  <ru@FreeBSD.org>
4628         * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
4629         strings.
4631 2002-09-27  Colin Watson  <cjwatson@debian.org>
4633         * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
4635 2002-09-23  Werner LEMBERG  <wl@gnu.org>
4637         * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
4638         appropriate.
4639         (DEFAULT_LINEWIDTH_FACTOR): New macro.
4640         (linewidth_factor): New global variable.
4641         (lbp_printer::set_line_thickness): Fix case for size < 0, using
4642         linewidth_factor.
4643         (long_options): Add -w/--linewidth option.
4644         (usage): Updated.
4645         (main): Handle -w option to set linewidth_factor.
4646         (lbp_printer::lbp_printer): Initialize req_linethickness, not
4647         line_thickness.
4649         * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
4651 2002-09-22  Paco Andrés Verdú  <pandres@dragonet.es>
4653         Fixed a bug in the line thickness setting code.
4655         * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
4656         variable.
4657         (lbp_printer::set_line_thickness): Pass environment as second
4658         parameter.
4659         Implement it actually.
4660         (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
4661         and `set_line_thickness, depending on the current font size.
4663 2002-09-21  Werner LEMBERG  <wl@gnu.org>
4665         Some Debian patches.
4667         * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
4668         * src/roff/troff/node.cc (bracket_node::copy): Initialize
4669         `list->last'.
4671 2002-09-20  Werner LEMBERG  <wl@gnu.org>
4673         * configure: Regenerated with autoconf 2.54.
4675 2002-09-20  Werner LEMBERG  <wl@gnu.org>
4677         * src/roff/troff/env.h (environment): Rename cur_glyph_color to
4678         glyph_color.
4679         Rename cur_fill_color to fill_color.
4680         * src/roff/troff/env.cc: Updated.
4682 2002-09-20  Werner LEMBERG  <wl@gnu.org>
4684         * src/roff/troff/env.cc (title): Copy color status after processing
4685         title.
4686         * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
4687         fill color nodes to reset colors properly.
4689         * tmac/www.tmac (DC): Fix color handling.
4691         * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
4692         * doc/groff.texinfo: Fixing documentation of `tl' request.
4693         * doc/webpage.ms: Updated.
4695 2002-09-19  Werner LEMBERG  <wl@gnu.org>
4697         * src/roff/troff/env.cc (environent_switch, environment_copy):
4698         Emit glyph and fill color nodes to initialize colors properly.
4700 2002-09-17  Colin Watson  <cjwatson@debian.org>
4702         * src/roff/troff/env.cc (environment::set_glyph_color,
4703         environment::set_fill_color): Fix typo which prevented \m[] work
4704         correctly.
4706 2002-09-17  Werner LEMBERG  <wl@gnu.org>
4708         Add left and right italic correction to non-slanted PS fonts.  This
4709         is an experimental feature to improve image rendering of grohtml.
4711         * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
4712         ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
4713         * font/devps/*: All non-slanted fonts regenerated.
4714         * NEWS: Updated.
4716 2002-09-16  Werner LEMBERG  <wl@gnu.org>
4718         Add a site-specific font directory.
4720         * Makefile.in (localfontdir, legacyfontdir): New variables.
4721         (fontpath): Use them.
4722         (MDEFINES, uninstall_dirs): Updated.
4723         * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
4724         Remove `FONTPATH' and `MACROPATH'.
4726         * src/roff/troff/troff.man, NEWS: Updated.
4727         * doc/groff.texinfo (Font Directories): New section.
4728         Other minor fixes.
4730         * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
4731         src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
4732         src/preproc/grn/grn.man: Minor fixes.
4734         * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
4735         Remove unused variable.
4737 2002-09-11  Werner LEMBERG  <wl@gnu.org>
4739         * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
4740         * man/groff_out.man: Fix documentation of 'N'.
4742 2002-09-09  Gaius Mulley  <gaius@glam.ac.uk>
4744         * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
4745         * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
4746         set.
4747         * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
4748         (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
4749         (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
4750         * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
4751         PRE_TAG>: Call `begin' with `FALSE'.
4753 2002-09-09  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
4755         * src/libs/libgroff/string.cc (string::extract): Fix position of
4756         terminating null byte.
4758 2002-09-08  Werner LEMBERG  <wl@gnu.org>
4760         Add global option `nospaces' to tbl so that leading and trailing
4761         spaces in data items are ignored.
4763         * src/libs/libgroff/string.cc (string::remove_spaces): New member
4764         function to remove leading and trailing spaces.
4765         * src/include/stringclass.h: Updated.
4767         * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
4769         * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
4770         option.
4771         Fix typo in error messages.
4772         (process_data): Implement `nospaces' option.
4773         * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
4775 2002-09-07  Werner LEMBERG  <wl@gnu.org>
4777         * src/include/config.hin: Add `HAVE_ISATTY'.
4778         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
4779         `fname' member.
4780         * src/libs/libgroff/tmpname.cc: Include `time.h'.
4781         * src/libs/libdriver/input.cc (Char): Add `operator==' and
4782         `operator!=' for `char'.
4783         * doc/groff.texinfo: Replace @ifnottex block for top node with
4784         @ifhtml block.
4786 2002-09-06  Werner LEMBERG  <wl@gnu.org>
4788         * doc/Makefile.in (.texinfo.html): Add -I switch.
4789         * doc/groff.texinfo: Add @ifnottex block for top node to make
4790         translation to HTML work.
4792 2002-09-05  Gaius Mulley  <gaius@glam.ac.uk>
4794         * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
4795         (get_papersize, determine_vertical_offset): Removed.
4796         (char_buffer::do_image): Always specify letter size.
4797         (main): Updated.
4798         (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
4799         -sPAPERSIZE.
4801 2002-09-05  Werner LEMBERG  <wl@gnu.org>
4803         * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
4804         default indentation.
4806 2002-09-04  Gaius Mulley  <gaius@glam.ac.uk>
4808         * src/preproc/html/pre-html.cc (imageList::createPage): Use
4809         -sPAPERSIZE for gs.
4810         (generateImages): Clean up push-back buffer.
4812 2002-09-04  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
4814         * doc/groff.texinfo: Minor fixes.
4816 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
4818         * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
4819         (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
4820         (gsPaper): Removed.
4821         (determine_vertical_offset): Use LETTER_LENGTH.
4822         (createPage): Moved to ...
4823         (imageList::createPage): This.
4824         Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
4825         (imageList::getMaxX): New function.
4826         (createImage): Moved to ...
4827         (imageList::createImage): This.
4828         (imageList::createImages): New function.
4829         (generateImages): Read `maxx' directly.
4830         Updated.
4831         (scanArguments): Don't specify `gsPaper' for `-o'.
4832         (makeTempFiles): Call `xtmpfile' with the last argument set to
4833         `TRUE'.
4835 2002-08-24  Werner LEMBERG  <wl@gnu.org>
4837         * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
4838         (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
4839         * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
4840         * src/preproc/html/pushback.cc: Include nonposix.h.
4841         * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
4842         conditionally.
4844 2002-08-23  Werner LEMBERG  <wl@gnu.org>
4846         Use $(OBJEXT) for the object file extension.
4848         * Makefile.comm (.SUFFIXES): Add .obj.
4849         (.cc.obj, .c.obj): New implicit rules.
4850         * Makefile.in (OBJEXT): New variable, initialized from autoconf.
4851         (MDEFINES): Add EXEEXT and OBJEXT.
4852         * */Makefile.sub: s/.o/.$(OBJEXT)/.
4854 2002-08-22  Werner LEMBERG  <wl@gnu.org>
4856         * INSTALL: Mention texinfo 4.2 as a prerequisite.
4858 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
4860         * src/devices/grohtml/post-html.cc (colType): Make enum global to
4861         the file.
4862         (html_printer::update_min_max, html_printer::add_table_end): New
4863         methods.
4864         (html_printer::lookahead_for_tables): Use them.
4865         Reset page offset correctly.
4866         (html_printer::~html_printer): Add creation of creator comment up.
4868 2002-08-20  Werner LEMBERG  <wl@gnu.org>
4870         * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
4871         * man/groff_tmac.man: Fix typos.
4872         * man/groff_font.man: Minor reordering.
4873         * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
4875 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
4877         Avoid endless loops while scanning for tables.
4879         * src/devices/grohtml/post-html.cc (list::insert): Set
4880         ptr->right->left.
4881         (html_printer::next_horiz_pos): Add `text_glob' argument; update
4882         all callers.
4883         Return immediately if that argument is NULL.
4884         (html_printer::calc_nf): Don't test if `g' is NULL.
4885         (html_printer::lookahead_for_tables): Use
4886         `glyphs.move_right_get_data'.
4887         Don't test if `g' is NULL.
4889 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
4891         A better fix, replacing fix 2002-08-15, for increasing SIZE.
4893         * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
4894         a pointer.
4895         (char_block::char_block): Allocate `buffer'.
4896         (char_buffer::add_string): Use it.
4898 2002-08-15  Werner LEMBERG  <wl@gnu.org>
4900         * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
4901         src/devices/grodvi/grodvi.man: Document default line thickness.
4903 2002-08-15  Gaius Mulley  <gaius@glam.ac.uk>
4905         * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
4906         8192.
4908 2002-08-14  Werner LEMBERG  <wl@gnu.org>
4910         * doc/webpage.ms: Updated.
4912 2002-08-09  Werner LEMBERG  <wl@gnu.org>
4914         * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
4915         unbreakable space.
4917 2002-08-08  Aaron Campbell  <aaron@monkey.org>
4919         * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
4920         (&& -> &).
4922 2002-08-08  Werner LEMBERG  <wl@gnu.org>
4924         * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
4925         tok.next().
4926         (read_gray): Ditto.
4927         Don't push back a space but a newline onto the stack.
4929 2002-08-07  Gaius Mulley  <gaius@glam.ac.uk>
4931         Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
4932         inadvertently.
4934         * src/devices/grohtml/post-html.cc (html_printer::end_font,
4935         html_printer::start_font): Handle them.
4936         * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
4937         reset bold and tt.
4938         (html_text::do_bold): Don't reset italic and tt.
4939         (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
4940         * font/devhtml/DESC.proto: Add those fonts.
4941         * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
4943 2002-08-07  Werner LEMBERG  <wl@gnu.org>
4945         * MORE.STUFF: Added gpresent.
4947         * tmac/trace.tmac: Show nesting level by a corresponding amount of
4948         whitespace before printing the logging message.
4950 2002-07-31  Colin Watson  <cjwatson@debian.org>
4952         * src/devices/grohtml/html-table.cc (html_table::finish_row):
4953         Initialize `n' to zero.  This fixes a segfault on ARM.
4955 2002-07-30  Werner LEMBERG  <wl@gnu.org>
4957         * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
4959 2002-07-29  Werner LEMBERG  <wl@gnu.org>
4961         * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
4962         final semicolon.
4964 2002-07-28  Colin Watson  <cjwatson@debian.org>
4966         * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
4967         `.ps'.
4968         (html_printer::html_printer): Initialize `pointsize'.
4970 2002-07-26  Werner LEMBERG  <wl@gnu.org>
4972         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
4973         gnu.png.
4974         (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
4975         (gnu.eps): Add -rle switch to pnmtops.
4976         (distfiles): Add gnu.eps and gnu.png.
4978 2002-07-25  Petter Reinholdtsen  <pere@hungry.com>
4980         * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
4981         Add `operator!='.
4983 2002-07-24  Werner LEMBERG  <wl@gnu.org>
4985         * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
4986         ' \+' but '  *' for sed.
4987         (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
4989 2002-07-23  Werner LEMBERG  <wl@gnu.org>
4991         * doc/groff.texinfo: Document `papersize' keyword.
4992         * NEWS, man/groff_font.man: Updated.
4994 2002-07-23  Colin Watson  <cjwatson@debian.org>
4996         Extend papersize keyword to accept more than a single entry.  The
4997         first valid will be used.
4999         * src/libs/libgroff/font.cc (font::load_desc): Implement it.
5000         (font::scan_papersize): Really skip final newline.
5001         * src/preproc/html/pre-html.cc (get_papersize): Ditto.
5003 2002-07-23  Werner LEMBERG  <wl@gnu.org>
5005         * configure.ac: Test for isatty.
5006         * configure: Regenerated.
5007         * src/include/posix.h: Check HAVE_ISATTY.
5008         * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
5009         * src/utils/lookbib/lookbib.cc: Include posix.h.
5010         Don't declare isatty.
5012 2002-07-21  Werner LEMBERG  <wl@gnu.org>
5014         * NEWS: Add `output' request.
5016         * REVISION: Increased to 1.
5018 Version 1.18.0 released
5019 =======================
5021 2002-07-19  Gaius Mulley  <gaius@glam.ac.uk>
5023         Allow internal glyph indices > 0xFF in grohtml for input characters.
5025         * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
5026         as parameter.
5027         (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
5028         Updated all callers.
5029         (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
5030         (html_printer): Updated.
5032 2002-07-19  Werner LEMBERG  <wl@gnu.org>
5034         * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
5035         * font/devutf8/R.proto: Adding some missing glyphs.
5036         * font/devutf8/NOTES: Updated.
5038         * tmac/dvi.tmac: Add more composite glyphs.
5039         * tmac/html.tmac: Updated.
5041         * man/groff_char.man: Add `sum' and `product' entities.
5043         * NEWS: Updated.
5045 2002-07-18  Gaius Mulley  <gaius@glam.ac.uk>
5047         Improved table, tab, and indenting support.
5049         * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
5050         string_iterator::suppress_newline_flag): Removed.  Updated all
5051         function which have used it.
5053         * src/roff/troff/env.cc: Include `input.h'.
5054         (environment::add_node): Accept 0 as parameter.
5055         (environment::add_html_tag): Add `force' parameter.
5056         Updated all callers.
5057         (environment::add_html_tag_tabs): Ditto.
5058         For the moment, support left-aligned tabs only.
5059         (environment::make_html_tag): New function.
5060         (fill, no_fill): Set .br html tag additionally.
5061         (environment::newline): Emit `eol.ce' or `eol' tag for html.
5062         (environment::add_html_tag_eol): Removed.
5063         (tab_stops::distance_to_next_tab): Add variant for handling 
5064         nextpos'.
5065         (environment::distance_to_next_tab): Ditto.
5066         Updated all callers.
5067         (environment::handle_tab): Handle tabs for html.
5068         
5069         * src/roff/troff/env.h: Updated.
5071         * src/roff/troff/div.cc: Updated all callers of
5072         `environment::add_html_tag'.
5074         * src/devices/grohtml/html-table.cc,
5075         src/devices/grohtml/html-table.h: New files.
5077         * src/devices/grohtml/html-text.cc (html_text): New members
5078         `blank_para' and `start_space'.
5079         (html_text::issue_tag): Don't emit TABLE_TAG.
5080         Handle indentation for PRE_TAG and P_TAG.
5081         (html_text::end_tag): Updated.
5082         (html_text::table_is_void, html_text::issue_table_begin,
5083         html_text::issue_table_end): Removed.
5084         (html_text::do_push): Simplified.
5085         [DEBUGGING]: Small fix.
5086         (html_text::push_para): Add new parameter for indentation; updated
5087         all callers.
5088         Handle PRE_TAG.
5089         (html_text::do_indent, html_text::do_table, html_text::done_table,
5090         html_text::is_in_table): Removed.
5091         (html_text::do_pre): Handle P_TAG also.
5092         (html_text::shutdown): Handle p->indent.
5093         (html_text::check_emit_text): Simplified.
5094         (html_text::do_emittext): Reset `blank_para'.
5095         (html_text::do_para): Add new parameter for indentation; updated
5096         all callers.
5097         (html_text::remove_indent): New function.
5098         (html_text::do_space): Handle verbatim text properly.
5099         (html_text::ever_emitted_text, html_text::starts_with_space,
5100         html_text::remove_para_align): New functions.
5101         (html_text::dump_stack_element, html_text::dump_stack): Updated.
5103         * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
5104         Updated.
5106         * src/devices/grohtml/post-html.cc: Include html-table.h.
5107         (INDENTATION): Removed.
5108         (text_glob): Added many `is_<foo>' functions.
5109         Added table description `tab'.
5110         Added `get_arg',`get_tab_args', `remember_table', and `get_table'
5111         member functions.
5112         (list): Add `insert' and `move_to' member functions.
5113         (page): Add `insert_tag' member function.
5114         (page::dump_page) [DEBUG_TABLES]: Improved.
5115         (html_printer): Add `table' and `max_linelength' elements.
5116         Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
5117         `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
5118         `remove_tabs', `remove_courier_tabs'.
5119         (html_printer::emit_raw): Handle indentation.
5120         (html_printer::do_center, html_printer::write_header): Updated.
5121         (html_printer::is_courier_until_eol): Check for tag.
5122         (html_printer::do_linelength): Handle max_linelength.
5123         (html_printer::do_page_offset, html_printer::do_indentation): Handle
5124         fill_on.
5125         (html_printer::do_tempindent): Updated.
5126         (html_printer::do_indentedparagraph): Removed.
5127         (html_printer::do_indent): Simplified.
5128         (html_printer::do_eol): Use `ever_emitted_text'.
5129         (html_printer::do_flush, html_printer::do_links): Don't call
5130         done_table.
5131         (html_printer::do_break): Handle end_tempindent.
5132         (html_printer::troff_tag): Get argument.
5133         Don't handle `.ip'.
5134         Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
5135         (html_printer::flush_page): Call `lookahead_for_tables'.
5136         Don't call `done_table'.
5137         (html_printer::add_to_sbuf): Always call do_indent.
5139         * src/devices/grohtml/Makefile.sub: Updated.
5141         * tmac/an-old.tmac (TP): Don't handle html device specially.
5142         (an-do-tag-html): New function which will be used instead of
5143         `an-do-tag' if html device is used.
5145         * tmac/html.tmac: Call .po to pass default page offset to grohtml.
5147         * tmac/s.tmac (@IP): Don't handle html device specially.
5148         (@IP-html): New function which will be used instead of `@IP' if
5149         html device is used.
5151         * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
5152         is a hack which will eventually vanish again.
5153         (PIMG): Handle `-C' option correctly if not html.
5154         (HR): Use HTML-NS.
5156 2002-07-17  Werner LEMBERG  <wl@gnu.org>
5158         * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
5160 2002-07-14  Eric S. Raymond  <esr@thyrsus.com>
5162         * contrib/pic2graph/pic2graph.*: Use convert(1).
5163         * contrib/eqn2graph/eqn2graph.*: Minor fixes.
5165 2002-07-14  Bernd Warken  <bwarken@mayn.de>
5167         * tmac/groff_trace.man: New file.
5168         * tmac/Makefile.sub: Updated.
5169         * NEWS: Updated.
5171 2002-07-13  Werner LEMBERG  <wl@gnu.org>
5173         * src/roff/groff/groff.man: Add some cross references.
5175 2002-07-12  Werner LEMBERG  <wl@gnu.org>
5177         * src/roff/troff/input.cc (substring_request): Add warnings for
5178         string indices out of range.
5180 2002-07-11  Werner LEMBERG  <wl@gnu.org>
5182         * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
5183         * font/devdvi/*EC: Regenerated.
5185 2002-07-10  Bernd Warken  <bwarken@mayn.de>
5187         * man/groff_char.man: Updated and extended.
5189 2002-07-10  Werner LEMBERG  <wl@gnu.org>
5191         * src/roff/troff/input.cc (length_macro): Renamed to...
5192         (length_request): This.
5193         Move call of `tok.next()' to the very end, otherwise the register
5194         value hasn't been updated yet.
5195         (init_input_requests): Updated.
5197 2002-07-09  Werner LEMBERG  <wl@gnu.org>
5199         * src/roff/troff/input.cc (substring_macro): Renamed to...
5200         (substring_request): This.
5201         (init_input_requests): Updated.
5202         * src/roff/troff/request.h: Updated.
5204 2002-07-08  Robert D. Goulding  <goulding@Princeton.EDU>
5206         * src/roff/grog/grog.sh: Fix typo.
5208 2002-07-08  Werner LEMBERG  <wl@gnu.org>
5210         * win32-diffs: Updated.
5212         Handle `papersize' keyword properly in DESC.
5214         * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
5215         type.
5216         Updated all callers.
5217         * src/libs/libgroff/paper.cc: Add four more paper formats used by
5218         grolj4.
5219         * src/include/paper.h: Updated.
5221         * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
5222         Other minor C syntax fixes.
5223         (papersize, paperlength, paperwidth): Renamed to `user_*'.
5224         (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
5225         members.
5226         (lbp_printer::lbp_printer): Pass three arguments.
5227         Set paper dimensions properly.
5228         (make_printer, main): Updated.
5229         (handle_unknown_desc_command): Fix error messages.
5230         (main): Handle papersize keyword in DESC properly.
5232         * src/devices/grolj4/lj4.cc (paper_size): Renamed to
5233         `user_paper_size'.
5234         (lbp_printer::lbp_printer): Pass an argument.
5235         Set paper_size properly.
5236         (handle_unknown_desc_command): Removed.
5237         (make_printer, main): Updated.
5238         * src/devices/grolj4/grolj4.man: Minor documentation fix.
5240         * man/groff_font.man, NEWS: Updated.
5242 2002-07-07  Werner LEMBERG  <wl@gnu.org>
5244         Integrated eqn2graph, contributed by Eric S. Raymond.
5246         * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
5247         files.
5248         * Makefile.in, NEWS: Updated.
5250 2002-06-04  Werner LEMBERG  <wl@gnu.org>
5252         Changing the substring request to make it fit better with other
5253         string manipulation functions in other programming languages:
5254         Index 0 is now the first character in the string, and index -1
5255         indicates the last character.  Since this request didn't work
5256         properly anyway in the last release, it doesn't harm too much to
5257         change the syntax.
5259         * src/roff/troff/input.cc (substring_macro): Use loops to get
5260         the real string length (ignoring COMPATIBLE_SAVE and
5261         COMPATIBLE_RESTORE) and offsets.
5262         Implement change described above.
5264         * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
5265         (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
5267         * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
5269 2002-06-03  Werner LEMBERG  <wl@gnu.org>
5271         Make .chop work with .de1 and friends.  COMPATIBLE_SAVE and
5272         COMPATIBLE_RESTORE are completely ignored.
5274         * src/roff/troff/input.cc (char_list::set, char_list::get): New
5275         functions.
5276         (macro): `length' field renamed to `len'.
5277         Added new field `empty_macro' (1 if macro is empty), to be used
5278         instead of checking `len'.
5279         Updated all callers.
5280         (macro::empty): Updated.
5281         (macro::length, macro::set, macro::get): New functions.
5282         (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5283         Set `empty_macro'.
5284         (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
5285         COMPATIBLE_RESTORE pairs.
5286         (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5287         * src/roff/troff/request.h: Updated.
5289         * doc/groff.texinfo: Document .chop's behaviour better.
5291 2002-06-02  Werner LEMBERG  <wl@gnu.org>
5293         * doc/pic.ms: Fix documentation for the addition of positions.
5295         * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
5297 2002-06-29  Werner LEMBERG  <wl@gnu.org>
5299         Implementation of string arguments of the form \*[foo arg1 arg2 ...]
5301         * src/roff/troff/input.cc (have_string_arg): New global variable.
5302         (read_mode): New enumeration.
5303         (read_escape_name): Use it.  Update all calls.
5304         (read_long_escape_name): Use it.  Update all calls.
5305         Set have_string_arg if appropriate.
5306         (get_char_for_escape_name): Add parameter for handling space
5307         character.
5308         (interpolate_string_with_args, decode_string_args): New functions.
5309         (get_copy, token::next): Call it if necessary.
5310         (interpolate_string): Fix error message.
5312         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5313         Document it.
5315 2002-06-24  Bernd Warken  <bwarken@mayn.de>
5317         * man/groff_tmac.man: Updated and extended.
5319 2002-06-24  Werner LEMBERG  <wl@gnu.org>
5321         * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
5323 2002-06-23  Werner LEMBERG  <wl@gnu.org>
5325         * doc/pic.ms: Improve documentation of composite block objects.
5327 2002-06-22  Werner LEMBERG  <wl@gnu.org>
5329         * src/roff/troff/input.cc (init_registers): Add three registers
5330         `seconds', `minutes', and `hours' to hold the current time.
5332         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5333         Updated.
5335 2002-06-20  Werner LEMBERG  <wl@gnu.org>
5337         Make \X accept both `\ ' and `\~', converting them to single space
5338         characters.
5340         * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
5341         (token::unstretchable_space): New inline function.
5342         * src/roff/troff/input.cc (token::next, token::delimiter,
5343         token::description, token::add_to_node_list, token::process): Handle
5344         TOKEN_UNSTRETCHABLE_NODE.
5345         (encode_char): Handle tok.stretchable_space and
5346         tok.unstretchable_space.
5348         * NEWS, doc/groff.texinfo: Document it..
5350 2002-06-19  Werner LEMBERG  <wl@gnu.org>
5352         * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
5354         * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
5355         keyword to enable/disable SGR output.
5356         (tty_printer::change_fill_color): New function.
5357         * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
5359         * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
5360         call.
5362 2002-06-18  Werner LEMBERG  <wl@gnu.org>
5364         Add a `color' request and a `.color' register to control usage of
5365         colours.
5367         * src/roff/troff/input.cc (disable_color_flag): Replaced with...
5368         (color_flag): This (which is the inverse).
5369         (activate_color): New function.
5370         (main, init_input_requests): Updated.
5371         * src/roff/troff/troff.h, src/roff/troff/node.cc
5372         (troff_output_file::fill_color, troff_output_file::glyph_color):
5373         Updated.
5375         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5376         Document the changes.
5378 2002-06-17  Colin Watson  <cjwatson@debian.org>
5380         Circumvent bug in autoconf 2.53 regarding top_builddir.
5382         * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
5383         * Makefile.in, doc/Makefile.in:
5384         s/@top_builddir@/@groff_top_builddir@/.
5385         * configure: Regenerated (with autoconf 2.53).
5387 2002-06-17  Werner LEMBERG  <wl@gnu.org>
5389         * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
5390         `paperwidth' and `paperlength' for the `papersize' keyword.
5392 2002-06-16  P. Alejandro Lopez-Valencia  <dradul@007mundo.com>
5394         * src/devices/grops/grops.man: Add info about Type 42 fonts.
5396 2002-06-15  Gaius Mulley  <gaius@glam.ac.uk>
5398         * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
5399         html_printer::do_linelength, html_printer::do_pageoffset,
5400         html_printer::do_indentation, html_printer::do_tempindent,
5401         html_printer::do_break, html_printer::begin_page): Clear indented
5402         text.
5403         * tmac/html.tmac: Disable hyphenation.
5405 2002-06-15  Werner LEMBERG  <wl@gnu.org>
5407         Don't produce HTML files if utility programs are missing.
5409         * Makefile.in (make_html, make_install_html): New variables.
5410         (MDEFINES): Updated.
5412         * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
5413         utility programs.
5414         * configure.ac: Use it.
5415         * configure: Regenerated.
5417         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
5418         (HTMLEXAMPLESFILES): This new variable.
5419         (EXAMPLESIMAGEFILES): Renamed to...
5420         (HTMLEXAMPLEIMAGEFILES): This.
5421         (CLEANADD): Add HTMLEXAMPLEFILES.
5422         (all): Use `make_html'.
5423         (html): New target.
5424         (install_data): Use `make_install_html'.
5425         Move html stuff to...
5426         (install_html): This new target.
5427         (uninstall_sub): Updated.
5429 2002-06-14  Bernd Warken  <bwarken@mayn.de>
5431         * src/roff/grog/Makefile.sub (grog): Renamed to...
5432         (grog.old): This.
5433         (grog): New rule to always install grog.sh as grog.
5435 2002-06-08  Bernd Warken  <bwarken@mayn.de>
5437         * src/roff/grog/grog.pl: Fix typo.
5439 2002-06-07  Werner LEMBERG  <wl@gnu.org>
5441         * doc/groff.texinfo: Add more info on .tr arguments.
5443 2002-06-05  Werner LEMBERG  <wl@gnu.org>
5445         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
5447         * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
5448         * configure: Regenerated.
5450 2002-06-05  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5452         * src/roff/troff/symbol.cc (table_sizes): Add more values.
5454         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
5456 2002-06-04  Werner LEMBERG  <wl@gnu.org>
5458         * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
5459         is not initialized at the time we need it in case `--prefix' hasn't
5460         been set.  Check for `ac_default_prefix' also.
5461         Test for `papersize' keyword also and generalize allowed whitespace.
5462         * configure: Regenerated.
5464         * font/devps/Makefile.sub (DESC): Use `papersize' instead of
5465         `paperlength'.
5467         * src/libs/libgroff/Makefile.sub (version, revision): Replaced
5468         with...
5469         (src_version, src_revision): New variables to avoid overwriting
5470         from parent make process.
5471         (version.cc): Updated.
5473         * src/preproc/html/pre-html.cc: Include paper.h and font.h.
5474         (linebuf, linebufsize): New global variables.
5475         (sys_fatal): Use `fatal' to abort properly.
5476         (get_line): New function.
5477         (get_resolution): Use it.
5478         Improve error messages.
5479         (get_papersize): Check `papersize' also.
5480         Use `get_line'.
5481         Improve error messages.
5483 2002-06-03  Werner LEMBERG  <wl@gnu.org>
5485         * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
5486         should be removed only if builddir is not srcdir.
5487         (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
5488         (clean): Depend on `mostlyclean'.
5489         (distclean): Depend on `clean'.
5490         (realclean, extraclean): Depend on `distclean'.
5491         (.y.cc, .y.o): Simplified.  The output files are no longer written
5492         to srcdir but to builddir.
5493         * Makefile.in (MDEFINES): Add `version' and `revision'.
5494         (uninstall_dirs): Fix order of directories.
5495         * doc/Makefile.sub (version, revision): Removed.
5496         (CLEANADD): Removed grnexmpl.g, groff, groff-*.
5497         Added `HTMLDOCFILES'.
5498         (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
5499         * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
5500         src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
5501         as prefix.
5503         * doc/texinfo.tex (\authortt): New macro.
5504         (\shortcontt): Define.
5505         (\titlepage): Set \tt to \authortt while defining \authorfont.
5506         (\appendixbox): New macro.
5507         (\chapmacro, \appendixentry): Use \appendixbox to get even
5508         indentation for letters.
5509         (\summarycontents): Set \tt.
5510         (\internalpagesize): Add two arguments for real paper width and
5511         height as needed by pdfTeX.
5512         (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
5513         Updated.
5514         (\tempdima, \tempdimb): New temporary dimensions.
5515         (\pagesizesyyy): Updated.
5517 2002-06-02  Werner LEMBERG  <wl@gnu.org>
5519         Adding a new keyword `papersize' to the DESC file format (similar
5520         but not completely identical to grolbp's extension).  grops now has
5521         a -p command line option to override `papersize'.  Finally, grolbp
5522         has been adapted to the new syntax.
5524         * src/libs/libgroff/paper.cc, src/include/paper.h: New files.  It
5525         defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
5526         elements.
5527         * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
5528         (CCSRCS): Add `paper.cc'.
5530         * src/include/font.h (font): Add `papersize' element.
5531         * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
5532         (font::scan_papersize): New function.
5533         (font::load_desc): Use it for handling `papersize' keyword.
5534         * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
5536         * src/devices/grops/ps.cc: Include paper.h.
5537         (user_paper_length): New global variable.
5538         (ps_printer): Use paper length as initializer.
5539         (make_printer): Updated.
5540         (main): Handle new `-p' option.
5541         * src/devices/grops/grops.man: Updated.
5543         * src/devices/grolbp/lbp.cc: Include paper.h.
5544         s/papersizes/lbp_papersizes/.
5545         (set_papersize): Use new `papersizes' array.
5546         (handle_unknown_desc_command): Don't handle `papersize'.
5547         (main): Use `font::scan_papersize' for handling `-p' option.
5548         * src/devices/grolbp/grolbp.man: Updated.
5550         * man/groff_font.man: Document `papersize'.
5551         * NEWS: Updated.
5553 2002-05-30  Werner LEMBERG  <wl@gnu.org>
5555         * src/devices/grops/TODO: Updated.
5556         * src/devices/grops/grops.man: More info on paper formats.
5557         * man/groff_font.man: Document `paperheight' and `paperwidth'.
5559 2002-05-29  Werner LEMBERG  <wl@gnu.org>
5561         * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
5562         to list only if srcdir != currdir.
5563         (distfiles): New target.
5565         * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
5566         (NOMAKEDIRS): New variable.
5567         (DISTDIRS): Use it.
5569 2002-05-26  Werner LEMBERG  <wl@gnu.org>
5571         Add .output request, similar to \! at top-level.
5573         * src/roff/troff/input.cc (transparent): Remove unused declaration.
5574         (output_request): New function.
5575         (init_input_requests): Add it.
5576         Sorted.
5577         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5578         Document it.
5580         * Makefile.in (MDEFINES): Add INSTALL_INFO.
5581         (prepare_examples): Fix typo.
5582         * doc/groff.texinfo (@direntry): Fix it.
5584 2002-05-25  Werner LEMBERG  <wl@gnu.org>
5586         Including the doc subdir into groff's Makefile system.
5588         * aclocal.m4 (GROFF_INSTALL_INFO): New function.
5589         * configure.ac: Use it.
5590         Generate `doc/Makefile'.
5591         * configure: Regenerated.
5593         * Makefile.in (infodir, INSTALL_INFO): New variables.
5594         (MDEFINES, uninstall_dirs): Updated.
5595         (OTHERDIRS): Add `doc'.
5596         * Makefile.comm (CLEANDIRADD): New variable.
5597         (mostlyclean): Use it.
5599         * doc/Makefile.sub, doc/Makefile.in: New files.
5600         * doc/Makefile: Removed.
5602         * NEWS, INSTALL: Updated.
5604 2002-05-24  Werner LEMBERG  <wl@gnu.org>
5606         * doc/homepage.ms: Renamed to ...
5607         * doc/webpage.ms: This.
5608         Use `.NHR'.
5610 2002-05-23  Werner LEMBERG  <wl@gnu.org>
5612         Integrating the `mom' macro package, contributed by Peter Schaffter
5613         <df191@ncf.ca>.
5615         * contrib/mom/*: New subdirectory tree.
5616         * Makefile.in (docdir, exampledir, htmldocdir): New variables to
5617         be used for documentation files.
5618         (MDEFINES, uninstall_dirs): Use them.
5619         (OTHERDIRS): Add contrib/mom.
5620         * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
5621         @HTMLDOCDIR@.
5622         * MANIFEST, NEWS: Updated.
5624 2002-05-22  Gaius Mulley  <gaius@glam.ac.uk>
5626         Change syntax of \O: \O[0] suppresses output, \O[1] enables output
5627         if at outer level; at start-up we are at outer level.
5629         * src/roff/troff/input.cc (do_suppress): Implement it.
5630         Simplify \O[3].
5632         Add option -p to show progress information.
5633         pre-grohtml will now render only one page at a time, reducing the
5634         size of needed disk resources enormously.
5636         * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
5637         (imagePageName): New global variable.
5638         (psPageName, show_progress, currentPageNo): New global variables.
5639         (html_system): Close saved stderr and stdout handles.
5640         (write_end_image): Accept a parameter to control \O escape.
5641         (write_start_image): Adapted to new \O meaning.
5642         (char_buffer::write_upto_newline): Updated.
5643         (createAllPages): Replaced with...
5644         (createPage): This new function to create a single page for images.
5645         It uses `psselect' from the psutils package.
5646         (removeAllPages): Removed.
5647         (createImage): Updated.
5648         Handle progress display.
5649         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
5650         (scanArguments): Add option -p.
5651         (makeTempFiles): Updated to create temp files for psPageName and
5652         imagePageName.
5653         (removeTempFiles): Removed.
5654         (main): Updated.
5656         * src/devices/grohtml/post-html.cc (header_desc::write_headings,
5657         html_printer::write_header): Append `\0' to `buffer'.
5658         (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
5659         (main): Handle -p.
5660         * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
5661         Handle `text_emitted'.
5662         (html_text::table_is_void): Slightly rewritten.
5663         (stop): New external symbol.
5664         (html_text::do_push) [DEBUGGING]: Use it and simplify.
5665         (html_text::shutdown): Call `dump_stack'.
5666         (html_text::do_space): Rewritten.
5667         * src/devices/grohtml/grohtml.man: Document -p and the need of
5668         `psselect'.
5670         * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
5671         new \O syntax.
5672         Call \O[0] if `ps4html' is active.
5673         * tmac/s.tmac (@EQ, @EN): Handle html better.
5674         (@TS, TE): Ditto.
5675         * tmac/html.tmac: Don't use black for background colour.
5677         * src/roff/troff/node.cc: Include `div.h'.
5678         (troff_output_file::really_print_line): Don't use `is_on'. 
5679         (troff_output_file::word_marker, troff_output_file::flush_tbuf
5680         troff_output_file::check_charinfo,
5681         troff_output_file::put_char_width, troff_output_file::put_char,
5682         troff_output_file::determine_line_limits, troff_output_file::draw,
5683         real_output_file::begin_page, glyph_color_node::tprintf,
5684         fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
5685         Use `is_on'.
5686         (troff_output_file::really_on): Call `do_motion'.
5687         (suppress_node::tprint): Use `get_page_number' instead of `%'
5688         register.
5689         Call `reset_output_registers' conditionally on `is_on'.
5691         * doc/groff.texinfo: Document new syntax of \O.
5692         * NEWS, man/groff_diff.man: Updated.
5694 2002-05-22  Werner LEMBERG  <wl@gnu.org>
5696         * MORE.STUFF: Add info about David Frey's deroff implementation.
5697         Mention troff.org.
5699 2002-05-16  Werner LEMBERG  <wl@gnu.org>
5701         Pic's `with' attribute now accepts positions.
5703         * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
5704         ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
5705         conflicts.
5706         (object_spec): Add rule for `WITH' and `position'.
5707         (relative_path): Give `corner' the precedence of `CHOP'.
5708         * src/preproc/pic/object.h (path): New members `pos' and
5709         `is_position'.
5710         * src/preproc/pic/object.cc: Updated initializers of `path'.
5711         (path::follow): Handle `is_position'.
5713         * doc/pic.ms: Completely updated grammar description.
5714         Many typographical improvements.
5716 2002-05-15  Werner LEMBERG  <wl@gnu.org>
5718         * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
5719         code of x in range 0-127) also.
5720         * doc/groff.texinfo, man/groff_diff.man: Updated.
5722         Added keywords `north', `south', `east', and `west' for corners
5723         in pic.
5725         * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
5726         and WEST.
5727         (yylex): Handle them.
5728         * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
5729         (corner): Handle them.
5731 2002-05-14  Werner LEMBERG  <wl@gnu.org>
5733         * src/devices/grops/grops.man: Clarify handling of `download' file.
5735 2002-05-11  Werner LEMBERG  <wl@gnu.org>
5737         Adding `warnscale' and `spreadwarn' requests, based on a patch from
5738         Jeffrey Friedl <jfriedl@yahoo.com>.
5740         * src/roff/troff/input.cc (spread_limit, warn_scale,
5741         warn_scaling_indicator): New global variables.
5742         (warnscale_request, spreadwarn_requests): New functions.
5743         (main): Initialize `warn_scale' and `warn_scaling_indicator'.
5744         (init_input_requests): Updated.
5745         (error_type): Add `OUTPUT_WARNING'.
5746         (do_error): Handle it.
5747         (output_warning): New warning function which shows output location.
5748         * src/roff/troff/env.h (spread_limit): New external variable.
5749         * src/roff/troff/env.cc (environment::choose_breakpoint): Use
5750         `output_warning'.
5751         (distribute_space): Emit warning if added space is larger than
5752         `spread_limit'.
5753         (environment::possibly_break_line): Emit warning if a line can't
5754         be adjusted on both sides.
5756         * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
5758 2002-05-08  Werner LEMBERG  <wl@gnu.org>
5760         * src/roff/troff/node.cc (special_node::special_node): Use
5761         env_definite_font(curenv) instead of curenv->get_font().  Otherwise
5762         \X''\% crashes, for example.
5764         * doc/groff.texinfo: Document \! and \? used at top-level.
5766 2002-05-06  Werner LEMBERG  <wl@gnu.org>
5768         * src/preproc/pic/pic.man: Fix some keyword syntax.
5769         Other minor typographical fixes.
5771         * src/roff/groff/groff.man: Fix typos.
5773 2002-05-04  Werner LEMBERG  <wl@gnu.org>
5775         * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
5776         (ShortOpt[]): This to avoid problems with refer.
5778         * doc/pic.ms: Fix typo.
5779         Fix pic grammar description.
5781         * tmac/an-old.tmac (ne): Use de1, not de.
5783 2002-05-03  Werner LEMBERG  <wl@gnu.org>
5785         * doc/groff.texinfo: Finished separation of glyphs and characters.
5786         Don't use the string `Appendix' for appendix headers (both in
5787         the text and the table of contents).
5788         * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
5789         directories.
5791         Use registers LL and LT (similar to -ms) for controlling the
5792         length of title and line, respectively, in the -man and -mdoc
5793         macro packages.
5795         * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
5796         (doc-setup-page-layout): Use \n[LL] and \n[LT].
5797         * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
5798         (TH): Use \n[LL].
5799         (an-header, an-p-footer): Use \n[LT].
5800         * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
5801         doc/groff.texinfo: Document it.
5803 2002-05-02  Werner LEMBERG  <wl@gnu.org>
5805         * doc/fdl.texi: New file.
5806         * doc/groff.texinfo: Include it.
5807         Define and use @copying.
5808         Starting with separating glyph, symbol, and character.
5810 2002-04-27  Werner LEMBERG  <wl@gnu.org>
5812         * Makefile.in (EXEEXT): Set it.
5813         * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
5814         programs.
5816         * src/include/nonposix.h: Define GS_NAME.
5817         * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
5819         Some preliminary changes for EMX support under OS/2.
5821         * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
5822         __EMX__ similar to __MSDOS__.
5823         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
5825 2002-04-25  Werner LEMBERG  <wl@gnu.org>
5827         * doc/groff.texinfo: Integrated groff_out.man.
5828         Some macro fixes.
5830 2002-04-23  Werner LEMBERG  <wl@gnu.org>
5832         * man/groff_out.man: Minor fixes.
5834 2002-04-23  Werner LEMBERG  <wl@gnu.org>
5836         * doc/groff.texinfo: Moving @cindex entries after @Def* to get
5837         correct page references.
5838         Fixed many index entries.
5840 2002-04-23  Bernd Warken  <bwarken@mayn.de>
5842         * man/roff.man: Enlarged.
5844 2002-04-22  Werner LEMBERG  <wl@gnu.org>
5846         * doc/groff.texinfo: More examples, other fixes.
5848 2002-04-20  Werner LEMBERG  <wl@gnu.org>
5850         * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
5851         will now form a chain, e.g.
5853           .pi foo
5854           .pi bar
5856         is now the same as
5858           .pi foo | bar
5860         This is for compatibility with plan 9's troff.
5862         * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
5863         with UNIX troff.
5864         * NEWS: Updated.
5866         * doc/groff.texinfo: Add documentation of remaining requests and
5867         registers.
5869 2002-04-19  Werner LEMBERG  <wl@gnu.org>
5871         * doc/groff.texinfo: Add documentation of remaining escapes.
5873         * font/devdvi/generate/tc.map: Remove entry for `sr'.
5874         * font/devdvi/*TC: Regenerated.
5876 2002-04-18  Werner LEMBERG  <wl@gnu.org>
5878         * src/roff/troff/input.cc (token::next): Make \H behave consistently
5879         if not in compatibility mode, i.e., increment relative to the
5880         previous height.
5881         * doc/groff.texinfo: Updated accordingly.
5883 2002-04-17  Werner LEMBERG  <wl@gnu.org>
5885         * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
5887 2002-04-16  Bernd Warken  <bwarken@mayn.de>
5889         * src/roff/groff/groff.man: Improve documentation of -P option.
5890         Other minor fixes.
5892 2002-04-15  Werner LEMBERG  <wl@gnu.org>
5894         Add new escape \F to switch font family.
5896         * src/roff/troff/input.cc (token::next): Handle \F.
5897         * src/roff/troff/env.cc (environment::set_family): Handle
5898         `interrupted' flag.
5899         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5900         Document it.
5902 2002-04-14  Werner LEMBERG  <wl@gnu.org>
5904         * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
5905         spaces in tags.
5907 2002-04-13  Werner LEMBERG  <wl@gnu.org>
5909         Implement \f[] as an alternative to \fP.  Change \mP and \MP to
5910         \m[] and \M[], respectively.
5912         * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
5913         (symbol::symbol): Handle NULL string and empty string differently.
5914         * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
5915         * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
5916         Add optional parameter.
5917         Updated calling functions.
5918         (get_copy, do_glyph_color, do_fill_color, token::next): Use
5919         `symbol::is_empty'.
5920         * src/roff/troff/env.cc (environment::set_font): Ditto.
5922         * src/preproc/pic/troff.cc (troff_output::set_fill,
5923         troff_output::reset_color: Updated.
5925         * tmac/www.tmac: Updated.
5927         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
5928         doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
5929         Updated.
5931         * tmac/Xps.tmac: Remove some redundant code.
5933         * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
5934         tmac/dvi.tmac, man/roff.man, man/groff_out.man, man/groff.man,
5935         man/groff_diff.man, src/roff/groff/groff.man: Replace \f[P] with
5936         \f[].
5938 2002-04-13  Bernd Warken  <bwarken@mayn.de>
5940         * src/include/printer.h, src/libs/libdriver/printer.cc
5941         (printer::change_fill_color): New member function.
5942         * src/libs/libdriver/input.cc (parse_D_command): Use it.
5944 2002-04-12  Werner LEMBERG  <wl@gnu.org>
5946         * doc/groff.texinfo: Completed pass on gtroff reference.
5948 2002-04-11  Werner LEMBERG  <wl@gnu.org>
5950         * doc/groff.texinfo: More fixes.
5952 2002-04-11  Bernd Warken  <bwarken@mayn.de>
5954         * src/include/color.h: Decorate with `const'.
5955         Use `size_t'.
5956         Include `stddef.h'.
5957         * src/libs/libgroff.color.cc: Decorate with `const'.
5958         Use `size_t'.
5959         (color::color): Initialize members.
5960         * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
5961         command according to the documentation.
5963         * man/groff_out.man: Updated.
5964         Minor fixes.
5966 2002-04-11  Gaius Mulley  <gaius@glam.ac.uk>
5968         * src/preproc/html/pre-html.cc (write_start_image): Remove
5969         redundant output.
5970         * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
5972         * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
5973         \C'hy' caused an assertion failure.
5975         * src/roff/troff/env.cc (environment::environment): Initialize
5976         `emitted_node'.
5977         (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
5979 2002-04-10  Werner LEMBERG  <wl@gnu.org>
5981         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
5982         Document pvs request and .pvs register.
5984 2002-04-09  Werner LEMBERG  <wl@gnu.org>
5986         * doc/groff.texinfo: Improve and fix documentation of diversions
5987         and environments.
5989 2002-04-08  Werner LEMBERG  <wl@gnu.org>
5991         * doc/groff.texinfo: Fix documentation of drawing functions.
5992         Other minor fixes.
5994 2002-04-07  Werner LEMBERG  <wl@gnu.org>
5996         * doc/groff.texinfo: Better documentation of double quotes as
5997         arguments.
5998         Other minor fixes.
6000 2002-04-06  Werner LEMBERG  <wl@gnu.org>
6002         * man/groff_font.man: Document names of special characters better.
6003         * doc/groff.texinfo: Minor improvements.
6005         * tmac/lbp.tmac: Load latin1.tmac.
6006         * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
6008         * font/devX*/*: Regenerated (all chars > 0x80 removed).
6010 2002-04-05  Werner LEMBERG  <wl@gnu.org>
6012         * tmac/tty.tmac: Don't use shc request.
6013         * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
6014         * NEWS: Updated.
6016         * man/groff_diff.man: Minor fixes.
6018         * font/devlbp/*: Remove all `charXXX' entities.
6020         * src/libs/libgroff/font.cc (font::~font): Deallocate
6021         `special_device_coding'.
6022         (font::load): Use `new' for allocating `special_device_coding'.
6023         * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
6024         Removed unused member.
6026 2002-04-05  Werner LEMBERG  <wl@gnu.org>
6028         * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
6029         (resource_manager::do_begin_binary,
6030         resource_manager::do_begin_data): Use it.
6032         * doc/texinfo.tex: Updated to version 4.2.
6034         * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
6035         (token::zero_width_break): New inline function.
6036         * src/roff/troff/input.cc (token::next): Use it.
6037         (token::description): Updated.
6038         (encode_char): Ignore `\%', `\&', `\)', and `\:'.
6039         (token::add_to_node_list, token::process): Use it.
6040         * NEWS, doc/groff.texinfo: Updated.
6042         * src/preproc/eqn/over.cc (over_box::output): Fix typo.
6043         * tmac/tty.tmac: Add missing backslash.
6045 2002-04-04  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
6047         * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
6048         `.ps' register instead of `.s' to handle fractional point sizes.
6049         * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
6050         limit_box::output): Ditto.
6051         * src/preproc/eqn/other.cc (size_box::compute_metrics,
6052         size_box::output): Ditto.
6053         * src/preproc/eqn/over.cc (over_box::compute_metrics,
6054         over_box::output): Ditto.
6055         * src/preproc/eqn/script.cc (script_box::compute_metrics,
6056         script_box::output): Ditto.
6057         * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
6058         sqrt_box::output): Ditto.
6060 2002-04-03  Michael Selway  <mas@ssl.co.uk>
6062         * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
6063         Fix typo.
6065 2002-04-03  Werner LEMBERG  <wl@gnu.org>
6067         * doc/homepage.ms: Reduce title size.
6068         * doc/groff.texinfo: Fix documentation of .t register.
6069         Fix handling of colon.
6070         Fix `\' vs. `\\'.
6072         * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
6073         only if page length is positive to avoid a loop.
6075         * tmac/an-old.tmac (ne): Increase page length to avoid problems with
6076         tbl.
6078 2002-04-02  P. Alejandro Lopez-Valencia  <dradul@yahoo.com>
6080         * src/include/nonposix.h, src/roff/groff/pipeline.c:
6081         s/__CYGWIN32__/__CYGWIN__/.
6083 2002-03-28  Gaius Mulley  <gaius@glam.ac.uk>
6085         * doc/gnu.xpm: New image contributed by Emily Mulley.
6086         * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
6087         (homepage.html): Be dependent on gnu.eps.
6088         * doc/homepage.ms: Updated to new image.
6090         * src/devices/grohtml/post-html.cc (html_printer): New member
6091         `sbuf_prev_hpos'.
6092         (html_printer::flush_sbuf, html_printer::set_char): Set it.
6093         (html_printer::sbuf_continuation): Use it.
6095 2002-03-28  Werner LEMBERG  <wl@gnu.org>
6097         * src/libs/libgroff/getopt.c: Updated to latest version.
6099         * tmac/README: More on hyphen.tex license.
6101 2002-03-26  Larry Kollar  <kollar@alltel.net>
6103         * doc/groff.texinfo: Add documentation of most missing requests.
6105 2002-03-25  Werner LEMBERG  <wl@gnu.org>
6107         Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
6108         of `+-', `mu', and `di', respectively.
6110         * font/devascii/R.proto, font/devutf8/R.proto,
6111         font/devlatin1/R.proto, font/devhtml/R.proto,
6112         font/devcp1047/R.proto, font/devlpb/*: Add them.
6113         * font/devps/generate/textmap: Ditto.
6114         * font/devps/*: Regenerated.
6115         * font/devlj4/generate/text.map: Add them.
6116         * font/devlj4/*: Regenerated.
6117         * font/devdvi/generate/tc.map: Use them.
6118         * font/devdvi/generate/texsy.map: Add them.
6119         * font/devdvi/*: Regenerated.
6120         * font/devX*/*: Regenerated.
6122         * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
6123         tmac/tty-char.tmac: Updated.
6125         * NEWS, man/groff_char.man: Updated.
6127 2002-03-24  Werner LEMBERG  <wl@gnu.org>
6129         * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
6130         tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
6131         * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
6132         we use `.fchar' in dvi.tmac.
6133         * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
6134         * tmac/Xps.tmac: Simplify some char definitions.
6135         Add definition for \[f/].
6136         * man/groff_char.man: Updated for new X.tmac.
6138         * tmac/README: New file.
6140 2002-03-23  Phil Lobbes  <phil@perkpartners.com>
6142         * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
6143         internal .y.o rule took precendence over the .y.cc rule, compiling
6144         the yacc files with gcc instead of g++.
6146 2002-03-23  Werner LEMBERG  <wl@gnu.org>
6148         * tmac/dvi.tmac: Add replacement font for `CB'.
6150         * tmac/doc.tmac: s/request/macro/ in messages.
6151         (doc-generic-macro): Improve error message.
6152         * tmac/groff_mdoc.man: Minor improvements.
6154 2002-03-22  Werner LEMBERG  <wl@gnu.org>
6156         * doc/groff.texinfo: Document possible conflict between `tr' and
6157         `char' requests.
6159 2002-03-21  Werner LEMBERG  <wl@gnu.org>
6161         Improve handling of hyphenation patterns.  It is now possible to
6162         use most of TeX's pattern files unmodified.  To make the process
6163         more flexible, a new request `hpfcode' has been added which
6164         provides a character code mapping for the `hpf' request.  See
6165         comment before hpf_getc() for more details.
6167         * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
6168         functions.
6169         (read_patterns_file): Additional parameter for exception dictionary.
6170         Extended to recognize \pattern, \hyphenation, and \endinput.
6171         (do_hyphenation_patterns_file): Updated.
6172         * src/roff/troff/env.h (hpf_code_table): New extern.
6174         * src/roff/troff/input.cc (hpf_code_table): New array.
6175         (init_hpf_code_table, hyphenation_patterns_file_code): New
6176         functions.
6177         (hyphenation_code): Handle translation from `trin' correctly.
6178         (main, init_input_requests): Updated.
6179         (charinfo::set_translation): Handle hyphenation code also.
6181         * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
6182         inline function.
6184         * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
6185         char' is used for offsets in hyphenation exceptions.
6187         * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
6189         * NEWS, man/groff_diff.man, man/groff.man: Document it.
6191 2002-03-20  Larry Kollar  <kollar@alltel.net>
6193         * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
6194         requests.
6196 2002-03-18  Werner LEMBERG  <wl@gnu.org>
6198         * tmac/html.tmac: Fix serious typo.
6200 2002-03-17  Larry Kollar  <kollar@alltel.net>
6202         * doc/groff.texinfo: Add documentation for `writec' request.
6204 2002-03-17  Werner LEMBERG  <wl@gnu.org>
6206         Added request `hpfa' to append hyphenation patterns.
6208         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
6209         parameter `append'.
6210         (hyphenation_patterns_file): Renamed to...
6211         (do_hyphenation_patterns_file): This.
6212         (hyphenation_patterns_file, hyphenation_patterns_file_append): New
6213         functions.
6214         (init_hyphen_requests): Updated.
6215         * NEWS, man/groff.man, man/groff_diff.man: Document it.
6217 2002-03-16  Werner LEMBERG  <wl@gnu.org>
6219         Added request `writec' in analogy to `tmc'.
6221         * src/roff/troff/input.cc (write_request): Renamed to...
6222         (do_write_request): This.
6223         Added one parameter.
6224         (write_request, write_request_continue): New functions.
6225         (init_input_requests): Updated.
6226         * NEWS, man/groff.man, man/groff_diff.man: Document it.
6228         * font/devdvi/DESC.in (sizes): Allow all sizes in the range
6229         5-10000pt.
6230         * NEWS: Document it.
6232 2002-03-15  Werner LEMBERG  <wl@gnu.org>
6234         * man/groff.man: Add writem request.
6236         Add request `trin' (translate input) to make `.asciify' work
6237         correctly.  This is necessary since `charXXX' entity names are no
6238         longer hardcoded in font definition files.
6240         * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
6241         `translate_input' members.
6242         (charinfo::set_asciify_code, charinfo::get_asciify_code,
6243         charinfo::set_translation_input): New methods.
6244         (charinfo::set_translation): Add third argument.
6245         * src/roff/troff/input.cc (charinfo:set_translation): Set
6246         `asciify_code'.
6247         (do_translate): Add second argument.
6248         (translate_input): New function.
6249         (init_input_requests): Updated.
6250         * src/roff/troff/node.cc (glyph_node::asciify,
6251         composite_node::asciify): Use `get_asciify_code'.
6253         * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
6255         * NEWS, man/groff.man, man/groff_diff.man: Updated.
6257 2002-03-14  Larry Kollar  <kollar@alltel.net>
6259         * doc/groff.texinfo: Improve documentation of .RS and .RE.
6261 2002-03-14  Werner LEMBERG  <wl@gnu.org>
6263         Add a new request `sizes' similar to the `sizes' command in DESC
6264         files.
6266         * src/roff/troff/env.cc (override_sizes): New function.
6267         (init_env_requests): Use it.
6268         * src/roff/troff/token.h: Export `read_string'.
6269         * NEWS, man/groff_diff.man, man/groff.man: Document it.
6271 2002-03-12  Werner LEMBERG  <wl@gnu.org>
6273         * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
6275 2002-03-10  Werner LEMBERG  <wl@gnu.org>
6277         * tmac/pspic.tmac: Add support for -Tdvi.
6278         * tmac/dvi.tmac: Include pspic.tmac.
6279         * src/devices/grodvi/grodvi.man: Document it.
6280         * NEWS: Updated.
6282         * font/devlj4/generate/Makefile: Fix URL of metric files.
6284 2002-03-09  Werner LEMBERG  <wl@gnu.org>
6286         * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
6288 2002-03-09  Larry Kollar  <kollar@alltel.net>
6290         * tmac/groff_ms.man: Add documentation for RS and RE macros.
6292 2002-03-08  Werner LEMBERG  <wl@gnu.org>
6294         * doc/groff.texinfo: Fixes for texinfo 4.1.
6296 2002-03-07  Werner LEMBERG  <wl@gnu.org>
6298         * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
6299         included.
6300         Handle CYGWIN properly.
6302 2002-03-07  Paco Andrés Verdú  <pandres@dragonet.es>
6304         * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
6305         * tmac/lbp.tmac: Add some font translations.
6307 2002-03-02  Werner LEMBERG  <wl@gnu.org>
6309         * font/devcp1047/R.proto, font/devlatin1/R.proto,
6310         font/devhtml/R.proto: Remove `charXXX'  entries.
6311         * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
6312         where appropriate.
6314         * font/devlj4/generate/text.map: Remove `charXXX' entries.
6315         * font/devlj4/*: Regenerated all font definition files.
6316         * tmac/lj4.tmac: Load latin1.tmac.
6318         * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
6319         from 2000-06-17: LJ4 metric files are *not* text files.
6321         * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
6322         register to test for EBCDIC.
6324 2002-03-01  Werner LEMBERG  <wl@gnu.org>
6326         * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
6327         files (as grops already does).
6328         * src/utils/afmtodit/afmtodit.man: Document comment lines in map
6329         files.
6330         * src/devices/grops/grops.man: Document comment lines in encoding
6331         files.
6333         * tmac/cp1047.tmac: New file.
6334         * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
6335         * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
6336         * tmac/Makefile.sub (NORMALFILES): Updated.
6338         * tmac/ec.tmac: Don't load latin1.tmac again.
6340         * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
6341         font/devps/generate/dingbats.map,
6342         font/devps/generate/dingbats.rmap, font/devps/text.enc,
6343         font/devps/generate/Makefile (symbolmap): Add header comment.
6344         * font/devps/generate/textmap: Ditto.
6345         Remove `charXXX' entries.
6346         * font/devps/symbolmap: Regenerated.
6347         * font/devps/*: Regenerated all font definition files.
6349 2002-02-28  Werner LEMBERG  <wl@gnu.org>
6351         Add color support to grodvi (for drawing colors are currently
6352         translated to gray values).
6354         * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
6355         (dvi_printer): Add `cur_color' member.
6356         (dvi_printer::set_color): New function.
6357         (draw_dvi_printer): Remove `fill'.
6358         (draw_dvi_printer::fill_next): Pass environment as parameter.
6359         Update code for new color support translated to gray.
6360         (dvi_printer::set_char): Updated.
6361         (dvi_printer::begin_page, dvi_printer::end_page): Handle color
6362         changes crossing the page border.
6363         (dvi_printer::draw): Updated.
6364         Remove cases `f' and `F'.
6365         * tmac/dvi.tmac: Add color definitions.
6366         * NEWS, src/devices/grodvi/grodvi.man: Updated.
6368         * tmac/an-old.tmac (R): Make this a macro to emit a warning if
6369         used incorrectly.
6371         * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
6372         versions of autoconf.
6373         * configure: Updated.
6375         * doc/homepage.ms: Use `.blm'.
6376         * tmac/www.tmac (www-depth): New auxiliary variable.
6377         (www-pop-level): Don't issue HTML tag.
6378         (ULS, ULE, LI): Use absolute indentation.
6380         * src/devices/grops/ps.cc (ps_printer::begin_page,
6381         ps_printer::end_page): Switch forth and back to default color while
6382         starting a new page.
6384 2002-02-27  Werner LEMBERG  <wl@gnu.org>
6386         Add EC and TC fonts to devdvi.
6388         * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
6389         * font/devdvi/generate/cork.map: Renamed to...
6390         * font/devdvi/generate/ec.map: This.
6391         Remove entry for `aq'.
6392         * font/devdvi/generate/tc.map: New file.
6393         * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
6394         EC and TC fonts.
6395         (FONTS): Updated.
6396         * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
6397         * font/devdvi/Makefile.sub (DEVFILES): Updated.
6398         * tmac/ec.tmac: New file.
6399         * tmac/Makefile.sub (NORMALFILES): Updated.
6400         * NEWS, src/devices/grodvi/grodvi.man: Updated.
6401         * man/groff_char.man: Check `ECFONTS' register.
6403         * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
6405 2002-02-26  Werner LEMBERG  <wl@gnu.org>
6407         * font/devdvi/generate/*.map: Remove all `charXXX' entries.
6408         * font/devdvi/generate/cork.map: Add 'y and 'Y.
6409         * font/devdvi/*: Updated.
6410         * tmac/dvi.tmac: Formatting.
6412         Add font `HBI' for the dvi output.
6413         Add support for font families `T' and `H'.
6415         * font/devdvi/HBI: New file.
6416         * font/devdvi/B: Renamed to ...
6417         * font/devdvi/TB: This.
6418         * font/devdvi/BI: Renamed to ...
6419         * font/devdvi/TBI: This.
6420         * font/devdvi/I: Renamed to ...
6421         * font/devdvi/TI: This.
6422         * font/devdvi/R: Renamed to ...
6423         * font/devdvi/TR: This.
6424         * font/devdvi/H: Renamed to ...
6425         * font/devdvi/HR: This.
6426         * font/devdvi/Makefile.sub (DEVFILES): Updated.
6427         * font/devdvi/generate/Makefile (HBI): New rule.
6428         (FONTS): Updated.
6429         (R, I, B, BI, H): Renamed to ...
6430         (TR, TI, TB, TBI, HR): This, respectively.
6431         (srcdir): Fixed.
6432         * NEWS, src/devices/grodvi/grodvi.man: Updated.
6433         * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
6434         Add `styles' and `family' keywords.
6435         * tmac/dvi.tmac: Alias `H' to `HR'.
6436         Add some fspecial requests for italic fonts.
6437         Add TR and TI as special.
6438         Add support for `_' with font CWI.
6440         * src/roff/troff/number.cc (parse_expr): Add missing `break' for
6441         operator `:'.  Until now, the expression `0:1' would return 2
6442         instead of 1.
6444 2002-02-25  Werner LEMBERG  <wl@gnu.org>
6446         * man/groff_char.man: Added some missing PS glyph names (from the
6447         Adobe Glyph List).
6448         * font/devps/generate/textmap, font/devps/symbolmap: Add
6449         `arrowupdn'.
6451         * doc/groff.texinfo: Minor additions and fixes.
6452         * man/groff_diff.man: Remove documentation of fp request.  This
6453         is already covered in the original troff manual.
6454         Updated to be consistent with other doc files.
6455         * NEWS: Updated.
6457 2002-02-24  Werner LEMBERG  <wl@gnu.org>
6459         * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
6460         TTYDEVDIRS.
6461         Define new variable OTHERDEVDIRS (containing `font/devlj4
6462         font/devlbp' if not EBCDIC).
6463         * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
6464         (OTHERDEVDIRS): New variable.
6465         (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
6466         * configure: Regenerated.
6468         * NEWS, src/devices/grotty/grotty.man: Updated.
6470 2002-02-23  Werner LEMBERG  <wl@gnu.org>
6472         * src/roff/troff/input.cc (do_overstrike, do_bracket,
6473         get_line_arg): Honour input level.
6475         Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
6477         * font/*/*: Implement it in all font files.
6478         * font/devps/generate/textmap, font/devps/generate/symbolchars,
6479         * font/devps/symbolmap: Updated.
6480         * font/devlj4/generate/text.map: Updated.
6481         * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
6482         * font/devdvi/generate/texmi.map: Updated.
6484         * font/devutf8/R.proto: Remove all `charXXX' entries.
6485         * font/devutf8/NOTES: Updated.
6487         * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
6488         version 4.1.0.
6490         * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
6492         * NEWS, man/groff_char.man: Updated.
6494 2002-02-21  Phil Lobbes  <phil@perkpartners.com>
6496         * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
6498 2002-02-20  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
6500         * src/roff/grog/grog.pl: Fix computation of $refer.
6502 2002-02-19  Werner LEMBERG  <wl@gnu.org>
6504         * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
6505         `snprintf' and `vsnprintf'.
6507         * src/include/htmlindicate.h: Renamed to...
6508         * src/include/htmlhint.h: This.
6509         * src/include/Makefile.sub: Updated.
6510         * src/preproc/eqn/main.cc: Updated.
6512 2002-02-18  Werner LEMBERG  <wl@gnu.org>
6514         * man/roff.man, man/groff_out.man, man/groff.man,
6515         man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
6516         src/roff/troff/troff.man: Updated to latest changes in www.tmac.
6518         * win32-diffs: Updated.
6520 2002-02-17  Werner LEMBERG  <wl@gnu.org>
6522         * doc/Makefile (clean): Add *.eps.
6523         (MEMACROS): Removed.
6524         (TFLAG): New variable.
6525         (TROFF): Use it.
6526         Add -ww.
6527         (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
6528         (.me.dit): Fixed.
6529         (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
6531         * tmac/www.tmac: Use dummy diversion while resetting and disabling
6532         `.tl'.
6533         * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
6534         unstripped.
6535         * src/roff/troff/troff.man: Fix order of parameter description.
6537         * NEWS: Updated.
6539 2002-02-16  Gaius Mulley  <gaius@glam.ac.uk>
6541         Simplify image handling for grohtml.
6542         Fix <p> bug.
6544         * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
6545         comment out.
6546         (html_text::dump_stack): Don't emit newline while debugging.
6547         (html_text::do_push) [DEBUGGING]: Print more info.
6548         (html_text::check_emit_text): Fix handling of <p>.
6549         * src/devices/grohtml/html.h: Updated.
6550         * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
6551         replacing `fputc', `fputs', `putc'.  If DEBUGGING is defined, they
6552         send its data to stderr also.
6553         Update all callers.
6554         (simple_output::space_or_newline) [DEBUGGING]: Removed.
6555         * src/devices/grohtml/post-html.cc (html_printer::do_links,
6556         html_printer::html_printer): Remove `DEBUGGING' conditionals.
6558         * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
6559         Removed.
6560         * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
6561         is_inline_image): Removed.
6562         (html_begin_suppress, html_end_suppress): Don't take a parameter.
6563         (graphic_start, graphic_end): Removed.
6564         * src/include/htmlindicate.h: Updated.
6565         * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
6566         (macroset_template): New global variable.
6567         (makeFileName): Use `macroset_template'.
6568         (write_end_image): Don't take a parameter.
6569         Don't emit newline.
6570         (write_start_image: Don't emit newline.
6571         (char_buffer::write_upto_newline): Updated.
6572         (char_buffer::skip_to_newline): Renamed to ...
6573         (char_buffer::skip_until_newline): This.
6574         Fix code.
6575         (char_buffer::write_file_troff, char_buffer::write_file_html):
6576         Simplified.
6577         (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
6578         (removeAllPages): Remove `DEBUGGING' conditionals.
6579         (addRegDef, dump_args): New functions.
6580         (char_buffer::do_html, char_buffer::do_image): Handle
6581         `www-image-template' command line variable.
6582         Add more debugging code.
6583         (addps4html): Removed.
6584         (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
6586         * src/preproc/eqn/main.cc: Include `ctype.h'.
6587         (suppress_html): Removed.
6588         (do_file): Updated.
6589         (inline_equation): Use `html_begin_suppress' and
6590         `html_end_suppress'.
6591         * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
6592         (troff_output::start_picture, troff_output::finish_picture):
6593         Updated.
6594         * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
6595         (process_input_file): Updated.
6597         * src/roff/troff/div.cc (page_number): Set page number only if the
6598         `ps4html' register isn't defined.
6599         * src/roff/troff/input.cc (image_no): New external variable.
6600         (do_suppress): Use it.
6601         * src/roff/troff/node.h (suppress_node::image_id): New member.
6602         * src/roff/troff/node.cc (image_no): Remove `static' keyword.
6603         (suppress_node::suppress_node): Initialize `image_id' member.
6604         (suppress_node::same): Handle `image_id' also.
6605         (suppress_node::copy): Updated.
6606         (last_image_id): New global variable.
6607         (suppress_node::tprint): Use it.
6609         * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
6610         HTML-IMAGE-END.
6611         * tmac/pspic.mac (PSPIC): Fix html support.
6612         * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
6613         * tmac/www.tmac (www-image-template): Set up.
6614         (HTMLINDEX): Renamed to...
6615         (HX): This.
6616         (BODYCOLOR): Renamed to...
6617         (BCL): This.
6618         (BACKGROUND): Renamed to...
6619         (BGIMG): This.
6620         (URL): Change order of parameters for consistency.
6621         (MAILTO): Renamed to...
6622         (MTO): This.
6623         (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
6624         (IMG, PIMG, MPIMG): This.
6625         (HTML-H-BEGIN, HTML-H-END): Renamed to...
6626         (HnS, HnE): This.
6627         (LINKS): Renamed to...
6628         (LK): This.
6629         (LINE): Renamed to...
6630         (HR): This.
6631         (NO-AUTO-RULE): Renamed to...
6632         (NHR): This.
6633         (HTML-TL): Renamed to...
6634         (HTL): This.
6635         (UL-BEGIN, UL-END): Renamed to...
6636         (ULS, ULE): This.
6637         (DROPCAP): Renamed to...
6638         (DC): This.
6639         (TS, TE, EQ, EN): Provide default definitions.
6640         (www-make-unique-name): Updated.
6641         (HTML-IMAGE-INLINE): Fix typo.
6642         * tmac/groff_www.man: Updated.
6644         * doc/Makefile (homepage.html): Add option -r to grohtml.
6645         Use shortened image name.
6646         * doc/groff.texinfo: Updated info on grohtml strings and macros.
6647         * doc/homepage.ms: Updated and extended.
6649 2002-02-14  Werner LEMBERG  <wl@gnu.org>
6651         Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
6653         * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
6654         SGR_BACK_DEFAULT_COLOR): Replaced with ...
6655         (tty_printer::put_color): Use it.
6656         (ttr_printer::end_page): Simplify.
6658 2002-02-13  Werner LEMBERG  <wl@gnu.org>
6660         * tmac/groff_tmac.man: Moved to...
6661         * man/groff_tmac.man: This place.
6662         * tmac/Makefile.sub, man/Makefile.sub: Updated.
6664 2002-02-12  Werner LEMBERG  <wl@gnu.org>
6666         * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
6667         $(COMPILE.c) to not include groff's assert.h.
6669         * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
6670         variable.
6671         * NEWS, src/drivers/grotty/grotty.man: Document it.
6673 2002-02-11  Werner LEMBERG  <wl@gnu.org>
6675         * src/libs/snprintf/snprintf.c: Updated to latest version
6676         (2002-02-11).
6678         * src/roff/grog/grog.pl (process): Fix handling of `.['.  We now
6679         test whether there is `.]' also.
6680         Don't check for spaces after `.['.
6681         * src/roff/grog/grog.sh: Do the same.
6683 2002-02-10  Werner LEMBERG  <wl@gnu.org>
6685         Illegal -> Invalid.
6687         * src/libs/libgroff/illegal.cc: Renamed to ...
6688         * src/libs/libgroff/invalid.cc: This.
6689         (illegal_char_table): Renamed to ...
6690         (invalid_char_table): This.
6691         * src/libs/libgroff/Makefile.sub: Updated.
6692         * win32-diffs: Updated.
6694         * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
6695         src/libs/libdriver/input.cc (fatal_command, parse_color_command,
6696         parse_x_command), src/libs/libgroff/font.cc (text_file::next,
6697         font::load), src/preproc/eqn/main.cc (read_line, main),
6698         src/preproc/eqn/lex.cc (file_input::read_line),
6699         src/preproc/pic/lex.cc (file_input::read_line,
6700         simple_file_input::get, simple_file_input::peek),
6701         src/preproc/pic/main.cc (top_input::get, top_input::peek),
6702         src/preproc/pic/pic.man, src/preproc/refer/main.cc
6703         (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
6704         do_bib), src/preproc/tbl/main.cc (table_input::get),
6705         src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
6706         src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
6707         do_zero_width, read_request, encode_char, ps_get_line,
6708         transparent_file, get_char_for_escape_name, transparent_translate,
6709         asciify, input_char_description, read_string, set_string),
6710         src/roff/troff/env.cc (environment::add_html_tag),
6711         src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
6713         * src/include/lib.h: Updated.
6715         * src/preproc/eqn/eqn.cc: Removed.
6717         * NEWS: Updated.
6719         * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
6721 2002-02-09  Werner LEMBERG  <wl@gnu.org>
6723         * doc/gnu.xpm: New image.
6724         * doc/Makefile (DOCS): Add homepage.ps.
6725         Add rules for converting xpm->png and xpm->eps.
6726         Use `gnu.{xpm,eps}' as image names.
6727         * doc/homepage.ms: Updated.
6729 2002-02-09  Gaius Mulley  <gaius@glam.ac.uk>
6731         * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
6732         (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
6733         Remove calls to `B1' and `B2'
6734         (PNG-IMAGE): New macro for inclusion of images in PNG format.
6735         (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
6736         auxiliary variables for MARGIN-PNG-IMAGE.
6737         (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
6738         auxiliary macros for MARGIN-PNG-IMAGE.
6739         (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
6740         the margin.
6741         (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
6742         (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
6743         (DROPCAP): New macro to produce dropcap characters.
6744         (www-do-image): Renamed back to...
6745         (HTML-DO-IMAGE): This.
6746         Updated all callers.
6748         * doc/Makefile (gnubw.eps): Updated.
6749         * doc/homepage.ms: Updated.
6751 2002-02-08  Werner LEMBERG  <wl@gnu.org>
6753         * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
6754         Added `linethick' to table in section `Style Variables'.
6756 2002-02-08  Gaius Mulley  <gaius@glam.ac.uk>
6758         * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
6760 2002-02-07  Werner LEMBERG  <wl@gnu.org>
6762         Adding options -C (compatibility mode) and -c (grotty's old output
6763         scheme) to nroff.
6765         * src/roff/nroff/nroff.sh: Implement it.
6766         Remove `-Wall'.
6767         * NEWS, src/roff/nroff/nroff.man: Updated.
6769         * PROBLEMS: Document bison 1.32 bug.
6771         Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
6773         * src/roff/troff/node.cc (make_tfont): Define it earlier.
6774         * src/roff/troff/div.h: Add prototype for `end_diversions'.
6775         * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
6776         * src/roff/troff/env.h: Add prototype for `title'.
6778         Adding EBCDIC support to grotty.
6780         * src/devices/grotty/tty.cc (CSI): New macro.
6781         (SGR_*, tty_printer::put_color): Use it.
6783 2002-02-06  Werner LEMBERG  <wl@gnu.org>
6785         Implementing color support in grotty.  The new switch -c activates
6786         the old drawing scheme, disabling color at the same time.  The new
6787         switch `-i' selects italic instead of underlining (SGR only).
6789         * src/devices/grotty/tty.cc (putstring): New define instead of
6790         `fputs'.  Updated all callers.
6791         (old_drawing_scheme): New global variable.
6792         (COLOR_CHANGE): New enum value.
6793         (SGR_*): New defines containing color handling escape sequences.
6794         (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
6795         (glyph): New members `back_color_idx' and `fore_color_idx'.
6796         (glyph::order): Add COLOR_CHANGE.
6797         (tty_printer): New members `cur_fore_idx', `curr_back_idx',
6798         `is_underline', `is_bold', `cu_flag', `tty_colors'.
6799         New methods `make_underline', `make_bold', `color_to_idx',
6800         `change_color', `put_color'.
6801         (cu_flag): Moved into `tty_printer' class.
6802         (tty_printer::tty_printer): Initialize colors.
6803         (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
6804         tty_printer::draw, tty_printer::end_page): Handle colors also.
6805         (main): Add options `-c' and `-i'.
6806         (usage): Updated.
6807         * NEWS, src/devices/grotty/grotty.man: Updated.
6809         * src/include/errarg.h (errarg): Add support for `unsigned int'.
6810         * src/libs/libgroff/errarg.c: Implement it.
6812         * src/include/printer.h (printer): Add `change_color' method
6813         (currently used by grotty only).
6814         * src/libs/libdriver/printer.cc: Implement it.
6815         * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
6816         call to `pr->change_color'.
6818         * src/roff/troff/node.cc (troff_output_file::fill_color,
6819         troff_output_file::glyph_color): Call `do_motion'.
6821         * tmac/tty.tmac: Add color definitions.
6823         * src/roff/groff/groff.man: Minor fixes.
6825 2002-02-05  Bernd Warken  <bwarken@mayn.de>
6827         * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
6828         it.  This is a preparation for future changes.
6830 2002-02-05  Werner LEMBERG  <wl@gnu.org>
6832         * src/roff/troff/input.cc (process_input_stack): Fix the case
6833         where leading spaces are followed by \f or \s; previously, an
6834         incorrect space width has been used.
6836         * doc/roff.man (quoted_char): Fix argument.
6837         (comment): Define string.
6839 2002-02-04  Larry Kollar  <kollar@alltel.net>
6841         * doc/groff.texinfo: More fixes.
6843 2002-02-04  Werner LEMBERG  <wl@gnu.org>
6845         * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
6846         * src/preproc/eqn/main.cc (do_file, inline_equation): Call
6847         `restore_compatibility' before `output_string' -- the LINE_STRING
6848         register now already contains proper switches from and to
6849         compatibility mode.
6851         * man/groff_char.man: Add Euro symbol.
6852         * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
6853         * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
6854         * doc/groff.texinfo (Defstr*): Print strings with full syntax.
6855         Other minor fixes.
6857         * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
6858         texinfo->pdf.
6859         (.texinfo.html): Add support for texinfo->html.
6861 2002-02-03  Werner LEMBERG  <wl@gnu.org>
6863         Added three new requests `ds1', `as1', and `ami'.  The former two
6864         are equivalent to `ds' and `as' with the difference that
6865         compatibility mode is saved on entry, switched off during string
6866         expansion, and restored on exit.  The latter is the pendant to `dei'
6867         for `am'.
6869         (do_define_string): Use `define_mode' and `calling mode'.
6870         Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
6871         end of string, respectively.
6872         (define_string, append_string): Use `calling_mode'.
6873         (define_nocomp_string, append_nocomp_string,
6874         define_string_indirect): New functions.
6875         (init_input_requests): Updated.
6876         * NEWS, man/groff_diff.man, man/groff.man: Document it.
6878         * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
6879         `as1' for assigning LINE_STRING (this is `10' usually).  Sun's
6880         mm macro package accesses this string register directly.
6881         * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
6883         * tmac/trace.tmac: Trace calls to `am' also.  Make it work in
6884         compatibility mode.
6886 2002-02-02  Larry Kollar  <kollar@alltel.net>
6888         * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
6890 2002-01-31  Werner LEMBERG  <wl@gnu.org>
6892         * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
6894 2002-01-31  Bernd Warken  <bwarken@mayn.de>
6896         * src/devices/grolbp/lbp.cc (main): Delete `pr'.
6897         * man/groff_out.man: Revised and updated.
6899 2002-01-30  Bernd Warken  <bwarken@mayn.de>
6901         * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
6902         out the unused `{' and `}' commands.  Undefined by default.
6903         (IntArray): Make `data' private.
6904         (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
6905         new methods instead.
6906         (skip_line_D, skip_to_end_of_line): New functions.
6907         (get_D_fixed_args): Use `skip_line_D'.
6908         Changed to handle dummy odd arguments by ...
6909         (get_D_fixed_args_odd_dummy): This new function.
6910         (get_D_variable_args): Split some code into ...
6911         (get_possibly_integer_args): This new function.
6912         (send_draw): Use more `const'.
6913         (delete_current_env): New function.
6914         (position_to_end_of_args): Use `size_t'.
6915         Updated.
6916         (send_draw): Updated.
6917         (parse_D_command): Handle `c', `C', and `t' better.
6918         Updated.
6919         (do_file): Updated.
6921 2002-01-29  Werner LEMBERG  <wl@gnu.org>
6923         * NEWS: Revised.
6924         * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
6925         @Def...ListEnd which replaces @Def...x.  This is necessary to get
6926         proper HTML output -- see the comment in the file for more
6927         information.
6928         Updated all calls.
6930 2002-01-29  Gaius Mulley  <gaius@glam.ac.uk>
6932         Fixes to make color changes of 2002-01-21 work with grohtml.
6934         * src/devices/grohtml/post-html.cc (style): Updated.
6935         (html_printer): Remove unused methods.
6936         (html_printer::do_font, html_printer::draw, html_printer::set_char,
6937         html_printer::special): Updated.
6938         * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
6939         html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
6940         Added some debugging code.
6941         (html_text::start_tag): Updated.
6942         (html_text::do_push): New method.
6943         (html_text::push_para): Call it.
6944         Add method for handling color.
6945         (html_text::do_color): Updated.
6946         (html_text::shutdown): Handle color.
6947         * src/devices/grohtml/html-text.h (tag_definition): New member
6948         `col'.
6949         Updated.
6951 2002-01-28  Werner LEMBERG  <wl@gnu.org>
6953         * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
6955 2002-01-27  Gaius Mulley  <gaius@glam.ac.uk>
6957         Add two switches -a and -g to control the antialiasing bits for
6958         text and graphics, respectively.
6960         * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
6961         `-g'.
6962         * src/devices/grohtml/grohtml.man: Document them.
6963         * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
6964         New macros.
6965         (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
6966         (setupAntiAlias): New function.
6967         (createAllPages): Updated.
6968         (scanArguments): Handle `-a' and `-g'.
6969         (main): Call `setupAntiAlias'.
6970         * NEWS: Updated.
6972 2002-01-27  Werner LEMBERG  <wl@gnu.org>
6974         * doc/groff.texinfo (Def*): Call index function after deffn.
6976         * tmac/html.tmac: Call `nroff' request.
6978 2002-01-26  Larry Kollar  <kollar@alltel.net>
6980         * tmac/groff_ms.man: Add some omissions.
6982 2002-01-25  Larry Kollar  <kollar@alltel.net>
6984         * tmac/groff_ms.man: Typographical improvements.
6986 2002-01-25  Werner LEMBERG  <wl@gnu.org>
6988         * doc/groff.texinfo: Updated version and copyright.
6989         * src/devices/grops/grops.man: Updated.
6991         * tmac/groff_tmac.man: Fix `ig' macro.
6993         * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
6994         nroff mode.
6995         Use `.ne' unconditionally everywhere.
6996         (TS): Only insert some vertical space.  Doing a page break is no
6997         longer necessary due to the redefinition of the `ne' request.
6999         * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
7000         warning for unknown subcommands but parse and pass them to the
7001         device driver.
7003 2002-01-24  Werner LEMBERG  <wl@gnu.org>
7005         * tmac/groff_www.man, NEWS: Fix typos.
7007 2002-01-21  Werner LEMBERG  <wl@gnu.org>
7009         Complete revision of color support:
7011           Adapt programs to the new libdriver/input.cc.
7013           Color spaces are no longer converted to RGB but transferred as-is
7014           in the troff intermediate output format.
7016           Handle default color gracefully.  troff now supports a `default'
7017           color (which can't be changed).
7019           grops will now use the proper color space functions if available.
7021           Update pic.
7023         Note that currently grohtml doesn't handle colors properly.  This
7024         has to be fixed.
7026         * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
7027         (ui_to_a): New function.
7028         * src/include/lib.h: Updated.
7030         * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
7031         (color): Simplified; removed all `double' members and methods.
7032         A new array `components' now holds the color parameters.
7033         (color::is_default, color::get_components): New methods.
7034         (color::operator==, color:operator!=): New.
7035         (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
7036         to make access to the `components' array more comprehensible.
7037         * src/libs/libgroff/color.cc: Implement new color support.
7038         (atoh): Small fixes.
7039         (color::read_encoding): Simplified for new troff intermediate color
7040         output format.
7041         (default_color): New global variable.
7043         * src/roff/troff/input.cc (default_symbol): New global variable.
7044         (lookup_color): Use it.
7045         (default_black): Removed.
7046         (do_glyph_color, do_fill_color): Simplified.
7047         (define_color): Handle default color.
7048         Improve warnings.
7049         (do_if_request): Handle default color.
7050         * src/roff/troff/env.cc (environment::environment): Initialize
7051         colors with `default_color'.
7052         * src/roff/troff/node.cc (troff_output_file::put): Add method
7053         for `unsigned int'.
7054         (troff_output_file::hex): Removed.
7055         (troff_output_file::fill_color, troff_output_file::glyph_color):
7056         Updated to include/color.h and libdriver/input.cc.
7058         * src/preproc/pic/object.cc (draw_arrow): New parameter to set
7059         fill color properly (identically to the outline color).  \D'f...'
7060         doesn't work any more.
7061         All function calls to it updated.
7063         * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
7064         Updated.
7065         * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
7066         Updated.
7068         * src/devices/grops/ps.cc (ps_output::put_color): New method.
7069         (ps_printer::sbuf_color): Make a real member instead of pointer.
7070         (ps_printer::fill_color, ps_printer::output_color): Removed.
7071         (ps_printer::ps_printer): Updated.
7072         (ps_printer::set_char): Ditto.
7073         (ps_printer::set_color): Use various color schemes.
7074         Use `put_color' method.
7075         (ps_printer::flush_sbuf): Don't set color.
7076         (ps_printer::fill_path): Take `environment' as parameter.
7077         Simplify color handling.
7078         (ps_printer::set_line_thickness): Renamed to ...
7079         (ps_printer::set_line_thickness_and_color): This (and updated).
7080         (ps_printer::set_color): Change second parameter from `complete'
7081         to `fill' which better describes what it does.
7082         (ps_printer::draw): Call `flush_sbuf' to output graphic commands
7083         and text in the right order.
7084         Updated.
7085         Remove branches for `f' and `F'; this is handled by
7086         libdriver/input.cc.
7087         * src/devices/grops/ps.h: Updated.
7088         * font/devps/prologue (FL): Redefined.
7089         ({F,C}r,k,g: New color functions (with and without filling).
7091         * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
7092         * man/groff_diff.man, man/groff.man, man/groff_out.man,
7093         doc/groff.texinfo, NEWS: Updated.
7095 2002-01-20  Bernd Warken  <bwarken@mayn.de>
7097         * src/libs/libdriver/input.cc: Completely rewritten.  See comments
7098         in this file for what has been changed.
7100 2002-01-19  Werner LEMBERG  <wl@gnu.org>
7102         * test-groff: Fix GROFF_FONT_PATH.
7103         * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
7104         is read before .TH or .Dd is parsed.
7106 2002-01-18  Gaius Mulley  <gaius@glam.ac.uk>
7108         * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
7109         quadrant boundaries.
7111 2002-01-18  Werner LEMBERG  <wl@gnu.org>
7113         * devices/grops/ps.cc: Aargh!  Fix the fix of the incorrectly
7114         applied last patch.
7116 2002-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
7118         * tmac/doc.common: Initialize %I register for the %I macro to
7119         avoid (harmless) warning.
7120         * tmac/doc.tmac (Bd): There is no reason to enforce -compact
7121         when in the SYNOPSIS section.
7123 2002-01-17  Bruno Haible  <haible@clisp.cons.org>
7125         * src/preproc/pic/lex.cc (get_token): Fix typo.
7127 2002-01-17  Werner LEMBERG  <wl@gnu.org>
7129         * devices/grops/ps.cc: Fix incorrectly applied last patch.
7131 2002-01-17  Larry Kollar  <kollar@alltel.net>
7133         * tmac/groff_ms.man: Completely rewritten.
7135 2002-01-16  Werner LEMBERG  <wl@gnu.org>
7137         * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
7139 2002-01-15  Gaius Mulley  <gaius@glam.ac.uk>
7141         * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
7142         fill colors.
7143         (ps_printer::draw): Ditto.
7145 2002-01-14  Ruslan Ermilov  <ru@FreeBSD.org>
7147         * tmac/groff_mdoc.man: Minor fixes.
7149 2002-01-13  Werner LEMBERG  <wl@gnu.org>
7151         * man/groff_out.man: Some fixes.
7153 2002-01-13  Gaius Mulley  <gaius@glam.ac.uk>
7155         * doc/pic.ms: Fix typos.
7157 2002-01-12  Werner LEMBERG  <wl@gnu.org>
7159         * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
7161 2002-01-10  Werner LEMBERG  <wl@gnu.org>
7163         * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
7164         symbols.
7165         * NEWS: Updated.
7167 2002-01-09  Bernd Warken  <bwarken@mayn.de>
7169         * man/groff_out.man: Revised.
7170         * man/roff.man: Minor fixes.
7171         * src/roff/troff/troff.man: Some reordering.
7173 2002-01-09  Werner LEMBERG  <wl@gnu.org>
7175         * tmac/an-old.tmac: Add dummy macros for equation support.
7177 2002-01-07  Werner LEMBERG  <wl@gnu.org>
7179         doc/groff.texinfo: Fix documentation of glyph searching algorithm.
7181         * tmac/an-old.tmac: Revert change 2001-12-23.  This breaks too many
7182         man pages.
7183         * tmac/groff_man.man: Small improvements.
7185 2002-01-07  Bernd Warken  <bwarken@mayn.de>
7187         * man/groff_diff.man: Revised.
7189 2002-01-06  Werner LEMBERG  <wl@gnu.org>
7191         * tmac/www.tmac: Remove extraneous backslash.
7193 2002-01-06  Bernd Warken  <bwarken@mayn.de>
7195         * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
7197 2002-01-05  Werner LEMBERG  <wl@gnu.org>
7199         Integrated groffer, contributed by Bernd Warken.
7201         * contrib/groffer/*: New.       
7202         * Makefile.in, NEWS: Updated.
7204 2002-01-04  Werner LEMBERG  <wl@gnu.org>
7206         * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
7207         registers defined in macro packages.
7208         Revising the ms part.
7210 2002-01-04  Larry Kollar  <kollar@alltel.net>
7212         * doc/groff.texinfo: Add documentation for ms macros.
7214 2002-01-02  Werner LEMBERG  <wl@gnu.org>
7216         First step in adding PS support for the Euro symbol.  `eu' is the
7217         official Euro logo, `Eu' is a font-specific glyph variant.
7219         * font/devps/text.enc: Add `Euro' at position 9.
7220         * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
7221         * font/devps/symbolmap: Regenerated.
7223         * NEWS: Updated.
7225 2002-01-02  Bernd Warken  <bwarken@mayn.de>
7227         * man/roff.man: Revised.
7229 2002-01-01  Bernd Warken  <bwarken@mayn.de>
7231         * src/roff/groff/groff.man: Completely rewritten.
7233 2001-12-31  Werner LEMBERG  <wl@gnu.org>
7235         * doc/Makefile: Updated.
7237 2001-12-30  Werner LEMBERG  <wl@gnu.org>
7239         * tmac/www.tmac: Make all names of internal macros/registers/strings
7240         lowercase, and prepend `www-'.
7241         Other minor changes.
7242         * src/roff/troff/troff.man: Add preprocessor string at BOF.
7244 2001-12-30  Gaius Mulley  <gaius@glam.ac.uk>
7246         Implement option `-b' in grohtml to set the HTML background colour.
7248         * src/devices/grohtml/post-html.cc (default_background): New global
7249         variable.
7250         (html_printer::html_printer): Initialize `background' to
7251         `default_background'.
7252         (main): Implement option `-b'.
7253         (usage): Updated.
7254         * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
7255         of `-b' option.
7256         * src/devices/grohtml/grohtml.man: Updated.
7257         * doc/Makefile (.ms.html): Use `-b'.
7258         * tmac/html.tmac: Don't set background color.
7260         Add new grohtml tag `.html-tl'.
7262         * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
7263         member variable.
7264         (title_desc::title_desc): Updated.
7265         (html_printer::troff_tag): Handle `.html-tl'.
7266         (html_printer::write_title): Use `with_h1'.
7267         * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
7268         (HTML-TL): New macro.
7270         Add support for unordered lists in HTML.
7272         * tmac/www.tmac (www-level): New auxiliary register.
7273         (www-level1, www-level2, www-level3): New auxiliary strings.
7274         (www-push-level, www-pop-level): New auxiliary macros
7275         (UL-BEGIN, UL-END, LI): User macros for unordered lists.
7277         Miscellaneous.
7279         * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
7280         (DEFAULT_VERTICAL_OFFSET): Removed.
7281         (IMAGE_BOARDER_PIXELS): Set to 0.
7282         (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
7283         (vertical_offset): Initialize with 0.
7284         (gsPaper): New global variable.
7285         (get_resolution): Scan for and return unsigned int.
7286         (get_papersize): New function to get paper length from devps/DESC.
7287         (determine_vertical_offset): New function.
7288         (createAllPages): Produce gray-level images and use proper page
7289         length.
7290         (createImage): Use `-quiet' option of pnmcrop.
7291         (addZ): Fix passing of `-Z'.
7292         (scanArguments): Fix handling of `-o'.
7293         (main): Call `determine_vertical_offset'.
7294         * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
7295         code for `l'.
7297         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
7298         * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
7299         glyph descenders properly.
7301         * doc/homepage.ms: Include `gnubw.eps'.
7302         * doc/Makefile (gnubw.eps): New rule.
7303         (homepage.html): Depend on `gnubw.eps'.
7305 2001-12-25  Werner LEMBERG  <wl@gnu.org>
7307         * src/roff/troff/input.cc (default_black): Fix return value.
7309 2001-12-24  Ruslan Ermilov  <ru@FreeBSD.org>
7311         * tmac/doc-common (Dt): Change output of architecture strings.
7312         Do some syntax cleanup.
7313         * tmac/groff_mdoc.man: Updated.
7315 2001-12-23  Werner LEMBERG  <wl@gnu.org>
7317         Adding an `itc' request (input line trap accepting \c).
7319         * src/roff/troff/env.h (environment): New member
7320         `continued_input_trap'.
7321         Make `do_input_trap' a friend function instead of `input_trap'.
7322         * src/roff/troff/env.cc (environment::environment,
7323         environment::copy): Updated.
7324         (environment::newline): Implement it.
7325         (do_input_trap): New function.
7326         (input_trap): Call `do_input_trap'.
7327         (input_trap_continued): New function.
7328         (init_env_requests): Updated.
7329         * src/roff/troff/TODO: Updated.
7331         * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
7332         `.it'.
7334         * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
7336 2001-12-22  Ruslan Ermilov  <ru@FreeBSD.org>
7338         * tmac/doc-common, tmac/doc-syms: Small updates.
7340 2001-12-22  Colin Watson  <cjwatson@debian.org>
7342         * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
7344 2001-12-22  Bernd Warken  <bwarken@mayn.de>
7346         * MANIFEST: New file.
7348 2001-12-22  Werner LEMBERG  <wl@gnu.org>
7350         * src/preproc/grn/grn.man: Updated.
7352 2001-12-22  Solar Designer  <solar@openwall.com>
7354         * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
7355         (DBRead): Use it.
7357 2001-12-19  Werner LEMBERG  <wl@gnu.org>
7359         Implement a fallback character request `.fchar'.
7361         * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
7362         (is_fallback): New inline function.
7363         * src/roff/troff/input.cc (do_define_character): New function.
7364         (define_character): Call `do_define_character'.
7365         (define_fallback_character): New function.
7366         (init_input_requests): Add `fchar'.
7367         (charinfo::charinfo): Updated.
7368         (charinfo::set_macro): New argument to set `fallback' flag.
7369         * src/roff/troff/node.cc (make_glyph_node, make_node,
7370         node::add_char): Check `fallback' flag.
7371         * NEWS, man/groff_diff.man, man/groff_man: Updated.
7373 2001-12-16  Werner LEMBERG  <wl@gnu.org>
7375         * groff.texinfo: Document exact search algorithm for glyphs.
7377 2001-12-15  Werner LEMBERG  <wl@gnu.org>
7379         * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
7380         the left side of $(MANPAGES) rule to make it always non-empty.
7382 2001-12-14  Werner LEMBERG  <wl@gnu.org>
7384         * src/roff/troff/input.cc (default_black): Define default color
7385         `black' if not yet defined.
7387 2001-12-13  Werner LEMBERG  <wl@gnu.org>
7389         Implement new string-valued register `.fn' to return the current
7390         real (internal) font name.
7392         * env.cc (environment::get_font_name_string): New function.
7393         (init_env_requests): Add `.fn' register.
7394         * env.h (environment): Updated.
7395         * node.cc (font_info): Make `get_font_name' a friend.
7396         (get_font_name): New function.
7397         * node.h: Updated.
7399         * man/groff_diff.man, man/groff.man, NEWS: Updated.
7401 2001-12-12  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
7403         * src/preproc/eqn/main.cc (inline_equation): Fix typos.
7405 2001-12-12  Werner LEMBERG  <wl@gnu.org>
7407         * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
7409 2001-12-10  Gaius Mulley  <gaius@glam.ac.uk>
7411         * man/groff_diff.man: Adding documentation for \O.
7413 2001-12-10  Werner LEMBERG  <wl@gnu.org>
7415         * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
7416         (scanArguments): Use PROG_PREFIX for the name of the troff binary.
7418 2001-12-09  Werner LEMBERG  <wl@gnu.org>
7420         * man/roff.man: Revised.
7421         * src/roff/groff/groff.man: Replace man page references with a
7422         pointer to roff.man.
7424 2001-12-09  Bernd Warken  <bwarken@mayn.de>
7426         * man/roff.man: Completely rewritten.
7428 2001-12-06  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
7430         * src/preproc/eqn/main.cc (inline_equation): Improve error message.
7432 2001-12-05  Werner LEMBERG  <wl@gnu.org>
7434         * src/roff/troff/input.cc (get_delim_file_name): Removed since no
7435         longer used.
7436         * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
7437         order of initializers.
7438         * NEWS: Updated.
7440 2001-12-05  Gaius Mulley  <gaius@glam.ac.uk>
7442         * doc/groff.texinfo: Fix documentation of \O.
7444         * src/devices/grohtml/html-text.cc (html_text::do_indent,
7445         html_text::do_table, html_text::do_emittext, html_text::do_para):
7446         Use `const' for first argument.
7447         (html_text::do_table): Use cast.
7448         * src/devices/grohtml/html-text.h: Updated.
7449         * src/devices/grohtml/output.cc (simple_output::put_string): Add
7450         method for `const string &s'.
7451         * src/devices/grohtml/html.h: Updated.
7452         * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
7453         (ANCHOR_TEMPLATE): Modified.
7454         (manufacture_headings): New global variable to handle `-h' option.
7455         (is_subsection): Removed.
7456         (char_buffer::add_string): Add `const' to first argument.
7457         Protect against invalid string argument.
7458         Add method for `const string &s'.
7459         (text_glob): Completely redesigned.
7460         (page): Use `const' for strings and remove string length variable.
7461         (page::add_html): Removed.
7462         (page::add_end_encode): New member function.
7463         (to_unicode): Moved upwards.
7464         (title_desc, header_desc): Updated.
7465         (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
7466         definition.
7467         (html_printer::is_bold, html_printer::make_bold): New member
7468         functions.
7469         (html_printer::end_of_line): Updated.
7470         (generate_img_src, html_printer::do_auto_image,
7471         html_printer::do_title, html_printer::write_header,
7472         html_printer::determine_header_level, html_printer::do_heading,
7473         html_printer::do_linelength, html_printer::do_pageoffset,
7474         html_printer::do_indentation, html_printer::do_tempindent,
7475         html_printer::do_indentedparagraph, html_printer::do_break,
7476         html_printer::flush_sbuf, get_html_translation,
7477         html_printer::begin_page, html_printer::special): Rewritten to get
7478         rid of static string length limit.
7479         (html_printer::troff_tag): Added `.no-auto-rule'.
7480         (html_printer::flush_globs): Small fix.
7481         (html_printer::determine_space): Don't compute `space_width'.
7482         (html_printer::translate_to_html): Renamed to ...
7483         (html_printer::emit_html): This (with updates).
7484         (html_printer::write_header): Implement `-h' option.
7485         (html_printer::draw): Remove commented-out code.  Handle `F'
7486         command.
7487         (html_printer::add_char_to_sbuf): Removed.
7488         (html_printer::add_to_sbuf): Rewritten.
7489         (html_printer::sbuf_continuation): Fixed.
7490         (html_printer::seen_backwards_escape, reverse,
7491         html_printer::remove_last_char_from_sbuf): Removed.
7492         (char_translate_to_html, str_translate_to_html): Removed.
7493         (html_printer::overstrike): New function member.
7494         (html_printer::set_char): Use it.
7495         (html_printer::do_body): New function member.
7496         (html_printer::~html_printer): Use it.
7497         (main): Handle `-h' option.
7498         (usage): Updated.
7499         * src/devices/grohtml/grohtml.man: Document -h switch.
7501         * src/preproc/html/pre-html.cc: Include searchpath.h
7502         Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
7503         (get_resolution): New function.
7504         (checkImageDir): Use `0777' permissions in mkdir()
7505         (write_start_image): Rewritten to use `\O[5...]'.
7506         (createImage, generateImages): Updated.
7507         (main): Handle `F' and `h' options.
7508         Use `get_resolution'.
7510         * src/roff/troff/input.cc (begin, end, image): Removed.
7511         (do_suppress): Take parameter.
7512         Handle modified syntax of `\O'.
7513         (token::next): Updated.
7514         (init_markup_requests): Removed.
7515         (main): Updated.
7517         * src/roff/troff/div.h: Add declaration for begin_page().
7519         * tmac/color-html.tmac: Removed.  Contents moved to...
7520         * tmac/html.tmac: Here.  Set background color.
7521         * tmac/color.tmac: Removed.  Contents moved to...
7522         * tmac/ps.tmac: Here.
7523         * tmac/www.tmac: Remove the title command when generating images
7524         for html.
7525         (NO_AUTO_RULE): New macro.
7526         (HTML_DO_IMAGE): Use revised `\O' escapes.
7527         * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
7529 2001-12-02  Werner LEMBERG  <wl@gnu.org>
7531         * tmac/groff_mdoc.man: Fix typo.
7533 2001-12-01  Colin Watson  <cjwatson@debian.org>
7535         * man/roff.man: Fix typo.
7537 2001-11-29  Werner LEMBERG  <wl@gnu.org>
7539         * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
7540         stdlib.h.
7542         * src/roff/troff/input.cc (read_draw_node): Emit error message if
7543         more than one argument to \D'f ...'.
7545         * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
7547 2001-11-28  Werner LEMBERG  <wl@gnu.org>
7549         * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
7550         loaded only once.
7552         * tmac/groff_man.man: Minor cosmetic fix.
7554 2001-11-27  Werner LEMBERG  <wl@gnu.org>
7556         * src/roff/groff/groff.man, tmac/groff_tmac.man,
7557         tmac/groff_www.man: s/mwww/www/.
7559 2001-11-26  Werner LEMBERG  <wl@gnu.org>
7561         * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
7562         * configure: Regenerated.
7563         * win32-diffs: Updated.
7565         * tmac/groff_mwww.tmac: Renamed to ...
7566         * tmac/groff_www.tmac: This.
7567         * tmac/mwww.tmac: Removed.
7568         * NEWS, tmac/Makefile.sub: Updated.
7570 2001-11-21  Werner LEMBERG  <wl@gnu.org>
7572         * doc/groff.texinfo: Improve documentation of the `\v' escape.
7573         Fix explanation of `\D' and `rt'.
7575 2001-11-20  Werner LEMBERG  <wl@gnu.org>
7577         * tmac/an-old.tmac (an-header): Set header length equal to page
7578         width.
7579         * doc/groff.texinfo: Improve documentation of `ne' request.  Other
7580         minor fixes.
7581         * NEWS: Small fix.
7583 2001-11-19  Werner LEMBERG  <wl@gnu.org>
7585         * NEWS, man/Makefile.sub: Updated.
7587 2001-11-19  Bernd Warken  <bwarken@mayn.de>
7589         * man/ditroff.man: New file.
7591 2001-11-17  Werner LEMBERG  <wl@gnu.org>
7593         * man/groff_differences.man: Renamed to ...
7594         * man/groff_diff.man: This.  Updated.
7595         * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
7597         * src/preproc/html/pushbackbuffer.cc: Renamed to ...
7598         * src/preproc/html/pushback.cc: This.  Updated.
7599         * src/preproc/html/pushbackbuffer.h: Renamed to ...
7600         * src/preproc/html/pushback.h: This.
7601         * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
7602         Updated.
7604         * src/libs/libgroff/htmlindicate.cc: Renamed to ...
7605         * src/libs/libgroff/htmlhint.cc: This.
7606         * src/libs/libgroff/Makefile.sub: Updated.
7608         * tmac/an-old.tmac (an-end): Fix page length.
7610 2001-11-16  Werner LEMBERG  <wl@gnu.org>
7612         * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
7613         * man/Makefile.sub: Include groff_differences.man.
7614         * VERSION: Set to 1.18.
7615         * REVISION: Set to 0.
7617 2001-11-16  Bernd Warken  <bwarken@mayn.de>
7619         * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
7620         the second dot (or ending macro name) to end a macro.
7621         * doc/groff.texinfo: Doc fix.
7623 2001-11-16  Ruslan Ermilov  <ru@FreeBSD.org>
7625         * tmac/doc-common (doc-header): Handle very long document titles
7626         better.
7628 2001-11-16  Werner LEMBERG  <wl@gnu.org>
7630         * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
7632 2001-11-15  Werner LEMBERG  <wl@gnu.org>
7634         * src/roff/troff/troff.man: Revised and split into troff.man and...
7635         * man/groff_differences.man: New file.
7636         * NEWS: Updated.
7638 2001-11-13  Werner LEMBERG  <wl@gnu.org>
7640         * tmac/an-old.tmac (TS, TE): New macros for table support.
7642 2001-11-12  Werner LEMBERG  <wl@gnu.org>
7644         * src/include/lib.h: Provide a fix for emx to not include
7645         groff-getopt.h.
7647 2001-10-27  Werner LEMBERG  <wl@gnu.org>
7649         * src/roff/troff/input.cc (substring_macro): Fix computation of
7650         boundary values.
7652 2001-10-20  Werner LEMBERG  <wl@gnu.org>
7654         Undo change from 2001-08-28.
7656         * src/roff/troff/input.cc (have_input): New global variable.
7657         (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
7658         in compatibility mode.
7659         (process_input_stack): Use it.
7661 2001-10-19  Ruslan Ermilov  <ru@FreeBSD.org>
7663         * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
7664         being handled as end-of-sentence characters,
7666 2001-10-10  Gaius Mulley  <gaius@glam.ac.uk>
7668         * src/roff/troff/input.cc (file_iterator): New members
7669         `suppress_newline_flag' and `seen_escape'.
7670         (file_iterator::next_file): Updated.
7671         (file_iterator::fill): Use it.
7672         (string_iterator): New member `suppress_newline_flag'.
7673         (string_iterator::fill): Set it.
7674         (get_color_element): Use MAX_COLOR_VAL.
7675         * src/roff/troff/env.cc (environment): Remove `need_eol'.
7676         (no_fill): Don't set `env->ignore_next_eol'.
7677         (environment::newline): Handle `eol' tag properly.
7678         Emit `eol.ce'.
7679         (environment::add_html_tag): Set `env->ignore_next_eol'.
7680         Don't handle `.ce'.
7681         * src/roff/troff/env.h (environment): Updated.
7683         * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
7684         member function.
7685         (html_printer::outstanding_eol): New member function.
7686         (html_printer::do_title): Use new functions.
7687         (html_printer::troff_tag): Test `id_eol_ce'.
7689 2001-10-10  Werner LEMBERG  <wl@gnu.org>
7691         * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
7692         files work with -C also.
7694 2001-10-05  Werner LEMBERG  <wl@gnu.org>
7696         * doc/pic.ms: Minor fix.
7697         * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
7698         as a valid command line switch.
7699         * src/devices/grohtml/post-html.cc (main): Ditto.
7700         (usage): Updated.
7701         * src/devices/grohtml/grohtml.man: Updated.
7702         * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
7704 2001-10-04  Werner LEMBERG  <wl@gnu.org>
7706         Implementing color support in troff, pic, grops, and grohtml.  These
7707         changes are based on a major patch provided by Gaius Mulley
7708         <gaius@glam.ac.uk>.
7710         New request: `defcolor', supporting rgb, cmy, cmyk, and gray
7711         definitions with both hex values and fractions.
7713         New escapes: \m and \M for drawing and background color,
7714         respectively.  This corresponds to the troff output commands `m'
7715         and `DF'.
7717         groff and troff accept command line switch `-c' to disable color
7718         output (which is automatically disabled in compatibility mode).
7720         New scaling indicator `f' for fractions (1f = 65536u).
7722         New conditional operator `m' to test for defined colors with `if'
7723         and `ie'.
7725         New keywords `color' (or `colour', `colored', `coloured'), `outline'
7726         (or `outlined'), and `shaded' added to pic.
7728         * src/include/color.h: New file.
7729         * src/include/driver.h: Include it.
7730         * src/include/printer.h: Include color.h.
7731         (environment): New members `col' and `fill'.
7732         (printer): Remove `adjust_arc_center' member function.
7733         * src/include/Makefile.sub: Updated.
7735         * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
7736         `env.fill'.
7737         Handle `m' and `DF' troff commands.
7738         * src/libs/libgroff/color.cc: New file.
7739         * src/libs/libgroff/Makefile.sub: Updated.
7741         * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
7742         (stop): Removed.
7743         (createImage): Fix computation of `y2'.
7744         Use `pnmcrop' also.
7745         (buffer::write_file_html): Remove calls to `stop'.
7747         * src/preproc/pic/common.h (common_output): New abstract function
7748         members `set_color', `reset_color', `get_last_filled', and
7749         `get_outline_color'.
7750         * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
7751         (object_spec): Add members `shaded' and `outlined'.
7752         * src/preproc/pic/output.h (output): `command' is now abstract.
7753         New function members `set_color', `reset_color', `get_last_filled',
7754         and `get_outline_color'.
7755         * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
7756         `outline[d]', and `shaded'.
7757         * src/preproc/pic/object.cc (output::command): Removed.
7758         (output::set_location): Moved to output.h.
7759         (graphic_object): Add protected members `outline_color' and
7760         `color_fill'.
7761         Add member functions `set_outline_color', `get_outline_color', and
7762         `set_fill_color'.
7763         (closed_object): Add member function `set_fill_color'.
7764         Add member `color_fill'.
7765         (graphic_object::print_text): Use `out->set_color' and
7766         `out->reset_color'.
7767         (box_object::print, ellipse_object::print, circle_object::print,
7768         line_object::print, spline_object::print, arc_object::print): Ditto.
7769         (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
7770         * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
7771         `SHADED', making them `%left'.
7772         Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
7773         * src/preproc/pic/tex.cc (tex_output): New dummy function members
7774         `set_color', `reset_color', `get_last_filled', and
7775         `get_outline_color'.
7776         * src/preproc/pic/troff.cc (simple_output): New abstract function
7777         members `set_color', `reset_color', and `get_last_filled'.
7778         (simple_output::polygon, simple_output::circle,
7779         simple_output::ellipse): Use `get_last_filled'.
7780         (troff_output): New members `last_filled' and `last_outlined'.
7781         New function members `set_color', `reset_color', `get_last_filled',
7782         and `get_outline_color'.
7783         (troff_output::finish_picture): Use `reset_color'.
7784         (troff_output::set_fill): Test `last_filled'.
7785         * src/preproc/pic/pic.man: Updated.
7787         * src/roff/groff/groff.cc (main): Implement `-c' option.
7788         (synopsis, help): Updated.
7789         src/roff/groff/groff.man: Updated.
7791         * src/roff/troff/troff.h: Include color.h.
7792         (warning_type): Add WARN_COLOR.
7793         * src/roff/troff/env.h (environment): New members
7794         `{cur,prev}_{glyph,fill}_color'.
7795         New member functions `get_{prev_,}{glyph,fill}_color'.
7796         * src/roff/troff/env.cc: Initialize and implement them.
7797         * src/roff/troff/input.cc: New global variable `disable_color_flag'.
7798         Replace `NULL' with `0' everywhere for consistency.
7799         (lookup_color, default_black, do_glyph_color, do_fill_color,
7800         get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
7801         define_color): New functions.
7802         (token::next): Implement \M and \m escapes.
7803         (do_if_request): Implement `m' operator.
7804         (usage): Updated.
7805         (main): Implement `-c' option.
7806         (init_markup_requests): Add `defcolor' request.
7807         (warning_table): Add `color' warning.
7808         * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
7809         classes.
7810         * src/roff/troff/node.cc (troff_output_file): New members
7811         `current_{page,glyph}color'.  New member functions `put_hex',
7812         `glyph_color', and `fill_color'.
7813         (glyph_color_node::*, fill_color_node::*): Implement it.
7814         * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
7815         (parse_term): Add support for `f'.
7816         * src/roff/troff/troff.man: Updated.
7818         * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
7819         entry for `F'.
7820         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
7821         * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
7823         * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
7824         (tag_definition): Use `void *' for arg1.
7825         (html_text): New member functions `do_color' and `done_color'.
7826         Use `void *' for second parameter of `push_para' member function.
7827         New `push_para' member function with a single parameter.
7828         Use `char *' for parameter of `issue_table_begin' member funtion.
7829         New `issue_color_begin' member function.
7830         * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
7831         COLOR_TAG.
7832         (html_text::issue_color_begin): New function.
7833         (html_text::issue_table_begin): Use `char *' for parameter.
7834         (html_text::start_tag, html_text::shutdown,
7835         html_text::check_emit_text): Updated.
7836         (html_text::push_para): Use `void *' for second parameter.
7837         Add same function with only one parameter.
7838         (html_text::do_*): Updated.
7839         (html_text::do_color, html_text::done_color): New functions.
7840         * src/devices/grohtml/post-html.cc (style): New member `col'.
7841         Mew member `style' with 6 parameters.
7842         (style::style, style::operator==): Updated.
7843         (html_printer::do_font): Use it.
7844         (html_printer::draw): Add dummy entry for `F'.
7845         (html_printer::set_char): Updated.
7846         * src/devices/grohtml/grohtml.man: Updated.
7848         * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
7849         trailing zeroes removed.
7850         (ps_printer): New members `sbuf_color', `fill_color', and
7851         `output_color'.
7852         Removed member `fill'.
7853         New member function `set_color'.
7854         (ps_printer::ps_printer, ps_printer::set_char): Updated.
7855         (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
7856         ps_printer::fill_path, ps_printer::draw): Use `set_color'.
7858         * tmac/color-html.tmac, tmac/color.tmac: New files.
7859         * tmac/troffrc: Include them.
7860         * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
7861         * tmac/Makefile.sub: Updated.
7863         * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
7864         man/groff.man: Updated.
7865         * font/devps/prologue.ps: Define FC and CO functions.
7867 2001-10-04  Gaius Mulley  <gaius@glam.ac.uk>
7869         Fix incorrect cropping of images and incorrect handling of special
7870         characters.  Fix handling of file names in \O.
7872         * src/include/geometry.h: New file.
7873         * src/libs/libgroff/geometry.cc: New file.
7874         * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
7875         to `geometry.cc'.
7876         * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
7877         initial spaces.
7878         (do_suppress): Updated.
7879         * src/roff/troff/node.cc: Include geometry.h.
7880         (troff_output_file::flush_tbuf): Fixed parameters to
7881         `check_output_limits'.
7882         (troff_output_file::check_charinfo): Ditto.
7883         (troff_output_file::determine_line_limits): Add support for `Da'
7884         and `Dl' commands.
7886         * src/devices/grohtml/post-html.cc (str_translate_to_html):
7887         Add new parameter `is_special' to decode special characters from
7888         escape sequences.
7889         (html_printer::do_title, html_printer::do_heading,
7890         html_printer::do_indentedparagraph,
7891         html_printer::translate_to_html, html_printer::special): Updated.
7893 2001-10-03  Werner LEMBERG  <wl@gnu.org>
7895         * Makefile.sub (DISTCLEANFILES): Add stamp-h.
7896         Fix entry for config.h.
7897         * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
7898         * tmac/troffrc: Translate nonbreakable space character to `\~'.
7899         * src/preproc/eqn/eqn.man: Document -d command line option.
7901 2001-09-27  Werner LEMBERG  <wl@gnu.org>
7903         * man/groff.man: Use
7905           .ev xxx
7906           .na
7907           .nh
7908           <table>
7909           .ev
7911         instead of the old code (`.ad .hy' after the table) to suppress
7912         incorrect hyphenation for grohtml output.
7914 2001-09-22  Werner LEMBERG  <wl@gnu.org>
7916         * man/groff_font.man, man/groff_out.man: Minor fixes.
7918 2001-09-20  Werner LEMBERG  <wl@gnu.org>
7920         * PROBLEMS: Updated, reordered.  Improved EPS section (thanks to
7921         Arnold Robbins <arnold@skeeve.com>).
7923 2001-09-09  Werner LEMBERG  <wl@gnu.org>
7925         * configure: Regenerated with autoconf 2.52.
7927         * doc/groff.texinfo: Complete revision of indices.
7929 2001-09-07  Werner LEMBERG  <wl@gnu.org>
7931         * doc/Makefile (clean): Updated to delete all indices.
7933 2001-09-05  Werner LEMBERG  <wl@gnu.org>
7935         * src/roff/troff/troff.man: Remove superfluous line.
7937         * tmac/s.tmac: Enable all warnings only if no -W or -w option is
7938         given on the command line (or rather, if only the default warnings
7939         are set).
7941 2001-09-03  Werner LEMBERG  <wl@gnu.org>
7943         * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
7944         use .ne for TTY devices.
7946 2001-08-31  Werner LEMBERG  <wl@gnu.org>
7948         * src/roff/troff/token.h, src/roff/troff/input.cc:
7949         s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
7951 2001-08-28  Werner LEMBERG  <wl@gnu.org>
7953         * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
7954         * src/roff/troff/input.cc (token::next): Return
7955         TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
7956         compatibility mode.
7957         (token::description): Updated.
7958         (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
7959         (token::add_to_node_list, token::process): Ignore
7960         TOKEN_TRANSPARENT_ESCAPE.
7962 2001-08-27  Werner LEMBERG  <wl@gnu.org>
7964         * tmac/an-old.tmac: Fix `S' string.
7966 2001-08-26  Werner LEMBERG  <wl@gnu.org>
7968         * src/roff/troff/troff.man: Don't use .ne for TTY devices.
7970 2001-08-25  Werner LEMBERG  <wl@gnu.org>
7972         * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
7973         backslashes).
7974         Many other minor fixes.
7976         * configure.ac: Add message at end to inform how to compile
7977         xditview.
7978         * configure: Regenerated.
7980 2001-08-24  Werner LEMBERG  <wl@gnu.org>
7982         * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
7983         Updated to latest version of libc.
7985 2001-08-23  Werner LEMBERG  <wl@gnu.org>
7987         * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
7988         Autoconf 2.50 and newer can handle this.
7989         * configure: Regenerated.
7991 2001-08-21  Werner LEMBERG  <wl@gnu.org>
7993         * doc/pic.ms: Fix typo.
7994         * src/preproc/tbl/tbl.man: Document case of global options.
7996 2001-08-21  Gaius Mulley  <gaius@glam.ac.uk>
7998         * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
7999         handling of `CR' font.
8001 2001-08-20  Werner LEMBERG  <wl@gnu.org>
8003         Use a config.h file.
8005         * src/include/lib.h: Include config.h.
8006         * All C files: Ditto (if necessary).
8007         * All C++ source and header files: Include lib.h first (if
8008         necessary).
8010         * src/include/config.hin: New file (autogenerated by autoheader).
8011         * stamp-h.in: New file.
8012         * configure.ac: Updated.
8013         * aclocal.m4: Add third parameters to AC_DEFINE macros.
8014         (GROFF_ARRAY_DELETE): Simplified.
8015         * Makefile.sub (DISTCLEANFILES): Updated.
8016         Added targets for remaking config.status, config.hin, config.h,
8017         stamp-h.in, and stamp-h.
8018         * configure: Regenerated.
8020 2001-08-19  Werner LEMBERG  <wl@gnu.org>
8022         * NEWS: Updated.
8024 2001-08-18  Sebastian Krahmer  <krahmer@suse.de>
8026         * src/preproc/pic/pic.y (format_number): Use do_sprintf().
8027         (do_sprintf): Use snprintf().
8029 2001-08-18  Werner LEMBERG  <wl@gnu.org>
8031         * src/libs/snprintf/*: Added an snprintf module written by Mark
8032         Martinec.
8033         * src/libs/libgroff/Makefile.sub: Updated.
8034         * configure.ac: Add test for snprintf().
8035         * Makefile.in: Updated.
8036         * configure: Regenerated.
8038         * src/preproc/html/pre-html.cc (make_message): Reactivate code which
8039         uses snprintf().
8041 2001-08-14  Ruslan Ermilov  <ru@FreeBSD.org>
8043         * tmac/doc.tmac (Ex): New implementation.
8044         * tmac/doc-common, tmac/groff_tmac.man: Updated.
8046 2001-08-13  Ruslan Ermilov  <ru@FreeBSD.org>
8048         * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
8049         argument.
8050         * tmac/groff_tmac.man: Updated.
8052 2001-08-13  Werner LEMBERG  <wl@gnu.org>
8054         * src/preproc/tbl/tbl.man: Minor documentation update.
8056 2001-08-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8058         * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
8059         * configure.ac: Add declaration test for gettimeofday().
8060         * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
8061         * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
8062         * configure: Regenerated.
8064 2001-08-11  Werner LEMBERG  <wl@gnu.org>
8066         * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
8067         * configure.ac: Add declaration test for strcasecmp().
8068         * Makefile.in: Updated.
8069         * configure: Regenerated.
8070         * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
8071         this is necessary because groff's mkstemp.cc is C++.
8072         Add declaration conditionally for strcasecmp().
8074 2001-08-10  Werner LEMBERG  <wl@gnu.org>
8076         Integrated pic2graph, contributed by Eric S. Raymond.
8078         * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
8079         files.
8080         * Makefile.in, NEWS: Updated.
8082         * src/preproc/tbl/tbl.man: Revised.
8084 2001-08-09  Eric S. Raymond  <esr@thyrsus.com>
8086         * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
8088 2001-08-09  Werner LEMBERG  <wl@gnu.org>
8090         * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
8091         requests.
8093 2001-08-08  Paul Eggert  <eggert@twinsun.com>
8095         * Makefile.sub (configure): Depend on configure.ac, not
8096         configure.in.
8097         * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
8099 2001-08-07  Werner LEMBERG  <wl@gnu.org>
8101         * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
8102         fixes.
8104 2001-08-06  Werner LEMBERG  <wl@gnu.org>
8106         * src/roff/troff/troff.man: Improve documentation of -E option.
8108 2001-07-28  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
8110         * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
8111         Simplified.
8113 2001-07-27  Werner LEMBERG  <wl@gnu.org>
8115         * src/preproc/refer/refer.cc: Undo last change.
8116         * src/devices/grohtml/post-html.cc: Ditto.
8118 2001-07-26  Werner LEMBERG  <wl@gnu.org>
8120         * src/preproc/refer/refer.cc: Include `lib.h'.
8121         * src/devices/grohtml/post-html.cc: Ditto.
8123 2001-07-25  Gaius Mulley  <gaius@glam.ac.uk>
8125         * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
8126         * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
8127         * Makefile.in: Comment updated.
8128         * configure: Regenerated.
8130 2001-07-25  Werner LEMBERG  <wl@gnu.org>
8132         * src/preproc/pic/pic.cc: Removed.
8133         * src/preproc/pic/pic_tab.h: Removed.
8134         * src/preproc/refer/label.cc: Removed.
8136         * doc/Makefile (.ms.html): Don't use a file name extension in
8137         argument to grohtml's -I option.
8138         * Makefile.in (dist): Remove CVS directories.
8139         Call `distfiles' target.
8141         * src/devices/grohtml/grohtml.man: Add information about valid
8142         versions of pnmtopng.
8143         * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
8144         name instead of number.
8146 2001-07-24  Werner LEMBERG  <wl@gnu.org>
8148         * doc/groff.texinfo: Minor fixes.
8150 2001-07-21  Gaius Mulley  <gaius@glam.ac.uk>
8152         * doc/Makefile (.ms.html): Put image files into a subdirectory.
8153         (clean): Updated.
8155 2001-07-20  Werner LEMBERG  <wl@gnu.org>
8157         * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
8158         * src/libs/libgroff/mkstemp.cc: New file.
8159         * src/libs/libgroff/mksdir.cc: New file.
8160         * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
8161         (xtmpfile) [!HAVE_MKSTEMP]: Removed.
8162         * src/libs/libgroff/Makefile.sub: Updated.
8163         * src/include/lib.h: Add mksdir() prototype.
8164         * src/include/posix.h: Define S_IXUSR if not yet defined.
8166         * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
8167         (createAllPages): Use mksdir() instead of current code.
8168         * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
8169         (main): [!HAVE_MKSTEMP]: Removed.
8171         * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
8172         (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
8173         macros.
8174         * configure.ac: Add tests for stdint.h, sys/time.h, and
8175         gettimeofday().
8176         Call new GROFF_xxx macros.
8177         * configure: Regenerated.
8178         * Makefile.in: Comments updated.
8180 2001-07-20  Gaius Mulley  <gaius@glam.ac.uk>
8182         * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
8183         instead of current code.
8184         * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
8185         * src/roff/groff/groff.cc (possible_command::insert_args): New
8186         function.
8187         (main): Use it for predriver handling instead of insert_arg().
8189 2001-07-19  Werner LEMBERG  <wl@gnu.org>
8191         * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
8192         groff also.
8194         * src/include/posix.h: Define S_IWUSR if not yet defined.
8196 2001-07-18  Werner LEMBERG  <wl@gnu.org>
8198         * NEWS: Updated.
8200 2001-07-18  Ruslan Ermilov  <ru@FreeBSD.org>
8202         * tmac/groff_mdoc.man: Document new -width and -column syntax.
8203         Some other minor fixes.
8204         * tmac/an-old.tmac: Add `AT' and `UC' macros.
8206 2001-07-17  Gaius Mulley  <gaius@glam.ac.uk>
8208         Replace call to `troff' with `groff -Z' to make it aware of
8209         GROFF_BIN_PATH.
8211         * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
8212         (troff_command, command_prefix): Removed.
8213         (alterDeviceTo): Use groff.
8214         (addZ): New function.
8215         (char_buffer::do_html): Use it.
8216         (scanArguments): Use TROFF_COMMAND.
8217         (findPrefix): Removed.
8218         (main): Updated.
8219         * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
8221 2001-07-17  Eric S. Raymond  <esr@snark.thyrsus.com>
8223         * doc/pic.ms: Documentation fixes.
8225 2001-07-17  Werner LEMBERG  <wl@gnu.org>
8227         Replace atexit() with global destructor.
8229         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
8230         (xtmpfile_list_init): New global structure to deallocate
8231         xtmpfile_list on exit.  Its destructor inherits most code from
8232         remove_tmp_files().
8233         (remove_tmp_files): Deleted.
8234         (add_tmp_file): Simplified.
8236 2001-07-16  Werner LEMBERG  <wl@gnu.org>
8238         Replace strdup() with strsave().
8240         * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
8241         (set_papersize): Use strsave() and a_delete.
8242         (main): Use strsave().
8243         * src/preproc/html/pre-html.cc (make_message, createAllPages,
8244         removeAllPages): Use strsave() and a_delete.
8246         * configure.ac: Remove test for strdup.
8247         * Makefile.in: Comment updated.
8248         * configure: Regenerated.
8250 2001-07-15  Werner LEMBERG  <wl@gnu.org>
8252         * win32-diffs: Updated.
8254 2001-07-14  Werner LEMBERG  <wl@gnu.org>
8256         * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
8257         removing the old one.
8258         * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
8260 2001-07-14  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
8262         * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
8264 2001-07-12  Ruslan Ermilov  <ru@FreeBSD.org>
8266         Merge -xwidth into -width.  Add -xwidth functionality to -column
8267         also.
8269         * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
8270         avoid warning.
8271         (doc-do-Bl-args): Merge -xwidth code with -width.  Test whether
8272         string immediately following a leading dot starts with a valid mdoc
8273         argument.
8274         Add similar code to the -column branch.
8275         (doc-Bl-usage): Updated.
8276         * groff_mdoc.man: s/-xwidth/-width/.
8278 2001-07-12  Gaius Mulley  <gaius@glam.ac.uk>
8280         * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
8281         running into centered or non-formatted text.
8283 2001-07-11  Werner LEMBERG  <wl@gnu.org>
8285         Introduce short and long prefixes to have the selection at run-time
8286         whether there is a 8+3 limit for names of temporary files.
8288         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
8289         (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
8290         (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
8291         variables.
8292         (temp_init): New global structure to initialize above three
8293         variables.
8294         (xtmptemplate): Use two parameters for long and short prefix.
8295         Simplify code use above three variables.
8296         (xtmpfile): Use long and short prefixes as parameters.
8297         * src/include/lib.h: Updated.
8299         * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
8300         with ...
8301         ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
8302         (createAllPages, makeTempFiles): Updated.
8304 2001-07-09  Werner LEMBERG  <wl@gnu.org>
8306         * REVISION: Increased to 3.
8308 Version 1.17.2 released
8309 =======================
8311 2001-07-07  Werner LEMBERG  <wl@gnu.org>
8313         * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
8314         to size_t.
8316 2001-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
8318         * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
8319         Fix synopsis.
8320         * tmac/groff_mdoc.man: Fix synopsis.
8322 2001-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
8324         * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
8325         Restore `doc-Pa-font'.
8327 2001-07-04  Werner LEMBERG  <wl@gnu.org>
8329         * src/utils/indxbib/dirnamemax.c: Moved to ...
8330         * src/libs/libgroff/maxfilename.cc: Here.
8331         s/dir_name_max/file_name_max/.
8332         Add copyright.
8333         * src/include/lib.h: Add file_name_max.
8334         * src/utils/indxbib/indxbib.cc: Updated.
8335         * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
8336         Updated.
8338         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
8339         as empty.
8340         (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
8342         * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
8343         REGION_TEMPLATE): New macros.
8344         (createAllPages, makeTempFiles): Use them.
8345         Include `nonposix.h'.
8346         (html_system): New function.
8347         (createAllPages, createImage): Use it.
8348         Use EXE_EXT.
8350         * tmac/www.tmac: Fix typos.
8352 2001-07-03  Werner LEMBERG  <wl@gnu.org>
8354         * tmac/www.tmac: Disable hyphenation in normal text only if output
8355         device is html.
8356         (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
8357         * tmac/groff_mwww.man, NEWS: Updated.
8359 2001-07-03  Gaius Mulley  <gaius@glam.ac.uk>
8361         * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
8362         image location.
8364 2001-07-02  Ruslan Ermilov  <ru@FreeBSD.org>
8366         * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
8367         doc-display-ps-stack): Implement font and font size stack for
8368         displays.
8370 2001-07-02  Werner LEMBERG  <wl@gnu.org>
8372         * REVISION: Increased to 2.
8373         * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
8375         * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
8376         beginning of a line.
8377         * src/groff/grog/grog.sh: Ditto.
8379 2001-06-29  Peter Marquardt  <wwwutz@molgen.mpg.de>
8381         * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
8382         make it portable.
8384 2001-06-27  Werner LEMBERG  <wl@gnu.org>
8386         Fix problems with preprocessor string for `man' program.
8388         * *.man: Don't use `s' in preprocessor string --  it doesn't exist.
8389         Updated/added copyright.
8390         Moved Emacs's local variable to identify nroff mode to the end of
8391         the file; add local variable if missing.
8393 2001-06-26  Andras Salamon  <andras@cs.wits.ac.za>
8395         * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
8396         AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
8397         * configure: Regenerated.
8399 2001-06-25  Andras Salamon  <andras@cs.wits.ac.za>
8401         * aclocal.m4 (GROFF_PAGE): Fix page detection code.
8402         * configure: Regenerated.
8404 2001-06-24  Werner LEMBERG  <wl@gnu.org>
8406         * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
8407         but www.tmac.
8408         * doc/pic.ms: Fix typos.
8410 Version 1.17.1 released
8411 =======================
8413 2001-06-21  Golubev I. N.  <gin@mo.msk.ru>
8415         * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
8416         * configure: Updated.
8418 2001-06-20  Gaius Mulley  <gaius@glam.ac.uk>
8420         * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
8421         image names.
8422         * src/roff/troff/dic.cc (blank_line): Add html tag.
8424 2001-06-19  Gaius Mulley  <gaius@glam.ac.uk>
8426         * src/roff/troff/input.cc (do_suppress): Fix typo.
8428 2001-06-18  Gaius Mulley  <gaius@glam.ac.uk>
8430         Added two new options (-D and -I) to specify image names and a
8431         subdirectory to place the images in.
8433         Change syntax from \\Ox to \\O[x].
8435         * src/devices/grohtml/post-html.cc (main): Add options.
8436         (usage): Updated.
8437         * src/preproc/html/pre-html.cc: Include `stdarg.h'.
8438         Use `NULL' instead of `0' for null string pointers.
8439         (MAX_RETRIES): New macro.
8440         (lengthOfintToStr, intToStr, make_message): New functions.
8441         (makeFileName): Make function static.
8442         Implement -D and -I options.
8443         (checkImageDir): New function.
8444         (write_end_image, write_start_image): Use new syntax of \O.
8445         (createAllPages, removeAllPages): Implement -D and -I options.  Use
8446         make_message().
8447         (createImage): Use make_message().
8448         (addps4html): Add guard for malloc().
8449         (usage, scanArguments): Updated.
8450         (makeTempFiles): Use mkstemp().
8451         (removeTempFiles): Use unlink().
8452         (findPrefix): Add guard for malloc().
8453         (main): Updated.
8454         * src/roff/troff/input.cc (get_delim_file_name): New function to
8455         parse \O.
8456         (do_suppress): Updated to parse new syntax.
8457         * src/devices/grohtml/grohtml.man: Updated.
8458         * tmac/www.tmac: Updated to new syntax.
8460         * NEWS: Updated.
8462 2001-06-15  Werner LEMBERG  <wl@gnu.org>
8464         * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
8466         * src/devices/grohtml/grohtml.man: Minor improvements.
8468 2001-06-14  Werner LEMBERG  <wl@gnu.org>
8470         * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
8472 2001-06-11  Werner LEMBERG  <wl@gnu.org>
8474         * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
8475         line to specify preprocessor options -- mandb 2.3.1 only recognizes
8476         the former.
8477         * src/preproc/grn/grn.man: Add proper '\" string.
8479 2001-06-11  OKAZAKI Tetsurou  <okazaki@be.to>
8481         * test-groff: Don't use PATH but GROFF_BIN_PATH.
8483 2001-06-08  Werner LEMBERG  <wl@gnu.org>
8485         Updated to autoconf 2.50.
8487         * configure.in: Renamed to...
8488         * configure.ac: This.
8489         * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
8490         (GROFF_OS390): Updated.
8491         * configure: Regenerated.
8493 2001-05-18  Werner LEMBERG  <wl@gnu.org>
8495         * src/roff/troff/env.c, src/roff/troff/env.h,
8496         src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
8497         from 2000-12-21.
8499 2001-05-17  Jeffrey Friedl  <jfriedl@yahoo-inc.com>
8501         * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
8503 2001-05-16  Werner LEMBERG  <wl@gnu.org>
8505         * src/roff/troff/input.cc (read_size): Emit warning if value becomes
8506         less than or equal zero; set it to 1 then.
8507         * src/roff/troff/node.h (node::node): Initialize `last'.
8509 2001-05-08  Werner LEMBERG  <wl@gnu.org>
8511         * tmac/an-old.tmac: Make predefined strings work in compatibility
8512         mode.
8513         Add troff version guard.
8514         * tmac/doc.tmac: Simplify version guard.
8516 2001-05-07  Werner LEMBERG  <wl@gnu.org>
8518         The .ns and .rs requests are now honoured not only in the top-level
8519         but in all diversions (similar to UNIX troff).
8521         This change is based on a patch from Tadziu Hoffmann
8522         <hoffmann@usm.uni-muenchen.de>.
8524         * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
8525         (top_level_diversion): Remove `no_space_mode' member.
8526         * src/roff/troff/div.cc (diversion::diversion,
8527         top_level_diversion::top_level_diversion): Updated.
8528         (macro_diversion::output): Reset `no_space_mode'.
8529         (no_space, restore_spacing): Use `curdiv' unconditionally.
8530         (space_request, blank_line): Check `curdiv->no_space_mode'.
8531         (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
8532         `curdiv' unconditionally.
8533         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8534         Updated.
8536 2001-05-06  Werner LEMBERG  <wl@gnu.org>
8538         Added two new requests `de1' and `am1' which are similar to `de' and
8539         `am' with the difference that compatibility mode is saved on entry,
8540         switched off during macro execution, and restored on exit.
8542         * src/roff/troff/input.h: Added two new special characters
8543         (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
8544         * src/roff/troff/input.cc (input_iterator): Added two member
8545         functions `save_compatible_flag' and `get_compatible_flag'.
8546         (input_stack): Ditto.
8547         (string_iterator): Ditto.  Also add private member
8548         `saved_compatible_flag'.
8549         (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
8550         (calling_mode): New enumeration.
8551         (do_define_macro): Use it.  Insert COMPATIBLE_SAVE and
8552         COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
8553         (define_macro, define_indirect_macro, append_macro, ignore): Use
8554         `calling_mode'.
8555         (define_nocomp_macro, append_nocomp_macro): New functions.
8556         (init_input_requests): Updated.
8557         (do_request): Rename local variable `saved_compatible_flag' to
8558         `old_compatible_flag'.
8559         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8561         * tmac/an-old.tmac: Use `de1' instead of `de' request for all
8562         public and trap-invoked macros.  As a consequence, the man macros
8563         work in compatibility mode also.
8565 2001-05-06  Solar Designer  <solar@openwall.com>
8567         * Makefile.in: Use $(mandir).
8569 2001-05-06  Alexios Zavras  <zvr@pobox.com>
8571         * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
8573 2001-05-05  Werner LEMBERG  <wl@gnu.org>
8575         Added `.ns' number register: Returns 1 in no-space mode (if in
8576         top-level diversion), 0 otherwise.
8578         * src/roff/troff/div.cc (no_space_mode_reg): New class.
8579         (init_div_requests): Updated.
8580         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8581         Document it.
8583 2001-05-04  Werner LEMBERG  <wl@gnu.org>
8585         * src/roff/nroff/nroff.man: Improved documentation (especially
8586         locales).
8588 2001-05-02  Werner LEMBERG  <wl@gnu.org>
8590         Added `brp' request: This is \p as a request.
8592         * src/roff/troff/env.cc (environment::do_break): Add parameter
8593         `spread'.
8594         (do_break_request): New function (was `break_request').
8595         (break_request): Calls `do_break_request'.
8596         (break_spread_request): New; calls `do_break_request'.
8597         (init_env_requests): Updated.
8598         * src/roff/troff/env.h: Updated.
8599         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8601         * REVISION: Increased to 1.
8602         * win32-diffs: Updated.
8604 2001-05-01  Werner LEMBERG  <wl@gnu.org>
8606         * tmac/an-old.tmac: Fix minor compatibility mode issue.
8607         * tmac/troffrc-end: Make it really work in compatibility mode.
8609 2001-04-27  Werner LEMBERG  <wl@gnu.org>
8611         * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
8612         stdlib.h.
8614 2001-04-22  Werner LEMBERG  <wl@gnu.org>
8616         * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
8617         latest versions from glibc CVS archive.
8619         * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
8620         <c.zeelenberg@hccnet.nl>.
8622 2001-04-21  Werner LEMBERG  <wl@gnu.org>
8624         * configure.in: Move check for mkstemp() to...
8625         * aclocal.m4 (GROFF_MKSTEMP): This new function.
8626         * configure: Regenerated.
8628         * src/include/groff-getopt.h: Don't use variable names in
8629         declarations.
8631         * src/devices/grohtml/html-chars.h: Removed.  It isn't used.
8632         * src/devices/grohtml/Makefile.sub,
8633         src/devices/grohtml/post-html.cc: Updated.
8635 2001-04-21  Albert Chin-A-Young  <china@thewrittenword.com>
8637         * configure.in: Add special check for mkstemp().
8638         * src/libs/libgroff/tmpfile.cc: Use it.
8639         * src/utils/indxbib/indxbib.cc: Ditto.
8640         * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
8641         * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
8642         `const'.
8644 2001-04-20  Bruce Lilly  <blilly@erols.com>
8646         `Version_string' as C++ object was not visible to linker from C
8647         object files.
8648         Add `const' to `Version_string'.
8650         * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
8651         (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
8652         (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
8653         (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
8654         (scanArguments), src/preproc/refer/refer.cc (main),
8655         src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
8656         (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
8657         (main), src/devices/grohtml/post-html.cc (main),
8658         src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
8659         (main), src/utils/hpftodit/hpftodit.cc (main),
8660         src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
8661         (main), src/utils/lkbib/lkbib.cc (main),
8662         src/utils/addftinfo/addftinfo.cc (main): Implement it.
8664         * src/roff/groff/pipeline.c: Add _UWIN.
8665         * src/include/nonposix.h: Ditto.
8667 2001-04-20  Werner LEMBERG  <wl@gnu.org>
8669         * src/include/lib.h: Use HAVE_STRERROR.
8670         * src/roff/groff/pipeline.c: Ditto.
8671         * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
8672         * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
8673         * src/utils/pfbtops/pfbtops.c: Add copyright notice.
8674         * win32-diffs: Updated.
8675         * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
8677 2001-04-19  Werner LEMBERG  <wl@gnu.org>
8679         * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
8680         instead of hardwired `"troff"'.
8681         (char_buffer::read_file): Remove unused variables.
8682         (char_buffer::write_file_troff): Ditto.
8683         (char_buffer::write_file_html): Ditto.
8684         (generateImages): Ditto.
8685         (abs): Removed.
8686         * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
8688         * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
8690         * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
8691         * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
8692         index_search_item::search1): Ditto.
8693         * src/roff/troff/node.h (width_list): Reorder members.
8694         * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
8695         (lookup_warning): Ditto.
8696         (prepend_string): Commented out.
8697         * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
8698         * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
8699         * src/preproc/tbl/main.cc (process_format): Ditto.
8700         * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
8701         compiler warnings.
8702         * src/preproc/pic/pic.cc: Updated.
8703         * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
8704         * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
8705         * src/preproc/refer/command.cc (execute_command): Ditto.
8706         * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
8707         * src/preproc/refer/token.cc (lookup_token): Ditto.
8708         * src/preproc/soelim/soelim.cc: Ditto.
8709         * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
8710         (isHexDigit): Commented out.
8711         (pushBackBuffer::isString): Remove unused variable.
8712         * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
8713         warning.
8714         * src/devices/grops/psrm.cc (resource_manager::lookup_font,
8715         resource_manager::read_resource_arg, read_one_of, parse_extensions):
8716         Ditto.
8717         * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
8718         * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
8719         lookup_paper_size): Ditto.
8720         * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
8721         (text_glob, element_list): Reorder members.
8722         * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
8723         compiler warning.
8724         * src/devices/grohtml/html-text.h (html_text::emit_space): Change
8725         return value to `void'.
8726         * src/devices/grohtml/output.cc (word_list::word_list): Fix order
8727         of initializers.
8728         * src/devices/grohtml/html.h (simple_output::check_newline,
8729         simple_output::space_or_newline, simple_output::enable_newlines):
8730         Add return value.
8731         * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
8732         compiler warnings.
8733         * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
8734         * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
8735         output_ligatures, output_charset, read_map): Ditto.
8736         * src/utils/lookbib/lookbib.cc (main): Ditto.
8737         * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
8738         (do_file): Fix typo (`=' -> `==').
8739         * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
8740         * src/utils/addftinfo/addftinfo.cc (main): Ditto.
8742 2001-04-18  Ruslan Ermilov  <ru@FreeBSD.org>
8744         * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
8745         Fix usage of GROFF_BIN_PATH.
8746         * src/roff/nroff/nroff.man: Updated.
8748 2001-04-18  Werner LEMBERG  <wl@gnu.org>
8750         * NEWS: Fixing typos.
8751         Updated.
8753 Version 1.17 released
8754 =====================
8756 2001-04-17  Werner LEMBERG  <wl@gnu.org>
8758         * tmac/Makefile.sub (install-data): mdoc.local-s is in current
8759         directory, not in $(srcdir).
8761 2001-04-16  Werner LEMBERG  <wl@gnu.org>
8763         * doc/groff.texinfo: More info on conditionals.
8765 2001-04-15  Werner LEMBERG  <wl@gnu.org>
8767         * doc/groff.texinfo: Added some info about groff internals.
8769         * src/roff/troff/node.cc (make_glyph_node): Emit warning message
8770         about missing special character only if the name is non-null.
8772 2001-04-14  Werner LEMBERG  <wl@gnu.org>
8774         Removing the grohtml-old device driver which is now obsolete.
8776         * src/devices/grohtml-old/*: Removed.
8777         * font/devhtml-old/*: Removed.
8778         * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
8779         Remove comments.
8780         * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
8781         * test-groff (PATH): Updated.
8782         * tmac/Makefile.sub (NORMALFILES): Updated.
8783         * tmac/an-old.tmac: Remove special code for html-old device.
8784         Replace `html-or-html-old' register with `an-html'.
8785         * tmac/eqnrc: Updated.
8786         * tmac/html-old.tmac: Removed.
8787         * tmac/troffrc, tmac/troffrc-end: Updated.
8788         * tmac/www.tmac: Remove special code for html-old device.
8789         Replace `html-or-html-old' register with `www-html'.
8791         * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
8792         src/libs/libgroff/htmlindicate.cc (graphic_end),
8793         include/htmlindicate.h, src/preproc/grn/*.cc,
8794         src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
8795         single argument for consistency with rest of source code.
8797         * aclocal.m4, tmac/an-old.tmac: Fix copyright.
8799 2001-04-13  Ruslan Ermilov  <ru@FreeBSD.org>
8801         * src/roff/troff/troff.man: Fixing typos.
8803 2001-04-13  Werner LEMBERG  <wl@gnu.org>
8805         * doc/pic.ms: Fixing many font switches.
8806         * doc/groff.texinfo: Fixes, additions.
8807         * MORE.STUFF: Updated.
8809 2001-04-12  Gaius Mulley  <gaius@glam.ac.uk>
8811         * src/devices/grohtml/grohtml.man: Updated manual page regarding
8812         simple anchor.
8813         * src/preproc/html/pre-html.cc (createImage): Fixed right hand
8814         cropping of images.
8815         (removeTempFiles): New function to tidy up temporary files.
8816         * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
8817         Many fixes to do with the new inline suppress node and image regions
8818         are much tighter.
8819         * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
8820         (generate_img_src): New function.
8821         (html_printer::do_auto_image): Utilizes it.
8822         (do_heading, do_title): Include inline images within their contents.
8823         (html_printer::begin_page): Tidied up comments that are issued to
8824         the html output file.
8825         (html_printer::do_fill): Fixed so that `.nf' works with fonts other
8826         than courier.
8827         (text_glob::is_br): New method used by do_heading.
8828         * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
8829         equivalent diversion.
8830         * src/include/html-strings.h: Altered image tags to reflect the
8831         inline image node.
8832         * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
8833         parameter.
8834         * src/preproc/eqn/main.cc: Will suppress generation of image tags if
8835         it is already inside a pic image.  Only emit tags if the argument
8836         `-Tps:html' is present.
8837         * src/preproc/tbl/main.cc: Changes to reflect additional
8838         `html_end_suppress' parameter.
8839         * src/roff/troff/env.cc: Only emit eol tag if a node has been
8840         emitted since the last eol tag was written.
8841         * src/roff/troff/env.h: New boolean `emitted_node'.
8842         * src/roff/troff/input.cc (do_suppress): Handles extra suppress
8843         nodes \O3, \O4, \O5.  No longer use `output_low_mark_miny'.
8844         * src/roff/troff/node.cc (check_charinfo): New method. 
8845         (troff_output_file::determine_line_limits): Alterations to limit
8846         checking.
8847         * tmac/www.tmac: Changes to reflect new suppress nodes.
8848           
8849 2001-04-12  Bruno Haible  <haible@clisp.cons.org>
8851         * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
8852         Escape the html_glyph in the buffer.
8853         (str_translate_to_html): Output the unescaped escaped_char.
8854         * src/devices/grohtml/html-text.cc (issue_table_begin): Set
8855         `frame=void', not `frame=none'.  Add `border=0'.
8857 2001-04-12  Werner LEMBERG  <wl@gnu.org>
8859         * PROBLEMS: Add some words on how to avoid wrapper macros.
8861 2001-04-11  Blake McBride  <blake@florida-software.com>
8863         * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
8865 2001-04-11  Werner LEMBERG  <wl@gnu.org>
8867         * font/devlbp/Makefile.sub (CLEANADD): Set it.
8868         * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
8869         * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
8870         * Makefile.sub (DISTCLEANFILES): Here.
8872         * libs/libgroff/new.cc: Include `nonposix.h'.
8873         * win32-diffs: Updated.
8875 2001-04-10  Ruslan Ermilov  <ru@FreeBSD.org>
8877         Added skeleton macro for defunct macros.
8879         Updated documentation.
8881         When inside displays, an empty input line warning should be
8882         suppressed.  If another macro call is put inside a display,
8883         all subsequent empty lines found in that display caused a
8884         warning to be emitted.
8886         * tmac/doc.tmac (doc-defunct-macro): New macro.
8887         (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
8888         (doc-restore-global-vars): Fixed typo.
8889         (doc-empty-line): Check the `doc-display-depth' register to
8890         determine whether we are inside display or not.
8892         * tmac/doc-common: Removed `Or' and `Sf' registers.
8893         Moved obsolete `Ds' macro to doc.tmac.
8895         * tmac/groff_mdoc.man: Bump document date.
8896         Document `.Vt' under ``Variable Types''.
8897         Removed documentation for obsolete `.Or' macro.
8899 2001-04-10  Werner LEMBERG  <wl@gnu.org>
8901         * NEWS: Updated.
8902         * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
8904 2001-04-10  Bruno Haible  <haible@clisp.cons.org>
8906         * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
8907         (usage): Add stream argument. Don't exit.
8908         * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
8909         Write --version output to stdout, not stderr.
8910         (usage): Add stream argument. Don't exit.
8911         * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
8912         (usage): Add stream argument. Don't exit.
8913         * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
8914         constants.
8915         (usage): Add stream argument. Don't exit.
8916         (main): Write --help output to stdout, not stderr.
8917         * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
8918         (usage): Add stream argument. Don't exit.
8919         * src/devices/grops/ps.cc (main): Accept --help and --version.
8920         (usage): Add stream argument. Don't exit.
8921         * src/devices/grotty/tty.cc (main): Accept --help and --version.
8922         (usage): Add stream argument. Don't exit.
8923         * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
8924         (main): Accept --help and --version.
8925         * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
8926         (main): Accept --help and --version.
8927         * src/preproc/html/pre-html.cc (usage): Add stream argument.
8928         (scanArguments): Accept --help and --version.
8929         * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
8930         (main): Accept --help and --version.
8931         * src/preproc/refer/refer.cc (main): Accept --help and --version.
8932         (usage): Add stream argument. Don't exit.
8933         * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
8934         exit.
8935         (main): Accept --help and --version.
8936         * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
8937         (main): Accept --help and --version.
8938         * src/roff/groff/groff.cc (main): Accept --help and --version.
8939         (synopsis): Add stream argument.
8940         (help): Write --help output to stdout, not stderr.
8941         (usage): Add stream argument. Don't exit.
8942         * src/roff/grog/grog.pl: Accept --help and --version.
8943         (help): New sub.
8944         * src/roff/grog/grog.sh: Accept --help and --version.
8945         * src/roff/nroff/nroff.sh: Accept --help and --version.
8946         * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
8947         (usage): Add stream argument. Don't exit.
8948         (main): Accept --help and --version.
8949         * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
8950         (usage): New function with stream argument, doesn't exit.
8951         * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
8952         (usage): New function with stream argument, doesn't exit.
8953         * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
8954         (usage): Add stream argument. Don't exit.
8955         * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
8956         (main): Accept --help and --version.
8957         * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
8958         exit.
8959         (main): Accept --help and --version.
8960         * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
8961         (main): Accept --help and --version.
8962         * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
8963         (usage): Add stream argument. Don't exit.
8965 2001-04-10  Ruslan Ermilov  <ru@freebsd.org>
8967         Fix indentation in SYNOPSIS.
8969         Updated to include changes of latest BSD mdoc version (basically,
8970         the only change is that `.Fn' and `.Fc' put a final semicolon after
8971         a function declaration in the SYNOPSIS section).
8973         * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
8974         (doc-in-synopsis-section): New variable.  Updated all related
8975         functions.
8976         (doc-indent-synopsis-active): New register.
8977         (Nd, Fn, Fo): Use it.
8978         (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
8979         `.Cd' with long argument line produces indented wrapped lines. 
8980         Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
8981         undesirable line break to be output.
8982         (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
8983         `.rs'.
8984         (Fn, Fc): Add final `;' to output.
8985         (doc-save-global-vars, doc-restore-global-vars): Updated.
8986         * tmac/doc-common: Remove `Ex' register.
8987         Updated.
8988         * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
8989         copyright.
8991 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
8993         * tmac/doc.tmac (Cd): Simplify code.
8994         * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
8996 2001-04-06  Werner LEMBERG  <wl@gnu.org>
8998         Implement continuous underlining for nroff mode.  To do that, a new
8999         request in the ditroff language has been added: `x u N' (N is 0
9000         or 1).
9002         \X and \Y are now transparent to end-of-sentence recognition.
9004         * src/include/printer.h (printer): Add `type' parameter to `special'
9005         method.
9006         * src/libs/libdriver/printer.cc (printer::special): Updated.
9007         * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
9009         * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
9010         specials of type `p'.
9011         * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
9012         * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
9013         * src/devices/grops/ps.cc (ps_printer::special): Ditto.
9014         * src/devices/grotty/tty.cc: Add new enum CU_MODE.
9015         (glyph::order): New method.
9016         (tty_printer::add_char): Use it.
9017         (tty_printer::special): New method.
9018         (tty_printer::end_page): Implement it.
9020         * src/roff/troff/node.h (special_node): Add `no_init_string' member.
9021         * src/roff/troff/node.cc (special_node::special_node): Add parameter
9022         to set `no_init_string'.
9023         (special_node::tprint_start): Use it.
9024         (special_node::same, special_node::copy): Updated.
9025         (special_node::ends_sentence): New method.
9026         (troff_output_file::start_special): Add parameter to include
9027         inititialization of special conditionally.
9029         * src/roff/troff/env.h (environment): New member `underline_spaces'.
9030         * src/roff/troff/env.cc (do_underline_special): New function.
9031         (environment::set_font): Use it.
9032         (do_underline): Use it.  This was `underline()'.
9033         (underline): Call `do_underline()'.
9034         (continuous_underline): New function which calls `do_underline()'.
9035         (environment::newline): Use `do_underline_special()'.
9036         (init_env_requests): Updated.
9038         * NEWS, man/troff_out.man: Updated.
9040 2001-04-06  Bruno Haible  <haible@clisp.cons.org>
9042         * font/devutf8/R.proto: Fix code of 'shc'.
9044 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
9046         Many fixes.  Diag lists can now be nested also; additionally,
9047         `-compact' and `-offset' are supported.
9049         * tmac/doc.tmac (doc-have-indent): Replaced with ...
9050         (doc-list-have-indent-stackXXX): A new register stack.
9051         (doc-have-diag-list): Removed.
9052         (Bl): Use `doc-list-have-indent-stackXXX'.
9053         (El): Updated.
9054         (doc-diag-list): Use `doc-compact-list-stackXXX'.
9055         (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
9056         (doc-set-vertical-and-indent): Ditto.
9057         (doc-next-list-depth): Removed.
9058         (doc-increment-list-stack): Updated.
9059         (doc-decrement-list-stack): Use `doc-list-depth' instead of
9060         `doc-next-list-depth'.
9061         (doc-end-list, doc-end-column-list): Don't use
9062         `doc-increment-list-stack'.
9063         (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
9064         (doc-save-global-vars, doc-restore-global-vars): Updated.
9065         * tmac/doc-common: Updated.
9066         * tmac/groff_mdoc.man: Updated.
9067         * NEWS: Fix typo.
9069 2001-04-02  Werner LEMBERG  <wl@gnu.org>
9071         * src/devices/grotty/grotty.man: Fix grammatical error.
9073 2001-03-30  Ruslan Ermilov  <ru@freebsd.org>
9075         Remove .Ld from mdoc package; replace it with special handling of
9076         `...'.
9078         * tmac/doc-common: Remove `Ld' register.
9079         Uncomment `doc-volume-ds-*' strings.
9080         Remove `doc-operating-system-default'.
9081         (Os): Updated.
9082         * tmac/doc-syms (Ld): Removed.
9083         * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
9084         `...' specially.
9085         * NEWS: Updated.
9087         * tmac/groff_mdoc.man: Many fixes and updates.
9089 2001-03-29  Werner LEMBERG  <wl@gnu.org>
9091         * tmac/troffrc-end: Protect data with `.do'.  Reported by T. Kurt
9092         Bond <tkb@tkb.mpl.com>.
9093         * tmac/www.tmac: Save compatibility mode.
9095 2001-03-28  Ruslan Ermilov  <ru@freebsd.org>
9097         * tmac/groff_mdoc.man: Many fixes.
9099 2001-03-28  Werner LEMBERG  <wl@gnu.org>
9101         * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
9102         isn't recognized.
9104 2001-03-27  Werner LEMBERG  <wl@gnu.org>
9106         * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
9107         diversion.  This fixes overlong tags.
9109 2001-03-26  Werner LEMBERG  <wl@gnu.org>
9111         * doc/groff.texinfo: Fixed and improved documentation of fonts.
9112         * tmac/doc-syms: Fix error messages.
9113         * tmac/an-old.tmac: Remove incorrect double backslashes.
9115 2001-03-24  Ruslan Ermilov  <ru@freebsd.org>
9117         * tmac/Makefile.sub: Strip mdoc.local also
9118         * tmac/strip.sed: Fixed.
9120 2001-03-24  Werner LEMBERG  <wl@gnu.org>
9122         * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
9123         selecting the font size.
9124         * tmac/groff_mdoc.man, NEWS: Document it.
9126 2001-03-23  Werner LEMBERG  <wl@gnu.org>
9128         * src/roff/troff/div.cc (save_vertical_space): Add default argument
9129         to `sv' request.
9130         * src/roff/troff/env.cc (family_change): Make `.fam' accept no
9131         argument to restore previous font family.
9132         * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
9134         * doc/groff.texinfo: More fixes and additions (mainly for font
9135         manipulating commands).
9137         * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
9138         * tmac/groff_mdoc.man: This.  The quick reference has been removed.
9139         * tmac/Makefile.sub, NEWS: Updated.
9141 2001-03-23  Werner LEMBERG  <wl@gnu.org>
9143         Replaced mdoc implementation.  The new version is `state of the
9144         art', using almost all new features of groff 1.17 -- it won't run
9145         with older versions.
9147         * tmac/doc.tmac: Completely rewritten.
9148         * tmac/doc-common: Ditto.
9149         * tmac/doc-nroff: Ditto.
9150         * tmac/doc-ditroff: Ditto.
9151         * tmac/doc-syms: Ditto.
9152         * tmac/mdoc.local: New file.
9153         * tmac/groff_mdoc.samples.man: Replaced with ...
9154         * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
9155         * tmac/strip.sed: Updated.
9156         * tmac/Makefile.sub: Updated.
9157         * INSTALL: Updated.
9159         * tmac/groff_man.man: Add `man.local' to the FILES section.
9161 2001-03-22  Werner LEMBERG  <wl@gnu.org>
9163         * doc/groff.texinfo: Added many @noindent.
9164         Replaced @end_Example -> @endExample.
9165         Added info whether registers are r/o.
9166         Many other additions and fixes.
9168 2001-03-21  Werner LEMBERG  <wl@gnu.org>
9170         * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
9171         in makeinfo of texinfo 4.0) to be used in @Def* macros.
9172         Improved @Def* macros: Now the exact syntax of request, register,
9173         and escapes is shown.
9174         Added macros for parentheses and brackets to be used in @Def*.
9175         Many fixes and improvements of the documentation.
9177 2001-03-20  Werner LEMBERG  <wl@gnu.org>
9179         * doc/groff.texinfo: Added new index: `st' (for strings).
9180         Added macros @Defstr(x).
9181         Added macro @Example (adding @group).
9182         Other minor improvements.
9184 2001-03-19  Werner LEMBERG  <wl@gnu.org>
9186         * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
9187         `rq' for requests.  `fn' is no longer used.
9188         Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
9189         Removed @Deffn(x).
9191         * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
9192         number with name of man page.
9194 2001-03-19  Larry Kollar  <kollar@alltel.net>
9196         * doc/groff.texinfo: Complete revision.  Added many @Deffn to gain
9197         consistency.
9199 2001-03-19  Werner LEMBERG  <wl@gnu.org>
9201         * man/groff_font.man: Document `prepro', `postpro', and `print'.
9202         * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
9203         * src/devices/grohtml/grohtml.man: Fixing typos.
9205 2001-03-19  Gaius Mulley  <gaius@glam.ac.uk>
9207         * tmac/s.tmac (@IP): Pass `.ip' html tag.
9208         * tmac/groff_mwww.man: Remove .LINE macro
9209         * tmac/www.tmac (LINE): Add `.ti'.
9211         * src/devices/grohtml/post-html.cc (html_printer): New member
9212         `indent'.
9213         (html_printer::emit_raw): Use it.
9214         (html_printer::do_linelength): Ditto.
9215         (html_printer::do_pageoffset): Ditto.
9216         (html_printer::do_indentation): Ditto.
9217         (html_printer::do_tempindent): Ditto.
9218         (html_printer::do_break): Ditto.
9219         (html_printer::begin_page): Ditto.
9220         (html_printer::do_indentedparagraph): New function.
9221         (html_printer::troff_tag): Handle `.ip'.
9222         * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
9223         Add `<td width=...>' handling.
9224         (html_text::do_table): Add parameter.
9225         (html_text::do_indent): Updated.
9226         * src/devices/groohtml/html-text.h: Updated.
9228 2001-03-16  Gaius Mulley  <gaius@glam.ac.uk>
9230         Introduced simple html tables to implement indentation.
9232         * src/devices/grohtml/html.h (word, word_list): New structures.
9233         (simple_output): Use it.
9234         * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
9235         (html_printer): Improve indentation handling.
9236         (html_printer::emit_raw): Set `in_table' element.  Handle
9237         indentation if set.
9238         (html_printer::write_header): Move conditional downwards.
9239         Don't allow whitespace in tags.
9240         (html_printer::do_linelength): Handle line length and indentation
9241         conditionally.
9242         (html_printer::do_pageoffset): Handle indentation conditionally.
9243         (html_printer::do_indentation): Ditto.
9244         (html_printer::do_tempindent): New function member.
9245         (html_printer::do_fill): Take care of indentation.
9246         (html_printer::do_flush): Finish table.
9247         (html_printer::do_links): Ditto.
9248         (html_printer::do_break): New function for handling `.br' and `.ti'.
9249         (html_printer::troff_tag): Use it.
9250         Handle `.ti'.
9251         (html_printer::flush_globs): Fix.
9252         (html_printer::flush_page): Finish table.
9253         (html_printer::html_printer): Fix error message.  Set up
9254         `linelength'.
9255         (html_printer::add_to_sbuf): Remove special handling of character
9256         code 255.
9257         (to_unicode): Remove `stop()'.
9258         (html_printer::write_title): Cleanup.
9259         (html_printer::begin_page): Use `put_string()'.  Handle indentation.
9260         (html_printer::~html_printer): Flush text and end the line.
9261         Use `put_string()'.
9262         * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
9263         * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
9264         emission of tags.
9265         (html_text::start_tag): Disable newlines.
9266         (html_text::table_is_void): New function.
9267         (html_text::issue_table_begin): Ditto.
9268         (html_text::issue_table_end): Ditto.
9269         (html_text::push_para): Better table handling.
9270         (html_text::do_indent): New function.
9271         (html_text::do_table): Ditto.
9272         (html_text::done_table): Ditto.
9273         (html_text::do_tt): Handle PRE_TAG.
9274         (html_text::is_in_table): New function.
9275         (html_text::check_emit_text): Handle tables.
9276         (html_text::do_emittext): Use `nl()'.
9277         (html_text::do_para): Handle table.
9278         (html_text::remove_def): New function.
9279         * src/devices/grohtml/output.cc (word, word_list): Implement
9280         methods.
9281         (simple_output::end_line): Flush last word.
9282         (simple_output::simple_comment): Ditto.
9283         (simple_output::begin_comment): Recoded.
9284         (simple_output::end_comment): Ditto.
9285         (simple_output::comment_arg): Removed.
9286         (simple_output::check_newline): Improve test and flush last word.
9287         (simple_output::space_or_newline): Improved.
9288         (simple_output::write_newline): Replaced with...
9289         (simple_output::nl): This.
9290         (simple_output::put_raw_char): Flush last word.
9291         (simple_output::check_space): Removed.
9292         (simple_output::put_translated_string): Ditto.
9293         (simple_output::put_string): Simplified.
9294         (simple_output::put_number): Updated.
9295         (simple_output::put_float): Ditto.
9296         (simple_output::put_symbol): Removed.
9297         (simple_output::enable_newlines): Add `check_newline()'.
9298         (simple_output::flush_last_word): New function.
9300         * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
9301         * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
9303         * tmac/s.tmac (@PP, @IP): Add html conditional code.
9304         * tmac/an-old.tmac (TP): Ditto.
9306 2001-03-09  Ruslan Ermilov  <ru@freebsd.org>
9308         * mdate.sh: Make it POSIX compliant.
9310 2001-03-09  Werner LEMBERG  <wl@gnu.org>
9312         Added the `return' request to end a macro immediately.  It simply
9313         pops iterators from the input stack until a macro iterator is found.
9315         * src/roff/troff/input.cc (input_iterator::is_macro,
9316         macro_iterator::is_macro): New member.
9317         (input_return_boundary): New class to signal an immediate return
9318         to while_request().
9319         (input_stack::add_return_boundary, input_stack::is_return_boundary):
9320         New functions.
9321         (input_stack::clear): Use it.
9322         (input_stack::pop_macro): New function.
9323         (while_request): Use `is_return_boundary()'.
9324         (return_macro_request): New function.
9325         (init_input_requests): Use it.
9327         * src/roff/troff/TODO: Updated.
9328         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9330 2001-03-08  Werner LEMBERG  <wl@gnu.org>
9332         * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
9333         cleanup.
9335 2001-03-07  Werner LEMBERG  <wl@gnu.org>
9337         Make `\B' more rigid.
9339         * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
9340         parameter.
9341         (get_number_rigidly): New function.
9342         * src/roff/troff/input.cc (do_expr_test): Use it.
9343         * src/roff/troff/token.h: Updated.
9345         * src/roff/troff/request.h: Fix typo (init_html_request ->
9346         init_markup_request).
9348 2001-03-04  Gaius Mulley  <gaius@glam.ac.uk>
9350         Fixed grohtml handling of any named glyph for glyph indexes < 0x80. 
9351         Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
9352         are now `.begin', `.end', `.image'.
9354         * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
9355         (html_printer::add_to_sbuf): Changing type of `code' parameter.
9356         Use add_char_to_sbuf().
9357         (to_unicode): New function.
9358         (char_translate_to_html): Changing type of `ch' parameter.
9359         Use `to_unicode()'.
9360         (html_printer::~html_printer): Comment out doctype string.
9361         * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
9362         instead of `.html-end'.
9363         (write_start_image): Use `.begin' and `.image' instead of
9364         `.html-begin' and `.html-image'.
9365         * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
9366         (html_begin): Renamed to ...
9367         (begin): This.
9368         (html_end): Renamed to ...
9369         (end): This.
9370         (html_image): Renamed to ...
9371         (image): This.
9372         (init_html_requests): Renamed to ...
9373         (init_markup_requests): This.
9374         * tmac/www.tmac: Updated.
9376 2001-02-28  Bram  <bram@avontuur.org>
9378         * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
9379         constructor.
9381 2001-02-26  David Leonard  <david.leonard@csee.uq.edu.au>
9383         * doc/meref.me: Fixing some typos.
9385 2001-02-16  Werner LEMBERG  <wl@gnu.org>
9387         * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
9388         method.  Return `HYPHEN_MIDDLE' if it was `\:'.
9389         * src/roff/troff/node.h: Updated.
9391 2001-02-17  Ruslan Ermilov  <ru@FreeBSD.org>
9393         * tmac/groff_tmac.man: Fix typo.
9395 2001-02-16  Werner LEMBERG  <wl@gnu.org>
9397         Fixing a bug which prevented proper end-of-sentence recognition
9398         between an `unformatted' box and the following text.  As a
9399         consequence, vertical line distances are no longer preserved in
9400         boxes after a call to `.unformat' -- because boxes aren't
9401         line-oriented (contrary to diversions), this doesn't make sense
9402         anyway.
9404         * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
9405         value.
9406         (vertical_size_node::set_unformat_flag): New method.
9407         * src/roff/troff/node.hh: Updated.
9408         * src/roff/troff/input.cc (word_space_node::reread,
9409         hmotion_node::reread): Reset `unformat' flag after usage.
9410         (unformat_macro): Append only if `set_unformat_flag()' returns
9411         non-zero.
9412         * src/roff/troff/troff.man: Updated.
9414 2001-02-15  Werner LEMBERG  <wl@gnu.org>
9416         * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
9417         documentation of `asciify' and `unformat' requests.
9419 2001-02-13  Werner LEMBERG  <wl@gnu.org>
9421         Redesigned the `unformat' request.  It is no longer connected with
9422         `asciify' but rather uses new `reread()' methods if the `unformat'
9423         flag is set.  Additionally, the handling of space characters after
9424         unformatting has been fixed so that they retain their width.
9426         * src/roff/troff/node.h (width_list): New structure to store
9427         original widths of spaces.
9428         (node): Added `unformat' member.
9429         Replaced `num_spaces' variable with `orig_width' list.
9430         * src/roff/troff/node.cc (*node::asciify,
9431         asciify_reverse_node_list): Removed `unformat_only' flag and related
9432         code.
9433         (word_space_node::asciify, word_space_node::word_space_node): Use
9434         `orig_width'.
9435         (word_space_node::~word_space_node): New destructor.
9436         (word_space_node::copy): Updated to handle `orig_width'.
9437         (hmotion_node::copy, unbreakable_space_node::copy): Updated.
9438         (*node::merge_space): Update `orig_width' list if necessary.
9439         (*node::set_unformat_flag): New methods to set the `unformat' flag.
9440         * src/roff/troff/enc.cc (environment::space_newline): Use
9441         `width_list'.
9442         (environment::space): Added method to handle space width and
9443         sentence space width as parameters.  Use `width_list'.
9444         (environment::make_tab_node): Updated.
9445         * src/roff/troff/env.h: Updated.
9446         * src/roff/troff/input.cc (word_space_node::reread,
9447         unbreakable_space_node::reread, hmotion_node::reread): New methods
9448         to handle nodes specially if `unformat' flag is set.
9449         (do_asciify_macro): Renamed back to ...
9450         (asciify_macro): This.
9451         (unformat_macro): New implementation to simply set the `unformat'
9452         flag.
9454         * MORE.STUFF: Added more info about deroff.
9456 2001-02-08  Werner LEMBERG  <wl@gnu.org>
9458         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
9459         space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
9460         and `add_self()' methods to avoid hyphenation.  For example, the
9461         hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
9462         soft hyphen after `foo'.  Now the hyphen list is correctly
9463         `foo<ignore><ignore>bar'.
9465 2001-02-05  Yoshiteru Kageyama  <yt-kage@cb3.so-net.ne.jp>
9467         * tmac/groff_tmac.man: Fix `BIR' macro.
9469 2001-02-04  Werner LEMBERG  <wl@gnu.org>
9471         A new escape sequence `\:', inserting a zero-width break point.
9473         * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
9474         * src/roff/troff/input.cc (get_copy, token::next, asciify):
9475         Implement it.
9476         * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
9477         method.
9478         (space_node): Add `was_escape_colon' member.  Add `is_escape_colon()'
9479         and `asciify()' methods.
9480         * src/roff/troff/node.cc (space_node::space_node): Updated.
9481         (space_node::asciify): Handle `was_escape_colon'.
9482         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9484         Handle `\~' similar to other comparable requests.
9486         * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
9487         label.
9488         (token::next): Move creation of an unbreakable_space_node to...
9489         (token::add_to_node_list): Here.
9491         Fix a bug which sometimes prevented hyphenation of words connected
9492         with `\~' or `\ ' (and other escape sequences handled as
9493         TOKEN_NODE).  This also fixes a hyphenation problem with boxes
9494         (after a call to the `unformat' request).
9496         * src/roff/troff/env.h (environment::possibly_break_line,
9497         environment::hyphenate_line): Introducing `start_here' parameter.
9498         * src/roff/troff/env.cc (environment::space_newline,
9499         environment::space): Use it.
9500         (environment::possibly_break_line, environment::hyphenate_line):
9501         Implement it.
9502         * src/roff/troff/input.cc (process_input_stack): Use it.
9503         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
9504         space_char_hmotion_node, overstrike_node): Add
9505         `get_hyphenation_type()' method.
9506         * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
9507         if `unformat_only' is active.
9509 2001-01-30  Werner LEMBERG  <wl@gnu.org>
9511         Implemented new read-only number register `.linetabs' which
9512         returns 1 if in line-tabs mode, 0 otherwise.
9514         * src/roff/troff/env.h (environment): Add get_line_tabs() member.
9515         * src/roff/troff/env.cc (get_line_tabs): New function.
9516         (init_env_requests): Use it.
9517         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9519         * VERSION, REVISION: Changing to 1.17.0.
9521 2001-01-28  Werner LEMBERG  <wl@gnu.org>
9523         Fixed a bug which prevented hyphenation of words which are finished
9524         with `\)'.
9526         * src/roff/troff/token.h (token): Add enum type
9527         `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
9528         * src/roff/troff/input.cc (token::next, token::description,
9529         get_line_arg, token::add_to_node_list, token::process): Use it.
9531 2001-01-27  Werner LEMBERG  <wl@gnu.org>
9533         * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
9534         * src/roff/troff/div.cc (do_divert): Use it.
9536         * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
9538 2001-01-25  Werner LEMBERG  <wl@gnu.org>
9540         Adding the `linetabs' request.  If set, tab distances are not
9541         computed relative to the input line but relative to the output line.
9543         * src/roff/troff/env.h (environment): New member `line_tabs'.
9544         * src/roff/troff/env.cc (line_tabs_request): Implement request.
9545         (environment::environment, environment::copy): Updated.
9546         (environment::distance_to_next_tab): Use `line_tabs'.
9547         (init_env_requests): Register request.
9548         * src/roff/troff/troff.man, man/groff.man, NEWS: Document it.  Other
9549         fixes.
9551 2001-01-24  Werner LEMBERG  <wl@gnu.org>
9553         Introducing a new read-only register `.int' which is set to a
9554         positive value if the last output line is interrupted (i.e., if it
9555         contains `\c').
9557         * src/roff/troff/env.cc (init_env_requests): Add it.
9558         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9560 2001-01-23  Gaius Mulley  <gaius@glam.ac.uk>
9562         * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
9563         * src/preproc/html/pre-html.cc (findPrefix): New function which
9564         generates the troff executable name via the system prefix.
9565         * src/preproc/eqn/main.cc: Modified warning message.
9567 2001-01-23  Werner LEMBERG  <wl@gnu.org>
9569         troff's `box' and `boxa' requests didn't preserve temporary
9570         indentation.
9572         * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
9573         `saved_target_text_length' members.
9574         * src/roff/troff/div.cc (do_divert): Use them.
9576         Tabs (but not yet leaders and fields) are now handled correctly by
9577         `asciify' request.
9579         * node.h (hmotion_node): Add field `was_tab'.
9580         * env.cc (environment::make_tab_node): Set it.
9581         * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
9583         Added new request `unformat' which will, contrary to `asciify',
9584         preserve font information after unformatting (i.e., only nodes
9585         dealing with horizontal space are converted back to input
9586         characters).
9588         * input.cc (asciify_macro): Renamed to ...
9589         (do_asciify_macro): this, having a new parameter `unformat_only'.
9590         (asciify_macro, unformat_macro): New; using do_asciify_macro.
9591         (init_input_requests): Added `unformat'.
9592         * node.cc (*_node::asciify), asciify_reverse_node_list: Added
9593         parameter to control asciification process.
9594         * node.h (*_node::asciify): Ditto.
9595         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9597 2001-01-20  Werner LEMBERG  <wl@gnu.org>
9599         * doc/groff.texinfo: Minor improvement of `.in' documentation.
9601 2001-01-18  Werner LEMBERG  <wl@gnu.org>
9603         * tmac/ps.tmac: Remove call of psold.tmac.
9604         * tmac/psold.tmac: Comment updated.
9605         * tmac/psnew.tmac: Removed since no longer needed.
9606         * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
9608         * font/devutf8/R.proto: Adding `shc' glyph.
9609         * font/devutf8/NOTES: Updated.
9611         * test-groff: Updated.
9613 2001-01-15  Gaius Mulley  <gaius@glam.ac.uk>
9615         First cut of the new html device driver.  Changes to pre-html and
9616         the new grohtml are too numerous to be documented here.
9618         Stuff related to `html' has been renamed to `html-old' and `html2'
9619         stuff has been renamed to `html' (including directories).  The new
9620         html device driver is therefore invoked as `-Thtml'.
9622         Added new `\O' escape to suppress output (needed by html driver).
9624         Added functions and code to pass info about input-level commands
9625         (`.in', `.fl', etc.) to html driver.
9627         Three new functions (.html-begin, .html-end, and .html-image) for
9628         better html handling: `html-begin' will execute the remaining line
9629         if at the outermost nesting level, increasing an internal counter.
9630         `html-end' does the same but decreases the internal counter.
9631         `html_image' puts its arguments into a special node (suppress_node)
9632         to define an image region.
9634         The `output' request has been removed.
9636         * tmac/html-tags.tmac: Removed.
9637         * tmac/arkup.tmac: Updated and renamed to ...
9638         * tmac/www.tmac: New file.
9639         * tmac/markup.tmac Updated and renamed to ...
9640         * tmac/mwww.tmac: New file.
9641         * tmac/Makefile.sub: Updated.
9642         * tmac/an-old.tmac: Updated.
9643         * tmac/eqnrc: Updated.
9644         * tmac/groff_man.man
9645         * tmac/groff_markup.man: Updated and renamed to ...
9646         * tmac/groff_mwww.man: New file.
9647         * tmac/groff_tmac.man: Updated.
9648         * tmac/html-old.tmac: Updated and Renamed from html.tmac.
9649         * tmac/html.tmac: Updated and renamed from html2.tmac.
9650         * tmac/pspic.tmac: Updated html support.
9651         * tmac/s.tmac: Added html output support.
9652         * tmac/troffrc, tmac/troffrc-end: Updated.
9654         * Makefile.in, doc/Makefile: Updated.
9655         * doc/groff.texinfo: Added info about new `\O' escape.
9656         * doc/homepage.ms: Use `MAILTO' macro.
9658         * font/devhtml/DESC.proto: Add `C' font.
9659         * font/devhtml/Makefile.sub: Updated.
9660         * font/devhtml/R.proto: Minor fixes.
9661         * font/devhtml-old/Makefile.sub: Updated.
9663         * src/devices/grohtml-old/Makefile.sub: Updated.
9665         * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
9666         method.
9667         * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
9668         graphic_start): Add `inline' parameter.  Update.
9669         (html_end_suppress, graphic_end): Update.
9671         * src/include/html-strings.h: New file.
9672         * src/include/htmlindicate.h: Comments updated.
9673         * src/include/printer.h: Updated.
9675         * src/preproc/eqn/main.cc (do_file, main): Updated.
9676         * src/preproc/pic/troff.cc (troff_output::start_picture,
9677         troff_output::finish_picture): Updated.
9678         * src/preproc/tbl/main.cc (process_input_file): Updated.
9680         * src/roff/groff/groff.cc (main): Updated.
9681         Pass device arguments to predrivers also.
9682         Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
9683         * src/roff/troff/env.h (environment): Updated.
9684         New elements `need_eol' and `ignore_next_eol' (for html output).
9685         * src/roff/troff/env.cc (environment::environment): Add initializers
9686         for `need_eol' and `ignore_next_eol'.
9687         (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
9688         functions.
9689         (point_size, fill, no_fill, center, right_justify, line_length,
9690         indent, temporary_indent, break_request, handle_tab): Use
9691         `add_html_tag()'.
9692         (set_tabs): Use `add_html_tag_tabs()'.
9693         (environment::add_html_tag): Updated.
9694         (environment::do_break): Updated.
9695         * src/roff/troff/div.cc (space_request, flush_output): Use
9696         `environment::add_html_tag()'.
9697         * src/roff/troff/input.cc: Updated.
9698         New variable `html_level' to indicate nested `html-begin' requests.
9699         (file_iterator::fill): Use `environment::add_html_tag_eol()'.
9700         (non_interpreted_char_node, token_node, non_interpreted_node): Add
9701         `force_tprint()' method.
9702         (token::next): Handle `\O'.
9703         (do_suppress): Implement it.
9704         (html_begin, html_end, html_image): New functions.
9705         (init_output_requests): Renamed to ...
9706         (init_html_requests): this.
9707         (main): Use it.
9708         (macro::append_str, macro::append_unsigned, macro::append_int): New
9709         methods.
9710         New variable `output_low_mark_miny' to limit minimal value of y.
9711         (reset_output_registers): Use it.
9712         (output_request): Removed.
9713         (get_output_registers): New function.
9714         * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
9715         (*_node): Added `force_tprint()' if necessary.
9716         (special_node): New elements `tf' and `get_tfont()'.
9717         (suppress_node): New class.
9718         * src/roff/troff/node.cc:
9719         New global variables `image_no' and `suppress_start_page'.
9720         (real_output_file): New method `is_on()'.
9721         (troff_output_file): New method `start_special(tfont)'.
9722         (troff_output_file::really_print_line): Use `tprint' conditionally.
9723         (real_output_file::print_line): Updated.
9724         (real_output_file::on): Updated.
9725         (*_node): Added `force_tprint()'.
9726         (special_node::special_node): Initializer updated.
9727         (special_node::same, special_node::copy, special_node::tprint_start):
9728         Updated.
9729         (get_reg_int, get_reg_str): New functions.
9730         (suppress_node::*): New methods.
9731         New global variables last_position, last_image_filename;
9732         (min): New inline function.
9733         * src/roff/troff/reg.h, src/roff/troff/request.h,
9734         src/roff/troff/troff.h: Updated.
9736 2001-01-13  Werner LEMBERG  <wl@gnu.org>
9738         * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
9739         documentation of `asciify' request.
9741 2001-01-12  Werner LEMBERG  <wl@gnu.org>
9743         * src/roff/troff/input.cc: Move definition of special characters
9744         like `ESCAPE_TILDE' to ...
9745         * src/roff/troff/input.h: New file.
9746         * src/roff/troff/Makefile.sub (HDRS): Add it.
9748         Extending the .asciify request to `unformat' space characters also.
9750         * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
9751         to count input space characters.
9752         Update constructors to take care of it.
9753         * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
9754         `ESCAPE_SPACE' instead of normal space.
9755         (word_space_node::asciify): New method.
9756         (unbreakable_space_node::asciify): New method.
9757         (word_space_node::merge_space): New method.
9758         * src/roff/troff/env.cc (environment::space_newline,
9759         environment::space): Add code to initialize `num_spaces' (using the
9760         constructor of `word_space_node').
9761         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
9762         Document it.
9764 2001-01-09  Werner LEMBERG  <wl@gnu.org>
9766         * man/groff_char.man: Use table header traps only conditionally.
9768 2001-01-09  Bjarni Ingi Gíslason  <bjarniig@hi.is>
9770         * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
9772 2001-01-08  Werner LEMBERG  <wl@gnu.org>
9774         Introducing the `box' and `boxa' requests which are similar to
9775         `di' resp. `da' but omitting a partially filled line (which is
9776         restored after ending the diversion).
9778         * src/roff/troff/div.h (diversion): Add elements to save partially
9779         filled line.
9780         * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
9781         partially filled line.
9782         (divert, divert_append): Updated.
9783         (box, box_append): New functions.
9784         (init_div_requests): Use them.
9785         * src/roff/troff/env.h (environment): do_divert() is now a friend.
9786         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9788         * doc/groff.texinfo: Fix documentation of `lf' request.
9790 2000-12-25  Werner LEMBERG  <wl@gnu.org>
9792         * src/roff/troff/troff.man, NEWS: Document `writem' request.
9794 2000-12-21  Werner LEMBERG  <wl@gnu.org>
9796         Ignore `ss' request if in compatibility mode.
9798         * src/roff/troff/input.cc: Make `compatible_flag' non-static.
9799         * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
9800         * src/roff/troff/env.cc (space_size): Use it.
9802         * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
9803         `ss' request in nroff mode.
9805         * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
9806         changes.
9808 2000-12-15  Ruslan Ermilov  <ru@FreeBSD.org>
9810         * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
9812 2000-12-13  Werner LEMBERG  <wl@gnu.org>
9814         * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
9815         * src/preproc/eqn/neqn.man: Small fixes and additions.
9817 2000-12-13  Ruslan Ermilov  <ru@FreeBSD.org>
9819         * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
9820         Fixing typo.
9822         * src/preproc/eqn/neqn.man: New file.
9824         * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
9825         negative' warning.
9827         * tmac/e.tmac: Add `T&' macro.
9828         Fix `indent cannot be negative' warning.
9829         * tmac/s.tmac: Fix `indent cannot be negative' warning.
9831 2000-12-07  Werner LEMBERG  <wl@gnu.org>
9833         * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
9835 2000-12-06  Werner LEMBERG  <wl@gnu.org>
9837         * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
9838         `alloca' symbol .
9840         * MORE.STUFF: Added info about deroff for djgpp.
9842         * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
9843         documentation of -rcR switch.
9845 2000-12-03  Werner LEMBERG  <wl@gnu.org>
9847         * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
9848         if -rcR=1 (which is now the default in nroff mode), a single, very
9849         long page is created instead of multiple pages: All `ne' and `wh'
9850         requests are put into conditionals; a new macro `an-end' is added to
9851         be called with `em'.
9853         Some other minor cleanups.
9855         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
9857 2000-12-02  Werner LEMBERG  <wl@gnu.org>
9859         Fixing a bug which prevented hyphenation in words followed
9860         immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
9862         * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
9863         Adding possibly_break_line().
9864         * src/roff/troff/env.h (environment): Make possibly_break_line()
9865         public.
9867         Make `\~' usable in .tr request.
9869         * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
9870         (token): Add stretchable_space().
9871         * src/roff/troff/input.cc (token::next, token::delimiter,
9872         token::description, process_input_stack, do_translate,
9873         add_to_node_list, token::process): Use it.
9874         * src/roff/troff/node.h (node): Add fourth parameter to add_char()
9875         for adjusting the space.
9876         * src/roff/troff/node.cc (node::add_char): Implement it.  Add code
9877         for stretchable space.
9878         * src/roff/troff/input.cc (token::add_to_node_list): Use it.
9879         (make_node): Add code for stretchable space.
9880         * src/roff/troff/env.cc (environment::add_char): Use it.
9881         * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
9882         (get_copy, token::next, transparent_translate, asciify): Use it.
9884         * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
9885         doc/groff.texinfo: Updated.
9886         * man/groff.man: Small reorderings.
9888 2000-11-23  Werner LEMBERG  <wl@gnu.org>
9890         * NEWS: Fixes.
9891         * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
9892         option.
9893         * src/roff/troff/input.cc (main): Add `config_macro_path' and
9894         `safer_macro_path' to -M option.
9895         * src/roff/troff/troff.man: Fixes.
9897 2000-11-22  Werner LEMBERG  <wl@gnu.org>
9899         Use safer path (except for config files) if -U isn't specified.  Add
9900         a special macro path (without home and current directory) for config
9901         files.  Add home directory to unsafe path for consistency.  Don't
9902         include the home directory in the font path.
9904         * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
9905         `macro_path'.
9906         * src/include/macropath.h: Add `config_macrp_path'.
9907         * src/libs/libgroff/fontfile.cc: Fix font path.
9908         * src/roff/troff/input.cc (process_startup_file): Use
9909         `config_macro_path'.
9910         (main): Select unsafe path if -U is given.
9912         * src/preproc/eqn/main.cc (main): Fixing search path for
9913         configuration file.
9914         * src/preproc/eqn/eqn.man: Updated.
9916         * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
9917         Updated.
9919         * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
9920         src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
9921         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
9922         src/devices/grotty/grotty.man: Updated.
9924         * Makefile.in: Fix comments.
9926 2000-11-17  Werner LEMBERG  <wl@gnu.org>
9928         * tmac/safer.tmac: Empty file added (again) for compatibility
9929         reasons.
9930         * tmac/Makefile.sub: Updated.
9932 2000-11-16  Werner LEMBERG  <wl@gnu.org>
9934         * src/devices/grodvi/dvi.cc (main),
9935         src/devices/grohtml2/post-html.cc (main),
9936         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
9937         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
9938         (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
9939         (main), src/preproc/html2/pre-html.cc (main),
9940         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
9941         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
9942         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
9943         (main), src/utils/hpftodit/hpftodit.cc (main),
9944         src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
9945         (main), src/utils/lookbib/lookbib.cc (main),
9946         src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
9947         (main): Use stdout for -v.
9948         * src/roff/groff/groff.cc (run_commands),
9949         src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
9950         to make direct printing to stdout possible.
9951         * src/roff/groff/pipeline.h: Updated.
9953         * src/utils/afmtodit/afmtodit.pl: Add -v switch.
9954         * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
9955         * src/utils/afmtodit/afmtodit.man: Updated.
9957         * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
9958         (version): New function.
9959         (usage): Updated.
9960         * src/utils/addftinfo/addftinfo.man: Updated.
9962         * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
9963         Fixing copyright dates.
9965         * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
9966         replacing it.
9968         * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
9969         version_string.
9971         * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
9973 2000-11-15  Werner LEMBERG  <wl@gnu.org>
9975         In all programs, make -v return immediately with exit status 0 to
9976         be compliant with the GNU standard.
9978         * src/devices/grodvi/dvi.cc (main),
9979         src/devices/grohtml2/post-html.cc (main),
9980         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
9981         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
9982         (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
9983         (main), src/preproc/html2/pre-html.cc (main),
9984         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
9985         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
9986         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
9987         (main): Implement it.
9988         * NEWS: Updated.
9990         * src/roff/groff/groff.cc (main): Add copyright notice.  Add refer
9991         and postprocessors to the -v option.
9993         * src/roff/grog/grog.pl: Implement -v.
9994         * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
9995         * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
9997         * src/roff/nroff/nroff.sh: Implement -v.
9998         * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
9999         * src/roff/nroff/nroff.man: Updated.
10000         
10001         * src/preproc/eqn/main.cc (main): Fix comment typo.
10003         * MORE.STUFF: Added info about djgpp port of grap.
10005 2000-11-14  Werner LEMBERG  <wl@gnu.org>
10007         * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
10008         mode (or rather, implemented non-compatibility mode).
10009         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
10011         * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
10012         replacing it -- we don't find gxditview otherwise.
10013         * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
10015         * src/preproc/pic/depend: Removed.  Unnecessary.
10017         Implemented dummy keyword `solid' in pic for compatibility with
10018         AT&T pic.
10020         * lex.cc (lookup_keyword): Added `solid'.
10021         * pic.y: Added SOLID with dummy rule.
10022         * pic.cc, pic_tab.h: Regenerated.
10023         * doc/pic.ms: Updated.
10025 2000-11-13  Werner LEMBERG  <wl@gnu.org>
10027         For security reasons, don't use the current directory but the home
10028         directory while searching and scanning troffrc and troffrc-end.
10029         Similarly, replace the current directory with the home directory
10030         in the font path.
10032         * Makefile.in (fontpath, tmacpath): Remove current directory.
10034         * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
10035         two parameters `add_home' and `add_current'.
10036         (search_path::~search_path, search_path::command_line_dir,
10037         search_path::open_file): Remove tests for `dirs' being zero.
10038         * src/include/searchpath.h: Adjust.
10039         * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
10040         `safer_macro_path'.
10041         * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
10043         * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
10044         * src/roff/troff/input.cc: Use `mac_path', initialized with
10045         `macro_path'.
10046         (process_startup_file): Set `mac_path' to `safer_macro_path'.
10047         * src/roff/troff/env.cc: Use `mac_path'.
10049         * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
10051         * NEWS, man/roff.man, src/roff/troff/troff.man,
10052         src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
10053         Updated.
10055 2000-11-12  Werner LEMBERG  <wl@gnu.org>
10057         * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
10059         * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
10060         * configure.in: Fix typo in comment.
10061         * configure: Regenerated.
10063         * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
10064         copyright dates.
10066 2000-11-08  Werner LEMBERG  <wl@gnu.org>
10068         Add system tmac directory (/usr/local/lib/groff/site-tmac).
10070         * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
10071         (uninstall_dirs): Add $(libdir), $(libprogramdir), and
10072         $(systemtmacdir).
10073         Use @libdir@.
10074         * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
10075         * tmac/Makefile.sub (install_data): Create
10076         $(systemtmacdir) and $(localtmacdir).
10077         (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
10078         * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
10079         NEWS, doc/groff.texinfo: Updated and minor fixes.
10081         * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
10082         * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
10083         $(systemtmacdir) since the wrapper files are platform-dependent.
10085 2000-11-01  Werner LEMBERG  <wl@gnu.org>
10087         * doc/groff.texinfo: Fix typo.
10089 2000-10-26  Werner LEMBERG  <wl@gnu.org>
10091         Convert macros `tmac.XXX' to `XXX.tmac'.  Special cases:
10092           tmac.doc.old -> doc-old.tmac
10093           tmac.an.old  -> an-old.tmac
10095         * tmac/tmac.*: Moved to ...
10096         * tmac/*.tmac: this.
10097         * tmac/man.local: Fix comment.
10098         * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
10099         tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. 
10100         Added some `FILES' sections.  More use of @...@ directives.  Other
10101         minor updates.
10102         * arch/djgpp/README, font/devutf8/NOTES: Updated.
10103         * doc/homepage.ms, doc/groff.texinfo: Updated.
10104         * man/groff.man, man/roff.man: Updated.
10105         * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
10106         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
10107         src/devices/grotty/grotty.man: Updated.
10108         * src/preproc/pic/pic.man: Updated.
10109         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
10110         instead of -mdoc.old.
10111         * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
10112         * src/roff/nroff/nroff.man: Updated.
10113         * NEWS: Updated.
10115         * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
10117         * tmac/mm.diff: Removed -- it has no use now since the mm package
10118         is part of groff.
10120         * tmac/*: Removed trailing spaces.
10122         * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
10123         the tmac subdirectory also).
10125         * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
10126         * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
10127         stuff since it is no longer needed.
10129         * README, PROBLEMS: Updated.
10131 2000-10-25  Werner LEMBERG  <wl@gnu.org>
10133         Invert current behaviour: Search first FOOBAR.tmac, then
10134         tmac.FOOBAR.
10136         * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
10137         (open_mac_file, macro_source): Implement it.
10138         * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
10139         doc/groff.texinfo, NEWS: Document it.
10141         * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
10142         Small documentation improvements.
10144         * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
10145         subdirectory also).
10147         * font/devps/Makefile.sub: Fix rules for dingbats.*map.
10149 2000-10-24  Werner LEMBERG  <wl@gnu.org>
10151         Add local tmac directory (groff/site-tmac).
10153         * Makefile.in: Add $(localtmacdir).
10154         (uninstall_dirs): Add $(localtmacdir).
10155         * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
10156         * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
10157         in $(localtmacdir).  Create $(localtmacdir).
10158         * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
10159         Updated and minor fixes.
10161         Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
10163         * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
10165 2000-10-23  Werner LEMBERG  <wl@gnu.org>
10167         Move hyphen.us to tmac directory.
10169         * src/roff/troff/hyphen.us: Removed.
10170         * src/tmac/hyphen.us: Added.
10171         * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
10173         Change installation structure for data files from .../groff/... to
10174         .../groff/<version><revision>/... to be conform with other GNU
10175         programs.
10177         * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
10178         doc/Makefile: Implement it.
10179         * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
10180         * configure: Updated.
10181         * arch/djgpp/README, font/devutf8/NOTES: Use it.
10182         * NEWS: Document it.
10183         * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
10184         @MACRODIR@ instead of hard-coded directories.
10186 2000-10-22  Werner LEMBERG  <wl@gnu.org>
10188         Implement $GROFF_BIN_PATH environment variable (which defaults to
10189         $bindir) used for child programs of groff and similar wrappers.
10191         * gendefs.sh: Improve documentation.
10192         * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
10193         src/preproc/eqn/Makefile.sub (neqn),
10194         src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
10195         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
10196         $GROFF_BIN_PATH.
10197         * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
10198         $GROFF_PATH__ (the latter for communication with troff).
10199         * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
10200         set.
10201         * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
10202         doc/groff.texinfo: Document it.
10204         * doc/groff.texinfo: Improve documentation of troff's -a option.
10206 2000-10-17  Gaius Mulley  <gaius@glam.ac.uk>
10208         * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
10209         non-intrusive eol marker.
10210         (troff_output_file::determine_line_limits): New function.
10211         (troff_output_file::draw): Use it.
10212         * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
10213         output_pending_lines() instead of output_line().
10214         * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
10215         * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
10216         createImage): Small fixes.
10217         
10218 2000-10-14  Werner LEMBERG  <wl@gnu.org>
10220         Replace tmac.safer with a real secure solution.
10222         * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
10223         system_request, pipe_output): Disable requests if in safer mode.
10224         * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
10225         * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
10226         * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
10227         doc/groff.texinfo, src/roff/groff/groff.man,
10228         src/roff/troff/troff.man, arch/djgpp/README: Updated.
10230         * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
10231         (resource_manager::output_prolog): Replace setenv() with putenv().
10233 2000-10-09  Werner LEMBERG  <wl@gnu.org>
10235         * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
10236         src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
10237         src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
10238         src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
10239         compilation errors with some compilers.  It seems that this code
10240         is no longer necessary -- if yes, it is easy to add some #ifdef's
10241         for that particular old-fashioned compiler.
10243         * MORE.STUFF: Added info about Meta-tbl.
10245         * doc/groff.texinfo: Added more info about `.if "..."..."'.
10247 2000-10-07  Werner LEMBERG  <wl@gnu.org>
10249         Adding a new escape sequence \B'...': If the string between
10250         the delimiters is a valid numeric expression, return the character
10251         `1', and `0' otherwise.  This is an analogon to \A.
10253         * src/roff/troff/input.cc (do_expr_test): Implement it.
10254         (token::next): Use it.
10255         * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
10257         * tmac/tmac.trace: Made independent from escape character.
10259 2000-10-06  Werner LEMBERG  <wl@gnu.org>
10261         Adding a new request .dei: define indirect.  The first and second
10262         parameter of .dei are taken from string registers instead directly;
10263         this very special request is needed to make tmac.trace independent
10264         from the escape character (which might even be disabled).
10266         * src/roff/troff/input.cc (do_define_macro): Implement it.
10267         (define_macro_indirect): New function.
10268         (init_input_requests): Use it.
10270         Adding two requests .ecs and .ecr: Save and restore the escape
10271         character.  These two requests are needed to make tmac.trace
10272         independent from the escape character (which might even be
10273         disabled).
10275         * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
10276         Implement it.
10277         (init_input_requests): Use it.
10279         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10281 2000-09-22  Ricardo Soares Guimarães  <ricardo@conectiva.com.br>
10283         Adding a new option -P and new environment variable GROPS_PROLOGUE
10284         to grops, selecting a different prologue file (minor modifications
10285         by WL).
10287         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
10288         src/devices/grops/ps.cc (main): Implement it.
10289         * src/devices/grops/grops.man, NEWS: Document it.
10291 2000-09-22  Werner LEMBERG  <wl@gnu.org>
10293         * INSTALL: Add info about selecting paper format.
10295 2000-09-21  Werner LEMBERG  <wl@gnu.org>
10297         * src/roff/troff/input.cc (main): Fixing compiler warning.
10298         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
10299         strings.h from the former to the latter.
10300         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
10301         stuff from the former to the latter.
10303 2000-09-11  Werner LEMBERG  <wl@gnu.org>
10305         Implementing two new requests .tm1 and .tmc: The former is similar
10306         to .tm but can output leading spaces; its syntax is similar to
10307         defining a string, i.e., a `"' can be used to mark the beginning of
10308         the string to be written to stderr: `.tm1 " test'.  The latter is
10309         similar to .tm1 but doesn't write out a final newline character.
10311         * src/roff/troff/input.cc (terminal1, terminal_continue,
10312         do_terminal): New functions.
10313         (init_input_requests): Use them.
10314         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10316 2000-09-09  Werner LEMBERG  <wl@gnu.org>
10318         * tmac/groff_mdoc.samples.man: Small fixes.
10320 2000-09-08  Werner LEMBERG  <wl@gnu.org>
10322         * tmac/groff_mdoc.man: Fixing typo.
10324 2000-09-02  Werner LEMBERG  <wl@gnu.org>
10326         Implementing a .nop request which does nothing.
10328         * src/roff/troff/input.cc (nop_request): New function.
10329         (init_input_requests): Use it.
10330         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10332 2000-09-01  Werner LEMBERG  <wl@gnu.org>
10334         * doc/groff.texinfo: Added some comments.
10336 2000-08-30  Werner LEMBERG  <wl@gnu.org>
10338         * src/roff/troff/TODO: Updated.
10340 2000-08-25  Werner LEMBERG  <wl@gnu.org>
10342         * doc/groff.texinfo: Fix comment how to compile the DVI file.
10344 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
10346         * font/devps/generate/Makefile (SHELL): Define explicitly to
10347         "/bin/sh", for non-Unix platforms.
10348         (extraclean): Use a more portable "" quoting instead of a
10349         backslash (which doesn't work on DOS/Windows).
10350         
10351         * font/devlj4/generate/Makefile (extraclean): Ditto.
10353         * font/devdvi/generate/Makefile (extraclean): Ditto.
10355 2000-08-25  Werner LEMBERG  <wl@gnu.org>
10357         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
10358         src/roff/troff/troff.man: Document Eli's latest changes.
10360 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
10362         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
10363         macro file names of the form NAME.tmac as well as tmac.NAME.
10365 2000-08-25  Werner LEMBERG  <wl@gnu.org>
10367         * src/include/posix.h: Remove definition of FILENAME_MAX.
10369         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
10370         `sys_fatal' and `stop' function().
10372         * test-groff: Updated.
10374 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
10376         Added the new troff command .output <arg> to suppress output (while
10377         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
10378         registers (for passing the output dimensions to the output device).
10380         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
10381         parameter.
10382         * src/roff/troff/node.h, src/roff/troff/node.cc
10383         (troff_output_file::really_print_line,
10384         ascii_output_file::really_print_line,
10385         supress_output_file::really_print_line): Use `width' parameter.
10386         (troff_output_file::really_on, troff_output_file::really_off,
10387         output_file::on, output_file::off, real_output_file::on,
10388         real_output_file::off, real_output_file::really_on,
10389         real_output_file::really_off): New functions.
10390         (real_output_file:public output_file): New variable `output_on'.
10391         (real_output_file::begin_page, real_output_file::copy_file,
10392         real_output_file::transparent_char, real_output_file::print_line):
10393         Use it.
10394         (real_output_file::print_line): Use check_output_limits.
10395         * src/roff/troff/reg.h, src/roff/troff/request.h,
10396         src/roff/troff/input.cc (assign_registers): New function to remove
10397         two `goto's.
10398         (do_ps_file): Use it.
10399         (check_output_limits, reset_output_registers, output_request,
10400         init_output_requests): New functions.
10401         (init_input_requests): Updated.
10403         Added new grohtml2 device and html2 preprocessor (coding
10404         not yet finished) which will eventually replace grohtml.
10406         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
10407         Updated.
10408         * src/include/htmlindicate.h, src/include/htmlindicate
10409         (html_begin_suppress, html_end_suppress): New functions.
10410         * src/preproc/tbl/main.cc: Use it.
10411         * src/roff/groff/groff.cc: Add support for html2 device (which will
10412         automatically invoke the html2 preprocessor).
10413         * src/roff/troff/input.cc (is_html2): New variable.
10414         * src/roff/troff/troff.h, src/roff/troff/env.h,
10415         src/roff/troff/env.cc (environment::add_html_tag): New function
10416         (uses `is_html2').
10417         (environment::do_break): Use it.
10418         * font/devhtml2/*: New files.
10419         * src/devices/grohtml2: New device.
10420         * src/preproc/html2: New preprocessor.
10421         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
10423 2000-08-23  Werner LEMBERG  <wl@gnu.org>
10425         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
10427 2000-08-22  Werner LEMBERG  <wl@gnu.org>
10429         * src/include/lib.h: Provide a fix for IRIX to not include
10430         groff-getopt.h.
10432 2000-08-18  Werner LEMBERG  <wl@gnu.org>
10434         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
10435         since some non-GNU sed programs can't handle null regexps.
10436         * configure, src/preproc/eqn/Makefile.sub,
10437         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
10439         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
10440         bug (string.h and strings.h are both needed according to latest
10441         POSIX standard).
10443         * MORE.STUFF: Added info about unroff and troffcvt.
10445 2000-08-08  Werner LEMBERG  <wl@gnu.org>
10447         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
10448         used before -ms.
10450         * tmac/tmac.man.old: Remove unused number register.
10452         * tmac.doc: Minor documentation fix.
10454 2000-08-07  Paul Eggert  <eggert@twinsun.com>
10456         * src/roff/groff/pipeline.c (is_system_shell):
10457         Fix typo: "monocased_shell" no longer exists.
10459 2000-08-07  Paul Eggert  <eggert@twinsun.com>
10461         Remove FILENAME_MAX limits.
10463         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
10464         that the argument length is less than FILENAME_MAX.
10465         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
10466         Use struct hack to allocate and free file name.
10467         (struct xtmpfile_list): fname is now part of the structure,
10468         not a pointer to another string.
10470 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
10472         * src/include/posix.h: Add a default value for FILENAME_MAX.
10474 2000-08-06  Paul Eggert  <eggert@twinsun.com>
10476         Add support for new BSD-style man pages (with ".Dd" instead of
10477         ".TH"), so that "groff -man" understands both styles, even
10478         when running "groff -man" on a host whose system man page
10479         macros don't support ".Dd".
10481         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
10482         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
10483         in case the system man macros don't define Dd or TH.
10485         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
10486         * tmac/tmac.an: New one-line file.
10487         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
10489 2000-08-06  Werner LEMBERG  <wl@gnu.org>
10491         * src/roff/troff/troff.man: Fixing typos.
10493 Version 1.16.1 released
10494 =======================
10496 2000-07-31  Werner LEMBERG  <wl@gnu.org>
10498         Preparing release 1.16.1.
10500         * REVISION: Revision number set to 1.
10501         * MORE.STUFF: Added info about port to DOS.
10502         * NEWS, win32-diffs: Updated.
10504         * src/include/nonposix.h: Remove first line -- this file is used
10505         in C also.
10507         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
10508         link to it.
10510 2000-07-30  Werner LEMBERG  <wl@gnu.org>
10512         * doc/texinfo.tex: Update to latest version.
10514 2000-06-28  Paul Eggert  <eggert@twinsun.com>
10516         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
10517         commands that fail.  Don't assume that "export a=b" is valid shell
10518         syntax.  This is needed for Solaris 2.5.1.
10520         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
10521         comment about missing Solaris headers.
10523         * PROBLEMS: Add section about problems with Sun Make and VPATH.
10525 2000-06-25  Werner LEMBERG  <wl@gnu.org>
10527         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
10528         SET_BINARY().
10530         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
10532         * win32-diffs: Updated.
10533         * README.WIN32: Added CRs to make all Windows editors happy.
10535         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
10536         src/roff/groff/pipeline.c).
10538 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
10540         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
10541         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
10543 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
10545         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
10546         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
10547         are binary files.
10548         (main): Support non-Posix systems with several different styles of
10549         slash characters in file names.
10551         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
10552         (main) [SET_BINARY]: Switch stdin into binary mode.
10554         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
10555         (main): Support file names with several possible slash-type
10556         characters, as given by DIR_SEPS[] in nonposix.h.
10557         (main) [__MSDOS__]: If renaming the temporary index file fails
10558         because it has more than one dot in its trunk, replace the dot
10559         with an underscore and try again.
10560         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
10561         Newline.
10562         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
10564         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
10565         (File::File): Open the input file in binary mode.  Strip CR
10566         characters from each CR-LF pair.
10567         (xbasename): Support file names with several possible slash-type
10568         characters, as given by DIR_SEPS[] in nonposix.h.
10570         * src/include/Makefile.sub (HDRS): Add nonposix.h.
10572         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
10573         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
10574         [!_POSIX_VERSION]: Define for traditional Unix systems.
10575         (real_output_file::real_output_file): Remove the MSVC-specific
10576         call to popen, use instead POPEN_WT, appropriately defined on
10577         nonposix.h.  #include nonposix.h.
10578         (real_output_file::~real_output_file): Remove the MSVC-specific
10579         call to pclose, a suitable macro is now defined on nonposix.h.
10580         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
10581         and WEXITSTATUS instead of assuming traditional Unix
10582         interpretation of the status returned by pclose.
10584         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
10585         call to popen, use POPEN_RT instead (appropriately defined on
10586         nonposix.h).  #include nonposix.h.
10587         (ps_bbox_request): Open the PostScript file in binary mode.
10588         Close the file after processing it.
10589         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
10590         nonposix.h.
10592         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
10593         A version of run_pipeline that doesn't use `fork'.
10594         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
10595         (system_shell_name, system_shell_dash_c)
10596         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
10597         the ugliness of testing DOS/Windows file names for equality, and
10598         support both stock shells and ports of Unix shells.
10600         * src/roff/groff/groff.cc: #include nonposix.h.
10601         (BSHELL): Definition moved to nonposix.h.
10602         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
10603         instead of a literal "-c".
10604         (xbasename): Support file names with several possible slash-type
10605         characters, as given by DIR_SEPS[] in nonposix.h.
10606         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
10607         of literal strings.
10609         * src/preproc/soelim/soelim.cc: #include nonposix.h.
10610         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
10612         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
10613         pic_tab.h.
10615         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
10617         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
10618         eqn_tab.h.
10620         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
10622         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
10623         P_tmpdir is defined, use it instead of the literal "/tmp".
10624         (remove_tmp_files, add_tmp_file): New functions.
10625         (xtmpfile): Record temporary files and register an atexit function
10626         to delete them explicitly, instead of relying on the OS to do
10627         that, which doesn't work on non-Unix systems.
10629         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
10630         (search_path::search_path): Use PATH_SEP instead of a literal
10631         colon.
10632         (search_path::command_line_dir): Ditto.
10633         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
10634         to support non-Posix systems.
10636         * src/libs/libbib/search.cc: #include nonposix.h.
10637         (search_list::add_file): Open the file in binary mode.
10639         * src/libs/libbib/linear.cc: #include nonposix.h.
10640         (file_buffer::load): Remove \r characters preceding \n from the
10641         loaded buffer.
10643         * src/libs/libbib/index.cc: #include nonposix.h.
10644         (make_index_search_item): Open index_filename in O_BINARY mode.
10645         (index_search_item_iterator::get_tag): Ditto.  Remove \r
10646         characters before \n characters.
10647         (index_search_item::check_files): Open files in binary mode.
10648         (index_search_item::munge_filename): Support DOS-style file names
10649         with backslashes and drive letters, use IS_ABSOLUTE.
10651         * src/devices/grops/ps.cc: #include nonposix.h.
10652         (main) [SET_BINARY]: Switch stdout to binary mode.
10654         * src/devices/grolj4/lj4.cc: #include nonposix.h.
10655         (main) [SET_BINARY]: Switch stdout to binary mode.
10657         * src/devices/grolbp/lbp.cc: #include nonposix.h
10658         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
10660         * src/devices/grodvi/dvi.cc: #include nonposix.h.
10661         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
10662         nonposix.h).
10663         (main) [SET_BINARY]: Switch stdout to binary mode.
10664         [_MSC_VER]: Remove an explicit call to _setmode.
10666         * src/include/nonposix.h: New file.
10668         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
10669         operation when building with DJGPP.
10670         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
10671         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
10672         ENVSETUP.
10674         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
10675         MS-DOS.
10676         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
10677         etc. can include a semi-colon on DOS/Windows.
10678         (depend.temp): Use depend1.temp instead of depend.temp1, to
10679         prevent files from overerwiting each other on 8+3 filesystems.
10681         * gendef.sh (t): Change definition to work with DOS/Windows.
10683         doc/groff.texinfo: Apart of some typo corrections, I also changed
10684         some index entris, to make them more non-ambiguous, and also put
10685         @ignore around some parts that are not yet written, to allow the
10686         Info output be readable.
10688 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
10690         Replaced specific checks for function declarations with a generic
10691         routine taken from GNU bfd.
10693         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
10694         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
10695         * configure.in: Use it.
10696         * src/devices/grolbp/lbp.cc, src/include/lib.h,
10697         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
10698         src/roff/groff/groff.cc: Use it.
10699         * Makefile.in, configure: Updated.
10701 2000-06-07  Paco Andrés Verdú  <pandres@dragonet.es>
10703         * src/devides/grolbp/lbp.h: Removed unused variables.
10705 2000-05-31  Keith Thompson  <kst@sdsc.edu>
10707         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
10708         strncasecmp().
10710 2000-05-31  Werner LEMBERG  <wl@gnu.org>
10712         * aclocal.m4 (GROFF_SRAND): New function to test the return value
10713         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
10714         * configure.in: Use it.
10715         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
10716         * configure, Makefile.in: Updated.
10718         * configure.in: Add test for strncasecmp().
10719         * src/include/lib.h: Use it.
10721 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
10723         * src/preproc/grn/Makefile.sub: Add MLIB.
10725 2000-05-29  Nix  <nix@esperi.demon.co.uk>
10727         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
10729 2000-05-29  Werner LEMBERG  <wl@gnu.org>
10731         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
10733         * PROBLEMS: Small update.
10735         * src/devices/grolbp/lbp.cc: Various small fixes.
10737 2000-05-28  Keith Thompson  <kst@sdsc.edu>
10739         * src/roff/nroff/nroff.sh: Fix main loop syntax.
10741         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
10743 2000-05-25  Werner LEMBERG  <wl@gnu.org>
10745         * man/roff.man: Removed unused macro.
10747 2000-05-24  Werner LEMBERG  <wl@gnu.org>
10749         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
10750         This is needed e.g. if you do
10751         `make distclean; ./configure; make dist'.
10753 Version 1.16 released
10754 =====================
10756 2000-05-23  Werner LEMBERG  <wl@gnu.org>
10758         Adding font CWI (constant width italic) to devdvi.
10760         * font/devdvi/CWI: New file.
10761         * font/devdvi/generate/Makefile: Add generating rule.
10762         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
10763         tmac/tmac.dvi: Use it.
10764         * NEWS: Announce it.
10766         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
10767         * font/devlj4/generate/Makefile: Cosmetic changes only.
10769         * man/groff.man: Removed most of the redundant description of
10770         special characters (which is in groff_char.man).  Added font
10771         translation CB->CR for devdvi.  Other minor fixes.
10773         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
10774         (registered) symbols.
10776 2000-05-22  Werner LEMBERG  <wl@gnu.org>
10778         * doc/Makefile: Added rule for creating info files.
10780         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
10781         AMS font metrics.
10782         * font/devdvi/generate/Makefile: Fixed dependencies.
10784         * font/devps/*: Regenerated.  Heavy changes for Bookman and
10785         NewCentury Schoolbook!
10786         * font/devps/generate/afmname: Will now run with GNU awk.
10787         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
10788         * font/devps/generate/Makefile: Cosmetic changes only.
10790 2000-05-21  Werner LEMBERG  <wl@gnu.org>
10792         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
10793         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
10794         `.SS' now produces a heading with a smaller size than `.SH'. 
10795         Completely formatted.
10796         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
10798         * man/groff.man: Improved table appearance.  Use of `eo' request
10799         to reduce number of doubled backslashes in macro definitions.
10800         Replacing `\e' with `\(rs'.  Other minor fixes.
10802         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
10803         to have correct line number.
10805         * INSTALL: Small improvement.
10807 2000-05-20  Bernd Warken  <bwarken@mayn.de>
10809         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
10810         WL).
10812 2000-05-19  Bernd Warken  <bwarken@mayn.de>
10814         * man/groff.man: Complete update (with a lot of corrections by WL).
10816 2000-05-18  Werner LEMBERG  <wl@gnu.org>
10818         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
10820         * font/*/*: Implement it.
10821         * man/groff_char.man, NEWS: Document it.
10823         * src/include/unix.h: Removed.  It isn't used.
10825         * doc/groff.texinfo: Slight improvements.
10827 2000-05-17  Werner LEMBERG  <wl@gnu.org>
10829         * README, win32-diffs: Small fixes and improvements.
10831 2000-05-16  Werner LEMBERG  <wl@gnu.org>
10833         * FDL: New file (the Free Documentation License version 1.1).
10835         * doc/groff.texinfo: Added many start-up values for gtroff.
10836         Some structural improvements of the source code.
10838 2000-05-15  Werner LEMBERG  <wl@gnu.org>
10840         * src/roff/troff/input.cc: Added small comment about troffrc-end.
10841         * src/roff/troff/troff.man: Added info about troffrc-end.
10843 2000-05-14  Werner LEMBERG  <wl@gnu.org>
10845         * Makefile.in (EXTRADIRS): Fix typos.
10846         (dist): Handle deletion of old .tar.gz file correctly.
10847         (DISTDIRS): Include all tty output devices.
10849         * doc/groff.texinfo: Adding more cross references; countless other
10850         fixes.
10852 2000-05-13  Werner LEMBERG  <wl@gnu.org>
10854         * MORE.STUFF: Added Robert Marks's utilities.
10856 2000-05-12  Werner LEMBERG  <wl@gnu.org>
10858         Added win32 port contributed by Blake McBride
10859         <blake@florida-software.com>.
10861         * README.WIN32, win32-diffs: New files.
10862         * NEWS: Updated.
10864         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
10865         (tmove, tmove2): Added parentheses to avoid compiler warnings.
10866         (change): Removed unused variables.
10868         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
10869         (savebounds): Changed return value from `int' to `void'.
10870         * src/preproc/grn/hdb.cc: Ditto.
10872         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
10873         final backslash in comment to avoid compiler warning.
10875         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
10877         * doc/groff.texinfo: More fixes.
10879 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
10881         * tmac/tmac.doc: Documentation fix.
10883 2000-05-11  Werner LEMBERG  <wl@gnu.org>
10885         * doc/groff.texinfo: Reading the source code shows up a lot of
10886         omissions and incorrect data...  More conversion to @Deffn macros.
10888 2000-05-10  Werner LEMBERG  <wl@gnu.org>
10890         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
10891         dependency.
10893         * src/roff/troff/request.h: Removing unused `no_break_flag'.
10895 2000-05-09  Werner LEMBERG  <wl@gnu.org>
10897         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
10898         improvements.
10900         * doc/groff.texinfo: Extended history section.  More conversion to
10901         @Deffn macros.  More .tr documentation.
10903 2000-05-07  Werner LEMBERG  <wl@gnu.org>
10905         * doc/groff.texinfo: Completed tab section.  Added info about
10906         fields.
10908 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
10910         * PROBLEMS: Describe configure script fix for OS/390 Unix.
10912 2000-05-05  Werner LEMBERG  <wl@gnu.org>
10914         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
10915         LaTeX 2e).
10916         * NEWS: Document it.
10918         * man/troff.man: Minor optical improvements.
10920 2000-05-03  Werner LEMBERG  <wl@gnu.org>
10922         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
10924         * font/*/*: Implement it.
10925         * man/groff_char.man, NEWS: Document it.
10927 2000-05-02  Werner LEMBERG  <wl@gnu.org>
10929         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
10930         expansion.
10931         * NEWS: Document the three new man pages.
10933         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
10934         * configure: Updated.
10936         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
10938 2000-05-01  Werner LEMBERG  <wl@gnu.org>
10940         Added grap support to grog.
10942         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
10943         * src/roff/grog/grog.man: Document it.
10945         * doc/groff.texinfo, NEWS: Add info about grap support.
10947         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
10948         (with slight fixes by me).
10950         * tmac/groff_tmac.man: New file documenting tmac mechanism.
10951         * tmac/Makefile.sub: Add groff_tmac.man.
10952         * man/roff.man: New file giving overview of roff system.
10953         * man/troff.man: A short reference of troff.
10954         * man/Makefile.sub: Add roff.man and troff.man.
10956 2000-04-30  Werner LEMBERG  <wl@gnu.org>
10958         Added grap support to groff.
10960         * src/roff/groff/groff.cc: Implement it.
10961         * src/roff/groff/groff.man: Document it.
10963         * src/devices/grotty/grotty.man: Add cp1047 device.
10964         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
10965         Ditto.
10966         * src/roff/groff/groff.man: Ditto.
10967         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
10968         * doc/groff.texinfo: Ditto.
10970         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
10971         for cp1047.
10973 2000-04-29  Werner LEMBERG  <wl@gnu.org>
10975         * man/groff_char.man: Add `pc' glyph.
10976         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
10977         * tmac/tmac.tty: Add `pc' glyph.
10978         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
10979         we use cp1047 output device.
10981         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
10982         there are still hardcoded latin1->unicode values in utf8's font
10983         definition files.
10984         * configure: Updated.
10985         * NEWS: Minor clarification.  Updated.
10987         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
10988         Unix.
10990 2000-04-28  Werner LEMBERG  <wl@gnu.org>
10992         Adding EBCDIC code page 1047.
10994         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
10995         font/devcp1047/DESC.proto: New files.
10997         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
10998         either ascii/latin1 or cp1047.
10999         * Makefile.in: Use it.
11000         * configure: Updated.
11002         Replacing and/or adding `md' (mathdot) glyph with `pc'
11003         (periodcentered) in all text fonts.
11005         * font/*/*: Change it.
11007 2000-04-27  Werner LEMBERG  <wl@gnu.org>
11009         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
11011         * configure.in: Add check for strings.h.
11012         * src/include/driver.h: Use HAVE_STRINGS_H.
11013         * src/devices/grolbp/lpb.cc: Remove string.h.
11015         * src/include/groff-getopt.h: New file.  It will be used instead of
11016         getopt.h (to be included in lib.h) to avoid endless problems with
11017         picky C++ compilers.
11018         * src/include/lib.h: Use groff-getopt.h.
11019         * src/include/Makefile.sub: Updated.
11021         * configure: Updated.
11022         * Makefile.in: Updated.
11024         * NEWS: Mention EBCDIC support.
11026 2000-04-26  Werner LEMBERG  <wl@gnu.org>
11028         * TODO: Some additions.
11030 2000-04-25  Werner LEMBERG  <wl@gnu.org>
11032         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
11033         of mso request.
11035 2000-04-23  Werner LEMBERG  <wl@gnu.org>
11037         * src/roff/troff/troff.man: Minor fixes.
11039 2000-04-22  Werner LEMBERG  <wl@gnu.org>
11041         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
11042         `.T' string register and the incompatible definition of the `.T'
11043         number register (compared to Unix troff).
11045         * man/groff_char.man: Add some missing characters.
11046         * font/devutf8/NOTES: Update.
11048 2000-04-21  Werner LEMBERG  <wl@gnu.org>
11050         * src/include/htmlindicate.h, src/include/lib.h,
11051         src/include/posix.h: Fix copyright.
11053         * src/include/Makefile.sub: Update.
11055 2000-04-20  Werner LEMBERG  <wl@gnu.org>
11057         * src/roff/troff/input.cc (input_char_description): Removing
11058         superfluous space char.
11060         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
11062         * doc/groff.texinfo: Document EBCDIC.
11064 2000-04-19  Werner LEMBERG  <wl@gnu.org>
11066         Introducing `shc' as the glyph name for the soft hyphen character.
11068         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
11069         font/devlatin1/R.proto: Use it.
11071         * NEWS: Updated.
11073 2000-04-18  Werner LEMBERG  <wl@gnu.org>
11075         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
11076         dependency on ASCII order.
11078 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
11080         * src/libs/libgroff/illegal.c: Added EBCDIC table.
11081         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
11083         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
11084         to increase portability.
11086 2000-04-15  Werner LEMBERG  <wl@gnu.org>
11088         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
11089         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
11090         the generic `\n' if under OS/390 Unix.
11092         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
11094         * configure: Regenerated.
11096 2000-04-14  Werner LEMBERG  <wl@gnu.org>
11098         * doc/groff.texinfo: More conversions to @Deffn.
11100 2000-04-12  Werner LEMBERG  <wl@gnu.org>
11102         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
11103         with `:'.
11105         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
11107 2000-04-10  Werner LEMBERG  <wl@gnu.org>
11109         * doc/groff.texinfo: More conversions to @Deffn.
11111 2000-04-08  Werner LEMBERG  <wl@gnu.org>
11113         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
11114         Updated to latest version (glibc 2.1.3).
11116 2000-04-07  Werner LEMBERG  <wl@gnu.org>
11118         * doc/Makefile (clean): Include more index files.
11119         Add rule texinfo->dvi.
11121 2000-04-05  Werner LEMBERG  <wl@gnu.org>
11123         * doc/groff.texinfo: Added new index `op' for operators.  More
11124         info on end of sentence characters.  More use of @Deffn.
11126 2000-03-30  Werner LEMBERG  <wl@gnu.org>
11128         * */*.man: Adding a note that a whitespace can be inserted between
11129         a command line option and its parameter -- we are using GNU getopt.
11131         * src/roff/groff/groff.man: Add example of `-m mandoc'.
11133 2000-03-28  Werner LEMBERG  <wl@gnu.org>
11135         Correct anachronism of calling the man macro file with `-man'
11136         instead of `-m man' etc.
11138         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
11139         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
11140         load tmac.<package>.
11142         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
11144         * NEWS: Updated.
11146         * doc/groff.texinfo: Updated.
11148         * tmac/groff_man.man: Copyright added.
11150 2000-03-27  Werner LEMBERG  <wl@gnu.org>
11152         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
11153         typeset the request resp. escape name with a tt font -- due to a
11154         bug in texinfo.tex it is necessary to use the `-e' switch with
11155         texi2dvi.
11157         Improving info about usage of groff units.
11159         Other minor fixes.
11161 2000-03-20  Werner LEMBERG  <wl@gnu.org>
11163         * doc/groff.texinfo: Added section about man macro package
11164         (I've basically taken groff_man.man).  Introducing new indices `ma'
11165         for macros/strings and `gl' for glyph names.  Other minor fixes.
11167         * tmac/groff_man.man: Fixed some typos.
11169 2000-03-19  Werner LEMBERG  <wl@gnu.org>
11171         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
11172         Other minor fixes.
11174         * doc/texinfo.tex: New file.
11176 2000-03-18  Werner LEMBERG  <wl@gnu.org>
11178         * doc/groff.texinfo: Improved section on number registers.  Other
11179         minor updates.
11181 2000-03-16  Werner LEMBERG  <wl@gnu.org>
11183         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
11184         synopsis.
11186         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
11187         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
11188         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
11189         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
11191         * src/preproc/grn/grn.man: Better synopsis; added copyright.
11193         * src/roff/grog/grog.man: Updated copyright date.
11195 2000-03-14  Francisco Andrés Verdú  <pandres@dragonet.es>
11197         * configure.in: Added test for strdup.
11199         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
11200         is available.
11202         Replaced dynamic allocation of arrays `[...]' with `new' operator.
11204         Other minor fixes.
11206 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
11208         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
11210 2000-03-11  Werner LEMBERG  <wl@gnu.org>
11212         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
11213         compilers silent.
11214         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
11215         * src/include/lib.h: Remove some spaces.
11217 2000-03-10  Werner LEMBERG  <wl@gnu.org>
11219         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
11220         initializers from arguments (some compilers don't like this).
11222 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
11224         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
11225         used by pic and eqn to tell grohtml where the graphic regions start
11226         and end.
11227         * src/libs/libgroff/Makefile.sub: Use it.
11228         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
11229         graphic_start() and graphic_end() from htmlindicate.cc.
11231 2000-03-09  Werner LEMBERG  <wl@gnu.org>
11233         * tmac/tmac.safer: Will now work correctly in compatibility mode.
11234         * tmac/groff_man.man: More fixes.
11236 2000-03-08  Werner LEMBERG  <wl@gnu.org>
11238         * doc/Makefile: Added texput.log to the `clean' target.
11239         * doc/groff.texinfo: Added info about delimiters for escapes.
11241 2000-03-08  Bernd Warken  <bwarken@mayn.de>
11243         * src/preproc/pic/pic.man: Add info on conversion of pic images to
11244         other graphic formats.
11246 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
11248         * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
11249         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
11250         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
11251         files.
11253 2000-03-07  Werner LEMBERG  <wl@gnu.org>
11255         * doc/groff.texinfo: Spelling fixes.
11257 2000-03-06  Werner LEMBERG  <wl@gnu.org>
11259         * tmac/groff_man.man: Completely revised to cover everything in
11260         tmac.an.
11262         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
11263         Other minor fixings.
11264         * src/roff/troff/env.cc (environment_copy): Improve error message and
11265         fix itoa->i_to_a.
11266         * src/roff/troff/TODO: Updated.
11268         * doc/Makefile: Bug fixes -- this is still provisional, though...
11270         * tmac/eqnrc: Small fixes.
11272 2000-03-05  Abramo Bagnara  <abramo@alsa-project.org>
11274         Adding a request `evc' to copy environments.
11276         * src/roff/troff/env.cc (environment::copy, environment_copy):
11277         Implement it.
11278         * src/roff/troff/env.h: Add prototype.
11280 2000-03-05  Francisco Andrés Verdú  <pandres@dragonet.es>
11282         Adding strsep() -- Solaris 8 doesn't have it.
11284         * configure.in: Test it.
11285         * src/devices/grolbp/lbp.cc: Add code.
11287 2000-03-05  Werner LEMBERG  <wl@gnu.org>
11289         * src/roff/troff/div.cc (macro_diversion::output,
11290         top_level_diversion::output): Fixing an incompatibility with
11291         original troff: \x'0' updates the .a register also.  Thanks to
11292         <Andries.Brouwer@cwi.nl> for pointing this out.
11293         * doc/groff.texinfo: Document it.
11295         * Makefile.in: Create Makefile.dep if necessary before calling the
11296         submake process to avoid warning about nonexistent file.
11298         * NEWS, PROJECTS: Updated.
11300 2000-03-04  Werner LEMBERG  <wl@gnu.org>
11302         * tmac/troffrc: Add tmac.lbp.
11304 2000-03-03  Francisco Andrés Verdú  <pandres@dragonet.es>
11306         * tmac/tmac.lbp: New file.
11307         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
11308         command.
11310 2000-03-03  Werner LEMBERG  <wl@gnu.org>
11312         * Makefile.in: Fixing $(subdir).
11314         * README, NEWS: Small fixes.
11316         * test-groff: Adding path to grolbp.
11318         * configure.in: The (new) file src/xditview/Imakefile.in will be
11319         also configured -- it is now possible to build gxditview in a
11320         directory different from $srcdir.
11322 2000-03-02  Blake McBride  <blake@florida-software.com>
11324         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
11326         * MORE.STUFF: Added website of bell labs and info about plot2dev.
11328 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
11330         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
11331         files.
11333 2000-02-29  Werner LEMBERG  <wl@gnu.org>
11335         Adding GNU getopt to the groff distribution.
11337         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
11338         New files.
11339         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
11340         * aclocal.a4: Remove GROFF_GETOPT function.
11341         * configure.in, Makefile.in, PROBLEMS: Update.
11342         * src/include/lib.h: Replace getopt tests with getopt.h.
11343         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
11345         * doc/groff.texinfo: Further checking/updating.  Adding more index
11346         entries.
11348         * man/groff_out.man: Fix nroff mode activation (for emacs).
11349         * man/groff_font.man: Add missing ligature.
11351 2000-02-28  Werner LEMBERG  <wl@gnu.org>
11353         * doc/groff.texinfo: Further checking/updating.  Adding more index
11354         entries.
11356         * src/devices/grolbp/grolbp.man: Added a comment line at the
11357         beginning of the file (similar to shell scripts) which indicates
11358         that `tbl' should be used as a preprocessor.
11360 2000-02-27  Blake McBride  <blake@florida-software.com>
11362         Adapting groff to MS Visual C++ 6.0 compiler (tested with
11363         Windows NT 4.0).  Uses _MSC_VER define where necessary.
11365         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
11366         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
11367         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
11368         src/include/lib.h, src/libs/libgroff/errarg.cc,
11369         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
11370         src/preproc/refer/label.y, src/preproc/refer/label.cc,
11371         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
11372         src/roff/troff/div.cc, src/roff/troff/env.cc,
11373         src/roff/troff/input.cc, src/roff/troff/node.cc,
11374         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
11375         if_to_a() to avoid name clashes.
11376         * src/include/posix.h: Don't use unistd.h.
11377         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
11378         clause for integrating non-Unix xtmpfile() code.
11379         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
11380         structure; use "rt" for popen() in pipe_source(); add getpid()
11381         dummy function.
11382         * src/roff/troff/node.cc: Use special versions of popen() in
11383         real_output_file() and pclose() in ~real_output_file().
11385 2000-02-27  Werner LEMBERG  <wl@gnu.org>
11387         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
11388         LBP-8 series laser printers).  This code has been contributed by
11389         Francisco Andrés Verdú <pandres@dragonet.es>.
11391         * src/devices/grolbp/*: The grolbp output device.
11392         * font/devlpb/*: The font description files.
11393         * Makefile.in: Add grolpb and devlbp subdirectories.
11395         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
11396         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
11397         typographic fixes.
11399         * doc/groff.texinfo: Further checking/updating.  Adding more index
11400         entries.
11402         * NEWS: Updated.
11404         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
11406         * man/groff_font.man: Adding info about obsolete DESC keywords.
11407         * src/devices/grolj4/grolj4.man: Documenting additional DESC
11408         keywords.
11410 2000-02-26  Werner LEMBERG  <wl@gnu.org>
11412         * src/preproc/grn/grn.man: Added info about the gremlin file format
11413         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
11415 2000-02-25  Werner LEMBERG  <wl@gnu.org>
11417         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
11418         friends to be non-integer.
11420         * src/preproc/grn/grn.man: Document it.
11422         * doc/groff.texinfo: Further checking/updating.  Adding more index
11423         entries.
11425 2000-02-24  Werner LEMBERG  <wl@gnu.org>
11427         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
11428         line thicknesses to be integer multiples of this value.
11430         * src/preproc/grn/grn.man: Commenting out the -s option -- the
11431         corresponding code doesn't work (yet).
11433         * doc/groff.texinfo: Further checking/updating.  Adding more index
11434         entries.
11436 2000-02-23  Werner LEMBERG  <wl@gnu.org>
11438         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
11439         specify line thickness instead of base units.  The new default
11440         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
11441         thick lines respectively.
11443         Removed unused variable `prevval'.
11445         * src/preproc/grn/grn.man: Updated.
11447 2000-02-22  Werner LEMBERG  <wl@gnu.org>
11449         * src/preproc/grn/main.cc: Slight formatting.
11451         * src/roff/groff/groff.man: Formatting fix.
11452         * src/preproc/grn/grn.man: Ditto.
11454         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
11456         * doc/groff.texinfo: Further checking/updating.
11458 2000-02-21  Werner LEMBERG  <wl@gnu.org>
11460         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
11462         * test-groff: Added grn subdir to path.
11464         * doc/groff.texinfo: Some restructing and other small improvements.
11466         * src/roff/groff/groff.cc (help): Fixed info string.
11468 2000-02-20  Werner LEMBERG  <wl@gnu.org>
11470         * doc/meref.me: Fix description of .GS request.
11472         * src/roff/troff/troff.man: Fixing typo.
11474         Adding the `grn' preprocessor for gremlin graphic files.
11476         * src/preproc/grn/*: This is the Berkeley distribution written by
11477         David Slattengren and Barry Roitblat, adapted to groff by Daniel
11478         Senderowicz and Werner Lemberg.
11480         * doc/grnexampl.{me,g}: A sample for grn.
11482         * Makefile.in: Added subdirectory entry for grn.
11484         * src/roff/groff/groff.cc: Added support for grn.  It can be now
11485         called with the switch `-g'.
11487         * src/roff/groff/groff.man: Updated.
11489         * src/roff/grog/grog.{man,pl,sh}: Updated.
11491         * NEWS: Updated.
11493 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
11495         * src/include/lib.h: Added xtmptemplate and made xtmpfile
11496         parametrically polymorphic.
11498         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
11499         and the alterations to xtmpfile.
11500         xtmpfile can be requested to return the filename created
11501         and asked not to unlink the temp file.  The default behaviour
11502         if parameters are absent is exactly the same as before.
11504 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
11506         A new request `length' is available which returns the length of a
11507         string in a number register:
11509         * src/roff/troff/input.cc (length_macro): Implement it.
11510         * src/roff/troff/input.cc (init_input_requests): Register it.
11512 2000-02-11  Werner LEMBERG  <wl@gnu.org>
11514         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
11515         of the `substring' request.
11517         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
11518         request.
11520         * src/roff/troff/TODO, NEWS: Updated.
11522 2000-02-09  Werner LEMBERG  <wl@gnu.org>
11524         * src/roff/groff/groff.man: Added an example.
11526 2000-02-06  Werner LEMBERG  <wl@gnu.org>
11528         I've considerably modified the directory structure of the
11529         distribution to get a more vertical layout.  For example, the number
11530         of top level directories has been reduced from 42 to 6.
11532         As a consequence, many changes, especially to the makefiles, were
11533         necessary:
11535         * The makefile variables `top_builddir' and `top_srcdir' have been
11536         introduced.  Virtually all relative paths have been replaced with
11537         absolute ones using these two variables.
11539         * Dependencies (in the files `Makefile.dep') are no longer part of
11540         the distribution.  Instead, they are created during a `make install'
11541         in the build directory.
11543         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
11544         make `top_srcdir' and `top_builddir' absolute.
11546         Some other changes:
11548         * Man pages now depend on the files `VERSION' and `REVISION'.
11550         * The added shell script `mkinstalldirs' will replace `mkdir' in
11551         almost all cases.
11553         * VERSION: Version number increased to 1.16.
11555 2000-02-04  Werner LEMBERG  <wl@gnu.org>
11557         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
11559         * Makefile.in: Removed $(tmac_m) since it is no longer needed
11560         (after an update of the mm stuff).
11562         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
11564 2000-02-03  Werner LEMBERG  <wl@gnu.org>
11566         The .psbb request will now also accept Mac PS images (i.e. using LF
11567         as the EOL character).
11569         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
11570         (with slight modifications).
11571         * troff/input.cc (do_ps_file): Use it.
11573         * test-groff: Add grohtml and grolj4 output devices to PATH.
11575 2000-01-30  Werner LEMBERG  <wl@gnu.org>
11577         * NEWS, MORE.STUFF: Updated.
11579 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
11581         Add the `srand' command to pic.
11583         * pic/lex.cc, pic/pic.y: Implement it.
11584         * pic/pic.man: Document it.
11585         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
11587 2000-01-30  Werner LEMBERG  <wl@gnu.org>
11589         Add a new request `.psbb'.  This does exactly what the external
11590         program psbb did.  It scans a PostScript image file for a
11591         %%BoundingBox comment and extracts the bounding box values (in
11592         PostScript units) which are then stored in the four new (read-only)
11593         number registers `llx', `lly', `urx', and `ury'.
11595         This will allow the usage of the .PSPIC macro without worrying
11596         about unsafe behaviour of groff, i.e., it will work without the
11597         `-U' switch of groff.
11599         * troff/input.cc: Implement it.
11600         * tmac/tmac.pspic: Use it.
11601         * troff/troff.man, grops/grops.man, NEWS: Document it.
11602         * psbb/*, Makefile.in: Remove it since it is no longer needed.
11604         This is bloody C code simply adapted from psbb.c!  Any improvements
11605         welcome.
11607 2000-01-29  Werner LEMBERG  <wl@gnu.org>
11609         * man/groff_font.man: Minor clarifications.
11611         * NEWS: Updated.
11613 2000-01-28  Werner LEMBERG  <wl@gnu.org>
11615         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
11617 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
11619         * man/groff_font.man: Brought up to date regarding tcommand
11620         extensions.
11621         * libgroff/font.cc: Handle everything after `--' as a comment
11622         in the font files.
11623         * devps/*: Added comment delimiter inside devps font files.
11625 2000-01-28  Werner LEMBERG  <wl@gnu.org>
11627         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
11628         \fC...\fP (which now works as expected).
11630         * troff/troff.man: Fix typo.
11632 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
11634         Completed the pass_filenames implementation in troff.
11636         * libdriver/input.cc: Will read the new `F' tcommand.
11637         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
11638         * troff/input.cc: Use it.
11640 2000-01-26  Werner LEMBERG  <wl@gnu.org>
11642         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
11643         font will now be updated even if an invalid font is selected.
11645 2000-01-24  Werner LEMBERG  <wl@gnu.org>
11647         * doc/homepage.ms: Updated for new tmac.arkup.
11649         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
11651         * tmac/tmac.arkup: Cleanup.
11653         Added `\&' to .HTML macro to `leave vertical mode', so to say.
11655         Removed obsolete .LINK macro completely.
11657         The macros .URL, .FTP, and .MAILTO now accept a third argument which
11658         will be immediately appended to the second argument (to be used with
11659         punctuation, for example).
11661         Disabled .CDFTP macro temporarily for security reasons.
11663         * tmac/groff_markup.man: Complete revision for latest changes in
11664         tmac.arkup -- note that it does not yet format correctly with
11665         grohtml :-(
11667 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
11669         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
11670         * devutf8/R.proto: Add mappings for wp, lh, rh.
11671         * devutf8/NOTES: Updated.
11673 2000-01-23  Werner LEMBERG  <wl@gnu.org>
11675         * doc/groff.texinfo: Updated version/copyright info.
11677 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
11679         Added support for two new directives in device descriptions:
11680         `pass_filenames' (to pass the input file name to the output device)
11681         and `use_charnames_in_special' (to support e.g. accented characters
11682         in the `X' request).
11684         * include/font.h, troff/charinfo.h: Declare it.
11686         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
11688         * devhtml/DESC: Use it.
11690         * troff/input.cc: New function encoded_char.
11692         * troff/token.h: Add test for `specialness'.
11694 2000-01-21  Werner LEMBERG  <wl@gnu.org>
11696         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
11697         mistake from the list of files to be installed.
11699 2000-01-18  Werner LEMBERG  <wl@gnu.org>
11701         * README: Added info how to apply patches.
11703 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
11705         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
11707 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
11709         * troff/input.cc: Add support for troffrc-end.
11711         * tbl/main.cc: Altered to issue table-start and table-end special
11712         characters if using the html device.
11714         * devhtml/*: Modified font files to incorporate html encoding of
11715         characters.
11717         * tmac/groff_markup.man: New file documenting tmac.arkup.
11719         * tmac/troffrc-end: New file.  This is invoked after all user
11720         specified macros.  Currently used by the html device to include
11721         tmac.html.  Thus no need for users to specify -mhtml anymore.
11723         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
11724         (MAN7): Add groff_markup.man.
11726         * tmac/tmac.an, tmac/tmac.html: Small html updates.
11728         * tmac/troffrc: tmac.arkup will now be called for the html device.
11730         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
11731         extra device specific information about fonts.
11733         * doc/homepage.ms: New file.  It is an example how an HTML home page
11734         could look like with grohtml.
11736         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
11738 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
11740         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
11741         of Im, Re.
11743         * devutf8/NOTES: Updated.
11745 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
11747         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
11748         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
11749         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
11750         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
11751         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
11752         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
11753         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
11754         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
11755         warnings.
11757         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
11759 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
11761         grolj4: Paper size will be searched case-insensitively.
11763         * include/lib.h: Add check for strcasecmp().
11764         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
11765         * configure.in: Check for strcasecmp().
11767 2000-01-11  Werner LEMBERG  <wl@gnu.org>
11769         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
11770         `REVISION'.
11772 2000-01-10  Werner LEMBERG  <wl@gnu.org>
11774         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
11775         revision scheme.
11777         Add a new read-only register, `.Y', which contains the groff
11778         revision.
11780         * troff/input.cc (init_input_requests): Define it.
11781         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
11782         * doc/groff.texinfo, troff/troff.man: Document it.
11784         * libgroff/Makefile.sub (version.cc): Add definition of
11785         `Version_string[]', consisting of `<major>.<minor>.<revision>'
11786         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
11787         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
11788         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
11789         troff/input.cc, pfbtops/pfbtops.c: Use it.
11791 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
11793         Add a revision scheme to the groff package.
11795         * REVISION: New file.
11796         * libgroff/Makefile.sub (version.cc): Use it to define
11797         `revision_string[]'.
11798         * grops/psrm.cc: Use revision_string (converted to an unsigned
11799         integer) in constructor of resource_manager.
11801 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
11803         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
11804         files.
11805         * Makefile.in (DEVDIRS): Add devutf8.
11806         * grotty/tty.cc: Include device.h.
11807         (glyph): Change type of `code' to `unsigned int'.
11808         (tty_printer): New field is_utf8.  Constructor takes device argument.
11809         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
11810         (tty_printer::add_char): Change type of first arg to `unsigned int'.
11811         (tty_printer::put_char): New function.
11812         (tty_printer::end_page): Use put_char() instead of ::putchar().
11813         (make_printer): Pass device to tty_printer constructor.
11814         * nroff.sh: Determine default device by calling 'locale'.  As a
11815         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
11816         Recognize UTF-8 locales.
11817         * tmac/eqnrc: Recognize utf8 like latin1.
11818         * tmac/troffrc: Device utf8 needs tmac.tty.
11820 2000-01-07  Werner LEMBERG  <wl@gnu.org>
11822         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
11824 2000-01-07  Paul Eggert  <eggert@twinsun.com>
11826         Add a new predefined writeable number register, `year',
11827         which contains the current year.
11829         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
11830         * tmac/tmac.s: Use it.
11831         * troff/input.cc (init_registers): Initialize it.
11833 2000-01-06  Werner LEMBERG  <wl@gnu.org>
11835         * PROBLEMS: Fixed typo.
11837 2000-01-04  Paul Eggert  <eggert@twinsun.com>
11839         * PROBLEMS: Add Y2k advice for the yr number register.
11841 2000-01-03  Paul Eggert  <eggert@twinsun.com>
11843         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
11845 2000-01-02  Werner LEMBERG  <wl@gnu.org>
11847         * tmac/tmac.arkup: Slight modification of macros to provide better
11848         appearance for non-HTML formats.
11850 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
11852         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
11853         does not automatically translate to malloc(n) on all OSes
11854         (e.g., SunOS) so do it explicitly.  Also, check the returned
11855         value.
11857 2000-01-01  Werner LEMBERG  <wl@gnu.org>
11859         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
11861         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
11862         expects this variable
11864 2000-01-01  Gaius Mulley  <gaius@glam.ac.uk>
11866         * doc/Makefile: Added instructions to create HTML and text
11867         versions of some files.
11869 1999-12-31  Werner LEMBERG  <wl@gnu.org>
11871         * Updated INSTALL.gen.
11873         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
11874         better resp. correctly with non-HTML devices.
11876 Version 1.15 released
11877 =====================
11879 1999-12-28  Werner LEMBERG  <wl@gnu.org>
11881         * NEWS, VERSION: Changed to 1.15
11883 1999-12-27  Paul Eggert  <eggert@twinsun.com>
11885         * nroff/nroff.man: -S is safer, not safe.
11887         * groff/groff.cc (main): Use `safer', not `safe', in variable
11888         names.  This does not change the behavior.
11890         * troff/input.cc (main): Likewise.
11892         * nroff/nroff.sh: Likewise.
11894         * troff/input.cc (prepend_string): New function.
11895         (main): Prepend -msafer, so that we check macro libraries for
11896         safety.
11898         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
11900 Version 1.14 released
11901 =====================
11903 1999-12-26  Werner LEMBERG  <wl@gnu.org>
11905         * NEWS, VERSION: Changed to 1.14.
11907 1999-12-24  Werner LEMBERG  <wl@gnu.org>
11909         * refer/refer.cc: Fixing the last fix.
11911 Version 1.13 released
11912 =====================
11914 1999-12-23  Werner LEMBERG  <wl@gnu.org>
11916         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
11917         number disappear.
11919         * NEWS: Updated.
11921         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
11923         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
11924         document conventions, the version number must be a real.
11926 Version 1.12.1 released
11927 =======================
11929 1999-12-22  Werner LEMBERG  <wl@gnu.org>
11931         * VERSION: Changed to 1.12.1.
11933 1999-12-22  Alan Rooks  <arooks@istar.ca>
11935         * refer/refer.cc (do_file): Slight modification to satisfy the
11936         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
11937         UnixWare 7.1.
11939 1999-12-20  Werner LEMBERG  <wl@gnu.org>
11941         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
11942         notices.
11944         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
11945         list of unsafe requests.
11947         * pic/pic.man: Fixed a typo.
11949         * man/groff_out.man: Fixed a typo.
11951 1999-12-18  Werner LEMBERG  <wl@gnu.org>
11953         * Makefile.in: Doc fixes.
11955 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
11957         * groff/groff.cc: Missing `U' option added to getopt().
11959         * troff/troff.man: Missing `U' option added to synopsis.
11961 Version 1.12 released
11962 =====================
11964 1999-12-14  Werner LEMBERG  <wl@gnu.org>
11966         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
11967         to the synopsis.
11969         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
11970         with the more appropriate terms `safer' and `unsafe'.
11972         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
11973         sys_nerr and sys_errlist[].
11975         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
11977         * pic/pic.y, pic/pic.cc: Added check for fmod().
11979 1999-12-13  Werner LEMBERG  <wl@gnu.org>
11981         * VERSION: Changed to 1.12.
11983         Here some patches from various sources; most of them taken from
11984         the Debian distribution.
11986         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
11987         tmac/Makefile.sub: New files copied directly from the NetBSD
11988         distribution.  Probably, some additional adaptation later on is
11989         necessary...
11991         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
11992         of unsafe requests.
11994         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
11995         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
11996         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
11997         (`-S') is now the default.
11999         * README, NEWS: Updated.
12001 1999-12-09  Werner LEMBERG  <wl@gnu.org>
12003         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
12005         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
12007 1999-12-06  Werner LEMBERG  <wl@gnu.org>
12009         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
12010         grief than relief today.  Additionally, it is against the GNU
12011         coding standards.
12013         * configure: Recreated.
12015 1999-12-05  Werner LEMBERG  <wl@gnu.org>
12017         * configure.in: Added GROFF_LIBM.
12019         * configure: Recreated.
12021         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
12022         necessary.
12024         * Makefile.in: Added definition of $(LIBM).
12026         * Makefile.comm (LIBM): Removed.
12028         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
12030 1999-12-03  Gaius Mulley  <gaius@glam.ac.uk>
12032         * doc/Makefile: Added rule for generation pic.html.
12034         (clean): Files produced by grohtml will be removed also.
12036         * doc/pic.ms: Small fix.
12038         * tmac/tmac.html: Fixed suppression of headers.
12040 1999-11-16  Gaius Mulley  <gaius@glam.ac.uk>
12042         * tmac/tmac.html: Fixing horizontal arrows.
12044         Turning off hyphenation.
12046         * tmac/tmac.an: Improved support for grohtml; better indentation,
12047         no footers/headers.
12049 1999-10-31  Gaius Mulley  <gaius@glam.ac.uk>
12051         * tmac/tmac.arkup: Added CDFTP macro
12053         * tmac/tmac.html: All headers are turned off for ms, me, and mm
12054         macros.
12056         * tmac/troffrc: Some additions for HTML stuff.
12058 1999-10-06  Gaius Mulley  <gaius@glam.ac.uk>
12060         * tmac/tmac.html: Small changes.
12062 1999-09-26  Werner LEMBERG  <wl@gnu.org>
12064         * doc/groff.texinfo: Minor fixes.
12066 1999-09-26  Gaius Mulley  <gaius@glam.ac.uk>
12068         * devhtml/TR: Changed spacewidth to 3.
12070         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
12072         * tmac/tmac.html: Moved markup macros to tmap.arkup.
12074         * tmac/tmac.arkup: New file.
12076         * grohtml/ChangeLog: New file.
12078 1999-09-16  Werner LEMBERG  <wl@gnu.org>
12080         * doc/groff.texinfo (Common Features): Added Copying chapter.
12081         Changed format to @smallbook.
12083 1999-09-15  Werner LEMBERG  <wl@gnu.org>
12085         * NEWS: Added info about groff.texinfo.
12087         * doc/groff.texinfo: Will now compile (using texi2dvi) without
12088         warning messages.
12090 1999-09-14  Werner LEMBERG  <wl@gnu.org>
12092         * groff/groff.man: More updates.
12094 1999-09-13  Werner LEMBERG  <wl@gnu.org>
12096         * doc/groff.texinfo: New file.  This manual is still very
12097         rudimentary.  It has been originally contributed by Trent
12098         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
12099         additions by me.
12101         * INSTALL: Added information about the `doc' subdir
12103         * troff/troff.man: Minor fixes.
12105         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
12106         reordered options.
12108         * troff/input.cc (usage): Added missing `-ffam' to usage message.
12110         * Makefile.in (dist): groff-$(version).tar.gz must be removed
12111         also, otherwise it is included itself in another call of `make
12112         dist'.
12114         * groff/groff.cc (synopsis): Removed superfluous space.
12116         * PROJECTS, PROBLEMS, NEWS: Updated.
12118         * VERSION: Updated to 1.12beta.
12120         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
12122         * README: Updated: Included documentation about CVS repository,
12123         mailing lists, and daily snapshots.
12125         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
12127 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
12129         * tmac/tmac.an: If the tag didn't fit into the space that the
12130         macro `TP' specifies, the rest of the tag went into the space for
12131         the next line.
12133 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
12135         * grolj4/lj4.cc: Added duplex printing (option `-d').
12137         * grolj4/grolj4.man: Document duplex printing.
12139 1999-09-12  Werner LEMBERG  <wl@gnu.org>
12141         * doc/Makefile (pic.ps): Fixed rule which caused problems with
12142         non-GNUish sed programs.
12144         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
12145         definition.
12147         * configure.in (LIBS): Added `-lc'
12149         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
12151         * pic/tex.cc (solid_arc): Casting M_PI to double.
12153         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
12155         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
12156         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
12157         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
12159         * groff/groff_man.man: New file.  This manual page was originally
12160         written for the Debian GNU/Linux system by Susan G. Kleinmann
12161         <sgk@debian.org>.
12163         * eqn/list.cc (list_box::compute_metrics,
12164         list_box::compute_sublist_width): Removed variable declaration to
12165         avoid shadowing warnings.
12167         * grops/psrm.cc (resource_manager::process_file): Ditto.
12169         * tfmtodit/tfmtodit.cc (main): Ditto.
12171         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
12172         to avoid shadowing warnings.
12174         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
12175         shadowing loop variable.
12177         * groff/groff.man, troff/troff.man: Added doc about grohtml.
12179 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
12181         New grohtml frontend to convert groff input to html.
12183         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
12185         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
12187         * tmac/eqnrc: Added html device.
12189         * tmac/tmac.html: New file.
12191         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
12192         (troff_output::start_picture, troff_output::finish_picture),
12193         tbl/main.cc (process_input_file):
12194         Surrounded output with `graphics_start' and `graphics_end' so that
12195         the html driver can identify non-text portions.
12197         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
12198         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
12199         grotty/tty.ps (tty_printer::set_char): Additional parameter
12200         `name'.
12202         * include/printer.h: Class printer: New function
12203         set_char_and_width; new variables (is_char_named, is_named_set,
12204         named_command, named_char_s, named_char_n) to hold information
12205         about named characters -- needed by the html driver.
12207         * libdriver/printer.cc (printer::set_ascii_char,
12208         printer::set_special_char): Use set_char_and_width.
12210         * devhtml/*: New device files for html driver.
12212         * grohtml/*: New driver grohtml.
12214 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
12216         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
12217         default strings.
12219 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
12221         * libgroff/string.cc (search): Small fix to test against NULL
12222         pointer.
12224 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
12226         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
12227         \b'abc') were stacked in reverse order when processed in a
12228         diversion.
12230         * troff/node.h: Added `*last' to struct `node' to make the above
12231         fix work.
12233         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
12234         The default scale for the 'f' and 't' graphics functions were 'm'
12235         rather than 'u' (i.e., no scaling).
12237 1999-09-11  Peter Miller  <peterm@jna.com.au>
12239         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
12240         do_file), soelim/soelim.man: Added `-I file' option to soelim,
12241         defining include paths.
12243         * soelim/soelim.cc (include_path_append): New function.
12245 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
12247         * tbl/main.cc (process_options): Unix (at least Documenter's
12248         Workbench) tbl allows arbitrary non-alpha characters between
12249         options.
12251 1999-09-11  Paul Eggert  <eggert@twinsun.com>
12253         Y2k fixes.  Don't assume that the current year precedes 2000.
12255         * doc/meref.me: Add \n(y2, \n(y4.
12257         * tmac/doc-common (Yr): New number register.
12258         (Dd): Don't assume current year precedes 2000.
12260         * tmac/tmac.e (td): Likewise.
12261         (y2, y4): New number registers.
12263         * pic/pic.man: Update reference for pic paper to May, 1991
12264         version.
12266 1999-09-11  Werner LEMBERG  <wl@gnu.org>
12268         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
12269         Removed quotation marks which prevented correct expansion of
12270         $(tmac_wrap).
12272         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
12274 1999-09-10  Werner LEMBERG  <wl@gnu.org>
12276         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
12277         `config.cache'.
12279         * Removed configure.old.
12281 1999-08-31  Werner LEMBERG  <wl@gnu.org>
12283         * VERSION: Updated to 1.11.1
12285 1999-05-27  Werner LEMBERG  <wl@gnu.org>
12287         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
12289         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
12290         added quotations around $(tmac_wrap) to avoid syntax error if
12291         variable is empty.
12293         * configure: Newly generated using autoconf 2.13.
12295         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
12297 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
12299         * README, PROJECTS, NEWS, INSTALL, VERSION, 
12300         doc/Makefile. doc/pic.ms, groff/groff.man:
12301         Prepare for 1.11 release.  No code changes.
12302         Documentation for pic added (doc/pic.ms).
12304 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
12306         * Version 1.10 released.
12308 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
12310         * afmtodit/afmtodit.pl: Avoid comment on first line.
12312 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
12314         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
12315         * configure.in: Call it.
12317         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
12318         (distfiles): Doesn't depend on config.log or config.cache.
12320 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
12322         * grog/grog.sh: Use print "" rather than print in END rule.
12324 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
12326         * tbl/main.cc (process_data): Don't give error for excess data
12327         entries that are comments.
12329 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
12331         * tbl/main.cc (process_data): Fix case where new for-scope rules
12332         silently change meaning of code.
12334 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
12336         * troff/env.cc (hyphenate): Loop over all consecutive sequences
12337         of non-zero hyphenation codes.
12339 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
12341         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
12343 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
12345         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
12347 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
12349         * tmac/tmac.andoc: Make it work in compatibility mode.
12351         * refer/token.h (token_info::is_range_sep): New function.
12352         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
12353         * refer/ref.cc (reference::output): More sophisticated check for
12354         multiple pages.
12356         * devps/prologue.ps (MANUAL): New procedure.
12357         * grops/ps.cc (main): New -m option.
12358         (usage): Include -m.
12359         (ps_printer::~ps_printer): Implement -m.
12361         * aclocal.m4 (GROFF_G): New macro.
12362         * configure.in: Call it.
12363         * Makefile.in (g): Provided by configure.
12365         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
12367         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
12368         translations.
12370         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
12371         (tmac_m, tmac_s): Deleted.
12372         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
12373         tmac_s_prefix): New variables.
12374         (MDEFINES): Change accordingly.
12375         * Makefile.comm (.man.n): Use new TMAC_* variables.
12376         * configure.in (GROFF_TMAC): Call.
12377         * aclocal.m4 (GROFF_TMAC): Define.
12378         * tmac/Makefile.sub (stamp_wrap): New target.
12379         (install_data, uninstall_sub): Handle macro wrapping.
12381 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
12383         * tbl/main.cc (main): Ignore -T option.
12385 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
12387         * devlj4/generate/special.map: Add definition of \(nb.
12389         * tmac/tmac.dvi: Add definition of \(nb.
12391         * troff/dictionary.c (dictionary::dictionary): association::v gets
12392         initialized by association::association.
12394         * tmac/Makefile.sub: Avoid using temporary files when installing.
12396         * troff/env.cc (environment::set_font): Make bad font number a
12397         warning.
12399         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
12401         * Makefile.in (datadir): Use share rather than lib.
12403         * groff/groff.cc (basename): Rename to xbasename.
12405 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
12407         * Makefile (CCLIBS): Don't use.
12408         * Makefile.ccpg: Likewise.
12410         * acgroff.m4: Rename to...
12411         * aclocal.m4: Modify extensively for autoconf 2.
12412         * configure.in: Likewise.
12413         * Makefile.in: Likewise.
12415         * groff/pipeline.c (const): Declare as empty if __STDC__ not
12416         defined.
12417         (xstrsignal): Check for definition of NSIG. Conditionalize
12418         on SYS_SIGLIST_DECLARED.  Make return type const.
12420 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
12422         * troff/input.cc (interpolate_macro): Rephrase missing space
12423         warning.
12425 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
12427         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
12428         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
12429         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
12430         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
12431         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
12432         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
12433         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
12434         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
12435         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
12436         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
12437         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
12438         Fix 'for' scoping.
12440 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
12442         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
12443         string_iterator.
12444         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
12445         file.
12446         (macro_iterator::macro_iterator): Add additional argument.
12448 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
12450         * troff/div.cc (vertical_size::vertical_size): In place of integer
12451         specifying line spacing use cunits specifying post vertical
12452         space.
12453         (macro_diversion::output, top_level_diversion::output): Likewise.
12454         * troff/div.h: Change declarations accordingly.
12455         * troff/env.cc (pending_output_line): Replace ls field by post_vs
12456         field.
12457         (pending_output_line::pending_output_line,
12458         pending_output_line::output, environment::output,
12459         environment::output_line, environment::output_title,
12460         environment::hyphenate_line):  In place of
12461         integer specifying line spacing use cunits specifying post vertical
12462         space.
12463         (environment::environment): Add post_vertical_spacing and
12464         prev_post_vertical_spacing arguments.
12465         (environment::get_post_vertical_spacing): New function.
12466         (environment::total_post_vertical_spacing): New function.
12467         (environment::post_vertical_spacing): New function.
12468         (init_env_requests): Initialize pvs request and .pvs register.
12469         * troff/env.h: Change declarations.
12471 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
12473         * tmac/tmac.pspic: Immediately remove the temporary file.
12475 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
12477         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
12478         height is specified.
12480 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
12482         * tbl/table.c (struct vertical rule, class table_entry): Use int
12483         not short for start_row and end_row.
12485 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
12487         * troff/input.cc (trapping_blank_line, blank_line_macro): New
12488         functions.
12489         (diverted_space_node::reread, process_input_stack): Call
12490         trapping_blank_line() rather than blank_line().
12491         (init_input_requests): Bind "blm" to blank_line_macro().
12493         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
12495 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
12497         * troff/env.cc (environment::possibly_break_line): Require that
12498         width total excluding width of final space node be greater than
12499         the target text length.
12501 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
12503         * troff/node.cc (kern_pair_node::vertical_extent): New function.
12505 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
12507         * troff/node.cc (charinfo_node): New class.
12508         (glyph_node, composite_node): Derive from charinfo_node.  Change
12509         member functions accordingly.
12511 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
12513         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
12515 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
12517         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
12519         * devps/generate/textmap (notsubset): Add.
12521         * tmac/tmac.a4: New file.
12523 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
12525         * pic/main.cc (had_parse_error): New variable.
12526         (do_picture, do_whole_file): Set had_parse_error if yyparse()
12527         returns non-zero.
12528         (main): Return 1 if had_parse_error is true.
12530 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
12532         * grolj4/lj4.cc (main): Avoid use of strtoul.
12534 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
12536         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
12537         iso_8859_1 or $LESSCHARSET is latin1.
12539 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
12541         * hpftodit: New directory.
12542         * Makefile.in (CCPROGDIRS): Add hpftodit.
12543         * devlj4/generate: New directory.
12545 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
12547         * configure.in: Don't use AC_VFORK.
12548         * groff/pipeline.c (run_pipeline): Use fork() always.
12550 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
12552         * grops/ps.cc (main): Use %1 not %s in error message for -w.
12554         * Makefile.in (CCPROGDIRS): Add grolj4.
12555         (DEVDIRS): Add devlj4.
12556         * grolj4, devlj4: New directories.
12557         * tmac/troffrc: Handle lj4.
12558         * tmac/tmac.lj4: New file.
12560 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
12562         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
12564 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
12566         * troff/input.cc (do_if_request): At end of second string, switch
12567         environments before getting next token.
12569 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
12571         * devps/psstrip.sed: Split rule that strips whitespace on either
12572         side of delimiters.
12574 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
12576         * troff/node.h (font_family::make_definition): Add return value to
12577         declaration.  * troff/symbol.h (symbol::operator==,
12578         symbol::operator!=): Likewise.
12580 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
12582         * groff/groff.cc (main, help, synopsis): Handle -S.
12583         (possible_command::insert_arg): New function.
12585         * tmac/tmac.safer: New file.
12586         * tmac/msafer.man: New file.
12587         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
12589 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
12591         * pic/pic.h, pic/main.cc (safer_flag): New variable.
12592         * pic/pic.y (placeless_element): Avoid unsafe operations if
12593         `safer_flag' is set.
12594         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
12596 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
12598         * eqn/lex.cc (get_token): Put call to add_context() in block to
12599         work around Sun C++ 4.0 bug.
12601         * include/stringclass.h (operator +): Use ?: instead of `if' to
12602         work around Sun C++ 4.0 bug.
12604 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
12606         * tbl/main.cc (process_format): Accept - as a synonym for the _
12607         key letter.
12609         * libbib/index.cc (minus_one): Don't declare as const.
12611 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
12613         * troff/input.cc (get_char_for_escape_name): Push back a newline.
12615 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
12617         * troff/input.cc (write_macro_request): New function.
12618         (init_input_requests): Bind write_macro_request to writem.
12620 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
12622         * tmac/tmac.s (@EN): Turn filling back on even if there was no
12623         equation.
12625         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
12627         * tmac/tmac.s (@TS): Renamed from TS.
12628         (TS): Call LP then TS again.
12629         (cov*ab-init): Alias @TS to TS.
12631         * tmac/tmac.s: Allow QP or RS to initialize.
12633         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
12634         Move initializations of PS and LL here.
12635         (par@init): Don't initialize HY.  Avoid changing environment 0.
12636         (par*env-init): Don't all par@reset.
12638 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
12640         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
12642 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
12644         * Makefile.in (MDEFINES): Add LDFLAGS.
12645         (LDFLAGS): Add definition line.
12647 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
12649         * troff/input.cc (get_optional_char): Split off error check into...
12650         (check_missing_character): New function.
12651         * troff/token.h: Declare it.
12652         * troff/env.cc (margin_character): Don't call get_optional_char.
12653         Only call tok.next() after making the node.
12655         * include/lib.h (getopt): Make 2nd argument char *const *.
12657 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
12659         * nroff/conftest.sh: Deleted.
12661 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
12663         * pic/make-dos-dist: Deleted.
12665 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
12667         * devps/psstrip.sed: Strip comments before stripping trailing
12668         white space.
12670 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
12672         * Version 1.09 released.
12674 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
12676         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
12678 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
12680         * libgroff/font.cc (font::load_desc): Fix typo in error message.
12682 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
12684         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
12685         about returning without a value.
12687         * troff/charinfo.h (charinfo::get_special_translation): Cast
12688         TRANSLATE_NONE to int.
12690         * refer/token.cc (lookup_token, store_token): Remove bogus loop
12691         test.  Fix test so that it works with n unsigned.
12693         * pic/pic.y (defaults_table): Fully bracket initializer.
12694         * pic/lex.cc (lookup_keyword): Likewise.
12695         * eqn/lex.cc (token_table, def_table): Likewise.
12696         * eqn/box.cc (param_table): Likewise.
12697         * troff/input.cc (warning_table): Likewise.
12698         * libgroff/font.cc (table): Likewise.
12699         * grops/ps.cc (ps_printer::special): Likewise.
12700         * grops/psrm.cc (resource_manager::process_file): Likewise.
12701         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
12702         * refer/command.cc (command_table): Likewise.
12703         * addftinfo/addftinfo.cc (param_table): Likewise.
12705         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
12706         about temp's being unused.
12707         (unused): New function.
12709         * groff/pipeline.cc: Declare c_fatal.
12711         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
12712         uchar.
12714         * libbib/index.cc (index_search_item::load): Prevent compiler
12715         warnings about fd_closer's being unused.
12716         (unused): New function.
12718 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
12720         * troff/input.cc (copy_mode_error): Make `prefix' static.
12721         Fix typo.
12723         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
12724         defined.
12725         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
12726         HAVE_CC_OSFCN_H and modify accordingly.
12728         * troff/input.cc (init_charset_table): radicalex overlaps
12729         horizontally.
12731         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
12732         udodo!hans@relay.NL.net).
12733         * groff/configure.in: Call it.
12735         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
12736         * groff/configure.in: Call it.
12737         * include/lib.h: Conditionalize declaration of pclose.
12739         * troff/div.cc (last_page_number): New global variable.
12740         (top_level_diversion::begin_page): Exit if we just printed the
12741         last page.
12742         * troff/div.h (last_page_number): Declare it.
12743         * troff/input.cc (parse_output_page_list): Set last_page_number.
12745         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
12746         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
12747         tmac/tmac.X: Likewise.
12748         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
12749         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
12751 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
12753         * tmac/doc-ditroff (hK): Remove groff specific code which
12754         prevented page-breaks between separate manual entries.  If this is
12755         the first page, don't set the page number to 1.
12757         * acgroff.m4 (GROFF_POSIX): New macro.
12758         * configure.in: Use it.
12760         * troff/node.cc (class real_output_file,
12761         real_output_file::real_output_file,
12762         real_output_file::~real_output_file): Conditionalize use of
12763         popen/pclose on POPEN_MISSING.
12764         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
12765         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
12766         (pipe_source): Similarily.
12768         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
12770         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
12771         presence of declarations by trying to compile example with
12772         conflicting declarations.  (gcc only gives a warning for missing
12773         declarations.)
12775 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
12777         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
12778         (from Ulrich Lauther).
12780 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
12782         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
12784 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
12786         * indxbib/indxbib.cc (write_hash_table): Add code for case where
12787         pointers and ints have different sizes.
12789 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
12791         * tmac/tmac.s (par*env-init): Call par@reset.
12793 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
12795         * tmac/tmac.s (@IP): Switch to a new environment when diverting
12796         tag.
12797         (par*push-tag-env, par*pop-tag-env): New macros.
12799 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
12801         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
12802         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
12804         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
12805         comment.  Include <time.h>.
12807 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
12809         * grops/ps.cc (is_small_h, is_small_v): Deleted.
12810         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
12811         lines.
12813 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
12815         * troff/input.cc (read_request): Only print a prompt if reading
12816         from the terminal.  Also clearerr on EOF if reading from the
12817         terminal.  Declare isatty.
12819 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
12821         * refer/label.y: Rename map_t to map_func and extractor_t to
12822         extractor_func.
12824 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
12826         * include/assert.h: Don't use volatile.
12827         * libgroff/assert.cc: Likewise.
12829 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
12831         * troff/input.cc (abort_request): Look at character in tok before
12832         calling get_copy().
12834 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
12836         * troff/troff.h (NO_RETURN): Deleted.
12837         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
12838         * troff/input.cc (exit_troff): Likewise
12840         * Makefile.in: Remove `Making ...' messages since GNU make now
12841         gives these. 
12843         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
12845 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
12847         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
12848         to constant 1 inch.
12850 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
12852         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
12854 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
12856         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
12857         MARK_REG if there was no left delimiter.
12859 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
12861         * pic/troff.cc (troff_output::text): Set line thickness to
12862         relative before outputting text.
12864         * tmac/tmac.e (@k): Don't zero ?T.
12865         ((z): Likewise.
12867 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
12869         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
12871 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
12873         * troff/input.cc (decode_args): Warn about unquoted tabs (from
12874         Paul Eggert).
12876 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
12878         * troff/input.cc (ignoring): New variable.
12879         (ignore): Set ignoring during call to do_define_macro.
12880         (do_define_macro): Clear ignoring before interpolating terminating
12881         macro.
12882         (copy_mode_error): New function.
12883         (get_char_for_escape_name, read_long_escape_name,
12884         interpolate_arg): Use copy_mode_error.
12885         (warning_table): Add WARN_IG.
12886         * troff/troff.h (WARN_IG): Declare.
12887         (WARN_TOTAL): Change accordingly.
12889         * groff/pipeline.c (strsignal): Rename to xstrsignal.
12890         * groff/groff.cc (strsignal): Delete declaration.
12892 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
12894         * troff/div.cc (page_offset): Use 'm' as default scaling.
12896 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
12898         * nroff/nroff.sh: Ignore -u.
12900 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
12902         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
12904 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
12906         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
12907         drawing box.
12908         (B2): With -Tascii, leave additional vertical space before
12909         and after. Ensure that the left and right indent is restored to
12910         what it was even if the point size changes.  Don't call
12911         par@finish. Change the indent, line length and title length
12912         directly.  With -Tascii, make the width of the box 1n less.
12913         (B1): Remember 1n at the current point size.  Don't call
12914         par@reset.  Change the indent, line length and title length
12915         directly.  Ensure that the temporary indent is preserved.
12916         (par*box-mark-top): Turn off no spacing mode.
12918 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
12920         * Makefile.in (dist): Use .gz suffix.
12922 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
12924         * troff/input.cc (main): Add return 0.
12925         * pic/main.cc (main): Use return instead of exit.
12926         * tbl/main.cc (main): Likewise.
12927         * eqn/main.cc (main): Likewise.
12928         * grops/ps.cc (main): Likewise.
12929         * grotty/tty.cc (main): Likewise.
12930         * groff/groff.cc (main): Likewise.
12931         * grodvi/dvi.cc (main): Likewise.
12932         * refer/refer.cc (main): Likewise.
12933         * indxbib/indxbib.cc (main): Likewise.
12934         * lkbib/lkbib.cc (main): Likewise.
12935         * soelim/soelim.cc (main): Likewise.
12936         * addftinfo/addftinfo.cc (main): Likewise.
12937         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
12938         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
12940         * troff/token.h (process_input_stack): Don't declare as static.
12941         * troff/input.cc: Likewise.
12943         * troff/node.c (invalidate_fontno): Make it a static member of
12944         class font_family.  Change callers.
12945         * troff/node.c: Change declaration.
12947         * tbl/main.cc (struct input_entry_format): Add explicit public
12948         specifier.
12949         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
12950         struct double_hline_stuff): Likewise.
12951         * tbl/table.h (struct entry_format): Likewise.
12952         * pic/object.h (struct saved_state): Likewise.
12954         * include/stringclass.h: Add forward declarations of friend
12955         functions that are later declared as inline.  Don't include inline
12956         specifier in friend declaration.
12958         * libgroff/lib.h: Declare popen and pclose.
12959         * acgroff.m4 (GROFF_POPEN): New macro.
12960         * configure.in: Call it.
12962         * include/lib.h (PI): New constant. Undef first if necessary.
12963         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
12964         * grops/ps.cc (degrees, radians): Likewise.
12965         * libgroff/font.cc (font::get_skew): Likewise.
12967         * grops/ps.cc (is_ascii): New function.
12968         (ps_output::put_string): Use is_ascii.  Use csprint rather than
12969         isprint.
12970         (ps_printer::define_encoding): Use csspace.
12971         * libgroff/strtol.c (ISASCII): New macro.
12972         (strtol): Cast arguments to is*() and tolower() to unsigned char.
12973         Use ISASCII rather than isascii.
12974         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
12975         * libgroff/cset.cc: Likewise.
12976         * libdriver/input.cc: Include cset.h.
12977         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
12978         than isdigit().
12980         * refer/refer.cc (main): Use %ld rather than %d for longs.
12982         * libbib/index.cc (index_search_item_iterator::get_tag): Use
12983         S_ISREG macro.
12985         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
12987 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
12989         * troff/input.cc (hyphenation_code): Skip white space between
12990         char/code pairs.
12992 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
12994         * tbl/table.h (table::entry_list_tailp): New member.
12995         (table::table): Initialize it.
12996         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
12997         behaviour.
12999 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
13001         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
13002         with negative horizontal positions. Remove casts of glyph::hpos to
13003         int.
13004         (USHRT_MAX): Delete definition.
13005         (SHRT_MAX, SHRT_MIN): New definitions.
13006         (glyph::hpos): Change type to short.
13007         (tty_printer::end_page): Output multiple backspaces if necessary.
13008          Remove casts of glyph::hpos to int.
13009         
13010 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
13012         * tmac/tmac.s (@RT): New definition.
13014 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
13016         * refer/refer.cc (do_file): Make sure current_filename is set when
13017         filename is "-".
13019         * pic/common.cc (common_output::dot_line): Handle zero length
13020         lines.
13022 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
13024         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
13025         (par@init): Initialize \n[HY].
13027 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
13029         * troff/dictionary.cc (dictionary::remove): Continue when
13030         r < j < i.
13032 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
13034         * Makefile.com (.y.cc): Avoid ending up with two versions of
13035         $(YTABH).
13037 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
13039         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
13040         (\(,C): Likewise.  Also fix typo.
13042 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
13044         * lib.h: Delete extraneous semi-colon.
13046         * Add pso request: `so' from a pipe.
13047         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
13048         (file_iterator::close): New function.
13049         (file_iterator::~file_iterator, file_iterator::next_file): Use
13050         file_iterator::close.
13051         (file_iterator::backtrace): Say `process' rather than `file' when
13052         the stream is popened.
13053         (pipe_source): New function.
13054         (init_input_requests): Bind ".pso" to pipe_source.
13056 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
13058         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
13060         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
13061         digits in lower case.
13063 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
13065         * Version 1.08 released.
13067         * Makefile.in (dist): Insert || true after ln -s commands that
13068         might fail.
13070         * mm: Update to mm 1.16.
13072         * acgroff.m4 (GROFF_CSH_HACK): New macro.
13073         * configure.in: Call GROFF_CSH_HACK.  Substitute for
13074         SH_SCRIPT_SED_CMD.
13075         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
13076         MDEFINES.
13077         * nroff/Makefile.sub (nroff): New target.
13078         (install_data): Install nroff.
13079         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
13080         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
13082 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
13084         * eqn/Makefile.sub (neqn): Add chmod +x.
13086         * grog/Makefile.sub (grog): Remove spurious semi-colon.
13088 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
13090         * troff/input.cc (string_iterator::string_iterator()): Initialize
13091         lineno and count.
13093 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
13095         * troff/div.cc (macro_diversion::space,
13096         top_level_diversion::space): Don't set high_water_mark.
13097         (macro_diversion::output, top_level_diversion::output): Don't
13098         include post line space in high water mark.
13100 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
13102         * eqn/eqn.y: Don't define YYDEBUG.
13103         * pic/pic.y: Likewise.
13105 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
13107         * tmac/tmac.e ([3): Add space after comma following editors.
13108         Change double spaces to single spaces.
13109         ([4): Change double spaces to single spaces.
13111         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
13112         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
13113         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
13114         after %!PS-Adobe- (for Newsprint).
13116         * troff/div.cc (top_level_diversion::begin_page): When
13117         before_first_page is 1, set page_number to 1.
13119 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
13121         * eqn/box.cc (box::top_level): Protect equation with \&.
13123 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
13125         * groff/groff.cc (possible_command::set_name): Delete old name.
13127         * groff/groff.cc (possible_command::~possible_command): Use
13128         a_delete.
13130         * troff/node.cc (troff_output_file::begun_page): New member.
13131         (troff_output_file::troff_output_file): Initialize it.
13132         (troff_output_file::really_begin_page): Only output V command if a
13133         page has been begun.
13135         * pic/pic.y (placeless_element): Delete argument to PRINT after
13136         use.
13138 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
13140         * Make wrapman work.
13141         * troff/div.h (class top_level_diversion): Replace
13142         first_page_begun by before_first_page (with opposite sense).
13143         * Change first_page_begun to before_first_page inverting sense.
13144         * troff/div.cc (class nl_reg): New class.
13145         (init_div_requests): Use class nl_reg for \n(nl.
13146         (top_level_diversion::begin_page): Don't call
13147         output_file::begin_page if before_first_page is 2;
13148         reset before_first_page afterwards.  If have_next_page_number is
13149         false, then always increment page_number.
13150         * tmac/tmac.an: Set traps within TH rather than at the top-level.
13151         Restore compatibility mode after loading, and then disable
13152         compatibility mode in TH.
13154 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
13156         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
13157         past last line.
13158         * troff/node.h (output_file::trailer): Declare.
13159         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
13160         * troff/node.cc (output_file::trailer): New function.
13161         (troff_output_file::~troff_output_file): Move most code into...
13162         (troff_output_file::trailer): New function.
13163         (class troff_output_file): Delete page_length member. Declare
13164         trailer().
13165         (troff_output_file::really_begin_page): Use current page length
13166         for final V command.
13168         * tbl/main.cc (struct options): New decimal_point_char member.
13169         (options::options): Initialize this.
13170         (process_options): Implement decimalpoint option.
13171         (process_data): Pass decimal_point_char option to table::table.
13172         * tbl/table.h (class table): New decimal_point_char member.
13173         (table::table): Add additional argument.
13174         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
13175         second argument specifying decimal point character.  Use this
13176         instead of '.'.
13177         (table::table): Initialize decimal_point_char.
13178         (table::add_entry): Change call to find_dot.
13180         * troff/input.cc (get_copy, token::next): Implement \V.
13181         (interpolate_environment_variable): New function.
13183 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
13185         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
13186         * pic/pic.y: Likewise.
13188         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
13189         Add casts to int.
13190         * refer/ref.cc (reference::insert_field, reference::delete_field):
13191         Likewise.
13192         * troff/number.cc (parse_term): Likewise.
13194         * acgroff.m4 (GROFF_PROG_YACC): New macro.
13195         * configure.in: Use GROFF_PROG_YACC.
13197         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
13198         and g++.
13199         * Makefile.in (OPTIMIZE): New define.
13200         (DEBUG): Empty by default.
13201         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
13203         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
13204         (GROFF_ARRAY_DELETE): Likewise.
13205         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
13207         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
13209         * devps/psstrip.sed: Use different delimiter on last line (so that
13210         it works with BSD 4.4 sed.)
13212 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
13214         * devps/psstrip.sed: Delete comments.
13216         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
13217         optind, opterr, optarg.
13218         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
13219         opterr, optarg.
13221 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
13223         * Makefile.in (check): Dummy target.
13225 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
13227         * Version 1.07 released.
13229         * Integrate mm 1.11.
13231         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
13232         where start_col was meant.
13234 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
13236         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
13238 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
13240         * troff/input.cc (token::next): Make \z\o'...' and similar things
13241         work.
13243         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
13244         constants.
13245         (environment): Add margin_character_flags member.
13246         * env.cc (environment::environment(symbol),
13247         environment::environment(const environment *): Initialize
13248         margin_character_flags.
13249         (margin_character): Rewrite.
13250         (environment::output_line): Add a margin character if
13251         margin_character_flags is non-zero.  Turn off the
13252         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
13253         zero, use margin_character_node without copying and then set
13254         margin_character_node to 0.
13256         * devps/DESC.in: Change minimum size to 1000.
13258 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
13260         * troff/symbol.h (symbol::hash): Change return type to unsigned
13261         long.
13262         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
13263         Add casts to int.
13265         * test-groff: Use -r rather than -x.
13267         * grops/psfig.diff: Include in distribution again.
13269 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
13271         * Makefile.in (dist): Use gzip.
13273 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
13275         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
13276         unistd.h as well as in stdlib.h.
13277         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
13278         defined; otherwise include <sys/types.h> and <unistd.h> if
13279         UNISTD_H_DECLARES_GETOPT is defined.
13281         * configure.in: use builtin(include, ... rather than include(...
13282         * configure: Regenerate with autoconf 1.3.
13284         * libdriver/print.cc (printer::adjust_arc_center): Use new
13285         algorithm suggested by Andy Fyfe.
13287         * libdriver/printer.cc (printer::adjust_arc_center): New function.
13288         * include/printer.h: Declare this.
13289         * grops/ps.cc (ps_printer::draw): Use it.
13290         * grodvi/dvi.cc (dvi_printer::draw): Use it.
13292 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
13294         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
13296 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
13298         * eqn/main.cc (main): Handle "eqn -".
13300 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
13302         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
13304         * mm: Integrate version 1.08.
13306         * pic/troff.cc (troff_output::finish_picture): Set
13307         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
13308         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
13309         if it's not defined. Check whether the register is non-zero rather
13310         than whether it's not defined.
13311         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
13313         * indxbib/indxbib.cc: Move all signal handling into...
13314         * indxbib/signal.c: New file.
13315         * configure.in: Call AC_RETSIGTYPE.
13317         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
13318         * configure.in: Call GROFF_STRUCT_EXCEPTION.
13319         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
13321         * troff/input.cc (token::token, token::operator=): Work round SGI
13322         C++ bug.
13323         * pic/object.cc (position::position): Likewise.
13325 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
13327         * pic/pic.h: Move declaration of hypot().
13329 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
13331         * pic/pic.h: Declare hypot().
13333         * pic/pic.h: Define M_PI if necessary.
13335 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
13337         * tmac/tmac.e (re): Add alternative version that doesn't use groff
13338         `.ta T' feature.
13340         * devps/prologue.ps (RE): Handle the possibility that the old font
13341         doesn't have a FontName entry.
13343 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
13345         * tmac/tmac.e (fam): Redefine to set family in environment 2.
13346         (@C): Use @fam not fam.
13348 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
13350         * lookbib/lookbib.cc (main): Change type of start to const char *.
13351         * lkbib/lkbib.cc (main): Likewise.
13353         * eqn/lex.cc (definition::definition): Don't use member
13354         initializer syntax for members of anonymous unions.
13356         * troff/input.cc (input_stack::backtrace): Change type of to const
13357         char *.
13359 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
13361         * include/stringclass.h (class string): Declare inline friend
13362         functions as inline in class declaration.
13363         * troff/hvunits.h (class hunits, class vunits): Likewise.
13364         * include/refid.h (class reference_id): Likewise
13365         * troff/troff.h (points_to_units(units), scale(units, double)):
13366         Delete declarations.
13367         * libdriver/input.cc (get_char): Delete declaration.
13368         * include/lib.h: Change 2nd argument of getopt from const char **
13369         to char **.
13370         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
13371         char **' before assigning to a `const char **'.
13372         * tbl/table.cc: Delete extra declarations of prints().
13374 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
13376         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
13377         char **' before assigning to a `const char **'.
13379         * libgroff/errarg.cc (errarg::errarg): Don't use member
13380         initializer syntax for members of anonymous unions.
13382 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
13384         * mm: Integrate version 1.07.
13386 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
13388         * troff/input.c (translate2): Rename to
13389         (translate_no_transparent).
13390         (init_input_requests): Rename tr2 to trnt.
13392 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
13394         * troff/charinfo.h (class charinfo): Add transparent_translate field.
13395         (charinfo::set_translation, charinfo::set_special_translation):
13396         Add second argument that specifies value for
13397         transparent_translate.
13398         (charinfo::get_translation, charinfo::get_special_translation):
13399         Add optional second argument that specifies whether translation is
13400         being used for transparent throughput.
13401         * troff/input.cc (charinfo::set_translation,
13402         charinfo::set_special_translation): Handle second argument.
13403         (charinfo::charinfo): Initialize transparent_translate.
13404         (translate): Split main part off into
13405         (do_translate): New function.  Pass argument saying whether
13406         translation applies to transparent throughput.
13407         (translate2): New request.
13408         (init_input_requests): Bind translate2 to `tr2'.
13410 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
13412         * tbl/table.h (class table): Add `nokeep' flag.
13413         * tbl/main.cc (process_options): Handle `nokeep' option.
13414         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
13415         table::do_bottom): Don't output keep/release macro definitions or
13416         calls when `nokeep' option has been specified.
13418 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
13420         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
13422 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
13424         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
13425         block_entry::divert, alphabetic_block_entry::divert): Add extra
13426         argument giving column separation.
13427         (table::compute_widths): Pass column separation to
13428         table_entry::divert().
13429         (block_entry::do_divert): If an entry spans multiple columns and a
13430         minimumum width has been specified for each column, then set the
13431         line length to the sum of the widths (plus possibly the column
13432         separations).
13434         * troff/input.cc (set_escape_char): Don't set the escape_char
13435         until after calling has_arg().
13437 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
13439         * tbl/table.cc (table::do_top): Add missing \s0 for double box
13440         case.
13442         * tbl/table.cc (table::print_double_hline): Avoid extra new line
13443         in case where r > nrows - 1.
13445         * tbl/table.cc (BODY_HEIGHT): Deleted.
13446         (LINE_SEP): New definition.
13447         (table::print_single_hline, table::print_double_hline,
13448         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
13449         table::do_row, table::do_top): Use LINE_SEP space before a line
13450         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
13452         * tbl/table.cc (text_entry::print_contents): New function.
13453         (text_string_name, right_text_string_name): Deleted.
13454         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
13455         (simple_text_entry::do_width, numeric_text_entry::do_width,
13456         alphabetic_text_entry::do_width): Don't store the contents of the
13457         entry in a string.
13458         (left_text_entry::simple_print, right_text_entry::simple_print,
13459         center_text_entry::simple_print,
13460         alphabetic_text_entry::simple_print,
13461         numeric_text_entry::simple_print): Print the entry directly
13462         instead of using the stored string.
13464 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
13466         * devps/Makefile: Strip PostScript files.
13467         * devps/prologue: Rename to...
13468         * devps/prologue.ps.
13469         * devps/psstrip.sed: New file.
13470         * devps/download: Use .pfa rather than .ps for installed versions
13471         of fonts.
13473 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
13475         * troff/env.cc (input_trap): Give a warning if the argument is out
13476         of range.
13478         * troff/env.cc (adjust): Treat negative argument as missing. Round
13479         argument > 5 down to 5.
13481         * troff/env.cc (center, right_justify): Make negative argument zero.
13483         * troff/div.cc (page_offset, vertical_position_traps): Treat
13484         invalid argument as missing.
13485         * troff/env.cc (line_spacing, line_length, title_length, indent,
13486         underline, hyphen_line_max_request, control_char,
13487         no_break_control_char, widow_control_request, adjust, input_trap,
13488         point_size): Likewise.
13489         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
13490         constant_space): Likewise.
13491         * troff/input.cc (compatible, shift, warn_request,
13492         set_escape_char): Likewise.
13494         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
13495         * tbl/table.cc (table::table): Likewise.
13497         * Makefile.dev (install_dev): depends on $(DEVFILES).
13499 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
13501         * devX75, devX75-12, devX100, devX100-12: New directories.
13502         * Makefile.in: Add these to DEVDIRS.
13504         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
13505         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
13506         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
13507         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
13508         targets.
13509         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
13510         (uninstall): New target.
13511         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
13512         uninstall_prog, uninstall_dev): New targets.
13514         * troff/div.cc (return_request): Treat an invalid argument as
13515         missing.
13517 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
13519         * tmac/tmac.e ((f): Set up the environment even when there's a
13520         current diversion.  Transperently throughput a call to @N.
13521         (@N): New macro.
13523 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
13525         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
13526         up to vertical resolution.
13528         * tbl/table.cc (table::do_row): Change row number after printing
13529         stuff list.
13531         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
13533 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
13535         * Rename CHANGES to NEWS.
13537 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
13539         * libgroff/new.cc (operator new): Avoid calling malloc(0).
13541 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
13543         * man.ultrix: Removed.
13545 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
13547         * Makefile.comm (extraclean): Delete files whose names begin with
13548         `='.
13550         * pic/troff.cc (troff_output::text): Fix typo in implementation of
13551         aligned text.
13553 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
13555         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
13556         * troff/div.cc (page_length, need_space, space_request): Treat
13557         invalid optional argument as missing.
13558         * troff/env.cc (number_lines): If the first argument is present
13559         but not a number, turn on line numbering, don't change the next
13560         line number and parse the remaining arguments.
13562         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
13564 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
13566         * eqn/box.h: Change declaration accordingly.
13567         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
13568         the specified size was bad but don't give an error.  Check for
13569         overflow.
13570         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
13571         * eqn/lex (do_size): Likewise.
13573 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
13575         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
13576         compatible headers.
13578 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
13580         * tbl/table.cc (table::init_output): Improve error message when
13581         table won't fit on one page.
13583 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
13585         * pic/troff.cc (troff_output::start_picture): Generate line
13586         containing a horizontal motion equal to the width of the picture.
13588         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
13589         using GROFF_COMMAND_PREFIX environment variable.
13591 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
13593         * mdate.sh: Use $NF rather than $(NF).
13595 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
13597         * pic/main.cc (main):  Use %1 not %c in argument to warning.
13599         * eqn/main.cc (main): Output code to check that geqn was given the
13600         correct -T option.
13602 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
13604         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
13605         `ln -s ../Makefile .; make; rm -f Makefile'.
13607         * troff/hyphen: Rename to...
13608         * troff/hyphen.us:
13609         * troff/input.cc (main): Delete -H option. Don't call
13610         read_hyphen_file().
13611         * troff/env.cc: Include searchpath.h and macropath.h.
13612         (exception_dictionary): Deleted.
13613         (ht): Deleted.
13614         (read_hyphen_file): Deleted.
13615         (hyphenation_language): New struct.
13616         (class trie, class hyphen_trie): Move declarations up.
13617         (trie_node::~trie_node): Deleted.
13618         (trie::delete_trie_node): New function.
13619         (trie::do_delete): New pure virtual function.
13620         (hyphen_trie::do_delete): New function.
13621         (trie::~trie): New function.
13622         (hyphen_trie::~hyphen_trie): New function.
13623         (trie::clear): No need to chcek that tp is not 0.
13624         (current_language, language_dictionary): New variables.
13625         (hyphen_word): Give an error if no current language.  Use
13626         exceptions dictionary in current language.
13627         (hyphen_trie::read_patterns_file): Find file using macro_path.
13628         Allow comments (starting with %) in patterns file.  Don't make it
13629         a fatal error if the file can't be found.
13630         (hyphenate): Return if no current language.  Get the exceptions
13631         dictionary and the hyphenation patterns from the current language.
13632         (set_hyphenation_language): New variable.
13633         (hyphenation_patterns_file): New function.
13634         (hyphenation_language_reg): New class.
13635         (hyphenation_language_reg::get_string): New function.
13636         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
13637         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
13638         register.
13639         * groff/groff.cc (main, help, synopsis): Delete -H option.
13640         * include/Makefile.sub: Don't define HYPHENFILE.
13641         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
13642         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
13643         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
13644         hyphenation patterns.
13646 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
13648         * eqn/neqn.sh: New file.
13649         * eqn/Makefile.sub: Handle neqn.sh.
13651         * eqn/eqn.h: Declare `nroff' variable.
13652         * eqn/box.cc (param_table): Add `nroff' param.
13653         (nroff): Define it.
13654         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
13655         variable.
13656         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
13658         * troff/troff.h (WARN_FONT): New warning.
13659         (WARN_TOTAL): Change accordingly.
13660         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
13661         (warning_table): Add WARN_FONT.
13662         * troff/node.cc (mount_font_no_translate): Pass argument to
13663         font::load_font.  If this is non-zero, give a warning.
13664         Don't give an error message when accessing a font that has already
13665         been found to be invalid.
13666         * include/font.h (font::load, font::load_font): Add additional
13667         optional argument which suppresses error message if the font is
13668         not found.
13669         * libgroff/font.cc (font::load_font): Handle additional argument.
13670         (font::load): Add additional argument. If this is non-null, set it
13671         to 1 and don't give error message.
13673         * include/printer.h (printer::end_page): Add argument giving
13674         length of page.
13675         * libdriver/input.cc (do_file): Pass this.
13676         * grops/ps.cc (ps_printer::end_page): Add argument.
13677         * grodvi/dvi.cc (dvi_printer::end_page,
13678         draw_dvi_printer::end_page): Add argument.
13679         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
13680         columns_per_page members. New member nlines.
13681         (DEFAULT_LINES_PER_PAGE): Deleted.
13682         (tty_printer::tty_printer): Don't compute lines_per_page from
13683         font::paperlength. Don't compute columns_per_page from
13684         font::paperwidth.
13685         (tty_printer::add_char): Don't check horizontal position against
13686         columns_per_page. Grow glyphs vector if neccessary.
13687         (tty_printer::end_page): Add argument giving page_length in units.
13688         Discard lines past end of page.
13690 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
13692         * tmac/tmac.tty-char: Fix definition of \(/l.
13694         * tmac/tmac.X: Define \(en.
13696 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
13698         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
13699         lpq, then use lp rather than lpr.
13701         * tmac/tmac.s (par@reset): Don't call `ad'.
13702         (par*env-init): Call `ad'.
13704 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
13706         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
13707         date.
13709         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
13710         * indxbib/indxbib.cc: Likewise.
13712 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
13714         * libgroff/putenv.c: New file.
13715         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
13716         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
13717         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
13718         stdlib.h with AC_HAVE_HEADERS.
13720 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
13722         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
13723         does not exist.
13725 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
13727         * eqn/box.cc (gsize): Make it an int.
13728         (set_gsize): Parse argument handling increment or decrement.
13729         (box::top_level): Convert gsize to a string.
13731         * troff/input.cc (exit_troff): Make buf unsigned char [].
13732         Call to make_temp_iterator casts buf to char*.
13734         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
13736         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
13737         * Makefile.cpg (depend.temp): Likewise.
13739         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
13741         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
13743 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
13745         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
13747 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
13749         * Version 1.06 released.
13751         * Integrate mm 1.04.
13753 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
13755         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
13757 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
13759         * afmtodit/afmtodit.pl: Add -n option that disables generation of
13760         ligatures command.
13761         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
13762         afmtodit. Regenerate.
13764         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
13765         @f back past the current position.
13767         * tmac/tmac.e: Change calls to @R so that comments are not part of
13768         arguments.
13770 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
13772         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
13774         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
13775         check that we can link a call to a function declared in <stdio.h>.
13776         (GROFF_UNISTD_H): New macro.
13777         * configure.in: Call it.
13778         * Makefile.in: Document it.
13779         * include/posix.h: New file.
13780         * troff/troff.h: Don't include <osfcn.h>
13781         * troff/input.cc: Include posix.h.
13782         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
13783         osfcn.h.
13784         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
13785         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
13786         <fcntl.h>.
13787         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
13788         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
13789         * libbib/search.cc (O_RDONLY): Delete definition.
13790         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
13791         Don't include <osfcn.h>.
13793         * acgroff.m4 (GROFF_TIME_T): New macro.
13794         * configure.in: Call it.
13795         * Makefile.in: Document it.
13797         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
13798         * configure.in: Call it.
13799         * Makefile.in: Document -DTRADITIONAL_CPP.
13800         * include/ptable.h: Don't include generic.h.
13801         (name2): Define it.
13803         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
13804         Afterwards remove [T1 and [T2.
13805         (ref*spec!0, ref*spec!2): Use T1 rather than T.
13806         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
13807         (ref*add-T2): Renamed from ref*add-T.
13808         (ref*add-T1): New macro.
13810 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
13812         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
13814         * libbib/index.cc: Include <fcntl.h>.
13815         (O_RDONLY): Define if necessary.
13816         (make_index_search_item, index_search_item_iterator::get_tag,
13817         index_search_item::check_files): Use O_RDONLY.
13818         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
13819         (O_RDONLY): Define if necessary.
13820         (search_list::add_file): Use O_RDONLY.
13821         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
13822         <sys/stat.h>.
13823         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
13824         (main): Use these.
13826         * libbib/index.cc (S_ISREG): Define it if necessary.
13827         (index_search_item::load): Use S_ISREG.
13829         * include/driver.h: Include <errno.h>.
13831 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
13833         * eqn/box.cc (body_height): Increase default value to 85.
13834         (body_depth): Increase default value to 35.
13836 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
13838         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
13839         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
13840         protected from expansion with \E.
13842         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
13844         * Makefile (Makefile): New target.
13846         * Makefile.sub (configure, distfiles): New targets.
13848         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
13849         construct.
13851 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
13853         * eqn/box.cc (param_table): Add body_height and body_depth.
13855         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
13857 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
13859         * psbb/Makefile.sub: Don't link with libgroff.a.
13861         * acgroff.m4 (GROFF_PUTENV): New macro.
13862         * configure.in: Call GROFF_PUTENV.
13863         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
13864         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
13865         is defined.
13867         * troff/env.cc (distribute_space): Rename force_forward argument
13868         to force_reverse.  Reverse the list if force_reverse is true.
13870 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
13872         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
13874         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
13875         height or depth to be negative.  Guard against SUP_RAISE quantity
13876         being negative.
13878 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
13880         * devps/generate/textmap: Add `an' (arrowhorizex).
13881         * tmac/tmac.ps: \(an overlaps horizontally.
13882         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
13884         * devps/symbolchars: Add arrowverttp, arrowvertbt.
13885         * devps/textmap: Add arrowvertex.
13886         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
13887         updownarrow delimiters.
13888         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
13890         * tbl/table.cc (simple_entry::position_vertically,
13891         block_entry::position_vertically):  For a centered entry, perform
13892         the motion in two stages.
13894         * refer/refer.cc (split_punct): Don't call lookup_token if there
13895         is no token.
13897 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
13899         * troff/input.cc (token::next): Delete token_node after copying
13900         token.
13902         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
13903         cur_point_size.
13905         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
13907         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
13909 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
13911         * grops/ps.cc (usage): -b option takes an argument.
13913         * devps/prologue (PLG): New procedure.
13914         * grops/ps.cc (main, usage): New -g option.
13915         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
13916         length using PLG.
13918 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
13920         * include/cset.h: Include <limits.h> if we have it.
13922         * libgroff/illegal.cc: New file.
13923         * include/lib.h (illegal_input_char): Use table.
13924         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
13925         * pic/lex.cc (ARG1): Renumber to 14.
13926         * eqn/lex.cc (ARG1): Likewise.
13928         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
13929         (eg 1.05.90) correctly.
13931 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
13933         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
13934         Rename $r and $R registers to $v and $V.
13935         ($r, $R): Initialize to 0.
13936         (@v, @V): New macros.
13937         (sz): Call @v.
13938         (@M): Call @V.
13940         * troff/input.cc (main, usage): Add -R option that says not to
13941         load troffrc.
13942         * eqn/main.cc (main, usage): Rename -n to -R.
13944 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
13946         * devps/DESC.in: Leave font positions 5-9 blank.
13947         * devdvi/DESC.in: Likewise.
13949         * grog/grog.pl: Handle `.PS <file' correctly.
13951         * troff/input.cc (input_stack::push): Improve error message when
13952         input stack limit exceeded.
13954 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
13956         * refer/refer.cc (main): Fix typo in handling of `a' option.
13958         * refer/refer.cc (do_bib): In state START after a newline remain
13959         in state START.
13961         * groff/groff.sh: Deleted.
13962         * groff/Makefile.sub: Delete handling of groff.sh.
13964         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
13965         to determine whether to use \X'ps:...'.
13966         * tmac/troffrc: Set 0p register to 0.
13967         * tmac/tmac.ps: Set 0p register to 1.
13969         * groff/groff.cc: Support -X option. Give warning for -TXps and
13970         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
13971         * tmac/troffrc: Support -r.X=1.
13973         * pic/troff.cc (troff_output::dot): Don't test
13974         zero_length_line_flag.
13976 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
13978         * include/lib.h: Declare getopt() and friends unless
13979         STDLIB_H_DECLARES_GETOPT is defined.
13981         * doc/chars.tr: Delete.
13982         * man/groff_char.man: New file.
13984 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
13986         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
13987         user has changed register format.
13989 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
13991         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
13992         `postpro' command in DESC file.  Get spooler command from `print'
13993         command in DESC file.  Execute spooler command with /bin/sh.
13995         * groff/groff.cc: Split Unix-specific parts into...
13996         * groff/pipeline.c: New file.
13998         * LICENSE: Delete.
13999         * COPYING: New file.
14000         * all files: Update copyright notices.
14002         * Rearrange files.  Redo Makefiles.  Use autoconf.
14004 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
14006         * troff/input.c (charinfo_to_node_list): Interpret character
14007         definition with escape_char of `\'.
14009 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
14011         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
14012         Define INT_DIGITS as big enough for 64-bit integer.
14013         * lib/strtol.c: Don't include lib.h.
14014         * lib/lib.h: Delete ifdef __cplusplus stuff.
14016 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
14018         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
14019         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
14020         get DESC from current directory.
14022 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
14024         * tbl/main.c (main): Always reset the line number when reading
14025         from stdin.
14027         * tbl/table.c (table::print_single_hline, table::print_double_hline,
14028         table::define_bottom_macro, table::do_row, table::do_top): Round
14029         vertical spacing up to vertical resolution.
14031 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
14033         * ps/ps.h (enum resource_type): Avoid comma at end of
14034         enumerator-list.
14035         * dvi/dvi.c (class dvi_printer): Likewise.
14036         * dvi/tfmtodit.c (gf::load): Likewise.
14037         * refer/label.y (struct expression): Likewise.
14038         * refer/refer.c (class label_processing_state): Likewise.
14039         * refer/indxbib.c (do_file): Likewise.
14040         * troff/troff.c (enum warning_type): Likewise.
14041         * tbl/main.c (process_data): Likewise.
14042         * troff/charinfo.h (class charinfo):
14044 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
14046         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
14048 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
14050         * groff.c: Move to new groff subdirectory.
14051         * groff/Makefile: New file.
14052         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
14054         * man/mdate.sh: Use ls -L if supported.
14056         * Consolidate all header files produced by gendef into lib/defs.h.
14057         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
14058         Don't include path.h.
14059         * lib/Makefile (path.h): Don't generate.
14060         * troff/input.c: Include defs.h. Don't include config.h.
14061         * troff/Makefile (config.h): Don't generate.
14062         * refer/index.h: Don't include suffix.h.
14063         * refer/index.c: Include defs.h.
14064         * refer/indxbib.c: Include defs.h.
14065         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
14066         defs.h.
14067         * refer/Makefile (suffix.h, path.h): Don't generate.
14068         * groff.c: Don't include config.h. Include defs.h.
14069         * Makefile (config.h): Don't generate.
14070         (lib/defs.h): Generate.
14071         (topclean): Remove lib/defs.h.
14073 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
14075         * lib/malloc.c, lib/getpagesize.h: Deleted.
14076         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
14077         related stuff.
14078         * lib/Makefile: Delete malloc-related stuff.
14079         * lib/new.c: Workaround COOKIE_BUG if necessary.
14081         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
14082         needed header files directly.
14083         * refer/refer.h: Omit definition of DEFAULT_INDEX.
14084         * Makefile: Include definition of DEFAULT_INDEX in path.h.
14086 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
14088         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
14089         argument.
14090         * lib/font (font::load_desc, font::load): Don't split argument of
14091         unknown command.
14092         (font::handle_unknown_font_command): Change type.
14093         * ps/ps.c (ps_font::handle_unknown_font_command,
14094         handle_unknown_desc_command): Change type.
14095         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
14097 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
14099         * lib/font.h (font::handle_unknown_font_command): Add file and
14100         line arguments.
14101         * lib/font.c (font::handle_unknown_font_command):
14102         * ps/ps.c (ps_font::handle_unknown_font_command):
14103         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
14104         lineno arguments.  Use _with_file_and_line functions for error
14105         reporting.
14107         * lib/fontfile.c (font::unknown_desc_command_handler): New static
14108         data member.
14109         * lib/font.c (font::set_unknown_desc_command_handler): New
14110         function.
14111         (font::load_desc): For unknown commands, call
14112         unknown_desc_command_handler if not null.
14113         * lib/font.h (class font): Declare them.
14114         (FONT_COMMAND_HANDLER): New typedef.
14115         * ps/ps.c (handle_unknown_desc_command): New function.
14116         (main): Set bflag if we had a -b option. Call
14117         font::set_unknown_desc_command_handler.
14118         (broken.h): Don't include.
14119         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
14120         submake 
14121         * ps/devps/Makefile: Add `broken' command to DESC file using
14122         BROKEN_SPOOLER_FLAGS.
14124         * macros/tmac.e ([, ]): Add as synonyms for { and }.
14126         * macros/tmac.e ($p): Only exdent if \$3 > 0.
14128         * macros/tmac.e (@R, @S): New macros.
14129         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
14130         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
14131         Declare $H, $[0-9], .. macros with @S.
14132         Declare |0, |1, |2, |3 strings with @S.
14134         * macros/tmac.e (@S): Rename to @U.
14136         * macros/tmac.e (@z): Define @b and bp as empty instead of
14137         deleting them,
14139         * macros/tmac.e (@m): Deleted.
14140         (@h): Don't call @m.
14141         (@z): Don't set @m trap.
14143         * macros/tmac.e ($h, $f): Define |z as empty string.
14145         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
14146         (@q): Likewise.
14148         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
14149         removing them.
14150         ()f): Likewise for * register.
14152         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
14153         argument is missing, don't change $R.  Call sr with three
14154         arguments when initializing.
14156 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
14158         * macros/tmac.e (sr): New macro.
14159         Initialize $r and $R using sr.
14161         * macros/tmac.e (,): Delete \*(#[.
14163         * troff/env.c (set_tabs): Read the tab type even if the position
14164         is bad.  Allow the position of the first tab stop to be negative.
14166 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
14168         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
14169         _POSIX_VERSION.
14170         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
14171         rather than -DPATHCONF_MISSING.
14172         * Makefile: Get rid of PATHCONF_MISSING.
14174         * refer/map.c: New file.
14175         * refer/index.c: Interface to mmap through map.c.  Rename map_size
14176         to map_len.
14177         * refer/Makefile: Handle map.c.
14178         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
14180 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
14182         * Makefile: RANLIB should be `true' if there is no ranlib.
14183         * lib/Makefile (libgroff.a): Simplify.
14184         * driver/Makefile (libdriver.a): Simplify.
14186         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
14187         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
14188         defined.
14190 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
14192         * troff/env.c (compare_ranges): Declare as extern "C".
14194         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
14196         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
14198 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
14200         * pic/troff.c (troff_output::text): Merge in grops_output::text,
14201         but conditionalize use of \X based on \*(.T.
14202         (grops_output::*): Deleted.
14203         * pic/output.h: Delete declaration of make_grops_output.
14204         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
14205         by default. -n sets it to 0.
14206         (usage): Corresponding changes.
14207         * groff.c (main): Don't pass -x or -p to pic.
14208         * groff.sh: Likewise.
14210         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
14211         to be non-zero.
14213         * ps/devps/afmtodit: Change calculation of asc_boundary and
14214         desc_boundary.  Make these bounds inclusive.
14215         * ps/devps: Regenerate font files.
14217 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
14219         * macros/tmac.latin1: New file.
14220         * macros/tmac.tty-char: Use tmac.latin1.
14221         (tmac.tty-tr): Deleted.
14222         * macros/Makefile: Install tmac.latin1.
14223         * macros/tmac.dvi: Use tmac.latin1.
14224         * macros/troffrc: Translate \[char160] onto no-break space here.
14225         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
14227 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
14229         * macros/tmac.Xps: Use `do' request.
14231         * macros/tmac.ps: Use `do' request.
14233         * macros/tmac.e (@C): Use `do' request.
14235         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
14236         * macros/Makefile: Install tmac.X*.
14238         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
14239         * tty/Makefile: Don't install tmac.tty*.
14240         * macros/Makefile: Install tmac.tty*.
14242         * dvi/tmac.dvi: Move to macros.
14243         * dvi/Makefile: Don't install tmac.dvi.
14244         * macros/Makefile: Install tmac.dvi.
14246         * ps/tmac.ps*: Move to macros.
14247         * ps/Makefile: Don't install tmac.ps*.
14248         * macros/Makefile: Install tmac.ps*.
14250         * eqn/box.c: Provide draw_lines parameter corresponding to -D
14251         option.
14252         * macros/eqnrc: Set draw_lines parameter based on device.
14253         * groff.c: Don't pass -D flag to eqn.
14254         * groff.sh: Likewise.
14255         * eqn/main.c: Warn about use of -D.
14257         * troff/input.c (process_startup_file): New function.
14258         (main): Call process_startup_file().
14259         * macros/troffrc: New file.
14260         * macros/Makefile: Install troffrc.
14261         * groff.c (main): Don't pass extra -m option to troff. For a 
14262         pseudo device pass the name of the pseudo device to troff using
14263         -d.
14264         * groff.sh: Likewise.
14265         * groff.c (possible_command::prepend_arg): Deleted.
14267         * troff/input.c (do_request): New function.
14268         (init_input_requests): Bind "do" to do_request.
14270         * eqn/main.c (main): Instead of loading eqnchar from device directory,
14271         load eqnrc from macro directory.
14272         * macros/eqnrc: New file.
14273         * macros/Makefile: Install eqnrc.
14274         * ps/devps/eqnchar: Deleted.
14275         * ps/devps/Makefile: Don't install eqnchar.
14276         * dvi/devdvi/eqnchar: Deleted.
14277         * dvi/devdvi/Makefile: Don't install eqnchar.
14278         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
14279         variable optM.
14281         * lib/device.[ch]: New files.
14282         * lib/font.h (font::set_device_name, font::get_device_name):
14283         Deleted.
14284         * lib/fontfile.c: Use device.h.
14285         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
14286         * troff/input.c: Delete definition of `device'.
14287         (main): Don't initialize device.
14288         * troff/troff.h: Include device.h rather than declaring device.
14289         * troff/Makefile: No need to handle DEVICE.
14290         * driver/input.c: Include device.h. Don't use
14291         font::{set,get}_device_name.
14292         * groff.c, Makefile: Rename device.h to config.h.
14293         * groff.c: Use library device variable.
14294         * eqn/main.c: Use library device variable.
14295         * eqn/Makefile: No need to handle DEVICE.
14297         * lib/searchpath.[ch]: New files.
14298         * lib/Makefile: Handle searchpath.[ch].
14299         * troff/input.c (open_file, init_dirs): Deleted.
14300         (macro_dirs): Deleted.
14301         (open_mac_file, macro_source): Use class search_path.
14302         (add_string, struct string_list): Move definition.
14303         (main): Change -M option to use macro_path. Delete call to
14304         init_dirs().
14305         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
14306         Rewrite to use class search_path.
14307         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
14308         * lib/Makefile: fontfile.c depends on searchpath.h.
14309         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
14310         MACROPATH.
14311         * lib/macropath.[ch]: New files.
14312         * troff/Makefile: No need to handle MACROPATH.
14314         * troff/input.c: Delete DUMP code.
14315         * lib/fontfile.c, lib/font.h: Delete
14316         font::forget_command_line_font_dirs.
14318         * troff/input.c (push_token): New function.
14319         (handle_first_page_transition): Use push_token().
14320         (process_input_stack): Change handling of a space at the beginning
14321         of the line.
14323 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
14325         * troff/input.c (font_dirs): Delete unused variable.
14327         * eqn/lex.c (do_set): Correct error messages.
14329 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
14331         * troff/input.c (do_define_string): Allow the string name to be
14332         followed immediately by a tab.
14333         (define_character): Likewise.
14335 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
14337         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
14338         be negative.
14340         * troff/input.c (input_iterator::is_file): New virtual function.
14341         (file_iterator::is_file): New function.
14342         (input_stack::end_file): New function.
14343         (input_stack::next_file): Handle the situation where there is no
14344         file on the input stack correctly.  Avoid making two passes over
14345         the input stack.
14346         (next_file): Make the filename optional; in this case call
14347         input_stack::end_file().
14349 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
14351         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
14352         produce a real _ charater when the current font is CW and _
14353         otherwise.
14355         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
14356         expression to work around gcc 2.2 bug.
14358 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
14360         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
14362         * troff/env.c (environment::add_padding): New function.
14363         (environment::add_char): Use add_padding().
14364         (environment::space): Likewise.
14365         (environment::wrap_up_field): Add some padding if there is none
14366         and there's no current tab.
14367         * troff/env.h: Declare environment::add_padding.
14369 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
14371         * pic/pic.y: undef fmod and rand before declaring them.
14373 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
14375         * troff/input.c (main): If the DESC file specifies a font name of
14376         0, then leave the corresponding font position empty.
14378         * nroff.sh: New file.
14379         * Makefile (install.nobin): Install nroff.sh.
14381         * tty/devlatin1/R.proto: Add ao as synonym for de.
14382         * tty/tmac.tty-char: Define ao as o.
14384         * tty/dev{ascii,latin1}/R.proto: Add aq.
14385         * tty/tmac.tty-char: Delete definition of aq.
14387 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
14389         * troff/input.c (init_charset_table): Don't translate 0240.
14390         * ps/tmac.ps: Translate char160 to space.
14391         * dvi/tmac.dvi: Likewise.
14392         * tty/tmac.tty: Likewise.
14394 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
14396         * dvi/tmac.dvi: Add support for all Latin-1 characters.
14398         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
14399         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
14400         \(oe, \(r?, \(r!.
14402         * tty/tmac.tty-char: Add \(ah.
14404         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
14405         No need to define \(FM and \(!/. Conditionalize all character
14406         definitions.
14408         * ps/devps/lgreekmap: Add +h, +f, +p.
14410         * ps/tmac.psnew: New file.
14411         * ps/Makefile: Install tmac.psnew.
14413         * troff/input.c (charinfo_to_node_list): Don't ever interpret
14414         character definitions in compatible mode.
14416         * troff/input.c (remove_character): New function.
14417         (init_input_requests): Bind remove_character to "rchar".
14419         * ps/tmac.psold: New file.
14420         * ps/Makefile: Install tmac.psold.
14421         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
14422         characters into tmac.psold.  Make these definitions unconditional.
14424         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
14426         * ps/tmac.ps: Don't define \('c and \('C.
14428         * ps/devps/textmap: Move Greek characters to...
14429         * ps/devps/symbolchars:
14431 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
14433         * ps/devps/text.enc: Add quotesingle.
14434         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
14435         * tty/tmac.tty-char: Likewise.
14436         * dvi/devdvi/texmi.map: Add +h, +f, +p.
14437         * dvi/devdvi/texi.map: Add Fn.
14438         * dvi/devdvi/msam.map: Add lz.
14439         * dvi/tmac.dvi: Handle Bq, bq, aq.
14441         * pic/lex.c (get_token): Recognize 'th.
14442         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
14444 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
14446         * ps/devps/textmap: Move di, mu, +- to...
14447         * ps/devps/symbolchars:
14449         * macros/tmac.s (@XS): Don't call par@reset or fi.
14450         (XA): Call LP. Turn off adjustment. Reduce line length.
14452         * macros/tmac.s: Initially alias XS to LP.
14453         (XS): Rename to @XS.
14454         (cov*ab-init): Alias XS to @XS.
14456 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
14458         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
14459         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
14460         (token::is_size, token::changes_env): Deleted.
14461         * troff/number.c (parse_term): No need to process \s explicitly.
14462         Call tok.next() only after scale indicator has been processed.
14463         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
14464         \f etc explicitly.
14465         (token::next): Handle \s, \f, \S, \H immediately rather than
14466         returning them as tokens.
14467         (token::operator==, token::description, token::add_to_node_list,
14468         token::process): Remove handling of deleted tokens.
14470         * troff/env.c (environment::add_char): When adding padding
14471         indicator character, call start_line() if necessary.
14473 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
14475         * ps/devps/afmtodit: Don't output 0 kerns.
14477         * ps/devps/afmtodit: Remove directory from name of encoding in
14478         font description file.
14480         * ps/devps/afmtodit: Improve error messages.
14482         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
14484         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
14485         * ps/devps/FontMakefile: Deleted.
14486         * ps/devps/afmname: New file.
14488         * ps/devps/symbol.sed: New file.
14489         * ps/devps/symbol.diff: Deleted.
14490         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
14491         Generate zapfdr.afm from zapfd.afm.
14493         * tty/tmac.tty (tty-char): Prefix definition with ".
14495         * macros/tmac.an (TP): Don't start a diversion if one has already
14496         been started.
14498         * tty/tmac.tty-char: Add Latin-1 characters.
14500         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
14502 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
14504         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
14505         Move declaration of struct horizontal_span.
14507         * tbl/table.c (table::table): Initialize span_list.
14508         (table::~table): Delete span_list.
14510         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
14512         * ps/devps/Makefile: Avoid dependency on GNU make.
14514         * ps/tmac.ps: Check that character does not already exist before
14515         defining it.
14517         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
14518         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
14519         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
14520         files.
14522         * tty/tmac.tty-char: New file.
14523         * tty/Makefile: Install tmac.tty-char.
14524         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
14525         tmac.tty-char.
14527         * tty/tmac.tty: Fix definition of \(34.
14529         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
14530         bracket-drawing characters onto |. Add *o.
14532         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
14533         only if current_field.
14535         * troff/dictionary.c (dictionary::lookup): Free old_table after
14536         rehashing. 
14538 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
14540         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
14541         whose glyphs are identical to glyphs of some Roman character.
14543         * tty/devlatin1/R.proto (bu): Deleted.
14544         * tty/devascii/R.proto (bu): Deleted.
14545         * tty/tmac.tty: Add definition of \(bu.
14547         * eqn/main.c (do_file): Pass FILE as argument.
14548         (main): Automatically load eqnchar.  New options -F and -n.
14549         Pass do_file an opened FILE.
14550         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
14551         No need to include font.h.
14552         * groff.sh: Likewise.  Don't need to use - for standard input.
14553         Prefix files with -- if first file starts with -.
14555         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
14557         * troff/env.c (environment::possibly_break_line): Don't set line
14558         to 0 across call to output_line().  Don't call output_line() until
14559         after discarding nodes after break.
14561 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
14563         * request.h (macro::empty): Declare it.
14564         * input.c (macro::empty): New method.
14565         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
14566         macro is empty.
14568 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
14570         * troff/env.c (environment::start_field): Decrement space_total
14571         when a space is frozen.
14573 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
14575         * macros/tmac.an (R): Delete macro.
14577         * troff/input.c (get_copy, token::next): Support \# (like \" but
14578         newline is ignored).
14580         * troff/input.c (token::next): Fix error message in 'Y' case.
14582 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
14584         * eqn/delim.c (define_extensible_string): Recognize any prefix of
14585         a delimiter name.
14587 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
14589         * c++test.c: Include <osfcn.h>.
14591         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
14592         <errno.h> doesn't.
14594 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
14596         * tbl/table.c (table::divide_span): Don't count column separation
14597         if expand was specified.
14599         * tbl/main.c (process_format): Don't ignore width specs in
14600         continued format.  Give warning for changing equal widths or
14601         column separation in continued format.
14602         (process_data): Set column separation, minimum width, equal
14603         columns at end of table.
14605 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
14607         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
14608         node::add_discretionary_hyphen): Use soft_hyphen_char.
14609         (set_soft_hyphen_char): New function.
14610         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
14612         * Makefile (c++tested): Give more helpful message if test fails.
14614 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
14616         * troff/input.c (init_charset_table): Translate 0240 to
14617         an unbreakable space.
14619         * troff/token.h (token::hyphen_indicator): New function.
14620         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
14621         translation.
14622         * troff/input.c (translate): Allow translation to \%.
14623         * troff/node.c (node::add_char): Handle
14624         TRANSLATE_HYPHEN_INDICATOR.     
14625         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
14627         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
14628         for \(hy.
14630         * tty/devlatin1/R.proto: \(hy and - should print as 055.
14632 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
14634         * groff.c (run_commands): If the last command gets a SIGPIPE send
14635         a SIGPIPE to all children than haven't yet terminated.  When
14636         command terminates, set pid field to -1.
14638 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
14640         * groff.c (main): Pass an appropriate -filename option to gxditview.
14642 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
14644         * Makefile.bd (install): Remove existing program before copying.
14646         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
14647         programs which have Unix counterparts to be installed with
14648         user-specified prefix.
14650         * troff/input.c (exit_troff): Don't check if exit_started.
14651         (exit_request): Don't call exit_troff if exit_started.
14653         * Makefile.bd (install.mm): Rename to install.dwbmm.
14655 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
14657         * driver/input.c (do_file): Add missing break for '#' case.
14659 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
14661         * troff/input.c (input_stack::clear):  Clear past any boundaries and
14662         then add the boundaries back.
14664         * troff/input.c (exit_troff): Return immediately if already
14665         exiting.
14667         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
14668         end macro.
14669         (pg*end-page): If the text has ended and there are no more
14670         footnotes or keeps, exit.
14672         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
14674         * troff/input.c (init_charset_table): Make \(rq transparent by
14675         default.
14677         * macros/tmac.an: Define lq and rq strings.
14679         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
14681 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
14683         * troff/env.c (environment::final_break): New function.
14684         (environment::newline): Set prev_line_interrupted to 2 if
14685         exit_started.
14686         * troff/env.h: Declare environment::final_break.
14687         * troff/input.c (exit_troff): Call environment::final_break()
14688         instead of environment::do_break().
14690         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
14691         doesn't already exist.
14692         * macros/man.local: New file.
14693         * macros/tmac.an: Load man.local.
14694         * macros/man.ultrix: New file.
14696 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
14698         * troff/input.c (exit_groff): Rename to...
14699         (exit_troff): New function.
14701         * troff/div.c (exit_started, done_end_macro,
14702         seen_last_page_ejector): New global variables.
14703         (began_page_in_end_macro): New static variable.
14704         (exit_flag): Deleted.
14705         (top_level_diversion::top_level_diversion): Initialize
14706         last_page_count.
14707         (top_level_diversion): More elaborate test for whether
14708         cleanup_and_exit() should be called.
14709         Set began_page_in_end_macro if the end macro isn't yet finished.
14710         * troff/div.h (top_level_diversion::last_page_count): New data
14711         member.
14712         (top_level_diversion::set_last_page): New function.
14713         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
14714         * troff/env.c (do_break): Zero prev_line_interrupted.
14715         * troff/input.c (exit_flag): Delete declaration.
14716         (LAST_PAGE_EJECTOR): New magic cookie.
14717         (token::next): Handle LAST_PAGE_EJECTOR.
14718         (exit_groff): Set exit_started and done_end_macro instead of
14719         exit_flag.  Call top_level_diversion::set_last_page.  Push a
14720         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
14721         another ejection after setting seen_last_page_ejector.
14723 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
14725         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
14727         * macros/tmac.e (TH): Make sure there's room for the initial
14728         header.
14730         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
14731         Set FVS in points rather than units.
14733 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
14735         * troff/div.c (top_level_diversion::add_trap): Don't consider the
14736         position of empty slots.
14738 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
14740         * ps/devps/S: Fix height and depth of parenrightex.
14741         * ps/devps/symbol.diff: Regenerate.
14743 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
14745         * tmac.e (u): Do underlining as in -mgs.
14747 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
14749         * tty/tty.c (tty_printer::end_page): If overstriking is
14750         suppressed, still turn overstruck horizontal and vertical lines
14751         into +.
14753         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
14754         2.1.
14756         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
14758 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
14760         * Version 1.05 released.
14762 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
14764         * tty/tty.c: Instead of keeping an array of glyphs and then
14765         sorting it, keep a ordered linked list of glyphs for each line.
14767         * driver/driver.h: Include stddef.h.
14769         * tty/tty.c (compare_glyph):
14770         * refer/refer.c (rcompare):
14771         * troff/env.c (compare_ranges): Arguments of qsort comparison
14772         function should be const void *.
14774         * troff/number.c (parse_term):
14775         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
14776         switch statement.
14778         * refer/label.y (consider_authors): Don't access variables
14779         constructed under a condition outside that condition: put braces
14780         round for statement containing declaration; redeclare use of same
14781         variable later.
14783         * pic/pic.y (text_expr): Delete production that allows
14784         parenthesised text_expr.
14785         (expr): Allow a conditional_expr to appear in parentheses.
14786         (conditional_expr): Rename to any_expr.
14788         * mm: Install new version 1.01 from jh.
14790         * lib/font.c (font::get_width): Cache scaled widths.
14791         (font::font): Initialize widths_cache.
14792         (font::~font): Destroy widths_cache.
14793         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
14795 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
14797         * c++test.c, c++test.ref: New files.
14798         * Makefile: Check that the C++ compiler works.
14800         * ps/tmac.pspic (PSPIC): Do a break.
14802         * ps/tmac.ps: Move definition of PSPIC into...
14803         * ps/tmac.pspic: New file.
14804         (PSPIC): Draw box around picture, but make it invisible to grops.
14805         * ps/tmac.ps: Load tmac.pspic.
14806         * ps/Makefile: Install tmac.pspic.
14808 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
14810         * lib/font.c (scale_round): If n is negative,
14811         subtract .5 before truncating floating point result.
14813         * lib/fontfile.c: Include <errno.h>.
14815 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
14817         * driver/input.c (get_char): Inline. Don't update current_lineno.
14818         Change callers to up date current_lineno if necessary.
14819         Use get_char() instead of getc(current_file).
14821 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
14823         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
14825 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
14827         * tty/tty.c (tmac.tty): Define \(rg as (R).
14829 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
14831         * lib/lib.h: New define a_delete.
14832         * Use a_delete instead of delete when deleting an array of objects
14833         without destructors.
14835         * lib/lib.h: Rename adelete to ad_delete.
14836         * Change uses of adelete.
14838 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
14840         * eqn/eqn.y: Include lib.h.
14842         * troff/node.c (grow_font_table): Delete old_font_table.
14844         * mm: Install new version from jh.
14846 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
14848         * tbl/table.h (format_type): Make global instead of local to class
14849         entry_format.  Prefix enumerators with FORMAT_.
14850         * tbl/table.c, tbl/main.c: Corresponding changes.
14851         * refer/token.h (token_type): Make global.  Prefix enumerators
14852         with TOKEN_.
14853         * refer/token.[ch]: Corresponding changes.
14854         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
14856         * troff/div.c (node::set_vertical_size): Don't name argument.
14858 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
14860         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
14861         * lib/lib.h: Define adelete accordingly.
14862         * pic/object.c (graphic_object::graphic_object):
14863         * tbl/main.c (format::~format):
14864         * tbl/table.c (table::~table):
14865         * refer/ref.c (reference::~reference, reference::merge,
14866         reference::insert_field, reference::delete_field): Use adelete.
14868         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
14869         * refer/token.h:
14870         * tbl/table.h: Corresponding changes.
14872         * common.c (common_output::dashed_arc, common_output::dotted_arc):
14873         Ensure total_angle is positive.
14875 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
14877         * refer/ref.c (reference::merge, reference::insert_field,
14878         reference::delete_field): Avoid delete[0].
14880         * refer/token.c (init_special_chars): Move calls to cmupper
14881         outside calls to init_two_char_letter to work around bug in gcc
14882         2.0.
14884 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
14886         * lib/new.c (operator new): Use __builtin_new for g++.
14888         * pic/object.c (graphic_object::~graphic_object):  Don't use
14889         delete [] on 0.
14891         * pic/object.c (output::compute_scale): Initialize max_width and
14892         max_height.
14894 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
14896         * troff/input.c (write_request): Call fflush.
14898         * troff/node.h (class composite_node): Move declaration to node.c
14899         * troff/input.c (charinfo_to_node): Rename to ...
14900         (charinfo_to_node_list): Return node list rather than composite
14901         node.
14902         * troff/node.c (make_composite_node): New function.
14903         (make_node, add_char): Call make_composite_node instead of
14904         charinfo_to_node.
14905         (class composite_node): Add a tfont * member.  Delete font_size
14906         member.
14907         (composite_node::composite_node, composite_node::copy,
14908         composite_node::size): Corresponding changes.
14909         (composite_node::tprint): Provide constant spacing, emboldening
14910         and track kerning as specified in tfont.
14911         (composite_node::width): Change width calculation accordingly.
14912         * troff/env.h (environment::composite): New member.
14913         (environment::is_composite, environment::set_composite): New
14914         functions.
14915         * troff/env.c (environment::environment): Initialize composite.
14916         * troff/input.c (charinfo_to_node): Call
14917         environment::set_composite.
14918         * troff/node.c (make_composite_node, make_glyph_node): Use the
14919         plain version of the tfont if the environment is composite.
14921         * troff/node.c (font_info::get_space_width): Additional argument
14922         giving space_size.  Handle constant space correctly. Scale by
14923         space_size unless constant spaced.
14924         (env_sentence_space_width): New function.
14925         * troff/node.h: Declare it.
14926         * troff/env.h (environment::get_space_size,
14927         environment::get_sentence_space_size,
14928         environment::get_narrow_space_width,
14929         environment::get_half_narrow_space_width): Make inline.
14930         (environment::get_space_width): Make inline.  Just call
14931         env_space_width.
14932         * troff/env.c: Delete definitions for funtions made inline.
14933         (environment::space_newline, environment::space): Use
14934         env_sentence_space_width(). Don't scale by space_size.
14935         * troff/node.h: Move declarations of env*space_width() functions
14936         into env.h.
14938 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
14940         * macros/tmac.s (PS): Don't try to set negative indent.
14942 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
14944         * pic/pic.y: Fix min function.
14946 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
14948         * man/mdate.sh: Clear LANGUAGE.
14950 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
14952         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
14953         * pic/lex.c: New COMMAND keyword.
14954         * pic/pic.y (print_args, print_arg): New rules.
14955         (placeless_element): Use print_args for PRINT.
14956         New COMMAND element.
14958 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
14960         * troff/input.c (terminal): Handle missing argument correctly.
14962         * pic/pic.y (text_expr): New rule.
14964         * pic/pic.y: Implement := operator.
14966 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
14968         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
14969         mdoc.
14971 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
14973         * ps/devps/dingbatsrmap: Include this in the distribution.
14975         * macros/tmac.doc: Replace with new version from 2nd Networking
14976         Release. Fix loading of doc-* files.
14977         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
14978         * macros/tmac.doc.old: New file.  Apply fixes that had been
14979         applied to old tmac.doc.
14980         * macros/tmac.andoc: Check that we're running under groff.
14981         * macros/Makefile: Rework.
14983 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
14985         * tbl/table.h (format_type): 
14986         * refer/token.h (token_type): If NESTED_TYPES is defined, use
14987         typedef to make these types visible at file scope.
14988         * Makefile: Add NESTED_TYPES configuration option.
14990         * troff/div.c (mark): At the top level use the value of
14991         nl_reg_contents rather than the current vertical position.
14993 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
14995         * tty/tty.c: Implement \D for horizontal or vertical lines.
14996         (tty_printer::set_char): Use vec_used+2 as serial number.
14997         Don't allow size of vector to exceed USHRT_MAX-2.
14998         Split off part into...
14999         (tty_printer::add_char): New function.
15000         (tty_printer::draw): New function.
15001         (compare_glyph): Handle equal serial numbers.
15002         (tty_printer::end_page): Handle overstruck characters from \D.
15003         (main, usage): Implement -d option.
15005 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
15007         * tbl/main.c (process_format):
15008         * eqn/text.c (split_text):
15009         * troff/input.c (token::next): Use inner block for declarations
15010         with initializers in switch statement.
15012 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
15014         * pic/common.c (common_output::dash_line): Cope with zero-length
15015         lines.
15017 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
15019         * Version 1.04 released.
15021 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
15023         * macros/tmac.an (TH): Define a macro an-init to define variables
15024         based on command line arguments.
15025         (an-header): Call it.
15027 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
15029         * Makefile (install.mm): Rename to install.dwbmm.
15031         * Makefile: Integrate mm.
15032         * mm: New directory.
15034 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
15036         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
15037         <sys/types.h>.
15039         * pic/troff.c (troff_output::simple_spline,
15040         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
15041         shadowing parameter.
15043         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
15045         * lib/ptable.h: Add explicit casts when converting from unsigned
15046         long to unsigned.
15048         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
15049         * dvi/devdvi/Makefile: Install SA, SB.
15051         * refer/indxbib.c: Add declaration of mktemp.
15053         * refer/lookbib.c: Add declaration of isatty.
15055 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
15057         * pic/lex.c (interpolate_macro_with_args):  While collecting
15058         arguments, keep track of whether we're in a string.
15060 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
15062         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
15063         down with \v, so as to avoid problems with top of page trap
15064         setting no space mode.
15066 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
15068         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
15070 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
15072         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
15073         Improve error message.
15075 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
15077         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
15078         printf("%03o");
15080 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
15082         * groff.c (possible_command::execp): Always use _exit() after a
15083         failed exec.
15085         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
15086         NO_SYS_WAIT_H   configuration options.
15087         * groff.c: Use these options.  Use POSIX-style macros to extract
15088         fields from the status returned by wait().
15090 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
15092         * tbl/table.c (table::compute_separation_factor): Allow the
15093         separation factor to drop to 0.
15095 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
15097         * refer/search.c: Include <errno.h>.
15099 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
15101         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
15103         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
15104         C++. 
15106         * pic/lex.c (input_stack::bol): Move definition out of class body.
15108         * pic/main.c: On MSDOS munge argv[0].
15110         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
15112         * lib/ptable.c (hash_string): Use unsigned long rather than
15113         unsigned.
15114         (next_ptable_size): Use unsigned rather than int.  Give an error
15115         message if we've hit the largest table size.
15116         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
15117         table size.
15119         * pic/object.h (object_spec): Make flags unsigned long.  Declare
15120         flags as const unisgned long rather than as enums.
15122         * pic/output.c: Deleted.
15124         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
15126         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
15127         Add additional argument.
15128         (line_entry::note_double_vrule_on_{left,right}): Set value of
15129         douvle_vrule_on_{right,left} flag according to argument.
15130         (simple_line_entry::simple_print,
15131         simple_line_entry::double_line_print): If adjacent to double vrule
15132         on a corner extend rather than shorten the rule by half the double
15133         vrule sep.
15135         * troff/number.c (parse_term): In checking for overflow, handle the
15136         case where the current horizontal position is negative.
15138 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
15140         * pic/object.c (draw_arrow): Check for object having zero length.
15142 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
15144         * eqn/main.c (do_file): Split off inline equation handling into...
15145         (inline_equation): New function.  Search for starting delimiter
15146         using...
15147         (delim_search): New function. Don't recognize a delimiter that
15148         occurs in the name of an escape sequence, number register, string
15149         etc.
15151 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
15153         * eqn/delim.c (delim_box::compute_metrics): Don't call
15154         define_extensible_string if left is 0.
15155         (delim_box::output):  Don't print the left delimiter if left is 0.
15156         (delim_box::debug_print): Check for left == 0 before calling printf.
15158 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
15160         * troff/Makefile (majorminor.c): Include only digits in
15161         minor_version.
15163 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
15165         * refer/dirnamemax.c: new file.
15166         * refer/genlimits.c: Deleted.
15167         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
15168         Don't check path length.
15169         * refer/Makefile: Add dir_name_max.o; delete genlimits.
15170         * Makefile: Add PATHCONF_MISSING option.
15172         * refer/indxbib.c (get_cwd): New function.
15173         (main): Use get_cwd().
15174         * lib/getcwd.c: New file.
15175         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
15176         GETCWD in SUBFLAGS.
15177         * lib/Makefile: Compile getcwd.o.
15179         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
15180         userdict.
15182         * refer/indxbib.c (main): Check success of mktemp.
15184         * lib/tmpfile.c: New file.
15185         * lib/Makefile: Add tmpfile.c.
15186         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
15187         * ps/ps.h: Delete declaration of mktemp().
15188         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
15189         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
15190         * driver/driver.h: No need now to include errno.h.
15192         * everywhere: Set errno to 0 before calling fopen().
15194         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
15195         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
15196         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
15198 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
15200         * troff/env.h (translate_space_to_dummy): Declare it.
15201         * troff/env.c (environment::space_newline, environment::space):
15202         If translate_space_to_dummy is set then make the width of spaces 0.
15203         * troff/input.c (translate): If the second character of a
15204         translation is a space, translate to unbreakable space.  If the
15205         first character is a space, set or clear translate_space_to_dummy
15206         according to whether the second character is \&.  Weird!
15208 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
15210         * groff.c (run_commands): Don't use non-zero exit code because a
15211         command gets SIGPIPE.
15213         * groff.c, groff.sh: Use -mXps with -TXps.
15215         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
15216         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
15217         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
15218         (ps_printer::special): New specials invis and endinvis.
15219         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
15220         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
15221         (ps_printer::end_page): Check that invis_count == 0.
15222         (ps_printer::invis_count): New member.
15223         (ps_printer::ps_printer): Initialize invis_count to 0.
15225         * troff/env.c (environment::hyphenate_line): Hyphenation
15226         indicator at beginning of word inhibits splitting after -, \(em
15227         etc.
15229         * pic/pic.y (element): Allow another element to follow } without
15230         any intervening separator.
15232 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
15234         * pic/lex.c (get_delimited): Allow tabs before delimiter.
15236 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
15238         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
15239         declaration of wait() in header files.
15240         * Makefile: Get rid of -DHAVE_UNION_WAIT.
15242         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
15244         * lib/lib.h: Declare return type of strerror as char *.
15246         * man/Makefile: Add g flag to sed substitutions.
15247         * Makefile (shgroff, bindist): Likewise.
15249 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
15251         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
15252         * ps/devps/prologue (PBEGIN): Define showpage after pushing
15253         userdict.
15255 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
15257         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
15258         userdict.
15260 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
15262         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
15263         group.
15265 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
15267         * troff/input.c (define_number_reg):  If currently undefined,
15268         don't define it if the argument is an invalid expression.
15270         * Makefile: Ignore return value of `if' commands without `else'
15271         parts.
15273         * Makefile: Split up CPPDEFINES into a series of separate
15274         configuration options.
15276         * troff/input.c (init_registers): Use time_t instead of long
15277         unless LONG_FOR_TIME_T is defined.  Use returned result rather
15278         than passing pointer.
15279         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
15281         * lib/Makefile (fontpath.h): Use gendef.
15283 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
15285         * troff/input.c (input_iterator::shift): Delete argument name.
15286         * troff/node.c (suppress_output_file::really_begin_page,
15287         suppress_output_file::really_transparent_char, node::ascii_print,
15288         node::tprint): Delete names of unused arguments.
15290 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
15292         * refer/label.y (string):  Pass $4 to command_error.
15294 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
15296         * Version 1.03 released.
15298 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
15300         * Makefile: Pass definition of SHELL in SUBFLAGS.
15302         * gendef: New file.
15303         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
15304         ps/Makefile: Use gendef to construct header files that are
15305         constructed from the Makefile.
15307         * macros/Makefile: make all should build stripped version of tmac.e.
15309         * refer/Makefile (clean): Remove y.output.
15311 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
15313         * ps/pfbtops.c (main): Add -v option which prints out a version
15314         number.
15315         * ps/Makefile (pfbtops): Link with libgroff.a.
15317 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
15319         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
15320         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
15322         * refer/lkbib.c (main): Always terminate reference with blank
15323         line.
15324         * refer/lookbib.c (main): Likewise.
15326         * refer/linear.c (file_buffer::load): Check that the file is not a
15327         binary file.
15329         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
15330         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
15331         Delete second inclusion of <sys/param.h>.
15333 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
15335         * troff/token.h (token::special): Deleted.
15337         * tbl/main.c (process_format): Rework so that opt->tab_char is
15338         recognized only when appropriate.
15340         * ps/Makefile (clean): Remove pfbtops.
15342 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
15344         * lib/font.c (text_file::next): Don't return if we have got a
15345         blank line.
15347 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
15349         * refer/refer.c (store_reference): Get hash code from old_table[i]
15350         when rehashing the table.
15352 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
15354         * eqn/box.c (box::top_level): Save size and prev size using \R and
15355         restore it afterwards. Set the size to the size at the beginning
15356         of the line.
15357         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
15358         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
15360         * refer/Makefile (limits.h): Use ./genlimits.
15362 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
15364         * refer/index.c: Delete declarations of stat() and fstat().
15366 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
15368         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
15370 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
15372         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
15374 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
15376         * troff/input.c (token::get_char): Handle \e.
15378         * refer/linear.c: Delete declarations of fstat() and stat().
15380 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
15382         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
15383         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
15385 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
15387         * troff/input.c (do_define_macro): Improve error handling for end
15388         of file while defining macro.
15390 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
15392         * eqn/box.h: Fix declaration of set_gsize.
15393         * eqn/box.c (set_gsize): Make argument const char *.
15394         (gsize): Declare as char *.
15395         * eqn/main.c (main): Don't convert gsize to int.
15396         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
15398         * Version 1.02 released.
15400 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
15402         * macros/tmac.andoc: New file.
15403         * macros/Makefile: Install tmac.andoc.
15405         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
15406         operator new and delete on OP_DELETE_BROKEN not being defined.
15407         * Makefile: Mention OP_DELETE_BROKEN.
15409 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
15411         * Makefile (bindist): Pass SUBFLAGS.
15413 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
15415         * Makefile, groff.c: Pass definitions to groff.c via device.h.
15417         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
15418         parameter.
15420         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
15422         * ps/ps.h, ps/psrm.c: Make comment_table and
15423         header_comment_table local to resource_manager::process_file.
15425         * groff.sh: With -TXps pass -printCommand option to gxditview.
15427         * groff.c (possible_command::print): Implement using
15428         append_arg_to_string.
15430         * xditview: Merge in new implementation with own ChangeLog.
15432 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
15434         * groff.c (main): Implement PRINT_OPTION.
15435         (append_arg_to_string): New command.
15436         (device_table): Set PRINT_OPTION flag for Xps.
15438 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
15440         * troff/groff.h: Rename to troff.h.
15442         * pic/lex.c (lookup_keyword, docmp): New functions.
15443         (get_token): Use new lookup_keyword.
15444         Don't include key.h.
15445         * pic/key.[ch], pic/pic.gperf: Deleted.
15446         * pic/Makefile: Remove gperf stuff.
15448         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
15449         into output.h.
15450         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
15452         * troff/Makefile, troff/node.c: Move definition of
15453         STORE_WIDTH into node.c.
15455         * etc/grog.pl, etc/grog.sh: Support -mdoc.
15457 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
15459         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
15460         dvi/devdvi/texb.map: Add lq and rq.
15461         dvi/devdvi: Regenerate fonts.
15462         * ps/devps/textmap: Add lq and rq.
15463         * ps/devps: Regenerate fonts.
15464         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
15465         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
15467         * pic/object.c (position_rectangle): When checking radius
15468         cope with possiblity that width or height is negative.
15469         (box_object::box_object): Have separate xrad and yrad with
15470         signs matching signs of dim components.
15471         (box_object::{north,south}_{east,west}): Use xrad and yrad.
15472         (box_object::print): With rounded boxes use absolute values
15473         for dim and rad arguments.
15475         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
15476         in fontpath.h.
15478         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
15480         * various files: Add explicit destructors to keep Saber CC +d
15481         happy.
15483 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
15485         * eqn/box.c (box::top_level): Restore fonts correctly after
15486         font changes in line containing inline equation.  Also
15487         restore previous font as well as current font.
15488         * eqn/pbox.h: Define necessary string and register names.
15490         * troff/input.c (token::next): Case 'R' calls do_register.
15491         (do_register): New function.
15493 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
15495         * groff.c, groff.sh: Support Xps device.  Allow each device
15496         to have a pseudo_name and a real_name.
15498         * groff.c (run_commands): Don't print `Broken pipe' messages.
15500         * ps/pfbtops.c: New file.
15501         * ps/Makefile: Add pfbtops.
15503         * troff/number.c (parse_term): Improved error message.
15505 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
15507         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
15509         * Makefile: Integrate refer.
15510         * refer: New directory.
15511         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
15512         man/lkbib.man: New files.
15513         * man/Makefile: Support refer man pages.
15515         * lib/lib.h: Declare is_prime.
15516         * lib/prime.c: New file.
15518         * troff/input.c (macro_source): New function.
15519         (init_input_requests): Bind "mso" to macro_source.
15521         * troff/env.c (environment::possibly_break_line): Maintain
15522         pointer to pointer to node to be split in ndp so as to avoid
15523         using address of freed node.
15525         * troff/env.c (environment::hyphenate_line): Maintain pointer to
15526         pointer to first node to be hyphenated in startp so as to
15527         avoid using address of freed node.
15529         * troff/env.c (class trie, class hyphen_trie): Make the
15530         elements of the trie be of type char not unsigned char.
15531         Declare arguments to be const char* instead of unsigned char *.
15532         
15533         * troff/env.c (hyphenate): Initialize hbuf[0].
15535         * troff/input.c (set_string): Declare p to be char * and cast
15536         *p to unsigned char when necessary.
15538         * troff/input.c (do_define_macro): Declare s to be const
15539         char*. Cast element to unisgned char when necessary, Declare
15540         d to be an int.  Handle EOF better.
15542         * troff/Makefile, troff/input.c: Different scheme for passing
15543         definitions of MACROPATH, HYPHENFILE and DEVICE.
15545 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
15547         * tty/devascii/R.proto: Delete entry for em.
15548         * tty/devlatin1/R.proto: Likewise.
15550 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
15552         * troff/input.c (translate): Stop when we get a space. Treat eof
15553         like newline.
15555         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
15557 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
15559         * tbl/main.c (process_format): A font name following a `f'
15560         modifier that starts with a digit can be only one character long.
15561         Also deal with EOF on the second character of the font name.
15563 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
15565         * troff/input.c (token::next): Turn \~ into an
15566         unbreakable_space_node.
15567         * troff/node.c (unbreakable_space_node): New class.
15568         * troff/node.h: Declare it.
15570 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
15572         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
15573         it's >= 0, before outputting it as a single byte.
15575 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
15577         * lib/font.c: Make font_char_metric::code an int.
15578         (font::get_code): Change return type to int.
15579         (font::load): Allow code to be arbitrary integer.
15580         * lib/font.h (font::get_code): Change return type to int.
15581         (font::number_to_index): Change argument type to int.
15582         * troff/input.c (token::next):  In case 'N', allow any value.
15583         Store value in token::val.
15584         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
15585         (token::get_char, token::add_to_node_list, token::process): Get
15586         number from val.
15587         (charinfo::set_number): Change argument to int.
15588         (charinfo::get_number):  Require that NUMBERED flag be set.
15589         (get_charinfo_by_number): Store numbered characters not between 0
15590         and 255 in a dictionary.
15591         * troff/charinfo.h (get_charinfo_by_number): Change argument type
15592         to int.
15593         (charinfo::number): Change type to int.
15594         (charinfo::set_number): Change type of set_number to int.
15595         * troff/node.c (troff_output_file::put_char_width,
15596         troff_output_file::put_char): Test whether character is numbered
15597         using charinfo::numbered().
15598         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
15599         values of num.
15600         * lib/nametoindex.c: New implementation to cope with arbitrary
15601         number characters.
15603         * troff/input.c (token::operator==): Test val for
15604         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
15605         TOKEN_SIZE.
15607         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
15608         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
15610 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
15612         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
15613         variable.
15615         * all Makefiles: rm targets of cp and >.
15617         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
15618         it.
15620         * eqn/lex.c (def_table): Add dollar.
15622 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
15624         * troff/input.c (do_width): Push back newline before closing delim
15625         like do_bracket.
15627 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
15629         * groff.c (possible_command::prepend_arg): New function.
15630         (main): Prepend device -m option.
15631         * groff.sh: Put device -m options before command-line options.
15633 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
15635         * macros/tmac.an (IP): Quote argument to TP.
15637         * ps/ps.c (main): New option -b, which sets...
15638         (broken_flags): New variable.
15639         (ps_printer::~ps_printer): Incorporate the setup section in the
15640         prolog if (broken_flags & NO_SETUP_SECTION).
15641         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
15642         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
15643         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
15644         ps_printer::print_needed_font_comment,
15645         ps_printer::print_supplied_font_comment,
15646         ps_printer::print_include_font_comments,
15647         ps_printer::lookup_doc_font, ps_printer::download_fonts,
15648         ps_printer::read_download_file, read_document_fonts, add_font,
15649         skip_line, parse_fonts_arg, document_font::document_font,
15650         document_font::~document_font, document_font::download,
15651         ps_output::include_file):  Deleted.
15652         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
15653         rather than %!PS-Adobe-2.0.  Make calls to
15654         resource_manager::need_font for each font that we used. Replace
15655         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
15656         print_supplied_font_comment, print_needed_font_comment by call to
15657         resource_manager::print_header_comments. Output %%Orientation
15658         comment. Output %%Requirements: numcopies comment if ncopies > 1.
15659         Don't output the prolog directly.  Instead call
15660         resource_manager::output_prolog.  Only define #copies when ncopies
15661         > 1.  Delete calls to print_include_font_comments  and
15662         download_fonts.  Add call to resource_manager::document_setup.
15663         (ps_printer::do_file): Call resource_manager::import_file instead
15664         of including it ourselves.
15665         (ps_printer::do_import): Likewise.  Also don't call
15666         merge_import_fonts. Push userdict on the dictionary stack before
15667         and pop it afterwards.
15668         Move declaration of ps_output into ps.h.
15669         * ps/psrm.c: New file implementing resource_manager class.
15670         * ps/ps.h: New file declaring ps_output and resource_manager
15671         classes.
15672         * ps/devps/zapfdr.ps:
15673         * ps/devps/symbolsl.ps:
15674         * ps/devps/prologue:  Use 3.0 conventions.
15675         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
15676         Add default definition of BROKEN_SPOOLER_FLAGS.
15677         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
15678         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
15680 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
15682         * etc/grog.pl: New file.
15683         * Makefile (GROG): New variable.
15684         Add GROG to SUBFLAGS.
15685         * etc/Makefile (GROG): New variable.
15686         (install.nobin): Install $(GROG) rather than grog.sh.
15688 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
15690         * eqn/special.c (special_box::compute_metrics): Make the input and
15691         output strings the same.  Get the new height and depth from the
15692         predefined height and depth registers.  Also make subscript kern
15693         and skew available.
15694         (special_box::compute_subscript_kern, special_box::compute_skew):
15695         New functions.
15697         * eqn/box.c (pointer_box::compute_skew,
15698         simple_box::compute_metrics, box::top_level)
15699         * eqn/text.c (prime_box::compute_metrics,
15700         prime_box::comput_subscript_kern)
15701         * eqn/limit.c (limit_box::compute_metrics):
15702         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
15703         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
15704         negative numbers in `nr' requests with a leading 0.
15706 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
15708         * eqn/special.c: New file.
15709         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
15710         Add new rule for simple.
15711         * eqn/lex.c (token_table): Add SPECIAL.
15712         * eqn/box.h: Declare make_special_box.
15713         * eqn/Makefile: Add special.[co].
15715 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
15717         * ps/devps/prologue: Possibly set packing to true while defining.
15718         Create grops dictionary here.  Initialize local variables before
15719         defining procedures.
15720         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
15721         the dictionary stack. Set strokeadjust and overprint to false if
15722         the relevant operators are defined.
15723         (PEND): New procedure.
15724         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
15725         prologue.  Do everything else in the setup section.
15726         (ps_printer::do_import): Just call PBEGIN and PEND around the
15727         picture. Also push userdict before, and pop it afterwards.
15729 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
15731         * troff/node.c (bracket_node::tprint): Brackets were being printed
15732         1m too low.
15734         * macros/tmac.an (SH, SS): Set fill mode.
15736 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
15738         * troff/div.c (top_level_diversion::begin_page): Set
15739         high_water_mark to 0.
15741 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
15743         * man/mdate.sh: New file.
15744         * man/mdate.c: Deleted.
15745         * man/Makefile: Use mdate.sh instead of mdate.
15746         (mdate): Deleted.
15748         * eqn/lex.c (do_gsize): Supply missing argument to error message.
15750 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
15752         * man/mdate.c: New file.
15753         * man/*.man: Replace modification date by @MDATE@.
15754         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
15755         (mdate): New target.
15757         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
15758         Remove illegal input characters.
15760 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
15762         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
15764 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
15766         * troff/div.c (begin_page): Change behaviour when
15767         !first_page_begun and !break_flag.
15769         * troff/input.c (do_name_test): Return 0 if argument is empty.
15771         * troff/input.c (read_long_escape_name): Require closing ] to be
15772         at same input level as opening [.
15774         * troff/input.c (read_increment_and_escape_name): New function.
15775         (get_copy, process_input_stack): Use this for \n.
15777 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
15779         * troff/div.c (top_level_diversion::begin_page): Ignore the
15780         current value of page_number if !first_page_begun.
15782         * groff.c (main): Fix declaration of buf.
15784         * troff/input.c (do_name_test): New function.
15785         (token::next): Implement \A.
15786         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
15787         (token::description, token::add_to_node_list, token::process):
15788         Handle TOKEN_ESCAPE.
15789         * troff/token.h: New token TOKEN_ESCAPE.
15791 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
15793         * pic/main.c (do_picture): Allow space before and after filename
15794         following `<'.  Check that the filename is not empty.
15796 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
15798         * Version 1.01 released. 
15800         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
15802         * dvi/tmac.dvi: ftr HR to H.
15804         * macros/tmac.e: Round up computation of $r.
15806         * xditview/tmac.X:  Don't give up completely in compatibility mode.
15807         Use \n(.s instead of \n[.s].
15809         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
15810         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
15811         Add u to factors inside \s[...]. Rename frac to dvi-frac.
15812         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
15813         short names in the char definitions.
15815         * ps/tmac.ps: Don't give up completely in compatibility mode.
15816         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
15817         quote in front of \n(.s. Add u to factors inside \s[...].
15819 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
15821         * tty/tmac.tty: Call the nroff request.
15823         * macros/tmac.e ((x, )x):  Better definitions that work properly
15824         in a diversion.
15825         (@0, @1): Helper macros for (x.
15827         * macros/tmac.e ($s, hl): Use \l rather than \D.
15829         * tty/tmac.tty: Make it work better in compatibility mode.
15830         (pchar): Rename to tty-char.
15832         * macros/tmac.e (@E): New macro.
15833         (r, i, b, rb, bi): Use @E.
15835         * macros/tmac.e (@F): Don't use (;...) syntax.
15837         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
15838         it was modified for groff.
15840         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
15842         * macros/tmac.e (<., .>): Removed.
15843         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
15845         * macros/tmac.e: Remove check that groff is being used.
15847         * macros/tmac.e (@C): Change families only if using groff; turn
15848         compatibility mode off while changing familes. Save compatibility
15849         mode before changing families and restore it afterwards.
15851         * macros/tmac.e (@h): Remove test for offset + line length.
15853         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
15854         (lo, th, ac): Define to call @S instead of using als.
15856         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
15857         the ratio of the vertical spacing to the point size in units
15858         expressed as a percentage.  Use these instead of $10r and $10R,
15859         Delete $10r and $10R.
15861         * lib/font.c (font::load): In default computation of space_width,
15862         divide by sizescale.  Use scale_round.
15864         * macros/tmac.an (TP): Don't call `nf'.
15865         (an-do-tag): Don't call `fi'.
15867 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
15869         * troff/input.c (process_input_stack): Handle the case where
15870         spaces at the beginning of an input line are followed by a
15871         newline.
15873 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
15875         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
15876         * groff.sh: Use pic -x with the dvi device.
15878         * dvi/devdvi/FontMakefile (H): Don't use -s.
15880         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
15881         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
15882         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
15883         in FONTS.
15885 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
15887         * ps/psfig.diff: New file.
15888         * ps/tmac.psfig: New file.
15890 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
15892         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
15893         (]-): Don't call ref*do-tl.
15895         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
15897         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
15898         (fn@do-FS): Rename to fn*do-FS.
15900         * troff/input.c (transparent_translate): New function.
15901         (process_input_stack): Apply transparent_translate before calling
15902         diversion::transparent_output(unsigned char).
15904 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
15906         * troff/input.c (do_define_macro): Define the macro before calling
15907         skip_line.
15909         * xditview/Makefile: Add DEVICES variable.  Change install target
15910         to use this.
15912 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
15914         * groff.c (run_commands): Handle the possibility that there are
15915         child processes other than those forked by us.
15917 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
15919         * lib/string.c (string::append): New function.
15920         * lib/stringclass.h: Declare it.
15922 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
15924         * eqn/main.c (main): New option -N which sets
15925         no_newline_in_delim_flag. 
15926         (do_file): If no_newline_in_delim_flag is set don't allow newlines
15927         in delimiters.
15928         * groff.c (main): Pass -N on to eqn.
15929         (help, synopsis): Mention -N.
15930         * groff.sh: Implement -N.
15932 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
15934         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
15935         (]-): Call ref*do-tl if ref*need-tl is non-zero.
15936         (XP): Allow as initializer.
15938 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
15940         * troff/env.c (environment::wrap_up_field): If field_spaces are
15941         non-zero and we have a current_tab, subtract padding from
15942         tab_distance.  If this makes tab_distance <= 0, use the next tab
15943         stop instead.  If there isn't any next tab or it's a left tab,
15944         wrap up the current tab.
15945         (environment::start_field): Initialize tab_precedes_field.
15946         (environment::wrap_up_tab): If there's a current field, update
15947         pre_field_width, field_distance and tab_precedes_field.
15948         * troff/env.h (environment::tab_precedes_field): New member.
15950 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
15952         * ps/ps.c (ps_printer::do_file): New function.
15953         (ps_printer::special): Bind to `file' special.
15954         (ps_printer::do_exec): Set ndefined_styles to 0.
15956 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
15958         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
15959         Avoid stripping first character from the start of unrecognized
15960         escapes.  Use lex_error instead of error to report errors.
15961         * eqn/lex.c (get_token): Rework handling of escapes.
15962         (lex_error): Move declaration into...
15963         * eqn/eqn.h.
15965         * xditview/xditview.c (main): Make -page option work.
15967         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
15969 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
15971         * macros/tmac.s (B2): Correct size of box.
15973 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
15975         * macros/tmac.s (B2): Postpone drawing the box until in the
15976         top-level diversion.
15978         * tty/tmac.tty: Add font translations for C, CR, CW.
15980         * groff.c (synopsis, help): Document -i.
15981         * groff.sh: Implement -i.
15983         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
15984         Simplify the construction of SN.
15986         * troff/number.c (parse_term): Give `|' a higher precedence.
15987         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
15988         accordingly.
15990         * macros/tmac.s (B2): Use par@finish instead of par@reset.
15992 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
15994         * lib/string.c (string::move): New function.
15995         * lib/stringclass.h: Declare it.
15997 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
15999         * troff/env.c (distribute_space): Add optional argument
16000         `force_forward'.
16001         (environment::wrap_up_field): Call distribute_space with
16002         `force_forward' argument of 1.
16004 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
16006         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
16007         Inline it.  Move reallocation into...
16008         (string::grow1): New function.
16009         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
16010         dependencies to include library header files.
16011         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
16013 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
16015         * macros/tmac.s (@NH): Use the same number registers than -ms does
16016         for the heading level counters.  Use the same string that -ms does
16017         for the number for this heading.
16019 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
16021         * lib/new.c (operator new): Cast result of malloc to char *.
16023         * troff/input.c (spring_trap, lookup_request): Add assert that nm
16024         is not null.
16026 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
16028         * groff.c (main): Support -i.
16030 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
16032         * pic/pic.h: Include <osfcn.h>.
16034         * ps/ps.c: Add declaration of mktemp.
16036         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
16037         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
16038         argument as union wait *.
16039         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
16040         argument to union wait *.
16042 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
16044         * tty/tmac.tty: Add definition of \(co.
16046         * pic/object.c (make_arc): Only increase radius when radius
16047         strictly less than d.
16048         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
16049         more than once.
16051         * troff/env.c (environment::environment(symbol),
16052         environment::environment(const environment *)):  Initialize
16053         input_trap_count.
16055 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
16057         * tbl/main.c (main): Add exit(0).
16059         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
16061         * pic/main.c (main):
16062         * eqn/main.c (main):
16063         * tbl/main.c (main):
16064         * etc/soelim.c (main):
16065         * driver/printer.c (printer::~printer):
16066         * troff/node.c (real_output_file::~real_output_file,
16067         real_output_file::flush):  Check for errors on stdout.
16069         * most files: Add 1991 to copyright notice.
16071         * macros/tmac.s: Don't test \n(.x and \n(.y.
16073         * troff/input.c (token::next): Rename `escape_char' label to
16074         `handle_escape_char' and `normal_char' label to
16075         `handle_normal_char'.
16077 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
16079         * groff.c (main, synopsis, help): Support -a option.
16080         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
16081         to trflags while parsing options.
16083 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
16085         * troff/number.c (parse_term): With `m', `M' and `n' scale
16086         indicators, convert scale factor to hunits before scaling.
16088 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
16090         * lib/font.c (scale_round): Better test for overflow when n is
16091         negative.
16093 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
16095         * tbl/main.c (process_format): Add second argument of type
16096         options*. Change callers.  Allow opt->tab_char as well as '\t'
16097         between format items.
16099 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
16101         * macros/tmac.an (PD): With no arguments, make sure register PD is
16102         at least \n[.V].
16103         (TH): Call PD with no argument, instead of setting register PD
16104         directly.
16106 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
16108         * Version 1.00 released.
16110 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
16112         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
16114         * dvi/devdvi/DESC: Mount CW instead of CR.
16116         * dvi/tmac.dvi: Add definition of \(tm.
16118         * dvi/devdvi/texsy.map: Add lh, and rh.
16119         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
16120         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
16122         * dvi/devdvi/FontMakefile: Generate H from cmss10.
16123         * dvi/devdvi/Makefile: Install H.
16124         * dvi/devdvi/H: New file.
16126 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
16128         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
16129         be 0.
16131 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
16133         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
16135         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
16137         * macros/tmac.s (@EN): Handle the case where the equation is empty
16138         but the label is not.
16140 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
16142         * troff/groff.h: New warning category WARN_SPACE.
16143         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
16144         WARN_SPACE to warning_table.
16145         (interpolate_macro): Give a warning of type WARN_SPACE if the name
16146         is longer than two characters and is not defined, but the first
16147         two characters do make a defined name.
16149         * PROBLEMS: New file.
16151         * CHANGES: New file.
16152         * README-0.6, README-1.00: Deleted.
16154         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
16155         * xditview/devX75/Makefile: Make devX75-12.
16156         * xditview/devX100/Makefile: Make devX100-12.
16158         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
16159         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
16161 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
16163         * README-0.7: Rename to README-1.00.
16165         * macros/tmac.pic: New file.
16166         * macros/Makefile (install.nobin): Install tmac.pic.
16168 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
16170         * troff/env.c (hyphen_word): Correct the test for whether the
16171         token is a hyphen.  Reset npos to 0.
16173         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
16175 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
16177         * macros/tmac.s (ds*common-end): Call par*reset.
16178         (PE): Likewise.
16179         (par@reset-indent): Deleted.
16181         * macros/tmac.s (@IP): Divert the label.
16183 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
16185         * xditview/draw.c (setGC): Use a line width of .1m rather than
16186         .04m by default; round rather than truncate value.
16188         * tbl/table.c (class empty_entry): New class.
16189         (empty_entry::empty_entry, empty_entry::line_type): New functions.
16190         (table::add_entry): Represent empty entries by objects of type
16191         empty_entry.
16192         (table_entry::line_type): Return -1.
16193         (table::determine_row_type): Ignore entries with line_type 0.
16194         Treat type -1 as non-lines.
16196 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
16198         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
16199         macros/tmac.s: Rename \(-d to \(Sd.
16201 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
16203         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
16204         * xditview/libXdvi/DviChar.c: Likewise.
16205         * dvi/devdvi/texsy.map: Add `<<', `>>'.
16207 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
16209         * troff/div.c (top_level_diversion::begin_page): Call
16210         init_output() if the_output is 0.
16212 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
16214         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
16215         ESCAPE_c.
16216         (get_copy): Turn \E into ESCAPE_E.
16217         (token::process, asciify): Handle ESCAPE_E.
16219         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
16220         (RD): New macro.
16221         (DS): Implement `.DS R'.
16223 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
16225         * macros/tmac.s (FS): New macro.
16227         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
16229         * macros/tmac.s (cov*tl-init): Remove after first execution
16230         instead of aliasing to @nop.  Call top of page macro explicitly
16231         instead of setting trap; call @init first.  Set pg@top as top of
16232         page macro.
16233         (cov*auto-init): Deleted.  Set cov*tl-init instead of
16234         cov*auto-init as top of page trap. 
16235         (TL, LP): Do a break instead of calling cov*tl-init.
16236         (cov*print): With RP format but no TL, alias FS and FE to @FS and
16237         @FE; in this case also give a warning and always start another
16238         page. No need to set pg@top here.
16239         (cov*tl-init): Rename to cov*first-page-init.
16241         * macros/tmac.s (RP): Do `.pn 0'.
16242         (cov*tl-init): With RP format don't do `.pn 0'.
16244         * macros/tmac.s (pg@cs-top): Set no space mode.
16246         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
16247         (cov*ab-init): Alias TL, AU and AI to these.
16249 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
16251         * macros/tmac.s (@EQ): Move the space before the equation into @EN
16252         (@EN): Do nothing unless \n[dl] is > 0.
16254 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
16256         * pic/object.c (ellipse_object::radius): New function.
16258         * VERSION: Change version to 0.7.
16260         * tbl/table.c (block_entry::do_divert): Declare return type as
16261         void.
16262         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
16264 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
16266         * troff/column.c: New file.
16267         * troff/Makefile: Corresponding changes.
16269         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
16270         Friend of vunits.
16272         * troff/div.c (top_level_diversion::space): If the space causes
16273         the first-page transition and springs a trap, truncate the space
16274         to 0.
16276 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
16278         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
16279         the document.
16281         * pic/troff.c (troff_output::line_thickness,
16282         troff_output::set_fill): Do a horizontal motion to compensate for
16283         the width of the \D escape sequence.
16285 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
16287         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
16288         (not X75).
16290         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
16291         to printf.
16293         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
16294         Supply empty definition.
16295         (text_entry::simple_print, simple_text_entry::simple_print):
16296         Delete declarations.
16297         (table::add_entry): Represent empty entries by objects of type
16298         `simple_entry'.
16300 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
16302         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
16304         * tbl/table.c (left_text_entry::add_tab): New function.
16306         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
16307         initialize like LP.
16309 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
16311         * troff/env.c (environment::start_field): Give an error message if
16312         there is no next tab.
16314 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
16316         * troff/env.c (hyphenate): Skip initial elements with zero
16317         hyphenation code.
16319         * macros/tmac.s (par@init): Keep VS in points rather than units.
16321 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
16323         * pic/main.c (main): Implement `-c' option.
16324         * pic/output.h: Declare make_tpic_output().
16325         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
16326         protected.
16327         (tpic_output): New class.
16328         (tpic_output::tpic_output, tpic_output::set_pen_size,
16329         tpic_output::command, make_tpic_output): New functions.
16331 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
16333         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
16334         if they're not already defined.
16335         * tbl/table.c (init_output): Don't test \n(.g.
16337         * troff/input.c (do_if_request): Delete `g' condition. Recognize
16338         `d', `r' and `c' conditions even in compatibility mode.
16340 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
16342         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
16343         box.
16345 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
16347         * troff/env.h (environment::prev_line_interrupted): New member.
16348         (environment::get_prev_line_interrupted): New function.
16349         * troff/env.c (environment::newline): Set prev_line_interrupted.
16350         (environment::environment(const environment *),
16351         environment::environment(symbol)): Initialize
16352         prev_line_interrupted.
16353         * troff/input.c (process_input_stack): Don't give special
16354         treatment to space and newline at the beginning of the line if the
16355         previous line was interrupted.
16357 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
16359         * eqn/eqn.y: Disallow PRIME by itself.
16360         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
16361         PRIME.
16362         (def_table): Remove definition of '.  Define prime to be `.
16364         * eqn/eqn.y: Split off part of rule `script' into a new rule
16365         `nonsup'.
16367 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
16369         * macros/tmac.s ({, }): New string aliases.
16371 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
16373         * README-0.7: New file.
16375 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
16377         * macros/tmac.s: New file.
16378         * man/groff_ms.man: New file.
16379         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
16380         * Makefile.bd: Similarily.
16381         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
16382         definition of TMAC_S.
16383         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
16384         * macros/TODO: New file.
16386 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
16388         * troff/env.c (right_justify): New function.
16389         (init_env_requests): Bind this to request "rj".
16390         (center_lines): Set right_justify_lines to 0. If we get a bad
16391         integer, center 1 line.
16392         (environment::environment(symbol), environment::environment(const
16393         environment *)): Initialize right_justify_lines.
16394         (environment::get_right_justify_lines): New function.
16395         (init_env_requests): Bind this to number_register ".rj".
16397         * troff/env.c (environment::choose_breakpoint): Implement
16398         hyphenation_margin and hyphenation_space.
16399         (environment::get_hyphenation_space,
16400         environment::get_hyphenation_margin): New functions.
16401         (init_env_requests): Bind these to .hys and .hym.
16402         (hyphenation_space_request, hyphenation_margin_request): New
16403         functions
16404         (init_env_requests): Bind these to hys and hym.
16405         (environment::environment(symbol), environment::environment(const
16406         environment *)): Initialize hyphenation_margin and
16407         hyphenation_space.
16408         * troff/env.h: Corresponding changes to class environment.
16410 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
16412         * troff/div.c (blank_line): Always do a break.
16414         * eqn/box.c (do_text): Turn off escapes while appending text to
16415         string.
16417 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
16419         * troff/input.c (while_break_request, while_continue_request): New
16420         functions.
16421         (init_input_requests): Bind these to "break" and "continue".
16422         (while_depth, while_break_flag): New variables.
16423         (while_request): Update while_depth.  Break out of loop if
16424         while_break_flag is set.
16426 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
16428         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
16429         rather than 0.
16431 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
16433         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
16435         * stringify: New file.
16436         * Makefile (groff.o): Use stringify.
16438         * xditview/tmac.X: Remove definition of \(rn.
16439         * xditview/libXdvi/DviChar.c: Remove radicalex from
16440         Adobe_symbol_map.
16442 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
16444         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
16445         (alphabetic_block_entry::alphabetic_block_entry,
16446         alphabetic_block_entry::divert, alphabetic_block_entry::print):
16447         New functions.
16448         (block_entry::divert): Split off body into ...
16449         (block_entry::do_divert): If the block is alphabetic, subtract 2n
16450         from the line length; also update the span width to dl+2n, and the
16451         alphabetic span width to dl.
16453         * driver/input.c (do_file):  While reading argument to D command,
16454         when expanding buffer, multiply szp by sizeof(int) rather than 2
16455         in the argument to memcpy.
16457         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
16458         width of alphabetic columns.
16460 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
16462         * troff/node.c (lookup_family): Supply second argument to lookup.
16464         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
16465         search, return immediately if v is 0.
16467         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
16468         (troff_output::start_picture): Set this reg.
16469         (troff_output::end_picture): Remove this reg
16470         * eqn/box.c (box::extra_space): Don't produce `\x's if
16471         EQN_NO_EXTRA_SPACE_REG is defined.
16473         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
16474         * eqn/text.c (split_text): Map ' to \(fm when it's the first
16475         character.
16477 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
16479         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
16480         requests.
16482         * troff/div.c (top_level_diversion::top_level_diversion):
16483         Initialize page_number to 0.
16485 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
16487         * groff/troff (environment::environment(const environment *)):
16488         Initialize name to e->name, rather than "anonymous".
16490 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
16492         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
16493         requested_page.  Split middle part into ...
16494         (FindPage): New function.
16495         (SetValues): If we don't yet know the last page, and the requested
16496         page is greater than the current page, call FindPage.
16497         Update the font_map_string before doing this.
16499         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
16500         Translate \(lh and \(rh into left and right double arrows.
16502         * troff/node.c (class hyphen_inhibitor_node): New class.
16503         (hyphen_inhibitor_node::hyphen_inhibitor_node,
16504         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
16505         hyphen_inhibitor_node::type,
16506         hyphen_inhibitor_node::get_hyphenation_type): New functions.
16507         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
16508         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
16509         word.
16511 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
16513         * troff/node.h (dummy_node::get_hyphenation_type,
16514         transparent_dummy_node::get_hyphenation_type):  Declare them.
16515         * troff/node.c: (dummy_node::get_hyphenation_type,
16516         transparent_dummy_node::get_hyphenation_type): New functions.
16518 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
16520         * xditview/libXdvi/draw.c: If M_PI not defined after including
16521         math.h, then define it.
16523         * xditview/Makefile: Add definition of AR. Pass it to the submake
16524         in libXdvi.
16525         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
16527 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
16529         * troff/dictionary.h (object_dictionary::alias): Declare return
16530         value as int.
16531         * troff/dictionary.c (object_dictionary::alias): Return non-zero
16532         if the old name was defined.
16533         * troff/input.c (alias_macro): Give a warning if the old name was
16534         not defined.
16535         * troff/reg.c (alias_reg): Likewise.
16537 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
16539         * troff/input.c (token::next): Delete implementation of \R.
16541         * macros/Makefile: Strip comments from tmac.e while installing it.
16543         * troff/input.c: New variable `nroff_mode'.
16544         (troff_request, nroff_request): New functions.
16545         (init_input_requests): Bind `troff' and `nroff' to troff_request
16546         and nroff_request.
16547         (do_if_request): Compute results of t and n conditions from
16548         nroff_mode.
16550         * text/text.c (split_text): Fix typo in >=.
16552         * eqn/lex.c: Add definition of `==' to def_table.
16554 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
16556         * pic/tex.c (tex_output::start_picture): Change the definitions of
16557         \graph and \graphtemp so that they work properly with Plain TeX.
16559         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
16560         argument to `ar' is not less than the first.
16562         * pic/pic.y: Allow a comma between elements of the variable list
16563         in the argument to `reset'.
16565         * pic/object.c (arc_object::arc_object): Fix computation of
16566         radius.
16568         * eqn/main.c (main): Add exit(0).
16570 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
16572         * troff/div.c (begin_page): Test no_space_mode after doing the
16573         break, but still push the page ejector cookie before doing the
16574         break.  Also set the next page number after doing the break.
16575         
16576         * xditview/xditview.c (NewFile): Don't set the title and icon name
16577         if this is the first file and its name is `-'.
16578         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
16579         the X75 and X100 devices.
16580         (main): If a device has the XT_OPTION flag set and there's exactly
16581         one file argument, pass the driver -xrm and -title options to set
16582         the icon name and window title to the name of the file.
16584         * troff/env.c (environment_switch): If there was an argument but
16585         it wasn't a valid number or name, then pop an environment but
16586         don't give an error message on underflow.
16588         * troff/number.c (start_number): Correct spelling in error message.
16590         * troff/input.c (token::delimiter): Don't print an error message
16591         if err is false.
16593         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
16594         ParseDrawFunction if dw->display_enable is true.
16596 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
16598         * pic/pic.y: Parse text positioning like normal attributes, so as
16599         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
16600         positioning attribute.
16602 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
16604         * tbl/main.c (process_data): When in state START while reading a
16605         text block, don't change to state MIDDLE if c is a newline.
16607 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
16609         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
16610         so as to avoid shadowing parameter.
16612 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
16614         * tbl/table.c (trim_space): Deleted.
16615         (table::add_entry): Don't call trim_space.
16617 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
16619         * VERSION: Change version to 0.6.
16621         * troff/number.c (parse_expr): Make == work.
16623 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
16625         * man/grog.man: New file.
16626         * man/Makefile: Add grog.n to MAN1PAGES.
16627         * etc/grog.sh: New file.
16628         * etc/Makefile: Install grog.sh as grog.
16630 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
16632         * troff/input.c (token::next): Implement \E.
16634 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
16636         * xditview/tmac.X: Change font translations to match tmac.ps.
16638         * troff/input.c (non_empty_name_warning): Don't give a warning if
16639         `\{' terminates the name.
16641 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
16643         * ps/devps/symbol.diff: New file.
16644         * ps/devps/FontMakefile: Mention symbol.diff.
16646 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
16648         * troff/node.c (font_position): Use get_long_name to read the
16649         external_name.
16651         * troff/env.c (environment_switch): If we get a number that's < 0
16652         or >= NENVIRONMENTS, treat it like a name.
16653         Change NENVIRONMENTS to 10.
16655         * troff/groff.h: Remove definition of FONTS_MAX.
16656         * troff/node.h (class font_family): Make map a pointer instead of
16657         an array. Add a map_size member. Make it a class. Make nm const
16658         and public. Make invalidate_fontno a friend.
16659         * troff/node.c: Define font_table_size. Make font_info a pointer
16660         rather than an array.
16661         (class troff_output_file): Allocate font_position dynamically. Add
16662         nfont_positions member.
16663         (troff_output_file::set_font): Grow font_position if necessary.
16664         (troff_output_file::~troff_output_file): Delete font_position.
16665         (troff_output_file::troff_output_file): Allocate font_position.
16666         (grow_font_table): New function.
16667         (troff_output_file::really_begin_page,
16668         troff_output_file:really_copy_page): Use nfont_positions rather
16669         than FONTS_MAX.
16670         (mount_font_no_translate, mount_style): Call grow_font_table if
16671         necessary.
16672         (font_family::font_family): Allocate map.
16673         (font_family::make_definite): Grow map if necessary. Use
16674         font_table_size instead of FONTS_MAX.
16675         (font_family::~font_family): New function.
16676         (invalidate_fontno): Use font_family::map_size.
16677         (get_fontno, env_space_width, env_half_narrow_space_width,
16678         env_narrow_space_width, symbol_fotno, is_good_fontno,
16679         get_bold_fontno, make_glyph_node): Use font_table_size rather than
16680         FONTS_MAX.
16681         (next_available_font_position): Never return 0.
16683 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
16685         * ps/tmac.ps: Add font translations for compatibility with dpost.
16687 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
16689         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
16690         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
16691         Move definitions baseline_sep, shift_down, column_sep,
16692         matrix_side_sep into...
16693         * eqn/box.c: Add them to param_table.
16694         * eqn/pbox.h: Add declarations to pbox.h.
16696         * troff/input.c (set_string): Cast value to unsigned char *.
16698         * troff/token.h (process_input_stack): Declare it static before
16699         declaring it a friend.
16701 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
16703         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
16704         and bottom.
16705         * dvi/devdvi/EX: Regenerate.
16707         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
16708         transparent.
16710 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
16712         * eqn/lex.c: In defaults_table, make definition of `dot' call
16713         `dot_def'.  Don't explicitly make it roman.  Similarily for other
16714         accents.
16716         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
16717         argument.
16718         (for_input::get, for_input::peek): Use this.
16719         (do_for): Add by_is_multiplicative argument.
16720         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
16721         Change semantic value of optional_by to be a double plus a flag
16722         saying whethet the by clause is multiplicative.
16724         * eqn/lex.c (get_delimited_text): Remember location of start of
16725         definition.  Improve error handling when EOF is encountered.
16727         * lib/font.h: Rename handle_x_command to
16728         handle_unknown_font_command.
16729         * lib/font.c (font::load): Call handle_unknown_font_command for
16730         any unknown command in the font description file.  Don't call
16731         handle_x_command. Include the name of the command in the argv.
16732         Improve message for unknown command after kernpairs or charset
16733         command.
16734         * ps/ps.c (ps_font::handle_x_command): Rename to
16735         handle_unknown_font_command.  Remove message about `x download'
16736         command.  Give error message for wrong number of arguments.
16737         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
16738         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
16739         handle_unknown_font_command. Give an error message for wrong
16740         number of arguments.  Rename design_size to designsize.
16741         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
16742         checksum', `designsize' instead of `design_size'.
16744 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
16746         * eqn/*.[chy]: Change underaccent to uaccent.
16748         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
16749         give it the same precedence as ACCENT.
16750         * eqn/other.c (make_underaccent_box): New function.
16751         * eqn/box.h: Declare it.
16752         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
16753         def_table.
16755 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
16757         * pic/pic.y (reset_all): New function. Called in rule for RESET.
16758         (parse_init): Call reset_all.
16759         (define_variable): When defining scale reset only those
16760         pre-defined variables that are scaled.
16761         (defaults_table): Add `scale' as non-scaled value.
16763         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
16764         together with the text; allow any number of positioning words;
16765         allow center as a positioning word.
16767         * pic/object.c (output::compute_scale): Get picture maximum height
16768         and width from variables called maxpswid and maxpsht.
16769         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
16771 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
16773         * pic/object.c (object_spec::make_text): Multiply textht by number
16774         of text items.
16776         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
16777         occur.
16778         (do_sprintf): New function.
16779         (pic.gperf): Add sprintf token.
16780         (text, sprintf): New rules.
16782         * pic/pic.y: `rand()' with no arguments returns a random number
16783         in the range [0,1).
16785         * pic/pic.y: Allow a bare expression to be an attribute: change
16786         precedences to support this.  Change optional_ordinal rule to
16787         optional_ordinal_last to avoid reduce/reduce conflict.
16788         * pic/object.c (object_spec::object_spec): Initialize direction.
16790         * pic/pic.y: Implement ^ operator meaning exponentiation.
16792         * troff/node.h: Add default argument to mount_font.
16793         * troff/node.c (font_position): Read an optional third argument
16794         giving the external_name.
16795         (mount_font): Add optional argument giving the external_name.
16796         (mount_font_not_translate): Have additional argument giving
16797         external name.  Use this name to load the font.  Pass both names
16798         to font_info::font_info.
16799         (font_info::font_info): Have additional argument giving
16800         external_name.
16801         (class tfont): New member external_name.
16802         (font_info::get_tfont): Use external name to construct tfont_spec.
16804 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
16806         * eqn/lex.c (init_table): Add argument giving device.  Define
16807         name of device to be "1".
16808         (do_ifdef): Counts as true if the argument has been defined with
16809         `define'.
16810         * eqn/main.c (main): Call init_table with device argument. Make
16811         device local to main.
16812         * eqn/eqn.h: Change declaration of init_table. Remove declaration
16813         of device.
16815         * pic/lex.c (get_delimited): Allow text to be delimited by
16816         matching {}s.  Don't recognize ending delimiter within a string.
16818         * troff/input.c (get_delim_name): New function.
16819         (token::next): Implement \C.
16821         * lib/font.c (font::load): Grok ---.  Add an alias for each
16822         character based on its code.
16823         (font::get_code_width): Deleted.
16824         * lib/font.h (class font): Declare font::number_to_index().
16825         Remove declaration of font::get_code_width.
16826         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
16827         to indices of named characters.
16828         (font::number_to_index): New function.
16829         * troff/input.c (font::number_to_index): New function.
16830         (get_charinfo_by_number, charinfo::get_number,
16831         charinfo::set_number): New functions.
16832         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
16833         (token::process, token::description, token::get_char,
16834         token::add_to_node_list, token::operator==): Handle
16835         TOKEN_NUMBERED_CHAR.
16836         * troff/charinfo.h: Declare get_charinfo_by_number,
16837         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
16838         charinfo class.
16839         (charinfo::numbered): New function.
16840         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
16841         * troff/env.h (class environment): Remove declaration of ...
16842         * troff/env.c (environment::make_numbered_char_node): Deleted.
16843         * troff/node.c (make_numbered_node): Deleted.
16844         (class numbered_glyph_node): Remove.
16845         (troff_output_file::put_char_width, troff_output_file::put_char):
16846         Handle numbered chars.
16847         (troff_output_file::numbered_char): Removed.
16848         (tfont::get_code_width): Removed.
16849         (make_glyph_node): Don't search special fonts for numbered
16850         characters.
16851         * troff/node.h: Remove declaration of make_numbered_node.
16852         * driver/input.c (do_file): Handle N command.
16853         * driver/printer.h: Add declaration of ...
16854         * driver/printer.c (printer::set_numbered_char): New function.
16855         * dvi/tfmtodit.c (main): Generate unnamed entries.
16856         * ps/devps/afmtodit: Likewise.
16857         * xditview/xtotroff.c (MapFont): Likewise.
16858         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
16860         * tbl/main.c (process_format): If multiple widths are specified
16861         for a column but all the widths are the same, don't give an error
16862         message.
16864         * tbl/table.c (table::do_row): If the current row is all lines and
16865         the stuff doesn't contains a line, mark the top of the row after
16866         printing stuff before the row.  If the current row is not all
16867         lines and the stuff doesn't contain a line, don't unnecessarily
16868         mark the top of the row before printing the stuff.
16869         
16870 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
16872         * troff/groff.h: Remove MAX_PATH.
16873         * troff/input.c (open_file): Dynamically allocate space for the
16874         path.
16875         (open_mac_file, process_macro_file): Corresponding changes.
16877 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
16879         * troff/node.h (class output_file): Make copy_file pure.  Add
16880         vspace method ifdef COLUMN. Add is_printing method.
16881         * troff/node.c: Add class printing_reg. Add class
16882         real_output_file. Derive other output_file classes from
16883         real_output_file; in these classes rename begin_page to
16884         really_begin_page, print_line to really_print_line, copy_file to
16885         really_copy_file, transparent_char to really_transparent_char.
16886         Move output_file::flush to real_output_file. Add printing member
16887         to class output_file.
16888         * troff/div.h: Remove printing member from top_level_diversion.
16889         Add vspace member function to class diversion ifdef COLUMN. Add
16890         some declarations ifdef COLUMN.
16891         * troff/div.c (top_level_diversion::copy_file,
16892         top_level_diversion::transparent_output,
16893         top_level_diversion::output): Don't test printing member before
16894         output.
16895         * troff/input.c: Handle initial variable_space_request ifdef
16896         COLUMN.
16897         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
16898         but comment it out.
16900 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
16902         * troff/div.c (diversion::need): Make any space forced.  If we
16903         sprung a trap, set truncated_space to minus the distance to the
16904         trap and set needed_space to the amount that was needed.
16905         (top_level_diversion::space): A forced space turns no_space_mode
16906         off.
16907         (class constant_vunits_reg): New class.
16908         (init_div_requests): Implement number registers .trunc and .ne
16909         using constant_vunits_reg.
16910         (class truncated_space_reg): Deleted.   
16912         * troff/div.h: Don't have a no_space_mode member in diversion.
16913         Instead have it in top_level_diversion.
16914         * troff/div.c (diversion::diversion): Don't initialize
16915         no_space_mode.
16916         (top_level_diversion::top_level_diversion): Initialize
16917         no_space_mode.
16918         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
16919         (macro_diversion::output): Don't clear no_space_mode.
16921         * troff/input.c (diverted_space_node::reread): Don't call
16922         environment::do_break.  In fill mode, act like a blank line.
16923         (diverted_copy_file_node::reread): Don't call
16924         environment::do_break.
16926         * troff/div.c (blank_line): New function.
16927         * troff/div.h: Declare it.
16928         * troff/input.c (process_input_stack): Call it.
16930         * troff/div.c (truncated_space_reg::get_string): New function.
16931         (init_div_requests): Bind to .trunc.
16932         (space_request, top_level_diversion::space,
16933         top_level_diversion::output, macro_diversion::space,
16934         macro_diversion::output): Update truncated_space.
16935         (macro_diversion::output): Redo calculations when trap sprung.
16936         (macro_diversion::output, macro_diversion::space): No need for
16937         trap_flag.
16939         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
16940         after truncating post line spacing.
16942 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
16944         * ps/devps/prologue (MF, SF): Make them work even if setfont is
16945         defined as a procedure rather than as an operator.
16947 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
16949         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
16951 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
16953         * troff/div.c (top_level_diversion::output): Merge
16954         output_file::print_line and output_file::end_of_line member
16955         functions.
16956         * troff/div.h (class output_file):
16957         * troff/node.c (troff_output_file::print_line,
16958         troff_output_file::end_of_line, output_file::end_of_line,
16959         ascii_output_file::print_line, suppress_output_file::print_line):
16960         Corresponding changes.  
16962 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
16964         * troff/input.c (token::next): Don't give a warning for `\.'.
16966         * troff/env.c (environment::get_center_lines): New function.
16967         (init_env_requests): Bind number register .ce to it.
16968         * troff/env.h: Declare it.
16969         * tbl/table.c (table::init_output): Define reset macro to restore
16970         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
16971         Then do .ce 0.
16972         (table::print): If center option not given, then imply center
16973         option if SAVED_CENTER_REG > 0.
16975 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
16977         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
16978         Troff.ps from DOWNLOAD.
16979         
16980         * troff/Makefile: Change comment in DEFINES to avoid confusing
16981         System V make.
16983         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
16984         code.  Don't try to catch errors with stopped.
16985         (check_line_lengths): New function.
16986         * ps/devps/prologue (EXEC): Deleted.
16987         (EBEGIN, EEND): New procedures.
16989 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
16991         * troff/input.c: Include request.h before node.h.
16992         * troff/node.c: Likewise.
16993         * troff/env.c: Likewise.
16994         * troff/div.c: Likewise.
16995         * troff/node.h (class special_node): Store argument as a macro
16996         rather than a char *.
16997         * troff/node.c (special_node::special_node, special_node::copy):
16998         Grok this.
16999         (special_node::~special_node): Deleted.
17000         (special_node::tprint): Deleted.
17001         (special_node::tprint_start, special_node::tprint_end,
17002         special_node::tprint_char): New functions.
17003         (troff_output_file::special): Deleted.
17004         (troff_output_file::start_special, troff_output_file::end_special,
17005         troff_output_file::special_char): New functions.
17006         * troff/input.c (special_node::tprint): New function.
17007         (do_special): Use macro not char *.
17008         (do_transparent_macro): Deleted.
17009         (token::next): Don't call do_transparent_macro.
17011         * troff/input.c (token::next): Add 'Y' case.
17012         (do_transparent_macro): New function.
17013         * troff/node.c (troff_output_file::special): Handle newlines with
17014         argument using new continuation convention.
17015         * driver/input.c (get_string): Cope with continuation convention.
17016         (do_file): Don't call skip_line after calling get_string(1).
17017         * ps/ps.c (ps_printer::special, ps_printer::do_import,
17018         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
17019         arg.
17020         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
17021         with +.
17023 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
17025         * troff/input.c (asciify): By default, illegal input characters
17026         should return empty string.
17028         * troff/input.c (copy_file): Handle first page transition like title.
17029         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
17031         * troff/input.c (token::next): Improve error message for EOF after
17032         escape character.
17033         (input_char_description): New function.
17034         (get_char_for_escape_name): Use input_char_description.
17035         (token::next): Warn about unrecognized escape sequences.
17036         (warning_table): Add WARN_ESCAPE.
17037         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
17038         accordingly.
17040         * troff/token.h: Remove declaration of process_input_stack.
17042         * troff/input.c: Remove declaration of init_hyphen_requests.
17043         * troff/request.h: Correct spelling in declaration of same.
17045         * troff/input.c (token::next): Check whether escape_char is 0.
17047 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
17049         * groff.c (main, usage, help): Implement -P and -L options.
17050         * groff.sh: Likewise.
17052         * troff/input.c (token::next): Use some gotos to avoid code
17053         duplication.
17055         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
17056         Avoid calling symbol::symbol if name empty.
17058 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
17060         * troff/input.c (init_input_requests): Make \n(.x return the major
17061         version number and \n(.y return the minor version number.
17062         * troff/Makefile: Construct file majorminor.c defining
17063         major_version and minor_version automatically from ../VERSION.
17065         * troff/node.c (class glyph_node): Make operator new and operator
17066         delete public.
17067         (class ligature_node): Similarily.
17069         * troff/input.c (operator==(const macro &, const macro &)): New
17070         function.
17071         (non_interpreted_node::same): Use this.
17072         (string_iterator::string_iterator): Make macro& argument const.
17074         * troff/input.c (input_iterator::get): New function. Don't make
17075         asciify_macro or class non_interpreted_node friends of class
17076         input_iterator.
17077         (non_interpreted_node::interpret): Use input_iterator::get.
17078         (asciify_macro): Likewise.
17080         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
17081         ~non_interpreted_node): Deleted.
17082         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
17083         Deleted.
17085         * troff/symbol.h: Make all symbol member functions const.
17087         * lib/strtol.c: New file.
17088         * lib/Makefile: Add strtol.c.
17089         * Makefile: Define STRTOL as strtol.o to include strtol in
17090         libgroff.a.
17092 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
17094         * pic/troff.c (troff_output::simple_circle): Divide by scale.
17096 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
17098         * troff/input.c (do_special): Use input_level.
17100         * troff/token.h (TOKEN_BACKSPACE): New token.
17101         (token::backspace): New function.
17102         * troff/input.c (token::description, token::next, token::process):
17103         Grok TOKEN_BACKSPACE.
17104         (do_special): Turn TOKEN_BACKSPACE back into \b.
17106         * troff/token.h (token::leader): New function.
17107         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
17109         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
17111         * troff/input.c (do_special): Use token::description in error
17112         message.
17114 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
17116         * troff/input.c (decode_args): Combine quoted and
17117         quote_input_level variables. Make it a for (;;) loop.
17119         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
17121         * troff/input.c (read_long_escape_name): The test for whether to
17122         expand buffer was off by 1.
17123         (read_string): Similarily.
17125 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
17127         * troff/input.c: Use `const int' rather than `static const int'.
17129         * troff/div.h (diversion::copy_file): Declare as pure virtual.
17130         (macro_diversion::copy_file): New function.
17131         * troff/node.h: New class diverted_copy_file_node.
17132         * troff/node.c: Implement it.
17133         * troff/input.c (copy_file): Use diversion::copy_file. Handle
17134         first page transition by pushing a diverted_copy_file_node.
17135         * troff/input.c (token::next, process_input_stack): Don't handle
17136         COPY_FILE_REQUEST.
17138 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
17140         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
17141         whether space widths need adjusting.
17143         * troff/charinfo.h: Generalize translated_to_space to
17144         special_translation so as to allow translation to \&.
17145         * troff/input.c (translate): Allow translation to \&.
17146         (charinfo::*): Corresponding changes.
17147         * troff/node.c (make_node, node::add_char): Corresponding changes.
17148         * troff/node.h (dummy_node::dummy_node): Allow optional first
17149         argument.
17151         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
17152         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
17153         TOKEN_REQUEST.
17154         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
17155         TOKEN_REQUEST with an argument of TITLE_REQUEST.
17156         (token::process): Grok that.
17157         * troff/input.c (copy_file): Handle first page transition like
17158         title by pushing a COPY_FILE_REQUEST cookie.
17159         (token::next, process_input_stack): Grok that.
17160         * troff/node.h (output_file::copy_file): Add x and y arguments.
17161         Make it non-pure.
17162         * troff/div.c (top_level_diversion::copy_file): Supply them.
17163         * troff/node.c (troff_output_file::copy_file): Add x and y
17164         arguments; moveto specified position.  Invalidate font_position
17165         array after copying file.
17166         (output_file::copy_file): New function.
17167         (suppressed_output_file::copy_file, ascii_output::copy_file):
17168         Removed.
17169         * troff/input.c (transparent_file): New function.
17170         (init_input_requests): Bind to "trf".
17171         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
17172         (process_input_stack): Likewise.
17174         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
17176         * troff/node.c (init_node_requests): New number registers .kern
17177         pointing to global_kern_mode, and .lg pointing to
17178         global_ligature_mode.
17180         * troff/node.c (ligature): Don't change it if we get a bad
17181         integer.
17183         * troff/input.c (do_define_string): Don't strip tabs.
17185         * troff/input.c (asciify_macro): Make the string_iterator auto.
17187         * troff/node.c (init_font_requests): Rename to...
17188         (init_node_requests):
17189         * troff/node.h: Change declaration.
17190         * troff/input.c (main): Change call.
17192         * troff/input.c (node::reread, diverted_space_node::reread): New
17193         methods.
17194         (process_input_stack): Call reread rather than
17195         get_diverted_space_node.
17196         * troff/node.c (node::get_diverted_space_node,
17197         diverted_space_node::get_diverted_space_node): Removed.
17198         * troff/node.h: Declare reread methods instead of
17199         get_diverted_space_node methods. Make `n' member private.
17200         * troff/input.c: (token::diverted_space): Removed.
17201         * troff/token.h: Removed declaration.
17202         
17204 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
17206         * eqn/script.c (script_box::compute_metrics): Don't let
17207         SUP_RAISE_FORMAT become negative.
17209         * tbl/table.c (table::do_row): Entries that don't end in the
17210         this row shouldn't make the row non-blank.
17211         
17212         * tbl/table.c (table::make_columns_equal): Only set the width of
17213         columns which are marked as equal.
17214         
17215         * tbl/main.c (process_data): Before issuing excess data error,
17216         if last character was a newline unget it; then get it again after
17217         the error.  Also include the contents of the entry in the message.
17219         * groff.c: New file.
17220         * Makefile: Build groff from groff.c.  Make it possible to use
17221         either groff.sh or groff.c as groff.
17222         * Makefile.bd: Similarily.
17224 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
17226         * groff.sh: Don't delay expansion of $@ in assignment to files.
17227         Remove occurrences of \".
17229 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
17231         * all Makefiles: Simplify and rearrange.
17233         * Makefile: Handle fmod like malloc.
17234         * lib/Makefile: Similarily.
17235         * lib/fmod.c: Remove #ifdef NEED_FMOD.
17237         * Makefile: Rename OPTIMISE to OPTIMIZE.
17239         * groff.sh: Remove assignment to PATH.
17240         * Makefile: Remove SHPATH variable.
17241         * Makefile.bd: Similarily.
17243         * groff.sh: Add -V option to print the pipeline instead of
17244         executing it.
17246 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
17248         * lib/font.c: Split off file searching into ...
17249         * lib/fontfile.c: New file.
17251         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
17253 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
17255         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
17256         Also change misleading comment.
17257         (table::do_vspan): Change similarily misleading comment.
17258         * tbl/main.c (process_data): A format row with an explicit `s'
17259         uses up a data line, even if all the other columns are `_' or `='.
17261         * troff/input.c (token::description): Fix description of
17262         TOKEN_DUMMY and TOKEN_EMPTY.
17264 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
17266         * groff.sh: Fix description of -Z in help message.
17268 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
17270         * pic/object.c (object_spec::make_object): Allow negative and zero
17271         line thicknesses.
17272         * pic/pic.y: Give linethick default value of -1.0.
17273         * pic/troff.c (troff_output::troff_output): Initialize
17274         last_line_thickness to BAD_THICKNESS.
17275         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
17276         (troff_output::line_thickness): Canonicalize negative thicknesses
17277         to RELATIVE_THICKNESS.
17278         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
17279         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
17280         to -1.0.
17281         (tex_output::start_picture): Set pen_size to -2.0.
17283         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
17284         0, then use 0 linewidth.
17285         (ps_printer::ps_printer): Initialize line_thickness to -1.
17287         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
17289         * ps/devps/symbolchars: Remove `or'.
17290         * ps/tmac.ps: Implement \(or with .char.
17292         * ps/devps/symbolchars: Move most characters into textmap.
17293         * ps/devps/textmap: Add names for troff bracket characters. Remove
17294         ul, ru, br, bv.
17296         * ps/devps/TSymbol.ps: Removed.
17297         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
17298         * ps/tmac.ps: Do with .char what TSymbol did.
17299         * ps/devps/download: Remove TSymbol.
17301         * ps/devps/T: Removed.
17302         * ps/devps/Troff.ps: Removed.
17303         * ps/devps/Troff.afm: Removed.
17304         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
17305         * ps/devps/download: Remove Troff.
17306         * ps/devps/FontMakefile: Remove T target.
17307         * ps/devps/DESC-A4: Remove T from font list.
17308         * ps/devps/DESC-letter: Likewise.
17310         * troff/input.c (macro_to_node): Rename to ...
17311         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
17312         character's definition while processing it.
17313         * troff/node.c (node::add_char, make_node): Change calls to
17314         macro_to_node accordingly.
17316         * troff/input.c (token::next): Translate \_ to \(ul.
17318         * tty/devascii/R.proto: Add `|'.
17319         * tty/devlatin1/R.proto: Likewise.
17321 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
17323         * man: Put the version number in all the man pages.
17325 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
17327         * Makefile.bd: New file.
17328         * README.bd: New file.
17330         * VERSION: New file.
17331         * lib/version.c: Removed.
17332         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
17333         in clean target.
17335         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
17336         environment variable.
17338         * all Makefiles: Split install target into install.bin for
17339         binaries, and install.nobin for everything else.
17340         * Makefile: Add bindist target.
17342         * man/afmtodit.man: New file.
17343         * man/Makefile: Add afmtodit.n to MAN1PAGES.
17344         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
17345         in BINDIR.
17346         * ps/Makefile: Pass BINDIR to make install in devps.
17348         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
17349         the space character.
17351         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
17353 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
17355         * ps/ps.c: Redo font downloading.
17356         * ps/devps/download: New file.
17357         * ps/devps/Makefile: Add download to DEVICEFILES.
17358         * ps/devps/afmtodit: Remove -d option.
17359         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
17360         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
17361         * ps/devps/zapfdr.ps: Likewise.
17362         * ps/devps/TSymbol.ps: Likewise.
17364 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
17366         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
17368 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
17370         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
17371         then strip the first line if it starts with %.
17372         * Makefile: Add a comment about this.
17374         * man/tfmtodit.man: New file.
17375         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
17376         * dvi/Makefile: Install tfmtodit in BINDIR.
17378         * dvi/tfmtodit.c (usage): Mention -v option.
17380 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
17382         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
17383         * troff/node.c (troff_output_file::transparent_char): Don't call
17384         flush_tbuf.
17386         * eqn: Add check_tabs method to most box classes.
17387         * eqn/box.c (box::top_level): Call check_tabs.
17389         * eqn/script.c (script_box::output): Use \Z.
17390         * eqn/limit.c (limit_box::output): Use \Z.
17392         * eqn/box.c (box::top_level): Use itoa.
17394 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
17396         * dvi/tmac.dvi: Add font translations for CR, C, TT.
17397         * dvi/devdvi/Makefile: Don't make links to CW.
17399         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
17400         HX, HD.
17401         * xditview/tmac.X: Likewise.
17403         * troff/node.c: Add font translation feature.
17404         (get_font_translation): New function.
17405         (symbol_fontno): Translate the font name.
17406         (mount_font_no_translate): Rename to mount_font to this.
17407         (mount_font): New function.
17408         (font_family::make_definite): Call mount_font_no_translate instead
17409         of mount_font.
17410         (mount_style): Translate the font name.
17411         (font_translate): New function.
17412         (init_font_requests): Bind "ftr" to font_translate.
17414         * ps/devps/prologue (SN): New procedure that rounds a position to
17415         the nearest (pixel + (.25,.25)).
17416         (DL): Use SN to round endpoints.
17418         * lib/version.c: Changed version to 0.5.
17420 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
17422         * Makefile: Move definition of PAGE to the very beginning, so that
17423         people are less likely to miss it.
17425 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
17427         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
17429         * troff/env.c (environment::choose_breakpoint): Make `can't find
17430         breakpoint' error a warning of type WARN_BREAK.  Change message to
17431         `can't break line'.
17432         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
17433         code 040000.
17434         * troff/input.c: Add WARN_BREAK to warning_table.  Include
17435         WARN_BREAK in DEFAULT_WARNING_MASK.
17437         * tty/tmac.tty: Add definition of \(+-.
17439         * groff.sh: Remove `--' option to set command.
17441         * dvi/devdvi/texsy.map: Remove duplicate md entry.
17443         * ps/devps/eqnchar: Better definition of cdot using md.
17444         * dvi/devdvi/eqnchar:  Likewise.
17445         * xditview/devX100/eqnchar:  Likewise.
17446         * xditview/devX75/eqnchar: Likewise.
17447         * eqn/lex.c: Add definition of cdot.
17449 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
17451         * troff/input.c (get_optional_char): New function.
17452         * troff/input.c (set_page_character): Use get_optional_char(),
17453         rather than has_arg() and tok.get_char(1).
17454         * troff/env.c (tab_character, leader_character, hyphen_char,
17455         field_characters): Likewise.
17456         (margin_character): Likewise.  Also always delete the
17457         margin_character_node.
17459         * troff/input.c (token::get_char): Use token::description.
17461         * troff/input.c (has_arg): Don't skip over tab and \}.
17462         * troff/number.c (start_number): Give a warning if the number
17463         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
17465 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
17467         * troff/input.c (empty_name_warning, non_empty_name_warning): New
17468         functions.
17469         (get_name, get_long_name): Use these.  Rename `warn' argument to
17470         `required'.
17472         * troff/node.c (get_fontno): Test that the symbol is not null.
17474         * troff/input.c (token::description): New function.
17475         * troff/number.c (parse_term): Use token::description in `numeric
17476         expression expected' message.
17477         * troff/groff.h: Add WARN_MISSING.
17478         * troff/number.c (start_number): New function.
17479         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
17480         get_incr_number): Use start_number().
17481         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
17482         default.
17483         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
17484         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
17485         token::descripion.
17486         * troff/input.c (token::get_char): Use WARN_MISSING.
17487         * troff/input.c (token::delimiter): Use token::description.
17488         * troff/env.c (environment_switch): Back out Aug 3 change.
17489         * troff/input.c (has_arg): Skip over \}s and tabs but give a
17490         warning.
17491         * troff/token.h (token::tab): New function.
17492         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
17493         * troff/reg.c (alter_format): Likewise.
17494         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
17496 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
17498         * troff (most files): Redo warnings. Divide warnings into various
17499         categories; warning() has an additional first argument indicating
17500         the category it falls into.
17501         * troff/input.c (main): -w now takes an argument. New option -W.
17502         (enable_warning, disable_warning): New functions.
17504         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
17505         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
17507 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
17509         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
17510         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
17511         * xditview/devX75/eqnchar: Likewise.
17512         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
17514         * eqn/other.c: When bar or over applies to a single character
17515         don't produce an overline_box or an underline_box. Instead produce
17516         an accent_box or an underaccent_box, with the accent a line
17517         whose width is accent_width.  New classes underaccent_box,
17518         overline_char_box and underline_char_box.
17519         * eqn/box.h: Move overline_box, underline_box, accent_box class
17520         declarations into eqn/other.c. Add declarations of
17521         make_underline_box, make_overline_box, make_accent_box.
17522         * eqn/eqn.y: Call make_overline_box, make_underline_box
17523         make_accent_box instead of constructors.
17524         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
17526         * eqn/other.c: Add accent_box::~accent_box.
17527         * eqn/box.h: Declare it.
17529         * groff.sh: With -Tps, use eqn -D.
17531         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
17532         rather than \l.
17533         (underline_box::output): Similarily.
17534         (accent_box::output): Use \Z.
17536         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
17537         bit smaller.)
17539 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
17541         * troff/div.c (top_level_diversion::transparent_output(unsigned
17542         char)): Use asciify.
17543         * troff/input.c (asciify): Don't make it static.
17544         * troff/token.h (asciify): Declare it.
17545         
17546         * troff/input.c (get_name, get_long_name, token::get_char,
17547         token::delimiter): Add an extra default argument which says
17548         whether a warning should be printed.
17549         * troff: Pass a non-zero argument to one of these rather than
17550         printing a warning directly.
17552 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
17554         * troff: Consistently use symbol::is_null.
17556         * troff/dictionary.h: Move some inline functions into
17557         dictionary.c.
17559         * troff/request.h: Move inline functions into input.c.
17560         (request_or_macro::invoke): Make it pure.
17562         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
17563         * troff/input.c (init_input_requests): Use class constant_int_reg.
17564         (class compatible_reg): Deleted.
17565         * troff/div.c (init_div_requests): Use class constant_int_reg.
17566         (class last_post_line_extra_space_reg): Deleted.
17568         * troff/env.c (tab_character): Don't change the tab character if
17569         we get an invalid argument.
17570         (hyphen_char): Similarily.
17572         * troff/reg.c (alter_format): Check that nm is not null.
17574         * Makefile, groff.sh: Make it possible to customize the commands
17575         used for printing PostScript and dvi files. Also make it possible
17576         to customize the path used by groff.sh.
17578         * eqn/eqn.y: Make `left' right associative.
17580 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
17582         * pic/pic.h: Added definition of M_SQRT2 for those systems that
17583         don't have it.
17585         * pic/pic.h: Removed definition of INT_MAX.
17587         * troff/node.c (italic_corrected_node::vertical_extent): Omit
17588         `return'.
17590         * troff/input.c (token::next):  Handle \R like \n.
17592 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
17594         * ps/tmac.pc (PSPIC): Simplify.
17596         * troff/env.c (tab_stops::to_string):
17597         * pic/pic.y (object_type_name):
17598         * pic/troff.c (simple_output::line):
17599         * pic/tex.c (tex_output::spline):
17600         * pic/object.c (object_spec::make_object):
17601         * tbl/main.c (process_data):  Add cases to switch statements to
17602         avoid cfront warnings. (Some of these are spurious, since the
17603         switch already has a default case.)
17605         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
17606         `ps-'.  Don't test systat; instead check number of arguments to
17607         ps-bb.
17609 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
17611         * macros/tmac.e: Do not decrease the page offset by 0.5i.
17613         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
17614         Unlink the file as soon as we have opened it, so that we don't
17615         have to bother with signal handlers.
17616         (handler): Deleted.
17617         (fatal_error_exit): Deleted.
17618         (main): Don't call signal.
17620         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
17621         can be ignored.
17622         * dvi/devdvi/Makefile: Use the -k option with S and MI.
17624         * pic/pic.y:  If there is a label, or an nth construction before
17625         the first `.' in the argument to `with', ignore it and generate a
17626         warning.
17627         * pic/lex.c (lex_warning): New function.
17629         * tbl/table.c (table::init_output): In section keep and release
17630         macro, use 0 indent when diverting and the correct indent when
17631         rereading.
17633         * troff/input.c (interpolate_number_format): Do not interpolate
17634         anything if the number register is not defined.
17636         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
17638 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
17640         * ps/devps/prologue (PICTURE): Set components of graphics state to
17641         their default values.
17643         * ps/devps/text.enc: Add trademark
17644         * ps/devps/textmap: Add names for club, spade, heart, diamond,
17645         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
17646         * ps/devps/symbolchars: Add names for summation and product.
17648         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
17649         suchthat. Add pp. Add upper-case letters.
17651         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
17652         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
17653         Upsilon.
17655         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
17656         rA (right angle bracket) to ra.  Introduce names for double-headed
17657         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
17658         * ps/devps/textmap: Likewise for ps device.
17659         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
17660         * tty/devascii/R.proto: Rename lA to la and rA to ra.
17661         * tty/devascii/R.proto: Likewise.
17662         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
17663         \(uA, \(dA.
17664         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
17666         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
17668         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
17669         def_table.
17671 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
17673         * troff/div.c (when_request): Use symbol::is_null rather than
17674         has_arg to determine whether we have an argument.
17675         (change_trap): Remove the trap if we get an invalid number. Give
17676         an error if we don't get at least the macro name.
17677         (diversion_trap): Remove trap if we get an invalid name or number.
17679         * troff/env.c (environment_switch): Pop if we get an invalid
17680         symbol or numeric expression.
17682         * troff/input.c (do_define_macro):  If EOF is encoutered while
17683         defining the macro, do tok.next() before returning.
17685         * troff/token.h (has_arg): Move definition from here, to ...
17686         * troff/input.c (has_arg): ... here
17688         * troff/env.c (space_size): Do nothing if we get an invalid argument.
17689         * troff/input.c (shift): Likewise.
17691         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
17692         for `.c'.
17694         * pic/troff.c (troff_output::start_picture):  Comment out calls to
17695         `..'.
17697         * eqn/main.c (do_file): Subtract 1 from current_lineno if
17698         interpret_lf_args succeeds.
17700         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
17701         \\.  This avoids problems with \$N.
17703         * groff.sh: Pass -C to preprocessors.
17705         * lib/lf.c (interpret_lf_args):  Be more flexible.
17707         * tbl/main.c (main): Add -C option.
17708         (table_input::get): Do not recognize TE if followed by character
17709         other than a space or newline unless -C option given.
17710         (process_input_file): Likewise for lf, TS.
17711         (process_data): Likewise for lf in text blocks.
17713         * eqn/main.c (main): Add -C option.
17714         (do_file): Don't recognize EQ, EN or lf if followed by character
17715         other than space or newline unless -C option given.
17716         * eqn/lex.c (file_input::read_line): Similarily.
17717         * eqn/eqn.h: Declare compatible_flag.
17719         * etc/soelim.c (main): Add -C option.
17720         (interpret_lf_args): Use version in libgroff.
17721         (do_file):
17723         * pic/main.c (main): Add -C option, which sets compatible_flag.
17724         (top_input::get), (top_input::peek):  If -C option not given,
17725         do not recognize .PS/.PE/.PF/.lf if followed by a character
17726         other than space or newline.
17727         * pic/lex.c (file_input::read_line): Similarily.
17728         * pic/pic.h: Add declaration of compatible_flag.
17730 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
17732         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
17734         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
17735         derived from node.  New class space_char_hmotion_node.
17736         * troff/input.c (asciify_macro): New function.
17737         * troff/input.c (init_input_requests): New request `asciify' bound
17738         to asciify_macro.
17739         * macros/mm.diff: New file.
17740         * Makefile:  In install.mm target use `patch' to apply
17741         macros/mm.diff.
17743         * troff/input.c (macro::print_size): Just print the size in bytes.
17745         * troff/div.c (return_request): Correct the argument
17746         interpretation.
17748 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
17750         * troff/node.h (class composite_node): Add sz member.
17751         * troff/node.c (composite_node::size): Return sz.
17752         * troff/input.c (macro_to_node):  Use the initial size in the
17753         environment as the size of the composite_node.
17755         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
17756         default.
17758 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
17760         * troff/div.c (change_trap): If we get a bad number expression,
17761         do nothing.
17763 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
17765         * lib/matherr.c (matherr): Define this only if math.h defines
17766         TLOSS.
17768 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
17770         * troff/div.c (macro_diversion::distance_to_next_trap): If there
17771         no diversion trap return vunits(INT_MAX - vresolution).
17773 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
17775         * troff/input.c (do_zero_width): New implementation that doesn't
17776         use a temporary environment. Use instead:
17777         (token::add_to_node_list): New function.
17778         * troff/env.c (environment::get_prev_char_height),
17779         (environment::get_prev_char_height),
17780         (environment::get_prev_char_skew): New functions.
17781         (environment::get_prev_char): New function.
17782         (environment::get_prev_char_width): Change to use get_prev_char.
17783         (init_env_request): Implement new registers .cht, .cdp, .csk.
17784         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
17785         \Z being processed in a separate environment.
17787 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
17789         * tbl/table.c: Removed TABLE_BOTTOM_REG.
17791         * tbl/table.c (table::init_output): In the section release macro,
17792         give a warning message if the section won't fit on one page.
17794         * tbl/table.c (table::do_top): Emit table keep only if table is
17795         boxed.
17796         (table::do_bottom): Likewise for table release.
17797         (table::table), (table::add_vertical_rule):  Remove reference to
17798         keep member.
17799         * tbl/table.h: Remove keep member.
17801         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
17802         SECTION_RELEASE_MACRO, if there's not enough space before the next
17803         trap to output the diversion, call T# ourselves, set
17804         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
17805         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
17806         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
17807         vertical position and return to it before turning traps on again.
17808         
17809 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
17811         * troff/node.c, troff/node.h: In classes derived from node,
17812         replace prev_char_width method by last_char_node method.
17813         * troff/env.c (environment::get_prev_char_width): Use
17814         node::last_char_node rather than node::get_prev_char_width.
17816         * Makefile: Added comment about -fno-inline on 68030-based
17817         Apollos.
17819         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
17820         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
17821         expressions using sizeof to int.
17822         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
17824         * macros/tmac.e (TS):  Don't move @f back past the current
17825         position.
17827 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
17829         * ps/ps.c (main): Buffer stderr.
17830         * dvi/dvi.c (main): Likewise.
17831         * tty/tty.c (main): Likewise.
17833         * ps/ps.c (ps_printer::do_import): Improve error handling.
17835         * troff/input.c (abort_request): Use asciify.
17837         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
17838         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
17839         type of first argument int rather than char.  This works around a
17840         bug on the 68030 based Apollo using g++ 1.37.1.
17842         * tbl/table.h (class table): Add `keep' member.
17843         * tbl/table.c (table::table): Initialize `keep'.
17844         (table::add_vertical_rule): Set `keep' to 1.
17845         (table::do_top): Only emit table keep macro is `keep' is non-zero.
17846         (table::do_bottom): Likewise for table release macro.
17847         (table::do_row): Emit section keep macro even if the row is 0.
17849 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
17851         * macros/tmac.e (@C): Preserve the font family across the change
17852         in environments.
17854 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
17856         * lib/font.c: Initialize font::hor and font::vert to 1.
17857         (font::load_desc): Check the values of font::hor and font::vert.
17859         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
17860         be included in a C compilation.
17861         (iftoa): Use INT_DIGITS. Include lib.h.
17862         (itoa): Likewise.
17863         (as_string): Likewise.
17864         * tbl/table.c: Removed definition of INT_DIGITS.
17865         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
17866         * troff/input.c (input_input_requests): Likewise.
17867         * ps/ps.c (make_encoding_name): Likewise.
17868         (ps_printer::set_style): Likewise.
17869         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
17871         * tty/devascii/R.proto: Map fm onto '.
17872         * tty/devlatin1/R.proto: Likewise.
17874 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
17876         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
17877         argument to \w is at a different input level.
17879         * tbl/table.c (table::init_output): Define a new macro
17880         REPEATED_VPT_MACRO, like vpt but if in a diversion also
17881         transparently outputs itself.
17882         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
17883         vpt.
17884         (table::do_row): Likewise.
17886         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
17887         TRANSPARENT_STRING_NAME.
17889         * tbl/table.c (table::init_output): In the table release macro
17890         print an error message and don't produce any output if after
17891         issuing the need request the table still will not fit.  Also
17892         remove the diversion after bringing it back.
17894         * tbl/table.c (table::init_output): Define a new macro
17895         REPEATED_MARK_MACRO, like mk but if in a diversion also
17896         transparently outputs itself.
17897         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
17898         is necessary because .TH might not call .T#.
17899         (table::do_top): Likewise TOP_REG.
17900         (table::define_bottom_macro): If TOP_REG is no longer valid, use
17901         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
17902         table header might contain just the two top rules.
17904 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
17906         * troff/div.c: Implement new request `ptr' to print all traps.
17908         * troff/env.c (init_env_requests): Implement `.tabs' reg with
17909         init_string_env_reg.
17910         * troff/env.c (class tab_reg): Deleted.
17912 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
17914         * troff/div.c: New number register .pn returns the number of the
17915         next page as set by the pn request.
17917         * macros/tmac.an: Redid headers and footers.  Number each manual
17918         entry starting from 1 unless \nC is > 0, like Sun.  Added an
17919         optional 5th argument to .TH which specifies the manual name and
17920         appears in the center of the header.  Understand the X, P and D
17921         registers like Sun.
17923 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
17925         * troff/env.c (init_env_requests): New number register `.lt' to
17926         return the title length.
17928         * troff/node.h (class transparent_dummy_node): New class.
17929         * troff/node.c (class transparent_dummy_node): Provide member
17930         functions. 
17931         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
17932         than a dummy_node.
17934         * troff/input.c (token::next): New escape sequence \).
17935         * troff/input.c (get_copy): Recognize \) in copy mode.
17937         * troff/input.c (input_stack::clear): New function.
17938         * troff/input.c (exit_request): Use input_stack::clear.
17940         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
17941         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
17943         * troff/env.c: Move set_page_character to input.c.  Move
17944         page_character to input.c also.
17945         * troff/env.c (title): Split off the reading of the parts of the
17946         title into read_title_parts.
17947         * troff/input.c (read_title_parts): New function.  Check the
17948         input_level when testing whether a token matches the delimiter.
17950         * troff/input.c (exit_request): New function.
17951         * troff/input.c (init_input_requests): Bind ex request to
17952         exit_request rather than exit_groff.
17954         * troff/input.c (exit_groff): Call tok.next() before
17955         process_input_stack().
17957 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
17959         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
17960         * troff/env.h: ditto.
17961         * troff/input.c: ditto.
17963         * troff/env.c (environment::is_empty): Test pending_lines.
17965         * troff/env.c (environment::have_pending_lines): Removed.
17967         * troff/input.c: Add request to flush pending lines from the
17968         environment.
17970         * troff/env.c, troff/env.h: Add automatic widow control feature.
17972         * troff/input.c (exit_groff):  Do process_input_stack() after
17973         do_break() but before setting exit_flag to 2.
17975         * troff/input.c: Remove FLUSH_PENDING_LINES and
17976         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
17977         environment after END_TRAP token seen, but only if there aren't
17978         any more traps still unfinished.
17979         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
17981 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
17983         * troff/env.c: Rename the `retain_size' member of class
17984         pending_output_line to `no_fill'.
17986         * troff/env.c (title): When the line is output, make the
17987         retain_size argument !fill.
17989         * troff/node.h: Add `hyphenated' member to struct breakpoint.
17990         * troff/node.c (space_node::get_breakpoints),
17991         (dbreak_node::get_breakpoints):  Fill this in.
17992         * troff/env.c:  Allow specification of maximum number of
17993         consecutive hyphenated lines.
17995         * troff/env.c (environment::is_empty): Add test for !current_tab.
17997 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
17999         * troff/env.c (environment::hyphenate_line): Don't completely give
18000         up if the word is not to be hyphenated; continue so that breaks
18001         can be made at break_char_node's.
18003         * lib/lib.h: Only define INT_MAX if it's not already defined;
18004         undef INT_MIN if it's already defined.
18006         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
18008         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
18009         This works around a bug in AT&T C++ 2.0 used with an ANSI C
18010         compiler.
18011         
18012         * macros/tmac.an (an-header): Set no-space mode.
18014         * macros/tmac.an (TH): Start a new page if necessary.
18016         * Started using ChangeLog at version 0.4.
18018 Local Variables:
18019 version-control: never
18020 coding: latin-1
18021 End: