1 2003-02-28 Werner LEMBERG <wl@gnu.org>
3 * font/devdvi/generate/ec.map: Add some more Unicode entities.
4 * font/devdvi/*EC: Updated.
6 * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
7 * tmac/latin1 (latin1-tr): Undo any previous mapping.
8 * tmac/troffrc: Load `composite.tmac'.
9 * tmac/Makefile.sub (NORMALFILES): Updated.
13 2003-02-27 Werner LEMBERG <wl@gnu.org>
15 * doc/texinfo.tex: New version 2003-02-11.06.
17 * tmac/doc-common (Dt): Don't emit warning for unknown section.
18 * tmac/groff_mdoc.man: Fix description of `Dt'.
20 2003-02-26 Egil Kvaleberg <egil@kvaleberg.no>
22 * font/devps/prologue.ps: Fix for included Postscript that does
23 a setpagedevice -- which is now safely ignored.
27 * src/devices/grops/ps.cc: Now sets the page size in the generated
28 document. This is done in two ways: Via a %%-comment for gv and
29 the like, and via a PageSize and setpagedevice for programs that
30 understands Postscript proper, like ps2pdf.
32 * src/devices/grops/ps.h: New broken-flag to avoid page size
33 definition, if required.
35 * src/devices/grops/grops.man: New broken-flag 16 mentioned.
37 * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
38 Not really necessary due to the fix in prologue.ps, but cleaner:
39 Such information does not belong in an .eps file.
41 * doc/Makefile.sub: See doc/Makefile.in.
43 2003-02-26 Ralph Corderoy <ralph@inputplus.co.uk>
45 * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
46 instead of P1 since the latter is broken in some versions of netpbm.
49 2003-02-26 Larry Kollar <kollar@alltel.net>
51 Make man pages more customizable.
53 * tmac/an-old.tmac (FT): New register holding footer distance from
55 (HF): New string holding the default heading font.
56 (TH): Handle registers `IN' and `SN' set on the command line.
58 (PT, BT): New strings to customize header and footer lines.
59 (an-header, an-footer): Use them.
61 * tmac/groff_man.man: Document changes.
63 * doc/groff.texinfo: Document man changes.
64 Document Ultrix extensions of man.
66 2003-02-26 Werner LEMBERG <wl@gnu.org>
68 * src/roff/troff/input.cc (do_width, do_if_request): Reset
69 `have_input' after changing back to old environment.
71 * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
72 function up to be defined before first call. This is necessary to
73 avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
75 * src/utils/afmtodit/afmtodit.pl: Make script search for files in
76 the default font directory also. Based on a patch from James
77 J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
78 * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
79 * src/utils/afmtodit/afmtodit.man: Document it.
83 * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
85 2003-02-25 Gaius Mulley <gaius@glam.ac.uk>
87 * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
88 (GROFF_PNMTOPS_NOSETPAGE): New macro.
89 * configure.ac: Use it.
90 * configure: Regenerated.
91 * Makefile.in: Updated.
93 * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
94 (CLEANADD): Add www.tmac-sed.
95 (pnmtops_nosetpage): Define default.
96 (install_data): Handle www.tmac-sed and substitute
98 (stamp-sed): Add www.tmac.
99 * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
100 It now breaks URLs at suitable places.
101 (www:substring_ok): New register set by...
102 (www:@test_substring): New macro.
103 (www:error): New alias to www-error.
104 (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
106 (URL): Use www:url_breaks.
107 (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
108 (CDS, CDE): New macros.
110 2003-02-25 Werner LEMBERG <wl@gnu.org>
112 * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
115 2003-02-24 Werner LEMBERG <wl@gnu.org>
117 Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
118 can be negative also.
120 * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
122 (read_char_table): Avoid negative ascenders.
123 (output_charset): Add cast.
124 * font/devlj4/*: Regenerated.
126 Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
129 * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
130 * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
132 * font/devdvi/*: Regenerated.
134 Map `la' and `ra' to U+27E8 and U+27E9. These two characters have
135 normal width, while the previously used characters (U+2329 and
136 U+232A) are classified as wide due to canonical equivalence with the
137 CJK punctuation characters U+3008 and U+3009.
139 * font/devutf8/R.proto: Updated.
140 * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
142 * man/groff_char.man: Simplify handling of table traps by
143 introducing `start block' and `end block' macros.
144 (Ns, Ne, 2s, 2e, Ds, De): New macros.
145 (DL): Make it work with Unix troff also.
146 Fix code values of `la' and `ra'.
148 * tmac/dvi.tmac: Define `<>' for CW and CWI.
150 2003-02-23 Gaius Mulley <gaius@glam.ac.uk>
152 * src/devices/grohtml/post-html.cc (element_list::~element_list):
153 New destructor, fixing a major memory leak.
155 2003-02-22 Werner LEMBERG <wl@gnu.org>
157 * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
158 to be conform with Unicode 3.0 and newer.
160 * font/devlj4/generate/text.map: Add `Eu'.
161 * font/devlj4/generate/special.map: Flip `*e' and `+e'.
162 * font/devlj4/S: Regenerated.
164 * man/groff_char.man: Completely rewritten.
166 * doc/groff.texinfo: Fix description of request and macro arguments.
168 2003-02-20 Gaius Mulley <gaius@glam.ac.uk>
172 * src/devices/grohtml/html-table.cc (html_table::~html_table):
173 Deallocate `columns' list.
174 * src/devices/grohtml/post-html.cc (char_block::~char_block):
176 (text_glob::text_glob_html, text_glob::text_glob_special,
177 text_glob::text_glob_line, text_glob::text_glob_auto_image,
178 text_glob::text_glob_tag): Avoid memory leaks.
179 (text_glob::remember_table): Free memory before reassigning.
181 2003-02-19 Werner LEMBERG <wl@gnu.org>
183 Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
184 alias `hbar'), the Planck constant over two pi.
186 * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
187 `+e' for position 34.
188 * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
190 * font/devdvi/{MI,S}: Regenerated.
191 * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
192 * font/devlbp/*: Add `hbar' alias.
193 * font/devlj4/generate/special.map: Ditto.
194 * font/devlj4/S: Regenerated.
195 * font/devps/generate/symbolchars: Add `+e'.
196 * font/devps/generate/textmap: Fix PS name for `-h'.
198 * font/devps/symbolmap: Regenerated.
200 * src/devices/grops/ps.cc (transform_fill): Removed since unused.
202 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
204 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
207 * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
209 * tmac/tty-char.tmac: Add `+e'.
211 2003-02-17 Werner LEMBERG <wl@gnu.org>
213 Another round trying to really fix problems with `have_input'.
215 * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
216 (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
218 * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
219 handling if both foreground and background colors are default.
221 * doc/groff.texinfo (Debugging): Document .lf differences to
224 2003-02-16 Werner LEMBERG <wl@gnu.org>
226 * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
227 null-bytes in created string.
229 * src/roff/troff/input.cc (lookup_color, interpolate_macro,
230 alias_macro, lookup_request): Improve warning messages.
232 * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
234 Free `last_image_filename'.
236 * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
238 (imageList::createPage, imageList::createImage): Use `free', not
240 (imageItem::~imageItem): Free `imageName'.
241 (addRegDef): Use `strsave', not `strdup'.
242 (get_resolution): Free `pathp'.
244 2003-02-15 Werner LEMBERG <wl@gnu.org>
246 * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
249 2003-02-14 Werner LEMBERG <wl@gnu.org>
251 Add memory management for colors to deallocate unnamed colors
254 * src/include/color.h (color): New members `free_list' and `next'.
255 New member functions `new' and `delete'.
257 * src/libs/libgroff/color.cc: Implement it.
259 * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
260 for array size of new operator.
262 * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
263 redundant comparison.
265 * src/roff/troff/input.cc (word_space_node::reread,
266 hmotion_node::reread): Avoid warning about unused parameter.
267 (reset_output_registers): Remove redundant parameter.
268 (define_color): Undo change 2003-02-12.
270 * src/roff/troff/reg.h: Updated.
272 * src/roff/troff/node.cc (troff_output_file::really_print_line,
273 output_file::put_filename, real_output_file::really_put_filename,
274 ascii_output_file::really_print_line,
275 break_char_node::get_hyphen_list): Avoid warning about unused
277 (suppress_node::tprint): Updated.
279 * configure.ac: Check declaration for rand() and srand().
280 * configure: Regenerated.
282 * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
284 * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
287 * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
288 to avoid compiler warnings.
290 * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
293 * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
295 * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
299 * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
301 * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
302 * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
304 * src/devices/grohtml/post-html.cc (html_printer::emit_line):
306 (html_printer::add_table_end): Define parameter conditionally.
307 * src/devices/grohtml/output.cc (simple_output::special): Parameter
310 * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
311 (lbp_printer::set_char): Last parameter is unused.
313 * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
315 2003-02-13 Werner LEMBERG <wl@gnu.org>
317 New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
318 Make \D'f ...' move horizontally again for backwards compatibility.
319 Replace it with \D'Fg ...' where appropriate to avoid dependency
320 on horizontal resolution.
322 * src/roff/troff/input.cc (do_get_long_name): New function.
323 (get_long_name): Call it.
325 (read_draw_node): Handle `\D'Fx ...' by calling ...
326 (read_color_draw_node): New function.
328 (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
330 Pass it to `do_get_long_name' which is used instead of
333 * src/libs/libdriver/input.cc (color_from_Df_command): Remove
334 unnecessary value guard.
335 (parse_D_command) <'f'>: Add horizontal shift.
337 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
338 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
341 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
344 2003-02-12 Werner LEMBERG <wl@gnu.org>
346 * src/roff/troff/input.cc (do_name_test, do_expr_test,
347 do_zero_width): Push `\n' if closing delimiter is missing.
349 (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
350 <'F'>: Make \F non-transparent at the beginning of line.
351 (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
352 token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
355 (define_color): Free color in case of reassignment.
357 * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
358 @DefescListEnd): Use @Var, not @var.
361 * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
363 * src/preproc/pic/object.cc (object_spec::~object_spec): Free
364 `shaded' and `outlined' arrays.
365 (object_spec::object_spec): Initialize `shaded' and `outlined'.
366 (graphic_object::set_fill_color, graphic_object::set_outline_color):
368 (closed_object::set_fill_color): Ditto.
369 * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
371 (troff_output::reset_color): Use a_delete instead of free.
372 * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
374 2003-02-11 Werner LEMBERG <wl@gnu.org>
376 * doc/groff.texinfo: Improve documentation of `ad'.
377 Document that \D'f...' is dependent on the horizontal resolution.
378 * man/groff_diff.man: Improve documentation of \D'f...'.
380 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
381 compensating \h'...' for \D'f ...' since the latter no longer moves
383 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
385 2003-02-10 Werner LEMBERG <wl@gnu.org>
387 Improve error messages for `x F' (and `F') commands.
389 * src/include/error.h: Add declaration for
390 `current_source_filename'.
391 * src/libs/libgroff/filename.cc: Add `current_source_filename'.
392 * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
393 parameter for source file string.
396 * src/libs/libdriver/input.cc: Add `current_source_filename'.
397 (remember_source_filename): New function.
398 (parse_x_command <'F'>, do_file <'F'>): Use it.
400 2003-02-09 Werner LEMBERG <wl@gnu.org>
402 Make grotty not emit warnings about unknown colors more than
405 * src/devices/grotty/tty.cc: Include `ptable.h'.
406 (TTY_MAX_COLORS): Removed.
407 (DEFAULT_COLOR_IDX): Defined to -1.
408 (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
409 (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
410 Change `tty_colors' to be a ptable.
411 First arg of `put_color' is now `char'.
412 New functions `make_rgb_string' and `tty_color'.
413 (tty_printer::tty_printer): Use `tty_color'.
414 (tty_printer::color_to_idx): Return value is now `char'.
417 * src/include/color.h (color): Add `print_color' member function.
418 * src/libs/libgroff/color.cc (color::print_color): Implement it.
420 2003-02-08 Werner LEMBERG <wl@gnu.org>
424 * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
427 * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
428 assume that value has been allocated with `new[]', thus use
429 `a_delete' for deallocation.
431 * src/libs/libdriver/input.cc (get_integer_arg,
432 get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
435 * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
436 * src/libs/libgroff/nametoindex.cc
437 (character_indexer::named_char_index): Use `new <type>[1]'.
439 * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
441 * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
442 (split_text): Use `a_delete'.
444 * src/preproc/pic/pic.y (define_label, define_variable): Use `new
447 * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
448 harmless memory leak.
449 (hyphen_trie::read_patterns_file): Initialize `buf'.
450 * src/roff/troff/node.cc (troff_output_file::troff_output_file):
451 Initialize `current_fill_color'and `current_glyph_color'.
452 * src/roff/troff/glyphuni.cc
453 (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
454 * src/roff/troff/uniuni.cc
455 (unicode_decompose_init::unicode_decompose_init): Ditto.
456 * src/roff/troff/uniglyph.cc
457 (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
459 2003-01-26 Werner LEMBERG <wl@gnu.org>
461 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
462 `access' before calling `unlink'.
463 (do_file): Handle __EMX__.
465 * src/include/nonposix.h: Handle __EMX__.
467 * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
468 (fontpath,tmacpath): Use it.
470 Sorted alphabetically.
472 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
474 * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
477 2003-01-27 Werner LEMBERG <wl@gnu.org>
479 * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
480 New files, copied from gnulib.
481 * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
482 * configure.ac: Updated.
483 * configure: Regenerated.
485 * src/include/config.hin: Regenerated.
486 * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
487 Don't define `strcasecmp' as `strcmp'.
488 [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
489 Dont define `strncasecmp' as `strncmp'.
491 * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
494 2003-01-26 Werner LEMBERG <wl@gnu.org>
496 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
499 2003-01-25 Werner LEMBERG <wl@gnu.org>
501 * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
503 2003-01-24 Werner LEMBERG <wl@gnu.org>
505 Add US-english hyphenation exceptions (converted from Barbara
506 Beeton's hyphenation exception log reports which appear irregularly
509 * tmac/hyphen.us: Updated to latest version.
510 * tmac/README: Updated.
511 * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
512 * tmac/troffrc: Load `hyphenex.us'.
513 * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
514 * doc/groff.texinfo: Updated.
516 2003-01-23 Werner LEMBERG <wl@gnu.org>
518 Improve hyphenation slightly. This is a first step in redesigning
519 the hyphenation algorithm to make it more flexible (e.g. allowing
520 kerns and ligatures between the hyphenation character and the
521 following character -- while not used normally in English, other
522 languages like German would benefit).
524 * src/roff/troff/env.cc (environment::hyphenate_line): Use
525 assertion instead of if-clause.
526 Let `get_hyphen_list' return the number of involved characters in
527 the hyphenation pattern instead of computing it directly (which
528 often yields too small values).
529 * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
530 * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
533 2003-01-22 Werner LEMBERG <wl@gnu.org>
535 Fixing a bug which caused groff to hang if the hyphenation exception
536 dictionary tried to grow.
538 * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
539 hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
540 pointer to dictionary.
542 2003-01-20 Werner LEMBERG <wl@gnu.org>
544 * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
545 negative left italic correction.
546 * src/utils/afmtodit/afmtodit.man: Document it.
548 * font/devps/generate/Makefile (RFLAG): Add `-m'.
549 * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
550 S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
554 2003-01-16 Werner LEMBERG <wl@gnu.org>
558 2003-01-16 Jörgen Grahn <jgrahn@algonet.se>
560 * src/preproc/refer/refer.man: Mention REFER environment variable.
562 2003-01-05 Werner LEMBERG <wl@gnu.org>
564 Similar to \[is], the square root glyph (\[sr]) and the square root
565 extension glyph (\[radicalex]) are now text symbols. The new
566 mathematical versions are called \[sqrt] and \[sqrtex],
569 * font/devX*/S: Regenerated.
570 * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
571 * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
572 * font/devdvi/EX, font/devdvi/S: Regenerated.
573 * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
574 * font/devlj4/generate/special.map: Add `sqrt'.
575 * font/devlj4/S: Regenerated.
576 * font/devps/generate/textmap: Add `sqrt'.
577 * font/devps/S, font/devps/symbolmap: Regenerated.
579 * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
580 SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
581 * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
582 overlap horizontally.
584 * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
585 * tmac/dvi.tmac: Add `sr', and `sqrtex'.
588 * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
589 and `sqrtex' are overlapping glyphs.
591 2003-01-04 Werner LEMBERG <wl@gnu.org>
593 * font/devdvi/generate/texsy.map: Add `is'.
594 * font/devps/symbolmap: Regenerated.
595 * font/devdvi/*TC, MI, S: Regenerated.
597 * tmac/dvi.tmac: Remove `is'.
599 2003-01-03 Werner LEMBERG <wl@gnu.org>
601 `is' is now a text symbol (only relevant for dvi). The math variant
602 can be accessed with `integral'.
604 * font/devX*/S: Regenerated.
605 * font/devdvi/generate/texex.map: Remove `is'.
606 * font/devdvi/EX: Updated.
607 * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
608 * font/devlj4/generate/special.map: Ditto.
609 * font/devlj4/S: Regenerated.
610 * font/devps/generate/textmap: Add `integral'.
611 * font/devps/S: Regenerated.
613 * tmac/dvi.tmac: Define `is'.
615 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
617 * src/preproc/tbl/main.cc (process_format): Fix error message.
619 2003-01-02 Werner LEMBERG <wl@gnu.org>
621 * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
622 * font/devps/textmap: Fix entries for `ne' and `nc'.
623 * font/devps/symbolmap: Regenerated.
625 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
626 src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
627 `38', `58', `78', `-+', `|=', `nc', `ne'.
629 * tmac/dvi.tmac: Add `nm', `ne', `nc'.
630 Use `schar' for `aq'.
631 * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
632 * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
633 * tmac/tty.tmac: Add `ne'.
635 * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
638 2002-12-29 Werner LEMBERG <wl@gnu.org>
642 * font/devX*/*: Regenerated.
643 * font/devdvi/generate/ec.map: Remove `eq'.
644 * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
645 Assign `|=' to position 39.
646 * font/devdvi/*EC, S: Regenerated.
647 * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
648 * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
649 Assign `|=' to position 549.
650 * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
652 Add `uni2243' for `|='.
654 * tmac/ec.tmac: Add `eq'.
655 * tmac/dvi.tmac: Add `=~'.
656 * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
659 2002-12-21 Werner LEMBERG <wl@gnu.org>
661 * font/devdvi/generate/tc.map: Remove `**'.
662 * font/devdvi/*TC: Regenerated.
663 * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
665 * font/devutf8/NOTES: Updated.
667 * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
668 Don't give default parameter to `set_macro'.
669 * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
670 instead of `set_macro'.
671 (charinfo::setx_macro): Implement it.
672 (charinfo::set_macro): Don't change `mode'.
674 * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
675 * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
676 * tmac/dvi.tmac: Define `!=' with `.schar'.
678 2002-12-20 Werner LEMBERG <wl@gnu.org>
680 * font/devX*/S: Regenerated.
681 * font/devdvi/generate/ec.map: Remove `pl'.
682 * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
683 * font/devdvi/*{TC,EC}: Regenerated.
684 * font/devhtml/R.proto: Add `-+'.
685 Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
686 * font/devlbp/*: Remove `or'.
687 * font/devlj4/generate/special.map: Remove `or'.
688 * font/devlj4/S: Regenerated.
689 * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
690 `seveneighths', `threeeighths'.
692 Replace `minusplus' with `uni2213'.
693 * font/devps/symbolmap: Regenerated.
694 * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
697 * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
699 * src/roff/troff/node.cc (troff_output_file::put_char_width):
700 Call glyph_color and fill_color even if tcommand_flag isn't set.
701 (make_node, node::add_char): Check not ci->is_fallback but
704 * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
705 * tmac/ec.tmac: Add .rchar entry for `f/'.
706 Don't remove `12', `14', `34'.
707 Define `pl' to be always roman.
708 * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
709 Define `18', `38', `58', `78'.
710 * tmac/tty.tmac: Add `-+'.
711 * tmac/dvi.tmac: Define `f/'.
712 (dvi-frac): Use `f/'.
713 * tmac/X.tmac (X-frac, X-frac-mono): New macros.
714 Define `18', `38', `58', `78'.
716 2002-12-15 Colin Watson <cjwatson@debian.org>
718 * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
720 2002-12-10 Werner LEMBERG <wl@gnu.org>
722 Add glyph `tno', a textual variant of `no'.
724 * font/devX*/*: Regenerated.
725 * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
726 * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
727 * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
728 * font/devdvi/*: Regenerated.
729 * font/devlbp/*: Add `tno'.
730 * font/devlj4/generate/tex.map: Replace `no' with `tno'.
731 * font/devlj4/*: Regenerated.
732 * font/devps/generate/textmap: Replace `no' with `tno'.
733 * font/devps/generate/symbolchars: Add `no'.
734 * font/devps/*: Regenerated.
736 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
738 * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
739 * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
743 * tmac/dvi.tmac: Replace most `\\' with `\E'.
744 Add definition for `sd'.
745 * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
747 * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
749 2002-12-08 Werner LEMBERG <wl@gnu.org>
751 * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
752 mode to avoid rounding errors.
753 (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
755 * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
756 src/roff/troff/troff.man: Improve documentation of -T.
758 2002-12-07 Jeff Conrad <jeff_conrad@msn.com>
760 * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
761 (run_pipeline) [_WIN32]: Provide working function without `fork'.
763 2002-12-06 Werner LEMBERG <wl@gnu.org>
765 * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
766 glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
767 Scaling Euro.sansserif glyphs down to have the same height as
769 Removed unnecessary points; added some extrema.
771 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
774 2002-12-04 Werner LEMBERG <wl@gnu.org>
776 * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
777 and `Euro.symbol.bold.slanted'.
778 Improve some glyph offsets and widths.
779 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
781 * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
783 * font/devps/generate/sfdtopfa.pe: Generate PFA in current
786 * tmac/europs.tmac: Updated to new glyph indices.
787 Use Euro.symbol for font familiy `A'.
789 * doc/groff.texinfo: Minor improvements.
791 2002-12-02 Werner LEMBERG <wl@gnu.org>
793 * font/devdvi/generate.tc.map: s/%O/%0/.
794 * font/devdvi/*TC: Regenerated.
796 * src/roff/troff/div.cc (init_div_requests): Sorted.
798 * tmac/dvi.tmac: Remove `Ye'.
799 * tmac/ec.tmac: Remove `Ye'.
800 Add .rchar entry for `de'.
802 * man/groff.man, man/groff_diff.man: Document register `.pe'.
803 * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
806 2002-11-30 Werner LEMBERG <wl@gnu.org>
808 Add PS font for various Euro glyphs.
810 * font/devps/generate/freeeuro.sfd: New master font file for
812 * font/devps/generate/sfdtopfa.pe: New conversion script for
814 * font/devps/generate/Makefile (FONTS): Add `EURO'.
815 (EURO, freeeuro.afm, freeeuro.pfa): New rules.
816 * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
818 * font/devps/EURO: Generated from `freeeuro.afm'.
819 * font/devps/download: Add `freeuro.pfa'.
820 * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
823 * tmac/europs.tmac: New file.
824 * tmac/ps.tmac: Include `europs.tmac'.
825 * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
827 2002-11-29 Werner LEMBERG <wl@gnu.org>
829 * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
830 * font/devdvi/S: Regenerated.
831 * font/devhtml/R.proto: Fix `CR' and `ci'.
833 * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
835 * font/devps/symbolmap: Regenerated.
836 * font/devutf8/R.proto: Fix `CR' and `ci'.
838 * font/devutf8/NOTES: Updated.
840 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
843 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
845 * tmac/dvi.tmac: Add `lh' and `rh'.
846 * tmac/Xps.tmac: Fix `lh' and `rh'.
847 * tmac/X.tmac: Add `OK'.
848 * tmac/lj4.tmac: Ditto.
850 2002-11-24 Werner LEMBERG <wl@gnu.org>
852 * font/devX*/S: Regenerated.
853 * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
854 `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
855 * font/devdvi/generate/texsy.map: Remove `or' glyph.
856 * font/devdvi/S: Regenerated.
857 * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
858 `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
859 `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
860 `bracketleftbt', `bracketrighttp', `bracketrightex',
861 `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
862 `braceex', `braceleftex', `bracerightex', `bracerighttp',
863 `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
865 * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
866 * font/devutf8/NOTES: Updated.
867 * font/devlj4/generate/special.map: Add glyph `braceex'.
868 * font/devlj4/S: Regenerated.
870 * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
872 2002-11-14 Werner LEMBERG <wl@gnu.org>
874 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
877 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
879 * doc/texinfo.tex: New version from texinfo 4.3.
880 * doc/groff.texinfo: Updated for texinfo 4.3.
881 Use @tie{} where appropriate.
882 * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
883 * font/devdvi/generate/tc.map: Remove `rn'.
884 * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
885 * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
887 * font/devX100/*, font/devX100-12/*, font/devX75/*,
888 font/devX75-12/*: Regenerated.
890 * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
891 Use .char (again) for `br', `ul', `rn', `or', and `ru'.
892 Improve definition of `an'.
893 * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
895 * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
896 * tmac/X.tmac: Add definition for `or'.
897 * tmac/Xps.tmac: Undo change 2002-11-05.
898 * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
900 2002-11-11 Werner LEMBERG <wl@gnu.org>
902 * src/roff/troff/node.cc (troff_output_file::put_char): Always
905 2002-11-10 Werner LEMBERG <wl@gnu.org>
907 Added three new requests `schar', `fschar', and `rfschar'. `schar'
908 defines a glyph which is searched after the check for fonts declared
909 with `.special' (and before the check for all mounted special
910 fonts). `fschar' defines a glyph for a particular font which is
911 searched after the check for fonts declared with `.fspecial' (and
912 before the check for fonts declared with `.special'). `rfschar'
913 removes glyphs defined with `fschar'.
915 * src/roff/troff/token.h (char_mode): New enum.
916 Declare do_define_character.
917 * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
919 (charinfo::is_fallback): Updated.
920 (charinfo::is_special): New method.
921 * src/roff/troff/input.cc (do_define_character): Add and use
922 optional second parameter used as a prefix for font-specific glyph
924 (define_character, define_fallback_character): Updated.
925 (define_special_character): New function.
926 (init_input_requests): Add `schar'.
927 (charinfo::charinfo, charinfo::set_macro): Updated.
928 * src/roff/troff/node.cc: Include `stringclass.h'.
929 (make_glyph_node): Handle special glyphs defined with `.schar' and
931 (define_font_special_character, remove_font_special_character): New
933 (init_node_requests): Sorted.
934 Add `fschar' and `rfschar'.
935 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
936 Document new requests.
938 * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
939 * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
941 2002-11-08 Werner LEMBERG <wl@gnu.org>
943 Added new font `SC' (cmtex10) to devdvi.
945 * devdvi/generate/Makefile (FONTS): Add `SC'.
947 * devdvi/generate/textex.map: New map file for cmtex.
949 * devdvi/Makefile.sub (DEVFILES): Updated.
950 * tmac/dvi.tmac: Add fspecial entries for SC.
951 Add `MI', `S' and `CW' to the `special' call. Otherwise, `SC' is
952 found before `S' since the font position of `SC' is lower due to the
953 gaps in DESC's `font' line.
954 * tmac/ec.tmac: Add a `special' call.
957 * font/devhtml/R.proto: Remove double entry for `ti'.
958 * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
959 * tmac/tty-char.tmac: Remove entry for `bq'.
960 * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
961 * tmac/ec.tmac: Don't remove `aq' glyph.
962 * tmac/X.tmac: Fix entry for `em'.
963 Add entries for `fo' and `fc'.
964 * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
966 * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
967 documentation of `special' and `fspecial' requests.
969 2002-11-05 Werner LEMBERG <wl@gnu.org>
971 * font/devascii/R.proto, font/devcp1047/R.proto,
972 font/devlatin1/R.proto: Remove entry for `.i'.
973 * font/devdvi/generate/textt.map: Add entry for `ad'.
974 * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
975 font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
976 We need this for getting kerning values to compose `/l' and `/L'.
977 * font/devdvi: Regenerated font definition files for CM fonts.
978 * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
979 * font/devutf8/R.proto: Ditto.
980 Remove double entry for `ti'.
982 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
983 for (groff) ligatures, `la', and `ra'.
984 Add "'C", "'c", `IJ', and `ij'.
985 Remove double entry for `ti'.
986 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
988 Add "'C", "'c", `IJ', and `ij'.
989 Fix entries for (groff) ligatures, `la', and `ra'.
991 * tmac/ps.tmac (ps-achar): New macro.
992 Define "'c" and "'C".
993 * tmac/tty.tmac: Add entry for `.i'.
994 * tmac/X.tmac (X-achar): New macro.
995 Define "'c", "'C", and `:Y'.
996 Add entries for `IJ' and `ij'.
997 * tmac/Xps.tmac (Xps-achar): New macro.
998 Define "'c" and "'C".
999 Add entries for `IJ' and `ij'.
1000 * tmac/lbp.tmac (lbp-achar): New macro.
1001 Add fallback characters for all groff ligatures and many other
1003 * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
1004 Add entries for `/l' and `/L'.
1005 Define "'c" and "'C".
1006 Add entries for `IJ' and `ij'.
1008 2002-11-02 Larry Kollar <kollar@alltel.net>
1010 * PROBLEMS: Document how to solve Mac OS X compilation problems.
1012 2002-11-02 Werner LEMBERG <wl@gnu.org>
1014 Adding support for composite glyphs: \[xxx yyy ...] and the
1015 `composite' request.
1017 * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
1018 to Unicode-based glyph names.
1019 * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
1020 glyph names to groff glyph names.
1021 * src/roff/troff/uniuni.cc: New file for canonically decomposing
1022 Unicode-based glyph names.
1023 * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
1024 for handling Unicode glyph names.
1025 * src/roff/troff/input.cc: Include unicode.h.
1026 (composite_glyph_name): New function.
1027 (token::next) <'['>: Handle Unicode glyph names and composite
1029 (composite_dictionary): New dictionary for the `composite' request.
1030 (composite_request): Implement `composite' request.
1031 (init_input_requests): Add `composite'.
1032 Alphabetically sorted.
1033 * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
1035 (init_env_requests): Alphabetically sorted.
1036 Removed `tas' and `tar' (already commented out).
1037 * src/roff/troff/Makefile.sub: Updated.
1039 2002-10-31 Ruslan Ermilov <ru@FreeBSD.org>
1041 * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
1044 2002-10-29 Werner LEMBERG <wl@gnu.org>
1046 Fix computation of .trunc register. Additionally, its value (and
1047 the value of the .ne register) is now always set before entering the
1050 * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
1051 `needed_space' before calling `space'.
1052 (top_level_diversion::space): Remove special code for 'sp before the
1054 Call `begin_page' with the discarded space as a parameter.
1055 (top_level_diversion::begin_page): Add optional parameter to set
1057 * src/roff/troff/div.h: Updated.
1059 * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
1062 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
1063 (LP): Remove superfluous call to `br'.
1064 * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
1065 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
1067 2002-10-26 Werner LEMBERG <wl@gnu.org>
1069 * tmac/doc-ditroff: Remove useless switch/variable -rC.
1070 (doc-setup-header): Don't set page register `%'.
1071 * tmac/doc-nroff: Remove variable `C'.
1072 (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
1073 (doc-setup-header): Don't set page register `%'.
1075 * tmac/doc-common (doc-header): Call `ns'.
1076 (doc-paragraph): Protect .sp with .br so that it survives traps
1077 possibly set by the user.
1078 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
1080 * tmac/doc*: Replace ' with . for consistency if no effect.
1082 2002-10-26 Werner LEMBERG <wl@gnu.org>
1084 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
1085 so that it survives traps possibly set by the user.
1087 * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
1088 (troff_output_file::set_font): Call flush_tbuf if necessary.
1089 (troff_output_file::fill_color, troff_output_file::glyph_color): Call
1090 flush_tbuf and do_motion only if necessary.
1091 (troff_output_file::start_special,
1092 troff_output_file::put_char_width, troff_output_file::put_char,
1093 troff_output_file::draw): Updated.
1094 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
1095 vmotion_node::tprint): Undo change 2002-10-23.
1097 2002-10-25 Werner LEMBERG <wl@gnu.org>
1099 * tmac/www.tmac (DC): Fix case of overlapping images.
1101 2002-10-23 Werner LEMBERG <wl@gnu.org>
1103 * src/roff/troff/node.cc (troff_output_file::fill_color,
1104 troff_output_file::glyph_color): Set current color before testing
1106 (troff_output_file::put_char_width, troff_output_file::put_char,
1107 troff_output_file::draw): Don't call flush_tbuf and/or do_motion
1109 (troff_output_file::file_color, troff_output_file::glyph_color):
1111 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
1112 vmotion_node::tprint): Move first, then call fill_color.
1114 2002-10-20 Werner LEMBERG <wl@gnu.org>
1116 * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
1117 possible to use multiple main macro packages.
1119 2002-10-19 Werner LEMBERG <wl@gnu.org>
1121 * src/devices/grops/ps.cc (cmyk_flag): New global variable.
1122 (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
1123 (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
1125 * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
1126 `where' construction since `cmyksetcolor' is a PS Level 2 operator.
1128 2002-10-16 Werner LEMBERG <wl@gnu.org>
1130 * NEWS, doc/webpage.ms: Updated.
1132 2002-10-14 Werner LEMBERG <wl@gnu.org>
1134 * src/roff/troff/node.cc (troff_output_file::put_char_width,
1135 troff_output_file::put_char, troff_output_file::fill_color,
1136 troff_output_file::glyph_color): Handle case where color pointer
1139 2002-10-13 Ruslan Ermilov <ru@FreeBSD.org>
1141 Add the new -r option to grotty. It is similar to the -i option
1142 except it tells grotty(1) to use the "reverse video" attribute to
1143 render italic fonts.
1145 * src/devices/grotty/tty.cc (reverse_flag): New global variable.
1146 (SGR_REVERSE, SGR_NO_REVERSE): New macros.
1147 (tty_printer::make_underline, tty_printer::put_color,
1148 tty_printer::end_page): Use it.
1149 (main): Add -r switch.
1151 * src/devices/grotty/grotty.man: Document it.
1153 2002-10-11 Ruslan Ermilov <ru@FreeBSD.org>
1155 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
1156 cast to `unsigned char' to properly read patterns with 8bit
1159 2002-10-08 Werner LEMBERG <wl@gnu.org>
1161 * REVISION: Increased to 2.
1163 Version 1.18.1 released
1164 =======================
1166 2002-10-08 Werner LEMBERG <wl@gnu.org>
1168 * doc/webpage.ms, NEWS: Updated.
1170 2002-10-07 Werner LEMBERG <wl@gnu.org>
1172 * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
1173 suppress additional whitespace after the header.
1175 * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
1178 * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
1180 2002-10-07 Ruslan Ermilov <ru@FreeBSD.org>
1182 * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
1183 (Dt): Use it to improve language localization (especially Russian
1186 2002-10-07 Daniel Senderowicz <daniel@synchrods.com>
1188 * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
1189 * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
1191 * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
1193 Call `picurve' for BSPLINE.
1194 (HGPrintElt): Handle BSPLINE.
1195 * src/preproc/grn/README: Document it.
1197 2002-10-03 Werner LEMBERG <wl@gnu.org>
1199 * src/roff/troff/node.cc (break_char_node::col): New variable.
1200 Updated constructor.
1201 (space_node::tprint, word_space_node::tprint): Call `fill_color'
1203 (space_node::space_node): Remove assertion.
1204 (break_char_node::add_self): Pass color argument to space node.
1205 * src/roff/troff/input.cc (token::add_to_node_list, token::process):
1207 * src/roff/troff/env.cc (environment::do_break,
1208 environment::add_padding): Ditto.
1210 2002-10-02 Werner LEMBERG <wl@gnu.org>
1212 Redesigning color support in troff. Colors are no longer
1213 represented as separate nodes but are now part of glyph nodes and
1214 friends. This fixes the current formatting misbehaviour due to the
1215 changes introduced on 2002-09-20. Some extra code is necessary for
1216 proper grotty support: Without adding color variables to
1217 space-related nodes, the background color would be changed too late.
1219 * src/roff/troff/node.h, src/roff/troff/node.cc:
1220 s/current_pagecolor/current_fill_color/.
1221 s/current_glyphcolor/current_glyph_color/.
1222 (glyph_color_node, fill_color_node): Removed.
1223 (node::get_glyph_color, node::get_fill_color): New virtual member
1225 (space_node::col): New variable.
1226 Updated constructors of space_node and derived classes accordingly.
1227 (hmotion_node::col): New variable.
1228 Updated constructors of hmotion_node and space_char_hmotion_node
1230 (vmotion_node::col): New variable.
1231 Updated constructor accordingly.
1232 (draw_node::gcol, draw_node::fcol): New variables.
1233 Updated constructor accordingly.
1234 (special_node::gcol, special_node::fcol): New variables.
1235 Updated constructors accordingly.
1236 (troff_output_file::put_char, troff_output_file::put_charwidth,
1237 troff_output_file::draw): Set glyph and fill color.
1238 (troff_output_file::start_special): Set glyph and fill color.
1239 Always set current font.
1240 (troff_output_file::fill_color, troff_output_file::glyph_color):
1241 Don't call `do_motion'.
1242 (glyph_node::gcol, glyph_node::fcol): New variables.
1243 Updated constructors of glyph_node and ligature_node accordingly.
1244 (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
1246 (glyph_node::merge_glyph_node,
1247 kern_pair_node::add_discretionary_hyphen,
1248 node::add_discretionary_hyphen): Updated.
1249 (break_char_node::merge_self): Updated.
1250 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
1251 vmotion_node::tprint): Handle color.
1252 (make_glyph_node, make_node, node::add_char): Updated.
1254 * src/roff/troff/env.cc (environment::space_newline,
1255 environment::space, environment::output_line, environment::do_break,
1256 environment::make_tab_node, environment::add_padding, title):
1258 (environment_switch, environment_copy): Don't add color nodes.
1260 * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
1262 (token::next): Updated.
1263 \m and \M now are as transparent as \s.
1264 (process_input_stack, token::add_to_node_list, token::process,
1265 read_draw_node): Updated.
1266 (charinfo_to_node_list): Don't add color nodes.
1268 * doc/groff.texinfo: Updated.
1270 2002-09-27 Ruslan Ermilov <ru@FreeBSD.org>
1272 * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
1275 2002-09-27 Colin Watson <cjwatson@debian.org>
1277 * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
1279 2002-09-23 Werner LEMBERG <wl@gnu.org>
1281 * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
1283 (DEFAULT_LINEWIDTH_FACTOR): New macro.
1284 (linewidth_factor): New global variable.
1285 (lbp_printer::set_line_thickness): Fix case for size < 0, using
1287 (long_options): Add -w/--linewidth option.
1289 (main): Handle -w option to set linewidth_factor.
1290 (lbp_printer::lbp_printer): Initialize req_linethickness, not
1293 * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
1295 2002-09-22 Paco Andrés Verdú <pandres@dragonet.es>
1297 Fixed a bug in the line thickness setting code.
1299 * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
1301 (lbp_printer::set_line_thickness): Pass environment as second
1303 Implement it actually.
1304 (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
1305 and `set_line_thickness, depending on the current font size.
1307 2002-09-21 Werner LEMBERG <wl@gnu.org>
1309 Some Debian patches.
1311 * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
1312 * src/roff/troff/node.cc (bracket_node::copy): Initialize
1315 2002-09-20 Werner LEMBERG <wl@gnu.org>
1317 * configure: Regenerated with autoconf 2.54.
1319 2002-09-20 Werner LEMBERG <wl@gnu.org>
1321 * src/roff/troff/env.h (environment): Rename cur_glyph_color to
1323 Rename cur_fill_color to fill_color.
1324 * src/roff/troff/env.cc: Updated.
1326 2002-09-20 Werner LEMBERG <wl@gnu.org>
1328 * src/roff/troff/env.cc (title): Copy color status after processing
1330 * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
1331 fill color nodes to reset colors properly.
1333 * tmac/www.tmac (DC): Fix color handling.
1335 * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
1336 * doc/groff.texinfo: Fixing documentation of `tl' request.
1337 * doc/webpage.ms: Updated.
1339 2002-09-19 Werner LEMBERG <wl@gnu.org>
1341 * src/roff/troff/env.cc (environent_switch, environment_copy):
1342 Emit glyph and fill color nodes to initialize colors properly.
1344 2002-09-17 Colin Watson <cjwatson@debian.org>
1346 * src/roff/troff/env.cc (environment::set_glyph_color,
1347 environment::set_fill_color): Fix typo which prevented \m[] work
1350 2002-09-17 Werner LEMBERG <wl@gnu.org>
1352 Add left and right italic correction to non-slanted PS fonts. This
1353 is an experimental feature to improve image rendering of grohtml.
1355 * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
1356 ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
1357 * font/devps/*: All non-slanted fonts regenerated.
1360 2002-09-16 Werner LEMBERG <wl@gnu.org>
1362 Add a site-specific font directory.
1364 * Makefile.in (localfontdir, legacyfontdir): New variables.
1365 (fontpath): Use them.
1366 (MDEFINES, uninstall_dirs): Updated.
1367 * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
1368 Remove `FONTPATH' and `MACROPATH'.
1370 * src/roff/troff/troff.man, NEWS: Updated.
1371 * doc/groff.texinfo (Font Directories): New section.
1374 * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
1375 src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
1376 src/preproc/grn/grn.man: Minor fixes.
1378 * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
1379 Remove unused variable.
1381 2002-09-11 Werner LEMBERG <wl@gnu.org>
1383 * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
1384 * man/groff_out.man: Fix documentation of 'N'.
1386 2002-09-09 Gaius Mulley <gaius@glam.ac.uk>
1388 * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
1389 * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
1391 * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
1392 (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
1393 (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
1394 * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
1395 PRE_TAG>: Call `begin' with `FALSE'.
1397 2002-09-09 Ralph Corderoy <ralph@inputplus.demon.co.uk>
1399 * src/libs/libgroff/string.cc (string::extract): Fix position of
1400 terminating null byte.
1402 2002-09-08 Werner LEMBERG <wl@gnu.org>
1404 Add global option `nospaces' to tbl so that leading and trailing
1405 spaces in data items are ignored.
1407 * src/libs/libgroff/string.cc (string::remove_spaces): New member
1408 function to remove leading and trailing spaces.
1409 * src/include/stringclass.h: Updated.
1411 * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
1413 * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
1415 Fix typo in error messages.
1416 (process_data): Implement `nospaces' option.
1417 * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
1419 2002-09-07 Werner LEMBERG <wl@gnu.org>
1421 * src/include/config.hin: Add `HAVE_ISATTY'.
1422 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
1424 * src/libs/libgroff/tmpname.cc: Include `time.h'.
1425 * src/libs/libdriver/input.cc (Char): Add `operator==' and
1426 `operator!=' for `char'.
1427 * doc/groff.texinfo: Replace @ifnottex block for top node with
1430 2002-09-06 Werner LEMBERG <wl@gnu.org>
1432 * doc/Makefile.in (.texinfo.html): Add -I switch.
1433 * doc/groff.texinfo: Add @ifnottex block for top node to make
1434 translation to HTML work.
1436 2002-09-05 Gaius Mulley <gaius@glam.ac.uk>
1438 * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
1439 (get_papersize, determine_vertical_offset): Removed.
1440 (char_buffer::do_image): Always specify letter size.
1442 (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
1445 2002-09-05 Werner LEMBERG <wl@gnu.org>
1447 * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
1448 default indentation.
1450 2002-09-04 Gaius Mulley <gaius@glam.ac.uk>
1452 * src/preproc/html/pre-html.cc (imageList::createPage): Use
1454 (generateImages): Clean up push-back buffer.
1456 2002-09-04 Ralph Corderoy <ralph@inputplus.demon.co.uk>
1458 * doc/groff.texinfo: Minor fixes.
1460 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
1462 * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
1463 (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
1465 (determine_vertical_offset): Use LETTER_LENGTH.
1466 (createPage): Moved to ...
1467 (imageList::createPage): This.
1468 Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
1469 (imageList::getMaxX): New function.
1470 (createImage): Moved to ...
1471 (imageList::createImage): This.
1472 (imageList::createImages): New function.
1473 (generateImages): Read `maxx' directly.
1475 (scanArguments): Don't specify `gsPaper' for `-o'.
1476 (makeTempFiles): Call `xtmpfile' with the last argument set to
1479 2002-08-24 Werner LEMBERG <wl@gnu.org>
1481 * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
1482 (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
1483 * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
1484 * src/preproc/html/pushback.cc: Include nonposix.h.
1485 * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
1488 2002-08-23 Werner LEMBERG <wl@gnu.org>
1490 Use $(OBJEXT) for the object file extension.
1492 * Makefile.comm (.SUFFIXES): Add .obj.
1493 (.cc.obj, .c.obj): New implicit rules.
1494 * Makefile.in (OBJEXT): New variable, initialized from autoconf.
1495 (MDEFINES): Add EXEEXT and OBJEXT.
1496 * */Makefile.sub: s/.o/.$(OBJEXT)/.
1498 2002-08-22 Werner LEMBERG <wl@gnu.org>
1500 * INSTALL: Mention texinfo 4.2 as a prerequisite.
1502 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
1504 * src/devices/grohtml/post-html.cc (colType): Make enum global to
1506 (html_printer::update_min_max, html_printer::add_table_end): New
1508 (html_printer::lookahead_for_tables): Use them.
1509 Reset page offset correctly.
1510 (html_printer::~html_printer): Add creation of creator comment up.
1512 2002-08-20 Werner LEMBERG <wl@gnu.org>
1514 * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
1515 * man/groff_tmac.man: Fix typos.
1516 * man/groff_font.man: Minor reordering.
1517 * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
1518 * contrib/groffer/groffer.man: Fix typos.
1520 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
1522 Avoid endless loops while scanning for tables.
1524 * src/devices/grohtml/post-html.cc (list::insert): Set
1526 (html_printer::next_horiz_pos): Add `text_glob' argument; update
1528 Return immediately if that argument is NULL.
1529 (html_printer::calc_nf): Don't test if `g' is NULL.
1530 (html_printer::lookahead_for_tables): Use
1531 `glyphs.move_right_get_data'.
1532 Don't test if `g' is NULL.
1534 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
1536 A better fix, replacing fix 2002-08-15, for increasing SIZE.
1538 * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
1540 (char_block::char_block): Allocate `buffer'.
1541 (char_buffer::add_string): Use it.
1543 2002-08-15 Werner LEMBERG <wl@gnu.org>
1545 * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
1546 src/devices/grodvi/grodvi.man: Document default line thickness.
1548 2002-08-15 Gaius Mulley <gaius@glam.ac.uk>
1550 * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
1553 2002-08-14 Werner LEMBERG <wl@gnu.org>
1555 * doc/webpage.ms: Updated.
1557 2002-08-09 Werner LEMBERG <wl@gnu.org>
1559 * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
1562 2002-08-08 Aaron Campbell <aaron@monkey.org>
1564 * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
1567 2002-08-08 Werner LEMBERG <wl@gnu.org>
1569 * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
1572 Don't push back a space but a newline onto the stack.
1574 2002-08-07 Gaius Mulley <gaius@glam.ac.uk>
1576 Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
1579 * src/devices/grohtml/post-html.cc (html_printer::end_font,
1580 html_printer::start_font): Handle them.
1581 * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
1583 (html_text::do_bold): Don't reset italic and tt.
1584 (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
1585 * font/devhtml/DESC.proto: Add those fonts.
1586 * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
1588 2002-08-07 Werner LEMBERG <wl@gnu.org>
1590 * MORE.STUFF: Added gpresent.
1592 * tmac/trace.tmac: Show nesting level by a corresponding amount of
1593 whitespace before printing the logging message.
1595 2002-07-31 Colin Watson <cjwatson@debian.org>
1597 * src/devices/grohtml/html-table.cc (html_table::finish_row):
1598 Initialize `n' to zero. This fixes a segfault on ARM.
1600 2002-07-30 Werner LEMBERG <wl@gnu.org>
1602 * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
1604 2002-07-29 Werner LEMBERG <wl@gnu.org>
1606 * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
1609 2002-07-28 Colin Watson <cjwatson@debian.org>
1611 * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
1613 (html_printer::html_printer): Initialize `pointsize'.
1615 2002-07-26 Werner LEMBERG <wl@gnu.org>
1617 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
1619 (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
1620 (gnu.eps): Add -rle switch to pnmtops.
1621 (distfiles): Add gnu.eps and gnu.png.
1623 2002-07-25 Petter Reinholdtsen <pere@hungry.com>
1625 * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
1628 2002-07-24 Werner LEMBERG <wl@gnu.org>
1630 * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
1631 ' \+' but ' *' for sed.
1632 (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
1634 2002-07-23 Werner LEMBERG <wl@gnu.org>
1636 * doc/groff.texinfo: Document `papersize' keyword.
1637 * NEWS, man/groff_font.man: Updated.
1639 2002-07-23 Colin Watson <cjwatson@debian.org>
1641 Extend papersize keyword to accept more than a single entry. The
1642 first valid will be used.
1644 * src/libs/libgroff/font.cc (font::load_desc): Implement it.
1645 (font::scan_papersize): Really skip final newline.
1646 * src/preproc/html/pre-html.cc (get_papersize): Ditto.
1648 2002-07-23 Werner LEMBERG <wl@gnu.org>
1650 * configure.ac: Test for isatty.
1651 * configure: Regenerated.
1652 * src/include/posix.h: Check HAVE_ISATTY.
1653 * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
1654 * src/utils/lookbib/lookbib.cc: Include posix.h.
1655 Don't declare isatty.
1657 2002-07-21 Werner LEMBERG <wl@gnu.org>
1659 * NEWS: Add `output' request.
1661 * REVISION: Increased to 1.
1663 Version 1.18.0 released
1664 =======================
1666 2002-07-19 Gaius Mulley <gaius@glam.ac.uk>
1668 Allow internal glyph indices > 0xFF in grohtml for input characters.
1670 * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
1672 (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
1673 Updated all callers.
1674 (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
1675 (html_printer): Updated.
1677 2002-07-19 Werner LEMBERG <wl@gnu.org>
1679 * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
1680 * font/devutf8/R.proto: Adding some missing glyphs.
1681 * font/devutf8/NOTES: Updated.
1683 * tmac/dvi.tmac: Add more composite glyphs.
1684 * tmac/html.tmac: Updated.
1686 * man/groff_char.man: Add `sum' and `product' entities.
1690 2002-07-18 Gaius Mulley <gaius@glam.ac.uk>
1692 Improved table, tab, and indenting support.
1694 * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
1695 string_iterator::suppress_newline_flag): Removed. Updated all
1696 function which have used it.
1698 * src/roff/troff/env.cc: Include `input.h'.
1699 (environment::add_node): Accept 0 as parameter.
1700 (environment::add_html_tag): Add `force' parameter.
1701 Updated all callers.
1702 (environment::add_html_tag_tabs): Ditto.
1703 For the moment, support left-aligned tabs only.
1704 (environment::make_html_tag): New function.
1705 (fill, no_fill): Set .br html tag additionally.
1706 (environment::newline): Emit `eol.ce' or `eol' tag for html.
1707 (environment::add_html_tag_eol): Removed.
1708 (tab_stops::distance_to_next_tab): Add variant for handling
1710 (environment::distance_to_next_tab): Ditto.
1711 Updated all callers.
1712 (environment::handle_tab): Handle tabs for html.
1714 * src/roff/troff/env.h: Updated.
1716 * src/roff/troff/div.cc: Updated all callers of
1717 `environment::add_html_tag'.
1719 * src/devices/grohtml/html-table.cc,
1720 src/devices/grohtml/html-table.h: New files.
1722 * src/devices/grohtml/html-text.cc (html_text): New members
1723 `blank_para' and `start_space'.
1724 (html_text::issue_tag): Don't emit TABLE_TAG.
1725 Handle indentation for PRE_TAG and P_TAG.
1726 (html_text::end_tag): Updated.
1727 (html_text::table_is_void, html_text::issue_table_begin,
1728 html_text::issue_table_end): Removed.
1729 (html_text::do_push): Simplified.
1730 [DEBUGGING]: Small fix.
1731 (html_text::push_para): Add new parameter for indentation; updated
1734 (html_text::do_indent, html_text::do_table, html_text::done_table,
1735 html_text::is_in_table): Removed.
1736 (html_text::do_pre): Handle P_TAG also.
1737 (html_text::shutdown): Handle p->indent.
1738 (html_text::check_emit_text): Simplified.
1739 (html_text::do_emittext): Reset `blank_para'.
1740 (html_text::do_para): Add new parameter for indentation; updated
1742 (html_text::remove_indent): New function.
1743 (html_text::do_space): Handle verbatim text properly.
1744 (html_text::ever_emitted_text, html_text::starts_with_space,
1745 html_text::remove_para_align): New functions.
1746 (html_text::dump_stack_element, html_text::dump_stack): Updated.
1748 * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
1751 * src/devices/grohtml/post-html.cc: Include html-table.h.
1752 (INDENTATION): Removed.
1753 (text_glob): Added many `is_<foo>' functions.
1754 Added table description `tab'.
1755 Added `get_arg',`get_tab_args', `remember_table', and `get_table'
1757 (list): Add `insert' and `move_to' member functions.
1758 (page): Add `insert_tag' member function.
1759 (page::dump_page) [DEBUG_TABLES]: Improved.
1760 (html_printer): Add `table' and `max_linelength' elements.
1761 Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
1762 `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
1763 `remove_tabs', `remove_courier_tabs'.
1764 (html_printer::emit_raw): Handle indentation.
1765 (html_printer::do_center, html_printer::write_header): Updated.
1766 (html_printer::is_courier_until_eol): Check for tag.
1767 (html_printer::do_linelength): Handle max_linelength.
1768 (html_printer::do_page_offset, html_printer::do_indentation): Handle
1770 (html_printer::do_tempindent): Updated.
1771 (html_printer::do_indentedparagraph): Removed.
1772 (html_printer::do_indent): Simplified.
1773 (html_printer::do_eol): Use `ever_emitted_text'.
1774 (html_printer::do_flush, html_printer::do_links): Don't call
1776 (html_printer::do_break): Handle end_tempindent.
1777 (html_printer::troff_tag): Get argument.
1779 Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
1780 (html_printer::flush_page): Call `lookahead_for_tables'.
1781 Don't call `done_table'.
1782 (html_printer::add_to_sbuf): Always call do_indent.
1784 * src/devices/grohtml/Makefile.sub: Updated.
1786 * tmac/an-old.tmac (TP): Don't handle html device specially.
1787 (an-do-tag-html): New function which will be used instead of
1788 `an-do-tag' if html device is used.
1790 * tmac/html.tmac: Call .po to pass default page offset to grohtml.
1792 * tmac/s.tmac (@IP): Don't handle html device specially.
1793 (@IP-html): New function which will be used instead of `@IP' if
1794 html device is used.
1796 * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
1797 is a hack which will eventually vanish again.
1798 (PIMG): Handle `-C' option correctly if not html.
1801 2002-07-17 Werner LEMBERG <wl@gnu.org>
1803 * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
1805 2002-07-14 Eric S. Raymond <esr@thyrsus.com>
1807 * contrib/pic2graph/pic2graph.*: Use convert(1).
1808 * contrib/eqn2graph/eqn2graph.*: Minor fixes.
1810 2002-07-14 Bernd Warken <bwarken@mayn.de>
1812 * tmac/groff_trace.man: New file.
1813 * tmac/Makefile.sub: Updated.
1816 2002-07-13 Werner LEMBERG <wl@gnu.org>
1818 * src/roff/groff/groff.man: Add some cross references.
1820 2002-07-12 Werner LEMBERG <wl@gnu.org>
1822 * src/roff/troff/input.cc (substring_request): Add warnings for
1823 string indices out of range.
1825 2002-07-11 Werner LEMBERG <wl@gnu.org>
1827 * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
1828 * font/devdvi/*EC: Regenerated.
1830 2002-07-10 Bernd Warken <bwarken@mayn.de>
1832 * man/groff_char.man: Updated and extended.
1834 2002-07-10 Werner LEMBERG <wl@gnu.org>
1836 * src/roff/troff/input.cc (length_macro): Renamed to...
1837 (length_request): This.
1838 Move call of `tok.next()' to the very end, otherwise the register
1839 value hasn't been updated yet.
1840 (init_input_requests): Updated.
1842 2002-07-09 Werner LEMBERG <wl@gnu.org>
1844 * src/roff/troff/input.cc (substring_macro): Renamed to...
1845 (substring_request): This.
1846 (init_input_requests): Updated.
1847 * src/roff/troff/request.h: Updated.
1849 2002-07-08 Robert D. Goulding <goulding@Princeton.EDU>
1851 * src/roff/grog/grog.sh: Fix typo.
1853 2002-07-08 Werner LEMBERG <wl@gnu.org>
1855 * win32-diffs: Updated.
1857 Handle `papersize' keyword properly in DESC.
1859 * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
1861 Updated all callers.
1862 * src/libs/libgroff/paper.cc: Add four more paper formats used by
1864 * src/include/paper.h: Updated.
1866 * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
1867 Other minor C syntax fixes.
1868 (papersize, paperlength, paperwidth): Renamed to `user_*'.
1869 (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
1871 (lbp_printer::lbp_printer): Pass three arguments.
1872 Set paper dimensions properly.
1873 (make_printer, main): Updated.
1874 (handle_unknown_desc_command): Fix error messages.
1875 (main): Handle papersize keyword in DESC properly.
1877 * src/devices/grolj4/lj4.cc (paper_size): Renamed to
1879 (lbp_printer::lbp_printer): Pass an argument.
1880 Set paper_size properly.
1881 (handle_unknown_desc_command): Removed.
1882 (make_printer, main): Updated.
1883 * src/devices/grolj4/grolj4.man: Minor documentation fix.
1885 * man/groff_font.man, NEWS: Updated.
1887 2002-07-07 Werner LEMBERG <wl@gnu.org>
1889 Integrated eqn2graph, contributed by Eric S. Raymond.
1891 * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
1893 * Makefile.in, NEWS: Updated.
1895 2002-06-04 Werner LEMBERG <wl@gnu.org>
1897 Changing the substring request to make it fit better with other
1898 string manipulation functions in other programming languages:
1899 Index 0 is now the first character in the string, and index -1
1900 indicates the last character. Since this request didn't work
1901 properly anyway in the last release, it doesn't harm too much to
1904 * src/roff/troff/input.cc (substring_macro): Use loops to get
1905 the real string length (ignoring COMPATIBLE_SAVE and
1906 COMPATIBLE_RESTORE) and offsets.
1907 Implement change described above.
1909 * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
1910 (doc-do-Bd-args, doc-do-Bl-args: Changed accordingly.
1912 * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
1914 2002-06-03 Werner LEMBERG <wl@gnu.org>
1916 Make .chop work with .de1 and friends. COMPATIBLE_SAVE and
1917 COMPATIBLE_RESTORE are completely ignored.
1919 * src/roff/troff/input.cc (char_list::set, char_list::get): New
1921 (macro): `length' field renamed to `len'.
1922 Added new field `empty_macro' (1 if macro is empty), to be used
1923 instead of checking `len'.
1924 Updated all callers.
1925 (macro::empty): Updated.
1926 (macro::length, macro::set, macro::get): New functions.
1927 (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
1929 (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
1930 COMPATIBLE_RESTORE pairs.
1931 (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
1932 * src/roff/troff/request.h: Updated.
1934 * doc/groff.texinfo: Document .chop's behaviour better.
1936 2002-06-02 Werner LEMBERG <wl@gnu.org>
1938 * doc/pic.ms: Fix documentation for the addition of positions.
1940 * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
1942 2002-06-29 Werner LEMBERG <wl@gnu.org>
1944 Implementation of string arguments of the form \*[foo arg1 arg2 ...]
1946 * src/roff/troff/input.cc (have_string_arg): New global variable.
1947 (read_mode): New enumeration.
1948 (read_escape_name): Use it. Update all calls.
1949 (read_long_escape_name): Use it. Update all calls.
1950 Set have_string_arg if appropriate.
1951 (get_char_for_escape_name): Add parameter for handling space
1953 (interpolate_string_with_args, decode_string_args): New functions.
1954 (get_copy, token::next): Call it if necessary.
1955 (interpolate_string): Fix error message.
1957 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
1960 2002-06-24 Bernd Warken <bwarken@mayn.de>
1962 * man/groff_tmac.man: Updated and extended.
1964 2002-06-24 Werner LEMBERG <wl@gnu.org>
1966 * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
1968 2002-06-23 Werner LEMBERG <wl@gnu.org>
1970 * doc/pic.ms: Improve documentation of composite block objects.
1972 2002-06-22 Werner LEMBERG <wl@gnu.org>
1974 * src/roff/troff/input.cc (init_registers): Add three registers
1975 `seconds', `minutes', and `hours' to hold the current time.
1977 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
1980 2002-06-20 Werner LEMBERG <wl@gnu.org>
1982 Make \X accept both `\ ' and `\~', converting them to single space
1985 * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
1986 (token::unstretchable_space): New inline function.
1987 * src/roff/troff/input.cc (token::next, token::delimiter,
1988 token::description, token::add_to_node_list, token::process): Handle
1989 TOKEN_UNSTRETCHABLE_NODE.
1990 (encode_char): Handle tok.stretchable_space and
1991 tok.unstretchable_space.
1993 * NEWS, doc/groff.texinfo: Document it..
1995 2002-06-19 Werner LEMBERG <wl@gnu.org>
1997 * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
1999 * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
2000 keyword to enable/disable SGR output.
2001 (tty_printer::change_fill_color): New function.
2002 * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
2004 * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
2007 2002-06-18 Werner LEMBERG <wl@gnu.org>
2009 Add a `color' request and a `.color' register to control usage of
2012 * src/roff/troff/input.cc (disable_color_flag): Replaced with...
2013 (color_flag): This (which is the inverse).
2014 (activate_color): New function.
2015 (main, init_input_requests): Updated.
2016 * src/roff/troff/troff.h, src/roff/troff/node.cc
2017 (troff_output_file::fill_color, troff_output_file::glyph_color):
2020 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
2021 Document the changes.
2023 2002-06-17 Colin Watson <cjwatson@debian.org>
2025 Circumvent bug in autoconf 2.53 regarding top_builddir.
2027 * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
2028 * Makefile.in, doc/Makefile.in:
2029 s/@top_builddir@/@groff_top_builddir@/.
2030 * configure: Regenerated (with autoconf 2.53).
2032 2002-06-17 Werner LEMBERG <wl@gnu.org>
2034 * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
2035 `paperwidth' and `paperlength' for the `papersize' keyword.
2037 2002-06-16 P. Alejandro Lopez-Valencia <dradul@007mundo.com>
2039 * src/devices/grops/grops.man: Add info about Type 42 fonts.
2041 2002-06-15 Gaius Mulley <gaius@glam.ac.uk>
2043 * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
2044 html_printer::do_linelength, html_printer::do_pageoffset,
2045 html_printer::do_indentation, html_printer::do_tempindent,
2046 html_printer::do_break, html_printer::begin_page): Clear indented
2048 * tmac/html.tmac: Disable hyphenation.
2050 2002-06-15 Werner LEMBERG <wl@gnu.org>
2052 Don't produce HTML files if utility programs are missing.
2054 * Makefile.in (make_html, make_install_html): New variables.
2055 (MDEFINES): Updated.
2057 * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
2059 * configure.ac: Use it.
2060 * configure: Regenerated.
2062 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
2063 (HTMLEXAMPLESFILES): This new variable.
2064 (EXAMPLESIMAGEFILES): Renamed to...
2065 (HTMLEXAMPLEIMAGEFILES): This.
2066 (CLEANADD): Add HTMLEXAMPLEFILES.
2067 (all): Use `make_html'.
2069 (install_data): Use `make_install_html'.
2070 Move html stuff to...
2071 (install_html): This new target.
2072 (uninstall_sub): Updated.
2074 2002-06-14 Bernd Warken <bwarken@mayn.de>
2076 * src/roff/grog/Makefile.sub (grog): Renamed to...
2078 (grog): New rule to always install grog.sh as grog.
2080 2002-06-08 Bernd Warken <bwarken@mayn.de>
2082 * src/roff/grog/grog.pl: Fix typo.
2084 2002-06-07 Werner LEMBERG <wl@gnu.org>
2086 * doc/groff.texinfo: Add more info on .tr arguments.
2088 2002-06-05 Werner LEMBERG <wl@gnu.org>
2090 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
2092 * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
2093 * configure: Regenerated.
2095 2002-06-05 Ralph Corderoy <ralph@inputplus.demon.co.uk>
2097 * src/roff/troff/symbol.cc (table_sizes): Add more values.
2099 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
2101 2002-06-04 Werner LEMBERG <wl@gnu.org>
2103 * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
2104 is not initialized at the time we need it in case `--prefix' hasn't
2105 been set. Check for `ac_default_prefix' also.
2106 Test for `papersize' keyword also and generalize allowed whitespace.
2107 * configure: Regenerated.
2109 * font/devps/Makefile.sub (DESC): Use `papersize' instead of
2112 * src/libs/libgroff/Makefile.sub (version, revision): Replaced
2114 (src_version, src_revision): New variables to avoid overwriting
2115 from parent make process.
2116 (version.cc): Updated.
2118 * src/preproc/html/pre-html.cc: Include paper.h and font.h.
2119 (linebuf, linebufsize): New global variables.
2120 (sys_fatal): Use `fatal' to abort properly.
2121 (get_line): New function.
2122 (get_resolution): Use it.
2123 Improve error messages.
2124 (get_papersize): Check `papersize' also.
2126 Improve error messages.
2128 2002-06-03 Werner LEMBERG <wl@gnu.org>
2130 * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
2131 should be removed only if builddir is not srcdir.
2132 (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
2133 (clean): Depend on `mostlyclean'.
2134 (distclean): Depend on `clean'.
2135 (realclean, extraclean): Depend on `distclean'.
2136 (.y.cc, .y.o): Simplified. The output files are no longer written
2137 to srcdir but to builddir.
2138 * Makefile.in (MDEFINES): Add `version' and `revision'.
2139 (uninstall_dirs): Fix order of directories.
2140 * doc/Makefile.sub (version, revision): Removed.
2141 (CLEANADD): Removed grnexmpl.g, groff, groff-*.
2142 Added `HTMLDOCFILES'.
2143 (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
2144 * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
2145 src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
2148 * doc/texinfo.tex (\authortt): New macro.
2149 (\shortcontt): Define.
2150 (\titlepage): Set \tt to \authortt while defining \authorfont.
2151 (\appendixbox): New macro.
2152 (\chapmacro, \appendixentry): Use \appendixbox to get even
2153 indentation for letters.
2154 (\summarycontents): Set \tt.
2155 (\internalpagesize): Add two arguments for real paper width and
2156 height as needed by pdfTeX.
2157 (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
2159 (\tempdima, \tempdimb): New temporary dimensions.
2160 (\pagesizesyyy): Updated.
2162 2002-06-02 Werner LEMBERG <wl@gnu.org>
2164 Adding a new keyword `papersize' to the DESC file format (similar
2165 but not completely identical to grolbp's extension). grops now has
2166 a -p command line option to override `papersize'. Finally, grolbp
2167 has been adapted to the new syntax.
2169 * src/libs/libgroff/paper.cc, src/include/paper.h: New files. It
2170 defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
2172 * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
2173 (CCSRCS): Add `paper.cc'.
2175 * src/include/font.h (font): Add `papersize' element.
2176 * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
2177 (font::scan_papersize): New function.
2178 (font::load_desc): Use it for handling `papersize' keyword.
2179 * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
2181 * src/devices/grops/ps.cc: Include paper.h.
2182 (user_paper_length): New global variable.
2183 (ps_printer): Use paper length as initializer.
2184 (make_printer): Updated.
2185 (main): Handle new `-p' option.
2186 * src/devices/grops/grops.man: Updated.
2188 * src/devices/grolbp/lbp.cc: Include paper.h.
2189 s/papersizes/lbp_papersizes/.
2190 (set_papersize): Use new `papersizes' array.
2191 (handle_unknown_desc_command): Don't handle `papersize'.
2192 (main): Use `font::scan_papersize' for handling `-p' option.
2193 * src/devices/grolbp/grolbp.man: Updated.
2195 * man/groff_font.man: Document `papersize'.
2198 2002-05-30 Werner LEMBERG <wl@gnu.org>
2200 * src/devices/grops/TODO: Updated.
2201 * src/devices/grops/grops.man: More info on paper formats.
2202 * man/groff_font.man: Document `paperheight' and `paperwidth'.
2204 2002-05-29 Werner LEMBERG <wl@gnu.org>
2206 * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
2207 to list only if srcdir != currdir.
2208 (distfiles): New target.
2210 * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
2211 (NOMAKEDIRS): New variable.
2214 2002-05-26 Werner LEMBERG <wl@gnu.org>
2216 Add .output request, similar to \! at top-level.
2218 * src/roff/troff/input.cc (transparent): Remove unused declaration.
2219 (output_request): New function.
2220 (init_input_requests): Add it.
2222 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
2225 * Makefile.in (MDEFINES): Add INSTALL_INFO.
2226 (prepare_examples): Fix typo.
2227 * doc/groff.texinfo (@direntry): Fix it.
2229 2002-05-25 Werner LEMBERG <wl@gnu.org>
2231 Including the doc subdir into groff's Makefile system.
2233 * aclocal.m4 (GROFF_INSTALL_INFO): New function.
2234 * configure.ac: Use it.
2235 Generate `doc/Makefile'.
2236 * configure: Regenerated.
2238 * Makefile.in (infodir, INSTALL_INFO): New variables.
2239 (MDEFINES, uninstall_dirs): Updated.
2240 (OTHERDIRS): Add `doc'.
2241 * Makefile.comm (CLEANDIRADD): New variable.
2242 (mostlyclean): Use it.
2244 * doc/Makefile.sub, doc/Makefile.in: New files.
2245 * doc/Makefile: Removed.
2247 * NEWS, INSTALL: Updated.
2249 2002-05-24 Werner LEMBERG <wl@gnu.org>
2251 * doc/homepage.ms: Renamed to ...
2252 * doc/webpage.ms: This.
2255 2002-05-23 Werner LEMBERG <wl@gnu.org>
2257 Integrating the `mom' macro package, contributed by Peter Schaffter
2260 * contrib/mom/*: New subdirectory tree.
2261 * Makefile.in (docdir, exampledir, htmldocdir): New variables to
2262 be used for documentation files.
2263 (MDEFINES, uninstall_dirs): Use them.
2264 (OTHERDIRS): Add contrib/mom.
2265 * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
2267 * MANIFEST, NEWS: Updated.
2269 2002-05-22 Gaius Mulley <gaius@glam.ac.uk>
2271 Change syntax of \O: \O[0] suppresses output, \O[1] enables output
2272 if at outer level; at start-up we are at outer level.
2274 * src/roff/troff/input.cc (do_suppress): Implement it.
2277 Add option -p to show progress information.
2278 pre-grohtml will now render only one page at a time, reducing the
2279 size of needed disk resources enormously.
2281 * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
2282 (imagePageName): New global variable.
2283 (psPageName, show_progress, currentPageNo): New global variables.
2284 (html_system): Close saved stderr and stdout handles.
2285 (write_end_image): Accept a parameter to control \O escape.
2286 (write_start_image): Adapted to new \O meaning.
2287 (char_buffer::write_upto_newline): Updated.
2288 (createAllPages): Replaced with...
2289 (createPage): This new function to create a single page for images.
2290 It uses `psselect' from the psutils package.
2291 (removeAllPages): Removed.
2292 (createImage): Updated.
2293 Handle progress display.
2294 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
2295 (scanArguments): Add option -p.
2296 (makeTempFiles): Updated to create temp files for psPageName and
2298 (removeTempFiles): Removed.
2301 * src/devices/grohtml/post-html.cc (header_desc::write_headings,
2302 html_printer::write_header): Append `\0' to `buffer'.
2303 (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
2305 * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
2306 Handle `text_emitted'.
2307 (html_text::table_is_void): Slightly rewritten.
2308 (stop): New external symbol.
2309 (html_text::do_push) [DEBUGGING]: Use it and simplify.
2310 (html_text::shutdown): Call `dump_stack'.
2311 (html_text::do_space): Rewritten.
2312 * src/devices/grohtml/grohtml.man: Document -p and the need of
2315 * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
2317 Call \O[0] if `ps4html' is active.
2318 * tmac/s.tmac (@EQ, @EN): Handle html better.
2320 * tmac/html.tmac: Don't use black for background colour.
2322 * src/roff/troff/node.cc: Include `div.h'.
2323 (troff_output_file::really_print_line): Don't use `is_on'.
2324 (troff_output_file::word_marker, troff_output_file::flush_tbuf
2325 troff_output_file::check_charinfo,
2326 troff_output_file::put_char_width, troff_output_file::put_char,
2327 troff_output_file::determine_line_limits, troff_output_file::draw,
2328 real_output_file::begin_page, glyph_color_node::tprintf,
2329 fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
2331 (troff_output_file::really_on): Call `do_motion'.
2332 (suppress_node::tprint): Use `get_page_number' instead of `%'
2334 Call `reset_output_registers' conditionally on `is_on'.
2336 * doc/groff.texinfo: Document new syntax of \O.
2337 * NEWS, man/groff_diff.man: Updated.
2339 2002-05-22 Werner LEMBERG <wl@gnu.org>
2341 * MORE.STUFF: Add info about David Frey's deroff implementation.
2344 2002-05-16 Werner LEMBERG <wl@gnu.org>
2346 Pic's `with' attribute now accepts positions.
2348 * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
2349 ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
2351 (object_spec): Add rule for `WITH' and `position'.
2352 (relative_path): Give `corner' the precedence of `CHOP'.
2353 * src/preproc/pic/object.h (path): New members `pos' and
2355 * src/preproc/pic/object.cc: Updated initializers of `path'.
2356 (path::follow): Handle `is_position'.
2358 * doc/pic.ms: Completely updated grammar description.
2359 Many typographical improvements.
2361 2002-05-15 Werner LEMBERG <wl@gnu.org>
2363 * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
2364 code of x in range 0-127) also.
2365 * doc/groff.texinfo, man/groff_diff.man: Updated.
2367 Added keywords `north', `south', `east', and `west' for corners
2370 * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
2372 (yylex): Handle them.
2373 * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
2374 (corner): Handle them.
2376 2002-05-14 Werner LEMBERG <wl@gnu.org>
2378 * src/devices/grops/grops.man: Clarify handling of `download' file.
2380 2002-05-11 Werner LEMBERG <wl@gnu.org>
2382 Adding `warnscale' and `spreadwarn' requests, based on a patch from
2383 Jeffrey Friedl <jfriedl@yahoo.com>.
2385 * src/roff/troff/input.cc (spread_limit, warn_scale,
2386 warn_scaling_indicator): New global variables.
2387 (warnscale_request, spreadwarn_requests): New functions.
2388 (main): Initialize `warn_scale' and `warn_scaling_indicator'.
2389 (init_input_requests): Updated.
2390 (error_type): Add `OUTPUT_WARNING'.
2391 (do_error): Handle it.
2392 (output_warning): New warning function which shows output location.
2393 * src/roff/troff/env.h (spread_limit): New external variable.
2394 * src/roff/troff/env.cc (environment::choose_breakpoint): Use
2396 (distribute_space): Emit warning if added space is larger than
2398 (environment::possibly_break_line): Emit warning if a line can't
2399 be adjusted on both sides.
2401 * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
2403 2002-05-08 Werner LEMBERG <wl@gnu.org>
2405 * src/roff/troff/node.cc (special_node::special_node): Use
2406 env_definite_font(curenv) instead of curenv->get_font(). Otherwise
2407 \X''\% crashes, for example.
2409 * doc/groff.texinfo: Document \! and \? used at top-level.
2411 2002-05-06 Werner LEMBERG <wl@gnu.org>
2413 * src/preproc/pic/pic.man: Fix some keyword syntax.
2414 Other minor typographical fixes.
2416 * src/roff/groff/groff.man: Fix typos.
2418 2002-05-04 Werner LEMBERG <wl@gnu.org>
2420 * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
2421 (ShortOpt[]): This to avoid problems with refer.
2423 * doc/pic.ms: Fix typo.
2424 Fix pic grammar description.
2426 * tmac/an-old.tmac (ne): Use de1, not de.
2428 2002-05-03 Werner LEMBERG <wl@gnu.org>
2430 * doc/groff.texinfo: Finished separation of glyphs and characters.
2431 Don't use the string `Appendix' for appendix headers (both in
2432 the text and the table of contents).
2433 * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
2436 Use registers LL and LT (similar to -ms) for controlling the
2437 length of title and line, respectively, in the -man and -mdoc
2440 * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
2441 (doc-setup-page-layout): Use \n[LL] and \n[LT].
2442 * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
2444 (an-header, an-p-footer): Use \n[LT].
2445 * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
2446 doc/groff.texinfo: Document it.
2448 2002-05-02 Werner LEMBERG <wl@gnu.org>
2450 * doc/fdl.texi: New file.
2451 * doc/groff.texinfo: Include it.
2452 Define and use @copying.
2453 Starting with separating glyph, symbol, and character.
2455 2002-04-27 Werner LEMBERG <wl@gnu.org>
2457 * Makefile.in (EXEEXT): Set it.
2458 * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
2461 * src/include/nonposix.h: Define GS_NAME.
2462 * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
2464 Some preliminary changes for EMX support under OS/2.
2466 * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
2467 __EMX__ similar to __MSDOS__.
2468 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
2470 2002-04-25 Werner LEMBERG <wl@gnu.org>
2472 * doc/groff.texinfo: Integrated groff_out.man.
2475 2002-04-23 Werner LEMBERG <wl@gnu.org>
2477 * man/groff_out.man: Minor fixes.
2479 2002-04-23 Werner LEMBERG <wl@gnu.org>
2481 * doc/groff.texinfo: Moving @cindex entries after @Def* to get
2482 correct page references.
2483 Fixed many index entries.
2485 2002-04-23 Bernd Warken <bwarken@mayn.de>
2487 * man/roff.man: Enlarged.
2489 2002-04-22 Werner LEMBERG <wl@gnu.org>
2491 * doc/groff.texinfo: More examples, other fixes.
2493 2002-04-20 Werner LEMBERG <wl@gnu.org>
2495 * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
2496 will now form a chain, e.g.
2505 This is for compatibility with plan 9's troff.
2507 * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
2511 * doc/groff.texinfo: Add documentation of remaining requests and
2514 2002-04-19 Werner LEMBERG <wl@gnu.org>
2516 * doc/groff.texinfo: Add documentation of remaining escapes.
2518 * font/devdvi/generate/tc.map: Remove entry for `sr'.
2519 * font/devdvi/*TC: Regenerated.
2521 2002-04-18 Werner LEMBERG <wl@gnu.org>
2523 * src/roff/troff/input.cc (token::next): Make \H behave consistently
2524 if not in compatibility mode, i.e., increment relative to the
2526 * doc/groff.texinfo: Updated accordingly.
2528 2002-04-17 Werner LEMBERG <wl@gnu.org>
2530 * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
2532 2002-04-16 Bernd Warken <bwarken@mayn.de>
2534 * src/roff/groff/groff.man: Improve documentation of -P option.
2537 2002-04-15 Werner LEMBERG <wl@gnu.org>
2539 Add new escape \F to switch font family.
2541 * src/roff/troff/input.cc (token::next): Handle \F.
2542 * src/roff/troff/env.cc (environment::set_family): Handle
2544 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
2547 2002-04-14 Werner LEMBERG <wl@gnu.org>
2549 * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
2552 2002-04-13 Werner LEMBERG <wl@gnu.org>
2554 Implement \f[] as an alternative to \fP. Change \mP and \MP to
2555 \m[] and \M[], respectively.
2557 * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
2558 (symbol::symbol): Handle NULL string and empty string differently.
2559 * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
2560 * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
2561 Add optional parameter.
2562 Updated calling functions.
2563 (get_copy, do_glyph_color, do_fill_color, token::next): Use
2565 * src/roff/troff/env.cc (environment::set_font): Ditto.
2567 * src/preproc/pic/troff.cc (troff_output::set_fill,
2568 troff_output::reset_color: Updated.
2570 * tmac/www.tmac: Updated.
2572 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
2573 doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
2576 * tmac/Xps.tmac: Remove some redundant code.
2578 * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
2579 tmac/dvi.tmac, contrib/groffer/groffer.man, man/roff.man,
2580 man/groff_out.man, man/groff.man, man/groff_diff.man,
2581 src/roff/groff/groff.man: Replace \f[P] with \f[].
2583 2002-04-13 Bernd Warken <bwarken@mayn.de>
2585 * src/include/printer.h, src/libs/libdriver/printer.cc
2586 (printer::change_fill_color): New member function.
2587 * src/libs/libdriver/input.cc (parse_D_command): Use it.
2589 2002-04-12 Werner LEMBERG <wl@gnu.org>
2591 * doc/groff.texinfo: Completed pass on gtroff reference.
2593 2002-04-11 Werner LEMBERG <wl@gnu.org>
2595 * doc/groff.texinfo: More fixes.
2597 2002-04-11 Bernd Warken <bwarken@mayn.de>
2599 * src/include/color.h: Decorate with `const'.
2602 * src/libs/libgroff.color.cc: Decorate with `const'.
2604 (color::color): Initialize members.
2605 * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
2606 command according to the documentation.
2608 * man/groff_out.man: Updated.
2611 2002-04-11 Gaius Mulley <gaius@glam.ac.uk>
2613 * src/preproc/html/pre-html.cc (write_start_image): Remove
2615 * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
2617 * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
2618 \C'hy' caused an assertion failure.
2620 * src/roff/troff/env.cc (environment::environment): Initialize
2622 (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
2624 2002-04-10 Werner LEMBERG <wl@gnu.org>
2626 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
2627 Document pvs request and .pvs register.
2629 2002-04-09 Werner LEMBERG <wl@gnu.org>
2631 * doc/groff.texinfo: Improve and fix documentation of diversions
2634 2002-04-08 Werner LEMBERG <wl@gnu.org>
2636 * doc/groff.texinfo: Fix documentation of drawing functions.
2639 2002-04-07 Werner LEMBERG <wl@gnu.org>
2641 * doc/groff.texinfo: Better documentation of double quotes as
2645 2002-04-06 Werner LEMBERG <wl@gnu.org>
2647 * man/groff_font.man: Document names of special characters better.
2648 * doc/groff.texinfo: Minor improvements.
2650 * tmac/lbp.tmac: Load latin1.tmac.
2651 * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
2653 * font/devX*/*: Regenerated (all chars > 0x80 removed).
2655 2002-04-05 Werner LEMBERG <wl@gnu.org>
2657 * tmac/tty.tmac: Don't use shc request.
2658 * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
2661 * man/groff_diff.man: Minor fixes.
2663 * font/devlbp/*: Remove all `charXXX' entities.
2665 * src/libs/libgroff/font.cc (font::~font): Deallocate
2666 `special_device_coding'.
2667 (font::load): Use `new' for allocating `special_device_coding'.
2668 * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
2669 Removed unused member.
2671 2002-04-05 Werner LEMBERG <wl@gnu.org>
2673 * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
2674 (resource_manager::do_begin_binary,
2675 resource_manager::do_begin_data): Use it.
2677 * doc/texinfo.tex: Updated to version 4.2.
2679 * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
2680 (token::zero_width_break): New inline function.
2681 * src/roff/troff/input.cc (token::next): Use it.
2682 (token::description): Updated.
2683 (encode_char): Ignore `\%', `\&', `\)', and `\:'.
2684 (token::add_to_node_list, token::process): Use it.
2685 * NEWS, doc/groff.texinfo: Updated.
2687 * src/preproc/eqn/over.cc (over_box::output): Fix typo.
2688 * tmac/tty.tmac: Add missing backslash.
2690 2002-04-04 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
2692 * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
2693 `.ps' register instead of `.s' to handle fractional point sizes.
2694 * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
2695 limit_box::output): Ditto.
2696 * src/preproc/eqn/other.cc (size_box::compute_metrics,
2697 size_box::output): Ditto.
2698 * src/preproc/eqn/over.cc (over_box::compute_metrics,
2699 over_box::output): Ditto.
2700 * src/preproc/eqn/script.cc (script_box::compute_metrics,
2701 script_box::output): Ditto.
2702 * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
2703 sqrt_box::output): Ditto.
2705 2002-04-03 Michael Selway <mas@ssl.co.uk>
2707 * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
2710 2002-04-03 Werner LEMBERG <wl@gnu.org>
2712 * doc/homepage.ms: Reduce title size.
2713 * doc/groff.texinfo: Fix documentation of .t register.
2714 Fix handling of colon.
2717 * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
2718 only if page length is positive to avoid a loop.
2720 * tmac/an-old.tmac (ne): Increase page length to avoid problems with
2723 2002-04-02 P. Alejandro Lopez-Valencia <dradul@yahoo.com>
2725 * src/include/nonposix.h, src/roff/groff/pipeline.c:
2726 s/__CYGWIN32__/__CYGWIN__/.
2728 2002-03-28 Gaius Mulley <gaius@glam.ac.uk>
2730 * doc/gnu.xpm: New image contributed by Emily Mulley.
2731 * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
2732 (homepage.html): Be dependent on gnu.eps.
2733 * doc/homepage.ms: Updated to new image.
2735 * src/devices/grohtml/post-html.cc (html_printer): New member
2737 (html_printer::flush_sbuf, html_printer::set_char): Set it.
2738 (html_printer::sbuf_continuation): Use it.
2740 2002-03-28 Werner LEMBERG <wl@gnu.org>
2742 * src/libs/libgroff/getopt.c: Updated to latest version.
2744 * tmac/README: More on hyphen.tex license.
2746 2002-03-26 Larry Kollar <kollar@alltel.net>
2748 * doc/groff.texinfo: Add documentation of most missing requests.
2750 2002-03-25 Werner LEMBERG <wl@gnu.org>
2752 Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
2753 of `+-', `mu', and `di', respectively.
2755 * font/devascii/R.proto, font/devutf8/R.proto,
2756 font/devlatin1/R.proto, font/devhtml/R.proto,
2757 font/devcp1047/R.proto, font/devlpb/*: Add them.
2758 * font/devps/generate/textmap: Ditto.
2759 * font/devps/*: Regenerated.
2760 * font/devlj4/generate/text.map: Add them.
2761 * font/devlj4/*: Regenerated.
2762 * font/devdvi/generate/tc.map: Use them.
2763 * font/devdvi/generate/texsy.map: Add them.
2764 * font/devdvi/*: Regenerated.
2765 * font/devX*/*: Regenerated.
2767 * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
2768 tmac/tty-char.tmac: Updated.
2770 * NEWS, man/groff_char.man: Updated.
2772 2002-03-24 Werner LEMBERG <wl@gnu.org>
2774 * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
2775 tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
2776 * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
2777 we use `.fchar' in dvi.tmac.
2778 * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
2779 * tmac/Xps.tmac: Simplify some char definitions.
2780 Add definition for \[f/].
2781 * man/groff_char.man: Updated for new X.tmac.
2783 * tmac/README: New file.
2785 2002-03-23 Phil Lobbes <phil@perkpartners.com>
2787 * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
2788 internal .y.o rule took precendence over the .y.cc rule, compiling
2789 the yacc files with gcc instead of g++.
2791 2002-03-23 Werner LEMBERG <wl@gnu.org>
2793 * tmac/dvi.tmac: Add replacement font for `CB'.
2795 * tmac/doc.tmac: s/request/macro/ in messages.
2796 (doc-generic-macro): Improve error message.
2797 * tmac/groff_mdoc.man: Minor improvements.
2799 2002-03-22 Werner LEMBERG <wl@gnu.org>
2801 * doc/groff.texinfo: Document possible conflict between `tr' and
2804 2002-03-21 Werner LEMBERG <wl@gnu.org>
2806 Improve handling of hyphenation patterns. It is now possible to
2807 use most of TeX's pattern files unmodified. To make the process
2808 more flexible, a new request `hpfcode' has been added which
2809 provides a character code mapping for the `hpf' request. See
2810 comment before hpf_getc() for more details.
2812 * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
2814 (read_patterns_file): Additional parameter for exception dictionary.
2815 Extended to recognize \pattern, \hyphenation, and \endinput.
2816 (do_hyphenation_patterns_file): Updated.
2817 * src/roff/troff/env.h (hpf_code_table): New extern.
2819 * src/roff/troff/input.cc (hpf_code_table): New array.
2820 (init_hpf_code_table, hyphenation_patterns_file_code): New
2822 (hyphenation_code): Handle translation from `trin' correctly.
2823 (main, init_input_requests): Updated.
2824 (charinfo::set_translation): Handle hyphenation code also.
2826 * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
2829 * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
2830 char' is used for offsets in hyphenation exceptions.
2832 * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
2834 * NEWS, man/groff_diff.man, man/groff.man: Document it.
2836 2002-03-20 Larry Kollar <kollar@alltel.net>
2838 * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
2841 2002-03-18 Werner LEMBERG <wl@gnu.org>
2843 * tmac/html.tmac: Fix serious typo.
2845 2002-03-17 Larry Kollar <kollar@alltel.net>
2847 * doc/groff.texinfo: Add documentation for `writec' request.
2849 2002-03-17 Werner LEMBERG <wl@gnu.org>
2851 Added request `hpfa' to append hyphenation patterns.
2853 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
2855 (hyphenation_patterns_file): Renamed to...
2856 (do_hyphenation_patterns_file): This.
2857 (hyphenation_patterns_file, hyphenation_patterns_file_append): New
2859 (init_hyphen_requests): Updated.
2860 * NEWS, man/groff.man, man/groff_diff.man: Document it.
2862 2002-03-16 Werner LEMBERG <wl@gnu.org>
2864 Added request `writec' in analogy to `tmc'.
2866 * src/roff/troff/input.cc (write_request): Renamed to...
2867 (do_write_request): This.
2868 Added one parameter.
2869 (write_request, write_request_continue): New functions.
2870 (init_input_requests): Updated.
2871 * NEWS, man/groff.man, man/groff_diff.man: Document it.
2873 * font/devdvi/DESC.in (sizes): Allow all sizes in the range
2875 * NEWS: Document it.
2877 2002-03-15 Werner LEMBERG <wl@gnu.org>
2879 * man/groff.man: Add writem request.
2881 Add request `trin' (translate input) to make `.asciify' work
2882 correctly. This is necessary since `charXXX' entity names are no
2883 longer hardcoded in font definition files.
2885 * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
2886 `translate_input' members.
2887 (charinfo::set_asciify_code, charinfo::get_asciify_code,
2888 charinfo::set_translation_input): New methods.
2889 (charinfo::set_translation): Add third argument.
2890 * src/roff/troff/input.cc (charinfo:set_translation): Set
2892 (do_translate): Add second argument.
2893 (translate_input): New function.
2894 (init_input_requests): Updated.
2895 * src/roff/troff/node.cc (glyph_node::asciify,
2896 composite_node::asciify): Use `get_asciify_code'.
2898 * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
2900 * NEWS, man/groff.man, man/groff_diff.man: Updated.
2902 2002-03-14 Larry Kollar <kollar@alltel.net>
2904 * doc/groff.texinfo: Improve documentation of .RS and .RE.
2906 2002-03-14 Werner LEMBERG <wl@gnu.org>
2908 Add a new request `sizes' similar to the `sizes' command in DESC
2911 * src/roff/troff/env.cc (override_sizes): New function.
2912 (init_env_requests): Use it.
2913 * src/roff/troff/token.h: Export `read_string'.
2914 * NEWS, man/groff_diff.man, man/groff.man: Document it.
2916 2002-03-12 Werner LEMBERG <wl@gnu.org>
2918 * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
2920 2002-03-10 Werner LEMBERG <wl@gnu.org>
2922 * tmac/pspic.tmac: Add support for -Tdvi.
2923 * tmac/dvi.tmac: Include pspic.tmac.
2924 * src/devices/grodvi/grodvi.man: Document it.
2927 * font/devlj4/generate/Makefile: Fix URL of metric files.
2929 2002-03-09 Werner LEMBERG <wl@gnu.org>
2931 * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
2933 2002-03-09 Larry Kollar <kollar@alltel.net>
2935 * tmac/groff_ms.man: Add documentation for RS and RE macros.
2937 2002-03-08 Werner LEMBERG <wl@gnu.org>
2939 * doc/groff.texinfo: Fixes for texinfo 4.1.
2941 2002-03-07 Werner LEMBERG <wl@gnu.org>
2943 * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
2945 Handle CYGWIN properly.
2947 2002-03-07 Paco Andrés Verdú <pandres@dragonet.es>
2949 * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
2950 * tmac/lbp.tmac: Add some font translations.
2952 2002-03-02 Werner LEMBERG <wl@gnu.org>
2954 * font/devcp1047/R.proto, font/devlatin1/R.proto,
2955 font/devhtml/R.proto: Remove `charXXX' entries.
2956 * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
2959 * font/devlj4/generate/text.map: Remove `charXXX' entries.
2960 * font/devlj4/*: Regenerated all font definition files.
2961 * tmac/lj4.tmac: Load latin1.tmac.
2963 * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
2964 from 2000-06-17: LJ4 metric files are *not* text files.
2966 * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
2967 register to test for EBCDIC.
2969 2002-03-01 Werner LEMBERG <wl@gnu.org>
2971 * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
2972 files (as grops already does).
2973 * src/utils/afmtodit/afmtodit.man: Document comment lines in map
2975 * src/devices/grops/grops.man: Document comment lines in encoding
2978 * tmac/cp1047.tmac: New file.
2979 * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
2980 * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
2981 * tmac/Makefile.sub (NORMALFILES): Updated.
2983 * tmac/ec.tmac: Don't load latin1.tmac again.
2985 * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
2986 font/devps/generate/dingbats.map,
2987 font/devps/generate/dingbats.rmap, font/devps/text.enc,
2988 font/devps/generate/Makefile (symbolmap): Add header comment.
2989 * font/devps/generate/textmap: Ditto.
2990 Remove `charXXX' entries.
2991 * font/devps/symbolmap: Regenerated.
2992 * font/devps/*: Regenerated all font definition files.
2994 2002-02-28 Werner LEMBERG <wl@gnu.org>
2996 Add color support to grodvi (for drawing colors are currently
2997 translated to gray values).
2999 * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
3000 (dvi_printer): Add `cur_color' member.
3001 (dvi_printer::set_color): New function.
3002 (draw_dvi_printer): Remove `fill'.
3003 (draw_dvi_printer::fill_next): Pass environment as parameter.
3004 Update code for new color support translated to gray.
3005 (dvi_printer::set_char): Updated.
3006 (dvi_printer::begin_page, dvi_printer::end_page): Handle color
3007 changes crossing the page border.
3008 (dvi_printer::draw): Updated.
3009 Remove cases `f' and `F'.
3010 * tmac/dvi.tmac: Add color definitions.
3011 * NEWS, src/devices/grodvi/grodvi.man: Updated.
3013 * tmac/an-old.tmac (R): Make this a macro to emit a warning if
3016 * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
3017 versions of autoconf.
3018 * configure: Updated.
3020 * doc/homepage.ms: Use `.blm'.
3021 * tmac/www.tmac (www-depth): New auxiliary variable.
3022 (www-pop-level): Don't issue HTML tag.
3023 (ULS, ULE, LI): Use absolute indentation.
3025 * src/devices/grops/ps.cc (ps_printer::begin_page,
3026 ps_printer::end_page): Switch forth and back to default color while
3027 starting a new page.
3029 2002-02-27 Werner LEMBERG <wl@gnu.org>
3031 Add EC and TC fonts to devdvi.
3033 * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
3034 * font/devdvi/generate/cork.map: Renamed to...
3035 * font/devdvi/generate/ec.map: This.
3036 Remove entry for `aq'.
3037 * font/devdvi/generate/tc.map: New file.
3038 * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
3041 * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
3042 * font/devdvi/Makefile.sub (DEVFILES): Updated.
3043 * tmac/ec.tmac: New file.
3044 * tmac/Makefile.sub (NORMALFILES): Updated.
3045 * NEWS, src/devices/grodvi/grodvi.man: Updated.
3046 * man/groff_char.man: Check `ECFONTS' register.
3048 * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
3050 2002-02-26 Werner LEMBERG <wl@gnu.org>
3052 * font/devdvi/generate/*.map: Remove all `charXXX' entries.
3053 * font/devdvi/generate/cork.map: Add 'y and 'Y.
3054 * font/devdvi/*: Updated.
3055 * tmac/dvi.tmac: Formatting.
3057 Add font `HBI' for the dvi output.
3058 Add support for font families `T' and `H'.
3060 * font/devdvi/HBI: New file.
3061 * font/devdvi/B: Renamed to ...
3062 * font/devdvi/TB: This.
3063 * font/devdvi/BI: Renamed to ...
3064 * font/devdvi/TBI: This.
3065 * font/devdvi/I: Renamed to ...
3066 * font/devdvi/TI: This.
3067 * font/devdvi/R: Renamed to ...
3068 * font/devdvi/TR: This.
3069 * font/devdvi/H: Renamed to ...
3070 * font/devdvi/HR: This.
3071 * font/devdvi/Makefile.sub (DEVFILES): Updated.
3072 * font/devdvi/generate/Makefile (HBI): New rule.
3074 (R, I, B, BI, H): Renamed to ...
3075 (TR, TI, TB, TBI, HR): This, respectively.
3077 * NEWS, src/devices/grodvi/grodvi.man: Updated.
3078 * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
3079 Add `styles' and `family' keywords.
3080 * tmac/dvi.tmac: Alias `H' to `HR'.
3081 Add some fspecial requests for italic fonts.
3082 Add TR and TI as special.
3083 Add support for `_' with font CWI.
3085 * src/roff/troff/number.cc (parse_expr): Add missing `break' for
3086 operator `:'. Until now, the expression `0:1' would return 2
3089 2002-02-25 Werner LEMBERG <wl@gnu.org>
3091 * man/groff_char.man: Added some missing PS glyph names (from the
3093 * font/devps/generate/textmap, font/devps/symbolmap: Add
3096 * doc/groff.texinfo: Minor additions and fixes.
3097 * man/groff_diff.man: Remove documentation of fp request. This
3098 is already covered in the original troff manual.
3099 Updated to be consistent with other doc files.
3102 2002-02-24 Werner LEMBERG <wl@gnu.org>
3104 * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
3106 Define new variable OTHERDEVDIRS (containing `font/devlj4
3107 font/devlbp' if not EBCDIC).
3108 * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
3109 (OTHERDEVDIRS): New variable.
3110 (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
3111 * configure: Regenerated.
3113 * NEWS, src/devices/grotty/grotty.man: Updated.
3115 2002-02-23 Werner LEMBERG <wl@gnu.org>
3117 * src/roff/troff/input.cc (do_overstrike, do_bracket,
3118 get_line_arg): Honour input level.
3120 Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
3122 * font/*/*: Implement it in all font files.
3123 * font/devps/generate/textmap, font/devps/generate/symbolchars,
3124 * font/devps/symbolmap: Updated.
3125 * font/devlj4/generate/text.map: Updated.
3126 * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
3127 * font/devdvi/generate/texmi.map: Updated.
3129 * font/devutf8/R.proto: Remove all `charXXX' entries.
3130 * font/devutf8/NOTES: Updated.
3132 * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
3135 * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
3137 * NEWS, man/groff_char.man: Updated.
3139 2002-02-21 Phil Lobbes <phil@perkpartners.com>
3141 * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
3143 2002-02-20 Ralph Corderoy <ralph@inputplus.demon.co.uk>
3145 * src/roff/grog/grog.pl: Fix computation of $refer.
3147 2002-02-19 Werner LEMBERG <wl@gnu.org>
3149 * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
3150 `snprintf' and `vsnprintf'.
3152 * src/include/htmlindicate.h: Renamed to...
3153 * src/include/htmlhint.h: This.
3154 * src/include/Makefile.sub: Updated.
3155 * src/preproc/eqn/main.cc: Updated.
3157 2002-02-18 Werner LEMBERG <wl@gnu.org>
3159 * man/roff.man, man/groff_out.man, man/groff.man,
3160 man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
3161 src/roff/troff/troff.man: Updated to latest changes in www.tmac.
3163 * win32-diffs: Updated.
3165 2002-02-17 Werner LEMBERG <wl@gnu.org>
3167 * doc/Makefile (clean): Add *.eps.
3168 (MEMACROS): Removed.
3169 (TFLAG): New variable.
3172 (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
3174 (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
3176 * tmac/www.tmac: Use dummy diversion while resetting and disabling
3178 * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
3180 * src/roff/troff/troff.man: Fix order of parameter description.
3184 2002-02-16 Gaius Mulley <gaius@glam.ac.uk>
3186 Simplify image handling for grohtml.
3189 * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
3191 (html_text::dump_stack): Don't emit newline while debugging.
3192 (html_text::do_push) [DEBUGGING]: Print more info.
3193 (html_text::check_emit_text): Fix handling of <p>.
3194 * src/devices/grohtml/html.h: Updated.
3195 * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
3196 replacing `fputc', `fputs', `putc'. If DEBUGGING is defined, they
3197 send its data to stderr also.
3199 (simple_output::space_or_newline) [DEBUGGING]: Removed.
3200 * src/devices/grohtml/post-html.cc (html_printer::do_links,
3201 html_printer::html_printer): Remove `DEBUGGING' conditionals.
3203 * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
3205 * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
3206 is_inline_image): Removed.
3207 (html_begin_suppress, html_end_suppress): Don't take a parameter.
3208 (graphic_start, graphic_end): Removed.
3209 * src/include/htmlindicate.h: Updated.
3210 * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
3211 (macroset_template): New global variable.
3212 (makeFileName): Use `macroset_template'.
3213 (write_end_image): Don't take a parameter.
3215 (write_start_image: Don't emit newline.
3216 (char_buffer::write_upto_newline): Updated.
3217 (char_buffer::skip_to_newline): Renamed to ...
3218 (char_buffer::skip_until_newline): This.
3220 (char_buffer::write_file_troff, char_buffer::write_file_html):
3222 (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
3223 (removeAllPages): Remove `DEBUGGING' conditionals.
3224 (addRegDef, dump_args): New functions.
3225 (char_buffer::do_html, char_buffer::do_image): Handle
3226 `www-image-template' command line variable.
3227 Add more debugging code.
3228 (addps4html): Removed.
3229 (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
3231 * src/preproc/eqn/main.cc: Include `ctype.h'.
3232 (suppress_html): Removed.
3234 (inline_equation): Use `html_begin_suppress' and
3235 `html_end_suppress'.
3236 * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
3237 (troff_output::start_picture, troff_output::finish_picture):
3239 * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
3240 (process_input_file): Updated.
3242 * src/roff/troff/div.cc (page_number): Set page number only if the
3243 `ps4html' register isn't defined.
3244 * src/roff/troff/input.cc (image_no): New external variable.
3245 (do_suppress): Use it.
3246 * src/roff/troff/node.h (suppress_node::image_id): New member.
3247 * src/roff/troff/node.cc (image_no): Remove `static' keyword.
3248 (suppress_node::suppress_node): Initialize `image_id' member.
3249 (suppress_node::same): Handle `image_id' also.
3250 (suppress_node::copy): Updated.
3251 (last_image_id): New global variable.
3252 (suppress_node::tprint): Use it.
3254 * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
3256 * tmac/pspic.mac (PSPIC): Fix html support.
3257 * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
3258 * tmac/www.tmac (www-image-template): Set up.
3259 (HTMLINDEX): Renamed to...
3261 (BODYCOLOR): Renamed to...
3263 (BACKGROUND): Renamed to...
3265 (URL): Change order of parameters for consistency.
3266 (MAILTO): Renamed to...
3268 (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
3269 (IMG, PIMG, MPIMG): This.
3270 (HTML-H-BEGIN, HTML-H-END): Renamed to...
3272 (LINKS): Renamed to...
3274 (LINE): Renamed to...
3276 (NO-AUTO-RULE): Renamed to...
3278 (HTML-TL): Renamed to...
3280 (UL-BEGIN, UL-END): Renamed to...
3282 (DROPCAP): Renamed to...
3284 (TS, TE, EQ, EN): Provide default definitions.
3285 (www-make-unique-name): Updated.
3286 (HTML-IMAGE-INLINE): Fix typo.
3287 * tmac/groff_www.man: Updated.
3289 * doc/Makefile (homepage.html): Add option -r to grohtml.
3290 Use shortened image name.
3291 * doc/groff.texinfo: Updated info on grohtml strings and macros.
3292 * doc/homepage.ms: Updated and extended.
3294 2002-02-14 Werner LEMBERG <wl@gnu.org>
3296 Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
3298 * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
3299 SGR_BACK_DEFAULT_COLOR): Replaced with ...
3300 (tty_printer::put_color): Use it.
3301 (ttr_printer::end_page): Simplify.
3303 2002-02-13 Werner LEMBERG <wl@gnu.org>
3305 * tmac/groff_tmac.man: Moved to...
3306 * man/groff_tmac.man: This place.
3307 * tmac/Makefile.sub, man/Makefile.sub: Updated.
3309 2002-02-12 Werner LEMBERG <wl@gnu.org>
3311 * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
3312 $(COMPILE.c) to not include groff's assert.h.
3314 * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
3316 * NEWS, src/drivers/grotty/grotty.man: Document it.
3318 2002-02-11 Werner LEMBERG <wl@gnu.org>
3320 * src/libs/snprintf/snprintf.c: Updated to latest version
3323 * src/roff/grog/grog.pl (process): Fix handling of `.['. We now
3324 test whether there is `.]' also.
3325 Don't check for spaces after `.['.
3326 * src/roff/grog/grog.sh: Do the same.
3328 2002-02-10 Werner LEMBERG <wl@gnu.org>
3332 * src/libs/libgroff/illegal.cc: Renamed to ...
3333 * src/libs/libgroff/invalid.cc: This.
3334 (illegal_char_table): Renamed to ...
3335 (invalid_char_table): This.
3336 * src/libs/libgroff/Makefile.sub: Updated.
3337 * win32-diffs: Updated.
3339 * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
3340 src/libs/libdriver/input.cc (fatal_command, parse_color_command,
3341 parse_x_command), src/libs/libgroff/font.cc (text_file::next,
3342 font::load), src/preproc/eqn/main.cc (read_line, main),
3343 src/preproc/eqn/lex.cc (file_input::read_line),
3344 src/preproc/pic/lex.cc (file_input::read_line,
3345 simple_file_input::get, simple_file_input::peek),
3346 src/preproc/pic/main.cc (top_input::get, top_input::peek),
3347 src/preproc/pic/pic.man, src/preproc/refer/main.cc
3348 (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
3349 do_bib), src/preproc/tbl/main.cc (table_input::get),
3350 src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
3351 src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
3352 do_zero_width, read_request, encode_char, ps_get_line,
3353 transparent_file, get_char_for_escape_name, transparent_translate,
3354 asciify, input_char_description, read_string, set_string),
3355 src/roff/troff/env.cc (environment::add_html_tag),
3356 src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
3358 * src/include/lib.h: Updated.
3360 * src/preproc/eqn/eqn.cc: Removed.
3364 * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
3366 2002-02-09 Werner LEMBERG <wl@gnu.org>
3368 * doc/gnu.xpm: New image.
3369 * doc/Makefile (DOCS): Add homepage.ps.
3370 Add rules for converting xpm->png and xpm->eps.
3371 Use `gnu.{xpm,eps}' as image names.
3372 * doc/homepage.ms: Updated.
3374 2002-02-09 Gaius Mulley <gaius@glam.ac.uk>
3376 * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
3377 (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
3378 Remove calls to `B1' and `B2'
3379 (PNG-IMAGE): New macro for inclusion of images in PNG format.
3380 (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
3381 auxiliary variables for MARGIN-PNG-IMAGE.
3382 (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
3383 auxiliary macros for MARGIN-PNG-IMAGE.
3384 (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
3386 (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
3387 (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
3388 (DROPCAP): New macro to produce dropcap characters.
3389 (www-do-image): Renamed back to...
3390 (HTML-DO-IMAGE): This.
3391 Updated all callers.
3393 * doc/Makefile (gnubw.eps): Updated.
3394 * doc/homepage.ms: Updated.
3396 2002-02-08 Werner LEMBERG <wl@gnu.org>
3398 * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
3399 Added `linethick' to table in section `Style Variables'.
3401 2002-02-08 Gaius Mulley <gaius@glam.ac.uk>
3403 * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
3405 2002-02-07 Werner LEMBERG <wl@gnu.org>
3407 Adding options -C (compatibility mode) and -c (grotty's old output
3410 * src/roff/nroff/nroff.sh: Implement it.
3412 * NEWS, src/roff/nroff/nroff.man: Updated.
3414 * PROBLEMS: Document bison 1.32 bug.
3416 Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
3418 * src/roff/troff/node.cc (make_tfont): Define it earlier.
3419 * src/roff/troff/div.h: Add prototype for `end_diversions'.
3420 * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
3421 * src/roff/troff/env.h: Add prototype for `title'.
3423 Adding EBCDIC support to grotty.
3425 * src/devices/grotty/tty.cc (CSI): New macro.
3426 (SGR_*, tty_printer::put_color): Use it.
3428 2002-02-06 Werner LEMBERG <wl@gnu.org>
3430 Implementing color support in grotty. The new switch -c activates
3431 the old drawing scheme, disabling color at the same time. The new
3432 switch `-i' selects italic instead of underlining (SGR only).
3434 * src/devices/grotty/tty.cc (putstring): New define instead of
3435 `fputs'. Updated all callers.
3436 (old_drawing_scheme): New global variable.
3437 (COLOR_CHANGE): New enum value.
3438 (SGR_*): New defines containing color handling escape sequences.
3439 (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
3440 (glyph): New members `back_color_idx' and `fore_color_idx'.
3441 (glyph::order): Add COLOR_CHANGE.
3442 (tty_printer): New members `cur_fore_idx', `curr_back_idx',
3443 `is_underline', `is_bold', `cu_flag', `tty_colors'.
3444 New methods `make_underline', `make_bold', `color_to_idx',
3445 `change_color', `put_color'.
3446 (cu_flag): Moved into `tty_printer' class.
3447 (tty_printer::tty_printer): Initialize colors.
3448 (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
3449 tty_printer::draw, tty_printer::end_page): Handle colors also.
3450 (main): Add options `-c' and `-i'.
3452 * NEWS, src/devices/grotty/grotty.man: Updated.
3454 * src/include/errarg.h (errarg): Add support for `unsigned int'.
3455 * src/libs/libgroff/errarg.c: Implement it.
3457 * src/include/printer.h (printer): Add `change_color' method
3458 (currently used by grotty only).
3459 * src/libs/libdriver/printer.cc: Implement it.
3460 * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
3461 call to `pr->change_color'.
3463 * src/roff/troff/node.cc (troff_output_file::fill_color,
3464 troff_output_file::glyph_color): Call `do_motion'.
3466 * tmac/tty.tmac: Add color definitions.
3468 * src/roff/groff/groff.man: Minor fixes.
3470 2002-02-05 Bernd Warken <bwarken@mayn.de>
3472 * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
3473 it. This is a preparation for future changes.
3475 2002-02-05 Werner LEMBERG <wl@gnu.org>
3477 * src/roff/troff/input.cc (process_input_stack): Fix the case
3478 where leading spaces are followed by \f or \s; previously, an
3479 incorrect space width has been used.
3481 * doc/roff.man (quoted_char): Fix argument.
3482 (comment): Define string.
3484 2002-02-04 Larry Kollar <kollar@alltel.net>
3486 * doc/groff.texinfo: More fixes.
3488 2002-02-04 Werner LEMBERG <wl@gnu.org>
3490 * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
3491 * src/preproc/eqn/main.cc (do_file, inline_equation): Call
3492 `restore_compatibility' before `output_string' -- the LINE_STRING
3493 register now already contains proper switches from and to
3496 * man/groff_char.man: Add Euro symbol.
3497 * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
3498 * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
3499 * doc/groff.texinfo (Defstr*): Print strings with full syntax.
3502 * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
3504 (.texinfo.html): Add support for texinfo->html.
3506 2002-02-03 Werner LEMBERG <wl@gnu.org>
3508 Added three new requests `ds1', `as1', and `ami'. The former two
3509 are equivalent to `ds' and `as' with the difference that
3510 compatibility mode is saved on entry, switched off during string
3511 expansion, and restored on exit. The latter is the pendant to `dei'
3514 (do_define_string): Use `define_mode' and `calling mode'.
3515 Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
3516 end of string, respectively.
3517 (define_string, append_string): Use `calling_mode'.
3518 (define_nocomp_string, append_nocomp_string,
3519 define_string_indirect): New functions.
3520 (init_input_requests): Updated.
3521 * NEWS, man/groff_diff.man, man/groff.man: Document it.
3523 * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
3524 `as1' for assigning LINE_STRING (this is `10' usually). Sun's
3525 mm macro package accesses this string register directly.
3526 * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
3528 * tmac/trace.tmac: Trace calls to `am' also. Make it work in
3531 2002-02-02 Larry Kollar <kollar@alltel.net>
3533 * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
3535 2002-01-31 Werner LEMBERG <wl@gnu.org>
3537 * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
3539 2002-01-31 Bernd Warken <bwarken@mayn.de>
3541 * src/devices/grolbp/lbp.cc (main): Delete `pr'.
3542 * man/groff_out.man: Revised and updated.
3544 2002-01-30 Bernd Warken <bwarken@mayn.de>
3546 * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
3547 out the unused `{' and `}' commands. Undefined by default.
3548 (IntArray): Make `data' private.
3549 (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
3550 new methods instead.
3551 (skip_line_D, skip_to_end_of_line): New functions.
3552 (get_D_fixed_args): Use `skip_line_D'.
3553 Changed to handle dummy odd arguments by ...
3554 (get_D_fixed_args_odd_dummy): This new function.
3555 (get_D_variable_args): Split some code into ...
3556 (get_possibly_integer_args): This new function.
3557 (send_draw): Use more `const'.
3558 (delete_current_env): New function.
3559 (position_to_end_of_args): Use `size_t'.
3561 (send_draw): Updated.
3562 (parse_D_command): Handle `c', `C', and `t' better.
3566 2002-01-29 Werner LEMBERG <wl@gnu.org>
3569 * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
3570 @Def...ListEnd which replaces @Def...x. This is necessary to get
3571 proper HTML output -- see the comment in the file for more
3575 2002-01-29 Gaius Mulley <gaius@glam.ac.uk>
3577 Fixes to make color changes of 2002-01-21 work with grohtml.
3579 * src/devices/grohtml/post-html.cc (style): Updated.
3580 (html_printer): Remove unused methods.
3581 (html_printer::do_font, html_printer::draw, html_printer::set_char,
3582 html_printer::special): Updated.
3583 * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
3584 html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
3585 Added some debugging code.
3586 (html_text::start_tag): Updated.
3587 (html_text::do_push): New method.
3588 (html_text::push_para): Call it.
3589 Add method for handling color.
3590 (html_text::do_color): Updated.
3591 (html_text::shutdown): Handle color.
3592 * src/devices/grohtml/html-text.h (tag_definition): New member
3596 2002-01-28 Werner LEMBERG <wl@gnu.org>
3598 * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
3600 2002-01-27 Gaius Mulley <gaius@glam.ac.uk>
3602 Add two switches -a and -g to control the antialiasing bits for
3603 text and graphics, respectively.
3605 * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
3607 * src/devices/grohtml/grohtml.man: Document them.
3608 * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
3610 (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
3611 (setupAntiAlias): New function.
3612 (createAllPages): Updated.
3613 (scanArguments): Handle `-a' and `-g'.
3614 (main): Call `setupAntiAlias'.
3617 2002-01-27 Werner LEMBERG <wl@gnu.org>
3619 * doc/groff.texinfo (Def*): Call index function after deffn.
3621 * tmac/html.tmac: Call `nroff' request.
3623 2002-01-26 Larry Kollar <kollar@alltel.net>
3625 * tmac/groff_ms.man: Add some omissions.
3627 2002-01-25 Larry Kollar <kollar@alltel.net>
3629 * tmac/groff_ms.man: Typographical improvements.
3631 2002-01-25 Werner LEMBERG <wl@gnu.org>
3633 * doc/groff.texinfo: Updated version and copyright.
3634 * src/devices/grops/grops.man: Updated.
3636 * tmac/groff_tmac.man: Fix `ig' macro.
3638 * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
3640 Use `.ne' unconditionally everywhere.
3641 (TS): Only insert some vertical space. Doing a page break is no
3642 longer necessary due to the redefinition of the `ne' request.
3644 * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
3645 warning for unknown subcommands but parse and pass them to the
3648 2002-01-24 Werner LEMBERG <wl@gnu.org>
3650 * tmac/groff_www.man, NEWS: Fix typos.
3652 2002-01-21 Werner LEMBERG <wl@gnu.org>
3654 Complete revision of color support:
3656 Adapt programs to the new libdriver/input.cc.
3658 Color spaces are no longer converted to RGB but transferred as-is
3659 in the troff intermediate output format.
3661 Handle default color gracefully. troff now supports a `default'
3662 color (which can't be changed).
3664 grops will now use the proper color space functions if available.
3668 Note that currently grohtml doesn't handle colors properly. This
3671 * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
3672 (ui_to_a): New function.
3673 * src/include/lib.h: Updated.
3675 * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
3676 (color): Simplified; removed all `double' members and methods.
3677 A new array `components' now holds the color parameters.
3678 (color::is_default, color::get_components): New methods.
3679 (color::operator==, color:operator!=): New.
3680 (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
3681 to make access to the `components' array more comprehensible.
3682 * src/libs/libgroff/color.cc: Implement new color support.
3683 (atoh): Small fixes.
3684 (color::read_encoding): Simplified for new troff intermediate color
3686 (default_color): New global variable.
3688 * src/roff/troff/input.cc (default_symbol): New global variable.
3689 (lookup_color): Use it.
3690 (default_black): Removed.
3691 (do_glyph_color, do_fill_color): Simplified.
3692 (define_color): Handle default color.
3694 (do_if_request): Handle default color.
3695 * src/roff/troff/env.cc (environment::environment): Initialize
3696 colors with `default_color'.
3697 * src/roff/troff/node.cc (troff_output_file::put): Add method
3699 (troff_output_file::hex): Removed.
3700 (troff_output_file::fill_color, troff_output_file::glyph_color):
3701 Updated to include/color.h and libdriver/input.cc.
3703 * src/preproc/pic/object.cc (draw_arrow): New parameter to set
3704 fill color properly (identically to the outline color). \D'f...'
3705 doesn't work any more.
3706 All function calls to it updated.
3708 * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
3710 * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
3713 * src/devices/grops/ps.cc (ps_output::put_color): New method.
3714 (ps_printer::sbuf_color): Make a real member instead of pointer.
3715 (ps_printer::fill_color, ps_printer::output_color): Removed.
3716 (ps_printer::ps_printer): Updated.
3717 (ps_printer::set_char): Ditto.
3718 (ps_printer::set_color): Use various color schemes.
3719 Use `put_color' method.
3720 (ps_printer::flush_sbuf): Don't set color.
3721 (ps_printer::fill_path): Take `environment' as parameter.
3722 Simplify color handling.
3723 (ps_printer::set_line_thickness): Renamed to ...
3724 (ps_printer::set_line_thickness_and_color): This (and updated).
3725 (ps_printer::set_color): Change second parameter from `complete'
3726 to `fill' which better describes what it does.
3727 (ps_printer::draw): Call `flush_sbuf' to output graphic commands
3728 and text in the right order.
3730 Remove branches for `f' and `F'; this is handled by
3732 * src/devices/grops/ps.h: Updated.
3733 * font/devps/prologue (FL): Redefined.
3734 ({F,C}r,k,g: New color functions (with and without filling).
3736 * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
3737 * man/groff_diff.man, man/groff.man, man/groff_out.man,
3738 doc/groff.texinfo, NEWS: Updated.
3740 2002-01-20 Bernd Warken <bwarken@mayn.de>
3742 * src/libs/libdriver/input.cc: Completely rewritten. See comments
3743 in this file for what has been changed.
3745 2002-01-19 Werner LEMBERG <wl@gnu.org>
3747 * test-groff: Fix GROFF_FONT_PATH.
3748 * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
3749 is read before .TH or .Dd is parsed.
3751 2002-01-18 Gaius Mulley <gaius@glam.ac.uk>
3753 * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
3754 quadrant boundaries.
3756 2002-01-18 Werner LEMBERG <wl@gnu.org>
3758 * devices/grops/ps.cc: Aargh! Fix the fix of the incorrectly
3761 2002-01-17 Ruslan Ermilov <ru@FreeBSD.org>
3763 * tmac/doc.common: Initialize %I register for the %I macro to
3764 avoid (harmless) warning.
3765 * tmac/doc.tmac (Bd): There is no reason to enforce -compact
3766 when in the SYNOPSIS section.
3768 2002-01-17 Bruno Haible <haible@clisp.cons.org>
3770 * src/preproc/pic/lex.cc (get_token): Fix typo.
3772 2002-01-17 Werner LEMBERG <wl@gnu.org>
3774 * devices/grops/ps.cc: Fix incorrectly applied last patch.
3776 2002-01-17 Larry Kollar <kollar@alltel.net>
3778 * tmac/groff_ms.man: Completely rewritten.
3780 2002-01-16 Werner LEMBERG <wl@gnu.org>
3782 * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
3784 2002-01-15 Gaius Mulley <gaius@glam.ac.uk>
3786 * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
3788 (ps_printer::draw): Ditto.
3790 2002-01-14 Ruslan Ermilov <ru@FreeBSD.org>
3792 * tmac/groff_mdoc.man: Minor fixes.
3794 2002-01-13 Werner LEMBERG <wl@gnu.org>
3796 * man/groff_out.man: Some fixes.
3798 2002-01-13 Gaius Mulley <gaius@glam.ac.uk>
3800 * doc/pic.ms: Fix typos.
3802 2002-01-12 Werner LEMBERG <wl@gnu.org>
3804 * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
3806 2002-01-10 Werner LEMBERG <wl@gnu.org>
3808 * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
3812 2002-01-09 Bernd Warken <bwarken@mayn.de>
3814 * man/groff_out.man: Revised.
3815 * man/roff.man: Minor fixes.
3816 * src/roff/troff/troff.man: Some reordering.
3818 2002-01-09 Werner LEMBERG <wl@gnu.org>
3820 * tmac/an-old.tmac: Add dummy macros for equation support.
3822 2002-01-07 Werner LEMBERG <wl@gnu.org>
3824 doc/groff.texinfo: Fix documentation of glyph searching algorithm.
3826 * tmac/an-old.tmac: Revert change 2001-12-23. This breaks too many
3828 * tmac/groff_man.man: Small improvements.
3830 2002-01-07 Bernd Warken <bwarken@mayn.de>
3832 * man/groff_diff.man: Revised.
3834 2002-01-06 Werner LEMBERG <wl@gnu.org>
3836 * tmac/www.tmac: Remove extraneous backslash.
3838 2002-01-06 Bernd Warken <bwarken@mayn.de>
3840 * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
3842 2002-01-05 Werner LEMBERG <wl@gnu.org>
3844 Integrated groffer, contributed by Bernd Warken.
3846 * contrib/groffer/*: New.
3847 * Makefile.in, NEWS: Updated.
3849 2002-01-04 Werner LEMBERG <wl@gnu.org>
3851 * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
3852 registers defined in macro packages.
3853 Revising the ms part.
3855 2002-01-04 Larry Kollar <kollar@alltel.net>
3857 * doc/groff.texinfo: Add documentation for ms macros.
3859 2002-01-02 Werner LEMBERG <wl@gnu.org>
3861 First step in adding PS support for the Euro symbol. `eu' is the
3862 official Euro logo, `Eu' is a font-specific glyph variant.
3864 * font/devps/text.enc: Add `Euro' at position 9.
3865 * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
3866 * font/devps/symbolmap: Regenerated.
3870 2002-01-02 Bernd Warken <bwarken@mayn.de>
3872 * man/roff.man: Revised.
3874 2002-01-01 Bernd Warken <bwarken@mayn.de>
3876 * src/roff/groff/groff.man: Completely rewritten.
3878 2001-12-31 Werner LEMBERG <wl@gnu.org>
3880 * doc/Makefile: Updated.
3882 2001-12-30 Werner LEMBERG <wl@gnu.org>
3884 * tmac/www.tmac: Make all names of internal macros/registers/strings
3885 lowercase, and prepend `www-'.
3886 Other minor changes.
3887 * src/roff/troff/troff.man: Add preprocessor string at BOF.
3889 2001-12-30 Gaius Mulley <gaius@glam.ac.uk>
3891 Implement option `-b' in grohtml to set the HTML background colour.
3893 * src/devices/grohtml/post-html.cc (default_background): New global
3895 (html_printer::html_printer): Initialize `background' to
3896 `default_background'.
3897 (main): Implement option `-b'.
3899 * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
3901 * src/devices/grohtml/grohtml.man: Updated.
3902 * doc/Makefile (.ms.html): Use `-b'.
3903 * tmac/html.tmac: Don't set background color.
3905 Add new grohtml tag `.html-tl'.
3907 * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
3909 (title_desc::title_desc): Updated.
3910 (html_printer::troff_tag): Handle `.html-tl'.
3911 (html_printer::write_title): Use `with_h1'.
3912 * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
3913 (HTML-TL): New macro.
3915 Add support for unordered lists in HTML.
3917 * tmac/www.tmac (www-level): New auxiliary register.
3918 (www-level1, www-level2, www-level3): New auxiliary strings.
3919 (www-push-level, www-pop-level): New auxiliary macros
3920 (UL-BEGIN, UL-END, LI): User macros for unordered lists.
3924 * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
3925 (DEFAULT_VERTICAL_OFFSET): Removed.
3926 (IMAGE_BOARDER_PIXELS): Set to 0.
3927 (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
3928 (vertical_offset): Initialize with 0.
3929 (gsPaper): New global variable.
3930 (get_resolution): Scan for and return unsigned int.
3931 (get_papersize): New function to get paper length from devps/DESC.
3932 (determine_vertical_offset): New function.
3933 (createAllPages): Produce gray-level images and use proper page
3935 (createImage): Use `-quiet' option of pnmcrop.
3936 (addZ): Fix passing of `-Z'.
3937 (scanArguments): Fix handling of `-o'.
3938 (main): Call `determine_vertical_offset'.
3939 * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
3942 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
3943 * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
3944 glyph descenders properly.
3946 * doc/homepage.ms: Include `gnubw.eps'.
3947 * doc/Makefile (gnubw.eps): New rule.
3948 (homepage.html): Depend on `gnubw.eps'.
3950 2001-12-25 Werner LEMBERG <wl@gnu.org>
3952 * src/roff/troff/input.cc (default_black): Fix return value.
3954 2001-12-24 Ruslan Ermilov <ru@FreeBSD.org>
3956 * tmac/doc-common (Dt): Change output of architecture strings.
3957 Do some syntax cleanup.
3958 * tmac/groff_mdoc.man: Updated.
3960 2001-12-23 Werner LEMBERG <wl@gnu.org>
3962 Adding an `itc' request (input line trap accepting \c).
3964 * src/roff/troff/env.h (environment): New member
3965 `continued_input_trap'.
3966 Make `do_input_trap' a friend function instead of `input_trap'.
3967 * src/roff/troff/env.cc (environment::environment,
3968 environment::copy): Updated.
3969 (environment::newline): Implement it.
3970 (do_input_trap): New function.
3971 (input_trap): Call `do_input_trap'.
3972 (input_trap_continued): New function.
3973 (init_env_requests): Updated.
3974 * src/roff/troff/TODO: Updated.
3976 * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
3979 * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
3981 2001-12-22 Ruslan Ermilov <ru@FreeBSD.org>
3983 * tmac/doc-common, tmac/doc-syms: Small updates.
3985 2001-12-22 Colin Watson <cjwatson@debian.org>
3987 * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
3989 2001-12-22 Bernd Warken <bwarken@mayn.de>
3991 * MANIFEST: New file.
3993 2001-12-22 Werner LEMBERG <wl@gnu.org>
3995 * src/preproc/grn/grn.man: Updated.
3997 2001-12-22 Solar Designer <solar@openwall.com>
3999 * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
4002 2001-12-19 Werner LEMBERG <wl@gnu.org>
4004 Implement a fallback character request `.fchar'.
4006 * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
4007 (is_fallback): New inline function.
4008 * src/roff/troff/input.cc (do_define_character): New function.
4009 (define_character): Call `do_define_character'.
4010 (define_fallback_character): New function.
4011 (init_input_requests): Add `fchar'.
4012 (charinfo::charinfo): Updated.
4013 (charinfo::set_macro): New argument to set `fallback' flag.
4014 * src/roff/troff/node.cc (make_glyph_node, make_node,
4015 node::add_char): Check `fallback' flag.
4016 * NEWS, man/groff_diff.man, man/groff_man: Updated.
4018 2001-12-16 Werner LEMBERG <wl@gnu.org>
4020 * groff.texinfo: Document exact search algorithm for glyphs.
4022 2001-12-15 Werner LEMBERG <wl@gnu.org>
4024 * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
4025 the left side of $(MANPAGES) rule to make it always non-empty.
4027 2001-12-14 Werner LEMBERG <wl@gnu.org>
4029 * src/roff/troff/input.cc (default_black): Define default color
4030 `black' if not yet defined.
4032 2001-12-13 Werner LEMBERG <wl@gnu.org>
4034 Implement new string-valued register `.fn' to return the current
4035 real (internal) font name.
4037 * env.cc (environment::get_font_name_string): New function.
4038 (init_env_requests): Add `.fn' register.
4039 * env.h (environment): Updated.
4040 * node.cc (font_info): Make `get_font_name' a friend.
4041 (get_font_name): New function.
4044 * man/groff_diff.man, man/groff.man, NEWS: Updated.
4046 2001-12-12 Ralph Corderoy <ralph@inputplus.demon.co.uk>
4048 * src/preproc/eqn/main.cc (inline_equation): Fix typos.
4050 2001-12-12 Werner LEMBERG <wl@gnu.org>
4052 * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
4054 2001-12-10 Gaius Mulley <gaius@glam.ac.uk>
4056 * man/groff_diff.man: Adding documentation for \O.
4058 2001-12-10 Werner LEMBERG <wl@gnu.org>
4060 * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
4061 (scanArguments): Use PROG_PREFIX for the name of the troff binary.
4063 2001-12-09 Werner LEMBERG <wl@gnu.org>
4065 * man/roff.man: Revised.
4066 * src/roff/groff/groff.man: Replace man page references with a
4067 pointer to roff.man.
4069 2001-12-09 Bernd Warken <bwarken@mayn.de>
4071 * man/roff.man: Completely rewritten.
4073 2001-12-06 Ralph Corderoy <ralph@inputplus.demon.co.uk>
4075 * src/preproc/eqn/main.cc (inline_equation): Improve error message.
4077 2001-12-05 Werner LEMBERG <wl@gnu.org>
4079 * src/roff/troff/input.cc (get_delim_file_name): Removed since no
4081 * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
4082 order of initializers.
4085 2001-12-05 Gaius Mulley <gaius@glam.ac.uk>
4087 * doc/groff.texinfo: Fix documentation of \O.
4089 * src/devices/grohtml/html-text.cc (html_text::do_indent,
4090 html_text::do_table, html_text::do_emittext, html_text::do_para):
4091 Use `const' for first argument.
4092 (html_text::do_table): Use cast.
4093 * src/devices/grohtml/html-text.h: Updated.
4094 * src/devices/grohtml/output.cc (simple_output::put_string): Add
4095 method for `const string &s'.
4096 * src/devices/grohtml/html.h: Updated.
4097 * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
4098 (ANCHOR_TEMPLATE): Modified.
4099 (manufacture_headings): New global variable to handle `-h' option.
4100 (is_subsection): Removed.
4101 (char_buffer::add_string): Add `const' to first argument.
4102 Protect against invalid string argument.
4103 Add method for `const string &s'.
4104 (text_glob): Completely redesigned.
4105 (page): Use `const' for strings and remove string length variable.
4106 (page::add_html): Removed.
4107 (page::add_end_encode): New member function.
4108 (to_unicode): Moved upwards.
4109 (title_desc, header_desc): Updated.
4110 (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
4112 (html_printer::is_bold, html_printer::make_bold): New member
4114 (html_printer::end_of_line): Updated.
4115 (generate_img_src, html_printer::do_auto_image,
4116 html_printer::do_title, html_printer::write_header,
4117 html_printer::determine_header_level, html_printer::do_heading,
4118 html_printer::do_linelength, html_printer::do_pageoffset,
4119 html_printer::do_indentation, html_printer::do_tempindent,
4120 html_printer::do_indentedparagraph, html_printer::do_break,
4121 html_printer::flush_sbuf, get_html_translation,
4122 html_printer::begin_page, html_printer::special): Rewritten to get
4123 rid of static string length limit.
4124 (html_printer::troff_tag): Added `.no-auto-rule'.
4125 (html_printer::flush_globs): Small fix.
4126 (html_printer::determine_space): Don't compute `space_width'.
4127 (html_printer::translate_to_html): Renamed to ...
4128 (html_printer::emit_html): This (with updates).
4129 (html_printer::write_header): Implement `-h' option.
4130 (html_printer::draw): Remove commented-out code. Handle `F'
4132 (html_printer::add_char_to_sbuf): Removed.
4133 (html_printer::add_to_sbuf): Rewritten.
4134 (html_printer::sbuf_continuation): Fixed.
4135 (html_printer::seen_backwards_escape, reverse,
4136 html_printer::remove_last_char_from_sbuf): Removed.
4137 (char_translate_to_html, str_translate_to_html): Removed.
4138 (html_printer::overstrike): New function member.
4139 (html_printer::set_char): Use it.
4140 (html_printer::do_body): New function member.
4141 (html_printer::~html_printer): Use it.
4142 (main): Handle `-h' option.
4144 * src/devices/grohtml/grohtml.man: Document -h switch.
4146 * src/preproc/html/pre-html.cc: Include searchpath.h
4147 Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
4148 (get_resolution): New function.
4149 (checkImageDir): Use `0777' permissions in mkdir()
4150 (write_start_image): Rewritten to use `\O[5...]'.
4151 (createImage, generateImages): Updated.
4152 (main): Handle `F' and `h' options.
4153 Use `get_resolution'.
4155 * src/roff/troff/input.cc (begin, end, image): Removed.
4156 (do_suppress): Take parameter.
4157 Handle modified syntax of `\O'.
4158 (token::next): Updated.
4159 (init_markup_requests): Removed.
4162 * src/roff/troff/div.h: Add declaration for begin_page().
4164 * tmac/color-html.tmac: Removed. Contents moved to...
4165 * tmac/html.tmac: Here. Set background color.
4166 * tmac/color.tmac: Removed. Contents moved to...
4167 * tmac/ps.tmac: Here.
4168 * tmac/www.tmac: Remove the title command when generating images
4170 (NO_AUTO_RULE): New macro.
4171 (HTML_DO_IMAGE): Use revised `\O' escapes.
4172 * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
4174 2001-12-02 Werner LEMBERG <wl@gnu.org>
4176 * tmac/groff_mdoc.man: Fix typo.
4178 2001-12-01 Colin Watson <cjwatson@debian.org>
4180 * man/roff.man: Fix typo.
4182 2001-11-29 Werner LEMBERG <wl@gnu.org>
4184 * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
4187 * src/roff/troff/input.cc (read_draw_node): Emit error message if
4188 more than one argument to \D'f ...'.
4190 * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
4192 2001-11-28 Werner LEMBERG <wl@gnu.org>
4194 * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
4197 * tmac/groff_man.man: Minor cosmetic fix.
4199 2001-11-27 Werner LEMBERG <wl@gnu.org>
4201 * src/roff/groff/groff.man, tmac/groff_tmac.man,
4202 tmac/groff_www.man: s/mwww/www/.
4204 2001-11-26 Werner LEMBERG <wl@gnu.org>
4206 * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
4207 * configure: Regenerated.
4208 * win32-diffs: Updated.
4210 * tmac/groff_mwww.tmac: Renamed to ...
4211 * tmac/groff_www.tmac: This.
4212 * tmac/mwww.tmac: Removed.
4213 * NEWS, tmac/Makefile.sub: Updated.
4215 2001-11-21 Werner LEMBERG <wl@gnu.org>
4217 * doc/groff.texinfo: Improve documentation of the `\v' escape.
4218 Fix explanation of `\D' and `rt'.
4220 2001-11-20 Werner LEMBERG <wl@gnu.org>
4222 * tmac/an-old.tmac (an-header): Set header length equal to page
4224 * doc/groff.texinfo: Improve documentation of `ne' request. Other
4228 2001-11-19 Werner LEMBERG <wl@gnu.org>
4230 * NEWS, man/Makefile.sub: Updated.
4232 2001-11-19 Bernd Warken <bwarken@mayn.de>
4234 * man/ditroff.man: New file.
4236 2001-11-17 Werner LEMBERG <wl@gnu.org>
4238 * man/groff_differences.man: Renamed to ...
4239 * man/groff_diff.man: This. Updated.
4240 * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
4242 * src/preproc/html/pushbackbuffer.cc: Renamed to ...
4243 * src/preproc/html/pushback.cc: This. Updated.
4244 * src/preproc/html/pushbackbuffer.h: Renamed to ...
4245 * src/preproc/html/pushback.h: This.
4246 * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
4249 * src/libs/libgroff/htmlindicate.cc: Renamed to ...
4250 * src/libs/libgroff/htmlhint.cc: This.
4251 * src/libs/libgroff/Makefile.sub: Updated.
4253 * tmac/an-old.tmac (an-end): Fix page length.
4255 2001-11-16 Werner LEMBERG <wl@gnu.org>
4257 * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
4258 * man/Makefile.sub: Include groff_differences.man.
4259 * VERSION: Set to 1.18.
4260 * REVISION: Set to 0.
4262 2001-11-16 Bernd Warken <bwarken@mayn.de>
4264 * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
4265 the second dot (or ending macro name) to end a macro.
4266 * doc/groff.texinfo: Doc fix.
4268 2001-11-16 Ruslan Ermilov <ru@FreeBSD.org>
4270 * tmac/doc-common (doc-header): Handle very long document titles
4273 2001-11-16 Werner LEMBERG <wl@gnu.org>
4275 * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
4277 2001-11-15 Werner LEMBERG <wl@gnu.org>
4279 * src/roff/troff/troff.man: Revised and split into troff.man and...
4280 * man/groff_differences.man: New file.
4283 2001-11-13 Werner LEMBERG <wl@gnu.org>
4285 * tmac/an-old.tmac (TS, TE): New macros for table support.
4287 2001-11-12 Werner LEMBERG <wl@gnu.org>
4289 * src/include/lib.h: Provide a fix for emx to not include
4292 2001-10-27 Werner LEMBERG <wl@gnu.org>
4294 * src/roff/troff/input.cc (substring_macro): Fix computation of
4297 2001-10-20 Werner LEMBERG <wl@gnu.org>
4299 Undo change from 2001-08-28.
4301 * src/roff/troff/input.cc (have_input): New global variable.
4302 (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
4303 in compatibility mode.
4304 (process_input_stack): Use it.
4306 2001-10-19 Ruslan Ermilov <ru@FreeBSD.org>
4308 * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
4309 being handled as end-of-sentence characters,
4311 2001-10-10 Gaius Mulley <gaius@glam.ac.uk>
4313 * src/roff/troff/input.cc (file_iterator): New members
4314 `suppress_newline_flag' and `seen_escape'.
4315 (file_iterator::next_file): Updated.
4316 (file_iterator::fill): Use it.
4317 (string_iterator): New member `suppress_newline_flag'.
4318 (string_iterator::fill): Set it.
4319 (get_color_element): Use MAX_COLOR_VAL.
4320 * src/roff/troff/env.cc (environment): Remove `need_eol'.
4321 (no_fill): Don't set `env->ignore_next_eol'.
4322 (environment::newline): Handle `eol' tag properly.
4324 (environment::add_html_tag): Set `env->ignore_next_eol'.
4326 * src/roff/troff/env.h (environment): Updated.
4328 * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
4330 (html_printer::outstanding_eol): New member function.
4331 (html_printer::do_title): Use new functions.
4332 (html_printer::troff_tag): Test `id_eol_ce'.
4334 2001-10-10 Werner LEMBERG <wl@gnu.org>
4336 * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
4337 files work with -C also.
4339 2001-10-05 Werner LEMBERG <wl@gnu.org>
4341 * doc/pic.ms: Minor fix.
4342 * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
4343 as a valid command line switch.
4344 * src/devices/grohtml/post-html.cc (main): Ditto.
4346 * src/devices/grohtml/grohtml.man: Updated.
4347 * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
4349 2001-10-04 Werner LEMBERG <wl@gnu.org>
4351 Implementing color support in troff, pic, grops, and grohtml. These
4352 changes are based on a major patch provided by Gaius Mulley
4355 New request: `defcolor', supporting rgb, cmy, cmyk, and gray
4356 definitions with both hex values and fractions.
4358 New escapes: \m and \M for drawing and background color,
4359 respectively. This corresponds to the troff output commands `m'
4362 groff and troff accept command line switch `-c' to disable color
4363 output (which is automatically disabled in compatibility mode).
4365 New scaling indicator `f' for fractions (1f = 65536u).
4367 New conditional operator `m' to test for defined colors with `if'
4370 New keywords `color' (or `colour', `colored', `coloured'), `outline'
4371 (or `outlined'), and `shaded' added to pic.
4373 * src/include/color.h: New file.
4374 * src/include/driver.h: Include it.
4375 * src/include/printer.h: Include color.h.
4376 (environment): New members `col' and `fill'.
4377 (printer): Remove `adjust_arc_center' member function.
4378 * src/include/Makefile.sub: Updated.
4380 * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
4382 Handle `m' and `DF' troff commands.
4383 * src/libs/libgroff/color.cc: New file.
4384 * src/libs/libgroff/Makefile.sub: Updated.
4386 * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
4388 (createImage): Fix computation of `y2'.
4390 (buffer::write_file_html): Remove calls to `stop'.
4392 * src/preproc/pic/common.h (common_output): New abstract function
4393 members `set_color', `reset_color', `get_last_filled', and
4394 `get_outline_color'.
4395 * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
4396 (object_spec): Add members `shaded' and `outlined'.
4397 * src/preproc/pic/output.h (output): `command' is now abstract.
4398 New function members `set_color', `reset_color', `get_last_filled',
4399 and `get_outline_color'.
4400 * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
4401 `outline[d]', and `shaded'.
4402 * src/preproc/pic/object.cc (output::command): Removed.
4403 (output::set_location): Moved to output.h.
4404 (graphic_object): Add protected members `outline_color' and
4406 Add member functions `set_outline_color', `get_outline_color', and
4408 (closed_object): Add member function `set_fill_color'.
4409 Add member `color_fill'.
4410 (graphic_object::print_text): Use `out->set_color' and
4412 (box_object::print, ellipse_object::print, circle_object::print,
4413 line_object::print, spline_object::print, arc_object::print): Ditto.
4414 (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
4415 * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
4416 `SHADED', making them `%left'.
4417 Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
4418 * src/preproc/pic/tex.cc (tex_output): New dummy function members
4419 `set_color', `reset_color', `get_last_filled', and
4420 `get_outline_color'.
4421 * src/preproc/pic/troff.cc (simple_output): New abstract function
4422 members `set_color', `reset_color', and `get_last_filled'.
4423 (simple_output::polygon, simple_output::circle,
4424 simple_output::ellipse): Use `get_last_filled'.
4425 (troff_output): New members `last_filled' and `last_outlined'.
4426 New function members `set_color', `reset_color', `get_last_filled',
4427 and `get_outline_color'.
4428 (troff_output::finish_picture): Use `reset_color'.
4429 (troff_output::set_fill): Test `last_filled'.
4430 * src/preproc/pic/pic.man: Updated.
4432 * src/roff/groff/groff.cc (main): Implement `-c' option.
4433 (synopsis, help): Updated.
4434 src/roff/groff/groff.man: Updated.
4436 * src/roff/troff/troff.h: Include color.h.
4437 (warning_type): Add WARN_COLOR.
4438 * src/roff/troff/env.h (environment): New members
4439 `{cur,prev}_{glyph,fill}_color'.
4440 New member functions `get_{prev_,}{glyph,fill}_color'.
4441 * src/roff/troff/env.cc: Initialize and implement them.
4442 * src/roff/troff/input.cc: New global variable `disable_color_flag'.
4443 Replace `NULL' with `0' everywhere for consistency.
4444 (lookup_color, default_black, do_glyph_color, do_fill_color,
4445 get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
4446 define_color): New functions.
4447 (token::next): Implement \M and \m escapes.
4448 (do_if_request): Implement `m' operator.
4450 (main): Implement `-c' option.
4451 (init_markup_requests): Add `defcolor' request.
4452 (warning_table): Add `color' warning.
4453 * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
4455 * src/roff/troff/node.cc (troff_output_file): New members
4456 `current_{page,glyph}color'. New member functions `put_hex',
4457 `glyph_color', and `fill_color'.
4458 (glyph_color_node::*, fill_color_node::*): Implement it.
4459 * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
4460 (parse_term): Add support for `f'.
4461 * src/roff/troff/troff.man: Updated.
4463 * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
4465 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
4466 * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
4468 * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
4469 (tag_definition): Use `void *' for arg1.
4470 (html_text): New member functions `do_color' and `done_color'.
4471 Use `void *' for second parameter of `push_para' member function.
4472 New `push_para' member function with a single parameter.
4473 Use `char *' for parameter of `issue_table_begin' member funtion.
4474 New `issue_color_begin' member function.
4475 * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
4477 (html_text::issue_color_begin): New function.
4478 (html_text::issue_table_begin): Use `char *' for parameter.
4479 (html_text::start_tag, html_text::shutdown,
4480 html_text::check_emit_text): Updated.
4481 (html_text::push_para): Use `void *' for second parameter.
4482 Add same function with only one parameter.
4483 (html_text::do_*): Updated.
4484 (html_text::do_color, html_text::done_color): New functions.
4485 * src/devices/grohtml/post-html.cc (style): New member `col'.
4486 Mew member `style' with 6 parameters.
4487 (style::style, style::operator==): Updated.
4488 (html_printer::do_font): Use it.
4489 (html_printer::draw): Add dummy entry for `F'.
4490 (html_printer::set_char): Updated.
4491 * src/devices/grohtml/grohtml.man: Updated.
4493 * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
4494 trailing zeroes removed.
4495 (ps_printer): New members `sbuf_color', `fill_color', and
4497 Removed member `fill'.
4498 New member function `set_color'.
4499 (ps_printer::ps_printer, ps_printer::set_char): Updated.
4500 (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
4501 ps_printer::fill_path, ps_printer::draw): Use `set_color'.
4503 * tmac/color-html.tmac, tmac/color.tmac: New files.
4504 * tmac/troffrc: Include them.
4505 * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
4506 * tmac/Makefile.sub: Updated.
4508 * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
4509 man/groff.man: Updated.
4510 * font/devps/prologue.ps: Define FC and CO functions.
4512 2001-10-04 Gaius Mulley <gaius@glam.ac.uk>
4514 Fix incorrect cropping of images and incorrect handling of special
4515 characters. Fix handling of file names in \O.
4517 * src/include/geometry.h: New file.
4518 * src/libs/libgroff/geometry.cc: New file.
4519 * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
4521 * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
4523 (do_suppress): Updated.
4524 * src/roff/troff/node.cc: Include geometry.h.
4525 (troff_output_file::flush_tbuf): Fixed parameters to
4526 `check_output_limits'.
4527 (troff_output_file::check_charinfo): Ditto.
4528 (troff_output_file::determine_line_limits): Add support for `Da'
4531 * src/devices/grohtml/post-html.cc (str_translate_to_html):
4532 Add new parameter `is_special' to decode special characters from
4534 (html_printer::do_title, html_printer::do_heading,
4535 html_printer::do_indentedparagraph,
4536 html_printer::translate_to_html, html_printer::special): Updated.
4538 2001-10-03 Werner LEMBERG <wl@gnu.org>
4540 * Makefile.sub (DISTCLEANFILES): Add stamp-h.
4541 Fix entry for config.h.
4542 * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
4543 * tmac/troffrc: Translate nonbreakable space character to `\~'.
4544 * src/preproc/eqn/eqn.man: Document -d command line option.
4546 2001-09-27 Werner LEMBERG <wl@gnu.org>
4548 * man/groff.man: Use
4556 instead of the old code (`.ad .hy' after the table) to suppress
4557 incorrect hyphenation for grohtml output.
4559 2001-09-22 Werner LEMBERG <wl@gnu.org>
4561 * man/groff_font.man, man/groff_out.man: Minor fixes.
4563 2001-09-20 Werner LEMBERG <wl@gnu.org>
4565 * PROBLEMS: Updated, reordered. Improved EPS section (thanks to
4566 Arnold Robbins <arnold@skeeve.com>).
4568 2001-09-09 Werner LEMBERG <wl@gnu.org>
4570 * configure: Regenerated with autoconf 2.52.
4572 * doc/groff.texinfo: Complete revision of indices.
4574 2001-09-07 Werner LEMBERG <wl@gnu.org>
4576 * doc/Makefile (clean): Updated to delete all indices.
4578 2001-09-05 Werner LEMBERG <wl@gnu.org>
4580 * src/roff/troff/troff.man: Remove superfluous line.
4582 * tmac/s.tmac: Enable all warnings only if no -W or -w option is
4583 given on the command line (or rather, if only the default warnings
4586 2001-09-03 Werner LEMBERG <wl@gnu.org>
4588 * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
4589 use .ne for TTY devices.
4591 2001-08-31 Werner LEMBERG <wl@gnu.org>
4593 * src/roff/troff/token.h, src/roff/troff/input.cc:
4594 s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
4596 2001-08-28 Werner LEMBERG <wl@gnu.org>
4598 * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
4599 * src/roff/troff/input.cc (token::next): Return
4600 TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
4602 (token::description): Updated.
4603 (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
4604 (token::add_to_node_list, token::process): Ignore
4605 TOKEN_TRANSPARENT_ESCAPE.
4607 2001-08-27 Werner LEMBERG <wl@gnu.org>
4609 * tmac/an-old.tmac: Fix `S' string.
4611 2001-08-26 Werner LEMBERG <wl@gnu.org>
4613 * src/roff/troff/troff.man: Don't use .ne for TTY devices.
4615 2001-08-25 Werner LEMBERG <wl@gnu.org>
4617 * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
4619 Many other minor fixes.
4621 * configure.ac: Add message at end to inform how to compile
4623 * configure: Regenerated.
4625 2001-08-24 Werner LEMBERG <wl@gnu.org>
4627 * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
4628 Updated to latest version of libc.
4630 2001-08-23 Werner LEMBERG <wl@gnu.org>
4632 * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
4633 Autoconf 2.50 and newer can handle this.
4634 * configure: Regenerated.
4636 2001-08-21 Werner LEMBERG <wl@gnu.org>
4638 * doc/pic.ms: Fix typo.
4639 * src/preproc/tbl/tbl.man: Document case of global options.
4641 2001-08-21 Gaius Mulley <gaius@glam.ac.uk>
4643 * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
4644 handling of `CR' font.
4646 2001-08-20 Werner LEMBERG <wl@gnu.org>
4648 Use a config.h file.
4650 * src/include/lib.h: Include config.h.
4651 * All C files: Ditto (if necessary).
4652 * All C++ source and header files: Include lib.h first (if
4655 * src/include/config.hin: New file (autogenerated by autoheader).
4656 * stamp-h.in: New file.
4657 * configure.ac: Updated.
4658 * aclocal.m4: Add third parameters to AC_DEFINE macros.
4659 (GROFF_ARRAY_DELETE): Simplified.
4660 * Makefile.sub (DISTCLEANFILES): Updated.
4661 Added targets for remaking config.status, config.hin, config.h,
4662 stamp-h.in, and stamp-h.
4663 * configure: Regenerated.
4665 2001-08-19 Werner LEMBERG <wl@gnu.org>
4669 2001-08-18 Sebastian Krahmer <krahmer@suse.de>
4671 * src/preproc/pic/pic.y (format_number): Use do_sprintf().
4672 (do_sprintf): Use snprintf().
4674 2001-08-18 Werner LEMBERG <wl@gnu.org>
4676 * src/libs/snprintf/*: Added an snprintf module written by Mark
4678 * src/libs/libgroff/Makefile.sub: Updated.
4679 * configure.ac: Add test for snprintf().
4680 * Makefile.in: Updated.
4681 * configure: Regenerated.
4683 * src/preproc/html/pre-html.cc (make_message): Reactivate code which
4686 2001-08-14 Ruslan Ermilov <ru@FreeBSD.org>
4688 * tmac/doc.tmac (Ex): New implementation.
4689 * tmac/doc-common, tmac/groff_tmac.man: Updated.
4691 2001-08-13 Ruslan Ermilov <ru@FreeBSD.org>
4693 * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
4695 * tmac/groff_tmac.man: Updated.
4697 2001-08-13 Werner LEMBERG <wl@gnu.org>
4699 * src/preproc/tbl/tbl.man: Minor documentation update.
4701 2001-08-13 John David Anglin <dave@hiauly1.hia.nrc.ca>
4703 * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
4704 * configure.ac: Add declaration test for gettimeofday().
4705 * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
4706 * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
4707 * configure: Regenerated.
4709 2001-08-11 Werner LEMBERG <wl@gnu.org>
4711 * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
4712 * configure.ac: Add declaration test for strcasecmp().
4713 * Makefile.in: Updated.
4714 * configure: Regenerated.
4715 * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
4716 this is necessary because groff's mkstemp.cc is C++.
4717 Add declaration conditionally for strcasecmp().
4719 2001-08-10 Werner LEMBERG <wl@gnu.org>
4721 Integrated pic2graph, contributed by Eric S. Raymond.
4723 * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
4725 * Makefile.in, NEWS: Updated.
4727 * src/preproc/tbl/tbl.man: Revised.
4729 2001-08-09 Eric S. Raymond <esr@thyrsus.com>
4731 * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
4733 2001-08-09 Werner LEMBERG <wl@gnu.org>
4735 * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
4738 2001-08-08 Paul Eggert <eggert@twinsun.com>
4740 * Makefile.sub (configure): Depend on configure.ac, not
4742 * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
4744 2001-08-07 Werner LEMBERG <wl@gnu.org>
4746 * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
4749 2001-08-06 Werner LEMBERG <wl@gnu.org>
4751 * src/roff/troff/troff.man: Improve documentation of -E option.
4753 2001-07-28 Ralph Corderoy <ralph@inputplus.demon.co.uk>
4755 * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
4758 2001-07-27 Werner LEMBERG <wl@gnu.org>
4760 * src/preproc/refer/refer.cc: Undo last change.
4761 * src/devices/grohtml/post-html.cc: Ditto.
4763 2001-07-26 Werner LEMBERG <wl@gnu.org>
4765 * src/preproc/refer/refer.cc: Include `lib.h'.
4766 * src/devices/grohtml/post-html.cc: Ditto.
4768 2001-07-25 Gaius Mulley <gaius@glam.ac.uk>
4770 * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
4771 * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
4772 * Makefile.in: Comment updated.
4773 * configure: Regenerated.
4775 2001-07-25 Werner LEMBERG <wl@gnu.org>
4777 * src/preproc/pic/pic.cc: Removed.
4778 * src/preproc/pic/pic_tab.h: Removed.
4779 * src/preproc/refer/label.cc: Removed.
4781 * doc/Makefile (.ms.html): Don't use a file name extension in
4782 argument to grohtml's -I option.
4783 * Makefile.in (dist): Remove CVS directories.
4784 Call `distfiles' target.
4786 * src/devices/grohtml/grohtml.man: Add information about valid
4787 versions of pnmtopng.
4788 * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
4789 name instead of number.
4791 2001-07-24 Werner LEMBERG <wl@gnu.org>
4793 * doc/groff.texinfo: Minor fixes.
4795 2001-07-21 Gaius Mulley <gaius@glam.ac.uk>
4797 * doc/Makefile (.ms.html): Put image files into a subdirectory.
4800 2001-07-20 Werner LEMBERG <wl@gnu.org>
4802 * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
4803 * src/libs/libgroff/mkstemp.cc: New file.
4804 * src/libs/libgroff/mksdir.cc: New file.
4805 * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
4806 (xtmpfile) [!HAVE_MKSTEMP]: Removed.
4807 * src/libs/libgroff/Makefile.sub: Updated.
4808 * src/include/lib.h: Add mksdir() prototype.
4809 * src/include/posix.h: Define S_IXUSR if not yet defined.
4811 * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
4812 (createAllPages): Use mksdir() instead of current code.
4813 * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
4814 (main): [!HAVE_MKSTEMP]: Removed.
4816 * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
4817 (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
4819 * configure.ac: Add tests for stdint.h, sys/time.h, and
4821 Call new GROFF_xxx macros.
4822 * configure: Regenerated.
4823 * Makefile.in: Comments updated.
4825 2001-07-20 Gaius Mulley <gaius@glam.ac.uk>
4827 * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
4828 instead of current code.
4829 * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
4830 * src/roff/groff/groff.cc (possible_command::insert_args): New
4832 (main): Use it for predriver handling instead of insert_arg().
4834 2001-07-19 Werner LEMBERG <wl@gnu.org>
4836 * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
4839 * src/include/posix.h: Define S_IWUSR if not yet defined.
4841 2001-07-18 Werner LEMBERG <wl@gnu.org>
4845 2001-07-18 Ruslan Ermilov <ru@FreeBSD.org>
4847 * tmac/groff_mdoc.man: Document new -width and -column syntax.
4848 Some other minor fixes.
4849 * tmac/an-old.tmac: Add `AT' and `UC' macros.
4851 2001-07-17 Gaius Mulley <gaius@glam.ac.uk>
4853 Replace call to `troff' with `groff -Z' to make it aware of
4856 * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
4857 (troff_command, command_prefix): Removed.
4858 (alterDeviceTo): Use groff.
4859 (addZ): New function.
4860 (char_buffer::do_html): Use it.
4861 (scanArguments): Use TROFF_COMMAND.
4862 (findPrefix): Removed.
4864 * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
4866 2001-07-17 Eric S. Raymond <esr@snark.thyrsus.com>
4868 * doc/pic.ms: Documentation fixes.
4870 2001-07-17 Werner LEMBERG <wl@gnu.org>
4872 Replace atexit() with global destructor.
4874 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
4875 (xtmpfile_list_init): New global structure to deallocate
4876 xtmpfile_list on exit. Its destructor inherits most code from
4878 (remove_tmp_files): Deleted.
4879 (add_tmp_file): Simplified.
4881 2001-07-16 Werner LEMBERG <wl@gnu.org>
4883 Replace strdup() with strsave().
4885 * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
4886 (set_papersize): Use strsave() and a_delete.
4887 (main): Use strsave().
4888 * src/preproc/html/pre-html.cc (make_message, createAllPages,
4889 removeAllPages): Use strsave() and a_delete.
4891 * configure.ac: Remove test for strdup.
4892 * Makefile.in: Comment updated.
4893 * configure: Regenerated.
4895 2001-07-15 Werner LEMBERG <wl@gnu.org>
4897 * win32-diffs: Updated.
4899 2001-07-14 Werner LEMBERG <wl@gnu.org>
4901 * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
4902 removing the old one.
4903 * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
4905 2001-07-14 Ralph Corderoy <ralph@inputplus.demon.co.uk>
4907 * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
4909 2001-07-12 Ruslan Ermilov <ru@FreeBSD.org>
4911 Merge -xwidth into -width. Add -xwidth functionality to -column
4914 * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
4916 (doc-do-Bl-args): Merge -xwidth code with -width. Test whether
4917 string immediately following a leading dot starts with a valid mdoc
4919 Add similar code to the -column branch.
4920 (doc-Bl-usage): Updated.
4921 * groff_mdoc.man: s/-xwidth/-width/.
4923 2001-07-12 Gaius Mulley <gaius@glam.ac.uk>
4925 * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
4926 running into centered or non-formatted text.
4928 2001-07-11 Werner LEMBERG <wl@gnu.org>
4930 Introduce short and long prefixes to have the selection at run-time
4931 whether there is a 8+3 limit for names of temporary files.
4933 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
4934 (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
4935 (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
4937 (temp_init): New global structure to initialize above three
4939 (xtmptemplate): Use two parameters for long and short prefix.
4940 Simplify code use above three variables.
4941 (xtmpfile): Use long and short prefixes as parameters.
4942 * src/include/lib.h: Updated.
4944 * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
4946 ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
4947 (createAllPages, makeTempFiles): Updated.
4949 2001-07-09 Werner LEMBERG <wl@gnu.org>
4951 * REVISION: Increased to 3.
4953 Version 1.17.2 released
4954 =======================
4956 2001-07-07 Werner LEMBERG <wl@gnu.org>
4958 * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
4961 2001-07-06 Ruslan Ermilov <ru@FreeBSD.org>
4963 * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
4965 * tmac/groff_mdoc.man: Fix synopsis.
4967 2001-07-05 Ruslan Ermilov <ru@FreeBSD.org>
4969 * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
4970 Restore `doc-Pa-font'.
4972 2001-07-04 Werner LEMBERG <wl@gnu.org>
4974 * src/utils/indxbib/dirnamemax.c: Moved to ...
4975 * src/libs/libgroff/maxfilename.cc: Here.
4976 s/dir_name_max/file_name_max/.
4978 * src/include/lib.h: Add file_name_max.
4979 * src/utils/indxbib/indxbib.cc: Updated.
4980 * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
4983 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
4985 (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
4987 * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
4988 REGION_TEMPLATE): New macros.
4989 (createAllPages, makeTempFiles): Use them.
4990 Include `nonposix.h'.
4991 (html_system): New function.
4992 (createAllPages, createImage): Use it.
4995 * tmac/www.tmac: Fix typos.
4997 2001-07-03 Werner LEMBERG <wl@gnu.org>
4999 * tmac/www.tmac: Disable hyphenation in normal text only if output
5001 (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
5002 * tmac/groff_mwww.man, NEWS: Updated.
5004 2001-07-03 Gaius Mulley <gaius@glam.ac.uk>
5006 * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
5009 2001-07-02 Ruslan Ermilov <ru@FreeBSD.org>
5011 * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
5012 doc-display-ps-stack): Implement font and font size stack for
5015 2001-07-02 Werner LEMBERG <wl@gnu.org>
5017 * REVISION: Increased to 2.
5018 * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
5020 * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
5021 beginning of a line.
5022 * src/groff/grog/grog.sh: Ditto.
5024 2001-06-29 Peter Marquardt <wwwutz@molgen.mpg.de>
5026 * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
5029 2001-06-27 Werner LEMBERG <wl@gnu.org>
5031 Fix problems with preprocessor string for `man' program.
5033 * *.man: Don't use `s' in preprocessor string -- it doesn't exist.
5034 Updated/added copyright.
5035 Moved Emacs's local variable to identify nroff mode to the end of
5036 the file; add local variable if missing.
5038 2001-06-26 Andras Salamon <andras@cs.wits.ac.za>
5040 * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
5041 AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
5042 * configure: Regenerated.
5044 2001-06-25 Andras Salamon <andras@cs.wits.ac.za>
5046 * aclocal.m4 (GROFF_PAGE): Fix page detection code.
5047 * configure: Regenerated.
5049 2001-06-24 Werner LEMBERG <wl@gnu.org>
5051 * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
5053 * doc/pic.ms: Fix typos.
5055 Version 1.17.1 released
5056 =======================
5058 2001-06-21 Golubev I. N. <gin@mo.msk.ru>
5060 * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
5061 * configure: Updated.
5063 2001-06-20 Gaius Mulley <gaius@glam.ac.uk>
5065 * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
5067 * src/roff/troff/dic.cc (blank_line): Add html tag.
5069 2001-06-19 Gaius Mulley <gaius@glam.ac.uk>
5071 * src/roff/troff/input.cc (do_suppress): Fix typo.
5073 2001-06-18 Gaius Mulley <gaius@glam.ac.uk>
5075 Added two new options (-D and -I) to specify image names and a
5076 subdirectory to place the images in.
5078 Change syntax from \\Ox to \\O[x].
5080 * src/devices/grohtml/post-html.cc (main): Add options.
5082 * src/preproc/html/pre-html.cc: Include `stdarg.h'.
5083 Use `NULL' instead of `0' for null string pointers.
5084 (MAX_RETRIES): New macro.
5085 (lengthOfintToStr, intToStr, make_message): New functions.
5086 (makeFileName): Make function static.
5087 Implement -D and -I options.
5088 (checkImageDir): New function.
5089 (write_end_image, write_start_image): Use new syntax of \O.
5090 (createAllPages, removeAllPages): Implement -D and -I options. Use
5092 (createImage): Use make_message().
5093 (addps4html): Add guard for malloc().
5094 (usage, scanArguments): Updated.
5095 (makeTempFiles): Use mkstemp().
5096 (removeTempFiles): Use unlink().
5097 (findPrefix): Add guard for malloc().
5099 * src/roff/troff/input.cc (get_delim_file_name): New function to
5101 (do_suppress): Updated to parse new syntax.
5102 * src/devices/grohtml/grohtml.man: Updated.
5103 * tmac/www.tmac: Updated to new syntax.
5107 2001-06-15 Werner LEMBERG <wl@gnu.org>
5109 * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
5111 * src/devices/grohtml/grohtml.man: Minor improvements.
5113 2001-06-14 Werner LEMBERG <wl@gnu.org>
5115 * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
5117 2001-06-11 Werner LEMBERG <wl@gnu.org>
5119 * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
5120 line to specify preprocessor options -- mandb 2.3.1 only recognizes
5122 * src/preproc/grn/grn.man: Add proper '\" string.
5124 2001-06-11 OKAZAKI Tetsurou <okazaki@be.to>
5126 * test-groff: Don't use PATH but GROFF_BIN_PATH.
5128 2001-06-08 Werner LEMBERG <wl@gnu.org>
5130 Updated to autoconf 2.50.
5132 * configure.in: Renamed to...
5133 * configure.ac: This.
5134 * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
5135 (GROFF_OS390): Updated.
5136 * configure: Regenerated.
5138 2001-05-18 Werner LEMBERG <wl@gnu.org>
5140 * src/roff/troff/env.c, src/roff/troff/env.h,
5141 src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
5144 2001-05-17 Jeffrey Friedl <jfriedl@yahoo-inc.com>
5146 * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
5148 2001-05-16 Werner LEMBERG <wl@gnu.org>
5150 * src/roff/troff/input.cc (read_size): Emit warning if value becomes
5151 less than or equal zero; set it to 1 then.
5152 * src/roff/troff/node.h (node::node): Initialize `last'.
5154 2001-05-08 Werner LEMBERG <wl@gnu.org>
5156 * tmac/an-old.tmac: Make predefined strings work in compatibility
5158 Add troff version guard.
5159 * tmac/doc.tmac: Simplify version guard.
5161 2001-05-07 Werner LEMBERG <wl@gnu.org>
5163 The .ns and .rs requests are now honoured not only in the top-level
5164 but in all diversions (similar to UNIX troff).
5166 This change is based on a patch from Tadziu Hoffmann
5167 <hoffmann@usm.uni-muenchen.de>.
5169 * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
5170 (top_level_diversion): Remove `no_space_mode' member.
5171 * src/roff/troff/div.cc (diversion::diversion,
5172 top_level_diversion::top_level_diversion): Updated.
5173 (macro_diversion::output): Reset `no_space_mode'.
5174 (no_space, restore_spacing): Use `curdiv' unconditionally.
5175 (space_request, blank_line): Check `curdiv->no_space_mode'.
5176 (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
5177 `curdiv' unconditionally.
5178 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
5181 2001-05-06 Werner LEMBERG <wl@gnu.org>
5183 Added two new requests `de1' and `am1' which are similar to `de' and
5184 `am' with the difference that compatibility mode is saved on entry,
5185 switched off during macro execution, and restored on exit.
5187 * src/roff/troff/input.h: Added two new special characters
5188 (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
5189 * src/roff/troff/input.cc (input_iterator): Added two member
5190 functions `save_compatible_flag' and `get_compatible_flag'.
5191 (input_stack): Ditto.
5192 (string_iterator): Ditto. Also add private member
5193 `saved_compatible_flag'.
5194 (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5195 (calling_mode): New enumeration.
5196 (do_define_macro): Use it. Insert COMPATIBLE_SAVE and
5197 COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
5198 (define_macro, define_indirect_macro, append_macro, ignore): Use
5200 (define_nocomp_macro, append_nocomp_macro): New functions.
5201 (init_input_requests): Updated.
5202 (do_request): Rename local variable `saved_compatible_flag' to
5203 `old_compatible_flag'.
5204 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
5206 * tmac/an-old.tmac: Use `de1' instead of `de' request for all
5207 public and trap-invoked macros. As a consequence, the man macros
5208 work in compatibility mode also.
5210 2001-05-06 Solar Designer <solar@openwall.com>
5212 * Makefile.in: Use $(mandir).
5214 2001-05-06 Alexios Zavras <zvr@pobox.com>
5216 * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
5218 2001-05-05 Werner LEMBERG <wl@gnu.org>
5220 Added `.ns' number register: Returns 1 in no-space mode (if in
5221 top-level diversion), 0 otherwise.
5223 * src/roff/troff/div.cc (no_space_mode_reg): New class.
5224 (init_div_requests): Updated.
5225 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
5228 2001-05-04 Werner LEMBERG <wl@gnu.org>
5230 * src/roff/nroff/nroff.man: Improved documentation (especially
5233 2001-05-02 Werner LEMBERG <wl@gnu.org>
5235 Added `brp' request: This is \p as a request.
5237 * src/roff/troff/env.cc (environment::do_break): Add parameter
5239 (do_break_request): New function (was `break_request').
5240 (break_request): Calls `do_break_request'.
5241 (break_spread_request): New; calls `do_break_request'.
5242 (init_env_requests): Updated.
5243 * src/roff/troff/env.h: Updated.
5244 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
5246 * REVISION: Increased to 1.
5247 * win32-diffs: Updated.
5249 2001-05-01 Werner LEMBERG <wl@gnu.org>
5251 * tmac/an-old.tmac: Fix minor compatibility mode issue.
5252 * tmac/troffrc-end: Make it really work in compatibility mode.
5254 2001-04-27 Werner LEMBERG <wl@gnu.org>
5256 * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
5259 2001-04-22 Werner LEMBERG <wl@gnu.org>
5261 * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
5262 latest versions from glibc CVS archive.
5264 * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
5265 <c.zeelenberg@hccnet.nl>.
5267 2001-04-21 Werner LEMBERG <wl@gnu.org>
5269 * configure.in: Move check for mkstemp() to...
5270 * aclocal.m4 (GROFF_MKSTEMP): This new function.
5271 * configure: Regenerated.
5273 * src/include/groff-getopt.h: Don't use variable names in
5276 * src/devices/grohtml/html-chars.h: Removed. It isn't used.
5277 * src/devices/grohtml/Makefile.sub,
5278 src/devices/grohtml/post-html.cc: Updated.
5280 2001-04-21 Albert Chin-A-Young <china@thewrittenword.com>
5282 * configure.in: Add special check for mkstemp().
5283 * src/libs/libgroff/tmpfile.cc: Use it.
5284 * src/utils/indxbib/indxbib.cc: Ditto.
5285 * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
5286 * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
5289 2001-04-20 Bruce Lilly <blilly@erols.com>
5291 `Version_string' as C++ object was not visible to linker from C
5293 Add `const' to `Version_string'.
5295 * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
5296 (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
5297 (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
5298 (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
5299 (scanArguments), src/preproc/refer/refer.cc (main),
5300 src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
5301 (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
5302 (main), src/devices/grohtml/post-html.cc (main),
5303 src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
5304 (main), src/utils/hpftodit/hpftodit.cc (main),
5305 src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
5306 (main), src/utils/lkbib/lkbib.cc (main),
5307 src/utils/addftinfo/addftinfo.cc (main): Implement it.
5309 * src/roff/groff/pipeline.c: Add _UWIN.
5310 * src/include/nonposix.h: Ditto.
5312 2001-04-20 Werner LEMBERG <wl@gnu.org>
5314 * src/include/lib.h: Use HAVE_STRERROR.
5315 * src/roff/groff/pipeline.c: Ditto.
5316 * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
5317 * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
5318 * src/utils/pfbtops/pfbtops.c: Add copyright notice.
5319 * win32-diffs: Updated.
5320 * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
5322 2001-04-19 Werner LEMBERG <wl@gnu.org>
5324 * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
5325 instead of hardwired `"troff"'.
5326 (char_buffer::read_file): Remove unused variables.
5327 (char_buffer::write_file_troff): Ditto.
5328 (char_buffer::write_file_html): Ditto.
5329 (generateImages): Ditto.
5331 * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
5333 * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
5335 * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
5336 * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
5337 index_search_item::search1): Ditto.
5338 * src/roff/troff/node.h (width_list): Reorder members.
5339 * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
5340 (lookup_warning): Ditto.
5341 (prepend_string): Commented out.
5342 * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
5343 * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
5344 * src/preproc/tbl/main.cc (process_format): Ditto.
5345 * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
5347 * src/preproc/pic/pic.cc: Updated.
5348 * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
5349 * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
5350 * src/preproc/refer/command.cc (execute_command): Ditto.
5351 * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
5352 * src/preproc/refer/token.cc (lookup_token): Ditto.
5353 * src/preproc/soelim/soelim.cc: Ditto.
5354 * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
5355 (isHexDigit): Commented out.
5356 (pushBackBuffer::isString): Remove unused variable.
5357 * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
5359 * src/devices/grops/psrm.cc (resource_manager::lookup_font,
5360 resource_manager::read_resource_arg, read_one_of, parse_extensions):
5362 * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
5363 * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
5364 lookup_paper_size): Ditto.
5365 * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
5366 (text_glob, element_list): Reorder members.
5367 * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
5369 * src/devices/grohtml/html-text.h (html_text::emit_space): Change
5370 return value to `void'.
5371 * src/devices/grohtml/output.cc (word_list::word_list): Fix order
5373 * src/devices/grohtml/html.h (simple_output::check_newline,
5374 simple_output::space_or_newline, simple_output::enable_newlines):
5376 * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
5378 * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
5379 * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
5380 output_ligatures, output_charset, read_map): Ditto.
5381 * src/utils/lookbib/lookbib.cc (main): Ditto.
5382 * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
5383 (do_file): Fix typo (`=' -> `==').
5384 * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
5385 * src/utils/addftinfo/addftinfo.cc (main): Ditto.
5387 2001-04-18 Ruslan Ermilov <ru@FreeBSD.org>
5389 * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
5390 Fix usage of GROFF_BIN_PATH.
5391 * src/roff/nroff/nroff.man: Updated.
5393 2001-04-18 Werner LEMBERG <wl@gnu.org>
5395 * NEWS: Fixing typos.
5398 Version 1.17 released
5399 =====================
5401 2001-04-17 Werner LEMBERG <wl@gnu.org>
5403 * tmac/Makefile.sub (install-data): mdoc.local-s is in current
5404 directory, not in $(srcdir).
5406 2001-04-16 Werner LEMBERG <wl@gnu.org>
5408 * doc/groff.texinfo: More info on conditionals.
5410 2001-04-15 Werner LEMBERG <wl@gnu.org>
5412 * doc/groff.texinfo: Added some info about groff internals.
5414 * src/roff/troff/node.cc (make_glyph_node): Emit warning message
5415 about missing special character only if the name is non-null.
5417 2001-04-14 Werner LEMBERG <wl@gnu.org>
5419 Removing the grohtml-old device driver which is now obsolete.
5421 * src/devices/grohtml-old/*: Removed.
5422 * font/devhtml-old/*: Removed.
5423 * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
5425 * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
5426 * test-groff (PATH): Updated.
5427 * tmac/Makefile.sub (NORMALFILES): Updated.
5428 * tmac/an-old.tmac: Remove special code for html-old device.
5429 Replace `html-or-html-old' register with `an-html'.
5430 * tmac/eqnrc: Updated.
5431 * tmac/html-old.tmac: Removed.
5432 * tmac/troffrc, tmac/troffrc-end: Updated.
5433 * tmac/www.tmac: Remove special code for html-old device.
5434 Replace `html-or-html-old' register with `www-html'.
5436 * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
5437 src/libs/libgroff/htmlindicate.cc (graphic_end),
5438 include/htmlindicate.h, src/preproc/grn/*.cc,
5439 src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
5440 single argument for consistency with rest of source code.
5442 * aclocal.m4, tmac/an-old.tmac: Fix copyright.
5444 2001-04-13 Ruslan Ermilov <ru@FreeBSD.org>
5446 * src/roff/troff/troff.man: Fixing typos.
5448 2001-04-13 Werner LEMBERG <wl@gnu.org>
5450 * doc/pic.ms: Fixing many font switches.
5451 * doc/groff.texinfo: Fixes, additions.
5452 * MORE.STUFF: Updated.
5454 2001-04-12 Gaius Mulley <gaius@glam.ac.uk>
5456 * src/devices/grohtml/grohtml.man: Updated manual page regarding
5458 * src/preproc/html/pre-html.cc (createImage): Fixed right hand
5460 (removeTempFiles): New function to tidy up temporary files.
5461 * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
5462 Many fixes to do with the new inline suppress node and image regions
5464 * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
5465 (generate_img_src): New function.
5466 (html_printer::do_auto_image): Utilizes it.
5467 (do_heading, do_title): Include inline images within their contents.
5468 (html_printer::begin_page): Tidied up comments that are issued to
5469 the html output file.
5470 (html_printer::do_fill): Fixed so that `.nf' works with fonts other
5472 (text_glob::is_br): New method used by do_heading.
5473 * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
5474 equivalent diversion.
5475 * src/include/html-strings.h: Altered image tags to reflect the
5477 * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
5479 * src/preproc/eqn/main.cc: Will suppress generation of image tags if
5480 it is already inside a pic image. Only emit tags if the argument
5481 `-Tps:html' is present.
5482 * src/preproc/tbl/main.cc: Changes to reflect additional
5483 `html_end_suppress' parameter.
5484 * src/roff/troff/env.cc: Only emit eol tag if a node has been
5485 emitted since the last eol tag was written.
5486 * src/roff/troff/env.h: New boolean `emitted_node'.
5487 * src/roff/troff/input.cc (do_suppress): Handles extra suppress
5488 nodes \O3, \O4, \O5. No longer use `output_low_mark_miny'.
5489 * src/roff/troff/node.cc (check_charinfo): New method.
5490 (troff_output_file::determine_line_limits): Alterations to limit
5492 * tmac/www.tmac: Changes to reflect new suppress nodes.
5494 2001-04-12 Bruno Haible <haible@clisp.cons.org>
5496 * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
5497 Escape the html_glyph in the buffer.
5498 (str_translate_to_html): Output the unescaped escaped_char.
5499 * src/devices/grohtml/html-text.cc (issue_table_begin): Set
5500 `frame=void', not `frame=none'. Add `border=0'.
5502 2001-04-12 Werner LEMBERG <wl@gnu.org>
5504 * PROBLEMS: Add some words on how to avoid wrapper macros.
5506 2001-04-11 Blake McBride <blake@florida-software.com>
5508 * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
5510 2001-04-11 Werner LEMBERG <wl@gnu.org>
5512 * font/devlbp/Makefile.sub (CLEANADD): Set it.
5513 * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
5514 * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
5515 * Makefile.sub (DISTCLEANFILES): Here.
5517 * libs/libgroff/new.cc: Include `nonposix.h'.
5518 * win32-diffs: Updated.
5520 2001-04-10 Ruslan Ermilov <ru@FreeBSD.org>
5522 Added skeleton macro for defunct macros.
5524 Updated documentation.
5526 When inside displays, an empty input line warning should be
5527 suppressed. If another macro call is put inside a display,
5528 all subsequent empty lines found in that display caused a
5529 warning to be emitted.
5531 * tmac/doc.tmac (doc-defunct-macro): New macro.
5532 (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
5533 (doc-restore-global-vars): Fixed typo.
5534 (doc-empty-line): Check the `doc-display-depth' register to
5535 determine whether we are inside display or not.
5537 * tmac/doc-common: Removed `Or' and `Sf' registers.
5538 Moved obsolete `Ds' macro to doc.tmac.
5540 * tmac/groff_mdoc.man: Bump document date.
5541 Document `.Vt' under ``Variable Types''.
5542 Removed documentation for obsolete `.Or' macro.
5544 2001-04-10 Werner LEMBERG <wl@gnu.org>
5547 * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
5549 2001-04-10 Bruno Haible <haible@clisp.cons.org>
5551 * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
5552 (usage): Add stream argument. Don't exit.
5553 * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
5554 Write --version output to stdout, not stderr.
5555 (usage): Add stream argument. Don't exit.
5556 * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
5557 (usage): Add stream argument. Don't exit.
5558 * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
5560 (usage): Add stream argument. Don't exit.
5561 (main): Write --help output to stdout, not stderr.
5562 * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
5563 (usage): Add stream argument. Don't exit.
5564 * src/devices/grops/ps.cc (main): Accept --help and --version.
5565 (usage): Add stream argument. Don't exit.
5566 * src/devices/grotty/tty.cc (main): Accept --help and --version.
5567 (usage): Add stream argument. Don't exit.
5568 * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
5569 (main): Accept --help and --version.
5570 * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
5571 (main): Accept --help and --version.
5572 * src/preproc/html/pre-html.cc (usage): Add stream argument.
5573 (scanArguments): Accept --help and --version.
5574 * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
5575 (main): Accept --help and --version.
5576 * src/preproc/refer/refer.cc (main): Accept --help and --version.
5577 (usage): Add stream argument. Don't exit.
5578 * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
5580 (main): Accept --help and --version.
5581 * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
5582 (main): Accept --help and --version.
5583 * src/roff/groff/groff.cc (main): Accept --help and --version.
5584 (synopsis): Add stream argument.
5585 (help): Write --help output to stdout, not stderr.
5586 (usage): Add stream argument. Don't exit.
5587 * src/roff/grog/grog.pl: Accept --help and --version.
5589 * src/roff/grog/grog.sh: Accept --help and --version.
5590 * src/roff/nroff/nroff.sh: Accept --help and --version.
5591 * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
5592 (usage): Add stream argument. Don't exit.
5593 (main): Accept --help and --version.
5594 * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
5595 (usage): New function with stream argument, doesn't exit.
5596 * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
5597 (usage): New function with stream argument, doesn't exit.
5598 * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
5599 (usage): Add stream argument. Don't exit.
5600 * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
5601 (main): Accept --help and --version.
5602 * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
5604 (main): Accept --help and --version.
5605 * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
5606 (main): Accept --help and --version.
5607 * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
5608 (usage): Add stream argument. Don't exit.
5610 2001-04-10 Ruslan Ermilov <ru@freebsd.org>
5612 Fix indentation in SYNOPSIS.
5614 Updated to include changes of latest BSD mdoc version (basically,
5615 the only change is that `.Fn' and `.Fc' put a final semicolon after
5616 a function declaration in the SYNOPSIS section).
5618 * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
5619 (doc-in-synopsis-section): New variable. Updated all related
5621 (doc-indent-synopsis-active): New register.
5622 (Nd, Fn, Fo): Use it.
5623 (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
5624 `.Cd' with long argument line produces indented wrapped lines.
5625 Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
5626 undesirable line break to be output.
5627 (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
5629 (Fn, Fc): Add final `;' to output.
5630 (doc-save-global-vars, doc-restore-global-vars): Updated.
5631 * tmac/doc-common: Remove `Ex' register.
5633 * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
5636 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
5638 * tmac/doc.tmac (Cd): Simplify code.
5639 * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
5641 2001-04-06 Werner LEMBERG <wl@gnu.org>
5643 Implement continuous underlining for nroff mode. To do that, a new
5644 request in the ditroff language has been added: `x u N' (N is 0
5647 \X and \Y are now transparent to end-of-sentence recognition.
5649 * src/include/printer.h (printer): Add `type' parameter to `special'
5651 * src/libs/libdriver/printer.cc (printer::special): Updated.
5652 * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
5654 * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
5655 specials of type `p'.
5656 * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
5657 * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
5658 * src/devices/grops/ps.cc (ps_printer::special): Ditto.
5659 * src/devices/grotty/tty.cc: Add new enum CU_MODE.
5660 (glyph::order): New method.
5661 (tty_printer::add_char): Use it.
5662 (tty_printer::special): New method.
5663 (tty_printer::end_page): Implement it.
5665 * src/roff/troff/node.h (special_node): Add `no_init_string' member.
5666 * src/roff/troff/node.cc (special_node::special_node): Add parameter
5667 to set `no_init_string'.
5668 (special_node::tprint_start): Use it.
5669 (special_node::same, special_node::copy): Updated.
5670 (special_node::ends_sentence): New method.
5671 (troff_output_file::start_special): Add parameter to include
5672 inititialization of special conditionally.
5674 * src/roff/troff/env.h (environment): New member `underline_spaces'.
5675 * src/roff/troff/env.cc (do_underline_special): New function.
5676 (environment::set_font): Use it.
5677 (do_underline): Use it. This was `underline()'.
5678 (underline): Call `do_underline()'.
5679 (continuous_underline): New function which calls `do_underline()'.
5680 (environment::newline): Use `do_underline_special()'.
5681 (init_env_requests): Updated.
5683 * NEWS, man/troff_out.man: Updated.
5685 2001-04-06 Bruno Haible <haible@clisp.cons.org>
5687 * font/devutf8/R.proto: Fix code of 'shc'.
5689 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
5691 Many fixes. Diag lists can now be nested also; additionally,
5692 `-compact' and `-offset' are supported.
5694 * tmac/doc.tmac (doc-have-indent): Replaced with ...
5695 (doc-list-have-indent-stackXXX): A new register stack.
5696 (doc-have-diag-list): Removed.
5697 (Bl): Use `doc-list-have-indent-stackXXX'.
5699 (doc-diag-list): Use `doc-compact-list-stackXXX'.
5700 (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
5701 (doc-set-vertical-and-indent): Ditto.
5702 (doc-next-list-depth): Removed.
5703 (doc-increment-list-stack): Updated.
5704 (doc-decrement-list-stack): Use `doc-list-depth' instead of
5705 `doc-next-list-depth'.
5706 (doc-end-list, doc-end-column-list): Don't use
5707 `doc-increment-list-stack'.
5708 (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
5709 (doc-save-global-vars, doc-restore-global-vars): Updated.
5710 * tmac/doc-common: Updated.
5711 * tmac/groff_mdoc.man: Updated.
5714 2001-04-02 Werner LEMBERG <wl@gnu.org>
5716 * src/devices/grotty/grotty.man: Fix grammatical error.
5718 2001-03-30 Ruslan Ermilov <ru@freebsd.org>
5720 Remove .Ld from mdoc package; replace it with special handling of
5723 * tmac/doc-common: Remove `Ld' register.
5724 Uncomment `doc-volume-ds-*' strings.
5725 Remove `doc-operating-system-default'.
5727 * tmac/doc-syms (Ld): Removed.
5728 * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
5732 * tmac/groff_mdoc.man: Many fixes and updates.
5734 2001-03-29 Werner LEMBERG <wl@gnu.org>
5736 * tmac/troffrc-end: Protect data with `.do'. Reported by T. Kurt
5737 Bond <tkb@tkb.mpl.com>.
5738 * tmac/www.tmac: Save compatibility mode.
5740 2001-03-28 Ruslan Ermilov <ru@freebsd.org>
5742 * tmac/groff_mdoc.man: Many fixes.
5744 2001-03-28 Werner LEMBERG <wl@gnu.org>
5746 * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
5749 2001-03-27 Werner LEMBERG <wl@gnu.org>
5751 * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
5752 diversion. This fixes overlong tags.
5754 2001-03-26 Werner LEMBERG <wl@gnu.org>
5756 * doc/groff.texinfo: Fixed and improved documentation of fonts.
5757 * tmac/doc-syms: Fix error messages.
5758 * tmac/an-old.tmac: Remove incorrect double backslashes.
5760 2001-03-24 Ruslan Ermilov <ru@freebsd.org>
5762 * tmac/Makefile.sub: Strip mdoc.local also
5763 * tmac/strip.sed: Fixed.
5765 2001-03-24 Werner LEMBERG <wl@gnu.org>
5767 * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
5768 selecting the font size.
5769 * tmac/groff_mdoc.man, NEWS: Document it.
5771 2001-03-23 Werner LEMBERG <wl@gnu.org>
5773 * src/roff/troff/div.cc (save_vertical_space): Add default argument
5775 * src/roff/troff/env.cc (family_change): Make `.fam' accept no
5776 argument to restore previous font family.
5777 * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
5779 * doc/groff.texinfo: More fixes and additions (mainly for font
5780 manipulating commands).
5782 * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
5783 * tmac/groff_mdoc.man: This. The quick reference has been removed.
5784 * tmac/Makefile.sub, NEWS: Updated.
5786 2001-03-23 Werner LEMBERG <wl@gnu.org>
5788 Replaced mdoc implementation. The new version is `state of the
5789 art', using almost all new features of groff 1.17 -- it won't run
5790 with older versions.
5792 * tmac/doc.tmac: Completely rewritten.
5793 * tmac/doc-common: Ditto.
5794 * tmac/doc-nroff: Ditto.
5795 * tmac/doc-ditroff: Ditto.
5796 * tmac/doc-syms: Ditto.
5797 * tmac/mdoc.local: New file.
5798 * tmac/groff_mdoc.samples.man: Replaced with ...
5799 * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
5800 * tmac/strip.sed: Updated.
5801 * tmac/Makefile.sub: Updated.
5804 * tmac/groff_man.man: Add `man.local' to the FILES section.
5806 2001-03-22 Werner LEMBERG <wl@gnu.org>
5808 * doc/groff.texinfo: Added many @noindent.
5809 Replaced @end_Example -> @endExample.
5810 Added info whether registers are r/o.
5811 Many other additions and fixes.
5813 2001-03-21 Werner LEMBERG <wl@gnu.org>
5815 * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
5816 in makeinfo of texinfo 4.0) to be used in @Def* macros.
5817 Improved @Def* macros: Now the exact syntax of request, register,
5818 and escapes is shown.
5819 Added macros for parentheses and brackets to be used in @Def*.
5820 Many fixes and improvements of the documentation.
5822 2001-03-20 Werner LEMBERG <wl@gnu.org>
5824 * doc/groff.texinfo: Added new index: `st' (for strings).
5825 Added macros @Defstr(x).
5826 Added macro @Example (adding @group).
5827 Other minor improvements.
5829 2001-03-19 Werner LEMBERG <wl@gnu.org>
5831 * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
5832 `rq' for requests. `fn' is no longer used.
5833 Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
5836 * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
5837 number with name of man page.
5839 2001-03-19 Larry Kollar <kollar@alltel.net>
5841 * doc/groff.texinfo: Complete revision. Added many @Deffn to gain
5844 2001-03-19 Werner LEMBERG <wl@gnu.org>
5846 * man/groff_font.man: Document `prepro', `postpro', and `print'.
5847 * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
5848 * src/devices/grohtml/grohtml.man: Fixing typos.
5850 2001-03-19 Gaius Mulley <gaius@glam.ac.uk>
5852 * tmac/s.tmac (@IP): Pass `.ip' html tag.
5853 * tmac/groff_mwww.man: Remove .LINE macro
5854 * tmac/www.tmac (LINE): Add `.ti'.
5856 * src/devices/grohtml/post-html.cc (html_printer): New member
5858 (html_printer::emit_raw): Use it.
5859 (html_printer::do_linelength): Ditto.
5860 (html_printer::do_pageoffset): Ditto.
5861 (html_printer::do_indentation): Ditto.
5862 (html_printer::do_tempindent): Ditto.
5863 (html_printer::do_break): Ditto.
5864 (html_printer::begin_page): Ditto.
5865 (html_printer::do_indentedparagraph): New function.
5866 (html_printer::troff_tag): Handle `.ip'.
5867 * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
5868 Add `<td width=...>' handling.
5869 (html_text::do_table): Add parameter.
5870 (html_text::do_indent): Updated.
5871 * src/devices/groohtml/html-text.h: Updated.
5873 2001-03-16 Gaius Mulley <gaius@glam.ac.uk>
5875 Introduced simple html tables to implement indentation.
5877 * src/devices/grohtml/html.h (word, word_list): New structures.
5878 (simple_output): Use it.
5879 * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
5880 (html_printer): Improve indentation handling.
5881 (html_printer::emit_raw): Set `in_table' element. Handle
5883 (html_printer::write_header): Move conditional downwards.
5884 Don't allow whitespace in tags.
5885 (html_printer::do_linelength): Handle line length and indentation
5887 (html_printer::do_pageoffset): Handle indentation conditionally.
5888 (html_printer::do_indentation): Ditto.
5889 (html_printer::do_tempindent): New function member.
5890 (html_printer::do_fill): Take care of indentation.
5891 (html_printer::do_flush): Finish table.
5892 (html_printer::do_links): Ditto.
5893 (html_printer::do_break): New function for handling `.br' and `.ti'.
5894 (html_printer::troff_tag): Use it.
5896 (html_printer::flush_globs): Fix.
5897 (html_printer::flush_page): Finish table.
5898 (html_printer::html_printer): Fix error message. Set up
5900 (html_printer::add_to_sbuf): Remove special handling of character
5902 (to_unicode): Remove `stop()'.
5903 (html_printer::write_title): Cleanup.
5904 (html_printer::begin_page): Use `put_string()'. Handle indentation.
5905 (html_printer::~html_printer): Flush text and end the line.
5907 * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
5908 * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
5910 (html_text::start_tag): Disable newlines.
5911 (html_text::table_is_void): New function.
5912 (html_text::issue_table_begin): Ditto.
5913 (html_text::issue_table_end): Ditto.
5914 (html_text::push_para): Better table handling.
5915 (html_text::do_indent): New function.
5916 (html_text::do_table): Ditto.
5917 (html_text::done_table): Ditto.
5918 (html_text::do_tt): Handle PRE_TAG.
5919 (html_text::is_in_table): New function.
5920 (html_text::check_emit_text): Handle tables.
5921 (html_text::do_emittext): Use `nl()'.
5922 (html_text::do_para): Handle table.
5923 (html_text::remove_def): New function.
5924 * src/devices/grohtml/output.cc (word, word_list): Implement
5926 (simple_output::end_line): Flush last word.
5927 (simple_output::simple_comment): Ditto.
5928 (simple_output::begin_comment): Recoded.
5929 (simple_output::end_comment): Ditto.
5930 (simple_output::comment_arg): Removed.
5931 (simple_output::check_newline): Improve test and flush last word.
5932 (simple_output::space_or_newline): Improved.
5933 (simple_output::write_newline): Replaced with...
5934 (simple_output::nl): This.
5935 (simple_output::put_raw_char): Flush last word.
5936 (simple_output::check_space): Removed.
5937 (simple_output::put_translated_string): Ditto.
5938 (simple_output::put_string): Simplified.
5939 (simple_output::put_number): Updated.
5940 (simple_output::put_float): Ditto.
5941 (simple_output::put_symbol): Removed.
5942 (simple_output::enable_newlines): Add `check_newline()'.
5943 (simple_output::flush_last_word): New function.
5945 * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
5946 * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
5948 * tmac/s.tmac (@PP, @IP): Add html conditional code.
5949 * tmac/an-old.tmac (TP): Ditto.
5951 2001-03-09 Ruslan Ermilov <ru@freebsd.org>
5953 * mdate.sh: Make it POSIX compliant.
5955 2001-03-09 Werner LEMBERG <wl@gnu.org>
5957 Added the `return' request to end a macro immediately. It simply
5958 pops iterators from the input stack until a macro iterator is found.
5960 * src/roff/troff/input.cc (input_iterator::is_macro,
5961 macro_iterator::is_macro): New member.
5962 (input_return_boundary): New class to signal an immediate return
5964 (input_stack::add_return_boundary, input_stack::is_return_boundary):
5966 (input_stack::clear): Use it.
5967 (input_stack::pop_macro): New function.
5968 (while_request): Use `is_return_boundary()'.
5969 (return_macro_request): New function.
5970 (init_input_requests): Use it.
5972 * src/roff/troff/TODO: Updated.
5973 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
5975 2001-03-08 Werner LEMBERG <wl@gnu.org>
5977 * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
5980 2001-03-07 Werner LEMBERG <wl@gnu.org>
5982 Make `\B' more rigid.
5984 * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
5986 (get_number_rigidly): New function.
5987 * src/roff/troff/input.cc (do_expr_test): Use it.
5988 * src/roff/troff/token.h: Updated.
5990 * src/roff/troff/request.h: Fix typo (init_html_request ->
5991 init_markup_request).
5993 2001-03-04 Gaius Mulley <gaius@glam.ac.uk>
5995 Fixed grohtml handling of any named glyph for glyph indexes < 0x80.
5996 Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
5997 are now `.begin', `.end', `.image'.
5999 * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
6000 (html_printer::add_to_sbuf): Changing type of `code' parameter.
6001 Use add_char_to_sbuf().
6002 (to_unicode): New function.
6003 (char_translate_to_html): Changing type of `ch' parameter.
6005 (html_printer::~html_printer): Comment out doctype string.
6006 * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
6007 instead of `.html-end'.
6008 (write_start_image): Use `.begin' and `.image' instead of
6009 `.html-begin' and `.html-image'.
6010 * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
6011 (html_begin): Renamed to ...
6013 (html_end): Renamed to ...
6015 (html_image): Renamed to ...
6017 (init_html_requests): Renamed to ...
6018 (init_markup_requests): This.
6019 * tmac/www.tmac: Updated.
6021 2001-02-28 Bram <bram@avontuur.org>
6023 * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
6026 2001-02-26 David Leonard <david.leonard@csee.uq.edu.au>
6028 * doc/meref.me: Fixing some typos.
6030 2001-02-16 Werner LEMBERG <wl@gnu.org>
6032 * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
6033 method. Return `HYPHEN_MIDDLE' if it was `\:'.
6034 * src/roff/troff/node.h: Updated.
6036 2001-02-17 Ruslan Ermilov <ru@FreeBSD.org>
6038 * tmac/groff_tmac.man: Fix typo.
6040 2001-02-16 Werner LEMBERG <wl@gnu.org>
6042 Fixing a bug which prevented proper end-of-sentence recognition
6043 between an `unformatted' box and the following text. As a
6044 consequence, vertical line distances are no longer preserved in
6045 boxes after a call to `.unformat' -- because boxes aren't
6046 line-oriented (contrary to diversions), this doesn't make sense
6049 * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
6051 (vertical_size_node::set_unformat_flag): New method.
6052 * src/roff/troff/node.hh: Updated.
6053 * src/roff/troff/input.cc (word_space_node::reread,
6054 hmotion_node::reread): Reset `unformat' flag after usage.
6055 (unformat_macro): Append only if `set_unformat_flag()' returns
6057 * src/roff/troff/troff.man: Updated.
6059 2001-02-15 Werner LEMBERG <wl@gnu.org>
6061 * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
6062 documentation of `asciify' and `unformat' requests.
6064 2001-02-13 Werner LEMBERG <wl@gnu.org>
6066 Redesigned the `unformat' request. It is no longer connected with
6067 `asciify' but rather uses new `reread()' methods if the `unformat'
6068 flag is set. Additionally, the handling of space characters after
6069 unformatting has been fixed so that they retain their width.
6071 * src/roff/troff/node.h (width_list): New structure to store
6072 original widths of spaces.
6073 (node): Added `unformat' member.
6074 Replaced `num_spaces' variable with `orig_width' list.
6075 * src/roff/troff/node.cc (*node::asciify,
6076 asciify_reverse_node_list): Removed `unformat_only' flag and related
6078 (word_space_node::asciify, word_space_node::word_space_node): Use
6080 (word_space_node::~word_space_node): New destructor.
6081 (word_space_node::copy): Updated to handle `orig_width'.
6082 (hmotion_node::copy, unbreakable_space_node::copy): Updated.
6083 (*node::merge_space): Update `orig_width' list if necessary.
6084 (*node::set_unformat_flag): New methods to set the `unformat' flag.
6085 * src/roff/troff/enc.cc (environment::space_newline): Use
6087 (environment::space): Added method to handle space width and
6088 sentence space width as parameters. Use `width_list'.
6089 (environment::make_tab_node): Updated.
6090 * src/roff/troff/env.h: Updated.
6091 * src/roff/troff/input.cc (word_space_node::reread,
6092 unbreakable_space_node::reread, hmotion_node::reread): New methods
6093 to handle nodes specially if `unformat' flag is set.
6094 (do_asciify_macro): Renamed back to ...
6095 (asciify_macro): This.
6096 (unformat_macro): New implementation to simply set the `unformat'
6099 * MORE.STUFF: Added more info about deroff.
6101 2001-02-08 Werner LEMBERG <wl@gnu.org>
6103 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
6104 space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
6105 and `add_self()' methods to avoid hyphenation. For example, the
6106 hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
6107 soft hyphen after `foo'. Now the hyphen list is correctly
6108 `foo<ignore><ignore>bar'.
6110 2001-02-05 Yoshiteru Kageyama <yt-kage@cb3.so-net.ne.jp>
6112 * tmac/groff_tmac.man: Fix `BIR' macro.
6114 2001-02-04 Werner LEMBERG <wl@gnu.org>
6116 A new escape sequence `\:', inserting a zero-width break point.
6118 * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
6119 * src/roff/troff/input.cc (get_copy, token::next, asciify):
6121 * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
6123 (space_node): Add `was_escape_colon' member. Add `is_escape_colon()'
6124 and `asciify()' methods.
6125 * src/roff/troff/node.cc (space_node::space_node): Updated.
6126 (space_node::asciify): Handle `was_escape_colon'.
6127 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6129 Handle `\~' similar to other comparable requests.
6131 * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
6133 (token::next): Move creation of an unbreakable_space_node to...
6134 (token::add_to_node_list): Here.
6136 Fix a bug which sometimes prevented hyphenation of words connected
6137 with `\~' or `\ ' (and other escape sequences handled as
6138 TOKEN_NODE). This also fixes a hyphenation problem with boxes
6139 (after a call to the `unformat' request).
6141 * src/roff/troff/env.h (environment::possibly_break_line,
6142 environment::hyphenate_line): Introducing `start_here' parameter.
6143 * src/roff/troff/env.cc (environment::space_newline,
6144 environment::space): Use it.
6145 (environment::possibly_break_line, environment::hyphenate_line):
6147 * src/roff/troff/input.cc (process_input_stack): Use it.
6148 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
6149 space_char_hmotion_node, overstrike_node): Add
6150 `get_hyphenation_type()' method.
6151 * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
6152 if `unformat_only' is active.
6154 2001-01-30 Werner LEMBERG <wl@gnu.org>
6156 Implemented new read-only number register `.linetabs' which
6157 returns 1 if in line-tabs mode, 0 otherwise.
6159 * src/roff/troff/env.h (environment): Add get_line_tabs() member.
6160 * src/roff/troff/env.cc (get_line_tabs): New function.
6161 (init_env_requests): Use it.
6162 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6164 * VERSION, REVISION: Changing to 1.17.0.
6166 2001-01-28 Werner LEMBERG <wl@gnu.org>
6168 Fixed a bug which prevented hyphenation of words which are finished
6171 * src/roff/troff/token.h (token): Add enum type
6172 `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
6173 * src/roff/troff/input.cc (token::next, token::description,
6174 get_line_arg, token::add_to_node_list, token::process): Use it.
6176 2001-01-27 Werner LEMBERG <wl@gnu.org>
6178 * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
6179 * src/roff/troff/div.cc (do_divert): Use it.
6181 * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
6183 2001-01-25 Werner LEMBERG <wl@gnu.org>
6185 Adding the `linetabs' request. If set, tab distances are not
6186 computed relative to the input line but relative to the output line.
6188 * src/roff/troff/env.h (environment): New member `line_tabs'.
6189 * src/roff/troff/env.cc (line_tabs_request): Implement request.
6190 (environment::environment, environment::copy): Updated.
6191 (environment::distance_to_next_tab): Use `line_tabs'.
6192 (init_env_requests): Register request.
6193 * src/roff/troff/troff.man, man/groff.man, NEWS: Document it. Other
6196 2001-01-24 Werner LEMBERG <wl@gnu.org>
6198 Introducing a new read-only register `.int' which is set to a
6199 positive value if the last output line is interrupted (i.e., if it
6202 * src/roff/troff/env.cc (init_env_requests): Add it.
6203 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6205 2001-01-23 Gaius Mulley <gaius@glam.ac.uk>
6207 * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
6208 * src/preproc/html/pre-html.cc (findPrefix): New function which
6209 generates the troff executable name via the system prefix.
6210 * src/preproc/eqn/main.cc: Modified warning message.
6212 2001-01-23 Werner LEMBERG <wl@gnu.org>
6214 troff's `box' and `boxa' requests didn't preserve temporary
6217 * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
6218 `saved_target_text_length' members.
6219 * src/roff/troff/div.cc (do_divert): Use them.
6221 Tabs (but not yet leaders and fields) are now handled correctly by
6224 * node.h (hmotion_node): Add field `was_tab'.
6225 * env.cc (environment::make_tab_node): Set it.
6226 * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
6228 Added new request `unformat' which will, contrary to `asciify',
6229 preserve font information after unformatting (i.e., only nodes
6230 dealing with horizontal space are converted back to input
6233 * input.cc (asciify_macro): Renamed to ...
6234 (do_asciify_macro): this, having a new parameter `unformat_only'.
6235 (asciify_macro, unformat_macro): New; using do_asciify_macro.
6236 (init_input_requests): Added `unformat'.
6237 * node.cc (*_node::asciify), asciify_reverse_node_list: Added
6238 parameter to control asciification process.
6239 * node.h (*_node::asciify): Ditto.
6240 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6242 2001-01-20 Werner LEMBERG <wl@gnu.org>
6244 * doc/groff.texinfo: Minor improvement of `.in' documentation.
6246 2001-01-18 Werner LEMBERG <wl@gnu.org>
6248 * tmac/ps.tmac: Remove call of psold.tmac.
6249 * tmac/psold.tmac: Comment updated.
6250 * tmac/psnew.tmac: Removed since no longer needed.
6251 * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
6253 * font/devutf8/R.proto: Adding `shc' glyph.
6254 * font/devutf8/NOTES: Updated.
6256 * test-groff: Updated.
6258 2001-01-15 Gaius Mulley <gaius@glam.ac.uk>
6260 First cut of the new html device driver. Changes to pre-html and
6261 the new grohtml are too numerous to be documented here.
6263 Stuff related to `html' has been renamed to `html-old' and `html2'
6264 stuff has been renamed to `html' (including directories). The new
6265 html device driver is therefore invoked as `-Thtml'.
6267 Added new `\O' escape to suppress output (needed by html driver).
6269 Added functions and code to pass info about input-level commands
6270 (`.in', `.fl', etc.) to html driver.
6272 Three new functions (.html-begin, .html-end, and .html-image) for
6273 better html handling: `html-begin' will execute the remaining line
6274 if at the outermost nesting level, increasing an internal counter.
6275 `html-end' does the same but decreases the internal counter.
6276 `html_image' puts its arguments into a special node (suppress_node)
6277 to define an image region.
6279 The `output' request has been removed.
6281 * tmac/html-tags.tmac: Removed.
6282 * tmac/arkup.tmac: Updated and renamed to ...
6283 * tmac/www.tmac: New file.
6284 * tmac/markup.tmac Updated and renamed to ...
6285 * tmac/mwww.tmac: New file.
6286 * tmac/Makefile.sub: Updated.
6287 * tmac/an-old.tmac: Updated.
6288 * tmac/eqnrc: Updated.
6289 * tmac/groff_man.man
6290 * tmac/groff_markup.man: Updated and renamed to ...
6291 * tmac/groff_mwww.man: New file.
6292 * tmac/groff_tmac.man: Updated.
6293 * tmac/html-old.tmac: Updated and Renamed from html.tmac.
6294 * tmac/html.tmac: Updated and renamed from html2.tmac.
6295 * tmac/pspic.tmac: Updated html support.
6296 * tmac/s.tmac: Added html output support.
6297 * tmac/troffrc, tmac/troffrc-end: Updated.
6299 * Makefile.in, doc/Makefile: Updated.
6300 * doc/groff.texinfo: Added info about new `\O' escape.
6301 * doc/homepage.ms: Use `MAILTO' macro.
6303 * font/devhtml/DESC.proto: Add `C' font.
6304 * font/devhtml/Makefile.sub: Updated.
6305 * font/devhtml/R.proto: Minor fixes.
6306 * font/devhtml-old/Makefile.sub: Updated.
6308 * src/devices/grohtml-old/Makefile.sub: Updated.
6310 * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
6312 * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
6313 graphic_start): Add `inline' parameter. Update.
6314 (html_end_suppress, graphic_end): Update.
6316 * src/include/html-strings.h: New file.
6317 * src/include/htmlindicate.h: Comments updated.
6318 * src/include/printer.h: Updated.
6320 * src/preproc/eqn/main.cc (do_file, main): Updated.
6321 * src/preproc/pic/troff.cc (troff_output::start_picture,
6322 troff_output::finish_picture): Updated.
6323 * src/preproc/tbl/main.cc (process_input_file): Updated.
6325 * src/roff/groff/groff.cc (main): Updated.
6326 Pass device arguments to predrivers also.
6327 Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
6328 * src/roff/troff/env.h (environment): Updated.
6329 New elements `need_eol' and `ignore_next_eol' (for html output).
6330 * src/roff/troff/env.cc (environment::environment): Add initializers
6331 for `need_eol' and `ignore_next_eol'.
6332 (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
6334 (point_size, fill, no_fill, center, right_justify, line_length,
6335 indent, temporary_indent, break_request, handle_tab): Use
6337 (set_tabs): Use `add_html_tag_tabs()'.
6338 (environment::add_html_tag): Updated.
6339 (environment::do_break): Updated.
6340 * src/roff/troff/div.cc (space_request, flush_output): Use
6341 `environment::add_html_tag()'.
6342 * src/roff/troff/input.cc: Updated.
6343 New variable `html_level' to indicate nested `html-begin' requests.
6344 (file_iterator::fill): Use `environment::add_html_tag_eol()'.
6345 (non_interpreted_char_node, token_node, non_interpreted_node): Add
6346 `force_tprint()' method.
6347 (token::next): Handle `\O'.
6348 (do_suppress): Implement it.
6349 (html_begin, html_end, html_image): New functions.
6350 (init_output_requests): Renamed to ...
6351 (init_html_requests): this.
6353 (macro::append_str, macro::append_unsigned, macro::append_int): New
6355 New variable `output_low_mark_miny' to limit minimal value of y.
6356 (reset_output_registers): Use it.
6357 (output_request): Removed.
6358 (get_output_registers): New function.
6359 * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
6360 (*_node): Added `force_tprint()' if necessary.
6361 (special_node): New elements `tf' and `get_tfont()'.
6362 (suppress_node): New class.
6363 * src/roff/troff/node.cc:
6364 New global variables `image_no' and `suppress_start_page'.
6365 (real_output_file): New method `is_on()'.
6366 (troff_output_file): New method `start_special(tfont)'.
6367 (troff_output_file::really_print_line): Use `tprint' conditionally.
6368 (real_output_file::print_line): Updated.
6369 (real_output_file::on): Updated.
6370 (*_node): Added `force_tprint()'.
6371 (special_node::special_node): Initializer updated.
6372 (special_node::same, special_node::copy, special_node::tprint_start):
6374 (get_reg_int, get_reg_str): New functions.
6375 (suppress_node::*): New methods.
6376 New global variables last_position, last_image_filename;
6377 (min): New inline function.
6378 * src/roff/troff/reg.h, src/roff/troff/request.h,
6379 src/roff/troff/troff.h: Updated.
6381 2001-01-13 Werner LEMBERG <wl@gnu.org>
6383 * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
6384 documentation of `asciify' request.
6386 2001-01-12 Werner LEMBERG <wl@gnu.org>
6388 * src/roff/troff/input.cc: Move definition of special characters
6389 like `ESCAPE_TILDE' to ...
6390 * src/roff/troff/input.h: New file.
6391 * src/roff/troff/Makefile.sub (HDRS): Add it.
6393 Extending the .asciify request to `unformat' space characters also.
6395 * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
6396 to count input space characters.
6397 Update constructors to take care of it.
6398 * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
6399 `ESCAPE_SPACE' instead of normal space.
6400 (word_space_node::asciify): New method.
6401 (unbreakable_space_node::asciify): New method.
6402 (word_space_node::merge_space): New method.
6403 * src/roff/troff/env.cc (environment::space_newline,
6404 environment::space): Add code to initialize `num_spaces' (using the
6405 constructor of `word_space_node').
6406 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
6409 2001-01-09 Werner LEMBERG <wl@gnu.org>
6411 * man/groff_char.man: Use table header traps only conditionally.
6413 2001-01-09 Bjarni Ingi Gíslason <bjarniig@hi.is>
6415 * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
6417 2001-01-08 Werner LEMBERG <wl@gnu.org>
6419 Introducing the `box' and `boxa' requests which are similar to
6420 `di' resp. `da' but omitting a partially filled line (which is
6421 restored after ending the diversion).
6423 * src/roff/troff/div.h (diversion): Add elements to save partially
6425 * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
6426 partially filled line.
6427 (divert, divert_append): Updated.
6428 (box, box_append): New functions.
6429 (init_div_requests): Use them.
6430 * src/roff/troff/env.h (environment): do_divert() is now a friend.
6431 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6433 * doc/groff.texinfo: Fix documentation of `lf' request.
6435 2000-12-25 Werner LEMBERG <wl@gnu.org>
6437 * src/roff/troff/troff.man, NEWS: Document `writem' request.
6439 2000-12-21 Werner LEMBERG <wl@gnu.org>
6441 Ignore `ss' request if in compatibility mode.
6443 * src/roff/troff/input.cc: Make `compatible_flag' non-static.
6444 * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
6445 * src/roff/troff/env.cc (space_size): Use it.
6447 * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
6448 `ss' request in nroff mode.
6450 * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
6453 2000-12-15 Ruslan Ermilov <ru@FreeBSD.org>
6455 * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
6457 2000-12-13 Werner LEMBERG <wl@gnu.org>
6459 * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
6460 * src/preproc/eqn/neqn.man: Small fixes and additions.
6462 2000-12-13 Ruslan Ermilov <ru@FreeBSD.org>
6464 * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
6467 * src/preproc/eqn/neqn.man: New file.
6469 * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
6472 * tmac/e.tmac: Add `T&' macro.
6473 Fix `indent cannot be negative' warning.
6474 * tmac/s.tmac: Fix `indent cannot be negative' warning.
6476 2000-12-07 Werner LEMBERG <wl@gnu.org>
6478 * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
6480 2000-12-06 Werner LEMBERG <wl@gnu.org>
6482 * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
6485 * MORE.STUFF: Added info about deroff for djgpp.
6487 * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
6488 documentation of -rcR switch.
6490 2000-12-03 Werner LEMBERG <wl@gnu.org>
6492 * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
6493 if -rcR=1 (which is now the default in nroff mode), a single, very
6494 long page is created instead of multiple pages: All `ne' and `wh'
6495 requests are put into conditionals; a new macro `an-end' is added to
6496 be called with `em'.
6498 Some other minor cleanups.
6500 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
6502 2000-12-02 Werner LEMBERG <wl@gnu.org>
6504 Fixing a bug which prevented hyphenation in words followed
6505 immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
6507 * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
6508 Adding possibly_break_line().
6509 * src/roff/troff/env.h (environment): Make possibly_break_line()
6512 Make `\~' usable in .tr request.
6514 * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
6515 (token): Add stretchable_space().
6516 * src/roff/troff/input.cc (token::next, token::delimiter,
6517 token::description, process_input_stack, do_translate,
6518 add_to_node_list, token::process): Use it.
6519 * src/roff/troff/node.h (node): Add fourth parameter to add_char()
6520 for adjusting the space.
6521 * src/roff/troff/node.cc (node::add_char): Implement it. Add code
6522 for stretchable space.
6523 * src/roff/troff/input.cc (token::add_to_node_list): Use it.
6524 (make_node): Add code for stretchable space.
6525 * src/roff/troff/env.cc (environment::add_char): Use it.
6526 * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
6527 (get_copy, token::next, transparent_translate, asciify): Use it.
6529 * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
6530 doc/groff.texinfo: Updated.
6531 * man/groff.man: Small reorderings.
6533 2000-11-23 Werner LEMBERG <wl@gnu.org>
6536 * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
6538 * src/roff/troff/input.cc (main): Add `config_macro_path' and
6539 `safer_macro_path' to -M option.
6540 * src/roff/troff/troff.man: Fixes.
6542 2000-11-22 Werner LEMBERG <wl@gnu.org>
6544 Use safer path (except for config files) if -U isn't specified. Add
6545 a special macro path (without home and current directory) for config
6546 files. Add home directory to unsafe path for consistency. Don't
6547 include the home directory in the font path.
6549 * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
6551 * src/include/macropath.h: Add `config_macrp_path'.
6552 * src/libs/libgroff/fontfile.cc: Fix font path.
6553 * src/roff/troff/input.cc (process_startup_file): Use
6554 `config_macro_path'.
6555 (main): Select unsafe path if -U is given.
6557 * src/preproc/eqn/main.cc (main): Fixing search path for
6559 * src/preproc/eqn/eqn.man: Updated.
6561 * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
6564 * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
6565 src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
6566 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
6567 src/devices/grotty/grotty.man: Updated.
6569 * Makefile.in: Fix comments.
6571 2000-11-17 Werner LEMBERG <wl@gnu.org>
6573 * tmac/safer.tmac: Empty file added (again) for compatibility
6575 * tmac/Makefile.sub: Updated.
6577 2000-11-16 Werner LEMBERG <wl@gnu.org>
6579 * src/devices/grodvi/dvi.cc (main),
6580 src/devices/grohtml2/post-html.cc (main),
6581 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
6582 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
6583 (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
6584 (main), src/preproc/html2/pre-html.cc (main),
6585 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
6586 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
6587 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
6588 (main), src/utils/hpftodit/hpftodit.cc (main),
6589 src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
6590 (main), src/utils/lookbib/lookbib.cc (main),
6591 src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
6592 (main): Use stdout for -v.
6593 * src/roff/groff/groff.cc (run_commands),
6594 src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
6595 to make direct printing to stdout possible.
6596 * src/roff/groff/pipeline.h: Updated.
6598 * src/utils/afmtodit/afmtodit.pl: Add -v switch.
6599 * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
6600 * src/utils/afmtodit/afmtodit.man: Updated.
6602 * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
6603 (version): New function.
6605 * src/utils/addftinfo/addftinfo.man: Updated.
6607 * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
6608 Fixing copyright dates.
6610 * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
6613 * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
6616 * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
6618 2000-11-15 Werner LEMBERG <wl@gnu.org>
6620 In all programs, make -v return immediately with exit status 0 to
6621 be compliant with the GNU standard.
6623 * src/devices/grodvi/dvi.cc (main),
6624 src/devices/grohtml2/post-html.cc (main),
6625 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
6626 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
6627 (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
6628 (main), src/preproc/html2/pre-html.cc (main),
6629 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
6630 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
6631 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
6632 (main): Implement it.
6635 * src/roff/groff/groff.cc (main): Add copyright notice. Add refer
6636 and postprocessors to the -v option.
6638 * src/roff/grog/grog.pl: Implement -v.
6639 * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
6640 * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
6642 * src/roff/nroff/nroff.sh: Implement -v.
6643 * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
6644 * src/roff/nroff/nroff.man: Updated.
6646 * src/preproc/eqn/main.cc (main): Fix comment typo.
6648 * MORE.STUFF: Added info about djgpp port of grap.
6650 2000-11-14 Werner LEMBERG <wl@gnu.org>
6652 * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
6653 mode (or rather, implemented non-compatibility mode).
6654 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
6656 * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
6657 replacing it -- we don't find gxditview otherwise.
6658 * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
6660 * src/preproc/pic/depend: Removed. Unnecessary.
6662 Implemented dummy keyword `solid' in pic for compatibility with
6665 * lex.cc (lookup_keyword): Added `solid'.
6666 * pic.y: Added SOLID with dummy rule.
6667 * pic.cc, pic_tab.h: Regenerated.
6668 * doc/pic.ms: Updated.
6670 2000-11-13 Werner LEMBERG <wl@gnu.org>
6672 For security reasons, don't use the current directory but the home
6673 directory while searching and scanning troffrc and troffrc-end.
6674 Similarly, replace the current directory with the home directory
6677 * Makefile.in (fontpath, tmacpath): Remove current directory.
6679 * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
6680 two parameters `add_home' and `add_current'.
6681 (search_path::~search_path, search_path::command_line_dir,
6682 search_path::open_file): Remove tests for `dirs' being zero.
6683 * src/include/searchpath.h: Adjust.
6684 * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
6686 * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
6688 * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
6689 * src/roff/troff/input.cc: Use `mac_path', initialized with
6691 (process_startup_file): Set `mac_path' to `safer_macro_path'.
6692 * src/roff/troff/env.cc: Use `mac_path'.
6694 * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
6696 * NEWS, man/roff.man, src/roff/troff/troff.man,
6697 src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
6700 2000-11-12 Werner LEMBERG <wl@gnu.org>
6702 * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
6704 * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
6705 * configure.in: Fix typo in comment.
6706 * configure: Regenerated.
6708 * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
6711 2000-11-08 Werner LEMBERG <wl@gnu.org>
6713 Add system tmac directory (/usr/local/lib/groff/site-tmac).
6715 * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
6716 (uninstall_dirs): Add $(libdir), $(libprogramdir), and
6719 * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
6720 * tmac/Makefile.sub (install_data): Create
6721 $(systemtmacdir) and $(localtmacdir).
6722 (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
6723 * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
6724 NEWS, doc/groff.texinfo: Updated and minor fixes.
6726 * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
6727 * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
6728 $(systemtmacdir) since the wrapper files are platform-dependent.
6730 2000-11-01 Werner LEMBERG <wl@gnu.org>
6732 * doc/groff.texinfo: Fix typo.
6734 2000-10-26 Werner LEMBERG <wl@gnu.org>
6736 Convert macros `tmac.XXX' to `XXX.tmac'. Special cases:
6737 tmac.doc.old -> doc-old.tmac
6738 tmac.an.old -> an-old.tmac
6740 * tmac/tmac.*: Moved to ...
6741 * tmac/*.tmac: this.
6742 * tmac/man.local: Fix comment.
6743 * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
6744 tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated.
6745 Added some `FILES' sections. More use of @...@ directives. Other
6747 * arch/djgpp/README, font/devutf8/NOTES: Updated.
6748 * doc/homepage.ms, doc/groff.texinfo: Updated.
6749 * man/groff.man, man/roff.man: Updated.
6750 * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
6751 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
6752 src/devices/grotty/grotty.man: Updated.
6753 * src/preproc/pic/pic.man: Updated.
6754 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
6755 instead of -mdoc.old.
6756 * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
6757 * src/roff/nroff/nroff.man: Updated.
6760 * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
6762 * tmac/mm.diff: Removed -- it has no use now since the mm package
6765 * tmac/*: Removed trailing spaces.
6767 * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
6768 the tmac subdirectory also).
6770 * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
6771 * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
6772 stuff since it is no longer needed.
6774 * README, PROBLEMS: Updated.
6776 2000-10-25 Werner LEMBERG <wl@gnu.org>
6778 Invert current behaviour: Search first FOOBAR.tmac, then
6781 * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
6782 (open_mac_file, macro_source): Implement it.
6783 * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
6784 doc/groff.texinfo, NEWS: Document it.
6786 * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
6787 Small documentation improvements.
6789 * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
6792 * font/devps/Makefile.sub: Fix rules for dingbats.*map.
6794 2000-10-24 Werner LEMBERG <wl@gnu.org>
6796 Add local tmac directory (groff/site-tmac).
6798 * Makefile.in: Add $(localtmacdir).
6799 (uninstall_dirs): Add $(localtmacdir).
6800 * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
6801 * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
6802 in $(localtmacdir). Create $(localtmacdir).
6803 * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
6804 Updated and minor fixes.
6806 Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
6808 * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
6810 2000-10-23 Werner LEMBERG <wl@gnu.org>
6812 Move hyphen.us to tmac directory.
6814 * src/roff/troff/hyphen.us: Removed.
6815 * src/tmac/hyphen.us: Added.
6816 * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
6818 Change installation structure for data files from .../groff/... to
6819 .../groff/<version><revision>/... to be conform with other GNU
6822 * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
6823 doc/Makefile: Implement it.
6824 * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
6825 * configure: Updated.
6826 * arch/djgpp/README, font/devutf8/NOTES: Use it.
6827 * NEWS: Document it.
6828 * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
6829 @MACRODIR@ instead of hard-coded directories.
6831 2000-10-22 Werner LEMBERG <wl@gnu.org>
6833 Implement $GROFF_BIN_PATH environment variable (which defaults to
6834 $bindir) used for child programs of groff and similar wrappers.
6836 * gendefs.sh: Improve documentation.
6837 * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
6838 src/preproc/eqn/Makefile.sub (neqn),
6839 src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
6840 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
6842 * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
6843 $GROFF_PATH__ (the latter for communication with troff).
6844 * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
6846 * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
6847 doc/groff.texinfo: Document it.
6849 * doc/groff.texinfo: Improve documentation of troff's -a option.
6851 2000-10-17 Gaius Mulley <gaius@glam.ac.uk>
6853 * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
6854 non-intrusive eol marker.
6855 (troff_output_file::determine_line_limits): New function.
6856 (troff_output_file::draw): Use it.
6857 * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
6858 output_pending_lines() instead of output_line().
6859 * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
6860 * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
6861 createImage): Small fixes.
6863 2000-10-14 Werner LEMBERG <wl@gnu.org>
6865 Replace tmac.safer with a real secure solution.
6867 * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
6868 system_request, pipe_output): Disable requests if in safer mode.
6869 * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
6870 * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
6871 * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
6872 doc/groff.texinfo, src/roff/groff/groff.man,
6873 src/roff/troff/troff.man, arch/djgpp/README: Updated.
6875 * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
6876 (resource_manager::output_prolog): Replace setenv() with putenv().
6878 2000-10-09 Werner LEMBERG <wl@gnu.org>
6880 * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
6881 src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
6882 src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
6883 src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
6884 compilation errors with some compilers. It seems that this code
6885 is no longer necessary -- if yes, it is easy to add some #ifdef's
6886 for that particular old-fashioned compiler.
6888 * MORE.STUFF: Added info about Meta-tbl.
6890 * doc/groff.texinfo: Added more info about `.if "..."..."'.
6892 2000-10-07 Werner LEMBERG <wl@gnu.org>
6894 Adding a new escape sequence \B'...': If the string between
6895 the delimiters is a valid numeric expression, return the character
6896 `1', and `0' otherwise. This is an analogon to \A.
6898 * src/roff/troff/input.cc (do_expr_test): Implement it.
6899 (token::next): Use it.
6900 * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
6902 * tmac/tmac.trace: Made independent from escape character.
6904 2000-10-06 Werner LEMBERG <wl@gnu.org>
6906 Adding a new request .dei: define indirect. The first and second
6907 parameter of .dei are taken from string registers instead directly;
6908 this very special request is needed to make tmac.trace independent
6909 from the escape character (which might even be disabled).
6911 * src/roff/troff/input.cc (do_define_macro): Implement it.
6912 (define_macro_indirect): New function.
6913 (init_input_requests): Use it.
6915 Adding two requests .ecs and .ecr: Save and restore the escape
6916 character. These two requests are needed to make tmac.trace
6917 independent from the escape character (which might even be
6920 * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
6922 (init_input_requests): Use it.
6924 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
6926 2000-09-22 Ricardo Soares Guimarães <ricardo@conectiva.com.br>
6928 Adding a new option -P and new environment variable GROPS_PROLOGUE
6929 to grops, selecting a different prologue file (minor modifications
6932 * src/devices/grops/psrm.cc (resource_manager::output_prolog),
6933 src/devices/grops/ps.cc (main): Implement it.
6934 * src/devices/grops/grops.man, NEWS: Document it.
6936 2000-09-22 Werner LEMBERG <wl@gnu.org>
6938 * INSTALL: Add info about selecting paper format.
6940 2000-09-21 Werner LEMBERG <wl@gnu.org>
6942 * src/roff/troff/input.cc (main): Fixing compiler warning.
6943 * src/include/{driver.h, lib.h}: Move inclusion of string.h and
6944 strings.h from the former to the latter.
6945 * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
6946 stuff from the former to the latter.
6948 2000-09-11 Werner LEMBERG <wl@gnu.org>
6950 Implementing two new requests .tm1 and .tmc: The former is similar
6951 to .tm but can output leading spaces; its syntax is similar to
6952 defining a string, i.e., a `"' can be used to mark the beginning of
6953 the string to be written to stderr: `.tm1 " test'. The latter is
6954 similar to .tm1 but doesn't write out a final newline character.
6956 * src/roff/troff/input.cc (terminal1, terminal_continue,
6957 do_terminal): New functions.
6958 (init_input_requests): Use them.
6959 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
6961 2000-09-09 Werner LEMBERG <wl@gnu.org>
6963 * tmac/groff_mdoc.samples.man: Small fixes.
6965 2000-09-08 Werner LEMBERG <wl@gnu.org>
6967 * tmac/groff_mdoc.man: Fixing typo.
6969 2000-09-02 Werner LEMBERG <wl@gnu.org>
6971 Implementing a .nop request which does nothing.
6973 * src/roff/troff/input.cc (nop_request): New function.
6974 (init_input_requests): Use it.
6975 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
6977 2000-09-01 Werner LEMBERG <wl@gnu.org>
6979 * doc/groff.texinfo: Added some comments.
6981 2000-08-30 Werner LEMBERG <wl@gnu.org>
6983 * src/roff/troff/TODO: Updated.
6985 2000-08-25 Werner LEMBERG <wl@gnu.org>
6987 * doc/groff.texinfo: Fix comment how to compile the DVI file.
6989 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
6991 * font/devps/generate/Makefile (SHELL): Define explicitly to
6992 "/bin/sh", for non-Unix platforms.
6993 (extraclean): Use a more portable "" quoting instead of a
6994 backslash (which doesn't work on DOS/Windows).
6996 * font/devlj4/generate/Makefile (extraclean): Ditto.
6998 * font/devdvi/generate/Makefile (extraclean): Ditto.
7000 2000-08-25 Werner LEMBERG <wl@gnu.org>
7002 * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
7003 src/roff/troff/troff.man: Document Eli's latest changes.
7005 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
7007 * src/roff/troff/input.cc (open_mac_file, macro_source): Support
7008 macro file names of the form NAME.tmac as well as tmac.NAME.
7010 2000-08-25 Werner LEMBERG <wl@gnu.org>
7012 * src/include/posix.h: Remove definition of FILENAME_MAX.
7014 * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
7015 `sys_fatal' and `stop' function().
7017 * test-groff: Updated.
7019 2000-08-24 Gaius Mulley <gaius@glam.ac.uk>
7021 Added the new troff command .output <arg> to suppress output (while
7022 still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
7023 registers (for passing the output dimensions to the output device).
7025 * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
7027 * src/roff/troff/node.h, src/roff/troff/node.cc
7028 (troff_output_file::really_print_line,
7029 ascii_output_file::really_print_line,
7030 supress_output_file::really_print_line): Use `width' parameter.
7031 (troff_output_file::really_on, troff_output_file::really_off,
7032 output_file::on, output_file::off, real_output_file::on,
7033 real_output_file::off, real_output_file::really_on,
7034 real_output_file::really_off): New functions.
7035 (real_output_file:public output_file): New variable `output_on'.
7036 (real_output_file::begin_page, real_output_file::copy_file,
7037 real_output_file::transparent_char, real_output_file::print_line):
7039 (real_output_file::print_line): Use check_output_limits.
7040 * src/roff/troff/reg.h, src/roff/troff/request.h,
7041 src/roff/troff/input.cc (assign_registers): New function to remove
7043 (do_ps_file): Use it.
7044 (check_output_limits, reset_output_registers, output_request,
7045 init_output_requests): New functions.
7046 (init_input_requests): Updated.
7048 Added new grohtml2 device and html2 preprocessor (coding
7049 not yet finished) which will eventually replace grohtml.
7051 * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
7053 * src/include/htmlindicate.h, src/include/htmlindicate
7054 (html_begin_suppress, html_end_suppress): New functions.
7055 * src/preproc/tbl/main.cc: Use it.
7056 * src/roff/groff/groff.cc: Add support for html2 device (which will
7057 automatically invoke the html2 preprocessor).
7058 * src/roff/troff/input.cc (is_html2): New variable.
7059 * src/roff/troff/troff.h, src/roff/troff/env.h,
7060 src/roff/troff/env.cc (environment::add_html_tag): New function
7062 (environment::do_break): Use it.
7063 * font/devhtml2/*: New files.
7064 * src/devices/grohtml2: New device.
7065 * src/preproc/html2: New preprocessor.
7066 * tmac/tmac.html-tags, tmac/tmac.html2: New files.
7068 2000-08-23 Werner LEMBERG <wl@gnu.org>
7070 * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
7072 2000-08-22 Werner LEMBERG <wl@gnu.org>
7074 * src/include/lib.h: Provide a fix for IRIX to not include
7077 2000-08-18 Werner LEMBERG <wl@gnu.org>
7079 * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
7080 since some non-GNU sed programs can't handle null regexps.
7081 * configure, src/preproc/eqn/Makefile.sub,
7082 src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
7084 * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
7085 bug (string.h and strings.h are both needed according to latest
7088 * MORE.STUFF: Added info about unroff and troffcvt.
7090 2000-08-08 Werner LEMBERG <wl@gnu.org>
7092 * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
7095 * tmac/tmac.man.old: Remove unused number register.
7097 * tmac.doc: Minor documentation fix.
7099 2000-08-07 Paul Eggert <eggert@twinsun.com>
7101 * src/roff/groff/pipeline.c (is_system_shell):
7102 Fix typo: "monocased_shell" no longer exists.
7104 2000-08-07 Paul Eggert <eggert@twinsun.com>
7106 Remove FILENAME_MAX limits.
7108 * src/roff/groff/pipeline.c (is_system_shell): Do not assume
7109 that the argument length is less than FILENAME_MAX.
7110 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
7111 Use struct hack to allocate and free file name.
7112 (struct xtmpfile_list): fname is now part of the structure,
7113 not a pointer to another string.
7115 2000-08-07 Tom Schmidt <tschmidt@micron.com>
7117 * src/include/posix.h: Add a default value for FILENAME_MAX.
7119 2000-08-06 Paul Eggert <eggert@twinsun.com>
7121 Add support for new BSD-style man pages (with ".Dd" instead of
7122 ".TH"), so that "groff -man" understands both styles, even
7123 when running "groff -man" on a host whose system man page
7124 macros don't support ".Dd".
7126 * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
7127 (stamp-wrap): Source tmac.andoc first when wrapping man macros,
7128 in case the system man macros don't define Dd or TH.
7130 * tmac/tmac.an.old: Renamed from tmac/tmac.an.
7131 * tmac/tmac.an: New one-line file.
7132 * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
7134 2000-08-06 Werner LEMBERG <wl@gnu.org>
7136 * src/roff/troff/troff.man: Fixing typos.
7138 Version 1.16.1 released
7139 =======================
7141 2000-07-31 Werner LEMBERG <wl@gnu.org>
7143 Preparing release 1.16.1.
7145 * REVISION: Revision number set to 1.
7146 * MORE.STUFF: Added info about port to DOS.
7147 * NEWS, win32-diffs: Updated.
7149 * src/include/nonposix.h: Remove first line -- this file is used
7152 * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
7155 2000-07-30 Werner LEMBERG <wl@gnu.org>
7157 * doc/texinfo.tex: Update to latest version.
7159 2000-06-28 Paul Eggert <eggert@twinsun.com>
7161 * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
7162 commands that fail. Don't assume that "export a=b" is valid shell
7163 syntax. This is needed for Solaris 2.5.1.
7165 * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
7166 comment about missing Solaris headers.
7168 * PROBLEMS: Add section about problems with Sun Make and VPATH.
7170 2000-06-25 Werner LEMBERG <wl@gnu.org>
7172 * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
7175 * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
7177 * win32-diffs: Updated.
7178 * README.WIN32: Added CRs to make all Windows editors happy.
7180 * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
7181 src/roff/groff/pipeline.c).
7183 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
7185 * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
7186 $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
7188 2000-06-17 Eli Zaretskii <eliz@is.elta.co.il>
7190 * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
7191 (tfm::load, gf::load): Open tfm and gf files in binary mode: these
7193 (main): Support non-Posix systems with several different styles of
7194 slash characters in file names.
7196 * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
7197 (main) [SET_BINARY]: Switch stdin into binary mode.
7199 * src/utils/indxbib/indxbib.cc: #include nonposix.h.
7200 (main): Support file names with several possible slash-type
7201 characters, as given by DIR_SEPS[] in nonposix.h.
7202 (main) [__MSDOS__]: If renaming the temporary index file fails
7203 because it has more than one dot in its trunk, replace the dot
7204 with an underscore and try again.
7205 (do_file): Use FOPEN_RB instead of "r". Skip every CR before a
7207 [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
7209 * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
7210 (File::File): Open the input file in binary mode. Strip CR
7211 characters from each CR-LF pair.
7212 (xbasename): Support file names with several possible slash-type
7213 characters, as given by DIR_SEPS[] in nonposix.h.
7215 * src/include/Makefile.sub (HDRS): Add nonposix.h.
7217 * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
7218 (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
7219 [!_POSIX_VERSION]: Define for traditional Unix systems.
7220 (real_output_file::real_output_file): Remove the MSVC-specific
7221 call to popen, use instead POPEN_WT, appropriately defined on
7222 nonposix.h. #include nonposix.h.
7223 (real_output_file::~real_output_file): Remove the MSVC-specific
7224 call to pclose, a suitable macro is now defined on nonposix.h.
7225 Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
7226 and WEXITSTATUS instead of assuming traditional Unix
7227 interpretation of the status returned by pclose.
7229 * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
7230 call to popen, use POPEN_RT instead (appropriately defined on
7231 nonposix.h). #include nonposix.h.
7232 (ps_bbox_request): Open the PostScript file in binary mode.
7233 Close the file after processing it.
7234 (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
7237 * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
7238 A version of run_pipeline that doesn't use `fork'.
7239 (signal_catcher) [__MSDOS__ || _WIN32]: New function.
7240 (system_shell_name, system_shell_dash_c)
7241 (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
7242 the ugliness of testing DOS/Windows file names for equality, and
7243 support both stock shells and ports of Unix shells.
7245 * src/roff/groff/groff.cc: #include nonposix.h.
7246 (BSHELL): Definition moved to nonposix.h.
7247 (main): Use PATH_SEP[0] instead of literal ':'. Use BSHELL_DASH_C
7248 instead of a literal "-c".
7249 (xbasename): Support file names with several possible slash-type
7250 characters, as given by DIR_SEPS[] in nonposix.h.
7251 (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
7254 * src/preproc/soelim/soelim.cc: #include nonposix.h.
7255 (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
7257 * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
7260 * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
7262 * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
7265 * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
7267 * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
7268 P_tmpdir is defined, use it instead of the literal "/tmp".
7269 (remove_tmp_files, add_tmp_file): New functions.
7270 (xtmpfile): Record temporary files and register an atexit function
7271 to delete them explicitly, instead of relying on the OS to do
7272 that, which doesn't work on non-Unix systems.
7274 * src/libs/libgroff/searchpath.cc: #include nonposix.h.
7275 (search_path::search_path): Use PATH_SEP instead of a literal
7277 (search_path::command_line_dir): Ditto.
7278 (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
7279 to support non-Posix systems.
7281 * src/libs/libbib/search.cc: #include nonposix.h.
7282 (search_list::add_file): Open the file in binary mode.
7284 * src/libs/libbib/linear.cc: #include nonposix.h.
7285 (file_buffer::load): Remove \r characters preceding \n from the
7288 * src/libs/libbib/index.cc: #include nonposix.h.
7289 (make_index_search_item): Open index_filename in O_BINARY mode.
7290 (index_search_item_iterator::get_tag): Ditto. Remove \r
7291 characters before \n characters.
7292 (index_search_item::check_files): Open files in binary mode.
7293 (index_search_item::munge_filename): Support DOS-style file names
7294 with backslashes and drive letters, use IS_ABSOLUTE.
7296 * src/devices/grops/ps.cc: #include nonposix.h.
7297 (main) [SET_BINARY]: Switch stdout to binary mode.
7299 * src/devices/grolj4/lj4.cc: #include nonposix.h.
7300 (main) [SET_BINARY]: Switch stdout to binary mode.
7302 * src/devices/grolbp/lbp.cc: #include nonposix.h
7303 (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
7305 * src/devices/grodvi/dvi.cc: #include nonposix.h.
7306 [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
7308 (main) [SET_BINARY]: Switch stdout to binary mode.
7309 [_MSC_VER]: Remove an explicit call to _setmode.
7311 * src/include/nonposix.h: New file.
7313 * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
7314 operation when building with DJGPP.
7315 ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
7316 ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
7319 * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
7321 (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
7322 etc. can include a semi-colon on DOS/Windows.
7323 (depend.temp): Use depend1.temp instead of depend.temp1, to
7324 prevent files from overerwiting each other on 8+3 filesystems.
7326 * gendef.sh (t): Change definition to work with DOS/Windows.
7328 doc/groff.texinfo: Apart of some typo corrections, I also changed
7329 some index entris, to make them more non-ambiguous, and also put
7330 @ignore around some parts that are not yet written, to allow the
7331 Info output be readable.
7333 2000-06-10 Gael Queri <gqueri@mail.dotcom.fr>
7335 Replaced specific checks for function declarations with a generic
7336 routine taken from GNU bfd.
7338 * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
7339 GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
7340 * configure.in: Use it.
7341 * src/devices/grolbp/lbp.cc, src/include/lib.h,
7342 src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
7343 src/roff/groff/groff.cc: Use it.
7344 * Makefile.in, configure: Updated.
7346 2000-06-07 Paco Andrés Verdú <pandres@dragonet.es>
7348 * src/devides/grolbp/lbp.h: Removed unused variables.
7350 2000-05-31 Keith Thompson <kst@sdsc.edu>
7352 * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
7355 2000-05-31 Werner LEMBERG <wl@gnu.org>
7357 * aclocal.m4 (GROFF_SRAND): New function to test the return value
7358 of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
7359 * configure.in: Use it.
7360 * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
7361 * configure, Makefile.in: Updated.
7363 * configure.in: Add test for strncasecmp().
7364 * src/include/lib.h: Use it.
7366 2000-05-29 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
7368 * src/preproc/grn/Makefile.sub: Add MLIB.
7370 2000-05-29 Nix <nix@esperi.demon.co.uk>
7372 * Makefile.in: Use @datadir@ and @mandir@ appropriately.
7374 2000-05-29 Werner LEMBERG <wl@gnu.org>
7376 * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
7378 * PROBLEMS: Small update.
7380 * src/devices/grolbp/lbp.cc: Various small fixes.
7382 2000-05-28 Keith Thompson <kst@sdsc.edu>
7384 * src/roff/nroff/nroff.sh: Fix main loop syntax.
7386 * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
7388 2000-05-25 Werner LEMBERG <wl@gnu.org>
7390 * man/roff.man: Removed unused macro.
7392 2000-05-24 Werner LEMBERG <wl@gnu.org>
7394 * Makefile.in (dist): Remove src/xditview/Imakefile explicitly.
7395 This is needed e.g. if you do
7396 `make distclean; ./configure; make dist'.
7398 Version 1.16 released
7399 =====================
7401 2000-05-23 Werner LEMBERG <wl@gnu.org>
7403 Adding font CWI (constant width italic) to devdvi.
7405 * font/devdvi/CWI: New file.
7406 * font/devdvi/generate/Makefile: Add generating rule.
7407 * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
7408 tmac/tmac.dvi: Use it.
7409 * NEWS: Announce it.
7411 * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
7412 * font/devlj4/generate/Makefile: Cosmetic changes only.
7414 * man/groff.man: Removed most of the redundant description of
7415 special characters (which is in groff_char.man). Added font
7416 translation CB->CR for devdvi. Other minor fixes.
7418 * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
7419 (registered) symbols.
7421 2000-05-22 Werner LEMBERG <wl@gnu.org>
7423 * doc/Makefile: Added rule for creating info files.
7425 * font/devdvi/*: Added kernings for `cq' glyph. Updated to latest
7427 * font/devdvi/generate/Makefile: Fixed dependencies.
7429 * font/devps/*: Regenerated. Heavy changes for Bookman and
7430 NewCentury Schoolbook!
7431 * font/devps/generate/afmname: Will now run with GNU awk.
7432 * font/devps/generate/textmap: Added forgotten `cq' glyph name.
7433 * font/devps/generate/Makefile: Cosmetic changes only.
7435 2000-05-21 Werner LEMBERG <wl@gnu.org>
7437 * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
7438 10, 11, or 12) to support output with 11pt and 12pt base font sizes.
7439 `.SS' now produces a heading with a smaller size than `.SH'.
7440 Completely formatted.
7441 * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
7443 * man/groff.man: Improved table appearance. Use of `eo' request
7444 to reduce number of doubled backslashes in macro definitions.
7445 Replacing `\e' with `\(rs'. Other minor fixes.
7447 * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
7448 to have correct line number.
7450 * INSTALL: Small improvement.
7452 2000-05-20 Bernd Warken <bwarken@mayn.de>
7454 * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
7457 2000-05-19 Bernd Warken <bwarken@mayn.de>
7459 * man/groff.man: Complete update (with a lot of corrections by WL).
7461 2000-05-18 Werner LEMBERG <wl@gnu.org>
7463 Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
7465 * font/*/*: Implement it.
7466 * man/groff_char.man, NEWS: Document it.
7468 * src/include/unix.h: Removed. It isn't used.
7470 * doc/groff.texinfo: Slight improvements.
7472 2000-05-17 Werner LEMBERG <wl@gnu.org>
7474 * README, win32-diffs: Small fixes and improvements.
7476 2000-05-16 Werner LEMBERG <wl@gnu.org>
7478 * FDL: New file (the Free Documentation License version 1.1).
7480 * doc/groff.texinfo: Added many start-up values for gtroff.
7481 Some structural improvements of the source code.
7483 2000-05-15 Werner LEMBERG <wl@gnu.org>
7485 * src/roff/troff/input.cc: Added small comment about troffrc-end.
7486 * src/roff/troff/troff.man: Added info about troffrc-end.
7488 2000-05-14 Werner LEMBERG <wl@gnu.org>
7490 * Makefile.in (EXTRADIRS): Fix typos.
7491 (dist): Handle deletion of old .tar.gz file correctly.
7492 (DISTDIRS): Include all tty output devices.
7494 * doc/groff.texinfo: Adding more cross references; countless other
7497 2000-05-13 Werner LEMBERG <wl@gnu.org>
7499 * MORE.STUFF: Added Robert Marks's utilities.
7501 2000-05-12 Werner LEMBERG <wl@gnu.org>
7503 Added win32 port contributed by Blake McBride
7504 <blake@florida-software.com>.
7506 * README.WIN32, win32-diffs: New files.
7509 * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
7510 (tmove, tmove2): Added parentheses to avoid compiler warnings.
7511 (change): Removed unused variables.
7513 * src/preproc/grn/main.cc (main, conv): Removed unused variables.
7514 (savebounds): Changed return value from `int' to `void'.
7515 * src/preproc/grn/hdb.cc: Ditto.
7517 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
7518 final backslash in comment to avoid compiler warning.
7520 * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
7522 * doc/groff.texinfo: More fixes.
7524 2000-05-11 OKAZAKI Tetsurou <okazaki@be.to>
7526 * tmac/tmac.doc: Documentation fix.
7528 2000-05-11 Werner LEMBERG <wl@gnu.org>
7530 * doc/groff.texinfo: Reading the source code shows up a lot of
7531 omissions and incorrect data... More conversion to @Deffn macros.
7533 2000-05-10 Werner LEMBERG <wl@gnu.org>
7535 * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
7538 * src/roff/troff/request.h: Removing unused `no_break_flag'.
7540 2000-05-09 Werner LEMBERG <wl@gnu.org>
7542 * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
7545 * doc/groff.texinfo: Extended history section. More conversion to
7546 @Deffn macros. More .tr documentation.
7548 2000-05-07 Werner LEMBERG <wl@gnu.org>
7550 * doc/groff.texinfo: Completed tab section. Added info about
7553 2000-05-06 Mike MacIsaac <mikemac@us.ibm.com>
7555 * PROBLEMS: Describe configure script fix for OS/390 Unix.
7557 2000-05-05 Werner LEMBERG <wl@gnu.org>
7559 * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
7561 * NEWS: Document it.
7563 * man/troff.man: Minor optical improvements.
7565 2000-05-03 Werner LEMBERG <wl@gnu.org>
7567 Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
7569 * font/*/*: Implement it.
7570 * man/groff_char.man, NEWS: Document it.
7572 2000-05-02 Werner LEMBERG <wl@gnu.org>
7574 * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
7576 * NEWS: Document the three new man pages.
7578 * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
7579 * configure: Updated.
7581 * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
7583 2000-05-01 Werner LEMBERG <wl@gnu.org>
7585 Added grap support to grog.
7587 * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
7588 * src/roff/grog/grog.man: Document it.
7590 * doc/groff.texinfo, NEWS: Add info about grap support.
7592 Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
7593 (with slight fixes by me).
7595 * tmac/groff_tmac.man: New file documenting tmac mechanism.
7596 * tmac/Makefile.sub: Add groff_tmac.man.
7597 * man/roff.man: New file giving overview of roff system.
7598 * man/troff.man: A short reference of troff.
7599 * man/Makefile.sub: Add roff.man and troff.man.
7601 2000-04-30 Werner LEMBERG <wl@gnu.org>
7603 Added grap support to groff.
7605 * src/roff/groff/groff.cc: Implement it.
7606 * src/roff/groff/groff.man: Document it.
7608 * src/devices/grotty/grotty.man: Add cp1047 device.
7609 * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
7611 * src/roff/groff/groff.man: Ditto.
7612 * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
7613 * doc/groff.texinfo: Ditto.
7615 * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
7618 2000-04-29 Werner LEMBERG <wl@gnu.org>
7620 * man/groff_char.man: Add `pc' glyph.
7621 * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
7622 * tmac/tmac.tty: Add `pc' glyph.
7623 * tmac/tmac.tty-char: Use/add `pc' glyph. Don't call tmac.latin1 if
7624 we use cp1047 output device.
7626 * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
7627 there are still hardcoded latin1->unicode values in utf8's font
7629 * configure: Updated.
7630 * NEWS: Minor clarification. Updated.
7632 * PROBLEMS: Formatted. Added info about C++ fix pack for OS/390
7635 2000-04-28 Werner LEMBERG <wl@gnu.org>
7637 Adding EBCDIC code page 1047.
7639 * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
7640 font/devcp1047/DESC.proto: New files.
7642 * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
7643 either ascii/latin1 or cp1047.
7644 * Makefile.in: Use it.
7645 * configure: Updated.
7647 Replacing and/or adding `md' (mathdot) glyph with `pc'
7648 (periodcentered) in all text fonts.
7650 * font/*/*: Change it.
7652 2000-04-27 Werner LEMBERG <wl@gnu.org>
7654 * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
7656 * configure.in: Add check for strings.h.
7657 * src/include/driver.h: Use HAVE_STRINGS_H.
7658 * src/devices/grolbp/lpb.cc: Remove string.h.
7660 * src/include/groff-getopt.h: New file. It will be used instead of
7661 getopt.h (to be included in lib.h) to avoid endless problems with
7662 picky C++ compilers.
7663 * src/include/lib.h: Use groff-getopt.h.
7664 * src/include/Makefile.sub: Updated.
7666 * configure: Updated.
7667 * Makefile.in: Updated.
7669 * NEWS: Mention EBCDIC support.
7671 2000-04-26 Werner LEMBERG <wl@gnu.org>
7673 * TODO: Some additions.
7675 2000-04-25 Werner LEMBERG <wl@gnu.org>
7677 * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
7680 2000-04-23 Werner LEMBERG <wl@gnu.org>
7682 * src/roff/troff/troff.man: Minor fixes.
7684 2000-04-22 Werner LEMBERG <wl@gnu.org>
7686 * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
7687 `.T' string register and the incompatible definition of the `.T'
7688 number register (compared to Unix troff).
7690 * man/groff_char.man: Add some missing characters.
7691 * font/devutf8/NOTES: Update.
7693 2000-04-21 Werner LEMBERG <wl@gnu.org>
7695 * src/include/htmlindicate.h, src/include/lib.h,
7696 src/include/posix.h: Fix copyright.
7698 * src/include/Makefile.sub: Update.
7700 2000-04-20 Werner LEMBERG <wl@gnu.org>
7702 * src/roff/troff/input.cc (input_char_description): Removing
7703 superfluous space char.
7705 * tmac/tmac.X: Fix typo \(bq -> \(Bq.
7707 * doc/groff.texinfo: Document EBCDIC.
7709 2000-04-19 Werner LEMBERG <wl@gnu.org>
7711 Introducing `shc' as the glyph name for the soft hyphen character.
7713 * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
7714 font/devlatin1/R.proto: Use it.
7718 2000-04-18 Werner LEMBERG <wl@gnu.org>
7720 * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
7721 dependency on ASCII order.
7723 2000-04-16 Sandor BARANY <S.Barany@infosys.tuwien.ac.at>
7725 * src/libs/libgroff/illegal.c: Added EBCDIC table.
7726 * src/roff/troff/input.cc: Added adaptation to EBCDIC.
7728 * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
7729 to increase portability.
7731 2000-04-15 Werner LEMBERG <wl@gnu.org>
7733 * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
7734 Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
7735 the generic `\n' if under OS/390 Unix.
7737 * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
7739 * configure: Regenerated.
7741 2000-04-14 Werner LEMBERG <wl@gnu.org>
7743 * doc/groff.texinfo: More conversions to @Deffn.
7745 2000-04-12 Werner LEMBERG <wl@gnu.org>
7747 * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
7750 * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
7752 2000-04-10 Werner LEMBERG <wl@gnu.org>
7754 * doc/groff.texinfo: More conversions to @Deffn.
7756 2000-04-08 Werner LEMBERG <wl@gnu.org>
7758 * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
7759 Updated to latest version (glibc 2.1.3).
7761 2000-04-07 Werner LEMBERG <wl@gnu.org>
7763 * doc/Makefile (clean): Include more index files.
7764 Add rule texinfo->dvi.
7766 2000-04-05 Werner LEMBERG <wl@gnu.org>
7768 * doc/groff.texinfo: Added new index `op' for operators. More
7769 info on end of sentence characters. More use of @Deffn.
7771 2000-03-30 Werner LEMBERG <wl@gnu.org>
7773 * */*.man: Adding a note that a whitespace can be inserted between
7774 a command line option and its parameter -- we are using GNU getopt.
7776 * src/roff/groff/groff.man: Add example of `-m mandoc'.
7778 2000-03-28 Werner LEMBERG <wl@gnu.org>
7780 Correct anachronism of calling the man macro file with `-man'
7781 instead of `-m man' etc.
7783 * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
7784 tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
7785 load tmac.<package>.
7787 * tmac/Makefile.sub: Updated. Take care of $(tmac_an_prefix) etc.
7791 * doc/groff.texinfo: Updated.
7793 * tmac/groff_man.man: Copyright added.
7795 2000-03-27 Werner LEMBERG <wl@gnu.org>
7797 * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
7798 typeset the request resp. escape name with a tt font -- due to a
7799 bug in texinfo.tex it is necessary to use the `-e' switch with
7802 Improving info about usage of groff units.
7806 2000-03-20 Werner LEMBERG <wl@gnu.org>
7808 * doc/groff.texinfo: Added section about man macro package
7809 (I've basically taken groff_man.man). Introducing new indices `ma'
7810 for macros/strings and `gl' for glyph names. Other minor fixes.
7812 * tmac/groff_man.man: Fixed some typos.
7814 2000-03-19 Werner LEMBERG <wl@gnu.org>
7816 * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
7819 * doc/texinfo.tex: New file.
7821 2000-03-18 Werner LEMBERG <wl@gnu.org>
7823 * doc/groff.texinfo: Improved section on number registers. Other
7826 2000-03-16 Werner LEMBERG <wl@gnu.org>
7828 * src/roff/groff/groff.man: Added info about grolbp. Make nicer
7831 * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
7832 src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
7833 src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
7834 src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
7836 * src/preproc/grn/grn.man: Better synopsis; added copyright.
7838 * src/roff/grog/grog.man: Updated copyright date.
7840 2000-03-14 Francisco Andrés Verdú <pandres@dragonet.es>
7842 * configure.in: Added test for strdup.
7844 * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
7847 Replaced dynamic allocation of arrays `[...]' with `new' operator.
7851 2000-03-12 OKAZAKI Tetsurou <okazaki@be.to>
7853 * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
7855 2000-03-11 Werner LEMBERG <wl@gnu.org>
7857 * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
7859 * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
7860 * src/include/lib.h: Remove some spaces.
7862 2000-03-10 Werner LEMBERG <wl@gnu.org>
7864 * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
7865 initializers from arguments (some compilers don't like this).
7867 2000-03-09 Gaius Mulley <gaius@glam.ac.uk>
7869 * src/libs/libgroff/htmlindicate.cc: Added library file which is now
7870 used by pic and eqn to tell grohtml where the graphic regions start
7872 * src/libs/libgroff/Makefile.sub: Use it.
7873 * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
7874 graphic_start() and graphic_end() from htmlindicate.cc.
7876 2000-03-09 Werner LEMBERG <wl@gnu.org>
7878 * tmac/tmac.safer: Will now work correctly in compatibility mode.
7879 * tmac/groff_man.man: More fixes.
7881 2000-03-08 Werner LEMBERG <wl@gnu.org>
7883 * doc/Makefile: Added texput.log to the `clean' target.
7884 * doc/groff.texinfo: Added info about delimiters for escapes.
7886 2000-03-08 Bernd Warken <bwarken@mayn.de>
7888 * src/preproc/pic/pic.man: Add info on conversion of pic images to
7889 other graphic formats.
7891 2000-03-07 OKAZAKI Tetsurou <okazaki@be.to>
7893 * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
7894 src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
7895 src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
7898 2000-03-07 Werner LEMBERG <wl@gnu.org>
7900 * doc/groff.texinfo: Spelling fixes.
7902 2000-03-06 Werner LEMBERG <wl@gnu.org>
7904 * tmac/groff_man.man: Completely revised to cover everything in
7907 * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
7908 Other minor fixings.
7909 * src/roff/troff/env.cc (environment_copy): Improve error message and
7911 * src/roff/troff/TODO: Updated.
7913 * doc/Makefile: Bug fixes -- this is still provisional, though...
7915 * tmac/eqnrc: Small fixes.
7917 2000-03-05 Abramo Bagnara <abramo@alsa-project.org>
7919 Adding a request `evc' to copy environments.
7921 * src/roff/troff/env.cc (environment::copy, environment_copy):
7923 * src/roff/troff/env.h: Add prototype.
7925 2000-03-05 Francisco Andrés Verdú <pandres@dragonet.es>
7927 Adding strsep() -- Solaris 8 doesn't have it.
7929 * configure.in: Test it.
7930 * src/devices/grolbp/lbp.cc: Add code.
7932 2000-03-05 Werner LEMBERG <wl@gnu.org>
7934 * src/roff/troff/div.cc (macro_diversion::output,
7935 top_level_diversion::output): Fixing an incompatibility with
7936 original troff: \x'0' updates the .a register also. Thanks to
7937 <Andries.Brouwer@cwi.nl> for pointing this out.
7938 * doc/groff.texinfo: Document it.
7940 * Makefile.in: Create Makefile.dep if necessary before calling the
7941 submake process to avoid warning about nonexistent file.
7943 * NEWS, PROJECTS: Updated.
7945 2000-03-04 Werner LEMBERG <wl@gnu.org>
7947 * tmac/troffrc: Add tmac.lbp.
7949 2000-03-03 Francisco Andrés Verdú <pandres@dragonet.es>
7951 * tmac/tmac.lbp: New file.
7952 * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
7955 2000-03-03 Werner LEMBERG <wl@gnu.org>
7957 * Makefile.in: Fixing $(subdir).
7959 * README, NEWS: Small fixes.
7961 * test-groff: Adding path to grolbp.
7963 * configure.in: The (new) file src/xditview/Imakefile.in will be
7964 also configured -- it is now possible to build gxditview in a
7965 directory different from $srcdir.
7967 2000-03-02 Blake McBride <blake@florida-software.com>
7969 * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
7971 * MORE.STUFF: Added website of bell labs and info about plot2dev.
7973 2000-03-01 Colin Phipps <crp22@cam.ac.uk>
7975 * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
7978 2000-02-29 Werner LEMBERG <wl@gnu.org>
7980 Adding GNU getopt to the groff distribution.
7982 * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
7984 * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
7985 * aclocal.a4: Remove GROFF_GETOPT function.
7986 * configure.in, Makefile.in, PROBLEMS: Update.
7987 * src/include/lib.h: Replace getopt tests with getopt.h.
7988 * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
7990 * doc/groff.texinfo: Further checking/updating. Adding more index
7993 * man/groff_out.man: Fix nroff mode activation (for emacs).
7994 * man/groff_font.man: Add missing ligature.
7996 2000-02-28 Werner LEMBERG <wl@gnu.org>
7998 * doc/groff.texinfo: Further checking/updating. Adding more index
8001 * src/devices/grolbp/grolbp.man: Added a comment line at the
8002 beginning of the file (similar to shell scripts) which indicates
8003 that `tbl' should be used as a preprocessor.
8005 2000-02-27 Blake McBride <blake@florida-software.com>
8007 Adapting groff to MS Visual C++ 6.0 compiler (tested with
8008 Windows NT 4.0). Uses _MSC_VER define where necessary.
8010 * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
8011 * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
8012 * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
8013 src/include/lib.h, src/libs/libgroff/errarg.cc,
8014 src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
8015 src/preproc/refer/label.y, src/preproc/refer/label.cc,
8016 src/roff/groff/pipeline.c, src/roff/troff/column.cc,
8017 src/roff/troff/div.cc, src/roff/troff/env.cc,
8018 src/roff/troff/input.cc, src/roff/troff/node.cc,
8019 src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
8020 if_to_a() to avoid name clashes.
8021 * src/include/posix.h: Don't use unistd.h.
8022 * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
8023 clause for integrating non-Unix xtmpfile() code.
8024 * src/roff/troff/input.cc: Adding `public' keyword to macro_header
8025 structure; use "rt" for popen() in pipe_source(); add getpid()
8027 * src/roff/troff/node.cc: Use special versions of popen() in
8028 real_output_file() and pclose() in ~real_output_file().
8030 2000-02-27 Werner LEMBERG <wl@gnu.org>
8032 Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
8033 LBP-8 series laser printers). This code has been contributed by
8034 Francisco Andrés Verdú <pandres@dragonet.es>.
8036 * src/devices/grolbp/*: The grolbp output device.
8037 * font/devlpb/*: The font description files.
8038 * Makefile.in: Add grolpb and devlbp subdirectories.
8040 * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
8041 src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
8044 * doc/groff.texinfo: Further checking/updating. Adding more index
8049 * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
8051 * man/groff_font.man: Adding info about obsolete DESC keywords.
8052 * src/devices/grolj4/grolj4.man: Documenting additional DESC
8055 2000-02-26 Werner LEMBERG <wl@gnu.org>
8057 * src/preproc/grn/grn.man: Added info about the gremlin file format
8058 (contributed by Daniel Senderowicz <daniel@synchrods.com>).
8060 2000-02-25 Werner LEMBERG <wl@gnu.org>
8062 * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
8063 friends to be non-integer.
8065 * src/preproc/grn/grn.man: Document it.
8067 * doc/groff.texinfo: Further checking/updating. Adding more index
8070 2000-02-24 Werner LEMBERG <wl@gnu.org>
8072 * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
8073 line thicknesses to be integer multiples of this value.
8075 * src/preproc/grn/grn.man: Commenting out the -s option -- the
8076 corresponding code doesn't work (yet).
8078 * doc/groff.texinfo: Further checking/updating. Adding more index
8081 2000-02-23 Werner LEMBERG <wl@gnu.org>
8083 * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
8084 specify line thickness instead of base units. The new default
8085 values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
8086 thick lines respectively.
8088 Removed unused variable `prevval'.
8090 * src/preproc/grn/grn.man: Updated.
8092 2000-02-22 Werner LEMBERG <wl@gnu.org>
8094 * src/preproc/grn/main.cc: Slight formatting.
8096 * src/roff/groff/groff.man: Formatting fix.
8097 * src/preproc/grn/grn.man: Ditto.
8099 * src/roff/grog/grog.pl: Fixing two embarassing bugs.
8101 * doc/groff.texinfo: Further checking/updating.
8103 2000-02-21 Werner LEMBERG <wl@gnu.org>
8105 * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
8107 * test-groff: Added grn subdir to path.
8109 * doc/groff.texinfo: Some restructing and other small improvements.
8111 * src/roff/groff/groff.cc (help): Fixed info string.
8113 2000-02-20 Werner LEMBERG <wl@gnu.org>
8115 * doc/meref.me: Fix description of .GS request.
8117 * src/roff/troff/troff.man: Fixing typo.
8119 Adding the `grn' preprocessor for gremlin graphic files.
8121 * src/preproc/grn/*: This is the Berkeley distribution written by
8122 David Slattengren and Barry Roitblat, adapted to groff by Daniel
8123 Senderowicz and Werner Lemberg.
8125 * doc/grnexampl.{me,g}: A sample for grn.
8127 * Makefile.in: Added subdirectory entry for grn.
8129 * src/roff/groff/groff.cc: Added support for grn. It can be now
8130 called with the switch `-g'.
8132 * src/roff/groff/groff.man: Updated.
8134 * src/roff/grog/grog.{man,pl,sh}: Updated.
8138 2000-02-11 Gaius Mulley <gaius@glam.ac.uk>
8140 * src/include/lib.h: Added xtmptemplate and made xtmpfile
8141 parametrically polymorphic.
8143 * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
8144 and the alterations to xtmpfile.
8145 xtmpfile can be requested to return the filename created
8146 and asked not to unlink the temp file. The default behaviour
8147 if parameters are absent is exactly the same as before.
8149 2000-02-11 Abramo Bagnara <abramo@alsa-project.org>
8151 A new request `length' is available which returns the length of a
8152 string in a number register:
8154 * src/roff/troff/input.cc (length_macro): Implement it.
8155 * src/roff/troff/input.cc (init_input_requests): Register it.
8157 2000-02-11 Werner LEMBERG <wl@gnu.org>
8159 * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
8160 of the `substring' request.
8162 * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
8165 * src/roff/troff/TODO, NEWS: Updated.
8167 2000-02-09 Werner LEMBERG <wl@gnu.org>
8169 * src/roff/groff/groff.man: Added an example.
8171 2000-02-06 Werner LEMBERG <wl@gnu.org>
8173 I've considerably modified the directory structure of the
8174 distribution to get a more vertical layout. For example, the number
8175 of top level directories has been reduced from 42 to 6.
8177 As a consequence, many changes, especially to the makefiles, were
8180 * The makefile variables `top_builddir' and `top_srcdir' have been
8181 introduced. Virtually all relative paths have been replaced with
8182 absolute ones using these two variables.
8184 * Dependencies (in the files `Makefile.dep') are no longer part of
8185 the distribution. Instead, they are created during a `make install'
8186 in the build directory.
8188 * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
8189 make `top_srcdir' and `top_builddir' absolute.
8193 * Man pages now depend on the files `VERSION' and `REVISION'.
8195 * The added shell script `mkinstalldirs' will replace `mkdir' in
8198 * VERSION: Version number increased to 1.16.
8200 2000-02-04 Werner LEMBERG <wl@gnu.org>
8202 * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
8204 * Makefile.in: Removed $(tmac_m) since it is no longer needed
8205 (after an update of the mm stuff).
8207 * troff/Makefile.sub (majorminor.cc): Fix dependencies.
8209 2000-02-03 Werner LEMBERG <wl@gnu.org>
8211 The .psbb request will now also accept Mac PS images (i.e. using LF
8212 as the EOL character).
8214 * troff/input.cc (ps_get_line): New function, taken from psrm.cc
8215 (with slight modifications).
8216 * troff/input.cc (do_ps_file): Use it.
8218 * test-groff: Add grohtml and grolj4 output devices to PATH.
8220 2000-01-30 Werner LEMBERG <wl@gnu.org>
8222 * NEWS, MORE.STUFF: Updated.
8224 2000-01-30 Cary D. Renzema <caryr@dollar.mxim.com>
8226 Add the `srand' command to pic.
8228 * pic/lex.cc, pic/pic.y: Implement it.
8229 * pic/pic.man: Document it.
8230 * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
8232 2000-01-30 Werner LEMBERG <wl@gnu.org>
8234 Add a new request `.psbb'. This does exactly what the external
8235 program psbb did. It scans a PostScript image file for a
8236 %%BoundingBox comment and extracts the bounding box values (in
8237 PostScript units) which are then stored in the four new (read-only)
8238 number registers `llx', `lly', `urx', and `ury'.
8240 This will allow the usage of the .PSPIC macro without worrying
8241 about unsafe behaviour of groff, i.e., it will work without the
8242 `-U' switch of groff.
8244 * troff/input.cc: Implement it.
8245 * tmac/tmac.pspic: Use it.
8246 * troff/troff.man, grops/grops.man, NEWS: Document it.
8247 * psbb/*, Makefile.in: Remove it since it is no longer needed.
8249 This is bloody C code simply adapted from psbb.c! Any improvements
8252 2000-01-29 Werner LEMBERG <wl@gnu.org>
8254 * man/groff_font.man: Minor clarifications.
8258 2000-01-28 Werner LEMBERG <wl@gnu.org>
8260 * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
8262 2000-01-28 Gaius Mulley <gaius@glam.ac.uk>
8264 * man/groff_font.man: Brought up to date regarding tcommand
8266 * libgroff/font.cc: Handle everything after `--' as a comment
8268 * devps/*: Added comment delimiter inside devps font files.
8270 2000-01-28 Werner LEMBERG <wl@gnu.org>
8272 * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
8273 \fC...\fP (which now works as expected).
8275 * troff/troff.man: Fix typo.
8277 2000-01-27 Gaius Mulley <gaius@glam.ac.uk>
8279 Completed the pass_filenames implementation in troff.
8281 * libdriver/input.cc: Will read the new `F' tcommand.
8282 * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
8283 * troff/input.cc: Use it.
8285 2000-01-26 Werner LEMBERG <wl@gnu.org>
8287 * troff/env.cc (set_font): Fix the behaviour of \fP. The previous
8288 font will now be updated even if an invalid font is selected.
8290 2000-01-24 Werner LEMBERG <wl@gnu.org>
8292 * doc/homepage.ms: Updated for new tmac.arkup.
8294 * tmac/tmac.html: Disable line breaks after hyphen-like characters.
8296 * tmac/tmac.arkup: Cleanup.
8298 Added `\&' to .HTML macro to `leave vertical mode', so to say.
8300 Removed obsolete .LINK macro completely.
8302 The macros .URL, .FTP, and .MAILTO now accept a third argument which
8303 will be immediately appended to the second argument (to be used with
8304 punctuation, for example).
8306 Disabled .CDFTP macro temporarily for security reasons.
8308 * tmac/groff_markup.man: Complete revision for latest changes in
8309 tmac.arkup -- note that it does not yet format correctly with
8312 2000-01-23 Bruno Haible <haible@clisp.cons.org>
8314 * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
8315 * devutf8/R.proto: Add mappings for wp, lh, rh.
8316 * devutf8/NOTES: Updated.
8318 2000-01-23 Werner LEMBERG <wl@gnu.org>
8320 * doc/groff.texinfo: Updated version/copyright info.
8322 2000-01-21 Gaius Mulley <gaius@glam.ac.uk>
8324 Added support for two new directives in device descriptions:
8325 `pass_filenames' (to pass the input file name to the output device)
8326 and `use_charnames_in_special' (to support e.g. accented characters
8327 in the `X' request).
8329 * include/font.h, troff/charinfo.h: Declare it.
8331 * libgroff/font.cc, libgroff/fontfile.cc: Set it.
8333 * devhtml/DESC: Use it.
8335 * troff/input.cc: New function encoded_char.
8337 * troff/token.h: Add test for `specialness'.
8339 2000-01-21 Werner LEMBERG <wl@gnu.org>
8341 * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
8342 mistake from the list of files to be installed.
8344 2000-01-18 Werner LEMBERG <wl@gnu.org>
8346 * README: Added info how to apply patches.
8348 2000-01-15 Jan Echternach <echter@informatik.uni-rostock.de>
8350 * troff/node.cc (ligature_note::operator delete): Fix g++ warning.
8352 2000-01-15 Gaius Mulley <gaius@glam.ac.uk>
8354 * troff/input.cc: Add support for troffrc-end.
8356 * tbl/main.cc: Altered to issue table-start and table-end special
8357 characters if using the html device.
8359 * devhtml/*: Modified font files to incorporate html encoding of
8362 * tmac/groff_markup.man: New file documenting tmac.arkup.
8364 * tmac/troffrc-end: New file. This is invoked after all user
8365 specified macros. Currently used by the html device to include
8366 tmac.html. Thus no need for users to specify -mhtml anymore.
8368 * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
8369 (MAN7): Add groff_markup.man.
8371 * tmac/tmac.an, tmac/tmac.html: Small html updates.
8373 * tmac/troffrc: tmac.arkup will now be called for the html device.
8375 * libgroff/font.cc, libgroff/font.h: Altered to include reading of
8376 extra device specific information about fonts.
8378 * doc/homepage.ms: New file. It is an example how an HTML home page
8379 could look like with grohtml.
8381 * doc/Makefile: Add homepage.ms. Remove rule for pic.html.
8383 2000-01-12 Bruno Haible <haible@clisp.cons.org>
8385 * devutf8/R.proto: Add mappings for ti, Fn, st, an. Change mappings
8388 * devutf8/NOTES: Updated.
8390 2000-01-08 Bruno Haible <haible@clisp.cons.org>
8392 * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
8393 eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
8394 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
8395 libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
8396 pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
8397 tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
8398 troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
8399 troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
8402 * troff/node.cc (bracket_node::copy): Initialize last to NULL.
8404 2000-01-12 Fabrizio Polacco <fab@prosa.it>
8406 grolj4: Paper size will be searched case-insensitively.
8408 * include/lib.h: Add check for strcasecmp().
8409 * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
8410 * configure.in: Check for strcasecmp().
8412 2000-01-11 Werner LEMBERG <wl@gnu.org>
8414 * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
8417 2000-01-10 Werner LEMBERG <wl@gnu.org>
8419 * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
8422 Add a new read-only register, `.Y', which contains the groff
8425 * troff/input.cc (init_input_requests): Define it.
8426 * troff/Makefile.sub (majorminor.cc): Define `revision' string.
8427 * doc/groff.texinfo, troff/troff.man: Document it.
8429 * libgroff/Makefile.sub (version.cc): Add definition of
8430 `Version_string[]', consisting of `<major>.<minor>.<revision>'
8431 * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
8432 grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
8433 refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
8434 troff/input.cc, pfbtops/pfbtops.c: Use it.
8436 2000-01-10 Fabrizio Polacco <fab@prosa.it>
8438 Add a revision scheme to the groff package.
8440 * REVISION: New file.
8441 * libgroff/Makefile.sub (version.cc): Use it to define
8442 `revision_string[]'.
8443 * grops/psrm.cc: Use revision_string (converted to an unsigned
8444 integer) in constructor of resource_manager.
8446 2000-01-10 Bruno Haible <haible@clisp.cons.org>
8448 * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
8450 * Makefile.in (DEVDIRS): Add devutf8.
8451 * grotty/tty.cc: Include device.h.
8452 (glyph): Change type of `code' to `unsigned int'.
8453 (tty_printer): New field is_utf8. Constructor takes device argument.
8454 (tty_printer::tty_printer): If device if `utf8', set is_utf8.
8455 (tty_printer::add_char): Change type of first arg to `unsigned int'.
8456 (tty_printer::put_char): New function.
8457 (tty_printer::end_page): Use put_char() instead of ::putchar().
8458 (make_printer): Pass device to tty_printer constructor.
8459 * nroff.sh: Determine default device by calling 'locale'. As a
8460 fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
8461 Recognize UTF-8 locales.
8462 * tmac/eqnrc: Recognize utf8 like latin1.
8463 * tmac/troffrc: Device utf8 needs tmac.tty.
8465 2000-01-07 Werner LEMBERG <wl@gnu.org>
8467 * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
8469 2000-01-07 Paul Eggert <eggert@twinsun.com>
8471 Add a new predefined writeable number register, `year',
8472 which contains the current year.
8474 * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
8475 * tmac/tmac.s: Use it.
8476 * troff/input.cc (init_registers): Initialize it.
8478 2000-01-06 Werner LEMBERG <wl@gnu.org>
8480 * PROBLEMS: Fixed typo.
8482 2000-01-04 Paul Eggert <eggert@twinsun.com>
8484 * PROBLEMS: Add Y2k advice for the yr number register.
8486 2000-01-03 Paul Eggert <eggert@twinsun.com>
8488 * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
8490 2000-01-02 Werner LEMBERG <wl@gnu.org>
8492 * tmac/tmac.arkup: Slight modification of macros to provide better
8493 appearance for non-HTML formats.
8495 2000-01-01 Charles Levert <charles@comm.polymtl.ca>
8497 * soelim/soelim.cc (include_path_append): realloc(NULL, n)
8498 does not automatically translate to malloc(n) on all OSes
8499 (e.g., SunOS) so do it explicitly. Also, check the returned
8502 2000-01-01 Werner LEMBERG <wl@gnu.org>
8504 * tmac/tmac.arkup: Added .LINE macro. Some formatting.
8506 * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
8507 expects this variable
8509 2000-01-01 Gaius Mulley <gaius@glam.ac.uk>
8511 * doc/Makefile: Added instructions to create HTML and text
8512 versions of some files.
8514 1999-12-31 Werner LEMBERG <wl@gnu.org>
8516 * Updated INSTALL.gen.
8518 * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
8519 better resp. correctly with non-HTML devices.
8521 Version 1.15 released
8522 =====================
8524 1999-12-28 Werner LEMBERG <wl@gnu.org>
8526 * NEWS, VERSION: Changed to 1.15
8528 1999-12-27 Paul Eggert <eggert@twinsun.com>
8530 * nroff/nroff.man: -S is safer, not safe.
8532 * groff/groff.cc (main): Use `safer', not `safe', in variable
8533 names. This does not change the behavior.
8535 * troff/input.cc (main): Likewise.
8537 * nroff/nroff.sh: Likewise.
8539 * troff/input.cc (prepend_string): New function.
8540 (main): Prepend -msafer, so that we check macro libraries for
8543 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
8545 Version 1.14 released
8546 =====================
8548 1999-12-26 Werner LEMBERG <wl@gnu.org>
8550 * NEWS, VERSION: Changed to 1.14.
8552 1999-12-24 Werner LEMBERG <wl@gnu.org>
8554 * refer/refer.cc: Fixing the last fix.
8556 Version 1.13 released
8557 =====================
8559 1999-12-23 Werner LEMBERG <wl@gnu.org>
8561 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
8566 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
8568 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
8569 document conventions, the version number must be a real.
8571 Version 1.12.1 released
8572 =======================
8574 1999-12-22 Werner LEMBERG <wl@gnu.org>
8576 * VERSION: Changed to 1.12.1.
8578 1999-12-22 Alan Rooks <arooks@istar.ca>
8580 * refer/refer.cc (do_file): Slight modification to satisfy the
8581 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
8584 1999-12-20 Werner LEMBERG <wl@gnu.org>
8586 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
8589 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
8590 list of unsafe requests.
8592 * pic/pic.man: Fixed a typo.
8594 * man/groff_out.man: Fixed a typo.
8596 1999-12-18 Werner LEMBERG <wl@gnu.org>
8598 * Makefile.in: Doc fixes.
8600 1999-12-17 Fabrizio Polacco <fab@prosa.it>
8602 * groff/groff.cc: Missing `U' option added to getopt().
8604 * troff/troff.man: Missing `U' option added to synopsis.
8606 Version 1.12 released
8607 =====================
8609 1999-12-14 Werner LEMBERG <wl@gnu.org>
8611 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
8614 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
8615 with the more appropriate terms `safer' and `unsafe'.
8617 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
8618 sys_nerr and sys_errlist[].
8620 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
8622 * pic/pic.y, pic/pic.cc: Added check for fmod().
8624 1999-12-13 Werner LEMBERG <wl@gnu.org>
8626 * VERSION: Changed to 1.12.
8628 Here some patches from various sources; most of them taken from
8629 the Debian distribution.
8631 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
8632 tmac/Makefile.sub: New files copied directly from the NetBSD
8633 distribution. Probably, some additional adaptation later on is
8636 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
8639 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
8640 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
8641 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
8642 (`-S') is now the default.
8644 * README, NEWS: Updated.
8646 1999-12-09 Werner LEMBERG <wl@gnu.org>
8648 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
8650 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
8652 1999-12-06 Werner LEMBERG <wl@gnu.org>
8654 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
8655 grief than relief today. Additionally, it is against the GNU
8658 * configure: Recreated.
8660 1999-12-05 Werner LEMBERG <wl@gnu.org>
8662 * configure.in: Added GROFF_LIBM.
8664 * configure: Recreated.
8666 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
8669 * Makefile.in: Added definition of $(LIBM).
8671 * Makefile.comm (LIBM): Removed.
8673 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
8675 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
8677 * doc/Makefile: Added rule for generation pic.html.
8679 (clean): Files produced by grohtml will be removed also.
8681 * doc/pic.ms: Small fix.
8683 * tmac/tmac.html: Fixed suppression of headers.
8685 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
8687 * tmac/tmac.html: Fixing horizontal arrows.
8689 Turning off hyphenation.
8691 * tmac/tmac.an: Improved support for grohtml; better indentation,
8694 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
8696 * tmac/tmac.arkup: Added CDFTP macro
8698 * tmac/tmac.html: All headers are turned off for ms, me, and mm
8701 * tmac/troffrc: Some additions for HTML stuff.
8703 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
8705 * tmac/tmac.html: Small changes.
8707 1999-09-26 Werner LEMBERG <wl@gnu.org>
8709 * doc/groff.texinfo: Minor fixes.
8711 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
8713 * devhtml/TR: Changed spacewidth to 3.
8715 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
8717 * tmac/tmac.html: Moved markup macros to tmap.arkup.
8719 * tmac/tmac.arkup: New file.
8721 * grohtml/ChangeLog: New file.
8723 1999-09-16 Werner LEMBERG <wl@gnu.org>
8725 * doc/groff.texinfo (Common Features): Added Copying chapter.
8726 Changed format to @smallbook.
8728 1999-09-15 Werner LEMBERG <wl@gnu.org>
8730 * NEWS: Added info about groff.texinfo.
8732 * doc/groff.texinfo: Will now compile (using texi2dvi) without
8735 1999-09-14 Werner LEMBERG <wl@gnu.org>
8737 * groff/groff.man: More updates.
8739 1999-09-13 Werner LEMBERG <wl@gnu.org>
8741 * doc/groff.texinfo: New file. This manual is still very
8742 rudimentary. It has been originally contributed by Trent
8743 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
8746 * INSTALL: Added information about the `doc' subdir
8748 * troff/troff.man: Minor fixes.
8750 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
8753 * troff/input.cc (usage): Added missing `-ffam' to usage message.
8755 * Makefile.in (dist): groff-$(version).tar.gz must be removed
8756 also, otherwise it is included itself in another call of `make
8759 * groff/groff.cc (synopsis): Removed superfluous space.
8761 * PROJECTS, PROBLEMS, NEWS: Updated.
8763 * VERSION: Updated to 1.12beta.
8765 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
8767 * README: Updated: Included documentation about CVS repository,
8768 mailing lists, and daily snapshots.
8770 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
8772 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
8774 * tmac/tmac.an: If the tag didn't fit into the space that the
8775 macro `TP' specifies, the rest of the tag went into the space for
8778 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
8780 * grolj4/lj4.cc: Added duplex printing (option `-d').
8782 * grolj4/grolj4.man: Document duplex printing.
8784 1999-09-12 Werner LEMBERG <wl@gnu.org>
8786 * doc/Makefile (pic.ps): Fixed rule which caused problems with
8787 non-GNUish sed programs.
8789 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
8792 * configure.in (LIBS): Added `-lc'
8794 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
8796 * pic/tex.cc (solid_arc): Casting M_PI to double.
8798 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
8800 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
8801 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
8802 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
8804 * groff/groff_man.man: New file. This manual page was originally
8805 written for the Debian GNU/Linux system by Susan G. Kleinmann
8808 * eqn/list.cc (list_box::compute_metrics,
8809 list_box::compute_sublist_width): Removed variable declaration to
8810 avoid shadowing warnings.
8812 * grops/psrm.cc (resource_manager::process_file): Ditto.
8814 * tfmtodit/tfmtodit.cc (main): Ditto.
8816 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
8817 to avoid shadowing warnings.
8819 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
8820 shadowing loop variable.
8822 * groff/groff.man, troff/troff.man: Added doc about grohtml.
8824 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
8826 New grohtml frontend to convert groff input to html.
8828 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
8830 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
8832 * tmac/eqnrc: Added html device.
8834 * tmac/tmac.html: New file.
8836 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
8837 (troff_output::start_picture, troff_output::finish_picture),
8838 tbl/main.cc (process_input_file):
8839 Surrounded output with `graphics_start' and `graphics_end' so that
8840 the html driver can identify non-text portions.
8842 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
8843 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
8844 grotty/tty.ps (tty_printer::set_char): Additional parameter
8847 * include/printer.h: Class printer: New function
8848 set_char_and_width; new variables (is_char_named, is_named_set,
8849 named_command, named_char_s, named_char_n) to hold information
8850 about named characters -- needed by the html driver.
8852 * libdriver/printer.cc (printer::set_ascii_char,
8853 printer::set_special_char): Use set_char_and_width.
8855 * devhtml/*: New device files for html driver.
8857 * grohtml/*: New driver grohtml.
8859 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
8861 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
8864 1999-09-11 Luke Mewburn <lukem@netbsd.org>
8866 * libgroff/string.cc (search): Small fix to test against NULL
8869 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
8871 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
8872 \b'abc') were stacked in reverse order when processed in a
8875 * troff/node.h: Added `*last' to struct `node' to make the above
8878 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
8879 The default scale for the 'f' and 't' graphics functions were 'm'
8880 rather than 'u' (i.e., no scaling).
8882 1999-09-11 Peter Miller <peterm@jna.com.au>
8884 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
8885 do_file), soelim/soelim.man: Added `-I file' option to soelim,
8886 defining include paths.
8888 * soelim/soelim.cc (include_path_append): New function.
8890 1999-09-11 Larry Jones <larry.jones@sdrc.com>
8892 * tbl/main.cc (process_options): Unix (at least Documenter's
8893 Workbench) tbl allows arbitrary non-alpha characters between
8896 1999-09-11 Paul Eggert <eggert@twinsun.com>
8898 Y2k fixes. Don't assume that the current year precedes 2000.
8900 * doc/meref.me: Add \n(y2, \n(y4.
8902 * tmac/doc-common (Yr): New number register.
8903 (Dd): Don't assume current year precedes 2000.
8905 * tmac/tmac.e (td): Likewise.
8906 (y2, y4): New number registers.
8908 * pic/pic.man: Update reference for pic paper to May, 1991
8911 1999-09-11 Werner LEMBERG <wl@gnu.org>
8913 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
8914 Removed quotation marks which prevented correct expansion of
8917 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
8919 1999-09-10 Werner LEMBERG <wl@gnu.org>
8921 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
8924 * Removed configure.old.
8926 1999-08-31 Werner LEMBERG <wl@gnu.org>
8928 * VERSION: Updated to 1.11.1
8930 1999-05-27 Werner LEMBERG <wl@gnu.org>
8932 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
8934 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
8935 added quotations around $(tmac_wrap) to avoid syntax error if
8938 * configure: Newly generated using autoconf 2.13.
8940 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
8942 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
8944 * README, PROJECTS, NEWS, INSTALL, VERSION,
8945 doc/Makefile. doc/pic.ms, groff/groff.man:
8946 Prepare for 1.11 release. No code changes.
8947 Documentation for pic added (doc/pic.ms).
8949 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
8951 * Version 1.10 released.
8953 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
8955 * afmtodit/afmtodit.pl: Avoid comment on first line.
8957 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
8959 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
8960 * configure.in: Call it.
8962 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
8963 (distfiles): Doesn't depend on config.log or config.cache.
8965 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
8967 * grog/grog.sh: Use print "" rather than print in END rule.
8969 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
8971 * tbl/main.cc (process_data): Don't give error for excess data
8972 entries that are comments.
8974 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
8976 * tbl/main.cc (process_data): Fix case where new for-scope rules
8977 silently change meaning of code.
8979 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
8981 * troff/env.cc (hyphenate): Loop over all consecutive sequences
8982 of non-zero hyphenation codes.
8984 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
8986 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
8988 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
8990 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
8992 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
8994 * tmac/tmac.andoc: Make it work in compatibility mode.
8996 * refer/token.h (token_info::is_range_sep): New function.
8997 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
8998 * refer/ref.cc (reference::output): More sophisticated check for
9001 * devps/prologue.ps (MANUAL): New procedure.
9002 * grops/ps.cc (main): New -m option.
9003 (usage): Include -m.
9004 (ps_printer::~ps_printer): Implement -m.
9006 * aclocal.m4 (GROFF_G): New macro.
9007 * configure.in: Call it.
9008 * Makefile.in (g): Provided by configure.
9010 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
9012 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
9015 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
9016 (tmac_m, tmac_s): Deleted.
9017 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
9018 tmac_s_prefix): New variables.
9019 (MDEFINES): Change accordingly.
9020 * Makefile.comm (.man.n): Use new TMAC_* variables.
9021 * configure.in (GROFF_TMAC): Call.
9022 * aclocal.m4 (GROFF_TMAC): Define.
9023 * tmac/Makefile.sub (stamp_wrap): New target.
9024 (install_data, uninstall_sub): Handle macro wrapping.
9026 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
9028 * tbl/main.cc (main): Ignore -T option.
9030 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
9032 * devlj4/generate/special.map: Add definition of \(nb.
9034 * tmac/tmac.dvi: Add definition of \(nb.
9036 * troff/dictionary.c (dictionary::dictionary): association::v gets
9037 initialized by association::association.
9039 * tmac/Makefile.sub: Avoid using temporary files when installing.
9041 * troff/env.cc (environment::set_font): Make bad font number a
9044 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
9046 * Makefile.in (datadir): Use share rather than lib.
9048 * groff/groff.cc (basename): Rename to xbasename.
9050 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
9052 * Makefile (CCLIBS): Don't use.
9053 * Makefile.ccpg: Likewise.
9055 * acgroff.m4: Rename to...
9056 * aclocal.m4: Modify extensively for autoconf 2.
9057 * configure.in: Likewise.
9058 * Makefile.in: Likewise.
9060 * groff/pipeline.c (const): Declare as empty if __STDC__ not
9062 (xstrsignal): Check for definition of NSIG. Conditionalize
9063 on SYS_SIGLIST_DECLARED. Make return type const.
9065 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
9067 * troff/input.cc (interpolate_macro): Rephrase missing space
9070 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9072 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
9073 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
9074 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
9075 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
9076 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
9077 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
9078 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
9079 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
9080 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
9081 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
9082 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
9085 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
9087 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
9089 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
9091 (macro_iterator::macro_iterator): Add additional argument.
9093 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
9095 * troff/div.cc (vertical_size::vertical_size): In place of integer
9096 specifying line spacing use cunits specifying post vertical
9098 (macro_diversion::output, top_level_diversion::output): Likewise.
9099 * troff/div.h: Change declarations accordingly.
9100 * troff/env.cc (pending_output_line): Replace ls field by post_vs
9102 (pending_output_line::pending_output_line,
9103 pending_output_line::output, environment::output,
9104 environment::output_line, environment::output_title,
9105 environment::hyphenate_line): In place of
9106 integer specifying line spacing use cunits specifying post vertical
9108 (environment::environment): Add post_vertical_spacing and
9109 prev_post_vertical_spacing arguments.
9110 (environment::get_post_vertical_spacing): New function.
9111 (environment::total_post_vertical_spacing): New function.
9112 (environment::post_vertical_spacing): New function.
9113 (init_env_requests): Initialize pvs request and .pvs register.
9114 * troff/env.h: Change declarations.
9116 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
9118 * tmac/tmac.pspic: Immediately remove the temporary file.
9120 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
9122 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
9123 height is specified.
9125 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
9127 * tbl/table.c (struct vertical rule, class table_entry): Use int
9128 not short for start_row and end_row.
9130 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
9132 * troff/input.cc (trapping_blank_line, blank_line_macro): New
9134 (diverted_space_node::reread, process_input_stack): Call
9135 trapping_blank_line() rather than blank_line().
9136 (init_input_requests): Bind "blm" to blank_line_macro().
9138 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
9140 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
9142 * troff/env.cc (environment::possibly_break_line): Require that
9143 width total excluding width of final space node be greater than
9144 the target text length.
9146 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
9148 * troff/node.cc (kern_pair_node::vertical_extent): New function.
9150 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
9152 * troff/node.cc (charinfo_node): New class.
9153 (glyph_node, composite_node): Derive from charinfo_node. Change
9154 member functions accordingly.
9156 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
9158 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
9160 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
9162 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
9164 * devps/generate/textmap (notsubset): Add.
9166 * tmac/tmac.a4: New file.
9168 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
9170 * pic/main.cc (had_parse_error): New variable.
9171 (do_picture, do_whole_file): Set had_parse_error if yyparse()
9173 (main): Return 1 if had_parse_error is true.
9175 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
9177 * grolj4/lj4.cc (main): Avoid use of strtoul.
9179 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
9181 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
9182 iso_8859_1 or $LESSCHARSET is latin1.
9184 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
9186 * hpftodit: New directory.
9187 * Makefile.in (CCPROGDIRS): Add hpftodit.
9188 * devlj4/generate: New directory.
9190 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
9192 * configure.in: Don't use AC_VFORK.
9193 * groff/pipeline.c (run_pipeline): Use fork() always.
9195 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
9197 * grops/ps.cc (main): Use %1 not %s in error message for -w.
9199 * Makefile.in (CCPROGDIRS): Add grolj4.
9200 (DEVDIRS): Add devlj4.
9201 * grolj4, devlj4: New directories.
9202 * tmac/troffrc: Handle lj4.
9203 * tmac/tmac.lj4: New file.
9205 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
9207 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
9209 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
9211 * troff/input.cc (do_if_request): At end of second string, switch
9212 environments before getting next token.
9214 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
9216 * devps/psstrip.sed: Split rule that strips whitespace on either
9219 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
9221 * troff/node.h (font_family::make_definition): Add return value to
9222 declaration. * troff/symbol.h (symbol::operator==,
9223 symbol::operator!=): Likewise.
9225 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
9227 * groff/groff.cc (main, help, synopsis): Handle -S.
9228 (possible_command::insert_arg): New function.
9230 * tmac/tmac.safer: New file.
9231 * tmac/msafer.man: New file.
9232 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
9234 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
9236 * pic/pic.h, pic/main.cc (safer_flag): New variable.
9237 * pic/pic.y (placeless_element): Avoid unsafe operations if
9238 `safer_flag' is set.
9239 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
9241 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
9243 * eqn/lex.cc (get_token): Put call to add_context() in block to
9244 work around Sun C++ 4.0 bug.
9246 * include/stringclass.h (operator +): Use ?: instead of `if' to
9247 work around Sun C++ 4.0 bug.
9249 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
9251 * tbl/main.cc (process_format): Accept - as a synonym for the _
9254 * libbib/index.cc (minus_one): Don't declare as const.
9256 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
9258 * troff/input.cc (get_char_for_escape_name): Push back a newline.
9260 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
9262 * troff/input.cc (write_macro_request): New function.
9263 (init_input_requests): Bind write_macro_request to writem.
9265 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
9267 * tmac/tmac.s (@EN): Turn filling back on even if there was no
9270 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
9272 * tmac/tmac.s (@TS): Renamed from TS.
9273 (TS): Call LP then TS again.
9274 (cov*ab-init): Alias @TS to TS.
9276 * tmac/tmac.s: Allow QP or RS to initialize.
9278 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
9279 Move initializations of PS and LL here.
9280 (par@init): Don't initialize HY. Avoid changing environment 0.
9281 (par*env-init): Don't all par@reset.
9283 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
9285 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
9287 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
9289 * Makefile.in (MDEFINES): Add LDFLAGS.
9290 (LDFLAGS): Add definition line.
9292 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
9294 * troff/input.cc (get_optional_char): Split off error check into...
9295 (check_missing_character): New function.
9296 * troff/token.h: Declare it.
9297 * troff/env.cc (margin_character): Don't call get_optional_char.
9298 Only call tok.next() after making the node.
9300 * include/lib.h (getopt): Make 2nd argument char *const *.
9302 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
9304 * nroff/conftest.sh: Deleted.
9306 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
9308 * pic/make-dos-dist: Deleted.
9310 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
9312 * devps/psstrip.sed: Strip comments before stripping trailing
9315 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
9317 * Version 1.09 released.
9319 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
9321 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
9323 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
9325 * libgroff/font.cc (font::load_desc): Fix typo in error message.
9327 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
9329 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
9330 about returning without a value.
9332 * troff/charinfo.h (charinfo::get_special_translation): Cast
9333 TRANSLATE_NONE to int.
9335 * refer/token.cc (lookup_token, store_token): Remove bogus loop
9336 test. Fix test so that it works with n unsigned.
9338 * pic/pic.y (defaults_table): Fully bracket initializer.
9339 * pic/lex.cc (lookup_keyword): Likewise.
9340 * eqn/lex.cc (token_table, def_table): Likewise.
9341 * eqn/box.cc (param_table): Likewise.
9342 * troff/input.cc (warning_table): Likewise.
9343 * libgroff/font.cc (table): Likewise.
9344 * grops/ps.cc (ps_printer::special): Likewise.
9345 * grops/psrm.cc (resource_manager::process_file): Likewise.
9346 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
9347 * refer/command.cc (command_table): Likewise.
9348 * addftinfo/addftinfo.cc (param_table): Likewise.
9350 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
9351 about temp's being unused.
9352 (unused): New function.
9354 * groff/pipeline.cc: Declare c_fatal.
9356 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
9359 * libbib/index.cc (index_search_item::load): Prevent compiler
9360 warnings about fd_closer's being unused.
9361 (unused): New function.
9363 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
9365 * troff/input.cc (copy_mode_error): Make `prefix' static.
9368 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
9370 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
9371 HAVE_CC_OSFCN_H and modify accordingly.
9373 * troff/input.cc (init_charset_table): radicalex overlaps
9376 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
9377 udodo!hans@relay.NL.net).
9378 * groff/configure.in: Call it.
9380 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
9381 * groff/configure.in: Call it.
9382 * include/lib.h: Conditionalize declaration of pclose.
9384 * troff/div.cc (last_page_number): New global variable.
9385 (top_level_diversion::begin_page): Exit if we just printed the
9387 * troff/div.h (last_page_number): Declare it.
9388 * troff/input.cc (parse_output_page_list): Set last_page_number.
9390 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
9391 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
9392 tmac/tmac.X: Likewise.
9393 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
9394 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
9396 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
9398 * tmac/doc-ditroff (hK): Remove groff specific code which
9399 prevented page-breaks between separate manual entries. If this is
9400 the first page, don't set the page number to 1.
9402 * acgroff.m4 (GROFF_POSIX): New macro.
9403 * configure.in: Use it.
9405 * troff/node.cc (class real_output_file,
9406 real_output_file::real_output_file,
9407 real_output_file::~real_output_file): Conditionalize use of
9408 popen/pclose on POPEN_MISSING.
9409 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
9410 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
9411 (pipe_source): Similarily.
9413 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
9415 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
9416 presence of declarations by trying to compile example with
9417 conflicting declarations. (gcc only gives a warning for missing
9420 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
9422 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
9423 (from Ulrich Lauther).
9425 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
9427 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
9429 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
9431 * indxbib/indxbib.cc (write_hash_table): Add code for case where
9432 pointers and ints have different sizes.
9434 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
9436 * tmac/tmac.s (par*env-init): Call par@reset.
9438 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
9440 * tmac/tmac.s (@IP): Switch to a new environment when diverting
9442 (par*push-tag-env, par*pop-tag-env): New macros.
9444 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
9446 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
9447 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
9449 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
9450 comment. Include <time.h>.
9452 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
9454 * grops/ps.cc (is_small_h, is_small_v): Deleted.
9455 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
9458 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
9460 * troff/input.cc (read_request): Only print a prompt if reading
9461 from the terminal. Also clearerr on EOF if reading from the
9462 terminal. Declare isatty.
9464 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
9466 * refer/label.y: Rename map_t to map_func and extractor_t to
9469 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
9471 * include/assert.h: Don't use volatile.
9472 * libgroff/assert.cc: Likewise.
9474 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
9476 * troff/input.cc (abort_request): Look at character in tok before
9479 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
9481 * troff/troff.h (NO_RETURN): Deleted.
9482 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
9483 * troff/input.cc (exit_troff): Likewise
9485 * Makefile.in: Remove `Making ...' messages since GNU make now
9488 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
9490 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
9492 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
9495 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
9497 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
9499 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
9501 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
9502 MARK_REG if there was no left delimiter.
9504 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
9506 * pic/troff.cc (troff_output::text): Set line thickness to
9507 relative before outputting text.
9509 * tmac/tmac.e (@k): Don't zero ?T.
9512 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
9514 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
9516 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
9518 * troff/input.cc (decode_args): Warn about unquoted tabs (from
9521 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
9523 * troff/input.cc (ignoring): New variable.
9524 (ignore): Set ignoring during call to do_define_macro.
9525 (do_define_macro): Clear ignoring before interpolating terminating
9527 (copy_mode_error): New function.
9528 (get_char_for_escape_name, read_long_escape_name,
9529 interpolate_arg): Use copy_mode_error.
9530 (warning_table): Add WARN_IG.
9531 * troff/troff.h (WARN_IG): Declare.
9532 (WARN_TOTAL): Change accordingly.
9534 * groff/pipeline.c (strsignal): Rename to xstrsignal.
9535 * groff/groff.cc (strsignal): Delete declaration.
9537 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
9539 * troff/div.cc (page_offset): Use 'm' as default scaling.
9541 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
9543 * nroff/nroff.sh: Ignore -u.
9545 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
9547 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
9549 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
9551 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
9553 (B2): With -Tascii, leave additional vertical space before
9554 and after. Ensure that the left and right indent is restored to
9555 what it was even if the point size changes. Don't call
9556 par@finish. Change the indent, line length and title length
9557 directly. With -Tascii, make the width of the box 1n less.
9558 (B1): Remember 1n at the current point size. Don't call
9559 par@reset. Change the indent, line length and title length
9560 directly. Ensure that the temporary indent is preserved.
9561 (par*box-mark-top): Turn off no spacing mode.
9563 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
9565 * Makefile.in (dist): Use .gz suffix.
9567 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
9569 * troff/input.cc (main): Add return 0.
9570 * pic/main.cc (main): Use return instead of exit.
9571 * tbl/main.cc (main): Likewise.
9572 * eqn/main.cc (main): Likewise.
9573 * grops/ps.cc (main): Likewise.
9574 * grotty/tty.cc (main): Likewise.
9575 * groff/groff.cc (main): Likewise.
9576 * grodvi/dvi.cc (main): Likewise.
9577 * refer/refer.cc (main): Likewise.
9578 * indxbib/indxbib.cc (main): Likewise.
9579 * lkbib/lkbib.cc (main): Likewise.
9580 * soelim/soelim.cc (main): Likewise.
9581 * addftinfo/addftinfo.cc (main): Likewise.
9582 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
9583 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
9585 * troff/token.h (process_input_stack): Don't declare as static.
9586 * troff/input.cc: Likewise.
9588 * troff/node.c (invalidate_fontno): Make it a static member of
9589 class font_family. Change callers.
9590 * troff/node.c: Change declaration.
9592 * tbl/main.cc (struct input_entry_format): Add explicit public
9594 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
9595 struct double_hline_stuff): Likewise.
9596 * tbl/table.h (struct entry_format): Likewise.
9597 * pic/object.h (struct saved_state): Likewise.
9599 * include/stringclass.h: Add forward declarations of friend
9600 functions that are later declared as inline. Don't include inline
9601 specifier in friend declaration.
9603 * libgroff/lib.h: Declare popen and pclose.
9604 * acgroff.m4 (GROFF_POPEN): New macro.
9605 * configure.in: Call it.
9607 * include/lib.h (PI): New constant. Undef first if necessary.
9608 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
9609 * grops/ps.cc (degrees, radians): Likewise.
9610 * libgroff/font.cc (font::get_skew): Likewise.
9612 * grops/ps.cc (is_ascii): New function.
9613 (ps_output::put_string): Use is_ascii. Use csprint rather than
9615 (ps_printer::define_encoding): Use csspace.
9616 * libgroff/strtol.c (ISASCII): New macro.
9617 (strtol): Cast arguments to is*() and tolower() to unsigned char.
9618 Use ISASCII rather than isascii.
9619 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
9620 * libgroff/cset.cc: Likewise.
9621 * libdriver/input.cc: Include cset.h.
9622 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
9625 * refer/refer.cc (main): Use %ld rather than %d for longs.
9627 * libbib/index.cc (index_search_item_iterator::get_tag): Use
9630 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
9632 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
9634 * troff/input.cc (hyphenation_code): Skip white space between
9637 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
9639 * tbl/table.h (table::entry_list_tailp): New member.
9640 (table::table): Initialize it.
9641 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
9644 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
9646 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
9647 with negative horizontal positions. Remove casts of glyph::hpos to
9649 (USHRT_MAX): Delete definition.
9650 (SHRT_MAX, SHRT_MIN): New definitions.
9651 (glyph::hpos): Change type to short.
9652 (tty_printer::end_page): Output multiple backspaces if necessary.
9653 Remove casts of glyph::hpos to int.
9655 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
9657 * tmac/tmac.s (@RT): New definition.
9659 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
9661 * refer/refer.cc (do_file): Make sure current_filename is set when
9664 * pic/common.cc (common_output::dot_line): Handle zero length
9667 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
9669 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
9670 (par@init): Initialize \n[HY].
9672 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
9674 * troff/dictionary.cc (dictionary::remove): Continue when
9677 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
9679 * Makefile.com (.y.cc): Avoid ending up with two versions of
9682 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
9684 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
9685 (\(,C): Likewise. Also fix typo.
9687 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
9689 * lib.h: Delete extraneous semi-colon.
9691 * Add pso request: `so' from a pipe.
9692 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
9693 (file_iterator::close): New function.
9694 (file_iterator::~file_iterator, file_iterator::next_file): Use
9695 file_iterator::close.
9696 (file_iterator::backtrace): Say `process' rather than `file' when
9697 the stream is popened.
9698 (pipe_source): New function.
9699 (init_input_requests): Bind ".pso" to pipe_source.
9701 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
9703 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
9705 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
9706 digits in lower case.
9708 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
9710 * Version 1.08 released.
9712 * Makefile.in (dist): Insert || true after ln -s commands that
9715 * mm: Update to mm 1.16.
9717 * acgroff.m4 (GROFF_CSH_HACK): New macro.
9718 * configure.in: Call GROFF_CSH_HACK. Substitute for
9720 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
9722 * nroff/Makefile.sub (nroff): New target.
9723 (install_data): Install nroff.
9724 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
9725 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
9727 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
9729 * eqn/Makefile.sub (neqn): Add chmod +x.
9731 * grog/Makefile.sub (grog): Remove spurious semi-colon.
9733 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
9735 * troff/input.cc (string_iterator::string_iterator()): Initialize
9738 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
9740 * troff/div.cc (macro_diversion::space,
9741 top_level_diversion::space): Don't set high_water_mark.
9742 (macro_diversion::output, top_level_diversion::output): Don't
9743 include post line space in high water mark.
9745 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
9747 * eqn/eqn.y: Don't define YYDEBUG.
9748 * pic/pic.y: Likewise.
9750 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
9752 * tmac/tmac.e ([3): Add space after comma following editors.
9753 Change double spaces to single spaces.
9754 ([4): Change double spaces to single spaces.
9756 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
9757 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
9758 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
9759 after %!PS-Adobe- (for Newsprint).
9761 * troff/div.cc (top_level_diversion::begin_page): When
9762 before_first_page is 1, set page_number to 1.
9764 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
9766 * eqn/box.cc (box::top_level): Protect equation with \&.
9768 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
9770 * groff/groff.cc (possible_command::set_name): Delete old name.
9772 * groff/groff.cc (possible_command::~possible_command): Use
9775 * troff/node.cc (troff_output_file::begun_page): New member.
9776 (troff_output_file::troff_output_file): Initialize it.
9777 (troff_output_file::really_begin_page): Only output V command if a
9778 page has been begun.
9780 * pic/pic.y (placeless_element): Delete argument to PRINT after
9783 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
9785 * Make wrapman work.
9786 * troff/div.h (class top_level_diversion): Replace
9787 first_page_begun by before_first_page (with opposite sense).
9788 * Change first_page_begun to before_first_page inverting sense.
9789 * troff/div.cc (class nl_reg): New class.
9790 (init_div_requests): Use class nl_reg for \n(nl.
9791 (top_level_diversion::begin_page): Don't call
9792 output_file::begin_page if before_first_page is 2;
9793 reset before_first_page afterwards. If have_next_page_number is
9794 false, then always increment page_number.
9795 * tmac/tmac.an: Set traps within TH rather than at the top-level.
9796 Restore compatibility mode after loading, and then disable
9797 compatibility mode in TH.
9799 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
9801 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
9803 * troff/node.h (output_file::trailer): Declare.
9804 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
9805 * troff/node.cc (output_file::trailer): New function.
9806 (troff_output_file::~troff_output_file): Move most code into...
9807 (troff_output_file::trailer): New function.
9808 (class troff_output_file): Delete page_length member. Declare
9810 (troff_output_file::really_begin_page): Use current page length
9811 for final V command.
9813 * tbl/main.cc (struct options): New decimal_point_char member.
9814 (options::options): Initialize this.
9815 (process_options): Implement decimalpoint option.
9816 (process_data): Pass decimal_point_char option to table::table.
9817 * tbl/table.h (class table): New decimal_point_char member.
9818 (table::table): Add additional argument.
9819 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
9820 second argument specifying decimal point character. Use this
9822 (table::table): Initialize decimal_point_char.
9823 (table::add_entry): Change call to find_dot.
9825 * troff/input.cc (get_copy, token::next): Implement \V.
9826 (interpolate_environment_variable): New function.
9828 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
9830 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
9831 * pic/pic.y: Likewise.
9833 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
9835 * refer/ref.cc (reference::insert_field, reference::delete_field):
9837 * troff/number.cc (parse_term): Likewise.
9839 * acgroff.m4 (GROFF_PROG_YACC): New macro.
9840 * configure.in: Use GROFF_PROG_YACC.
9842 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
9844 * Makefile.in (OPTIMIZE): New define.
9845 (DEBUG): Empty by default.
9846 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
9848 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
9849 (GROFF_ARRAY_DELETE): Likewise.
9850 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
9852 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
9854 * devps/psstrip.sed: Use different delimiter on last line (so that
9855 it works with BSD 4.4 sed.)
9857 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
9859 * devps/psstrip.sed: Delete comments.
9861 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
9862 optind, opterr, optarg.
9863 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
9866 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
9868 * Makefile.in (check): Dummy target.
9870 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
9872 * Version 1.07 released.
9874 * Integrate mm 1.11.
9876 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
9877 where start_col was meant.
9879 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
9881 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
9883 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
9885 * troff/input.cc (token::next): Make \z\o'...' and similar things
9888 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
9890 (environment): Add margin_character_flags member.
9891 * env.cc (environment::environment(symbol),
9892 environment::environment(const environment *): Initialize
9893 margin_character_flags.
9894 (margin_character): Rewrite.
9895 (environment::output_line): Add a margin character if
9896 margin_character_flags is non-zero. Turn off the
9897 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
9898 zero, use margin_character_node without copying and then set
9899 margin_character_node to 0.
9901 * devps/DESC.in: Change minimum size to 1000.
9903 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
9905 * troff/symbol.h (symbol::hash): Change return type to unsigned
9907 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
9910 * test-groff: Use -r rather than -x.
9912 * grops/psfig.diff: Include in distribution again.
9914 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
9916 * Makefile.in (dist): Use gzip.
9918 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
9920 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
9921 unistd.h as well as in stdlib.h.
9922 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
9923 defined; otherwise include <sys/types.h> and <unistd.h> if
9924 UNISTD_H_DECLARES_GETOPT is defined.
9926 * configure.in: use builtin(include, ... rather than include(...
9927 * configure: Regenerate with autoconf 1.3.
9929 * libdriver/print.cc (printer::adjust_arc_center): Use new
9930 algorithm suggested by Andy Fyfe.
9932 * libdriver/printer.cc (printer::adjust_arc_center): New function.
9933 * include/printer.h: Declare this.
9934 * grops/ps.cc (ps_printer::draw): Use it.
9935 * grodvi/dvi.cc (dvi_printer::draw): Use it.
9937 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
9939 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
9941 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
9943 * eqn/main.cc (main): Handle "eqn -".
9945 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
9947 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
9949 * mm: Integrate version 1.08.
9951 * pic/troff.cc (troff_output::finish_picture): Set
9952 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
9953 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
9954 if it's not defined. Check whether the register is non-zero rather
9955 than whether it's not defined.
9956 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
9958 * indxbib/indxbib.cc: Move all signal handling into...
9959 * indxbib/signal.c: New file.
9960 * configure.in: Call AC_RETSIGTYPE.
9962 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
9963 * configure.in: Call GROFF_STRUCT_EXCEPTION.
9964 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
9966 * troff/input.cc (token::token, token::operator=): Work round SGI
9968 * pic/object.cc (position::position): Likewise.
9970 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
9972 * pic/pic.h: Move declaration of hypot().
9974 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
9976 * pic/pic.h: Declare hypot().
9978 * pic/pic.h: Define M_PI if necessary.
9980 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
9982 * tmac/tmac.e (re): Add alternative version that doesn't use groff
9985 * devps/prologue.ps (RE): Handle the possibility that the old font
9986 doesn't have a FontName entry.
9988 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
9990 * tmac/tmac.e (fam): Redefine to set family in environment 2.
9991 (@C): Use @fam not fam.
9993 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
9995 * lookbib/lookbib.cc (main): Change type of start to const char *.
9996 * lkbib/lkbib.cc (main): Likewise.
9998 * eqn/lex.cc (definition::definition): Don't use member
9999 initializer syntax for members of anonymous unions.
10001 * troff/input.cc (input_stack::backtrace): Change type of to const
10004 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
10006 * include/stringclass.h (class string): Declare inline friend
10007 functions as inline in class declaration.
10008 * troff/hvunits.h (class hunits, class vunits): Likewise.
10009 * include/refid.h (class reference_id): Likewise
10010 * troff/troff.h (points_to_units(units), scale(units, double)):
10011 Delete declarations.
10012 * libdriver/input.cc (get_char): Delete declaration.
10013 * include/lib.h: Change 2nd argument of getopt from const char **
10015 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
10016 char **' before assigning to a `const char **'.
10017 * tbl/table.cc: Delete extra declarations of prints().
10019 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
10021 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
10022 char **' before assigning to a `const char **'.
10024 * libgroff/errarg.cc (errarg::errarg): Don't use member
10025 initializer syntax for members of anonymous unions.
10027 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
10029 * mm: Integrate version 1.07.
10031 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
10033 * troff/input.c (translate2): Rename to
10034 (translate_no_transparent).
10035 (init_input_requests): Rename tr2 to trnt.
10037 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
10039 * troff/charinfo.h (class charinfo): Add transparent_translate field.
10040 (charinfo::set_translation, charinfo::set_special_translation):
10041 Add second argument that specifies value for
10042 transparent_translate.
10043 (charinfo::get_translation, charinfo::get_special_translation):
10044 Add optional second argument that specifies whether translation is
10045 being used for transparent throughput.
10046 * troff/input.cc (charinfo::set_translation,
10047 charinfo::set_special_translation): Handle second argument.
10048 (charinfo::charinfo): Initialize transparent_translate.
10049 (translate): Split main part off into
10050 (do_translate): New function. Pass argument saying whether
10051 translation applies to transparent throughput.
10052 (translate2): New request.
10053 (init_input_requests): Bind translate2 to `tr2'.
10055 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
10057 * tbl/table.h (class table): Add `nokeep' flag.
10058 * tbl/main.cc (process_options): Handle `nokeep' option.
10059 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
10060 table::do_bottom): Don't output keep/release macro definitions or
10061 calls when `nokeep' option has been specified.
10063 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
10065 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
10067 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
10069 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
10070 block_entry::divert, alphabetic_block_entry::divert): Add extra
10071 argument giving column separation.
10072 (table::compute_widths): Pass column separation to
10073 table_entry::divert().
10074 (block_entry::do_divert): If an entry spans multiple columns and a
10075 minimumum width has been specified for each column, then set the
10076 line length to the sum of the widths (plus possibly the column
10079 * troff/input.cc (set_escape_char): Don't set the escape_char
10080 until after calling has_arg().
10082 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
10084 * tbl/table.cc (table::do_top): Add missing \s0 for double box
10087 * tbl/table.cc (table::print_double_hline): Avoid extra new line
10088 in case where r > nrows - 1.
10090 * tbl/table.cc (BODY_HEIGHT): Deleted.
10091 (LINE_SEP): New definition.
10092 (table::print_single_hline, table::print_double_hline,
10093 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
10094 table::do_row, table::do_top): Use LINE_SEP space before a line
10095 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
10097 * tbl/table.cc (text_entry::print_contents): New function.
10098 (text_string_name, right_text_string_name): Deleted.
10099 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
10100 (simple_text_entry::do_width, numeric_text_entry::do_width,
10101 alphabetic_text_entry::do_width): Don't store the contents of the
10103 (left_text_entry::simple_print, right_text_entry::simple_print,
10104 center_text_entry::simple_print,
10105 alphabetic_text_entry::simple_print,
10106 numeric_text_entry::simple_print): Print the entry directly
10107 instead of using the stored string.
10109 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
10111 * devps/Makefile: Strip PostScript files.
10112 * devps/prologue: Rename to...
10113 * devps/prologue.ps.
10114 * devps/psstrip.sed: New file.
10115 * devps/download: Use .pfa rather than .ps for installed versions
10118 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
10120 * troff/env.cc (input_trap): Give a warning if the argument is out
10123 * troff/env.cc (adjust): Treat negative argument as missing. Round
10124 argument > 5 down to 5.
10126 * troff/env.cc (center, right_justify): Make negative argument zero.
10128 * troff/div.cc (page_offset, vertical_position_traps): Treat
10129 invalid argument as missing.
10130 * troff/env.cc (line_spacing, line_length, title_length, indent,
10131 underline, hyphen_line_max_request, control_char,
10132 no_break_control_char, widow_control_request, adjust, input_trap,
10133 point_size): Likewise.
10134 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
10135 constant_space): Likewise.
10136 * troff/input.cc (compatible, shift, warn_request,
10137 set_escape_char): Likewise.
10139 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
10140 * tbl/table.cc (table::table): Likewise.
10142 * Makefile.dev (install_dev): depends on $(DEVFILES).
10144 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
10146 * devX75, devX75-12, devX100, devX100-12: New directories.
10147 * Makefile.in: Add these to DEVDIRS.
10149 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
10150 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
10151 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
10152 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
10154 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
10155 (uninstall): New target.
10156 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
10157 uninstall_prog, uninstall_dev): New targets.
10159 * troff/div.cc (return_request): Treat an invalid argument as
10162 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
10164 * tmac/tmac.e ((f): Set up the environment even when there's a
10165 current diversion. Transperently throughput a call to @N.
10168 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
10170 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
10171 up to vertical resolution.
10173 * tbl/table.cc (table::do_row): Change row number after printing
10176 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
10178 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
10180 * Rename CHANGES to NEWS.
10182 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
10184 * libgroff/new.cc (operator new): Avoid calling malloc(0).
10186 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
10188 * man.ultrix: Removed.
10190 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
10192 * Makefile.comm (extraclean): Delete files whose names begin with
10195 * pic/troff.cc (troff_output::text): Fix typo in implementation of
10198 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
10200 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
10201 * troff/div.cc (page_length, need_space, space_request): Treat
10202 invalid optional argument as missing.
10203 * troff/env.cc (number_lines): If the first argument is present
10204 but not a number, turn on line numbering, don't change the next
10205 line number and parse the remaining arguments.
10207 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
10209 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
10211 * eqn/box.h: Change declaration accordingly.
10212 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
10213 the specified size was bad but don't give an error. Check for
10215 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
10216 * eqn/lex (do_size): Likewise.
10218 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
10220 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
10221 compatible headers.
10223 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
10225 * tbl/table.cc (table::init_output): Improve error message when
10226 table won't fit on one page.
10228 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
10230 * pic/troff.cc (troff_output::start_picture): Generate line
10231 containing a horizontal motion equal to the width of the picture.
10233 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
10234 using GROFF_COMMAND_PREFIX environment variable.
10236 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
10238 * mdate.sh: Use $NF rather than $(NF).
10240 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
10242 * pic/main.cc (main): Use %1 not %c in argument to warning.
10244 * eqn/main.cc (main): Output code to check that geqn was given the
10247 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
10249 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
10250 `ln -s ../Makefile .; make; rm -f Makefile'.
10252 * troff/hyphen: Rename to...
10254 * troff/input.cc (main): Delete -H option. Don't call
10255 read_hyphen_file().
10256 * troff/env.cc: Include searchpath.h and macropath.h.
10257 (exception_dictionary): Deleted.
10259 (read_hyphen_file): Deleted.
10260 (hyphenation_language): New struct.
10261 (class trie, class hyphen_trie): Move declarations up.
10262 (trie_node::~trie_node): Deleted.
10263 (trie::delete_trie_node): New function.
10264 (trie::do_delete): New pure virtual function.
10265 (hyphen_trie::do_delete): New function.
10266 (trie::~trie): New function.
10267 (hyphen_trie::~hyphen_trie): New function.
10268 (trie::clear): No need to chcek that tp is not 0.
10269 (current_language, language_dictionary): New variables.
10270 (hyphen_word): Give an error if no current language. Use
10271 exceptions dictionary in current language.
10272 (hyphen_trie::read_patterns_file): Find file using macro_path.
10273 Allow comments (starting with %) in patterns file. Don't make it
10274 a fatal error if the file can't be found.
10275 (hyphenate): Return if no current language. Get the exceptions
10276 dictionary and the hyphenation patterns from the current language.
10277 (set_hyphenation_language): New variable.
10278 (hyphenation_patterns_file): New function.
10279 (hyphenation_language_reg): New class.
10280 (hyphenation_language_reg::get_string): New function.
10281 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
10282 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
10284 * groff/groff.cc (main, help, synopsis): Delete -H option.
10285 * include/Makefile.sub: Don't define HYPHENFILE.
10286 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
10287 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
10288 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
10289 hyphenation patterns.
10291 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
10293 * eqn/neqn.sh: New file.
10294 * eqn/Makefile.sub: Handle neqn.sh.
10296 * eqn/eqn.h: Declare `nroff' variable.
10297 * eqn/box.cc (param_table): Add `nroff' param.
10298 (nroff): Define it.
10299 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
10301 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
10303 * troff/troff.h (WARN_FONT): New warning.
10304 (WARN_TOTAL): Change accordingly.
10305 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
10306 (warning_table): Add WARN_FONT.
10307 * troff/node.cc (mount_font_no_translate): Pass argument to
10308 font::load_font. If this is non-zero, give a warning.
10309 Don't give an error message when accessing a font that has already
10310 been found to be invalid.
10311 * include/font.h (font::load, font::load_font): Add additional
10312 optional argument which suppresses error message if the font is
10314 * libgroff/font.cc (font::load_font): Handle additional argument.
10315 (font::load): Add additional argument. If this is non-null, set it
10316 to 1 and don't give error message.
10318 * include/printer.h (printer::end_page): Add argument giving
10320 * libdriver/input.cc (do_file): Pass this.
10321 * grops/ps.cc (ps_printer::end_page): Add argument.
10322 * grodvi/dvi.cc (dvi_printer::end_page,
10323 draw_dvi_printer::end_page): Add argument.
10324 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
10325 columns_per_page members. New member nlines.
10326 (DEFAULT_LINES_PER_PAGE): Deleted.
10327 (tty_printer::tty_printer): Don't compute lines_per_page from
10328 font::paperlength. Don't compute columns_per_page from
10330 (tty_printer::add_char): Don't check horizontal position against
10331 columns_per_page. Grow glyphs vector if neccessary.
10332 (tty_printer::end_page): Add argument giving page_length in units.
10333 Discard lines past end of page.
10335 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
10337 * tmac/tmac.tty-char: Fix definition of \(/l.
10339 * tmac/tmac.X: Define \(en.
10341 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
10343 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
10344 lpq, then use lp rather than lpr.
10346 * tmac/tmac.s (par@reset): Don't call `ad'.
10347 (par*env-init): Call `ad'.
10349 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
10351 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
10354 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
10355 * indxbib/indxbib.cc: Likewise.
10357 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
10359 * libgroff/putenv.c: New file.
10360 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
10361 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
10362 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
10363 stdlib.h with AC_HAVE_HEADERS.
10365 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
10367 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
10370 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
10372 * eqn/box.cc (gsize): Make it an int.
10373 (set_gsize): Parse argument handling increment or decrement.
10374 (box::top_level): Convert gsize to a string.
10376 * troff/input.cc (exit_troff): Make buf unsigned char [].
10377 Call to make_temp_iterator casts buf to char*.
10379 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
10381 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
10382 * Makefile.cpg (depend.temp): Likewise.
10384 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
10386 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
10388 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
10390 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
10392 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
10394 * Version 1.06 released.
10396 * Integrate mm 1.04.
10398 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
10400 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
10402 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
10404 * afmtodit/afmtodit.pl: Add -n option that disables generation of
10406 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
10407 afmtodit. Regenerate.
10409 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
10410 @f back past the current position.
10412 * tmac/tmac.e: Change calls to @R so that comments are not part of
10415 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
10417 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
10419 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
10420 check that we can link a call to a function declared in <stdio.h>.
10421 (GROFF_UNISTD_H): New macro.
10422 * configure.in: Call it.
10423 * Makefile.in: Document it.
10424 * include/posix.h: New file.
10425 * troff/troff.h: Don't include <osfcn.h>
10426 * troff/input.cc: Include posix.h.
10427 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
10429 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
10430 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
10432 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
10433 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
10434 * libbib/search.cc (O_RDONLY): Delete definition.
10435 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
10436 Don't include <osfcn.h>.
10438 * acgroff.m4 (GROFF_TIME_T): New macro.
10439 * configure.in: Call it.
10440 * Makefile.in: Document it.
10442 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
10443 * configure.in: Call it.
10444 * Makefile.in: Document -DTRADITIONAL_CPP.
10445 * include/ptable.h: Don't include generic.h.
10446 (name2): Define it.
10448 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
10449 Afterwards remove [T1 and [T2.
10450 (ref*spec!0, ref*spec!2): Use T1 rather than T.
10451 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
10452 (ref*add-T2): Renamed from ref*add-T.
10453 (ref*add-T1): New macro.
10455 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
10457 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
10459 * libbib/index.cc: Include <fcntl.h>.
10460 (O_RDONLY): Define if necessary.
10461 (make_index_search_item, index_search_item_iterator::get_tag,
10462 index_search_item::check_files): Use O_RDONLY.
10463 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
10464 (O_RDONLY): Define if necessary.
10465 (search_list::add_file): Use O_RDONLY.
10466 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
10468 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
10471 * libbib/index.cc (S_ISREG): Define it if necessary.
10472 (index_search_item::load): Use S_ISREG.
10474 * include/driver.h: Include <errno.h>.
10476 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
10478 * eqn/box.cc (body_height): Increase default value to 85.
10479 (body_depth): Increase default value to 35.
10481 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
10483 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
10484 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
10485 protected from expansion with \E.
10487 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
10489 * Makefile (Makefile): New target.
10491 * Makefile.sub (configure, distfiles): New targets.
10493 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
10496 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
10498 * eqn/box.cc (param_table): Add body_height and body_depth.
10500 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
10502 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
10504 * psbb/Makefile.sub: Don't link with libgroff.a.
10506 * acgroff.m4 (GROFF_PUTENV): New macro.
10507 * configure.in: Call GROFF_PUTENV.
10508 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
10509 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
10512 * troff/env.cc (distribute_space): Rename force_forward argument
10513 to force_reverse. Reverse the list if force_reverse is true.
10515 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
10517 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
10519 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
10520 height or depth to be negative. Guard against SUP_RAISE quantity
10523 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
10525 * devps/generate/textmap: Add `an' (arrowhorizex).
10526 * tmac/tmac.ps: \(an overlaps horizontally.
10527 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
10529 * devps/symbolchars: Add arrowverttp, arrowvertbt.
10530 * devps/textmap: Add arrowvertex.
10531 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
10532 updownarrow delimiters.
10533 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
10535 * tbl/table.cc (simple_entry::position_vertically,
10536 block_entry::position_vertically): For a centered entry, perform
10537 the motion in two stages.
10539 * refer/refer.cc (split_punct): Don't call lookup_token if there
10542 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
10544 * troff/input.cc (token::next): Delete token_node after copying
10547 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
10550 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
10552 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
10554 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
10556 * grops/ps.cc (usage): -b option takes an argument.
10558 * devps/prologue (PLG): New procedure.
10559 * grops/ps.cc (main, usage): New -g option.
10560 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
10563 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
10565 * include/cset.h: Include <limits.h> if we have it.
10567 * libgroff/illegal.cc: New file.
10568 * include/lib.h (illegal_input_char): Use table.
10569 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
10570 * pic/lex.cc (ARG1): Renumber to 14.
10571 * eqn/lex.cc (ARG1): Likewise.
10573 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
10574 (eg 1.05.90) correctly.
10576 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
10578 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
10579 Rename $r and $R registers to $v and $V.
10580 ($r, $R): Initialize to 0.
10581 (@v, @V): New macros.
10585 * troff/input.cc (main, usage): Add -R option that says not to
10587 * eqn/main.cc (main, usage): Rename -n to -R.
10589 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
10591 * devps/DESC.in: Leave font positions 5-9 blank.
10592 * devdvi/DESC.in: Likewise.
10594 * grog/grog.pl: Handle `.PS <file' correctly.
10596 * troff/input.cc (input_stack::push): Improve error message when
10597 input stack limit exceeded.
10599 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
10601 * refer/refer.cc (main): Fix typo in handling of `a' option.
10603 * refer/refer.cc (do_bib): In state START after a newline remain
10606 * groff/groff.sh: Deleted.
10607 * groff/Makefile.sub: Delete handling of groff.sh.
10609 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
10610 to determine whether to use \X'ps:...'.
10611 * tmac/troffrc: Set 0p register to 0.
10612 * tmac/tmac.ps: Set 0p register to 1.
10614 * groff/groff.cc: Support -X option. Give warning for -TXps and
10615 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
10616 * tmac/troffrc: Support -r.X=1.
10618 * pic/troff.cc (troff_output::dot): Don't test
10619 zero_length_line_flag.
10621 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
10623 * include/lib.h: Declare getopt() and friends unless
10624 STDLIB_H_DECLARES_GETOPT is defined.
10626 * doc/chars.tr: Delete.
10627 * man/groff_char.man: New file.
10629 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
10631 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
10632 user has changed register format.
10634 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
10636 * groff/groff.cc: Get rid of device_table. Get postprocessor from
10637 `postpro' command in DESC file. Get spooler command from `print'
10638 command in DESC file. Execute spooler command with /bin/sh.
10640 * groff/groff.cc: Split Unix-specific parts into...
10641 * groff/pipeline.c: New file.
10644 * COPYING: New file.
10645 * all files: Update copyright notices.
10647 * Rearrange files. Redo Makefiles. Use autoconf.
10649 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
10651 * troff/input.c (charinfo_to_node_list): Interpret character
10652 definition with escape_char of `\'.
10654 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
10656 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
10657 Define INT_DIGITS as big enough for 64-bit integer.
10658 * lib/strtol.c: Don't include lib.h.
10659 * lib/lib.h: Delete ifdef __cplusplus stuff.
10661 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
10663 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
10664 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
10665 get DESC from current directory.
10667 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
10669 * tbl/main.c (main): Always reset the line number when reading
10672 * tbl/table.c (table::print_single_hline, table::print_double_hline,
10673 table::define_bottom_macro, table::do_row, table::do_top): Round
10674 vertical spacing up to vertical resolution.
10676 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
10678 * ps/ps.h (enum resource_type): Avoid comma at end of
10680 * dvi/dvi.c (class dvi_printer): Likewise.
10681 * dvi/tfmtodit.c (gf::load): Likewise.
10682 * refer/label.y (struct expression): Likewise.
10683 * refer/refer.c (class label_processing_state): Likewise.
10684 * refer/indxbib.c (do_file): Likewise.
10685 * troff/troff.c (enum warning_type): Likewise.
10686 * tbl/main.c (process_data): Likewise.
10687 * troff/charinfo.h (class charinfo):
10689 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
10691 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
10693 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
10695 * groff.c: Move to new groff subdirectory.
10696 * groff/Makefile: New file.
10697 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
10699 * man/mdate.sh: Use ls -L if supported.
10701 * Consolidate all header files produced by gendef into lib/defs.h.
10702 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
10703 Don't include path.h.
10704 * lib/Makefile (path.h): Don't generate.
10705 * troff/input.c: Include defs.h. Don't include config.h.
10706 * troff/Makefile (config.h): Don't generate.
10707 * refer/index.h: Don't include suffix.h.
10708 * refer/index.c: Include defs.h.
10709 * refer/indxbib.c: Include defs.h.
10710 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
10712 * refer/Makefile (suffix.h, path.h): Don't generate.
10713 * groff.c: Don't include config.h. Include defs.h.
10714 * Makefile (config.h): Don't generate.
10715 (lib/defs.h): Generate.
10716 (topclean): Remove lib/defs.h.
10718 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
10720 * lib/malloc.c, lib/getpagesize.h: Deleted.
10721 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
10723 * lib/Makefile: Delete malloc-related stuff.
10724 * lib/new.c: Workaround COOKIE_BUG if necessary.
10726 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
10727 needed header files directly.
10728 * refer/refer.h: Omit definition of DEFAULT_INDEX.
10729 * Makefile: Include definition of DEFAULT_INDEX in path.h.
10731 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
10733 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
10735 * lib/font (font::load_desc, font::load): Don't split argument of
10737 (font::handle_unknown_font_command): Change type.
10738 * ps/ps.c (ps_font::handle_unknown_font_command,
10739 handle_unknown_desc_command): Change type.
10740 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
10742 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
10744 * lib/font.h (font::handle_unknown_font_command): Add file and
10746 * lib/font.c (font::handle_unknown_font_command):
10747 * ps/ps.c (ps_font::handle_unknown_font_command):
10748 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
10749 lineno arguments. Use _with_file_and_line functions for error
10752 * lib/fontfile.c (font::unknown_desc_command_handler): New static
10754 * lib/font.c (font::set_unknown_desc_command_handler): New
10756 (font::load_desc): For unknown commands, call
10757 unknown_desc_command_handler if not null.
10758 * lib/font.h (class font): Declare them.
10759 (FONT_COMMAND_HANDLER): New typedef.
10760 * ps/ps.c (handle_unknown_desc_command): New function.
10761 (main): Set bflag if we had a -b option. Call
10762 font::set_unknown_desc_command_handler.
10763 (broken.h): Don't include.
10764 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
10766 * ps/devps/Makefile: Add `broken' command to DESC file using
10767 BROKEN_SPOOLER_FLAGS.
10769 * macros/tmac.e ([, ]): Add as synonyms for { and }.
10771 * macros/tmac.e ($p): Only exdent if \$3 > 0.
10773 * macros/tmac.e (@R, @S): New macros.
10774 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
10775 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
10776 Declare $H, $[0-9], .. macros with @S.
10777 Declare |0, |1, |2, |3 strings with @S.
10779 * macros/tmac.e (@S): Rename to @U.
10781 * macros/tmac.e (@z): Define @b and bp as empty instead of
10784 * macros/tmac.e (@m): Deleted.
10785 (@h): Don't call @m.
10786 (@z): Don't set @m trap.
10788 * macros/tmac.e ($h, $f): Define |z as empty string.
10790 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
10793 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
10795 ()f): Likewise for * register.
10797 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
10798 argument is missing, don't change $R. Call sr with three
10799 arguments when initializing.
10801 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
10803 * macros/tmac.e (sr): New macro.
10804 Initialize $r and $R using sr.
10806 * macros/tmac.e (,): Delete \*(#[.
10808 * troff/env.c (set_tabs): Read the tab type even if the position
10809 is bad. Allow the position of the first tab stop to be negative.
10811 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
10813 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
10815 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
10816 rather than -DPATHCONF_MISSING.
10817 * Makefile: Get rid of PATHCONF_MISSING.
10819 * refer/map.c: New file.
10820 * refer/index.c: Interface to mmap through map.c. Rename map_size
10822 * refer/Makefile: Handle map.c.
10823 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
10825 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
10827 * Makefile: RANLIB should be `true' if there is no ranlib.
10828 * lib/Makefile (libgroff.a): Simplify.
10829 * driver/Makefile (libdriver.a): Simplify.
10831 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
10832 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
10835 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
10837 * troff/env.c (compare_ranges): Declare as extern "C".
10839 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
10841 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
10843 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
10845 * pic/troff.c (troff_output::text): Merge in grops_output::text,
10846 but conditionalize use of \X based on \*(.T.
10847 (grops_output::*): Deleted.
10848 * pic/output.h: Delete declaration of make_grops_output.
10849 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
10850 by default. -n sets it to 0.
10851 (usage): Corresponding changes.
10852 * groff.c (main): Don't pass -x or -p to pic.
10853 * groff.sh: Likewise.
10855 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
10858 * ps/devps/afmtodit: Change calculation of asc_boundary and
10859 desc_boundary. Make these bounds inclusive.
10860 * ps/devps: Regenerate font files.
10862 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
10864 * macros/tmac.latin1: New file.
10865 * macros/tmac.tty-char: Use tmac.latin1.
10866 (tmac.tty-tr): Deleted.
10867 * macros/Makefile: Install tmac.latin1.
10868 * macros/tmac.dvi: Use tmac.latin1.
10869 * macros/troffrc: Translate \[char160] onto no-break space here.
10870 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
10872 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
10874 * macros/tmac.Xps: Use `do' request.
10876 * macros/tmac.ps: Use `do' request.
10878 * macros/tmac.e (@C): Use `do' request.
10880 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
10881 * macros/Makefile: Install tmac.X*.
10883 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
10884 * tty/Makefile: Don't install tmac.tty*.
10885 * macros/Makefile: Install tmac.tty*.
10887 * dvi/tmac.dvi: Move to macros.
10888 * dvi/Makefile: Don't install tmac.dvi.
10889 * macros/Makefile: Install tmac.dvi.
10891 * ps/tmac.ps*: Move to macros.
10892 * ps/Makefile: Don't install tmac.ps*.
10893 * macros/Makefile: Install tmac.ps*.
10895 * eqn/box.c: Provide draw_lines parameter corresponding to -D
10897 * macros/eqnrc: Set draw_lines parameter based on device.
10898 * groff.c: Don't pass -D flag to eqn.
10899 * groff.sh: Likewise.
10900 * eqn/main.c: Warn about use of -D.
10902 * troff/input.c (process_startup_file): New function.
10903 (main): Call process_startup_file().
10904 * macros/troffrc: New file.
10905 * macros/Makefile: Install troffrc.
10906 * groff.c (main): Don't pass extra -m option to troff. For a
10907 pseudo device pass the name of the pseudo device to troff using
10909 * groff.sh: Likewise.
10910 * groff.c (possible_command::prepend_arg): Deleted.
10912 * troff/input.c (do_request): New function.
10913 (init_input_requests): Bind "do" to do_request.
10915 * eqn/main.c (main): Instead of loading eqnchar from device directory,
10916 load eqnrc from macro directory.
10917 * macros/eqnrc: New file.
10918 * macros/Makefile: Install eqnrc.
10919 * ps/devps/eqnchar: Deleted.
10920 * ps/devps/Makefile: Don't install eqnchar.
10921 * dvi/devdvi/eqnchar: Deleted.
10922 * dvi/devdvi/Makefile: Don't install eqnchar.
10923 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
10926 * lib/device.[ch]: New files.
10927 * lib/font.h (font::set_device_name, font::get_device_name):
10929 * lib/fontfile.c: Use device.h.
10930 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
10931 * troff/input.c: Delete definition of `device'.
10932 (main): Don't initialize device.
10933 * troff/troff.h: Include device.h rather than declaring device.
10934 * troff/Makefile: No need to handle DEVICE.
10935 * driver/input.c: Include device.h. Don't use
10936 font::{set,get}_device_name.
10937 * groff.c, Makefile: Rename device.h to config.h.
10938 * groff.c: Use library device variable.
10939 * eqn/main.c: Use library device variable.
10940 * eqn/Makefile: No need to handle DEVICE.
10942 * lib/searchpath.[ch]: New files.
10943 * lib/Makefile: Handle searchpath.[ch].
10944 * troff/input.c (open_file, init_dirs): Deleted.
10945 (macro_dirs): Deleted.
10946 (open_mac_file, macro_source): Use class search_path.
10947 (add_string, struct string_list): Move definition.
10948 (main): Change -M option to use macro_path. Delete call to
10950 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
10951 Rewrite to use class search_path.
10952 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
10953 * lib/Makefile: fontfile.c depends on searchpath.h.
10954 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
10956 * lib/macropath.[ch]: New files.
10957 * troff/Makefile: No need to handle MACROPATH.
10959 * troff/input.c: Delete DUMP code.
10960 * lib/fontfile.c, lib/font.h: Delete
10961 font::forget_command_line_font_dirs.
10963 * troff/input.c (push_token): New function.
10964 (handle_first_page_transition): Use push_token().
10965 (process_input_stack): Change handling of a space at the beginning
10968 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
10970 * troff/input.c (font_dirs): Delete unused variable.
10972 * eqn/lex.c (do_set): Correct error messages.
10974 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
10976 * troff/input.c (do_define_string): Allow the string name to be
10977 followed immediately by a tab.
10978 (define_character): Likewise.
10980 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
10982 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
10985 * troff/input.c (input_iterator::is_file): New virtual function.
10986 (file_iterator::is_file): New function.
10987 (input_stack::end_file): New function.
10988 (input_stack::next_file): Handle the situation where there is no
10989 file on the input stack correctly. Avoid making two passes over
10991 (next_file): Make the filename optional; in this case call
10992 input_stack::end_file().
10994 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
10996 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
10997 produce a real _ charater when the current font is CW and _
11000 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
11001 expression to work around gcc 2.2 bug.
11003 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
11005 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
11007 * troff/env.c (environment::add_padding): New function.
11008 (environment::add_char): Use add_padding().
11009 (environment::space): Likewise.
11010 (environment::wrap_up_field): Add some padding if there is none
11011 and there's no current tab.
11012 * troff/env.h: Declare environment::add_padding.
11014 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
11016 * pic/pic.y: undef fmod and rand before declaring them.
11018 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
11020 * troff/input.c (main): If the DESC file specifies a font name of
11021 0, then leave the corresponding font position empty.
11023 * nroff.sh: New file.
11024 * Makefile (install.nobin): Install nroff.sh.
11026 * tty/devlatin1/R.proto: Add ao as synonym for de.
11027 * tty/tmac.tty-char: Define ao as o.
11029 * tty/dev{ascii,latin1}/R.proto: Add aq.
11030 * tty/tmac.tty-char: Delete definition of aq.
11032 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
11034 * troff/input.c (init_charset_table): Don't translate 0240.
11035 * ps/tmac.ps: Translate char160 to space.
11036 * dvi/tmac.dvi: Likewise.
11037 * tty/tmac.tty: Likewise.
11039 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
11041 * dvi/tmac.dvi: Add support for all Latin-1 characters.
11043 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
11044 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
11047 * tty/tmac.tty-char: Add \(ah.
11049 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
11050 No need to define \(FM and \(!/. Conditionalize all character
11053 * ps/devps/lgreekmap: Add +h, +f, +p.
11055 * ps/tmac.psnew: New file.
11056 * ps/Makefile: Install tmac.psnew.
11058 * troff/input.c (charinfo_to_node_list): Don't ever interpret
11059 character definitions in compatible mode.
11061 * troff/input.c (remove_character): New function.
11062 (init_input_requests): Bind remove_character to "rchar".
11064 * ps/tmac.psold: New file.
11065 * ps/Makefile: Install tmac.psold.
11066 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
11067 characters into tmac.psold. Make these definitions unconditional.
11069 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
11071 * ps/tmac.ps: Don't define \('c and \('C.
11073 * ps/devps/textmap: Move Greek characters to...
11074 * ps/devps/symbolchars:
11076 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
11078 * ps/devps/text.enc: Add quotesingle.
11079 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
11080 * tty/tmac.tty-char: Likewise.
11081 * dvi/devdvi/texmi.map: Add +h, +f, +p.
11082 * dvi/devdvi/texi.map: Add Fn.
11083 * dvi/devdvi/msam.map: Add lz.
11084 * dvi/tmac.dvi: Handle Bq, bq, aq.
11086 * pic/lex.c (get_token): Recognize 'th.
11087 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
11089 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
11091 * ps/devps/textmap: Move di, mu, +- to...
11092 * ps/devps/symbolchars:
11094 * macros/tmac.s (@XS): Don't call par@reset or fi.
11095 (XA): Call LP. Turn off adjustment. Reduce line length.
11097 * macros/tmac.s: Initially alias XS to LP.
11098 (XS): Rename to @XS.
11099 (cov*ab-init): Alias XS to @XS.
11101 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
11103 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
11104 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
11105 (token::is_size, token::changes_env): Deleted.
11106 * troff/number.c (parse_term): No need to process \s explicitly.
11107 Call tok.next() only after scale indicator has been processed.
11108 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
11110 (token::next): Handle \s, \f, \S, \H immediately rather than
11111 returning them as tokens.
11112 (token::operator==, token::description, token::add_to_node_list,
11113 token::process): Remove handling of deleted tokens.
11115 * troff/env.c (environment::add_char): When adding padding
11116 indicator character, call start_line() if necessary.
11118 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
11120 * ps/devps/afmtodit: Don't output 0 kerns.
11122 * ps/devps/afmtodit: Remove directory from name of encoding in
11123 font description file.
11125 * ps/devps/afmtodit: Improve error messages.
11127 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
11129 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
11130 * ps/devps/FontMakefile: Deleted.
11131 * ps/devps/afmname: New file.
11133 * ps/devps/symbol.sed: New file.
11134 * ps/devps/symbol.diff: Deleted.
11135 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
11136 Generate zapfdr.afm from zapfd.afm.
11138 * tty/tmac.tty (tty-char): Prefix definition with ".
11140 * macros/tmac.an (TP): Don't start a diversion if one has already
11143 * tty/tmac.tty-char: Add Latin-1 characters.
11145 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
11147 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
11149 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
11150 Move declaration of struct horizontal_span.
11152 * tbl/table.c (table::table): Initialize span_list.
11153 (table::~table): Delete span_list.
11155 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
11157 * ps/devps/Makefile: Avoid dependency on GNU make.
11159 * ps/tmac.ps: Check that character does not already exist before
11162 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
11163 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
11164 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
11167 * tty/tmac.tty-char: New file.
11168 * tty/Makefile: Install tmac.tty-char.
11169 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
11172 * tty/tmac.tty: Fix definition of \(34.
11174 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
11175 bracket-drawing characters onto |. Add *o.
11177 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
11178 only if current_field.
11180 * troff/dictionary.c (dictionary::lookup): Free old_table after
11183 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
11185 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
11186 whose glyphs are identical to glyphs of some Roman character.
11188 * tty/devlatin1/R.proto (bu): Deleted.
11189 * tty/devascii/R.proto (bu): Deleted.
11190 * tty/tmac.tty: Add definition of \(bu.
11192 * eqn/main.c (do_file): Pass FILE as argument.
11193 (main): Automatically load eqnchar. New options -F and -n.
11194 Pass do_file an opened FILE.
11195 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
11196 No need to include font.h.
11197 * groff.sh: Likewise. Don't need to use - for standard input.
11198 Prefix files with -- if first file starts with -.
11200 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
11202 * troff/env.c (environment::possibly_break_line): Don't set line
11203 to 0 across call to output_line(). Don't call output_line() until
11204 after discarding nodes after break.
11206 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
11208 * request.h (macro::empty): Declare it.
11209 * input.c (macro::empty): New method.
11210 (interpolate_macro): Don't give a WARN_SPACE if the two-character
11213 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
11215 * troff/env.c (environment::start_field): Decrement space_total
11216 when a space is frozen.
11218 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
11220 * macros/tmac.an (R): Delete macro.
11222 * troff/input.c (get_copy, token::next): Support \# (like \" but
11223 newline is ignored).
11225 * troff/input.c (token::next): Fix error message in 'Y' case.
11227 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
11229 * eqn/delim.c (define_extensible_string): Recognize any prefix of
11232 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
11234 * c++test.c: Include <osfcn.h>.
11236 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
11239 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
11241 * tbl/table.c (table::divide_span): Don't count column separation
11242 if expand was specified.
11244 * tbl/main.c (process_format): Don't ignore width specs in
11245 continued format. Give warning for changing equal widths or
11246 column separation in continued format.
11247 (process_data): Set column separation, minimum width, equal
11248 columns at end of table.
11250 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
11252 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
11253 node::add_discretionary_hyphen): Use soft_hyphen_char.
11254 (set_soft_hyphen_char): New function.
11255 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
11257 * Makefile (c++tested): Give more helpful message if test fails.
11259 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
11261 * troff/input.c (init_charset_table): Translate 0240 to
11262 an unbreakable space.
11264 * troff/token.h (token::hyphen_indicator): New function.
11265 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
11267 * troff/input.c (translate): Allow translation to \%.
11268 * troff/node.c (node::add_char): Handle
11269 TRANSLATE_HYPHEN_INDICATOR.
11270 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
11272 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
11275 * tty/devlatin1/R.proto: \(hy and - should print as 055.
11277 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
11279 * groff.c (run_commands): If the last command gets a SIGPIPE send
11280 a SIGPIPE to all children than haven't yet terminated. When
11281 command terminates, set pid field to -1.
11283 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
11285 * groff.c (main): Pass an appropriate -filename option to gxditview.
11287 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
11289 * Makefile.bd (install): Remove existing program before copying.
11291 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
11292 programs which have Unix counterparts to be installed with
11293 user-specified prefix.
11295 * troff/input.c (exit_troff): Don't check if exit_started.
11296 (exit_request): Don't call exit_troff if exit_started.
11298 * Makefile.bd (install.mm): Rename to install.dwbmm.
11300 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
11302 * driver/input.c (do_file): Add missing break for '#' case.
11304 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
11306 * troff/input.c (input_stack::clear): Clear past any boundaries and
11307 then add the boundaries back.
11309 * troff/input.c (exit_troff): Return immediately if already
11312 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
11314 (pg*end-page): If the text has ended and there are no more
11315 footnotes or keeps, exit.
11317 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
11319 * troff/input.c (init_charset_table): Make \(rq transparent by
11322 * macros/tmac.an: Define lq and rq strings.
11324 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
11326 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
11328 * troff/env.c (environment::final_break): New function.
11329 (environment::newline): Set prev_line_interrupted to 2 if
11331 * troff/env.h: Declare environment::final_break.
11332 * troff/input.c (exit_troff): Call environment::final_break()
11333 instead of environment::do_break().
11335 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
11336 doesn't already exist.
11337 * macros/man.local: New file.
11338 * macros/tmac.an: Load man.local.
11339 * macros/man.ultrix: New file.
11341 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
11343 * troff/input.c (exit_groff): Rename to...
11344 (exit_troff): New function.
11346 * troff/div.c (exit_started, done_end_macro,
11347 seen_last_page_ejector): New global variables.
11348 (began_page_in_end_macro): New static variable.
11349 (exit_flag): Deleted.
11350 (top_level_diversion::top_level_diversion): Initialize
11352 (top_level_diversion): More elaborate test for whether
11353 cleanup_and_exit() should be called.
11354 Set began_page_in_end_macro if the end macro isn't yet finished.
11355 * troff/div.h (top_level_diversion::last_page_count): New data
11357 (top_level_diversion::set_last_page): New function.
11358 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
11359 * troff/env.c (do_break): Zero prev_line_interrupted.
11360 * troff/input.c (exit_flag): Delete declaration.
11361 (LAST_PAGE_EJECTOR): New magic cookie.
11362 (token::next): Handle LAST_PAGE_EJECTOR.
11363 (exit_groff): Set exit_started and done_end_macro instead of
11364 exit_flag. Call top_level_diversion::set_last_page. Push a
11365 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
11366 another ejection after setting seen_last_page_ejector.
11368 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
11370 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
11372 * macros/tmac.e (TH): Make sure there's room for the initial
11375 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
11376 Set FVS in points rather than units.
11378 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
11380 * troff/div.c (top_level_diversion::add_trap): Don't consider the
11381 position of empty slots.
11383 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
11385 * ps/devps/S: Fix height and depth of parenrightex.
11386 * ps/devps/symbol.diff: Regenerate.
11388 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
11390 * tmac.e (u): Do underlining as in -mgs.
11392 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
11394 * tty/tty.c (tty_printer::end_page): If overstriking is
11395 suppressed, still turn overstruck horizontal and vertical lines
11398 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
11401 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
11403 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
11405 * Version 1.05 released.
11407 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
11409 * tty/tty.c: Instead of keeping an array of glyphs and then
11410 sorting it, keep a ordered linked list of glyphs for each line.
11412 * driver/driver.h: Include stddef.h.
11414 * tty/tty.c (compare_glyph):
11415 * refer/refer.c (rcompare):
11416 * troff/env.c (compare_ranges): Arguments of qsort comparison
11417 function should be const void *.
11419 * troff/number.c (parse_term):
11420 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
11423 * refer/label.y (consider_authors): Don't access variables
11424 constructed under a condition outside that condition: put braces
11425 round for statement containing declaration; redeclare use of same
11428 * pic/pic.y (text_expr): Delete production that allows
11429 parenthesised text_expr.
11430 (expr): Allow a conditional_expr to appear in parentheses.
11431 (conditional_expr): Rename to any_expr.
11433 * mm: Install new version 1.01 from jh.
11435 * lib/font.c (font::get_width): Cache scaled widths.
11436 (font::font): Initialize widths_cache.
11437 (font::~font): Destroy widths_cache.
11438 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
11440 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
11442 * c++test.c, c++test.ref: New files.
11443 * Makefile: Check that the C++ compiler works.
11445 * ps/tmac.pspic (PSPIC): Do a break.
11447 * ps/tmac.ps: Move definition of PSPIC into...
11448 * ps/tmac.pspic: New file.
11449 (PSPIC): Draw box around picture, but make it invisible to grops.
11450 * ps/tmac.ps: Load tmac.pspic.
11451 * ps/Makefile: Install tmac.pspic.
11453 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
11455 * lib/font.c (scale_round): If n is negative,
11456 subtract .5 before truncating floating point result.
11458 * lib/fontfile.c: Include <errno.h>.
11460 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
11462 * driver/input.c (get_char): Inline. Don't update current_lineno.
11463 Change callers to up date current_lineno if necessary.
11464 Use get_char() instead of getc(current_file).
11466 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
11468 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
11470 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
11472 * tty/tty.c (tmac.tty): Define \(rg as (R).
11474 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
11476 * lib/lib.h: New define a_delete.
11477 * Use a_delete instead of delete when deleting an array of objects
11478 without destructors.
11480 * lib/lib.h: Rename adelete to ad_delete.
11481 * Change uses of adelete.
11483 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
11485 * eqn/eqn.y: Include lib.h.
11487 * troff/node.c (grow_font_table): Delete old_font_table.
11489 * mm: Install new version from jh.
11491 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
11493 * tbl/table.h (format_type): Make global instead of local to class
11494 entry_format. Prefix enumerators with FORMAT_.
11495 * tbl/table.c, tbl/main.c: Corresponding changes.
11496 * refer/token.h (token_type): Make global. Prefix enumerators
11498 * refer/token.[ch]: Corresponding changes.
11499 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
11501 * troff/div.c (node::set_vertical_size): Don't name argument.
11503 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
11505 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
11506 * lib/lib.h: Define adelete accordingly.
11507 * pic/object.c (graphic_object::graphic_object):
11508 * tbl/main.c (format::~format):
11509 * tbl/table.c (table::~table):
11510 * refer/ref.c (reference::~reference, reference::merge,
11511 reference::insert_field, reference::delete_field): Use adelete.
11513 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
11515 * tbl/table.h: Corresponding changes.
11517 * common.c (common_output::dashed_arc, common_output::dotted_arc):
11518 Ensure total_angle is positive.
11520 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
11522 * refer/ref.c (reference::merge, reference::insert_field,
11523 reference::delete_field): Avoid delete[0].
11525 * refer/token.c (init_special_chars): Move calls to cmupper
11526 outside calls to init_two_char_letter to work around bug in gcc
11529 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
11531 * lib/new.c (operator new): Use __builtin_new for g++.
11533 * pic/object.c (graphic_object::~graphic_object): Don't use
11536 * pic/object.c (output::compute_scale): Initialize max_width and
11539 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
11541 * troff/input.c (write_request): Call fflush.
11543 * troff/node.h (class composite_node): Move declaration to node.c
11544 * troff/input.c (charinfo_to_node): Rename to ...
11545 (charinfo_to_node_list): Return node list rather than composite
11547 * troff/node.c (make_composite_node): New function.
11548 (make_node, add_char): Call make_composite_node instead of
11550 (class composite_node): Add a tfont * member. Delete font_size
11552 (composite_node::composite_node, composite_node::copy,
11553 composite_node::size): Corresponding changes.
11554 (composite_node::tprint): Provide constant spacing, emboldening
11555 and track kerning as specified in tfont.
11556 (composite_node::width): Change width calculation accordingly.
11557 * troff/env.h (environment::composite): New member.
11558 (environment::is_composite, environment::set_composite): New
11560 * troff/env.c (environment::environment): Initialize composite.
11561 * troff/input.c (charinfo_to_node): Call
11562 environment::set_composite.
11563 * troff/node.c (make_composite_node, make_glyph_node): Use the
11564 plain version of the tfont if the environment is composite.
11566 * troff/node.c (font_info::get_space_width): Additional argument
11567 giving space_size. Handle constant space correctly. Scale by
11568 space_size unless constant spaced.
11569 (env_sentence_space_width): New function.
11570 * troff/node.h: Declare it.
11571 * troff/env.h (environment::get_space_size,
11572 environment::get_sentence_space_size,
11573 environment::get_narrow_space_width,
11574 environment::get_half_narrow_space_width): Make inline.
11575 (environment::get_space_width): Make inline. Just call
11577 * troff/env.c: Delete definitions for funtions made inline.
11578 (environment::space_newline, environment::space): Use
11579 env_sentence_space_width(). Don't scale by space_size.
11580 * troff/node.h: Move declarations of env*space_width() functions
11583 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
11585 * macros/tmac.s (PS): Don't try to set negative indent.
11587 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
11589 * pic/pic.y: Fix min function.
11591 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
11593 * man/mdate.sh: Clear LANGUAGE.
11595 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
11597 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
11598 * pic/lex.c: New COMMAND keyword.
11599 * pic/pic.y (print_args, print_arg): New rules.
11600 (placeless_element): Use print_args for PRINT.
11601 New COMMAND element.
11603 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
11605 * troff/input.c (terminal): Handle missing argument correctly.
11607 * pic/pic.y (text_expr): New rule.
11609 * pic/pic.y: Implement := operator.
11611 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
11613 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
11616 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
11618 * ps/devps/dingbatsrmap: Include this in the distribution.
11620 * macros/tmac.doc: Replace with new version from 2nd Networking
11621 Release. Fix loading of doc-* files.
11622 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
11623 * macros/tmac.doc.old: New file. Apply fixes that had been
11624 applied to old tmac.doc.
11625 * macros/tmac.andoc: Check that we're running under groff.
11626 * macros/Makefile: Rework.
11628 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
11630 * tbl/table.h (format_type):
11631 * refer/token.h (token_type): If NESTED_TYPES is defined, use
11632 typedef to make these types visible at file scope.
11633 * Makefile: Add NESTED_TYPES configuration option.
11635 * troff/div.c (mark): At the top level use the value of
11636 nl_reg_contents rather than the current vertical position.
11638 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
11640 * tty/tty.c: Implement \D for horizontal or vertical lines.
11641 (tty_printer::set_char): Use vec_used+2 as serial number.
11642 Don't allow size of vector to exceed USHRT_MAX-2.
11643 Split off part into...
11644 (tty_printer::add_char): New function.
11645 (tty_printer::draw): New function.
11646 (compare_glyph): Handle equal serial numbers.
11647 (tty_printer::end_page): Handle overstruck characters from \D.
11648 (main, usage): Implement -d option.
11650 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
11652 * tbl/main.c (process_format):
11653 * eqn/text.c (split_text):
11654 * troff/input.c (token::next): Use inner block for declarations
11655 with initializers in switch statement.
11657 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
11659 * pic/common.c (common_output::dash_line): Cope with zero-length
11662 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
11664 * Version 1.04 released.
11666 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
11668 * macros/tmac.an (TH): Define a macro an-init to define variables
11669 based on command line arguments.
11670 (an-header): Call it.
11672 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
11674 * Makefile (install.mm): Rename to install.dwbmm.
11676 * Makefile: Integrate mm.
11677 * mm: New directory.
11679 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
11681 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
11684 * pic/troff.c (troff_output::simple_spline,
11685 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
11686 shadowing parameter.
11688 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
11690 * lib/ptable.h: Add explicit casts when converting from unsigned
11693 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
11694 * dvi/devdvi/Makefile: Install SA, SB.
11696 * refer/indxbib.c: Add declaration of mktemp.
11698 * refer/lookbib.c: Add declaration of isatty.
11700 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
11702 * pic/lex.c (interpolate_macro_with_args): While collecting
11703 arguments, keep track of whether we're in a string.
11705 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
11707 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
11708 down with \v, so as to avoid problems with top of page trap
11709 setting no space mode.
11711 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
11713 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
11715 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
11717 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
11718 Improve error message.
11720 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
11722 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
11725 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
11727 * groff.c (possible_command::execp): Always use _exit() after a
11730 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
11731 NO_SYS_WAIT_H configuration options.
11732 * groff.c: Use these options. Use POSIX-style macros to extract
11733 fields from the status returned by wait().
11735 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
11737 * tbl/table.c (table::compute_separation_factor): Allow the
11738 separation factor to drop to 0.
11740 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
11742 * refer/search.c: Include <errno.h>.
11744 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
11746 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
11748 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
11751 * pic/lex.c (input_stack::bol): Move definition out of class body.
11753 * pic/main.c: On MSDOS munge argv[0].
11755 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
11757 * lib/ptable.c (hash_string): Use unsigned long rather than
11759 (next_ptable_size): Use unsigned rather than int. Give an error
11760 message if we've hit the largest table size.
11761 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
11764 * pic/object.h (object_spec): Make flags unsigned long. Declare
11765 flags as const unisgned long rather than as enums.
11767 * pic/output.c: Deleted.
11769 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
11771 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
11772 Add additional argument.
11773 (line_entry::note_double_vrule_on_{left,right}): Set value of
11774 douvle_vrule_on_{right,left} flag according to argument.
11775 (simple_line_entry::simple_print,
11776 simple_line_entry::double_line_print): If adjacent to double vrule
11777 on a corner extend rather than shorten the rule by half the double
11780 * troff/number.c (parse_term): In checking for overflow, handle the
11781 case where the current horizontal position is negative.
11783 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
11785 * pic/object.c (draw_arrow): Check for object having zero length.
11787 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
11789 * eqn/main.c (do_file): Split off inline equation handling into...
11790 (inline_equation): New function. Search for starting delimiter
11792 (delim_search): New function. Don't recognize a delimiter that
11793 occurs in the name of an escape sequence, number register, string
11796 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
11798 * eqn/delim.c (delim_box::compute_metrics): Don't call
11799 define_extensible_string if left is 0.
11800 (delim_box::output): Don't print the left delimiter if left is 0.
11801 (delim_box::debug_print): Check for left == 0 before calling printf.
11803 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
11805 * troff/Makefile (majorminor.c): Include only digits in
11808 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
11810 * refer/dirnamemax.c: new file.
11811 * refer/genlimits.c: Deleted.
11812 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
11813 Don't check path length.
11814 * refer/Makefile: Add dir_name_max.o; delete genlimits.
11815 * Makefile: Add PATHCONF_MISSING option.
11817 * refer/indxbib.c (get_cwd): New function.
11818 (main): Use get_cwd().
11819 * lib/getcwd.c: New file.
11820 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
11821 GETCWD in SUBFLAGS.
11822 * lib/Makefile: Compile getcwd.o.
11824 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
11827 * refer/indxbib.c (main): Check success of mktemp.
11829 * lib/tmpfile.c: New file.
11830 * lib/Makefile: Add tmpfile.c.
11831 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
11832 * ps/ps.h: Delete declaration of mktemp().
11833 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
11834 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
11835 * driver/driver.h: No need now to include errno.h.
11837 * everywhere: Set errno to 0 before calling fopen().
11839 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
11840 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
11841 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
11843 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
11845 * troff/env.h (translate_space_to_dummy): Declare it.
11846 * troff/env.c (environment::space_newline, environment::space):
11847 If translate_space_to_dummy is set then make the width of spaces 0.
11848 * troff/input.c (translate): If the second character of a
11849 translation is a space, translate to unbreakable space. If the
11850 first character is a space, set or clear translate_space_to_dummy
11851 according to whether the second character is \&. Weird!
11853 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
11855 * groff.c (run_commands): Don't use non-zero exit code because a
11856 command gets SIGPIPE.
11858 * groff.c, groff.sh: Use -mXps with -TXps.
11860 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
11861 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
11862 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
11863 (ps_printer::special): New specials invis and endinvis.
11864 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
11865 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
11866 (ps_printer::end_page): Check that invis_count == 0.
11867 (ps_printer::invis_count): New member.
11868 (ps_printer::ps_printer): Initialize invis_count to 0.
11870 * troff/env.c (environment::hyphenate_line): Hyphenation
11871 indicator at beginning of word inhibits splitting after -, \(em
11874 * pic/pic.y (element): Allow another element to follow } without
11875 any intervening separator.
11877 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
11879 * pic/lex.c (get_delimited): Allow tabs before delimiter.
11881 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
11883 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
11884 declaration of wait() in header files.
11885 * Makefile: Get rid of -DHAVE_UNION_WAIT.
11887 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
11889 * lib/lib.h: Declare return type of strerror as char *.
11891 * man/Makefile: Add g flag to sed substitutions.
11892 * Makefile (shgroff, bindist): Likewise.
11894 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
11896 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
11897 * ps/devps/prologue (PBEGIN): Define showpage after pushing
11900 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
11902 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
11905 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
11907 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
11910 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
11912 * troff/input.c (define_number_reg): If currently undefined,
11913 don't define it if the argument is an invalid expression.
11915 * Makefile: Ignore return value of `if' commands without `else'
11918 * Makefile: Split up CPPDEFINES into a series of separate
11919 configuration options.
11921 * troff/input.c (init_registers): Use time_t instead of long
11922 unless LONG_FOR_TIME_T is defined. Use returned result rather
11923 than passing pointer.
11924 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
11926 * lib/Makefile (fontpath.h): Use gendef.
11928 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
11930 * troff/input.c (input_iterator::shift): Delete argument name.
11931 * troff/node.c (suppress_output_file::really_begin_page,
11932 suppress_output_file::really_transparent_char, node::ascii_print,
11933 node::tprint): Delete names of unused arguments.
11935 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
11937 * refer/label.y (string): Pass $4 to command_error.
11939 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
11941 * Version 1.03 released.
11943 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
11945 * Makefile: Pass definition of SHELL in SUBFLAGS.
11947 * gendef: New file.
11948 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
11949 ps/Makefile: Use gendef to construct header files that are
11950 constructed from the Makefile.
11952 * macros/Makefile: make all should build stripped version of tmac.e.
11954 * refer/Makefile (clean): Remove y.output.
11956 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
11958 * ps/pfbtops.c (main): Add -v option which prints out a version
11960 * ps/Makefile (pfbtops): Link with libgroff.a.
11962 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
11964 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
11965 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
11967 * refer/lkbib.c (main): Always terminate reference with blank
11969 * refer/lookbib.c (main): Likewise.
11971 * refer/linear.c (file_buffer::load): Check that the file is not a
11974 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
11975 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
11976 Delete second inclusion of <sys/param.h>.
11978 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
11980 * troff/token.h (token::special): Deleted.
11982 * tbl/main.c (process_format): Rework so that opt->tab_char is
11983 recognized only when appropriate.
11985 * ps/Makefile (clean): Remove pfbtops.
11987 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
11989 * lib/font.c (text_file::next): Don't return if we have got a
11992 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
11994 * refer/refer.c (store_reference): Get hash code from old_table[i]
11995 when rehashing the table.
11997 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
11999 * eqn/box.c (box::top_level): Save size and prev size using \R and
12000 restore it afterwards. Set the size to the size at the beginning
12002 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
12003 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
12005 * refer/Makefile (limits.h): Use ./genlimits.
12007 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
12009 * refer/index.c: Delete declarations of stat() and fstat().
12011 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
12013 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
12015 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
12017 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
12019 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
12021 * troff/input.c (token::get_char): Handle \e.
12023 * refer/linear.c: Delete declarations of fstat() and stat().
12025 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
12027 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
12028 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
12030 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
12032 * troff/input.c (do_define_macro): Improve error handling for end
12033 of file while defining macro.
12035 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
12037 * eqn/box.h: Fix declaration of set_gsize.
12038 * eqn/box.c (set_gsize): Make argument const char *.
12039 (gsize): Declare as char *.
12040 * eqn/main.c (main): Don't convert gsize to int.
12041 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
12043 * Version 1.02 released.
12045 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
12047 * macros/tmac.andoc: New file.
12048 * macros/Makefile: Install tmac.andoc.
12050 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
12051 operator new and delete on OP_DELETE_BROKEN not being defined.
12052 * Makefile: Mention OP_DELETE_BROKEN.
12054 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
12056 * Makefile (bindist): Pass SUBFLAGS.
12058 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
12060 * Makefile, groff.c: Pass definitions to groff.c via device.h.
12062 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
12065 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
12067 * ps/ps.h, ps/psrm.c: Make comment_table and
12068 header_comment_table local to resource_manager::process_file.
12070 * groff.sh: With -TXps pass -printCommand option to gxditview.
12072 * groff.c (possible_command::print): Implement using
12073 append_arg_to_string.
12075 * xditview: Merge in new implementation with own ChangeLog.
12077 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
12079 * groff.c (main): Implement PRINT_OPTION.
12080 (append_arg_to_string): New command.
12081 (device_table): Set PRINT_OPTION flag for Xps.
12083 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
12085 * troff/groff.h: Rename to troff.h.
12087 * pic/lex.c (lookup_keyword, docmp): New functions.
12088 (get_token): Use new lookup_keyword.
12089 Don't include key.h.
12090 * pic/key.[ch], pic/pic.gperf: Deleted.
12091 * pic/Makefile: Remove gperf stuff.
12093 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
12095 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
12097 * troff/Makefile, troff/node.c: Move definition of
12098 STORE_WIDTH into node.c.
12100 * etc/grog.pl, etc/grog.sh: Support -mdoc.
12102 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
12104 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
12105 dvi/devdvi/texb.map: Add lq and rq.
12106 dvi/devdvi: Regenerate fonts.
12107 * ps/devps/textmap: Add lq and rq.
12108 * ps/devps: Regenerate fonts.
12109 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
12110 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
12112 * pic/object.c (position_rectangle): When checking radius
12113 cope with possiblity that width or height is negative.
12114 (box_object::box_object): Have separate xrad and yrad with
12115 signs matching signs of dim components.
12116 (box_object::{north,south}_{east,west}): Use xrad and yrad.
12117 (box_object::print): With rounded boxes use absolute values
12118 for dim and rad arguments.
12120 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
12123 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
12125 * various files: Add explicit destructors to keep Saber CC +d
12128 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
12130 * eqn/box.c (box::top_level): Restore fonts correctly after
12131 font changes in line containing inline equation. Also
12132 restore previous font as well as current font.
12133 * eqn/pbox.h: Define necessary string and register names.
12135 * troff/input.c (token::next): Case 'R' calls do_register.
12136 (do_register): New function.
12138 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
12140 * groff.c, groff.sh: Support Xps device. Allow each device
12141 to have a pseudo_name and a real_name.
12143 * groff.c (run_commands): Don't print `Broken pipe' messages.
12145 * ps/pfbtops.c: New file.
12146 * ps/Makefile: Add pfbtops.
12148 * troff/number.c (parse_term): Improved error message.
12150 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
12152 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
12154 * Makefile: Integrate refer.
12155 * refer: New directory.
12156 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
12157 man/lkbib.man: New files.
12158 * man/Makefile: Support refer man pages.
12160 * lib/lib.h: Declare is_prime.
12161 * lib/prime.c: New file.
12163 * troff/input.c (macro_source): New function.
12164 (init_input_requests): Bind "mso" to macro_source.
12166 * troff/env.c (environment::possibly_break_line): Maintain
12167 pointer to pointer to node to be split in ndp so as to avoid
12168 using address of freed node.
12170 * troff/env.c (environment::hyphenate_line): Maintain pointer to
12171 pointer to first node to be hyphenated in startp so as to
12172 avoid using address of freed node.
12174 * troff/env.c (class trie, class hyphen_trie): Make the
12175 elements of the trie be of type char not unsigned char.
12176 Declare arguments to be const char* instead of unsigned char *.
12178 * troff/env.c (hyphenate): Initialize hbuf[0].
12180 * troff/input.c (set_string): Declare p to be char * and cast
12181 *p to unsigned char when necessary.
12183 * troff/input.c (do_define_macro): Declare s to be const
12184 char*. Cast element to unisgned char when necessary, Declare
12185 d to be an int. Handle EOF better.
12187 * troff/Makefile, troff/input.c: Different scheme for passing
12188 definitions of MACROPATH, HYPHENFILE and DEVICE.
12190 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
12192 * tty/devascii/R.proto: Delete entry for em.
12193 * tty/devlatin1/R.proto: Likewise.
12195 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
12197 * troff/input.c (translate): Stop when we get a space. Treat eof
12200 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
12202 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
12204 * tbl/main.c (process_format): A font name following a `f'
12205 modifier that starts with a digit can be only one character long.
12206 Also deal with EOF on the second character of the font name.
12208 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
12210 * troff/input.c (token::next): Turn \~ into an
12211 unbreakable_space_node.
12212 * troff/node.c (unbreakable_space_node): New class.
12213 * troff/node.h: Declare it.
12215 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
12217 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
12218 it's >= 0, before outputting it as a single byte.
12220 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
12222 * lib/font.c: Make font_char_metric::code an int.
12223 (font::get_code): Change return type to int.
12224 (font::load): Allow code to be arbitrary integer.
12225 * lib/font.h (font::get_code): Change return type to int.
12226 (font::number_to_index): Change argument type to int.
12227 * troff/input.c (token::next): In case 'N', allow any value.
12228 Store value in token::val.
12229 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
12230 (token::get_char, token::add_to_node_list, token::process): Get
12232 (charinfo::set_number): Change argument to int.
12233 (charinfo::get_number): Require that NUMBERED flag be set.
12234 (get_charinfo_by_number): Store numbered characters not between 0
12235 and 255 in a dictionary.
12236 * troff/charinfo.h (get_charinfo_by_number): Change argument type
12238 (charinfo::number): Change type to int.
12239 (charinfo::set_number): Change type of set_number to int.
12240 * troff/node.c (troff_output_file::put_char_width,
12241 troff_output_file::put_char): Test whether character is numbered
12242 using charinfo::numbered().
12243 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
12245 * lib/nametoindex.c: New implementation to cope with arbitrary
12248 * troff/input.c (token::operator==): Test val for
12249 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
12252 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
12253 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
12255 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
12257 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
12260 * all Makefiles: rm targets of cp and >.
12262 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
12265 * eqn/lex.c (def_table): Add dollar.
12267 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
12269 * troff/input.c (do_width): Push back newline before closing delim
12272 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
12274 * groff.c (possible_command::prepend_arg): New function.
12275 (main): Prepend device -m option.
12276 * groff.sh: Put device -m options before command-line options.
12278 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
12280 * macros/tmac.an (IP): Quote argument to TP.
12282 * ps/ps.c (main): New option -b, which sets...
12283 (broken_flags): New variable.
12284 (ps_printer::~ps_printer): Incorporate the setup section in the
12285 prolog if (broken_flags & NO_SETUP_SECTION).
12286 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
12287 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
12288 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
12289 ps_printer::print_needed_font_comment,
12290 ps_printer::print_supplied_font_comment,
12291 ps_printer::print_include_font_comments,
12292 ps_printer::lookup_doc_font, ps_printer::download_fonts,
12293 ps_printer::read_download_file, read_document_fonts, add_font,
12294 skip_line, parse_fonts_arg, document_font::document_font,
12295 document_font::~document_font, document_font::download,
12296 ps_output::include_file): Deleted.
12297 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
12298 rather than %!PS-Adobe-2.0. Make calls to
12299 resource_manager::need_font for each font that we used. Replace
12300 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
12301 print_supplied_font_comment, print_needed_font_comment by call to
12302 resource_manager::print_header_comments. Output %%Orientation
12303 comment. Output %%Requirements: numcopies comment if ncopies > 1.
12304 Don't output the prolog directly. Instead call
12305 resource_manager::output_prolog. Only define #copies when ncopies
12306 > 1. Delete calls to print_include_font_comments and
12307 download_fonts. Add call to resource_manager::document_setup.
12308 (ps_printer::do_file): Call resource_manager::import_file instead
12309 of including it ourselves.
12310 (ps_printer::do_import): Likewise. Also don't call
12311 merge_import_fonts. Push userdict on the dictionary stack before
12312 and pop it afterwards.
12313 Move declaration of ps_output into ps.h.
12314 * ps/psrm.c: New file implementing resource_manager class.
12315 * ps/ps.h: New file declaring ps_output and resource_manager
12317 * ps/devps/zapfdr.ps:
12318 * ps/devps/symbolsl.ps:
12319 * ps/devps/prologue: Use 3.0 conventions.
12320 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
12321 Add default definition of BROKEN_SPOOLER_FLAGS.
12322 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
12323 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
12325 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
12327 * etc/grog.pl: New file.
12328 * Makefile (GROG): New variable.
12329 Add GROG to SUBFLAGS.
12330 * etc/Makefile (GROG): New variable.
12331 (install.nobin): Install $(GROG) rather than grog.sh.
12333 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
12335 * eqn/special.c (special_box::compute_metrics): Make the input and
12336 output strings the same. Get the new height and depth from the
12337 predefined height and depth registers. Also make subscript kern
12338 and skew available.
12339 (special_box::compute_subscript_kern, special_box::compute_skew):
12342 * eqn/box.c (pointer_box::compute_skew,
12343 simple_box::compute_metrics, box::top_level)
12344 * eqn/text.c (prime_box::compute_metrics,
12345 prime_box::comput_subscript_kern)
12346 * eqn/limit.c (limit_box::compute_metrics):
12347 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
12348 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
12349 negative numbers in `nr' requests with a leading 0.
12351 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
12353 * eqn/special.c: New file.
12354 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
12355 Add new rule for simple.
12356 * eqn/lex.c (token_table): Add SPECIAL.
12357 * eqn/box.h: Declare make_special_box.
12358 * eqn/Makefile: Add special.[co].
12360 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
12362 * ps/devps/prologue: Possibly set packing to true while defining.
12363 Create grops dictionary here. Initialize local variables before
12364 defining procedures.
12365 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
12366 the dictionary stack. Set strokeadjust and overprint to false if
12367 the relevant operators are defined.
12368 (PEND): New procedure.
12369 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
12370 prologue. Do everything else in the setup section.
12371 (ps_printer::do_import): Just call PBEGIN and PEND around the
12372 picture. Also push userdict before, and pop it afterwards.
12374 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
12376 * troff/node.c (bracket_node::tprint): Brackets were being printed
12379 * macros/tmac.an (SH, SS): Set fill mode.
12381 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
12383 * troff/div.c (top_level_diversion::begin_page): Set
12384 high_water_mark to 0.
12386 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
12388 * man/mdate.sh: New file.
12389 * man/mdate.c: Deleted.
12390 * man/Makefile: Use mdate.sh instead of mdate.
12393 * eqn/lex.c (do_gsize): Supply missing argument to error message.
12395 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
12397 * man/mdate.c: New file.
12398 * man/*.man: Replace modification date by @MDATE@.
12399 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
12400 (mdate): New target.
12402 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
12403 Remove illegal input characters.
12405 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
12407 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
12409 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
12411 * troff/div.c (begin_page): Change behaviour when
12412 !first_page_begun and !break_flag.
12414 * troff/input.c (do_name_test): Return 0 if argument is empty.
12416 * troff/input.c (read_long_escape_name): Require closing ] to be
12417 at same input level as opening [.
12419 * troff/input.c (read_increment_and_escape_name): New function.
12420 (get_copy, process_input_stack): Use this for \n.
12422 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
12424 * troff/div.c (top_level_diversion::begin_page): Ignore the
12425 current value of page_number if !first_page_begun.
12427 * groff.c (main): Fix declaration of buf.
12429 * troff/input.c (do_name_test): New function.
12430 (token::next): Implement \A.
12431 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
12432 (token::description, token::add_to_node_list, token::process):
12433 Handle TOKEN_ESCAPE.
12434 * troff/token.h: New token TOKEN_ESCAPE.
12436 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
12438 * pic/main.c (do_picture): Allow space before and after filename
12439 following `<'. Check that the filename is not empty.
12441 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
12443 * Version 1.01 released.
12445 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
12447 * dvi/tmac.dvi: ftr HR to H.
12449 * macros/tmac.e: Round up computation of $r.
12451 * xditview/tmac.X: Don't give up completely in compatibility mode.
12452 Use \n(.s instead of \n[.s].
12454 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
12455 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
12456 Add u to factors inside \s[...]. Rename frac to dvi-frac.
12457 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
12458 short names in the char definitions.
12460 * ps/tmac.ps: Don't give up completely in compatibility mode.
12461 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
12462 quote in front of \n(.s. Add u to factors inside \s[...].
12464 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
12466 * tty/tmac.tty: Call the nroff request.
12468 * macros/tmac.e ((x, )x): Better definitions that work properly
12470 (@0, @1): Helper macros for (x.
12472 * macros/tmac.e ($s, hl): Use \l rather than \D.
12474 * tty/tmac.tty: Make it work better in compatibility mode.
12475 (pchar): Rename to tty-char.
12477 * macros/tmac.e (@E): New macro.
12478 (r, i, b, rb, bi): Use @E.
12480 * macros/tmac.e (@F): Don't use (;...) syntax.
12482 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
12483 it was modified for groff.
12485 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
12487 * macros/tmac.e (<., .>): Removed.
12488 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
12490 * macros/tmac.e: Remove check that groff is being used.
12492 * macros/tmac.e (@C): Change families only if using groff; turn
12493 compatibility mode off while changing familes. Save compatibility
12494 mode before changing families and restore it afterwards.
12496 * macros/tmac.e (@h): Remove test for offset + line length.
12498 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
12499 (lo, th, ac): Define to call @S instead of using als.
12501 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
12502 the ratio of the vertical spacing to the point size in units
12503 expressed as a percentage. Use these instead of $10r and $10R,
12504 Delete $10r and $10R.
12506 * lib/font.c (font::load): In default computation of space_width,
12507 divide by sizescale. Use scale_round.
12509 * macros/tmac.an (TP): Don't call `nf'.
12510 (an-do-tag): Don't call `fi'.
12512 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
12514 * troff/input.c (process_input_stack): Handle the case where
12515 spaces at the beginning of an input line are followed by a
12518 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
12520 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
12521 * groff.sh: Use pic -x with the dvi device.
12523 * dvi/devdvi/FontMakefile (H): Don't use -s.
12525 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
12526 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
12527 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
12530 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
12532 * ps/psfig.diff: New file.
12533 * ps/tmac.psfig: New file.
12535 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
12537 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
12538 (]-): Don't call ref*do-tl.
12540 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
12542 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
12543 (fn@do-FS): Rename to fn*do-FS.
12545 * troff/input.c (transparent_translate): New function.
12546 (process_input_stack): Apply transparent_translate before calling
12547 diversion::transparent_output(unsigned char).
12549 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
12551 * troff/input.c (do_define_macro): Define the macro before calling
12554 * xditview/Makefile: Add DEVICES variable. Change install target
12557 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
12559 * groff.c (run_commands): Handle the possibility that there are
12560 child processes other than those forked by us.
12562 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
12564 * lib/string.c (string::append): New function.
12565 * lib/stringclass.h: Declare it.
12567 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
12569 * eqn/main.c (main): New option -N which sets
12570 no_newline_in_delim_flag.
12571 (do_file): If no_newline_in_delim_flag is set don't allow newlines
12573 * groff.c (main): Pass -N on to eqn.
12574 (help, synopsis): Mention -N.
12575 * groff.sh: Implement -N.
12577 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
12579 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
12580 (]-): Call ref*do-tl if ref*need-tl is non-zero.
12581 (XP): Allow as initializer.
12583 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
12585 * troff/env.c (environment::wrap_up_field): If field_spaces are
12586 non-zero and we have a current_tab, subtract padding from
12587 tab_distance. If this makes tab_distance <= 0, use the next tab
12588 stop instead. If there isn't any next tab or it's a left tab,
12589 wrap up the current tab.
12590 (environment::start_field): Initialize tab_precedes_field.
12591 (environment::wrap_up_tab): If there's a current field, update
12592 pre_field_width, field_distance and tab_precedes_field.
12593 * troff/env.h (environment::tab_precedes_field): New member.
12595 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
12597 * ps/ps.c (ps_printer::do_file): New function.
12598 (ps_printer::special): Bind to `file' special.
12599 (ps_printer::do_exec): Set ndefined_styles to 0.
12601 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
12603 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
12604 Avoid stripping first character from the start of unrecognized
12605 escapes. Use lex_error instead of error to report errors.
12606 * eqn/lex.c (get_token): Rework handling of escapes.
12607 (lex_error): Move declaration into...
12610 * xditview/xditview.c (main): Make -page option work.
12612 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
12614 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
12616 * macros/tmac.s (B2): Correct size of box.
12618 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
12620 * macros/tmac.s (B2): Postpone drawing the box until in the
12621 top-level diversion.
12623 * tty/tmac.tty: Add font translations for C, CR, CW.
12625 * groff.c (synopsis, help): Document -i.
12626 * groff.sh: Implement -i.
12628 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
12629 Simplify the construction of SN.
12631 * troff/number.c (parse_term): Give `|' a higher precedence.
12632 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
12635 * macros/tmac.s (B2): Use par@finish instead of par@reset.
12637 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
12639 * lib/string.c (string::move): New function.
12640 * lib/stringclass.h: Declare it.
12642 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
12644 * troff/env.c (distribute_space): Add optional argument
12646 (environment::wrap_up_field): Call distribute_space with
12647 `force_forward' argument of 1.
12649 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
12651 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
12652 Inline it. Move reallocation into...
12653 (string::grow1): New function.
12654 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
12655 dependencies to include library header files.
12656 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
12658 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
12660 * macros/tmac.s (@NH): Use the same number registers than -ms does
12661 for the heading level counters. Use the same string that -ms does
12662 for the number for this heading.
12664 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
12666 * lib/new.c (operator new): Cast result of malloc to char *.
12668 * troff/input.c (spring_trap, lookup_request): Add assert that nm
12671 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
12673 * groff.c (main): Support -i.
12675 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
12677 * pic/pic.h: Include <osfcn.h>.
12679 * ps/ps.c: Add declaration of mktemp.
12681 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
12682 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
12683 argument as union wait *.
12684 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
12685 argument to union wait *.
12687 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
12689 * tty/tmac.tty: Add definition of \(co.
12691 * pic/object.c (make_arc): Only increase radius when radius
12692 strictly less than d.
12693 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
12696 * troff/env.c (environment::environment(symbol),
12697 environment::environment(const environment *)): Initialize
12700 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
12702 * tbl/main.c (main): Add exit(0).
12704 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
12706 * pic/main.c (main):
12707 * eqn/main.c (main):
12708 * tbl/main.c (main):
12709 * etc/soelim.c (main):
12710 * driver/printer.c (printer::~printer):
12711 * troff/node.c (real_output_file::~real_output_file,
12712 real_output_file::flush): Check for errors on stdout.
12714 * most files: Add 1991 to copyright notice.
12716 * macros/tmac.s: Don't test \n(.x and \n(.y.
12718 * troff/input.c (token::next): Rename `escape_char' label to
12719 `handle_escape_char' and `normal_char' label to
12720 `handle_normal_char'.
12722 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
12724 * groff.c (main, synopsis, help): Support -a option.
12725 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
12726 to trflags while parsing options.
12728 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
12730 * troff/number.c (parse_term): With `m', `M' and `n' scale
12731 indicators, convert scale factor to hunits before scaling.
12733 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
12735 * lib/font.c (scale_round): Better test for overflow when n is
12738 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
12740 * tbl/main.c (process_format): Add second argument of type
12741 options*. Change callers. Allow opt->tab_char as well as '\t'
12742 between format items.
12744 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
12746 * macros/tmac.an (PD): With no arguments, make sure register PD is
12748 (TH): Call PD with no argument, instead of setting register PD
12751 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
12753 * Version 1.00 released.
12755 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
12757 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
12759 * dvi/devdvi/DESC: Mount CW instead of CR.
12761 * dvi/tmac.dvi: Add definition of \(tm.
12763 * dvi/devdvi/texsy.map: Add lh, and rh.
12764 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
12765 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
12767 * dvi/devdvi/FontMakefile: Generate H from cmss10.
12768 * dvi/devdvi/Makefile: Install H.
12769 * dvi/devdvi/H: New file.
12771 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
12773 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
12776 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
12778 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
12780 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
12782 * macros/tmac.s (@EN): Handle the case where the equation is empty
12783 but the label is not.
12785 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
12787 * troff/groff.h: New warning category WARN_SPACE.
12788 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
12789 WARN_SPACE to warning_table.
12790 (interpolate_macro): Give a warning of type WARN_SPACE if the name
12791 is longer than two characters and is not defined, but the first
12792 two characters do make a defined name.
12794 * PROBLEMS: New file.
12796 * CHANGES: New file.
12797 * README-0.6, README-1.00: Deleted.
12799 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
12800 * xditview/devX75/Makefile: Make devX75-12.
12801 * xditview/devX100/Makefile: Make devX100-12.
12803 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
12804 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
12806 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
12808 * README-0.7: Rename to README-1.00.
12810 * macros/tmac.pic: New file.
12811 * macros/Makefile (install.nobin): Install tmac.pic.
12813 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
12815 * troff/env.c (hyphen_word): Correct the test for whether the
12816 token is a hyphen. Reset npos to 0.
12818 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
12820 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
12822 * macros/tmac.s (ds*common-end): Call par*reset.
12824 (par@reset-indent): Deleted.
12826 * macros/tmac.s (@IP): Divert the label.
12828 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
12830 * xditview/draw.c (setGC): Use a line width of .1m rather than
12831 .04m by default; round rather than truncate value.
12833 * tbl/table.c (class empty_entry): New class.
12834 (empty_entry::empty_entry, empty_entry::line_type): New functions.
12835 (table::add_entry): Represent empty entries by objects of type
12837 (table_entry::line_type): Return -1.
12838 (table::determine_row_type): Ignore entries with line_type 0.
12839 Treat type -1 as non-lines.
12841 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
12843 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
12844 macros/tmac.s: Rename \(-d to \(Sd.
12846 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
12848 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
12849 * xditview/libXdvi/DviChar.c: Likewise.
12850 * dvi/devdvi/texsy.map: Add `<<', `>>'.
12852 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
12854 * troff/div.c (top_level_diversion::begin_page): Call
12855 init_output() if the_output is 0.
12857 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
12859 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
12861 (get_copy): Turn \E into ESCAPE_E.
12862 (token::process, asciify): Handle ESCAPE_E.
12864 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
12866 (DS): Implement `.DS R'.
12868 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
12870 * macros/tmac.s (FS): New macro.
12872 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
12874 * macros/tmac.s (cov*tl-init): Remove after first execution
12875 instead of aliasing to @nop. Call top of page macro explicitly
12876 instead of setting trap; call @init first. Set pg@top as top of
12878 (cov*auto-init): Deleted. Set cov*tl-init instead of
12879 cov*auto-init as top of page trap.
12880 (TL, LP): Do a break instead of calling cov*tl-init.
12881 (cov*print): With RP format but no TL, alias FS and FE to @FS and
12882 @FE; in this case also give a warning and always start another
12883 page. No need to set pg@top here.
12884 (cov*tl-init): Rename to cov*first-page-init.
12886 * macros/tmac.s (RP): Do `.pn 0'.
12887 (cov*tl-init): With RP format don't do `.pn 0'.
12889 * macros/tmac.s (pg@cs-top): Set no space mode.
12891 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
12892 (cov*ab-init): Alias TL, AU and AI to these.
12894 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
12896 * macros/tmac.s (@EQ): Move the space before the equation into @EN
12897 (@EN): Do nothing unless \n[dl] is > 0.
12899 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
12901 * pic/object.c (ellipse_object::radius): New function.
12903 * VERSION: Change version to 0.7.
12905 * tbl/table.c (block_entry::do_divert): Declare return type as
12907 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
12909 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
12911 * troff/column.c: New file.
12912 * troff/Makefile: Corresponding changes.
12914 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
12917 * troff/div.c (top_level_diversion::space): If the space causes
12918 the first-page transition and springs a trap, truncate the space
12921 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
12923 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
12926 * pic/troff.c (troff_output::line_thickness,
12927 troff_output::set_fill): Do a horizontal motion to compensate for
12928 the width of the \D escape sequence.
12930 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
12932 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
12935 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
12938 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
12939 Supply empty definition.
12940 (text_entry::simple_print, simple_text_entry::simple_print):
12941 Delete declarations.
12942 (table::add_entry): Represent empty entries by objects of type
12945 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
12947 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
12949 * tbl/table.c (left_text_entry::add_tab): New function.
12951 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
12952 initialize like LP.
12954 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
12956 * troff/env.c (environment::start_field): Give an error message if
12957 there is no next tab.
12959 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
12961 * troff/env.c (hyphenate): Skip initial elements with zero
12964 * macros/tmac.s (par@init): Keep VS in points rather than units.
12966 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
12968 * pic/main.c (main): Implement `-c' option.
12969 * pic/output.h: Declare make_tpic_output().
12970 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
12972 (tpic_output): New class.
12973 (tpic_output::tpic_output, tpic_output::set_pen_size,
12974 tpic_output::command, make_tpic_output): New functions.
12976 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
12978 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
12979 if they're not already defined.
12980 * tbl/table.c (init_output): Don't test \n(.g.
12982 * troff/input.c (do_if_request): Delete `g' condition. Recognize
12983 `d', `r' and `c' conditions even in compatibility mode.
12985 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
12987 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
12990 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
12992 * troff/env.h (environment::prev_line_interrupted): New member.
12993 (environment::get_prev_line_interrupted): New function.
12994 * troff/env.c (environment::newline): Set prev_line_interrupted.
12995 (environment::environment(const environment *),
12996 environment::environment(symbol)): Initialize
12997 prev_line_interrupted.
12998 * troff/input.c (process_input_stack): Don't give special
12999 treatment to space and newline at the beginning of the line if the
13000 previous line was interrupted.
13002 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
13004 * eqn/eqn.y: Disallow PRIME by itself.
13005 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
13007 (def_table): Remove definition of '. Define prime to be `.
13009 * eqn/eqn.y: Split off part of rule `script' into a new rule
13012 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
13014 * macros/tmac.s ({, }): New string aliases.
13016 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
13018 * README-0.7: New file.
13020 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
13022 * macros/tmac.s: New file.
13023 * man/groff_ms.man: New file.
13024 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
13025 * Makefile.bd: Similarily.
13026 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
13027 definition of TMAC_S.
13028 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
13029 * macros/TODO: New file.
13031 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
13033 * troff/env.c (right_justify): New function.
13034 (init_env_requests): Bind this to request "rj".
13035 (center_lines): Set right_justify_lines to 0. If we get a bad
13036 integer, center 1 line.
13037 (environment::environment(symbol), environment::environment(const
13038 environment *)): Initialize right_justify_lines.
13039 (environment::get_right_justify_lines): New function.
13040 (init_env_requests): Bind this to number_register ".rj".
13042 * troff/env.c (environment::choose_breakpoint): Implement
13043 hyphenation_margin and hyphenation_space.
13044 (environment::get_hyphenation_space,
13045 environment::get_hyphenation_margin): New functions.
13046 (init_env_requests): Bind these to .hys and .hym.
13047 (hyphenation_space_request, hyphenation_margin_request): New
13049 (init_env_requests): Bind these to hys and hym.
13050 (environment::environment(symbol), environment::environment(const
13051 environment *)): Initialize hyphenation_margin and
13053 * troff/env.h: Corresponding changes to class environment.
13055 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
13057 * troff/div.c (blank_line): Always do a break.
13059 * eqn/box.c (do_text): Turn off escapes while appending text to
13062 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
13064 * troff/input.c (while_break_request, while_continue_request): New
13066 (init_input_requests): Bind these to "break" and "continue".
13067 (while_depth, while_break_flag): New variables.
13068 (while_request): Update while_depth. Break out of loop if
13069 while_break_flag is set.
13071 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
13073 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
13076 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
13078 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
13080 * stringify: New file.
13081 * Makefile (groff.o): Use stringify.
13083 * xditview/tmac.X: Remove definition of \(rn.
13084 * xditview/libXdvi/DviChar.c: Remove radicalex from
13087 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
13089 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
13090 (alphabetic_block_entry::alphabetic_block_entry,
13091 alphabetic_block_entry::divert, alphabetic_block_entry::print):
13093 (block_entry::divert): Split off body into ...
13094 (block_entry::do_divert): If the block is alphabetic, subtract 2n
13095 from the line length; also update the span width to dl+2n, and the
13096 alphabetic span width to dl.
13098 * driver/input.c (do_file): While reading argument to D command,
13099 when expanding buffer, multiply szp by sizeof(int) rather than 2
13100 in the argument to memcpy.
13102 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
13103 width of alphabetic columns.
13105 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
13107 * troff/node.c (lookup_family): Supply second argument to lookup.
13109 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
13110 search, return immediately if v is 0.
13112 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
13113 (troff_output::start_picture): Set this reg.
13114 (troff_output::end_picture): Remove this reg
13115 * eqn/box.c (box::extra_space): Don't produce `\x's if
13116 EQN_NO_EXTRA_SPACE_REG is defined.
13118 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
13119 * eqn/text.c (split_text): Map ' to \(fm when it's the first
13122 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
13124 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
13127 * troff/div.c (top_level_diversion::top_level_diversion):
13128 Initialize page_number to 0.
13130 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
13132 * groff/troff (environment::environment(const environment *)):
13133 Initialize name to e->name, rather than "anonymous".
13135 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
13137 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
13138 requested_page. Split middle part into ...
13139 (FindPage): New function.
13140 (SetValues): If we don't yet know the last page, and the requested
13141 page is greater than the current page, call FindPage.
13142 Update the font_map_string before doing this.
13144 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
13145 Translate \(lh and \(rh into left and right double arrows.
13147 * troff/node.c (class hyphen_inhibitor_node): New class.
13148 (hyphen_inhibitor_node::hyphen_inhibitor_node,
13149 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
13150 hyphen_inhibitor_node::type,
13151 hyphen_inhibitor_node::get_hyphenation_type): New functions.
13152 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
13153 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
13156 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
13158 * troff/node.h (dummy_node::get_hyphenation_type,
13159 transparent_dummy_node::get_hyphenation_type): Declare them.
13160 * troff/node.c: (dummy_node::get_hyphenation_type,
13161 transparent_dummy_node::get_hyphenation_type): New functions.
13163 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
13165 * xditview/libXdvi/draw.c: If M_PI not defined after including
13166 math.h, then define it.
13168 * xditview/Makefile: Add definition of AR. Pass it to the submake
13170 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
13172 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
13174 * troff/dictionary.h (object_dictionary::alias): Declare return
13176 * troff/dictionary.c (object_dictionary::alias): Return non-zero
13177 if the old name was defined.
13178 * troff/input.c (alias_macro): Give a warning if the old name was
13180 * troff/reg.c (alias_reg): Likewise.
13182 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
13184 * troff/input.c (token::next): Delete implementation of \R.
13186 * macros/Makefile: Strip comments from tmac.e while installing it.
13188 * troff/input.c: New variable `nroff_mode'.
13189 (troff_request, nroff_request): New functions.
13190 (init_input_requests): Bind `troff' and `nroff' to troff_request
13192 (do_if_request): Compute results of t and n conditions from
13195 * text/text.c (split_text): Fix typo in >=.
13197 * eqn/lex.c: Add definition of `==' to def_table.
13199 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
13201 * pic/tex.c (tex_output::start_picture): Change the definitions of
13202 \graph and \graphtemp so that they work properly with Plain TeX.
13204 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
13205 argument to `ar' is not less than the first.
13207 * pic/pic.y: Allow a comma between elements of the variable list
13208 in the argument to `reset'.
13210 * pic/object.c (arc_object::arc_object): Fix computation of
13213 * eqn/main.c (main): Add exit(0).
13215 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
13217 * troff/div.c (begin_page): Test no_space_mode after doing the
13218 break, but still push the page ejector cookie before doing the
13219 break. Also set the next page number after doing the break.
13221 * xditview/xditview.c (NewFile): Don't set the title and icon name
13222 if this is the first file and its name is `-'.
13223 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
13224 the X75 and X100 devices.
13225 (main): If a device has the XT_OPTION flag set and there's exactly
13226 one file argument, pass the driver -xrm and -title options to set
13227 the icon name and window title to the name of the file.
13229 * troff/env.c (environment_switch): If there was an argument but
13230 it wasn't a valid number or name, then pop an environment but
13231 don't give an error message on underflow.
13233 * troff/number.c (start_number): Correct spelling in error message.
13235 * troff/input.c (token::delimiter): Don't print an error message
13238 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
13239 ParseDrawFunction if dw->display_enable is true.
13241 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
13243 * pic/pic.y: Parse text positioning like normal attributes, so as
13244 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
13245 positioning attribute.
13247 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
13249 * tbl/main.c (process_data): When in state START while reading a
13250 text block, don't change to state MIDDLE if c is a newline.
13252 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
13254 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
13255 so as to avoid shadowing parameter.
13257 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
13259 * tbl/table.c (trim_space): Deleted.
13260 (table::add_entry): Don't call trim_space.
13262 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
13264 * VERSION: Change version to 0.6.
13266 * troff/number.c (parse_expr): Make == work.
13268 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
13270 * man/grog.man: New file.
13271 * man/Makefile: Add grog.n to MAN1PAGES.
13272 * etc/grog.sh: New file.
13273 * etc/Makefile: Install grog.sh as grog.
13275 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
13277 * troff/input.c (token::next): Implement \E.
13279 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
13281 * xditview/tmac.X: Change font translations to match tmac.ps.
13283 * troff/input.c (non_empty_name_warning): Don't give a warning if
13284 `\{' terminates the name.
13286 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
13288 * ps/devps/symbol.diff: New file.
13289 * ps/devps/FontMakefile: Mention symbol.diff.
13291 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
13293 * troff/node.c (font_position): Use get_long_name to read the
13296 * troff/env.c (environment_switch): If we get a number that's < 0
13297 or >= NENVIRONMENTS, treat it like a name.
13298 Change NENVIRONMENTS to 10.
13300 * troff/groff.h: Remove definition of FONTS_MAX.
13301 * troff/node.h (class font_family): Make map a pointer instead of
13302 an array. Add a map_size member. Make it a class. Make nm const
13303 and public. Make invalidate_fontno a friend.
13304 * troff/node.c: Define font_table_size. Make font_info a pointer
13305 rather than an array.
13306 (class troff_output_file): Allocate font_position dynamically. Add
13307 nfont_positions member.
13308 (troff_output_file::set_font): Grow font_position if necessary.
13309 (troff_output_file::~troff_output_file): Delete font_position.
13310 (troff_output_file::troff_output_file): Allocate font_position.
13311 (grow_font_table): New function.
13312 (troff_output_file::really_begin_page,
13313 troff_output_file:really_copy_page): Use nfont_positions rather
13315 (mount_font_no_translate, mount_style): Call grow_font_table if
13317 (font_family::font_family): Allocate map.
13318 (font_family::make_definite): Grow map if necessary. Use
13319 font_table_size instead of FONTS_MAX.
13320 (font_family::~font_family): New function.
13321 (invalidate_fontno): Use font_family::map_size.
13322 (get_fontno, env_space_width, env_half_narrow_space_width,
13323 env_narrow_space_width, symbol_fotno, is_good_fontno,
13324 get_bold_fontno, make_glyph_node): Use font_table_size rather than
13326 (next_available_font_position): Never return 0.
13328 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
13330 * ps/tmac.ps: Add font translations for compatibility with dpost.
13332 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
13334 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
13335 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
13336 Move definitions baseline_sep, shift_down, column_sep,
13337 matrix_side_sep into...
13338 * eqn/box.c: Add them to param_table.
13339 * eqn/pbox.h: Add declarations to pbox.h.
13341 * troff/input.c (set_string): Cast value to unsigned char *.
13343 * troff/token.h (process_input_stack): Declare it static before
13344 declaring it a friend.
13346 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
13348 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
13350 * dvi/devdvi/EX: Regenerate.
13352 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
13355 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
13357 * eqn/lex.c: In defaults_table, make definition of `dot' call
13358 `dot_def'. Don't explicitly make it roman. Similarily for other
13361 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
13363 (for_input::get, for_input::peek): Use this.
13364 (do_for): Add by_is_multiplicative argument.
13365 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
13366 Change semantic value of optional_by to be a double plus a flag
13367 saying whethet the by clause is multiplicative.
13369 * eqn/lex.c (get_delimited_text): Remember location of start of
13370 definition. Improve error handling when EOF is encountered.
13372 * lib/font.h: Rename handle_x_command to
13373 handle_unknown_font_command.
13374 * lib/font.c (font::load): Call handle_unknown_font_command for
13375 any unknown command in the font description file. Don't call
13376 handle_x_command. Include the name of the command in the argv.
13377 Improve message for unknown command after kernpairs or charset
13379 * ps/ps.c (ps_font::handle_x_command): Rename to
13380 handle_unknown_font_command. Remove message about `x download'
13381 command. Give error message for wrong number of arguments.
13382 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
13383 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
13384 handle_unknown_font_command. Give an error message for wrong
13385 number of arguments. Rename design_size to designsize.
13386 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
13387 checksum', `designsize' instead of `design_size'.
13389 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
13391 * eqn/*.[chy]: Change underaccent to uaccent.
13393 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
13394 give it the same precedence as ACCENT.
13395 * eqn/other.c (make_underaccent_box): New function.
13396 * eqn/box.h: Declare it.
13397 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
13400 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
13402 * pic/pic.y (reset_all): New function. Called in rule for RESET.
13403 (parse_init): Call reset_all.
13404 (define_variable): When defining scale reset only those
13405 pre-defined variables that are scaled.
13406 (defaults_table): Add `scale' as non-scaled value.
13408 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
13409 together with the text; allow any number of positioning words;
13410 allow center as a positioning word.
13412 * pic/object.c (output::compute_scale): Get picture maximum height
13413 and width from variables called maxpswid and maxpsht.
13414 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
13416 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
13418 * pic/object.c (object_spec::make_text): Multiply textht by number
13421 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
13423 (do_sprintf): New function.
13424 (pic.gperf): Add sprintf token.
13425 (text, sprintf): New rules.
13427 * pic/pic.y: `rand()' with no arguments returns a random number
13428 in the range [0,1).
13430 * pic/pic.y: Allow a bare expression to be an attribute: change
13431 precedences to support this. Change optional_ordinal rule to
13432 optional_ordinal_last to avoid reduce/reduce conflict.
13433 * pic/object.c (object_spec::object_spec): Initialize direction.
13435 * pic/pic.y: Implement ^ operator meaning exponentiation.
13437 * troff/node.h: Add default argument to mount_font.
13438 * troff/node.c (font_position): Read an optional third argument
13439 giving the external_name.
13440 (mount_font): Add optional argument giving the external_name.
13441 (mount_font_not_translate): Have additional argument giving
13442 external name. Use this name to load the font. Pass both names
13443 to font_info::font_info.
13444 (font_info::font_info): Have additional argument giving
13446 (class tfont): New member external_name.
13447 (font_info::get_tfont): Use external name to construct tfont_spec.
13449 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
13451 * eqn/lex.c (init_table): Add argument giving device. Define
13452 name of device to be "1".
13453 (do_ifdef): Counts as true if the argument has been defined with
13455 * eqn/main.c (main): Call init_table with device argument. Make
13456 device local to main.
13457 * eqn/eqn.h: Change declaration of init_table. Remove declaration
13460 * pic/lex.c (get_delimited): Allow text to be delimited by
13461 matching {}s. Don't recognize ending delimiter within a string.
13463 * troff/input.c (get_delim_name): New function.
13464 (token::next): Implement \C.
13466 * lib/font.c (font::load): Grok ---. Add an alias for each
13467 character based on its code.
13468 (font::get_code_width): Deleted.
13469 * lib/font.h (class font): Declare font::number_to_index().
13470 Remove declaration of font::get_code_width.
13471 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
13472 to indices of named characters.
13473 (font::number_to_index): New function.
13474 * troff/input.c (font::number_to_index): New function.
13475 (get_charinfo_by_number, charinfo::get_number,
13476 charinfo::set_number): New functions.
13477 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
13478 (token::process, token::description, token::get_char,
13479 token::add_to_node_list, token::operator==): Handle
13480 TOKEN_NUMBERED_CHAR.
13481 * troff/charinfo.h: Declare get_charinfo_by_number,
13482 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
13484 (charinfo::numbered): New function.
13485 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
13486 * troff/env.h (class environment): Remove declaration of ...
13487 * troff/env.c (environment::make_numbered_char_node): Deleted.
13488 * troff/node.c (make_numbered_node): Deleted.
13489 (class numbered_glyph_node): Remove.
13490 (troff_output_file::put_char_width, troff_output_file::put_char):
13491 Handle numbered chars.
13492 (troff_output_file::numbered_char): Removed.
13493 (tfont::get_code_width): Removed.
13494 (make_glyph_node): Don't search special fonts for numbered
13496 * troff/node.h: Remove declaration of make_numbered_node.
13497 * driver/input.c (do_file): Handle N command.
13498 * driver/printer.h: Add declaration of ...
13499 * driver/printer.c (printer::set_numbered_char): New function.
13500 * dvi/tfmtodit.c (main): Generate unnamed entries.
13501 * ps/devps/afmtodit: Likewise.
13502 * xditview/xtotroff.c (MapFont): Likewise.
13503 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
13505 * tbl/main.c (process_format): If multiple widths are specified
13506 for a column but all the widths are the same, don't give an error
13509 * tbl/table.c (table::do_row): If the current row is all lines and
13510 the stuff doesn't contains a line, mark the top of the row after
13511 printing stuff before the row. If the current row is not all
13512 lines and the stuff doesn't contain a line, don't unnecessarily
13513 mark the top of the row before printing the stuff.
13515 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
13517 * troff/groff.h: Remove MAX_PATH.
13518 * troff/input.c (open_file): Dynamically allocate space for the
13520 (open_mac_file, process_macro_file): Corresponding changes.
13522 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
13524 * troff/node.h (class output_file): Make copy_file pure. Add
13525 vspace method ifdef COLUMN. Add is_printing method.
13526 * troff/node.c: Add class printing_reg. Add class
13527 real_output_file. Derive other output_file classes from
13528 real_output_file; in these classes rename begin_page to
13529 really_begin_page, print_line to really_print_line, copy_file to
13530 really_copy_file, transparent_char to really_transparent_char.
13531 Move output_file::flush to real_output_file. Add printing member
13532 to class output_file.
13533 * troff/div.h: Remove printing member from top_level_diversion.
13534 Add vspace member function to class diversion ifdef COLUMN. Add
13535 some declarations ifdef COLUMN.
13536 * troff/div.c (top_level_diversion::copy_file,
13537 top_level_diversion::transparent_output,
13538 top_level_diversion::output): Don't test printing member before
13540 * troff/input.c: Handle initial variable_space_request ifdef
13542 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
13543 but comment it out.
13545 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
13547 * troff/div.c (diversion::need): Make any space forced. If we
13548 sprung a trap, set truncated_space to minus the distance to the
13549 trap and set needed_space to the amount that was needed.
13550 (top_level_diversion::space): A forced space turns no_space_mode
13552 (class constant_vunits_reg): New class.
13553 (init_div_requests): Implement number registers .trunc and .ne
13554 using constant_vunits_reg.
13555 (class truncated_space_reg): Deleted.
13557 * troff/div.h: Don't have a no_space_mode member in diversion.
13558 Instead have it in top_level_diversion.
13559 * troff/div.c (diversion::diversion): Don't initialize
13561 (top_level_diversion::top_level_diversion): Initialize
13563 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
13564 (macro_diversion::output): Don't clear no_space_mode.
13566 * troff/input.c (diverted_space_node::reread): Don't call
13567 environment::do_break. In fill mode, act like a blank line.
13568 (diverted_copy_file_node::reread): Don't call
13569 environment::do_break.
13571 * troff/div.c (blank_line): New function.
13572 * troff/div.h: Declare it.
13573 * troff/input.c (process_input_stack): Call it.
13575 * troff/div.c (truncated_space_reg::get_string): New function.
13576 (init_div_requests): Bind to .trunc.
13577 (space_request, top_level_diversion::space,
13578 top_level_diversion::output, macro_diversion::space,
13579 macro_diversion::output): Update truncated_space.
13580 (macro_diversion::output): Redo calculations when trap sprung.
13581 (macro_diversion::output, macro_diversion::space): No need for
13584 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
13585 after truncating post line spacing.
13587 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
13589 * ps/devps/prologue (MF, SF): Make them work even if setfont is
13590 defined as a procedure rather than as an operator.
13592 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
13594 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
13596 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
13598 * troff/div.c (top_level_diversion::output): Merge
13599 output_file::print_line and output_file::end_of_line member
13601 * troff/div.h (class output_file):
13602 * troff/node.c (troff_output_file::print_line,
13603 troff_output_file::end_of_line, output_file::end_of_line,
13604 ascii_output_file::print_line, suppress_output_file::print_line):
13605 Corresponding changes.
13607 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
13609 * troff/input.c (token::next): Don't give a warning for `\.'.
13611 * troff/env.c (environment::get_center_lines): New function.
13612 (init_env_requests): Bind number register .ce to it.
13613 * troff/env.h: Declare it.
13614 * tbl/table.c (table::init_output): Define reset macro to restore
13615 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
13617 (table::print): If center option not given, then imply center
13618 option if SAVED_CENTER_REG > 0.
13620 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
13622 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
13623 Troff.ps from DOWNLOAD.
13625 * troff/Makefile: Change comment in DEFINES to avoid confusing
13628 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
13629 code. Don't try to catch errors with stopped.
13630 (check_line_lengths): New function.
13631 * ps/devps/prologue (EXEC): Deleted.
13632 (EBEGIN, EEND): New procedures.
13634 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
13636 * troff/input.c: Include request.h before node.h.
13637 * troff/node.c: Likewise.
13638 * troff/env.c: Likewise.
13639 * troff/div.c: Likewise.
13640 * troff/node.h (class special_node): Store argument as a macro
13641 rather than a char *.
13642 * troff/node.c (special_node::special_node, special_node::copy):
13644 (special_node::~special_node): Deleted.
13645 (special_node::tprint): Deleted.
13646 (special_node::tprint_start, special_node::tprint_end,
13647 special_node::tprint_char): New functions.
13648 (troff_output_file::special): Deleted.
13649 (troff_output_file::start_special, troff_output_file::end_special,
13650 troff_output_file::special_char): New functions.
13651 * troff/input.c (special_node::tprint): New function.
13652 (do_special): Use macro not char *.
13653 (do_transparent_macro): Deleted.
13654 (token::next): Don't call do_transparent_macro.
13656 * troff/input.c (token::next): Add 'Y' case.
13657 (do_transparent_macro): New function.
13658 * troff/node.c (troff_output_file::special): Handle newlines with
13659 argument using new continuation convention.
13660 * driver/input.c (get_string): Cope with continuation convention.
13661 (do_file): Don't call skip_line after calling get_string(1).
13662 * ps/ps.c (ps_printer::special, ps_printer::do_import,
13663 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
13665 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
13668 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
13670 * troff/input.c (asciify): By default, illegal input characters
13671 should return empty string.
13673 * troff/input.c (copy_file): Handle first page transition like title.
13674 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
13676 * troff/input.c (token::next): Improve error message for EOF after
13678 (input_char_description): New function.
13679 (get_char_for_escape_name): Use input_char_description.
13680 (token::next): Warn about unrecognized escape sequences.
13681 (warning_table): Add WARN_ESCAPE.
13682 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
13685 * troff/token.h: Remove declaration of process_input_stack.
13687 * troff/input.c: Remove declaration of init_hyphen_requests.
13688 * troff/request.h: Correct spelling in declaration of same.
13690 * troff/input.c (token::next): Check whether escape_char is 0.
13692 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
13694 * groff.c (main, usage, help): Implement -P and -L options.
13695 * groff.sh: Likewise.
13697 * troff/input.c (token::next): Use some gotos to avoid code
13700 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
13701 Avoid calling symbol::symbol if name empty.
13703 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
13705 * troff/input.c (init_input_requests): Make \n(.x return the major
13706 version number and \n(.y return the minor version number.
13707 * troff/Makefile: Construct file majorminor.c defining
13708 major_version and minor_version automatically from ../VERSION.
13710 * troff/node.c (class glyph_node): Make operator new and operator
13712 (class ligature_node): Similarily.
13714 * troff/input.c (operator==(const macro &, const macro &)): New
13716 (non_interpreted_node::same): Use this.
13717 (string_iterator::string_iterator): Make macro& argument const.
13719 * troff/input.c (input_iterator::get): New function. Don't make
13720 asciify_macro or class non_interpreted_node friends of class
13722 (non_interpreted_node::interpret): Use input_iterator::get.
13723 (asciify_macro): Likewise.
13725 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
13726 ~non_interpreted_node): Deleted.
13727 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
13730 * troff/symbol.h: Make all symbol member functions const.
13732 * lib/strtol.c: New file.
13733 * lib/Makefile: Add strtol.c.
13734 * Makefile: Define STRTOL as strtol.o to include strtol in
13737 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
13739 * pic/troff.c (troff_output::simple_circle): Divide by scale.
13741 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
13743 * troff/input.c (do_special): Use input_level.
13745 * troff/token.h (TOKEN_BACKSPACE): New token.
13746 (token::backspace): New function.
13747 * troff/input.c (token::description, token::next, token::process):
13748 Grok TOKEN_BACKSPACE.
13749 (do_special): Turn TOKEN_BACKSPACE back into \b.
13751 * troff/token.h (token::leader): New function.
13752 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
13754 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
13756 * troff/input.c (do_special): Use token::description in error
13759 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
13761 * troff/input.c (decode_args): Combine quoted and
13762 quote_input_level variables. Make it a for (;;) loop.
13764 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
13766 * troff/input.c (read_long_escape_name): The test for whether to
13767 expand buffer was off by 1.
13768 (read_string): Similarily.
13770 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
13772 * troff/input.c: Use `const int' rather than `static const int'.
13774 * troff/div.h (diversion::copy_file): Declare as pure virtual.
13775 (macro_diversion::copy_file): New function.
13776 * troff/node.h: New class diverted_copy_file_node.
13777 * troff/node.c: Implement it.
13778 * troff/input.c (copy_file): Use diversion::copy_file. Handle
13779 first page transition by pushing a diverted_copy_file_node.
13780 * troff/input.c (token::next, process_input_stack): Don't handle
13783 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
13785 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
13786 whether space widths need adjusting.
13788 * troff/charinfo.h: Generalize translated_to_space to
13789 special_translation so as to allow translation to \&.
13790 * troff/input.c (translate): Allow translation to \&.
13791 (charinfo::*): Corresponding changes.
13792 * troff/node.c (make_node, node::add_char): Corresponding changes.
13793 * troff/node.h (dummy_node::dummy_node): Allow optional first
13796 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
13797 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
13799 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
13800 TOKEN_REQUEST with an argument of TITLE_REQUEST.
13801 (token::process): Grok that.
13802 * troff/input.c (copy_file): Handle first page transition like
13803 title by pushing a COPY_FILE_REQUEST cookie.
13804 (token::next, process_input_stack): Grok that.
13805 * troff/node.h (output_file::copy_file): Add x and y arguments.
13807 * troff/div.c (top_level_diversion::copy_file): Supply them.
13808 * troff/node.c (troff_output_file::copy_file): Add x and y
13809 arguments; moveto specified position. Invalidate font_position
13810 array after copying file.
13811 (output_file::copy_file): New function.
13812 (suppressed_output_file::copy_file, ascii_output::copy_file):
13814 * troff/input.c (transparent_file): New function.
13815 (init_input_requests): Bind to "trf".
13816 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
13817 (process_input_stack): Likewise.
13819 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
13821 * troff/node.c (init_node_requests): New number registers .kern
13822 pointing to global_kern_mode, and .lg pointing to
13823 global_ligature_mode.
13825 * troff/node.c (ligature): Don't change it if we get a bad
13828 * troff/input.c (do_define_string): Don't strip tabs.
13830 * troff/input.c (asciify_macro): Make the string_iterator auto.
13832 * troff/node.c (init_font_requests): Rename to...
13833 (init_node_requests):
13834 * troff/node.h: Change declaration.
13835 * troff/input.c (main): Change call.
13837 * troff/input.c (node::reread, diverted_space_node::reread): New
13839 (process_input_stack): Call reread rather than
13840 get_diverted_space_node.
13841 * troff/node.c (node::get_diverted_space_node,
13842 diverted_space_node::get_diverted_space_node): Removed.
13843 * troff/node.h: Declare reread methods instead of
13844 get_diverted_space_node methods. Make `n' member private.
13845 * troff/input.c: (token::diverted_space): Removed.
13846 * troff/token.h: Removed declaration.
13849 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
13851 * eqn/script.c (script_box::compute_metrics): Don't let
13852 SUP_RAISE_FORMAT become negative.
13854 * tbl/table.c (table::do_row): Entries that don't end in the
13855 this row shouldn't make the row non-blank.
13857 * tbl/table.c (table::make_columns_equal): Only set the width of
13858 columns which are marked as equal.
13860 * tbl/main.c (process_data): Before issuing excess data error,
13861 if last character was a newline unget it; then get it again after
13862 the error. Also include the contents of the entry in the message.
13864 * groff.c: New file.
13865 * Makefile: Build groff from groff.c. Make it possible to use
13866 either groff.sh or groff.c as groff.
13867 * Makefile.bd: Similarily.
13869 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
13871 * groff.sh: Don't delay expansion of $@ in assignment to files.
13872 Remove occurrences of \".
13874 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
13876 * all Makefiles: Simplify and rearrange.
13878 * Makefile: Handle fmod like malloc.
13879 * lib/Makefile: Similarily.
13880 * lib/fmod.c: Remove #ifdef NEED_FMOD.
13882 * Makefile: Rename OPTIMISE to OPTIMIZE.
13884 * groff.sh: Remove assignment to PATH.
13885 * Makefile: Remove SHPATH variable.
13886 * Makefile.bd: Similarily.
13888 * groff.sh: Add -V option to print the pipeline instead of
13891 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
13893 * lib/font.c: Split off file searching into ...
13894 * lib/fontfile.c: New file.
13896 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
13898 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
13900 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
13901 Also change misleading comment.
13902 (table::do_vspan): Change similarily misleading comment.
13903 * tbl/main.c (process_data): A format row with an explicit `s'
13904 uses up a data line, even if all the other columns are `_' or `='.
13906 * troff/input.c (token::description): Fix description of
13907 TOKEN_DUMMY and TOKEN_EMPTY.
13909 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
13911 * groff.sh: Fix description of -Z in help message.
13913 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
13915 * pic/object.c (object_spec::make_object): Allow negative and zero
13917 * pic/pic.y: Give linethick default value of -1.0.
13918 * pic/troff.c (troff_output::troff_output): Initialize
13919 last_line_thickness to BAD_THICKNESS.
13920 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
13921 (troff_output::line_thickness): Canonicalize negative thicknesses
13922 to RELATIVE_THICKNESS.
13923 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
13924 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
13926 (tex_output::start_picture): Set pen_size to -2.0.
13928 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
13929 0, then use 0 linewidth.
13930 (ps_printer::ps_printer): Initialize line_thickness to -1.
13932 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
13934 * ps/devps/symbolchars: Remove `or'.
13935 * ps/tmac.ps: Implement \(or with .char.
13937 * ps/devps/symbolchars: Move most characters into textmap.
13938 * ps/devps/textmap: Add names for troff bracket characters. Remove
13941 * ps/devps/TSymbol.ps: Removed.
13942 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
13943 * ps/tmac.ps: Do with .char what TSymbol did.
13944 * ps/devps/download: Remove TSymbol.
13946 * ps/devps/T: Removed.
13947 * ps/devps/Troff.ps: Removed.
13948 * ps/devps/Troff.afm: Removed.
13949 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
13950 * ps/devps/download: Remove Troff.
13951 * ps/devps/FontMakefile: Remove T target.
13952 * ps/devps/DESC-A4: Remove T from font list.
13953 * ps/devps/DESC-letter: Likewise.
13955 * troff/input.c (macro_to_node): Rename to ...
13956 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
13957 character's definition while processing it.
13958 * troff/node.c (node::add_char, make_node): Change calls to
13959 macro_to_node accordingly.
13961 * troff/input.c (token::next): Translate \_ to \(ul.
13963 * tty/devascii/R.proto: Add `|'.
13964 * tty/devlatin1/R.proto: Likewise.
13966 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
13968 * man: Put the version number in all the man pages.
13970 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
13972 * Makefile.bd: New file.
13973 * README.bd: New file.
13975 * VERSION: New file.
13976 * lib/version.c: Removed.
13977 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
13980 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
13981 environment variable.
13983 * all Makefiles: Split install target into install.bin for
13984 binaries, and install.nobin for everything else.
13985 * Makefile: Add bindist target.
13987 * man/afmtodit.man: New file.
13988 * man/Makefile: Add afmtodit.n to MAN1PAGES.
13989 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
13991 * ps/Makefile: Pass BINDIR to make install in devps.
13993 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
13994 the space character.
13996 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
13998 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
14000 * ps/ps.c: Redo font downloading.
14001 * ps/devps/download: New file.
14002 * ps/devps/Makefile: Add download to DEVICEFILES.
14003 * ps/devps/afmtodit: Remove -d option.
14004 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
14005 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
14006 * ps/devps/zapfdr.ps: Likewise.
14007 * ps/devps/TSymbol.ps: Likewise.
14009 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
14011 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
14013 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
14015 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
14016 then strip the first line if it starts with %.
14017 * Makefile: Add a comment about this.
14019 * man/tfmtodit.man: New file.
14020 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
14021 * dvi/Makefile: Install tfmtodit in BINDIR.
14023 * dvi/tfmtodit.c (usage): Mention -v option.
14025 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
14027 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
14028 * troff/node.c (troff_output_file::transparent_char): Don't call
14031 * eqn: Add check_tabs method to most box classes.
14032 * eqn/box.c (box::top_level): Call check_tabs.
14034 * eqn/script.c (script_box::output): Use \Z.
14035 * eqn/limit.c (limit_box::output): Use \Z.
14037 * eqn/box.c (box::top_level): Use itoa.
14039 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
14041 * dvi/tmac.dvi: Add font translations for CR, C, TT.
14042 * dvi/devdvi/Makefile: Don't make links to CW.
14044 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
14046 * xditview/tmac.X: Likewise.
14048 * troff/node.c: Add font translation feature.
14049 (get_font_translation): New function.
14050 (symbol_fontno): Translate the font name.
14051 (mount_font_no_translate): Rename to mount_font to this.
14052 (mount_font): New function.
14053 (font_family::make_definite): Call mount_font_no_translate instead
14055 (mount_style): Translate the font name.
14056 (font_translate): New function.
14057 (init_font_requests): Bind "ftr" to font_translate.
14059 * ps/devps/prologue (SN): New procedure that rounds a position to
14060 the nearest (pixel + (.25,.25)).
14061 (DL): Use SN to round endpoints.
14063 * lib/version.c: Changed version to 0.5.
14065 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
14067 * Makefile: Move definition of PAGE to the very beginning, so that
14068 people are less likely to miss it.
14070 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
14072 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
14074 * troff/env.c (environment::choose_breakpoint): Make `can't find
14075 breakpoint' error a warning of type WARN_BREAK. Change message to
14076 `can't break line'.
14077 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
14079 * troff/input.c: Add WARN_BREAK to warning_table. Include
14080 WARN_BREAK in DEFAULT_WARNING_MASK.
14082 * tty/tmac.tty: Add definition of \(+-.
14084 * groff.sh: Remove `--' option to set command.
14086 * dvi/devdvi/texsy.map: Remove duplicate md entry.
14088 * ps/devps/eqnchar: Better definition of cdot using md.
14089 * dvi/devdvi/eqnchar: Likewise.
14090 * xditview/devX100/eqnchar: Likewise.
14091 * xditview/devX75/eqnchar: Likewise.
14092 * eqn/lex.c: Add definition of cdot.
14094 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
14096 * troff/input.c (get_optional_char): New function.
14097 * troff/input.c (set_page_character): Use get_optional_char(),
14098 rather than has_arg() and tok.get_char(1).
14099 * troff/env.c (tab_character, leader_character, hyphen_char,
14100 field_characters): Likewise.
14101 (margin_character): Likewise. Also always delete the
14102 margin_character_node.
14104 * troff/input.c (token::get_char): Use token::description.
14106 * troff/input.c (has_arg): Don't skip over tab and \}.
14107 * troff/number.c (start_number): Give a warning if the number
14108 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
14110 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
14112 * troff/input.c (empty_name_warning, non_empty_name_warning): New
14114 (get_name, get_long_name): Use these. Rename `warn' argument to
14117 * troff/node.c (get_fontno): Test that the symbol is not null.
14119 * troff/input.c (token::description): New function.
14120 * troff/number.c (parse_term): Use token::description in `numeric
14121 expression expected' message.
14122 * troff/groff.h: Add WARN_MISSING.
14123 * troff/number.c (start_number): New function.
14124 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
14125 get_incr_number): Use start_number().
14126 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
14128 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
14129 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
14131 * troff/input.c (token::get_char): Use WARN_MISSING.
14132 * troff/input.c (token::delimiter): Use token::description.
14133 * troff/env.c (environment_switch): Back out Aug 3 change.
14134 * troff/input.c (has_arg): Skip over \}s and tabs but give a
14136 * troff/token.h (token::tab): New function.
14137 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
14138 * troff/reg.c (alter_format): Likewise.
14139 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
14141 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
14143 * troff (most files): Redo warnings. Divide warnings into various
14144 categories; warning() has an additional first argument indicating
14145 the category it falls into.
14146 * troff/input.c (main): -w now takes an argument. New option -W.
14147 (enable_warning, disable_warning): New functions.
14149 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
14150 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
14152 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
14154 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
14155 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
14156 * xditview/devX75/eqnchar: Likewise.
14157 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
14159 * eqn/other.c: When bar or over applies to a single character
14160 don't produce an overline_box or an underline_box. Instead produce
14161 an accent_box or an underaccent_box, with the accent a line
14162 whose width is accent_width. New classes underaccent_box,
14163 overline_char_box and underline_char_box.
14164 * eqn/box.h: Move overline_box, underline_box, accent_box class
14165 declarations into eqn/other.c. Add declarations of
14166 make_underline_box, make_overline_box, make_accent_box.
14167 * eqn/eqn.y: Call make_overline_box, make_underline_box
14168 make_accent_box instead of constructors.
14169 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
14171 * eqn/other.c: Add accent_box::~accent_box.
14172 * eqn/box.h: Declare it.
14174 * groff.sh: With -Tps, use eqn -D.
14176 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
14178 (underline_box::output): Similarily.
14179 (accent_box::output): Use \Z.
14181 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
14184 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
14186 * troff/div.c (top_level_diversion::transparent_output(unsigned
14187 char)): Use asciify.
14188 * troff/input.c (asciify): Don't make it static.
14189 * troff/token.h (asciify): Declare it.
14191 * troff/input.c (get_name, get_long_name, token::get_char,
14192 token::delimiter): Add an extra default argument which says
14193 whether a warning should be printed.
14194 * troff: Pass a non-zero argument to one of these rather than
14195 printing a warning directly.
14197 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
14199 * troff: Consistently use symbol::is_null.
14201 * troff/dictionary.h: Move some inline functions into
14204 * troff/request.h: Move inline functions into input.c.
14205 (request_or_macro::invoke): Make it pure.
14207 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
14208 * troff/input.c (init_input_requests): Use class constant_int_reg.
14209 (class compatible_reg): Deleted.
14210 * troff/div.c (init_div_requests): Use class constant_int_reg.
14211 (class last_post_line_extra_space_reg): Deleted.
14213 * troff/env.c (tab_character): Don't change the tab character if
14214 we get an invalid argument.
14215 (hyphen_char): Similarily.
14217 * troff/reg.c (alter_format): Check that nm is not null.
14219 * Makefile, groff.sh: Make it possible to customize the commands
14220 used for printing PostScript and dvi files. Also make it possible
14221 to customize the path used by groff.sh.
14223 * eqn/eqn.y: Make `left' right associative.
14225 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
14227 * pic/pic.h: Added definition of M_SQRT2 for those systems that
14230 * pic/pic.h: Removed definition of INT_MAX.
14232 * troff/node.c (italic_corrected_node::vertical_extent): Omit
14235 * troff/input.c (token::next): Handle \R like \n.
14237 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
14239 * ps/tmac.pc (PSPIC): Simplify.
14241 * troff/env.c (tab_stops::to_string):
14242 * pic/pic.y (object_type_name):
14243 * pic/troff.c (simple_output::line):
14244 * pic/tex.c (tex_output::spline):
14245 * pic/object.c (object_spec::make_object):
14246 * tbl/main.c (process_data): Add cases to switch statements to
14247 avoid cfront warnings. (Some of these are spurious, since the
14248 switch already has a default case.)
14250 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
14251 `ps-'. Don't test systat; instead check number of arguments to
14254 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
14256 * macros/tmac.e: Do not decrease the page offset by 0.5i.
14258 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
14259 Unlink the file as soon as we have opened it, so that we don't
14260 have to bother with signal handlers.
14261 (handler): Deleted.
14262 (fatal_error_exit): Deleted.
14263 (main): Don't call signal.
14265 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
14267 * dvi/devdvi/Makefile: Use the -k option with S and MI.
14269 * pic/pic.y: If there is a label, or an nth construction before
14270 the first `.' in the argument to `with', ignore it and generate a
14272 * pic/lex.c (lex_warning): New function.
14274 * tbl/table.c (table::init_output): In section keep and release
14275 macro, use 0 indent when diverting and the correct indent when
14278 * troff/input.c (interpolate_number_format): Do not interpolate
14279 anything if the number register is not defined.
14281 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
14283 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
14285 * ps/devps/prologue (PICTURE): Set components of graphics state to
14286 their default values.
14288 * ps/devps/text.enc: Add trademark
14289 * ps/devps/textmap: Add names for club, spade, heart, diamond,
14290 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
14291 * ps/devps/symbolchars: Add names for summation and product.
14293 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
14294 suchthat. Add pp. Add upper-case letters.
14296 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
14297 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
14300 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
14301 rA (right angle bracket) to ra. Introduce names for double-headed
14302 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
14303 * ps/devps/textmap: Likewise for ps device.
14304 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
14305 * tty/devascii/R.proto: Rename lA to la and rA to ra.
14306 * tty/devascii/R.proto: Likewise.
14307 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
14309 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
14311 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
14313 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
14316 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
14318 * troff/div.c (when_request): Use symbol::is_null rather than
14319 has_arg to determine whether we have an argument.
14320 (change_trap): Remove the trap if we get an invalid number. Give
14321 an error if we don't get at least the macro name.
14322 (diversion_trap): Remove trap if we get an invalid name or number.
14324 * troff/env.c (environment_switch): Pop if we get an invalid
14325 symbol or numeric expression.
14327 * troff/input.c (do_define_macro): If EOF is encoutered while
14328 defining the macro, do tok.next() before returning.
14330 * troff/token.h (has_arg): Move definition from here, to ...
14331 * troff/input.c (has_arg): ... here
14333 * troff/env.c (space_size): Do nothing if we get an invalid argument.
14334 * troff/input.c (shift): Likewise.
14336 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
14339 * pic/troff.c (troff_output::start_picture): Comment out calls to
14342 * eqn/main.c (do_file): Subtract 1 from current_lineno if
14343 interpret_lf_args succeeds.
14345 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
14346 \\. This avoids problems with \$N.
14348 * groff.sh: Pass -C to preprocessors.
14350 * lib/lf.c (interpret_lf_args): Be more flexible.
14352 * tbl/main.c (main): Add -C option.
14353 (table_input::get): Do not recognize TE if followed by character
14354 other than a space or newline unless -C option given.
14355 (process_input_file): Likewise for lf, TS.
14356 (process_data): Likewise for lf in text blocks.
14358 * eqn/main.c (main): Add -C option.
14359 (do_file): Don't recognize EQ, EN or lf if followed by character
14360 other than space or newline unless -C option given.
14361 * eqn/lex.c (file_input::read_line): Similarily.
14362 * eqn/eqn.h: Declare compatible_flag.
14364 * etc/soelim.c (main): Add -C option.
14365 (interpret_lf_args): Use version in libgroff.
14368 * pic/main.c (main): Add -C option, which sets compatible_flag.
14369 (top_input::get), (top_input::peek): If -C option not given,
14370 do not recognize .PS/.PE/.PF/.lf if followed by a character
14371 other than space or newline.
14372 * pic/lex.c (file_input::read_line): Similarily.
14373 * pic/pic.h: Add declaration of compatible_flag.
14375 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
14377 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
14379 * troff/node.c, troff/node.h: Add `asciify' methods to classes
14380 derived from node. New class space_char_hmotion_node.
14381 * troff/input.c (asciify_macro): New function.
14382 * troff/input.c (init_input_requests): New request `asciify' bound
14384 * macros/mm.diff: New file.
14385 * Makefile: In install.mm target use `patch' to apply
14388 * troff/input.c (macro::print_size): Just print the size in bytes.
14390 * troff/div.c (return_request): Correct the argument
14393 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
14395 * troff/node.h (class composite_node): Add sz member.
14396 * troff/node.c (composite_node::size): Return sz.
14397 * troff/input.c (macro_to_node): Use the initial size in the
14398 environment as the size of the composite_node.
14400 * troff/node.c (node::zero_width_tprint): Provide a reasonable
14403 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
14405 * troff/div.c (change_trap): If we get a bad number expression,
14408 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
14410 * lib/matherr.c (matherr): Define this only if math.h defines
14413 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
14415 * troff/div.c (macro_diversion::distance_to_next_trap): If there
14416 no diversion trap return vunits(INT_MAX - vresolution).
14418 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
14420 * troff/input.c (do_zero_width): New implementation that doesn't
14421 use a temporary environment. Use instead:
14422 (token::add_to_node_list): New function.
14423 * troff/env.c (environment::get_prev_char_height),
14424 (environment::get_prev_char_height),
14425 (environment::get_prev_char_skew): New functions.
14426 (environment::get_prev_char): New function.
14427 (environment::get_prev_char_width): Change to use get_prev_char.
14428 (init_env_request): Implement new registers .cht, .cdp, .csk.
14429 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
14430 \Z being processed in a separate environment.
14432 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
14434 * tbl/table.c: Removed TABLE_BOTTOM_REG.
14436 * tbl/table.c (table::init_output): In the section release macro,
14437 give a warning message if the section won't fit on one page.
14439 * tbl/table.c (table::do_top): Emit table keep only if table is
14441 (table::do_bottom): Likewise for table release.
14442 (table::table), (table::add_vertical_rule): Remove reference to
14444 * tbl/table.h: Remove keep member.
14446 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
14447 SECTION_RELEASE_MACRO, if there's not enough space before the next
14448 trap to output the diversion, call T# ourselves, set
14449 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
14450 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
14451 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
14452 vertical position and return to it before turning traps on again.
14454 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
14456 * troff/node.c, troff/node.h: In classes derived from node,
14457 replace prev_char_width method by last_char_node method.
14458 * troff/env.c (environment::get_prev_char_width): Use
14459 node::last_char_node rather than node::get_prev_char_width.
14461 * Makefile: Added comment about -fno-inline on 68030-based
14464 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
14465 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
14466 expressions using sizeof to int.
14467 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
14469 * macros/tmac.e (TS): Don't move @f back past the current
14472 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
14474 * ps/ps.c (main): Buffer stderr.
14475 * dvi/dvi.c (main): Likewise.
14476 * tty/tty.c (main): Likewise.
14478 * ps/ps.c (ps_printer::do_import): Improve error handling.
14480 * troff/input.c (abort_request): Use asciify.
14482 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
14483 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
14484 type of first argument int rather than char. This works around a
14485 bug on the 68030 based Apollo using g++ 1.37.1.
14487 * tbl/table.h (class table): Add `keep' member.
14488 * tbl/table.c (table::table): Initialize `keep'.
14489 (table::add_vertical_rule): Set `keep' to 1.
14490 (table::do_top): Only emit table keep macro is `keep' is non-zero.
14491 (table::do_bottom): Likewise for table release macro.
14492 (table::do_row): Emit section keep macro even if the row is 0.
14494 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
14496 * macros/tmac.e (@C): Preserve the font family across the change
14499 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
14501 * lib/font.c: Initialize font::hor and font::vert to 1.
14502 (font::load_desc): Check the values of font::hor and font::vert.
14504 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
14505 be included in a C compilation.
14506 (iftoa): Use INT_DIGITS. Include lib.h.
14508 (as_string): Likewise.
14509 * tbl/table.c: Removed definition of INT_DIGITS.
14510 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
14511 * troff/input.c (input_input_requests): Likewise.
14512 * ps/ps.c (make_encoding_name): Likewise.
14513 (ps_printer::set_style): Likewise.
14514 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
14516 * tty/devascii/R.proto: Map fm onto '.
14517 * tty/devlatin1/R.proto: Likewise.
14519 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
14521 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
14522 argument to \w is at a different input level.
14524 * tbl/table.c (table::init_output): Define a new macro
14525 REPEATED_VPT_MACRO, like vpt but if in a diversion also
14526 transparently outputs itself.
14527 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
14529 (table::do_row): Likewise.
14531 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
14532 TRANSPARENT_STRING_NAME.
14534 * tbl/table.c (table::init_output): In the table release macro
14535 print an error message and don't produce any output if after
14536 issuing the need request the table still will not fit. Also
14537 remove the diversion after bringing it back.
14539 * tbl/table.c (table::init_output): Define a new macro
14540 REPEATED_MARK_MACRO, like mk but if in a diversion also
14541 transparently outputs itself.
14542 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
14543 is necessary because .TH might not call .T#.
14544 (table::do_top): Likewise TOP_REG.
14545 (table::define_bottom_macro): If TOP_REG is no longer valid, use
14546 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
14547 table header might contain just the two top rules.
14549 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
14551 * troff/div.c: Implement new request `ptr' to print all traps.
14553 * troff/env.c (init_env_requests): Implement `.tabs' reg with
14554 init_string_env_reg.
14555 * troff/env.c (class tab_reg): Deleted.
14557 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
14559 * troff/div.c: New number register .pn returns the number of the
14560 next page as set by the pn request.
14562 * macros/tmac.an: Redid headers and footers. Number each manual
14563 entry starting from 1 unless \nC is > 0, like Sun. Added an
14564 optional 5th argument to .TH which specifies the manual name and
14565 appears in the center of the header. Understand the X, P and D
14566 registers like Sun.
14568 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
14570 * troff/env.c (init_env_requests): New number register `.lt' to
14571 return the title length.
14573 * troff/node.h (class transparent_dummy_node): New class.
14574 * troff/node.c (class transparent_dummy_node): Provide member
14576 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
14579 * troff/input.c (token::next): New escape sequence \).
14580 * troff/input.c (get_copy): Recognize \) in copy mode.
14582 * troff/input.c (input_stack::clear): New function.
14583 * troff/input.c (exit_request): Use input_stack::clear.
14585 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
14586 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
14588 * troff/env.c: Move set_page_character to input.c. Move
14589 page_character to input.c also.
14590 * troff/env.c (title): Split off the reading of the parts of the
14591 title into read_title_parts.
14592 * troff/input.c (read_title_parts): New function. Check the
14593 input_level when testing whether a token matches the delimiter.
14595 * troff/input.c (exit_request): New function.
14596 * troff/input.c (init_input_requests): Bind ex request to
14597 exit_request rather than exit_groff.
14599 * troff/input.c (exit_groff): Call tok.next() before
14600 process_input_stack().
14602 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
14604 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
14605 * troff/env.h: ditto.
14606 * troff/input.c: ditto.
14608 * troff/env.c (environment::is_empty): Test pending_lines.
14610 * troff/env.c (environment::have_pending_lines): Removed.
14612 * troff/input.c: Add request to flush pending lines from the
14615 * troff/env.c, troff/env.h: Add automatic widow control feature.
14617 * troff/input.c (exit_groff): Do process_input_stack() after
14618 do_break() but before setting exit_flag to 2.
14620 * troff/input.c: Remove FLUSH_PENDING_LINES and
14621 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
14622 environment after END_TRAP token seen, but only if there aren't
14623 any more traps still unfinished.
14624 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
14626 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
14628 * troff/env.c: Rename the `retain_size' member of class
14629 pending_output_line to `no_fill'.
14631 * troff/env.c (title): When the line is output, make the
14632 retain_size argument !fill.
14634 * troff/node.h: Add `hyphenated' member to struct breakpoint.
14635 * troff/node.c (space_node::get_breakpoints),
14636 (dbreak_node::get_breakpoints): Fill this in.
14637 * troff/env.c: Allow specification of maximum number of
14638 consecutive hyphenated lines.
14640 * troff/env.c (environment::is_empty): Add test for !current_tab.
14642 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
14644 * troff/env.c (environment::hyphenate_line): Don't completely give
14645 up if the word is not to be hyphenated; continue so that breaks
14646 can be made at break_char_node's.
14648 * lib/lib.h: Only define INT_MAX if it's not already defined;
14649 undef INT_MIN if it's already defined.
14651 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
14653 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
14654 This works around a bug in AT&T C++ 2.0 used with an ANSI C
14657 * macros/tmac.an (an-header): Set no-space mode.
14659 * macros/tmac.an (TH): Start a new page if necessary.
14661 * Started using ChangeLog at version 0.4.
14664 version-control: never