1 2002-05-15 Werner LEMBERG <wl@gnu.org>
3 * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
4 code of x in range 0-127) also.
5 * doc/groff.texinfo, man/groff_diff.man: Updated.
7 Added keywords `north', `south', `east', and `west' for corners
10 * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
13 * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
14 (corner): Handle them.
16 2002-05-14 Werner LEMBERG <wl@gnu.org>
18 * src/devices/grops/grops.man: Clarify handling of `download' file.
20 2002-05-11 Werner LEMBERG <wl@gnu.org>
22 Adding `warnscale' and `spreadwarn' requests, based on a patch from
23 Jeffrey Friedl <jfriedl@yahoo.com>.
25 * src/roff/troff/input.cc (spread_limit, warn_scale,
26 warn_scaling_indicator): New global variables.
27 (warnscale_request, spreadwarn_requests): New functions.
28 (main): Initialize `warn_scale' and `warn_scaling_indicator'.
29 (init_input_requests): Updated.
30 (error_type): Add `OUTPUT_WARNING'.
31 (do_error): Handle it.
32 (output_warning): New warning function which shows output location.
33 * src/roff/troff/env.h (spread_limit): New external variable.
34 * src/roff/troff/env.cc (environment::choose_breakpoint): Use
36 (distribute_space): Emit warning if added space is larger than
38 (environment::possibly_break_line): Emit warning if a line can't
39 be adjusted on both sides.
41 * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
43 2002-05-08 Werner LEMBERG <wl@gnu.org>
45 * src/roff/troff/node.cc (special_node::special_node): Use
46 env_definite_font(curenv) instead of curenv->get_font(). Otherwise
47 \X''\% crashes, for example.
49 * doc/groff.texinfo: Document \! and \? used at top-level.
51 2002-05-06 Werner LEMBERG <wl@gnu.org>
53 * src/preproc/pic/pic.man: Fix some keyword syntax.
54 Other minor typographical fixes.
56 * src/roff/groff/groff.man: Fix typos.
58 2002-05-04 Werner LEMBERG <wl@gnu.org>
60 * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
61 (ShortOpt[]): This to avoid problems with refer.
63 * doc/pic.ms: Fix typo.
64 Fix pic grammar description.
66 * tmac/an-old.tmac (ne): Use de1, not de.
68 2002-05-03 Werner LEMBERG <wl@gnu.org>
70 * doc/groff.texinfo: Finished separation of glyphs and characters.
71 Don't use the string `Appendix' for appendix headers (both in
72 the text and the table of contents).
73 * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
76 Use registers LL and LT (similar to -ms) for controlling the
77 length of title and line, respectively, in the -man and -mdoc
80 * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
81 (doc-setup-page-layout): Use \n[LL] and \n[LT].
82 * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
84 (an-header, an-p-footer): Use \n[LT].
85 * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
86 doc/groff.texinfo: Document it.
88 2002-05-02 Werner LEMBERG <wl@gnu.org>
90 * doc/fdl.texi: New file.
91 * doc/groff.texinfo: Include it.
92 Define and use @copying.
93 Starting with separating glyph, symbol, and character.
95 2002-04-27 Werner LEMBERG <wl@gnu.org>
97 * Makefile.in (EXEEXT): Set it.
98 * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
101 * src/include/nonposix.h: Define GS_NAME.
102 * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
104 Some preliminary changes for EMX support under OS/2.
106 * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
107 __EMX__ similar to __MSDOS__.
108 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
110 2002-04-25 Werner LEMBERG <wl@gnu.org>
112 * doc/groff.texinfo: Integrated groff_out.man.
115 2002-04-23 Werner LEMBERG <wl@gnu.org>
117 * man/groff_out.man: Minor fixes.
119 2002-04-23 Werner LEMBERG <wl@gnu.org>
121 * doc/groff.texinfo: Moving @cindex entries after @Def* to get
122 correct page references.
123 Fixed many index entries.
125 2002-04-23 Bernd Warken <bwarken@mayn.de>
127 * man/roff.man: Enlarged.
129 2002-04-22 Werner LEMBERG <wl@gnu.org>
131 * doc/groff.texinfo: More examples, other fixes.
133 2002-04-20 Werner LEMBERG <wl@gnu.org>
135 * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
136 will now form a chain, e.g.
145 This is for compatibility with plan 9's troff.
147 * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
151 * doc/groff.texinfo: Add documentation of remaining requests and
154 2002-04-19 Werner LEMBERG <wl@gnu.org>
156 * doc/groff.texinfo: Add documentation of remaining escapes.
158 * font/devdvi/generate/tc.map: Remove entry for `sr'.
159 * font/devdvi/*TC: Regenerated.
161 2002-04-18 Werner LEMBERG <wl@gnu.org>
163 * src/roff/troff/input.cc (token::next): Make \H behave consistently
164 if not in compatibility mode, i.e., increment relative to the
166 * doc/groff.texinfo: Updated accordingly.
168 2002-04-17 Werner LEMBERG <wl@gnu.org>
170 * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
172 2002-04-16 Bernd Warken <bwarken@mayn.de>
174 * src/roff/groff/groff.man: Improve documentation of -P option.
177 2002-04-15 Werner LEMBERG <wl@gnu.org>
179 Add new escape \F to switch font family.
181 * src/roff/troff/input.cc (token::next): Handle \F.
182 * src/roff/troff/env.cc (environment::set_family): Handle
184 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
187 2002-04-14 Werner LEMBERG <wl@gnu.org>
189 * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
192 2002-04-13 Werner LEMBERG <wl@gnu.org>
194 Implement \f[] as an alternative to \fP. Change \mP and \MP to
195 \m[] and \M[], respectively.
197 * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
198 (symbol::symbol): Handle NULL string and empty string differently.
199 * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
200 * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
201 Add optional parameter.
202 Updated calling functions.
203 (get_copy, do_glyph_color, do_fill_color, token::next): Use
205 * src/roff/troff/env.cc (environment::set_font): Ditto.
207 * src/preproc/pic/troff.cc (troff_output::set_fill,
208 troff_output::reset_color: Updated.
210 * tmac/www.tmac: Updated.
212 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
213 doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
216 * tmac/Xps.tmac: Remove some redundant code.
218 * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
219 tmac/dvi.tmac, contrib/groffer/groffer.man, man/roff.man,
220 man/groff_out.man, man/groff.man, man/groff_diff.man,
221 src/roff/groff/groff.man: Replace \f[P] with \f[].
223 2002-04-13 Bernd Warken <bwarken@mayn.de>
225 * src/include/printer.h, src/libs/libdriver/printer.cc
226 (printer::change_fill_color): New member function.
227 * src/libs/libdriver/input.cc (parse_D_command): Use it.
229 2002-04-12 Werner LEMBERG <wl@gnu.org>
231 * doc/groff.texinfo: Completed pass on gtroff reference.
233 2002-04-11 Werner LEMBERG <wl@gnu.org>
235 * doc/groff.texinfo: More fixes.
237 2002-04-11 Bernd Warken <bwarken@mayn.de>
239 * src/include/color.h: Decorate with `const'.
242 * src/libs/libgroff.color.cc: Decorate with `const'.
244 (color::color): Initialize members.
245 * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
246 command according to the documentation.
248 * man/groff_out.man: Updated.
251 2002-04-11 Gaius Mulley <gaius@glam.ac.uk>
253 * src/preproc/html/pre-html.cc (write_start_image): Remove
255 * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
257 * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
258 \C'hy' caused an assertion failure.
260 * src/roff/troff/env.cc (environment::environment): Initialize
262 (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
264 2002-04-10 Werner LEMBERG <wl@gnu.org>
266 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
267 Document pvs request and .pvs register.
269 2002-04-09 Werner LEMBERG <wl@gnu.org>
271 * doc/groff.texinfo: Improve and fix documentation of diversions
274 2002-04-08 Werner LEMBERG <wl@gnu.org>
276 * doc/groff.texinfo: Fix documentation of drawing functions.
279 2002-04-07 Werner LEMBERG <wl@gnu.org>
281 * doc/groff.texinfo: Better documentation of double quotes as
285 2002-04-06 Werner LEMBERG <wl@gnu.org>
287 * man/groff_font.man: Document names of special characters better.
288 * doc/groff.texinfo: Minor improvements.
290 * tmac/lbp.tmac: Load latin1.tmac.
291 * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
293 * font/devX*/*: Regenerated (all chars > 0x80 removed).
295 2002-04-05 Werner LEMBERG <wl@gnu.org>
297 * tmac/tty.tmac: Don't use shc request.
298 * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
301 * man/groff_diff.man: Minor fixes.
303 * font/devlbp/*: Remove all `charXXX' entities.
305 * src/libs/libgroff/font.cc (font::~font): Deallocate
306 `special_device_coding'.
307 (font::load): Use `new' for allocating `special_device_coding'.
308 * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
309 Removed unused member.
311 2002-04-05 Werner LEMBERG <wl@gnu.org>
313 * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
314 (resource_manager::do_begin_binary,
315 resource_manager::do_begin_data): Use it.
317 * doc/texinfo.tex: Updated to version 4.2.
319 * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
320 (token::zero_width_break): New inline function.
321 * src/roff/troff/input.cc (token::next): Use it.
322 (token::description): Updated.
323 (encode_char): Ignore `\%', `\&', `\)', and `\:'.
324 (token::add_to_node_list, token::process): Use it.
325 * NEWS, doc/groff.texinfo: Updated.
327 * src/preproc/eqn/over.cc (over_box::output): Fix typo.
328 * tmac/tty.tmac: Add missing backslash.
330 2002-04-04 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
332 * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
333 `.ps' register instead of `.s' to handle fractional point sizes.
334 * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
335 limit_box::output): Ditto.
336 * src/preproc/eqn/other.cc (size_box::compute_metrics,
337 size_box::output): Ditto.
338 * src/preproc/eqn/over.cc (over_box::compute_metrics,
339 over_box::output): Ditto.
340 * src/preproc/eqn/script.cc (script_box::compute_metrics,
341 script_box::output): Ditto.
342 * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
343 sqrt_box::output): Ditto.
345 2002-04-03 Michael Selway <mas@ssl.co.uk>
347 * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
350 2002-04-03 Werner LEMBERG <wl@gnu.org>
352 * doc/homepage.ms: Reduce title size.
353 * doc/groff.texinfo: Fix documentation of .t register.
354 Fix handling of colon.
357 * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
358 only if page length is positive to avoid a loop.
360 * tmac/an-old.tmac (ne): Increase page length to avoid problems with
363 2002-04-02 P. Alejandro Lopez-Valencia <dradul@yahoo.com>
365 * src/include/nonposix.h, src/roff/groff/pipeline.c:
366 s/__CYGWIN32__/__CYGWIN__/.
368 2002-03-28 Gaius Mulley <gaius@glam.ac.uk>
370 * doc/gnu.xpm: New image contributed by Emily Mulley.
371 * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
372 (homepage.html): Be dependent on gnu.eps.
373 * doc/homepage.ms: Updated to new image.
375 * src/devices/grohtml/post-html.cc (html_printer): New member
377 (html_printer::flush_sbuf, html_printer::set_char): Set it.
378 (html_printer::sbuf_continuation): Use it.
380 2002-03-28 Werner LEMBERG <wl@gnu.org>
382 * src/libs/libgroff/getopt.c: Updated to latest version.
384 * tmac/README: More on hyphen.tex license.
386 2002-03-26 Larry Kollar <kollar@alltel.net>
388 * doc/groff.texinfo: Add documentation of most missing requests.
390 2002-03-25 Werner LEMBERG <wl@gnu.org>
392 Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
393 of `+-', `mu', and `di', respectively.
395 * font/devascii/R.proto, font/devutf8/R.proto,
396 font/devlatin1/R.proto, font/devhtml/R.proto,
397 font/devcp1047/R.proto, font/devlpb/*: Add them.
398 * font/devps/generate/textmap: Ditto.
399 * font/devps/*: Regenerated.
400 * font/devlj4/generate/text.map: Add them.
401 * font/devlj4/*: Regenerated.
402 * font/devdvi/generate/tc.map: Use them.
403 * font/devdvi/generate/texsy.map: Add them.
404 * font/devdvi/*: Regenerated.
405 * font/devX*/*: Regenerated.
407 * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
408 tmac/tty-char.tmac: Updated.
410 * NEWS, man/groff_char.man: Updated.
412 2002-03-24 Werner LEMBERG <wl@gnu.org>
414 * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
415 tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
416 * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
417 we use `.fchar' in dvi.tmac.
418 * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
419 * tmac/Xps.tmac: Simplify some char definitions.
420 Add definition for \[f/].
421 * man/groff_char.man: Updated for new X.tmac.
423 * tmac/README: New file.
425 2002-03-23 Phil Lobbes <phil@perkpartners.com>
427 * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
428 internal .y.o rule took precendence over the .y.cc rule, compiling
429 the yacc files with gcc instead of g++.
431 2002-03-23 Werner LEMBERG <wl@gnu.org>
433 * tmac/dvi.tmac: Add replacement font for `CB'.
435 * tmac/doc.tmac: s/request/macro/ in messages.
436 (doc-generic-macro): Improve error message.
437 * tmac/groff_mdoc.man: Minor improvements.
439 2002-03-22 Werner LEMBERG <wl@gnu.org>
441 * doc/groff.texinfo: Document possible conflict between `tr' and
444 2002-03-21 Werner LEMBERG <wl@gnu.org>
446 Improve handling of hyphenation patterns. It is now possible to
447 use most of TeX's pattern files unmodified. To make the process
448 more flexible, a new request `hpfcode' has been added which
449 provides a character code mapping for the `hpf' request. See
450 comment before hpf_getc() for more details.
452 * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
454 (read_patterns_file): Additional parameter for exception dictionary.
455 Extended to recognize \pattern, \hyphenation, and \endinput.
456 (do_hyphenation_patterns_file): Updated.
457 * src/roff/troff/env.h (hpf_code_table): New extern.
459 * src/roff/troff/input.cc (hpf_code_table): New array.
460 (init_hpf_code_table, hyphenation_patterns_file_code): New
462 (hyphenation_code): Handle translation from `trin' correctly.
463 (main, init_input_requests): Updated.
464 (charinfo::set_translation): Handle hyphenation code also.
466 * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
469 * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
470 char' is used for offsets in hyphenation exceptions.
472 * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
474 * NEWS, man/groff_diff.man, man/groff.man: Document it.
476 2002-03-20 Larry Kollar <kollar@alltel.net>
478 * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
481 2002-03-18 Werner LEMBERG <wl@gnu.org>
483 * tmac/html.tmac: Fix serious typo.
485 2002-03-17 Larry Kollar <kollar@alltel.net>
487 * doc/groff.texinfo: Add documentation for `writec' request.
489 2002-03-17 Werner LEMBERG <wl@gnu.org>
491 Added request `hpfa' to append hyphenation patterns.
493 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
495 (hyphenation_patterns_file): Renamed to...
496 (do_hyphenation_patterns_file): This.
497 (hyphenation_patterns_file, hyphenation_patterns_file_append): New
499 (init_hyphen_requests): Updated.
500 * NEWS, man/groff.man, man/groff_diff.man: Document it.
502 2002-03-16 Werner LEMBERG <wl@gnu.org>
504 Added request `writec' in analogy to `tmc'.
506 * src/roff/troff/input.cc (write_request): Renamed to...
507 (do_write_request): This.
509 (write_request, write_request_continue): New functions.
510 (init_input_requests): Updated.
511 * NEWS, man/groff.man, man/groff_diff.man: Document it.
513 * font/devdvi/DESC.in (sizes): Allow all sizes in the range
517 2002-03-15 Werner LEMBERG <wl@gnu.org>
519 * man/groff.man: Add writem request.
521 Add request `trin' (translate input) to make `.asciify' work
522 correctly. This is necessary since `charXXX' entity names are no
523 longer hardcoded in font definition files.
525 * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
526 `translate_input' members.
527 (charinfo::set_asciify_code, charinfo::get_asciify_code,
528 charinfo::set_translation_input): New methods.
529 (charinfo::set_translation): Add third argument.
530 * src/roff/troff/input.cc (charinfo:set_translation): Set
532 (do_translate): Add second argument.
533 (translate_input): New function.
534 (init_input_requests): Updated.
535 * src/roff/troff/node.cc (glyph_node::asciify,
536 composite_node::asciify): Use `get_asciify_code'.
538 * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
540 * NEWS, man/groff.man, man/groff_diff.man: Updated.
542 2002-03-14 Larry Kollar <kollar@alltel.net>
544 * doc/groff.texinfo: Improve documentation of .RS and .RE.
546 2002-03-14 Werner LEMBERG <wl@gnu.org>
548 Add a new request `sizes' similar to the `sizes' command in DESC
551 * src/roff/troff/env.cc (override_sizes): New function.
552 (init_env_requests): Use it.
553 * src/roff/troff/token.h: Export `read_string'.
554 * NEWS, man/groff_diff.man, man/groff.man: Document it.
556 2002-03-12 Werner LEMBERG <wl@gnu.org>
558 * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
560 2002-03-10 Werner LEMBERG <wl@gnu.org>
562 * tmac/pspic.tmac: Add support for -Tdvi.
563 * tmac/dvi.tmac: Include pspic.tmac.
564 * src/devices/grodvi/grodvi.man: Document it.
567 * font/devlj4/generate/Makefile: Fix URL of metric files.
569 2002-03-09 Werner LEMBERG <wl@gnu.org>
571 * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
573 2002-03-09 Larry Kollar <kollar@alltel.net>
575 * tmac/groff_ms.man: Add documentation for RS and RE macros.
577 2002-03-08 Werner LEMBERG <wl@gnu.org>
579 * doc/groff.texinfo: Fixes for texinfo 4.1.
581 2002-03-07 Werner LEMBERG <wl@gnu.org>
583 * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
585 Handle CYGWIN properly.
587 2002-03-07 Paco Andrés Verdú <pandres@dragonet.es>
589 * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
590 * tmac/lbp.tmac: Add some font translations.
592 2002-03-02 Werner LEMBERG <wl@gnu.org>
594 * font/devcp1047/R.proto, font/devlatin1/R.proto,
595 font/devhtml/R.proto: Remove `charXXX' entries.
596 * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
599 * font/devlj4/generate/text.map: Remove `charXXX' entries.
600 * font/devlj4/*: Regenerated all font definition files.
601 * tmac/lj4.tmac: Load latin1.tmac.
603 * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
604 from 2000-06-17: LJ4 metric files are *not* text files.
606 * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
607 register to test for EBCDIC.
609 2002-03-01 Werner LEMBERG <wl@gnu.org>
611 * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
612 files (as grops already does).
613 * src/utils/afmtodit/afmtodit.man: Document comment lines in map
615 * src/devices/grops/grops.man: Document comment lines in encoding
618 * tmac/cp1047.tmac: New file.
619 * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
620 * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
621 * tmac/Makefile.sub (NORMALFILES): Updated.
623 * tmac/ec.tmac: Don't load latin1.tmac again.
625 * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
626 font/devps/generate/dingbats.map,
627 font/devps/generate/dingbats.rmap, font/devps/text.enc,
628 font/devps/generate/Makefile (symbolmap): Add header comment.
629 * font/devps/generate/textmap: Ditto.
630 Remove `charXXX' entries.
631 * font/devps/symbolmap: Regenerated.
632 * font/devps/*: Regenerated all font definition files.
634 2002-02-28 Werner LEMBERG <wl@gnu.org>
636 Add color support to grodvi (for drawing colors are currently
637 translated to gray values).
639 * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
640 (dvi_printer): Add `cur_color' member.
641 (dvi_printer::set_color): New function.
642 (draw_dvi_printer): Remove `fill'.
643 (draw_dvi_printer::fill_next): Pass environment as parameter.
644 Update code for new color support translated to gray.
645 (dvi_printer::set_char): Updated.
646 (dvi_printer::begin_page, dvi_printer::end_page): Handle color
647 changes crossing the page border.
648 (dvi_printer::draw): Updated.
649 Remove cases `f' and `F'.
650 * tmac/dvi.tmac: Add color definitions.
651 * NEWS, src/devices/grodvi/grodvi.man: Updated.
653 * tmac/an-old.tmac (R): Make this a macro to emit a warning if
656 * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
657 versions of autoconf.
658 * configure: Updated.
660 * doc/homepage.ms: Use `.blm'.
661 * tmac/www.tmac (www-depth): New auxiliary variable.
662 (www-pop-level): Don't issue HTML tag.
663 (ULS, ULE, LI): Use absolute indentation.
665 * src/devices/grops/ps.cc (ps_printer::begin_page,
666 ps_printer::end_page): Switch forth and back to default color while
669 2002-02-27 Werner LEMBERG <wl@gnu.org>
671 Add EC and TC fonts to devdvi.
673 * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
674 * font/devdvi/generate/cork.map: Renamed to...
675 * font/devdvi/generate/ec.map: This.
676 Remove entry for `aq'.
677 * font/devdvi/generate/tc.map: New file.
678 * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
681 * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
682 * font/devdvi/Makefile.sub (DEVFILES): Updated.
683 * tmac/ec.tmac: New file.
684 * tmac/Makefile.sub (NORMALFILES): Updated.
685 * NEWS, src/devices/grodvi/grodvi.man: Updated.
686 * man/groff_char.man: Check `ECFONTS' register.
688 * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
690 2002-02-26 Werner LEMBERG <wl@gnu.org>
692 * font/devdvi/generate/*.map: Remove all `charXXX' entries.
693 * font/devdvi/generate/cork.map: Add 'y and 'Y.
694 * font/devdvi/*: Updated.
695 * tmac/dvi.tmac: Formatting.
697 Add font `HBI' for the dvi output.
698 Add support for font families `T' and `H'.
700 * font/devdvi/HBI: New file.
701 * font/devdvi/B: Renamed to ...
702 * font/devdvi/TB: This.
703 * font/devdvi/BI: Renamed to ...
704 * font/devdvi/TBI: This.
705 * font/devdvi/I: Renamed to ...
706 * font/devdvi/TI: This.
707 * font/devdvi/R: Renamed to ...
708 * font/devdvi/TR: This.
709 * font/devdvi/H: Renamed to ...
710 * font/devdvi/HR: This.
711 * font/devdvi/Makefile.sub (DEVFILES): Updated.
712 * font/devdvi/generate/Makefile (HBI): New rule.
714 (R, I, B, BI, H): Renamed to ...
715 (TR, TI, TB, TBI, HR): This, respectively.
717 * NEWS, src/devices/grodvi/grodvi.man: Updated.
718 * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
719 Add `styles' and `family' keywords.
720 * tmac/dvi.tmac: Alias `H' to `HR'.
721 Add some fspecial requests for italic fonts.
722 Add TR and TI as special.
723 Add support for `_' with font CWI.
725 * src/roff/troff/number.cc (parse_expr): Add missing `break' for
726 operator `:'. Until now, the expression `0:1' would return 2
729 2002-02-25 Werner LEMBERG <wl@gnu.org>
731 * man/groff_char.man: Added some missing PS glyph names (from the
733 * font/devps/generate/textmap, font/devps/symbolmap: Add
736 * doc/groff.texinfo: Minor additions and fixes.
737 * man/groff_diff.man: Remove documentation of fp request. This
738 is already covered in the original troff manual.
739 Updated to be consistent with other doc files.
742 2002-02-24 Werner LEMBERG <wl@gnu.org>
744 * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
746 Define new variable OTHERDEVDIRS (containing `font/devlj4
747 font/devlbp' if not EBCDIC).
748 * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
749 (OTHERDEVDIRS): New variable.
750 (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
751 * configure: Regenerated.
753 * NEWS, src/devices/grotty/grotty.man: Updated.
755 2002-02-23 Werner LEMBERG <wl@gnu.org>
757 * src/roff/troff/input.cc (do_overstrike, do_bracket,
758 get_line_arg): Honour input level.
760 Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
762 * font/*/*: Implement it in all font files.
763 * font/devps/generate/textmap, font/devps/generate/symbolchars,
764 * font/devps/symbolmap: Updated.
765 * font/devlj4/generate/text.map: Updated.
766 * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
767 * font/devdvi/generate/texmi.map: Updated.
769 * font/devutf8/R.proto: Remove all `charXXX' entries.
770 * font/devutf8/NOTES: Updated.
772 * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
775 * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
777 * NEWS, man/groff_char.man: Updated.
779 2002-02-21 Phil Lobbes <phil@perkpartners.com>
781 * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
783 2002-02-20 Ralph Corderoy <ralph@inputplus.demon.co.uk>
785 * src/roff/grog/grog.pl: Fix computation of $refer.
787 2002-02-19 Werner LEMBERG <wl@gnu.org>
789 * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
790 `snprintf' and `vsnprintf'.
792 * src/include/htmlindicate.h: Renamed to...
793 * src/include/htmlhint.h: This.
794 * src/include/Makefile.sub: Updated.
795 * src/preproc/eqn/main.cc: Updated.
797 2002-02-18 Werner LEMBERG <wl@gnu.org>
799 * man/roff.man, man/groff_out.man, man/groff.man,
800 man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
801 src/roff/troff/troff.man: Updated to latest changes in www.tmac.
803 * win32-diffs: Updated.
805 2002-02-17 Werner LEMBERG <wl@gnu.org>
807 * doc/Makefile (clean): Add *.eps.
809 (TFLAG): New variable.
812 (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
814 (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
816 * tmac/www.tmac: Use dummy diversion while resetting and disabling
818 * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
820 * src/roff/troff/troff.man: Fix order of parameter description.
824 2002-02-16 Gaius Mulley <gaius@glam.ac.uk>
826 Simplify image handling for grohtml.
829 * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
831 (html_text::dump_stack): Don't emit newline while debugging.
832 (html_text::do_push) [DEBUGGING]: Print more info.
833 (html_text::check_emit_text): Fix handling of <p>.
834 * src/devices/grohtml/html.h: Updated.
835 * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
836 replacing `fputc', `fputs', `putc'. If DEBUGGING is defined, they
837 send its data to stderr also.
839 (simple_output::space_or_newline) [DEBUGGING]: Removed.
840 * src/devices/grohtml/post-html.cc (html_printer::do_links,
841 html_printer::html_printer): Remove `DEBUGGING' conditionals.
843 * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
845 * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
846 is_inline_image): Removed.
847 (html_begin_suppress, html_end_suppress): Don't take a parameter.
848 (graphic_start, graphic_end): Removed.
849 * src/include/htmlindicate.h: Updated.
850 * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
851 (macroset_template): New global variable.
852 (makeFileName): Use `macroset_template'.
853 (write_end_image): Don't take a parameter.
855 (write_start_image: Don't emit newline.
856 (char_buffer::write_upto_newline): Updated.
857 (char_buffer::skip_to_newline): Renamed to ...
858 (char_buffer::skip_until_newline): This.
860 (char_buffer::write_file_troff, char_buffer::write_file_html):
862 (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
863 (removeAllPages): Remove `DEBUGGING' conditionals.
864 (addRegDef, dump_args): New functions.
865 (char_buffer::do_html, char_buffer::do_image): Handle
866 `www-image-template' command line variable.
867 Add more debugging code.
868 (addps4html): Removed.
869 (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
871 * src/preproc/eqn/main.cc: Include `ctype.h'.
872 (suppress_html): Removed.
874 (inline_equation): Use `html_begin_suppress' and
876 * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
877 (troff_output::start_picture, troff_output::finish_picture):
879 * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
880 (process_input_file): Updated.
882 * src/roff/troff/div.cc (page_number): Set page number only if the
883 `ps4html' register isn't defined.
884 * src/roff/troff/input.cc (image_no): New external variable.
885 (do_suppress): Use it.
886 * src/roff/troff/node.h (suppress_node::image_id): New member.
887 * src/roff/troff/node.cc (image_no): Remove `static' keyword.
888 (suppress_node::suppress_node): Initialize `image_id' member.
889 (suppress_node::same): Handle `image_id' also.
890 (suppress_node::copy): Updated.
891 (last_image_id): New global variable.
892 (suppress_node::tprint): Use it.
894 * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
896 * tmac/pspic.mac (PSPIC): Fix html support.
897 * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
898 * tmac/www.tmac (www-image-template): Set up.
899 (HTMLINDEX): Renamed to...
901 (BODYCOLOR): Renamed to...
903 (BACKGROUND): Renamed to...
905 (URL): Change order of parameters for consistency.
906 (MAILTO): Renamed to...
908 (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
909 (IMG, PIMG, MPIMG): This.
910 (HTML-H-BEGIN, HTML-H-END): Renamed to...
912 (LINKS): Renamed to...
914 (LINE): Renamed to...
916 (NO-AUTO-RULE): Renamed to...
918 (HTML-TL): Renamed to...
920 (UL-BEGIN, UL-END): Renamed to...
922 (DROPCAP): Renamed to...
924 (TS, TE, EQ, EN): Provide default definitions.
925 (www-make-unique-name): Updated.
926 (HTML-IMAGE-INLINE): Fix typo.
927 * tmac/groff_www.man: Updated.
929 * doc/Makefile (homepage.html): Add option -r to grohtml.
930 Use shortened image name.
931 * doc/groff.texinfo: Updated info on grohtml strings and macros.
932 * doc/homepage.ms: Updated and extended.
934 2002-02-14 Werner LEMBERG <wl@gnu.org>
936 Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
938 * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
939 SGR_BACK_DEFAULT_COLOR): Replaced with ...
940 (tty_printer::put_color): Use it.
941 (ttr_printer::end_page): Simplify.
943 2002-02-13 Werner LEMBERG <wl@gnu.org>
945 * tmac/groff_tmac.man: Moved to...
946 * man/groff_tmac.man: This place.
947 * tmac/Makefile.sub, man/Makefile.sub: Updated.
949 2002-02-12 Werner LEMBERG <wl@gnu.org>
951 * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
952 $(COMPILE.c) to not include groff's assert.h.
954 * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
956 * NEWS, src/drivers/grotty/grotty.man: Document it.
958 2002-02-11 Werner LEMBERG <wl@gnu.org>
960 * src/libs/snprintf/snprintf.c: Updated to latest version
963 * src/roff/grog/grog.pl (process): Fix handling of `.['. We now
964 test whether there is `.]' also.
965 Don't check for spaces after `.['.
966 * src/roff/grog/grog.sh: Do the same.
968 2002-02-10 Werner LEMBERG <wl@gnu.org>
972 * src/libs/libgroff/illegal.cc: Renamed to ...
973 * src/libs/libgroff/invalid.cc: This.
974 (illegal_char_table): Renamed to ...
975 (invalid_char_table): This.
976 * src/libs/libgroff/Makefile.sub: Updated.
977 * win32-diffs: Updated.
979 * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
980 src/libs/libdriver/input.cc (fatal_command, parse_color_command,
981 parse_x_command), src/libs/libgroff/font.cc (text_file::next,
982 font::load), src/preproc/eqn/main.cc (read_line, main),
983 src/preproc/eqn/lex.cc (file_input::read_line),
984 src/preproc/pic/lex.cc (file_input::read_line,
985 simple_file_input::get, simple_file_input::peek),
986 src/preproc/pic/main.cc (top_input::get, top_input::peek),
987 src/preproc/pic/pic.man, src/preproc/refer/main.cc
988 (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
989 do_bib), src/preproc/tbl/main.cc (table_input::get),
990 src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
991 src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
992 do_zero_width, read_request, encode_char, ps_get_line,
993 transparent_file, get_char_for_escape_name, transparent_translate,
994 asciify, input_char_description, read_string, set_string),
995 src/roff/troff/env.cc (environment::add_html_tag),
996 src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
998 * src/include/lib.h: Updated.
1000 * src/preproc/eqn/eqn.cc: Removed.
1004 * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
1006 2002-02-09 Werner LEMBERG <wl@gnu.org>
1008 * doc/gnu.xpm: New image.
1009 * doc/Makefile (DOCS): Add homepage.ps.
1010 Add rules for converting xpm->png and xpm->eps.
1011 Use `gnu.{xpm,eps}' as image names.
1012 * doc/homepage.ms: Updated.
1014 2002-02-09 Gaius Mulley <gaius@glam.ac.uk>
1016 * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
1017 (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
1018 Remove calls to `B1' and `B2'
1019 (PNG-IMAGE): New macro for inclusion of images in PNG format.
1020 (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
1021 auxiliary variables for MARGIN-PNG-IMAGE.
1022 (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
1023 auxiliary macros for MARGIN-PNG-IMAGE.
1024 (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
1026 (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
1027 (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
1028 (DROPCAP): New macro to produce dropcap characters.
1029 (www-do-image): Renamed back to...
1030 (HTML-DO-IMAGE): This.
1031 Updated all callers.
1033 * doc/Makefile (gnubw.eps): Updated.
1034 * doc/homepage.ms: Updated.
1036 2002-02-08 Werner LEMBERG <wl@gnu.org>
1038 * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
1039 Added `linethick' to table in section `Style Variables'.
1041 2002-02-08 Gaius Mulley <gaius@glam.ac.uk>
1043 * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
1045 2002-02-07 Werner LEMBERG <wl@gnu.org>
1047 Adding options -C (compatibility mode) and -c (grotty's old output
1050 * src/roff/nroff/nroff.sh: Implement it.
1052 * NEWS, src/roff/nroff/nroff.man: Updated.
1054 * PROBLEMS: Document bison 1.32 bug.
1056 Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
1058 * src/roff/troff/node.cc (make_tfont): Define it earlier.
1059 * src/roff/troff/div.h: Add prototype for `end_diversions'.
1060 * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
1061 * src/roff/troff/env.h: Add prototype for `title'.
1063 Adding EBCDIC support to grotty.
1065 * src/devices/grotty/tty.cc (CSI): New macro.
1066 (SGR_*, tty_printer::put_color): Use it.
1068 2002-02-06 Werner LEMBERG <wl@gnu.org>
1070 Implementing color support in grotty. The new switch -c activates
1071 the old drawing scheme, disabling color at the same time. The new
1072 switch `-i' selects italic instead of underlining (SGR only).
1074 * src/devices/grotty/tty.cc (putstring): New define instead of
1075 `fputs'. Updated all callers.
1076 (old_drawing_scheme): New global variable.
1077 (COLOR_CHANGE): New enum value.
1078 (SGR_*): New defines containing color handling escape sequences.
1079 (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
1080 (glyph): New members `back_color_idx' and `fore_color_idx'.
1081 (glyph::order): Add COLOR_CHANGE.
1082 (tty_printer): New members `cur_fore_idx', `curr_back_idx',
1083 `is_underline', `is_bold', `cu_flag', `tty_colors'.
1084 New methods `make_underline', `make_bold', `color_to_idx',
1085 `change_color', `put_color'.
1086 (cu_flag): Moved into `tty_printer' class.
1087 (tty_printer::tty_printer): Initialize colors.
1088 (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
1089 tty_printer::draw, tty_printer::end_page): Handle colors also.
1090 (main): Add options `-c' and `-i'.
1092 * NEWS, src/devices/grotty/grotty.man: Updated.
1094 * src/include/errarg.h (errarg): Add support for `unsigned int'.
1095 * src/libs/libgroff/errarg.c: Implement it.
1097 * src/include/printer.h (printer): Add `change_color' method
1098 (currently used by grotty only).
1099 * src/libs/libdriver/printer.cc: Implement it.
1100 * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
1101 call to `pr->change_color'.
1103 * src/roff/troff/node.cc (troff_output_file::fill_color,
1104 troff_output_file::glyph_color): Call `do_motion'.
1106 * tmac/tty.tmac: Add color definitions.
1108 * src/roff/groff/groff.man: Minor fixes.
1110 2002-02-05 Bernd Warken <bwarken@mayn.de>
1112 * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
1113 it. This is a preparation for future changes.
1115 2002-02-05 Werner LEMBERG <wl@gnu.org>
1117 * src/roff/troff/input.cc (process_input_stack): Fix the case
1118 where leading spaces are followed by \f or \s; previously, an
1119 incorrect space width has been used.
1121 * doc/roff.man (quoted_char): Fix argument.
1122 (comment): Define string.
1124 2002-02-04 Larry Kollar <kollar@alltel.net>
1126 * doc/groff.texinfo: More fixes.
1128 2002-02-04 Werner LEMBERG <wl@gnu.org>
1130 * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
1131 * src/preproc/eqn/main.cc (do_file, inline_equation): Call
1132 `restore_compatibility' before `output_string' -- the LINE_STRING
1133 register now already contains proper switches from and to
1136 * man/groff_char.man: Add Euro symbol.
1137 * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
1138 * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
1139 * doc/groff.texinfo (Defstr*): Print strings with full syntax.
1142 * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
1144 (.texinfo.html): Add support for texinfo->html.
1146 2002-02-03 Werner LEMBERG <wl@gnu.org>
1148 Added three new requests `ds1', `as1', and `ami'. The former two
1149 are equivalent to `ds' and `as' with the difference that
1150 compatibility mode is saved on entry, switched off during string
1151 expansion, and restored on exit. The latter is the pendant to `dei'
1154 (do_define_string): Use `define_mode' and `calling mode'.
1155 Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
1156 end of string, respectively.
1157 (define_string, append_string): Use `calling_mode'.
1158 (define_nocomp_string, append_nocomp_string,
1159 define_string_indirect): New functions.
1160 (init_input_requests): Updated.
1161 * NEWS, man/groff_diff.man, man/groff.man: Document it.
1163 * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
1164 `as1' for assigning LINE_STRING (this is `10' usually). Sun's
1165 mm macro package accesses this string register directly.
1166 * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
1168 * tmac/trace.tmac: Trace calls to `am' also. Make it work in
1171 2002-02-02 Larry Kollar <kollar@alltel.net>
1173 * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
1175 2002-01-31 Werner LEMBERG <wl@gnu.org>
1177 * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
1179 2002-01-31 Bernd Warken <bwarken@mayn.de>
1181 * src/devices/grolbp/lbp.cc (main): Delete `pr'.
1182 * man/groff_out.man: Revised and updated.
1184 2002-01-30 Bernd Warken <bwarken@mayn.de>
1186 * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
1187 out the unused `{' and `}' commands. Undefined by default.
1188 (IntArray): Make `data' private.
1189 (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
1190 new methods instead.
1191 (skip_line_D, skip_to_end_of_line): New functions.
1192 (get_D_fixed_args): Use `skip_line_D'.
1193 Changed to handle dummy odd arguments by ...
1194 (get_D_fixed_args_odd_dummy): This new function.
1195 (get_D_variable_args): Split some code into ...
1196 (get_possibly_integer_args): This new function.
1197 (send_draw): Use more `const'.
1198 (delete_current_env): New function.
1199 (position_to_end_of_args): Use `size_t'.
1201 (send_draw): Updated.
1202 (parse_D_command): Handle `c', `C', and `t' better.
1206 2002-01-29 Werner LEMBERG <wl@gnu.org>
1209 * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
1210 @Def...ListEnd which replaces @Def...x. This is necessary to get
1211 proper HTML output -- see the comment in the file for more
1215 2002-01-29 Gaius Mulley <gaius@glam.ac.uk>
1217 Fixes to make color changes of 2002-01-21 work with grohtml.
1219 * src/devices/grohtml/post-html.cc (style): Updated.
1220 (html_printer): Remove unused methods.
1221 (html_printer::do_font, html_printer::draw, html_printer::set_char,
1222 html_printer::special): Updated.
1223 * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
1224 html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
1225 Added some debugging code.
1226 (html_text::start_tag): Updated.
1227 (html_text::do_push): New method.
1228 (html_text::push_para): Call it.
1229 Add method for handling color.
1230 (html_text::do_color): Updated.
1231 (html_text::shutdown): Handle color.
1232 * src/devices/grohtml/html-text.h (tag_definition): New member
1236 2002-01-28 Werner LEMBERG <wl@gnu.org>
1238 * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
1240 2002-01-27 Gaius Mulley <gaius@glam.ac.uk>
1242 Add two switches -a and -g to control the antialiasing bits for
1243 text and graphics, respectively.
1245 * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
1247 * src/devices/grohtml/grohtml.man: Document them.
1248 * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
1250 (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
1251 (setupAntiAlias): New function.
1252 (createAllPages): Updated.
1253 (scanArguments): Handle `-a' and `-g'.
1254 (main): Call `setupAntiAlias'.
1257 2002-01-27 Werner LEMBERG <wl@gnu.org>
1259 * doc/groff.texinfo (Def*): Call index function after deffn.
1261 * tmac/html.tmac: Call `nroff' request.
1263 2002-01-26 Larry Kollar <kollar@alltel.net>
1265 * tmac/groff_ms.man: Add some omissions.
1267 2002-01-25 Larry Kollar <kollar@alltel.net>
1269 * tmac/groff_ms.man: Typographical improvements.
1271 2002-01-25 Werner LEMBERG <wl@gnu.org>
1273 * doc/groff.texinfo: Updated version and copyright.
1274 * src/devices/grops/grops.man: Updated.
1276 * tmac/groff_tmac.man: Fix `ig' macro.
1278 * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
1280 Use `.ne' unconditionally everywhere.
1281 (TS): Only insert some vertical space. Doing a page break is no
1282 longer necessary due to the redefinition of the `ne' request.
1284 * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
1285 warning for unknown subcommands but parse and pass them to the
1288 2002-01-24 Werner LEMBERG <wl@gnu.org>
1290 * tmac/groff_www.man, NEWS: Fix typos.
1292 2002-01-21 Werner LEMBERG <wl@gnu.org>
1294 Complete revision of color support:
1296 Adapt programs to the new libdriver/input.cc.
1298 Color spaces are no longer converted to RGB but transferred as-is
1299 in the troff intermediate output format.
1301 Handle default color gracefully. troff now supports a `default'
1302 color (which can't be changed).
1304 grops will now use the proper color space functions if available.
1308 Note that currently grohtml doesn't handle colors properly. This
1311 * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
1312 (ui_to_a): New function.
1313 * src/include/lib.h: Updated.
1315 * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
1316 (color): Simplified; removed all `double' members and methods.
1317 A new array `components' now holds the color parameters.
1318 (color::is_default, color::get_components): New methods.
1319 (color::operator==, color:operator!=): New.
1320 (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
1321 to make access to the `components' array more comprehensible.
1322 * src/libs/libgroff/color.cc: Implement new color support.
1323 (atoh): Small fixes.
1324 (color::read_encoding): Simplified for new troff intermediate color
1326 (default_color): New global variable.
1328 * src/roff/troff/input.cc (default_symbol): New global variable.
1329 (lookup_color): Use it.
1330 (default_black): Removed.
1331 (do_glyph_color, do_fill_color): Simplified.
1332 (define_color): Handle default color.
1334 (do_if_request): Handle default color.
1335 * src/roff/troff/env.cc (environment::environment): Initialize
1336 colors with `default_color'.
1337 * src/roff/troff/node.cc (troff_output_file::put): Add method
1339 (troff_output_file::hex): Removed.
1340 (troff_output_file::fill_color, troff_output_file::glyph_color):
1341 Updated to include/color.h and libdriver/input.cc.
1343 * src/preproc/pic/object.cc (draw_arrow): New parameter to set
1344 fill color properly (identically to the outline color). \D'f...'
1345 doesn't work any more.
1346 All function calls to it updated.
1348 * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
1350 * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
1353 * src/devices/grops/ps.cc (ps_output::put_color): New method.
1354 (ps_printer::sbuf_color): Make a real member instead of pointer.
1355 (ps_printer::fill_color, ps_printer::output_color): Removed.
1356 (ps_printer::ps_printer): Updated.
1357 (ps_printer::set_char): Ditto.
1358 (ps_printer::set_color): Use various color schemes.
1359 Use `put_color' method.
1360 (ps_printer::flush_sbuf): Don't set color.
1361 (ps_printer::fill_path): Take `environment' as parameter.
1362 Simplify color handling.
1363 (ps_printer::set_line_thickness): Renamed to ...
1364 (ps_printer::set_line_thickness_and_color): This (and updated).
1365 (ps_printer::set_color): Change second parameter from `complete'
1366 to `fill' which better describes what it does.
1367 (ps_printer::draw): Call `flush_sbuf' to output graphic commands
1368 and text in the right order.
1370 Remove branches for `f' and `F'; this is handled by
1372 * src/devices/grops/ps.h: Updated.
1373 * font/devps/prologue (FL): Redefined.
1374 ({F,C}r,k,g: New color functions (with and without filling).
1376 * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
1377 * man/groff_diff.man, man/groff.man, man/groff_out.man,
1378 doc/groff.texinfo, NEWS: Updated.
1380 2002-01-20 Bernd Warken <bwarken@mayn.de>
1382 * src/libs/libdriver/input.cc: Completely rewritten. See comments
1383 in this file for what has been changed.
1385 2002-01-19 Werner LEMBERG <wl@gnu.org>
1387 * test-groff: Fix GROFF_FONT_PATH.
1388 * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
1389 is read before .TH or .Dd is parsed.
1391 2002-01-18 Gaius Mulley <gaius@glam.ac.uk>
1393 * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
1394 quadrant boundaries.
1396 2002-01-18 Werner LEMBERG <wl@gnu.org>
1398 * devices/grops/ps.cc: Aargh! Fix the fix of the incorrectly
1401 2002-01-17 Ruslan Ermilov <ru@FreeBSD.org>
1403 * tmac/doc.common: Initialize %I register for the %I macro to
1404 avoid (harmless) warning.
1405 * tmac/doc.tmac (Bd): There is no reason to enforce -compact
1406 when in the SYNOPSIS section.
1408 2002-01-17 Bruno Haible <haible@clisp.cons.org>
1410 * src/preproc/pic/lex.cc (get_token): Fix typo.
1412 2002-01-17 Werner LEMBERG <wl@gnu.org>
1414 * devices/grops/ps.cc: Fix incorrectly applied last patch.
1416 2002-01-17 Larry Kollar <kollar@alltel.net>
1418 * tmac/groff_ms.man: Completely rewritten.
1420 2002-01-16 Werner LEMBERG <wl@gnu.org>
1422 * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
1424 2002-01-15 Gaius Mulley <gaius@glam.ac.uk>
1426 * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
1428 (ps_printer::draw): Ditto.
1430 2002-01-14 Ruslan Ermilov <ru@FreeBSD.org>
1432 * tmac/groff_mdoc.man: Minor fixes.
1434 2002-01-13 Werner LEMBERG <wl@gnu.org>
1436 * man/groff_out.man: Some fixes.
1438 2002-01-13 Gaius Mulley <gaius@glam.ac.uk>
1440 * doc/pic.ms: Fix typos.
1442 2002-01-12 Werner LEMBERG <wl@gnu.org>
1444 * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
1446 2002-01-10 Werner LEMBERG <wl@gnu.org>
1448 * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
1452 2002-01-09 Bernd Warken <bwarken@mayn.de>
1454 * man/groff_out.man: Revised.
1455 * man/roff.man: Minor fixes.
1456 * src/roff/troff/troff.man: Some reordering.
1458 2002-01-09 Werner LEMBERG <wl@gnu.org>
1460 * tmac/an-old.tmac: Add dummy macros for equation support.
1462 2002-01-07 Werner LEMBERG <wl@gnu.org>
1464 doc/groff.texinfo: Fix documentation of glyph searching algorithm.
1466 * tmac/an-old.tmac: Revert change 2001-12-23. This breaks too many
1468 * tmac/groff_man.man: Small improvements.
1470 2002-01-07 Bernd Warken <bwarken@mayn.de>
1472 * man/groff_diff.man: Revised.
1474 2002-01-06 Werner LEMBERG <wl@gnu.org>
1476 * tmac/www.tmac: Remove extraneous backslash.
1478 2002-01-06 Bernd Warken <bwarken@mayn.de>
1480 * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
1482 2002-01-05 Werner LEMBERG <wl@gnu.org>
1484 Integrated groffer, contributed by Bernd Warken.
1486 * contrib/groffer/*: New.
1487 * Makefile.in, NEWS: Updated.
1489 2002-01-04 Werner LEMBERG <wl@gnu.org>
1491 * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
1492 registers defined in macro packages.
1493 Revising the ms part.
1495 2002-01-04 Larry Kollar <kollar@alltel.net>
1497 * doc/groff.texinfo: Add documentation for ms macros.
1499 2002-01-02 Werner LEMBERG <wl@gnu.org>
1501 First step in adding PS support for the Euro symbol. `eu' is the
1502 official Euro logo, `Eu' is a font-specific glyph variant.
1504 * font/devps/text.enc: Add `Euro' at position 9.
1505 * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
1506 * font/devps/symbolmap: Regenerated.
1510 2002-01-02 Bernd Warken <bwarken@mayn.de>
1512 * man/roff.man: Revised.
1514 2002-01-01 Bernd Warken <bwarken@mayn.de>
1516 * src/roff/groff/groff.man: Completely rewritten.
1518 2001-12-31 Werner LEMBERG <wl@gnu.org>
1520 * doc/Makefile: Updated.
1522 2001-12-30 Werner LEMBERG <wl@gnu.org>
1524 * tmac/www.tmac: Make all names of internal macros/registers/strings
1525 lowercase, and prepend `www-'.
1526 Other minor changes.
1527 * src/roff/troff/troff.man: Add preprocessor string at BOF.
1529 2001-12-30 Gaius Mulley <gaius@glam.ac.uk>
1531 Implement option `-b' in grohtml to set the HTML background colour.
1533 * src/devices/grohtml/post-html.cc (default_background): New global
1535 (html_printer::html_printer): Initialize `background' to
1536 `default_background'.
1537 (main): Implement option `-b'.
1539 * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
1541 * src/devices/grohtml/grohtml.man: Updated.
1542 * doc/Makefile (.ms.html): Use `-b'.
1543 * tmac/html.tmac: Don't set background color.
1545 Add new grohtml tag `.html-tl'.
1547 * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
1549 (title_desc::title_desc): Updated.
1550 (html_printer::troff_tag): Handle `.html-tl'.
1551 (html_printer::write_title): Use `with_h1'.
1552 * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
1553 (HTML-TL): New macro.
1555 Add support for unordered lists in HTML.
1557 * tmac/www.tmac (www-level): New auxiliary register.
1558 (www-level1, www-level2, www-level3): New auxiliary strings.
1559 (www-push-level, www-pop-level): New auxiliary macros
1560 (UL-BEGIN, UL-END, LI): User macros for unordered lists.
1564 * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
1565 (DEFAULT_VERTICAL_OFFSET): Removed.
1566 (IMAGE_BOARDER_PIXELS): Set to 0.
1567 (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
1568 (vertical_offset): Initialize with 0.
1569 (gsPaper): New global variable.
1570 (get_resolution): Scan for and return unsigned int.
1571 (get_papersize): New function to get paper length from devps/DESC.
1572 (determine_vertical_offset): New function.
1573 (createAllPages): Produce gray-level images and use proper page
1575 (createImage): Use `-quiet' option of pnmcrop.
1576 (addZ): Fix passing of `-Z'.
1577 (scanArguments): Fix handling of `-o'.
1578 (main): Call `determine_vertical_offset'.
1579 * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
1582 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
1583 * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
1584 glyph descenders properly.
1586 * doc/homepage.ms: Include `gnubw.eps'.
1587 * doc/Makefile (gnubw.eps): New rule.
1588 (homepage.html): Depend on `gnubw.eps'.
1590 2001-12-25 Werner LEMBERG <wl@gnu.org>
1592 * src/roff/troff/input.cc (default_black): Fix return value.
1594 2001-12-24 Ruslan Ermilov <ru@FreeBSD.org>
1596 * tmac/doc-common (Dt): Change output of architecture strings.
1597 Do some syntax cleanup.
1598 * tmac/groff_mdoc.man: Updated.
1600 2001-12-23 Werner LEMBERG <wl@gnu.org>
1602 Adding an `itc' request (input line trap accepting \c).
1604 * src/roff/troff/env.h (environment): New member
1605 `continued_input_trap'.
1606 Make `do_input_trap' a friend function instead of `input_trap'.
1607 * src/roff/troff/env.cc (environment::environment,
1608 environment::copy): Updated.
1609 (environment::newline): Implement it.
1610 (do_input_trap): New function.
1611 (input_trap): Call `do_input_trap'.
1612 (input_trap_continued): New function.
1613 (init_env_requests): Updated.
1614 * src/roff/troff/TODO: Updated.
1616 * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
1619 * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
1621 2001-12-22 Ruslan Ermilov <ru@FreeBSD.org>
1623 * tmac/doc-common, tmac/doc-syms: Small updates.
1625 2001-12-22 Colin Watson <cjwatson@debian.org>
1627 * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
1629 2001-12-22 Bernd Warken <bwarken@mayn.de>
1631 * MANIFEST: New file.
1633 2001-12-22 Werner LEMBERG <wl@gnu.org>
1635 * src/preproc/grn/grn.man: Updated.
1637 2001-12-22 Solar Designer <solar@openwall.com>
1639 * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
1642 2001-12-19 Werner LEMBERG <wl@gnu.org>
1644 Implement a fallback character request `.fchar'.
1646 * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
1647 (is_fallback): New inline function.
1648 * src/roff/troff/input.cc (do_define_character): New function.
1649 (define_character): Call `do_define_character'.
1650 (define_fallback_character): New function.
1651 (init_input_requests): Add `fchar'.
1652 (charinfo::charinfo): Updated.
1653 (charinfo::set_macro): New argument to set `fallback' flag.
1654 * src/roff/troff/node.cc (make_glyph_node, make_node,
1655 node::add_char): Check `fallback' flag.
1656 * NEWS, man/groff_diff.man, man/groff_man: Updated.
1658 2001-12-16 Werner LEMBERG <wl@gnu.org>
1660 * groff.texinfo: Document exact search algorithm for glyphs.
1662 2001-12-15 Werner LEMBERG <wl@gnu.org>
1664 * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
1665 the left side of $(MANPAGES) rule to make it always non-empty.
1667 2001-12-14 Werner LEMBERG <wl@gnu.org>
1669 * src/roff/troff/input.cc (default_black): Define default color
1670 `black' if not yet defined.
1672 2001-12-13 Werner LEMBERG <wl@gnu.org>
1674 Implement new string-valued register `.fn' to return the current
1675 real (internal) font name.
1677 * env.cc (environment::get_font_name_string): New function.
1678 (init_env_requests): Add `.fn' register.
1679 * env.h (environment): Updated.
1680 * node.cc (font_info): Make `get_font_name' a friend.
1681 (get_font_name): New function.
1684 * man/groff_diff.man, man/groff.man, NEWS: Updated.
1686 2001-12-12 Ralph Corderoy <ralph@inputplus.demon.co.uk>
1688 * src/preproc/eqn/main.cc (inline_equation): Fix typos.
1690 2001-12-12 Werner LEMBERG <wl@gnu.org>
1692 * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
1694 2001-12-10 Gaius Mulley <gaius@glam.ac.uk>
1696 * man/groff_diff.man: Adding documentation for \O.
1698 2001-12-10 Werner LEMBERG <wl@gnu.org>
1700 * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
1701 (scanArguments): Use PROG_PREFIX for the name of the troff binary.
1703 2001-12-09 Werner LEMBERG <wl@gnu.org>
1705 * man/roff.man: Revised.
1706 * src/roff/groff/groff.man: Replace man page references with a
1707 pointer to roff.man.
1709 2001-12-09 Bernd Warken <bwarken@mayn.de>
1711 * man/roff.man: Completely rewritten.
1713 2001-12-06 Ralph Corderoy <ralph@inputplus.demon.co.uk>
1715 * src/preproc/eqn/main.cc (inline_equation): Improve error message.
1717 2001-12-05 Werner LEMBERG <wl@gnu.org>
1719 * src/roff/troff/input.cc (get_delim_file_name): Removed since no
1721 * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
1722 order of initializers.
1725 2001-12-05 Gaius Mulley <gaius@glam.ac.uk>
1727 * doc/groff.texinfo: Fix documentation of \O.
1729 * src/devices/grohtml/html-text.cc (html_text::do_indent,
1730 html_text::do_table, html_text::do_emittext, html_text::do_para):
1731 Use `const' for first argument.
1732 (html_text::do_table): Use cast.
1733 * src/devices/grohtml/html-text.h: Updated.
1734 * src/devices/grohtml/output.cc (simple_output::put_string): Add
1735 method for `const string &s'.
1736 * src/devices/grohtml/html.h: Updated.
1737 * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
1738 (ANCHOR_TEMPLATE): Modified.
1739 (manufacture_headings): New global variable to handle `-h' option.
1740 (is_subsection): Removed.
1741 (char_buffer::add_string): Add `const' to first argument.
1742 Protect against invalid string argument.
1743 Add method for `const string &s'.
1744 (text_glob): Completely redesigned.
1745 (page): Use `const' for strings and remove string length variable.
1746 (page::add_html): Removed.
1747 (page::add_end_encode): New member function.
1748 (to_unicode): Moved upwards.
1749 (title_desc, header_desc): Updated.
1750 (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
1752 (html_printer::is_bold, html_printer::make_bold): New member
1754 (html_printer::end_of_line): Updated.
1755 (generate_img_src, html_printer::do_auto_image,
1756 html_printer::do_title, html_printer::write_header,
1757 html_printer::determine_header_level, html_printer::do_heading,
1758 html_printer::do_linelength, html_printer::do_pageoffset,
1759 html_printer::do_indentation, html_printer::do_tempindent,
1760 html_printer::do_indentedparagraph, html_printer::do_break,
1761 html_printer::flush_sbuf, get_html_translation,
1762 html_printer::begin_page, html_printer::special): Rewritten to get
1763 rid of static string length limit.
1764 (html_printer::troff_tag): Added `.no-auto-rule'.
1765 (html_printer::flush_globs): Small fix.
1766 (html_printer::determine_space): Don't compute `space_width'.
1767 (html_printer::translate_to_html): Renamed to ...
1768 (html_printer::emit_html): This (with updates).
1769 (html_printer::write_header): Implement `-h' option.
1770 (html_printer::draw): Remove commented-out code. Handle `F'
1772 (html_printer::add_char_to_sbuf): Removed.
1773 (html_printer::add_to_sbuf): Rewritten.
1774 (html_printer::sbuf_continuation): Fixed.
1775 (html_printer::seen_backwards_escape, reverse,
1776 html_printer::remove_last_char_from_sbuf): Removed.
1777 (char_translate_to_html, str_translate_to_html): Removed.
1778 (html_printer::overstrike): New function member.
1779 (html_printer::set_char): Use it.
1780 (html_printer::do_body): New function member.
1781 (html_printer::~html_printer): Use it.
1782 (main): Handle `-h' option.
1784 * src/devices/grohtml/grohtml.man: Document -h switch.
1786 * src/preproc/html/pre-html.cc: Include searchpath.h
1787 Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
1788 (get_resolution): New function.
1789 (checkImageDir): Use `0777' permissions in mkdir()
1790 (write_start_image): Rewritten to use `\O[5...]'.
1791 (createImage, generateImages): Updated.
1792 (main): Handle `F' and `h' options.
1793 Use `get_resolution'.
1795 * src/roff/troff/input.cc (begin, end, image): Removed.
1796 (do_suppress): Take parameter.
1797 Handle modified syntax of `\O'.
1798 (token::next): Updated.
1799 (init_markup_requests): Removed.
1802 * src/roff/troff/div.h: Add declaration for begin_page().
1804 * tmac/color-html.tmac: Removed. Contents moved to...
1805 * tmac/html.tmac: Here. Set background color.
1806 * tmac/color.tmac: Removed. Contents moved to...
1807 * tmac/ps.tmac: Here.
1808 * tmac/www.tmac: Remove the title command when generating images
1810 (NO_AUTO_RULE): New macro.
1811 (HTML_DO_IMAGE): Use revised `\O' escapes.
1812 * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
1814 2001-12-02 Werner LEMBERG <wl@gnu.org>
1816 * tmac/groff_mdoc.man: Fix typo.
1818 2001-12-01 Colin Watson <cjwatson@debian.org>
1820 * man/roff.man: Fix typo.
1822 2001-11-29 Werner LEMBERG <wl@gnu.org>
1824 * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
1827 * src/roff/troff/input.cc (read_draw_node): Emit error message if
1828 more than one argument to \D'f ...'.
1830 * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
1832 2001-11-28 Werner LEMBERG <wl@gnu.org>
1834 * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
1837 * tmac/groff_man.man: Minor cosmetic fix.
1839 2001-11-27 Werner LEMBERG <wl@gnu.org>
1841 * src/roff/groff/groff.man, tmac/groff_tmac.man,
1842 tmac/groff_www.man: s/mwww/www/.
1844 2001-11-26 Werner LEMBERG <wl@gnu.org>
1846 * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
1847 * configure: Regenerated.
1848 * win32-diffs: Updated.
1850 * tmac/groff_mwww.tmac: Renamed to ...
1851 * tmac/groff_www.tmac: This.
1852 * tmac/mwww.tmac: Removed.
1853 * NEWS, tmac/Makefile.sub: Updated.
1855 2001-11-21 Werner LEMBERG <wl@gnu.org>
1857 * doc/groff.texinfo: Improve documentation of the `\v' escape.
1858 Fix explanation of `\D' and `rt'.
1860 2001-11-20 Werner LEMBERG <wl@gnu.org>
1862 * tmac/an-old.tmac (an-header): Set header length equal to page
1864 * doc/groff.texinfo: Improve documentation of `ne' request. Other
1868 2001-11-19 Werner LEMBERG <wl@gnu.org>
1870 * NEWS, man/Makefile.sub: Updated.
1872 2001-11-19 Bernd Warken <bwarken@mayn.de>
1874 * man/ditroff.man: New file.
1876 2001-11-17 Werner LEMBERG <wl@gnu.org>
1878 * man/groff_differences.man: Renamed to ...
1879 * man/groff_diff.man: This. Updated.
1880 * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
1882 * src/preproc/html/pushbackbuffer.cc: Renamed to ...
1883 * src/preproc/html/pushback.cc: This. Updated.
1884 * src/preproc/html/pushbackbuffer.h: Renamed to ...
1885 * src/preproc/html/pushback.h: This.
1886 * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
1889 * src/libs/libgroff/htmlindicate.cc: Renamed to ...
1890 * src/libs/libgroff/htmlhint.cc: This.
1891 * src/libs/libgroff/Makefile.sub: Updated.
1893 * tmac/an-old.tmac (an-end): Fix page length.
1895 2001-11-16 Werner LEMBERG <wl@gnu.org>
1897 * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
1898 * man/Makefile.sub: Include groff_differences.man.
1899 * VERSION: Set to 1.18.
1900 * REVISION: Set to 0.
1902 2001-11-16 Bernd Warken <bwarken@mayn.de>
1904 * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
1905 the second dot (or ending macro name) to end a macro.
1906 * doc/groff.texinfo: Doc fix.
1908 2001-11-16 Ruslan Ermilov <ru@FreeBSD.org>
1910 * tmac/doc-common (doc-header): Handle very long document titles
1913 2001-11-16 Werner LEMBERG <wl@gnu.org>
1915 * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
1917 2001-11-15 Werner LEMBERG <wl@gnu.org>
1919 * src/roff/troff/troff.man: Revised and split into troff.man and...
1920 * man/groff_differences.man: New file.
1923 2001-11-13 Werner LEMBERG <wl@gnu.org>
1925 * tmac/an-old.tmac (TS, TE): New macros for table support.
1927 2001-11-12 Werner LEMBERG <wl@gnu.org>
1929 * src/include/lib.h: Provide a fix for emx to not include
1932 2001-10-27 Werner LEMBERG <wl@gnu.org>
1934 * src/roff/troff/input.cc (substring_macro): Fix computation of
1937 2001-10-20 Werner LEMBERG <wl@gnu.org>
1939 Undo change from 2001-08-28.
1941 * src/roff/troff/input.cc (have_input): New global variable.
1942 (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
1943 in compatibility mode.
1944 (process_input_stack): Use it.
1946 2001-10-19 Ruslan Ermilov <ru@FreeBSD.org>
1948 * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
1949 being handled as end-of-sentence characters,
1951 2001-10-10 Gaius Mulley <gaius@glam.ac.uk>
1953 * src/roff/troff/input.cc (file_iterator): New members
1954 `suppress_newline_flag' and `seen_escape'.
1955 (file_iterator::next_file): Updated.
1956 (file_iterator::fill): Use it.
1957 (string_iterator): New member `suppress_newline_flag'.
1958 (string_iterator::fill): Set it.
1959 (get_color_element): Use MAX_COLOR_VAL.
1960 * src/roff/troff/env.cc (environment): Remove `need_eol'.
1961 (no_fill): Don't set `env->ignore_next_eol'.
1962 (environment::newline): Handle `eol' tag properly.
1964 (environment::add_html_tag): Set `env->ignore_next_eol'.
1966 * src/roff/troff/env.h (environment): Updated.
1968 * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
1970 (html_printer::outstanding_eol): New member function.
1971 (html_printer::do_title): Use new functions.
1972 (html_printer::troff_tag): Test `id_eol_ce'.
1974 2001-10-10 Werner LEMBERG <wl@gnu.org>
1976 * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
1977 files work with -C also.
1979 2001-10-05 Werner LEMBERG <wl@gnu.org>
1981 * doc/pic.ms: Minor fix.
1982 * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
1983 as a valid command line switch.
1984 * src/devices/grohtml/post-html.cc (main): Ditto.
1986 * src/devices/grohtml/grohtml.man: Updated.
1987 * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
1989 2001-10-04 Werner LEMBERG <wl@gnu.org>
1991 Implementing color support in troff, pic, grops, and grohtml. These
1992 changes are based on a major patch provided by Gaius Mulley
1995 New request: `defcolor', supporting rgb, cmy, cmyk, and gray
1996 definitions with both hex values and fractions.
1998 New escapes: \m and \M for drawing and background color,
1999 respectively. This corresponds to the troff output commands `m'
2002 groff and troff accept command line switch `-c' to disable color
2003 output (which is automatically disabled in compatibility mode).
2005 New scaling indicator `f' for fractions (1f = 65536u).
2007 New conditional operator `m' to test for defined colors with `if'
2010 New keywords `color' (or `colour', `colored', `coloured'), `outline'
2011 (or `outlined'), and `shaded' added to pic.
2013 * src/include/color.h: New file.
2014 * src/include/driver.h: Include it.
2015 * src/include/printer.h: Include color.h.
2016 (environment): New members `col' and `fill'.
2017 (printer): Remove `adjust_arc_center' member function.
2018 * src/include/Makefile.sub: Updated.
2020 * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
2022 Handle `m' and `DF' troff commands.
2023 * src/libs/libgroff/color.cc: New file.
2024 * src/libs/libgroff/Makefile.sub: Updated.
2026 * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
2028 (createImage): Fix computation of `y2'.
2030 (buffer::write_file_html): Remove calls to `stop'.
2032 * src/preproc/pic/common.h (common_output): New abstract function
2033 members `set_color', `reset_color', `get_last_filled', and
2034 `get_outline_color'.
2035 * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
2036 (object_spec): Add members `shaded' and `outlined'.
2037 * src/preproc/pic/output.h (output): `command' is now abstract.
2038 New function members `set_color', `reset_color', `get_last_filled',
2039 and `get_outline_color'.
2040 * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
2041 `outline[d]', and `shaded'.
2042 * src/preproc/pic/object.cc (output::command): Removed.
2043 (output::set_location): Moved to output.h.
2044 (graphic_object): Add protected members `outline_color' and
2046 Add member functions `set_outline_color', `get_outline_color', and
2048 (closed_object): Add member function `set_fill_color'.
2049 Add member `color_fill'.
2050 (graphic_object::print_text): Use `out->set_color' and
2052 (box_object::print, ellipse_object::print, circle_object::print,
2053 line_object::print, spline_object::print, arc_object::print): Ditto.
2054 (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
2055 * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
2056 `SHADED', making them `%left'.
2057 Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
2058 * src/preproc/pic/tex.cc (tex_output): New dummy function members
2059 `set_color', `reset_color', `get_last_filled', and
2060 `get_outline_color'.
2061 * src/preproc/pic/troff.cc (simple_output): New abstract function
2062 members `set_color', `reset_color', and `get_last_filled'.
2063 (simple_output::polygon, simple_output::circle,
2064 simple_output::ellipse): Use `get_last_filled'.
2065 (troff_output): New members `last_filled' and `last_outlined'.
2066 New function members `set_color', `reset_color', `get_last_filled',
2067 and `get_outline_color'.
2068 (troff_output::finish_picture): Use `reset_color'.
2069 (troff_output::set_fill): Test `last_filled'.
2070 * src/preproc/pic/pic.man: Updated.
2072 * src/roff/groff/groff.cc (main): Implement `-c' option.
2073 (synopsis, help): Updated.
2074 src/roff/groff/groff.man: Updated.
2076 * src/roff/troff/troff.h: Include color.h.
2077 (warning_type): Add WARN_COLOR.
2078 * src/roff/troff/env.h (environment): New members
2079 `{cur,prev}_{glyph,fill}_color'.
2080 New member functions `get_{prev_,}{glyph,fill}_color'.
2081 * src/roff/troff/env.cc: Initialize and implement them.
2082 * src/roff/troff/input.cc: New global variable `disable_color_flag'.
2083 Replace `NULL' with `0' everywhere for consistency.
2084 (lookup_color, default_black, do_glyph_color, do_fill_color,
2085 get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
2086 define_color): New functions.
2087 (token::next): Implement \M and \m escapes.
2088 (do_if_request): Implement `m' operator.
2090 (main): Implement `-c' option.
2091 (init_markup_requests): Add `defcolor' request.
2092 (warning_table): Add `color' warning.
2093 * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
2095 * src/roff/troff/node.cc (troff_output_file): New members
2096 `current_{page,glyph}color'. New member functions `put_hex',
2097 `glyph_color', and `fill_color'.
2098 (glyph_color_node::*, fill_color_node::*): Implement it.
2099 * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
2100 (parse_term): Add support for `f'.
2101 * src/roff/troff/troff.man: Updated.
2103 * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
2105 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
2106 * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
2108 * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
2109 (tag_definition): Use `void *' for arg1.
2110 (html_text): New member functions `do_color' and `done_color'.
2111 Use `void *' for second parameter of `push_para' member function.
2112 New `push_para' member function with a single parameter.
2113 Use `char *' for parameter of `issue_table_begin' member funtion.
2114 New `issue_color_begin' member function.
2115 * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
2117 (html_text::issue_color_begin): New function.
2118 (html_text::issue_table_begin): Use `char *' for parameter.
2119 (html_text::start_tag, html_text::shutdown,
2120 html_text::check_emit_text): Updated.
2121 (html_text::push_para): Use `void *' for second parameter.
2122 Add same function with only one parameter.
2123 (html_text::do_*): Updated.
2124 (html_text::do_color, html_text::done_color): New functions.
2125 * src/devices/grohtml/post-html.cc (style): New member `col'.
2126 Mew member `style' with 6 parameters.
2127 (style::style, style::operator==): Updated.
2128 (html_printer::do_font): Use it.
2129 (html_printer::draw): Add dummy entry for `F'.
2130 (html_printer::set_char): Updated.
2131 * src/devices/grohtml/grohtml.man: Updated.
2133 * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
2134 trailing zeroes removed.
2135 (ps_printer): New members `sbuf_color', `fill_color', and
2137 Removed member `fill'.
2138 New member function `set_color'.
2139 (ps_printer::ps_printer, ps_printer::set_char): Updated.
2140 (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
2141 ps_printer::fill_path, ps_printer::draw): Use `set_color'.
2143 * tmac/color-html.tmac, tmac/color.tmac: New files.
2144 * tmac/troffrc: Include them.
2145 * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
2146 * tmac/Makefile.sub: Updated.
2148 * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
2149 man/groff.man: Updated.
2150 * font/devps/prologue.ps: Define FC and CO functions.
2152 2001-10-04 Gaius Mulley <gaius@glam.ac.uk>
2154 Fix incorrect cropping of images and incorrect handling of special
2155 characters. Fix handling of file names in \O.
2157 * src/include/geometry.h: New file.
2158 * src/libs/libgroff/geometry.cc: New file.
2159 * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
2161 * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
2163 (do_suppress): Updated.
2164 * src/roff/troff/node.cc: Include geometry.h.
2165 (troff_output_file::flush_tbuf): Fixed parameters to
2166 `check_output_limits'.
2167 (troff_output_file::check_charinfo): Ditto.
2168 (troff_output_file::determine_line_limits): Add support for `Da'
2171 * src/devices/grohtml/post-html.cc (str_translate_to_html):
2172 Add new parameter `is_special' to decode special characters from
2174 (html_printer::do_title, html_printer::do_heading,
2175 html_printer::do_indentedparagraph,
2176 html_printer::translate_to_html, html_printer::special): Updated.
2178 2001-10-03 Werner LEMBERG <wl@gnu.org>
2180 * Makefile.sub (DISTCLEANFILES): Add stamp-h.
2181 Fix entry for config.h.
2182 * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
2183 * tmac/troffrc: Translate nonbreakable space character to `\~'.
2184 * src/preproc/eqn/eqn.man: Document -d command line option.
2186 2001-09-27 Werner LEMBERG <wl@gnu.org>
2188 * man/groff.man: Use
2196 instead of the old code (`.ad .hy' after the table) to suppress
2197 incorrect hyphenation for grohtml output.
2199 2001-09-22 Werner LEMBERG <wl@gnu.org>
2201 * man/groff_font.man, man/groff_out.man: Minor fixes.
2203 2001-09-20 Werner LEMBERG <wl@gnu.org>
2205 * PROBLEMS: Updated, reordered. Improved EPS section (thanks to
2206 Arnold Robbins <arnold@skeeve.com>).
2208 2001-09-09 Werner LEMBERG <wl@gnu.org>
2210 * configure: Regenerated with autoconf 2.52.
2212 * doc/groff.texinfo: Complete revision of indices.
2214 2001-09-07 Werner LEMBERG <wl@gnu.org>
2216 * doc/Makefile (clean): Updated to delete all indices.
2218 2001-09-05 Werner LEMBERG <wl@gnu.org>
2220 * src/roff/troff/troff.man: Remove superfluous line.
2222 * tmac/s.tmac: Enable all warnings only if no -W or -w option is
2223 given on the command line (or rather, if only the default warnings
2226 2001-09-03 Werner LEMBERG <wl@gnu.org>
2228 * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
2229 use .ne for TTY devices.
2231 2001-08-31 Werner LEMBERG <wl@gnu.org>
2233 * src/roff/troff/token.h, src/roff/troff/input.cc:
2234 s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
2236 2001-08-28 Werner LEMBERG <wl@gnu.org>
2238 * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
2239 * src/roff/troff/input.cc (token::next): Return
2240 TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
2242 (token::description): Updated.
2243 (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
2244 (token::add_to_node_list, token::process): Ignore
2245 TOKEN_TRANSPARENT_ESCAPE.
2247 2001-08-27 Werner LEMBERG <wl@gnu.org>
2249 * tmac/an-old.tmac: Fix `S' string.
2251 2001-08-26 Werner LEMBERG <wl@gnu.org>
2253 * src/roff/troff/troff.man: Don't use .ne for TTY devices.
2255 2001-08-25 Werner LEMBERG <wl@gnu.org>
2257 * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
2259 Many other minor fixes.
2261 * configure.ac: Add message at end to inform how to compile
2263 * configure: Regenerated.
2265 2001-08-24 Werner LEMBERG <wl@gnu.org>
2267 * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
2268 Updated to latest version of libc.
2270 2001-08-23 Werner LEMBERG <wl@gnu.org>
2272 * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
2273 Autoconf 2.50 and newer can handle this.
2274 * configure: Regenerated.
2276 2001-08-21 Werner LEMBERG <wl@gnu.org>
2278 * doc/pic.ms: Fix typo.
2279 * src/preproc/tbl/tbl.man: Document case of global options.
2281 2001-08-21 Gaius Mulley <gaius@glam.ac.uk>
2283 * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
2284 handling of `CR' font.
2286 2001-08-20 Werner LEMBERG <wl@gnu.org>
2288 Use a config.h file.
2290 * src/include/lib.h: Include config.h.
2291 * All C files: Ditto (if necessary).
2292 * All C++ source and header files: Include lib.h first (if
2295 * src/include/config.hin: New file (autogenerated by autoheader).
2296 * stamp-h.in: New file.
2297 * configure.ac: Updated.
2298 * aclocal.m4: Add third parameters to AC_DEFINE macros.
2299 (GROFF_ARRAY_DELETE): Simplified.
2300 * Makefile.sub (DISTCLEANFILES): Updated.
2301 Added targets for remaking config.status, config.hin, config.h,
2302 stamp-h.in, and stamp-h.
2303 * configure: Regenerated.
2305 2001-08-19 Werner LEMBERG <wl@gnu.org>
2309 2001-08-18 Sebastian Krahmer <krahmer@suse.de>
2311 * src/preproc/pic/pic.y (format_number): Use do_sprintf().
2312 (do_sprintf): Use snprintf().
2314 2001-08-18 Werner LEMBERG <wl@gnu.org>
2316 * src/libs/snprintf/*: Added an snprintf module written by Mark
2318 * src/libs/libgroff/Makefile.sub: Updated.
2319 * configure.ac: Add test for snprintf().
2320 * Makefile.in: Updated.
2321 * configure: Regenerated.
2323 * src/preproc/html/pre-html.cc (make_message): Reactivate code which
2326 2001-08-14 Ruslan Ermilov <ru@FreeBSD.org>
2328 * tmac/doc.tmac (Ex): New implementation.
2329 * tmac/doc-common, tmac/groff_tmac.man: Updated.
2331 2001-08-13 Ruslan Ermilov <ru@FreeBSD.org>
2333 * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
2335 * tmac/groff_tmac.man: Updated.
2337 2001-08-13 Werner LEMBERG <wl@gnu.org>
2339 * src/preproc/tbl/tbl.man: Minor documentation update.
2341 2001-08-13 John David Anglin <dave@hiauly1.hia.nrc.ca>
2343 * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
2344 * configure.ac: Add declaration test for gettimeofday().
2345 * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
2346 * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
2347 * configure: Regenerated.
2349 2001-08-11 Werner LEMBERG <wl@gnu.org>
2351 * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
2352 * configure.ac: Add declaration test for strcasecmp().
2353 * Makefile.in: Updated.
2354 * configure: Regenerated.
2355 * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
2356 this is necessary because groff's mkstemp.cc is C++.
2357 Add declaration conditionally for strcasecmp().
2359 2001-08-10 Werner LEMBERG <wl@gnu.org>
2361 Integrated pic2graph, contributed by Eric S. Raymond.
2363 * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
2365 * Makefile.in, NEWS: Updated.
2367 * src/preproc/tbl/tbl.man: Revised.
2369 2001-08-09 Eric S. Raymond <esr@thyrsus.com>
2371 * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
2373 2001-08-09 Werner LEMBERG <wl@gnu.org>
2375 * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
2378 2001-08-08 Paul Eggert <eggert@twinsun.com>
2380 * Makefile.sub (configure): Depend on configure.ac, not
2382 * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
2384 2001-08-07 Werner LEMBERG <wl@gnu.org>
2386 * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
2389 2001-08-06 Werner LEMBERG <wl@gnu.org>
2391 * src/roff/troff/troff.man: Improve documentation of -E option.
2393 2001-07-28 Ralph Corderoy <ralph@inputplus.demon.co.uk>
2395 * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
2398 2001-07-27 Werner LEMBERG <wl@gnu.org>
2400 * src/preproc/refer/refer.cc: Undo last change.
2401 * src/devices/grohtml/post-html.cc: Ditto.
2403 2001-07-26 Werner LEMBERG <wl@gnu.org>
2405 * src/preproc/refer/refer.cc: Include `lib.h'.
2406 * src/devices/grohtml/post-html.cc: Ditto.
2408 2001-07-25 Gaius Mulley <gaius@glam.ac.uk>
2410 * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
2411 * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
2412 * Makefile.in: Comment updated.
2413 * configure: Regenerated.
2415 2001-07-25 Werner LEMBERG <wl@gnu.org>
2417 * src/preproc/pic/pic.cc: Removed.
2418 * src/preproc/pic/pic_tab.h: Removed.
2419 * src/preproc/refer/label.cc: Removed.
2421 * doc/Makefile (.ms.html): Don't use a file name extension in
2422 argument to grohtml's -I option.
2423 * Makefile.in (dist): Remove CVS directories.
2424 Call `distfiles' target.
2426 * src/devices/grohtml/grohtml.man: Add information about valid
2427 versions of pnmtopng.
2428 * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
2429 name instead of number.
2431 2001-07-24 Werner LEMBERG <wl@gnu.org>
2433 * doc/groff.texinfo: Minor fixes.
2435 2001-07-21 Gaius Mulley <gaius@glam.ac.uk>
2437 * doc/Makefile (.ms.html): Put image files into a subdirectory.
2440 2001-07-20 Werner LEMBERG <wl@gnu.org>
2442 * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
2443 * src/libs/libgroff/mkstemp.cc: New file.
2444 * src/libs/libgroff/mksdir.cc: New file.
2445 * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
2446 (xtmpfile) [!HAVE_MKSTEMP]: Removed.
2447 * src/libs/libgroff/Makefile.sub: Updated.
2448 * src/include/lib.h: Add mksdir() prototype.
2449 * src/include/posix.h: Define S_IXUSR if not yet defined.
2451 * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
2452 (createAllPages): Use mksdir() instead of current code.
2453 * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
2454 (main): [!HAVE_MKSTEMP]: Removed.
2456 * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
2457 (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
2459 * configure.ac: Add tests for stdint.h, sys/time.h, and
2461 Call new GROFF_xxx macros.
2462 * configure: Regenerated.
2463 * Makefile.in: Comments updated.
2465 2001-07-20 Gaius Mulley <gaius@glam.ac.uk>
2467 * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
2468 instead of current code.
2469 * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
2470 * src/roff/groff/groff.cc (possible_command::insert_args): New
2472 (main): Use it for predriver handling instead of insert_arg().
2474 2001-07-19 Werner LEMBERG <wl@gnu.org>
2476 * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
2479 * src/include/posix.h: Define S_IWUSR if not yet defined.
2481 2001-07-18 Werner LEMBERG <wl@gnu.org>
2485 2001-07-18 Ruslan Ermilov <ru@FreeBSD.org>
2487 * tmac/groff_mdoc.man: Document new -width and -column syntax.
2488 Some other minor fixes.
2489 * tmac/an-old.tmac: Add `AT' and `UC' macros.
2491 2001-07-17 Gaius Mulley <gaius@glam.ac.uk>
2493 Replace call to `troff' with `groff -Z' to make it aware of
2496 * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
2497 (troff_command, command_prefix): Removed.
2498 (alterDeviceTo): Use groff.
2499 (addZ): New function.
2500 (char_buffer::do_html): Use it.
2501 (scanArguments): Use TROFF_COMMAND.
2502 (findPrefix): Removed.
2504 * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
2506 2001-07-17 Eric S. Raymond <esr@snark.thyrsus.com>
2508 * doc/pic.ms: Documentation fixes.
2510 2001-07-17 Werner LEMBERG <wl@gnu.org>
2512 Replace atexit() with global destructor.
2514 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
2515 (xtmpfile_list_init): New global structure to deallocate
2516 xtmpfile_list on exit. Its destructor inherits most code from
2518 (remove_tmp_files): Deleted.
2519 (add_tmp_file): Simplified.
2521 2001-07-16 Werner LEMBERG <wl@gnu.org>
2523 Replace strdup() with strsave().
2525 * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
2526 (set_papersize): Use strsave() and a_delete.
2527 (main): Use strsave().
2528 * src/preproc/html/pre-html.cc (make_message, createAllPages,
2529 removeAllPages): Use strsave() and a_delete.
2531 * configure.ac: Remove test for strdup.
2532 * Makefile.in: Comment updated.
2533 * configure: Regenerated.
2535 2001-07-15 Werner LEMBERG <wl@gnu.org>
2537 * win32-diffs: Updated.
2539 2001-07-14 Werner LEMBERG <wl@gnu.org>
2541 * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
2542 removing the old one.
2543 * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
2545 2001-07-14 Ralph Corderoy <ralph@inputplus.demon.co.uk>
2547 * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
2549 2001-07-12 Ruslan Ermilov <ru@FreeBSD.org>
2551 Merge -xwidth into -width. Add -xwidth functionality to -column
2554 * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
2556 (doc-do-Bl-args): Merge -xwidth code with -width. Test whether
2557 string immediately following a leading dot starts with a valid mdoc
2559 Add similar code to the -column branch.
2560 (doc-Bl-usage): Updated.
2561 * groff_mdoc.man: s/-xwidth/-width/.
2563 2001-07-12 Gaius Mulley <gaius@glam.ac.uk>
2565 * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
2566 running into centered or non-formatted text.
2568 2001-07-11 Werner LEMBERG <wl@gnu.org>
2570 Introduce short and long prefixes to have the selection at run-time
2571 whether there is a 8+3 limit for names of temporary files.
2573 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
2574 (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
2575 (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
2577 (temp_init): New global structure to initialize above three
2579 (xtmptemplate): Use two parameters for long and short prefix.
2580 Simplify code use above three variables.
2581 (xtmpfile): Use long and short prefixes as parameters.
2582 * src/include/lib.h: Updated.
2584 * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
2586 ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
2587 (createAllPages, makeTempFiles): Updated.
2589 2001-07-09 Werner LEMBERG <wl@gnu.org>
2591 * REVISION: Increased to 3.
2593 Version 1.17.2 released
2594 =======================
2596 2001-07-07 Werner LEMBERG <wl@gnu.org>
2598 * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
2601 2001-07-06 Ruslan Ermilov <ru@FreeBSD.org>
2603 * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
2605 * tmac/groff_mdoc.man: Fix synopsis.
2607 2001-07-05 Ruslan Ermilov <ru@FreeBSD.org>
2609 * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
2610 Restore `doc-Pa-font'.
2612 2001-07-04 Werner LEMBERG <wl@gnu.org>
2614 * src/utils/indxbib/dirnamemax.c: Moved to ...
2615 * src/libs/libgroff/maxfilename.cc: Here.
2616 s/dir_name_max/file_name_max/.
2618 * src/include/lib.h: Add file_name_max.
2619 * src/utils/indxbib/indxbib.cc: Updated.
2620 * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
2623 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
2625 (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
2627 * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
2628 REGION_TEMPLATE): New macros.
2629 (createAllPages, makeTempFiles): Use them.
2630 Include `nonposix.h'.
2631 (html_system): New function.
2632 (createAllPages, createImage): Use it.
2635 * tmac/www.tmac: Fix typos.
2637 2001-07-03 Werner LEMBERG <wl@gnu.org>
2639 * tmac/www.tmac: Disable hyphenation in normal text only if output
2641 (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
2642 * tmac/groff_mwww.man, NEWS: Updated.
2644 2001-07-03 Gaius Mulley <gaius@glam.ac.uk>
2646 * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
2649 2001-07-02 Ruslan Ermilov <ru@FreeBSD.org>
2651 * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
2652 doc-display-ps-stack): Implement font and font size stack for
2655 2001-07-02 Werner LEMBERG <wl@gnu.org>
2657 * REVISION: Increased to 2.
2658 * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
2660 * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
2661 beginning of a line.
2662 * src/groff/grog/grog.sh: Ditto.
2664 2001-06-29 Peter Marquardt <wwwutz@molgen.mpg.de>
2666 * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
2669 2001-06-27 Werner LEMBERG <wl@gnu.org>
2671 Fix problems with preprocessor string for `man' program.
2673 * *.man: Don't use `s' in preprocessor string -- it doesn't exist.
2674 Updated/added copyright.
2675 Moved Emacs's local variable to identify nroff mode to the end of
2676 the file; add local variable if missing.
2678 2001-06-26 Andras Salamon <andras@cs.wits.ac.za>
2680 * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
2681 AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
2682 * configure: Regenerated.
2684 2001-06-25 Andras Salamon <andras@cs.wits.ac.za>
2686 * aclocal.m4 (GROFF_PAGE): Fix page detection code.
2687 * configure: Regenerated.
2689 2001-06-24 Werner LEMBERG <wl@gnu.org>
2691 * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
2693 * doc/pic.ms: Fix typos.
2695 Version 1.17.1 released
2696 =======================
2698 2001-06-21 Golubev I. N. <gin@mo.msk.ru>
2700 * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
2701 * configure: Updated.
2703 2001-06-20 Gaius Mulley <gaius@glam.ac.uk>
2705 * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
2707 * src/roff/troff/dic.cc (blank_line): Add html tag.
2709 2001-06-19 Gaius Mulley <gaius@glam.ac.uk>
2711 * src/roff/troff/input.cc (do_suppress): Fix typo.
2713 2001-06-18 Gaius Mulley <gaius@glam.ac.uk>
2715 Added two new options (-D and -I) to specify image names and a
2716 subdirectory to place the images in.
2718 Change syntax from \\Ox to \\O[x].
2720 * src/devices/grohtml/post-html.cc (main): Add options.
2722 * src/preproc/html/pre-html.cc: Include `stdarg.h'.
2723 Use `NULL' instead of `0' for null string pointers.
2724 (MAX_RETRIES): New macro.
2725 (lengthOfintToStr, intToStr, make_message): New functions.
2726 (makeFileName): Make function static.
2727 Implement -D and -I options.
2728 (checkImageDir): New function.
2729 (write_end_image, write_start_image): Use new syntax of \O.
2730 (createAllPages, removeAllPages): Implement -D and -I options. Use
2732 (createImage): Use make_message().
2733 (addps4html): Add guard for malloc().
2734 (usage, scanArguments): Updated.
2735 (makeTempFiles): Use mkstemp().
2736 (removeTempFiles): Use unlink().
2737 (findPrefix): Add guard for malloc().
2739 * src/roff/troff/input.cc (get_delim_file_name): New function to
2741 (do_suppress): Updated to parse new syntax.
2742 * src/devices/grohtml/grohtml.man: Updated.
2743 * tmac/www.tmac: Updated to new syntax.
2747 2001-06-15 Werner LEMBERG <wl@gnu.org>
2749 * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
2751 * src/devices/grohtml/grohtml.man: Minor improvements.
2753 2001-06-14 Werner LEMBERG <wl@gnu.org>
2755 * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
2757 2001-06-11 Werner LEMBERG <wl@gnu.org>
2759 * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
2760 line to specify preprocessor options -- mandb 2.3.1 only recognizes
2762 * src/preproc/grn/grn.man: Add proper '\" string.
2764 2001-06-11 OKAZAKI Tetsurou <okazaki@be.to>
2766 * test-groff: Don't use PATH but GROFF_BIN_PATH.
2768 2001-06-08 Werner LEMBERG <wl@gnu.org>
2770 Updated to autoconf 2.50.
2772 * configure.in: Renamed to...
2773 * configure.ac: This.
2774 * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
2775 (GROFF_OS390): Updated.
2776 * configure: Regenerated.
2778 2001-05-18 Werner LEMBERG <wl@gnu.org>
2780 * src/roff/troff/env.c, src/roff/troff/env.h,
2781 src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
2784 2001-05-17 Jeffrey Friedl <jfriedl@yahoo-inc.com>
2786 * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
2788 2001-05-16 Werner LEMBERG <wl@gnu.org>
2790 * src/roff/troff/input.cc (read_size): Emit warning if value becomes
2791 less than or equal zero; set it to 1 then.
2792 * src/roff/troff/node.h (node::node): Initialize `last'.
2794 2001-05-08 Werner LEMBERG <wl@gnu.org>
2796 * tmac/an-old.tmac: Make predefined strings work in compatibility
2798 Add troff version guard.
2799 * tmac/doc.tmac: Simplify version guard.
2801 2001-05-07 Werner LEMBERG <wl@gnu.org>
2803 The .ns and .rs requests are now honoured not only in the top-level
2804 but in all diversions (similar to UNIX troff).
2806 This change is based on a patch from Tadziu Hoffmann
2807 <hoffmann@usm.uni-muenchen.de>.
2809 * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
2810 (top_level_diversion): Remove `no_space_mode' member.
2811 * src/roff/troff/div.cc (diversion::diversion,
2812 top_level_diversion::top_level_diversion): Updated.
2813 (macro_diversion::output): Reset `no_space_mode'.
2814 (no_space, restore_spacing): Use `curdiv' unconditionally.
2815 (space_request, blank_line): Check `curdiv->no_space_mode'.
2816 (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
2817 `curdiv' unconditionally.
2818 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
2821 2001-05-06 Werner LEMBERG <wl@gnu.org>
2823 Added two new requests `de1' and `am1' which are similar to `de' and
2824 `am' with the difference that compatibility mode is saved on entry,
2825 switched off during macro execution, and restored on exit.
2827 * src/roff/troff/input.h: Added two new special characters
2828 (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
2829 * src/roff/troff/input.cc (input_iterator): Added two member
2830 functions `save_compatible_flag' and `get_compatible_flag'.
2831 (input_stack): Ditto.
2832 (string_iterator): Ditto. Also add private member
2833 `saved_compatible_flag'.
2834 (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
2835 (calling_mode): New enumeration.
2836 (do_define_macro): Use it. Insert COMPATIBLE_SAVE and
2837 COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
2838 (define_macro, define_indirect_macro, append_macro, ignore): Use
2840 (define_nocomp_macro, append_nocomp_macro): New functions.
2841 (init_input_requests): Updated.
2842 (do_request): Rename local variable `saved_compatible_flag' to
2843 `old_compatible_flag'.
2844 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
2846 * tmac/an-old.tmac: Use `de1' instead of `de' request for all
2847 public and trap-invoked macros. As a consequence, the man macros
2848 work in compatibility mode also.
2850 2001-05-06 Solar Designer <solar@openwall.com>
2852 * Makefile.in: Use $(mandir).
2854 2001-05-06 Alexios Zavras <zvr@pobox.com>
2856 * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
2858 2001-05-05 Werner LEMBERG <wl@gnu.org>
2860 Added `.ns' number register: Returns 1 in no-space mode (if in
2861 top-level diversion), 0 otherwise.
2863 * src/roff/troff/div.cc (no_space_mode_reg): New class.
2864 (init_div_requests): Updated.
2865 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
2868 2001-05-04 Werner LEMBERG <wl@gnu.org>
2870 * src/roff/nroff/nroff.man: Improved documentation (especially
2873 2001-05-02 Werner LEMBERG <wl@gnu.org>
2875 Added `brp' request: This is \p as a request.
2877 * src/roff/troff/env.cc (environment::do_break): Add parameter
2879 (do_break_request): New function (was `break_request').
2880 (break_request): Calls `do_break_request'.
2881 (break_spread_request): New; calls `do_break_request'.
2882 (init_env_requests): Updated.
2883 * src/roff/troff/env.h: Updated.
2884 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
2886 * REVISION: Increased to 1.
2887 * win32-diffs: Updated.
2889 2001-05-01 Werner LEMBERG <wl@gnu.org>
2891 * tmac/an-old.tmac: Fix minor compatibility mode issue.
2892 * tmac/troffrc-end: Make it really work in compatibility mode.
2894 2001-04-27 Werner LEMBERG <wl@gnu.org>
2896 * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
2899 2001-04-22 Werner LEMBERG <wl@gnu.org>
2901 * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
2902 latest versions from glibc CVS archive.
2904 * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
2905 <c.zeelenberg@hccnet.nl>.
2907 2001-04-21 Werner LEMBERG <wl@gnu.org>
2909 * configure.in: Move check for mkstemp() to...
2910 * aclocal.m4 (GROFF_MKSTEMP): This new function.
2911 * configure: Regenerated.
2913 * src/include/groff-getopt.h: Don't use variable names in
2916 * src/devices/grohtml/html-chars.h: Removed. It isn't used.
2917 * src/devices/grohtml/Makefile.sub,
2918 src/devices/grohtml/post-html.cc: Updated.
2920 2001-04-21 Albert Chin-A-Young <china@thewrittenword.com>
2922 * configure.in: Add special check for mkstemp().
2923 * src/libs/libgroff/tmpfile.cc: Use it.
2924 * src/utils/indxbib/indxbib.cc: Ditto.
2925 * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
2926 * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
2929 2001-04-20 Bruce Lilly <blilly@erols.com>
2931 `Version_string' as C++ object was not visible to linker from C
2933 Add `const' to `Version_string'.
2935 * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
2936 (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
2937 (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
2938 (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
2939 (scanArguments), src/preproc/refer/refer.cc (main),
2940 src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
2941 (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
2942 (main), src/devices/grohtml/post-html.cc (main),
2943 src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
2944 (main), src/utils/hpftodit/hpftodit.cc (main),
2945 src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
2946 (main), src/utils/lkbib/lkbib.cc (main),
2947 src/utils/addftinfo/addftinfo.cc (main): Implement it.
2949 * src/roff/groff/pipeline.c: Add _UWIN.
2950 * src/include/nonposix.h: Ditto.
2952 2001-04-20 Werner LEMBERG <wl@gnu.org>
2954 * src/include/lib.h: Use HAVE_STRERROR.
2955 * src/roff/groff/pipeline.c: Ditto.
2956 * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
2957 * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
2958 * src/utils/pfbtops/pfbtops.c: Add copyright notice.
2959 * win32-diffs: Updated.
2960 * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
2962 2001-04-19 Werner LEMBERG <wl@gnu.org>
2964 * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
2965 instead of hardwired `"troff"'.
2966 (char_buffer::read_file): Remove unused variables.
2967 (char_buffer::write_file_troff): Ditto.
2968 (char_buffer::write_file_html): Ditto.
2969 (generateImages): Ditto.
2971 * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
2973 * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
2975 * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
2976 * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
2977 index_search_item::search1): Ditto.
2978 * src/roff/troff/node.h (width_list): Reorder members.
2979 * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
2980 (lookup_warning): Ditto.
2981 (prepend_string): Commented out.
2982 * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
2983 * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
2984 * src/preproc/tbl/main.cc (process_format): Ditto.
2985 * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
2987 * src/preproc/pic/pic.cc: Updated.
2988 * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
2989 * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
2990 * src/preproc/refer/command.cc (execute_command): Ditto.
2991 * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
2992 * src/preproc/refer/token.cc (lookup_token): Ditto.
2993 * src/preproc/soelim/soelim.cc: Ditto.
2994 * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
2995 (isHexDigit): Commented out.
2996 (pushBackBuffer::isString): Remove unused variable.
2997 * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
2999 * src/devices/grops/psrm.cc (resource_manager::lookup_font,
3000 resource_manager::read_resource_arg, read_one_of, parse_extensions):
3002 * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
3003 * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
3004 lookup_paper_size): Ditto.
3005 * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
3006 (text_glob, element_list): Reorder members.
3007 * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
3009 * src/devices/grohtml/html-text.h (html_text::emit_space): Change
3010 return value to `void'.
3011 * src/devices/grohtml/output.cc (word_list::word_list): Fix order
3013 * src/devices/grohtml/html.h (simple_output::check_newline,
3014 simple_output::space_or_newline, simple_output::enable_newlines):
3016 * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
3018 * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
3019 * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
3020 output_ligatures, output_charset, read_map): Ditto.
3021 * src/utils/lookbib/lookbib.cc (main): Ditto.
3022 * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
3023 (do_file): Fix typo (`=' -> `==').
3024 * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
3025 * src/utils/addftinfo/addftinfo.cc (main): Ditto.
3027 2001-04-18 Ruslan Ermilov <ru@FreeBSD.org>
3029 * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
3030 Fix usage of GROFF_BIN_PATH.
3031 * src/roff/nroff/nroff.man: Updated.
3033 2001-04-18 Werner LEMBERG <wl@gnu.org>
3035 * NEWS: Fixing typos.
3038 Version 1.17 released
3039 =====================
3041 2001-04-17 Werner LEMBERG <wl@gnu.org>
3043 * tmac/Makefile.sub (install-data): mdoc.local-s is in current
3044 directory, not in $(srcdir).
3046 2001-04-16 Werner LEMBERG <wl@gnu.org>
3048 * doc/groff.texinfo: More info on conditionals.
3050 2001-04-15 Werner LEMBERG <wl@gnu.org>
3052 * doc/groff.texinfo: Added some info about groff internals.
3054 * src/roff/troff/node.cc (make_glyph_node): Emit warning message
3055 about missing special character only if the name is non-null.
3057 2001-04-14 Werner LEMBERG <wl@gnu.org>
3059 Removing the grohtml-old device driver which is now obsolete.
3061 * src/devices/grohtml-old/*: Removed.
3062 * font/devhtml-old/*: Removed.
3063 * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
3065 * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
3066 * test-groff (PATH): Updated.
3067 * tmac/Makefile.sub (NORMALFILES): Updated.
3068 * tmac/an-old.tmac: Remove special code for html-old device.
3069 Replace `html-or-html-old' register with `an-html'.
3070 * tmac/eqnrc: Updated.
3071 * tmac/html-old.tmac: Removed.
3072 * tmac/troffrc, tmac/troffrc-end: Updated.
3073 * tmac/www.tmac: Remove special code for html-old device.
3074 Replace `html-or-html-old' register with `www-html'.
3076 * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
3077 src/libs/libgroff/htmlindicate.cc (graphic_end),
3078 include/htmlindicate.h, src/preproc/grn/*.cc,
3079 src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
3080 single argument for consistency with rest of source code.
3082 * aclocal.m4, tmac/an-old.tmac: Fix copyright.
3084 2001-04-13 Ruslan Ermilov <ru@FreeBSD.org>
3086 * src/roff/troff/troff.man: Fixing typos.
3088 2001-04-13 Werner LEMBERG <wl@gnu.org>
3090 * doc/pic.ms: Fixing many font switches.
3091 * doc/groff.texinfo: Fixes, additions.
3092 * MORE.STUFF: Updated.
3094 2001-04-12 Gaius Mulley <gaius@glam.ac.uk>
3096 * src/devices/grohtml/grohtml.man: Updated manual page regarding
3098 * src/preproc/html/pre-html.cc (createImage): Fixed right hand
3100 (removeTempFiles): New function to tidy up temporary files.
3101 * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
3102 Many fixes to do with the new inline suppress node and image regions
3104 * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
3105 (generate_img_src): New function.
3106 (html_printer::do_auto_image): Utilizes it.
3107 (do_heading, do_title): Include inline images within their contents.
3108 (html_printer::begin_page): Tidied up comments that are issued to
3109 the html output file.
3110 (html_printer::do_fill): Fixed so that `.nf' works with fonts other
3112 (text_glob::is_br): New method used by do_heading.
3113 * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
3114 equivalent diversion.
3115 * src/include/html-strings.h: Altered image tags to reflect the
3117 * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
3119 * src/preproc/eqn/main.cc: Will suppress generation of image tags if
3120 it is already inside a pic image. Only emit tags if the argument
3121 `-Tps:html' is present.
3122 * src/preproc/tbl/main.cc: Changes to reflect additional
3123 `html_end_suppress' parameter.
3124 * src/roff/troff/env.cc: Only emit eol tag if a node has been
3125 emitted since the last eol tag was written.
3126 * src/roff/troff/env.h: New boolean `emitted_node'.
3127 * src/roff/troff/input.cc (do_suppress): Handles extra suppress
3128 nodes \O3, \O4, \O5. No longer use `output_low_mark_miny'.
3129 * src/roff/troff/node.cc (check_charinfo): New method.
3130 (troff_output_file::determine_line_limits): Alterations to limit
3132 * tmac/www.tmac: Changes to reflect new suppress nodes.
3134 2001-04-12 Bruno Haible <haible@clisp.cons.org>
3136 * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
3137 Escape the html_glyph in the buffer.
3138 (str_translate_to_html): Output the unescaped escaped_char.
3139 * src/devices/grohtml/html-text.cc (issue_table_begin): Set
3140 `frame=void', not `frame=none'. Add `border=0'.
3142 2001-04-12 Werner LEMBERG <wl@gnu.org>
3144 * PROBLEMS: Add some words on how to avoid wrapper macros.
3146 2001-04-11 Blake McBride <blake@florida-software.com>
3148 * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
3150 2001-04-11 Werner LEMBERG <wl@gnu.org>
3152 * font/devlbp/Makefile.sub (CLEANADD): Set it.
3153 * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
3154 * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
3155 * Makefile.sub (DISTCLEANFILES): Here.
3157 * libs/libgroff/new.cc: Include `nonposix.h'.
3158 * win32-diffs: Updated.
3160 2001-04-10 Ruslan Ermilov <ru@FreeBSD.org>
3162 Added skeleton macro for defunct macros.
3164 Updated documentation.
3166 When inside displays, an empty input line warning should be
3167 suppressed. If another macro call is put inside a display,
3168 all subsequent empty lines found in that display caused a
3169 warning to be emitted.
3171 * tmac/doc.tmac (doc-defunct-macro): New macro.
3172 (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
3173 (doc-restore-global-vars): Fixed typo.
3174 (doc-empty-line): Check the `doc-display-depth' register to
3175 determine whether we are inside display or not.
3177 * tmac/doc-common: Removed `Or' and `Sf' registers.
3178 Moved obsolete `Ds' macro to doc.tmac.
3180 * tmac/groff_mdoc.man: Bump document date.
3181 Document `.Vt' under ``Variable Types''.
3182 Removed documentation for obsolete `.Or' macro.
3184 2001-04-10 Werner LEMBERG <wl@gnu.org>
3187 * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
3189 2001-04-10 Bruno Haible <haible@clisp.cons.org>
3191 * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
3192 (usage): Add stream argument. Don't exit.
3193 * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
3194 Write --version output to stdout, not stderr.
3195 (usage): Add stream argument. Don't exit.
3196 * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
3197 (usage): Add stream argument. Don't exit.
3198 * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
3200 (usage): Add stream argument. Don't exit.
3201 (main): Write --help output to stdout, not stderr.
3202 * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
3203 (usage): Add stream argument. Don't exit.
3204 * src/devices/grops/ps.cc (main): Accept --help and --version.
3205 (usage): Add stream argument. Don't exit.
3206 * src/devices/grotty/tty.cc (main): Accept --help and --version.
3207 (usage): Add stream argument. Don't exit.
3208 * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
3209 (main): Accept --help and --version.
3210 * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
3211 (main): Accept --help and --version.
3212 * src/preproc/html/pre-html.cc (usage): Add stream argument.
3213 (scanArguments): Accept --help and --version.
3214 * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
3215 (main): Accept --help and --version.
3216 * src/preproc/refer/refer.cc (main): Accept --help and --version.
3217 (usage): Add stream argument. Don't exit.
3218 * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
3220 (main): Accept --help and --version.
3221 * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
3222 (main): Accept --help and --version.
3223 * src/roff/groff/groff.cc (main): Accept --help and --version.
3224 (synopsis): Add stream argument.
3225 (help): Write --help output to stdout, not stderr.
3226 (usage): Add stream argument. Don't exit.
3227 * src/roff/grog/grog.pl: Accept --help and --version.
3229 * src/roff/grog/grog.sh: Accept --help and --version.
3230 * src/roff/nroff/nroff.sh: Accept --help and --version.
3231 * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
3232 (usage): Add stream argument. Don't exit.
3233 (main): Accept --help and --version.
3234 * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
3235 (usage): New function with stream argument, doesn't exit.
3236 * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
3237 (usage): New function with stream argument, doesn't exit.
3238 * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
3239 (usage): Add stream argument. Don't exit.
3240 * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
3241 (main): Accept --help and --version.
3242 * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
3244 (main): Accept --help and --version.
3245 * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
3246 (main): Accept --help and --version.
3247 * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
3248 (usage): Add stream argument. Don't exit.
3250 2001-04-10 Ruslan Ermilov <ru@freebsd.org>
3252 Fix indentation in SYNOPSIS.
3254 Updated to include changes of latest BSD mdoc version (basically,
3255 the only change is that `.Fn' and `.Fc' put a final semicolon after
3256 a function declaration in the SYNOPSIS section).
3258 * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
3259 (doc-in-synopsis-section): New variable. Updated all related
3261 (doc-indent-synopsis-active): New register.
3262 (Nd, Fn, Fo): Use it.
3263 (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
3264 `.Cd' with long argument line produces indented wrapped lines.
3265 Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
3266 undesirable line break to be output.
3267 (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
3269 (Fn, Fc): Add final `;' to output.
3270 (doc-save-global-vars, doc-restore-global-vars): Updated.
3271 * tmac/doc-common: Remove `Ex' register.
3273 * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
3276 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
3278 * tmac/doc.tmac (Cd): Simplify code.
3279 * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
3281 2001-04-06 Werner LEMBERG <wl@gnu.org>
3283 Implement continuous underlining for nroff mode. To do that, a new
3284 request in the ditroff language has been added: `x u N' (N is 0
3287 \X and \Y are now transparent to end-of-sentence recognition.
3289 * src/include/printer.h (printer): Add `type' parameter to `special'
3291 * src/libs/libdriver/printer.cc (printer::special): Updated.
3292 * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
3294 * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
3295 specials of type `p'.
3296 * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
3297 * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
3298 * src/devices/grops/ps.cc (ps_printer::special): Ditto.
3299 * src/devices/grotty/tty.cc: Add new enum CU_MODE.
3300 (glyph::order): New method.
3301 (tty_printer::add_char): Use it.
3302 (tty_printer::special): New method.
3303 (tty_printer::end_page): Implement it.
3305 * src/roff/troff/node.h (special_node): Add `no_init_string' member.
3306 * src/roff/troff/node.cc (special_node::special_node): Add parameter
3307 to set `no_init_string'.
3308 (special_node::tprint_start): Use it.
3309 (special_node::same, special_node::copy): Updated.
3310 (special_node::ends_sentence): New method.
3311 (troff_output_file::start_special): Add parameter to include
3312 inititialization of special conditionally.
3314 * src/roff/troff/env.h (environment): New member `underline_spaces'.
3315 * src/roff/troff/env.cc (do_underline_special): New function.
3316 (environment::set_font): Use it.
3317 (do_underline): Use it. This was `underline()'.
3318 (underline): Call `do_underline()'.
3319 (continuous_underline): New function which calls `do_underline()'.
3320 (environment::newline): Use `do_underline_special()'.
3321 (init_env_requests): Updated.
3323 * NEWS, man/troff_out.man: Updated.
3325 2001-04-06 Bruno Haible <haible@clisp.cons.org>
3327 * font/devutf8/R.proto: Fix code of 'shc'.
3329 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
3331 Many fixes. Diag lists can now be nested also; additionally,
3332 `-compact' and `-offset' are supported.
3334 * tmac/doc.tmac (doc-have-indent): Replaced with ...
3335 (doc-list-have-indent-stackXXX): A new register stack.
3336 (doc-have-diag-list): Removed.
3337 (Bl): Use `doc-list-have-indent-stackXXX'.
3339 (doc-diag-list): Use `doc-compact-list-stackXXX'.
3340 (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
3341 (doc-set-vertical-and-indent): Ditto.
3342 (doc-next-list-depth): Removed.
3343 (doc-increment-list-stack): Updated.
3344 (doc-decrement-list-stack): Use `doc-list-depth' instead of
3345 `doc-next-list-depth'.
3346 (doc-end-list, doc-end-column-list): Don't use
3347 `doc-increment-list-stack'.
3348 (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
3349 (doc-save-global-vars, doc-restore-global-vars): Updated.
3350 * tmac/doc-common: Updated.
3351 * tmac/groff_mdoc.man: Updated.
3354 2001-04-02 Werner LEMBERG <wl@gnu.org>
3356 * src/devices/grotty/grotty.man: Fix grammatical error.
3358 2001-03-30 Ruslan Ermilov <ru@freebsd.org>
3360 Remove .Ld from mdoc package; replace it with special handling of
3363 * tmac/doc-common: Remove `Ld' register.
3364 Uncomment `doc-volume-ds-*' strings.
3365 Remove `doc-operating-system-default'.
3367 * tmac/doc-syms (Ld): Removed.
3368 * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
3372 * tmac/groff_mdoc.man: Many fixes and updates.
3374 2001-03-29 Werner LEMBERG <wl@gnu.org>
3376 * tmac/troffrc-end: Protect data with `.do'. Reported by T. Kurt
3377 Bond <tkb@tkb.mpl.com>.
3378 * tmac/www.tmac: Save compatibility mode.
3380 2001-03-28 Ruslan Ermilov <ru@freebsd.org>
3382 * tmac/groff_mdoc.man: Many fixes.
3384 2001-03-28 Werner LEMBERG <wl@gnu.org>
3386 * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
3389 2001-03-27 Werner LEMBERG <wl@gnu.org>
3391 * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
3392 diversion. This fixes overlong tags.
3394 2001-03-26 Werner LEMBERG <wl@gnu.org>
3396 * doc/groff.texinfo: Fixed and improved documentation of fonts.
3397 * tmac/doc-syms: Fix error messages.
3398 * tmac/an-old.tmac: Remove incorrect double backslashes.
3400 2001-03-24 Ruslan Ermilov <ru@freebsd.org>
3402 * tmac/Makefile.sub: Strip mdoc.local also
3403 * tmac/strip.sed: Fixed.
3405 2001-03-24 Werner LEMBERG <wl@gnu.org>
3407 * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
3408 selecting the font size.
3409 * tmac/groff_mdoc.man, NEWS: Document it.
3411 2001-03-23 Werner LEMBERG <wl@gnu.org>
3413 * src/roff/troff/div.cc (save_vertical_space): Add default argument
3415 * src/roff/troff/env.cc (family_change): Make `.fam' accept no
3416 argument to restore previous font family.
3417 * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
3419 * doc/groff.texinfo: More fixes and additions (mainly for font
3420 manipulating commands).
3422 * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
3423 * tmac/groff_mdoc.man: This. The quick reference has been removed.
3424 * tmac/Makefile.sub, NEWS: Updated.
3426 2001-03-23 Werner LEMBERG <wl@gnu.org>
3428 Replaced mdoc implementation. The new version is `state of the
3429 art', using almost all new features of groff 1.17 -- it won't run
3430 with older versions.
3432 * tmac/doc.tmac: Completely rewritten.
3433 * tmac/doc-common: Ditto.
3434 * tmac/doc-nroff: Ditto.
3435 * tmac/doc-ditroff: Ditto.
3436 * tmac/doc-syms: Ditto.
3437 * tmac/mdoc.local: New file.
3438 * tmac/groff_mdoc.samples.man: Replaced with ...
3439 * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
3440 * tmac/strip.sed: Updated.
3441 * tmac/Makefile.sub: Updated.
3444 * tmac/groff_man.man: Add `man.local' to the FILES section.
3446 2001-03-22 Werner LEMBERG <wl@gnu.org>
3448 * doc/groff.texinfo: Added many @noindent.
3449 Replaced @end_Example -> @endExample.
3450 Added info whether registers are r/o.
3451 Many other additions and fixes.
3453 2001-03-21 Werner LEMBERG <wl@gnu.org>
3455 * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
3456 in makeinfo of texinfo 4.0) to be used in @Def* macros.
3457 Improved @Def* macros: Now the exact syntax of request, register,
3458 and escapes is shown.
3459 Added macros for parentheses and brackets to be used in @Def*.
3460 Many fixes and improvements of the documentation.
3462 2001-03-20 Werner LEMBERG <wl@gnu.org>
3464 * doc/groff.texinfo: Added new index: `st' (for strings).
3465 Added macros @Defstr(x).
3466 Added macro @Example (adding @group).
3467 Other minor improvements.
3469 2001-03-19 Werner LEMBERG <wl@gnu.org>
3471 * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
3472 `rq' for requests. `fn' is no longer used.
3473 Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
3476 * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
3477 number with name of man page.
3479 2001-03-19 Larry Kollar <kollar@alltel.net>
3481 * doc/groff.texinfo: Complete revision. Added many @Deffn to gain
3484 2001-03-19 Werner LEMBERG <wl@gnu.org>
3486 * man/groff_font.man: Document `prepro', `postpro', and `print'.
3487 * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
3488 * src/devices/grohtml/grohtml.man: Fixing typos.
3490 2001-03-19 Gaius Mulley <gaius@glam.ac.uk>
3492 * tmac/s.tmac (@IP): Pass `.ip' html tag.
3493 * tmac/groff_mwww.man: Remove .LINE macro
3494 * tmac/www.tmac (LINE): Add `.ti'.
3496 * src/devices/grohtml/post-html.cc (html_printer): New member
3498 (html_printer::emit_raw): Use it.
3499 (html_printer::do_linelength): Ditto.
3500 (html_printer::do_pageoffset): Ditto.
3501 (html_printer::do_indentation): Ditto.
3502 (html_printer::do_tempindent): Ditto.
3503 (html_printer::do_break): Ditto.
3504 (html_printer::begin_page): Ditto.
3505 (html_printer::do_indentedparagraph): New function.
3506 (html_printer::troff_tag): Handle `.ip'.
3507 * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
3508 Add `<td width=...>' handling.
3509 (html_text::do_table): Add parameter.
3510 (html_text::do_indent): Updated.
3511 * src/devices/groohtml/html-text.h: Updated.
3513 2001-03-16 Gaius Mulley <gaius@glam.ac.uk>
3515 Introduced simple html tables to implement indentation.
3517 * src/devices/grohtml/html.h (word, word_list): New structures.
3518 (simple_output): Use it.
3519 * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
3520 (html_printer): Improve indentation handling.
3521 (html_printer::emit_raw): Set `in_table' element. Handle
3523 (html_printer::write_header): Move conditional downwards.
3524 Don't allow whitespace in tags.
3525 (html_printer::do_linelength): Handle line length and indentation
3527 (html_printer::do_pageoffset): Handle indentation conditionally.
3528 (html_printer::do_indentation): Ditto.
3529 (html_printer::do_tempindent): New function member.
3530 (html_printer::do_fill): Take care of indentation.
3531 (html_printer::do_flush): Finish table.
3532 (html_printer::do_links): Ditto.
3533 (html_printer::do_break): New function for handling `.br' and `.ti'.
3534 (html_printer::troff_tag): Use it.
3536 (html_printer::flush_globs): Fix.
3537 (html_printer::flush_page): Finish table.
3538 (html_printer::html_printer): Fix error message. Set up
3540 (html_printer::add_to_sbuf): Remove special handling of character
3542 (to_unicode): Remove `stop()'.
3543 (html_printer::write_title): Cleanup.
3544 (html_printer::begin_page): Use `put_string()'. Handle indentation.
3545 (html_printer::~html_printer): Flush text and end the line.
3547 * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
3548 * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
3550 (html_text::start_tag): Disable newlines.
3551 (html_text::table_is_void): New function.
3552 (html_text::issue_table_begin): Ditto.
3553 (html_text::issue_table_end): Ditto.
3554 (html_text::push_para): Better table handling.
3555 (html_text::do_indent): New function.
3556 (html_text::do_table): Ditto.
3557 (html_text::done_table): Ditto.
3558 (html_text::do_tt): Handle PRE_TAG.
3559 (html_text::is_in_table): New function.
3560 (html_text::check_emit_text): Handle tables.
3561 (html_text::do_emittext): Use `nl()'.
3562 (html_text::do_para): Handle table.
3563 (html_text::remove_def): New function.
3564 * src/devices/grohtml/output.cc (word, word_list): Implement
3566 (simple_output::end_line): Flush last word.
3567 (simple_output::simple_comment): Ditto.
3568 (simple_output::begin_comment): Recoded.
3569 (simple_output::end_comment): Ditto.
3570 (simple_output::comment_arg): Removed.
3571 (simple_output::check_newline): Improve test and flush last word.
3572 (simple_output::space_or_newline): Improved.
3573 (simple_output::write_newline): Replaced with...
3574 (simple_output::nl): This.
3575 (simple_output::put_raw_char): Flush last word.
3576 (simple_output::check_space): Removed.
3577 (simple_output::put_translated_string): Ditto.
3578 (simple_output::put_string): Simplified.
3579 (simple_output::put_number): Updated.
3580 (simple_output::put_float): Ditto.
3581 (simple_output::put_symbol): Removed.
3582 (simple_output::enable_newlines): Add `check_newline()'.
3583 (simple_output::flush_last_word): New function.
3585 * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
3586 * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
3588 * tmac/s.tmac (@PP, @IP): Add html conditional code.
3589 * tmac/an-old.tmac (TP): Ditto.
3591 2001-03-09 Ruslan Ermilov <ru@freebsd.org>
3593 * mdate.sh: Make it POSIX compliant.
3595 2001-03-09 Werner LEMBERG <wl@gnu.org>
3597 Added the `return' request to end a macro immediately. It simply
3598 pops iterators from the input stack until a macro iterator is found.
3600 * src/roff/troff/input.cc (input_iterator::is_macro,
3601 macro_iterator::is_macro): New member.
3602 (input_return_boundary): New class to signal an immediate return
3604 (input_stack::add_return_boundary, input_stack::is_return_boundary):
3606 (input_stack::clear): Use it.
3607 (input_stack::pop_macro): New function.
3608 (while_request): Use `is_return_boundary()'.
3609 (return_macro_request): New function.
3610 (init_input_requests): Use it.
3612 * src/roff/troff/TODO: Updated.
3613 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
3615 2001-03-08 Werner LEMBERG <wl@gnu.org>
3617 * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
3620 2001-03-07 Werner LEMBERG <wl@gnu.org>
3622 Make `\B' more rigid.
3624 * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
3626 (get_number_rigidly): New function.
3627 * src/roff/troff/input.cc (do_expr_test): Use it.
3628 * src/roff/troff/token.h: Updated.
3630 * src/roff/troff/request.h: Fix typo (init_html_request ->
3631 init_markup_request).
3633 2001-03-04 Gaius Mulley <gaius@glam.ac.uk>
3635 Fixed grohtml handling of any named glyph for glyph indexes < 0x80.
3636 Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
3637 are now `.begin', `.end', `.image'.
3639 * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
3640 (html_printer::add_to_sbuf): Changing type of `code' parameter.
3641 Use add_char_to_sbuf().
3642 (to_unicode): New function.
3643 (char_translate_to_html): Changing type of `ch' parameter.
3645 (html_printer::~html_printer): Comment out doctype string.
3646 * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
3647 instead of `.html-end'.
3648 (write_start_image): Use `.begin' and `.image' instead of
3649 `.html-begin' and `.html-image'.
3650 * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
3651 (html_begin): Renamed to ...
3653 (html_end): Renamed to ...
3655 (html_image): Renamed to ...
3657 (init_html_requests): Renamed to ...
3658 (init_markup_requests): This.
3659 * tmac/www.tmac: Updated.
3661 2001-02-28 Bram <bram@avontuur.org>
3663 * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
3666 2001-02-26 David Leonard <david.leonard@csee.uq.edu.au>
3668 * doc/meref.me: Fixing some typos.
3670 2001-02-16 Werner LEMBERG <wl@gnu.org>
3672 * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
3673 method. Return `HYPHEN_MIDDLE' if it was `\:'.
3674 * src/roff/troff/node.h: Updated.
3676 2001-02-17 Ruslan Ermilov <ru@FreeBSD.org>
3678 * tmac/groff_tmac.man: Fix typo.
3680 2001-02-16 Werner LEMBERG <wl@gnu.org>
3682 Fixing a bug which prevented proper end-of-sentence recognition
3683 between an `unformatted' box and the following text. As a
3684 consequence, vertical line distances are no longer preserved in
3685 boxes after a call to `.unformat' -- because boxes aren't
3686 line-oriented (contrary to diversions), this doesn't make sense
3689 * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
3691 (vertical_size_node::set_unformat_flag): New method.
3692 * src/roff/troff/node.hh: Updated.
3693 * src/roff/troff/input.cc (word_space_node::reread,
3694 hmotion_node::reread): Reset `unformat' flag after usage.
3695 (unformat_macro): Append only if `set_unformat_flag()' returns
3697 * src/roff/troff/troff.man: Updated.
3699 2001-02-15 Werner LEMBERG <wl@gnu.org>
3701 * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
3702 documentation of `asciify' and `unformat' requests.
3704 2001-02-13 Werner LEMBERG <wl@gnu.org>
3706 Redesigned the `unformat' request. It is no longer connected with
3707 `asciify' but rather uses new `reread()' methods if the `unformat'
3708 flag is set. Additionally, the handling of space characters after
3709 unformatting has been fixed so that they retain their width.
3711 * src/roff/troff/node.h (width_list): New structure to store
3712 original widths of spaces.
3713 (node): Added `unformat' member.
3714 Replaced `num_spaces' variable with `orig_width' list.
3715 * src/roff/troff/node.cc (*node::asciify,
3716 asciify_reverse_node_list): Removed `unformat_only' flag and related
3718 (word_space_node::asciify, word_space_node::word_space_node): Use
3720 (word_space_node::~word_space_node): New destructor.
3721 (word_space_node::copy): Updated to handle `orig_width'.
3722 (hmotion_node::copy, unbreakable_space_node::copy): Updated.
3723 (*node::merge_space): Update `orig_width' list if necessary.
3724 (*node::set_unformat_flag): New methods to set the `unformat' flag.
3725 * src/roff/troff/enc.cc (environment::space_newline): Use
3727 (environment::space): Added method to handle space width and
3728 sentence space width as parameters. Use `width_list'.
3729 (environment::make_tab_node): Updated.
3730 * src/roff/troff/env.h: Updated.
3731 * src/roff/troff/input.cc (word_space_node::reread,
3732 unbreakable_space_node::reread, hmotion_node::reread): New methods
3733 to handle nodes specially if `unformat' flag is set.
3734 (do_asciify_macro): Renamed back to ...
3735 (asciify_macro): This.
3736 (unformat_macro): New implementation to simply set the `unformat'
3739 * MORE.STUFF: Added more info about deroff.
3741 2001-02-08 Werner LEMBERG <wl@gnu.org>
3743 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
3744 space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
3745 and `add_self()' methods to avoid hyphenation. For example, the
3746 hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
3747 soft hyphen after `foo'. Now the hyphen list is correctly
3748 `foo<ignore><ignore>bar'.
3750 2001-02-05 Yoshiteru Kageyama <yt-kage@cb3.so-net.ne.jp>
3752 * tmac/groff_tmac.man: Fix `BIR' macro.
3754 2001-02-04 Werner LEMBERG <wl@gnu.org>
3756 A new escape sequence `\:', inserting a zero-width break point.
3758 * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
3759 * src/roff/troff/input.cc (get_copy, token::next, asciify):
3761 * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
3763 (space_node): Add `was_escape_colon' member. Add `is_escape_colon()'
3764 and `asciify()' methods.
3765 * src/roff/troff/node.cc (space_node::space_node): Updated.
3766 (space_node::asciify): Handle `was_escape_colon'.
3767 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
3769 Handle `\~' similar to other comparable requests.
3771 * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
3773 (token::next): Move creation of an unbreakable_space_node to...
3774 (token::add_to_node_list): Here.
3776 Fix a bug which sometimes prevented hyphenation of words connected
3777 with `\~' or `\ ' (and other escape sequences handled as
3778 TOKEN_NODE). This also fixes a hyphenation problem with boxes
3779 (after a call to the `unformat' request).
3781 * src/roff/troff/env.h (environment::possibly_break_line,
3782 environment::hyphenate_line): Introducing `start_here' parameter.
3783 * src/roff/troff/env.cc (environment::space_newline,
3784 environment::space): Use it.
3785 (environment::possibly_break_line, environment::hyphenate_line):
3787 * src/roff/troff/input.cc (process_input_stack): Use it.
3788 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
3789 space_char_hmotion_node, overstrike_node): Add
3790 `get_hyphenation_type()' method.
3791 * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
3792 if `unformat_only' is active.
3794 2001-01-30 Werner LEMBERG <wl@gnu.org>
3796 Implemented new read-only number register `.linetabs' which
3797 returns 1 if in line-tabs mode, 0 otherwise.
3799 * src/roff/troff/env.h (environment): Add get_line_tabs() member.
3800 * src/roff/troff/env.cc (get_line_tabs): New function.
3801 (init_env_requests): Use it.
3802 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
3804 * VERSION, REVISION: Changing to 1.17.0.
3806 2001-01-28 Werner LEMBERG <wl@gnu.org>
3808 Fixed a bug which prevented hyphenation of words which are finished
3811 * src/roff/troff/token.h (token): Add enum type
3812 `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
3813 * src/roff/troff/input.cc (token::next, token::description,
3814 get_line_arg, token::add_to_node_list, token::process): Use it.
3816 2001-01-27 Werner LEMBERG <wl@gnu.org>
3818 * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
3819 * src/roff/troff/div.cc (do_divert): Use it.
3821 * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
3823 2001-01-25 Werner LEMBERG <wl@gnu.org>
3825 Adding the `linetabs' request. If set, tab distances are not
3826 computed relative to the input line but relative to the output line.
3828 * src/roff/troff/env.h (environment): New member `line_tabs'.
3829 * src/roff/troff/env.cc (line_tabs_request): Implement request.
3830 (environment::environment, environment::copy): Updated.
3831 (environment::distance_to_next_tab): Use `line_tabs'.
3832 (init_env_requests): Register request.
3833 * src/roff/troff/troff.man, man/groff.man, NEWS: Document it. Other
3836 2001-01-24 Werner LEMBERG <wl@gnu.org>
3838 Introducing a new read-only register `.int' which is set to a
3839 positive value if the last output line is interrupted (i.e., if it
3842 * src/roff/troff/env.cc (init_env_requests): Add it.
3843 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
3845 2001-01-23 Gaius Mulley <gaius@glam.ac.uk>
3847 * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
3848 * src/preproc/html/pre-html.cc (findPrefix): New function which
3849 generates the troff executable name via the system prefix.
3850 * src/preproc/eqn/main.cc: Modified warning message.
3852 2001-01-23 Werner LEMBERG <wl@gnu.org>
3854 troff's `box' and `boxa' requests didn't preserve temporary
3857 * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
3858 `saved_target_text_length' members.
3859 * src/roff/troff/div.cc (do_divert): Use them.
3861 Tabs (but not yet leaders and fields) are now handled correctly by
3864 * node.h (hmotion_node): Add field `was_tab'.
3865 * env.cc (environment::make_tab_node): Set it.
3866 * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
3868 Added new request `unformat' which will, contrary to `asciify',
3869 preserve font information after unformatting (i.e., only nodes
3870 dealing with horizontal space are converted back to input
3873 * input.cc (asciify_macro): Renamed to ...
3874 (do_asciify_macro): this, having a new parameter `unformat_only'.
3875 (asciify_macro, unformat_macro): New; using do_asciify_macro.
3876 (init_input_requests): Added `unformat'.
3877 * node.cc (*_node::asciify), asciify_reverse_node_list: Added
3878 parameter to control asciification process.
3879 * node.h (*_node::asciify): Ditto.
3880 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
3882 2001-01-20 Werner LEMBERG <wl@gnu.org>
3884 * doc/groff.texinfo: Minor improvement of `.in' documentation.
3886 2001-01-18 Werner LEMBERG <wl@gnu.org>
3888 * tmac/ps.tmac: Remove call of psold.tmac.
3889 * tmac/psold.tmac: Comment updated.
3890 * tmac/psnew.tmac: Removed since no longer needed.
3891 * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
3893 * font/devutf8/R.proto: Adding `shc' glyph.
3894 * font/devutf8/NOTES: Updated.
3896 * test-groff: Updated.
3898 2001-01-15 Gaius Mulley <gaius@glam.ac.uk>
3900 First cut of the new html device driver. Changes to pre-html and
3901 the new grohtml are too numerous to be documented here.
3903 Stuff related to `html' has been renamed to `html-old' and `html2'
3904 stuff has been renamed to `html' (including directories). The new
3905 html device driver is therefore invoked as `-Thtml'.
3907 Added new `\O' escape to suppress output (needed by html driver).
3909 Added functions and code to pass info about input-level commands
3910 (`.in', `.fl', etc.) to html driver.
3912 Three new functions (.html-begin, .html-end, and .html-image) for
3913 better html handling: `html-begin' will execute the remaining line
3914 if at the outermost nesting level, increasing an internal counter.
3915 `html-end' does the same but decreases the internal counter.
3916 `html_image' puts its arguments into a special node (suppress_node)
3917 to define an image region.
3919 The `output' request has been removed.
3921 * tmac/html-tags.tmac: Removed.
3922 * tmac/arkup.tmac: Updated and renamed to ...
3923 * tmac/www.tmac: New file.
3924 * tmac/markup.tmac Updated and renamed to ...
3925 * tmac/mwww.tmac: New file.
3926 * tmac/Makefile.sub: Updated.
3927 * tmac/an-old.tmac: Updated.
3928 * tmac/eqnrc: Updated.
3929 * tmac/groff_man.man
3930 * tmac/groff_markup.man: Updated and renamed to ...
3931 * tmac/groff_mwww.man: New file.
3932 * tmac/groff_tmac.man: Updated.
3933 * tmac/html-old.tmac: Updated and Renamed from html.tmac.
3934 * tmac/html.tmac: Updated and renamed from html2.tmac.
3935 * tmac/pspic.tmac: Updated html support.
3936 * tmac/s.tmac: Added html output support.
3937 * tmac/troffrc, tmac/troffrc-end: Updated.
3939 * Makefile.in, doc/Makefile: Updated.
3940 * doc/groff.texinfo: Added info about new `\O' escape.
3941 * doc/homepage.ms: Use `MAILTO' macro.
3943 * font/devhtml/DESC.proto: Add `C' font.
3944 * font/devhtml/Makefile.sub: Updated.
3945 * font/devhtml/R.proto: Minor fixes.
3946 * font/devhtml-old/Makefile.sub: Updated.
3948 * src/devices/grohtml-old/Makefile.sub: Updated.
3950 * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
3952 * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
3953 graphic_start): Add `inline' parameter. Update.
3954 (html_end_suppress, graphic_end): Update.
3956 * src/include/html-strings.h: New file.
3957 * src/include/htmlindicate.h: Comments updated.
3958 * src/include/printer.h: Updated.
3960 * src/preproc/eqn/main.cc (do_file, main): Updated.
3961 * src/preproc/pic/troff.cc (troff_output::start_picture,
3962 troff_output::finish_picture): Updated.
3963 * src/preproc/tbl/main.cc (process_input_file): Updated.
3965 * src/roff/groff/groff.cc (main): Updated.
3966 Pass device arguments to predrivers also.
3967 Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
3968 * src/roff/troff/env.h (environment): Updated.
3969 New elements `need_eol' and `ignore_next_eol' (for html output).
3970 * src/roff/troff/env.cc (environment::environment): Add initializers
3971 for `need_eol' and `ignore_next_eol'.
3972 (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
3974 (point_size, fill, no_fill, center, right_justify, line_length,
3975 indent, temporary_indent, break_request, handle_tab): Use
3977 (set_tabs): Use `add_html_tag_tabs()'.
3978 (environment::add_html_tag): Updated.
3979 (environment::do_break): Updated.
3980 * src/roff/troff/div.cc (space_request, flush_output): Use
3981 `environment::add_html_tag()'.
3982 * src/roff/troff/input.cc: Updated.
3983 New variable `html_level' to indicate nested `html-begin' requests.
3984 (file_iterator::fill): Use `environment::add_html_tag_eol()'.
3985 (non_interpreted_char_node, token_node, non_interpreted_node): Add
3986 `force_tprint()' method.
3987 (token::next): Handle `\O'.
3988 (do_suppress): Implement it.
3989 (html_begin, html_end, html_image): New functions.
3990 (init_output_requests): Renamed to ...
3991 (init_html_requests): this.
3993 (macro::append_str, macro::append_unsigned, macro::append_int): New
3995 New variable `output_low_mark_miny' to limit minimal value of y.
3996 (reset_output_registers): Use it.
3997 (output_request): Removed.
3998 (get_output_registers): New function.
3999 * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
4000 (*_node): Added `force_tprint()' if necessary.
4001 (special_node): New elements `tf' and `get_tfont()'.
4002 (suppress_node): New class.
4003 * src/roff/troff/node.cc:
4004 New global variables `image_no' and `suppress_start_page'.
4005 (real_output_file): New method `is_on()'.
4006 (troff_output_file): New method `start_special(tfont)'.
4007 (troff_output_file::really_print_line): Use `tprint' conditionally.
4008 (real_output_file::print_line): Updated.
4009 (real_output_file::on): Updated.
4010 (*_node): Added `force_tprint()'.
4011 (special_node::special_node): Initializer updated.
4012 (special_node::same, special_node::copy, special_node::tprint_start):
4014 (get_reg_int, get_reg_str): New functions.
4015 (suppress_node::*): New methods.
4016 New global variables last_position, last_image_filename;
4017 (min): New inline function.
4018 * src/roff/troff/reg.h, src/roff/troff/request.h,
4019 src/roff/troff/troff.h: Updated.
4021 2001-01-13 Werner LEMBERG <wl@gnu.org>
4023 * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
4024 documentation of `asciify' request.
4026 2001-01-12 Werner LEMBERG <wl@gnu.org>
4028 * src/roff/troff/input.cc: Move definition of special characters
4029 like `ESCAPE_TILDE' to ...
4030 * src/roff/troff/input.h: New file.
4031 * src/roff/troff/Makefile.sub (HDRS): Add it.
4033 Extending the .asciify request to `unformat' space characters also.
4035 * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
4036 to count input space characters.
4037 Update constructors to take care of it.
4038 * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
4039 `ESCAPE_SPACE' instead of normal space.
4040 (word_space_node::asciify): New method.
4041 (unbreakable_space_node::asciify): New method.
4042 (word_space_node::merge_space): New method.
4043 * src/roff/troff/env.cc (environment::space_newline,
4044 environment::space): Add code to initialize `num_spaces' (using the
4045 constructor of `word_space_node').
4046 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
4049 2001-01-09 Werner LEMBERG <wl@gnu.org>
4051 * man/groff_char.man: Use table header traps only conditionally.
4053 2001-01-09 Bjarni Ingi Gíslason <bjarniig@hi.is>
4055 * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
4057 2001-01-08 Werner LEMBERG <wl@gnu.org>
4059 Introducing the `box' and `boxa' requests which are similar to
4060 `di' resp. `da' but omitting a partially filled line (which is
4061 restored after ending the diversion).
4063 * src/roff/troff/div.h (diversion): Add elements to save partially
4065 * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
4066 partially filled line.
4067 (divert, divert_append): Updated.
4068 (box, box_append): New functions.
4069 (init_div_requests): Use them.
4070 * src/roff/troff/env.h (environment): do_divert() is now a friend.
4071 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4073 * doc/groff.texinfo: Fix documentation of `lf' request.
4075 2000-12-25 Werner LEMBERG <wl@gnu.org>
4077 * src/roff/troff/troff.man, NEWS: Document `writem' request.
4079 2000-12-21 Werner LEMBERG <wl@gnu.org>
4081 Ignore `ss' request if in compatibility mode.
4083 * src/roff/troff/input.cc: Make `compatible_flag' non-static.
4084 * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
4085 * src/roff/troff/env.cc (space_size): Use it.
4087 * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
4088 `ss' request in nroff mode.
4090 * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
4093 2000-12-15 Ruslan Ermilov <ru@FreeBSD.org>
4095 * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
4097 2000-12-13 Werner LEMBERG <wl@gnu.org>
4099 * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
4100 * src/preproc/eqn/neqn.man: Small fixes and additions.
4102 2000-12-13 Ruslan Ermilov <ru@FreeBSD.org>
4104 * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
4107 * src/preproc/eqn/neqn.man: New file.
4109 * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
4112 * tmac/e.tmac: Add `T&' macro.
4113 Fix `indent cannot be negative' warning.
4114 * tmac/s.tmac: Fix `indent cannot be negative' warning.
4116 2000-12-07 Werner LEMBERG <wl@gnu.org>
4118 * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
4120 2000-12-06 Werner LEMBERG <wl@gnu.org>
4122 * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
4125 * MORE.STUFF: Added info about deroff for djgpp.
4127 * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
4128 documentation of -rcR switch.
4130 2000-12-03 Werner LEMBERG <wl@gnu.org>
4132 * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
4133 if -rcR=1 (which is now the default in nroff mode), a single, very
4134 long page is created instead of multiple pages: All `ne' and `wh'
4135 requests are put into conditionals; a new macro `an-end' is added to
4136 be called with `em'.
4138 Some other minor cleanups.
4140 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
4142 2000-12-02 Werner LEMBERG <wl@gnu.org>
4144 Fixing a bug which prevented hyphenation in words followed
4145 immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
4147 * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
4148 Adding possibly_break_line().
4149 * src/roff/troff/env.h (environment): Make possibly_break_line()
4152 Make `\~' usable in .tr request.
4154 * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
4155 (token): Add stretchable_space().
4156 * src/roff/troff/input.cc (token::next, token::delimiter,
4157 token::description, process_input_stack, do_translate,
4158 add_to_node_list, token::process): Use it.
4159 * src/roff/troff/node.h (node): Add fourth parameter to add_char()
4160 for adjusting the space.
4161 * src/roff/troff/node.cc (node::add_char): Implement it. Add code
4162 for stretchable space.
4163 * src/roff/troff/input.cc (token::add_to_node_list): Use it.
4164 (make_node): Add code for stretchable space.
4165 * src/roff/troff/env.cc (environment::add_char): Use it.
4166 * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
4167 (get_copy, token::next, transparent_translate, asciify): Use it.
4169 * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
4170 doc/groff.texinfo: Updated.
4171 * man/groff.man: Small reorderings.
4173 2000-11-23 Werner LEMBERG <wl@gnu.org>
4176 * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
4178 * src/roff/troff/input.cc (main): Add `config_macro_path' and
4179 `safer_macro_path' to -M option.
4180 * src/roff/troff/troff.man: Fixes.
4182 2000-11-22 Werner LEMBERG <wl@gnu.org>
4184 Use safer path (except for config files) if -U isn't specified. Add
4185 a special macro path (without home and current directory) for config
4186 files. Add home directory to unsafe path for consistency. Don't
4187 include the home directory in the font path.
4189 * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
4191 * src/include/macropath.h: Add `config_macrp_path'.
4192 * src/libs/libgroff/fontfile.cc: Fix font path.
4193 * src/roff/troff/input.cc (process_startup_file): Use
4194 `config_macro_path'.
4195 (main): Select unsafe path if -U is given.
4197 * src/preproc/eqn/main.cc (main): Fixing search path for
4199 * src/preproc/eqn/eqn.man: Updated.
4201 * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
4204 * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
4205 src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
4206 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
4207 src/devices/grotty/grotty.man: Updated.
4209 * Makefile.in: Fix comments.
4211 2000-11-17 Werner LEMBERG <wl@gnu.org>
4213 * tmac/safer.tmac: Empty file added (again) for compatibility
4215 * tmac/Makefile.sub: Updated.
4217 2000-11-16 Werner LEMBERG <wl@gnu.org>
4219 * src/devices/grodvi/dvi.cc (main),
4220 src/devices/grohtml2/post-html.cc (main),
4221 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
4222 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
4223 (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
4224 (main), src/preproc/html2/pre-html.cc (main),
4225 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
4226 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
4227 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
4228 (main), src/utils/hpftodit/hpftodit.cc (main),
4229 src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
4230 (main), src/utils/lookbib/lookbib.cc (main),
4231 src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
4232 (main): Use stdout for -v.
4233 * src/roff/groff/groff.cc (run_commands),
4234 src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
4235 to make direct printing to stdout possible.
4236 * src/roff/groff/pipeline.h: Updated.
4238 * src/utils/afmtodit/afmtodit.pl: Add -v switch.
4239 * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
4240 * src/utils/afmtodit/afmtodit.man: Updated.
4242 * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
4243 (version): New function.
4245 * src/utils/addftinfo/addftinfo.man: Updated.
4247 * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
4248 Fixing copyright dates.
4250 * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
4253 * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
4256 * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
4258 2000-11-15 Werner LEMBERG <wl@gnu.org>
4260 In all programs, make -v return immediately with exit status 0 to
4261 be compliant with the GNU standard.
4263 * src/devices/grodvi/dvi.cc (main),
4264 src/devices/grohtml2/post-html.cc (main),
4265 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
4266 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
4267 (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
4268 (main), src/preproc/html2/pre-html.cc (main),
4269 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
4270 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
4271 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
4272 (main): Implement it.
4275 * src/roff/groff/groff.cc (main): Add copyright notice. Add refer
4276 and postprocessors to the -v option.
4278 * src/roff/grog/grog.pl: Implement -v.
4279 * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
4280 * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
4282 * src/roff/nroff/nroff.sh: Implement -v.
4283 * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
4284 * src/roff/nroff/nroff.man: Updated.
4286 * src/preproc/eqn/main.cc (main): Fix comment typo.
4288 * MORE.STUFF: Added info about djgpp port of grap.
4290 2000-11-14 Werner LEMBERG <wl@gnu.org>
4292 * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
4293 mode (or rather, implemented non-compatibility mode).
4294 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
4296 * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
4297 replacing it -- we don't find gxditview otherwise.
4298 * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
4300 * src/preproc/pic/depend: Removed. Unnecessary.
4302 Implemented dummy keyword `solid' in pic for compatibility with
4305 * lex.cc (lookup_keyword): Added `solid'.
4306 * pic.y: Added SOLID with dummy rule.
4307 * pic.cc, pic_tab.h: Regenerated.
4308 * doc/pic.ms: Updated.
4310 2000-11-13 Werner LEMBERG <wl@gnu.org>
4312 For security reasons, don't use the current directory but the home
4313 directory while searching and scanning troffrc and troffrc-end.
4314 Similarly, replace the current directory with the home directory
4317 * Makefile.in (fontpath, tmacpath): Remove current directory.
4319 * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
4320 two parameters `add_home' and `add_current'.
4321 (search_path::~search_path, search_path::command_line_dir,
4322 search_path::open_file): Remove tests for `dirs' being zero.
4323 * src/include/searchpath.h: Adjust.
4324 * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
4326 * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
4328 * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
4329 * src/roff/troff/input.cc: Use `mac_path', initialized with
4331 (process_startup_file): Set `mac_path' to `safer_macro_path'.
4332 * src/roff/troff/env.cc: Use `mac_path'.
4334 * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
4336 * NEWS, man/roff.man, src/roff/troff/troff.man,
4337 src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
4340 2000-11-12 Werner LEMBERG <wl@gnu.org>
4342 * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
4344 * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
4345 * configure.in: Fix typo in comment.
4346 * configure: Regenerated.
4348 * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
4351 2000-11-08 Werner LEMBERG <wl@gnu.org>
4353 Add system tmac directory (/usr/local/lib/groff/site-tmac).
4355 * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
4356 (uninstall_dirs): Add $(libdir), $(libprogramdir), and
4359 * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
4360 * tmac/Makefile.sub (install_data): Create
4361 $(systemtmacdir) and $(localtmacdir).
4362 (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
4363 * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
4364 NEWS, doc/groff.texinfo: Updated and minor fixes.
4366 * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
4367 * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
4368 $(systemtmacdir) since the wrapper files are platform-dependent.
4370 2000-11-01 Werner LEMBERG <wl@gnu.org>
4372 * doc/groff.texinfo: Fix typo.
4374 2000-10-26 Werner LEMBERG <wl@gnu.org>
4376 Convert macros `tmac.XXX' to `XXX.tmac'. Special cases:
4377 tmac.doc.old -> doc-old.tmac
4378 tmac.an.old -> an-old.tmac
4380 * tmac/tmac.*: Moved to ...
4381 * tmac/*.tmac: this.
4382 * tmac/man.local: Fix comment.
4383 * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
4384 tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated.
4385 Added some `FILES' sections. More use of @...@ directives. Other
4387 * arch/djgpp/README, font/devutf8/NOTES: Updated.
4388 * doc/homepage.ms, doc/groff.texinfo: Updated.
4389 * man/groff.man, man/roff.man: Updated.
4390 * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
4391 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
4392 src/devices/grotty/grotty.man: Updated.
4393 * src/preproc/pic/pic.man: Updated.
4394 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
4395 instead of -mdoc.old.
4396 * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
4397 * src/roff/nroff/nroff.man: Updated.
4400 * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
4402 * tmac/mm.diff: Removed -- it has no use now since the mm package
4405 * tmac/*: Removed trailing spaces.
4407 * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
4408 the tmac subdirectory also).
4410 * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
4411 * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
4412 stuff since it is no longer needed.
4414 * README, PROBLEMS: Updated.
4416 2000-10-25 Werner LEMBERG <wl@gnu.org>
4418 Invert current behaviour: Search first FOOBAR.tmac, then
4421 * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
4422 (open_mac_file, macro_source): Implement it.
4423 * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
4424 doc/groff.texinfo, NEWS: Document it.
4426 * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
4427 Small documentation improvements.
4429 * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
4432 * font/devps/Makefile.sub: Fix rules for dingbats.*map.
4434 2000-10-24 Werner LEMBERG <wl@gnu.org>
4436 Add local tmac directory (groff/site-tmac).
4438 * Makefile.in: Add $(localtmacdir).
4439 (uninstall_dirs): Add $(localtmacdir).
4440 * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
4441 * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
4442 in $(localtmacdir). Create $(localtmacdir).
4443 * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
4444 Updated and minor fixes.
4446 Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
4448 * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
4450 2000-10-23 Werner LEMBERG <wl@gnu.org>
4452 Move hyphen.us to tmac directory.
4454 * src/roff/troff/hyphen.us: Removed.
4455 * src/tmac/hyphen.us: Added.
4456 * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
4458 Change installation structure for data files from .../groff/... to
4459 .../groff/<version><revision>/... to be conform with other GNU
4462 * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
4463 doc/Makefile: Implement it.
4464 * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
4465 * configure: Updated.
4466 * arch/djgpp/README, font/devutf8/NOTES: Use it.
4467 * NEWS: Document it.
4468 * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
4469 @MACRODIR@ instead of hard-coded directories.
4471 2000-10-22 Werner LEMBERG <wl@gnu.org>
4473 Implement $GROFF_BIN_PATH environment variable (which defaults to
4474 $bindir) used for child programs of groff and similar wrappers.
4476 * gendefs.sh: Improve documentation.
4477 * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
4478 src/preproc/eqn/Makefile.sub (neqn),
4479 src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
4480 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
4482 * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
4483 $GROFF_PATH__ (the latter for communication with troff).
4484 * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
4486 * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
4487 doc/groff.texinfo: Document it.
4489 * doc/groff.texinfo: Improve documentation of troff's -a option.
4491 2000-10-17 Gaius Mulley <gaius@glam.ac.uk>
4493 * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
4494 non-intrusive eol marker.
4495 (troff_output_file::determine_line_limits): New function.
4496 (troff_output_file::draw): Use it.
4497 * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
4498 output_pending_lines() instead of output_line().
4499 * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
4500 * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
4501 createImage): Small fixes.
4503 2000-10-14 Werner LEMBERG <wl@gnu.org>
4505 Replace tmac.safer with a real secure solution.
4507 * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
4508 system_request, pipe_output): Disable requests if in safer mode.
4509 * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
4510 * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
4511 * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
4512 doc/groff.texinfo, src/roff/groff/groff.man,
4513 src/roff/troff/troff.man, arch/djgpp/README: Updated.
4515 * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
4516 (resource_manager::output_prolog): Replace setenv() with putenv().
4518 2000-10-09 Werner LEMBERG <wl@gnu.org>
4520 * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
4521 src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
4522 src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
4523 src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
4524 compilation errors with some compilers. It seems that this code
4525 is no longer necessary -- if yes, it is easy to add some #ifdef's
4526 for that particular old-fashioned compiler.
4528 * MORE.STUFF: Added info about Meta-tbl.
4530 * doc/groff.texinfo: Added more info about `.if "..."..."'.
4532 2000-10-07 Werner LEMBERG <wl@gnu.org>
4534 Adding a new escape sequence \B'...': If the string between
4535 the delimiters is a valid numeric expression, return the character
4536 `1', and `0' otherwise. This is an analogon to \A.
4538 * src/roff/troff/input.cc (do_expr_test): Implement it.
4539 (token::next): Use it.
4540 * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
4542 * tmac/tmac.trace: Made independent from escape character.
4544 2000-10-06 Werner LEMBERG <wl@gnu.org>
4546 Adding a new request .dei: define indirect. The first and second
4547 parameter of .dei are taken from string registers instead directly;
4548 this very special request is needed to make tmac.trace independent
4549 from the escape character (which might even be disabled).
4551 * src/roff/troff/input.cc (do_define_macro): Implement it.
4552 (define_macro_indirect): New function.
4553 (init_input_requests): Use it.
4555 Adding two requests .ecs and .ecr: Save and restore the escape
4556 character. These two requests are needed to make tmac.trace
4557 independent from the escape character (which might even be
4560 * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
4562 (init_input_requests): Use it.
4564 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
4566 2000-09-22 Ricardo Soares Guimarães <ricardo@conectiva.com.br>
4568 Adding a new option -P and new environment variable GROPS_PROLOGUE
4569 to grops, selecting a different prologue file (minor modifications
4572 * src/devices/grops/psrm.cc (resource_manager::output_prolog),
4573 src/devices/grops/ps.cc (main): Implement it.
4574 * src/devices/grops/grops.man, NEWS: Document it.
4576 2000-09-22 Werner LEMBERG <wl@gnu.org>
4578 * INSTALL: Add info about selecting paper format.
4580 2000-09-21 Werner LEMBERG <wl@gnu.org>
4582 * src/roff/troff/input.cc (main): Fixing compiler warning.
4583 * src/include/{driver.h, lib.h}: Move inclusion of string.h and
4584 strings.h from the former to the latter.
4585 * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
4586 stuff from the former to the latter.
4588 2000-09-11 Werner LEMBERG <wl@gnu.org>
4590 Implementing two new requests .tm1 and .tmc: The former is similar
4591 to .tm but can output leading spaces; its syntax is similar to
4592 defining a string, i.e., a `"' can be used to mark the beginning of
4593 the string to be written to stderr: `.tm1 " test'. The latter is
4594 similar to .tm1 but doesn't write out a final newline character.
4596 * src/roff/troff/input.cc (terminal1, terminal_continue,
4597 do_terminal): New functions.
4598 (init_input_requests): Use them.
4599 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
4601 2000-09-09 Werner LEMBERG <wl@gnu.org>
4603 * tmac/groff_mdoc.samples.man: Small fixes.
4605 2000-09-08 Werner LEMBERG <wl@gnu.org>
4607 * tmac/groff_mdoc.man: Fixing typo.
4609 2000-09-02 Werner LEMBERG <wl@gnu.org>
4611 Implementing a .nop request which does nothing.
4613 * src/roff/troff/input.cc (nop_request): New function.
4614 (init_input_requests): Use it.
4615 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
4617 2000-09-01 Werner LEMBERG <wl@gnu.org>
4619 * doc/groff.texinfo: Added some comments.
4621 2000-08-30 Werner LEMBERG <wl@gnu.org>
4623 * src/roff/troff/TODO: Updated.
4625 2000-08-25 Werner LEMBERG <wl@gnu.org>
4627 * doc/groff.texinfo: Fix comment how to compile the DVI file.
4629 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
4631 * font/devps/generate/Makefile (SHELL): Define explicitly to
4632 "/bin/sh", for non-Unix platforms.
4633 (extraclean): Use a more portable "" quoting instead of a
4634 backslash (which doesn't work on DOS/Windows).
4636 * font/devlj4/generate/Makefile (extraclean): Ditto.
4638 * font/devdvi/generate/Makefile (extraclean): Ditto.
4640 2000-08-25 Werner LEMBERG <wl@gnu.org>
4642 * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
4643 src/roff/troff/troff.man: Document Eli's latest changes.
4645 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
4647 * src/roff/troff/input.cc (open_mac_file, macro_source): Support
4648 macro file names of the form NAME.tmac as well as tmac.NAME.
4650 2000-08-25 Werner LEMBERG <wl@gnu.org>
4652 * src/include/posix.h: Remove definition of FILENAME_MAX.
4654 * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
4655 `sys_fatal' and `stop' function().
4657 * test-groff: Updated.
4659 2000-08-24 Gaius Mulley <gaius@glam.ac.uk>
4661 Added the new troff command .output <arg> to suppress output (while
4662 still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
4663 registers (for passing the output dimensions to the output device).
4665 * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
4667 * src/roff/troff/node.h, src/roff/troff/node.cc
4668 (troff_output_file::really_print_line,
4669 ascii_output_file::really_print_line,
4670 supress_output_file::really_print_line): Use `width' parameter.
4671 (troff_output_file::really_on, troff_output_file::really_off,
4672 output_file::on, output_file::off, real_output_file::on,
4673 real_output_file::off, real_output_file::really_on,
4674 real_output_file::really_off): New functions.
4675 (real_output_file:public output_file): New variable `output_on'.
4676 (real_output_file::begin_page, real_output_file::copy_file,
4677 real_output_file::transparent_char, real_output_file::print_line):
4679 (real_output_file::print_line): Use check_output_limits.
4680 * src/roff/troff/reg.h, src/roff/troff/request.h,
4681 src/roff/troff/input.cc (assign_registers): New function to remove
4683 (do_ps_file): Use it.
4684 (check_output_limits, reset_output_registers, output_request,
4685 init_output_requests): New functions.
4686 (init_input_requests): Updated.
4688 Added new grohtml2 device and html2 preprocessor (coding
4689 not yet finished) which will eventually replace grohtml.
4691 * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
4693 * src/include/htmlindicate.h, src/include/htmlindicate
4694 (html_begin_suppress, html_end_suppress): New functions.
4695 * src/preproc/tbl/main.cc: Use it.
4696 * src/roff/groff/groff.cc: Add support for html2 device (which will
4697 automatically invoke the html2 preprocessor).
4698 * src/roff/troff/input.cc (is_html2): New variable.
4699 * src/roff/troff/troff.h, src/roff/troff/env.h,
4700 src/roff/troff/env.cc (environment::add_html_tag): New function
4702 (environment::do_break): Use it.
4703 * font/devhtml2/*: New files.
4704 * src/devices/grohtml2: New device.
4705 * src/preproc/html2: New preprocessor.
4706 * tmac/tmac.html-tags, tmac/tmac.html2: New files.
4708 2000-08-23 Werner LEMBERG <wl@gnu.org>
4710 * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
4712 2000-08-22 Werner LEMBERG <wl@gnu.org>
4714 * src/include/lib.h: Provide a fix for IRIX to not include
4717 2000-08-18 Werner LEMBERG <wl@gnu.org>
4719 * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
4720 since some non-GNU sed programs can't handle null regexps.
4721 * configure, src/preproc/eqn/Makefile.sub,
4722 src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
4724 * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
4725 bug (string.h and strings.h are both needed according to latest
4728 * MORE.STUFF: Added info about unroff and troffcvt.
4730 2000-08-08 Werner LEMBERG <wl@gnu.org>
4732 * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
4735 * tmac/tmac.man.old: Remove unused number register.
4737 * tmac.doc: Minor documentation fix.
4739 2000-08-07 Paul Eggert <eggert@twinsun.com>
4741 * src/roff/groff/pipeline.c (is_system_shell):
4742 Fix typo: "monocased_shell" no longer exists.
4744 2000-08-07 Paul Eggert <eggert@twinsun.com>
4746 Remove FILENAME_MAX limits.
4748 * src/roff/groff/pipeline.c (is_system_shell): Do not assume
4749 that the argument length is less than FILENAME_MAX.
4750 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
4751 Use struct hack to allocate and free file name.
4752 (struct xtmpfile_list): fname is now part of the structure,
4753 not a pointer to another string.
4755 2000-08-07 Tom Schmidt <tschmidt@micron.com>
4757 * src/include/posix.h: Add a default value for FILENAME_MAX.
4759 2000-08-06 Paul Eggert <eggert@twinsun.com>
4761 Add support for new BSD-style man pages (with ".Dd" instead of
4762 ".TH"), so that "groff -man" understands both styles, even
4763 when running "groff -man" on a host whose system man page
4764 macros don't support ".Dd".
4766 * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
4767 (stamp-wrap): Source tmac.andoc first when wrapping man macros,
4768 in case the system man macros don't define Dd or TH.
4770 * tmac/tmac.an.old: Renamed from tmac/tmac.an.
4771 * tmac/tmac.an: New one-line file.
4772 * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
4774 2000-08-06 Werner LEMBERG <wl@gnu.org>
4776 * src/roff/troff/troff.man: Fixing typos.
4778 Version 1.16.1 released
4779 =======================
4781 2000-07-31 Werner LEMBERG <wl@gnu.org>
4783 Preparing release 1.16.1.
4785 * REVISION: Revision number set to 1.
4786 * MORE.STUFF: Added info about port to DOS.
4787 * NEWS, win32-diffs: Updated.
4789 * src/include/nonposix.h: Remove first line -- this file is used
4792 * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
4795 2000-07-30 Werner LEMBERG <wl@gnu.org>
4797 * doc/texinfo.tex: Update to latest version.
4799 2000-06-28 Paul Eggert <eggert@twinsun.com>
4801 * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
4802 commands that fail. Don't assume that "export a=b" is valid shell
4803 syntax. This is needed for Solaris 2.5.1.
4805 * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
4806 comment about missing Solaris headers.
4808 * PROBLEMS: Add section about problems with Sun Make and VPATH.
4810 2000-06-25 Werner LEMBERG <wl@gnu.org>
4812 * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
4815 * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
4817 * win32-diffs: Updated.
4818 * README.WIN32: Added CRs to make all Windows editors happy.
4820 * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
4821 src/roff/groff/pipeline.c).
4823 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
4825 * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
4826 $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
4828 2000-06-17 Eli Zaretskii <eliz@is.elta.co.il>
4830 * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
4831 (tfm::load, gf::load): Open tfm and gf files in binary mode: these
4833 (main): Support non-Posix systems with several different styles of
4834 slash characters in file names.
4836 * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
4837 (main) [SET_BINARY]: Switch stdin into binary mode.
4839 * src/utils/indxbib/indxbib.cc: #include nonposix.h.
4840 (main): Support file names with several possible slash-type
4841 characters, as given by DIR_SEPS[] in nonposix.h.
4842 (main) [__MSDOS__]: If renaming the temporary index file fails
4843 because it has more than one dot in its trunk, replace the dot
4844 with an underscore and try again.
4845 (do_file): Use FOPEN_RB instead of "r". Skip every CR before a
4847 [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
4849 * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
4850 (File::File): Open the input file in binary mode. Strip CR
4851 characters from each CR-LF pair.
4852 (xbasename): Support file names with several possible slash-type
4853 characters, as given by DIR_SEPS[] in nonposix.h.
4855 * src/include/Makefile.sub (HDRS): Add nonposix.h.
4857 * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
4858 (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
4859 [!_POSIX_VERSION]: Define for traditional Unix systems.
4860 (real_output_file::real_output_file): Remove the MSVC-specific
4861 call to popen, use instead POPEN_WT, appropriately defined on
4862 nonposix.h. #include nonposix.h.
4863 (real_output_file::~real_output_file): Remove the MSVC-specific
4864 call to pclose, a suitable macro is now defined on nonposix.h.
4865 Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
4866 and WEXITSTATUS instead of assuming traditional Unix
4867 interpretation of the status returned by pclose.
4869 * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
4870 call to popen, use POPEN_RT instead (appropriately defined on
4871 nonposix.h). #include nonposix.h.
4872 (ps_bbox_request): Open the PostScript file in binary mode.
4873 Close the file after processing it.
4874 (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
4877 * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
4878 A version of run_pipeline that doesn't use `fork'.
4879 (signal_catcher) [__MSDOS__ || _WIN32]: New function.
4880 (system_shell_name, system_shell_dash_c)
4881 (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
4882 the ugliness of testing DOS/Windows file names for equality, and
4883 support both stock shells and ports of Unix shells.
4885 * src/roff/groff/groff.cc: #include nonposix.h.
4886 (BSHELL): Definition moved to nonposix.h.
4887 (main): Use PATH_SEP[0] instead of literal ':'. Use BSHELL_DASH_C
4888 instead of a literal "-c".
4889 (xbasename): Support file names with several possible slash-type
4890 characters, as given by DIR_SEPS[] in nonposix.h.
4891 (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
4894 * src/preproc/soelim/soelim.cc: #include nonposix.h.
4895 (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
4897 * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
4900 * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
4902 * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
4905 * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
4907 * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
4908 P_tmpdir is defined, use it instead of the literal "/tmp".
4909 (remove_tmp_files, add_tmp_file): New functions.
4910 (xtmpfile): Record temporary files and register an atexit function
4911 to delete them explicitly, instead of relying on the OS to do
4912 that, which doesn't work on non-Unix systems.
4914 * src/libs/libgroff/searchpath.cc: #include nonposix.h.
4915 (search_path::search_path): Use PATH_SEP instead of a literal
4917 (search_path::command_line_dir): Ditto.
4918 (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
4919 to support non-Posix systems.
4921 * src/libs/libbib/search.cc: #include nonposix.h.
4922 (search_list::add_file): Open the file in binary mode.
4924 * src/libs/libbib/linear.cc: #include nonposix.h.
4925 (file_buffer::load): Remove \r characters preceding \n from the
4928 * src/libs/libbib/index.cc: #include nonposix.h.
4929 (make_index_search_item): Open index_filename in O_BINARY mode.
4930 (index_search_item_iterator::get_tag): Ditto. Remove \r
4931 characters before \n characters.
4932 (index_search_item::check_files): Open files in binary mode.
4933 (index_search_item::munge_filename): Support DOS-style file names
4934 with backslashes and drive letters, use IS_ABSOLUTE.
4936 * src/devices/grops/ps.cc: #include nonposix.h.
4937 (main) [SET_BINARY]: Switch stdout to binary mode.
4939 * src/devices/grolj4/lj4.cc: #include nonposix.h.
4940 (main) [SET_BINARY]: Switch stdout to binary mode.
4942 * src/devices/grolbp/lbp.cc: #include nonposix.h
4943 (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
4945 * src/devices/grodvi/dvi.cc: #include nonposix.h.
4946 [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
4948 (main) [SET_BINARY]: Switch stdout to binary mode.
4949 [_MSC_VER]: Remove an explicit call to _setmode.
4951 * src/include/nonposix.h: New file.
4953 * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
4954 operation when building with DJGPP.
4955 ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
4956 ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
4959 * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
4961 (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
4962 etc. can include a semi-colon on DOS/Windows.
4963 (depend.temp): Use depend1.temp instead of depend.temp1, to
4964 prevent files from overerwiting each other on 8+3 filesystems.
4966 * gendef.sh (t): Change definition to work with DOS/Windows.
4968 doc/groff.texinfo: Apart of some typo corrections, I also changed
4969 some index entris, to make them more non-ambiguous, and also put
4970 @ignore around some parts that are not yet written, to allow the
4971 Info output be readable.
4973 2000-06-10 Gael Queri <gqueri@mail.dotcom.fr>
4975 Replaced specific checks for function declarations with a generic
4976 routine taken from GNU bfd.
4978 * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
4979 GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
4980 * configure.in: Use it.
4981 * src/devices/grolbp/lbp.cc, src/include/lib.h,
4982 src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
4983 src/roff/groff/groff.cc: Use it.
4984 * Makefile.in, configure: Updated.
4986 2000-06-07 Paco Andrés Verdú <pandres@dragonet.es>
4988 * src/devides/grolbp/lbp.h: Removed unused variables.
4990 2000-05-31 Keith Thompson <kst@sdsc.edu>
4992 * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
4995 2000-05-31 Werner LEMBERG <wl@gnu.org>
4997 * aclocal.m4 (GROFF_SRAND): New function to test the return value
4998 of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
4999 * configure.in: Use it.
5000 * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
5001 * configure, Makefile.in: Updated.
5003 * configure.in: Add test for strncasecmp().
5004 * src/include/lib.h: Use it.
5006 2000-05-29 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
5008 * src/preproc/grn/Makefile.sub: Add MLIB.
5010 2000-05-29 Nix <nix@esperi.demon.co.uk>
5012 * Makefile.in: Use @datadir@ and @mandir@ appropriately.
5014 2000-05-29 Werner LEMBERG <wl@gnu.org>
5016 * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
5018 * PROBLEMS: Small update.
5020 * src/devices/grolbp/lbp.cc: Various small fixes.
5022 2000-05-28 Keith Thompson <kst@sdsc.edu>
5024 * src/roff/nroff/nroff.sh: Fix main loop syntax.
5026 * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
5028 2000-05-25 Werner LEMBERG <wl@gnu.org>
5030 * man/roff.man: Removed unused macro.
5032 2000-05-24 Werner LEMBERG <wl@gnu.org>
5034 * Makefile.in (dist): Remove src/xditview/Imakefile explicitly.
5035 This is needed e.g. if you do
5036 `make distclean; ./configure; make dist'.
5038 Version 1.16 released
5039 =====================
5041 2000-05-23 Werner LEMBERG <wl@gnu.org>
5043 Adding font CWI (constant width italic) to devdvi.
5045 * font/devdvi/CWI: New file.
5046 * font/devdvi/generate/Makefile: Add generating rule.
5047 * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
5048 tmac/tmac.dvi: Use it.
5049 * NEWS: Announce it.
5051 * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
5052 * font/devlj4/generate/Makefile: Cosmetic changes only.
5054 * man/groff.man: Removed most of the redundant description of
5055 special characters (which is in groff_char.man). Added font
5056 translation CB->CR for devdvi. Other minor fixes.
5058 * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
5059 (registered) symbols.
5061 2000-05-22 Werner LEMBERG <wl@gnu.org>
5063 * doc/Makefile: Added rule for creating info files.
5065 * font/devdvi/*: Added kernings for `cq' glyph. Updated to latest
5067 * font/devdvi/generate/Makefile: Fixed dependencies.
5069 * font/devps/*: Regenerated. Heavy changes for Bookman and
5070 NewCentury Schoolbook!
5071 * font/devps/generate/afmname: Will now run with GNU awk.
5072 * font/devps/generate/textmap: Added forgotten `cq' glyph name.
5073 * font/devps/generate/Makefile: Cosmetic changes only.
5075 2000-05-21 Werner LEMBERG <wl@gnu.org>
5077 * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
5078 10, 11, or 12) to support output with 11pt and 12pt base font sizes.
5079 `.SS' now produces a heading with a smaller size than `.SH'.
5080 Completely formatted.
5081 * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
5083 * man/groff.man: Improved table appearance. Use of `eo' request
5084 to reduce number of doubled backslashes in macro definitions.
5085 Replacing `\e' with `\(rs'. Other minor fixes.
5087 * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
5088 to have correct line number.
5090 * INSTALL: Small improvement.
5092 2000-05-20 Bernd Warken <bwarken@mayn.de>
5094 * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
5097 2000-05-19 Bernd Warken <bwarken@mayn.de>
5099 * man/groff.man: Complete update (with a lot of corrections by WL).
5101 2000-05-18 Werner LEMBERG <wl@gnu.org>
5103 Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
5105 * font/*/*: Implement it.
5106 * man/groff_char.man, NEWS: Document it.
5108 * src/include/unix.h: Removed. It isn't used.
5110 * doc/groff.texinfo: Slight improvements.
5112 2000-05-17 Werner LEMBERG <wl@gnu.org>
5114 * README, win32-diffs: Small fixes and improvements.
5116 2000-05-16 Werner LEMBERG <wl@gnu.org>
5118 * FDL: New file (the Free Documentation License version 1.1).
5120 * doc/groff.texinfo: Added many start-up values for gtroff.
5121 Some structural improvements of the source code.
5123 2000-05-15 Werner LEMBERG <wl@gnu.org>
5125 * src/roff/troff/input.cc: Added small comment about troffrc-end.
5126 * src/roff/troff/troff.man: Added info about troffrc-end.
5128 2000-05-14 Werner LEMBERG <wl@gnu.org>
5130 * Makefile.in (EXTRADIRS): Fix typos.
5131 (dist): Handle deletion of old .tar.gz file correctly.
5132 (DISTDIRS): Include all tty output devices.
5134 * doc/groff.texinfo: Adding more cross references; countless other
5137 2000-05-13 Werner LEMBERG <wl@gnu.org>
5139 * MORE.STUFF: Added Robert Marks's utilities.
5141 2000-05-12 Werner LEMBERG <wl@gnu.org>
5143 Added win32 port contributed by Blake McBride
5144 <blake@florida-software.com>.
5146 * README.WIN32, win32-diffs: New files.
5149 * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
5150 (tmove, tmove2): Added parentheses to avoid compiler warnings.
5151 (change): Removed unused variables.
5153 * src/preproc/grn/main.cc (main, conv): Removed unused variables.
5154 (savebounds): Changed return value from `int' to `void'.
5155 * src/preproc/grn/hdb.cc: Ditto.
5157 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
5158 final backslash in comment to avoid compiler warning.
5160 * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
5162 * doc/groff.texinfo: More fixes.
5164 2000-05-11 OKAZAKI Tetsurou <okazaki@be.to>
5166 * tmac/tmac.doc: Documentation fix.
5168 2000-05-11 Werner LEMBERG <wl@gnu.org>
5170 * doc/groff.texinfo: Reading the source code shows up a lot of
5171 omissions and incorrect data... More conversion to @Deffn macros.
5173 2000-05-10 Werner LEMBERG <wl@gnu.org>
5175 * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
5178 * src/roff/troff/request.h: Removing unused `no_break_flag'.
5180 2000-05-09 Werner LEMBERG <wl@gnu.org>
5182 * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
5185 * doc/groff.texinfo: Extended history section. More conversion to
5186 @Deffn macros. More .tr documentation.
5188 2000-05-07 Werner LEMBERG <wl@gnu.org>
5190 * doc/groff.texinfo: Completed tab section. Added info about
5193 2000-05-06 Mike MacIsaac <mikemac@us.ibm.com>
5195 * PROBLEMS: Describe configure script fix for OS/390 Unix.
5197 2000-05-05 Werner LEMBERG <wl@gnu.org>
5199 * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
5201 * NEWS: Document it.
5203 * man/troff.man: Minor optical improvements.
5205 2000-05-03 Werner LEMBERG <wl@gnu.org>
5207 Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
5209 * font/*/*: Implement it.
5210 * man/groff_char.man, NEWS: Document it.
5212 2000-05-02 Werner LEMBERG <wl@gnu.org>
5214 * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
5216 * NEWS: Document the three new man pages.
5218 * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
5219 * configure: Updated.
5221 * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
5223 2000-05-01 Werner LEMBERG <wl@gnu.org>
5225 Added grap support to grog.
5227 * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
5228 * src/roff/grog/grog.man: Document it.
5230 * doc/groff.texinfo, NEWS: Add info about grap support.
5232 Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
5233 (with slight fixes by me).
5235 * tmac/groff_tmac.man: New file documenting tmac mechanism.
5236 * tmac/Makefile.sub: Add groff_tmac.man.
5237 * man/roff.man: New file giving overview of roff system.
5238 * man/troff.man: A short reference of troff.
5239 * man/Makefile.sub: Add roff.man and troff.man.
5241 2000-04-30 Werner LEMBERG <wl@gnu.org>
5243 Added grap support to groff.
5245 * src/roff/groff/groff.cc: Implement it.
5246 * src/roff/groff/groff.man: Document it.
5248 * src/devices/grotty/grotty.man: Add cp1047 device.
5249 * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
5251 * src/roff/groff/groff.man: Ditto.
5252 * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
5253 * doc/groff.texinfo: Ditto.
5255 * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
5258 2000-04-29 Werner LEMBERG <wl@gnu.org>
5260 * man/groff_char.man: Add `pc' glyph.
5261 * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
5262 * tmac/tmac.tty: Add `pc' glyph.
5263 * tmac/tmac.tty-char: Use/add `pc' glyph. Don't call tmac.latin1 if
5264 we use cp1047 output device.
5266 * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
5267 there are still hardcoded latin1->unicode values in utf8's font
5269 * configure: Updated.
5270 * NEWS: Minor clarification. Updated.
5272 * PROBLEMS: Formatted. Added info about C++ fix pack for OS/390
5275 2000-04-28 Werner LEMBERG <wl@gnu.org>
5277 Adding EBCDIC code page 1047.
5279 * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
5280 font/devcp1047/DESC.proto: New files.
5282 * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
5283 either ascii/latin1 or cp1047.
5284 * Makefile.in: Use it.
5285 * configure: Updated.
5287 Replacing and/or adding `md' (mathdot) glyph with `pc'
5288 (periodcentered) in all text fonts.
5290 * font/*/*: Change it.
5292 2000-04-27 Werner LEMBERG <wl@gnu.org>
5294 * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
5296 * configure.in: Add check for strings.h.
5297 * src/include/driver.h: Use HAVE_STRINGS_H.
5298 * src/devices/grolbp/lpb.cc: Remove string.h.
5300 * src/include/groff-getopt.h: New file. It will be used instead of
5301 getopt.h (to be included in lib.h) to avoid endless problems with
5302 picky C++ compilers.
5303 * src/include/lib.h: Use groff-getopt.h.
5304 * src/include/Makefile.sub: Updated.
5306 * configure: Updated.
5307 * Makefile.in: Updated.
5309 * NEWS: Mention EBCDIC support.
5311 2000-04-26 Werner LEMBERG <wl@gnu.org>
5313 * TODO: Some additions.
5315 2000-04-25 Werner LEMBERG <wl@gnu.org>
5317 * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
5320 2000-04-23 Werner LEMBERG <wl@gnu.org>
5322 * src/roff/troff/troff.man: Minor fixes.
5324 2000-04-22 Werner LEMBERG <wl@gnu.org>
5326 * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
5327 `.T' string register and the incompatible definition of the `.T'
5328 number register (compared to Unix troff).
5330 * man/groff_char.man: Add some missing characters.
5331 * font/devutf8/NOTES: Update.
5333 2000-04-21 Werner LEMBERG <wl@gnu.org>
5335 * src/include/htmlindicate.h, src/include/lib.h,
5336 src/include/posix.h: Fix copyright.
5338 * src/include/Makefile.sub: Update.
5340 2000-04-20 Werner LEMBERG <wl@gnu.org>
5342 * src/roff/troff/input.cc (input_char_description): Removing
5343 superfluous space char.
5345 * tmac/tmac.X: Fix typo \(bq -> \(Bq.
5347 * doc/groff.texinfo: Document EBCDIC.
5349 2000-04-19 Werner LEMBERG <wl@gnu.org>
5351 Introducing `shc' as the glyph name for the soft hyphen character.
5353 * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
5354 font/devlatin1/R.proto: Use it.
5358 2000-04-18 Werner LEMBERG <wl@gnu.org>
5360 * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
5361 dependency on ASCII order.
5363 2000-04-16 Sandor BARANY <S.Barany@infosys.tuwien.ac.at>
5365 * src/libs/libgroff/illegal.c: Added EBCDIC table.
5366 * src/roff/troff/input.cc: Added adaptation to EBCDIC.
5368 * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
5369 to increase portability.
5371 2000-04-15 Werner LEMBERG <wl@gnu.org>
5373 * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
5374 Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
5375 the generic `\n' if under OS/390 Unix.
5377 * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
5379 * configure: Regenerated.
5381 2000-04-14 Werner LEMBERG <wl@gnu.org>
5383 * doc/groff.texinfo: More conversions to @Deffn.
5385 2000-04-12 Werner LEMBERG <wl@gnu.org>
5387 * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
5390 * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
5392 2000-04-10 Werner LEMBERG <wl@gnu.org>
5394 * doc/groff.texinfo: More conversions to @Deffn.
5396 2000-04-08 Werner LEMBERG <wl@gnu.org>
5398 * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
5399 Updated to latest version (glibc 2.1.3).
5401 2000-04-07 Werner LEMBERG <wl@gnu.org>
5403 * doc/Makefile (clean): Include more index files.
5404 Add rule texinfo->dvi.
5406 2000-04-05 Werner LEMBERG <wl@gnu.org>
5408 * doc/groff.texinfo: Added new index `op' for operators. More
5409 info on end of sentence characters. More use of @Deffn.
5411 2000-03-30 Werner LEMBERG <wl@gnu.org>
5413 * */*.man: Adding a note that a whitespace can be inserted between
5414 a command line option and its parameter -- we are using GNU getopt.
5416 * src/roff/groff/groff.man: Add example of `-m mandoc'.
5418 2000-03-28 Werner LEMBERG <wl@gnu.org>
5420 Correct anachronism of calling the man macro file with `-man'
5421 instead of `-m man' etc.
5423 * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
5424 tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
5425 load tmac.<package>.
5427 * tmac/Makefile.sub: Updated. Take care of $(tmac_an_prefix) etc.
5431 * doc/groff.texinfo: Updated.
5433 * tmac/groff_man.man: Copyright added.
5435 2000-03-27 Werner LEMBERG <wl@gnu.org>
5437 * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
5438 typeset the request resp. escape name with a tt font -- due to a
5439 bug in texinfo.tex it is necessary to use the `-e' switch with
5442 Improving info about usage of groff units.
5446 2000-03-20 Werner LEMBERG <wl@gnu.org>
5448 * doc/groff.texinfo: Added section about man macro package
5449 (I've basically taken groff_man.man). Introducing new indices `ma'
5450 for macros/strings and `gl' for glyph names. Other minor fixes.
5452 * tmac/groff_man.man: Fixed some typos.
5454 2000-03-19 Werner LEMBERG <wl@gnu.org>
5456 * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
5459 * doc/texinfo.tex: New file.
5461 2000-03-18 Werner LEMBERG <wl@gnu.org>
5463 * doc/groff.texinfo: Improved section on number registers. Other
5466 2000-03-16 Werner LEMBERG <wl@gnu.org>
5468 * src/roff/groff/groff.man: Added info about grolbp. Make nicer
5471 * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
5472 src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
5473 src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
5474 src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
5476 * src/preproc/grn/grn.man: Better synopsis; added copyright.
5478 * src/roff/grog/grog.man: Updated copyright date.
5480 2000-03-14 Francisco Andrés Verdú <pandres@dragonet.es>
5482 * configure.in: Added test for strdup.
5484 * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
5487 Replaced dynamic allocation of arrays `[...]' with `new' operator.
5491 2000-03-12 OKAZAKI Tetsurou <okazaki@be.to>
5493 * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
5495 2000-03-11 Werner LEMBERG <wl@gnu.org>
5497 * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
5499 * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
5500 * src/include/lib.h: Remove some spaces.
5502 2000-03-10 Werner LEMBERG <wl@gnu.org>
5504 * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
5505 initializers from arguments (some compilers don't like this).
5507 2000-03-09 Gaius Mulley <gaius@glam.ac.uk>
5509 * src/libs/libgroff/htmlindicate.cc: Added library file which is now
5510 used by pic and eqn to tell grohtml where the graphic regions start
5512 * src/libs/libgroff/Makefile.sub: Use it.
5513 * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
5514 graphic_start() and graphic_end() from htmlindicate.cc.
5516 2000-03-09 Werner LEMBERG <wl@gnu.org>
5518 * tmac/tmac.safer: Will now work correctly in compatibility mode.
5519 * tmac/groff_man.man: More fixes.
5521 2000-03-08 Werner LEMBERG <wl@gnu.org>
5523 * doc/Makefile: Added texput.log to the `clean' target.
5524 * doc/groff.texinfo: Added info about delimiters for escapes.
5526 2000-03-08 Bernd Warken <bwarken@mayn.de>
5528 * src/preproc/pic/pic.man: Add info on conversion of pic images to
5529 other graphic formats.
5531 2000-03-07 OKAZAKI Tetsurou <okazaki@be.to>
5533 * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
5534 src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
5535 src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
5538 2000-03-07 Werner LEMBERG <wl@gnu.org>
5540 * doc/groff.texinfo: Spelling fixes.
5542 2000-03-06 Werner LEMBERG <wl@gnu.org>
5544 * tmac/groff_man.man: Completely revised to cover everything in
5547 * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
5548 Other minor fixings.
5549 * src/roff/troff/env.cc (environment_copy): Improve error message and
5551 * src/roff/troff/TODO: Updated.
5553 * doc/Makefile: Bug fixes -- this is still provisional, though...
5555 * tmac/eqnrc: Small fixes.
5557 2000-03-05 Abramo Bagnara <abramo@alsa-project.org>
5559 Adding a request `evc' to copy environments.
5561 * src/roff/troff/env.cc (environment::copy, environment_copy):
5563 * src/roff/troff/env.h: Add prototype.
5565 2000-03-05 Francisco Andrés Verdú <pandres@dragonet.es>
5567 Adding strsep() -- Solaris 8 doesn't have it.
5569 * configure.in: Test it.
5570 * src/devices/grolbp/lbp.cc: Add code.
5572 2000-03-05 Werner LEMBERG <wl@gnu.org>
5574 * src/roff/troff/div.cc (macro_diversion::output,
5575 top_level_diversion::output): Fixing an incompatibility with
5576 original troff: \x'0' updates the .a register also. Thanks to
5577 <Andries.Brouwer@cwi.nl> for pointing this out.
5578 * doc/groff.texinfo: Document it.
5580 * Makefile.in: Create Makefile.dep if necessary before calling the
5581 submake process to avoid warning about nonexistent file.
5583 * NEWS, PROJECTS: Updated.
5585 2000-03-04 Werner LEMBERG <wl@gnu.org>
5587 * tmac/troffrc: Add tmac.lbp.
5589 2000-03-03 Francisco Andrés Verdú <pandres@dragonet.es>
5591 * tmac/tmac.lbp: New file.
5592 * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
5595 2000-03-03 Werner LEMBERG <wl@gnu.org>
5597 * Makefile.in: Fixing $(subdir).
5599 * README, NEWS: Small fixes.
5601 * test-groff: Adding path to grolbp.
5603 * configure.in: The (new) file src/xditview/Imakefile.in will be
5604 also configured -- it is now possible to build gxditview in a
5605 directory different from $srcdir.
5607 2000-03-02 Blake McBride <blake@florida-software.com>
5609 * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
5611 * MORE.STUFF: Added website of bell labs and info about plot2dev.
5613 2000-03-01 Colin Phipps <crp22@cam.ac.uk>
5615 * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
5618 2000-02-29 Werner LEMBERG <wl@gnu.org>
5620 Adding GNU getopt to the groff distribution.
5622 * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
5624 * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
5625 * aclocal.a4: Remove GROFF_GETOPT function.
5626 * configure.in, Makefile.in, PROBLEMS: Update.
5627 * src/include/lib.h: Replace getopt tests with getopt.h.
5628 * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
5630 * doc/groff.texinfo: Further checking/updating. Adding more index
5633 * man/groff_out.man: Fix nroff mode activation (for emacs).
5634 * man/groff_font.man: Add missing ligature.
5636 2000-02-28 Werner LEMBERG <wl@gnu.org>
5638 * doc/groff.texinfo: Further checking/updating. Adding more index
5641 * src/devices/grolbp/grolbp.man: Added a comment line at the
5642 beginning of the file (similar to shell scripts) which indicates
5643 that `tbl' should be used as a preprocessor.
5645 2000-02-27 Blake McBride <blake@florida-software.com>
5647 Adapting groff to MS Visual C++ 6.0 compiler (tested with
5648 Windows NT 4.0). Uses _MSC_VER define where necessary.
5650 * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
5651 * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
5652 * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
5653 src/include/lib.h, src/libs/libgroff/errarg.cc,
5654 src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
5655 src/preproc/refer/label.y, src/preproc/refer/label.cc,
5656 src/roff/groff/pipeline.c, src/roff/troff/column.cc,
5657 src/roff/troff/div.cc, src/roff/troff/env.cc,
5658 src/roff/troff/input.cc, src/roff/troff/node.cc,
5659 src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
5660 if_to_a() to avoid name clashes.
5661 * src/include/posix.h: Don't use unistd.h.
5662 * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
5663 clause for integrating non-Unix xtmpfile() code.
5664 * src/roff/troff/input.cc: Adding `public' keyword to macro_header
5665 structure; use "rt" for popen() in pipe_source(); add getpid()
5667 * src/roff/troff/node.cc: Use special versions of popen() in
5668 real_output_file() and pclose() in ~real_output_file().
5670 2000-02-27 Werner LEMBERG <wl@gnu.org>
5672 Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
5673 LBP-8 series laser printers). This code has been contributed by
5674 Francisco Andrés Verdú <pandres@dragonet.es>.
5676 * src/devices/grolbp/*: The grolbp output device.
5677 * font/devlpb/*: The font description files.
5678 * Makefile.in: Add grolpb and devlbp subdirectories.
5680 * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
5681 src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
5684 * doc/groff.texinfo: Further checking/updating. Adding more index
5689 * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
5691 * man/groff_font.man: Adding info about obsolete DESC keywords.
5692 * src/devices/grolj4/grolj4.man: Documenting additional DESC
5695 2000-02-26 Werner LEMBERG <wl@gnu.org>
5697 * src/preproc/grn/grn.man: Added info about the gremlin file format
5698 (contributed by Daniel Senderowicz <daniel@synchrods.com>).
5700 2000-02-25 Werner LEMBERG <wl@gnu.org>
5702 * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
5703 friends to be non-integer.
5705 * src/preproc/grn/grn.man: Document it.
5707 * doc/groff.texinfo: Further checking/updating. Adding more index
5710 2000-02-24 Werner LEMBERG <wl@gnu.org>
5712 * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
5713 line thicknesses to be integer multiples of this value.
5715 * src/preproc/grn/grn.man: Commenting out the -s option -- the
5716 corresponding code doesn't work (yet).
5718 * doc/groff.texinfo: Further checking/updating. Adding more index
5721 2000-02-23 Werner LEMBERG <wl@gnu.org>
5723 * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
5724 specify line thickness instead of base units. The new default
5725 values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
5726 thick lines respectively.
5728 Removed unused variable `prevval'.
5730 * src/preproc/grn/grn.man: Updated.
5732 2000-02-22 Werner LEMBERG <wl@gnu.org>
5734 * src/preproc/grn/main.cc: Slight formatting.
5736 * src/roff/groff/groff.man: Formatting fix.
5737 * src/preproc/grn/grn.man: Ditto.
5739 * src/roff/grog/grog.pl: Fixing two embarassing bugs.
5741 * doc/groff.texinfo: Further checking/updating.
5743 2000-02-21 Werner LEMBERG <wl@gnu.org>
5745 * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
5747 * test-groff: Added grn subdir to path.
5749 * doc/groff.texinfo: Some restructing and other small improvements.
5751 * src/roff/groff/groff.cc (help): Fixed info string.
5753 2000-02-20 Werner LEMBERG <wl@gnu.org>
5755 * doc/meref.me: Fix description of .GS request.
5757 * src/roff/troff/troff.man: Fixing typo.
5759 Adding the `grn' preprocessor for gremlin graphic files.
5761 * src/preproc/grn/*: This is the Berkeley distribution written by
5762 David Slattengren and Barry Roitblat, adapted to groff by Daniel
5763 Senderowicz and Werner Lemberg.
5765 * doc/grnexampl.{me,g}: A sample for grn.
5767 * Makefile.in: Added subdirectory entry for grn.
5769 * src/roff/groff/groff.cc: Added support for grn. It can be now
5770 called with the switch `-g'.
5772 * src/roff/groff/groff.man: Updated.
5774 * src/roff/grog/grog.{man,pl,sh}: Updated.
5778 2000-02-11 Gaius Mulley <gaius@glam.ac.uk>
5780 * src/include/lib.h: Added xtmptemplate and made xtmpfile
5781 parametrically polymorphic.
5783 * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
5784 and the alterations to xtmpfile.
5785 xtmpfile can be requested to return the filename created
5786 and asked not to unlink the temp file. The default behaviour
5787 if parameters are absent is exactly the same as before.
5789 2000-02-11 Abramo Bagnara <abramo@alsa-project.org>
5791 A new request `length' is available which returns the length of a
5792 string in a number register:
5794 * src/roff/troff/input.cc (length_macro): Implement it.
5795 * src/roff/troff/input.cc (init_input_requests): Register it.
5797 2000-02-11 Werner LEMBERG <wl@gnu.org>
5799 * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
5800 of the `substring' request.
5802 * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
5805 * src/roff/troff/TODO, NEWS: Updated.
5807 2000-02-09 Werner LEMBERG <wl@gnu.org>
5809 * src/roff/groff/groff.man: Added an example.
5811 2000-02-06 Werner LEMBERG <wl@gnu.org>
5813 I've considerably modified the directory structure of the
5814 distribution to get a more vertical layout. For example, the number
5815 of top level directories has been reduced from 42 to 6.
5817 As a consequence, many changes, especially to the makefiles, were
5820 * The makefile variables `top_builddir' and `top_srcdir' have been
5821 introduced. Virtually all relative paths have been replaced with
5822 absolute ones using these two variables.
5824 * Dependencies (in the files `Makefile.dep') are no longer part of
5825 the distribution. Instead, they are created during a `make install'
5826 in the build directory.
5828 * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
5829 make `top_srcdir' and `top_builddir' absolute.
5833 * Man pages no depend on the files `VERSION' and `REVISION'.
5835 * The added shell script `mkinstalldirs' will replace `mkdir' in
5838 * VERSION: Version number increased to 1.16.
5840 2000-02-04 Werner LEMBERG <wl@gnu.org>
5842 * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
5844 * Makefile.in: Removed $(tmac_m) since it is no longer needed
5845 (after an update of the mm stuff).
5847 * troff/Makefile.sub (majorminor.cc): Fix dependencies.
5849 2000-02-03 Werner LEMBERG <wl@gnu.org>
5851 The .psbb request will now also accept Mac PS images (i.e. using LF
5852 as the EOL character).
5854 * troff/input.cc (ps_get_line): New function, taken from psrm.cc
5855 (with slight modifications).
5856 * troff/input.cc (do_ps_file): Use it.
5858 * test-groff: Add grohtml and grolj4 output devices to PATH.
5860 2000-01-30 Werner LEMBERG <wl@gnu.org>
5862 * NEWS, MORE.STUFF: Updated.
5864 2000-01-30 Cary D. Renzema <caryr@dollar.mxim.com>
5866 Add the `srand' command to pic.
5868 * pic/lex.cc, pic/pic.y: Implement it.
5869 * pic/pic.man: Document it.
5870 * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
5872 2000-01-30 Werner LEMBERG <wl@gnu.org>
5874 Add a new request `.psbb'. This does exactly what the external
5875 program psbb did. It scans a PostScript image file for a
5876 %%BoundingBox comment and extracts the bounding box values (in
5877 PostScript units) which are then stored in the four new (read-only)
5878 number registers `llx', `lly', `urx', and `ury'.
5880 This will allow the usage of the .PSPIC macro without worrying
5881 about unsafe behaviour of groff, i.e., it will work without the
5882 `-U' switch of groff.
5884 * troff/input.cc: Implement it.
5885 * tmac/tmac.pspic: Use it.
5886 * troff/troff.man, grops/grops.man, NEWS: Document it.
5887 * psbb/*, Makefile.in: Remove it since it is no longer needed.
5889 This is bloody C code simply adapted from psbb.c! Any improvements
5892 2000-01-29 Werner LEMBERG <wl@gnu.org>
5894 * man/groff_font.man: Minor clarifications.
5898 2000-01-28 Werner LEMBERG <wl@gnu.org>
5900 * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
5902 2000-01-28 Gaius Mulley <gaius@glam.ac.uk>
5904 * man/groff_font.man: Brought up to date regarding tcommand
5906 * libgroff/font.cc: Handle everything after `--' as a comment
5908 * devps/*: Added comment delimiter inside devps font files.
5910 2000-01-28 Werner LEMBERG <wl@gnu.org>
5912 * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
5913 \fC...\fP (which now works as expected).
5915 * troff/troff.man: Fix typo.
5917 2000-01-27 Gaius Mulley <gaius@glam.ac.uk>
5919 Completed the pass_filenames implementation in troff.
5921 * libdriver/input.cc: Will read the new `F' tcommand.
5922 * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
5923 * troff/input.cc: Use it.
5925 2000-01-26 Werner LEMBERG <wl@gnu.org>
5927 * troff/env.cc (set_font): Fix the behaviour of \fP. The previous
5928 font will now be updated even if an invalid font is selected.
5930 2000-01-24 Werner LEMBERG <wl@gnu.org>
5932 * doc/homepage.ms: Updated for new tmac.arkup.
5934 * tmac/tmac.html: Disable line breaks after hyphen-like characters.
5936 * tmac/tmac.arkup: Cleanup.
5938 Added `\&' to .HTML macro to `leave vertical mode', so to say.
5940 Removed obsolete .LINK macro completely.
5942 The macros .URL, .FTP, and .MAILTO now accept a third argument which
5943 will be immediately appended to the second argument (to be used with
5944 punctuation, for example).
5946 Disabled .CDFTP macro temporarily for security reasons.
5948 * tmac/groff_markup.man: Complete revision for latest changes in
5949 tmac.arkup -- note that it does not yet format correctly with
5952 2000-01-23 Bruno Haible <haible@clisp.cons.org>
5954 * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
5955 * devutf8/R.proto: Add mappings for wp, lh, rh.
5956 * devutf8/NOTES: Updated.
5958 2000-01-23 Werner LEMBERG <wl@gnu.org>
5960 * doc/groff.texinfo: Updated version/copyright info.
5962 2000-01-21 Gaius Mulley <gaius@glam.ac.uk>
5964 Added support for two new directives in device descriptions:
5965 `pass_filenames' (to pass the input file name to the output device)
5966 and `use_charnames_in_special' (to support e.g. accented characters
5967 in the `X' request).
5969 * include/font.h, troff/charinfo.h: Declare it.
5971 * libgroff/font.cc, libgroff/fontfile.cc: Set it.
5973 * devhtml/DESC: Use it.
5975 * troff/input.cc: New function encoded_char.
5977 * troff/token.h: Add test for `specialness'.
5979 2000-01-21 Werner LEMBERG <wl@gnu.org>
5981 * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
5982 mistake from the list of files to be installed.
5984 2000-01-18 Werner LEMBERG <wl@gnu.org>
5986 * README: Added info how to apply patches.
5988 2000-01-15 Jan Echternach <echter@informatik.uni-rostock.de>
5990 * troff/node.cc (ligature_note::operator delete): Fix g++ warning.
5992 2000-01-15 Gaius Mulley <gaius@glam.ac.uk>
5994 * troff/input.cc: Add support for troffrc-end.
5996 * tbl/main.cc: Altered to issue table-start and table-end special
5997 characters if using the html device.
5999 * devhtml/*: Modified font files to incorporate html encoding of
6002 * tmac/groff_markup.man: New file documenting tmac.arkup.
6004 * tmac/troffrc-end: New file. This is invoked after all user
6005 specified macros. Currently used by the html device to include
6006 tmac.html. Thus no need for users to specify -mhtml anymore.
6008 * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
6009 (MAN7): Add groff_markup.man.
6011 * tmac/tmac.an, tmac/tmac.html: Small html updates.
6013 * tmac/troffrc: tmac.arkup will now be called for the html device.
6015 * libgroff/font.cc, libgroff/font.h: Altered to include reading of
6016 extra device specific information about fonts.
6018 * doc/homepage.ms: New file. It is an example how an HTML home page
6019 could look like with grohtml.
6021 * doc/Makefile: Add homepage.ms. Remove rule for pic.html.
6023 2000-01-12 Bruno Haible <haible@clisp.cons.org>
6025 * devutf8/R.proto: Add mappings for ti, Fn, st, an. Change mappings
6028 * devutf8/NOTES: Updated.
6030 2000-01-08 Bruno Haible <haible@clisp.cons.org>
6032 * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
6033 eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
6034 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
6035 libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
6036 pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
6037 tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
6038 troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
6039 troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
6042 * troff/node.cc (bracket_node::copy): Initialize last to NULL.
6044 2000-01-12 Fabrizio Polacco <fab@prosa.it>
6046 grolj4: Paper size will be searched case-insensitively.
6048 * include/lib.h: Add check for strcasecmp().
6049 * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
6050 * configure.in: Check for strcasecmp().
6052 2000-01-11 Werner LEMBERG <wl@gnu.org>
6054 * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
6057 2000-01-10 Werner LEMBERG <wl@gnu.org>
6059 * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
6062 Add a new read-only register, `.Y', which contains the groff
6065 * troff/input.cc (init_input_requests): Define it.
6066 * troff/Makefile.sub (majorminor.cc): Define `revision' string.
6067 * doc/groff.texinfo, troff/troff.man: Document it.
6069 * libgroff/Makefile.sub (version.cc): Add definition of
6070 `Version_string[]', consisting of `<major>.<minor>.<revision>'
6071 * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
6072 grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
6073 refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
6074 troff/input.cc, pfbtops/pfbtops.c: Use it.
6076 2000-01-10 Fabrizio Polacco <fab@prosa.it>
6078 Add a revision scheme to the groff package.
6080 * REVISION: New file.
6081 * libgroff/Makefile.sub (version.cc): Use it to define
6082 `revision_string[]'.
6083 * grops/psrm.cc: Use revision_string (converted to an unsigned
6084 integer) in constructor of resource_manager.
6086 2000-01-10 Bruno Haible <haible@clisp.cons.org>
6088 * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
6090 * Makefile.in (DEVDIRS): Add devutf8.
6091 * grotty/tty.cc: Include device.h.
6092 (glyph): Change type of `code' to `unsigned int'.
6093 (tty_printer): New field is_utf8. Constructor takes device argument.
6094 (tty_printer::tty_printer): If device if `utf8', set is_utf8.
6095 (tty_printer::add_char): Change type of first arg to `unsigned int'.
6096 (tty_printer::put_char): New function.
6097 (tty_printer::end_page): Use put_char() instead of ::putchar().
6098 (make_printer): Pass device to tty_printer constructor.
6099 * nroff.sh: Determine default device by calling 'locale'. As a
6100 fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
6101 Recognize UTF-8 locales.
6102 * tmac/eqnrc: Recognize utf8 like latin1.
6103 * tmac/troffrc: Device utf8 needs tmac.tty.
6105 2000-01-07 Werner LEMBERG <wl@gnu.org>
6107 * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
6109 2000-01-07 Paul Eggert <eggert@twinsun.com>
6111 Add a new predefined writeable number register, `year',
6112 which contains the current year.
6114 * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
6115 * tmac/tmac.s: Use it.
6116 * troff/input.cc (init_registers): Initialize it.
6118 2000-01-06 Werner LEMBERG <wl@gnu.org>
6120 * PROBLEMS: Fixed typo.
6122 2000-01-04 Paul Eggert <eggert@twinsun.com>
6124 * PROBLEMS: Add Y2k advice for the yr number register.
6126 2000-01-03 Paul Eggert <eggert@twinsun.com>
6128 * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
6130 2000-01-02 Werner LEMBERG <wl@gnu.org>
6132 * tmac/tmac.arkup: Slight modification of macros to provide better
6133 appearance for non-HTML formats.
6135 2000-01-01 Charles Levert <charles@comm.polymtl.ca>
6137 * soelim/soelim.cc (include_path_append): realloc(NULL, n)
6138 does not automatically translate to malloc(n) on all OSes
6139 (e.g., SunOS) so do it explicitly. Also, check the returned
6142 2000-01-01 Werner LEMBERG <wl@gnu.org>
6144 * tmac/tmac.arkup: Added .LINE macro. Some formatting.
6146 * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
6147 expects this variable
6149 2000-01-01 Gaius Mulley <gaius@glam.ac.uk>
6151 * doc/Makefile: Added instructions to create HTML and text
6152 versions of some files.
6154 1999-12-31 Werner LEMBERG <wl@gnu.org>
6156 * Updated INSTALL.gen.
6158 * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
6159 better resp. correctly with non-HTML devices.
6161 Version 1.15 released
6162 =====================
6164 1999-12-28 Werner LEMBERG <wl@gnu.org>
6166 * NEWS, VERSION: Changed to 1.15
6168 1999-12-27 Paul Eggert <eggert@twinsun.com>
6170 * nroff/nroff.man: -S is safer, not safe.
6172 * groff/groff.cc (main): Use `safer', not `safe', in variable
6173 names. This does not change the behavior.
6175 * troff/input.cc (main): Likewise.
6177 * nroff/nroff.sh: Likewise.
6179 * troff/input.cc (prepend_string): New function.
6180 (main): Prepend -msafer, so that we check macro libraries for
6183 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
6185 Version 1.14 released
6186 =====================
6188 1999-12-26 Werner LEMBERG <wl@gnu.org>
6190 * NEWS, VERSION: Changed to 1.14.
6192 1999-12-24 Werner LEMBERG <wl@gnu.org>
6194 * refer/refer.cc: Fixing the last fix.
6196 Version 1.13 released
6197 =====================
6199 1999-12-23 Werner LEMBERG <wl@gnu.org>
6201 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
6206 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
6208 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
6209 document conventions, the version number must be a real.
6211 Version 1.12.1 released
6212 =======================
6214 1999-12-22 Werner LEMBERG <wl@gnu.org>
6216 * VERSION: Changed to 1.12.1.
6218 1999-12-22 Alan Rooks <arooks@istar.ca>
6220 * refer/refer.cc (do_file): Slight modification to satisfy the
6221 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
6224 1999-12-20 Werner LEMBERG <wl@gnu.org>
6226 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
6229 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
6230 list of unsafe requests.
6232 * pic/pic.man: Fixed a typo.
6234 * man/groff_out.man: Fixed a typo.
6236 1999-12-18 Werner LEMBERG <wl@gnu.org>
6238 * Makefile.in: Doc fixes.
6240 1999-12-17 Fabrizio Polacco <fab@prosa.it>
6242 * groff/groff.cc: Missing `U' option added to getopt().
6244 * troff/troff.man: Missing `U' option added to synopsis.
6246 Version 1.12 released
6247 =====================
6249 1999-12-14 Werner LEMBERG <wl@gnu.org>
6251 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
6254 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
6255 with the more appropriate terms `safer' and `unsafe'.
6257 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
6258 sys_nerr and sys_errlist[].
6260 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
6262 * pic/pic.y, pic/pic.cc: Added check for fmod().
6264 1999-12-13 Werner LEMBERG <wl@gnu.org>
6266 * VERSION: Changed to 1.12.
6268 Here some patches from various sources; most of them taken from
6269 the Debian distribution.
6271 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
6272 tmac/Makefile.sub: New files copied directly from the NetBSD
6273 distribution. Probably, some additional adaptation later on is
6276 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
6279 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
6280 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
6281 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
6282 (`-S') is now the default.
6284 * README, NEWS: Updated.
6286 1999-12-09 Werner LEMBERG <wl@gnu.org>
6288 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
6290 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
6292 1999-12-06 Werner LEMBERG <wl@gnu.org>
6294 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
6295 grief than relief today. Additionally, it is against the GNU
6298 * configure: Recreated.
6300 1999-12-05 Werner LEMBERG <wl@gnu.org>
6302 * configure.in: Added GROFF_LIBM.
6304 * configure: Recreated.
6306 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
6309 * Makefile.in: Added definition of $(LIBM).
6311 * Makefile.comm (LIBM): Removed.
6313 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
6315 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
6317 * doc/Makefile: Added rule for generation pic.html.
6319 (clean): Files produced by grohtml will be removed also.
6321 * doc/pic.ms: Small fix.
6323 * tmac/tmac.html: Fixed suppression of headers.
6325 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
6327 * tmac/tmac.html: Fixing horizontal arrows.
6329 Turning off hyphenation.
6331 * tmac/tmac.an: Improved support for grohtml; better indentation,
6334 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
6336 * tmac/tmac.arkup: Added CDFTP macro
6338 * tmac/tmac.html: All headers are turned off for ms, me, and mm
6341 * tmac/troffrc: Some additions for HTML stuff.
6343 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
6345 * tmac/tmac.html: Small changes.
6347 1999-09-26 Werner LEMBERG <wl@gnu.org>
6349 * doc/groff.texinfo: Minor fixes.
6351 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
6353 * devhtml/TR: Changed spacewidth to 3.
6355 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
6357 * tmac/tmac.html: Moved markup macros to tmap.arkup.
6359 * tmac/tmac.arkup: New file.
6361 * grohtml/ChangeLog: New file.
6363 1999-09-16 Werner LEMBERG <wl@gnu.org>
6365 * doc/groff.texinfo (Common Features): Added Copying chapter.
6366 Changed format to @smallbook.
6368 1999-09-15 Werner LEMBERG <wl@gnu.org>
6370 * NEWS: Added info about groff.texinfo.
6372 * doc/groff.texinfo: Will now compile (using texi2dvi) without
6375 1999-09-14 Werner LEMBERG <wl@gnu.org>
6377 * groff/groff.man: More updates.
6379 1999-09-13 Werner LEMBERG <wl@gnu.org>
6381 * doc/groff.texinfo: New file. This manual is still very
6382 rudimentary. It has been originally contributed by Trent
6383 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
6386 * INSTALL: Added information about the `doc' subdir
6388 * troff/troff.man: Minor fixes.
6390 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
6393 * troff/input.cc (usage): Added missing `-ffam' to usage message.
6395 * Makefile.in (dist): groff-$(version).tar.gz must be removed
6396 also, otherwise it is included itself in another call of `make
6399 * groff/groff.cc (synopsis): Removed superfluous space.
6401 * PROJECTS, PROBLEMS, NEWS: Updated.
6403 * VERSION: Updated to 1.12beta.
6405 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
6407 * README: Updated: Included documentation about CVS repository,
6408 mailing lists, and daily snapshots.
6410 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
6412 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
6414 * tmac/tmac.an: If the tag didn't fit into the space that the
6415 macro `TP' specifies, the rest of the tag went into the space for
6418 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
6420 * grolj4/lj4.cc: Added duplex printing (option `-d').
6422 * grolj4/grolj4.man: Document duplex printing.
6424 1999-09-12 Werner LEMBERG <wl@gnu.org>
6426 * doc/Makefile (pic.ps): Fixed rule which caused problems with
6427 non-GNUish sed programs.
6429 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
6432 * configure.in (LIBS): Added `-lc'
6434 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
6436 * pic/tex.cc (solid_arc): Casting M_PI to double.
6438 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
6440 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
6441 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
6442 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
6444 * groff/groff_man.man: New file. This manual page was originally
6445 written for the Debian GNU/Linux system by Susan G. Kleinmann
6448 * eqn/list.cc (list_box::compute_metrics,
6449 list_box::compute_sublist_width): Removed variable declaration to
6450 avoid shadowing warnings.
6452 * grops/psrm.cc (resource_manager::process_file): Ditto.
6454 * tfmtodit/tfmtodit.cc (main): Ditto.
6456 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
6457 to avoid shadowing warnings.
6459 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
6460 shadowing loop variable.
6462 * groff/groff.man, troff/troff.man: Added doc about grohtml.
6464 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
6466 New grohtml frontend to convert groff input to html.
6468 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
6470 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
6472 * tmac/eqnrc: Added html device.
6474 * tmac/tmac.html: New file.
6476 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
6477 (troff_output::start_picture, troff_output::finish_picture),
6478 tbl/main.cc (process_input_file):
6479 Surrounded output with `graphics_start' and `graphics_end' so that
6480 the html driver can identify non-text portions.
6482 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
6483 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
6484 grotty/tty.ps (tty_printer::set_char): Additional parameter
6487 * include/printer.h: Class printer: New function
6488 set_char_and_width; new variables (is_char_named, is_named_set,
6489 named_command, named_char_s, named_char_n) to hold information
6490 about named characters -- needed by the html driver.
6492 * libdriver/printer.cc (printer::set_ascii_char,
6493 printer::set_special_char): Use set_char_and_width.
6495 * devhtml/*: New device files for html driver.
6497 * grohtml/*: New driver grohtml.
6499 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
6501 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
6504 1999-09-11 Luke Mewburn <lukem@netbsd.org>
6506 * libgroff/string.cc (search): Small fix to test against NULL
6509 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
6511 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
6512 \b'abc') were stacked in reverse order when processed in a
6515 * troff/node.h: Added `*last' to struct `node' to make the above
6518 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
6519 The default scale for the 'f' and 't' graphics functions were 'm'
6520 rather than 'u' (i.e., no scaling).
6522 1999-09-11 Peter Miller <peterm@jna.com.au>
6524 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
6525 do_file), soelim/soelim.man: Added `-I file' option to soelim,
6526 defining include paths.
6528 * soelim/soelim.cc (include_path_append): New function.
6530 1999-09-11 Larry Jones <larry.jones@sdrc.com>
6532 * tbl/main.cc (process_options): Unix (at least Documenter's
6533 Workbench) tbl allows arbitrary non-alpha characters between
6536 1999-09-11 Paul Eggert <eggert@twinsun.com>
6538 Y2k fixes. Don't assume that the current year precedes 2000.
6540 * doc/meref.me: Add \n(y2, \n(y4.
6542 * tmac/doc-common (Yr): New number register.
6543 (Dd): Don't assume current year precedes 2000.
6545 * tmac/tmac.e (td): Likewise.
6546 (y2, y4): New number registers.
6548 * pic/pic.man: Update reference for pic paper to May, 1991
6551 1999-09-11 Werner LEMBERG <wl@gnu.org>
6553 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
6554 Removed quotation marks which prevented correct expansion of
6557 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
6559 1999-09-10 Werner LEMBERG <wl@gnu.org>
6561 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
6564 * Removed configure.old.
6566 1999-08-31 Werner LEMBERG <wl@gnu.org>
6568 * VERSION: Updated to 1.11.1
6570 1999-05-27 Werner LEMBERG <wl@gnu.org>
6572 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
6574 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
6575 added quotations around $(tmac_wrap) to avoid syntax error if
6578 * configure: Newly generated using autoconf 2.13.
6580 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
6582 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
6584 * README, PROJECTS, NEWS, INSTALL, VERSION,
6585 doc/Makefile. doc/pic.ms, groff/groff.man:
6586 Prepare for 1.11 release. No code changes.
6587 Documentation for pic added (doc/pic.ms).
6589 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
6591 * Version 1.10 released.
6593 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
6595 * afmtodit/afmtodit.pl: Avoid comment on first line.
6597 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
6599 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
6600 * configure.in: Call it.
6602 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
6603 (distfiles): Doesn't depend on config.log or config.cache.
6605 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
6607 * grog/grog.sh: Use print "" rather than print in END rule.
6609 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
6611 * tbl/main.cc (process_data): Don't give error for excess data
6612 entries that are comments.
6614 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
6616 * tbl/main.cc (process_data): Fix case where new for-scope rules
6617 silently change meaning of code.
6619 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
6621 * troff/env.cc (hyphenate): Loop over all consecutive sequences
6622 of non-zero hyphenation codes.
6624 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
6626 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
6628 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
6630 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
6632 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
6634 * tmac/tmac.andoc: Make it work in compatibility mode.
6636 * refer/token.h (token_info::is_range_sep): New function.
6637 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
6638 * refer/ref.cc (reference::output): More sophisticated check for
6641 * devps/prologue.ps (MANUAL): New procedure.
6642 * grops/ps.cc (main): New -m option.
6643 (usage): Include -m.
6644 (ps_printer::~ps_printer): Implement -m.
6646 * aclocal.m4 (GROFF_G): New macro.
6647 * configure.in: Call it.
6648 * Makefile.in (g): Provided by configure.
6650 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
6652 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
6655 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
6656 (tmac_m, tmac_s): Deleted.
6657 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
6658 tmac_s_prefix): New variables.
6659 (MDEFINES): Change accordingly.
6660 * Makefile.comm (.man.n): Use new TMAC_* variables.
6661 * configure.in (GROFF_TMAC): Call.
6662 * aclocal.m4 (GROFF_TMAC): Define.
6663 * tmac/Makefile.sub (stamp_wrap): New target.
6664 (install_data, uninstall_sub): Handle macro wrapping.
6666 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
6668 * tbl/main.cc (main): Ignore -T option.
6670 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
6672 * devlj4/generate/special.map: Add definition of \(nb.
6674 * tmac/tmac.dvi: Add definition of \(nb.
6676 * troff/dictionary.c (dictionary::dictionary): association::v gets
6677 initialized by association::association.
6679 * tmac/Makefile.sub: Avoid using temporary files when installing.
6681 * troff/env.cc (environment::set_font): Make bad font number a
6684 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
6686 * Makefile.in (datadir): Use share rather than lib.
6688 * groff/groff.cc (basename): Rename to xbasename.
6690 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
6692 * Makefile (CCLIBS): Don't use.
6693 * Makefile.ccpg: Likewise.
6695 * acgroff.m4: Rename to...
6696 * aclocal.m4: Modify extensively for autoconf 2.
6697 * configure.in: Likewise.
6698 * Makefile.in: Likewise.
6700 * groff/pipeline.c (const): Declare as empty if __STDC__ not
6702 (xstrsignal): Check for definition of NSIG. Conditionalize
6703 on SYS_SIGLIST_DECLARED. Make return type const.
6705 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
6707 * troff/input.cc (interpolate_macro): Rephrase missing space
6710 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
6712 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
6713 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
6714 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
6715 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
6716 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
6717 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
6718 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
6719 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
6720 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
6721 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
6722 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
6725 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
6727 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
6729 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
6731 (macro_iterator::macro_iterator): Add additional argument.
6733 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
6735 * troff/div.cc (vertical_size::vertical_size): In place of integer
6736 specifying line spacing use cunits specifying post vertical
6738 (macro_diversion::output, top_level_diversion::output): Likewise.
6739 * troff/div.h: Change declarations accordingly.
6740 * troff/env.cc (pending_output_line): Replace ls field by post_vs
6742 (pending_output_line::pending_output_line,
6743 pending_output_line::output, environment::output,
6744 environment::output_line, environment::output_title,
6745 environment::hyphenate_line): In place of
6746 integer specifying line spacing use cunits specifying post vertical
6748 (environment::environment): Add post_vertical_spacing and
6749 prev_post_vertical_spacing arguments.
6750 (environment::get_post_vertical_spacing): New function.
6751 (environment::total_post_vertical_spacing): New function.
6752 (environment::post_vertical_spacing): New function.
6753 (init_env_requests): Initialize pvs request and .pvs register.
6754 * troff/env.h: Change declarations.
6756 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
6758 * tmac/tmac.pspic: Immediately remove the temporary file.
6760 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
6762 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
6763 height is specified.
6765 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
6767 * tbl/table.c (struct vertical rule, class table_entry): Use int
6768 not short for start_row and end_row.
6770 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
6772 * troff/input.cc (trapping_blank_line, blank_line_macro): New
6774 (diverted_space_node::reread, process_input_stack): Call
6775 trapping_blank_line() rather than blank_line().
6776 (init_input_requests): Bind "blm" to blank_line_macro().
6778 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
6780 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
6782 * troff/env.cc (environment::possibly_break_line): Require that
6783 width total excluding width of final space node be greater than
6784 the target text length.
6786 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
6788 * troff/node.cc (kern_pair_node::vertical_extent): New function.
6790 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
6792 * troff/node.cc (charinfo_node): New class.
6793 (glyph_node, composite_node): Derive from charinfo_node. Change
6794 member functions accordingly.
6796 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
6798 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
6800 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
6802 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
6804 * devps/generate/textmap (notsubset): Add.
6806 * tmac/tmac.a4: New file.
6808 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
6810 * pic/main.cc (had_parse_error): New variable.
6811 (do_picture, do_whole_file): Set had_parse_error if yyparse()
6813 (main): Return 1 if had_parse_error is true.
6815 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
6817 * grolj4/lj4.cc (main): Avoid use of strtoul.
6819 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
6821 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
6822 iso_8859_1 or $LESSCHARSET is latin1.
6824 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
6826 * hpftodit: New directory.
6827 * Makefile.in (CCPROGDIRS): Add hpftodit.
6828 * devlj4/generate: New directory.
6830 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
6832 * configure.in: Don't use AC_VFORK.
6833 * groff/pipeline.c (run_pipeline): Use fork() always.
6835 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
6837 * grops/ps.cc (main): Use %1 not %s in error message for -w.
6839 * Makefile.in (CCPROGDIRS): Add grolj4.
6840 (DEVDIRS): Add devlj4.
6841 * grolj4, devlj4: New directories.
6842 * tmac/troffrc: Handle lj4.
6843 * tmac/tmac.lj4: New file.
6845 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
6847 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
6849 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
6851 * troff/input.cc (do_if_request): At end of second string, switch
6852 environments before getting next token.
6854 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
6856 * devps/psstrip.sed: Split rule that strips whitespace on either
6859 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
6861 * troff/node.h (font_family::make_definition): Add return value to
6862 declaration. * troff/symbol.h (symbol::operator==,
6863 symbol::operator!=): Likewise.
6865 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
6867 * groff/groff.cc (main, help, synopsis): Handle -S.
6868 (possible_command::insert_arg): New function.
6870 * tmac/tmac.safer: New file.
6871 * tmac/msafer.man: New file.
6872 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
6874 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
6876 * pic/pic.h, pic/main.cc (safer_flag): New variable.
6877 * pic/pic.y (placeless_element): Avoid unsafe operations if
6878 `safer_flag' is set.
6879 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
6881 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
6883 * eqn/lex.cc (get_token): Put call to add_context() in block to
6884 work around Sun C++ 4.0 bug.
6886 * include/stringclass.h (operator +): Use ?: instead of `if' to
6887 work around Sun C++ 4.0 bug.
6889 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
6891 * tbl/main.cc (process_format): Accept - as a synonym for the _
6894 * libbib/index.cc (minus_one): Don't declare as const.
6896 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
6898 * troff/input.cc (get_char_for_escape_name): Push back a newline.
6900 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
6902 * troff/input.cc (write_macro_request): New function.
6903 (init_input_requests): Bind write_macro_request to writem.
6905 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
6907 * tmac/tmac.s (@EN): Turn filling back on even if there was no
6910 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
6912 * tmac/tmac.s (@TS): Renamed from TS.
6913 (TS): Call LP then TS again.
6914 (cov*ab-init): Alias @TS to TS.
6916 * tmac/tmac.s: Allow QP or RS to initialize.
6918 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
6919 Move initializations of PS and LL here.
6920 (par@init): Don't initialize HY. Avoid changing environment 0.
6921 (par*env-init): Don't all par@reset.
6923 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
6925 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
6927 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
6929 * Makefile.in (MDEFINES): Add LDFLAGS.
6930 (LDFLAGS): Add definition line.
6932 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
6934 * troff/input.cc (get_optional_char): Split off error check into...
6935 (check_missing_character): New function.
6936 * troff/token.h: Declare it.
6937 * troff/env.cc (margin_character): Don't call get_optional_char.
6938 Only call tok.next() after making the node.
6940 * include/lib.h (getopt): Make 2nd argument char *const *.
6942 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
6944 * nroff/conftest.sh: Deleted.
6946 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
6948 * pic/make-dos-dist: Deleted.
6950 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
6952 * devps/psstrip.sed: Strip comments before stripping trailing
6955 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
6957 * Version 1.09 released.
6959 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
6961 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
6963 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
6965 * libgroff/font.cc (font::load_desc): Fix typo in error message.
6967 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
6969 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
6970 about returning without a value.
6972 * troff/charinfo.h (charinfo::get_special_translation): Cast
6973 TRANSLATE_NONE to int.
6975 * refer/token.cc (lookup_token, store_token): Remove bogus loop
6976 test. Fix test so that it works with n unsigned.
6978 * pic/pic.y (defaults_table): Fully bracket initializer.
6979 * pic/lex.cc (lookup_keyword): Likewise.
6980 * eqn/lex.cc (token_table, def_table): Likewise.
6981 * eqn/box.cc (param_table): Likewise.
6982 * troff/input.cc (warning_table): Likewise.
6983 * libgroff/font.cc (table): Likewise.
6984 * grops/ps.cc (ps_printer::special): Likewise.
6985 * grops/psrm.cc (resource_manager::process_file): Likewise.
6986 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
6987 * refer/command.cc (command_table): Likewise.
6988 * addftinfo/addftinfo.cc (param_table): Likewise.
6990 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
6991 about temp's being unused.
6992 (unused): New function.
6994 * groff/pipeline.cc: Declare c_fatal.
6996 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
6999 * libbib/index.cc (index_search_item::load): Prevent compiler
7000 warnings about fd_closer's being unused.
7001 (unused): New function.
7003 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
7005 * troff/input.cc (copy_mode_error): Make `prefix' static.
7008 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
7010 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
7011 HAVE_CC_OSFCN_H and modify accordingly.
7013 * troff/input.cc (init_charset_table): radicalex overlaps
7016 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
7017 udodo!hans@relay.NL.net).
7018 * groff/configure.in: Call it.
7020 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
7021 * groff/configure.in: Call it.
7022 * include/lib.h: Conditionalize declaration of pclose.
7024 * troff/div.cc (last_page_number): New global variable.
7025 (top_level_diversion::begin_page): Exit if we just printed the
7027 * troff/div.h (last_page_number): Declare it.
7028 * troff/input.cc (parse_output_page_list): Set last_page_number.
7030 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
7031 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
7032 tmac/tmac.X: Likewise.
7033 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
7034 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
7036 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
7038 * tmac/doc-ditroff (hK): Remove groff specific code which
7039 prevented page-breaks between separate manual entries. If this is
7040 the first page, don't set the page number to 1.
7042 * acgroff.m4 (GROFF_POSIX): New macro.
7043 * configure.in: Use it.
7045 * troff/node.cc (class real_output_file,
7046 real_output_file::real_output_file,
7047 real_output_file::~real_output_file): Conditionalize use of
7048 popen/pclose on POPEN_MISSING.
7049 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
7050 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
7051 (pipe_source): Similarily.
7053 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
7055 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
7056 presence of declarations by trying to compile example with
7057 conflicting declarations. (gcc only gives a warning for missing
7060 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
7062 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
7063 (from Ulrich Lauther).
7065 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
7067 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
7069 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
7071 * indxbib/indxbib.cc (write_hash_table): Add code for case where
7072 pointers and ints have different sizes.
7074 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
7076 * tmac/tmac.s (par*env-init): Call par@reset.
7078 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
7080 * tmac/tmac.s (@IP): Switch to a new environment when diverting
7082 (par*push-tag-env, par*pop-tag-env): New macros.
7084 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
7086 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
7087 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
7089 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
7090 comment. Include <time.h>.
7092 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
7094 * grops/ps.cc (is_small_h, is_small_v): Deleted.
7095 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
7098 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
7100 * troff/input.cc (read_request): Only print a prompt if reading
7101 from the terminal. Also clearerr on EOF if reading from the
7102 terminal. Declare isatty.
7104 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
7106 * refer/label.y: Rename map_t to map_func and extractor_t to
7109 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
7111 * include/assert.h: Don't use volatile.
7112 * libgroff/assert.cc: Likewise.
7114 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
7116 * troff/input.cc (abort_request): Look at character in tok before
7119 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
7121 * troff/troff.h (NO_RETURN): Deleted.
7122 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
7123 * troff/input.cc (exit_troff): Likewise
7125 * Makefile.in: Remove `Making ...' messages since GNU make now
7128 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
7130 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
7132 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
7135 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
7137 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
7139 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
7141 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
7142 MARK_REG if there was no left delimiter.
7144 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
7146 * pic/troff.cc (troff_output::text): Set line thickness to
7147 relative before outputting text.
7149 * tmac/tmac.e (@k): Don't zero ?T.
7152 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
7154 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
7156 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
7158 * troff/input.cc (decode_args): Warn about unquoted tabs (from
7161 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
7163 * troff/input.cc (ignoring): New variable.
7164 (ignore): Set ignoring during call to do_define_macro.
7165 (do_define_macro): Clear ignoring before interpolating terminating
7167 (copy_mode_error): New function.
7168 (get_char_for_escape_name, read_long_escape_name,
7169 interpolate_arg): Use copy_mode_error.
7170 (warning_table): Add WARN_IG.
7171 * troff/troff.h (WARN_IG): Declare.
7172 (WARN_TOTAL): Change accordingly.
7174 * groff/pipeline.c (strsignal): Rename to xstrsignal.
7175 * groff/groff.cc (strsignal): Delete declaration.
7177 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
7179 * troff/div.cc (page_offset): Use 'm' as default scaling.
7181 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
7183 * nroff/nroff.sh: Ignore -u.
7185 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
7187 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
7189 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
7191 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
7193 (B2): With -Tascii, leave additional vertical space before
7194 and after. Ensure that the left and right indent is restored to
7195 what it was even if the point size changes. Don't call
7196 par@finish. Change the indent, line length and title length
7197 directly. With -Tascii, make the width of the box 1n less.
7198 (B1): Remember 1n at the current point size. Don't call
7199 par@reset. Change the indent, line length and title length
7200 directly. Ensure that the temporary indent is preserved.
7201 (par*box-mark-top): Turn off no spacing mode.
7203 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
7205 * Makefile.in (dist): Use .gz suffix.
7207 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
7209 * troff/input.cc (main): Add return 0.
7210 * pic/main.cc (main): Use return instead of exit.
7211 * tbl/main.cc (main): Likewise.
7212 * eqn/main.cc (main): Likewise.
7213 * grops/ps.cc (main): Likewise.
7214 * grotty/tty.cc (main): Likewise.
7215 * groff/groff.cc (main): Likewise.
7216 * grodvi/dvi.cc (main): Likewise.
7217 * refer/refer.cc (main): Likewise.
7218 * indxbib/indxbib.cc (main): Likewise.
7219 * lkbib/lkbib.cc (main): Likewise.
7220 * soelim/soelim.cc (main): Likewise.
7221 * addftinfo/addftinfo.cc (main): Likewise.
7222 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
7223 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
7225 * troff/token.h (process_input_stack): Don't declare as static.
7226 * troff/input.cc: Likewise.
7228 * troff/node.c (invalidate_fontno): Make it a static member of
7229 class font_family. Change callers.
7230 * troff/node.c: Change declaration.
7232 * tbl/main.cc (struct input_entry_format): Add explicit public
7234 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
7235 struct double_hline_stuff): Likewise.
7236 * tbl/table.h (struct entry_format): Likewise.
7237 * pic/object.h (struct saved_state): Likewise.
7239 * include/stringclass.h: Add forward declarations of friend
7240 functions that are later declared as inline. Don't include inline
7241 specifier in friend declaration.
7243 * libgroff/lib.h: Declare popen and pclose.
7244 * acgroff.m4 (GROFF_POPEN): New macro.
7245 * configure.in: Call it.
7247 * include/lib.h (PI): New constant. Undef first if necessary.
7248 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
7249 * grops/ps.cc (degrees, radians): Likewise.
7250 * libgroff/font.cc (font::get_skew): Likewise.
7252 * grops/ps.cc (is_ascii): New function.
7253 (ps_output::put_string): Use is_ascii. Use csprint rather than
7255 (ps_printer::define_encoding): Use csspace.
7256 * libgroff/strtol.c (ISASCII): New macro.
7257 (strtol): Cast arguments to is*() and tolower() to unsigned char.
7258 Use ISASCII rather than isascii.
7259 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
7260 * libgroff/cset.cc: Likewise.
7261 * libdriver/input.cc: Include cset.h.
7262 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
7265 * refer/refer.cc (main): Use %ld rather than %d for longs.
7267 * libbib/index.cc (index_search_item_iterator::get_tag): Use
7270 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
7272 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
7274 * troff/input.cc (hyphenation_code): Skip white space between
7277 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
7279 * tbl/table.h (table::entry_list_tailp): New member.
7280 (table::table): Initialize it.
7281 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
7284 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
7286 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
7287 with negative horizontal positions. Remove casts of glyph::hpos to
7289 (USHRT_MAX): Delete definition.
7290 (SHRT_MAX, SHRT_MIN): New definitions.
7291 (glyph::hpos): Change type to short.
7292 (tty_printer::end_page): Output multiple backspaces if necessary.
7293 Remove casts of glyph::hpos to int.
7295 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
7297 * tmac/tmac.s (@RT): New definition.
7299 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
7301 * refer/refer.cc (do_file): Make sure current_filename is set when
7304 * pic/common.cc (common_output::dot_line): Handle zero length
7307 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
7309 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
7310 (par@init): Initialize \n[HY].
7312 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
7314 * troff/dictionary.cc (dictionary::remove): Continue when
7317 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
7319 * Makefile.com (.y.cc): Avoid ending up with two versions of
7322 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
7324 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
7325 (\(,C): Likewise. Also fix typo.
7327 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
7329 * lib.h: Delete extraneous semi-colon.
7331 * Add pso request: `so' from a pipe.
7332 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
7333 (file_iterator::close): New function.
7334 (file_iterator::~file_iterator, file_iterator::next_file): Use
7335 file_iterator::close.
7336 (file_iterator::backtrace): Say `process' rather than `file' when
7337 the stream is popened.
7338 (pipe_source): New function.
7339 (init_input_requests): Bind ".pso" to pipe_source.
7341 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
7343 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
7345 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
7346 digits in lower case.
7348 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
7350 * Version 1.08 released.
7352 * Makefile.in (dist): Insert || true after ln -s commands that
7355 * mm: Update to mm 1.16.
7357 * acgroff.m4 (GROFF_CSH_HACK): New macro.
7358 * configure.in: Call GROFF_CSH_HACK. Substitute for
7360 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
7362 * nroff/Makefile.sub (nroff): New target.
7363 (install_data): Install nroff.
7364 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
7365 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
7367 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
7369 * eqn/Makefile.sub (neqn): Add chmod +x.
7371 * grog/Makefile.sub (grog): Remove spurious semi-colon.
7373 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
7375 * troff/input.cc (string_iterator::string_iterator()): Initialize
7378 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
7380 * troff/div.cc (macro_diversion::space,
7381 top_level_diversion::space): Don't set high_water_mark.
7382 (macro_diversion::output, top_level_diversion::output): Don't
7383 include post line space in high water mark.
7385 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
7387 * eqn/eqn.y: Don't define YYDEBUG.
7388 * pic/pic.y: Likewise.
7390 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
7392 * tmac/tmac.e ([3): Add space after comma following editors.
7393 Change double spaces to single spaces.
7394 ([4): Change double spaces to single spaces.
7396 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
7397 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
7398 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
7399 after %!PS-Adobe- (for Newsprint).
7401 * troff/div.cc (top_level_diversion::begin_page): When
7402 before_first_page is 1, set page_number to 1.
7404 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
7406 * eqn/box.cc (box::top_level): Protect equation with \&.
7408 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
7410 * groff/groff.cc (possible_command::set_name): Delete old name.
7412 * groff/groff.cc (possible_command::~possible_command): Use
7415 * troff/node.cc (troff_output_file::begun_page): New member.
7416 (troff_output_file::troff_output_file): Initialize it.
7417 (troff_output_file::really_begin_page): Only output V command if a
7418 page has been begun.
7420 * pic/pic.y (placeless_element): Delete argument to PRINT after
7423 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
7425 * Make wrapman work.
7426 * troff/div.h (class top_level_diversion): Replace
7427 first_page_begun by before_first_page (with opposite sense).
7428 * Change first_page_begun to before_first_page inverting sense.
7429 * troff/div.cc (class nl_reg): New class.
7430 (init_div_requests): Use class nl_reg for \n(nl.
7431 (top_level_diversion::begin_page): Don't call
7432 output_file::begin_page if before_first_page is 2;
7433 reset before_first_page afterwards. If have_next_page_number is
7434 false, then always increment page_number.
7435 * tmac/tmac.an: Set traps within TH rather than at the top-level.
7436 Restore compatibility mode after loading, and then disable
7437 compatibility mode in TH.
7439 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
7441 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
7443 * troff/node.h (output_file::trailer): Declare.
7444 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
7445 * troff/node.cc (output_file::trailer): New function.
7446 (troff_output_file::~troff_output_file): Move most code into...
7447 (troff_output_file::trailer): New function.
7448 (class troff_output_file): Delete page_length member. Declare
7450 (troff_output_file::really_begin_page): Use current page length
7451 for final V command.
7453 * tbl/main.cc (struct options): New decimal_point_char member.
7454 (options::options): Initialize this.
7455 (process_options): Implement decimalpoint option.
7456 (process_data): Pass decimal_point_char option to table::table.
7457 * tbl/table.h (class table): New decimal_point_char member.
7458 (table::table): Add additional argument.
7459 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
7460 second argument specifying decimal point character. Use this
7462 (table::table): Initialize decimal_point_char.
7463 (table::add_entry): Change call to find_dot.
7465 * troff/input.cc (get_copy, token::next): Implement \V.
7466 (interpolate_environment_variable): New function.
7468 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
7470 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
7471 * pic/pic.y: Likewise.
7473 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
7475 * refer/ref.cc (reference::insert_field, reference::delete_field):
7477 * troff/number.cc (parse_term): Likewise.
7479 * acgroff.m4 (GROFF_PROG_YACC): New macro.
7480 * configure.in: Use GROFF_PROG_YACC.
7482 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
7484 * Makefile.in (OPTIMIZE): New define.
7485 (DEBUG): Empty by default.
7486 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
7488 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
7489 (GROFF_ARRAY_DELETE): Likewise.
7490 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
7492 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
7494 * devps/psstrip.sed: Use different delimiter on last line (so that
7495 it works with BSD 4.4 sed.)
7497 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
7499 * devps/psstrip.sed: Delete comments.
7501 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
7502 optind, opterr, optarg.
7503 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
7506 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
7508 * Makefile.in (check): Dummy target.
7510 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
7512 * Version 1.07 released.
7514 * Integrate mm 1.11.
7516 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
7517 where start_col was meant.
7519 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
7521 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
7523 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
7525 * troff/input.cc (token::next): Make \z\o'...' and similar things
7528 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
7530 (environment): Add margin_character_flags member.
7531 * env.cc (environment::environment(symbol),
7532 environment::environment(const environment *): Initialize
7533 margin_character_flags.
7534 (margin_character): Rewrite.
7535 (environment::output_line): Add a margin character if
7536 margin_character_flags is non-zero. Turn off the
7537 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
7538 zero, use margin_character_node without copying and then set
7539 margin_character_node to 0.
7541 * devps/DESC.in: Change minimum size to 1000.
7543 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
7545 * troff/symbol.h (symbol::hash): Change return type to unsigned
7547 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
7550 * test-groff: Use -r rather than -x.
7552 * grops/psfig.diff: Include in distribution again.
7554 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
7556 * Makefile.in (dist): Use gzip.
7558 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
7560 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
7561 unistd.h as well as in stdlib.h.
7562 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
7563 defined; otherwise include <sys/types.h> and <unistd.h> if
7564 UNISTD_H_DECLARES_GETOPT is defined.
7566 * configure.in: use builtin(include, ... rather than include(...
7567 * configure: Regenerate with autoconf 1.3.
7569 * libdriver/print.cc (printer::adjust_arc_center): Use new
7570 algorithm suggested by Andy Fyfe.
7572 * libdriver/printer.cc (printer::adjust_arc_center): New function.
7573 * include/printer.h: Declare this.
7574 * grops/ps.cc (ps_printer::draw): Use it.
7575 * grodvi/dvi.cc (dvi_printer::draw): Use it.
7577 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
7579 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
7581 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
7583 * eqn/main.cc (main): Handle "eqn -".
7585 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
7587 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
7589 * mm: Integrate version 1.08.
7591 * pic/troff.cc (troff_output::finish_picture): Set
7592 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
7593 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
7594 if it's not defined. Check whether the register is non-zero rather
7595 than whether it's not defined.
7596 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
7598 * indxbib/indxbib.cc: Move all signal handling into...
7599 * indxbib/signal.c: New file.
7600 * configure.in: Call AC_RETSIGTYPE.
7602 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
7603 * configure.in: Call GROFF_STRUCT_EXCEPTION.
7604 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
7606 * troff/input.cc (token::token, token::operator=): Work round SGI
7608 * pic/object.cc (position::position): Likewise.
7610 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
7612 * pic/pic.h: Move declaration of hypot().
7614 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
7616 * pic/pic.h: Declare hypot().
7618 * pic/pic.h: Define M_PI if necessary.
7620 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
7622 * tmac/tmac.e (re): Add alternative version that doesn't use groff
7625 * devps/prologue.ps (RE): Handle the possibility that the old font
7626 doesn't have a FontName entry.
7628 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
7630 * tmac/tmac.e (fam): Redefine to set family in environment 2.
7631 (@C): Use @fam not fam.
7633 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
7635 * lookbib/lookbib.cc (main): Change type of start to const char *.
7636 * lkbib/lkbib.cc (main): Likewise.
7638 * eqn/lex.cc (definition::definition): Don't use member
7639 initializer syntax for members of anonymous unions.
7641 * troff/input.cc (input_stack::backtrace): Change type of to const
7644 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
7646 * include/stringclass.h (class string): Declare inline friend
7647 functions as inline in class declaration.
7648 * troff/hvunits.h (class hunits, class vunits): Likewise.
7649 * include/refid.h (class reference_id): Likewise
7650 * troff/troff.h (points_to_units(units), scale(units, double)):
7651 Delete declarations.
7652 * libdriver/input.cc (get_char): Delete declaration.
7653 * include/lib.h: Change 2nd argument of getopt from const char **
7655 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
7656 char **' before assigning to a `const char **'.
7657 * tbl/table.cc: Delete extra declarations of prints().
7659 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
7661 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
7662 char **' before assigning to a `const char **'.
7664 * libgroff/errarg.cc (errarg::errarg): Don't use member
7665 initializer syntax for members of anonymous unions.
7667 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
7669 * mm: Integrate version 1.07.
7671 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
7673 * troff/input.c (translate2): Rename to
7674 (translate_no_transparent).
7675 (init_input_requests): Rename tr2 to trnt.
7677 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
7679 * troff/charinfo.h (class charinfo): Add transparent_translate field.
7680 (charinfo::set_translation, charinfo::set_special_translation):
7681 Add second argument that specifies value for
7682 transparent_translate.
7683 (charinfo::get_translation, charinfo::get_special_translation):
7684 Add optional second argument that specifies whether translation is
7685 being used for transparent throughput.
7686 * troff/input.cc (charinfo::set_translation,
7687 charinfo::set_special_translation): Handle second argument.
7688 (charinfo::charinfo): Initialize transparent_translate.
7689 (translate): Split main part off into
7690 (do_translate): New function. Pass argument saying whether
7691 translation applies to transparent throughput.
7692 (translate2): New request.
7693 (init_input_requests): Bind translate2 to `tr2'.
7695 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
7697 * tbl/table.h (class table): Add `nokeep' flag.
7698 * tbl/main.cc (process_options): Handle `nokeep' option.
7699 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
7700 table::do_bottom): Don't output keep/release macro definitions or
7701 calls when `nokeep' option has been specified.
7703 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
7705 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
7707 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
7709 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
7710 block_entry::divert, alphabetic_block_entry::divert): Add extra
7711 argument giving column separation.
7712 (table::compute_widths): Pass column separation to
7713 table_entry::divert().
7714 (block_entry::do_divert): If an entry spans multiple columns and a
7715 minimumum width has been specified for each column, then set the
7716 line length to the sum of the widths (plus possibly the column
7719 * troff/input.cc (set_escape_char): Don't set the escape_char
7720 until after calling has_arg().
7722 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
7724 * tbl/table.cc (table::do_top): Add missing \s0 for double box
7727 * tbl/table.cc (table::print_double_hline): Avoid extra new line
7728 in case where r > nrows - 1.
7730 * tbl/table.cc (BODY_HEIGHT): Deleted.
7731 (LINE_SEP): New definition.
7732 (table::print_single_hline, table::print_double_hline,
7733 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
7734 table::do_row, table::do_top): Use LINE_SEP space before a line
7735 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
7737 * tbl/table.cc (text_entry::print_contents): New function.
7738 (text_string_name, right_text_string_name): Deleted.
7739 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
7740 (simple_text_entry::do_width, numeric_text_entry::do_width,
7741 alphabetic_text_entry::do_width): Don't store the contents of the
7743 (left_text_entry::simple_print, right_text_entry::simple_print,
7744 center_text_entry::simple_print,
7745 alphabetic_text_entry::simple_print,
7746 numeric_text_entry::simple_print): Print the entry directly
7747 instead of using the stored string.
7749 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
7751 * devps/Makefile: Strip PostScript files.
7752 * devps/prologue: Rename to...
7753 * devps/prologue.ps.
7754 * devps/psstrip.sed: New file.
7755 * devps/download: Use .pfa rather than .ps for installed versions
7758 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
7760 * troff/env.cc (input_trap): Give a warning if the argument is out
7763 * troff/env.cc (adjust): Treat negative argument as missing. Round
7764 argument > 5 down to 5.
7766 * troff/env.cc (center, right_justify): Make negative argument zero.
7768 * troff/div.cc (page_offset, vertical_position_traps): Treat
7769 invalid argument as missing.
7770 * troff/env.cc (line_spacing, line_length, title_length, indent,
7771 underline, hyphen_line_max_request, control_char,
7772 no_break_control_char, widow_control_request, adjust, input_trap,
7773 point_size): Likewise.
7774 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
7775 constant_space): Likewise.
7776 * troff/input.cc (compatible, shift, warn_request,
7777 set_escape_char): Likewise.
7779 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
7780 * tbl/table.cc (table::table): Likewise.
7782 * Makefile.dev (install_dev): depends on $(DEVFILES).
7784 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
7786 * devX75, devX75-12, devX100, devX100-12: New directories.
7787 * Makefile.in: Add these to DEVDIRS.
7789 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
7790 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
7791 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
7792 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
7794 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
7795 (uninstall): New target.
7796 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
7797 uninstall_prog, uninstall_dev): New targets.
7799 * troff/div.cc (return_request): Treat an invalid argument as
7802 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
7804 * tmac/tmac.e ((f): Set up the environment even when there's a
7805 current diversion. Transperently throughput a call to @N.
7808 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
7810 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
7811 up to vertical resolution.
7813 * tbl/table.cc (table::do_row): Change row number after printing
7816 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
7818 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
7820 * Rename CHANGES to NEWS.
7822 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
7824 * libgroff/new.cc (operator new): Avoid calling malloc(0).
7826 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
7828 * man.ultrix: Removed.
7830 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
7832 * Makefile.comm (extraclean): Delete files whose names begin with
7835 * pic/troff.cc (troff_output::text): Fix typo in implementation of
7838 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
7840 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
7841 * troff/div.cc (page_length, need_space, space_request): Treat
7842 invalid optional argument as missing.
7843 * troff/env.cc (number_lines): If the first argument is present
7844 but not a number, turn on line numbering, don't change the next
7845 line number and parse the remaining arguments.
7847 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
7849 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
7851 * eqn/box.h: Change declaration accordingly.
7852 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
7853 the specified size was bad but don't give an error. Check for
7855 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
7856 * eqn/lex (do_size): Likewise.
7858 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
7860 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
7863 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
7865 * tbl/table.cc (table::init_output): Improve error message when
7866 table won't fit on one page.
7868 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
7870 * pic/troff.cc (troff_output::start_picture): Generate line
7871 containing a horizontal motion equal to the width of the picture.
7873 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
7874 using GROFF_COMMAND_PREFIX environment variable.
7876 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
7878 * mdate.sh: Use $NF rather than $(NF).
7880 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
7882 * pic/main.cc (main): Use %1 not %c in argument to warning.
7884 * eqn/main.cc (main): Output code to check that geqn was given the
7887 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
7889 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
7890 `ln -s ../Makefile .; make; rm -f Makefile'.
7892 * troff/hyphen: Rename to...
7894 * troff/input.cc (main): Delete -H option. Don't call
7896 * troff/env.cc: Include searchpath.h and macropath.h.
7897 (exception_dictionary): Deleted.
7899 (read_hyphen_file): Deleted.
7900 (hyphenation_language): New struct.
7901 (class trie, class hyphen_trie): Move declarations up.
7902 (trie_node::~trie_node): Deleted.
7903 (trie::delete_trie_node): New function.
7904 (trie::do_delete): New pure virtual function.
7905 (hyphen_trie::do_delete): New function.
7906 (trie::~trie): New function.
7907 (hyphen_trie::~hyphen_trie): New function.
7908 (trie::clear): No need to chcek that tp is not 0.
7909 (current_language, language_dictionary): New variables.
7910 (hyphen_word): Give an error if no current language. Use
7911 exceptions dictionary in current language.
7912 (hyphen_trie::read_patterns_file): Find file using macro_path.
7913 Allow comments (starting with %) in patterns file. Don't make it
7914 a fatal error if the file can't be found.
7915 (hyphenate): Return if no current language. Get the exceptions
7916 dictionary and the hyphenation patterns from the current language.
7917 (set_hyphenation_language): New variable.
7918 (hyphenation_patterns_file): New function.
7919 (hyphenation_language_reg): New class.
7920 (hyphenation_language_reg::get_string): New function.
7921 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
7922 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
7924 * groff/groff.cc (main, help, synopsis): Delete -H option.
7925 * include/Makefile.sub: Don't define HYPHENFILE.
7926 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
7927 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
7928 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
7929 hyphenation patterns.
7931 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
7933 * eqn/neqn.sh: New file.
7934 * eqn/Makefile.sub: Handle neqn.sh.
7936 * eqn/eqn.h: Declare `nroff' variable.
7937 * eqn/box.cc (param_table): Add `nroff' param.
7939 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
7941 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
7943 * troff/troff.h (WARN_FONT): New warning.
7944 (WARN_TOTAL): Change accordingly.
7945 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
7946 (warning_table): Add WARN_FONT.
7947 * troff/node.cc (mount_font_no_translate): Pass argument to
7948 font::load_font. If this is non-zero, give a warning.
7949 Don't give an error message when accessing a font that has already
7950 been found to be invalid.
7951 * include/font.h (font::load, font::load_font): Add additional
7952 optional argument which suppresses error message if the font is
7954 * libgroff/font.cc (font::load_font): Handle additional argument.
7955 (font::load): Add additional argument. If this is non-null, set it
7956 to 1 and don't give error message.
7958 * include/printer.h (printer::end_page): Add argument giving
7960 * libdriver/input.cc (do_file): Pass this.
7961 * grops/ps.cc (ps_printer::end_page): Add argument.
7962 * grodvi/dvi.cc (dvi_printer::end_page,
7963 draw_dvi_printer::end_page): Add argument.
7964 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
7965 columns_per_page members. New member nlines.
7966 (DEFAULT_LINES_PER_PAGE): Deleted.
7967 (tty_printer::tty_printer): Don't compute lines_per_page from
7968 font::paperlength. Don't compute columns_per_page from
7970 (tty_printer::add_char): Don't check horizontal position against
7971 columns_per_page. Grow glyphs vector if neccessary.
7972 (tty_printer::end_page): Add argument giving page_length in units.
7973 Discard lines past end of page.
7975 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
7977 * tmac/tmac.tty-char: Fix definition of \(/l.
7979 * tmac/tmac.X: Define \(en.
7981 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
7983 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
7984 lpq, then use lp rather than lpr.
7986 * tmac/tmac.s (par@reset): Don't call `ad'.
7987 (par*env-init): Call `ad'.
7989 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
7991 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
7994 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
7995 * indxbib/indxbib.cc: Likewise.
7997 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
7999 * libgroff/putenv.c: New file.
8000 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
8001 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
8002 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
8003 stdlib.h with AC_HAVE_HEADERS.
8005 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
8007 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
8010 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
8012 * eqn/box.cc (gsize): Make it an int.
8013 (set_gsize): Parse argument handling increment or decrement.
8014 (box::top_level): Convert gsize to a string.
8016 * troff/input.cc (exit_troff): Make buf unsigned char [].
8017 Call to make_temp_iterator casts buf to char*.
8019 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
8021 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
8022 * Makefile.cpg (depend.temp): Likewise.
8024 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
8026 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
8028 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
8030 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
8032 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
8034 * Version 1.06 released.
8036 * Integrate mm 1.04.
8038 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
8040 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
8042 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
8044 * afmtodit/afmtodit.pl: Add -n option that disables generation of
8046 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
8047 afmtodit. Regenerate.
8049 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
8050 @f back past the current position.
8052 * tmac/tmac.e: Change calls to @R so that comments are not part of
8055 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
8057 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
8059 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
8060 check that we can link a call to a function declared in <stdio.h>.
8061 (GROFF_UNISTD_H): New macro.
8062 * configure.in: Call it.
8063 * Makefile.in: Document it.
8064 * include/posix.h: New file.
8065 * troff/troff.h: Don't include <osfcn.h>
8066 * troff/input.cc: Include posix.h.
8067 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
8069 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
8070 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
8072 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
8073 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
8074 * libbib/search.cc (O_RDONLY): Delete definition.
8075 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
8076 Don't include <osfcn.h>.
8078 * acgroff.m4 (GROFF_TIME_T): New macro.
8079 * configure.in: Call it.
8080 * Makefile.in: Document it.
8082 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
8083 * configure.in: Call it.
8084 * Makefile.in: Document -DTRADITIONAL_CPP.
8085 * include/ptable.h: Don't include generic.h.
8088 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
8089 Afterwards remove [T1 and [T2.
8090 (ref*spec!0, ref*spec!2): Use T1 rather than T.
8091 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
8092 (ref*add-T2): Renamed from ref*add-T.
8093 (ref*add-T1): New macro.
8095 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
8097 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
8099 * libbib/index.cc: Include <fcntl.h>.
8100 (O_RDONLY): Define if necessary.
8101 (make_index_search_item, index_search_item_iterator::get_tag,
8102 index_search_item::check_files): Use O_RDONLY.
8103 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
8104 (O_RDONLY): Define if necessary.
8105 (search_list::add_file): Use O_RDONLY.
8106 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
8108 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
8111 * libbib/index.cc (S_ISREG): Define it if necessary.
8112 (index_search_item::load): Use S_ISREG.
8114 * include/driver.h: Include <errno.h>.
8116 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
8118 * eqn/box.cc (body_height): Increase default value to 85.
8119 (body_depth): Increase default value to 35.
8121 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
8123 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
8124 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
8125 protected from expansion with \E.
8127 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
8129 * Makefile (Makefile): New target.
8131 * Makefile.sub (configure, distfiles): New targets.
8133 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
8136 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
8138 * eqn/box.cc (param_table): Add body_height and body_depth.
8140 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
8142 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
8144 * psbb/Makefile.sub: Don't link with libgroff.a.
8146 * acgroff.m4 (GROFF_PUTENV): New macro.
8147 * configure.in: Call GROFF_PUTENV.
8148 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
8149 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
8152 * troff/env.cc (distribute_space): Rename force_forward argument
8153 to force_reverse. Reverse the list if force_reverse is true.
8155 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
8157 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
8159 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
8160 height or depth to be negative. Guard against SUP_RAISE quantity
8163 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
8165 * devps/generate/textmap: Add `an' (arrowhorizex).
8166 * tmac/tmac.ps: \(an overlaps horizontally.
8167 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
8169 * devps/symbolchars: Add arrowverttp, arrowvertbt.
8170 * devps/textmap: Add arrowvertex.
8171 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
8172 updownarrow delimiters.
8173 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
8175 * tbl/table.cc (simple_entry::position_vertically,
8176 block_entry::position_vertically): For a centered entry, perform
8177 the motion in two stages.
8179 * refer/refer.cc (split_punct): Don't call lookup_token if there
8182 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
8184 * troff/input.cc (token::next): Delete token_node after copying
8187 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
8190 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
8192 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
8194 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
8196 * grops/ps.cc (usage): -b option takes an argument.
8198 * devps/prologue (PLG): New procedure.
8199 * grops/ps.cc (main, usage): New -g option.
8200 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
8203 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
8205 * include/cset.h: Include <limits.h> if we have it.
8207 * libgroff/illegal.cc: New file.
8208 * include/lib.h (illegal_input_char): Use table.
8209 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
8210 * pic/lex.cc (ARG1): Renumber to 14.
8211 * eqn/lex.cc (ARG1: Likewise.
8213 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
8214 (eg 1.05.90) correctly.
8216 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
8218 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
8219 Rename $r and $R registers to $v and $V.
8220 ($r, $R): Initialize to 0.
8221 (@v, @V): New macros.
8225 * troff/input.cc (main, usage): Add -R option that says not to
8227 * eqn/main.cc (main, usage): Rename -n to -R.
8229 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
8231 * devps/DESC.in: Leave font positions 5-9 blank.
8232 * devdvi/DESC.in: Likewise.
8234 * grog/grog.pl: Handle `.PS <file' correctly.
8236 * troff/input.cc (input_stack::push): Improve error message when
8237 input stack limit exceeded.
8239 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
8241 * refer/refer.cc (main): Fix typo in handling of `a' option.
8243 * refer/refer.cc (do_bib): In state START after a newline remain
8246 * groff/groff.sh: Deleted.
8247 * groff/Makefile.sub: Delete handling of groff.sh.
8249 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
8250 to determine whether to use \X'ps:...'.
8251 * tmac/troffrc: Set 0p register to 0.
8252 * tmac/tmac.ps: Set 0p register to 1.
8254 * groff/groff.cc: Support -X option. Give warning for -TXps and
8255 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
8256 * tmac/troffrc: Support -r.X=1.
8258 * pic/troff.cc (troff_output::dot): Don't test
8259 zero_length_line_flag.
8261 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
8263 * include/lib.h: Declare getopt() and friends unless
8264 STDLIB_H_DECLARES_GETOPT is defined.
8266 * doc/chars.tr: Delete.
8267 * man/groff_char.man: New file.
8269 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
8271 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
8272 user has changed register format.
8274 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
8276 * groff/groff.cc: Get rid of device_table. Get postprocessor from
8277 `postpro' command in DESC file. Get spooler command from `print'
8278 command in DESC file. Execute spooler command with /bin/sh.
8280 * groff/groff.cc: Split Unix-specific parts into...
8281 * groff/pipeline.c: New file.
8284 * COPYING: New file.
8285 * all files: Update copyright notices.
8287 * Rearrange files. Redo Makefiles. Use autoconf.
8289 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
8291 * troff/input.c (charinfo_to_node_list): Interpret character
8292 definition with escape_char of `\'.
8294 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
8296 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
8297 Define INT_DIGITS as big enough for 64-bit integer.
8298 * lib/strtol.c: Don't include lib.h.
8299 * lib/lib.h: Delete ifdef __cplusplus stuff.
8301 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
8303 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
8304 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
8305 get DESC from current directory.
8307 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
8309 * tbl/main.c (main): Always reset the line number when reading
8312 * tbl/table.c (table::print_single_hline, table::print_double_hline,
8313 table::define_bottom_macro, table::do_row, table::do_top): Round
8314 vertical spacing up to vertical resolution.
8316 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
8318 * ps/ps.h (enum resource_type): Avoid comma at end of
8320 * dvi/dvi.c (class dvi_printer): Likewise.
8321 * dvi/tfmtodit.c (gf::load): Likewise.
8322 * refer/label.y (struct expression): Likewise.
8323 * refer/refer.c (class label_processing_state): Likewise.
8324 * refer/indxbib.c (do_file): Likewise.
8325 * troff/troff.c (enum warning_type): Likewise.
8326 * tbl/main.c (process_data): Likewise.
8327 * troff/charinfo.h (class charinfo):
8329 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
8331 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
8333 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
8335 * groff.c: Move to new groff subdirectory.
8336 * groff/Makefile: New file.
8337 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
8339 * man/mdate.sh: Use ls -L if supported.
8341 * Consolidate all header files produced by gendef into lib/defs.h.
8342 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
8343 Don't include path.h.
8344 * lib/Makefile (path.h): Don't generate.
8345 * troff/input.c: Include defs.h. Don't include config.h.
8346 * troff/Makefile (config.h): Don't generate.
8347 * refer/index.h: Don't include suffix.h.
8348 * refer/index.c: Include defs.h.
8349 * refer/indxbib.c: Include defs.h.
8350 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
8352 * refer/Makefile (suffix.h, path.h): Don't generate.
8353 * groff.c: Don't include config.h. Include defs.h.
8354 * Makefile (config.h): Don't generate.
8355 (lib/defs.h): Generate.
8356 (topclean): Remove lib/defs.h.
8358 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
8360 * lib/malloc.c, lib/getpagesize.h: Deleted.
8361 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
8363 * lib/Makefile: Delete malloc-related stuff.
8364 * lib/new.c: Workaround COOKIE_BUG if necessary.
8366 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
8367 needed header files directly.
8368 * refer/refer.h: Omit definition of DEFAULT_INDEX.
8369 * Makefile: Include definition of DEFAULT_INDEX in path.h.
8371 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
8373 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
8375 * lib/font (font::load_desc, font::load): Don't split argument of
8377 (font::handle_unknown_font_command): Change type.
8378 * ps/ps.c (ps_font::handle_unknown_font_command,
8379 handle_unknown_desc_command): Change type.
8380 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
8382 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
8384 * lib/font.h (font::handle_unknown_font_command): Add file and
8386 * lib/font.c (font::handle_unknown_font_command):
8387 * ps/ps.c (ps_font::handle_unknown_font_command):
8388 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
8389 lineno arguments. Use _with_file_and_line functions for error
8392 * lib/fontfile.c (font::unknown_desc_command_handler): New static
8394 * lib/font.c (font::set_unknown_desc_command_handler): New
8396 (font::load_desc): For unknown commands, call
8397 unknown_desc_command_handler if not null.
8398 * lib/font.h (class font): Declare them.
8399 (FONT_COMMAND_HANDLER): New typedef.
8400 * ps/ps.c (handle_unknown_desc_command): New function.
8401 (main): Set bflag if we had a -b option. Call
8402 font::set_unknown_desc_command_handler.
8403 (broken.h): Don't include.
8404 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
8406 * ps/devps/Makefile: Add `broken' command to DESC file using
8407 BROKEN_SPOOLER_FLAGS.
8409 * macros/tmac.e ([, ]): Add as synonyms for { and }.
8411 * macros/tmac.e ($p): Only exdent if \$3 > 0.
8413 * macros/tmac.e (@R, @S): New macros.
8414 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
8415 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
8416 Declare $H, $[0-9], .. macros with @S.
8417 Declare |0, |1, |2, |3 strings with @S.
8419 * macros/tmac.e (@S): Rename to @U.
8421 * macros/tmac.e (@z): Define @b and bp as empty instead of
8424 * macros/tmac.e (@m): Deleted.
8425 (@h): Don't call @m.
8426 (@z): Don't set @m trap.
8428 * macros/tmac.e ($h, $f): Define |z as empty string.
8430 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
8433 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
8435 ()f): Likewise for * register.
8437 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
8438 argument is missing, don't change $R. Call sr with three
8439 arguments when initializing.
8441 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
8443 * macros/tmac.e (sr): New macro.
8444 Initialize $r and $R using sr.
8446 * macros/tmac.e (,): Delete \*(#[.
8448 * troff/env.c (set_tabs): Read the tab type even if the position
8449 is bad. Allow the position of the first tab stop to be negative.
8451 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
8453 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
8455 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
8456 rather than -DPATHCONF_MISSING.
8457 * Makefile: Get rid of PATHCONF_MISSING.
8459 * refer/map.c: New file.
8460 * refer/index.c: Interface to mmap through map.c. Rename map_size
8462 * refer/Makefile: Handle map.c.
8463 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
8465 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
8467 * Makefile: RANLIB should be `true' if there is no ranlib.
8468 * lib/Makefile (libgroff.a): Simplify.
8469 * driver/Makefile (libdriver.a): Simplify.
8471 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
8472 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
8475 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
8477 * troff/env.c (compare_ranges): Declare as extern "C".
8479 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
8481 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
8483 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
8485 * pic/troff.c (troff_output::text): Merge in grops_output::text,
8486 but conditionalize use of \X based on \*(.T.
8487 (grops_output::*): Deleted.
8488 * pic/output.h: Delete declaration of make_grops_output.
8489 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
8490 by default. -n sets it to 0.
8491 (usage): Corresponding changes.
8492 * groff.c (main): Don't pass -x or -p to pic.
8493 * groff.sh: Likewise.
8495 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
8498 * ps/devps/afmtodit: Change calculation of asc_boundary and
8499 desc_boundary. Make these bounds inclusive.
8500 * ps/devps: Regenerate font files.
8502 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
8504 * macros/tmac.latin1: New file.
8505 * macros/tmac.tty-char: Use tmac.latin1.
8506 (tmac.tty-tr): Deleted.
8507 * macros/Makefile: Install tmac.latin1.
8508 * macros/tmac.dvi: Use tmac.latin1.
8509 * macros/troffrc: Translate \[char160] onto no-break space here.
8510 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
8512 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
8514 * macros/tmac.Xps: Use `do' request.
8516 * macros/tmac.ps: Use `do' request.
8518 * macros/tmac.e (@C): Use `do' request.
8520 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
8521 * macros/Makefile: Install tmac.X*.
8523 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
8524 * tty/Makefile: Don't install tmac.tty*.
8525 * macros/Makefile: Install tmac.tty*.
8527 * dvi/tmac.dvi: Move to macros.
8528 * dvi/Makefile: Don't install tmac.dvi.
8529 * macros/Makefile: Install tmac.dvi.
8531 * ps/tmac.ps*: Move to macros.
8532 * ps/Makefile: Don't install tmac.ps*.
8533 * macros/Makefile: Install tmac.ps*.
8535 * eqn/box.c: Provide draw_lines parameter corresponding to -D
8537 * macros/eqnrc: Set draw_lines parameter based on device.
8538 * groff.c: Don't pass -D flag to eqn.
8539 * groff.sh: Likewise.
8540 * eqn/main.c: Warn about use of -D.
8542 * troff/input.c (process_startup_file): New function.
8543 (main): Call process_startup_file().
8544 * macros/troffrc: New file.
8545 * macros/Makefile: Install troffrc.
8546 * groff.c (main): Don't pass extra -m option to troff. For a
8547 pseudo device pass the name of the pseudo device to troff using
8549 * groff.sh: Likewise.
8550 * groff.c (possible_command::prepend_arg): Deleted.
8552 * troff/input.c (do_request): New function.
8553 (init_input_requests): Bind "do" to do_request.
8555 * eqn/main.c (main): Instead of loading eqnchar from device directory,
8556 load eqnrc from macro directory.
8557 * macros/eqnrc: New file.
8558 * macros/Makefile: Install eqnrc.
8559 * ps/devps/eqnchar: Deleted.
8560 * ps/devps/Makefile: Don't install eqnchar.
8561 * dvi/devdvi/eqnchar: Deleted.
8562 * dvi/devdvi/Makefile: Don't install eqnchar.
8563 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
8566 * lib/device.[ch]: New files.
8567 * lib/font.h (font::set_device_name, font::get_device_name):
8569 * lib/fontfile.c: Use device.h.
8570 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
8571 * troff/input.c: Delete definition of `device'.
8572 (main): Don't initialize device.
8573 * troff/troff.h: Include device.h rather than declaring device.
8574 * troff/Makefile: No need to handle DEVICE.
8575 * driver/input.c: Include device.h. Don't use
8576 font::{set,get}_device_name.
8577 * groff.c, Makefile: Rename device.h to config.h.
8578 * groff.c: Use library device variable.
8579 * eqn/main.c: Use library device variable.
8580 * eqn/Makefile: No need to handle DEVICE.
8582 * lib/searchpath.[ch]: New files.
8583 * lib/Makefile: Handle searchpath.[ch].
8584 * troff/input.c (open_file, init_dirs): Deleted.
8585 (macro_dirs): Deleted.
8586 (open_mac_file, macro_source): Use class search_path.
8587 (add_string, struct string_list): Move definition.
8588 (main): Change -M option to use macro_path. Delete call to
8590 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
8591 Rewrite to use class search_path.
8592 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
8593 * lib/Makefile: fontfile.c depends on searchpath.h.
8594 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
8596 * lib/macropath.[ch]: New files.
8597 * troff/Makefile: No need to handle MACROPATH.
8599 * troff/input.c: Delete DUMP code.
8600 * lib/fontfile.c, lib/font.h: Delete
8601 font::forget_command_line_font_dirs.
8603 * troff/input.c (push_token): New function.
8604 (handle_first_page_transition): Use push_token().
8605 (process_input_stack): Change handling of a space at the beginning
8608 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
8610 * troff/input.c (font_dirs): Delete unused variable.
8612 * eqn/lex.c (do_set): Correct error messages.
8614 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
8616 * troff/input.c (do_define_string): Allow the string name to be
8617 followed immediately by a tab.
8618 (define_character): Likewise.
8620 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
8622 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
8625 * troff/input.c (input_iterator::is_file): New virtual function.
8626 (file_iterator::is_file): New function.
8627 (input_stack::end_file): New function.
8628 (input_stack::next_file): Handle the situation where there is no
8629 file on the input stack correctly. Avoid making two passes over
8631 (next_file): Make the filename optional; in this case call
8632 input_stack::end_file().
8634 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
8636 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
8637 produce a real _ charater when the current font is CW and _
8640 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
8641 expression to work around gcc 2.2 bug.
8643 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
8645 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
8647 * troff/env.c (environment::add_padding): New function.
8648 (environment::add_char): Use add_padding().
8649 (environment::space): Likewise.
8650 (environment::wrap_up_field): Add some padding if there is none
8651 and there's no current tab.
8652 * troff/env.h: Declare environment::add_padding.
8654 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
8656 * pic/pic.y: undef fmod and rand before declaring them.
8658 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
8660 * troff/input.c (main): If the DESC file specifies a font name of
8661 0, then leave the corresponding font position empty.
8663 * nroff.sh: New file.
8664 * Makefile (install.nobin): Install nroff.sh.
8666 * tty/devlatin1/R.proto: Add ao as synonym for de.
8667 * tty/tmac.tty-char: Define ao as o.
8669 * tty/dev{ascii,latin1}/R.proto: Add aq.
8670 * tty/tmac.tty-char: Delete definition of aq.
8672 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
8674 * troff/input.c (init_charset_table): Don't translate 0240.
8675 * ps/tmac.ps: Translate char160 to space.
8676 * dvi/tmac.dvi: Likewise.
8677 * tty/tmac.tty: Likewise.
8679 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
8681 * dvi/tmac.dvi: Add support for all Latin-1 characters.
8683 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
8684 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
8687 * tty/tmac.tty-char: Add \(ah.
8689 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
8690 No need to define \(FM and \(!/. Conditionalize all character
8693 * ps/devps/lgreekmap: Add +h, +f, +p.
8695 * ps/tmac.psnew: New file.
8696 * ps/Makefile: Install tmac.psnew.
8698 * troff/input.c (charinfo_to_node_list): Don't ever interpret
8699 character definitions in compatible mode.
8701 * troff/input.c (remove_character): New function.
8702 (init_input_requests): Bind remove_character to "rchar".
8704 * ps/tmac.psold: New file.
8705 * ps/Makefile: Install tmac.psold.
8706 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
8707 characters into tmac.psold. Make these definitions unconditional.
8709 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
8711 * ps/tmac.ps: Don't define \('c and \('C.
8713 * ps/devps/textmap: Move Greek characters to...
8714 * ps/devps/symbolchars:
8716 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
8718 * ps/devps/text.enc: Add quotesingle.
8719 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
8720 * tty/tmac.tty-char: Likewise.
8721 * dvi/devdvi/texmi.map: Add +h, +f, +p.
8722 * dvi/devdvi/texi.map: Add Fn.
8723 * dvi/devdvi/msam.map: Add lz.
8724 * dvi/tmac.dvi: Handle Bq, bq, aq.
8726 * pic/lex.c (get_token): Recognize 'th.
8727 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
8729 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
8731 * ps/devps/textmap: Move di, mu, +- to...
8732 * ps/devps/symbolchars:
8734 * macros/tmac.s (@XS): Don't call par@reset or fi.
8735 (XA): Call LP. Turn off adjustment. Reduce line length.
8737 * macros/tmac.s: Initially alias XS to LP.
8738 (XS): Rename to @XS.
8739 (cov*ab-init): Alias XS to @XS.
8741 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
8743 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
8744 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
8745 (token::is_size, token::changes_env): Deleted.
8746 * troff/number.c (parse_term): No need to process \s explicitly.
8747 Call tok.next() only after scale indicator has been processed.
8748 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
8750 (token::next): Handle \s, \f, \S, \H immediately rather than
8751 returning them as tokens.
8752 (token::operator==, token::description, token::add_to_node_list,
8753 token::process): Remove handling of deleted tokens.
8755 * troff/env.c (environment::add_char): When adding padding
8756 indicator character, call start_line() if necessary.
8758 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
8760 * ps/devps/afmtodit: Don't output 0 kerns.
8762 * ps/devps/afmtodit: Remove directory from name of encoding in
8763 font description file.
8765 * ps/devps/afmtodit: Improve error messages.
8767 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
8769 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
8770 * ps/devps/FontMakefile: Deleted.
8771 * ps/devps/afmname: New file.
8773 * ps/devps/symbol.sed: New file.
8774 * ps/devps/symbol.diff: Deleted.
8775 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
8776 Generate zapfdr.afm from zapfd.afm.
8778 * tty/tmac.tty (tty-char): Prefix definition with ".
8780 * macros/tmac.an (TP): Don't start a diversion if one has already
8783 * tty/tmac.tty-char: Add Latin-1 characters.
8785 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
8787 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
8789 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
8790 Move declaration of struct horizontal_span.
8792 * tbl/table.c (table::table): Initialize span_list.
8793 (table::~table): Delete span_list.
8795 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
8797 * ps/devps/Makefile: Avoid dependency on GNU make.
8799 * ps/tmac.ps: Check that character does not already exist before
8802 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
8803 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
8804 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
8807 * tty/tmac.tty-char: New file.
8808 * tty/Makefile: Install tmac.tty-char.
8809 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
8812 * tty/tmac.tty: Fix definition of \(34.
8814 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
8815 bracket-drawing characters onto |. Add *o.
8817 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
8818 only if current_field.
8820 * troff/dictionary.c (dictionary::lookup): Free old_table after
8823 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
8825 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
8826 whose glyphs are identical to glyphs of some Roman character.
8828 * tty/devlatin1/R.proto (bu): Deleted.
8829 * tty/devascii/R.proto (bu): Deleted.
8830 * tty/tmac.tty: Add definition of \(bu.
8832 * eqn/main.c (do_file): Pass FILE as argument.
8833 (main): Automatically load eqnchar. New options -F and -n.
8834 Pass do_file an opened FILE.
8835 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
8836 No need to include font.h.
8837 * groff.sh: Likewise. Don't need to use - for standard input.
8838 Prefix files with -- if first file starts with -.
8840 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
8842 * troff/env.c (environment::possibly_break_line): Don't set line
8843 to 0 across call to output_line(). Don't call output_line() until
8844 after discarding nodes after break.
8846 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
8848 * request.h (macro::empty): Declare it.
8849 * input.c (macro::empty): New method.
8850 (interpolate_macro): Don't give a WARN_SPACE if the two-character
8853 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
8855 * troff/env.c (environment::start_field): Decrement space_total
8856 when a space is frozen.
8858 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
8860 * macros/tmac.an (R): Delete macro.
8862 * troff/input.c (get_copy, token::next): Support \# (like \" but
8863 newline is ignored).
8865 * troff/input.c (token::next): Fix error message in 'Y' case.
8867 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
8869 * eqn/delim.c (define_extensible_string): Recognize any prefix of
8872 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
8874 * c++test.c: Include <osfcn.h>.
8876 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
8879 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
8881 * tbl/table.c (table::divide_span): Don't count column separation
8882 if expand was specified.
8884 * tbl/main.c (process_format): Don't ignore width specs in
8885 continued format. Give warning for changing equal widths or
8886 column separation in continued format.
8887 (process_data): Set column separation, minimum width, equal
8888 columns at end of table.
8890 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
8892 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
8893 node::add_discretionary_hyphen): Use soft_hyphen_char.
8894 (set_soft_hyphen_char): New function.
8895 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
8897 * Makefile (c++tested): Give more helpful message if test fails.
8899 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
8901 * troff/input.c (init_charset_table): Translate 0240 to
8902 an unbreakable space.
8904 * troff/token.h (token::hyphen_indicator): New function.
8905 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
8907 * troff/input.c (translate): Allow translation to \%.
8908 * troff/node.c (node::add_char): Handle
8909 TRANSLATE_HYPHEN_INDICATOR.
8910 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
8912 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
8915 * tty/devlatin1/R.proto: \(hy and - should print as 055.
8917 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
8919 * groff.c (run_commands): If the last command gets a SIGPIPE send
8920 a SIGPIPE to all children than haven't yet terminated. When
8921 command terminates, set pid field to -1.
8923 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
8925 * groff.c (main): Pass an appropriate -filename option to gxditview.
8927 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
8929 * Makefile.bd (install): Remove existing program before copying.
8931 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
8932 programs which have Unix counterparts to be installed with
8933 user-specified prefix.
8935 * troff/input.c (exit_troff): Don't check if exit_started.
8936 (exit_request): Don't call exit_troff if exit_started.
8938 * Makefile.bd (install.mm): Rename to install.dwbmm.
8940 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
8942 * driver/input.c (do_file): Add missing break for '#' case.
8944 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
8946 * troff/input.c (input_stack::clear): Clear past any boundaries and
8947 then add the boundaries back.
8949 * troff/input.c (exit_troff): Return immediately if already
8952 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
8954 (pg*end-page): If the text has ended and there are no more
8955 footnotes or keeps, exit.
8957 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
8959 * troff/input.c (init_charset_table): Make \(rq transparent by
8962 * macros/tmac.an: Define lq and rq strings.
8964 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
8966 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
8968 * troff/env.c (environment::final_break): New function.
8969 (environment::newline): Set prev_line_interrupted to 2 if
8971 * troff/env.h: Declare environment::final_break.
8972 * troff/input.c (exit_troff): Call environment::final_break()
8973 instead of environment::do_break().
8975 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
8976 doesn't already exist.
8977 * macros/man.local: New file.
8978 * macros/tmac.an: Load man.local.
8979 * macros/man.ultrix: New file.
8981 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
8983 * troff/input.c (exit_groff): Rename to...
8984 (exit_troff): New function.
8986 * troff/div.c (exit_started, done_end_macro,
8987 seen_last_page_ejector): New global variables.
8988 (began_page_in_end_macro): New static variable.
8989 (exit_flag): Deleted.
8990 (top_level_diversion::top_level_diversion): Initialize
8992 (top_level_diversion): More elaborate test for whether
8993 cleanup_and_exit() should be called.
8994 Set began_page_in_end_macro if the end macro isn't yet finished.
8995 * troff/div.h (top_level_diversion::last_page_count): New data
8997 (top_level_diversion::set_last_page): New function.
8998 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
8999 * troff/env.c (do_break): Zero prev_line_interrupted.
9000 * troff/input.c (exit_flag): Delete declaration.
9001 (LAST_PAGE_EJECTOR): New magic cookie.
9002 (token::next): Handle LAST_PAGE_EJECTOR.
9003 (exit_groff): Set exit_started and done_end_macro instead of
9004 exit_flag. Call top_level_diversion::set_last_page. Push a
9005 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
9006 another ejection after setting seen_last_page_ejector.
9008 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
9010 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
9012 * macros/tmac.e (TH): Make sure there's room for the initial
9015 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
9016 Set FVS in points rather than units.
9018 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
9020 * troff/div.c (top_level_diversion::add_trap): Don't consider the
9021 position of empty slots.
9023 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
9025 * ps/devps/S: Fix height and depth of parenrightex.
9026 * ps/devps/symbol.diff: Regenerate.
9028 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
9030 * tmac.e (u): Do underlining as in -mgs.
9032 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
9034 * tty/tty.c (tty_printer::end_page): If overstriking is
9035 suppressed, still turn overstruck horizontal and vertical lines
9038 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
9041 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
9043 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
9045 * Version 1.05 released.
9047 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
9049 * tty/tty.c: Instead of keeping an array of glyphs and then
9050 sorting it, keep a ordered linked list of glyphs for each line.
9052 * driver/driver.h: Include stddef.h.
9054 * tty/tty.c (compare_glyph):
9055 * refer/refer.c (rcompare):
9056 * troff/env.c (compare_ranges): Arguments of qsort comparison
9057 function should be const void *.
9059 * troff/number.c (parse_term):
9060 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
9063 * refer/label.y (consider_authors): Don't access variables
9064 constructed under a condition outside that condition: put braces
9065 round for statement containing declaration; redeclare use of same
9068 * pic/pic.y (text_expr): Delete production that allows
9069 parenthesised text_expr.
9070 (expr): Allow a conditional_expr to appear in parentheses.
9071 (conditional_expr): Rename to any_expr.
9073 * mm: Install new version 1.01 from jh.
9075 * lib/font.c (font::get_width): Cache scaled widths.
9076 (font::font): Initialize widths_cache.
9077 (font::~font): Destroy widths_cache.
9078 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
9080 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
9082 * c++test.c, c++test.ref: New files.
9083 * Makefile: Check that the C++ compiler works.
9085 * ps/tmac.pspic (PSPIC): Do a break.
9087 * ps/tmac.ps: Move definition of PSPIC into...
9088 * ps/tmac.pspic: New file.
9089 (PSPIC): Draw box around picture, but make it invisible to grops.
9090 * ps/tmac.ps: Load tmac.pspic.
9091 * ps/Makefile: Install tmac.pspic.
9093 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
9095 * lib/font.c (scale_round): If n is negative,
9096 subtract .5 before truncating floating point result.
9098 * lib/fontfile.c: Include <errno.h>.
9100 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
9102 * driver/input.c (get_char): Inline. Don't update current_lineno.
9103 Change callers to up date current_lineno if necessary.
9104 Use get_char() instead of getc(current_file).
9106 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
9108 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
9110 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
9112 * tty/tty.c (tmac.tty): Define \(rg as (R).
9114 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
9116 * lib/lib.h: New define a_delete.
9117 * Use a_delete instead of delete when deleting an array of objects
9118 without destructors.
9120 * lib/lib.h: Rename adelete to ad_delete.
9121 * Change uses of adelete.
9123 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
9125 * eqn/eqn.y: Include lib.h.
9127 * troff/node.c (grow_font_table): Delete old_font_table.
9129 * mm: Install new version from jh.
9131 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
9133 * tbl/table.h (format_type): Make global instead of local to class
9134 entry_format. Prefix enumerators with FORMAT_.
9135 * tbl/table.c, tbl/main.c: Corresponding changes.
9136 * refer/token.h (token_type): Make global. Prefix enumerators
9138 * refer/token.[ch]: Corresponding changes.
9139 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
9141 * troff/div.c (node::set_vertical_size): Don't name argument.
9143 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
9145 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
9146 * lib/lib.h: Define adelete accordingly.
9147 * pic/object.c (graphic_object::graphic_object):
9148 * tbl/main.c (format::~format):
9149 * tbl/table.c (table::~table):
9150 * refer/ref.c (reference::~reference, reference::merge,
9151 reference::insert_field, reference::delete_field): Use adelete.
9153 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
9155 * tbl/table.h: Corresponding changes.
9157 * common.c (common_output::dashed_arc, common_output::dotted_arc):
9158 Ensure total_angle is positive.
9160 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
9162 * refer/ref.c (reference::merge, reference::insert_field,
9163 reference::delete_field): Avoid delete[0].
9165 * refer/token.c (init_special_chars): Move calls to cmupper
9166 outside calls to init_two_char_letter to work around bug in gcc
9169 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
9171 * lib/new.c (operator new): Use __builtin_new for g++.
9173 * pic/object.c (graphic_object::~graphic_object): Don't use
9176 * pic/object.c (output::compute_scale): Initialize max_width and
9179 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
9181 * troff/input.c (write_request): Call fflush.
9183 * troff/node.h (class composite_node): Move declaration to node.c
9184 * troff/input.c (charinfo_to_node): Rename to ...
9185 (charinfo_to_node_list): Return node list rather than composite
9187 * troff/node.c (make_composite_node): New function.
9188 (make_node, add_char): Call make_composite_node instead of
9190 (class composite_node): Add a tfont * member. Delete font_size
9192 (composite_node::composite_node, composite_node::copy,
9193 composite_node::size): Corresponding changes.
9194 (composite_node::tprint): Provide constant spacing, emboldening
9195 and track kerning as specified in tfont.
9196 (composite_node::width): Change width calculation accordingly.
9197 * troff/env.h (environment::composite): New member.
9198 (environment::is_composite, environment::set_composite): New
9200 * troff/env.c (environment::environment): Initialize composite.
9201 * troff/input.c (charinfo_to_node): Call
9202 environment::set_composite.
9203 * troff/node.c (make_composite_node, make_glyph_node): Use the
9204 plain version of the tfont if the environment is composite.
9206 * troff/node.c (font_info::get_space_width): Additional argument
9207 giving space_size. Handle constant space correctly. Scale by
9208 space_size unless constant spaced.
9209 (env_sentence_space_width): New function.
9210 * troff/node.h: Declare it.
9211 * troff/env.h (environment::get_space_size,
9212 environment::get_sentence_space_size,
9213 environment::get_narrow_space_width,
9214 environment::get_half_narrow_space_width): Make inline.
9215 (environment::get_space_width): Make inline. Just call
9217 * troff/env.c: Delete definitions for funtions made inline.
9218 (environment::space_newline, environment::space): Use
9219 env_sentence_space_width(). Don't scale by space_size.
9220 * troff/node.h: Move declarations of env*space_width() functions
9223 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
9225 * macros/tmac.s (PS): Don't try to set negative indent.
9227 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
9229 * pic/pic.y: Fix min function.
9231 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
9233 * man/mdate.sh: Clear LANGUAGE.
9235 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
9237 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
9238 * pic/lex.c: New COMMAND keyword.
9239 * pic/pic.y (print_args, print_arg): New rules.
9240 (placeless_element): Use print_args for PRINT.
9241 New COMMAND element.
9243 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
9245 * troff/input.c (terminal): Handle missing argument correctly.
9247 * pic/pic.y (text_expr): New rule.
9249 * pic/pic.y: Implement := operator.
9251 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
9253 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
9256 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
9258 * ps/devps/dingbatsrmap: Include this in the distribution.
9260 * macros/tmac.doc: Replace with new version from 2nd Networking
9261 Release. Fix loading of doc-* files.
9262 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
9263 * macros/tmac.doc.old: New file. Apply fixes that had been
9264 applied to old tmac.doc.
9265 * macros/tmac.andoc: Check that we're running under groff.
9266 * macros/Makefile: Rework.
9268 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
9270 * tbl/table.h (format_type):
9271 * refer/token.h (token_type): If NESTED_TYPES is defined, use
9272 typedef to make these types visible at file scope.
9273 * Makefile: Add NESTED_TYPES configuration option.
9275 * troff/div.c (mark): At the top level use the value of
9276 nl_reg_contents rather than the current vertical position.
9278 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
9280 * tty/tty.c: Implement \D for horizontal or vertical lines.
9281 (tty_printer::set_char): Use vec_used+2 as serial number.
9282 Don't allow size of vector to exceed USHRT_MAX-2.
9283 Split off part into...
9284 (tty_printer::add_char): New function.
9285 (tty_printer::draw): New function.
9286 (compare_glyph): Handle equal serial numbers.
9287 (tty_printer::end_page): Handle overstruck characters from \D.
9288 (main, usage): Implement -d option.
9290 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
9292 * tbl/main.c (process_format):
9293 * eqn/text.c (split_text):
9294 * troff/input.c (token::next): Use inner block for declarations
9295 with initializers in switch statement.
9297 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
9299 * pic/common.c (common_output::dash_line): Cope with zero-length
9302 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
9304 * Version 1.04 released.
9306 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
9308 * macros/tmac.an (TH): Define a macro an-init to define variables
9309 based on command line arguments.
9310 (an-header): Call it.
9312 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
9314 * Makefile (install.mm): Rename to install.dwbmm.
9316 * Makefile: Integrate mm.
9317 * mm: New directory.
9319 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
9321 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
9324 * pic/troff.c (troff_output::simple_spline,
9325 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
9326 shadowing parameter.
9328 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
9330 * lib/ptable.h: Add explicit casts when converting from unsigned
9333 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
9334 * dvi/devdvi/Makefile: Install SA, SB.
9336 * refer/indxbib.c: Add declaration of mktemp.
9338 * refer/lookbib.c: Add declaration of isatty.
9340 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
9342 * pic/lex.c (interpolate_macro_with_args): While collecting
9343 arguments, keep track of whether we're in a string.
9345 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
9347 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
9348 down with \v, so as to avoid problems with top of page trap
9349 setting no space mode.
9351 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
9353 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
9355 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
9357 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
9358 Improve error message.
9360 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
9362 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
9365 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
9367 * groff.c (possible_command::execp): Always use _exit() after a
9370 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
9371 NO_SYS_WAIT_H configuration options.
9372 * groff.c: Use these options. Use POSIX-style macros to extract
9373 fields from the status returned by wait().
9375 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
9377 * tbl/table.c (table::compute_separation_factor): Allow the
9378 separation factor to drop to 0.
9380 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
9382 * refer/search.c: Include <errno.h>.
9384 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
9386 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
9388 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
9391 * pic/lex.c (input_stack::bol): Move definition out of class body.
9393 * pic/main.c: On MSDOS munge argv[0].
9395 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
9397 * lib/ptable.c (hash_string): Use unsigned long rather than
9399 (next_ptable_size): Use unsigned rather than int. Give an error
9400 message if we've hit the largest table size.
9401 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
9404 * pic/object.h (object_spec): Make flags unsigned long. Declare
9405 flags as const unisgned long rather than as enums.
9407 * pic/output.c: Deleted.
9409 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
9411 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
9412 Add additional argument.
9413 (line_entry::note_double_vrule_on_{left,right}): Set value of
9414 douvle_vrule_on_{right,left} flag according to argument.
9415 (simple_line_entry::simple_print,
9416 simple_line_entry::double_line_print): If adjacent to double vrule
9417 on a corner extend rather than shorten the rule by half the double
9420 * troff/number.c (parse_term): In checking for overflow, handle the
9421 case where the current horizontal position is negative.
9423 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
9425 * pic/object.c (draw_arrow): Check for object having zero length.
9427 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
9429 * eqn/main.c (do_file): Split off inline equation handling into...
9430 (inline_equation): New function. Search for starting delimiter
9432 (delim_search): New function. Don't recognize a delimiter that
9433 occurs in the name of an escape sequence, number register, string
9436 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
9438 * eqn/delim.c (delim_box::compute_metrics): Don't call
9439 define_extensible_string if left is 0.
9440 (delim_box::output): Don't print the left delimiter if left is 0.
9441 (delim_box::debug_print): Check for left == 0 before calling printf.
9443 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
9445 * troff/Makefile (majorminor.c): Include only digits in
9448 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
9450 * refer/dirnamemax.c: new file.
9451 * refer/genlimits.c: Deleted.
9452 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
9453 Don't check path length.
9454 * refer/Makefile: Add dir_name_max.o; delete genlimits.
9455 * Makefile: Add PATHCONF_MISSING option.
9457 * refer/indxbib.c (get_cwd): New function.
9458 (main): Use get_cwd().
9459 * lib/getcwd.c: New file.
9460 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
9462 * lib/Makefile: Compile getcwd.o.
9464 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
9467 * refer/indxbib.c (main): Check success of mktemp.
9469 * lib/tmpfile.c: New file.
9470 * lib/Makefile: Add tmpfile.c.
9471 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
9472 * ps/ps.h: Delete declaration of mktemp().
9473 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
9474 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
9475 * driver/driver.h: No need now to include errno.h.
9477 * everywhere: Set errno to 0 before calling fopen().
9479 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
9480 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
9481 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
9483 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
9485 * troff/env.h (translate_space_to_dummy): Declare it.
9486 * troff/env.c (environment::space_newline, environment::space):
9487 If translate_space_to_dummy is set then make the width of spaces 0.
9488 * troff/input.c (translate): If the second character of a
9489 translation is a space, translate to unbreakable space. If the
9490 first character is a space, set or clear translate_space_to_dummy
9491 according to whether the second character is \&. Weird!
9493 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
9495 * groff.c (run_commands): Don't use non-zero exit code because a
9496 command gets SIGPIPE.
9498 * groff.c, groff.sh: Use -mXps with -TXps.
9500 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
9501 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
9502 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
9503 (ps_printer::special): New specials invis and endinvis.
9504 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
9505 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
9506 (ps_printer::end_page): Check that invis_count == 0.
9507 (ps_printer::invis_count): New member.
9508 (ps_printer::ps_printer): Initialize invis_count to 0.
9510 * troff/env.c (environment::hyphenate_line): Hyphenation
9511 indicator at beginning of word inhibits splitting after -, \(em
9514 * pic/pic.y (element): Allow another element to follow } without
9515 any intervening separator.
9517 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
9519 * pic/lex.c (get_delimited): Allow tabs before delimiter.
9521 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
9523 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
9524 declaration of wait() in header files.
9525 * Makefile: Get rid of -DHAVE_UNION_WAIT.
9527 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
9529 * lib/lib.h: Declare return type of strerror as char *.
9531 * man/Makefile: Add g flag to sed substitutions.
9532 * Makefile (shgroff, bindist): Likewise.
9534 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
9536 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
9537 * ps/devps/prologue (PBEGIN): Define showpage after pushing
9540 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
9542 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
9545 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
9547 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
9550 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
9552 * troff/input.c (define_number_reg): If currently undefined,
9553 don't define it if the argument is an invalid expression.
9555 * Makefile: Ignore return value of `if' commands without `else'
9558 * Makefile: Split up CPPDEFINES into a series of separate
9559 configuration options.
9561 * troff/input.c (init_registers): Use time_t instead of long
9562 unless LONG_FOR_TIME_T is defined. Use returned result rather
9563 than passing pointer.
9564 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
9566 * lib/Makefile (fontpath.h): Use gendef.
9568 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
9570 * troff/input.c (input_iterator::shift): Delete argument name.
9571 * troff/node.c (suppress_output_file::really_begin_page,
9572 suppress_output_file::really_transparent_char, node::ascii_print,
9573 node::tprint): Delete names of unused arguments.
9575 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
9577 * refer/label.y (string): Pass $4 to command_error.
9579 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
9581 * Version 1.03 released.
9583 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
9585 * Makefile: Pass definition of SHELL in SUBFLAGS.
9588 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
9589 ps/Makefile: Use gendef to construct header files that are
9590 constructed from the Makefile.
9592 * macros/Makefile: make all should build stripped version of tmac.e.
9594 * refer/Makefile (clean): Remove y.output.
9596 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
9598 * ps/pfbtops.c (main): Add -v option which prints out a version
9600 * ps/Makefile (pfbtops): Link with libgroff.a.
9602 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
9604 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
9605 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
9607 * refer/lkbib.c (main): Always terminate reference with blank
9609 * refer/lookbib.c (main): Likewise.
9611 * refer/linear.c (file_buffer::load): Check that the file is not a
9614 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
9615 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
9616 Delete second inclusion of <sys/param.h>.
9618 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
9620 * troff/token.h (token::special): Deleted.
9622 * tbl/main.c (process_format): Rework so that opt->tab_char is
9623 recognized only when appropriate.
9625 * ps/Makefile (clean): Remove pfbtops.
9627 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
9629 * lib/font.c (text_file::next): Don't return if we have got a
9632 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
9634 * refer/refer.c (store_reference): Get hash code from old_table[i]
9635 when rehashing the table.
9637 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
9639 * eqn/box.c (box::top_level): Save size and prev size using \R and
9640 restore it afterwards. Set the size to the size at the beginning
9642 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
9643 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
9645 * refer/Makefile (limits.h): Use ./genlimits.
9647 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
9649 * refer/index.c: Delete declarations of stat() and fstat().
9651 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
9653 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
9655 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
9657 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
9659 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
9661 * troff/input.c (token::get_char): Handle \e.
9663 * refer/linear.c: Delete declarations of fstat() and stat().
9665 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
9667 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
9668 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
9670 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
9672 * troff/input.c (do_define_macro): Improve error handling for end
9673 of file while defining macro.
9675 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
9677 * eqn/box.h: Fix declaration of set_gsize.
9678 * eqn/box.c (set_gsize): Make argument const char *.
9679 (gsize): Declare as char *.
9680 * eqn/main.c (main): Don't convert gsize to int.
9681 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
9683 * Version 1.02 released.
9685 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
9687 * macros/tmac.andoc: New file.
9688 * macros/Makefile: Install tmac.andoc.
9690 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
9691 operator new and delete on OP_DELETE_BROKEN not being defined.
9692 * Makefile: Mention OP_DELETE_BROKEN.
9694 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
9696 * Makefile (bindist): Pass SUBFLAGS.
9698 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
9700 * Makefile, groff.c: Pass definitions to groff.c via device.h.
9702 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
9705 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
9707 * ps/ps.h, ps/psrm.c: Make comment_table and
9708 header_comment_table local to resource_manager::process_file.
9710 * groff.sh: With -TXps pass -printCommand option to gxditview.
9712 * groff.c (possible_command::print): Implement using
9713 append_arg_to_string.
9715 * xditview: Merge in new implementation with own ChangeLog.
9717 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
9719 * groff.c (main): Implement PRINT_OPTION.
9720 (append_arg_to_string): New command.
9721 (device_table): Set PRINT_OPTION flag for Xps.
9723 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
9725 * troff/groff.h: Rename to troff.h.
9727 * pic/lex.c (lookup_keyword, docmp): New functions.
9728 (get_token): Use new lookup_keyword.
9729 Don't include key.h.
9730 * pic/key.[ch], pic/pic.gperf: Deleted.
9731 * pic/Makefile: Remove gperf stuff.
9733 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
9735 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
9737 * troff/Makefile, troff/node.c: Move definition of
9738 STORE_WIDTH into node.c.
9740 * etc/grog.pl, etc/grog.sh: Support -mdoc.
9742 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
9744 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
9745 dvi/devdvi/texb.map: Add lq and rq.
9746 dvi/devdvi: Regenerate fonts.
9747 * ps/devps/textmap: Add lq and rq.
9748 * ps/devps: Regenerate fonts.
9749 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
9750 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
9752 * pic/object.c (position_rectangle): When checking radius
9753 cope with possiblity that width or height is negative.
9754 (box_object::box_object): Have separate xrad and yrad with
9755 signs matching signs of dim components.
9756 (box_object::{north,south}_{east,west}): Use xrad and yrad.
9757 (box_object::print): With rounded boxes use absolute values
9758 for dim and rad arguments.
9760 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
9763 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
9765 * various files: Add explicit destructors to keep Saber CC +d
9768 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
9770 * eqn/box.c (box::top_level): Restore fonts correctly after
9771 font changes in line containing inline equation. Also
9772 restore previous font as well as current font.
9773 * eqn/pbox.h: Define necessary string and register names.
9775 * troff/input.c (token::next): Case 'R' calls do_register.
9776 (do_register): New function.
9778 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
9780 * groff.c, groff.sh: Support Xps device. Allow each device
9781 to have a pseudo_name and a real_name.
9783 * groff.c (run_commands): Don't print `Broken pipe' messages.
9785 * ps/pfbtops.c: New file.
9786 * ps/Makefile: Add pfbtops.
9788 * troff/number.c (parse_term): Improved error message.
9790 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
9792 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
9794 * Makefile: Integrate refer.
9795 * refer: New directory.
9796 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
9797 man/lkbib.man: New files.
9798 * man/Makefile: Support refer man pages.
9800 * lib/lib.h: Declare is_prime.
9801 * lib/prime.c: New file.
9803 * troff/input.c (macro_source): New function.
9804 (init_input_requests): Bind "mso" to macro_source.
9806 * troff/env.c (environment::possibly_break_line): Maintain
9807 pointer to pointer to node to be split in ndp so as to avoid
9808 using address of freed node.
9810 * troff/env.c (environment::hyphenate_line): Maintain pointer to
9811 pointer to first node to be hyphenated in startp so as to
9812 avoid using address of freed node.
9814 * troff/env.c (class trie, class hyphen_trie): Make the
9815 elements of the trie be of type char not unsigned char.
9816 Declare arguments to be const char* instead of unsigned char *.
9818 * troff/env.c (hyphenate): Initialize hbuf[0].
9820 * troff/input.c (set_string): Declare p to be char * and cast
9821 *p to unsigned char when necessary.
9823 * troff/input.c (do_define_macro): Declare s to be const
9824 char*. Cast element to unisgned char when necessary, Declare
9825 d to be an int. Handle EOF better.
9827 * troff/Makefile, troff/input.c: Different scheme for passing
9828 definitions of MACROPATH, HYPHENFILE and DEVICE.
9830 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
9832 * tty/devascii/R.proto: Delete entry for em.
9833 * tty/devlatin1/R.proto: Likewise.
9835 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
9837 * troff/input.c (translate): Stop when we get a space. Treat eof
9840 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
9842 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
9844 * tbl/main.c (process_format): A font name following a `f'
9845 modifier that starts with a digit can be only one character long.
9846 Also deal with EOF on the second character of the font name.
9848 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
9850 * troff/input.c (token::next): Turn \~ into an
9851 unbreakable_space_node.
9852 * troff/node.c (unbreakable_space_node): New class.
9853 * troff/node.h: Declare it.
9855 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
9857 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
9858 it's >= 0, before outputting it as a single byte.
9860 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
9862 * lib/font.c: Make font_char_metric::code an int.
9863 (font::get_code): Change return type to int.
9864 (font::load): Allow code to be arbitrary integer.
9865 * lib/font.h (font::get_code): Change return type to int.
9866 (font::number_to_index): Change argument type to int.
9867 * troff/input.c (token::next): In case 'N', allow any value.
9868 Store value in token::val.
9869 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
9870 (token::get_char, token::add_to_node_list, token::process): Get
9872 (charinfo::set_number): Change argument to int.
9873 (charinfo::get_number): Require that NUMBERED flag be set.
9874 (get_charinfo_by_number): Store numbered characters not between 0
9875 and 255 in a dictionary.
9876 * troff/charinfo.h (get_charinfo_by_number): Change argument type
9878 (charinfo::number): Change type to int.
9879 (charinfo::set_number): Change type of set_number to int.
9880 * troff/node.c (troff_output_file::put_char_width,
9881 troff_output_file::put_char): Test whether character is numbered
9882 using charinfo::numbered().
9883 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
9885 * lib/nametoindex.c: New implementation to cope with arbitrary
9888 * troff/input.c (token::operator==): Test val for
9889 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
9892 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
9893 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
9895 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
9897 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
9900 * all Makefiles: rm targets of cp and >.
9902 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
9905 * eqn/lex.c (def_table): Add dollar.
9907 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
9909 * troff/input.c (do_width): Push back newline before closing delim
9912 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
9914 * groff.c (possible_command::prepend_arg): New function.
9915 (main): Prepend device -m option.
9916 * groff.sh: Put device -m options before command-line options.
9918 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
9920 * macros/tmac.an (IP): Quote argument to TP.
9922 * ps/ps.c (main): New option -b, which sets...
9923 (broken_flags): New variable.
9924 (ps_printer::~ps_printer): Incorporate the setup section in the
9925 prolog if (broken_flags & NO_SETUP_SECTION).
9926 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
9927 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
9928 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
9929 ps_printer::print_needed_font_comment,
9930 ps_printer::print_supplied_font_comment,
9931 ps_printer::print_include_font_comments,
9932 ps_printer::lookup_doc_font, ps_printer::download_fonts,
9933 ps_printer::read_download_file, read_document_fonts, add_font,
9934 skip_line, parse_fonts_arg, document_font::document_font,
9935 document_font::~document_font, document_font::download,
9936 ps_output::include_file): Deleted.
9937 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
9938 rather than %!PS-Adobe-2.0. Make calls to
9939 resource_manager::need_font for each font that we used. Replace
9940 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
9941 print_supplied_font_comment, print_needed_font_comment by call to
9942 resource_manager::print_header_comments. Output %%Orientation
9943 comment. Output %%Requirements: numcopies comment if ncopies > 1.
9944 Don't output the prolog directly. Instead call
9945 resource_manager::output_prolog. Only define #copies when ncopies
9946 > 1. Delete calls to print_include_font_comments and
9947 download_fonts. Add call to resource_manager::document_setup.
9948 (ps_printer::do_file): Call resource_manager::import_file instead
9949 of including it ourselves.
9950 (ps_printer::do_import): Likewise. Also don't call
9951 merge_import_fonts. Push userdict on the dictionary stack before
9952 and pop it afterwards.
9953 Move declaration of ps_output into ps.h.
9954 * ps/psrm.c: New file implementing resource_manager class.
9955 * ps/ps.h: New file declaring ps_output and resource_manager
9957 * ps/devps/zapfdr.ps:
9958 * ps/devps/symbolsl.ps:
9959 * ps/devps/prologue: Use 3.0 conventions.
9960 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
9961 Add default definition of BROKEN_SPOOLER_FLAGS.
9962 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
9963 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
9965 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
9967 * etc/grog.pl: New file.
9968 * Makefile (GROG): New variable.
9969 Add GROG to SUBFLAGS.
9970 * etc/Makefile (GROG): New variable.
9971 (install.nobin): Install $(GROG) rather than grog.sh.
9973 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
9975 * eqn/special.c (special_box::compute_metrics): Make the input and
9976 output strings the same. Get the new height and depth from the
9977 predefined height and depth registers. Also make subscript kern
9979 (special_box::compute_subscript_kern, special_box::compute_skew):
9982 * eqn/box.c (pointer_box::compute_skew,
9983 simple_box::compute_metrics, box::top_level)
9984 * eqn/text.c (prime_box::compute_metrics,
9985 prime_box::comput_subscript_kern)
9986 * eqn/limit.c (limit_box::compute_metrics):
9987 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
9988 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
9989 negative numbers in `nr' requests with a leading 0.
9991 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
9993 * eqn/special.c: New file.
9994 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
9995 Add new rule for simple.
9996 * eqn/lex.c (token_table): Add SPECIAL.
9997 * eqn/box.h: Declare make_special_box.
9998 * eqn/Makefile: Add special.[co].
10000 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
10002 * ps/devps/prologue: Possibly set packing to true while defining.
10003 Create grops dictionary here. Initialize local variables before
10004 defining procedures.
10005 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
10006 the dictionary stack. Set strokeadjust and overprint to false if
10007 the relevant operators are defined.
10008 (PEND): New procedure.
10009 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
10010 prologue. Do everything else in the setup section.
10011 (ps_printer::do_import): Just call PBEGIN and PEND around the
10012 picture. Also push userdict before, and pop it afterwards.
10014 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
10016 * troff/node.c (bracket_node::tprint): Brackets were being printed
10019 * macros/tmac.an (SH, SS): Set fill mode.
10021 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
10023 * troff/div.c (top_level_diversion::begin_page): Set
10024 high_water_mark to 0.
10026 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
10028 * man/mdate.sh: New file.
10029 * man/mdate.c: Deleted.
10030 * man/Makefile: Use mdate.sh instead of mdate.
10033 * eqn/lex.c (do_gsize): Supply missing argument to error message.
10035 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
10037 * man/mdate.c: New file.
10038 * man/*.man: Replace modification date by @MDATE@.
10039 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
10040 (mdate): New target.
10042 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
10043 Remove illegal input characters.
10045 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
10047 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
10049 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
10051 * troff/div.c (begin_page): Change behaviour when
10052 !first_page_begun and !break_flag.
10054 * troff/input.c (do_name_test): Return 0 if argument is empty.
10056 * troff/input.c (read_long_escape_name): Require closing ] to be
10057 at same input level as opening [.
10059 * troff/input.c (read_increment_and_escape_name): New function.
10060 (get_copy, process_input_stack): Use this for \n.
10062 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
10064 * troff/div.c (top_level_diversion::begin_page): Ignore the
10065 current value of page_number if !first_page_begun.
10067 * groff.c (main): Fix declaration of buf.
10069 * troff/input.c (do_name_test): New function.
10070 (token::next): Implement \A.
10071 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
10072 (token::description, token::add_to_node_list, token::process):
10073 Handle TOKEN_ESCAPE.
10074 * troff/token.h: New token TOKEN_ESCAPE.
10076 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
10078 * pic/main.c (do_picture): Allow space before and after filename
10079 following `<'. Check that the filename is not empty.
10081 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
10083 * Version 1.01 released.
10085 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
10087 * dvi/tmac.dvi: ftr HR to H.
10089 * macros/tmac.e: Round up computation of $r.
10091 * xditview/tmac.X: Don't give up completely in compatibility mode.
10092 Use \n(.s instead of \n[.s].
10094 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
10095 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
10096 Add u to factors inside \s[...]. Rename frac to dvi-frac.
10097 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
10098 short names in the char definitions.
10100 * ps/tmac.ps: Don't give up completely in compatibility mode.
10101 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
10102 quote in front of \n(.s. Add u to factors inside \s[...].
10104 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
10106 * tty/tmac.tty: Call the nroff request.
10108 * macros/tmac.e ((x, )x): Better definitions that work properly
10110 (@0, @1): Helper macros for (x.
10112 * macros/tmac.e ($s, hl): Use \l rather than \D.
10114 * tty/tmac.tty: Make it work better in compatibility mode.
10115 (pchar): Rename to tty-char.
10117 * macros/tmac.e (@E): New macro.
10118 (r, i, b, rb, bi): Use @E.
10120 * macros/tmac.e (@F): Don't use (;...) syntax.
10122 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
10123 it was modified for groff.
10125 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
10127 * macros/tmac.e (<., .>): Removed.
10128 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
10130 * macros/tmac.e: Remove check that groff is being used.
10132 * macros/tmac.e (@C): Change families only if using groff; turn
10133 compatibility mode off while changing familes. Save compatibility
10134 mode before changing families and restore it afterwards.
10136 * macros/tmac.e (@h): Remove test for offset + line length.
10138 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
10139 (lo, th, ac): Define to call @S instead of using als.
10141 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
10142 the ratio of the vertical spacing to the point size in units
10143 expressed as a percentage. Use these instead of $10r and $10R,
10144 Delete $10r and $10R.
10146 * lib/font.c (font::load): In default computation of space_width,
10147 divide by sizescale. Use scale_round.
10149 * macros/tmac.an (TP): Don't call `nf'.
10150 (an-do-tag): Don't call `fi'.
10152 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
10154 * troff/input.c (process_input_stack): Handle the case where
10155 spaces at the beginning of an input line are followed by a
10158 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
10160 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
10161 * groff.sh: Use pic -x with the dvi device.
10163 * dvi/devdvi/FontMakefile (H): Don't use -s.
10165 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
10166 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
10167 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
10170 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
10172 * ps/psfig.diff: New file.
10173 * ps/tmac.psfig: New file.
10175 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
10177 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
10178 (]-): Don't call ref*do-tl.
10180 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
10182 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
10183 (fn@do-FS): Rename to fn*do-FS.
10185 * troff/input.c (transparent_translate): New function.
10186 (process_input_stack): Apply transparent_translate before calling
10187 diversion::transparent_output(unsigned char).
10189 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
10191 * troff/input.c (do_define_macro): Define the macro before calling
10194 * xditview/Makefile: Add DEVICES variable. Change install target
10197 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
10199 * groff.c (run_commands): Handle the possibility that there are
10200 child processes other than those forked by us.
10202 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
10204 * lib/string.c (string::append): New function.
10205 * lib/stringclass.h: Declare it.
10207 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
10209 * eqn/main.c (main): New option -N which sets
10210 no_newline_in_delim_flag.
10211 (do_file): If no_newline_in_delim_flag is set don't allow newlines
10213 * groff.c (main): Pass -N on to eqn.
10214 (help, synopsis): Mention -N.
10215 * groff.sh: Implement -N.
10217 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
10219 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
10220 (]-): Call ref*do-tl if ref*need-tl is non-zero.
10221 (XP): Allow as initializer.
10223 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
10225 * troff/env.c (environment::wrap_up_field): If field_spaces are
10226 non-zero and we have a current_tab, subtract padding from
10227 tab_distance. If this makes tab_distance <= 0, use the next tab
10228 stop instead. If there isn't any next tab or it's a left tab,
10229 wrap up the current tab.
10230 (environment::start_field): Initialize tab_precedes_field.
10231 (environment::wrap_up_tab): If there's a current field, update
10232 pre_field_width, field_distance and tab_precedes_field.
10233 * troff/env.h (environment::tab_precedes_field): New member.
10235 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
10237 * ps/ps.c (ps_printer::do_file): New function.
10238 (ps_printer::special): Bind to `file' special.
10239 (ps_printer::do_exec): Set ndefined_styles to 0.
10241 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
10243 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
10244 Avoid stripping first character from the start of unrecognized
10245 escapes. Use lex_error instead of error to report errors.
10246 * eqn/lex.c (get_token): Rework handling of escapes.
10247 (lex_error): Move declaration into...
10250 * xditview/xditview.c (main): Make -page option work.
10252 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
10254 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
10256 * macros/tmac.s (B2): Correct size of box.
10258 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
10260 * macros/tmac.s (B2): Postpone drawing the box until in the
10261 top-level diversion.
10263 * tty/tmac.tty: Add font translations for C, CR, CW.
10265 * groff.c (synopsis, help): Document -i.
10266 * groff.sh: Implement -i.
10268 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
10269 Simplify the construction of SN.
10271 * troff/number.c (parse_term): Give `|' a higher precedence.
10272 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
10275 * macros/tmac.s (B2): Use par@finish instead of par@reset.
10277 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
10279 * lib/string.c (string::move): New function.
10280 * lib/stringclass.h: Declare it.
10282 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
10284 * troff/env.c (distribute_space): Add optional argument
10286 (environment::wrap_up_field): Call distribute_space with
10287 `force_forward' argument of 1.
10289 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
10291 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
10292 Inline it. Move reallocation into...
10293 (string::grow1): New function.
10294 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
10295 dependencies to include library header files.
10296 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
10298 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
10300 * macros/tmac.s (@NH): Use the same number registers than -ms does
10301 for the heading level counters. Use the same string that -ms does
10302 for the number for this heading.
10304 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
10306 * lib/new.c (operator new): Cast result of malloc to char *.
10308 * troff/input.c (spring_trap, lookup_request): Add assert that nm
10311 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
10313 * groff.c (main): Support -i.
10315 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
10317 * pic/pic.h: Include <osfcn.h>.
10319 * ps/ps.c: Add declaration of mktemp.
10321 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
10322 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
10323 argument as union wait *.
10324 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
10325 argument to union wait *.
10327 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
10329 * tty/tmac.tty: Add definition of \(co.
10331 * pic/object.c (make_arc): Only increase radius when radius
10332 strictly less than d.
10333 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
10336 * troff/env.c (environment::environment(symbol),
10337 environment::environment(const environment *)): Initialize
10340 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
10342 * tbl/main.c (main): Add exit(0).
10344 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
10346 * pic/main.c (main):
10347 * eqn/main.c (main):
10348 * tbl/main.c (main):
10349 * etc/soelim.c (main):
10350 * driver/printer.c (printer::~printer):
10351 * troff/node.c (real_output_file::~real_output_file,
10352 real_output_file::flush): Check for errors on stdout.
10354 * most files: Add 1991 to copyright notice.
10356 * macros/tmac.s: Don't test \n(.x and \n(.y.
10358 * troff/input.c (token::next): Rename `escape_char' label to
10359 `handle_escape_char' and `normal_char' label to
10360 `handle_normal_char'.
10362 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
10364 * groff.c (main, synopsis, help): Support -a option.
10365 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
10366 to trflags while parsing options.
10368 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
10370 * troff/number.c (parse_term): With `m', `M' and `n' scale
10371 indicators, convert scale factor to hunits before scaling.
10373 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
10375 * lib/font.c (scale_round): Better test for overflow when n is
10378 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
10380 * tbl/main.c (process_format): Add second argument of type
10381 options*. Change callers. Allow opt->tab_char as well as '\t'
10382 between format items.
10384 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
10386 * macros/tmac.an (PD): With no arguments, make sure register PD is
10388 (TH): Call PD with no argument, instead of setting register PD
10391 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
10393 * Version 1.00 released.
10395 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
10397 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
10399 * dvi/devdvi/DESC: Mount CW instead of CR.
10401 * dvi/tmac.dvi: Add definition of \(tm.
10403 * dvi/devdvi/texsy.map: Add lh, and rh.
10404 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
10405 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
10407 * dvi/devdvi/FontMakefile: Generate H from cmss10.
10408 * dvi/devdvi/Makefile: Install H.
10409 * dvi/devdvi/H: New file.
10411 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
10413 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
10416 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
10418 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
10420 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
10422 * macros/tmac.s (@EN): Handle the case where the equation is empty
10423 but the label is not.
10425 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
10427 * troff/groff.h: New warning category WARN_SPACE.
10428 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
10429 WARN_SPACE to warning_table.
10430 (interpolate_macro): Give a warning of type WARN_SPACE if the name
10431 is longer than two characters and is not defined, but the first
10432 two characters do make a defined name.
10434 * PROBLEMS: New file.
10436 * CHANGES: New file.
10437 * README-0.6, README-1.00: Deleted.
10439 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
10440 * xditview/devX75/Makefile: Make devX75-12.
10441 * xditview/devX100/Makefile: Make devX100-12.
10443 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
10444 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
10446 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
10448 * README-0.7: Rename to README-1.00.
10450 * macros/tmac.pic: New file.
10451 * macros/Makefile (install.nobin): Install tmac.pic.
10453 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
10455 * troff/env.c (hyphen_word): Correct the test for whether the
10456 token is a hyphen. Reset npos to 0.
10458 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
10460 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
10462 * macros/tmac.s (ds*common-end): Call par*reset.
10464 (par@reset-indent): Deleted.
10466 * macros/tmac.s (@IP): Divert the label.
10468 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
10470 * xditview/draw.c (setGC): Use a line width of .1m rather than
10471 .04m by default; round rather than truncate value.
10473 * tbl/table.c (class empty_entry): New class.
10474 (empty_entry::empty_entry, empty_entry::line_type): New functions.
10475 (table::add_entry): Represent empty entries by objects of type
10477 (table_entry::line_type): Return -1.
10478 (table::determine_row_type): Ignore entries with line_type 0.
10479 Treat type -1 as non-lines.
10481 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
10483 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
10484 macros/tmac.s: Rename \(-d to \(Sd.
10486 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
10488 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
10489 * xditview/libXdvi/DviChar.c: Likewise.
10490 * dvi/devdvi/texsy.map: Add `<<', `>>'.
10492 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
10494 * troff/div.c (top_level_diversion::begin_page): Call
10495 init_output() if the_output is 0.
10497 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
10499 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
10501 (get_copy): Turn \E into ESCAPE_E.
10502 (token::process, asciify): Handle ESCAPE_E.
10504 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
10506 (DS): Implement `.DS R'.
10508 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
10510 * macros/tmac.s (FS): New macro.
10512 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
10514 * macros/tmac.s (cov*tl-init): Remove after first execution
10515 instead of aliasing to @nop. Call top of page macro explicitly
10516 instead of setting trap; call @init first. Set pg@top as top of
10518 (cov*auto-init): Deleted. Set cov*tl-init instead of
10519 cov*auto-init as top of page trap.
10520 (TL, LP): Do a break instead of calling cov*tl-init.
10521 (cov*print): With RP format but no TL, alias FS and FE to @FS and
10522 @FE; in this case also give a warning and always start another
10523 page. No need to set pg@top here.
10524 (cov*tl-init): Rename to cov*first-page-init.
10526 * macros/tmac.s (RP): Do `.pn 0'.
10527 (cov*tl-init): With RP format don't do `.pn 0'.
10529 * macros/tmac.s (pg@cs-top): Set no space mode.
10531 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
10532 (cov*ab-init): Alias TL, AU and AI to these.
10534 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
10536 * macros/tmac.s (@EQ): Move the space before the equation into @EN
10537 (@EN): Do nothing unless \n[dl] is > 0.
10539 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
10541 * pic/object.c (ellipse_object::radius): New function.
10543 * VERSION: Change version to 0.7.
10545 * tbl/table.c (block_entry::do_divert): Declare return type as
10547 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
10549 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
10551 * troff/column.c: New file.
10552 * troff/Makefile: Corresponding changes.
10554 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
10557 * troff/div.c (top_level_diversion::space): If the space causes
10558 the first-page transition and springs a trap, truncate the space
10561 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
10563 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
10566 * pic/troff.c (troff_output::line_thickness,
10567 troff_output::set_fill): Do a horizontal motion to compensate for
10568 the width of the \D escape sequence.
10570 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
10572 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
10575 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
10578 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
10579 Supply empty definition.
10580 (text_entry::simple_print, simple_text_entry::simple_print):
10581 Delete declarations.
10582 (table::add_entry): Represent empty entries by objects of type
10585 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
10587 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
10589 * tbl/table.c (left_text_entry::add_tab): New function.
10591 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
10592 initialize like LP.
10594 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
10596 * troff/env.c (environment::start_field): Give an error message if
10597 there is no next tab.
10599 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
10601 * troff/env.c (hyphenate): Skip initial elements with zero
10604 * macros/tmac.s (par@init): Keep VS in points rather than units.
10606 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
10608 * pic/main.c (main): Implement `-c' option.
10609 * pic/output.h: Declare make_tpic_output().
10610 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
10612 (tpic_output): New class.
10613 (tpic_output::tpic_output, tpic_output::set_pen_size,
10614 tpic_output::command, make_tpic_output): New functions.
10616 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
10618 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
10619 if they're not already defined.
10620 * tbl/table.c (init_output): Don't test \n(.g.
10622 * troff/input.c (do_if_request): Delete `g' condition. Recognize
10623 `d', `r' and `c' conditions even in compatibility mode.
10625 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
10627 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
10630 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
10632 * troff/env.h (environment::prev_line_interrupted): New member.
10633 (environment::get_prev_line_interrupted): New function.
10634 * troff/env.c (environment::newline): Set prev_line_interrupted.
10635 (environment::environment(const environment *),
10636 environment::environment(symbol)): Initialize
10637 prev_line_interrupted.
10638 * troff/input.c (process_input_stack): Don't give special
10639 treatment to space and newline at the beginning of the line if the
10640 previous line was interrupted.
10642 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
10644 * eqn/eqn.y: Disallow PRIME by itself.
10645 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
10647 (def_table): Remove definition of '. Define prime to be `.
10649 * eqn/eqn.y: Split off part of rule `script' into a new rule
10652 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
10654 * macros/tmac.s ({, }): New string aliases.
10656 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
10658 * README-0.7: New file.
10660 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
10662 * macros/tmac.s: New file.
10663 * man/groff_ms.man: New file.
10664 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
10665 * Makefile.bd: Similarily.
10666 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
10667 definition of TMAC_S.
10668 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
10669 * macros/TODO: New file.
10671 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
10673 * troff/env.c (right_justify): New function.
10674 (init_env_requests): Bind this to request "rj".
10675 (center_lines): Set right_justify_lines to 0. If we get a bad
10676 integer, center 1 line.
10677 (environment::environment(symbol), environment::environment(const
10678 environment *)): Initialize right_justify_lines.
10679 (environment::get_right_justify_lines): New function.
10680 (init_env_requests): Bind this to number_register ".rj".
10682 * troff/env.c (environment::choose_breakpoint): Implement
10683 hyphenation_margin and hyphenation_space.
10684 (environment::get_hyphenation_space,
10685 environment::get_hyphenation_margin): New functions.
10686 (init_env_requests): Bind these to .hys and .hym.
10687 (hyphenation_space_request, hyphenation_margin_request): New
10689 (init_env_requests): Bind these to hys and hym.
10690 (environment::environment(symbol), environment::environment(const
10691 environment *)): Initialize hyphenation_margin and
10693 * troff/env.h: Corresponding changes to class environment.
10695 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
10697 * troff/div.c (blank_line): Always do a break.
10699 * eqn/box.c (do_text): Turn off escapes while appending text to
10702 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
10704 * troff/input.c (while_break_request, while_continue_request): New
10706 (init_input_requests): Bind these to "break" and "continue".
10707 (while_depth, while_break_flag): New variables.
10708 (while_request): Update while_depth. Break out of loop if
10709 while_break_flag is set.
10711 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
10713 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
10716 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
10718 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
10720 * stringify: New file.
10721 * Makefile (groff.o): Use stringify.
10723 * xditview/tmac.X: Remove definition of \(rn.
10724 * xditview/libXdvi/DviChar.c: Remove radicalex from
10727 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
10729 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
10730 (alphabetic_block_entry::alphabetic_block_entry,
10731 alphabetic_block_entry::divert, alphabetic_block_entry::print):
10733 (block_entry::divert): Split off body into ...
10734 (block_entry::do_divert): If the block is alphabetic, subtract 2n
10735 from the line length; also update the span width to dl+2n, and the
10736 alphabetic span width to dl.
10738 * driver/input.c (do_file): While reading argument to D command,
10739 when expanding buffer, multiply szp by sizeof(int) rather than 2
10740 in the argument to memcpy.
10742 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
10743 width of alphabetic columns.
10745 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
10747 * troff/node.c (lookup_family): Supply second argument to lookup.
10749 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
10750 search, return immediately if v is 0.
10752 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
10753 (troff_output::start_picture): Set this reg.
10754 (troff_output::end_picture): Remove this reg
10755 * eqn/box.c (box::extra_space): Don't produce `\x's if
10756 EQN_NO_EXTRA_SPACE_REG is defined.
10758 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
10759 * eqn/text.c (split_text): Map ' to \(fm when it's the first
10762 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
10764 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
10767 * troff/div.c (top_level_diversion::top_level_diversion):
10768 Initialize page_number to 0.
10770 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
10772 * groff/troff (environment::environment(const environment *)):
10773 Initialize name to e->name, rather than "anonymous".
10775 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
10777 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
10778 requested_page. Split middle part into ...
10779 (FindPage): New function.
10780 (SetValues): If we don't yet know the last page, and the requested
10781 page is greater than the current page, call FindPage.
10782 Update the font_map_string before doing this.
10784 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
10785 Translate \(lh and \(rh into left and right double arrows.
10787 * troff/node.c (class hyphen_inhibitor_node): New class.
10788 (hyphen_inhibitor_node::hyphen_inhibitor_node,
10789 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
10790 hyphen_inhibitor_node::type,
10791 hyphen_inhibitor_node::get_hyphenation_type): New functions.
10792 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
10793 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
10796 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
10798 * troff/node.h (dummy_node::get_hyphenation_type,
10799 transparent_dummy_node::get_hyphenation_type): Declare them.
10800 * troff/node.c: (dummy_node::get_hyphenation_type,
10801 transparent_dummy_node::get_hyphenation_type): New functions.
10803 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
10805 * xditview/libXdvi/draw.c: If M_PI not defined after including
10806 math.h, then define it.
10808 * xditview/Makefile: Add definition of AR. Pass it to the submake
10810 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
10812 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
10814 * troff/dictionary.h (object_dictionary::alias): Declare return
10816 * troff/dictionary.c (object_dictionary::alias): Return non-zero
10817 if the old name was defined.
10818 * troff/input.c (alias_macro): Give a warning if the old name was
10820 * troff/reg.c (alias_reg): Likewise.
10822 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
10824 * troff/input.c (token::next): Delete implementation of \R.
10826 * macros/Makefile: Strip comments from tmac.e while installing it.
10828 * troff/input.c: New variable `nroff_mode'.
10829 (troff_request, nroff_request): New functions.
10830 (init_input_requests): Bind `troff' and `nroff' to troff_request
10832 (do_if_request): Compute results of t and n conditions from
10835 * text/text.c (split_text): Fix typo in >=.
10837 * eqn/lex.c: Add definition of `==' to def_table.
10839 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
10841 * pic/tex.c (tex_output::start_picture): Change the definitions of
10842 \graph and \graphtemp so that they work properly with Plain TeX.
10844 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
10845 argument to `ar' is not less than the first.
10847 * pic/pic.y: Allow a comma between elements of the variable list
10848 in the argument to `reset'.
10850 * pic/object.c (arc_object::arc_object): Fix computation of
10853 * eqn/main.c (main): Add exit(0).
10855 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
10857 * troff/div.c (begin_page): Test no_space_mode after doing the
10858 break, but still push the page ejector cookie before doing the
10859 break. Also set the next page number after doing the break.
10861 * xditview/xditview.c (NewFile): Don't set the title and icon name
10862 if this is the first file and its name is `-'.
10863 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
10864 the X75 and X100 devices.
10865 (main): If a device has the XT_OPTION flag set and there's exactly
10866 one file argument, pass the driver -xrm and -title options to set
10867 the icon name and window title to the name of the file.
10869 * troff/env.c (environment_switch): If there was an argument but
10870 it wasn't a valid number or name, then pop an environment but
10871 don't give an error message on underflow.
10873 * troff/number.c (start_number): Correct spelling in error message.
10875 * troff/input.c (token::delimiter): Don't print an error message
10878 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
10879 ParseDrawFunction if dw->display_enable is true.
10881 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
10883 * pic/pic.y: Parse text positioning like normal attributes, so as
10884 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
10885 positioning attribute.
10887 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
10889 * tbl/main.c (process_data): When in state START while reading a
10890 text block, don't change to state MIDDLE if c is a newline.
10892 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
10894 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
10895 so as to avoid shadowing parameter.
10897 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
10899 * tbl/table.c (trim_space): Deleted.
10900 (table::add_entry): Don't call trim_space.
10902 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
10904 * VERSION: Change version to 0.6.
10906 * troff/number.c (parse_expr): Make == work.
10908 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
10910 * man/grog.man: New file.
10911 * man/Makefile: Add grog.n to MAN1PAGES.
10912 * etc/grog.sh: New file.
10913 * etc/Makefile: Install grog.sh as grog.
10915 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
10917 * troff/input.c (token::next): Implement \E.
10919 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
10921 * xditview/tmac.X: Change font translations to match tmac.ps.
10923 * troff/input.c (non_empty_name_warning): Don't give a warning if
10924 `\{' terminates the name.
10926 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
10928 * ps/devps/symbol.diff: New file.
10929 * ps/devps/FontMakefile: Mention symbol.diff.
10931 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
10933 * troff/node.c (font_position): Use get_long_name to read the
10936 * troff/env.c (environment_switch): If we get a number that's < 0
10937 or >= NENVIRONMENTS, treat it like a name.
10938 Change NENVIRONMENTS to 10.
10940 * troff/groff.h: Remove definition of FONTS_MAX.
10941 * troff/node.h (class font_family): Make map a pointer instead of
10942 an array. Add a map_size member. Make it a class. Make nm const
10943 and public. Make invalidate_fontno a friend.
10944 * troff/node.c: Define font_table_size. Make font_info a pointer
10945 rather than an array.
10946 (class troff_output_file): Allocate font_position dynamically. Add
10947 nfont_positions member.
10948 (troff_output_file::set_font): Grow font_position if necessary.
10949 (troff_output_file::~troff_output_file): Delete font_position.
10950 (troff_output_file::troff_output_file): Allocate font_position.
10951 (grow_font_table): New function.
10952 (troff_output_file::really_begin_page,
10953 troff_output_file:really_copy_page): Use nfont_positions rather
10955 (mount_font_no_translate, mount_style): Call grow_font_table if
10957 (font_family::font_family): Allocate map.
10958 (font_family::make_definite): Grow map if necessary. Use
10959 font_table_size instead of FONTS_MAX.
10960 (font_family::~font_family): New function.
10961 (invalidate_fontno): Use font_family::map_size.
10962 (get_fontno, env_space_width, env_half_narrow_space_width,
10963 env_narrow_space_width, symbol_fotno, is_good_fontno,
10964 get_bold_fontno, make_glyph_node): Use font_table_size rather than
10966 (next_available_font_position): Never return 0.
10968 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
10970 * ps/tmac.ps: Add font translations for compatibility with dpost.
10972 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
10974 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
10975 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
10976 Move definitions baseline_sep, shift_down, column_sep,
10977 matrix_side_sep into...
10978 * eqn/box.c: Add them to param_table.
10979 * eqn/pbox.h: Add declarations to pbox.h.
10981 * troff/input.c (set_string): Cast value to unsigned char *.
10983 * troff/token.h (process_input_stack): Declare it static before
10984 declaring it a friend.
10986 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
10988 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
10990 * dvi/devdvi/EX: Regenerate.
10992 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
10995 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
10997 * eqn/lex.c: In defaults_table, make definition of `dot' call
10998 `dot_def'. Don't explicitly make it roman. Similarily for other
11001 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
11003 (for_input::get, for_input::peek): Use this.
11004 (do_for): Add by_is_multiplicative argument.
11005 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
11006 Change semantic value of optional_by to be a double plus a flag
11007 saying whethet the by clause is multiplicative.
11009 * eqn/lex.c (get_delimited_text): Remember location of start of
11010 definition. Improve error handling when EOF is encountered.
11012 * lib/font.h: Rename handle_x_command to
11013 handle_unknown_font_command.
11014 * lib/font.c (font::load): Call handle_unknown_font_command for
11015 any unknown command in the font description file. Don't call
11016 handle_x_command. Include the name of the command in the argv.
11017 Improve message for unknown command after kernpairs or charset
11019 * ps/ps.c (ps_font::handle_x_command): Rename to
11020 handle_unknown_font_command. Remove message about `x download'
11021 command. Give error message for wrong number of arguments.
11022 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
11023 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
11024 handle_unknown_font_command. Give an error message for wrong
11025 number of arguments. Rename design_size to designsize.
11026 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
11027 checksum', `designsize' instead of `design_size'.
11029 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
11031 * eqn/*.[chy]: Change underaccent to uaccent.
11033 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
11034 give it the same precedence as ACCENT.
11035 * eqn/other.c (make_underaccent_box): New function.
11036 * eqn/box.h: Declare it.
11037 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
11040 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
11042 * pic/pic.y (reset_all): New function. Called in rule for RESET.
11043 (parse_init): Call reset_all.
11044 (define_variable): When defining scale reset only those
11045 pre-defined variables that are scaled.
11046 (defaults_table): Add `scale' as non-scaled value.
11048 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
11049 together with the text; allow any number of positioning words;
11050 allow center as a positioning word.
11052 * pic/object.c (output::compute_scale): Get picture maximum height
11053 and width from variables called maxpswid and maxpsht.
11054 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
11056 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
11058 * pic/object.c (object_spec::make_text): Multiply textht by number
11061 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
11063 (do_sprintf): New function.
11064 (pic.gperf): Add sprintf token.
11065 (text, sprintf): New rules.
11067 * pic/pic.y: `rand()' with no arguments returns a random number
11068 in the range [0,1).
11070 * pic/pic.y: Allow a bare expression to be an attribute: change
11071 precedences to support this. Change optional_ordinal rule to
11072 optional_ordinal_last to avoid reduce/reduce conflict.
11073 * pic/object.c (object_spec::object_spec): Initialize direction.
11075 * pic/pic.y: Implement ^ operator meaning exponentiation.
11077 * troff/node.h: Add default argument to mount_font.
11078 * troff/node.c (font_position): Read an optional third argument
11079 giving the external_name.
11080 (mount_font): Add optional argument giving the external_name.
11081 (mount_font_not_translate): Have additional argument giving
11082 external name. Use this name to load the font. Pass both names
11083 to font_info::font_info.
11084 (font_info::font_info): Have additional argument giving
11086 (class tfont): New member external_name.
11087 (font_info::get_tfont): Use external name to construct tfont_spec.
11089 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
11091 * eqn/lex.c (init_table): Add argument giving device. Define
11092 name of device to be "1".
11093 (do_ifdef): Counts as true if the argument has been defined with
11095 * eqn/main.c (main): Call init_table with device argument. Make
11096 device local to main.
11097 * eqn/eqn.h: Change declaration of init_table. Remove declaration
11100 * pic/lex.c (get_delimited): Allow text to be delimited by
11101 matching {}s. Don't recognize ending delimiter within a string.
11103 * troff/input.c (get_delim_name): New function.
11104 (token::next): Implement \C.
11106 * lib/font.c (font::load): Grok ---. Add an alias for each
11107 character based on its code.
11108 (font::get_code_width): Deleted.
11109 * lib/font.h (class font): Declare font::number_to_index().
11110 Remove declaration of font::get_code_width.
11111 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
11112 to indices of named characters.
11113 (font::number_to_index): New function.
11114 * troff/input.c (font::number_to_index): New function.
11115 (get_charinfo_by_number, charinfo::get_number,
11116 charinfo::set_number): New functions.
11117 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
11118 (token::process, token::description, token::get_char,
11119 token::add_to_node_list, token::operator==): Handle
11120 TOKEN_NUMBERED_CHAR.
11121 * troff/charinfo.h: Declare get_charinfo_by_number,
11122 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
11124 (charinfo::numbered): New function.
11125 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
11126 * troff/env.h (class environment): Remove declaration of ...
11127 * troff/env.c (environment::make_numbered_char_node): Deleted.
11128 * troff/node.c (make_numbered_node): Deleted.
11129 (class numbered_glyph_node): Remove.
11130 (troff_output_file::put_char_width, troff_output_file::put_char):
11131 Handle numbered chars.
11132 (troff_output_file::numbered_char): Removed.
11133 (tfont::get_code_width): Removed.
11134 (make_glyph_node): Don't search special fonts for numbered
11136 * troff/node.h: Remove declaration of make_numbered_node.
11137 * driver/input.c (do_file): Handle N command.
11138 * driver/printer.h: Add declaration of ...
11139 * driver/printer.c (printer::set_numbered_char): New function.
11140 * dvi/tfmtodit.c (main): Generate unnamed entries.
11141 * ps/devps/afmtodit: Likewise.
11142 * xditview/xtotroff.c (MapFont): Likewise.
11143 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
11145 * tbl/main.c (process_format): If multiple widths are specified
11146 for a column but all the widths are the same, don't give an error
11149 * tbl/table.c (table::do_row): If the current row is all lines and
11150 the stuff doesn't contains a line, mark the top of the row after
11151 printing stuff before the row. If the current row is not all
11152 lines and the stuff doesn't contain a line, don't unnecessarily
11153 mark the top of the row before printing the stuff.
11155 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
11157 * troff/groff.h: Remove MAX_PATH.
11158 * troff/input.c (open_file): Dynamically allocate space for the
11160 (open_mac_file, process_macro_file): Corresponding changes.
11162 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
11164 * troff/node.h (class output_file): Make copy_file pure. Add
11165 vspace method ifdef COLUMN. Add is_printing method.
11166 * troff/node.c: Add class printing_reg. Add class
11167 real_output_file. Derive other output_file classes from
11168 real_output_file; in these classes rename begin_page to
11169 really_begin_page, print_line to really_print_line, copy_file to
11170 really_copy_file, transparent_char to really_transparent_char.
11171 Move output_file::flush to real_output_file. Add printing member
11172 to class output_file.
11173 * troff/div.h: Remove printing member from top_level_diversion.
11174 Add vspace member function to class diversion ifdef COLUMN. Add
11175 some declarations ifdef COLUMN.
11176 * troff/div.c (top_level_diversion::copy_file,
11177 top_level_diversion::transparent_output,
11178 top_level_diversion::output): Don't test printing member before
11180 * troff/input.c: Handle initial variable_space_request ifdef
11182 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
11183 but comment it out.
11185 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
11187 * troff/div.c (diversion::need): Make any space forced. If we
11188 sprung a trap, set truncated_space to minus the distance to the
11189 trap and set needed_space to the amount that was needed.
11190 (top_level_diversion::space): A forced space turns no_space_mode
11192 (class constant_vunits_reg): New class.
11193 (init_div_requests): Implement number registers .trunc and .ne
11194 using constant_vunits_reg.
11195 (class truncated_space_reg): Deleted.
11197 * troff/div.h: Don't have a no_space_mode member in diversion.
11198 Instead have it in top_level_diversion.
11199 * troff/div.c (diversion::diversion): Don't initialize
11201 (top_level_diversion::top_level_diversion): Initialize
11203 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
11204 (macro_diversion::output): Don't clear no_space_mode.
11206 * troff/input.c (diverted_space_node::reread): Don't call
11207 environment::do_break. In fill mode, act like a blank line.
11208 (diverted_copy_file_node::reread): Don't call
11209 environment::do_break.
11211 * troff/div.c (blank_line): New function.
11212 * troff/div.h: Declare it.
11213 * troff/input.c (process_input_stack): Call it.
11215 * troff/div.c (truncated_space_reg::get_string): New function.
11216 (init_div_requests): Bind to .trunc.
11217 (space_request, top_level_diversion::space,
11218 top_level_diversion::output, macro_diversion::space,
11219 macro_diversion::output): Update truncated_space.
11220 (macro_diversion::output): Redo calculations when trap sprung.
11221 (macro_diversion::output, macro_diversion::space): No need for
11224 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
11225 after truncating post line spacing.
11227 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
11229 * ps/devps/prologue (MF, SF): Make them work even if setfont is
11230 defined as a procedure rather than as an operator.
11232 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
11234 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
11236 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
11238 * troff/div.c (top_level_diversion::output): Merge
11239 output_file::print_line and output_file::end_of_line member
11241 * troff/div.h (class output_file):
11242 * troff/node.c (troff_output_file::print_line,
11243 troff_output_file::end_of_line, output_file::end_of_line,
11244 ascii_output_file::print_line, suppress_output_file::print_line):
11245 Corresponding changes.
11247 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
11249 * troff/input.c (token::next): Don't give a warning for `\.'.
11251 * troff/env.c (environment::get_center_lines): New function.
11252 (init_env_requests): Bind number register .ce to it.
11253 * troff/env.h: Declare it.
11254 * tbl/table.c (table::init_output): Define reset macro to restore
11255 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
11257 (table::print): If center option not given, then imply center
11258 option if SAVED_CENTER_REG > 0.
11260 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
11262 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
11263 Troff.ps from DOWNLOAD.
11265 * troff/Makefile: Change comment in DEFINES to avoid confusing
11268 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
11269 code. Don't try to catch errors with stopped.
11270 (check_line_lengths): New function.
11271 * ps/devps/prologue (EXEC): Deleted.
11272 (EBEGIN, EEND): New procedures.
11274 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
11276 * troff/input.c: Include request.h before node.h.
11277 * troff/node.c: Likewise.
11278 * troff/env.c: Likewise.
11279 * troff/div.c: Likewise.
11280 * troff/node.h (class special_node): Store argument as a macro
11281 rather than a char *.
11282 * troff/node.c (special_node::special_node, special_node::copy):
11284 (special_node::~special_node): Deleted.
11285 (special_node::tprint): Deleted.
11286 (special_node::tprint_start, special_node::tprint_end,
11287 special_node::tprint_char): New functions.
11288 (troff_output_file::special): Deleted.
11289 (troff_output_file::start_special, troff_output_file::end_special,
11290 troff_output_file::special_char): New functions.
11291 * troff/input.c (special_node::tprint): New function.
11292 (do_special): Use macro not char *.
11293 (do_transparent_macro): Deleted.
11294 (token::next): Don't call do_transparent_macro.
11296 * troff/input.c (token::next): Add 'Y' case.
11297 (do_transparent_macro): New function.
11298 * troff/node.c (troff_output_file::special): Handle newlines with
11299 argument using new continuation convention.
11300 * driver/input.c (get_string): Cope with continuation convention.
11301 (do_file): Don't call skip_line after calling get_string(1).
11302 * ps/ps.c (ps_printer::special, ps_printer::do_import,
11303 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
11305 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
11308 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
11310 * troff/input.c (asciify): By default, illegal input characters
11311 should return empty string.
11313 * troff/input.c (copy_file): Handle first page transition like title.
11314 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
11316 * troff/input.c (token::next): Improve error message for EOF after
11318 (input_char_description): New function.
11319 (get_char_for_escape_name): Use input_char_description.
11320 (token::next): Warn about unrecognized escape sequences.
11321 (warning_table): Add WARN_ESCAPE.
11322 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
11325 * troff/token.h: Remove declaration of process_input_stack.
11327 * troff/input.c: Remove declaration of init_hyphen_requests.
11328 * troff/request.h: Correct spelling in declaration of same.
11330 * troff/input.c (token::next): Check whether escape_char is 0.
11332 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
11334 * groff.c (main, usage, help): Implement -P and -L options.
11335 * groff.sh: Likewise.
11337 * troff/input.c (token::next): Use some gotos to avoid code
11340 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
11341 Avoid calling symbol::symbol if name empty.
11343 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
11345 * troff/input.c (init_input_requests): Make \n(.x return the major
11346 version number and \n(.y return the minor version number.
11347 * troff/Makefile: Construct file majorminor.c defining
11348 major_version and minor_version automatically from ../VERSION.
11350 * troff/node.c (class glyph_node): Make operator new and operator
11352 (class ligature_node): Similarily.
11354 * troff/input.c (operator==(const macro &, const macro &)): New
11356 (non_interpreted_node::same): Use this.
11357 (string_iterator::string_iterator): Make macro& argument const.
11359 * troff/input.c (input_iterator::get): New function. Don't make
11360 asciify_macro or class non_interpreted_node friends of class
11362 (non_interpreted_node::interpret): Use input_iterator::get.
11363 (asciify_macro): Likewise.
11365 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
11366 ~non_interpreted_node): Deleted.
11367 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
11370 * troff/symbol.h: Make all symbol member functions const.
11372 * lib/strtol.c: New file.
11373 * lib/Makefile: Add strtol.c.
11374 * Makefile: Define STRTOL as strtol.o to include strtol in
11377 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
11379 * pic/troff.c (troff_output::simple_circle): Divide by scale.
11381 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
11383 * troff/input.c (do_special): Use input_level.
11385 * troff/token.h (TOKEN_BACKSPACE): New token.
11386 (token::backspace): New function.
11387 * troff/input.c (token::description, token::next, token::process):
11388 Grok TOKEN_BACKSPACE.
11389 (do_special): Turn TOKEN_BACKSPACE back into \b.
11391 * troff/token.h (token::leader): New function.
11392 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
11394 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
11396 * troff/input.c (do_special): Use token::description in error
11399 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
11401 * troff/input.c (decode_args): Combine quoted and
11402 quote_input_level variables. Make it a for (;;) loop.
11404 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
11406 * troff/input.c (read_long_escape_name): The test for whether to
11407 expand buffer was off by 1.
11408 (read_string): Similarily.
11410 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
11412 * troff/input.c: Use `const int' rather than `static const int'.
11414 * troff/div.h (diversion::copy_file): Declare as pure virtual.
11415 (macro_diversion::copy_file): New function.
11416 * troff/node.h: New class diverted_copy_file_node.
11417 * troff/node.c: Implement it.
11418 * troff/input.c (copy_file): Use diversion::copy_file. Handle
11419 first page transition by pushing a diverted_copy_file_node.
11420 * troff/input.c (token::next, process_input_stack): Don't handle
11423 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
11425 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
11426 whether space widths need adjusting.
11428 * troff/charinfo.h: Generalize translated_to_space to
11429 special_translation so as to allow translation to \&.
11430 * troff/input.c (translate): Allow translation to \&.
11431 (charinfo::*): Corresponding changes.
11432 * troff/node.c (make_node, node::add_char): Corresponding changes.
11433 * troff/node.h (dummy_node::dummy_node): Allow optional first
11436 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
11437 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
11439 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
11440 TOKEN_REQUEST with an argument of TITLE_REQUEST.
11441 (token::process): Grok that.
11442 * troff/input.c (copy_file): Handle first page transition like
11443 title by pushing a COPY_FILE_REQUEST cookie.
11444 (token::next, process_input_stack): Grok that.
11445 * troff/node.h (output_file::copy_file): Add x and y arguments.
11447 * troff/div.c (top_level_diversion::copy_file): Supply them.
11448 * troff/node.c (troff_output_file::copy_file): Add x and y
11449 arguments; moveto specified position. Invalidate font_position
11450 array after copying file.
11451 (output_file::copy_file): New function.
11452 (suppressed_output_file::copy_file, ascii_output::copy_file):
11454 * troff/input.c (transparent_file): New function.
11455 (init_input_requests): Bind to "trf".
11456 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
11457 (process_input_stack): Likewise.
11459 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
11461 * troff/node.c (init_node_requests): New number registers .kern
11462 pointing to global_kern_mode, and .lg pointing to
11463 global_ligature_mode.
11465 * troff/node.c (ligature): Don't change it if we get a bad
11468 * troff/input.c (do_define_string): Don't strip tabs.
11470 * troff/input.c (asciify_macro): Make the string_iterator auto.
11472 * troff/node.c (init_font_requests): Rename to...
11473 (init_node_requests):
11474 * troff/node.h: Change declaration.
11475 * troff/input.c (main): Change call.
11477 * troff/input.c (node::reread, diverted_space_node::reread): New
11479 (process_input_stack): Call reread rather than
11480 get_diverted_space_node.
11481 * troff/node.c (node::get_diverted_space_node,
11482 diverted_space_node::get_diverted_space_node): Removed.
11483 * troff/node.h: Declare reread methods instead of
11484 get_diverted_space_node methods. Make `n' member private.
11485 * troff/input.c: (token::diverted_space): Removed.
11486 * troff/token.h: Removed declaration.
11489 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
11491 * eqn/script.c (script_box::compute_metrics): Don't let
11492 SUP_RAISE_FORMAT become negative.
11494 * tbl/table.c (table::do_row): Entries that don't end in the
11495 this row shouldn't make the row non-blank.
11497 * tbl/table.c (table::make_columns_equal): Only set the width of
11498 columns which are marked as equal.
11500 * tbl/main.c (process_data): Before issuing excess data error,
11501 if last character was a newline unget it; then get it again after
11502 the error. Also include the contents of the entry in the message.
11504 * groff.c: New file.
11505 * Makefile: Build groff from groff.c. Make it possible to use
11506 either groff.sh or groff.c as groff.
11507 * Makefile.bd: Similarily.
11509 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
11511 * groff.sh: Don't delay expansion of $@ in assignment to files.
11512 Remove occurrences of \".
11514 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
11516 * all Makefiles: Simplify and rearrange.
11518 * Makefile: Handle fmod like malloc.
11519 * lib/Makefile: Similarily.
11520 * lib/fmod.c: Remove #ifdef NEED_FMOD.
11522 * Makefile: Rename OPTIMISE to OPTIMIZE.
11524 * groff.sh: Remove assignment to PATH.
11525 * Makefile: Remove SHPATH variable.
11526 * Makefile.bd: Similarily.
11528 * groff.sh: Add -V option to print the pipeline instead of
11531 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
11533 * lib/font.c: Split off file searching into ...
11534 * lib/fontfile.c: New file.
11536 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
11538 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
11540 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
11541 Also change misleading comment.
11542 (table::do_vspan): Change similarily misleading comment.
11543 * tbl/main.c (process_data): A format row with an explicit `s'
11544 uses up a data line, even if all the other columns are `_' or `='.
11546 * troff/input.c (token::description): Fix description of
11547 TOKEN_DUMMY and TOKEN_EMPTY.
11549 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
11551 * groff.sh: Fix description of -Z in help message.
11553 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
11555 * pic/object.c (object_spec::make_object): Allow negative and zero
11557 * pic/pic.y: Give linethick default value of -1.0.
11558 * pic/troff.c (troff_output::troff_output): Initialize
11559 last_line_thickness to BAD_THICKNESS.
11560 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
11561 (troff_output::line_thickness): Canonicalize negative thicknesses
11562 to RELATIVE_THICKNESS.
11563 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
11564 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
11566 (tex_output::start_picture): Set pen_size to -2.0.
11568 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
11569 0, then use 0 linewidth.
11570 (ps_printer::ps_printer): Initialize line_thickness to -1.
11572 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
11574 * ps/devps/symbolchars: Remove `or'.
11575 * ps/tmac.ps: Implement \(or with .char.
11577 * ps/devps/symbolchars: Move most characters into textmap.
11578 * ps/devps/textmap: Add names for troff bracket characters. Remove
11581 * ps/devps/TSymbol.ps: Removed.
11582 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
11583 * ps/tmac.ps: Do with .char what TSymbol did.
11584 * ps/devps/download: Remove TSymbol.
11586 * ps/devps/T: Removed.
11587 * ps/devps/Troff.ps: Removed.
11588 * ps/devps/Troff.afm: Removed.
11589 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
11590 * ps/devps/download: Remove Troff.
11591 * ps/devps/FontMakefile: Remove T target.
11592 * ps/devps/DESC-A4: Remove T from font list.
11593 * ps/devps/DESC-letter: Likewise.
11595 * troff/input.c (macro_to_node): Rename to ...
11596 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
11597 character's definition while processing it.
11598 * troff/node.c (node::add_char, make_node): Change calls to
11599 macro_to_node accordingly.
11601 * troff/input.c (token::next): Translate \_ to \(ul.
11603 * tty/devascii/R.proto: Add `|'.
11604 * tty/devlatin1/R.proto: Likewise.
11606 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
11608 * man: Put the version number in all the man pages.
11610 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
11612 * Makefile.bd: New file.
11613 * README.bd: New file.
11615 * VERSION: New file.
11616 * lib/version.c: Removed.
11617 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
11620 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
11621 environment variable.
11623 * all Makefiles: Split install target into install.bin for
11624 binaries, and install.nobin for everything else.
11625 * Makefile: Add bindist target.
11627 * man/afmtodit.man: New file.
11628 * man/Makefile: Add afmtodit.n to MAN1PAGES.
11629 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
11631 * ps/Makefile: Pass BINDIR to make install in devps.
11633 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
11634 the space character.
11636 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
11638 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
11640 * ps/ps.c: Redo font downloading.
11641 * ps/devps/download: New file.
11642 * ps/devps/Makefile: Add download to DEVICEFILES.
11643 * ps/devps/afmtodit: Remove -d option.
11644 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
11645 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
11646 * ps/devps/zapfdr.ps: Likewise.
11647 * ps/devps/TSymbol.ps: Likewise.
11649 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
11651 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
11653 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
11655 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
11656 then strip the first line if it starts with %.
11657 * Makefile: Add a comment about this.
11659 * man/tfmtodit.man: New file.
11660 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
11661 * dvi/Makefile: Install tfmtodit in BINDIR.
11663 * dvi/tfmtodit.c (usage): Mention -v option.
11665 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
11667 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
11668 * troff/node.c (troff_output_file::transparent_char): Don't call
11671 * eqn: Add check_tabs method to most box classes.
11672 * eqn/box.c (box::top_level): Call check_tabs.
11674 * eqn/script.c (script_box::output): Use \Z.
11675 * eqn/limit.c (limit_box::output): Use \Z.
11677 * eqn/box.c (box::top_level): Use itoa.
11679 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
11681 * dvi/tmac.dvi: Add font translations for CR, C, TT.
11682 * dvi/devdvi/Makefile: Don't make links to CW.
11684 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
11686 * xditview/tmac.X: Likewise.
11688 * troff/node.c: Add font translation feature.
11689 (get_font_translation): New function.
11690 (symbol_fontno): Translate the font name.
11691 (mount_font_no_translate): Rename to mount_font to this.
11692 (mount_font): New function.
11693 (font_family::make_definite): Call mount_font_no_translate instead
11695 (mount_style): Translate the font name.
11696 (font_translate): New function.
11697 (init_font_requests): Bind "ftr" to font_translate.
11699 * ps/devps/prologue (SN): New procedure that rounds a position to
11700 the nearest (pixel + (.25,.25)).
11701 (DL): Use SN to round endpoints.
11703 * lib/version.c: Changed version to 0.5.
11705 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
11707 * Makefile: Move definition of PAGE to the very beginning, so that
11708 people are less likely to miss it.
11710 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
11712 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
11714 * troff/env.c (environment::choose_breakpoint): Make `can't find
11715 breakpoint' error a warning of type WARN_BREAK. Change message to
11716 `can't break line'.
11717 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
11719 * troff/input.c: Add WARN_BREAK to warning_table. Include
11720 WARN_BREAK in DEFAULT_WARNING_MASK.
11722 * tty/tmac.tty: Add definition of \(+-.
11724 * groff.sh: Remove `--' option to set command.
11726 * dvi/devdvi/texsy.map: Remove duplicate md entry.
11728 * ps/devps/eqnchar: Better definition of cdot using md.
11729 * dvi/devdvi/eqnchar: Likewise.
11730 * xditview/devX100/eqnchar: Likewise.
11731 * xditview/devX75/eqnchar: Likewise.
11732 * eqn/lex.c: Add definition of cdot.
11734 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
11736 * troff/input.c (get_optional_char): New function.
11737 * troff/input.c (set_page_character): Use get_optional_char(),
11738 rather than has_arg() and tok.get_char(1).
11739 * troff/env.c (tab_character, leader_character, hyphen_char,
11740 field_characters): Likewise.
11741 (margin_character): Likewise. Also always delete the
11742 margin_character_node.
11744 * troff/input.c (token::get_char): Use token::description.
11746 * troff/input.c (has_arg): Don't skip over tab and \}.
11747 * troff/number.c (start_number): Give a warning if the number
11748 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
11750 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
11752 * troff/input.c (empty_name_warning, non_empty_name_warning): New
11754 (get_name, get_long_name): Use these. Rename `warn' argument to
11757 * troff/node.c (get_fontno): Test that the symbol is not null.
11759 * troff/input.c (token::description): New function.
11760 * troff/number.c (parse_term): Use token::description in `numeric
11761 expression expected' message.
11762 * troff/groff.h: Add WARN_MISSING.
11763 * troff/number.c (start_number): New function.
11764 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
11765 get_incr_number): Use start_number().
11766 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
11768 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
11769 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
11771 * troff/input.c (token::get_char): Use WARN_MISSING.
11772 * troff/input.c (token::delimiter): Use token::description.
11773 * troff/env.c (environment_switch): Back out Aug 3 change.
11774 * troff/input.c (has_arg): Skip over \}s and tabs but give a
11776 * troff/token.h (token::tab): New function.
11777 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
11778 * troff/reg.c (alter_format): Likewise.
11779 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
11781 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
11783 * troff (most files): Redo warnings. Divide warnings into various
11784 categories; warning() has an additional first argument indicating
11785 the category it falls into.
11786 * troff/input.c (main): -w now takes an argument. New option -W.
11787 (enable_warning, disable_warning): New functions.
11789 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
11790 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
11792 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
11794 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
11795 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
11796 * xditview/devX75/eqnchar: Likewise.
11797 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
11799 * eqn/other.c: When bar or over applies to a single character
11800 don't produce an overline_box or an underline_box. Instead produce
11801 an accent_box or an underaccent_box, with the accent a line
11802 whose width is accent_width. New classes underaccent_box,
11803 overline_char_box and underline_char_box.
11804 * eqn/box.h: Move overline_box, underline_box, accent_box class
11805 declarations into eqn/other.c. Add declarations of
11806 make_underline_box, make_overline_box, make_accent_box.
11807 * eqn/eqn.y: Call make_overline_box, make_underline_box
11808 make_accent_box instead of constructors.
11809 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
11811 * eqn/other.c: Add accent_box::~accent_box.
11812 * eqn/box.h: Declare it.
11814 * groff.sh: With -Tps, use eqn -D.
11816 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
11818 (underline_box::output): Similarily.
11819 (accent_box::output): Use \Z.
11821 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
11824 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
11826 * troff/div.c (top_level_diversion::transparent_output(unsigned
11827 char)): Use asciify.
11828 * troff/input.c (asciify): Don't make it static.
11829 * troff/token.h (asciify): Declare it.
11831 * troff/input.c (get_name, get_long_name, token::get_char,
11832 token::delimiter): Add an extra default argument which says
11833 whether a warning should be printed.
11834 * troff: Pass a non-zero argument to one of these rather than
11835 printing a warning directly.
11837 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
11839 * troff: Consistently use symbol::is_null.
11841 * troff/dictionary.h: Move some inline functions into
11844 * troff/request.h: Move inline functions into input.c.
11845 (request_or_macro::invoke): Make it pure.
11847 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
11848 * troff/input.c (init_input_requests): Use class constant_int_reg.
11849 (class compatible_reg): Deleted.
11850 * troff/div.c (init_div_requests): Use class constant_int_reg.
11851 (class last_post_line_extra_space_reg): Deleted.
11853 * troff/env.c (tab_character): Don't change the tab character if
11854 we get an invalid argument.
11855 (hyphen_char): Similarily.
11857 * troff/reg.c (alter_format): Check that nm is not null.
11859 * Makefile, groff.sh: Make it possible to customize the commands
11860 used for printing PostScript and dvi files. Also make it possible
11861 to customize the path used by groff.sh.
11863 * eqn/eqn.y: Make `left' right associative.
11865 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
11867 * pic/pic.h: Added definition of M_SQRT2 for those systems that
11870 * pic/pic.h: Removed definition of INT_MAX.
11872 * troff/node.c (italic_corrected_node::vertical_extent): Omit
11875 * troff/input.c (token::next): Handle \R like \n.
11877 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
11879 * ps/tmac.pc (PSPIC): Simplify.
11881 * troff/env.c (tab_stops::to_string):
11882 * pic/pic.y (object_type_name):
11883 * pic/troff.c (simple_output::line):
11884 * pic/tex.c (tex_output::spline):
11885 * pic/object.c (object_spec::make_object):
11886 * tbl/main.c (process_data): Add cases to switch statements to
11887 avoid cfront warnings. (Some of these are spurious, since the
11888 switch already has a default case.)
11890 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
11891 `ps-'. Don't test systat; instead check number of arguments to
11894 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
11896 * macros/tmac.e: Do not decrease the page offset by 0.5i.
11898 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
11899 Unlink the file as soon as we have opened it, so that we don't
11900 have to bother with signal handlers.
11901 (handler): Deleted.
11902 (fatal_error_exit): Deleted.
11903 (main): Don't call signal.
11905 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
11907 * dvi/devdvi/Makefile: Use the -k option with S and MI.
11909 * pic/pic.y: If there is a label, or an nth construction before
11910 the first `.' in the argument to `with', ignore it and generate a
11912 * pic/lex.c (lex_warning): New function.
11914 * tbl/table.c (table::init_output): In section keep and release
11915 macro, use 0 indent when diverting and the correct indent when
11918 * troff/input.c (interpolate_number_format): Do not interpolate
11919 anything if the number register is not defined.
11921 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
11923 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
11925 * ps/devps/prologue (PICTURE): Set components of graphics state to
11926 their default values.
11928 * ps/devps/text.enc: Add trademark
11929 * ps/devps/textmap: Add names for club, spade, heart, diamond,
11930 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
11931 * ps/devps/symbolchars: Add names for summation and product.
11933 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
11934 suchthat. Add pp. Add upper-case letters.
11936 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
11937 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
11940 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
11941 rA (right angle bracket) to ra. Introduce names for double-headed
11942 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
11943 * ps/devps/textmap: Likewise for ps device.
11944 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
11945 * tty/devascii/R.proto: Rename lA to la and rA to ra.
11946 * tty/devascii/R.proto: Likewise.
11947 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
11949 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
11951 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
11953 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
11956 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
11958 * troff/div.c (when_request): Use symbol::is_null rather than
11959 has_arg to determine whether we have an argument.
11960 (change_trap): Remove the trap if we get an invalid number. Give
11961 an error if we don't get at least the macro name.
11962 (diversion_trap): Remove trap if we get an invalid name or number.
11964 * troff/env.c (environment_switch): Pop if we get an invalid
11965 symbol or numeric expression.
11967 * troff/input.c (do_define_macro): If EOF is encoutered while
11968 defining the macro, do tok.next() before returning.
11970 * troff/token.h (has_arg): Move definition from here, to ...
11971 * troff/input.c (has_arg): ... here
11973 * troff/env.c (space_size): Do nothing if we get an invalid argument.
11974 * troff/input.c (shift): Likewise.
11976 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
11979 * pic/troff.c (troff_output::start_picture): Comment out calls to
11982 * eqn/main.c (do_file): Subtract 1 from current_lineno if
11983 interpret_lf_args succeeds.
11985 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
11986 \\. This avoids problems with \$N.
11988 * groff.sh: Pass -C to preprocessors.
11990 * lib/lf.c (interpret_lf_args): Be more flexible.
11992 * tbl/main.c (main): Add -C option.
11993 (table_input::get): Do not recognize TE if followed by character
11994 other than a space or newline unless -C option given.
11995 (process_input_file): Likewise for lf, TS.
11996 (process_data): Likewise for lf in text blocks.
11998 * eqn/main.c (main): Add -C option.
11999 (do_file): Don't recognize EQ, EN or lf if followed by character
12000 other than space or newline unless -C option given.
12001 * eqn/lex.c (file_input::read_line): Similarily.
12002 * eqn/eqn.h: Declare compatible_flag.
12004 * etc/soelim.c (main): Add -C option.
12005 (interpret_lf_args): Use version in libgroff.
12008 * pic/main.c (main): Add -C option, which sets compatible_flag.
12009 (top_input::get), (top_input::peek): If -C option not given,
12010 do not recognize .PS/.PE/.PF/.lf if followed by a character
12011 other than space or newline.
12012 * pic/lex.c (file_input::read_line): Similarily.
12013 * pic/pic.h: Add declaration of compatible_flag.
12015 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
12017 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
12019 * troff/node.c, troff/node.h: Add `asciify' methods to classes
12020 derived from node. New class space_char_hmotion_node.
12021 * troff/input.c (asciify_macro): New function.
12022 * troff/input.c (init_input_requests): New request `asciify' bound
12024 * macros/mm.diff: New file.
12025 * Makefile: In install.mm target use `patch' to apply
12028 * troff/input.c (macro::print_size): Just print the size in bytes.
12030 * troff/div.c (return_request): Correct the argument
12033 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
12035 * troff/node.h (class composite_node): Add sz member.
12036 * troff/node.c (composite_node::size): Return sz.
12037 * troff/input.c (macro_to_node): Use the initial size in the
12038 environment as the size of the composite_node.
12040 * troff/node.c (node::zero_width_tprint): Provide a reasonable
12043 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
12045 * troff/div.c (change_trap): If we get a bad number expression,
12048 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
12050 * lib/matherr.c (matherr): Define this only if math.h defines
12053 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
12055 * troff/div.c (macro_diversion::distance_to_next_trap): If there
12056 no diversion trap return vunits(INT_MAX - vresolution).
12058 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
12060 * troff/input.c (do_zero_width): New implementation that doesn't
12061 use a temporary environment. Use instead:
12062 (token::add_to_node_list): New function.
12063 * troff/env.c (environment::get_prev_char_height),
12064 (environment::get_prev_char_height),
12065 (environment::get_prev_char_skew): New functions.
12066 (environment::get_prev_char): New function.
12067 (environment::get_prev_char_width): Change to use get_prev_char.
12068 (init_env_request): Implement new registers .cht, .cdp, .csk.
12069 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
12070 \Z being processed in a separate environment.
12072 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
12074 * tbl/table.c: Removed TABLE_BOTTOM_REG.
12076 * tbl/table.c (table::init_output): In the section release macro,
12077 give a warning message if the section won't fit on one page.
12079 * tbl/table.c (table::do_top): Emit table keep only if table is
12081 (table::do_bottom): Likewise for table release.
12082 (table::table), (table::add_vertical_rule): Remove reference to
12084 * tbl/table.h: Remove keep member.
12086 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
12087 SECTION_RELEASE_MACRO, if there's not enough space before the next
12088 trap to output the diversion, call T# ourselves, set
12089 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
12090 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
12091 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
12092 vertical position and return to it before turning traps on again.
12094 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
12096 * troff/node.c, troff/node.h: In classes derived from node,
12097 replace prev_char_width method by last_char_node method.
12098 * troff/env.c (environment::get_prev_char_width): Use
12099 node::last_char_node rather than node::get_prev_char_width.
12101 * Makefile: Added comment about -fno-inline on 68030-based
12104 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
12105 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
12106 expressions using sizeof to int.
12107 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
12109 * macros/tmac.e (TS): Don't move @f back past the current
12112 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
12114 * ps/ps.c (main): Buffer stderr.
12115 * dvi/dvi.c (main): Likewise.
12116 * tty/tty.c (main): Likewise.
12118 * ps/ps.c (ps_printer::do_import): Improve error handling.
12120 * troff/input.c (abort_request): Use asciify.
12122 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
12123 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
12124 type of first argument int rather than char. This works around a
12125 bug on the 68030 based Apollo using g++ 1.37.1.
12127 * tbl/table.h (class table): Add `keep' member.
12128 * tbl/table.c (table::table): Initialize `keep'.
12129 (table::add_vertical_rule): Set `keep' to 1.
12130 (table::do_top): Only emit table keep macro is `keep' is non-zero.
12131 (table::do_bottom): Likewise for table release macro.
12132 (table::do_row): Emit section keep macro even if the row is 0.
12134 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
12136 * macros/tmac.e (@C): Preserve the font family across the change
12139 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
12141 * lib/font.c: Initialize font::hor and font::vert to 1.
12142 (font::load_desc): Check the values of font::hor and font::vert.
12144 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
12145 be included in a C compilation.
12146 (iftoa): Use INT_DIGITS. Include lib.h.
12148 (as_string): Likewise.
12149 * tbl/table.c: Removed definition of INT_DIGITS.
12150 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
12151 * troff/input.c (input_input_requests): Likewise.
12152 * ps/ps.c (make_encoding_name): Likewise.
12153 (ps_printer::set_style): Likewise.
12154 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
12156 * tty/devascii/R.proto: Map fm onto '.
12157 * tty/devlatin1/R.proto: Likewise.
12159 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
12161 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
12162 argument to \w is at a different input level.
12164 * tbl/table.c (table::init_output): Define a new macro
12165 REPEATED_VPT_MACRO, like vpt but if in a diversion also
12166 transparently outputs itself.
12167 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
12169 (table::do_row): Likewise.
12171 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
12172 TRANSPARENT_STRING_NAME.
12174 * tbl/table.c (table::init_output): In the table release macro
12175 print an error message and don't produce any output if after
12176 issuing the need request the table still will not fit. Also
12177 remove the diversion after bringing it back.
12179 * tbl/table.c (table::init_output): Define a new macro
12180 REPEATED_MARK_MACRO, like mk but if in a diversion also
12181 transparently outputs itself.
12182 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
12183 is necessary because .TH might not call .T#.
12184 (table::do_top): Likewise TOP_REG.
12185 (table::define_bottom_macro): If TOP_REG is no longer valid, use
12186 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
12187 table header might contain just the two top rules.
12189 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
12191 * troff/div.c: Implement new request `ptr' to print all traps.
12193 * troff/env.c (init_env_requests): Implement `.tabs' reg with
12194 init_string_env_reg.
12195 * troff/env.c (class tab_reg): Deleted.
12197 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
12199 * troff/div.c: New number register .pn returns the number of the
12200 next page as set by the pn request.
12202 * macros/tmac.an: Redid headers and footers. Number each manual
12203 entry starting from 1 unless \nC is > 0, like Sun. Added an
12204 optional 5th argument to .TH which specifies the manual name and
12205 appears in the center of the header. Understand the X, P and D
12206 registers like Sun.
12208 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
12210 * troff/env.c (init_env_requests): New number register `.lt' to
12211 return the title length.
12213 * troff/node.h (class transparent_dummy_node): New class.
12214 * troff/node.c (class transparent_dummy_node): Provide member
12216 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
12219 * troff/input.c (token::next): New escape sequence \).
12220 * troff/input.c (get_copy): Recognize \) in copy mode.
12222 * troff/input.c (input_stack::clear): New function.
12223 * troff/input.c (exit_request): Use input_stack::clear.
12225 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
12226 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
12228 * troff/env.c: Move set_page_character to input.c. Move
12229 page_character to input.c also.
12230 * troff/env.c (title): Split off the reading of the parts of the
12231 title into read_title_parts.
12232 * troff/input.c (read_title_parts): New function. Check the
12233 input_level when testing whether a token matches the delimiter.
12235 * troff/input.c (exit_request): New function.
12236 * troff/input.c (init_input_requests): Bind ex request to
12237 exit_request rather than exit_groff.
12239 * troff/input.c (exit_groff): Call tok.next() before
12240 process_input_stack().
12242 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
12244 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
12245 * troff/env.h: ditto.
12246 * troff/input.c: ditto.
12248 * troff/env.c (environment::is_empty): Test pending_lines.
12250 * troff/env.c (environment::have_pending_lines): Removed.
12252 * troff/input.c: Add request to flush pending lines from the
12255 * troff/env.c, troff/env.h: Add automatic widow control feature.
12257 * troff/input.c (exit_groff): Do process_input_stack() after
12258 do_break() but before setting exit_flag to 2.
12260 * troff/input.c: Remove FLUSH_PENDING_LINES and
12261 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
12262 environment after END_TRAP token seen, but only if there aren't
12263 any more traps still unfinished.
12264 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
12266 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
12268 * troff/env.c: Rename the `retain_size' member of class
12269 pending_output_line to `no_fill'.
12271 * troff/env.c (title): When the line is output, make the
12272 retain_size argument !fill.
12274 * troff/node.h: Add `hyphenated' member to struct breakpoint.
12275 * troff/node.c (space_node::get_breakpoints),
12276 (dbreak_node::get_breakpoints): Fill this in.
12277 * troff/env.c: Allow specification of maximum number of
12278 consecutive hyphenated lines.
12280 * troff/env.c (environment::is_empty): Add test for !current_tab.
12282 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
12284 * troff/env.c (environment::hyphenate_line): Don't completely give
12285 up if the word is not to be hyphenated; continue so that breaks
12286 can be made at break_char_node's.
12288 * lib/lib.h: Only define INT_MAX if it's not already defined;
12289 undef INT_MIN if it's already defined.
12291 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
12293 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
12294 This works around a bug in AT&T C++ 2.0 used with an ANSI C
12297 * macros/tmac.an (an-header): Set no-space mode.
12299 * macros/tmac.an (TH): Start a new page if necessary.
12301 * Started using ChangeLog at version 0.4.
12304 version-control: never