1 2002-06-15 Werner LEMBERG <wl@gnu.org>
3 Don't produce HTML files if utility programs are missing.
5 * Makefile.in (make_html, make_install_html): New variables.
8 * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
10 * configure.ac: Use it.
11 * configure: Regenerated.
13 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
14 (HTMLEXAMPLESFILES): This new variable.
15 (EXAMPLESIMAGEFILES): Renamed to...
16 (HTMLEXAMPLEIMAGEFILES): This.
17 (CLEANADD): Add HTMLEXAMPLEFILES.
18 (all): Use `make_html'.
20 (install_data): Use `make_install_html'.
22 (install_html): This new target.
23 (uninstall_sub): Updated.
25 2002-06-14 Bernd Warken <bwarken@mayn.de>
27 * src/roff/grog/Makefile.sub (grog): Renamed to...
29 (grog): New rule to always install grog.sh as grog.
31 2002-06-08 Bernd Warken <bwarken@mayn.de>
33 * src/roff/grog/grog.pl: Fix typo.
35 2002-06-07 Werner LEMBERG <wl@gnu.org>
37 * doc/groff.texinfo: Add more info on .tr arguments.
39 2002-06-05 Werner LEMBERG <wl@gnu.org>
41 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
43 * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
44 * configure: Regenerated.
46 2002-06-05 Ralph Corderoy <ralph@inputplus.demon.co.uk>
48 * src/roff/troff/symbol.cc (table_sizes): Add more values.
50 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
52 2002-06-04 Werner LEMBERG <wl@gnu.org>
54 * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
55 is not initialized at the time we need it in case `--prefix' hasn't
56 been set. Check for `ac_default_prefix' also.
57 Test for `papersize' keyword also and generalize allowed whitespace.
58 * configure: Regenerated.
60 * font/devps/Makefile.sub (DESC): Use `papersize' instead of
63 * src/libs/libgroff/Makefile.sub (version, revision): Replaced
65 (src_version, src_revision): New variables to avoid overwriting
66 from parent make process.
67 (version.cc): Updated.
69 * src/preproc/html/pre-html.cc: Include paper.h and font.h.
70 (linebuf, linebufsize): New global variables.
71 (sys_fatal): Use `fatal' to abort properly.
72 (get_line): New function.
73 (get_resolution): Use it.
74 Improve error messages.
75 (get_papersize): Check `papersize' also.
77 Improve error messages.
79 2002-06-03 Werner LEMBERG <wl@gnu.org>
81 * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
82 should be removed only if builddir is not srcdir.
83 (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
84 (clean): Depend on `mostlyclean'.
85 (distclean): Depend on `clean'.
86 (realclean, extraclean): Depend on `distclean'.
87 (.y.cc, .y.o): Simplified. The output files are no longer written
88 to srcdir but to builddir.
89 * Makefile.in (MDEFINES): Add `version' and `revision'.
90 (uninstall_dirs): Fix order of directories.
91 * doc/Makefile.sub (version, revision): Removed.
92 (CLEANADD): Removed grnexmpl.g, groff, groff-*.
94 (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
95 * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
96 src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
99 * doc/texinfo.tex (\authortt): New macro.
100 (\shortcontt): Define.
101 (\titlepage): Set \tt to \authortt while defining \authorfont.
102 (\appendixbox): New macro.
103 (\chapmacro, \appendixentry): Use \appendixbox to get even
104 indentation for letters.
105 (\summarycontents): Set \tt.
106 (\internalpagesize): Add two arguments for real paper width and
107 height as needed by pdfTeX.
108 (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
110 (\tempdima, \tempdimb): New temporary dimensions.
111 (\pagesizesyyy): Updated.
113 2002-06-02 Werner LEMBERG <wl@gnu.org>
115 Adding a new keyword `papersize' to the DESC file format (similar
116 but not completely identical to grolbp's extension). grops now has
117 a -p command line option to override `papersize'. Finally, grolbp
118 has been adapted to the new syntax.
120 * src/libs/libgroff/paper.cc, src/include/paper.h: New files. It
121 defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
123 * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
124 (CCSRCS): Add `paper.cc'.
126 * src/include/font.h (font): Add `papersize' element.
127 * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
128 (font::scan_papersize): New function.
129 (font::load_desc): Use it for handling `papersize' keyword.
130 * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
132 * src/devices/grops/ps.cc: Include paper.h.
133 (user_paper_length): New global variable.
134 (ps_printer): Use paper length as initializer.
135 (make_printer): Updated.
136 (main): Handle new `-p' option.
137 * src/devices/grops/grops.man: Updated.
139 * src/devices/grolbp/lbp.cc: Include paper.h.
140 s/papersizes/lbp_papersizes/.
141 (set_papersize): Use new `papersizes' array.
142 (handle_unknown_desc_command): Don't handle `papersize'.
143 (main): Use `font::scan_papersize' for handling `-p' option.
144 * src/devices/grolbp/grolbp.man: Updated.
146 * man/groff_font.man: Document `papersize'.
149 2002-05-30 Werner LEMBERG <wl@gnu.org>
151 * src/devices/grops/TODO: Updated.
152 * src/devices/grops/grops.man: More info on paper formats.
153 * man/groff_font.man: Document `paperheight' and `paperwidth'.
155 2002-05-29 Werner LEMBERG <wl@gnu.org>
157 * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
158 to list only if srcdir != currdir.
159 (distfiles): New target.
161 * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
162 (NOMAKEDIRS): New variable.
165 2002-05-26 Werner LEMBERG <wl@gnu.org>
167 Add .output request, similar to \! at top-level.
169 * src/roff/troff/input.cc (transparent): Remove unused declaration.
170 (output_request): New function.
171 (init_input_requests): Add it.
173 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
176 * Makefile.in (MDEFINES): Add INSTALL_INFO.
177 (prepare_examples): Fix typo.
178 * doc/groff.texinfo (@direntry): Fix it.
180 2002-05-25 Werner LEMBERG <wl@gnu.org>
182 Including the doc subdir into groff's Makefile system.
184 * aclocal.m4 (GROFF_INSTALL_INFO): New function.
185 * configure.ac: Use it.
186 Generate `doc/Makefile'.
187 * configure: Regenerated.
189 * Makefile.in (infodir, INSTALL_INFO): New variables.
190 (MDEFINES, uninstall_dirs): Updated.
191 (OTHERDIRS): Add `doc'.
192 * Makefile.comm (CLEANDIRADD): New variable.
193 (mostlyclean): Use it.
195 * doc/Makefile.sub, doc/Makefile.in: New files.
196 * doc/Makefile: Removed.
198 * NEWS, INSTALL: Updated.
200 2002-05-24 Werner LEMBERG <wl@gnu.org>
202 * doc/homepage.ms: Renamed to ...
203 * doc/webpage.ms: This.
206 2002-05-23 Werner LEMBERG <wl@gnu.org>
208 Integrating the `mom' macro package, contributed by Peter Schaffter
211 * contrib/mom/*: New subdirectory tree.
212 * Makefile.in (docdir, exampledir, htmldocdir): New variables to
213 be used for documentation files.
214 (MDEFINES, uninstall_dirs): Use them.
215 (OTHERDIRS): Add contrib/mom.
216 * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
218 * MANIFEST, NEWS: Updated.
220 2002-05-22 Gaius Mulley <gaius@glam.ac.uk>
222 Change syntax of \O: \O[0] suppresses output, \O[1] enables output
223 if at outer level; at start-up we are at outer level.
225 * src/roff/troff/input.cc (do_suppress): Implement it.
228 Add option -p to show progress information.
229 pre-grohtml will now render only one page at a time, reducing the
230 size of needed disk resources enormously.
232 * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
233 (imagePageName): New global variable.
234 (psPageName, show_progress, currentPageNo): New global variables.
235 (html_system): Close saved stderr and stdout handles.
236 (write_end_image): Accept a parameter to control \O escape.
237 (write_start_image): Adapted to new \O meaning.
238 (char_buffer::write_upto_newline): Updated.
239 (createAllPages): Replaced with...
240 (createPage): This new function to create a single page for images.
241 It uses `psselect' from the psutils package.
242 (removeAllPages): Removed.
243 (createImage): Updated.
244 Handle progress display.
245 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
246 (scanArguments): Add option -p.
247 (makeTempFiles): Updated to create temp files for psPageName and
249 (removeTempFiles): Removed.
252 * src/devices/grohtml/post-html.cc (header_desc::write_headings,
253 html_printer::write_header): Append `\0' to `buffer'.
254 (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
256 * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
257 Handle `text_emitted'.
258 (html_text::table_is_void): Slightly rewritten.
259 (stop): New external symbol.
260 (html_text::do_push) [DEBUGGING]: Use it and simplify.
261 (html_text::shutdown): Call `dump_stack'.
262 (html_text::do_space): Rewritten.
263 * src/devices/grohtml/grohtml.man: Document -p and the need of
266 * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
268 Call \O[0] if `ps4html' is active.
269 * tmac/s.tmac (@EQ, @EN): Handle html better.
271 * tmac/html.tmac: Don't use black for background colour.
273 * src/roff/troff/node.cc: Include `div.h'.
274 (troff_output_file::really_print_line): Don't use `is_on'.
275 (troff_output_file::word_marker, troff_output_file::flush_tbuf
276 troff_output_file::check_charinfo,
277 troff_output_file::put_char_width, troff_output_file::put_char,
278 troff_output_file::determine_line_limits, troff_output_file::draw,
279 real_output_file::begin_page, glyph_color_node::tprintf,
280 fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
282 (troff_output_file::really_on): Call `do_motion'.
283 (suppress_node::tprint): Use `get_page_number' instead of `%'
285 Call `reset_output_registers' conditionally on `is_on'.
287 * doc/groff.texinfo: Document new syntax of \O.
288 * NEWS, man/groff_diff.man: Updated.
290 2002-05-22 Werner LEMBERG <wl@gnu.org>
292 * MORE.STUFF: Add info about David Frey's deroff implementation.
295 2002-05-16 Werner LEMBERG <wl@gnu.org>
297 Pic's `with' attribute now accepts positions.
299 * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
300 ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
302 (object_spec): Add rule for `WITH' and `position'.
303 (relative_path): Give `corner' the precedence of `CHOP'.
304 * src/preproc/pic/object.h (path): New members `pos' and
306 * src/preproc/pic/object.cc: Updated initializers of `path'.
307 (path::follow): Handle `is_position'.
309 * doc/pic.ms: Completely updated grammar description.
310 Many typographical improvements.
312 2002-05-15 Werner LEMBERG <wl@gnu.org>
314 * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
315 code of x in range 0-127) also.
316 * doc/groff.texinfo, man/groff_diff.man: Updated.
318 Added keywords `north', `south', `east', and `west' for corners
321 * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
323 (yylex): Handle them.
324 * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
325 (corner): Handle them.
327 2002-05-14 Werner LEMBERG <wl@gnu.org>
329 * src/devices/grops/grops.man: Clarify handling of `download' file.
331 2002-05-11 Werner LEMBERG <wl@gnu.org>
333 Adding `warnscale' and `spreadwarn' requests, based on a patch from
334 Jeffrey Friedl <jfriedl@yahoo.com>.
336 * src/roff/troff/input.cc (spread_limit, warn_scale,
337 warn_scaling_indicator): New global variables.
338 (warnscale_request, spreadwarn_requests): New functions.
339 (main): Initialize `warn_scale' and `warn_scaling_indicator'.
340 (init_input_requests): Updated.
341 (error_type): Add `OUTPUT_WARNING'.
342 (do_error): Handle it.
343 (output_warning): New warning function which shows output location.
344 * src/roff/troff/env.h (spread_limit): New external variable.
345 * src/roff/troff/env.cc (environment::choose_breakpoint): Use
347 (distribute_space): Emit warning if added space is larger than
349 (environment::possibly_break_line): Emit warning if a line can't
350 be adjusted on both sides.
352 * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
354 2002-05-08 Werner LEMBERG <wl@gnu.org>
356 * src/roff/troff/node.cc (special_node::special_node): Use
357 env_definite_font(curenv) instead of curenv->get_font(). Otherwise
358 \X''\% crashes, for example.
360 * doc/groff.texinfo: Document \! and \? used at top-level.
362 2002-05-06 Werner LEMBERG <wl@gnu.org>
364 * src/preproc/pic/pic.man: Fix some keyword syntax.
365 Other minor typographical fixes.
367 * src/roff/groff/groff.man: Fix typos.
369 2002-05-04 Werner LEMBERG <wl@gnu.org>
371 * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
372 (ShortOpt[]): This to avoid problems with refer.
374 * doc/pic.ms: Fix typo.
375 Fix pic grammar description.
377 * tmac/an-old.tmac (ne): Use de1, not de.
379 2002-05-03 Werner LEMBERG <wl@gnu.org>
381 * doc/groff.texinfo: Finished separation of glyphs and characters.
382 Don't use the string `Appendix' for appendix headers (both in
383 the text and the table of contents).
384 * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
387 Use registers LL and LT (similar to -ms) for controlling the
388 length of title and line, respectively, in the -man and -mdoc
391 * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
392 (doc-setup-page-layout): Use \n[LL] and \n[LT].
393 * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
395 (an-header, an-p-footer): Use \n[LT].
396 * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
397 doc/groff.texinfo: Document it.
399 2002-05-02 Werner LEMBERG <wl@gnu.org>
401 * doc/fdl.texi: New file.
402 * doc/groff.texinfo: Include it.
403 Define and use @copying.
404 Starting with separating glyph, symbol, and character.
406 2002-04-27 Werner LEMBERG <wl@gnu.org>
408 * Makefile.in (EXEEXT): Set it.
409 * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
412 * src/include/nonposix.h: Define GS_NAME.
413 * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
415 Some preliminary changes for EMX support under OS/2.
417 * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
418 __EMX__ similar to __MSDOS__.
419 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
421 2002-04-25 Werner LEMBERG <wl@gnu.org>
423 * doc/groff.texinfo: Integrated groff_out.man.
426 2002-04-23 Werner LEMBERG <wl@gnu.org>
428 * man/groff_out.man: Minor fixes.
430 2002-04-23 Werner LEMBERG <wl@gnu.org>
432 * doc/groff.texinfo: Moving @cindex entries after @Def* to get
433 correct page references.
434 Fixed many index entries.
436 2002-04-23 Bernd Warken <bwarken@mayn.de>
438 * man/roff.man: Enlarged.
440 2002-04-22 Werner LEMBERG <wl@gnu.org>
442 * doc/groff.texinfo: More examples, other fixes.
444 2002-04-20 Werner LEMBERG <wl@gnu.org>
446 * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
447 will now form a chain, e.g.
456 This is for compatibility with plan 9's troff.
458 * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
462 * doc/groff.texinfo: Add documentation of remaining requests and
465 2002-04-19 Werner LEMBERG <wl@gnu.org>
467 * doc/groff.texinfo: Add documentation of remaining escapes.
469 * font/devdvi/generate/tc.map: Remove entry for `sr'.
470 * font/devdvi/*TC: Regenerated.
472 2002-04-18 Werner LEMBERG <wl@gnu.org>
474 * src/roff/troff/input.cc (token::next): Make \H behave consistently
475 if not in compatibility mode, i.e., increment relative to the
477 * doc/groff.texinfo: Updated accordingly.
479 2002-04-17 Werner LEMBERG <wl@gnu.org>
481 * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
483 2002-04-16 Bernd Warken <bwarken@mayn.de>
485 * src/roff/groff/groff.man: Improve documentation of -P option.
488 2002-04-15 Werner LEMBERG <wl@gnu.org>
490 Add new escape \F to switch font family.
492 * src/roff/troff/input.cc (token::next): Handle \F.
493 * src/roff/troff/env.cc (environment::set_family): Handle
495 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
498 2002-04-14 Werner LEMBERG <wl@gnu.org>
500 * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
503 2002-04-13 Werner LEMBERG <wl@gnu.org>
505 Implement \f[] as an alternative to \fP. Change \mP and \MP to
506 \m[] and \M[], respectively.
508 * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
509 (symbol::symbol): Handle NULL string and empty string differently.
510 * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
511 * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
512 Add optional parameter.
513 Updated calling functions.
514 (get_copy, do_glyph_color, do_fill_color, token::next): Use
516 * src/roff/troff/env.cc (environment::set_font): Ditto.
518 * src/preproc/pic/troff.cc (troff_output::set_fill,
519 troff_output::reset_color: Updated.
521 * tmac/www.tmac: Updated.
523 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
524 doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
527 * tmac/Xps.tmac: Remove some redundant code.
529 * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
530 tmac/dvi.tmac, contrib/groffer/groffer.man, man/roff.man,
531 man/groff_out.man, man/groff.man, man/groff_diff.man,
532 src/roff/groff/groff.man: Replace \f[P] with \f[].
534 2002-04-13 Bernd Warken <bwarken@mayn.de>
536 * src/include/printer.h, src/libs/libdriver/printer.cc
537 (printer::change_fill_color): New member function.
538 * src/libs/libdriver/input.cc (parse_D_command): Use it.
540 2002-04-12 Werner LEMBERG <wl@gnu.org>
542 * doc/groff.texinfo: Completed pass on gtroff reference.
544 2002-04-11 Werner LEMBERG <wl@gnu.org>
546 * doc/groff.texinfo: More fixes.
548 2002-04-11 Bernd Warken <bwarken@mayn.de>
550 * src/include/color.h: Decorate with `const'.
553 * src/libs/libgroff.color.cc: Decorate with `const'.
555 (color::color): Initialize members.
556 * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
557 command according to the documentation.
559 * man/groff_out.man: Updated.
562 2002-04-11 Gaius Mulley <gaius@glam.ac.uk>
564 * src/preproc/html/pre-html.cc (write_start_image): Remove
566 * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
568 * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
569 \C'hy' caused an assertion failure.
571 * src/roff/troff/env.cc (environment::environment): Initialize
573 (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
575 2002-04-10 Werner LEMBERG <wl@gnu.org>
577 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
578 Document pvs request and .pvs register.
580 2002-04-09 Werner LEMBERG <wl@gnu.org>
582 * doc/groff.texinfo: Improve and fix documentation of diversions
585 2002-04-08 Werner LEMBERG <wl@gnu.org>
587 * doc/groff.texinfo: Fix documentation of drawing functions.
590 2002-04-07 Werner LEMBERG <wl@gnu.org>
592 * doc/groff.texinfo: Better documentation of double quotes as
596 2002-04-06 Werner LEMBERG <wl@gnu.org>
598 * man/groff_font.man: Document names of special characters better.
599 * doc/groff.texinfo: Minor improvements.
601 * tmac/lbp.tmac: Load latin1.tmac.
602 * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
604 * font/devX*/*: Regenerated (all chars > 0x80 removed).
606 2002-04-05 Werner LEMBERG <wl@gnu.org>
608 * tmac/tty.tmac: Don't use shc request.
609 * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
612 * man/groff_diff.man: Minor fixes.
614 * font/devlbp/*: Remove all `charXXX' entities.
616 * src/libs/libgroff/font.cc (font::~font): Deallocate
617 `special_device_coding'.
618 (font::load): Use `new' for allocating `special_device_coding'.
619 * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
620 Removed unused member.
622 2002-04-05 Werner LEMBERG <wl@gnu.org>
624 * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
625 (resource_manager::do_begin_binary,
626 resource_manager::do_begin_data): Use it.
628 * doc/texinfo.tex: Updated to version 4.2.
630 * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
631 (token::zero_width_break): New inline function.
632 * src/roff/troff/input.cc (token::next): Use it.
633 (token::description): Updated.
634 (encode_char): Ignore `\%', `\&', `\)', and `\:'.
635 (token::add_to_node_list, token::process): Use it.
636 * NEWS, doc/groff.texinfo: Updated.
638 * src/preproc/eqn/over.cc (over_box::output): Fix typo.
639 * tmac/tty.tmac: Add missing backslash.
641 2002-04-04 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
643 * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
644 `.ps' register instead of `.s' to handle fractional point sizes.
645 * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
646 limit_box::output): Ditto.
647 * src/preproc/eqn/other.cc (size_box::compute_metrics,
648 size_box::output): Ditto.
649 * src/preproc/eqn/over.cc (over_box::compute_metrics,
650 over_box::output): Ditto.
651 * src/preproc/eqn/script.cc (script_box::compute_metrics,
652 script_box::output): Ditto.
653 * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
654 sqrt_box::output): Ditto.
656 2002-04-03 Michael Selway <mas@ssl.co.uk>
658 * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
661 2002-04-03 Werner LEMBERG <wl@gnu.org>
663 * doc/homepage.ms: Reduce title size.
664 * doc/groff.texinfo: Fix documentation of .t register.
665 Fix handling of colon.
668 * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
669 only if page length is positive to avoid a loop.
671 * tmac/an-old.tmac (ne): Increase page length to avoid problems with
674 2002-04-02 P. Alejandro Lopez-Valencia <dradul@yahoo.com>
676 * src/include/nonposix.h, src/roff/groff/pipeline.c:
677 s/__CYGWIN32__/__CYGWIN__/.
679 2002-03-28 Gaius Mulley <gaius@glam.ac.uk>
681 * doc/gnu.xpm: New image contributed by Emily Mulley.
682 * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
683 (homepage.html): Be dependent on gnu.eps.
684 * doc/homepage.ms: Updated to new image.
686 * src/devices/grohtml/post-html.cc (html_printer): New member
688 (html_printer::flush_sbuf, html_printer::set_char): Set it.
689 (html_printer::sbuf_continuation): Use it.
691 2002-03-28 Werner LEMBERG <wl@gnu.org>
693 * src/libs/libgroff/getopt.c: Updated to latest version.
695 * tmac/README: More on hyphen.tex license.
697 2002-03-26 Larry Kollar <kollar@alltel.net>
699 * doc/groff.texinfo: Add documentation of most missing requests.
701 2002-03-25 Werner LEMBERG <wl@gnu.org>
703 Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
704 of `+-', `mu', and `di', respectively.
706 * font/devascii/R.proto, font/devutf8/R.proto,
707 font/devlatin1/R.proto, font/devhtml/R.proto,
708 font/devcp1047/R.proto, font/devlpb/*: Add them.
709 * font/devps/generate/textmap: Ditto.
710 * font/devps/*: Regenerated.
711 * font/devlj4/generate/text.map: Add them.
712 * font/devlj4/*: Regenerated.
713 * font/devdvi/generate/tc.map: Use them.
714 * font/devdvi/generate/texsy.map: Add them.
715 * font/devdvi/*: Regenerated.
716 * font/devX*/*: Regenerated.
718 * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
719 tmac/tty-char.tmac: Updated.
721 * NEWS, man/groff_char.man: Updated.
723 2002-03-24 Werner LEMBERG <wl@gnu.org>
725 * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
726 tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
727 * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
728 we use `.fchar' in dvi.tmac.
729 * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
730 * tmac/Xps.tmac: Simplify some char definitions.
731 Add definition for \[f/].
732 * man/groff_char.man: Updated for new X.tmac.
734 * tmac/README: New file.
736 2002-03-23 Phil Lobbes <phil@perkpartners.com>
738 * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
739 internal .y.o rule took precendence over the .y.cc rule, compiling
740 the yacc files with gcc instead of g++.
742 2002-03-23 Werner LEMBERG <wl@gnu.org>
744 * tmac/dvi.tmac: Add replacement font for `CB'.
746 * tmac/doc.tmac: s/request/macro/ in messages.
747 (doc-generic-macro): Improve error message.
748 * tmac/groff_mdoc.man: Minor improvements.
750 2002-03-22 Werner LEMBERG <wl@gnu.org>
752 * doc/groff.texinfo: Document possible conflict between `tr' and
755 2002-03-21 Werner LEMBERG <wl@gnu.org>
757 Improve handling of hyphenation patterns. It is now possible to
758 use most of TeX's pattern files unmodified. To make the process
759 more flexible, a new request `hpfcode' has been added which
760 provides a character code mapping for the `hpf' request. See
761 comment before hpf_getc() for more details.
763 * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
765 (read_patterns_file): Additional parameter for exception dictionary.
766 Extended to recognize \pattern, \hyphenation, and \endinput.
767 (do_hyphenation_patterns_file): Updated.
768 * src/roff/troff/env.h (hpf_code_table): New extern.
770 * src/roff/troff/input.cc (hpf_code_table): New array.
771 (init_hpf_code_table, hyphenation_patterns_file_code): New
773 (hyphenation_code): Handle translation from `trin' correctly.
774 (main, init_input_requests): Updated.
775 (charinfo::set_translation): Handle hyphenation code also.
777 * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
780 * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
781 char' is used for offsets in hyphenation exceptions.
783 * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
785 * NEWS, man/groff_diff.man, man/groff.man: Document it.
787 2002-03-20 Larry Kollar <kollar@alltel.net>
789 * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
792 2002-03-18 Werner LEMBERG <wl@gnu.org>
794 * tmac/html.tmac: Fix serious typo.
796 2002-03-17 Larry Kollar <kollar@alltel.net>
798 * doc/groff.texinfo: Add documentation for `writec' request.
800 2002-03-17 Werner LEMBERG <wl@gnu.org>
802 Added request `hpfa' to append hyphenation patterns.
804 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
806 (hyphenation_patterns_file): Renamed to...
807 (do_hyphenation_patterns_file): This.
808 (hyphenation_patterns_file, hyphenation_patterns_file_append): New
810 (init_hyphen_requests): Updated.
811 * NEWS, man/groff.man, man/groff_diff.man: Document it.
813 2002-03-16 Werner LEMBERG <wl@gnu.org>
815 Added request `writec' in analogy to `tmc'.
817 * src/roff/troff/input.cc (write_request): Renamed to...
818 (do_write_request): This.
820 (write_request, write_request_continue): New functions.
821 (init_input_requests): Updated.
822 * NEWS, man/groff.man, man/groff_diff.man: Document it.
824 * font/devdvi/DESC.in (sizes): Allow all sizes in the range
828 2002-03-15 Werner LEMBERG <wl@gnu.org>
830 * man/groff.man: Add writem request.
832 Add request `trin' (translate input) to make `.asciify' work
833 correctly. This is necessary since `charXXX' entity names are no
834 longer hardcoded in font definition files.
836 * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
837 `translate_input' members.
838 (charinfo::set_asciify_code, charinfo::get_asciify_code,
839 charinfo::set_translation_input): New methods.
840 (charinfo::set_translation): Add third argument.
841 * src/roff/troff/input.cc (charinfo:set_translation): Set
843 (do_translate): Add second argument.
844 (translate_input): New function.
845 (init_input_requests): Updated.
846 * src/roff/troff/node.cc (glyph_node::asciify,
847 composite_node::asciify): Use `get_asciify_code'.
849 * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
851 * NEWS, man/groff.man, man/groff_diff.man: Updated.
853 2002-03-14 Larry Kollar <kollar@alltel.net>
855 * doc/groff.texinfo: Improve documentation of .RS and .RE.
857 2002-03-14 Werner LEMBERG <wl@gnu.org>
859 Add a new request `sizes' similar to the `sizes' command in DESC
862 * src/roff/troff/env.cc (override_sizes): New function.
863 (init_env_requests): Use it.
864 * src/roff/troff/token.h: Export `read_string'.
865 * NEWS, man/groff_diff.man, man/groff.man: Document it.
867 2002-03-12 Werner LEMBERG <wl@gnu.org>
869 * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
871 2002-03-10 Werner LEMBERG <wl@gnu.org>
873 * tmac/pspic.tmac: Add support for -Tdvi.
874 * tmac/dvi.tmac: Include pspic.tmac.
875 * src/devices/grodvi/grodvi.man: Document it.
878 * font/devlj4/generate/Makefile: Fix URL of metric files.
880 2002-03-09 Werner LEMBERG <wl@gnu.org>
882 * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
884 2002-03-09 Larry Kollar <kollar@alltel.net>
886 * tmac/groff_ms.man: Add documentation for RS and RE macros.
888 2002-03-08 Werner LEMBERG <wl@gnu.org>
890 * doc/groff.texinfo: Fixes for texinfo 4.1.
892 2002-03-07 Werner LEMBERG <wl@gnu.org>
894 * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
896 Handle CYGWIN properly.
898 2002-03-07 Paco Andrés Verdú <pandres@dragonet.es>
900 * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
901 * tmac/lbp.tmac: Add some font translations.
903 2002-03-02 Werner LEMBERG <wl@gnu.org>
905 * font/devcp1047/R.proto, font/devlatin1/R.proto,
906 font/devhtml/R.proto: Remove `charXXX' entries.
907 * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
910 * font/devlj4/generate/text.map: Remove `charXXX' entries.
911 * font/devlj4/*: Regenerated all font definition files.
912 * tmac/lj4.tmac: Load latin1.tmac.
914 * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
915 from 2000-06-17: LJ4 metric files are *not* text files.
917 * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
918 register to test for EBCDIC.
920 2002-03-01 Werner LEMBERG <wl@gnu.org>
922 * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
923 files (as grops already does).
924 * src/utils/afmtodit/afmtodit.man: Document comment lines in map
926 * src/devices/grops/grops.man: Document comment lines in encoding
929 * tmac/cp1047.tmac: New file.
930 * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
931 * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
932 * tmac/Makefile.sub (NORMALFILES): Updated.
934 * tmac/ec.tmac: Don't load latin1.tmac again.
936 * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
937 font/devps/generate/dingbats.map,
938 font/devps/generate/dingbats.rmap, font/devps/text.enc,
939 font/devps/generate/Makefile (symbolmap): Add header comment.
940 * font/devps/generate/textmap: Ditto.
941 Remove `charXXX' entries.
942 * font/devps/symbolmap: Regenerated.
943 * font/devps/*: Regenerated all font definition files.
945 2002-02-28 Werner LEMBERG <wl@gnu.org>
947 Add color support to grodvi (for drawing colors are currently
948 translated to gray values).
950 * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
951 (dvi_printer): Add `cur_color' member.
952 (dvi_printer::set_color): New function.
953 (draw_dvi_printer): Remove `fill'.
954 (draw_dvi_printer::fill_next): Pass environment as parameter.
955 Update code for new color support translated to gray.
956 (dvi_printer::set_char): Updated.
957 (dvi_printer::begin_page, dvi_printer::end_page): Handle color
958 changes crossing the page border.
959 (dvi_printer::draw): Updated.
960 Remove cases `f' and `F'.
961 * tmac/dvi.tmac: Add color definitions.
962 * NEWS, src/devices/grodvi/grodvi.man: Updated.
964 * tmac/an-old.tmac (R): Make this a macro to emit a warning if
967 * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
968 versions of autoconf.
969 * configure: Updated.
971 * doc/homepage.ms: Use `.blm'.
972 * tmac/www.tmac (www-depth): New auxiliary variable.
973 (www-pop-level): Don't issue HTML tag.
974 (ULS, ULE, LI): Use absolute indentation.
976 * src/devices/grops/ps.cc (ps_printer::begin_page,
977 ps_printer::end_page): Switch forth and back to default color while
980 2002-02-27 Werner LEMBERG <wl@gnu.org>
982 Add EC and TC fonts to devdvi.
984 * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
985 * font/devdvi/generate/cork.map: Renamed to...
986 * font/devdvi/generate/ec.map: This.
987 Remove entry for `aq'.
988 * font/devdvi/generate/tc.map: New file.
989 * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
992 * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
993 * font/devdvi/Makefile.sub (DEVFILES): Updated.
994 * tmac/ec.tmac: New file.
995 * tmac/Makefile.sub (NORMALFILES): Updated.
996 * NEWS, src/devices/grodvi/grodvi.man: Updated.
997 * man/groff_char.man: Check `ECFONTS' register.
999 * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
1001 2002-02-26 Werner LEMBERG <wl@gnu.org>
1003 * font/devdvi/generate/*.map: Remove all `charXXX' entries.
1004 * font/devdvi/generate/cork.map: Add 'y and 'Y.
1005 * font/devdvi/*: Updated.
1006 * tmac/dvi.tmac: Formatting.
1008 Add font `HBI' for the dvi output.
1009 Add support for font families `T' and `H'.
1011 * font/devdvi/HBI: New file.
1012 * font/devdvi/B: Renamed to ...
1013 * font/devdvi/TB: This.
1014 * font/devdvi/BI: Renamed to ...
1015 * font/devdvi/TBI: This.
1016 * font/devdvi/I: Renamed to ...
1017 * font/devdvi/TI: This.
1018 * font/devdvi/R: Renamed to ...
1019 * font/devdvi/TR: This.
1020 * font/devdvi/H: Renamed to ...
1021 * font/devdvi/HR: This.
1022 * font/devdvi/Makefile.sub (DEVFILES): Updated.
1023 * font/devdvi/generate/Makefile (HBI): New rule.
1025 (R, I, B, BI, H): Renamed to ...
1026 (TR, TI, TB, TBI, HR): This, respectively.
1028 * NEWS, src/devices/grodvi/grodvi.man: Updated.
1029 * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
1030 Add `styles' and `family' keywords.
1031 * tmac/dvi.tmac: Alias `H' to `HR'.
1032 Add some fspecial requests for italic fonts.
1033 Add TR and TI as special.
1034 Add support for `_' with font CWI.
1036 * src/roff/troff/number.cc (parse_expr): Add missing `break' for
1037 operator `:'. Until now, the expression `0:1' would return 2
1040 2002-02-25 Werner LEMBERG <wl@gnu.org>
1042 * man/groff_char.man: Added some missing PS glyph names (from the
1044 * font/devps/generate/textmap, font/devps/symbolmap: Add
1047 * doc/groff.texinfo: Minor additions and fixes.
1048 * man/groff_diff.man: Remove documentation of fp request. This
1049 is already covered in the original troff manual.
1050 Updated to be consistent with other doc files.
1053 2002-02-24 Werner LEMBERG <wl@gnu.org>
1055 * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
1057 Define new variable OTHERDEVDIRS (containing `font/devlj4
1058 font/devlbp' if not EBCDIC).
1059 * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
1060 (OTHERDEVDIRS): New variable.
1061 (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
1062 * configure: Regenerated.
1064 * NEWS, src/devices/grotty/grotty.man: Updated.
1066 2002-02-23 Werner LEMBERG <wl@gnu.org>
1068 * src/roff/troff/input.cc (do_overstrike, do_bracket,
1069 get_line_arg): Honour input level.
1071 Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
1073 * font/*/*: Implement it in all font files.
1074 * font/devps/generate/textmap, font/devps/generate/symbolchars,
1075 * font/devps/symbolmap: Updated.
1076 * font/devlj4/generate/text.map: Updated.
1077 * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
1078 * font/devdvi/generate/texmi.map: Updated.
1080 * font/devutf8/R.proto: Remove all `charXXX' entries.
1081 * font/devutf8/NOTES: Updated.
1083 * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
1086 * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
1088 * NEWS, man/groff_char.man: Updated.
1090 2002-02-21 Phil Lobbes <phil@perkpartners.com>
1092 * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
1094 2002-02-20 Ralph Corderoy <ralph@inputplus.demon.co.uk>
1096 * src/roff/grog/grog.pl: Fix computation of $refer.
1098 2002-02-19 Werner LEMBERG <wl@gnu.org>
1100 * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
1101 `snprintf' and `vsnprintf'.
1103 * src/include/htmlindicate.h: Renamed to...
1104 * src/include/htmlhint.h: This.
1105 * src/include/Makefile.sub: Updated.
1106 * src/preproc/eqn/main.cc: Updated.
1108 2002-02-18 Werner LEMBERG <wl@gnu.org>
1110 * man/roff.man, man/groff_out.man, man/groff.man,
1111 man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
1112 src/roff/troff/troff.man: Updated to latest changes in www.tmac.
1114 * win32-diffs: Updated.
1116 2002-02-17 Werner LEMBERG <wl@gnu.org>
1118 * doc/Makefile (clean): Add *.eps.
1119 (MEMACROS): Removed.
1120 (TFLAG): New variable.
1123 (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
1125 (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
1127 * tmac/www.tmac: Use dummy diversion while resetting and disabling
1129 * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
1131 * src/roff/troff/troff.man: Fix order of parameter description.
1135 2002-02-16 Gaius Mulley <gaius@glam.ac.uk>
1137 Simplify image handling for grohtml.
1140 * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
1142 (html_text::dump_stack): Don't emit newline while debugging.
1143 (html_text::do_push) [DEBUGGING]: Print more info.
1144 (html_text::check_emit_text): Fix handling of <p>.
1145 * src/devices/grohtml/html.h: Updated.
1146 * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
1147 replacing `fputc', `fputs', `putc'. If DEBUGGING is defined, they
1148 send its data to stderr also.
1150 (simple_output::space_or_newline) [DEBUGGING]: Removed.
1151 * src/devices/grohtml/post-html.cc (html_printer::do_links,
1152 html_printer::html_printer): Remove `DEBUGGING' conditionals.
1154 * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
1156 * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
1157 is_inline_image): Removed.
1158 (html_begin_suppress, html_end_suppress): Don't take a parameter.
1159 (graphic_start, graphic_end): Removed.
1160 * src/include/htmlindicate.h: Updated.
1161 * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
1162 (macroset_template): New global variable.
1163 (makeFileName): Use `macroset_template'.
1164 (write_end_image): Don't take a parameter.
1166 (write_start_image: Don't emit newline.
1167 (char_buffer::write_upto_newline): Updated.
1168 (char_buffer::skip_to_newline): Renamed to ...
1169 (char_buffer::skip_until_newline): This.
1171 (char_buffer::write_file_troff, char_buffer::write_file_html):
1173 (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
1174 (removeAllPages): Remove `DEBUGGING' conditionals.
1175 (addRegDef, dump_args): New functions.
1176 (char_buffer::do_html, char_buffer::do_image): Handle
1177 `www-image-template' command line variable.
1178 Add more debugging code.
1179 (addps4html): Removed.
1180 (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
1182 * src/preproc/eqn/main.cc: Include `ctype.h'.
1183 (suppress_html): Removed.
1185 (inline_equation): Use `html_begin_suppress' and
1186 `html_end_suppress'.
1187 * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
1188 (troff_output::start_picture, troff_output::finish_picture):
1190 * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
1191 (process_input_file): Updated.
1193 * src/roff/troff/div.cc (page_number): Set page number only if the
1194 `ps4html' register isn't defined.
1195 * src/roff/troff/input.cc (image_no): New external variable.
1196 (do_suppress): Use it.
1197 * src/roff/troff/node.h (suppress_node::image_id): New member.
1198 * src/roff/troff/node.cc (image_no): Remove `static' keyword.
1199 (suppress_node::suppress_node): Initialize `image_id' member.
1200 (suppress_node::same): Handle `image_id' also.
1201 (suppress_node::copy): Updated.
1202 (last_image_id): New global variable.
1203 (suppress_node::tprint): Use it.
1205 * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
1207 * tmac/pspic.mac (PSPIC): Fix html support.
1208 * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
1209 * tmac/www.tmac (www-image-template): Set up.
1210 (HTMLINDEX): Renamed to...
1212 (BODYCOLOR): Renamed to...
1214 (BACKGROUND): Renamed to...
1216 (URL): Change order of parameters for consistency.
1217 (MAILTO): Renamed to...
1219 (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
1220 (IMG, PIMG, MPIMG): This.
1221 (HTML-H-BEGIN, HTML-H-END): Renamed to...
1223 (LINKS): Renamed to...
1225 (LINE): Renamed to...
1227 (NO-AUTO-RULE): Renamed to...
1229 (HTML-TL): Renamed to...
1231 (UL-BEGIN, UL-END): Renamed to...
1233 (DROPCAP): Renamed to...
1235 (TS, TE, EQ, EN): Provide default definitions.
1236 (www-make-unique-name): Updated.
1237 (HTML-IMAGE-INLINE): Fix typo.
1238 * tmac/groff_www.man: Updated.
1240 * doc/Makefile (homepage.html): Add option -r to grohtml.
1241 Use shortened image name.
1242 * doc/groff.texinfo: Updated info on grohtml strings and macros.
1243 * doc/homepage.ms: Updated and extended.
1245 2002-02-14 Werner LEMBERG <wl@gnu.org>
1247 Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
1249 * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
1250 SGR_BACK_DEFAULT_COLOR): Replaced with ...
1251 (tty_printer::put_color): Use it.
1252 (ttr_printer::end_page): Simplify.
1254 2002-02-13 Werner LEMBERG <wl@gnu.org>
1256 * tmac/groff_tmac.man: Moved to...
1257 * man/groff_tmac.man: This place.
1258 * tmac/Makefile.sub, man/Makefile.sub: Updated.
1260 2002-02-12 Werner LEMBERG <wl@gnu.org>
1262 * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
1263 $(COMPILE.c) to not include groff's assert.h.
1265 * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
1267 * NEWS, src/drivers/grotty/grotty.man: Document it.
1269 2002-02-11 Werner LEMBERG <wl@gnu.org>
1271 * src/libs/snprintf/snprintf.c: Updated to latest version
1274 * src/roff/grog/grog.pl (process): Fix handling of `.['. We now
1275 test whether there is `.]' also.
1276 Don't check for spaces after `.['.
1277 * src/roff/grog/grog.sh: Do the same.
1279 2002-02-10 Werner LEMBERG <wl@gnu.org>
1283 * src/libs/libgroff/illegal.cc: Renamed to ...
1284 * src/libs/libgroff/invalid.cc: This.
1285 (illegal_char_table): Renamed to ...
1286 (invalid_char_table): This.
1287 * src/libs/libgroff/Makefile.sub: Updated.
1288 * win32-diffs: Updated.
1290 * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
1291 src/libs/libdriver/input.cc (fatal_command, parse_color_command,
1292 parse_x_command), src/libs/libgroff/font.cc (text_file::next,
1293 font::load), src/preproc/eqn/main.cc (read_line, main),
1294 src/preproc/eqn/lex.cc (file_input::read_line),
1295 src/preproc/pic/lex.cc (file_input::read_line,
1296 simple_file_input::get, simple_file_input::peek),
1297 src/preproc/pic/main.cc (top_input::get, top_input::peek),
1298 src/preproc/pic/pic.man, src/preproc/refer/main.cc
1299 (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
1300 do_bib), src/preproc/tbl/main.cc (table_input::get),
1301 src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
1302 src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
1303 do_zero_width, read_request, encode_char, ps_get_line,
1304 transparent_file, get_char_for_escape_name, transparent_translate,
1305 asciify, input_char_description, read_string, set_string),
1306 src/roff/troff/env.cc (environment::add_html_tag),
1307 src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
1309 * src/include/lib.h: Updated.
1311 * src/preproc/eqn/eqn.cc: Removed.
1315 * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
1317 2002-02-09 Werner LEMBERG <wl@gnu.org>
1319 * doc/gnu.xpm: New image.
1320 * doc/Makefile (DOCS): Add homepage.ps.
1321 Add rules for converting xpm->png and xpm->eps.
1322 Use `gnu.{xpm,eps}' as image names.
1323 * doc/homepage.ms: Updated.
1325 2002-02-09 Gaius Mulley <gaius@glam.ac.uk>
1327 * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
1328 (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
1329 Remove calls to `B1' and `B2'
1330 (PNG-IMAGE): New macro for inclusion of images in PNG format.
1331 (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
1332 auxiliary variables for MARGIN-PNG-IMAGE.
1333 (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
1334 auxiliary macros for MARGIN-PNG-IMAGE.
1335 (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
1337 (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
1338 (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
1339 (DROPCAP): New macro to produce dropcap characters.
1340 (www-do-image): Renamed back to...
1341 (HTML-DO-IMAGE): This.
1342 Updated all callers.
1344 * doc/Makefile (gnubw.eps): Updated.
1345 * doc/homepage.ms: Updated.
1347 2002-02-08 Werner LEMBERG <wl@gnu.org>
1349 * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
1350 Added `linethick' to table in section `Style Variables'.
1352 2002-02-08 Gaius Mulley <gaius@glam.ac.uk>
1354 * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
1356 2002-02-07 Werner LEMBERG <wl@gnu.org>
1358 Adding options -C (compatibility mode) and -c (grotty's old output
1361 * src/roff/nroff/nroff.sh: Implement it.
1363 * NEWS, src/roff/nroff/nroff.man: Updated.
1365 * PROBLEMS: Document bison 1.32 bug.
1367 Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
1369 * src/roff/troff/node.cc (make_tfont): Define it earlier.
1370 * src/roff/troff/div.h: Add prototype for `end_diversions'.
1371 * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
1372 * src/roff/troff/env.h: Add prototype for `title'.
1374 Adding EBCDIC support to grotty.
1376 * src/devices/grotty/tty.cc (CSI): New macro.
1377 (SGR_*, tty_printer::put_color): Use it.
1379 2002-02-06 Werner LEMBERG <wl@gnu.org>
1381 Implementing color support in grotty. The new switch -c activates
1382 the old drawing scheme, disabling color at the same time. The new
1383 switch `-i' selects italic instead of underlining (SGR only).
1385 * src/devices/grotty/tty.cc (putstring): New define instead of
1386 `fputs'. Updated all callers.
1387 (old_drawing_scheme): New global variable.
1388 (COLOR_CHANGE): New enum value.
1389 (SGR_*): New defines containing color handling escape sequences.
1390 (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
1391 (glyph): New members `back_color_idx' and `fore_color_idx'.
1392 (glyph::order): Add COLOR_CHANGE.
1393 (tty_printer): New members `cur_fore_idx', `curr_back_idx',
1394 `is_underline', `is_bold', `cu_flag', `tty_colors'.
1395 New methods `make_underline', `make_bold', `color_to_idx',
1396 `change_color', `put_color'.
1397 (cu_flag): Moved into `tty_printer' class.
1398 (tty_printer::tty_printer): Initialize colors.
1399 (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
1400 tty_printer::draw, tty_printer::end_page): Handle colors also.
1401 (main): Add options `-c' and `-i'.
1403 * NEWS, src/devices/grotty/grotty.man: Updated.
1405 * src/include/errarg.h (errarg): Add support for `unsigned int'.
1406 * src/libs/libgroff/errarg.c: Implement it.
1408 * src/include/printer.h (printer): Add `change_color' method
1409 (currently used by grotty only).
1410 * src/libs/libdriver/printer.cc: Implement it.
1411 * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
1412 call to `pr->change_color'.
1414 * src/roff/troff/node.cc (troff_output_file::fill_color,
1415 troff_output_file::glyph_color): Call `do_motion'.
1417 * tmac/tty.tmac: Add color definitions.
1419 * src/roff/groff/groff.man: Minor fixes.
1421 2002-02-05 Bernd Warken <bwarken@mayn.de>
1423 * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
1424 it. This is a preparation for future changes.
1426 2002-02-05 Werner LEMBERG <wl@gnu.org>
1428 * src/roff/troff/input.cc (process_input_stack): Fix the case
1429 where leading spaces are followed by \f or \s; previously, an
1430 incorrect space width has been used.
1432 * doc/roff.man (quoted_char): Fix argument.
1433 (comment): Define string.
1435 2002-02-04 Larry Kollar <kollar@alltel.net>
1437 * doc/groff.texinfo: More fixes.
1439 2002-02-04 Werner LEMBERG <wl@gnu.org>
1441 * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
1442 * src/preproc/eqn/main.cc (do_file, inline_equation): Call
1443 `restore_compatibility' before `output_string' -- the LINE_STRING
1444 register now already contains proper switches from and to
1447 * man/groff_char.man: Add Euro symbol.
1448 * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
1449 * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
1450 * doc/groff.texinfo (Defstr*): Print strings with full syntax.
1453 * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
1455 (.texinfo.html): Add support for texinfo->html.
1457 2002-02-03 Werner LEMBERG <wl@gnu.org>
1459 Added three new requests `ds1', `as1', and `ami'. The former two
1460 are equivalent to `ds' and `as' with the difference that
1461 compatibility mode is saved on entry, switched off during string
1462 expansion, and restored on exit. The latter is the pendant to `dei'
1465 (do_define_string): Use `define_mode' and `calling mode'.
1466 Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
1467 end of string, respectively.
1468 (define_string, append_string): Use `calling_mode'.
1469 (define_nocomp_string, append_nocomp_string,
1470 define_string_indirect): New functions.
1471 (init_input_requests): Updated.
1472 * NEWS, man/groff_diff.man, man/groff.man: Document it.
1474 * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
1475 `as1' for assigning LINE_STRING (this is `10' usually). Sun's
1476 mm macro package accesses this string register directly.
1477 * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
1479 * tmac/trace.tmac: Trace calls to `am' also. Make it work in
1482 2002-02-02 Larry Kollar <kollar@alltel.net>
1484 * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
1486 2002-01-31 Werner LEMBERG <wl@gnu.org>
1488 * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
1490 2002-01-31 Bernd Warken <bwarken@mayn.de>
1492 * src/devices/grolbp/lbp.cc (main): Delete `pr'.
1493 * man/groff_out.man: Revised and updated.
1495 2002-01-30 Bernd Warken <bwarken@mayn.de>
1497 * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
1498 out the unused `{' and `}' commands. Undefined by default.
1499 (IntArray): Make `data' private.
1500 (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
1501 new methods instead.
1502 (skip_line_D, skip_to_end_of_line): New functions.
1503 (get_D_fixed_args): Use `skip_line_D'.
1504 Changed to handle dummy odd arguments by ...
1505 (get_D_fixed_args_odd_dummy): This new function.
1506 (get_D_variable_args): Split some code into ...
1507 (get_possibly_integer_args): This new function.
1508 (send_draw): Use more `const'.
1509 (delete_current_env): New function.
1510 (position_to_end_of_args): Use `size_t'.
1512 (send_draw): Updated.
1513 (parse_D_command): Handle `c', `C', and `t' better.
1517 2002-01-29 Werner LEMBERG <wl@gnu.org>
1520 * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
1521 @Def...ListEnd which replaces @Def...x. This is necessary to get
1522 proper HTML output -- see the comment in the file for more
1526 2002-01-29 Gaius Mulley <gaius@glam.ac.uk>
1528 Fixes to make color changes of 2002-01-21 work with grohtml.
1530 * src/devices/grohtml/post-html.cc (style): Updated.
1531 (html_printer): Remove unused methods.
1532 (html_printer::do_font, html_printer::draw, html_printer::set_char,
1533 html_printer::special): Updated.
1534 * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
1535 html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
1536 Added some debugging code.
1537 (html_text::start_tag): Updated.
1538 (html_text::do_push): New method.
1539 (html_text::push_para): Call it.
1540 Add method for handling color.
1541 (html_text::do_color): Updated.
1542 (html_text::shutdown): Handle color.
1543 * src/devices/grohtml/html-text.h (tag_definition): New member
1547 2002-01-28 Werner LEMBERG <wl@gnu.org>
1549 * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
1551 2002-01-27 Gaius Mulley <gaius@glam.ac.uk>
1553 Add two switches -a and -g to control the antialiasing bits for
1554 text and graphics, respectively.
1556 * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
1558 * src/devices/grohtml/grohtml.man: Document them.
1559 * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
1561 (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
1562 (setupAntiAlias): New function.
1563 (createAllPages): Updated.
1564 (scanArguments): Handle `-a' and `-g'.
1565 (main): Call `setupAntiAlias'.
1568 2002-01-27 Werner LEMBERG <wl@gnu.org>
1570 * doc/groff.texinfo (Def*): Call index function after deffn.
1572 * tmac/html.tmac: Call `nroff' request.
1574 2002-01-26 Larry Kollar <kollar@alltel.net>
1576 * tmac/groff_ms.man: Add some omissions.
1578 2002-01-25 Larry Kollar <kollar@alltel.net>
1580 * tmac/groff_ms.man: Typographical improvements.
1582 2002-01-25 Werner LEMBERG <wl@gnu.org>
1584 * doc/groff.texinfo: Updated version and copyright.
1585 * src/devices/grops/grops.man: Updated.
1587 * tmac/groff_tmac.man: Fix `ig' macro.
1589 * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
1591 Use `.ne' unconditionally everywhere.
1592 (TS): Only insert some vertical space. Doing a page break is no
1593 longer necessary due to the redefinition of the `ne' request.
1595 * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
1596 warning for unknown subcommands but parse and pass them to the
1599 2002-01-24 Werner LEMBERG <wl@gnu.org>
1601 * tmac/groff_www.man, NEWS: Fix typos.
1603 2002-01-21 Werner LEMBERG <wl@gnu.org>
1605 Complete revision of color support:
1607 Adapt programs to the new libdriver/input.cc.
1609 Color spaces are no longer converted to RGB but transferred as-is
1610 in the troff intermediate output format.
1612 Handle default color gracefully. troff now supports a `default'
1613 color (which can't be changed).
1615 grops will now use the proper color space functions if available.
1619 Note that currently grohtml doesn't handle colors properly. This
1622 * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
1623 (ui_to_a): New function.
1624 * src/include/lib.h: Updated.
1626 * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
1627 (color): Simplified; removed all `double' members and methods.
1628 A new array `components' now holds the color parameters.
1629 (color::is_default, color::get_components): New methods.
1630 (color::operator==, color:operator!=): New.
1631 (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
1632 to make access to the `components' array more comprehensible.
1633 * src/libs/libgroff/color.cc: Implement new color support.
1634 (atoh): Small fixes.
1635 (color::read_encoding): Simplified for new troff intermediate color
1637 (default_color): New global variable.
1639 * src/roff/troff/input.cc (default_symbol): New global variable.
1640 (lookup_color): Use it.
1641 (default_black): Removed.
1642 (do_glyph_color, do_fill_color): Simplified.
1643 (define_color): Handle default color.
1645 (do_if_request): Handle default color.
1646 * src/roff/troff/env.cc (environment::environment): Initialize
1647 colors with `default_color'.
1648 * src/roff/troff/node.cc (troff_output_file::put): Add method
1650 (troff_output_file::hex): Removed.
1651 (troff_output_file::fill_color, troff_output_file::glyph_color):
1652 Updated to include/color.h and libdriver/input.cc.
1654 * src/preproc/pic/object.cc (draw_arrow): New parameter to set
1655 fill color properly (identically to the outline color). \D'f...'
1656 doesn't work any more.
1657 All function calls to it updated.
1659 * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
1661 * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
1664 * src/devices/grops/ps.cc (ps_output::put_color): New method.
1665 (ps_printer::sbuf_color): Make a real member instead of pointer.
1666 (ps_printer::fill_color, ps_printer::output_color): Removed.
1667 (ps_printer::ps_printer): Updated.
1668 (ps_printer::set_char): Ditto.
1669 (ps_printer::set_color): Use various color schemes.
1670 Use `put_color' method.
1671 (ps_printer::flush_sbuf): Don't set color.
1672 (ps_printer::fill_path): Take `environment' as parameter.
1673 Simplify color handling.
1674 (ps_printer::set_line_thickness): Renamed to ...
1675 (ps_printer::set_line_thickness_and_color): This (and updated).
1676 (ps_printer::set_color): Change second parameter from `complete'
1677 to `fill' which better describes what it does.
1678 (ps_printer::draw): Call `flush_sbuf' to output graphic commands
1679 and text in the right order.
1681 Remove branches for `f' and `F'; this is handled by
1683 * src/devices/grops/ps.h: Updated.
1684 * font/devps/prologue (FL): Redefined.
1685 ({F,C}r,k,g: New color functions (with and without filling).
1687 * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
1688 * man/groff_diff.man, man/groff.man, man/groff_out.man,
1689 doc/groff.texinfo, NEWS: Updated.
1691 2002-01-20 Bernd Warken <bwarken@mayn.de>
1693 * src/libs/libdriver/input.cc: Completely rewritten. See comments
1694 in this file for what has been changed.
1696 2002-01-19 Werner LEMBERG <wl@gnu.org>
1698 * test-groff: Fix GROFF_FONT_PATH.
1699 * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
1700 is read before .TH or .Dd is parsed.
1702 2002-01-18 Gaius Mulley <gaius@glam.ac.uk>
1704 * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
1705 quadrant boundaries.
1707 2002-01-18 Werner LEMBERG <wl@gnu.org>
1709 * devices/grops/ps.cc: Aargh! Fix the fix of the incorrectly
1712 2002-01-17 Ruslan Ermilov <ru@FreeBSD.org>
1714 * tmac/doc.common: Initialize %I register for the %I macro to
1715 avoid (harmless) warning.
1716 * tmac/doc.tmac (Bd): There is no reason to enforce -compact
1717 when in the SYNOPSIS section.
1719 2002-01-17 Bruno Haible <haible@clisp.cons.org>
1721 * src/preproc/pic/lex.cc (get_token): Fix typo.
1723 2002-01-17 Werner LEMBERG <wl@gnu.org>
1725 * devices/grops/ps.cc: Fix incorrectly applied last patch.
1727 2002-01-17 Larry Kollar <kollar@alltel.net>
1729 * tmac/groff_ms.man: Completely rewritten.
1731 2002-01-16 Werner LEMBERG <wl@gnu.org>
1733 * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
1735 2002-01-15 Gaius Mulley <gaius@glam.ac.uk>
1737 * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
1739 (ps_printer::draw): Ditto.
1741 2002-01-14 Ruslan Ermilov <ru@FreeBSD.org>
1743 * tmac/groff_mdoc.man: Minor fixes.
1745 2002-01-13 Werner LEMBERG <wl@gnu.org>
1747 * man/groff_out.man: Some fixes.
1749 2002-01-13 Gaius Mulley <gaius@glam.ac.uk>
1751 * doc/pic.ms: Fix typos.
1753 2002-01-12 Werner LEMBERG <wl@gnu.org>
1755 * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
1757 2002-01-10 Werner LEMBERG <wl@gnu.org>
1759 * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
1763 2002-01-09 Bernd Warken <bwarken@mayn.de>
1765 * man/groff_out.man: Revised.
1766 * man/roff.man: Minor fixes.
1767 * src/roff/troff/troff.man: Some reordering.
1769 2002-01-09 Werner LEMBERG <wl@gnu.org>
1771 * tmac/an-old.tmac: Add dummy macros for equation support.
1773 2002-01-07 Werner LEMBERG <wl@gnu.org>
1775 doc/groff.texinfo: Fix documentation of glyph searching algorithm.
1777 * tmac/an-old.tmac: Revert change 2001-12-23. This breaks too many
1779 * tmac/groff_man.man: Small improvements.
1781 2002-01-07 Bernd Warken <bwarken@mayn.de>
1783 * man/groff_diff.man: Revised.
1785 2002-01-06 Werner LEMBERG <wl@gnu.org>
1787 * tmac/www.tmac: Remove extraneous backslash.
1789 2002-01-06 Bernd Warken <bwarken@mayn.de>
1791 * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
1793 2002-01-05 Werner LEMBERG <wl@gnu.org>
1795 Integrated groffer, contributed by Bernd Warken.
1797 * contrib/groffer/*: New.
1798 * Makefile.in, NEWS: Updated.
1800 2002-01-04 Werner LEMBERG <wl@gnu.org>
1802 * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
1803 registers defined in macro packages.
1804 Revising the ms part.
1806 2002-01-04 Larry Kollar <kollar@alltel.net>
1808 * doc/groff.texinfo: Add documentation for ms macros.
1810 2002-01-02 Werner LEMBERG <wl@gnu.org>
1812 First step in adding PS support for the Euro symbol. `eu' is the
1813 official Euro logo, `Eu' is a font-specific glyph variant.
1815 * font/devps/text.enc: Add `Euro' at position 9.
1816 * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
1817 * font/devps/symbolmap: Regenerated.
1821 2002-01-02 Bernd Warken <bwarken@mayn.de>
1823 * man/roff.man: Revised.
1825 2002-01-01 Bernd Warken <bwarken@mayn.de>
1827 * src/roff/groff/groff.man: Completely rewritten.
1829 2001-12-31 Werner LEMBERG <wl@gnu.org>
1831 * doc/Makefile: Updated.
1833 2001-12-30 Werner LEMBERG <wl@gnu.org>
1835 * tmac/www.tmac: Make all names of internal macros/registers/strings
1836 lowercase, and prepend `www-'.
1837 Other minor changes.
1838 * src/roff/troff/troff.man: Add preprocessor string at BOF.
1840 2001-12-30 Gaius Mulley <gaius@glam.ac.uk>
1842 Implement option `-b' in grohtml to set the HTML background colour.
1844 * src/devices/grohtml/post-html.cc (default_background): New global
1846 (html_printer::html_printer): Initialize `background' to
1847 `default_background'.
1848 (main): Implement option `-b'.
1850 * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
1852 * src/devices/grohtml/grohtml.man: Updated.
1853 * doc/Makefile (.ms.html): Use `-b'.
1854 * tmac/html.tmac: Don't set background color.
1856 Add new grohtml tag `.html-tl'.
1858 * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
1860 (title_desc::title_desc): Updated.
1861 (html_printer::troff_tag): Handle `.html-tl'.
1862 (html_printer::write_title): Use `with_h1'.
1863 * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
1864 (HTML-TL): New macro.
1866 Add support for unordered lists in HTML.
1868 * tmac/www.tmac (www-level): New auxiliary register.
1869 (www-level1, www-level2, www-level3): New auxiliary strings.
1870 (www-push-level, www-pop-level): New auxiliary macros
1871 (UL-BEGIN, UL-END, LI): User macros for unordered lists.
1875 * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
1876 (DEFAULT_VERTICAL_OFFSET): Removed.
1877 (IMAGE_BOARDER_PIXELS): Set to 0.
1878 (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
1879 (vertical_offset): Initialize with 0.
1880 (gsPaper): New global variable.
1881 (get_resolution): Scan for and return unsigned int.
1882 (get_papersize): New function to get paper length from devps/DESC.
1883 (determine_vertical_offset): New function.
1884 (createAllPages): Produce gray-level images and use proper page
1886 (createImage): Use `-quiet' option of pnmcrop.
1887 (addZ): Fix passing of `-Z'.
1888 (scanArguments): Fix handling of `-o'.
1889 (main): Call `determine_vertical_offset'.
1890 * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
1893 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
1894 * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
1895 glyph descenders properly.
1897 * doc/homepage.ms: Include `gnubw.eps'.
1898 * doc/Makefile (gnubw.eps): New rule.
1899 (homepage.html): Depend on `gnubw.eps'.
1901 2001-12-25 Werner LEMBERG <wl@gnu.org>
1903 * src/roff/troff/input.cc (default_black): Fix return value.
1905 2001-12-24 Ruslan Ermilov <ru@FreeBSD.org>
1907 * tmac/doc-common (Dt): Change output of architecture strings.
1908 Do some syntax cleanup.
1909 * tmac/groff_mdoc.man: Updated.
1911 2001-12-23 Werner LEMBERG <wl@gnu.org>
1913 Adding an `itc' request (input line trap accepting \c).
1915 * src/roff/troff/env.h (environment): New member
1916 `continued_input_trap'.
1917 Make `do_input_trap' a friend function instead of `input_trap'.
1918 * src/roff/troff/env.cc (environment::environment,
1919 environment::copy): Updated.
1920 (environment::newline): Implement it.
1921 (do_input_trap): New function.
1922 (input_trap): Call `do_input_trap'.
1923 (input_trap_continued): New function.
1924 (init_env_requests): Updated.
1925 * src/roff/troff/TODO: Updated.
1927 * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
1930 * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
1932 2001-12-22 Ruslan Ermilov <ru@FreeBSD.org>
1934 * tmac/doc-common, tmac/doc-syms: Small updates.
1936 2001-12-22 Colin Watson <cjwatson@debian.org>
1938 * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
1940 2001-12-22 Bernd Warken <bwarken@mayn.de>
1942 * MANIFEST: New file.
1944 2001-12-22 Werner LEMBERG <wl@gnu.org>
1946 * src/preproc/grn/grn.man: Updated.
1948 2001-12-22 Solar Designer <solar@openwall.com>
1950 * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
1953 2001-12-19 Werner LEMBERG <wl@gnu.org>
1955 Implement a fallback character request `.fchar'.
1957 * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
1958 (is_fallback): New inline function.
1959 * src/roff/troff/input.cc (do_define_character): New function.
1960 (define_character): Call `do_define_character'.
1961 (define_fallback_character): New function.
1962 (init_input_requests): Add `fchar'.
1963 (charinfo::charinfo): Updated.
1964 (charinfo::set_macro): New argument to set `fallback' flag.
1965 * src/roff/troff/node.cc (make_glyph_node, make_node,
1966 node::add_char): Check `fallback' flag.
1967 * NEWS, man/groff_diff.man, man/groff_man: Updated.
1969 2001-12-16 Werner LEMBERG <wl@gnu.org>
1971 * groff.texinfo: Document exact search algorithm for glyphs.
1973 2001-12-15 Werner LEMBERG <wl@gnu.org>
1975 * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
1976 the left side of $(MANPAGES) rule to make it always non-empty.
1978 2001-12-14 Werner LEMBERG <wl@gnu.org>
1980 * src/roff/troff/input.cc (default_black): Define default color
1981 `black' if not yet defined.
1983 2001-12-13 Werner LEMBERG <wl@gnu.org>
1985 Implement new string-valued register `.fn' to return the current
1986 real (internal) font name.
1988 * env.cc (environment::get_font_name_string): New function.
1989 (init_env_requests): Add `.fn' register.
1990 * env.h (environment): Updated.
1991 * node.cc (font_info): Make `get_font_name' a friend.
1992 (get_font_name): New function.
1995 * man/groff_diff.man, man/groff.man, NEWS: Updated.
1997 2001-12-12 Ralph Corderoy <ralph@inputplus.demon.co.uk>
1999 * src/preproc/eqn/main.cc (inline_equation): Fix typos.
2001 2001-12-12 Werner LEMBERG <wl@gnu.org>
2003 * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
2005 2001-12-10 Gaius Mulley <gaius@glam.ac.uk>
2007 * man/groff_diff.man: Adding documentation for \O.
2009 2001-12-10 Werner LEMBERG <wl@gnu.org>
2011 * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
2012 (scanArguments): Use PROG_PREFIX for the name of the troff binary.
2014 2001-12-09 Werner LEMBERG <wl@gnu.org>
2016 * man/roff.man: Revised.
2017 * src/roff/groff/groff.man: Replace man page references with a
2018 pointer to roff.man.
2020 2001-12-09 Bernd Warken <bwarken@mayn.de>
2022 * man/roff.man: Completely rewritten.
2024 2001-12-06 Ralph Corderoy <ralph@inputplus.demon.co.uk>
2026 * src/preproc/eqn/main.cc (inline_equation): Improve error message.
2028 2001-12-05 Werner LEMBERG <wl@gnu.org>
2030 * src/roff/troff/input.cc (get_delim_file_name): Removed since no
2032 * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
2033 order of initializers.
2036 2001-12-05 Gaius Mulley <gaius@glam.ac.uk>
2038 * doc/groff.texinfo: Fix documentation of \O.
2040 * src/devices/grohtml/html-text.cc (html_text::do_indent,
2041 html_text::do_table, html_text::do_emittext, html_text::do_para):
2042 Use `const' for first argument.
2043 (html_text::do_table): Use cast.
2044 * src/devices/grohtml/html-text.h: Updated.
2045 * src/devices/grohtml/output.cc (simple_output::put_string): Add
2046 method for `const string &s'.
2047 * src/devices/grohtml/html.h: Updated.
2048 * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
2049 (ANCHOR_TEMPLATE): Modified.
2050 (manufacture_headings): New global variable to handle `-h' option.
2051 (is_subsection): Removed.
2052 (char_buffer::add_string): Add `const' to first argument.
2053 Protect against invalid string argument.
2054 Add method for `const string &s'.
2055 (text_glob): Completely redesigned.
2056 (page): Use `const' for strings and remove string length variable.
2057 (page::add_html): Removed.
2058 (page::add_end_encode): New member function.
2059 (to_unicode): Moved upwards.
2060 (title_desc, header_desc): Updated.
2061 (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
2063 (html_printer::is_bold, html_printer::make_bold): New member
2065 (html_printer::end_of_line): Updated.
2066 (generate_img_src, html_printer::do_auto_image,
2067 html_printer::do_title, html_printer::write_header,
2068 html_printer::determine_header_level, html_printer::do_heading,
2069 html_printer::do_linelength, html_printer::do_pageoffset,
2070 html_printer::do_indentation, html_printer::do_tempindent,
2071 html_printer::do_indentedparagraph, html_printer::do_break,
2072 html_printer::flush_sbuf, get_html_translation,
2073 html_printer::begin_page, html_printer::special): Rewritten to get
2074 rid of static string length limit.
2075 (html_printer::troff_tag): Added `.no-auto-rule'.
2076 (html_printer::flush_globs): Small fix.
2077 (html_printer::determine_space): Don't compute `space_width'.
2078 (html_printer::translate_to_html): Renamed to ...
2079 (html_printer::emit_html): This (with updates).
2080 (html_printer::write_header): Implement `-h' option.
2081 (html_printer::draw): Remove commented-out code. Handle `F'
2083 (html_printer::add_char_to_sbuf): Removed.
2084 (html_printer::add_to_sbuf): Rewritten.
2085 (html_printer::sbuf_continuation): Fixed.
2086 (html_printer::seen_backwards_escape, reverse,
2087 html_printer::remove_last_char_from_sbuf): Removed.
2088 (char_translate_to_html, str_translate_to_html): Removed.
2089 (html_printer::overstrike): New function member.
2090 (html_printer::set_char): Use it.
2091 (html_printer::do_body): New function member.
2092 (html_printer::~html_printer): Use it.
2093 (main): Handle `-h' option.
2095 * src/devices/grohtml/grohtml.man: Document -h switch.
2097 * src/preproc/html/pre-html.cc: Include searchpath.h
2098 Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
2099 (get_resolution): New function.
2100 (checkImageDir): Use `0777' permissions in mkdir()
2101 (write_start_image): Rewritten to use `\O[5...]'.
2102 (createImage, generateImages): Updated.
2103 (main): Handle `F' and `h' options.
2104 Use `get_resolution'.
2106 * src/roff/troff/input.cc (begin, end, image): Removed.
2107 (do_suppress): Take parameter.
2108 Handle modified syntax of `\O'.
2109 (token::next): Updated.
2110 (init_markup_requests): Removed.
2113 * src/roff/troff/div.h: Add declaration for begin_page().
2115 * tmac/color-html.tmac: Removed. Contents moved to...
2116 * tmac/html.tmac: Here. Set background color.
2117 * tmac/color.tmac: Removed. Contents moved to...
2118 * tmac/ps.tmac: Here.
2119 * tmac/www.tmac: Remove the title command when generating images
2121 (NO_AUTO_RULE): New macro.
2122 (HTML_DO_IMAGE): Use revised `\O' escapes.
2123 * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
2125 2001-12-02 Werner LEMBERG <wl@gnu.org>
2127 * tmac/groff_mdoc.man: Fix typo.
2129 2001-12-01 Colin Watson <cjwatson@debian.org>
2131 * man/roff.man: Fix typo.
2133 2001-11-29 Werner LEMBERG <wl@gnu.org>
2135 * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
2138 * src/roff/troff/input.cc (read_draw_node): Emit error message if
2139 more than one argument to \D'f ...'.
2141 * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
2143 2001-11-28 Werner LEMBERG <wl@gnu.org>
2145 * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
2148 * tmac/groff_man.man: Minor cosmetic fix.
2150 2001-11-27 Werner LEMBERG <wl@gnu.org>
2152 * src/roff/groff/groff.man, tmac/groff_tmac.man,
2153 tmac/groff_www.man: s/mwww/www/.
2155 2001-11-26 Werner LEMBERG <wl@gnu.org>
2157 * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
2158 * configure: Regenerated.
2159 * win32-diffs: Updated.
2161 * tmac/groff_mwww.tmac: Renamed to ...
2162 * tmac/groff_www.tmac: This.
2163 * tmac/mwww.tmac: Removed.
2164 * NEWS, tmac/Makefile.sub: Updated.
2166 2001-11-21 Werner LEMBERG <wl@gnu.org>
2168 * doc/groff.texinfo: Improve documentation of the `\v' escape.
2169 Fix explanation of `\D' and `rt'.
2171 2001-11-20 Werner LEMBERG <wl@gnu.org>
2173 * tmac/an-old.tmac (an-header): Set header length equal to page
2175 * doc/groff.texinfo: Improve documentation of `ne' request. Other
2179 2001-11-19 Werner LEMBERG <wl@gnu.org>
2181 * NEWS, man/Makefile.sub: Updated.
2183 2001-11-19 Bernd Warken <bwarken@mayn.de>
2185 * man/ditroff.man: New file.
2187 2001-11-17 Werner LEMBERG <wl@gnu.org>
2189 * man/groff_differences.man: Renamed to ...
2190 * man/groff_diff.man: This. Updated.
2191 * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
2193 * src/preproc/html/pushbackbuffer.cc: Renamed to ...
2194 * src/preproc/html/pushback.cc: This. Updated.
2195 * src/preproc/html/pushbackbuffer.h: Renamed to ...
2196 * src/preproc/html/pushback.h: This.
2197 * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
2200 * src/libs/libgroff/htmlindicate.cc: Renamed to ...
2201 * src/libs/libgroff/htmlhint.cc: This.
2202 * src/libs/libgroff/Makefile.sub: Updated.
2204 * tmac/an-old.tmac (an-end): Fix page length.
2206 2001-11-16 Werner LEMBERG <wl@gnu.org>
2208 * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
2209 * man/Makefile.sub: Include groff_differences.man.
2210 * VERSION: Set to 1.18.
2211 * REVISION: Set to 0.
2213 2001-11-16 Bernd Warken <bwarken@mayn.de>
2215 * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
2216 the second dot (or ending macro name) to end a macro.
2217 * doc/groff.texinfo: Doc fix.
2219 2001-11-16 Ruslan Ermilov <ru@FreeBSD.org>
2221 * tmac/doc-common (doc-header): Handle very long document titles
2224 2001-11-16 Werner LEMBERG <wl@gnu.org>
2226 * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
2228 2001-11-15 Werner LEMBERG <wl@gnu.org>
2230 * src/roff/troff/troff.man: Revised and split into troff.man and...
2231 * man/groff_differences.man: New file.
2234 2001-11-13 Werner LEMBERG <wl@gnu.org>
2236 * tmac/an-old.tmac (TS, TE): New macros for table support.
2238 2001-11-12 Werner LEMBERG <wl@gnu.org>
2240 * src/include/lib.h: Provide a fix for emx to not include
2243 2001-10-27 Werner LEMBERG <wl@gnu.org>
2245 * src/roff/troff/input.cc (substring_macro): Fix computation of
2248 2001-10-20 Werner LEMBERG <wl@gnu.org>
2250 Undo change from 2001-08-28.
2252 * src/roff/troff/input.cc (have_input): New global variable.
2253 (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
2254 in compatibility mode.
2255 (process_input_stack): Use it.
2257 2001-10-19 Ruslan Ermilov <ru@FreeBSD.org>
2259 * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
2260 being handled as end-of-sentence characters,
2262 2001-10-10 Gaius Mulley <gaius@glam.ac.uk>
2264 * src/roff/troff/input.cc (file_iterator): New members
2265 `suppress_newline_flag' and `seen_escape'.
2266 (file_iterator::next_file): Updated.
2267 (file_iterator::fill): Use it.
2268 (string_iterator): New member `suppress_newline_flag'.
2269 (string_iterator::fill): Set it.
2270 (get_color_element): Use MAX_COLOR_VAL.
2271 * src/roff/troff/env.cc (environment): Remove `need_eol'.
2272 (no_fill): Don't set `env->ignore_next_eol'.
2273 (environment::newline): Handle `eol' tag properly.
2275 (environment::add_html_tag): Set `env->ignore_next_eol'.
2277 * src/roff/troff/env.h (environment): Updated.
2279 * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
2281 (html_printer::outstanding_eol): New member function.
2282 (html_printer::do_title): Use new functions.
2283 (html_printer::troff_tag): Test `id_eol_ce'.
2285 2001-10-10 Werner LEMBERG <wl@gnu.org>
2287 * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
2288 files work with -C also.
2290 2001-10-05 Werner LEMBERG <wl@gnu.org>
2292 * doc/pic.ms: Minor fix.
2293 * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
2294 as a valid command line switch.
2295 * src/devices/grohtml/post-html.cc (main): Ditto.
2297 * src/devices/grohtml/grohtml.man: Updated.
2298 * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
2300 2001-10-04 Werner LEMBERG <wl@gnu.org>
2302 Implementing color support in troff, pic, grops, and grohtml. These
2303 changes are based on a major patch provided by Gaius Mulley
2306 New request: `defcolor', supporting rgb, cmy, cmyk, and gray
2307 definitions with both hex values and fractions.
2309 New escapes: \m and \M for drawing and background color,
2310 respectively. This corresponds to the troff output commands `m'
2313 groff and troff accept command line switch `-c' to disable color
2314 output (which is automatically disabled in compatibility mode).
2316 New scaling indicator `f' for fractions (1f = 65536u).
2318 New conditional operator `m' to test for defined colors with `if'
2321 New keywords `color' (or `colour', `colored', `coloured'), `outline'
2322 (or `outlined'), and `shaded' added to pic.
2324 * src/include/color.h: New file.
2325 * src/include/driver.h: Include it.
2326 * src/include/printer.h: Include color.h.
2327 (environment): New members `col' and `fill'.
2328 (printer): Remove `adjust_arc_center' member function.
2329 * src/include/Makefile.sub: Updated.
2331 * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
2333 Handle `m' and `DF' troff commands.
2334 * src/libs/libgroff/color.cc: New file.
2335 * src/libs/libgroff/Makefile.sub: Updated.
2337 * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
2339 (createImage): Fix computation of `y2'.
2341 (buffer::write_file_html): Remove calls to `stop'.
2343 * src/preproc/pic/common.h (common_output): New abstract function
2344 members `set_color', `reset_color', `get_last_filled', and
2345 `get_outline_color'.
2346 * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
2347 (object_spec): Add members `shaded' and `outlined'.
2348 * src/preproc/pic/output.h (output): `command' is now abstract.
2349 New function members `set_color', `reset_color', `get_last_filled',
2350 and `get_outline_color'.
2351 * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
2352 `outline[d]', and `shaded'.
2353 * src/preproc/pic/object.cc (output::command): Removed.
2354 (output::set_location): Moved to output.h.
2355 (graphic_object): Add protected members `outline_color' and
2357 Add member functions `set_outline_color', `get_outline_color', and
2359 (closed_object): Add member function `set_fill_color'.
2360 Add member `color_fill'.
2361 (graphic_object::print_text): Use `out->set_color' and
2363 (box_object::print, ellipse_object::print, circle_object::print,
2364 line_object::print, spline_object::print, arc_object::print): Ditto.
2365 (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
2366 * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
2367 `SHADED', making them `%left'.
2368 Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
2369 * src/preproc/pic/tex.cc (tex_output): New dummy function members
2370 `set_color', `reset_color', `get_last_filled', and
2371 `get_outline_color'.
2372 * src/preproc/pic/troff.cc (simple_output): New abstract function
2373 members `set_color', `reset_color', and `get_last_filled'.
2374 (simple_output::polygon, simple_output::circle,
2375 simple_output::ellipse): Use `get_last_filled'.
2376 (troff_output): New members `last_filled' and `last_outlined'.
2377 New function members `set_color', `reset_color', `get_last_filled',
2378 and `get_outline_color'.
2379 (troff_output::finish_picture): Use `reset_color'.
2380 (troff_output::set_fill): Test `last_filled'.
2381 * src/preproc/pic/pic.man: Updated.
2383 * src/roff/groff/groff.cc (main): Implement `-c' option.
2384 (synopsis, help): Updated.
2385 src/roff/groff/groff.man: Updated.
2387 * src/roff/troff/troff.h: Include color.h.
2388 (warning_type): Add WARN_COLOR.
2389 * src/roff/troff/env.h (environment): New members
2390 `{cur,prev}_{glyph,fill}_color'.
2391 New member functions `get_{prev_,}{glyph,fill}_color'.
2392 * src/roff/troff/env.cc: Initialize and implement them.
2393 * src/roff/troff/input.cc: New global variable `disable_color_flag'.
2394 Replace `NULL' with `0' everywhere for consistency.
2395 (lookup_color, default_black, do_glyph_color, do_fill_color,
2396 get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
2397 define_color): New functions.
2398 (token::next): Implement \M and \m escapes.
2399 (do_if_request): Implement `m' operator.
2401 (main): Implement `-c' option.
2402 (init_markup_requests): Add `defcolor' request.
2403 (warning_table): Add `color' warning.
2404 * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
2406 * src/roff/troff/node.cc (troff_output_file): New members
2407 `current_{page,glyph}color'. New member functions `put_hex',
2408 `glyph_color', and `fill_color'.
2409 (glyph_color_node::*, fill_color_node::*): Implement it.
2410 * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
2411 (parse_term): Add support for `f'.
2412 * src/roff/troff/troff.man: Updated.
2414 * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
2416 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
2417 * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
2419 * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
2420 (tag_definition): Use `void *' for arg1.
2421 (html_text): New member functions `do_color' and `done_color'.
2422 Use `void *' for second parameter of `push_para' member function.
2423 New `push_para' member function with a single parameter.
2424 Use `char *' for parameter of `issue_table_begin' member funtion.
2425 New `issue_color_begin' member function.
2426 * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
2428 (html_text::issue_color_begin): New function.
2429 (html_text::issue_table_begin): Use `char *' for parameter.
2430 (html_text::start_tag, html_text::shutdown,
2431 html_text::check_emit_text): Updated.
2432 (html_text::push_para): Use `void *' for second parameter.
2433 Add same function with only one parameter.
2434 (html_text::do_*): Updated.
2435 (html_text::do_color, html_text::done_color): New functions.
2436 * src/devices/grohtml/post-html.cc (style): New member `col'.
2437 Mew member `style' with 6 parameters.
2438 (style::style, style::operator==): Updated.
2439 (html_printer::do_font): Use it.
2440 (html_printer::draw): Add dummy entry for `F'.
2441 (html_printer::set_char): Updated.
2442 * src/devices/grohtml/grohtml.man: Updated.
2444 * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
2445 trailing zeroes removed.
2446 (ps_printer): New members `sbuf_color', `fill_color', and
2448 Removed member `fill'.
2449 New member function `set_color'.
2450 (ps_printer::ps_printer, ps_printer::set_char): Updated.
2451 (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
2452 ps_printer::fill_path, ps_printer::draw): Use `set_color'.
2454 * tmac/color-html.tmac, tmac/color.tmac: New files.
2455 * tmac/troffrc: Include them.
2456 * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
2457 * tmac/Makefile.sub: Updated.
2459 * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
2460 man/groff.man: Updated.
2461 * font/devps/prologue.ps: Define FC and CO functions.
2463 2001-10-04 Gaius Mulley <gaius@glam.ac.uk>
2465 Fix incorrect cropping of images and incorrect handling of special
2466 characters. Fix handling of file names in \O.
2468 * src/include/geometry.h: New file.
2469 * src/libs/libgroff/geometry.cc: New file.
2470 * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
2472 * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
2474 (do_suppress): Updated.
2475 * src/roff/troff/node.cc: Include geometry.h.
2476 (troff_output_file::flush_tbuf): Fixed parameters to
2477 `check_output_limits'.
2478 (troff_output_file::check_charinfo): Ditto.
2479 (troff_output_file::determine_line_limits): Add support for `Da'
2482 * src/devices/grohtml/post-html.cc (str_translate_to_html):
2483 Add new parameter `is_special' to decode special characters from
2485 (html_printer::do_title, html_printer::do_heading,
2486 html_printer::do_indentedparagraph,
2487 html_printer::translate_to_html, html_printer::special): Updated.
2489 2001-10-03 Werner LEMBERG <wl@gnu.org>
2491 * Makefile.sub (DISTCLEANFILES): Add stamp-h.
2492 Fix entry for config.h.
2493 * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
2494 * tmac/troffrc: Translate nonbreakable space character to `\~'.
2495 * src/preproc/eqn/eqn.man: Document -d command line option.
2497 2001-09-27 Werner LEMBERG <wl@gnu.org>
2499 * man/groff.man: Use
2507 instead of the old code (`.ad .hy' after the table) to suppress
2508 incorrect hyphenation for grohtml output.
2510 2001-09-22 Werner LEMBERG <wl@gnu.org>
2512 * man/groff_font.man, man/groff_out.man: Minor fixes.
2514 2001-09-20 Werner LEMBERG <wl@gnu.org>
2516 * PROBLEMS: Updated, reordered. Improved EPS section (thanks to
2517 Arnold Robbins <arnold@skeeve.com>).
2519 2001-09-09 Werner LEMBERG <wl@gnu.org>
2521 * configure: Regenerated with autoconf 2.52.
2523 * doc/groff.texinfo: Complete revision of indices.
2525 2001-09-07 Werner LEMBERG <wl@gnu.org>
2527 * doc/Makefile (clean): Updated to delete all indices.
2529 2001-09-05 Werner LEMBERG <wl@gnu.org>
2531 * src/roff/troff/troff.man: Remove superfluous line.
2533 * tmac/s.tmac: Enable all warnings only if no -W or -w option is
2534 given on the command line (or rather, if only the default warnings
2537 2001-09-03 Werner LEMBERG <wl@gnu.org>
2539 * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
2540 use .ne for TTY devices.
2542 2001-08-31 Werner LEMBERG <wl@gnu.org>
2544 * src/roff/troff/token.h, src/roff/troff/input.cc:
2545 s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
2547 2001-08-28 Werner LEMBERG <wl@gnu.org>
2549 * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
2550 * src/roff/troff/input.cc (token::next): Return
2551 TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
2553 (token::description): Updated.
2554 (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
2555 (token::add_to_node_list, token::process): Ignore
2556 TOKEN_TRANSPARENT_ESCAPE.
2558 2001-08-27 Werner LEMBERG <wl@gnu.org>
2560 * tmac/an-old.tmac: Fix `S' string.
2562 2001-08-26 Werner LEMBERG <wl@gnu.org>
2564 * src/roff/troff/troff.man: Don't use .ne for TTY devices.
2566 2001-08-25 Werner LEMBERG <wl@gnu.org>
2568 * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
2570 Many other minor fixes.
2572 * configure.ac: Add message at end to inform how to compile
2574 * configure: Regenerated.
2576 2001-08-24 Werner LEMBERG <wl@gnu.org>
2578 * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
2579 Updated to latest version of libc.
2581 2001-08-23 Werner LEMBERG <wl@gnu.org>
2583 * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
2584 Autoconf 2.50 and newer can handle this.
2585 * configure: Regenerated.
2587 2001-08-21 Werner LEMBERG <wl@gnu.org>
2589 * doc/pic.ms: Fix typo.
2590 * src/preproc/tbl/tbl.man: Document case of global options.
2592 2001-08-21 Gaius Mulley <gaius@glam.ac.uk>
2594 * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
2595 handling of `CR' font.
2597 2001-08-20 Werner LEMBERG <wl@gnu.org>
2599 Use a config.h file.
2601 * src/include/lib.h: Include config.h.
2602 * All C files: Ditto (if necessary).
2603 * All C++ source and header files: Include lib.h first (if
2606 * src/include/config.hin: New file (autogenerated by autoheader).
2607 * stamp-h.in: New file.
2608 * configure.ac: Updated.
2609 * aclocal.m4: Add third parameters to AC_DEFINE macros.
2610 (GROFF_ARRAY_DELETE): Simplified.
2611 * Makefile.sub (DISTCLEANFILES): Updated.
2612 Added targets for remaking config.status, config.hin, config.h,
2613 stamp-h.in, and stamp-h.
2614 * configure: Regenerated.
2616 2001-08-19 Werner LEMBERG <wl@gnu.org>
2620 2001-08-18 Sebastian Krahmer <krahmer@suse.de>
2622 * src/preproc/pic/pic.y (format_number): Use do_sprintf().
2623 (do_sprintf): Use snprintf().
2625 2001-08-18 Werner LEMBERG <wl@gnu.org>
2627 * src/libs/snprintf/*: Added an snprintf module written by Mark
2629 * src/libs/libgroff/Makefile.sub: Updated.
2630 * configure.ac: Add test for snprintf().
2631 * Makefile.in: Updated.
2632 * configure: Regenerated.
2634 * src/preproc/html/pre-html.cc (make_message): Reactivate code which
2637 2001-08-14 Ruslan Ermilov <ru@FreeBSD.org>
2639 * tmac/doc.tmac (Ex): New implementation.
2640 * tmac/doc-common, tmac/groff_tmac.man: Updated.
2642 2001-08-13 Ruslan Ermilov <ru@FreeBSD.org>
2644 * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
2646 * tmac/groff_tmac.man: Updated.
2648 2001-08-13 Werner LEMBERG <wl@gnu.org>
2650 * src/preproc/tbl/tbl.man: Minor documentation update.
2652 2001-08-13 John David Anglin <dave@hiauly1.hia.nrc.ca>
2654 * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
2655 * configure.ac: Add declaration test for gettimeofday().
2656 * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
2657 * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
2658 * configure: Regenerated.
2660 2001-08-11 Werner LEMBERG <wl@gnu.org>
2662 * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
2663 * configure.ac: Add declaration test for strcasecmp().
2664 * Makefile.in: Updated.
2665 * configure: Regenerated.
2666 * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
2667 this is necessary because groff's mkstemp.cc is C++.
2668 Add declaration conditionally for strcasecmp().
2670 2001-08-10 Werner LEMBERG <wl@gnu.org>
2672 Integrated pic2graph, contributed by Eric S. Raymond.
2674 * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
2676 * Makefile.in, NEWS: Updated.
2678 * src/preproc/tbl/tbl.man: Revised.
2680 2001-08-09 Eric S. Raymond <esr@thyrsus.com>
2682 * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
2684 2001-08-09 Werner LEMBERG <wl@gnu.org>
2686 * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
2689 2001-08-08 Paul Eggert <eggert@twinsun.com>
2691 * Makefile.sub (configure): Depend on configure.ac, not
2693 * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
2695 2001-08-07 Werner LEMBERG <wl@gnu.org>
2697 * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
2700 2001-08-06 Werner LEMBERG <wl@gnu.org>
2702 * src/roff/troff/troff.man: Improve documentation of -E option.
2704 2001-07-28 Ralph Corderoy <ralph@inputplus.demon.co.uk>
2706 * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
2709 2001-07-27 Werner LEMBERG <wl@gnu.org>
2711 * src/preproc/refer/refer.cc: Undo last change.
2712 * src/devices/grohtml/post-html.cc: Ditto.
2714 2001-07-26 Werner LEMBERG <wl@gnu.org>
2716 * src/preproc/refer/refer.cc: Include `lib.h'.
2717 * src/devices/grohtml/post-html.cc: Ditto.
2719 2001-07-25 Gaius Mulley <gaius@glam.ac.uk>
2721 * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
2722 * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
2723 * Makefile.in: Comment updated.
2724 * configure: Regenerated.
2726 2001-07-25 Werner LEMBERG <wl@gnu.org>
2728 * src/preproc/pic/pic.cc: Removed.
2729 * src/preproc/pic/pic_tab.h: Removed.
2730 * src/preproc/refer/label.cc: Removed.
2732 * doc/Makefile (.ms.html): Don't use a file name extension in
2733 argument to grohtml's -I option.
2734 * Makefile.in (dist): Remove CVS directories.
2735 Call `distfiles' target.
2737 * src/devices/grohtml/grohtml.man: Add information about valid
2738 versions of pnmtopng.
2739 * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
2740 name instead of number.
2742 2001-07-24 Werner LEMBERG <wl@gnu.org>
2744 * doc/groff.texinfo: Minor fixes.
2746 2001-07-21 Gaius Mulley <gaius@glam.ac.uk>
2748 * doc/Makefile (.ms.html): Put image files into a subdirectory.
2751 2001-07-20 Werner LEMBERG <wl@gnu.org>
2753 * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
2754 * src/libs/libgroff/mkstemp.cc: New file.
2755 * src/libs/libgroff/mksdir.cc: New file.
2756 * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
2757 (xtmpfile) [!HAVE_MKSTEMP]: Removed.
2758 * src/libs/libgroff/Makefile.sub: Updated.
2759 * src/include/lib.h: Add mksdir() prototype.
2760 * src/include/posix.h: Define S_IXUSR if not yet defined.
2762 * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
2763 (createAllPages): Use mksdir() instead of current code.
2764 * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
2765 (main): [!HAVE_MKSTEMP]: Removed.
2767 * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
2768 (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
2770 * configure.ac: Add tests for stdint.h, sys/time.h, and
2772 Call new GROFF_xxx macros.
2773 * configure: Regenerated.
2774 * Makefile.in: Comments updated.
2776 2001-07-20 Gaius Mulley <gaius@glam.ac.uk>
2778 * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
2779 instead of current code.
2780 * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
2781 * src/roff/groff/groff.cc (possible_command::insert_args): New
2783 (main): Use it for predriver handling instead of insert_arg().
2785 2001-07-19 Werner LEMBERG <wl@gnu.org>
2787 * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
2790 * src/include/posix.h: Define S_IWUSR if not yet defined.
2792 2001-07-18 Werner LEMBERG <wl@gnu.org>
2796 2001-07-18 Ruslan Ermilov <ru@FreeBSD.org>
2798 * tmac/groff_mdoc.man: Document new -width and -column syntax.
2799 Some other minor fixes.
2800 * tmac/an-old.tmac: Add `AT' and `UC' macros.
2802 2001-07-17 Gaius Mulley <gaius@glam.ac.uk>
2804 Replace call to `troff' with `groff -Z' to make it aware of
2807 * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
2808 (troff_command, command_prefix): Removed.
2809 (alterDeviceTo): Use groff.
2810 (addZ): New function.
2811 (char_buffer::do_html): Use it.
2812 (scanArguments): Use TROFF_COMMAND.
2813 (findPrefix): Removed.
2815 * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
2817 2001-07-17 Eric S. Raymond <esr@snark.thyrsus.com>
2819 * doc/pic.ms: Documentation fixes.
2821 2001-07-17 Werner LEMBERG <wl@gnu.org>
2823 Replace atexit() with global destructor.
2825 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
2826 (xtmpfile_list_init): New global structure to deallocate
2827 xtmpfile_list on exit. Its destructor inherits most code from
2829 (remove_tmp_files): Deleted.
2830 (add_tmp_file): Simplified.
2832 2001-07-16 Werner LEMBERG <wl@gnu.org>
2834 Replace strdup() with strsave().
2836 * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
2837 (set_papersize): Use strsave() and a_delete.
2838 (main): Use strsave().
2839 * src/preproc/html/pre-html.cc (make_message, createAllPages,
2840 removeAllPages): Use strsave() and a_delete.
2842 * configure.ac: Remove test for strdup.
2843 * Makefile.in: Comment updated.
2844 * configure: Regenerated.
2846 2001-07-15 Werner LEMBERG <wl@gnu.org>
2848 * win32-diffs: Updated.
2850 2001-07-14 Werner LEMBERG <wl@gnu.org>
2852 * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
2853 removing the old one.
2854 * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
2856 2001-07-14 Ralph Corderoy <ralph@inputplus.demon.co.uk>
2858 * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
2860 2001-07-12 Ruslan Ermilov <ru@FreeBSD.org>
2862 Merge -xwidth into -width. Add -xwidth functionality to -column
2865 * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
2867 (doc-do-Bl-args): Merge -xwidth code with -width. Test whether
2868 string immediately following a leading dot starts with a valid mdoc
2870 Add similar code to the -column branch.
2871 (doc-Bl-usage): Updated.
2872 * groff_mdoc.man: s/-xwidth/-width/.
2874 2001-07-12 Gaius Mulley <gaius@glam.ac.uk>
2876 * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
2877 running into centered or non-formatted text.
2879 2001-07-11 Werner LEMBERG <wl@gnu.org>
2881 Introduce short and long prefixes to have the selection at run-time
2882 whether there is a 8+3 limit for names of temporary files.
2884 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
2885 (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
2886 (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
2888 (temp_init): New global structure to initialize above three
2890 (xtmptemplate): Use two parameters for long and short prefix.
2891 Simplify code use above three variables.
2892 (xtmpfile): Use long and short prefixes as parameters.
2893 * src/include/lib.h: Updated.
2895 * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
2897 ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
2898 (createAllPages, makeTempFiles): Updated.
2900 2001-07-09 Werner LEMBERG <wl@gnu.org>
2902 * REVISION: Increased to 3.
2904 Version 1.17.2 released
2905 =======================
2907 2001-07-07 Werner LEMBERG <wl@gnu.org>
2909 * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
2912 2001-07-06 Ruslan Ermilov <ru@FreeBSD.org>
2914 * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
2916 * tmac/groff_mdoc.man: Fix synopsis.
2918 2001-07-05 Ruslan Ermilov <ru@FreeBSD.org>
2920 * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
2921 Restore `doc-Pa-font'.
2923 2001-07-04 Werner LEMBERG <wl@gnu.org>
2925 * src/utils/indxbib/dirnamemax.c: Moved to ...
2926 * src/libs/libgroff/maxfilename.cc: Here.
2927 s/dir_name_max/file_name_max/.
2929 * src/include/lib.h: Add file_name_max.
2930 * src/utils/indxbib/indxbib.cc: Updated.
2931 * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
2934 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
2936 (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
2938 * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
2939 REGION_TEMPLATE): New macros.
2940 (createAllPages, makeTempFiles): Use them.
2941 Include `nonposix.h'.
2942 (html_system): New function.
2943 (createAllPages, createImage): Use it.
2946 * tmac/www.tmac: Fix typos.
2948 2001-07-03 Werner LEMBERG <wl@gnu.org>
2950 * tmac/www.tmac: Disable hyphenation in normal text only if output
2952 (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
2953 * tmac/groff_mwww.man, NEWS: Updated.
2955 2001-07-03 Gaius Mulley <gaius@glam.ac.uk>
2957 * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
2960 2001-07-02 Ruslan Ermilov <ru@FreeBSD.org>
2962 * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
2963 doc-display-ps-stack): Implement font and font size stack for
2966 2001-07-02 Werner LEMBERG <wl@gnu.org>
2968 * REVISION: Increased to 2.
2969 * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
2971 * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
2972 beginning of a line.
2973 * src/groff/grog/grog.sh: Ditto.
2975 2001-06-29 Peter Marquardt <wwwutz@molgen.mpg.de>
2977 * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
2980 2001-06-27 Werner LEMBERG <wl@gnu.org>
2982 Fix problems with preprocessor string for `man' program.
2984 * *.man: Don't use `s' in preprocessor string -- it doesn't exist.
2985 Updated/added copyright.
2986 Moved Emacs's local variable to identify nroff mode to the end of
2987 the file; add local variable if missing.
2989 2001-06-26 Andras Salamon <andras@cs.wits.ac.za>
2991 * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
2992 AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
2993 * configure: Regenerated.
2995 2001-06-25 Andras Salamon <andras@cs.wits.ac.za>
2997 * aclocal.m4 (GROFF_PAGE): Fix page detection code.
2998 * configure: Regenerated.
3000 2001-06-24 Werner LEMBERG <wl@gnu.org>
3002 * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
3004 * doc/pic.ms: Fix typos.
3006 Version 1.17.1 released
3007 =======================
3009 2001-06-21 Golubev I. N. <gin@mo.msk.ru>
3011 * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
3012 * configure: Updated.
3014 2001-06-20 Gaius Mulley <gaius@glam.ac.uk>
3016 * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
3018 * src/roff/troff/dic.cc (blank_line): Add html tag.
3020 2001-06-19 Gaius Mulley <gaius@glam.ac.uk>
3022 * src/roff/troff/input.cc (do_suppress): Fix typo.
3024 2001-06-18 Gaius Mulley <gaius@glam.ac.uk>
3026 Added two new options (-D and -I) to specify image names and a
3027 subdirectory to place the images in.
3029 Change syntax from \\Ox to \\O[x].
3031 * src/devices/grohtml/post-html.cc (main): Add options.
3033 * src/preproc/html/pre-html.cc: Include `stdarg.h'.
3034 Use `NULL' instead of `0' for null string pointers.
3035 (MAX_RETRIES): New macro.
3036 (lengthOfintToStr, intToStr, make_message): New functions.
3037 (makeFileName): Make function static.
3038 Implement -D and -I options.
3039 (checkImageDir): New function.
3040 (write_end_image, write_start_image): Use new syntax of \O.
3041 (createAllPages, removeAllPages): Implement -D and -I options. Use
3043 (createImage): Use make_message().
3044 (addps4html): Add guard for malloc().
3045 (usage, scanArguments): Updated.
3046 (makeTempFiles): Use mkstemp().
3047 (removeTempFiles): Use unlink().
3048 (findPrefix): Add guard for malloc().
3050 * src/roff/troff/input.cc (get_delim_file_name): New function to
3052 (do_suppress): Updated to parse new syntax.
3053 * src/devices/grohtml/grohtml.man: Updated.
3054 * tmac/www.tmac: Updated to new syntax.
3058 2001-06-15 Werner LEMBERG <wl@gnu.org>
3060 * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
3062 * src/devices/grohtml/grohtml.man: Minor improvements.
3064 2001-06-14 Werner LEMBERG <wl@gnu.org>
3066 * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
3068 2001-06-11 Werner LEMBERG <wl@gnu.org>
3070 * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
3071 line to specify preprocessor options -- mandb 2.3.1 only recognizes
3073 * src/preproc/grn/grn.man: Add proper '\" string.
3075 2001-06-11 OKAZAKI Tetsurou <okazaki@be.to>
3077 * test-groff: Don't use PATH but GROFF_BIN_PATH.
3079 2001-06-08 Werner LEMBERG <wl@gnu.org>
3081 Updated to autoconf 2.50.
3083 * configure.in: Renamed to...
3084 * configure.ac: This.
3085 * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
3086 (GROFF_OS390): Updated.
3087 * configure: Regenerated.
3089 2001-05-18 Werner LEMBERG <wl@gnu.org>
3091 * src/roff/troff/env.c, src/roff/troff/env.h,
3092 src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
3095 2001-05-17 Jeffrey Friedl <jfriedl@yahoo-inc.com>
3097 * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
3099 2001-05-16 Werner LEMBERG <wl@gnu.org>
3101 * src/roff/troff/input.cc (read_size): Emit warning if value becomes
3102 less than or equal zero; set it to 1 then.
3103 * src/roff/troff/node.h (node::node): Initialize `last'.
3105 2001-05-08 Werner LEMBERG <wl@gnu.org>
3107 * tmac/an-old.tmac: Make predefined strings work in compatibility
3109 Add troff version guard.
3110 * tmac/doc.tmac: Simplify version guard.
3112 2001-05-07 Werner LEMBERG <wl@gnu.org>
3114 The .ns and .rs requests are now honoured not only in the top-level
3115 but in all diversions (similar to UNIX troff).
3117 This change is based on a patch from Tadziu Hoffmann
3118 <hoffmann@usm.uni-muenchen.de>.
3120 * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
3121 (top_level_diversion): Remove `no_space_mode' member.
3122 * src/roff/troff/div.cc (diversion::diversion,
3123 top_level_diversion::top_level_diversion): Updated.
3124 (macro_diversion::output): Reset `no_space_mode'.
3125 (no_space, restore_spacing): Use `curdiv' unconditionally.
3126 (space_request, blank_line): Check `curdiv->no_space_mode'.
3127 (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
3128 `curdiv' unconditionally.
3129 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
3132 2001-05-06 Werner LEMBERG <wl@gnu.org>
3134 Added two new requests `de1' and `am1' which are similar to `de' and
3135 `am' with the difference that compatibility mode is saved on entry,
3136 switched off during macro execution, and restored on exit.
3138 * src/roff/troff/input.h: Added two new special characters
3139 (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
3140 * src/roff/troff/input.cc (input_iterator): Added two member
3141 functions `save_compatible_flag' and `get_compatible_flag'.
3142 (input_stack): Ditto.
3143 (string_iterator): Ditto. Also add private member
3144 `saved_compatible_flag'.
3145 (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
3146 (calling_mode): New enumeration.
3147 (do_define_macro): Use it. Insert COMPATIBLE_SAVE and
3148 COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
3149 (define_macro, define_indirect_macro, append_macro, ignore): Use
3151 (define_nocomp_macro, append_nocomp_macro): New functions.
3152 (init_input_requests): Updated.
3153 (do_request): Rename local variable `saved_compatible_flag' to
3154 `old_compatible_flag'.
3155 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
3157 * tmac/an-old.tmac: Use `de1' instead of `de' request for all
3158 public and trap-invoked macros. As a consequence, the man macros
3159 work in compatibility mode also.
3161 2001-05-06 Solar Designer <solar@openwall.com>
3163 * Makefile.in: Use $(mandir).
3165 2001-05-06 Alexios Zavras <zvr@pobox.com>
3167 * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
3169 2001-05-05 Werner LEMBERG <wl@gnu.org>
3171 Added `.ns' number register: Returns 1 in no-space mode (if in
3172 top-level diversion), 0 otherwise.
3174 * src/roff/troff/div.cc (no_space_mode_reg): New class.
3175 (init_div_requests): Updated.
3176 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
3179 2001-05-04 Werner LEMBERG <wl@gnu.org>
3181 * src/roff/nroff/nroff.man: Improved documentation (especially
3184 2001-05-02 Werner LEMBERG <wl@gnu.org>
3186 Added `brp' request: This is \p as a request.
3188 * src/roff/troff/env.cc (environment::do_break): Add parameter
3190 (do_break_request): New function (was `break_request').
3191 (break_request): Calls `do_break_request'.
3192 (break_spread_request): New; calls `do_break_request'.
3193 (init_env_requests): Updated.
3194 * src/roff/troff/env.h: Updated.
3195 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
3197 * REVISION: Increased to 1.
3198 * win32-diffs: Updated.
3200 2001-05-01 Werner LEMBERG <wl@gnu.org>
3202 * tmac/an-old.tmac: Fix minor compatibility mode issue.
3203 * tmac/troffrc-end: Make it really work in compatibility mode.
3205 2001-04-27 Werner LEMBERG <wl@gnu.org>
3207 * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
3210 2001-04-22 Werner LEMBERG <wl@gnu.org>
3212 * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
3213 latest versions from glibc CVS archive.
3215 * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
3216 <c.zeelenberg@hccnet.nl>.
3218 2001-04-21 Werner LEMBERG <wl@gnu.org>
3220 * configure.in: Move check for mkstemp() to...
3221 * aclocal.m4 (GROFF_MKSTEMP): This new function.
3222 * configure: Regenerated.
3224 * src/include/groff-getopt.h: Don't use variable names in
3227 * src/devices/grohtml/html-chars.h: Removed. It isn't used.
3228 * src/devices/grohtml/Makefile.sub,
3229 src/devices/grohtml/post-html.cc: Updated.
3231 2001-04-21 Albert Chin-A-Young <china@thewrittenword.com>
3233 * configure.in: Add special check for mkstemp().
3234 * src/libs/libgroff/tmpfile.cc: Use it.
3235 * src/utils/indxbib/indxbib.cc: Ditto.
3236 * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
3237 * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
3240 2001-04-20 Bruce Lilly <blilly@erols.com>
3242 `Version_string' as C++ object was not visible to linker from C
3244 Add `const' to `Version_string'.
3246 * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
3247 (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
3248 (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
3249 (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
3250 (scanArguments), src/preproc/refer/refer.cc (main),
3251 src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
3252 (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
3253 (main), src/devices/grohtml/post-html.cc (main),
3254 src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
3255 (main), src/utils/hpftodit/hpftodit.cc (main),
3256 src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
3257 (main), src/utils/lkbib/lkbib.cc (main),
3258 src/utils/addftinfo/addftinfo.cc (main): Implement it.
3260 * src/roff/groff/pipeline.c: Add _UWIN.
3261 * src/include/nonposix.h: Ditto.
3263 2001-04-20 Werner LEMBERG <wl@gnu.org>
3265 * src/include/lib.h: Use HAVE_STRERROR.
3266 * src/roff/groff/pipeline.c: Ditto.
3267 * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
3268 * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
3269 * src/utils/pfbtops/pfbtops.c: Add copyright notice.
3270 * win32-diffs: Updated.
3271 * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
3273 2001-04-19 Werner LEMBERG <wl@gnu.org>
3275 * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
3276 instead of hardwired `"troff"'.
3277 (char_buffer::read_file): Remove unused variables.
3278 (char_buffer::write_file_troff): Ditto.
3279 (char_buffer::write_file_html): Ditto.
3280 (generateImages): Ditto.
3282 * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
3284 * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
3286 * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
3287 * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
3288 index_search_item::search1): Ditto.
3289 * src/roff/troff/node.h (width_list): Reorder members.
3290 * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
3291 (lookup_warning): Ditto.
3292 (prepend_string): Commented out.
3293 * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
3294 * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
3295 * src/preproc/tbl/main.cc (process_format): Ditto.
3296 * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
3298 * src/preproc/pic/pic.cc: Updated.
3299 * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
3300 * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
3301 * src/preproc/refer/command.cc (execute_command): Ditto.
3302 * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
3303 * src/preproc/refer/token.cc (lookup_token): Ditto.
3304 * src/preproc/soelim/soelim.cc: Ditto.
3305 * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
3306 (isHexDigit): Commented out.
3307 (pushBackBuffer::isString): Remove unused variable.
3308 * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
3310 * src/devices/grops/psrm.cc (resource_manager::lookup_font,
3311 resource_manager::read_resource_arg, read_one_of, parse_extensions):
3313 * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
3314 * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
3315 lookup_paper_size): Ditto.
3316 * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
3317 (text_glob, element_list): Reorder members.
3318 * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
3320 * src/devices/grohtml/html-text.h (html_text::emit_space): Change
3321 return value to `void'.
3322 * src/devices/grohtml/output.cc (word_list::word_list): Fix order
3324 * src/devices/grohtml/html.h (simple_output::check_newline,
3325 simple_output::space_or_newline, simple_output::enable_newlines):
3327 * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
3329 * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
3330 * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
3331 output_ligatures, output_charset, read_map): Ditto.
3332 * src/utils/lookbib/lookbib.cc (main): Ditto.
3333 * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
3334 (do_file): Fix typo (`=' -> `==').
3335 * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
3336 * src/utils/addftinfo/addftinfo.cc (main): Ditto.
3338 2001-04-18 Ruslan Ermilov <ru@FreeBSD.org>
3340 * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
3341 Fix usage of GROFF_BIN_PATH.
3342 * src/roff/nroff/nroff.man: Updated.
3344 2001-04-18 Werner LEMBERG <wl@gnu.org>
3346 * NEWS: Fixing typos.
3349 Version 1.17 released
3350 =====================
3352 2001-04-17 Werner LEMBERG <wl@gnu.org>
3354 * tmac/Makefile.sub (install-data): mdoc.local-s is in current
3355 directory, not in $(srcdir).
3357 2001-04-16 Werner LEMBERG <wl@gnu.org>
3359 * doc/groff.texinfo: More info on conditionals.
3361 2001-04-15 Werner LEMBERG <wl@gnu.org>
3363 * doc/groff.texinfo: Added some info about groff internals.
3365 * src/roff/troff/node.cc (make_glyph_node): Emit warning message
3366 about missing special character only if the name is non-null.
3368 2001-04-14 Werner LEMBERG <wl@gnu.org>
3370 Removing the grohtml-old device driver which is now obsolete.
3372 * src/devices/grohtml-old/*: Removed.
3373 * font/devhtml-old/*: Removed.
3374 * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
3376 * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
3377 * test-groff (PATH): Updated.
3378 * tmac/Makefile.sub (NORMALFILES): Updated.
3379 * tmac/an-old.tmac: Remove special code for html-old device.
3380 Replace `html-or-html-old' register with `an-html'.
3381 * tmac/eqnrc: Updated.
3382 * tmac/html-old.tmac: Removed.
3383 * tmac/troffrc, tmac/troffrc-end: Updated.
3384 * tmac/www.tmac: Remove special code for html-old device.
3385 Replace `html-or-html-old' register with `www-html'.
3387 * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
3388 src/libs/libgroff/htmlindicate.cc (graphic_end),
3389 include/htmlindicate.h, src/preproc/grn/*.cc,
3390 src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
3391 single argument for consistency with rest of source code.
3393 * aclocal.m4, tmac/an-old.tmac: Fix copyright.
3395 2001-04-13 Ruslan Ermilov <ru@FreeBSD.org>
3397 * src/roff/troff/troff.man: Fixing typos.
3399 2001-04-13 Werner LEMBERG <wl@gnu.org>
3401 * doc/pic.ms: Fixing many font switches.
3402 * doc/groff.texinfo: Fixes, additions.
3403 * MORE.STUFF: Updated.
3405 2001-04-12 Gaius Mulley <gaius@glam.ac.uk>
3407 * src/devices/grohtml/grohtml.man: Updated manual page regarding
3409 * src/preproc/html/pre-html.cc (createImage): Fixed right hand
3411 (removeTempFiles): New function to tidy up temporary files.
3412 * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
3413 Many fixes to do with the new inline suppress node and image regions
3415 * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
3416 (generate_img_src): New function.
3417 (html_printer::do_auto_image): Utilizes it.
3418 (do_heading, do_title): Include inline images within their contents.
3419 (html_printer::begin_page): Tidied up comments that are issued to
3420 the html output file.
3421 (html_printer::do_fill): Fixed so that `.nf' works with fonts other
3423 (text_glob::is_br): New method used by do_heading.
3424 * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
3425 equivalent diversion.
3426 * src/include/html-strings.h: Altered image tags to reflect the
3428 * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
3430 * src/preproc/eqn/main.cc: Will suppress generation of image tags if
3431 it is already inside a pic image. Only emit tags if the argument
3432 `-Tps:html' is present.
3433 * src/preproc/tbl/main.cc: Changes to reflect additional
3434 `html_end_suppress' parameter.
3435 * src/roff/troff/env.cc: Only emit eol tag if a node has been
3436 emitted since the last eol tag was written.
3437 * src/roff/troff/env.h: New boolean `emitted_node'.
3438 * src/roff/troff/input.cc (do_suppress): Handles extra suppress
3439 nodes \O3, \O4, \O5. No longer use `output_low_mark_miny'.
3440 * src/roff/troff/node.cc (check_charinfo): New method.
3441 (troff_output_file::determine_line_limits): Alterations to limit
3443 * tmac/www.tmac: Changes to reflect new suppress nodes.
3445 2001-04-12 Bruno Haible <haible@clisp.cons.org>
3447 * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
3448 Escape the html_glyph in the buffer.
3449 (str_translate_to_html): Output the unescaped escaped_char.
3450 * src/devices/grohtml/html-text.cc (issue_table_begin): Set
3451 `frame=void', not `frame=none'. Add `border=0'.
3453 2001-04-12 Werner LEMBERG <wl@gnu.org>
3455 * PROBLEMS: Add some words on how to avoid wrapper macros.
3457 2001-04-11 Blake McBride <blake@florida-software.com>
3459 * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
3461 2001-04-11 Werner LEMBERG <wl@gnu.org>
3463 * font/devlbp/Makefile.sub (CLEANADD): Set it.
3464 * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
3465 * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
3466 * Makefile.sub (DISTCLEANFILES): Here.
3468 * libs/libgroff/new.cc: Include `nonposix.h'.
3469 * win32-diffs: Updated.
3471 2001-04-10 Ruslan Ermilov <ru@FreeBSD.org>
3473 Added skeleton macro for defunct macros.
3475 Updated documentation.
3477 When inside displays, an empty input line warning should be
3478 suppressed. If another macro call is put inside a display,
3479 all subsequent empty lines found in that display caused a
3480 warning to be emitted.
3482 * tmac/doc.tmac (doc-defunct-macro): New macro.
3483 (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
3484 (doc-restore-global-vars): Fixed typo.
3485 (doc-empty-line): Check the `doc-display-depth' register to
3486 determine whether we are inside display or not.
3488 * tmac/doc-common: Removed `Or' and `Sf' registers.
3489 Moved obsolete `Ds' macro to doc.tmac.
3491 * tmac/groff_mdoc.man: Bump document date.
3492 Document `.Vt' under ``Variable Types''.
3493 Removed documentation for obsolete `.Or' macro.
3495 2001-04-10 Werner LEMBERG <wl@gnu.org>
3498 * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
3500 2001-04-10 Bruno Haible <haible@clisp.cons.org>
3502 * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
3503 (usage): Add stream argument. Don't exit.
3504 * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
3505 Write --version output to stdout, not stderr.
3506 (usage): Add stream argument. Don't exit.
3507 * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
3508 (usage): Add stream argument. Don't exit.
3509 * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
3511 (usage): Add stream argument. Don't exit.
3512 (main): Write --help output to stdout, not stderr.
3513 * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
3514 (usage): Add stream argument. Don't exit.
3515 * src/devices/grops/ps.cc (main): Accept --help and --version.
3516 (usage): Add stream argument. Don't exit.
3517 * src/devices/grotty/tty.cc (main): Accept --help and --version.
3518 (usage): Add stream argument. Don't exit.
3519 * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
3520 (main): Accept --help and --version.
3521 * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
3522 (main): Accept --help and --version.
3523 * src/preproc/html/pre-html.cc (usage): Add stream argument.
3524 (scanArguments): Accept --help and --version.
3525 * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
3526 (main): Accept --help and --version.
3527 * src/preproc/refer/refer.cc (main): Accept --help and --version.
3528 (usage): Add stream argument. Don't exit.
3529 * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
3531 (main): Accept --help and --version.
3532 * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
3533 (main): Accept --help and --version.
3534 * src/roff/groff/groff.cc (main): Accept --help and --version.
3535 (synopsis): Add stream argument.
3536 (help): Write --help output to stdout, not stderr.
3537 (usage): Add stream argument. Don't exit.
3538 * src/roff/grog/grog.pl: Accept --help and --version.
3540 * src/roff/grog/grog.sh: Accept --help and --version.
3541 * src/roff/nroff/nroff.sh: Accept --help and --version.
3542 * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
3543 (usage): Add stream argument. Don't exit.
3544 (main): Accept --help and --version.
3545 * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
3546 (usage): New function with stream argument, doesn't exit.
3547 * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
3548 (usage): New function with stream argument, doesn't exit.
3549 * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
3550 (usage): Add stream argument. Don't exit.
3551 * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
3552 (main): Accept --help and --version.
3553 * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
3555 (main): Accept --help and --version.
3556 * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
3557 (main): Accept --help and --version.
3558 * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
3559 (usage): Add stream argument. Don't exit.
3561 2001-04-10 Ruslan Ermilov <ru@freebsd.org>
3563 Fix indentation in SYNOPSIS.
3565 Updated to include changes of latest BSD mdoc version (basically,
3566 the only change is that `.Fn' and `.Fc' put a final semicolon after
3567 a function declaration in the SYNOPSIS section).
3569 * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
3570 (doc-in-synopsis-section): New variable. Updated all related
3572 (doc-indent-synopsis-active): New register.
3573 (Nd, Fn, Fo): Use it.
3574 (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
3575 `.Cd' with long argument line produces indented wrapped lines.
3576 Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
3577 undesirable line break to be output.
3578 (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
3580 (Fn, Fc): Add final `;' to output.
3581 (doc-save-global-vars, doc-restore-global-vars): Updated.
3582 * tmac/doc-common: Remove `Ex' register.
3584 * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
3587 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
3589 * tmac/doc.tmac (Cd): Simplify code.
3590 * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
3592 2001-04-06 Werner LEMBERG <wl@gnu.org>
3594 Implement continuous underlining for nroff mode. To do that, a new
3595 request in the ditroff language has been added: `x u N' (N is 0
3598 \X and \Y are now transparent to end-of-sentence recognition.
3600 * src/include/printer.h (printer): Add `type' parameter to `special'
3602 * src/libs/libdriver/printer.cc (printer::special): Updated.
3603 * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
3605 * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
3606 specials of type `p'.
3607 * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
3608 * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
3609 * src/devices/grops/ps.cc (ps_printer::special): Ditto.
3610 * src/devices/grotty/tty.cc: Add new enum CU_MODE.
3611 (glyph::order): New method.
3612 (tty_printer::add_char): Use it.
3613 (tty_printer::special): New method.
3614 (tty_printer::end_page): Implement it.
3616 * src/roff/troff/node.h (special_node): Add `no_init_string' member.
3617 * src/roff/troff/node.cc (special_node::special_node): Add parameter
3618 to set `no_init_string'.
3619 (special_node::tprint_start): Use it.
3620 (special_node::same, special_node::copy): Updated.
3621 (special_node::ends_sentence): New method.
3622 (troff_output_file::start_special): Add parameter to include
3623 inititialization of special conditionally.
3625 * src/roff/troff/env.h (environment): New member `underline_spaces'.
3626 * src/roff/troff/env.cc (do_underline_special): New function.
3627 (environment::set_font): Use it.
3628 (do_underline): Use it. This was `underline()'.
3629 (underline): Call `do_underline()'.
3630 (continuous_underline): New function which calls `do_underline()'.
3631 (environment::newline): Use `do_underline_special()'.
3632 (init_env_requests): Updated.
3634 * NEWS, man/troff_out.man: Updated.
3636 2001-04-06 Bruno Haible <haible@clisp.cons.org>
3638 * font/devutf8/R.proto: Fix code of 'shc'.
3640 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
3642 Many fixes. Diag lists can now be nested also; additionally,
3643 `-compact' and `-offset' are supported.
3645 * tmac/doc.tmac (doc-have-indent): Replaced with ...
3646 (doc-list-have-indent-stackXXX): A new register stack.
3647 (doc-have-diag-list): Removed.
3648 (Bl): Use `doc-list-have-indent-stackXXX'.
3650 (doc-diag-list): Use `doc-compact-list-stackXXX'.
3651 (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
3652 (doc-set-vertical-and-indent): Ditto.
3653 (doc-next-list-depth): Removed.
3654 (doc-increment-list-stack): Updated.
3655 (doc-decrement-list-stack): Use `doc-list-depth' instead of
3656 `doc-next-list-depth'.
3657 (doc-end-list, doc-end-column-list): Don't use
3658 `doc-increment-list-stack'.
3659 (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
3660 (doc-save-global-vars, doc-restore-global-vars): Updated.
3661 * tmac/doc-common: Updated.
3662 * tmac/groff_mdoc.man: Updated.
3665 2001-04-02 Werner LEMBERG <wl@gnu.org>
3667 * src/devices/grotty/grotty.man: Fix grammatical error.
3669 2001-03-30 Ruslan Ermilov <ru@freebsd.org>
3671 Remove .Ld from mdoc package; replace it with special handling of
3674 * tmac/doc-common: Remove `Ld' register.
3675 Uncomment `doc-volume-ds-*' strings.
3676 Remove `doc-operating-system-default'.
3678 * tmac/doc-syms (Ld): Removed.
3679 * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
3683 * tmac/groff_mdoc.man: Many fixes and updates.
3685 2001-03-29 Werner LEMBERG <wl@gnu.org>
3687 * tmac/troffrc-end: Protect data with `.do'. Reported by T. Kurt
3688 Bond <tkb@tkb.mpl.com>.
3689 * tmac/www.tmac: Save compatibility mode.
3691 2001-03-28 Ruslan Ermilov <ru@freebsd.org>
3693 * tmac/groff_mdoc.man: Many fixes.
3695 2001-03-28 Werner LEMBERG <wl@gnu.org>
3697 * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
3700 2001-03-27 Werner LEMBERG <wl@gnu.org>
3702 * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
3703 diversion. This fixes overlong tags.
3705 2001-03-26 Werner LEMBERG <wl@gnu.org>
3707 * doc/groff.texinfo: Fixed and improved documentation of fonts.
3708 * tmac/doc-syms: Fix error messages.
3709 * tmac/an-old.tmac: Remove incorrect double backslashes.
3711 2001-03-24 Ruslan Ermilov <ru@freebsd.org>
3713 * tmac/Makefile.sub: Strip mdoc.local also
3714 * tmac/strip.sed: Fixed.
3716 2001-03-24 Werner LEMBERG <wl@gnu.org>
3718 * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
3719 selecting the font size.
3720 * tmac/groff_mdoc.man, NEWS: Document it.
3722 2001-03-23 Werner LEMBERG <wl@gnu.org>
3724 * src/roff/troff/div.cc (save_vertical_space): Add default argument
3726 * src/roff/troff/env.cc (family_change): Make `.fam' accept no
3727 argument to restore previous font family.
3728 * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
3730 * doc/groff.texinfo: More fixes and additions (mainly for font
3731 manipulating commands).
3733 * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
3734 * tmac/groff_mdoc.man: This. The quick reference has been removed.
3735 * tmac/Makefile.sub, NEWS: Updated.
3737 2001-03-23 Werner LEMBERG <wl@gnu.org>
3739 Replaced mdoc implementation. The new version is `state of the
3740 art', using almost all new features of groff 1.17 -- it won't run
3741 with older versions.
3743 * tmac/doc.tmac: Completely rewritten.
3744 * tmac/doc-common: Ditto.
3745 * tmac/doc-nroff: Ditto.
3746 * tmac/doc-ditroff: Ditto.
3747 * tmac/doc-syms: Ditto.
3748 * tmac/mdoc.local: New file.
3749 * tmac/groff_mdoc.samples.man: Replaced with ...
3750 * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
3751 * tmac/strip.sed: Updated.
3752 * tmac/Makefile.sub: Updated.
3755 * tmac/groff_man.man: Add `man.local' to the FILES section.
3757 2001-03-22 Werner LEMBERG <wl@gnu.org>
3759 * doc/groff.texinfo: Added many @noindent.
3760 Replaced @end_Example -> @endExample.
3761 Added info whether registers are r/o.
3762 Many other additions and fixes.
3764 2001-03-21 Werner LEMBERG <wl@gnu.org>
3766 * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
3767 in makeinfo of texinfo 4.0) to be used in @Def* macros.
3768 Improved @Def* macros: Now the exact syntax of request, register,
3769 and escapes is shown.
3770 Added macros for parentheses and brackets to be used in @Def*.
3771 Many fixes and improvements of the documentation.
3773 2001-03-20 Werner LEMBERG <wl@gnu.org>
3775 * doc/groff.texinfo: Added new index: `st' (for strings).
3776 Added macros @Defstr(x).
3777 Added macro @Example (adding @group).
3778 Other minor improvements.
3780 2001-03-19 Werner LEMBERG <wl@gnu.org>
3782 * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
3783 `rq' for requests. `fn' is no longer used.
3784 Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
3787 * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
3788 number with name of man page.
3790 2001-03-19 Larry Kollar <kollar@alltel.net>
3792 * doc/groff.texinfo: Complete revision. Added many @Deffn to gain
3795 2001-03-19 Werner LEMBERG <wl@gnu.org>
3797 * man/groff_font.man: Document `prepro', `postpro', and `print'.
3798 * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
3799 * src/devices/grohtml/grohtml.man: Fixing typos.
3801 2001-03-19 Gaius Mulley <gaius@glam.ac.uk>
3803 * tmac/s.tmac (@IP): Pass `.ip' html tag.
3804 * tmac/groff_mwww.man: Remove .LINE macro
3805 * tmac/www.tmac (LINE): Add `.ti'.
3807 * src/devices/grohtml/post-html.cc (html_printer): New member
3809 (html_printer::emit_raw): Use it.
3810 (html_printer::do_linelength): Ditto.
3811 (html_printer::do_pageoffset): Ditto.
3812 (html_printer::do_indentation): Ditto.
3813 (html_printer::do_tempindent): Ditto.
3814 (html_printer::do_break): Ditto.
3815 (html_printer::begin_page): Ditto.
3816 (html_printer::do_indentedparagraph): New function.
3817 (html_printer::troff_tag): Handle `.ip'.
3818 * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
3819 Add `<td width=...>' handling.
3820 (html_text::do_table): Add parameter.
3821 (html_text::do_indent): Updated.
3822 * src/devices/groohtml/html-text.h: Updated.
3824 2001-03-16 Gaius Mulley <gaius@glam.ac.uk>
3826 Introduced simple html tables to implement indentation.
3828 * src/devices/grohtml/html.h (word, word_list): New structures.
3829 (simple_output): Use it.
3830 * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
3831 (html_printer): Improve indentation handling.
3832 (html_printer::emit_raw): Set `in_table' element. Handle
3834 (html_printer::write_header): Move conditional downwards.
3835 Don't allow whitespace in tags.
3836 (html_printer::do_linelength): Handle line length and indentation
3838 (html_printer::do_pageoffset): Handle indentation conditionally.
3839 (html_printer::do_indentation): Ditto.
3840 (html_printer::do_tempindent): New function member.
3841 (html_printer::do_fill): Take care of indentation.
3842 (html_printer::do_flush): Finish table.
3843 (html_printer::do_links): Ditto.
3844 (html_printer::do_break): New function for handling `.br' and `.ti'.
3845 (html_printer::troff_tag): Use it.
3847 (html_printer::flush_globs): Fix.
3848 (html_printer::flush_page): Finish table.
3849 (html_printer::html_printer): Fix error message. Set up
3851 (html_printer::add_to_sbuf): Remove special handling of character
3853 (to_unicode): Remove `stop()'.
3854 (html_printer::write_title): Cleanup.
3855 (html_printer::begin_page): Use `put_string()'. Handle indentation.
3856 (html_printer::~html_printer): Flush text and end the line.
3858 * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
3859 * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
3861 (html_text::start_tag): Disable newlines.
3862 (html_text::table_is_void): New function.
3863 (html_text::issue_table_begin): Ditto.
3864 (html_text::issue_table_end): Ditto.
3865 (html_text::push_para): Better table handling.
3866 (html_text::do_indent): New function.
3867 (html_text::do_table): Ditto.
3868 (html_text::done_table): Ditto.
3869 (html_text::do_tt): Handle PRE_TAG.
3870 (html_text::is_in_table): New function.
3871 (html_text::check_emit_text): Handle tables.
3872 (html_text::do_emittext): Use `nl()'.
3873 (html_text::do_para): Handle table.
3874 (html_text::remove_def): New function.
3875 * src/devices/grohtml/output.cc (word, word_list): Implement
3877 (simple_output::end_line): Flush last word.
3878 (simple_output::simple_comment): Ditto.
3879 (simple_output::begin_comment): Recoded.
3880 (simple_output::end_comment): Ditto.
3881 (simple_output::comment_arg): Removed.
3882 (simple_output::check_newline): Improve test and flush last word.
3883 (simple_output::space_or_newline): Improved.
3884 (simple_output::write_newline): Replaced with...
3885 (simple_output::nl): This.
3886 (simple_output::put_raw_char): Flush last word.
3887 (simple_output::check_space): Removed.
3888 (simple_output::put_translated_string): Ditto.
3889 (simple_output::put_string): Simplified.
3890 (simple_output::put_number): Updated.
3891 (simple_output::put_float): Ditto.
3892 (simple_output::put_symbol): Removed.
3893 (simple_output::enable_newlines): Add `check_newline()'.
3894 (simple_output::flush_last_word): New function.
3896 * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
3897 * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
3899 * tmac/s.tmac (@PP, @IP): Add html conditional code.
3900 * tmac/an-old.tmac (TP): Ditto.
3902 2001-03-09 Ruslan Ermilov <ru@freebsd.org>
3904 * mdate.sh: Make it POSIX compliant.
3906 2001-03-09 Werner LEMBERG <wl@gnu.org>
3908 Added the `return' request to end a macro immediately. It simply
3909 pops iterators from the input stack until a macro iterator is found.
3911 * src/roff/troff/input.cc (input_iterator::is_macro,
3912 macro_iterator::is_macro): New member.
3913 (input_return_boundary): New class to signal an immediate return
3915 (input_stack::add_return_boundary, input_stack::is_return_boundary):
3917 (input_stack::clear): Use it.
3918 (input_stack::pop_macro): New function.
3919 (while_request): Use `is_return_boundary()'.
3920 (return_macro_request): New function.
3921 (init_input_requests): Use it.
3923 * src/roff/troff/TODO: Updated.
3924 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
3926 2001-03-08 Werner LEMBERG <wl@gnu.org>
3928 * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
3931 2001-03-07 Werner LEMBERG <wl@gnu.org>
3933 Make `\B' more rigid.
3935 * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
3937 (get_number_rigidly): New function.
3938 * src/roff/troff/input.cc (do_expr_test): Use it.
3939 * src/roff/troff/token.h: Updated.
3941 * src/roff/troff/request.h: Fix typo (init_html_request ->
3942 init_markup_request).
3944 2001-03-04 Gaius Mulley <gaius@glam.ac.uk>
3946 Fixed grohtml handling of any named glyph for glyph indexes < 0x80.
3947 Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
3948 are now `.begin', `.end', `.image'.
3950 * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
3951 (html_printer::add_to_sbuf): Changing type of `code' parameter.
3952 Use add_char_to_sbuf().
3953 (to_unicode): New function.
3954 (char_translate_to_html): Changing type of `ch' parameter.
3956 (html_printer::~html_printer): Comment out doctype string.
3957 * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
3958 instead of `.html-end'.
3959 (write_start_image): Use `.begin' and `.image' instead of
3960 `.html-begin' and `.html-image'.
3961 * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
3962 (html_begin): Renamed to ...
3964 (html_end): Renamed to ...
3966 (html_image): Renamed to ...
3968 (init_html_requests): Renamed to ...
3969 (init_markup_requests): This.
3970 * tmac/www.tmac: Updated.
3972 2001-02-28 Bram <bram@avontuur.org>
3974 * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
3977 2001-02-26 David Leonard <david.leonard@csee.uq.edu.au>
3979 * doc/meref.me: Fixing some typos.
3981 2001-02-16 Werner LEMBERG <wl@gnu.org>
3983 * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
3984 method. Return `HYPHEN_MIDDLE' if it was `\:'.
3985 * src/roff/troff/node.h: Updated.
3987 2001-02-17 Ruslan Ermilov <ru@FreeBSD.org>
3989 * tmac/groff_tmac.man: Fix typo.
3991 2001-02-16 Werner LEMBERG <wl@gnu.org>
3993 Fixing a bug which prevented proper end-of-sentence recognition
3994 between an `unformatted' box and the following text. As a
3995 consequence, vertical line distances are no longer preserved in
3996 boxes after a call to `.unformat' -- because boxes aren't
3997 line-oriented (contrary to diversions), this doesn't make sense
4000 * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
4002 (vertical_size_node::set_unformat_flag): New method.
4003 * src/roff/troff/node.hh: Updated.
4004 * src/roff/troff/input.cc (word_space_node::reread,
4005 hmotion_node::reread): Reset `unformat' flag after usage.
4006 (unformat_macro): Append only if `set_unformat_flag()' returns
4008 * src/roff/troff/troff.man: Updated.
4010 2001-02-15 Werner LEMBERG <wl@gnu.org>
4012 * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
4013 documentation of `asciify' and `unformat' requests.
4015 2001-02-13 Werner LEMBERG <wl@gnu.org>
4017 Redesigned the `unformat' request. It is no longer connected with
4018 `asciify' but rather uses new `reread()' methods if the `unformat'
4019 flag is set. Additionally, the handling of space characters after
4020 unformatting has been fixed so that they retain their width.
4022 * src/roff/troff/node.h (width_list): New structure to store
4023 original widths of spaces.
4024 (node): Added `unformat' member.
4025 Replaced `num_spaces' variable with `orig_width' list.
4026 * src/roff/troff/node.cc (*node::asciify,
4027 asciify_reverse_node_list): Removed `unformat_only' flag and related
4029 (word_space_node::asciify, word_space_node::word_space_node): Use
4031 (word_space_node::~word_space_node): New destructor.
4032 (word_space_node::copy): Updated to handle `orig_width'.
4033 (hmotion_node::copy, unbreakable_space_node::copy): Updated.
4034 (*node::merge_space): Update `orig_width' list if necessary.
4035 (*node::set_unformat_flag): New methods to set the `unformat' flag.
4036 * src/roff/troff/enc.cc (environment::space_newline): Use
4038 (environment::space): Added method to handle space width and
4039 sentence space width as parameters. Use `width_list'.
4040 (environment::make_tab_node): Updated.
4041 * src/roff/troff/env.h: Updated.
4042 * src/roff/troff/input.cc (word_space_node::reread,
4043 unbreakable_space_node::reread, hmotion_node::reread): New methods
4044 to handle nodes specially if `unformat' flag is set.
4045 (do_asciify_macro): Renamed back to ...
4046 (asciify_macro): This.
4047 (unformat_macro): New implementation to simply set the `unformat'
4050 * MORE.STUFF: Added more info about deroff.
4052 2001-02-08 Werner LEMBERG <wl@gnu.org>
4054 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
4055 space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
4056 and `add_self()' methods to avoid hyphenation. For example, the
4057 hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
4058 soft hyphen after `foo'. Now the hyphen list is correctly
4059 `foo<ignore><ignore>bar'.
4061 2001-02-05 Yoshiteru Kageyama <yt-kage@cb3.so-net.ne.jp>
4063 * tmac/groff_tmac.man: Fix `BIR' macro.
4065 2001-02-04 Werner LEMBERG <wl@gnu.org>
4067 A new escape sequence `\:', inserting a zero-width break point.
4069 * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
4070 * src/roff/troff/input.cc (get_copy, token::next, asciify):
4072 * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
4074 (space_node): Add `was_escape_colon' member. Add `is_escape_colon()'
4075 and `asciify()' methods.
4076 * src/roff/troff/node.cc (space_node::space_node): Updated.
4077 (space_node::asciify): Handle `was_escape_colon'.
4078 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4080 Handle `\~' similar to other comparable requests.
4082 * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
4084 (token::next): Move creation of an unbreakable_space_node to...
4085 (token::add_to_node_list): Here.
4087 Fix a bug which sometimes prevented hyphenation of words connected
4088 with `\~' or `\ ' (and other escape sequences handled as
4089 TOKEN_NODE). This also fixes a hyphenation problem with boxes
4090 (after a call to the `unformat' request).
4092 * src/roff/troff/env.h (environment::possibly_break_line,
4093 environment::hyphenate_line): Introducing `start_here' parameter.
4094 * src/roff/troff/env.cc (environment::space_newline,
4095 environment::space): Use it.
4096 (environment::possibly_break_line, environment::hyphenate_line):
4098 * src/roff/troff/input.cc (process_input_stack): Use it.
4099 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
4100 space_char_hmotion_node, overstrike_node): Add
4101 `get_hyphenation_type()' method.
4102 * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
4103 if `unformat_only' is active.
4105 2001-01-30 Werner LEMBERG <wl@gnu.org>
4107 Implemented new read-only number register `.linetabs' which
4108 returns 1 if in line-tabs mode, 0 otherwise.
4110 * src/roff/troff/env.h (environment): Add get_line_tabs() member.
4111 * src/roff/troff/env.cc (get_line_tabs): New function.
4112 (init_env_requests): Use it.
4113 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4115 * VERSION, REVISION: Changing to 1.17.0.
4117 2001-01-28 Werner LEMBERG <wl@gnu.org>
4119 Fixed a bug which prevented hyphenation of words which are finished
4122 * src/roff/troff/token.h (token): Add enum type
4123 `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
4124 * src/roff/troff/input.cc (token::next, token::description,
4125 get_line_arg, token::add_to_node_list, token::process): Use it.
4127 2001-01-27 Werner LEMBERG <wl@gnu.org>
4129 * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
4130 * src/roff/troff/div.cc (do_divert): Use it.
4132 * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
4134 2001-01-25 Werner LEMBERG <wl@gnu.org>
4136 Adding the `linetabs' request. If set, tab distances are not
4137 computed relative to the input line but relative to the output line.
4139 * src/roff/troff/env.h (environment): New member `line_tabs'.
4140 * src/roff/troff/env.cc (line_tabs_request): Implement request.
4141 (environment::environment, environment::copy): Updated.
4142 (environment::distance_to_next_tab): Use `line_tabs'.
4143 (init_env_requests): Register request.
4144 * src/roff/troff/troff.man, man/groff.man, NEWS: Document it. Other
4147 2001-01-24 Werner LEMBERG <wl@gnu.org>
4149 Introducing a new read-only register `.int' which is set to a
4150 positive value if the last output line is interrupted (i.e., if it
4153 * src/roff/troff/env.cc (init_env_requests): Add it.
4154 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4156 2001-01-23 Gaius Mulley <gaius@glam.ac.uk>
4158 * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
4159 * src/preproc/html/pre-html.cc (findPrefix): New function which
4160 generates the troff executable name via the system prefix.
4161 * src/preproc/eqn/main.cc: Modified warning message.
4163 2001-01-23 Werner LEMBERG <wl@gnu.org>
4165 troff's `box' and `boxa' requests didn't preserve temporary
4168 * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
4169 `saved_target_text_length' members.
4170 * src/roff/troff/div.cc (do_divert): Use them.
4172 Tabs (but not yet leaders and fields) are now handled correctly by
4175 * node.h (hmotion_node): Add field `was_tab'.
4176 * env.cc (environment::make_tab_node): Set it.
4177 * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
4179 Added new request `unformat' which will, contrary to `asciify',
4180 preserve font information after unformatting (i.e., only nodes
4181 dealing with horizontal space are converted back to input
4184 * input.cc (asciify_macro): Renamed to ...
4185 (do_asciify_macro): this, having a new parameter `unformat_only'.
4186 (asciify_macro, unformat_macro): New; using do_asciify_macro.
4187 (init_input_requests): Added `unformat'.
4188 * node.cc (*_node::asciify), asciify_reverse_node_list: Added
4189 parameter to control asciification process.
4190 * node.h (*_node::asciify): Ditto.
4191 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4193 2001-01-20 Werner LEMBERG <wl@gnu.org>
4195 * doc/groff.texinfo: Minor improvement of `.in' documentation.
4197 2001-01-18 Werner LEMBERG <wl@gnu.org>
4199 * tmac/ps.tmac: Remove call of psold.tmac.
4200 * tmac/psold.tmac: Comment updated.
4201 * tmac/psnew.tmac: Removed since no longer needed.
4202 * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
4204 * font/devutf8/R.proto: Adding `shc' glyph.
4205 * font/devutf8/NOTES: Updated.
4207 * test-groff: Updated.
4209 2001-01-15 Gaius Mulley <gaius@glam.ac.uk>
4211 First cut of the new html device driver. Changes to pre-html and
4212 the new grohtml are too numerous to be documented here.
4214 Stuff related to `html' has been renamed to `html-old' and `html2'
4215 stuff has been renamed to `html' (including directories). The new
4216 html device driver is therefore invoked as `-Thtml'.
4218 Added new `\O' escape to suppress output (needed by html driver).
4220 Added functions and code to pass info about input-level commands
4221 (`.in', `.fl', etc.) to html driver.
4223 Three new functions (.html-begin, .html-end, and .html-image) for
4224 better html handling: `html-begin' will execute the remaining line
4225 if at the outermost nesting level, increasing an internal counter.
4226 `html-end' does the same but decreases the internal counter.
4227 `html_image' puts its arguments into a special node (suppress_node)
4228 to define an image region.
4230 The `output' request has been removed.
4232 * tmac/html-tags.tmac: Removed.
4233 * tmac/arkup.tmac: Updated and renamed to ...
4234 * tmac/www.tmac: New file.
4235 * tmac/markup.tmac Updated and renamed to ...
4236 * tmac/mwww.tmac: New file.
4237 * tmac/Makefile.sub: Updated.
4238 * tmac/an-old.tmac: Updated.
4239 * tmac/eqnrc: Updated.
4240 * tmac/groff_man.man
4241 * tmac/groff_markup.man: Updated and renamed to ...
4242 * tmac/groff_mwww.man: New file.
4243 * tmac/groff_tmac.man: Updated.
4244 * tmac/html-old.tmac: Updated and Renamed from html.tmac.
4245 * tmac/html.tmac: Updated and renamed from html2.tmac.
4246 * tmac/pspic.tmac: Updated html support.
4247 * tmac/s.tmac: Added html output support.
4248 * tmac/troffrc, tmac/troffrc-end: Updated.
4250 * Makefile.in, doc/Makefile: Updated.
4251 * doc/groff.texinfo: Added info about new `\O' escape.
4252 * doc/homepage.ms: Use `MAILTO' macro.
4254 * font/devhtml/DESC.proto: Add `C' font.
4255 * font/devhtml/Makefile.sub: Updated.
4256 * font/devhtml/R.proto: Minor fixes.
4257 * font/devhtml-old/Makefile.sub: Updated.
4259 * src/devices/grohtml-old/Makefile.sub: Updated.
4261 * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
4263 * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
4264 graphic_start): Add `inline' parameter. Update.
4265 (html_end_suppress, graphic_end): Update.
4267 * src/include/html-strings.h: New file.
4268 * src/include/htmlindicate.h: Comments updated.
4269 * src/include/printer.h: Updated.
4271 * src/preproc/eqn/main.cc (do_file, main): Updated.
4272 * src/preproc/pic/troff.cc (troff_output::start_picture,
4273 troff_output::finish_picture): Updated.
4274 * src/preproc/tbl/main.cc (process_input_file): Updated.
4276 * src/roff/groff/groff.cc (main): Updated.
4277 Pass device arguments to predrivers also.
4278 Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
4279 * src/roff/troff/env.h (environment): Updated.
4280 New elements `need_eol' and `ignore_next_eol' (for html output).
4281 * src/roff/troff/env.cc (environment::environment): Add initializers
4282 for `need_eol' and `ignore_next_eol'.
4283 (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
4285 (point_size, fill, no_fill, center, right_justify, line_length,
4286 indent, temporary_indent, break_request, handle_tab): Use
4288 (set_tabs): Use `add_html_tag_tabs()'.
4289 (environment::add_html_tag): Updated.
4290 (environment::do_break): Updated.
4291 * src/roff/troff/div.cc (space_request, flush_output): Use
4292 `environment::add_html_tag()'.
4293 * src/roff/troff/input.cc: Updated.
4294 New variable `html_level' to indicate nested `html-begin' requests.
4295 (file_iterator::fill): Use `environment::add_html_tag_eol()'.
4296 (non_interpreted_char_node, token_node, non_interpreted_node): Add
4297 `force_tprint()' method.
4298 (token::next): Handle `\O'.
4299 (do_suppress): Implement it.
4300 (html_begin, html_end, html_image): New functions.
4301 (init_output_requests): Renamed to ...
4302 (init_html_requests): this.
4304 (macro::append_str, macro::append_unsigned, macro::append_int): New
4306 New variable `output_low_mark_miny' to limit minimal value of y.
4307 (reset_output_registers): Use it.
4308 (output_request): Removed.
4309 (get_output_registers): New function.
4310 * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
4311 (*_node): Added `force_tprint()' if necessary.
4312 (special_node): New elements `tf' and `get_tfont()'.
4313 (suppress_node): New class.
4314 * src/roff/troff/node.cc:
4315 New global variables `image_no' and `suppress_start_page'.
4316 (real_output_file): New method `is_on()'.
4317 (troff_output_file): New method `start_special(tfont)'.
4318 (troff_output_file::really_print_line): Use `tprint' conditionally.
4319 (real_output_file::print_line): Updated.
4320 (real_output_file::on): Updated.
4321 (*_node): Added `force_tprint()'.
4322 (special_node::special_node): Initializer updated.
4323 (special_node::same, special_node::copy, special_node::tprint_start):
4325 (get_reg_int, get_reg_str): New functions.
4326 (suppress_node::*): New methods.
4327 New global variables last_position, last_image_filename;
4328 (min): New inline function.
4329 * src/roff/troff/reg.h, src/roff/troff/request.h,
4330 src/roff/troff/troff.h: Updated.
4332 2001-01-13 Werner LEMBERG <wl@gnu.org>
4334 * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
4335 documentation of `asciify' request.
4337 2001-01-12 Werner LEMBERG <wl@gnu.org>
4339 * src/roff/troff/input.cc: Move definition of special characters
4340 like `ESCAPE_TILDE' to ...
4341 * src/roff/troff/input.h: New file.
4342 * src/roff/troff/Makefile.sub (HDRS): Add it.
4344 Extending the .asciify request to `unformat' space characters also.
4346 * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
4347 to count input space characters.
4348 Update constructors to take care of it.
4349 * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
4350 `ESCAPE_SPACE' instead of normal space.
4351 (word_space_node::asciify): New method.
4352 (unbreakable_space_node::asciify): New method.
4353 (word_space_node::merge_space): New method.
4354 * src/roff/troff/env.cc (environment::space_newline,
4355 environment::space): Add code to initialize `num_spaces' (using the
4356 constructor of `word_space_node').
4357 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
4360 2001-01-09 Werner LEMBERG <wl@gnu.org>
4362 * man/groff_char.man: Use table header traps only conditionally.
4364 2001-01-09 Bjarni Ingi Gíslason <bjarniig@hi.is>
4366 * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
4368 2001-01-08 Werner LEMBERG <wl@gnu.org>
4370 Introducing the `box' and `boxa' requests which are similar to
4371 `di' resp. `da' but omitting a partially filled line (which is
4372 restored after ending the diversion).
4374 * src/roff/troff/div.h (diversion): Add elements to save partially
4376 * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
4377 partially filled line.
4378 (divert, divert_append): Updated.
4379 (box, box_append): New functions.
4380 (init_div_requests): Use them.
4381 * src/roff/troff/env.h (environment): do_divert() is now a friend.
4382 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4384 * doc/groff.texinfo: Fix documentation of `lf' request.
4386 2000-12-25 Werner LEMBERG <wl@gnu.org>
4388 * src/roff/troff/troff.man, NEWS: Document `writem' request.
4390 2000-12-21 Werner LEMBERG <wl@gnu.org>
4392 Ignore `ss' request if in compatibility mode.
4394 * src/roff/troff/input.cc: Make `compatible_flag' non-static.
4395 * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
4396 * src/roff/troff/env.cc (space_size): Use it.
4398 * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
4399 `ss' request in nroff mode.
4401 * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
4404 2000-12-15 Ruslan Ermilov <ru@FreeBSD.org>
4406 * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
4408 2000-12-13 Werner LEMBERG <wl@gnu.org>
4410 * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
4411 * src/preproc/eqn/neqn.man: Small fixes and additions.
4413 2000-12-13 Ruslan Ermilov <ru@FreeBSD.org>
4415 * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
4418 * src/preproc/eqn/neqn.man: New file.
4420 * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
4423 * tmac/e.tmac: Add `T&' macro.
4424 Fix `indent cannot be negative' warning.
4425 * tmac/s.tmac: Fix `indent cannot be negative' warning.
4427 2000-12-07 Werner LEMBERG <wl@gnu.org>
4429 * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
4431 2000-12-06 Werner LEMBERG <wl@gnu.org>
4433 * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
4436 * MORE.STUFF: Added info about deroff for djgpp.
4438 * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
4439 documentation of -rcR switch.
4441 2000-12-03 Werner LEMBERG <wl@gnu.org>
4443 * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
4444 if -rcR=1 (which is now the default in nroff mode), a single, very
4445 long page is created instead of multiple pages: All `ne' and `wh'
4446 requests are put into conditionals; a new macro `an-end' is added to
4447 be called with `em'.
4449 Some other minor cleanups.
4451 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
4453 2000-12-02 Werner LEMBERG <wl@gnu.org>
4455 Fixing a bug which prevented hyphenation in words followed
4456 immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
4458 * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
4459 Adding possibly_break_line().
4460 * src/roff/troff/env.h (environment): Make possibly_break_line()
4463 Make `\~' usable in .tr request.
4465 * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
4466 (token): Add stretchable_space().
4467 * src/roff/troff/input.cc (token::next, token::delimiter,
4468 token::description, process_input_stack, do_translate,
4469 add_to_node_list, token::process): Use it.
4470 * src/roff/troff/node.h (node): Add fourth parameter to add_char()
4471 for adjusting the space.
4472 * src/roff/troff/node.cc (node::add_char): Implement it. Add code
4473 for stretchable space.
4474 * src/roff/troff/input.cc (token::add_to_node_list): Use it.
4475 (make_node): Add code for stretchable space.
4476 * src/roff/troff/env.cc (environment::add_char): Use it.
4477 * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
4478 (get_copy, token::next, transparent_translate, asciify): Use it.
4480 * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
4481 doc/groff.texinfo: Updated.
4482 * man/groff.man: Small reorderings.
4484 2000-11-23 Werner LEMBERG <wl@gnu.org>
4487 * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
4489 * src/roff/troff/input.cc (main): Add `config_macro_path' and
4490 `safer_macro_path' to -M option.
4491 * src/roff/troff/troff.man: Fixes.
4493 2000-11-22 Werner LEMBERG <wl@gnu.org>
4495 Use safer path (except for config files) if -U isn't specified. Add
4496 a special macro path (without home and current directory) for config
4497 files. Add home directory to unsafe path for consistency. Don't
4498 include the home directory in the font path.
4500 * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
4502 * src/include/macropath.h: Add `config_macrp_path'.
4503 * src/libs/libgroff/fontfile.cc: Fix font path.
4504 * src/roff/troff/input.cc (process_startup_file): Use
4505 `config_macro_path'.
4506 (main): Select unsafe path if -U is given.
4508 * src/preproc/eqn/main.cc (main): Fixing search path for
4510 * src/preproc/eqn/eqn.man: Updated.
4512 * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
4515 * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
4516 src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
4517 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
4518 src/devices/grotty/grotty.man: Updated.
4520 * Makefile.in: Fix comments.
4522 2000-11-17 Werner LEMBERG <wl@gnu.org>
4524 * tmac/safer.tmac: Empty file added (again) for compatibility
4526 * tmac/Makefile.sub: Updated.
4528 2000-11-16 Werner LEMBERG <wl@gnu.org>
4530 * src/devices/grodvi/dvi.cc (main),
4531 src/devices/grohtml2/post-html.cc (main),
4532 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
4533 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
4534 (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
4535 (main), src/preproc/html2/pre-html.cc (main),
4536 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
4537 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
4538 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
4539 (main), src/utils/hpftodit/hpftodit.cc (main),
4540 src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
4541 (main), src/utils/lookbib/lookbib.cc (main),
4542 src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
4543 (main): Use stdout for -v.
4544 * src/roff/groff/groff.cc (run_commands),
4545 src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
4546 to make direct printing to stdout possible.
4547 * src/roff/groff/pipeline.h: Updated.
4549 * src/utils/afmtodit/afmtodit.pl: Add -v switch.
4550 * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
4551 * src/utils/afmtodit/afmtodit.man: Updated.
4553 * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
4554 (version): New function.
4556 * src/utils/addftinfo/addftinfo.man: Updated.
4558 * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
4559 Fixing copyright dates.
4561 * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
4564 * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
4567 * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
4569 2000-11-15 Werner LEMBERG <wl@gnu.org>
4571 In all programs, make -v return immediately with exit status 0 to
4572 be compliant with the GNU standard.
4574 * src/devices/grodvi/dvi.cc (main),
4575 src/devices/grohtml2/post-html.cc (main),
4576 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
4577 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
4578 (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
4579 (main), src/preproc/html2/pre-html.cc (main),
4580 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
4581 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
4582 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
4583 (main): Implement it.
4586 * src/roff/groff/groff.cc (main): Add copyright notice. Add refer
4587 and postprocessors to the -v option.
4589 * src/roff/grog/grog.pl: Implement -v.
4590 * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
4591 * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
4593 * src/roff/nroff/nroff.sh: Implement -v.
4594 * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
4595 * src/roff/nroff/nroff.man: Updated.
4597 * src/preproc/eqn/main.cc (main): Fix comment typo.
4599 * MORE.STUFF: Added info about djgpp port of grap.
4601 2000-11-14 Werner LEMBERG <wl@gnu.org>
4603 * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
4604 mode (or rather, implemented non-compatibility mode).
4605 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
4607 * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
4608 replacing it -- we don't find gxditview otherwise.
4609 * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
4611 * src/preproc/pic/depend: Removed. Unnecessary.
4613 Implemented dummy keyword `solid' in pic for compatibility with
4616 * lex.cc (lookup_keyword): Added `solid'.
4617 * pic.y: Added SOLID with dummy rule.
4618 * pic.cc, pic_tab.h: Regenerated.
4619 * doc/pic.ms: Updated.
4621 2000-11-13 Werner LEMBERG <wl@gnu.org>
4623 For security reasons, don't use the current directory but the home
4624 directory while searching and scanning troffrc and troffrc-end.
4625 Similarly, replace the current directory with the home directory
4628 * Makefile.in (fontpath, tmacpath): Remove current directory.
4630 * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
4631 two parameters `add_home' and `add_current'.
4632 (search_path::~search_path, search_path::command_line_dir,
4633 search_path::open_file): Remove tests for `dirs' being zero.
4634 * src/include/searchpath.h: Adjust.
4635 * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
4637 * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
4639 * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
4640 * src/roff/troff/input.cc: Use `mac_path', initialized with
4642 (process_startup_file): Set `mac_path' to `safer_macro_path'.
4643 * src/roff/troff/env.cc: Use `mac_path'.
4645 * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
4647 * NEWS, man/roff.man, src/roff/troff/troff.man,
4648 src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
4651 2000-11-12 Werner LEMBERG <wl@gnu.org>
4653 * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
4655 * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
4656 * configure.in: Fix typo in comment.
4657 * configure: Regenerated.
4659 * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
4662 2000-11-08 Werner LEMBERG <wl@gnu.org>
4664 Add system tmac directory (/usr/local/lib/groff/site-tmac).
4666 * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
4667 (uninstall_dirs): Add $(libdir), $(libprogramdir), and
4670 * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
4671 * tmac/Makefile.sub (install_data): Create
4672 $(systemtmacdir) and $(localtmacdir).
4673 (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
4674 * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
4675 NEWS, doc/groff.texinfo: Updated and minor fixes.
4677 * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
4678 * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
4679 $(systemtmacdir) since the wrapper files are platform-dependent.
4681 2000-11-01 Werner LEMBERG <wl@gnu.org>
4683 * doc/groff.texinfo: Fix typo.
4685 2000-10-26 Werner LEMBERG <wl@gnu.org>
4687 Convert macros `tmac.XXX' to `XXX.tmac'. Special cases:
4688 tmac.doc.old -> doc-old.tmac
4689 tmac.an.old -> an-old.tmac
4691 * tmac/tmac.*: Moved to ...
4692 * tmac/*.tmac: this.
4693 * tmac/man.local: Fix comment.
4694 * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
4695 tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated.
4696 Added some `FILES' sections. More use of @...@ directives. Other
4698 * arch/djgpp/README, font/devutf8/NOTES: Updated.
4699 * doc/homepage.ms, doc/groff.texinfo: Updated.
4700 * man/groff.man, man/roff.man: Updated.
4701 * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
4702 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
4703 src/devices/grotty/grotty.man: Updated.
4704 * src/preproc/pic/pic.man: Updated.
4705 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
4706 instead of -mdoc.old.
4707 * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
4708 * src/roff/nroff/nroff.man: Updated.
4711 * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
4713 * tmac/mm.diff: Removed -- it has no use now since the mm package
4716 * tmac/*: Removed trailing spaces.
4718 * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
4719 the tmac subdirectory also).
4721 * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
4722 * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
4723 stuff since it is no longer needed.
4725 * README, PROBLEMS: Updated.
4727 2000-10-25 Werner LEMBERG <wl@gnu.org>
4729 Invert current behaviour: Search first FOOBAR.tmac, then
4732 * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
4733 (open_mac_file, macro_source): Implement it.
4734 * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
4735 doc/groff.texinfo, NEWS: Document it.
4737 * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
4738 Small documentation improvements.
4740 * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
4743 * font/devps/Makefile.sub: Fix rules for dingbats.*map.
4745 2000-10-24 Werner LEMBERG <wl@gnu.org>
4747 Add local tmac directory (groff/site-tmac).
4749 * Makefile.in: Add $(localtmacdir).
4750 (uninstall_dirs): Add $(localtmacdir).
4751 * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
4752 * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
4753 in $(localtmacdir). Create $(localtmacdir).
4754 * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
4755 Updated and minor fixes.
4757 Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
4759 * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
4761 2000-10-23 Werner LEMBERG <wl@gnu.org>
4763 Move hyphen.us to tmac directory.
4765 * src/roff/troff/hyphen.us: Removed.
4766 * src/tmac/hyphen.us: Added.
4767 * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
4769 Change installation structure for data files from .../groff/... to
4770 .../groff/<version><revision>/... to be conform with other GNU
4773 * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
4774 doc/Makefile: Implement it.
4775 * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
4776 * configure: Updated.
4777 * arch/djgpp/README, font/devutf8/NOTES: Use it.
4778 * NEWS: Document it.
4779 * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
4780 @MACRODIR@ instead of hard-coded directories.
4782 2000-10-22 Werner LEMBERG <wl@gnu.org>
4784 Implement $GROFF_BIN_PATH environment variable (which defaults to
4785 $bindir) used for child programs of groff and similar wrappers.
4787 * gendefs.sh: Improve documentation.
4788 * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
4789 src/preproc/eqn/Makefile.sub (neqn),
4790 src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
4791 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
4793 * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
4794 $GROFF_PATH__ (the latter for communication with troff).
4795 * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
4797 * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
4798 doc/groff.texinfo: Document it.
4800 * doc/groff.texinfo: Improve documentation of troff's -a option.
4802 2000-10-17 Gaius Mulley <gaius@glam.ac.uk>
4804 * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
4805 non-intrusive eol marker.
4806 (troff_output_file::determine_line_limits): New function.
4807 (troff_output_file::draw): Use it.
4808 * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
4809 output_pending_lines() instead of output_line().
4810 * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
4811 * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
4812 createImage): Small fixes.
4814 2000-10-14 Werner LEMBERG <wl@gnu.org>
4816 Replace tmac.safer with a real secure solution.
4818 * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
4819 system_request, pipe_output): Disable requests if in safer mode.
4820 * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
4821 * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
4822 * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
4823 doc/groff.texinfo, src/roff/groff/groff.man,
4824 src/roff/troff/troff.man, arch/djgpp/README: Updated.
4826 * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
4827 (resource_manager::output_prolog): Replace setenv() with putenv().
4829 2000-10-09 Werner LEMBERG <wl@gnu.org>
4831 * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
4832 src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
4833 src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
4834 src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
4835 compilation errors with some compilers. It seems that this code
4836 is no longer necessary -- if yes, it is easy to add some #ifdef's
4837 for that particular old-fashioned compiler.
4839 * MORE.STUFF: Added info about Meta-tbl.
4841 * doc/groff.texinfo: Added more info about `.if "..."..."'.
4843 2000-10-07 Werner LEMBERG <wl@gnu.org>
4845 Adding a new escape sequence \B'...': If the string between
4846 the delimiters is a valid numeric expression, return the character
4847 `1', and `0' otherwise. This is an analogon to \A.
4849 * src/roff/troff/input.cc (do_expr_test): Implement it.
4850 (token::next): Use it.
4851 * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
4853 * tmac/tmac.trace: Made independent from escape character.
4855 2000-10-06 Werner LEMBERG <wl@gnu.org>
4857 Adding a new request .dei: define indirect. The first and second
4858 parameter of .dei are taken from string registers instead directly;
4859 this very special request is needed to make tmac.trace independent
4860 from the escape character (which might even be disabled).
4862 * src/roff/troff/input.cc (do_define_macro): Implement it.
4863 (define_macro_indirect): New function.
4864 (init_input_requests): Use it.
4866 Adding two requests .ecs and .ecr: Save and restore the escape
4867 character. These two requests are needed to make tmac.trace
4868 independent from the escape character (which might even be
4871 * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
4873 (init_input_requests): Use it.
4875 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
4877 2000-09-22 Ricardo Soares Guimarães <ricardo@conectiva.com.br>
4879 Adding a new option -P and new environment variable GROPS_PROLOGUE
4880 to grops, selecting a different prologue file (minor modifications
4883 * src/devices/grops/psrm.cc (resource_manager::output_prolog),
4884 src/devices/grops/ps.cc (main): Implement it.
4885 * src/devices/grops/grops.man, NEWS: Document it.
4887 2000-09-22 Werner LEMBERG <wl@gnu.org>
4889 * INSTALL: Add info about selecting paper format.
4891 2000-09-21 Werner LEMBERG <wl@gnu.org>
4893 * src/roff/troff/input.cc (main): Fixing compiler warning.
4894 * src/include/{driver.h, lib.h}: Move inclusion of string.h and
4895 strings.h from the former to the latter.
4896 * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
4897 stuff from the former to the latter.
4899 2000-09-11 Werner LEMBERG <wl@gnu.org>
4901 Implementing two new requests .tm1 and .tmc: The former is similar
4902 to .tm but can output leading spaces; its syntax is similar to
4903 defining a string, i.e., a `"' can be used to mark the beginning of
4904 the string to be written to stderr: `.tm1 " test'. The latter is
4905 similar to .tm1 but doesn't write out a final newline character.
4907 * src/roff/troff/input.cc (terminal1, terminal_continue,
4908 do_terminal): New functions.
4909 (init_input_requests): Use them.
4910 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
4912 2000-09-09 Werner LEMBERG <wl@gnu.org>
4914 * tmac/groff_mdoc.samples.man: Small fixes.
4916 2000-09-08 Werner LEMBERG <wl@gnu.org>
4918 * tmac/groff_mdoc.man: Fixing typo.
4920 2000-09-02 Werner LEMBERG <wl@gnu.org>
4922 Implementing a .nop request which does nothing.
4924 * src/roff/troff/input.cc (nop_request): New function.
4925 (init_input_requests): Use it.
4926 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
4928 2000-09-01 Werner LEMBERG <wl@gnu.org>
4930 * doc/groff.texinfo: Added some comments.
4932 2000-08-30 Werner LEMBERG <wl@gnu.org>
4934 * src/roff/troff/TODO: Updated.
4936 2000-08-25 Werner LEMBERG <wl@gnu.org>
4938 * doc/groff.texinfo: Fix comment how to compile the DVI file.
4940 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
4942 * font/devps/generate/Makefile (SHELL): Define explicitly to
4943 "/bin/sh", for non-Unix platforms.
4944 (extraclean): Use a more portable "" quoting instead of a
4945 backslash (which doesn't work on DOS/Windows).
4947 * font/devlj4/generate/Makefile (extraclean): Ditto.
4949 * font/devdvi/generate/Makefile (extraclean): Ditto.
4951 2000-08-25 Werner LEMBERG <wl@gnu.org>
4953 * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
4954 src/roff/troff/troff.man: Document Eli's latest changes.
4956 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
4958 * src/roff/troff/input.cc (open_mac_file, macro_source): Support
4959 macro file names of the form NAME.tmac as well as tmac.NAME.
4961 2000-08-25 Werner LEMBERG <wl@gnu.org>
4963 * src/include/posix.h: Remove definition of FILENAME_MAX.
4965 * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
4966 `sys_fatal' and `stop' function().
4968 * test-groff: Updated.
4970 2000-08-24 Gaius Mulley <gaius@glam.ac.uk>
4972 Added the new troff command .output <arg> to suppress output (while
4973 still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
4974 registers (for passing the output dimensions to the output device).
4976 * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
4978 * src/roff/troff/node.h, src/roff/troff/node.cc
4979 (troff_output_file::really_print_line,
4980 ascii_output_file::really_print_line,
4981 supress_output_file::really_print_line): Use `width' parameter.
4982 (troff_output_file::really_on, troff_output_file::really_off,
4983 output_file::on, output_file::off, real_output_file::on,
4984 real_output_file::off, real_output_file::really_on,
4985 real_output_file::really_off): New functions.
4986 (real_output_file:public output_file): New variable `output_on'.
4987 (real_output_file::begin_page, real_output_file::copy_file,
4988 real_output_file::transparent_char, real_output_file::print_line):
4990 (real_output_file::print_line): Use check_output_limits.
4991 * src/roff/troff/reg.h, src/roff/troff/request.h,
4992 src/roff/troff/input.cc (assign_registers): New function to remove
4994 (do_ps_file): Use it.
4995 (check_output_limits, reset_output_registers, output_request,
4996 init_output_requests): New functions.
4997 (init_input_requests): Updated.
4999 Added new grohtml2 device and html2 preprocessor (coding
5000 not yet finished) which will eventually replace grohtml.
5002 * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
5004 * src/include/htmlindicate.h, src/include/htmlindicate
5005 (html_begin_suppress, html_end_suppress): New functions.
5006 * src/preproc/tbl/main.cc: Use it.
5007 * src/roff/groff/groff.cc: Add support for html2 device (which will
5008 automatically invoke the html2 preprocessor).
5009 * src/roff/troff/input.cc (is_html2): New variable.
5010 * src/roff/troff/troff.h, src/roff/troff/env.h,
5011 src/roff/troff/env.cc (environment::add_html_tag): New function
5013 (environment::do_break): Use it.
5014 * font/devhtml2/*: New files.
5015 * src/devices/grohtml2: New device.
5016 * src/preproc/html2: New preprocessor.
5017 * tmac/tmac.html-tags, tmac/tmac.html2: New files.
5019 2000-08-23 Werner LEMBERG <wl@gnu.org>
5021 * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
5023 2000-08-22 Werner LEMBERG <wl@gnu.org>
5025 * src/include/lib.h: Provide a fix for IRIX to not include
5028 2000-08-18 Werner LEMBERG <wl@gnu.org>
5030 * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
5031 since some non-GNU sed programs can't handle null regexps.
5032 * configure, src/preproc/eqn/Makefile.sub,
5033 src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
5035 * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
5036 bug (string.h and strings.h are both needed according to latest
5039 * MORE.STUFF: Added info about unroff and troffcvt.
5041 2000-08-08 Werner LEMBERG <wl@gnu.org>
5043 * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
5046 * tmac/tmac.man.old: Remove unused number register.
5048 * tmac.doc: Minor documentation fix.
5050 2000-08-07 Paul Eggert <eggert@twinsun.com>
5052 * src/roff/groff/pipeline.c (is_system_shell):
5053 Fix typo: "monocased_shell" no longer exists.
5055 2000-08-07 Paul Eggert <eggert@twinsun.com>
5057 Remove FILENAME_MAX limits.
5059 * src/roff/groff/pipeline.c (is_system_shell): Do not assume
5060 that the argument length is less than FILENAME_MAX.
5061 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
5062 Use struct hack to allocate and free file name.
5063 (struct xtmpfile_list): fname is now part of the structure,
5064 not a pointer to another string.
5066 2000-08-07 Tom Schmidt <tschmidt@micron.com>
5068 * src/include/posix.h: Add a default value for FILENAME_MAX.
5070 2000-08-06 Paul Eggert <eggert@twinsun.com>
5072 Add support for new BSD-style man pages (with ".Dd" instead of
5073 ".TH"), so that "groff -man" understands both styles, even
5074 when running "groff -man" on a host whose system man page
5075 macros don't support ".Dd".
5077 * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
5078 (stamp-wrap): Source tmac.andoc first when wrapping man macros,
5079 in case the system man macros don't define Dd or TH.
5081 * tmac/tmac.an.old: Renamed from tmac/tmac.an.
5082 * tmac/tmac.an: New one-line file.
5083 * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
5085 2000-08-06 Werner LEMBERG <wl@gnu.org>
5087 * src/roff/troff/troff.man: Fixing typos.
5089 Version 1.16.1 released
5090 =======================
5092 2000-07-31 Werner LEMBERG <wl@gnu.org>
5094 Preparing release 1.16.1.
5096 * REVISION: Revision number set to 1.
5097 * MORE.STUFF: Added info about port to DOS.
5098 * NEWS, win32-diffs: Updated.
5100 * src/include/nonposix.h: Remove first line -- this file is used
5103 * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
5106 2000-07-30 Werner LEMBERG <wl@gnu.org>
5108 * doc/texinfo.tex: Update to latest version.
5110 2000-06-28 Paul Eggert <eggert@twinsun.com>
5112 * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
5113 commands that fail. Don't assume that "export a=b" is valid shell
5114 syntax. This is needed for Solaris 2.5.1.
5116 * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
5117 comment about missing Solaris headers.
5119 * PROBLEMS: Add section about problems with Sun Make and VPATH.
5121 2000-06-25 Werner LEMBERG <wl@gnu.org>
5123 * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
5126 * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
5128 * win32-diffs: Updated.
5129 * README.WIN32: Added CRs to make all Windows editors happy.
5131 * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
5132 src/roff/groff/pipeline.c).
5134 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
5136 * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
5137 $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
5139 2000-06-17 Eli Zaretskii <eliz@is.elta.co.il>
5141 * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
5142 (tfm::load, gf::load): Open tfm and gf files in binary mode: these
5144 (main): Support non-Posix systems with several different styles of
5145 slash characters in file names.
5147 * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
5148 (main) [SET_BINARY]: Switch stdin into binary mode.
5150 * src/utils/indxbib/indxbib.cc: #include nonposix.h.
5151 (main): Support file names with several possible slash-type
5152 characters, as given by DIR_SEPS[] in nonposix.h.
5153 (main) [__MSDOS__]: If renaming the temporary index file fails
5154 because it has more than one dot in its trunk, replace the dot
5155 with an underscore and try again.
5156 (do_file): Use FOPEN_RB instead of "r". Skip every CR before a
5158 [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
5160 * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
5161 (File::File): Open the input file in binary mode. Strip CR
5162 characters from each CR-LF pair.
5163 (xbasename): Support file names with several possible slash-type
5164 characters, as given by DIR_SEPS[] in nonposix.h.
5166 * src/include/Makefile.sub (HDRS): Add nonposix.h.
5168 * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
5169 (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
5170 [!_POSIX_VERSION]: Define for traditional Unix systems.
5171 (real_output_file::real_output_file): Remove the MSVC-specific
5172 call to popen, use instead POPEN_WT, appropriately defined on
5173 nonposix.h. #include nonposix.h.
5174 (real_output_file::~real_output_file): Remove the MSVC-specific
5175 call to pclose, a suitable macro is now defined on nonposix.h.
5176 Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
5177 and WEXITSTATUS instead of assuming traditional Unix
5178 interpretation of the status returned by pclose.
5180 * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
5181 call to popen, use POPEN_RT instead (appropriately defined on
5182 nonposix.h). #include nonposix.h.
5183 (ps_bbox_request): Open the PostScript file in binary mode.
5184 Close the file after processing it.
5185 (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
5188 * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
5189 A version of run_pipeline that doesn't use `fork'.
5190 (signal_catcher) [__MSDOS__ || _WIN32]: New function.
5191 (system_shell_name, system_shell_dash_c)
5192 (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
5193 the ugliness of testing DOS/Windows file names for equality, and
5194 support both stock shells and ports of Unix shells.
5196 * src/roff/groff/groff.cc: #include nonposix.h.
5197 (BSHELL): Definition moved to nonposix.h.
5198 (main): Use PATH_SEP[0] instead of literal ':'. Use BSHELL_DASH_C
5199 instead of a literal "-c".
5200 (xbasename): Support file names with several possible slash-type
5201 characters, as given by DIR_SEPS[] in nonposix.h.
5202 (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
5205 * src/preproc/soelim/soelim.cc: #include nonposix.h.
5206 (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
5208 * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
5211 * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
5213 * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
5216 * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
5218 * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
5219 P_tmpdir is defined, use it instead of the literal "/tmp".
5220 (remove_tmp_files, add_tmp_file): New functions.
5221 (xtmpfile): Record temporary files and register an atexit function
5222 to delete them explicitly, instead of relying on the OS to do
5223 that, which doesn't work on non-Unix systems.
5225 * src/libs/libgroff/searchpath.cc: #include nonposix.h.
5226 (search_path::search_path): Use PATH_SEP instead of a literal
5228 (search_path::command_line_dir): Ditto.
5229 (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
5230 to support non-Posix systems.
5232 * src/libs/libbib/search.cc: #include nonposix.h.
5233 (search_list::add_file): Open the file in binary mode.
5235 * src/libs/libbib/linear.cc: #include nonposix.h.
5236 (file_buffer::load): Remove \r characters preceding \n from the
5239 * src/libs/libbib/index.cc: #include nonposix.h.
5240 (make_index_search_item): Open index_filename in O_BINARY mode.
5241 (index_search_item_iterator::get_tag): Ditto. Remove \r
5242 characters before \n characters.
5243 (index_search_item::check_files): Open files in binary mode.
5244 (index_search_item::munge_filename): Support DOS-style file names
5245 with backslashes and drive letters, use IS_ABSOLUTE.
5247 * src/devices/grops/ps.cc: #include nonposix.h.
5248 (main) [SET_BINARY]: Switch stdout to binary mode.
5250 * src/devices/grolj4/lj4.cc: #include nonposix.h.
5251 (main) [SET_BINARY]: Switch stdout to binary mode.
5253 * src/devices/grolbp/lbp.cc: #include nonposix.h
5254 (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
5256 * src/devices/grodvi/dvi.cc: #include nonposix.h.
5257 [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
5259 (main) [SET_BINARY]: Switch stdout to binary mode.
5260 [_MSC_VER]: Remove an explicit call to _setmode.
5262 * src/include/nonposix.h: New file.
5264 * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
5265 operation when building with DJGPP.
5266 ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
5267 ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
5270 * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
5272 (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
5273 etc. can include a semi-colon on DOS/Windows.
5274 (depend.temp): Use depend1.temp instead of depend.temp1, to
5275 prevent files from overerwiting each other on 8+3 filesystems.
5277 * gendef.sh (t): Change definition to work with DOS/Windows.
5279 doc/groff.texinfo: Apart of some typo corrections, I also changed
5280 some index entris, to make them more non-ambiguous, and also put
5281 @ignore around some parts that are not yet written, to allow the
5282 Info output be readable.
5284 2000-06-10 Gael Queri <gqueri@mail.dotcom.fr>
5286 Replaced specific checks for function declarations with a generic
5287 routine taken from GNU bfd.
5289 * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
5290 GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
5291 * configure.in: Use it.
5292 * src/devices/grolbp/lbp.cc, src/include/lib.h,
5293 src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
5294 src/roff/groff/groff.cc: Use it.
5295 * Makefile.in, configure: Updated.
5297 2000-06-07 Paco Andrés Verdú <pandres@dragonet.es>
5299 * src/devides/grolbp/lbp.h: Removed unused variables.
5301 2000-05-31 Keith Thompson <kst@sdsc.edu>
5303 * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
5306 2000-05-31 Werner LEMBERG <wl@gnu.org>
5308 * aclocal.m4 (GROFF_SRAND): New function to test the return value
5309 of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
5310 * configure.in: Use it.
5311 * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
5312 * configure, Makefile.in: Updated.
5314 * configure.in: Add test for strncasecmp().
5315 * src/include/lib.h: Use it.
5317 2000-05-29 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
5319 * src/preproc/grn/Makefile.sub: Add MLIB.
5321 2000-05-29 Nix <nix@esperi.demon.co.uk>
5323 * Makefile.in: Use @datadir@ and @mandir@ appropriately.
5325 2000-05-29 Werner LEMBERG <wl@gnu.org>
5327 * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
5329 * PROBLEMS: Small update.
5331 * src/devices/grolbp/lbp.cc: Various small fixes.
5333 2000-05-28 Keith Thompson <kst@sdsc.edu>
5335 * src/roff/nroff/nroff.sh: Fix main loop syntax.
5337 * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
5339 2000-05-25 Werner LEMBERG <wl@gnu.org>
5341 * man/roff.man: Removed unused macro.
5343 2000-05-24 Werner LEMBERG <wl@gnu.org>
5345 * Makefile.in (dist): Remove src/xditview/Imakefile explicitly.
5346 This is needed e.g. if you do
5347 `make distclean; ./configure; make dist'.
5349 Version 1.16 released
5350 =====================
5352 2000-05-23 Werner LEMBERG <wl@gnu.org>
5354 Adding font CWI (constant width italic) to devdvi.
5356 * font/devdvi/CWI: New file.
5357 * font/devdvi/generate/Makefile: Add generating rule.
5358 * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
5359 tmac/tmac.dvi: Use it.
5360 * NEWS: Announce it.
5362 * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
5363 * font/devlj4/generate/Makefile: Cosmetic changes only.
5365 * man/groff.man: Removed most of the redundant description of
5366 special characters (which is in groff_char.man). Added font
5367 translation CB->CR for devdvi. Other minor fixes.
5369 * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
5370 (registered) symbols.
5372 2000-05-22 Werner LEMBERG <wl@gnu.org>
5374 * doc/Makefile: Added rule for creating info files.
5376 * font/devdvi/*: Added kernings for `cq' glyph. Updated to latest
5378 * font/devdvi/generate/Makefile: Fixed dependencies.
5380 * font/devps/*: Regenerated. Heavy changes for Bookman and
5381 NewCentury Schoolbook!
5382 * font/devps/generate/afmname: Will now run with GNU awk.
5383 * font/devps/generate/textmap: Added forgotten `cq' glyph name.
5384 * font/devps/generate/Makefile: Cosmetic changes only.
5386 2000-05-21 Werner LEMBERG <wl@gnu.org>
5388 * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
5389 10, 11, or 12) to support output with 11pt and 12pt base font sizes.
5390 `.SS' now produces a heading with a smaller size than `.SH'.
5391 Completely formatted.
5392 * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
5394 * man/groff.man: Improved table appearance. Use of `eo' request
5395 to reduce number of doubled backslashes in macro definitions.
5396 Replacing `\e' with `\(rs'. Other minor fixes.
5398 * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
5399 to have correct line number.
5401 * INSTALL: Small improvement.
5403 2000-05-20 Bernd Warken <bwarken@mayn.de>
5405 * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
5408 2000-05-19 Bernd Warken <bwarken@mayn.de>
5410 * man/groff.man: Complete update (with a lot of corrections by WL).
5412 2000-05-18 Werner LEMBERG <wl@gnu.org>
5414 Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
5416 * font/*/*: Implement it.
5417 * man/groff_char.man, NEWS: Document it.
5419 * src/include/unix.h: Removed. It isn't used.
5421 * doc/groff.texinfo: Slight improvements.
5423 2000-05-17 Werner LEMBERG <wl@gnu.org>
5425 * README, win32-diffs: Small fixes and improvements.
5427 2000-05-16 Werner LEMBERG <wl@gnu.org>
5429 * FDL: New file (the Free Documentation License version 1.1).
5431 * doc/groff.texinfo: Added many start-up values for gtroff.
5432 Some structural improvements of the source code.
5434 2000-05-15 Werner LEMBERG <wl@gnu.org>
5436 * src/roff/troff/input.cc: Added small comment about troffrc-end.
5437 * src/roff/troff/troff.man: Added info about troffrc-end.
5439 2000-05-14 Werner LEMBERG <wl@gnu.org>
5441 * Makefile.in (EXTRADIRS): Fix typos.
5442 (dist): Handle deletion of old .tar.gz file correctly.
5443 (DISTDIRS): Include all tty output devices.
5445 * doc/groff.texinfo: Adding more cross references; countless other
5448 2000-05-13 Werner LEMBERG <wl@gnu.org>
5450 * MORE.STUFF: Added Robert Marks's utilities.
5452 2000-05-12 Werner LEMBERG <wl@gnu.org>
5454 Added win32 port contributed by Blake McBride
5455 <blake@florida-software.com>.
5457 * README.WIN32, win32-diffs: New files.
5460 * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
5461 (tmove, tmove2): Added parentheses to avoid compiler warnings.
5462 (change): Removed unused variables.
5464 * src/preproc/grn/main.cc (main, conv): Removed unused variables.
5465 (savebounds): Changed return value from `int' to `void'.
5466 * src/preproc/grn/hdb.cc: Ditto.
5468 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
5469 final backslash in comment to avoid compiler warning.
5471 * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
5473 * doc/groff.texinfo: More fixes.
5475 2000-05-11 OKAZAKI Tetsurou <okazaki@be.to>
5477 * tmac/tmac.doc: Documentation fix.
5479 2000-05-11 Werner LEMBERG <wl@gnu.org>
5481 * doc/groff.texinfo: Reading the source code shows up a lot of
5482 omissions and incorrect data... More conversion to @Deffn macros.
5484 2000-05-10 Werner LEMBERG <wl@gnu.org>
5486 * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
5489 * src/roff/troff/request.h: Removing unused `no_break_flag'.
5491 2000-05-09 Werner LEMBERG <wl@gnu.org>
5493 * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
5496 * doc/groff.texinfo: Extended history section. More conversion to
5497 @Deffn macros. More .tr documentation.
5499 2000-05-07 Werner LEMBERG <wl@gnu.org>
5501 * doc/groff.texinfo: Completed tab section. Added info about
5504 2000-05-06 Mike MacIsaac <mikemac@us.ibm.com>
5506 * PROBLEMS: Describe configure script fix for OS/390 Unix.
5508 2000-05-05 Werner LEMBERG <wl@gnu.org>
5510 * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
5512 * NEWS: Document it.
5514 * man/troff.man: Minor optical improvements.
5516 2000-05-03 Werner LEMBERG <wl@gnu.org>
5518 Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
5520 * font/*/*: Implement it.
5521 * man/groff_char.man, NEWS: Document it.
5523 2000-05-02 Werner LEMBERG <wl@gnu.org>
5525 * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
5527 * NEWS: Document the three new man pages.
5529 * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
5530 * configure: Updated.
5532 * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
5534 2000-05-01 Werner LEMBERG <wl@gnu.org>
5536 Added grap support to grog.
5538 * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
5539 * src/roff/grog/grog.man: Document it.
5541 * doc/groff.texinfo, NEWS: Add info about grap support.
5543 Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
5544 (with slight fixes by me).
5546 * tmac/groff_tmac.man: New file documenting tmac mechanism.
5547 * tmac/Makefile.sub: Add groff_tmac.man.
5548 * man/roff.man: New file giving overview of roff system.
5549 * man/troff.man: A short reference of troff.
5550 * man/Makefile.sub: Add roff.man and troff.man.
5552 2000-04-30 Werner LEMBERG <wl@gnu.org>
5554 Added grap support to groff.
5556 * src/roff/groff/groff.cc: Implement it.
5557 * src/roff/groff/groff.man: Document it.
5559 * src/devices/grotty/grotty.man: Add cp1047 device.
5560 * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
5562 * src/roff/groff/groff.man: Ditto.
5563 * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
5564 * doc/groff.texinfo: Ditto.
5566 * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
5569 2000-04-29 Werner LEMBERG <wl@gnu.org>
5571 * man/groff_char.man: Add `pc' glyph.
5572 * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
5573 * tmac/tmac.tty: Add `pc' glyph.
5574 * tmac/tmac.tty-char: Use/add `pc' glyph. Don't call tmac.latin1 if
5575 we use cp1047 output device.
5577 * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
5578 there are still hardcoded latin1->unicode values in utf8's font
5580 * configure: Updated.
5581 * NEWS: Minor clarification. Updated.
5583 * PROBLEMS: Formatted. Added info about C++ fix pack for OS/390
5586 2000-04-28 Werner LEMBERG <wl@gnu.org>
5588 Adding EBCDIC code page 1047.
5590 * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
5591 font/devcp1047/DESC.proto: New files.
5593 * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
5594 either ascii/latin1 or cp1047.
5595 * Makefile.in: Use it.
5596 * configure: Updated.
5598 Replacing and/or adding `md' (mathdot) glyph with `pc'
5599 (periodcentered) in all text fonts.
5601 * font/*/*: Change it.
5603 2000-04-27 Werner LEMBERG <wl@gnu.org>
5605 * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
5607 * configure.in: Add check for strings.h.
5608 * src/include/driver.h: Use HAVE_STRINGS_H.
5609 * src/devices/grolbp/lpb.cc: Remove string.h.
5611 * src/include/groff-getopt.h: New file. It will be used instead of
5612 getopt.h (to be included in lib.h) to avoid endless problems with
5613 picky C++ compilers.
5614 * src/include/lib.h: Use groff-getopt.h.
5615 * src/include/Makefile.sub: Updated.
5617 * configure: Updated.
5618 * Makefile.in: Updated.
5620 * NEWS: Mention EBCDIC support.
5622 2000-04-26 Werner LEMBERG <wl@gnu.org>
5624 * TODO: Some additions.
5626 2000-04-25 Werner LEMBERG <wl@gnu.org>
5628 * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
5631 2000-04-23 Werner LEMBERG <wl@gnu.org>
5633 * src/roff/troff/troff.man: Minor fixes.
5635 2000-04-22 Werner LEMBERG <wl@gnu.org>
5637 * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
5638 `.T' string register and the incompatible definition of the `.T'
5639 number register (compared to Unix troff).
5641 * man/groff_char.man: Add some missing characters.
5642 * font/devutf8/NOTES: Update.
5644 2000-04-21 Werner LEMBERG <wl@gnu.org>
5646 * src/include/htmlindicate.h, src/include/lib.h,
5647 src/include/posix.h: Fix copyright.
5649 * src/include/Makefile.sub: Update.
5651 2000-04-20 Werner LEMBERG <wl@gnu.org>
5653 * src/roff/troff/input.cc (input_char_description): Removing
5654 superfluous space char.
5656 * tmac/tmac.X: Fix typo \(bq -> \(Bq.
5658 * doc/groff.texinfo: Document EBCDIC.
5660 2000-04-19 Werner LEMBERG <wl@gnu.org>
5662 Introducing `shc' as the glyph name for the soft hyphen character.
5664 * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
5665 font/devlatin1/R.proto: Use it.
5669 2000-04-18 Werner LEMBERG <wl@gnu.org>
5671 * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
5672 dependency on ASCII order.
5674 2000-04-16 Sandor BARANY <S.Barany@infosys.tuwien.ac.at>
5676 * src/libs/libgroff/illegal.c: Added EBCDIC table.
5677 * src/roff/troff/input.cc: Added adaptation to EBCDIC.
5679 * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
5680 to increase portability.
5682 2000-04-15 Werner LEMBERG <wl@gnu.org>
5684 * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
5685 Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
5686 the generic `\n' if under OS/390 Unix.
5688 * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
5690 * configure: Regenerated.
5692 2000-04-14 Werner LEMBERG <wl@gnu.org>
5694 * doc/groff.texinfo: More conversions to @Deffn.
5696 2000-04-12 Werner LEMBERG <wl@gnu.org>
5698 * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
5701 * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
5703 2000-04-10 Werner LEMBERG <wl@gnu.org>
5705 * doc/groff.texinfo: More conversions to @Deffn.
5707 2000-04-08 Werner LEMBERG <wl@gnu.org>
5709 * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
5710 Updated to latest version (glibc 2.1.3).
5712 2000-04-07 Werner LEMBERG <wl@gnu.org>
5714 * doc/Makefile (clean): Include more index files.
5715 Add rule texinfo->dvi.
5717 2000-04-05 Werner LEMBERG <wl@gnu.org>
5719 * doc/groff.texinfo: Added new index `op' for operators. More
5720 info on end of sentence characters. More use of @Deffn.
5722 2000-03-30 Werner LEMBERG <wl@gnu.org>
5724 * */*.man: Adding a note that a whitespace can be inserted between
5725 a command line option and its parameter -- we are using GNU getopt.
5727 * src/roff/groff/groff.man: Add example of `-m mandoc'.
5729 2000-03-28 Werner LEMBERG <wl@gnu.org>
5731 Correct anachronism of calling the man macro file with `-man'
5732 instead of `-m man' etc.
5734 * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
5735 tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
5736 load tmac.<package>.
5738 * tmac/Makefile.sub: Updated. Take care of $(tmac_an_prefix) etc.
5742 * doc/groff.texinfo: Updated.
5744 * tmac/groff_man.man: Copyright added.
5746 2000-03-27 Werner LEMBERG <wl@gnu.org>
5748 * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
5749 typeset the request resp. escape name with a tt font -- due to a
5750 bug in texinfo.tex it is necessary to use the `-e' switch with
5753 Improving info about usage of groff units.
5757 2000-03-20 Werner LEMBERG <wl@gnu.org>
5759 * doc/groff.texinfo: Added section about man macro package
5760 (I've basically taken groff_man.man). Introducing new indices `ma'
5761 for macros/strings and `gl' for glyph names. Other minor fixes.
5763 * tmac/groff_man.man: Fixed some typos.
5765 2000-03-19 Werner LEMBERG <wl@gnu.org>
5767 * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
5770 * doc/texinfo.tex: New file.
5772 2000-03-18 Werner LEMBERG <wl@gnu.org>
5774 * doc/groff.texinfo: Improved section on number registers. Other
5777 2000-03-16 Werner LEMBERG <wl@gnu.org>
5779 * src/roff/groff/groff.man: Added info about grolbp. Make nicer
5782 * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
5783 src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
5784 src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
5785 src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
5787 * src/preproc/grn/grn.man: Better synopsis; added copyright.
5789 * src/roff/grog/grog.man: Updated copyright date.
5791 2000-03-14 Francisco Andrés Verdú <pandres@dragonet.es>
5793 * configure.in: Added test for strdup.
5795 * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
5798 Replaced dynamic allocation of arrays `[...]' with `new' operator.
5802 2000-03-12 OKAZAKI Tetsurou <okazaki@be.to>
5804 * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
5806 2000-03-11 Werner LEMBERG <wl@gnu.org>
5808 * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
5810 * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
5811 * src/include/lib.h: Remove some spaces.
5813 2000-03-10 Werner LEMBERG <wl@gnu.org>
5815 * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
5816 initializers from arguments (some compilers don't like this).
5818 2000-03-09 Gaius Mulley <gaius@glam.ac.uk>
5820 * src/libs/libgroff/htmlindicate.cc: Added library file which is now
5821 used by pic and eqn to tell grohtml where the graphic regions start
5823 * src/libs/libgroff/Makefile.sub: Use it.
5824 * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
5825 graphic_start() and graphic_end() from htmlindicate.cc.
5827 2000-03-09 Werner LEMBERG <wl@gnu.org>
5829 * tmac/tmac.safer: Will now work correctly in compatibility mode.
5830 * tmac/groff_man.man: More fixes.
5832 2000-03-08 Werner LEMBERG <wl@gnu.org>
5834 * doc/Makefile: Added texput.log to the `clean' target.
5835 * doc/groff.texinfo: Added info about delimiters for escapes.
5837 2000-03-08 Bernd Warken <bwarken@mayn.de>
5839 * src/preproc/pic/pic.man: Add info on conversion of pic images to
5840 other graphic formats.
5842 2000-03-07 OKAZAKI Tetsurou <okazaki@be.to>
5844 * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
5845 src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
5846 src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
5849 2000-03-07 Werner LEMBERG <wl@gnu.org>
5851 * doc/groff.texinfo: Spelling fixes.
5853 2000-03-06 Werner LEMBERG <wl@gnu.org>
5855 * tmac/groff_man.man: Completely revised to cover everything in
5858 * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
5859 Other minor fixings.
5860 * src/roff/troff/env.cc (environment_copy): Improve error message and
5862 * src/roff/troff/TODO: Updated.
5864 * doc/Makefile: Bug fixes -- this is still provisional, though...
5866 * tmac/eqnrc: Small fixes.
5868 2000-03-05 Abramo Bagnara <abramo@alsa-project.org>
5870 Adding a request `evc' to copy environments.
5872 * src/roff/troff/env.cc (environment::copy, environment_copy):
5874 * src/roff/troff/env.h: Add prototype.
5876 2000-03-05 Francisco Andrés Verdú <pandres@dragonet.es>
5878 Adding strsep() -- Solaris 8 doesn't have it.
5880 * configure.in: Test it.
5881 * src/devices/grolbp/lbp.cc: Add code.
5883 2000-03-05 Werner LEMBERG <wl@gnu.org>
5885 * src/roff/troff/div.cc (macro_diversion::output,
5886 top_level_diversion::output): Fixing an incompatibility with
5887 original troff: \x'0' updates the .a register also. Thanks to
5888 <Andries.Brouwer@cwi.nl> for pointing this out.
5889 * doc/groff.texinfo: Document it.
5891 * Makefile.in: Create Makefile.dep if necessary before calling the
5892 submake process to avoid warning about nonexistent file.
5894 * NEWS, PROJECTS: Updated.
5896 2000-03-04 Werner LEMBERG <wl@gnu.org>
5898 * tmac/troffrc: Add tmac.lbp.
5900 2000-03-03 Francisco Andrés Verdú <pandres@dragonet.es>
5902 * tmac/tmac.lbp: New file.
5903 * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
5906 2000-03-03 Werner LEMBERG <wl@gnu.org>
5908 * Makefile.in: Fixing $(subdir).
5910 * README, NEWS: Small fixes.
5912 * test-groff: Adding path to grolbp.
5914 * configure.in: The (new) file src/xditview/Imakefile.in will be
5915 also configured -- it is now possible to build gxditview in a
5916 directory different from $srcdir.
5918 2000-03-02 Blake McBride <blake@florida-software.com>
5920 * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
5922 * MORE.STUFF: Added website of bell labs and info about plot2dev.
5924 2000-03-01 Colin Phipps <crp22@cam.ac.uk>
5926 * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
5929 2000-02-29 Werner LEMBERG <wl@gnu.org>
5931 Adding GNU getopt to the groff distribution.
5933 * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
5935 * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
5936 * aclocal.a4: Remove GROFF_GETOPT function.
5937 * configure.in, Makefile.in, PROBLEMS: Update.
5938 * src/include/lib.h: Replace getopt tests with getopt.h.
5939 * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
5941 * doc/groff.texinfo: Further checking/updating. Adding more index
5944 * man/groff_out.man: Fix nroff mode activation (for emacs).
5945 * man/groff_font.man: Add missing ligature.
5947 2000-02-28 Werner LEMBERG <wl@gnu.org>
5949 * doc/groff.texinfo: Further checking/updating. Adding more index
5952 * src/devices/grolbp/grolbp.man: Added a comment line at the
5953 beginning of the file (similar to shell scripts) which indicates
5954 that `tbl' should be used as a preprocessor.
5956 2000-02-27 Blake McBride <blake@florida-software.com>
5958 Adapting groff to MS Visual C++ 6.0 compiler (tested with
5959 Windows NT 4.0). Uses _MSC_VER define where necessary.
5961 * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
5962 * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
5963 * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
5964 src/include/lib.h, src/libs/libgroff/errarg.cc,
5965 src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
5966 src/preproc/refer/label.y, src/preproc/refer/label.cc,
5967 src/roff/groff/pipeline.c, src/roff/troff/column.cc,
5968 src/roff/troff/div.cc, src/roff/troff/env.cc,
5969 src/roff/troff/input.cc, src/roff/troff/node.cc,
5970 src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
5971 if_to_a() to avoid name clashes.
5972 * src/include/posix.h: Don't use unistd.h.
5973 * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
5974 clause for integrating non-Unix xtmpfile() code.
5975 * src/roff/troff/input.cc: Adding `public' keyword to macro_header
5976 structure; use "rt" for popen() in pipe_source(); add getpid()
5978 * src/roff/troff/node.cc: Use special versions of popen() in
5979 real_output_file() and pclose() in ~real_output_file().
5981 2000-02-27 Werner LEMBERG <wl@gnu.org>
5983 Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
5984 LBP-8 series laser printers). This code has been contributed by
5985 Francisco Andrés Verdú <pandres@dragonet.es>.
5987 * src/devices/grolbp/*: The grolbp output device.
5988 * font/devlpb/*: The font description files.
5989 * Makefile.in: Add grolpb and devlbp subdirectories.
5991 * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
5992 src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
5995 * doc/groff.texinfo: Further checking/updating. Adding more index
6000 * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
6002 * man/groff_font.man: Adding info about obsolete DESC keywords.
6003 * src/devices/grolj4/grolj4.man: Documenting additional DESC
6006 2000-02-26 Werner LEMBERG <wl@gnu.org>
6008 * src/preproc/grn/grn.man: Added info about the gremlin file format
6009 (contributed by Daniel Senderowicz <daniel@synchrods.com>).
6011 2000-02-25 Werner LEMBERG <wl@gnu.org>
6013 * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
6014 friends to be non-integer.
6016 * src/preproc/grn/grn.man: Document it.
6018 * doc/groff.texinfo: Further checking/updating. Adding more index
6021 2000-02-24 Werner LEMBERG <wl@gnu.org>
6023 * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
6024 line thicknesses to be integer multiples of this value.
6026 * src/preproc/grn/grn.man: Commenting out the -s option -- the
6027 corresponding code doesn't work (yet).
6029 * doc/groff.texinfo: Further checking/updating. Adding more index
6032 2000-02-23 Werner LEMBERG <wl@gnu.org>
6034 * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
6035 specify line thickness instead of base units. The new default
6036 values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
6037 thick lines respectively.
6039 Removed unused variable `prevval'.
6041 * src/preproc/grn/grn.man: Updated.
6043 2000-02-22 Werner LEMBERG <wl@gnu.org>
6045 * src/preproc/grn/main.cc: Slight formatting.
6047 * src/roff/groff/groff.man: Formatting fix.
6048 * src/preproc/grn/grn.man: Ditto.
6050 * src/roff/grog/grog.pl: Fixing two embarassing bugs.
6052 * doc/groff.texinfo: Further checking/updating.
6054 2000-02-21 Werner LEMBERG <wl@gnu.org>
6056 * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
6058 * test-groff: Added grn subdir to path.
6060 * doc/groff.texinfo: Some restructing and other small improvements.
6062 * src/roff/groff/groff.cc (help): Fixed info string.
6064 2000-02-20 Werner LEMBERG <wl@gnu.org>
6066 * doc/meref.me: Fix description of .GS request.
6068 * src/roff/troff/troff.man: Fixing typo.
6070 Adding the `grn' preprocessor for gremlin graphic files.
6072 * src/preproc/grn/*: This is the Berkeley distribution written by
6073 David Slattengren and Barry Roitblat, adapted to groff by Daniel
6074 Senderowicz and Werner Lemberg.
6076 * doc/grnexampl.{me,g}: A sample for grn.
6078 * Makefile.in: Added subdirectory entry for grn.
6080 * src/roff/groff/groff.cc: Added support for grn. It can be now
6081 called with the switch `-g'.
6083 * src/roff/groff/groff.man: Updated.
6085 * src/roff/grog/grog.{man,pl,sh}: Updated.
6089 2000-02-11 Gaius Mulley <gaius@glam.ac.uk>
6091 * src/include/lib.h: Added xtmptemplate and made xtmpfile
6092 parametrically polymorphic.
6094 * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
6095 and the alterations to xtmpfile.
6096 xtmpfile can be requested to return the filename created
6097 and asked not to unlink the temp file. The default behaviour
6098 if parameters are absent is exactly the same as before.
6100 2000-02-11 Abramo Bagnara <abramo@alsa-project.org>
6102 A new request `length' is available which returns the length of a
6103 string in a number register:
6105 * src/roff/troff/input.cc (length_macro): Implement it.
6106 * src/roff/troff/input.cc (init_input_requests): Register it.
6108 2000-02-11 Werner LEMBERG <wl@gnu.org>
6110 * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
6111 of the `substring' request.
6113 * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
6116 * src/roff/troff/TODO, NEWS: Updated.
6118 2000-02-09 Werner LEMBERG <wl@gnu.org>
6120 * src/roff/groff/groff.man: Added an example.
6122 2000-02-06 Werner LEMBERG <wl@gnu.org>
6124 I've considerably modified the directory structure of the
6125 distribution to get a more vertical layout. For example, the number
6126 of top level directories has been reduced from 42 to 6.
6128 As a consequence, many changes, especially to the makefiles, were
6131 * The makefile variables `top_builddir' and `top_srcdir' have been
6132 introduced. Virtually all relative paths have been replaced with
6133 absolute ones using these two variables.
6135 * Dependencies (in the files `Makefile.dep') are no longer part of
6136 the distribution. Instead, they are created during a `make install'
6137 in the build directory.
6139 * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
6140 make `top_srcdir' and `top_builddir' absolute.
6144 * Man pages now depend on the files `VERSION' and `REVISION'.
6146 * The added shell script `mkinstalldirs' will replace `mkdir' in
6149 * VERSION: Version number increased to 1.16.
6151 2000-02-04 Werner LEMBERG <wl@gnu.org>
6153 * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
6155 * Makefile.in: Removed $(tmac_m) since it is no longer needed
6156 (after an update of the mm stuff).
6158 * troff/Makefile.sub (majorminor.cc): Fix dependencies.
6160 2000-02-03 Werner LEMBERG <wl@gnu.org>
6162 The .psbb request will now also accept Mac PS images (i.e. using LF
6163 as the EOL character).
6165 * troff/input.cc (ps_get_line): New function, taken from psrm.cc
6166 (with slight modifications).
6167 * troff/input.cc (do_ps_file): Use it.
6169 * test-groff: Add grohtml and grolj4 output devices to PATH.
6171 2000-01-30 Werner LEMBERG <wl@gnu.org>
6173 * NEWS, MORE.STUFF: Updated.
6175 2000-01-30 Cary D. Renzema <caryr@dollar.mxim.com>
6177 Add the `srand' command to pic.
6179 * pic/lex.cc, pic/pic.y: Implement it.
6180 * pic/pic.man: Document it.
6181 * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
6183 2000-01-30 Werner LEMBERG <wl@gnu.org>
6185 Add a new request `.psbb'. This does exactly what the external
6186 program psbb did. It scans a PostScript image file for a
6187 %%BoundingBox comment and extracts the bounding box values (in
6188 PostScript units) which are then stored in the four new (read-only)
6189 number registers `llx', `lly', `urx', and `ury'.
6191 This will allow the usage of the .PSPIC macro without worrying
6192 about unsafe behaviour of groff, i.e., it will work without the
6193 `-U' switch of groff.
6195 * troff/input.cc: Implement it.
6196 * tmac/tmac.pspic: Use it.
6197 * troff/troff.man, grops/grops.man, NEWS: Document it.
6198 * psbb/*, Makefile.in: Remove it since it is no longer needed.
6200 This is bloody C code simply adapted from psbb.c! Any improvements
6203 2000-01-29 Werner LEMBERG <wl@gnu.org>
6205 * man/groff_font.man: Minor clarifications.
6209 2000-01-28 Werner LEMBERG <wl@gnu.org>
6211 * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
6213 2000-01-28 Gaius Mulley <gaius@glam.ac.uk>
6215 * man/groff_font.man: Brought up to date regarding tcommand
6217 * libgroff/font.cc: Handle everything after `--' as a comment
6219 * devps/*: Added comment delimiter inside devps font files.
6221 2000-01-28 Werner LEMBERG <wl@gnu.org>
6223 * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
6224 \fC...\fP (which now works as expected).
6226 * troff/troff.man: Fix typo.
6228 2000-01-27 Gaius Mulley <gaius@glam.ac.uk>
6230 Completed the pass_filenames implementation in troff.
6232 * libdriver/input.cc: Will read the new `F' tcommand.
6233 * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
6234 * troff/input.cc: Use it.
6236 2000-01-26 Werner LEMBERG <wl@gnu.org>
6238 * troff/env.cc (set_font): Fix the behaviour of \fP. The previous
6239 font will now be updated even if an invalid font is selected.
6241 2000-01-24 Werner LEMBERG <wl@gnu.org>
6243 * doc/homepage.ms: Updated for new tmac.arkup.
6245 * tmac/tmac.html: Disable line breaks after hyphen-like characters.
6247 * tmac/tmac.arkup: Cleanup.
6249 Added `\&' to .HTML macro to `leave vertical mode', so to say.
6251 Removed obsolete .LINK macro completely.
6253 The macros .URL, .FTP, and .MAILTO now accept a third argument which
6254 will be immediately appended to the second argument (to be used with
6255 punctuation, for example).
6257 Disabled .CDFTP macro temporarily for security reasons.
6259 * tmac/groff_markup.man: Complete revision for latest changes in
6260 tmac.arkup -- note that it does not yet format correctly with
6263 2000-01-23 Bruno Haible <haible@clisp.cons.org>
6265 * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
6266 * devutf8/R.proto: Add mappings for wp, lh, rh.
6267 * devutf8/NOTES: Updated.
6269 2000-01-23 Werner LEMBERG <wl@gnu.org>
6271 * doc/groff.texinfo: Updated version/copyright info.
6273 2000-01-21 Gaius Mulley <gaius@glam.ac.uk>
6275 Added support for two new directives in device descriptions:
6276 `pass_filenames' (to pass the input file name to the output device)
6277 and `use_charnames_in_special' (to support e.g. accented characters
6278 in the `X' request).
6280 * include/font.h, troff/charinfo.h: Declare it.
6282 * libgroff/font.cc, libgroff/fontfile.cc: Set it.
6284 * devhtml/DESC: Use it.
6286 * troff/input.cc: New function encoded_char.
6288 * troff/token.h: Add test for `specialness'.
6290 2000-01-21 Werner LEMBERG <wl@gnu.org>
6292 * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
6293 mistake from the list of files to be installed.
6295 2000-01-18 Werner LEMBERG <wl@gnu.org>
6297 * README: Added info how to apply patches.
6299 2000-01-15 Jan Echternach <echter@informatik.uni-rostock.de>
6301 * troff/node.cc (ligature_note::operator delete): Fix g++ warning.
6303 2000-01-15 Gaius Mulley <gaius@glam.ac.uk>
6305 * troff/input.cc: Add support for troffrc-end.
6307 * tbl/main.cc: Altered to issue table-start and table-end special
6308 characters if using the html device.
6310 * devhtml/*: Modified font files to incorporate html encoding of
6313 * tmac/groff_markup.man: New file documenting tmac.arkup.
6315 * tmac/troffrc-end: New file. This is invoked after all user
6316 specified macros. Currently used by the html device to include
6317 tmac.html. Thus no need for users to specify -mhtml anymore.
6319 * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
6320 (MAN7): Add groff_markup.man.
6322 * tmac/tmac.an, tmac/tmac.html: Small html updates.
6324 * tmac/troffrc: tmac.arkup will now be called for the html device.
6326 * libgroff/font.cc, libgroff/font.h: Altered to include reading of
6327 extra device specific information about fonts.
6329 * doc/homepage.ms: New file. It is an example how an HTML home page
6330 could look like with grohtml.
6332 * doc/Makefile: Add homepage.ms. Remove rule for pic.html.
6334 2000-01-12 Bruno Haible <haible@clisp.cons.org>
6336 * devutf8/R.proto: Add mappings for ti, Fn, st, an. Change mappings
6339 * devutf8/NOTES: Updated.
6341 2000-01-08 Bruno Haible <haible@clisp.cons.org>
6343 * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
6344 eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
6345 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
6346 libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
6347 pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
6348 tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
6349 troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
6350 troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
6353 * troff/node.cc (bracket_node::copy): Initialize last to NULL.
6355 2000-01-12 Fabrizio Polacco <fab@prosa.it>
6357 grolj4: Paper size will be searched case-insensitively.
6359 * include/lib.h: Add check for strcasecmp().
6360 * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
6361 * configure.in: Check for strcasecmp().
6363 2000-01-11 Werner LEMBERG <wl@gnu.org>
6365 * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
6368 2000-01-10 Werner LEMBERG <wl@gnu.org>
6370 * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
6373 Add a new read-only register, `.Y', which contains the groff
6376 * troff/input.cc (init_input_requests): Define it.
6377 * troff/Makefile.sub (majorminor.cc): Define `revision' string.
6378 * doc/groff.texinfo, troff/troff.man: Document it.
6380 * libgroff/Makefile.sub (version.cc): Add definition of
6381 `Version_string[]', consisting of `<major>.<minor>.<revision>'
6382 * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
6383 grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
6384 refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
6385 troff/input.cc, pfbtops/pfbtops.c: Use it.
6387 2000-01-10 Fabrizio Polacco <fab@prosa.it>
6389 Add a revision scheme to the groff package.
6391 * REVISION: New file.
6392 * libgroff/Makefile.sub (version.cc): Use it to define
6393 `revision_string[]'.
6394 * grops/psrm.cc: Use revision_string (converted to an unsigned
6395 integer) in constructor of resource_manager.
6397 2000-01-10 Bruno Haible <haible@clisp.cons.org>
6399 * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
6401 * Makefile.in (DEVDIRS): Add devutf8.
6402 * grotty/tty.cc: Include device.h.
6403 (glyph): Change type of `code' to `unsigned int'.
6404 (tty_printer): New field is_utf8. Constructor takes device argument.
6405 (tty_printer::tty_printer): If device if `utf8', set is_utf8.
6406 (tty_printer::add_char): Change type of first arg to `unsigned int'.
6407 (tty_printer::put_char): New function.
6408 (tty_printer::end_page): Use put_char() instead of ::putchar().
6409 (make_printer): Pass device to tty_printer constructor.
6410 * nroff.sh: Determine default device by calling 'locale'. As a
6411 fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
6412 Recognize UTF-8 locales.
6413 * tmac/eqnrc: Recognize utf8 like latin1.
6414 * tmac/troffrc: Device utf8 needs tmac.tty.
6416 2000-01-07 Werner LEMBERG <wl@gnu.org>
6418 * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
6420 2000-01-07 Paul Eggert <eggert@twinsun.com>
6422 Add a new predefined writeable number register, `year',
6423 which contains the current year.
6425 * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
6426 * tmac/tmac.s: Use it.
6427 * troff/input.cc (init_registers): Initialize it.
6429 2000-01-06 Werner LEMBERG <wl@gnu.org>
6431 * PROBLEMS: Fixed typo.
6433 2000-01-04 Paul Eggert <eggert@twinsun.com>
6435 * PROBLEMS: Add Y2k advice for the yr number register.
6437 2000-01-03 Paul Eggert <eggert@twinsun.com>
6439 * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
6441 2000-01-02 Werner LEMBERG <wl@gnu.org>
6443 * tmac/tmac.arkup: Slight modification of macros to provide better
6444 appearance for non-HTML formats.
6446 2000-01-01 Charles Levert <charles@comm.polymtl.ca>
6448 * soelim/soelim.cc (include_path_append): realloc(NULL, n)
6449 does not automatically translate to malloc(n) on all OSes
6450 (e.g., SunOS) so do it explicitly. Also, check the returned
6453 2000-01-01 Werner LEMBERG <wl@gnu.org>
6455 * tmac/tmac.arkup: Added .LINE macro. Some formatting.
6457 * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
6458 expects this variable
6460 2000-01-01 Gaius Mulley <gaius@glam.ac.uk>
6462 * doc/Makefile: Added instructions to create HTML and text
6463 versions of some files.
6465 1999-12-31 Werner LEMBERG <wl@gnu.org>
6467 * Updated INSTALL.gen.
6469 * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
6470 better resp. correctly with non-HTML devices.
6472 Version 1.15 released
6473 =====================
6475 1999-12-28 Werner LEMBERG <wl@gnu.org>
6477 * NEWS, VERSION: Changed to 1.15
6479 1999-12-27 Paul Eggert <eggert@twinsun.com>
6481 * nroff/nroff.man: -S is safer, not safe.
6483 * groff/groff.cc (main): Use `safer', not `safe', in variable
6484 names. This does not change the behavior.
6486 * troff/input.cc (main): Likewise.
6488 * nroff/nroff.sh: Likewise.
6490 * troff/input.cc (prepend_string): New function.
6491 (main): Prepend -msafer, so that we check macro libraries for
6494 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
6496 Version 1.14 released
6497 =====================
6499 1999-12-26 Werner LEMBERG <wl@gnu.org>
6501 * NEWS, VERSION: Changed to 1.14.
6503 1999-12-24 Werner LEMBERG <wl@gnu.org>
6505 * refer/refer.cc: Fixing the last fix.
6507 Version 1.13 released
6508 =====================
6510 1999-12-23 Werner LEMBERG <wl@gnu.org>
6512 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
6517 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
6519 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
6520 document conventions, the version number must be a real.
6522 Version 1.12.1 released
6523 =======================
6525 1999-12-22 Werner LEMBERG <wl@gnu.org>
6527 * VERSION: Changed to 1.12.1.
6529 1999-12-22 Alan Rooks <arooks@istar.ca>
6531 * refer/refer.cc (do_file): Slight modification to satisfy the
6532 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
6535 1999-12-20 Werner LEMBERG <wl@gnu.org>
6537 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
6540 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
6541 list of unsafe requests.
6543 * pic/pic.man: Fixed a typo.
6545 * man/groff_out.man: Fixed a typo.
6547 1999-12-18 Werner LEMBERG <wl@gnu.org>
6549 * Makefile.in: Doc fixes.
6551 1999-12-17 Fabrizio Polacco <fab@prosa.it>
6553 * groff/groff.cc: Missing `U' option added to getopt().
6555 * troff/troff.man: Missing `U' option added to synopsis.
6557 Version 1.12 released
6558 =====================
6560 1999-12-14 Werner LEMBERG <wl@gnu.org>
6562 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
6565 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
6566 with the more appropriate terms `safer' and `unsafe'.
6568 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
6569 sys_nerr and sys_errlist[].
6571 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
6573 * pic/pic.y, pic/pic.cc: Added check for fmod().
6575 1999-12-13 Werner LEMBERG <wl@gnu.org>
6577 * VERSION: Changed to 1.12.
6579 Here some patches from various sources; most of them taken from
6580 the Debian distribution.
6582 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
6583 tmac/Makefile.sub: New files copied directly from the NetBSD
6584 distribution. Probably, some additional adaptation later on is
6587 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
6590 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
6591 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
6592 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
6593 (`-S') is now the default.
6595 * README, NEWS: Updated.
6597 1999-12-09 Werner LEMBERG <wl@gnu.org>
6599 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
6601 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
6603 1999-12-06 Werner LEMBERG <wl@gnu.org>
6605 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
6606 grief than relief today. Additionally, it is against the GNU
6609 * configure: Recreated.
6611 1999-12-05 Werner LEMBERG <wl@gnu.org>
6613 * configure.in: Added GROFF_LIBM.
6615 * configure: Recreated.
6617 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
6620 * Makefile.in: Added definition of $(LIBM).
6622 * Makefile.comm (LIBM): Removed.
6624 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
6626 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
6628 * doc/Makefile: Added rule for generation pic.html.
6630 (clean): Files produced by grohtml will be removed also.
6632 * doc/pic.ms: Small fix.
6634 * tmac/tmac.html: Fixed suppression of headers.
6636 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
6638 * tmac/tmac.html: Fixing horizontal arrows.
6640 Turning off hyphenation.
6642 * tmac/tmac.an: Improved support for grohtml; better indentation,
6645 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
6647 * tmac/tmac.arkup: Added CDFTP macro
6649 * tmac/tmac.html: All headers are turned off for ms, me, and mm
6652 * tmac/troffrc: Some additions for HTML stuff.
6654 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
6656 * tmac/tmac.html: Small changes.
6658 1999-09-26 Werner LEMBERG <wl@gnu.org>
6660 * doc/groff.texinfo: Minor fixes.
6662 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
6664 * devhtml/TR: Changed spacewidth to 3.
6666 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
6668 * tmac/tmac.html: Moved markup macros to tmap.arkup.
6670 * tmac/tmac.arkup: New file.
6672 * grohtml/ChangeLog: New file.
6674 1999-09-16 Werner LEMBERG <wl@gnu.org>
6676 * doc/groff.texinfo (Common Features): Added Copying chapter.
6677 Changed format to @smallbook.
6679 1999-09-15 Werner LEMBERG <wl@gnu.org>
6681 * NEWS: Added info about groff.texinfo.
6683 * doc/groff.texinfo: Will now compile (using texi2dvi) without
6686 1999-09-14 Werner LEMBERG <wl@gnu.org>
6688 * groff/groff.man: More updates.
6690 1999-09-13 Werner LEMBERG <wl@gnu.org>
6692 * doc/groff.texinfo: New file. This manual is still very
6693 rudimentary. It has been originally contributed by Trent
6694 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
6697 * INSTALL: Added information about the `doc' subdir
6699 * troff/troff.man: Minor fixes.
6701 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
6704 * troff/input.cc (usage): Added missing `-ffam' to usage message.
6706 * Makefile.in (dist): groff-$(version).tar.gz must be removed
6707 also, otherwise it is included itself in another call of `make
6710 * groff/groff.cc (synopsis): Removed superfluous space.
6712 * PROJECTS, PROBLEMS, NEWS: Updated.
6714 * VERSION: Updated to 1.12beta.
6716 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
6718 * README: Updated: Included documentation about CVS repository,
6719 mailing lists, and daily snapshots.
6721 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
6723 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
6725 * tmac/tmac.an: If the tag didn't fit into the space that the
6726 macro `TP' specifies, the rest of the tag went into the space for
6729 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
6731 * grolj4/lj4.cc: Added duplex printing (option `-d').
6733 * grolj4/grolj4.man: Document duplex printing.
6735 1999-09-12 Werner LEMBERG <wl@gnu.org>
6737 * doc/Makefile (pic.ps): Fixed rule which caused problems with
6738 non-GNUish sed programs.
6740 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
6743 * configure.in (LIBS): Added `-lc'
6745 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
6747 * pic/tex.cc (solid_arc): Casting M_PI to double.
6749 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
6751 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
6752 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
6753 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
6755 * groff/groff_man.man: New file. This manual page was originally
6756 written for the Debian GNU/Linux system by Susan G. Kleinmann
6759 * eqn/list.cc (list_box::compute_metrics,
6760 list_box::compute_sublist_width): Removed variable declaration to
6761 avoid shadowing warnings.
6763 * grops/psrm.cc (resource_manager::process_file): Ditto.
6765 * tfmtodit/tfmtodit.cc (main): Ditto.
6767 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
6768 to avoid shadowing warnings.
6770 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
6771 shadowing loop variable.
6773 * groff/groff.man, troff/troff.man: Added doc about grohtml.
6775 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
6777 New grohtml frontend to convert groff input to html.
6779 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
6781 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
6783 * tmac/eqnrc: Added html device.
6785 * tmac/tmac.html: New file.
6787 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
6788 (troff_output::start_picture, troff_output::finish_picture),
6789 tbl/main.cc (process_input_file):
6790 Surrounded output with `graphics_start' and `graphics_end' so that
6791 the html driver can identify non-text portions.
6793 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
6794 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
6795 grotty/tty.ps (tty_printer::set_char): Additional parameter
6798 * include/printer.h: Class printer: New function
6799 set_char_and_width; new variables (is_char_named, is_named_set,
6800 named_command, named_char_s, named_char_n) to hold information
6801 about named characters -- needed by the html driver.
6803 * libdriver/printer.cc (printer::set_ascii_char,
6804 printer::set_special_char): Use set_char_and_width.
6806 * devhtml/*: New device files for html driver.
6808 * grohtml/*: New driver grohtml.
6810 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
6812 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
6815 1999-09-11 Luke Mewburn <lukem@netbsd.org>
6817 * libgroff/string.cc (search): Small fix to test against NULL
6820 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
6822 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
6823 \b'abc') were stacked in reverse order when processed in a
6826 * troff/node.h: Added `*last' to struct `node' to make the above
6829 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
6830 The default scale for the 'f' and 't' graphics functions were 'm'
6831 rather than 'u' (i.e., no scaling).
6833 1999-09-11 Peter Miller <peterm@jna.com.au>
6835 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
6836 do_file), soelim/soelim.man: Added `-I file' option to soelim,
6837 defining include paths.
6839 * soelim/soelim.cc (include_path_append): New function.
6841 1999-09-11 Larry Jones <larry.jones@sdrc.com>
6843 * tbl/main.cc (process_options): Unix (at least Documenter's
6844 Workbench) tbl allows arbitrary non-alpha characters between
6847 1999-09-11 Paul Eggert <eggert@twinsun.com>
6849 Y2k fixes. Don't assume that the current year precedes 2000.
6851 * doc/meref.me: Add \n(y2, \n(y4.
6853 * tmac/doc-common (Yr): New number register.
6854 (Dd): Don't assume current year precedes 2000.
6856 * tmac/tmac.e (td): Likewise.
6857 (y2, y4): New number registers.
6859 * pic/pic.man: Update reference for pic paper to May, 1991
6862 1999-09-11 Werner LEMBERG <wl@gnu.org>
6864 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
6865 Removed quotation marks which prevented correct expansion of
6868 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
6870 1999-09-10 Werner LEMBERG <wl@gnu.org>
6872 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
6875 * Removed configure.old.
6877 1999-08-31 Werner LEMBERG <wl@gnu.org>
6879 * VERSION: Updated to 1.11.1
6881 1999-05-27 Werner LEMBERG <wl@gnu.org>
6883 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
6885 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
6886 added quotations around $(tmac_wrap) to avoid syntax error if
6889 * configure: Newly generated using autoconf 2.13.
6891 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
6893 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
6895 * README, PROJECTS, NEWS, INSTALL, VERSION,
6896 doc/Makefile. doc/pic.ms, groff/groff.man:
6897 Prepare for 1.11 release. No code changes.
6898 Documentation for pic added (doc/pic.ms).
6900 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
6902 * Version 1.10 released.
6904 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
6906 * afmtodit/afmtodit.pl: Avoid comment on first line.
6908 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
6910 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
6911 * configure.in: Call it.
6913 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
6914 (distfiles): Doesn't depend on config.log or config.cache.
6916 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
6918 * grog/grog.sh: Use print "" rather than print in END rule.
6920 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
6922 * tbl/main.cc (process_data): Don't give error for excess data
6923 entries that are comments.
6925 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
6927 * tbl/main.cc (process_data): Fix case where new for-scope rules
6928 silently change meaning of code.
6930 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
6932 * troff/env.cc (hyphenate): Loop over all consecutive sequences
6933 of non-zero hyphenation codes.
6935 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
6937 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
6939 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
6941 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
6943 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
6945 * tmac/tmac.andoc: Make it work in compatibility mode.
6947 * refer/token.h (token_info::is_range_sep): New function.
6948 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
6949 * refer/ref.cc (reference::output): More sophisticated check for
6952 * devps/prologue.ps (MANUAL): New procedure.
6953 * grops/ps.cc (main): New -m option.
6954 (usage): Include -m.
6955 (ps_printer::~ps_printer): Implement -m.
6957 * aclocal.m4 (GROFF_G): New macro.
6958 * configure.in: Call it.
6959 * Makefile.in (g): Provided by configure.
6961 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
6963 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
6966 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
6967 (tmac_m, tmac_s): Deleted.
6968 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
6969 tmac_s_prefix): New variables.
6970 (MDEFINES): Change accordingly.
6971 * Makefile.comm (.man.n): Use new TMAC_* variables.
6972 * configure.in (GROFF_TMAC): Call.
6973 * aclocal.m4 (GROFF_TMAC): Define.
6974 * tmac/Makefile.sub (stamp_wrap): New target.
6975 (install_data, uninstall_sub): Handle macro wrapping.
6977 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
6979 * tbl/main.cc (main): Ignore -T option.
6981 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
6983 * devlj4/generate/special.map: Add definition of \(nb.
6985 * tmac/tmac.dvi: Add definition of \(nb.
6987 * troff/dictionary.c (dictionary::dictionary): association::v gets
6988 initialized by association::association.
6990 * tmac/Makefile.sub: Avoid using temporary files when installing.
6992 * troff/env.cc (environment::set_font): Make bad font number a
6995 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
6997 * Makefile.in (datadir): Use share rather than lib.
6999 * groff/groff.cc (basename): Rename to xbasename.
7001 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
7003 * Makefile (CCLIBS): Don't use.
7004 * Makefile.ccpg: Likewise.
7006 * acgroff.m4: Rename to...
7007 * aclocal.m4: Modify extensively for autoconf 2.
7008 * configure.in: Likewise.
7009 * Makefile.in: Likewise.
7011 * groff/pipeline.c (const): Declare as empty if __STDC__ not
7013 (xstrsignal): Check for definition of NSIG. Conditionalize
7014 on SYS_SIGLIST_DECLARED. Make return type const.
7016 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
7018 * troff/input.cc (interpolate_macro): Rephrase missing space
7021 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
7023 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
7024 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
7025 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
7026 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
7027 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
7028 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
7029 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
7030 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
7031 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
7032 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
7033 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
7036 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
7038 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
7040 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
7042 (macro_iterator::macro_iterator): Add additional argument.
7044 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
7046 * troff/div.cc (vertical_size::vertical_size): In place of integer
7047 specifying line spacing use cunits specifying post vertical
7049 (macro_diversion::output, top_level_diversion::output): Likewise.
7050 * troff/div.h: Change declarations accordingly.
7051 * troff/env.cc (pending_output_line): Replace ls field by post_vs
7053 (pending_output_line::pending_output_line,
7054 pending_output_line::output, environment::output,
7055 environment::output_line, environment::output_title,
7056 environment::hyphenate_line): In place of
7057 integer specifying line spacing use cunits specifying post vertical
7059 (environment::environment): Add post_vertical_spacing and
7060 prev_post_vertical_spacing arguments.
7061 (environment::get_post_vertical_spacing): New function.
7062 (environment::total_post_vertical_spacing): New function.
7063 (environment::post_vertical_spacing): New function.
7064 (init_env_requests): Initialize pvs request and .pvs register.
7065 * troff/env.h: Change declarations.
7067 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
7069 * tmac/tmac.pspic: Immediately remove the temporary file.
7071 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
7073 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
7074 height is specified.
7076 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
7078 * tbl/table.c (struct vertical rule, class table_entry): Use int
7079 not short for start_row and end_row.
7081 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
7083 * troff/input.cc (trapping_blank_line, blank_line_macro): New
7085 (diverted_space_node::reread, process_input_stack): Call
7086 trapping_blank_line() rather than blank_line().
7087 (init_input_requests): Bind "blm" to blank_line_macro().
7089 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
7091 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
7093 * troff/env.cc (environment::possibly_break_line): Require that
7094 width total excluding width of final space node be greater than
7095 the target text length.
7097 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
7099 * troff/node.cc (kern_pair_node::vertical_extent): New function.
7101 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
7103 * troff/node.cc (charinfo_node): New class.
7104 (glyph_node, composite_node): Derive from charinfo_node. Change
7105 member functions accordingly.
7107 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
7109 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
7111 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
7113 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
7115 * devps/generate/textmap (notsubset): Add.
7117 * tmac/tmac.a4: New file.
7119 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
7121 * pic/main.cc (had_parse_error): New variable.
7122 (do_picture, do_whole_file): Set had_parse_error if yyparse()
7124 (main): Return 1 if had_parse_error is true.
7126 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
7128 * grolj4/lj4.cc (main): Avoid use of strtoul.
7130 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
7132 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
7133 iso_8859_1 or $LESSCHARSET is latin1.
7135 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
7137 * hpftodit: New directory.
7138 * Makefile.in (CCPROGDIRS): Add hpftodit.
7139 * devlj4/generate: New directory.
7141 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
7143 * configure.in: Don't use AC_VFORK.
7144 * groff/pipeline.c (run_pipeline): Use fork() always.
7146 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
7148 * grops/ps.cc (main): Use %1 not %s in error message for -w.
7150 * Makefile.in (CCPROGDIRS): Add grolj4.
7151 (DEVDIRS): Add devlj4.
7152 * grolj4, devlj4: New directories.
7153 * tmac/troffrc: Handle lj4.
7154 * tmac/tmac.lj4: New file.
7156 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
7158 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
7160 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
7162 * troff/input.cc (do_if_request): At end of second string, switch
7163 environments before getting next token.
7165 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
7167 * devps/psstrip.sed: Split rule that strips whitespace on either
7170 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
7172 * troff/node.h (font_family::make_definition): Add return value to
7173 declaration. * troff/symbol.h (symbol::operator==,
7174 symbol::operator!=): Likewise.
7176 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
7178 * groff/groff.cc (main, help, synopsis): Handle -S.
7179 (possible_command::insert_arg): New function.
7181 * tmac/tmac.safer: New file.
7182 * tmac/msafer.man: New file.
7183 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
7185 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
7187 * pic/pic.h, pic/main.cc (safer_flag): New variable.
7188 * pic/pic.y (placeless_element): Avoid unsafe operations if
7189 `safer_flag' is set.
7190 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
7192 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
7194 * eqn/lex.cc (get_token): Put call to add_context() in block to
7195 work around Sun C++ 4.0 bug.
7197 * include/stringclass.h (operator +): Use ?: instead of `if' to
7198 work around Sun C++ 4.0 bug.
7200 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
7202 * tbl/main.cc (process_format): Accept - as a synonym for the _
7205 * libbib/index.cc (minus_one): Don't declare as const.
7207 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
7209 * troff/input.cc (get_char_for_escape_name): Push back a newline.
7211 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
7213 * troff/input.cc (write_macro_request): New function.
7214 (init_input_requests): Bind write_macro_request to writem.
7216 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
7218 * tmac/tmac.s (@EN): Turn filling back on even if there was no
7221 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
7223 * tmac/tmac.s (@TS): Renamed from TS.
7224 (TS): Call LP then TS again.
7225 (cov*ab-init): Alias @TS to TS.
7227 * tmac/tmac.s: Allow QP or RS to initialize.
7229 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
7230 Move initializations of PS and LL here.
7231 (par@init): Don't initialize HY. Avoid changing environment 0.
7232 (par*env-init): Don't all par@reset.
7234 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
7236 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
7238 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
7240 * Makefile.in (MDEFINES): Add LDFLAGS.
7241 (LDFLAGS): Add definition line.
7243 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
7245 * troff/input.cc (get_optional_char): Split off error check into...
7246 (check_missing_character): New function.
7247 * troff/token.h: Declare it.
7248 * troff/env.cc (margin_character): Don't call get_optional_char.
7249 Only call tok.next() after making the node.
7251 * include/lib.h (getopt): Make 2nd argument char *const *.
7253 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
7255 * nroff/conftest.sh: Deleted.
7257 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
7259 * pic/make-dos-dist: Deleted.
7261 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
7263 * devps/psstrip.sed: Strip comments before stripping trailing
7266 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
7268 * Version 1.09 released.
7270 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
7272 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
7274 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
7276 * libgroff/font.cc (font::load_desc): Fix typo in error message.
7278 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
7280 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
7281 about returning without a value.
7283 * troff/charinfo.h (charinfo::get_special_translation): Cast
7284 TRANSLATE_NONE to int.
7286 * refer/token.cc (lookup_token, store_token): Remove bogus loop
7287 test. Fix test so that it works with n unsigned.
7289 * pic/pic.y (defaults_table): Fully bracket initializer.
7290 * pic/lex.cc (lookup_keyword): Likewise.
7291 * eqn/lex.cc (token_table, def_table): Likewise.
7292 * eqn/box.cc (param_table): Likewise.
7293 * troff/input.cc (warning_table): Likewise.
7294 * libgroff/font.cc (table): Likewise.
7295 * grops/ps.cc (ps_printer::special): Likewise.
7296 * grops/psrm.cc (resource_manager::process_file): Likewise.
7297 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
7298 * refer/command.cc (command_table): Likewise.
7299 * addftinfo/addftinfo.cc (param_table): Likewise.
7301 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
7302 about temp's being unused.
7303 (unused): New function.
7305 * groff/pipeline.cc: Declare c_fatal.
7307 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
7310 * libbib/index.cc (index_search_item::load): Prevent compiler
7311 warnings about fd_closer's being unused.
7312 (unused): New function.
7314 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
7316 * troff/input.cc (copy_mode_error): Make `prefix' static.
7319 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
7321 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
7322 HAVE_CC_OSFCN_H and modify accordingly.
7324 * troff/input.cc (init_charset_table): radicalex overlaps
7327 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
7328 udodo!hans@relay.NL.net).
7329 * groff/configure.in: Call it.
7331 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
7332 * groff/configure.in: Call it.
7333 * include/lib.h: Conditionalize declaration of pclose.
7335 * troff/div.cc (last_page_number): New global variable.
7336 (top_level_diversion::begin_page): Exit if we just printed the
7338 * troff/div.h (last_page_number): Declare it.
7339 * troff/input.cc (parse_output_page_list): Set last_page_number.
7341 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
7342 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
7343 tmac/tmac.X: Likewise.
7344 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
7345 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
7347 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
7349 * tmac/doc-ditroff (hK): Remove groff specific code which
7350 prevented page-breaks between separate manual entries. If this is
7351 the first page, don't set the page number to 1.
7353 * acgroff.m4 (GROFF_POSIX): New macro.
7354 * configure.in: Use it.
7356 * troff/node.cc (class real_output_file,
7357 real_output_file::real_output_file,
7358 real_output_file::~real_output_file): Conditionalize use of
7359 popen/pclose on POPEN_MISSING.
7360 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
7361 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
7362 (pipe_source): Similarily.
7364 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
7366 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
7367 presence of declarations by trying to compile example with
7368 conflicting declarations. (gcc only gives a warning for missing
7371 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
7373 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
7374 (from Ulrich Lauther).
7376 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
7378 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
7380 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
7382 * indxbib/indxbib.cc (write_hash_table): Add code for case where
7383 pointers and ints have different sizes.
7385 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
7387 * tmac/tmac.s (par*env-init): Call par@reset.
7389 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
7391 * tmac/tmac.s (@IP): Switch to a new environment when diverting
7393 (par*push-tag-env, par*pop-tag-env): New macros.
7395 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
7397 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
7398 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
7400 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
7401 comment. Include <time.h>.
7403 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
7405 * grops/ps.cc (is_small_h, is_small_v): Deleted.
7406 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
7409 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
7411 * troff/input.cc (read_request): Only print a prompt if reading
7412 from the terminal. Also clearerr on EOF if reading from the
7413 terminal. Declare isatty.
7415 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
7417 * refer/label.y: Rename map_t to map_func and extractor_t to
7420 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
7422 * include/assert.h: Don't use volatile.
7423 * libgroff/assert.cc: Likewise.
7425 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
7427 * troff/input.cc (abort_request): Look at character in tok before
7430 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
7432 * troff/troff.h (NO_RETURN): Deleted.
7433 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
7434 * troff/input.cc (exit_troff): Likewise
7436 * Makefile.in: Remove `Making ...' messages since GNU make now
7439 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
7441 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
7443 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
7446 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
7448 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
7450 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
7452 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
7453 MARK_REG if there was no left delimiter.
7455 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
7457 * pic/troff.cc (troff_output::text): Set line thickness to
7458 relative before outputting text.
7460 * tmac/tmac.e (@k): Don't zero ?T.
7463 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
7465 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
7467 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
7469 * troff/input.cc (decode_args): Warn about unquoted tabs (from
7472 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
7474 * troff/input.cc (ignoring): New variable.
7475 (ignore): Set ignoring during call to do_define_macro.
7476 (do_define_macro): Clear ignoring before interpolating terminating
7478 (copy_mode_error): New function.
7479 (get_char_for_escape_name, read_long_escape_name,
7480 interpolate_arg): Use copy_mode_error.
7481 (warning_table): Add WARN_IG.
7482 * troff/troff.h (WARN_IG): Declare.
7483 (WARN_TOTAL): Change accordingly.
7485 * groff/pipeline.c (strsignal): Rename to xstrsignal.
7486 * groff/groff.cc (strsignal): Delete declaration.
7488 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
7490 * troff/div.cc (page_offset): Use 'm' as default scaling.
7492 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
7494 * nroff/nroff.sh: Ignore -u.
7496 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
7498 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
7500 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
7502 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
7504 (B2): With -Tascii, leave additional vertical space before
7505 and after. Ensure that the left and right indent is restored to
7506 what it was even if the point size changes. Don't call
7507 par@finish. Change the indent, line length and title length
7508 directly. With -Tascii, make the width of the box 1n less.
7509 (B1): Remember 1n at the current point size. Don't call
7510 par@reset. Change the indent, line length and title length
7511 directly. Ensure that the temporary indent is preserved.
7512 (par*box-mark-top): Turn off no spacing mode.
7514 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
7516 * Makefile.in (dist): Use .gz suffix.
7518 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
7520 * troff/input.cc (main): Add return 0.
7521 * pic/main.cc (main): Use return instead of exit.
7522 * tbl/main.cc (main): Likewise.
7523 * eqn/main.cc (main): Likewise.
7524 * grops/ps.cc (main): Likewise.
7525 * grotty/tty.cc (main): Likewise.
7526 * groff/groff.cc (main): Likewise.
7527 * grodvi/dvi.cc (main): Likewise.
7528 * refer/refer.cc (main): Likewise.
7529 * indxbib/indxbib.cc (main): Likewise.
7530 * lkbib/lkbib.cc (main): Likewise.
7531 * soelim/soelim.cc (main): Likewise.
7532 * addftinfo/addftinfo.cc (main): Likewise.
7533 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
7534 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
7536 * troff/token.h (process_input_stack): Don't declare as static.
7537 * troff/input.cc: Likewise.
7539 * troff/node.c (invalidate_fontno): Make it a static member of
7540 class font_family. Change callers.
7541 * troff/node.c: Change declaration.
7543 * tbl/main.cc (struct input_entry_format): Add explicit public
7545 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
7546 struct double_hline_stuff): Likewise.
7547 * tbl/table.h (struct entry_format): Likewise.
7548 * pic/object.h (struct saved_state): Likewise.
7550 * include/stringclass.h: Add forward declarations of friend
7551 functions that are later declared as inline. Don't include inline
7552 specifier in friend declaration.
7554 * libgroff/lib.h: Declare popen and pclose.
7555 * acgroff.m4 (GROFF_POPEN): New macro.
7556 * configure.in: Call it.
7558 * include/lib.h (PI): New constant. Undef first if necessary.
7559 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
7560 * grops/ps.cc (degrees, radians): Likewise.
7561 * libgroff/font.cc (font::get_skew): Likewise.
7563 * grops/ps.cc (is_ascii): New function.
7564 (ps_output::put_string): Use is_ascii. Use csprint rather than
7566 (ps_printer::define_encoding): Use csspace.
7567 * libgroff/strtol.c (ISASCII): New macro.
7568 (strtol): Cast arguments to is*() and tolower() to unsigned char.
7569 Use ISASCII rather than isascii.
7570 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
7571 * libgroff/cset.cc: Likewise.
7572 * libdriver/input.cc: Include cset.h.
7573 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
7576 * refer/refer.cc (main): Use %ld rather than %d for longs.
7578 * libbib/index.cc (index_search_item_iterator::get_tag): Use
7581 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
7583 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
7585 * troff/input.cc (hyphenation_code): Skip white space between
7588 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
7590 * tbl/table.h (table::entry_list_tailp): New member.
7591 (table::table): Initialize it.
7592 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
7595 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
7597 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
7598 with negative horizontal positions. Remove casts of glyph::hpos to
7600 (USHRT_MAX): Delete definition.
7601 (SHRT_MAX, SHRT_MIN): New definitions.
7602 (glyph::hpos): Change type to short.
7603 (tty_printer::end_page): Output multiple backspaces if necessary.
7604 Remove casts of glyph::hpos to int.
7606 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
7608 * tmac/tmac.s (@RT): New definition.
7610 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
7612 * refer/refer.cc (do_file): Make sure current_filename is set when
7615 * pic/common.cc (common_output::dot_line): Handle zero length
7618 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
7620 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
7621 (par@init): Initialize \n[HY].
7623 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
7625 * troff/dictionary.cc (dictionary::remove): Continue when
7628 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
7630 * Makefile.com (.y.cc): Avoid ending up with two versions of
7633 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
7635 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
7636 (\(,C): Likewise. Also fix typo.
7638 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
7640 * lib.h: Delete extraneous semi-colon.
7642 * Add pso request: `so' from a pipe.
7643 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
7644 (file_iterator::close): New function.
7645 (file_iterator::~file_iterator, file_iterator::next_file): Use
7646 file_iterator::close.
7647 (file_iterator::backtrace): Say `process' rather than `file' when
7648 the stream is popened.
7649 (pipe_source): New function.
7650 (init_input_requests): Bind ".pso" to pipe_source.
7652 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
7654 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
7656 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
7657 digits in lower case.
7659 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
7661 * Version 1.08 released.
7663 * Makefile.in (dist): Insert || true after ln -s commands that
7666 * mm: Update to mm 1.16.
7668 * acgroff.m4 (GROFF_CSH_HACK): New macro.
7669 * configure.in: Call GROFF_CSH_HACK. Substitute for
7671 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
7673 * nroff/Makefile.sub (nroff): New target.
7674 (install_data): Install nroff.
7675 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
7676 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
7678 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
7680 * eqn/Makefile.sub (neqn): Add chmod +x.
7682 * grog/Makefile.sub (grog): Remove spurious semi-colon.
7684 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
7686 * troff/input.cc (string_iterator::string_iterator()): Initialize
7689 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
7691 * troff/div.cc (macro_diversion::space,
7692 top_level_diversion::space): Don't set high_water_mark.
7693 (macro_diversion::output, top_level_diversion::output): Don't
7694 include post line space in high water mark.
7696 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
7698 * eqn/eqn.y: Don't define YYDEBUG.
7699 * pic/pic.y: Likewise.
7701 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
7703 * tmac/tmac.e ([3): Add space after comma following editors.
7704 Change double spaces to single spaces.
7705 ([4): Change double spaces to single spaces.
7707 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
7708 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
7709 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
7710 after %!PS-Adobe- (for Newsprint).
7712 * troff/div.cc (top_level_diversion::begin_page): When
7713 before_first_page is 1, set page_number to 1.
7715 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
7717 * eqn/box.cc (box::top_level): Protect equation with \&.
7719 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
7721 * groff/groff.cc (possible_command::set_name): Delete old name.
7723 * groff/groff.cc (possible_command::~possible_command): Use
7726 * troff/node.cc (troff_output_file::begun_page): New member.
7727 (troff_output_file::troff_output_file): Initialize it.
7728 (troff_output_file::really_begin_page): Only output V command if a
7729 page has been begun.
7731 * pic/pic.y (placeless_element): Delete argument to PRINT after
7734 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
7736 * Make wrapman work.
7737 * troff/div.h (class top_level_diversion): Replace
7738 first_page_begun by before_first_page (with opposite sense).
7739 * Change first_page_begun to before_first_page inverting sense.
7740 * troff/div.cc (class nl_reg): New class.
7741 (init_div_requests): Use class nl_reg for \n(nl.
7742 (top_level_diversion::begin_page): Don't call
7743 output_file::begin_page if before_first_page is 2;
7744 reset before_first_page afterwards. If have_next_page_number is
7745 false, then always increment page_number.
7746 * tmac/tmac.an: Set traps within TH rather than at the top-level.
7747 Restore compatibility mode after loading, and then disable
7748 compatibility mode in TH.
7750 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
7752 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
7754 * troff/node.h (output_file::trailer): Declare.
7755 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
7756 * troff/node.cc (output_file::trailer): New function.
7757 (troff_output_file::~troff_output_file): Move most code into...
7758 (troff_output_file::trailer): New function.
7759 (class troff_output_file): Delete page_length member. Declare
7761 (troff_output_file::really_begin_page): Use current page length
7762 for final V command.
7764 * tbl/main.cc (struct options): New decimal_point_char member.
7765 (options::options): Initialize this.
7766 (process_options): Implement decimalpoint option.
7767 (process_data): Pass decimal_point_char option to table::table.
7768 * tbl/table.h (class table): New decimal_point_char member.
7769 (table::table): Add additional argument.
7770 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
7771 second argument specifying decimal point character. Use this
7773 (table::table): Initialize decimal_point_char.
7774 (table::add_entry): Change call to find_dot.
7776 * troff/input.cc (get_copy, token::next): Implement \V.
7777 (interpolate_environment_variable): New function.
7779 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
7781 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
7782 * pic/pic.y: Likewise.
7784 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
7786 * refer/ref.cc (reference::insert_field, reference::delete_field):
7788 * troff/number.cc (parse_term): Likewise.
7790 * acgroff.m4 (GROFF_PROG_YACC): New macro.
7791 * configure.in: Use GROFF_PROG_YACC.
7793 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
7795 * Makefile.in (OPTIMIZE): New define.
7796 (DEBUG): Empty by default.
7797 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
7799 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
7800 (GROFF_ARRAY_DELETE): Likewise.
7801 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
7803 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
7805 * devps/psstrip.sed: Use different delimiter on last line (so that
7806 it works with BSD 4.4 sed.)
7808 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
7810 * devps/psstrip.sed: Delete comments.
7812 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
7813 optind, opterr, optarg.
7814 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
7817 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
7819 * Makefile.in (check): Dummy target.
7821 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
7823 * Version 1.07 released.
7825 * Integrate mm 1.11.
7827 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
7828 where start_col was meant.
7830 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
7832 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
7834 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
7836 * troff/input.cc (token::next): Make \z\o'...' and similar things
7839 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
7841 (environment): Add margin_character_flags member.
7842 * env.cc (environment::environment(symbol),
7843 environment::environment(const environment *): Initialize
7844 margin_character_flags.
7845 (margin_character): Rewrite.
7846 (environment::output_line): Add a margin character if
7847 margin_character_flags is non-zero. Turn off the
7848 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
7849 zero, use margin_character_node without copying and then set
7850 margin_character_node to 0.
7852 * devps/DESC.in: Change minimum size to 1000.
7854 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
7856 * troff/symbol.h (symbol::hash): Change return type to unsigned
7858 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
7861 * test-groff: Use -r rather than -x.
7863 * grops/psfig.diff: Include in distribution again.
7865 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
7867 * Makefile.in (dist): Use gzip.
7869 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
7871 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
7872 unistd.h as well as in stdlib.h.
7873 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
7874 defined; otherwise include <sys/types.h> and <unistd.h> if
7875 UNISTD_H_DECLARES_GETOPT is defined.
7877 * configure.in: use builtin(include, ... rather than include(...
7878 * configure: Regenerate with autoconf 1.3.
7880 * libdriver/print.cc (printer::adjust_arc_center): Use new
7881 algorithm suggested by Andy Fyfe.
7883 * libdriver/printer.cc (printer::adjust_arc_center): New function.
7884 * include/printer.h: Declare this.
7885 * grops/ps.cc (ps_printer::draw): Use it.
7886 * grodvi/dvi.cc (dvi_printer::draw): Use it.
7888 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
7890 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
7892 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
7894 * eqn/main.cc (main): Handle "eqn -".
7896 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
7898 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
7900 * mm: Integrate version 1.08.
7902 * pic/troff.cc (troff_output::finish_picture): Set
7903 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
7904 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
7905 if it's not defined. Check whether the register is non-zero rather
7906 than whether it's not defined.
7907 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
7909 * indxbib/indxbib.cc: Move all signal handling into...
7910 * indxbib/signal.c: New file.
7911 * configure.in: Call AC_RETSIGTYPE.
7913 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
7914 * configure.in: Call GROFF_STRUCT_EXCEPTION.
7915 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
7917 * troff/input.cc (token::token, token::operator=): Work round SGI
7919 * pic/object.cc (position::position): Likewise.
7921 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
7923 * pic/pic.h: Move declaration of hypot().
7925 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
7927 * pic/pic.h: Declare hypot().
7929 * pic/pic.h: Define M_PI if necessary.
7931 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
7933 * tmac/tmac.e (re): Add alternative version that doesn't use groff
7936 * devps/prologue.ps (RE): Handle the possibility that the old font
7937 doesn't have a FontName entry.
7939 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
7941 * tmac/tmac.e (fam): Redefine to set family in environment 2.
7942 (@C): Use @fam not fam.
7944 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
7946 * lookbib/lookbib.cc (main): Change type of start to const char *.
7947 * lkbib/lkbib.cc (main): Likewise.
7949 * eqn/lex.cc (definition::definition): Don't use member
7950 initializer syntax for members of anonymous unions.
7952 * troff/input.cc (input_stack::backtrace): Change type of to const
7955 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
7957 * include/stringclass.h (class string): Declare inline friend
7958 functions as inline in class declaration.
7959 * troff/hvunits.h (class hunits, class vunits): Likewise.
7960 * include/refid.h (class reference_id): Likewise
7961 * troff/troff.h (points_to_units(units), scale(units, double)):
7962 Delete declarations.
7963 * libdriver/input.cc (get_char): Delete declaration.
7964 * include/lib.h: Change 2nd argument of getopt from const char **
7966 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
7967 char **' before assigning to a `const char **'.
7968 * tbl/table.cc: Delete extra declarations of prints().
7970 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
7972 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
7973 char **' before assigning to a `const char **'.
7975 * libgroff/errarg.cc (errarg::errarg): Don't use member
7976 initializer syntax for members of anonymous unions.
7978 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
7980 * mm: Integrate version 1.07.
7982 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
7984 * troff/input.c (translate2): Rename to
7985 (translate_no_transparent).
7986 (init_input_requests): Rename tr2 to trnt.
7988 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
7990 * troff/charinfo.h (class charinfo): Add transparent_translate field.
7991 (charinfo::set_translation, charinfo::set_special_translation):
7992 Add second argument that specifies value for
7993 transparent_translate.
7994 (charinfo::get_translation, charinfo::get_special_translation):
7995 Add optional second argument that specifies whether translation is
7996 being used for transparent throughput.
7997 * troff/input.cc (charinfo::set_translation,
7998 charinfo::set_special_translation): Handle second argument.
7999 (charinfo::charinfo): Initialize transparent_translate.
8000 (translate): Split main part off into
8001 (do_translate): New function. Pass argument saying whether
8002 translation applies to transparent throughput.
8003 (translate2): New request.
8004 (init_input_requests): Bind translate2 to `tr2'.
8006 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
8008 * tbl/table.h (class table): Add `nokeep' flag.
8009 * tbl/main.cc (process_options): Handle `nokeep' option.
8010 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
8011 table::do_bottom): Don't output keep/release macro definitions or
8012 calls when `nokeep' option has been specified.
8014 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
8016 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
8018 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
8020 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
8021 block_entry::divert, alphabetic_block_entry::divert): Add extra
8022 argument giving column separation.
8023 (table::compute_widths): Pass column separation to
8024 table_entry::divert().
8025 (block_entry::do_divert): If an entry spans multiple columns and a
8026 minimumum width has been specified for each column, then set the
8027 line length to the sum of the widths (plus possibly the column
8030 * troff/input.cc (set_escape_char): Don't set the escape_char
8031 until after calling has_arg().
8033 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
8035 * tbl/table.cc (table::do_top): Add missing \s0 for double box
8038 * tbl/table.cc (table::print_double_hline): Avoid extra new line
8039 in case where r > nrows - 1.
8041 * tbl/table.cc (BODY_HEIGHT): Deleted.
8042 (LINE_SEP): New definition.
8043 (table::print_single_hline, table::print_double_hline,
8044 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
8045 table::do_row, table::do_top): Use LINE_SEP space before a line
8046 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
8048 * tbl/table.cc (text_entry::print_contents): New function.
8049 (text_string_name, right_text_string_name): Deleted.
8050 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
8051 (simple_text_entry::do_width, numeric_text_entry::do_width,
8052 alphabetic_text_entry::do_width): Don't store the contents of the
8054 (left_text_entry::simple_print, right_text_entry::simple_print,
8055 center_text_entry::simple_print,
8056 alphabetic_text_entry::simple_print,
8057 numeric_text_entry::simple_print): Print the entry directly
8058 instead of using the stored string.
8060 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
8062 * devps/Makefile: Strip PostScript files.
8063 * devps/prologue: Rename to...
8064 * devps/prologue.ps.
8065 * devps/psstrip.sed: New file.
8066 * devps/download: Use .pfa rather than .ps for installed versions
8069 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
8071 * troff/env.cc (input_trap): Give a warning if the argument is out
8074 * troff/env.cc (adjust): Treat negative argument as missing. Round
8075 argument > 5 down to 5.
8077 * troff/env.cc (center, right_justify): Make negative argument zero.
8079 * troff/div.cc (page_offset, vertical_position_traps): Treat
8080 invalid argument as missing.
8081 * troff/env.cc (line_spacing, line_length, title_length, indent,
8082 underline, hyphen_line_max_request, control_char,
8083 no_break_control_char, widow_control_request, adjust, input_trap,
8084 point_size): Likewise.
8085 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
8086 constant_space): Likewise.
8087 * troff/input.cc (compatible, shift, warn_request,
8088 set_escape_char): Likewise.
8090 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
8091 * tbl/table.cc (table::table): Likewise.
8093 * Makefile.dev (install_dev): depends on $(DEVFILES).
8095 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
8097 * devX75, devX75-12, devX100, devX100-12: New directories.
8098 * Makefile.in: Add these to DEVDIRS.
8100 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
8101 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
8102 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
8103 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
8105 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
8106 (uninstall): New target.
8107 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
8108 uninstall_prog, uninstall_dev): New targets.
8110 * troff/div.cc (return_request): Treat an invalid argument as
8113 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
8115 * tmac/tmac.e ((f): Set up the environment even when there's a
8116 current diversion. Transperently throughput a call to @N.
8119 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
8121 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
8122 up to vertical resolution.
8124 * tbl/table.cc (table::do_row): Change row number after printing
8127 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
8129 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
8131 * Rename CHANGES to NEWS.
8133 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
8135 * libgroff/new.cc (operator new): Avoid calling malloc(0).
8137 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
8139 * man.ultrix: Removed.
8141 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
8143 * Makefile.comm (extraclean): Delete files whose names begin with
8146 * pic/troff.cc (troff_output::text): Fix typo in implementation of
8149 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
8151 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
8152 * troff/div.cc (page_length, need_space, space_request): Treat
8153 invalid optional argument as missing.
8154 * troff/env.cc (number_lines): If the first argument is present
8155 but not a number, turn on line numbering, don't change the next
8156 line number and parse the remaining arguments.
8158 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
8160 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
8162 * eqn/box.h: Change declaration accordingly.
8163 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
8164 the specified size was bad but don't give an error. Check for
8166 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
8167 * eqn/lex (do_size): Likewise.
8169 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
8171 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
8174 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
8176 * tbl/table.cc (table::init_output): Improve error message when
8177 table won't fit on one page.
8179 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
8181 * pic/troff.cc (troff_output::start_picture): Generate line
8182 containing a horizontal motion equal to the width of the picture.
8184 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
8185 using GROFF_COMMAND_PREFIX environment variable.
8187 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
8189 * mdate.sh: Use $NF rather than $(NF).
8191 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
8193 * pic/main.cc (main): Use %1 not %c in argument to warning.
8195 * eqn/main.cc (main): Output code to check that geqn was given the
8198 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
8200 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
8201 `ln -s ../Makefile .; make; rm -f Makefile'.
8203 * troff/hyphen: Rename to...
8205 * troff/input.cc (main): Delete -H option. Don't call
8207 * troff/env.cc: Include searchpath.h and macropath.h.
8208 (exception_dictionary): Deleted.
8210 (read_hyphen_file): Deleted.
8211 (hyphenation_language): New struct.
8212 (class trie, class hyphen_trie): Move declarations up.
8213 (trie_node::~trie_node): Deleted.
8214 (trie::delete_trie_node): New function.
8215 (trie::do_delete): New pure virtual function.
8216 (hyphen_trie::do_delete): New function.
8217 (trie::~trie): New function.
8218 (hyphen_trie::~hyphen_trie): New function.
8219 (trie::clear): No need to chcek that tp is not 0.
8220 (current_language, language_dictionary): New variables.
8221 (hyphen_word): Give an error if no current language. Use
8222 exceptions dictionary in current language.
8223 (hyphen_trie::read_patterns_file): Find file using macro_path.
8224 Allow comments (starting with %) in patterns file. Don't make it
8225 a fatal error if the file can't be found.
8226 (hyphenate): Return if no current language. Get the exceptions
8227 dictionary and the hyphenation patterns from the current language.
8228 (set_hyphenation_language): New variable.
8229 (hyphenation_patterns_file): New function.
8230 (hyphenation_language_reg): New class.
8231 (hyphenation_language_reg::get_string): New function.
8232 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
8233 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
8235 * groff/groff.cc (main, help, synopsis): Delete -H option.
8236 * include/Makefile.sub: Don't define HYPHENFILE.
8237 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
8238 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
8239 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
8240 hyphenation patterns.
8242 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
8244 * eqn/neqn.sh: New file.
8245 * eqn/Makefile.sub: Handle neqn.sh.
8247 * eqn/eqn.h: Declare `nroff' variable.
8248 * eqn/box.cc (param_table): Add `nroff' param.
8250 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
8252 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
8254 * troff/troff.h (WARN_FONT): New warning.
8255 (WARN_TOTAL): Change accordingly.
8256 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
8257 (warning_table): Add WARN_FONT.
8258 * troff/node.cc (mount_font_no_translate): Pass argument to
8259 font::load_font. If this is non-zero, give a warning.
8260 Don't give an error message when accessing a font that has already
8261 been found to be invalid.
8262 * include/font.h (font::load, font::load_font): Add additional
8263 optional argument which suppresses error message if the font is
8265 * libgroff/font.cc (font::load_font): Handle additional argument.
8266 (font::load): Add additional argument. If this is non-null, set it
8267 to 1 and don't give error message.
8269 * include/printer.h (printer::end_page): Add argument giving
8271 * libdriver/input.cc (do_file): Pass this.
8272 * grops/ps.cc (ps_printer::end_page): Add argument.
8273 * grodvi/dvi.cc (dvi_printer::end_page,
8274 draw_dvi_printer::end_page): Add argument.
8275 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
8276 columns_per_page members. New member nlines.
8277 (DEFAULT_LINES_PER_PAGE): Deleted.
8278 (tty_printer::tty_printer): Don't compute lines_per_page from
8279 font::paperlength. Don't compute columns_per_page from
8281 (tty_printer::add_char): Don't check horizontal position against
8282 columns_per_page. Grow glyphs vector if neccessary.
8283 (tty_printer::end_page): Add argument giving page_length in units.
8284 Discard lines past end of page.
8286 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
8288 * tmac/tmac.tty-char: Fix definition of \(/l.
8290 * tmac/tmac.X: Define \(en.
8292 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
8294 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
8295 lpq, then use lp rather than lpr.
8297 * tmac/tmac.s (par@reset): Don't call `ad'.
8298 (par*env-init): Call `ad'.
8300 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
8302 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
8305 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
8306 * indxbib/indxbib.cc: Likewise.
8308 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
8310 * libgroff/putenv.c: New file.
8311 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
8312 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
8313 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
8314 stdlib.h with AC_HAVE_HEADERS.
8316 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
8318 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
8321 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
8323 * eqn/box.cc (gsize): Make it an int.
8324 (set_gsize): Parse argument handling increment or decrement.
8325 (box::top_level): Convert gsize to a string.
8327 * troff/input.cc (exit_troff): Make buf unsigned char [].
8328 Call to make_temp_iterator casts buf to char*.
8330 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
8332 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
8333 * Makefile.cpg (depend.temp): Likewise.
8335 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
8337 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
8339 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
8341 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
8343 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
8345 * Version 1.06 released.
8347 * Integrate mm 1.04.
8349 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
8351 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
8353 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
8355 * afmtodit/afmtodit.pl: Add -n option that disables generation of
8357 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
8358 afmtodit. Regenerate.
8360 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
8361 @f back past the current position.
8363 * tmac/tmac.e: Change calls to @R so that comments are not part of
8366 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
8368 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
8370 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
8371 check that we can link a call to a function declared in <stdio.h>.
8372 (GROFF_UNISTD_H): New macro.
8373 * configure.in: Call it.
8374 * Makefile.in: Document it.
8375 * include/posix.h: New file.
8376 * troff/troff.h: Don't include <osfcn.h>
8377 * troff/input.cc: Include posix.h.
8378 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
8380 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
8381 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
8383 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
8384 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
8385 * libbib/search.cc (O_RDONLY): Delete definition.
8386 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
8387 Don't include <osfcn.h>.
8389 * acgroff.m4 (GROFF_TIME_T): New macro.
8390 * configure.in: Call it.
8391 * Makefile.in: Document it.
8393 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
8394 * configure.in: Call it.
8395 * Makefile.in: Document -DTRADITIONAL_CPP.
8396 * include/ptable.h: Don't include generic.h.
8399 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
8400 Afterwards remove [T1 and [T2.
8401 (ref*spec!0, ref*spec!2): Use T1 rather than T.
8402 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
8403 (ref*add-T2): Renamed from ref*add-T.
8404 (ref*add-T1): New macro.
8406 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
8408 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
8410 * libbib/index.cc: Include <fcntl.h>.
8411 (O_RDONLY): Define if necessary.
8412 (make_index_search_item, index_search_item_iterator::get_tag,
8413 index_search_item::check_files): Use O_RDONLY.
8414 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
8415 (O_RDONLY): Define if necessary.
8416 (search_list::add_file): Use O_RDONLY.
8417 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
8419 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
8422 * libbib/index.cc (S_ISREG): Define it if necessary.
8423 (index_search_item::load): Use S_ISREG.
8425 * include/driver.h: Include <errno.h>.
8427 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
8429 * eqn/box.cc (body_height): Increase default value to 85.
8430 (body_depth): Increase default value to 35.
8432 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
8434 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
8435 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
8436 protected from expansion with \E.
8438 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
8440 * Makefile (Makefile): New target.
8442 * Makefile.sub (configure, distfiles): New targets.
8444 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
8447 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
8449 * eqn/box.cc (param_table): Add body_height and body_depth.
8451 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
8453 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
8455 * psbb/Makefile.sub: Don't link with libgroff.a.
8457 * acgroff.m4 (GROFF_PUTENV): New macro.
8458 * configure.in: Call GROFF_PUTENV.
8459 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
8460 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
8463 * troff/env.cc (distribute_space): Rename force_forward argument
8464 to force_reverse. Reverse the list if force_reverse is true.
8466 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
8468 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
8470 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
8471 height or depth to be negative. Guard against SUP_RAISE quantity
8474 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
8476 * devps/generate/textmap: Add `an' (arrowhorizex).
8477 * tmac/tmac.ps: \(an overlaps horizontally.
8478 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
8480 * devps/symbolchars: Add arrowverttp, arrowvertbt.
8481 * devps/textmap: Add arrowvertex.
8482 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
8483 updownarrow delimiters.
8484 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
8486 * tbl/table.cc (simple_entry::position_vertically,
8487 block_entry::position_vertically): For a centered entry, perform
8488 the motion in two stages.
8490 * refer/refer.cc (split_punct): Don't call lookup_token if there
8493 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
8495 * troff/input.cc (token::next): Delete token_node after copying
8498 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
8501 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
8503 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
8505 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
8507 * grops/ps.cc (usage): -b option takes an argument.
8509 * devps/prologue (PLG): New procedure.
8510 * grops/ps.cc (main, usage): New -g option.
8511 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
8514 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
8516 * include/cset.h: Include <limits.h> if we have it.
8518 * libgroff/illegal.cc: New file.
8519 * include/lib.h (illegal_input_char): Use table.
8520 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
8521 * pic/lex.cc (ARG1): Renumber to 14.
8522 * eqn/lex.cc (ARG1: Likewise.
8524 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
8525 (eg 1.05.90) correctly.
8527 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
8529 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
8530 Rename $r and $R registers to $v and $V.
8531 ($r, $R): Initialize to 0.
8532 (@v, @V): New macros.
8536 * troff/input.cc (main, usage): Add -R option that says not to
8538 * eqn/main.cc (main, usage): Rename -n to -R.
8540 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
8542 * devps/DESC.in: Leave font positions 5-9 blank.
8543 * devdvi/DESC.in: Likewise.
8545 * grog/grog.pl: Handle `.PS <file' correctly.
8547 * troff/input.cc (input_stack::push): Improve error message when
8548 input stack limit exceeded.
8550 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
8552 * refer/refer.cc (main): Fix typo in handling of `a' option.
8554 * refer/refer.cc (do_bib): In state START after a newline remain
8557 * groff/groff.sh: Deleted.
8558 * groff/Makefile.sub: Delete handling of groff.sh.
8560 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
8561 to determine whether to use \X'ps:...'.
8562 * tmac/troffrc: Set 0p register to 0.
8563 * tmac/tmac.ps: Set 0p register to 1.
8565 * groff/groff.cc: Support -X option. Give warning for -TXps and
8566 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
8567 * tmac/troffrc: Support -r.X=1.
8569 * pic/troff.cc (troff_output::dot): Don't test
8570 zero_length_line_flag.
8572 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
8574 * include/lib.h: Declare getopt() and friends unless
8575 STDLIB_H_DECLARES_GETOPT is defined.
8577 * doc/chars.tr: Delete.
8578 * man/groff_char.man: New file.
8580 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
8582 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
8583 user has changed register format.
8585 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
8587 * groff/groff.cc: Get rid of device_table. Get postprocessor from
8588 `postpro' command in DESC file. Get spooler command from `print'
8589 command in DESC file. Execute spooler command with /bin/sh.
8591 * groff/groff.cc: Split Unix-specific parts into...
8592 * groff/pipeline.c: New file.
8595 * COPYING: New file.
8596 * all files: Update copyright notices.
8598 * Rearrange files. Redo Makefiles. Use autoconf.
8600 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
8602 * troff/input.c (charinfo_to_node_list): Interpret character
8603 definition with escape_char of `\'.
8605 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
8607 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
8608 Define INT_DIGITS as big enough for 64-bit integer.
8609 * lib/strtol.c: Don't include lib.h.
8610 * lib/lib.h: Delete ifdef __cplusplus stuff.
8612 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
8614 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
8615 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
8616 get DESC from current directory.
8618 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
8620 * tbl/main.c (main): Always reset the line number when reading
8623 * tbl/table.c (table::print_single_hline, table::print_double_hline,
8624 table::define_bottom_macro, table::do_row, table::do_top): Round
8625 vertical spacing up to vertical resolution.
8627 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
8629 * ps/ps.h (enum resource_type): Avoid comma at end of
8631 * dvi/dvi.c (class dvi_printer): Likewise.
8632 * dvi/tfmtodit.c (gf::load): Likewise.
8633 * refer/label.y (struct expression): Likewise.
8634 * refer/refer.c (class label_processing_state): Likewise.
8635 * refer/indxbib.c (do_file): Likewise.
8636 * troff/troff.c (enum warning_type): Likewise.
8637 * tbl/main.c (process_data): Likewise.
8638 * troff/charinfo.h (class charinfo):
8640 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
8642 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
8644 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
8646 * groff.c: Move to new groff subdirectory.
8647 * groff/Makefile: New file.
8648 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
8650 * man/mdate.sh: Use ls -L if supported.
8652 * Consolidate all header files produced by gendef into lib/defs.h.
8653 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
8654 Don't include path.h.
8655 * lib/Makefile (path.h): Don't generate.
8656 * troff/input.c: Include defs.h. Don't include config.h.
8657 * troff/Makefile (config.h): Don't generate.
8658 * refer/index.h: Don't include suffix.h.
8659 * refer/index.c: Include defs.h.
8660 * refer/indxbib.c: Include defs.h.
8661 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
8663 * refer/Makefile (suffix.h, path.h): Don't generate.
8664 * groff.c: Don't include config.h. Include defs.h.
8665 * Makefile (config.h): Don't generate.
8666 (lib/defs.h): Generate.
8667 (topclean): Remove lib/defs.h.
8669 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
8671 * lib/malloc.c, lib/getpagesize.h: Deleted.
8672 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
8674 * lib/Makefile: Delete malloc-related stuff.
8675 * lib/new.c: Workaround COOKIE_BUG if necessary.
8677 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
8678 needed header files directly.
8679 * refer/refer.h: Omit definition of DEFAULT_INDEX.
8680 * Makefile: Include definition of DEFAULT_INDEX in path.h.
8682 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
8684 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
8686 * lib/font (font::load_desc, font::load): Don't split argument of
8688 (font::handle_unknown_font_command): Change type.
8689 * ps/ps.c (ps_font::handle_unknown_font_command,
8690 handle_unknown_desc_command): Change type.
8691 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
8693 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
8695 * lib/font.h (font::handle_unknown_font_command): Add file and
8697 * lib/font.c (font::handle_unknown_font_command):
8698 * ps/ps.c (ps_font::handle_unknown_font_command):
8699 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
8700 lineno arguments. Use _with_file_and_line functions for error
8703 * lib/fontfile.c (font::unknown_desc_command_handler): New static
8705 * lib/font.c (font::set_unknown_desc_command_handler): New
8707 (font::load_desc): For unknown commands, call
8708 unknown_desc_command_handler if not null.
8709 * lib/font.h (class font): Declare them.
8710 (FONT_COMMAND_HANDLER): New typedef.
8711 * ps/ps.c (handle_unknown_desc_command): New function.
8712 (main): Set bflag if we had a -b option. Call
8713 font::set_unknown_desc_command_handler.
8714 (broken.h): Don't include.
8715 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
8717 * ps/devps/Makefile: Add `broken' command to DESC file using
8718 BROKEN_SPOOLER_FLAGS.
8720 * macros/tmac.e ([, ]): Add as synonyms for { and }.
8722 * macros/tmac.e ($p): Only exdent if \$3 > 0.
8724 * macros/tmac.e (@R, @S): New macros.
8725 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
8726 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
8727 Declare $H, $[0-9], .. macros with @S.
8728 Declare |0, |1, |2, |3 strings with @S.
8730 * macros/tmac.e (@S): Rename to @U.
8732 * macros/tmac.e (@z): Define @b and bp as empty instead of
8735 * macros/tmac.e (@m): Deleted.
8736 (@h): Don't call @m.
8737 (@z): Don't set @m trap.
8739 * macros/tmac.e ($h, $f): Define |z as empty string.
8741 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
8744 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
8746 ()f): Likewise for * register.
8748 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
8749 argument is missing, don't change $R. Call sr with three
8750 arguments when initializing.
8752 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
8754 * macros/tmac.e (sr): New macro.
8755 Initialize $r and $R using sr.
8757 * macros/tmac.e (,): Delete \*(#[.
8759 * troff/env.c (set_tabs): Read the tab type even if the position
8760 is bad. Allow the position of the first tab stop to be negative.
8762 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
8764 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
8766 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
8767 rather than -DPATHCONF_MISSING.
8768 * Makefile: Get rid of PATHCONF_MISSING.
8770 * refer/map.c: New file.
8771 * refer/index.c: Interface to mmap through map.c. Rename map_size
8773 * refer/Makefile: Handle map.c.
8774 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
8776 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
8778 * Makefile: RANLIB should be `true' if there is no ranlib.
8779 * lib/Makefile (libgroff.a): Simplify.
8780 * driver/Makefile (libdriver.a): Simplify.
8782 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
8783 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
8786 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
8788 * troff/env.c (compare_ranges): Declare as extern "C".
8790 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
8792 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
8794 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
8796 * pic/troff.c (troff_output::text): Merge in grops_output::text,
8797 but conditionalize use of \X based on \*(.T.
8798 (grops_output::*): Deleted.
8799 * pic/output.h: Delete declaration of make_grops_output.
8800 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
8801 by default. -n sets it to 0.
8802 (usage): Corresponding changes.
8803 * groff.c (main): Don't pass -x or -p to pic.
8804 * groff.sh: Likewise.
8806 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
8809 * ps/devps/afmtodit: Change calculation of asc_boundary and
8810 desc_boundary. Make these bounds inclusive.
8811 * ps/devps: Regenerate font files.
8813 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
8815 * macros/tmac.latin1: New file.
8816 * macros/tmac.tty-char: Use tmac.latin1.
8817 (tmac.tty-tr): Deleted.
8818 * macros/Makefile: Install tmac.latin1.
8819 * macros/tmac.dvi: Use tmac.latin1.
8820 * macros/troffrc: Translate \[char160] onto no-break space here.
8821 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
8823 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
8825 * macros/tmac.Xps: Use `do' request.
8827 * macros/tmac.ps: Use `do' request.
8829 * macros/tmac.e (@C): Use `do' request.
8831 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
8832 * macros/Makefile: Install tmac.X*.
8834 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
8835 * tty/Makefile: Don't install tmac.tty*.
8836 * macros/Makefile: Install tmac.tty*.
8838 * dvi/tmac.dvi: Move to macros.
8839 * dvi/Makefile: Don't install tmac.dvi.
8840 * macros/Makefile: Install tmac.dvi.
8842 * ps/tmac.ps*: Move to macros.
8843 * ps/Makefile: Don't install tmac.ps*.
8844 * macros/Makefile: Install tmac.ps*.
8846 * eqn/box.c: Provide draw_lines parameter corresponding to -D
8848 * macros/eqnrc: Set draw_lines parameter based on device.
8849 * groff.c: Don't pass -D flag to eqn.
8850 * groff.sh: Likewise.
8851 * eqn/main.c: Warn about use of -D.
8853 * troff/input.c (process_startup_file): New function.
8854 (main): Call process_startup_file().
8855 * macros/troffrc: New file.
8856 * macros/Makefile: Install troffrc.
8857 * groff.c (main): Don't pass extra -m option to troff. For a
8858 pseudo device pass the name of the pseudo device to troff using
8860 * groff.sh: Likewise.
8861 * groff.c (possible_command::prepend_arg): Deleted.
8863 * troff/input.c (do_request): New function.
8864 (init_input_requests): Bind "do" to do_request.
8866 * eqn/main.c (main): Instead of loading eqnchar from device directory,
8867 load eqnrc from macro directory.
8868 * macros/eqnrc: New file.
8869 * macros/Makefile: Install eqnrc.
8870 * ps/devps/eqnchar: Deleted.
8871 * ps/devps/Makefile: Don't install eqnchar.
8872 * dvi/devdvi/eqnchar: Deleted.
8873 * dvi/devdvi/Makefile: Don't install eqnchar.
8874 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
8877 * lib/device.[ch]: New files.
8878 * lib/font.h (font::set_device_name, font::get_device_name):
8880 * lib/fontfile.c: Use device.h.
8881 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
8882 * troff/input.c: Delete definition of `device'.
8883 (main): Don't initialize device.
8884 * troff/troff.h: Include device.h rather than declaring device.
8885 * troff/Makefile: No need to handle DEVICE.
8886 * driver/input.c: Include device.h. Don't use
8887 font::{set,get}_device_name.
8888 * groff.c, Makefile: Rename device.h to config.h.
8889 * groff.c: Use library device variable.
8890 * eqn/main.c: Use library device variable.
8891 * eqn/Makefile: No need to handle DEVICE.
8893 * lib/searchpath.[ch]: New files.
8894 * lib/Makefile: Handle searchpath.[ch].
8895 * troff/input.c (open_file, init_dirs): Deleted.
8896 (macro_dirs): Deleted.
8897 (open_mac_file, macro_source): Use class search_path.
8898 (add_string, struct string_list): Move definition.
8899 (main): Change -M option to use macro_path. Delete call to
8901 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
8902 Rewrite to use class search_path.
8903 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
8904 * lib/Makefile: fontfile.c depends on searchpath.h.
8905 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
8907 * lib/macropath.[ch]: New files.
8908 * troff/Makefile: No need to handle MACROPATH.
8910 * troff/input.c: Delete DUMP code.
8911 * lib/fontfile.c, lib/font.h: Delete
8912 font::forget_command_line_font_dirs.
8914 * troff/input.c (push_token): New function.
8915 (handle_first_page_transition): Use push_token().
8916 (process_input_stack): Change handling of a space at the beginning
8919 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
8921 * troff/input.c (font_dirs): Delete unused variable.
8923 * eqn/lex.c (do_set): Correct error messages.
8925 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
8927 * troff/input.c (do_define_string): Allow the string name to be
8928 followed immediately by a tab.
8929 (define_character): Likewise.
8931 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
8933 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
8936 * troff/input.c (input_iterator::is_file): New virtual function.
8937 (file_iterator::is_file): New function.
8938 (input_stack::end_file): New function.
8939 (input_stack::next_file): Handle the situation where there is no
8940 file on the input stack correctly. Avoid making two passes over
8942 (next_file): Make the filename optional; in this case call
8943 input_stack::end_file().
8945 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
8947 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
8948 produce a real _ charater when the current font is CW and _
8951 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
8952 expression to work around gcc 2.2 bug.
8954 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
8956 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
8958 * troff/env.c (environment::add_padding): New function.
8959 (environment::add_char): Use add_padding().
8960 (environment::space): Likewise.
8961 (environment::wrap_up_field): Add some padding if there is none
8962 and there's no current tab.
8963 * troff/env.h: Declare environment::add_padding.
8965 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
8967 * pic/pic.y: undef fmod and rand before declaring them.
8969 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
8971 * troff/input.c (main): If the DESC file specifies a font name of
8972 0, then leave the corresponding font position empty.
8974 * nroff.sh: New file.
8975 * Makefile (install.nobin): Install nroff.sh.
8977 * tty/devlatin1/R.proto: Add ao as synonym for de.
8978 * tty/tmac.tty-char: Define ao as o.
8980 * tty/dev{ascii,latin1}/R.proto: Add aq.
8981 * tty/tmac.tty-char: Delete definition of aq.
8983 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
8985 * troff/input.c (init_charset_table): Don't translate 0240.
8986 * ps/tmac.ps: Translate char160 to space.
8987 * dvi/tmac.dvi: Likewise.
8988 * tty/tmac.tty: Likewise.
8990 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
8992 * dvi/tmac.dvi: Add support for all Latin-1 characters.
8994 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
8995 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
8998 * tty/tmac.tty-char: Add \(ah.
9000 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
9001 No need to define \(FM and \(!/. Conditionalize all character
9004 * ps/devps/lgreekmap: Add +h, +f, +p.
9006 * ps/tmac.psnew: New file.
9007 * ps/Makefile: Install tmac.psnew.
9009 * troff/input.c (charinfo_to_node_list): Don't ever interpret
9010 character definitions in compatible mode.
9012 * troff/input.c (remove_character): New function.
9013 (init_input_requests): Bind remove_character to "rchar".
9015 * ps/tmac.psold: New file.
9016 * ps/Makefile: Install tmac.psold.
9017 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
9018 characters into tmac.psold. Make these definitions unconditional.
9020 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
9022 * ps/tmac.ps: Don't define \('c and \('C.
9024 * ps/devps/textmap: Move Greek characters to...
9025 * ps/devps/symbolchars:
9027 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
9029 * ps/devps/text.enc: Add quotesingle.
9030 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
9031 * tty/tmac.tty-char: Likewise.
9032 * dvi/devdvi/texmi.map: Add +h, +f, +p.
9033 * dvi/devdvi/texi.map: Add Fn.
9034 * dvi/devdvi/msam.map: Add lz.
9035 * dvi/tmac.dvi: Handle Bq, bq, aq.
9037 * pic/lex.c (get_token): Recognize 'th.
9038 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
9040 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
9042 * ps/devps/textmap: Move di, mu, +- to...
9043 * ps/devps/symbolchars:
9045 * macros/tmac.s (@XS): Don't call par@reset or fi.
9046 (XA): Call LP. Turn off adjustment. Reduce line length.
9048 * macros/tmac.s: Initially alias XS to LP.
9049 (XS): Rename to @XS.
9050 (cov*ab-init): Alias XS to @XS.
9052 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
9054 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
9055 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
9056 (token::is_size, token::changes_env): Deleted.
9057 * troff/number.c (parse_term): No need to process \s explicitly.
9058 Call tok.next() only after scale indicator has been processed.
9059 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
9061 (token::next): Handle \s, \f, \S, \H immediately rather than
9062 returning them as tokens.
9063 (token::operator==, token::description, token::add_to_node_list,
9064 token::process): Remove handling of deleted tokens.
9066 * troff/env.c (environment::add_char): When adding padding
9067 indicator character, call start_line() if necessary.
9069 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
9071 * ps/devps/afmtodit: Don't output 0 kerns.
9073 * ps/devps/afmtodit: Remove directory from name of encoding in
9074 font description file.
9076 * ps/devps/afmtodit: Improve error messages.
9078 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
9080 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
9081 * ps/devps/FontMakefile: Deleted.
9082 * ps/devps/afmname: New file.
9084 * ps/devps/symbol.sed: New file.
9085 * ps/devps/symbol.diff: Deleted.
9086 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
9087 Generate zapfdr.afm from zapfd.afm.
9089 * tty/tmac.tty (tty-char): Prefix definition with ".
9091 * macros/tmac.an (TP): Don't start a diversion if one has already
9094 * tty/tmac.tty-char: Add Latin-1 characters.
9096 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
9098 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
9100 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
9101 Move declaration of struct horizontal_span.
9103 * tbl/table.c (table::table): Initialize span_list.
9104 (table::~table): Delete span_list.
9106 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
9108 * ps/devps/Makefile: Avoid dependency on GNU make.
9110 * ps/tmac.ps: Check that character does not already exist before
9113 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
9114 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
9115 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
9118 * tty/tmac.tty-char: New file.
9119 * tty/Makefile: Install tmac.tty-char.
9120 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
9123 * tty/tmac.tty: Fix definition of \(34.
9125 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
9126 bracket-drawing characters onto |. Add *o.
9128 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
9129 only if current_field.
9131 * troff/dictionary.c (dictionary::lookup): Free old_table after
9134 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
9136 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
9137 whose glyphs are identical to glyphs of some Roman character.
9139 * tty/devlatin1/R.proto (bu): Deleted.
9140 * tty/devascii/R.proto (bu): Deleted.
9141 * tty/tmac.tty: Add definition of \(bu.
9143 * eqn/main.c (do_file): Pass FILE as argument.
9144 (main): Automatically load eqnchar. New options -F and -n.
9145 Pass do_file an opened FILE.
9146 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
9147 No need to include font.h.
9148 * groff.sh: Likewise. Don't need to use - for standard input.
9149 Prefix files with -- if first file starts with -.
9151 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
9153 * troff/env.c (environment::possibly_break_line): Don't set line
9154 to 0 across call to output_line(). Don't call output_line() until
9155 after discarding nodes after break.
9157 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
9159 * request.h (macro::empty): Declare it.
9160 * input.c (macro::empty): New method.
9161 (interpolate_macro): Don't give a WARN_SPACE if the two-character
9164 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
9166 * troff/env.c (environment::start_field): Decrement space_total
9167 when a space is frozen.
9169 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
9171 * macros/tmac.an (R): Delete macro.
9173 * troff/input.c (get_copy, token::next): Support \# (like \" but
9174 newline is ignored).
9176 * troff/input.c (token::next): Fix error message in 'Y' case.
9178 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
9180 * eqn/delim.c (define_extensible_string): Recognize any prefix of
9183 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
9185 * c++test.c: Include <osfcn.h>.
9187 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
9190 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
9192 * tbl/table.c (table::divide_span): Don't count column separation
9193 if expand was specified.
9195 * tbl/main.c (process_format): Don't ignore width specs in
9196 continued format. Give warning for changing equal widths or
9197 column separation in continued format.
9198 (process_data): Set column separation, minimum width, equal
9199 columns at end of table.
9201 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
9203 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
9204 node::add_discretionary_hyphen): Use soft_hyphen_char.
9205 (set_soft_hyphen_char): New function.
9206 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
9208 * Makefile (c++tested): Give more helpful message if test fails.
9210 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
9212 * troff/input.c (init_charset_table): Translate 0240 to
9213 an unbreakable space.
9215 * troff/token.h (token::hyphen_indicator): New function.
9216 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
9218 * troff/input.c (translate): Allow translation to \%.
9219 * troff/node.c (node::add_char): Handle
9220 TRANSLATE_HYPHEN_INDICATOR.
9221 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
9223 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
9226 * tty/devlatin1/R.proto: \(hy and - should print as 055.
9228 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
9230 * groff.c (run_commands): If the last command gets a SIGPIPE send
9231 a SIGPIPE to all children than haven't yet terminated. When
9232 command terminates, set pid field to -1.
9234 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
9236 * groff.c (main): Pass an appropriate -filename option to gxditview.
9238 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
9240 * Makefile.bd (install): Remove existing program before copying.
9242 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
9243 programs which have Unix counterparts to be installed with
9244 user-specified prefix.
9246 * troff/input.c (exit_troff): Don't check if exit_started.
9247 (exit_request): Don't call exit_troff if exit_started.
9249 * Makefile.bd (install.mm): Rename to install.dwbmm.
9251 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
9253 * driver/input.c (do_file): Add missing break for '#' case.
9255 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
9257 * troff/input.c (input_stack::clear): Clear past any boundaries and
9258 then add the boundaries back.
9260 * troff/input.c (exit_troff): Return immediately if already
9263 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
9265 (pg*end-page): If the text has ended and there are no more
9266 footnotes or keeps, exit.
9268 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
9270 * troff/input.c (init_charset_table): Make \(rq transparent by
9273 * macros/tmac.an: Define lq and rq strings.
9275 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
9277 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
9279 * troff/env.c (environment::final_break): New function.
9280 (environment::newline): Set prev_line_interrupted to 2 if
9282 * troff/env.h: Declare environment::final_break.
9283 * troff/input.c (exit_troff): Call environment::final_break()
9284 instead of environment::do_break().
9286 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
9287 doesn't already exist.
9288 * macros/man.local: New file.
9289 * macros/tmac.an: Load man.local.
9290 * macros/man.ultrix: New file.
9292 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
9294 * troff/input.c (exit_groff): Rename to...
9295 (exit_troff): New function.
9297 * troff/div.c (exit_started, done_end_macro,
9298 seen_last_page_ejector): New global variables.
9299 (began_page_in_end_macro): New static variable.
9300 (exit_flag): Deleted.
9301 (top_level_diversion::top_level_diversion): Initialize
9303 (top_level_diversion): More elaborate test for whether
9304 cleanup_and_exit() should be called.
9305 Set began_page_in_end_macro if the end macro isn't yet finished.
9306 * troff/div.h (top_level_diversion::last_page_count): New data
9308 (top_level_diversion::set_last_page): New function.
9309 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
9310 * troff/env.c (do_break): Zero prev_line_interrupted.
9311 * troff/input.c (exit_flag): Delete declaration.
9312 (LAST_PAGE_EJECTOR): New magic cookie.
9313 (token::next): Handle LAST_PAGE_EJECTOR.
9314 (exit_groff): Set exit_started and done_end_macro instead of
9315 exit_flag. Call top_level_diversion::set_last_page. Push a
9316 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
9317 another ejection after setting seen_last_page_ejector.
9319 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
9321 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
9323 * macros/tmac.e (TH): Make sure there's room for the initial
9326 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
9327 Set FVS in points rather than units.
9329 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
9331 * troff/div.c (top_level_diversion::add_trap): Don't consider the
9332 position of empty slots.
9334 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
9336 * ps/devps/S: Fix height and depth of parenrightex.
9337 * ps/devps/symbol.diff: Regenerate.
9339 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
9341 * tmac.e (u): Do underlining as in -mgs.
9343 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
9345 * tty/tty.c (tty_printer::end_page): If overstriking is
9346 suppressed, still turn overstruck horizontal and vertical lines
9349 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
9352 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
9354 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
9356 * Version 1.05 released.
9358 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
9360 * tty/tty.c: Instead of keeping an array of glyphs and then
9361 sorting it, keep a ordered linked list of glyphs for each line.
9363 * driver/driver.h: Include stddef.h.
9365 * tty/tty.c (compare_glyph):
9366 * refer/refer.c (rcompare):
9367 * troff/env.c (compare_ranges): Arguments of qsort comparison
9368 function should be const void *.
9370 * troff/number.c (parse_term):
9371 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
9374 * refer/label.y (consider_authors): Don't access variables
9375 constructed under a condition outside that condition: put braces
9376 round for statement containing declaration; redeclare use of same
9379 * pic/pic.y (text_expr): Delete production that allows
9380 parenthesised text_expr.
9381 (expr): Allow a conditional_expr to appear in parentheses.
9382 (conditional_expr): Rename to any_expr.
9384 * mm: Install new version 1.01 from jh.
9386 * lib/font.c (font::get_width): Cache scaled widths.
9387 (font::font): Initialize widths_cache.
9388 (font::~font): Destroy widths_cache.
9389 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
9391 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
9393 * c++test.c, c++test.ref: New files.
9394 * Makefile: Check that the C++ compiler works.
9396 * ps/tmac.pspic (PSPIC): Do a break.
9398 * ps/tmac.ps: Move definition of PSPIC into...
9399 * ps/tmac.pspic: New file.
9400 (PSPIC): Draw box around picture, but make it invisible to grops.
9401 * ps/tmac.ps: Load tmac.pspic.
9402 * ps/Makefile: Install tmac.pspic.
9404 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
9406 * lib/font.c (scale_round): If n is negative,
9407 subtract .5 before truncating floating point result.
9409 * lib/fontfile.c: Include <errno.h>.
9411 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
9413 * driver/input.c (get_char): Inline. Don't update current_lineno.
9414 Change callers to up date current_lineno if necessary.
9415 Use get_char() instead of getc(current_file).
9417 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
9419 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
9421 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
9423 * tty/tty.c (tmac.tty): Define \(rg as (R).
9425 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
9427 * lib/lib.h: New define a_delete.
9428 * Use a_delete instead of delete when deleting an array of objects
9429 without destructors.
9431 * lib/lib.h: Rename adelete to ad_delete.
9432 * Change uses of adelete.
9434 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
9436 * eqn/eqn.y: Include lib.h.
9438 * troff/node.c (grow_font_table): Delete old_font_table.
9440 * mm: Install new version from jh.
9442 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
9444 * tbl/table.h (format_type): Make global instead of local to class
9445 entry_format. Prefix enumerators with FORMAT_.
9446 * tbl/table.c, tbl/main.c: Corresponding changes.
9447 * refer/token.h (token_type): Make global. Prefix enumerators
9449 * refer/token.[ch]: Corresponding changes.
9450 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
9452 * troff/div.c (node::set_vertical_size): Don't name argument.
9454 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
9456 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
9457 * lib/lib.h: Define adelete accordingly.
9458 * pic/object.c (graphic_object::graphic_object):
9459 * tbl/main.c (format::~format):
9460 * tbl/table.c (table::~table):
9461 * refer/ref.c (reference::~reference, reference::merge,
9462 reference::insert_field, reference::delete_field): Use adelete.
9464 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
9466 * tbl/table.h: Corresponding changes.
9468 * common.c (common_output::dashed_arc, common_output::dotted_arc):
9469 Ensure total_angle is positive.
9471 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
9473 * refer/ref.c (reference::merge, reference::insert_field,
9474 reference::delete_field): Avoid delete[0].
9476 * refer/token.c (init_special_chars): Move calls to cmupper
9477 outside calls to init_two_char_letter to work around bug in gcc
9480 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
9482 * lib/new.c (operator new): Use __builtin_new for g++.
9484 * pic/object.c (graphic_object::~graphic_object): Don't use
9487 * pic/object.c (output::compute_scale): Initialize max_width and
9490 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
9492 * troff/input.c (write_request): Call fflush.
9494 * troff/node.h (class composite_node): Move declaration to node.c
9495 * troff/input.c (charinfo_to_node): Rename to ...
9496 (charinfo_to_node_list): Return node list rather than composite
9498 * troff/node.c (make_composite_node): New function.
9499 (make_node, add_char): Call make_composite_node instead of
9501 (class composite_node): Add a tfont * member. Delete font_size
9503 (composite_node::composite_node, composite_node::copy,
9504 composite_node::size): Corresponding changes.
9505 (composite_node::tprint): Provide constant spacing, emboldening
9506 and track kerning as specified in tfont.
9507 (composite_node::width): Change width calculation accordingly.
9508 * troff/env.h (environment::composite): New member.
9509 (environment::is_composite, environment::set_composite): New
9511 * troff/env.c (environment::environment): Initialize composite.
9512 * troff/input.c (charinfo_to_node): Call
9513 environment::set_composite.
9514 * troff/node.c (make_composite_node, make_glyph_node): Use the
9515 plain version of the tfont if the environment is composite.
9517 * troff/node.c (font_info::get_space_width): Additional argument
9518 giving space_size. Handle constant space correctly. Scale by
9519 space_size unless constant spaced.
9520 (env_sentence_space_width): New function.
9521 * troff/node.h: Declare it.
9522 * troff/env.h (environment::get_space_size,
9523 environment::get_sentence_space_size,
9524 environment::get_narrow_space_width,
9525 environment::get_half_narrow_space_width): Make inline.
9526 (environment::get_space_width): Make inline. Just call
9528 * troff/env.c: Delete definitions for funtions made inline.
9529 (environment::space_newline, environment::space): Use
9530 env_sentence_space_width(). Don't scale by space_size.
9531 * troff/node.h: Move declarations of env*space_width() functions
9534 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
9536 * macros/tmac.s (PS): Don't try to set negative indent.
9538 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
9540 * pic/pic.y: Fix min function.
9542 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
9544 * man/mdate.sh: Clear LANGUAGE.
9546 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
9548 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
9549 * pic/lex.c: New COMMAND keyword.
9550 * pic/pic.y (print_args, print_arg): New rules.
9551 (placeless_element): Use print_args for PRINT.
9552 New COMMAND element.
9554 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
9556 * troff/input.c (terminal): Handle missing argument correctly.
9558 * pic/pic.y (text_expr): New rule.
9560 * pic/pic.y: Implement := operator.
9562 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
9564 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
9567 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
9569 * ps/devps/dingbatsrmap: Include this in the distribution.
9571 * macros/tmac.doc: Replace with new version from 2nd Networking
9572 Release. Fix loading of doc-* files.
9573 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
9574 * macros/tmac.doc.old: New file. Apply fixes that had been
9575 applied to old tmac.doc.
9576 * macros/tmac.andoc: Check that we're running under groff.
9577 * macros/Makefile: Rework.
9579 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
9581 * tbl/table.h (format_type):
9582 * refer/token.h (token_type): If NESTED_TYPES is defined, use
9583 typedef to make these types visible at file scope.
9584 * Makefile: Add NESTED_TYPES configuration option.
9586 * troff/div.c (mark): At the top level use the value of
9587 nl_reg_contents rather than the current vertical position.
9589 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
9591 * tty/tty.c: Implement \D for horizontal or vertical lines.
9592 (tty_printer::set_char): Use vec_used+2 as serial number.
9593 Don't allow size of vector to exceed USHRT_MAX-2.
9594 Split off part into...
9595 (tty_printer::add_char): New function.
9596 (tty_printer::draw): New function.
9597 (compare_glyph): Handle equal serial numbers.
9598 (tty_printer::end_page): Handle overstruck characters from \D.
9599 (main, usage): Implement -d option.
9601 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
9603 * tbl/main.c (process_format):
9604 * eqn/text.c (split_text):
9605 * troff/input.c (token::next): Use inner block for declarations
9606 with initializers in switch statement.
9608 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
9610 * pic/common.c (common_output::dash_line): Cope with zero-length
9613 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
9615 * Version 1.04 released.
9617 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
9619 * macros/tmac.an (TH): Define a macro an-init to define variables
9620 based on command line arguments.
9621 (an-header): Call it.
9623 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
9625 * Makefile (install.mm): Rename to install.dwbmm.
9627 * Makefile: Integrate mm.
9628 * mm: New directory.
9630 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
9632 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
9635 * pic/troff.c (troff_output::simple_spline,
9636 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
9637 shadowing parameter.
9639 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
9641 * lib/ptable.h: Add explicit casts when converting from unsigned
9644 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
9645 * dvi/devdvi/Makefile: Install SA, SB.
9647 * refer/indxbib.c: Add declaration of mktemp.
9649 * refer/lookbib.c: Add declaration of isatty.
9651 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
9653 * pic/lex.c (interpolate_macro_with_args): While collecting
9654 arguments, keep track of whether we're in a string.
9656 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
9658 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
9659 down with \v, so as to avoid problems with top of page trap
9660 setting no space mode.
9662 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
9664 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
9666 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
9668 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
9669 Improve error message.
9671 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
9673 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
9676 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
9678 * groff.c (possible_command::execp): Always use _exit() after a
9681 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
9682 NO_SYS_WAIT_H configuration options.
9683 * groff.c: Use these options. Use POSIX-style macros to extract
9684 fields from the status returned by wait().
9686 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
9688 * tbl/table.c (table::compute_separation_factor): Allow the
9689 separation factor to drop to 0.
9691 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
9693 * refer/search.c: Include <errno.h>.
9695 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
9697 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
9699 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
9702 * pic/lex.c (input_stack::bol): Move definition out of class body.
9704 * pic/main.c: On MSDOS munge argv[0].
9706 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
9708 * lib/ptable.c (hash_string): Use unsigned long rather than
9710 (next_ptable_size): Use unsigned rather than int. Give an error
9711 message if we've hit the largest table size.
9712 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
9715 * pic/object.h (object_spec): Make flags unsigned long. Declare
9716 flags as const unisgned long rather than as enums.
9718 * pic/output.c: Deleted.
9720 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
9722 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
9723 Add additional argument.
9724 (line_entry::note_double_vrule_on_{left,right}): Set value of
9725 douvle_vrule_on_{right,left} flag according to argument.
9726 (simple_line_entry::simple_print,
9727 simple_line_entry::double_line_print): If adjacent to double vrule
9728 on a corner extend rather than shorten the rule by half the double
9731 * troff/number.c (parse_term): In checking for overflow, handle the
9732 case where the current horizontal position is negative.
9734 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
9736 * pic/object.c (draw_arrow): Check for object having zero length.
9738 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
9740 * eqn/main.c (do_file): Split off inline equation handling into...
9741 (inline_equation): New function. Search for starting delimiter
9743 (delim_search): New function. Don't recognize a delimiter that
9744 occurs in the name of an escape sequence, number register, string
9747 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
9749 * eqn/delim.c (delim_box::compute_metrics): Don't call
9750 define_extensible_string if left is 0.
9751 (delim_box::output): Don't print the left delimiter if left is 0.
9752 (delim_box::debug_print): Check for left == 0 before calling printf.
9754 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
9756 * troff/Makefile (majorminor.c): Include only digits in
9759 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
9761 * refer/dirnamemax.c: new file.
9762 * refer/genlimits.c: Deleted.
9763 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
9764 Don't check path length.
9765 * refer/Makefile: Add dir_name_max.o; delete genlimits.
9766 * Makefile: Add PATHCONF_MISSING option.
9768 * refer/indxbib.c (get_cwd): New function.
9769 (main): Use get_cwd().
9770 * lib/getcwd.c: New file.
9771 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
9773 * lib/Makefile: Compile getcwd.o.
9775 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
9778 * refer/indxbib.c (main): Check success of mktemp.
9780 * lib/tmpfile.c: New file.
9781 * lib/Makefile: Add tmpfile.c.
9782 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
9783 * ps/ps.h: Delete declaration of mktemp().
9784 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
9785 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
9786 * driver/driver.h: No need now to include errno.h.
9788 * everywhere: Set errno to 0 before calling fopen().
9790 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
9791 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
9792 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
9794 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
9796 * troff/env.h (translate_space_to_dummy): Declare it.
9797 * troff/env.c (environment::space_newline, environment::space):
9798 If translate_space_to_dummy is set then make the width of spaces 0.
9799 * troff/input.c (translate): If the second character of a
9800 translation is a space, translate to unbreakable space. If the
9801 first character is a space, set or clear translate_space_to_dummy
9802 according to whether the second character is \&. Weird!
9804 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
9806 * groff.c (run_commands): Don't use non-zero exit code because a
9807 command gets SIGPIPE.
9809 * groff.c, groff.sh: Use -mXps with -TXps.
9811 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
9812 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
9813 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
9814 (ps_printer::special): New specials invis and endinvis.
9815 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
9816 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
9817 (ps_printer::end_page): Check that invis_count == 0.
9818 (ps_printer::invis_count): New member.
9819 (ps_printer::ps_printer): Initialize invis_count to 0.
9821 * troff/env.c (environment::hyphenate_line): Hyphenation
9822 indicator at beginning of word inhibits splitting after -, \(em
9825 * pic/pic.y (element): Allow another element to follow } without
9826 any intervening separator.
9828 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
9830 * pic/lex.c (get_delimited): Allow tabs before delimiter.
9832 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
9834 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
9835 declaration of wait() in header files.
9836 * Makefile: Get rid of -DHAVE_UNION_WAIT.
9838 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
9840 * lib/lib.h: Declare return type of strerror as char *.
9842 * man/Makefile: Add g flag to sed substitutions.
9843 * Makefile (shgroff, bindist): Likewise.
9845 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
9847 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
9848 * ps/devps/prologue (PBEGIN): Define showpage after pushing
9851 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
9853 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
9856 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
9858 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
9861 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
9863 * troff/input.c (define_number_reg): If currently undefined,
9864 don't define it if the argument is an invalid expression.
9866 * Makefile: Ignore return value of `if' commands without `else'
9869 * Makefile: Split up CPPDEFINES into a series of separate
9870 configuration options.
9872 * troff/input.c (init_registers): Use time_t instead of long
9873 unless LONG_FOR_TIME_T is defined. Use returned result rather
9874 than passing pointer.
9875 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
9877 * lib/Makefile (fontpath.h): Use gendef.
9879 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
9881 * troff/input.c (input_iterator::shift): Delete argument name.
9882 * troff/node.c (suppress_output_file::really_begin_page,
9883 suppress_output_file::really_transparent_char, node::ascii_print,
9884 node::tprint): Delete names of unused arguments.
9886 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
9888 * refer/label.y (string): Pass $4 to command_error.
9890 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
9892 * Version 1.03 released.
9894 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
9896 * Makefile: Pass definition of SHELL in SUBFLAGS.
9899 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
9900 ps/Makefile: Use gendef to construct header files that are
9901 constructed from the Makefile.
9903 * macros/Makefile: make all should build stripped version of tmac.e.
9905 * refer/Makefile (clean): Remove y.output.
9907 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
9909 * ps/pfbtops.c (main): Add -v option which prints out a version
9911 * ps/Makefile (pfbtops): Link with libgroff.a.
9913 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
9915 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
9916 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
9918 * refer/lkbib.c (main): Always terminate reference with blank
9920 * refer/lookbib.c (main): Likewise.
9922 * refer/linear.c (file_buffer::load): Check that the file is not a
9925 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
9926 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
9927 Delete second inclusion of <sys/param.h>.
9929 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
9931 * troff/token.h (token::special): Deleted.
9933 * tbl/main.c (process_format): Rework so that opt->tab_char is
9934 recognized only when appropriate.
9936 * ps/Makefile (clean): Remove pfbtops.
9938 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
9940 * lib/font.c (text_file::next): Don't return if we have got a
9943 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
9945 * refer/refer.c (store_reference): Get hash code from old_table[i]
9946 when rehashing the table.
9948 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
9950 * eqn/box.c (box::top_level): Save size and prev size using \R and
9951 restore it afterwards. Set the size to the size at the beginning
9953 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
9954 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
9956 * refer/Makefile (limits.h): Use ./genlimits.
9958 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
9960 * refer/index.c: Delete declarations of stat() and fstat().
9962 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
9964 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
9966 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
9968 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
9970 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
9972 * troff/input.c (token::get_char): Handle \e.
9974 * refer/linear.c: Delete declarations of fstat() and stat().
9976 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
9978 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
9979 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
9981 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
9983 * troff/input.c (do_define_macro): Improve error handling for end
9984 of file while defining macro.
9986 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
9988 * eqn/box.h: Fix declaration of set_gsize.
9989 * eqn/box.c (set_gsize): Make argument const char *.
9990 (gsize): Declare as char *.
9991 * eqn/main.c (main): Don't convert gsize to int.
9992 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
9994 * Version 1.02 released.
9996 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
9998 * macros/tmac.andoc: New file.
9999 * macros/Makefile: Install tmac.andoc.
10001 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
10002 operator new and delete on OP_DELETE_BROKEN not being defined.
10003 * Makefile: Mention OP_DELETE_BROKEN.
10005 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
10007 * Makefile (bindist): Pass SUBFLAGS.
10009 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
10011 * Makefile, groff.c: Pass definitions to groff.c via device.h.
10013 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
10016 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
10018 * ps/ps.h, ps/psrm.c: Make comment_table and
10019 header_comment_table local to resource_manager::process_file.
10021 * groff.sh: With -TXps pass -printCommand option to gxditview.
10023 * groff.c (possible_command::print): Implement using
10024 append_arg_to_string.
10026 * xditview: Merge in new implementation with own ChangeLog.
10028 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
10030 * groff.c (main): Implement PRINT_OPTION.
10031 (append_arg_to_string): New command.
10032 (device_table): Set PRINT_OPTION flag for Xps.
10034 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
10036 * troff/groff.h: Rename to troff.h.
10038 * pic/lex.c (lookup_keyword, docmp): New functions.
10039 (get_token): Use new lookup_keyword.
10040 Don't include key.h.
10041 * pic/key.[ch], pic/pic.gperf: Deleted.
10042 * pic/Makefile: Remove gperf stuff.
10044 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
10046 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
10048 * troff/Makefile, troff/node.c: Move definition of
10049 STORE_WIDTH into node.c.
10051 * etc/grog.pl, etc/grog.sh: Support -mdoc.
10053 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
10055 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
10056 dvi/devdvi/texb.map: Add lq and rq.
10057 dvi/devdvi: Regenerate fonts.
10058 * ps/devps/textmap: Add lq and rq.
10059 * ps/devps: Regenerate fonts.
10060 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
10061 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
10063 * pic/object.c (position_rectangle): When checking radius
10064 cope with possiblity that width or height is negative.
10065 (box_object::box_object): Have separate xrad and yrad with
10066 signs matching signs of dim components.
10067 (box_object::{north,south}_{east,west}): Use xrad and yrad.
10068 (box_object::print): With rounded boxes use absolute values
10069 for dim and rad arguments.
10071 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
10074 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
10076 * various files: Add explicit destructors to keep Saber CC +d
10079 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
10081 * eqn/box.c (box::top_level): Restore fonts correctly after
10082 font changes in line containing inline equation. Also
10083 restore previous font as well as current font.
10084 * eqn/pbox.h: Define necessary string and register names.
10086 * troff/input.c (token::next): Case 'R' calls do_register.
10087 (do_register): New function.
10089 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
10091 * groff.c, groff.sh: Support Xps device. Allow each device
10092 to have a pseudo_name and a real_name.
10094 * groff.c (run_commands): Don't print `Broken pipe' messages.
10096 * ps/pfbtops.c: New file.
10097 * ps/Makefile: Add pfbtops.
10099 * troff/number.c (parse_term): Improved error message.
10101 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
10103 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
10105 * Makefile: Integrate refer.
10106 * refer: New directory.
10107 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
10108 man/lkbib.man: New files.
10109 * man/Makefile: Support refer man pages.
10111 * lib/lib.h: Declare is_prime.
10112 * lib/prime.c: New file.
10114 * troff/input.c (macro_source): New function.
10115 (init_input_requests): Bind "mso" to macro_source.
10117 * troff/env.c (environment::possibly_break_line): Maintain
10118 pointer to pointer to node to be split in ndp so as to avoid
10119 using address of freed node.
10121 * troff/env.c (environment::hyphenate_line): Maintain pointer to
10122 pointer to first node to be hyphenated in startp so as to
10123 avoid using address of freed node.
10125 * troff/env.c (class trie, class hyphen_trie): Make the
10126 elements of the trie be of type char not unsigned char.
10127 Declare arguments to be const char* instead of unsigned char *.
10129 * troff/env.c (hyphenate): Initialize hbuf[0].
10131 * troff/input.c (set_string): Declare p to be char * and cast
10132 *p to unsigned char when necessary.
10134 * troff/input.c (do_define_macro): Declare s to be const
10135 char*. Cast element to unisgned char when necessary, Declare
10136 d to be an int. Handle EOF better.
10138 * troff/Makefile, troff/input.c: Different scheme for passing
10139 definitions of MACROPATH, HYPHENFILE and DEVICE.
10141 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
10143 * tty/devascii/R.proto: Delete entry for em.
10144 * tty/devlatin1/R.proto: Likewise.
10146 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
10148 * troff/input.c (translate): Stop when we get a space. Treat eof
10151 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
10153 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
10155 * tbl/main.c (process_format): A font name following a `f'
10156 modifier that starts with a digit can be only one character long.
10157 Also deal with EOF on the second character of the font name.
10159 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
10161 * troff/input.c (token::next): Turn \~ into an
10162 unbreakable_space_node.
10163 * troff/node.c (unbreakable_space_node): New class.
10164 * troff/node.h: Declare it.
10166 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
10168 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
10169 it's >= 0, before outputting it as a single byte.
10171 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
10173 * lib/font.c: Make font_char_metric::code an int.
10174 (font::get_code): Change return type to int.
10175 (font::load): Allow code to be arbitrary integer.
10176 * lib/font.h (font::get_code): Change return type to int.
10177 (font::number_to_index): Change argument type to int.
10178 * troff/input.c (token::next): In case 'N', allow any value.
10179 Store value in token::val.
10180 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
10181 (token::get_char, token::add_to_node_list, token::process): Get
10183 (charinfo::set_number): Change argument to int.
10184 (charinfo::get_number): Require that NUMBERED flag be set.
10185 (get_charinfo_by_number): Store numbered characters not between 0
10186 and 255 in a dictionary.
10187 * troff/charinfo.h (get_charinfo_by_number): Change argument type
10189 (charinfo::number): Change type to int.
10190 (charinfo::set_number): Change type of set_number to int.
10191 * troff/node.c (troff_output_file::put_char_width,
10192 troff_output_file::put_char): Test whether character is numbered
10193 using charinfo::numbered().
10194 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
10196 * lib/nametoindex.c: New implementation to cope with arbitrary
10199 * troff/input.c (token::operator==): Test val for
10200 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
10203 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
10204 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
10206 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
10208 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
10211 * all Makefiles: rm targets of cp and >.
10213 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
10216 * eqn/lex.c (def_table): Add dollar.
10218 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
10220 * troff/input.c (do_width): Push back newline before closing delim
10223 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
10225 * groff.c (possible_command::prepend_arg): New function.
10226 (main): Prepend device -m option.
10227 * groff.sh: Put device -m options before command-line options.
10229 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
10231 * macros/tmac.an (IP): Quote argument to TP.
10233 * ps/ps.c (main): New option -b, which sets...
10234 (broken_flags): New variable.
10235 (ps_printer::~ps_printer): Incorporate the setup section in the
10236 prolog if (broken_flags & NO_SETUP_SECTION).
10237 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
10238 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
10239 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
10240 ps_printer::print_needed_font_comment,
10241 ps_printer::print_supplied_font_comment,
10242 ps_printer::print_include_font_comments,
10243 ps_printer::lookup_doc_font, ps_printer::download_fonts,
10244 ps_printer::read_download_file, read_document_fonts, add_font,
10245 skip_line, parse_fonts_arg, document_font::document_font,
10246 document_font::~document_font, document_font::download,
10247 ps_output::include_file): Deleted.
10248 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
10249 rather than %!PS-Adobe-2.0. Make calls to
10250 resource_manager::need_font for each font that we used. Replace
10251 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
10252 print_supplied_font_comment, print_needed_font_comment by call to
10253 resource_manager::print_header_comments. Output %%Orientation
10254 comment. Output %%Requirements: numcopies comment if ncopies > 1.
10255 Don't output the prolog directly. Instead call
10256 resource_manager::output_prolog. Only define #copies when ncopies
10257 > 1. Delete calls to print_include_font_comments and
10258 download_fonts. Add call to resource_manager::document_setup.
10259 (ps_printer::do_file): Call resource_manager::import_file instead
10260 of including it ourselves.
10261 (ps_printer::do_import): Likewise. Also don't call
10262 merge_import_fonts. Push userdict on the dictionary stack before
10263 and pop it afterwards.
10264 Move declaration of ps_output into ps.h.
10265 * ps/psrm.c: New file implementing resource_manager class.
10266 * ps/ps.h: New file declaring ps_output and resource_manager
10268 * ps/devps/zapfdr.ps:
10269 * ps/devps/symbolsl.ps:
10270 * ps/devps/prologue: Use 3.0 conventions.
10271 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
10272 Add default definition of BROKEN_SPOOLER_FLAGS.
10273 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
10274 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
10276 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
10278 * etc/grog.pl: New file.
10279 * Makefile (GROG): New variable.
10280 Add GROG to SUBFLAGS.
10281 * etc/Makefile (GROG): New variable.
10282 (install.nobin): Install $(GROG) rather than grog.sh.
10284 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
10286 * eqn/special.c (special_box::compute_metrics): Make the input and
10287 output strings the same. Get the new height and depth from the
10288 predefined height and depth registers. Also make subscript kern
10289 and skew available.
10290 (special_box::compute_subscript_kern, special_box::compute_skew):
10293 * eqn/box.c (pointer_box::compute_skew,
10294 simple_box::compute_metrics, box::top_level)
10295 * eqn/text.c (prime_box::compute_metrics,
10296 prime_box::comput_subscript_kern)
10297 * eqn/limit.c (limit_box::compute_metrics):
10298 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
10299 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
10300 negative numbers in `nr' requests with a leading 0.
10302 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
10304 * eqn/special.c: New file.
10305 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
10306 Add new rule for simple.
10307 * eqn/lex.c (token_table): Add SPECIAL.
10308 * eqn/box.h: Declare make_special_box.
10309 * eqn/Makefile: Add special.[co].
10311 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
10313 * ps/devps/prologue: Possibly set packing to true while defining.
10314 Create grops dictionary here. Initialize local variables before
10315 defining procedures.
10316 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
10317 the dictionary stack. Set strokeadjust and overprint to false if
10318 the relevant operators are defined.
10319 (PEND): New procedure.
10320 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
10321 prologue. Do everything else in the setup section.
10322 (ps_printer::do_import): Just call PBEGIN and PEND around the
10323 picture. Also push userdict before, and pop it afterwards.
10325 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
10327 * troff/node.c (bracket_node::tprint): Brackets were being printed
10330 * macros/tmac.an (SH, SS): Set fill mode.
10332 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
10334 * troff/div.c (top_level_diversion::begin_page): Set
10335 high_water_mark to 0.
10337 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
10339 * man/mdate.sh: New file.
10340 * man/mdate.c: Deleted.
10341 * man/Makefile: Use mdate.sh instead of mdate.
10344 * eqn/lex.c (do_gsize): Supply missing argument to error message.
10346 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
10348 * man/mdate.c: New file.
10349 * man/*.man: Replace modification date by @MDATE@.
10350 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
10351 (mdate): New target.
10353 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
10354 Remove illegal input characters.
10356 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
10358 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
10360 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
10362 * troff/div.c (begin_page): Change behaviour when
10363 !first_page_begun and !break_flag.
10365 * troff/input.c (do_name_test): Return 0 if argument is empty.
10367 * troff/input.c (read_long_escape_name): Require closing ] to be
10368 at same input level as opening [.
10370 * troff/input.c (read_increment_and_escape_name): New function.
10371 (get_copy, process_input_stack): Use this for \n.
10373 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
10375 * troff/div.c (top_level_diversion::begin_page): Ignore the
10376 current value of page_number if !first_page_begun.
10378 * groff.c (main): Fix declaration of buf.
10380 * troff/input.c (do_name_test): New function.
10381 (token::next): Implement \A.
10382 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
10383 (token::description, token::add_to_node_list, token::process):
10384 Handle TOKEN_ESCAPE.
10385 * troff/token.h: New token TOKEN_ESCAPE.
10387 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
10389 * pic/main.c (do_picture): Allow space before and after filename
10390 following `<'. Check that the filename is not empty.
10392 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
10394 * Version 1.01 released.
10396 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
10398 * dvi/tmac.dvi: ftr HR to H.
10400 * macros/tmac.e: Round up computation of $r.
10402 * xditview/tmac.X: Don't give up completely in compatibility mode.
10403 Use \n(.s instead of \n[.s].
10405 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
10406 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
10407 Add u to factors inside \s[...]. Rename frac to dvi-frac.
10408 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
10409 short names in the char definitions.
10411 * ps/tmac.ps: Don't give up completely in compatibility mode.
10412 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
10413 quote in front of \n(.s. Add u to factors inside \s[...].
10415 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
10417 * tty/tmac.tty: Call the nroff request.
10419 * macros/tmac.e ((x, )x): Better definitions that work properly
10421 (@0, @1): Helper macros for (x.
10423 * macros/tmac.e ($s, hl): Use \l rather than \D.
10425 * tty/tmac.tty: Make it work better in compatibility mode.
10426 (pchar): Rename to tty-char.
10428 * macros/tmac.e (@E): New macro.
10429 (r, i, b, rb, bi): Use @E.
10431 * macros/tmac.e (@F): Don't use (;...) syntax.
10433 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
10434 it was modified for groff.
10436 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
10438 * macros/tmac.e (<., .>): Removed.
10439 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
10441 * macros/tmac.e: Remove check that groff is being used.
10443 * macros/tmac.e (@C): Change families only if using groff; turn
10444 compatibility mode off while changing familes. Save compatibility
10445 mode before changing families and restore it afterwards.
10447 * macros/tmac.e (@h): Remove test for offset + line length.
10449 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
10450 (lo, th, ac): Define to call @S instead of using als.
10452 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
10453 the ratio of the vertical spacing to the point size in units
10454 expressed as a percentage. Use these instead of $10r and $10R,
10455 Delete $10r and $10R.
10457 * lib/font.c (font::load): In default computation of space_width,
10458 divide by sizescale. Use scale_round.
10460 * macros/tmac.an (TP): Don't call `nf'.
10461 (an-do-tag): Don't call `fi'.
10463 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
10465 * troff/input.c (process_input_stack): Handle the case where
10466 spaces at the beginning of an input line are followed by a
10469 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
10471 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
10472 * groff.sh: Use pic -x with the dvi device.
10474 * dvi/devdvi/FontMakefile (H): Don't use -s.
10476 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
10477 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
10478 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
10481 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
10483 * ps/psfig.diff: New file.
10484 * ps/tmac.psfig: New file.
10486 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
10488 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
10489 (]-): Don't call ref*do-tl.
10491 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
10493 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
10494 (fn@do-FS): Rename to fn*do-FS.
10496 * troff/input.c (transparent_translate): New function.
10497 (process_input_stack): Apply transparent_translate before calling
10498 diversion::transparent_output(unsigned char).
10500 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
10502 * troff/input.c (do_define_macro): Define the macro before calling
10505 * xditview/Makefile: Add DEVICES variable. Change install target
10508 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
10510 * groff.c (run_commands): Handle the possibility that there are
10511 child processes other than those forked by us.
10513 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
10515 * lib/string.c (string::append): New function.
10516 * lib/stringclass.h: Declare it.
10518 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
10520 * eqn/main.c (main): New option -N which sets
10521 no_newline_in_delim_flag.
10522 (do_file): If no_newline_in_delim_flag is set don't allow newlines
10524 * groff.c (main): Pass -N on to eqn.
10525 (help, synopsis): Mention -N.
10526 * groff.sh: Implement -N.
10528 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
10530 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
10531 (]-): Call ref*do-tl if ref*need-tl is non-zero.
10532 (XP): Allow as initializer.
10534 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
10536 * troff/env.c (environment::wrap_up_field): If field_spaces are
10537 non-zero and we have a current_tab, subtract padding from
10538 tab_distance. If this makes tab_distance <= 0, use the next tab
10539 stop instead. If there isn't any next tab or it's a left tab,
10540 wrap up the current tab.
10541 (environment::start_field): Initialize tab_precedes_field.
10542 (environment::wrap_up_tab): If there's a current field, update
10543 pre_field_width, field_distance and tab_precedes_field.
10544 * troff/env.h (environment::tab_precedes_field): New member.
10546 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
10548 * ps/ps.c (ps_printer::do_file): New function.
10549 (ps_printer::special): Bind to `file' special.
10550 (ps_printer::do_exec): Set ndefined_styles to 0.
10552 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
10554 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
10555 Avoid stripping first character from the start of unrecognized
10556 escapes. Use lex_error instead of error to report errors.
10557 * eqn/lex.c (get_token): Rework handling of escapes.
10558 (lex_error): Move declaration into...
10561 * xditview/xditview.c (main): Make -page option work.
10563 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
10565 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
10567 * macros/tmac.s (B2): Correct size of box.
10569 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
10571 * macros/tmac.s (B2): Postpone drawing the box until in the
10572 top-level diversion.
10574 * tty/tmac.tty: Add font translations for C, CR, CW.
10576 * groff.c (synopsis, help): Document -i.
10577 * groff.sh: Implement -i.
10579 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
10580 Simplify the construction of SN.
10582 * troff/number.c (parse_term): Give `|' a higher precedence.
10583 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
10586 * macros/tmac.s (B2): Use par@finish instead of par@reset.
10588 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
10590 * lib/string.c (string::move): New function.
10591 * lib/stringclass.h: Declare it.
10593 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
10595 * troff/env.c (distribute_space): Add optional argument
10597 (environment::wrap_up_field): Call distribute_space with
10598 `force_forward' argument of 1.
10600 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
10602 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
10603 Inline it. Move reallocation into...
10604 (string::grow1): New function.
10605 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
10606 dependencies to include library header files.
10607 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
10609 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
10611 * macros/tmac.s (@NH): Use the same number registers than -ms does
10612 for the heading level counters. Use the same string that -ms does
10613 for the number for this heading.
10615 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
10617 * lib/new.c (operator new): Cast result of malloc to char *.
10619 * troff/input.c (spring_trap, lookup_request): Add assert that nm
10622 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
10624 * groff.c (main): Support -i.
10626 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
10628 * pic/pic.h: Include <osfcn.h>.
10630 * ps/ps.c: Add declaration of mktemp.
10632 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
10633 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
10634 argument as union wait *.
10635 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
10636 argument to union wait *.
10638 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
10640 * tty/tmac.tty: Add definition of \(co.
10642 * pic/object.c (make_arc): Only increase radius when radius
10643 strictly less than d.
10644 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
10647 * troff/env.c (environment::environment(symbol),
10648 environment::environment(const environment *)): Initialize
10651 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
10653 * tbl/main.c (main): Add exit(0).
10655 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
10657 * pic/main.c (main):
10658 * eqn/main.c (main):
10659 * tbl/main.c (main):
10660 * etc/soelim.c (main):
10661 * driver/printer.c (printer::~printer):
10662 * troff/node.c (real_output_file::~real_output_file,
10663 real_output_file::flush): Check for errors on stdout.
10665 * most files: Add 1991 to copyright notice.
10667 * macros/tmac.s: Don't test \n(.x and \n(.y.
10669 * troff/input.c (token::next): Rename `escape_char' label to
10670 `handle_escape_char' and `normal_char' label to
10671 `handle_normal_char'.
10673 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
10675 * groff.c (main, synopsis, help): Support -a option.
10676 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
10677 to trflags while parsing options.
10679 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
10681 * troff/number.c (parse_term): With `m', `M' and `n' scale
10682 indicators, convert scale factor to hunits before scaling.
10684 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
10686 * lib/font.c (scale_round): Better test for overflow when n is
10689 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
10691 * tbl/main.c (process_format): Add second argument of type
10692 options*. Change callers. Allow opt->tab_char as well as '\t'
10693 between format items.
10695 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
10697 * macros/tmac.an (PD): With no arguments, make sure register PD is
10699 (TH): Call PD with no argument, instead of setting register PD
10702 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
10704 * Version 1.00 released.
10706 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
10708 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
10710 * dvi/devdvi/DESC: Mount CW instead of CR.
10712 * dvi/tmac.dvi: Add definition of \(tm.
10714 * dvi/devdvi/texsy.map: Add lh, and rh.
10715 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
10716 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
10718 * dvi/devdvi/FontMakefile: Generate H from cmss10.
10719 * dvi/devdvi/Makefile: Install H.
10720 * dvi/devdvi/H: New file.
10722 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
10724 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
10727 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
10729 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
10731 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
10733 * macros/tmac.s (@EN): Handle the case where the equation is empty
10734 but the label is not.
10736 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
10738 * troff/groff.h: New warning category WARN_SPACE.
10739 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
10740 WARN_SPACE to warning_table.
10741 (interpolate_macro): Give a warning of type WARN_SPACE if the name
10742 is longer than two characters and is not defined, but the first
10743 two characters do make a defined name.
10745 * PROBLEMS: New file.
10747 * CHANGES: New file.
10748 * README-0.6, README-1.00: Deleted.
10750 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
10751 * xditview/devX75/Makefile: Make devX75-12.
10752 * xditview/devX100/Makefile: Make devX100-12.
10754 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
10755 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
10757 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
10759 * README-0.7: Rename to README-1.00.
10761 * macros/tmac.pic: New file.
10762 * macros/Makefile (install.nobin): Install tmac.pic.
10764 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
10766 * troff/env.c (hyphen_word): Correct the test for whether the
10767 token is a hyphen. Reset npos to 0.
10769 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
10771 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
10773 * macros/tmac.s (ds*common-end): Call par*reset.
10775 (par@reset-indent): Deleted.
10777 * macros/tmac.s (@IP): Divert the label.
10779 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
10781 * xditview/draw.c (setGC): Use a line width of .1m rather than
10782 .04m by default; round rather than truncate value.
10784 * tbl/table.c (class empty_entry): New class.
10785 (empty_entry::empty_entry, empty_entry::line_type): New functions.
10786 (table::add_entry): Represent empty entries by objects of type
10788 (table_entry::line_type): Return -1.
10789 (table::determine_row_type): Ignore entries with line_type 0.
10790 Treat type -1 as non-lines.
10792 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
10794 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
10795 macros/tmac.s: Rename \(-d to \(Sd.
10797 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
10799 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
10800 * xditview/libXdvi/DviChar.c: Likewise.
10801 * dvi/devdvi/texsy.map: Add `<<', `>>'.
10803 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
10805 * troff/div.c (top_level_diversion::begin_page): Call
10806 init_output() if the_output is 0.
10808 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
10810 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
10812 (get_copy): Turn \E into ESCAPE_E.
10813 (token::process, asciify): Handle ESCAPE_E.
10815 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
10817 (DS): Implement `.DS R'.
10819 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
10821 * macros/tmac.s (FS): New macro.
10823 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
10825 * macros/tmac.s (cov*tl-init): Remove after first execution
10826 instead of aliasing to @nop. Call top of page macro explicitly
10827 instead of setting trap; call @init first. Set pg@top as top of
10829 (cov*auto-init): Deleted. Set cov*tl-init instead of
10830 cov*auto-init as top of page trap.
10831 (TL, LP): Do a break instead of calling cov*tl-init.
10832 (cov*print): With RP format but no TL, alias FS and FE to @FS and
10833 @FE; in this case also give a warning and always start another
10834 page. No need to set pg@top here.
10835 (cov*tl-init): Rename to cov*first-page-init.
10837 * macros/tmac.s (RP): Do `.pn 0'.
10838 (cov*tl-init): With RP format don't do `.pn 0'.
10840 * macros/tmac.s (pg@cs-top): Set no space mode.
10842 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
10843 (cov*ab-init): Alias TL, AU and AI to these.
10845 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
10847 * macros/tmac.s (@EQ): Move the space before the equation into @EN
10848 (@EN): Do nothing unless \n[dl] is > 0.
10850 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
10852 * pic/object.c (ellipse_object::radius): New function.
10854 * VERSION: Change version to 0.7.
10856 * tbl/table.c (block_entry::do_divert): Declare return type as
10858 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
10860 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
10862 * troff/column.c: New file.
10863 * troff/Makefile: Corresponding changes.
10865 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
10868 * troff/div.c (top_level_diversion::space): If the space causes
10869 the first-page transition and springs a trap, truncate the space
10872 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
10874 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
10877 * pic/troff.c (troff_output::line_thickness,
10878 troff_output::set_fill): Do a horizontal motion to compensate for
10879 the width of the \D escape sequence.
10881 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
10883 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
10886 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
10889 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
10890 Supply empty definition.
10891 (text_entry::simple_print, simple_text_entry::simple_print):
10892 Delete declarations.
10893 (table::add_entry): Represent empty entries by objects of type
10896 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
10898 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
10900 * tbl/table.c (left_text_entry::add_tab): New function.
10902 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
10903 initialize like LP.
10905 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
10907 * troff/env.c (environment::start_field): Give an error message if
10908 there is no next tab.
10910 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
10912 * troff/env.c (hyphenate): Skip initial elements with zero
10915 * macros/tmac.s (par@init): Keep VS in points rather than units.
10917 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
10919 * pic/main.c (main): Implement `-c' option.
10920 * pic/output.h: Declare make_tpic_output().
10921 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
10923 (tpic_output): New class.
10924 (tpic_output::tpic_output, tpic_output::set_pen_size,
10925 tpic_output::command, make_tpic_output): New functions.
10927 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
10929 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
10930 if they're not already defined.
10931 * tbl/table.c (init_output): Don't test \n(.g.
10933 * troff/input.c (do_if_request): Delete `g' condition. Recognize
10934 `d', `r' and `c' conditions even in compatibility mode.
10936 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
10938 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
10941 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
10943 * troff/env.h (environment::prev_line_interrupted): New member.
10944 (environment::get_prev_line_interrupted): New function.
10945 * troff/env.c (environment::newline): Set prev_line_interrupted.
10946 (environment::environment(const environment *),
10947 environment::environment(symbol)): Initialize
10948 prev_line_interrupted.
10949 * troff/input.c (process_input_stack): Don't give special
10950 treatment to space and newline at the beginning of the line if the
10951 previous line was interrupted.
10953 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
10955 * eqn/eqn.y: Disallow PRIME by itself.
10956 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
10958 (def_table): Remove definition of '. Define prime to be `.
10960 * eqn/eqn.y: Split off part of rule `script' into a new rule
10963 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
10965 * macros/tmac.s ({, }): New string aliases.
10967 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
10969 * README-0.7: New file.
10971 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
10973 * macros/tmac.s: New file.
10974 * man/groff_ms.man: New file.
10975 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
10976 * Makefile.bd: Similarily.
10977 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
10978 definition of TMAC_S.
10979 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
10980 * macros/TODO: New file.
10982 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
10984 * troff/env.c (right_justify): New function.
10985 (init_env_requests): Bind this to request "rj".
10986 (center_lines): Set right_justify_lines to 0. If we get a bad
10987 integer, center 1 line.
10988 (environment::environment(symbol), environment::environment(const
10989 environment *)): Initialize right_justify_lines.
10990 (environment::get_right_justify_lines): New function.
10991 (init_env_requests): Bind this to number_register ".rj".
10993 * troff/env.c (environment::choose_breakpoint): Implement
10994 hyphenation_margin and hyphenation_space.
10995 (environment::get_hyphenation_space,
10996 environment::get_hyphenation_margin): New functions.
10997 (init_env_requests): Bind these to .hys and .hym.
10998 (hyphenation_space_request, hyphenation_margin_request): New
11000 (init_env_requests): Bind these to hys and hym.
11001 (environment::environment(symbol), environment::environment(const
11002 environment *)): Initialize hyphenation_margin and
11004 * troff/env.h: Corresponding changes to class environment.
11006 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
11008 * troff/div.c (blank_line): Always do a break.
11010 * eqn/box.c (do_text): Turn off escapes while appending text to
11013 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
11015 * troff/input.c (while_break_request, while_continue_request): New
11017 (init_input_requests): Bind these to "break" and "continue".
11018 (while_depth, while_break_flag): New variables.
11019 (while_request): Update while_depth. Break out of loop if
11020 while_break_flag is set.
11022 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
11024 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
11027 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
11029 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
11031 * stringify: New file.
11032 * Makefile (groff.o): Use stringify.
11034 * xditview/tmac.X: Remove definition of \(rn.
11035 * xditview/libXdvi/DviChar.c: Remove radicalex from
11038 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
11040 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
11041 (alphabetic_block_entry::alphabetic_block_entry,
11042 alphabetic_block_entry::divert, alphabetic_block_entry::print):
11044 (block_entry::divert): Split off body into ...
11045 (block_entry::do_divert): If the block is alphabetic, subtract 2n
11046 from the line length; also update the span width to dl+2n, and the
11047 alphabetic span width to dl.
11049 * driver/input.c (do_file): While reading argument to D command,
11050 when expanding buffer, multiply szp by sizeof(int) rather than 2
11051 in the argument to memcpy.
11053 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
11054 width of alphabetic columns.
11056 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
11058 * troff/node.c (lookup_family): Supply second argument to lookup.
11060 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
11061 search, return immediately if v is 0.
11063 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
11064 (troff_output::start_picture): Set this reg.
11065 (troff_output::end_picture): Remove this reg
11066 * eqn/box.c (box::extra_space): Don't produce `\x's if
11067 EQN_NO_EXTRA_SPACE_REG is defined.
11069 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
11070 * eqn/text.c (split_text): Map ' to \(fm when it's the first
11073 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
11075 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
11078 * troff/div.c (top_level_diversion::top_level_diversion):
11079 Initialize page_number to 0.
11081 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
11083 * groff/troff (environment::environment(const environment *)):
11084 Initialize name to e->name, rather than "anonymous".
11086 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
11088 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
11089 requested_page. Split middle part into ...
11090 (FindPage): New function.
11091 (SetValues): If we don't yet know the last page, and the requested
11092 page is greater than the current page, call FindPage.
11093 Update the font_map_string before doing this.
11095 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
11096 Translate \(lh and \(rh into left and right double arrows.
11098 * troff/node.c (class hyphen_inhibitor_node): New class.
11099 (hyphen_inhibitor_node::hyphen_inhibitor_node,
11100 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
11101 hyphen_inhibitor_node::type,
11102 hyphen_inhibitor_node::get_hyphenation_type): New functions.
11103 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
11104 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
11107 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
11109 * troff/node.h (dummy_node::get_hyphenation_type,
11110 transparent_dummy_node::get_hyphenation_type): Declare them.
11111 * troff/node.c: (dummy_node::get_hyphenation_type,
11112 transparent_dummy_node::get_hyphenation_type): New functions.
11114 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
11116 * xditview/libXdvi/draw.c: If M_PI not defined after including
11117 math.h, then define it.
11119 * xditview/Makefile: Add definition of AR. Pass it to the submake
11121 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
11123 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
11125 * troff/dictionary.h (object_dictionary::alias): Declare return
11127 * troff/dictionary.c (object_dictionary::alias): Return non-zero
11128 if the old name was defined.
11129 * troff/input.c (alias_macro): Give a warning if the old name was
11131 * troff/reg.c (alias_reg): Likewise.
11133 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
11135 * troff/input.c (token::next): Delete implementation of \R.
11137 * macros/Makefile: Strip comments from tmac.e while installing it.
11139 * troff/input.c: New variable `nroff_mode'.
11140 (troff_request, nroff_request): New functions.
11141 (init_input_requests): Bind `troff' and `nroff' to troff_request
11143 (do_if_request): Compute results of t and n conditions from
11146 * text/text.c (split_text): Fix typo in >=.
11148 * eqn/lex.c: Add definition of `==' to def_table.
11150 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
11152 * pic/tex.c (tex_output::start_picture): Change the definitions of
11153 \graph and \graphtemp so that they work properly with Plain TeX.
11155 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
11156 argument to `ar' is not less than the first.
11158 * pic/pic.y: Allow a comma between elements of the variable list
11159 in the argument to `reset'.
11161 * pic/object.c (arc_object::arc_object): Fix computation of
11164 * eqn/main.c (main): Add exit(0).
11166 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
11168 * troff/div.c (begin_page): Test no_space_mode after doing the
11169 break, but still push the page ejector cookie before doing the
11170 break. Also set the next page number after doing the break.
11172 * xditview/xditview.c (NewFile): Don't set the title and icon name
11173 if this is the first file and its name is `-'.
11174 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
11175 the X75 and X100 devices.
11176 (main): If a device has the XT_OPTION flag set and there's exactly
11177 one file argument, pass the driver -xrm and -title options to set
11178 the icon name and window title to the name of the file.
11180 * troff/env.c (environment_switch): If there was an argument but
11181 it wasn't a valid number or name, then pop an environment but
11182 don't give an error message on underflow.
11184 * troff/number.c (start_number): Correct spelling in error message.
11186 * troff/input.c (token::delimiter): Don't print an error message
11189 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
11190 ParseDrawFunction if dw->display_enable is true.
11192 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
11194 * pic/pic.y: Parse text positioning like normal attributes, so as
11195 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
11196 positioning attribute.
11198 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
11200 * tbl/main.c (process_data): When in state START while reading a
11201 text block, don't change to state MIDDLE if c is a newline.
11203 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
11205 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
11206 so as to avoid shadowing parameter.
11208 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
11210 * tbl/table.c (trim_space): Deleted.
11211 (table::add_entry): Don't call trim_space.
11213 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
11215 * VERSION: Change version to 0.6.
11217 * troff/number.c (parse_expr): Make == work.
11219 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
11221 * man/grog.man: New file.
11222 * man/Makefile: Add grog.n to MAN1PAGES.
11223 * etc/grog.sh: New file.
11224 * etc/Makefile: Install grog.sh as grog.
11226 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
11228 * troff/input.c (token::next): Implement \E.
11230 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
11232 * xditview/tmac.X: Change font translations to match tmac.ps.
11234 * troff/input.c (non_empty_name_warning): Don't give a warning if
11235 `\{' terminates the name.
11237 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
11239 * ps/devps/symbol.diff: New file.
11240 * ps/devps/FontMakefile: Mention symbol.diff.
11242 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
11244 * troff/node.c (font_position): Use get_long_name to read the
11247 * troff/env.c (environment_switch): If we get a number that's < 0
11248 or >= NENVIRONMENTS, treat it like a name.
11249 Change NENVIRONMENTS to 10.
11251 * troff/groff.h: Remove definition of FONTS_MAX.
11252 * troff/node.h (class font_family): Make map a pointer instead of
11253 an array. Add a map_size member. Make it a class. Make nm const
11254 and public. Make invalidate_fontno a friend.
11255 * troff/node.c: Define font_table_size. Make font_info a pointer
11256 rather than an array.
11257 (class troff_output_file): Allocate font_position dynamically. Add
11258 nfont_positions member.
11259 (troff_output_file::set_font): Grow font_position if necessary.
11260 (troff_output_file::~troff_output_file): Delete font_position.
11261 (troff_output_file::troff_output_file): Allocate font_position.
11262 (grow_font_table): New function.
11263 (troff_output_file::really_begin_page,
11264 troff_output_file:really_copy_page): Use nfont_positions rather
11266 (mount_font_no_translate, mount_style): Call grow_font_table if
11268 (font_family::font_family): Allocate map.
11269 (font_family::make_definite): Grow map if necessary. Use
11270 font_table_size instead of FONTS_MAX.
11271 (font_family::~font_family): New function.
11272 (invalidate_fontno): Use font_family::map_size.
11273 (get_fontno, env_space_width, env_half_narrow_space_width,
11274 env_narrow_space_width, symbol_fotno, is_good_fontno,
11275 get_bold_fontno, make_glyph_node): Use font_table_size rather than
11277 (next_available_font_position): Never return 0.
11279 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
11281 * ps/tmac.ps: Add font translations for compatibility with dpost.
11283 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
11285 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
11286 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
11287 Move definitions baseline_sep, shift_down, column_sep,
11288 matrix_side_sep into...
11289 * eqn/box.c: Add them to param_table.
11290 * eqn/pbox.h: Add declarations to pbox.h.
11292 * troff/input.c (set_string): Cast value to unsigned char *.
11294 * troff/token.h (process_input_stack): Declare it static before
11295 declaring it a friend.
11297 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
11299 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
11301 * dvi/devdvi/EX: Regenerate.
11303 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
11306 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
11308 * eqn/lex.c: In defaults_table, make definition of `dot' call
11309 `dot_def'. Don't explicitly make it roman. Similarily for other
11312 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
11314 (for_input::get, for_input::peek): Use this.
11315 (do_for): Add by_is_multiplicative argument.
11316 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
11317 Change semantic value of optional_by to be a double plus a flag
11318 saying whethet the by clause is multiplicative.
11320 * eqn/lex.c (get_delimited_text): Remember location of start of
11321 definition. Improve error handling when EOF is encountered.
11323 * lib/font.h: Rename handle_x_command to
11324 handle_unknown_font_command.
11325 * lib/font.c (font::load): Call handle_unknown_font_command for
11326 any unknown command in the font description file. Don't call
11327 handle_x_command. Include the name of the command in the argv.
11328 Improve message for unknown command after kernpairs or charset
11330 * ps/ps.c (ps_font::handle_x_command): Rename to
11331 handle_unknown_font_command. Remove message about `x download'
11332 command. Give error message for wrong number of arguments.
11333 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
11334 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
11335 handle_unknown_font_command. Give an error message for wrong
11336 number of arguments. Rename design_size to designsize.
11337 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
11338 checksum', `designsize' instead of `design_size'.
11340 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
11342 * eqn/*.[chy]: Change underaccent to uaccent.
11344 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
11345 give it the same precedence as ACCENT.
11346 * eqn/other.c (make_underaccent_box): New function.
11347 * eqn/box.h: Declare it.
11348 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
11351 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
11353 * pic/pic.y (reset_all): New function. Called in rule for RESET.
11354 (parse_init): Call reset_all.
11355 (define_variable): When defining scale reset only those
11356 pre-defined variables that are scaled.
11357 (defaults_table): Add `scale' as non-scaled value.
11359 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
11360 together with the text; allow any number of positioning words;
11361 allow center as a positioning word.
11363 * pic/object.c (output::compute_scale): Get picture maximum height
11364 and width from variables called maxpswid and maxpsht.
11365 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
11367 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
11369 * pic/object.c (object_spec::make_text): Multiply textht by number
11372 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
11374 (do_sprintf): New function.
11375 (pic.gperf): Add sprintf token.
11376 (text, sprintf): New rules.
11378 * pic/pic.y: `rand()' with no arguments returns a random number
11379 in the range [0,1).
11381 * pic/pic.y: Allow a bare expression to be an attribute: change
11382 precedences to support this. Change optional_ordinal rule to
11383 optional_ordinal_last to avoid reduce/reduce conflict.
11384 * pic/object.c (object_spec::object_spec): Initialize direction.
11386 * pic/pic.y: Implement ^ operator meaning exponentiation.
11388 * troff/node.h: Add default argument to mount_font.
11389 * troff/node.c (font_position): Read an optional third argument
11390 giving the external_name.
11391 (mount_font): Add optional argument giving the external_name.
11392 (mount_font_not_translate): Have additional argument giving
11393 external name. Use this name to load the font. Pass both names
11394 to font_info::font_info.
11395 (font_info::font_info): Have additional argument giving
11397 (class tfont): New member external_name.
11398 (font_info::get_tfont): Use external name to construct tfont_spec.
11400 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
11402 * eqn/lex.c (init_table): Add argument giving device. Define
11403 name of device to be "1".
11404 (do_ifdef): Counts as true if the argument has been defined with
11406 * eqn/main.c (main): Call init_table with device argument. Make
11407 device local to main.
11408 * eqn/eqn.h: Change declaration of init_table. Remove declaration
11411 * pic/lex.c (get_delimited): Allow text to be delimited by
11412 matching {}s. Don't recognize ending delimiter within a string.
11414 * troff/input.c (get_delim_name): New function.
11415 (token::next): Implement \C.
11417 * lib/font.c (font::load): Grok ---. Add an alias for each
11418 character based on its code.
11419 (font::get_code_width): Deleted.
11420 * lib/font.h (class font): Declare font::number_to_index().
11421 Remove declaration of font::get_code_width.
11422 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
11423 to indices of named characters.
11424 (font::number_to_index): New function.
11425 * troff/input.c (font::number_to_index): New function.
11426 (get_charinfo_by_number, charinfo::get_number,
11427 charinfo::set_number): New functions.
11428 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
11429 (token::process, token::description, token::get_char,
11430 token::add_to_node_list, token::operator==): Handle
11431 TOKEN_NUMBERED_CHAR.
11432 * troff/charinfo.h: Declare get_charinfo_by_number,
11433 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
11435 (charinfo::numbered): New function.
11436 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
11437 * troff/env.h (class environment): Remove declaration of ...
11438 * troff/env.c (environment::make_numbered_char_node): Deleted.
11439 * troff/node.c (make_numbered_node): Deleted.
11440 (class numbered_glyph_node): Remove.
11441 (troff_output_file::put_char_width, troff_output_file::put_char):
11442 Handle numbered chars.
11443 (troff_output_file::numbered_char): Removed.
11444 (tfont::get_code_width): Removed.
11445 (make_glyph_node): Don't search special fonts for numbered
11447 * troff/node.h: Remove declaration of make_numbered_node.
11448 * driver/input.c (do_file): Handle N command.
11449 * driver/printer.h: Add declaration of ...
11450 * driver/printer.c (printer::set_numbered_char): New function.
11451 * dvi/tfmtodit.c (main): Generate unnamed entries.
11452 * ps/devps/afmtodit: Likewise.
11453 * xditview/xtotroff.c (MapFont): Likewise.
11454 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
11456 * tbl/main.c (process_format): If multiple widths are specified
11457 for a column but all the widths are the same, don't give an error
11460 * tbl/table.c (table::do_row): If the current row is all lines and
11461 the stuff doesn't contains a line, mark the top of the row after
11462 printing stuff before the row. If the current row is not all
11463 lines and the stuff doesn't contain a line, don't unnecessarily
11464 mark the top of the row before printing the stuff.
11466 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
11468 * troff/groff.h: Remove MAX_PATH.
11469 * troff/input.c (open_file): Dynamically allocate space for the
11471 (open_mac_file, process_macro_file): Corresponding changes.
11473 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
11475 * troff/node.h (class output_file): Make copy_file pure. Add
11476 vspace method ifdef COLUMN. Add is_printing method.
11477 * troff/node.c: Add class printing_reg. Add class
11478 real_output_file. Derive other output_file classes from
11479 real_output_file; in these classes rename begin_page to
11480 really_begin_page, print_line to really_print_line, copy_file to
11481 really_copy_file, transparent_char to really_transparent_char.
11482 Move output_file::flush to real_output_file. Add printing member
11483 to class output_file.
11484 * troff/div.h: Remove printing member from top_level_diversion.
11485 Add vspace member function to class diversion ifdef COLUMN. Add
11486 some declarations ifdef COLUMN.
11487 * troff/div.c (top_level_diversion::copy_file,
11488 top_level_diversion::transparent_output,
11489 top_level_diversion::output): Don't test printing member before
11491 * troff/input.c: Handle initial variable_space_request ifdef
11493 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
11494 but comment it out.
11496 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
11498 * troff/div.c (diversion::need): Make any space forced. If we
11499 sprung a trap, set truncated_space to minus the distance to the
11500 trap and set needed_space to the amount that was needed.
11501 (top_level_diversion::space): A forced space turns no_space_mode
11503 (class constant_vunits_reg): New class.
11504 (init_div_requests): Implement number registers .trunc and .ne
11505 using constant_vunits_reg.
11506 (class truncated_space_reg): Deleted.
11508 * troff/div.h: Don't have a no_space_mode member in diversion.
11509 Instead have it in top_level_diversion.
11510 * troff/div.c (diversion::diversion): Don't initialize
11512 (top_level_diversion::top_level_diversion): Initialize
11514 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
11515 (macro_diversion::output): Don't clear no_space_mode.
11517 * troff/input.c (diverted_space_node::reread): Don't call
11518 environment::do_break. In fill mode, act like a blank line.
11519 (diverted_copy_file_node::reread): Don't call
11520 environment::do_break.
11522 * troff/div.c (blank_line): New function.
11523 * troff/div.h: Declare it.
11524 * troff/input.c (process_input_stack): Call it.
11526 * troff/div.c (truncated_space_reg::get_string): New function.
11527 (init_div_requests): Bind to .trunc.
11528 (space_request, top_level_diversion::space,
11529 top_level_diversion::output, macro_diversion::space,
11530 macro_diversion::output): Update truncated_space.
11531 (macro_diversion::output): Redo calculations when trap sprung.
11532 (macro_diversion::output, macro_diversion::space): No need for
11535 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
11536 after truncating post line spacing.
11538 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
11540 * ps/devps/prologue (MF, SF): Make them work even if setfont is
11541 defined as a procedure rather than as an operator.
11543 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
11545 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
11547 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
11549 * troff/div.c (top_level_diversion::output): Merge
11550 output_file::print_line and output_file::end_of_line member
11552 * troff/div.h (class output_file):
11553 * troff/node.c (troff_output_file::print_line,
11554 troff_output_file::end_of_line, output_file::end_of_line,
11555 ascii_output_file::print_line, suppress_output_file::print_line):
11556 Corresponding changes.
11558 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
11560 * troff/input.c (token::next): Don't give a warning for `\.'.
11562 * troff/env.c (environment::get_center_lines): New function.
11563 (init_env_requests): Bind number register .ce to it.
11564 * troff/env.h: Declare it.
11565 * tbl/table.c (table::init_output): Define reset macro to restore
11566 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
11568 (table::print): If center option not given, then imply center
11569 option if SAVED_CENTER_REG > 0.
11571 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
11573 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
11574 Troff.ps from DOWNLOAD.
11576 * troff/Makefile: Change comment in DEFINES to avoid confusing
11579 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
11580 code. Don't try to catch errors with stopped.
11581 (check_line_lengths): New function.
11582 * ps/devps/prologue (EXEC): Deleted.
11583 (EBEGIN, EEND): New procedures.
11585 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
11587 * troff/input.c: Include request.h before node.h.
11588 * troff/node.c: Likewise.
11589 * troff/env.c: Likewise.
11590 * troff/div.c: Likewise.
11591 * troff/node.h (class special_node): Store argument as a macro
11592 rather than a char *.
11593 * troff/node.c (special_node::special_node, special_node::copy):
11595 (special_node::~special_node): Deleted.
11596 (special_node::tprint): Deleted.
11597 (special_node::tprint_start, special_node::tprint_end,
11598 special_node::tprint_char): New functions.
11599 (troff_output_file::special): Deleted.
11600 (troff_output_file::start_special, troff_output_file::end_special,
11601 troff_output_file::special_char): New functions.
11602 * troff/input.c (special_node::tprint): New function.
11603 (do_special): Use macro not char *.
11604 (do_transparent_macro): Deleted.
11605 (token::next): Don't call do_transparent_macro.
11607 * troff/input.c (token::next): Add 'Y' case.
11608 (do_transparent_macro): New function.
11609 * troff/node.c (troff_output_file::special): Handle newlines with
11610 argument using new continuation convention.
11611 * driver/input.c (get_string): Cope with continuation convention.
11612 (do_file): Don't call skip_line after calling get_string(1).
11613 * ps/ps.c (ps_printer::special, ps_printer::do_import,
11614 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
11616 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
11619 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
11621 * troff/input.c (asciify): By default, illegal input characters
11622 should return empty string.
11624 * troff/input.c (copy_file): Handle first page transition like title.
11625 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
11627 * troff/input.c (token::next): Improve error message for EOF after
11629 (input_char_description): New function.
11630 (get_char_for_escape_name): Use input_char_description.
11631 (token::next): Warn about unrecognized escape sequences.
11632 (warning_table): Add WARN_ESCAPE.
11633 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
11636 * troff/token.h: Remove declaration of process_input_stack.
11638 * troff/input.c: Remove declaration of init_hyphen_requests.
11639 * troff/request.h: Correct spelling in declaration of same.
11641 * troff/input.c (token::next): Check whether escape_char is 0.
11643 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
11645 * groff.c (main, usage, help): Implement -P and -L options.
11646 * groff.sh: Likewise.
11648 * troff/input.c (token::next): Use some gotos to avoid code
11651 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
11652 Avoid calling symbol::symbol if name empty.
11654 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
11656 * troff/input.c (init_input_requests): Make \n(.x return the major
11657 version number and \n(.y return the minor version number.
11658 * troff/Makefile: Construct file majorminor.c defining
11659 major_version and minor_version automatically from ../VERSION.
11661 * troff/node.c (class glyph_node): Make operator new and operator
11663 (class ligature_node): Similarily.
11665 * troff/input.c (operator==(const macro &, const macro &)): New
11667 (non_interpreted_node::same): Use this.
11668 (string_iterator::string_iterator): Make macro& argument const.
11670 * troff/input.c (input_iterator::get): New function. Don't make
11671 asciify_macro or class non_interpreted_node friends of class
11673 (non_interpreted_node::interpret): Use input_iterator::get.
11674 (asciify_macro): Likewise.
11676 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
11677 ~non_interpreted_node): Deleted.
11678 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
11681 * troff/symbol.h: Make all symbol member functions const.
11683 * lib/strtol.c: New file.
11684 * lib/Makefile: Add strtol.c.
11685 * Makefile: Define STRTOL as strtol.o to include strtol in
11688 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
11690 * pic/troff.c (troff_output::simple_circle): Divide by scale.
11692 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
11694 * troff/input.c (do_special): Use input_level.
11696 * troff/token.h (TOKEN_BACKSPACE): New token.
11697 (token::backspace): New function.
11698 * troff/input.c (token::description, token::next, token::process):
11699 Grok TOKEN_BACKSPACE.
11700 (do_special): Turn TOKEN_BACKSPACE back into \b.
11702 * troff/token.h (token::leader): New function.
11703 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
11705 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
11707 * troff/input.c (do_special): Use token::description in error
11710 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
11712 * troff/input.c (decode_args): Combine quoted and
11713 quote_input_level variables. Make it a for (;;) loop.
11715 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
11717 * troff/input.c (read_long_escape_name): The test for whether to
11718 expand buffer was off by 1.
11719 (read_string): Similarily.
11721 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
11723 * troff/input.c: Use `const int' rather than `static const int'.
11725 * troff/div.h (diversion::copy_file): Declare as pure virtual.
11726 (macro_diversion::copy_file): New function.
11727 * troff/node.h: New class diverted_copy_file_node.
11728 * troff/node.c: Implement it.
11729 * troff/input.c (copy_file): Use diversion::copy_file. Handle
11730 first page transition by pushing a diverted_copy_file_node.
11731 * troff/input.c (token::next, process_input_stack): Don't handle
11734 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
11736 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
11737 whether space widths need adjusting.
11739 * troff/charinfo.h: Generalize translated_to_space to
11740 special_translation so as to allow translation to \&.
11741 * troff/input.c (translate): Allow translation to \&.
11742 (charinfo::*): Corresponding changes.
11743 * troff/node.c (make_node, node::add_char): Corresponding changes.
11744 * troff/node.h (dummy_node::dummy_node): Allow optional first
11747 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
11748 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
11750 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
11751 TOKEN_REQUEST with an argument of TITLE_REQUEST.
11752 (token::process): Grok that.
11753 * troff/input.c (copy_file): Handle first page transition like
11754 title by pushing a COPY_FILE_REQUEST cookie.
11755 (token::next, process_input_stack): Grok that.
11756 * troff/node.h (output_file::copy_file): Add x and y arguments.
11758 * troff/div.c (top_level_diversion::copy_file): Supply them.
11759 * troff/node.c (troff_output_file::copy_file): Add x and y
11760 arguments; moveto specified position. Invalidate font_position
11761 array after copying file.
11762 (output_file::copy_file): New function.
11763 (suppressed_output_file::copy_file, ascii_output::copy_file):
11765 * troff/input.c (transparent_file): New function.
11766 (init_input_requests): Bind to "trf".
11767 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
11768 (process_input_stack): Likewise.
11770 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
11772 * troff/node.c (init_node_requests): New number registers .kern
11773 pointing to global_kern_mode, and .lg pointing to
11774 global_ligature_mode.
11776 * troff/node.c (ligature): Don't change it if we get a bad
11779 * troff/input.c (do_define_string): Don't strip tabs.
11781 * troff/input.c (asciify_macro): Make the string_iterator auto.
11783 * troff/node.c (init_font_requests): Rename to...
11784 (init_node_requests):
11785 * troff/node.h: Change declaration.
11786 * troff/input.c (main): Change call.
11788 * troff/input.c (node::reread, diverted_space_node::reread): New
11790 (process_input_stack): Call reread rather than
11791 get_diverted_space_node.
11792 * troff/node.c (node::get_diverted_space_node,
11793 diverted_space_node::get_diverted_space_node): Removed.
11794 * troff/node.h: Declare reread methods instead of
11795 get_diverted_space_node methods. Make `n' member private.
11796 * troff/input.c: (token::diverted_space): Removed.
11797 * troff/token.h: Removed declaration.
11800 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
11802 * eqn/script.c (script_box::compute_metrics): Don't let
11803 SUP_RAISE_FORMAT become negative.
11805 * tbl/table.c (table::do_row): Entries that don't end in the
11806 this row shouldn't make the row non-blank.
11808 * tbl/table.c (table::make_columns_equal): Only set the width of
11809 columns which are marked as equal.
11811 * tbl/main.c (process_data): Before issuing excess data error,
11812 if last character was a newline unget it; then get it again after
11813 the error. Also include the contents of the entry in the message.
11815 * groff.c: New file.
11816 * Makefile: Build groff from groff.c. Make it possible to use
11817 either groff.sh or groff.c as groff.
11818 * Makefile.bd: Similarily.
11820 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
11822 * groff.sh: Don't delay expansion of $@ in assignment to files.
11823 Remove occurrences of \".
11825 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
11827 * all Makefiles: Simplify and rearrange.
11829 * Makefile: Handle fmod like malloc.
11830 * lib/Makefile: Similarily.
11831 * lib/fmod.c: Remove #ifdef NEED_FMOD.
11833 * Makefile: Rename OPTIMISE to OPTIMIZE.
11835 * groff.sh: Remove assignment to PATH.
11836 * Makefile: Remove SHPATH variable.
11837 * Makefile.bd: Similarily.
11839 * groff.sh: Add -V option to print the pipeline instead of
11842 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
11844 * lib/font.c: Split off file searching into ...
11845 * lib/fontfile.c: New file.
11847 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
11849 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
11851 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
11852 Also change misleading comment.
11853 (table::do_vspan): Change similarily misleading comment.
11854 * tbl/main.c (process_data): A format row with an explicit `s'
11855 uses up a data line, even if all the other columns are `_' or `='.
11857 * troff/input.c (token::description): Fix description of
11858 TOKEN_DUMMY and TOKEN_EMPTY.
11860 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
11862 * groff.sh: Fix description of -Z in help message.
11864 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
11866 * pic/object.c (object_spec::make_object): Allow negative and zero
11868 * pic/pic.y: Give linethick default value of -1.0.
11869 * pic/troff.c (troff_output::troff_output): Initialize
11870 last_line_thickness to BAD_THICKNESS.
11871 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
11872 (troff_output::line_thickness): Canonicalize negative thicknesses
11873 to RELATIVE_THICKNESS.
11874 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
11875 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
11877 (tex_output::start_picture): Set pen_size to -2.0.
11879 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
11880 0, then use 0 linewidth.
11881 (ps_printer::ps_printer): Initialize line_thickness to -1.
11883 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
11885 * ps/devps/symbolchars: Remove `or'.
11886 * ps/tmac.ps: Implement \(or with .char.
11888 * ps/devps/symbolchars: Move most characters into textmap.
11889 * ps/devps/textmap: Add names for troff bracket characters. Remove
11892 * ps/devps/TSymbol.ps: Removed.
11893 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
11894 * ps/tmac.ps: Do with .char what TSymbol did.
11895 * ps/devps/download: Remove TSymbol.
11897 * ps/devps/T: Removed.
11898 * ps/devps/Troff.ps: Removed.
11899 * ps/devps/Troff.afm: Removed.
11900 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
11901 * ps/devps/download: Remove Troff.
11902 * ps/devps/FontMakefile: Remove T target.
11903 * ps/devps/DESC-A4: Remove T from font list.
11904 * ps/devps/DESC-letter: Likewise.
11906 * troff/input.c (macro_to_node): Rename to ...
11907 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
11908 character's definition while processing it.
11909 * troff/node.c (node::add_char, make_node): Change calls to
11910 macro_to_node accordingly.
11912 * troff/input.c (token::next): Translate \_ to \(ul.
11914 * tty/devascii/R.proto: Add `|'.
11915 * tty/devlatin1/R.proto: Likewise.
11917 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
11919 * man: Put the version number in all the man pages.
11921 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
11923 * Makefile.bd: New file.
11924 * README.bd: New file.
11926 * VERSION: New file.
11927 * lib/version.c: Removed.
11928 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
11931 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
11932 environment variable.
11934 * all Makefiles: Split install target into install.bin for
11935 binaries, and install.nobin for everything else.
11936 * Makefile: Add bindist target.
11938 * man/afmtodit.man: New file.
11939 * man/Makefile: Add afmtodit.n to MAN1PAGES.
11940 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
11942 * ps/Makefile: Pass BINDIR to make install in devps.
11944 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
11945 the space character.
11947 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
11949 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
11951 * ps/ps.c: Redo font downloading.
11952 * ps/devps/download: New file.
11953 * ps/devps/Makefile: Add download to DEVICEFILES.
11954 * ps/devps/afmtodit: Remove -d option.
11955 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
11956 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
11957 * ps/devps/zapfdr.ps: Likewise.
11958 * ps/devps/TSymbol.ps: Likewise.
11960 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
11962 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
11964 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
11966 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
11967 then strip the first line if it starts with %.
11968 * Makefile: Add a comment about this.
11970 * man/tfmtodit.man: New file.
11971 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
11972 * dvi/Makefile: Install tfmtodit in BINDIR.
11974 * dvi/tfmtodit.c (usage): Mention -v option.
11976 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
11978 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
11979 * troff/node.c (troff_output_file::transparent_char): Don't call
11982 * eqn: Add check_tabs method to most box classes.
11983 * eqn/box.c (box::top_level): Call check_tabs.
11985 * eqn/script.c (script_box::output): Use \Z.
11986 * eqn/limit.c (limit_box::output): Use \Z.
11988 * eqn/box.c (box::top_level): Use itoa.
11990 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
11992 * dvi/tmac.dvi: Add font translations for CR, C, TT.
11993 * dvi/devdvi/Makefile: Don't make links to CW.
11995 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
11997 * xditview/tmac.X: Likewise.
11999 * troff/node.c: Add font translation feature.
12000 (get_font_translation): New function.
12001 (symbol_fontno): Translate the font name.
12002 (mount_font_no_translate): Rename to mount_font to this.
12003 (mount_font): New function.
12004 (font_family::make_definite): Call mount_font_no_translate instead
12006 (mount_style): Translate the font name.
12007 (font_translate): New function.
12008 (init_font_requests): Bind "ftr" to font_translate.
12010 * ps/devps/prologue (SN): New procedure that rounds a position to
12011 the nearest (pixel + (.25,.25)).
12012 (DL): Use SN to round endpoints.
12014 * lib/version.c: Changed version to 0.5.
12016 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
12018 * Makefile: Move definition of PAGE to the very beginning, so that
12019 people are less likely to miss it.
12021 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
12023 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
12025 * troff/env.c (environment::choose_breakpoint): Make `can't find
12026 breakpoint' error a warning of type WARN_BREAK. Change message to
12027 `can't break line'.
12028 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
12030 * troff/input.c: Add WARN_BREAK to warning_table. Include
12031 WARN_BREAK in DEFAULT_WARNING_MASK.
12033 * tty/tmac.tty: Add definition of \(+-.
12035 * groff.sh: Remove `--' option to set command.
12037 * dvi/devdvi/texsy.map: Remove duplicate md entry.
12039 * ps/devps/eqnchar: Better definition of cdot using md.
12040 * dvi/devdvi/eqnchar: Likewise.
12041 * xditview/devX100/eqnchar: Likewise.
12042 * xditview/devX75/eqnchar: Likewise.
12043 * eqn/lex.c: Add definition of cdot.
12045 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
12047 * troff/input.c (get_optional_char): New function.
12048 * troff/input.c (set_page_character): Use get_optional_char(),
12049 rather than has_arg() and tok.get_char(1).
12050 * troff/env.c (tab_character, leader_character, hyphen_char,
12051 field_characters): Likewise.
12052 (margin_character): Likewise. Also always delete the
12053 margin_character_node.
12055 * troff/input.c (token::get_char): Use token::description.
12057 * troff/input.c (has_arg): Don't skip over tab and \}.
12058 * troff/number.c (start_number): Give a warning if the number
12059 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
12061 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
12063 * troff/input.c (empty_name_warning, non_empty_name_warning): New
12065 (get_name, get_long_name): Use these. Rename `warn' argument to
12068 * troff/node.c (get_fontno): Test that the symbol is not null.
12070 * troff/input.c (token::description): New function.
12071 * troff/number.c (parse_term): Use token::description in `numeric
12072 expression expected' message.
12073 * troff/groff.h: Add WARN_MISSING.
12074 * troff/number.c (start_number): New function.
12075 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
12076 get_incr_number): Use start_number().
12077 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
12079 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
12080 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
12082 * troff/input.c (token::get_char): Use WARN_MISSING.
12083 * troff/input.c (token::delimiter): Use token::description.
12084 * troff/env.c (environment_switch): Back out Aug 3 change.
12085 * troff/input.c (has_arg): Skip over \}s and tabs but give a
12087 * troff/token.h (token::tab): New function.
12088 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
12089 * troff/reg.c (alter_format): Likewise.
12090 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
12092 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
12094 * troff (most files): Redo warnings. Divide warnings into various
12095 categories; warning() has an additional first argument indicating
12096 the category it falls into.
12097 * troff/input.c (main): -w now takes an argument. New option -W.
12098 (enable_warning, disable_warning): New functions.
12100 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
12101 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
12103 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
12105 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
12106 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
12107 * xditview/devX75/eqnchar: Likewise.
12108 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
12110 * eqn/other.c: When bar or over applies to a single character
12111 don't produce an overline_box or an underline_box. Instead produce
12112 an accent_box or an underaccent_box, with the accent a line
12113 whose width is accent_width. New classes underaccent_box,
12114 overline_char_box and underline_char_box.
12115 * eqn/box.h: Move overline_box, underline_box, accent_box class
12116 declarations into eqn/other.c. Add declarations of
12117 make_underline_box, make_overline_box, make_accent_box.
12118 * eqn/eqn.y: Call make_overline_box, make_underline_box
12119 make_accent_box instead of constructors.
12120 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
12122 * eqn/other.c: Add accent_box::~accent_box.
12123 * eqn/box.h: Declare it.
12125 * groff.sh: With -Tps, use eqn -D.
12127 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
12129 (underline_box::output): Similarily.
12130 (accent_box::output): Use \Z.
12132 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
12135 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
12137 * troff/div.c (top_level_diversion::transparent_output(unsigned
12138 char)): Use asciify.
12139 * troff/input.c (asciify): Don't make it static.
12140 * troff/token.h (asciify): Declare it.
12142 * troff/input.c (get_name, get_long_name, token::get_char,
12143 token::delimiter): Add an extra default argument which says
12144 whether a warning should be printed.
12145 * troff: Pass a non-zero argument to one of these rather than
12146 printing a warning directly.
12148 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
12150 * troff: Consistently use symbol::is_null.
12152 * troff/dictionary.h: Move some inline functions into
12155 * troff/request.h: Move inline functions into input.c.
12156 (request_or_macro::invoke): Make it pure.
12158 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
12159 * troff/input.c (init_input_requests): Use class constant_int_reg.
12160 (class compatible_reg): Deleted.
12161 * troff/div.c (init_div_requests): Use class constant_int_reg.
12162 (class last_post_line_extra_space_reg): Deleted.
12164 * troff/env.c (tab_character): Don't change the tab character if
12165 we get an invalid argument.
12166 (hyphen_char): Similarily.
12168 * troff/reg.c (alter_format): Check that nm is not null.
12170 * Makefile, groff.sh: Make it possible to customize the commands
12171 used for printing PostScript and dvi files. Also make it possible
12172 to customize the path used by groff.sh.
12174 * eqn/eqn.y: Make `left' right associative.
12176 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
12178 * pic/pic.h: Added definition of M_SQRT2 for those systems that
12181 * pic/pic.h: Removed definition of INT_MAX.
12183 * troff/node.c (italic_corrected_node::vertical_extent): Omit
12186 * troff/input.c (token::next): Handle \R like \n.
12188 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
12190 * ps/tmac.pc (PSPIC): Simplify.
12192 * troff/env.c (tab_stops::to_string):
12193 * pic/pic.y (object_type_name):
12194 * pic/troff.c (simple_output::line):
12195 * pic/tex.c (tex_output::spline):
12196 * pic/object.c (object_spec::make_object):
12197 * tbl/main.c (process_data): Add cases to switch statements to
12198 avoid cfront warnings. (Some of these are spurious, since the
12199 switch already has a default case.)
12201 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
12202 `ps-'. Don't test systat; instead check number of arguments to
12205 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
12207 * macros/tmac.e: Do not decrease the page offset by 0.5i.
12209 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
12210 Unlink the file as soon as we have opened it, so that we don't
12211 have to bother with signal handlers.
12212 (handler): Deleted.
12213 (fatal_error_exit): Deleted.
12214 (main): Don't call signal.
12216 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
12218 * dvi/devdvi/Makefile: Use the -k option with S and MI.
12220 * pic/pic.y: If there is a label, or an nth construction before
12221 the first `.' in the argument to `with', ignore it and generate a
12223 * pic/lex.c (lex_warning): New function.
12225 * tbl/table.c (table::init_output): In section keep and release
12226 macro, use 0 indent when diverting and the correct indent when
12229 * troff/input.c (interpolate_number_format): Do not interpolate
12230 anything if the number register is not defined.
12232 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
12234 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
12236 * ps/devps/prologue (PICTURE): Set components of graphics state to
12237 their default values.
12239 * ps/devps/text.enc: Add trademark
12240 * ps/devps/textmap: Add names for club, spade, heart, diamond,
12241 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
12242 * ps/devps/symbolchars: Add names for summation and product.
12244 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
12245 suchthat. Add pp. Add upper-case letters.
12247 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
12248 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
12251 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
12252 rA (right angle bracket) to ra. Introduce names for double-headed
12253 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
12254 * ps/devps/textmap: Likewise for ps device.
12255 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
12256 * tty/devascii/R.proto: Rename lA to la and rA to ra.
12257 * tty/devascii/R.proto: Likewise.
12258 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
12260 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
12262 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
12264 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
12267 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
12269 * troff/div.c (when_request): Use symbol::is_null rather than
12270 has_arg to determine whether we have an argument.
12271 (change_trap): Remove the trap if we get an invalid number. Give
12272 an error if we don't get at least the macro name.
12273 (diversion_trap): Remove trap if we get an invalid name or number.
12275 * troff/env.c (environment_switch): Pop if we get an invalid
12276 symbol or numeric expression.
12278 * troff/input.c (do_define_macro): If EOF is encoutered while
12279 defining the macro, do tok.next() before returning.
12281 * troff/token.h (has_arg): Move definition from here, to ...
12282 * troff/input.c (has_arg): ... here
12284 * troff/env.c (space_size): Do nothing if we get an invalid argument.
12285 * troff/input.c (shift): Likewise.
12287 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
12290 * pic/troff.c (troff_output::start_picture): Comment out calls to
12293 * eqn/main.c (do_file): Subtract 1 from current_lineno if
12294 interpret_lf_args succeeds.
12296 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
12297 \\. This avoids problems with \$N.
12299 * groff.sh: Pass -C to preprocessors.
12301 * lib/lf.c (interpret_lf_args): Be more flexible.
12303 * tbl/main.c (main): Add -C option.
12304 (table_input::get): Do not recognize TE if followed by character
12305 other than a space or newline unless -C option given.
12306 (process_input_file): Likewise for lf, TS.
12307 (process_data): Likewise for lf in text blocks.
12309 * eqn/main.c (main): Add -C option.
12310 (do_file): Don't recognize EQ, EN or lf if followed by character
12311 other than space or newline unless -C option given.
12312 * eqn/lex.c (file_input::read_line): Similarily.
12313 * eqn/eqn.h: Declare compatible_flag.
12315 * etc/soelim.c (main): Add -C option.
12316 (interpret_lf_args): Use version in libgroff.
12319 * pic/main.c (main): Add -C option, which sets compatible_flag.
12320 (top_input::get), (top_input::peek): If -C option not given,
12321 do not recognize .PS/.PE/.PF/.lf if followed by a character
12322 other than space or newline.
12323 * pic/lex.c (file_input::read_line): Similarily.
12324 * pic/pic.h: Add declaration of compatible_flag.
12326 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
12328 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
12330 * troff/node.c, troff/node.h: Add `asciify' methods to classes
12331 derived from node. New class space_char_hmotion_node.
12332 * troff/input.c (asciify_macro): New function.
12333 * troff/input.c (init_input_requests): New request `asciify' bound
12335 * macros/mm.diff: New file.
12336 * Makefile: In install.mm target use `patch' to apply
12339 * troff/input.c (macro::print_size): Just print the size in bytes.
12341 * troff/div.c (return_request): Correct the argument
12344 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
12346 * troff/node.h (class composite_node): Add sz member.
12347 * troff/node.c (composite_node::size): Return sz.
12348 * troff/input.c (macro_to_node): Use the initial size in the
12349 environment as the size of the composite_node.
12351 * troff/node.c (node::zero_width_tprint): Provide a reasonable
12354 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
12356 * troff/div.c (change_trap): If we get a bad number expression,
12359 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
12361 * lib/matherr.c (matherr): Define this only if math.h defines
12364 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
12366 * troff/div.c (macro_diversion::distance_to_next_trap): If there
12367 no diversion trap return vunits(INT_MAX - vresolution).
12369 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
12371 * troff/input.c (do_zero_width): New implementation that doesn't
12372 use a temporary environment. Use instead:
12373 (token::add_to_node_list): New function.
12374 * troff/env.c (environment::get_prev_char_height),
12375 (environment::get_prev_char_height),
12376 (environment::get_prev_char_skew): New functions.
12377 (environment::get_prev_char): New function.
12378 (environment::get_prev_char_width): Change to use get_prev_char.
12379 (init_env_request): Implement new registers .cht, .cdp, .csk.
12380 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
12381 \Z being processed in a separate environment.
12383 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
12385 * tbl/table.c: Removed TABLE_BOTTOM_REG.
12387 * tbl/table.c (table::init_output): In the section release macro,
12388 give a warning message if the section won't fit on one page.
12390 * tbl/table.c (table::do_top): Emit table keep only if table is
12392 (table::do_bottom): Likewise for table release.
12393 (table::table), (table::add_vertical_rule): Remove reference to
12395 * tbl/table.h: Remove keep member.
12397 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
12398 SECTION_RELEASE_MACRO, if there's not enough space before the next
12399 trap to output the diversion, call T# ourselves, set
12400 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
12401 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
12402 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
12403 vertical position and return to it before turning traps on again.
12405 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
12407 * troff/node.c, troff/node.h: In classes derived from node,
12408 replace prev_char_width method by last_char_node method.
12409 * troff/env.c (environment::get_prev_char_width): Use
12410 node::last_char_node rather than node::get_prev_char_width.
12412 * Makefile: Added comment about -fno-inline on 68030-based
12415 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
12416 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
12417 expressions using sizeof to int.
12418 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
12420 * macros/tmac.e (TS): Don't move @f back past the current
12423 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
12425 * ps/ps.c (main): Buffer stderr.
12426 * dvi/dvi.c (main): Likewise.
12427 * tty/tty.c (main): Likewise.
12429 * ps/ps.c (ps_printer::do_import): Improve error handling.
12431 * troff/input.c (abort_request): Use asciify.
12433 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
12434 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
12435 type of first argument int rather than char. This works around a
12436 bug on the 68030 based Apollo using g++ 1.37.1.
12438 * tbl/table.h (class table): Add `keep' member.
12439 * tbl/table.c (table::table): Initialize `keep'.
12440 (table::add_vertical_rule): Set `keep' to 1.
12441 (table::do_top): Only emit table keep macro is `keep' is non-zero.
12442 (table::do_bottom): Likewise for table release macro.
12443 (table::do_row): Emit section keep macro even if the row is 0.
12445 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
12447 * macros/tmac.e (@C): Preserve the font family across the change
12450 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
12452 * lib/font.c: Initialize font::hor and font::vert to 1.
12453 (font::load_desc): Check the values of font::hor and font::vert.
12455 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
12456 be included in a C compilation.
12457 (iftoa): Use INT_DIGITS. Include lib.h.
12459 (as_string): Likewise.
12460 * tbl/table.c: Removed definition of INT_DIGITS.
12461 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
12462 * troff/input.c (input_input_requests): Likewise.
12463 * ps/ps.c (make_encoding_name): Likewise.
12464 (ps_printer::set_style): Likewise.
12465 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
12467 * tty/devascii/R.proto: Map fm onto '.
12468 * tty/devlatin1/R.proto: Likewise.
12470 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
12472 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
12473 argument to \w is at a different input level.
12475 * tbl/table.c (table::init_output): Define a new macro
12476 REPEATED_VPT_MACRO, like vpt but if in a diversion also
12477 transparently outputs itself.
12478 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
12480 (table::do_row): Likewise.
12482 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
12483 TRANSPARENT_STRING_NAME.
12485 * tbl/table.c (table::init_output): In the table release macro
12486 print an error message and don't produce any output if after
12487 issuing the need request the table still will not fit. Also
12488 remove the diversion after bringing it back.
12490 * tbl/table.c (table::init_output): Define a new macro
12491 REPEATED_MARK_MACRO, like mk but if in a diversion also
12492 transparently outputs itself.
12493 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
12494 is necessary because .TH might not call .T#.
12495 (table::do_top): Likewise TOP_REG.
12496 (table::define_bottom_macro): If TOP_REG is no longer valid, use
12497 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
12498 table header might contain just the two top rules.
12500 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
12502 * troff/div.c: Implement new request `ptr' to print all traps.
12504 * troff/env.c (init_env_requests): Implement `.tabs' reg with
12505 init_string_env_reg.
12506 * troff/env.c (class tab_reg): Deleted.
12508 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
12510 * troff/div.c: New number register .pn returns the number of the
12511 next page as set by the pn request.
12513 * macros/tmac.an: Redid headers and footers. Number each manual
12514 entry starting from 1 unless \nC is > 0, like Sun. Added an
12515 optional 5th argument to .TH which specifies the manual name and
12516 appears in the center of the header. Understand the X, P and D
12517 registers like Sun.
12519 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
12521 * troff/env.c (init_env_requests): New number register `.lt' to
12522 return the title length.
12524 * troff/node.h (class transparent_dummy_node): New class.
12525 * troff/node.c (class transparent_dummy_node): Provide member
12527 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
12530 * troff/input.c (token::next): New escape sequence \).
12531 * troff/input.c (get_copy): Recognize \) in copy mode.
12533 * troff/input.c (input_stack::clear): New function.
12534 * troff/input.c (exit_request): Use input_stack::clear.
12536 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
12537 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
12539 * troff/env.c: Move set_page_character to input.c. Move
12540 page_character to input.c also.
12541 * troff/env.c (title): Split off the reading of the parts of the
12542 title into read_title_parts.
12543 * troff/input.c (read_title_parts): New function. Check the
12544 input_level when testing whether a token matches the delimiter.
12546 * troff/input.c (exit_request): New function.
12547 * troff/input.c (init_input_requests): Bind ex request to
12548 exit_request rather than exit_groff.
12550 * troff/input.c (exit_groff): Call tok.next() before
12551 process_input_stack().
12553 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
12555 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
12556 * troff/env.h: ditto.
12557 * troff/input.c: ditto.
12559 * troff/env.c (environment::is_empty): Test pending_lines.
12561 * troff/env.c (environment::have_pending_lines): Removed.
12563 * troff/input.c: Add request to flush pending lines from the
12566 * troff/env.c, troff/env.h: Add automatic widow control feature.
12568 * troff/input.c (exit_groff): Do process_input_stack() after
12569 do_break() but before setting exit_flag to 2.
12571 * troff/input.c: Remove FLUSH_PENDING_LINES and
12572 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
12573 environment after END_TRAP token seen, but only if there aren't
12574 any more traps still unfinished.
12575 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
12577 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
12579 * troff/env.c: Rename the `retain_size' member of class
12580 pending_output_line to `no_fill'.
12582 * troff/env.c (title): When the line is output, make the
12583 retain_size argument !fill.
12585 * troff/node.h: Add `hyphenated' member to struct breakpoint.
12586 * troff/node.c (space_node::get_breakpoints),
12587 (dbreak_node::get_breakpoints): Fill this in.
12588 * troff/env.c: Allow specification of maximum number of
12589 consecutive hyphenated lines.
12591 * troff/env.c (environment::is_empty): Add test for !current_tab.
12593 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
12595 * troff/env.c (environment::hyphenate_line): Don't completely give
12596 up if the word is not to be hyphenated; continue so that breaks
12597 can be made at break_char_node's.
12599 * lib/lib.h: Only define INT_MAX if it's not already defined;
12600 undef INT_MIN if it's already defined.
12602 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
12604 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
12605 This works around a bug in AT&T C++ 2.0 used with an ANSI C
12608 * macros/tmac.an (an-header): Set no-space mode.
12610 * macros/tmac.an (TH): Start a new page if necessary.
12612 * Started using ChangeLog at version 0.4.
12615 version-control: never