1 2002-06-04 Werner LEMBERG <wl@gnu.org>
3 * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
4 is not initialized at the time we need it in case `--prefix' hasn't
5 been set. Check for `ac_default_prefix' also.
6 Test for `papersize' keyword also and generalize allowed whitespace.
7 * configure: Regenerated.
9 * font/devps/Makefile.sub (DESC): Use `papersize' instead of
12 * src/libs/libgroff/Makefile.sub (version, revision): Replaced
14 (src_version, src_revision): New variables to avoid overwriting
15 from parent make process.
16 (version.cc): Updated.
17 * contrib/mom/Makefile.sub (groff_bin_dirs): Fix typo (forgotten
20 * src/preproc/html/pre-html.cc: Include paper.h and font.h.
21 (linebuf, linebufsize): New global variables.
22 (sys_fatal): Use `fatal' to abort properly.
23 (get_line): New function.
24 (get_resolution): Use it.
25 Improve error messages.
26 (get_papersize): Check `papersize' also.
28 Improve error messages.
30 2002-06-03 Werner LEMBERG <wl@gnu.org>
32 * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
33 should be removed only if builddir is not srcdir.
34 (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
35 (clean): Depend on `mostlyclean'.
36 (distclean): Depend on `clean'.
37 (realclean, extraclean): Depend on `distclean'.
38 (.y.cc, .y.o): Simplified. The output files are no longer written
39 to srcdir but to builddir.
40 * Makefile.in (MDEFINES): Add `version' and `revision'.
41 (uninstall_dirs): Fix order of directories.
42 * doc/Makefile.sub (version, revision): Removed.
43 (CLEANADD): Removed grnexmpl.g, groff, groff-*.
45 (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
46 * contrib/mom/Makefile.sub (uninstall_sub): Don't use `momdocdir'
48 Add missing backslash.
49 * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
50 src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
53 * doc/texinfo.tex (\authortt): New macro.
54 (\shortcontt): Define.
55 (\titlepage): Set \tt to \authortt while defining \authorfont.
56 (\appendixbox): New macro.
57 (\chapmacro, \appendixentry): Use \appendixbox to get even
58 indentation for letters.
59 (\summarycontents): Set \tt.
60 (\internalpagesize): Add two arguments for real paper width and
61 height as needed by pdfTeX.
62 (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
64 (\tempdima, \tempdimb): New temporary dimensions.
65 (\pagesizesyyy): Updated.
67 2002-06-02 Werner LEMBERG <wl@gnu.org>
69 Adding a new keyword `papersize' to the DESC file format (similar
70 but not completely identical to grolbp's extension). grops now has
71 a -p command line option to override `papersize'. Finally, grolbp
72 has been adapted to the new syntax.
74 * src/libs/libgroff/paper.cc, src/include/paper.h: New files. It
75 defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
77 * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
78 (CCSRCS): Add `paper.cc'.
80 * src/include/font.h (font): Add `papersize' element.
81 * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
82 (font::scan_papersize): New function.
83 (font::load_desc): Use it for handling `papersize' keyword.
84 * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
86 * src/devices/grops/ps.cc: Include paper.h.
87 (user_paper_length): New global variable.
88 (ps_printer): Use paper length as initializer.
89 (make_printer): Updated.
90 (main): Handle new `-p' option.
91 * src/devices/grops/grops.man: Updated.
93 * src/devices/grolbp/lbp.cc: Include paper.h.
94 s/papersizes/lbp_papersizes/.
95 (set_papersize): Use new `papersizes' array.
96 (handle_unknown_desc_command): Don't handle `papersize'.
97 (main): Use `font::scan_papersize' for handling `-p' option.
98 * src/devices/grolbp/grolbp.man: Updated.
100 * man/groff_font.man: Document `papersize'.
103 2002-05-30 Werner LEMBERG <wl@gnu.org>
105 * src/devices/grops/TODO: Updated.
106 * src/devices/grops/grops.man: More info on paper formats.
107 * man/groff_font.man: Document `paperheight' and `paperwidth'.
109 2002-05-29 Werner LEMBERG <wl@gnu.org>
111 * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
112 to list only if srcdir != currdir.
113 (distfiles): New target.
115 * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
116 (NOMAKEDIRS): New variable.
119 2002-05-26 Werner LEMBERG <wl@gnu.org>
121 Add .output request, similar to \! at top-level.
123 * src/roff/troff/input.cc (transparent): Remove unused declaration.
124 (output_request): New function.
125 (init_input_requests): Add it.
127 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
130 * Makefile.in (MDEFINES): Add INSTALL_INFO.
131 (prepare_examples): Fix typo.
132 * doc/groff.texinfo (@direntry): Fix it.
134 2002-05-25 Werner LEMBERG <wl@gnu.org>
136 Including the doc subdir into groff's Makefile system.
138 * aclocal.m4 (GROFF_INSTALL_INFO): New function.
139 * configure.ac: Use it.
140 Generate `doc/Makefile'.
141 * configure: Regenerated.
143 * Makefile.in (infodir, INSTALL_INFO): New variables.
144 (MDEFINES, uninstall_dirs): Updated.
145 (OTHERDIRS): Add `doc'.
146 * Makefile.comm (CLEANDIRADD): New variable.
147 (mostlyclean): Use it.
149 * doc/Makefile.sub, doc/Makefile.in: New files.
150 * doc/Makefile: Removed.
152 * NEWS, INSTALL: Updated.
154 2002-05-24 Werner LEMBERG <wl@gnu.org>
156 * doc/homepage.ms: Renamed to ...
157 * doc/webpage.ms: This.
159 * contrib/mom/Makefile.sub (momdocdir): Removed.
160 (HTMLDOCFILES): Prepend `momdoc/'.
161 (EXTRAEXAMPLEFILES): Removed. Added entries to...
162 (EXAMPLEFILES): This.
163 (.SUFFIXES, .mom.ps): New.
164 (prepare_make_examples): Updated.
165 (examples/*.ps): Removed; .mom.ps will handle this.
166 (install_data): Updated.
168 2002-05-23 Werner LEMBERG <wl@gnu.org>
170 Integrating the `mom' macro package, contributed by Peter Schaffter
173 * contrib/mom/*: New subdirectory tree.
174 * Makefile.in (docdir, exampledir, htmldocdir): New variables to
175 be used for documentation files.
176 (MDEFINES, uninstall_dirs): Use them.
177 (OTHERDIRS): Add contrib/mom.
178 * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
180 * MANIFEST, NEWS: Updated.
182 2002-05-22 Gaius Mulley <gaius@glam.ac.uk>
184 Change syntax of \O: \O[0] suppresses output, \O[1] enables output
185 if at outer level; at start-up we are at outer level.
187 * src/roff/troff/input.cc (do_suppress): Implement it.
190 Add option -p to show progress information.
191 pre-grohtml will now render only one page at a time, reducing the
192 size of needed disk resources enormously.
194 * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
195 (imagePageName): New global variable.
196 (psPageName, show_progress, currentPageNo): New global variables.
197 (html_system): Close saved stderr and stdout handles.
198 (write_end_image): Accept a parameter to control \O escape.
199 (write_start_image): Adapted to new \O meaning.
200 (char_buffer::write_upto_newline): Updated.
201 (createAllPages): Replaced with...
202 (createPage): This new function to create a single page for images.
203 It uses `psselect' from the psutils package.
204 (removeAllPages): Removed.
205 (createImage): Updated.
206 Handle progress display.
207 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
208 (scanArguments): Add option -p.
209 (makeTempFiles): Updated to create temp files for psPageName and
211 (removeTempFiles): Removed.
214 * src/devices/grohtml/post-html.cc (header_desc::write_headings,
215 html_printer::write_header): Append `\0' to `buffer'.
216 (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
218 * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
219 Handle `text_emitted'.
220 (html_text::table_is_void): Slightly rewritten.
221 (stop): New external symbol.
222 (html_text::do_push) [DEBUGGING]: Use it and simplify.
223 (html_text::shutdown): Call `dump_stack'.
224 (html_text::do_space): Rewritten.
225 * src/devices/grohtml/grohtml.man: Document -p and the need of
228 * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
230 Call \O[0] if `ps4html' is active.
231 * tmac/s.tmac (@EQ, @EN): Handle html better.
233 * tmac/html.tmac: Don't use black for background colour.
235 * src/roff/troff/node.cc: Include `div.h'.
236 (troff_output_file::really_print_line): Don't use `is_on'.
237 (troff_output_file::word_marker, troff_output_file::flush_tbuf
238 troff_output_file::check_charinfo,
239 troff_output_file::put_char_width, troff_output_file::put_char,
240 troff_output_file::determine_line_limits, troff_output_file::draw,
241 real_output_file::begin_page, glyph_color_node::tprintf,
242 fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
244 (troff_output_file::really_on): Call `do_motion'.
245 (suppress_node::tprint): Use `get_page_number' instead of `%'
247 Call `reset_output_registers' conditionally on `is_on'.
249 * doc/groff.texinfo: Document new syntax of \O.
250 * NEWS, man/groff_diff.man: Updated.
252 2002-05-22 Werner LEMBERG <wl@gnu.org>
254 * MORE.STUFF: Add info about David Frey's deroff implementation.
257 2002-05-16 Werner LEMBERG <wl@gnu.org>
259 Pic's `with' attribute now accepts positions.
261 * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
262 ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
264 (object_spec): Add rule for `WITH' and `position'.
265 (relative_path): Give `corner' the precedence of `CHOP'.
266 * src/preproc/pic/object.h (path): New members `pos' and
268 * src/preproc/pic/object.cc: Updated initializers of `path'.
269 (path::follow): Handle `is_position'.
271 * doc/pic.ms: Completely updated grammar description.
272 Many typographical improvements.
274 2002-05-15 Werner LEMBERG <wl@gnu.org>
276 * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
277 code of x in range 0-127) also.
278 * doc/groff.texinfo, man/groff_diff.man: Updated.
280 Added keywords `north', `south', `east', and `west' for corners
283 * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
285 (yylex): Handle them.
286 * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
287 (corner): Handle them.
289 2002-05-14 Werner LEMBERG <wl@gnu.org>
291 * src/devices/grops/grops.man: Clarify handling of `download' file.
293 2002-05-11 Werner LEMBERG <wl@gnu.org>
295 Adding `warnscale' and `spreadwarn' requests, based on a patch from
296 Jeffrey Friedl <jfriedl@yahoo.com>.
298 * src/roff/troff/input.cc (spread_limit, warn_scale,
299 warn_scaling_indicator): New global variables.
300 (warnscale_request, spreadwarn_requests): New functions.
301 (main): Initialize `warn_scale' and `warn_scaling_indicator'.
302 (init_input_requests): Updated.
303 (error_type): Add `OUTPUT_WARNING'.
304 (do_error): Handle it.
305 (output_warning): New warning function which shows output location.
306 * src/roff/troff/env.h (spread_limit): New external variable.
307 * src/roff/troff/env.cc (environment::choose_breakpoint): Use
309 (distribute_space): Emit warning if added space is larger than
311 (environment::possibly_break_line): Emit warning if a line can't
312 be adjusted on both sides.
314 * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
316 2002-05-08 Werner LEMBERG <wl@gnu.org>
318 * src/roff/troff/node.cc (special_node::special_node): Use
319 env_definite_font(curenv) instead of curenv->get_font(). Otherwise
320 \X''\% crashes, for example.
322 * doc/groff.texinfo: Document \! and \? used at top-level.
324 2002-05-06 Werner LEMBERG <wl@gnu.org>
326 * src/preproc/pic/pic.man: Fix some keyword syntax.
327 Other minor typographical fixes.
329 * src/roff/groff/groff.man: Fix typos.
331 2002-05-04 Werner LEMBERG <wl@gnu.org>
333 * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
334 (ShortOpt[]): This to avoid problems with refer.
336 * doc/pic.ms: Fix typo.
337 Fix pic grammar description.
339 * tmac/an-old.tmac (ne): Use de1, not de.
341 2002-05-03 Werner LEMBERG <wl@gnu.org>
343 * doc/groff.texinfo: Finished separation of glyphs and characters.
344 Don't use the string `Appendix' for appendix headers (both in
345 the text and the table of contents).
346 * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
349 Use registers LL and LT (similar to -ms) for controlling the
350 length of title and line, respectively, in the -man and -mdoc
353 * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
354 (doc-setup-page-layout): Use \n[LL] and \n[LT].
355 * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
357 (an-header, an-p-footer): Use \n[LT].
358 * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
359 doc/groff.texinfo: Document it.
361 2002-05-02 Werner LEMBERG <wl@gnu.org>
363 * doc/fdl.texi: New file.
364 * doc/groff.texinfo: Include it.
365 Define and use @copying.
366 Starting with separating glyph, symbol, and character.
368 2002-04-27 Werner LEMBERG <wl@gnu.org>
370 * Makefile.in (EXEEXT): Set it.
371 * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
374 * src/include/nonposix.h: Define GS_NAME.
375 * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
377 Some preliminary changes for EMX support under OS/2.
379 * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
380 __EMX__ similar to __MSDOS__.
381 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
383 2002-04-25 Werner LEMBERG <wl@gnu.org>
385 * doc/groff.texinfo: Integrated groff_out.man.
388 2002-04-23 Werner LEMBERG <wl@gnu.org>
390 * man/groff_out.man: Minor fixes.
392 2002-04-23 Werner LEMBERG <wl@gnu.org>
394 * doc/groff.texinfo: Moving @cindex entries after @Def* to get
395 correct page references.
396 Fixed many index entries.
398 2002-04-23 Bernd Warken <bwarken@mayn.de>
400 * man/roff.man: Enlarged.
402 2002-04-22 Werner LEMBERG <wl@gnu.org>
404 * doc/groff.texinfo: More examples, other fixes.
406 2002-04-20 Werner LEMBERG <wl@gnu.org>
408 * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
409 will now form a chain, e.g.
418 This is for compatibility with plan 9's troff.
420 * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
424 * doc/groff.texinfo: Add documentation of remaining requests and
427 2002-04-19 Werner LEMBERG <wl@gnu.org>
429 * doc/groff.texinfo: Add documentation of remaining escapes.
431 * font/devdvi/generate/tc.map: Remove entry for `sr'.
432 * font/devdvi/*TC: Regenerated.
434 2002-04-18 Werner LEMBERG <wl@gnu.org>
436 * src/roff/troff/input.cc (token::next): Make \H behave consistently
437 if not in compatibility mode, i.e., increment relative to the
439 * doc/groff.texinfo: Updated accordingly.
441 2002-04-17 Werner LEMBERG <wl@gnu.org>
443 * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
445 2002-04-16 Bernd Warken <bwarken@mayn.de>
447 * src/roff/groff/groff.man: Improve documentation of -P option.
450 2002-04-15 Werner LEMBERG <wl@gnu.org>
452 Add new escape \F to switch font family.
454 * src/roff/troff/input.cc (token::next): Handle \F.
455 * src/roff/troff/env.cc (environment::set_family): Handle
457 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
460 2002-04-14 Werner LEMBERG <wl@gnu.org>
462 * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
465 2002-04-13 Werner LEMBERG <wl@gnu.org>
467 Implement \f[] as an alternative to \fP. Change \mP and \MP to
468 \m[] and \M[], respectively.
470 * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
471 (symbol::symbol): Handle NULL string and empty string differently.
472 * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
473 * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
474 Add optional parameter.
475 Updated calling functions.
476 (get_copy, do_glyph_color, do_fill_color, token::next): Use
478 * src/roff/troff/env.cc (environment::set_font): Ditto.
480 * src/preproc/pic/troff.cc (troff_output::set_fill,
481 troff_output::reset_color: Updated.
483 * tmac/www.tmac: Updated.
485 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
486 doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
489 * tmac/Xps.tmac: Remove some redundant code.
491 * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
492 tmac/dvi.tmac, contrib/groffer/groffer.man, man/roff.man,
493 man/groff_out.man, man/groff.man, man/groff_diff.man,
494 src/roff/groff/groff.man: Replace \f[P] with \f[].
496 2002-04-13 Bernd Warken <bwarken@mayn.de>
498 * src/include/printer.h, src/libs/libdriver/printer.cc
499 (printer::change_fill_color): New member function.
500 * src/libs/libdriver/input.cc (parse_D_command): Use it.
502 2002-04-12 Werner LEMBERG <wl@gnu.org>
504 * doc/groff.texinfo: Completed pass on gtroff reference.
506 2002-04-11 Werner LEMBERG <wl@gnu.org>
508 * doc/groff.texinfo: More fixes.
510 2002-04-11 Bernd Warken <bwarken@mayn.de>
512 * src/include/color.h: Decorate with `const'.
515 * src/libs/libgroff.color.cc: Decorate with `const'.
517 (color::color): Initialize members.
518 * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
519 command according to the documentation.
521 * man/groff_out.man: Updated.
524 2002-04-11 Gaius Mulley <gaius@glam.ac.uk>
526 * src/preproc/html/pre-html.cc (write_start_image): Remove
528 * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
530 * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
531 \C'hy' caused an assertion failure.
533 * src/roff/troff/env.cc (environment::environment): Initialize
535 (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
537 2002-04-10 Werner LEMBERG <wl@gnu.org>
539 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
540 Document pvs request and .pvs register.
542 2002-04-09 Werner LEMBERG <wl@gnu.org>
544 * doc/groff.texinfo: Improve and fix documentation of diversions
547 2002-04-08 Werner LEMBERG <wl@gnu.org>
549 * doc/groff.texinfo: Fix documentation of drawing functions.
552 2002-04-07 Werner LEMBERG <wl@gnu.org>
554 * doc/groff.texinfo: Better documentation of double quotes as
558 2002-04-06 Werner LEMBERG <wl@gnu.org>
560 * man/groff_font.man: Document names of special characters better.
561 * doc/groff.texinfo: Minor improvements.
563 * tmac/lbp.tmac: Load latin1.tmac.
564 * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
566 * font/devX*/*: Regenerated (all chars > 0x80 removed).
568 2002-04-05 Werner LEMBERG <wl@gnu.org>
570 * tmac/tty.tmac: Don't use shc request.
571 * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
574 * man/groff_diff.man: Minor fixes.
576 * font/devlbp/*: Remove all `charXXX' entities.
578 * src/libs/libgroff/font.cc (font::~font): Deallocate
579 `special_device_coding'.
580 (font::load): Use `new' for allocating `special_device_coding'.
581 * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
582 Removed unused member.
584 2002-04-05 Werner LEMBERG <wl@gnu.org>
586 * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
587 (resource_manager::do_begin_binary,
588 resource_manager::do_begin_data): Use it.
590 * doc/texinfo.tex: Updated to version 4.2.
592 * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
593 (token::zero_width_break): New inline function.
594 * src/roff/troff/input.cc (token::next): Use it.
595 (token::description): Updated.
596 (encode_char): Ignore `\%', `\&', `\)', and `\:'.
597 (token::add_to_node_list, token::process): Use it.
598 * NEWS, doc/groff.texinfo: Updated.
600 * src/preproc/eqn/over.cc (over_box::output): Fix typo.
601 * tmac/tty.tmac: Add missing backslash.
603 2002-04-04 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
605 * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
606 `.ps' register instead of `.s' to handle fractional point sizes.
607 * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
608 limit_box::output): Ditto.
609 * src/preproc/eqn/other.cc (size_box::compute_metrics,
610 size_box::output): Ditto.
611 * src/preproc/eqn/over.cc (over_box::compute_metrics,
612 over_box::output): Ditto.
613 * src/preproc/eqn/script.cc (script_box::compute_metrics,
614 script_box::output): Ditto.
615 * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
616 sqrt_box::output): Ditto.
618 2002-04-03 Michael Selway <mas@ssl.co.uk>
620 * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
623 2002-04-03 Werner LEMBERG <wl@gnu.org>
625 * doc/homepage.ms: Reduce title size.
626 * doc/groff.texinfo: Fix documentation of .t register.
627 Fix handling of colon.
630 * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
631 only if page length is positive to avoid a loop.
633 * tmac/an-old.tmac (ne): Increase page length to avoid problems with
636 2002-04-02 P. Alejandro Lopez-Valencia <dradul@yahoo.com>
638 * src/include/nonposix.h, src/roff/groff/pipeline.c:
639 s/__CYGWIN32__/__CYGWIN__/.
641 2002-03-28 Gaius Mulley <gaius@glam.ac.uk>
643 * doc/gnu.xpm: New image contributed by Emily Mulley.
644 * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
645 (homepage.html): Be dependent on gnu.eps.
646 * doc/homepage.ms: Updated to new image.
648 * src/devices/grohtml/post-html.cc (html_printer): New member
650 (html_printer::flush_sbuf, html_printer::set_char): Set it.
651 (html_printer::sbuf_continuation): Use it.
653 2002-03-28 Werner LEMBERG <wl@gnu.org>
655 * src/libs/libgroff/getopt.c: Updated to latest version.
657 * tmac/README: More on hyphen.tex license.
659 2002-03-26 Larry Kollar <kollar@alltel.net>
661 * doc/groff.texinfo: Add documentation of most missing requests.
663 2002-03-25 Werner LEMBERG <wl@gnu.org>
665 Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
666 of `+-', `mu', and `di', respectively.
668 * font/devascii/R.proto, font/devutf8/R.proto,
669 font/devlatin1/R.proto, font/devhtml/R.proto,
670 font/devcp1047/R.proto, font/devlpb/*: Add them.
671 * font/devps/generate/textmap: Ditto.
672 * font/devps/*: Regenerated.
673 * font/devlj4/generate/text.map: Add them.
674 * font/devlj4/*: Regenerated.
675 * font/devdvi/generate/tc.map: Use them.
676 * font/devdvi/generate/texsy.map: Add them.
677 * font/devdvi/*: Regenerated.
678 * font/devX*/*: Regenerated.
680 * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
681 tmac/tty-char.tmac: Updated.
683 * NEWS, man/groff_char.man: Updated.
685 2002-03-24 Werner LEMBERG <wl@gnu.org>
687 * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
688 tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
689 * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
690 we use `.fchar' in dvi.tmac.
691 * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
692 * tmac/Xps.tmac: Simplify some char definitions.
693 Add definition for \[f/].
694 * man/groff_char.man: Updated for new X.tmac.
696 * tmac/README: New file.
698 2002-03-23 Phil Lobbes <phil@perkpartners.com>
700 * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
701 internal .y.o rule took precendence over the .y.cc rule, compiling
702 the yacc files with gcc instead of g++.
704 2002-03-23 Werner LEMBERG <wl@gnu.org>
706 * tmac/dvi.tmac: Add replacement font for `CB'.
708 * tmac/doc.tmac: s/request/macro/ in messages.
709 (doc-generic-macro): Improve error message.
710 * tmac/groff_mdoc.man: Minor improvements.
712 2002-03-22 Werner LEMBERG <wl@gnu.org>
714 * doc/groff.texinfo: Document possible conflict between `tr' and
717 2002-03-21 Werner LEMBERG <wl@gnu.org>
719 Improve handling of hyphenation patterns. It is now possible to
720 use most of TeX's pattern files unmodified. To make the process
721 more flexible, a new request `hpfcode' has been added which
722 provides a character code mapping for the `hpf' request. See
723 comment before hpf_getc() for more details.
725 * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
727 (read_patterns_file): Additional parameter for exception dictionary.
728 Extended to recognize \pattern, \hyphenation, and \endinput.
729 (do_hyphenation_patterns_file): Updated.
730 * src/roff/troff/env.h (hpf_code_table): New extern.
732 * src/roff/troff/input.cc (hpf_code_table): New array.
733 (init_hpf_code_table, hyphenation_patterns_file_code): New
735 (hyphenation_code): Handle translation from `trin' correctly.
736 (main, init_input_requests): Updated.
737 (charinfo::set_translation): Handle hyphenation code also.
739 * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
742 * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
743 char' is used for offsets in hyphenation exceptions.
745 * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
747 * NEWS, man/groff_diff.man, man/groff.man: Document it.
749 2002-03-20 Larry Kollar <kollar@alltel.net>
751 * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
754 2002-03-18 Werner LEMBERG <wl@gnu.org>
756 * tmac/html.tmac: Fix serious typo.
758 2002-03-17 Larry Kollar <kollar@alltel.net>
760 * doc/groff.texinfo: Add documentation for `writec' request.
762 2002-03-17 Werner LEMBERG <wl@gnu.org>
764 Added request `hpfa' to append hyphenation patterns.
766 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
768 (hyphenation_patterns_file): Renamed to...
769 (do_hyphenation_patterns_file): This.
770 (hyphenation_patterns_file, hyphenation_patterns_file_append): New
772 (init_hyphen_requests): Updated.
773 * NEWS, man/groff.man, man/groff_diff.man: Document it.
775 2002-03-16 Werner LEMBERG <wl@gnu.org>
777 Added request `writec' in analogy to `tmc'.
779 * src/roff/troff/input.cc (write_request): Renamed to...
780 (do_write_request): This.
782 (write_request, write_request_continue): New functions.
783 (init_input_requests): Updated.
784 * NEWS, man/groff.man, man/groff_diff.man: Document it.
786 * font/devdvi/DESC.in (sizes): Allow all sizes in the range
790 2002-03-15 Werner LEMBERG <wl@gnu.org>
792 * man/groff.man: Add writem request.
794 Add request `trin' (translate input) to make `.asciify' work
795 correctly. This is necessary since `charXXX' entity names are no
796 longer hardcoded in font definition files.
798 * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
799 `translate_input' members.
800 (charinfo::set_asciify_code, charinfo::get_asciify_code,
801 charinfo::set_translation_input): New methods.
802 (charinfo::set_translation): Add third argument.
803 * src/roff/troff/input.cc (charinfo:set_translation): Set
805 (do_translate): Add second argument.
806 (translate_input): New function.
807 (init_input_requests): Updated.
808 * src/roff/troff/node.cc (glyph_node::asciify,
809 composite_node::asciify): Use `get_asciify_code'.
811 * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
813 * NEWS, man/groff.man, man/groff_diff.man: Updated.
815 2002-03-14 Larry Kollar <kollar@alltel.net>
817 * doc/groff.texinfo: Improve documentation of .RS and .RE.
819 2002-03-14 Werner LEMBERG <wl@gnu.org>
821 Add a new request `sizes' similar to the `sizes' command in DESC
824 * src/roff/troff/env.cc (override_sizes): New function.
825 (init_env_requests): Use it.
826 * src/roff/troff/token.h: Export `read_string'.
827 * NEWS, man/groff_diff.man, man/groff.man: Document it.
829 2002-03-12 Werner LEMBERG <wl@gnu.org>
831 * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
833 2002-03-10 Werner LEMBERG <wl@gnu.org>
835 * tmac/pspic.tmac: Add support for -Tdvi.
836 * tmac/dvi.tmac: Include pspic.tmac.
837 * src/devices/grodvi/grodvi.man: Document it.
840 * font/devlj4/generate/Makefile: Fix URL of metric files.
842 2002-03-09 Werner LEMBERG <wl@gnu.org>
844 * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
846 2002-03-09 Larry Kollar <kollar@alltel.net>
848 * tmac/groff_ms.man: Add documentation for RS and RE macros.
850 2002-03-08 Werner LEMBERG <wl@gnu.org>
852 * doc/groff.texinfo: Fixes for texinfo 4.1.
854 2002-03-07 Werner LEMBERG <wl@gnu.org>
856 * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
858 Handle CYGWIN properly.
860 2002-03-07 Paco Andrés Verdú <pandres@dragonet.es>
862 * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
863 * tmac/lbp.tmac: Add some font translations.
865 2002-03-02 Werner LEMBERG <wl@gnu.org>
867 * font/devcp1047/R.proto, font/devlatin1/R.proto,
868 font/devhtml/R.proto: Remove `charXXX' entries.
869 * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
872 * font/devlj4/generate/text.map: Remove `charXXX' entries.
873 * font/devlj4/*: Regenerated all font definition files.
874 * tmac/lj4.tmac: Load latin1.tmac.
876 * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
877 from 2000-06-17: LJ4 metric files are *not* text files.
879 * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
880 register to test for EBCDIC.
882 2002-03-01 Werner LEMBERG <wl@gnu.org>
884 * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
885 files (as grops already does).
886 * src/utils/afmtodit/afmtodit.man: Document comment lines in map
888 * src/devices/grops/grops.man: Document comment lines in encoding
891 * tmac/cp1047.tmac: New file.
892 * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
893 * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
894 * tmac/Makefile.sub (NORMALFILES): Updated.
896 * tmac/ec.tmac: Don't load latin1.tmac again.
898 * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
899 font/devps/generate/dingbats.map,
900 font/devps/generate/dingbats.rmap, font/devps/text.enc,
901 font/devps/generate/Makefile (symbolmap): Add header comment.
902 * font/devps/generate/textmap: Ditto.
903 Remove `charXXX' entries.
904 * font/devps/symbolmap: Regenerated.
905 * font/devps/*: Regenerated all font definition files.
907 2002-02-28 Werner LEMBERG <wl@gnu.org>
909 Add color support to grodvi (for drawing colors are currently
910 translated to gray values).
912 * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
913 (dvi_printer): Add `cur_color' member.
914 (dvi_printer::set_color): New function.
915 (draw_dvi_printer): Remove `fill'.
916 (draw_dvi_printer::fill_next): Pass environment as parameter.
917 Update code for new color support translated to gray.
918 (dvi_printer::set_char): Updated.
919 (dvi_printer::begin_page, dvi_printer::end_page): Handle color
920 changes crossing the page border.
921 (dvi_printer::draw): Updated.
922 Remove cases `f' and `F'.
923 * tmac/dvi.tmac: Add color definitions.
924 * NEWS, src/devices/grodvi/grodvi.man: Updated.
926 * tmac/an-old.tmac (R): Make this a macro to emit a warning if
929 * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
930 versions of autoconf.
931 * configure: Updated.
933 * doc/homepage.ms: Use `.blm'.
934 * tmac/www.tmac (www-depth): New auxiliary variable.
935 (www-pop-level): Don't issue HTML tag.
936 (ULS, ULE, LI): Use absolute indentation.
938 * src/devices/grops/ps.cc (ps_printer::begin_page,
939 ps_printer::end_page): Switch forth and back to default color while
942 2002-02-27 Werner LEMBERG <wl@gnu.org>
944 Add EC and TC fonts to devdvi.
946 * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
947 * font/devdvi/generate/cork.map: Renamed to...
948 * font/devdvi/generate/ec.map: This.
949 Remove entry for `aq'.
950 * font/devdvi/generate/tc.map: New file.
951 * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
954 * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
955 * font/devdvi/Makefile.sub (DEVFILES): Updated.
956 * tmac/ec.tmac: New file.
957 * tmac/Makefile.sub (NORMALFILES): Updated.
958 * NEWS, src/devices/grodvi/grodvi.man: Updated.
959 * man/groff_char.man: Check `ECFONTS' register.
961 * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
963 2002-02-26 Werner LEMBERG <wl@gnu.org>
965 * font/devdvi/generate/*.map: Remove all `charXXX' entries.
966 * font/devdvi/generate/cork.map: Add 'y and 'Y.
967 * font/devdvi/*: Updated.
968 * tmac/dvi.tmac: Formatting.
970 Add font `HBI' for the dvi output.
971 Add support for font families `T' and `H'.
973 * font/devdvi/HBI: New file.
974 * font/devdvi/B: Renamed to ...
975 * font/devdvi/TB: This.
976 * font/devdvi/BI: Renamed to ...
977 * font/devdvi/TBI: This.
978 * font/devdvi/I: Renamed to ...
979 * font/devdvi/TI: This.
980 * font/devdvi/R: Renamed to ...
981 * font/devdvi/TR: This.
982 * font/devdvi/H: Renamed to ...
983 * font/devdvi/HR: This.
984 * font/devdvi/Makefile.sub (DEVFILES): Updated.
985 * font/devdvi/generate/Makefile (HBI): New rule.
987 (R, I, B, BI, H): Renamed to ...
988 (TR, TI, TB, TBI, HR): This, respectively.
990 * NEWS, src/devices/grodvi/grodvi.man: Updated.
991 * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
992 Add `styles' and `family' keywords.
993 * tmac/dvi.tmac: Alias `H' to `HR'.
994 Add some fspecial requests for italic fonts.
995 Add TR and TI as special.
996 Add support for `_' with font CWI.
998 * src/roff/troff/number.cc (parse_expr): Add missing `break' for
999 operator `:'. Until now, the expression `0:1' would return 2
1002 2002-02-25 Werner LEMBERG <wl@gnu.org>
1004 * man/groff_char.man: Added some missing PS glyph names (from the
1006 * font/devps/generate/textmap, font/devps/symbolmap: Add
1009 * doc/groff.texinfo: Minor additions and fixes.
1010 * man/groff_diff.man: Remove documentation of fp request. This
1011 is already covered in the original troff manual.
1012 Updated to be consistent with other doc files.
1015 2002-02-24 Werner LEMBERG <wl@gnu.org>
1017 * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
1019 Define new variable OTHERDEVDIRS (containing `font/devlj4
1020 font/devlbp' if not EBCDIC).
1021 * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
1022 (OTHERDEVDIRS): New variable.
1023 (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
1024 * configure: Regenerated.
1026 * NEWS, src/devices/grotty/grotty.man: Updated.
1028 2002-02-23 Werner LEMBERG <wl@gnu.org>
1030 * src/roff/troff/input.cc (do_overstrike, do_bracket,
1031 get_line_arg): Honour input level.
1033 Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
1035 * font/*/*: Implement it in all font files.
1036 * font/devps/generate/textmap, font/devps/generate/symbolchars,
1037 * font/devps/symbolmap: Updated.
1038 * font/devlj4/generate/text.map: Updated.
1039 * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
1040 * font/devdvi/generate/texmi.map: Updated.
1042 * font/devutf8/R.proto: Remove all `charXXX' entries.
1043 * font/devutf8/NOTES: Updated.
1045 * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
1048 * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
1050 * NEWS, man/groff_char.man: Updated.
1052 2002-02-21 Phil Lobbes <phil@perkpartners.com>
1054 * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
1056 2002-02-20 Ralph Corderoy <ralph@inputplus.demon.co.uk>
1058 * src/roff/grog/grog.pl: Fix computation of $refer.
1060 2002-02-19 Werner LEMBERG <wl@gnu.org>
1062 * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
1063 `snprintf' and `vsnprintf'.
1065 * src/include/htmlindicate.h: Renamed to...
1066 * src/include/htmlhint.h: This.
1067 * src/include/Makefile.sub: Updated.
1068 * src/preproc/eqn/main.cc: Updated.
1070 2002-02-18 Werner LEMBERG <wl@gnu.org>
1072 * man/roff.man, man/groff_out.man, man/groff.man,
1073 man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
1074 src/roff/troff/troff.man: Updated to latest changes in www.tmac.
1076 * win32-diffs: Updated.
1078 2002-02-17 Werner LEMBERG <wl@gnu.org>
1080 * doc/Makefile (clean): Add *.eps.
1081 (MEMACROS): Removed.
1082 (TFLAG): New variable.
1085 (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
1087 (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
1089 * tmac/www.tmac: Use dummy diversion while resetting and disabling
1091 * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
1093 * src/roff/troff/troff.man: Fix order of parameter description.
1097 2002-02-16 Gaius Mulley <gaius@glam.ac.uk>
1099 Simplify image handling for grohtml.
1102 * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
1104 (html_text::dump_stack): Don't emit newline while debugging.
1105 (html_text::do_push) [DEBUGGING]: Print more info.
1106 (html_text::check_emit_text): Fix handling of <p>.
1107 * src/devices/grohtml/html.h: Updated.
1108 * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
1109 replacing `fputc', `fputs', `putc'. If DEBUGGING is defined, they
1110 send its data to stderr also.
1112 (simple_output::space_or_newline) [DEBUGGING]: Removed.
1113 * src/devices/grohtml/post-html.cc (html_printer::do_links,
1114 html_printer::html_printer): Remove `DEBUGGING' conditionals.
1116 * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
1118 * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
1119 is_inline_image): Removed.
1120 (html_begin_suppress, html_end_suppress): Don't take a parameter.
1121 (graphic_start, graphic_end): Removed.
1122 * src/include/htmlindicate.h: Updated.
1123 * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
1124 (macroset_template): New global variable.
1125 (makeFileName): Use `macroset_template'.
1126 (write_end_image): Don't take a parameter.
1128 (write_start_image: Don't emit newline.
1129 (char_buffer::write_upto_newline): Updated.
1130 (char_buffer::skip_to_newline): Renamed to ...
1131 (char_buffer::skip_until_newline): This.
1133 (char_buffer::write_file_troff, char_buffer::write_file_html):
1135 (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
1136 (removeAllPages): Remove `DEBUGGING' conditionals.
1137 (addRegDef, dump_args): New functions.
1138 (char_buffer::do_html, char_buffer::do_image): Handle
1139 `www-image-template' command line variable.
1140 Add more debugging code.
1141 (addps4html): Removed.
1142 (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
1144 * src/preproc/eqn/main.cc: Include `ctype.h'.
1145 (suppress_html): Removed.
1147 (inline_equation): Use `html_begin_suppress' and
1148 `html_end_suppress'.
1149 * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
1150 (troff_output::start_picture, troff_output::finish_picture):
1152 * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
1153 (process_input_file): Updated.
1155 * src/roff/troff/div.cc (page_number): Set page number only if the
1156 `ps4html' register isn't defined.
1157 * src/roff/troff/input.cc (image_no): New external variable.
1158 (do_suppress): Use it.
1159 * src/roff/troff/node.h (suppress_node::image_id): New member.
1160 * src/roff/troff/node.cc (image_no): Remove `static' keyword.
1161 (suppress_node::suppress_node): Initialize `image_id' member.
1162 (suppress_node::same): Handle `image_id' also.
1163 (suppress_node::copy): Updated.
1164 (last_image_id): New global variable.
1165 (suppress_node::tprint): Use it.
1167 * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
1169 * tmac/pspic.mac (PSPIC): Fix html support.
1170 * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
1171 * tmac/www.tmac (www-image-template): Set up.
1172 (HTMLINDEX): Renamed to...
1174 (BODYCOLOR): Renamed to...
1176 (BACKGROUND): Renamed to...
1178 (URL): Change order of parameters for consistency.
1179 (MAILTO): Renamed to...
1181 (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
1182 (IMG, PIMG, MPIMG): This.
1183 (HTML-H-BEGIN, HTML-H-END): Renamed to...
1185 (LINKS): Renamed to...
1187 (LINE): Renamed to...
1189 (NO-AUTO-RULE): Renamed to...
1191 (HTML-TL): Renamed to...
1193 (UL-BEGIN, UL-END): Renamed to...
1195 (DROPCAP): Renamed to...
1197 (TS, TE, EQ, EN): Provide default definitions.
1198 (www-make-unique-name): Updated.
1199 (HTML-IMAGE-INLINE): Fix typo.
1200 * tmac/groff_www.man: Updated.
1202 * doc/Makefile (homepage.html): Add option -r to grohtml.
1203 Use shortened image name.
1204 * doc/groff.texinfo: Updated info on grohtml strings and macros.
1205 * doc/homepage.ms: Updated and extended.
1207 2002-02-14 Werner LEMBERG <wl@gnu.org>
1209 Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
1211 * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
1212 SGR_BACK_DEFAULT_COLOR): Replaced with ...
1213 (tty_printer::put_color): Use it.
1214 (ttr_printer::end_page): Simplify.
1216 2002-02-13 Werner LEMBERG <wl@gnu.org>
1218 * tmac/groff_tmac.man: Moved to...
1219 * man/groff_tmac.man: This place.
1220 * tmac/Makefile.sub, man/Makefile.sub: Updated.
1222 2002-02-12 Werner LEMBERG <wl@gnu.org>
1224 * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
1225 $(COMPILE.c) to not include groff's assert.h.
1227 * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
1229 * NEWS, src/drivers/grotty/grotty.man: Document it.
1231 2002-02-11 Werner LEMBERG <wl@gnu.org>
1233 * src/libs/snprintf/snprintf.c: Updated to latest version
1236 * src/roff/grog/grog.pl (process): Fix handling of `.['. We now
1237 test whether there is `.]' also.
1238 Don't check for spaces after `.['.
1239 * src/roff/grog/grog.sh: Do the same.
1241 2002-02-10 Werner LEMBERG <wl@gnu.org>
1245 * src/libs/libgroff/illegal.cc: Renamed to ...
1246 * src/libs/libgroff/invalid.cc: This.
1247 (illegal_char_table): Renamed to ...
1248 (invalid_char_table): This.
1249 * src/libs/libgroff/Makefile.sub: Updated.
1250 * win32-diffs: Updated.
1252 * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
1253 src/libs/libdriver/input.cc (fatal_command, parse_color_command,
1254 parse_x_command), src/libs/libgroff/font.cc (text_file::next,
1255 font::load), src/preproc/eqn/main.cc (read_line, main),
1256 src/preproc/eqn/lex.cc (file_input::read_line),
1257 src/preproc/pic/lex.cc (file_input::read_line,
1258 simple_file_input::get, simple_file_input::peek),
1259 src/preproc/pic/main.cc (top_input::get, top_input::peek),
1260 src/preproc/pic/pic.man, src/preproc/refer/main.cc
1261 (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
1262 do_bib), src/preproc/tbl/main.cc (table_input::get),
1263 src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
1264 src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
1265 do_zero_width, read_request, encode_char, ps_get_line,
1266 transparent_file, get_char_for_escape_name, transparent_translate,
1267 asciify, input_char_description, read_string, set_string),
1268 src/roff/troff/env.cc (environment::add_html_tag),
1269 src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
1271 * src/include/lib.h: Updated.
1273 * src/preproc/eqn/eqn.cc: Removed.
1277 * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
1279 2002-02-09 Werner LEMBERG <wl@gnu.org>
1281 * doc/gnu.xpm: New image.
1282 * doc/Makefile (DOCS): Add homepage.ps.
1283 Add rules for converting xpm->png and xpm->eps.
1284 Use `gnu.{xpm,eps}' as image names.
1285 * doc/homepage.ms: Updated.
1287 2002-02-09 Gaius Mulley <gaius@glam.ac.uk>
1289 * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
1290 (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
1291 Remove calls to `B1' and `B2'
1292 (PNG-IMAGE): New macro for inclusion of images in PNG format.
1293 (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
1294 auxiliary variables for MARGIN-PNG-IMAGE.
1295 (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
1296 auxiliary macros for MARGIN-PNG-IMAGE.
1297 (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
1299 (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
1300 (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
1301 (DROPCAP): New macro to produce dropcap characters.
1302 (www-do-image): Renamed back to...
1303 (HTML-DO-IMAGE): This.
1304 Updated all callers.
1306 * doc/Makefile (gnubw.eps): Updated.
1307 * doc/homepage.ms: Updated.
1309 2002-02-08 Werner LEMBERG <wl@gnu.org>
1311 * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
1312 Added `linethick' to table in section `Style Variables'.
1314 2002-02-08 Gaius Mulley <gaius@glam.ac.uk>
1316 * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
1318 2002-02-07 Werner LEMBERG <wl@gnu.org>
1320 Adding options -C (compatibility mode) and -c (grotty's old output
1323 * src/roff/nroff/nroff.sh: Implement it.
1325 * NEWS, src/roff/nroff/nroff.man: Updated.
1327 * PROBLEMS: Document bison 1.32 bug.
1329 Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
1331 * src/roff/troff/node.cc (make_tfont): Define it earlier.
1332 * src/roff/troff/div.h: Add prototype for `end_diversions'.
1333 * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
1334 * src/roff/troff/env.h: Add prototype for `title'.
1336 Adding EBCDIC support to grotty.
1338 * src/devices/grotty/tty.cc (CSI): New macro.
1339 (SGR_*, tty_printer::put_color): Use it.
1341 2002-02-06 Werner LEMBERG <wl@gnu.org>
1343 Implementing color support in grotty. The new switch -c activates
1344 the old drawing scheme, disabling color at the same time. The new
1345 switch `-i' selects italic instead of underlining (SGR only).
1347 * src/devices/grotty/tty.cc (putstring): New define instead of
1348 `fputs'. Updated all callers.
1349 (old_drawing_scheme): New global variable.
1350 (COLOR_CHANGE): New enum value.
1351 (SGR_*): New defines containing color handling escape sequences.
1352 (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
1353 (glyph): New members `back_color_idx' and `fore_color_idx'.
1354 (glyph::order): Add COLOR_CHANGE.
1355 (tty_printer): New members `cur_fore_idx', `curr_back_idx',
1356 `is_underline', `is_bold', `cu_flag', `tty_colors'.
1357 New methods `make_underline', `make_bold', `color_to_idx',
1358 `change_color', `put_color'.
1359 (cu_flag): Moved into `tty_printer' class.
1360 (tty_printer::tty_printer): Initialize colors.
1361 (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
1362 tty_printer::draw, tty_printer::end_page): Handle colors also.
1363 (main): Add options `-c' and `-i'.
1365 * NEWS, src/devices/grotty/grotty.man: Updated.
1367 * src/include/errarg.h (errarg): Add support for `unsigned int'.
1368 * src/libs/libgroff/errarg.c: Implement it.
1370 * src/include/printer.h (printer): Add `change_color' method
1371 (currently used by grotty only).
1372 * src/libs/libdriver/printer.cc: Implement it.
1373 * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
1374 call to `pr->change_color'.
1376 * src/roff/troff/node.cc (troff_output_file::fill_color,
1377 troff_output_file::glyph_color): Call `do_motion'.
1379 * tmac/tty.tmac: Add color definitions.
1381 * src/roff/groff/groff.man: Minor fixes.
1383 2002-02-05 Bernd Warken <bwarken@mayn.de>
1385 * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
1386 it. This is a preparation for future changes.
1388 2002-02-05 Werner LEMBERG <wl@gnu.org>
1390 * src/roff/troff/input.cc (process_input_stack): Fix the case
1391 where leading spaces are followed by \f or \s; previously, an
1392 incorrect space width has been used.
1394 * doc/roff.man (quoted_char): Fix argument.
1395 (comment): Define string.
1397 2002-02-04 Larry Kollar <kollar@alltel.net>
1399 * doc/groff.texinfo: More fixes.
1401 2002-02-04 Werner LEMBERG <wl@gnu.org>
1403 * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
1404 * src/preproc/eqn/main.cc (do_file, inline_equation): Call
1405 `restore_compatibility' before `output_string' -- the LINE_STRING
1406 register now already contains proper switches from and to
1409 * man/groff_char.man: Add Euro symbol.
1410 * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
1411 * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
1412 * doc/groff.texinfo (Defstr*): Print strings with full syntax.
1415 * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
1417 (.texinfo.html): Add support for texinfo->html.
1419 2002-02-03 Werner LEMBERG <wl@gnu.org>
1421 Added three new requests `ds1', `as1', and `ami'. The former two
1422 are equivalent to `ds' and `as' with the difference that
1423 compatibility mode is saved on entry, switched off during string
1424 expansion, and restored on exit. The latter is the pendant to `dei'
1427 (do_define_string): Use `define_mode' and `calling mode'.
1428 Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
1429 end of string, respectively.
1430 (define_string, append_string): Use `calling_mode'.
1431 (define_nocomp_string, append_nocomp_string,
1432 define_string_indirect): New functions.
1433 (init_input_requests): Updated.
1434 * NEWS, man/groff_diff.man, man/groff.man: Document it.
1436 * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
1437 `as1' for assigning LINE_STRING (this is `10' usually). Sun's
1438 mm macro package accesses this string register directly.
1439 * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
1441 * tmac/trace.tmac: Trace calls to `am' also. Make it work in
1444 2002-02-02 Larry Kollar <kollar@alltel.net>
1446 * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
1448 2002-01-31 Werner LEMBERG <wl@gnu.org>
1450 * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
1452 2002-01-31 Bernd Warken <bwarken@mayn.de>
1454 * src/devices/grolbp/lbp.cc (main): Delete `pr'.
1455 * man/groff_out.man: Revised and updated.
1457 2002-01-30 Bernd Warken <bwarken@mayn.de>
1459 * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
1460 out the unused `{' and `}' commands. Undefined by default.
1461 (IntArray): Make `data' private.
1462 (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
1463 new methods instead.
1464 (skip_line_D, skip_to_end_of_line): New functions.
1465 (get_D_fixed_args): Use `skip_line_D'.
1466 Changed to handle dummy odd arguments by ...
1467 (get_D_fixed_args_odd_dummy): This new function.
1468 (get_D_variable_args): Split some code into ...
1469 (get_possibly_integer_args): This new function.
1470 (send_draw): Use more `const'.
1471 (delete_current_env): New function.
1472 (position_to_end_of_args): Use `size_t'.
1474 (send_draw): Updated.
1475 (parse_D_command): Handle `c', `C', and `t' better.
1479 2002-01-29 Werner LEMBERG <wl@gnu.org>
1482 * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
1483 @Def...ListEnd which replaces @Def...x. This is necessary to get
1484 proper HTML output -- see the comment in the file for more
1488 2002-01-29 Gaius Mulley <gaius@glam.ac.uk>
1490 Fixes to make color changes of 2002-01-21 work with grohtml.
1492 * src/devices/grohtml/post-html.cc (style): Updated.
1493 (html_printer): Remove unused methods.
1494 (html_printer::do_font, html_printer::draw, html_printer::set_char,
1495 html_printer::special): Updated.
1496 * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
1497 html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
1498 Added some debugging code.
1499 (html_text::start_tag): Updated.
1500 (html_text::do_push): New method.
1501 (html_text::push_para): Call it.
1502 Add method for handling color.
1503 (html_text::do_color): Updated.
1504 (html_text::shutdown): Handle color.
1505 * src/devices/grohtml/html-text.h (tag_definition): New member
1509 2002-01-28 Werner LEMBERG <wl@gnu.org>
1511 * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
1513 2002-01-27 Gaius Mulley <gaius@glam.ac.uk>
1515 Add two switches -a and -g to control the antialiasing bits for
1516 text and graphics, respectively.
1518 * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
1520 * src/devices/grohtml/grohtml.man: Document them.
1521 * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
1523 (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
1524 (setupAntiAlias): New function.
1525 (createAllPages): Updated.
1526 (scanArguments): Handle `-a' and `-g'.
1527 (main): Call `setupAntiAlias'.
1530 2002-01-27 Werner LEMBERG <wl@gnu.org>
1532 * doc/groff.texinfo (Def*): Call index function after deffn.
1534 * tmac/html.tmac: Call `nroff' request.
1536 2002-01-26 Larry Kollar <kollar@alltel.net>
1538 * tmac/groff_ms.man: Add some omissions.
1540 2002-01-25 Larry Kollar <kollar@alltel.net>
1542 * tmac/groff_ms.man: Typographical improvements.
1544 2002-01-25 Werner LEMBERG <wl@gnu.org>
1546 * doc/groff.texinfo: Updated version and copyright.
1547 * src/devices/grops/grops.man: Updated.
1549 * tmac/groff_tmac.man: Fix `ig' macro.
1551 * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
1553 Use `.ne' unconditionally everywhere.
1554 (TS): Only insert some vertical space. Doing a page break is no
1555 longer necessary due to the redefinition of the `ne' request.
1557 * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
1558 warning for unknown subcommands but parse and pass them to the
1561 2002-01-24 Werner LEMBERG <wl@gnu.org>
1563 * tmac/groff_www.man, NEWS: Fix typos.
1565 2002-01-21 Werner LEMBERG <wl@gnu.org>
1567 Complete revision of color support:
1569 Adapt programs to the new libdriver/input.cc.
1571 Color spaces are no longer converted to RGB but transferred as-is
1572 in the troff intermediate output format.
1574 Handle default color gracefully. troff now supports a `default'
1575 color (which can't be changed).
1577 grops will now use the proper color space functions if available.
1581 Note that currently grohtml doesn't handle colors properly. This
1584 * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
1585 (ui_to_a): New function.
1586 * src/include/lib.h: Updated.
1588 * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
1589 (color): Simplified; removed all `double' members and methods.
1590 A new array `components' now holds the color parameters.
1591 (color::is_default, color::get_components): New methods.
1592 (color::operator==, color:operator!=): New.
1593 (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
1594 to make access to the `components' array more comprehensible.
1595 * src/libs/libgroff/color.cc: Implement new color support.
1596 (atoh): Small fixes.
1597 (color::read_encoding): Simplified for new troff intermediate color
1599 (default_color): New global variable.
1601 * src/roff/troff/input.cc (default_symbol): New global variable.
1602 (lookup_color): Use it.
1603 (default_black): Removed.
1604 (do_glyph_color, do_fill_color): Simplified.
1605 (define_color): Handle default color.
1607 (do_if_request): Handle default color.
1608 * src/roff/troff/env.cc (environment::environment): Initialize
1609 colors with `default_color'.
1610 * src/roff/troff/node.cc (troff_output_file::put): Add method
1612 (troff_output_file::hex): Removed.
1613 (troff_output_file::fill_color, troff_output_file::glyph_color):
1614 Updated to include/color.h and libdriver/input.cc.
1616 * src/preproc/pic/object.cc (draw_arrow): New parameter to set
1617 fill color properly (identically to the outline color). \D'f...'
1618 doesn't work any more.
1619 All function calls to it updated.
1621 * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
1623 * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
1626 * src/devices/grops/ps.cc (ps_output::put_color): New method.
1627 (ps_printer::sbuf_color): Make a real member instead of pointer.
1628 (ps_printer::fill_color, ps_printer::output_color): Removed.
1629 (ps_printer::ps_printer): Updated.
1630 (ps_printer::set_char): Ditto.
1631 (ps_printer::set_color): Use various color schemes.
1632 Use `put_color' method.
1633 (ps_printer::flush_sbuf): Don't set color.
1634 (ps_printer::fill_path): Take `environment' as parameter.
1635 Simplify color handling.
1636 (ps_printer::set_line_thickness): Renamed to ...
1637 (ps_printer::set_line_thickness_and_color): This (and updated).
1638 (ps_printer::set_color): Change second parameter from `complete'
1639 to `fill' which better describes what it does.
1640 (ps_printer::draw): Call `flush_sbuf' to output graphic commands
1641 and text in the right order.
1643 Remove branches for `f' and `F'; this is handled by
1645 * src/devices/grops/ps.h: Updated.
1646 * font/devps/prologue (FL): Redefined.
1647 ({F,C}r,k,g: New color functions (with and without filling).
1649 * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
1650 * man/groff_diff.man, man/groff.man, man/groff_out.man,
1651 doc/groff.texinfo, NEWS: Updated.
1653 2002-01-20 Bernd Warken <bwarken@mayn.de>
1655 * src/libs/libdriver/input.cc: Completely rewritten. See comments
1656 in this file for what has been changed.
1658 2002-01-19 Werner LEMBERG <wl@gnu.org>
1660 * test-groff: Fix GROFF_FONT_PATH.
1661 * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
1662 is read before .TH or .Dd is parsed.
1664 2002-01-18 Gaius Mulley <gaius@glam.ac.uk>
1666 * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
1667 quadrant boundaries.
1669 2002-01-18 Werner LEMBERG <wl@gnu.org>
1671 * devices/grops/ps.cc: Aargh! Fix the fix of the incorrectly
1674 2002-01-17 Ruslan Ermilov <ru@FreeBSD.org>
1676 * tmac/doc.common: Initialize %I register for the %I macro to
1677 avoid (harmless) warning.
1678 * tmac/doc.tmac (Bd): There is no reason to enforce -compact
1679 when in the SYNOPSIS section.
1681 2002-01-17 Bruno Haible <haible@clisp.cons.org>
1683 * src/preproc/pic/lex.cc (get_token): Fix typo.
1685 2002-01-17 Werner LEMBERG <wl@gnu.org>
1687 * devices/grops/ps.cc: Fix incorrectly applied last patch.
1689 2002-01-17 Larry Kollar <kollar@alltel.net>
1691 * tmac/groff_ms.man: Completely rewritten.
1693 2002-01-16 Werner LEMBERG <wl@gnu.org>
1695 * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
1697 2002-01-15 Gaius Mulley <gaius@glam.ac.uk>
1699 * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
1701 (ps_printer::draw): Ditto.
1703 2002-01-14 Ruslan Ermilov <ru@FreeBSD.org>
1705 * tmac/groff_mdoc.man: Minor fixes.
1707 2002-01-13 Werner LEMBERG <wl@gnu.org>
1709 * man/groff_out.man: Some fixes.
1711 2002-01-13 Gaius Mulley <gaius@glam.ac.uk>
1713 * doc/pic.ms: Fix typos.
1715 2002-01-12 Werner LEMBERG <wl@gnu.org>
1717 * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
1719 2002-01-10 Werner LEMBERG <wl@gnu.org>
1721 * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
1725 2002-01-09 Bernd Warken <bwarken@mayn.de>
1727 * man/groff_out.man: Revised.
1728 * man/roff.man: Minor fixes.
1729 * src/roff/troff/troff.man: Some reordering.
1731 2002-01-09 Werner LEMBERG <wl@gnu.org>
1733 * tmac/an-old.tmac: Add dummy macros for equation support.
1735 2002-01-07 Werner LEMBERG <wl@gnu.org>
1737 doc/groff.texinfo: Fix documentation of glyph searching algorithm.
1739 * tmac/an-old.tmac: Revert change 2001-12-23. This breaks too many
1741 * tmac/groff_man.man: Small improvements.
1743 2002-01-07 Bernd Warken <bwarken@mayn.de>
1745 * man/groff_diff.man: Revised.
1747 2002-01-06 Werner LEMBERG <wl@gnu.org>
1749 * tmac/www.tmac: Remove extraneous backslash.
1751 2002-01-06 Bernd Warken <bwarken@mayn.de>
1753 * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
1755 2002-01-05 Werner LEMBERG <wl@gnu.org>
1757 Integrated groffer, contributed by Bernd Warken.
1759 * contrib/groffer/*: New.
1760 * Makefile.in, NEWS: Updated.
1762 2002-01-04 Werner LEMBERG <wl@gnu.org>
1764 * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
1765 registers defined in macro packages.
1766 Revising the ms part.
1768 2002-01-04 Larry Kollar <kollar@alltel.net>
1770 * doc/groff.texinfo: Add documentation for ms macros.
1772 2002-01-02 Werner LEMBERG <wl@gnu.org>
1774 First step in adding PS support for the Euro symbol. `eu' is the
1775 official Euro logo, `Eu' is a font-specific glyph variant.
1777 * font/devps/text.enc: Add `Euro' at position 9.
1778 * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
1779 * font/devps/symbolmap: Regenerated.
1783 2002-01-02 Bernd Warken <bwarken@mayn.de>
1785 * man/roff.man: Revised.
1787 2002-01-01 Bernd Warken <bwarken@mayn.de>
1789 * src/roff/groff/groff.man: Completely rewritten.
1791 2001-12-31 Werner LEMBERG <wl@gnu.org>
1793 * doc/Makefile: Updated.
1795 2001-12-30 Werner LEMBERG <wl@gnu.org>
1797 * tmac/www.tmac: Make all names of internal macros/registers/strings
1798 lowercase, and prepend `www-'.
1799 Other minor changes.
1800 * src/roff/troff/troff.man: Add preprocessor string at BOF.
1802 2001-12-30 Gaius Mulley <gaius@glam.ac.uk>
1804 Implement option `-b' in grohtml to set the HTML background colour.
1806 * src/devices/grohtml/post-html.cc (default_background): New global
1808 (html_printer::html_printer): Initialize `background' to
1809 `default_background'.
1810 (main): Implement option `-b'.
1812 * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
1814 * src/devices/grohtml/grohtml.man: Updated.
1815 * doc/Makefile (.ms.html): Use `-b'.
1816 * tmac/html.tmac: Don't set background color.
1818 Add new grohtml tag `.html-tl'.
1820 * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
1822 (title_desc::title_desc): Updated.
1823 (html_printer::troff_tag): Handle `.html-tl'.
1824 (html_printer::write_title): Use `with_h1'.
1825 * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
1826 (HTML-TL): New macro.
1828 Add support for unordered lists in HTML.
1830 * tmac/www.tmac (www-level): New auxiliary register.
1831 (www-level1, www-level2, www-level3): New auxiliary strings.
1832 (www-push-level, www-pop-level): New auxiliary macros
1833 (UL-BEGIN, UL-END, LI): User macros for unordered lists.
1837 * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
1838 (DEFAULT_VERTICAL_OFFSET): Removed.
1839 (IMAGE_BOARDER_PIXELS): Set to 0.
1840 (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
1841 (vertical_offset): Initialize with 0.
1842 (gsPaper): New global variable.
1843 (get_resolution): Scan for and return unsigned int.
1844 (get_papersize): New function to get paper length from devps/DESC.
1845 (determine_vertical_offset): New function.
1846 (createAllPages): Produce gray-level images and use proper page
1848 (createImage): Use `-quiet' option of pnmcrop.
1849 (addZ): Fix passing of `-Z'.
1850 (scanArguments): Fix handling of `-o'.
1851 (main): Call `determine_vertical_offset'.
1852 * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
1855 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
1856 * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
1857 glyph descenders properly.
1859 * doc/homepage.ms: Include `gnubw.eps'.
1860 * doc/Makefile (gnubw.eps): New rule.
1861 (homepage.html): Depend on `gnubw.eps'.
1863 2001-12-25 Werner LEMBERG <wl@gnu.org>
1865 * src/roff/troff/input.cc (default_black): Fix return value.
1867 2001-12-24 Ruslan Ermilov <ru@FreeBSD.org>
1869 * tmac/doc-common (Dt): Change output of architecture strings.
1870 Do some syntax cleanup.
1871 * tmac/groff_mdoc.man: Updated.
1873 2001-12-23 Werner LEMBERG <wl@gnu.org>
1875 Adding an `itc' request (input line trap accepting \c).
1877 * src/roff/troff/env.h (environment): New member
1878 `continued_input_trap'.
1879 Make `do_input_trap' a friend function instead of `input_trap'.
1880 * src/roff/troff/env.cc (environment::environment,
1881 environment::copy): Updated.
1882 (environment::newline): Implement it.
1883 (do_input_trap): New function.
1884 (input_trap): Call `do_input_trap'.
1885 (input_trap_continued): New function.
1886 (init_env_requests): Updated.
1887 * src/roff/troff/TODO: Updated.
1889 * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
1892 * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
1894 2001-12-22 Ruslan Ermilov <ru@FreeBSD.org>
1896 * tmac/doc-common, tmac/doc-syms: Small updates.
1898 2001-12-22 Colin Watson <cjwatson@debian.org>
1900 * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
1902 2001-12-22 Bernd Warken <bwarken@mayn.de>
1904 * MANIFEST: New file.
1906 2001-12-22 Werner LEMBERG <wl@gnu.org>
1908 * src/preproc/grn/grn.man: Updated.
1910 2001-12-22 Solar Designer <solar@openwall.com>
1912 * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
1915 2001-12-19 Werner LEMBERG <wl@gnu.org>
1917 Implement a fallback character request `.fchar'.
1919 * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
1920 (is_fallback): New inline function.
1921 * src/roff/troff/input.cc (do_define_character): New function.
1922 (define_character): Call `do_define_character'.
1923 (define_fallback_character): New function.
1924 (init_input_requests): Add `fchar'.
1925 (charinfo::charinfo): Updated.
1926 (charinfo::set_macro): New argument to set `fallback' flag.
1927 * src/roff/troff/node.cc (make_glyph_node, make_node,
1928 node::add_char): Check `fallback' flag.
1929 * NEWS, man/groff_diff.man, man/groff_man: Updated.
1931 2001-12-16 Werner LEMBERG <wl@gnu.org>
1933 * groff.texinfo: Document exact search algorithm for glyphs.
1935 2001-12-15 Werner LEMBERG <wl@gnu.org>
1937 * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
1938 the left side of $(MANPAGES) rule to make it always non-empty.
1940 2001-12-14 Werner LEMBERG <wl@gnu.org>
1942 * src/roff/troff/input.cc (default_black): Define default color
1943 `black' if not yet defined.
1945 2001-12-13 Werner LEMBERG <wl@gnu.org>
1947 Implement new string-valued register `.fn' to return the current
1948 real (internal) font name.
1950 * env.cc (environment::get_font_name_string): New function.
1951 (init_env_requests): Add `.fn' register.
1952 * env.h (environment): Updated.
1953 * node.cc (font_info): Make `get_font_name' a friend.
1954 (get_font_name): New function.
1957 * man/groff_diff.man, man/groff.man, NEWS: Updated.
1959 2001-12-12 Ralph Corderoy <ralph@inputplus.demon.co.uk>
1961 * src/preproc/eqn/main.cc (inline_equation): Fix typos.
1963 2001-12-12 Werner LEMBERG <wl@gnu.org>
1965 * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
1967 2001-12-10 Gaius Mulley <gaius@glam.ac.uk>
1969 * man/groff_diff.man: Adding documentation for \O.
1971 2001-12-10 Werner LEMBERG <wl@gnu.org>
1973 * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
1974 (scanArguments): Use PROG_PREFIX for the name of the troff binary.
1976 2001-12-09 Werner LEMBERG <wl@gnu.org>
1978 * man/roff.man: Revised.
1979 * src/roff/groff/groff.man: Replace man page references with a
1980 pointer to roff.man.
1982 2001-12-09 Bernd Warken <bwarken@mayn.de>
1984 * man/roff.man: Completely rewritten.
1986 2001-12-06 Ralph Corderoy <ralph@inputplus.demon.co.uk>
1988 * src/preproc/eqn/main.cc (inline_equation): Improve error message.
1990 2001-12-05 Werner LEMBERG <wl@gnu.org>
1992 * src/roff/troff/input.cc (get_delim_file_name): Removed since no
1994 * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
1995 order of initializers.
1998 2001-12-05 Gaius Mulley <gaius@glam.ac.uk>
2000 * doc/groff.texinfo: Fix documentation of \O.
2002 * src/devices/grohtml/html-text.cc (html_text::do_indent,
2003 html_text::do_table, html_text::do_emittext, html_text::do_para):
2004 Use `const' for first argument.
2005 (html_text::do_table): Use cast.
2006 * src/devices/grohtml/html-text.h: Updated.
2007 * src/devices/grohtml/output.cc (simple_output::put_string): Add
2008 method for `const string &s'.
2009 * src/devices/grohtml/html.h: Updated.
2010 * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
2011 (ANCHOR_TEMPLATE): Modified.
2012 (manufacture_headings): New global variable to handle `-h' option.
2013 (is_subsection): Removed.
2014 (char_buffer::add_string): Add `const' to first argument.
2015 Protect against invalid string argument.
2016 Add method for `const string &s'.
2017 (text_glob): Completely redesigned.
2018 (page): Use `const' for strings and remove string length variable.
2019 (page::add_html): Removed.
2020 (page::add_end_encode): New member function.
2021 (to_unicode): Moved upwards.
2022 (title_desc, header_desc): Updated.
2023 (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
2025 (html_printer::is_bold, html_printer::make_bold): New member
2027 (html_printer::end_of_line): Updated.
2028 (generate_img_src, html_printer::do_auto_image,
2029 html_printer::do_title, html_printer::write_header,
2030 html_printer::determine_header_level, html_printer::do_heading,
2031 html_printer::do_linelength, html_printer::do_pageoffset,
2032 html_printer::do_indentation, html_printer::do_tempindent,
2033 html_printer::do_indentedparagraph, html_printer::do_break,
2034 html_printer::flush_sbuf, get_html_translation,
2035 html_printer::begin_page, html_printer::special): Rewritten to get
2036 rid of static string length limit.
2037 (html_printer::troff_tag): Added `.no-auto-rule'.
2038 (html_printer::flush_globs): Small fix.
2039 (html_printer::determine_space): Don't compute `space_width'.
2040 (html_printer::translate_to_html): Renamed to ...
2041 (html_printer::emit_html): This (with updates).
2042 (html_printer::write_header): Implement `-h' option.
2043 (html_printer::draw): Remove commented-out code. Handle `F'
2045 (html_printer::add_char_to_sbuf): Removed.
2046 (html_printer::add_to_sbuf): Rewritten.
2047 (html_printer::sbuf_continuation): Fixed.
2048 (html_printer::seen_backwards_escape, reverse,
2049 html_printer::remove_last_char_from_sbuf): Removed.
2050 (char_translate_to_html, str_translate_to_html): Removed.
2051 (html_printer::overstrike): New function member.
2052 (html_printer::set_char): Use it.
2053 (html_printer::do_body): New function member.
2054 (html_printer::~html_printer): Use it.
2055 (main): Handle `-h' option.
2057 * src/devices/grohtml/grohtml.man: Document -h switch.
2059 * src/preproc/html/pre-html.cc: Include searchpath.h
2060 Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
2061 (get_resolution): New function.
2062 (checkImageDir): Use `0777' permissions in mkdir()
2063 (write_start_image): Rewritten to use `\O[5...]'.
2064 (createImage, generateImages): Updated.
2065 (main): Handle `F' and `h' options.
2066 Use `get_resolution'.
2068 * src/roff/troff/input.cc (begin, end, image): Removed.
2069 (do_suppress): Take parameter.
2070 Handle modified syntax of `\O'.
2071 (token::next): Updated.
2072 (init_markup_requests): Removed.
2075 * src/roff/troff/div.h: Add declaration for begin_page().
2077 * tmac/color-html.tmac: Removed. Contents moved to...
2078 * tmac/html.tmac: Here. Set background color.
2079 * tmac/color.tmac: Removed. Contents moved to...
2080 * tmac/ps.tmac: Here.
2081 * tmac/www.tmac: Remove the title command when generating images
2083 (NO_AUTO_RULE): New macro.
2084 (HTML_DO_IMAGE): Use revised `\O' escapes.
2085 * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
2087 2001-12-02 Werner LEMBERG <wl@gnu.org>
2089 * tmac/groff_mdoc.man: Fix typo.
2091 2001-12-01 Colin Watson <cjwatson@debian.org>
2093 * man/roff.man: Fix typo.
2095 2001-11-29 Werner LEMBERG <wl@gnu.org>
2097 * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
2100 * src/roff/troff/input.cc (read_draw_node): Emit error message if
2101 more than one argument to \D'f ...'.
2103 * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
2105 2001-11-28 Werner LEMBERG <wl@gnu.org>
2107 * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
2110 * tmac/groff_man.man: Minor cosmetic fix.
2112 2001-11-27 Werner LEMBERG <wl@gnu.org>
2114 * src/roff/groff/groff.man, tmac/groff_tmac.man,
2115 tmac/groff_www.man: s/mwww/www/.
2117 2001-11-26 Werner LEMBERG <wl@gnu.org>
2119 * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
2120 * configure: Regenerated.
2121 * win32-diffs: Updated.
2123 * tmac/groff_mwww.tmac: Renamed to ...
2124 * tmac/groff_www.tmac: This.
2125 * tmac/mwww.tmac: Removed.
2126 * NEWS, tmac/Makefile.sub: Updated.
2128 2001-11-21 Werner LEMBERG <wl@gnu.org>
2130 * doc/groff.texinfo: Improve documentation of the `\v' escape.
2131 Fix explanation of `\D' and `rt'.
2133 2001-11-20 Werner LEMBERG <wl@gnu.org>
2135 * tmac/an-old.tmac (an-header): Set header length equal to page
2137 * doc/groff.texinfo: Improve documentation of `ne' request. Other
2141 2001-11-19 Werner LEMBERG <wl@gnu.org>
2143 * NEWS, man/Makefile.sub: Updated.
2145 2001-11-19 Bernd Warken <bwarken@mayn.de>
2147 * man/ditroff.man: New file.
2149 2001-11-17 Werner LEMBERG <wl@gnu.org>
2151 * man/groff_differences.man: Renamed to ...
2152 * man/groff_diff.man: This. Updated.
2153 * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
2155 * src/preproc/html/pushbackbuffer.cc: Renamed to ...
2156 * src/preproc/html/pushback.cc: This. Updated.
2157 * src/preproc/html/pushbackbuffer.h: Renamed to ...
2158 * src/preproc/html/pushback.h: This.
2159 * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
2162 * src/libs/libgroff/htmlindicate.cc: Renamed to ...
2163 * src/libs/libgroff/htmlhint.cc: This.
2164 * src/libs/libgroff/Makefile.sub: Updated.
2166 * tmac/an-old.tmac (an-end): Fix page length.
2168 2001-11-16 Werner LEMBERG <wl@gnu.org>
2170 * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
2171 * man/Makefile.sub: Include groff_differences.man.
2172 * VERSION: Set to 1.18.
2173 * REVISION: Set to 0.
2175 2001-11-16 Bernd Warken <bwarken@mayn.de>
2177 * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
2178 the second dot (or ending macro name) to end a macro.
2179 * doc/groff.texinfo: Doc fix.
2181 2001-11-16 Ruslan Ermilov <ru@FreeBSD.org>
2183 * tmac/doc-common (doc-header): Handle very long document titles
2186 2001-11-16 Werner LEMBERG <wl@gnu.org>
2188 * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
2190 2001-11-15 Werner LEMBERG <wl@gnu.org>
2192 * src/roff/troff/troff.man: Revised and split into troff.man and...
2193 * man/groff_differences.man: New file.
2196 2001-11-13 Werner LEMBERG <wl@gnu.org>
2198 * tmac/an-old.tmac (TS, TE): New macros for table support.
2200 2001-11-12 Werner LEMBERG <wl@gnu.org>
2202 * src/include/lib.h: Provide a fix for emx to not include
2205 2001-10-27 Werner LEMBERG <wl@gnu.org>
2207 * src/roff/troff/input.cc (substring_macro): Fix computation of
2210 2001-10-20 Werner LEMBERG <wl@gnu.org>
2212 Undo change from 2001-08-28.
2214 * src/roff/troff/input.cc (have_input): New global variable.
2215 (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
2216 in compatibility mode.
2217 (process_input_stack): Use it.
2219 2001-10-19 Ruslan Ermilov <ru@FreeBSD.org>
2221 * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
2222 being handled as end-of-sentence characters,
2224 2001-10-10 Gaius Mulley <gaius@glam.ac.uk>
2226 * src/roff/troff/input.cc (file_iterator): New members
2227 `suppress_newline_flag' and `seen_escape'.
2228 (file_iterator::next_file): Updated.
2229 (file_iterator::fill): Use it.
2230 (string_iterator): New member `suppress_newline_flag'.
2231 (string_iterator::fill): Set it.
2232 (get_color_element): Use MAX_COLOR_VAL.
2233 * src/roff/troff/env.cc (environment): Remove `need_eol'.
2234 (no_fill): Don't set `env->ignore_next_eol'.
2235 (environment::newline): Handle `eol' tag properly.
2237 (environment::add_html_tag): Set `env->ignore_next_eol'.
2239 * src/roff/troff/env.h (environment): Updated.
2241 * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
2243 (html_printer::outstanding_eol): New member function.
2244 (html_printer::do_title): Use new functions.
2245 (html_printer::troff_tag): Test `id_eol_ce'.
2247 2001-10-10 Werner LEMBERG <wl@gnu.org>
2249 * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
2250 files work with -C also.
2252 2001-10-05 Werner LEMBERG <wl@gnu.org>
2254 * doc/pic.ms: Minor fix.
2255 * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
2256 as a valid command line switch.
2257 * src/devices/grohtml/post-html.cc (main): Ditto.
2259 * src/devices/grohtml/grohtml.man: Updated.
2260 * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
2262 2001-10-04 Werner LEMBERG <wl@gnu.org>
2264 Implementing color support in troff, pic, grops, and grohtml. These
2265 changes are based on a major patch provided by Gaius Mulley
2268 New request: `defcolor', supporting rgb, cmy, cmyk, and gray
2269 definitions with both hex values and fractions.
2271 New escapes: \m and \M for drawing and background color,
2272 respectively. This corresponds to the troff output commands `m'
2275 groff and troff accept command line switch `-c' to disable color
2276 output (which is automatically disabled in compatibility mode).
2278 New scaling indicator `f' for fractions (1f = 65536u).
2280 New conditional operator `m' to test for defined colors with `if'
2283 New keywords `color' (or `colour', `colored', `coloured'), `outline'
2284 (or `outlined'), and `shaded' added to pic.
2286 * src/include/color.h: New file.
2287 * src/include/driver.h: Include it.
2288 * src/include/printer.h: Include color.h.
2289 (environment): New members `col' and `fill'.
2290 (printer): Remove `adjust_arc_center' member function.
2291 * src/include/Makefile.sub: Updated.
2293 * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
2295 Handle `m' and `DF' troff commands.
2296 * src/libs/libgroff/color.cc: New file.
2297 * src/libs/libgroff/Makefile.sub: Updated.
2299 * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
2301 (createImage): Fix computation of `y2'.
2303 (buffer::write_file_html): Remove calls to `stop'.
2305 * src/preproc/pic/common.h (common_output): New abstract function
2306 members `set_color', `reset_color', `get_last_filled', and
2307 `get_outline_color'.
2308 * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
2309 (object_spec): Add members `shaded' and `outlined'.
2310 * src/preproc/pic/output.h (output): `command' is now abstract.
2311 New function members `set_color', `reset_color', `get_last_filled',
2312 and `get_outline_color'.
2313 * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
2314 `outline[d]', and `shaded'.
2315 * src/preproc/pic/object.cc (output::command): Removed.
2316 (output::set_location): Moved to output.h.
2317 (graphic_object): Add protected members `outline_color' and
2319 Add member functions `set_outline_color', `get_outline_color', and
2321 (closed_object): Add member function `set_fill_color'.
2322 Add member `color_fill'.
2323 (graphic_object::print_text): Use `out->set_color' and
2325 (box_object::print, ellipse_object::print, circle_object::print,
2326 line_object::print, spline_object::print, arc_object::print): Ditto.
2327 (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
2328 * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
2329 `SHADED', making them `%left'.
2330 Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
2331 * src/preproc/pic/tex.cc (tex_output): New dummy function members
2332 `set_color', `reset_color', `get_last_filled', and
2333 `get_outline_color'.
2334 * src/preproc/pic/troff.cc (simple_output): New abstract function
2335 members `set_color', `reset_color', and `get_last_filled'.
2336 (simple_output::polygon, simple_output::circle,
2337 simple_output::ellipse): Use `get_last_filled'.
2338 (troff_output): New members `last_filled' and `last_outlined'.
2339 New function members `set_color', `reset_color', `get_last_filled',
2340 and `get_outline_color'.
2341 (troff_output::finish_picture): Use `reset_color'.
2342 (troff_output::set_fill): Test `last_filled'.
2343 * src/preproc/pic/pic.man: Updated.
2345 * src/roff/groff/groff.cc (main): Implement `-c' option.
2346 (synopsis, help): Updated.
2347 src/roff/groff/groff.man: Updated.
2349 * src/roff/troff/troff.h: Include color.h.
2350 (warning_type): Add WARN_COLOR.
2351 * src/roff/troff/env.h (environment): New members
2352 `{cur,prev}_{glyph,fill}_color'.
2353 New member functions `get_{prev_,}{glyph,fill}_color'.
2354 * src/roff/troff/env.cc: Initialize and implement them.
2355 * src/roff/troff/input.cc: New global variable `disable_color_flag'.
2356 Replace `NULL' with `0' everywhere for consistency.
2357 (lookup_color, default_black, do_glyph_color, do_fill_color,
2358 get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
2359 define_color): New functions.
2360 (token::next): Implement \M and \m escapes.
2361 (do_if_request): Implement `m' operator.
2363 (main): Implement `-c' option.
2364 (init_markup_requests): Add `defcolor' request.
2365 (warning_table): Add `color' warning.
2366 * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
2368 * src/roff/troff/node.cc (troff_output_file): New members
2369 `current_{page,glyph}color'. New member functions `put_hex',
2370 `glyph_color', and `fill_color'.
2371 (glyph_color_node::*, fill_color_node::*): Implement it.
2372 * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
2373 (parse_term): Add support for `f'.
2374 * src/roff/troff/troff.man: Updated.
2376 * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
2378 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
2379 * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
2381 * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
2382 (tag_definition): Use `void *' for arg1.
2383 (html_text): New member functions `do_color' and `done_color'.
2384 Use `void *' for second parameter of `push_para' member function.
2385 New `push_para' member function with a single parameter.
2386 Use `char *' for parameter of `issue_table_begin' member funtion.
2387 New `issue_color_begin' member function.
2388 * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
2390 (html_text::issue_color_begin): New function.
2391 (html_text::issue_table_begin): Use `char *' for parameter.
2392 (html_text::start_tag, html_text::shutdown,
2393 html_text::check_emit_text): Updated.
2394 (html_text::push_para): Use `void *' for second parameter.
2395 Add same function with only one parameter.
2396 (html_text::do_*): Updated.
2397 (html_text::do_color, html_text::done_color): New functions.
2398 * src/devices/grohtml/post-html.cc (style): New member `col'.
2399 Mew member `style' with 6 parameters.
2400 (style::style, style::operator==): Updated.
2401 (html_printer::do_font): Use it.
2402 (html_printer::draw): Add dummy entry for `F'.
2403 (html_printer::set_char): Updated.
2404 * src/devices/grohtml/grohtml.man: Updated.
2406 * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
2407 trailing zeroes removed.
2408 (ps_printer): New members `sbuf_color', `fill_color', and
2410 Removed member `fill'.
2411 New member function `set_color'.
2412 (ps_printer::ps_printer, ps_printer::set_char): Updated.
2413 (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
2414 ps_printer::fill_path, ps_printer::draw): Use `set_color'.
2416 * tmac/color-html.tmac, tmac/color.tmac: New files.
2417 * tmac/troffrc: Include them.
2418 * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
2419 * tmac/Makefile.sub: Updated.
2421 * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
2422 man/groff.man: Updated.
2423 * font/devps/prologue.ps: Define FC and CO functions.
2425 2001-10-04 Gaius Mulley <gaius@glam.ac.uk>
2427 Fix incorrect cropping of images and incorrect handling of special
2428 characters. Fix handling of file names in \O.
2430 * src/include/geometry.h: New file.
2431 * src/libs/libgroff/geometry.cc: New file.
2432 * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
2434 * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
2436 (do_suppress): Updated.
2437 * src/roff/troff/node.cc: Include geometry.h.
2438 (troff_output_file::flush_tbuf): Fixed parameters to
2439 `check_output_limits'.
2440 (troff_output_file::check_charinfo): Ditto.
2441 (troff_output_file::determine_line_limits): Add support for `Da'
2444 * src/devices/grohtml/post-html.cc (str_translate_to_html):
2445 Add new parameter `is_special' to decode special characters from
2447 (html_printer::do_title, html_printer::do_heading,
2448 html_printer::do_indentedparagraph,
2449 html_printer::translate_to_html, html_printer::special): Updated.
2451 2001-10-03 Werner LEMBERG <wl@gnu.org>
2453 * Makefile.sub (DISTCLEANFILES): Add stamp-h.
2454 Fix entry for config.h.
2455 * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
2456 * tmac/troffrc: Translate nonbreakable space character to `\~'.
2457 * src/preproc/eqn/eqn.man: Document -d command line option.
2459 2001-09-27 Werner LEMBERG <wl@gnu.org>
2461 * man/groff.man: Use
2469 instead of the old code (`.ad .hy' after the table) to suppress
2470 incorrect hyphenation for grohtml output.
2472 2001-09-22 Werner LEMBERG <wl@gnu.org>
2474 * man/groff_font.man, man/groff_out.man: Minor fixes.
2476 2001-09-20 Werner LEMBERG <wl@gnu.org>
2478 * PROBLEMS: Updated, reordered. Improved EPS section (thanks to
2479 Arnold Robbins <arnold@skeeve.com>).
2481 2001-09-09 Werner LEMBERG <wl@gnu.org>
2483 * configure: Regenerated with autoconf 2.52.
2485 * doc/groff.texinfo: Complete revision of indices.
2487 2001-09-07 Werner LEMBERG <wl@gnu.org>
2489 * doc/Makefile (clean): Updated to delete all indices.
2491 2001-09-05 Werner LEMBERG <wl@gnu.org>
2493 * src/roff/troff/troff.man: Remove superfluous line.
2495 * tmac/s.tmac: Enable all warnings only if no -W or -w option is
2496 given on the command line (or rather, if only the default warnings
2499 2001-09-03 Werner LEMBERG <wl@gnu.org>
2501 * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
2502 use .ne for TTY devices.
2504 2001-08-31 Werner LEMBERG <wl@gnu.org>
2506 * src/roff/troff/token.h, src/roff/troff/input.cc:
2507 s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
2509 2001-08-28 Werner LEMBERG <wl@gnu.org>
2511 * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
2512 * src/roff/troff/input.cc (token::next): Return
2513 TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
2515 (token::description): Updated.
2516 (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
2517 (token::add_to_node_list, token::process): Ignore
2518 TOKEN_TRANSPARENT_ESCAPE.
2520 2001-08-27 Werner LEMBERG <wl@gnu.org>
2522 * tmac/an-old.tmac: Fix `S' string.
2524 2001-08-26 Werner LEMBERG <wl@gnu.org>
2526 * src/roff/troff/troff.man: Don't use .ne for TTY devices.
2528 2001-08-25 Werner LEMBERG <wl@gnu.org>
2530 * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
2532 Many other minor fixes.
2534 * configure.ac: Add message at end to inform how to compile
2536 * configure: Regenerated.
2538 2001-08-24 Werner LEMBERG <wl@gnu.org>
2540 * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
2541 Updated to latest version of libc.
2543 2001-08-23 Werner LEMBERG <wl@gnu.org>
2545 * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
2546 Autoconf 2.50 and newer can handle this.
2547 * configure: Regenerated.
2549 2001-08-21 Werner LEMBERG <wl@gnu.org>
2551 * doc/pic.ms: Fix typo.
2552 * src/preproc/tbl/tbl.man: Document case of global options.
2554 2001-08-21 Gaius Mulley <gaius@glam.ac.uk>
2556 * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
2557 handling of `CR' font.
2559 2001-08-20 Werner LEMBERG <wl@gnu.org>
2561 Use a config.h file.
2563 * src/include/lib.h: Include config.h.
2564 * All C files: Ditto (if necessary).
2565 * All C++ source and header files: Include lib.h first (if
2568 * src/include/config.hin: New file (autogenerated by autoheader).
2569 * stamp-h.in: New file.
2570 * configure.ac: Updated.
2571 * aclocal.m4: Add third parameters to AC_DEFINE macros.
2572 (GROFF_ARRAY_DELETE): Simplified.
2573 * Makefile.sub (DISTCLEANFILES): Updated.
2574 Added targets for remaking config.status, config.hin, config.h,
2575 stamp-h.in, and stamp-h.
2576 * configure: Regenerated.
2578 2001-08-19 Werner LEMBERG <wl@gnu.org>
2582 2001-08-18 Sebastian Krahmer <krahmer@suse.de>
2584 * src/preproc/pic/pic.y (format_number): Use do_sprintf().
2585 (do_sprintf): Use snprintf().
2587 2001-08-18 Werner LEMBERG <wl@gnu.org>
2589 * src/libs/snprintf/*: Added an snprintf module written by Mark
2591 * src/libs/libgroff/Makefile.sub: Updated.
2592 * configure.ac: Add test for snprintf().
2593 * Makefile.in: Updated.
2594 * configure: Regenerated.
2596 * src/preproc/html/pre-html.cc (make_message): Reactivate code which
2599 2001-08-14 Ruslan Ermilov <ru@FreeBSD.org>
2601 * tmac/doc.tmac (Ex): New implementation.
2602 * tmac/doc-common, tmac/groff_tmac.man: Updated.
2604 2001-08-13 Ruslan Ermilov <ru@FreeBSD.org>
2606 * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
2608 * tmac/groff_tmac.man: Updated.
2610 2001-08-13 Werner LEMBERG <wl@gnu.org>
2612 * src/preproc/tbl/tbl.man: Minor documentation update.
2614 2001-08-13 John David Anglin <dave@hiauly1.hia.nrc.ca>
2616 * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
2617 * configure.ac: Add declaration test for gettimeofday().
2618 * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
2619 * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
2620 * configure: Regenerated.
2622 2001-08-11 Werner LEMBERG <wl@gnu.org>
2624 * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
2625 * configure.ac: Add declaration test for strcasecmp().
2626 * Makefile.in: Updated.
2627 * configure: Regenerated.
2628 * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
2629 this is necessary because groff's mkstemp.cc is C++.
2630 Add declaration conditionally for strcasecmp().
2632 2001-08-10 Werner LEMBERG <wl@gnu.org>
2634 Integrated pic2graph, contributed by Eric S. Raymond.
2636 * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
2638 * Makefile.in, NEWS: Updated.
2640 * src/preproc/tbl/tbl.man: Revised.
2642 2001-08-09 Eric S. Raymond <esr@thyrsus.com>
2644 * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
2646 2001-08-09 Werner LEMBERG <wl@gnu.org>
2648 * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
2651 2001-08-08 Paul Eggert <eggert@twinsun.com>
2653 * Makefile.sub (configure): Depend on configure.ac, not
2655 * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
2657 2001-08-07 Werner LEMBERG <wl@gnu.org>
2659 * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
2662 2001-08-06 Werner LEMBERG <wl@gnu.org>
2664 * src/roff/troff/troff.man: Improve documentation of -E option.
2666 2001-07-28 Ralph Corderoy <ralph@inputplus.demon.co.uk>
2668 * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
2671 2001-07-27 Werner LEMBERG <wl@gnu.org>
2673 * src/preproc/refer/refer.cc: Undo last change.
2674 * src/devices/grohtml/post-html.cc: Ditto.
2676 2001-07-26 Werner LEMBERG <wl@gnu.org>
2678 * src/preproc/refer/refer.cc: Include `lib.h'.
2679 * src/devices/grohtml/post-html.cc: Ditto.
2681 2001-07-25 Gaius Mulley <gaius@glam.ac.uk>
2683 * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
2684 * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
2685 * Makefile.in: Comment updated.
2686 * configure: Regenerated.
2688 2001-07-25 Werner LEMBERG <wl@gnu.org>
2690 * src/preproc/pic/pic.cc: Removed.
2691 * src/preproc/pic/pic_tab.h: Removed.
2692 * src/preproc/refer/label.cc: Removed.
2694 * doc/Makefile (.ms.html): Don't use a file name extension in
2695 argument to grohtml's -I option.
2696 * Makefile.in (dist): Remove CVS directories.
2697 Call `distfiles' target.
2699 * src/devices/grohtml/grohtml.man: Add information about valid
2700 versions of pnmtopng.
2701 * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
2702 name instead of number.
2704 2001-07-24 Werner LEMBERG <wl@gnu.org>
2706 * doc/groff.texinfo: Minor fixes.
2708 2001-07-21 Gaius Mulley <gaius@glam.ac.uk>
2710 * doc/Makefile (.ms.html): Put image files into a subdirectory.
2713 2001-07-20 Werner LEMBERG <wl@gnu.org>
2715 * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
2716 * src/libs/libgroff/mkstemp.cc: New file.
2717 * src/libs/libgroff/mksdir.cc: New file.
2718 * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
2719 (xtmpfile) [!HAVE_MKSTEMP]: Removed.
2720 * src/libs/libgroff/Makefile.sub: Updated.
2721 * src/include/lib.h: Add mksdir() prototype.
2722 * src/include/posix.h: Define S_IXUSR if not yet defined.
2724 * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
2725 (createAllPages): Use mksdir() instead of current code.
2726 * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
2727 (main): [!HAVE_MKSTEMP]: Removed.
2729 * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
2730 (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
2732 * configure.ac: Add tests for stdint.h, sys/time.h, and
2734 Call new GROFF_xxx macros.
2735 * configure: Regenerated.
2736 * Makefile.in: Comments updated.
2738 2001-07-20 Gaius Mulley <gaius@glam.ac.uk>
2740 * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
2741 instead of current code.
2742 * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
2743 * src/roff/groff/groff.cc (possible_command::insert_args): New
2745 (main): Use it for predriver handling instead of insert_arg().
2747 2001-07-19 Werner LEMBERG <wl@gnu.org>
2749 * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
2752 * src/include/posix.h: Define S_IWUSR if not yet defined.
2754 2001-07-18 Werner LEMBERG <wl@gnu.org>
2758 2001-07-18 Ruslan Ermilov <ru@FreeBSD.org>
2760 * tmac/groff_mdoc.man: Document new -width and -column syntax.
2761 Some other minor fixes.
2762 * tmac/an-old.tmac: Add `AT' and `UC' macros.
2764 2001-07-17 Gaius Mulley <gaius@glam.ac.uk>
2766 Replace call to `troff' with `groff -Z' to make it aware of
2769 * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
2770 (troff_command, command_prefix): Removed.
2771 (alterDeviceTo): Use groff.
2772 (addZ): New function.
2773 (char_buffer::do_html): Use it.
2774 (scanArguments): Use TROFF_COMMAND.
2775 (findPrefix): Removed.
2777 * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
2779 2001-07-17 Eric S. Raymond <esr@snark.thyrsus.com>
2781 * doc/pic.ms: Documentation fixes.
2783 2001-07-17 Werner LEMBERG <wl@gnu.org>
2785 Replace atexit() with global destructor.
2787 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
2788 (xtmpfile_list_init): New global structure to deallocate
2789 xtmpfile_list on exit. Its destructor inherits most code from
2791 (remove_tmp_files): Deleted.
2792 (add_tmp_file): Simplified.
2794 2001-07-16 Werner LEMBERG <wl@gnu.org>
2796 Replace strdup() with strsave().
2798 * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
2799 (set_papersize): Use strsave() and a_delete.
2800 (main): Use strsave().
2801 * src/preproc/html/pre-html.cc (make_message, createAllPages,
2802 removeAllPages): Use strsave() and a_delete.
2804 * configure.ac: Remove test for strdup.
2805 * Makefile.in: Comment updated.
2806 * configure: Regenerated.
2808 2001-07-15 Werner LEMBERG <wl@gnu.org>
2810 * win32-diffs: Updated.
2812 2001-07-14 Werner LEMBERG <wl@gnu.org>
2814 * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
2815 removing the old one.
2816 * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
2818 2001-07-14 Ralph Corderoy <ralph@inputplus.demon.co.uk>
2820 * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
2822 2001-07-12 Ruslan Ermilov <ru@FreeBSD.org>
2824 Merge -xwidth into -width. Add -xwidth functionality to -column
2827 * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
2829 (doc-do-Bl-args): Merge -xwidth code with -width. Test whether
2830 string immediately following a leading dot starts with a valid mdoc
2832 Add similar code to the -column branch.
2833 (doc-Bl-usage): Updated.
2834 * groff_mdoc.man: s/-xwidth/-width/.
2836 2001-07-12 Gaius Mulley <gaius@glam.ac.uk>
2838 * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
2839 running into centered or non-formatted text.
2841 2001-07-11 Werner LEMBERG <wl@gnu.org>
2843 Introduce short and long prefixes to have the selection at run-time
2844 whether there is a 8+3 limit for names of temporary files.
2846 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
2847 (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
2848 (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
2850 (temp_init): New global structure to initialize above three
2852 (xtmptemplate): Use two parameters for long and short prefix.
2853 Simplify code use above three variables.
2854 (xtmpfile): Use long and short prefixes as parameters.
2855 * src/include/lib.h: Updated.
2857 * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
2859 ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
2860 (createAllPages, makeTempFiles): Updated.
2862 2001-07-09 Werner LEMBERG <wl@gnu.org>
2864 * REVISION: Increased to 3.
2866 Version 1.17.2 released
2867 =======================
2869 2001-07-07 Werner LEMBERG <wl@gnu.org>
2871 * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
2874 2001-07-06 Ruslan Ermilov <ru@FreeBSD.org>
2876 * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
2878 * tmac/groff_mdoc.man: Fix synopsis.
2880 2001-07-05 Ruslan Ermilov <ru@FreeBSD.org>
2882 * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
2883 Restore `doc-Pa-font'.
2885 2001-07-04 Werner LEMBERG <wl@gnu.org>
2887 * src/utils/indxbib/dirnamemax.c: Moved to ...
2888 * src/libs/libgroff/maxfilename.cc: Here.
2889 s/dir_name_max/file_name_max/.
2891 * src/include/lib.h: Add file_name_max.
2892 * src/utils/indxbib/indxbib.cc: Updated.
2893 * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
2896 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
2898 (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
2900 * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
2901 REGION_TEMPLATE): New macros.
2902 (createAllPages, makeTempFiles): Use them.
2903 Include `nonposix.h'.
2904 (html_system): New function.
2905 (createAllPages, createImage): Use it.
2908 * tmac/www.tmac: Fix typos.
2910 2001-07-03 Werner LEMBERG <wl@gnu.org>
2912 * tmac/www.tmac: Disable hyphenation in normal text only if output
2914 (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
2915 * tmac/groff_mwww.man, NEWS: Updated.
2917 2001-07-03 Gaius Mulley <gaius@glam.ac.uk>
2919 * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
2922 2001-07-02 Ruslan Ermilov <ru@FreeBSD.org>
2924 * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
2925 doc-display-ps-stack): Implement font and font size stack for
2928 2001-07-02 Werner LEMBERG <wl@gnu.org>
2930 * REVISION: Increased to 2.
2931 * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
2933 * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
2934 beginning of a line.
2935 * src/groff/grog/grog.sh: Ditto.
2937 2001-06-29 Peter Marquardt <wwwutz@molgen.mpg.de>
2939 * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
2942 2001-06-27 Werner LEMBERG <wl@gnu.org>
2944 Fix problems with preprocessor string for `man' program.
2946 * *.man: Don't use `s' in preprocessor string -- it doesn't exist.
2947 Updated/added copyright.
2948 Moved Emacs's local variable to identify nroff mode to the end of
2949 the file; add local variable if missing.
2951 2001-06-26 Andras Salamon <andras@cs.wits.ac.za>
2953 * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
2954 AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
2955 * configure: Regenerated.
2957 2001-06-25 Andras Salamon <andras@cs.wits.ac.za>
2959 * aclocal.m4 (GROFF_PAGE): Fix page detection code.
2960 * configure: Regenerated.
2962 2001-06-24 Werner LEMBERG <wl@gnu.org>
2964 * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
2966 * doc/pic.ms: Fix typos.
2968 Version 1.17.1 released
2969 =======================
2971 2001-06-21 Golubev I. N. <gin@mo.msk.ru>
2973 * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
2974 * configure: Updated.
2976 2001-06-20 Gaius Mulley <gaius@glam.ac.uk>
2978 * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
2980 * src/roff/troff/dic.cc (blank_line): Add html tag.
2982 2001-06-19 Gaius Mulley <gaius@glam.ac.uk>
2984 * src/roff/troff/input.cc (do_suppress): Fix typo.
2986 2001-06-18 Gaius Mulley <gaius@glam.ac.uk>
2988 Added two new options (-D and -I) to specify image names and a
2989 subdirectory to place the images in.
2991 Change syntax from \\Ox to \\O[x].
2993 * src/devices/grohtml/post-html.cc (main): Add options.
2995 * src/preproc/html/pre-html.cc: Include `stdarg.h'.
2996 Use `NULL' instead of `0' for null string pointers.
2997 (MAX_RETRIES): New macro.
2998 (lengthOfintToStr, intToStr, make_message): New functions.
2999 (makeFileName): Make function static.
3000 Implement -D and -I options.
3001 (checkImageDir): New function.
3002 (write_end_image, write_start_image): Use new syntax of \O.
3003 (createAllPages, removeAllPages): Implement -D and -I options. Use
3005 (createImage): Use make_message().
3006 (addps4html): Add guard for malloc().
3007 (usage, scanArguments): Updated.
3008 (makeTempFiles): Use mkstemp().
3009 (removeTempFiles): Use unlink().
3010 (findPrefix): Add guard for malloc().
3012 * src/roff/troff/input.cc (get_delim_file_name): New function to
3014 (do_suppress): Updated to parse new syntax.
3015 * src/devices/grohtml/grohtml.man: Updated.
3016 * tmac/www.tmac: Updated to new syntax.
3020 2001-06-15 Werner LEMBERG <wl@gnu.org>
3022 * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
3024 * src/devices/grohtml/grohtml.man: Minor improvements.
3026 2001-06-14 Werner LEMBERG <wl@gnu.org>
3028 * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
3030 2001-06-11 Werner LEMBERG <wl@gnu.org>
3032 * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
3033 line to specify preprocessor options -- mandb 2.3.1 only recognizes
3035 * src/preproc/grn/grn.man: Add proper '\" string.
3037 2001-06-11 OKAZAKI Tetsurou <okazaki@be.to>
3039 * test-groff: Don't use PATH but GROFF_BIN_PATH.
3041 2001-06-08 Werner LEMBERG <wl@gnu.org>
3043 Updated to autoconf 2.50.
3045 * configure.in: Renamed to...
3046 * configure.ac: This.
3047 * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
3048 (GROFF_OS390): Updated.
3049 * configure: Regenerated.
3051 2001-05-18 Werner LEMBERG <wl@gnu.org>
3053 * src/roff/troff/env.c, src/roff/troff/env.h,
3054 src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
3057 2001-05-17 Jeffrey Friedl <jfriedl@yahoo-inc.com>
3059 * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
3061 2001-05-16 Werner LEMBERG <wl@gnu.org>
3063 * src/roff/troff/input.cc (read_size): Emit warning if value becomes
3064 less than or equal zero; set it to 1 then.
3065 * src/roff/troff/node.h (node::node): Initialize `last'.
3067 2001-05-08 Werner LEMBERG <wl@gnu.org>
3069 * tmac/an-old.tmac: Make predefined strings work in compatibility
3071 Add troff version guard.
3072 * tmac/doc.tmac: Simplify version guard.
3074 2001-05-07 Werner LEMBERG <wl@gnu.org>
3076 The .ns and .rs requests are now honoured not only in the top-level
3077 but in all diversions (similar to UNIX troff).
3079 This change is based on a patch from Tadziu Hoffmann
3080 <hoffmann@usm.uni-muenchen.de>.
3082 * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
3083 (top_level_diversion): Remove `no_space_mode' member.
3084 * src/roff/troff/div.cc (diversion::diversion,
3085 top_level_diversion::top_level_diversion): Updated.
3086 (macro_diversion::output): Reset `no_space_mode'.
3087 (no_space, restore_spacing): Use `curdiv' unconditionally.
3088 (space_request, blank_line): Check `curdiv->no_space_mode'.
3089 (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
3090 `curdiv' unconditionally.
3091 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
3094 2001-05-06 Werner LEMBERG <wl@gnu.org>
3096 Added two new requests `de1' and `am1' which are similar to `de' and
3097 `am' with the difference that compatibility mode is saved on entry,
3098 switched off during macro execution, and restored on exit.
3100 * src/roff/troff/input.h: Added two new special characters
3101 (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
3102 * src/roff/troff/input.cc (input_iterator): Added two member
3103 functions `save_compatible_flag' and `get_compatible_flag'.
3104 (input_stack): Ditto.
3105 (string_iterator): Ditto. Also add private member
3106 `saved_compatible_flag'.
3107 (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
3108 (calling_mode): New enumeration.
3109 (do_define_macro): Use it. Insert COMPATIBLE_SAVE and
3110 COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
3111 (define_macro, define_indirect_macro, append_macro, ignore): Use
3113 (define_nocomp_macro, append_nocomp_macro): New functions.
3114 (init_input_requests): Updated.
3115 (do_request): Rename local variable `saved_compatible_flag' to
3116 `old_compatible_flag'.
3117 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
3119 * tmac/an-old.tmac: Use `de1' instead of `de' request for all
3120 public and trap-invoked macros. As a consequence, the man macros
3121 work in compatibility mode also.
3123 2001-05-06 Solar Designer <solar@openwall.com>
3125 * Makefile.in: Use $(mandir).
3127 2001-05-06 Alexios Zavras <zvr@pobox.com>
3129 * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
3131 2001-05-05 Werner LEMBERG <wl@gnu.org>
3133 Added `.ns' number register: Returns 1 in no-space mode (if in
3134 top-level diversion), 0 otherwise.
3136 * src/roff/troff/div.cc (no_space_mode_reg): New class.
3137 (init_div_requests): Updated.
3138 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
3141 2001-05-04 Werner LEMBERG <wl@gnu.org>
3143 * src/roff/nroff/nroff.man: Improved documentation (especially
3146 2001-05-02 Werner LEMBERG <wl@gnu.org>
3148 Added `brp' request: This is \p as a request.
3150 * src/roff/troff/env.cc (environment::do_break): Add parameter
3152 (do_break_request): New function (was `break_request').
3153 (break_request): Calls `do_break_request'.
3154 (break_spread_request): New; calls `do_break_request'.
3155 (init_env_requests): Updated.
3156 * src/roff/troff/env.h: Updated.
3157 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
3159 * REVISION: Increased to 1.
3160 * win32-diffs: Updated.
3162 2001-05-01 Werner LEMBERG <wl@gnu.org>
3164 * tmac/an-old.tmac: Fix minor compatibility mode issue.
3165 * tmac/troffrc-end: Make it really work in compatibility mode.
3167 2001-04-27 Werner LEMBERG <wl@gnu.org>
3169 * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
3172 2001-04-22 Werner LEMBERG <wl@gnu.org>
3174 * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
3175 latest versions from glibc CVS archive.
3177 * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
3178 <c.zeelenberg@hccnet.nl>.
3180 2001-04-21 Werner LEMBERG <wl@gnu.org>
3182 * configure.in: Move check for mkstemp() to...
3183 * aclocal.m4 (GROFF_MKSTEMP): This new function.
3184 * configure: Regenerated.
3186 * src/include/groff-getopt.h: Don't use variable names in
3189 * src/devices/grohtml/html-chars.h: Removed. It isn't used.
3190 * src/devices/grohtml/Makefile.sub,
3191 src/devices/grohtml/post-html.cc: Updated.
3193 2001-04-21 Albert Chin-A-Young <china@thewrittenword.com>
3195 * configure.in: Add special check for mkstemp().
3196 * src/libs/libgroff/tmpfile.cc: Use it.
3197 * src/utils/indxbib/indxbib.cc: Ditto.
3198 * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
3199 * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
3202 2001-04-20 Bruce Lilly <blilly@erols.com>
3204 `Version_string' as C++ object was not visible to linker from C
3206 Add `const' to `Version_string'.
3208 * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
3209 (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
3210 (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
3211 (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
3212 (scanArguments), src/preproc/refer/refer.cc (main),
3213 src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
3214 (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
3215 (main), src/devices/grohtml/post-html.cc (main),
3216 src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
3217 (main), src/utils/hpftodit/hpftodit.cc (main),
3218 src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
3219 (main), src/utils/lkbib/lkbib.cc (main),
3220 src/utils/addftinfo/addftinfo.cc (main): Implement it.
3222 * src/roff/groff/pipeline.c: Add _UWIN.
3223 * src/include/nonposix.h: Ditto.
3225 2001-04-20 Werner LEMBERG <wl@gnu.org>
3227 * src/include/lib.h: Use HAVE_STRERROR.
3228 * src/roff/groff/pipeline.c: Ditto.
3229 * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
3230 * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
3231 * src/utils/pfbtops/pfbtops.c: Add copyright notice.
3232 * win32-diffs: Updated.
3233 * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
3235 2001-04-19 Werner LEMBERG <wl@gnu.org>
3237 * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
3238 instead of hardwired `"troff"'.
3239 (char_buffer::read_file): Remove unused variables.
3240 (char_buffer::write_file_troff): Ditto.
3241 (char_buffer::write_file_html): Ditto.
3242 (generateImages): Ditto.
3244 * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
3246 * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
3248 * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
3249 * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
3250 index_search_item::search1): Ditto.
3251 * src/roff/troff/node.h (width_list): Reorder members.
3252 * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
3253 (lookup_warning): Ditto.
3254 (prepend_string): Commented out.
3255 * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
3256 * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
3257 * src/preproc/tbl/main.cc (process_format): Ditto.
3258 * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
3260 * src/preproc/pic/pic.cc: Updated.
3261 * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
3262 * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
3263 * src/preproc/refer/command.cc (execute_command): Ditto.
3264 * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
3265 * src/preproc/refer/token.cc (lookup_token): Ditto.
3266 * src/preproc/soelim/soelim.cc: Ditto.
3267 * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
3268 (isHexDigit): Commented out.
3269 (pushBackBuffer::isString): Remove unused variable.
3270 * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
3272 * src/devices/grops/psrm.cc (resource_manager::lookup_font,
3273 resource_manager::read_resource_arg, read_one_of, parse_extensions):
3275 * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
3276 * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
3277 lookup_paper_size): Ditto.
3278 * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
3279 (text_glob, element_list): Reorder members.
3280 * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
3282 * src/devices/grohtml/html-text.h (html_text::emit_space): Change
3283 return value to `void'.
3284 * src/devices/grohtml/output.cc (word_list::word_list): Fix order
3286 * src/devices/grohtml/html.h (simple_output::check_newline,
3287 simple_output::space_or_newline, simple_output::enable_newlines):
3289 * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
3291 * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
3292 * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
3293 output_ligatures, output_charset, read_map): Ditto.
3294 * src/utils/lookbib/lookbib.cc (main): Ditto.
3295 * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
3296 (do_file): Fix typo (`=' -> `==').
3297 * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
3298 * src/utils/addftinfo/addftinfo.cc (main): Ditto.
3300 2001-04-18 Ruslan Ermilov <ru@FreeBSD.org>
3302 * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
3303 Fix usage of GROFF_BIN_PATH.
3304 * src/roff/nroff/nroff.man: Updated.
3306 2001-04-18 Werner LEMBERG <wl@gnu.org>
3308 * NEWS: Fixing typos.
3311 Version 1.17 released
3312 =====================
3314 2001-04-17 Werner LEMBERG <wl@gnu.org>
3316 * tmac/Makefile.sub (install-data): mdoc.local-s is in current
3317 directory, not in $(srcdir).
3319 2001-04-16 Werner LEMBERG <wl@gnu.org>
3321 * doc/groff.texinfo: More info on conditionals.
3323 2001-04-15 Werner LEMBERG <wl@gnu.org>
3325 * doc/groff.texinfo: Added some info about groff internals.
3327 * src/roff/troff/node.cc (make_glyph_node): Emit warning message
3328 about missing special character only if the name is non-null.
3330 2001-04-14 Werner LEMBERG <wl@gnu.org>
3332 Removing the grohtml-old device driver which is now obsolete.
3334 * src/devices/grohtml-old/*: Removed.
3335 * font/devhtml-old/*: Removed.
3336 * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
3338 * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
3339 * test-groff (PATH): Updated.
3340 * tmac/Makefile.sub (NORMALFILES): Updated.
3341 * tmac/an-old.tmac: Remove special code for html-old device.
3342 Replace `html-or-html-old' register with `an-html'.
3343 * tmac/eqnrc: Updated.
3344 * tmac/html-old.tmac: Removed.
3345 * tmac/troffrc, tmac/troffrc-end: Updated.
3346 * tmac/www.tmac: Remove special code for html-old device.
3347 Replace `html-or-html-old' register with `www-html'.
3349 * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
3350 src/libs/libgroff/htmlindicate.cc (graphic_end),
3351 include/htmlindicate.h, src/preproc/grn/*.cc,
3352 src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
3353 single argument for consistency with rest of source code.
3355 * aclocal.m4, tmac/an-old.tmac: Fix copyright.
3357 2001-04-13 Ruslan Ermilov <ru@FreeBSD.org>
3359 * src/roff/troff/troff.man: Fixing typos.
3361 2001-04-13 Werner LEMBERG <wl@gnu.org>
3363 * doc/pic.ms: Fixing many font switches.
3364 * doc/groff.texinfo: Fixes, additions.
3365 * MORE.STUFF: Updated.
3367 2001-04-12 Gaius Mulley <gaius@glam.ac.uk>
3369 * src/devices/grohtml/grohtml.man: Updated manual page regarding
3371 * src/preproc/html/pre-html.cc (createImage): Fixed right hand
3373 (removeTempFiles): New function to tidy up temporary files.
3374 * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
3375 Many fixes to do with the new inline suppress node and image regions
3377 * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
3378 (generate_img_src): New function.
3379 (html_printer::do_auto_image): Utilizes it.
3380 (do_heading, do_title): Include inline images within their contents.
3381 (html_printer::begin_page): Tidied up comments that are issued to
3382 the html output file.
3383 (html_printer::do_fill): Fixed so that `.nf' works with fonts other
3385 (text_glob::is_br): New method used by do_heading.
3386 * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
3387 equivalent diversion.
3388 * src/include/html-strings.h: Altered image tags to reflect the
3390 * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
3392 * src/preproc/eqn/main.cc: Will suppress generation of image tags if
3393 it is already inside a pic image. Only emit tags if the argument
3394 `-Tps:html' is present.
3395 * src/preproc/tbl/main.cc: Changes to reflect additional
3396 `html_end_suppress' parameter.
3397 * src/roff/troff/env.cc: Only emit eol tag if a node has been
3398 emitted since the last eol tag was written.
3399 * src/roff/troff/env.h: New boolean `emitted_node'.
3400 * src/roff/troff/input.cc (do_suppress): Handles extra suppress
3401 nodes \O3, \O4, \O5. No longer use `output_low_mark_miny'.
3402 * src/roff/troff/node.cc (check_charinfo): New method.
3403 (troff_output_file::determine_line_limits): Alterations to limit
3405 * tmac/www.tmac: Changes to reflect new suppress nodes.
3407 2001-04-12 Bruno Haible <haible@clisp.cons.org>
3409 * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
3410 Escape the html_glyph in the buffer.
3411 (str_translate_to_html): Output the unescaped escaped_char.
3412 * src/devices/grohtml/html-text.cc (issue_table_begin): Set
3413 `frame=void', not `frame=none'. Add `border=0'.
3415 2001-04-12 Werner LEMBERG <wl@gnu.org>
3417 * PROBLEMS: Add some words on how to avoid wrapper macros.
3419 2001-04-11 Blake McBride <blake@florida-software.com>
3421 * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
3423 2001-04-11 Werner LEMBERG <wl@gnu.org>
3425 * font/devlbp/Makefile.sub (CLEANADD): Set it.
3426 * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
3427 * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
3428 * Makefile.sub (DISTCLEANFILES): Here.
3430 * libs/libgroff/new.cc: Include `nonposix.h'.
3431 * win32-diffs: Updated.
3433 2001-04-10 Ruslan Ermilov <ru@FreeBSD.org>
3435 Added skeleton macro for defunct macros.
3437 Updated documentation.
3439 When inside displays, an empty input line warning should be
3440 suppressed. If another macro call is put inside a display,
3441 all subsequent empty lines found in that display caused a
3442 warning to be emitted.
3444 * tmac/doc.tmac (doc-defunct-macro): New macro.
3445 (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
3446 (doc-restore-global-vars): Fixed typo.
3447 (doc-empty-line): Check the `doc-display-depth' register to
3448 determine whether we are inside display or not.
3450 * tmac/doc-common: Removed `Or' and `Sf' registers.
3451 Moved obsolete `Ds' macro to doc.tmac.
3453 * tmac/groff_mdoc.man: Bump document date.
3454 Document `.Vt' under ``Variable Types''.
3455 Removed documentation for obsolete `.Or' macro.
3457 2001-04-10 Werner LEMBERG <wl@gnu.org>
3460 * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
3462 2001-04-10 Bruno Haible <haible@clisp.cons.org>
3464 * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
3465 (usage): Add stream argument. Don't exit.
3466 * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
3467 Write --version output to stdout, not stderr.
3468 (usage): Add stream argument. Don't exit.
3469 * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
3470 (usage): Add stream argument. Don't exit.
3471 * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
3473 (usage): Add stream argument. Don't exit.
3474 (main): Write --help output to stdout, not stderr.
3475 * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
3476 (usage): Add stream argument. Don't exit.
3477 * src/devices/grops/ps.cc (main): Accept --help and --version.
3478 (usage): Add stream argument. Don't exit.
3479 * src/devices/grotty/tty.cc (main): Accept --help and --version.
3480 (usage): Add stream argument. Don't exit.
3481 * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
3482 (main): Accept --help and --version.
3483 * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
3484 (main): Accept --help and --version.
3485 * src/preproc/html/pre-html.cc (usage): Add stream argument.
3486 (scanArguments): Accept --help and --version.
3487 * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
3488 (main): Accept --help and --version.
3489 * src/preproc/refer/refer.cc (main): Accept --help and --version.
3490 (usage): Add stream argument. Don't exit.
3491 * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
3493 (main): Accept --help and --version.
3494 * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
3495 (main): Accept --help and --version.
3496 * src/roff/groff/groff.cc (main): Accept --help and --version.
3497 (synopsis): Add stream argument.
3498 (help): Write --help output to stdout, not stderr.
3499 (usage): Add stream argument. Don't exit.
3500 * src/roff/grog/grog.pl: Accept --help and --version.
3502 * src/roff/grog/grog.sh: Accept --help and --version.
3503 * src/roff/nroff/nroff.sh: Accept --help and --version.
3504 * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
3505 (usage): Add stream argument. Don't exit.
3506 (main): Accept --help and --version.
3507 * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
3508 (usage): New function with stream argument, doesn't exit.
3509 * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
3510 (usage): New function with stream argument, doesn't exit.
3511 * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
3512 (usage): Add stream argument. Don't exit.
3513 * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
3514 (main): Accept --help and --version.
3515 * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
3517 (main): Accept --help and --version.
3518 * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
3519 (main): Accept --help and --version.
3520 * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
3521 (usage): Add stream argument. Don't exit.
3523 2001-04-10 Ruslan Ermilov <ru@freebsd.org>
3525 Fix indentation in SYNOPSIS.
3527 Updated to include changes of latest BSD mdoc version (basically,
3528 the only change is that `.Fn' and `.Fc' put a final semicolon after
3529 a function declaration in the SYNOPSIS section).
3531 * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
3532 (doc-in-synopsis-section): New variable. Updated all related
3534 (doc-indent-synopsis-active): New register.
3535 (Nd, Fn, Fo): Use it.
3536 (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
3537 `.Cd' with long argument line produces indented wrapped lines.
3538 Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
3539 undesirable line break to be output.
3540 (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
3542 (Fn, Fc): Add final `;' to output.
3543 (doc-save-global-vars, doc-restore-global-vars): Updated.
3544 * tmac/doc-common: Remove `Ex' register.
3546 * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
3549 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
3551 * tmac/doc.tmac (Cd): Simplify code.
3552 * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
3554 2001-04-06 Werner LEMBERG <wl@gnu.org>
3556 Implement continuous underlining for nroff mode. To do that, a new
3557 request in the ditroff language has been added: `x u N' (N is 0
3560 \X and \Y are now transparent to end-of-sentence recognition.
3562 * src/include/printer.h (printer): Add `type' parameter to `special'
3564 * src/libs/libdriver/printer.cc (printer::special): Updated.
3565 * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
3567 * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
3568 specials of type `p'.
3569 * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
3570 * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
3571 * src/devices/grops/ps.cc (ps_printer::special): Ditto.
3572 * src/devices/grotty/tty.cc: Add new enum CU_MODE.
3573 (glyph::order): New method.
3574 (tty_printer::add_char): Use it.
3575 (tty_printer::special): New method.
3576 (tty_printer::end_page): Implement it.
3578 * src/roff/troff/node.h (special_node): Add `no_init_string' member.
3579 * src/roff/troff/node.cc (special_node::special_node): Add parameter
3580 to set `no_init_string'.
3581 (special_node::tprint_start): Use it.
3582 (special_node::same, special_node::copy): Updated.
3583 (special_node::ends_sentence): New method.
3584 (troff_output_file::start_special): Add parameter to include
3585 inititialization of special conditionally.
3587 * src/roff/troff/env.h (environment): New member `underline_spaces'.
3588 * src/roff/troff/env.cc (do_underline_special): New function.
3589 (environment::set_font): Use it.
3590 (do_underline): Use it. This was `underline()'.
3591 (underline): Call `do_underline()'.
3592 (continuous_underline): New function which calls `do_underline()'.
3593 (environment::newline): Use `do_underline_special()'.
3594 (init_env_requests): Updated.
3596 * NEWS, man/troff_out.man: Updated.
3598 2001-04-06 Bruno Haible <haible@clisp.cons.org>
3600 * font/devutf8/R.proto: Fix code of 'shc'.
3602 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
3604 Many fixes. Diag lists can now be nested also; additionally,
3605 `-compact' and `-offset' are supported.
3607 * tmac/doc.tmac (doc-have-indent): Replaced with ...
3608 (doc-list-have-indent-stackXXX): A new register stack.
3609 (doc-have-diag-list): Removed.
3610 (Bl): Use `doc-list-have-indent-stackXXX'.
3612 (doc-diag-list): Use `doc-compact-list-stackXXX'.
3613 (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
3614 (doc-set-vertical-and-indent): Ditto.
3615 (doc-next-list-depth): Removed.
3616 (doc-increment-list-stack): Updated.
3617 (doc-decrement-list-stack): Use `doc-list-depth' instead of
3618 `doc-next-list-depth'.
3619 (doc-end-list, doc-end-column-list): Don't use
3620 `doc-increment-list-stack'.
3621 (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
3622 (doc-save-global-vars, doc-restore-global-vars): Updated.
3623 * tmac/doc-common: Updated.
3624 * tmac/groff_mdoc.man: Updated.
3627 2001-04-02 Werner LEMBERG <wl@gnu.org>
3629 * src/devices/grotty/grotty.man: Fix grammatical error.
3631 2001-03-30 Ruslan Ermilov <ru@freebsd.org>
3633 Remove .Ld from mdoc package; replace it with special handling of
3636 * tmac/doc-common: Remove `Ld' register.
3637 Uncomment `doc-volume-ds-*' strings.
3638 Remove `doc-operating-system-default'.
3640 * tmac/doc-syms (Ld): Removed.
3641 * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
3645 * tmac/groff_mdoc.man: Many fixes and updates.
3647 2001-03-29 Werner LEMBERG <wl@gnu.org>
3649 * tmac/troffrc-end: Protect data with `.do'. Reported by T. Kurt
3650 Bond <tkb@tkb.mpl.com>.
3651 * tmac/www.tmac: Save compatibility mode.
3653 2001-03-28 Ruslan Ermilov <ru@freebsd.org>
3655 * tmac/groff_mdoc.man: Many fixes.
3657 2001-03-28 Werner LEMBERG <wl@gnu.org>
3659 * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
3662 2001-03-27 Werner LEMBERG <wl@gnu.org>
3664 * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
3665 diversion. This fixes overlong tags.
3667 2001-03-26 Werner LEMBERG <wl@gnu.org>
3669 * doc/groff.texinfo: Fixed and improved documentation of fonts.
3670 * tmac/doc-syms: Fix error messages.
3671 * tmac/an-old.tmac: Remove incorrect double backslashes.
3673 2001-03-24 Ruslan Ermilov <ru@freebsd.org>
3675 * tmac/Makefile.sub: Strip mdoc.local also
3676 * tmac/strip.sed: Fixed.
3678 2001-03-24 Werner LEMBERG <wl@gnu.org>
3680 * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
3681 selecting the font size.
3682 * tmac/groff_mdoc.man, NEWS: Document it.
3684 2001-03-23 Werner LEMBERG <wl@gnu.org>
3686 * src/roff/troff/div.cc (save_vertical_space): Add default argument
3688 * src/roff/troff/env.cc (family_change): Make `.fam' accept no
3689 argument to restore previous font family.
3690 * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
3692 * doc/groff.texinfo: More fixes and additions (mainly for font
3693 manipulating commands).
3695 * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
3696 * tmac/groff_mdoc.man: This. The quick reference has been removed.
3697 * tmac/Makefile.sub, NEWS: Updated.
3699 2001-03-23 Werner LEMBERG <wl@gnu.org>
3701 Replaced mdoc implementation. The new version is `state of the
3702 art', using almost all new features of groff 1.17 -- it won't run
3703 with older versions.
3705 * tmac/doc.tmac: Completely rewritten.
3706 * tmac/doc-common: Ditto.
3707 * tmac/doc-nroff: Ditto.
3708 * tmac/doc-ditroff: Ditto.
3709 * tmac/doc-syms: Ditto.
3710 * tmac/mdoc.local: New file.
3711 * tmac/groff_mdoc.samples.man: Replaced with ...
3712 * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
3713 * tmac/strip.sed: Updated.
3714 * tmac/Makefile.sub: Updated.
3717 * tmac/groff_man.man: Add `man.local' to the FILES section.
3719 2001-03-22 Werner LEMBERG <wl@gnu.org>
3721 * doc/groff.texinfo: Added many @noindent.
3722 Replaced @end_Example -> @endExample.
3723 Added info whether registers are r/o.
3724 Many other additions and fixes.
3726 2001-03-21 Werner LEMBERG <wl@gnu.org>
3728 * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
3729 in makeinfo of texinfo 4.0) to be used in @Def* macros.
3730 Improved @Def* macros: Now the exact syntax of request, register,
3731 and escapes is shown.
3732 Added macros for parentheses and brackets to be used in @Def*.
3733 Many fixes and improvements of the documentation.
3735 2001-03-20 Werner LEMBERG <wl@gnu.org>
3737 * doc/groff.texinfo: Added new index: `st' (for strings).
3738 Added macros @Defstr(x).
3739 Added macro @Example (adding @group).
3740 Other minor improvements.
3742 2001-03-19 Werner LEMBERG <wl@gnu.org>
3744 * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
3745 `rq' for requests. `fn' is no longer used.
3746 Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
3749 * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
3750 number with name of man page.
3752 2001-03-19 Larry Kollar <kollar@alltel.net>
3754 * doc/groff.texinfo: Complete revision. Added many @Deffn to gain
3757 2001-03-19 Werner LEMBERG <wl@gnu.org>
3759 * man/groff_font.man: Document `prepro', `postpro', and `print'.
3760 * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
3761 * src/devices/grohtml/grohtml.man: Fixing typos.
3763 2001-03-19 Gaius Mulley <gaius@glam.ac.uk>
3765 * tmac/s.tmac (@IP): Pass `.ip' html tag.
3766 * tmac/groff_mwww.man: Remove .LINE macro
3767 * tmac/www.tmac (LINE): Add `.ti'.
3769 * src/devices/grohtml/post-html.cc (html_printer): New member
3771 (html_printer::emit_raw): Use it.
3772 (html_printer::do_linelength): Ditto.
3773 (html_printer::do_pageoffset): Ditto.
3774 (html_printer::do_indentation): Ditto.
3775 (html_printer::do_tempindent): Ditto.
3776 (html_printer::do_break): Ditto.
3777 (html_printer::begin_page): Ditto.
3778 (html_printer::do_indentedparagraph): New function.
3779 (html_printer::troff_tag): Handle `.ip'.
3780 * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
3781 Add `<td width=...>' handling.
3782 (html_text::do_table): Add parameter.
3783 (html_text::do_indent): Updated.
3784 * src/devices/groohtml/html-text.h: Updated.
3786 2001-03-16 Gaius Mulley <gaius@glam.ac.uk>
3788 Introduced simple html tables to implement indentation.
3790 * src/devices/grohtml/html.h (word, word_list): New structures.
3791 (simple_output): Use it.
3792 * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
3793 (html_printer): Improve indentation handling.
3794 (html_printer::emit_raw): Set `in_table' element. Handle
3796 (html_printer::write_header): Move conditional downwards.
3797 Don't allow whitespace in tags.
3798 (html_printer::do_linelength): Handle line length and indentation
3800 (html_printer::do_pageoffset): Handle indentation conditionally.
3801 (html_printer::do_indentation): Ditto.
3802 (html_printer::do_tempindent): New function member.
3803 (html_printer::do_fill): Take care of indentation.
3804 (html_printer::do_flush): Finish table.
3805 (html_printer::do_links): Ditto.
3806 (html_printer::do_break): New function for handling `.br' and `.ti'.
3807 (html_printer::troff_tag): Use it.
3809 (html_printer::flush_globs): Fix.
3810 (html_printer::flush_page): Finish table.
3811 (html_printer::html_printer): Fix error message. Set up
3813 (html_printer::add_to_sbuf): Remove special handling of character
3815 (to_unicode): Remove `stop()'.
3816 (html_printer::write_title): Cleanup.
3817 (html_printer::begin_page): Use `put_string()'. Handle indentation.
3818 (html_printer::~html_printer): Flush text and end the line.
3820 * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
3821 * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
3823 (html_text::start_tag): Disable newlines.
3824 (html_text::table_is_void): New function.
3825 (html_text::issue_table_begin): Ditto.
3826 (html_text::issue_table_end): Ditto.
3827 (html_text::push_para): Better table handling.
3828 (html_text::do_indent): New function.
3829 (html_text::do_table): Ditto.
3830 (html_text::done_table): Ditto.
3831 (html_text::do_tt): Handle PRE_TAG.
3832 (html_text::is_in_table): New function.
3833 (html_text::check_emit_text): Handle tables.
3834 (html_text::do_emittext): Use `nl()'.
3835 (html_text::do_para): Handle table.
3836 (html_text::remove_def): New function.
3837 * src/devices/grohtml/output.cc (word, word_list): Implement
3839 (simple_output::end_line): Flush last word.
3840 (simple_output::simple_comment): Ditto.
3841 (simple_output::begin_comment): Recoded.
3842 (simple_output::end_comment): Ditto.
3843 (simple_output::comment_arg): Removed.
3844 (simple_output::check_newline): Improve test and flush last word.
3845 (simple_output::space_or_newline): Improved.
3846 (simple_output::write_newline): Replaced with...
3847 (simple_output::nl): This.
3848 (simple_output::put_raw_char): Flush last word.
3849 (simple_output::check_space): Removed.
3850 (simple_output::put_translated_string): Ditto.
3851 (simple_output::put_string): Simplified.
3852 (simple_output::put_number): Updated.
3853 (simple_output::put_float): Ditto.
3854 (simple_output::put_symbol): Removed.
3855 (simple_output::enable_newlines): Add `check_newline()'.
3856 (simple_output::flush_last_word): New function.
3858 * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
3859 * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
3861 * tmac/s.tmac (@PP, @IP): Add html conditional code.
3862 * tmac/an-old.tmac (TP): Ditto.
3864 2001-03-09 Ruslan Ermilov <ru@freebsd.org>
3866 * mdate.sh: Make it POSIX compliant.
3868 2001-03-09 Werner LEMBERG <wl@gnu.org>
3870 Added the `return' request to end a macro immediately. It simply
3871 pops iterators from the input stack until a macro iterator is found.
3873 * src/roff/troff/input.cc (input_iterator::is_macro,
3874 macro_iterator::is_macro): New member.
3875 (input_return_boundary): New class to signal an immediate return
3877 (input_stack::add_return_boundary, input_stack::is_return_boundary):
3879 (input_stack::clear): Use it.
3880 (input_stack::pop_macro): New function.
3881 (while_request): Use `is_return_boundary()'.
3882 (return_macro_request): New function.
3883 (init_input_requests): Use it.
3885 * src/roff/troff/TODO: Updated.
3886 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
3888 2001-03-08 Werner LEMBERG <wl@gnu.org>
3890 * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
3893 2001-03-07 Werner LEMBERG <wl@gnu.org>
3895 Make `\B' more rigid.
3897 * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
3899 (get_number_rigidly): New function.
3900 * src/roff/troff/input.cc (do_expr_test): Use it.
3901 * src/roff/troff/token.h: Updated.
3903 * src/roff/troff/request.h: Fix typo (init_html_request ->
3904 init_markup_request).
3906 2001-03-04 Gaius Mulley <gaius@glam.ac.uk>
3908 Fixed grohtml handling of any named glyph for glyph indexes < 0x80.
3909 Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
3910 are now `.begin', `.end', `.image'.
3912 * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
3913 (html_printer::add_to_sbuf): Changing type of `code' parameter.
3914 Use add_char_to_sbuf().
3915 (to_unicode): New function.
3916 (char_translate_to_html): Changing type of `ch' parameter.
3918 (html_printer::~html_printer): Comment out doctype string.
3919 * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
3920 instead of `.html-end'.
3921 (write_start_image): Use `.begin' and `.image' instead of
3922 `.html-begin' and `.html-image'.
3923 * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
3924 (html_begin): Renamed to ...
3926 (html_end): Renamed to ...
3928 (html_image): Renamed to ...
3930 (init_html_requests): Renamed to ...
3931 (init_markup_requests): This.
3932 * tmac/www.tmac: Updated.
3934 2001-02-28 Bram <bram@avontuur.org>
3936 * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
3939 2001-02-26 David Leonard <david.leonard@csee.uq.edu.au>
3941 * doc/meref.me: Fixing some typos.
3943 2001-02-16 Werner LEMBERG <wl@gnu.org>
3945 * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
3946 method. Return `HYPHEN_MIDDLE' if it was `\:'.
3947 * src/roff/troff/node.h: Updated.
3949 2001-02-17 Ruslan Ermilov <ru@FreeBSD.org>
3951 * tmac/groff_tmac.man: Fix typo.
3953 2001-02-16 Werner LEMBERG <wl@gnu.org>
3955 Fixing a bug which prevented proper end-of-sentence recognition
3956 between an `unformatted' box and the following text. As a
3957 consequence, vertical line distances are no longer preserved in
3958 boxes after a call to `.unformat' -- because boxes aren't
3959 line-oriented (contrary to diversions), this doesn't make sense
3962 * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
3964 (vertical_size_node::set_unformat_flag): New method.
3965 * src/roff/troff/node.hh: Updated.
3966 * src/roff/troff/input.cc (word_space_node::reread,
3967 hmotion_node::reread): Reset `unformat' flag after usage.
3968 (unformat_macro): Append only if `set_unformat_flag()' returns
3970 * src/roff/troff/troff.man: Updated.
3972 2001-02-15 Werner LEMBERG <wl@gnu.org>
3974 * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
3975 documentation of `asciify' and `unformat' requests.
3977 2001-02-13 Werner LEMBERG <wl@gnu.org>
3979 Redesigned the `unformat' request. It is no longer connected with
3980 `asciify' but rather uses new `reread()' methods if the `unformat'
3981 flag is set. Additionally, the handling of space characters after
3982 unformatting has been fixed so that they retain their width.
3984 * src/roff/troff/node.h (width_list): New structure to store
3985 original widths of spaces.
3986 (node): Added `unformat' member.
3987 Replaced `num_spaces' variable with `orig_width' list.
3988 * src/roff/troff/node.cc (*node::asciify,
3989 asciify_reverse_node_list): Removed `unformat_only' flag and related
3991 (word_space_node::asciify, word_space_node::word_space_node): Use
3993 (word_space_node::~word_space_node): New destructor.
3994 (word_space_node::copy): Updated to handle `orig_width'.
3995 (hmotion_node::copy, unbreakable_space_node::copy): Updated.
3996 (*node::merge_space): Update `orig_width' list if necessary.
3997 (*node::set_unformat_flag): New methods to set the `unformat' flag.
3998 * src/roff/troff/enc.cc (environment::space_newline): Use
4000 (environment::space): Added method to handle space width and
4001 sentence space width as parameters. Use `width_list'.
4002 (environment::make_tab_node): Updated.
4003 * src/roff/troff/env.h: Updated.
4004 * src/roff/troff/input.cc (word_space_node::reread,
4005 unbreakable_space_node::reread, hmotion_node::reread): New methods
4006 to handle nodes specially if `unformat' flag is set.
4007 (do_asciify_macro): Renamed back to ...
4008 (asciify_macro): This.
4009 (unformat_macro): New implementation to simply set the `unformat'
4012 * MORE.STUFF: Added more info about deroff.
4014 2001-02-08 Werner LEMBERG <wl@gnu.org>
4016 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
4017 space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
4018 and `add_self()' methods to avoid hyphenation. For example, the
4019 hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
4020 soft hyphen after `foo'. Now the hyphen list is correctly
4021 `foo<ignore><ignore>bar'.
4023 2001-02-05 Yoshiteru Kageyama <yt-kage@cb3.so-net.ne.jp>
4025 * tmac/groff_tmac.man: Fix `BIR' macro.
4027 2001-02-04 Werner LEMBERG <wl@gnu.org>
4029 A new escape sequence `\:', inserting a zero-width break point.
4031 * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
4032 * src/roff/troff/input.cc (get_copy, token::next, asciify):
4034 * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
4036 (space_node): Add `was_escape_colon' member. Add `is_escape_colon()'
4037 and `asciify()' methods.
4038 * src/roff/troff/node.cc (space_node::space_node): Updated.
4039 (space_node::asciify): Handle `was_escape_colon'.
4040 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4042 Handle `\~' similar to other comparable requests.
4044 * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
4046 (token::next): Move creation of an unbreakable_space_node to...
4047 (token::add_to_node_list): Here.
4049 Fix a bug which sometimes prevented hyphenation of words connected
4050 with `\~' or `\ ' (and other escape sequences handled as
4051 TOKEN_NODE). This also fixes a hyphenation problem with boxes
4052 (after a call to the `unformat' request).
4054 * src/roff/troff/env.h (environment::possibly_break_line,
4055 environment::hyphenate_line): Introducing `start_here' parameter.
4056 * src/roff/troff/env.cc (environment::space_newline,
4057 environment::space): Use it.
4058 (environment::possibly_break_line, environment::hyphenate_line):
4060 * src/roff/troff/input.cc (process_input_stack): Use it.
4061 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
4062 space_char_hmotion_node, overstrike_node): Add
4063 `get_hyphenation_type()' method.
4064 * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
4065 if `unformat_only' is active.
4067 2001-01-30 Werner LEMBERG <wl@gnu.org>
4069 Implemented new read-only number register `.linetabs' which
4070 returns 1 if in line-tabs mode, 0 otherwise.
4072 * src/roff/troff/env.h (environment): Add get_line_tabs() member.
4073 * src/roff/troff/env.cc (get_line_tabs): New function.
4074 (init_env_requests): Use it.
4075 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4077 * VERSION, REVISION: Changing to 1.17.0.
4079 2001-01-28 Werner LEMBERG <wl@gnu.org>
4081 Fixed a bug which prevented hyphenation of words which are finished
4084 * src/roff/troff/token.h (token): Add enum type
4085 `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
4086 * src/roff/troff/input.cc (token::next, token::description,
4087 get_line_arg, token::add_to_node_list, token::process): Use it.
4089 2001-01-27 Werner LEMBERG <wl@gnu.org>
4091 * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
4092 * src/roff/troff/div.cc (do_divert): Use it.
4094 * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
4096 2001-01-25 Werner LEMBERG <wl@gnu.org>
4098 Adding the `linetabs' request. If set, tab distances are not
4099 computed relative to the input line but relative to the output line.
4101 * src/roff/troff/env.h (environment): New member `line_tabs'.
4102 * src/roff/troff/env.cc (line_tabs_request): Implement request.
4103 (environment::environment, environment::copy): Updated.
4104 (environment::distance_to_next_tab): Use `line_tabs'.
4105 (init_env_requests): Register request.
4106 * src/roff/troff/troff.man, man/groff.man, NEWS: Document it. Other
4109 2001-01-24 Werner LEMBERG <wl@gnu.org>
4111 Introducing a new read-only register `.int' which is set to a
4112 positive value if the last output line is interrupted (i.e., if it
4115 * src/roff/troff/env.cc (init_env_requests): Add it.
4116 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4118 2001-01-23 Gaius Mulley <gaius@glam.ac.uk>
4120 * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
4121 * src/preproc/html/pre-html.cc (findPrefix): New function which
4122 generates the troff executable name via the system prefix.
4123 * src/preproc/eqn/main.cc: Modified warning message.
4125 2001-01-23 Werner LEMBERG <wl@gnu.org>
4127 troff's `box' and `boxa' requests didn't preserve temporary
4130 * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
4131 `saved_target_text_length' members.
4132 * src/roff/troff/div.cc (do_divert): Use them.
4134 Tabs (but not yet leaders and fields) are now handled correctly by
4137 * node.h (hmotion_node): Add field `was_tab'.
4138 * env.cc (environment::make_tab_node): Set it.
4139 * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
4141 Added new request `unformat' which will, contrary to `asciify',
4142 preserve font information after unformatting (i.e., only nodes
4143 dealing with horizontal space are converted back to input
4146 * input.cc (asciify_macro): Renamed to ...
4147 (do_asciify_macro): this, having a new parameter `unformat_only'.
4148 (asciify_macro, unformat_macro): New; using do_asciify_macro.
4149 (init_input_requests): Added `unformat'.
4150 * node.cc (*_node::asciify), asciify_reverse_node_list: Added
4151 parameter to control asciification process.
4152 * node.h (*_node::asciify): Ditto.
4153 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4155 2001-01-20 Werner LEMBERG <wl@gnu.org>
4157 * doc/groff.texinfo: Minor improvement of `.in' documentation.
4159 2001-01-18 Werner LEMBERG <wl@gnu.org>
4161 * tmac/ps.tmac: Remove call of psold.tmac.
4162 * tmac/psold.tmac: Comment updated.
4163 * tmac/psnew.tmac: Removed since no longer needed.
4164 * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
4166 * font/devutf8/R.proto: Adding `shc' glyph.
4167 * font/devutf8/NOTES: Updated.
4169 * test-groff: Updated.
4171 2001-01-15 Gaius Mulley <gaius@glam.ac.uk>
4173 First cut of the new html device driver. Changes to pre-html and
4174 the new grohtml are too numerous to be documented here.
4176 Stuff related to `html' has been renamed to `html-old' and `html2'
4177 stuff has been renamed to `html' (including directories). The new
4178 html device driver is therefore invoked as `-Thtml'.
4180 Added new `\O' escape to suppress output (needed by html driver).
4182 Added functions and code to pass info about input-level commands
4183 (`.in', `.fl', etc.) to html driver.
4185 Three new functions (.html-begin, .html-end, and .html-image) for
4186 better html handling: `html-begin' will execute the remaining line
4187 if at the outermost nesting level, increasing an internal counter.
4188 `html-end' does the same but decreases the internal counter.
4189 `html_image' puts its arguments into a special node (suppress_node)
4190 to define an image region.
4192 The `output' request has been removed.
4194 * tmac/html-tags.tmac: Removed.
4195 * tmac/arkup.tmac: Updated and renamed to ...
4196 * tmac/www.tmac: New file.
4197 * tmac/markup.tmac Updated and renamed to ...
4198 * tmac/mwww.tmac: New file.
4199 * tmac/Makefile.sub: Updated.
4200 * tmac/an-old.tmac: Updated.
4201 * tmac/eqnrc: Updated.
4202 * tmac/groff_man.man
4203 * tmac/groff_markup.man: Updated and renamed to ...
4204 * tmac/groff_mwww.man: New file.
4205 * tmac/groff_tmac.man: Updated.
4206 * tmac/html-old.tmac: Updated and Renamed from html.tmac.
4207 * tmac/html.tmac: Updated and renamed from html2.tmac.
4208 * tmac/pspic.tmac: Updated html support.
4209 * tmac/s.tmac: Added html output support.
4210 * tmac/troffrc, tmac/troffrc-end: Updated.
4212 * Makefile.in, doc/Makefile: Updated.
4213 * doc/groff.texinfo: Added info about new `\O' escape.
4214 * doc/homepage.ms: Use `MAILTO' macro.
4216 * font/devhtml/DESC.proto: Add `C' font.
4217 * font/devhtml/Makefile.sub: Updated.
4218 * font/devhtml/R.proto: Minor fixes.
4219 * font/devhtml-old/Makefile.sub: Updated.
4221 * src/devices/grohtml-old/Makefile.sub: Updated.
4223 * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
4225 * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
4226 graphic_start): Add `inline' parameter. Update.
4227 (html_end_suppress, graphic_end): Update.
4229 * src/include/html-strings.h: New file.
4230 * src/include/htmlindicate.h: Comments updated.
4231 * src/include/printer.h: Updated.
4233 * src/preproc/eqn/main.cc (do_file, main): Updated.
4234 * src/preproc/pic/troff.cc (troff_output::start_picture,
4235 troff_output::finish_picture): Updated.
4236 * src/preproc/tbl/main.cc (process_input_file): Updated.
4238 * src/roff/groff/groff.cc (main): Updated.
4239 Pass device arguments to predrivers also.
4240 Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
4241 * src/roff/troff/env.h (environment): Updated.
4242 New elements `need_eol' and `ignore_next_eol' (for html output).
4243 * src/roff/troff/env.cc (environment::environment): Add initializers
4244 for `need_eol' and `ignore_next_eol'.
4245 (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
4247 (point_size, fill, no_fill, center, right_justify, line_length,
4248 indent, temporary_indent, break_request, handle_tab): Use
4250 (set_tabs): Use `add_html_tag_tabs()'.
4251 (environment::add_html_tag): Updated.
4252 (environment::do_break): Updated.
4253 * src/roff/troff/div.cc (space_request, flush_output): Use
4254 `environment::add_html_tag()'.
4255 * src/roff/troff/input.cc: Updated.
4256 New variable `html_level' to indicate nested `html-begin' requests.
4257 (file_iterator::fill): Use `environment::add_html_tag_eol()'.
4258 (non_interpreted_char_node, token_node, non_interpreted_node): Add
4259 `force_tprint()' method.
4260 (token::next): Handle `\O'.
4261 (do_suppress): Implement it.
4262 (html_begin, html_end, html_image): New functions.
4263 (init_output_requests): Renamed to ...
4264 (init_html_requests): this.
4266 (macro::append_str, macro::append_unsigned, macro::append_int): New
4268 New variable `output_low_mark_miny' to limit minimal value of y.
4269 (reset_output_registers): Use it.
4270 (output_request): Removed.
4271 (get_output_registers): New function.
4272 * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
4273 (*_node): Added `force_tprint()' if necessary.
4274 (special_node): New elements `tf' and `get_tfont()'.
4275 (suppress_node): New class.
4276 * src/roff/troff/node.cc:
4277 New global variables `image_no' and `suppress_start_page'.
4278 (real_output_file): New method `is_on()'.
4279 (troff_output_file): New method `start_special(tfont)'.
4280 (troff_output_file::really_print_line): Use `tprint' conditionally.
4281 (real_output_file::print_line): Updated.
4282 (real_output_file::on): Updated.
4283 (*_node): Added `force_tprint()'.
4284 (special_node::special_node): Initializer updated.
4285 (special_node::same, special_node::copy, special_node::tprint_start):
4287 (get_reg_int, get_reg_str): New functions.
4288 (suppress_node::*): New methods.
4289 New global variables last_position, last_image_filename;
4290 (min): New inline function.
4291 * src/roff/troff/reg.h, src/roff/troff/request.h,
4292 src/roff/troff/troff.h: Updated.
4294 2001-01-13 Werner LEMBERG <wl@gnu.org>
4296 * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
4297 documentation of `asciify' request.
4299 2001-01-12 Werner LEMBERG <wl@gnu.org>
4301 * src/roff/troff/input.cc: Move definition of special characters
4302 like `ESCAPE_TILDE' to ...
4303 * src/roff/troff/input.h: New file.
4304 * src/roff/troff/Makefile.sub (HDRS): Add it.
4306 Extending the .asciify request to `unformat' space characters also.
4308 * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
4309 to count input space characters.
4310 Update constructors to take care of it.
4311 * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
4312 `ESCAPE_SPACE' instead of normal space.
4313 (word_space_node::asciify): New method.
4314 (unbreakable_space_node::asciify): New method.
4315 (word_space_node::merge_space): New method.
4316 * src/roff/troff/env.cc (environment::space_newline,
4317 environment::space): Add code to initialize `num_spaces' (using the
4318 constructor of `word_space_node').
4319 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
4322 2001-01-09 Werner LEMBERG <wl@gnu.org>
4324 * man/groff_char.man: Use table header traps only conditionally.
4326 2001-01-09 Bjarni Ingi Gíslason <bjarniig@hi.is>
4328 * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
4330 2001-01-08 Werner LEMBERG <wl@gnu.org>
4332 Introducing the `box' and `boxa' requests which are similar to
4333 `di' resp. `da' but omitting a partially filled line (which is
4334 restored after ending the diversion).
4336 * src/roff/troff/div.h (diversion): Add elements to save partially
4338 * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
4339 partially filled line.
4340 (divert, divert_append): Updated.
4341 (box, box_append): New functions.
4342 (init_div_requests): Use them.
4343 * src/roff/troff/env.h (environment): do_divert() is now a friend.
4344 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4346 * doc/groff.texinfo: Fix documentation of `lf' request.
4348 2000-12-25 Werner LEMBERG <wl@gnu.org>
4350 * src/roff/troff/troff.man, NEWS: Document `writem' request.
4352 2000-12-21 Werner LEMBERG <wl@gnu.org>
4354 Ignore `ss' request if in compatibility mode.
4356 * src/roff/troff/input.cc: Make `compatible_flag' non-static.
4357 * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
4358 * src/roff/troff/env.cc (space_size): Use it.
4360 * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
4361 `ss' request in nroff mode.
4363 * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
4366 2000-12-15 Ruslan Ermilov <ru@FreeBSD.org>
4368 * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
4370 2000-12-13 Werner LEMBERG <wl@gnu.org>
4372 * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
4373 * src/preproc/eqn/neqn.man: Small fixes and additions.
4375 2000-12-13 Ruslan Ermilov <ru@FreeBSD.org>
4377 * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
4380 * src/preproc/eqn/neqn.man: New file.
4382 * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
4385 * tmac/e.tmac: Add `T&' macro.
4386 Fix `indent cannot be negative' warning.
4387 * tmac/s.tmac: Fix `indent cannot be negative' warning.
4389 2000-12-07 Werner LEMBERG <wl@gnu.org>
4391 * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
4393 2000-12-06 Werner LEMBERG <wl@gnu.org>
4395 * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
4398 * MORE.STUFF: Added info about deroff for djgpp.
4400 * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
4401 documentation of -rcR switch.
4403 2000-12-03 Werner LEMBERG <wl@gnu.org>
4405 * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
4406 if -rcR=1 (which is now the default in nroff mode), a single, very
4407 long page is created instead of multiple pages: All `ne' and `wh'
4408 requests are put into conditionals; a new macro `an-end' is added to
4409 be called with `em'.
4411 Some other minor cleanups.
4413 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
4415 2000-12-02 Werner LEMBERG <wl@gnu.org>
4417 Fixing a bug which prevented hyphenation in words followed
4418 immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
4420 * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
4421 Adding possibly_break_line().
4422 * src/roff/troff/env.h (environment): Make possibly_break_line()
4425 Make `\~' usable in .tr request.
4427 * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
4428 (token): Add stretchable_space().
4429 * src/roff/troff/input.cc (token::next, token::delimiter,
4430 token::description, process_input_stack, do_translate,
4431 add_to_node_list, token::process): Use it.
4432 * src/roff/troff/node.h (node): Add fourth parameter to add_char()
4433 for adjusting the space.
4434 * src/roff/troff/node.cc (node::add_char): Implement it. Add code
4435 for stretchable space.
4436 * src/roff/troff/input.cc (token::add_to_node_list): Use it.
4437 (make_node): Add code for stretchable space.
4438 * src/roff/troff/env.cc (environment::add_char): Use it.
4439 * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
4440 (get_copy, token::next, transparent_translate, asciify): Use it.
4442 * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
4443 doc/groff.texinfo: Updated.
4444 * man/groff.man: Small reorderings.
4446 2000-11-23 Werner LEMBERG <wl@gnu.org>
4449 * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
4451 * src/roff/troff/input.cc (main): Add `config_macro_path' and
4452 `safer_macro_path' to -M option.
4453 * src/roff/troff/troff.man: Fixes.
4455 2000-11-22 Werner LEMBERG <wl@gnu.org>
4457 Use safer path (except for config files) if -U isn't specified. Add
4458 a special macro path (without home and current directory) for config
4459 files. Add home directory to unsafe path for consistency. Don't
4460 include the home directory in the font path.
4462 * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
4464 * src/include/macropath.h: Add `config_macrp_path'.
4465 * src/libs/libgroff/fontfile.cc: Fix font path.
4466 * src/roff/troff/input.cc (process_startup_file): Use
4467 `config_macro_path'.
4468 (main): Select unsafe path if -U is given.
4470 * src/preproc/eqn/main.cc (main): Fixing search path for
4472 * src/preproc/eqn/eqn.man: Updated.
4474 * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
4477 * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
4478 src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
4479 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
4480 src/devices/grotty/grotty.man: Updated.
4482 * Makefile.in: Fix comments.
4484 2000-11-17 Werner LEMBERG <wl@gnu.org>
4486 * tmac/safer.tmac: Empty file added (again) for compatibility
4488 * tmac/Makefile.sub: Updated.
4490 2000-11-16 Werner LEMBERG <wl@gnu.org>
4492 * src/devices/grodvi/dvi.cc (main),
4493 src/devices/grohtml2/post-html.cc (main),
4494 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
4495 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
4496 (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
4497 (main), src/preproc/html2/pre-html.cc (main),
4498 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
4499 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
4500 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
4501 (main), src/utils/hpftodit/hpftodit.cc (main),
4502 src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
4503 (main), src/utils/lookbib/lookbib.cc (main),
4504 src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
4505 (main): Use stdout for -v.
4506 * src/roff/groff/groff.cc (run_commands),
4507 src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
4508 to make direct printing to stdout possible.
4509 * src/roff/groff/pipeline.h: Updated.
4511 * src/utils/afmtodit/afmtodit.pl: Add -v switch.
4512 * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
4513 * src/utils/afmtodit/afmtodit.man: Updated.
4515 * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
4516 (version): New function.
4518 * src/utils/addftinfo/addftinfo.man: Updated.
4520 * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
4521 Fixing copyright dates.
4523 * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
4526 * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
4529 * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
4531 2000-11-15 Werner LEMBERG <wl@gnu.org>
4533 In all programs, make -v return immediately with exit status 0 to
4534 be compliant with the GNU standard.
4536 * src/devices/grodvi/dvi.cc (main),
4537 src/devices/grohtml2/post-html.cc (main),
4538 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
4539 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
4540 (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
4541 (main), src/preproc/html2/pre-html.cc (main),
4542 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
4543 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
4544 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
4545 (main): Implement it.
4548 * src/roff/groff/groff.cc (main): Add copyright notice. Add refer
4549 and postprocessors to the -v option.
4551 * src/roff/grog/grog.pl: Implement -v.
4552 * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
4553 * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
4555 * src/roff/nroff/nroff.sh: Implement -v.
4556 * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
4557 * src/roff/nroff/nroff.man: Updated.
4559 * src/preproc/eqn/main.cc (main): Fix comment typo.
4561 * MORE.STUFF: Added info about djgpp port of grap.
4563 2000-11-14 Werner LEMBERG <wl@gnu.org>
4565 * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
4566 mode (or rather, implemented non-compatibility mode).
4567 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
4569 * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
4570 replacing it -- we don't find gxditview otherwise.
4571 * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
4573 * src/preproc/pic/depend: Removed. Unnecessary.
4575 Implemented dummy keyword `solid' in pic for compatibility with
4578 * lex.cc (lookup_keyword): Added `solid'.
4579 * pic.y: Added SOLID with dummy rule.
4580 * pic.cc, pic_tab.h: Regenerated.
4581 * doc/pic.ms: Updated.
4583 2000-11-13 Werner LEMBERG <wl@gnu.org>
4585 For security reasons, don't use the current directory but the home
4586 directory while searching and scanning troffrc and troffrc-end.
4587 Similarly, replace the current directory with the home directory
4590 * Makefile.in (fontpath, tmacpath): Remove current directory.
4592 * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
4593 two parameters `add_home' and `add_current'.
4594 (search_path::~search_path, search_path::command_line_dir,
4595 search_path::open_file): Remove tests for `dirs' being zero.
4596 * src/include/searchpath.h: Adjust.
4597 * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
4599 * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
4601 * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
4602 * src/roff/troff/input.cc: Use `mac_path', initialized with
4604 (process_startup_file): Set `mac_path' to `safer_macro_path'.
4605 * src/roff/troff/env.cc: Use `mac_path'.
4607 * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
4609 * NEWS, man/roff.man, src/roff/troff/troff.man,
4610 src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
4613 2000-11-12 Werner LEMBERG <wl@gnu.org>
4615 * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
4617 * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
4618 * configure.in: Fix typo in comment.
4619 * configure: Regenerated.
4621 * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
4624 2000-11-08 Werner LEMBERG <wl@gnu.org>
4626 Add system tmac directory (/usr/local/lib/groff/site-tmac).
4628 * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
4629 (uninstall_dirs): Add $(libdir), $(libprogramdir), and
4632 * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
4633 * tmac/Makefile.sub (install_data): Create
4634 $(systemtmacdir) and $(localtmacdir).
4635 (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
4636 * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
4637 NEWS, doc/groff.texinfo: Updated and minor fixes.
4639 * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
4640 * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
4641 $(systemtmacdir) since the wrapper files are platform-dependent.
4643 2000-11-01 Werner LEMBERG <wl@gnu.org>
4645 * doc/groff.texinfo: Fix typo.
4647 2000-10-26 Werner LEMBERG <wl@gnu.org>
4649 Convert macros `tmac.XXX' to `XXX.tmac'. Special cases:
4650 tmac.doc.old -> doc-old.tmac
4651 tmac.an.old -> an-old.tmac
4653 * tmac/tmac.*: Moved to ...
4654 * tmac/*.tmac: this.
4655 * tmac/man.local: Fix comment.
4656 * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
4657 tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated.
4658 Added some `FILES' sections. More use of @...@ directives. Other
4660 * arch/djgpp/README, font/devutf8/NOTES: Updated.
4661 * doc/homepage.ms, doc/groff.texinfo: Updated.
4662 * man/groff.man, man/roff.man: Updated.
4663 * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
4664 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
4665 src/devices/grotty/grotty.man: Updated.
4666 * src/preproc/pic/pic.man: Updated.
4667 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
4668 instead of -mdoc.old.
4669 * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
4670 * src/roff/nroff/nroff.man: Updated.
4673 * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
4675 * tmac/mm.diff: Removed -- it has no use now since the mm package
4678 * tmac/*: Removed trailing spaces.
4680 * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
4681 the tmac subdirectory also).
4683 * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
4684 * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
4685 stuff since it is no longer needed.
4687 * README, PROBLEMS: Updated.
4689 2000-10-25 Werner LEMBERG <wl@gnu.org>
4691 Invert current behaviour: Search first FOOBAR.tmac, then
4694 * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
4695 (open_mac_file, macro_source): Implement it.
4696 * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
4697 doc/groff.texinfo, NEWS: Document it.
4699 * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
4700 Small documentation improvements.
4702 * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
4705 * font/devps/Makefile.sub: Fix rules for dingbats.*map.
4707 2000-10-24 Werner LEMBERG <wl@gnu.org>
4709 Add local tmac directory (groff/site-tmac).
4711 * Makefile.in: Add $(localtmacdir).
4712 (uninstall_dirs): Add $(localtmacdir).
4713 * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
4714 * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
4715 in $(localtmacdir). Create $(localtmacdir).
4716 * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
4717 Updated and minor fixes.
4719 Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
4721 * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
4723 2000-10-23 Werner LEMBERG <wl@gnu.org>
4725 Move hyphen.us to tmac directory.
4727 * src/roff/troff/hyphen.us: Removed.
4728 * src/tmac/hyphen.us: Added.
4729 * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
4731 Change installation structure for data files from .../groff/... to
4732 .../groff/<version><revision>/... to be conform with other GNU
4735 * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
4736 doc/Makefile: Implement it.
4737 * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
4738 * configure: Updated.
4739 * arch/djgpp/README, font/devutf8/NOTES: Use it.
4740 * NEWS: Document it.
4741 * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
4742 @MACRODIR@ instead of hard-coded directories.
4744 2000-10-22 Werner LEMBERG <wl@gnu.org>
4746 Implement $GROFF_BIN_PATH environment variable (which defaults to
4747 $bindir) used for child programs of groff and similar wrappers.
4749 * gendefs.sh: Improve documentation.
4750 * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
4751 src/preproc/eqn/Makefile.sub (neqn),
4752 src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
4753 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
4755 * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
4756 $GROFF_PATH__ (the latter for communication with troff).
4757 * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
4759 * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
4760 doc/groff.texinfo: Document it.
4762 * doc/groff.texinfo: Improve documentation of troff's -a option.
4764 2000-10-17 Gaius Mulley <gaius@glam.ac.uk>
4766 * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
4767 non-intrusive eol marker.
4768 (troff_output_file::determine_line_limits): New function.
4769 (troff_output_file::draw): Use it.
4770 * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
4771 output_pending_lines() instead of output_line().
4772 * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
4773 * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
4774 createImage): Small fixes.
4776 2000-10-14 Werner LEMBERG <wl@gnu.org>
4778 Replace tmac.safer with a real secure solution.
4780 * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
4781 system_request, pipe_output): Disable requests if in safer mode.
4782 * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
4783 * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
4784 * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
4785 doc/groff.texinfo, src/roff/groff/groff.man,
4786 src/roff/troff/troff.man, arch/djgpp/README: Updated.
4788 * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
4789 (resource_manager::output_prolog): Replace setenv() with putenv().
4791 2000-10-09 Werner LEMBERG <wl@gnu.org>
4793 * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
4794 src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
4795 src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
4796 src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
4797 compilation errors with some compilers. It seems that this code
4798 is no longer necessary -- if yes, it is easy to add some #ifdef's
4799 for that particular old-fashioned compiler.
4801 * MORE.STUFF: Added info about Meta-tbl.
4803 * doc/groff.texinfo: Added more info about `.if "..."..."'.
4805 2000-10-07 Werner LEMBERG <wl@gnu.org>
4807 Adding a new escape sequence \B'...': If the string between
4808 the delimiters is a valid numeric expression, return the character
4809 `1', and `0' otherwise. This is an analogon to \A.
4811 * src/roff/troff/input.cc (do_expr_test): Implement it.
4812 (token::next): Use it.
4813 * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
4815 * tmac/tmac.trace: Made independent from escape character.
4817 2000-10-06 Werner LEMBERG <wl@gnu.org>
4819 Adding a new request .dei: define indirect. The first and second
4820 parameter of .dei are taken from string registers instead directly;
4821 this very special request is needed to make tmac.trace independent
4822 from the escape character (which might even be disabled).
4824 * src/roff/troff/input.cc (do_define_macro): Implement it.
4825 (define_macro_indirect): New function.
4826 (init_input_requests): Use it.
4828 Adding two requests .ecs and .ecr: Save and restore the escape
4829 character. These two requests are needed to make tmac.trace
4830 independent from the escape character (which might even be
4833 * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
4835 (init_input_requests): Use it.
4837 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
4839 2000-09-22 Ricardo Soares Guimarães <ricardo@conectiva.com.br>
4841 Adding a new option -P and new environment variable GROPS_PROLOGUE
4842 to grops, selecting a different prologue file (minor modifications
4845 * src/devices/grops/psrm.cc (resource_manager::output_prolog),
4846 src/devices/grops/ps.cc (main): Implement it.
4847 * src/devices/grops/grops.man, NEWS: Document it.
4849 2000-09-22 Werner LEMBERG <wl@gnu.org>
4851 * INSTALL: Add info about selecting paper format.
4853 2000-09-21 Werner LEMBERG <wl@gnu.org>
4855 * src/roff/troff/input.cc (main): Fixing compiler warning.
4856 * src/include/{driver.h, lib.h}: Move inclusion of string.h and
4857 strings.h from the former to the latter.
4858 * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
4859 stuff from the former to the latter.
4861 2000-09-11 Werner LEMBERG <wl@gnu.org>
4863 Implementing two new requests .tm1 and .tmc: The former is similar
4864 to .tm but can output leading spaces; its syntax is similar to
4865 defining a string, i.e., a `"' can be used to mark the beginning of
4866 the string to be written to stderr: `.tm1 " test'. The latter is
4867 similar to .tm1 but doesn't write out a final newline character.
4869 * src/roff/troff/input.cc (terminal1, terminal_continue,
4870 do_terminal): New functions.
4871 (init_input_requests): Use them.
4872 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
4874 2000-09-09 Werner LEMBERG <wl@gnu.org>
4876 * tmac/groff_mdoc.samples.man: Small fixes.
4878 2000-09-08 Werner LEMBERG <wl@gnu.org>
4880 * tmac/groff_mdoc.man: Fixing typo.
4882 2000-09-02 Werner LEMBERG <wl@gnu.org>
4884 Implementing a .nop request which does nothing.
4886 * src/roff/troff/input.cc (nop_request): New function.
4887 (init_input_requests): Use it.
4888 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
4890 2000-09-01 Werner LEMBERG <wl@gnu.org>
4892 * doc/groff.texinfo: Added some comments.
4894 2000-08-30 Werner LEMBERG <wl@gnu.org>
4896 * src/roff/troff/TODO: Updated.
4898 2000-08-25 Werner LEMBERG <wl@gnu.org>
4900 * doc/groff.texinfo: Fix comment how to compile the DVI file.
4902 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
4904 * font/devps/generate/Makefile (SHELL): Define explicitly to
4905 "/bin/sh", for non-Unix platforms.
4906 (extraclean): Use a more portable "" quoting instead of a
4907 backslash (which doesn't work on DOS/Windows).
4909 * font/devlj4/generate/Makefile (extraclean): Ditto.
4911 * font/devdvi/generate/Makefile (extraclean): Ditto.
4913 2000-08-25 Werner LEMBERG <wl@gnu.org>
4915 * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
4916 src/roff/troff/troff.man: Document Eli's latest changes.
4918 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
4920 * src/roff/troff/input.cc (open_mac_file, macro_source): Support
4921 macro file names of the form NAME.tmac as well as tmac.NAME.
4923 2000-08-25 Werner LEMBERG <wl@gnu.org>
4925 * src/include/posix.h: Remove definition of FILENAME_MAX.
4927 * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
4928 `sys_fatal' and `stop' function().
4930 * test-groff: Updated.
4932 2000-08-24 Gaius Mulley <gaius@glam.ac.uk>
4934 Added the new troff command .output <arg> to suppress output (while
4935 still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
4936 registers (for passing the output dimensions to the output device).
4938 * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
4940 * src/roff/troff/node.h, src/roff/troff/node.cc
4941 (troff_output_file::really_print_line,
4942 ascii_output_file::really_print_line,
4943 supress_output_file::really_print_line): Use `width' parameter.
4944 (troff_output_file::really_on, troff_output_file::really_off,
4945 output_file::on, output_file::off, real_output_file::on,
4946 real_output_file::off, real_output_file::really_on,
4947 real_output_file::really_off): New functions.
4948 (real_output_file:public output_file): New variable `output_on'.
4949 (real_output_file::begin_page, real_output_file::copy_file,
4950 real_output_file::transparent_char, real_output_file::print_line):
4952 (real_output_file::print_line): Use check_output_limits.
4953 * src/roff/troff/reg.h, src/roff/troff/request.h,
4954 src/roff/troff/input.cc (assign_registers): New function to remove
4956 (do_ps_file): Use it.
4957 (check_output_limits, reset_output_registers, output_request,
4958 init_output_requests): New functions.
4959 (init_input_requests): Updated.
4961 Added new grohtml2 device and html2 preprocessor (coding
4962 not yet finished) which will eventually replace grohtml.
4964 * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
4966 * src/include/htmlindicate.h, src/include/htmlindicate
4967 (html_begin_suppress, html_end_suppress): New functions.
4968 * src/preproc/tbl/main.cc: Use it.
4969 * src/roff/groff/groff.cc: Add support for html2 device (which will
4970 automatically invoke the html2 preprocessor).
4971 * src/roff/troff/input.cc (is_html2): New variable.
4972 * src/roff/troff/troff.h, src/roff/troff/env.h,
4973 src/roff/troff/env.cc (environment::add_html_tag): New function
4975 (environment::do_break): Use it.
4976 * font/devhtml2/*: New files.
4977 * src/devices/grohtml2: New device.
4978 * src/preproc/html2: New preprocessor.
4979 * tmac/tmac.html-tags, tmac/tmac.html2: New files.
4981 2000-08-23 Werner LEMBERG <wl@gnu.org>
4983 * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
4985 2000-08-22 Werner LEMBERG <wl@gnu.org>
4987 * src/include/lib.h: Provide a fix for IRIX to not include
4990 2000-08-18 Werner LEMBERG <wl@gnu.org>
4992 * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
4993 since some non-GNU sed programs can't handle null regexps.
4994 * configure, src/preproc/eqn/Makefile.sub,
4995 src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
4997 * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
4998 bug (string.h and strings.h are both needed according to latest
5001 * MORE.STUFF: Added info about unroff and troffcvt.
5003 2000-08-08 Werner LEMBERG <wl@gnu.org>
5005 * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
5008 * tmac/tmac.man.old: Remove unused number register.
5010 * tmac.doc: Minor documentation fix.
5012 2000-08-07 Paul Eggert <eggert@twinsun.com>
5014 * src/roff/groff/pipeline.c (is_system_shell):
5015 Fix typo: "monocased_shell" no longer exists.
5017 2000-08-07 Paul Eggert <eggert@twinsun.com>
5019 Remove FILENAME_MAX limits.
5021 * src/roff/groff/pipeline.c (is_system_shell): Do not assume
5022 that the argument length is less than FILENAME_MAX.
5023 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
5024 Use struct hack to allocate and free file name.
5025 (struct xtmpfile_list): fname is now part of the structure,
5026 not a pointer to another string.
5028 2000-08-07 Tom Schmidt <tschmidt@micron.com>
5030 * src/include/posix.h: Add a default value for FILENAME_MAX.
5032 2000-08-06 Paul Eggert <eggert@twinsun.com>
5034 Add support for new BSD-style man pages (with ".Dd" instead of
5035 ".TH"), so that "groff -man" understands both styles, even
5036 when running "groff -man" on a host whose system man page
5037 macros don't support ".Dd".
5039 * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
5040 (stamp-wrap): Source tmac.andoc first when wrapping man macros,
5041 in case the system man macros don't define Dd or TH.
5043 * tmac/tmac.an.old: Renamed from tmac/tmac.an.
5044 * tmac/tmac.an: New one-line file.
5045 * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
5047 2000-08-06 Werner LEMBERG <wl@gnu.org>
5049 * src/roff/troff/troff.man: Fixing typos.
5051 Version 1.16.1 released
5052 =======================
5054 2000-07-31 Werner LEMBERG <wl@gnu.org>
5056 Preparing release 1.16.1.
5058 * REVISION: Revision number set to 1.
5059 * MORE.STUFF: Added info about port to DOS.
5060 * NEWS, win32-diffs: Updated.
5062 * src/include/nonposix.h: Remove first line -- this file is used
5065 * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
5068 2000-07-30 Werner LEMBERG <wl@gnu.org>
5070 * doc/texinfo.tex: Update to latest version.
5072 2000-06-28 Paul Eggert <eggert@twinsun.com>
5074 * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
5075 commands that fail. Don't assume that "export a=b" is valid shell
5076 syntax. This is needed for Solaris 2.5.1.
5078 * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
5079 comment about missing Solaris headers.
5081 * PROBLEMS: Add section about problems with Sun Make and VPATH.
5083 2000-06-25 Werner LEMBERG <wl@gnu.org>
5085 * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
5088 * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
5090 * win32-diffs: Updated.
5091 * README.WIN32: Added CRs to make all Windows editors happy.
5093 * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
5094 src/roff/groff/pipeline.c).
5096 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
5098 * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
5099 $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
5101 2000-06-17 Eli Zaretskii <eliz@is.elta.co.il>
5103 * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
5104 (tfm::load, gf::load): Open tfm and gf files in binary mode: these
5106 (main): Support non-Posix systems with several different styles of
5107 slash characters in file names.
5109 * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
5110 (main) [SET_BINARY]: Switch stdin into binary mode.
5112 * src/utils/indxbib/indxbib.cc: #include nonposix.h.
5113 (main): Support file names with several possible slash-type
5114 characters, as given by DIR_SEPS[] in nonposix.h.
5115 (main) [__MSDOS__]: If renaming the temporary index file fails
5116 because it has more than one dot in its trunk, replace the dot
5117 with an underscore and try again.
5118 (do_file): Use FOPEN_RB instead of "r". Skip every CR before a
5120 [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
5122 * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
5123 (File::File): Open the input file in binary mode. Strip CR
5124 characters from each CR-LF pair.
5125 (xbasename): Support file names with several possible slash-type
5126 characters, as given by DIR_SEPS[] in nonposix.h.
5128 * src/include/Makefile.sub (HDRS): Add nonposix.h.
5130 * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
5131 (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
5132 [!_POSIX_VERSION]: Define for traditional Unix systems.
5133 (real_output_file::real_output_file): Remove the MSVC-specific
5134 call to popen, use instead POPEN_WT, appropriately defined on
5135 nonposix.h. #include nonposix.h.
5136 (real_output_file::~real_output_file): Remove the MSVC-specific
5137 call to pclose, a suitable macro is now defined on nonposix.h.
5138 Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
5139 and WEXITSTATUS instead of assuming traditional Unix
5140 interpretation of the status returned by pclose.
5142 * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
5143 call to popen, use POPEN_RT instead (appropriately defined on
5144 nonposix.h). #include nonposix.h.
5145 (ps_bbox_request): Open the PostScript file in binary mode.
5146 Close the file after processing it.
5147 (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
5150 * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
5151 A version of run_pipeline that doesn't use `fork'.
5152 (signal_catcher) [__MSDOS__ || _WIN32]: New function.
5153 (system_shell_name, system_shell_dash_c)
5154 (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
5155 the ugliness of testing DOS/Windows file names for equality, and
5156 support both stock shells and ports of Unix shells.
5158 * src/roff/groff/groff.cc: #include nonposix.h.
5159 (BSHELL): Definition moved to nonposix.h.
5160 (main): Use PATH_SEP[0] instead of literal ':'. Use BSHELL_DASH_C
5161 instead of a literal "-c".
5162 (xbasename): Support file names with several possible slash-type
5163 characters, as given by DIR_SEPS[] in nonposix.h.
5164 (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
5167 * src/preproc/soelim/soelim.cc: #include nonposix.h.
5168 (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
5170 * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
5173 * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
5175 * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
5178 * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
5180 * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
5181 P_tmpdir is defined, use it instead of the literal "/tmp".
5182 (remove_tmp_files, add_tmp_file): New functions.
5183 (xtmpfile): Record temporary files and register an atexit function
5184 to delete them explicitly, instead of relying on the OS to do
5185 that, which doesn't work on non-Unix systems.
5187 * src/libs/libgroff/searchpath.cc: #include nonposix.h.
5188 (search_path::search_path): Use PATH_SEP instead of a literal
5190 (search_path::command_line_dir): Ditto.
5191 (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
5192 to support non-Posix systems.
5194 * src/libs/libbib/search.cc: #include nonposix.h.
5195 (search_list::add_file): Open the file in binary mode.
5197 * src/libs/libbib/linear.cc: #include nonposix.h.
5198 (file_buffer::load): Remove \r characters preceding \n from the
5201 * src/libs/libbib/index.cc: #include nonposix.h.
5202 (make_index_search_item): Open index_filename in O_BINARY mode.
5203 (index_search_item_iterator::get_tag): Ditto. Remove \r
5204 characters before \n characters.
5205 (index_search_item::check_files): Open files in binary mode.
5206 (index_search_item::munge_filename): Support DOS-style file names
5207 with backslashes and drive letters, use IS_ABSOLUTE.
5209 * src/devices/grops/ps.cc: #include nonposix.h.
5210 (main) [SET_BINARY]: Switch stdout to binary mode.
5212 * src/devices/grolj4/lj4.cc: #include nonposix.h.
5213 (main) [SET_BINARY]: Switch stdout to binary mode.
5215 * src/devices/grolbp/lbp.cc: #include nonposix.h
5216 (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
5218 * src/devices/grodvi/dvi.cc: #include nonposix.h.
5219 [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
5221 (main) [SET_BINARY]: Switch stdout to binary mode.
5222 [_MSC_VER]: Remove an explicit call to _setmode.
5224 * src/include/nonposix.h: New file.
5226 * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
5227 operation when building with DJGPP.
5228 ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
5229 ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
5232 * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
5234 (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
5235 etc. can include a semi-colon on DOS/Windows.
5236 (depend.temp): Use depend1.temp instead of depend.temp1, to
5237 prevent files from overerwiting each other on 8+3 filesystems.
5239 * gendef.sh (t): Change definition to work with DOS/Windows.
5241 doc/groff.texinfo: Apart of some typo corrections, I also changed
5242 some index entris, to make them more non-ambiguous, and also put
5243 @ignore around some parts that are not yet written, to allow the
5244 Info output be readable.
5246 2000-06-10 Gael Queri <gqueri@mail.dotcom.fr>
5248 Replaced specific checks for function declarations with a generic
5249 routine taken from GNU bfd.
5251 * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
5252 GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
5253 * configure.in: Use it.
5254 * src/devices/grolbp/lbp.cc, src/include/lib.h,
5255 src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
5256 src/roff/groff/groff.cc: Use it.
5257 * Makefile.in, configure: Updated.
5259 2000-06-07 Paco Andrés Verdú <pandres@dragonet.es>
5261 * src/devides/grolbp/lbp.h: Removed unused variables.
5263 2000-05-31 Keith Thompson <kst@sdsc.edu>
5265 * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
5268 2000-05-31 Werner LEMBERG <wl@gnu.org>
5270 * aclocal.m4 (GROFF_SRAND): New function to test the return value
5271 of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
5272 * configure.in: Use it.
5273 * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
5274 * configure, Makefile.in: Updated.
5276 * configure.in: Add test for strncasecmp().
5277 * src/include/lib.h: Use it.
5279 2000-05-29 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
5281 * src/preproc/grn/Makefile.sub: Add MLIB.
5283 2000-05-29 Nix <nix@esperi.demon.co.uk>
5285 * Makefile.in: Use @datadir@ and @mandir@ appropriately.
5287 2000-05-29 Werner LEMBERG <wl@gnu.org>
5289 * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
5291 * PROBLEMS: Small update.
5293 * src/devices/grolbp/lbp.cc: Various small fixes.
5295 2000-05-28 Keith Thompson <kst@sdsc.edu>
5297 * src/roff/nroff/nroff.sh: Fix main loop syntax.
5299 * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
5301 2000-05-25 Werner LEMBERG <wl@gnu.org>
5303 * man/roff.man: Removed unused macro.
5305 2000-05-24 Werner LEMBERG <wl@gnu.org>
5307 * Makefile.in (dist): Remove src/xditview/Imakefile explicitly.
5308 This is needed e.g. if you do
5309 `make distclean; ./configure; make dist'.
5311 Version 1.16 released
5312 =====================
5314 2000-05-23 Werner LEMBERG <wl@gnu.org>
5316 Adding font CWI (constant width italic) to devdvi.
5318 * font/devdvi/CWI: New file.
5319 * font/devdvi/generate/Makefile: Add generating rule.
5320 * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
5321 tmac/tmac.dvi: Use it.
5322 * NEWS: Announce it.
5324 * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
5325 * font/devlj4/generate/Makefile: Cosmetic changes only.
5327 * man/groff.man: Removed most of the redundant description of
5328 special characters (which is in groff_char.man). Added font
5329 translation CB->CR for devdvi. Other minor fixes.
5331 * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
5332 (registered) symbols.
5334 2000-05-22 Werner LEMBERG <wl@gnu.org>
5336 * doc/Makefile: Added rule for creating info files.
5338 * font/devdvi/*: Added kernings for `cq' glyph. Updated to latest
5340 * font/devdvi/generate/Makefile: Fixed dependencies.
5342 * font/devps/*: Regenerated. Heavy changes for Bookman and
5343 NewCentury Schoolbook!
5344 * font/devps/generate/afmname: Will now run with GNU awk.
5345 * font/devps/generate/textmap: Added forgotten `cq' glyph name.
5346 * font/devps/generate/Makefile: Cosmetic changes only.
5348 2000-05-21 Werner LEMBERG <wl@gnu.org>
5350 * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
5351 10, 11, or 12) to support output with 11pt and 12pt base font sizes.
5352 `.SS' now produces a heading with a smaller size than `.SH'.
5353 Completely formatted.
5354 * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
5356 * man/groff.man: Improved table appearance. Use of `eo' request
5357 to reduce number of doubled backslashes in macro definitions.
5358 Replacing `\e' with `\(rs'. Other minor fixes.
5360 * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
5361 to have correct line number.
5363 * INSTALL: Small improvement.
5365 2000-05-20 Bernd Warken <bwarken@mayn.de>
5367 * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
5370 2000-05-19 Bernd Warken <bwarken@mayn.de>
5372 * man/groff.man: Complete update (with a lot of corrections by WL).
5374 2000-05-18 Werner LEMBERG <wl@gnu.org>
5376 Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
5378 * font/*/*: Implement it.
5379 * man/groff_char.man, NEWS: Document it.
5381 * src/include/unix.h: Removed. It isn't used.
5383 * doc/groff.texinfo: Slight improvements.
5385 2000-05-17 Werner LEMBERG <wl@gnu.org>
5387 * README, win32-diffs: Small fixes and improvements.
5389 2000-05-16 Werner LEMBERG <wl@gnu.org>
5391 * FDL: New file (the Free Documentation License version 1.1).
5393 * doc/groff.texinfo: Added many start-up values for gtroff.
5394 Some structural improvements of the source code.
5396 2000-05-15 Werner LEMBERG <wl@gnu.org>
5398 * src/roff/troff/input.cc: Added small comment about troffrc-end.
5399 * src/roff/troff/troff.man: Added info about troffrc-end.
5401 2000-05-14 Werner LEMBERG <wl@gnu.org>
5403 * Makefile.in (EXTRADIRS): Fix typos.
5404 (dist): Handle deletion of old .tar.gz file correctly.
5405 (DISTDIRS): Include all tty output devices.
5407 * doc/groff.texinfo: Adding more cross references; countless other
5410 2000-05-13 Werner LEMBERG <wl@gnu.org>
5412 * MORE.STUFF: Added Robert Marks's utilities.
5414 2000-05-12 Werner LEMBERG <wl@gnu.org>
5416 Added win32 port contributed by Blake McBride
5417 <blake@florida-software.com>.
5419 * README.WIN32, win32-diffs: New files.
5422 * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
5423 (tmove, tmove2): Added parentheses to avoid compiler warnings.
5424 (change): Removed unused variables.
5426 * src/preproc/grn/main.cc (main, conv): Removed unused variables.
5427 (savebounds): Changed return value from `int' to `void'.
5428 * src/preproc/grn/hdb.cc: Ditto.
5430 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
5431 final backslash in comment to avoid compiler warning.
5433 * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
5435 * doc/groff.texinfo: More fixes.
5437 2000-05-11 OKAZAKI Tetsurou <okazaki@be.to>
5439 * tmac/tmac.doc: Documentation fix.
5441 2000-05-11 Werner LEMBERG <wl@gnu.org>
5443 * doc/groff.texinfo: Reading the source code shows up a lot of
5444 omissions and incorrect data... More conversion to @Deffn macros.
5446 2000-05-10 Werner LEMBERG <wl@gnu.org>
5448 * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
5451 * src/roff/troff/request.h: Removing unused `no_break_flag'.
5453 2000-05-09 Werner LEMBERG <wl@gnu.org>
5455 * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
5458 * doc/groff.texinfo: Extended history section. More conversion to
5459 @Deffn macros. More .tr documentation.
5461 2000-05-07 Werner LEMBERG <wl@gnu.org>
5463 * doc/groff.texinfo: Completed tab section. Added info about
5466 2000-05-06 Mike MacIsaac <mikemac@us.ibm.com>
5468 * PROBLEMS: Describe configure script fix for OS/390 Unix.
5470 2000-05-05 Werner LEMBERG <wl@gnu.org>
5472 * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
5474 * NEWS: Document it.
5476 * man/troff.man: Minor optical improvements.
5478 2000-05-03 Werner LEMBERG <wl@gnu.org>
5480 Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
5482 * font/*/*: Implement it.
5483 * man/groff_char.man, NEWS: Document it.
5485 2000-05-02 Werner LEMBERG <wl@gnu.org>
5487 * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
5489 * NEWS: Document the three new man pages.
5491 * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
5492 * configure: Updated.
5494 * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
5496 2000-05-01 Werner LEMBERG <wl@gnu.org>
5498 Added grap support to grog.
5500 * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
5501 * src/roff/grog/grog.man: Document it.
5503 * doc/groff.texinfo, NEWS: Add info about grap support.
5505 Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
5506 (with slight fixes by me).
5508 * tmac/groff_tmac.man: New file documenting tmac mechanism.
5509 * tmac/Makefile.sub: Add groff_tmac.man.
5510 * man/roff.man: New file giving overview of roff system.
5511 * man/troff.man: A short reference of troff.
5512 * man/Makefile.sub: Add roff.man and troff.man.
5514 2000-04-30 Werner LEMBERG <wl@gnu.org>
5516 Added grap support to groff.
5518 * src/roff/groff/groff.cc: Implement it.
5519 * src/roff/groff/groff.man: Document it.
5521 * src/devices/grotty/grotty.man: Add cp1047 device.
5522 * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
5524 * src/roff/groff/groff.man: Ditto.
5525 * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
5526 * doc/groff.texinfo: Ditto.
5528 * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
5531 2000-04-29 Werner LEMBERG <wl@gnu.org>
5533 * man/groff_char.man: Add `pc' glyph.
5534 * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
5535 * tmac/tmac.tty: Add `pc' glyph.
5536 * tmac/tmac.tty-char: Use/add `pc' glyph. Don't call tmac.latin1 if
5537 we use cp1047 output device.
5539 * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
5540 there are still hardcoded latin1->unicode values in utf8's font
5542 * configure: Updated.
5543 * NEWS: Minor clarification. Updated.
5545 * PROBLEMS: Formatted. Added info about C++ fix pack for OS/390
5548 2000-04-28 Werner LEMBERG <wl@gnu.org>
5550 Adding EBCDIC code page 1047.
5552 * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
5553 font/devcp1047/DESC.proto: New files.
5555 * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
5556 either ascii/latin1 or cp1047.
5557 * Makefile.in: Use it.
5558 * configure: Updated.
5560 Replacing and/or adding `md' (mathdot) glyph with `pc'
5561 (periodcentered) in all text fonts.
5563 * font/*/*: Change it.
5565 2000-04-27 Werner LEMBERG <wl@gnu.org>
5567 * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
5569 * configure.in: Add check for strings.h.
5570 * src/include/driver.h: Use HAVE_STRINGS_H.
5571 * src/devices/grolbp/lpb.cc: Remove string.h.
5573 * src/include/groff-getopt.h: New file. It will be used instead of
5574 getopt.h (to be included in lib.h) to avoid endless problems with
5575 picky C++ compilers.
5576 * src/include/lib.h: Use groff-getopt.h.
5577 * src/include/Makefile.sub: Updated.
5579 * configure: Updated.
5580 * Makefile.in: Updated.
5582 * NEWS: Mention EBCDIC support.
5584 2000-04-26 Werner LEMBERG <wl@gnu.org>
5586 * TODO: Some additions.
5588 2000-04-25 Werner LEMBERG <wl@gnu.org>
5590 * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
5593 2000-04-23 Werner LEMBERG <wl@gnu.org>
5595 * src/roff/troff/troff.man: Minor fixes.
5597 2000-04-22 Werner LEMBERG <wl@gnu.org>
5599 * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
5600 `.T' string register and the incompatible definition of the `.T'
5601 number register (compared to Unix troff).
5603 * man/groff_char.man: Add some missing characters.
5604 * font/devutf8/NOTES: Update.
5606 2000-04-21 Werner LEMBERG <wl@gnu.org>
5608 * src/include/htmlindicate.h, src/include/lib.h,
5609 src/include/posix.h: Fix copyright.
5611 * src/include/Makefile.sub: Update.
5613 2000-04-20 Werner LEMBERG <wl@gnu.org>
5615 * src/roff/troff/input.cc (input_char_description): Removing
5616 superfluous space char.
5618 * tmac/tmac.X: Fix typo \(bq -> \(Bq.
5620 * doc/groff.texinfo: Document EBCDIC.
5622 2000-04-19 Werner LEMBERG <wl@gnu.org>
5624 Introducing `shc' as the glyph name for the soft hyphen character.
5626 * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
5627 font/devlatin1/R.proto: Use it.
5631 2000-04-18 Werner LEMBERG <wl@gnu.org>
5633 * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
5634 dependency on ASCII order.
5636 2000-04-16 Sandor BARANY <S.Barany@infosys.tuwien.ac.at>
5638 * src/libs/libgroff/illegal.c: Added EBCDIC table.
5639 * src/roff/troff/input.cc: Added adaptation to EBCDIC.
5641 * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
5642 to increase portability.
5644 2000-04-15 Werner LEMBERG <wl@gnu.org>
5646 * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
5647 Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
5648 the generic `\n' if under OS/390 Unix.
5650 * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
5652 * configure: Regenerated.
5654 2000-04-14 Werner LEMBERG <wl@gnu.org>
5656 * doc/groff.texinfo: More conversions to @Deffn.
5658 2000-04-12 Werner LEMBERG <wl@gnu.org>
5660 * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
5663 * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
5665 2000-04-10 Werner LEMBERG <wl@gnu.org>
5667 * doc/groff.texinfo: More conversions to @Deffn.
5669 2000-04-08 Werner LEMBERG <wl@gnu.org>
5671 * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
5672 Updated to latest version (glibc 2.1.3).
5674 2000-04-07 Werner LEMBERG <wl@gnu.org>
5676 * doc/Makefile (clean): Include more index files.
5677 Add rule texinfo->dvi.
5679 2000-04-05 Werner LEMBERG <wl@gnu.org>
5681 * doc/groff.texinfo: Added new index `op' for operators. More
5682 info on end of sentence characters. More use of @Deffn.
5684 2000-03-30 Werner LEMBERG <wl@gnu.org>
5686 * */*.man: Adding a note that a whitespace can be inserted between
5687 a command line option and its parameter -- we are using GNU getopt.
5689 * src/roff/groff/groff.man: Add example of `-m mandoc'.
5691 2000-03-28 Werner LEMBERG <wl@gnu.org>
5693 Correct anachronism of calling the man macro file with `-man'
5694 instead of `-m man' etc.
5696 * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
5697 tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
5698 load tmac.<package>.
5700 * tmac/Makefile.sub: Updated. Take care of $(tmac_an_prefix) etc.
5704 * doc/groff.texinfo: Updated.
5706 * tmac/groff_man.man: Copyright added.
5708 2000-03-27 Werner LEMBERG <wl@gnu.org>
5710 * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
5711 typeset the request resp. escape name with a tt font -- due to a
5712 bug in texinfo.tex it is necessary to use the `-e' switch with
5715 Improving info about usage of groff units.
5719 2000-03-20 Werner LEMBERG <wl@gnu.org>
5721 * doc/groff.texinfo: Added section about man macro package
5722 (I've basically taken groff_man.man). Introducing new indices `ma'
5723 for macros/strings and `gl' for glyph names. Other minor fixes.
5725 * tmac/groff_man.man: Fixed some typos.
5727 2000-03-19 Werner LEMBERG <wl@gnu.org>
5729 * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
5732 * doc/texinfo.tex: New file.
5734 2000-03-18 Werner LEMBERG <wl@gnu.org>
5736 * doc/groff.texinfo: Improved section on number registers. Other
5739 2000-03-16 Werner LEMBERG <wl@gnu.org>
5741 * src/roff/groff/groff.man: Added info about grolbp. Make nicer
5744 * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
5745 src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
5746 src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
5747 src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
5749 * src/preproc/grn/grn.man: Better synopsis; added copyright.
5751 * src/roff/grog/grog.man: Updated copyright date.
5753 2000-03-14 Francisco Andrés Verdú <pandres@dragonet.es>
5755 * configure.in: Added test for strdup.
5757 * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
5760 Replaced dynamic allocation of arrays `[...]' with `new' operator.
5764 2000-03-12 OKAZAKI Tetsurou <okazaki@be.to>
5766 * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
5768 2000-03-11 Werner LEMBERG <wl@gnu.org>
5770 * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
5772 * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
5773 * src/include/lib.h: Remove some spaces.
5775 2000-03-10 Werner LEMBERG <wl@gnu.org>
5777 * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
5778 initializers from arguments (some compilers don't like this).
5780 2000-03-09 Gaius Mulley <gaius@glam.ac.uk>
5782 * src/libs/libgroff/htmlindicate.cc: Added library file which is now
5783 used by pic and eqn to tell grohtml where the graphic regions start
5785 * src/libs/libgroff/Makefile.sub: Use it.
5786 * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
5787 graphic_start() and graphic_end() from htmlindicate.cc.
5789 2000-03-09 Werner LEMBERG <wl@gnu.org>
5791 * tmac/tmac.safer: Will now work correctly in compatibility mode.
5792 * tmac/groff_man.man: More fixes.
5794 2000-03-08 Werner LEMBERG <wl@gnu.org>
5796 * doc/Makefile: Added texput.log to the `clean' target.
5797 * doc/groff.texinfo: Added info about delimiters for escapes.
5799 2000-03-08 Bernd Warken <bwarken@mayn.de>
5801 * src/preproc/pic/pic.man: Add info on conversion of pic images to
5802 other graphic formats.
5804 2000-03-07 OKAZAKI Tetsurou <okazaki@be.to>
5806 * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
5807 src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
5808 src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
5811 2000-03-07 Werner LEMBERG <wl@gnu.org>
5813 * doc/groff.texinfo: Spelling fixes.
5815 2000-03-06 Werner LEMBERG <wl@gnu.org>
5817 * tmac/groff_man.man: Completely revised to cover everything in
5820 * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
5821 Other minor fixings.
5822 * src/roff/troff/env.cc (environment_copy): Improve error message and
5824 * src/roff/troff/TODO: Updated.
5826 * doc/Makefile: Bug fixes -- this is still provisional, though...
5828 * tmac/eqnrc: Small fixes.
5830 2000-03-05 Abramo Bagnara <abramo@alsa-project.org>
5832 Adding a request `evc' to copy environments.
5834 * src/roff/troff/env.cc (environment::copy, environment_copy):
5836 * src/roff/troff/env.h: Add prototype.
5838 2000-03-05 Francisco Andrés Verdú <pandres@dragonet.es>
5840 Adding strsep() -- Solaris 8 doesn't have it.
5842 * configure.in: Test it.
5843 * src/devices/grolbp/lbp.cc: Add code.
5845 2000-03-05 Werner LEMBERG <wl@gnu.org>
5847 * src/roff/troff/div.cc (macro_diversion::output,
5848 top_level_diversion::output): Fixing an incompatibility with
5849 original troff: \x'0' updates the .a register also. Thanks to
5850 <Andries.Brouwer@cwi.nl> for pointing this out.
5851 * doc/groff.texinfo: Document it.
5853 * Makefile.in: Create Makefile.dep if necessary before calling the
5854 submake process to avoid warning about nonexistent file.
5856 * NEWS, PROJECTS: Updated.
5858 2000-03-04 Werner LEMBERG <wl@gnu.org>
5860 * tmac/troffrc: Add tmac.lbp.
5862 2000-03-03 Francisco Andrés Verdú <pandres@dragonet.es>
5864 * tmac/tmac.lbp: New file.
5865 * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
5868 2000-03-03 Werner LEMBERG <wl@gnu.org>
5870 * Makefile.in: Fixing $(subdir).
5872 * README, NEWS: Small fixes.
5874 * test-groff: Adding path to grolbp.
5876 * configure.in: The (new) file src/xditview/Imakefile.in will be
5877 also configured -- it is now possible to build gxditview in a
5878 directory different from $srcdir.
5880 2000-03-02 Blake McBride <blake@florida-software.com>
5882 * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
5884 * MORE.STUFF: Added website of bell labs and info about plot2dev.
5886 2000-03-01 Colin Phipps <crp22@cam.ac.uk>
5888 * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
5891 2000-02-29 Werner LEMBERG <wl@gnu.org>
5893 Adding GNU getopt to the groff distribution.
5895 * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
5897 * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
5898 * aclocal.a4: Remove GROFF_GETOPT function.
5899 * configure.in, Makefile.in, PROBLEMS: Update.
5900 * src/include/lib.h: Replace getopt tests with getopt.h.
5901 * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
5903 * doc/groff.texinfo: Further checking/updating. Adding more index
5906 * man/groff_out.man: Fix nroff mode activation (for emacs).
5907 * man/groff_font.man: Add missing ligature.
5909 2000-02-28 Werner LEMBERG <wl@gnu.org>
5911 * doc/groff.texinfo: Further checking/updating. Adding more index
5914 * src/devices/grolbp/grolbp.man: Added a comment line at the
5915 beginning of the file (similar to shell scripts) which indicates
5916 that `tbl' should be used as a preprocessor.
5918 2000-02-27 Blake McBride <blake@florida-software.com>
5920 Adapting groff to MS Visual C++ 6.0 compiler (tested with
5921 Windows NT 4.0). Uses _MSC_VER define where necessary.
5923 * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
5924 * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
5925 * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
5926 src/include/lib.h, src/libs/libgroff/errarg.cc,
5927 src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
5928 src/preproc/refer/label.y, src/preproc/refer/label.cc,
5929 src/roff/groff/pipeline.c, src/roff/troff/column.cc,
5930 src/roff/troff/div.cc, src/roff/troff/env.cc,
5931 src/roff/troff/input.cc, src/roff/troff/node.cc,
5932 src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
5933 if_to_a() to avoid name clashes.
5934 * src/include/posix.h: Don't use unistd.h.
5935 * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
5936 clause for integrating non-Unix xtmpfile() code.
5937 * src/roff/troff/input.cc: Adding `public' keyword to macro_header
5938 structure; use "rt" for popen() in pipe_source(); add getpid()
5940 * src/roff/troff/node.cc: Use special versions of popen() in
5941 real_output_file() and pclose() in ~real_output_file().
5943 2000-02-27 Werner LEMBERG <wl@gnu.org>
5945 Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
5946 LBP-8 series laser printers). This code has been contributed by
5947 Francisco Andrés Verdú <pandres@dragonet.es>.
5949 * src/devices/grolbp/*: The grolbp output device.
5950 * font/devlpb/*: The font description files.
5951 * Makefile.in: Add grolpb and devlbp subdirectories.
5953 * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
5954 src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
5957 * doc/groff.texinfo: Further checking/updating. Adding more index
5962 * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
5964 * man/groff_font.man: Adding info about obsolete DESC keywords.
5965 * src/devices/grolj4/grolj4.man: Documenting additional DESC
5968 2000-02-26 Werner LEMBERG <wl@gnu.org>
5970 * src/preproc/grn/grn.man: Added info about the gremlin file format
5971 (contributed by Daniel Senderowicz <daniel@synchrods.com>).
5973 2000-02-25 Werner LEMBERG <wl@gnu.org>
5975 * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
5976 friends to be non-integer.
5978 * src/preproc/grn/grn.man: Document it.
5980 * doc/groff.texinfo: Further checking/updating. Adding more index
5983 2000-02-24 Werner LEMBERG <wl@gnu.org>
5985 * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
5986 line thicknesses to be integer multiples of this value.
5988 * src/preproc/grn/grn.man: Commenting out the -s option -- the
5989 corresponding code doesn't work (yet).
5991 * doc/groff.texinfo: Further checking/updating. Adding more index
5994 2000-02-23 Werner LEMBERG <wl@gnu.org>
5996 * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
5997 specify line thickness instead of base units. The new default
5998 values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
5999 thick lines respectively.
6001 Removed unused variable `prevval'.
6003 * src/preproc/grn/grn.man: Updated.
6005 2000-02-22 Werner LEMBERG <wl@gnu.org>
6007 * src/preproc/grn/main.cc: Slight formatting.
6009 * src/roff/groff/groff.man: Formatting fix.
6010 * src/preproc/grn/grn.man: Ditto.
6012 * src/roff/grog/grog.pl: Fixing two embarassing bugs.
6014 * doc/groff.texinfo: Further checking/updating.
6016 2000-02-21 Werner LEMBERG <wl@gnu.org>
6018 * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
6020 * test-groff: Added grn subdir to path.
6022 * doc/groff.texinfo: Some restructing and other small improvements.
6024 * src/roff/groff/groff.cc (help): Fixed info string.
6026 2000-02-20 Werner LEMBERG <wl@gnu.org>
6028 * doc/meref.me: Fix description of .GS request.
6030 * src/roff/troff/troff.man: Fixing typo.
6032 Adding the `grn' preprocessor for gremlin graphic files.
6034 * src/preproc/grn/*: This is the Berkeley distribution written by
6035 David Slattengren and Barry Roitblat, adapted to groff by Daniel
6036 Senderowicz and Werner Lemberg.
6038 * doc/grnexampl.{me,g}: A sample for grn.
6040 * Makefile.in: Added subdirectory entry for grn.
6042 * src/roff/groff/groff.cc: Added support for grn. It can be now
6043 called with the switch `-g'.
6045 * src/roff/groff/groff.man: Updated.
6047 * src/roff/grog/grog.{man,pl,sh}: Updated.
6051 2000-02-11 Gaius Mulley <gaius@glam.ac.uk>
6053 * src/include/lib.h: Added xtmptemplate and made xtmpfile
6054 parametrically polymorphic.
6056 * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
6057 and the alterations to xtmpfile.
6058 xtmpfile can be requested to return the filename created
6059 and asked not to unlink the temp file. The default behaviour
6060 if parameters are absent is exactly the same as before.
6062 2000-02-11 Abramo Bagnara <abramo@alsa-project.org>
6064 A new request `length' is available which returns the length of a
6065 string in a number register:
6067 * src/roff/troff/input.cc (length_macro): Implement it.
6068 * src/roff/troff/input.cc (init_input_requests): Register it.
6070 2000-02-11 Werner LEMBERG <wl@gnu.org>
6072 * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
6073 of the `substring' request.
6075 * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
6078 * src/roff/troff/TODO, NEWS: Updated.
6080 2000-02-09 Werner LEMBERG <wl@gnu.org>
6082 * src/roff/groff/groff.man: Added an example.
6084 2000-02-06 Werner LEMBERG <wl@gnu.org>
6086 I've considerably modified the directory structure of the
6087 distribution to get a more vertical layout. For example, the number
6088 of top level directories has been reduced from 42 to 6.
6090 As a consequence, many changes, especially to the makefiles, were
6093 * The makefile variables `top_builddir' and `top_srcdir' have been
6094 introduced. Virtually all relative paths have been replaced with
6095 absolute ones using these two variables.
6097 * Dependencies (in the files `Makefile.dep') are no longer part of
6098 the distribution. Instead, they are created during a `make install'
6099 in the build directory.
6101 * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
6102 make `top_srcdir' and `top_builddir' absolute.
6106 * Man pages now depend on the files `VERSION' and `REVISION'.
6108 * The added shell script `mkinstalldirs' will replace `mkdir' in
6111 * VERSION: Version number increased to 1.16.
6113 2000-02-04 Werner LEMBERG <wl@gnu.org>
6115 * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
6117 * Makefile.in: Removed $(tmac_m) since it is no longer needed
6118 (after an update of the mm stuff).
6120 * troff/Makefile.sub (majorminor.cc): Fix dependencies.
6122 2000-02-03 Werner LEMBERG <wl@gnu.org>
6124 The .psbb request will now also accept Mac PS images (i.e. using LF
6125 as the EOL character).
6127 * troff/input.cc (ps_get_line): New function, taken from psrm.cc
6128 (with slight modifications).
6129 * troff/input.cc (do_ps_file): Use it.
6131 * test-groff: Add grohtml and grolj4 output devices to PATH.
6133 2000-01-30 Werner LEMBERG <wl@gnu.org>
6135 * NEWS, MORE.STUFF: Updated.
6137 2000-01-30 Cary D. Renzema <caryr@dollar.mxim.com>
6139 Add the `srand' command to pic.
6141 * pic/lex.cc, pic/pic.y: Implement it.
6142 * pic/pic.man: Document it.
6143 * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
6145 2000-01-30 Werner LEMBERG <wl@gnu.org>
6147 Add a new request `.psbb'. This does exactly what the external
6148 program psbb did. It scans a PostScript image file for a
6149 %%BoundingBox comment and extracts the bounding box values (in
6150 PostScript units) which are then stored in the four new (read-only)
6151 number registers `llx', `lly', `urx', and `ury'.
6153 This will allow the usage of the .PSPIC macro without worrying
6154 about unsafe behaviour of groff, i.e., it will work without the
6155 `-U' switch of groff.
6157 * troff/input.cc: Implement it.
6158 * tmac/tmac.pspic: Use it.
6159 * troff/troff.man, grops/grops.man, NEWS: Document it.
6160 * psbb/*, Makefile.in: Remove it since it is no longer needed.
6162 This is bloody C code simply adapted from psbb.c! Any improvements
6165 2000-01-29 Werner LEMBERG <wl@gnu.org>
6167 * man/groff_font.man: Minor clarifications.
6171 2000-01-28 Werner LEMBERG <wl@gnu.org>
6173 * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
6175 2000-01-28 Gaius Mulley <gaius@glam.ac.uk>
6177 * man/groff_font.man: Brought up to date regarding tcommand
6179 * libgroff/font.cc: Handle everything after `--' as a comment
6181 * devps/*: Added comment delimiter inside devps font files.
6183 2000-01-28 Werner LEMBERG <wl@gnu.org>
6185 * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
6186 \fC...\fP (which now works as expected).
6188 * troff/troff.man: Fix typo.
6190 2000-01-27 Gaius Mulley <gaius@glam.ac.uk>
6192 Completed the pass_filenames implementation in troff.
6194 * libdriver/input.cc: Will read the new `F' tcommand.
6195 * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
6196 * troff/input.cc: Use it.
6198 2000-01-26 Werner LEMBERG <wl@gnu.org>
6200 * troff/env.cc (set_font): Fix the behaviour of \fP. The previous
6201 font will now be updated even if an invalid font is selected.
6203 2000-01-24 Werner LEMBERG <wl@gnu.org>
6205 * doc/homepage.ms: Updated for new tmac.arkup.
6207 * tmac/tmac.html: Disable line breaks after hyphen-like characters.
6209 * tmac/tmac.arkup: Cleanup.
6211 Added `\&' to .HTML macro to `leave vertical mode', so to say.
6213 Removed obsolete .LINK macro completely.
6215 The macros .URL, .FTP, and .MAILTO now accept a third argument which
6216 will be immediately appended to the second argument (to be used with
6217 punctuation, for example).
6219 Disabled .CDFTP macro temporarily for security reasons.
6221 * tmac/groff_markup.man: Complete revision for latest changes in
6222 tmac.arkup -- note that it does not yet format correctly with
6225 2000-01-23 Bruno Haible <haible@clisp.cons.org>
6227 * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
6228 * devutf8/R.proto: Add mappings for wp, lh, rh.
6229 * devutf8/NOTES: Updated.
6231 2000-01-23 Werner LEMBERG <wl@gnu.org>
6233 * doc/groff.texinfo: Updated version/copyright info.
6235 2000-01-21 Gaius Mulley <gaius@glam.ac.uk>
6237 Added support for two new directives in device descriptions:
6238 `pass_filenames' (to pass the input file name to the output device)
6239 and `use_charnames_in_special' (to support e.g. accented characters
6240 in the `X' request).
6242 * include/font.h, troff/charinfo.h: Declare it.
6244 * libgroff/font.cc, libgroff/fontfile.cc: Set it.
6246 * devhtml/DESC: Use it.
6248 * troff/input.cc: New function encoded_char.
6250 * troff/token.h: Add test for `specialness'.
6252 2000-01-21 Werner LEMBERG <wl@gnu.org>
6254 * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
6255 mistake from the list of files to be installed.
6257 2000-01-18 Werner LEMBERG <wl@gnu.org>
6259 * README: Added info how to apply patches.
6261 2000-01-15 Jan Echternach <echter@informatik.uni-rostock.de>
6263 * troff/node.cc (ligature_note::operator delete): Fix g++ warning.
6265 2000-01-15 Gaius Mulley <gaius@glam.ac.uk>
6267 * troff/input.cc: Add support for troffrc-end.
6269 * tbl/main.cc: Altered to issue table-start and table-end special
6270 characters if using the html device.
6272 * devhtml/*: Modified font files to incorporate html encoding of
6275 * tmac/groff_markup.man: New file documenting tmac.arkup.
6277 * tmac/troffrc-end: New file. This is invoked after all user
6278 specified macros. Currently used by the html device to include
6279 tmac.html. Thus no need for users to specify -mhtml anymore.
6281 * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
6282 (MAN7): Add groff_markup.man.
6284 * tmac/tmac.an, tmac/tmac.html: Small html updates.
6286 * tmac/troffrc: tmac.arkup will now be called for the html device.
6288 * libgroff/font.cc, libgroff/font.h: Altered to include reading of
6289 extra device specific information about fonts.
6291 * doc/homepage.ms: New file. It is an example how an HTML home page
6292 could look like with grohtml.
6294 * doc/Makefile: Add homepage.ms. Remove rule for pic.html.
6296 2000-01-12 Bruno Haible <haible@clisp.cons.org>
6298 * devutf8/R.proto: Add mappings for ti, Fn, st, an. Change mappings
6301 * devutf8/NOTES: Updated.
6303 2000-01-08 Bruno Haible <haible@clisp.cons.org>
6305 * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
6306 eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
6307 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
6308 libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
6309 pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
6310 tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
6311 troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
6312 troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
6315 * troff/node.cc (bracket_node::copy): Initialize last to NULL.
6317 2000-01-12 Fabrizio Polacco <fab@prosa.it>
6319 grolj4: Paper size will be searched case-insensitively.
6321 * include/lib.h: Add check for strcasecmp().
6322 * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
6323 * configure.in: Check for strcasecmp().
6325 2000-01-11 Werner LEMBERG <wl@gnu.org>
6327 * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
6330 2000-01-10 Werner LEMBERG <wl@gnu.org>
6332 * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
6335 Add a new read-only register, `.Y', which contains the groff
6338 * troff/input.cc (init_input_requests): Define it.
6339 * troff/Makefile.sub (majorminor.cc): Define `revision' string.
6340 * doc/groff.texinfo, troff/troff.man: Document it.
6342 * libgroff/Makefile.sub (version.cc): Add definition of
6343 `Version_string[]', consisting of `<major>.<minor>.<revision>'
6344 * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
6345 grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
6346 refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
6347 troff/input.cc, pfbtops/pfbtops.c: Use it.
6349 2000-01-10 Fabrizio Polacco <fab@prosa.it>
6351 Add a revision scheme to the groff package.
6353 * REVISION: New file.
6354 * libgroff/Makefile.sub (version.cc): Use it to define
6355 `revision_string[]'.
6356 * grops/psrm.cc: Use revision_string (converted to an unsigned
6357 integer) in constructor of resource_manager.
6359 2000-01-10 Bruno Haible <haible@clisp.cons.org>
6361 * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
6363 * Makefile.in (DEVDIRS): Add devutf8.
6364 * grotty/tty.cc: Include device.h.
6365 (glyph): Change type of `code' to `unsigned int'.
6366 (tty_printer): New field is_utf8. Constructor takes device argument.
6367 (tty_printer::tty_printer): If device if `utf8', set is_utf8.
6368 (tty_printer::add_char): Change type of first arg to `unsigned int'.
6369 (tty_printer::put_char): New function.
6370 (tty_printer::end_page): Use put_char() instead of ::putchar().
6371 (make_printer): Pass device to tty_printer constructor.
6372 * nroff.sh: Determine default device by calling 'locale'. As a
6373 fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
6374 Recognize UTF-8 locales.
6375 * tmac/eqnrc: Recognize utf8 like latin1.
6376 * tmac/troffrc: Device utf8 needs tmac.tty.
6378 2000-01-07 Werner LEMBERG <wl@gnu.org>
6380 * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
6382 2000-01-07 Paul Eggert <eggert@twinsun.com>
6384 Add a new predefined writeable number register, `year',
6385 which contains the current year.
6387 * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
6388 * tmac/tmac.s: Use it.
6389 * troff/input.cc (init_registers): Initialize it.
6391 2000-01-06 Werner LEMBERG <wl@gnu.org>
6393 * PROBLEMS: Fixed typo.
6395 2000-01-04 Paul Eggert <eggert@twinsun.com>
6397 * PROBLEMS: Add Y2k advice for the yr number register.
6399 2000-01-03 Paul Eggert <eggert@twinsun.com>
6401 * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
6403 2000-01-02 Werner LEMBERG <wl@gnu.org>
6405 * tmac/tmac.arkup: Slight modification of macros to provide better
6406 appearance for non-HTML formats.
6408 2000-01-01 Charles Levert <charles@comm.polymtl.ca>
6410 * soelim/soelim.cc (include_path_append): realloc(NULL, n)
6411 does not automatically translate to malloc(n) on all OSes
6412 (e.g., SunOS) so do it explicitly. Also, check the returned
6415 2000-01-01 Werner LEMBERG <wl@gnu.org>
6417 * tmac/tmac.arkup: Added .LINE macro. Some formatting.
6419 * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
6420 expects this variable
6422 2000-01-01 Gaius Mulley <gaius@glam.ac.uk>
6424 * doc/Makefile: Added instructions to create HTML and text
6425 versions of some files.
6427 1999-12-31 Werner LEMBERG <wl@gnu.org>
6429 * Updated INSTALL.gen.
6431 * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
6432 better resp. correctly with non-HTML devices.
6434 Version 1.15 released
6435 =====================
6437 1999-12-28 Werner LEMBERG <wl@gnu.org>
6439 * NEWS, VERSION: Changed to 1.15
6441 1999-12-27 Paul Eggert <eggert@twinsun.com>
6443 * nroff/nroff.man: -S is safer, not safe.
6445 * groff/groff.cc (main): Use `safer', not `safe', in variable
6446 names. This does not change the behavior.
6448 * troff/input.cc (main): Likewise.
6450 * nroff/nroff.sh: Likewise.
6452 * troff/input.cc (prepend_string): New function.
6453 (main): Prepend -msafer, so that we check macro libraries for
6456 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
6458 Version 1.14 released
6459 =====================
6461 1999-12-26 Werner LEMBERG <wl@gnu.org>
6463 * NEWS, VERSION: Changed to 1.14.
6465 1999-12-24 Werner LEMBERG <wl@gnu.org>
6467 * refer/refer.cc: Fixing the last fix.
6469 Version 1.13 released
6470 =====================
6472 1999-12-23 Werner LEMBERG <wl@gnu.org>
6474 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
6479 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
6481 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
6482 document conventions, the version number must be a real.
6484 Version 1.12.1 released
6485 =======================
6487 1999-12-22 Werner LEMBERG <wl@gnu.org>
6489 * VERSION: Changed to 1.12.1.
6491 1999-12-22 Alan Rooks <arooks@istar.ca>
6493 * refer/refer.cc (do_file): Slight modification to satisfy the
6494 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
6497 1999-12-20 Werner LEMBERG <wl@gnu.org>
6499 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
6502 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
6503 list of unsafe requests.
6505 * pic/pic.man: Fixed a typo.
6507 * man/groff_out.man: Fixed a typo.
6509 1999-12-18 Werner LEMBERG <wl@gnu.org>
6511 * Makefile.in: Doc fixes.
6513 1999-12-17 Fabrizio Polacco <fab@prosa.it>
6515 * groff/groff.cc: Missing `U' option added to getopt().
6517 * troff/troff.man: Missing `U' option added to synopsis.
6519 Version 1.12 released
6520 =====================
6522 1999-12-14 Werner LEMBERG <wl@gnu.org>
6524 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
6527 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
6528 with the more appropriate terms `safer' and `unsafe'.
6530 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
6531 sys_nerr and sys_errlist[].
6533 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
6535 * pic/pic.y, pic/pic.cc: Added check for fmod().
6537 1999-12-13 Werner LEMBERG <wl@gnu.org>
6539 * VERSION: Changed to 1.12.
6541 Here some patches from various sources; most of them taken from
6542 the Debian distribution.
6544 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
6545 tmac/Makefile.sub: New files copied directly from the NetBSD
6546 distribution. Probably, some additional adaptation later on is
6549 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
6552 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
6553 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
6554 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
6555 (`-S') is now the default.
6557 * README, NEWS: Updated.
6559 1999-12-09 Werner LEMBERG <wl@gnu.org>
6561 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
6563 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
6565 1999-12-06 Werner LEMBERG <wl@gnu.org>
6567 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
6568 grief than relief today. Additionally, it is against the GNU
6571 * configure: Recreated.
6573 1999-12-05 Werner LEMBERG <wl@gnu.org>
6575 * configure.in: Added GROFF_LIBM.
6577 * configure: Recreated.
6579 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
6582 * Makefile.in: Added definition of $(LIBM).
6584 * Makefile.comm (LIBM): Removed.
6586 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
6588 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
6590 * doc/Makefile: Added rule for generation pic.html.
6592 (clean): Files produced by grohtml will be removed also.
6594 * doc/pic.ms: Small fix.
6596 * tmac/tmac.html: Fixed suppression of headers.
6598 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
6600 * tmac/tmac.html: Fixing horizontal arrows.
6602 Turning off hyphenation.
6604 * tmac/tmac.an: Improved support for grohtml; better indentation,
6607 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
6609 * tmac/tmac.arkup: Added CDFTP macro
6611 * tmac/tmac.html: All headers are turned off for ms, me, and mm
6614 * tmac/troffrc: Some additions for HTML stuff.
6616 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
6618 * tmac/tmac.html: Small changes.
6620 1999-09-26 Werner LEMBERG <wl@gnu.org>
6622 * doc/groff.texinfo: Minor fixes.
6624 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
6626 * devhtml/TR: Changed spacewidth to 3.
6628 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
6630 * tmac/tmac.html: Moved markup macros to tmap.arkup.
6632 * tmac/tmac.arkup: New file.
6634 * grohtml/ChangeLog: New file.
6636 1999-09-16 Werner LEMBERG <wl@gnu.org>
6638 * doc/groff.texinfo (Common Features): Added Copying chapter.
6639 Changed format to @smallbook.
6641 1999-09-15 Werner LEMBERG <wl@gnu.org>
6643 * NEWS: Added info about groff.texinfo.
6645 * doc/groff.texinfo: Will now compile (using texi2dvi) without
6648 1999-09-14 Werner LEMBERG <wl@gnu.org>
6650 * groff/groff.man: More updates.
6652 1999-09-13 Werner LEMBERG <wl@gnu.org>
6654 * doc/groff.texinfo: New file. This manual is still very
6655 rudimentary. It has been originally contributed by Trent
6656 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
6659 * INSTALL: Added information about the `doc' subdir
6661 * troff/troff.man: Minor fixes.
6663 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
6666 * troff/input.cc (usage): Added missing `-ffam' to usage message.
6668 * Makefile.in (dist): groff-$(version).tar.gz must be removed
6669 also, otherwise it is included itself in another call of `make
6672 * groff/groff.cc (synopsis): Removed superfluous space.
6674 * PROJECTS, PROBLEMS, NEWS: Updated.
6676 * VERSION: Updated to 1.12beta.
6678 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
6680 * README: Updated: Included documentation about CVS repository,
6681 mailing lists, and daily snapshots.
6683 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
6685 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
6687 * tmac/tmac.an: If the tag didn't fit into the space that the
6688 macro `TP' specifies, the rest of the tag went into the space for
6691 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
6693 * grolj4/lj4.cc: Added duplex printing (option `-d').
6695 * grolj4/grolj4.man: Document duplex printing.
6697 1999-09-12 Werner LEMBERG <wl@gnu.org>
6699 * doc/Makefile (pic.ps): Fixed rule which caused problems with
6700 non-GNUish sed programs.
6702 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
6705 * configure.in (LIBS): Added `-lc'
6707 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
6709 * pic/tex.cc (solid_arc): Casting M_PI to double.
6711 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
6713 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
6714 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
6715 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
6717 * groff/groff_man.man: New file. This manual page was originally
6718 written for the Debian GNU/Linux system by Susan G. Kleinmann
6721 * eqn/list.cc (list_box::compute_metrics,
6722 list_box::compute_sublist_width): Removed variable declaration to
6723 avoid shadowing warnings.
6725 * grops/psrm.cc (resource_manager::process_file): Ditto.
6727 * tfmtodit/tfmtodit.cc (main): Ditto.
6729 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
6730 to avoid shadowing warnings.
6732 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
6733 shadowing loop variable.
6735 * groff/groff.man, troff/troff.man: Added doc about grohtml.
6737 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
6739 New grohtml frontend to convert groff input to html.
6741 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
6743 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
6745 * tmac/eqnrc: Added html device.
6747 * tmac/tmac.html: New file.
6749 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
6750 (troff_output::start_picture, troff_output::finish_picture),
6751 tbl/main.cc (process_input_file):
6752 Surrounded output with `graphics_start' and `graphics_end' so that
6753 the html driver can identify non-text portions.
6755 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
6756 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
6757 grotty/tty.ps (tty_printer::set_char): Additional parameter
6760 * include/printer.h: Class printer: New function
6761 set_char_and_width; new variables (is_char_named, is_named_set,
6762 named_command, named_char_s, named_char_n) to hold information
6763 about named characters -- needed by the html driver.
6765 * libdriver/printer.cc (printer::set_ascii_char,
6766 printer::set_special_char): Use set_char_and_width.
6768 * devhtml/*: New device files for html driver.
6770 * grohtml/*: New driver grohtml.
6772 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
6774 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
6777 1999-09-11 Luke Mewburn <lukem@netbsd.org>
6779 * libgroff/string.cc (search): Small fix to test against NULL
6782 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
6784 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
6785 \b'abc') were stacked in reverse order when processed in a
6788 * troff/node.h: Added `*last' to struct `node' to make the above
6791 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
6792 The default scale for the 'f' and 't' graphics functions were 'm'
6793 rather than 'u' (i.e., no scaling).
6795 1999-09-11 Peter Miller <peterm@jna.com.au>
6797 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
6798 do_file), soelim/soelim.man: Added `-I file' option to soelim,
6799 defining include paths.
6801 * soelim/soelim.cc (include_path_append): New function.
6803 1999-09-11 Larry Jones <larry.jones@sdrc.com>
6805 * tbl/main.cc (process_options): Unix (at least Documenter's
6806 Workbench) tbl allows arbitrary non-alpha characters between
6809 1999-09-11 Paul Eggert <eggert@twinsun.com>
6811 Y2k fixes. Don't assume that the current year precedes 2000.
6813 * doc/meref.me: Add \n(y2, \n(y4.
6815 * tmac/doc-common (Yr): New number register.
6816 (Dd): Don't assume current year precedes 2000.
6818 * tmac/tmac.e (td): Likewise.
6819 (y2, y4): New number registers.
6821 * pic/pic.man: Update reference for pic paper to May, 1991
6824 1999-09-11 Werner LEMBERG <wl@gnu.org>
6826 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
6827 Removed quotation marks which prevented correct expansion of
6830 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
6832 1999-09-10 Werner LEMBERG <wl@gnu.org>
6834 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
6837 * Removed configure.old.
6839 1999-08-31 Werner LEMBERG <wl@gnu.org>
6841 * VERSION: Updated to 1.11.1
6843 1999-05-27 Werner LEMBERG <wl@gnu.org>
6845 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
6847 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
6848 added quotations around $(tmac_wrap) to avoid syntax error if
6851 * configure: Newly generated using autoconf 2.13.
6853 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
6855 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
6857 * README, PROJECTS, NEWS, INSTALL, VERSION,
6858 doc/Makefile. doc/pic.ms, groff/groff.man:
6859 Prepare for 1.11 release. No code changes.
6860 Documentation for pic added (doc/pic.ms).
6862 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
6864 * Version 1.10 released.
6866 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
6868 * afmtodit/afmtodit.pl: Avoid comment on first line.
6870 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
6872 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
6873 * configure.in: Call it.
6875 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
6876 (distfiles): Doesn't depend on config.log or config.cache.
6878 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
6880 * grog/grog.sh: Use print "" rather than print in END rule.
6882 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
6884 * tbl/main.cc (process_data): Don't give error for excess data
6885 entries that are comments.
6887 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
6889 * tbl/main.cc (process_data): Fix case where new for-scope rules
6890 silently change meaning of code.
6892 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
6894 * troff/env.cc (hyphenate): Loop over all consecutive sequences
6895 of non-zero hyphenation codes.
6897 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
6899 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
6901 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
6903 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
6905 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
6907 * tmac/tmac.andoc: Make it work in compatibility mode.
6909 * refer/token.h (token_info::is_range_sep): New function.
6910 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
6911 * refer/ref.cc (reference::output): More sophisticated check for
6914 * devps/prologue.ps (MANUAL): New procedure.
6915 * grops/ps.cc (main): New -m option.
6916 (usage): Include -m.
6917 (ps_printer::~ps_printer): Implement -m.
6919 * aclocal.m4 (GROFF_G): New macro.
6920 * configure.in: Call it.
6921 * Makefile.in (g): Provided by configure.
6923 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
6925 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
6928 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
6929 (tmac_m, tmac_s): Deleted.
6930 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
6931 tmac_s_prefix): New variables.
6932 (MDEFINES): Change accordingly.
6933 * Makefile.comm (.man.n): Use new TMAC_* variables.
6934 * configure.in (GROFF_TMAC): Call.
6935 * aclocal.m4 (GROFF_TMAC): Define.
6936 * tmac/Makefile.sub (stamp_wrap): New target.
6937 (install_data, uninstall_sub): Handle macro wrapping.
6939 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
6941 * tbl/main.cc (main): Ignore -T option.
6943 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
6945 * devlj4/generate/special.map: Add definition of \(nb.
6947 * tmac/tmac.dvi: Add definition of \(nb.
6949 * troff/dictionary.c (dictionary::dictionary): association::v gets
6950 initialized by association::association.
6952 * tmac/Makefile.sub: Avoid using temporary files when installing.
6954 * troff/env.cc (environment::set_font): Make bad font number a
6957 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
6959 * Makefile.in (datadir): Use share rather than lib.
6961 * groff/groff.cc (basename): Rename to xbasename.
6963 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
6965 * Makefile (CCLIBS): Don't use.
6966 * Makefile.ccpg: Likewise.
6968 * acgroff.m4: Rename to...
6969 * aclocal.m4: Modify extensively for autoconf 2.
6970 * configure.in: Likewise.
6971 * Makefile.in: Likewise.
6973 * groff/pipeline.c (const): Declare as empty if __STDC__ not
6975 (xstrsignal): Check for definition of NSIG. Conditionalize
6976 on SYS_SIGLIST_DECLARED. Make return type const.
6978 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
6980 * troff/input.cc (interpolate_macro): Rephrase missing space
6983 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
6985 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
6986 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
6987 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
6988 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
6989 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
6990 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
6991 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
6992 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
6993 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
6994 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
6995 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
6998 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
7000 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
7002 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
7004 (macro_iterator::macro_iterator): Add additional argument.
7006 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
7008 * troff/div.cc (vertical_size::vertical_size): In place of integer
7009 specifying line spacing use cunits specifying post vertical
7011 (macro_diversion::output, top_level_diversion::output): Likewise.
7012 * troff/div.h: Change declarations accordingly.
7013 * troff/env.cc (pending_output_line): Replace ls field by post_vs
7015 (pending_output_line::pending_output_line,
7016 pending_output_line::output, environment::output,
7017 environment::output_line, environment::output_title,
7018 environment::hyphenate_line): In place of
7019 integer specifying line spacing use cunits specifying post vertical
7021 (environment::environment): Add post_vertical_spacing and
7022 prev_post_vertical_spacing arguments.
7023 (environment::get_post_vertical_spacing): New function.
7024 (environment::total_post_vertical_spacing): New function.
7025 (environment::post_vertical_spacing): New function.
7026 (init_env_requests): Initialize pvs request and .pvs register.
7027 * troff/env.h: Change declarations.
7029 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
7031 * tmac/tmac.pspic: Immediately remove the temporary file.
7033 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
7035 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
7036 height is specified.
7038 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
7040 * tbl/table.c (struct vertical rule, class table_entry): Use int
7041 not short for start_row and end_row.
7043 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
7045 * troff/input.cc (trapping_blank_line, blank_line_macro): New
7047 (diverted_space_node::reread, process_input_stack): Call
7048 trapping_blank_line() rather than blank_line().
7049 (init_input_requests): Bind "blm" to blank_line_macro().
7051 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
7053 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
7055 * troff/env.cc (environment::possibly_break_line): Require that
7056 width total excluding width of final space node be greater than
7057 the target text length.
7059 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
7061 * troff/node.cc (kern_pair_node::vertical_extent): New function.
7063 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
7065 * troff/node.cc (charinfo_node): New class.
7066 (glyph_node, composite_node): Derive from charinfo_node. Change
7067 member functions accordingly.
7069 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
7071 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
7073 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
7075 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
7077 * devps/generate/textmap (notsubset): Add.
7079 * tmac/tmac.a4: New file.
7081 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
7083 * pic/main.cc (had_parse_error): New variable.
7084 (do_picture, do_whole_file): Set had_parse_error if yyparse()
7086 (main): Return 1 if had_parse_error is true.
7088 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
7090 * grolj4/lj4.cc (main): Avoid use of strtoul.
7092 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
7094 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
7095 iso_8859_1 or $LESSCHARSET is latin1.
7097 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
7099 * hpftodit: New directory.
7100 * Makefile.in (CCPROGDIRS): Add hpftodit.
7101 * devlj4/generate: New directory.
7103 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
7105 * configure.in: Don't use AC_VFORK.
7106 * groff/pipeline.c (run_pipeline): Use fork() always.
7108 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
7110 * grops/ps.cc (main): Use %1 not %s in error message for -w.
7112 * Makefile.in (CCPROGDIRS): Add grolj4.
7113 (DEVDIRS): Add devlj4.
7114 * grolj4, devlj4: New directories.
7115 * tmac/troffrc: Handle lj4.
7116 * tmac/tmac.lj4: New file.
7118 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
7120 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
7122 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
7124 * troff/input.cc (do_if_request): At end of second string, switch
7125 environments before getting next token.
7127 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
7129 * devps/psstrip.sed: Split rule that strips whitespace on either
7132 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
7134 * troff/node.h (font_family::make_definition): Add return value to
7135 declaration. * troff/symbol.h (symbol::operator==,
7136 symbol::operator!=): Likewise.
7138 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
7140 * groff/groff.cc (main, help, synopsis): Handle -S.
7141 (possible_command::insert_arg): New function.
7143 * tmac/tmac.safer: New file.
7144 * tmac/msafer.man: New file.
7145 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
7147 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
7149 * pic/pic.h, pic/main.cc (safer_flag): New variable.
7150 * pic/pic.y (placeless_element): Avoid unsafe operations if
7151 `safer_flag' is set.
7152 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
7154 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
7156 * eqn/lex.cc (get_token): Put call to add_context() in block to
7157 work around Sun C++ 4.0 bug.
7159 * include/stringclass.h (operator +): Use ?: instead of `if' to
7160 work around Sun C++ 4.0 bug.
7162 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
7164 * tbl/main.cc (process_format): Accept - as a synonym for the _
7167 * libbib/index.cc (minus_one): Don't declare as const.
7169 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
7171 * troff/input.cc (get_char_for_escape_name): Push back a newline.
7173 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
7175 * troff/input.cc (write_macro_request): New function.
7176 (init_input_requests): Bind write_macro_request to writem.
7178 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
7180 * tmac/tmac.s (@EN): Turn filling back on even if there was no
7183 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
7185 * tmac/tmac.s (@TS): Renamed from TS.
7186 (TS): Call LP then TS again.
7187 (cov*ab-init): Alias @TS to TS.
7189 * tmac/tmac.s: Allow QP or RS to initialize.
7191 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
7192 Move initializations of PS and LL here.
7193 (par@init): Don't initialize HY. Avoid changing environment 0.
7194 (par*env-init): Don't all par@reset.
7196 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
7198 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
7200 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
7202 * Makefile.in (MDEFINES): Add LDFLAGS.
7203 (LDFLAGS): Add definition line.
7205 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
7207 * troff/input.cc (get_optional_char): Split off error check into...
7208 (check_missing_character): New function.
7209 * troff/token.h: Declare it.
7210 * troff/env.cc (margin_character): Don't call get_optional_char.
7211 Only call tok.next() after making the node.
7213 * include/lib.h (getopt): Make 2nd argument char *const *.
7215 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
7217 * nroff/conftest.sh: Deleted.
7219 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
7221 * pic/make-dos-dist: Deleted.
7223 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
7225 * devps/psstrip.sed: Strip comments before stripping trailing
7228 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
7230 * Version 1.09 released.
7232 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
7234 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
7236 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
7238 * libgroff/font.cc (font::load_desc): Fix typo in error message.
7240 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
7242 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
7243 about returning without a value.
7245 * troff/charinfo.h (charinfo::get_special_translation): Cast
7246 TRANSLATE_NONE to int.
7248 * refer/token.cc (lookup_token, store_token): Remove bogus loop
7249 test. Fix test so that it works with n unsigned.
7251 * pic/pic.y (defaults_table): Fully bracket initializer.
7252 * pic/lex.cc (lookup_keyword): Likewise.
7253 * eqn/lex.cc (token_table, def_table): Likewise.
7254 * eqn/box.cc (param_table): Likewise.
7255 * troff/input.cc (warning_table): Likewise.
7256 * libgroff/font.cc (table): Likewise.
7257 * grops/ps.cc (ps_printer::special): Likewise.
7258 * grops/psrm.cc (resource_manager::process_file): Likewise.
7259 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
7260 * refer/command.cc (command_table): Likewise.
7261 * addftinfo/addftinfo.cc (param_table): Likewise.
7263 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
7264 about temp's being unused.
7265 (unused): New function.
7267 * groff/pipeline.cc: Declare c_fatal.
7269 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
7272 * libbib/index.cc (index_search_item::load): Prevent compiler
7273 warnings about fd_closer's being unused.
7274 (unused): New function.
7276 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
7278 * troff/input.cc (copy_mode_error): Make `prefix' static.
7281 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
7283 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
7284 HAVE_CC_OSFCN_H and modify accordingly.
7286 * troff/input.cc (init_charset_table): radicalex overlaps
7289 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
7290 udodo!hans@relay.NL.net).
7291 * groff/configure.in: Call it.
7293 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
7294 * groff/configure.in: Call it.
7295 * include/lib.h: Conditionalize declaration of pclose.
7297 * troff/div.cc (last_page_number): New global variable.
7298 (top_level_diversion::begin_page): Exit if we just printed the
7300 * troff/div.h (last_page_number): Declare it.
7301 * troff/input.cc (parse_output_page_list): Set last_page_number.
7303 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
7304 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
7305 tmac/tmac.X: Likewise.
7306 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
7307 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
7309 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
7311 * tmac/doc-ditroff (hK): Remove groff specific code which
7312 prevented page-breaks between separate manual entries. If this is
7313 the first page, don't set the page number to 1.
7315 * acgroff.m4 (GROFF_POSIX): New macro.
7316 * configure.in: Use it.
7318 * troff/node.cc (class real_output_file,
7319 real_output_file::real_output_file,
7320 real_output_file::~real_output_file): Conditionalize use of
7321 popen/pclose on POPEN_MISSING.
7322 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
7323 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
7324 (pipe_source): Similarily.
7326 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
7328 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
7329 presence of declarations by trying to compile example with
7330 conflicting declarations. (gcc only gives a warning for missing
7333 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
7335 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
7336 (from Ulrich Lauther).
7338 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
7340 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
7342 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
7344 * indxbib/indxbib.cc (write_hash_table): Add code for case where
7345 pointers and ints have different sizes.
7347 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
7349 * tmac/tmac.s (par*env-init): Call par@reset.
7351 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
7353 * tmac/tmac.s (@IP): Switch to a new environment when diverting
7355 (par*push-tag-env, par*pop-tag-env): New macros.
7357 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
7359 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
7360 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
7362 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
7363 comment. Include <time.h>.
7365 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
7367 * grops/ps.cc (is_small_h, is_small_v): Deleted.
7368 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
7371 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
7373 * troff/input.cc (read_request): Only print a prompt if reading
7374 from the terminal. Also clearerr on EOF if reading from the
7375 terminal. Declare isatty.
7377 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
7379 * refer/label.y: Rename map_t to map_func and extractor_t to
7382 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
7384 * include/assert.h: Don't use volatile.
7385 * libgroff/assert.cc: Likewise.
7387 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
7389 * troff/input.cc (abort_request): Look at character in tok before
7392 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
7394 * troff/troff.h (NO_RETURN): Deleted.
7395 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
7396 * troff/input.cc (exit_troff): Likewise
7398 * Makefile.in: Remove `Making ...' messages since GNU make now
7401 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
7403 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
7405 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
7408 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
7410 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
7412 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
7414 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
7415 MARK_REG if there was no left delimiter.
7417 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
7419 * pic/troff.cc (troff_output::text): Set line thickness to
7420 relative before outputting text.
7422 * tmac/tmac.e (@k): Don't zero ?T.
7425 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
7427 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
7429 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
7431 * troff/input.cc (decode_args): Warn about unquoted tabs (from
7434 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
7436 * troff/input.cc (ignoring): New variable.
7437 (ignore): Set ignoring during call to do_define_macro.
7438 (do_define_macro): Clear ignoring before interpolating terminating
7440 (copy_mode_error): New function.
7441 (get_char_for_escape_name, read_long_escape_name,
7442 interpolate_arg): Use copy_mode_error.
7443 (warning_table): Add WARN_IG.
7444 * troff/troff.h (WARN_IG): Declare.
7445 (WARN_TOTAL): Change accordingly.
7447 * groff/pipeline.c (strsignal): Rename to xstrsignal.
7448 * groff/groff.cc (strsignal): Delete declaration.
7450 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
7452 * troff/div.cc (page_offset): Use 'm' as default scaling.
7454 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
7456 * nroff/nroff.sh: Ignore -u.
7458 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
7460 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
7462 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
7464 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
7466 (B2): With -Tascii, leave additional vertical space before
7467 and after. Ensure that the left and right indent is restored to
7468 what it was even if the point size changes. Don't call
7469 par@finish. Change the indent, line length and title length
7470 directly. With -Tascii, make the width of the box 1n less.
7471 (B1): Remember 1n at the current point size. Don't call
7472 par@reset. Change the indent, line length and title length
7473 directly. Ensure that the temporary indent is preserved.
7474 (par*box-mark-top): Turn off no spacing mode.
7476 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
7478 * Makefile.in (dist): Use .gz suffix.
7480 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
7482 * troff/input.cc (main): Add return 0.
7483 * pic/main.cc (main): Use return instead of exit.
7484 * tbl/main.cc (main): Likewise.
7485 * eqn/main.cc (main): Likewise.
7486 * grops/ps.cc (main): Likewise.
7487 * grotty/tty.cc (main): Likewise.
7488 * groff/groff.cc (main): Likewise.
7489 * grodvi/dvi.cc (main): Likewise.
7490 * refer/refer.cc (main): Likewise.
7491 * indxbib/indxbib.cc (main): Likewise.
7492 * lkbib/lkbib.cc (main): Likewise.
7493 * soelim/soelim.cc (main): Likewise.
7494 * addftinfo/addftinfo.cc (main): Likewise.
7495 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
7496 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
7498 * troff/token.h (process_input_stack): Don't declare as static.
7499 * troff/input.cc: Likewise.
7501 * troff/node.c (invalidate_fontno): Make it a static member of
7502 class font_family. Change callers.
7503 * troff/node.c: Change declaration.
7505 * tbl/main.cc (struct input_entry_format): Add explicit public
7507 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
7508 struct double_hline_stuff): Likewise.
7509 * tbl/table.h (struct entry_format): Likewise.
7510 * pic/object.h (struct saved_state): Likewise.
7512 * include/stringclass.h: Add forward declarations of friend
7513 functions that are later declared as inline. Don't include inline
7514 specifier in friend declaration.
7516 * libgroff/lib.h: Declare popen and pclose.
7517 * acgroff.m4 (GROFF_POPEN): New macro.
7518 * configure.in: Call it.
7520 * include/lib.h (PI): New constant. Undef first if necessary.
7521 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
7522 * grops/ps.cc (degrees, radians): Likewise.
7523 * libgroff/font.cc (font::get_skew): Likewise.
7525 * grops/ps.cc (is_ascii): New function.
7526 (ps_output::put_string): Use is_ascii. Use csprint rather than
7528 (ps_printer::define_encoding): Use csspace.
7529 * libgroff/strtol.c (ISASCII): New macro.
7530 (strtol): Cast arguments to is*() and tolower() to unsigned char.
7531 Use ISASCII rather than isascii.
7532 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
7533 * libgroff/cset.cc: Likewise.
7534 * libdriver/input.cc: Include cset.h.
7535 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
7538 * refer/refer.cc (main): Use %ld rather than %d for longs.
7540 * libbib/index.cc (index_search_item_iterator::get_tag): Use
7543 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
7545 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
7547 * troff/input.cc (hyphenation_code): Skip white space between
7550 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
7552 * tbl/table.h (table::entry_list_tailp): New member.
7553 (table::table): Initialize it.
7554 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
7557 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
7559 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
7560 with negative horizontal positions. Remove casts of glyph::hpos to
7562 (USHRT_MAX): Delete definition.
7563 (SHRT_MAX, SHRT_MIN): New definitions.
7564 (glyph::hpos): Change type to short.
7565 (tty_printer::end_page): Output multiple backspaces if necessary.
7566 Remove casts of glyph::hpos to int.
7568 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
7570 * tmac/tmac.s (@RT): New definition.
7572 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
7574 * refer/refer.cc (do_file): Make sure current_filename is set when
7577 * pic/common.cc (common_output::dot_line): Handle zero length
7580 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
7582 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
7583 (par@init): Initialize \n[HY].
7585 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
7587 * troff/dictionary.cc (dictionary::remove): Continue when
7590 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
7592 * Makefile.com (.y.cc): Avoid ending up with two versions of
7595 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
7597 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
7598 (\(,C): Likewise. Also fix typo.
7600 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
7602 * lib.h: Delete extraneous semi-colon.
7604 * Add pso request: `so' from a pipe.
7605 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
7606 (file_iterator::close): New function.
7607 (file_iterator::~file_iterator, file_iterator::next_file): Use
7608 file_iterator::close.
7609 (file_iterator::backtrace): Say `process' rather than `file' when
7610 the stream is popened.
7611 (pipe_source): New function.
7612 (init_input_requests): Bind ".pso" to pipe_source.
7614 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
7616 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
7618 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
7619 digits in lower case.
7621 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
7623 * Version 1.08 released.
7625 * Makefile.in (dist): Insert || true after ln -s commands that
7628 * mm: Update to mm 1.16.
7630 * acgroff.m4 (GROFF_CSH_HACK): New macro.
7631 * configure.in: Call GROFF_CSH_HACK. Substitute for
7633 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
7635 * nroff/Makefile.sub (nroff): New target.
7636 (install_data): Install nroff.
7637 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
7638 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
7640 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
7642 * eqn/Makefile.sub (neqn): Add chmod +x.
7644 * grog/Makefile.sub (grog): Remove spurious semi-colon.
7646 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
7648 * troff/input.cc (string_iterator::string_iterator()): Initialize
7651 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
7653 * troff/div.cc (macro_diversion::space,
7654 top_level_diversion::space): Don't set high_water_mark.
7655 (macro_diversion::output, top_level_diversion::output): Don't
7656 include post line space in high water mark.
7658 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
7660 * eqn/eqn.y: Don't define YYDEBUG.
7661 * pic/pic.y: Likewise.
7663 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
7665 * tmac/tmac.e ([3): Add space after comma following editors.
7666 Change double spaces to single spaces.
7667 ([4): Change double spaces to single spaces.
7669 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
7670 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
7671 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
7672 after %!PS-Adobe- (for Newsprint).
7674 * troff/div.cc (top_level_diversion::begin_page): When
7675 before_first_page is 1, set page_number to 1.
7677 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
7679 * eqn/box.cc (box::top_level): Protect equation with \&.
7681 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
7683 * groff/groff.cc (possible_command::set_name): Delete old name.
7685 * groff/groff.cc (possible_command::~possible_command): Use
7688 * troff/node.cc (troff_output_file::begun_page): New member.
7689 (troff_output_file::troff_output_file): Initialize it.
7690 (troff_output_file::really_begin_page): Only output V command if a
7691 page has been begun.
7693 * pic/pic.y (placeless_element): Delete argument to PRINT after
7696 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
7698 * Make wrapman work.
7699 * troff/div.h (class top_level_diversion): Replace
7700 first_page_begun by before_first_page (with opposite sense).
7701 * Change first_page_begun to before_first_page inverting sense.
7702 * troff/div.cc (class nl_reg): New class.
7703 (init_div_requests): Use class nl_reg for \n(nl.
7704 (top_level_diversion::begin_page): Don't call
7705 output_file::begin_page if before_first_page is 2;
7706 reset before_first_page afterwards. If have_next_page_number is
7707 false, then always increment page_number.
7708 * tmac/tmac.an: Set traps within TH rather than at the top-level.
7709 Restore compatibility mode after loading, and then disable
7710 compatibility mode in TH.
7712 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
7714 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
7716 * troff/node.h (output_file::trailer): Declare.
7717 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
7718 * troff/node.cc (output_file::trailer): New function.
7719 (troff_output_file::~troff_output_file): Move most code into...
7720 (troff_output_file::trailer): New function.
7721 (class troff_output_file): Delete page_length member. Declare
7723 (troff_output_file::really_begin_page): Use current page length
7724 for final V command.
7726 * tbl/main.cc (struct options): New decimal_point_char member.
7727 (options::options): Initialize this.
7728 (process_options): Implement decimalpoint option.
7729 (process_data): Pass decimal_point_char option to table::table.
7730 * tbl/table.h (class table): New decimal_point_char member.
7731 (table::table): Add additional argument.
7732 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
7733 second argument specifying decimal point character. Use this
7735 (table::table): Initialize decimal_point_char.
7736 (table::add_entry): Change call to find_dot.
7738 * troff/input.cc (get_copy, token::next): Implement \V.
7739 (interpolate_environment_variable): New function.
7741 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
7743 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
7744 * pic/pic.y: Likewise.
7746 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
7748 * refer/ref.cc (reference::insert_field, reference::delete_field):
7750 * troff/number.cc (parse_term): Likewise.
7752 * acgroff.m4 (GROFF_PROG_YACC): New macro.
7753 * configure.in: Use GROFF_PROG_YACC.
7755 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
7757 * Makefile.in (OPTIMIZE): New define.
7758 (DEBUG): Empty by default.
7759 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
7761 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
7762 (GROFF_ARRAY_DELETE): Likewise.
7763 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
7765 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
7767 * devps/psstrip.sed: Use different delimiter on last line (so that
7768 it works with BSD 4.4 sed.)
7770 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
7772 * devps/psstrip.sed: Delete comments.
7774 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
7775 optind, opterr, optarg.
7776 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
7779 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
7781 * Makefile.in (check): Dummy target.
7783 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
7785 * Version 1.07 released.
7787 * Integrate mm 1.11.
7789 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
7790 where start_col was meant.
7792 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
7794 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
7796 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
7798 * troff/input.cc (token::next): Make \z\o'...' and similar things
7801 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
7803 (environment): Add margin_character_flags member.
7804 * env.cc (environment::environment(symbol),
7805 environment::environment(const environment *): Initialize
7806 margin_character_flags.
7807 (margin_character): Rewrite.
7808 (environment::output_line): Add a margin character if
7809 margin_character_flags is non-zero. Turn off the
7810 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
7811 zero, use margin_character_node without copying and then set
7812 margin_character_node to 0.
7814 * devps/DESC.in: Change minimum size to 1000.
7816 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
7818 * troff/symbol.h (symbol::hash): Change return type to unsigned
7820 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
7823 * test-groff: Use -r rather than -x.
7825 * grops/psfig.diff: Include in distribution again.
7827 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
7829 * Makefile.in (dist): Use gzip.
7831 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
7833 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
7834 unistd.h as well as in stdlib.h.
7835 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
7836 defined; otherwise include <sys/types.h> and <unistd.h> if
7837 UNISTD_H_DECLARES_GETOPT is defined.
7839 * configure.in: use builtin(include, ... rather than include(...
7840 * configure: Regenerate with autoconf 1.3.
7842 * libdriver/print.cc (printer::adjust_arc_center): Use new
7843 algorithm suggested by Andy Fyfe.
7845 * libdriver/printer.cc (printer::adjust_arc_center): New function.
7846 * include/printer.h: Declare this.
7847 * grops/ps.cc (ps_printer::draw): Use it.
7848 * grodvi/dvi.cc (dvi_printer::draw): Use it.
7850 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
7852 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
7854 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
7856 * eqn/main.cc (main): Handle "eqn -".
7858 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
7860 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
7862 * mm: Integrate version 1.08.
7864 * pic/troff.cc (troff_output::finish_picture): Set
7865 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
7866 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
7867 if it's not defined. Check whether the register is non-zero rather
7868 than whether it's not defined.
7869 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
7871 * indxbib/indxbib.cc: Move all signal handling into...
7872 * indxbib/signal.c: New file.
7873 * configure.in: Call AC_RETSIGTYPE.
7875 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
7876 * configure.in: Call GROFF_STRUCT_EXCEPTION.
7877 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
7879 * troff/input.cc (token::token, token::operator=): Work round SGI
7881 * pic/object.cc (position::position): Likewise.
7883 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
7885 * pic/pic.h: Move declaration of hypot().
7887 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
7889 * pic/pic.h: Declare hypot().
7891 * pic/pic.h: Define M_PI if necessary.
7893 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
7895 * tmac/tmac.e (re): Add alternative version that doesn't use groff
7898 * devps/prologue.ps (RE): Handle the possibility that the old font
7899 doesn't have a FontName entry.
7901 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
7903 * tmac/tmac.e (fam): Redefine to set family in environment 2.
7904 (@C): Use @fam not fam.
7906 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
7908 * lookbib/lookbib.cc (main): Change type of start to const char *.
7909 * lkbib/lkbib.cc (main): Likewise.
7911 * eqn/lex.cc (definition::definition): Don't use member
7912 initializer syntax for members of anonymous unions.
7914 * troff/input.cc (input_stack::backtrace): Change type of to const
7917 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
7919 * include/stringclass.h (class string): Declare inline friend
7920 functions as inline in class declaration.
7921 * troff/hvunits.h (class hunits, class vunits): Likewise.
7922 * include/refid.h (class reference_id): Likewise
7923 * troff/troff.h (points_to_units(units), scale(units, double)):
7924 Delete declarations.
7925 * libdriver/input.cc (get_char): Delete declaration.
7926 * include/lib.h: Change 2nd argument of getopt from const char **
7928 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
7929 char **' before assigning to a `const char **'.
7930 * tbl/table.cc: Delete extra declarations of prints().
7932 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
7934 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
7935 char **' before assigning to a `const char **'.
7937 * libgroff/errarg.cc (errarg::errarg): Don't use member
7938 initializer syntax for members of anonymous unions.
7940 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
7942 * mm: Integrate version 1.07.
7944 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
7946 * troff/input.c (translate2): Rename to
7947 (translate_no_transparent).
7948 (init_input_requests): Rename tr2 to trnt.
7950 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
7952 * troff/charinfo.h (class charinfo): Add transparent_translate field.
7953 (charinfo::set_translation, charinfo::set_special_translation):
7954 Add second argument that specifies value for
7955 transparent_translate.
7956 (charinfo::get_translation, charinfo::get_special_translation):
7957 Add optional second argument that specifies whether translation is
7958 being used for transparent throughput.
7959 * troff/input.cc (charinfo::set_translation,
7960 charinfo::set_special_translation): Handle second argument.
7961 (charinfo::charinfo): Initialize transparent_translate.
7962 (translate): Split main part off into
7963 (do_translate): New function. Pass argument saying whether
7964 translation applies to transparent throughput.
7965 (translate2): New request.
7966 (init_input_requests): Bind translate2 to `tr2'.
7968 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
7970 * tbl/table.h (class table): Add `nokeep' flag.
7971 * tbl/main.cc (process_options): Handle `nokeep' option.
7972 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
7973 table::do_bottom): Don't output keep/release macro definitions or
7974 calls when `nokeep' option has been specified.
7976 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
7978 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
7980 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
7982 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
7983 block_entry::divert, alphabetic_block_entry::divert): Add extra
7984 argument giving column separation.
7985 (table::compute_widths): Pass column separation to
7986 table_entry::divert().
7987 (block_entry::do_divert): If an entry spans multiple columns and a
7988 minimumum width has been specified for each column, then set the
7989 line length to the sum of the widths (plus possibly the column
7992 * troff/input.cc (set_escape_char): Don't set the escape_char
7993 until after calling has_arg().
7995 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
7997 * tbl/table.cc (table::do_top): Add missing \s0 for double box
8000 * tbl/table.cc (table::print_double_hline): Avoid extra new line
8001 in case where r > nrows - 1.
8003 * tbl/table.cc (BODY_HEIGHT): Deleted.
8004 (LINE_SEP): New definition.
8005 (table::print_single_hline, table::print_double_hline,
8006 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
8007 table::do_row, table::do_top): Use LINE_SEP space before a line
8008 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
8010 * tbl/table.cc (text_entry::print_contents): New function.
8011 (text_string_name, right_text_string_name): Deleted.
8012 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
8013 (simple_text_entry::do_width, numeric_text_entry::do_width,
8014 alphabetic_text_entry::do_width): Don't store the contents of the
8016 (left_text_entry::simple_print, right_text_entry::simple_print,
8017 center_text_entry::simple_print,
8018 alphabetic_text_entry::simple_print,
8019 numeric_text_entry::simple_print): Print the entry directly
8020 instead of using the stored string.
8022 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
8024 * devps/Makefile: Strip PostScript files.
8025 * devps/prologue: Rename to...
8026 * devps/prologue.ps.
8027 * devps/psstrip.sed: New file.
8028 * devps/download: Use .pfa rather than .ps for installed versions
8031 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
8033 * troff/env.cc (input_trap): Give a warning if the argument is out
8036 * troff/env.cc (adjust): Treat negative argument as missing. Round
8037 argument > 5 down to 5.
8039 * troff/env.cc (center, right_justify): Make negative argument zero.
8041 * troff/div.cc (page_offset, vertical_position_traps): Treat
8042 invalid argument as missing.
8043 * troff/env.cc (line_spacing, line_length, title_length, indent,
8044 underline, hyphen_line_max_request, control_char,
8045 no_break_control_char, widow_control_request, adjust, input_trap,
8046 point_size): Likewise.
8047 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
8048 constant_space): Likewise.
8049 * troff/input.cc (compatible, shift, warn_request,
8050 set_escape_char): Likewise.
8052 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
8053 * tbl/table.cc (table::table): Likewise.
8055 * Makefile.dev (install_dev): depends on $(DEVFILES).
8057 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
8059 * devX75, devX75-12, devX100, devX100-12: New directories.
8060 * Makefile.in: Add these to DEVDIRS.
8062 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
8063 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
8064 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
8065 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
8067 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
8068 (uninstall): New target.
8069 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
8070 uninstall_prog, uninstall_dev): New targets.
8072 * troff/div.cc (return_request): Treat an invalid argument as
8075 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
8077 * tmac/tmac.e ((f): Set up the environment even when there's a
8078 current diversion. Transperently throughput a call to @N.
8081 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
8083 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
8084 up to vertical resolution.
8086 * tbl/table.cc (table::do_row): Change row number after printing
8089 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
8091 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
8093 * Rename CHANGES to NEWS.
8095 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
8097 * libgroff/new.cc (operator new): Avoid calling malloc(0).
8099 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
8101 * man.ultrix: Removed.
8103 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
8105 * Makefile.comm (extraclean): Delete files whose names begin with
8108 * pic/troff.cc (troff_output::text): Fix typo in implementation of
8111 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
8113 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
8114 * troff/div.cc (page_length, need_space, space_request): Treat
8115 invalid optional argument as missing.
8116 * troff/env.cc (number_lines): If the first argument is present
8117 but not a number, turn on line numbering, don't change the next
8118 line number and parse the remaining arguments.
8120 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
8122 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
8124 * eqn/box.h: Change declaration accordingly.
8125 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
8126 the specified size was bad but don't give an error. Check for
8128 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
8129 * eqn/lex (do_size): Likewise.
8131 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
8133 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
8136 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
8138 * tbl/table.cc (table::init_output): Improve error message when
8139 table won't fit on one page.
8141 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
8143 * pic/troff.cc (troff_output::start_picture): Generate line
8144 containing a horizontal motion equal to the width of the picture.
8146 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
8147 using GROFF_COMMAND_PREFIX environment variable.
8149 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
8151 * mdate.sh: Use $NF rather than $(NF).
8153 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
8155 * pic/main.cc (main): Use %1 not %c in argument to warning.
8157 * eqn/main.cc (main): Output code to check that geqn was given the
8160 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
8162 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
8163 `ln -s ../Makefile .; make; rm -f Makefile'.
8165 * troff/hyphen: Rename to...
8167 * troff/input.cc (main): Delete -H option. Don't call
8169 * troff/env.cc: Include searchpath.h and macropath.h.
8170 (exception_dictionary): Deleted.
8172 (read_hyphen_file): Deleted.
8173 (hyphenation_language): New struct.
8174 (class trie, class hyphen_trie): Move declarations up.
8175 (trie_node::~trie_node): Deleted.
8176 (trie::delete_trie_node): New function.
8177 (trie::do_delete): New pure virtual function.
8178 (hyphen_trie::do_delete): New function.
8179 (trie::~trie): New function.
8180 (hyphen_trie::~hyphen_trie): New function.
8181 (trie::clear): No need to chcek that tp is not 0.
8182 (current_language, language_dictionary): New variables.
8183 (hyphen_word): Give an error if no current language. Use
8184 exceptions dictionary in current language.
8185 (hyphen_trie::read_patterns_file): Find file using macro_path.
8186 Allow comments (starting with %) in patterns file. Don't make it
8187 a fatal error if the file can't be found.
8188 (hyphenate): Return if no current language. Get the exceptions
8189 dictionary and the hyphenation patterns from the current language.
8190 (set_hyphenation_language): New variable.
8191 (hyphenation_patterns_file): New function.
8192 (hyphenation_language_reg): New class.
8193 (hyphenation_language_reg::get_string): New function.
8194 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
8195 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
8197 * groff/groff.cc (main, help, synopsis): Delete -H option.
8198 * include/Makefile.sub: Don't define HYPHENFILE.
8199 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
8200 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
8201 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
8202 hyphenation patterns.
8204 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
8206 * eqn/neqn.sh: New file.
8207 * eqn/Makefile.sub: Handle neqn.sh.
8209 * eqn/eqn.h: Declare `nroff' variable.
8210 * eqn/box.cc (param_table): Add `nroff' param.
8212 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
8214 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
8216 * troff/troff.h (WARN_FONT): New warning.
8217 (WARN_TOTAL): Change accordingly.
8218 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
8219 (warning_table): Add WARN_FONT.
8220 * troff/node.cc (mount_font_no_translate): Pass argument to
8221 font::load_font. If this is non-zero, give a warning.
8222 Don't give an error message when accessing a font that has already
8223 been found to be invalid.
8224 * include/font.h (font::load, font::load_font): Add additional
8225 optional argument which suppresses error message if the font is
8227 * libgroff/font.cc (font::load_font): Handle additional argument.
8228 (font::load): Add additional argument. If this is non-null, set it
8229 to 1 and don't give error message.
8231 * include/printer.h (printer::end_page): Add argument giving
8233 * libdriver/input.cc (do_file): Pass this.
8234 * grops/ps.cc (ps_printer::end_page): Add argument.
8235 * grodvi/dvi.cc (dvi_printer::end_page,
8236 draw_dvi_printer::end_page): Add argument.
8237 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
8238 columns_per_page members. New member nlines.
8239 (DEFAULT_LINES_PER_PAGE): Deleted.
8240 (tty_printer::tty_printer): Don't compute lines_per_page from
8241 font::paperlength. Don't compute columns_per_page from
8243 (tty_printer::add_char): Don't check horizontal position against
8244 columns_per_page. Grow glyphs vector if neccessary.
8245 (tty_printer::end_page): Add argument giving page_length in units.
8246 Discard lines past end of page.
8248 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
8250 * tmac/tmac.tty-char: Fix definition of \(/l.
8252 * tmac/tmac.X: Define \(en.
8254 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
8256 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
8257 lpq, then use lp rather than lpr.
8259 * tmac/tmac.s (par@reset): Don't call `ad'.
8260 (par*env-init): Call `ad'.
8262 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
8264 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
8267 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
8268 * indxbib/indxbib.cc: Likewise.
8270 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
8272 * libgroff/putenv.c: New file.
8273 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
8274 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
8275 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
8276 stdlib.h with AC_HAVE_HEADERS.
8278 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
8280 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
8283 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
8285 * eqn/box.cc (gsize): Make it an int.
8286 (set_gsize): Parse argument handling increment or decrement.
8287 (box::top_level): Convert gsize to a string.
8289 * troff/input.cc (exit_troff): Make buf unsigned char [].
8290 Call to make_temp_iterator casts buf to char*.
8292 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
8294 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
8295 * Makefile.cpg (depend.temp): Likewise.
8297 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
8299 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
8301 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
8303 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
8305 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
8307 * Version 1.06 released.
8309 * Integrate mm 1.04.
8311 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
8313 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
8315 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
8317 * afmtodit/afmtodit.pl: Add -n option that disables generation of
8319 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
8320 afmtodit. Regenerate.
8322 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
8323 @f back past the current position.
8325 * tmac/tmac.e: Change calls to @R so that comments are not part of
8328 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
8330 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
8332 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
8333 check that we can link a call to a function declared in <stdio.h>.
8334 (GROFF_UNISTD_H): New macro.
8335 * configure.in: Call it.
8336 * Makefile.in: Document it.
8337 * include/posix.h: New file.
8338 * troff/troff.h: Don't include <osfcn.h>
8339 * troff/input.cc: Include posix.h.
8340 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
8342 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
8343 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
8345 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
8346 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
8347 * libbib/search.cc (O_RDONLY): Delete definition.
8348 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
8349 Don't include <osfcn.h>.
8351 * acgroff.m4 (GROFF_TIME_T): New macro.
8352 * configure.in: Call it.
8353 * Makefile.in: Document it.
8355 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
8356 * configure.in: Call it.
8357 * Makefile.in: Document -DTRADITIONAL_CPP.
8358 * include/ptable.h: Don't include generic.h.
8361 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
8362 Afterwards remove [T1 and [T2.
8363 (ref*spec!0, ref*spec!2): Use T1 rather than T.
8364 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
8365 (ref*add-T2): Renamed from ref*add-T.
8366 (ref*add-T1): New macro.
8368 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
8370 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
8372 * libbib/index.cc: Include <fcntl.h>.
8373 (O_RDONLY): Define if necessary.
8374 (make_index_search_item, index_search_item_iterator::get_tag,
8375 index_search_item::check_files): Use O_RDONLY.
8376 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
8377 (O_RDONLY): Define if necessary.
8378 (search_list::add_file): Use O_RDONLY.
8379 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
8381 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
8384 * libbib/index.cc (S_ISREG): Define it if necessary.
8385 (index_search_item::load): Use S_ISREG.
8387 * include/driver.h: Include <errno.h>.
8389 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
8391 * eqn/box.cc (body_height): Increase default value to 85.
8392 (body_depth): Increase default value to 35.
8394 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
8396 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
8397 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
8398 protected from expansion with \E.
8400 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
8402 * Makefile (Makefile): New target.
8404 * Makefile.sub (configure, distfiles): New targets.
8406 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
8409 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
8411 * eqn/box.cc (param_table): Add body_height and body_depth.
8413 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
8415 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
8417 * psbb/Makefile.sub: Don't link with libgroff.a.
8419 * acgroff.m4 (GROFF_PUTENV): New macro.
8420 * configure.in: Call GROFF_PUTENV.
8421 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
8422 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
8425 * troff/env.cc (distribute_space): Rename force_forward argument
8426 to force_reverse. Reverse the list if force_reverse is true.
8428 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
8430 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
8432 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
8433 height or depth to be negative. Guard against SUP_RAISE quantity
8436 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
8438 * devps/generate/textmap: Add `an' (arrowhorizex).
8439 * tmac/tmac.ps: \(an overlaps horizontally.
8440 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
8442 * devps/symbolchars: Add arrowverttp, arrowvertbt.
8443 * devps/textmap: Add arrowvertex.
8444 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
8445 updownarrow delimiters.
8446 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
8448 * tbl/table.cc (simple_entry::position_vertically,
8449 block_entry::position_vertically): For a centered entry, perform
8450 the motion in two stages.
8452 * refer/refer.cc (split_punct): Don't call lookup_token if there
8455 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
8457 * troff/input.cc (token::next): Delete token_node after copying
8460 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
8463 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
8465 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
8467 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
8469 * grops/ps.cc (usage): -b option takes an argument.
8471 * devps/prologue (PLG): New procedure.
8472 * grops/ps.cc (main, usage): New -g option.
8473 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
8476 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
8478 * include/cset.h: Include <limits.h> if we have it.
8480 * libgroff/illegal.cc: New file.
8481 * include/lib.h (illegal_input_char): Use table.
8482 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
8483 * pic/lex.cc (ARG1): Renumber to 14.
8484 * eqn/lex.cc (ARG1: Likewise.
8486 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
8487 (eg 1.05.90) correctly.
8489 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
8491 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
8492 Rename $r and $R registers to $v and $V.
8493 ($r, $R): Initialize to 0.
8494 (@v, @V): New macros.
8498 * troff/input.cc (main, usage): Add -R option that says not to
8500 * eqn/main.cc (main, usage): Rename -n to -R.
8502 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
8504 * devps/DESC.in: Leave font positions 5-9 blank.
8505 * devdvi/DESC.in: Likewise.
8507 * grog/grog.pl: Handle `.PS <file' correctly.
8509 * troff/input.cc (input_stack::push): Improve error message when
8510 input stack limit exceeded.
8512 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
8514 * refer/refer.cc (main): Fix typo in handling of `a' option.
8516 * refer/refer.cc (do_bib): In state START after a newline remain
8519 * groff/groff.sh: Deleted.
8520 * groff/Makefile.sub: Delete handling of groff.sh.
8522 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
8523 to determine whether to use \X'ps:...'.
8524 * tmac/troffrc: Set 0p register to 0.
8525 * tmac/tmac.ps: Set 0p register to 1.
8527 * groff/groff.cc: Support -X option. Give warning for -TXps and
8528 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
8529 * tmac/troffrc: Support -r.X=1.
8531 * pic/troff.cc (troff_output::dot): Don't test
8532 zero_length_line_flag.
8534 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
8536 * include/lib.h: Declare getopt() and friends unless
8537 STDLIB_H_DECLARES_GETOPT is defined.
8539 * doc/chars.tr: Delete.
8540 * man/groff_char.man: New file.
8542 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
8544 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
8545 user has changed register format.
8547 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
8549 * groff/groff.cc: Get rid of device_table. Get postprocessor from
8550 `postpro' command in DESC file. Get spooler command from `print'
8551 command in DESC file. Execute spooler command with /bin/sh.
8553 * groff/groff.cc: Split Unix-specific parts into...
8554 * groff/pipeline.c: New file.
8557 * COPYING: New file.
8558 * all files: Update copyright notices.
8560 * Rearrange files. Redo Makefiles. Use autoconf.
8562 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
8564 * troff/input.c (charinfo_to_node_list): Interpret character
8565 definition with escape_char of `\'.
8567 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
8569 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
8570 Define INT_DIGITS as big enough for 64-bit integer.
8571 * lib/strtol.c: Don't include lib.h.
8572 * lib/lib.h: Delete ifdef __cplusplus stuff.
8574 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
8576 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
8577 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
8578 get DESC from current directory.
8580 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
8582 * tbl/main.c (main): Always reset the line number when reading
8585 * tbl/table.c (table::print_single_hline, table::print_double_hline,
8586 table::define_bottom_macro, table::do_row, table::do_top): Round
8587 vertical spacing up to vertical resolution.
8589 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
8591 * ps/ps.h (enum resource_type): Avoid comma at end of
8593 * dvi/dvi.c (class dvi_printer): Likewise.
8594 * dvi/tfmtodit.c (gf::load): Likewise.
8595 * refer/label.y (struct expression): Likewise.
8596 * refer/refer.c (class label_processing_state): Likewise.
8597 * refer/indxbib.c (do_file): Likewise.
8598 * troff/troff.c (enum warning_type): Likewise.
8599 * tbl/main.c (process_data): Likewise.
8600 * troff/charinfo.h (class charinfo):
8602 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
8604 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
8606 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
8608 * groff.c: Move to new groff subdirectory.
8609 * groff/Makefile: New file.
8610 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
8612 * man/mdate.sh: Use ls -L if supported.
8614 * Consolidate all header files produced by gendef into lib/defs.h.
8615 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
8616 Don't include path.h.
8617 * lib/Makefile (path.h): Don't generate.
8618 * troff/input.c: Include defs.h. Don't include config.h.
8619 * troff/Makefile (config.h): Don't generate.
8620 * refer/index.h: Don't include suffix.h.
8621 * refer/index.c: Include defs.h.
8622 * refer/indxbib.c: Include defs.h.
8623 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
8625 * refer/Makefile (suffix.h, path.h): Don't generate.
8626 * groff.c: Don't include config.h. Include defs.h.
8627 * Makefile (config.h): Don't generate.
8628 (lib/defs.h): Generate.
8629 (topclean): Remove lib/defs.h.
8631 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
8633 * lib/malloc.c, lib/getpagesize.h: Deleted.
8634 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
8636 * lib/Makefile: Delete malloc-related stuff.
8637 * lib/new.c: Workaround COOKIE_BUG if necessary.
8639 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
8640 needed header files directly.
8641 * refer/refer.h: Omit definition of DEFAULT_INDEX.
8642 * Makefile: Include definition of DEFAULT_INDEX in path.h.
8644 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
8646 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
8648 * lib/font (font::load_desc, font::load): Don't split argument of
8650 (font::handle_unknown_font_command): Change type.
8651 * ps/ps.c (ps_font::handle_unknown_font_command,
8652 handle_unknown_desc_command): Change type.
8653 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
8655 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
8657 * lib/font.h (font::handle_unknown_font_command): Add file and
8659 * lib/font.c (font::handle_unknown_font_command):
8660 * ps/ps.c (ps_font::handle_unknown_font_command):
8661 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
8662 lineno arguments. Use _with_file_and_line functions for error
8665 * lib/fontfile.c (font::unknown_desc_command_handler): New static
8667 * lib/font.c (font::set_unknown_desc_command_handler): New
8669 (font::load_desc): For unknown commands, call
8670 unknown_desc_command_handler if not null.
8671 * lib/font.h (class font): Declare them.
8672 (FONT_COMMAND_HANDLER): New typedef.
8673 * ps/ps.c (handle_unknown_desc_command): New function.
8674 (main): Set bflag if we had a -b option. Call
8675 font::set_unknown_desc_command_handler.
8676 (broken.h): Don't include.
8677 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
8679 * ps/devps/Makefile: Add `broken' command to DESC file using
8680 BROKEN_SPOOLER_FLAGS.
8682 * macros/tmac.e ([, ]): Add as synonyms for { and }.
8684 * macros/tmac.e ($p): Only exdent if \$3 > 0.
8686 * macros/tmac.e (@R, @S): New macros.
8687 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
8688 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
8689 Declare $H, $[0-9], .. macros with @S.
8690 Declare |0, |1, |2, |3 strings with @S.
8692 * macros/tmac.e (@S): Rename to @U.
8694 * macros/tmac.e (@z): Define @b and bp as empty instead of
8697 * macros/tmac.e (@m): Deleted.
8698 (@h): Don't call @m.
8699 (@z): Don't set @m trap.
8701 * macros/tmac.e ($h, $f): Define |z as empty string.
8703 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
8706 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
8708 ()f): Likewise for * register.
8710 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
8711 argument is missing, don't change $R. Call sr with three
8712 arguments when initializing.
8714 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
8716 * macros/tmac.e (sr): New macro.
8717 Initialize $r and $R using sr.
8719 * macros/tmac.e (,): Delete \*(#[.
8721 * troff/env.c (set_tabs): Read the tab type even if the position
8722 is bad. Allow the position of the first tab stop to be negative.
8724 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
8726 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
8728 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
8729 rather than -DPATHCONF_MISSING.
8730 * Makefile: Get rid of PATHCONF_MISSING.
8732 * refer/map.c: New file.
8733 * refer/index.c: Interface to mmap through map.c. Rename map_size
8735 * refer/Makefile: Handle map.c.
8736 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
8738 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
8740 * Makefile: RANLIB should be `true' if there is no ranlib.
8741 * lib/Makefile (libgroff.a): Simplify.
8742 * driver/Makefile (libdriver.a): Simplify.
8744 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
8745 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
8748 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
8750 * troff/env.c (compare_ranges): Declare as extern "C".
8752 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
8754 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
8756 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
8758 * pic/troff.c (troff_output::text): Merge in grops_output::text,
8759 but conditionalize use of \X based on \*(.T.
8760 (grops_output::*): Deleted.
8761 * pic/output.h: Delete declaration of make_grops_output.
8762 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
8763 by default. -n sets it to 0.
8764 (usage): Corresponding changes.
8765 * groff.c (main): Don't pass -x or -p to pic.
8766 * groff.sh: Likewise.
8768 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
8771 * ps/devps/afmtodit: Change calculation of asc_boundary and
8772 desc_boundary. Make these bounds inclusive.
8773 * ps/devps: Regenerate font files.
8775 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
8777 * macros/tmac.latin1: New file.
8778 * macros/tmac.tty-char: Use tmac.latin1.
8779 (tmac.tty-tr): Deleted.
8780 * macros/Makefile: Install tmac.latin1.
8781 * macros/tmac.dvi: Use tmac.latin1.
8782 * macros/troffrc: Translate \[char160] onto no-break space here.
8783 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
8785 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
8787 * macros/tmac.Xps: Use `do' request.
8789 * macros/tmac.ps: Use `do' request.
8791 * macros/tmac.e (@C): Use `do' request.
8793 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
8794 * macros/Makefile: Install tmac.X*.
8796 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
8797 * tty/Makefile: Don't install tmac.tty*.
8798 * macros/Makefile: Install tmac.tty*.
8800 * dvi/tmac.dvi: Move to macros.
8801 * dvi/Makefile: Don't install tmac.dvi.
8802 * macros/Makefile: Install tmac.dvi.
8804 * ps/tmac.ps*: Move to macros.
8805 * ps/Makefile: Don't install tmac.ps*.
8806 * macros/Makefile: Install tmac.ps*.
8808 * eqn/box.c: Provide draw_lines parameter corresponding to -D
8810 * macros/eqnrc: Set draw_lines parameter based on device.
8811 * groff.c: Don't pass -D flag to eqn.
8812 * groff.sh: Likewise.
8813 * eqn/main.c: Warn about use of -D.
8815 * troff/input.c (process_startup_file): New function.
8816 (main): Call process_startup_file().
8817 * macros/troffrc: New file.
8818 * macros/Makefile: Install troffrc.
8819 * groff.c (main): Don't pass extra -m option to troff. For a
8820 pseudo device pass the name of the pseudo device to troff using
8822 * groff.sh: Likewise.
8823 * groff.c (possible_command::prepend_arg): Deleted.
8825 * troff/input.c (do_request): New function.
8826 (init_input_requests): Bind "do" to do_request.
8828 * eqn/main.c (main): Instead of loading eqnchar from device directory,
8829 load eqnrc from macro directory.
8830 * macros/eqnrc: New file.
8831 * macros/Makefile: Install eqnrc.
8832 * ps/devps/eqnchar: Deleted.
8833 * ps/devps/Makefile: Don't install eqnchar.
8834 * dvi/devdvi/eqnchar: Deleted.
8835 * dvi/devdvi/Makefile: Don't install eqnchar.
8836 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
8839 * lib/device.[ch]: New files.
8840 * lib/font.h (font::set_device_name, font::get_device_name):
8842 * lib/fontfile.c: Use device.h.
8843 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
8844 * troff/input.c: Delete definition of `device'.
8845 (main): Don't initialize device.
8846 * troff/troff.h: Include device.h rather than declaring device.
8847 * troff/Makefile: No need to handle DEVICE.
8848 * driver/input.c: Include device.h. Don't use
8849 font::{set,get}_device_name.
8850 * groff.c, Makefile: Rename device.h to config.h.
8851 * groff.c: Use library device variable.
8852 * eqn/main.c: Use library device variable.
8853 * eqn/Makefile: No need to handle DEVICE.
8855 * lib/searchpath.[ch]: New files.
8856 * lib/Makefile: Handle searchpath.[ch].
8857 * troff/input.c (open_file, init_dirs): Deleted.
8858 (macro_dirs): Deleted.
8859 (open_mac_file, macro_source): Use class search_path.
8860 (add_string, struct string_list): Move definition.
8861 (main): Change -M option to use macro_path. Delete call to
8863 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
8864 Rewrite to use class search_path.
8865 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
8866 * lib/Makefile: fontfile.c depends on searchpath.h.
8867 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
8869 * lib/macropath.[ch]: New files.
8870 * troff/Makefile: No need to handle MACROPATH.
8872 * troff/input.c: Delete DUMP code.
8873 * lib/fontfile.c, lib/font.h: Delete
8874 font::forget_command_line_font_dirs.
8876 * troff/input.c (push_token): New function.
8877 (handle_first_page_transition): Use push_token().
8878 (process_input_stack): Change handling of a space at the beginning
8881 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
8883 * troff/input.c (font_dirs): Delete unused variable.
8885 * eqn/lex.c (do_set): Correct error messages.
8887 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
8889 * troff/input.c (do_define_string): Allow the string name to be
8890 followed immediately by a tab.
8891 (define_character): Likewise.
8893 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
8895 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
8898 * troff/input.c (input_iterator::is_file): New virtual function.
8899 (file_iterator::is_file): New function.
8900 (input_stack::end_file): New function.
8901 (input_stack::next_file): Handle the situation where there is no
8902 file on the input stack correctly. Avoid making two passes over
8904 (next_file): Make the filename optional; in this case call
8905 input_stack::end_file().
8907 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
8909 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
8910 produce a real _ charater when the current font is CW and _
8913 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
8914 expression to work around gcc 2.2 bug.
8916 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
8918 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
8920 * troff/env.c (environment::add_padding): New function.
8921 (environment::add_char): Use add_padding().
8922 (environment::space): Likewise.
8923 (environment::wrap_up_field): Add some padding if there is none
8924 and there's no current tab.
8925 * troff/env.h: Declare environment::add_padding.
8927 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
8929 * pic/pic.y: undef fmod and rand before declaring them.
8931 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
8933 * troff/input.c (main): If the DESC file specifies a font name of
8934 0, then leave the corresponding font position empty.
8936 * nroff.sh: New file.
8937 * Makefile (install.nobin): Install nroff.sh.
8939 * tty/devlatin1/R.proto: Add ao as synonym for de.
8940 * tty/tmac.tty-char: Define ao as o.
8942 * tty/dev{ascii,latin1}/R.proto: Add aq.
8943 * tty/tmac.tty-char: Delete definition of aq.
8945 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
8947 * troff/input.c (init_charset_table): Don't translate 0240.
8948 * ps/tmac.ps: Translate char160 to space.
8949 * dvi/tmac.dvi: Likewise.
8950 * tty/tmac.tty: Likewise.
8952 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
8954 * dvi/tmac.dvi: Add support for all Latin-1 characters.
8956 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
8957 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
8960 * tty/tmac.tty-char: Add \(ah.
8962 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
8963 No need to define \(FM and \(!/. Conditionalize all character
8966 * ps/devps/lgreekmap: Add +h, +f, +p.
8968 * ps/tmac.psnew: New file.
8969 * ps/Makefile: Install tmac.psnew.
8971 * troff/input.c (charinfo_to_node_list): Don't ever interpret
8972 character definitions in compatible mode.
8974 * troff/input.c (remove_character): New function.
8975 (init_input_requests): Bind remove_character to "rchar".
8977 * ps/tmac.psold: New file.
8978 * ps/Makefile: Install tmac.psold.
8979 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
8980 characters into tmac.psold. Make these definitions unconditional.
8982 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
8984 * ps/tmac.ps: Don't define \('c and \('C.
8986 * ps/devps/textmap: Move Greek characters to...
8987 * ps/devps/symbolchars:
8989 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
8991 * ps/devps/text.enc: Add quotesingle.
8992 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
8993 * tty/tmac.tty-char: Likewise.
8994 * dvi/devdvi/texmi.map: Add +h, +f, +p.
8995 * dvi/devdvi/texi.map: Add Fn.
8996 * dvi/devdvi/msam.map: Add lz.
8997 * dvi/tmac.dvi: Handle Bq, bq, aq.
8999 * pic/lex.c (get_token): Recognize 'th.
9000 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
9002 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
9004 * ps/devps/textmap: Move di, mu, +- to...
9005 * ps/devps/symbolchars:
9007 * macros/tmac.s (@XS): Don't call par@reset or fi.
9008 (XA): Call LP. Turn off adjustment. Reduce line length.
9010 * macros/tmac.s: Initially alias XS to LP.
9011 (XS): Rename to @XS.
9012 (cov*ab-init): Alias XS to @XS.
9014 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
9016 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
9017 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
9018 (token::is_size, token::changes_env): Deleted.
9019 * troff/number.c (parse_term): No need to process \s explicitly.
9020 Call tok.next() only after scale indicator has been processed.
9021 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
9023 (token::next): Handle \s, \f, \S, \H immediately rather than
9024 returning them as tokens.
9025 (token::operator==, token::description, token::add_to_node_list,
9026 token::process): Remove handling of deleted tokens.
9028 * troff/env.c (environment::add_char): When adding padding
9029 indicator character, call start_line() if necessary.
9031 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
9033 * ps/devps/afmtodit: Don't output 0 kerns.
9035 * ps/devps/afmtodit: Remove directory from name of encoding in
9036 font description file.
9038 * ps/devps/afmtodit: Improve error messages.
9040 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
9042 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
9043 * ps/devps/FontMakefile: Deleted.
9044 * ps/devps/afmname: New file.
9046 * ps/devps/symbol.sed: New file.
9047 * ps/devps/symbol.diff: Deleted.
9048 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
9049 Generate zapfdr.afm from zapfd.afm.
9051 * tty/tmac.tty (tty-char): Prefix definition with ".
9053 * macros/tmac.an (TP): Don't start a diversion if one has already
9056 * tty/tmac.tty-char: Add Latin-1 characters.
9058 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
9060 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
9062 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
9063 Move declaration of struct horizontal_span.
9065 * tbl/table.c (table::table): Initialize span_list.
9066 (table::~table): Delete span_list.
9068 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
9070 * ps/devps/Makefile: Avoid dependency on GNU make.
9072 * ps/tmac.ps: Check that character does not already exist before
9075 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
9076 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
9077 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
9080 * tty/tmac.tty-char: New file.
9081 * tty/Makefile: Install tmac.tty-char.
9082 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
9085 * tty/tmac.tty: Fix definition of \(34.
9087 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
9088 bracket-drawing characters onto |. Add *o.
9090 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
9091 only if current_field.
9093 * troff/dictionary.c (dictionary::lookup): Free old_table after
9096 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
9098 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
9099 whose glyphs are identical to glyphs of some Roman character.
9101 * tty/devlatin1/R.proto (bu): Deleted.
9102 * tty/devascii/R.proto (bu): Deleted.
9103 * tty/tmac.tty: Add definition of \(bu.
9105 * eqn/main.c (do_file): Pass FILE as argument.
9106 (main): Automatically load eqnchar. New options -F and -n.
9107 Pass do_file an opened FILE.
9108 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
9109 No need to include font.h.
9110 * groff.sh: Likewise. Don't need to use - for standard input.
9111 Prefix files with -- if first file starts with -.
9113 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
9115 * troff/env.c (environment::possibly_break_line): Don't set line
9116 to 0 across call to output_line(). Don't call output_line() until
9117 after discarding nodes after break.
9119 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
9121 * request.h (macro::empty): Declare it.
9122 * input.c (macro::empty): New method.
9123 (interpolate_macro): Don't give a WARN_SPACE if the two-character
9126 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
9128 * troff/env.c (environment::start_field): Decrement space_total
9129 when a space is frozen.
9131 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
9133 * macros/tmac.an (R): Delete macro.
9135 * troff/input.c (get_copy, token::next): Support \# (like \" but
9136 newline is ignored).
9138 * troff/input.c (token::next): Fix error message in 'Y' case.
9140 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
9142 * eqn/delim.c (define_extensible_string): Recognize any prefix of
9145 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
9147 * c++test.c: Include <osfcn.h>.
9149 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
9152 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
9154 * tbl/table.c (table::divide_span): Don't count column separation
9155 if expand was specified.
9157 * tbl/main.c (process_format): Don't ignore width specs in
9158 continued format. Give warning for changing equal widths or
9159 column separation in continued format.
9160 (process_data): Set column separation, minimum width, equal
9161 columns at end of table.
9163 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
9165 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
9166 node::add_discretionary_hyphen): Use soft_hyphen_char.
9167 (set_soft_hyphen_char): New function.
9168 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
9170 * Makefile (c++tested): Give more helpful message if test fails.
9172 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
9174 * troff/input.c (init_charset_table): Translate 0240 to
9175 an unbreakable space.
9177 * troff/token.h (token::hyphen_indicator): New function.
9178 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
9180 * troff/input.c (translate): Allow translation to \%.
9181 * troff/node.c (node::add_char): Handle
9182 TRANSLATE_HYPHEN_INDICATOR.
9183 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
9185 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
9188 * tty/devlatin1/R.proto: \(hy and - should print as 055.
9190 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
9192 * groff.c (run_commands): If the last command gets a SIGPIPE send
9193 a SIGPIPE to all children than haven't yet terminated. When
9194 command terminates, set pid field to -1.
9196 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
9198 * groff.c (main): Pass an appropriate -filename option to gxditview.
9200 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
9202 * Makefile.bd (install): Remove existing program before copying.
9204 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
9205 programs which have Unix counterparts to be installed with
9206 user-specified prefix.
9208 * troff/input.c (exit_troff): Don't check if exit_started.
9209 (exit_request): Don't call exit_troff if exit_started.
9211 * Makefile.bd (install.mm): Rename to install.dwbmm.
9213 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
9215 * driver/input.c (do_file): Add missing break for '#' case.
9217 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
9219 * troff/input.c (input_stack::clear): Clear past any boundaries and
9220 then add the boundaries back.
9222 * troff/input.c (exit_troff): Return immediately if already
9225 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
9227 (pg*end-page): If the text has ended and there are no more
9228 footnotes or keeps, exit.
9230 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
9232 * troff/input.c (init_charset_table): Make \(rq transparent by
9235 * macros/tmac.an: Define lq and rq strings.
9237 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
9239 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
9241 * troff/env.c (environment::final_break): New function.
9242 (environment::newline): Set prev_line_interrupted to 2 if
9244 * troff/env.h: Declare environment::final_break.
9245 * troff/input.c (exit_troff): Call environment::final_break()
9246 instead of environment::do_break().
9248 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
9249 doesn't already exist.
9250 * macros/man.local: New file.
9251 * macros/tmac.an: Load man.local.
9252 * macros/man.ultrix: New file.
9254 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
9256 * troff/input.c (exit_groff): Rename to...
9257 (exit_troff): New function.
9259 * troff/div.c (exit_started, done_end_macro,
9260 seen_last_page_ejector): New global variables.
9261 (began_page_in_end_macro): New static variable.
9262 (exit_flag): Deleted.
9263 (top_level_diversion::top_level_diversion): Initialize
9265 (top_level_diversion): More elaborate test for whether
9266 cleanup_and_exit() should be called.
9267 Set began_page_in_end_macro if the end macro isn't yet finished.
9268 * troff/div.h (top_level_diversion::last_page_count): New data
9270 (top_level_diversion::set_last_page): New function.
9271 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
9272 * troff/env.c (do_break): Zero prev_line_interrupted.
9273 * troff/input.c (exit_flag): Delete declaration.
9274 (LAST_PAGE_EJECTOR): New magic cookie.
9275 (token::next): Handle LAST_PAGE_EJECTOR.
9276 (exit_groff): Set exit_started and done_end_macro instead of
9277 exit_flag. Call top_level_diversion::set_last_page. Push a
9278 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
9279 another ejection after setting seen_last_page_ejector.
9281 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
9283 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
9285 * macros/tmac.e (TH): Make sure there's room for the initial
9288 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
9289 Set FVS in points rather than units.
9291 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
9293 * troff/div.c (top_level_diversion::add_trap): Don't consider the
9294 position of empty slots.
9296 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
9298 * ps/devps/S: Fix height and depth of parenrightex.
9299 * ps/devps/symbol.diff: Regenerate.
9301 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
9303 * tmac.e (u): Do underlining as in -mgs.
9305 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
9307 * tty/tty.c (tty_printer::end_page): If overstriking is
9308 suppressed, still turn overstruck horizontal and vertical lines
9311 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
9314 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
9316 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
9318 * Version 1.05 released.
9320 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
9322 * tty/tty.c: Instead of keeping an array of glyphs and then
9323 sorting it, keep a ordered linked list of glyphs for each line.
9325 * driver/driver.h: Include stddef.h.
9327 * tty/tty.c (compare_glyph):
9328 * refer/refer.c (rcompare):
9329 * troff/env.c (compare_ranges): Arguments of qsort comparison
9330 function should be const void *.
9332 * troff/number.c (parse_term):
9333 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
9336 * refer/label.y (consider_authors): Don't access variables
9337 constructed under a condition outside that condition: put braces
9338 round for statement containing declaration; redeclare use of same
9341 * pic/pic.y (text_expr): Delete production that allows
9342 parenthesised text_expr.
9343 (expr): Allow a conditional_expr to appear in parentheses.
9344 (conditional_expr): Rename to any_expr.
9346 * mm: Install new version 1.01 from jh.
9348 * lib/font.c (font::get_width): Cache scaled widths.
9349 (font::font): Initialize widths_cache.
9350 (font::~font): Destroy widths_cache.
9351 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
9353 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
9355 * c++test.c, c++test.ref: New files.
9356 * Makefile: Check that the C++ compiler works.
9358 * ps/tmac.pspic (PSPIC): Do a break.
9360 * ps/tmac.ps: Move definition of PSPIC into...
9361 * ps/tmac.pspic: New file.
9362 (PSPIC): Draw box around picture, but make it invisible to grops.
9363 * ps/tmac.ps: Load tmac.pspic.
9364 * ps/Makefile: Install tmac.pspic.
9366 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
9368 * lib/font.c (scale_round): If n is negative,
9369 subtract .5 before truncating floating point result.
9371 * lib/fontfile.c: Include <errno.h>.
9373 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
9375 * driver/input.c (get_char): Inline. Don't update current_lineno.
9376 Change callers to up date current_lineno if necessary.
9377 Use get_char() instead of getc(current_file).
9379 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
9381 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
9383 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
9385 * tty/tty.c (tmac.tty): Define \(rg as (R).
9387 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
9389 * lib/lib.h: New define a_delete.
9390 * Use a_delete instead of delete when deleting an array of objects
9391 without destructors.
9393 * lib/lib.h: Rename adelete to ad_delete.
9394 * Change uses of adelete.
9396 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
9398 * eqn/eqn.y: Include lib.h.
9400 * troff/node.c (grow_font_table): Delete old_font_table.
9402 * mm: Install new version from jh.
9404 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
9406 * tbl/table.h (format_type): Make global instead of local to class
9407 entry_format. Prefix enumerators with FORMAT_.
9408 * tbl/table.c, tbl/main.c: Corresponding changes.
9409 * refer/token.h (token_type): Make global. Prefix enumerators
9411 * refer/token.[ch]: Corresponding changes.
9412 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
9414 * troff/div.c (node::set_vertical_size): Don't name argument.
9416 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
9418 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
9419 * lib/lib.h: Define adelete accordingly.
9420 * pic/object.c (graphic_object::graphic_object):
9421 * tbl/main.c (format::~format):
9422 * tbl/table.c (table::~table):
9423 * refer/ref.c (reference::~reference, reference::merge,
9424 reference::insert_field, reference::delete_field): Use adelete.
9426 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
9428 * tbl/table.h: Corresponding changes.
9430 * common.c (common_output::dashed_arc, common_output::dotted_arc):
9431 Ensure total_angle is positive.
9433 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
9435 * refer/ref.c (reference::merge, reference::insert_field,
9436 reference::delete_field): Avoid delete[0].
9438 * refer/token.c (init_special_chars): Move calls to cmupper
9439 outside calls to init_two_char_letter to work around bug in gcc
9442 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
9444 * lib/new.c (operator new): Use __builtin_new for g++.
9446 * pic/object.c (graphic_object::~graphic_object): Don't use
9449 * pic/object.c (output::compute_scale): Initialize max_width and
9452 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
9454 * troff/input.c (write_request): Call fflush.
9456 * troff/node.h (class composite_node): Move declaration to node.c
9457 * troff/input.c (charinfo_to_node): Rename to ...
9458 (charinfo_to_node_list): Return node list rather than composite
9460 * troff/node.c (make_composite_node): New function.
9461 (make_node, add_char): Call make_composite_node instead of
9463 (class composite_node): Add a tfont * member. Delete font_size
9465 (composite_node::composite_node, composite_node::copy,
9466 composite_node::size): Corresponding changes.
9467 (composite_node::tprint): Provide constant spacing, emboldening
9468 and track kerning as specified in tfont.
9469 (composite_node::width): Change width calculation accordingly.
9470 * troff/env.h (environment::composite): New member.
9471 (environment::is_composite, environment::set_composite): New
9473 * troff/env.c (environment::environment): Initialize composite.
9474 * troff/input.c (charinfo_to_node): Call
9475 environment::set_composite.
9476 * troff/node.c (make_composite_node, make_glyph_node): Use the
9477 plain version of the tfont if the environment is composite.
9479 * troff/node.c (font_info::get_space_width): Additional argument
9480 giving space_size. Handle constant space correctly. Scale by
9481 space_size unless constant spaced.
9482 (env_sentence_space_width): New function.
9483 * troff/node.h: Declare it.
9484 * troff/env.h (environment::get_space_size,
9485 environment::get_sentence_space_size,
9486 environment::get_narrow_space_width,
9487 environment::get_half_narrow_space_width): Make inline.
9488 (environment::get_space_width): Make inline. Just call
9490 * troff/env.c: Delete definitions for funtions made inline.
9491 (environment::space_newline, environment::space): Use
9492 env_sentence_space_width(). Don't scale by space_size.
9493 * troff/node.h: Move declarations of env*space_width() functions
9496 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
9498 * macros/tmac.s (PS): Don't try to set negative indent.
9500 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
9502 * pic/pic.y: Fix min function.
9504 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
9506 * man/mdate.sh: Clear LANGUAGE.
9508 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
9510 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
9511 * pic/lex.c: New COMMAND keyword.
9512 * pic/pic.y (print_args, print_arg): New rules.
9513 (placeless_element): Use print_args for PRINT.
9514 New COMMAND element.
9516 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
9518 * troff/input.c (terminal): Handle missing argument correctly.
9520 * pic/pic.y (text_expr): New rule.
9522 * pic/pic.y: Implement := operator.
9524 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
9526 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
9529 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
9531 * ps/devps/dingbatsrmap: Include this in the distribution.
9533 * macros/tmac.doc: Replace with new version from 2nd Networking
9534 Release. Fix loading of doc-* files.
9535 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
9536 * macros/tmac.doc.old: New file. Apply fixes that had been
9537 applied to old tmac.doc.
9538 * macros/tmac.andoc: Check that we're running under groff.
9539 * macros/Makefile: Rework.
9541 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
9543 * tbl/table.h (format_type):
9544 * refer/token.h (token_type): If NESTED_TYPES is defined, use
9545 typedef to make these types visible at file scope.
9546 * Makefile: Add NESTED_TYPES configuration option.
9548 * troff/div.c (mark): At the top level use the value of
9549 nl_reg_contents rather than the current vertical position.
9551 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
9553 * tty/tty.c: Implement \D for horizontal or vertical lines.
9554 (tty_printer::set_char): Use vec_used+2 as serial number.
9555 Don't allow size of vector to exceed USHRT_MAX-2.
9556 Split off part into...
9557 (tty_printer::add_char): New function.
9558 (tty_printer::draw): New function.
9559 (compare_glyph): Handle equal serial numbers.
9560 (tty_printer::end_page): Handle overstruck characters from \D.
9561 (main, usage): Implement -d option.
9563 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
9565 * tbl/main.c (process_format):
9566 * eqn/text.c (split_text):
9567 * troff/input.c (token::next): Use inner block for declarations
9568 with initializers in switch statement.
9570 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
9572 * pic/common.c (common_output::dash_line): Cope with zero-length
9575 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
9577 * Version 1.04 released.
9579 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
9581 * macros/tmac.an (TH): Define a macro an-init to define variables
9582 based on command line arguments.
9583 (an-header): Call it.
9585 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
9587 * Makefile (install.mm): Rename to install.dwbmm.
9589 * Makefile: Integrate mm.
9590 * mm: New directory.
9592 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
9594 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
9597 * pic/troff.c (troff_output::simple_spline,
9598 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
9599 shadowing parameter.
9601 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
9603 * lib/ptable.h: Add explicit casts when converting from unsigned
9606 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
9607 * dvi/devdvi/Makefile: Install SA, SB.
9609 * refer/indxbib.c: Add declaration of mktemp.
9611 * refer/lookbib.c: Add declaration of isatty.
9613 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
9615 * pic/lex.c (interpolate_macro_with_args): While collecting
9616 arguments, keep track of whether we're in a string.
9618 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
9620 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
9621 down with \v, so as to avoid problems with top of page trap
9622 setting no space mode.
9624 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
9626 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
9628 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
9630 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
9631 Improve error message.
9633 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
9635 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
9638 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
9640 * groff.c (possible_command::execp): Always use _exit() after a
9643 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
9644 NO_SYS_WAIT_H configuration options.
9645 * groff.c: Use these options. Use POSIX-style macros to extract
9646 fields from the status returned by wait().
9648 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
9650 * tbl/table.c (table::compute_separation_factor): Allow the
9651 separation factor to drop to 0.
9653 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
9655 * refer/search.c: Include <errno.h>.
9657 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
9659 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
9661 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
9664 * pic/lex.c (input_stack::bol): Move definition out of class body.
9666 * pic/main.c: On MSDOS munge argv[0].
9668 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
9670 * lib/ptable.c (hash_string): Use unsigned long rather than
9672 (next_ptable_size): Use unsigned rather than int. Give an error
9673 message if we've hit the largest table size.
9674 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
9677 * pic/object.h (object_spec): Make flags unsigned long. Declare
9678 flags as const unisgned long rather than as enums.
9680 * pic/output.c: Deleted.
9682 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
9684 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
9685 Add additional argument.
9686 (line_entry::note_double_vrule_on_{left,right}): Set value of
9687 douvle_vrule_on_{right,left} flag according to argument.
9688 (simple_line_entry::simple_print,
9689 simple_line_entry::double_line_print): If adjacent to double vrule
9690 on a corner extend rather than shorten the rule by half the double
9693 * troff/number.c (parse_term): In checking for overflow, handle the
9694 case where the current horizontal position is negative.
9696 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
9698 * pic/object.c (draw_arrow): Check for object having zero length.
9700 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
9702 * eqn/main.c (do_file): Split off inline equation handling into...
9703 (inline_equation): New function. Search for starting delimiter
9705 (delim_search): New function. Don't recognize a delimiter that
9706 occurs in the name of an escape sequence, number register, string
9709 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
9711 * eqn/delim.c (delim_box::compute_metrics): Don't call
9712 define_extensible_string if left is 0.
9713 (delim_box::output): Don't print the left delimiter if left is 0.
9714 (delim_box::debug_print): Check for left == 0 before calling printf.
9716 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
9718 * troff/Makefile (majorminor.c): Include only digits in
9721 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
9723 * refer/dirnamemax.c: new file.
9724 * refer/genlimits.c: Deleted.
9725 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
9726 Don't check path length.
9727 * refer/Makefile: Add dir_name_max.o; delete genlimits.
9728 * Makefile: Add PATHCONF_MISSING option.
9730 * refer/indxbib.c (get_cwd): New function.
9731 (main): Use get_cwd().
9732 * lib/getcwd.c: New file.
9733 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
9735 * lib/Makefile: Compile getcwd.o.
9737 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
9740 * refer/indxbib.c (main): Check success of mktemp.
9742 * lib/tmpfile.c: New file.
9743 * lib/Makefile: Add tmpfile.c.
9744 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
9745 * ps/ps.h: Delete declaration of mktemp().
9746 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
9747 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
9748 * driver/driver.h: No need now to include errno.h.
9750 * everywhere: Set errno to 0 before calling fopen().
9752 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
9753 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
9754 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
9756 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
9758 * troff/env.h (translate_space_to_dummy): Declare it.
9759 * troff/env.c (environment::space_newline, environment::space):
9760 If translate_space_to_dummy is set then make the width of spaces 0.
9761 * troff/input.c (translate): If the second character of a
9762 translation is a space, translate to unbreakable space. If the
9763 first character is a space, set or clear translate_space_to_dummy
9764 according to whether the second character is \&. Weird!
9766 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
9768 * groff.c (run_commands): Don't use non-zero exit code because a
9769 command gets SIGPIPE.
9771 * groff.c, groff.sh: Use -mXps with -TXps.
9773 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
9774 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
9775 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
9776 (ps_printer::special): New specials invis and endinvis.
9777 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
9778 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
9779 (ps_printer::end_page): Check that invis_count == 0.
9780 (ps_printer::invis_count): New member.
9781 (ps_printer::ps_printer): Initialize invis_count to 0.
9783 * troff/env.c (environment::hyphenate_line): Hyphenation
9784 indicator at beginning of word inhibits splitting after -, \(em
9787 * pic/pic.y (element): Allow another element to follow } without
9788 any intervening separator.
9790 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
9792 * pic/lex.c (get_delimited): Allow tabs before delimiter.
9794 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
9796 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
9797 declaration of wait() in header files.
9798 * Makefile: Get rid of -DHAVE_UNION_WAIT.
9800 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
9802 * lib/lib.h: Declare return type of strerror as char *.
9804 * man/Makefile: Add g flag to sed substitutions.
9805 * Makefile (shgroff, bindist): Likewise.
9807 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
9809 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
9810 * ps/devps/prologue (PBEGIN): Define showpage after pushing
9813 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
9815 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
9818 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
9820 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
9823 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
9825 * troff/input.c (define_number_reg): If currently undefined,
9826 don't define it if the argument is an invalid expression.
9828 * Makefile: Ignore return value of `if' commands without `else'
9831 * Makefile: Split up CPPDEFINES into a series of separate
9832 configuration options.
9834 * troff/input.c (init_registers): Use time_t instead of long
9835 unless LONG_FOR_TIME_T is defined. Use returned result rather
9836 than passing pointer.
9837 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
9839 * lib/Makefile (fontpath.h): Use gendef.
9841 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
9843 * troff/input.c (input_iterator::shift): Delete argument name.
9844 * troff/node.c (suppress_output_file::really_begin_page,
9845 suppress_output_file::really_transparent_char, node::ascii_print,
9846 node::tprint): Delete names of unused arguments.
9848 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
9850 * refer/label.y (string): Pass $4 to command_error.
9852 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
9854 * Version 1.03 released.
9856 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
9858 * Makefile: Pass definition of SHELL in SUBFLAGS.
9861 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
9862 ps/Makefile: Use gendef to construct header files that are
9863 constructed from the Makefile.
9865 * macros/Makefile: make all should build stripped version of tmac.e.
9867 * refer/Makefile (clean): Remove y.output.
9869 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
9871 * ps/pfbtops.c (main): Add -v option which prints out a version
9873 * ps/Makefile (pfbtops): Link with libgroff.a.
9875 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
9877 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
9878 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
9880 * refer/lkbib.c (main): Always terminate reference with blank
9882 * refer/lookbib.c (main): Likewise.
9884 * refer/linear.c (file_buffer::load): Check that the file is not a
9887 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
9888 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
9889 Delete second inclusion of <sys/param.h>.
9891 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
9893 * troff/token.h (token::special): Deleted.
9895 * tbl/main.c (process_format): Rework so that opt->tab_char is
9896 recognized only when appropriate.
9898 * ps/Makefile (clean): Remove pfbtops.
9900 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
9902 * lib/font.c (text_file::next): Don't return if we have got a
9905 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
9907 * refer/refer.c (store_reference): Get hash code from old_table[i]
9908 when rehashing the table.
9910 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
9912 * eqn/box.c (box::top_level): Save size and prev size using \R and
9913 restore it afterwards. Set the size to the size at the beginning
9915 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
9916 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
9918 * refer/Makefile (limits.h): Use ./genlimits.
9920 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
9922 * refer/index.c: Delete declarations of stat() and fstat().
9924 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
9926 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
9928 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
9930 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
9932 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
9934 * troff/input.c (token::get_char): Handle \e.
9936 * refer/linear.c: Delete declarations of fstat() and stat().
9938 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
9940 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
9941 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
9943 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
9945 * troff/input.c (do_define_macro): Improve error handling for end
9946 of file while defining macro.
9948 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
9950 * eqn/box.h: Fix declaration of set_gsize.
9951 * eqn/box.c (set_gsize): Make argument const char *.
9952 (gsize): Declare as char *.
9953 * eqn/main.c (main): Don't convert gsize to int.
9954 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
9956 * Version 1.02 released.
9958 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
9960 * macros/tmac.andoc: New file.
9961 * macros/Makefile: Install tmac.andoc.
9963 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
9964 operator new and delete on OP_DELETE_BROKEN not being defined.
9965 * Makefile: Mention OP_DELETE_BROKEN.
9967 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
9969 * Makefile (bindist): Pass SUBFLAGS.
9971 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
9973 * Makefile, groff.c: Pass definitions to groff.c via device.h.
9975 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
9978 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
9980 * ps/ps.h, ps/psrm.c: Make comment_table and
9981 header_comment_table local to resource_manager::process_file.
9983 * groff.sh: With -TXps pass -printCommand option to gxditview.
9985 * groff.c (possible_command::print): Implement using
9986 append_arg_to_string.
9988 * xditview: Merge in new implementation with own ChangeLog.
9990 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
9992 * groff.c (main): Implement PRINT_OPTION.
9993 (append_arg_to_string): New command.
9994 (device_table): Set PRINT_OPTION flag for Xps.
9996 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
9998 * troff/groff.h: Rename to troff.h.
10000 * pic/lex.c (lookup_keyword, docmp): New functions.
10001 (get_token): Use new lookup_keyword.
10002 Don't include key.h.
10003 * pic/key.[ch], pic/pic.gperf: Deleted.
10004 * pic/Makefile: Remove gperf stuff.
10006 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
10008 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
10010 * troff/Makefile, troff/node.c: Move definition of
10011 STORE_WIDTH into node.c.
10013 * etc/grog.pl, etc/grog.sh: Support -mdoc.
10015 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
10017 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
10018 dvi/devdvi/texb.map: Add lq and rq.
10019 dvi/devdvi: Regenerate fonts.
10020 * ps/devps/textmap: Add lq and rq.
10021 * ps/devps: Regenerate fonts.
10022 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
10023 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
10025 * pic/object.c (position_rectangle): When checking radius
10026 cope with possiblity that width or height is negative.
10027 (box_object::box_object): Have separate xrad and yrad with
10028 signs matching signs of dim components.
10029 (box_object::{north,south}_{east,west}): Use xrad and yrad.
10030 (box_object::print): With rounded boxes use absolute values
10031 for dim and rad arguments.
10033 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
10036 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
10038 * various files: Add explicit destructors to keep Saber CC +d
10041 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
10043 * eqn/box.c (box::top_level): Restore fonts correctly after
10044 font changes in line containing inline equation. Also
10045 restore previous font as well as current font.
10046 * eqn/pbox.h: Define necessary string and register names.
10048 * troff/input.c (token::next): Case 'R' calls do_register.
10049 (do_register): New function.
10051 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
10053 * groff.c, groff.sh: Support Xps device. Allow each device
10054 to have a pseudo_name and a real_name.
10056 * groff.c (run_commands): Don't print `Broken pipe' messages.
10058 * ps/pfbtops.c: New file.
10059 * ps/Makefile: Add pfbtops.
10061 * troff/number.c (parse_term): Improved error message.
10063 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
10065 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
10067 * Makefile: Integrate refer.
10068 * refer: New directory.
10069 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
10070 man/lkbib.man: New files.
10071 * man/Makefile: Support refer man pages.
10073 * lib/lib.h: Declare is_prime.
10074 * lib/prime.c: New file.
10076 * troff/input.c (macro_source): New function.
10077 (init_input_requests): Bind "mso" to macro_source.
10079 * troff/env.c (environment::possibly_break_line): Maintain
10080 pointer to pointer to node to be split in ndp so as to avoid
10081 using address of freed node.
10083 * troff/env.c (environment::hyphenate_line): Maintain pointer to
10084 pointer to first node to be hyphenated in startp so as to
10085 avoid using address of freed node.
10087 * troff/env.c (class trie, class hyphen_trie): Make the
10088 elements of the trie be of type char not unsigned char.
10089 Declare arguments to be const char* instead of unsigned char *.
10091 * troff/env.c (hyphenate): Initialize hbuf[0].
10093 * troff/input.c (set_string): Declare p to be char * and cast
10094 *p to unsigned char when necessary.
10096 * troff/input.c (do_define_macro): Declare s to be const
10097 char*. Cast element to unisgned char when necessary, Declare
10098 d to be an int. Handle EOF better.
10100 * troff/Makefile, troff/input.c: Different scheme for passing
10101 definitions of MACROPATH, HYPHENFILE and DEVICE.
10103 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
10105 * tty/devascii/R.proto: Delete entry for em.
10106 * tty/devlatin1/R.proto: Likewise.
10108 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
10110 * troff/input.c (translate): Stop when we get a space. Treat eof
10113 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
10115 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
10117 * tbl/main.c (process_format): A font name following a `f'
10118 modifier that starts with a digit can be only one character long.
10119 Also deal with EOF on the second character of the font name.
10121 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
10123 * troff/input.c (token::next): Turn \~ into an
10124 unbreakable_space_node.
10125 * troff/node.c (unbreakable_space_node): New class.
10126 * troff/node.h: Declare it.
10128 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
10130 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
10131 it's >= 0, before outputting it as a single byte.
10133 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
10135 * lib/font.c: Make font_char_metric::code an int.
10136 (font::get_code): Change return type to int.
10137 (font::load): Allow code to be arbitrary integer.
10138 * lib/font.h (font::get_code): Change return type to int.
10139 (font::number_to_index): Change argument type to int.
10140 * troff/input.c (token::next): In case 'N', allow any value.
10141 Store value in token::val.
10142 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
10143 (token::get_char, token::add_to_node_list, token::process): Get
10145 (charinfo::set_number): Change argument to int.
10146 (charinfo::get_number): Require that NUMBERED flag be set.
10147 (get_charinfo_by_number): Store numbered characters not between 0
10148 and 255 in a dictionary.
10149 * troff/charinfo.h (get_charinfo_by_number): Change argument type
10151 (charinfo::number): Change type to int.
10152 (charinfo::set_number): Change type of set_number to int.
10153 * troff/node.c (troff_output_file::put_char_width,
10154 troff_output_file::put_char): Test whether character is numbered
10155 using charinfo::numbered().
10156 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
10158 * lib/nametoindex.c: New implementation to cope with arbitrary
10161 * troff/input.c (token::operator==): Test val for
10162 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
10165 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
10166 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
10168 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
10170 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
10173 * all Makefiles: rm targets of cp and >.
10175 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
10178 * eqn/lex.c (def_table): Add dollar.
10180 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
10182 * troff/input.c (do_width): Push back newline before closing delim
10185 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
10187 * groff.c (possible_command::prepend_arg): New function.
10188 (main): Prepend device -m option.
10189 * groff.sh: Put device -m options before command-line options.
10191 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
10193 * macros/tmac.an (IP): Quote argument to TP.
10195 * ps/ps.c (main): New option -b, which sets...
10196 (broken_flags): New variable.
10197 (ps_printer::~ps_printer): Incorporate the setup section in the
10198 prolog if (broken_flags & NO_SETUP_SECTION).
10199 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
10200 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
10201 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
10202 ps_printer::print_needed_font_comment,
10203 ps_printer::print_supplied_font_comment,
10204 ps_printer::print_include_font_comments,
10205 ps_printer::lookup_doc_font, ps_printer::download_fonts,
10206 ps_printer::read_download_file, read_document_fonts, add_font,
10207 skip_line, parse_fonts_arg, document_font::document_font,
10208 document_font::~document_font, document_font::download,
10209 ps_output::include_file): Deleted.
10210 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
10211 rather than %!PS-Adobe-2.0. Make calls to
10212 resource_manager::need_font for each font that we used. Replace
10213 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
10214 print_supplied_font_comment, print_needed_font_comment by call to
10215 resource_manager::print_header_comments. Output %%Orientation
10216 comment. Output %%Requirements: numcopies comment if ncopies > 1.
10217 Don't output the prolog directly. Instead call
10218 resource_manager::output_prolog. Only define #copies when ncopies
10219 > 1. Delete calls to print_include_font_comments and
10220 download_fonts. Add call to resource_manager::document_setup.
10221 (ps_printer::do_file): Call resource_manager::import_file instead
10222 of including it ourselves.
10223 (ps_printer::do_import): Likewise. Also don't call
10224 merge_import_fonts. Push userdict on the dictionary stack before
10225 and pop it afterwards.
10226 Move declaration of ps_output into ps.h.
10227 * ps/psrm.c: New file implementing resource_manager class.
10228 * ps/ps.h: New file declaring ps_output and resource_manager
10230 * ps/devps/zapfdr.ps:
10231 * ps/devps/symbolsl.ps:
10232 * ps/devps/prologue: Use 3.0 conventions.
10233 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
10234 Add default definition of BROKEN_SPOOLER_FLAGS.
10235 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
10236 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
10238 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
10240 * etc/grog.pl: New file.
10241 * Makefile (GROG): New variable.
10242 Add GROG to SUBFLAGS.
10243 * etc/Makefile (GROG): New variable.
10244 (install.nobin): Install $(GROG) rather than grog.sh.
10246 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
10248 * eqn/special.c (special_box::compute_metrics): Make the input and
10249 output strings the same. Get the new height and depth from the
10250 predefined height and depth registers. Also make subscript kern
10251 and skew available.
10252 (special_box::compute_subscript_kern, special_box::compute_skew):
10255 * eqn/box.c (pointer_box::compute_skew,
10256 simple_box::compute_metrics, box::top_level)
10257 * eqn/text.c (prime_box::compute_metrics,
10258 prime_box::comput_subscript_kern)
10259 * eqn/limit.c (limit_box::compute_metrics):
10260 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
10261 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
10262 negative numbers in `nr' requests with a leading 0.
10264 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
10266 * eqn/special.c: New file.
10267 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
10268 Add new rule for simple.
10269 * eqn/lex.c (token_table): Add SPECIAL.
10270 * eqn/box.h: Declare make_special_box.
10271 * eqn/Makefile: Add special.[co].
10273 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
10275 * ps/devps/prologue: Possibly set packing to true while defining.
10276 Create grops dictionary here. Initialize local variables before
10277 defining procedures.
10278 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
10279 the dictionary stack. Set strokeadjust and overprint to false if
10280 the relevant operators are defined.
10281 (PEND): New procedure.
10282 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
10283 prologue. Do everything else in the setup section.
10284 (ps_printer::do_import): Just call PBEGIN and PEND around the
10285 picture. Also push userdict before, and pop it afterwards.
10287 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
10289 * troff/node.c (bracket_node::tprint): Brackets were being printed
10292 * macros/tmac.an (SH, SS): Set fill mode.
10294 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
10296 * troff/div.c (top_level_diversion::begin_page): Set
10297 high_water_mark to 0.
10299 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
10301 * man/mdate.sh: New file.
10302 * man/mdate.c: Deleted.
10303 * man/Makefile: Use mdate.sh instead of mdate.
10306 * eqn/lex.c (do_gsize): Supply missing argument to error message.
10308 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
10310 * man/mdate.c: New file.
10311 * man/*.man: Replace modification date by @MDATE@.
10312 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
10313 (mdate): New target.
10315 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
10316 Remove illegal input characters.
10318 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
10320 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
10322 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
10324 * troff/div.c (begin_page): Change behaviour when
10325 !first_page_begun and !break_flag.
10327 * troff/input.c (do_name_test): Return 0 if argument is empty.
10329 * troff/input.c (read_long_escape_name): Require closing ] to be
10330 at same input level as opening [.
10332 * troff/input.c (read_increment_and_escape_name): New function.
10333 (get_copy, process_input_stack): Use this for \n.
10335 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
10337 * troff/div.c (top_level_diversion::begin_page): Ignore the
10338 current value of page_number if !first_page_begun.
10340 * groff.c (main): Fix declaration of buf.
10342 * troff/input.c (do_name_test): New function.
10343 (token::next): Implement \A.
10344 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
10345 (token::description, token::add_to_node_list, token::process):
10346 Handle TOKEN_ESCAPE.
10347 * troff/token.h: New token TOKEN_ESCAPE.
10349 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
10351 * pic/main.c (do_picture): Allow space before and after filename
10352 following `<'. Check that the filename is not empty.
10354 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
10356 * Version 1.01 released.
10358 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
10360 * dvi/tmac.dvi: ftr HR to H.
10362 * macros/tmac.e: Round up computation of $r.
10364 * xditview/tmac.X: Don't give up completely in compatibility mode.
10365 Use \n(.s instead of \n[.s].
10367 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
10368 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
10369 Add u to factors inside \s[...]. Rename frac to dvi-frac.
10370 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
10371 short names in the char definitions.
10373 * ps/tmac.ps: Don't give up completely in compatibility mode.
10374 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
10375 quote in front of \n(.s. Add u to factors inside \s[...].
10377 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
10379 * tty/tmac.tty: Call the nroff request.
10381 * macros/tmac.e ((x, )x): Better definitions that work properly
10383 (@0, @1): Helper macros for (x.
10385 * macros/tmac.e ($s, hl): Use \l rather than \D.
10387 * tty/tmac.tty: Make it work better in compatibility mode.
10388 (pchar): Rename to tty-char.
10390 * macros/tmac.e (@E): New macro.
10391 (r, i, b, rb, bi): Use @E.
10393 * macros/tmac.e (@F): Don't use (;...) syntax.
10395 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
10396 it was modified for groff.
10398 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
10400 * macros/tmac.e (<., .>): Removed.
10401 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
10403 * macros/tmac.e: Remove check that groff is being used.
10405 * macros/tmac.e (@C): Change families only if using groff; turn
10406 compatibility mode off while changing familes. Save compatibility
10407 mode before changing families and restore it afterwards.
10409 * macros/tmac.e (@h): Remove test for offset + line length.
10411 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
10412 (lo, th, ac): Define to call @S instead of using als.
10414 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
10415 the ratio of the vertical spacing to the point size in units
10416 expressed as a percentage. Use these instead of $10r and $10R,
10417 Delete $10r and $10R.
10419 * lib/font.c (font::load): In default computation of space_width,
10420 divide by sizescale. Use scale_round.
10422 * macros/tmac.an (TP): Don't call `nf'.
10423 (an-do-tag): Don't call `fi'.
10425 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
10427 * troff/input.c (process_input_stack): Handle the case where
10428 spaces at the beginning of an input line are followed by a
10431 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
10433 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
10434 * groff.sh: Use pic -x with the dvi device.
10436 * dvi/devdvi/FontMakefile (H): Don't use -s.
10438 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
10439 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
10440 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
10443 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
10445 * ps/psfig.diff: New file.
10446 * ps/tmac.psfig: New file.
10448 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
10450 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
10451 (]-): Don't call ref*do-tl.
10453 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
10455 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
10456 (fn@do-FS): Rename to fn*do-FS.
10458 * troff/input.c (transparent_translate): New function.
10459 (process_input_stack): Apply transparent_translate before calling
10460 diversion::transparent_output(unsigned char).
10462 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
10464 * troff/input.c (do_define_macro): Define the macro before calling
10467 * xditview/Makefile: Add DEVICES variable. Change install target
10470 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
10472 * groff.c (run_commands): Handle the possibility that there are
10473 child processes other than those forked by us.
10475 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
10477 * lib/string.c (string::append): New function.
10478 * lib/stringclass.h: Declare it.
10480 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
10482 * eqn/main.c (main): New option -N which sets
10483 no_newline_in_delim_flag.
10484 (do_file): If no_newline_in_delim_flag is set don't allow newlines
10486 * groff.c (main): Pass -N on to eqn.
10487 (help, synopsis): Mention -N.
10488 * groff.sh: Implement -N.
10490 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
10492 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
10493 (]-): Call ref*do-tl if ref*need-tl is non-zero.
10494 (XP): Allow as initializer.
10496 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
10498 * troff/env.c (environment::wrap_up_field): If field_spaces are
10499 non-zero and we have a current_tab, subtract padding from
10500 tab_distance. If this makes tab_distance <= 0, use the next tab
10501 stop instead. If there isn't any next tab or it's a left tab,
10502 wrap up the current tab.
10503 (environment::start_field): Initialize tab_precedes_field.
10504 (environment::wrap_up_tab): If there's a current field, update
10505 pre_field_width, field_distance and tab_precedes_field.
10506 * troff/env.h (environment::tab_precedes_field): New member.
10508 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
10510 * ps/ps.c (ps_printer::do_file): New function.
10511 (ps_printer::special): Bind to `file' special.
10512 (ps_printer::do_exec): Set ndefined_styles to 0.
10514 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
10516 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
10517 Avoid stripping first character from the start of unrecognized
10518 escapes. Use lex_error instead of error to report errors.
10519 * eqn/lex.c (get_token): Rework handling of escapes.
10520 (lex_error): Move declaration into...
10523 * xditview/xditview.c (main): Make -page option work.
10525 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
10527 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
10529 * macros/tmac.s (B2): Correct size of box.
10531 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
10533 * macros/tmac.s (B2): Postpone drawing the box until in the
10534 top-level diversion.
10536 * tty/tmac.tty: Add font translations for C, CR, CW.
10538 * groff.c (synopsis, help): Document -i.
10539 * groff.sh: Implement -i.
10541 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
10542 Simplify the construction of SN.
10544 * troff/number.c (parse_term): Give `|' a higher precedence.
10545 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
10548 * macros/tmac.s (B2): Use par@finish instead of par@reset.
10550 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
10552 * lib/string.c (string::move): New function.
10553 * lib/stringclass.h: Declare it.
10555 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
10557 * troff/env.c (distribute_space): Add optional argument
10559 (environment::wrap_up_field): Call distribute_space with
10560 `force_forward' argument of 1.
10562 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
10564 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
10565 Inline it. Move reallocation into...
10566 (string::grow1): New function.
10567 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
10568 dependencies to include library header files.
10569 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
10571 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
10573 * macros/tmac.s (@NH): Use the same number registers than -ms does
10574 for the heading level counters. Use the same string that -ms does
10575 for the number for this heading.
10577 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
10579 * lib/new.c (operator new): Cast result of malloc to char *.
10581 * troff/input.c (spring_trap, lookup_request): Add assert that nm
10584 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
10586 * groff.c (main): Support -i.
10588 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
10590 * pic/pic.h: Include <osfcn.h>.
10592 * ps/ps.c: Add declaration of mktemp.
10594 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
10595 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
10596 argument as union wait *.
10597 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
10598 argument to union wait *.
10600 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
10602 * tty/tmac.tty: Add definition of \(co.
10604 * pic/object.c (make_arc): Only increase radius when radius
10605 strictly less than d.
10606 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
10609 * troff/env.c (environment::environment(symbol),
10610 environment::environment(const environment *)): Initialize
10613 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
10615 * tbl/main.c (main): Add exit(0).
10617 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
10619 * pic/main.c (main):
10620 * eqn/main.c (main):
10621 * tbl/main.c (main):
10622 * etc/soelim.c (main):
10623 * driver/printer.c (printer::~printer):
10624 * troff/node.c (real_output_file::~real_output_file,
10625 real_output_file::flush): Check for errors on stdout.
10627 * most files: Add 1991 to copyright notice.
10629 * macros/tmac.s: Don't test \n(.x and \n(.y.
10631 * troff/input.c (token::next): Rename `escape_char' label to
10632 `handle_escape_char' and `normal_char' label to
10633 `handle_normal_char'.
10635 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
10637 * groff.c (main, synopsis, help): Support -a option.
10638 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
10639 to trflags while parsing options.
10641 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
10643 * troff/number.c (parse_term): With `m', `M' and `n' scale
10644 indicators, convert scale factor to hunits before scaling.
10646 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
10648 * lib/font.c (scale_round): Better test for overflow when n is
10651 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
10653 * tbl/main.c (process_format): Add second argument of type
10654 options*. Change callers. Allow opt->tab_char as well as '\t'
10655 between format items.
10657 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
10659 * macros/tmac.an (PD): With no arguments, make sure register PD is
10661 (TH): Call PD with no argument, instead of setting register PD
10664 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
10666 * Version 1.00 released.
10668 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
10670 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
10672 * dvi/devdvi/DESC: Mount CW instead of CR.
10674 * dvi/tmac.dvi: Add definition of \(tm.
10676 * dvi/devdvi/texsy.map: Add lh, and rh.
10677 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
10678 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
10680 * dvi/devdvi/FontMakefile: Generate H from cmss10.
10681 * dvi/devdvi/Makefile: Install H.
10682 * dvi/devdvi/H: New file.
10684 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
10686 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
10689 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
10691 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
10693 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
10695 * macros/tmac.s (@EN): Handle the case where the equation is empty
10696 but the label is not.
10698 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
10700 * troff/groff.h: New warning category WARN_SPACE.
10701 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
10702 WARN_SPACE to warning_table.
10703 (interpolate_macro): Give a warning of type WARN_SPACE if the name
10704 is longer than two characters and is not defined, but the first
10705 two characters do make a defined name.
10707 * PROBLEMS: New file.
10709 * CHANGES: New file.
10710 * README-0.6, README-1.00: Deleted.
10712 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
10713 * xditview/devX75/Makefile: Make devX75-12.
10714 * xditview/devX100/Makefile: Make devX100-12.
10716 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
10717 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
10719 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
10721 * README-0.7: Rename to README-1.00.
10723 * macros/tmac.pic: New file.
10724 * macros/Makefile (install.nobin): Install tmac.pic.
10726 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
10728 * troff/env.c (hyphen_word): Correct the test for whether the
10729 token is a hyphen. Reset npos to 0.
10731 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
10733 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
10735 * macros/tmac.s (ds*common-end): Call par*reset.
10737 (par@reset-indent): Deleted.
10739 * macros/tmac.s (@IP): Divert the label.
10741 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
10743 * xditview/draw.c (setGC): Use a line width of .1m rather than
10744 .04m by default; round rather than truncate value.
10746 * tbl/table.c (class empty_entry): New class.
10747 (empty_entry::empty_entry, empty_entry::line_type): New functions.
10748 (table::add_entry): Represent empty entries by objects of type
10750 (table_entry::line_type): Return -1.
10751 (table::determine_row_type): Ignore entries with line_type 0.
10752 Treat type -1 as non-lines.
10754 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
10756 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
10757 macros/tmac.s: Rename \(-d to \(Sd.
10759 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
10761 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
10762 * xditview/libXdvi/DviChar.c: Likewise.
10763 * dvi/devdvi/texsy.map: Add `<<', `>>'.
10765 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
10767 * troff/div.c (top_level_diversion::begin_page): Call
10768 init_output() if the_output is 0.
10770 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
10772 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
10774 (get_copy): Turn \E into ESCAPE_E.
10775 (token::process, asciify): Handle ESCAPE_E.
10777 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
10779 (DS): Implement `.DS R'.
10781 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
10783 * macros/tmac.s (FS): New macro.
10785 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
10787 * macros/tmac.s (cov*tl-init): Remove after first execution
10788 instead of aliasing to @nop. Call top of page macro explicitly
10789 instead of setting trap; call @init first. Set pg@top as top of
10791 (cov*auto-init): Deleted. Set cov*tl-init instead of
10792 cov*auto-init as top of page trap.
10793 (TL, LP): Do a break instead of calling cov*tl-init.
10794 (cov*print): With RP format but no TL, alias FS and FE to @FS and
10795 @FE; in this case also give a warning and always start another
10796 page. No need to set pg@top here.
10797 (cov*tl-init): Rename to cov*first-page-init.
10799 * macros/tmac.s (RP): Do `.pn 0'.
10800 (cov*tl-init): With RP format don't do `.pn 0'.
10802 * macros/tmac.s (pg@cs-top): Set no space mode.
10804 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
10805 (cov*ab-init): Alias TL, AU and AI to these.
10807 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
10809 * macros/tmac.s (@EQ): Move the space before the equation into @EN
10810 (@EN): Do nothing unless \n[dl] is > 0.
10812 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
10814 * pic/object.c (ellipse_object::radius): New function.
10816 * VERSION: Change version to 0.7.
10818 * tbl/table.c (block_entry::do_divert): Declare return type as
10820 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
10822 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
10824 * troff/column.c: New file.
10825 * troff/Makefile: Corresponding changes.
10827 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
10830 * troff/div.c (top_level_diversion::space): If the space causes
10831 the first-page transition and springs a trap, truncate the space
10834 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
10836 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
10839 * pic/troff.c (troff_output::line_thickness,
10840 troff_output::set_fill): Do a horizontal motion to compensate for
10841 the width of the \D escape sequence.
10843 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
10845 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
10848 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
10851 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
10852 Supply empty definition.
10853 (text_entry::simple_print, simple_text_entry::simple_print):
10854 Delete declarations.
10855 (table::add_entry): Represent empty entries by objects of type
10858 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
10860 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
10862 * tbl/table.c (left_text_entry::add_tab): New function.
10864 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
10865 initialize like LP.
10867 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
10869 * troff/env.c (environment::start_field): Give an error message if
10870 there is no next tab.
10872 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
10874 * troff/env.c (hyphenate): Skip initial elements with zero
10877 * macros/tmac.s (par@init): Keep VS in points rather than units.
10879 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
10881 * pic/main.c (main): Implement `-c' option.
10882 * pic/output.h: Declare make_tpic_output().
10883 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
10885 (tpic_output): New class.
10886 (tpic_output::tpic_output, tpic_output::set_pen_size,
10887 tpic_output::command, make_tpic_output): New functions.
10889 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
10891 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
10892 if they're not already defined.
10893 * tbl/table.c (init_output): Don't test \n(.g.
10895 * troff/input.c (do_if_request): Delete `g' condition. Recognize
10896 `d', `r' and `c' conditions even in compatibility mode.
10898 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
10900 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
10903 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
10905 * troff/env.h (environment::prev_line_interrupted): New member.
10906 (environment::get_prev_line_interrupted): New function.
10907 * troff/env.c (environment::newline): Set prev_line_interrupted.
10908 (environment::environment(const environment *),
10909 environment::environment(symbol)): Initialize
10910 prev_line_interrupted.
10911 * troff/input.c (process_input_stack): Don't give special
10912 treatment to space and newline at the beginning of the line if the
10913 previous line was interrupted.
10915 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
10917 * eqn/eqn.y: Disallow PRIME by itself.
10918 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
10920 (def_table): Remove definition of '. Define prime to be `.
10922 * eqn/eqn.y: Split off part of rule `script' into a new rule
10925 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
10927 * macros/tmac.s ({, }): New string aliases.
10929 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
10931 * README-0.7: New file.
10933 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
10935 * macros/tmac.s: New file.
10936 * man/groff_ms.man: New file.
10937 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
10938 * Makefile.bd: Similarily.
10939 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
10940 definition of TMAC_S.
10941 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
10942 * macros/TODO: New file.
10944 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
10946 * troff/env.c (right_justify): New function.
10947 (init_env_requests): Bind this to request "rj".
10948 (center_lines): Set right_justify_lines to 0. If we get a bad
10949 integer, center 1 line.
10950 (environment::environment(symbol), environment::environment(const
10951 environment *)): Initialize right_justify_lines.
10952 (environment::get_right_justify_lines): New function.
10953 (init_env_requests): Bind this to number_register ".rj".
10955 * troff/env.c (environment::choose_breakpoint): Implement
10956 hyphenation_margin and hyphenation_space.
10957 (environment::get_hyphenation_space,
10958 environment::get_hyphenation_margin): New functions.
10959 (init_env_requests): Bind these to .hys and .hym.
10960 (hyphenation_space_request, hyphenation_margin_request): New
10962 (init_env_requests): Bind these to hys and hym.
10963 (environment::environment(symbol), environment::environment(const
10964 environment *)): Initialize hyphenation_margin and
10966 * troff/env.h: Corresponding changes to class environment.
10968 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
10970 * troff/div.c (blank_line): Always do a break.
10972 * eqn/box.c (do_text): Turn off escapes while appending text to
10975 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
10977 * troff/input.c (while_break_request, while_continue_request): New
10979 (init_input_requests): Bind these to "break" and "continue".
10980 (while_depth, while_break_flag): New variables.
10981 (while_request): Update while_depth. Break out of loop if
10982 while_break_flag is set.
10984 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
10986 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
10989 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
10991 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
10993 * stringify: New file.
10994 * Makefile (groff.o): Use stringify.
10996 * xditview/tmac.X: Remove definition of \(rn.
10997 * xditview/libXdvi/DviChar.c: Remove radicalex from
11000 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
11002 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
11003 (alphabetic_block_entry::alphabetic_block_entry,
11004 alphabetic_block_entry::divert, alphabetic_block_entry::print):
11006 (block_entry::divert): Split off body into ...
11007 (block_entry::do_divert): If the block is alphabetic, subtract 2n
11008 from the line length; also update the span width to dl+2n, and the
11009 alphabetic span width to dl.
11011 * driver/input.c (do_file): While reading argument to D command,
11012 when expanding buffer, multiply szp by sizeof(int) rather than 2
11013 in the argument to memcpy.
11015 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
11016 width of alphabetic columns.
11018 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
11020 * troff/node.c (lookup_family): Supply second argument to lookup.
11022 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
11023 search, return immediately if v is 0.
11025 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
11026 (troff_output::start_picture): Set this reg.
11027 (troff_output::end_picture): Remove this reg
11028 * eqn/box.c (box::extra_space): Don't produce `\x's if
11029 EQN_NO_EXTRA_SPACE_REG is defined.
11031 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
11032 * eqn/text.c (split_text): Map ' to \(fm when it's the first
11035 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
11037 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
11040 * troff/div.c (top_level_diversion::top_level_diversion):
11041 Initialize page_number to 0.
11043 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
11045 * groff/troff (environment::environment(const environment *)):
11046 Initialize name to e->name, rather than "anonymous".
11048 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
11050 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
11051 requested_page. Split middle part into ...
11052 (FindPage): New function.
11053 (SetValues): If we don't yet know the last page, and the requested
11054 page is greater than the current page, call FindPage.
11055 Update the font_map_string before doing this.
11057 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
11058 Translate \(lh and \(rh into left and right double arrows.
11060 * troff/node.c (class hyphen_inhibitor_node): New class.
11061 (hyphen_inhibitor_node::hyphen_inhibitor_node,
11062 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
11063 hyphen_inhibitor_node::type,
11064 hyphen_inhibitor_node::get_hyphenation_type): New functions.
11065 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
11066 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
11069 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
11071 * troff/node.h (dummy_node::get_hyphenation_type,
11072 transparent_dummy_node::get_hyphenation_type): Declare them.
11073 * troff/node.c: (dummy_node::get_hyphenation_type,
11074 transparent_dummy_node::get_hyphenation_type): New functions.
11076 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
11078 * xditview/libXdvi/draw.c: If M_PI not defined after including
11079 math.h, then define it.
11081 * xditview/Makefile: Add definition of AR. Pass it to the submake
11083 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
11085 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
11087 * troff/dictionary.h (object_dictionary::alias): Declare return
11089 * troff/dictionary.c (object_dictionary::alias): Return non-zero
11090 if the old name was defined.
11091 * troff/input.c (alias_macro): Give a warning if the old name was
11093 * troff/reg.c (alias_reg): Likewise.
11095 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
11097 * troff/input.c (token::next): Delete implementation of \R.
11099 * macros/Makefile: Strip comments from tmac.e while installing it.
11101 * troff/input.c: New variable `nroff_mode'.
11102 (troff_request, nroff_request): New functions.
11103 (init_input_requests): Bind `troff' and `nroff' to troff_request
11105 (do_if_request): Compute results of t and n conditions from
11108 * text/text.c (split_text): Fix typo in >=.
11110 * eqn/lex.c: Add definition of `==' to def_table.
11112 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
11114 * pic/tex.c (tex_output::start_picture): Change the definitions of
11115 \graph and \graphtemp so that they work properly with Plain TeX.
11117 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
11118 argument to `ar' is not less than the first.
11120 * pic/pic.y: Allow a comma between elements of the variable list
11121 in the argument to `reset'.
11123 * pic/object.c (arc_object::arc_object): Fix computation of
11126 * eqn/main.c (main): Add exit(0).
11128 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
11130 * troff/div.c (begin_page): Test no_space_mode after doing the
11131 break, but still push the page ejector cookie before doing the
11132 break. Also set the next page number after doing the break.
11134 * xditview/xditview.c (NewFile): Don't set the title and icon name
11135 if this is the first file and its name is `-'.
11136 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
11137 the X75 and X100 devices.
11138 (main): If a device has the XT_OPTION flag set and there's exactly
11139 one file argument, pass the driver -xrm and -title options to set
11140 the icon name and window title to the name of the file.
11142 * troff/env.c (environment_switch): If there was an argument but
11143 it wasn't a valid number or name, then pop an environment but
11144 don't give an error message on underflow.
11146 * troff/number.c (start_number): Correct spelling in error message.
11148 * troff/input.c (token::delimiter): Don't print an error message
11151 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
11152 ParseDrawFunction if dw->display_enable is true.
11154 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
11156 * pic/pic.y: Parse text positioning like normal attributes, so as
11157 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
11158 positioning attribute.
11160 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
11162 * tbl/main.c (process_data): When in state START while reading a
11163 text block, don't change to state MIDDLE if c is a newline.
11165 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
11167 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
11168 so as to avoid shadowing parameter.
11170 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
11172 * tbl/table.c (trim_space): Deleted.
11173 (table::add_entry): Don't call trim_space.
11175 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
11177 * VERSION: Change version to 0.6.
11179 * troff/number.c (parse_expr): Make == work.
11181 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
11183 * man/grog.man: New file.
11184 * man/Makefile: Add grog.n to MAN1PAGES.
11185 * etc/grog.sh: New file.
11186 * etc/Makefile: Install grog.sh as grog.
11188 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
11190 * troff/input.c (token::next): Implement \E.
11192 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
11194 * xditview/tmac.X: Change font translations to match tmac.ps.
11196 * troff/input.c (non_empty_name_warning): Don't give a warning if
11197 `\{' terminates the name.
11199 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
11201 * ps/devps/symbol.diff: New file.
11202 * ps/devps/FontMakefile: Mention symbol.diff.
11204 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
11206 * troff/node.c (font_position): Use get_long_name to read the
11209 * troff/env.c (environment_switch): If we get a number that's < 0
11210 or >= NENVIRONMENTS, treat it like a name.
11211 Change NENVIRONMENTS to 10.
11213 * troff/groff.h: Remove definition of FONTS_MAX.
11214 * troff/node.h (class font_family): Make map a pointer instead of
11215 an array. Add a map_size member. Make it a class. Make nm const
11216 and public. Make invalidate_fontno a friend.
11217 * troff/node.c: Define font_table_size. Make font_info a pointer
11218 rather than an array.
11219 (class troff_output_file): Allocate font_position dynamically. Add
11220 nfont_positions member.
11221 (troff_output_file::set_font): Grow font_position if necessary.
11222 (troff_output_file::~troff_output_file): Delete font_position.
11223 (troff_output_file::troff_output_file): Allocate font_position.
11224 (grow_font_table): New function.
11225 (troff_output_file::really_begin_page,
11226 troff_output_file:really_copy_page): Use nfont_positions rather
11228 (mount_font_no_translate, mount_style): Call grow_font_table if
11230 (font_family::font_family): Allocate map.
11231 (font_family::make_definite): Grow map if necessary. Use
11232 font_table_size instead of FONTS_MAX.
11233 (font_family::~font_family): New function.
11234 (invalidate_fontno): Use font_family::map_size.
11235 (get_fontno, env_space_width, env_half_narrow_space_width,
11236 env_narrow_space_width, symbol_fotno, is_good_fontno,
11237 get_bold_fontno, make_glyph_node): Use font_table_size rather than
11239 (next_available_font_position): Never return 0.
11241 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
11243 * ps/tmac.ps: Add font translations for compatibility with dpost.
11245 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
11247 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
11248 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
11249 Move definitions baseline_sep, shift_down, column_sep,
11250 matrix_side_sep into...
11251 * eqn/box.c: Add them to param_table.
11252 * eqn/pbox.h: Add declarations to pbox.h.
11254 * troff/input.c (set_string): Cast value to unsigned char *.
11256 * troff/token.h (process_input_stack): Declare it static before
11257 declaring it a friend.
11259 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
11261 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
11263 * dvi/devdvi/EX: Regenerate.
11265 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
11268 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
11270 * eqn/lex.c: In defaults_table, make definition of `dot' call
11271 `dot_def'. Don't explicitly make it roman. Similarily for other
11274 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
11276 (for_input::get, for_input::peek): Use this.
11277 (do_for): Add by_is_multiplicative argument.
11278 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
11279 Change semantic value of optional_by to be a double plus a flag
11280 saying whethet the by clause is multiplicative.
11282 * eqn/lex.c (get_delimited_text): Remember location of start of
11283 definition. Improve error handling when EOF is encountered.
11285 * lib/font.h: Rename handle_x_command to
11286 handle_unknown_font_command.
11287 * lib/font.c (font::load): Call handle_unknown_font_command for
11288 any unknown command in the font description file. Don't call
11289 handle_x_command. Include the name of the command in the argv.
11290 Improve message for unknown command after kernpairs or charset
11292 * ps/ps.c (ps_font::handle_x_command): Rename to
11293 handle_unknown_font_command. Remove message about `x download'
11294 command. Give error message for wrong number of arguments.
11295 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
11296 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
11297 handle_unknown_font_command. Give an error message for wrong
11298 number of arguments. Rename design_size to designsize.
11299 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
11300 checksum', `designsize' instead of `design_size'.
11302 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
11304 * eqn/*.[chy]: Change underaccent to uaccent.
11306 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
11307 give it the same precedence as ACCENT.
11308 * eqn/other.c (make_underaccent_box): New function.
11309 * eqn/box.h: Declare it.
11310 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
11313 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
11315 * pic/pic.y (reset_all): New function. Called in rule for RESET.
11316 (parse_init): Call reset_all.
11317 (define_variable): When defining scale reset only those
11318 pre-defined variables that are scaled.
11319 (defaults_table): Add `scale' as non-scaled value.
11321 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
11322 together with the text; allow any number of positioning words;
11323 allow center as a positioning word.
11325 * pic/object.c (output::compute_scale): Get picture maximum height
11326 and width from variables called maxpswid and maxpsht.
11327 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
11329 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
11331 * pic/object.c (object_spec::make_text): Multiply textht by number
11334 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
11336 (do_sprintf): New function.
11337 (pic.gperf): Add sprintf token.
11338 (text, sprintf): New rules.
11340 * pic/pic.y: `rand()' with no arguments returns a random number
11341 in the range [0,1).
11343 * pic/pic.y: Allow a bare expression to be an attribute: change
11344 precedences to support this. Change optional_ordinal rule to
11345 optional_ordinal_last to avoid reduce/reduce conflict.
11346 * pic/object.c (object_spec::object_spec): Initialize direction.
11348 * pic/pic.y: Implement ^ operator meaning exponentiation.
11350 * troff/node.h: Add default argument to mount_font.
11351 * troff/node.c (font_position): Read an optional third argument
11352 giving the external_name.
11353 (mount_font): Add optional argument giving the external_name.
11354 (mount_font_not_translate): Have additional argument giving
11355 external name. Use this name to load the font. Pass both names
11356 to font_info::font_info.
11357 (font_info::font_info): Have additional argument giving
11359 (class tfont): New member external_name.
11360 (font_info::get_tfont): Use external name to construct tfont_spec.
11362 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
11364 * eqn/lex.c (init_table): Add argument giving device. Define
11365 name of device to be "1".
11366 (do_ifdef): Counts as true if the argument has been defined with
11368 * eqn/main.c (main): Call init_table with device argument. Make
11369 device local to main.
11370 * eqn/eqn.h: Change declaration of init_table. Remove declaration
11373 * pic/lex.c (get_delimited): Allow text to be delimited by
11374 matching {}s. Don't recognize ending delimiter within a string.
11376 * troff/input.c (get_delim_name): New function.
11377 (token::next): Implement \C.
11379 * lib/font.c (font::load): Grok ---. Add an alias for each
11380 character based on its code.
11381 (font::get_code_width): Deleted.
11382 * lib/font.h (class font): Declare font::number_to_index().
11383 Remove declaration of font::get_code_width.
11384 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
11385 to indices of named characters.
11386 (font::number_to_index): New function.
11387 * troff/input.c (font::number_to_index): New function.
11388 (get_charinfo_by_number, charinfo::get_number,
11389 charinfo::set_number): New functions.
11390 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
11391 (token::process, token::description, token::get_char,
11392 token::add_to_node_list, token::operator==): Handle
11393 TOKEN_NUMBERED_CHAR.
11394 * troff/charinfo.h: Declare get_charinfo_by_number,
11395 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
11397 (charinfo::numbered): New function.
11398 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
11399 * troff/env.h (class environment): Remove declaration of ...
11400 * troff/env.c (environment::make_numbered_char_node): Deleted.
11401 * troff/node.c (make_numbered_node): Deleted.
11402 (class numbered_glyph_node): Remove.
11403 (troff_output_file::put_char_width, troff_output_file::put_char):
11404 Handle numbered chars.
11405 (troff_output_file::numbered_char): Removed.
11406 (tfont::get_code_width): Removed.
11407 (make_glyph_node): Don't search special fonts for numbered
11409 * troff/node.h: Remove declaration of make_numbered_node.
11410 * driver/input.c (do_file): Handle N command.
11411 * driver/printer.h: Add declaration of ...
11412 * driver/printer.c (printer::set_numbered_char): New function.
11413 * dvi/tfmtodit.c (main): Generate unnamed entries.
11414 * ps/devps/afmtodit: Likewise.
11415 * xditview/xtotroff.c (MapFont): Likewise.
11416 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
11418 * tbl/main.c (process_format): If multiple widths are specified
11419 for a column but all the widths are the same, don't give an error
11422 * tbl/table.c (table::do_row): If the current row is all lines and
11423 the stuff doesn't contains a line, mark the top of the row after
11424 printing stuff before the row. If the current row is not all
11425 lines and the stuff doesn't contain a line, don't unnecessarily
11426 mark the top of the row before printing the stuff.
11428 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
11430 * troff/groff.h: Remove MAX_PATH.
11431 * troff/input.c (open_file): Dynamically allocate space for the
11433 (open_mac_file, process_macro_file): Corresponding changes.
11435 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
11437 * troff/node.h (class output_file): Make copy_file pure. Add
11438 vspace method ifdef COLUMN. Add is_printing method.
11439 * troff/node.c: Add class printing_reg. Add class
11440 real_output_file. Derive other output_file classes from
11441 real_output_file; in these classes rename begin_page to
11442 really_begin_page, print_line to really_print_line, copy_file to
11443 really_copy_file, transparent_char to really_transparent_char.
11444 Move output_file::flush to real_output_file. Add printing member
11445 to class output_file.
11446 * troff/div.h: Remove printing member from top_level_diversion.
11447 Add vspace member function to class diversion ifdef COLUMN. Add
11448 some declarations ifdef COLUMN.
11449 * troff/div.c (top_level_diversion::copy_file,
11450 top_level_diversion::transparent_output,
11451 top_level_diversion::output): Don't test printing member before
11453 * troff/input.c: Handle initial variable_space_request ifdef
11455 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
11456 but comment it out.
11458 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
11460 * troff/div.c (diversion::need): Make any space forced. If we
11461 sprung a trap, set truncated_space to minus the distance to the
11462 trap and set needed_space to the amount that was needed.
11463 (top_level_diversion::space): A forced space turns no_space_mode
11465 (class constant_vunits_reg): New class.
11466 (init_div_requests): Implement number registers .trunc and .ne
11467 using constant_vunits_reg.
11468 (class truncated_space_reg): Deleted.
11470 * troff/div.h: Don't have a no_space_mode member in diversion.
11471 Instead have it in top_level_diversion.
11472 * troff/div.c (diversion::diversion): Don't initialize
11474 (top_level_diversion::top_level_diversion): Initialize
11476 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
11477 (macro_diversion::output): Don't clear no_space_mode.
11479 * troff/input.c (diverted_space_node::reread): Don't call
11480 environment::do_break. In fill mode, act like a blank line.
11481 (diverted_copy_file_node::reread): Don't call
11482 environment::do_break.
11484 * troff/div.c (blank_line): New function.
11485 * troff/div.h: Declare it.
11486 * troff/input.c (process_input_stack): Call it.
11488 * troff/div.c (truncated_space_reg::get_string): New function.
11489 (init_div_requests): Bind to .trunc.
11490 (space_request, top_level_diversion::space,
11491 top_level_diversion::output, macro_diversion::space,
11492 macro_diversion::output): Update truncated_space.
11493 (macro_diversion::output): Redo calculations when trap sprung.
11494 (macro_diversion::output, macro_diversion::space): No need for
11497 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
11498 after truncating post line spacing.
11500 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
11502 * ps/devps/prologue (MF, SF): Make them work even if setfont is
11503 defined as a procedure rather than as an operator.
11505 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
11507 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
11509 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
11511 * troff/div.c (top_level_diversion::output): Merge
11512 output_file::print_line and output_file::end_of_line member
11514 * troff/div.h (class output_file):
11515 * troff/node.c (troff_output_file::print_line,
11516 troff_output_file::end_of_line, output_file::end_of_line,
11517 ascii_output_file::print_line, suppress_output_file::print_line):
11518 Corresponding changes.
11520 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
11522 * troff/input.c (token::next): Don't give a warning for `\.'.
11524 * troff/env.c (environment::get_center_lines): New function.
11525 (init_env_requests): Bind number register .ce to it.
11526 * troff/env.h: Declare it.
11527 * tbl/table.c (table::init_output): Define reset macro to restore
11528 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
11530 (table::print): If center option not given, then imply center
11531 option if SAVED_CENTER_REG > 0.
11533 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
11535 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
11536 Troff.ps from DOWNLOAD.
11538 * troff/Makefile: Change comment in DEFINES to avoid confusing
11541 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
11542 code. Don't try to catch errors with stopped.
11543 (check_line_lengths): New function.
11544 * ps/devps/prologue (EXEC): Deleted.
11545 (EBEGIN, EEND): New procedures.
11547 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
11549 * troff/input.c: Include request.h before node.h.
11550 * troff/node.c: Likewise.
11551 * troff/env.c: Likewise.
11552 * troff/div.c: Likewise.
11553 * troff/node.h (class special_node): Store argument as a macro
11554 rather than a char *.
11555 * troff/node.c (special_node::special_node, special_node::copy):
11557 (special_node::~special_node): Deleted.
11558 (special_node::tprint): Deleted.
11559 (special_node::tprint_start, special_node::tprint_end,
11560 special_node::tprint_char): New functions.
11561 (troff_output_file::special): Deleted.
11562 (troff_output_file::start_special, troff_output_file::end_special,
11563 troff_output_file::special_char): New functions.
11564 * troff/input.c (special_node::tprint): New function.
11565 (do_special): Use macro not char *.
11566 (do_transparent_macro): Deleted.
11567 (token::next): Don't call do_transparent_macro.
11569 * troff/input.c (token::next): Add 'Y' case.
11570 (do_transparent_macro): New function.
11571 * troff/node.c (troff_output_file::special): Handle newlines with
11572 argument using new continuation convention.
11573 * driver/input.c (get_string): Cope with continuation convention.
11574 (do_file): Don't call skip_line after calling get_string(1).
11575 * ps/ps.c (ps_printer::special, ps_printer::do_import,
11576 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
11578 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
11581 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
11583 * troff/input.c (asciify): By default, illegal input characters
11584 should return empty string.
11586 * troff/input.c (copy_file): Handle first page transition like title.
11587 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
11589 * troff/input.c (token::next): Improve error message for EOF after
11591 (input_char_description): New function.
11592 (get_char_for_escape_name): Use input_char_description.
11593 (token::next): Warn about unrecognized escape sequences.
11594 (warning_table): Add WARN_ESCAPE.
11595 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
11598 * troff/token.h: Remove declaration of process_input_stack.
11600 * troff/input.c: Remove declaration of init_hyphen_requests.
11601 * troff/request.h: Correct spelling in declaration of same.
11603 * troff/input.c (token::next): Check whether escape_char is 0.
11605 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
11607 * groff.c (main, usage, help): Implement -P and -L options.
11608 * groff.sh: Likewise.
11610 * troff/input.c (token::next): Use some gotos to avoid code
11613 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
11614 Avoid calling symbol::symbol if name empty.
11616 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
11618 * troff/input.c (init_input_requests): Make \n(.x return the major
11619 version number and \n(.y return the minor version number.
11620 * troff/Makefile: Construct file majorminor.c defining
11621 major_version and minor_version automatically from ../VERSION.
11623 * troff/node.c (class glyph_node): Make operator new and operator
11625 (class ligature_node): Similarily.
11627 * troff/input.c (operator==(const macro &, const macro &)): New
11629 (non_interpreted_node::same): Use this.
11630 (string_iterator::string_iterator): Make macro& argument const.
11632 * troff/input.c (input_iterator::get): New function. Don't make
11633 asciify_macro or class non_interpreted_node friends of class
11635 (non_interpreted_node::interpret): Use input_iterator::get.
11636 (asciify_macro): Likewise.
11638 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
11639 ~non_interpreted_node): Deleted.
11640 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
11643 * troff/symbol.h: Make all symbol member functions const.
11645 * lib/strtol.c: New file.
11646 * lib/Makefile: Add strtol.c.
11647 * Makefile: Define STRTOL as strtol.o to include strtol in
11650 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
11652 * pic/troff.c (troff_output::simple_circle): Divide by scale.
11654 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
11656 * troff/input.c (do_special): Use input_level.
11658 * troff/token.h (TOKEN_BACKSPACE): New token.
11659 (token::backspace): New function.
11660 * troff/input.c (token::description, token::next, token::process):
11661 Grok TOKEN_BACKSPACE.
11662 (do_special): Turn TOKEN_BACKSPACE back into \b.
11664 * troff/token.h (token::leader): New function.
11665 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
11667 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
11669 * troff/input.c (do_special): Use token::description in error
11672 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
11674 * troff/input.c (decode_args): Combine quoted and
11675 quote_input_level variables. Make it a for (;;) loop.
11677 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
11679 * troff/input.c (read_long_escape_name): The test for whether to
11680 expand buffer was off by 1.
11681 (read_string): Similarily.
11683 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
11685 * troff/input.c: Use `const int' rather than `static const int'.
11687 * troff/div.h (diversion::copy_file): Declare as pure virtual.
11688 (macro_diversion::copy_file): New function.
11689 * troff/node.h: New class diverted_copy_file_node.
11690 * troff/node.c: Implement it.
11691 * troff/input.c (copy_file): Use diversion::copy_file. Handle
11692 first page transition by pushing a diverted_copy_file_node.
11693 * troff/input.c (token::next, process_input_stack): Don't handle
11696 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
11698 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
11699 whether space widths need adjusting.
11701 * troff/charinfo.h: Generalize translated_to_space to
11702 special_translation so as to allow translation to \&.
11703 * troff/input.c (translate): Allow translation to \&.
11704 (charinfo::*): Corresponding changes.
11705 * troff/node.c (make_node, node::add_char): Corresponding changes.
11706 * troff/node.h (dummy_node::dummy_node): Allow optional first
11709 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
11710 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
11712 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
11713 TOKEN_REQUEST with an argument of TITLE_REQUEST.
11714 (token::process): Grok that.
11715 * troff/input.c (copy_file): Handle first page transition like
11716 title by pushing a COPY_FILE_REQUEST cookie.
11717 (token::next, process_input_stack): Grok that.
11718 * troff/node.h (output_file::copy_file): Add x and y arguments.
11720 * troff/div.c (top_level_diversion::copy_file): Supply them.
11721 * troff/node.c (troff_output_file::copy_file): Add x and y
11722 arguments; moveto specified position. Invalidate font_position
11723 array after copying file.
11724 (output_file::copy_file): New function.
11725 (suppressed_output_file::copy_file, ascii_output::copy_file):
11727 * troff/input.c (transparent_file): New function.
11728 (init_input_requests): Bind to "trf".
11729 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
11730 (process_input_stack): Likewise.
11732 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
11734 * troff/node.c (init_node_requests): New number registers .kern
11735 pointing to global_kern_mode, and .lg pointing to
11736 global_ligature_mode.
11738 * troff/node.c (ligature): Don't change it if we get a bad
11741 * troff/input.c (do_define_string): Don't strip tabs.
11743 * troff/input.c (asciify_macro): Make the string_iterator auto.
11745 * troff/node.c (init_font_requests): Rename to...
11746 (init_node_requests):
11747 * troff/node.h: Change declaration.
11748 * troff/input.c (main): Change call.
11750 * troff/input.c (node::reread, diverted_space_node::reread): New
11752 (process_input_stack): Call reread rather than
11753 get_diverted_space_node.
11754 * troff/node.c (node::get_diverted_space_node,
11755 diverted_space_node::get_diverted_space_node): Removed.
11756 * troff/node.h: Declare reread methods instead of
11757 get_diverted_space_node methods. Make `n' member private.
11758 * troff/input.c: (token::diverted_space): Removed.
11759 * troff/token.h: Removed declaration.
11762 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
11764 * eqn/script.c (script_box::compute_metrics): Don't let
11765 SUP_RAISE_FORMAT become negative.
11767 * tbl/table.c (table::do_row): Entries that don't end in the
11768 this row shouldn't make the row non-blank.
11770 * tbl/table.c (table::make_columns_equal): Only set the width of
11771 columns which are marked as equal.
11773 * tbl/main.c (process_data): Before issuing excess data error,
11774 if last character was a newline unget it; then get it again after
11775 the error. Also include the contents of the entry in the message.
11777 * groff.c: New file.
11778 * Makefile: Build groff from groff.c. Make it possible to use
11779 either groff.sh or groff.c as groff.
11780 * Makefile.bd: Similarily.
11782 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
11784 * groff.sh: Don't delay expansion of $@ in assignment to files.
11785 Remove occurrences of \".
11787 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
11789 * all Makefiles: Simplify and rearrange.
11791 * Makefile: Handle fmod like malloc.
11792 * lib/Makefile: Similarily.
11793 * lib/fmod.c: Remove #ifdef NEED_FMOD.
11795 * Makefile: Rename OPTIMISE to OPTIMIZE.
11797 * groff.sh: Remove assignment to PATH.
11798 * Makefile: Remove SHPATH variable.
11799 * Makefile.bd: Similarily.
11801 * groff.sh: Add -V option to print the pipeline instead of
11804 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
11806 * lib/font.c: Split off file searching into ...
11807 * lib/fontfile.c: New file.
11809 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
11811 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
11813 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
11814 Also change misleading comment.
11815 (table::do_vspan): Change similarily misleading comment.
11816 * tbl/main.c (process_data): A format row with an explicit `s'
11817 uses up a data line, even if all the other columns are `_' or `='.
11819 * troff/input.c (token::description): Fix description of
11820 TOKEN_DUMMY and TOKEN_EMPTY.
11822 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
11824 * groff.sh: Fix description of -Z in help message.
11826 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
11828 * pic/object.c (object_spec::make_object): Allow negative and zero
11830 * pic/pic.y: Give linethick default value of -1.0.
11831 * pic/troff.c (troff_output::troff_output): Initialize
11832 last_line_thickness to BAD_THICKNESS.
11833 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
11834 (troff_output::line_thickness): Canonicalize negative thicknesses
11835 to RELATIVE_THICKNESS.
11836 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
11837 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
11839 (tex_output::start_picture): Set pen_size to -2.0.
11841 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
11842 0, then use 0 linewidth.
11843 (ps_printer::ps_printer): Initialize line_thickness to -1.
11845 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
11847 * ps/devps/symbolchars: Remove `or'.
11848 * ps/tmac.ps: Implement \(or with .char.
11850 * ps/devps/symbolchars: Move most characters into textmap.
11851 * ps/devps/textmap: Add names for troff bracket characters. Remove
11854 * ps/devps/TSymbol.ps: Removed.
11855 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
11856 * ps/tmac.ps: Do with .char what TSymbol did.
11857 * ps/devps/download: Remove TSymbol.
11859 * ps/devps/T: Removed.
11860 * ps/devps/Troff.ps: Removed.
11861 * ps/devps/Troff.afm: Removed.
11862 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
11863 * ps/devps/download: Remove Troff.
11864 * ps/devps/FontMakefile: Remove T target.
11865 * ps/devps/DESC-A4: Remove T from font list.
11866 * ps/devps/DESC-letter: Likewise.
11868 * troff/input.c (macro_to_node): Rename to ...
11869 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
11870 character's definition while processing it.
11871 * troff/node.c (node::add_char, make_node): Change calls to
11872 macro_to_node accordingly.
11874 * troff/input.c (token::next): Translate \_ to \(ul.
11876 * tty/devascii/R.proto: Add `|'.
11877 * tty/devlatin1/R.proto: Likewise.
11879 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
11881 * man: Put the version number in all the man pages.
11883 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
11885 * Makefile.bd: New file.
11886 * README.bd: New file.
11888 * VERSION: New file.
11889 * lib/version.c: Removed.
11890 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
11893 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
11894 environment variable.
11896 * all Makefiles: Split install target into install.bin for
11897 binaries, and install.nobin for everything else.
11898 * Makefile: Add bindist target.
11900 * man/afmtodit.man: New file.
11901 * man/Makefile: Add afmtodit.n to MAN1PAGES.
11902 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
11904 * ps/Makefile: Pass BINDIR to make install in devps.
11906 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
11907 the space character.
11909 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
11911 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
11913 * ps/ps.c: Redo font downloading.
11914 * ps/devps/download: New file.
11915 * ps/devps/Makefile: Add download to DEVICEFILES.
11916 * ps/devps/afmtodit: Remove -d option.
11917 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
11918 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
11919 * ps/devps/zapfdr.ps: Likewise.
11920 * ps/devps/TSymbol.ps: Likewise.
11922 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
11924 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
11926 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
11928 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
11929 then strip the first line if it starts with %.
11930 * Makefile: Add a comment about this.
11932 * man/tfmtodit.man: New file.
11933 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
11934 * dvi/Makefile: Install tfmtodit in BINDIR.
11936 * dvi/tfmtodit.c (usage): Mention -v option.
11938 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
11940 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
11941 * troff/node.c (troff_output_file::transparent_char): Don't call
11944 * eqn: Add check_tabs method to most box classes.
11945 * eqn/box.c (box::top_level): Call check_tabs.
11947 * eqn/script.c (script_box::output): Use \Z.
11948 * eqn/limit.c (limit_box::output): Use \Z.
11950 * eqn/box.c (box::top_level): Use itoa.
11952 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
11954 * dvi/tmac.dvi: Add font translations for CR, C, TT.
11955 * dvi/devdvi/Makefile: Don't make links to CW.
11957 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
11959 * xditview/tmac.X: Likewise.
11961 * troff/node.c: Add font translation feature.
11962 (get_font_translation): New function.
11963 (symbol_fontno): Translate the font name.
11964 (mount_font_no_translate): Rename to mount_font to this.
11965 (mount_font): New function.
11966 (font_family::make_definite): Call mount_font_no_translate instead
11968 (mount_style): Translate the font name.
11969 (font_translate): New function.
11970 (init_font_requests): Bind "ftr" to font_translate.
11972 * ps/devps/prologue (SN): New procedure that rounds a position to
11973 the nearest (pixel + (.25,.25)).
11974 (DL): Use SN to round endpoints.
11976 * lib/version.c: Changed version to 0.5.
11978 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
11980 * Makefile: Move definition of PAGE to the very beginning, so that
11981 people are less likely to miss it.
11983 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
11985 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
11987 * troff/env.c (environment::choose_breakpoint): Make `can't find
11988 breakpoint' error a warning of type WARN_BREAK. Change message to
11989 `can't break line'.
11990 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
11992 * troff/input.c: Add WARN_BREAK to warning_table. Include
11993 WARN_BREAK in DEFAULT_WARNING_MASK.
11995 * tty/tmac.tty: Add definition of \(+-.
11997 * groff.sh: Remove `--' option to set command.
11999 * dvi/devdvi/texsy.map: Remove duplicate md entry.
12001 * ps/devps/eqnchar: Better definition of cdot using md.
12002 * dvi/devdvi/eqnchar: Likewise.
12003 * xditview/devX100/eqnchar: Likewise.
12004 * xditview/devX75/eqnchar: Likewise.
12005 * eqn/lex.c: Add definition of cdot.
12007 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
12009 * troff/input.c (get_optional_char): New function.
12010 * troff/input.c (set_page_character): Use get_optional_char(),
12011 rather than has_arg() and tok.get_char(1).
12012 * troff/env.c (tab_character, leader_character, hyphen_char,
12013 field_characters): Likewise.
12014 (margin_character): Likewise. Also always delete the
12015 margin_character_node.
12017 * troff/input.c (token::get_char): Use token::description.
12019 * troff/input.c (has_arg): Don't skip over tab and \}.
12020 * troff/number.c (start_number): Give a warning if the number
12021 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
12023 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
12025 * troff/input.c (empty_name_warning, non_empty_name_warning): New
12027 (get_name, get_long_name): Use these. Rename `warn' argument to
12030 * troff/node.c (get_fontno): Test that the symbol is not null.
12032 * troff/input.c (token::description): New function.
12033 * troff/number.c (parse_term): Use token::description in `numeric
12034 expression expected' message.
12035 * troff/groff.h: Add WARN_MISSING.
12036 * troff/number.c (start_number): New function.
12037 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
12038 get_incr_number): Use start_number().
12039 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
12041 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
12042 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
12044 * troff/input.c (token::get_char): Use WARN_MISSING.
12045 * troff/input.c (token::delimiter): Use token::description.
12046 * troff/env.c (environment_switch): Back out Aug 3 change.
12047 * troff/input.c (has_arg): Skip over \}s and tabs but give a
12049 * troff/token.h (token::tab): New function.
12050 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
12051 * troff/reg.c (alter_format): Likewise.
12052 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
12054 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
12056 * troff (most files): Redo warnings. Divide warnings into various
12057 categories; warning() has an additional first argument indicating
12058 the category it falls into.
12059 * troff/input.c (main): -w now takes an argument. New option -W.
12060 (enable_warning, disable_warning): New functions.
12062 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
12063 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
12065 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
12067 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
12068 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
12069 * xditview/devX75/eqnchar: Likewise.
12070 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
12072 * eqn/other.c: When bar or over applies to a single character
12073 don't produce an overline_box or an underline_box. Instead produce
12074 an accent_box or an underaccent_box, with the accent a line
12075 whose width is accent_width. New classes underaccent_box,
12076 overline_char_box and underline_char_box.
12077 * eqn/box.h: Move overline_box, underline_box, accent_box class
12078 declarations into eqn/other.c. Add declarations of
12079 make_underline_box, make_overline_box, make_accent_box.
12080 * eqn/eqn.y: Call make_overline_box, make_underline_box
12081 make_accent_box instead of constructors.
12082 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
12084 * eqn/other.c: Add accent_box::~accent_box.
12085 * eqn/box.h: Declare it.
12087 * groff.sh: With -Tps, use eqn -D.
12089 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
12091 (underline_box::output): Similarily.
12092 (accent_box::output): Use \Z.
12094 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
12097 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
12099 * troff/div.c (top_level_diversion::transparent_output(unsigned
12100 char)): Use asciify.
12101 * troff/input.c (asciify): Don't make it static.
12102 * troff/token.h (asciify): Declare it.
12104 * troff/input.c (get_name, get_long_name, token::get_char,
12105 token::delimiter): Add an extra default argument which says
12106 whether a warning should be printed.
12107 * troff: Pass a non-zero argument to one of these rather than
12108 printing a warning directly.
12110 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
12112 * troff: Consistently use symbol::is_null.
12114 * troff/dictionary.h: Move some inline functions into
12117 * troff/request.h: Move inline functions into input.c.
12118 (request_or_macro::invoke): Make it pure.
12120 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
12121 * troff/input.c (init_input_requests): Use class constant_int_reg.
12122 (class compatible_reg): Deleted.
12123 * troff/div.c (init_div_requests): Use class constant_int_reg.
12124 (class last_post_line_extra_space_reg): Deleted.
12126 * troff/env.c (tab_character): Don't change the tab character if
12127 we get an invalid argument.
12128 (hyphen_char): Similarily.
12130 * troff/reg.c (alter_format): Check that nm is not null.
12132 * Makefile, groff.sh: Make it possible to customize the commands
12133 used for printing PostScript and dvi files. Also make it possible
12134 to customize the path used by groff.sh.
12136 * eqn/eqn.y: Make `left' right associative.
12138 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
12140 * pic/pic.h: Added definition of M_SQRT2 for those systems that
12143 * pic/pic.h: Removed definition of INT_MAX.
12145 * troff/node.c (italic_corrected_node::vertical_extent): Omit
12148 * troff/input.c (token::next): Handle \R like \n.
12150 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
12152 * ps/tmac.pc (PSPIC): Simplify.
12154 * troff/env.c (tab_stops::to_string):
12155 * pic/pic.y (object_type_name):
12156 * pic/troff.c (simple_output::line):
12157 * pic/tex.c (tex_output::spline):
12158 * pic/object.c (object_spec::make_object):
12159 * tbl/main.c (process_data): Add cases to switch statements to
12160 avoid cfront warnings. (Some of these are spurious, since the
12161 switch already has a default case.)
12163 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
12164 `ps-'. Don't test systat; instead check number of arguments to
12167 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
12169 * macros/tmac.e: Do not decrease the page offset by 0.5i.
12171 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
12172 Unlink the file as soon as we have opened it, so that we don't
12173 have to bother with signal handlers.
12174 (handler): Deleted.
12175 (fatal_error_exit): Deleted.
12176 (main): Don't call signal.
12178 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
12180 * dvi/devdvi/Makefile: Use the -k option with S and MI.
12182 * pic/pic.y: If there is a label, or an nth construction before
12183 the first `.' in the argument to `with', ignore it and generate a
12185 * pic/lex.c (lex_warning): New function.
12187 * tbl/table.c (table::init_output): In section keep and release
12188 macro, use 0 indent when diverting and the correct indent when
12191 * troff/input.c (interpolate_number_format): Do not interpolate
12192 anything if the number register is not defined.
12194 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
12196 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
12198 * ps/devps/prologue (PICTURE): Set components of graphics state to
12199 their default values.
12201 * ps/devps/text.enc: Add trademark
12202 * ps/devps/textmap: Add names for club, spade, heart, diamond,
12203 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
12204 * ps/devps/symbolchars: Add names for summation and product.
12206 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
12207 suchthat. Add pp. Add upper-case letters.
12209 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
12210 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
12213 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
12214 rA (right angle bracket) to ra. Introduce names for double-headed
12215 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
12216 * ps/devps/textmap: Likewise for ps device.
12217 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
12218 * tty/devascii/R.proto: Rename lA to la and rA to ra.
12219 * tty/devascii/R.proto: Likewise.
12220 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
12222 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
12224 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
12226 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
12229 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
12231 * troff/div.c (when_request): Use symbol::is_null rather than
12232 has_arg to determine whether we have an argument.
12233 (change_trap): Remove the trap if we get an invalid number. Give
12234 an error if we don't get at least the macro name.
12235 (diversion_trap): Remove trap if we get an invalid name or number.
12237 * troff/env.c (environment_switch): Pop if we get an invalid
12238 symbol or numeric expression.
12240 * troff/input.c (do_define_macro): If EOF is encoutered while
12241 defining the macro, do tok.next() before returning.
12243 * troff/token.h (has_arg): Move definition from here, to ...
12244 * troff/input.c (has_arg): ... here
12246 * troff/env.c (space_size): Do nothing if we get an invalid argument.
12247 * troff/input.c (shift): Likewise.
12249 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
12252 * pic/troff.c (troff_output::start_picture): Comment out calls to
12255 * eqn/main.c (do_file): Subtract 1 from current_lineno if
12256 interpret_lf_args succeeds.
12258 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
12259 \\. This avoids problems with \$N.
12261 * groff.sh: Pass -C to preprocessors.
12263 * lib/lf.c (interpret_lf_args): Be more flexible.
12265 * tbl/main.c (main): Add -C option.
12266 (table_input::get): Do not recognize TE if followed by character
12267 other than a space or newline unless -C option given.
12268 (process_input_file): Likewise for lf, TS.
12269 (process_data): Likewise for lf in text blocks.
12271 * eqn/main.c (main): Add -C option.
12272 (do_file): Don't recognize EQ, EN or lf if followed by character
12273 other than space or newline unless -C option given.
12274 * eqn/lex.c (file_input::read_line): Similarily.
12275 * eqn/eqn.h: Declare compatible_flag.
12277 * etc/soelim.c (main): Add -C option.
12278 (interpret_lf_args): Use version in libgroff.
12281 * pic/main.c (main): Add -C option, which sets compatible_flag.
12282 (top_input::get), (top_input::peek): If -C option not given,
12283 do not recognize .PS/.PE/.PF/.lf if followed by a character
12284 other than space or newline.
12285 * pic/lex.c (file_input::read_line): Similarily.
12286 * pic/pic.h: Add declaration of compatible_flag.
12288 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
12290 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
12292 * troff/node.c, troff/node.h: Add `asciify' methods to classes
12293 derived from node. New class space_char_hmotion_node.
12294 * troff/input.c (asciify_macro): New function.
12295 * troff/input.c (init_input_requests): New request `asciify' bound
12297 * macros/mm.diff: New file.
12298 * Makefile: In install.mm target use `patch' to apply
12301 * troff/input.c (macro::print_size): Just print the size in bytes.
12303 * troff/div.c (return_request): Correct the argument
12306 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
12308 * troff/node.h (class composite_node): Add sz member.
12309 * troff/node.c (composite_node::size): Return sz.
12310 * troff/input.c (macro_to_node): Use the initial size in the
12311 environment as the size of the composite_node.
12313 * troff/node.c (node::zero_width_tprint): Provide a reasonable
12316 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
12318 * troff/div.c (change_trap): If we get a bad number expression,
12321 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
12323 * lib/matherr.c (matherr): Define this only if math.h defines
12326 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
12328 * troff/div.c (macro_diversion::distance_to_next_trap): If there
12329 no diversion trap return vunits(INT_MAX - vresolution).
12331 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
12333 * troff/input.c (do_zero_width): New implementation that doesn't
12334 use a temporary environment. Use instead:
12335 (token::add_to_node_list): New function.
12336 * troff/env.c (environment::get_prev_char_height),
12337 (environment::get_prev_char_height),
12338 (environment::get_prev_char_skew): New functions.
12339 (environment::get_prev_char): New function.
12340 (environment::get_prev_char_width): Change to use get_prev_char.
12341 (init_env_request): Implement new registers .cht, .cdp, .csk.
12342 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
12343 \Z being processed in a separate environment.
12345 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
12347 * tbl/table.c: Removed TABLE_BOTTOM_REG.
12349 * tbl/table.c (table::init_output): In the section release macro,
12350 give a warning message if the section won't fit on one page.
12352 * tbl/table.c (table::do_top): Emit table keep only if table is
12354 (table::do_bottom): Likewise for table release.
12355 (table::table), (table::add_vertical_rule): Remove reference to
12357 * tbl/table.h: Remove keep member.
12359 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
12360 SECTION_RELEASE_MACRO, if there's not enough space before the next
12361 trap to output the diversion, call T# ourselves, set
12362 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
12363 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
12364 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
12365 vertical position and return to it before turning traps on again.
12367 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
12369 * troff/node.c, troff/node.h: In classes derived from node,
12370 replace prev_char_width method by last_char_node method.
12371 * troff/env.c (environment::get_prev_char_width): Use
12372 node::last_char_node rather than node::get_prev_char_width.
12374 * Makefile: Added comment about -fno-inline on 68030-based
12377 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
12378 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
12379 expressions using sizeof to int.
12380 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
12382 * macros/tmac.e (TS): Don't move @f back past the current
12385 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
12387 * ps/ps.c (main): Buffer stderr.
12388 * dvi/dvi.c (main): Likewise.
12389 * tty/tty.c (main): Likewise.
12391 * ps/ps.c (ps_printer::do_import): Improve error handling.
12393 * troff/input.c (abort_request): Use asciify.
12395 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
12396 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
12397 type of first argument int rather than char. This works around a
12398 bug on the 68030 based Apollo using g++ 1.37.1.
12400 * tbl/table.h (class table): Add `keep' member.
12401 * tbl/table.c (table::table): Initialize `keep'.
12402 (table::add_vertical_rule): Set `keep' to 1.
12403 (table::do_top): Only emit table keep macro is `keep' is non-zero.
12404 (table::do_bottom): Likewise for table release macro.
12405 (table::do_row): Emit section keep macro even if the row is 0.
12407 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
12409 * macros/tmac.e (@C): Preserve the font family across the change
12412 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
12414 * lib/font.c: Initialize font::hor and font::vert to 1.
12415 (font::load_desc): Check the values of font::hor and font::vert.
12417 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
12418 be included in a C compilation.
12419 (iftoa): Use INT_DIGITS. Include lib.h.
12421 (as_string): Likewise.
12422 * tbl/table.c: Removed definition of INT_DIGITS.
12423 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
12424 * troff/input.c (input_input_requests): Likewise.
12425 * ps/ps.c (make_encoding_name): Likewise.
12426 (ps_printer::set_style): Likewise.
12427 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
12429 * tty/devascii/R.proto: Map fm onto '.
12430 * tty/devlatin1/R.proto: Likewise.
12432 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
12434 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
12435 argument to \w is at a different input level.
12437 * tbl/table.c (table::init_output): Define a new macro
12438 REPEATED_VPT_MACRO, like vpt but if in a diversion also
12439 transparently outputs itself.
12440 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
12442 (table::do_row): Likewise.
12444 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
12445 TRANSPARENT_STRING_NAME.
12447 * tbl/table.c (table::init_output): In the table release macro
12448 print an error message and don't produce any output if after
12449 issuing the need request the table still will not fit. Also
12450 remove the diversion after bringing it back.
12452 * tbl/table.c (table::init_output): Define a new macro
12453 REPEATED_MARK_MACRO, like mk but if in a diversion also
12454 transparently outputs itself.
12455 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
12456 is necessary because .TH might not call .T#.
12457 (table::do_top): Likewise TOP_REG.
12458 (table::define_bottom_macro): If TOP_REG is no longer valid, use
12459 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
12460 table header might contain just the two top rules.
12462 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
12464 * troff/div.c: Implement new request `ptr' to print all traps.
12466 * troff/env.c (init_env_requests): Implement `.tabs' reg with
12467 init_string_env_reg.
12468 * troff/env.c (class tab_reg): Deleted.
12470 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
12472 * troff/div.c: New number register .pn returns the number of the
12473 next page as set by the pn request.
12475 * macros/tmac.an: Redid headers and footers. Number each manual
12476 entry starting from 1 unless \nC is > 0, like Sun. Added an
12477 optional 5th argument to .TH which specifies the manual name and
12478 appears in the center of the header. Understand the X, P and D
12479 registers like Sun.
12481 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
12483 * troff/env.c (init_env_requests): New number register `.lt' to
12484 return the title length.
12486 * troff/node.h (class transparent_dummy_node): New class.
12487 * troff/node.c (class transparent_dummy_node): Provide member
12489 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
12492 * troff/input.c (token::next): New escape sequence \).
12493 * troff/input.c (get_copy): Recognize \) in copy mode.
12495 * troff/input.c (input_stack::clear): New function.
12496 * troff/input.c (exit_request): Use input_stack::clear.
12498 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
12499 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
12501 * troff/env.c: Move set_page_character to input.c. Move
12502 page_character to input.c also.
12503 * troff/env.c (title): Split off the reading of the parts of the
12504 title into read_title_parts.
12505 * troff/input.c (read_title_parts): New function. Check the
12506 input_level when testing whether a token matches the delimiter.
12508 * troff/input.c (exit_request): New function.
12509 * troff/input.c (init_input_requests): Bind ex request to
12510 exit_request rather than exit_groff.
12512 * troff/input.c (exit_groff): Call tok.next() before
12513 process_input_stack().
12515 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
12517 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
12518 * troff/env.h: ditto.
12519 * troff/input.c: ditto.
12521 * troff/env.c (environment::is_empty): Test pending_lines.
12523 * troff/env.c (environment::have_pending_lines): Removed.
12525 * troff/input.c: Add request to flush pending lines from the
12528 * troff/env.c, troff/env.h: Add automatic widow control feature.
12530 * troff/input.c (exit_groff): Do process_input_stack() after
12531 do_break() but before setting exit_flag to 2.
12533 * troff/input.c: Remove FLUSH_PENDING_LINES and
12534 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
12535 environment after END_TRAP token seen, but only if there aren't
12536 any more traps still unfinished.
12537 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
12539 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
12541 * troff/env.c: Rename the `retain_size' member of class
12542 pending_output_line to `no_fill'.
12544 * troff/env.c (title): When the line is output, make the
12545 retain_size argument !fill.
12547 * troff/node.h: Add `hyphenated' member to struct breakpoint.
12548 * troff/node.c (space_node::get_breakpoints),
12549 (dbreak_node::get_breakpoints): Fill this in.
12550 * troff/env.c: Allow specification of maximum number of
12551 consecutive hyphenated lines.
12553 * troff/env.c (environment::is_empty): Add test for !current_tab.
12555 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
12557 * troff/env.c (environment::hyphenate_line): Don't completely give
12558 up if the word is not to be hyphenated; continue so that breaks
12559 can be made at break_char_node's.
12561 * lib/lib.h: Only define INT_MAX if it's not already defined;
12562 undef INT_MIN if it's already defined.
12564 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
12566 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
12567 This works around a bug in AT&T C++ 2.0 used with an ANSI C
12570 * macros/tmac.an (an-header): Set no-space mode.
12572 * macros/tmac.an (TH): Start a new page if necessary.
12574 * Started using ChangeLog at version 0.4.
12577 version-control: never