1 2002-05-22 Werner LEMBERG <wl@gnu.org>
3 * MORE.STUFF: Add info about David Frey's deroff implementation.
6 2002-05-16 Werner LEMBERG <wl@gnu.org>
8 Pic's `with' attribute now accepts positions.
10 * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
11 ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
13 (object_spec): Add rule for `WITH' and `position'.
14 (relative_path): Give `corner' the precedence of `CHOP'.
15 * src/preproc/pic/object.h (path): New members `pos' and
17 * src/preproc/pic/object.cc: Updated initializers of `path'.
18 (path::follow): Handle `is_position'.
20 * doc/pic.ms: Completely updated grammar description.
21 Many typographical improvements.
23 2002-05-15 Werner LEMBERG <wl@gnu.org>
25 * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
26 code of x in range 0-127) also.
27 * doc/groff.texinfo, man/groff_diff.man: Updated.
29 Added keywords `north', `south', `east', and `west' for corners
32 * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
35 * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
36 (corner): Handle them.
38 2002-05-14 Werner LEMBERG <wl@gnu.org>
40 * src/devices/grops/grops.man: Clarify handling of `download' file.
42 2002-05-11 Werner LEMBERG <wl@gnu.org>
44 Adding `warnscale' and `spreadwarn' requests, based on a patch from
45 Jeffrey Friedl <jfriedl@yahoo.com>.
47 * src/roff/troff/input.cc (spread_limit, warn_scale,
48 warn_scaling_indicator): New global variables.
49 (warnscale_request, spreadwarn_requests): New functions.
50 (main): Initialize `warn_scale' and `warn_scaling_indicator'.
51 (init_input_requests): Updated.
52 (error_type): Add `OUTPUT_WARNING'.
53 (do_error): Handle it.
54 (output_warning): New warning function which shows output location.
55 * src/roff/troff/env.h (spread_limit): New external variable.
56 * src/roff/troff/env.cc (environment::choose_breakpoint): Use
58 (distribute_space): Emit warning if added space is larger than
60 (environment::possibly_break_line): Emit warning if a line can't
61 be adjusted on both sides.
63 * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
65 2002-05-08 Werner LEMBERG <wl@gnu.org>
67 * src/roff/troff/node.cc (special_node::special_node): Use
68 env_definite_font(curenv) instead of curenv->get_font(). Otherwise
69 \X''\% crashes, for example.
71 * doc/groff.texinfo: Document \! and \? used at top-level.
73 2002-05-06 Werner LEMBERG <wl@gnu.org>
75 * src/preproc/pic/pic.man: Fix some keyword syntax.
76 Other minor typographical fixes.
78 * src/roff/groff/groff.man: Fix typos.
80 2002-05-04 Werner LEMBERG <wl@gnu.org>
82 * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
83 (ShortOpt[]): This to avoid problems with refer.
85 * doc/pic.ms: Fix typo.
86 Fix pic grammar description.
88 * tmac/an-old.tmac (ne): Use de1, not de.
90 2002-05-03 Werner LEMBERG <wl@gnu.org>
92 * doc/groff.texinfo: Finished separation of glyphs and characters.
93 Don't use the string `Appendix' for appendix headers (both in
94 the text and the table of contents).
95 * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
98 Use registers LL and LT (similar to -ms) for controlling the
99 length of title and line, respectively, in the -man and -mdoc
102 * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
103 (doc-setup-page-layout): Use \n[LL] and \n[LT].
104 * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
106 (an-header, an-p-footer): Use \n[LT].
107 * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
108 doc/groff.texinfo: Document it.
110 2002-05-02 Werner LEMBERG <wl@gnu.org>
112 * doc/fdl.texi: New file.
113 * doc/groff.texinfo: Include it.
114 Define and use @copying.
115 Starting with separating glyph, symbol, and character.
117 2002-04-27 Werner LEMBERG <wl@gnu.org>
119 * Makefile.in (EXEEXT): Set it.
120 * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
123 * src/include/nonposix.h: Define GS_NAME.
124 * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
126 Some preliminary changes for EMX support under OS/2.
128 * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
129 __EMX__ similar to __MSDOS__.
130 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
132 2002-04-25 Werner LEMBERG <wl@gnu.org>
134 * doc/groff.texinfo: Integrated groff_out.man.
137 2002-04-23 Werner LEMBERG <wl@gnu.org>
139 * man/groff_out.man: Minor fixes.
141 2002-04-23 Werner LEMBERG <wl@gnu.org>
143 * doc/groff.texinfo: Moving @cindex entries after @Def* to get
144 correct page references.
145 Fixed many index entries.
147 2002-04-23 Bernd Warken <bwarken@mayn.de>
149 * man/roff.man: Enlarged.
151 2002-04-22 Werner LEMBERG <wl@gnu.org>
153 * doc/groff.texinfo: More examples, other fixes.
155 2002-04-20 Werner LEMBERG <wl@gnu.org>
157 * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
158 will now form a chain, e.g.
167 This is for compatibility with plan 9's troff.
169 * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
173 * doc/groff.texinfo: Add documentation of remaining requests and
176 2002-04-19 Werner LEMBERG <wl@gnu.org>
178 * doc/groff.texinfo: Add documentation of remaining escapes.
180 * font/devdvi/generate/tc.map: Remove entry for `sr'.
181 * font/devdvi/*TC: Regenerated.
183 2002-04-18 Werner LEMBERG <wl@gnu.org>
185 * src/roff/troff/input.cc (token::next): Make \H behave consistently
186 if not in compatibility mode, i.e., increment relative to the
188 * doc/groff.texinfo: Updated accordingly.
190 2002-04-17 Werner LEMBERG <wl@gnu.org>
192 * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
194 2002-04-16 Bernd Warken <bwarken@mayn.de>
196 * src/roff/groff/groff.man: Improve documentation of -P option.
199 2002-04-15 Werner LEMBERG <wl@gnu.org>
201 Add new escape \F to switch font family.
203 * src/roff/troff/input.cc (token::next): Handle \F.
204 * src/roff/troff/env.cc (environment::set_family): Handle
206 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
209 2002-04-14 Werner LEMBERG <wl@gnu.org>
211 * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
214 2002-04-13 Werner LEMBERG <wl@gnu.org>
216 Implement \f[] as an alternative to \fP. Change \mP and \MP to
217 \m[] and \M[], respectively.
219 * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
220 (symbol::symbol): Handle NULL string and empty string differently.
221 * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
222 * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
223 Add optional parameter.
224 Updated calling functions.
225 (get_copy, do_glyph_color, do_fill_color, token::next): Use
227 * src/roff/troff/env.cc (environment::set_font): Ditto.
229 * src/preproc/pic/troff.cc (troff_output::set_fill,
230 troff_output::reset_color: Updated.
232 * tmac/www.tmac: Updated.
234 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
235 doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
238 * tmac/Xps.tmac: Remove some redundant code.
240 * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
241 tmac/dvi.tmac, contrib/groffer/groffer.man, man/roff.man,
242 man/groff_out.man, man/groff.man, man/groff_diff.man,
243 src/roff/groff/groff.man: Replace \f[P] with \f[].
245 2002-04-13 Bernd Warken <bwarken@mayn.de>
247 * src/include/printer.h, src/libs/libdriver/printer.cc
248 (printer::change_fill_color): New member function.
249 * src/libs/libdriver/input.cc (parse_D_command): Use it.
251 2002-04-12 Werner LEMBERG <wl@gnu.org>
253 * doc/groff.texinfo: Completed pass on gtroff reference.
255 2002-04-11 Werner LEMBERG <wl@gnu.org>
257 * doc/groff.texinfo: More fixes.
259 2002-04-11 Bernd Warken <bwarken@mayn.de>
261 * src/include/color.h: Decorate with `const'.
264 * src/libs/libgroff.color.cc: Decorate with `const'.
266 (color::color): Initialize members.
267 * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
268 command according to the documentation.
270 * man/groff_out.man: Updated.
273 2002-04-11 Gaius Mulley <gaius@glam.ac.uk>
275 * src/preproc/html/pre-html.cc (write_start_image): Remove
277 * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
279 * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
280 \C'hy' caused an assertion failure.
282 * src/roff/troff/env.cc (environment::environment): Initialize
284 (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
286 2002-04-10 Werner LEMBERG <wl@gnu.org>
288 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
289 Document pvs request and .pvs register.
291 2002-04-09 Werner LEMBERG <wl@gnu.org>
293 * doc/groff.texinfo: Improve and fix documentation of diversions
296 2002-04-08 Werner LEMBERG <wl@gnu.org>
298 * doc/groff.texinfo: Fix documentation of drawing functions.
301 2002-04-07 Werner LEMBERG <wl@gnu.org>
303 * doc/groff.texinfo: Better documentation of double quotes as
307 2002-04-06 Werner LEMBERG <wl@gnu.org>
309 * man/groff_font.man: Document names of special characters better.
310 * doc/groff.texinfo: Minor improvements.
312 * tmac/lbp.tmac: Load latin1.tmac.
313 * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
315 * font/devX*/*: Regenerated (all chars > 0x80 removed).
317 2002-04-05 Werner LEMBERG <wl@gnu.org>
319 * tmac/tty.tmac: Don't use shc request.
320 * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
323 * man/groff_diff.man: Minor fixes.
325 * font/devlbp/*: Remove all `charXXX' entities.
327 * src/libs/libgroff/font.cc (font::~font): Deallocate
328 `special_device_coding'.
329 (font::load): Use `new' for allocating `special_device_coding'.
330 * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
331 Removed unused member.
333 2002-04-05 Werner LEMBERG <wl@gnu.org>
335 * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
336 (resource_manager::do_begin_binary,
337 resource_manager::do_begin_data): Use it.
339 * doc/texinfo.tex: Updated to version 4.2.
341 * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
342 (token::zero_width_break): New inline function.
343 * src/roff/troff/input.cc (token::next): Use it.
344 (token::description): Updated.
345 (encode_char): Ignore `\%', `\&', `\)', and `\:'.
346 (token::add_to_node_list, token::process): Use it.
347 * NEWS, doc/groff.texinfo: Updated.
349 * src/preproc/eqn/over.cc (over_box::output): Fix typo.
350 * tmac/tty.tmac: Add missing backslash.
352 2002-04-04 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
354 * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
355 `.ps' register instead of `.s' to handle fractional point sizes.
356 * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
357 limit_box::output): Ditto.
358 * src/preproc/eqn/other.cc (size_box::compute_metrics,
359 size_box::output): Ditto.
360 * src/preproc/eqn/over.cc (over_box::compute_metrics,
361 over_box::output): Ditto.
362 * src/preproc/eqn/script.cc (script_box::compute_metrics,
363 script_box::output): Ditto.
364 * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
365 sqrt_box::output): Ditto.
367 2002-04-03 Michael Selway <mas@ssl.co.uk>
369 * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
372 2002-04-03 Werner LEMBERG <wl@gnu.org>
374 * doc/homepage.ms: Reduce title size.
375 * doc/groff.texinfo: Fix documentation of .t register.
376 Fix handling of colon.
379 * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
380 only if page length is positive to avoid a loop.
382 * tmac/an-old.tmac (ne): Increase page length to avoid problems with
385 2002-04-02 P. Alejandro Lopez-Valencia <dradul@yahoo.com>
387 * src/include/nonposix.h, src/roff/groff/pipeline.c:
388 s/__CYGWIN32__/__CYGWIN__/.
390 2002-03-28 Gaius Mulley <gaius@glam.ac.uk>
392 * doc/gnu.xpm: New image contributed by Emily Mulley.
393 * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
394 (homepage.html): Be dependent on gnu.eps.
395 * doc/homepage.ms: Updated to new image.
397 * src/devices/grohtml/post-html.cc (html_printer): New member
399 (html_printer::flush_sbuf, html_printer::set_char): Set it.
400 (html_printer::sbuf_continuation): Use it.
402 2002-03-28 Werner LEMBERG <wl@gnu.org>
404 * src/libs/libgroff/getopt.c: Updated to latest version.
406 * tmac/README: More on hyphen.tex license.
408 2002-03-26 Larry Kollar <kollar@alltel.net>
410 * doc/groff.texinfo: Add documentation of most missing requests.
412 2002-03-25 Werner LEMBERG <wl@gnu.org>
414 Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
415 of `+-', `mu', and `di', respectively.
417 * font/devascii/R.proto, font/devutf8/R.proto,
418 font/devlatin1/R.proto, font/devhtml/R.proto,
419 font/devcp1047/R.proto, font/devlpb/*: Add them.
420 * font/devps/generate/textmap: Ditto.
421 * font/devps/*: Regenerated.
422 * font/devlj4/generate/text.map: Add them.
423 * font/devlj4/*: Regenerated.
424 * font/devdvi/generate/tc.map: Use them.
425 * font/devdvi/generate/texsy.map: Add them.
426 * font/devdvi/*: Regenerated.
427 * font/devX*/*: Regenerated.
429 * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
430 tmac/tty-char.tmac: Updated.
432 * NEWS, man/groff_char.man: Updated.
434 2002-03-24 Werner LEMBERG <wl@gnu.org>
436 * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
437 tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
438 * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
439 we use `.fchar' in dvi.tmac.
440 * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
441 * tmac/Xps.tmac: Simplify some char definitions.
442 Add definition for \[f/].
443 * man/groff_char.man: Updated for new X.tmac.
445 * tmac/README: New file.
447 2002-03-23 Phil Lobbes <phil@perkpartners.com>
449 * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
450 internal .y.o rule took precendence over the .y.cc rule, compiling
451 the yacc files with gcc instead of g++.
453 2002-03-23 Werner LEMBERG <wl@gnu.org>
455 * tmac/dvi.tmac: Add replacement font for `CB'.
457 * tmac/doc.tmac: s/request/macro/ in messages.
458 (doc-generic-macro): Improve error message.
459 * tmac/groff_mdoc.man: Minor improvements.
461 2002-03-22 Werner LEMBERG <wl@gnu.org>
463 * doc/groff.texinfo: Document possible conflict between `tr' and
466 2002-03-21 Werner LEMBERG <wl@gnu.org>
468 Improve handling of hyphenation patterns. It is now possible to
469 use most of TeX's pattern files unmodified. To make the process
470 more flexible, a new request `hpfcode' has been added which
471 provides a character code mapping for the `hpf' request. See
472 comment before hpf_getc() for more details.
474 * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
476 (read_patterns_file): Additional parameter for exception dictionary.
477 Extended to recognize \pattern, \hyphenation, and \endinput.
478 (do_hyphenation_patterns_file): Updated.
479 * src/roff/troff/env.h (hpf_code_table): New extern.
481 * src/roff/troff/input.cc (hpf_code_table): New array.
482 (init_hpf_code_table, hyphenation_patterns_file_code): New
484 (hyphenation_code): Handle translation from `trin' correctly.
485 (main, init_input_requests): Updated.
486 (charinfo::set_translation): Handle hyphenation code also.
488 * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
491 * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
492 char' is used for offsets in hyphenation exceptions.
494 * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
496 * NEWS, man/groff_diff.man, man/groff.man: Document it.
498 2002-03-20 Larry Kollar <kollar@alltel.net>
500 * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
503 2002-03-18 Werner LEMBERG <wl@gnu.org>
505 * tmac/html.tmac: Fix serious typo.
507 2002-03-17 Larry Kollar <kollar@alltel.net>
509 * doc/groff.texinfo: Add documentation for `writec' request.
511 2002-03-17 Werner LEMBERG <wl@gnu.org>
513 Added request `hpfa' to append hyphenation patterns.
515 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
517 (hyphenation_patterns_file): Renamed to...
518 (do_hyphenation_patterns_file): This.
519 (hyphenation_patterns_file, hyphenation_patterns_file_append): New
521 (init_hyphen_requests): Updated.
522 * NEWS, man/groff.man, man/groff_diff.man: Document it.
524 2002-03-16 Werner LEMBERG <wl@gnu.org>
526 Added request `writec' in analogy to `tmc'.
528 * src/roff/troff/input.cc (write_request): Renamed to...
529 (do_write_request): This.
531 (write_request, write_request_continue): New functions.
532 (init_input_requests): Updated.
533 * NEWS, man/groff.man, man/groff_diff.man: Document it.
535 * font/devdvi/DESC.in (sizes): Allow all sizes in the range
539 2002-03-15 Werner LEMBERG <wl@gnu.org>
541 * man/groff.man: Add writem request.
543 Add request `trin' (translate input) to make `.asciify' work
544 correctly. This is necessary since `charXXX' entity names are no
545 longer hardcoded in font definition files.
547 * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
548 `translate_input' members.
549 (charinfo::set_asciify_code, charinfo::get_asciify_code,
550 charinfo::set_translation_input): New methods.
551 (charinfo::set_translation): Add third argument.
552 * src/roff/troff/input.cc (charinfo:set_translation): Set
554 (do_translate): Add second argument.
555 (translate_input): New function.
556 (init_input_requests): Updated.
557 * src/roff/troff/node.cc (glyph_node::asciify,
558 composite_node::asciify): Use `get_asciify_code'.
560 * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
562 * NEWS, man/groff.man, man/groff_diff.man: Updated.
564 2002-03-14 Larry Kollar <kollar@alltel.net>
566 * doc/groff.texinfo: Improve documentation of .RS and .RE.
568 2002-03-14 Werner LEMBERG <wl@gnu.org>
570 Add a new request `sizes' similar to the `sizes' command in DESC
573 * src/roff/troff/env.cc (override_sizes): New function.
574 (init_env_requests): Use it.
575 * src/roff/troff/token.h: Export `read_string'.
576 * NEWS, man/groff_diff.man, man/groff.man: Document it.
578 2002-03-12 Werner LEMBERG <wl@gnu.org>
580 * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
582 2002-03-10 Werner LEMBERG <wl@gnu.org>
584 * tmac/pspic.tmac: Add support for -Tdvi.
585 * tmac/dvi.tmac: Include pspic.tmac.
586 * src/devices/grodvi/grodvi.man: Document it.
589 * font/devlj4/generate/Makefile: Fix URL of metric files.
591 2002-03-09 Werner LEMBERG <wl@gnu.org>
593 * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
595 2002-03-09 Larry Kollar <kollar@alltel.net>
597 * tmac/groff_ms.man: Add documentation for RS and RE macros.
599 2002-03-08 Werner LEMBERG <wl@gnu.org>
601 * doc/groff.texinfo: Fixes for texinfo 4.1.
603 2002-03-07 Werner LEMBERG <wl@gnu.org>
605 * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
607 Handle CYGWIN properly.
609 2002-03-07 Paco Andrés Verdú <pandres@dragonet.es>
611 * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
612 * tmac/lbp.tmac: Add some font translations.
614 2002-03-02 Werner LEMBERG <wl@gnu.org>
616 * font/devcp1047/R.proto, font/devlatin1/R.proto,
617 font/devhtml/R.proto: Remove `charXXX' entries.
618 * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
621 * font/devlj4/generate/text.map: Remove `charXXX' entries.
622 * font/devlj4/*: Regenerated all font definition files.
623 * tmac/lj4.tmac: Load latin1.tmac.
625 * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
626 from 2000-06-17: LJ4 metric files are *not* text files.
628 * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
629 register to test for EBCDIC.
631 2002-03-01 Werner LEMBERG <wl@gnu.org>
633 * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
634 files (as grops already does).
635 * src/utils/afmtodit/afmtodit.man: Document comment lines in map
637 * src/devices/grops/grops.man: Document comment lines in encoding
640 * tmac/cp1047.tmac: New file.
641 * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
642 * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
643 * tmac/Makefile.sub (NORMALFILES): Updated.
645 * tmac/ec.tmac: Don't load latin1.tmac again.
647 * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
648 font/devps/generate/dingbats.map,
649 font/devps/generate/dingbats.rmap, font/devps/text.enc,
650 font/devps/generate/Makefile (symbolmap): Add header comment.
651 * font/devps/generate/textmap: Ditto.
652 Remove `charXXX' entries.
653 * font/devps/symbolmap: Regenerated.
654 * font/devps/*: Regenerated all font definition files.
656 2002-02-28 Werner LEMBERG <wl@gnu.org>
658 Add color support to grodvi (for drawing colors are currently
659 translated to gray values).
661 * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
662 (dvi_printer): Add `cur_color' member.
663 (dvi_printer::set_color): New function.
664 (draw_dvi_printer): Remove `fill'.
665 (draw_dvi_printer::fill_next): Pass environment as parameter.
666 Update code for new color support translated to gray.
667 (dvi_printer::set_char): Updated.
668 (dvi_printer::begin_page, dvi_printer::end_page): Handle color
669 changes crossing the page border.
670 (dvi_printer::draw): Updated.
671 Remove cases `f' and `F'.
672 * tmac/dvi.tmac: Add color definitions.
673 * NEWS, src/devices/grodvi/grodvi.man: Updated.
675 * tmac/an-old.tmac (R): Make this a macro to emit a warning if
678 * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
679 versions of autoconf.
680 * configure: Updated.
682 * doc/homepage.ms: Use `.blm'.
683 * tmac/www.tmac (www-depth): New auxiliary variable.
684 (www-pop-level): Don't issue HTML tag.
685 (ULS, ULE, LI): Use absolute indentation.
687 * src/devices/grops/ps.cc (ps_printer::begin_page,
688 ps_printer::end_page): Switch forth and back to default color while
691 2002-02-27 Werner LEMBERG <wl@gnu.org>
693 Add EC and TC fonts to devdvi.
695 * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
696 * font/devdvi/generate/cork.map: Renamed to...
697 * font/devdvi/generate/ec.map: This.
698 Remove entry for `aq'.
699 * font/devdvi/generate/tc.map: New file.
700 * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
703 * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
704 * font/devdvi/Makefile.sub (DEVFILES): Updated.
705 * tmac/ec.tmac: New file.
706 * tmac/Makefile.sub (NORMALFILES): Updated.
707 * NEWS, src/devices/grodvi/grodvi.man: Updated.
708 * man/groff_char.man: Check `ECFONTS' register.
710 * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
712 2002-02-26 Werner LEMBERG <wl@gnu.org>
714 * font/devdvi/generate/*.map: Remove all `charXXX' entries.
715 * font/devdvi/generate/cork.map: Add 'y and 'Y.
716 * font/devdvi/*: Updated.
717 * tmac/dvi.tmac: Formatting.
719 Add font `HBI' for the dvi output.
720 Add support for font families `T' and `H'.
722 * font/devdvi/HBI: New file.
723 * font/devdvi/B: Renamed to ...
724 * font/devdvi/TB: This.
725 * font/devdvi/BI: Renamed to ...
726 * font/devdvi/TBI: This.
727 * font/devdvi/I: Renamed to ...
728 * font/devdvi/TI: This.
729 * font/devdvi/R: Renamed to ...
730 * font/devdvi/TR: This.
731 * font/devdvi/H: Renamed to ...
732 * font/devdvi/HR: This.
733 * font/devdvi/Makefile.sub (DEVFILES): Updated.
734 * font/devdvi/generate/Makefile (HBI): New rule.
736 (R, I, B, BI, H): Renamed to ...
737 (TR, TI, TB, TBI, HR): This, respectively.
739 * NEWS, src/devices/grodvi/grodvi.man: Updated.
740 * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
741 Add `styles' and `family' keywords.
742 * tmac/dvi.tmac: Alias `H' to `HR'.
743 Add some fspecial requests for italic fonts.
744 Add TR and TI as special.
745 Add support for `_' with font CWI.
747 * src/roff/troff/number.cc (parse_expr): Add missing `break' for
748 operator `:'. Until now, the expression `0:1' would return 2
751 2002-02-25 Werner LEMBERG <wl@gnu.org>
753 * man/groff_char.man: Added some missing PS glyph names (from the
755 * font/devps/generate/textmap, font/devps/symbolmap: Add
758 * doc/groff.texinfo: Minor additions and fixes.
759 * man/groff_diff.man: Remove documentation of fp request. This
760 is already covered in the original troff manual.
761 Updated to be consistent with other doc files.
764 2002-02-24 Werner LEMBERG <wl@gnu.org>
766 * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
768 Define new variable OTHERDEVDIRS (containing `font/devlj4
769 font/devlbp' if not EBCDIC).
770 * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
771 (OTHERDEVDIRS): New variable.
772 (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
773 * configure: Regenerated.
775 * NEWS, src/devices/grotty/grotty.man: Updated.
777 2002-02-23 Werner LEMBERG <wl@gnu.org>
779 * src/roff/troff/input.cc (do_overstrike, do_bracket,
780 get_line_arg): Honour input level.
782 Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
784 * font/*/*: Implement it in all font files.
785 * font/devps/generate/textmap, font/devps/generate/symbolchars,
786 * font/devps/symbolmap: Updated.
787 * font/devlj4/generate/text.map: Updated.
788 * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
789 * font/devdvi/generate/texmi.map: Updated.
791 * font/devutf8/R.proto: Remove all `charXXX' entries.
792 * font/devutf8/NOTES: Updated.
794 * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
797 * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
799 * NEWS, man/groff_char.man: Updated.
801 2002-02-21 Phil Lobbes <phil@perkpartners.com>
803 * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
805 2002-02-20 Ralph Corderoy <ralph@inputplus.demon.co.uk>
807 * src/roff/grog/grog.pl: Fix computation of $refer.
809 2002-02-19 Werner LEMBERG <wl@gnu.org>
811 * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
812 `snprintf' and `vsnprintf'.
814 * src/include/htmlindicate.h: Renamed to...
815 * src/include/htmlhint.h: This.
816 * src/include/Makefile.sub: Updated.
817 * src/preproc/eqn/main.cc: Updated.
819 2002-02-18 Werner LEMBERG <wl@gnu.org>
821 * man/roff.man, man/groff_out.man, man/groff.man,
822 man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
823 src/roff/troff/troff.man: Updated to latest changes in www.tmac.
825 * win32-diffs: Updated.
827 2002-02-17 Werner LEMBERG <wl@gnu.org>
829 * doc/Makefile (clean): Add *.eps.
831 (TFLAG): New variable.
834 (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
836 (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
838 * tmac/www.tmac: Use dummy diversion while resetting and disabling
840 * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
842 * src/roff/troff/troff.man: Fix order of parameter description.
846 2002-02-16 Gaius Mulley <gaius@glam.ac.uk>
848 Simplify image handling for grohtml.
851 * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
853 (html_text::dump_stack): Don't emit newline while debugging.
854 (html_text::do_push) [DEBUGGING]: Print more info.
855 (html_text::check_emit_text): Fix handling of <p>.
856 * src/devices/grohtml/html.h: Updated.
857 * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
858 replacing `fputc', `fputs', `putc'. If DEBUGGING is defined, they
859 send its data to stderr also.
861 (simple_output::space_or_newline) [DEBUGGING]: Removed.
862 * src/devices/grohtml/post-html.cc (html_printer::do_links,
863 html_printer::html_printer): Remove `DEBUGGING' conditionals.
865 * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
867 * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
868 is_inline_image): Removed.
869 (html_begin_suppress, html_end_suppress): Don't take a parameter.
870 (graphic_start, graphic_end): Removed.
871 * src/include/htmlindicate.h: Updated.
872 * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
873 (macroset_template): New global variable.
874 (makeFileName): Use `macroset_template'.
875 (write_end_image): Don't take a parameter.
877 (write_start_image: Don't emit newline.
878 (char_buffer::write_upto_newline): Updated.
879 (char_buffer::skip_to_newline): Renamed to ...
880 (char_buffer::skip_until_newline): This.
882 (char_buffer::write_file_troff, char_buffer::write_file_html):
884 (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
885 (removeAllPages): Remove `DEBUGGING' conditionals.
886 (addRegDef, dump_args): New functions.
887 (char_buffer::do_html, char_buffer::do_image): Handle
888 `www-image-template' command line variable.
889 Add more debugging code.
890 (addps4html): Removed.
891 (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
893 * src/preproc/eqn/main.cc: Include `ctype.h'.
894 (suppress_html): Removed.
896 (inline_equation): Use `html_begin_suppress' and
898 * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
899 (troff_output::start_picture, troff_output::finish_picture):
901 * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
902 (process_input_file): Updated.
904 * src/roff/troff/div.cc (page_number): Set page number only if the
905 `ps4html' register isn't defined.
906 * src/roff/troff/input.cc (image_no): New external variable.
907 (do_suppress): Use it.
908 * src/roff/troff/node.h (suppress_node::image_id): New member.
909 * src/roff/troff/node.cc (image_no): Remove `static' keyword.
910 (suppress_node::suppress_node): Initialize `image_id' member.
911 (suppress_node::same): Handle `image_id' also.
912 (suppress_node::copy): Updated.
913 (last_image_id): New global variable.
914 (suppress_node::tprint): Use it.
916 * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
918 * tmac/pspic.mac (PSPIC): Fix html support.
919 * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
920 * tmac/www.tmac (www-image-template): Set up.
921 (HTMLINDEX): Renamed to...
923 (BODYCOLOR): Renamed to...
925 (BACKGROUND): Renamed to...
927 (URL): Change order of parameters for consistency.
928 (MAILTO): Renamed to...
930 (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
931 (IMG, PIMG, MPIMG): This.
932 (HTML-H-BEGIN, HTML-H-END): Renamed to...
934 (LINKS): Renamed to...
936 (LINE): Renamed to...
938 (NO-AUTO-RULE): Renamed to...
940 (HTML-TL): Renamed to...
942 (UL-BEGIN, UL-END): Renamed to...
944 (DROPCAP): Renamed to...
946 (TS, TE, EQ, EN): Provide default definitions.
947 (www-make-unique-name): Updated.
948 (HTML-IMAGE-INLINE): Fix typo.
949 * tmac/groff_www.man: Updated.
951 * doc/Makefile (homepage.html): Add option -r to grohtml.
952 Use shortened image name.
953 * doc/groff.texinfo: Updated info on grohtml strings and macros.
954 * doc/homepage.ms: Updated and extended.
956 2002-02-14 Werner LEMBERG <wl@gnu.org>
958 Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
960 * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
961 SGR_BACK_DEFAULT_COLOR): Replaced with ...
962 (tty_printer::put_color): Use it.
963 (ttr_printer::end_page): Simplify.
965 2002-02-13 Werner LEMBERG <wl@gnu.org>
967 * tmac/groff_tmac.man: Moved to...
968 * man/groff_tmac.man: This place.
969 * tmac/Makefile.sub, man/Makefile.sub: Updated.
971 2002-02-12 Werner LEMBERG <wl@gnu.org>
973 * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
974 $(COMPILE.c) to not include groff's assert.h.
976 * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
978 * NEWS, src/drivers/grotty/grotty.man: Document it.
980 2002-02-11 Werner LEMBERG <wl@gnu.org>
982 * src/libs/snprintf/snprintf.c: Updated to latest version
985 * src/roff/grog/grog.pl (process): Fix handling of `.['. We now
986 test whether there is `.]' also.
987 Don't check for spaces after `.['.
988 * src/roff/grog/grog.sh: Do the same.
990 2002-02-10 Werner LEMBERG <wl@gnu.org>
994 * src/libs/libgroff/illegal.cc: Renamed to ...
995 * src/libs/libgroff/invalid.cc: This.
996 (illegal_char_table): Renamed to ...
997 (invalid_char_table): This.
998 * src/libs/libgroff/Makefile.sub: Updated.
999 * win32-diffs: Updated.
1001 * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
1002 src/libs/libdriver/input.cc (fatal_command, parse_color_command,
1003 parse_x_command), src/libs/libgroff/font.cc (text_file::next,
1004 font::load), src/preproc/eqn/main.cc (read_line, main),
1005 src/preproc/eqn/lex.cc (file_input::read_line),
1006 src/preproc/pic/lex.cc (file_input::read_line,
1007 simple_file_input::get, simple_file_input::peek),
1008 src/preproc/pic/main.cc (top_input::get, top_input::peek),
1009 src/preproc/pic/pic.man, src/preproc/refer/main.cc
1010 (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
1011 do_bib), src/preproc/tbl/main.cc (table_input::get),
1012 src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
1013 src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
1014 do_zero_width, read_request, encode_char, ps_get_line,
1015 transparent_file, get_char_for_escape_name, transparent_translate,
1016 asciify, input_char_description, read_string, set_string),
1017 src/roff/troff/env.cc (environment::add_html_tag),
1018 src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
1020 * src/include/lib.h: Updated.
1022 * src/preproc/eqn/eqn.cc: Removed.
1026 * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
1028 2002-02-09 Werner LEMBERG <wl@gnu.org>
1030 * doc/gnu.xpm: New image.
1031 * doc/Makefile (DOCS): Add homepage.ps.
1032 Add rules for converting xpm->png and xpm->eps.
1033 Use `gnu.{xpm,eps}' as image names.
1034 * doc/homepage.ms: Updated.
1036 2002-02-09 Gaius Mulley <gaius@glam.ac.uk>
1038 * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
1039 (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
1040 Remove calls to `B1' and `B2'
1041 (PNG-IMAGE): New macro for inclusion of images in PNG format.
1042 (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
1043 auxiliary variables for MARGIN-PNG-IMAGE.
1044 (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
1045 auxiliary macros for MARGIN-PNG-IMAGE.
1046 (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
1048 (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
1049 (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
1050 (DROPCAP): New macro to produce dropcap characters.
1051 (www-do-image): Renamed back to...
1052 (HTML-DO-IMAGE): This.
1053 Updated all callers.
1055 * doc/Makefile (gnubw.eps): Updated.
1056 * doc/homepage.ms: Updated.
1058 2002-02-08 Werner LEMBERG <wl@gnu.org>
1060 * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
1061 Added `linethick' to table in section `Style Variables'.
1063 2002-02-08 Gaius Mulley <gaius@glam.ac.uk>
1065 * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
1067 2002-02-07 Werner LEMBERG <wl@gnu.org>
1069 Adding options -C (compatibility mode) and -c (grotty's old output
1072 * src/roff/nroff/nroff.sh: Implement it.
1074 * NEWS, src/roff/nroff/nroff.man: Updated.
1076 * PROBLEMS: Document bison 1.32 bug.
1078 Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
1080 * src/roff/troff/node.cc (make_tfont): Define it earlier.
1081 * src/roff/troff/div.h: Add prototype for `end_diversions'.
1082 * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
1083 * src/roff/troff/env.h: Add prototype for `title'.
1085 Adding EBCDIC support to grotty.
1087 * src/devices/grotty/tty.cc (CSI): New macro.
1088 (SGR_*, tty_printer::put_color): Use it.
1090 2002-02-06 Werner LEMBERG <wl@gnu.org>
1092 Implementing color support in grotty. The new switch -c activates
1093 the old drawing scheme, disabling color at the same time. The new
1094 switch `-i' selects italic instead of underlining (SGR only).
1096 * src/devices/grotty/tty.cc (putstring): New define instead of
1097 `fputs'. Updated all callers.
1098 (old_drawing_scheme): New global variable.
1099 (COLOR_CHANGE): New enum value.
1100 (SGR_*): New defines containing color handling escape sequences.
1101 (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
1102 (glyph): New members `back_color_idx' and `fore_color_idx'.
1103 (glyph::order): Add COLOR_CHANGE.
1104 (tty_printer): New members `cur_fore_idx', `curr_back_idx',
1105 `is_underline', `is_bold', `cu_flag', `tty_colors'.
1106 New methods `make_underline', `make_bold', `color_to_idx',
1107 `change_color', `put_color'.
1108 (cu_flag): Moved into `tty_printer' class.
1109 (tty_printer::tty_printer): Initialize colors.
1110 (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
1111 tty_printer::draw, tty_printer::end_page): Handle colors also.
1112 (main): Add options `-c' and `-i'.
1114 * NEWS, src/devices/grotty/grotty.man: Updated.
1116 * src/include/errarg.h (errarg): Add support for `unsigned int'.
1117 * src/libs/libgroff/errarg.c: Implement it.
1119 * src/include/printer.h (printer): Add `change_color' method
1120 (currently used by grotty only).
1121 * src/libs/libdriver/printer.cc: Implement it.
1122 * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
1123 call to `pr->change_color'.
1125 * src/roff/troff/node.cc (troff_output_file::fill_color,
1126 troff_output_file::glyph_color): Call `do_motion'.
1128 * tmac/tty.tmac: Add color definitions.
1130 * src/roff/groff/groff.man: Minor fixes.
1132 2002-02-05 Bernd Warken <bwarken@mayn.de>
1134 * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
1135 it. This is a preparation for future changes.
1137 2002-02-05 Werner LEMBERG <wl@gnu.org>
1139 * src/roff/troff/input.cc (process_input_stack): Fix the case
1140 where leading spaces are followed by \f or \s; previously, an
1141 incorrect space width has been used.
1143 * doc/roff.man (quoted_char): Fix argument.
1144 (comment): Define string.
1146 2002-02-04 Larry Kollar <kollar@alltel.net>
1148 * doc/groff.texinfo: More fixes.
1150 2002-02-04 Werner LEMBERG <wl@gnu.org>
1152 * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
1153 * src/preproc/eqn/main.cc (do_file, inline_equation): Call
1154 `restore_compatibility' before `output_string' -- the LINE_STRING
1155 register now already contains proper switches from and to
1158 * man/groff_char.man: Add Euro symbol.
1159 * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
1160 * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
1161 * doc/groff.texinfo (Defstr*): Print strings with full syntax.
1164 * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
1166 (.texinfo.html): Add support for texinfo->html.
1168 2002-02-03 Werner LEMBERG <wl@gnu.org>
1170 Added three new requests `ds1', `as1', and `ami'. The former two
1171 are equivalent to `ds' and `as' with the difference that
1172 compatibility mode is saved on entry, switched off during string
1173 expansion, and restored on exit. The latter is the pendant to `dei'
1176 (do_define_string): Use `define_mode' and `calling mode'.
1177 Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
1178 end of string, respectively.
1179 (define_string, append_string): Use `calling_mode'.
1180 (define_nocomp_string, append_nocomp_string,
1181 define_string_indirect): New functions.
1182 (init_input_requests): Updated.
1183 * NEWS, man/groff_diff.man, man/groff.man: Document it.
1185 * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
1186 `as1' for assigning LINE_STRING (this is `10' usually). Sun's
1187 mm macro package accesses this string register directly.
1188 * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
1190 * tmac/trace.tmac: Trace calls to `am' also. Make it work in
1193 2002-02-02 Larry Kollar <kollar@alltel.net>
1195 * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
1197 2002-01-31 Werner LEMBERG <wl@gnu.org>
1199 * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
1201 2002-01-31 Bernd Warken <bwarken@mayn.de>
1203 * src/devices/grolbp/lbp.cc (main): Delete `pr'.
1204 * man/groff_out.man: Revised and updated.
1206 2002-01-30 Bernd Warken <bwarken@mayn.de>
1208 * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
1209 out the unused `{' and `}' commands. Undefined by default.
1210 (IntArray): Make `data' private.
1211 (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
1212 new methods instead.
1213 (skip_line_D, skip_to_end_of_line): New functions.
1214 (get_D_fixed_args): Use `skip_line_D'.
1215 Changed to handle dummy odd arguments by ...
1216 (get_D_fixed_args_odd_dummy): This new function.
1217 (get_D_variable_args): Split some code into ...
1218 (get_possibly_integer_args): This new function.
1219 (send_draw): Use more `const'.
1220 (delete_current_env): New function.
1221 (position_to_end_of_args): Use `size_t'.
1223 (send_draw): Updated.
1224 (parse_D_command): Handle `c', `C', and `t' better.
1228 2002-01-29 Werner LEMBERG <wl@gnu.org>
1231 * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
1232 @Def...ListEnd which replaces @Def...x. This is necessary to get
1233 proper HTML output -- see the comment in the file for more
1237 2002-01-29 Gaius Mulley <gaius@glam.ac.uk>
1239 Fixes to make color changes of 2002-01-21 work with grohtml.
1241 * src/devices/grohtml/post-html.cc (style): Updated.
1242 (html_printer): Remove unused methods.
1243 (html_printer::do_font, html_printer::draw, html_printer::set_char,
1244 html_printer::special): Updated.
1245 * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
1246 html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
1247 Added some debugging code.
1248 (html_text::start_tag): Updated.
1249 (html_text::do_push): New method.
1250 (html_text::push_para): Call it.
1251 Add method for handling color.
1252 (html_text::do_color): Updated.
1253 (html_text::shutdown): Handle color.
1254 * src/devices/grohtml/html-text.h (tag_definition): New member
1258 2002-01-28 Werner LEMBERG <wl@gnu.org>
1260 * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
1262 2002-01-27 Gaius Mulley <gaius@glam.ac.uk>
1264 Add two switches -a and -g to control the antialiasing bits for
1265 text and graphics, respectively.
1267 * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
1269 * src/devices/grohtml/grohtml.man: Document them.
1270 * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
1272 (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
1273 (setupAntiAlias): New function.
1274 (createAllPages): Updated.
1275 (scanArguments): Handle `-a' and `-g'.
1276 (main): Call `setupAntiAlias'.
1279 2002-01-27 Werner LEMBERG <wl@gnu.org>
1281 * doc/groff.texinfo (Def*): Call index function after deffn.
1283 * tmac/html.tmac: Call `nroff' request.
1285 2002-01-26 Larry Kollar <kollar@alltel.net>
1287 * tmac/groff_ms.man: Add some omissions.
1289 2002-01-25 Larry Kollar <kollar@alltel.net>
1291 * tmac/groff_ms.man: Typographical improvements.
1293 2002-01-25 Werner LEMBERG <wl@gnu.org>
1295 * doc/groff.texinfo: Updated version and copyright.
1296 * src/devices/grops/grops.man: Updated.
1298 * tmac/groff_tmac.man: Fix `ig' macro.
1300 * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
1302 Use `.ne' unconditionally everywhere.
1303 (TS): Only insert some vertical space. Doing a page break is no
1304 longer necessary due to the redefinition of the `ne' request.
1306 * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
1307 warning for unknown subcommands but parse and pass them to the
1310 2002-01-24 Werner LEMBERG <wl@gnu.org>
1312 * tmac/groff_www.man, NEWS: Fix typos.
1314 2002-01-21 Werner LEMBERG <wl@gnu.org>
1316 Complete revision of color support:
1318 Adapt programs to the new libdriver/input.cc.
1320 Color spaces are no longer converted to RGB but transferred as-is
1321 in the troff intermediate output format.
1323 Handle default color gracefully. troff now supports a `default'
1324 color (which can't be changed).
1326 grops will now use the proper color space functions if available.
1330 Note that currently grohtml doesn't handle colors properly. This
1333 * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
1334 (ui_to_a): New function.
1335 * src/include/lib.h: Updated.
1337 * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
1338 (color): Simplified; removed all `double' members and methods.
1339 A new array `components' now holds the color parameters.
1340 (color::is_default, color::get_components): New methods.
1341 (color::operator==, color:operator!=): New.
1342 (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
1343 to make access to the `components' array more comprehensible.
1344 * src/libs/libgroff/color.cc: Implement new color support.
1345 (atoh): Small fixes.
1346 (color::read_encoding): Simplified for new troff intermediate color
1348 (default_color): New global variable.
1350 * src/roff/troff/input.cc (default_symbol): New global variable.
1351 (lookup_color): Use it.
1352 (default_black): Removed.
1353 (do_glyph_color, do_fill_color): Simplified.
1354 (define_color): Handle default color.
1356 (do_if_request): Handle default color.
1357 * src/roff/troff/env.cc (environment::environment): Initialize
1358 colors with `default_color'.
1359 * src/roff/troff/node.cc (troff_output_file::put): Add method
1361 (troff_output_file::hex): Removed.
1362 (troff_output_file::fill_color, troff_output_file::glyph_color):
1363 Updated to include/color.h and libdriver/input.cc.
1365 * src/preproc/pic/object.cc (draw_arrow): New parameter to set
1366 fill color properly (identically to the outline color). \D'f...'
1367 doesn't work any more.
1368 All function calls to it updated.
1370 * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
1372 * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
1375 * src/devices/grops/ps.cc (ps_output::put_color): New method.
1376 (ps_printer::sbuf_color): Make a real member instead of pointer.
1377 (ps_printer::fill_color, ps_printer::output_color): Removed.
1378 (ps_printer::ps_printer): Updated.
1379 (ps_printer::set_char): Ditto.
1380 (ps_printer::set_color): Use various color schemes.
1381 Use `put_color' method.
1382 (ps_printer::flush_sbuf): Don't set color.
1383 (ps_printer::fill_path): Take `environment' as parameter.
1384 Simplify color handling.
1385 (ps_printer::set_line_thickness): Renamed to ...
1386 (ps_printer::set_line_thickness_and_color): This (and updated).
1387 (ps_printer::set_color): Change second parameter from `complete'
1388 to `fill' which better describes what it does.
1389 (ps_printer::draw): Call `flush_sbuf' to output graphic commands
1390 and text in the right order.
1392 Remove branches for `f' and `F'; this is handled by
1394 * src/devices/grops/ps.h: Updated.
1395 * font/devps/prologue (FL): Redefined.
1396 ({F,C}r,k,g: New color functions (with and without filling).
1398 * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
1399 * man/groff_diff.man, man/groff.man, man/groff_out.man,
1400 doc/groff.texinfo, NEWS: Updated.
1402 2002-01-20 Bernd Warken <bwarken@mayn.de>
1404 * src/libs/libdriver/input.cc: Completely rewritten. See comments
1405 in this file for what has been changed.
1407 2002-01-19 Werner LEMBERG <wl@gnu.org>
1409 * test-groff: Fix GROFF_FONT_PATH.
1410 * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
1411 is read before .TH or .Dd is parsed.
1413 2002-01-18 Gaius Mulley <gaius@glam.ac.uk>
1415 * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
1416 quadrant boundaries.
1418 2002-01-18 Werner LEMBERG <wl@gnu.org>
1420 * devices/grops/ps.cc: Aargh! Fix the fix of the incorrectly
1423 2002-01-17 Ruslan Ermilov <ru@FreeBSD.org>
1425 * tmac/doc.common: Initialize %I register for the %I macro to
1426 avoid (harmless) warning.
1427 * tmac/doc.tmac (Bd): There is no reason to enforce -compact
1428 when in the SYNOPSIS section.
1430 2002-01-17 Bruno Haible <haible@clisp.cons.org>
1432 * src/preproc/pic/lex.cc (get_token): Fix typo.
1434 2002-01-17 Werner LEMBERG <wl@gnu.org>
1436 * devices/grops/ps.cc: Fix incorrectly applied last patch.
1438 2002-01-17 Larry Kollar <kollar@alltel.net>
1440 * tmac/groff_ms.man: Completely rewritten.
1442 2002-01-16 Werner LEMBERG <wl@gnu.org>
1444 * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
1446 2002-01-15 Gaius Mulley <gaius@glam.ac.uk>
1448 * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
1450 (ps_printer::draw): Ditto.
1452 2002-01-14 Ruslan Ermilov <ru@FreeBSD.org>
1454 * tmac/groff_mdoc.man: Minor fixes.
1456 2002-01-13 Werner LEMBERG <wl@gnu.org>
1458 * man/groff_out.man: Some fixes.
1460 2002-01-13 Gaius Mulley <gaius@glam.ac.uk>
1462 * doc/pic.ms: Fix typos.
1464 2002-01-12 Werner LEMBERG <wl@gnu.org>
1466 * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
1468 2002-01-10 Werner LEMBERG <wl@gnu.org>
1470 * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
1474 2002-01-09 Bernd Warken <bwarken@mayn.de>
1476 * man/groff_out.man: Revised.
1477 * man/roff.man: Minor fixes.
1478 * src/roff/troff/troff.man: Some reordering.
1480 2002-01-09 Werner LEMBERG <wl@gnu.org>
1482 * tmac/an-old.tmac: Add dummy macros for equation support.
1484 2002-01-07 Werner LEMBERG <wl@gnu.org>
1486 doc/groff.texinfo: Fix documentation of glyph searching algorithm.
1488 * tmac/an-old.tmac: Revert change 2001-12-23. This breaks too many
1490 * tmac/groff_man.man: Small improvements.
1492 2002-01-07 Bernd Warken <bwarken@mayn.de>
1494 * man/groff_diff.man: Revised.
1496 2002-01-06 Werner LEMBERG <wl@gnu.org>
1498 * tmac/www.tmac: Remove extraneous backslash.
1500 2002-01-06 Bernd Warken <bwarken@mayn.de>
1502 * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
1504 2002-01-05 Werner LEMBERG <wl@gnu.org>
1506 Integrated groffer, contributed by Bernd Warken.
1508 * contrib/groffer/*: New.
1509 * Makefile.in, NEWS: Updated.
1511 2002-01-04 Werner LEMBERG <wl@gnu.org>
1513 * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
1514 registers defined in macro packages.
1515 Revising the ms part.
1517 2002-01-04 Larry Kollar <kollar@alltel.net>
1519 * doc/groff.texinfo: Add documentation for ms macros.
1521 2002-01-02 Werner LEMBERG <wl@gnu.org>
1523 First step in adding PS support for the Euro symbol. `eu' is the
1524 official Euro logo, `Eu' is a font-specific glyph variant.
1526 * font/devps/text.enc: Add `Euro' at position 9.
1527 * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
1528 * font/devps/symbolmap: Regenerated.
1532 2002-01-02 Bernd Warken <bwarken@mayn.de>
1534 * man/roff.man: Revised.
1536 2002-01-01 Bernd Warken <bwarken@mayn.de>
1538 * src/roff/groff/groff.man: Completely rewritten.
1540 2001-12-31 Werner LEMBERG <wl@gnu.org>
1542 * doc/Makefile: Updated.
1544 2001-12-30 Werner LEMBERG <wl@gnu.org>
1546 * tmac/www.tmac: Make all names of internal macros/registers/strings
1547 lowercase, and prepend `www-'.
1548 Other minor changes.
1549 * src/roff/troff/troff.man: Add preprocessor string at BOF.
1551 2001-12-30 Gaius Mulley <gaius@glam.ac.uk>
1553 Implement option `-b' in grohtml to set the HTML background colour.
1555 * src/devices/grohtml/post-html.cc (default_background): New global
1557 (html_printer::html_printer): Initialize `background' to
1558 `default_background'.
1559 (main): Implement option `-b'.
1561 * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
1563 * src/devices/grohtml/grohtml.man: Updated.
1564 * doc/Makefile (.ms.html): Use `-b'.
1565 * tmac/html.tmac: Don't set background color.
1567 Add new grohtml tag `.html-tl'.
1569 * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
1571 (title_desc::title_desc): Updated.
1572 (html_printer::troff_tag): Handle `.html-tl'.
1573 (html_printer::write_title): Use `with_h1'.
1574 * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
1575 (HTML-TL): New macro.
1577 Add support for unordered lists in HTML.
1579 * tmac/www.tmac (www-level): New auxiliary register.
1580 (www-level1, www-level2, www-level3): New auxiliary strings.
1581 (www-push-level, www-pop-level): New auxiliary macros
1582 (UL-BEGIN, UL-END, LI): User macros for unordered lists.
1586 * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
1587 (DEFAULT_VERTICAL_OFFSET): Removed.
1588 (IMAGE_BOARDER_PIXELS): Set to 0.
1589 (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
1590 (vertical_offset): Initialize with 0.
1591 (gsPaper): New global variable.
1592 (get_resolution): Scan for and return unsigned int.
1593 (get_papersize): New function to get paper length from devps/DESC.
1594 (determine_vertical_offset): New function.
1595 (createAllPages): Produce gray-level images and use proper page
1597 (createImage): Use `-quiet' option of pnmcrop.
1598 (addZ): Fix passing of `-Z'.
1599 (scanArguments): Fix handling of `-o'.
1600 (main): Call `determine_vertical_offset'.
1601 * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
1604 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
1605 * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
1606 glyph descenders properly.
1608 * doc/homepage.ms: Include `gnubw.eps'.
1609 * doc/Makefile (gnubw.eps): New rule.
1610 (homepage.html): Depend on `gnubw.eps'.
1612 2001-12-25 Werner LEMBERG <wl@gnu.org>
1614 * src/roff/troff/input.cc (default_black): Fix return value.
1616 2001-12-24 Ruslan Ermilov <ru@FreeBSD.org>
1618 * tmac/doc-common (Dt): Change output of architecture strings.
1619 Do some syntax cleanup.
1620 * tmac/groff_mdoc.man: Updated.
1622 2001-12-23 Werner LEMBERG <wl@gnu.org>
1624 Adding an `itc' request (input line trap accepting \c).
1626 * src/roff/troff/env.h (environment): New member
1627 `continued_input_trap'.
1628 Make `do_input_trap' a friend function instead of `input_trap'.
1629 * src/roff/troff/env.cc (environment::environment,
1630 environment::copy): Updated.
1631 (environment::newline): Implement it.
1632 (do_input_trap): New function.
1633 (input_trap): Call `do_input_trap'.
1634 (input_trap_continued): New function.
1635 (init_env_requests): Updated.
1636 * src/roff/troff/TODO: Updated.
1638 * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
1641 * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
1643 2001-12-22 Ruslan Ermilov <ru@FreeBSD.org>
1645 * tmac/doc-common, tmac/doc-syms: Small updates.
1647 2001-12-22 Colin Watson <cjwatson@debian.org>
1649 * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
1651 2001-12-22 Bernd Warken <bwarken@mayn.de>
1653 * MANIFEST: New file.
1655 2001-12-22 Werner LEMBERG <wl@gnu.org>
1657 * src/preproc/grn/grn.man: Updated.
1659 2001-12-22 Solar Designer <solar@openwall.com>
1661 * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
1664 2001-12-19 Werner LEMBERG <wl@gnu.org>
1666 Implement a fallback character request `.fchar'.
1668 * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
1669 (is_fallback): New inline function.
1670 * src/roff/troff/input.cc (do_define_character): New function.
1671 (define_character): Call `do_define_character'.
1672 (define_fallback_character): New function.
1673 (init_input_requests): Add `fchar'.
1674 (charinfo::charinfo): Updated.
1675 (charinfo::set_macro): New argument to set `fallback' flag.
1676 * src/roff/troff/node.cc (make_glyph_node, make_node,
1677 node::add_char): Check `fallback' flag.
1678 * NEWS, man/groff_diff.man, man/groff_man: Updated.
1680 2001-12-16 Werner LEMBERG <wl@gnu.org>
1682 * groff.texinfo: Document exact search algorithm for glyphs.
1684 2001-12-15 Werner LEMBERG <wl@gnu.org>
1686 * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
1687 the left side of $(MANPAGES) rule to make it always non-empty.
1689 2001-12-14 Werner LEMBERG <wl@gnu.org>
1691 * src/roff/troff/input.cc (default_black): Define default color
1692 `black' if not yet defined.
1694 2001-12-13 Werner LEMBERG <wl@gnu.org>
1696 Implement new string-valued register `.fn' to return the current
1697 real (internal) font name.
1699 * env.cc (environment::get_font_name_string): New function.
1700 (init_env_requests): Add `.fn' register.
1701 * env.h (environment): Updated.
1702 * node.cc (font_info): Make `get_font_name' a friend.
1703 (get_font_name): New function.
1706 * man/groff_diff.man, man/groff.man, NEWS: Updated.
1708 2001-12-12 Ralph Corderoy <ralph@inputplus.demon.co.uk>
1710 * src/preproc/eqn/main.cc (inline_equation): Fix typos.
1712 2001-12-12 Werner LEMBERG <wl@gnu.org>
1714 * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
1716 2001-12-10 Gaius Mulley <gaius@glam.ac.uk>
1718 * man/groff_diff.man: Adding documentation for \O.
1720 2001-12-10 Werner LEMBERG <wl@gnu.org>
1722 * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
1723 (scanArguments): Use PROG_PREFIX for the name of the troff binary.
1725 2001-12-09 Werner LEMBERG <wl@gnu.org>
1727 * man/roff.man: Revised.
1728 * src/roff/groff/groff.man: Replace man page references with a
1729 pointer to roff.man.
1731 2001-12-09 Bernd Warken <bwarken@mayn.de>
1733 * man/roff.man: Completely rewritten.
1735 2001-12-06 Ralph Corderoy <ralph@inputplus.demon.co.uk>
1737 * src/preproc/eqn/main.cc (inline_equation): Improve error message.
1739 2001-12-05 Werner LEMBERG <wl@gnu.org>
1741 * src/roff/troff/input.cc (get_delim_file_name): Removed since no
1743 * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
1744 order of initializers.
1747 2001-12-05 Gaius Mulley <gaius@glam.ac.uk>
1749 * doc/groff.texinfo: Fix documentation of \O.
1751 * src/devices/grohtml/html-text.cc (html_text::do_indent,
1752 html_text::do_table, html_text::do_emittext, html_text::do_para):
1753 Use `const' for first argument.
1754 (html_text::do_table): Use cast.
1755 * src/devices/grohtml/html-text.h: Updated.
1756 * src/devices/grohtml/output.cc (simple_output::put_string): Add
1757 method for `const string &s'.
1758 * src/devices/grohtml/html.h: Updated.
1759 * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
1760 (ANCHOR_TEMPLATE): Modified.
1761 (manufacture_headings): New global variable to handle `-h' option.
1762 (is_subsection): Removed.
1763 (char_buffer::add_string): Add `const' to first argument.
1764 Protect against invalid string argument.
1765 Add method for `const string &s'.
1766 (text_glob): Completely redesigned.
1767 (page): Use `const' for strings and remove string length variable.
1768 (page::add_html): Removed.
1769 (page::add_end_encode): New member function.
1770 (to_unicode): Moved upwards.
1771 (title_desc, header_desc): Updated.
1772 (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
1774 (html_printer::is_bold, html_printer::make_bold): New member
1776 (html_printer::end_of_line): Updated.
1777 (generate_img_src, html_printer::do_auto_image,
1778 html_printer::do_title, html_printer::write_header,
1779 html_printer::determine_header_level, html_printer::do_heading,
1780 html_printer::do_linelength, html_printer::do_pageoffset,
1781 html_printer::do_indentation, html_printer::do_tempindent,
1782 html_printer::do_indentedparagraph, html_printer::do_break,
1783 html_printer::flush_sbuf, get_html_translation,
1784 html_printer::begin_page, html_printer::special): Rewritten to get
1785 rid of static string length limit.
1786 (html_printer::troff_tag): Added `.no-auto-rule'.
1787 (html_printer::flush_globs): Small fix.
1788 (html_printer::determine_space): Don't compute `space_width'.
1789 (html_printer::translate_to_html): Renamed to ...
1790 (html_printer::emit_html): This (with updates).
1791 (html_printer::write_header): Implement `-h' option.
1792 (html_printer::draw): Remove commented-out code. Handle `F'
1794 (html_printer::add_char_to_sbuf): Removed.
1795 (html_printer::add_to_sbuf): Rewritten.
1796 (html_printer::sbuf_continuation): Fixed.
1797 (html_printer::seen_backwards_escape, reverse,
1798 html_printer::remove_last_char_from_sbuf): Removed.
1799 (char_translate_to_html, str_translate_to_html): Removed.
1800 (html_printer::overstrike): New function member.
1801 (html_printer::set_char): Use it.
1802 (html_printer::do_body): New function member.
1803 (html_printer::~html_printer): Use it.
1804 (main): Handle `-h' option.
1806 * src/devices/grohtml/grohtml.man: Document -h switch.
1808 * src/preproc/html/pre-html.cc: Include searchpath.h
1809 Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
1810 (get_resolution): New function.
1811 (checkImageDir): Use `0777' permissions in mkdir()
1812 (write_start_image): Rewritten to use `\O[5...]'.
1813 (createImage, generateImages): Updated.
1814 (main): Handle `F' and `h' options.
1815 Use `get_resolution'.
1817 * src/roff/troff/input.cc (begin, end, image): Removed.
1818 (do_suppress): Take parameter.
1819 Handle modified syntax of `\O'.
1820 (token::next): Updated.
1821 (init_markup_requests): Removed.
1824 * src/roff/troff/div.h: Add declaration for begin_page().
1826 * tmac/color-html.tmac: Removed. Contents moved to...
1827 * tmac/html.tmac: Here. Set background color.
1828 * tmac/color.tmac: Removed. Contents moved to...
1829 * tmac/ps.tmac: Here.
1830 * tmac/www.tmac: Remove the title command when generating images
1832 (NO_AUTO_RULE): New macro.
1833 (HTML_DO_IMAGE): Use revised `\O' escapes.
1834 * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
1836 2001-12-02 Werner LEMBERG <wl@gnu.org>
1838 * tmac/groff_mdoc.man: Fix typo.
1840 2001-12-01 Colin Watson <cjwatson@debian.org>
1842 * man/roff.man: Fix typo.
1844 2001-11-29 Werner LEMBERG <wl@gnu.org>
1846 * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
1849 * src/roff/troff/input.cc (read_draw_node): Emit error message if
1850 more than one argument to \D'f ...'.
1852 * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
1854 2001-11-28 Werner LEMBERG <wl@gnu.org>
1856 * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
1859 * tmac/groff_man.man: Minor cosmetic fix.
1861 2001-11-27 Werner LEMBERG <wl@gnu.org>
1863 * src/roff/groff/groff.man, tmac/groff_tmac.man,
1864 tmac/groff_www.man: s/mwww/www/.
1866 2001-11-26 Werner LEMBERG <wl@gnu.org>
1868 * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
1869 * configure: Regenerated.
1870 * win32-diffs: Updated.
1872 * tmac/groff_mwww.tmac: Renamed to ...
1873 * tmac/groff_www.tmac: This.
1874 * tmac/mwww.tmac: Removed.
1875 * NEWS, tmac/Makefile.sub: Updated.
1877 2001-11-21 Werner LEMBERG <wl@gnu.org>
1879 * doc/groff.texinfo: Improve documentation of the `\v' escape.
1880 Fix explanation of `\D' and `rt'.
1882 2001-11-20 Werner LEMBERG <wl@gnu.org>
1884 * tmac/an-old.tmac (an-header): Set header length equal to page
1886 * doc/groff.texinfo: Improve documentation of `ne' request. Other
1890 2001-11-19 Werner LEMBERG <wl@gnu.org>
1892 * NEWS, man/Makefile.sub: Updated.
1894 2001-11-19 Bernd Warken <bwarken@mayn.de>
1896 * man/ditroff.man: New file.
1898 2001-11-17 Werner LEMBERG <wl@gnu.org>
1900 * man/groff_differences.man: Renamed to ...
1901 * man/groff_diff.man: This. Updated.
1902 * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
1904 * src/preproc/html/pushbackbuffer.cc: Renamed to ...
1905 * src/preproc/html/pushback.cc: This. Updated.
1906 * src/preproc/html/pushbackbuffer.h: Renamed to ...
1907 * src/preproc/html/pushback.h: This.
1908 * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
1911 * src/libs/libgroff/htmlindicate.cc: Renamed to ...
1912 * src/libs/libgroff/htmlhint.cc: This.
1913 * src/libs/libgroff/Makefile.sub: Updated.
1915 * tmac/an-old.tmac (an-end): Fix page length.
1917 2001-11-16 Werner LEMBERG <wl@gnu.org>
1919 * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
1920 * man/Makefile.sub: Include groff_differences.man.
1921 * VERSION: Set to 1.18.
1922 * REVISION: Set to 0.
1924 2001-11-16 Bernd Warken <bwarken@mayn.de>
1926 * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
1927 the second dot (or ending macro name) to end a macro.
1928 * doc/groff.texinfo: Doc fix.
1930 2001-11-16 Ruslan Ermilov <ru@FreeBSD.org>
1932 * tmac/doc-common (doc-header): Handle very long document titles
1935 2001-11-16 Werner LEMBERG <wl@gnu.org>
1937 * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
1939 2001-11-15 Werner LEMBERG <wl@gnu.org>
1941 * src/roff/troff/troff.man: Revised and split into troff.man and...
1942 * man/groff_differences.man: New file.
1945 2001-11-13 Werner LEMBERG <wl@gnu.org>
1947 * tmac/an-old.tmac (TS, TE): New macros for table support.
1949 2001-11-12 Werner LEMBERG <wl@gnu.org>
1951 * src/include/lib.h: Provide a fix for emx to not include
1954 2001-10-27 Werner LEMBERG <wl@gnu.org>
1956 * src/roff/troff/input.cc (substring_macro): Fix computation of
1959 2001-10-20 Werner LEMBERG <wl@gnu.org>
1961 Undo change from 2001-08-28.
1963 * src/roff/troff/input.cc (have_input): New global variable.
1964 (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
1965 in compatibility mode.
1966 (process_input_stack): Use it.
1968 2001-10-19 Ruslan Ermilov <ru@FreeBSD.org>
1970 * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
1971 being handled as end-of-sentence characters,
1973 2001-10-10 Gaius Mulley <gaius@glam.ac.uk>
1975 * src/roff/troff/input.cc (file_iterator): New members
1976 `suppress_newline_flag' and `seen_escape'.
1977 (file_iterator::next_file): Updated.
1978 (file_iterator::fill): Use it.
1979 (string_iterator): New member `suppress_newline_flag'.
1980 (string_iterator::fill): Set it.
1981 (get_color_element): Use MAX_COLOR_VAL.
1982 * src/roff/troff/env.cc (environment): Remove `need_eol'.
1983 (no_fill): Don't set `env->ignore_next_eol'.
1984 (environment::newline): Handle `eol' tag properly.
1986 (environment::add_html_tag): Set `env->ignore_next_eol'.
1988 * src/roff/troff/env.h (environment): Updated.
1990 * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
1992 (html_printer::outstanding_eol): New member function.
1993 (html_printer::do_title): Use new functions.
1994 (html_printer::troff_tag): Test `id_eol_ce'.
1996 2001-10-10 Werner LEMBERG <wl@gnu.org>
1998 * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
1999 files work with -C also.
2001 2001-10-05 Werner LEMBERG <wl@gnu.org>
2003 * doc/pic.ms: Minor fix.
2004 * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
2005 as a valid command line switch.
2006 * src/devices/grohtml/post-html.cc (main): Ditto.
2008 * src/devices/grohtml/grohtml.man: Updated.
2009 * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
2011 2001-10-04 Werner LEMBERG <wl@gnu.org>
2013 Implementing color support in troff, pic, grops, and grohtml. These
2014 changes are based on a major patch provided by Gaius Mulley
2017 New request: `defcolor', supporting rgb, cmy, cmyk, and gray
2018 definitions with both hex values and fractions.
2020 New escapes: \m and \M for drawing and background color,
2021 respectively. This corresponds to the troff output commands `m'
2024 groff and troff accept command line switch `-c' to disable color
2025 output (which is automatically disabled in compatibility mode).
2027 New scaling indicator `f' for fractions (1f = 65536u).
2029 New conditional operator `m' to test for defined colors with `if'
2032 New keywords `color' (or `colour', `colored', `coloured'), `outline'
2033 (or `outlined'), and `shaded' added to pic.
2035 * src/include/color.h: New file.
2036 * src/include/driver.h: Include it.
2037 * src/include/printer.h: Include color.h.
2038 (environment): New members `col' and `fill'.
2039 (printer): Remove `adjust_arc_center' member function.
2040 * src/include/Makefile.sub: Updated.
2042 * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
2044 Handle `m' and `DF' troff commands.
2045 * src/libs/libgroff/color.cc: New file.
2046 * src/libs/libgroff/Makefile.sub: Updated.
2048 * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
2050 (createImage): Fix computation of `y2'.
2052 (buffer::write_file_html): Remove calls to `stop'.
2054 * src/preproc/pic/common.h (common_output): New abstract function
2055 members `set_color', `reset_color', `get_last_filled', and
2056 `get_outline_color'.
2057 * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
2058 (object_spec): Add members `shaded' and `outlined'.
2059 * src/preproc/pic/output.h (output): `command' is now abstract.
2060 New function members `set_color', `reset_color', `get_last_filled',
2061 and `get_outline_color'.
2062 * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
2063 `outline[d]', and `shaded'.
2064 * src/preproc/pic/object.cc (output::command): Removed.
2065 (output::set_location): Moved to output.h.
2066 (graphic_object): Add protected members `outline_color' and
2068 Add member functions `set_outline_color', `get_outline_color', and
2070 (closed_object): Add member function `set_fill_color'.
2071 Add member `color_fill'.
2072 (graphic_object::print_text): Use `out->set_color' and
2074 (box_object::print, ellipse_object::print, circle_object::print,
2075 line_object::print, spline_object::print, arc_object::print): Ditto.
2076 (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
2077 * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
2078 `SHADED', making them `%left'.
2079 Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
2080 * src/preproc/pic/tex.cc (tex_output): New dummy function members
2081 `set_color', `reset_color', `get_last_filled', and
2082 `get_outline_color'.
2083 * src/preproc/pic/troff.cc (simple_output): New abstract function
2084 members `set_color', `reset_color', and `get_last_filled'.
2085 (simple_output::polygon, simple_output::circle,
2086 simple_output::ellipse): Use `get_last_filled'.
2087 (troff_output): New members `last_filled' and `last_outlined'.
2088 New function members `set_color', `reset_color', `get_last_filled',
2089 and `get_outline_color'.
2090 (troff_output::finish_picture): Use `reset_color'.
2091 (troff_output::set_fill): Test `last_filled'.
2092 * src/preproc/pic/pic.man: Updated.
2094 * src/roff/groff/groff.cc (main): Implement `-c' option.
2095 (synopsis, help): Updated.
2096 src/roff/groff/groff.man: Updated.
2098 * src/roff/troff/troff.h: Include color.h.
2099 (warning_type): Add WARN_COLOR.
2100 * src/roff/troff/env.h (environment): New members
2101 `{cur,prev}_{glyph,fill}_color'.
2102 New member functions `get_{prev_,}{glyph,fill}_color'.
2103 * src/roff/troff/env.cc: Initialize and implement them.
2104 * src/roff/troff/input.cc: New global variable `disable_color_flag'.
2105 Replace `NULL' with `0' everywhere for consistency.
2106 (lookup_color, default_black, do_glyph_color, do_fill_color,
2107 get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
2108 define_color): New functions.
2109 (token::next): Implement \M and \m escapes.
2110 (do_if_request): Implement `m' operator.
2112 (main): Implement `-c' option.
2113 (init_markup_requests): Add `defcolor' request.
2114 (warning_table): Add `color' warning.
2115 * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
2117 * src/roff/troff/node.cc (troff_output_file): New members
2118 `current_{page,glyph}color'. New member functions `put_hex',
2119 `glyph_color', and `fill_color'.
2120 (glyph_color_node::*, fill_color_node::*): Implement it.
2121 * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
2122 (parse_term): Add support for `f'.
2123 * src/roff/troff/troff.man: Updated.
2125 * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
2127 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
2128 * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
2130 * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
2131 (tag_definition): Use `void *' for arg1.
2132 (html_text): New member functions `do_color' and `done_color'.
2133 Use `void *' for second parameter of `push_para' member function.
2134 New `push_para' member function with a single parameter.
2135 Use `char *' for parameter of `issue_table_begin' member funtion.
2136 New `issue_color_begin' member function.
2137 * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
2139 (html_text::issue_color_begin): New function.
2140 (html_text::issue_table_begin): Use `char *' for parameter.
2141 (html_text::start_tag, html_text::shutdown,
2142 html_text::check_emit_text): Updated.
2143 (html_text::push_para): Use `void *' for second parameter.
2144 Add same function with only one parameter.
2145 (html_text::do_*): Updated.
2146 (html_text::do_color, html_text::done_color): New functions.
2147 * src/devices/grohtml/post-html.cc (style): New member `col'.
2148 Mew member `style' with 6 parameters.
2149 (style::style, style::operator==): Updated.
2150 (html_printer::do_font): Use it.
2151 (html_printer::draw): Add dummy entry for `F'.
2152 (html_printer::set_char): Updated.
2153 * src/devices/grohtml/grohtml.man: Updated.
2155 * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
2156 trailing zeroes removed.
2157 (ps_printer): New members `sbuf_color', `fill_color', and
2159 Removed member `fill'.
2160 New member function `set_color'.
2161 (ps_printer::ps_printer, ps_printer::set_char): Updated.
2162 (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
2163 ps_printer::fill_path, ps_printer::draw): Use `set_color'.
2165 * tmac/color-html.tmac, tmac/color.tmac: New files.
2166 * tmac/troffrc: Include them.
2167 * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
2168 * tmac/Makefile.sub: Updated.
2170 * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
2171 man/groff.man: Updated.
2172 * font/devps/prologue.ps: Define FC and CO functions.
2174 2001-10-04 Gaius Mulley <gaius@glam.ac.uk>
2176 Fix incorrect cropping of images and incorrect handling of special
2177 characters. Fix handling of file names in \O.
2179 * src/include/geometry.h: New file.
2180 * src/libs/libgroff/geometry.cc: New file.
2181 * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
2183 * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
2185 (do_suppress): Updated.
2186 * src/roff/troff/node.cc: Include geometry.h.
2187 (troff_output_file::flush_tbuf): Fixed parameters to
2188 `check_output_limits'.
2189 (troff_output_file::check_charinfo): Ditto.
2190 (troff_output_file::determine_line_limits): Add support for `Da'
2193 * src/devices/grohtml/post-html.cc (str_translate_to_html):
2194 Add new parameter `is_special' to decode special characters from
2196 (html_printer::do_title, html_printer::do_heading,
2197 html_printer::do_indentedparagraph,
2198 html_printer::translate_to_html, html_printer::special): Updated.
2200 2001-10-03 Werner LEMBERG <wl@gnu.org>
2202 * Makefile.sub (DISTCLEANFILES): Add stamp-h.
2203 Fix entry for config.h.
2204 * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
2205 * tmac/troffrc: Translate nonbreakable space character to `\~'.
2206 * src/preproc/eqn/eqn.man: Document -d command line option.
2208 2001-09-27 Werner LEMBERG <wl@gnu.org>
2210 * man/groff.man: Use
2218 instead of the old code (`.ad .hy' after the table) to suppress
2219 incorrect hyphenation for grohtml output.
2221 2001-09-22 Werner LEMBERG <wl@gnu.org>
2223 * man/groff_font.man, man/groff_out.man: Minor fixes.
2225 2001-09-20 Werner LEMBERG <wl@gnu.org>
2227 * PROBLEMS: Updated, reordered. Improved EPS section (thanks to
2228 Arnold Robbins <arnold@skeeve.com>).
2230 2001-09-09 Werner LEMBERG <wl@gnu.org>
2232 * configure: Regenerated with autoconf 2.52.
2234 * doc/groff.texinfo: Complete revision of indices.
2236 2001-09-07 Werner LEMBERG <wl@gnu.org>
2238 * doc/Makefile (clean): Updated to delete all indices.
2240 2001-09-05 Werner LEMBERG <wl@gnu.org>
2242 * src/roff/troff/troff.man: Remove superfluous line.
2244 * tmac/s.tmac: Enable all warnings only if no -W or -w option is
2245 given on the command line (or rather, if only the default warnings
2248 2001-09-03 Werner LEMBERG <wl@gnu.org>
2250 * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
2251 use .ne for TTY devices.
2253 2001-08-31 Werner LEMBERG <wl@gnu.org>
2255 * src/roff/troff/token.h, src/roff/troff/input.cc:
2256 s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
2258 2001-08-28 Werner LEMBERG <wl@gnu.org>
2260 * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
2261 * src/roff/troff/input.cc (token::next): Return
2262 TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
2264 (token::description): Updated.
2265 (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
2266 (token::add_to_node_list, token::process): Ignore
2267 TOKEN_TRANSPARENT_ESCAPE.
2269 2001-08-27 Werner LEMBERG <wl@gnu.org>
2271 * tmac/an-old.tmac: Fix `S' string.
2273 2001-08-26 Werner LEMBERG <wl@gnu.org>
2275 * src/roff/troff/troff.man: Don't use .ne for TTY devices.
2277 2001-08-25 Werner LEMBERG <wl@gnu.org>
2279 * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
2281 Many other minor fixes.
2283 * configure.ac: Add message at end to inform how to compile
2285 * configure: Regenerated.
2287 2001-08-24 Werner LEMBERG <wl@gnu.org>
2289 * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
2290 Updated to latest version of libc.
2292 2001-08-23 Werner LEMBERG <wl@gnu.org>
2294 * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
2295 Autoconf 2.50 and newer can handle this.
2296 * configure: Regenerated.
2298 2001-08-21 Werner LEMBERG <wl@gnu.org>
2300 * doc/pic.ms: Fix typo.
2301 * src/preproc/tbl/tbl.man: Document case of global options.
2303 2001-08-21 Gaius Mulley <gaius@glam.ac.uk>
2305 * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
2306 handling of `CR' font.
2308 2001-08-20 Werner LEMBERG <wl@gnu.org>
2310 Use a config.h file.
2312 * src/include/lib.h: Include config.h.
2313 * All C files: Ditto (if necessary).
2314 * All C++ source and header files: Include lib.h first (if
2317 * src/include/config.hin: New file (autogenerated by autoheader).
2318 * stamp-h.in: New file.
2319 * configure.ac: Updated.
2320 * aclocal.m4: Add third parameters to AC_DEFINE macros.
2321 (GROFF_ARRAY_DELETE): Simplified.
2322 * Makefile.sub (DISTCLEANFILES): Updated.
2323 Added targets for remaking config.status, config.hin, config.h,
2324 stamp-h.in, and stamp-h.
2325 * configure: Regenerated.
2327 2001-08-19 Werner LEMBERG <wl@gnu.org>
2331 2001-08-18 Sebastian Krahmer <krahmer@suse.de>
2333 * src/preproc/pic/pic.y (format_number): Use do_sprintf().
2334 (do_sprintf): Use snprintf().
2336 2001-08-18 Werner LEMBERG <wl@gnu.org>
2338 * src/libs/snprintf/*: Added an snprintf module written by Mark
2340 * src/libs/libgroff/Makefile.sub: Updated.
2341 * configure.ac: Add test for snprintf().
2342 * Makefile.in: Updated.
2343 * configure: Regenerated.
2345 * src/preproc/html/pre-html.cc (make_message): Reactivate code which
2348 2001-08-14 Ruslan Ermilov <ru@FreeBSD.org>
2350 * tmac/doc.tmac (Ex): New implementation.
2351 * tmac/doc-common, tmac/groff_tmac.man: Updated.
2353 2001-08-13 Ruslan Ermilov <ru@FreeBSD.org>
2355 * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
2357 * tmac/groff_tmac.man: Updated.
2359 2001-08-13 Werner LEMBERG <wl@gnu.org>
2361 * src/preproc/tbl/tbl.man: Minor documentation update.
2363 2001-08-13 John David Anglin <dave@hiauly1.hia.nrc.ca>
2365 * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
2366 * configure.ac: Add declaration test for gettimeofday().
2367 * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
2368 * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
2369 * configure: Regenerated.
2371 2001-08-11 Werner LEMBERG <wl@gnu.org>
2373 * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
2374 * configure.ac: Add declaration test for strcasecmp().
2375 * Makefile.in: Updated.
2376 * configure: Regenerated.
2377 * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
2378 this is necessary because groff's mkstemp.cc is C++.
2379 Add declaration conditionally for strcasecmp().
2381 2001-08-10 Werner LEMBERG <wl@gnu.org>
2383 Integrated pic2graph, contributed by Eric S. Raymond.
2385 * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
2387 * Makefile.in, NEWS: Updated.
2389 * src/preproc/tbl/tbl.man: Revised.
2391 2001-08-09 Eric S. Raymond <esr@thyrsus.com>
2393 * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
2395 2001-08-09 Werner LEMBERG <wl@gnu.org>
2397 * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
2400 2001-08-08 Paul Eggert <eggert@twinsun.com>
2402 * Makefile.sub (configure): Depend on configure.ac, not
2404 * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
2406 2001-08-07 Werner LEMBERG <wl@gnu.org>
2408 * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
2411 2001-08-06 Werner LEMBERG <wl@gnu.org>
2413 * src/roff/troff/troff.man: Improve documentation of -E option.
2415 2001-07-28 Ralph Corderoy <ralph@inputplus.demon.co.uk>
2417 * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
2420 2001-07-27 Werner LEMBERG <wl@gnu.org>
2422 * src/preproc/refer/refer.cc: Undo last change.
2423 * src/devices/grohtml/post-html.cc: Ditto.
2425 2001-07-26 Werner LEMBERG <wl@gnu.org>
2427 * src/preproc/refer/refer.cc: Include `lib.h'.
2428 * src/devices/grohtml/post-html.cc: Ditto.
2430 2001-07-25 Gaius Mulley <gaius@glam.ac.uk>
2432 * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
2433 * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
2434 * Makefile.in: Comment updated.
2435 * configure: Regenerated.
2437 2001-07-25 Werner LEMBERG <wl@gnu.org>
2439 * src/preproc/pic/pic.cc: Removed.
2440 * src/preproc/pic/pic_tab.h: Removed.
2441 * src/preproc/refer/label.cc: Removed.
2443 * doc/Makefile (.ms.html): Don't use a file name extension in
2444 argument to grohtml's -I option.
2445 * Makefile.in (dist): Remove CVS directories.
2446 Call `distfiles' target.
2448 * src/devices/grohtml/grohtml.man: Add information about valid
2449 versions of pnmtopng.
2450 * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
2451 name instead of number.
2453 2001-07-24 Werner LEMBERG <wl@gnu.org>
2455 * doc/groff.texinfo: Minor fixes.
2457 2001-07-21 Gaius Mulley <gaius@glam.ac.uk>
2459 * doc/Makefile (.ms.html): Put image files into a subdirectory.
2462 2001-07-20 Werner LEMBERG <wl@gnu.org>
2464 * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
2465 * src/libs/libgroff/mkstemp.cc: New file.
2466 * src/libs/libgroff/mksdir.cc: New file.
2467 * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
2468 (xtmpfile) [!HAVE_MKSTEMP]: Removed.
2469 * src/libs/libgroff/Makefile.sub: Updated.
2470 * src/include/lib.h: Add mksdir() prototype.
2471 * src/include/posix.h: Define S_IXUSR if not yet defined.
2473 * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
2474 (createAllPages): Use mksdir() instead of current code.
2475 * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
2476 (main): [!HAVE_MKSTEMP]: Removed.
2478 * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
2479 (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
2481 * configure.ac: Add tests for stdint.h, sys/time.h, and
2483 Call new GROFF_xxx macros.
2484 * configure: Regenerated.
2485 * Makefile.in: Comments updated.
2487 2001-07-20 Gaius Mulley <gaius@glam.ac.uk>
2489 * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
2490 instead of current code.
2491 * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
2492 * src/roff/groff/groff.cc (possible_command::insert_args): New
2494 (main): Use it for predriver handling instead of insert_arg().
2496 2001-07-19 Werner LEMBERG <wl@gnu.org>
2498 * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
2501 * src/include/posix.h: Define S_IWUSR if not yet defined.
2503 2001-07-18 Werner LEMBERG <wl@gnu.org>
2507 2001-07-18 Ruslan Ermilov <ru@FreeBSD.org>
2509 * tmac/groff_mdoc.man: Document new -width and -column syntax.
2510 Some other minor fixes.
2511 * tmac/an-old.tmac: Add `AT' and `UC' macros.
2513 2001-07-17 Gaius Mulley <gaius@glam.ac.uk>
2515 Replace call to `troff' with `groff -Z' to make it aware of
2518 * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
2519 (troff_command, command_prefix): Removed.
2520 (alterDeviceTo): Use groff.
2521 (addZ): New function.
2522 (char_buffer::do_html): Use it.
2523 (scanArguments): Use TROFF_COMMAND.
2524 (findPrefix): Removed.
2526 * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
2528 2001-07-17 Eric S. Raymond <esr@snark.thyrsus.com>
2530 * doc/pic.ms: Documentation fixes.
2532 2001-07-17 Werner LEMBERG <wl@gnu.org>
2534 Replace atexit() with global destructor.
2536 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
2537 (xtmpfile_list_init): New global structure to deallocate
2538 xtmpfile_list on exit. Its destructor inherits most code from
2540 (remove_tmp_files): Deleted.
2541 (add_tmp_file): Simplified.
2543 2001-07-16 Werner LEMBERG <wl@gnu.org>
2545 Replace strdup() with strsave().
2547 * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
2548 (set_papersize): Use strsave() and a_delete.
2549 (main): Use strsave().
2550 * src/preproc/html/pre-html.cc (make_message, createAllPages,
2551 removeAllPages): Use strsave() and a_delete.
2553 * configure.ac: Remove test for strdup.
2554 * Makefile.in: Comment updated.
2555 * configure: Regenerated.
2557 2001-07-15 Werner LEMBERG <wl@gnu.org>
2559 * win32-diffs: Updated.
2561 2001-07-14 Werner LEMBERG <wl@gnu.org>
2563 * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
2564 removing the old one.
2565 * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
2567 2001-07-14 Ralph Corderoy <ralph@inputplus.demon.co.uk>
2569 * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
2571 2001-07-12 Ruslan Ermilov <ru@FreeBSD.org>
2573 Merge -xwidth into -width. Add -xwidth functionality to -column
2576 * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
2578 (doc-do-Bl-args): Merge -xwidth code with -width. Test whether
2579 string immediately following a leading dot starts with a valid mdoc
2581 Add similar code to the -column branch.
2582 (doc-Bl-usage): Updated.
2583 * groff_mdoc.man: s/-xwidth/-width/.
2585 2001-07-12 Gaius Mulley <gaius@glam.ac.uk>
2587 * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
2588 running into centered or non-formatted text.
2590 2001-07-11 Werner LEMBERG <wl@gnu.org>
2592 Introduce short and long prefixes to have the selection at run-time
2593 whether there is a 8+3 limit for names of temporary files.
2595 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
2596 (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
2597 (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
2599 (temp_init): New global structure to initialize above three
2601 (xtmptemplate): Use two parameters for long and short prefix.
2602 Simplify code use above three variables.
2603 (xtmpfile): Use long and short prefixes as parameters.
2604 * src/include/lib.h: Updated.
2606 * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
2608 ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
2609 (createAllPages, makeTempFiles): Updated.
2611 2001-07-09 Werner LEMBERG <wl@gnu.org>
2613 * REVISION: Increased to 3.
2615 Version 1.17.2 released
2616 =======================
2618 2001-07-07 Werner LEMBERG <wl@gnu.org>
2620 * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
2623 2001-07-06 Ruslan Ermilov <ru@FreeBSD.org>
2625 * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
2627 * tmac/groff_mdoc.man: Fix synopsis.
2629 2001-07-05 Ruslan Ermilov <ru@FreeBSD.org>
2631 * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
2632 Restore `doc-Pa-font'.
2634 2001-07-04 Werner LEMBERG <wl@gnu.org>
2636 * src/utils/indxbib/dirnamemax.c: Moved to ...
2637 * src/libs/libgroff/maxfilename.cc: Here.
2638 s/dir_name_max/file_name_max/.
2640 * src/include/lib.h: Add file_name_max.
2641 * src/utils/indxbib/indxbib.cc: Updated.
2642 * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
2645 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
2647 (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
2649 * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
2650 REGION_TEMPLATE): New macros.
2651 (createAllPages, makeTempFiles): Use them.
2652 Include `nonposix.h'.
2653 (html_system): New function.
2654 (createAllPages, createImage): Use it.
2657 * tmac/www.tmac: Fix typos.
2659 2001-07-03 Werner LEMBERG <wl@gnu.org>
2661 * tmac/www.tmac: Disable hyphenation in normal text only if output
2663 (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
2664 * tmac/groff_mwww.man, NEWS: Updated.
2666 2001-07-03 Gaius Mulley <gaius@glam.ac.uk>
2668 * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
2671 2001-07-02 Ruslan Ermilov <ru@FreeBSD.org>
2673 * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
2674 doc-display-ps-stack): Implement font and font size stack for
2677 2001-07-02 Werner LEMBERG <wl@gnu.org>
2679 * REVISION: Increased to 2.
2680 * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
2682 * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
2683 beginning of a line.
2684 * src/groff/grog/grog.sh: Ditto.
2686 2001-06-29 Peter Marquardt <wwwutz@molgen.mpg.de>
2688 * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
2691 2001-06-27 Werner LEMBERG <wl@gnu.org>
2693 Fix problems with preprocessor string for `man' program.
2695 * *.man: Don't use `s' in preprocessor string -- it doesn't exist.
2696 Updated/added copyright.
2697 Moved Emacs's local variable to identify nroff mode to the end of
2698 the file; add local variable if missing.
2700 2001-06-26 Andras Salamon <andras@cs.wits.ac.za>
2702 * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
2703 AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
2704 * configure: Regenerated.
2706 2001-06-25 Andras Salamon <andras@cs.wits.ac.za>
2708 * aclocal.m4 (GROFF_PAGE): Fix page detection code.
2709 * configure: Regenerated.
2711 2001-06-24 Werner LEMBERG <wl@gnu.org>
2713 * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
2715 * doc/pic.ms: Fix typos.
2717 Version 1.17.1 released
2718 =======================
2720 2001-06-21 Golubev I. N. <gin@mo.msk.ru>
2722 * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
2723 * configure: Updated.
2725 2001-06-20 Gaius Mulley <gaius@glam.ac.uk>
2727 * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
2729 * src/roff/troff/dic.cc (blank_line): Add html tag.
2731 2001-06-19 Gaius Mulley <gaius@glam.ac.uk>
2733 * src/roff/troff/input.cc (do_suppress): Fix typo.
2735 2001-06-18 Gaius Mulley <gaius@glam.ac.uk>
2737 Added two new options (-D and -I) to specify image names and a
2738 subdirectory to place the images in.
2740 Change syntax from \\Ox to \\O[x].
2742 * src/devices/grohtml/post-html.cc (main): Add options.
2744 * src/preproc/html/pre-html.cc: Include `stdarg.h'.
2745 Use `NULL' instead of `0' for null string pointers.
2746 (MAX_RETRIES): New macro.
2747 (lengthOfintToStr, intToStr, make_message): New functions.
2748 (makeFileName): Make function static.
2749 Implement -D and -I options.
2750 (checkImageDir): New function.
2751 (write_end_image, write_start_image): Use new syntax of \O.
2752 (createAllPages, removeAllPages): Implement -D and -I options. Use
2754 (createImage): Use make_message().
2755 (addps4html): Add guard for malloc().
2756 (usage, scanArguments): Updated.
2757 (makeTempFiles): Use mkstemp().
2758 (removeTempFiles): Use unlink().
2759 (findPrefix): Add guard for malloc().
2761 * src/roff/troff/input.cc (get_delim_file_name): New function to
2763 (do_suppress): Updated to parse new syntax.
2764 * src/devices/grohtml/grohtml.man: Updated.
2765 * tmac/www.tmac: Updated to new syntax.
2769 2001-06-15 Werner LEMBERG <wl@gnu.org>
2771 * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
2773 * src/devices/grohtml/grohtml.man: Minor improvements.
2775 2001-06-14 Werner LEMBERG <wl@gnu.org>
2777 * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
2779 2001-06-11 Werner LEMBERG <wl@gnu.org>
2781 * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
2782 line to specify preprocessor options -- mandb 2.3.1 only recognizes
2784 * src/preproc/grn/grn.man: Add proper '\" string.
2786 2001-06-11 OKAZAKI Tetsurou <okazaki@be.to>
2788 * test-groff: Don't use PATH but GROFF_BIN_PATH.
2790 2001-06-08 Werner LEMBERG <wl@gnu.org>
2792 Updated to autoconf 2.50.
2794 * configure.in: Renamed to...
2795 * configure.ac: This.
2796 * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
2797 (GROFF_OS390): Updated.
2798 * configure: Regenerated.
2800 2001-05-18 Werner LEMBERG <wl@gnu.org>
2802 * src/roff/troff/env.c, src/roff/troff/env.h,
2803 src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
2806 2001-05-17 Jeffrey Friedl <jfriedl@yahoo-inc.com>
2808 * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
2810 2001-05-16 Werner LEMBERG <wl@gnu.org>
2812 * src/roff/troff/input.cc (read_size): Emit warning if value becomes
2813 less than or equal zero; set it to 1 then.
2814 * src/roff/troff/node.h (node::node): Initialize `last'.
2816 2001-05-08 Werner LEMBERG <wl@gnu.org>
2818 * tmac/an-old.tmac: Make predefined strings work in compatibility
2820 Add troff version guard.
2821 * tmac/doc.tmac: Simplify version guard.
2823 2001-05-07 Werner LEMBERG <wl@gnu.org>
2825 The .ns and .rs requests are now honoured not only in the top-level
2826 but in all diversions (similar to UNIX troff).
2828 This change is based on a patch from Tadziu Hoffmann
2829 <hoffmann@usm.uni-muenchen.de>.
2831 * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
2832 (top_level_diversion): Remove `no_space_mode' member.
2833 * src/roff/troff/div.cc (diversion::diversion,
2834 top_level_diversion::top_level_diversion): Updated.
2835 (macro_diversion::output): Reset `no_space_mode'.
2836 (no_space, restore_spacing): Use `curdiv' unconditionally.
2837 (space_request, blank_line): Check `curdiv->no_space_mode'.
2838 (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
2839 `curdiv' unconditionally.
2840 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
2843 2001-05-06 Werner LEMBERG <wl@gnu.org>
2845 Added two new requests `de1' and `am1' which are similar to `de' and
2846 `am' with the difference that compatibility mode is saved on entry,
2847 switched off during macro execution, and restored on exit.
2849 * src/roff/troff/input.h: Added two new special characters
2850 (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
2851 * src/roff/troff/input.cc (input_iterator): Added two member
2852 functions `save_compatible_flag' and `get_compatible_flag'.
2853 (input_stack): Ditto.
2854 (string_iterator): Ditto. Also add private member
2855 `saved_compatible_flag'.
2856 (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
2857 (calling_mode): New enumeration.
2858 (do_define_macro): Use it. Insert COMPATIBLE_SAVE and
2859 COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
2860 (define_macro, define_indirect_macro, append_macro, ignore): Use
2862 (define_nocomp_macro, append_nocomp_macro): New functions.
2863 (init_input_requests): Updated.
2864 (do_request): Rename local variable `saved_compatible_flag' to
2865 `old_compatible_flag'.
2866 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
2868 * tmac/an-old.tmac: Use `de1' instead of `de' request for all
2869 public and trap-invoked macros. As a consequence, the man macros
2870 work in compatibility mode also.
2872 2001-05-06 Solar Designer <solar@openwall.com>
2874 * Makefile.in: Use $(mandir).
2876 2001-05-06 Alexios Zavras <zvr@pobox.com>
2878 * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
2880 2001-05-05 Werner LEMBERG <wl@gnu.org>
2882 Added `.ns' number register: Returns 1 in no-space mode (if in
2883 top-level diversion), 0 otherwise.
2885 * src/roff/troff/div.cc (no_space_mode_reg): New class.
2886 (init_div_requests): Updated.
2887 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
2890 2001-05-04 Werner LEMBERG <wl@gnu.org>
2892 * src/roff/nroff/nroff.man: Improved documentation (especially
2895 2001-05-02 Werner LEMBERG <wl@gnu.org>
2897 Added `brp' request: This is \p as a request.
2899 * src/roff/troff/env.cc (environment::do_break): Add parameter
2901 (do_break_request): New function (was `break_request').
2902 (break_request): Calls `do_break_request'.
2903 (break_spread_request): New; calls `do_break_request'.
2904 (init_env_requests): Updated.
2905 * src/roff/troff/env.h: Updated.
2906 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
2908 * REVISION: Increased to 1.
2909 * win32-diffs: Updated.
2911 2001-05-01 Werner LEMBERG <wl@gnu.org>
2913 * tmac/an-old.tmac: Fix minor compatibility mode issue.
2914 * tmac/troffrc-end: Make it really work in compatibility mode.
2916 2001-04-27 Werner LEMBERG <wl@gnu.org>
2918 * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
2921 2001-04-22 Werner LEMBERG <wl@gnu.org>
2923 * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
2924 latest versions from glibc CVS archive.
2926 * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
2927 <c.zeelenberg@hccnet.nl>.
2929 2001-04-21 Werner LEMBERG <wl@gnu.org>
2931 * configure.in: Move check for mkstemp() to...
2932 * aclocal.m4 (GROFF_MKSTEMP): This new function.
2933 * configure: Regenerated.
2935 * src/include/groff-getopt.h: Don't use variable names in
2938 * src/devices/grohtml/html-chars.h: Removed. It isn't used.
2939 * src/devices/grohtml/Makefile.sub,
2940 src/devices/grohtml/post-html.cc: Updated.
2942 2001-04-21 Albert Chin-A-Young <china@thewrittenword.com>
2944 * configure.in: Add special check for mkstemp().
2945 * src/libs/libgroff/tmpfile.cc: Use it.
2946 * src/utils/indxbib/indxbib.cc: Ditto.
2947 * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
2948 * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
2951 2001-04-20 Bruce Lilly <blilly@erols.com>
2953 `Version_string' as C++ object was not visible to linker from C
2955 Add `const' to `Version_string'.
2957 * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
2958 (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
2959 (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
2960 (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
2961 (scanArguments), src/preproc/refer/refer.cc (main),
2962 src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
2963 (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
2964 (main), src/devices/grohtml/post-html.cc (main),
2965 src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
2966 (main), src/utils/hpftodit/hpftodit.cc (main),
2967 src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
2968 (main), src/utils/lkbib/lkbib.cc (main),
2969 src/utils/addftinfo/addftinfo.cc (main): Implement it.
2971 * src/roff/groff/pipeline.c: Add _UWIN.
2972 * src/include/nonposix.h: Ditto.
2974 2001-04-20 Werner LEMBERG <wl@gnu.org>
2976 * src/include/lib.h: Use HAVE_STRERROR.
2977 * src/roff/groff/pipeline.c: Ditto.
2978 * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
2979 * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
2980 * src/utils/pfbtops/pfbtops.c: Add copyright notice.
2981 * win32-diffs: Updated.
2982 * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
2984 2001-04-19 Werner LEMBERG <wl@gnu.org>
2986 * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
2987 instead of hardwired `"troff"'.
2988 (char_buffer::read_file): Remove unused variables.
2989 (char_buffer::write_file_troff): Ditto.
2990 (char_buffer::write_file_html): Ditto.
2991 (generateImages): Ditto.
2993 * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
2995 * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
2997 * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
2998 * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
2999 index_search_item::search1): Ditto.
3000 * src/roff/troff/node.h (width_list): Reorder members.
3001 * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
3002 (lookup_warning): Ditto.
3003 (prepend_string): Commented out.
3004 * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
3005 * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
3006 * src/preproc/tbl/main.cc (process_format): Ditto.
3007 * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
3009 * src/preproc/pic/pic.cc: Updated.
3010 * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
3011 * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
3012 * src/preproc/refer/command.cc (execute_command): Ditto.
3013 * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
3014 * src/preproc/refer/token.cc (lookup_token): Ditto.
3015 * src/preproc/soelim/soelim.cc: Ditto.
3016 * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
3017 (isHexDigit): Commented out.
3018 (pushBackBuffer::isString): Remove unused variable.
3019 * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
3021 * src/devices/grops/psrm.cc (resource_manager::lookup_font,
3022 resource_manager::read_resource_arg, read_one_of, parse_extensions):
3024 * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
3025 * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
3026 lookup_paper_size): Ditto.
3027 * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
3028 (text_glob, element_list): Reorder members.
3029 * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
3031 * src/devices/grohtml/html-text.h (html_text::emit_space): Change
3032 return value to `void'.
3033 * src/devices/grohtml/output.cc (word_list::word_list): Fix order
3035 * src/devices/grohtml/html.h (simple_output::check_newline,
3036 simple_output::space_or_newline, simple_output::enable_newlines):
3038 * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
3040 * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
3041 * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
3042 output_ligatures, output_charset, read_map): Ditto.
3043 * src/utils/lookbib/lookbib.cc (main): Ditto.
3044 * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
3045 (do_file): Fix typo (`=' -> `==').
3046 * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
3047 * src/utils/addftinfo/addftinfo.cc (main): Ditto.
3049 2001-04-18 Ruslan Ermilov <ru@FreeBSD.org>
3051 * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
3052 Fix usage of GROFF_BIN_PATH.
3053 * src/roff/nroff/nroff.man: Updated.
3055 2001-04-18 Werner LEMBERG <wl@gnu.org>
3057 * NEWS: Fixing typos.
3060 Version 1.17 released
3061 =====================
3063 2001-04-17 Werner LEMBERG <wl@gnu.org>
3065 * tmac/Makefile.sub (install-data): mdoc.local-s is in current
3066 directory, not in $(srcdir).
3068 2001-04-16 Werner LEMBERG <wl@gnu.org>
3070 * doc/groff.texinfo: More info on conditionals.
3072 2001-04-15 Werner LEMBERG <wl@gnu.org>
3074 * doc/groff.texinfo: Added some info about groff internals.
3076 * src/roff/troff/node.cc (make_glyph_node): Emit warning message
3077 about missing special character only if the name is non-null.
3079 2001-04-14 Werner LEMBERG <wl@gnu.org>
3081 Removing the grohtml-old device driver which is now obsolete.
3083 * src/devices/grohtml-old/*: Removed.
3084 * font/devhtml-old/*: Removed.
3085 * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
3087 * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
3088 * test-groff (PATH): Updated.
3089 * tmac/Makefile.sub (NORMALFILES): Updated.
3090 * tmac/an-old.tmac: Remove special code for html-old device.
3091 Replace `html-or-html-old' register with `an-html'.
3092 * tmac/eqnrc: Updated.
3093 * tmac/html-old.tmac: Removed.
3094 * tmac/troffrc, tmac/troffrc-end: Updated.
3095 * tmac/www.tmac: Remove special code for html-old device.
3096 Replace `html-or-html-old' register with `www-html'.
3098 * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
3099 src/libs/libgroff/htmlindicate.cc (graphic_end),
3100 include/htmlindicate.h, src/preproc/grn/*.cc,
3101 src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
3102 single argument for consistency with rest of source code.
3104 * aclocal.m4, tmac/an-old.tmac: Fix copyright.
3106 2001-04-13 Ruslan Ermilov <ru@FreeBSD.org>
3108 * src/roff/troff/troff.man: Fixing typos.
3110 2001-04-13 Werner LEMBERG <wl@gnu.org>
3112 * doc/pic.ms: Fixing many font switches.
3113 * doc/groff.texinfo: Fixes, additions.
3114 * MORE.STUFF: Updated.
3116 2001-04-12 Gaius Mulley <gaius@glam.ac.uk>
3118 * src/devices/grohtml/grohtml.man: Updated manual page regarding
3120 * src/preproc/html/pre-html.cc (createImage): Fixed right hand
3122 (removeTempFiles): New function to tidy up temporary files.
3123 * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
3124 Many fixes to do with the new inline suppress node and image regions
3126 * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
3127 (generate_img_src): New function.
3128 (html_printer::do_auto_image): Utilizes it.
3129 (do_heading, do_title): Include inline images within their contents.
3130 (html_printer::begin_page): Tidied up comments that are issued to
3131 the html output file.
3132 (html_printer::do_fill): Fixed so that `.nf' works with fonts other
3134 (text_glob::is_br): New method used by do_heading.
3135 * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
3136 equivalent diversion.
3137 * src/include/html-strings.h: Altered image tags to reflect the
3139 * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
3141 * src/preproc/eqn/main.cc: Will suppress generation of image tags if
3142 it is already inside a pic image. Only emit tags if the argument
3143 `-Tps:html' is present.
3144 * src/preproc/tbl/main.cc: Changes to reflect additional
3145 `html_end_suppress' parameter.
3146 * src/roff/troff/env.cc: Only emit eol tag if a node has been
3147 emitted since the last eol tag was written.
3148 * src/roff/troff/env.h: New boolean `emitted_node'.
3149 * src/roff/troff/input.cc (do_suppress): Handles extra suppress
3150 nodes \O3, \O4, \O5. No longer use `output_low_mark_miny'.
3151 * src/roff/troff/node.cc (check_charinfo): New method.
3152 (troff_output_file::determine_line_limits): Alterations to limit
3154 * tmac/www.tmac: Changes to reflect new suppress nodes.
3156 2001-04-12 Bruno Haible <haible@clisp.cons.org>
3158 * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
3159 Escape the html_glyph in the buffer.
3160 (str_translate_to_html): Output the unescaped escaped_char.
3161 * src/devices/grohtml/html-text.cc (issue_table_begin): Set
3162 `frame=void', not `frame=none'. Add `border=0'.
3164 2001-04-12 Werner LEMBERG <wl@gnu.org>
3166 * PROBLEMS: Add some words on how to avoid wrapper macros.
3168 2001-04-11 Blake McBride <blake@florida-software.com>
3170 * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
3172 2001-04-11 Werner LEMBERG <wl@gnu.org>
3174 * font/devlbp/Makefile.sub (CLEANADD): Set it.
3175 * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
3176 * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
3177 * Makefile.sub (DISTCLEANFILES): Here.
3179 * libs/libgroff/new.cc: Include `nonposix.h'.
3180 * win32-diffs: Updated.
3182 2001-04-10 Ruslan Ermilov <ru@FreeBSD.org>
3184 Added skeleton macro for defunct macros.
3186 Updated documentation.
3188 When inside displays, an empty input line warning should be
3189 suppressed. If another macro call is put inside a display,
3190 all subsequent empty lines found in that display caused a
3191 warning to be emitted.
3193 * tmac/doc.tmac (doc-defunct-macro): New macro.
3194 (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
3195 (doc-restore-global-vars): Fixed typo.
3196 (doc-empty-line): Check the `doc-display-depth' register to
3197 determine whether we are inside display or not.
3199 * tmac/doc-common: Removed `Or' and `Sf' registers.
3200 Moved obsolete `Ds' macro to doc.tmac.
3202 * tmac/groff_mdoc.man: Bump document date.
3203 Document `.Vt' under ``Variable Types''.
3204 Removed documentation for obsolete `.Or' macro.
3206 2001-04-10 Werner LEMBERG <wl@gnu.org>
3209 * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
3211 2001-04-10 Bruno Haible <haible@clisp.cons.org>
3213 * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
3214 (usage): Add stream argument. Don't exit.
3215 * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
3216 Write --version output to stdout, not stderr.
3217 (usage): Add stream argument. Don't exit.
3218 * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
3219 (usage): Add stream argument. Don't exit.
3220 * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
3222 (usage): Add stream argument. Don't exit.
3223 (main): Write --help output to stdout, not stderr.
3224 * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
3225 (usage): Add stream argument. Don't exit.
3226 * src/devices/grops/ps.cc (main): Accept --help and --version.
3227 (usage): Add stream argument. Don't exit.
3228 * src/devices/grotty/tty.cc (main): Accept --help and --version.
3229 (usage): Add stream argument. Don't exit.
3230 * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
3231 (main): Accept --help and --version.
3232 * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
3233 (main): Accept --help and --version.
3234 * src/preproc/html/pre-html.cc (usage): Add stream argument.
3235 (scanArguments): Accept --help and --version.
3236 * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
3237 (main): Accept --help and --version.
3238 * src/preproc/refer/refer.cc (main): Accept --help and --version.
3239 (usage): Add stream argument. Don't exit.
3240 * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
3242 (main): Accept --help and --version.
3243 * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
3244 (main): Accept --help and --version.
3245 * src/roff/groff/groff.cc (main): Accept --help and --version.
3246 (synopsis): Add stream argument.
3247 (help): Write --help output to stdout, not stderr.
3248 (usage): Add stream argument. Don't exit.
3249 * src/roff/grog/grog.pl: Accept --help and --version.
3251 * src/roff/grog/grog.sh: Accept --help and --version.
3252 * src/roff/nroff/nroff.sh: Accept --help and --version.
3253 * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
3254 (usage): Add stream argument. Don't exit.
3255 (main): Accept --help and --version.
3256 * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
3257 (usage): New function with stream argument, doesn't exit.
3258 * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
3259 (usage): New function with stream argument, doesn't exit.
3260 * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
3261 (usage): Add stream argument. Don't exit.
3262 * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
3263 (main): Accept --help and --version.
3264 * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
3266 (main): Accept --help and --version.
3267 * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
3268 (main): Accept --help and --version.
3269 * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
3270 (usage): Add stream argument. Don't exit.
3272 2001-04-10 Ruslan Ermilov <ru@freebsd.org>
3274 Fix indentation in SYNOPSIS.
3276 Updated to include changes of latest BSD mdoc version (basically,
3277 the only change is that `.Fn' and `.Fc' put a final semicolon after
3278 a function declaration in the SYNOPSIS section).
3280 * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
3281 (doc-in-synopsis-section): New variable. Updated all related
3283 (doc-indent-synopsis-active): New register.
3284 (Nd, Fn, Fo): Use it.
3285 (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
3286 `.Cd' with long argument line produces indented wrapped lines.
3287 Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
3288 undesirable line break to be output.
3289 (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
3291 (Fn, Fc): Add final `;' to output.
3292 (doc-save-global-vars, doc-restore-global-vars): Updated.
3293 * tmac/doc-common: Remove `Ex' register.
3295 * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
3298 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
3300 * tmac/doc.tmac (Cd): Simplify code.
3301 * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
3303 2001-04-06 Werner LEMBERG <wl@gnu.org>
3305 Implement continuous underlining for nroff mode. To do that, a new
3306 request in the ditroff language has been added: `x u N' (N is 0
3309 \X and \Y are now transparent to end-of-sentence recognition.
3311 * src/include/printer.h (printer): Add `type' parameter to `special'
3313 * src/libs/libdriver/printer.cc (printer::special): Updated.
3314 * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
3316 * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
3317 specials of type `p'.
3318 * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
3319 * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
3320 * src/devices/grops/ps.cc (ps_printer::special): Ditto.
3321 * src/devices/grotty/tty.cc: Add new enum CU_MODE.
3322 (glyph::order): New method.
3323 (tty_printer::add_char): Use it.
3324 (tty_printer::special): New method.
3325 (tty_printer::end_page): Implement it.
3327 * src/roff/troff/node.h (special_node): Add `no_init_string' member.
3328 * src/roff/troff/node.cc (special_node::special_node): Add parameter
3329 to set `no_init_string'.
3330 (special_node::tprint_start): Use it.
3331 (special_node::same, special_node::copy): Updated.
3332 (special_node::ends_sentence): New method.
3333 (troff_output_file::start_special): Add parameter to include
3334 inititialization of special conditionally.
3336 * src/roff/troff/env.h (environment): New member `underline_spaces'.
3337 * src/roff/troff/env.cc (do_underline_special): New function.
3338 (environment::set_font): Use it.
3339 (do_underline): Use it. This was `underline()'.
3340 (underline): Call `do_underline()'.
3341 (continuous_underline): New function which calls `do_underline()'.
3342 (environment::newline): Use `do_underline_special()'.
3343 (init_env_requests): Updated.
3345 * NEWS, man/troff_out.man: Updated.
3347 2001-04-06 Bruno Haible <haible@clisp.cons.org>
3349 * font/devutf8/R.proto: Fix code of 'shc'.
3351 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
3353 Many fixes. Diag lists can now be nested also; additionally,
3354 `-compact' and `-offset' are supported.
3356 * tmac/doc.tmac (doc-have-indent): Replaced with ...
3357 (doc-list-have-indent-stackXXX): A new register stack.
3358 (doc-have-diag-list): Removed.
3359 (Bl): Use `doc-list-have-indent-stackXXX'.
3361 (doc-diag-list): Use `doc-compact-list-stackXXX'.
3362 (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
3363 (doc-set-vertical-and-indent): Ditto.
3364 (doc-next-list-depth): Removed.
3365 (doc-increment-list-stack): Updated.
3366 (doc-decrement-list-stack): Use `doc-list-depth' instead of
3367 `doc-next-list-depth'.
3368 (doc-end-list, doc-end-column-list): Don't use
3369 `doc-increment-list-stack'.
3370 (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
3371 (doc-save-global-vars, doc-restore-global-vars): Updated.
3372 * tmac/doc-common: Updated.
3373 * tmac/groff_mdoc.man: Updated.
3376 2001-04-02 Werner LEMBERG <wl@gnu.org>
3378 * src/devices/grotty/grotty.man: Fix grammatical error.
3380 2001-03-30 Ruslan Ermilov <ru@freebsd.org>
3382 Remove .Ld from mdoc package; replace it with special handling of
3385 * tmac/doc-common: Remove `Ld' register.
3386 Uncomment `doc-volume-ds-*' strings.
3387 Remove `doc-operating-system-default'.
3389 * tmac/doc-syms (Ld): Removed.
3390 * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
3394 * tmac/groff_mdoc.man: Many fixes and updates.
3396 2001-03-29 Werner LEMBERG <wl@gnu.org>
3398 * tmac/troffrc-end: Protect data with `.do'. Reported by T. Kurt
3399 Bond <tkb@tkb.mpl.com>.
3400 * tmac/www.tmac: Save compatibility mode.
3402 2001-03-28 Ruslan Ermilov <ru@freebsd.org>
3404 * tmac/groff_mdoc.man: Many fixes.
3406 2001-03-28 Werner LEMBERG <wl@gnu.org>
3408 * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
3411 2001-03-27 Werner LEMBERG <wl@gnu.org>
3413 * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
3414 diversion. This fixes overlong tags.
3416 2001-03-26 Werner LEMBERG <wl@gnu.org>
3418 * doc/groff.texinfo: Fixed and improved documentation of fonts.
3419 * tmac/doc-syms: Fix error messages.
3420 * tmac/an-old.tmac: Remove incorrect double backslashes.
3422 2001-03-24 Ruslan Ermilov <ru@freebsd.org>
3424 * tmac/Makefile.sub: Strip mdoc.local also
3425 * tmac/strip.sed: Fixed.
3427 2001-03-24 Werner LEMBERG <wl@gnu.org>
3429 * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
3430 selecting the font size.
3431 * tmac/groff_mdoc.man, NEWS: Document it.
3433 2001-03-23 Werner LEMBERG <wl@gnu.org>
3435 * src/roff/troff/div.cc (save_vertical_space): Add default argument
3437 * src/roff/troff/env.cc (family_change): Make `.fam' accept no
3438 argument to restore previous font family.
3439 * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
3441 * doc/groff.texinfo: More fixes and additions (mainly for font
3442 manipulating commands).
3444 * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
3445 * tmac/groff_mdoc.man: This. The quick reference has been removed.
3446 * tmac/Makefile.sub, NEWS: Updated.
3448 2001-03-23 Werner LEMBERG <wl@gnu.org>
3450 Replaced mdoc implementation. The new version is `state of the
3451 art', using almost all new features of groff 1.17 -- it won't run
3452 with older versions.
3454 * tmac/doc.tmac: Completely rewritten.
3455 * tmac/doc-common: Ditto.
3456 * tmac/doc-nroff: Ditto.
3457 * tmac/doc-ditroff: Ditto.
3458 * tmac/doc-syms: Ditto.
3459 * tmac/mdoc.local: New file.
3460 * tmac/groff_mdoc.samples.man: Replaced with ...
3461 * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
3462 * tmac/strip.sed: Updated.
3463 * tmac/Makefile.sub: Updated.
3466 * tmac/groff_man.man: Add `man.local' to the FILES section.
3468 2001-03-22 Werner LEMBERG <wl@gnu.org>
3470 * doc/groff.texinfo: Added many @noindent.
3471 Replaced @end_Example -> @endExample.
3472 Added info whether registers are r/o.
3473 Many other additions and fixes.
3475 2001-03-21 Werner LEMBERG <wl@gnu.org>
3477 * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
3478 in makeinfo of texinfo 4.0) to be used in @Def* macros.
3479 Improved @Def* macros: Now the exact syntax of request, register,
3480 and escapes is shown.
3481 Added macros for parentheses and brackets to be used in @Def*.
3482 Many fixes and improvements of the documentation.
3484 2001-03-20 Werner LEMBERG <wl@gnu.org>
3486 * doc/groff.texinfo: Added new index: `st' (for strings).
3487 Added macros @Defstr(x).
3488 Added macro @Example (adding @group).
3489 Other minor improvements.
3491 2001-03-19 Werner LEMBERG <wl@gnu.org>
3493 * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
3494 `rq' for requests. `fn' is no longer used.
3495 Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
3498 * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
3499 number with name of man page.
3501 2001-03-19 Larry Kollar <kollar@alltel.net>
3503 * doc/groff.texinfo: Complete revision. Added many @Deffn to gain
3506 2001-03-19 Werner LEMBERG <wl@gnu.org>
3508 * man/groff_font.man: Document `prepro', `postpro', and `print'.
3509 * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
3510 * src/devices/grohtml/grohtml.man: Fixing typos.
3512 2001-03-19 Gaius Mulley <gaius@glam.ac.uk>
3514 * tmac/s.tmac (@IP): Pass `.ip' html tag.
3515 * tmac/groff_mwww.man: Remove .LINE macro
3516 * tmac/www.tmac (LINE): Add `.ti'.
3518 * src/devices/grohtml/post-html.cc (html_printer): New member
3520 (html_printer::emit_raw): Use it.
3521 (html_printer::do_linelength): Ditto.
3522 (html_printer::do_pageoffset): Ditto.
3523 (html_printer::do_indentation): Ditto.
3524 (html_printer::do_tempindent): Ditto.
3525 (html_printer::do_break): Ditto.
3526 (html_printer::begin_page): Ditto.
3527 (html_printer::do_indentedparagraph): New function.
3528 (html_printer::troff_tag): Handle `.ip'.
3529 * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
3530 Add `<td width=...>' handling.
3531 (html_text::do_table): Add parameter.
3532 (html_text::do_indent): Updated.
3533 * src/devices/groohtml/html-text.h: Updated.
3535 2001-03-16 Gaius Mulley <gaius@glam.ac.uk>
3537 Introduced simple html tables to implement indentation.
3539 * src/devices/grohtml/html.h (word, word_list): New structures.
3540 (simple_output): Use it.
3541 * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
3542 (html_printer): Improve indentation handling.
3543 (html_printer::emit_raw): Set `in_table' element. Handle
3545 (html_printer::write_header): Move conditional downwards.
3546 Don't allow whitespace in tags.
3547 (html_printer::do_linelength): Handle line length and indentation
3549 (html_printer::do_pageoffset): Handle indentation conditionally.
3550 (html_printer::do_indentation): Ditto.
3551 (html_printer::do_tempindent): New function member.
3552 (html_printer::do_fill): Take care of indentation.
3553 (html_printer::do_flush): Finish table.
3554 (html_printer::do_links): Ditto.
3555 (html_printer::do_break): New function for handling `.br' and `.ti'.
3556 (html_printer::troff_tag): Use it.
3558 (html_printer::flush_globs): Fix.
3559 (html_printer::flush_page): Finish table.
3560 (html_printer::html_printer): Fix error message. Set up
3562 (html_printer::add_to_sbuf): Remove special handling of character
3564 (to_unicode): Remove `stop()'.
3565 (html_printer::write_title): Cleanup.
3566 (html_printer::begin_page): Use `put_string()'. Handle indentation.
3567 (html_printer::~html_printer): Flush text and end the line.
3569 * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
3570 * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
3572 (html_text::start_tag): Disable newlines.
3573 (html_text::table_is_void): New function.
3574 (html_text::issue_table_begin): Ditto.
3575 (html_text::issue_table_end): Ditto.
3576 (html_text::push_para): Better table handling.
3577 (html_text::do_indent): New function.
3578 (html_text::do_table): Ditto.
3579 (html_text::done_table): Ditto.
3580 (html_text::do_tt): Handle PRE_TAG.
3581 (html_text::is_in_table): New function.
3582 (html_text::check_emit_text): Handle tables.
3583 (html_text::do_emittext): Use `nl()'.
3584 (html_text::do_para): Handle table.
3585 (html_text::remove_def): New function.
3586 * src/devices/grohtml/output.cc (word, word_list): Implement
3588 (simple_output::end_line): Flush last word.
3589 (simple_output::simple_comment): Ditto.
3590 (simple_output::begin_comment): Recoded.
3591 (simple_output::end_comment): Ditto.
3592 (simple_output::comment_arg): Removed.
3593 (simple_output::check_newline): Improve test and flush last word.
3594 (simple_output::space_or_newline): Improved.
3595 (simple_output::write_newline): Replaced with...
3596 (simple_output::nl): This.
3597 (simple_output::put_raw_char): Flush last word.
3598 (simple_output::check_space): Removed.
3599 (simple_output::put_translated_string): Ditto.
3600 (simple_output::put_string): Simplified.
3601 (simple_output::put_number): Updated.
3602 (simple_output::put_float): Ditto.
3603 (simple_output::put_symbol): Removed.
3604 (simple_output::enable_newlines): Add `check_newline()'.
3605 (simple_output::flush_last_word): New function.
3607 * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
3608 * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
3610 * tmac/s.tmac (@PP, @IP): Add html conditional code.
3611 * tmac/an-old.tmac (TP): Ditto.
3613 2001-03-09 Ruslan Ermilov <ru@freebsd.org>
3615 * mdate.sh: Make it POSIX compliant.
3617 2001-03-09 Werner LEMBERG <wl@gnu.org>
3619 Added the `return' request to end a macro immediately. It simply
3620 pops iterators from the input stack until a macro iterator is found.
3622 * src/roff/troff/input.cc (input_iterator::is_macro,
3623 macro_iterator::is_macro): New member.
3624 (input_return_boundary): New class to signal an immediate return
3626 (input_stack::add_return_boundary, input_stack::is_return_boundary):
3628 (input_stack::clear): Use it.
3629 (input_stack::pop_macro): New function.
3630 (while_request): Use `is_return_boundary()'.
3631 (return_macro_request): New function.
3632 (init_input_requests): Use it.
3634 * src/roff/troff/TODO: Updated.
3635 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
3637 2001-03-08 Werner LEMBERG <wl@gnu.org>
3639 * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
3642 2001-03-07 Werner LEMBERG <wl@gnu.org>
3644 Make `\B' more rigid.
3646 * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
3648 (get_number_rigidly): New function.
3649 * src/roff/troff/input.cc (do_expr_test): Use it.
3650 * src/roff/troff/token.h: Updated.
3652 * src/roff/troff/request.h: Fix typo (init_html_request ->
3653 init_markup_request).
3655 2001-03-04 Gaius Mulley <gaius@glam.ac.uk>
3657 Fixed grohtml handling of any named glyph for glyph indexes < 0x80.
3658 Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
3659 are now `.begin', `.end', `.image'.
3661 * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
3662 (html_printer::add_to_sbuf): Changing type of `code' parameter.
3663 Use add_char_to_sbuf().
3664 (to_unicode): New function.
3665 (char_translate_to_html): Changing type of `ch' parameter.
3667 (html_printer::~html_printer): Comment out doctype string.
3668 * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
3669 instead of `.html-end'.
3670 (write_start_image): Use `.begin' and `.image' instead of
3671 `.html-begin' and `.html-image'.
3672 * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
3673 (html_begin): Renamed to ...
3675 (html_end): Renamed to ...
3677 (html_image): Renamed to ...
3679 (init_html_requests): Renamed to ...
3680 (init_markup_requests): This.
3681 * tmac/www.tmac: Updated.
3683 2001-02-28 Bram <bram@avontuur.org>
3685 * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
3688 2001-02-26 David Leonard <david.leonard@csee.uq.edu.au>
3690 * doc/meref.me: Fixing some typos.
3692 2001-02-16 Werner LEMBERG <wl@gnu.org>
3694 * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
3695 method. Return `HYPHEN_MIDDLE' if it was `\:'.
3696 * src/roff/troff/node.h: Updated.
3698 2001-02-17 Ruslan Ermilov <ru@FreeBSD.org>
3700 * tmac/groff_tmac.man: Fix typo.
3702 2001-02-16 Werner LEMBERG <wl@gnu.org>
3704 Fixing a bug which prevented proper end-of-sentence recognition
3705 between an `unformatted' box and the following text. As a
3706 consequence, vertical line distances are no longer preserved in
3707 boxes after a call to `.unformat' -- because boxes aren't
3708 line-oriented (contrary to diversions), this doesn't make sense
3711 * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
3713 (vertical_size_node::set_unformat_flag): New method.
3714 * src/roff/troff/node.hh: Updated.
3715 * src/roff/troff/input.cc (word_space_node::reread,
3716 hmotion_node::reread): Reset `unformat' flag after usage.
3717 (unformat_macro): Append only if `set_unformat_flag()' returns
3719 * src/roff/troff/troff.man: Updated.
3721 2001-02-15 Werner LEMBERG <wl@gnu.org>
3723 * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
3724 documentation of `asciify' and `unformat' requests.
3726 2001-02-13 Werner LEMBERG <wl@gnu.org>
3728 Redesigned the `unformat' request. It is no longer connected with
3729 `asciify' but rather uses new `reread()' methods if the `unformat'
3730 flag is set. Additionally, the handling of space characters after
3731 unformatting has been fixed so that they retain their width.
3733 * src/roff/troff/node.h (width_list): New structure to store
3734 original widths of spaces.
3735 (node): Added `unformat' member.
3736 Replaced `num_spaces' variable with `orig_width' list.
3737 * src/roff/troff/node.cc (*node::asciify,
3738 asciify_reverse_node_list): Removed `unformat_only' flag and related
3740 (word_space_node::asciify, word_space_node::word_space_node): Use
3742 (word_space_node::~word_space_node): New destructor.
3743 (word_space_node::copy): Updated to handle `orig_width'.
3744 (hmotion_node::copy, unbreakable_space_node::copy): Updated.
3745 (*node::merge_space): Update `orig_width' list if necessary.
3746 (*node::set_unformat_flag): New methods to set the `unformat' flag.
3747 * src/roff/troff/enc.cc (environment::space_newline): Use
3749 (environment::space): Added method to handle space width and
3750 sentence space width as parameters. Use `width_list'.
3751 (environment::make_tab_node): Updated.
3752 * src/roff/troff/env.h: Updated.
3753 * src/roff/troff/input.cc (word_space_node::reread,
3754 unbreakable_space_node::reread, hmotion_node::reread): New methods
3755 to handle nodes specially if `unformat' flag is set.
3756 (do_asciify_macro): Renamed back to ...
3757 (asciify_macro): This.
3758 (unformat_macro): New implementation to simply set the `unformat'
3761 * MORE.STUFF: Added more info about deroff.
3763 2001-02-08 Werner LEMBERG <wl@gnu.org>
3765 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
3766 space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
3767 and `add_self()' methods to avoid hyphenation. For example, the
3768 hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
3769 soft hyphen after `foo'. Now the hyphen list is correctly
3770 `foo<ignore><ignore>bar'.
3772 2001-02-05 Yoshiteru Kageyama <yt-kage@cb3.so-net.ne.jp>
3774 * tmac/groff_tmac.man: Fix `BIR' macro.
3776 2001-02-04 Werner LEMBERG <wl@gnu.org>
3778 A new escape sequence `\:', inserting a zero-width break point.
3780 * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
3781 * src/roff/troff/input.cc (get_copy, token::next, asciify):
3783 * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
3785 (space_node): Add `was_escape_colon' member. Add `is_escape_colon()'
3786 and `asciify()' methods.
3787 * src/roff/troff/node.cc (space_node::space_node): Updated.
3788 (space_node::asciify): Handle `was_escape_colon'.
3789 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
3791 Handle `\~' similar to other comparable requests.
3793 * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
3795 (token::next): Move creation of an unbreakable_space_node to...
3796 (token::add_to_node_list): Here.
3798 Fix a bug which sometimes prevented hyphenation of words connected
3799 with `\~' or `\ ' (and other escape sequences handled as
3800 TOKEN_NODE). This also fixes a hyphenation problem with boxes
3801 (after a call to the `unformat' request).
3803 * src/roff/troff/env.h (environment::possibly_break_line,
3804 environment::hyphenate_line): Introducing `start_here' parameter.
3805 * src/roff/troff/env.cc (environment::space_newline,
3806 environment::space): Use it.
3807 (environment::possibly_break_line, environment::hyphenate_line):
3809 * src/roff/troff/input.cc (process_input_stack): Use it.
3810 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
3811 space_char_hmotion_node, overstrike_node): Add
3812 `get_hyphenation_type()' method.
3813 * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
3814 if `unformat_only' is active.
3816 2001-01-30 Werner LEMBERG <wl@gnu.org>
3818 Implemented new read-only number register `.linetabs' which
3819 returns 1 if in line-tabs mode, 0 otherwise.
3821 * src/roff/troff/env.h (environment): Add get_line_tabs() member.
3822 * src/roff/troff/env.cc (get_line_tabs): New function.
3823 (init_env_requests): Use it.
3824 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
3826 * VERSION, REVISION: Changing to 1.17.0.
3828 2001-01-28 Werner LEMBERG <wl@gnu.org>
3830 Fixed a bug which prevented hyphenation of words which are finished
3833 * src/roff/troff/token.h (token): Add enum type
3834 `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
3835 * src/roff/troff/input.cc (token::next, token::description,
3836 get_line_arg, token::add_to_node_list, token::process): Use it.
3838 2001-01-27 Werner LEMBERG <wl@gnu.org>
3840 * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
3841 * src/roff/troff/div.cc (do_divert): Use it.
3843 * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
3845 2001-01-25 Werner LEMBERG <wl@gnu.org>
3847 Adding the `linetabs' request. If set, tab distances are not
3848 computed relative to the input line but relative to the output line.
3850 * src/roff/troff/env.h (environment): New member `line_tabs'.
3851 * src/roff/troff/env.cc (line_tabs_request): Implement request.
3852 (environment::environment, environment::copy): Updated.
3853 (environment::distance_to_next_tab): Use `line_tabs'.
3854 (init_env_requests): Register request.
3855 * src/roff/troff/troff.man, man/groff.man, NEWS: Document it. Other
3858 2001-01-24 Werner LEMBERG <wl@gnu.org>
3860 Introducing a new read-only register `.int' which is set to a
3861 positive value if the last output line is interrupted (i.e., if it
3864 * src/roff/troff/env.cc (init_env_requests): Add it.
3865 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
3867 2001-01-23 Gaius Mulley <gaius@glam.ac.uk>
3869 * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
3870 * src/preproc/html/pre-html.cc (findPrefix): New function which
3871 generates the troff executable name via the system prefix.
3872 * src/preproc/eqn/main.cc: Modified warning message.
3874 2001-01-23 Werner LEMBERG <wl@gnu.org>
3876 troff's `box' and `boxa' requests didn't preserve temporary
3879 * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
3880 `saved_target_text_length' members.
3881 * src/roff/troff/div.cc (do_divert): Use them.
3883 Tabs (but not yet leaders and fields) are now handled correctly by
3886 * node.h (hmotion_node): Add field `was_tab'.
3887 * env.cc (environment::make_tab_node): Set it.
3888 * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
3890 Added new request `unformat' which will, contrary to `asciify',
3891 preserve font information after unformatting (i.e., only nodes
3892 dealing with horizontal space are converted back to input
3895 * input.cc (asciify_macro): Renamed to ...
3896 (do_asciify_macro): this, having a new parameter `unformat_only'.
3897 (asciify_macro, unformat_macro): New; using do_asciify_macro.
3898 (init_input_requests): Added `unformat'.
3899 * node.cc (*_node::asciify), asciify_reverse_node_list: Added
3900 parameter to control asciification process.
3901 * node.h (*_node::asciify): Ditto.
3902 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
3904 2001-01-20 Werner LEMBERG <wl@gnu.org>
3906 * doc/groff.texinfo: Minor improvement of `.in' documentation.
3908 2001-01-18 Werner LEMBERG <wl@gnu.org>
3910 * tmac/ps.tmac: Remove call of psold.tmac.
3911 * tmac/psold.tmac: Comment updated.
3912 * tmac/psnew.tmac: Removed since no longer needed.
3913 * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
3915 * font/devutf8/R.proto: Adding `shc' glyph.
3916 * font/devutf8/NOTES: Updated.
3918 * test-groff: Updated.
3920 2001-01-15 Gaius Mulley <gaius@glam.ac.uk>
3922 First cut of the new html device driver. Changes to pre-html and
3923 the new grohtml are too numerous to be documented here.
3925 Stuff related to `html' has been renamed to `html-old' and `html2'
3926 stuff has been renamed to `html' (including directories). The new
3927 html device driver is therefore invoked as `-Thtml'.
3929 Added new `\O' escape to suppress output (needed by html driver).
3931 Added functions and code to pass info about input-level commands
3932 (`.in', `.fl', etc.) to html driver.
3934 Three new functions (.html-begin, .html-end, and .html-image) for
3935 better html handling: `html-begin' will execute the remaining line
3936 if at the outermost nesting level, increasing an internal counter.
3937 `html-end' does the same but decreases the internal counter.
3938 `html_image' puts its arguments into a special node (suppress_node)
3939 to define an image region.
3941 The `output' request has been removed.
3943 * tmac/html-tags.tmac: Removed.
3944 * tmac/arkup.tmac: Updated and renamed to ...
3945 * tmac/www.tmac: New file.
3946 * tmac/markup.tmac Updated and renamed to ...
3947 * tmac/mwww.tmac: New file.
3948 * tmac/Makefile.sub: Updated.
3949 * tmac/an-old.tmac: Updated.
3950 * tmac/eqnrc: Updated.
3951 * tmac/groff_man.man
3952 * tmac/groff_markup.man: Updated and renamed to ...
3953 * tmac/groff_mwww.man: New file.
3954 * tmac/groff_tmac.man: Updated.
3955 * tmac/html-old.tmac: Updated and Renamed from html.tmac.
3956 * tmac/html.tmac: Updated and renamed from html2.tmac.
3957 * tmac/pspic.tmac: Updated html support.
3958 * tmac/s.tmac: Added html output support.
3959 * tmac/troffrc, tmac/troffrc-end: Updated.
3961 * Makefile.in, doc/Makefile: Updated.
3962 * doc/groff.texinfo: Added info about new `\O' escape.
3963 * doc/homepage.ms: Use `MAILTO' macro.
3965 * font/devhtml/DESC.proto: Add `C' font.
3966 * font/devhtml/Makefile.sub: Updated.
3967 * font/devhtml/R.proto: Minor fixes.
3968 * font/devhtml-old/Makefile.sub: Updated.
3970 * src/devices/grohtml-old/Makefile.sub: Updated.
3972 * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
3974 * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
3975 graphic_start): Add `inline' parameter. Update.
3976 (html_end_suppress, graphic_end): Update.
3978 * src/include/html-strings.h: New file.
3979 * src/include/htmlindicate.h: Comments updated.
3980 * src/include/printer.h: Updated.
3982 * src/preproc/eqn/main.cc (do_file, main): Updated.
3983 * src/preproc/pic/troff.cc (troff_output::start_picture,
3984 troff_output::finish_picture): Updated.
3985 * src/preproc/tbl/main.cc (process_input_file): Updated.
3987 * src/roff/groff/groff.cc (main): Updated.
3988 Pass device arguments to predrivers also.
3989 Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
3990 * src/roff/troff/env.h (environment): Updated.
3991 New elements `need_eol' and `ignore_next_eol' (for html output).
3992 * src/roff/troff/env.cc (environment::environment): Add initializers
3993 for `need_eol' and `ignore_next_eol'.
3994 (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
3996 (point_size, fill, no_fill, center, right_justify, line_length,
3997 indent, temporary_indent, break_request, handle_tab): Use
3999 (set_tabs): Use `add_html_tag_tabs()'.
4000 (environment::add_html_tag): Updated.
4001 (environment::do_break): Updated.
4002 * src/roff/troff/div.cc (space_request, flush_output): Use
4003 `environment::add_html_tag()'.
4004 * src/roff/troff/input.cc: Updated.
4005 New variable `html_level' to indicate nested `html-begin' requests.
4006 (file_iterator::fill): Use `environment::add_html_tag_eol()'.
4007 (non_interpreted_char_node, token_node, non_interpreted_node): Add
4008 `force_tprint()' method.
4009 (token::next): Handle `\O'.
4010 (do_suppress): Implement it.
4011 (html_begin, html_end, html_image): New functions.
4012 (init_output_requests): Renamed to ...
4013 (init_html_requests): this.
4015 (macro::append_str, macro::append_unsigned, macro::append_int): New
4017 New variable `output_low_mark_miny' to limit minimal value of y.
4018 (reset_output_registers): Use it.
4019 (output_request): Removed.
4020 (get_output_registers): New function.
4021 * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
4022 (*_node): Added `force_tprint()' if necessary.
4023 (special_node): New elements `tf' and `get_tfont()'.
4024 (suppress_node): New class.
4025 * src/roff/troff/node.cc:
4026 New global variables `image_no' and `suppress_start_page'.
4027 (real_output_file): New method `is_on()'.
4028 (troff_output_file): New method `start_special(tfont)'.
4029 (troff_output_file::really_print_line): Use `tprint' conditionally.
4030 (real_output_file::print_line): Updated.
4031 (real_output_file::on): Updated.
4032 (*_node): Added `force_tprint()'.
4033 (special_node::special_node): Initializer updated.
4034 (special_node::same, special_node::copy, special_node::tprint_start):
4036 (get_reg_int, get_reg_str): New functions.
4037 (suppress_node::*): New methods.
4038 New global variables last_position, last_image_filename;
4039 (min): New inline function.
4040 * src/roff/troff/reg.h, src/roff/troff/request.h,
4041 src/roff/troff/troff.h: Updated.
4043 2001-01-13 Werner LEMBERG <wl@gnu.org>
4045 * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
4046 documentation of `asciify' request.
4048 2001-01-12 Werner LEMBERG <wl@gnu.org>
4050 * src/roff/troff/input.cc: Move definition of special characters
4051 like `ESCAPE_TILDE' to ...
4052 * src/roff/troff/input.h: New file.
4053 * src/roff/troff/Makefile.sub (HDRS): Add it.
4055 Extending the .asciify request to `unformat' space characters also.
4057 * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
4058 to count input space characters.
4059 Update constructors to take care of it.
4060 * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
4061 `ESCAPE_SPACE' instead of normal space.
4062 (word_space_node::asciify): New method.
4063 (unbreakable_space_node::asciify): New method.
4064 (word_space_node::merge_space): New method.
4065 * src/roff/troff/env.cc (environment::space_newline,
4066 environment::space): Add code to initialize `num_spaces' (using the
4067 constructor of `word_space_node').
4068 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
4071 2001-01-09 Werner LEMBERG <wl@gnu.org>
4073 * man/groff_char.man: Use table header traps only conditionally.
4075 2001-01-09 Bjarni Ingi Gíslason <bjarniig@hi.is>
4077 * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
4079 2001-01-08 Werner LEMBERG <wl@gnu.org>
4081 Introducing the `box' and `boxa' requests which are similar to
4082 `di' resp. `da' but omitting a partially filled line (which is
4083 restored after ending the diversion).
4085 * src/roff/troff/div.h (diversion): Add elements to save partially
4087 * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
4088 partially filled line.
4089 (divert, divert_append): Updated.
4090 (box, box_append): New functions.
4091 (init_div_requests): Use them.
4092 * src/roff/troff/env.h (environment): do_divert() is now a friend.
4093 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4095 * doc/groff.texinfo: Fix documentation of `lf' request.
4097 2000-12-25 Werner LEMBERG <wl@gnu.org>
4099 * src/roff/troff/troff.man, NEWS: Document `writem' request.
4101 2000-12-21 Werner LEMBERG <wl@gnu.org>
4103 Ignore `ss' request if in compatibility mode.
4105 * src/roff/troff/input.cc: Make `compatible_flag' non-static.
4106 * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
4107 * src/roff/troff/env.cc (space_size): Use it.
4109 * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
4110 `ss' request in nroff mode.
4112 * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
4115 2000-12-15 Ruslan Ermilov <ru@FreeBSD.org>
4117 * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
4119 2000-12-13 Werner LEMBERG <wl@gnu.org>
4121 * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
4122 * src/preproc/eqn/neqn.man: Small fixes and additions.
4124 2000-12-13 Ruslan Ermilov <ru@FreeBSD.org>
4126 * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
4129 * src/preproc/eqn/neqn.man: New file.
4131 * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
4134 * tmac/e.tmac: Add `T&' macro.
4135 Fix `indent cannot be negative' warning.
4136 * tmac/s.tmac: Fix `indent cannot be negative' warning.
4138 2000-12-07 Werner LEMBERG <wl@gnu.org>
4140 * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
4142 2000-12-06 Werner LEMBERG <wl@gnu.org>
4144 * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
4147 * MORE.STUFF: Added info about deroff for djgpp.
4149 * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
4150 documentation of -rcR switch.
4152 2000-12-03 Werner LEMBERG <wl@gnu.org>
4154 * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
4155 if -rcR=1 (which is now the default in nroff mode), a single, very
4156 long page is created instead of multiple pages: All `ne' and `wh'
4157 requests are put into conditionals; a new macro `an-end' is added to
4158 be called with `em'.
4160 Some other minor cleanups.
4162 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
4164 2000-12-02 Werner LEMBERG <wl@gnu.org>
4166 Fixing a bug which prevented hyphenation in words followed
4167 immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
4169 * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
4170 Adding possibly_break_line().
4171 * src/roff/troff/env.h (environment): Make possibly_break_line()
4174 Make `\~' usable in .tr request.
4176 * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
4177 (token): Add stretchable_space().
4178 * src/roff/troff/input.cc (token::next, token::delimiter,
4179 token::description, process_input_stack, do_translate,
4180 add_to_node_list, token::process): Use it.
4181 * src/roff/troff/node.h (node): Add fourth parameter to add_char()
4182 for adjusting the space.
4183 * src/roff/troff/node.cc (node::add_char): Implement it. Add code
4184 for stretchable space.
4185 * src/roff/troff/input.cc (token::add_to_node_list): Use it.
4186 (make_node): Add code for stretchable space.
4187 * src/roff/troff/env.cc (environment::add_char): Use it.
4188 * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
4189 (get_copy, token::next, transparent_translate, asciify): Use it.
4191 * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
4192 doc/groff.texinfo: Updated.
4193 * man/groff.man: Small reorderings.
4195 2000-11-23 Werner LEMBERG <wl@gnu.org>
4198 * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
4200 * src/roff/troff/input.cc (main): Add `config_macro_path' and
4201 `safer_macro_path' to -M option.
4202 * src/roff/troff/troff.man: Fixes.
4204 2000-11-22 Werner LEMBERG <wl@gnu.org>
4206 Use safer path (except for config files) if -U isn't specified. Add
4207 a special macro path (without home and current directory) for config
4208 files. Add home directory to unsafe path for consistency. Don't
4209 include the home directory in the font path.
4211 * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
4213 * src/include/macropath.h: Add `config_macrp_path'.
4214 * src/libs/libgroff/fontfile.cc: Fix font path.
4215 * src/roff/troff/input.cc (process_startup_file): Use
4216 `config_macro_path'.
4217 (main): Select unsafe path if -U is given.
4219 * src/preproc/eqn/main.cc (main): Fixing search path for
4221 * src/preproc/eqn/eqn.man: Updated.
4223 * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
4226 * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
4227 src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
4228 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
4229 src/devices/grotty/grotty.man: Updated.
4231 * Makefile.in: Fix comments.
4233 2000-11-17 Werner LEMBERG <wl@gnu.org>
4235 * tmac/safer.tmac: Empty file added (again) for compatibility
4237 * tmac/Makefile.sub: Updated.
4239 2000-11-16 Werner LEMBERG <wl@gnu.org>
4241 * src/devices/grodvi/dvi.cc (main),
4242 src/devices/grohtml2/post-html.cc (main),
4243 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
4244 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
4245 (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
4246 (main), src/preproc/html2/pre-html.cc (main),
4247 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
4248 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
4249 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
4250 (main), src/utils/hpftodit/hpftodit.cc (main),
4251 src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
4252 (main), src/utils/lookbib/lookbib.cc (main),
4253 src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
4254 (main): Use stdout for -v.
4255 * src/roff/groff/groff.cc (run_commands),
4256 src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
4257 to make direct printing to stdout possible.
4258 * src/roff/groff/pipeline.h: Updated.
4260 * src/utils/afmtodit/afmtodit.pl: Add -v switch.
4261 * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
4262 * src/utils/afmtodit/afmtodit.man: Updated.
4264 * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
4265 (version): New function.
4267 * src/utils/addftinfo/addftinfo.man: Updated.
4269 * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
4270 Fixing copyright dates.
4272 * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
4275 * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
4278 * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
4280 2000-11-15 Werner LEMBERG <wl@gnu.org>
4282 In all programs, make -v return immediately with exit status 0 to
4283 be compliant with the GNU standard.
4285 * src/devices/grodvi/dvi.cc (main),
4286 src/devices/grohtml2/post-html.cc (main),
4287 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
4288 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
4289 (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
4290 (main), src/preproc/html2/pre-html.cc (main),
4291 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
4292 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
4293 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
4294 (main): Implement it.
4297 * src/roff/groff/groff.cc (main): Add copyright notice. Add refer
4298 and postprocessors to the -v option.
4300 * src/roff/grog/grog.pl: Implement -v.
4301 * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
4302 * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
4304 * src/roff/nroff/nroff.sh: Implement -v.
4305 * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
4306 * src/roff/nroff/nroff.man: Updated.
4308 * src/preproc/eqn/main.cc (main): Fix comment typo.
4310 * MORE.STUFF: Added info about djgpp port of grap.
4312 2000-11-14 Werner LEMBERG <wl@gnu.org>
4314 * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
4315 mode (or rather, implemented non-compatibility mode).
4316 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
4318 * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
4319 replacing it -- we don't find gxditview otherwise.
4320 * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
4322 * src/preproc/pic/depend: Removed. Unnecessary.
4324 Implemented dummy keyword `solid' in pic for compatibility with
4327 * lex.cc (lookup_keyword): Added `solid'.
4328 * pic.y: Added SOLID with dummy rule.
4329 * pic.cc, pic_tab.h: Regenerated.
4330 * doc/pic.ms: Updated.
4332 2000-11-13 Werner LEMBERG <wl@gnu.org>
4334 For security reasons, don't use the current directory but the home
4335 directory while searching and scanning troffrc and troffrc-end.
4336 Similarly, replace the current directory with the home directory
4339 * Makefile.in (fontpath, tmacpath): Remove current directory.
4341 * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
4342 two parameters `add_home' and `add_current'.
4343 (search_path::~search_path, search_path::command_line_dir,
4344 search_path::open_file): Remove tests for `dirs' being zero.
4345 * src/include/searchpath.h: Adjust.
4346 * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
4348 * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
4350 * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
4351 * src/roff/troff/input.cc: Use `mac_path', initialized with
4353 (process_startup_file): Set `mac_path' to `safer_macro_path'.
4354 * src/roff/troff/env.cc: Use `mac_path'.
4356 * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
4358 * NEWS, man/roff.man, src/roff/troff/troff.man,
4359 src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
4362 2000-11-12 Werner LEMBERG <wl@gnu.org>
4364 * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
4366 * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
4367 * configure.in: Fix typo in comment.
4368 * configure: Regenerated.
4370 * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
4373 2000-11-08 Werner LEMBERG <wl@gnu.org>
4375 Add system tmac directory (/usr/local/lib/groff/site-tmac).
4377 * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
4378 (uninstall_dirs): Add $(libdir), $(libprogramdir), and
4381 * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
4382 * tmac/Makefile.sub (install_data): Create
4383 $(systemtmacdir) and $(localtmacdir).
4384 (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
4385 * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
4386 NEWS, doc/groff.texinfo: Updated and minor fixes.
4388 * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
4389 * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
4390 $(systemtmacdir) since the wrapper files are platform-dependent.
4392 2000-11-01 Werner LEMBERG <wl@gnu.org>
4394 * doc/groff.texinfo: Fix typo.
4396 2000-10-26 Werner LEMBERG <wl@gnu.org>
4398 Convert macros `tmac.XXX' to `XXX.tmac'. Special cases:
4399 tmac.doc.old -> doc-old.tmac
4400 tmac.an.old -> an-old.tmac
4402 * tmac/tmac.*: Moved to ...
4403 * tmac/*.tmac: this.
4404 * tmac/man.local: Fix comment.
4405 * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
4406 tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated.
4407 Added some `FILES' sections. More use of @...@ directives. Other
4409 * arch/djgpp/README, font/devutf8/NOTES: Updated.
4410 * doc/homepage.ms, doc/groff.texinfo: Updated.
4411 * man/groff.man, man/roff.man: Updated.
4412 * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
4413 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
4414 src/devices/grotty/grotty.man: Updated.
4415 * src/preproc/pic/pic.man: Updated.
4416 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
4417 instead of -mdoc.old.
4418 * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
4419 * src/roff/nroff/nroff.man: Updated.
4422 * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
4424 * tmac/mm.diff: Removed -- it has no use now since the mm package
4427 * tmac/*: Removed trailing spaces.
4429 * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
4430 the tmac subdirectory also).
4432 * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
4433 * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
4434 stuff since it is no longer needed.
4436 * README, PROBLEMS: Updated.
4438 2000-10-25 Werner LEMBERG <wl@gnu.org>
4440 Invert current behaviour: Search first FOOBAR.tmac, then
4443 * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
4444 (open_mac_file, macro_source): Implement it.
4445 * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
4446 doc/groff.texinfo, NEWS: Document it.
4448 * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
4449 Small documentation improvements.
4451 * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
4454 * font/devps/Makefile.sub: Fix rules for dingbats.*map.
4456 2000-10-24 Werner LEMBERG <wl@gnu.org>
4458 Add local tmac directory (groff/site-tmac).
4460 * Makefile.in: Add $(localtmacdir).
4461 (uninstall_dirs): Add $(localtmacdir).
4462 * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
4463 * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
4464 in $(localtmacdir). Create $(localtmacdir).
4465 * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
4466 Updated and minor fixes.
4468 Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
4470 * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
4472 2000-10-23 Werner LEMBERG <wl@gnu.org>
4474 Move hyphen.us to tmac directory.
4476 * src/roff/troff/hyphen.us: Removed.
4477 * src/tmac/hyphen.us: Added.
4478 * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
4480 Change installation structure for data files from .../groff/... to
4481 .../groff/<version><revision>/... to be conform with other GNU
4484 * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
4485 doc/Makefile: Implement it.
4486 * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
4487 * configure: Updated.
4488 * arch/djgpp/README, font/devutf8/NOTES: Use it.
4489 * NEWS: Document it.
4490 * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
4491 @MACRODIR@ instead of hard-coded directories.
4493 2000-10-22 Werner LEMBERG <wl@gnu.org>
4495 Implement $GROFF_BIN_PATH environment variable (which defaults to
4496 $bindir) used for child programs of groff and similar wrappers.
4498 * gendefs.sh: Improve documentation.
4499 * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
4500 src/preproc/eqn/Makefile.sub (neqn),
4501 src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
4502 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
4504 * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
4505 $GROFF_PATH__ (the latter for communication with troff).
4506 * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
4508 * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
4509 doc/groff.texinfo: Document it.
4511 * doc/groff.texinfo: Improve documentation of troff's -a option.
4513 2000-10-17 Gaius Mulley <gaius@glam.ac.uk>
4515 * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
4516 non-intrusive eol marker.
4517 (troff_output_file::determine_line_limits): New function.
4518 (troff_output_file::draw): Use it.
4519 * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
4520 output_pending_lines() instead of output_line().
4521 * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
4522 * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
4523 createImage): Small fixes.
4525 2000-10-14 Werner LEMBERG <wl@gnu.org>
4527 Replace tmac.safer with a real secure solution.
4529 * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
4530 system_request, pipe_output): Disable requests if in safer mode.
4531 * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
4532 * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
4533 * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
4534 doc/groff.texinfo, src/roff/groff/groff.man,
4535 src/roff/troff/troff.man, arch/djgpp/README: Updated.
4537 * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
4538 (resource_manager::output_prolog): Replace setenv() with putenv().
4540 2000-10-09 Werner LEMBERG <wl@gnu.org>
4542 * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
4543 src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
4544 src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
4545 src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
4546 compilation errors with some compilers. It seems that this code
4547 is no longer necessary -- if yes, it is easy to add some #ifdef's
4548 for that particular old-fashioned compiler.
4550 * MORE.STUFF: Added info about Meta-tbl.
4552 * doc/groff.texinfo: Added more info about `.if "..."..."'.
4554 2000-10-07 Werner LEMBERG <wl@gnu.org>
4556 Adding a new escape sequence \B'...': If the string between
4557 the delimiters is a valid numeric expression, return the character
4558 `1', and `0' otherwise. This is an analogon to \A.
4560 * src/roff/troff/input.cc (do_expr_test): Implement it.
4561 (token::next): Use it.
4562 * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
4564 * tmac/tmac.trace: Made independent from escape character.
4566 2000-10-06 Werner LEMBERG <wl@gnu.org>
4568 Adding a new request .dei: define indirect. The first and second
4569 parameter of .dei are taken from string registers instead directly;
4570 this very special request is needed to make tmac.trace independent
4571 from the escape character (which might even be disabled).
4573 * src/roff/troff/input.cc (do_define_macro): Implement it.
4574 (define_macro_indirect): New function.
4575 (init_input_requests): Use it.
4577 Adding two requests .ecs and .ecr: Save and restore the escape
4578 character. These two requests are needed to make tmac.trace
4579 independent from the escape character (which might even be
4582 * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
4584 (init_input_requests): Use it.
4586 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
4588 2000-09-22 Ricardo Soares Guimarães <ricardo@conectiva.com.br>
4590 Adding a new option -P and new environment variable GROPS_PROLOGUE
4591 to grops, selecting a different prologue file (minor modifications
4594 * src/devices/grops/psrm.cc (resource_manager::output_prolog),
4595 src/devices/grops/ps.cc (main): Implement it.
4596 * src/devices/grops/grops.man, NEWS: Document it.
4598 2000-09-22 Werner LEMBERG <wl@gnu.org>
4600 * INSTALL: Add info about selecting paper format.
4602 2000-09-21 Werner LEMBERG <wl@gnu.org>
4604 * src/roff/troff/input.cc (main): Fixing compiler warning.
4605 * src/include/{driver.h, lib.h}: Move inclusion of string.h and
4606 strings.h from the former to the latter.
4607 * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
4608 stuff from the former to the latter.
4610 2000-09-11 Werner LEMBERG <wl@gnu.org>
4612 Implementing two new requests .tm1 and .tmc: The former is similar
4613 to .tm but can output leading spaces; its syntax is similar to
4614 defining a string, i.e., a `"' can be used to mark the beginning of
4615 the string to be written to stderr: `.tm1 " test'. The latter is
4616 similar to .tm1 but doesn't write out a final newline character.
4618 * src/roff/troff/input.cc (terminal1, terminal_continue,
4619 do_terminal): New functions.
4620 (init_input_requests): Use them.
4621 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
4623 2000-09-09 Werner LEMBERG <wl@gnu.org>
4625 * tmac/groff_mdoc.samples.man: Small fixes.
4627 2000-09-08 Werner LEMBERG <wl@gnu.org>
4629 * tmac/groff_mdoc.man: Fixing typo.
4631 2000-09-02 Werner LEMBERG <wl@gnu.org>
4633 Implementing a .nop request which does nothing.
4635 * src/roff/troff/input.cc (nop_request): New function.
4636 (init_input_requests): Use it.
4637 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
4639 2000-09-01 Werner LEMBERG <wl@gnu.org>
4641 * doc/groff.texinfo: Added some comments.
4643 2000-08-30 Werner LEMBERG <wl@gnu.org>
4645 * src/roff/troff/TODO: Updated.
4647 2000-08-25 Werner LEMBERG <wl@gnu.org>
4649 * doc/groff.texinfo: Fix comment how to compile the DVI file.
4651 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
4653 * font/devps/generate/Makefile (SHELL): Define explicitly to
4654 "/bin/sh", for non-Unix platforms.
4655 (extraclean): Use a more portable "" quoting instead of a
4656 backslash (which doesn't work on DOS/Windows).
4658 * font/devlj4/generate/Makefile (extraclean): Ditto.
4660 * font/devdvi/generate/Makefile (extraclean): Ditto.
4662 2000-08-25 Werner LEMBERG <wl@gnu.org>
4664 * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
4665 src/roff/troff/troff.man: Document Eli's latest changes.
4667 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
4669 * src/roff/troff/input.cc (open_mac_file, macro_source): Support
4670 macro file names of the form NAME.tmac as well as tmac.NAME.
4672 2000-08-25 Werner LEMBERG <wl@gnu.org>
4674 * src/include/posix.h: Remove definition of FILENAME_MAX.
4676 * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
4677 `sys_fatal' and `stop' function().
4679 * test-groff: Updated.
4681 2000-08-24 Gaius Mulley <gaius@glam.ac.uk>
4683 Added the new troff command .output <arg> to suppress output (while
4684 still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
4685 registers (for passing the output dimensions to the output device).
4687 * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
4689 * src/roff/troff/node.h, src/roff/troff/node.cc
4690 (troff_output_file::really_print_line,
4691 ascii_output_file::really_print_line,
4692 supress_output_file::really_print_line): Use `width' parameter.
4693 (troff_output_file::really_on, troff_output_file::really_off,
4694 output_file::on, output_file::off, real_output_file::on,
4695 real_output_file::off, real_output_file::really_on,
4696 real_output_file::really_off): New functions.
4697 (real_output_file:public output_file): New variable `output_on'.
4698 (real_output_file::begin_page, real_output_file::copy_file,
4699 real_output_file::transparent_char, real_output_file::print_line):
4701 (real_output_file::print_line): Use check_output_limits.
4702 * src/roff/troff/reg.h, src/roff/troff/request.h,
4703 src/roff/troff/input.cc (assign_registers): New function to remove
4705 (do_ps_file): Use it.
4706 (check_output_limits, reset_output_registers, output_request,
4707 init_output_requests): New functions.
4708 (init_input_requests): Updated.
4710 Added new grohtml2 device and html2 preprocessor (coding
4711 not yet finished) which will eventually replace grohtml.
4713 * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
4715 * src/include/htmlindicate.h, src/include/htmlindicate
4716 (html_begin_suppress, html_end_suppress): New functions.
4717 * src/preproc/tbl/main.cc: Use it.
4718 * src/roff/groff/groff.cc: Add support for html2 device (which will
4719 automatically invoke the html2 preprocessor).
4720 * src/roff/troff/input.cc (is_html2): New variable.
4721 * src/roff/troff/troff.h, src/roff/troff/env.h,
4722 src/roff/troff/env.cc (environment::add_html_tag): New function
4724 (environment::do_break): Use it.
4725 * font/devhtml2/*: New files.
4726 * src/devices/grohtml2: New device.
4727 * src/preproc/html2: New preprocessor.
4728 * tmac/tmac.html-tags, tmac/tmac.html2: New files.
4730 2000-08-23 Werner LEMBERG <wl@gnu.org>
4732 * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
4734 2000-08-22 Werner LEMBERG <wl@gnu.org>
4736 * src/include/lib.h: Provide a fix for IRIX to not include
4739 2000-08-18 Werner LEMBERG <wl@gnu.org>
4741 * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
4742 since some non-GNU sed programs can't handle null regexps.
4743 * configure, src/preproc/eqn/Makefile.sub,
4744 src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
4746 * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
4747 bug (string.h and strings.h are both needed according to latest
4750 * MORE.STUFF: Added info about unroff and troffcvt.
4752 2000-08-08 Werner LEMBERG <wl@gnu.org>
4754 * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
4757 * tmac/tmac.man.old: Remove unused number register.
4759 * tmac.doc: Minor documentation fix.
4761 2000-08-07 Paul Eggert <eggert@twinsun.com>
4763 * src/roff/groff/pipeline.c (is_system_shell):
4764 Fix typo: "monocased_shell" no longer exists.
4766 2000-08-07 Paul Eggert <eggert@twinsun.com>
4768 Remove FILENAME_MAX limits.
4770 * src/roff/groff/pipeline.c (is_system_shell): Do not assume
4771 that the argument length is less than FILENAME_MAX.
4772 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
4773 Use struct hack to allocate and free file name.
4774 (struct xtmpfile_list): fname is now part of the structure,
4775 not a pointer to another string.
4777 2000-08-07 Tom Schmidt <tschmidt@micron.com>
4779 * src/include/posix.h: Add a default value for FILENAME_MAX.
4781 2000-08-06 Paul Eggert <eggert@twinsun.com>
4783 Add support for new BSD-style man pages (with ".Dd" instead of
4784 ".TH"), so that "groff -man" understands both styles, even
4785 when running "groff -man" on a host whose system man page
4786 macros don't support ".Dd".
4788 * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
4789 (stamp-wrap): Source tmac.andoc first when wrapping man macros,
4790 in case the system man macros don't define Dd or TH.
4792 * tmac/tmac.an.old: Renamed from tmac/tmac.an.
4793 * tmac/tmac.an: New one-line file.
4794 * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
4796 2000-08-06 Werner LEMBERG <wl@gnu.org>
4798 * src/roff/troff/troff.man: Fixing typos.
4800 Version 1.16.1 released
4801 =======================
4803 2000-07-31 Werner LEMBERG <wl@gnu.org>
4805 Preparing release 1.16.1.
4807 * REVISION: Revision number set to 1.
4808 * MORE.STUFF: Added info about port to DOS.
4809 * NEWS, win32-diffs: Updated.
4811 * src/include/nonposix.h: Remove first line -- this file is used
4814 * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
4817 2000-07-30 Werner LEMBERG <wl@gnu.org>
4819 * doc/texinfo.tex: Update to latest version.
4821 2000-06-28 Paul Eggert <eggert@twinsun.com>
4823 * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
4824 commands that fail. Don't assume that "export a=b" is valid shell
4825 syntax. This is needed for Solaris 2.5.1.
4827 * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
4828 comment about missing Solaris headers.
4830 * PROBLEMS: Add section about problems with Sun Make and VPATH.
4832 2000-06-25 Werner LEMBERG <wl@gnu.org>
4834 * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
4837 * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
4839 * win32-diffs: Updated.
4840 * README.WIN32: Added CRs to make all Windows editors happy.
4842 * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
4843 src/roff/groff/pipeline.c).
4845 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
4847 * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
4848 $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
4850 2000-06-17 Eli Zaretskii <eliz@is.elta.co.il>
4852 * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
4853 (tfm::load, gf::load): Open tfm and gf files in binary mode: these
4855 (main): Support non-Posix systems with several different styles of
4856 slash characters in file names.
4858 * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
4859 (main) [SET_BINARY]: Switch stdin into binary mode.
4861 * src/utils/indxbib/indxbib.cc: #include nonposix.h.
4862 (main): Support file names with several possible slash-type
4863 characters, as given by DIR_SEPS[] in nonposix.h.
4864 (main) [__MSDOS__]: If renaming the temporary index file fails
4865 because it has more than one dot in its trunk, replace the dot
4866 with an underscore and try again.
4867 (do_file): Use FOPEN_RB instead of "r". Skip every CR before a
4869 [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
4871 * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
4872 (File::File): Open the input file in binary mode. Strip CR
4873 characters from each CR-LF pair.
4874 (xbasename): Support file names with several possible slash-type
4875 characters, as given by DIR_SEPS[] in nonposix.h.
4877 * src/include/Makefile.sub (HDRS): Add nonposix.h.
4879 * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
4880 (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
4881 [!_POSIX_VERSION]: Define for traditional Unix systems.
4882 (real_output_file::real_output_file): Remove the MSVC-specific
4883 call to popen, use instead POPEN_WT, appropriately defined on
4884 nonposix.h. #include nonposix.h.
4885 (real_output_file::~real_output_file): Remove the MSVC-specific
4886 call to pclose, a suitable macro is now defined on nonposix.h.
4887 Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
4888 and WEXITSTATUS instead of assuming traditional Unix
4889 interpretation of the status returned by pclose.
4891 * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
4892 call to popen, use POPEN_RT instead (appropriately defined on
4893 nonposix.h). #include nonposix.h.
4894 (ps_bbox_request): Open the PostScript file in binary mode.
4895 Close the file after processing it.
4896 (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
4899 * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
4900 A version of run_pipeline that doesn't use `fork'.
4901 (signal_catcher) [__MSDOS__ || _WIN32]: New function.
4902 (system_shell_name, system_shell_dash_c)
4903 (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
4904 the ugliness of testing DOS/Windows file names for equality, and
4905 support both stock shells and ports of Unix shells.
4907 * src/roff/groff/groff.cc: #include nonposix.h.
4908 (BSHELL): Definition moved to nonposix.h.
4909 (main): Use PATH_SEP[0] instead of literal ':'. Use BSHELL_DASH_C
4910 instead of a literal "-c".
4911 (xbasename): Support file names with several possible slash-type
4912 characters, as given by DIR_SEPS[] in nonposix.h.
4913 (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
4916 * src/preproc/soelim/soelim.cc: #include nonposix.h.
4917 (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
4919 * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
4922 * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
4924 * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
4927 * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
4929 * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
4930 P_tmpdir is defined, use it instead of the literal "/tmp".
4931 (remove_tmp_files, add_tmp_file): New functions.
4932 (xtmpfile): Record temporary files and register an atexit function
4933 to delete them explicitly, instead of relying on the OS to do
4934 that, which doesn't work on non-Unix systems.
4936 * src/libs/libgroff/searchpath.cc: #include nonposix.h.
4937 (search_path::search_path): Use PATH_SEP instead of a literal
4939 (search_path::command_line_dir): Ditto.
4940 (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
4941 to support non-Posix systems.
4943 * src/libs/libbib/search.cc: #include nonposix.h.
4944 (search_list::add_file): Open the file in binary mode.
4946 * src/libs/libbib/linear.cc: #include nonposix.h.
4947 (file_buffer::load): Remove \r characters preceding \n from the
4950 * src/libs/libbib/index.cc: #include nonposix.h.
4951 (make_index_search_item): Open index_filename in O_BINARY mode.
4952 (index_search_item_iterator::get_tag): Ditto. Remove \r
4953 characters before \n characters.
4954 (index_search_item::check_files): Open files in binary mode.
4955 (index_search_item::munge_filename): Support DOS-style file names
4956 with backslashes and drive letters, use IS_ABSOLUTE.
4958 * src/devices/grops/ps.cc: #include nonposix.h.
4959 (main) [SET_BINARY]: Switch stdout to binary mode.
4961 * src/devices/grolj4/lj4.cc: #include nonposix.h.
4962 (main) [SET_BINARY]: Switch stdout to binary mode.
4964 * src/devices/grolbp/lbp.cc: #include nonposix.h
4965 (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
4967 * src/devices/grodvi/dvi.cc: #include nonposix.h.
4968 [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
4970 (main) [SET_BINARY]: Switch stdout to binary mode.
4971 [_MSC_VER]: Remove an explicit call to _setmode.
4973 * src/include/nonposix.h: New file.
4975 * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
4976 operation when building with DJGPP.
4977 ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
4978 ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
4981 * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
4983 (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
4984 etc. can include a semi-colon on DOS/Windows.
4985 (depend.temp): Use depend1.temp instead of depend.temp1, to
4986 prevent files from overerwiting each other on 8+3 filesystems.
4988 * gendef.sh (t): Change definition to work with DOS/Windows.
4990 doc/groff.texinfo: Apart of some typo corrections, I also changed
4991 some index entris, to make them more non-ambiguous, and also put
4992 @ignore around some parts that are not yet written, to allow the
4993 Info output be readable.
4995 2000-06-10 Gael Queri <gqueri@mail.dotcom.fr>
4997 Replaced specific checks for function declarations with a generic
4998 routine taken from GNU bfd.
5000 * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
5001 GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
5002 * configure.in: Use it.
5003 * src/devices/grolbp/lbp.cc, src/include/lib.h,
5004 src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
5005 src/roff/groff/groff.cc: Use it.
5006 * Makefile.in, configure: Updated.
5008 2000-06-07 Paco Andrés Verdú <pandres@dragonet.es>
5010 * src/devides/grolbp/lbp.h: Removed unused variables.
5012 2000-05-31 Keith Thompson <kst@sdsc.edu>
5014 * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
5017 2000-05-31 Werner LEMBERG <wl@gnu.org>
5019 * aclocal.m4 (GROFF_SRAND): New function to test the return value
5020 of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
5021 * configure.in: Use it.
5022 * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
5023 * configure, Makefile.in: Updated.
5025 * configure.in: Add test for strncasecmp().
5026 * src/include/lib.h: Use it.
5028 2000-05-29 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
5030 * src/preproc/grn/Makefile.sub: Add MLIB.
5032 2000-05-29 Nix <nix@esperi.demon.co.uk>
5034 * Makefile.in: Use @datadir@ and @mandir@ appropriately.
5036 2000-05-29 Werner LEMBERG <wl@gnu.org>
5038 * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
5040 * PROBLEMS: Small update.
5042 * src/devices/grolbp/lbp.cc: Various small fixes.
5044 2000-05-28 Keith Thompson <kst@sdsc.edu>
5046 * src/roff/nroff/nroff.sh: Fix main loop syntax.
5048 * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
5050 2000-05-25 Werner LEMBERG <wl@gnu.org>
5052 * man/roff.man: Removed unused macro.
5054 2000-05-24 Werner LEMBERG <wl@gnu.org>
5056 * Makefile.in (dist): Remove src/xditview/Imakefile explicitly.
5057 This is needed e.g. if you do
5058 `make distclean; ./configure; make dist'.
5060 Version 1.16 released
5061 =====================
5063 2000-05-23 Werner LEMBERG <wl@gnu.org>
5065 Adding font CWI (constant width italic) to devdvi.
5067 * font/devdvi/CWI: New file.
5068 * font/devdvi/generate/Makefile: Add generating rule.
5069 * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
5070 tmac/tmac.dvi: Use it.
5071 * NEWS: Announce it.
5073 * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
5074 * font/devlj4/generate/Makefile: Cosmetic changes only.
5076 * man/groff.man: Removed most of the redundant description of
5077 special characters (which is in groff_char.man). Added font
5078 translation CB->CR for devdvi. Other minor fixes.
5080 * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
5081 (registered) symbols.
5083 2000-05-22 Werner LEMBERG <wl@gnu.org>
5085 * doc/Makefile: Added rule for creating info files.
5087 * font/devdvi/*: Added kernings for `cq' glyph. Updated to latest
5089 * font/devdvi/generate/Makefile: Fixed dependencies.
5091 * font/devps/*: Regenerated. Heavy changes for Bookman and
5092 NewCentury Schoolbook!
5093 * font/devps/generate/afmname: Will now run with GNU awk.
5094 * font/devps/generate/textmap: Added forgotten `cq' glyph name.
5095 * font/devps/generate/Makefile: Cosmetic changes only.
5097 2000-05-21 Werner LEMBERG <wl@gnu.org>
5099 * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
5100 10, 11, or 12) to support output with 11pt and 12pt base font sizes.
5101 `.SS' now produces a heading with a smaller size than `.SH'.
5102 Completely formatted.
5103 * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
5105 * man/groff.man: Improved table appearance. Use of `eo' request
5106 to reduce number of doubled backslashes in macro definitions.
5107 Replacing `\e' with `\(rs'. Other minor fixes.
5109 * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
5110 to have correct line number.
5112 * INSTALL: Small improvement.
5114 2000-05-20 Bernd Warken <bwarken@mayn.de>
5116 * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
5119 2000-05-19 Bernd Warken <bwarken@mayn.de>
5121 * man/groff.man: Complete update (with a lot of corrections by WL).
5123 2000-05-18 Werner LEMBERG <wl@gnu.org>
5125 Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
5127 * font/*/*: Implement it.
5128 * man/groff_char.man, NEWS: Document it.
5130 * src/include/unix.h: Removed. It isn't used.
5132 * doc/groff.texinfo: Slight improvements.
5134 2000-05-17 Werner LEMBERG <wl@gnu.org>
5136 * README, win32-diffs: Small fixes and improvements.
5138 2000-05-16 Werner LEMBERG <wl@gnu.org>
5140 * FDL: New file (the Free Documentation License version 1.1).
5142 * doc/groff.texinfo: Added many start-up values for gtroff.
5143 Some structural improvements of the source code.
5145 2000-05-15 Werner LEMBERG <wl@gnu.org>
5147 * src/roff/troff/input.cc: Added small comment about troffrc-end.
5148 * src/roff/troff/troff.man: Added info about troffrc-end.
5150 2000-05-14 Werner LEMBERG <wl@gnu.org>
5152 * Makefile.in (EXTRADIRS): Fix typos.
5153 (dist): Handle deletion of old .tar.gz file correctly.
5154 (DISTDIRS): Include all tty output devices.
5156 * doc/groff.texinfo: Adding more cross references; countless other
5159 2000-05-13 Werner LEMBERG <wl@gnu.org>
5161 * MORE.STUFF: Added Robert Marks's utilities.
5163 2000-05-12 Werner LEMBERG <wl@gnu.org>
5165 Added win32 port contributed by Blake McBride
5166 <blake@florida-software.com>.
5168 * README.WIN32, win32-diffs: New files.
5171 * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
5172 (tmove, tmove2): Added parentheses to avoid compiler warnings.
5173 (change): Removed unused variables.
5175 * src/preproc/grn/main.cc (main, conv): Removed unused variables.
5176 (savebounds): Changed return value from `int' to `void'.
5177 * src/preproc/grn/hdb.cc: Ditto.
5179 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
5180 final backslash in comment to avoid compiler warning.
5182 * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
5184 * doc/groff.texinfo: More fixes.
5186 2000-05-11 OKAZAKI Tetsurou <okazaki@be.to>
5188 * tmac/tmac.doc: Documentation fix.
5190 2000-05-11 Werner LEMBERG <wl@gnu.org>
5192 * doc/groff.texinfo: Reading the source code shows up a lot of
5193 omissions and incorrect data... More conversion to @Deffn macros.
5195 2000-05-10 Werner LEMBERG <wl@gnu.org>
5197 * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
5200 * src/roff/troff/request.h: Removing unused `no_break_flag'.
5202 2000-05-09 Werner LEMBERG <wl@gnu.org>
5204 * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
5207 * doc/groff.texinfo: Extended history section. More conversion to
5208 @Deffn macros. More .tr documentation.
5210 2000-05-07 Werner LEMBERG <wl@gnu.org>
5212 * doc/groff.texinfo: Completed tab section. Added info about
5215 2000-05-06 Mike MacIsaac <mikemac@us.ibm.com>
5217 * PROBLEMS: Describe configure script fix for OS/390 Unix.
5219 2000-05-05 Werner LEMBERG <wl@gnu.org>
5221 * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
5223 * NEWS: Document it.
5225 * man/troff.man: Minor optical improvements.
5227 2000-05-03 Werner LEMBERG <wl@gnu.org>
5229 Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
5231 * font/*/*: Implement it.
5232 * man/groff_char.man, NEWS: Document it.
5234 2000-05-02 Werner LEMBERG <wl@gnu.org>
5236 * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
5238 * NEWS: Document the three new man pages.
5240 * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
5241 * configure: Updated.
5243 * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
5245 2000-05-01 Werner LEMBERG <wl@gnu.org>
5247 Added grap support to grog.
5249 * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
5250 * src/roff/grog/grog.man: Document it.
5252 * doc/groff.texinfo, NEWS: Add info about grap support.
5254 Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
5255 (with slight fixes by me).
5257 * tmac/groff_tmac.man: New file documenting tmac mechanism.
5258 * tmac/Makefile.sub: Add groff_tmac.man.
5259 * man/roff.man: New file giving overview of roff system.
5260 * man/troff.man: A short reference of troff.
5261 * man/Makefile.sub: Add roff.man and troff.man.
5263 2000-04-30 Werner LEMBERG <wl@gnu.org>
5265 Added grap support to groff.
5267 * src/roff/groff/groff.cc: Implement it.
5268 * src/roff/groff/groff.man: Document it.
5270 * src/devices/grotty/grotty.man: Add cp1047 device.
5271 * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
5273 * src/roff/groff/groff.man: Ditto.
5274 * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
5275 * doc/groff.texinfo: Ditto.
5277 * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
5280 2000-04-29 Werner LEMBERG <wl@gnu.org>
5282 * man/groff_char.man: Add `pc' glyph.
5283 * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
5284 * tmac/tmac.tty: Add `pc' glyph.
5285 * tmac/tmac.tty-char: Use/add `pc' glyph. Don't call tmac.latin1 if
5286 we use cp1047 output device.
5288 * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
5289 there are still hardcoded latin1->unicode values in utf8's font
5291 * configure: Updated.
5292 * NEWS: Minor clarification. Updated.
5294 * PROBLEMS: Formatted. Added info about C++ fix pack for OS/390
5297 2000-04-28 Werner LEMBERG <wl@gnu.org>
5299 Adding EBCDIC code page 1047.
5301 * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
5302 font/devcp1047/DESC.proto: New files.
5304 * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
5305 either ascii/latin1 or cp1047.
5306 * Makefile.in: Use it.
5307 * configure: Updated.
5309 Replacing and/or adding `md' (mathdot) glyph with `pc'
5310 (periodcentered) in all text fonts.
5312 * font/*/*: Change it.
5314 2000-04-27 Werner LEMBERG <wl@gnu.org>
5316 * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
5318 * configure.in: Add check for strings.h.
5319 * src/include/driver.h: Use HAVE_STRINGS_H.
5320 * src/devices/grolbp/lpb.cc: Remove string.h.
5322 * src/include/groff-getopt.h: New file. It will be used instead of
5323 getopt.h (to be included in lib.h) to avoid endless problems with
5324 picky C++ compilers.
5325 * src/include/lib.h: Use groff-getopt.h.
5326 * src/include/Makefile.sub: Updated.
5328 * configure: Updated.
5329 * Makefile.in: Updated.
5331 * NEWS: Mention EBCDIC support.
5333 2000-04-26 Werner LEMBERG <wl@gnu.org>
5335 * TODO: Some additions.
5337 2000-04-25 Werner LEMBERG <wl@gnu.org>
5339 * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
5342 2000-04-23 Werner LEMBERG <wl@gnu.org>
5344 * src/roff/troff/troff.man: Minor fixes.
5346 2000-04-22 Werner LEMBERG <wl@gnu.org>
5348 * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
5349 `.T' string register and the incompatible definition of the `.T'
5350 number register (compared to Unix troff).
5352 * man/groff_char.man: Add some missing characters.
5353 * font/devutf8/NOTES: Update.
5355 2000-04-21 Werner LEMBERG <wl@gnu.org>
5357 * src/include/htmlindicate.h, src/include/lib.h,
5358 src/include/posix.h: Fix copyright.
5360 * src/include/Makefile.sub: Update.
5362 2000-04-20 Werner LEMBERG <wl@gnu.org>
5364 * src/roff/troff/input.cc (input_char_description): Removing
5365 superfluous space char.
5367 * tmac/tmac.X: Fix typo \(bq -> \(Bq.
5369 * doc/groff.texinfo: Document EBCDIC.
5371 2000-04-19 Werner LEMBERG <wl@gnu.org>
5373 Introducing `shc' as the glyph name for the soft hyphen character.
5375 * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
5376 font/devlatin1/R.proto: Use it.
5380 2000-04-18 Werner LEMBERG <wl@gnu.org>
5382 * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
5383 dependency on ASCII order.
5385 2000-04-16 Sandor BARANY <S.Barany@infosys.tuwien.ac.at>
5387 * src/libs/libgroff/illegal.c: Added EBCDIC table.
5388 * src/roff/troff/input.cc: Added adaptation to EBCDIC.
5390 * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
5391 to increase portability.
5393 2000-04-15 Werner LEMBERG <wl@gnu.org>
5395 * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
5396 Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
5397 the generic `\n' if under OS/390 Unix.
5399 * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
5401 * configure: Regenerated.
5403 2000-04-14 Werner LEMBERG <wl@gnu.org>
5405 * doc/groff.texinfo: More conversions to @Deffn.
5407 2000-04-12 Werner LEMBERG <wl@gnu.org>
5409 * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
5412 * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
5414 2000-04-10 Werner LEMBERG <wl@gnu.org>
5416 * doc/groff.texinfo: More conversions to @Deffn.
5418 2000-04-08 Werner LEMBERG <wl@gnu.org>
5420 * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
5421 Updated to latest version (glibc 2.1.3).
5423 2000-04-07 Werner LEMBERG <wl@gnu.org>
5425 * doc/Makefile (clean): Include more index files.
5426 Add rule texinfo->dvi.
5428 2000-04-05 Werner LEMBERG <wl@gnu.org>
5430 * doc/groff.texinfo: Added new index `op' for operators. More
5431 info on end of sentence characters. More use of @Deffn.
5433 2000-03-30 Werner LEMBERG <wl@gnu.org>
5435 * */*.man: Adding a note that a whitespace can be inserted between
5436 a command line option and its parameter -- we are using GNU getopt.
5438 * src/roff/groff/groff.man: Add example of `-m mandoc'.
5440 2000-03-28 Werner LEMBERG <wl@gnu.org>
5442 Correct anachronism of calling the man macro file with `-man'
5443 instead of `-m man' etc.
5445 * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
5446 tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
5447 load tmac.<package>.
5449 * tmac/Makefile.sub: Updated. Take care of $(tmac_an_prefix) etc.
5453 * doc/groff.texinfo: Updated.
5455 * tmac/groff_man.man: Copyright added.
5457 2000-03-27 Werner LEMBERG <wl@gnu.org>
5459 * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
5460 typeset the request resp. escape name with a tt font -- due to a
5461 bug in texinfo.tex it is necessary to use the `-e' switch with
5464 Improving info about usage of groff units.
5468 2000-03-20 Werner LEMBERG <wl@gnu.org>
5470 * doc/groff.texinfo: Added section about man macro package
5471 (I've basically taken groff_man.man). Introducing new indices `ma'
5472 for macros/strings and `gl' for glyph names. Other minor fixes.
5474 * tmac/groff_man.man: Fixed some typos.
5476 2000-03-19 Werner LEMBERG <wl@gnu.org>
5478 * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
5481 * doc/texinfo.tex: New file.
5483 2000-03-18 Werner LEMBERG <wl@gnu.org>
5485 * doc/groff.texinfo: Improved section on number registers. Other
5488 2000-03-16 Werner LEMBERG <wl@gnu.org>
5490 * src/roff/groff/groff.man: Added info about grolbp. Make nicer
5493 * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
5494 src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
5495 src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
5496 src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
5498 * src/preproc/grn/grn.man: Better synopsis; added copyright.
5500 * src/roff/grog/grog.man: Updated copyright date.
5502 2000-03-14 Francisco Andrés Verdú <pandres@dragonet.es>
5504 * configure.in: Added test for strdup.
5506 * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
5509 Replaced dynamic allocation of arrays `[...]' with `new' operator.
5513 2000-03-12 OKAZAKI Tetsurou <okazaki@be.to>
5515 * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
5517 2000-03-11 Werner LEMBERG <wl@gnu.org>
5519 * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
5521 * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
5522 * src/include/lib.h: Remove some spaces.
5524 2000-03-10 Werner LEMBERG <wl@gnu.org>
5526 * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
5527 initializers from arguments (some compilers don't like this).
5529 2000-03-09 Gaius Mulley <gaius@glam.ac.uk>
5531 * src/libs/libgroff/htmlindicate.cc: Added library file which is now
5532 used by pic and eqn to tell grohtml where the graphic regions start
5534 * src/libs/libgroff/Makefile.sub: Use it.
5535 * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
5536 graphic_start() and graphic_end() from htmlindicate.cc.
5538 2000-03-09 Werner LEMBERG <wl@gnu.org>
5540 * tmac/tmac.safer: Will now work correctly in compatibility mode.
5541 * tmac/groff_man.man: More fixes.
5543 2000-03-08 Werner LEMBERG <wl@gnu.org>
5545 * doc/Makefile: Added texput.log to the `clean' target.
5546 * doc/groff.texinfo: Added info about delimiters for escapes.
5548 2000-03-08 Bernd Warken <bwarken@mayn.de>
5550 * src/preproc/pic/pic.man: Add info on conversion of pic images to
5551 other graphic formats.
5553 2000-03-07 OKAZAKI Tetsurou <okazaki@be.to>
5555 * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
5556 src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
5557 src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
5560 2000-03-07 Werner LEMBERG <wl@gnu.org>
5562 * doc/groff.texinfo: Spelling fixes.
5564 2000-03-06 Werner LEMBERG <wl@gnu.org>
5566 * tmac/groff_man.man: Completely revised to cover everything in
5569 * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
5570 Other minor fixings.
5571 * src/roff/troff/env.cc (environment_copy): Improve error message and
5573 * src/roff/troff/TODO: Updated.
5575 * doc/Makefile: Bug fixes -- this is still provisional, though...
5577 * tmac/eqnrc: Small fixes.
5579 2000-03-05 Abramo Bagnara <abramo@alsa-project.org>
5581 Adding a request `evc' to copy environments.
5583 * src/roff/troff/env.cc (environment::copy, environment_copy):
5585 * src/roff/troff/env.h: Add prototype.
5587 2000-03-05 Francisco Andrés Verdú <pandres@dragonet.es>
5589 Adding strsep() -- Solaris 8 doesn't have it.
5591 * configure.in: Test it.
5592 * src/devices/grolbp/lbp.cc: Add code.
5594 2000-03-05 Werner LEMBERG <wl@gnu.org>
5596 * src/roff/troff/div.cc (macro_diversion::output,
5597 top_level_diversion::output): Fixing an incompatibility with
5598 original troff: \x'0' updates the .a register also. Thanks to
5599 <Andries.Brouwer@cwi.nl> for pointing this out.
5600 * doc/groff.texinfo: Document it.
5602 * Makefile.in: Create Makefile.dep if necessary before calling the
5603 submake process to avoid warning about nonexistent file.
5605 * NEWS, PROJECTS: Updated.
5607 2000-03-04 Werner LEMBERG <wl@gnu.org>
5609 * tmac/troffrc: Add tmac.lbp.
5611 2000-03-03 Francisco Andrés Verdú <pandres@dragonet.es>
5613 * tmac/tmac.lbp: New file.
5614 * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
5617 2000-03-03 Werner LEMBERG <wl@gnu.org>
5619 * Makefile.in: Fixing $(subdir).
5621 * README, NEWS: Small fixes.
5623 * test-groff: Adding path to grolbp.
5625 * configure.in: The (new) file src/xditview/Imakefile.in will be
5626 also configured -- it is now possible to build gxditview in a
5627 directory different from $srcdir.
5629 2000-03-02 Blake McBride <blake@florida-software.com>
5631 * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
5633 * MORE.STUFF: Added website of bell labs and info about plot2dev.
5635 2000-03-01 Colin Phipps <crp22@cam.ac.uk>
5637 * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
5640 2000-02-29 Werner LEMBERG <wl@gnu.org>
5642 Adding GNU getopt to the groff distribution.
5644 * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
5646 * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
5647 * aclocal.a4: Remove GROFF_GETOPT function.
5648 * configure.in, Makefile.in, PROBLEMS: Update.
5649 * src/include/lib.h: Replace getopt tests with getopt.h.
5650 * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
5652 * doc/groff.texinfo: Further checking/updating. Adding more index
5655 * man/groff_out.man: Fix nroff mode activation (for emacs).
5656 * man/groff_font.man: Add missing ligature.
5658 2000-02-28 Werner LEMBERG <wl@gnu.org>
5660 * doc/groff.texinfo: Further checking/updating. Adding more index
5663 * src/devices/grolbp/grolbp.man: Added a comment line at the
5664 beginning of the file (similar to shell scripts) which indicates
5665 that `tbl' should be used as a preprocessor.
5667 2000-02-27 Blake McBride <blake@florida-software.com>
5669 Adapting groff to MS Visual C++ 6.0 compiler (tested with
5670 Windows NT 4.0). Uses _MSC_VER define where necessary.
5672 * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
5673 * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
5674 * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
5675 src/include/lib.h, src/libs/libgroff/errarg.cc,
5676 src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
5677 src/preproc/refer/label.y, src/preproc/refer/label.cc,
5678 src/roff/groff/pipeline.c, src/roff/troff/column.cc,
5679 src/roff/troff/div.cc, src/roff/troff/env.cc,
5680 src/roff/troff/input.cc, src/roff/troff/node.cc,
5681 src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
5682 if_to_a() to avoid name clashes.
5683 * src/include/posix.h: Don't use unistd.h.
5684 * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
5685 clause for integrating non-Unix xtmpfile() code.
5686 * src/roff/troff/input.cc: Adding `public' keyword to macro_header
5687 structure; use "rt" for popen() in pipe_source(); add getpid()
5689 * src/roff/troff/node.cc: Use special versions of popen() in
5690 real_output_file() and pclose() in ~real_output_file().
5692 2000-02-27 Werner LEMBERG <wl@gnu.org>
5694 Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
5695 LBP-8 series laser printers). This code has been contributed by
5696 Francisco Andrés Verdú <pandres@dragonet.es>.
5698 * src/devices/grolbp/*: The grolbp output device.
5699 * font/devlpb/*: The font description files.
5700 * Makefile.in: Add grolpb and devlbp subdirectories.
5702 * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
5703 src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
5706 * doc/groff.texinfo: Further checking/updating. Adding more index
5711 * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
5713 * man/groff_font.man: Adding info about obsolete DESC keywords.
5714 * src/devices/grolj4/grolj4.man: Documenting additional DESC
5717 2000-02-26 Werner LEMBERG <wl@gnu.org>
5719 * src/preproc/grn/grn.man: Added info about the gremlin file format
5720 (contributed by Daniel Senderowicz <daniel@synchrods.com>).
5722 2000-02-25 Werner LEMBERG <wl@gnu.org>
5724 * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
5725 friends to be non-integer.
5727 * src/preproc/grn/grn.man: Document it.
5729 * doc/groff.texinfo: Further checking/updating. Adding more index
5732 2000-02-24 Werner LEMBERG <wl@gnu.org>
5734 * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
5735 line thicknesses to be integer multiples of this value.
5737 * src/preproc/grn/grn.man: Commenting out the -s option -- the
5738 corresponding code doesn't work (yet).
5740 * doc/groff.texinfo: Further checking/updating. Adding more index
5743 2000-02-23 Werner LEMBERG <wl@gnu.org>
5745 * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
5746 specify line thickness instead of base units. The new default
5747 values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
5748 thick lines respectively.
5750 Removed unused variable `prevval'.
5752 * src/preproc/grn/grn.man: Updated.
5754 2000-02-22 Werner LEMBERG <wl@gnu.org>
5756 * src/preproc/grn/main.cc: Slight formatting.
5758 * src/roff/groff/groff.man: Formatting fix.
5759 * src/preproc/grn/grn.man: Ditto.
5761 * src/roff/grog/grog.pl: Fixing two embarassing bugs.
5763 * doc/groff.texinfo: Further checking/updating.
5765 2000-02-21 Werner LEMBERG <wl@gnu.org>
5767 * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
5769 * test-groff: Added grn subdir to path.
5771 * doc/groff.texinfo: Some restructing and other small improvements.
5773 * src/roff/groff/groff.cc (help): Fixed info string.
5775 2000-02-20 Werner LEMBERG <wl@gnu.org>
5777 * doc/meref.me: Fix description of .GS request.
5779 * src/roff/troff/troff.man: Fixing typo.
5781 Adding the `grn' preprocessor for gremlin graphic files.
5783 * src/preproc/grn/*: This is the Berkeley distribution written by
5784 David Slattengren and Barry Roitblat, adapted to groff by Daniel
5785 Senderowicz and Werner Lemberg.
5787 * doc/grnexampl.{me,g}: A sample for grn.
5789 * Makefile.in: Added subdirectory entry for grn.
5791 * src/roff/groff/groff.cc: Added support for grn. It can be now
5792 called with the switch `-g'.
5794 * src/roff/groff/groff.man: Updated.
5796 * src/roff/grog/grog.{man,pl,sh}: Updated.
5800 2000-02-11 Gaius Mulley <gaius@glam.ac.uk>
5802 * src/include/lib.h: Added xtmptemplate and made xtmpfile
5803 parametrically polymorphic.
5805 * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
5806 and the alterations to xtmpfile.
5807 xtmpfile can be requested to return the filename created
5808 and asked not to unlink the temp file. The default behaviour
5809 if parameters are absent is exactly the same as before.
5811 2000-02-11 Abramo Bagnara <abramo@alsa-project.org>
5813 A new request `length' is available which returns the length of a
5814 string in a number register:
5816 * src/roff/troff/input.cc (length_macro): Implement it.
5817 * src/roff/troff/input.cc (init_input_requests): Register it.
5819 2000-02-11 Werner LEMBERG <wl@gnu.org>
5821 * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
5822 of the `substring' request.
5824 * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
5827 * src/roff/troff/TODO, NEWS: Updated.
5829 2000-02-09 Werner LEMBERG <wl@gnu.org>
5831 * src/roff/groff/groff.man: Added an example.
5833 2000-02-06 Werner LEMBERG <wl@gnu.org>
5835 I've considerably modified the directory structure of the
5836 distribution to get a more vertical layout. For example, the number
5837 of top level directories has been reduced from 42 to 6.
5839 As a consequence, many changes, especially to the makefiles, were
5842 * The makefile variables `top_builddir' and `top_srcdir' have been
5843 introduced. Virtually all relative paths have been replaced with
5844 absolute ones using these two variables.
5846 * Dependencies (in the files `Makefile.dep') are no longer part of
5847 the distribution. Instead, they are created during a `make install'
5848 in the build directory.
5850 * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
5851 make `top_srcdir' and `top_builddir' absolute.
5855 * Man pages no depend on the files `VERSION' and `REVISION'.
5857 * The added shell script `mkinstalldirs' will replace `mkdir' in
5860 * VERSION: Version number increased to 1.16.
5862 2000-02-04 Werner LEMBERG <wl@gnu.org>
5864 * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
5866 * Makefile.in: Removed $(tmac_m) since it is no longer needed
5867 (after an update of the mm stuff).
5869 * troff/Makefile.sub (majorminor.cc): Fix dependencies.
5871 2000-02-03 Werner LEMBERG <wl@gnu.org>
5873 The .psbb request will now also accept Mac PS images (i.e. using LF
5874 as the EOL character).
5876 * troff/input.cc (ps_get_line): New function, taken from psrm.cc
5877 (with slight modifications).
5878 * troff/input.cc (do_ps_file): Use it.
5880 * test-groff: Add grohtml and grolj4 output devices to PATH.
5882 2000-01-30 Werner LEMBERG <wl@gnu.org>
5884 * NEWS, MORE.STUFF: Updated.
5886 2000-01-30 Cary D. Renzema <caryr@dollar.mxim.com>
5888 Add the `srand' command to pic.
5890 * pic/lex.cc, pic/pic.y: Implement it.
5891 * pic/pic.man: Document it.
5892 * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
5894 2000-01-30 Werner LEMBERG <wl@gnu.org>
5896 Add a new request `.psbb'. This does exactly what the external
5897 program psbb did. It scans a PostScript image file for a
5898 %%BoundingBox comment and extracts the bounding box values (in
5899 PostScript units) which are then stored in the four new (read-only)
5900 number registers `llx', `lly', `urx', and `ury'.
5902 This will allow the usage of the .PSPIC macro without worrying
5903 about unsafe behaviour of groff, i.e., it will work without the
5904 `-U' switch of groff.
5906 * troff/input.cc: Implement it.
5907 * tmac/tmac.pspic: Use it.
5908 * troff/troff.man, grops/grops.man, NEWS: Document it.
5909 * psbb/*, Makefile.in: Remove it since it is no longer needed.
5911 This is bloody C code simply adapted from psbb.c! Any improvements
5914 2000-01-29 Werner LEMBERG <wl@gnu.org>
5916 * man/groff_font.man: Minor clarifications.
5920 2000-01-28 Werner LEMBERG <wl@gnu.org>
5922 * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
5924 2000-01-28 Gaius Mulley <gaius@glam.ac.uk>
5926 * man/groff_font.man: Brought up to date regarding tcommand
5928 * libgroff/font.cc: Handle everything after `--' as a comment
5930 * devps/*: Added comment delimiter inside devps font files.
5932 2000-01-28 Werner LEMBERG <wl@gnu.org>
5934 * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
5935 \fC...\fP (which now works as expected).
5937 * troff/troff.man: Fix typo.
5939 2000-01-27 Gaius Mulley <gaius@glam.ac.uk>
5941 Completed the pass_filenames implementation in troff.
5943 * libdriver/input.cc: Will read the new `F' tcommand.
5944 * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
5945 * troff/input.cc: Use it.
5947 2000-01-26 Werner LEMBERG <wl@gnu.org>
5949 * troff/env.cc (set_font): Fix the behaviour of \fP. The previous
5950 font will now be updated even if an invalid font is selected.
5952 2000-01-24 Werner LEMBERG <wl@gnu.org>
5954 * doc/homepage.ms: Updated for new tmac.arkup.
5956 * tmac/tmac.html: Disable line breaks after hyphen-like characters.
5958 * tmac/tmac.arkup: Cleanup.
5960 Added `\&' to .HTML macro to `leave vertical mode', so to say.
5962 Removed obsolete .LINK macro completely.
5964 The macros .URL, .FTP, and .MAILTO now accept a third argument which
5965 will be immediately appended to the second argument (to be used with
5966 punctuation, for example).
5968 Disabled .CDFTP macro temporarily for security reasons.
5970 * tmac/groff_markup.man: Complete revision for latest changes in
5971 tmac.arkup -- note that it does not yet format correctly with
5974 2000-01-23 Bruno Haible <haible@clisp.cons.org>
5976 * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
5977 * devutf8/R.proto: Add mappings for wp, lh, rh.
5978 * devutf8/NOTES: Updated.
5980 2000-01-23 Werner LEMBERG <wl@gnu.org>
5982 * doc/groff.texinfo: Updated version/copyright info.
5984 2000-01-21 Gaius Mulley <gaius@glam.ac.uk>
5986 Added support for two new directives in device descriptions:
5987 `pass_filenames' (to pass the input file name to the output device)
5988 and `use_charnames_in_special' (to support e.g. accented characters
5989 in the `X' request).
5991 * include/font.h, troff/charinfo.h: Declare it.
5993 * libgroff/font.cc, libgroff/fontfile.cc: Set it.
5995 * devhtml/DESC: Use it.
5997 * troff/input.cc: New function encoded_char.
5999 * troff/token.h: Add test for `specialness'.
6001 2000-01-21 Werner LEMBERG <wl@gnu.org>
6003 * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
6004 mistake from the list of files to be installed.
6006 2000-01-18 Werner LEMBERG <wl@gnu.org>
6008 * README: Added info how to apply patches.
6010 2000-01-15 Jan Echternach <echter@informatik.uni-rostock.de>
6012 * troff/node.cc (ligature_note::operator delete): Fix g++ warning.
6014 2000-01-15 Gaius Mulley <gaius@glam.ac.uk>
6016 * troff/input.cc: Add support for troffrc-end.
6018 * tbl/main.cc: Altered to issue table-start and table-end special
6019 characters if using the html device.
6021 * devhtml/*: Modified font files to incorporate html encoding of
6024 * tmac/groff_markup.man: New file documenting tmac.arkup.
6026 * tmac/troffrc-end: New file. This is invoked after all user
6027 specified macros. Currently used by the html device to include
6028 tmac.html. Thus no need for users to specify -mhtml anymore.
6030 * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
6031 (MAN7): Add groff_markup.man.
6033 * tmac/tmac.an, tmac/tmac.html: Small html updates.
6035 * tmac/troffrc: tmac.arkup will now be called for the html device.
6037 * libgroff/font.cc, libgroff/font.h: Altered to include reading of
6038 extra device specific information about fonts.
6040 * doc/homepage.ms: New file. It is an example how an HTML home page
6041 could look like with grohtml.
6043 * doc/Makefile: Add homepage.ms. Remove rule for pic.html.
6045 2000-01-12 Bruno Haible <haible@clisp.cons.org>
6047 * devutf8/R.proto: Add mappings for ti, Fn, st, an. Change mappings
6050 * devutf8/NOTES: Updated.
6052 2000-01-08 Bruno Haible <haible@clisp.cons.org>
6054 * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
6055 eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
6056 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
6057 libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
6058 pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
6059 tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
6060 troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
6061 troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
6064 * troff/node.cc (bracket_node::copy): Initialize last to NULL.
6066 2000-01-12 Fabrizio Polacco <fab@prosa.it>
6068 grolj4: Paper size will be searched case-insensitively.
6070 * include/lib.h: Add check for strcasecmp().
6071 * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
6072 * configure.in: Check for strcasecmp().
6074 2000-01-11 Werner LEMBERG <wl@gnu.org>
6076 * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
6079 2000-01-10 Werner LEMBERG <wl@gnu.org>
6081 * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
6084 Add a new read-only register, `.Y', which contains the groff
6087 * troff/input.cc (init_input_requests): Define it.
6088 * troff/Makefile.sub (majorminor.cc): Define `revision' string.
6089 * doc/groff.texinfo, troff/troff.man: Document it.
6091 * libgroff/Makefile.sub (version.cc): Add definition of
6092 `Version_string[]', consisting of `<major>.<minor>.<revision>'
6093 * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
6094 grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
6095 refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
6096 troff/input.cc, pfbtops/pfbtops.c: Use it.
6098 2000-01-10 Fabrizio Polacco <fab@prosa.it>
6100 Add a revision scheme to the groff package.
6102 * REVISION: New file.
6103 * libgroff/Makefile.sub (version.cc): Use it to define
6104 `revision_string[]'.
6105 * grops/psrm.cc: Use revision_string (converted to an unsigned
6106 integer) in constructor of resource_manager.
6108 2000-01-10 Bruno Haible <haible@clisp.cons.org>
6110 * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
6112 * Makefile.in (DEVDIRS): Add devutf8.
6113 * grotty/tty.cc: Include device.h.
6114 (glyph): Change type of `code' to `unsigned int'.
6115 (tty_printer): New field is_utf8. Constructor takes device argument.
6116 (tty_printer::tty_printer): If device if `utf8', set is_utf8.
6117 (tty_printer::add_char): Change type of first arg to `unsigned int'.
6118 (tty_printer::put_char): New function.
6119 (tty_printer::end_page): Use put_char() instead of ::putchar().
6120 (make_printer): Pass device to tty_printer constructor.
6121 * nroff.sh: Determine default device by calling 'locale'. As a
6122 fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
6123 Recognize UTF-8 locales.
6124 * tmac/eqnrc: Recognize utf8 like latin1.
6125 * tmac/troffrc: Device utf8 needs tmac.tty.
6127 2000-01-07 Werner LEMBERG <wl@gnu.org>
6129 * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
6131 2000-01-07 Paul Eggert <eggert@twinsun.com>
6133 Add a new predefined writeable number register, `year',
6134 which contains the current year.
6136 * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
6137 * tmac/tmac.s: Use it.
6138 * troff/input.cc (init_registers): Initialize it.
6140 2000-01-06 Werner LEMBERG <wl@gnu.org>
6142 * PROBLEMS: Fixed typo.
6144 2000-01-04 Paul Eggert <eggert@twinsun.com>
6146 * PROBLEMS: Add Y2k advice for the yr number register.
6148 2000-01-03 Paul Eggert <eggert@twinsun.com>
6150 * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
6152 2000-01-02 Werner LEMBERG <wl@gnu.org>
6154 * tmac/tmac.arkup: Slight modification of macros to provide better
6155 appearance for non-HTML formats.
6157 2000-01-01 Charles Levert <charles@comm.polymtl.ca>
6159 * soelim/soelim.cc (include_path_append): realloc(NULL, n)
6160 does not automatically translate to malloc(n) on all OSes
6161 (e.g., SunOS) so do it explicitly. Also, check the returned
6164 2000-01-01 Werner LEMBERG <wl@gnu.org>
6166 * tmac/tmac.arkup: Added .LINE macro. Some formatting.
6168 * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
6169 expects this variable
6171 2000-01-01 Gaius Mulley <gaius@glam.ac.uk>
6173 * doc/Makefile: Added instructions to create HTML and text
6174 versions of some files.
6176 1999-12-31 Werner LEMBERG <wl@gnu.org>
6178 * Updated INSTALL.gen.
6180 * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
6181 better resp. correctly with non-HTML devices.
6183 Version 1.15 released
6184 =====================
6186 1999-12-28 Werner LEMBERG <wl@gnu.org>
6188 * NEWS, VERSION: Changed to 1.15
6190 1999-12-27 Paul Eggert <eggert@twinsun.com>
6192 * nroff/nroff.man: -S is safer, not safe.
6194 * groff/groff.cc (main): Use `safer', not `safe', in variable
6195 names. This does not change the behavior.
6197 * troff/input.cc (main): Likewise.
6199 * nroff/nroff.sh: Likewise.
6201 * troff/input.cc (prepend_string): New function.
6202 (main): Prepend -msafer, so that we check macro libraries for
6205 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
6207 Version 1.14 released
6208 =====================
6210 1999-12-26 Werner LEMBERG <wl@gnu.org>
6212 * NEWS, VERSION: Changed to 1.14.
6214 1999-12-24 Werner LEMBERG <wl@gnu.org>
6216 * refer/refer.cc: Fixing the last fix.
6218 Version 1.13 released
6219 =====================
6221 1999-12-23 Werner LEMBERG <wl@gnu.org>
6223 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
6228 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
6230 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
6231 document conventions, the version number must be a real.
6233 Version 1.12.1 released
6234 =======================
6236 1999-12-22 Werner LEMBERG <wl@gnu.org>
6238 * VERSION: Changed to 1.12.1.
6240 1999-12-22 Alan Rooks <arooks@istar.ca>
6242 * refer/refer.cc (do_file): Slight modification to satisfy the
6243 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
6246 1999-12-20 Werner LEMBERG <wl@gnu.org>
6248 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
6251 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
6252 list of unsafe requests.
6254 * pic/pic.man: Fixed a typo.
6256 * man/groff_out.man: Fixed a typo.
6258 1999-12-18 Werner LEMBERG <wl@gnu.org>
6260 * Makefile.in: Doc fixes.
6262 1999-12-17 Fabrizio Polacco <fab@prosa.it>
6264 * groff/groff.cc: Missing `U' option added to getopt().
6266 * troff/troff.man: Missing `U' option added to synopsis.
6268 Version 1.12 released
6269 =====================
6271 1999-12-14 Werner LEMBERG <wl@gnu.org>
6273 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
6276 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
6277 with the more appropriate terms `safer' and `unsafe'.
6279 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
6280 sys_nerr and sys_errlist[].
6282 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
6284 * pic/pic.y, pic/pic.cc: Added check for fmod().
6286 1999-12-13 Werner LEMBERG <wl@gnu.org>
6288 * VERSION: Changed to 1.12.
6290 Here some patches from various sources; most of them taken from
6291 the Debian distribution.
6293 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
6294 tmac/Makefile.sub: New files copied directly from the NetBSD
6295 distribution. Probably, some additional adaptation later on is
6298 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
6301 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
6302 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
6303 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
6304 (`-S') is now the default.
6306 * README, NEWS: Updated.
6308 1999-12-09 Werner LEMBERG <wl@gnu.org>
6310 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
6312 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
6314 1999-12-06 Werner LEMBERG <wl@gnu.org>
6316 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
6317 grief than relief today. Additionally, it is against the GNU
6320 * configure: Recreated.
6322 1999-12-05 Werner LEMBERG <wl@gnu.org>
6324 * configure.in: Added GROFF_LIBM.
6326 * configure: Recreated.
6328 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
6331 * Makefile.in: Added definition of $(LIBM).
6333 * Makefile.comm (LIBM): Removed.
6335 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
6337 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
6339 * doc/Makefile: Added rule for generation pic.html.
6341 (clean): Files produced by grohtml will be removed also.
6343 * doc/pic.ms: Small fix.
6345 * tmac/tmac.html: Fixed suppression of headers.
6347 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
6349 * tmac/tmac.html: Fixing horizontal arrows.
6351 Turning off hyphenation.
6353 * tmac/tmac.an: Improved support for grohtml; better indentation,
6356 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
6358 * tmac/tmac.arkup: Added CDFTP macro
6360 * tmac/tmac.html: All headers are turned off for ms, me, and mm
6363 * tmac/troffrc: Some additions for HTML stuff.
6365 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
6367 * tmac/tmac.html: Small changes.
6369 1999-09-26 Werner LEMBERG <wl@gnu.org>
6371 * doc/groff.texinfo: Minor fixes.
6373 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
6375 * devhtml/TR: Changed spacewidth to 3.
6377 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
6379 * tmac/tmac.html: Moved markup macros to tmap.arkup.
6381 * tmac/tmac.arkup: New file.
6383 * grohtml/ChangeLog: New file.
6385 1999-09-16 Werner LEMBERG <wl@gnu.org>
6387 * doc/groff.texinfo (Common Features): Added Copying chapter.
6388 Changed format to @smallbook.
6390 1999-09-15 Werner LEMBERG <wl@gnu.org>
6392 * NEWS: Added info about groff.texinfo.
6394 * doc/groff.texinfo: Will now compile (using texi2dvi) without
6397 1999-09-14 Werner LEMBERG <wl@gnu.org>
6399 * groff/groff.man: More updates.
6401 1999-09-13 Werner LEMBERG <wl@gnu.org>
6403 * doc/groff.texinfo: New file. This manual is still very
6404 rudimentary. It has been originally contributed by Trent
6405 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
6408 * INSTALL: Added information about the `doc' subdir
6410 * troff/troff.man: Minor fixes.
6412 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
6415 * troff/input.cc (usage): Added missing `-ffam' to usage message.
6417 * Makefile.in (dist): groff-$(version).tar.gz must be removed
6418 also, otherwise it is included itself in another call of `make
6421 * groff/groff.cc (synopsis): Removed superfluous space.
6423 * PROJECTS, PROBLEMS, NEWS: Updated.
6425 * VERSION: Updated to 1.12beta.
6427 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
6429 * README: Updated: Included documentation about CVS repository,
6430 mailing lists, and daily snapshots.
6432 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
6434 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
6436 * tmac/tmac.an: If the tag didn't fit into the space that the
6437 macro `TP' specifies, the rest of the tag went into the space for
6440 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
6442 * grolj4/lj4.cc: Added duplex printing (option `-d').
6444 * grolj4/grolj4.man: Document duplex printing.
6446 1999-09-12 Werner LEMBERG <wl@gnu.org>
6448 * doc/Makefile (pic.ps): Fixed rule which caused problems with
6449 non-GNUish sed programs.
6451 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
6454 * configure.in (LIBS): Added `-lc'
6456 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
6458 * pic/tex.cc (solid_arc): Casting M_PI to double.
6460 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
6462 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
6463 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
6464 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
6466 * groff/groff_man.man: New file. This manual page was originally
6467 written for the Debian GNU/Linux system by Susan G. Kleinmann
6470 * eqn/list.cc (list_box::compute_metrics,
6471 list_box::compute_sublist_width): Removed variable declaration to
6472 avoid shadowing warnings.
6474 * grops/psrm.cc (resource_manager::process_file): Ditto.
6476 * tfmtodit/tfmtodit.cc (main): Ditto.
6478 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
6479 to avoid shadowing warnings.
6481 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
6482 shadowing loop variable.
6484 * groff/groff.man, troff/troff.man: Added doc about grohtml.
6486 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
6488 New grohtml frontend to convert groff input to html.
6490 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
6492 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
6494 * tmac/eqnrc: Added html device.
6496 * tmac/tmac.html: New file.
6498 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
6499 (troff_output::start_picture, troff_output::finish_picture),
6500 tbl/main.cc (process_input_file):
6501 Surrounded output with `graphics_start' and `graphics_end' so that
6502 the html driver can identify non-text portions.
6504 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
6505 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
6506 grotty/tty.ps (tty_printer::set_char): Additional parameter
6509 * include/printer.h: Class printer: New function
6510 set_char_and_width; new variables (is_char_named, is_named_set,
6511 named_command, named_char_s, named_char_n) to hold information
6512 about named characters -- needed by the html driver.
6514 * libdriver/printer.cc (printer::set_ascii_char,
6515 printer::set_special_char): Use set_char_and_width.
6517 * devhtml/*: New device files for html driver.
6519 * grohtml/*: New driver grohtml.
6521 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
6523 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
6526 1999-09-11 Luke Mewburn <lukem@netbsd.org>
6528 * libgroff/string.cc (search): Small fix to test against NULL
6531 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
6533 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
6534 \b'abc') were stacked in reverse order when processed in a
6537 * troff/node.h: Added `*last' to struct `node' to make the above
6540 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
6541 The default scale for the 'f' and 't' graphics functions were 'm'
6542 rather than 'u' (i.e., no scaling).
6544 1999-09-11 Peter Miller <peterm@jna.com.au>
6546 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
6547 do_file), soelim/soelim.man: Added `-I file' option to soelim,
6548 defining include paths.
6550 * soelim/soelim.cc (include_path_append): New function.
6552 1999-09-11 Larry Jones <larry.jones@sdrc.com>
6554 * tbl/main.cc (process_options): Unix (at least Documenter's
6555 Workbench) tbl allows arbitrary non-alpha characters between
6558 1999-09-11 Paul Eggert <eggert@twinsun.com>
6560 Y2k fixes. Don't assume that the current year precedes 2000.
6562 * doc/meref.me: Add \n(y2, \n(y4.
6564 * tmac/doc-common (Yr): New number register.
6565 (Dd): Don't assume current year precedes 2000.
6567 * tmac/tmac.e (td): Likewise.
6568 (y2, y4): New number registers.
6570 * pic/pic.man: Update reference for pic paper to May, 1991
6573 1999-09-11 Werner LEMBERG <wl@gnu.org>
6575 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
6576 Removed quotation marks which prevented correct expansion of
6579 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
6581 1999-09-10 Werner LEMBERG <wl@gnu.org>
6583 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
6586 * Removed configure.old.
6588 1999-08-31 Werner LEMBERG <wl@gnu.org>
6590 * VERSION: Updated to 1.11.1
6592 1999-05-27 Werner LEMBERG <wl@gnu.org>
6594 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
6596 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
6597 added quotations around $(tmac_wrap) to avoid syntax error if
6600 * configure: Newly generated using autoconf 2.13.
6602 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
6604 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
6606 * README, PROJECTS, NEWS, INSTALL, VERSION,
6607 doc/Makefile. doc/pic.ms, groff/groff.man:
6608 Prepare for 1.11 release. No code changes.
6609 Documentation for pic added (doc/pic.ms).
6611 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
6613 * Version 1.10 released.
6615 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
6617 * afmtodit/afmtodit.pl: Avoid comment on first line.
6619 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
6621 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
6622 * configure.in: Call it.
6624 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
6625 (distfiles): Doesn't depend on config.log or config.cache.
6627 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
6629 * grog/grog.sh: Use print "" rather than print in END rule.
6631 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
6633 * tbl/main.cc (process_data): Don't give error for excess data
6634 entries that are comments.
6636 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
6638 * tbl/main.cc (process_data): Fix case where new for-scope rules
6639 silently change meaning of code.
6641 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
6643 * troff/env.cc (hyphenate): Loop over all consecutive sequences
6644 of non-zero hyphenation codes.
6646 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
6648 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
6650 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
6652 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
6654 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
6656 * tmac/tmac.andoc: Make it work in compatibility mode.
6658 * refer/token.h (token_info::is_range_sep): New function.
6659 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
6660 * refer/ref.cc (reference::output): More sophisticated check for
6663 * devps/prologue.ps (MANUAL): New procedure.
6664 * grops/ps.cc (main): New -m option.
6665 (usage): Include -m.
6666 (ps_printer::~ps_printer): Implement -m.
6668 * aclocal.m4 (GROFF_G): New macro.
6669 * configure.in: Call it.
6670 * Makefile.in (g): Provided by configure.
6672 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
6674 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
6677 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
6678 (tmac_m, tmac_s): Deleted.
6679 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
6680 tmac_s_prefix): New variables.
6681 (MDEFINES): Change accordingly.
6682 * Makefile.comm (.man.n): Use new TMAC_* variables.
6683 * configure.in (GROFF_TMAC): Call.
6684 * aclocal.m4 (GROFF_TMAC): Define.
6685 * tmac/Makefile.sub (stamp_wrap): New target.
6686 (install_data, uninstall_sub): Handle macro wrapping.
6688 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
6690 * tbl/main.cc (main): Ignore -T option.
6692 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
6694 * devlj4/generate/special.map: Add definition of \(nb.
6696 * tmac/tmac.dvi: Add definition of \(nb.
6698 * troff/dictionary.c (dictionary::dictionary): association::v gets
6699 initialized by association::association.
6701 * tmac/Makefile.sub: Avoid using temporary files when installing.
6703 * troff/env.cc (environment::set_font): Make bad font number a
6706 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
6708 * Makefile.in (datadir): Use share rather than lib.
6710 * groff/groff.cc (basename): Rename to xbasename.
6712 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
6714 * Makefile (CCLIBS): Don't use.
6715 * Makefile.ccpg: Likewise.
6717 * acgroff.m4: Rename to...
6718 * aclocal.m4: Modify extensively for autoconf 2.
6719 * configure.in: Likewise.
6720 * Makefile.in: Likewise.
6722 * groff/pipeline.c (const): Declare as empty if __STDC__ not
6724 (xstrsignal): Check for definition of NSIG. Conditionalize
6725 on SYS_SIGLIST_DECLARED. Make return type const.
6727 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
6729 * troff/input.cc (interpolate_macro): Rephrase missing space
6732 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
6734 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
6735 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
6736 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
6737 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
6738 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
6739 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
6740 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
6741 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
6742 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
6743 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
6744 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
6747 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
6749 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
6751 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
6753 (macro_iterator::macro_iterator): Add additional argument.
6755 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
6757 * troff/div.cc (vertical_size::vertical_size): In place of integer
6758 specifying line spacing use cunits specifying post vertical
6760 (macro_diversion::output, top_level_diversion::output): Likewise.
6761 * troff/div.h: Change declarations accordingly.
6762 * troff/env.cc (pending_output_line): Replace ls field by post_vs
6764 (pending_output_line::pending_output_line,
6765 pending_output_line::output, environment::output,
6766 environment::output_line, environment::output_title,
6767 environment::hyphenate_line): In place of
6768 integer specifying line spacing use cunits specifying post vertical
6770 (environment::environment): Add post_vertical_spacing and
6771 prev_post_vertical_spacing arguments.
6772 (environment::get_post_vertical_spacing): New function.
6773 (environment::total_post_vertical_spacing): New function.
6774 (environment::post_vertical_spacing): New function.
6775 (init_env_requests): Initialize pvs request and .pvs register.
6776 * troff/env.h: Change declarations.
6778 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
6780 * tmac/tmac.pspic: Immediately remove the temporary file.
6782 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
6784 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
6785 height is specified.
6787 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
6789 * tbl/table.c (struct vertical rule, class table_entry): Use int
6790 not short for start_row and end_row.
6792 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
6794 * troff/input.cc (trapping_blank_line, blank_line_macro): New
6796 (diverted_space_node::reread, process_input_stack): Call
6797 trapping_blank_line() rather than blank_line().
6798 (init_input_requests): Bind "blm" to blank_line_macro().
6800 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
6802 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
6804 * troff/env.cc (environment::possibly_break_line): Require that
6805 width total excluding width of final space node be greater than
6806 the target text length.
6808 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
6810 * troff/node.cc (kern_pair_node::vertical_extent): New function.
6812 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
6814 * troff/node.cc (charinfo_node): New class.
6815 (glyph_node, composite_node): Derive from charinfo_node. Change
6816 member functions accordingly.
6818 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
6820 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
6822 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
6824 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
6826 * devps/generate/textmap (notsubset): Add.
6828 * tmac/tmac.a4: New file.
6830 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
6832 * pic/main.cc (had_parse_error): New variable.
6833 (do_picture, do_whole_file): Set had_parse_error if yyparse()
6835 (main): Return 1 if had_parse_error is true.
6837 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
6839 * grolj4/lj4.cc (main): Avoid use of strtoul.
6841 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
6843 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
6844 iso_8859_1 or $LESSCHARSET is latin1.
6846 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
6848 * hpftodit: New directory.
6849 * Makefile.in (CCPROGDIRS): Add hpftodit.
6850 * devlj4/generate: New directory.
6852 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
6854 * configure.in: Don't use AC_VFORK.
6855 * groff/pipeline.c (run_pipeline): Use fork() always.
6857 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
6859 * grops/ps.cc (main): Use %1 not %s in error message for -w.
6861 * Makefile.in (CCPROGDIRS): Add grolj4.
6862 (DEVDIRS): Add devlj4.
6863 * grolj4, devlj4: New directories.
6864 * tmac/troffrc: Handle lj4.
6865 * tmac/tmac.lj4: New file.
6867 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
6869 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
6871 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
6873 * troff/input.cc (do_if_request): At end of second string, switch
6874 environments before getting next token.
6876 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
6878 * devps/psstrip.sed: Split rule that strips whitespace on either
6881 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
6883 * troff/node.h (font_family::make_definition): Add return value to
6884 declaration. * troff/symbol.h (symbol::operator==,
6885 symbol::operator!=): Likewise.
6887 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
6889 * groff/groff.cc (main, help, synopsis): Handle -S.
6890 (possible_command::insert_arg): New function.
6892 * tmac/tmac.safer: New file.
6893 * tmac/msafer.man: New file.
6894 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
6896 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
6898 * pic/pic.h, pic/main.cc (safer_flag): New variable.
6899 * pic/pic.y (placeless_element): Avoid unsafe operations if
6900 `safer_flag' is set.
6901 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
6903 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
6905 * eqn/lex.cc (get_token): Put call to add_context() in block to
6906 work around Sun C++ 4.0 bug.
6908 * include/stringclass.h (operator +): Use ?: instead of `if' to
6909 work around Sun C++ 4.0 bug.
6911 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
6913 * tbl/main.cc (process_format): Accept - as a synonym for the _
6916 * libbib/index.cc (minus_one): Don't declare as const.
6918 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
6920 * troff/input.cc (get_char_for_escape_name): Push back a newline.
6922 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
6924 * troff/input.cc (write_macro_request): New function.
6925 (init_input_requests): Bind write_macro_request to writem.
6927 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
6929 * tmac/tmac.s (@EN): Turn filling back on even if there was no
6932 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
6934 * tmac/tmac.s (@TS): Renamed from TS.
6935 (TS): Call LP then TS again.
6936 (cov*ab-init): Alias @TS to TS.
6938 * tmac/tmac.s: Allow QP or RS to initialize.
6940 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
6941 Move initializations of PS and LL here.
6942 (par@init): Don't initialize HY. Avoid changing environment 0.
6943 (par*env-init): Don't all par@reset.
6945 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
6947 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
6949 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
6951 * Makefile.in (MDEFINES): Add LDFLAGS.
6952 (LDFLAGS): Add definition line.
6954 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
6956 * troff/input.cc (get_optional_char): Split off error check into...
6957 (check_missing_character): New function.
6958 * troff/token.h: Declare it.
6959 * troff/env.cc (margin_character): Don't call get_optional_char.
6960 Only call tok.next() after making the node.
6962 * include/lib.h (getopt): Make 2nd argument char *const *.
6964 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
6966 * nroff/conftest.sh: Deleted.
6968 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
6970 * pic/make-dos-dist: Deleted.
6972 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
6974 * devps/psstrip.sed: Strip comments before stripping trailing
6977 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
6979 * Version 1.09 released.
6981 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
6983 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
6985 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
6987 * libgroff/font.cc (font::load_desc): Fix typo in error message.
6989 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
6991 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
6992 about returning without a value.
6994 * troff/charinfo.h (charinfo::get_special_translation): Cast
6995 TRANSLATE_NONE to int.
6997 * refer/token.cc (lookup_token, store_token): Remove bogus loop
6998 test. Fix test so that it works with n unsigned.
7000 * pic/pic.y (defaults_table): Fully bracket initializer.
7001 * pic/lex.cc (lookup_keyword): Likewise.
7002 * eqn/lex.cc (token_table, def_table): Likewise.
7003 * eqn/box.cc (param_table): Likewise.
7004 * troff/input.cc (warning_table): Likewise.
7005 * libgroff/font.cc (table): Likewise.
7006 * grops/ps.cc (ps_printer::special): Likewise.
7007 * grops/psrm.cc (resource_manager::process_file): Likewise.
7008 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
7009 * refer/command.cc (command_table): Likewise.
7010 * addftinfo/addftinfo.cc (param_table): Likewise.
7012 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
7013 about temp's being unused.
7014 (unused): New function.
7016 * groff/pipeline.cc: Declare c_fatal.
7018 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
7021 * libbib/index.cc (index_search_item::load): Prevent compiler
7022 warnings about fd_closer's being unused.
7023 (unused): New function.
7025 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
7027 * troff/input.cc (copy_mode_error): Make `prefix' static.
7030 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
7032 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
7033 HAVE_CC_OSFCN_H and modify accordingly.
7035 * troff/input.cc (init_charset_table): radicalex overlaps
7038 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
7039 udodo!hans@relay.NL.net).
7040 * groff/configure.in: Call it.
7042 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
7043 * groff/configure.in: Call it.
7044 * include/lib.h: Conditionalize declaration of pclose.
7046 * troff/div.cc (last_page_number): New global variable.
7047 (top_level_diversion::begin_page): Exit if we just printed the
7049 * troff/div.h (last_page_number): Declare it.
7050 * troff/input.cc (parse_output_page_list): Set last_page_number.
7052 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
7053 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
7054 tmac/tmac.X: Likewise.
7055 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
7056 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
7058 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
7060 * tmac/doc-ditroff (hK): Remove groff specific code which
7061 prevented page-breaks between separate manual entries. If this is
7062 the first page, don't set the page number to 1.
7064 * acgroff.m4 (GROFF_POSIX): New macro.
7065 * configure.in: Use it.
7067 * troff/node.cc (class real_output_file,
7068 real_output_file::real_output_file,
7069 real_output_file::~real_output_file): Conditionalize use of
7070 popen/pclose on POPEN_MISSING.
7071 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
7072 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
7073 (pipe_source): Similarily.
7075 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
7077 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
7078 presence of declarations by trying to compile example with
7079 conflicting declarations. (gcc only gives a warning for missing
7082 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
7084 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
7085 (from Ulrich Lauther).
7087 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
7089 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
7091 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
7093 * indxbib/indxbib.cc (write_hash_table): Add code for case where
7094 pointers and ints have different sizes.
7096 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
7098 * tmac/tmac.s (par*env-init): Call par@reset.
7100 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
7102 * tmac/tmac.s (@IP): Switch to a new environment when diverting
7104 (par*push-tag-env, par*pop-tag-env): New macros.
7106 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
7108 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
7109 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
7111 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
7112 comment. Include <time.h>.
7114 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
7116 * grops/ps.cc (is_small_h, is_small_v): Deleted.
7117 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
7120 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
7122 * troff/input.cc (read_request): Only print a prompt if reading
7123 from the terminal. Also clearerr on EOF if reading from the
7124 terminal. Declare isatty.
7126 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
7128 * refer/label.y: Rename map_t to map_func and extractor_t to
7131 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
7133 * include/assert.h: Don't use volatile.
7134 * libgroff/assert.cc: Likewise.
7136 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
7138 * troff/input.cc (abort_request): Look at character in tok before
7141 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
7143 * troff/troff.h (NO_RETURN): Deleted.
7144 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
7145 * troff/input.cc (exit_troff): Likewise
7147 * Makefile.in: Remove `Making ...' messages since GNU make now
7150 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
7152 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
7154 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
7157 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
7159 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
7161 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
7163 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
7164 MARK_REG if there was no left delimiter.
7166 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
7168 * pic/troff.cc (troff_output::text): Set line thickness to
7169 relative before outputting text.
7171 * tmac/tmac.e (@k): Don't zero ?T.
7174 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
7176 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
7178 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
7180 * troff/input.cc (decode_args): Warn about unquoted tabs (from
7183 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
7185 * troff/input.cc (ignoring): New variable.
7186 (ignore): Set ignoring during call to do_define_macro.
7187 (do_define_macro): Clear ignoring before interpolating terminating
7189 (copy_mode_error): New function.
7190 (get_char_for_escape_name, read_long_escape_name,
7191 interpolate_arg): Use copy_mode_error.
7192 (warning_table): Add WARN_IG.
7193 * troff/troff.h (WARN_IG): Declare.
7194 (WARN_TOTAL): Change accordingly.
7196 * groff/pipeline.c (strsignal): Rename to xstrsignal.
7197 * groff/groff.cc (strsignal): Delete declaration.
7199 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
7201 * troff/div.cc (page_offset): Use 'm' as default scaling.
7203 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
7205 * nroff/nroff.sh: Ignore -u.
7207 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
7209 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
7211 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
7213 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
7215 (B2): With -Tascii, leave additional vertical space before
7216 and after. Ensure that the left and right indent is restored to
7217 what it was even if the point size changes. Don't call
7218 par@finish. Change the indent, line length and title length
7219 directly. With -Tascii, make the width of the box 1n less.
7220 (B1): Remember 1n at the current point size. Don't call
7221 par@reset. Change the indent, line length and title length
7222 directly. Ensure that the temporary indent is preserved.
7223 (par*box-mark-top): Turn off no spacing mode.
7225 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
7227 * Makefile.in (dist): Use .gz suffix.
7229 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
7231 * troff/input.cc (main): Add return 0.
7232 * pic/main.cc (main): Use return instead of exit.
7233 * tbl/main.cc (main): Likewise.
7234 * eqn/main.cc (main): Likewise.
7235 * grops/ps.cc (main): Likewise.
7236 * grotty/tty.cc (main): Likewise.
7237 * groff/groff.cc (main): Likewise.
7238 * grodvi/dvi.cc (main): Likewise.
7239 * refer/refer.cc (main): Likewise.
7240 * indxbib/indxbib.cc (main): Likewise.
7241 * lkbib/lkbib.cc (main): Likewise.
7242 * soelim/soelim.cc (main): Likewise.
7243 * addftinfo/addftinfo.cc (main): Likewise.
7244 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
7245 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
7247 * troff/token.h (process_input_stack): Don't declare as static.
7248 * troff/input.cc: Likewise.
7250 * troff/node.c (invalidate_fontno): Make it a static member of
7251 class font_family. Change callers.
7252 * troff/node.c: Change declaration.
7254 * tbl/main.cc (struct input_entry_format): Add explicit public
7256 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
7257 struct double_hline_stuff): Likewise.
7258 * tbl/table.h (struct entry_format): Likewise.
7259 * pic/object.h (struct saved_state): Likewise.
7261 * include/stringclass.h: Add forward declarations of friend
7262 functions that are later declared as inline. Don't include inline
7263 specifier in friend declaration.
7265 * libgroff/lib.h: Declare popen and pclose.
7266 * acgroff.m4 (GROFF_POPEN): New macro.
7267 * configure.in: Call it.
7269 * include/lib.h (PI): New constant. Undef first if necessary.
7270 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
7271 * grops/ps.cc (degrees, radians): Likewise.
7272 * libgroff/font.cc (font::get_skew): Likewise.
7274 * grops/ps.cc (is_ascii): New function.
7275 (ps_output::put_string): Use is_ascii. Use csprint rather than
7277 (ps_printer::define_encoding): Use csspace.
7278 * libgroff/strtol.c (ISASCII): New macro.
7279 (strtol): Cast arguments to is*() and tolower() to unsigned char.
7280 Use ISASCII rather than isascii.
7281 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
7282 * libgroff/cset.cc: Likewise.
7283 * libdriver/input.cc: Include cset.h.
7284 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
7287 * refer/refer.cc (main): Use %ld rather than %d for longs.
7289 * libbib/index.cc (index_search_item_iterator::get_tag): Use
7292 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
7294 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
7296 * troff/input.cc (hyphenation_code): Skip white space between
7299 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
7301 * tbl/table.h (table::entry_list_tailp): New member.
7302 (table::table): Initialize it.
7303 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
7306 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
7308 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
7309 with negative horizontal positions. Remove casts of glyph::hpos to
7311 (USHRT_MAX): Delete definition.
7312 (SHRT_MAX, SHRT_MIN): New definitions.
7313 (glyph::hpos): Change type to short.
7314 (tty_printer::end_page): Output multiple backspaces if necessary.
7315 Remove casts of glyph::hpos to int.
7317 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
7319 * tmac/tmac.s (@RT): New definition.
7321 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
7323 * refer/refer.cc (do_file): Make sure current_filename is set when
7326 * pic/common.cc (common_output::dot_line): Handle zero length
7329 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
7331 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
7332 (par@init): Initialize \n[HY].
7334 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
7336 * troff/dictionary.cc (dictionary::remove): Continue when
7339 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
7341 * Makefile.com (.y.cc): Avoid ending up with two versions of
7344 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
7346 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
7347 (\(,C): Likewise. Also fix typo.
7349 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
7351 * lib.h: Delete extraneous semi-colon.
7353 * Add pso request: `so' from a pipe.
7354 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
7355 (file_iterator::close): New function.
7356 (file_iterator::~file_iterator, file_iterator::next_file): Use
7357 file_iterator::close.
7358 (file_iterator::backtrace): Say `process' rather than `file' when
7359 the stream is popened.
7360 (pipe_source): New function.
7361 (init_input_requests): Bind ".pso" to pipe_source.
7363 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
7365 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
7367 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
7368 digits in lower case.
7370 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
7372 * Version 1.08 released.
7374 * Makefile.in (dist): Insert || true after ln -s commands that
7377 * mm: Update to mm 1.16.
7379 * acgroff.m4 (GROFF_CSH_HACK): New macro.
7380 * configure.in: Call GROFF_CSH_HACK. Substitute for
7382 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
7384 * nroff/Makefile.sub (nroff): New target.
7385 (install_data): Install nroff.
7386 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
7387 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
7389 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
7391 * eqn/Makefile.sub (neqn): Add chmod +x.
7393 * grog/Makefile.sub (grog): Remove spurious semi-colon.
7395 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
7397 * troff/input.cc (string_iterator::string_iterator()): Initialize
7400 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
7402 * troff/div.cc (macro_diversion::space,
7403 top_level_diversion::space): Don't set high_water_mark.
7404 (macro_diversion::output, top_level_diversion::output): Don't
7405 include post line space in high water mark.
7407 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
7409 * eqn/eqn.y: Don't define YYDEBUG.
7410 * pic/pic.y: Likewise.
7412 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
7414 * tmac/tmac.e ([3): Add space after comma following editors.
7415 Change double spaces to single spaces.
7416 ([4): Change double spaces to single spaces.
7418 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
7419 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
7420 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
7421 after %!PS-Adobe- (for Newsprint).
7423 * troff/div.cc (top_level_diversion::begin_page): When
7424 before_first_page is 1, set page_number to 1.
7426 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
7428 * eqn/box.cc (box::top_level): Protect equation with \&.
7430 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
7432 * groff/groff.cc (possible_command::set_name): Delete old name.
7434 * groff/groff.cc (possible_command::~possible_command): Use
7437 * troff/node.cc (troff_output_file::begun_page): New member.
7438 (troff_output_file::troff_output_file): Initialize it.
7439 (troff_output_file::really_begin_page): Only output V command if a
7440 page has been begun.
7442 * pic/pic.y (placeless_element): Delete argument to PRINT after
7445 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
7447 * Make wrapman work.
7448 * troff/div.h (class top_level_diversion): Replace
7449 first_page_begun by before_first_page (with opposite sense).
7450 * Change first_page_begun to before_first_page inverting sense.
7451 * troff/div.cc (class nl_reg): New class.
7452 (init_div_requests): Use class nl_reg for \n(nl.
7453 (top_level_diversion::begin_page): Don't call
7454 output_file::begin_page if before_first_page is 2;
7455 reset before_first_page afterwards. If have_next_page_number is
7456 false, then always increment page_number.
7457 * tmac/tmac.an: Set traps within TH rather than at the top-level.
7458 Restore compatibility mode after loading, and then disable
7459 compatibility mode in TH.
7461 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
7463 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
7465 * troff/node.h (output_file::trailer): Declare.
7466 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
7467 * troff/node.cc (output_file::trailer): New function.
7468 (troff_output_file::~troff_output_file): Move most code into...
7469 (troff_output_file::trailer): New function.
7470 (class troff_output_file): Delete page_length member. Declare
7472 (troff_output_file::really_begin_page): Use current page length
7473 for final V command.
7475 * tbl/main.cc (struct options): New decimal_point_char member.
7476 (options::options): Initialize this.
7477 (process_options): Implement decimalpoint option.
7478 (process_data): Pass decimal_point_char option to table::table.
7479 * tbl/table.h (class table): New decimal_point_char member.
7480 (table::table): Add additional argument.
7481 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
7482 second argument specifying decimal point character. Use this
7484 (table::table): Initialize decimal_point_char.
7485 (table::add_entry): Change call to find_dot.
7487 * troff/input.cc (get_copy, token::next): Implement \V.
7488 (interpolate_environment_variable): New function.
7490 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
7492 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
7493 * pic/pic.y: Likewise.
7495 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
7497 * refer/ref.cc (reference::insert_field, reference::delete_field):
7499 * troff/number.cc (parse_term): Likewise.
7501 * acgroff.m4 (GROFF_PROG_YACC): New macro.
7502 * configure.in: Use GROFF_PROG_YACC.
7504 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
7506 * Makefile.in (OPTIMIZE): New define.
7507 (DEBUG): Empty by default.
7508 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
7510 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
7511 (GROFF_ARRAY_DELETE): Likewise.
7512 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
7514 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
7516 * devps/psstrip.sed: Use different delimiter on last line (so that
7517 it works with BSD 4.4 sed.)
7519 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
7521 * devps/psstrip.sed: Delete comments.
7523 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
7524 optind, opterr, optarg.
7525 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
7528 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
7530 * Makefile.in (check): Dummy target.
7532 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
7534 * Version 1.07 released.
7536 * Integrate mm 1.11.
7538 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
7539 where start_col was meant.
7541 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
7543 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
7545 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
7547 * troff/input.cc (token::next): Make \z\o'...' and similar things
7550 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
7552 (environment): Add margin_character_flags member.
7553 * env.cc (environment::environment(symbol),
7554 environment::environment(const environment *): Initialize
7555 margin_character_flags.
7556 (margin_character): Rewrite.
7557 (environment::output_line): Add a margin character if
7558 margin_character_flags is non-zero. Turn off the
7559 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
7560 zero, use margin_character_node without copying and then set
7561 margin_character_node to 0.
7563 * devps/DESC.in: Change minimum size to 1000.
7565 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
7567 * troff/symbol.h (symbol::hash): Change return type to unsigned
7569 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
7572 * test-groff: Use -r rather than -x.
7574 * grops/psfig.diff: Include in distribution again.
7576 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
7578 * Makefile.in (dist): Use gzip.
7580 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
7582 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
7583 unistd.h as well as in stdlib.h.
7584 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
7585 defined; otherwise include <sys/types.h> and <unistd.h> if
7586 UNISTD_H_DECLARES_GETOPT is defined.
7588 * configure.in: use builtin(include, ... rather than include(...
7589 * configure: Regenerate with autoconf 1.3.
7591 * libdriver/print.cc (printer::adjust_arc_center): Use new
7592 algorithm suggested by Andy Fyfe.
7594 * libdriver/printer.cc (printer::adjust_arc_center): New function.
7595 * include/printer.h: Declare this.
7596 * grops/ps.cc (ps_printer::draw): Use it.
7597 * grodvi/dvi.cc (dvi_printer::draw): Use it.
7599 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
7601 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
7603 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
7605 * eqn/main.cc (main): Handle "eqn -".
7607 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
7609 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
7611 * mm: Integrate version 1.08.
7613 * pic/troff.cc (troff_output::finish_picture): Set
7614 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
7615 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
7616 if it's not defined. Check whether the register is non-zero rather
7617 than whether it's not defined.
7618 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
7620 * indxbib/indxbib.cc: Move all signal handling into...
7621 * indxbib/signal.c: New file.
7622 * configure.in: Call AC_RETSIGTYPE.
7624 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
7625 * configure.in: Call GROFF_STRUCT_EXCEPTION.
7626 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
7628 * troff/input.cc (token::token, token::operator=): Work round SGI
7630 * pic/object.cc (position::position): Likewise.
7632 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
7634 * pic/pic.h: Move declaration of hypot().
7636 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
7638 * pic/pic.h: Declare hypot().
7640 * pic/pic.h: Define M_PI if necessary.
7642 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
7644 * tmac/tmac.e (re): Add alternative version that doesn't use groff
7647 * devps/prologue.ps (RE): Handle the possibility that the old font
7648 doesn't have a FontName entry.
7650 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
7652 * tmac/tmac.e (fam): Redefine to set family in environment 2.
7653 (@C): Use @fam not fam.
7655 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
7657 * lookbib/lookbib.cc (main): Change type of start to const char *.
7658 * lkbib/lkbib.cc (main): Likewise.
7660 * eqn/lex.cc (definition::definition): Don't use member
7661 initializer syntax for members of anonymous unions.
7663 * troff/input.cc (input_stack::backtrace): Change type of to const
7666 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
7668 * include/stringclass.h (class string): Declare inline friend
7669 functions as inline in class declaration.
7670 * troff/hvunits.h (class hunits, class vunits): Likewise.
7671 * include/refid.h (class reference_id): Likewise
7672 * troff/troff.h (points_to_units(units), scale(units, double)):
7673 Delete declarations.
7674 * libdriver/input.cc (get_char): Delete declaration.
7675 * include/lib.h: Change 2nd argument of getopt from const char **
7677 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
7678 char **' before assigning to a `const char **'.
7679 * tbl/table.cc: Delete extra declarations of prints().
7681 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
7683 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
7684 char **' before assigning to a `const char **'.
7686 * libgroff/errarg.cc (errarg::errarg): Don't use member
7687 initializer syntax for members of anonymous unions.
7689 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
7691 * mm: Integrate version 1.07.
7693 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
7695 * troff/input.c (translate2): Rename to
7696 (translate_no_transparent).
7697 (init_input_requests): Rename tr2 to trnt.
7699 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
7701 * troff/charinfo.h (class charinfo): Add transparent_translate field.
7702 (charinfo::set_translation, charinfo::set_special_translation):
7703 Add second argument that specifies value for
7704 transparent_translate.
7705 (charinfo::get_translation, charinfo::get_special_translation):
7706 Add optional second argument that specifies whether translation is
7707 being used for transparent throughput.
7708 * troff/input.cc (charinfo::set_translation,
7709 charinfo::set_special_translation): Handle second argument.
7710 (charinfo::charinfo): Initialize transparent_translate.
7711 (translate): Split main part off into
7712 (do_translate): New function. Pass argument saying whether
7713 translation applies to transparent throughput.
7714 (translate2): New request.
7715 (init_input_requests): Bind translate2 to `tr2'.
7717 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
7719 * tbl/table.h (class table): Add `nokeep' flag.
7720 * tbl/main.cc (process_options): Handle `nokeep' option.
7721 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
7722 table::do_bottom): Don't output keep/release macro definitions or
7723 calls when `nokeep' option has been specified.
7725 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
7727 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
7729 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
7731 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
7732 block_entry::divert, alphabetic_block_entry::divert): Add extra
7733 argument giving column separation.
7734 (table::compute_widths): Pass column separation to
7735 table_entry::divert().
7736 (block_entry::do_divert): If an entry spans multiple columns and a
7737 minimumum width has been specified for each column, then set the
7738 line length to the sum of the widths (plus possibly the column
7741 * troff/input.cc (set_escape_char): Don't set the escape_char
7742 until after calling has_arg().
7744 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
7746 * tbl/table.cc (table::do_top): Add missing \s0 for double box
7749 * tbl/table.cc (table::print_double_hline): Avoid extra new line
7750 in case where r > nrows - 1.
7752 * tbl/table.cc (BODY_HEIGHT): Deleted.
7753 (LINE_SEP): New definition.
7754 (table::print_single_hline, table::print_double_hline,
7755 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
7756 table::do_row, table::do_top): Use LINE_SEP space before a line
7757 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
7759 * tbl/table.cc (text_entry::print_contents): New function.
7760 (text_string_name, right_text_string_name): Deleted.
7761 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
7762 (simple_text_entry::do_width, numeric_text_entry::do_width,
7763 alphabetic_text_entry::do_width): Don't store the contents of the
7765 (left_text_entry::simple_print, right_text_entry::simple_print,
7766 center_text_entry::simple_print,
7767 alphabetic_text_entry::simple_print,
7768 numeric_text_entry::simple_print): Print the entry directly
7769 instead of using the stored string.
7771 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
7773 * devps/Makefile: Strip PostScript files.
7774 * devps/prologue: Rename to...
7775 * devps/prologue.ps.
7776 * devps/psstrip.sed: New file.
7777 * devps/download: Use .pfa rather than .ps for installed versions
7780 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
7782 * troff/env.cc (input_trap): Give a warning if the argument is out
7785 * troff/env.cc (adjust): Treat negative argument as missing. Round
7786 argument > 5 down to 5.
7788 * troff/env.cc (center, right_justify): Make negative argument zero.
7790 * troff/div.cc (page_offset, vertical_position_traps): Treat
7791 invalid argument as missing.
7792 * troff/env.cc (line_spacing, line_length, title_length, indent,
7793 underline, hyphen_line_max_request, control_char,
7794 no_break_control_char, widow_control_request, adjust, input_trap,
7795 point_size): Likewise.
7796 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
7797 constant_space): Likewise.
7798 * troff/input.cc (compatible, shift, warn_request,
7799 set_escape_char): Likewise.
7801 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
7802 * tbl/table.cc (table::table): Likewise.
7804 * Makefile.dev (install_dev): depends on $(DEVFILES).
7806 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
7808 * devX75, devX75-12, devX100, devX100-12: New directories.
7809 * Makefile.in: Add these to DEVDIRS.
7811 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
7812 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
7813 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
7814 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
7816 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
7817 (uninstall): New target.
7818 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
7819 uninstall_prog, uninstall_dev): New targets.
7821 * troff/div.cc (return_request): Treat an invalid argument as
7824 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
7826 * tmac/tmac.e ((f): Set up the environment even when there's a
7827 current diversion. Transperently throughput a call to @N.
7830 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
7832 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
7833 up to vertical resolution.
7835 * tbl/table.cc (table::do_row): Change row number after printing
7838 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
7840 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
7842 * Rename CHANGES to NEWS.
7844 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
7846 * libgroff/new.cc (operator new): Avoid calling malloc(0).
7848 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
7850 * man.ultrix: Removed.
7852 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
7854 * Makefile.comm (extraclean): Delete files whose names begin with
7857 * pic/troff.cc (troff_output::text): Fix typo in implementation of
7860 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
7862 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
7863 * troff/div.cc (page_length, need_space, space_request): Treat
7864 invalid optional argument as missing.
7865 * troff/env.cc (number_lines): If the first argument is present
7866 but not a number, turn on line numbering, don't change the next
7867 line number and parse the remaining arguments.
7869 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
7871 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
7873 * eqn/box.h: Change declaration accordingly.
7874 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
7875 the specified size was bad but don't give an error. Check for
7877 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
7878 * eqn/lex (do_size): Likewise.
7880 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
7882 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
7885 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
7887 * tbl/table.cc (table::init_output): Improve error message when
7888 table won't fit on one page.
7890 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
7892 * pic/troff.cc (troff_output::start_picture): Generate line
7893 containing a horizontal motion equal to the width of the picture.
7895 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
7896 using GROFF_COMMAND_PREFIX environment variable.
7898 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
7900 * mdate.sh: Use $NF rather than $(NF).
7902 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
7904 * pic/main.cc (main): Use %1 not %c in argument to warning.
7906 * eqn/main.cc (main): Output code to check that geqn was given the
7909 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
7911 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
7912 `ln -s ../Makefile .; make; rm -f Makefile'.
7914 * troff/hyphen: Rename to...
7916 * troff/input.cc (main): Delete -H option. Don't call
7918 * troff/env.cc: Include searchpath.h and macropath.h.
7919 (exception_dictionary): Deleted.
7921 (read_hyphen_file): Deleted.
7922 (hyphenation_language): New struct.
7923 (class trie, class hyphen_trie): Move declarations up.
7924 (trie_node::~trie_node): Deleted.
7925 (trie::delete_trie_node): New function.
7926 (trie::do_delete): New pure virtual function.
7927 (hyphen_trie::do_delete): New function.
7928 (trie::~trie): New function.
7929 (hyphen_trie::~hyphen_trie): New function.
7930 (trie::clear): No need to chcek that tp is not 0.
7931 (current_language, language_dictionary): New variables.
7932 (hyphen_word): Give an error if no current language. Use
7933 exceptions dictionary in current language.
7934 (hyphen_trie::read_patterns_file): Find file using macro_path.
7935 Allow comments (starting with %) in patterns file. Don't make it
7936 a fatal error if the file can't be found.
7937 (hyphenate): Return if no current language. Get the exceptions
7938 dictionary and the hyphenation patterns from the current language.
7939 (set_hyphenation_language): New variable.
7940 (hyphenation_patterns_file): New function.
7941 (hyphenation_language_reg): New class.
7942 (hyphenation_language_reg::get_string): New function.
7943 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
7944 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
7946 * groff/groff.cc (main, help, synopsis): Delete -H option.
7947 * include/Makefile.sub: Don't define HYPHENFILE.
7948 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
7949 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
7950 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
7951 hyphenation patterns.
7953 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
7955 * eqn/neqn.sh: New file.
7956 * eqn/Makefile.sub: Handle neqn.sh.
7958 * eqn/eqn.h: Declare `nroff' variable.
7959 * eqn/box.cc (param_table): Add `nroff' param.
7961 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
7963 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
7965 * troff/troff.h (WARN_FONT): New warning.
7966 (WARN_TOTAL): Change accordingly.
7967 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
7968 (warning_table): Add WARN_FONT.
7969 * troff/node.cc (mount_font_no_translate): Pass argument to
7970 font::load_font. If this is non-zero, give a warning.
7971 Don't give an error message when accessing a font that has already
7972 been found to be invalid.
7973 * include/font.h (font::load, font::load_font): Add additional
7974 optional argument which suppresses error message if the font is
7976 * libgroff/font.cc (font::load_font): Handle additional argument.
7977 (font::load): Add additional argument. If this is non-null, set it
7978 to 1 and don't give error message.
7980 * include/printer.h (printer::end_page): Add argument giving
7982 * libdriver/input.cc (do_file): Pass this.
7983 * grops/ps.cc (ps_printer::end_page): Add argument.
7984 * grodvi/dvi.cc (dvi_printer::end_page,
7985 draw_dvi_printer::end_page): Add argument.
7986 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
7987 columns_per_page members. New member nlines.
7988 (DEFAULT_LINES_PER_PAGE): Deleted.
7989 (tty_printer::tty_printer): Don't compute lines_per_page from
7990 font::paperlength. Don't compute columns_per_page from
7992 (tty_printer::add_char): Don't check horizontal position against
7993 columns_per_page. Grow glyphs vector if neccessary.
7994 (tty_printer::end_page): Add argument giving page_length in units.
7995 Discard lines past end of page.
7997 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
7999 * tmac/tmac.tty-char: Fix definition of \(/l.
8001 * tmac/tmac.X: Define \(en.
8003 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
8005 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
8006 lpq, then use lp rather than lpr.
8008 * tmac/tmac.s (par@reset): Don't call `ad'.
8009 (par*env-init): Call `ad'.
8011 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
8013 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
8016 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
8017 * indxbib/indxbib.cc: Likewise.
8019 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
8021 * libgroff/putenv.c: New file.
8022 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
8023 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
8024 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
8025 stdlib.h with AC_HAVE_HEADERS.
8027 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
8029 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
8032 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
8034 * eqn/box.cc (gsize): Make it an int.
8035 (set_gsize): Parse argument handling increment or decrement.
8036 (box::top_level): Convert gsize to a string.
8038 * troff/input.cc (exit_troff): Make buf unsigned char [].
8039 Call to make_temp_iterator casts buf to char*.
8041 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
8043 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
8044 * Makefile.cpg (depend.temp): Likewise.
8046 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
8048 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
8050 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
8052 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
8054 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
8056 * Version 1.06 released.
8058 * Integrate mm 1.04.
8060 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
8062 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
8064 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
8066 * afmtodit/afmtodit.pl: Add -n option that disables generation of
8068 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
8069 afmtodit. Regenerate.
8071 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
8072 @f back past the current position.
8074 * tmac/tmac.e: Change calls to @R so that comments are not part of
8077 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
8079 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
8081 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
8082 check that we can link a call to a function declared in <stdio.h>.
8083 (GROFF_UNISTD_H): New macro.
8084 * configure.in: Call it.
8085 * Makefile.in: Document it.
8086 * include/posix.h: New file.
8087 * troff/troff.h: Don't include <osfcn.h>
8088 * troff/input.cc: Include posix.h.
8089 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
8091 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
8092 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
8094 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
8095 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
8096 * libbib/search.cc (O_RDONLY): Delete definition.
8097 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
8098 Don't include <osfcn.h>.
8100 * acgroff.m4 (GROFF_TIME_T): New macro.
8101 * configure.in: Call it.
8102 * Makefile.in: Document it.
8104 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
8105 * configure.in: Call it.
8106 * Makefile.in: Document -DTRADITIONAL_CPP.
8107 * include/ptable.h: Don't include generic.h.
8110 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
8111 Afterwards remove [T1 and [T2.
8112 (ref*spec!0, ref*spec!2): Use T1 rather than T.
8113 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
8114 (ref*add-T2): Renamed from ref*add-T.
8115 (ref*add-T1): New macro.
8117 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
8119 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
8121 * libbib/index.cc: Include <fcntl.h>.
8122 (O_RDONLY): Define if necessary.
8123 (make_index_search_item, index_search_item_iterator::get_tag,
8124 index_search_item::check_files): Use O_RDONLY.
8125 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
8126 (O_RDONLY): Define if necessary.
8127 (search_list::add_file): Use O_RDONLY.
8128 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
8130 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
8133 * libbib/index.cc (S_ISREG): Define it if necessary.
8134 (index_search_item::load): Use S_ISREG.
8136 * include/driver.h: Include <errno.h>.
8138 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
8140 * eqn/box.cc (body_height): Increase default value to 85.
8141 (body_depth): Increase default value to 35.
8143 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
8145 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
8146 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
8147 protected from expansion with \E.
8149 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
8151 * Makefile (Makefile): New target.
8153 * Makefile.sub (configure, distfiles): New targets.
8155 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
8158 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
8160 * eqn/box.cc (param_table): Add body_height and body_depth.
8162 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
8164 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
8166 * psbb/Makefile.sub: Don't link with libgroff.a.
8168 * acgroff.m4 (GROFF_PUTENV): New macro.
8169 * configure.in: Call GROFF_PUTENV.
8170 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
8171 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
8174 * troff/env.cc (distribute_space): Rename force_forward argument
8175 to force_reverse. Reverse the list if force_reverse is true.
8177 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
8179 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
8181 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
8182 height or depth to be negative. Guard against SUP_RAISE quantity
8185 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
8187 * devps/generate/textmap: Add `an' (arrowhorizex).
8188 * tmac/tmac.ps: \(an overlaps horizontally.
8189 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
8191 * devps/symbolchars: Add arrowverttp, arrowvertbt.
8192 * devps/textmap: Add arrowvertex.
8193 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
8194 updownarrow delimiters.
8195 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
8197 * tbl/table.cc (simple_entry::position_vertically,
8198 block_entry::position_vertically): For a centered entry, perform
8199 the motion in two stages.
8201 * refer/refer.cc (split_punct): Don't call lookup_token if there
8204 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
8206 * troff/input.cc (token::next): Delete token_node after copying
8209 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
8212 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
8214 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
8216 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
8218 * grops/ps.cc (usage): -b option takes an argument.
8220 * devps/prologue (PLG): New procedure.
8221 * grops/ps.cc (main, usage): New -g option.
8222 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
8225 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
8227 * include/cset.h: Include <limits.h> if we have it.
8229 * libgroff/illegal.cc: New file.
8230 * include/lib.h (illegal_input_char): Use table.
8231 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
8232 * pic/lex.cc (ARG1): Renumber to 14.
8233 * eqn/lex.cc (ARG1: Likewise.
8235 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
8236 (eg 1.05.90) correctly.
8238 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
8240 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
8241 Rename $r and $R registers to $v and $V.
8242 ($r, $R): Initialize to 0.
8243 (@v, @V): New macros.
8247 * troff/input.cc (main, usage): Add -R option that says not to
8249 * eqn/main.cc (main, usage): Rename -n to -R.
8251 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
8253 * devps/DESC.in: Leave font positions 5-9 blank.
8254 * devdvi/DESC.in: Likewise.
8256 * grog/grog.pl: Handle `.PS <file' correctly.
8258 * troff/input.cc (input_stack::push): Improve error message when
8259 input stack limit exceeded.
8261 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
8263 * refer/refer.cc (main): Fix typo in handling of `a' option.
8265 * refer/refer.cc (do_bib): In state START after a newline remain
8268 * groff/groff.sh: Deleted.
8269 * groff/Makefile.sub: Delete handling of groff.sh.
8271 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
8272 to determine whether to use \X'ps:...'.
8273 * tmac/troffrc: Set 0p register to 0.
8274 * tmac/tmac.ps: Set 0p register to 1.
8276 * groff/groff.cc: Support -X option. Give warning for -TXps and
8277 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
8278 * tmac/troffrc: Support -r.X=1.
8280 * pic/troff.cc (troff_output::dot): Don't test
8281 zero_length_line_flag.
8283 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
8285 * include/lib.h: Declare getopt() and friends unless
8286 STDLIB_H_DECLARES_GETOPT is defined.
8288 * doc/chars.tr: Delete.
8289 * man/groff_char.man: New file.
8291 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
8293 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
8294 user has changed register format.
8296 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
8298 * groff/groff.cc: Get rid of device_table. Get postprocessor from
8299 `postpro' command in DESC file. Get spooler command from `print'
8300 command in DESC file. Execute spooler command with /bin/sh.
8302 * groff/groff.cc: Split Unix-specific parts into...
8303 * groff/pipeline.c: New file.
8306 * COPYING: New file.
8307 * all files: Update copyright notices.
8309 * Rearrange files. Redo Makefiles. Use autoconf.
8311 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
8313 * troff/input.c (charinfo_to_node_list): Interpret character
8314 definition with escape_char of `\'.
8316 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
8318 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
8319 Define INT_DIGITS as big enough for 64-bit integer.
8320 * lib/strtol.c: Don't include lib.h.
8321 * lib/lib.h: Delete ifdef __cplusplus stuff.
8323 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
8325 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
8326 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
8327 get DESC from current directory.
8329 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
8331 * tbl/main.c (main): Always reset the line number when reading
8334 * tbl/table.c (table::print_single_hline, table::print_double_hline,
8335 table::define_bottom_macro, table::do_row, table::do_top): Round
8336 vertical spacing up to vertical resolution.
8338 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
8340 * ps/ps.h (enum resource_type): Avoid comma at end of
8342 * dvi/dvi.c (class dvi_printer): Likewise.
8343 * dvi/tfmtodit.c (gf::load): Likewise.
8344 * refer/label.y (struct expression): Likewise.
8345 * refer/refer.c (class label_processing_state): Likewise.
8346 * refer/indxbib.c (do_file): Likewise.
8347 * troff/troff.c (enum warning_type): Likewise.
8348 * tbl/main.c (process_data): Likewise.
8349 * troff/charinfo.h (class charinfo):
8351 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
8353 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
8355 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
8357 * groff.c: Move to new groff subdirectory.
8358 * groff/Makefile: New file.
8359 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
8361 * man/mdate.sh: Use ls -L if supported.
8363 * Consolidate all header files produced by gendef into lib/defs.h.
8364 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
8365 Don't include path.h.
8366 * lib/Makefile (path.h): Don't generate.
8367 * troff/input.c: Include defs.h. Don't include config.h.
8368 * troff/Makefile (config.h): Don't generate.
8369 * refer/index.h: Don't include suffix.h.
8370 * refer/index.c: Include defs.h.
8371 * refer/indxbib.c: Include defs.h.
8372 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
8374 * refer/Makefile (suffix.h, path.h): Don't generate.
8375 * groff.c: Don't include config.h. Include defs.h.
8376 * Makefile (config.h): Don't generate.
8377 (lib/defs.h): Generate.
8378 (topclean): Remove lib/defs.h.
8380 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
8382 * lib/malloc.c, lib/getpagesize.h: Deleted.
8383 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
8385 * lib/Makefile: Delete malloc-related stuff.
8386 * lib/new.c: Workaround COOKIE_BUG if necessary.
8388 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
8389 needed header files directly.
8390 * refer/refer.h: Omit definition of DEFAULT_INDEX.
8391 * Makefile: Include definition of DEFAULT_INDEX in path.h.
8393 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
8395 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
8397 * lib/font (font::load_desc, font::load): Don't split argument of
8399 (font::handle_unknown_font_command): Change type.
8400 * ps/ps.c (ps_font::handle_unknown_font_command,
8401 handle_unknown_desc_command): Change type.
8402 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
8404 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
8406 * lib/font.h (font::handle_unknown_font_command): Add file and
8408 * lib/font.c (font::handle_unknown_font_command):
8409 * ps/ps.c (ps_font::handle_unknown_font_command):
8410 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
8411 lineno arguments. Use _with_file_and_line functions for error
8414 * lib/fontfile.c (font::unknown_desc_command_handler): New static
8416 * lib/font.c (font::set_unknown_desc_command_handler): New
8418 (font::load_desc): For unknown commands, call
8419 unknown_desc_command_handler if not null.
8420 * lib/font.h (class font): Declare them.
8421 (FONT_COMMAND_HANDLER): New typedef.
8422 * ps/ps.c (handle_unknown_desc_command): New function.
8423 (main): Set bflag if we had a -b option. Call
8424 font::set_unknown_desc_command_handler.
8425 (broken.h): Don't include.
8426 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
8428 * ps/devps/Makefile: Add `broken' command to DESC file using
8429 BROKEN_SPOOLER_FLAGS.
8431 * macros/tmac.e ([, ]): Add as synonyms for { and }.
8433 * macros/tmac.e ($p): Only exdent if \$3 > 0.
8435 * macros/tmac.e (@R, @S): New macros.
8436 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
8437 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
8438 Declare $H, $[0-9], .. macros with @S.
8439 Declare |0, |1, |2, |3 strings with @S.
8441 * macros/tmac.e (@S): Rename to @U.
8443 * macros/tmac.e (@z): Define @b and bp as empty instead of
8446 * macros/tmac.e (@m): Deleted.
8447 (@h): Don't call @m.
8448 (@z): Don't set @m trap.
8450 * macros/tmac.e ($h, $f): Define |z as empty string.
8452 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
8455 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
8457 ()f): Likewise for * register.
8459 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
8460 argument is missing, don't change $R. Call sr with three
8461 arguments when initializing.
8463 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
8465 * macros/tmac.e (sr): New macro.
8466 Initialize $r and $R using sr.
8468 * macros/tmac.e (,): Delete \*(#[.
8470 * troff/env.c (set_tabs): Read the tab type even if the position
8471 is bad. Allow the position of the first tab stop to be negative.
8473 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
8475 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
8477 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
8478 rather than -DPATHCONF_MISSING.
8479 * Makefile: Get rid of PATHCONF_MISSING.
8481 * refer/map.c: New file.
8482 * refer/index.c: Interface to mmap through map.c. Rename map_size
8484 * refer/Makefile: Handle map.c.
8485 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
8487 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
8489 * Makefile: RANLIB should be `true' if there is no ranlib.
8490 * lib/Makefile (libgroff.a): Simplify.
8491 * driver/Makefile (libdriver.a): Simplify.
8493 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
8494 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
8497 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
8499 * troff/env.c (compare_ranges): Declare as extern "C".
8501 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
8503 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
8505 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
8507 * pic/troff.c (troff_output::text): Merge in grops_output::text,
8508 but conditionalize use of \X based on \*(.T.
8509 (grops_output::*): Deleted.
8510 * pic/output.h: Delete declaration of make_grops_output.
8511 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
8512 by default. -n sets it to 0.
8513 (usage): Corresponding changes.
8514 * groff.c (main): Don't pass -x or -p to pic.
8515 * groff.sh: Likewise.
8517 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
8520 * ps/devps/afmtodit: Change calculation of asc_boundary and
8521 desc_boundary. Make these bounds inclusive.
8522 * ps/devps: Regenerate font files.
8524 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
8526 * macros/tmac.latin1: New file.
8527 * macros/tmac.tty-char: Use tmac.latin1.
8528 (tmac.tty-tr): Deleted.
8529 * macros/Makefile: Install tmac.latin1.
8530 * macros/tmac.dvi: Use tmac.latin1.
8531 * macros/troffrc: Translate \[char160] onto no-break space here.
8532 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
8534 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
8536 * macros/tmac.Xps: Use `do' request.
8538 * macros/tmac.ps: Use `do' request.
8540 * macros/tmac.e (@C): Use `do' request.
8542 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
8543 * macros/Makefile: Install tmac.X*.
8545 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
8546 * tty/Makefile: Don't install tmac.tty*.
8547 * macros/Makefile: Install tmac.tty*.
8549 * dvi/tmac.dvi: Move to macros.
8550 * dvi/Makefile: Don't install tmac.dvi.
8551 * macros/Makefile: Install tmac.dvi.
8553 * ps/tmac.ps*: Move to macros.
8554 * ps/Makefile: Don't install tmac.ps*.
8555 * macros/Makefile: Install tmac.ps*.
8557 * eqn/box.c: Provide draw_lines parameter corresponding to -D
8559 * macros/eqnrc: Set draw_lines parameter based on device.
8560 * groff.c: Don't pass -D flag to eqn.
8561 * groff.sh: Likewise.
8562 * eqn/main.c: Warn about use of -D.
8564 * troff/input.c (process_startup_file): New function.
8565 (main): Call process_startup_file().
8566 * macros/troffrc: New file.
8567 * macros/Makefile: Install troffrc.
8568 * groff.c (main): Don't pass extra -m option to troff. For a
8569 pseudo device pass the name of the pseudo device to troff using
8571 * groff.sh: Likewise.
8572 * groff.c (possible_command::prepend_arg): Deleted.
8574 * troff/input.c (do_request): New function.
8575 (init_input_requests): Bind "do" to do_request.
8577 * eqn/main.c (main): Instead of loading eqnchar from device directory,
8578 load eqnrc from macro directory.
8579 * macros/eqnrc: New file.
8580 * macros/Makefile: Install eqnrc.
8581 * ps/devps/eqnchar: Deleted.
8582 * ps/devps/Makefile: Don't install eqnchar.
8583 * dvi/devdvi/eqnchar: Deleted.
8584 * dvi/devdvi/Makefile: Don't install eqnchar.
8585 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
8588 * lib/device.[ch]: New files.
8589 * lib/font.h (font::set_device_name, font::get_device_name):
8591 * lib/fontfile.c: Use device.h.
8592 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
8593 * troff/input.c: Delete definition of `device'.
8594 (main): Don't initialize device.
8595 * troff/troff.h: Include device.h rather than declaring device.
8596 * troff/Makefile: No need to handle DEVICE.
8597 * driver/input.c: Include device.h. Don't use
8598 font::{set,get}_device_name.
8599 * groff.c, Makefile: Rename device.h to config.h.
8600 * groff.c: Use library device variable.
8601 * eqn/main.c: Use library device variable.
8602 * eqn/Makefile: No need to handle DEVICE.
8604 * lib/searchpath.[ch]: New files.
8605 * lib/Makefile: Handle searchpath.[ch].
8606 * troff/input.c (open_file, init_dirs): Deleted.
8607 (macro_dirs): Deleted.
8608 (open_mac_file, macro_source): Use class search_path.
8609 (add_string, struct string_list): Move definition.
8610 (main): Change -M option to use macro_path. Delete call to
8612 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
8613 Rewrite to use class search_path.
8614 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
8615 * lib/Makefile: fontfile.c depends on searchpath.h.
8616 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
8618 * lib/macropath.[ch]: New files.
8619 * troff/Makefile: No need to handle MACROPATH.
8621 * troff/input.c: Delete DUMP code.
8622 * lib/fontfile.c, lib/font.h: Delete
8623 font::forget_command_line_font_dirs.
8625 * troff/input.c (push_token): New function.
8626 (handle_first_page_transition): Use push_token().
8627 (process_input_stack): Change handling of a space at the beginning
8630 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
8632 * troff/input.c (font_dirs): Delete unused variable.
8634 * eqn/lex.c (do_set): Correct error messages.
8636 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
8638 * troff/input.c (do_define_string): Allow the string name to be
8639 followed immediately by a tab.
8640 (define_character): Likewise.
8642 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
8644 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
8647 * troff/input.c (input_iterator::is_file): New virtual function.
8648 (file_iterator::is_file): New function.
8649 (input_stack::end_file): New function.
8650 (input_stack::next_file): Handle the situation where there is no
8651 file on the input stack correctly. Avoid making two passes over
8653 (next_file): Make the filename optional; in this case call
8654 input_stack::end_file().
8656 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
8658 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
8659 produce a real _ charater when the current font is CW and _
8662 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
8663 expression to work around gcc 2.2 bug.
8665 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
8667 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
8669 * troff/env.c (environment::add_padding): New function.
8670 (environment::add_char): Use add_padding().
8671 (environment::space): Likewise.
8672 (environment::wrap_up_field): Add some padding if there is none
8673 and there's no current tab.
8674 * troff/env.h: Declare environment::add_padding.
8676 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
8678 * pic/pic.y: undef fmod and rand before declaring them.
8680 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
8682 * troff/input.c (main): If the DESC file specifies a font name of
8683 0, then leave the corresponding font position empty.
8685 * nroff.sh: New file.
8686 * Makefile (install.nobin): Install nroff.sh.
8688 * tty/devlatin1/R.proto: Add ao as synonym for de.
8689 * tty/tmac.tty-char: Define ao as o.
8691 * tty/dev{ascii,latin1}/R.proto: Add aq.
8692 * tty/tmac.tty-char: Delete definition of aq.
8694 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
8696 * troff/input.c (init_charset_table): Don't translate 0240.
8697 * ps/tmac.ps: Translate char160 to space.
8698 * dvi/tmac.dvi: Likewise.
8699 * tty/tmac.tty: Likewise.
8701 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
8703 * dvi/tmac.dvi: Add support for all Latin-1 characters.
8705 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
8706 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
8709 * tty/tmac.tty-char: Add \(ah.
8711 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
8712 No need to define \(FM and \(!/. Conditionalize all character
8715 * ps/devps/lgreekmap: Add +h, +f, +p.
8717 * ps/tmac.psnew: New file.
8718 * ps/Makefile: Install tmac.psnew.
8720 * troff/input.c (charinfo_to_node_list): Don't ever interpret
8721 character definitions in compatible mode.
8723 * troff/input.c (remove_character): New function.
8724 (init_input_requests): Bind remove_character to "rchar".
8726 * ps/tmac.psold: New file.
8727 * ps/Makefile: Install tmac.psold.
8728 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
8729 characters into tmac.psold. Make these definitions unconditional.
8731 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
8733 * ps/tmac.ps: Don't define \('c and \('C.
8735 * ps/devps/textmap: Move Greek characters to...
8736 * ps/devps/symbolchars:
8738 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
8740 * ps/devps/text.enc: Add quotesingle.
8741 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
8742 * tty/tmac.tty-char: Likewise.
8743 * dvi/devdvi/texmi.map: Add +h, +f, +p.
8744 * dvi/devdvi/texi.map: Add Fn.
8745 * dvi/devdvi/msam.map: Add lz.
8746 * dvi/tmac.dvi: Handle Bq, bq, aq.
8748 * pic/lex.c (get_token): Recognize 'th.
8749 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
8751 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
8753 * ps/devps/textmap: Move di, mu, +- to...
8754 * ps/devps/symbolchars:
8756 * macros/tmac.s (@XS): Don't call par@reset or fi.
8757 (XA): Call LP. Turn off adjustment. Reduce line length.
8759 * macros/tmac.s: Initially alias XS to LP.
8760 (XS): Rename to @XS.
8761 (cov*ab-init): Alias XS to @XS.
8763 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
8765 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
8766 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
8767 (token::is_size, token::changes_env): Deleted.
8768 * troff/number.c (parse_term): No need to process \s explicitly.
8769 Call tok.next() only after scale indicator has been processed.
8770 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
8772 (token::next): Handle \s, \f, \S, \H immediately rather than
8773 returning them as tokens.
8774 (token::operator==, token::description, token::add_to_node_list,
8775 token::process): Remove handling of deleted tokens.
8777 * troff/env.c (environment::add_char): When adding padding
8778 indicator character, call start_line() if necessary.
8780 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
8782 * ps/devps/afmtodit: Don't output 0 kerns.
8784 * ps/devps/afmtodit: Remove directory from name of encoding in
8785 font description file.
8787 * ps/devps/afmtodit: Improve error messages.
8789 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
8791 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
8792 * ps/devps/FontMakefile: Deleted.
8793 * ps/devps/afmname: New file.
8795 * ps/devps/symbol.sed: New file.
8796 * ps/devps/symbol.diff: Deleted.
8797 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
8798 Generate zapfdr.afm from zapfd.afm.
8800 * tty/tmac.tty (tty-char): Prefix definition with ".
8802 * macros/tmac.an (TP): Don't start a diversion if one has already
8805 * tty/tmac.tty-char: Add Latin-1 characters.
8807 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
8809 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
8811 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
8812 Move declaration of struct horizontal_span.
8814 * tbl/table.c (table::table): Initialize span_list.
8815 (table::~table): Delete span_list.
8817 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
8819 * ps/devps/Makefile: Avoid dependency on GNU make.
8821 * ps/tmac.ps: Check that character does not already exist before
8824 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
8825 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
8826 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
8829 * tty/tmac.tty-char: New file.
8830 * tty/Makefile: Install tmac.tty-char.
8831 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
8834 * tty/tmac.tty: Fix definition of \(34.
8836 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
8837 bracket-drawing characters onto |. Add *o.
8839 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
8840 only if current_field.
8842 * troff/dictionary.c (dictionary::lookup): Free old_table after
8845 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
8847 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
8848 whose glyphs are identical to glyphs of some Roman character.
8850 * tty/devlatin1/R.proto (bu): Deleted.
8851 * tty/devascii/R.proto (bu): Deleted.
8852 * tty/tmac.tty: Add definition of \(bu.
8854 * eqn/main.c (do_file): Pass FILE as argument.
8855 (main): Automatically load eqnchar. New options -F and -n.
8856 Pass do_file an opened FILE.
8857 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
8858 No need to include font.h.
8859 * groff.sh: Likewise. Don't need to use - for standard input.
8860 Prefix files with -- if first file starts with -.
8862 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
8864 * troff/env.c (environment::possibly_break_line): Don't set line
8865 to 0 across call to output_line(). Don't call output_line() until
8866 after discarding nodes after break.
8868 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
8870 * request.h (macro::empty): Declare it.
8871 * input.c (macro::empty): New method.
8872 (interpolate_macro): Don't give a WARN_SPACE if the two-character
8875 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
8877 * troff/env.c (environment::start_field): Decrement space_total
8878 when a space is frozen.
8880 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
8882 * macros/tmac.an (R): Delete macro.
8884 * troff/input.c (get_copy, token::next): Support \# (like \" but
8885 newline is ignored).
8887 * troff/input.c (token::next): Fix error message in 'Y' case.
8889 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
8891 * eqn/delim.c (define_extensible_string): Recognize any prefix of
8894 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
8896 * c++test.c: Include <osfcn.h>.
8898 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
8901 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
8903 * tbl/table.c (table::divide_span): Don't count column separation
8904 if expand was specified.
8906 * tbl/main.c (process_format): Don't ignore width specs in
8907 continued format. Give warning for changing equal widths or
8908 column separation in continued format.
8909 (process_data): Set column separation, minimum width, equal
8910 columns at end of table.
8912 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
8914 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
8915 node::add_discretionary_hyphen): Use soft_hyphen_char.
8916 (set_soft_hyphen_char): New function.
8917 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
8919 * Makefile (c++tested): Give more helpful message if test fails.
8921 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
8923 * troff/input.c (init_charset_table): Translate 0240 to
8924 an unbreakable space.
8926 * troff/token.h (token::hyphen_indicator): New function.
8927 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
8929 * troff/input.c (translate): Allow translation to \%.
8930 * troff/node.c (node::add_char): Handle
8931 TRANSLATE_HYPHEN_INDICATOR.
8932 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
8934 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
8937 * tty/devlatin1/R.proto: \(hy and - should print as 055.
8939 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
8941 * groff.c (run_commands): If the last command gets a SIGPIPE send
8942 a SIGPIPE to all children than haven't yet terminated. When
8943 command terminates, set pid field to -1.
8945 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
8947 * groff.c (main): Pass an appropriate -filename option to gxditview.
8949 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
8951 * Makefile.bd (install): Remove existing program before copying.
8953 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
8954 programs which have Unix counterparts to be installed with
8955 user-specified prefix.
8957 * troff/input.c (exit_troff): Don't check if exit_started.
8958 (exit_request): Don't call exit_troff if exit_started.
8960 * Makefile.bd (install.mm): Rename to install.dwbmm.
8962 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
8964 * driver/input.c (do_file): Add missing break for '#' case.
8966 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
8968 * troff/input.c (input_stack::clear): Clear past any boundaries and
8969 then add the boundaries back.
8971 * troff/input.c (exit_troff): Return immediately if already
8974 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
8976 (pg*end-page): If the text has ended and there are no more
8977 footnotes or keeps, exit.
8979 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
8981 * troff/input.c (init_charset_table): Make \(rq transparent by
8984 * macros/tmac.an: Define lq and rq strings.
8986 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
8988 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
8990 * troff/env.c (environment::final_break): New function.
8991 (environment::newline): Set prev_line_interrupted to 2 if
8993 * troff/env.h: Declare environment::final_break.
8994 * troff/input.c (exit_troff): Call environment::final_break()
8995 instead of environment::do_break().
8997 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
8998 doesn't already exist.
8999 * macros/man.local: New file.
9000 * macros/tmac.an: Load man.local.
9001 * macros/man.ultrix: New file.
9003 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
9005 * troff/input.c (exit_groff): Rename to...
9006 (exit_troff): New function.
9008 * troff/div.c (exit_started, done_end_macro,
9009 seen_last_page_ejector): New global variables.
9010 (began_page_in_end_macro): New static variable.
9011 (exit_flag): Deleted.
9012 (top_level_diversion::top_level_diversion): Initialize
9014 (top_level_diversion): More elaborate test for whether
9015 cleanup_and_exit() should be called.
9016 Set began_page_in_end_macro if the end macro isn't yet finished.
9017 * troff/div.h (top_level_diversion::last_page_count): New data
9019 (top_level_diversion::set_last_page): New function.
9020 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
9021 * troff/env.c (do_break): Zero prev_line_interrupted.
9022 * troff/input.c (exit_flag): Delete declaration.
9023 (LAST_PAGE_EJECTOR): New magic cookie.
9024 (token::next): Handle LAST_PAGE_EJECTOR.
9025 (exit_groff): Set exit_started and done_end_macro instead of
9026 exit_flag. Call top_level_diversion::set_last_page. Push a
9027 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
9028 another ejection after setting seen_last_page_ejector.
9030 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
9032 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
9034 * macros/tmac.e (TH): Make sure there's room for the initial
9037 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
9038 Set FVS in points rather than units.
9040 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
9042 * troff/div.c (top_level_diversion::add_trap): Don't consider the
9043 position of empty slots.
9045 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
9047 * ps/devps/S: Fix height and depth of parenrightex.
9048 * ps/devps/symbol.diff: Regenerate.
9050 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
9052 * tmac.e (u): Do underlining as in -mgs.
9054 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
9056 * tty/tty.c (tty_printer::end_page): If overstriking is
9057 suppressed, still turn overstruck horizontal and vertical lines
9060 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
9063 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
9065 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
9067 * Version 1.05 released.
9069 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
9071 * tty/tty.c: Instead of keeping an array of glyphs and then
9072 sorting it, keep a ordered linked list of glyphs for each line.
9074 * driver/driver.h: Include stddef.h.
9076 * tty/tty.c (compare_glyph):
9077 * refer/refer.c (rcompare):
9078 * troff/env.c (compare_ranges): Arguments of qsort comparison
9079 function should be const void *.
9081 * troff/number.c (parse_term):
9082 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
9085 * refer/label.y (consider_authors): Don't access variables
9086 constructed under a condition outside that condition: put braces
9087 round for statement containing declaration; redeclare use of same
9090 * pic/pic.y (text_expr): Delete production that allows
9091 parenthesised text_expr.
9092 (expr): Allow a conditional_expr to appear in parentheses.
9093 (conditional_expr): Rename to any_expr.
9095 * mm: Install new version 1.01 from jh.
9097 * lib/font.c (font::get_width): Cache scaled widths.
9098 (font::font): Initialize widths_cache.
9099 (font::~font): Destroy widths_cache.
9100 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
9102 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
9104 * c++test.c, c++test.ref: New files.
9105 * Makefile: Check that the C++ compiler works.
9107 * ps/tmac.pspic (PSPIC): Do a break.
9109 * ps/tmac.ps: Move definition of PSPIC into...
9110 * ps/tmac.pspic: New file.
9111 (PSPIC): Draw box around picture, but make it invisible to grops.
9112 * ps/tmac.ps: Load tmac.pspic.
9113 * ps/Makefile: Install tmac.pspic.
9115 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
9117 * lib/font.c (scale_round): If n is negative,
9118 subtract .5 before truncating floating point result.
9120 * lib/fontfile.c: Include <errno.h>.
9122 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
9124 * driver/input.c (get_char): Inline. Don't update current_lineno.
9125 Change callers to up date current_lineno if necessary.
9126 Use get_char() instead of getc(current_file).
9128 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
9130 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
9132 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
9134 * tty/tty.c (tmac.tty): Define \(rg as (R).
9136 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
9138 * lib/lib.h: New define a_delete.
9139 * Use a_delete instead of delete when deleting an array of objects
9140 without destructors.
9142 * lib/lib.h: Rename adelete to ad_delete.
9143 * Change uses of adelete.
9145 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
9147 * eqn/eqn.y: Include lib.h.
9149 * troff/node.c (grow_font_table): Delete old_font_table.
9151 * mm: Install new version from jh.
9153 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
9155 * tbl/table.h (format_type): Make global instead of local to class
9156 entry_format. Prefix enumerators with FORMAT_.
9157 * tbl/table.c, tbl/main.c: Corresponding changes.
9158 * refer/token.h (token_type): Make global. Prefix enumerators
9160 * refer/token.[ch]: Corresponding changes.
9161 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
9163 * troff/div.c (node::set_vertical_size): Don't name argument.
9165 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
9167 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
9168 * lib/lib.h: Define adelete accordingly.
9169 * pic/object.c (graphic_object::graphic_object):
9170 * tbl/main.c (format::~format):
9171 * tbl/table.c (table::~table):
9172 * refer/ref.c (reference::~reference, reference::merge,
9173 reference::insert_field, reference::delete_field): Use adelete.
9175 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
9177 * tbl/table.h: Corresponding changes.
9179 * common.c (common_output::dashed_arc, common_output::dotted_arc):
9180 Ensure total_angle is positive.
9182 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
9184 * refer/ref.c (reference::merge, reference::insert_field,
9185 reference::delete_field): Avoid delete[0].
9187 * refer/token.c (init_special_chars): Move calls to cmupper
9188 outside calls to init_two_char_letter to work around bug in gcc
9191 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
9193 * lib/new.c (operator new): Use __builtin_new for g++.
9195 * pic/object.c (graphic_object::~graphic_object): Don't use
9198 * pic/object.c (output::compute_scale): Initialize max_width and
9201 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
9203 * troff/input.c (write_request): Call fflush.
9205 * troff/node.h (class composite_node): Move declaration to node.c
9206 * troff/input.c (charinfo_to_node): Rename to ...
9207 (charinfo_to_node_list): Return node list rather than composite
9209 * troff/node.c (make_composite_node): New function.
9210 (make_node, add_char): Call make_composite_node instead of
9212 (class composite_node): Add a tfont * member. Delete font_size
9214 (composite_node::composite_node, composite_node::copy,
9215 composite_node::size): Corresponding changes.
9216 (composite_node::tprint): Provide constant spacing, emboldening
9217 and track kerning as specified in tfont.
9218 (composite_node::width): Change width calculation accordingly.
9219 * troff/env.h (environment::composite): New member.
9220 (environment::is_composite, environment::set_composite): New
9222 * troff/env.c (environment::environment): Initialize composite.
9223 * troff/input.c (charinfo_to_node): Call
9224 environment::set_composite.
9225 * troff/node.c (make_composite_node, make_glyph_node): Use the
9226 plain version of the tfont if the environment is composite.
9228 * troff/node.c (font_info::get_space_width): Additional argument
9229 giving space_size. Handle constant space correctly. Scale by
9230 space_size unless constant spaced.
9231 (env_sentence_space_width): New function.
9232 * troff/node.h: Declare it.
9233 * troff/env.h (environment::get_space_size,
9234 environment::get_sentence_space_size,
9235 environment::get_narrow_space_width,
9236 environment::get_half_narrow_space_width): Make inline.
9237 (environment::get_space_width): Make inline. Just call
9239 * troff/env.c: Delete definitions for funtions made inline.
9240 (environment::space_newline, environment::space): Use
9241 env_sentence_space_width(). Don't scale by space_size.
9242 * troff/node.h: Move declarations of env*space_width() functions
9245 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
9247 * macros/tmac.s (PS): Don't try to set negative indent.
9249 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
9251 * pic/pic.y: Fix min function.
9253 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
9255 * man/mdate.sh: Clear LANGUAGE.
9257 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
9259 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
9260 * pic/lex.c: New COMMAND keyword.
9261 * pic/pic.y (print_args, print_arg): New rules.
9262 (placeless_element): Use print_args for PRINT.
9263 New COMMAND element.
9265 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
9267 * troff/input.c (terminal): Handle missing argument correctly.
9269 * pic/pic.y (text_expr): New rule.
9271 * pic/pic.y: Implement := operator.
9273 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
9275 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
9278 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
9280 * ps/devps/dingbatsrmap: Include this in the distribution.
9282 * macros/tmac.doc: Replace with new version from 2nd Networking
9283 Release. Fix loading of doc-* files.
9284 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
9285 * macros/tmac.doc.old: New file. Apply fixes that had been
9286 applied to old tmac.doc.
9287 * macros/tmac.andoc: Check that we're running under groff.
9288 * macros/Makefile: Rework.
9290 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
9292 * tbl/table.h (format_type):
9293 * refer/token.h (token_type): If NESTED_TYPES is defined, use
9294 typedef to make these types visible at file scope.
9295 * Makefile: Add NESTED_TYPES configuration option.
9297 * troff/div.c (mark): At the top level use the value of
9298 nl_reg_contents rather than the current vertical position.
9300 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
9302 * tty/tty.c: Implement \D for horizontal or vertical lines.
9303 (tty_printer::set_char): Use vec_used+2 as serial number.
9304 Don't allow size of vector to exceed USHRT_MAX-2.
9305 Split off part into...
9306 (tty_printer::add_char): New function.
9307 (tty_printer::draw): New function.
9308 (compare_glyph): Handle equal serial numbers.
9309 (tty_printer::end_page): Handle overstruck characters from \D.
9310 (main, usage): Implement -d option.
9312 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
9314 * tbl/main.c (process_format):
9315 * eqn/text.c (split_text):
9316 * troff/input.c (token::next): Use inner block for declarations
9317 with initializers in switch statement.
9319 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
9321 * pic/common.c (common_output::dash_line): Cope with zero-length
9324 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
9326 * Version 1.04 released.
9328 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
9330 * macros/tmac.an (TH): Define a macro an-init to define variables
9331 based on command line arguments.
9332 (an-header): Call it.
9334 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
9336 * Makefile (install.mm): Rename to install.dwbmm.
9338 * Makefile: Integrate mm.
9339 * mm: New directory.
9341 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
9343 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
9346 * pic/troff.c (troff_output::simple_spline,
9347 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
9348 shadowing parameter.
9350 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
9352 * lib/ptable.h: Add explicit casts when converting from unsigned
9355 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
9356 * dvi/devdvi/Makefile: Install SA, SB.
9358 * refer/indxbib.c: Add declaration of mktemp.
9360 * refer/lookbib.c: Add declaration of isatty.
9362 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
9364 * pic/lex.c (interpolate_macro_with_args): While collecting
9365 arguments, keep track of whether we're in a string.
9367 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
9369 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
9370 down with \v, so as to avoid problems with top of page trap
9371 setting no space mode.
9373 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
9375 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
9377 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
9379 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
9380 Improve error message.
9382 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
9384 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
9387 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
9389 * groff.c (possible_command::execp): Always use _exit() after a
9392 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
9393 NO_SYS_WAIT_H configuration options.
9394 * groff.c: Use these options. Use POSIX-style macros to extract
9395 fields from the status returned by wait().
9397 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
9399 * tbl/table.c (table::compute_separation_factor): Allow the
9400 separation factor to drop to 0.
9402 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
9404 * refer/search.c: Include <errno.h>.
9406 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
9408 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
9410 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
9413 * pic/lex.c (input_stack::bol): Move definition out of class body.
9415 * pic/main.c: On MSDOS munge argv[0].
9417 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
9419 * lib/ptable.c (hash_string): Use unsigned long rather than
9421 (next_ptable_size): Use unsigned rather than int. Give an error
9422 message if we've hit the largest table size.
9423 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
9426 * pic/object.h (object_spec): Make flags unsigned long. Declare
9427 flags as const unisgned long rather than as enums.
9429 * pic/output.c: Deleted.
9431 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
9433 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
9434 Add additional argument.
9435 (line_entry::note_double_vrule_on_{left,right}): Set value of
9436 douvle_vrule_on_{right,left} flag according to argument.
9437 (simple_line_entry::simple_print,
9438 simple_line_entry::double_line_print): If adjacent to double vrule
9439 on a corner extend rather than shorten the rule by half the double
9442 * troff/number.c (parse_term): In checking for overflow, handle the
9443 case where the current horizontal position is negative.
9445 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
9447 * pic/object.c (draw_arrow): Check for object having zero length.
9449 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
9451 * eqn/main.c (do_file): Split off inline equation handling into...
9452 (inline_equation): New function. Search for starting delimiter
9454 (delim_search): New function. Don't recognize a delimiter that
9455 occurs in the name of an escape sequence, number register, string
9458 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
9460 * eqn/delim.c (delim_box::compute_metrics): Don't call
9461 define_extensible_string if left is 0.
9462 (delim_box::output): Don't print the left delimiter if left is 0.
9463 (delim_box::debug_print): Check for left == 0 before calling printf.
9465 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
9467 * troff/Makefile (majorminor.c): Include only digits in
9470 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
9472 * refer/dirnamemax.c: new file.
9473 * refer/genlimits.c: Deleted.
9474 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
9475 Don't check path length.
9476 * refer/Makefile: Add dir_name_max.o; delete genlimits.
9477 * Makefile: Add PATHCONF_MISSING option.
9479 * refer/indxbib.c (get_cwd): New function.
9480 (main): Use get_cwd().
9481 * lib/getcwd.c: New file.
9482 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
9484 * lib/Makefile: Compile getcwd.o.
9486 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
9489 * refer/indxbib.c (main): Check success of mktemp.
9491 * lib/tmpfile.c: New file.
9492 * lib/Makefile: Add tmpfile.c.
9493 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
9494 * ps/ps.h: Delete declaration of mktemp().
9495 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
9496 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
9497 * driver/driver.h: No need now to include errno.h.
9499 * everywhere: Set errno to 0 before calling fopen().
9501 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
9502 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
9503 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
9505 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
9507 * troff/env.h (translate_space_to_dummy): Declare it.
9508 * troff/env.c (environment::space_newline, environment::space):
9509 If translate_space_to_dummy is set then make the width of spaces 0.
9510 * troff/input.c (translate): If the second character of a
9511 translation is a space, translate to unbreakable space. If the
9512 first character is a space, set or clear translate_space_to_dummy
9513 according to whether the second character is \&. Weird!
9515 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
9517 * groff.c (run_commands): Don't use non-zero exit code because a
9518 command gets SIGPIPE.
9520 * groff.c, groff.sh: Use -mXps with -TXps.
9522 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
9523 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
9524 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
9525 (ps_printer::special): New specials invis and endinvis.
9526 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
9527 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
9528 (ps_printer::end_page): Check that invis_count == 0.
9529 (ps_printer::invis_count): New member.
9530 (ps_printer::ps_printer): Initialize invis_count to 0.
9532 * troff/env.c (environment::hyphenate_line): Hyphenation
9533 indicator at beginning of word inhibits splitting after -, \(em
9536 * pic/pic.y (element): Allow another element to follow } without
9537 any intervening separator.
9539 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
9541 * pic/lex.c (get_delimited): Allow tabs before delimiter.
9543 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
9545 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
9546 declaration of wait() in header files.
9547 * Makefile: Get rid of -DHAVE_UNION_WAIT.
9549 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
9551 * lib/lib.h: Declare return type of strerror as char *.
9553 * man/Makefile: Add g flag to sed substitutions.
9554 * Makefile (shgroff, bindist): Likewise.
9556 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
9558 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
9559 * ps/devps/prologue (PBEGIN): Define showpage after pushing
9562 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
9564 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
9567 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
9569 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
9572 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
9574 * troff/input.c (define_number_reg): If currently undefined,
9575 don't define it if the argument is an invalid expression.
9577 * Makefile: Ignore return value of `if' commands without `else'
9580 * Makefile: Split up CPPDEFINES into a series of separate
9581 configuration options.
9583 * troff/input.c (init_registers): Use time_t instead of long
9584 unless LONG_FOR_TIME_T is defined. Use returned result rather
9585 than passing pointer.
9586 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
9588 * lib/Makefile (fontpath.h): Use gendef.
9590 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
9592 * troff/input.c (input_iterator::shift): Delete argument name.
9593 * troff/node.c (suppress_output_file::really_begin_page,
9594 suppress_output_file::really_transparent_char, node::ascii_print,
9595 node::tprint): Delete names of unused arguments.
9597 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
9599 * refer/label.y (string): Pass $4 to command_error.
9601 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
9603 * Version 1.03 released.
9605 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
9607 * Makefile: Pass definition of SHELL in SUBFLAGS.
9610 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
9611 ps/Makefile: Use gendef to construct header files that are
9612 constructed from the Makefile.
9614 * macros/Makefile: make all should build stripped version of tmac.e.
9616 * refer/Makefile (clean): Remove y.output.
9618 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
9620 * ps/pfbtops.c (main): Add -v option which prints out a version
9622 * ps/Makefile (pfbtops): Link with libgroff.a.
9624 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
9626 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
9627 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
9629 * refer/lkbib.c (main): Always terminate reference with blank
9631 * refer/lookbib.c (main): Likewise.
9633 * refer/linear.c (file_buffer::load): Check that the file is not a
9636 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
9637 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
9638 Delete second inclusion of <sys/param.h>.
9640 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
9642 * troff/token.h (token::special): Deleted.
9644 * tbl/main.c (process_format): Rework so that opt->tab_char is
9645 recognized only when appropriate.
9647 * ps/Makefile (clean): Remove pfbtops.
9649 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
9651 * lib/font.c (text_file::next): Don't return if we have got a
9654 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
9656 * refer/refer.c (store_reference): Get hash code from old_table[i]
9657 when rehashing the table.
9659 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
9661 * eqn/box.c (box::top_level): Save size and prev size using \R and
9662 restore it afterwards. Set the size to the size at the beginning
9664 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
9665 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
9667 * refer/Makefile (limits.h): Use ./genlimits.
9669 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
9671 * refer/index.c: Delete declarations of stat() and fstat().
9673 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
9675 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
9677 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
9679 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
9681 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
9683 * troff/input.c (token::get_char): Handle \e.
9685 * refer/linear.c: Delete declarations of fstat() and stat().
9687 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
9689 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
9690 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
9692 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
9694 * troff/input.c (do_define_macro): Improve error handling for end
9695 of file while defining macro.
9697 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
9699 * eqn/box.h: Fix declaration of set_gsize.
9700 * eqn/box.c (set_gsize): Make argument const char *.
9701 (gsize): Declare as char *.
9702 * eqn/main.c (main): Don't convert gsize to int.
9703 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
9705 * Version 1.02 released.
9707 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
9709 * macros/tmac.andoc: New file.
9710 * macros/Makefile: Install tmac.andoc.
9712 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
9713 operator new and delete on OP_DELETE_BROKEN not being defined.
9714 * Makefile: Mention OP_DELETE_BROKEN.
9716 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
9718 * Makefile (bindist): Pass SUBFLAGS.
9720 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
9722 * Makefile, groff.c: Pass definitions to groff.c via device.h.
9724 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
9727 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
9729 * ps/ps.h, ps/psrm.c: Make comment_table and
9730 header_comment_table local to resource_manager::process_file.
9732 * groff.sh: With -TXps pass -printCommand option to gxditview.
9734 * groff.c (possible_command::print): Implement using
9735 append_arg_to_string.
9737 * xditview: Merge in new implementation with own ChangeLog.
9739 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
9741 * groff.c (main): Implement PRINT_OPTION.
9742 (append_arg_to_string): New command.
9743 (device_table): Set PRINT_OPTION flag for Xps.
9745 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
9747 * troff/groff.h: Rename to troff.h.
9749 * pic/lex.c (lookup_keyword, docmp): New functions.
9750 (get_token): Use new lookup_keyword.
9751 Don't include key.h.
9752 * pic/key.[ch], pic/pic.gperf: Deleted.
9753 * pic/Makefile: Remove gperf stuff.
9755 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
9757 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
9759 * troff/Makefile, troff/node.c: Move definition of
9760 STORE_WIDTH into node.c.
9762 * etc/grog.pl, etc/grog.sh: Support -mdoc.
9764 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
9766 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
9767 dvi/devdvi/texb.map: Add lq and rq.
9768 dvi/devdvi: Regenerate fonts.
9769 * ps/devps/textmap: Add lq and rq.
9770 * ps/devps: Regenerate fonts.
9771 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
9772 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
9774 * pic/object.c (position_rectangle): When checking radius
9775 cope with possiblity that width or height is negative.
9776 (box_object::box_object): Have separate xrad and yrad with
9777 signs matching signs of dim components.
9778 (box_object::{north,south}_{east,west}): Use xrad and yrad.
9779 (box_object::print): With rounded boxes use absolute values
9780 for dim and rad arguments.
9782 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
9785 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
9787 * various files: Add explicit destructors to keep Saber CC +d
9790 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
9792 * eqn/box.c (box::top_level): Restore fonts correctly after
9793 font changes in line containing inline equation. Also
9794 restore previous font as well as current font.
9795 * eqn/pbox.h: Define necessary string and register names.
9797 * troff/input.c (token::next): Case 'R' calls do_register.
9798 (do_register): New function.
9800 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
9802 * groff.c, groff.sh: Support Xps device. Allow each device
9803 to have a pseudo_name and a real_name.
9805 * groff.c (run_commands): Don't print `Broken pipe' messages.
9807 * ps/pfbtops.c: New file.
9808 * ps/Makefile: Add pfbtops.
9810 * troff/number.c (parse_term): Improved error message.
9812 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
9814 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
9816 * Makefile: Integrate refer.
9817 * refer: New directory.
9818 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
9819 man/lkbib.man: New files.
9820 * man/Makefile: Support refer man pages.
9822 * lib/lib.h: Declare is_prime.
9823 * lib/prime.c: New file.
9825 * troff/input.c (macro_source): New function.
9826 (init_input_requests): Bind "mso" to macro_source.
9828 * troff/env.c (environment::possibly_break_line): Maintain
9829 pointer to pointer to node to be split in ndp so as to avoid
9830 using address of freed node.
9832 * troff/env.c (environment::hyphenate_line): Maintain pointer to
9833 pointer to first node to be hyphenated in startp so as to
9834 avoid using address of freed node.
9836 * troff/env.c (class trie, class hyphen_trie): Make the
9837 elements of the trie be of type char not unsigned char.
9838 Declare arguments to be const char* instead of unsigned char *.
9840 * troff/env.c (hyphenate): Initialize hbuf[0].
9842 * troff/input.c (set_string): Declare p to be char * and cast
9843 *p to unsigned char when necessary.
9845 * troff/input.c (do_define_macro): Declare s to be const
9846 char*. Cast element to unisgned char when necessary, Declare
9847 d to be an int. Handle EOF better.
9849 * troff/Makefile, troff/input.c: Different scheme for passing
9850 definitions of MACROPATH, HYPHENFILE and DEVICE.
9852 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
9854 * tty/devascii/R.proto: Delete entry for em.
9855 * tty/devlatin1/R.proto: Likewise.
9857 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
9859 * troff/input.c (translate): Stop when we get a space. Treat eof
9862 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
9864 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
9866 * tbl/main.c (process_format): A font name following a `f'
9867 modifier that starts with a digit can be only one character long.
9868 Also deal with EOF on the second character of the font name.
9870 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
9872 * troff/input.c (token::next): Turn \~ into an
9873 unbreakable_space_node.
9874 * troff/node.c (unbreakable_space_node): New class.
9875 * troff/node.h: Declare it.
9877 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
9879 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
9880 it's >= 0, before outputting it as a single byte.
9882 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
9884 * lib/font.c: Make font_char_metric::code an int.
9885 (font::get_code): Change return type to int.
9886 (font::load): Allow code to be arbitrary integer.
9887 * lib/font.h (font::get_code): Change return type to int.
9888 (font::number_to_index): Change argument type to int.
9889 * troff/input.c (token::next): In case 'N', allow any value.
9890 Store value in token::val.
9891 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
9892 (token::get_char, token::add_to_node_list, token::process): Get
9894 (charinfo::set_number): Change argument to int.
9895 (charinfo::get_number): Require that NUMBERED flag be set.
9896 (get_charinfo_by_number): Store numbered characters not between 0
9897 and 255 in a dictionary.
9898 * troff/charinfo.h (get_charinfo_by_number): Change argument type
9900 (charinfo::number): Change type to int.
9901 (charinfo::set_number): Change type of set_number to int.
9902 * troff/node.c (troff_output_file::put_char_width,
9903 troff_output_file::put_char): Test whether character is numbered
9904 using charinfo::numbered().
9905 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
9907 * lib/nametoindex.c: New implementation to cope with arbitrary
9910 * troff/input.c (token::operator==): Test val for
9911 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
9914 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
9915 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
9917 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
9919 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
9922 * all Makefiles: rm targets of cp and >.
9924 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
9927 * eqn/lex.c (def_table): Add dollar.
9929 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
9931 * troff/input.c (do_width): Push back newline before closing delim
9934 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
9936 * groff.c (possible_command::prepend_arg): New function.
9937 (main): Prepend device -m option.
9938 * groff.sh: Put device -m options before command-line options.
9940 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
9942 * macros/tmac.an (IP): Quote argument to TP.
9944 * ps/ps.c (main): New option -b, which sets...
9945 (broken_flags): New variable.
9946 (ps_printer::~ps_printer): Incorporate the setup section in the
9947 prolog if (broken_flags & NO_SETUP_SECTION).
9948 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
9949 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
9950 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
9951 ps_printer::print_needed_font_comment,
9952 ps_printer::print_supplied_font_comment,
9953 ps_printer::print_include_font_comments,
9954 ps_printer::lookup_doc_font, ps_printer::download_fonts,
9955 ps_printer::read_download_file, read_document_fonts, add_font,
9956 skip_line, parse_fonts_arg, document_font::document_font,
9957 document_font::~document_font, document_font::download,
9958 ps_output::include_file): Deleted.
9959 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
9960 rather than %!PS-Adobe-2.0. Make calls to
9961 resource_manager::need_font for each font that we used. Replace
9962 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
9963 print_supplied_font_comment, print_needed_font_comment by call to
9964 resource_manager::print_header_comments. Output %%Orientation
9965 comment. Output %%Requirements: numcopies comment if ncopies > 1.
9966 Don't output the prolog directly. Instead call
9967 resource_manager::output_prolog. Only define #copies when ncopies
9968 > 1. Delete calls to print_include_font_comments and
9969 download_fonts. Add call to resource_manager::document_setup.
9970 (ps_printer::do_file): Call resource_manager::import_file instead
9971 of including it ourselves.
9972 (ps_printer::do_import): Likewise. Also don't call
9973 merge_import_fonts. Push userdict on the dictionary stack before
9974 and pop it afterwards.
9975 Move declaration of ps_output into ps.h.
9976 * ps/psrm.c: New file implementing resource_manager class.
9977 * ps/ps.h: New file declaring ps_output and resource_manager
9979 * ps/devps/zapfdr.ps:
9980 * ps/devps/symbolsl.ps:
9981 * ps/devps/prologue: Use 3.0 conventions.
9982 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
9983 Add default definition of BROKEN_SPOOLER_FLAGS.
9984 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
9985 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
9987 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
9989 * etc/grog.pl: New file.
9990 * Makefile (GROG): New variable.
9991 Add GROG to SUBFLAGS.
9992 * etc/Makefile (GROG): New variable.
9993 (install.nobin): Install $(GROG) rather than grog.sh.
9995 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
9997 * eqn/special.c (special_box::compute_metrics): Make the input and
9998 output strings the same. Get the new height and depth from the
9999 predefined height and depth registers. Also make subscript kern
10000 and skew available.
10001 (special_box::compute_subscript_kern, special_box::compute_skew):
10004 * eqn/box.c (pointer_box::compute_skew,
10005 simple_box::compute_metrics, box::top_level)
10006 * eqn/text.c (prime_box::compute_metrics,
10007 prime_box::comput_subscript_kern)
10008 * eqn/limit.c (limit_box::compute_metrics):
10009 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
10010 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
10011 negative numbers in `nr' requests with a leading 0.
10013 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
10015 * eqn/special.c: New file.
10016 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
10017 Add new rule for simple.
10018 * eqn/lex.c (token_table): Add SPECIAL.
10019 * eqn/box.h: Declare make_special_box.
10020 * eqn/Makefile: Add special.[co].
10022 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
10024 * ps/devps/prologue: Possibly set packing to true while defining.
10025 Create grops dictionary here. Initialize local variables before
10026 defining procedures.
10027 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
10028 the dictionary stack. Set strokeadjust and overprint to false if
10029 the relevant operators are defined.
10030 (PEND): New procedure.
10031 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
10032 prologue. Do everything else in the setup section.
10033 (ps_printer::do_import): Just call PBEGIN and PEND around the
10034 picture. Also push userdict before, and pop it afterwards.
10036 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
10038 * troff/node.c (bracket_node::tprint): Brackets were being printed
10041 * macros/tmac.an (SH, SS): Set fill mode.
10043 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
10045 * troff/div.c (top_level_diversion::begin_page): Set
10046 high_water_mark to 0.
10048 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
10050 * man/mdate.sh: New file.
10051 * man/mdate.c: Deleted.
10052 * man/Makefile: Use mdate.sh instead of mdate.
10055 * eqn/lex.c (do_gsize): Supply missing argument to error message.
10057 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
10059 * man/mdate.c: New file.
10060 * man/*.man: Replace modification date by @MDATE@.
10061 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
10062 (mdate): New target.
10064 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
10065 Remove illegal input characters.
10067 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
10069 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
10071 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
10073 * troff/div.c (begin_page): Change behaviour when
10074 !first_page_begun and !break_flag.
10076 * troff/input.c (do_name_test): Return 0 if argument is empty.
10078 * troff/input.c (read_long_escape_name): Require closing ] to be
10079 at same input level as opening [.
10081 * troff/input.c (read_increment_and_escape_name): New function.
10082 (get_copy, process_input_stack): Use this for \n.
10084 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
10086 * troff/div.c (top_level_diversion::begin_page): Ignore the
10087 current value of page_number if !first_page_begun.
10089 * groff.c (main): Fix declaration of buf.
10091 * troff/input.c (do_name_test): New function.
10092 (token::next): Implement \A.
10093 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
10094 (token::description, token::add_to_node_list, token::process):
10095 Handle TOKEN_ESCAPE.
10096 * troff/token.h: New token TOKEN_ESCAPE.
10098 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
10100 * pic/main.c (do_picture): Allow space before and after filename
10101 following `<'. Check that the filename is not empty.
10103 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
10105 * Version 1.01 released.
10107 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
10109 * dvi/tmac.dvi: ftr HR to H.
10111 * macros/tmac.e: Round up computation of $r.
10113 * xditview/tmac.X: Don't give up completely in compatibility mode.
10114 Use \n(.s instead of \n[.s].
10116 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
10117 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
10118 Add u to factors inside \s[...]. Rename frac to dvi-frac.
10119 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
10120 short names in the char definitions.
10122 * ps/tmac.ps: Don't give up completely in compatibility mode.
10123 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
10124 quote in front of \n(.s. Add u to factors inside \s[...].
10126 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
10128 * tty/tmac.tty: Call the nroff request.
10130 * macros/tmac.e ((x, )x): Better definitions that work properly
10132 (@0, @1): Helper macros for (x.
10134 * macros/tmac.e ($s, hl): Use \l rather than \D.
10136 * tty/tmac.tty: Make it work better in compatibility mode.
10137 (pchar): Rename to tty-char.
10139 * macros/tmac.e (@E): New macro.
10140 (r, i, b, rb, bi): Use @E.
10142 * macros/tmac.e (@F): Don't use (;...) syntax.
10144 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
10145 it was modified for groff.
10147 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
10149 * macros/tmac.e (<., .>): Removed.
10150 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
10152 * macros/tmac.e: Remove check that groff is being used.
10154 * macros/tmac.e (@C): Change families only if using groff; turn
10155 compatibility mode off while changing familes. Save compatibility
10156 mode before changing families and restore it afterwards.
10158 * macros/tmac.e (@h): Remove test for offset + line length.
10160 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
10161 (lo, th, ac): Define to call @S instead of using als.
10163 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
10164 the ratio of the vertical spacing to the point size in units
10165 expressed as a percentage. Use these instead of $10r and $10R,
10166 Delete $10r and $10R.
10168 * lib/font.c (font::load): In default computation of space_width,
10169 divide by sizescale. Use scale_round.
10171 * macros/tmac.an (TP): Don't call `nf'.
10172 (an-do-tag): Don't call `fi'.
10174 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
10176 * troff/input.c (process_input_stack): Handle the case where
10177 spaces at the beginning of an input line are followed by a
10180 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
10182 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
10183 * groff.sh: Use pic -x with the dvi device.
10185 * dvi/devdvi/FontMakefile (H): Don't use -s.
10187 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
10188 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
10189 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
10192 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
10194 * ps/psfig.diff: New file.
10195 * ps/tmac.psfig: New file.
10197 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
10199 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
10200 (]-): Don't call ref*do-tl.
10202 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
10204 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
10205 (fn@do-FS): Rename to fn*do-FS.
10207 * troff/input.c (transparent_translate): New function.
10208 (process_input_stack): Apply transparent_translate before calling
10209 diversion::transparent_output(unsigned char).
10211 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
10213 * troff/input.c (do_define_macro): Define the macro before calling
10216 * xditview/Makefile: Add DEVICES variable. Change install target
10219 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
10221 * groff.c (run_commands): Handle the possibility that there are
10222 child processes other than those forked by us.
10224 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
10226 * lib/string.c (string::append): New function.
10227 * lib/stringclass.h: Declare it.
10229 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
10231 * eqn/main.c (main): New option -N which sets
10232 no_newline_in_delim_flag.
10233 (do_file): If no_newline_in_delim_flag is set don't allow newlines
10235 * groff.c (main): Pass -N on to eqn.
10236 (help, synopsis): Mention -N.
10237 * groff.sh: Implement -N.
10239 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
10241 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
10242 (]-): Call ref*do-tl if ref*need-tl is non-zero.
10243 (XP): Allow as initializer.
10245 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
10247 * troff/env.c (environment::wrap_up_field): If field_spaces are
10248 non-zero and we have a current_tab, subtract padding from
10249 tab_distance. If this makes tab_distance <= 0, use the next tab
10250 stop instead. If there isn't any next tab or it's a left tab,
10251 wrap up the current tab.
10252 (environment::start_field): Initialize tab_precedes_field.
10253 (environment::wrap_up_tab): If there's a current field, update
10254 pre_field_width, field_distance and tab_precedes_field.
10255 * troff/env.h (environment::tab_precedes_field): New member.
10257 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
10259 * ps/ps.c (ps_printer::do_file): New function.
10260 (ps_printer::special): Bind to `file' special.
10261 (ps_printer::do_exec): Set ndefined_styles to 0.
10263 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
10265 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
10266 Avoid stripping first character from the start of unrecognized
10267 escapes. Use lex_error instead of error to report errors.
10268 * eqn/lex.c (get_token): Rework handling of escapes.
10269 (lex_error): Move declaration into...
10272 * xditview/xditview.c (main): Make -page option work.
10274 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
10276 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
10278 * macros/tmac.s (B2): Correct size of box.
10280 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
10282 * macros/tmac.s (B2): Postpone drawing the box until in the
10283 top-level diversion.
10285 * tty/tmac.tty: Add font translations for C, CR, CW.
10287 * groff.c (synopsis, help): Document -i.
10288 * groff.sh: Implement -i.
10290 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
10291 Simplify the construction of SN.
10293 * troff/number.c (parse_term): Give `|' a higher precedence.
10294 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
10297 * macros/tmac.s (B2): Use par@finish instead of par@reset.
10299 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
10301 * lib/string.c (string::move): New function.
10302 * lib/stringclass.h: Declare it.
10304 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
10306 * troff/env.c (distribute_space): Add optional argument
10308 (environment::wrap_up_field): Call distribute_space with
10309 `force_forward' argument of 1.
10311 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
10313 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
10314 Inline it. Move reallocation into...
10315 (string::grow1): New function.
10316 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
10317 dependencies to include library header files.
10318 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
10320 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
10322 * macros/tmac.s (@NH): Use the same number registers than -ms does
10323 for the heading level counters. Use the same string that -ms does
10324 for the number for this heading.
10326 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
10328 * lib/new.c (operator new): Cast result of malloc to char *.
10330 * troff/input.c (spring_trap, lookup_request): Add assert that nm
10333 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
10335 * groff.c (main): Support -i.
10337 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
10339 * pic/pic.h: Include <osfcn.h>.
10341 * ps/ps.c: Add declaration of mktemp.
10343 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
10344 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
10345 argument as union wait *.
10346 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
10347 argument to union wait *.
10349 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
10351 * tty/tmac.tty: Add definition of \(co.
10353 * pic/object.c (make_arc): Only increase radius when radius
10354 strictly less than d.
10355 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
10358 * troff/env.c (environment::environment(symbol),
10359 environment::environment(const environment *)): Initialize
10362 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
10364 * tbl/main.c (main): Add exit(0).
10366 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
10368 * pic/main.c (main):
10369 * eqn/main.c (main):
10370 * tbl/main.c (main):
10371 * etc/soelim.c (main):
10372 * driver/printer.c (printer::~printer):
10373 * troff/node.c (real_output_file::~real_output_file,
10374 real_output_file::flush): Check for errors on stdout.
10376 * most files: Add 1991 to copyright notice.
10378 * macros/tmac.s: Don't test \n(.x and \n(.y.
10380 * troff/input.c (token::next): Rename `escape_char' label to
10381 `handle_escape_char' and `normal_char' label to
10382 `handle_normal_char'.
10384 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
10386 * groff.c (main, synopsis, help): Support -a option.
10387 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
10388 to trflags while parsing options.
10390 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
10392 * troff/number.c (parse_term): With `m', `M' and `n' scale
10393 indicators, convert scale factor to hunits before scaling.
10395 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
10397 * lib/font.c (scale_round): Better test for overflow when n is
10400 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
10402 * tbl/main.c (process_format): Add second argument of type
10403 options*. Change callers. Allow opt->tab_char as well as '\t'
10404 between format items.
10406 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
10408 * macros/tmac.an (PD): With no arguments, make sure register PD is
10410 (TH): Call PD with no argument, instead of setting register PD
10413 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
10415 * Version 1.00 released.
10417 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
10419 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
10421 * dvi/devdvi/DESC: Mount CW instead of CR.
10423 * dvi/tmac.dvi: Add definition of \(tm.
10425 * dvi/devdvi/texsy.map: Add lh, and rh.
10426 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
10427 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
10429 * dvi/devdvi/FontMakefile: Generate H from cmss10.
10430 * dvi/devdvi/Makefile: Install H.
10431 * dvi/devdvi/H: New file.
10433 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
10435 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
10438 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
10440 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
10442 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
10444 * macros/tmac.s (@EN): Handle the case where the equation is empty
10445 but the label is not.
10447 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
10449 * troff/groff.h: New warning category WARN_SPACE.
10450 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
10451 WARN_SPACE to warning_table.
10452 (interpolate_macro): Give a warning of type WARN_SPACE if the name
10453 is longer than two characters and is not defined, but the first
10454 two characters do make a defined name.
10456 * PROBLEMS: New file.
10458 * CHANGES: New file.
10459 * README-0.6, README-1.00: Deleted.
10461 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
10462 * xditview/devX75/Makefile: Make devX75-12.
10463 * xditview/devX100/Makefile: Make devX100-12.
10465 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
10466 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
10468 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
10470 * README-0.7: Rename to README-1.00.
10472 * macros/tmac.pic: New file.
10473 * macros/Makefile (install.nobin): Install tmac.pic.
10475 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
10477 * troff/env.c (hyphen_word): Correct the test for whether the
10478 token is a hyphen. Reset npos to 0.
10480 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
10482 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
10484 * macros/tmac.s (ds*common-end): Call par*reset.
10486 (par@reset-indent): Deleted.
10488 * macros/tmac.s (@IP): Divert the label.
10490 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
10492 * xditview/draw.c (setGC): Use a line width of .1m rather than
10493 .04m by default; round rather than truncate value.
10495 * tbl/table.c (class empty_entry): New class.
10496 (empty_entry::empty_entry, empty_entry::line_type): New functions.
10497 (table::add_entry): Represent empty entries by objects of type
10499 (table_entry::line_type): Return -1.
10500 (table::determine_row_type): Ignore entries with line_type 0.
10501 Treat type -1 as non-lines.
10503 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
10505 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
10506 macros/tmac.s: Rename \(-d to \(Sd.
10508 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
10510 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
10511 * xditview/libXdvi/DviChar.c: Likewise.
10512 * dvi/devdvi/texsy.map: Add `<<', `>>'.
10514 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
10516 * troff/div.c (top_level_diversion::begin_page): Call
10517 init_output() if the_output is 0.
10519 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
10521 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
10523 (get_copy): Turn \E into ESCAPE_E.
10524 (token::process, asciify): Handle ESCAPE_E.
10526 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
10528 (DS): Implement `.DS R'.
10530 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
10532 * macros/tmac.s (FS): New macro.
10534 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
10536 * macros/tmac.s (cov*tl-init): Remove after first execution
10537 instead of aliasing to @nop. Call top of page macro explicitly
10538 instead of setting trap; call @init first. Set pg@top as top of
10540 (cov*auto-init): Deleted. Set cov*tl-init instead of
10541 cov*auto-init as top of page trap.
10542 (TL, LP): Do a break instead of calling cov*tl-init.
10543 (cov*print): With RP format but no TL, alias FS and FE to @FS and
10544 @FE; in this case also give a warning and always start another
10545 page. No need to set pg@top here.
10546 (cov*tl-init): Rename to cov*first-page-init.
10548 * macros/tmac.s (RP): Do `.pn 0'.
10549 (cov*tl-init): With RP format don't do `.pn 0'.
10551 * macros/tmac.s (pg@cs-top): Set no space mode.
10553 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
10554 (cov*ab-init): Alias TL, AU and AI to these.
10556 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
10558 * macros/tmac.s (@EQ): Move the space before the equation into @EN
10559 (@EN): Do nothing unless \n[dl] is > 0.
10561 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
10563 * pic/object.c (ellipse_object::radius): New function.
10565 * VERSION: Change version to 0.7.
10567 * tbl/table.c (block_entry::do_divert): Declare return type as
10569 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
10571 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
10573 * troff/column.c: New file.
10574 * troff/Makefile: Corresponding changes.
10576 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
10579 * troff/div.c (top_level_diversion::space): If the space causes
10580 the first-page transition and springs a trap, truncate the space
10583 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
10585 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
10588 * pic/troff.c (troff_output::line_thickness,
10589 troff_output::set_fill): Do a horizontal motion to compensate for
10590 the width of the \D escape sequence.
10592 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
10594 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
10597 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
10600 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
10601 Supply empty definition.
10602 (text_entry::simple_print, simple_text_entry::simple_print):
10603 Delete declarations.
10604 (table::add_entry): Represent empty entries by objects of type
10607 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
10609 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
10611 * tbl/table.c (left_text_entry::add_tab): New function.
10613 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
10614 initialize like LP.
10616 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
10618 * troff/env.c (environment::start_field): Give an error message if
10619 there is no next tab.
10621 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
10623 * troff/env.c (hyphenate): Skip initial elements with zero
10626 * macros/tmac.s (par@init): Keep VS in points rather than units.
10628 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
10630 * pic/main.c (main): Implement `-c' option.
10631 * pic/output.h: Declare make_tpic_output().
10632 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
10634 (tpic_output): New class.
10635 (tpic_output::tpic_output, tpic_output::set_pen_size,
10636 tpic_output::command, make_tpic_output): New functions.
10638 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
10640 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
10641 if they're not already defined.
10642 * tbl/table.c (init_output): Don't test \n(.g.
10644 * troff/input.c (do_if_request): Delete `g' condition. Recognize
10645 `d', `r' and `c' conditions even in compatibility mode.
10647 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
10649 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
10652 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
10654 * troff/env.h (environment::prev_line_interrupted): New member.
10655 (environment::get_prev_line_interrupted): New function.
10656 * troff/env.c (environment::newline): Set prev_line_interrupted.
10657 (environment::environment(const environment *),
10658 environment::environment(symbol)): Initialize
10659 prev_line_interrupted.
10660 * troff/input.c (process_input_stack): Don't give special
10661 treatment to space and newline at the beginning of the line if the
10662 previous line was interrupted.
10664 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
10666 * eqn/eqn.y: Disallow PRIME by itself.
10667 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
10669 (def_table): Remove definition of '. Define prime to be `.
10671 * eqn/eqn.y: Split off part of rule `script' into a new rule
10674 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
10676 * macros/tmac.s ({, }): New string aliases.
10678 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
10680 * README-0.7: New file.
10682 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
10684 * macros/tmac.s: New file.
10685 * man/groff_ms.man: New file.
10686 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
10687 * Makefile.bd: Similarily.
10688 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
10689 definition of TMAC_S.
10690 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
10691 * macros/TODO: New file.
10693 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
10695 * troff/env.c (right_justify): New function.
10696 (init_env_requests): Bind this to request "rj".
10697 (center_lines): Set right_justify_lines to 0. If we get a bad
10698 integer, center 1 line.
10699 (environment::environment(symbol), environment::environment(const
10700 environment *)): Initialize right_justify_lines.
10701 (environment::get_right_justify_lines): New function.
10702 (init_env_requests): Bind this to number_register ".rj".
10704 * troff/env.c (environment::choose_breakpoint): Implement
10705 hyphenation_margin and hyphenation_space.
10706 (environment::get_hyphenation_space,
10707 environment::get_hyphenation_margin): New functions.
10708 (init_env_requests): Bind these to .hys and .hym.
10709 (hyphenation_space_request, hyphenation_margin_request): New
10711 (init_env_requests): Bind these to hys and hym.
10712 (environment::environment(symbol), environment::environment(const
10713 environment *)): Initialize hyphenation_margin and
10715 * troff/env.h: Corresponding changes to class environment.
10717 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
10719 * troff/div.c (blank_line): Always do a break.
10721 * eqn/box.c (do_text): Turn off escapes while appending text to
10724 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
10726 * troff/input.c (while_break_request, while_continue_request): New
10728 (init_input_requests): Bind these to "break" and "continue".
10729 (while_depth, while_break_flag): New variables.
10730 (while_request): Update while_depth. Break out of loop if
10731 while_break_flag is set.
10733 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
10735 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
10738 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
10740 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
10742 * stringify: New file.
10743 * Makefile (groff.o): Use stringify.
10745 * xditview/tmac.X: Remove definition of \(rn.
10746 * xditview/libXdvi/DviChar.c: Remove radicalex from
10749 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
10751 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
10752 (alphabetic_block_entry::alphabetic_block_entry,
10753 alphabetic_block_entry::divert, alphabetic_block_entry::print):
10755 (block_entry::divert): Split off body into ...
10756 (block_entry::do_divert): If the block is alphabetic, subtract 2n
10757 from the line length; also update the span width to dl+2n, and the
10758 alphabetic span width to dl.
10760 * driver/input.c (do_file): While reading argument to D command,
10761 when expanding buffer, multiply szp by sizeof(int) rather than 2
10762 in the argument to memcpy.
10764 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
10765 width of alphabetic columns.
10767 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
10769 * troff/node.c (lookup_family): Supply second argument to lookup.
10771 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
10772 search, return immediately if v is 0.
10774 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
10775 (troff_output::start_picture): Set this reg.
10776 (troff_output::end_picture): Remove this reg
10777 * eqn/box.c (box::extra_space): Don't produce `\x's if
10778 EQN_NO_EXTRA_SPACE_REG is defined.
10780 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
10781 * eqn/text.c (split_text): Map ' to \(fm when it's the first
10784 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
10786 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
10789 * troff/div.c (top_level_diversion::top_level_diversion):
10790 Initialize page_number to 0.
10792 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
10794 * groff/troff (environment::environment(const environment *)):
10795 Initialize name to e->name, rather than "anonymous".
10797 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
10799 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
10800 requested_page. Split middle part into ...
10801 (FindPage): New function.
10802 (SetValues): If we don't yet know the last page, and the requested
10803 page is greater than the current page, call FindPage.
10804 Update the font_map_string before doing this.
10806 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
10807 Translate \(lh and \(rh into left and right double arrows.
10809 * troff/node.c (class hyphen_inhibitor_node): New class.
10810 (hyphen_inhibitor_node::hyphen_inhibitor_node,
10811 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
10812 hyphen_inhibitor_node::type,
10813 hyphen_inhibitor_node::get_hyphenation_type): New functions.
10814 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
10815 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
10818 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
10820 * troff/node.h (dummy_node::get_hyphenation_type,
10821 transparent_dummy_node::get_hyphenation_type): Declare them.
10822 * troff/node.c: (dummy_node::get_hyphenation_type,
10823 transparent_dummy_node::get_hyphenation_type): New functions.
10825 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
10827 * xditview/libXdvi/draw.c: If M_PI not defined after including
10828 math.h, then define it.
10830 * xditview/Makefile: Add definition of AR. Pass it to the submake
10832 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
10834 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
10836 * troff/dictionary.h (object_dictionary::alias): Declare return
10838 * troff/dictionary.c (object_dictionary::alias): Return non-zero
10839 if the old name was defined.
10840 * troff/input.c (alias_macro): Give a warning if the old name was
10842 * troff/reg.c (alias_reg): Likewise.
10844 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
10846 * troff/input.c (token::next): Delete implementation of \R.
10848 * macros/Makefile: Strip comments from tmac.e while installing it.
10850 * troff/input.c: New variable `nroff_mode'.
10851 (troff_request, nroff_request): New functions.
10852 (init_input_requests): Bind `troff' and `nroff' to troff_request
10854 (do_if_request): Compute results of t and n conditions from
10857 * text/text.c (split_text): Fix typo in >=.
10859 * eqn/lex.c: Add definition of `==' to def_table.
10861 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
10863 * pic/tex.c (tex_output::start_picture): Change the definitions of
10864 \graph and \graphtemp so that they work properly with Plain TeX.
10866 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
10867 argument to `ar' is not less than the first.
10869 * pic/pic.y: Allow a comma between elements of the variable list
10870 in the argument to `reset'.
10872 * pic/object.c (arc_object::arc_object): Fix computation of
10875 * eqn/main.c (main): Add exit(0).
10877 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
10879 * troff/div.c (begin_page): Test no_space_mode after doing the
10880 break, but still push the page ejector cookie before doing the
10881 break. Also set the next page number after doing the break.
10883 * xditview/xditview.c (NewFile): Don't set the title and icon name
10884 if this is the first file and its name is `-'.
10885 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
10886 the X75 and X100 devices.
10887 (main): If a device has the XT_OPTION flag set and there's exactly
10888 one file argument, pass the driver -xrm and -title options to set
10889 the icon name and window title to the name of the file.
10891 * troff/env.c (environment_switch): If there was an argument but
10892 it wasn't a valid number or name, then pop an environment but
10893 don't give an error message on underflow.
10895 * troff/number.c (start_number): Correct spelling in error message.
10897 * troff/input.c (token::delimiter): Don't print an error message
10900 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
10901 ParseDrawFunction if dw->display_enable is true.
10903 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
10905 * pic/pic.y: Parse text positioning like normal attributes, so as
10906 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
10907 positioning attribute.
10909 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
10911 * tbl/main.c (process_data): When in state START while reading a
10912 text block, don't change to state MIDDLE if c is a newline.
10914 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
10916 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
10917 so as to avoid shadowing parameter.
10919 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
10921 * tbl/table.c (trim_space): Deleted.
10922 (table::add_entry): Don't call trim_space.
10924 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
10926 * VERSION: Change version to 0.6.
10928 * troff/number.c (parse_expr): Make == work.
10930 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
10932 * man/grog.man: New file.
10933 * man/Makefile: Add grog.n to MAN1PAGES.
10934 * etc/grog.sh: New file.
10935 * etc/Makefile: Install grog.sh as grog.
10937 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
10939 * troff/input.c (token::next): Implement \E.
10941 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
10943 * xditview/tmac.X: Change font translations to match tmac.ps.
10945 * troff/input.c (non_empty_name_warning): Don't give a warning if
10946 `\{' terminates the name.
10948 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
10950 * ps/devps/symbol.diff: New file.
10951 * ps/devps/FontMakefile: Mention symbol.diff.
10953 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
10955 * troff/node.c (font_position): Use get_long_name to read the
10958 * troff/env.c (environment_switch): If we get a number that's < 0
10959 or >= NENVIRONMENTS, treat it like a name.
10960 Change NENVIRONMENTS to 10.
10962 * troff/groff.h: Remove definition of FONTS_MAX.
10963 * troff/node.h (class font_family): Make map a pointer instead of
10964 an array. Add a map_size member. Make it a class. Make nm const
10965 and public. Make invalidate_fontno a friend.
10966 * troff/node.c: Define font_table_size. Make font_info a pointer
10967 rather than an array.
10968 (class troff_output_file): Allocate font_position dynamically. Add
10969 nfont_positions member.
10970 (troff_output_file::set_font): Grow font_position if necessary.
10971 (troff_output_file::~troff_output_file): Delete font_position.
10972 (troff_output_file::troff_output_file): Allocate font_position.
10973 (grow_font_table): New function.
10974 (troff_output_file::really_begin_page,
10975 troff_output_file:really_copy_page): Use nfont_positions rather
10977 (mount_font_no_translate, mount_style): Call grow_font_table if
10979 (font_family::font_family): Allocate map.
10980 (font_family::make_definite): Grow map if necessary. Use
10981 font_table_size instead of FONTS_MAX.
10982 (font_family::~font_family): New function.
10983 (invalidate_fontno): Use font_family::map_size.
10984 (get_fontno, env_space_width, env_half_narrow_space_width,
10985 env_narrow_space_width, symbol_fotno, is_good_fontno,
10986 get_bold_fontno, make_glyph_node): Use font_table_size rather than
10988 (next_available_font_position): Never return 0.
10990 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
10992 * ps/tmac.ps: Add font translations for compatibility with dpost.
10994 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
10996 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
10997 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
10998 Move definitions baseline_sep, shift_down, column_sep,
10999 matrix_side_sep into...
11000 * eqn/box.c: Add them to param_table.
11001 * eqn/pbox.h: Add declarations to pbox.h.
11003 * troff/input.c (set_string): Cast value to unsigned char *.
11005 * troff/token.h (process_input_stack): Declare it static before
11006 declaring it a friend.
11008 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
11010 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
11012 * dvi/devdvi/EX: Regenerate.
11014 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
11017 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
11019 * eqn/lex.c: In defaults_table, make definition of `dot' call
11020 `dot_def'. Don't explicitly make it roman. Similarily for other
11023 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
11025 (for_input::get, for_input::peek): Use this.
11026 (do_for): Add by_is_multiplicative argument.
11027 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
11028 Change semantic value of optional_by to be a double plus a flag
11029 saying whethet the by clause is multiplicative.
11031 * eqn/lex.c (get_delimited_text): Remember location of start of
11032 definition. Improve error handling when EOF is encountered.
11034 * lib/font.h: Rename handle_x_command to
11035 handle_unknown_font_command.
11036 * lib/font.c (font::load): Call handle_unknown_font_command for
11037 any unknown command in the font description file. Don't call
11038 handle_x_command. Include the name of the command in the argv.
11039 Improve message for unknown command after kernpairs or charset
11041 * ps/ps.c (ps_font::handle_x_command): Rename to
11042 handle_unknown_font_command. Remove message about `x download'
11043 command. Give error message for wrong number of arguments.
11044 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
11045 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
11046 handle_unknown_font_command. Give an error message for wrong
11047 number of arguments. Rename design_size to designsize.
11048 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
11049 checksum', `designsize' instead of `design_size'.
11051 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
11053 * eqn/*.[chy]: Change underaccent to uaccent.
11055 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
11056 give it the same precedence as ACCENT.
11057 * eqn/other.c (make_underaccent_box): New function.
11058 * eqn/box.h: Declare it.
11059 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
11062 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
11064 * pic/pic.y (reset_all): New function. Called in rule for RESET.
11065 (parse_init): Call reset_all.
11066 (define_variable): When defining scale reset only those
11067 pre-defined variables that are scaled.
11068 (defaults_table): Add `scale' as non-scaled value.
11070 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
11071 together with the text; allow any number of positioning words;
11072 allow center as a positioning word.
11074 * pic/object.c (output::compute_scale): Get picture maximum height
11075 and width from variables called maxpswid and maxpsht.
11076 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
11078 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
11080 * pic/object.c (object_spec::make_text): Multiply textht by number
11083 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
11085 (do_sprintf): New function.
11086 (pic.gperf): Add sprintf token.
11087 (text, sprintf): New rules.
11089 * pic/pic.y: `rand()' with no arguments returns a random number
11090 in the range [0,1).
11092 * pic/pic.y: Allow a bare expression to be an attribute: change
11093 precedences to support this. Change optional_ordinal rule to
11094 optional_ordinal_last to avoid reduce/reduce conflict.
11095 * pic/object.c (object_spec::object_spec): Initialize direction.
11097 * pic/pic.y: Implement ^ operator meaning exponentiation.
11099 * troff/node.h: Add default argument to mount_font.
11100 * troff/node.c (font_position): Read an optional third argument
11101 giving the external_name.
11102 (mount_font): Add optional argument giving the external_name.
11103 (mount_font_not_translate): Have additional argument giving
11104 external name. Use this name to load the font. Pass both names
11105 to font_info::font_info.
11106 (font_info::font_info): Have additional argument giving
11108 (class tfont): New member external_name.
11109 (font_info::get_tfont): Use external name to construct tfont_spec.
11111 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
11113 * eqn/lex.c (init_table): Add argument giving device. Define
11114 name of device to be "1".
11115 (do_ifdef): Counts as true if the argument has been defined with
11117 * eqn/main.c (main): Call init_table with device argument. Make
11118 device local to main.
11119 * eqn/eqn.h: Change declaration of init_table. Remove declaration
11122 * pic/lex.c (get_delimited): Allow text to be delimited by
11123 matching {}s. Don't recognize ending delimiter within a string.
11125 * troff/input.c (get_delim_name): New function.
11126 (token::next): Implement \C.
11128 * lib/font.c (font::load): Grok ---. Add an alias for each
11129 character based on its code.
11130 (font::get_code_width): Deleted.
11131 * lib/font.h (class font): Declare font::number_to_index().
11132 Remove declaration of font::get_code_width.
11133 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
11134 to indices of named characters.
11135 (font::number_to_index): New function.
11136 * troff/input.c (font::number_to_index): New function.
11137 (get_charinfo_by_number, charinfo::get_number,
11138 charinfo::set_number): New functions.
11139 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
11140 (token::process, token::description, token::get_char,
11141 token::add_to_node_list, token::operator==): Handle
11142 TOKEN_NUMBERED_CHAR.
11143 * troff/charinfo.h: Declare get_charinfo_by_number,
11144 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
11146 (charinfo::numbered): New function.
11147 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
11148 * troff/env.h (class environment): Remove declaration of ...
11149 * troff/env.c (environment::make_numbered_char_node): Deleted.
11150 * troff/node.c (make_numbered_node): Deleted.
11151 (class numbered_glyph_node): Remove.
11152 (troff_output_file::put_char_width, troff_output_file::put_char):
11153 Handle numbered chars.
11154 (troff_output_file::numbered_char): Removed.
11155 (tfont::get_code_width): Removed.
11156 (make_glyph_node): Don't search special fonts for numbered
11158 * troff/node.h: Remove declaration of make_numbered_node.
11159 * driver/input.c (do_file): Handle N command.
11160 * driver/printer.h: Add declaration of ...
11161 * driver/printer.c (printer::set_numbered_char): New function.
11162 * dvi/tfmtodit.c (main): Generate unnamed entries.
11163 * ps/devps/afmtodit: Likewise.
11164 * xditview/xtotroff.c (MapFont): Likewise.
11165 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
11167 * tbl/main.c (process_format): If multiple widths are specified
11168 for a column but all the widths are the same, don't give an error
11171 * tbl/table.c (table::do_row): If the current row is all lines and
11172 the stuff doesn't contains a line, mark the top of the row after
11173 printing stuff before the row. If the current row is not all
11174 lines and the stuff doesn't contain a line, don't unnecessarily
11175 mark the top of the row before printing the stuff.
11177 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
11179 * troff/groff.h: Remove MAX_PATH.
11180 * troff/input.c (open_file): Dynamically allocate space for the
11182 (open_mac_file, process_macro_file): Corresponding changes.
11184 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
11186 * troff/node.h (class output_file): Make copy_file pure. Add
11187 vspace method ifdef COLUMN. Add is_printing method.
11188 * troff/node.c: Add class printing_reg. Add class
11189 real_output_file. Derive other output_file classes from
11190 real_output_file; in these classes rename begin_page to
11191 really_begin_page, print_line to really_print_line, copy_file to
11192 really_copy_file, transparent_char to really_transparent_char.
11193 Move output_file::flush to real_output_file. Add printing member
11194 to class output_file.
11195 * troff/div.h: Remove printing member from top_level_diversion.
11196 Add vspace member function to class diversion ifdef COLUMN. Add
11197 some declarations ifdef COLUMN.
11198 * troff/div.c (top_level_diversion::copy_file,
11199 top_level_diversion::transparent_output,
11200 top_level_diversion::output): Don't test printing member before
11202 * troff/input.c: Handle initial variable_space_request ifdef
11204 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
11205 but comment it out.
11207 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
11209 * troff/div.c (diversion::need): Make any space forced. If we
11210 sprung a trap, set truncated_space to minus the distance to the
11211 trap and set needed_space to the amount that was needed.
11212 (top_level_diversion::space): A forced space turns no_space_mode
11214 (class constant_vunits_reg): New class.
11215 (init_div_requests): Implement number registers .trunc and .ne
11216 using constant_vunits_reg.
11217 (class truncated_space_reg): Deleted.
11219 * troff/div.h: Don't have a no_space_mode member in diversion.
11220 Instead have it in top_level_diversion.
11221 * troff/div.c (diversion::diversion): Don't initialize
11223 (top_level_diversion::top_level_diversion): Initialize
11225 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
11226 (macro_diversion::output): Don't clear no_space_mode.
11228 * troff/input.c (diverted_space_node::reread): Don't call
11229 environment::do_break. In fill mode, act like a blank line.
11230 (diverted_copy_file_node::reread): Don't call
11231 environment::do_break.
11233 * troff/div.c (blank_line): New function.
11234 * troff/div.h: Declare it.
11235 * troff/input.c (process_input_stack): Call it.
11237 * troff/div.c (truncated_space_reg::get_string): New function.
11238 (init_div_requests): Bind to .trunc.
11239 (space_request, top_level_diversion::space,
11240 top_level_diversion::output, macro_diversion::space,
11241 macro_diversion::output): Update truncated_space.
11242 (macro_diversion::output): Redo calculations when trap sprung.
11243 (macro_diversion::output, macro_diversion::space): No need for
11246 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
11247 after truncating post line spacing.
11249 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
11251 * ps/devps/prologue (MF, SF): Make them work even if setfont is
11252 defined as a procedure rather than as an operator.
11254 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
11256 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
11258 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
11260 * troff/div.c (top_level_diversion::output): Merge
11261 output_file::print_line and output_file::end_of_line member
11263 * troff/div.h (class output_file):
11264 * troff/node.c (troff_output_file::print_line,
11265 troff_output_file::end_of_line, output_file::end_of_line,
11266 ascii_output_file::print_line, suppress_output_file::print_line):
11267 Corresponding changes.
11269 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
11271 * troff/input.c (token::next): Don't give a warning for `\.'.
11273 * troff/env.c (environment::get_center_lines): New function.
11274 (init_env_requests): Bind number register .ce to it.
11275 * troff/env.h: Declare it.
11276 * tbl/table.c (table::init_output): Define reset macro to restore
11277 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
11279 (table::print): If center option not given, then imply center
11280 option if SAVED_CENTER_REG > 0.
11282 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
11284 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
11285 Troff.ps from DOWNLOAD.
11287 * troff/Makefile: Change comment in DEFINES to avoid confusing
11290 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
11291 code. Don't try to catch errors with stopped.
11292 (check_line_lengths): New function.
11293 * ps/devps/prologue (EXEC): Deleted.
11294 (EBEGIN, EEND): New procedures.
11296 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
11298 * troff/input.c: Include request.h before node.h.
11299 * troff/node.c: Likewise.
11300 * troff/env.c: Likewise.
11301 * troff/div.c: Likewise.
11302 * troff/node.h (class special_node): Store argument as a macro
11303 rather than a char *.
11304 * troff/node.c (special_node::special_node, special_node::copy):
11306 (special_node::~special_node): Deleted.
11307 (special_node::tprint): Deleted.
11308 (special_node::tprint_start, special_node::tprint_end,
11309 special_node::tprint_char): New functions.
11310 (troff_output_file::special): Deleted.
11311 (troff_output_file::start_special, troff_output_file::end_special,
11312 troff_output_file::special_char): New functions.
11313 * troff/input.c (special_node::tprint): New function.
11314 (do_special): Use macro not char *.
11315 (do_transparent_macro): Deleted.
11316 (token::next): Don't call do_transparent_macro.
11318 * troff/input.c (token::next): Add 'Y' case.
11319 (do_transparent_macro): New function.
11320 * troff/node.c (troff_output_file::special): Handle newlines with
11321 argument using new continuation convention.
11322 * driver/input.c (get_string): Cope with continuation convention.
11323 (do_file): Don't call skip_line after calling get_string(1).
11324 * ps/ps.c (ps_printer::special, ps_printer::do_import,
11325 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
11327 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
11330 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
11332 * troff/input.c (asciify): By default, illegal input characters
11333 should return empty string.
11335 * troff/input.c (copy_file): Handle first page transition like title.
11336 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
11338 * troff/input.c (token::next): Improve error message for EOF after
11340 (input_char_description): New function.
11341 (get_char_for_escape_name): Use input_char_description.
11342 (token::next): Warn about unrecognized escape sequences.
11343 (warning_table): Add WARN_ESCAPE.
11344 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
11347 * troff/token.h: Remove declaration of process_input_stack.
11349 * troff/input.c: Remove declaration of init_hyphen_requests.
11350 * troff/request.h: Correct spelling in declaration of same.
11352 * troff/input.c (token::next): Check whether escape_char is 0.
11354 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
11356 * groff.c (main, usage, help): Implement -P and -L options.
11357 * groff.sh: Likewise.
11359 * troff/input.c (token::next): Use some gotos to avoid code
11362 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
11363 Avoid calling symbol::symbol if name empty.
11365 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
11367 * troff/input.c (init_input_requests): Make \n(.x return the major
11368 version number and \n(.y return the minor version number.
11369 * troff/Makefile: Construct file majorminor.c defining
11370 major_version and minor_version automatically from ../VERSION.
11372 * troff/node.c (class glyph_node): Make operator new and operator
11374 (class ligature_node): Similarily.
11376 * troff/input.c (operator==(const macro &, const macro &)): New
11378 (non_interpreted_node::same): Use this.
11379 (string_iterator::string_iterator): Make macro& argument const.
11381 * troff/input.c (input_iterator::get): New function. Don't make
11382 asciify_macro or class non_interpreted_node friends of class
11384 (non_interpreted_node::interpret): Use input_iterator::get.
11385 (asciify_macro): Likewise.
11387 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
11388 ~non_interpreted_node): Deleted.
11389 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
11392 * troff/symbol.h: Make all symbol member functions const.
11394 * lib/strtol.c: New file.
11395 * lib/Makefile: Add strtol.c.
11396 * Makefile: Define STRTOL as strtol.o to include strtol in
11399 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
11401 * pic/troff.c (troff_output::simple_circle): Divide by scale.
11403 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
11405 * troff/input.c (do_special): Use input_level.
11407 * troff/token.h (TOKEN_BACKSPACE): New token.
11408 (token::backspace): New function.
11409 * troff/input.c (token::description, token::next, token::process):
11410 Grok TOKEN_BACKSPACE.
11411 (do_special): Turn TOKEN_BACKSPACE back into \b.
11413 * troff/token.h (token::leader): New function.
11414 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
11416 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
11418 * troff/input.c (do_special): Use token::description in error
11421 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
11423 * troff/input.c (decode_args): Combine quoted and
11424 quote_input_level variables. Make it a for (;;) loop.
11426 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
11428 * troff/input.c (read_long_escape_name): The test for whether to
11429 expand buffer was off by 1.
11430 (read_string): Similarily.
11432 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
11434 * troff/input.c: Use `const int' rather than `static const int'.
11436 * troff/div.h (diversion::copy_file): Declare as pure virtual.
11437 (macro_diversion::copy_file): New function.
11438 * troff/node.h: New class diverted_copy_file_node.
11439 * troff/node.c: Implement it.
11440 * troff/input.c (copy_file): Use diversion::copy_file. Handle
11441 first page transition by pushing a diverted_copy_file_node.
11442 * troff/input.c (token::next, process_input_stack): Don't handle
11445 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
11447 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
11448 whether space widths need adjusting.
11450 * troff/charinfo.h: Generalize translated_to_space to
11451 special_translation so as to allow translation to \&.
11452 * troff/input.c (translate): Allow translation to \&.
11453 (charinfo::*): Corresponding changes.
11454 * troff/node.c (make_node, node::add_char): Corresponding changes.
11455 * troff/node.h (dummy_node::dummy_node): Allow optional first
11458 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
11459 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
11461 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
11462 TOKEN_REQUEST with an argument of TITLE_REQUEST.
11463 (token::process): Grok that.
11464 * troff/input.c (copy_file): Handle first page transition like
11465 title by pushing a COPY_FILE_REQUEST cookie.
11466 (token::next, process_input_stack): Grok that.
11467 * troff/node.h (output_file::copy_file): Add x and y arguments.
11469 * troff/div.c (top_level_diversion::copy_file): Supply them.
11470 * troff/node.c (troff_output_file::copy_file): Add x and y
11471 arguments; moveto specified position. Invalidate font_position
11472 array after copying file.
11473 (output_file::copy_file): New function.
11474 (suppressed_output_file::copy_file, ascii_output::copy_file):
11476 * troff/input.c (transparent_file): New function.
11477 (init_input_requests): Bind to "trf".
11478 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
11479 (process_input_stack): Likewise.
11481 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
11483 * troff/node.c (init_node_requests): New number registers .kern
11484 pointing to global_kern_mode, and .lg pointing to
11485 global_ligature_mode.
11487 * troff/node.c (ligature): Don't change it if we get a bad
11490 * troff/input.c (do_define_string): Don't strip tabs.
11492 * troff/input.c (asciify_macro): Make the string_iterator auto.
11494 * troff/node.c (init_font_requests): Rename to...
11495 (init_node_requests):
11496 * troff/node.h: Change declaration.
11497 * troff/input.c (main): Change call.
11499 * troff/input.c (node::reread, diverted_space_node::reread): New
11501 (process_input_stack): Call reread rather than
11502 get_diverted_space_node.
11503 * troff/node.c (node::get_diverted_space_node,
11504 diverted_space_node::get_diverted_space_node): Removed.
11505 * troff/node.h: Declare reread methods instead of
11506 get_diverted_space_node methods. Make `n' member private.
11507 * troff/input.c: (token::diverted_space): Removed.
11508 * troff/token.h: Removed declaration.
11511 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
11513 * eqn/script.c (script_box::compute_metrics): Don't let
11514 SUP_RAISE_FORMAT become negative.
11516 * tbl/table.c (table::do_row): Entries that don't end in the
11517 this row shouldn't make the row non-blank.
11519 * tbl/table.c (table::make_columns_equal): Only set the width of
11520 columns which are marked as equal.
11522 * tbl/main.c (process_data): Before issuing excess data error,
11523 if last character was a newline unget it; then get it again after
11524 the error. Also include the contents of the entry in the message.
11526 * groff.c: New file.
11527 * Makefile: Build groff from groff.c. Make it possible to use
11528 either groff.sh or groff.c as groff.
11529 * Makefile.bd: Similarily.
11531 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
11533 * groff.sh: Don't delay expansion of $@ in assignment to files.
11534 Remove occurrences of \".
11536 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
11538 * all Makefiles: Simplify and rearrange.
11540 * Makefile: Handle fmod like malloc.
11541 * lib/Makefile: Similarily.
11542 * lib/fmod.c: Remove #ifdef NEED_FMOD.
11544 * Makefile: Rename OPTIMISE to OPTIMIZE.
11546 * groff.sh: Remove assignment to PATH.
11547 * Makefile: Remove SHPATH variable.
11548 * Makefile.bd: Similarily.
11550 * groff.sh: Add -V option to print the pipeline instead of
11553 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
11555 * lib/font.c: Split off file searching into ...
11556 * lib/fontfile.c: New file.
11558 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
11560 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
11562 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
11563 Also change misleading comment.
11564 (table::do_vspan): Change similarily misleading comment.
11565 * tbl/main.c (process_data): A format row with an explicit `s'
11566 uses up a data line, even if all the other columns are `_' or `='.
11568 * troff/input.c (token::description): Fix description of
11569 TOKEN_DUMMY and TOKEN_EMPTY.
11571 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
11573 * groff.sh: Fix description of -Z in help message.
11575 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
11577 * pic/object.c (object_spec::make_object): Allow negative and zero
11579 * pic/pic.y: Give linethick default value of -1.0.
11580 * pic/troff.c (troff_output::troff_output): Initialize
11581 last_line_thickness to BAD_THICKNESS.
11582 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
11583 (troff_output::line_thickness): Canonicalize negative thicknesses
11584 to RELATIVE_THICKNESS.
11585 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
11586 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
11588 (tex_output::start_picture): Set pen_size to -2.0.
11590 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
11591 0, then use 0 linewidth.
11592 (ps_printer::ps_printer): Initialize line_thickness to -1.
11594 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
11596 * ps/devps/symbolchars: Remove `or'.
11597 * ps/tmac.ps: Implement \(or with .char.
11599 * ps/devps/symbolchars: Move most characters into textmap.
11600 * ps/devps/textmap: Add names for troff bracket characters. Remove
11603 * ps/devps/TSymbol.ps: Removed.
11604 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
11605 * ps/tmac.ps: Do with .char what TSymbol did.
11606 * ps/devps/download: Remove TSymbol.
11608 * ps/devps/T: Removed.
11609 * ps/devps/Troff.ps: Removed.
11610 * ps/devps/Troff.afm: Removed.
11611 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
11612 * ps/devps/download: Remove Troff.
11613 * ps/devps/FontMakefile: Remove T target.
11614 * ps/devps/DESC-A4: Remove T from font list.
11615 * ps/devps/DESC-letter: Likewise.
11617 * troff/input.c (macro_to_node): Rename to ...
11618 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
11619 character's definition while processing it.
11620 * troff/node.c (node::add_char, make_node): Change calls to
11621 macro_to_node accordingly.
11623 * troff/input.c (token::next): Translate \_ to \(ul.
11625 * tty/devascii/R.proto: Add `|'.
11626 * tty/devlatin1/R.proto: Likewise.
11628 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
11630 * man: Put the version number in all the man pages.
11632 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
11634 * Makefile.bd: New file.
11635 * README.bd: New file.
11637 * VERSION: New file.
11638 * lib/version.c: Removed.
11639 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
11642 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
11643 environment variable.
11645 * all Makefiles: Split install target into install.bin for
11646 binaries, and install.nobin for everything else.
11647 * Makefile: Add bindist target.
11649 * man/afmtodit.man: New file.
11650 * man/Makefile: Add afmtodit.n to MAN1PAGES.
11651 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
11653 * ps/Makefile: Pass BINDIR to make install in devps.
11655 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
11656 the space character.
11658 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
11660 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
11662 * ps/ps.c: Redo font downloading.
11663 * ps/devps/download: New file.
11664 * ps/devps/Makefile: Add download to DEVICEFILES.
11665 * ps/devps/afmtodit: Remove -d option.
11666 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
11667 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
11668 * ps/devps/zapfdr.ps: Likewise.
11669 * ps/devps/TSymbol.ps: Likewise.
11671 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
11673 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
11675 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
11677 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
11678 then strip the first line if it starts with %.
11679 * Makefile: Add a comment about this.
11681 * man/tfmtodit.man: New file.
11682 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
11683 * dvi/Makefile: Install tfmtodit in BINDIR.
11685 * dvi/tfmtodit.c (usage): Mention -v option.
11687 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
11689 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
11690 * troff/node.c (troff_output_file::transparent_char): Don't call
11693 * eqn: Add check_tabs method to most box classes.
11694 * eqn/box.c (box::top_level): Call check_tabs.
11696 * eqn/script.c (script_box::output): Use \Z.
11697 * eqn/limit.c (limit_box::output): Use \Z.
11699 * eqn/box.c (box::top_level): Use itoa.
11701 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
11703 * dvi/tmac.dvi: Add font translations for CR, C, TT.
11704 * dvi/devdvi/Makefile: Don't make links to CW.
11706 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
11708 * xditview/tmac.X: Likewise.
11710 * troff/node.c: Add font translation feature.
11711 (get_font_translation): New function.
11712 (symbol_fontno): Translate the font name.
11713 (mount_font_no_translate): Rename to mount_font to this.
11714 (mount_font): New function.
11715 (font_family::make_definite): Call mount_font_no_translate instead
11717 (mount_style): Translate the font name.
11718 (font_translate): New function.
11719 (init_font_requests): Bind "ftr" to font_translate.
11721 * ps/devps/prologue (SN): New procedure that rounds a position to
11722 the nearest (pixel + (.25,.25)).
11723 (DL): Use SN to round endpoints.
11725 * lib/version.c: Changed version to 0.5.
11727 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
11729 * Makefile: Move definition of PAGE to the very beginning, so that
11730 people are less likely to miss it.
11732 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
11734 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
11736 * troff/env.c (environment::choose_breakpoint): Make `can't find
11737 breakpoint' error a warning of type WARN_BREAK. Change message to
11738 `can't break line'.
11739 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
11741 * troff/input.c: Add WARN_BREAK to warning_table. Include
11742 WARN_BREAK in DEFAULT_WARNING_MASK.
11744 * tty/tmac.tty: Add definition of \(+-.
11746 * groff.sh: Remove `--' option to set command.
11748 * dvi/devdvi/texsy.map: Remove duplicate md entry.
11750 * ps/devps/eqnchar: Better definition of cdot using md.
11751 * dvi/devdvi/eqnchar: Likewise.
11752 * xditview/devX100/eqnchar: Likewise.
11753 * xditview/devX75/eqnchar: Likewise.
11754 * eqn/lex.c: Add definition of cdot.
11756 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
11758 * troff/input.c (get_optional_char): New function.
11759 * troff/input.c (set_page_character): Use get_optional_char(),
11760 rather than has_arg() and tok.get_char(1).
11761 * troff/env.c (tab_character, leader_character, hyphen_char,
11762 field_characters): Likewise.
11763 (margin_character): Likewise. Also always delete the
11764 margin_character_node.
11766 * troff/input.c (token::get_char): Use token::description.
11768 * troff/input.c (has_arg): Don't skip over tab and \}.
11769 * troff/number.c (start_number): Give a warning if the number
11770 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
11772 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
11774 * troff/input.c (empty_name_warning, non_empty_name_warning): New
11776 (get_name, get_long_name): Use these. Rename `warn' argument to
11779 * troff/node.c (get_fontno): Test that the symbol is not null.
11781 * troff/input.c (token::description): New function.
11782 * troff/number.c (parse_term): Use token::description in `numeric
11783 expression expected' message.
11784 * troff/groff.h: Add WARN_MISSING.
11785 * troff/number.c (start_number): New function.
11786 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
11787 get_incr_number): Use start_number().
11788 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
11790 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
11791 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
11793 * troff/input.c (token::get_char): Use WARN_MISSING.
11794 * troff/input.c (token::delimiter): Use token::description.
11795 * troff/env.c (environment_switch): Back out Aug 3 change.
11796 * troff/input.c (has_arg): Skip over \}s and tabs but give a
11798 * troff/token.h (token::tab): New function.
11799 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
11800 * troff/reg.c (alter_format): Likewise.
11801 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
11803 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
11805 * troff (most files): Redo warnings. Divide warnings into various
11806 categories; warning() has an additional first argument indicating
11807 the category it falls into.
11808 * troff/input.c (main): -w now takes an argument. New option -W.
11809 (enable_warning, disable_warning): New functions.
11811 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
11812 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
11814 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
11816 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
11817 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
11818 * xditview/devX75/eqnchar: Likewise.
11819 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
11821 * eqn/other.c: When bar or over applies to a single character
11822 don't produce an overline_box or an underline_box. Instead produce
11823 an accent_box or an underaccent_box, with the accent a line
11824 whose width is accent_width. New classes underaccent_box,
11825 overline_char_box and underline_char_box.
11826 * eqn/box.h: Move overline_box, underline_box, accent_box class
11827 declarations into eqn/other.c. Add declarations of
11828 make_underline_box, make_overline_box, make_accent_box.
11829 * eqn/eqn.y: Call make_overline_box, make_underline_box
11830 make_accent_box instead of constructors.
11831 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
11833 * eqn/other.c: Add accent_box::~accent_box.
11834 * eqn/box.h: Declare it.
11836 * groff.sh: With -Tps, use eqn -D.
11838 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
11840 (underline_box::output): Similarily.
11841 (accent_box::output): Use \Z.
11843 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
11846 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
11848 * troff/div.c (top_level_diversion::transparent_output(unsigned
11849 char)): Use asciify.
11850 * troff/input.c (asciify): Don't make it static.
11851 * troff/token.h (asciify): Declare it.
11853 * troff/input.c (get_name, get_long_name, token::get_char,
11854 token::delimiter): Add an extra default argument which says
11855 whether a warning should be printed.
11856 * troff: Pass a non-zero argument to one of these rather than
11857 printing a warning directly.
11859 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
11861 * troff: Consistently use symbol::is_null.
11863 * troff/dictionary.h: Move some inline functions into
11866 * troff/request.h: Move inline functions into input.c.
11867 (request_or_macro::invoke): Make it pure.
11869 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
11870 * troff/input.c (init_input_requests): Use class constant_int_reg.
11871 (class compatible_reg): Deleted.
11872 * troff/div.c (init_div_requests): Use class constant_int_reg.
11873 (class last_post_line_extra_space_reg): Deleted.
11875 * troff/env.c (tab_character): Don't change the tab character if
11876 we get an invalid argument.
11877 (hyphen_char): Similarily.
11879 * troff/reg.c (alter_format): Check that nm is not null.
11881 * Makefile, groff.sh: Make it possible to customize the commands
11882 used for printing PostScript and dvi files. Also make it possible
11883 to customize the path used by groff.sh.
11885 * eqn/eqn.y: Make `left' right associative.
11887 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
11889 * pic/pic.h: Added definition of M_SQRT2 for those systems that
11892 * pic/pic.h: Removed definition of INT_MAX.
11894 * troff/node.c (italic_corrected_node::vertical_extent): Omit
11897 * troff/input.c (token::next): Handle \R like \n.
11899 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
11901 * ps/tmac.pc (PSPIC): Simplify.
11903 * troff/env.c (tab_stops::to_string):
11904 * pic/pic.y (object_type_name):
11905 * pic/troff.c (simple_output::line):
11906 * pic/tex.c (tex_output::spline):
11907 * pic/object.c (object_spec::make_object):
11908 * tbl/main.c (process_data): Add cases to switch statements to
11909 avoid cfront warnings. (Some of these are spurious, since the
11910 switch already has a default case.)
11912 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
11913 `ps-'. Don't test systat; instead check number of arguments to
11916 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
11918 * macros/tmac.e: Do not decrease the page offset by 0.5i.
11920 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
11921 Unlink the file as soon as we have opened it, so that we don't
11922 have to bother with signal handlers.
11923 (handler): Deleted.
11924 (fatal_error_exit): Deleted.
11925 (main): Don't call signal.
11927 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
11929 * dvi/devdvi/Makefile: Use the -k option with S and MI.
11931 * pic/pic.y: If there is a label, or an nth construction before
11932 the first `.' in the argument to `with', ignore it and generate a
11934 * pic/lex.c (lex_warning): New function.
11936 * tbl/table.c (table::init_output): In section keep and release
11937 macro, use 0 indent when diverting and the correct indent when
11940 * troff/input.c (interpolate_number_format): Do not interpolate
11941 anything if the number register is not defined.
11943 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
11945 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
11947 * ps/devps/prologue (PICTURE): Set components of graphics state to
11948 their default values.
11950 * ps/devps/text.enc: Add trademark
11951 * ps/devps/textmap: Add names for club, spade, heart, diamond,
11952 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
11953 * ps/devps/symbolchars: Add names for summation and product.
11955 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
11956 suchthat. Add pp. Add upper-case letters.
11958 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
11959 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
11962 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
11963 rA (right angle bracket) to ra. Introduce names for double-headed
11964 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
11965 * ps/devps/textmap: Likewise for ps device.
11966 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
11967 * tty/devascii/R.proto: Rename lA to la and rA to ra.
11968 * tty/devascii/R.proto: Likewise.
11969 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
11971 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
11973 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
11975 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
11978 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
11980 * troff/div.c (when_request): Use symbol::is_null rather than
11981 has_arg to determine whether we have an argument.
11982 (change_trap): Remove the trap if we get an invalid number. Give
11983 an error if we don't get at least the macro name.
11984 (diversion_trap): Remove trap if we get an invalid name or number.
11986 * troff/env.c (environment_switch): Pop if we get an invalid
11987 symbol or numeric expression.
11989 * troff/input.c (do_define_macro): If EOF is encoutered while
11990 defining the macro, do tok.next() before returning.
11992 * troff/token.h (has_arg): Move definition from here, to ...
11993 * troff/input.c (has_arg): ... here
11995 * troff/env.c (space_size): Do nothing if we get an invalid argument.
11996 * troff/input.c (shift): Likewise.
11998 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
12001 * pic/troff.c (troff_output::start_picture): Comment out calls to
12004 * eqn/main.c (do_file): Subtract 1 from current_lineno if
12005 interpret_lf_args succeeds.
12007 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
12008 \\. This avoids problems with \$N.
12010 * groff.sh: Pass -C to preprocessors.
12012 * lib/lf.c (interpret_lf_args): Be more flexible.
12014 * tbl/main.c (main): Add -C option.
12015 (table_input::get): Do not recognize TE if followed by character
12016 other than a space or newline unless -C option given.
12017 (process_input_file): Likewise for lf, TS.
12018 (process_data): Likewise for lf in text blocks.
12020 * eqn/main.c (main): Add -C option.
12021 (do_file): Don't recognize EQ, EN or lf if followed by character
12022 other than space or newline unless -C option given.
12023 * eqn/lex.c (file_input::read_line): Similarily.
12024 * eqn/eqn.h: Declare compatible_flag.
12026 * etc/soelim.c (main): Add -C option.
12027 (interpret_lf_args): Use version in libgroff.
12030 * pic/main.c (main): Add -C option, which sets compatible_flag.
12031 (top_input::get), (top_input::peek): If -C option not given,
12032 do not recognize .PS/.PE/.PF/.lf if followed by a character
12033 other than space or newline.
12034 * pic/lex.c (file_input::read_line): Similarily.
12035 * pic/pic.h: Add declaration of compatible_flag.
12037 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
12039 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
12041 * troff/node.c, troff/node.h: Add `asciify' methods to classes
12042 derived from node. New class space_char_hmotion_node.
12043 * troff/input.c (asciify_macro): New function.
12044 * troff/input.c (init_input_requests): New request `asciify' bound
12046 * macros/mm.diff: New file.
12047 * Makefile: In install.mm target use `patch' to apply
12050 * troff/input.c (macro::print_size): Just print the size in bytes.
12052 * troff/div.c (return_request): Correct the argument
12055 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
12057 * troff/node.h (class composite_node): Add sz member.
12058 * troff/node.c (composite_node::size): Return sz.
12059 * troff/input.c (macro_to_node): Use the initial size in the
12060 environment as the size of the composite_node.
12062 * troff/node.c (node::zero_width_tprint): Provide a reasonable
12065 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
12067 * troff/div.c (change_trap): If we get a bad number expression,
12070 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
12072 * lib/matherr.c (matherr): Define this only if math.h defines
12075 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
12077 * troff/div.c (macro_diversion::distance_to_next_trap): If there
12078 no diversion trap return vunits(INT_MAX - vresolution).
12080 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
12082 * troff/input.c (do_zero_width): New implementation that doesn't
12083 use a temporary environment. Use instead:
12084 (token::add_to_node_list): New function.
12085 * troff/env.c (environment::get_prev_char_height),
12086 (environment::get_prev_char_height),
12087 (environment::get_prev_char_skew): New functions.
12088 (environment::get_prev_char): New function.
12089 (environment::get_prev_char_width): Change to use get_prev_char.
12090 (init_env_request): Implement new registers .cht, .cdp, .csk.
12091 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
12092 \Z being processed in a separate environment.
12094 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
12096 * tbl/table.c: Removed TABLE_BOTTOM_REG.
12098 * tbl/table.c (table::init_output): In the section release macro,
12099 give a warning message if the section won't fit on one page.
12101 * tbl/table.c (table::do_top): Emit table keep only if table is
12103 (table::do_bottom): Likewise for table release.
12104 (table::table), (table::add_vertical_rule): Remove reference to
12106 * tbl/table.h: Remove keep member.
12108 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
12109 SECTION_RELEASE_MACRO, if there's not enough space before the next
12110 trap to output the diversion, call T# ourselves, set
12111 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
12112 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
12113 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
12114 vertical position and return to it before turning traps on again.
12116 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
12118 * troff/node.c, troff/node.h: In classes derived from node,
12119 replace prev_char_width method by last_char_node method.
12120 * troff/env.c (environment::get_prev_char_width): Use
12121 node::last_char_node rather than node::get_prev_char_width.
12123 * Makefile: Added comment about -fno-inline on 68030-based
12126 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
12127 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
12128 expressions using sizeof to int.
12129 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
12131 * macros/tmac.e (TS): Don't move @f back past the current
12134 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
12136 * ps/ps.c (main): Buffer stderr.
12137 * dvi/dvi.c (main): Likewise.
12138 * tty/tty.c (main): Likewise.
12140 * ps/ps.c (ps_printer::do_import): Improve error handling.
12142 * troff/input.c (abort_request): Use asciify.
12144 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
12145 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
12146 type of first argument int rather than char. This works around a
12147 bug on the 68030 based Apollo using g++ 1.37.1.
12149 * tbl/table.h (class table): Add `keep' member.
12150 * tbl/table.c (table::table): Initialize `keep'.
12151 (table::add_vertical_rule): Set `keep' to 1.
12152 (table::do_top): Only emit table keep macro is `keep' is non-zero.
12153 (table::do_bottom): Likewise for table release macro.
12154 (table::do_row): Emit section keep macro even if the row is 0.
12156 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
12158 * macros/tmac.e (@C): Preserve the font family across the change
12161 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
12163 * lib/font.c: Initialize font::hor and font::vert to 1.
12164 (font::load_desc): Check the values of font::hor and font::vert.
12166 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
12167 be included in a C compilation.
12168 (iftoa): Use INT_DIGITS. Include lib.h.
12170 (as_string): Likewise.
12171 * tbl/table.c: Removed definition of INT_DIGITS.
12172 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
12173 * troff/input.c (input_input_requests): Likewise.
12174 * ps/ps.c (make_encoding_name): Likewise.
12175 (ps_printer::set_style): Likewise.
12176 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
12178 * tty/devascii/R.proto: Map fm onto '.
12179 * tty/devlatin1/R.proto: Likewise.
12181 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
12183 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
12184 argument to \w is at a different input level.
12186 * tbl/table.c (table::init_output): Define a new macro
12187 REPEATED_VPT_MACRO, like vpt but if in a diversion also
12188 transparently outputs itself.
12189 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
12191 (table::do_row): Likewise.
12193 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
12194 TRANSPARENT_STRING_NAME.
12196 * tbl/table.c (table::init_output): In the table release macro
12197 print an error message and don't produce any output if after
12198 issuing the need request the table still will not fit. Also
12199 remove the diversion after bringing it back.
12201 * tbl/table.c (table::init_output): Define a new macro
12202 REPEATED_MARK_MACRO, like mk but if in a diversion also
12203 transparently outputs itself.
12204 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
12205 is necessary because .TH might not call .T#.
12206 (table::do_top): Likewise TOP_REG.
12207 (table::define_bottom_macro): If TOP_REG is no longer valid, use
12208 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
12209 table header might contain just the two top rules.
12211 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
12213 * troff/div.c: Implement new request `ptr' to print all traps.
12215 * troff/env.c (init_env_requests): Implement `.tabs' reg with
12216 init_string_env_reg.
12217 * troff/env.c (class tab_reg): Deleted.
12219 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
12221 * troff/div.c: New number register .pn returns the number of the
12222 next page as set by the pn request.
12224 * macros/tmac.an: Redid headers and footers. Number each manual
12225 entry starting from 1 unless \nC is > 0, like Sun. Added an
12226 optional 5th argument to .TH which specifies the manual name and
12227 appears in the center of the header. Understand the X, P and D
12228 registers like Sun.
12230 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
12232 * troff/env.c (init_env_requests): New number register `.lt' to
12233 return the title length.
12235 * troff/node.h (class transparent_dummy_node): New class.
12236 * troff/node.c (class transparent_dummy_node): Provide member
12238 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
12241 * troff/input.c (token::next): New escape sequence \).
12242 * troff/input.c (get_copy): Recognize \) in copy mode.
12244 * troff/input.c (input_stack::clear): New function.
12245 * troff/input.c (exit_request): Use input_stack::clear.
12247 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
12248 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
12250 * troff/env.c: Move set_page_character to input.c. Move
12251 page_character to input.c also.
12252 * troff/env.c (title): Split off the reading of the parts of the
12253 title into read_title_parts.
12254 * troff/input.c (read_title_parts): New function. Check the
12255 input_level when testing whether a token matches the delimiter.
12257 * troff/input.c (exit_request): New function.
12258 * troff/input.c (init_input_requests): Bind ex request to
12259 exit_request rather than exit_groff.
12261 * troff/input.c (exit_groff): Call tok.next() before
12262 process_input_stack().
12264 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
12266 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
12267 * troff/env.h: ditto.
12268 * troff/input.c: ditto.
12270 * troff/env.c (environment::is_empty): Test pending_lines.
12272 * troff/env.c (environment::have_pending_lines): Removed.
12274 * troff/input.c: Add request to flush pending lines from the
12277 * troff/env.c, troff/env.h: Add automatic widow control feature.
12279 * troff/input.c (exit_groff): Do process_input_stack() after
12280 do_break() but before setting exit_flag to 2.
12282 * troff/input.c: Remove FLUSH_PENDING_LINES and
12283 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
12284 environment after END_TRAP token seen, but only if there aren't
12285 any more traps still unfinished.
12286 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
12288 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
12290 * troff/env.c: Rename the `retain_size' member of class
12291 pending_output_line to `no_fill'.
12293 * troff/env.c (title): When the line is output, make the
12294 retain_size argument !fill.
12296 * troff/node.h: Add `hyphenated' member to struct breakpoint.
12297 * troff/node.c (space_node::get_breakpoints),
12298 (dbreak_node::get_breakpoints): Fill this in.
12299 * troff/env.c: Allow specification of maximum number of
12300 consecutive hyphenated lines.
12302 * troff/env.c (environment::is_empty): Add test for !current_tab.
12304 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
12306 * troff/env.c (environment::hyphenate_line): Don't completely give
12307 up if the word is not to be hyphenated; continue so that breaks
12308 can be made at break_char_node's.
12310 * lib/lib.h: Only define INT_MAX if it's not already defined;
12311 undef INT_MIN if it's already defined.
12313 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
12315 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
12316 This works around a bug in AT&T C++ 2.0 used with an ANSI C
12319 * macros/tmac.an (an-header): Set no-space mode.
12321 * macros/tmac.an (TH): Start a new page if necessary.
12323 * Started using ChangeLog at version 0.4.
12326 version-control: never