1 2004-10-10 Gaius Mulley <gaius@glam.ac.uk>
3 * src/roff/troff/node.cpp: New extern `debug_state'.
4 Include `stringclass.h' and `mtsm.h'.
5 Implement new classes and class members from `node.h'.
6 (real_output_file): Make `fp' public.
7 (troff_output_file): New variables `cur_div_level' and `tag_list'.
9 (troff_output_file::really_print_line): Check whether we should push
10 the current troff state and use the state at the start of the
11 invocation of this diversion.
12 (troff_output_file::add_to_tag_list): New member function.
13 (node::add_char): Handle `glyph_comp_np'.
15 * src/roff/troff/node.h: Include `mtsm.h'.
16 (node): New variables `state', `push_state', `div_nest_level',
17 `is_special'. Update constructors, all descendants.
18 Pass additional argument to `add_char' member function.
19 New virtual member functions `is_tag', `debug_node',
20 `debug_node_list'. Update all descendants.
21 (tag_node): New class for handling tags.
22 (output_file): Add variable `state'.
24 2004-10-09 Gaius Mulley <gaius@glam.ac.uk>
26 * src/roff/troff/mtsm.cpp, src/roff/troff/mtsm.h: New files,
27 providing a minimal troff state machine to emit meta tags for the
28 post-grohtml device driver.
30 * src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS): Handle new
33 2004-10-09 Werner LEMBERG <wl@gnu.org>
35 * tmac/trace.tmac: Fix handling of `am' and `am1' calls.
37 2004-10-06 Gaius Mulley <gaius@glam.ac.uk>
39 * src/roff/troff/column.cpp (vjustify_node::copy): Updated.
41 * src/roff/troff/div.h: Include `mtsm.h'.
42 (diversion): New variables `any_chars_added', `needs_push',
43 `saved_seen_break', `saved_seen_space', `saved_seen_eol',
44 `saved_suppress_next_eol', `modified_tag'.
45 New virtual member function `is_diversion'. Update all descendants.
47 * src/roff/troff/div.cpp (diversion::diversion,
48 macro_diversion::macro_diversion): Updated.
49 (do_divert): Handle `seen_break', `seen_space', `seen_eol',
51 (top_level_diversion::space): Handle `curenv->seen_space'.
52 (page_offset): Update tag handling.
53 (space_request, blank_line, flush_output): Don't call `add_html_tag'.
55 * src/roff/troff/env.h (environment): Make `tabs' public.
56 Remove `ignore_next_eol', `emitted_node'.
57 Update `output_line', `output'.
58 New variables `seen_space', `seen_eol', `suppress_next_eol',
60 New member functions `construct_state', `make_tag',
61 `construct_format_state, `construct_new_line_state,
63 Remove `add_html_tag', `make_html_tag'.
65 * src/roff/troff/env.cpp: New externs `suppress_push',
66 `get_diversion_state', `global_diverted_space'.
67 (pending_output_line): New variable `was_centered'.
68 Update constructor and all callers.
69 (pending_output_line::output): Call `curenv->construct_format_state'.
70 (environment::environment, environment::copy): Updated.
71 (environment::output): Handle `was_centered'.
72 (environment::add_char): Handle construct and diversion state.
73 (environment::add_node): Handle construct state.
74 (environment::newline): Handle `was_centered'.
75 (environment::output_line): Updated.
76 (environment::possibly_break_line): Updated.
78 (environment::add_html_tag): Replaced with...
79 (environment::make_tag): New function.
80 (environment::add_html_tag_tabs, environment::make_html_tag): Removed.
81 (environment::dump_troff_state): New debugging function.
82 (environment::construct_state, environment::construct_format_state,
83 environment::construct_new_line_state): New functions.
84 (environment::do_break): Updated.
85 Handle `global_diverted_space'.
86 (environment::handle_tag): Update tag handling.
87 (point_size, fill, do_break_request): Don't call `add_html_tag'.
88 (no_fill): Don't call `add_html_tag'.
89 Set `suppress_next_eol'.
90 (center, right_justify, line_length, indent, temporary_indent,
94 * src/roff/troff/input.cpp: Don't include `stringclass.h'.
95 (input_iterator): New variables `is_diversion', `diversion_state'.
97 (input_stack): New member functions `get_div_level',
98 `get_diversion_state', `check_end_diversion'.
99 New variables `div_level', `diversion_state'. Initialize them.
100 (suppress_push, global_diverted_space): New global variables.
101 (input_stack::finish_get, input_stack::finish_peek,
102 input_stack::remove_boundary, input_stack::end_file,
103 input_stack::clear, input_stack::pop_macro): Call
104 `check_end_diversion'.
105 (input_stack::push): Handle `div_level' and `diversion_state'.
106 (get_diversion_state): New function.
107 (diverted_space_node::reread): Handle `global_diverted_space'.
108 (macro::macro): Update constructors.
109 (macro::is_diversion): New function.
110 (macro::operator=): Set `is_a_diversion'.
111 (string_iterator): New member function `is_diversion'.
112 (string_iterator::string_iterator): Update constructors.
113 (string_iterator::fill): Set `div_nest_level'.
114 (macro_iterator): New member function `is_diversion'.
115 (do_if_request): Handle `suppress_push'.
116 (tag, taga): New functions.
117 (init_input_requests): Add `tag' and `taga' requests.
119 2004-10-05 Gaius Mulley <gaius@glam.ac.uk>
121 * src/include/font.h (font): New member function
122 `get_image_generator'.
123 New variables `unscaled_charwidths' and `image_generator'.
125 * src/libs/libgroff/font.cpp (font::get_width): Always return the
126 character's unscaled width if `font::unscaled_charwidths' is set.
127 (font::get_image_generator): New function.
128 (font::load_desc): Check the `unscaled_charwidths' and
129 `image_generator' keywords.
131 * src/libs/libgroff/fontfile.cpp: Initialize
132 `font::unscaled_charwidths' and `font::image_generator'.
134 * font/devhtml/DESC.proto: s/html/unscaled_charwidths/.
136 * font/devhtml/Makefile.sub (DESC): Set `image_generator' keyword.
138 * man/groff_font.man: Document `unscaled_charwidths' and
141 * src/preproc/html/pre-html.cpp: Include `device.h'.
142 (image_gen): New global variable.
143 (imageList::createPage): Use `image_gen'.
144 (main): Use `image_generator' keyword.
146 2004-10-04 Gaius Mulley <gaius@glam.ac.uk>
148 * tmac/html.tmac: Handle \[sqrtex].
150 2004-10-04 Gaius Mulley <gaius@glam.ac.uk>
152 * src/include/printer.h (printer): New virtual method `round_width'.
154 * src/devices/grodvi/dvi.cpp, src/devices/grolbp/lbp.cpp,
155 src/devices/grolj4/lj4.cpp, src/devices/grops/ps.cpp,
156 src/devices/grotty/tty.cpp (printer::round_width): New function
159 * src/devices/grohtml/post-html.cpp (printer::round_width): New
161 (html_printer::set_numbered_char): Use it.
163 2004-10-03 Gaius Mulley <gaius@glam.ac.uk>
165 * aclocal.m4 (GROFF_GHOSTSCRIPT_PATH): New macro.
167 * configure.ac: Call GROFF_GHOSTSCRIPT_PATH.
169 * configure: Regenerated.
171 * Makefile.in (GHOSTSCRIPT): New variable.
172 (MDEFINES): Add GHOSTSCRIPT.
174 2004-10-03 Werner LEMBERG <wl@gnu.org>
176 * INSTALL.gen: Updated (taken from texinfo CVS).
178 2004-09-28 Werner LEMBERG <wl@gnu.org>
182 2004-09-28 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
184 * tmac/groff_www.man: Revised and updated.
186 2004-09-26 Werner LEMBERG <wl@gnu.org>
188 Fix \$@ and \$* to handle any number of arguments.
190 * src/roff/troff/input.h (BEGIN_QUOTE, END_QUOTE): New special
193 * src/roff/troff/input.cpp (input_iterator::internal_level):
195 (input_stack): New member functions `increase_level' and
197 (input_stack::get_level): Don't use `internal_level'.
198 (get_copy, token::next): Handle BEGIN_QUOTE and END_QUOTE.
199 (end_quote_iterator): Completely removed.
200 (interpolate_arg): Build string for \$@ and \$* which is then
201 pushed onto the input stack.
203 2004-09-23 Keith Marshall <keith.d.marshall@ntlworld.com>
205 * tmac/groff_ms.man, doc/groff.texinfo: Document changes from
208 2004-09-23 Werner LEMBERG <wl@gnu.org>
210 * tmac/an-old.tmac (ne): Using default scaling operator.
212 2004-09-19 Keith Marshall <keith.d.marshall@ntlworld.com>
214 This change implements the following features:
217 New numeric register: Defines number of lines following LP, PP,
218 QP, IP or XP, which must be kept together, before any automatic
219 page break. If insufficient space remains on the current page, a
220 page break is forced before the new paragraph begins.
223 New numeric register: Sets number of lines of following paragraph
224 which must be kept with a heading, defined by NH or SH, before any
225 automatic page break. If insufficient space remains on the
226 current page, a page break is forced before the heading.
229 (Thanks to Joerg van den Hoff, for this idea).
231 New numeric register: Sets the first level of heading (set with
232 NH), which will keep the same point size as body text; e.g. if
233 GROWPS is set to 3, .NH 3, .NH 4, ... will produce headings at the
234 point size specified by \n[PS], but .NH 2 and .NH 1 will have
235 progressively larger point sizes, determined by \n[PSINCR] (see
239 New numeric register: Sets the point size increment for each level
240 of heading, (set with NH), below the threshold level set by
241 GROWPS; e.g. if \n[PS] = 10, \n[GROWPS] = 3 and \n[PSINCR] = 2.0p,
242 then .NH 1 will produce 14pt headings, .NH 2 will produce 12pt,
243 and all other levels will remain at 10pt, (because \n[PS] = 10).
246 Existing macro now accepts a numeric argument, to make heading
247 size match that of NH with same argument value, when the
248 GROWPS/PSINCR feature is enabled.
251 New string, set by NH macro, replaces the existing (undocumented)
252 use of SN, to represent the assigned section number.
255 New string, set by NH macro, represents the assigned section
256 number, but omits the terminal period (periods at intermediate
257 levels are retained).
260 String set by NH macro, originally undocumented, now implemented
261 as an alias for SN-DOT (which reproduces original behaviour).
263 * tmac/s.tmac (PORPHANS): New register.
265 (HORPHANS, GROWPS, PSINCR): New registers.
266 (SH-NO-TAG, @SH): Use them.
269 2004-09-19 Keith Marshall <keith.d.marshall@ntlworld.com>
271 * NEWS, doc/groff.texinfo, tmac/groff_ms.man: Document the deletion
272 of `Ds' and `De' macros.
274 2004-09-10 Werner LEMBERG <wl@gnu.org>
276 In tbl, handle \a as an interpreted leader character if in
279 * src/preproc/tbl/table.h (PREFIX, PREFIX_CHAR, LEADER,
280 LEADER_CHAR): New macros.
281 (compatible_flag): New declaration.
283 * src/preproc/tbl/main.cpp (table_input): Add LEADER_1, LEADER_2,
284 LEADER_3, and LEADER_4 to `state'.
285 (table_input::get): Handle `\a'.
287 * src/preproc/tbl/table.cpp (PREFIX): Removed.
288 (LEADER_REG): New macro.
289 (table::init_output): Define LEADER_REG string register if in
292 * src/preproc/tbl/tbl.man: Document it.
294 2004-08-18 Werner LEMBERG <wl@gnu.org>
296 * tmac/doc.tmac (An): Fix error message.
298 2004-08-06 Werner LEMBERG <wl@gnu.org>
300 * src/preproc/tbl/main.cpp (main): Call `fatal' not `error' if a
301 file can't be opened. UNIX tbl has the same behaviour.
303 2004-08-05 Y T <doarhop@hotmail.com>
305 * src/preproc/grn/hdb.cpp (compatibility_flag): Add declaration.
306 (DBRead): If in compatibility mode, take into account the text
307 when computing figure boundaries.
309 2004-08-05 Werner LEMBERG <wl@gnu.org>
311 * src/preproc/soelim/soelim.man: Improved. Based on suggestions
312 from Tadziu Hoffmann.
314 2004-08-03 Werner LEMBERG <wl@gnu.org>
316 * doc/meref.me: Document `_M' register.
318 2004-08-03 Martin Husemann <martin@duskware.de>
320 Make hpftodit work correctly on big-endian systems.
322 * src/utils/hpftodit/hpftodit.cpp (File): New method
323 `get_uint32(char *)'.
324 (entry): New member `orig_value'.
325 (read_tags): Use new method.
326 (output_font_name, read_and_output_pcltypeface, dump_ascii):
329 2004-08-01 Werner LEMBERG <wl@gnu.org>
331 * tmac/s.tmac: Undo change 2003-06-29. The proper macro definitions
332 are already in X11's `macros.t' file.
334 2004-08-01 Jeff Conrad <jeff_conrad@msn.com>
336 * src/utils/hpftodit/hfptodit.cpp (output_font_name, dump_ascii):
338 (read_and_output_pcltypeface): Handle strings with length <= 4.
340 2004-07-27 Egil Kvaleberg <egil@kvaleberg.no>
342 * tmac/s.tmac (pg@top): Don't save `PO' register.
343 (pg*end-col, pg*end-page): Directly use `PO' register.
345 2004-07-27 Werner LEMBERG <wl@gnu.org>
347 * man/groff_tmac.man: Mention `trace' and `pic' macro packages.
349 * src/preproc/refer/refer.cpp (output_references): Check for
351 * src/preproc/refer/refer.man: Improve documentation of
352 `bibliography' command.
354 2004-07-26 Werner LEMBERG <wl@gnu.org>
356 Add requests `fcolor' and `gcolor'.
358 * src/roff/troff/env.cpp (fill_color_change, glyph_color_change):
360 (init_env_requests): Add `fcolor' and `gcolor'.
362 * src/roff/troff/input.h: Export do_glyph_color and do_fill_color.
364 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
365 Document new requests.
367 2004-07-24 Werner LEMBERG <wl@gnu.org>
369 Add support for fractional point sizes in ms macros. A value for
370 PS, VS, FPS, and FVS greater than or equal to 1000 is always divided
371 by 1000. For example, `.nr PS 10250' sets the font size to 10.25p.
373 * tmac/s.tmac (@AU, @AI, par@load-init, par@init, par@reset, NL,
374 PX): Handle fractional point sizes for PS, VS, FPS, and FVS.
376 * tmac/groff_ms.man, docs/groff.texinfo, NEWS: Document it.
378 2004-07-19 Werner LEMBERG <wl@gnu.org>
380 * src/preproc/pic/lex.cpp (for_input): Add member `from'.
382 (do_for, for_input::get, for_input::peek): Handle negative `by'.
383 * src/preproc/pic/pic.man, doc/pic.ms, NEWS: Document it.
385 2004-07-08 Thomas Klausner <wiz@netbsd.org>
387 * tmac/doc-syms (doc-str-St--p1003.1-2004): New string.
388 * tmac/groff_mdoc.man: Updated.
390 2004-07-05 Werner LEMBERG <wl@gnu.org>
392 * doc/groff.texinfo: Further improve documentation of `hcode'.
394 2004-07-04 Sang Dae Yu <sdyu@bh.knu.ac.kr>
396 Improve appearance of arrows in pic.
398 * src/preproc/pic/object.cpp (draw_arrow): Make outline of filled
400 Use two line segments for drawing non-filled arrow head.
401 (line_object::print, spline_object::print): Shorten line length to
402 avoid arrow sticking.
403 (arc_object::print): Take arrow direction into account.
405 2004-07-03 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
407 * tmac/groff_www.man: Update documentation of .MPIMG.
409 2004-07-03 Werner LEMBERG <wl@gnu.org>
411 * tmac/an-old.tmac (RI): Always start with font `R'.
412 (RI, IR): Properly end with font `R'.
414 2004-07-02 Paul Eggert <eggert@cs.ucla.edu>
416 * man/ditroff.man, man/groff_font.man, man/groff_out.man,
417 src/devices/grohtml/grohtml.man, src/preproc/grn/grn.man,
418 src/preproc/pic/pic.man, tmac/groff_man.man, tmac/groff_ms.man:
419 Don't pass more than six arguments to .R, .I, .B, etc., for
420 compatibility with traditional troff macros.
422 2004-07-02 Werner LEMBERG <wl@gnu.org>
424 * src/roff/troff/input.h: s/COMPATIBLE_SAVE/PUSH_GROFF_MODE/.
425 s/COMPATIBLE_RESTORE/POP_GROFFCOMP_MODE/.
427 (PUSH_COMP_MODE): New internal character constant.
430 * src/roff/troff/input.cpp (get_copy): Handle PUSH_GROFF_MODE,
431 PUSH_COMP_MODE, and POP_GROFFCOMP_MODE.
432 (token::next, macro::append): Handle PUSH_COMP_MODE.
433 (decode_args): Add PUSH_GROFF_MODE or PUSH_COMP_MODE before and
434 POP_GROFFCOMP after each of the decoded arguments to make them
435 independent from the compatibility mode status.
436 (comp_mode): Add `COMP_ENABLE'.
437 (do_define_string, do_define_macro): Handle COMP_ENABLE.
438 (define_string, append_string, define_macro, define_indirect_macro,
439 append_macro, append_indirect_macro): Handle `compatible_flag'.
440 (chop_macro, substring_request, asciify): Handle PUSH_COMP_MODE.
442 * man/groff_diff.man, doc/groff.texinfo: Updated.
444 2004-07-01 Werner LEMBERG <wl@gnu.org>
446 * doc/groff.texinfo: Improve documentation of `hcode'.
447 Use @documentencoding and convert document to latin-1; to do that
448 make latin characters active and assign proper macros (within a
449 @tex...@end tex environment).
450 * doc/Makefile.in (.texinfo.html, groff): Use --enable-encoding.
451 * doc/Makefile.sub (groff): Ditto.
453 2004-06-29 Werner LEMBERG <wl@gnu.org>
455 Implement two new conditional operators `F <name>' and `S <name>'
456 which check whether <name> is a valid font or style, respectively.
458 * src/libs/libgroff/font.cpp (text_file): Add `silent' member.
459 (text_file::text_file): Updated.
460 (text_file::error): Don't emit message if `silent' is set.
461 (font::load_font): Add optional third argument (which is directly
463 (font::load): Add optional second argument to check the header of
464 a font only, without emitting warning or error messages.
465 * src/include/font.h (font): Updated.
467 * src/roff/troff/input.cpp (do_if_request): Implement `S' and `F'
469 * src/roff/troff/node.cpp (mount_font_no_translate): Add optional
470 fourth argument to check a font without mounting.
471 (check_font, check_style): New functions.
472 * src/roff/troff/node.h: Updated.
474 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
477 2004-06-27 Werner LEMBERG <wl@gnu.org>
479 Implement new string-valued register `.sty' to return the current
482 * env.cpp (environment::get_style_name_string): New function.
483 (init_env_requests): Add `.sty' register.
484 * env.h (environment): Updated.
485 * node.cpp (font_info): Make `get_style_name' a friend.
486 (get_style_name): New function.
489 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
492 2004-06-15 Werner LEMBERG <wl@gnu.org>
494 * src/preproc/tbl/main.cpp (process_data) <GOT_RIGHT_BRACE>: Handle
497 2004-06-10 Colin Percival <colin.percival@wadham.ox.ac.uk>
499 * doc/meintro.me, doc/meref.me: Don't use \*[td], \n[dy], \*[mo],
500 and \n[mo] to avoid dependency on current date.
502 2004-06-08 Werner LEMBERG <wl@gnu.org>
504 * Makefile.sub (install_data): New target.
506 2004-06-04 Werner LEMBERG <wl@gnu.org>
508 * src/libs/libxutil/Makefile.sub (EXTRA_CFLAGS): Define.
510 2004-06-03 Werner LEMBERG <wl@gnu.org>
512 * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Fix typo and
514 (install_data): Add $(srcdir).
516 * src/utils/xtotroff/Makefile.sub (EXTRA_LDFLAGS): Fix order of
519 2004-06-02 Werner LEMBERG <wl@gnu.org>
521 * aclocal.m4 (GROFF_X11): s/have_no_x/groff_no_x/.
522 Add X11 stuff to CFLAGS, LDFLAGS, and LIBS temporarily.
523 Add test for Xmu library.
524 (GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
525 GROFF_APPRESDIR_DEFAULT): New macros.
527 * configure.ac: Call GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
528 and GROFF_APPRESDIR_DEFAULT.
530 * configure: Regenerated.
532 * Makefile.in (appresdir): New variable.
533 (MDEFINES): Add appresdir.
535 * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Add -Xmu and
537 (install_data, uninstall_sub): New targets to handle GXditview.ad.
539 * src/utils/indxbib/Makefiles.ub (install_data): Depend on
540 `$(srcdir)/eign', not `eign'.
542 * MANIFEST, INSTALL, NEWS, PROBLEMS: Updated.
544 * man/groff_out.man, man/roff.man, src/devices/grops/grops.man,
545 src/devices/xditview/gxditview.man, src/roff/groff/groff.man:
546 Protect (g)xditview with `\%' to avoid hyphenation.
547 Other minor formatting.
549 2004-06-01 Werner LEMBERG <wl@gnu.org>
551 Integrate gxditview into groff's standard directory hierarchy.
553 * src/xditview/*: Moved to ...
554 * src/devices/xditview/*: Here.
555 Moved DviChar.h and XFontName.h to src/include.
556 Moved DviChar.c and XFontName.c to new directory src/libs/libxutil.
557 Split off `xmalloc' into new file src/libs/libxutil/xmalloc.c.
558 Moved xtotroff.c to new directory src/utils/xtotroff.
559 Provide proper Makefile.sub files (reusing the stuff from
561 DESC renamed to DESC.in.
562 Removed GXDitview-ad.h, INSTALL, Imakefile.in.
563 Converted everything from K&R to ANSI C.
564 Decorated with const where appropriate.
565 Cast string constants with `String' and `char *' where appropriate.
566 Made it compile with C++ (used as a C compiler).
567 Removed other minor compiler warnings.
569 * src/devices/xditview/device.c: Include config.h, string.h, and
571 Don't declare `exit', `strtok', `strchr', and `getenv'.
574 * src/devices/xditview/font.c: Don't declare `XParseFontName' and
577 * src/devices/xditview/xditview.c: Include config.h.
578 Include stdio.h earlier.
579 Protect declaration of `popen' and `pclose' with
580 NEED_DECLARATION_POPEN and NEED_DECLARATION_PCLOSE.
581 Replace `caddr_t' with `XtPointer'.
582 (MakePromptFunc): New typedef.
583 (DoPrint): Use RETSIGTYPE.
584 (promptfunction): Change type to MakePromptFunc.
585 (MakePrompt): Use MakePromptFunc for third argument.
588 * src/devices/xditview/ad2c: Add casts to `String'.
590 * src/include/XFontName.h (XFontNameString): Don't use array
592 Add prototypes for `XParseFontName', `XFormatFontName',
593 `XCompareFontName', and `XCopyFontName'.
595 * src/include/Makefile.sub (HDRS): Add `DviChar.h' and
598 * src/utils/xtotroff/xtotroff.c: Include getopt.h.
599 Don't declare `XParseFontName' and `XFormatFontName'.
601 (main): Remove `optind' and `optarg'.
603 * Makefile.in (XDEVDIRS, XPROGDIRS, XLIBDIRS): New variables
604 (to select programs which need X).
605 Make XDEVIDIRS depend on `FORCE'.
606 (X_CFLAGS, X_LIBS, X_EXTRA_LIBS, X_PRE_LIBS): New variables (for
609 (LIBDIRS): Use XLIBDIRS.
610 (CPROGDIRS): Use XPROGDIRS.
611 (DEVDIRS): Remove font directories for gxditview.
612 (ALLDIRS, DISTDIRS): Add XDEVDIRS.
613 (EXTRADIRS): Remove src/xditview.
615 * Makefile.sub (DISCLEANFILES): Updated.
617 * Makefile.comm (LIBXUTIL): New variable.
618 (.cpp.o, .cpp.obj): Handle EXTRA_CCFLAGS.
619 (.c.o, .c.obj, .y.o): Handle EXTRA_CFLAGS.
621 * Makefile.cpg, Makefile.ccpg ($PROG): Handle EXTRA_LDFLAGS.
623 * aclocal.m4 (GROFF_X11): New function.
625 * configure.ac: Call GROFF_X11.
626 Don't create src/xditview/Imakefile.
627 Don't emit notice how to build gxditview.
629 * configure: Regenerated.
631 * test-groff.in (GROFF_BIN_PATH, XENVIRONMENT): Updated.
633 2004-05-28 Akihiro Sagawa <sagawa@sohgoh.net>
635 * Makefile.in (CPPFLAGS): Define.
636 (MDEFINES): Add CPPFLAGS.
638 2004-05-27 Werner LEMBERG <wl@gnu.org>
640 * arch/misc/Makefile.sub (shdeps.sed): Use $(srcdir).
642 2004-05-26 Niklas Edmundsson <nikke@acc.umu.se>
644 Fix problems with `friend name injections'.
646 * src/preproc/eqn/box.h (make_mark_box, make_lineup_box,
647 make_script_box), src/roff/troff/div.h (end_diversions),
648 src/roff/troff/env.h (title), input.cpp (process_input_stack): Undo
651 2004-05-25 Bernd Warken <bwarken@mayn.de>
653 * src/preproc/pic/pic.man, doc/pic.ms: Add example for `command'.
655 2004-05-25 Werner LEMBERG <wl@gnu.org>
657 * src/libs/libgroff/cset.cpp, src/libs/libgroff/lf.cpp,
658 src/libs/libgroff/color.cpp: Include lib.h.
660 2004-05-25 Paul Eggert <eggert@cs.ucla.edu>
662 * PROBLEMS: Update documentation for problems with Sun C++ 5.0
663 through Forte 6u1, and for how to get GNU make on Solaris.
665 2004-05-24 Werner LEMBERG <wl@gnu.org>
667 * PROBLEMS: Document problems with gcc 3.4.0 on Sun. Reported
670 2004-05-15 Keith Marshall <keith.d.marshall@ntlworld.com>
672 * arch/misc/Makefile.sub (shdeps.sed): Don't use `$<' in explicit
675 2005-05-14 Werner LEMBERG <wl@gnu.org>
677 * REVISION: Set to 2.
679 * aclocal.m4 (GROFF_STDINT_H): Removed.
680 (GROFF_INTTYPES_H): Define HAVE_CC_INTTYPES_H.
682 * configure.ac: Updated.
683 * configure, src/include/config.hin: Regenerated.
685 * src/libs/libgroff/tmpname.cpp: Don't include stdint.h but
686 inttypes.h conditionally.
688 2003-05-13 Werner LEMBERG <wl@gnu.org>
690 Version 1.19.1 released
691 =======================
693 2004-05-10 Stephen Gildea <http://www.gildea.com/stephen>
695 * src/preproc/refer/label.y (same_author_last_name,
696 same_author_name): Handle empty sort keys.
698 2004-05-10 Werner LEMBERG <wl@gnu.org>
700 * NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,
703 * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
704 doc-str-Lb-librt): Reset font.
705 (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
706 Provide `doc-str-Lb' to reset font.
707 * tmac/groff_mdoc.man: Updated.
709 2004-05-08 Jan Schaumann <jschauma@netmeister.org>
711 * src/preproc/html/pre-html.cpp (make_message): Make it work for
712 snprintf versions which don't conform to ANSI C 99 (this is,
713 counting the string's trailing null byte in the return value).
715 2004-05-07 Keith Marshall <keith.d.marshall@ntlworld.com>
717 * src/roff/troff/node.cpp (suppress_node::tprint): Don't expect
718 that all implementations of sprintf handle null pointers correctly.
720 2004-05-04 Werner LEMBERG <wl@gnu.org>
722 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
723 Document `.U' register.
725 * src/roff/troff/env.cpp (environment::mark_last_line)
726 [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers.
728 2004-05-04 Larry Kollar <kollar@alltel.net>
730 New read-only register `.U'; it returns 1 in safer mode and 0
733 * src/roff/troff/input.cpp (init_input_requests): Implement `.U'
736 2004-05-03 Werner LEMBERG <wl@gnu.org>
738 * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
740 2004-04-17 Werner LEMBERG <wl@gnu.org>
742 * src/include/font.h (font): Use `int' for ch_index.
743 * src/libs/libgroff/font.cpp (font::alloc_ch_index,
744 font::compact): Updated.
746 * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
749 * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
750 (hyphen_word): Fix compiler warnings.
751 * src/roff/troff/input.cpp (get_char_for_escape_name): Return
754 (get_delim_number, get_line_arg): Change second argument type to
756 (macro_header::copy, token::next, do_define_string,
757 do_define_character, substring_request, asciify_macro,
758 unformat_macro, read_size, non_interpreted_node::interpret,
759 while_request, main: Fix compiler warnings.
760 (read_color_draw_node): Initialize `col'.
762 * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
763 `start_col' and `end_col' of type `int'.
764 (vertical_rule): Make `col' of type `int'.
766 * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
769 * src/preproc/refer/label.y (uppercase_array, lowercase_array):
771 (format_serial): Use them to remove dependency on ASCII.
773 * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
775 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
778 * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
780 (glyph): Change type of `hpos' to `int'.
782 * src/devices/lbp/lbp.cpp (strsep): Removed. Unused.
783 * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
785 * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
787 * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
789 2004-04-16 Werner LEMBERG <wl@gnu.org>
791 * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
792 src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
793 src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
794 `double' instead of `float' everywhere.
795 * src/preproc/grn/main.cpp: Use `double' instead of `float'
797 (main): Add return value.
798 * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
800 Update all user functions.
802 * src/include/search.h, src/include/ptable.h, src/include/printer.h,
803 src/preproc/eqn/box.h, src/preproc/pic/object.h,
804 src/preproc/refer/refer.h, src/preproc/tbl/table.h,
805 src/preproc/tbl/table.cpp, src/roff/troff/env.h,
806 src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
807 src/roff/troff/input.cpp, src/roff/troff/request.h,
808 src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
811 * src/utils/indxbib/signal.c: Include stdlib.h.
813 2004-04-14 Keith Marshall <keith.d.marshall@ntlworld.com>
815 * tmac/s.tmac (@init, RP): Allow initialization of the PO register
816 before the first page.
818 2004-04-14 Thomas Klausner <wiz@netbsd.org>
820 * tmac/doc-common (doc-volume-as-*): Use lowercase names.
821 (doc-operating-system-*): Updated.
822 * tmac/doc-syms (doc-str-St-*): Various small fixes.
823 (doc-str-Lb-*): Add more library names.
825 2004-04-10 Art Haas <ahaas@airmail.net>
827 * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
830 2004-04-09 Art Haas <ahaas@airmail.net>
832 * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
834 2004-04-09 Keith Marshall <keith.d.marshall@ntlworld.com>
836 * arch/misc/shdeps.sh: Generate better comment for sed script.
838 2004-04-08 Art Haas <ahaas@airmail.net>
840 * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
841 src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
842 src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
843 src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
844 (polyfill), src/preproc/grn/main.cpp (polyfill),
845 src/preproc/refer/command.cpp (command_table),
846 src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
847 gcc 3.5 doesn't like).
849 2004-04-08 Werner LEMBERG <wl@gnu.org>
851 Removing many compiler warnings. groff should now compile with
852 a C++ compiler used for C files also. [Simple variable renamings
853 to avoid shadowing aren't logged in detail.]
855 * src/devices/grodvi/dvi.cpp: Some local variable renamings.
856 (draw_dvi_printer::draw) ['c']: Enclose in block.
858 * src/devices/grohtml/post-html.cpp: Some local variable renamings.
859 (page::add_line): Fix typos.
860 * src/devices/grohtml/html-text.cpp: Some local variable renamings.
862 * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
863 Some local variable renamings.
864 * src/devices/grolbp/lbp.h: Some local variable renamings.
866 * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
869 * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
870 Remove redundant local variable declaration.
871 * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
872 Don't use `caddr_t' but `void *'.
873 Enclose functions with `extern "C"' for C++.
875 * src/libs/libdriver/input.cpp (remember_filename,
876 remember_source_filename): Use cast for string constant.
878 * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
879 src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
880 src/libs/libgroff/geometry.cpp: Some local variable renamings.
881 * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
883 Enclose functions with `extern "C"' for C++.
884 * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
885 (needs_quoting): Return `int'.
886 (quote_arg): Add proper casts to malloc and realloc.
887 * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
888 various MS Windows environments.
889 (spawnvp_wrapper): Add proper cast to malloc.
891 * src/preproc/eqn/box.h: Remove redundant declarations of
892 `make_script_box', `make_mark_box' and `make_lineup_box'.
893 * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
894 * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
897 * src/preproc/grn/hpoint.cpp: Some local variable renamings.
898 * src/preproc/grn/hgraph.cpp: Some local variable renamings.
899 (dx, dy): Renamed functions to...
900 (deltax, deltay): This.
901 * src/preproc/grn/main.cpp: Some local variable renamings.
902 (deffont): Add `const'.
903 (initpic, conv): Use cast for string constant.
905 * src/preproc/html/pre-html.cpp: Some local variable renamings.
906 (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
907 (char_buffer::run_output_filter): Second argument is unused.
908 * src/preproc/html/pushback.cpp: Some local variable renamings.
910 * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
911 * src/preproc/pic/object.cpp: Some local variable renamings.
913 * src/preproc/refer/label.y (lookup_label): Remove redundant
914 declaration of local variable.
916 * src/preproc/soelim.cpp: Remove redundant declaration of
919 * src/preproc/tbl/main.cpp: Some local variable renamings.
921 * src/roff/groff/groff.cpp (main): Use cast for string constant.
922 * src/roff/groff/pipeline.c: Enclose declarations of `error',
923 `c_fatal', and `i_to_a' with `extern "C"' for C++.
924 Don't use C++-style comments.
926 * src/roff/troff/env.h: Remove redundant declaration of `title'.
927 * src/roff/troff/node.h, src/roff/troff/env.cpp,
928 src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
930 * src/roff/troff/div.h: Remove redundant declaration of
932 * src/roff/troff/troff.h: Remove redundant declaration of
934 * src/roff/troff/input.cpp: Remove redundant declaration of
935 `handle_first_page_transition' and `process_input_stack'.
937 * src/utils/hpftodit.cpp: Some local variable renamings.
939 * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
941 Don't define RETSIGTYPE.
942 * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
944 * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
945 (error): Use `const' in argument.
946 (main): Remove redundant declaration of `optind'.
947 Move declaration of `Version_string' to top-level.
949 * PROBLEMS: Document difficulties compiling signal.c if a C++
950 compiler is used for C.
952 2004-04-07 Werner LEMBERG <wl@gnu.org>
954 * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
956 2004-04-06 Keith Marshall <keith.d.marshall@ntlworld.com>
958 Make scripts like nroff.sh and neqn.sh portable across various
959 (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
960 non-POSIX path separators. The idea is to extend those scripts to
961 decide at run-time (of the script) which path separator to use.
963 * arch/misc/Makefile.sub: New file.
964 * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
965 This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
966 a proper definition of the variable `GROFF_RUNTIME'.
968 * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
969 (MDEFINES): Add SH_DEPS_SED_SCRIPT.
970 (PROGDEPDIRS): New variable.
972 (PROGDIRS): Add PROGDEPDIRS.
974 * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
975 Don't substitute @SEP@ and @BINDIR@.
976 * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
977 (PATH): Use GROFF_RUNTIME.
979 * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
980 Don't substitute @SEP@ and @BINDIR@.
981 * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
982 (PATH): Use GROFF_RUNTIME.
984 2004-04-05 Keith Marshall <keith.d.marshall@ntlworld.com>
986 * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
987 Cygwin which doesn't handle stderr correctly.
989 2004-03-08 Werner LEMBERG <wl@gnu.org>
991 * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
992 against empty argument. Problem reported by <cgd@broadcom.com>.
994 2004-03-05 Keith Marshall <keith.d.marshall@ntlworld.com>
996 * Makefile.in (SEP): Replaced with...
997 (RT_SEP, SH_SEP): Separators for the target platform's native path
998 separator and the build environment, respectively.
999 (fontpath, tmacpath): Use RT_SEP.
1000 (MDEFINES): Updated.
1002 * contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
1003 * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
1004 * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
1005 * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
1007 2004-03-05 Werner LEMBERG <wl@gnu.org>
1009 * fonts/devlj4/Makefile.sub (LJ4RES): Set to 1200. This helps to
1010 reduce alignment problems with newer printers which use built-in
1011 TrueType fonts (instead of the older Intellifonts). The ideal
1012 solution is to provide a second set of groff metric files, but this
1013 is extremely time-consuming to produce, given that HP's metric
1014 files are very rudimentary.
1016 2004-03-01 Werner LEMBERG <wl@gnu.org>
1018 * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
1019 s/operand/argument/ in error message.
1021 2004-03-01 Keith Marshall <keith.d.marshall@ntlworld.com>
1023 * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
1026 2004-03-01 Antti Kantee <pooka@netbsd.org>
1028 * tmac/s.tmac (XE): Fix error message.
1030 2004-02-27 Jeff Conrad <jeff_conrad@msn.com>
1032 * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
1035 * src/roff/groff/pipeline.c: Declare strcasecmp.
1036 (run_pipeline) [_WIN32]: Use function name variants which don't
1038 Fix stream handling.
1040 2004-02-27 Keith Marshall <keith.d.marshall@ntlworld.com>
1042 * src/include/nonposix.h: Fix declaration of `system_shell_name'.
1043 Declare `spawnvp_wrapper' and macro definitions of spawnvp only
1044 for platforms which use the native Win32 runtime libraries.
1045 (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
1047 * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
1048 QUOTE_ARG_REALLOC_ERROR): Fix string.
1050 * src/preproc/html/pre-html.cpp: Remove declaration of
1052 Don't use __MINGW32__.
1053 s/DEBUG_FILE/DEBUG_FILE_DIR/.
1054 (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
1055 (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
1056 (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
1057 calls to `set_redirection' and `WAIT'.
1058 [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
1059 Fix calls to `set_redirection' and `save_and_redirect'.
1060 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
1061 to `set_redirection' and `save_and_redirect'.
1062 (usage): Fix message.
1063 (makeTempFiles, main): Use `DEBUG_FILE'.
1065 2004-02-21 Werner LEMBERG <wl@gnu.org>
1067 * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
1069 2004-02-21 Keith Marshall <keith.d.marshall@ntlworld.com>
1071 * src/libs/libgroff/quotearg.c: New file, providing proper argument
1072 quoting for MSVC's spawn* and exec* functions.
1073 * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
1074 spawnvp with proper quoting for MSVC.
1076 * src/libs/libgroff/assert.cpp (program_name),
1077 src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
1078 * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
1080 * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
1082 * src/include/error.h (program_name): Declare as `extern "C"'.
1083 * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
1085 2004-02-21 Jeff Conrad <jeff_conrad@msn.com>
1087 * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
1089 [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
1091 2004-02-20 Jeff Conrad <jeff_conrad@msn.com>
1093 * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
1095 (sbasename) [__MSDOS__ || ...]: New function.
1096 (system_shell_name) [__MSDOS__ || ...]: Use a different, more
1098 (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
1099 (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
1101 Use STDOUT_FILENO instead of hardcoded file handle.
1102 (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
1104 2004-02-19 Werner LEMBERG <wl@gnu.org>
1106 * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
1107 avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
1109 2004-02-18 Werner LEMBERG <wl@gnu.org>
1111 * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
1112 new font and mapping files.
1114 2004-02-18 Jeff Conrad <jeff_conrad@msn.com>
1115 Keith Marshall <keith.d.marshall@ntlworld.com>
1117 * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
1118 an input pipe. This is needed for the MSVC compiler to make troff's
1121 * src/roff/troff/div.cpp: Include nonposix.h.
1122 (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
1124 2004-02-17 Werner LEMBERG <wl@gnu.org>
1126 * font/devlj4/generate/special.awk: New script.
1127 * font/devlj4/generate/Makefile (S): Use special.awk.
1128 * font/devlj4/*: Regenerated, including the following new files:
1129 Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
1130 MS Symbol (SYMBOL), Wingdings (WINGDINGS).
1131 * NEWS: Document new lj4 fonts and revised hpftodit.
1133 2004-02-17 Paco Andrés Verdú <pandres@dragonet.es>
1135 * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
1137 2004-01-25 Werner LEMBERG <wl@gnu.org>
1139 * src/libs/libgroff/progname.cpp: Replaced with...
1140 * src/libs/libgroff/progname.c: New file.
1141 * src/libs/libgroff/Makefile.sub: Updated accordingly.
1143 2004-01-17 Werner LEMBERG <wl@gnu.org>
1145 * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
1147 2004-01-16 Jeff Conrad <jeff_conrad@msn.com>
1149 * font/devlj4/generate/wingdings.map,
1150 font/devlj4/generate/symbol.map: Include unnamed glyphs.
1151 Use groff glyph names where possible.
1152 * src/devices/grolj4/lj4_font.man: Minor updates.
1154 2004-01-13 Werner LEMBERG <wl@gnu.org>
1156 * tmac/www.tmac (DC): Handle TTY devices.
1158 * doc/webpage.ms: Document viewCVS from ffii.org.
1159 * NEWS, README: Updated.
1161 * src/roff/groff/groff.man: Mention lj4_font man page.
1163 * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
1165 (FONTS): Add SYMBOL and WINGDINGS.
1166 (SYMBOL, WINGDINGS): New targets.
1168 2004-01-13 Jeff Conrad <jeff_conrad@msn.com>
1170 * src/devices/grolj4/lj4_font.man: New man page.
1171 * src/devices/grolj4/Makefile.sub (MAN5): New variable.
1172 * src/devices/grolj4.man: Mention lj4_font man page.
1174 * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
1175 * src/utils/hpftodit/hpftodit.man: Document it.
1177 Remove details about fonts (which are now in lj4_font.man).
1179 * font/devlj4/generate/symbol.map,
1180 font/devlj4/generate/wingdings.map: New files.
1182 2004-01-12 Werner LEMBERG <wl@gnu.org>
1184 * README: Mention ffii's viewcvs access.
1186 2004-01-09 Werner LEMBERG <wl@gnu.org>
1188 * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
1190 2004-01-09 Jeff Conrad <jeff_conrad@msn.com>
1192 Revert most of the change from 2004-01-03 to better control used
1195 * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
1196 (text_symbol_sets, special_symbol_sets): New arrays.
1197 (symbol_set_table): New global variable.
1198 (read_symbol_sets): Use search order given in the text_symbol_sets
1199 and special_symbol_sets arrays. If command line flag -a is not
1200 given, search both arrays.
1201 (output_charset): Require x_height_tag only for command line flag -i.
1203 2004-01-06 Werner LEMBERG <wl@gnu.org>
1205 Implement string-valued registers \n[.m] and \n[.M] to return the
1206 name of the current drawing and background color, respectively.
1208 * src/roff/troff/symbol.h: Moved to...
1209 * src/include/symbol.h: Here.
1210 Small fixes to make it work outside of the `troff' directory.
1211 * src/roff/troff/symbol.cpp: Moved to...
1212 * src/libs/libgroff/symbol.cpp: Here.
1213 Small fixes to make it work outside of the `troff' directory.
1215 * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
1216 (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
1219 * src/include/color.h: Include symbol.h.
1220 (color): Add new field `nm'.
1221 * src/libs/libgroff/color.cpp (color::color): Updated.
1223 * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
1224 src/roff/troff/node.cpp, src/roff/troff/number.cpp,
1225 src/roff/troff/reg.cpp: Don't include symbol.h.
1227 * src/roff/troff/env.cpp: Don't include symbol.h.
1228 (environment::get_glyph_color_string,
1229 environment_get_fill_color_string): New member functions.
1230 (init_env_requests): Handle `.m' and `.M' registers.
1231 * src/roff/troff/input.cpp: Don't include symbol.h.
1232 (default_symbol): Moved to symbol.cpp/symbol.h.
1233 (do_glyph_color, do_fill_color, define_color): Pass symbol name
1234 to color constructor.
1235 * src/roff/troff/env.h: Updated.
1237 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1238 Document new registers.
1240 2004-01-05 Werner LEMBERG <wl@gnu.org>
1242 * src/roff/troff/node.cpp (space_node::get_breakpoints,
1243 space_node::nbreaks): Protect against zero `next' field.
1245 2004-01-03 Jeff Conrad <jeff_conrad@msn.com>
1247 In hpftodit, use the symbol sets offered in the TFM.
1249 * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
1250 (symbol_set, text_symbol_sets, special_symbol_sets,
1251 symbol_set_table): Removed.
1252 (get_printcode): Removed.
1253 (read_symbol_sets): Initialize `symbol_set' field with
1255 Simplify code to just use the `kind' value.
1256 (output_charset): Improve output formatting.
1257 (dump_symbols): Simplified.
1259 2004-01-02 Werner LEMBERG <wl@gnu.org>
1261 * font/devlj4/generate/text.map: Add more MSL numbers.
1263 2004-01-02 Jeff Conrad <jeff_conrad@msn.com>
1265 * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
1266 (text_symbol_sets): Add more symbol sets.
1267 (debug_flag): New static variable (moved from `main').
1268 (get_printcode, show_symset): New functions.
1269 (main): Remove `debug_flag'.
1270 (output_charset): Use `show_symset'.
1271 (dump_symbols): Use `show_symset'.
1272 Print symsets for all glyphs.
1273 (read_map): Actually call `unicode_to_ucode_make' but this time
1276 2004-01-01 Werner LEMBERG <wl@gnu.org>
1278 * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
1279 Fix placement of comments.
1281 2004-01-01 Jeff Conrad <jeff_conrad@msn.com>
1283 * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
1284 option `-d' is given.
1285 (output_charset): Improve warning messages to give more information.
1286 (dump_symbols): Make information more precise.
1288 (read_map): Don't call unicode_to_ucode_name; the glyph names must
1289 appear as-is and shouldn't be decomposed.
1291 2003-12-31 Werner LEMBERG <wl@gnu.org>
1293 * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
1294 * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
1295 (FONTS): Add TrueType font families Arial and Times New Roman.
1296 (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
1297 * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
1300 2003-12-31 Jeff Conrad <jeff_conrad@msn.com>
1302 * test-groff.in (SEP): Quote value.
1303 * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
1304 `tem' to `char*' to avoid deallocation of a pointer to a constant
1305 object which some compilers don't like.
1307 2003-12-31 Werner LEMBERG <wl@gnu.org>
1309 * font/devlj4/generate (text.map, special.map): Rewritten to work
1310 with the new hpftodit version.
1312 2003-12-30 Jeff Conrad <jeff_conrad@msn.com>
1314 * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
1315 set and 8bit character code for all glyphs also.
1317 2003-12-30 Werner LEMBERG <wl@gnu.org>
1319 * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
1321 2003-12-29 Werner LEMBERG <wl@gnu.org>
1323 More fixes for MSVC compiler.
1325 * doc/Makefile.sub, contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use
1328 * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
1329 STDERR_FILENO) [_MSC_VER]: Define conditionally.
1330 (getpid) [_MSC_VER]: Remove.
1331 Include direct.h and process.h conditionally.
1333 * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
1334 parentheses for a_delete.
1336 * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
1338 * test-groff: Replaced with...
1339 * test-groff.in: This new template to handle path separator
1342 * configure.ac: Check for direct.h and process.h.
1343 Generate test-groff script.
1344 * configure, src/include/config.hin: Regenerated.
1346 2003-12-28 Werner LEMBERG <wl@gnu.org>
1348 Add integral extension glyph.
1349 Add new option `-x' to afmtodit to suppress use of built-in AGL.
1351 * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
1353 * font/devps/generate/textmap: Provide entry for `integralex' to
1354 override (old) PUA value of the AGL.
1355 * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
1356 * font/devps/*: Regenerated.
1358 * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
1359 * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
1361 2003-12-27 Werner LEMBERG <wl@gnu.org>
1363 Add forgotten `coproduct' symbol (already available for DVI).
1365 * font/devhtml/R.proto, font/devps/generate/textmap,
1366 font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
1367 src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
1368 U+2210 (\[coproduct]).
1370 2003-12-26 Jeff Conrad <jeff_conrad@msn.com>
1372 hpftodit has been extended to handle TrueType metric files and
1373 more glyphs. See hpftodit.man for more details.
1375 * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h,
1376 ctype.h, and unicode.h.
1377 s/msl/charcode/ everywhere since we now handle Unicode values also.
1378 (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
1379 Use it where appropriate.
1380 (MULTIPLIER): Replaced with...
1381 (multiplier): New global static variable.
1383 (tag_type): Add more TFM tags.
1384 (tag_name): New array.
1385 (ENUM_TYPE, FLOAT_TYPE): Removed.
1386 (BYTE_TYPE): New value assigned.
1387 (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
1388 (text_symbol_sets, special_symbol_sets): Extended to cover more
1390 (check_type): Add return value.
1391 (check_units): Add parameters to get ppi and upem values.
1392 Handle TrueType TFM data.
1393 (output_font_name): New function.
1394 (output_charset): Add parameter to handle TFM type.
1395 Handle TrueType TFMs also.
1396 (em_fract): New macro.
1397 (dump_tags): Be much more verbose and handle more tags.
1398 (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
1399 (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
1401 (read_map): Add parameter to handle TFM type.
1402 Handle both MSL and Unicode mappings.
1403 (main): Add two new command line options `-a' and `-q'.
1404 Updated to make use of new functions.
1407 * src/utils/hpftodit/hpuni.cpp: New file.
1409 * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
1412 2003-12-25 Werner LEMBERG <wl@gnu.org>
1414 * src/include/nonposix.h (read) [_MSC_VER]: Define.
1416 2003-12-24 Werner LEMBERG <wl@gnu.org>
1418 * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
1419 by Michail Vidiassov <master@iaas.msu.ru>.
1421 2003-12-20 Werner LEMBERG <wl@gnu.org>
1423 * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
1425 Add missing latin-2 glyphs.
1426 * font/devutf8/R.proto: Add missing latin-2 glyphs.
1428 * tmac/troffrc: Load `composite.tmac' earlier.
1430 * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
1431 u00{53,73}_0327, and u0049_0307.
1432 * tmac/X.tmac: Add u00{47,67}_0306.
1433 * tmac/tty-char.tmac: Use composite glyph names for readability.
1437 * src/include/unicode.h: Remove `extern' keywords.
1439 2003-12-20 Nilgün Belma Bugüner <nilgun@superonline.com>
1441 * tmac/latin5.tmac: New file.
1443 2003-12-19 Werner LEMBERG <wl@gnu.org>
1445 Add some glyphs needed for Turkish.
1447 * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
1450 * tmac/composite.tmac: Add `,' as a synonym for `ac' accent.
1451 * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
1452 u00{53,73}_0327, and u0049_0307.
1454 2003-12-18 Werner LEMBERG <wl@gnu.org>
1456 * src/devices/grops/ps.cc (ps_output::put_float): Revert change
1458 Remove trailing zeros.
1460 2003-12-17 Werner LEMBERG <wl@gnu.org>
1462 Make \? transparent to end-of-sentence recognition.
1464 * src/roff/troff/input.cc (non_interpreted_node): Add
1465 `ends_sentence' member function.
1467 2003-12-16 Werner LEMBERG <wl@gnu.org>
1469 * doc/groff.texinfo: Document `dt' request correctly.
1470 Other minor typographical improvements.
1472 2003-12-10 Michail Vidiassov <master@iaas.msu.ru>
1474 * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
1476 2003-12-10 Richard Stallman <rms@gnu.org>
1478 * LICENSE: Better wording.
1480 2003-12-09 Werner LEMBERG <wl@gnu.org>
1482 * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
1483 * configure, NEWS: Updated.
1485 2003-12-08 Werner LEMBERG <wl@gnu.org>
1487 * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
1489 2003-12-07 Bernd Warken <bwarken@mayn.de>
1493 2003-12-07 Werner LEMBERG <wl@gnu.org>
1495 * INSTALL: Improved.
1497 2003-12-05 Keith Marshall <keith.d.marshall@ntlworld.com>
1499 Use path separator character of target platform for compiled-in
1502 * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
1503 * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
1504 * configure: Regenerated.
1505 * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
1507 2003-12-05 Werner LEMBERG <wl@gnu.org>
1509 * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
1510 Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
1512 2003-12-04 Bernd Warken <bwarken@mayn.de>
1514 * LICENSE: New file.
1516 2003-12-03 Werner LEMBERG <wl@gnu.org>
1518 * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
1519 ligatures present in AFM files since groff currently only
1520 understands some standard ligatures and nothing else.
1522 2003-12-03 Jeff Conrad <jeff_conrad@msn.com>
1524 * src/roff/groff/groff.cpp (main): Don't run the spooler if
1527 * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
1530 Don't use Unix wait flags.
1532 2003-12-02 Werner LEMBERG <wl@gnu.org>
1534 * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
1535 src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
1536 src/roff/troff/uniuni.cpp: Moved to...
1537 * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
1538 src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
1539 src/libs/libgroff/uniuni.cpp: Here.
1541 * src/include/Makefile.sub.old (HDRS),
1542 src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
1543 src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
1545 2003-12-01 Keith Marshall <keith.d.marshall@ntlworld.com>
1547 * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
1551 2003-12-01 Werner LEMBERG <wl@gnu.org>
1553 * groff.texinfo: Document special behaviour of `.vs 0'.
1554 Improve documentation of `cflags' request.
1557 2003-11-29 Werner LEMBERG <wl@gnu.org>
1559 * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
1560 * font/devlj4/CORONET: Regenerated.
1562 2003-11-24 Werner LEMBERG <wl@gnu.org>
1564 * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
1565 if processing hyphenation patterns in traditional mode.
1566 Improve error messages.
1568 2003-11-20 Werner LEMBERG <wl@gnu.org>
1570 * src/roff/troff/node.cpp (troff_output_file::put_char_width,
1571 troff_output_file::put_char): Fix type of local variable `c'.
1573 2003-11-19 Werner LEMBERG <wl@gnu.org>
1575 * src/roff/groff/pipeline.c (P): Removed. Updated all function
1577 (i_to_a): Removed. libgroff already provides this function.
1578 (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
1580 2003-11-18 Keith Marshall <keith.d.marshall@ntlworld.com>
1582 * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
1585 2003-11-17 Werner LEMBERG <wl@gnu.org>
1587 * COPYING: Use correct version.
1589 2003-11-11 Werner LEMBERG <wl@gnu.org>
1591 LynxOS 4.0.0 doesn't declare vfprintf.
1593 * configure.ac: Check for vfprintf.
1594 * configure: Regenerated.
1595 * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
1596 * src/include/config.hin: Regenerated.
1598 2003-11-10 Werner LEMBERG <wl@gnu.org>
1600 LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
1602 * configure.ac: Check for vsnprintf.
1603 * configure: Regenerated.
1604 * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
1606 * src/include/config.hin: Regenerated.
1608 2003-11-09 Werner LEMBERG <wl@gnu.org>
1610 * aclocal.m4: Updated syntax to autoconf 2.59.
1611 (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
1612 Don't check for gsos2.
1613 (GROFF_SRCDIR, GROFF_BUILDDIR): Removed. autoconf 2.59 provides
1614 working abs_top_srcdir and abs_top_builddir.
1616 * configure.ac: Updated syntax to autoconf 2.59.
1617 Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
1618 Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
1619 * configure: Regenerated.
1621 * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
1622 s/@groff_top_builddir@/@abs_top_builddir@/.
1624 * src/roff/groff/pipeline.c (xstrsignal):
1625 s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
1627 2003-11-07 Werner LEMBERG <wl@gnu.org>
1629 * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
1630 make start angle smaller than end angle to circumvent a bug in tpic
1631 handling of some versions of dvipdfm (and dvipdfmx).
1633 2003-10-30 Werner LEMBERG <wl@gnu.org>
1635 * src/devices/grops/grops.man: Improve section on creating EPS.
1637 2003-10-29 Werner LEMBERG <wl@gnu.org>
1639 * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
1642 2003-10-28 Werner LEMBERG <wl@gnu.org>
1644 * doc/groff.texinfo: Fix documentation of `.if'.
1646 2003-10-27 Michail Vidiassov <master@iaas.msu.ru>
1648 * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
1649 the form `uniXXXX' also.
1651 2003-10-27 Werner LEMBERG <wl@gnu.org>
1653 * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
1654 contrib/pic2graph/pic2graph.sh: Implement secure management of
1656 Pass `-P-pletter' to groff to avoid data outside of the converted
1657 area -- some versions of `convert' (for example 5.3.8) don't check
1658 the bounding box of the image but always use a fixed image size
1659 (letter paper format).
1660 * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
1661 contrib/pic2graph/pic2graph.man: Updated.
1663 * src/roff/groff/groff.man: Document $TMP and $TEMP.
1665 2003-10-26 Werner LEMBERG <wl@gnu.org>
1667 * src/preproc/pic/troff.cpp (troff_output::simple_circle,
1668 troff_output::simple_ellipse, troff_output::simple_arc,
1669 troff_output::simple_line, troff_output::simple_spline,
1670 troff_output::simple_polygon): Insert a space before arguments.
1671 (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
1672 latter doesn't produce a node, so the following `.sp -1' would do
1674 Don't emit `.sp -1' after \M. This also doesn't produce a token
1675 (and we don't have to care about compatibility mode).
1676 (troff_output::set_color, troff_output::reset_color): Don't emit
1677 `.sp -1' after \M and \m.
1679 * src/roff/troff/input.cpp (old_have_input): New global variable.
1680 (input_stack::get): Handle `old_have_input'.
1681 (process_input_stack) <token::TOKEN_NEWLINE>: Call
1682 `trapping_blank_line' depending on `old_have_input', not
1685 2003-10-20 Keith Marshall <keith.d.marshall@ntlworld.com>
1687 * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
1688 (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
1689 default directory names for temporary files.
1690 [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
1692 * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
1693 [__MSDOS__] (run_pipeline): Honour environment variables.
1694 Don't use `tmpnam' but `tempnam' to work around messy
1697 * README.MinGW: New file.
1699 2003-10-16 Werner LEMBERG <wl@gnu.org>
1701 * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
1702 `(*t)->next' without testing validity of `*t'.
1703 (usage): Make it more readable.
1705 2003-10-16 Keith Marshall <keith.d.marshall@ntlworld.com>
1707 Make html device run under both MS-DOS and Win32.
1709 * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
1710 MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
1711 spawn or fork+exec has to be used, and whether parent must sleep
1712 until the child process terminates. Used in
1713 `char_buffer::run_output_filter'.
1714 (copyofstdoutfd): Removed.
1715 (char_buffer): Replace `write_file_html' and `write_file_troff'
1716 member functions with `emit_troff_output' and `run_output_filter'.
1717 (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
1719 (replaceFd): Replaced with...
1720 (set_redirection): New auxiliary function.
1721 (waitForChild): Replaced with...
1722 (save_and_redirect): New auxiliary function for.
1724 (char_buffer::do_html, char_buffer::do_image): Simplified, using new
1727 2003-10-14 Keith Marshall <keith.d.marshall@ntlworld.com>
1729 * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
1730 (GROFF_LIBC): New function.
1731 * configure.ac: Call GROFF_LIBC.
1733 * configure: Regenerated.
1735 * src/include/lib.h: Handle __MINGW32__.
1736 * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
1737 Add macro for `pipe'.
1740 * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
1743 * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
1746 2003-10-13 Werner LEMBERG <wl@gnu.org>
1748 Finally fix change 2003-08-26, based on ideas from Chuck Silvers
1751 * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
1754 2003-10-12 Werner LEMBERG <wl@gnu.org>
1756 * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
1757 src/roff/troff/input.cc (usage): Updated.
1759 * NEWS, doc/groff.texinfo: Updated.
1761 2003-10-12 Peter Miller <millerp@canb.auug.org.au>
1763 * src/libs/libgroff/searchpath.cpp
1764 (search_path::open_file_cautious): New function which also handles
1765 `-' as stdin and stdout depending on the access mode.
1766 * src/include/searchpath.h (search_path): Updated.
1768 * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
1769 * src/devices/grops/ps.h: Include `searchpath.h'.
1770 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
1771 Open resource file with `include_search_path.open_file_cautious'.
1772 * src/devices/grops/grops.man: Document new `-I' switch.
1774 * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
1775 (main), src/devices/grolj4/lj4.cpp (main),
1776 src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
1778 * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
1780 (include_search_path): New global variable.
1781 (include_path_append): Removed.
1782 (main): Use `include_search_path.command_line_dir' to handle `-I'.
1783 (do_file): Simplify, using new
1784 `include_search_path.open_file_cautious'.
1786 * src/roff/groff/groff.cpp (print_commands): Accept file handle as
1788 (main): Pass arguments to `-I' to both troff and devices.
1789 Improve handling of `-V'.
1790 * src/roff/groff/groff.man: Document changes to -I and -V.
1792 * src/roff/troff/input.cpp (include_search_path): New global
1794 (next_file, source, ps_bbox_request, transparent_file,
1795 process_input_file): Use new
1796 `include_search_path.open_file_cautious'.
1797 (main) Handle `-I' switch.
1798 * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
1799 Use new `include_search_path.open_file_cautious'.
1800 * src/roff/troff/node.h: New extern symbol `include_search_path'.
1801 * src/roff/troff/troff.man: Document new `-I' switch.
1803 2003-09-15 Ruslan Ermilov <ru@FreeBSD.org>
1805 Support multiple calls of .Lb in LIBRARY section.
1807 * tmac/doc-common (doc-in-library-section): New register.
1808 (doc-section-library): New string.
1809 (Sh): Set `doc-in-library-section'.
1811 * tmac/doc-syms (Lb): Insert breaks before and after arguments
1812 if in LIBRARY section.
1813 * tmac/doc.tmac (doc-save-global-vars): Updated.
1814 * NEWS, tmac/groff_mdoc.man: Updated.
1816 2003-09-14 Ruslan Ermilov <ru@FreeBSD.org>
1818 * tmac/doc-common (doc-default-operating-system): New variable.
1821 2003-09-08 Werner LEMBERG <wl@gnu.org>
1823 * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
1825 2003-08-31 Werner LEMBERG <wl@gnu.org>
1827 * contrib/mom/Makefile.sub: Fix last change to make it really work.
1828 * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
1829 (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
1830 $(DEVFILES) are not empty.
1831 * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
1833 2003-08-26 Chuck Silvers <chuq@chuq.com>
1835 * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
1836 with parallel runs of `make'.
1838 2003-08-23 Stephen Gildea <http://www.gildea.com/stephen>
1840 * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
1841 insert SORT_SEP. With certain combinations of sort specifications,
1842 refer sorted entries in the wrong order. In particular, entries
1843 with a missing field should be be sorted before all entries that
1844 have that field, before refer looks to the next field.
1846 2003-08-23 Werner LEMBERG <wl@gnu.org>
1848 * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
1849 g++ linker is used. Reported by Mark J. Reed
1850 <mark.reed@turner.com>.
1852 2003-08-16 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
1854 Add key character `x' to tbl which makes tbl call a user-defined
1855 macro on a table cell.
1857 * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
1858 * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
1859 `set_modifier' after printing the compatibility request.
1860 (set_modifier): Print call to `m->macro' if not empty.
1861 * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
1863 (process_format): Implement cases `x' and `X'.
1864 * src/preproc/tbl/tbl.man, NEWS: Updated.
1866 2003-08-15 Werner LEMBERG <wl@gnu.org>
1868 * doc/groff.texinfo: Minor fixes.
1870 2003-08-09 Werner LEMBERG <wl@gnu.org>
1872 * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
1874 2003-08-07 Werner LEMBERG <wl@gnu.org>
1876 * doc/Makefile.sub: Not all shells expand wildcards in the `for'
1877 argument list to nothing if there is no file to match. Use `ls' as
1878 a protection, similar to autoconf.
1880 * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
1881 empty argument lists.
1883 * doc/groff.texinfo: Improve documentation how vertical spacing
1884 and line breaks interact.
1887 * tmac/www.tmac: Initialize `www-htmlimage-gap'.
1889 2003-08-03 Werner LEMBERG <wl@gnu.org>
1891 * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
1892 EPS (using eps2eps or similar programs to compute the bounding box).
1894 2003-07-24 Werner LEMBERG <wl@gnu.org>
1896 * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
1897 * doc/texinfo.tex: Updated from texinfo 4.6.
1898 * README.CVS: From now on we need texinfo 4.6.
1900 2003-07-23 Werner LEMBERG <wl@gnu.org>
1902 Add requests `dei1' and `ami1' for completeness.
1904 * src/roff/troff/input.cc (calling_mode): Remove
1905 CALLING_DISABLE_COMP.
1906 (comp_mode): New enumeration.
1907 (do_define_string, define_string, define_nocomp_string,
1908 append_string, append_nocomp_string): Updated.
1909 (do_define_macro): Add third parameter.
1910 (define_macro, define_nocomp_macro, define_indirect_macro,
1911 append_macro, append_nocomp_macro, append_indirect_macro): Updated.
1912 (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
1915 (init_input_requests): Add `dei1' and `ami1'.
1917 * tmac/trace.tmac: Handle de1 and am1.
1918 (de): Improve tracing message.
1919 (am): Add missing `do'.
1922 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1923 Document new requests.
1925 2003-07-22 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
1927 Add option -G to .MPIMG to insert a gap between text and the image.
1929 * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
1930 www-finish-left-ll): Updated.
1931 (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
1932 (MPIMG): Make option -L and -R optional.
1933 Implement option -G.
1935 2003-07-22 Gaius Mulley <gaius@glam.ac.uk>
1937 * src/devices/grohtml/post-html.cpp
1938 (html_printer::do_file_components): Don't use `stdout' as lvalue
1939 since it can be a macro.
1941 2003-07-22 Werner LEMBERG <wl@gnu.org>
1943 * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
1944 the corresponding test in aclocal.m4.
1946 2003-07-21 Werner LEMBERG <wl@gnu.org>
1948 * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
1949 names but RGB values directly. Otherwise pnmtopng depends on
1950 an external file `rgb.txt' which maps colour names to values.
1952 2003-07-20 Werner LEMBERG <wl@gnu.org>
1954 * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
1955 * configure, src/include/config.hin: Regenerated.
1957 * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
1959 2003-07-19 Werner LEMBERG <wl@gnu.org>
1961 * PROBLEMS: Add solution for UTF-8 problem with hyphens.
1963 2003-07-18 Werner LEMBERG <wl@gnu.org>
1965 * *.man: Switch to non-compatibility mode temporarily if GNU
1966 syntax extensions are used in the particular man page.
1968 * PROBLEMS: Add solutions for SGR problems.
1970 2003-07-17 Werner LEMBERG <wl@gnu.org>
1972 Don't ignore grotty's command line options if \X'tty: sgr ...' is
1973 used to change the drawing scheme.
1975 * src/devives/grotty/tty.cpp (bold_flag_option,
1976 underline_flag_option, italic_flag_option, reverse_flag_option,
1977 bold_underline_mode_option): New global variables.
1978 (update_options): New function.
1979 (tty_printer::special): Call update_options.
1980 (main): Don't set xxx_flag but xxx_flag_option, then call
1983 2003-07-14 Werner LEMBERG <wl@gnu.org>
1985 Make grotty emit proper Unicode box drawing characters for -Tutf8.
1987 * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
1989 (hline_char, vline_char): New global variables.
1990 (tty_printer::tty_printer): Initialize them.
1991 (tty_printer::draw): Emit START_LINE and END_LINE flags for both
1992 horizontal and vertical lines.
1993 (crossings): New global array.
1994 (tty_printer::end_page): Use it to determine the proper crossing
1995 character for -Tutf8.
1997 2003-07-12 Werner LEMBERG <wl@gnu.org>
1999 * doc/Makefilesub (HTMLDOCFILESALL): New macro.
2000 (HTMLDOCFILES): Revert to `pic.html'.
2001 (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
2003 2003-07-11 Werner LEMBERG <wl@gnu.org>
2005 * doc/pic.ms: Improve documentation of absolute coordinates.
2006 Document absolute positioning of pictures.
2008 * NEWS: Add new pic capability.
2010 2003-07-09 Hartmut Henkel <hartmut_henkel@gmx.de>
2012 * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
2015 2003-07-07 Werner LEMBERG <wl@gnu.org>
2017 Implement support for dashed and dotted ellipses in pic. Based on
2018 a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
2020 * src/preproc/pic/common.cpp (common_output::ellipse_arc,
2021 common_output::dashed_ellipse, common_output::dotted_ellipse): New
2022 functions. Ellipse arcs are approximated with circle arcs.
2023 * src/preproc/pic/common.h (common_output): Updated.
2024 * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
2026 * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
2028 * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
2030 2003-07-06 Werner LEMBERG <wl@gnu.org>
2032 Make grotty work on platforms which have unsigned char as the
2033 default for char. Based on a patch by Thomas Klausner
2036 * src/devices/grotty/tty.cpp (schar): New typedef.
2037 Updated calls to declare_ptable and implement_ptable.
2038 (glyph): Use schar for back_color_idx and fore_color_idx.
2039 (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
2040 (tty_printer::tty_color, tty_printer::tty_printer,
2041 tty_printer::color_to_idx, tty_printer::put_color): Updated.
2043 2003-07-06 Ruslan Ermilov <ru@FreeBSD.org>
2045 * src/roff/nroff/nroff.sh: Add option -d for completeness.
2046 * src/roff/nroff/nroff.man: Updated.
2048 2003-07-05 Werner LEMBERG <wl@gnu.org>
2050 * NEWS, tmac/groff_www.man: Updated.
2051 * doc/Makefile.sub: Updated.
2053 2003-07-05 Gaius Mulley <gaius@glam.ac.uk>
2055 Implement support for multiple HTML output files.
2057 * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
2058 -j command line option.
2060 * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
2062 (file): New fields `new_output_file', `require_links',
2064 (file::file): Updated.
2065 (files::set_file_name, files::set_links_required,
2066 files::are_links_required, files::is_new_output_file,
2067 files::file_name, files::next_file_name): New functions.
2068 (header_desc): New fields `no_of_level_one_headings',
2070 (header_desc::header_desc): Updated.
2071 (header_desc::write_headings): Handle multiple files.
2072 (html_printer::write_header): Save file name in which header occurs.
2073 (html_printer::determine_header_level): Possibly split files on
2075 (html_printer::do_links, html_printer::troff_tag): Updated.
2076 (html_printer::insert_split_file, html_printer::do_job_name,
2077 html_printer::emit_link, html_printer::write_navigation,
2078 html_printer::do_file_components): New functions.
2079 (html_printer::~html_printer): Handle multiple files.
2080 (main): Handle command line option `-j'.
2082 * src/devices/grohtml/grohtml.man: Updated.
2084 * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
2087 * tmac/www.tmac (JOBNAME): New macro.
2088 * tmac/s.tmac (SH-NO-TAG): New macro.
2089 (@SH): Call SH-NO-TAG.
2092 2003-07-05 Ruslan Ermilov <ru@FreeBSD.org>
2094 * tmac/groff_mdoc.man: Improve documentation of punctuation
2097 2003-07-04 Ruslan Ermilov <ru@FreeBSD.org>
2099 * tmac/doc.tmac (Bd): Change to doc-Li-font later.
2101 2003-07-03 Werner LEMBERG <wl@gnu.org>
2103 * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
2105 2003-07-01 Ruslan Ermilov <ru@FreeBSD.org>
2107 * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
2108 after `/*' and `*/'.
2110 (Fn, Fo): Reduce indentation in synopsis.
2112 * tmac/doc-common (doc-check-depth): New macro.
2113 (doc-end-macro, Sh, Ss): Use it.
2114 (Cd): Fix behaviour in synopsis.
2115 (In): Make it parsed and callable.
2116 If not in the synopsis, represent the C header file enclosed in
2118 (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
2119 Use minus, not hyphen.
2121 * tmc/groff_mdoc.man: Updated.
2123 2003-07-01 Werner LEMBERG <wl@gnu.org>
2125 Integrated grap2graph, contributed by Eric S. Raymond.
2127 * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
2129 * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
2130 contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
2132 2003-07-01 Colin Watson <cjwatson@debian.org>
2134 * src/xditview/*.c: Add prototypes, fix return types, add includes.
2135 Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
2137 2003-06-31 Ruslan Ermilov <ru@FreeBSD.org>
2139 * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
2141 2003-06-31 Werner LEMBERG <wl@gnu.org>
2143 * doc/Makefile.sub (CLEANADD): Remove all files created by
2144 running `make groff.{pdf,dvi}'.
2146 * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
2149 2003-06-30 Werner LEMBERG <wl@gnu.org>
2151 * Makefile.in (SHELL): Define as @SHELL@.
2152 (mkinstalldirs): Use $(SHELL).
2153 (MDEFINES): Add $(SHELL).
2154 * Makefile.comm (SHELL): Removed.
2156 2003-06-29 Werner LEMBERG <wl@gnu.org>
2158 * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
2159 The X11 documentation files use them.
2160 * tmac/groff_ms.man, doc/groff.texinfo: Document them.
2162 2003-06-15 Robert Goulding <goulding@Princeton.EDU>
2164 * tmac/e.tmac (@C): Handle .ad also.
2166 2003-06-12 Werner LEMBERG <wl@gnu.org>
2168 * src/preproc/tbl/tbl.man: Document formatting of text blocks.
2170 * src/roff/troff/input.cc (token::next) <handle_escape_char>:
2171 Assign `n' even here. It is possible to construct a node
2172 immediately following an escape character:
2180 2003-06-10 Werner LEMBERG <wl@gnu.org>
2182 * README.WIN32: Removed.
2183 * MANIFEST: Updated.
2185 2003-06-07 Werner LEMBERG <wl@gnu.org>
2187 * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
2189 2003-06-05 Werner LEMBERG <wl@gnu.org>
2191 * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
2192 in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
2194 2003-06-03 Werner LEMBERG <wl@gnu.org>
2196 * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
2197 is done by the calling function.
2199 2003-05-22 Ruslan Ermilov <ru@FreeBSD.org>
2201 * tmac/X.tmac: Fix definition of `em'.
2203 2003-05-22 Werner LEMBERG <wl@gnu.org>
2205 * src/roff/troff/input.cc (return_macro_request): Fix detection of
2208 2003-05-18 Werner LEMBERG <wl@gnu.org>
2210 * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
2211 to make items work which consist only of a tag.
2213 2003-05-17 Werner LEMBERG <wl@gnu.org>
2215 * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
2216 aren't stretched in a tag (this can fail with unformatted boxes).
2217 Instead, insert a break and go back one line.
2219 2003-05-16 Werner LEMBERG <wl@gnu.org>
2221 * src/roff/troff/input.cc (return_macro_request): If called with
2222 argument pop macro twice. We need this to trace `return'.
2224 * tmac/trace.tmac: Handle `return'.
2227 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2230 2003-05-15 Larry Kollar <kollar@alltel.net>
2232 * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
2233 registers `FPS', `FVS', and `FPD'.
2235 2003-05-15 Werner LEMBERG <wl@gnu.org>
2237 * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
2240 2003-05-03 Ruslan Ermilov <ru@FreeBSD.org>
2242 * tmac/groff_mdoc.man: Slight improvements.
2244 2003-05-03 Werner LEMBERG <wl@gnu.org>
2246 * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
2247 `doc-header-space' after header line if register `cR' is set.
2249 2003-05-02 Werner LEMBERG <wl@gnu.org>
2253 2003-05-01 Ruslan Ermilov <ru@FreeBSD.org>
2255 * tmac/doc-common (Nd): Use \[em].
2257 2003-05-01 Werner LEMBERG <wl@gnu.org>
2259 * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
2260 doc-footer-space): Initialize to 0.5i.
2261 (doc-setup-page-layout): Don't set doc-header-space and
2264 2003-04-30 Werner LEMBERG <wl@gnu.org>
2266 * REVISION: Set to 1.
2268 * doc/pic.ms: Document possible problems with `figname'.
2270 2003-04-29 Werner LEMBERG <wl@gnu.org>
2272 Version 1.19 released
2273 =====================
2275 * VERSION: Set to 1.19.
2276 * REVISION: Set to 0.
2277 * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
2279 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
2280 Define charset as `US-ASCII' in html output.
2282 * tmac/www.tmac (ULE): Add missing scaling indicator.
2284 * win32-diffs: Removed.
2286 2003-04-28 Werner LEMBERG <wl@gnu.org>
2288 * doc/groff.texinfo: Document `dn' and `dl' registers if used with
2290 Document how to insert discardable whitespace with `.ss'.
2292 2003-04-27 Werner LEMBERG <wl@gnu.org>
2294 * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
2295 work with plain TeX also.
2297 * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
2299 2003-04-25 Gaius Mulley <gaius@glam.ac.uk>
2301 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
2304 2003-04-24 Werner LEMBERG <wl@gnu.org>
2306 * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
2307 vbox with positive height and zero depth if in TeX mode.
2309 * NEWS: Document glyph name changes for grodvi and grolj4.
2311 2003-04-23 Werner LEMBERG <wl@gnu.org>
2313 * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
2314 * doc/pic.ms: Fixed.
2316 2003-04-21 Werner LEMBERG <wl@gnu.org>
2318 HP-UX 10.20 has `snprintf' but it isn't declared.
2320 * configure.ac: Add declaration test for snprintf.
2321 * configure: Regenerated.
2322 * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
2323 * src/include/config.hin: Regenerated.
2325 2003-04-19 Werner LEMBERG <wl@gnu.org>
2327 Add keyword `figname' to pic, specifying the name of the picture
2328 box in TeX mode. Based on a patch from William J Poser
2329 <wjposer@unagi.cis.upenn.edu>.
2331 * src/preproc/pic/pic.y: New token `FIGNAME'.
2332 (macro_name): New rule of type <str>.
2333 (placeless_element): Handle `FIGNAME'.
2334 * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
2335 * src/preproc/pic/main.cpp (graphname): New global variable.
2336 (do_picture): Initialize `graphname'.
2337 * src/preproc/pic/pic.h: Updated.
2338 * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
2341 (tex_output::text): Beautify output.
2342 * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
2343 `shaded' and `outlined' unconditionally.
2344 * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
2347 * PROBLEMS, README.CVS: Mention that bison version 1.875b or
2348 greater is necessary.
2350 2003-04-17 Hartmut Henkel <hartmut_henkel@gmx.de>
2352 Add option -r to soelim to avoid emission of `.lf' lines.
2353 Add option -t to produces TeX comment lines instead of `.lf' lines.
2355 * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
2358 (main): Handle `-r' and `-t'.
2359 (set_location): Handle `raw_flag' and `tex_flag'.
2360 * src/preproc/soelim/soelim.man, NEWS: Updated.
2362 2003-04-17 Werner LEMBERG <wl@gnu.org>
2364 * tmac/hyphenex.sh: Replaced with...
2365 * tmac/hyphenex.pl: This perl script to avoid sed compatibility
2368 * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
2369 if --quiet is used for the configure script.
2370 * configure: Regenerated.
2372 2003-04-16 Werner LEMBERG <wl@gnu.org>
2374 * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
2375 Add `const' to second argument.
2376 (html_printer::add_table_end): Add `const' to argument.
2377 * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
2378 `const' to arguments.
2379 * src/devices/grohtml/html-text.h: Updated.
2381 * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
2382 * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
2385 * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
2386 cast for integer constant.
2388 * src/preproc/html/pre-html.cpp (image_device): Use `const'.
2389 (writeNbytes): Add `const' to first argument.
2390 (writeString): Add `const' to argument.
2391 (char_buffer::can_see): Add `const' to third argument.
2392 * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
2393 `const' to argument.
2394 * src/preproc/html/pushback.h: Updated.
2396 * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
2397 (include_path_append): Add `const' to argument.
2400 * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
2402 (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
2403 * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
2405 (unicode_decompose_init::unicode_decompose_init): Updated.
2406 * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
2408 (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
2409 * src/roff/troff/input.cc (process_startup_file): Add `const' to
2412 * tmac/hyphenex.sh: Make script more portable by using a here
2415 2003-04-15 Werner LEMBERG <wl@gnu.org>
2417 Renamed all `*.cc' files to `*.cpp'.
2418 Updated all configuration files, makefiles, and documentation.
2420 2003-04-14 Werner LEMBERG <wl@gnu.org>
2422 * tmac/hyphenex.sh: Slight improvements.
2424 2003-04-13 Werner LEMBERG <wl@gnu.org>
2426 * font/devascii/R.proto, font/devcp1037/R.proto,
2427 font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
2428 character slots with unnamed glyphs.
2430 * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
2431 (an-first): New global variable.
2432 (an-header): Emit vertical space between multiple man pages.
2434 2003-04-11 Werner LEMBERG <wl@gnu.org>
2436 * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
2439 2003-04-10 Werner LEMBERG <wl@gnu.org>
2441 * PROBLEMS: Revised.
2443 2003-04-10 Bernd Warken <bwarken@mayn.de>
2445 * doc/webpage.ms: Improved.
2447 2003-04-09 Werner LEMBERG <wl@gnu.org>
2449 Add register \n[.height] which returns the value of \H.
2450 Add register \n[.slant] which returns the value of \S.
2452 * src/roff/troff/env.cc (init_env_requests): Implement.
2453 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2456 2003-04-08 Werner LEMBERG <wl@gnu.org>
2458 * tmac/html.tmac: Move some of the data into html-end.tmac.
2459 Remove most of the character translations for eqn since html fonts
2460 now cover those characters.
2462 * tmac/html-end.tmac: New file.
2463 * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
2464 * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
2465 * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
2467 2003-04-07 Werner LEMBERG <wl@gnu.org>
2469 * man/groff_out.man: Document negative values of `N' if -Thtml is
2472 2003-04-06 Werner LEMBERG <wl@gnu.org>
2474 * Makefile.comm (depend.temp): Check location of YTABC.
2476 2003-04-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2478 * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
2480 (groff_bin_path): Rename to GROFF_BIN_PATH.
2481 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2482 * doc/Makefile.in (TROFFBIN): New variable for troff
2484 (GROFFBIN): New variable for groff binary path.
2485 (groff_bin_path): Rename to GROFF_BIN_PATH.
2486 (TROFF): Use TROFFBIN.
2487 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2488 * doc/Makefile.sub (GROFFBIN): New variable for groff
2490 (groff_bin_path): Rename to GROFF_BIN_PATH.
2491 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2493 * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
2494 with INSTALL_SCRIPT.
2495 (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
2496 * Makefile.dev (all): Depend on DEVSCRIPTS.
2497 (install_dev): Likewise.
2498 * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
2500 * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
2501 (DEVGENSCRIPTS): New variable to hold generated scripts.
2503 2003-04-05 Werner LEMBERG <wl@gnu.org>
2505 * src/libs/libdriver/input.cc (IntArray::operator[],
2506 IntArray::get_data): Remove meaningless `const' in return value.
2508 * README.CVS: New file.
2510 2003-04-04 Werner LEMBERG <wl@gnu.org>
2512 Check for stdint.h in C++, not in C.
2514 * aclocal.m4 (GROFF_STDINT_H): New function,
2515 * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
2517 * configure, src/include/config.hin: Regenerated.
2518 * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
2521 Fix handling of in grohtml. To do this, troff emits `N'
2522 with a negative value, representing the width of the unbreakable
2523 space (only for -Thtml). grohtml then converts this back to
2524 and uses the value of N as its width.
2526 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
2527 unbreakable_space_node::tprint): Emit `N-<width>'.
2528 * src/include/printer.h (printer::set_numbered_char): Make it
2530 Make members `font_table' and `nfonts' protected instead of private.
2531 * src/devices/grohtml/post-html.cc
2532 (html_printer::set_numbered_char): New member function.
2535 * src/libs/libgroff/maxfilename.cc:
2536 s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
2538 * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
2541 2003-04-03 Sergey A. Osokin <osa@freebsd.org.ru>
2543 * man/roff.man: Small fixes.
2545 2003-04-03 Werner LEMBERG <wl@gnu.org>
2547 Make groff independent from locale's numeric settings.
2549 * configure.ac: Check for `setlocale'.
2550 * configure, src/include/config.hin: Regenerated.
2552 * src/include/lib.h: Handle HAVE_SETLOCALE.
2554 * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
2555 (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
2556 (main), src/preproc/pic/main.cc (main): Call `setlocale'.
2559 * doc/groff.texinfo: Change dir category to `Typesetting'.
2560 (Man font macros): Mention that there is no space between arguments
2563 * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
2564 (*printer::change_color, *printer::change_fill_color): Add missing
2567 2003-04-02 Werner LEMBERG <wl@gnu.org>
2569 * src/devices/grohtml/html-table.cc (html_table::emit_col,
2570 html_table::is_gap): Compute table widths after converting border
2571 positions to avoid rounding errors.
2573 2003-04-01 Werner LEMBERG <wl@gnu.org>
2575 * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
2576 `space_emitted' properly.
2578 2003-03-31 Werner LEMBERG <wl@gnu.org>
2580 * src/devices/grohtml/html-table.cc: Fix column width calculation.
2581 (html_table::set_linelength): Don't add 1.
2582 (html_table::add_indent): Don't subtract 1.
2584 * tmac/html.tmac: Set default page offset to zero.
2586 2003-03-30 Werner LEMBERG <wl@gnu.org>
2588 Make groff emit ` ' for `\ ' and `\~' if `-Thtml' is used.
2590 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
2591 unbreakable_space_node::tprint): New functions.
2592 (troff_output_file): Make space_char_hmotion_mode::tprint and
2593 unbreakable_space_node::tprint to friends.
2594 * src/roff/troff/node.h: Updated.
2596 * font/devhtml/R.proto: Add ` ' at position 0xA0 (as defined
2597 in the HTML standard).
2599 2003-03-29 Werner LEMBERG <wl@gnu.org>
2601 * src/roff/troff/env.cc (point_size): Fix emission of html tag.
2602 Otherwise, the following code
2611 produces `x a' instead of `xa'. This is a temporary fix, disabling
2612 font changes in diversions for -Thtml.
2614 * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
2616 (an-do-tag-html): Merge with ...
2617 (an-do-tag): This macro.
2618 Change code slightly to circumvent grohtml bug.
2619 * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
2621 * src/devices/grohtml/html-table.cc (html_table::emit_col,
2622 html_table::is_gap): Round `width' properly.
2624 * tmac/html.tmac: Provide some default layout parameters for
2627 * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
2630 2003-03-28 Werner LEMBERG <wl@gnu.org>
2632 src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
2634 2003-03-27 Werner LEMBERG <wl@gnu.org>
2636 * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
2639 2003-03-20 Werner LEMBERG <wl@gnu.org>
2641 * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
2643 * doc/groff.texinfo: Updated.
2645 2003-03-19 Werner LEMBERG <wl@gnu.org>
2647 * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
2648 TOKEN_END_TRAP>: Reset `have_input'.
2650 2003-03-18 Werner LEMBERG <wl@gnu.org>
2652 * src/roff/groff/groff.man: Mention groff_trace man page.
2654 2003-03-16 Werner LEMBERG <wl@gnu.org>
2656 * Makefile.in (LIBEXT): New variable to indicate the file extension
2657 of library files. Computed heuristically from $(OBJEXT).
2658 (MDEFINES): Add $(LIBEXT).
2659 * Makefile.lib, Makefile.comm: Use it.
2661 * src/utils/pfbtops/pfbtops.c (get_text): New function. Split
2662 overlong lines into smaller chunks.
2663 (get_binary): New function.
2665 * src/utils/pfbtops/pfbtops.man: Updated.
2667 2003-03-15 Colin Watson <cjwatson@debian.org>
2669 * src/roff/groff/groff.man: Minor syntax fix.
2671 2003-03-14 Egil Kvaleberg <egil@kvaleberg.no>
2673 * src/devices/grops/ps.cc (ps_printer::media_set,
2674 ps_printer::~ps_printer): Handle zero paper width and length.
2676 2003-03-13 Werner LEMBERG <wl@gnu.org>
2678 Add options -p and -l to grodvi.
2680 * src/devices/grodvi/dvi.cc: Include paper.h.
2681 (landscape_flag, user_paper_length, user_paper_width): New global
2683 (dvi_printer::begin_page): Emit `papersize' special.
2684 Set color after initialization of `cur_h' and `cur_v'.
2685 (main): Add options `-l' and `-p'.
2686 * font/devdvi/Makefile.sub (DESC): Set `papersize'.
2687 * src/devices/grodvi/grodvi.man, NEWS: Updated.
2689 * src/devices/grops/psrm.cc (valid_input_table): Fixed.
2691 2003-03-12 Werner LEMBERG <wl@gnu.org>
2693 * src/devices/grops/grops.man: Move documentation of .PSPIC to...
2694 * man/groff_tmac.man: This man page.
2695 * man/groff_font.man: Declare `paperwidth' and `paperlength' as
2698 * tmac/X.tmac: Don't load pspic.tmac.
2700 2003-03-11 Werner LEMBERG <wl@gnu.org>
2702 Make variable `pr' local to libdriver/input.cc. Based on a patch
2703 by Bernd Warken <bwarken@mayn.de>.
2705 * src/include/driver.h (pr): Removed.
2707 * src/libs/libdriver/input.cc (pr): New global variable.
2708 (do_file): Deallocate `pr'.
2709 * src/libs/libdriver/printer.cc (pr): Removed.
2711 * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
2712 (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
2713 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
2714 (main): Don't delete `pr'.
2716 2003-03-10 Werner LEMBERG <wl@gnu.org>
2718 * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
2719 * tmac/papersize.tmac: New file.
2720 * tmac/troffrc: Include `papersize.tmac'.
2721 * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
2722 * tmac/an-old.tmac: Set LT to LL by default.
2724 * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
2725 doc/groff.texinfo: Updated.
2727 * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
2728 bug which caused all odd iso papers to have wrong dimensions.
2730 * src/devices/grops/ps.cc (user_paper_width): New global variable.
2731 (main) <'p'>: Set `user_paper_width' also.
2732 (ps_printer::media_width, ps_printer::media_height): Use values
2733 given with option `-p'.
2735 2003-03-09 Werner LEMBERG <wl@gnu.org>
2737 * src/include/nonposix.h: Provide default for SET_BINARY.
2739 * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
2740 src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
2743 * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
2744 (main): Treat \r\n as \n.
2746 2003-03-08 Werner LEMBERG <wl@gnu.org>
2748 * tmac/an-old.tmac: Use register `HY' to control hyphenation.
2749 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
2751 2003-03-07 Werner LEMBERG <wl@gnu.org>
2753 Added support to access more than 256 glyphs in Type 1 fonts.
2755 * src/devices/grops/ps.cc (subencoding): New structure.
2756 (style): Add `sub' field.
2758 (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
2759 Add `set_subencoding', `get_subfont' and `encode_subfont' member
2762 (ps_printer::set_char): Use `set_subencoding'.
2763 (make_subencoding_name): New function.
2764 (ps_printer::set_style): Handle case where `sty.sub' is not zero.
2765 (ps_printer::~ps_printer): Emit subencoding definitions.
2767 * src/devices/grops/psrm.cc (valid_input_table): New array to
2768 properly support EBCDIC.
2769 (white_space): Add `\f'.
2770 (ps_get_line): Change first argument to be of type `string &'.
2771 Updated all callers.
2772 This allows to get lines of arbitrary length.
2773 Use `valid_input_table'.
2774 Remove warning about non-conforming PS line length. This seems
2775 not to be of great importance -- for example, dvips don't emit
2777 (PS_LINE_MAX): Removed.
2778 (matches_comment): Change first argument to be of type `string &'.
2780 * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
2782 * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
2783 %AGL_to_unicode, %default_ligatures): New hash tables.
2784 Read all map entries.
2785 Add unencoded characters.
2786 Check for default ligatures if there are no `L' entries.
2787 Print all kern entries.
2788 Print all characters in charset.
2789 * src/utils/afmtodit/afmtodit.man: Updated.
2791 * font/devps/*: Regerated all fonts.
2793 * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
2794 of characters, just use `.trin'. Otherwise the mapping depends
2795 on the font encoding.
2796 * tmac/ps.tmac: Add `fi' and `fl'.
2797 Improve `Fi' and `Fl'.
2798 * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
2799 * tmac/Xps.tmac: Fix `em'.
2803 2003-03-04 Werner LEMBERG <wl@gnu.org>
2805 * src/roff/troff/input.cc (charinfo_to_node_list): Reset
2808 2003-03-03 Werner LEMBERG <wl@gnu.org>
2810 * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
2812 * font/devps/generate/textmap: Remove entry `similarequal'.
2813 * font/devps/symbolmap: Updated.
2815 2003-03-02 Werner LEMBERG <wl@gnu.org>
2817 * src/libs/libgroff/font.cc (font::load): Fix error message for
2820 * src/devices/grops/grops.man: Improve documentation of the -b
2823 * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
2824 `ascii' and `cp1047'.
2826 2003-03-01 Werner LEMBERG <wl@gnu.org>
2828 Document composite glyphs and the `composite' request.
2830 * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
2832 2003-02-28 Werner LEMBERG <wl@gnu.org>
2834 * font/devdvi/generate/ec.map: Add some more Unicode entities.
2835 * font/devdvi/*EC: Updated.
2837 * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
2838 * tmac/latin1 (latin1-tr): Undo any previous mapping.
2839 * tmac/troffrc: Load `composite.tmac'.
2840 * tmac/Makefile.sub (NORMALFILES): Updated.
2842 * doc/groff.texinfo (Input Encodings): New section.
2845 2003-02-27 Werner LEMBERG <wl@gnu.org>
2847 * doc/texinfo.tex: New version 2003-02-11.06.
2849 * tmac/doc-common (Dt): Don't emit warning for unknown section.
2850 * tmac/groff_mdoc.man: Fix description of `Dt'.
2852 2003-02-26 Egil Kvaleberg <egil@kvaleberg.no>
2854 * font/devps/prologue.ps: Fix for included Postscript that does
2855 a setpagedevice -- which is now safely ignored.
2859 * src/devices/grops/ps.cc: Now sets the page size in the generated
2860 document. This is done in two ways: Via a %%-comment for gv and
2861 the like, and via a PageSize and setpagedevice for programs that
2862 understands Postscript proper, like ps2pdf.
2864 * src/devices/grops/ps.h: New broken-flag to avoid page size
2865 definition, if required.
2867 * src/devices/grops/grops.man: New broken-flag 16 mentioned.
2869 * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
2870 Not really necessary due to the fix in prologue.ps, but cleaner:
2871 Such information does not belong in an .eps file.
2873 * doc/Makefile.sub: See doc/Makefile.in.
2875 2003-02-26 Ralph Corderoy <ralph@inputplus.co.uk>
2877 * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
2878 instead of P1 since the latter is broken in some versions of netpbm.
2879 * configure: Updated.
2881 2003-02-26 Larry Kollar <kollar@alltel.net>
2883 Make man pages more customizable.
2885 * tmac/an-old.tmac (FT): New register holding footer distance from
2887 (HF): New string holding the default heading font.
2888 (TH): Handle registers `IN' and `SN' set on the command line.
2890 (PT, BT): New strings to customize header and footer lines.
2891 (an-header, an-footer): Use them.
2893 * tmac/groff_man.man: Document changes.
2895 * doc/groff.texinfo: Document man changes.
2896 Document Ultrix extensions of man.
2898 2003-02-26 Werner LEMBERG <wl@gnu.org>
2900 * src/roff/troff/input.cc (do_width, do_if_request): Reset
2901 `have_input' after changing back to old environment.
2903 * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
2904 function up to be defined before first call. This is necessary to
2905 avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
2907 * src/utils/afmtodit/afmtodit.pl: Make script search for files in
2908 the default font directory also. Based on a patch from James
2909 J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
2910 * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
2911 * src/utils/afmtodit/afmtodit.man: Document it.
2915 * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
2917 2003-02-25 Gaius Mulley <gaius@glam.ac.uk>
2919 * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
2920 (GROFF_PNMTOPS_NOSETPAGE): New macro.
2921 * configure.ac: Use it.
2922 * configure: Regenerated.
2923 * Makefile.in: Updated.
2925 * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
2926 (CLEANADD): Add www.tmac-sed.
2927 (pnmtops_nosetpage): Define default.
2928 (install_data): Handle www.tmac-sed and substitute
2929 @PNMTOPS_NOSETPAGE@.
2930 (stamp-sed): Add www.tmac.
2931 * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
2932 It now breaks URLs at suitable places.
2933 (www:substring_ok): New register set by...
2934 (www:@test_substring): New macro.
2935 (www:error): New alias to www-error.
2936 (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
2938 (URL): Use www:url_breaks.
2939 (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
2940 (CDS, CDE): New macros.
2942 2003-02-25 Werner LEMBERG <wl@gnu.org>
2944 * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
2947 2003-02-24 Werner LEMBERG <wl@gnu.org>
2949 Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
2950 can be negative also.
2952 * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
2954 (read_char_table): Avoid negative ascenders.
2955 (output_charset): Add cast.
2956 * font/devlj4/*: Regenerated.
2958 Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
2961 * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
2962 * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
2964 * font/devdvi/*: Regenerated.
2966 Map `la' and `ra' to U+27E8 and U+27E9. These two characters have
2967 normal width, while the previously used characters (U+2329 and
2968 U+232A) are classified as wide due to canonical equivalence with the
2969 CJK punctuation characters U+3008 and U+3009.
2971 * font/devutf8/R.proto: Updated.
2972 * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
2974 * man/groff_char.man: Simplify handling of table traps by
2975 introducing `start block' and `end block' macros.
2976 (Ns, Ne, 2s, 2e, Ds, De): New macros.
2977 (DL): Make it work with Unix troff also.
2978 Fix code values of `la' and `ra'.
2980 * tmac/dvi.tmac: Define `<>' for CW and CWI.
2982 2003-02-23 Gaius Mulley <gaius@glam.ac.uk>
2984 * src/devices/grohtml/post-html.cc (element_list::~element_list):
2985 New destructor, fixing a major memory leak.
2987 2003-02-22 Werner LEMBERG <wl@gnu.org>
2989 * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
2990 to be in conformance with Unicode 3.0 and newer.
2992 * font/devlj4/generate/text.map: Add `Eu'.
2993 * font/devlj4/generate/special.map: Flip `*e' and `+e'.
2994 * font/devlj4/S: Regenerated.
2996 * man/groff_char.man: Completely rewritten.
2998 * doc/groff.texinfo: Fix description of request and macro arguments.
3000 2003-02-20 Gaius Mulley <gaius@glam.ac.uk>
3004 * src/devices/grohtml/html-table.cc (html_table::~html_table):
3005 Deallocate `columns' list.
3006 * src/devices/grohtml/post-html.cc (char_block::~char_block):
3008 (text_glob::text_glob_html, text_glob::text_glob_special,
3009 text_glob::text_glob_line, text_glob::text_glob_auto_image,
3010 text_glob::text_glob_tag): Avoid memory leaks.
3011 (text_glob::remember_table): Free memory before reassigning.
3013 2003-02-19 Werner LEMBERG <wl@gnu.org>
3015 Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
3016 alias `hbar'), the Planck constant over two pi.
3018 * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
3019 `+e' for position 34.
3020 * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
3021 `u2662' and `u2661'.
3022 * font/devdvi/{MI,S}: Regenerated.
3023 * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
3024 * font/devlbp/*: Add `hbar' alias.
3025 * font/devlj4/generate/special.map: Ditto.
3026 * font/devlj4/S: Regenerated.
3027 * font/devps/generate/symbolchars: Add `+e'.
3028 * font/devps/generate/textmap: Fix PS name for `-h'.
3030 * font/devps/symbolmap: Regenerated.
3032 * src/devices/grops/ps.cc (transform_fill): Removed since unused.
3034 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
3036 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
3039 * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
3041 * tmac/tty-char.tmac: Add `+e'.
3043 2003-02-17 Werner LEMBERG <wl@gnu.org>
3045 Another round trying to really fix problems with `have_input'.
3047 * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
3048 (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
3050 * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
3051 handling if both foreground and background colors are default.
3053 * doc/groff.texinfo (Debugging): Document .lf differences to
3056 2003-02-16 Werner LEMBERG <wl@gnu.org>
3058 * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
3059 null-bytes in created string.
3061 * src/roff/troff/input.cc (lookup_color, interpolate_macro,
3062 alias_macro, lookup_request): Improve warning messages.
3064 * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
3066 Free `last_image_filename'.
3068 * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
3070 (imageList::createPage, imageList::createImage): Use `free', not
3072 (imageItem::~imageItem): Free `imageName'.
3073 (addRegDef): Use `strsave', not `strdup'.
3074 (get_resolution): Free `pathp'.
3076 2003-02-15 Werner LEMBERG <wl@gnu.org>
3078 * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
3081 2003-02-14 Werner LEMBERG <wl@gnu.org>
3083 Add memory management for colors to deallocate unnamed colors
3086 * src/include/color.h (color): New members `free_list' and `next'.
3087 New member functions `new' and `delete'.
3089 * src/libs/libgroff/color.cc: Implement it.
3091 * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
3092 for array size of new operator.
3094 * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
3095 redundant comparison.
3097 * src/roff/troff/input.cc (word_space_node::reread,
3098 hmotion_node::reread): Avoid warning about unused parameter.
3099 (reset_output_registers): Remove redundant parameter.
3100 (define_color): Undo change 2003-02-12.
3102 * src/roff/troff/reg.h: Updated.
3104 * src/roff/troff/node.cc (troff_output_file::really_print_line,
3105 output_file::put_filename, real_output_file::really_put_filename,
3106 ascii_output_file::really_print_line,
3107 break_char_node::get_hyphen_list): Avoid warning about unused
3109 (suppress_node::tprint): Updated.
3111 * configure.ac: Check declaration for rand() and srand().
3112 * configure: Regenerated.
3114 * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
3116 * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
3119 * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
3120 to avoid compiler warnings.
3122 * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
3125 * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
3127 * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
3129 Updated all callers.
3131 * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
3133 * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
3134 * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
3136 * src/devices/grohtml/post-html.cc (html_printer::emit_line):
3137 Parameter is unused.
3138 (html_printer::add_table_end): Define parameter conditionally.
3139 * src/devices/grohtml/output.cc (simple_output::special): Parameter
3142 * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
3143 (lbp_printer::set_char): Last parameter is unused.
3145 * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
3147 2003-02-13 Werner LEMBERG <wl@gnu.org>
3149 New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
3150 Make \D'f ...' move horizontally again for backwards compatibility.
3151 Replace it with \D'Fg ...' where appropriate to avoid dependency
3152 on horizontal resolution.
3154 * src/roff/troff/input.cc (do_get_long_name): New function.
3155 (get_long_name): Call it.
3157 (read_draw_node): Handle `\D'Fx ...' by calling ...
3158 (read_color_draw_node): New function.
3160 (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
3162 Pass it to `do_get_long_name' which is used instead of
3165 * src/libs/libdriver/input.cc (color_from_Df_command): Remove
3166 unnecessary value guard.
3167 (parse_D_command) <'f'>: Add horizontal shift.
3169 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
3170 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
3171 (FILL_MAX): Removed.
3173 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3176 2003-02-12 Werner LEMBERG <wl@gnu.org>
3178 * src/roff/troff/input.cc (do_name_test, do_expr_test,
3179 do_zero_width): Push `\n' if closing delimiter is missing.
3181 (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
3182 <'F'>: Make \F non-transparent at the beginning of line.
3183 (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
3184 token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
3187 (define_color): Free color in case of reassignment.
3189 * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
3190 @DefescListEnd): Use @Var, not @var.
3193 * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
3195 * src/preproc/pic/object.cc (object_spec::~object_spec): Free
3196 `shaded' and `outlined' arrays.
3197 (object_spec::object_spec): Initialize `shaded' and `outlined'.
3198 (graphic_object::set_fill_color, graphic_object::set_outline_color):
3200 (closed_object::set_fill_color): Ditto.
3201 * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
3203 (troff_output::reset_color): Use a_delete instead of free.
3204 * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
3206 2003-02-11 Werner LEMBERG <wl@gnu.org>
3208 * doc/groff.texinfo: Improve documentation of `ad'.
3209 Document that \D'f...' is dependent on the horizontal resolution.
3210 * man/groff_diff.man: Improve documentation of \D'f...'.
3212 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
3213 compensating \h'...' for \D'f ...' since the latter no longer moves
3215 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
3217 2003-02-10 Werner LEMBERG <wl@gnu.org>
3219 Improve error messages for `x F' (and `F') commands.
3221 * src/include/error.h: Add declaration for
3222 `current_source_filename'.
3223 * src/libs/libgroff/filename.cc: Add `current_source_filename'.
3224 * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
3225 parameter for source file string.
3226 Updated all callers.
3228 * src/libs/libdriver/input.cc: Add `current_source_filename'.
3229 (remember_source_filename): New function.
3230 (parse_x_command <'F'>, do_file <'F'>): Use it.
3232 2003-02-09 Werner LEMBERG <wl@gnu.org>
3234 Make grotty not emit warnings about unknown colors more than
3237 * src/devices/grotty/tty.cc: Include `ptable.h'.
3238 (TTY_MAX_COLORS): Removed.
3239 (DEFAULT_COLOR_IDX): Defined to -1.
3240 (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
3241 (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
3242 Change `tty_colors' to be a ptable.
3243 First arg of `put_color' is now `char'.
3244 New functions `make_rgb_string' and `tty_color'.
3245 (tty_printer::tty_printer): Use `tty_color'.
3246 (tty_printer::color_to_idx): Return value is now `char'.
3249 * src/include/color.h (color): Add `print_color' member function.
3250 * src/libs/libgroff/color.cc (color::print_color): Implement it.
3252 2003-02-08 Werner LEMBERG <wl@gnu.org>
3256 * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
3259 * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
3260 assume that value has been allocated with `new[]', thus use
3261 `a_delete' for deallocation.
3263 * src/libs/libdriver/input.cc (get_integer_arg,
3264 get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
3267 * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
3268 * src/libs/libgroff/nametoindex.cc
3269 (character_indexer::named_char_index): Use `new <type>[1]'.
3271 * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
3273 * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
3274 (split_text): Use `a_delete'.
3276 * src/preproc/pic/pic.y (define_label, define_variable): Use `new
3279 * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
3280 harmless memory leak.
3281 (hyphen_trie::read_patterns_file): Initialize `buf'.
3282 * src/roff/troff/node.cc (troff_output_file::troff_output_file):
3283 Initialize `current_fill_color'and `current_glyph_color'.
3284 * src/roff/troff/glyphuni.cc
3285 (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
3286 * src/roff/troff/uniuni.cc
3287 (unicode_decompose_init::unicode_decompose_init): Ditto.
3288 * src/roff/troff/uniglyph.cc
3289 (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
3291 2003-01-26 Werner LEMBERG <wl@gnu.org>
3293 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
3294 `access' before calling `unlink'.
3295 (do_file): Handle __EMX__.
3297 * src/include/nonposix.h: Handle __EMX__.
3299 * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
3300 (fontpath,tmacpath): Use it.
3302 Sorted alphabetically.
3304 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
3306 * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
3309 2003-01-27 Werner LEMBERG <wl@gnu.org>
3311 * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
3312 New files, copied from gnulib.
3313 * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
3314 * configure.ac: Updated.
3315 * configure: Regenerated.
3317 * src/include/config.hin: Regenerated.
3318 * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
3319 Don't define `strcasecmp' as `strcmp'.
3320 [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
3321 Dont define `strncasecmp' as `strncmp'.
3323 * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
3326 2003-01-26 Werner LEMBERG <wl@gnu.org>
3328 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
3331 2003-01-25 Werner LEMBERG <wl@gnu.org>
3333 * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
3335 2003-01-24 Werner LEMBERG <wl@gnu.org>
3337 Add US-english hyphenation exceptions (converted from Barbara
3338 Beeton's hyphenation exception log reports which appear irregularly
3341 * tmac/hyphen.us: Updated to latest version.
3342 * tmac/README: Updated.
3343 * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
3344 * tmac/troffrc: Load `hyphenex.us'.
3345 * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
3346 * doc/groff.texinfo: Updated.
3348 2003-01-23 Werner LEMBERG <wl@gnu.org>
3350 Improve hyphenation slightly. This is a first step in redesigning
3351 the hyphenation algorithm to make it more flexible (e.g. allowing
3352 kerns and ligatures between the hyphenation character and the
3353 following character -- while not used normally in English, other
3354 languages like German would benefit).
3356 * src/roff/troff/env.cc (environment::hyphenate_line): Use
3357 assertion instead of if-clause.
3358 Let `get_hyphen_list' return the number of involved characters in
3359 the hyphenation pattern instead of computing it directly (which
3360 often yields too small values).
3361 * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
3362 * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
3365 2003-01-22 Werner LEMBERG <wl@gnu.org>
3367 Fixing a bug which caused groff to hang if the hyphenation exception
3368 dictionary tried to grow.
3370 * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
3371 hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
3372 pointer to dictionary.
3374 2003-01-20 Werner LEMBERG <wl@gnu.org>
3376 * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
3377 negative left italic correction.
3378 * src/utils/afmtodit/afmtodit.man: Document it.
3380 * font/devps/generate/Makefile (RFLAG): Add `-m'.
3381 * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
3382 S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
3386 2003-01-16 Werner LEMBERG <wl@gnu.org>
3390 2003-01-16 Jörgen Grahn <jgrahn@algonet.se>
3392 * src/preproc/refer/refer.man: Mention REFER environment variable.
3394 2003-01-05 Werner LEMBERG <wl@gnu.org>
3396 Similar to \[is], the square root glyph (\[sr]) and the square root
3397 extension glyph (\[radicalex]) are now text symbols. The new
3398 mathematical versions are called \[sqrt] and \[sqrtex],
3401 * font/devX*/S: Regenerated.
3402 * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
3403 * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
3404 * font/devdvi/EX, font/devdvi/S: Regenerated.
3405 * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
3406 * font/devlj4/generate/special.map: Add `sqrt'.
3407 * font/devlj4/S: Regenerated.
3408 * font/devps/generate/textmap: Add `sqrt'.
3409 * font/devps/S, font/devps/symbolmap: Regenerated.
3411 * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
3412 SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
3413 * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
3414 overlap horizontally.
3416 * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
3417 * tmac/dvi.tmac: Add `sr', and `sqrtex'.
3420 * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
3421 and `sqrtex' are overlapping glyphs.
3423 2003-01-04 Werner LEMBERG <wl@gnu.org>
3425 * font/devdvi/generate/texsy.map: Add `is'.
3426 * font/devps/symbolmap: Regenerated.
3427 * font/devdvi/*TC, MI, S: Regenerated.
3429 * tmac/dvi.tmac: Remove `is'.
3431 2003-01-03 Werner LEMBERG <wl@gnu.org>
3433 `is' is now a text symbol (only relevant for dvi). The math variant
3434 can be accessed with `integral'.
3436 * font/devX*/S: Regenerated.
3437 * font/devdvi/generate/texex.map: Remove `is'.
3438 * font/devdvi/EX: Updated.
3439 * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
3440 * font/devlj4/generate/special.map: Ditto.
3441 * font/devlj4/S: Regenerated.
3442 * font/devps/generate/textmap: Add `integral'.
3443 * font/devps/S: Regenerated.
3445 * tmac/dvi.tmac: Define `is'.
3447 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
3449 * src/preproc/tbl/main.cc (process_format): Fix error message.
3451 2003-01-02 Werner LEMBERG <wl@gnu.org>
3453 * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
3454 * font/devps/textmap: Fix entries for `ne' and `nc'.
3455 * font/devps/symbolmap: Regenerated.
3457 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
3458 src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
3459 `38', `58', `78', `-+', `|=', `nc', `ne'.
3461 * tmac/dvi.tmac: Add `nm', `ne', `nc'.
3462 Use `schar' for `aq'.
3463 * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
3464 * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
3465 * tmac/tty.tmac: Add `ne'.
3467 * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
3468 for fallback glyphs.
3470 2002-12-29 Werner LEMBERG <wl@gnu.org>
3474 * font/devX*/*: Regenerated.
3475 * font/devdvi/generate/ec.map: Remove `eq'.
3476 * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
3477 Assign `|=' to position 39.
3478 * font/devdvi/*EC, S: Regenerated.
3479 * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
3480 * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
3481 Assign `|=' to position 549.
3482 * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
3484 Add `uni2243' for `|='.
3486 * tmac/ec.tmac: Add `eq'.
3487 * tmac/dvi.tmac: Add `=~'.
3488 * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
3491 2002-12-21 Werner LEMBERG <wl@gnu.org>
3493 * font/devdvi/generate/tc.map: Remove `**'.
3494 * font/devdvi/*TC: Regenerated.
3495 * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
3497 * font/devutf8/NOTES: Updated.
3499 * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
3500 Don't give default parameter to `set_macro'.
3501 * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
3502 instead of `set_macro'.
3503 (charinfo::setx_macro): Implement it.
3504 (charinfo::set_macro): Don't change `mode'.
3506 * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
3507 * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
3508 * tmac/dvi.tmac: Define `!=' with `.schar'.
3510 2002-12-20 Werner LEMBERG <wl@gnu.org>
3512 * font/devX*/S: Regenerated.
3513 * font/devdvi/generate/ec.map: Remove `pl'.
3514 * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
3515 * font/devdvi/*{TC,EC}: Regenerated.
3516 * font/devhtml/R.proto: Add `-+'.
3517 Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
3518 * font/devlbp/*: Remove `or'.
3519 * font/devlj4/generate/special.map: Remove `or'.
3520 * font/devlj4/S: Regenerated.
3521 * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
3522 `seveneighths', `threeeighths'.
3524 Replace `minusplus' with `uni2213'.
3525 * font/devps/symbolmap: Regenerated.
3526 * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
3529 * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
3531 * src/roff/troff/node.cc (troff_output_file::put_char_width):
3532 Call glyph_color and fill_color even if tcommand_flag isn't set.
3533 (make_node, node::add_char): Check not ci->is_fallback but
3536 * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
3537 * tmac/ec.tmac: Add .rchar entry for `f/'.
3538 Don't remove `12', `14', `34'.
3539 Define `pl' to be always roman.
3540 * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
3541 Define `18', `38', `58', `78'.
3542 * tmac/tty.tmac: Add `-+'.
3543 * tmac/dvi.tmac: Define `f/'.
3544 (dvi-frac): Use `f/'.
3545 * tmac/X.tmac (X-frac, X-frac-mono): New macros.
3546 Define `18', `38', `58', `78'.
3548 2002-12-15 Colin Watson <cjwatson@debian.org>
3550 * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
3552 2002-12-10 Werner LEMBERG <wl@gnu.org>
3554 Add glyph `tno', a textual variant of `no'.
3556 * font/devX*/*: Regenerated.
3557 * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
3558 * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
3559 * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
3560 * font/devdvi/*: Regenerated.
3561 * font/devlbp/*: Add `tno'.
3562 * font/devlj4/generate/tex.map: Replace `no' with `tno'.
3563 * font/devlj4/*: Regenerated.
3564 * font/devps/generate/textmap: Replace `no' with `tno'.
3565 * font/devps/generate/symbolchars: Add `no'.
3566 * font/devps/*: Regenerated.
3568 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
3570 * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
3571 * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
3575 * tmac/dvi.tmac: Replace most `\\' with `\E'.
3576 Add definition for `sd'.
3577 * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
3579 * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
3581 2002-12-08 Werner LEMBERG <wl@gnu.org>
3583 * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
3584 mode to avoid rounding errors.
3585 (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
3587 * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
3588 src/roff/troff/troff.man: Improve documentation of -T.
3590 2002-12-07 Jeff Conrad <jeff_conrad@msn.com>
3592 * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
3593 (run_pipeline) [_WIN32]: Provide working function without `fork'.
3595 2002-12-06 Werner LEMBERG <wl@gnu.org>
3597 * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
3598 glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
3599 Scaling Euro.sansserif glyphs down to have the same height as
3601 Removed unnecessary points; added some extrema.
3603 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
3606 2002-12-04 Werner LEMBERG <wl@gnu.org>
3608 * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
3609 and `Euro.symbol.bold.slanted'.
3610 Improve some glyph offsets and widths.
3611 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
3613 * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
3615 * font/devps/generate/sfdtopfa.pe: Generate PFA in current
3618 * tmac/europs.tmac: Updated to new glyph indices.
3619 Use Euro.symbol for font familiy `A'.
3621 * doc/groff.texinfo: Minor improvements.
3623 2002-12-02 Werner LEMBERG <wl@gnu.org>
3625 * font/devdvi/generate.tc.map: s/%O/%0/.
3626 * font/devdvi/*TC: Regenerated.
3628 * src/roff/troff/div.cc (init_div_requests): Sorted.
3630 * tmac/dvi.tmac: Remove `Ye'.
3631 * tmac/ec.tmac: Remove `Ye'.
3632 Add .rchar entry for `de'.
3634 * man/groff.man, man/groff_diff.man: Document register `.pe'.
3635 * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
3638 2002-11-30 Werner LEMBERG <wl@gnu.org>
3640 Add PS font for various Euro glyphs.
3642 * font/devps/generate/freeeuro.sfd: New master font file for
3644 * font/devps/generate/sfdtopfa.pe: New conversion script for
3646 * font/devps/generate/Makefile (FONTS): Add `EURO'.
3647 (EURO, freeeuro.afm, freeeuro.pfa): New rules.
3648 * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
3650 * font/devps/EURO: Generated from `freeeuro.afm'.
3651 * font/devps/download: Add `freeuro.pfa'.
3652 * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
3655 * tmac/europs.tmac: New file.
3656 * tmac/ps.tmac: Include `europs.tmac'.
3657 * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
3659 2002-11-29 Werner LEMBERG <wl@gnu.org>
3661 * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
3662 * font/devdvi/S: Regenerated.
3663 * font/devhtml/R.proto: Fix `CR' and `ci'.
3665 * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
3667 * font/devps/symbolmap: Regenerated.
3668 * font/devutf8/R.proto: Fix `CR' and `ci'.
3670 * font/devutf8/NOTES: Updated.
3672 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
3675 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
3677 * tmac/dvi.tmac: Add `lh' and `rh'.
3678 * tmac/Xps.tmac: Fix `lh' and `rh'.
3679 * tmac/X.tmac: Add `OK'.
3680 * tmac/lj4.tmac: Ditto.
3682 2002-11-24 Werner LEMBERG <wl@gnu.org>
3684 * font/devX*/S: Regenerated.
3685 * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
3686 `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
3687 * font/devdvi/generate/texsy.map: Remove `or' glyph.
3688 * font/devdvi/S: Regenerated.
3689 * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
3690 `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
3691 `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
3692 `bracketleftbt', `bracketrighttp', `bracketrightex',
3693 `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
3694 `braceex', `braceleftex', `bracerightex', `bracerighttp',
3695 `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
3697 * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
3698 * font/devutf8/NOTES: Updated.
3699 * font/devlj4/generate/special.map: Add glyph `braceex'.
3700 * font/devlj4/S: Regenerated.
3702 * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
3704 2002-11-14 Werner LEMBERG <wl@gnu.org>
3706 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
3709 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
3711 * doc/texinfo.tex: New version from texinfo 4.3.
3712 * doc/groff.texinfo: Updated for texinfo 4.3.
3713 Use @tie{} where appropriate.
3714 * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
3715 * font/devdvi/generate/tc.map: Remove `rn'.
3716 * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
3717 * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
3719 * font/devX100/*, font/devX100-12/*, font/devX75/*,
3720 font/devX75-12/*: Regenerated.
3722 * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
3723 Use .char (again) for `br', `ul', `rn', `or', and `ru'.
3724 Improve definition of `an'.
3725 * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
3727 * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
3728 * tmac/X.tmac: Add definition for `or'.
3729 * tmac/Xps.tmac: Undo change 2002-11-05.
3730 * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
3732 2002-11-11 Werner LEMBERG <wl@gnu.org>
3734 * src/roff/troff/node.cc (troff_output_file::put_char): Always
3737 2002-11-10 Werner LEMBERG <wl@gnu.org>
3739 Added three new requests `schar', `fschar', and `rfschar'. `schar'
3740 defines a glyph which is searched after the check for fonts declared
3741 with `.special' (and before the check for all mounted special
3742 fonts). `fschar' defines a glyph for a particular font which is
3743 searched after the check for fonts declared with `.fspecial' (and
3744 before the check for fonts declared with `.special'). `rfschar'
3745 removes glyphs defined with `fschar'.
3747 * src/roff/troff/token.h (char_mode): New enum.
3748 Declare do_define_character.
3749 * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
3751 (charinfo::is_fallback): Updated.
3752 (charinfo::is_special): New method.
3753 * src/roff/troff/input.cc (do_define_character): Add and use
3754 optional second parameter used as a prefix for font-specific glyph
3756 (define_character, define_fallback_character): Updated.
3757 (define_special_character): New function.
3758 (init_input_requests): Add `schar'.
3759 (charinfo::charinfo, charinfo::set_macro): Updated.
3760 * src/roff/troff/node.cc: Include `stringclass.h'.
3761 (make_glyph_node): Handle special glyphs defined with `.schar' and
3763 (define_font_special_character, remove_font_special_character): New
3765 (init_node_requests): Sorted.
3766 Add `fschar' and `rfschar'.
3767 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3768 Document new requests.
3770 * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
3771 * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
3773 2002-11-08 Werner LEMBERG <wl@gnu.org>
3775 Added new font `SC' (cmtex10) to devdvi.
3777 * devdvi/generate/Makefile (FONTS): Add `SC'.
3779 * devdvi/generate/textex.map: New map file for cmtex.
3781 * devdvi/Makefile.sub (DEVFILES): Updated.
3782 * tmac/dvi.tmac: Add fspecial entries for SC.
3783 Add `MI', `S' and `CW' to the `special' call. Otherwise, `SC' is
3784 found before `S' since the font position of `SC' is lower due to the
3785 gaps in DESC's `font' line.
3786 * tmac/ec.tmac: Add a `special' call.
3789 * font/devhtml/R.proto: Remove double entry for `ti'.
3790 * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
3791 * tmac/tty-char.tmac: Remove entry for `bq'.
3792 * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
3793 * tmac/ec.tmac: Don't remove `aq' glyph.
3794 * tmac/X.tmac: Fix entry for `em'.
3795 Add entries for `fo' and `fc'.
3796 * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
3798 * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
3799 documentation of `special' and `fspecial' requests.
3801 2002-11-05 Werner LEMBERG <wl@gnu.org>
3803 * font/devascii/R.proto, font/devcp1047/R.proto,
3804 font/devlatin1/R.proto: Remove entry for `.i'.
3805 * font/devdvi/generate/textt.map: Add entry for `ad'.
3806 * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
3807 font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
3808 We need this for getting kerning values to compose `/l' and `/L'.
3809 * font/devdvi: Regenerated font definition files for CM fonts.
3810 * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
3811 * font/devutf8/R.proto: Ditto.
3812 Remove double entry for `ti'.
3814 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
3815 for (groff) ligatures, `la', and `ra'.
3816 Add "'C", "'c", `IJ', and `ij'.
3817 Remove double entry for `ti'.
3818 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
3820 Add "'C", "'c", `IJ', and `ij'.
3821 Fix entries for (groff) ligatures, `la', and `ra'.
3823 * tmac/ps.tmac (ps-achar): New macro.
3824 Define "'c" and "'C".
3825 * tmac/tty.tmac: Add entry for `.i'.
3826 * tmac/X.tmac (X-achar): New macro.
3827 Define "'c", "'C", and `:Y'.
3828 Add entries for `IJ' and `ij'.
3829 * tmac/Xps.tmac (Xps-achar): New macro.
3830 Define "'c" and "'C".
3831 Add entries for `IJ' and `ij'.
3832 * tmac/lbp.tmac (lbp-achar): New macro.
3833 Add fallback characters for all groff ligatures and many other
3835 * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
3836 Add entries for `/l' and `/L'.
3837 Define "'c" and "'C".
3838 Add entries for `IJ' and `ij'.
3840 2002-11-02 Larry Kollar <kollar@alltel.net>
3842 * PROBLEMS: Document how to solve Mac OS X compilation problems.
3844 2002-11-02 Werner LEMBERG <wl@gnu.org>
3846 Adding support for composite glyphs: \[xxx yyy ...] and the
3847 `composite' request.
3849 * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
3850 to Unicode-based glyph names.
3851 * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
3852 glyph names to groff glyph names.
3853 * src/roff/troff/uniuni.cc: New file for canonically decomposing
3854 Unicode-based glyph names.
3855 * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
3856 for handling Unicode glyph names.
3857 * src/roff/troff/input.cc: Include unicode.h.
3858 (composite_glyph_name): New function.
3859 (token::next) <'['>: Handle Unicode glyph names and composite
3861 (composite_dictionary): New dictionary for the `composite' request.
3862 (composite_request): Implement `composite' request.
3863 (init_input_requests): Add `composite'.
3864 Alphabetically sorted.
3865 * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
3867 (init_env_requests): Alphabetically sorted.
3868 Removed `tas' and `tar' (already commented out).
3869 * src/roff/troff/Makefile.sub: Updated.
3871 2002-10-31 Ruslan Ermilov <ru@FreeBSD.org>
3873 * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
3876 2002-10-29 Werner LEMBERG <wl@gnu.org>
3878 Fix computation of .trunc register. Additionally, its value (and
3879 the value of the .ne register) is now always set before entering the
3882 * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
3883 `needed_space' before calling `space'.
3884 (top_level_diversion::space): Remove special code for 'sp before the
3886 Call `begin_page' with the discarded space as a parameter.
3887 (top_level_diversion::begin_page): Add optional parameter to set
3889 * src/roff/troff/div.h: Updated.
3891 * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
3894 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
3895 (LP): Remove superfluous call to `br'.
3896 * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
3897 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
3899 2002-10-26 Werner LEMBERG <wl@gnu.org>
3901 * tmac/doc-ditroff: Remove useless switch/variable -rC.
3902 (doc-setup-header): Don't set page register `%'.
3903 * tmac/doc-nroff: Remove variable `C'.
3904 (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
3905 (doc-setup-header): Don't set page register `%'.
3907 * tmac/doc-common (doc-header): Call `ns'.
3908 (doc-paragraph): Protect .sp with .br so that it survives traps
3909 possibly set by the user.
3910 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
3912 * tmac/doc*: Replace ' with . for consistency if no effect.
3914 2002-10-26 Werner LEMBERG <wl@gnu.org>
3916 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
3917 so that it survives traps possibly set by the user.
3919 * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
3920 (troff_output_file::set_font): Call flush_tbuf if necessary.
3921 (troff_output_file::fill_color, troff_output_file::glyph_color): Call
3922 flush_tbuf and do_motion only if necessary.
3923 (troff_output_file::start_special,
3924 troff_output_file::put_char_width, troff_output_file::put_char,
3925 troff_output_file::draw): Updated.
3926 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
3927 vmotion_node::tprint): Undo change 2002-10-23.
3929 2002-10-25 Werner LEMBERG <wl@gnu.org>
3931 * tmac/www.tmac (DC): Fix case of overlapping images.
3933 2002-10-23 Werner LEMBERG <wl@gnu.org>
3935 * src/roff/troff/node.cc (troff_output_file::fill_color,
3936 troff_output_file::glyph_color): Set current color before testing
3938 (troff_output_file::put_char_width, troff_output_file::put_char,
3939 troff_output_file::draw): Don't call flush_tbuf and/or do_motion
3941 (troff_output_file::file_color, troff_output_file::glyph_color):
3943 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
3944 vmotion_node::tprint): Move first, then call fill_color.
3946 2002-10-20 Werner LEMBERG <wl@gnu.org>
3948 * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
3949 possible to use multiple main macro packages.
3951 2002-10-19 Werner LEMBERG <wl@gnu.org>
3953 * src/devices/grops/ps.cc (cmyk_flag): New global variable.
3954 (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
3955 (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
3957 * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
3958 `where' construction since `cmyksetcolor' is a PS Level 2 operator.
3960 2002-10-16 Werner LEMBERG <wl@gnu.org>
3962 * NEWS, doc/webpage.ms: Updated.
3964 2002-10-14 Werner LEMBERG <wl@gnu.org>
3966 * src/roff/troff/node.cc (troff_output_file::put_char_width,
3967 troff_output_file::put_char, troff_output_file::fill_color,
3968 troff_output_file::glyph_color): Handle case where color pointer
3971 2002-10-13 Ruslan Ermilov <ru@FreeBSD.org>
3973 Add the new -r option to grotty. It is similar to the -i option
3974 except it tells grotty(1) to use the "reverse video" attribute to
3975 render italic fonts.
3977 * src/devices/grotty/tty.cc (reverse_flag): New global variable.
3978 (SGR_REVERSE, SGR_NO_REVERSE): New macros.
3979 (tty_printer::make_underline, tty_printer::put_color,
3980 tty_printer::end_page): Use it.
3981 (main): Add -r switch.
3983 * src/devices/grotty/grotty.man: Document it.
3985 2002-10-11 Ruslan Ermilov <ru@FreeBSD.org>
3987 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
3988 cast to `unsigned char' to properly read patterns with 8bit
3991 2002-10-08 Werner LEMBERG <wl@gnu.org>
3993 * REVISION: Increased to 2.
3995 Version 1.18.1 released
3996 =======================
3998 2002-10-08 Werner LEMBERG <wl@gnu.org>
4000 * doc/webpage.ms, NEWS: Updated.
4002 2002-10-07 Werner LEMBERG <wl@gnu.org>
4004 * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
4005 suppress additional whitespace after the header.
4007 * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
4010 * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
4012 2002-10-07 Ruslan Ermilov <ru@FreeBSD.org>
4014 * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
4015 (Dt): Use it to improve language localization (especially Russian
4018 2002-10-07 Daniel Senderowicz <daniel@synchrods.com>
4020 * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
4021 * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
4023 * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
4025 Call `picurve' for BSPLINE.
4026 (HGPrintElt): Handle BSPLINE.
4027 * src/preproc/grn/README: Document it.
4029 2002-10-03 Werner LEMBERG <wl@gnu.org>
4031 * src/roff/troff/node.cc (break_char_node::col): New variable.
4032 Updated constructor.
4033 (space_node::tprint, word_space_node::tprint): Call `fill_color'
4035 (space_node::space_node): Remove assertion.
4036 (break_char_node::add_self): Pass color argument to space node.
4037 * src/roff/troff/input.cc (token::add_to_node_list, token::process):
4039 * src/roff/troff/env.cc (environment::do_break,
4040 environment::add_padding): Ditto.
4042 2002-10-02 Werner LEMBERG <wl@gnu.org>
4044 Redesigning color support in troff. Colors are no longer
4045 represented as separate nodes but are now part of glyph nodes and
4046 friends. This fixes the current formatting misbehaviour due to the
4047 changes introduced on 2002-09-20. Some extra code is necessary for
4048 proper grotty support: Without adding color variables to
4049 space-related nodes, the background color would be changed too late.
4051 * src/roff/troff/node.h, src/roff/troff/node.cc:
4052 s/current_pagecolor/current_fill_color/.
4053 s/current_glyphcolor/current_glyph_color/.
4054 (glyph_color_node, fill_color_node): Removed.
4055 (node::get_glyph_color, node::get_fill_color): New virtual member
4057 (space_node::col): New variable.
4058 Updated constructors of space_node and derived classes accordingly.
4059 (hmotion_node::col): New variable.
4060 Updated constructors of hmotion_node and space_char_hmotion_node
4062 (vmotion_node::col): New variable.
4063 Updated constructor accordingly.
4064 (draw_node::gcol, draw_node::fcol): New variables.
4065 Updated constructor accordingly.
4066 (special_node::gcol, special_node::fcol): New variables.
4067 Updated constructors accordingly.
4068 (troff_output_file::put_char, troff_output_file::put_charwidth,
4069 troff_output_file::draw): Set glyph and fill color.
4070 (troff_output_file::start_special): Set glyph and fill color.
4071 Always set current font.
4072 (troff_output_file::fill_color, troff_output_file::glyph_color):
4073 Don't call `do_motion'.
4074 (glyph_node::gcol, glyph_node::fcol): New variables.
4075 Updated constructors of glyph_node and ligature_node accordingly.
4076 (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
4078 (glyph_node::merge_glyph_node,
4079 kern_pair_node::add_discretionary_hyphen,
4080 node::add_discretionary_hyphen): Updated.
4081 (break_char_node::merge_self): Updated.
4082 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4083 vmotion_node::tprint): Handle color.
4084 (make_glyph_node, make_node, node::add_char): Updated.
4086 * src/roff/troff/env.cc (environment::space_newline,
4087 environment::space, environment::output_line, environment::do_break,
4088 environment::make_tab_node, environment::add_padding, title):
4090 (environment_switch, environment_copy): Don't add color nodes.
4092 * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
4094 (token::next): Updated.
4095 \m and \M now are as transparent as \s.
4096 (process_input_stack, token::add_to_node_list, token::process,
4097 read_draw_node): Updated.
4098 (charinfo_to_node_list): Don't add color nodes.
4100 * doc/groff.texinfo: Updated.
4102 2002-09-27 Ruslan Ermilov <ru@FreeBSD.org>
4104 * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
4107 2002-09-27 Colin Watson <cjwatson@debian.org>
4109 * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
4111 2002-09-23 Werner LEMBERG <wl@gnu.org>
4113 * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
4115 (DEFAULT_LINEWIDTH_FACTOR): New macro.
4116 (linewidth_factor): New global variable.
4117 (lbp_printer::set_line_thickness): Fix case for size < 0, using
4119 (long_options): Add -w/--linewidth option.
4121 (main): Handle -w option to set linewidth_factor.
4122 (lbp_printer::lbp_printer): Initialize req_linethickness, not
4125 * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
4127 2002-09-22 Paco Andrés Verdú <pandres@dragonet.es>
4129 Fixed a bug in the line thickness setting code.
4131 * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
4133 (lbp_printer::set_line_thickness): Pass environment as second
4135 Implement it actually.
4136 (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
4137 and `set_line_thickness, depending on the current font size.
4139 2002-09-21 Werner LEMBERG <wl@gnu.org>
4141 Some Debian patches.
4143 * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
4144 * src/roff/troff/node.cc (bracket_node::copy): Initialize
4147 2002-09-20 Werner LEMBERG <wl@gnu.org>
4149 * configure: Regenerated with autoconf 2.54.
4151 2002-09-20 Werner LEMBERG <wl@gnu.org>
4153 * src/roff/troff/env.h (environment): Rename cur_glyph_color to
4155 Rename cur_fill_color to fill_color.
4156 * src/roff/troff/env.cc: Updated.
4158 2002-09-20 Werner LEMBERG <wl@gnu.org>
4160 * src/roff/troff/env.cc (title): Copy color status after processing
4162 * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
4163 fill color nodes to reset colors properly.
4165 * tmac/www.tmac (DC): Fix color handling.
4167 * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
4168 * doc/groff.texinfo: Fixing documentation of `tl' request.
4169 * doc/webpage.ms: Updated.
4171 2002-09-19 Werner LEMBERG <wl@gnu.org>
4173 * src/roff/troff/env.cc (environent_switch, environment_copy):
4174 Emit glyph and fill color nodes to initialize colors properly.
4176 2002-09-17 Colin Watson <cjwatson@debian.org>
4178 * src/roff/troff/env.cc (environment::set_glyph_color,
4179 environment::set_fill_color): Fix typo which prevented \m[] work
4182 2002-09-17 Werner LEMBERG <wl@gnu.org>
4184 Add left and right italic correction to non-slanted PS fonts. This
4185 is an experimental feature to improve image rendering of grohtml.
4187 * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
4188 ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
4189 * font/devps/*: All non-slanted fonts regenerated.
4192 2002-09-16 Werner LEMBERG <wl@gnu.org>
4194 Add a site-specific font directory.
4196 * Makefile.in (localfontdir, legacyfontdir): New variables.
4197 (fontpath): Use them.
4198 (MDEFINES, uninstall_dirs): Updated.
4199 * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
4200 Remove `FONTPATH' and `MACROPATH'.
4202 * src/roff/troff/troff.man, NEWS: Updated.
4203 * doc/groff.texinfo (Font Directories): New section.
4206 * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
4207 src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
4208 src/preproc/grn/grn.man: Minor fixes.
4210 * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
4211 Remove unused variable.
4213 2002-09-11 Werner LEMBERG <wl@gnu.org>
4215 * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
4216 * man/groff_out.man: Fix documentation of 'N'.
4218 2002-09-09 Gaius Mulley <gaius@glam.ac.uk>
4220 * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
4221 * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
4223 * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
4224 (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
4225 (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
4226 * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
4227 PRE_TAG>: Call `begin' with `FALSE'.
4229 2002-09-09 Ralph Corderoy <ralph@inputplus.demon.co.uk>
4231 * src/libs/libgroff/string.cc (string::extract): Fix position of
4232 terminating null byte.
4234 2002-09-08 Werner LEMBERG <wl@gnu.org>
4236 Add global option `nospaces' to tbl so that leading and trailing
4237 spaces in data items are ignored.
4239 * src/libs/libgroff/string.cc (string::remove_spaces): New member
4240 function to remove leading and trailing spaces.
4241 * src/include/stringclass.h: Updated.
4243 * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
4245 * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
4247 Fix typo in error messages.
4248 (process_data): Implement `nospaces' option.
4249 * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
4251 2002-09-07 Werner LEMBERG <wl@gnu.org>
4253 * src/include/config.hin: Add `HAVE_ISATTY'.
4254 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
4256 * src/libs/libgroff/tmpname.cc: Include `time.h'.
4257 * src/libs/libdriver/input.cc (Char): Add `operator==' and
4258 `operator!=' for `char'.
4259 * doc/groff.texinfo: Replace @ifnottex block for top node with
4262 2002-09-06 Werner LEMBERG <wl@gnu.org>
4264 * doc/Makefile.in (.texinfo.html): Add -I switch.
4265 * doc/groff.texinfo: Add @ifnottex block for top node to make
4266 translation to HTML work.
4268 2002-09-05 Gaius Mulley <gaius@glam.ac.uk>
4270 * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
4271 (get_papersize, determine_vertical_offset): Removed.
4272 (char_buffer::do_image): Always specify letter size.
4274 (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
4277 2002-09-05 Werner LEMBERG <wl@gnu.org>
4279 * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
4280 default indentation.
4282 2002-09-04 Gaius Mulley <gaius@glam.ac.uk>
4284 * src/preproc/html/pre-html.cc (imageList::createPage): Use
4286 (generateImages): Clean up push-back buffer.
4288 2002-09-04 Ralph Corderoy <ralph@inputplus.demon.co.uk>
4290 * doc/groff.texinfo: Minor fixes.
4292 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
4294 * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
4295 (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
4297 (determine_vertical_offset): Use LETTER_LENGTH.
4298 (createPage): Moved to ...
4299 (imageList::createPage): This.
4300 Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
4301 (imageList::getMaxX): New function.
4302 (createImage): Moved to ...
4303 (imageList::createImage): This.
4304 (imageList::createImages): New function.
4305 (generateImages): Read `maxx' directly.
4307 (scanArguments): Don't specify `gsPaper' for `-o'.
4308 (makeTempFiles): Call `xtmpfile' with the last argument set to
4311 2002-08-24 Werner LEMBERG <wl@gnu.org>
4313 * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
4314 (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
4315 * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
4316 * src/preproc/html/pushback.cc: Include nonposix.h.
4317 * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
4320 2002-08-23 Werner LEMBERG <wl@gnu.org>
4322 Use $(OBJEXT) for the object file extension.
4324 * Makefile.comm (.SUFFIXES): Add .obj.
4325 (.cc.obj, .c.obj): New implicit rules.
4326 * Makefile.in (OBJEXT): New variable, initialized from autoconf.
4327 (MDEFINES): Add EXEEXT and OBJEXT.
4328 * */Makefile.sub: s/.o/.$(OBJEXT)/.
4330 2002-08-22 Werner LEMBERG <wl@gnu.org>
4332 * INSTALL: Mention texinfo 4.2 as a prerequisite.
4334 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
4336 * src/devices/grohtml/post-html.cc (colType): Make enum global to
4338 (html_printer::update_min_max, html_printer::add_table_end): New
4340 (html_printer::lookahead_for_tables): Use them.
4341 Reset page offset correctly.
4342 (html_printer::~html_printer): Add creation of creator comment up.
4344 2002-08-20 Werner LEMBERG <wl@gnu.org>
4346 * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
4347 * man/groff_tmac.man: Fix typos.
4348 * man/groff_font.man: Minor reordering.
4349 * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
4351 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
4353 Avoid endless loops while scanning for tables.
4355 * src/devices/grohtml/post-html.cc (list::insert): Set
4357 (html_printer::next_horiz_pos): Add `text_glob' argument; update
4359 Return immediately if that argument is NULL.
4360 (html_printer::calc_nf): Don't test if `g' is NULL.
4361 (html_printer::lookahead_for_tables): Use
4362 `glyphs.move_right_get_data'.
4363 Don't test if `g' is NULL.
4365 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
4367 A better fix, replacing fix 2002-08-15, for increasing SIZE.
4369 * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
4371 (char_block::char_block): Allocate `buffer'.
4372 (char_buffer::add_string): Use it.
4374 2002-08-15 Werner LEMBERG <wl@gnu.org>
4376 * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
4377 src/devices/grodvi/grodvi.man: Document default line thickness.
4379 2002-08-15 Gaius Mulley <gaius@glam.ac.uk>
4381 * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
4384 2002-08-14 Werner LEMBERG <wl@gnu.org>
4386 * doc/webpage.ms: Updated.
4388 2002-08-09 Werner LEMBERG <wl@gnu.org>
4390 * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
4393 2002-08-08 Aaron Campbell <aaron@monkey.org>
4395 * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
4398 2002-08-08 Werner LEMBERG <wl@gnu.org>
4400 * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
4403 Don't push back a space but a newline onto the stack.
4405 2002-08-07 Gaius Mulley <gaius@glam.ac.uk>
4407 Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
4410 * src/devices/grohtml/post-html.cc (html_printer::end_font,
4411 html_printer::start_font): Handle them.
4412 * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
4414 (html_text::do_bold): Don't reset italic and tt.
4415 (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
4416 * font/devhtml/DESC.proto: Add those fonts.
4417 * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
4419 2002-08-07 Werner LEMBERG <wl@gnu.org>
4421 * MORE.STUFF: Added gpresent.
4423 * tmac/trace.tmac: Show nesting level by a corresponding amount of
4424 whitespace before printing the logging message.
4426 2002-07-31 Colin Watson <cjwatson@debian.org>
4428 * src/devices/grohtml/html-table.cc (html_table::finish_row):
4429 Initialize `n' to zero. This fixes a segfault on ARM.
4431 2002-07-30 Werner LEMBERG <wl@gnu.org>
4433 * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
4435 2002-07-29 Werner LEMBERG <wl@gnu.org>
4437 * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
4440 2002-07-28 Colin Watson <cjwatson@debian.org>
4442 * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
4444 (html_printer::html_printer): Initialize `pointsize'.
4446 2002-07-26 Werner LEMBERG <wl@gnu.org>
4448 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
4450 (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
4451 (gnu.eps): Add -rle switch to pnmtops.
4452 (distfiles): Add gnu.eps and gnu.png.
4454 2002-07-25 Petter Reinholdtsen <pere@hungry.com>
4456 * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
4459 2002-07-24 Werner LEMBERG <wl@gnu.org>
4461 * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
4462 ' \+' but ' *' for sed.
4463 (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
4465 2002-07-23 Werner LEMBERG <wl@gnu.org>
4467 * doc/groff.texinfo: Document `papersize' keyword.
4468 * NEWS, man/groff_font.man: Updated.
4470 2002-07-23 Colin Watson <cjwatson@debian.org>
4472 Extend papersize keyword to accept more than a single entry. The
4473 first valid will be used.
4475 * src/libs/libgroff/font.cc (font::load_desc): Implement it.
4476 (font::scan_papersize): Really skip final newline.
4477 * src/preproc/html/pre-html.cc (get_papersize): Ditto.
4479 2002-07-23 Werner LEMBERG <wl@gnu.org>
4481 * configure.ac: Test for isatty.
4482 * configure: Regenerated.
4483 * src/include/posix.h: Check HAVE_ISATTY.
4484 * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
4485 * src/utils/lookbib/lookbib.cc: Include posix.h.
4486 Don't declare isatty.
4488 2002-07-21 Werner LEMBERG <wl@gnu.org>
4490 * NEWS: Add `output' request.
4492 * REVISION: Increased to 1.
4494 Version 1.18.0 released
4495 =======================
4497 2002-07-19 Gaius Mulley <gaius@glam.ac.uk>
4499 Allow internal glyph indices > 0xFF in grohtml for input characters.
4501 * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
4503 (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
4504 Updated all callers.
4505 (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
4506 (html_printer): Updated.
4508 2002-07-19 Werner LEMBERG <wl@gnu.org>
4510 * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
4511 * font/devutf8/R.proto: Adding some missing glyphs.
4512 * font/devutf8/NOTES: Updated.
4514 * tmac/dvi.tmac: Add more composite glyphs.
4515 * tmac/html.tmac: Updated.
4517 * man/groff_char.man: Add `sum' and `product' entities.
4521 2002-07-18 Gaius Mulley <gaius@glam.ac.uk>
4523 Improved table, tab, and indenting support.
4525 * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
4526 string_iterator::suppress_newline_flag): Removed. Updated all
4527 function which have used it.
4529 * src/roff/troff/env.cc: Include `input.h'.
4530 (environment::add_node): Accept 0 as parameter.
4531 (environment::add_html_tag): Add `force' parameter.
4532 Updated all callers.
4533 (environment::add_html_tag_tabs): Ditto.
4534 For the moment, support left-aligned tabs only.
4535 (environment::make_html_tag): New function.
4536 (fill, no_fill): Set .br html tag additionally.
4537 (environment::newline): Emit `eol.ce' or `eol' tag for html.
4538 (environment::add_html_tag_eol): Removed.
4539 (tab_stops::distance_to_next_tab): Add variant for handling
4541 (environment::distance_to_next_tab): Ditto.
4542 Updated all callers.
4543 (environment::handle_tab): Handle tabs for html.
4545 * src/roff/troff/env.h: Updated.
4547 * src/roff/troff/div.cc: Updated all callers of
4548 `environment::add_html_tag'.
4550 * src/devices/grohtml/html-table.cc,
4551 src/devices/grohtml/html-table.h: New files.
4553 * src/devices/grohtml/html-text.cc (html_text): New members
4554 `blank_para' and `start_space'.
4555 (html_text::issue_tag): Don't emit TABLE_TAG.
4556 Handle indentation for PRE_TAG and P_TAG.
4557 (html_text::end_tag): Updated.
4558 (html_text::table_is_void, html_text::issue_table_begin,
4559 html_text::issue_table_end): Removed.
4560 (html_text::do_push): Simplified.
4561 [DEBUGGING]: Small fix.
4562 (html_text::push_para): Add new parameter for indentation; updated
4565 (html_text::do_indent, html_text::do_table, html_text::done_table,
4566 html_text::is_in_table): Removed.
4567 (html_text::do_pre): Handle P_TAG also.
4568 (html_text::shutdown): Handle p->indent.
4569 (html_text::check_emit_text): Simplified.
4570 (html_text::do_emittext): Reset `blank_para'.
4571 (html_text::do_para): Add new parameter for indentation; updated
4573 (html_text::remove_indent): New function.
4574 (html_text::do_space): Handle verbatim text properly.
4575 (html_text::ever_emitted_text, html_text::starts_with_space,
4576 html_text::remove_para_align): New functions.
4577 (html_text::dump_stack_element, html_text::dump_stack): Updated.
4579 * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
4582 * src/devices/grohtml/post-html.cc: Include html-table.h.
4583 (INDENTATION): Removed.
4584 (text_glob): Added many `is_<foo>' functions.
4585 Added table description `tab'.
4586 Added `get_arg',`get_tab_args', `remember_table', and `get_table'
4588 (list): Add `insert' and `move_to' member functions.
4589 (page): Add `insert_tag' member function.
4590 (page::dump_page) [DEBUG_TABLES]: Improved.
4591 (html_printer): Add `table' and `max_linelength' elements.
4592 Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
4593 `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
4594 `remove_tabs', `remove_courier_tabs'.
4595 (html_printer::emit_raw): Handle indentation.
4596 (html_printer::do_center, html_printer::write_header): Updated.
4597 (html_printer::is_courier_until_eol): Check for tag.
4598 (html_printer::do_linelength): Handle max_linelength.
4599 (html_printer::do_page_offset, html_printer::do_indentation): Handle
4601 (html_printer::do_tempindent): Updated.
4602 (html_printer::do_indentedparagraph): Removed.
4603 (html_printer::do_indent): Simplified.
4604 (html_printer::do_eol): Use `ever_emitted_text'.
4605 (html_printer::do_flush, html_printer::do_links): Don't call
4607 (html_printer::do_break): Handle end_tempindent.
4608 (html_printer::troff_tag): Get argument.
4610 Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
4611 (html_printer::flush_page): Call `lookahead_for_tables'.
4612 Don't call `done_table'.
4613 (html_printer::add_to_sbuf): Always call do_indent.
4615 * src/devices/grohtml/Makefile.sub: Updated.
4617 * tmac/an-old.tmac (TP): Don't handle html device specially.
4618 (an-do-tag-html): New function which will be used instead of
4619 `an-do-tag' if html device is used.
4621 * tmac/html.tmac: Call .po to pass default page offset to grohtml.
4623 * tmac/s.tmac (@IP): Don't handle html device specially.
4624 (@IP-html): New function which will be used instead of `@IP' if
4625 html device is used.
4627 * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
4628 is a hack which will eventually vanish again.
4629 (PIMG): Handle `-C' option correctly if not html.
4632 2002-07-17 Werner LEMBERG <wl@gnu.org>
4634 * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
4636 2002-07-14 Eric S. Raymond <esr@thyrsus.com>
4638 * contrib/pic2graph/pic2graph.*: Use convert(1).
4639 * contrib/eqn2graph/eqn2graph.*: Minor fixes.
4641 2002-07-14 Bernd Warken <bwarken@mayn.de>
4643 * tmac/groff_trace.man: New file.
4644 * tmac/Makefile.sub: Updated.
4647 2002-07-13 Werner LEMBERG <wl@gnu.org>
4649 * src/roff/groff/groff.man: Add some cross references.
4651 2002-07-12 Werner LEMBERG <wl@gnu.org>
4653 * src/roff/troff/input.cc (substring_request): Add warnings for
4654 string indices out of range.
4656 2002-07-11 Werner LEMBERG <wl@gnu.org>
4658 * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
4659 * font/devdvi/*EC: Regenerated.
4661 2002-07-10 Bernd Warken <bwarken@mayn.de>
4663 * man/groff_char.man: Updated and extended.
4665 2002-07-10 Werner LEMBERG <wl@gnu.org>
4667 * src/roff/troff/input.cc (length_macro): Renamed to...
4668 (length_request): This.
4669 Move call of `tok.next()' to the very end, otherwise the register
4670 value hasn't been updated yet.
4671 (init_input_requests): Updated.
4673 2002-07-09 Werner LEMBERG <wl@gnu.org>
4675 * src/roff/troff/input.cc (substring_macro): Renamed to...
4676 (substring_request): This.
4677 (init_input_requests): Updated.
4678 * src/roff/troff/request.h: Updated.
4680 2002-07-08 Robert D. Goulding <goulding@Princeton.EDU>
4682 * src/roff/grog/grog.sh: Fix typo.
4684 2002-07-08 Werner LEMBERG <wl@gnu.org>
4686 * win32-diffs: Updated.
4688 Handle `papersize' keyword properly in DESC.
4690 * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
4692 Updated all callers.
4693 * src/libs/libgroff/paper.cc: Add four more paper formats used by
4695 * src/include/paper.h: Updated.
4697 * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
4698 Other minor C syntax fixes.
4699 (papersize, paperlength, paperwidth): Renamed to `user_*'.
4700 (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
4702 (lbp_printer::lbp_printer): Pass three arguments.
4703 Set paper dimensions properly.
4704 (make_printer, main): Updated.
4705 (handle_unknown_desc_command): Fix error messages.
4706 (main): Handle papersize keyword in DESC properly.
4708 * src/devices/grolj4/lj4.cc (paper_size): Renamed to
4710 (lbp_printer::lbp_printer): Pass an argument.
4711 Set paper_size properly.
4712 (handle_unknown_desc_command): Removed.
4713 (make_printer, main): Updated.
4714 * src/devices/grolj4/grolj4.man: Minor documentation fix.
4716 * man/groff_font.man, NEWS: Updated.
4718 2002-07-07 Werner LEMBERG <wl@gnu.org>
4720 Integrated eqn2graph, contributed by Eric S. Raymond.
4722 * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
4724 * Makefile.in, NEWS: Updated.
4726 2002-06-04 Werner LEMBERG <wl@gnu.org>
4728 Changing the substring request to make it fit better with other
4729 string manipulation functions in other programming languages:
4730 Index 0 is now the first character in the string, and index -1
4731 indicates the last character. Since this request didn't work
4732 properly anyway in the last release, it doesn't harm too much to
4735 * src/roff/troff/input.cc (substring_macro): Use loops to get
4736 the real string length (ignoring COMPATIBLE_SAVE and
4737 COMPATIBLE_RESTORE) and offsets.
4738 Implement change described above.
4740 * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
4741 (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
4743 * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
4745 2002-06-03 Werner LEMBERG <wl@gnu.org>
4747 Make .chop work with .de1 and friends. COMPATIBLE_SAVE and
4748 COMPATIBLE_RESTORE are completely ignored.
4750 * src/roff/troff/input.cc (char_list::set, char_list::get): New
4752 (macro): `length' field renamed to `len'.
4753 Added new field `empty_macro' (1 if macro is empty), to be used
4754 instead of checking `len'.
4755 Updated all callers.
4756 (macro::empty): Updated.
4757 (macro::length, macro::set, macro::get): New functions.
4758 (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
4760 (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
4761 COMPATIBLE_RESTORE pairs.
4762 (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
4763 * src/roff/troff/request.h: Updated.
4765 * doc/groff.texinfo: Document .chop's behaviour better.
4767 2002-06-02 Werner LEMBERG <wl@gnu.org>
4769 * doc/pic.ms: Fix documentation for the addition of positions.
4771 * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
4773 2002-06-29 Werner LEMBERG <wl@gnu.org>
4775 Implementation of string arguments of the form \*[foo arg1 arg2 ...]
4777 * src/roff/troff/input.cc (have_string_arg): New global variable.
4778 (read_mode): New enumeration.
4779 (read_escape_name): Use it. Update all calls.
4780 (read_long_escape_name): Use it. Update all calls.
4781 Set have_string_arg if appropriate.
4782 (get_char_for_escape_name): Add parameter for handling space
4784 (interpolate_string_with_args, decode_string_args): New functions.
4785 (get_copy, token::next): Call it if necessary.
4786 (interpolate_string): Fix error message.
4788 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
4791 2002-06-24 Bernd Warken <bwarken@mayn.de>
4793 * man/groff_tmac.man: Updated and extended.
4795 2002-06-24 Werner LEMBERG <wl@gnu.org>
4797 * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
4799 2002-06-23 Werner LEMBERG <wl@gnu.org>
4801 * doc/pic.ms: Improve documentation of composite block objects.
4803 2002-06-22 Werner LEMBERG <wl@gnu.org>
4805 * src/roff/troff/input.cc (init_registers): Add three registers
4806 `seconds', `minutes', and `hours' to hold the current time.
4808 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
4811 2002-06-20 Werner LEMBERG <wl@gnu.org>
4813 Make \X accept both `\ ' and `\~', converting them to single space
4816 * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
4817 (token::unstretchable_space): New inline function.
4818 * src/roff/troff/input.cc (token::next, token::delimiter,
4819 token::description, token::add_to_node_list, token::process): Handle
4820 TOKEN_UNSTRETCHABLE_NODE.
4821 (encode_char): Handle tok.stretchable_space and
4822 tok.unstretchable_space.
4824 * NEWS, doc/groff.texinfo: Document it..
4826 2002-06-19 Werner LEMBERG <wl@gnu.org>
4828 * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
4830 * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
4831 keyword to enable/disable SGR output.
4832 (tty_printer::change_fill_color): New function.
4833 * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
4835 * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
4838 2002-06-18 Werner LEMBERG <wl@gnu.org>
4840 Add a `color' request and a `.color' register to control usage of
4843 * src/roff/troff/input.cc (disable_color_flag): Replaced with...
4844 (color_flag): This (which is the inverse).
4845 (activate_color): New function.
4846 (main, init_input_requests): Updated.
4847 * src/roff/troff/troff.h, src/roff/troff/node.cc
4848 (troff_output_file::fill_color, troff_output_file::glyph_color):
4851 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
4852 Document the changes.
4854 2002-06-17 Colin Watson <cjwatson@debian.org>
4856 Circumvent bug in autoconf 2.53 regarding top_builddir.
4858 * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
4859 * Makefile.in, doc/Makefile.in:
4860 s/@top_builddir@/@groff_top_builddir@/.
4861 * configure: Regenerated (with autoconf 2.53).
4863 2002-06-17 Werner LEMBERG <wl@gnu.org>
4865 * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
4866 `paperwidth' and `paperlength' for the `papersize' keyword.
4868 2002-06-16 P. Alejandro Lopez-Valencia <dradul@007mundo.com>
4870 * src/devices/grops/grops.man: Add info about Type 42 fonts.
4872 2002-06-15 Gaius Mulley <gaius@glam.ac.uk>
4874 * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
4875 html_printer::do_linelength, html_printer::do_pageoffset,
4876 html_printer::do_indentation, html_printer::do_tempindent,
4877 html_printer::do_break, html_printer::begin_page): Clear indented
4879 * tmac/html.tmac: Disable hyphenation.
4881 2002-06-15 Werner LEMBERG <wl@gnu.org>
4883 Don't produce HTML files if utility programs are missing.
4885 * Makefile.in (make_html, make_install_html): New variables.
4886 (MDEFINES): Updated.
4888 * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
4890 * configure.ac: Use it.
4891 * configure: Regenerated.
4893 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
4894 (HTMLEXAMPLESFILES): This new variable.
4895 (EXAMPLESIMAGEFILES): Renamed to...
4896 (HTMLEXAMPLEIMAGEFILES): This.
4897 (CLEANADD): Add HTMLEXAMPLEFILES.
4898 (all): Use `make_html'.
4900 (install_data): Use `make_install_html'.
4901 Move html stuff to...
4902 (install_html): This new target.
4903 (uninstall_sub): Updated.
4905 2002-06-14 Bernd Warken <bwarken@mayn.de>
4907 * src/roff/grog/Makefile.sub (grog): Renamed to...
4909 (grog): New rule to always install grog.sh as grog.
4911 2002-06-08 Bernd Warken <bwarken@mayn.de>
4913 * src/roff/grog/grog.pl: Fix typo.
4915 2002-06-07 Werner LEMBERG <wl@gnu.org>
4917 * doc/groff.texinfo: Add more info on .tr arguments.
4919 2002-06-05 Werner LEMBERG <wl@gnu.org>
4921 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
4923 * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
4924 * configure: Regenerated.
4926 2002-06-05 Ralph Corderoy <ralph@inputplus.demon.co.uk>
4928 * src/roff/troff/symbol.cc (table_sizes): Add more values.
4930 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
4932 2002-06-04 Werner LEMBERG <wl@gnu.org>
4934 * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
4935 is not initialized at the time we need it in case `--prefix' hasn't
4936 been set. Check for `ac_default_prefix' also.
4937 Test for `papersize' keyword also and generalize allowed whitespace.
4938 * configure: Regenerated.
4940 * font/devps/Makefile.sub (DESC): Use `papersize' instead of
4943 * src/libs/libgroff/Makefile.sub (version, revision): Replaced
4945 (src_version, src_revision): New variables to avoid overwriting
4946 from parent make process.
4947 (version.cc): Updated.
4949 * src/preproc/html/pre-html.cc: Include paper.h and font.h.
4950 (linebuf, linebufsize): New global variables.
4951 (sys_fatal): Use `fatal' to abort properly.
4952 (get_line): New function.
4953 (get_resolution): Use it.
4954 Improve error messages.
4955 (get_papersize): Check `papersize' also.
4957 Improve error messages.
4959 2002-06-03 Werner LEMBERG <wl@gnu.org>
4961 * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
4962 should be removed only if builddir is not srcdir.
4963 (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
4964 (clean): Depend on `mostlyclean'.
4965 (distclean): Depend on `clean'.
4966 (realclean, extraclean): Depend on `distclean'.
4967 (.y.cc, .y.o): Simplified. The output files are no longer written
4968 to srcdir but to builddir.
4969 * Makefile.in (MDEFINES): Add `version' and `revision'.
4970 (uninstall_dirs): Fix order of directories.
4971 * doc/Makefile.sub (version, revision): Removed.
4972 (CLEANADD): Removed grnexmpl.g, groff, groff-*.
4973 Added `HTMLDOCFILES'.
4974 (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
4975 * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
4976 src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
4979 * doc/texinfo.tex (\authortt): New macro.
4980 (\shortcontt): Define.
4981 (\titlepage): Set \tt to \authortt while defining \authorfont.
4982 (\appendixbox): New macro.
4983 (\chapmacro, \appendixentry): Use \appendixbox to get even
4984 indentation for letters.
4985 (\summarycontents): Set \tt.
4986 (\internalpagesize): Add two arguments for real paper width and
4987 height as needed by pdfTeX.
4988 (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
4990 (\tempdima, \tempdimb): New temporary dimensions.
4991 (\pagesizesyyy): Updated.
4993 2002-06-02 Werner LEMBERG <wl@gnu.org>
4995 Adding a new keyword `papersize' to the DESC file format (similar
4996 but not completely identical to grolbp's extension). grops now has
4997 a -p command line option to override `papersize'. Finally, grolbp
4998 has been adapted to the new syntax.
5000 * src/libs/libgroff/paper.cc, src/include/paper.h: New files. It
5001 defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
5003 * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
5004 (CCSRCS): Add `paper.cc'.
5006 * src/include/font.h (font): Add `papersize' element.
5007 * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
5008 (font::scan_papersize): New function.
5009 (font::load_desc): Use it for handling `papersize' keyword.
5010 * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
5012 * src/devices/grops/ps.cc: Include paper.h.
5013 (user_paper_length): New global variable.
5014 (ps_printer): Use paper length as initializer.
5015 (make_printer): Updated.
5016 (main): Handle new `-p' option.
5017 * src/devices/grops/grops.man: Updated.
5019 * src/devices/grolbp/lbp.cc: Include paper.h.
5020 s/papersizes/lbp_papersizes/.
5021 (set_papersize): Use new `papersizes' array.
5022 (handle_unknown_desc_command): Don't handle `papersize'.
5023 (main): Use `font::scan_papersize' for handling `-p' option.
5024 * src/devices/grolbp/grolbp.man: Updated.
5026 * man/groff_font.man: Document `papersize'.
5029 2002-05-30 Werner LEMBERG <wl@gnu.org>
5031 * src/devices/grops/TODO: Updated.
5032 * src/devices/grops/grops.man: More info on paper formats.
5033 * man/groff_font.man: Document `paperheight' and `paperwidth'.
5035 2002-05-29 Werner LEMBERG <wl@gnu.org>
5037 * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
5038 to list only if srcdir != currdir.
5039 (distfiles): New target.
5041 * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
5042 (NOMAKEDIRS): New variable.
5045 2002-05-26 Werner LEMBERG <wl@gnu.org>
5047 Add .output request, similar to \! at top-level.
5049 * src/roff/troff/input.cc (transparent): Remove unused declaration.
5050 (output_request): New function.
5051 (init_input_requests): Add it.
5053 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5056 * Makefile.in (MDEFINES): Add INSTALL_INFO.
5057 (prepare_examples): Fix typo.
5058 * doc/groff.texinfo (@direntry): Fix it.
5060 2002-05-25 Werner LEMBERG <wl@gnu.org>
5062 Including the doc subdir into groff's Makefile system.
5064 * aclocal.m4 (GROFF_INSTALL_INFO): New function.
5065 * configure.ac: Use it.
5066 Generate `doc/Makefile'.
5067 * configure: Regenerated.
5069 * Makefile.in (infodir, INSTALL_INFO): New variables.
5070 (MDEFINES, uninstall_dirs): Updated.
5071 (OTHERDIRS): Add `doc'.
5072 * Makefile.comm (CLEANDIRADD): New variable.
5073 (mostlyclean): Use it.
5075 * doc/Makefile.sub, doc/Makefile.in: New files.
5076 * doc/Makefile: Removed.
5078 * NEWS, INSTALL: Updated.
5080 2002-05-24 Werner LEMBERG <wl@gnu.org>
5082 * doc/homepage.ms: Renamed to ...
5083 * doc/webpage.ms: This.
5086 2002-05-23 Werner LEMBERG <wl@gnu.org>
5088 Integrating the `mom' macro package, contributed by Peter Schaffter
5091 * contrib/mom/*: New subdirectory tree.
5092 * Makefile.in (docdir, exampledir, htmldocdir): New variables to
5093 be used for documentation files.
5094 (MDEFINES, uninstall_dirs): Use them.
5095 (OTHERDIRS): Add contrib/mom.
5096 * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
5098 * MANIFEST, NEWS: Updated.
5100 2002-05-22 Gaius Mulley <gaius@glam.ac.uk>
5102 Change syntax of \O: \O[0] suppresses output, \O[1] enables output
5103 if at outer level; at start-up we are at outer level.
5105 * src/roff/troff/input.cc (do_suppress): Implement it.
5108 Add option -p to show progress information.
5109 pre-grohtml will now render only one page at a time, reducing the
5110 size of needed disk resources enormously.
5112 * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
5113 (imagePageName): New global variable.
5114 (psPageName, show_progress, currentPageNo): New global variables.
5115 (html_system): Close saved stderr and stdout handles.
5116 (write_end_image): Accept a parameter to control \O escape.
5117 (write_start_image): Adapted to new \O meaning.
5118 (char_buffer::write_upto_newline): Updated.
5119 (createAllPages): Replaced with...
5120 (createPage): This new function to create a single page for images.
5121 It uses `psselect' from the psutils package.
5122 (removeAllPages): Removed.
5123 (createImage): Updated.
5124 Handle progress display.
5125 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
5126 (scanArguments): Add option -p.
5127 (makeTempFiles): Updated to create temp files for psPageName and
5129 (removeTempFiles): Removed.
5132 * src/devices/grohtml/post-html.cc (header_desc::write_headings,
5133 html_printer::write_header): Append `\0' to `buffer'.
5134 (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
5136 * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
5137 Handle `text_emitted'.
5138 (html_text::table_is_void): Slightly rewritten.
5139 (stop): New external symbol.
5140 (html_text::do_push) [DEBUGGING]: Use it and simplify.
5141 (html_text::shutdown): Call `dump_stack'.
5142 (html_text::do_space): Rewritten.
5143 * src/devices/grohtml/grohtml.man: Document -p and the need of
5146 * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
5148 Call \O[0] if `ps4html' is active.
5149 * tmac/s.tmac (@EQ, @EN): Handle html better.
5151 * tmac/html.tmac: Don't use black for background colour.
5153 * src/roff/troff/node.cc: Include `div.h'.
5154 (troff_output_file::really_print_line): Don't use `is_on'.
5155 (troff_output_file::word_marker, troff_output_file::flush_tbuf
5156 troff_output_file::check_charinfo,
5157 troff_output_file::put_char_width, troff_output_file::put_char,
5158 troff_output_file::determine_line_limits, troff_output_file::draw,
5159 real_output_file::begin_page, glyph_color_node::tprintf,
5160 fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
5162 (troff_output_file::really_on): Call `do_motion'.
5163 (suppress_node::tprint): Use `get_page_number' instead of `%'
5165 Call `reset_output_registers' conditionally on `is_on'.
5167 * doc/groff.texinfo: Document new syntax of \O.
5168 * NEWS, man/groff_diff.man: Updated.
5170 2002-05-22 Werner LEMBERG <wl@gnu.org>
5172 * MORE.STUFF: Add info about David Frey's deroff implementation.
5175 2002-05-16 Werner LEMBERG <wl@gnu.org>
5177 Pic's `with' attribute now accepts positions.
5179 * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
5180 ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
5182 (object_spec): Add rule for `WITH' and `position'.
5183 (relative_path): Give `corner' the precedence of `CHOP'.
5184 * src/preproc/pic/object.h (path): New members `pos' and
5186 * src/preproc/pic/object.cc: Updated initializers of `path'.
5187 (path::follow): Handle `is_position'.
5189 * doc/pic.ms: Completely updated grammar description.
5190 Many typographical improvements.
5192 2002-05-15 Werner LEMBERG <wl@gnu.org>
5194 * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
5195 code of x in range 0-127) also.
5196 * doc/groff.texinfo, man/groff_diff.man: Updated.
5198 Added keywords `north', `south', `east', and `west' for corners
5201 * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
5203 (yylex): Handle them.
5204 * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
5205 (corner): Handle them.
5207 2002-05-14 Werner LEMBERG <wl@gnu.org>
5209 * src/devices/grops/grops.man: Clarify handling of `download' file.
5211 2002-05-11 Werner LEMBERG <wl@gnu.org>
5213 Adding `warnscale' and `spreadwarn' requests, based on a patch from
5214 Jeffrey Friedl <jfriedl@yahoo.com>.
5216 * src/roff/troff/input.cc (spread_limit, warn_scale,
5217 warn_scaling_indicator): New global variables.
5218 (warnscale_request, spreadwarn_requests): New functions.
5219 (main): Initialize `warn_scale' and `warn_scaling_indicator'.
5220 (init_input_requests): Updated.
5221 (error_type): Add `OUTPUT_WARNING'.
5222 (do_error): Handle it.
5223 (output_warning): New warning function which shows output location.
5224 * src/roff/troff/env.h (spread_limit): New external variable.
5225 * src/roff/troff/env.cc (environment::choose_breakpoint): Use
5227 (distribute_space): Emit warning if added space is larger than
5229 (environment::possibly_break_line): Emit warning if a line can't
5230 be adjusted on both sides.
5232 * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
5234 2002-05-08 Werner LEMBERG <wl@gnu.org>
5236 * src/roff/troff/node.cc (special_node::special_node): Use
5237 env_definite_font(curenv) instead of curenv->get_font(). Otherwise
5238 \X''\% crashes, for example.
5240 * doc/groff.texinfo: Document \! and \? used at top-level.
5242 2002-05-06 Werner LEMBERG <wl@gnu.org>
5244 * src/preproc/pic/pic.man: Fix some keyword syntax.
5245 Other minor typographical fixes.
5247 * src/roff/groff/groff.man: Fix typos.
5249 2002-05-04 Werner LEMBERG <wl@gnu.org>
5251 * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
5252 (ShortOpt[]): This to avoid problems with refer.
5254 * doc/pic.ms: Fix typo.
5255 Fix pic grammar description.
5257 * tmac/an-old.tmac (ne): Use de1, not de.
5259 2002-05-03 Werner LEMBERG <wl@gnu.org>
5261 * doc/groff.texinfo: Finished separation of glyphs and characters.
5262 Don't use the string `Appendix' for appendix headers (both in
5263 the text and the table of contents).
5264 * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
5267 Use registers LL and LT (similar to -ms) for controlling the
5268 length of title and line, respectively, in the -man and -mdoc
5271 * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
5272 (doc-setup-page-layout): Use \n[LL] and \n[LT].
5273 * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
5275 (an-header, an-p-footer): Use \n[LT].
5276 * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
5277 doc/groff.texinfo: Document it.
5279 2002-05-02 Werner LEMBERG <wl@gnu.org>
5281 * doc/fdl.texi: New file.
5282 * doc/groff.texinfo: Include it.
5283 Define and use @copying.
5284 Starting with separating glyph, symbol, and character.
5286 2002-04-27 Werner LEMBERG <wl@gnu.org>
5288 * Makefile.in (EXEEXT): Set it.
5289 * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
5292 * src/include/nonposix.h: Define GS_NAME.
5293 * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
5295 Some preliminary changes for EMX support under OS/2.
5297 * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
5298 __EMX__ similar to __MSDOS__.
5299 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
5301 2002-04-25 Werner LEMBERG <wl@gnu.org>
5303 * doc/groff.texinfo: Integrated groff_out.man.
5306 2002-04-23 Werner LEMBERG <wl@gnu.org>
5308 * man/groff_out.man: Minor fixes.
5310 2002-04-23 Werner LEMBERG <wl@gnu.org>
5312 * doc/groff.texinfo: Moving @cindex entries after @Def* to get
5313 correct page references.
5314 Fixed many index entries.
5316 2002-04-23 Bernd Warken <bwarken@mayn.de>
5318 * man/roff.man: Enlarged.
5320 2002-04-22 Werner LEMBERG <wl@gnu.org>
5322 * doc/groff.texinfo: More examples, other fixes.
5324 2002-04-20 Werner LEMBERG <wl@gnu.org>
5326 * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
5327 will now form a chain, e.g.
5336 This is for compatibility with plan 9's troff.
5338 * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
5342 * doc/groff.texinfo: Add documentation of remaining requests and
5345 2002-04-19 Werner LEMBERG <wl@gnu.org>
5347 * doc/groff.texinfo: Add documentation of remaining escapes.
5349 * font/devdvi/generate/tc.map: Remove entry for `sr'.
5350 * font/devdvi/*TC: Regenerated.
5352 2002-04-18 Werner LEMBERG <wl@gnu.org>
5354 * src/roff/troff/input.cc (token::next): Make \H behave consistently
5355 if not in compatibility mode, i.e., increment relative to the
5357 * doc/groff.texinfo: Updated accordingly.
5359 2002-04-17 Werner LEMBERG <wl@gnu.org>
5361 * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
5363 2002-04-16 Bernd Warken <bwarken@mayn.de>
5365 * src/roff/groff/groff.man: Improve documentation of -P option.
5368 2002-04-15 Werner LEMBERG <wl@gnu.org>
5370 Add new escape \F to switch font family.
5372 * src/roff/troff/input.cc (token::next): Handle \F.
5373 * src/roff/troff/env.cc (environment::set_family): Handle
5375 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5378 2002-04-14 Werner LEMBERG <wl@gnu.org>
5380 * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
5383 2002-04-13 Werner LEMBERG <wl@gnu.org>
5385 Implement \f[] as an alternative to \fP. Change \mP and \MP to
5386 \m[] and \M[], respectively.
5388 * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
5389 (symbol::symbol): Handle NULL string and empty string differently.
5390 * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
5391 * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
5392 Add optional parameter.
5393 Updated calling functions.
5394 (get_copy, do_glyph_color, do_fill_color, token::next): Use
5396 * src/roff/troff/env.cc (environment::set_font): Ditto.
5398 * src/preproc/pic/troff.cc (troff_output::set_fill,
5399 troff_output::reset_color: Updated.
5401 * tmac/www.tmac: Updated.
5403 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
5404 doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
5407 * tmac/Xps.tmac: Remove some redundant code.
5409 * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
5410 tmac/dvi.tmac, man/roff.man, man/groff_out.man, man/groff.man,
5411 man/groff_diff.man, src/roff/groff/groff.man: Replace \f[P] with
5414 2002-04-13 Bernd Warken <bwarken@mayn.de>
5416 * src/include/printer.h, src/libs/libdriver/printer.cc
5417 (printer::change_fill_color): New member function.
5418 * src/libs/libdriver/input.cc (parse_D_command): Use it.
5420 2002-04-12 Werner LEMBERG <wl@gnu.org>
5422 * doc/groff.texinfo: Completed pass on gtroff reference.
5424 2002-04-11 Werner LEMBERG <wl@gnu.org>
5426 * doc/groff.texinfo: More fixes.
5428 2002-04-11 Bernd Warken <bwarken@mayn.de>
5430 * src/include/color.h: Decorate with `const'.
5433 * src/libs/libgroff.color.cc: Decorate with `const'.
5435 (color::color): Initialize members.
5436 * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
5437 command according to the documentation.
5439 * man/groff_out.man: Updated.
5442 2002-04-11 Gaius Mulley <gaius@glam.ac.uk>
5444 * src/preproc/html/pre-html.cc (write_start_image): Remove
5446 * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
5448 * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
5449 \C'hy' caused an assertion failure.
5451 * src/roff/troff/env.cc (environment::environment): Initialize
5453 (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
5455 2002-04-10 Werner LEMBERG <wl@gnu.org>
5457 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
5458 Document pvs request and .pvs register.
5460 2002-04-09 Werner LEMBERG <wl@gnu.org>
5462 * doc/groff.texinfo: Improve and fix documentation of diversions
5465 2002-04-08 Werner LEMBERG <wl@gnu.org>
5467 * doc/groff.texinfo: Fix documentation of drawing functions.
5470 2002-04-07 Werner LEMBERG <wl@gnu.org>
5472 * doc/groff.texinfo: Better documentation of double quotes as
5476 2002-04-06 Werner LEMBERG <wl@gnu.org>
5478 * man/groff_font.man: Document names of special characters better.
5479 * doc/groff.texinfo: Minor improvements.
5481 * tmac/lbp.tmac: Load latin1.tmac.
5482 * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
5484 * font/devX*/*: Regenerated (all chars > 0x80 removed).
5486 2002-04-05 Werner LEMBERG <wl@gnu.org>
5488 * tmac/tty.tmac: Don't use shc request.
5489 * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
5492 * man/groff_diff.man: Minor fixes.
5494 * font/devlbp/*: Remove all `charXXX' entities.
5496 * src/libs/libgroff/font.cc (font::~font): Deallocate
5497 `special_device_coding'.
5498 (font::load): Use `new' for allocating `special_device_coding'.
5499 * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
5500 Removed unused member.
5502 2002-04-05 Werner LEMBERG <wl@gnu.org>
5504 * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
5505 (resource_manager::do_begin_binary,
5506 resource_manager::do_begin_data): Use it.
5508 * doc/texinfo.tex: Updated to version 4.2.
5510 * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
5511 (token::zero_width_break): New inline function.
5512 * src/roff/troff/input.cc (token::next): Use it.
5513 (token::description): Updated.
5514 (encode_char): Ignore `\%', `\&', `\)', and `\:'.
5515 (token::add_to_node_list, token::process): Use it.
5516 * NEWS, doc/groff.texinfo: Updated.
5518 * src/preproc/eqn/over.cc (over_box::output): Fix typo.
5519 * tmac/tty.tmac: Add missing backslash.
5521 2002-04-04 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
5523 * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
5524 `.ps' register instead of `.s' to handle fractional point sizes.
5525 * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
5526 limit_box::output): Ditto.
5527 * src/preproc/eqn/other.cc (size_box::compute_metrics,
5528 size_box::output): Ditto.
5529 * src/preproc/eqn/over.cc (over_box::compute_metrics,
5530 over_box::output): Ditto.
5531 * src/preproc/eqn/script.cc (script_box::compute_metrics,
5532 script_box::output): Ditto.
5533 * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
5534 sqrt_box::output): Ditto.
5536 2002-04-03 Michael Selway <mas@ssl.co.uk>
5538 * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
5541 2002-04-03 Werner LEMBERG <wl@gnu.org>
5543 * doc/homepage.ms: Reduce title size.
5544 * doc/groff.texinfo: Fix documentation of .t register.
5545 Fix handling of colon.
5548 * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
5549 only if page length is positive to avoid a loop.
5551 * tmac/an-old.tmac (ne): Increase page length to avoid problems with
5554 2002-04-02 P. Alejandro Lopez-Valencia <dradul@yahoo.com>
5556 * src/include/nonposix.h, src/roff/groff/pipeline.c:
5557 s/__CYGWIN32__/__CYGWIN__/.
5559 2002-03-28 Gaius Mulley <gaius@glam.ac.uk>
5561 * doc/gnu.xpm: New image contributed by Emily Mulley.
5562 * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
5563 (homepage.html): Be dependent on gnu.eps.
5564 * doc/homepage.ms: Updated to new image.
5566 * src/devices/grohtml/post-html.cc (html_printer): New member
5568 (html_printer::flush_sbuf, html_printer::set_char): Set it.
5569 (html_printer::sbuf_continuation): Use it.
5571 2002-03-28 Werner LEMBERG <wl@gnu.org>
5573 * src/libs/libgroff/getopt.c: Updated to latest version.
5575 * tmac/README: More on hyphen.tex license.
5577 2002-03-26 Larry Kollar <kollar@alltel.net>
5579 * doc/groff.texinfo: Add documentation of most missing requests.
5581 2002-03-25 Werner LEMBERG <wl@gnu.org>
5583 Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
5584 of `+-', `mu', and `di', respectively.
5586 * font/devascii/R.proto, font/devutf8/R.proto,
5587 font/devlatin1/R.proto, font/devhtml/R.proto,
5588 font/devcp1047/R.proto, font/devlpb/*: Add them.
5589 * font/devps/generate/textmap: Ditto.
5590 * font/devps/*: Regenerated.
5591 * font/devlj4/generate/text.map: Add them.
5592 * font/devlj4/*: Regenerated.
5593 * font/devdvi/generate/tc.map: Use them.
5594 * font/devdvi/generate/texsy.map: Add them.
5595 * font/devdvi/*: Regenerated.
5596 * font/devX*/*: Regenerated.
5598 * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
5599 tmac/tty-char.tmac: Updated.
5601 * NEWS, man/groff_char.man: Updated.
5603 2002-03-24 Werner LEMBERG <wl@gnu.org>
5605 * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
5606 tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
5607 * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
5608 we use `.fchar' in dvi.tmac.
5609 * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
5610 * tmac/Xps.tmac: Simplify some char definitions.
5611 Add definition for \[f/].
5612 * man/groff_char.man: Updated for new X.tmac.
5614 * tmac/README: New file.
5616 2002-03-23 Phil Lobbes <phil@perkpartners.com>
5618 * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
5619 internal .y.o rule took precendence over the .y.cc rule, compiling
5620 the yacc files with gcc instead of g++.
5622 2002-03-23 Werner LEMBERG <wl@gnu.org>
5624 * tmac/dvi.tmac: Add replacement font for `CB'.
5626 * tmac/doc.tmac: s/request/macro/ in messages.
5627 (doc-generic-macro): Improve error message.
5628 * tmac/groff_mdoc.man: Minor improvements.
5630 2002-03-22 Werner LEMBERG <wl@gnu.org>
5632 * doc/groff.texinfo: Document possible conflict between `tr' and
5635 2002-03-21 Werner LEMBERG <wl@gnu.org>
5637 Improve handling of hyphenation patterns. It is now possible to
5638 use most of TeX's pattern files unmodified. To make the process
5639 more flexible, a new request `hpfcode' has been added which
5640 provides a character code mapping for the `hpf' request. See
5641 comment before hpf_getc() for more details.
5643 * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
5645 (read_patterns_file): Additional parameter for exception dictionary.
5646 Extended to recognize \pattern, \hyphenation, and \endinput.
5647 (do_hyphenation_patterns_file): Updated.
5648 * src/roff/troff/env.h (hpf_code_table): New extern.
5650 * src/roff/troff/input.cc (hpf_code_table): New array.
5651 (init_hpf_code_table, hyphenation_patterns_file_code): New
5653 (hyphenation_code): Handle translation from `trin' correctly.
5654 (main, init_input_requests): Updated.
5655 (charinfo::set_translation): Handle hyphenation code also.
5657 * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
5660 * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
5661 char' is used for offsets in hyphenation exceptions.
5663 * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
5665 * NEWS, man/groff_diff.man, man/groff.man: Document it.
5667 2002-03-20 Larry Kollar <kollar@alltel.net>
5669 * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
5672 2002-03-18 Werner LEMBERG <wl@gnu.org>
5674 * tmac/html.tmac: Fix serious typo.
5676 2002-03-17 Larry Kollar <kollar@alltel.net>
5678 * doc/groff.texinfo: Add documentation for `writec' request.
5680 2002-03-17 Werner LEMBERG <wl@gnu.org>
5682 Added request `hpfa' to append hyphenation patterns.
5684 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
5686 (hyphenation_patterns_file): Renamed to...
5687 (do_hyphenation_patterns_file): This.
5688 (hyphenation_patterns_file, hyphenation_patterns_file_append): New
5690 (init_hyphen_requests): Updated.
5691 * NEWS, man/groff.man, man/groff_diff.man: Document it.
5693 2002-03-16 Werner LEMBERG <wl@gnu.org>
5695 Added request `writec' in analogy to `tmc'.
5697 * src/roff/troff/input.cc (write_request): Renamed to...
5698 (do_write_request): This.
5699 Added one parameter.
5700 (write_request, write_request_continue): New functions.
5701 (init_input_requests): Updated.
5702 * NEWS, man/groff.man, man/groff_diff.man: Document it.
5704 * font/devdvi/DESC.in (sizes): Allow all sizes in the range
5706 * NEWS: Document it.
5708 2002-03-15 Werner LEMBERG <wl@gnu.org>
5710 * man/groff.man: Add writem request.
5712 Add request `trin' (translate input) to make `.asciify' work
5713 correctly. This is necessary since `charXXX' entity names are no
5714 longer hardcoded in font definition files.
5716 * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
5717 `translate_input' members.
5718 (charinfo::set_asciify_code, charinfo::get_asciify_code,
5719 charinfo::set_translation_input): New methods.
5720 (charinfo::set_translation): Add third argument.
5721 * src/roff/troff/input.cc (charinfo:set_translation): Set
5723 (do_translate): Add second argument.
5724 (translate_input): New function.
5725 (init_input_requests): Updated.
5726 * src/roff/troff/node.cc (glyph_node::asciify,
5727 composite_node::asciify): Use `get_asciify_code'.
5729 * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
5731 * NEWS, man/groff.man, man/groff_diff.man: Updated.
5733 2002-03-14 Larry Kollar <kollar@alltel.net>
5735 * doc/groff.texinfo: Improve documentation of .RS and .RE.
5737 2002-03-14 Werner LEMBERG <wl@gnu.org>
5739 Add a new request `sizes' similar to the `sizes' command in DESC
5742 * src/roff/troff/env.cc (override_sizes): New function.
5743 (init_env_requests): Use it.
5744 * src/roff/troff/token.h: Export `read_string'.
5745 * NEWS, man/groff_diff.man, man/groff.man: Document it.
5747 2002-03-12 Werner LEMBERG <wl@gnu.org>
5749 * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
5751 2002-03-10 Werner LEMBERG <wl@gnu.org>
5753 * tmac/pspic.tmac: Add support for -Tdvi.
5754 * tmac/dvi.tmac: Include pspic.tmac.
5755 * src/devices/grodvi/grodvi.man: Document it.
5758 * font/devlj4/generate/Makefile: Fix URL of metric files.
5760 2002-03-09 Werner LEMBERG <wl@gnu.org>
5762 * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
5764 2002-03-09 Larry Kollar <kollar@alltel.net>
5766 * tmac/groff_ms.man: Add documentation for RS and RE macros.
5768 2002-03-08 Werner LEMBERG <wl@gnu.org>
5770 * doc/groff.texinfo: Fixes for texinfo 4.1.
5772 2002-03-07 Werner LEMBERG <wl@gnu.org>
5774 * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
5776 Handle CYGWIN properly.
5778 2002-03-07 Paco Andrés Verdú <pandres@dragonet.es>
5780 * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
5781 * tmac/lbp.tmac: Add some font translations.
5783 2002-03-02 Werner LEMBERG <wl@gnu.org>
5785 * font/devcp1047/R.proto, font/devlatin1/R.proto,
5786 font/devhtml/R.proto: Remove `charXXX' entries.
5787 * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
5790 * font/devlj4/generate/text.map: Remove `charXXX' entries.
5791 * font/devlj4/*: Regenerated all font definition files.
5792 * tmac/lj4.tmac: Load latin1.tmac.
5794 * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
5795 from 2000-06-17: LJ4 metric files are *not* text files.
5797 * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
5798 register to test for EBCDIC.
5800 2002-03-01 Werner LEMBERG <wl@gnu.org>
5802 * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
5803 files (as grops already does).
5804 * src/utils/afmtodit/afmtodit.man: Document comment lines in map
5806 * src/devices/grops/grops.man: Document comment lines in encoding
5809 * tmac/cp1047.tmac: New file.
5810 * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
5811 * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
5812 * tmac/Makefile.sub (NORMALFILES): Updated.
5814 * tmac/ec.tmac: Don't load latin1.tmac again.
5816 * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
5817 font/devps/generate/dingbats.map,
5818 font/devps/generate/dingbats.rmap, font/devps/text.enc,
5819 font/devps/generate/Makefile (symbolmap): Add header comment.
5820 * font/devps/generate/textmap: Ditto.
5821 Remove `charXXX' entries.
5822 * font/devps/symbolmap: Regenerated.
5823 * font/devps/*: Regenerated all font definition files.
5825 2002-02-28 Werner LEMBERG <wl@gnu.org>
5827 Add color support to grodvi (for drawing colors are currently
5828 translated to gray values).
5830 * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
5831 (dvi_printer): Add `cur_color' member.
5832 (dvi_printer::set_color): New function.
5833 (draw_dvi_printer): Remove `fill'.
5834 (draw_dvi_printer::fill_next): Pass environment as parameter.
5835 Update code for new color support translated to gray.
5836 (dvi_printer::set_char): Updated.
5837 (dvi_printer::begin_page, dvi_printer::end_page): Handle color
5838 changes crossing the page border.
5839 (dvi_printer::draw): Updated.
5840 Remove cases `f' and `F'.
5841 * tmac/dvi.tmac: Add color definitions.
5842 * NEWS, src/devices/grodvi/grodvi.man: Updated.
5844 * tmac/an-old.tmac (R): Make this a macro to emit a warning if
5847 * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
5848 versions of autoconf.
5849 * configure: Updated.
5851 * doc/homepage.ms: Use `.blm'.
5852 * tmac/www.tmac (www-depth): New auxiliary variable.
5853 (www-pop-level): Don't issue HTML tag.
5854 (ULS, ULE, LI): Use absolute indentation.
5856 * src/devices/grops/ps.cc (ps_printer::begin_page,
5857 ps_printer::end_page): Switch forth and back to default color while
5858 starting a new page.
5860 2002-02-27 Werner LEMBERG <wl@gnu.org>
5862 Add EC and TC fonts to devdvi.
5864 * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
5865 * font/devdvi/generate/cork.map: Renamed to...
5866 * font/devdvi/generate/ec.map: This.
5867 Remove entry for `aq'.
5868 * font/devdvi/generate/tc.map: New file.
5869 * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
5872 * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
5873 * font/devdvi/Makefile.sub (DEVFILES): Updated.
5874 * tmac/ec.tmac: New file.
5875 * tmac/Makefile.sub (NORMALFILES): Updated.
5876 * NEWS, src/devices/grodvi/grodvi.man: Updated.
5877 * man/groff_char.man: Check `ECFONTS' register.
5879 * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
5881 2002-02-26 Werner LEMBERG <wl@gnu.org>
5883 * font/devdvi/generate/*.map: Remove all `charXXX' entries.
5884 * font/devdvi/generate/cork.map: Add 'y and 'Y.
5885 * font/devdvi/*: Updated.
5886 * tmac/dvi.tmac: Formatting.
5888 Add font `HBI' for the dvi output.
5889 Add support for font families `T' and `H'.
5891 * font/devdvi/HBI: New file.
5892 * font/devdvi/B: Renamed to ...
5893 * font/devdvi/TB: This.
5894 * font/devdvi/BI: Renamed to ...
5895 * font/devdvi/TBI: This.
5896 * font/devdvi/I: Renamed to ...
5897 * font/devdvi/TI: This.
5898 * font/devdvi/R: Renamed to ...
5899 * font/devdvi/TR: This.
5900 * font/devdvi/H: Renamed to ...
5901 * font/devdvi/HR: This.
5902 * font/devdvi/Makefile.sub (DEVFILES): Updated.
5903 * font/devdvi/generate/Makefile (HBI): New rule.
5905 (R, I, B, BI, H): Renamed to ...
5906 (TR, TI, TB, TBI, HR): This, respectively.
5908 * NEWS, src/devices/grodvi/grodvi.man: Updated.
5909 * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
5910 Add `styles' and `family' keywords.
5911 * tmac/dvi.tmac: Alias `H' to `HR'.
5912 Add some fspecial requests for italic fonts.
5913 Add TR and TI as special.
5914 Add support for `_' with font CWI.
5916 * src/roff/troff/number.cc (parse_expr): Add missing `break' for
5917 operator `:'. Until now, the expression `0:1' would return 2
5920 2002-02-25 Werner LEMBERG <wl@gnu.org>
5922 * man/groff_char.man: Added some missing PS glyph names (from the
5924 * font/devps/generate/textmap, font/devps/symbolmap: Add
5927 * doc/groff.texinfo: Minor additions and fixes.
5928 * man/groff_diff.man: Remove documentation of fp request. This
5929 is already covered in the original troff manual.
5930 Updated to be consistent with other doc files.
5933 2002-02-24 Werner LEMBERG <wl@gnu.org>
5935 * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
5937 Define new variable OTHERDEVDIRS (containing `font/devlj4
5938 font/devlbp' if not EBCDIC).
5939 * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
5940 (OTHERDEVDIRS): New variable.
5941 (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
5942 * configure: Regenerated.
5944 * NEWS, src/devices/grotty/grotty.man: Updated.
5946 2002-02-23 Werner LEMBERG <wl@gnu.org>
5948 * src/roff/troff/input.cc (do_overstrike, do_bracket,
5949 get_line_arg): Honour input level.
5951 Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
5953 * font/*/*: Implement it in all font files.
5954 * font/devps/generate/textmap, font/devps/generate/symbolchars,
5955 * font/devps/symbolmap: Updated.
5956 * font/devlj4/generate/text.map: Updated.
5957 * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
5958 * font/devdvi/generate/texmi.map: Updated.
5960 * font/devutf8/R.proto: Remove all `charXXX' entries.
5961 * font/devutf8/NOTES: Updated.
5963 * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
5966 * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
5968 * NEWS, man/groff_char.man: Updated.
5970 2002-02-21 Phil Lobbes <phil@perkpartners.com>
5972 * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
5974 2002-02-20 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5976 * src/roff/grog/grog.pl: Fix computation of $refer.
5978 2002-02-19 Werner LEMBERG <wl@gnu.org>
5980 * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
5981 `snprintf' and `vsnprintf'.
5983 * src/include/htmlindicate.h: Renamed to...
5984 * src/include/htmlhint.h: This.
5985 * src/include/Makefile.sub: Updated.
5986 * src/preproc/eqn/main.cc: Updated.
5988 2002-02-18 Werner LEMBERG <wl@gnu.org>
5990 * man/roff.man, man/groff_out.man, man/groff.man,
5991 man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
5992 src/roff/troff/troff.man: Updated to latest changes in www.tmac.
5994 * win32-diffs: Updated.
5996 2002-02-17 Werner LEMBERG <wl@gnu.org>
5998 * doc/Makefile (clean): Add *.eps.
5999 (MEMACROS): Removed.
6000 (TFLAG): New variable.
6003 (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
6005 (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
6007 * tmac/www.tmac: Use dummy diversion while resetting and disabling
6009 * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
6011 * src/roff/troff/troff.man: Fix order of parameter description.
6015 2002-02-16 Gaius Mulley <gaius@glam.ac.uk>
6017 Simplify image handling for grohtml.
6020 * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
6022 (html_text::dump_stack): Don't emit newline while debugging.
6023 (html_text::do_push) [DEBUGGING]: Print more info.
6024 (html_text::check_emit_text): Fix handling of <p>.
6025 * src/devices/grohtml/html.h: Updated.
6026 * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
6027 replacing `fputc', `fputs', `putc'. If DEBUGGING is defined, they
6028 send its data to stderr also.
6030 (simple_output::space_or_newline) [DEBUGGING]: Removed.
6031 * src/devices/grohtml/post-html.cc (html_printer::do_links,
6032 html_printer::html_printer): Remove `DEBUGGING' conditionals.
6034 * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
6036 * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
6037 is_inline_image): Removed.
6038 (html_begin_suppress, html_end_suppress): Don't take a parameter.
6039 (graphic_start, graphic_end): Removed.
6040 * src/include/htmlindicate.h: Updated.
6041 * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
6042 (macroset_template): New global variable.
6043 (makeFileName): Use `macroset_template'.
6044 (write_end_image): Don't take a parameter.
6046 (write_start_image: Don't emit newline.
6047 (char_buffer::write_upto_newline): Updated.
6048 (char_buffer::skip_to_newline): Renamed to ...
6049 (char_buffer::skip_until_newline): This.
6051 (char_buffer::write_file_troff, char_buffer::write_file_html):
6053 (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
6054 (removeAllPages): Remove `DEBUGGING' conditionals.
6055 (addRegDef, dump_args): New functions.
6056 (char_buffer::do_html, char_buffer::do_image): Handle
6057 `www-image-template' command line variable.
6058 Add more debugging code.
6059 (addps4html): Removed.
6060 (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
6062 * src/preproc/eqn/main.cc: Include `ctype.h'.
6063 (suppress_html): Removed.
6065 (inline_equation): Use `html_begin_suppress' and
6066 `html_end_suppress'.
6067 * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
6068 (troff_output::start_picture, troff_output::finish_picture):
6070 * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
6071 (process_input_file): Updated.
6073 * src/roff/troff/div.cc (page_number): Set page number only if the
6074 `ps4html' register isn't defined.
6075 * src/roff/troff/input.cc (image_no): New external variable.
6076 (do_suppress): Use it.
6077 * src/roff/troff/node.h (suppress_node::image_id): New member.
6078 * src/roff/troff/node.cc (image_no): Remove `static' keyword.
6079 (suppress_node::suppress_node): Initialize `image_id' member.
6080 (suppress_node::same): Handle `image_id' also.
6081 (suppress_node::copy): Updated.
6082 (last_image_id): New global variable.
6083 (suppress_node::tprint): Use it.
6085 * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
6087 * tmac/pspic.mac (PSPIC): Fix html support.
6088 * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
6089 * tmac/www.tmac (www-image-template): Set up.
6090 (HTMLINDEX): Renamed to...
6092 (BODYCOLOR): Renamed to...
6094 (BACKGROUND): Renamed to...
6096 (URL): Change order of parameters for consistency.
6097 (MAILTO): Renamed to...
6099 (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
6100 (IMG, PIMG, MPIMG): This.
6101 (HTML-H-BEGIN, HTML-H-END): Renamed to...
6103 (LINKS): Renamed to...
6105 (LINE): Renamed to...
6107 (NO-AUTO-RULE): Renamed to...
6109 (HTML-TL): Renamed to...
6111 (UL-BEGIN, UL-END): Renamed to...
6113 (DROPCAP): Renamed to...
6115 (TS, TE, EQ, EN): Provide default definitions.
6116 (www-make-unique-name): Updated.
6117 (HTML-IMAGE-INLINE): Fix typo.
6118 * tmac/groff_www.man: Updated.
6120 * doc/Makefile (homepage.html): Add option -r to grohtml.
6121 Use shortened image name.
6122 * doc/groff.texinfo: Updated info on grohtml strings and macros.
6123 * doc/homepage.ms: Updated and extended.
6125 2002-02-14 Werner LEMBERG <wl@gnu.org>
6127 Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
6129 * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
6130 SGR_BACK_DEFAULT_COLOR): Replaced with ...
6131 (tty_printer::put_color): Use it.
6132 (ttr_printer::end_page): Simplify.
6134 2002-02-13 Werner LEMBERG <wl@gnu.org>
6136 * tmac/groff_tmac.man: Moved to...
6137 * man/groff_tmac.man: This place.
6138 * tmac/Makefile.sub, man/Makefile.sub: Updated.
6140 2002-02-12 Werner LEMBERG <wl@gnu.org>
6142 * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
6143 $(COMPILE.c) to not include groff's assert.h.
6145 * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
6147 * NEWS, src/drivers/grotty/grotty.man: Document it.
6149 2002-02-11 Werner LEMBERG <wl@gnu.org>
6151 * src/libs/snprintf/snprintf.c: Updated to latest version
6154 * src/roff/grog/grog.pl (process): Fix handling of `.['. We now
6155 test whether there is `.]' also.
6156 Don't check for spaces after `.['.
6157 * src/roff/grog/grog.sh: Do the same.
6159 2002-02-10 Werner LEMBERG <wl@gnu.org>
6163 * src/libs/libgroff/illegal.cc: Renamed to ...
6164 * src/libs/libgroff/invalid.cc: This.
6165 (illegal_char_table): Renamed to ...
6166 (invalid_char_table): This.
6167 * src/libs/libgroff/Makefile.sub: Updated.
6168 * win32-diffs: Updated.
6170 * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
6171 src/libs/libdriver/input.cc (fatal_command, parse_color_command,
6172 parse_x_command), src/libs/libgroff/font.cc (text_file::next,
6173 font::load), src/preproc/eqn/main.cc (read_line, main),
6174 src/preproc/eqn/lex.cc (file_input::read_line),
6175 src/preproc/pic/lex.cc (file_input::read_line,
6176 simple_file_input::get, simple_file_input::peek),
6177 src/preproc/pic/main.cc (top_input::get, top_input::peek),
6178 src/preproc/pic/pic.man, src/preproc/refer/main.cc
6179 (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
6180 do_bib), src/preproc/tbl/main.cc (table_input::get),
6181 src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
6182 src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
6183 do_zero_width, read_request, encode_char, ps_get_line,
6184 transparent_file, get_char_for_escape_name, transparent_translate,
6185 asciify, input_char_description, read_string, set_string),
6186 src/roff/troff/env.cc (environment::add_html_tag),
6187 src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
6189 * src/include/lib.h: Updated.
6191 * src/preproc/eqn/eqn.cc: Removed.
6195 * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
6197 2002-02-09 Werner LEMBERG <wl@gnu.org>
6199 * doc/gnu.xpm: New image.
6200 * doc/Makefile (DOCS): Add homepage.ps.
6201 Add rules for converting xpm->png and xpm->eps.
6202 Use `gnu.{xpm,eps}' as image names.
6203 * doc/homepage.ms: Updated.
6205 2002-02-09 Gaius Mulley <gaius@glam.ac.uk>
6207 * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
6208 (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
6209 Remove calls to `B1' and `B2'
6210 (PNG-IMAGE): New macro for inclusion of images in PNG format.
6211 (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
6212 auxiliary variables for MARGIN-PNG-IMAGE.
6213 (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
6214 auxiliary macros for MARGIN-PNG-IMAGE.
6215 (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
6217 (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
6218 (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
6219 (DROPCAP): New macro to produce dropcap characters.
6220 (www-do-image): Renamed back to...
6221 (HTML-DO-IMAGE): This.
6222 Updated all callers.
6224 * doc/Makefile (gnubw.eps): Updated.
6225 * doc/homepage.ms: Updated.
6227 2002-02-08 Werner LEMBERG <wl@gnu.org>
6229 * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
6230 Added `linethick' to table in section `Style Variables'.
6232 2002-02-08 Gaius Mulley <gaius@glam.ac.uk>
6234 * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
6236 2002-02-07 Werner LEMBERG <wl@gnu.org>
6238 Adding options -C (compatibility mode) and -c (grotty's old output
6241 * src/roff/nroff/nroff.sh: Implement it.
6243 * NEWS, src/roff/nroff/nroff.man: Updated.
6245 * PROBLEMS: Document bison 1.32 bug.
6247 Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
6249 * src/roff/troff/node.cc (make_tfont): Define it earlier.
6250 * src/roff/troff/div.h: Add prototype for `end_diversions'.
6251 * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
6252 * src/roff/troff/env.h: Add prototype for `title'.
6254 Adding EBCDIC support to grotty.
6256 * src/devices/grotty/tty.cc (CSI): New macro.
6257 (SGR_*, tty_printer::put_color): Use it.
6259 2002-02-06 Werner LEMBERG <wl@gnu.org>
6261 Implementing color support in grotty. The new switch -c activates
6262 the old drawing scheme, disabling color at the same time. The new
6263 switch `-i' selects italic instead of underlining (SGR only).
6265 * src/devices/grotty/tty.cc (putstring): New define instead of
6266 `fputs'. Updated all callers.
6267 (old_drawing_scheme): New global variable.
6268 (COLOR_CHANGE): New enum value.
6269 (SGR_*): New defines containing color handling escape sequences.
6270 (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
6271 (glyph): New members `back_color_idx' and `fore_color_idx'.
6272 (glyph::order): Add COLOR_CHANGE.
6273 (tty_printer): New members `cur_fore_idx', `curr_back_idx',
6274 `is_underline', `is_bold', `cu_flag', `tty_colors'.
6275 New methods `make_underline', `make_bold', `color_to_idx',
6276 `change_color', `put_color'.
6277 (cu_flag): Moved into `tty_printer' class.
6278 (tty_printer::tty_printer): Initialize colors.
6279 (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
6280 tty_printer::draw, tty_printer::end_page): Handle colors also.
6281 (main): Add options `-c' and `-i'.
6283 * NEWS, src/devices/grotty/grotty.man: Updated.
6285 * src/include/errarg.h (errarg): Add support for `unsigned int'.
6286 * src/libs/libgroff/errarg.c: Implement it.
6288 * src/include/printer.h (printer): Add `change_color' method
6289 (currently used by grotty only).
6290 * src/libs/libdriver/printer.cc: Implement it.
6291 * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
6292 call to `pr->change_color'.
6294 * src/roff/troff/node.cc (troff_output_file::fill_color,
6295 troff_output_file::glyph_color): Call `do_motion'.
6297 * tmac/tty.tmac: Add color definitions.
6299 * src/roff/groff/groff.man: Minor fixes.
6301 2002-02-05 Bernd Warken <bwarken@mayn.de>
6303 * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
6304 it. This is a preparation for future changes.
6306 2002-02-05 Werner LEMBERG <wl@gnu.org>
6308 * src/roff/troff/input.cc (process_input_stack): Fix the case
6309 where leading spaces are followed by \f or \s; previously, an
6310 incorrect space width has been used.
6312 * doc/roff.man (quoted_char): Fix argument.
6313 (comment): Define string.
6315 2002-02-04 Larry Kollar <kollar@alltel.net>
6317 * doc/groff.texinfo: More fixes.
6319 2002-02-04 Werner LEMBERG <wl@gnu.org>
6321 * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
6322 * src/preproc/eqn/main.cc (do_file, inline_equation): Call
6323 `restore_compatibility' before `output_string' -- the LINE_STRING
6324 register now already contains proper switches from and to
6327 * man/groff_char.man: Add Euro symbol.
6328 * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
6329 * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
6330 * doc/groff.texinfo (Defstr*): Print strings with full syntax.
6333 * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
6335 (.texinfo.html): Add support for texinfo->html.
6337 2002-02-03 Werner LEMBERG <wl@gnu.org>
6339 Added three new requests `ds1', `as1', and `ami'. The former two
6340 are equivalent to `ds' and `as' with the difference that
6341 compatibility mode is saved on entry, switched off during string
6342 expansion, and restored on exit. The latter is the pendant to `dei'
6345 (do_define_string): Use `define_mode' and `calling mode'.
6346 Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
6347 end of string, respectively.
6348 (define_string, append_string): Use `calling_mode'.
6349 (define_nocomp_string, append_nocomp_string,
6350 define_string_indirect): New functions.
6351 (init_input_requests): Updated.
6352 * NEWS, man/groff_diff.man, man/groff.man: Document it.
6354 * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
6355 `as1' for assigning LINE_STRING (this is `10' usually). Sun's
6356 mm macro package accesses this string register directly.
6357 * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
6359 * tmac/trace.tmac: Trace calls to `am' also. Make it work in
6362 2002-02-02 Larry Kollar <kollar@alltel.net>
6364 * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
6366 2002-01-31 Werner LEMBERG <wl@gnu.org>
6368 * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
6370 2002-01-31 Bernd Warken <bwarken@mayn.de>
6372 * src/devices/grolbp/lbp.cc (main): Delete `pr'.
6373 * man/groff_out.man: Revised and updated.
6375 2002-01-30 Bernd Warken <bwarken@mayn.de>
6377 * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
6378 out the unused `{' and `}' commands. Undefined by default.
6379 (IntArray): Make `data' private.
6380 (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
6381 new methods instead.
6382 (skip_line_D, skip_to_end_of_line): New functions.
6383 (get_D_fixed_args): Use `skip_line_D'.
6384 Changed to handle dummy odd arguments by ...
6385 (get_D_fixed_args_odd_dummy): This new function.
6386 (get_D_variable_args): Split some code into ...
6387 (get_possibly_integer_args): This new function.
6388 (send_draw): Use more `const'.
6389 (delete_current_env): New function.
6390 (position_to_end_of_args): Use `size_t'.
6392 (send_draw): Updated.
6393 (parse_D_command): Handle `c', `C', and `t' better.
6397 2002-01-29 Werner LEMBERG <wl@gnu.org>
6400 * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
6401 @Def...ListEnd which replaces @Def...x. This is necessary to get
6402 proper HTML output -- see the comment in the file for more
6406 2002-01-29 Gaius Mulley <gaius@glam.ac.uk>
6408 Fixes to make color changes of 2002-01-21 work with grohtml.
6410 * src/devices/grohtml/post-html.cc (style): Updated.
6411 (html_printer): Remove unused methods.
6412 (html_printer::do_font, html_printer::draw, html_printer::set_char,
6413 html_printer::special): Updated.
6414 * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
6415 html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
6416 Added some debugging code.
6417 (html_text::start_tag): Updated.
6418 (html_text::do_push): New method.
6419 (html_text::push_para): Call it.
6420 Add method for handling color.
6421 (html_text::do_color): Updated.
6422 (html_text::shutdown): Handle color.
6423 * src/devices/grohtml/html-text.h (tag_definition): New member
6427 2002-01-28 Werner LEMBERG <wl@gnu.org>
6429 * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
6431 2002-01-27 Gaius Mulley <gaius@glam.ac.uk>
6433 Add two switches -a and -g to control the antialiasing bits for
6434 text and graphics, respectively.
6436 * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
6438 * src/devices/grohtml/grohtml.man: Document them.
6439 * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
6441 (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
6442 (setupAntiAlias): New function.
6443 (createAllPages): Updated.
6444 (scanArguments): Handle `-a' and `-g'.
6445 (main): Call `setupAntiAlias'.
6448 2002-01-27 Werner LEMBERG <wl@gnu.org>
6450 * doc/groff.texinfo (Def*): Call index function after deffn.
6452 * tmac/html.tmac: Call `nroff' request.
6454 2002-01-26 Larry Kollar <kollar@alltel.net>
6456 * tmac/groff_ms.man: Add some omissions.
6458 2002-01-25 Larry Kollar <kollar@alltel.net>
6460 * tmac/groff_ms.man: Typographical improvements.
6462 2002-01-25 Werner LEMBERG <wl@gnu.org>
6464 * doc/groff.texinfo: Updated version and copyright.
6465 * src/devices/grops/grops.man: Updated.
6467 * tmac/groff_tmac.man: Fix `ig' macro.
6469 * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
6471 Use `.ne' unconditionally everywhere.
6472 (TS): Only insert some vertical space. Doing a page break is no
6473 longer necessary due to the redefinition of the `ne' request.
6475 * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
6476 warning for unknown subcommands but parse and pass them to the
6479 2002-01-24 Werner LEMBERG <wl@gnu.org>
6481 * tmac/groff_www.man, NEWS: Fix typos.
6483 2002-01-21 Werner LEMBERG <wl@gnu.org>
6485 Complete revision of color support:
6487 Adapt programs to the new libdriver/input.cc.
6489 Color spaces are no longer converted to RGB but transferred as-is
6490 in the troff intermediate output format.
6492 Handle default color gracefully. troff now supports a `default'
6493 color (which can't be changed).
6495 grops will now use the proper color space functions if available.
6499 Note that currently grohtml doesn't handle colors properly. This
6502 * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
6503 (ui_to_a): New function.
6504 * src/include/lib.h: Updated.
6506 * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
6507 (color): Simplified; removed all `double' members and methods.
6508 A new array `components' now holds the color parameters.
6509 (color::is_default, color::get_components): New methods.
6510 (color::operator==, color:operator!=): New.
6511 (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
6512 to make access to the `components' array more comprehensible.
6513 * src/libs/libgroff/color.cc: Implement new color support.
6514 (atoh): Small fixes.
6515 (color::read_encoding): Simplified for new troff intermediate color
6517 (default_color): New global variable.
6519 * src/roff/troff/input.cc (default_symbol): New global variable.
6520 (lookup_color): Use it.
6521 (default_black): Removed.
6522 (do_glyph_color, do_fill_color): Simplified.
6523 (define_color): Handle default color.
6525 (do_if_request): Handle default color.
6526 * src/roff/troff/env.cc (environment::environment): Initialize
6527 colors with `default_color'.
6528 * src/roff/troff/node.cc (troff_output_file::put): Add method
6530 (troff_output_file::hex): Removed.
6531 (troff_output_file::fill_color, troff_output_file::glyph_color):
6532 Updated to include/color.h and libdriver/input.cc.
6534 * src/preproc/pic/object.cc (draw_arrow): New parameter to set
6535 fill color properly (identically to the outline color). \D'f...'
6536 doesn't work any more.
6537 All function calls to it updated.
6539 * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
6541 * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
6544 * src/devices/grops/ps.cc (ps_output::put_color): New method.
6545 (ps_printer::sbuf_color): Make a real member instead of pointer.
6546 (ps_printer::fill_color, ps_printer::output_color): Removed.
6547 (ps_printer::ps_printer): Updated.
6548 (ps_printer::set_char): Ditto.
6549 (ps_printer::set_color): Use various color schemes.
6550 Use `put_color' method.
6551 (ps_printer::flush_sbuf): Don't set color.
6552 (ps_printer::fill_path): Take `environment' as parameter.
6553 Simplify color handling.
6554 (ps_printer::set_line_thickness): Renamed to ...
6555 (ps_printer::set_line_thickness_and_color): This (and updated).
6556 (ps_printer::set_color): Change second parameter from `complete'
6557 to `fill' which better describes what it does.
6558 (ps_printer::draw): Call `flush_sbuf' to output graphic commands
6559 and text in the right order.
6561 Remove branches for `f' and `F'; this is handled by
6563 * src/devices/grops/ps.h: Updated.
6564 * font/devps/prologue (FL): Redefined.
6565 ({F,C}r,k,g: New color functions (with and without filling).
6567 * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
6568 * man/groff_diff.man, man/groff.man, man/groff_out.man,
6569 doc/groff.texinfo, NEWS: Updated.
6571 2002-01-20 Bernd Warken <bwarken@mayn.de>
6573 * src/libs/libdriver/input.cc: Completely rewritten. See comments
6574 in this file for what has been changed.
6576 2002-01-19 Werner LEMBERG <wl@gnu.org>
6578 * test-groff: Fix GROFF_FONT_PATH.
6579 * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
6580 is read before .TH or .Dd is parsed.
6582 2002-01-18 Gaius Mulley <gaius@glam.ac.uk>
6584 * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
6585 quadrant boundaries.
6587 2002-01-18 Werner LEMBERG <wl@gnu.org>
6589 * devices/grops/ps.cc: Aargh! Fix the fix of the incorrectly
6592 2002-01-17 Ruslan Ermilov <ru@FreeBSD.org>
6594 * tmac/doc.common: Initialize %I register for the %I macro to
6595 avoid (harmless) warning.
6596 * tmac/doc.tmac (Bd): There is no reason to enforce -compact
6597 when in the SYNOPSIS section.
6599 2002-01-17 Bruno Haible <haible@clisp.cons.org>
6601 * src/preproc/pic/lex.cc (get_token): Fix typo.
6603 2002-01-17 Werner LEMBERG <wl@gnu.org>
6605 * devices/grops/ps.cc: Fix incorrectly applied last patch.
6607 2002-01-17 Larry Kollar <kollar@alltel.net>
6609 * tmac/groff_ms.man: Completely rewritten.
6611 2002-01-16 Werner LEMBERG <wl@gnu.org>
6613 * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
6615 2002-01-15 Gaius Mulley <gaius@glam.ac.uk>
6617 * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
6619 (ps_printer::draw): Ditto.
6621 2002-01-14 Ruslan Ermilov <ru@FreeBSD.org>
6623 * tmac/groff_mdoc.man: Minor fixes.
6625 2002-01-13 Werner LEMBERG <wl@gnu.org>
6627 * man/groff_out.man: Some fixes.
6629 2002-01-13 Gaius Mulley <gaius@glam.ac.uk>
6631 * doc/pic.ms: Fix typos.
6633 2002-01-12 Werner LEMBERG <wl@gnu.org>
6635 * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
6637 2002-01-10 Werner LEMBERG <wl@gnu.org>
6639 * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
6643 2002-01-09 Bernd Warken <bwarken@mayn.de>
6645 * man/groff_out.man: Revised.
6646 * man/roff.man: Minor fixes.
6647 * src/roff/troff/troff.man: Some reordering.
6649 2002-01-09 Werner LEMBERG <wl@gnu.org>
6651 * tmac/an-old.tmac: Add dummy macros for equation support.
6653 2002-01-07 Werner LEMBERG <wl@gnu.org>
6655 doc/groff.texinfo: Fix documentation of glyph searching algorithm.
6657 * tmac/an-old.tmac: Revert change 2001-12-23. This breaks too many
6659 * tmac/groff_man.man: Small improvements.
6661 2002-01-07 Bernd Warken <bwarken@mayn.de>
6663 * man/groff_diff.man: Revised.
6665 2002-01-06 Werner LEMBERG <wl@gnu.org>
6667 * tmac/www.tmac: Remove extraneous backslash.
6669 2002-01-06 Bernd Warken <bwarken@mayn.de>
6671 * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
6673 2002-01-05 Werner LEMBERG <wl@gnu.org>
6675 Integrated groffer, contributed by Bernd Warken.
6677 * contrib/groffer/*: New.
6678 * Makefile.in, NEWS: Updated.
6680 2002-01-04 Werner LEMBERG <wl@gnu.org>
6682 * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
6683 registers defined in macro packages.
6684 Revising the ms part.
6686 2002-01-04 Larry Kollar <kollar@alltel.net>
6688 * doc/groff.texinfo: Add documentation for ms macros.
6690 2002-01-02 Werner LEMBERG <wl@gnu.org>
6692 First step in adding PS support for the Euro symbol. `eu' is the
6693 official Euro logo, `Eu' is a font-specific glyph variant.
6695 * font/devps/text.enc: Add `Euro' at position 9.
6696 * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
6697 * font/devps/symbolmap: Regenerated.
6701 2002-01-02 Bernd Warken <bwarken@mayn.de>
6703 * man/roff.man: Revised.
6705 2002-01-01 Bernd Warken <bwarken@mayn.de>
6707 * src/roff/groff/groff.man: Completely rewritten.
6709 2001-12-31 Werner LEMBERG <wl@gnu.org>
6711 * doc/Makefile: Updated.
6713 2001-12-30 Werner LEMBERG <wl@gnu.org>
6715 * tmac/www.tmac: Make all names of internal macros/registers/strings
6716 lowercase, and prepend `www-'.
6717 Other minor changes.
6718 * src/roff/troff/troff.man: Add preprocessor string at BOF.
6720 2001-12-30 Gaius Mulley <gaius@glam.ac.uk>
6722 Implement option `-b' in grohtml to set the HTML background colour.
6724 * src/devices/grohtml/post-html.cc (default_background): New global
6726 (html_printer::html_printer): Initialize `background' to
6727 `default_background'.
6728 (main): Implement option `-b'.
6730 * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
6732 * src/devices/grohtml/grohtml.man: Updated.
6733 * doc/Makefile (.ms.html): Use `-b'.
6734 * tmac/html.tmac: Don't set background color.
6736 Add new grohtml tag `.html-tl'.
6738 * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
6740 (title_desc::title_desc): Updated.
6741 (html_printer::troff_tag): Handle `.html-tl'.
6742 (html_printer::write_title): Use `with_h1'.
6743 * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
6744 (HTML-TL): New macro.
6746 Add support for unordered lists in HTML.
6748 * tmac/www.tmac (www-level): New auxiliary register.
6749 (www-level1, www-level2, www-level3): New auxiliary strings.
6750 (www-push-level, www-pop-level): New auxiliary macros
6751 (UL-BEGIN, UL-END, LI): User macros for unordered lists.
6755 * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
6756 (DEFAULT_VERTICAL_OFFSET): Removed.
6757 (IMAGE_BOARDER_PIXELS): Set to 0.
6758 (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
6759 (vertical_offset): Initialize with 0.
6760 (gsPaper): New global variable.
6761 (get_resolution): Scan for and return unsigned int.
6762 (get_papersize): New function to get paper length from devps/DESC.
6763 (determine_vertical_offset): New function.
6764 (createAllPages): Produce gray-level images and use proper page
6766 (createImage): Use `-quiet' option of pnmcrop.
6767 (addZ): Fix passing of `-Z'.
6768 (scanArguments): Fix handling of `-o'.
6769 (main): Call `determine_vertical_offset'.
6770 * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
6773 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
6774 * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
6775 glyph descenders properly.
6777 * doc/homepage.ms: Include `gnubw.eps'.
6778 * doc/Makefile (gnubw.eps): New rule.
6779 (homepage.html): Depend on `gnubw.eps'.
6781 2001-12-25 Werner LEMBERG <wl@gnu.org>
6783 * src/roff/troff/input.cc (default_black): Fix return value.
6785 2001-12-24 Ruslan Ermilov <ru@FreeBSD.org>
6787 * tmac/doc-common (Dt): Change output of architecture strings.
6788 Do some syntax cleanup.
6789 * tmac/groff_mdoc.man: Updated.
6791 2001-12-23 Werner LEMBERG <wl@gnu.org>
6793 Adding an `itc' request (input line trap accepting \c).
6795 * src/roff/troff/env.h (environment): New member
6796 `continued_input_trap'.
6797 Make `do_input_trap' a friend function instead of `input_trap'.
6798 * src/roff/troff/env.cc (environment::environment,
6799 environment::copy): Updated.
6800 (environment::newline): Implement it.
6801 (do_input_trap): New function.
6802 (input_trap): Call `do_input_trap'.
6803 (input_trap_continued): New function.
6804 (init_env_requests): Updated.
6805 * src/roff/troff/TODO: Updated.
6807 * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
6810 * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
6812 2001-12-22 Ruslan Ermilov <ru@FreeBSD.org>
6814 * tmac/doc-common, tmac/doc-syms: Small updates.
6816 2001-12-22 Colin Watson <cjwatson@debian.org>
6818 * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
6820 2001-12-22 Bernd Warken <bwarken@mayn.de>
6822 * MANIFEST: New file.
6824 2001-12-22 Werner LEMBERG <wl@gnu.org>
6826 * src/preproc/grn/grn.man: Updated.
6828 2001-12-22 Solar Designer <solar@openwall.com>
6830 * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
6833 2001-12-19 Werner LEMBERG <wl@gnu.org>
6835 Implement a fallback character request `.fchar'.
6837 * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
6838 (is_fallback): New inline function.
6839 * src/roff/troff/input.cc (do_define_character): New function.
6840 (define_character): Call `do_define_character'.
6841 (define_fallback_character): New function.
6842 (init_input_requests): Add `fchar'.
6843 (charinfo::charinfo): Updated.
6844 (charinfo::set_macro): New argument to set `fallback' flag.
6845 * src/roff/troff/node.cc (make_glyph_node, make_node,
6846 node::add_char): Check `fallback' flag.
6847 * NEWS, man/groff_diff.man, man/groff_man: Updated.
6849 2001-12-16 Werner LEMBERG <wl@gnu.org>
6851 * groff.texinfo: Document exact search algorithm for glyphs.
6853 2001-12-15 Werner LEMBERG <wl@gnu.org>
6855 * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
6856 the left side of $(MANPAGES) rule to make it always non-empty.
6858 2001-12-14 Werner LEMBERG <wl@gnu.org>
6860 * src/roff/troff/input.cc (default_black): Define default color
6861 `black' if not yet defined.
6863 2001-12-13 Werner LEMBERG <wl@gnu.org>
6865 Implement new string-valued register `.fn' to return the current
6866 real (internal) font name.
6868 * env.cc (environment::get_font_name_string): New function.
6869 (init_env_requests): Add `.fn' register.
6870 * env.h (environment): Updated.
6871 * node.cc (font_info): Make `get_font_name' a friend.
6872 (get_font_name): New function.
6875 * man/groff_diff.man, man/groff.man, NEWS: Updated.
6877 2001-12-12 Ralph Corderoy <ralph@inputplus.demon.co.uk>
6879 * src/preproc/eqn/main.cc (inline_equation): Fix typos.
6881 2001-12-12 Werner LEMBERG <wl@gnu.org>
6883 * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
6885 2001-12-10 Gaius Mulley <gaius@glam.ac.uk>
6887 * man/groff_diff.man: Adding documentation for \O.
6889 2001-12-10 Werner LEMBERG <wl@gnu.org>
6891 * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
6892 (scanArguments): Use PROG_PREFIX for the name of the troff binary.
6894 2001-12-09 Werner LEMBERG <wl@gnu.org>
6896 * man/roff.man: Revised.
6897 * src/roff/groff/groff.man: Replace man page references with a
6898 pointer to roff.man.
6900 2001-12-09 Bernd Warken <bwarken@mayn.de>
6902 * man/roff.man: Completely rewritten.
6904 2001-12-06 Ralph Corderoy <ralph@inputplus.demon.co.uk>
6906 * src/preproc/eqn/main.cc (inline_equation): Improve error message.
6908 2001-12-05 Werner LEMBERG <wl@gnu.org>
6910 * src/roff/troff/input.cc (get_delim_file_name): Removed since no
6912 * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
6913 order of initializers.
6916 2001-12-05 Gaius Mulley <gaius@glam.ac.uk>
6918 * doc/groff.texinfo: Fix documentation of \O.
6920 * src/devices/grohtml/html-text.cc (html_text::do_indent,
6921 html_text::do_table, html_text::do_emittext, html_text::do_para):
6922 Use `const' for first argument.
6923 (html_text::do_table): Use cast.
6924 * src/devices/grohtml/html-text.h: Updated.
6925 * src/devices/grohtml/output.cc (simple_output::put_string): Add
6926 method for `const string &s'.
6927 * src/devices/grohtml/html.h: Updated.
6928 * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
6929 (ANCHOR_TEMPLATE): Modified.
6930 (manufacture_headings): New global variable to handle `-h' option.
6931 (is_subsection): Removed.
6932 (char_buffer::add_string): Add `const' to first argument.
6933 Protect against invalid string argument.
6934 Add method for `const string &s'.
6935 (text_glob): Completely redesigned.
6936 (page): Use `const' for strings and remove string length variable.
6937 (page::add_html): Removed.
6938 (page::add_end_encode): New member function.
6939 (to_unicode): Moved upwards.
6940 (title_desc, header_desc): Updated.
6941 (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
6943 (html_printer::is_bold, html_printer::make_bold): New member
6945 (html_printer::end_of_line): Updated.
6946 (generate_img_src, html_printer::do_auto_image,
6947 html_printer::do_title, html_printer::write_header,
6948 html_printer::determine_header_level, html_printer::do_heading,
6949 html_printer::do_linelength, html_printer::do_pageoffset,
6950 html_printer::do_indentation, html_printer::do_tempindent,
6951 html_printer::do_indentedparagraph, html_printer::do_break,
6952 html_printer::flush_sbuf, get_html_translation,
6953 html_printer::begin_page, html_printer::special): Rewritten to get
6954 rid of static string length limit.
6955 (html_printer::troff_tag): Added `.no-auto-rule'.
6956 (html_printer::flush_globs): Small fix.
6957 (html_printer::determine_space): Don't compute `space_width'.
6958 (html_printer::translate_to_html): Renamed to ...
6959 (html_printer::emit_html): This (with updates).
6960 (html_printer::write_header): Implement `-h' option.
6961 (html_printer::draw): Remove commented-out code. Handle `F'
6963 (html_printer::add_char_to_sbuf): Removed.
6964 (html_printer::add_to_sbuf): Rewritten.
6965 (html_printer::sbuf_continuation): Fixed.
6966 (html_printer::seen_backwards_escape, reverse,
6967 html_printer::remove_last_char_from_sbuf): Removed.
6968 (char_translate_to_html, str_translate_to_html): Removed.
6969 (html_printer::overstrike): New function member.
6970 (html_printer::set_char): Use it.
6971 (html_printer::do_body): New function member.
6972 (html_printer::~html_printer): Use it.
6973 (main): Handle `-h' option.
6975 * src/devices/grohtml/grohtml.man: Document -h switch.
6977 * src/preproc/html/pre-html.cc: Include searchpath.h
6978 Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
6979 (get_resolution): New function.
6980 (checkImageDir): Use `0777' permissions in mkdir()
6981 (write_start_image): Rewritten to use `\O[5...]'.
6982 (createImage, generateImages): Updated.
6983 (main): Handle `F' and `h' options.
6984 Use `get_resolution'.
6986 * src/roff/troff/input.cc (begin, end, image): Removed.
6987 (do_suppress): Take parameter.
6988 Handle modified syntax of `\O'.
6989 (token::next): Updated.
6990 (init_markup_requests): Removed.
6993 * src/roff/troff/div.h: Add declaration for begin_page().
6995 * tmac/color-html.tmac: Removed. Contents moved to...
6996 * tmac/html.tmac: Here. Set background color.
6997 * tmac/color.tmac: Removed. Contents moved to...
6998 * tmac/ps.tmac: Here.
6999 * tmac/www.tmac: Remove the title command when generating images
7001 (NO_AUTO_RULE): New macro.
7002 (HTML_DO_IMAGE): Use revised `\O' escapes.
7003 * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
7005 2001-12-02 Werner LEMBERG <wl@gnu.org>
7007 * tmac/groff_mdoc.man: Fix typo.
7009 2001-12-01 Colin Watson <cjwatson@debian.org>
7011 * man/roff.man: Fix typo.
7013 2001-11-29 Werner LEMBERG <wl@gnu.org>
7015 * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
7018 * src/roff/troff/input.cc (read_draw_node): Emit error message if
7019 more than one argument to \D'f ...'.
7021 * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
7023 2001-11-28 Werner LEMBERG <wl@gnu.org>
7025 * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
7028 * tmac/groff_man.man: Minor cosmetic fix.
7030 2001-11-27 Werner LEMBERG <wl@gnu.org>
7032 * src/roff/groff/groff.man, tmac/groff_tmac.man,
7033 tmac/groff_www.man: s/mwww/www/.
7035 2001-11-26 Werner LEMBERG <wl@gnu.org>
7037 * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
7038 * configure: Regenerated.
7039 * win32-diffs: Updated.
7041 * tmac/groff_mwww.tmac: Renamed to ...
7042 * tmac/groff_www.tmac: This.
7043 * tmac/mwww.tmac: Removed.
7044 * NEWS, tmac/Makefile.sub: Updated.
7046 2001-11-21 Werner LEMBERG <wl@gnu.org>
7048 * doc/groff.texinfo: Improve documentation of the `\v' escape.
7049 Fix explanation of `\D' and `rt'.
7051 2001-11-20 Werner LEMBERG <wl@gnu.org>
7053 * tmac/an-old.tmac (an-header): Set header length equal to page
7055 * doc/groff.texinfo: Improve documentation of `ne' request. Other
7059 2001-11-19 Werner LEMBERG <wl@gnu.org>
7061 * NEWS, man/Makefile.sub: Updated.
7063 2001-11-19 Bernd Warken <bwarken@mayn.de>
7065 * man/ditroff.man: New file.
7067 2001-11-17 Werner LEMBERG <wl@gnu.org>
7069 * man/groff_differences.man: Renamed to ...
7070 * man/groff_diff.man: This. Updated.
7071 * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
7073 * src/preproc/html/pushbackbuffer.cc: Renamed to ...
7074 * src/preproc/html/pushback.cc: This. Updated.
7075 * src/preproc/html/pushbackbuffer.h: Renamed to ...
7076 * src/preproc/html/pushback.h: This.
7077 * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
7080 * src/libs/libgroff/htmlindicate.cc: Renamed to ...
7081 * src/libs/libgroff/htmlhint.cc: This.
7082 * src/libs/libgroff/Makefile.sub: Updated.
7084 * tmac/an-old.tmac (an-end): Fix page length.
7086 2001-11-16 Werner LEMBERG <wl@gnu.org>
7088 * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
7089 * man/Makefile.sub: Include groff_differences.man.
7090 * VERSION: Set to 1.18.
7091 * REVISION: Set to 0.
7093 2001-11-16 Bernd Warken <bwarken@mayn.de>
7095 * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
7096 the second dot (or ending macro name) to end a macro.
7097 * doc/groff.texinfo: Doc fix.
7099 2001-11-16 Ruslan Ermilov <ru@FreeBSD.org>
7101 * tmac/doc-common (doc-header): Handle very long document titles
7104 2001-11-16 Werner LEMBERG <wl@gnu.org>
7106 * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
7108 2001-11-15 Werner LEMBERG <wl@gnu.org>
7110 * src/roff/troff/troff.man: Revised and split into troff.man and...
7111 * man/groff_differences.man: New file.
7114 2001-11-13 Werner LEMBERG <wl@gnu.org>
7116 * tmac/an-old.tmac (TS, TE): New macros for table support.
7118 2001-11-12 Werner LEMBERG <wl@gnu.org>
7120 * src/include/lib.h: Provide a fix for emx to not include
7123 2001-10-27 Werner LEMBERG <wl@gnu.org>
7125 * src/roff/troff/input.cc (substring_macro): Fix computation of
7128 2001-10-20 Werner LEMBERG <wl@gnu.org>
7130 Undo change from 2001-08-28.
7132 * src/roff/troff/input.cc (have_input): New global variable.
7133 (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
7134 in compatibility mode.
7135 (process_input_stack): Use it.
7137 2001-10-19 Ruslan Ermilov <ru@FreeBSD.org>
7139 * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
7140 being handled as end-of-sentence characters,
7142 2001-10-10 Gaius Mulley <gaius@glam.ac.uk>
7144 * src/roff/troff/input.cc (file_iterator): New members
7145 `suppress_newline_flag' and `seen_escape'.
7146 (file_iterator::next_file): Updated.
7147 (file_iterator::fill): Use it.
7148 (string_iterator): New member `suppress_newline_flag'.
7149 (string_iterator::fill): Set it.
7150 (get_color_element): Use MAX_COLOR_VAL.
7151 * src/roff/troff/env.cc (environment): Remove `need_eol'.
7152 (no_fill): Don't set `env->ignore_next_eol'.
7153 (environment::newline): Handle `eol' tag properly.
7155 (environment::add_html_tag): Set `env->ignore_next_eol'.
7157 * src/roff/troff/env.h (environment): Updated.
7159 * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
7161 (html_printer::outstanding_eol): New member function.
7162 (html_printer::do_title): Use new functions.
7163 (html_printer::troff_tag): Test `id_eol_ce'.
7165 2001-10-10 Werner LEMBERG <wl@gnu.org>
7167 * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
7168 files work with -C also.
7170 2001-10-05 Werner LEMBERG <wl@gnu.org>
7172 * doc/pic.ms: Minor fix.
7173 * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
7174 as a valid command line switch.
7175 * src/devices/grohtml/post-html.cc (main): Ditto.
7177 * src/devices/grohtml/grohtml.man: Updated.
7178 * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
7180 2001-10-04 Werner LEMBERG <wl@gnu.org>
7182 Implementing color support in troff, pic, grops, and grohtml. These
7183 changes are based on a major patch provided by Gaius Mulley
7186 New request: `defcolor', supporting rgb, cmy, cmyk, and gray
7187 definitions with both hex values and fractions.
7189 New escapes: \m and \M for drawing and background color,
7190 respectively. This corresponds to the troff output commands `m'
7193 groff and troff accept command line switch `-c' to disable color
7194 output (which is automatically disabled in compatibility mode).
7196 New scaling indicator `f' for fractions (1f = 65536u).
7198 New conditional operator `m' to test for defined colors with `if'
7201 New keywords `color' (or `colour', `colored', `coloured'), `outline'
7202 (or `outlined'), and `shaded' added to pic.
7204 * src/include/color.h: New file.
7205 * src/include/driver.h: Include it.
7206 * src/include/printer.h: Include color.h.
7207 (environment): New members `col' and `fill'.
7208 (printer): Remove `adjust_arc_center' member function.
7209 * src/include/Makefile.sub: Updated.
7211 * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
7213 Handle `m' and `DF' troff commands.
7214 * src/libs/libgroff/color.cc: New file.
7215 * src/libs/libgroff/Makefile.sub: Updated.
7217 * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
7219 (createImage): Fix computation of `y2'.
7221 (buffer::write_file_html): Remove calls to `stop'.
7223 * src/preproc/pic/common.h (common_output): New abstract function
7224 members `set_color', `reset_color', `get_last_filled', and
7225 `get_outline_color'.
7226 * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
7227 (object_spec): Add members `shaded' and `outlined'.
7228 * src/preproc/pic/output.h (output): `command' is now abstract.
7229 New function members `set_color', `reset_color', `get_last_filled',
7230 and `get_outline_color'.
7231 * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
7232 `outline[d]', and `shaded'.
7233 * src/preproc/pic/object.cc (output::command): Removed.
7234 (output::set_location): Moved to output.h.
7235 (graphic_object): Add protected members `outline_color' and
7237 Add member functions `set_outline_color', `get_outline_color', and
7239 (closed_object): Add member function `set_fill_color'.
7240 Add member `color_fill'.
7241 (graphic_object::print_text): Use `out->set_color' and
7243 (box_object::print, ellipse_object::print, circle_object::print,
7244 line_object::print, spline_object::print, arc_object::print): Ditto.
7245 (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
7246 * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
7247 `SHADED', making them `%left'.
7248 Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
7249 * src/preproc/pic/tex.cc (tex_output): New dummy function members
7250 `set_color', `reset_color', `get_last_filled', and
7251 `get_outline_color'.
7252 * src/preproc/pic/troff.cc (simple_output): New abstract function
7253 members `set_color', `reset_color', and `get_last_filled'.
7254 (simple_output::polygon, simple_output::circle,
7255 simple_output::ellipse): Use `get_last_filled'.
7256 (troff_output): New members `last_filled' and `last_outlined'.
7257 New function members `set_color', `reset_color', `get_last_filled',
7258 and `get_outline_color'.
7259 (troff_output::finish_picture): Use `reset_color'.
7260 (troff_output::set_fill): Test `last_filled'.
7261 * src/preproc/pic/pic.man: Updated.
7263 * src/roff/groff/groff.cc (main): Implement `-c' option.
7264 (synopsis, help): Updated.
7265 src/roff/groff/groff.man: Updated.
7267 * src/roff/troff/troff.h: Include color.h.
7268 (warning_type): Add WARN_COLOR.
7269 * src/roff/troff/env.h (environment): New members
7270 `{cur,prev}_{glyph,fill}_color'.
7271 New member functions `get_{prev_,}{glyph,fill}_color'.
7272 * src/roff/troff/env.cc: Initialize and implement them.
7273 * src/roff/troff/input.cc: New global variable `disable_color_flag'.
7274 Replace `NULL' with `0' everywhere for consistency.
7275 (lookup_color, default_black, do_glyph_color, do_fill_color,
7276 get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
7277 define_color): New functions.
7278 (token::next): Implement \M and \m escapes.
7279 (do_if_request): Implement `m' operator.
7281 (main): Implement `-c' option.
7282 (init_markup_requests): Add `defcolor' request.
7283 (warning_table): Add `color' warning.
7284 * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
7286 * src/roff/troff/node.cc (troff_output_file): New members
7287 `current_{page,glyph}color'. New member functions `put_hex',
7288 `glyph_color', and `fill_color'.
7289 (glyph_color_node::*, fill_color_node::*): Implement it.
7290 * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
7291 (parse_term): Add support for `f'.
7292 * src/roff/troff/troff.man: Updated.
7294 * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
7296 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
7297 * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
7299 * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
7300 (tag_definition): Use `void *' for arg1.
7301 (html_text): New member functions `do_color' and `done_color'.
7302 Use `void *' for second parameter of `push_para' member function.
7303 New `push_para' member function with a single parameter.
7304 Use `char *' for parameter of `issue_table_begin' member funtion.
7305 New `issue_color_begin' member function.
7306 * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
7308 (html_text::issue_color_begin): New function.
7309 (html_text::issue_table_begin): Use `char *' for parameter.
7310 (html_text::start_tag, html_text::shutdown,
7311 html_text::check_emit_text): Updated.
7312 (html_text::push_para): Use `void *' for second parameter.
7313 Add same function with only one parameter.
7314 (html_text::do_*): Updated.
7315 (html_text::do_color, html_text::done_color): New functions.
7316 * src/devices/grohtml/post-html.cc (style): New member `col'.
7317 Mew member `style' with 6 parameters.
7318 (style::style, style::operator==): Updated.
7319 (html_printer::do_font): Use it.
7320 (html_printer::draw): Add dummy entry for `F'.
7321 (html_printer::set_char): Updated.
7322 * src/devices/grohtml/grohtml.man: Updated.
7324 * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
7325 trailing zeroes removed.
7326 (ps_printer): New members `sbuf_color', `fill_color', and
7328 Removed member `fill'.
7329 New member function `set_color'.
7330 (ps_printer::ps_printer, ps_printer::set_char): Updated.
7331 (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
7332 ps_printer::fill_path, ps_printer::draw): Use `set_color'.
7334 * tmac/color-html.tmac, tmac/color.tmac: New files.
7335 * tmac/troffrc: Include them.
7336 * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
7337 * tmac/Makefile.sub: Updated.
7339 * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
7340 man/groff.man: Updated.
7341 * font/devps/prologue.ps: Define FC and CO functions.
7343 2001-10-04 Gaius Mulley <gaius@glam.ac.uk>
7345 Fix incorrect cropping of images and incorrect handling of special
7346 characters. Fix handling of file names in \O.
7348 * src/include/geometry.h: New file.
7349 * src/libs/libgroff/geometry.cc: New file.
7350 * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
7352 * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
7354 (do_suppress): Updated.
7355 * src/roff/troff/node.cc: Include geometry.h.
7356 (troff_output_file::flush_tbuf): Fixed parameters to
7357 `check_output_limits'.
7358 (troff_output_file::check_charinfo): Ditto.
7359 (troff_output_file::determine_line_limits): Add support for `Da'
7362 * src/devices/grohtml/post-html.cc (str_translate_to_html):
7363 Add new parameter `is_special' to decode special characters from
7365 (html_printer::do_title, html_printer::do_heading,
7366 html_printer::do_indentedparagraph,
7367 html_printer::translate_to_html, html_printer::special): Updated.
7369 2001-10-03 Werner LEMBERG <wl@gnu.org>
7371 * Makefile.sub (DISTCLEANFILES): Add stamp-h.
7372 Fix entry for config.h.
7373 * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
7374 * tmac/troffrc: Translate nonbreakable space character to `\~'.
7375 * src/preproc/eqn/eqn.man: Document -d command line option.
7377 2001-09-27 Werner LEMBERG <wl@gnu.org>
7379 * man/groff.man: Use
7387 instead of the old code (`.ad .hy' after the table) to suppress
7388 incorrect hyphenation for grohtml output.
7390 2001-09-22 Werner LEMBERG <wl@gnu.org>
7392 * man/groff_font.man, man/groff_out.man: Minor fixes.
7394 2001-09-20 Werner LEMBERG <wl@gnu.org>
7396 * PROBLEMS: Updated, reordered. Improved EPS section (thanks to
7397 Arnold Robbins <arnold@skeeve.com>).
7399 2001-09-09 Werner LEMBERG <wl@gnu.org>
7401 * configure: Regenerated with autoconf 2.52.
7403 * doc/groff.texinfo: Complete revision of indices.
7405 2001-09-07 Werner LEMBERG <wl@gnu.org>
7407 * doc/Makefile (clean): Updated to delete all indices.
7409 2001-09-05 Werner LEMBERG <wl@gnu.org>
7411 * src/roff/troff/troff.man: Remove superfluous line.
7413 * tmac/s.tmac: Enable all warnings only if no -W or -w option is
7414 given on the command line (or rather, if only the default warnings
7417 2001-09-03 Werner LEMBERG <wl@gnu.org>
7419 * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
7420 use .ne for TTY devices.
7422 2001-08-31 Werner LEMBERG <wl@gnu.org>
7424 * src/roff/troff/token.h, src/roff/troff/input.cc:
7425 s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
7427 2001-08-28 Werner LEMBERG <wl@gnu.org>
7429 * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
7430 * src/roff/troff/input.cc (token::next): Return
7431 TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
7433 (token::description): Updated.
7434 (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
7435 (token::add_to_node_list, token::process): Ignore
7436 TOKEN_TRANSPARENT_ESCAPE.
7438 2001-08-27 Werner LEMBERG <wl@gnu.org>
7440 * tmac/an-old.tmac: Fix `S' string.
7442 2001-08-26 Werner LEMBERG <wl@gnu.org>
7444 * src/roff/troff/troff.man: Don't use .ne for TTY devices.
7446 2001-08-25 Werner LEMBERG <wl@gnu.org>
7448 * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
7450 Many other minor fixes.
7452 * configure.ac: Add message at end to inform how to compile
7454 * configure: Regenerated.
7456 2001-08-24 Werner LEMBERG <wl@gnu.org>
7458 * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
7459 Updated to latest version of libc.
7461 2001-08-23 Werner LEMBERG <wl@gnu.org>
7463 * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
7464 Autoconf 2.50 and newer can handle this.
7465 * configure: Regenerated.
7467 2001-08-21 Werner LEMBERG <wl@gnu.org>
7469 * doc/pic.ms: Fix typo.
7470 * src/preproc/tbl/tbl.man: Document case of global options.
7472 2001-08-21 Gaius Mulley <gaius@glam.ac.uk>
7474 * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
7475 handling of `CR' font.
7477 2001-08-20 Werner LEMBERG <wl@gnu.org>
7479 Use a config.h file.
7481 * src/include/lib.h: Include config.h.
7482 * All C files: Ditto (if necessary).
7483 * All C++ source and header files: Include lib.h first (if
7486 * src/include/config.hin: New file (autogenerated by autoheader).
7487 * stamp-h.in: New file.
7488 * configure.ac: Updated.
7489 * aclocal.m4: Add third parameters to AC_DEFINE macros.
7490 (GROFF_ARRAY_DELETE): Simplified.
7491 * Makefile.sub (DISTCLEANFILES): Updated.
7492 Added targets for remaking config.status, config.hin, config.h,
7493 stamp-h.in, and stamp-h.
7494 * configure: Regenerated.
7496 2001-08-19 Werner LEMBERG <wl@gnu.org>
7500 2001-08-18 Sebastian Krahmer <krahmer@suse.de>
7502 * src/preproc/pic/pic.y (format_number): Use do_sprintf().
7503 (do_sprintf): Use snprintf().
7505 2001-08-18 Werner LEMBERG <wl@gnu.org>
7507 * src/libs/snprintf/*: Added an snprintf module written by Mark
7509 * src/libs/libgroff/Makefile.sub: Updated.
7510 * configure.ac: Add test for snprintf().
7511 * Makefile.in: Updated.
7512 * configure: Regenerated.
7514 * src/preproc/html/pre-html.cc (make_message): Reactivate code which
7517 2001-08-14 Ruslan Ermilov <ru@FreeBSD.org>
7519 * tmac/doc.tmac (Ex): New implementation.
7520 * tmac/doc-common, tmac/groff_tmac.man: Updated.
7522 2001-08-13 Ruslan Ermilov <ru@FreeBSD.org>
7524 * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
7526 * tmac/groff_tmac.man: Updated.
7528 2001-08-13 Werner LEMBERG <wl@gnu.org>
7530 * src/preproc/tbl/tbl.man: Minor documentation update.
7532 2001-08-13 John David Anglin <dave@hiauly1.hia.nrc.ca>
7534 * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
7535 * configure.ac: Add declaration test for gettimeofday().
7536 * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
7537 * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
7538 * configure: Regenerated.
7540 2001-08-11 Werner LEMBERG <wl@gnu.org>
7542 * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
7543 * configure.ac: Add declaration test for strcasecmp().
7544 * Makefile.in: Updated.
7545 * configure: Regenerated.
7546 * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
7547 this is necessary because groff's mkstemp.cc is C++.
7548 Add declaration conditionally for strcasecmp().
7550 2001-08-10 Werner LEMBERG <wl@gnu.org>
7552 Integrated pic2graph, contributed by Eric S. Raymond.
7554 * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
7556 * Makefile.in, NEWS: Updated.
7558 * src/preproc/tbl/tbl.man: Revised.
7560 2001-08-09 Eric S. Raymond <esr@thyrsus.com>
7562 * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
7564 2001-08-09 Werner LEMBERG <wl@gnu.org>
7566 * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
7569 2001-08-08 Paul Eggert <eggert@twinsun.com>
7571 * Makefile.sub (configure): Depend on configure.ac, not
7573 * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
7575 2001-08-07 Werner LEMBERG <wl@gnu.org>
7577 * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
7580 2001-08-06 Werner LEMBERG <wl@gnu.org>
7582 * src/roff/troff/troff.man: Improve documentation of -E option.
7584 2001-07-28 Ralph Corderoy <ralph@inputplus.demon.co.uk>
7586 * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
7589 2001-07-27 Werner LEMBERG <wl@gnu.org>
7591 * src/preproc/refer/refer.cc: Undo last change.
7592 * src/devices/grohtml/post-html.cc: Ditto.
7594 2001-07-26 Werner LEMBERG <wl@gnu.org>
7596 * src/preproc/refer/refer.cc: Include `lib.h'.
7597 * src/devices/grohtml/post-html.cc: Ditto.
7599 2001-07-25 Gaius Mulley <gaius@glam.ac.uk>
7601 * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
7602 * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
7603 * Makefile.in: Comment updated.
7604 * configure: Regenerated.
7606 2001-07-25 Werner LEMBERG <wl@gnu.org>
7608 * src/preproc/pic/pic.cc: Removed.
7609 * src/preproc/pic/pic_tab.h: Removed.
7610 * src/preproc/refer/label.cc: Removed.
7612 * doc/Makefile (.ms.html): Don't use a file name extension in
7613 argument to grohtml's -I option.
7614 * Makefile.in (dist): Remove CVS directories.
7615 Call `distfiles' target.
7617 * src/devices/grohtml/grohtml.man: Add information about valid
7618 versions of pnmtopng.
7619 * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
7620 name instead of number.
7622 2001-07-24 Werner LEMBERG <wl@gnu.org>
7624 * doc/groff.texinfo: Minor fixes.
7626 2001-07-21 Gaius Mulley <gaius@glam.ac.uk>
7628 * doc/Makefile (.ms.html): Put image files into a subdirectory.
7631 2001-07-20 Werner LEMBERG <wl@gnu.org>
7633 * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
7634 * src/libs/libgroff/mkstemp.cc: New file.
7635 * src/libs/libgroff/mksdir.cc: New file.
7636 * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
7637 (xtmpfile) [!HAVE_MKSTEMP]: Removed.
7638 * src/libs/libgroff/Makefile.sub: Updated.
7639 * src/include/lib.h: Add mksdir() prototype.
7640 * src/include/posix.h: Define S_IXUSR if not yet defined.
7642 * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
7643 (createAllPages): Use mksdir() instead of current code.
7644 * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
7645 (main): [!HAVE_MKSTEMP]: Removed.
7647 * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
7648 (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
7650 * configure.ac: Add tests for stdint.h, sys/time.h, and
7652 Call new GROFF_xxx macros.
7653 * configure: Regenerated.
7654 * Makefile.in: Comments updated.
7656 2001-07-20 Gaius Mulley <gaius@glam.ac.uk>
7658 * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
7659 instead of current code.
7660 * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
7661 * src/roff/groff/groff.cc (possible_command::insert_args): New
7663 (main): Use it for predriver handling instead of insert_arg().
7665 2001-07-19 Werner LEMBERG <wl@gnu.org>
7667 * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
7670 * src/include/posix.h: Define S_IWUSR if not yet defined.
7672 2001-07-18 Werner LEMBERG <wl@gnu.org>
7676 2001-07-18 Ruslan Ermilov <ru@FreeBSD.org>
7678 * tmac/groff_mdoc.man: Document new -width and -column syntax.
7679 Some other minor fixes.
7680 * tmac/an-old.tmac: Add `AT' and `UC' macros.
7682 2001-07-17 Gaius Mulley <gaius@glam.ac.uk>
7684 Replace call to `troff' with `groff -Z' to make it aware of
7687 * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
7688 (troff_command, command_prefix): Removed.
7689 (alterDeviceTo): Use groff.
7690 (addZ): New function.
7691 (char_buffer::do_html): Use it.
7692 (scanArguments): Use TROFF_COMMAND.
7693 (findPrefix): Removed.
7695 * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
7697 2001-07-17 Eric S. Raymond <esr@snark.thyrsus.com>
7699 * doc/pic.ms: Documentation fixes.
7701 2001-07-17 Werner LEMBERG <wl@gnu.org>
7703 Replace atexit() with global destructor.
7705 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
7706 (xtmpfile_list_init): New global structure to deallocate
7707 xtmpfile_list on exit. Its destructor inherits most code from
7709 (remove_tmp_files): Deleted.
7710 (add_tmp_file): Simplified.
7712 2001-07-16 Werner LEMBERG <wl@gnu.org>
7714 Replace strdup() with strsave().
7716 * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
7717 (set_papersize): Use strsave() and a_delete.
7718 (main): Use strsave().
7719 * src/preproc/html/pre-html.cc (make_message, createAllPages,
7720 removeAllPages): Use strsave() and a_delete.
7722 * configure.ac: Remove test for strdup.
7723 * Makefile.in: Comment updated.
7724 * configure: Regenerated.
7726 2001-07-15 Werner LEMBERG <wl@gnu.org>
7728 * win32-diffs: Updated.
7730 2001-07-14 Werner LEMBERG <wl@gnu.org>
7732 * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
7733 removing the old one.
7734 * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
7736 2001-07-14 Ralph Corderoy <ralph@inputplus.demon.co.uk>
7738 * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
7740 2001-07-12 Ruslan Ermilov <ru@FreeBSD.org>
7742 Merge -xwidth into -width. Add -xwidth functionality to -column
7745 * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
7747 (doc-do-Bl-args): Merge -xwidth code with -width. Test whether
7748 string immediately following a leading dot starts with a valid mdoc
7750 Add similar code to the -column branch.
7751 (doc-Bl-usage): Updated.
7752 * groff_mdoc.man: s/-xwidth/-width/.
7754 2001-07-12 Gaius Mulley <gaius@glam.ac.uk>
7756 * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
7757 running into centered or non-formatted text.
7759 2001-07-11 Werner LEMBERG <wl@gnu.org>
7761 Introduce short and long prefixes to have the selection at run-time
7762 whether there is a 8+3 limit for names of temporary files.
7764 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
7765 (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
7766 (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
7768 (temp_init): New global structure to initialize above three
7770 (xtmptemplate): Use two parameters for long and short prefix.
7771 Simplify code use above three variables.
7772 (xtmpfile): Use long and short prefixes as parameters.
7773 * src/include/lib.h: Updated.
7775 * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
7777 ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
7778 (createAllPages, makeTempFiles): Updated.
7780 2001-07-09 Werner LEMBERG <wl@gnu.org>
7782 * REVISION: Increased to 3.
7784 Version 1.17.2 released
7785 =======================
7787 2001-07-07 Werner LEMBERG <wl@gnu.org>
7789 * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
7792 2001-07-06 Ruslan Ermilov <ru@FreeBSD.org>
7794 * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
7796 * tmac/groff_mdoc.man: Fix synopsis.
7798 2001-07-05 Ruslan Ermilov <ru@FreeBSD.org>
7800 * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
7801 Restore `doc-Pa-font'.
7803 2001-07-04 Werner LEMBERG <wl@gnu.org>
7805 * src/utils/indxbib/dirnamemax.c: Moved to ...
7806 * src/libs/libgroff/maxfilename.cc: Here.
7807 s/dir_name_max/file_name_max/.
7809 * src/include/lib.h: Add file_name_max.
7810 * src/utils/indxbib/indxbib.cc: Updated.
7811 * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
7814 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
7816 (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
7818 * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
7819 REGION_TEMPLATE): New macros.
7820 (createAllPages, makeTempFiles): Use them.
7821 Include `nonposix.h'.
7822 (html_system): New function.
7823 (createAllPages, createImage): Use it.
7826 * tmac/www.tmac: Fix typos.
7828 2001-07-03 Werner LEMBERG <wl@gnu.org>
7830 * tmac/www.tmac: Disable hyphenation in normal text only if output
7832 (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
7833 * tmac/groff_mwww.man, NEWS: Updated.
7835 2001-07-03 Gaius Mulley <gaius@glam.ac.uk>
7837 * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
7840 2001-07-02 Ruslan Ermilov <ru@FreeBSD.org>
7842 * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
7843 doc-display-ps-stack): Implement font and font size stack for
7846 2001-07-02 Werner LEMBERG <wl@gnu.org>
7848 * REVISION: Increased to 2.
7849 * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
7851 * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
7852 beginning of a line.
7853 * src/groff/grog/grog.sh: Ditto.
7855 2001-06-29 Peter Marquardt <wwwutz@molgen.mpg.de>
7857 * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
7860 2001-06-27 Werner LEMBERG <wl@gnu.org>
7862 Fix problems with preprocessor string for `man' program.
7864 * *.man: Don't use `s' in preprocessor string -- it doesn't exist.
7865 Updated/added copyright.
7866 Moved Emacs's local variable to identify nroff mode to the end of
7867 the file; add local variable if missing.
7869 2001-06-26 Andras Salamon <andras@cs.wits.ac.za>
7871 * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
7872 AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
7873 * configure: Regenerated.
7875 2001-06-25 Andras Salamon <andras@cs.wits.ac.za>
7877 * aclocal.m4 (GROFF_PAGE): Fix page detection code.
7878 * configure: Regenerated.
7880 2001-06-24 Werner LEMBERG <wl@gnu.org>
7882 * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
7884 * doc/pic.ms: Fix typos.
7886 Version 1.17.1 released
7887 =======================
7889 2001-06-21 Golubev I. N. <gin@mo.msk.ru>
7891 * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
7892 * configure: Updated.
7894 2001-06-20 Gaius Mulley <gaius@glam.ac.uk>
7896 * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
7898 * src/roff/troff/dic.cc (blank_line): Add html tag.
7900 2001-06-19 Gaius Mulley <gaius@glam.ac.uk>
7902 * src/roff/troff/input.cc (do_suppress): Fix typo.
7904 2001-06-18 Gaius Mulley <gaius@glam.ac.uk>
7906 Added two new options (-D and -I) to specify image names and a
7907 subdirectory to place the images in.
7909 Change syntax from \\Ox to \\O[x].
7911 * src/devices/grohtml/post-html.cc (main): Add options.
7913 * src/preproc/html/pre-html.cc: Include `stdarg.h'.
7914 Use `NULL' instead of `0' for null string pointers.
7915 (MAX_RETRIES): New macro.
7916 (lengthOfintToStr, intToStr, make_message): New functions.
7917 (makeFileName): Make function static.
7918 Implement -D and -I options.
7919 (checkImageDir): New function.
7920 (write_end_image, write_start_image): Use new syntax of \O.
7921 (createAllPages, removeAllPages): Implement -D and -I options. Use
7923 (createImage): Use make_message().
7924 (addps4html): Add guard for malloc().
7925 (usage, scanArguments): Updated.
7926 (makeTempFiles): Use mkstemp().
7927 (removeTempFiles): Use unlink().
7928 (findPrefix): Add guard for malloc().
7930 * src/roff/troff/input.cc (get_delim_file_name): New function to
7932 (do_suppress): Updated to parse new syntax.
7933 * src/devices/grohtml/grohtml.man: Updated.
7934 * tmac/www.tmac: Updated to new syntax.
7938 2001-06-15 Werner LEMBERG <wl@gnu.org>
7940 * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
7942 * src/devices/grohtml/grohtml.man: Minor improvements.
7944 2001-06-14 Werner LEMBERG <wl@gnu.org>
7946 * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
7948 2001-06-11 Werner LEMBERG <wl@gnu.org>
7950 * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
7951 line to specify preprocessor options -- mandb 2.3.1 only recognizes
7953 * src/preproc/grn/grn.man: Add proper '\" string.
7955 2001-06-11 OKAZAKI Tetsurou <okazaki@be.to>
7957 * test-groff: Don't use PATH but GROFF_BIN_PATH.
7959 2001-06-08 Werner LEMBERG <wl@gnu.org>
7961 Updated to autoconf 2.50.
7963 * configure.in: Renamed to...
7964 * configure.ac: This.
7965 * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
7966 (GROFF_OS390): Updated.
7967 * configure: Regenerated.
7969 2001-05-18 Werner LEMBERG <wl@gnu.org>
7971 * src/roff/troff/env.c, src/roff/troff/env.h,
7972 src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
7975 2001-05-17 Jeffrey Friedl <jfriedl@yahoo-inc.com>
7977 * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
7979 2001-05-16 Werner LEMBERG <wl@gnu.org>
7981 * src/roff/troff/input.cc (read_size): Emit warning if value becomes
7982 less than or equal zero; set it to 1 then.
7983 * src/roff/troff/node.h (node::node): Initialize `last'.
7985 2001-05-08 Werner LEMBERG <wl@gnu.org>
7987 * tmac/an-old.tmac: Make predefined strings work in compatibility
7989 Add troff version guard.
7990 * tmac/doc.tmac: Simplify version guard.
7992 2001-05-07 Werner LEMBERG <wl@gnu.org>
7994 The .ns and .rs requests are now honoured not only in the top-level
7995 but in all diversions (similar to UNIX troff).
7997 This change is based on a patch from Tadziu Hoffmann
7998 <hoffmann@usm.uni-muenchen.de>.
8000 * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
8001 (top_level_diversion): Remove `no_space_mode' member.
8002 * src/roff/troff/div.cc (diversion::diversion,
8003 top_level_diversion::top_level_diversion): Updated.
8004 (macro_diversion::output): Reset `no_space_mode'.
8005 (no_space, restore_spacing): Use `curdiv' unconditionally.
8006 (space_request, blank_line): Check `curdiv->no_space_mode'.
8007 (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
8008 `curdiv' unconditionally.
8009 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8012 2001-05-06 Werner LEMBERG <wl@gnu.org>
8014 Added two new requests `de1' and `am1' which are similar to `de' and
8015 `am' with the difference that compatibility mode is saved on entry,
8016 switched off during macro execution, and restored on exit.
8018 * src/roff/troff/input.h: Added two new special characters
8019 (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
8020 * src/roff/troff/input.cc (input_iterator): Added two member
8021 functions `save_compatible_flag' and `get_compatible_flag'.
8022 (input_stack): Ditto.
8023 (string_iterator): Ditto. Also add private member
8024 `saved_compatible_flag'.
8025 (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
8026 (calling_mode): New enumeration.
8027 (do_define_macro): Use it. Insert COMPATIBLE_SAVE and
8028 COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
8029 (define_macro, define_indirect_macro, append_macro, ignore): Use
8031 (define_nocomp_macro, append_nocomp_macro): New functions.
8032 (init_input_requests): Updated.
8033 (do_request): Rename local variable `saved_compatible_flag' to
8034 `old_compatible_flag'.
8035 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8037 * tmac/an-old.tmac: Use `de1' instead of `de' request for all
8038 public and trap-invoked macros. As a consequence, the man macros
8039 work in compatibility mode also.
8041 2001-05-06 Solar Designer <solar@openwall.com>
8043 * Makefile.in: Use $(mandir).
8045 2001-05-06 Alexios Zavras <zvr@pobox.com>
8047 * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
8049 2001-05-05 Werner LEMBERG <wl@gnu.org>
8051 Added `.ns' number register: Returns 1 in no-space mode (if in
8052 top-level diversion), 0 otherwise.
8054 * src/roff/troff/div.cc (no_space_mode_reg): New class.
8055 (init_div_requests): Updated.
8056 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8059 2001-05-04 Werner LEMBERG <wl@gnu.org>
8061 * src/roff/nroff/nroff.man: Improved documentation (especially
8064 2001-05-02 Werner LEMBERG <wl@gnu.org>
8066 Added `brp' request: This is \p as a request.
8068 * src/roff/troff/env.cc (environment::do_break): Add parameter
8070 (do_break_request): New function (was `break_request').
8071 (break_request): Calls `do_break_request'.
8072 (break_spread_request): New; calls `do_break_request'.
8073 (init_env_requests): Updated.
8074 * src/roff/troff/env.h: Updated.
8075 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8077 * REVISION: Increased to 1.
8078 * win32-diffs: Updated.
8080 2001-05-01 Werner LEMBERG <wl@gnu.org>
8082 * tmac/an-old.tmac: Fix minor compatibility mode issue.
8083 * tmac/troffrc-end: Make it really work in compatibility mode.
8085 2001-04-27 Werner LEMBERG <wl@gnu.org>
8087 * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
8090 2001-04-22 Werner LEMBERG <wl@gnu.org>
8092 * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
8093 latest versions from glibc CVS archive.
8095 * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
8096 <c.zeelenberg@hccnet.nl>.
8098 2001-04-21 Werner LEMBERG <wl@gnu.org>
8100 * configure.in: Move check for mkstemp() to...
8101 * aclocal.m4 (GROFF_MKSTEMP): This new function.
8102 * configure: Regenerated.
8104 * src/include/groff-getopt.h: Don't use variable names in
8107 * src/devices/grohtml/html-chars.h: Removed. It isn't used.
8108 * src/devices/grohtml/Makefile.sub,
8109 src/devices/grohtml/post-html.cc: Updated.
8111 2001-04-21 Albert Chin-A-Young <china@thewrittenword.com>
8113 * configure.in: Add special check for mkstemp().
8114 * src/libs/libgroff/tmpfile.cc: Use it.
8115 * src/utils/indxbib/indxbib.cc: Ditto.
8116 * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
8117 * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
8120 2001-04-20 Bruce Lilly <blilly@erols.com>
8122 `Version_string' as C++ object was not visible to linker from C
8124 Add `const' to `Version_string'.
8126 * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
8127 (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
8128 (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
8129 (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
8130 (scanArguments), src/preproc/refer/refer.cc (main),
8131 src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
8132 (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
8133 (main), src/devices/grohtml/post-html.cc (main),
8134 src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
8135 (main), src/utils/hpftodit/hpftodit.cc (main),
8136 src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
8137 (main), src/utils/lkbib/lkbib.cc (main),
8138 src/utils/addftinfo/addftinfo.cc (main): Implement it.
8140 * src/roff/groff/pipeline.c: Add _UWIN.
8141 * src/include/nonposix.h: Ditto.
8143 2001-04-20 Werner LEMBERG <wl@gnu.org>
8145 * src/include/lib.h: Use HAVE_STRERROR.
8146 * src/roff/groff/pipeline.c: Ditto.
8147 * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
8148 * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
8149 * src/utils/pfbtops/pfbtops.c: Add copyright notice.
8150 * win32-diffs: Updated.
8151 * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
8153 2001-04-19 Werner LEMBERG <wl@gnu.org>
8155 * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
8156 instead of hardwired `"troff"'.
8157 (char_buffer::read_file): Remove unused variables.
8158 (char_buffer::write_file_troff): Ditto.
8159 (char_buffer::write_file_html): Ditto.
8160 (generateImages): Ditto.
8162 * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
8164 * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
8166 * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
8167 * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
8168 index_search_item::search1): Ditto.
8169 * src/roff/troff/node.h (width_list): Reorder members.
8170 * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
8171 (lookup_warning): Ditto.
8172 (prepend_string): Commented out.
8173 * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
8174 * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
8175 * src/preproc/tbl/main.cc (process_format): Ditto.
8176 * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
8178 * src/preproc/pic/pic.cc: Updated.
8179 * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
8180 * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
8181 * src/preproc/refer/command.cc (execute_command): Ditto.
8182 * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
8183 * src/preproc/refer/token.cc (lookup_token): Ditto.
8184 * src/preproc/soelim/soelim.cc: Ditto.
8185 * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
8186 (isHexDigit): Commented out.
8187 (pushBackBuffer::isString): Remove unused variable.
8188 * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
8190 * src/devices/grops/psrm.cc (resource_manager::lookup_font,
8191 resource_manager::read_resource_arg, read_one_of, parse_extensions):
8193 * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
8194 * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
8195 lookup_paper_size): Ditto.
8196 * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
8197 (text_glob, element_list): Reorder members.
8198 * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
8200 * src/devices/grohtml/html-text.h (html_text::emit_space): Change
8201 return value to `void'.
8202 * src/devices/grohtml/output.cc (word_list::word_list): Fix order
8204 * src/devices/grohtml/html.h (simple_output::check_newline,
8205 simple_output::space_or_newline, simple_output::enable_newlines):
8207 * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
8209 * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
8210 * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
8211 output_ligatures, output_charset, read_map): Ditto.
8212 * src/utils/lookbib/lookbib.cc (main): Ditto.
8213 * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
8214 (do_file): Fix typo (`=' -> `==').
8215 * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
8216 * src/utils/addftinfo/addftinfo.cc (main): Ditto.
8218 2001-04-18 Ruslan Ermilov <ru@FreeBSD.org>
8220 * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
8221 Fix usage of GROFF_BIN_PATH.
8222 * src/roff/nroff/nroff.man: Updated.
8224 2001-04-18 Werner LEMBERG <wl@gnu.org>
8226 * NEWS: Fixing typos.
8229 Version 1.17 released
8230 =====================
8232 2001-04-17 Werner LEMBERG <wl@gnu.org>
8234 * tmac/Makefile.sub (install-data): mdoc.local-s is in current
8235 directory, not in $(srcdir).
8237 2001-04-16 Werner LEMBERG <wl@gnu.org>
8239 * doc/groff.texinfo: More info on conditionals.
8241 2001-04-15 Werner LEMBERG <wl@gnu.org>
8243 * doc/groff.texinfo: Added some info about groff internals.
8245 * src/roff/troff/node.cc (make_glyph_node): Emit warning message
8246 about missing special character only if the name is non-null.
8248 2001-04-14 Werner LEMBERG <wl@gnu.org>
8250 Removing the grohtml-old device driver which is now obsolete.
8252 * src/devices/grohtml-old/*: Removed.
8253 * font/devhtml-old/*: Removed.
8254 * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
8256 * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
8257 * test-groff (PATH): Updated.
8258 * tmac/Makefile.sub (NORMALFILES): Updated.
8259 * tmac/an-old.tmac: Remove special code for html-old device.
8260 Replace `html-or-html-old' register with `an-html'.
8261 * tmac/eqnrc: Updated.
8262 * tmac/html-old.tmac: Removed.
8263 * tmac/troffrc, tmac/troffrc-end: Updated.
8264 * tmac/www.tmac: Remove special code for html-old device.
8265 Replace `html-or-html-old' register with `www-html'.
8267 * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
8268 src/libs/libgroff/htmlindicate.cc (graphic_end),
8269 include/htmlindicate.h, src/preproc/grn/*.cc,
8270 src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
8271 single argument for consistency with rest of source code.
8273 * aclocal.m4, tmac/an-old.tmac: Fix copyright.
8275 2001-04-13 Ruslan Ermilov <ru@FreeBSD.org>
8277 * src/roff/troff/troff.man: Fixing typos.
8279 2001-04-13 Werner LEMBERG <wl@gnu.org>
8281 * doc/pic.ms: Fixing many font switches.
8282 * doc/groff.texinfo: Fixes, additions.
8283 * MORE.STUFF: Updated.
8285 2001-04-12 Gaius Mulley <gaius@glam.ac.uk>
8287 * src/devices/grohtml/grohtml.man: Updated manual page regarding
8289 * src/preproc/html/pre-html.cc (createImage): Fixed right hand
8291 (removeTempFiles): New function to tidy up temporary files.
8292 * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
8293 Many fixes to do with the new inline suppress node and image regions
8295 * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
8296 (generate_img_src): New function.
8297 (html_printer::do_auto_image): Utilizes it.
8298 (do_heading, do_title): Include inline images within their contents.
8299 (html_printer::begin_page): Tidied up comments that are issued to
8300 the html output file.
8301 (html_printer::do_fill): Fixed so that `.nf' works with fonts other
8303 (text_glob::is_br): New method used by do_heading.
8304 * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
8305 equivalent diversion.
8306 * src/include/html-strings.h: Altered image tags to reflect the
8308 * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
8310 * src/preproc/eqn/main.cc: Will suppress generation of image tags if
8311 it is already inside a pic image. Only emit tags if the argument
8312 `-Tps:html' is present.
8313 * src/preproc/tbl/main.cc: Changes to reflect additional
8314 `html_end_suppress' parameter.
8315 * src/roff/troff/env.cc: Only emit eol tag if a node has been
8316 emitted since the last eol tag was written.
8317 * src/roff/troff/env.h: New boolean `emitted_node'.
8318 * src/roff/troff/input.cc (do_suppress): Handles extra suppress
8319 nodes \O3, \O4, \O5. No longer use `output_low_mark_miny'.
8320 * src/roff/troff/node.cc (check_charinfo): New method.
8321 (troff_output_file::determine_line_limits): Alterations to limit
8323 * tmac/www.tmac: Changes to reflect new suppress nodes.
8325 2001-04-12 Bruno Haible <haible@clisp.cons.org>
8327 * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
8328 Escape the html_glyph in the buffer.
8329 (str_translate_to_html): Output the unescaped escaped_char.
8330 * src/devices/grohtml/html-text.cc (issue_table_begin): Set
8331 `frame=void', not `frame=none'. Add `border=0'.
8333 2001-04-12 Werner LEMBERG <wl@gnu.org>
8335 * PROBLEMS: Add some words on how to avoid wrapper macros.
8337 2001-04-11 Blake McBride <blake@florida-software.com>
8339 * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
8341 2001-04-11 Werner LEMBERG <wl@gnu.org>
8343 * font/devlbp/Makefile.sub (CLEANADD): Set it.
8344 * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
8345 * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
8346 * Makefile.sub (DISTCLEANFILES): Here.
8348 * libs/libgroff/new.cc: Include `nonposix.h'.
8349 * win32-diffs: Updated.
8351 2001-04-10 Ruslan Ermilov <ru@FreeBSD.org>
8353 Added skeleton macro for defunct macros.
8355 Updated documentation.
8357 When inside displays, an empty input line warning should be
8358 suppressed. If another macro call is put inside a display,
8359 all subsequent empty lines found in that display caused a
8360 warning to be emitted.
8362 * tmac/doc.tmac (doc-defunct-macro): New macro.
8363 (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
8364 (doc-restore-global-vars): Fixed typo.
8365 (doc-empty-line): Check the `doc-display-depth' register to
8366 determine whether we are inside display or not.
8368 * tmac/doc-common: Removed `Or' and `Sf' registers.
8369 Moved obsolete `Ds' macro to doc.tmac.
8371 * tmac/groff_mdoc.man: Bump document date.
8372 Document `.Vt' under ``Variable Types''.
8373 Removed documentation for obsolete `.Or' macro.
8375 2001-04-10 Werner LEMBERG <wl@gnu.org>
8378 * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
8380 2001-04-10 Bruno Haible <haible@clisp.cons.org>
8382 * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
8383 (usage): Add stream argument. Don't exit.
8384 * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
8385 Write --version output to stdout, not stderr.
8386 (usage): Add stream argument. Don't exit.
8387 * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
8388 (usage): Add stream argument. Don't exit.
8389 * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
8391 (usage): Add stream argument. Don't exit.
8392 (main): Write --help output to stdout, not stderr.
8393 * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
8394 (usage): Add stream argument. Don't exit.
8395 * src/devices/grops/ps.cc (main): Accept --help and --version.
8396 (usage): Add stream argument. Don't exit.
8397 * src/devices/grotty/tty.cc (main): Accept --help and --version.
8398 (usage): Add stream argument. Don't exit.
8399 * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
8400 (main): Accept --help and --version.
8401 * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
8402 (main): Accept --help and --version.
8403 * src/preproc/html/pre-html.cc (usage): Add stream argument.
8404 (scanArguments): Accept --help and --version.
8405 * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
8406 (main): Accept --help and --version.
8407 * src/preproc/refer/refer.cc (main): Accept --help and --version.
8408 (usage): Add stream argument. Don't exit.
8409 * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
8411 (main): Accept --help and --version.
8412 * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
8413 (main): Accept --help and --version.
8414 * src/roff/groff/groff.cc (main): Accept --help and --version.
8415 (synopsis): Add stream argument.
8416 (help): Write --help output to stdout, not stderr.
8417 (usage): Add stream argument. Don't exit.
8418 * src/roff/grog/grog.pl: Accept --help and --version.
8420 * src/roff/grog/grog.sh: Accept --help and --version.
8421 * src/roff/nroff/nroff.sh: Accept --help and --version.
8422 * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
8423 (usage): Add stream argument. Don't exit.
8424 (main): Accept --help and --version.
8425 * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
8426 (usage): New function with stream argument, doesn't exit.
8427 * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
8428 (usage): New function with stream argument, doesn't exit.
8429 * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
8430 (usage): Add stream argument. Don't exit.
8431 * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
8432 (main): Accept --help and --version.
8433 * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
8435 (main): Accept --help and --version.
8436 * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
8437 (main): Accept --help and --version.
8438 * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
8439 (usage): Add stream argument. Don't exit.
8441 2001-04-10 Ruslan Ermilov <ru@freebsd.org>
8443 Fix indentation in SYNOPSIS.
8445 Updated to include changes of latest BSD mdoc version (basically,
8446 the only change is that `.Fn' and `.Fc' put a final semicolon after
8447 a function declaration in the SYNOPSIS section).
8449 * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
8450 (doc-in-synopsis-section): New variable. Updated all related
8452 (doc-indent-synopsis-active): New register.
8453 (Nd, Fn, Fo): Use it.
8454 (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
8455 `.Cd' with long argument line produces indented wrapped lines.
8456 Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
8457 undesirable line break to be output.
8458 (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
8460 (Fn, Fc): Add final `;' to output.
8461 (doc-save-global-vars, doc-restore-global-vars): Updated.
8462 * tmac/doc-common: Remove `Ex' register.
8464 * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
8467 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
8469 * tmac/doc.tmac (Cd): Simplify code.
8470 * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
8472 2001-04-06 Werner LEMBERG <wl@gnu.org>
8474 Implement continuous underlining for nroff mode. To do that, a new
8475 request in the ditroff language has been added: `x u N' (N is 0
8478 \X and \Y are now transparent to end-of-sentence recognition.
8480 * src/include/printer.h (printer): Add `type' parameter to `special'
8482 * src/libs/libdriver/printer.cc (printer::special): Updated.
8483 * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
8485 * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
8486 specials of type `p'.
8487 * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
8488 * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
8489 * src/devices/grops/ps.cc (ps_printer::special): Ditto.
8490 * src/devices/grotty/tty.cc: Add new enum CU_MODE.
8491 (glyph::order): New method.
8492 (tty_printer::add_char): Use it.
8493 (tty_printer::special): New method.
8494 (tty_printer::end_page): Implement it.
8496 * src/roff/troff/node.h (special_node): Add `no_init_string' member.
8497 * src/roff/troff/node.cc (special_node::special_node): Add parameter
8498 to set `no_init_string'.
8499 (special_node::tprint_start): Use it.
8500 (special_node::same, special_node::copy): Updated.
8501 (special_node::ends_sentence): New method.
8502 (troff_output_file::start_special): Add parameter to include
8503 inititialization of special conditionally.
8505 * src/roff/troff/env.h (environment): New member `underline_spaces'.
8506 * src/roff/troff/env.cc (do_underline_special): New function.
8507 (environment::set_font): Use it.
8508 (do_underline): Use it. This was `underline()'.
8509 (underline): Call `do_underline()'.
8510 (continuous_underline): New function which calls `do_underline()'.
8511 (environment::newline): Use `do_underline_special()'.
8512 (init_env_requests): Updated.
8514 * NEWS, man/troff_out.man: Updated.
8516 2001-04-06 Bruno Haible <haible@clisp.cons.org>
8518 * font/devutf8/R.proto: Fix code of 'shc'.
8520 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
8522 Many fixes. Diag lists can now be nested also; additionally,
8523 `-compact' and `-offset' are supported.
8525 * tmac/doc.tmac (doc-have-indent): Replaced with ...
8526 (doc-list-have-indent-stackXXX): A new register stack.
8527 (doc-have-diag-list): Removed.
8528 (Bl): Use `doc-list-have-indent-stackXXX'.
8530 (doc-diag-list): Use `doc-compact-list-stackXXX'.
8531 (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
8532 (doc-set-vertical-and-indent): Ditto.
8533 (doc-next-list-depth): Removed.
8534 (doc-increment-list-stack): Updated.
8535 (doc-decrement-list-stack): Use `doc-list-depth' instead of
8536 `doc-next-list-depth'.
8537 (doc-end-list, doc-end-column-list): Don't use
8538 `doc-increment-list-stack'.
8539 (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
8540 (doc-save-global-vars, doc-restore-global-vars): Updated.
8541 * tmac/doc-common: Updated.
8542 * tmac/groff_mdoc.man: Updated.
8545 2001-04-02 Werner LEMBERG <wl@gnu.org>
8547 * src/devices/grotty/grotty.man: Fix grammatical error.
8549 2001-03-30 Ruslan Ermilov <ru@freebsd.org>
8551 Remove .Ld from mdoc package; replace it with special handling of
8554 * tmac/doc-common: Remove `Ld' register.
8555 Uncomment `doc-volume-ds-*' strings.
8556 Remove `doc-operating-system-default'.
8558 * tmac/doc-syms (Ld): Removed.
8559 * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
8563 * tmac/groff_mdoc.man: Many fixes and updates.
8565 2001-03-29 Werner LEMBERG <wl@gnu.org>
8567 * tmac/troffrc-end: Protect data with `.do'. Reported by T. Kurt
8568 Bond <tkb@tkb.mpl.com>.
8569 * tmac/www.tmac: Save compatibility mode.
8571 2001-03-28 Ruslan Ermilov <ru@freebsd.org>
8573 * tmac/groff_mdoc.man: Many fixes.
8575 2001-03-28 Werner LEMBERG <wl@gnu.org>
8577 * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
8580 2001-03-27 Werner LEMBERG <wl@gnu.org>
8582 * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
8583 diversion. This fixes overlong tags.
8585 2001-03-26 Werner LEMBERG <wl@gnu.org>
8587 * doc/groff.texinfo: Fixed and improved documentation of fonts.
8588 * tmac/doc-syms: Fix error messages.
8589 * tmac/an-old.tmac: Remove incorrect double backslashes.
8591 2001-03-24 Ruslan Ermilov <ru@freebsd.org>
8593 * tmac/Makefile.sub: Strip mdoc.local also
8594 * tmac/strip.sed: Fixed.
8596 2001-03-24 Werner LEMBERG <wl@gnu.org>
8598 * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
8599 selecting the font size.
8600 * tmac/groff_mdoc.man, NEWS: Document it.
8602 2001-03-23 Werner LEMBERG <wl@gnu.org>
8604 * src/roff/troff/div.cc (save_vertical_space): Add default argument
8606 * src/roff/troff/env.cc (family_change): Make `.fam' accept no
8607 argument to restore previous font family.
8608 * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
8610 * doc/groff.texinfo: More fixes and additions (mainly for font
8611 manipulating commands).
8613 * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
8614 * tmac/groff_mdoc.man: This. The quick reference has been removed.
8615 * tmac/Makefile.sub, NEWS: Updated.
8617 2001-03-23 Werner LEMBERG <wl@gnu.org>
8619 Replaced mdoc implementation. The new version is `state of the
8620 art', using almost all new features of groff 1.17 -- it won't run
8621 with older versions.
8623 * tmac/doc.tmac: Completely rewritten.
8624 * tmac/doc-common: Ditto.
8625 * tmac/doc-nroff: Ditto.
8626 * tmac/doc-ditroff: Ditto.
8627 * tmac/doc-syms: Ditto.
8628 * tmac/mdoc.local: New file.
8629 * tmac/groff_mdoc.samples.man: Replaced with ...
8630 * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
8631 * tmac/strip.sed: Updated.
8632 * tmac/Makefile.sub: Updated.
8635 * tmac/groff_man.man: Add `man.local' to the FILES section.
8637 2001-03-22 Werner LEMBERG <wl@gnu.org>
8639 * doc/groff.texinfo: Added many @noindent.
8640 Replaced @end_Example -> @endExample.
8641 Added info whether registers are r/o.
8642 Many other additions and fixes.
8644 2001-03-21 Werner LEMBERG <wl@gnu.org>
8646 * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
8647 in makeinfo of texinfo 4.0) to be used in @Def* macros.
8648 Improved @Def* macros: Now the exact syntax of request, register,
8649 and escapes is shown.
8650 Added macros for parentheses and brackets to be used in @Def*.
8651 Many fixes and improvements of the documentation.
8653 2001-03-20 Werner LEMBERG <wl@gnu.org>
8655 * doc/groff.texinfo: Added new index: `st' (for strings).
8656 Added macros @Defstr(x).
8657 Added macro @Example (adding @group).
8658 Other minor improvements.
8660 2001-03-19 Werner LEMBERG <wl@gnu.org>
8662 * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
8663 `rq' for requests. `fn' is no longer used.
8664 Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
8667 * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
8668 number with name of man page.
8670 2001-03-19 Larry Kollar <kollar@alltel.net>
8672 * doc/groff.texinfo: Complete revision. Added many @Deffn to gain
8675 2001-03-19 Werner LEMBERG <wl@gnu.org>
8677 * man/groff_font.man: Document `prepro', `postpro', and `print'.
8678 * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
8679 * src/devices/grohtml/grohtml.man: Fixing typos.
8681 2001-03-19 Gaius Mulley <gaius@glam.ac.uk>
8683 * tmac/s.tmac (@IP): Pass `.ip' html tag.
8684 * tmac/groff_mwww.man: Remove .LINE macro
8685 * tmac/www.tmac (LINE): Add `.ti'.
8687 * src/devices/grohtml/post-html.cc (html_printer): New member
8689 (html_printer::emit_raw): Use it.
8690 (html_printer::do_linelength): Ditto.
8691 (html_printer::do_pageoffset): Ditto.
8692 (html_printer::do_indentation): Ditto.
8693 (html_printer::do_tempindent): Ditto.
8694 (html_printer::do_break): Ditto.
8695 (html_printer::begin_page): Ditto.
8696 (html_printer::do_indentedparagraph): New function.
8697 (html_printer::troff_tag): Handle `.ip'.
8698 * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
8699 Add `<td width=...>' handling.
8700 (html_text::do_table): Add parameter.
8701 (html_text::do_indent): Updated.
8702 * src/devices/groohtml/html-text.h: Updated.
8704 2001-03-16 Gaius Mulley <gaius@glam.ac.uk>
8706 Introduced simple html tables to implement indentation.
8708 * src/devices/grohtml/html.h (word, word_list): New structures.
8709 (simple_output): Use it.
8710 * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
8711 (html_printer): Improve indentation handling.
8712 (html_printer::emit_raw): Set `in_table' element. Handle
8714 (html_printer::write_header): Move conditional downwards.
8715 Don't allow whitespace in tags.
8716 (html_printer::do_linelength): Handle line length and indentation
8718 (html_printer::do_pageoffset): Handle indentation conditionally.
8719 (html_printer::do_indentation): Ditto.
8720 (html_printer::do_tempindent): New function member.
8721 (html_printer::do_fill): Take care of indentation.
8722 (html_printer::do_flush): Finish table.
8723 (html_printer::do_links): Ditto.
8724 (html_printer::do_break): New function for handling `.br' and `.ti'.
8725 (html_printer::troff_tag): Use it.
8727 (html_printer::flush_globs): Fix.
8728 (html_printer::flush_page): Finish table.
8729 (html_printer::html_printer): Fix error message. Set up
8731 (html_printer::add_to_sbuf): Remove special handling of character
8733 (to_unicode): Remove `stop()'.
8734 (html_printer::write_title): Cleanup.
8735 (html_printer::begin_page): Use `put_string()'. Handle indentation.
8736 (html_printer::~html_printer): Flush text and end the line.
8738 * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
8739 * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
8741 (html_text::start_tag): Disable newlines.
8742 (html_text::table_is_void): New function.
8743 (html_text::issue_table_begin): Ditto.
8744 (html_text::issue_table_end): Ditto.
8745 (html_text::push_para): Better table handling.
8746 (html_text::do_indent): New function.
8747 (html_text::do_table): Ditto.
8748 (html_text::done_table): Ditto.
8749 (html_text::do_tt): Handle PRE_TAG.
8750 (html_text::is_in_table): New function.
8751 (html_text::check_emit_text): Handle tables.
8752 (html_text::do_emittext): Use `nl()'.
8753 (html_text::do_para): Handle table.
8754 (html_text::remove_def): New function.
8755 * src/devices/grohtml/output.cc (word, word_list): Implement
8757 (simple_output::end_line): Flush last word.
8758 (simple_output::simple_comment): Ditto.
8759 (simple_output::begin_comment): Recoded.
8760 (simple_output::end_comment): Ditto.
8761 (simple_output::comment_arg): Removed.
8762 (simple_output::check_newline): Improve test and flush last word.
8763 (simple_output::space_or_newline): Improved.
8764 (simple_output::write_newline): Replaced with...
8765 (simple_output::nl): This.
8766 (simple_output::put_raw_char): Flush last word.
8767 (simple_output::check_space): Removed.
8768 (simple_output::put_translated_string): Ditto.
8769 (simple_output::put_string): Simplified.
8770 (simple_output::put_number): Updated.
8771 (simple_output::put_float): Ditto.
8772 (simple_output::put_symbol): Removed.
8773 (simple_output::enable_newlines): Add `check_newline()'.
8774 (simple_output::flush_last_word): New function.
8776 * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
8777 * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
8779 * tmac/s.tmac (@PP, @IP): Add html conditional code.
8780 * tmac/an-old.tmac (TP): Ditto.
8782 2001-03-09 Ruslan Ermilov <ru@freebsd.org>
8784 * mdate.sh: Make it POSIX compliant.
8786 2001-03-09 Werner LEMBERG <wl@gnu.org>
8788 Added the `return' request to end a macro immediately. It simply
8789 pops iterators from the input stack until a macro iterator is found.
8791 * src/roff/troff/input.cc (input_iterator::is_macro,
8792 macro_iterator::is_macro): New member.
8793 (input_return_boundary): New class to signal an immediate return
8795 (input_stack::add_return_boundary, input_stack::is_return_boundary):
8797 (input_stack::clear): Use it.
8798 (input_stack::pop_macro): New function.
8799 (while_request): Use `is_return_boundary()'.
8800 (return_macro_request): New function.
8801 (init_input_requests): Use it.
8803 * src/roff/troff/TODO: Updated.
8804 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8806 2001-03-08 Werner LEMBERG <wl@gnu.org>
8808 * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
8811 2001-03-07 Werner LEMBERG <wl@gnu.org>
8813 Make `\B' more rigid.
8815 * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
8817 (get_number_rigidly): New function.
8818 * src/roff/troff/input.cc (do_expr_test): Use it.
8819 * src/roff/troff/token.h: Updated.
8821 * src/roff/troff/request.h: Fix typo (init_html_request ->
8822 init_markup_request).
8824 2001-03-04 Gaius Mulley <gaius@glam.ac.uk>
8826 Fixed grohtml handling of any named glyph for glyph indexes < 0x80.
8827 Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
8828 are now `.begin', `.end', `.image'.
8830 * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
8831 (html_printer::add_to_sbuf): Changing type of `code' parameter.
8832 Use add_char_to_sbuf().
8833 (to_unicode): New function.
8834 (char_translate_to_html): Changing type of `ch' parameter.
8836 (html_printer::~html_printer): Comment out doctype string.
8837 * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
8838 instead of `.html-end'.
8839 (write_start_image): Use `.begin' and `.image' instead of
8840 `.html-begin' and `.html-image'.
8841 * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
8842 (html_begin): Renamed to ...
8844 (html_end): Renamed to ...
8846 (html_image): Renamed to ...
8848 (init_html_requests): Renamed to ...
8849 (init_markup_requests): This.
8850 * tmac/www.tmac: Updated.
8852 2001-02-28 Bram <bram@avontuur.org>
8854 * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
8857 2001-02-26 David Leonard <david.leonard@csee.uq.edu.au>
8859 * doc/meref.me: Fixing some typos.
8861 2001-02-16 Werner LEMBERG <wl@gnu.org>
8863 * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
8864 method. Return `HYPHEN_MIDDLE' if it was `\:'.
8865 * src/roff/troff/node.h: Updated.
8867 2001-02-17 Ruslan Ermilov <ru@FreeBSD.org>
8869 * tmac/groff_tmac.man: Fix typo.
8871 2001-02-16 Werner LEMBERG <wl@gnu.org>
8873 Fixing a bug which prevented proper end-of-sentence recognition
8874 between an `unformatted' box and the following text. As a
8875 consequence, vertical line distances are no longer preserved in
8876 boxes after a call to `.unformat' -- because boxes aren't
8877 line-oriented (contrary to diversions), this doesn't make sense
8880 * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
8882 (vertical_size_node::set_unformat_flag): New method.
8883 * src/roff/troff/node.hh: Updated.
8884 * src/roff/troff/input.cc (word_space_node::reread,
8885 hmotion_node::reread): Reset `unformat' flag after usage.
8886 (unformat_macro): Append only if `set_unformat_flag()' returns
8888 * src/roff/troff/troff.man: Updated.
8890 2001-02-15 Werner LEMBERG <wl@gnu.org>
8892 * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
8893 documentation of `asciify' and `unformat' requests.
8895 2001-02-13 Werner LEMBERG <wl@gnu.org>
8897 Redesigned the `unformat' request. It is no longer connected with
8898 `asciify' but rather uses new `reread()' methods if the `unformat'
8899 flag is set. Additionally, the handling of space characters after
8900 unformatting has been fixed so that they retain their width.
8902 * src/roff/troff/node.h (width_list): New structure to store
8903 original widths of spaces.
8904 (node): Added `unformat' member.
8905 Replaced `num_spaces' variable with `orig_width' list.
8906 * src/roff/troff/node.cc (*node::asciify,
8907 asciify_reverse_node_list): Removed `unformat_only' flag and related
8909 (word_space_node::asciify, word_space_node::word_space_node): Use
8911 (word_space_node::~word_space_node): New destructor.
8912 (word_space_node::copy): Updated to handle `orig_width'.
8913 (hmotion_node::copy, unbreakable_space_node::copy): Updated.
8914 (*node::merge_space): Update `orig_width' list if necessary.
8915 (*node::set_unformat_flag): New methods to set the `unformat' flag.
8916 * src/roff/troff/enc.cc (environment::space_newline): Use
8918 (environment::space): Added method to handle space width and
8919 sentence space width as parameters. Use `width_list'.
8920 (environment::make_tab_node): Updated.
8921 * src/roff/troff/env.h: Updated.
8922 * src/roff/troff/input.cc (word_space_node::reread,
8923 unbreakable_space_node::reread, hmotion_node::reread): New methods
8924 to handle nodes specially if `unformat' flag is set.
8925 (do_asciify_macro): Renamed back to ...
8926 (asciify_macro): This.
8927 (unformat_macro): New implementation to simply set the `unformat'
8930 * MORE.STUFF: Added more info about deroff.
8932 2001-02-08 Werner LEMBERG <wl@gnu.org>
8934 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
8935 space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
8936 and `add_self()' methods to avoid hyphenation. For example, the
8937 hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
8938 soft hyphen after `foo'. Now the hyphen list is correctly
8939 `foo<ignore><ignore>bar'.
8941 2001-02-05 Yoshiteru Kageyama <yt-kage@cb3.so-net.ne.jp>
8943 * tmac/groff_tmac.man: Fix `BIR' macro.
8945 2001-02-04 Werner LEMBERG <wl@gnu.org>
8947 A new escape sequence `\:', inserting a zero-width break point.
8949 * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
8950 * src/roff/troff/input.cc (get_copy, token::next, asciify):
8952 * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
8954 (space_node): Add `was_escape_colon' member. Add `is_escape_colon()'
8955 and `asciify()' methods.
8956 * src/roff/troff/node.cc (space_node::space_node): Updated.
8957 (space_node::asciify): Handle `was_escape_colon'.
8958 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8960 Handle `\~' similar to other comparable requests.
8962 * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
8964 (token::next): Move creation of an unbreakable_space_node to...
8965 (token::add_to_node_list): Here.
8967 Fix a bug which sometimes prevented hyphenation of words connected
8968 with `\~' or `\ ' (and other escape sequences handled as
8969 TOKEN_NODE). This also fixes a hyphenation problem with boxes
8970 (after a call to the `unformat' request).
8972 * src/roff/troff/env.h (environment::possibly_break_line,
8973 environment::hyphenate_line): Introducing `start_here' parameter.
8974 * src/roff/troff/env.cc (environment::space_newline,
8975 environment::space): Use it.
8976 (environment::possibly_break_line, environment::hyphenate_line):
8978 * src/roff/troff/input.cc (process_input_stack): Use it.
8979 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
8980 space_char_hmotion_node, overstrike_node): Add
8981 `get_hyphenation_type()' method.
8982 * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
8983 if `unformat_only' is active.
8985 2001-01-30 Werner LEMBERG <wl@gnu.org>
8987 Implemented new read-only number register `.linetabs' which
8988 returns 1 if in line-tabs mode, 0 otherwise.
8990 * src/roff/troff/env.h (environment): Add get_line_tabs() member.
8991 * src/roff/troff/env.cc (get_line_tabs): New function.
8992 (init_env_requests): Use it.
8993 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8995 * VERSION, REVISION: Changing to 1.17.0.
8997 2001-01-28 Werner LEMBERG <wl@gnu.org>
8999 Fixed a bug which prevented hyphenation of words which are finished
9002 * src/roff/troff/token.h (token): Add enum type
9003 `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
9004 * src/roff/troff/input.cc (token::next, token::description,
9005 get_line_arg, token::add_to_node_list, token::process): Use it.
9007 2001-01-27 Werner LEMBERG <wl@gnu.org>
9009 * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
9010 * src/roff/troff/div.cc (do_divert): Use it.
9012 * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
9014 2001-01-25 Werner LEMBERG <wl@gnu.org>
9016 Adding the `linetabs' request. If set, tab distances are not
9017 computed relative to the input line but relative to the output line.
9019 * src/roff/troff/env.h (environment): New member `line_tabs'.
9020 * src/roff/troff/env.cc (line_tabs_request): Implement request.
9021 (environment::environment, environment::copy): Updated.
9022 (environment::distance_to_next_tab): Use `line_tabs'.
9023 (init_env_requests): Register request.
9024 * src/roff/troff/troff.man, man/groff.man, NEWS: Document it. Other
9027 2001-01-24 Werner LEMBERG <wl@gnu.org>
9029 Introducing a new read-only register `.int' which is set to a
9030 positive value if the last output line is interrupted (i.e., if it
9033 * src/roff/troff/env.cc (init_env_requests): Add it.
9034 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9036 2001-01-23 Gaius Mulley <gaius@glam.ac.uk>
9038 * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
9039 * src/preproc/html/pre-html.cc (findPrefix): New function which
9040 generates the troff executable name via the system prefix.
9041 * src/preproc/eqn/main.cc: Modified warning message.
9043 2001-01-23 Werner LEMBERG <wl@gnu.org>
9045 troff's `box' and `boxa' requests didn't preserve temporary
9048 * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
9049 `saved_target_text_length' members.
9050 * src/roff/troff/div.cc (do_divert): Use them.
9052 Tabs (but not yet leaders and fields) are now handled correctly by
9055 * node.h (hmotion_node): Add field `was_tab'.
9056 * env.cc (environment::make_tab_node): Set it.
9057 * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
9059 Added new request `unformat' which will, contrary to `asciify',
9060 preserve font information after unformatting (i.e., only nodes
9061 dealing with horizontal space are converted back to input
9064 * input.cc (asciify_macro): Renamed to ...
9065 (do_asciify_macro): this, having a new parameter `unformat_only'.
9066 (asciify_macro, unformat_macro): New; using do_asciify_macro.
9067 (init_input_requests): Added `unformat'.
9068 * node.cc (*_node::asciify), asciify_reverse_node_list: Added
9069 parameter to control asciification process.
9070 * node.h (*_node::asciify): Ditto.
9071 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9073 2001-01-20 Werner LEMBERG <wl@gnu.org>
9075 * doc/groff.texinfo: Minor improvement of `.in' documentation.
9077 2001-01-18 Werner LEMBERG <wl@gnu.org>
9079 * tmac/ps.tmac: Remove call of psold.tmac.
9080 * tmac/psold.tmac: Comment updated.
9081 * tmac/psnew.tmac: Removed since no longer needed.
9082 * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
9084 * font/devutf8/R.proto: Adding `shc' glyph.
9085 * font/devutf8/NOTES: Updated.
9087 * test-groff: Updated.
9089 2001-01-15 Gaius Mulley <gaius@glam.ac.uk>
9091 First cut of the new html device driver. Changes to pre-html and
9092 the new grohtml are too numerous to be documented here.
9094 Stuff related to `html' has been renamed to `html-old' and `html2'
9095 stuff has been renamed to `html' (including directories). The new
9096 html device driver is therefore invoked as `-Thtml'.
9098 Added new `\O' escape to suppress output (needed by html driver).
9100 Added functions and code to pass info about input-level commands
9101 (`.in', `.fl', etc.) to html driver.
9103 Three new functions (.html-begin, .html-end, and .html-image) for
9104 better html handling: `html-begin' will execute the remaining line
9105 if at the outermost nesting level, increasing an internal counter.
9106 `html-end' does the same but decreases the internal counter.
9107 `html_image' puts its arguments into a special node (suppress_node)
9108 to define an image region.
9110 The `output' request has been removed.
9112 * tmac/html-tags.tmac: Removed.
9113 * tmac/arkup.tmac: Updated and renamed to ...
9114 * tmac/www.tmac: New file.
9115 * tmac/markup.tmac Updated and renamed to ...
9116 * tmac/mwww.tmac: New file.
9117 * tmac/Makefile.sub: Updated.
9118 * tmac/an-old.tmac: Updated.
9119 * tmac/eqnrc: Updated.
9120 * tmac/groff_man.man
9121 * tmac/groff_markup.man: Updated and renamed to ...
9122 * tmac/groff_mwww.man: New file.
9123 * tmac/groff_tmac.man: Updated.
9124 * tmac/html-old.tmac: Updated and Renamed from html.tmac.
9125 * tmac/html.tmac: Updated and renamed from html2.tmac.
9126 * tmac/pspic.tmac: Updated html support.
9127 * tmac/s.tmac: Added html output support.
9128 * tmac/troffrc, tmac/troffrc-end: Updated.
9130 * Makefile.in, doc/Makefile: Updated.
9131 * doc/groff.texinfo: Added info about new `\O' escape.
9132 * doc/homepage.ms: Use `MAILTO' macro.
9134 * font/devhtml/DESC.proto: Add `C' font.
9135 * font/devhtml/Makefile.sub: Updated.
9136 * font/devhtml/R.proto: Minor fixes.
9137 * font/devhtml-old/Makefile.sub: Updated.
9139 * src/devices/grohtml-old/Makefile.sub: Updated.
9141 * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
9143 * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
9144 graphic_start): Add `inline' parameter. Update.
9145 (html_end_suppress, graphic_end): Update.
9147 * src/include/html-strings.h: New file.
9148 * src/include/htmlindicate.h: Comments updated.
9149 * src/include/printer.h: Updated.
9151 * src/preproc/eqn/main.cc (do_file, main): Updated.
9152 * src/preproc/pic/troff.cc (troff_output::start_picture,
9153 troff_output::finish_picture): Updated.
9154 * src/preproc/tbl/main.cc (process_input_file): Updated.
9156 * src/roff/groff/groff.cc (main): Updated.
9157 Pass device arguments to predrivers also.
9158 Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
9159 * src/roff/troff/env.h (environment): Updated.
9160 New elements `need_eol' and `ignore_next_eol' (for html output).
9161 * src/roff/troff/env.cc (environment::environment): Add initializers
9162 for `need_eol' and `ignore_next_eol'.
9163 (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
9165 (point_size, fill, no_fill, center, right_justify, line_length,
9166 indent, temporary_indent, break_request, handle_tab): Use
9168 (set_tabs): Use `add_html_tag_tabs()'.
9169 (environment::add_html_tag): Updated.
9170 (environment::do_break): Updated.
9171 * src/roff/troff/div.cc (space_request, flush_output): Use
9172 `environment::add_html_tag()'.
9173 * src/roff/troff/input.cc: Updated.
9174 New variable `html_level' to indicate nested `html-begin' requests.
9175 (file_iterator::fill): Use `environment::add_html_tag_eol()'.
9176 (non_interpreted_char_node, token_node, non_interpreted_node): Add
9177 `force_tprint()' method.
9178 (token::next): Handle `\O'.
9179 (do_suppress): Implement it.
9180 (html_begin, html_end, html_image): New functions.
9181 (init_output_requests): Renamed to ...
9182 (init_html_requests): this.
9184 (macro::append_str, macro::append_unsigned, macro::append_int): New
9186 New variable `output_low_mark_miny' to limit minimal value of y.
9187 (reset_output_registers): Use it.
9188 (output_request): Removed.
9189 (get_output_registers): New function.
9190 * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
9191 (*_node): Added `force_tprint()' if necessary.
9192 (special_node): New elements `tf' and `get_tfont()'.
9193 (suppress_node): New class.
9194 * src/roff/troff/node.cc:
9195 New global variables `image_no' and `suppress_start_page'.
9196 (real_output_file): New method `is_on()'.
9197 (troff_output_file): New method `start_special(tfont)'.
9198 (troff_output_file::really_print_line): Use `tprint' conditionally.
9199 (real_output_file::print_line): Updated.
9200 (real_output_file::on): Updated.
9201 (*_node): Added `force_tprint()'.
9202 (special_node::special_node): Initializer updated.
9203 (special_node::same, special_node::copy, special_node::tprint_start):
9205 (get_reg_int, get_reg_str): New functions.
9206 (suppress_node::*): New methods.
9207 New global variables last_position, last_image_filename;
9208 (min): New inline function.
9209 * src/roff/troff/reg.h, src/roff/troff/request.h,
9210 src/roff/troff/troff.h: Updated.
9212 2001-01-13 Werner LEMBERG <wl@gnu.org>
9214 * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
9215 documentation of `asciify' request.
9217 2001-01-12 Werner LEMBERG <wl@gnu.org>
9219 * src/roff/troff/input.cc: Move definition of special characters
9220 like `ESCAPE_TILDE' to ...
9221 * src/roff/troff/input.h: New file.
9222 * src/roff/troff/Makefile.sub (HDRS): Add it.
9224 Extending the .asciify request to `unformat' space characters also.
9226 * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
9227 to count input space characters.
9228 Update constructors to take care of it.
9229 * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
9230 `ESCAPE_SPACE' instead of normal space.
9231 (word_space_node::asciify): New method.
9232 (unbreakable_space_node::asciify): New method.
9233 (word_space_node::merge_space): New method.
9234 * src/roff/troff/env.cc (environment::space_newline,
9235 environment::space): Add code to initialize `num_spaces' (using the
9236 constructor of `word_space_node').
9237 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
9240 2001-01-09 Werner LEMBERG <wl@gnu.org>
9242 * man/groff_char.man: Use table header traps only conditionally.
9244 2001-01-09 Bjarni Ingi Gíslason <bjarniig@hi.is>
9246 * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
9248 2001-01-08 Werner LEMBERG <wl@gnu.org>
9250 Introducing the `box' and `boxa' requests which are similar to
9251 `di' resp. `da' but omitting a partially filled line (which is
9252 restored after ending the diversion).
9254 * src/roff/troff/div.h (diversion): Add elements to save partially
9256 * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
9257 partially filled line.
9258 (divert, divert_append): Updated.
9259 (box, box_append): New functions.
9260 (init_div_requests): Use them.
9261 * src/roff/troff/env.h (environment): do_divert() is now a friend.
9262 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9264 * doc/groff.texinfo: Fix documentation of `lf' request.
9266 2000-12-25 Werner LEMBERG <wl@gnu.org>
9268 * src/roff/troff/troff.man, NEWS: Document `writem' request.
9270 2000-12-21 Werner LEMBERG <wl@gnu.org>
9272 Ignore `ss' request if in compatibility mode.
9274 * src/roff/troff/input.cc: Make `compatible_flag' non-static.
9275 * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
9276 * src/roff/troff/env.cc (space_size): Use it.
9278 * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
9279 `ss' request in nroff mode.
9281 * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
9284 2000-12-15 Ruslan Ermilov <ru@FreeBSD.org>
9286 * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
9288 2000-12-13 Werner LEMBERG <wl@gnu.org>
9290 * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
9291 * src/preproc/eqn/neqn.man: Small fixes and additions.
9293 2000-12-13 Ruslan Ermilov <ru@FreeBSD.org>
9295 * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
9298 * src/preproc/eqn/neqn.man: New file.
9300 * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
9303 * tmac/e.tmac: Add `T&' macro.
9304 Fix `indent cannot be negative' warning.
9305 * tmac/s.tmac: Fix `indent cannot be negative' warning.
9307 2000-12-07 Werner LEMBERG <wl@gnu.org>
9309 * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
9311 2000-12-06 Werner LEMBERG <wl@gnu.org>
9313 * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
9316 * MORE.STUFF: Added info about deroff for djgpp.
9318 * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
9319 documentation of -rcR switch.
9321 2000-12-03 Werner LEMBERG <wl@gnu.org>
9323 * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
9324 if -rcR=1 (which is now the default in nroff mode), a single, very
9325 long page is created instead of multiple pages: All `ne' and `wh'
9326 requests are put into conditionals; a new macro `an-end' is added to
9327 be called with `em'.
9329 Some other minor cleanups.
9331 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
9333 2000-12-02 Werner LEMBERG <wl@gnu.org>
9335 Fixing a bug which prevented hyphenation in words followed
9336 immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
9338 * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
9339 Adding possibly_break_line().
9340 * src/roff/troff/env.h (environment): Make possibly_break_line()
9343 Make `\~' usable in .tr request.
9345 * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
9346 (token): Add stretchable_space().
9347 * src/roff/troff/input.cc (token::next, token::delimiter,
9348 token::description, process_input_stack, do_translate,
9349 add_to_node_list, token::process): Use it.
9350 * src/roff/troff/node.h (node): Add fourth parameter to add_char()
9351 for adjusting the space.
9352 * src/roff/troff/node.cc (node::add_char): Implement it. Add code
9353 for stretchable space.
9354 * src/roff/troff/input.cc (token::add_to_node_list): Use it.
9355 (make_node): Add code for stretchable space.
9356 * src/roff/troff/env.cc (environment::add_char): Use it.
9357 * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
9358 (get_copy, token::next, transparent_translate, asciify): Use it.
9360 * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
9361 doc/groff.texinfo: Updated.
9362 * man/groff.man: Small reorderings.
9364 2000-11-23 Werner LEMBERG <wl@gnu.org>
9367 * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
9369 * src/roff/troff/input.cc (main): Add `config_macro_path' and
9370 `safer_macro_path' to -M option.
9371 * src/roff/troff/troff.man: Fixes.
9373 2000-11-22 Werner LEMBERG <wl@gnu.org>
9375 Use safer path (except for config files) if -U isn't specified. Add
9376 a special macro path (without home and current directory) for config
9377 files. Add home directory to unsafe path for consistency. Don't
9378 include the home directory in the font path.
9380 * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
9382 * src/include/macropath.h: Add `config_macrp_path'.
9383 * src/libs/libgroff/fontfile.cc: Fix font path.
9384 * src/roff/troff/input.cc (process_startup_file): Use
9385 `config_macro_path'.
9386 (main): Select unsafe path if -U is given.
9388 * src/preproc/eqn/main.cc (main): Fixing search path for
9390 * src/preproc/eqn/eqn.man: Updated.
9392 * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
9395 * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
9396 src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
9397 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
9398 src/devices/grotty/grotty.man: Updated.
9400 * Makefile.in: Fix comments.
9402 2000-11-17 Werner LEMBERG <wl@gnu.org>
9404 * tmac/safer.tmac: Empty file added (again) for compatibility
9406 * tmac/Makefile.sub: Updated.
9408 2000-11-16 Werner LEMBERG <wl@gnu.org>
9410 * src/devices/grodvi/dvi.cc (main),
9411 src/devices/grohtml2/post-html.cc (main),
9412 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
9413 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
9414 (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
9415 (main), src/preproc/html2/pre-html.cc (main),
9416 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
9417 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
9418 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
9419 (main), src/utils/hpftodit/hpftodit.cc (main),
9420 src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
9421 (main), src/utils/lookbib/lookbib.cc (main),
9422 src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
9423 (main): Use stdout for -v.
9424 * src/roff/groff/groff.cc (run_commands),
9425 src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
9426 to make direct printing to stdout possible.
9427 * src/roff/groff/pipeline.h: Updated.
9429 * src/utils/afmtodit/afmtodit.pl: Add -v switch.
9430 * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
9431 * src/utils/afmtodit/afmtodit.man: Updated.
9433 * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
9434 (version): New function.
9436 * src/utils/addftinfo/addftinfo.man: Updated.
9438 * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
9439 Fixing copyright dates.
9441 * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
9444 * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
9447 * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
9449 2000-11-15 Werner LEMBERG <wl@gnu.org>
9451 In all programs, make -v return immediately with exit status 0 to
9452 be compliant with the GNU standard.
9454 * src/devices/grodvi/dvi.cc (main),
9455 src/devices/grohtml2/post-html.cc (main),
9456 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
9457 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
9458 (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
9459 (main), src/preproc/html2/pre-html.cc (main),
9460 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
9461 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
9462 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
9463 (main): Implement it.
9466 * src/roff/groff/groff.cc (main): Add copyright notice. Add refer
9467 and postprocessors to the -v option.
9469 * src/roff/grog/grog.pl: Implement -v.
9470 * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
9471 * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
9473 * src/roff/nroff/nroff.sh: Implement -v.
9474 * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
9475 * src/roff/nroff/nroff.man: Updated.
9477 * src/preproc/eqn/main.cc (main): Fix comment typo.
9479 * MORE.STUFF: Added info about djgpp port of grap.
9481 2000-11-14 Werner LEMBERG <wl@gnu.org>
9483 * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
9484 mode (or rather, implemented non-compatibility mode).
9485 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
9487 * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
9488 replacing it -- we don't find gxditview otherwise.
9489 * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
9491 * src/preproc/pic/depend: Removed. Unnecessary.
9493 Implemented dummy keyword `solid' in pic for compatibility with
9496 * lex.cc (lookup_keyword): Added `solid'.
9497 * pic.y: Added SOLID with dummy rule.
9498 * pic.cc, pic_tab.h: Regenerated.
9499 * doc/pic.ms: Updated.
9501 2000-11-13 Werner LEMBERG <wl@gnu.org>
9503 For security reasons, don't use the current directory but the home
9504 directory while searching and scanning troffrc and troffrc-end.
9505 Similarly, replace the current directory with the home directory
9508 * Makefile.in (fontpath, tmacpath): Remove current directory.
9510 * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
9511 two parameters `add_home' and `add_current'.
9512 (search_path::~search_path, search_path::command_line_dir,
9513 search_path::open_file): Remove tests for `dirs' being zero.
9514 * src/include/searchpath.h: Adjust.
9515 * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
9517 * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
9519 * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
9520 * src/roff/troff/input.cc: Use `mac_path', initialized with
9522 (process_startup_file): Set `mac_path' to `safer_macro_path'.
9523 * src/roff/troff/env.cc: Use `mac_path'.
9525 * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
9527 * NEWS, man/roff.man, src/roff/troff/troff.man,
9528 src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
9531 2000-11-12 Werner LEMBERG <wl@gnu.org>
9533 * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
9535 * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
9536 * configure.in: Fix typo in comment.
9537 * configure: Regenerated.
9539 * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
9542 2000-11-08 Werner LEMBERG <wl@gnu.org>
9544 Add system tmac directory (/usr/local/lib/groff/site-tmac).
9546 * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
9547 (uninstall_dirs): Add $(libdir), $(libprogramdir), and
9550 * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
9551 * tmac/Makefile.sub (install_data): Create
9552 $(systemtmacdir) and $(localtmacdir).
9553 (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
9554 * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
9555 NEWS, doc/groff.texinfo: Updated and minor fixes.
9557 * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
9558 * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
9559 $(systemtmacdir) since the wrapper files are platform-dependent.
9561 2000-11-01 Werner LEMBERG <wl@gnu.org>
9563 * doc/groff.texinfo: Fix typo.
9565 2000-10-26 Werner LEMBERG <wl@gnu.org>
9567 Convert macros `tmac.XXX' to `XXX.tmac'. Special cases:
9568 tmac.doc.old -> doc-old.tmac
9569 tmac.an.old -> an-old.tmac
9571 * tmac/tmac.*: Moved to ...
9572 * tmac/*.tmac: this.
9573 * tmac/man.local: Fix comment.
9574 * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
9575 tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated.
9576 Added some `FILES' sections. More use of @...@ directives. Other
9578 * arch/djgpp/README, font/devutf8/NOTES: Updated.
9579 * doc/homepage.ms, doc/groff.texinfo: Updated.
9580 * man/groff.man, man/roff.man: Updated.
9581 * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
9582 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
9583 src/devices/grotty/grotty.man: Updated.
9584 * src/preproc/pic/pic.man: Updated.
9585 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
9586 instead of -mdoc.old.
9587 * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
9588 * src/roff/nroff/nroff.man: Updated.
9591 * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
9593 * tmac/mm.diff: Removed -- it has no use now since the mm package
9596 * tmac/*: Removed trailing spaces.
9598 * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
9599 the tmac subdirectory also).
9601 * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
9602 * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
9603 stuff since it is no longer needed.
9605 * README, PROBLEMS: Updated.
9607 2000-10-25 Werner LEMBERG <wl@gnu.org>
9609 Invert current behaviour: Search first FOOBAR.tmac, then
9612 * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
9613 (open_mac_file, macro_source): Implement it.
9614 * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
9615 doc/groff.texinfo, NEWS: Document it.
9617 * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
9618 Small documentation improvements.
9620 * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
9623 * font/devps/Makefile.sub: Fix rules for dingbats.*map.
9625 2000-10-24 Werner LEMBERG <wl@gnu.org>
9627 Add local tmac directory (groff/site-tmac).
9629 * Makefile.in: Add $(localtmacdir).
9630 (uninstall_dirs): Add $(localtmacdir).
9631 * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
9632 * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
9633 in $(localtmacdir). Create $(localtmacdir).
9634 * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
9635 Updated and minor fixes.
9637 Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
9639 * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
9641 2000-10-23 Werner LEMBERG <wl@gnu.org>
9643 Move hyphen.us to tmac directory.
9645 * src/roff/troff/hyphen.us: Removed.
9646 * src/tmac/hyphen.us: Added.
9647 * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
9649 Change installation structure for data files from .../groff/... to
9650 .../groff/<version><revision>/... to be conform with other GNU
9653 * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
9654 doc/Makefile: Implement it.
9655 * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
9656 * configure: Updated.
9657 * arch/djgpp/README, font/devutf8/NOTES: Use it.
9658 * NEWS: Document it.
9659 * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
9660 @MACRODIR@ instead of hard-coded directories.
9662 2000-10-22 Werner LEMBERG <wl@gnu.org>
9664 Implement $GROFF_BIN_PATH environment variable (which defaults to
9665 $bindir) used for child programs of groff and similar wrappers.
9667 * gendefs.sh: Improve documentation.
9668 * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
9669 src/preproc/eqn/Makefile.sub (neqn),
9670 src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
9671 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
9673 * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
9674 $GROFF_PATH__ (the latter for communication with troff).
9675 * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
9677 * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
9678 doc/groff.texinfo: Document it.
9680 * doc/groff.texinfo: Improve documentation of troff's -a option.
9682 2000-10-17 Gaius Mulley <gaius@glam.ac.uk>
9684 * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
9685 non-intrusive eol marker.
9686 (troff_output_file::determine_line_limits): New function.
9687 (troff_output_file::draw): Use it.
9688 * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
9689 output_pending_lines() instead of output_line().
9690 * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
9691 * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
9692 createImage): Small fixes.
9694 2000-10-14 Werner LEMBERG <wl@gnu.org>
9696 Replace tmac.safer with a real secure solution.
9698 * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
9699 system_request, pipe_output): Disable requests if in safer mode.
9700 * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
9701 * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
9702 * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
9703 doc/groff.texinfo, src/roff/groff/groff.man,
9704 src/roff/troff/troff.man, arch/djgpp/README: Updated.
9706 * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
9707 (resource_manager::output_prolog): Replace setenv() with putenv().
9709 2000-10-09 Werner LEMBERG <wl@gnu.org>
9711 * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
9712 src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
9713 src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
9714 src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
9715 compilation errors with some compilers. It seems that this code
9716 is no longer necessary -- if yes, it is easy to add some #ifdef's
9717 for that particular old-fashioned compiler.
9719 * MORE.STUFF: Added info about Meta-tbl.
9721 * doc/groff.texinfo: Added more info about `.if "..."..."'.
9723 2000-10-07 Werner LEMBERG <wl@gnu.org>
9725 Adding a new escape sequence \B'...': If the string between
9726 the delimiters is a valid numeric expression, return the character
9727 `1', and `0' otherwise. This is an analogon to \A.
9729 * src/roff/troff/input.cc (do_expr_test): Implement it.
9730 (token::next): Use it.
9731 * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
9733 * tmac/tmac.trace: Made independent from escape character.
9735 2000-10-06 Werner LEMBERG <wl@gnu.org>
9737 Adding a new request .dei: define indirect. The first and second
9738 parameter of .dei are taken from string registers instead directly;
9739 this very special request is needed to make tmac.trace independent
9740 from the escape character (which might even be disabled).
9742 * src/roff/troff/input.cc (do_define_macro): Implement it.
9743 (define_macro_indirect): New function.
9744 (init_input_requests): Use it.
9746 Adding two requests .ecs and .ecr: Save and restore the escape
9747 character. These two requests are needed to make tmac.trace
9748 independent from the escape character (which might even be
9751 * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
9753 (init_input_requests): Use it.
9755 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
9757 2000-09-22 Ricardo Soares Guimarães <ricardo@conectiva.com.br>
9759 Adding a new option -P and new environment variable GROPS_PROLOGUE
9760 to grops, selecting a different prologue file (minor modifications
9763 * src/devices/grops/psrm.cc (resource_manager::output_prolog),
9764 src/devices/grops/ps.cc (main): Implement it.
9765 * src/devices/grops/grops.man, NEWS: Document it.
9767 2000-09-22 Werner LEMBERG <wl@gnu.org>
9769 * INSTALL: Add info about selecting paper format.
9771 2000-09-21 Werner LEMBERG <wl@gnu.org>
9773 * src/roff/troff/input.cc (main): Fixing compiler warning.
9774 * src/include/{driver.h, lib.h}: Move inclusion of string.h and
9775 strings.h from the former to the latter.
9776 * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
9777 stuff from the former to the latter.
9779 2000-09-11 Werner LEMBERG <wl@gnu.org>
9781 Implementing two new requests .tm1 and .tmc: The former is similar
9782 to .tm but can output leading spaces; its syntax is similar to
9783 defining a string, i.e., a `"' can be used to mark the beginning of
9784 the string to be written to stderr: `.tm1 " test'. The latter is
9785 similar to .tm1 but doesn't write out a final newline character.
9787 * src/roff/troff/input.cc (terminal1, terminal_continue,
9788 do_terminal): New functions.
9789 (init_input_requests): Use them.
9790 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
9792 2000-09-09 Werner LEMBERG <wl@gnu.org>
9794 * tmac/groff_mdoc.samples.man: Small fixes.
9796 2000-09-08 Werner LEMBERG <wl@gnu.org>
9798 * tmac/groff_mdoc.man: Fixing typo.
9800 2000-09-02 Werner LEMBERG <wl@gnu.org>
9802 Implementing a .nop request which does nothing.
9804 * src/roff/troff/input.cc (nop_request): New function.
9805 (init_input_requests): Use it.
9806 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
9808 2000-09-01 Werner LEMBERG <wl@gnu.org>
9810 * doc/groff.texinfo: Added some comments.
9812 2000-08-30 Werner LEMBERG <wl@gnu.org>
9814 * src/roff/troff/TODO: Updated.
9816 2000-08-25 Werner LEMBERG <wl@gnu.org>
9818 * doc/groff.texinfo: Fix comment how to compile the DVI file.
9820 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
9822 * font/devps/generate/Makefile (SHELL): Define explicitly to
9823 "/bin/sh", for non-Unix platforms.
9824 (extraclean): Use a more portable "" quoting instead of a
9825 backslash (which doesn't work on DOS/Windows).
9827 * font/devlj4/generate/Makefile (extraclean): Ditto.
9829 * font/devdvi/generate/Makefile (extraclean): Ditto.
9831 2000-08-25 Werner LEMBERG <wl@gnu.org>
9833 * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
9834 src/roff/troff/troff.man: Document Eli's latest changes.
9836 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
9838 * src/roff/troff/input.cc (open_mac_file, macro_source): Support
9839 macro file names of the form NAME.tmac as well as tmac.NAME.
9841 2000-08-25 Werner LEMBERG <wl@gnu.org>
9843 * src/include/posix.h: Remove definition of FILENAME_MAX.
9845 * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
9846 `sys_fatal' and `stop' function().
9848 * test-groff: Updated.
9850 2000-08-24 Gaius Mulley <gaius@glam.ac.uk>
9852 Added the new troff command .output <arg> to suppress output (while
9853 still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
9854 registers (for passing the output dimensions to the output device).
9856 * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
9858 * src/roff/troff/node.h, src/roff/troff/node.cc
9859 (troff_output_file::really_print_line,
9860 ascii_output_file::really_print_line,
9861 supress_output_file::really_print_line): Use `width' parameter.
9862 (troff_output_file::really_on, troff_output_file::really_off,
9863 output_file::on, output_file::off, real_output_file::on,
9864 real_output_file::off, real_output_file::really_on,
9865 real_output_file::really_off): New functions.
9866 (real_output_file:public output_file): New variable `output_on'.
9867 (real_output_file::begin_page, real_output_file::copy_file,
9868 real_output_file::transparent_char, real_output_file::print_line):
9870 (real_output_file::print_line): Use check_output_limits.
9871 * src/roff/troff/reg.h, src/roff/troff/request.h,
9872 src/roff/troff/input.cc (assign_registers): New function to remove
9874 (do_ps_file): Use it.
9875 (check_output_limits, reset_output_registers, output_request,
9876 init_output_requests): New functions.
9877 (init_input_requests): Updated.
9879 Added new grohtml2 device and html2 preprocessor (coding
9880 not yet finished) which will eventually replace grohtml.
9882 * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
9884 * src/include/htmlindicate.h, src/include/htmlindicate
9885 (html_begin_suppress, html_end_suppress): New functions.
9886 * src/preproc/tbl/main.cc: Use it.
9887 * src/roff/groff/groff.cc: Add support for html2 device (which will
9888 automatically invoke the html2 preprocessor).
9889 * src/roff/troff/input.cc (is_html2): New variable.
9890 * src/roff/troff/troff.h, src/roff/troff/env.h,
9891 src/roff/troff/env.cc (environment::add_html_tag): New function
9893 (environment::do_break): Use it.
9894 * font/devhtml2/*: New files.
9895 * src/devices/grohtml2: New device.
9896 * src/preproc/html2: New preprocessor.
9897 * tmac/tmac.html-tags, tmac/tmac.html2: New files.
9899 2000-08-23 Werner LEMBERG <wl@gnu.org>
9901 * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
9903 2000-08-22 Werner LEMBERG <wl@gnu.org>
9905 * src/include/lib.h: Provide a fix for IRIX to not include
9908 2000-08-18 Werner LEMBERG <wl@gnu.org>
9910 * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
9911 since some non-GNU sed programs can't handle null regexps.
9912 * configure, src/preproc/eqn/Makefile.sub,
9913 src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
9915 * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
9916 bug (string.h and strings.h are both needed according to latest
9919 * MORE.STUFF: Added info about unroff and troffcvt.
9921 2000-08-08 Werner LEMBERG <wl@gnu.org>
9923 * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
9926 * tmac/tmac.man.old: Remove unused number register.
9928 * tmac.doc: Minor documentation fix.
9930 2000-08-07 Paul Eggert <eggert@twinsun.com>
9932 * src/roff/groff/pipeline.c (is_system_shell):
9933 Fix typo: "monocased_shell" no longer exists.
9935 2000-08-07 Paul Eggert <eggert@twinsun.com>
9937 Remove FILENAME_MAX limits.
9939 * src/roff/groff/pipeline.c (is_system_shell): Do not assume
9940 that the argument length is less than FILENAME_MAX.
9941 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
9942 Use struct hack to allocate and free file name.
9943 (struct xtmpfile_list): fname is now part of the structure,
9944 not a pointer to another string.
9946 2000-08-07 Tom Schmidt <tschmidt@micron.com>
9948 * src/include/posix.h: Add a default value for FILENAME_MAX.
9950 2000-08-06 Paul Eggert <eggert@twinsun.com>
9952 Add support for new BSD-style man pages (with ".Dd" instead of
9953 ".TH"), so that "groff -man" understands both styles, even
9954 when running "groff -man" on a host whose system man page
9955 macros don't support ".Dd".
9957 * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
9958 (stamp-wrap): Source tmac.andoc first when wrapping man macros,
9959 in case the system man macros don't define Dd or TH.
9961 * tmac/tmac.an.old: Renamed from tmac/tmac.an.
9962 * tmac/tmac.an: New one-line file.
9963 * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
9965 2000-08-06 Werner LEMBERG <wl@gnu.org>
9967 * src/roff/troff/troff.man: Fixing typos.
9969 Version 1.16.1 released
9970 =======================
9972 2000-07-31 Werner LEMBERG <wl@gnu.org>
9974 Preparing release 1.16.1.
9976 * REVISION: Revision number set to 1.
9977 * MORE.STUFF: Added info about port to DOS.
9978 * NEWS, win32-diffs: Updated.
9980 * src/include/nonposix.h: Remove first line -- this file is used
9983 * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
9986 2000-07-30 Werner LEMBERG <wl@gnu.org>
9988 * doc/texinfo.tex: Update to latest version.
9990 2000-06-28 Paul Eggert <eggert@twinsun.com>
9992 * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
9993 commands that fail. Don't assume that "export a=b" is valid shell
9994 syntax. This is needed for Solaris 2.5.1.
9996 * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
9997 comment about missing Solaris headers.
9999 * PROBLEMS: Add section about problems with Sun Make and VPATH.
10001 2000-06-25 Werner LEMBERG <wl@gnu.org>
10003 * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
10006 * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
10008 * win32-diffs: Updated.
10009 * README.WIN32: Added CRs to make all Windows editors happy.
10011 * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
10012 src/roff/groff/pipeline.c).
10014 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
10016 * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
10017 $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
10019 2000-06-17 Eli Zaretskii <eliz@is.elta.co.il>
10021 * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
10022 (tfm::load, gf::load): Open tfm and gf files in binary mode: these
10024 (main): Support non-Posix systems with several different styles of
10025 slash characters in file names.
10027 * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
10028 (main) [SET_BINARY]: Switch stdin into binary mode.
10030 * src/utils/indxbib/indxbib.cc: #include nonposix.h.
10031 (main): Support file names with several possible slash-type
10032 characters, as given by DIR_SEPS[] in nonposix.h.
10033 (main) [__MSDOS__]: If renaming the temporary index file fails
10034 because it has more than one dot in its trunk, replace the dot
10035 with an underscore and try again.
10036 (do_file): Use FOPEN_RB instead of "r". Skip every CR before a
10038 [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
10040 * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
10041 (File::File): Open the input file in binary mode. Strip CR
10042 characters from each CR-LF pair.
10043 (xbasename): Support file names with several possible slash-type
10044 characters, as given by DIR_SEPS[] in nonposix.h.
10046 * src/include/Makefile.sub (HDRS): Add nonposix.h.
10048 * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
10049 (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
10050 [!_POSIX_VERSION]: Define for traditional Unix systems.
10051 (real_output_file::real_output_file): Remove the MSVC-specific
10052 call to popen, use instead POPEN_WT, appropriately defined on
10053 nonposix.h. #include nonposix.h.
10054 (real_output_file::~real_output_file): Remove the MSVC-specific
10055 call to pclose, a suitable macro is now defined on nonposix.h.
10056 Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
10057 and WEXITSTATUS instead of assuming traditional Unix
10058 interpretation of the status returned by pclose.
10060 * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
10061 call to popen, use POPEN_RT instead (appropriately defined on
10062 nonposix.h). #include nonposix.h.
10063 (ps_bbox_request): Open the PostScript file in binary mode.
10064 Close the file after processing it.
10065 (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
10068 * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
10069 A version of run_pipeline that doesn't use `fork'.
10070 (signal_catcher) [__MSDOS__ || _WIN32]: New function.
10071 (system_shell_name, system_shell_dash_c)
10072 (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
10073 the ugliness of testing DOS/Windows file names for equality, and
10074 support both stock shells and ports of Unix shells.
10076 * src/roff/groff/groff.cc: #include nonposix.h.
10077 (BSHELL): Definition moved to nonposix.h.
10078 (main): Use PATH_SEP[0] instead of literal ':'. Use BSHELL_DASH_C
10079 instead of a literal "-c".
10080 (xbasename): Support file names with several possible slash-type
10081 characters, as given by DIR_SEPS[] in nonposix.h.
10082 (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
10083 of literal strings.
10085 * src/preproc/soelim/soelim.cc: #include nonposix.h.
10086 (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
10088 * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
10091 * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
10093 * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
10096 * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
10098 * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
10099 P_tmpdir is defined, use it instead of the literal "/tmp".
10100 (remove_tmp_files, add_tmp_file): New functions.
10101 (xtmpfile): Record temporary files and register an atexit function
10102 to delete them explicitly, instead of relying on the OS to do
10103 that, which doesn't work on non-Unix systems.
10105 * src/libs/libgroff/searchpath.cc: #include nonposix.h.
10106 (search_path::search_path): Use PATH_SEP instead of a literal
10108 (search_path::command_line_dir): Ditto.
10109 (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
10110 to support non-Posix systems.
10112 * src/libs/libbib/search.cc: #include nonposix.h.
10113 (search_list::add_file): Open the file in binary mode.
10115 * src/libs/libbib/linear.cc: #include nonposix.h.
10116 (file_buffer::load): Remove \r characters preceding \n from the
10119 * src/libs/libbib/index.cc: #include nonposix.h.
10120 (make_index_search_item): Open index_filename in O_BINARY mode.
10121 (index_search_item_iterator::get_tag): Ditto. Remove \r
10122 characters before \n characters.
10123 (index_search_item::check_files): Open files in binary mode.
10124 (index_search_item::munge_filename): Support DOS-style file names
10125 with backslashes and drive letters, use IS_ABSOLUTE.
10127 * src/devices/grops/ps.cc: #include nonposix.h.
10128 (main) [SET_BINARY]: Switch stdout to binary mode.
10130 * src/devices/grolj4/lj4.cc: #include nonposix.h.
10131 (main) [SET_BINARY]: Switch stdout to binary mode.
10133 * src/devices/grolbp/lbp.cc: #include nonposix.h
10134 (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
10136 * src/devices/grodvi/dvi.cc: #include nonposix.h.
10137 [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
10139 (main) [SET_BINARY]: Switch stdout to binary mode.
10140 [_MSC_VER]: Remove an explicit call to _setmode.
10142 * src/include/nonposix.h: New file.
10144 * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
10145 operation when building with DJGPP.
10146 ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
10147 ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
10150 * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
10152 (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
10153 etc. can include a semi-colon on DOS/Windows.
10154 (depend.temp): Use depend1.temp instead of depend.temp1, to
10155 prevent files from overerwiting each other on 8+3 filesystems.
10157 * gendef.sh (t): Change definition to work with DOS/Windows.
10159 doc/groff.texinfo: Apart of some typo corrections, I also changed
10160 some index entris, to make them more non-ambiguous, and also put
10161 @ignore around some parts that are not yet written, to allow the
10162 Info output be readable.
10164 2000-06-10 Gael Queri <gqueri@mail.dotcom.fr>
10166 Replaced specific checks for function declarations with a generic
10167 routine taken from GNU bfd.
10169 * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
10170 GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
10171 * configure.in: Use it.
10172 * src/devices/grolbp/lbp.cc, src/include/lib.h,
10173 src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
10174 src/roff/groff/groff.cc: Use it.
10175 * Makefile.in, configure: Updated.
10177 2000-06-07 Paco Andrés Verdú <pandres@dragonet.es>
10179 * src/devides/grolbp/lbp.h: Removed unused variables.
10181 2000-05-31 Keith Thompson <kst@sdsc.edu>
10183 * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
10186 2000-05-31 Werner LEMBERG <wl@gnu.org>
10188 * aclocal.m4 (GROFF_SRAND): New function to test the return value
10189 of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
10190 * configure.in: Use it.
10191 * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
10192 * configure, Makefile.in: Updated.
10194 * configure.in: Add test for strncasecmp().
10195 * src/include/lib.h: Use it.
10197 2000-05-29 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
10199 * src/preproc/grn/Makefile.sub: Add MLIB.
10201 2000-05-29 Nix <nix@esperi.demon.co.uk>
10203 * Makefile.in: Use @datadir@ and @mandir@ appropriately.
10205 2000-05-29 Werner LEMBERG <wl@gnu.org>
10207 * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
10209 * PROBLEMS: Small update.
10211 * src/devices/grolbp/lbp.cc: Various small fixes.
10213 2000-05-28 Keith Thompson <kst@sdsc.edu>
10215 * src/roff/nroff/nroff.sh: Fix main loop syntax.
10217 * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
10219 2000-05-25 Werner LEMBERG <wl@gnu.org>
10221 * man/roff.man: Removed unused macro.
10223 2000-05-24 Werner LEMBERG <wl@gnu.org>
10225 * Makefile.in (dist): Remove src/xditview/Imakefile explicitly.
10226 This is needed e.g. if you do
10227 `make distclean; ./configure; make dist'.
10229 Version 1.16 released
10230 =====================
10232 2000-05-23 Werner LEMBERG <wl@gnu.org>
10234 Adding font CWI (constant width italic) to devdvi.
10236 * font/devdvi/CWI: New file.
10237 * font/devdvi/generate/Makefile: Add generating rule.
10238 * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
10239 tmac/tmac.dvi: Use it.
10240 * NEWS: Announce it.
10242 * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
10243 * font/devlj4/generate/Makefile: Cosmetic changes only.
10245 * man/groff.man: Removed most of the redundant description of
10246 special characters (which is in groff_char.man). Added font
10247 translation CB->CR for devdvi. Other minor fixes.
10249 * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
10250 (registered) symbols.
10252 2000-05-22 Werner LEMBERG <wl@gnu.org>
10254 * doc/Makefile: Added rule for creating info files.
10256 * font/devdvi/*: Added kernings for `cq' glyph. Updated to latest
10258 * font/devdvi/generate/Makefile: Fixed dependencies.
10260 * font/devps/*: Regenerated. Heavy changes for Bookman and
10261 NewCentury Schoolbook!
10262 * font/devps/generate/afmname: Will now run with GNU awk.
10263 * font/devps/generate/textmap: Added forgotten `cq' glyph name.
10264 * font/devps/generate/Makefile: Cosmetic changes only.
10266 2000-05-21 Werner LEMBERG <wl@gnu.org>
10268 * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
10269 10, 11, or 12) to support output with 11pt and 12pt base font sizes.
10270 `.SS' now produces a heading with a smaller size than `.SH'.
10271 Completely formatted.
10272 * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
10274 * man/groff.man: Improved table appearance. Use of `eo' request
10275 to reduce number of doubled backslashes in macro definitions.
10276 Replacing `\e' with `\(rs'. Other minor fixes.
10278 * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
10279 to have correct line number.
10281 * INSTALL: Small improvement.
10283 2000-05-20 Bernd Warken <bwarken@mayn.de>
10285 * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
10288 2000-05-19 Bernd Warken <bwarken@mayn.de>
10290 * man/groff.man: Complete update (with a lot of corrections by WL).
10292 2000-05-18 Werner LEMBERG <wl@gnu.org>
10294 Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
10296 * font/*/*: Implement it.
10297 * man/groff_char.man, NEWS: Document it.
10299 * src/include/unix.h: Removed. It isn't used.
10301 * doc/groff.texinfo: Slight improvements.
10303 2000-05-17 Werner LEMBERG <wl@gnu.org>
10305 * README, win32-diffs: Small fixes and improvements.
10307 2000-05-16 Werner LEMBERG <wl@gnu.org>
10309 * FDL: New file (the Free Documentation License version 1.1).
10311 * doc/groff.texinfo: Added many start-up values for gtroff.
10312 Some structural improvements of the source code.
10314 2000-05-15 Werner LEMBERG <wl@gnu.org>
10316 * src/roff/troff/input.cc: Added small comment about troffrc-end.
10317 * src/roff/troff/troff.man: Added info about troffrc-end.
10319 2000-05-14 Werner LEMBERG <wl@gnu.org>
10321 * Makefile.in (EXTRADIRS): Fix typos.
10322 (dist): Handle deletion of old .tar.gz file correctly.
10323 (DISTDIRS): Include all tty output devices.
10325 * doc/groff.texinfo: Adding more cross references; countless other
10328 2000-05-13 Werner LEMBERG <wl@gnu.org>
10330 * MORE.STUFF: Added Robert Marks's utilities.
10332 2000-05-12 Werner LEMBERG <wl@gnu.org>
10334 Added win32 port contributed by Blake McBride
10335 <blake@florida-software.com>.
10337 * README.WIN32, win32-diffs: New files.
10340 * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
10341 (tmove, tmove2): Added parentheses to avoid compiler warnings.
10342 (change): Removed unused variables.
10344 * src/preproc/grn/main.cc (main, conv): Removed unused variables.
10345 (savebounds): Changed return value from `int' to `void'.
10346 * src/preproc/grn/hdb.cc: Ditto.
10348 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
10349 final backslash in comment to avoid compiler warning.
10351 * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
10353 * doc/groff.texinfo: More fixes.
10355 2000-05-11 OKAZAKI Tetsurou <okazaki@be.to>
10357 * tmac/tmac.doc: Documentation fix.
10359 2000-05-11 Werner LEMBERG <wl@gnu.org>
10361 * doc/groff.texinfo: Reading the source code shows up a lot of
10362 omissions and incorrect data... More conversion to @Deffn macros.
10364 2000-05-10 Werner LEMBERG <wl@gnu.org>
10366 * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
10369 * src/roff/troff/request.h: Removing unused `no_break_flag'.
10371 2000-05-09 Werner LEMBERG <wl@gnu.org>
10373 * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
10376 * doc/groff.texinfo: Extended history section. More conversion to
10377 @Deffn macros. More .tr documentation.
10379 2000-05-07 Werner LEMBERG <wl@gnu.org>
10381 * doc/groff.texinfo: Completed tab section. Added info about
10384 2000-05-06 Mike MacIsaac <mikemac@us.ibm.com>
10386 * PROBLEMS: Describe configure script fix for OS/390 Unix.
10388 2000-05-05 Werner LEMBERG <wl@gnu.org>
10390 * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
10392 * NEWS: Document it.
10394 * man/troff.man: Minor optical improvements.
10396 2000-05-03 Werner LEMBERG <wl@gnu.org>
10398 Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
10400 * font/*/*: Implement it.
10401 * man/groff_char.man, NEWS: Document it.
10403 2000-05-02 Werner LEMBERG <wl@gnu.org>
10405 * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
10407 * NEWS: Document the three new man pages.
10409 * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
10410 * configure: Updated.
10412 * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
10414 2000-05-01 Werner LEMBERG <wl@gnu.org>
10416 Added grap support to grog.
10418 * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
10419 * src/roff/grog/grog.man: Document it.
10421 * doc/groff.texinfo, NEWS: Add info about grap support.
10423 Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
10424 (with slight fixes by me).
10426 * tmac/groff_tmac.man: New file documenting tmac mechanism.
10427 * tmac/Makefile.sub: Add groff_tmac.man.
10428 * man/roff.man: New file giving overview of roff system.
10429 * man/troff.man: A short reference of troff.
10430 * man/Makefile.sub: Add roff.man and troff.man.
10432 2000-04-30 Werner LEMBERG <wl@gnu.org>
10434 Added grap support to groff.
10436 * src/roff/groff/groff.cc: Implement it.
10437 * src/roff/groff/groff.man: Document it.
10439 * src/devices/grotty/grotty.man: Add cp1047 device.
10440 * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
10442 * src/roff/groff/groff.man: Ditto.
10443 * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
10444 * doc/groff.texinfo: Ditto.
10446 * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
10449 2000-04-29 Werner LEMBERG <wl@gnu.org>
10451 * man/groff_char.man: Add `pc' glyph.
10452 * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
10453 * tmac/tmac.tty: Add `pc' glyph.
10454 * tmac/tmac.tty-char: Use/add `pc' glyph. Don't call tmac.latin1 if
10455 we use cp1047 output device.
10457 * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
10458 there are still hardcoded latin1->unicode values in utf8's font
10460 * configure: Updated.
10461 * NEWS: Minor clarification. Updated.
10463 * PROBLEMS: Formatted. Added info about C++ fix pack for OS/390
10466 2000-04-28 Werner LEMBERG <wl@gnu.org>
10468 Adding EBCDIC code page 1047.
10470 * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
10471 font/devcp1047/DESC.proto: New files.
10473 * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
10474 either ascii/latin1 or cp1047.
10475 * Makefile.in: Use it.
10476 * configure: Updated.
10478 Replacing and/or adding `md' (mathdot) glyph with `pc'
10479 (periodcentered) in all text fonts.
10481 * font/*/*: Change it.
10483 2000-04-27 Werner LEMBERG <wl@gnu.org>
10485 * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
10487 * configure.in: Add check for strings.h.
10488 * src/include/driver.h: Use HAVE_STRINGS_H.
10489 * src/devices/grolbp/lpb.cc: Remove string.h.
10491 * src/include/groff-getopt.h: New file. It will be used instead of
10492 getopt.h (to be included in lib.h) to avoid endless problems with
10493 picky C++ compilers.
10494 * src/include/lib.h: Use groff-getopt.h.
10495 * src/include/Makefile.sub: Updated.
10497 * configure: Updated.
10498 * Makefile.in: Updated.
10500 * NEWS: Mention EBCDIC support.
10502 2000-04-26 Werner LEMBERG <wl@gnu.org>
10504 * TODO: Some additions.
10506 2000-04-25 Werner LEMBERG <wl@gnu.org>
10508 * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
10511 2000-04-23 Werner LEMBERG <wl@gnu.org>
10513 * src/roff/troff/troff.man: Minor fixes.
10515 2000-04-22 Werner LEMBERG <wl@gnu.org>
10517 * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
10518 `.T' string register and the incompatible definition of the `.T'
10519 number register (compared to Unix troff).
10521 * man/groff_char.man: Add some missing characters.
10522 * font/devutf8/NOTES: Update.
10524 2000-04-21 Werner LEMBERG <wl@gnu.org>
10526 * src/include/htmlindicate.h, src/include/lib.h,
10527 src/include/posix.h: Fix copyright.
10529 * src/include/Makefile.sub: Update.
10531 2000-04-20 Werner LEMBERG <wl@gnu.org>
10533 * src/roff/troff/input.cc (input_char_description): Removing
10534 superfluous space char.
10536 * tmac/tmac.X: Fix typo \(bq -> \(Bq.
10538 * doc/groff.texinfo: Document EBCDIC.
10540 2000-04-19 Werner LEMBERG <wl@gnu.org>
10542 Introducing `shc' as the glyph name for the soft hyphen character.
10544 * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
10545 font/devlatin1/R.proto: Use it.
10549 2000-04-18 Werner LEMBERG <wl@gnu.org>
10551 * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
10552 dependency on ASCII order.
10554 2000-04-16 Sandor BARANY <S.Barany@infosys.tuwien.ac.at>
10556 * src/libs/libgroff/illegal.c: Added EBCDIC table.
10557 * src/roff/troff/input.cc: Added adaptation to EBCDIC.
10559 * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
10560 to increase portability.
10562 2000-04-15 Werner LEMBERG <wl@gnu.org>
10564 * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
10565 Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
10566 the generic `\n' if under OS/390 Unix.
10568 * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
10570 * configure: Regenerated.
10572 2000-04-14 Werner LEMBERG <wl@gnu.org>
10574 * doc/groff.texinfo: More conversions to @Deffn.
10576 2000-04-12 Werner LEMBERG <wl@gnu.org>
10578 * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
10581 * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
10583 2000-04-10 Werner LEMBERG <wl@gnu.org>
10585 * doc/groff.texinfo: More conversions to @Deffn.
10587 2000-04-08 Werner LEMBERG <wl@gnu.org>
10589 * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
10590 Updated to latest version (glibc 2.1.3).
10592 2000-04-07 Werner LEMBERG <wl@gnu.org>
10594 * doc/Makefile (clean): Include more index files.
10595 Add rule texinfo->dvi.
10597 2000-04-05 Werner LEMBERG <wl@gnu.org>
10599 * doc/groff.texinfo: Added new index `op' for operators. More
10600 info on end of sentence characters. More use of @Deffn.
10602 2000-03-30 Werner LEMBERG <wl@gnu.org>
10604 * */*.man: Adding a note that a whitespace can be inserted between
10605 a command line option and its parameter -- we are using GNU getopt.
10607 * src/roff/groff/groff.man: Add example of `-m mandoc'.
10609 2000-03-28 Werner LEMBERG <wl@gnu.org>
10611 Correct anachronism of calling the man macro file with `-man'
10612 instead of `-m man' etc.
10614 * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
10615 tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
10616 load tmac.<package>.
10618 * tmac/Makefile.sub: Updated. Take care of $(tmac_an_prefix) etc.
10622 * doc/groff.texinfo: Updated.
10624 * tmac/groff_man.man: Copyright added.
10626 2000-03-27 Werner LEMBERG <wl@gnu.org>
10628 * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
10629 typeset the request resp. escape name with a tt font -- due to a
10630 bug in texinfo.tex it is necessary to use the `-e' switch with
10633 Improving info about usage of groff units.
10637 2000-03-20 Werner LEMBERG <wl@gnu.org>
10639 * doc/groff.texinfo: Added section about man macro package
10640 (I've basically taken groff_man.man). Introducing new indices `ma'
10641 for macros/strings and `gl' for glyph names. Other minor fixes.
10643 * tmac/groff_man.man: Fixed some typos.
10645 2000-03-19 Werner LEMBERG <wl@gnu.org>
10647 * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
10650 * doc/texinfo.tex: New file.
10652 2000-03-18 Werner LEMBERG <wl@gnu.org>
10654 * doc/groff.texinfo: Improved section on number registers. Other
10657 2000-03-16 Werner LEMBERG <wl@gnu.org>
10659 * src/roff/groff/groff.man: Added info about grolbp. Make nicer
10662 * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
10663 src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
10664 src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
10665 src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
10667 * src/preproc/grn/grn.man: Better synopsis; added copyright.
10669 * src/roff/grog/grog.man: Updated copyright date.
10671 2000-03-14 Francisco Andrés Verdú <pandres@dragonet.es>
10673 * configure.in: Added test for strdup.
10675 * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
10678 Replaced dynamic allocation of arrays `[...]' with `new' operator.
10682 2000-03-12 OKAZAKI Tetsurou <okazaki@be.to>
10684 * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
10686 2000-03-11 Werner LEMBERG <wl@gnu.org>
10688 * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
10690 * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
10691 * src/include/lib.h: Remove some spaces.
10693 2000-03-10 Werner LEMBERG <wl@gnu.org>
10695 * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
10696 initializers from arguments (some compilers don't like this).
10698 2000-03-09 Gaius Mulley <gaius@glam.ac.uk>
10700 * src/libs/libgroff/htmlindicate.cc: Added library file which is now
10701 used by pic and eqn to tell grohtml where the graphic regions start
10703 * src/libs/libgroff/Makefile.sub: Use it.
10704 * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
10705 graphic_start() and graphic_end() from htmlindicate.cc.
10707 2000-03-09 Werner LEMBERG <wl@gnu.org>
10709 * tmac/tmac.safer: Will now work correctly in compatibility mode.
10710 * tmac/groff_man.man: More fixes.
10712 2000-03-08 Werner LEMBERG <wl@gnu.org>
10714 * doc/Makefile: Added texput.log to the `clean' target.
10715 * doc/groff.texinfo: Added info about delimiters for escapes.
10717 2000-03-08 Bernd Warken <bwarken@mayn.de>
10719 * src/preproc/pic/pic.man: Add info on conversion of pic images to
10720 other graphic formats.
10722 2000-03-07 OKAZAKI Tetsurou <okazaki@be.to>
10724 * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
10725 src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
10726 src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
10729 2000-03-07 Werner LEMBERG <wl@gnu.org>
10731 * doc/groff.texinfo: Spelling fixes.
10733 2000-03-06 Werner LEMBERG <wl@gnu.org>
10735 * tmac/groff_man.man: Completely revised to cover everything in
10738 * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
10739 Other minor fixings.
10740 * src/roff/troff/env.cc (environment_copy): Improve error message and
10742 * src/roff/troff/TODO: Updated.
10744 * doc/Makefile: Bug fixes -- this is still provisional, though...
10746 * tmac/eqnrc: Small fixes.
10748 2000-03-05 Abramo Bagnara <abramo@alsa-project.org>
10750 Adding a request `evc' to copy environments.
10752 * src/roff/troff/env.cc (environment::copy, environment_copy):
10754 * src/roff/troff/env.h: Add prototype.
10756 2000-03-05 Francisco Andrés Verdú <pandres@dragonet.es>
10758 Adding strsep() -- Solaris 8 doesn't have it.
10760 * configure.in: Test it.
10761 * src/devices/grolbp/lbp.cc: Add code.
10763 2000-03-05 Werner LEMBERG <wl@gnu.org>
10765 * src/roff/troff/div.cc (macro_diversion::output,
10766 top_level_diversion::output): Fixing an incompatibility with
10767 original troff: \x'0' updates the .a register also. Thanks to
10768 <Andries.Brouwer@cwi.nl> for pointing this out.
10769 * doc/groff.texinfo: Document it.
10771 * Makefile.in: Create Makefile.dep if necessary before calling the
10772 submake process to avoid warning about nonexistent file.
10774 * NEWS, PROJECTS: Updated.
10776 2000-03-04 Werner LEMBERG <wl@gnu.org>
10778 * tmac/troffrc: Add tmac.lbp.
10780 2000-03-03 Francisco Andrés Verdú <pandres@dragonet.es>
10782 * tmac/tmac.lbp: New file.
10783 * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
10786 2000-03-03 Werner LEMBERG <wl@gnu.org>
10788 * Makefile.in: Fixing $(subdir).
10790 * README, NEWS: Small fixes.
10792 * test-groff: Adding path to grolbp.
10794 * configure.in: The (new) file src/xditview/Imakefile.in will be
10795 also configured -- it is now possible to build gxditview in a
10796 directory different from $srcdir.
10798 2000-03-02 Blake McBride <blake@florida-software.com>
10800 * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
10802 * MORE.STUFF: Added website of bell labs and info about plot2dev.
10804 2000-03-01 Colin Phipps <crp22@cam.ac.uk>
10806 * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
10809 2000-02-29 Werner LEMBERG <wl@gnu.org>
10811 Adding GNU getopt to the groff distribution.
10813 * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
10815 * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
10816 * aclocal.a4: Remove GROFF_GETOPT function.
10817 * configure.in, Makefile.in, PROBLEMS: Update.
10818 * src/include/lib.h: Replace getopt tests with getopt.h.
10819 * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
10821 * doc/groff.texinfo: Further checking/updating. Adding more index
10824 * man/groff_out.man: Fix nroff mode activation (for emacs).
10825 * man/groff_font.man: Add missing ligature.
10827 2000-02-28 Werner LEMBERG <wl@gnu.org>
10829 * doc/groff.texinfo: Further checking/updating. Adding more index
10832 * src/devices/grolbp/grolbp.man: Added a comment line at the
10833 beginning of the file (similar to shell scripts) which indicates
10834 that `tbl' should be used as a preprocessor.
10836 2000-02-27 Blake McBride <blake@florida-software.com>
10838 Adapting groff to MS Visual C++ 6.0 compiler (tested with
10839 Windows NT 4.0). Uses _MSC_VER define where necessary.
10841 * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
10842 * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
10843 * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
10844 src/include/lib.h, src/libs/libgroff/errarg.cc,
10845 src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
10846 src/preproc/refer/label.y, src/preproc/refer/label.cc,
10847 src/roff/groff/pipeline.c, src/roff/troff/column.cc,
10848 src/roff/troff/div.cc, src/roff/troff/env.cc,
10849 src/roff/troff/input.cc, src/roff/troff/node.cc,
10850 src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
10851 if_to_a() to avoid name clashes.
10852 * src/include/posix.h: Don't use unistd.h.
10853 * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
10854 clause for integrating non-Unix xtmpfile() code.
10855 * src/roff/troff/input.cc: Adding `public' keyword to macro_header
10856 structure; use "rt" for popen() in pipe_source(); add getpid()
10858 * src/roff/troff/node.cc: Use special versions of popen() in
10859 real_output_file() and pclose() in ~real_output_file().
10861 2000-02-27 Werner LEMBERG <wl@gnu.org>
10863 Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
10864 LBP-8 series laser printers). This code has been contributed by
10865 Francisco Andrés Verdú <pandres@dragonet.es>.
10867 * src/devices/grolbp/*: The grolbp output device.
10868 * font/devlpb/*: The font description files.
10869 * Makefile.in: Add grolpb and devlbp subdirectories.
10871 * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
10872 src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
10875 * doc/groff.texinfo: Further checking/updating. Adding more index
10880 * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
10882 * man/groff_font.man: Adding info about obsolete DESC keywords.
10883 * src/devices/grolj4/grolj4.man: Documenting additional DESC
10886 2000-02-26 Werner LEMBERG <wl@gnu.org>
10888 * src/preproc/grn/grn.man: Added info about the gremlin file format
10889 (contributed by Daniel Senderowicz <daniel@synchrods.com>).
10891 2000-02-25 Werner LEMBERG <wl@gnu.org>
10893 * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
10894 friends to be non-integer.
10896 * src/preproc/grn/grn.man: Document it.
10898 * doc/groff.texinfo: Further checking/updating. Adding more index
10901 2000-02-24 Werner LEMBERG <wl@gnu.org>
10903 * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
10904 line thicknesses to be integer multiples of this value.
10906 * src/preproc/grn/grn.man: Commenting out the -s option -- the
10907 corresponding code doesn't work (yet).
10909 * doc/groff.texinfo: Further checking/updating. Adding more index
10912 2000-02-23 Werner LEMBERG <wl@gnu.org>
10914 * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
10915 specify line thickness instead of base units. The new default
10916 values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
10917 thick lines respectively.
10919 Removed unused variable `prevval'.
10921 * src/preproc/grn/grn.man: Updated.
10923 2000-02-22 Werner LEMBERG <wl@gnu.org>
10925 * src/preproc/grn/main.cc: Slight formatting.
10927 * src/roff/groff/groff.man: Formatting fix.
10928 * src/preproc/grn/grn.man: Ditto.
10930 * src/roff/grog/grog.pl: Fixing two embarassing bugs.
10932 * doc/groff.texinfo: Further checking/updating.
10934 2000-02-21 Werner LEMBERG <wl@gnu.org>
10936 * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
10938 * test-groff: Added grn subdir to path.
10940 * doc/groff.texinfo: Some restructing and other small improvements.
10942 * src/roff/groff/groff.cc (help): Fixed info string.
10944 2000-02-20 Werner LEMBERG <wl@gnu.org>
10946 * doc/meref.me: Fix description of .GS request.
10948 * src/roff/troff/troff.man: Fixing typo.
10950 Adding the `grn' preprocessor for gremlin graphic files.
10952 * src/preproc/grn/*: This is the Berkeley distribution written by
10953 David Slattengren and Barry Roitblat, adapted to groff by Daniel
10954 Senderowicz and Werner Lemberg.
10956 * doc/grnexampl.{me,g}: A sample for grn.
10958 * Makefile.in: Added subdirectory entry for grn.
10960 * src/roff/groff/groff.cc: Added support for grn. It can be now
10961 called with the switch `-g'.
10963 * src/roff/groff/groff.man: Updated.
10965 * src/roff/grog/grog.{man,pl,sh}: Updated.
10969 2000-02-11 Gaius Mulley <gaius@glam.ac.uk>
10971 * src/include/lib.h: Added xtmptemplate and made xtmpfile
10972 parametrically polymorphic.
10974 * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
10975 and the alterations to xtmpfile.
10976 xtmpfile can be requested to return the filename created
10977 and asked not to unlink the temp file. The default behaviour
10978 if parameters are absent is exactly the same as before.
10980 2000-02-11 Abramo Bagnara <abramo@alsa-project.org>
10982 A new request `length' is available which returns the length of a
10983 string in a number register:
10985 * src/roff/troff/input.cc (length_macro): Implement it.
10986 * src/roff/troff/input.cc (init_input_requests): Register it.
10988 2000-02-11 Werner LEMBERG <wl@gnu.org>
10990 * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
10991 of the `substring' request.
10993 * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
10996 * src/roff/troff/TODO, NEWS: Updated.
10998 2000-02-09 Werner LEMBERG <wl@gnu.org>
11000 * src/roff/groff/groff.man: Added an example.
11002 2000-02-06 Werner LEMBERG <wl@gnu.org>
11004 I've considerably modified the directory structure of the
11005 distribution to get a more vertical layout. For example, the number
11006 of top level directories has been reduced from 42 to 6.
11008 As a consequence, many changes, especially to the makefiles, were
11011 * The makefile variables `top_builddir' and `top_srcdir' have been
11012 introduced. Virtually all relative paths have been replaced with
11013 absolute ones using these two variables.
11015 * Dependencies (in the files `Makefile.dep') are no longer part of
11016 the distribution. Instead, they are created during a `make install'
11017 in the build directory.
11019 * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
11020 make `top_srcdir' and `top_builddir' absolute.
11022 Some other changes:
11024 * Man pages now depend on the files `VERSION' and `REVISION'.
11026 * The added shell script `mkinstalldirs' will replace `mkdir' in
11029 * VERSION: Version number increased to 1.16.
11031 2000-02-04 Werner LEMBERG <wl@gnu.org>
11033 * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
11035 * Makefile.in: Removed $(tmac_m) since it is no longer needed
11036 (after an update of the mm stuff).
11038 * troff/Makefile.sub (majorminor.cc): Fix dependencies.
11040 2000-02-03 Werner LEMBERG <wl@gnu.org>
11042 The .psbb request will now also accept Mac PS images (i.e. using LF
11043 as the EOL character).
11045 * troff/input.cc (ps_get_line): New function, taken from psrm.cc
11046 (with slight modifications).
11047 * troff/input.cc (do_ps_file): Use it.
11049 * test-groff: Add grohtml and grolj4 output devices to PATH.
11051 2000-01-30 Werner LEMBERG <wl@gnu.org>
11053 * NEWS, MORE.STUFF: Updated.
11055 2000-01-30 Cary D. Renzema <caryr@dollar.mxim.com>
11057 Add the `srand' command to pic.
11059 * pic/lex.cc, pic/pic.y: Implement it.
11060 * pic/pic.man: Document it.
11061 * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
11063 2000-01-30 Werner LEMBERG <wl@gnu.org>
11065 Add a new request `.psbb'. This does exactly what the external
11066 program psbb did. It scans a PostScript image file for a
11067 %%BoundingBox comment and extracts the bounding box values (in
11068 PostScript units) which are then stored in the four new (read-only)
11069 number registers `llx', `lly', `urx', and `ury'.
11071 This will allow the usage of the .PSPIC macro without worrying
11072 about unsafe behaviour of groff, i.e., it will work without the
11073 `-U' switch of groff.
11075 * troff/input.cc: Implement it.
11076 * tmac/tmac.pspic: Use it.
11077 * troff/troff.man, grops/grops.man, NEWS: Document it.
11078 * psbb/*, Makefile.in: Remove it since it is no longer needed.
11080 This is bloody C code simply adapted from psbb.c! Any improvements
11083 2000-01-29 Werner LEMBERG <wl@gnu.org>
11085 * man/groff_font.man: Minor clarifications.
11089 2000-01-28 Werner LEMBERG <wl@gnu.org>
11091 * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
11093 2000-01-28 Gaius Mulley <gaius@glam.ac.uk>
11095 * man/groff_font.man: Brought up to date regarding tcommand
11097 * libgroff/font.cc: Handle everything after `--' as a comment
11099 * devps/*: Added comment delimiter inside devps font files.
11101 2000-01-28 Werner LEMBERG <wl@gnu.org>
11103 * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
11104 \fC...\fP (which now works as expected).
11106 * troff/troff.man: Fix typo.
11108 2000-01-27 Gaius Mulley <gaius@glam.ac.uk>
11110 Completed the pass_filenames implementation in troff.
11112 * libdriver/input.cc: Will read the new `F' tcommand.
11113 * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
11114 * troff/input.cc: Use it.
11116 2000-01-26 Werner LEMBERG <wl@gnu.org>
11118 * troff/env.cc (set_font): Fix the behaviour of \fP. The previous
11119 font will now be updated even if an invalid font is selected.
11121 2000-01-24 Werner LEMBERG <wl@gnu.org>
11123 * doc/homepage.ms: Updated for new tmac.arkup.
11125 * tmac/tmac.html: Disable line breaks after hyphen-like characters.
11127 * tmac/tmac.arkup: Cleanup.
11129 Added `\&' to .HTML macro to `leave vertical mode', so to say.
11131 Removed obsolete .LINK macro completely.
11133 The macros .URL, .FTP, and .MAILTO now accept a third argument which
11134 will be immediately appended to the second argument (to be used with
11135 punctuation, for example).
11137 Disabled .CDFTP macro temporarily for security reasons.
11139 * tmac/groff_markup.man: Complete revision for latest changes in
11140 tmac.arkup -- note that it does not yet format correctly with
11143 2000-01-23 Bruno Haible <haible@clisp.cons.org>
11145 * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
11146 * devutf8/R.proto: Add mappings for wp, lh, rh.
11147 * devutf8/NOTES: Updated.
11149 2000-01-23 Werner LEMBERG <wl@gnu.org>
11151 * doc/groff.texinfo: Updated version/copyright info.
11153 2000-01-21 Gaius Mulley <gaius@glam.ac.uk>
11155 Added support for two new directives in device descriptions:
11156 `pass_filenames' (to pass the input file name to the output device)
11157 and `use_charnames_in_special' (to support e.g. accented characters
11158 in the `X' request).
11160 * include/font.h, troff/charinfo.h: Declare it.
11162 * libgroff/font.cc, libgroff/fontfile.cc: Set it.
11164 * devhtml/DESC: Use it.
11166 * troff/input.cc: New function encoded_char.
11168 * troff/token.h: Add test for `specialness'.
11170 2000-01-21 Werner LEMBERG <wl@gnu.org>
11172 * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
11173 mistake from the list of files to be installed.
11175 2000-01-18 Werner LEMBERG <wl@gnu.org>
11177 * README: Added info how to apply patches.
11179 2000-01-15 Jan Echternach <echter@informatik.uni-rostock.de>
11181 * troff/node.cc (ligature_note::operator delete): Fix g++ warning.
11183 2000-01-15 Gaius Mulley <gaius@glam.ac.uk>
11185 * troff/input.cc: Add support for troffrc-end.
11187 * tbl/main.cc: Altered to issue table-start and table-end special
11188 characters if using the html device.
11190 * devhtml/*: Modified font files to incorporate html encoding of
11193 * tmac/groff_markup.man: New file documenting tmac.arkup.
11195 * tmac/troffrc-end: New file. This is invoked after all user
11196 specified macros. Currently used by the html device to include
11197 tmac.html. Thus no need for users to specify -mhtml anymore.
11199 * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
11200 (MAN7): Add groff_markup.man.
11202 * tmac/tmac.an, tmac/tmac.html: Small html updates.
11204 * tmac/troffrc: tmac.arkup will now be called for the html device.
11206 * libgroff/font.cc, libgroff/font.h: Altered to include reading of
11207 extra device specific information about fonts.
11209 * doc/homepage.ms: New file. It is an example how an HTML home page
11210 could look like with grohtml.
11212 * doc/Makefile: Add homepage.ms. Remove rule for pic.html.
11214 2000-01-12 Bruno Haible <haible@clisp.cons.org>
11216 * devutf8/R.proto: Add mappings for ti, Fn, st, an. Change mappings
11219 * devutf8/NOTES: Updated.
11221 2000-01-08 Bruno Haible <haible@clisp.cons.org>
11223 * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
11224 eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
11225 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
11226 libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
11227 pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
11228 tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
11229 troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
11230 troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
11233 * troff/node.cc (bracket_node::copy): Initialize last to NULL.
11235 2000-01-12 Fabrizio Polacco <fab@prosa.it>
11237 grolj4: Paper size will be searched case-insensitively.
11239 * include/lib.h: Add check for strcasecmp().
11240 * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
11241 * configure.in: Check for strcasecmp().
11243 2000-01-11 Werner LEMBERG <wl@gnu.org>
11245 * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
11248 2000-01-10 Werner LEMBERG <wl@gnu.org>
11250 * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
11253 Add a new read-only register, `.Y', which contains the groff
11256 * troff/input.cc (init_input_requests): Define it.
11257 * troff/Makefile.sub (majorminor.cc): Define `revision' string.
11258 * doc/groff.texinfo, troff/troff.man: Document it.
11260 * libgroff/Makefile.sub (version.cc): Add definition of
11261 `Version_string[]', consisting of `<major>.<minor>.<revision>'
11262 * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
11263 grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
11264 refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
11265 troff/input.cc, pfbtops/pfbtops.c: Use it.
11267 2000-01-10 Fabrizio Polacco <fab@prosa.it>
11269 Add a revision scheme to the groff package.
11271 * REVISION: New file.
11272 * libgroff/Makefile.sub (version.cc): Use it to define
11273 `revision_string[]'.
11274 * grops/psrm.cc: Use revision_string (converted to an unsigned
11275 integer) in constructor of resource_manager.
11277 2000-01-10 Bruno Haible <haible@clisp.cons.org>
11279 * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
11281 * Makefile.in (DEVDIRS): Add devutf8.
11282 * grotty/tty.cc: Include device.h.
11283 (glyph): Change type of `code' to `unsigned int'.
11284 (tty_printer): New field is_utf8. Constructor takes device argument.
11285 (tty_printer::tty_printer): If device if `utf8', set is_utf8.
11286 (tty_printer::add_char): Change type of first arg to `unsigned int'.
11287 (tty_printer::put_char): New function.
11288 (tty_printer::end_page): Use put_char() instead of ::putchar().
11289 (make_printer): Pass device to tty_printer constructor.
11290 * nroff.sh: Determine default device by calling 'locale'. As a
11291 fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
11292 Recognize UTF-8 locales.
11293 * tmac/eqnrc: Recognize utf8 like latin1.
11294 * tmac/troffrc: Device utf8 needs tmac.tty.
11296 2000-01-07 Werner LEMBERG <wl@gnu.org>
11298 * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
11300 2000-01-07 Paul Eggert <eggert@twinsun.com>
11302 Add a new predefined writeable number register, `year',
11303 which contains the current year.
11305 * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
11306 * tmac/tmac.s: Use it.
11307 * troff/input.cc (init_registers): Initialize it.
11309 2000-01-06 Werner LEMBERG <wl@gnu.org>
11311 * PROBLEMS: Fixed typo.
11313 2000-01-04 Paul Eggert <eggert@twinsun.com>
11315 * PROBLEMS: Add Y2k advice for the yr number register.
11317 2000-01-03 Paul Eggert <eggert@twinsun.com>
11319 * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
11321 2000-01-02 Werner LEMBERG <wl@gnu.org>
11323 * tmac/tmac.arkup: Slight modification of macros to provide better
11324 appearance for non-HTML formats.
11326 2000-01-01 Charles Levert <charles@comm.polymtl.ca>
11328 * soelim/soelim.cc (include_path_append): realloc(NULL, n)
11329 does not automatically translate to malloc(n) on all OSes
11330 (e.g., SunOS) so do it explicitly. Also, check the returned
11333 2000-01-01 Werner LEMBERG <wl@gnu.org>
11335 * tmac/tmac.arkup: Added .LINE macro. Some formatting.
11337 * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
11338 expects this variable
11340 2000-01-01 Gaius Mulley <gaius@glam.ac.uk>
11342 * doc/Makefile: Added instructions to create HTML and text
11343 versions of some files.
11345 1999-12-31 Werner LEMBERG <wl@gnu.org>
11347 * Updated INSTALL.gen.
11349 * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
11350 better resp. correctly with non-HTML devices.
11352 Version 1.15 released
11353 =====================
11355 1999-12-28 Werner LEMBERG <wl@gnu.org>
11357 * NEWS, VERSION: Changed to 1.15
11359 1999-12-27 Paul Eggert <eggert@twinsun.com>
11361 * nroff/nroff.man: -S is safer, not safe.
11363 * groff/groff.cc (main): Use `safer', not `safe', in variable
11364 names. This does not change the behavior.
11366 * troff/input.cc (main): Likewise.
11368 * nroff/nroff.sh: Likewise.
11370 * troff/input.cc (prepend_string): New function.
11371 (main): Prepend -msafer, so that we check macro libraries for
11374 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
11376 Version 1.14 released
11377 =====================
11379 1999-12-26 Werner LEMBERG <wl@gnu.org>
11381 * NEWS, VERSION: Changed to 1.14.
11383 1999-12-24 Werner LEMBERG <wl@gnu.org>
11385 * refer/refer.cc: Fixing the last fix.
11387 Version 1.13 released
11388 =====================
11390 1999-12-23 Werner LEMBERG <wl@gnu.org>
11392 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
11397 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
11399 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
11400 document conventions, the version number must be a real.
11402 Version 1.12.1 released
11403 =======================
11405 1999-12-22 Werner LEMBERG <wl@gnu.org>
11407 * VERSION: Changed to 1.12.1.
11409 1999-12-22 Alan Rooks <arooks@istar.ca>
11411 * refer/refer.cc (do_file): Slight modification to satisfy the
11412 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
11415 1999-12-20 Werner LEMBERG <wl@gnu.org>
11417 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
11420 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
11421 list of unsafe requests.
11423 * pic/pic.man: Fixed a typo.
11425 * man/groff_out.man: Fixed a typo.
11427 1999-12-18 Werner LEMBERG <wl@gnu.org>
11429 * Makefile.in: Doc fixes.
11431 1999-12-17 Fabrizio Polacco <fab@prosa.it>
11433 * groff/groff.cc: Missing `U' option added to getopt().
11435 * troff/troff.man: Missing `U' option added to synopsis.
11437 Version 1.12 released
11438 =====================
11440 1999-12-14 Werner LEMBERG <wl@gnu.org>
11442 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
11445 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
11446 with the more appropriate terms `safer' and `unsafe'.
11448 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
11449 sys_nerr and sys_errlist[].
11451 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
11453 * pic/pic.y, pic/pic.cc: Added check for fmod().
11455 1999-12-13 Werner LEMBERG <wl@gnu.org>
11457 * VERSION: Changed to 1.12.
11459 Here some patches from various sources; most of them taken from
11460 the Debian distribution.
11462 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
11463 tmac/Makefile.sub: New files copied directly from the NetBSD
11464 distribution. Probably, some additional adaptation later on is
11467 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
11468 of unsafe requests.
11470 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
11471 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
11472 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
11473 (`-S') is now the default.
11475 * README, NEWS: Updated.
11477 1999-12-09 Werner LEMBERG <wl@gnu.org>
11479 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
11481 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
11483 1999-12-06 Werner LEMBERG <wl@gnu.org>
11485 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
11486 grief than relief today. Additionally, it is against the GNU
11489 * configure: Recreated.
11491 1999-12-05 Werner LEMBERG <wl@gnu.org>
11493 * configure.in: Added GROFF_LIBM.
11495 * configure: Recreated.
11497 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
11500 * Makefile.in: Added definition of $(LIBM).
11502 * Makefile.comm (LIBM): Removed.
11504 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
11506 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
11508 * doc/Makefile: Added rule for generation pic.html.
11510 (clean): Files produced by grohtml will be removed also.
11512 * doc/pic.ms: Small fix.
11514 * tmac/tmac.html: Fixed suppression of headers.
11516 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
11518 * tmac/tmac.html: Fixing horizontal arrows.
11520 Turning off hyphenation.
11522 * tmac/tmac.an: Improved support for grohtml; better indentation,
11523 no footers/headers.
11525 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
11527 * tmac/tmac.arkup: Added CDFTP macro
11529 * tmac/tmac.html: All headers are turned off for ms, me, and mm
11532 * tmac/troffrc: Some additions for HTML stuff.
11534 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
11536 * tmac/tmac.html: Small changes.
11538 1999-09-26 Werner LEMBERG <wl@gnu.org>
11540 * doc/groff.texinfo: Minor fixes.
11542 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
11544 * devhtml/TR: Changed spacewidth to 3.
11546 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
11548 * tmac/tmac.html: Moved markup macros to tmap.arkup.
11550 * tmac/tmac.arkup: New file.
11552 * grohtml/ChangeLog: New file.
11554 1999-09-16 Werner LEMBERG <wl@gnu.org>
11556 * doc/groff.texinfo (Common Features): Added Copying chapter.
11557 Changed format to @smallbook.
11559 1999-09-15 Werner LEMBERG <wl@gnu.org>
11561 * NEWS: Added info about groff.texinfo.
11563 * doc/groff.texinfo: Will now compile (using texi2dvi) without
11566 1999-09-14 Werner LEMBERG <wl@gnu.org>
11568 * groff/groff.man: More updates.
11570 1999-09-13 Werner LEMBERG <wl@gnu.org>
11572 * doc/groff.texinfo: New file. This manual is still very
11573 rudimentary. It has been originally contributed by Trent
11574 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
11577 * INSTALL: Added information about the `doc' subdir
11579 * troff/troff.man: Minor fixes.
11581 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
11584 * troff/input.cc (usage): Added missing `-ffam' to usage message.
11586 * Makefile.in (dist): groff-$(version).tar.gz must be removed
11587 also, otherwise it is included itself in another call of `make
11590 * groff/groff.cc (synopsis): Removed superfluous space.
11592 * PROJECTS, PROBLEMS, NEWS: Updated.
11594 * VERSION: Updated to 1.12beta.
11596 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
11598 * README: Updated: Included documentation about CVS repository,
11599 mailing lists, and daily snapshots.
11601 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
11603 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
11605 * tmac/tmac.an: If the tag didn't fit into the space that the
11606 macro `TP' specifies, the rest of the tag went into the space for
11609 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
11611 * grolj4/lj4.cc: Added duplex printing (option `-d').
11613 * grolj4/grolj4.man: Document duplex printing.
11615 1999-09-12 Werner LEMBERG <wl@gnu.org>
11617 * doc/Makefile (pic.ps): Fixed rule which caused problems with
11618 non-GNUish sed programs.
11620 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
11623 * configure.in (LIBS): Added `-lc'
11625 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
11627 * pic/tex.cc (solid_arc): Casting M_PI to double.
11629 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
11631 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
11632 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
11633 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
11635 * groff/groff_man.man: New file. This manual page was originally
11636 written for the Debian GNU/Linux system by Susan G. Kleinmann
11639 * eqn/list.cc (list_box::compute_metrics,
11640 list_box::compute_sublist_width): Removed variable declaration to
11641 avoid shadowing warnings.
11643 * grops/psrm.cc (resource_manager::process_file): Ditto.
11645 * tfmtodit/tfmtodit.cc (main): Ditto.
11647 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
11648 to avoid shadowing warnings.
11650 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
11651 shadowing loop variable.
11653 * groff/groff.man, troff/troff.man: Added doc about grohtml.
11655 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
11657 New grohtml frontend to convert groff input to html.
11659 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
11661 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
11663 * tmac/eqnrc: Added html device.
11665 * tmac/tmac.html: New file.
11667 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
11668 (troff_output::start_picture, troff_output::finish_picture),
11669 tbl/main.cc (process_input_file):
11670 Surrounded output with `graphics_start' and `graphics_end' so that
11671 the html driver can identify non-text portions.
11673 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
11674 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
11675 grotty/tty.ps (tty_printer::set_char): Additional parameter
11678 * include/printer.h: Class printer: New function
11679 set_char_and_width; new variables (is_char_named, is_named_set,
11680 named_command, named_char_s, named_char_n) to hold information
11681 about named characters -- needed by the html driver.
11683 * libdriver/printer.cc (printer::set_ascii_char,
11684 printer::set_special_char): Use set_char_and_width.
11686 * devhtml/*: New device files for html driver.
11688 * grohtml/*: New driver grohtml.
11690 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
11692 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
11695 1999-09-11 Luke Mewburn <lukem@netbsd.org>
11697 * libgroff/string.cc (search): Small fix to test against NULL
11700 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
11702 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
11703 \b'abc') were stacked in reverse order when processed in a
11706 * troff/node.h: Added `*last' to struct `node' to make the above
11709 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
11710 The default scale for the 'f' and 't' graphics functions were 'm'
11711 rather than 'u' (i.e., no scaling).
11713 1999-09-11 Peter Miller <peterm@jna.com.au>
11715 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
11716 do_file), soelim/soelim.man: Added `-I file' option to soelim,
11717 defining include paths.
11719 * soelim/soelim.cc (include_path_append): New function.
11721 1999-09-11 Larry Jones <larry.jones@sdrc.com>
11723 * tbl/main.cc (process_options): Unix (at least Documenter's
11724 Workbench) tbl allows arbitrary non-alpha characters between
11727 1999-09-11 Paul Eggert <eggert@twinsun.com>
11729 Y2k fixes. Don't assume that the current year precedes 2000.
11731 * doc/meref.me: Add \n(y2, \n(y4.
11733 * tmac/doc-common (Yr): New number register.
11734 (Dd): Don't assume current year precedes 2000.
11736 * tmac/tmac.e (td): Likewise.
11737 (y2, y4): New number registers.
11739 * pic/pic.man: Update reference for pic paper to May, 1991
11742 1999-09-11 Werner LEMBERG <wl@gnu.org>
11744 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
11745 Removed quotation marks which prevented correct expansion of
11748 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
11750 1999-09-10 Werner LEMBERG <wl@gnu.org>
11752 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
11755 * Removed configure.old.
11757 1999-08-31 Werner LEMBERG <wl@gnu.org>
11759 * VERSION: Updated to 1.11.1
11761 1999-05-27 Werner LEMBERG <wl@gnu.org>
11763 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
11765 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
11766 added quotations around $(tmac_wrap) to avoid syntax error if
11769 * configure: Newly generated using autoconf 2.13.
11771 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
11773 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
11775 * README, PROJECTS, NEWS, INSTALL, VERSION,
11776 doc/Makefile. doc/pic.ms, groff/groff.man:
11777 Prepare for 1.11 release. No code changes.
11778 Documentation for pic added (doc/pic.ms).
11780 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
11782 * Version 1.10 released.
11784 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
11786 * afmtodit/afmtodit.pl: Avoid comment on first line.
11788 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
11790 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
11791 * configure.in: Call it.
11793 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
11794 (distfiles): Doesn't depend on config.log or config.cache.
11796 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
11798 * grog/grog.sh: Use print "" rather than print in END rule.
11800 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
11802 * tbl/main.cc (process_data): Don't give error for excess data
11803 entries that are comments.
11805 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
11807 * tbl/main.cc (process_data): Fix case where new for-scope rules
11808 silently change meaning of code.
11810 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
11812 * troff/env.cc (hyphenate): Loop over all consecutive sequences
11813 of non-zero hyphenation codes.
11815 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
11817 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
11819 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
11821 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
11823 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
11825 * tmac/tmac.andoc: Make it work in compatibility mode.
11827 * refer/token.h (token_info::is_range_sep): New function.
11828 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
11829 * refer/ref.cc (reference::output): More sophisticated check for
11832 * devps/prologue.ps (MANUAL): New procedure.
11833 * grops/ps.cc (main): New -m option.
11834 (usage): Include -m.
11835 (ps_printer::~ps_printer): Implement -m.
11837 * aclocal.m4 (GROFF_G): New macro.
11838 * configure.in: Call it.
11839 * Makefile.in (g): Provided by configure.
11841 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
11843 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
11846 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
11847 (tmac_m, tmac_s): Deleted.
11848 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
11849 tmac_s_prefix): New variables.
11850 (MDEFINES): Change accordingly.
11851 * Makefile.comm (.man.n): Use new TMAC_* variables.
11852 * configure.in (GROFF_TMAC): Call.
11853 * aclocal.m4 (GROFF_TMAC): Define.
11854 * tmac/Makefile.sub (stamp_wrap): New target.
11855 (install_data, uninstall_sub): Handle macro wrapping.
11857 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
11859 * tbl/main.cc (main): Ignore -T option.
11861 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
11863 * devlj4/generate/special.map: Add definition of \(nb.
11865 * tmac/tmac.dvi: Add definition of \(nb.
11867 * troff/dictionary.c (dictionary::dictionary): association::v gets
11868 initialized by association::association.
11870 * tmac/Makefile.sub: Avoid using temporary files when installing.
11872 * troff/env.cc (environment::set_font): Make bad font number a
11875 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
11877 * Makefile.in (datadir): Use share rather than lib.
11879 * groff/groff.cc (basename): Rename to xbasename.
11881 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
11883 * Makefile (CCLIBS): Don't use.
11884 * Makefile.ccpg: Likewise.
11886 * acgroff.m4: Rename to...
11887 * aclocal.m4: Modify extensively for autoconf 2.
11888 * configure.in: Likewise.
11889 * Makefile.in: Likewise.
11891 * groff/pipeline.c (const): Declare as empty if __STDC__ not
11893 (xstrsignal): Check for definition of NSIG. Conditionalize
11894 on SYS_SIGLIST_DECLARED. Make return type const.
11896 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
11898 * troff/input.cc (interpolate_macro): Rephrase missing space
11901 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
11903 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
11904 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
11905 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
11906 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
11907 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
11908 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
11909 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
11910 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
11911 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
11912 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
11913 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
11916 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
11918 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
11920 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
11922 (macro_iterator::macro_iterator): Add additional argument.
11924 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
11926 * troff/div.cc (vertical_size::vertical_size): In place of integer
11927 specifying line spacing use cunits specifying post vertical
11929 (macro_diversion::output, top_level_diversion::output): Likewise.
11930 * troff/div.h: Change declarations accordingly.
11931 * troff/env.cc (pending_output_line): Replace ls field by post_vs
11933 (pending_output_line::pending_output_line,
11934 pending_output_line::output, environment::output,
11935 environment::output_line, environment::output_title,
11936 environment::hyphenate_line): In place of
11937 integer specifying line spacing use cunits specifying post vertical
11939 (environment::environment): Add post_vertical_spacing and
11940 prev_post_vertical_spacing arguments.
11941 (environment::get_post_vertical_spacing): New function.
11942 (environment::total_post_vertical_spacing): New function.
11943 (environment::post_vertical_spacing): New function.
11944 (init_env_requests): Initialize pvs request and .pvs register.
11945 * troff/env.h: Change declarations.
11947 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
11949 * tmac/tmac.pspic: Immediately remove the temporary file.
11951 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
11953 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
11954 height is specified.
11956 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
11958 * tbl/table.c (struct vertical rule, class table_entry): Use int
11959 not short for start_row and end_row.
11961 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
11963 * troff/input.cc (trapping_blank_line, blank_line_macro): New
11965 (diverted_space_node::reread, process_input_stack): Call
11966 trapping_blank_line() rather than blank_line().
11967 (init_input_requests): Bind "blm" to blank_line_macro().
11969 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
11971 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
11973 * troff/env.cc (environment::possibly_break_line): Require that
11974 width total excluding width of final space node be greater than
11975 the target text length.
11977 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
11979 * troff/node.cc (kern_pair_node::vertical_extent): New function.
11981 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
11983 * troff/node.cc (charinfo_node): New class.
11984 (glyph_node, composite_node): Derive from charinfo_node. Change
11985 member functions accordingly.
11987 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
11989 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
11991 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
11993 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
11995 * devps/generate/textmap (notsubset): Add.
11997 * tmac/tmac.a4: New file.
11999 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
12001 * pic/main.cc (had_parse_error): New variable.
12002 (do_picture, do_whole_file): Set had_parse_error if yyparse()
12004 (main): Return 1 if had_parse_error is true.
12006 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
12008 * grolj4/lj4.cc (main): Avoid use of strtoul.
12010 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
12012 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
12013 iso_8859_1 or $LESSCHARSET is latin1.
12015 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
12017 * hpftodit: New directory.
12018 * Makefile.in (CCPROGDIRS): Add hpftodit.
12019 * devlj4/generate: New directory.
12021 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
12023 * configure.in: Don't use AC_VFORK.
12024 * groff/pipeline.c (run_pipeline): Use fork() always.
12026 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
12028 * grops/ps.cc (main): Use %1 not %s in error message for -w.
12030 * Makefile.in (CCPROGDIRS): Add grolj4.
12031 (DEVDIRS): Add devlj4.
12032 * grolj4, devlj4: New directories.
12033 * tmac/troffrc: Handle lj4.
12034 * tmac/tmac.lj4: New file.
12036 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
12038 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
12040 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
12042 * troff/input.cc (do_if_request): At end of second string, switch
12043 environments before getting next token.
12045 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
12047 * devps/psstrip.sed: Split rule that strips whitespace on either
12048 side of delimiters.
12050 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
12052 * troff/node.h (font_family::make_definition): Add return value to
12053 declaration. * troff/symbol.h (symbol::operator==,
12054 symbol::operator!=): Likewise.
12056 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
12058 * groff/groff.cc (main, help, synopsis): Handle -S.
12059 (possible_command::insert_arg): New function.
12061 * tmac/tmac.safer: New file.
12062 * tmac/msafer.man: New file.
12063 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
12065 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
12067 * pic/pic.h, pic/main.cc (safer_flag): New variable.
12068 * pic/pic.y (placeless_element): Avoid unsafe operations if
12069 `safer_flag' is set.
12070 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
12072 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
12074 * eqn/lex.cc (get_token): Put call to add_context() in block to
12075 work around Sun C++ 4.0 bug.
12077 * include/stringclass.h (operator +): Use ?: instead of `if' to
12078 work around Sun C++ 4.0 bug.
12080 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
12082 * tbl/main.cc (process_format): Accept - as a synonym for the _
12085 * libbib/index.cc (minus_one): Don't declare as const.
12087 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
12089 * troff/input.cc (get_char_for_escape_name): Push back a newline.
12091 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
12093 * troff/input.cc (write_macro_request): New function.
12094 (init_input_requests): Bind write_macro_request to writem.
12096 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
12098 * tmac/tmac.s (@EN): Turn filling back on even if there was no
12101 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
12103 * tmac/tmac.s (@TS): Renamed from TS.
12104 (TS): Call LP then TS again.
12105 (cov*ab-init): Alias @TS to TS.
12107 * tmac/tmac.s: Allow QP or RS to initialize.
12109 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
12110 Move initializations of PS and LL here.
12111 (par@init): Don't initialize HY. Avoid changing environment 0.
12112 (par*env-init): Don't all par@reset.
12114 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
12116 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
12118 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
12120 * Makefile.in (MDEFINES): Add LDFLAGS.
12121 (LDFLAGS): Add definition line.
12123 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
12125 * troff/input.cc (get_optional_char): Split off error check into...
12126 (check_missing_character): New function.
12127 * troff/token.h: Declare it.
12128 * troff/env.cc (margin_character): Don't call get_optional_char.
12129 Only call tok.next() after making the node.
12131 * include/lib.h (getopt): Make 2nd argument char *const *.
12133 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
12135 * nroff/conftest.sh: Deleted.
12137 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
12139 * pic/make-dos-dist: Deleted.
12141 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
12143 * devps/psstrip.sed: Strip comments before stripping trailing
12146 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
12148 * Version 1.09 released.
12150 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
12152 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
12154 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
12156 * libgroff/font.cc (font::load_desc): Fix typo in error message.
12158 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
12160 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
12161 about returning without a value.
12163 * troff/charinfo.h (charinfo::get_special_translation): Cast
12164 TRANSLATE_NONE to int.
12166 * refer/token.cc (lookup_token, store_token): Remove bogus loop
12167 test. Fix test so that it works with n unsigned.
12169 * pic/pic.y (defaults_table): Fully bracket initializer.
12170 * pic/lex.cc (lookup_keyword): Likewise.
12171 * eqn/lex.cc (token_table, def_table): Likewise.
12172 * eqn/box.cc (param_table): Likewise.
12173 * troff/input.cc (warning_table): Likewise.
12174 * libgroff/font.cc (table): Likewise.
12175 * grops/ps.cc (ps_printer::special): Likewise.
12176 * grops/psrm.cc (resource_manager::process_file): Likewise.
12177 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
12178 * refer/command.cc (command_table): Likewise.
12179 * addftinfo/addftinfo.cc (param_table): Likewise.
12181 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
12182 about temp's being unused.
12183 (unused): New function.
12185 * groff/pipeline.cc: Declare c_fatal.
12187 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
12190 * libbib/index.cc (index_search_item::load): Prevent compiler
12191 warnings about fd_closer's being unused.
12192 (unused): New function.
12194 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
12196 * troff/input.cc (copy_mode_error): Make `prefix' static.
12199 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
12201 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
12202 HAVE_CC_OSFCN_H and modify accordingly.
12204 * troff/input.cc (init_charset_table): radicalex overlaps
12207 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
12208 udodo!hans@relay.NL.net).
12209 * groff/configure.in: Call it.
12211 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
12212 * groff/configure.in: Call it.
12213 * include/lib.h: Conditionalize declaration of pclose.
12215 * troff/div.cc (last_page_number): New global variable.
12216 (top_level_diversion::begin_page): Exit if we just printed the
12218 * troff/div.h (last_page_number): Declare it.
12219 * troff/input.cc (parse_output_page_list): Set last_page_number.
12221 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
12222 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
12223 tmac/tmac.X: Likewise.
12224 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
12225 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
12227 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
12229 * tmac/doc-ditroff (hK): Remove groff specific code which
12230 prevented page-breaks between separate manual entries. If this is
12231 the first page, don't set the page number to 1.
12233 * acgroff.m4 (GROFF_POSIX): New macro.
12234 * configure.in: Use it.
12236 * troff/node.cc (class real_output_file,
12237 real_output_file::real_output_file,
12238 real_output_file::~real_output_file): Conditionalize use of
12239 popen/pclose on POPEN_MISSING.
12240 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
12241 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
12242 (pipe_source): Similarily.
12244 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
12246 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
12247 presence of declarations by trying to compile example with
12248 conflicting declarations. (gcc only gives a warning for missing
12251 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
12253 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
12254 (from Ulrich Lauther).
12256 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
12258 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
12260 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
12262 * indxbib/indxbib.cc (write_hash_table): Add code for case where
12263 pointers and ints have different sizes.
12265 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
12267 * tmac/tmac.s (par*env-init): Call par@reset.
12269 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
12271 * tmac/tmac.s (@IP): Switch to a new environment when diverting
12273 (par*push-tag-env, par*pop-tag-env): New macros.
12275 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
12277 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
12278 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
12280 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
12281 comment. Include <time.h>.
12283 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
12285 * grops/ps.cc (is_small_h, is_small_v): Deleted.
12286 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
12289 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
12291 * troff/input.cc (read_request): Only print a prompt if reading
12292 from the terminal. Also clearerr on EOF if reading from the
12293 terminal. Declare isatty.
12295 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
12297 * refer/label.y: Rename map_t to map_func and extractor_t to
12300 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
12302 * include/assert.h: Don't use volatile.
12303 * libgroff/assert.cc: Likewise.
12305 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
12307 * troff/input.cc (abort_request): Look at character in tok before
12308 calling get_copy().
12310 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
12312 * troff/troff.h (NO_RETURN): Deleted.
12313 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
12314 * troff/input.cc (exit_troff): Likewise
12316 * Makefile.in: Remove `Making ...' messages since GNU make now
12319 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
12321 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
12323 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
12324 to constant 1 inch.
12326 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
12328 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
12330 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
12332 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
12333 MARK_REG if there was no left delimiter.
12335 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
12337 * pic/troff.cc (troff_output::text): Set line thickness to
12338 relative before outputting text.
12340 * tmac/tmac.e (@k): Don't zero ?T.
12343 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
12345 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
12347 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
12349 * troff/input.cc (decode_args): Warn about unquoted tabs (from
12352 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
12354 * troff/input.cc (ignoring): New variable.
12355 (ignore): Set ignoring during call to do_define_macro.
12356 (do_define_macro): Clear ignoring before interpolating terminating
12358 (copy_mode_error): New function.
12359 (get_char_for_escape_name, read_long_escape_name,
12360 interpolate_arg): Use copy_mode_error.
12361 (warning_table): Add WARN_IG.
12362 * troff/troff.h (WARN_IG): Declare.
12363 (WARN_TOTAL): Change accordingly.
12365 * groff/pipeline.c (strsignal): Rename to xstrsignal.
12366 * groff/groff.cc (strsignal): Delete declaration.
12368 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
12370 * troff/div.cc (page_offset): Use 'm' as default scaling.
12372 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
12374 * nroff/nroff.sh: Ignore -u.
12376 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
12378 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
12380 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
12382 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
12384 (B2): With -Tascii, leave additional vertical space before
12385 and after. Ensure that the left and right indent is restored to
12386 what it was even if the point size changes. Don't call
12387 par@finish. Change the indent, line length and title length
12388 directly. With -Tascii, make the width of the box 1n less.
12389 (B1): Remember 1n at the current point size. Don't call
12390 par@reset. Change the indent, line length and title length
12391 directly. Ensure that the temporary indent is preserved.
12392 (par*box-mark-top): Turn off no spacing mode.
12394 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
12396 * Makefile.in (dist): Use .gz suffix.
12398 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
12400 * troff/input.cc (main): Add return 0.
12401 * pic/main.cc (main): Use return instead of exit.
12402 * tbl/main.cc (main): Likewise.
12403 * eqn/main.cc (main): Likewise.
12404 * grops/ps.cc (main): Likewise.
12405 * grotty/tty.cc (main): Likewise.
12406 * groff/groff.cc (main): Likewise.
12407 * grodvi/dvi.cc (main): Likewise.
12408 * refer/refer.cc (main): Likewise.
12409 * indxbib/indxbib.cc (main): Likewise.
12410 * lkbib/lkbib.cc (main): Likewise.
12411 * soelim/soelim.cc (main): Likewise.
12412 * addftinfo/addftinfo.cc (main): Likewise.
12413 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
12414 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
12416 * troff/token.h (process_input_stack): Don't declare as static.
12417 * troff/input.cc: Likewise.
12419 * troff/node.c (invalidate_fontno): Make it a static member of
12420 class font_family. Change callers.
12421 * troff/node.c: Change declaration.
12423 * tbl/main.cc (struct input_entry_format): Add explicit public
12425 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
12426 struct double_hline_stuff): Likewise.
12427 * tbl/table.h (struct entry_format): Likewise.
12428 * pic/object.h (struct saved_state): Likewise.
12430 * include/stringclass.h: Add forward declarations of friend
12431 functions that are later declared as inline. Don't include inline
12432 specifier in friend declaration.
12434 * libgroff/lib.h: Declare popen and pclose.
12435 * acgroff.m4 (GROFF_POPEN): New macro.
12436 * configure.in: Call it.
12438 * include/lib.h (PI): New constant. Undef first if necessary.
12439 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
12440 * grops/ps.cc (degrees, radians): Likewise.
12441 * libgroff/font.cc (font::get_skew): Likewise.
12443 * grops/ps.cc (is_ascii): New function.
12444 (ps_output::put_string): Use is_ascii. Use csprint rather than
12446 (ps_printer::define_encoding): Use csspace.
12447 * libgroff/strtol.c (ISASCII): New macro.
12448 (strtol): Cast arguments to is*() and tolower() to unsigned char.
12449 Use ISASCII rather than isascii.
12450 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
12451 * libgroff/cset.cc: Likewise.
12452 * libdriver/input.cc: Include cset.h.
12453 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
12456 * refer/refer.cc (main): Use %ld rather than %d for longs.
12458 * libbib/index.cc (index_search_item_iterator::get_tag): Use
12461 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
12463 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
12465 * troff/input.cc (hyphenation_code): Skip white space between
12468 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
12470 * tbl/table.h (table::entry_list_tailp): New member.
12471 (table::table): Initialize it.
12472 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
12475 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
12477 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
12478 with negative horizontal positions. Remove casts of glyph::hpos to
12480 (USHRT_MAX): Delete definition.
12481 (SHRT_MAX, SHRT_MIN): New definitions.
12482 (glyph::hpos): Change type to short.
12483 (tty_printer::end_page): Output multiple backspaces if necessary.
12484 Remove casts of glyph::hpos to int.
12486 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
12488 * tmac/tmac.s (@RT): New definition.
12490 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
12492 * refer/refer.cc (do_file): Make sure current_filename is set when
12495 * pic/common.cc (common_output::dot_line): Handle zero length
12498 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
12500 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
12501 (par@init): Initialize \n[HY].
12503 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
12505 * troff/dictionary.cc (dictionary::remove): Continue when
12508 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
12510 * Makefile.com (.y.cc): Avoid ending up with two versions of
12513 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
12515 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
12516 (\(,C): Likewise. Also fix typo.
12518 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
12520 * lib.h: Delete extraneous semi-colon.
12522 * Add pso request: `so' from a pipe.
12523 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
12524 (file_iterator::close): New function.
12525 (file_iterator::~file_iterator, file_iterator::next_file): Use
12526 file_iterator::close.
12527 (file_iterator::backtrace): Say `process' rather than `file' when
12528 the stream is popened.
12529 (pipe_source): New function.
12530 (init_input_requests): Bind ".pso" to pipe_source.
12532 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
12534 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
12536 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
12537 digits in lower case.
12539 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
12541 * Version 1.08 released.
12543 * Makefile.in (dist): Insert || true after ln -s commands that
12546 * mm: Update to mm 1.16.
12548 * acgroff.m4 (GROFF_CSH_HACK): New macro.
12549 * configure.in: Call GROFF_CSH_HACK. Substitute for
12551 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
12553 * nroff/Makefile.sub (nroff): New target.
12554 (install_data): Install nroff.
12555 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
12556 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
12558 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
12560 * eqn/Makefile.sub (neqn): Add chmod +x.
12562 * grog/Makefile.sub (grog): Remove spurious semi-colon.
12564 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
12566 * troff/input.cc (string_iterator::string_iterator()): Initialize
12569 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
12571 * troff/div.cc (macro_diversion::space,
12572 top_level_diversion::space): Don't set high_water_mark.
12573 (macro_diversion::output, top_level_diversion::output): Don't
12574 include post line space in high water mark.
12576 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
12578 * eqn/eqn.y: Don't define YYDEBUG.
12579 * pic/pic.y: Likewise.
12581 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
12583 * tmac/tmac.e ([3): Add space after comma following editors.
12584 Change double spaces to single spaces.
12585 ([4): Change double spaces to single spaces.
12587 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
12588 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
12589 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
12590 after %!PS-Adobe- (for Newsprint).
12592 * troff/div.cc (top_level_diversion::begin_page): When
12593 before_first_page is 1, set page_number to 1.
12595 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
12597 * eqn/box.cc (box::top_level): Protect equation with \&.
12599 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
12601 * groff/groff.cc (possible_command::set_name): Delete old name.
12603 * groff/groff.cc (possible_command::~possible_command): Use
12606 * troff/node.cc (troff_output_file::begun_page): New member.
12607 (troff_output_file::troff_output_file): Initialize it.
12608 (troff_output_file::really_begin_page): Only output V command if a
12609 page has been begun.
12611 * pic/pic.y (placeless_element): Delete argument to PRINT after
12614 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
12616 * Make wrapman work.
12617 * troff/div.h (class top_level_diversion): Replace
12618 first_page_begun by before_first_page (with opposite sense).
12619 * Change first_page_begun to before_first_page inverting sense.
12620 * troff/div.cc (class nl_reg): New class.
12621 (init_div_requests): Use class nl_reg for \n(nl.
12622 (top_level_diversion::begin_page): Don't call
12623 output_file::begin_page if before_first_page is 2;
12624 reset before_first_page afterwards. If have_next_page_number is
12625 false, then always increment page_number.
12626 * tmac/tmac.an: Set traps within TH rather than at the top-level.
12627 Restore compatibility mode after loading, and then disable
12628 compatibility mode in TH.
12630 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
12632 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
12634 * troff/node.h (output_file::trailer): Declare.
12635 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
12636 * troff/node.cc (output_file::trailer): New function.
12637 (troff_output_file::~troff_output_file): Move most code into...
12638 (troff_output_file::trailer): New function.
12639 (class troff_output_file): Delete page_length member. Declare
12641 (troff_output_file::really_begin_page): Use current page length
12642 for final V command.
12644 * tbl/main.cc (struct options): New decimal_point_char member.
12645 (options::options): Initialize this.
12646 (process_options): Implement decimalpoint option.
12647 (process_data): Pass decimal_point_char option to table::table.
12648 * tbl/table.h (class table): New decimal_point_char member.
12649 (table::table): Add additional argument.
12650 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
12651 second argument specifying decimal point character. Use this
12653 (table::table): Initialize decimal_point_char.
12654 (table::add_entry): Change call to find_dot.
12656 * troff/input.cc (get_copy, token::next): Implement \V.
12657 (interpolate_environment_variable): New function.
12659 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
12661 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
12662 * pic/pic.y: Likewise.
12664 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
12666 * refer/ref.cc (reference::insert_field, reference::delete_field):
12668 * troff/number.cc (parse_term): Likewise.
12670 * acgroff.m4 (GROFF_PROG_YACC): New macro.
12671 * configure.in: Use GROFF_PROG_YACC.
12673 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
12675 * Makefile.in (OPTIMIZE): New define.
12676 (DEBUG): Empty by default.
12677 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
12679 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
12680 (GROFF_ARRAY_DELETE): Likewise.
12681 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
12683 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
12685 * devps/psstrip.sed: Use different delimiter on last line (so that
12686 it works with BSD 4.4 sed.)
12688 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
12690 * devps/psstrip.sed: Delete comments.
12692 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
12693 optind, opterr, optarg.
12694 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
12697 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
12699 * Makefile.in (check): Dummy target.
12701 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
12703 * Version 1.07 released.
12705 * Integrate mm 1.11.
12707 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
12708 where start_col was meant.
12710 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
12712 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
12714 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
12716 * troff/input.cc (token::next): Make \z\o'...' and similar things
12719 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
12721 (environment): Add margin_character_flags member.
12722 * env.cc (environment::environment(symbol),
12723 environment::environment(const environment *): Initialize
12724 margin_character_flags.
12725 (margin_character): Rewrite.
12726 (environment::output_line): Add a margin character if
12727 margin_character_flags is non-zero. Turn off the
12728 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
12729 zero, use margin_character_node without copying and then set
12730 margin_character_node to 0.
12732 * devps/DESC.in: Change minimum size to 1000.
12734 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
12736 * troff/symbol.h (symbol::hash): Change return type to unsigned
12738 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
12741 * test-groff: Use -r rather than -x.
12743 * grops/psfig.diff: Include in distribution again.
12745 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
12747 * Makefile.in (dist): Use gzip.
12749 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
12751 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
12752 unistd.h as well as in stdlib.h.
12753 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
12754 defined; otherwise include <sys/types.h> and <unistd.h> if
12755 UNISTD_H_DECLARES_GETOPT is defined.
12757 * configure.in: use builtin(include, ... rather than include(...
12758 * configure: Regenerate with autoconf 1.3.
12760 * libdriver/print.cc (printer::adjust_arc_center): Use new
12761 algorithm suggested by Andy Fyfe.
12763 * libdriver/printer.cc (printer::adjust_arc_center): New function.
12764 * include/printer.h: Declare this.
12765 * grops/ps.cc (ps_printer::draw): Use it.
12766 * grodvi/dvi.cc (dvi_printer::draw): Use it.
12768 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
12770 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
12772 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
12774 * eqn/main.cc (main): Handle "eqn -".
12776 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
12778 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
12780 * mm: Integrate version 1.08.
12782 * pic/troff.cc (troff_output::finish_picture): Set
12783 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
12784 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
12785 if it's not defined. Check whether the register is non-zero rather
12786 than whether it's not defined.
12787 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
12789 * indxbib/indxbib.cc: Move all signal handling into...
12790 * indxbib/signal.c: New file.
12791 * configure.in: Call AC_RETSIGTYPE.
12793 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
12794 * configure.in: Call GROFF_STRUCT_EXCEPTION.
12795 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
12797 * troff/input.cc (token::token, token::operator=): Work round SGI
12799 * pic/object.cc (position::position): Likewise.
12801 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
12803 * pic/pic.h: Move declaration of hypot().
12805 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
12807 * pic/pic.h: Declare hypot().
12809 * pic/pic.h: Define M_PI if necessary.
12811 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
12813 * tmac/tmac.e (re): Add alternative version that doesn't use groff
12816 * devps/prologue.ps (RE): Handle the possibility that the old font
12817 doesn't have a FontName entry.
12819 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
12821 * tmac/tmac.e (fam): Redefine to set family in environment 2.
12822 (@C): Use @fam not fam.
12824 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
12826 * lookbib/lookbib.cc (main): Change type of start to const char *.
12827 * lkbib/lkbib.cc (main): Likewise.
12829 * eqn/lex.cc (definition::definition): Don't use member
12830 initializer syntax for members of anonymous unions.
12832 * troff/input.cc (input_stack::backtrace): Change type of to const
12835 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
12837 * include/stringclass.h (class string): Declare inline friend
12838 functions as inline in class declaration.
12839 * troff/hvunits.h (class hunits, class vunits): Likewise.
12840 * include/refid.h (class reference_id): Likewise
12841 * troff/troff.h (points_to_units(units), scale(units, double)):
12842 Delete declarations.
12843 * libdriver/input.cc (get_char): Delete declaration.
12844 * include/lib.h: Change 2nd argument of getopt from const char **
12846 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
12847 char **' before assigning to a `const char **'.
12848 * tbl/table.cc: Delete extra declarations of prints().
12850 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
12852 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
12853 char **' before assigning to a `const char **'.
12855 * libgroff/errarg.cc (errarg::errarg): Don't use member
12856 initializer syntax for members of anonymous unions.
12858 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
12860 * mm: Integrate version 1.07.
12862 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
12864 * troff/input.c (translate2): Rename to
12865 (translate_no_transparent).
12866 (init_input_requests): Rename tr2 to trnt.
12868 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
12870 * troff/charinfo.h (class charinfo): Add transparent_translate field.
12871 (charinfo::set_translation, charinfo::set_special_translation):
12872 Add second argument that specifies value for
12873 transparent_translate.
12874 (charinfo::get_translation, charinfo::get_special_translation):
12875 Add optional second argument that specifies whether translation is
12876 being used for transparent throughput.
12877 * troff/input.cc (charinfo::set_translation,
12878 charinfo::set_special_translation): Handle second argument.
12879 (charinfo::charinfo): Initialize transparent_translate.
12880 (translate): Split main part off into
12881 (do_translate): New function. Pass argument saying whether
12882 translation applies to transparent throughput.
12883 (translate2): New request.
12884 (init_input_requests): Bind translate2 to `tr2'.
12886 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
12888 * tbl/table.h (class table): Add `nokeep' flag.
12889 * tbl/main.cc (process_options): Handle `nokeep' option.
12890 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
12891 table::do_bottom): Don't output keep/release macro definitions or
12892 calls when `nokeep' option has been specified.
12894 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
12896 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
12898 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
12900 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
12901 block_entry::divert, alphabetic_block_entry::divert): Add extra
12902 argument giving column separation.
12903 (table::compute_widths): Pass column separation to
12904 table_entry::divert().
12905 (block_entry::do_divert): If an entry spans multiple columns and a
12906 minimumum width has been specified for each column, then set the
12907 line length to the sum of the widths (plus possibly the column
12910 * troff/input.cc (set_escape_char): Don't set the escape_char
12911 until after calling has_arg().
12913 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
12915 * tbl/table.cc (table::do_top): Add missing \s0 for double box
12918 * tbl/table.cc (table::print_double_hline): Avoid extra new line
12919 in case where r > nrows - 1.
12921 * tbl/table.cc (BODY_HEIGHT): Deleted.
12922 (LINE_SEP): New definition.
12923 (table::print_single_hline, table::print_double_hline,
12924 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
12925 table::do_row, table::do_top): Use LINE_SEP space before a line
12926 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
12928 * tbl/table.cc (text_entry::print_contents): New function.
12929 (text_string_name, right_text_string_name): Deleted.
12930 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
12931 (simple_text_entry::do_width, numeric_text_entry::do_width,
12932 alphabetic_text_entry::do_width): Don't store the contents of the
12934 (left_text_entry::simple_print, right_text_entry::simple_print,
12935 center_text_entry::simple_print,
12936 alphabetic_text_entry::simple_print,
12937 numeric_text_entry::simple_print): Print the entry directly
12938 instead of using the stored string.
12940 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
12942 * devps/Makefile: Strip PostScript files.
12943 * devps/prologue: Rename to...
12944 * devps/prologue.ps.
12945 * devps/psstrip.sed: New file.
12946 * devps/download: Use .pfa rather than .ps for installed versions
12949 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
12951 * troff/env.cc (input_trap): Give a warning if the argument is out
12954 * troff/env.cc (adjust): Treat negative argument as missing. Round
12955 argument > 5 down to 5.
12957 * troff/env.cc (center, right_justify): Make negative argument zero.
12959 * troff/div.cc (page_offset, vertical_position_traps): Treat
12960 invalid argument as missing.
12961 * troff/env.cc (line_spacing, line_length, title_length, indent,
12962 underline, hyphen_line_max_request, control_char,
12963 no_break_control_char, widow_control_request, adjust, input_trap,
12964 point_size): Likewise.
12965 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
12966 constant_space): Likewise.
12967 * troff/input.cc (compatible, shift, warn_request,
12968 set_escape_char): Likewise.
12970 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
12971 * tbl/table.cc (table::table): Likewise.
12973 * Makefile.dev (install_dev): depends on $(DEVFILES).
12975 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
12977 * devX75, devX75-12, devX100, devX100-12: New directories.
12978 * Makefile.in: Add these to DEVDIRS.
12980 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
12981 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
12982 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
12983 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
12985 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
12986 (uninstall): New target.
12987 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
12988 uninstall_prog, uninstall_dev): New targets.
12990 * troff/div.cc (return_request): Treat an invalid argument as
12993 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
12995 * tmac/tmac.e ((f): Set up the environment even when there's a
12996 current diversion. Transperently throughput a call to @N.
12999 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
13001 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
13002 up to vertical resolution.
13004 * tbl/table.cc (table::do_row): Change row number after printing
13007 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
13009 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
13011 * Rename CHANGES to NEWS.
13013 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
13015 * libgroff/new.cc (operator new): Avoid calling malloc(0).
13017 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
13019 * man.ultrix: Removed.
13021 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
13023 * Makefile.comm (extraclean): Delete files whose names begin with
13026 * pic/troff.cc (troff_output::text): Fix typo in implementation of
13029 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
13031 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
13032 * troff/div.cc (page_length, need_space, space_request): Treat
13033 invalid optional argument as missing.
13034 * troff/env.cc (number_lines): If the first argument is present
13035 but not a number, turn on line numbering, don't change the next
13036 line number and parse the remaining arguments.
13038 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
13040 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
13042 * eqn/box.h: Change declaration accordingly.
13043 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
13044 the specified size was bad but don't give an error. Check for
13046 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
13047 * eqn/lex (do_size): Likewise.
13049 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
13051 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
13052 compatible headers.
13054 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
13056 * tbl/table.cc (table::init_output): Improve error message when
13057 table won't fit on one page.
13059 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
13061 * pic/troff.cc (troff_output::start_picture): Generate line
13062 containing a horizontal motion equal to the width of the picture.
13064 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
13065 using GROFF_COMMAND_PREFIX environment variable.
13067 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
13069 * mdate.sh: Use $NF rather than $(NF).
13071 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
13073 * pic/main.cc (main): Use %1 not %c in argument to warning.
13075 * eqn/main.cc (main): Output code to check that geqn was given the
13078 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
13080 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
13081 `ln -s ../Makefile .; make; rm -f Makefile'.
13083 * troff/hyphen: Rename to...
13085 * troff/input.cc (main): Delete -H option. Don't call
13086 read_hyphen_file().
13087 * troff/env.cc: Include searchpath.h and macropath.h.
13088 (exception_dictionary): Deleted.
13090 (read_hyphen_file): Deleted.
13091 (hyphenation_language): New struct.
13092 (class trie, class hyphen_trie): Move declarations up.
13093 (trie_node::~trie_node): Deleted.
13094 (trie::delete_trie_node): New function.
13095 (trie::do_delete): New pure virtual function.
13096 (hyphen_trie::do_delete): New function.
13097 (trie::~trie): New function.
13098 (hyphen_trie::~hyphen_trie): New function.
13099 (trie::clear): No need to chcek that tp is not 0.
13100 (current_language, language_dictionary): New variables.
13101 (hyphen_word): Give an error if no current language. Use
13102 exceptions dictionary in current language.
13103 (hyphen_trie::read_patterns_file): Find file using macro_path.
13104 Allow comments (starting with %) in patterns file. Don't make it
13105 a fatal error if the file can't be found.
13106 (hyphenate): Return if no current language. Get the exceptions
13107 dictionary and the hyphenation patterns from the current language.
13108 (set_hyphenation_language): New variable.
13109 (hyphenation_patterns_file): New function.
13110 (hyphenation_language_reg): New class.
13111 (hyphenation_language_reg::get_string): New function.
13112 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
13113 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
13115 * groff/groff.cc (main, help, synopsis): Delete -H option.
13116 * include/Makefile.sub: Don't define HYPHENFILE.
13117 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
13118 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
13119 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
13120 hyphenation patterns.
13122 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
13124 * eqn/neqn.sh: New file.
13125 * eqn/Makefile.sub: Handle neqn.sh.
13127 * eqn/eqn.h: Declare `nroff' variable.
13128 * eqn/box.cc (param_table): Add `nroff' param.
13129 (nroff): Define it.
13130 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
13132 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
13134 * troff/troff.h (WARN_FONT): New warning.
13135 (WARN_TOTAL): Change accordingly.
13136 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
13137 (warning_table): Add WARN_FONT.
13138 * troff/node.cc (mount_font_no_translate): Pass argument to
13139 font::load_font. If this is non-zero, give a warning.
13140 Don't give an error message when accessing a font that has already
13141 been found to be invalid.
13142 * include/font.h (font::load, font::load_font): Add additional
13143 optional argument which suppresses error message if the font is
13145 * libgroff/font.cc (font::load_font): Handle additional argument.
13146 (font::load): Add additional argument. If this is non-null, set it
13147 to 1 and don't give error message.
13149 * include/printer.h (printer::end_page): Add argument giving
13151 * libdriver/input.cc (do_file): Pass this.
13152 * grops/ps.cc (ps_printer::end_page): Add argument.
13153 * grodvi/dvi.cc (dvi_printer::end_page,
13154 draw_dvi_printer::end_page): Add argument.
13155 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
13156 columns_per_page members. New member nlines.
13157 (DEFAULT_LINES_PER_PAGE): Deleted.
13158 (tty_printer::tty_printer): Don't compute lines_per_page from
13159 font::paperlength. Don't compute columns_per_page from
13161 (tty_printer::add_char): Don't check horizontal position against
13162 columns_per_page. Grow glyphs vector if neccessary.
13163 (tty_printer::end_page): Add argument giving page_length in units.
13164 Discard lines past end of page.
13166 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
13168 * tmac/tmac.tty-char: Fix definition of \(/l.
13170 * tmac/tmac.X: Define \(en.
13172 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
13174 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
13175 lpq, then use lp rather than lpr.
13177 * tmac/tmac.s (par@reset): Don't call `ad'.
13178 (par*env-init): Call `ad'.
13180 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
13182 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
13185 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
13186 * indxbib/indxbib.cc: Likewise.
13188 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
13190 * libgroff/putenv.c: New file.
13191 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
13192 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
13193 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
13194 stdlib.h with AC_HAVE_HEADERS.
13196 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
13198 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
13201 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
13203 * eqn/box.cc (gsize): Make it an int.
13204 (set_gsize): Parse argument handling increment or decrement.
13205 (box::top_level): Convert gsize to a string.
13207 * troff/input.cc (exit_troff): Make buf unsigned char [].
13208 Call to make_temp_iterator casts buf to char*.
13210 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
13212 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
13213 * Makefile.cpg (depend.temp): Likewise.
13215 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
13217 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
13219 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
13221 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
13223 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
13225 * Version 1.06 released.
13227 * Integrate mm 1.04.
13229 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
13231 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
13233 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
13235 * afmtodit/afmtodit.pl: Add -n option that disables generation of
13237 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
13238 afmtodit. Regenerate.
13240 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
13241 @f back past the current position.
13243 * tmac/tmac.e: Change calls to @R so that comments are not part of
13246 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
13248 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
13250 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
13251 check that we can link a call to a function declared in <stdio.h>.
13252 (GROFF_UNISTD_H): New macro.
13253 * configure.in: Call it.
13254 * Makefile.in: Document it.
13255 * include/posix.h: New file.
13256 * troff/troff.h: Don't include <osfcn.h>
13257 * troff/input.cc: Include posix.h.
13258 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
13260 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
13261 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
13263 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
13264 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
13265 * libbib/search.cc (O_RDONLY): Delete definition.
13266 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
13267 Don't include <osfcn.h>.
13269 * acgroff.m4 (GROFF_TIME_T): New macro.
13270 * configure.in: Call it.
13271 * Makefile.in: Document it.
13273 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
13274 * configure.in: Call it.
13275 * Makefile.in: Document -DTRADITIONAL_CPP.
13276 * include/ptable.h: Don't include generic.h.
13277 (name2): Define it.
13279 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
13280 Afterwards remove [T1 and [T2.
13281 (ref*spec!0, ref*spec!2): Use T1 rather than T.
13282 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
13283 (ref*add-T2): Renamed from ref*add-T.
13284 (ref*add-T1): New macro.
13286 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
13288 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
13290 * libbib/index.cc: Include <fcntl.h>.
13291 (O_RDONLY): Define if necessary.
13292 (make_index_search_item, index_search_item_iterator::get_tag,
13293 index_search_item::check_files): Use O_RDONLY.
13294 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
13295 (O_RDONLY): Define if necessary.
13296 (search_list::add_file): Use O_RDONLY.
13297 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
13299 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
13302 * libbib/index.cc (S_ISREG): Define it if necessary.
13303 (index_search_item::load): Use S_ISREG.
13305 * include/driver.h: Include <errno.h>.
13307 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
13309 * eqn/box.cc (body_height): Increase default value to 85.
13310 (body_depth): Increase default value to 35.
13312 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
13314 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
13315 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
13316 protected from expansion with \E.
13318 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
13320 * Makefile (Makefile): New target.
13322 * Makefile.sub (configure, distfiles): New targets.
13324 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
13327 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
13329 * eqn/box.cc (param_table): Add body_height and body_depth.
13331 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
13333 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
13335 * psbb/Makefile.sub: Don't link with libgroff.a.
13337 * acgroff.m4 (GROFF_PUTENV): New macro.
13338 * configure.in: Call GROFF_PUTENV.
13339 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
13340 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
13343 * troff/env.cc (distribute_space): Rename force_forward argument
13344 to force_reverse. Reverse the list if force_reverse is true.
13346 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
13348 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
13350 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
13351 height or depth to be negative. Guard against SUP_RAISE quantity
13354 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
13356 * devps/generate/textmap: Add `an' (arrowhorizex).
13357 * tmac/tmac.ps: \(an overlaps horizontally.
13358 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
13360 * devps/symbolchars: Add arrowverttp, arrowvertbt.
13361 * devps/textmap: Add arrowvertex.
13362 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
13363 updownarrow delimiters.
13364 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
13366 * tbl/table.cc (simple_entry::position_vertically,
13367 block_entry::position_vertically): For a centered entry, perform
13368 the motion in two stages.
13370 * refer/refer.cc (split_punct): Don't call lookup_token if there
13373 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
13375 * troff/input.cc (token::next): Delete token_node after copying
13378 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
13381 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
13383 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
13385 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
13387 * grops/ps.cc (usage): -b option takes an argument.
13389 * devps/prologue (PLG): New procedure.
13390 * grops/ps.cc (main, usage): New -g option.
13391 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
13394 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
13396 * include/cset.h: Include <limits.h> if we have it.
13398 * libgroff/illegal.cc: New file.
13399 * include/lib.h (illegal_input_char): Use table.
13400 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
13401 * pic/lex.cc (ARG1): Renumber to 14.
13402 * eqn/lex.cc (ARG1): Likewise.
13404 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
13405 (eg 1.05.90) correctly.
13407 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
13409 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
13410 Rename $r and $R registers to $v and $V.
13411 ($r, $R): Initialize to 0.
13412 (@v, @V): New macros.
13416 * troff/input.cc (main, usage): Add -R option that says not to
13418 * eqn/main.cc (main, usage): Rename -n to -R.
13420 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
13422 * devps/DESC.in: Leave font positions 5-9 blank.
13423 * devdvi/DESC.in: Likewise.
13425 * grog/grog.pl: Handle `.PS <file' correctly.
13427 * troff/input.cc (input_stack::push): Improve error message when
13428 input stack limit exceeded.
13430 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
13432 * refer/refer.cc (main): Fix typo in handling of `a' option.
13434 * refer/refer.cc (do_bib): In state START after a newline remain
13437 * groff/groff.sh: Deleted.
13438 * groff/Makefile.sub: Delete handling of groff.sh.
13440 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
13441 to determine whether to use \X'ps:...'.
13442 * tmac/troffrc: Set 0p register to 0.
13443 * tmac/tmac.ps: Set 0p register to 1.
13445 * groff/groff.cc: Support -X option. Give warning for -TXps and
13446 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
13447 * tmac/troffrc: Support -r.X=1.
13449 * pic/troff.cc (troff_output::dot): Don't test
13450 zero_length_line_flag.
13452 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
13454 * include/lib.h: Declare getopt() and friends unless
13455 STDLIB_H_DECLARES_GETOPT is defined.
13457 * doc/chars.tr: Delete.
13458 * man/groff_char.man: New file.
13460 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
13462 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
13463 user has changed register format.
13465 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
13467 * groff/groff.cc: Get rid of device_table. Get postprocessor from
13468 `postpro' command in DESC file. Get spooler command from `print'
13469 command in DESC file. Execute spooler command with /bin/sh.
13471 * groff/groff.cc: Split Unix-specific parts into...
13472 * groff/pipeline.c: New file.
13475 * COPYING: New file.
13476 * all files: Update copyright notices.
13478 * Rearrange files. Redo Makefiles. Use autoconf.
13480 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
13482 * troff/input.c (charinfo_to_node_list): Interpret character
13483 definition with escape_char of `\'.
13485 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
13487 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
13488 Define INT_DIGITS as big enough for 64-bit integer.
13489 * lib/strtol.c: Don't include lib.h.
13490 * lib/lib.h: Delete ifdef __cplusplus stuff.
13492 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
13494 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
13495 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
13496 get DESC from current directory.
13498 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
13500 * tbl/main.c (main): Always reset the line number when reading
13503 * tbl/table.c (table::print_single_hline, table::print_double_hline,
13504 table::define_bottom_macro, table::do_row, table::do_top): Round
13505 vertical spacing up to vertical resolution.
13507 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
13509 * ps/ps.h (enum resource_type): Avoid comma at end of
13511 * dvi/dvi.c (class dvi_printer): Likewise.
13512 * dvi/tfmtodit.c (gf::load): Likewise.
13513 * refer/label.y (struct expression): Likewise.
13514 * refer/refer.c (class label_processing_state): Likewise.
13515 * refer/indxbib.c (do_file): Likewise.
13516 * troff/troff.c (enum warning_type): Likewise.
13517 * tbl/main.c (process_data): Likewise.
13518 * troff/charinfo.h (class charinfo):
13520 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
13522 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
13524 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
13526 * groff.c: Move to new groff subdirectory.
13527 * groff/Makefile: New file.
13528 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
13530 * man/mdate.sh: Use ls -L if supported.
13532 * Consolidate all header files produced by gendef into lib/defs.h.
13533 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
13534 Don't include path.h.
13535 * lib/Makefile (path.h): Don't generate.
13536 * troff/input.c: Include defs.h. Don't include config.h.
13537 * troff/Makefile (config.h): Don't generate.
13538 * refer/index.h: Don't include suffix.h.
13539 * refer/index.c: Include defs.h.
13540 * refer/indxbib.c: Include defs.h.
13541 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
13543 * refer/Makefile (suffix.h, path.h): Don't generate.
13544 * groff.c: Don't include config.h. Include defs.h.
13545 * Makefile (config.h): Don't generate.
13546 (lib/defs.h): Generate.
13547 (topclean): Remove lib/defs.h.
13549 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
13551 * lib/malloc.c, lib/getpagesize.h: Deleted.
13552 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
13554 * lib/Makefile: Delete malloc-related stuff.
13555 * lib/new.c: Workaround COOKIE_BUG if necessary.
13557 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
13558 needed header files directly.
13559 * refer/refer.h: Omit definition of DEFAULT_INDEX.
13560 * Makefile: Include definition of DEFAULT_INDEX in path.h.
13562 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
13564 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
13566 * lib/font (font::load_desc, font::load): Don't split argument of
13568 (font::handle_unknown_font_command): Change type.
13569 * ps/ps.c (ps_font::handle_unknown_font_command,
13570 handle_unknown_desc_command): Change type.
13571 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
13573 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
13575 * lib/font.h (font::handle_unknown_font_command): Add file and
13577 * lib/font.c (font::handle_unknown_font_command):
13578 * ps/ps.c (ps_font::handle_unknown_font_command):
13579 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
13580 lineno arguments. Use _with_file_and_line functions for error
13583 * lib/fontfile.c (font::unknown_desc_command_handler): New static
13585 * lib/font.c (font::set_unknown_desc_command_handler): New
13587 (font::load_desc): For unknown commands, call
13588 unknown_desc_command_handler if not null.
13589 * lib/font.h (class font): Declare them.
13590 (FONT_COMMAND_HANDLER): New typedef.
13591 * ps/ps.c (handle_unknown_desc_command): New function.
13592 (main): Set bflag if we had a -b option. Call
13593 font::set_unknown_desc_command_handler.
13594 (broken.h): Don't include.
13595 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
13597 * ps/devps/Makefile: Add `broken' command to DESC file using
13598 BROKEN_SPOOLER_FLAGS.
13600 * macros/tmac.e ([, ]): Add as synonyms for { and }.
13602 * macros/tmac.e ($p): Only exdent if \$3 > 0.
13604 * macros/tmac.e (@R, @S): New macros.
13605 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
13606 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
13607 Declare $H, $[0-9], .. macros with @S.
13608 Declare |0, |1, |2, |3 strings with @S.
13610 * macros/tmac.e (@S): Rename to @U.
13612 * macros/tmac.e (@z): Define @b and bp as empty instead of
13615 * macros/tmac.e (@m): Deleted.
13616 (@h): Don't call @m.
13617 (@z): Don't set @m trap.
13619 * macros/tmac.e ($h, $f): Define |z as empty string.
13621 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
13624 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
13626 ()f): Likewise for * register.
13628 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
13629 argument is missing, don't change $R. Call sr with three
13630 arguments when initializing.
13632 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
13634 * macros/tmac.e (sr): New macro.
13635 Initialize $r and $R using sr.
13637 * macros/tmac.e (,): Delete \*(#[.
13639 * troff/env.c (set_tabs): Read the tab type even if the position
13640 is bad. Allow the position of the first tab stop to be negative.
13642 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
13644 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
13646 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
13647 rather than -DPATHCONF_MISSING.
13648 * Makefile: Get rid of PATHCONF_MISSING.
13650 * refer/map.c: New file.
13651 * refer/index.c: Interface to mmap through map.c. Rename map_size
13653 * refer/Makefile: Handle map.c.
13654 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
13656 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
13658 * Makefile: RANLIB should be `true' if there is no ranlib.
13659 * lib/Makefile (libgroff.a): Simplify.
13660 * driver/Makefile (libdriver.a): Simplify.
13662 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
13663 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
13666 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
13668 * troff/env.c (compare_ranges): Declare as extern "C".
13670 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
13672 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
13674 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
13676 * pic/troff.c (troff_output::text): Merge in grops_output::text,
13677 but conditionalize use of \X based on \*(.T.
13678 (grops_output::*): Deleted.
13679 * pic/output.h: Delete declaration of make_grops_output.
13680 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
13681 by default. -n sets it to 0.
13682 (usage): Corresponding changes.
13683 * groff.c (main): Don't pass -x or -p to pic.
13684 * groff.sh: Likewise.
13686 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
13689 * ps/devps/afmtodit: Change calculation of asc_boundary and
13690 desc_boundary. Make these bounds inclusive.
13691 * ps/devps: Regenerate font files.
13693 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
13695 * macros/tmac.latin1: New file.
13696 * macros/tmac.tty-char: Use tmac.latin1.
13697 (tmac.tty-tr): Deleted.
13698 * macros/Makefile: Install tmac.latin1.
13699 * macros/tmac.dvi: Use tmac.latin1.
13700 * macros/troffrc: Translate \[char160] onto no-break space here.
13701 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
13703 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
13705 * macros/tmac.Xps: Use `do' request.
13707 * macros/tmac.ps: Use `do' request.
13709 * macros/tmac.e (@C): Use `do' request.
13711 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
13712 * macros/Makefile: Install tmac.X*.
13714 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
13715 * tty/Makefile: Don't install tmac.tty*.
13716 * macros/Makefile: Install tmac.tty*.
13718 * dvi/tmac.dvi: Move to macros.
13719 * dvi/Makefile: Don't install tmac.dvi.
13720 * macros/Makefile: Install tmac.dvi.
13722 * ps/tmac.ps*: Move to macros.
13723 * ps/Makefile: Don't install tmac.ps*.
13724 * macros/Makefile: Install tmac.ps*.
13726 * eqn/box.c: Provide draw_lines parameter corresponding to -D
13728 * macros/eqnrc: Set draw_lines parameter based on device.
13729 * groff.c: Don't pass -D flag to eqn.
13730 * groff.sh: Likewise.
13731 * eqn/main.c: Warn about use of -D.
13733 * troff/input.c (process_startup_file): New function.
13734 (main): Call process_startup_file().
13735 * macros/troffrc: New file.
13736 * macros/Makefile: Install troffrc.
13737 * groff.c (main): Don't pass extra -m option to troff. For a
13738 pseudo device pass the name of the pseudo device to troff using
13740 * groff.sh: Likewise.
13741 * groff.c (possible_command::prepend_arg): Deleted.
13743 * troff/input.c (do_request): New function.
13744 (init_input_requests): Bind "do" to do_request.
13746 * eqn/main.c (main): Instead of loading eqnchar from device directory,
13747 load eqnrc from macro directory.
13748 * macros/eqnrc: New file.
13749 * macros/Makefile: Install eqnrc.
13750 * ps/devps/eqnchar: Deleted.
13751 * ps/devps/Makefile: Don't install eqnchar.
13752 * dvi/devdvi/eqnchar: Deleted.
13753 * dvi/devdvi/Makefile: Don't install eqnchar.
13754 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
13757 * lib/device.[ch]: New files.
13758 * lib/font.h (font::set_device_name, font::get_device_name):
13760 * lib/fontfile.c: Use device.h.
13761 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
13762 * troff/input.c: Delete definition of `device'.
13763 (main): Don't initialize device.
13764 * troff/troff.h: Include device.h rather than declaring device.
13765 * troff/Makefile: No need to handle DEVICE.
13766 * driver/input.c: Include device.h. Don't use
13767 font::{set,get}_device_name.
13768 * groff.c, Makefile: Rename device.h to config.h.
13769 * groff.c: Use library device variable.
13770 * eqn/main.c: Use library device variable.
13771 * eqn/Makefile: No need to handle DEVICE.
13773 * lib/searchpath.[ch]: New files.
13774 * lib/Makefile: Handle searchpath.[ch].
13775 * troff/input.c (open_file, init_dirs): Deleted.
13776 (macro_dirs): Deleted.
13777 (open_mac_file, macro_source): Use class search_path.
13778 (add_string, struct string_list): Move definition.
13779 (main): Change -M option to use macro_path. Delete call to
13781 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
13782 Rewrite to use class search_path.
13783 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
13784 * lib/Makefile: fontfile.c depends on searchpath.h.
13785 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
13787 * lib/macropath.[ch]: New files.
13788 * troff/Makefile: No need to handle MACROPATH.
13790 * troff/input.c: Delete DUMP code.
13791 * lib/fontfile.c, lib/font.h: Delete
13792 font::forget_command_line_font_dirs.
13794 * troff/input.c (push_token): New function.
13795 (handle_first_page_transition): Use push_token().
13796 (process_input_stack): Change handling of a space at the beginning
13799 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
13801 * troff/input.c (font_dirs): Delete unused variable.
13803 * eqn/lex.c (do_set): Correct error messages.
13805 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
13807 * troff/input.c (do_define_string): Allow the string name to be
13808 followed immediately by a tab.
13809 (define_character): Likewise.
13811 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
13813 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
13816 * troff/input.c (input_iterator::is_file): New virtual function.
13817 (file_iterator::is_file): New function.
13818 (input_stack::end_file): New function.
13819 (input_stack::next_file): Handle the situation where there is no
13820 file on the input stack correctly. Avoid making two passes over
13822 (next_file): Make the filename optional; in this case call
13823 input_stack::end_file().
13825 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
13827 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
13828 produce a real _ charater when the current font is CW and _
13831 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
13832 expression to work around gcc 2.2 bug.
13834 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
13836 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
13838 * troff/env.c (environment::add_padding): New function.
13839 (environment::add_char): Use add_padding().
13840 (environment::space): Likewise.
13841 (environment::wrap_up_field): Add some padding if there is none
13842 and there's no current tab.
13843 * troff/env.h: Declare environment::add_padding.
13845 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
13847 * pic/pic.y: undef fmod and rand before declaring them.
13849 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
13851 * troff/input.c (main): If the DESC file specifies a font name of
13852 0, then leave the corresponding font position empty.
13854 * nroff.sh: New file.
13855 * Makefile (install.nobin): Install nroff.sh.
13857 * tty/devlatin1/R.proto: Add ao as synonym for de.
13858 * tty/tmac.tty-char: Define ao as o.
13860 * tty/dev{ascii,latin1}/R.proto: Add aq.
13861 * tty/tmac.tty-char: Delete definition of aq.
13863 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
13865 * troff/input.c (init_charset_table): Don't translate 0240.
13866 * ps/tmac.ps: Translate char160 to space.
13867 * dvi/tmac.dvi: Likewise.
13868 * tty/tmac.tty: Likewise.
13870 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
13872 * dvi/tmac.dvi: Add support for all Latin-1 characters.
13874 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
13875 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
13878 * tty/tmac.tty-char: Add \(ah.
13880 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
13881 No need to define \(FM and \(!/. Conditionalize all character
13884 * ps/devps/lgreekmap: Add +h, +f, +p.
13886 * ps/tmac.psnew: New file.
13887 * ps/Makefile: Install tmac.psnew.
13889 * troff/input.c (charinfo_to_node_list): Don't ever interpret
13890 character definitions in compatible mode.
13892 * troff/input.c (remove_character): New function.
13893 (init_input_requests): Bind remove_character to "rchar".
13895 * ps/tmac.psold: New file.
13896 * ps/Makefile: Install tmac.psold.
13897 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
13898 characters into tmac.psold. Make these definitions unconditional.
13900 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
13902 * ps/tmac.ps: Don't define \('c and \('C.
13904 * ps/devps/textmap: Move Greek characters to...
13905 * ps/devps/symbolchars:
13907 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
13909 * ps/devps/text.enc: Add quotesingle.
13910 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
13911 * tty/tmac.tty-char: Likewise.
13912 * dvi/devdvi/texmi.map: Add +h, +f, +p.
13913 * dvi/devdvi/texi.map: Add Fn.
13914 * dvi/devdvi/msam.map: Add lz.
13915 * dvi/tmac.dvi: Handle Bq, bq, aq.
13917 * pic/lex.c (get_token): Recognize 'th.
13918 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
13920 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
13922 * ps/devps/textmap: Move di, mu, +- to...
13923 * ps/devps/symbolchars:
13925 * macros/tmac.s (@XS): Don't call par@reset or fi.
13926 (XA): Call LP. Turn off adjustment. Reduce line length.
13928 * macros/tmac.s: Initially alias XS to LP.
13929 (XS): Rename to @XS.
13930 (cov*ab-init): Alias XS to @XS.
13932 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
13934 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
13935 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
13936 (token::is_size, token::changes_env): Deleted.
13937 * troff/number.c (parse_term): No need to process \s explicitly.
13938 Call tok.next() only after scale indicator has been processed.
13939 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
13941 (token::next): Handle \s, \f, \S, \H immediately rather than
13942 returning them as tokens.
13943 (token::operator==, token::description, token::add_to_node_list,
13944 token::process): Remove handling of deleted tokens.
13946 * troff/env.c (environment::add_char): When adding padding
13947 indicator character, call start_line() if necessary.
13949 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
13951 * ps/devps/afmtodit: Don't output 0 kerns.
13953 * ps/devps/afmtodit: Remove directory from name of encoding in
13954 font description file.
13956 * ps/devps/afmtodit: Improve error messages.
13958 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
13960 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
13961 * ps/devps/FontMakefile: Deleted.
13962 * ps/devps/afmname: New file.
13964 * ps/devps/symbol.sed: New file.
13965 * ps/devps/symbol.diff: Deleted.
13966 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
13967 Generate zapfdr.afm from zapfd.afm.
13969 * tty/tmac.tty (tty-char): Prefix definition with ".
13971 * macros/tmac.an (TP): Don't start a diversion if one has already
13974 * tty/tmac.tty-char: Add Latin-1 characters.
13976 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
13978 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
13980 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
13981 Move declaration of struct horizontal_span.
13983 * tbl/table.c (table::table): Initialize span_list.
13984 (table::~table): Delete span_list.
13986 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
13988 * ps/devps/Makefile: Avoid dependency on GNU make.
13990 * ps/tmac.ps: Check that character does not already exist before
13993 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
13994 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
13995 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
13998 * tty/tmac.tty-char: New file.
13999 * tty/Makefile: Install tmac.tty-char.
14000 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
14003 * tty/tmac.tty: Fix definition of \(34.
14005 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
14006 bracket-drawing characters onto |. Add *o.
14008 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
14009 only if current_field.
14011 * troff/dictionary.c (dictionary::lookup): Free old_table after
14014 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
14016 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
14017 whose glyphs are identical to glyphs of some Roman character.
14019 * tty/devlatin1/R.proto (bu): Deleted.
14020 * tty/devascii/R.proto (bu): Deleted.
14021 * tty/tmac.tty: Add definition of \(bu.
14023 * eqn/main.c (do_file): Pass FILE as argument.
14024 (main): Automatically load eqnchar. New options -F and -n.
14025 Pass do_file an opened FILE.
14026 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
14027 No need to include font.h.
14028 * groff.sh: Likewise. Don't need to use - for standard input.
14029 Prefix files with -- if first file starts with -.
14031 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
14033 * troff/env.c (environment::possibly_break_line): Don't set line
14034 to 0 across call to output_line(). Don't call output_line() until
14035 after discarding nodes after break.
14037 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
14039 * request.h (macro::empty): Declare it.
14040 * input.c (macro::empty): New method.
14041 (interpolate_macro): Don't give a WARN_SPACE if the two-character
14044 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
14046 * troff/env.c (environment::start_field): Decrement space_total
14047 when a space is frozen.
14049 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
14051 * macros/tmac.an (R): Delete macro.
14053 * troff/input.c (get_copy, token::next): Support \# (like \" but
14054 newline is ignored).
14056 * troff/input.c (token::next): Fix error message in 'Y' case.
14058 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
14060 * eqn/delim.c (define_extensible_string): Recognize any prefix of
14063 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
14065 * c++test.c: Include <osfcn.h>.
14067 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
14070 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
14072 * tbl/table.c (table::divide_span): Don't count column separation
14073 if expand was specified.
14075 * tbl/main.c (process_format): Don't ignore width specs in
14076 continued format. Give warning for changing equal widths or
14077 column separation in continued format.
14078 (process_data): Set column separation, minimum width, equal
14079 columns at end of table.
14081 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
14083 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
14084 node::add_discretionary_hyphen): Use soft_hyphen_char.
14085 (set_soft_hyphen_char): New function.
14086 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
14088 * Makefile (c++tested): Give more helpful message if test fails.
14090 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
14092 * troff/input.c (init_charset_table): Translate 0240 to
14093 an unbreakable space.
14095 * troff/token.h (token::hyphen_indicator): New function.
14096 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
14098 * troff/input.c (translate): Allow translation to \%.
14099 * troff/node.c (node::add_char): Handle
14100 TRANSLATE_HYPHEN_INDICATOR.
14101 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
14103 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
14106 * tty/devlatin1/R.proto: \(hy and - should print as 055.
14108 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
14110 * groff.c (run_commands): If the last command gets a SIGPIPE send
14111 a SIGPIPE to all children than haven't yet terminated. When
14112 command terminates, set pid field to -1.
14114 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
14116 * groff.c (main): Pass an appropriate -filename option to gxditview.
14118 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
14120 * Makefile.bd (install): Remove existing program before copying.
14122 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
14123 programs which have Unix counterparts to be installed with
14124 user-specified prefix.
14126 * troff/input.c (exit_troff): Don't check if exit_started.
14127 (exit_request): Don't call exit_troff if exit_started.
14129 * Makefile.bd (install.mm): Rename to install.dwbmm.
14131 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
14133 * driver/input.c (do_file): Add missing break for '#' case.
14135 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
14137 * troff/input.c (input_stack::clear): Clear past any boundaries and
14138 then add the boundaries back.
14140 * troff/input.c (exit_troff): Return immediately if already
14143 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
14145 (pg*end-page): If the text has ended and there are no more
14146 footnotes or keeps, exit.
14148 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
14150 * troff/input.c (init_charset_table): Make \(rq transparent by
14153 * macros/tmac.an: Define lq and rq strings.
14155 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
14157 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
14159 * troff/env.c (environment::final_break): New function.
14160 (environment::newline): Set prev_line_interrupted to 2 if
14162 * troff/env.h: Declare environment::final_break.
14163 * troff/input.c (exit_troff): Call environment::final_break()
14164 instead of environment::do_break().
14166 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
14167 doesn't already exist.
14168 * macros/man.local: New file.
14169 * macros/tmac.an: Load man.local.
14170 * macros/man.ultrix: New file.
14172 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
14174 * troff/input.c (exit_groff): Rename to...
14175 (exit_troff): New function.
14177 * troff/div.c (exit_started, done_end_macro,
14178 seen_last_page_ejector): New global variables.
14179 (began_page_in_end_macro): New static variable.
14180 (exit_flag): Deleted.
14181 (top_level_diversion::top_level_diversion): Initialize
14183 (top_level_diversion): More elaborate test for whether
14184 cleanup_and_exit() should be called.
14185 Set began_page_in_end_macro if the end macro isn't yet finished.
14186 * troff/div.h (top_level_diversion::last_page_count): New data
14188 (top_level_diversion::set_last_page): New function.
14189 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
14190 * troff/env.c (do_break): Zero prev_line_interrupted.
14191 * troff/input.c (exit_flag): Delete declaration.
14192 (LAST_PAGE_EJECTOR): New magic cookie.
14193 (token::next): Handle LAST_PAGE_EJECTOR.
14194 (exit_groff): Set exit_started and done_end_macro instead of
14195 exit_flag. Call top_level_diversion::set_last_page. Push a
14196 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
14197 another ejection after setting seen_last_page_ejector.
14199 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
14201 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
14203 * macros/tmac.e (TH): Make sure there's room for the initial
14206 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
14207 Set FVS in points rather than units.
14209 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
14211 * troff/div.c (top_level_diversion::add_trap): Don't consider the
14212 position of empty slots.
14214 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
14216 * ps/devps/S: Fix height and depth of parenrightex.
14217 * ps/devps/symbol.diff: Regenerate.
14219 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
14221 * tmac.e (u): Do underlining as in -mgs.
14223 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
14225 * tty/tty.c (tty_printer::end_page): If overstriking is
14226 suppressed, still turn overstruck horizontal and vertical lines
14229 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
14232 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
14234 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
14236 * Version 1.05 released.
14238 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
14240 * tty/tty.c: Instead of keeping an array of glyphs and then
14241 sorting it, keep a ordered linked list of glyphs for each line.
14243 * driver/driver.h: Include stddef.h.
14245 * tty/tty.c (compare_glyph):
14246 * refer/refer.c (rcompare):
14247 * troff/env.c (compare_ranges): Arguments of qsort comparison
14248 function should be const void *.
14250 * troff/number.c (parse_term):
14251 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
14254 * refer/label.y (consider_authors): Don't access variables
14255 constructed under a condition outside that condition: put braces
14256 round for statement containing declaration; redeclare use of same
14259 * pic/pic.y (text_expr): Delete production that allows
14260 parenthesised text_expr.
14261 (expr): Allow a conditional_expr to appear in parentheses.
14262 (conditional_expr): Rename to any_expr.
14264 * mm: Install new version 1.01 from jh.
14266 * lib/font.c (font::get_width): Cache scaled widths.
14267 (font::font): Initialize widths_cache.
14268 (font::~font): Destroy widths_cache.
14269 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
14271 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
14273 * c++test.c, c++test.ref: New files.
14274 * Makefile: Check that the C++ compiler works.
14276 * ps/tmac.pspic (PSPIC): Do a break.
14278 * ps/tmac.ps: Move definition of PSPIC into...
14279 * ps/tmac.pspic: New file.
14280 (PSPIC): Draw box around picture, but make it invisible to grops.
14281 * ps/tmac.ps: Load tmac.pspic.
14282 * ps/Makefile: Install tmac.pspic.
14284 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
14286 * lib/font.c (scale_round): If n is negative,
14287 subtract .5 before truncating floating point result.
14289 * lib/fontfile.c: Include <errno.h>.
14291 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
14293 * driver/input.c (get_char): Inline. Don't update current_lineno.
14294 Change callers to up date current_lineno if necessary.
14295 Use get_char() instead of getc(current_file).
14297 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
14299 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
14301 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
14303 * tty/tty.c (tmac.tty): Define \(rg as (R).
14305 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
14307 * lib/lib.h: New define a_delete.
14308 * Use a_delete instead of delete when deleting an array of objects
14309 without destructors.
14311 * lib/lib.h: Rename adelete to ad_delete.
14312 * Change uses of adelete.
14314 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
14316 * eqn/eqn.y: Include lib.h.
14318 * troff/node.c (grow_font_table): Delete old_font_table.
14320 * mm: Install new version from jh.
14322 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
14324 * tbl/table.h (format_type): Make global instead of local to class
14325 entry_format. Prefix enumerators with FORMAT_.
14326 * tbl/table.c, tbl/main.c: Corresponding changes.
14327 * refer/token.h (token_type): Make global. Prefix enumerators
14329 * refer/token.[ch]: Corresponding changes.
14330 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
14332 * troff/div.c (node::set_vertical_size): Don't name argument.
14334 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
14336 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
14337 * lib/lib.h: Define adelete accordingly.
14338 * pic/object.c (graphic_object::graphic_object):
14339 * tbl/main.c (format::~format):
14340 * tbl/table.c (table::~table):
14341 * refer/ref.c (reference::~reference, reference::merge,
14342 reference::insert_field, reference::delete_field): Use adelete.
14344 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
14346 * tbl/table.h: Corresponding changes.
14348 * common.c (common_output::dashed_arc, common_output::dotted_arc):
14349 Ensure total_angle is positive.
14351 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
14353 * refer/ref.c (reference::merge, reference::insert_field,
14354 reference::delete_field): Avoid delete[0].
14356 * refer/token.c (init_special_chars): Move calls to cmupper
14357 outside calls to init_two_char_letter to work around bug in gcc
14360 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
14362 * lib/new.c (operator new): Use __builtin_new for g++.
14364 * pic/object.c (graphic_object::~graphic_object): Don't use
14367 * pic/object.c (output::compute_scale): Initialize max_width and
14370 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
14372 * troff/input.c (write_request): Call fflush.
14374 * troff/node.h (class composite_node): Move declaration to node.c
14375 * troff/input.c (charinfo_to_node): Rename to ...
14376 (charinfo_to_node_list): Return node list rather than composite
14378 * troff/node.c (make_composite_node): New function.
14379 (make_node, add_char): Call make_composite_node instead of
14381 (class composite_node): Add a tfont * member. Delete font_size
14383 (composite_node::composite_node, composite_node::copy,
14384 composite_node::size): Corresponding changes.
14385 (composite_node::tprint): Provide constant spacing, emboldening
14386 and track kerning as specified in tfont.
14387 (composite_node::width): Change width calculation accordingly.
14388 * troff/env.h (environment::composite): New member.
14389 (environment::is_composite, environment::set_composite): New
14391 * troff/env.c (environment::environment): Initialize composite.
14392 * troff/input.c (charinfo_to_node): Call
14393 environment::set_composite.
14394 * troff/node.c (make_composite_node, make_glyph_node): Use the
14395 plain version of the tfont if the environment is composite.
14397 * troff/node.c (font_info::get_space_width): Additional argument
14398 giving space_size. Handle constant space correctly. Scale by
14399 space_size unless constant spaced.
14400 (env_sentence_space_width): New function.
14401 * troff/node.h: Declare it.
14402 * troff/env.h (environment::get_space_size,
14403 environment::get_sentence_space_size,
14404 environment::get_narrow_space_width,
14405 environment::get_half_narrow_space_width): Make inline.
14406 (environment::get_space_width): Make inline. Just call
14408 * troff/env.c: Delete definitions for funtions made inline.
14409 (environment::space_newline, environment::space): Use
14410 env_sentence_space_width(). Don't scale by space_size.
14411 * troff/node.h: Move declarations of env*space_width() functions
14414 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
14416 * macros/tmac.s (PS): Don't try to set negative indent.
14418 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
14420 * pic/pic.y: Fix min function.
14422 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
14424 * man/mdate.sh: Clear LANGUAGE.
14426 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
14428 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
14429 * pic/lex.c: New COMMAND keyword.
14430 * pic/pic.y (print_args, print_arg): New rules.
14431 (placeless_element): Use print_args for PRINT.
14432 New COMMAND element.
14434 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
14436 * troff/input.c (terminal): Handle missing argument correctly.
14438 * pic/pic.y (text_expr): New rule.
14440 * pic/pic.y: Implement := operator.
14442 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
14444 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
14447 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
14449 * ps/devps/dingbatsrmap: Include this in the distribution.
14451 * macros/tmac.doc: Replace with new version from 2nd Networking
14452 Release. Fix loading of doc-* files.
14453 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
14454 * macros/tmac.doc.old: New file. Apply fixes that had been
14455 applied to old tmac.doc.
14456 * macros/tmac.andoc: Check that we're running under groff.
14457 * macros/Makefile: Rework.
14459 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
14461 * tbl/table.h (format_type):
14462 * refer/token.h (token_type): If NESTED_TYPES is defined, use
14463 typedef to make these types visible at file scope.
14464 * Makefile: Add NESTED_TYPES configuration option.
14466 * troff/div.c (mark): At the top level use the value of
14467 nl_reg_contents rather than the current vertical position.
14469 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
14471 * tty/tty.c: Implement \D for horizontal or vertical lines.
14472 (tty_printer::set_char): Use vec_used+2 as serial number.
14473 Don't allow size of vector to exceed USHRT_MAX-2.
14474 Split off part into...
14475 (tty_printer::add_char): New function.
14476 (tty_printer::draw): New function.
14477 (compare_glyph): Handle equal serial numbers.
14478 (tty_printer::end_page): Handle overstruck characters from \D.
14479 (main, usage): Implement -d option.
14481 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
14483 * tbl/main.c (process_format):
14484 * eqn/text.c (split_text):
14485 * troff/input.c (token::next): Use inner block for declarations
14486 with initializers in switch statement.
14488 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
14490 * pic/common.c (common_output::dash_line): Cope with zero-length
14493 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
14495 * Version 1.04 released.
14497 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
14499 * macros/tmac.an (TH): Define a macro an-init to define variables
14500 based on command line arguments.
14501 (an-header): Call it.
14503 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
14505 * Makefile (install.mm): Rename to install.dwbmm.
14507 * Makefile: Integrate mm.
14508 * mm: New directory.
14510 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
14512 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
14515 * pic/troff.c (troff_output::simple_spline,
14516 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
14517 shadowing parameter.
14519 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
14521 * lib/ptable.h: Add explicit casts when converting from unsigned
14524 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
14525 * dvi/devdvi/Makefile: Install SA, SB.
14527 * refer/indxbib.c: Add declaration of mktemp.
14529 * refer/lookbib.c: Add declaration of isatty.
14531 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
14533 * pic/lex.c (interpolate_macro_with_args): While collecting
14534 arguments, keep track of whether we're in a string.
14536 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
14538 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
14539 down with \v, so as to avoid problems with top of page trap
14540 setting no space mode.
14542 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
14544 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
14546 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
14548 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
14549 Improve error message.
14551 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
14553 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
14556 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
14558 * groff.c (possible_command::execp): Always use _exit() after a
14561 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
14562 NO_SYS_WAIT_H configuration options.
14563 * groff.c: Use these options. Use POSIX-style macros to extract
14564 fields from the status returned by wait().
14566 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
14568 * tbl/table.c (table::compute_separation_factor): Allow the
14569 separation factor to drop to 0.
14571 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
14573 * refer/search.c: Include <errno.h>.
14575 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
14577 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
14579 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
14582 * pic/lex.c (input_stack::bol): Move definition out of class body.
14584 * pic/main.c: On MSDOS munge argv[0].
14586 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
14588 * lib/ptable.c (hash_string): Use unsigned long rather than
14590 (next_ptable_size): Use unsigned rather than int. Give an error
14591 message if we've hit the largest table size.
14592 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
14595 * pic/object.h (object_spec): Make flags unsigned long. Declare
14596 flags as const unisgned long rather than as enums.
14598 * pic/output.c: Deleted.
14600 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
14602 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
14603 Add additional argument.
14604 (line_entry::note_double_vrule_on_{left,right}): Set value of
14605 douvle_vrule_on_{right,left} flag according to argument.
14606 (simple_line_entry::simple_print,
14607 simple_line_entry::double_line_print): If adjacent to double vrule
14608 on a corner extend rather than shorten the rule by half the double
14611 * troff/number.c (parse_term): In checking for overflow, handle the
14612 case where the current horizontal position is negative.
14614 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
14616 * pic/object.c (draw_arrow): Check for object having zero length.
14618 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
14620 * eqn/main.c (do_file): Split off inline equation handling into...
14621 (inline_equation): New function. Search for starting delimiter
14623 (delim_search): New function. Don't recognize a delimiter that
14624 occurs in the name of an escape sequence, number register, string
14627 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
14629 * eqn/delim.c (delim_box::compute_metrics): Don't call
14630 define_extensible_string if left is 0.
14631 (delim_box::output): Don't print the left delimiter if left is 0.
14632 (delim_box::debug_print): Check for left == 0 before calling printf.
14634 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
14636 * troff/Makefile (majorminor.c): Include only digits in
14639 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
14641 * refer/dirnamemax.c: new file.
14642 * refer/genlimits.c: Deleted.
14643 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
14644 Don't check path length.
14645 * refer/Makefile: Add dir_name_max.o; delete genlimits.
14646 * Makefile: Add PATHCONF_MISSING option.
14648 * refer/indxbib.c (get_cwd): New function.
14649 (main): Use get_cwd().
14650 * lib/getcwd.c: New file.
14651 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
14652 GETCWD in SUBFLAGS.
14653 * lib/Makefile: Compile getcwd.o.
14655 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
14658 * refer/indxbib.c (main): Check success of mktemp.
14660 * lib/tmpfile.c: New file.
14661 * lib/Makefile: Add tmpfile.c.
14662 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
14663 * ps/ps.h: Delete declaration of mktemp().
14664 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
14665 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
14666 * driver/driver.h: No need now to include errno.h.
14668 * everywhere: Set errno to 0 before calling fopen().
14670 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
14671 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
14672 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
14674 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
14676 * troff/env.h (translate_space_to_dummy): Declare it.
14677 * troff/env.c (environment::space_newline, environment::space):
14678 If translate_space_to_dummy is set then make the width of spaces 0.
14679 * troff/input.c (translate): If the second character of a
14680 translation is a space, translate to unbreakable space. If the
14681 first character is a space, set or clear translate_space_to_dummy
14682 according to whether the second character is \&. Weird!
14684 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
14686 * groff.c (run_commands): Don't use non-zero exit code because a
14687 command gets SIGPIPE.
14689 * groff.c, groff.sh: Use -mXps with -TXps.
14691 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
14692 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
14693 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
14694 (ps_printer::special): New specials invis and endinvis.
14695 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
14696 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
14697 (ps_printer::end_page): Check that invis_count == 0.
14698 (ps_printer::invis_count): New member.
14699 (ps_printer::ps_printer): Initialize invis_count to 0.
14701 * troff/env.c (environment::hyphenate_line): Hyphenation
14702 indicator at beginning of word inhibits splitting after -, \(em
14705 * pic/pic.y (element): Allow another element to follow } without
14706 any intervening separator.
14708 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
14710 * pic/lex.c (get_delimited): Allow tabs before delimiter.
14712 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
14714 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
14715 declaration of wait() in header files.
14716 * Makefile: Get rid of -DHAVE_UNION_WAIT.
14718 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
14720 * lib/lib.h: Declare return type of strerror as char *.
14722 * man/Makefile: Add g flag to sed substitutions.
14723 * Makefile (shgroff, bindist): Likewise.
14725 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
14727 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
14728 * ps/devps/prologue (PBEGIN): Define showpage after pushing
14731 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
14733 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
14736 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
14738 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
14741 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
14743 * troff/input.c (define_number_reg): If currently undefined,
14744 don't define it if the argument is an invalid expression.
14746 * Makefile: Ignore return value of `if' commands without `else'
14749 * Makefile: Split up CPPDEFINES into a series of separate
14750 configuration options.
14752 * troff/input.c (init_registers): Use time_t instead of long
14753 unless LONG_FOR_TIME_T is defined. Use returned result rather
14754 than passing pointer.
14755 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
14757 * lib/Makefile (fontpath.h): Use gendef.
14759 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
14761 * troff/input.c (input_iterator::shift): Delete argument name.
14762 * troff/node.c (suppress_output_file::really_begin_page,
14763 suppress_output_file::really_transparent_char, node::ascii_print,
14764 node::tprint): Delete names of unused arguments.
14766 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
14768 * refer/label.y (string): Pass $4 to command_error.
14770 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
14772 * Version 1.03 released.
14774 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
14776 * Makefile: Pass definition of SHELL in SUBFLAGS.
14778 * gendef: New file.
14779 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
14780 ps/Makefile: Use gendef to construct header files that are
14781 constructed from the Makefile.
14783 * macros/Makefile: make all should build stripped version of tmac.e.
14785 * refer/Makefile (clean): Remove y.output.
14787 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
14789 * ps/pfbtops.c (main): Add -v option which prints out a version
14791 * ps/Makefile (pfbtops): Link with libgroff.a.
14793 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
14795 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
14796 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
14798 * refer/lkbib.c (main): Always terminate reference with blank
14800 * refer/lookbib.c (main): Likewise.
14802 * refer/linear.c (file_buffer::load): Check that the file is not a
14805 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
14806 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
14807 Delete second inclusion of <sys/param.h>.
14809 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
14811 * troff/token.h (token::special): Deleted.
14813 * tbl/main.c (process_format): Rework so that opt->tab_char is
14814 recognized only when appropriate.
14816 * ps/Makefile (clean): Remove pfbtops.
14818 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
14820 * lib/font.c (text_file::next): Don't return if we have got a
14823 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
14825 * refer/refer.c (store_reference): Get hash code from old_table[i]
14826 when rehashing the table.
14828 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
14830 * eqn/box.c (box::top_level): Save size and prev size using \R and
14831 restore it afterwards. Set the size to the size at the beginning
14833 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
14834 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
14836 * refer/Makefile (limits.h): Use ./genlimits.
14838 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
14840 * refer/index.c: Delete declarations of stat() and fstat().
14842 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
14844 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
14846 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
14848 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
14850 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
14852 * troff/input.c (token::get_char): Handle \e.
14854 * refer/linear.c: Delete declarations of fstat() and stat().
14856 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
14858 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
14859 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
14861 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
14863 * troff/input.c (do_define_macro): Improve error handling for end
14864 of file while defining macro.
14866 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
14868 * eqn/box.h: Fix declaration of set_gsize.
14869 * eqn/box.c (set_gsize): Make argument const char *.
14870 (gsize): Declare as char *.
14871 * eqn/main.c (main): Don't convert gsize to int.
14872 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
14874 * Version 1.02 released.
14876 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
14878 * macros/tmac.andoc: New file.
14879 * macros/Makefile: Install tmac.andoc.
14881 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
14882 operator new and delete on OP_DELETE_BROKEN not being defined.
14883 * Makefile: Mention OP_DELETE_BROKEN.
14885 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
14887 * Makefile (bindist): Pass SUBFLAGS.
14889 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
14891 * Makefile, groff.c: Pass definitions to groff.c via device.h.
14893 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
14896 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
14898 * ps/ps.h, ps/psrm.c: Make comment_table and
14899 header_comment_table local to resource_manager::process_file.
14901 * groff.sh: With -TXps pass -printCommand option to gxditview.
14903 * groff.c (possible_command::print): Implement using
14904 append_arg_to_string.
14906 * xditview: Merge in new implementation with own ChangeLog.
14908 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
14910 * groff.c (main): Implement PRINT_OPTION.
14911 (append_arg_to_string): New command.
14912 (device_table): Set PRINT_OPTION flag for Xps.
14914 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
14916 * troff/groff.h: Rename to troff.h.
14918 * pic/lex.c (lookup_keyword, docmp): New functions.
14919 (get_token): Use new lookup_keyword.
14920 Don't include key.h.
14921 * pic/key.[ch], pic/pic.gperf: Deleted.
14922 * pic/Makefile: Remove gperf stuff.
14924 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
14926 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
14928 * troff/Makefile, troff/node.c: Move definition of
14929 STORE_WIDTH into node.c.
14931 * etc/grog.pl, etc/grog.sh: Support -mdoc.
14933 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
14935 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
14936 dvi/devdvi/texb.map: Add lq and rq.
14937 dvi/devdvi: Regenerate fonts.
14938 * ps/devps/textmap: Add lq and rq.
14939 * ps/devps: Regenerate fonts.
14940 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
14941 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
14943 * pic/object.c (position_rectangle): When checking radius
14944 cope with possiblity that width or height is negative.
14945 (box_object::box_object): Have separate xrad and yrad with
14946 signs matching signs of dim components.
14947 (box_object::{north,south}_{east,west}): Use xrad and yrad.
14948 (box_object::print): With rounded boxes use absolute values
14949 for dim and rad arguments.
14951 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
14954 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
14956 * various files: Add explicit destructors to keep Saber CC +d
14959 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
14961 * eqn/box.c (box::top_level): Restore fonts correctly after
14962 font changes in line containing inline equation. Also
14963 restore previous font as well as current font.
14964 * eqn/pbox.h: Define necessary string and register names.
14966 * troff/input.c (token::next): Case 'R' calls do_register.
14967 (do_register): New function.
14969 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
14971 * groff.c, groff.sh: Support Xps device. Allow each device
14972 to have a pseudo_name and a real_name.
14974 * groff.c (run_commands): Don't print `Broken pipe' messages.
14976 * ps/pfbtops.c: New file.
14977 * ps/Makefile: Add pfbtops.
14979 * troff/number.c (parse_term): Improved error message.
14981 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
14983 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
14985 * Makefile: Integrate refer.
14986 * refer: New directory.
14987 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
14988 man/lkbib.man: New files.
14989 * man/Makefile: Support refer man pages.
14991 * lib/lib.h: Declare is_prime.
14992 * lib/prime.c: New file.
14994 * troff/input.c (macro_source): New function.
14995 (init_input_requests): Bind "mso" to macro_source.
14997 * troff/env.c (environment::possibly_break_line): Maintain
14998 pointer to pointer to node to be split in ndp so as to avoid
14999 using address of freed node.
15001 * troff/env.c (environment::hyphenate_line): Maintain pointer to
15002 pointer to first node to be hyphenated in startp so as to
15003 avoid using address of freed node.
15005 * troff/env.c (class trie, class hyphen_trie): Make the
15006 elements of the trie be of type char not unsigned char.
15007 Declare arguments to be const char* instead of unsigned char *.
15009 * troff/env.c (hyphenate): Initialize hbuf[0].
15011 * troff/input.c (set_string): Declare p to be char * and cast
15012 *p to unsigned char when necessary.
15014 * troff/input.c (do_define_macro): Declare s to be const
15015 char*. Cast element to unisgned char when necessary, Declare
15016 d to be an int. Handle EOF better.
15018 * troff/Makefile, troff/input.c: Different scheme for passing
15019 definitions of MACROPATH, HYPHENFILE and DEVICE.
15021 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
15023 * tty/devascii/R.proto: Delete entry for em.
15024 * tty/devlatin1/R.proto: Likewise.
15026 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
15028 * troff/input.c (translate): Stop when we get a space. Treat eof
15031 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
15033 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
15035 * tbl/main.c (process_format): A font name following a `f'
15036 modifier that starts with a digit can be only one character long.
15037 Also deal with EOF on the second character of the font name.
15039 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
15041 * troff/input.c (token::next): Turn \~ into an
15042 unbreakable_space_node.
15043 * troff/node.c (unbreakable_space_node): New class.
15044 * troff/node.h: Declare it.
15046 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
15048 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
15049 it's >= 0, before outputting it as a single byte.
15051 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
15053 * lib/font.c: Make font_char_metric::code an int.
15054 (font::get_code): Change return type to int.
15055 (font::load): Allow code to be arbitrary integer.
15056 * lib/font.h (font::get_code): Change return type to int.
15057 (font::number_to_index): Change argument type to int.
15058 * troff/input.c (token::next): In case 'N', allow any value.
15059 Store value in token::val.
15060 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
15061 (token::get_char, token::add_to_node_list, token::process): Get
15063 (charinfo::set_number): Change argument to int.
15064 (charinfo::get_number): Require that NUMBERED flag be set.
15065 (get_charinfo_by_number): Store numbered characters not between 0
15066 and 255 in a dictionary.
15067 * troff/charinfo.h (get_charinfo_by_number): Change argument type
15069 (charinfo::number): Change type to int.
15070 (charinfo::set_number): Change type of set_number to int.
15071 * troff/node.c (troff_output_file::put_char_width,
15072 troff_output_file::put_char): Test whether character is numbered
15073 using charinfo::numbered().
15074 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
15076 * lib/nametoindex.c: New implementation to cope with arbitrary
15079 * troff/input.c (token::operator==): Test val for
15080 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
15083 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
15084 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
15086 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
15088 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
15091 * all Makefiles: rm targets of cp and >.
15093 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
15096 * eqn/lex.c (def_table): Add dollar.
15098 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
15100 * troff/input.c (do_width): Push back newline before closing delim
15103 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
15105 * groff.c (possible_command::prepend_arg): New function.
15106 (main): Prepend device -m option.
15107 * groff.sh: Put device -m options before command-line options.
15109 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
15111 * macros/tmac.an (IP): Quote argument to TP.
15113 * ps/ps.c (main): New option -b, which sets...
15114 (broken_flags): New variable.
15115 (ps_printer::~ps_printer): Incorporate the setup section in the
15116 prolog if (broken_flags & NO_SETUP_SECTION).
15117 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
15118 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
15119 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
15120 ps_printer::print_needed_font_comment,
15121 ps_printer::print_supplied_font_comment,
15122 ps_printer::print_include_font_comments,
15123 ps_printer::lookup_doc_font, ps_printer::download_fonts,
15124 ps_printer::read_download_file, read_document_fonts, add_font,
15125 skip_line, parse_fonts_arg, document_font::document_font,
15126 document_font::~document_font, document_font::download,
15127 ps_output::include_file): Deleted.
15128 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
15129 rather than %!PS-Adobe-2.0. Make calls to
15130 resource_manager::need_font for each font that we used. Replace
15131 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
15132 print_supplied_font_comment, print_needed_font_comment by call to
15133 resource_manager::print_header_comments. Output %%Orientation
15134 comment. Output %%Requirements: numcopies comment if ncopies > 1.
15135 Don't output the prolog directly. Instead call
15136 resource_manager::output_prolog. Only define #copies when ncopies
15137 > 1. Delete calls to print_include_font_comments and
15138 download_fonts. Add call to resource_manager::document_setup.
15139 (ps_printer::do_file): Call resource_manager::import_file instead
15140 of including it ourselves.
15141 (ps_printer::do_import): Likewise. Also don't call
15142 merge_import_fonts. Push userdict on the dictionary stack before
15143 and pop it afterwards.
15144 Move declaration of ps_output into ps.h.
15145 * ps/psrm.c: New file implementing resource_manager class.
15146 * ps/ps.h: New file declaring ps_output and resource_manager
15148 * ps/devps/zapfdr.ps:
15149 * ps/devps/symbolsl.ps:
15150 * ps/devps/prologue: Use 3.0 conventions.
15151 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
15152 Add default definition of BROKEN_SPOOLER_FLAGS.
15153 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
15154 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
15156 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
15158 * etc/grog.pl: New file.
15159 * Makefile (GROG): New variable.
15160 Add GROG to SUBFLAGS.
15161 * etc/Makefile (GROG): New variable.
15162 (install.nobin): Install $(GROG) rather than grog.sh.
15164 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
15166 * eqn/special.c (special_box::compute_metrics): Make the input and
15167 output strings the same. Get the new height and depth from the
15168 predefined height and depth registers. Also make subscript kern
15169 and skew available.
15170 (special_box::compute_subscript_kern, special_box::compute_skew):
15173 * eqn/box.c (pointer_box::compute_skew,
15174 simple_box::compute_metrics, box::top_level)
15175 * eqn/text.c (prime_box::compute_metrics,
15176 prime_box::comput_subscript_kern)
15177 * eqn/limit.c (limit_box::compute_metrics):
15178 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
15179 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
15180 negative numbers in `nr' requests with a leading 0.
15182 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
15184 * eqn/special.c: New file.
15185 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
15186 Add new rule for simple.
15187 * eqn/lex.c (token_table): Add SPECIAL.
15188 * eqn/box.h: Declare make_special_box.
15189 * eqn/Makefile: Add special.[co].
15191 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
15193 * ps/devps/prologue: Possibly set packing to true while defining.
15194 Create grops dictionary here. Initialize local variables before
15195 defining procedures.
15196 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
15197 the dictionary stack. Set strokeadjust and overprint to false if
15198 the relevant operators are defined.
15199 (PEND): New procedure.
15200 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
15201 prologue. Do everything else in the setup section.
15202 (ps_printer::do_import): Just call PBEGIN and PEND around the
15203 picture. Also push userdict before, and pop it afterwards.
15205 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
15207 * troff/node.c (bracket_node::tprint): Brackets were being printed
15210 * macros/tmac.an (SH, SS): Set fill mode.
15212 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
15214 * troff/div.c (top_level_diversion::begin_page): Set
15215 high_water_mark to 0.
15217 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
15219 * man/mdate.sh: New file.
15220 * man/mdate.c: Deleted.
15221 * man/Makefile: Use mdate.sh instead of mdate.
15224 * eqn/lex.c (do_gsize): Supply missing argument to error message.
15226 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
15228 * man/mdate.c: New file.
15229 * man/*.man: Replace modification date by @MDATE@.
15230 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
15231 (mdate): New target.
15233 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
15234 Remove illegal input characters.
15236 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
15238 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
15240 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
15242 * troff/div.c (begin_page): Change behaviour when
15243 !first_page_begun and !break_flag.
15245 * troff/input.c (do_name_test): Return 0 if argument is empty.
15247 * troff/input.c (read_long_escape_name): Require closing ] to be
15248 at same input level as opening [.
15250 * troff/input.c (read_increment_and_escape_name): New function.
15251 (get_copy, process_input_stack): Use this for \n.
15253 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
15255 * troff/div.c (top_level_diversion::begin_page): Ignore the
15256 current value of page_number if !first_page_begun.
15258 * groff.c (main): Fix declaration of buf.
15260 * troff/input.c (do_name_test): New function.
15261 (token::next): Implement \A.
15262 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
15263 (token::description, token::add_to_node_list, token::process):
15264 Handle TOKEN_ESCAPE.
15265 * troff/token.h: New token TOKEN_ESCAPE.
15267 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
15269 * pic/main.c (do_picture): Allow space before and after filename
15270 following `<'. Check that the filename is not empty.
15272 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
15274 * Version 1.01 released.
15276 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
15278 * dvi/tmac.dvi: ftr HR to H.
15280 * macros/tmac.e: Round up computation of $r.
15282 * xditview/tmac.X: Don't give up completely in compatibility mode.
15283 Use \n(.s instead of \n[.s].
15285 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
15286 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
15287 Add u to factors inside \s[...]. Rename frac to dvi-frac.
15288 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
15289 short names in the char definitions.
15291 * ps/tmac.ps: Don't give up completely in compatibility mode.
15292 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
15293 quote in front of \n(.s. Add u to factors inside \s[...].
15295 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
15297 * tty/tmac.tty: Call the nroff request.
15299 * macros/tmac.e ((x, )x): Better definitions that work properly
15301 (@0, @1): Helper macros for (x.
15303 * macros/tmac.e ($s, hl): Use \l rather than \D.
15305 * tty/tmac.tty: Make it work better in compatibility mode.
15306 (pchar): Rename to tty-char.
15308 * macros/tmac.e (@E): New macro.
15309 (r, i, b, rb, bi): Use @E.
15311 * macros/tmac.e (@F): Don't use (;...) syntax.
15313 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
15314 it was modified for groff.
15316 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
15318 * macros/tmac.e (<., .>): Removed.
15319 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
15321 * macros/tmac.e: Remove check that groff is being used.
15323 * macros/tmac.e (@C): Change families only if using groff; turn
15324 compatibility mode off while changing familes. Save compatibility
15325 mode before changing families and restore it afterwards.
15327 * macros/tmac.e (@h): Remove test for offset + line length.
15329 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
15330 (lo, th, ac): Define to call @S instead of using als.
15332 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
15333 the ratio of the vertical spacing to the point size in units
15334 expressed as a percentage. Use these instead of $10r and $10R,
15335 Delete $10r and $10R.
15337 * lib/font.c (font::load): In default computation of space_width,
15338 divide by sizescale. Use scale_round.
15340 * macros/tmac.an (TP): Don't call `nf'.
15341 (an-do-tag): Don't call `fi'.
15343 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
15345 * troff/input.c (process_input_stack): Handle the case where
15346 spaces at the beginning of an input line are followed by a
15349 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
15351 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
15352 * groff.sh: Use pic -x with the dvi device.
15354 * dvi/devdvi/FontMakefile (H): Don't use -s.
15356 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
15357 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
15358 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
15361 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
15363 * ps/psfig.diff: New file.
15364 * ps/tmac.psfig: New file.
15366 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
15368 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
15369 (]-): Don't call ref*do-tl.
15371 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
15373 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
15374 (fn@do-FS): Rename to fn*do-FS.
15376 * troff/input.c (transparent_translate): New function.
15377 (process_input_stack): Apply transparent_translate before calling
15378 diversion::transparent_output(unsigned char).
15380 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
15382 * troff/input.c (do_define_macro): Define the macro before calling
15385 * xditview/Makefile: Add DEVICES variable. Change install target
15388 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
15390 * groff.c (run_commands): Handle the possibility that there are
15391 child processes other than those forked by us.
15393 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
15395 * lib/string.c (string::append): New function.
15396 * lib/stringclass.h: Declare it.
15398 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
15400 * eqn/main.c (main): New option -N which sets
15401 no_newline_in_delim_flag.
15402 (do_file): If no_newline_in_delim_flag is set don't allow newlines
15404 * groff.c (main): Pass -N on to eqn.
15405 (help, synopsis): Mention -N.
15406 * groff.sh: Implement -N.
15408 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
15410 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
15411 (]-): Call ref*do-tl if ref*need-tl is non-zero.
15412 (XP): Allow as initializer.
15414 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
15416 * troff/env.c (environment::wrap_up_field): If field_spaces are
15417 non-zero and we have a current_tab, subtract padding from
15418 tab_distance. If this makes tab_distance <= 0, use the next tab
15419 stop instead. If there isn't any next tab or it's a left tab,
15420 wrap up the current tab.
15421 (environment::start_field): Initialize tab_precedes_field.
15422 (environment::wrap_up_tab): If there's a current field, update
15423 pre_field_width, field_distance and tab_precedes_field.
15424 * troff/env.h (environment::tab_precedes_field): New member.
15426 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
15428 * ps/ps.c (ps_printer::do_file): New function.
15429 (ps_printer::special): Bind to `file' special.
15430 (ps_printer::do_exec): Set ndefined_styles to 0.
15432 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
15434 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
15435 Avoid stripping first character from the start of unrecognized
15436 escapes. Use lex_error instead of error to report errors.
15437 * eqn/lex.c (get_token): Rework handling of escapes.
15438 (lex_error): Move declaration into...
15441 * xditview/xditview.c (main): Make -page option work.
15443 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
15445 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
15447 * macros/tmac.s (B2): Correct size of box.
15449 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
15451 * macros/tmac.s (B2): Postpone drawing the box until in the
15452 top-level diversion.
15454 * tty/tmac.tty: Add font translations for C, CR, CW.
15456 * groff.c (synopsis, help): Document -i.
15457 * groff.sh: Implement -i.
15459 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
15460 Simplify the construction of SN.
15462 * troff/number.c (parse_term): Give `|' a higher precedence.
15463 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
15466 * macros/tmac.s (B2): Use par@finish instead of par@reset.
15468 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
15470 * lib/string.c (string::move): New function.
15471 * lib/stringclass.h: Declare it.
15473 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
15475 * troff/env.c (distribute_space): Add optional argument
15477 (environment::wrap_up_field): Call distribute_space with
15478 `force_forward' argument of 1.
15480 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
15482 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
15483 Inline it. Move reallocation into...
15484 (string::grow1): New function.
15485 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
15486 dependencies to include library header files.
15487 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
15489 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
15491 * macros/tmac.s (@NH): Use the same number registers than -ms does
15492 for the heading level counters. Use the same string that -ms does
15493 for the number for this heading.
15495 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
15497 * lib/new.c (operator new): Cast result of malloc to char *.
15499 * troff/input.c (spring_trap, lookup_request): Add assert that nm
15502 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
15504 * groff.c (main): Support -i.
15506 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
15508 * pic/pic.h: Include <osfcn.h>.
15510 * ps/ps.c: Add declaration of mktemp.
15512 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
15513 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
15514 argument as union wait *.
15515 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
15516 argument to union wait *.
15518 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
15520 * tty/tmac.tty: Add definition of \(co.
15522 * pic/object.c (make_arc): Only increase radius when radius
15523 strictly less than d.
15524 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
15527 * troff/env.c (environment::environment(symbol),
15528 environment::environment(const environment *)): Initialize
15531 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
15533 * tbl/main.c (main): Add exit(0).
15535 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
15537 * pic/main.c (main):
15538 * eqn/main.c (main):
15539 * tbl/main.c (main):
15540 * etc/soelim.c (main):
15541 * driver/printer.c (printer::~printer):
15542 * troff/node.c (real_output_file::~real_output_file,
15543 real_output_file::flush): Check for errors on stdout.
15545 * most files: Add 1991 to copyright notice.
15547 * macros/tmac.s: Don't test \n(.x and \n(.y.
15549 * troff/input.c (token::next): Rename `escape_char' label to
15550 `handle_escape_char' and `normal_char' label to
15551 `handle_normal_char'.
15553 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
15555 * groff.c (main, synopsis, help): Support -a option.
15556 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
15557 to trflags while parsing options.
15559 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
15561 * troff/number.c (parse_term): With `m', `M' and `n' scale
15562 indicators, convert scale factor to hunits before scaling.
15564 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
15566 * lib/font.c (scale_round): Better test for overflow when n is
15569 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
15571 * tbl/main.c (process_format): Add second argument of type
15572 options*. Change callers. Allow opt->tab_char as well as '\t'
15573 between format items.
15575 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
15577 * macros/tmac.an (PD): With no arguments, make sure register PD is
15579 (TH): Call PD with no argument, instead of setting register PD
15582 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
15584 * Version 1.00 released.
15586 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
15588 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
15590 * dvi/devdvi/DESC: Mount CW instead of CR.
15592 * dvi/tmac.dvi: Add definition of \(tm.
15594 * dvi/devdvi/texsy.map: Add lh, and rh.
15595 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
15596 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
15598 * dvi/devdvi/FontMakefile: Generate H from cmss10.
15599 * dvi/devdvi/Makefile: Install H.
15600 * dvi/devdvi/H: New file.
15602 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
15604 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
15607 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
15609 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
15611 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
15613 * macros/tmac.s (@EN): Handle the case where the equation is empty
15614 but the label is not.
15616 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
15618 * troff/groff.h: New warning category WARN_SPACE.
15619 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
15620 WARN_SPACE to warning_table.
15621 (interpolate_macro): Give a warning of type WARN_SPACE if the name
15622 is longer than two characters and is not defined, but the first
15623 two characters do make a defined name.
15625 * PROBLEMS: New file.
15627 * CHANGES: New file.
15628 * README-0.6, README-1.00: Deleted.
15630 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
15631 * xditview/devX75/Makefile: Make devX75-12.
15632 * xditview/devX100/Makefile: Make devX100-12.
15634 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
15635 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
15637 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
15639 * README-0.7: Rename to README-1.00.
15641 * macros/tmac.pic: New file.
15642 * macros/Makefile (install.nobin): Install tmac.pic.
15644 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
15646 * troff/env.c (hyphen_word): Correct the test for whether the
15647 token is a hyphen. Reset npos to 0.
15649 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
15651 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
15653 * macros/tmac.s (ds*common-end): Call par*reset.
15655 (par@reset-indent): Deleted.
15657 * macros/tmac.s (@IP): Divert the label.
15659 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
15661 * xditview/draw.c (setGC): Use a line width of .1m rather than
15662 .04m by default; round rather than truncate value.
15664 * tbl/table.c (class empty_entry): New class.
15665 (empty_entry::empty_entry, empty_entry::line_type): New functions.
15666 (table::add_entry): Represent empty entries by objects of type
15668 (table_entry::line_type): Return -1.
15669 (table::determine_row_type): Ignore entries with line_type 0.
15670 Treat type -1 as non-lines.
15672 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
15674 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
15675 macros/tmac.s: Rename \(-d to \(Sd.
15677 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
15679 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
15680 * xditview/libXdvi/DviChar.c: Likewise.
15681 * dvi/devdvi/texsy.map: Add `<<', `>>'.
15683 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
15685 * troff/div.c (top_level_diversion::begin_page): Call
15686 init_output() if the_output is 0.
15688 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
15690 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
15692 (get_copy): Turn \E into ESCAPE_E.
15693 (token::process, asciify): Handle ESCAPE_E.
15695 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
15697 (DS): Implement `.DS R'.
15699 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
15701 * macros/tmac.s (FS): New macro.
15703 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
15705 * macros/tmac.s (cov*tl-init): Remove after first execution
15706 instead of aliasing to @nop. Call top of page macro explicitly
15707 instead of setting trap; call @init first. Set pg@top as top of
15709 (cov*auto-init): Deleted. Set cov*tl-init instead of
15710 cov*auto-init as top of page trap.
15711 (TL, LP): Do a break instead of calling cov*tl-init.
15712 (cov*print): With RP format but no TL, alias FS and FE to @FS and
15713 @FE; in this case also give a warning and always start another
15714 page. No need to set pg@top here.
15715 (cov*tl-init): Rename to cov*first-page-init.
15717 * macros/tmac.s (RP): Do `.pn 0'.
15718 (cov*tl-init): With RP format don't do `.pn 0'.
15720 * macros/tmac.s (pg@cs-top): Set no space mode.
15722 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
15723 (cov*ab-init): Alias TL, AU and AI to these.
15725 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
15727 * macros/tmac.s (@EQ): Move the space before the equation into @EN
15728 (@EN): Do nothing unless \n[dl] is > 0.
15730 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
15732 * pic/object.c (ellipse_object::radius): New function.
15734 * VERSION: Change version to 0.7.
15736 * tbl/table.c (block_entry::do_divert): Declare return type as
15738 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
15740 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
15742 * troff/column.c: New file.
15743 * troff/Makefile: Corresponding changes.
15745 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
15748 * troff/div.c (top_level_diversion::space): If the space causes
15749 the first-page transition and springs a trap, truncate the space
15752 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
15754 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
15757 * pic/troff.c (troff_output::line_thickness,
15758 troff_output::set_fill): Do a horizontal motion to compensate for
15759 the width of the \D escape sequence.
15761 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
15763 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
15766 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
15769 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
15770 Supply empty definition.
15771 (text_entry::simple_print, simple_text_entry::simple_print):
15772 Delete declarations.
15773 (table::add_entry): Represent empty entries by objects of type
15776 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
15778 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
15780 * tbl/table.c (left_text_entry::add_tab): New function.
15782 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
15783 initialize like LP.
15785 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
15787 * troff/env.c (environment::start_field): Give an error message if
15788 there is no next tab.
15790 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
15792 * troff/env.c (hyphenate): Skip initial elements with zero
15795 * macros/tmac.s (par@init): Keep VS in points rather than units.
15797 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
15799 * pic/main.c (main): Implement `-c' option.
15800 * pic/output.h: Declare make_tpic_output().
15801 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
15803 (tpic_output): New class.
15804 (tpic_output::tpic_output, tpic_output::set_pen_size,
15805 tpic_output::command, make_tpic_output): New functions.
15807 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
15809 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
15810 if they're not already defined.
15811 * tbl/table.c (init_output): Don't test \n(.g.
15813 * troff/input.c (do_if_request): Delete `g' condition. Recognize
15814 `d', `r' and `c' conditions even in compatibility mode.
15816 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
15818 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
15821 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
15823 * troff/env.h (environment::prev_line_interrupted): New member.
15824 (environment::get_prev_line_interrupted): New function.
15825 * troff/env.c (environment::newline): Set prev_line_interrupted.
15826 (environment::environment(const environment *),
15827 environment::environment(symbol)): Initialize
15828 prev_line_interrupted.
15829 * troff/input.c (process_input_stack): Don't give special
15830 treatment to space and newline at the beginning of the line if the
15831 previous line was interrupted.
15833 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
15835 * eqn/eqn.y: Disallow PRIME by itself.
15836 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
15838 (def_table): Remove definition of '. Define prime to be `.
15840 * eqn/eqn.y: Split off part of rule `script' into a new rule
15843 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
15845 * macros/tmac.s ({, }): New string aliases.
15847 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
15849 * README-0.7: New file.
15851 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
15853 * macros/tmac.s: New file.
15854 * man/groff_ms.man: New file.
15855 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
15856 * Makefile.bd: Similarily.
15857 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
15858 definition of TMAC_S.
15859 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
15860 * macros/TODO: New file.
15862 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
15864 * troff/env.c (right_justify): New function.
15865 (init_env_requests): Bind this to request "rj".
15866 (center_lines): Set right_justify_lines to 0. If we get a bad
15867 integer, center 1 line.
15868 (environment::environment(symbol), environment::environment(const
15869 environment *)): Initialize right_justify_lines.
15870 (environment::get_right_justify_lines): New function.
15871 (init_env_requests): Bind this to number_register ".rj".
15873 * troff/env.c (environment::choose_breakpoint): Implement
15874 hyphenation_margin and hyphenation_space.
15875 (environment::get_hyphenation_space,
15876 environment::get_hyphenation_margin): New functions.
15877 (init_env_requests): Bind these to .hys and .hym.
15878 (hyphenation_space_request, hyphenation_margin_request): New
15880 (init_env_requests): Bind these to hys and hym.
15881 (environment::environment(symbol), environment::environment(const
15882 environment *)): Initialize hyphenation_margin and
15884 * troff/env.h: Corresponding changes to class environment.
15886 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
15888 * troff/div.c (blank_line): Always do a break.
15890 * eqn/box.c (do_text): Turn off escapes while appending text to
15893 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
15895 * troff/input.c (while_break_request, while_continue_request): New
15897 (init_input_requests): Bind these to "break" and "continue".
15898 (while_depth, while_break_flag): New variables.
15899 (while_request): Update while_depth. Break out of loop if
15900 while_break_flag is set.
15902 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
15904 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
15907 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
15909 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
15911 * stringify: New file.
15912 * Makefile (groff.o): Use stringify.
15914 * xditview/tmac.X: Remove definition of \(rn.
15915 * xditview/libXdvi/DviChar.c: Remove radicalex from
15918 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
15920 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
15921 (alphabetic_block_entry::alphabetic_block_entry,
15922 alphabetic_block_entry::divert, alphabetic_block_entry::print):
15924 (block_entry::divert): Split off body into ...
15925 (block_entry::do_divert): If the block is alphabetic, subtract 2n
15926 from the line length; also update the span width to dl+2n, and the
15927 alphabetic span width to dl.
15929 * driver/input.c (do_file): While reading argument to D command,
15930 when expanding buffer, multiply szp by sizeof(int) rather than 2
15931 in the argument to memcpy.
15933 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
15934 width of alphabetic columns.
15936 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
15938 * troff/node.c (lookup_family): Supply second argument to lookup.
15940 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
15941 search, return immediately if v is 0.
15943 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
15944 (troff_output::start_picture): Set this reg.
15945 (troff_output::end_picture): Remove this reg
15946 * eqn/box.c (box::extra_space): Don't produce `\x's if
15947 EQN_NO_EXTRA_SPACE_REG is defined.
15949 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
15950 * eqn/text.c (split_text): Map ' to \(fm when it's the first
15953 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
15955 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
15958 * troff/div.c (top_level_diversion::top_level_diversion):
15959 Initialize page_number to 0.
15961 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
15963 * groff/troff (environment::environment(const environment *)):
15964 Initialize name to e->name, rather than "anonymous".
15966 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
15968 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
15969 requested_page. Split middle part into ...
15970 (FindPage): New function.
15971 (SetValues): If we don't yet know the last page, and the requested
15972 page is greater than the current page, call FindPage.
15973 Update the font_map_string before doing this.
15975 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
15976 Translate \(lh and \(rh into left and right double arrows.
15978 * troff/node.c (class hyphen_inhibitor_node): New class.
15979 (hyphen_inhibitor_node::hyphen_inhibitor_node,
15980 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
15981 hyphen_inhibitor_node::type,
15982 hyphen_inhibitor_node::get_hyphenation_type): New functions.
15983 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
15984 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
15987 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
15989 * troff/node.h (dummy_node::get_hyphenation_type,
15990 transparent_dummy_node::get_hyphenation_type): Declare them.
15991 * troff/node.c: (dummy_node::get_hyphenation_type,
15992 transparent_dummy_node::get_hyphenation_type): New functions.
15994 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
15996 * xditview/libXdvi/draw.c: If M_PI not defined after including
15997 math.h, then define it.
15999 * xditview/Makefile: Add definition of AR. Pass it to the submake
16001 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
16003 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
16005 * troff/dictionary.h (object_dictionary::alias): Declare return
16007 * troff/dictionary.c (object_dictionary::alias): Return non-zero
16008 if the old name was defined.
16009 * troff/input.c (alias_macro): Give a warning if the old name was
16011 * troff/reg.c (alias_reg): Likewise.
16013 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
16015 * troff/input.c (token::next): Delete implementation of \R.
16017 * macros/Makefile: Strip comments from tmac.e while installing it.
16019 * troff/input.c: New variable `nroff_mode'.
16020 (troff_request, nroff_request): New functions.
16021 (init_input_requests): Bind `troff' and `nroff' to troff_request
16023 (do_if_request): Compute results of t and n conditions from
16026 * text/text.c (split_text): Fix typo in >=.
16028 * eqn/lex.c: Add definition of `==' to def_table.
16030 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
16032 * pic/tex.c (tex_output::start_picture): Change the definitions of
16033 \graph and \graphtemp so that they work properly with Plain TeX.
16035 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
16036 argument to `ar' is not less than the first.
16038 * pic/pic.y: Allow a comma between elements of the variable list
16039 in the argument to `reset'.
16041 * pic/object.c (arc_object::arc_object): Fix computation of
16044 * eqn/main.c (main): Add exit(0).
16046 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
16048 * troff/div.c (begin_page): Test no_space_mode after doing the
16049 break, but still push the page ejector cookie before doing the
16050 break. Also set the next page number after doing the break.
16052 * xditview/xditview.c (NewFile): Don't set the title and icon name
16053 if this is the first file and its name is `-'.
16054 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
16055 the X75 and X100 devices.
16056 (main): If a device has the XT_OPTION flag set and there's exactly
16057 one file argument, pass the driver -xrm and -title options to set
16058 the icon name and window title to the name of the file.
16060 * troff/env.c (environment_switch): If there was an argument but
16061 it wasn't a valid number or name, then pop an environment but
16062 don't give an error message on underflow.
16064 * troff/number.c (start_number): Correct spelling in error message.
16066 * troff/input.c (token::delimiter): Don't print an error message
16069 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
16070 ParseDrawFunction if dw->display_enable is true.
16072 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
16074 * pic/pic.y: Parse text positioning like normal attributes, so as
16075 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
16076 positioning attribute.
16078 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
16080 * tbl/main.c (process_data): When in state START while reading a
16081 text block, don't change to state MIDDLE if c is a newline.
16083 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
16085 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
16086 so as to avoid shadowing parameter.
16088 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
16090 * tbl/table.c (trim_space): Deleted.
16091 (table::add_entry): Don't call trim_space.
16093 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
16095 * VERSION: Change version to 0.6.
16097 * troff/number.c (parse_expr): Make == work.
16099 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
16101 * man/grog.man: New file.
16102 * man/Makefile: Add grog.n to MAN1PAGES.
16103 * etc/grog.sh: New file.
16104 * etc/Makefile: Install grog.sh as grog.
16106 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
16108 * troff/input.c (token::next): Implement \E.
16110 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
16112 * xditview/tmac.X: Change font translations to match tmac.ps.
16114 * troff/input.c (non_empty_name_warning): Don't give a warning if
16115 `\{' terminates the name.
16117 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
16119 * ps/devps/symbol.diff: New file.
16120 * ps/devps/FontMakefile: Mention symbol.diff.
16122 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
16124 * troff/node.c (font_position): Use get_long_name to read the
16127 * troff/env.c (environment_switch): If we get a number that's < 0
16128 or >= NENVIRONMENTS, treat it like a name.
16129 Change NENVIRONMENTS to 10.
16131 * troff/groff.h: Remove definition of FONTS_MAX.
16132 * troff/node.h (class font_family): Make map a pointer instead of
16133 an array. Add a map_size member. Make it a class. Make nm const
16134 and public. Make invalidate_fontno a friend.
16135 * troff/node.c: Define font_table_size. Make font_info a pointer
16136 rather than an array.
16137 (class troff_output_file): Allocate font_position dynamically. Add
16138 nfont_positions member.
16139 (troff_output_file::set_font): Grow font_position if necessary.
16140 (troff_output_file::~troff_output_file): Delete font_position.
16141 (troff_output_file::troff_output_file): Allocate font_position.
16142 (grow_font_table): New function.
16143 (troff_output_file::really_begin_page,
16144 troff_output_file:really_copy_page): Use nfont_positions rather
16146 (mount_font_no_translate, mount_style): Call grow_font_table if
16148 (font_family::font_family): Allocate map.
16149 (font_family::make_definite): Grow map if necessary. Use
16150 font_table_size instead of FONTS_MAX.
16151 (font_family::~font_family): New function.
16152 (invalidate_fontno): Use font_family::map_size.
16153 (get_fontno, env_space_width, env_half_narrow_space_width,
16154 env_narrow_space_width, symbol_fotno, is_good_fontno,
16155 get_bold_fontno, make_glyph_node): Use font_table_size rather than
16157 (next_available_font_position): Never return 0.
16159 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
16161 * ps/tmac.ps: Add font translations for compatibility with dpost.
16163 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
16165 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
16166 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
16167 Move definitions baseline_sep, shift_down, column_sep,
16168 matrix_side_sep into...
16169 * eqn/box.c: Add them to param_table.
16170 * eqn/pbox.h: Add declarations to pbox.h.
16172 * troff/input.c (set_string): Cast value to unsigned char *.
16174 * troff/token.h (process_input_stack): Declare it static before
16175 declaring it a friend.
16177 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
16179 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
16181 * dvi/devdvi/EX: Regenerate.
16183 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
16186 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
16188 * eqn/lex.c: In defaults_table, make definition of `dot' call
16189 `dot_def'. Don't explicitly make it roman. Similarily for other
16192 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
16194 (for_input::get, for_input::peek): Use this.
16195 (do_for): Add by_is_multiplicative argument.
16196 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
16197 Change semantic value of optional_by to be a double plus a flag
16198 saying whethet the by clause is multiplicative.
16200 * eqn/lex.c (get_delimited_text): Remember location of start of
16201 definition. Improve error handling when EOF is encountered.
16203 * lib/font.h: Rename handle_x_command to
16204 handle_unknown_font_command.
16205 * lib/font.c (font::load): Call handle_unknown_font_command for
16206 any unknown command in the font description file. Don't call
16207 handle_x_command. Include the name of the command in the argv.
16208 Improve message for unknown command after kernpairs or charset
16210 * ps/ps.c (ps_font::handle_x_command): Rename to
16211 handle_unknown_font_command. Remove message about `x download'
16212 command. Give error message for wrong number of arguments.
16213 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
16214 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
16215 handle_unknown_font_command. Give an error message for wrong
16216 number of arguments. Rename design_size to designsize.
16217 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
16218 checksum', `designsize' instead of `design_size'.
16220 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
16222 * eqn/*.[chy]: Change underaccent to uaccent.
16224 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
16225 give it the same precedence as ACCENT.
16226 * eqn/other.c (make_underaccent_box): New function.
16227 * eqn/box.h: Declare it.
16228 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
16231 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
16233 * pic/pic.y (reset_all): New function. Called in rule for RESET.
16234 (parse_init): Call reset_all.
16235 (define_variable): When defining scale reset only those
16236 pre-defined variables that are scaled.
16237 (defaults_table): Add `scale' as non-scaled value.
16239 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
16240 together with the text; allow any number of positioning words;
16241 allow center as a positioning word.
16243 * pic/object.c (output::compute_scale): Get picture maximum height
16244 and width from variables called maxpswid and maxpsht.
16245 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
16247 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
16249 * pic/object.c (object_spec::make_text): Multiply textht by number
16252 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
16254 (do_sprintf): New function.
16255 (pic.gperf): Add sprintf token.
16256 (text, sprintf): New rules.
16258 * pic/pic.y: `rand()' with no arguments returns a random number
16259 in the range [0,1).
16261 * pic/pic.y: Allow a bare expression to be an attribute: change
16262 precedences to support this. Change optional_ordinal rule to
16263 optional_ordinal_last to avoid reduce/reduce conflict.
16264 * pic/object.c (object_spec::object_spec): Initialize direction.
16266 * pic/pic.y: Implement ^ operator meaning exponentiation.
16268 * troff/node.h: Add default argument to mount_font.
16269 * troff/node.c (font_position): Read an optional third argument
16270 giving the external_name.
16271 (mount_font): Add optional argument giving the external_name.
16272 (mount_font_not_translate): Have additional argument giving
16273 external name. Use this name to load the font. Pass both names
16274 to font_info::font_info.
16275 (font_info::font_info): Have additional argument giving
16277 (class tfont): New member external_name.
16278 (font_info::get_tfont): Use external name to construct tfont_spec.
16280 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
16282 * eqn/lex.c (init_table): Add argument giving device. Define
16283 name of device to be "1".
16284 (do_ifdef): Counts as true if the argument has been defined with
16286 * eqn/main.c (main): Call init_table with device argument. Make
16287 device local to main.
16288 * eqn/eqn.h: Change declaration of init_table. Remove declaration
16291 * pic/lex.c (get_delimited): Allow text to be delimited by
16292 matching {}s. Don't recognize ending delimiter within a string.
16294 * troff/input.c (get_delim_name): New function.
16295 (token::next): Implement \C.
16297 * lib/font.c (font::load): Grok ---. Add an alias for each
16298 character based on its code.
16299 (font::get_code_width): Deleted.
16300 * lib/font.h (class font): Declare font::number_to_index().
16301 Remove declaration of font::get_code_width.
16302 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
16303 to indices of named characters.
16304 (font::number_to_index): New function.
16305 * troff/input.c (font::number_to_index): New function.
16306 (get_charinfo_by_number, charinfo::get_number,
16307 charinfo::set_number): New functions.
16308 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
16309 (token::process, token::description, token::get_char,
16310 token::add_to_node_list, token::operator==): Handle
16311 TOKEN_NUMBERED_CHAR.
16312 * troff/charinfo.h: Declare get_charinfo_by_number,
16313 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
16315 (charinfo::numbered): New function.
16316 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
16317 * troff/env.h (class environment): Remove declaration of ...
16318 * troff/env.c (environment::make_numbered_char_node): Deleted.
16319 * troff/node.c (make_numbered_node): Deleted.
16320 (class numbered_glyph_node): Remove.
16321 (troff_output_file::put_char_width, troff_output_file::put_char):
16322 Handle numbered chars.
16323 (troff_output_file::numbered_char): Removed.
16324 (tfont::get_code_width): Removed.
16325 (make_glyph_node): Don't search special fonts for numbered
16327 * troff/node.h: Remove declaration of make_numbered_node.
16328 * driver/input.c (do_file): Handle N command.
16329 * driver/printer.h: Add declaration of ...
16330 * driver/printer.c (printer::set_numbered_char): New function.
16331 * dvi/tfmtodit.c (main): Generate unnamed entries.
16332 * ps/devps/afmtodit: Likewise.
16333 * xditview/xtotroff.c (MapFont): Likewise.
16334 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
16336 * tbl/main.c (process_format): If multiple widths are specified
16337 for a column but all the widths are the same, don't give an error
16340 * tbl/table.c (table::do_row): If the current row is all lines and
16341 the stuff doesn't contains a line, mark the top of the row after
16342 printing stuff before the row. If the current row is not all
16343 lines and the stuff doesn't contain a line, don't unnecessarily
16344 mark the top of the row before printing the stuff.
16346 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
16348 * troff/groff.h: Remove MAX_PATH.
16349 * troff/input.c (open_file): Dynamically allocate space for the
16351 (open_mac_file, process_macro_file): Corresponding changes.
16353 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
16355 * troff/node.h (class output_file): Make copy_file pure. Add
16356 vspace method ifdef COLUMN. Add is_printing method.
16357 * troff/node.c: Add class printing_reg. Add class
16358 real_output_file. Derive other output_file classes from
16359 real_output_file; in these classes rename begin_page to
16360 really_begin_page, print_line to really_print_line, copy_file to
16361 really_copy_file, transparent_char to really_transparent_char.
16362 Move output_file::flush to real_output_file. Add printing member
16363 to class output_file.
16364 * troff/div.h: Remove printing member from top_level_diversion.
16365 Add vspace member function to class diversion ifdef COLUMN. Add
16366 some declarations ifdef COLUMN.
16367 * troff/div.c (top_level_diversion::copy_file,
16368 top_level_diversion::transparent_output,
16369 top_level_diversion::output): Don't test printing member before
16371 * troff/input.c: Handle initial variable_space_request ifdef
16373 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
16374 but comment it out.
16376 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
16378 * troff/div.c (diversion::need): Make any space forced. If we
16379 sprung a trap, set truncated_space to minus the distance to the
16380 trap and set needed_space to the amount that was needed.
16381 (top_level_diversion::space): A forced space turns no_space_mode
16383 (class constant_vunits_reg): New class.
16384 (init_div_requests): Implement number registers .trunc and .ne
16385 using constant_vunits_reg.
16386 (class truncated_space_reg): Deleted.
16388 * troff/div.h: Don't have a no_space_mode member in diversion.
16389 Instead have it in top_level_diversion.
16390 * troff/div.c (diversion::diversion): Don't initialize
16392 (top_level_diversion::top_level_diversion): Initialize
16394 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
16395 (macro_diversion::output): Don't clear no_space_mode.
16397 * troff/input.c (diverted_space_node::reread): Don't call
16398 environment::do_break. In fill mode, act like a blank line.
16399 (diverted_copy_file_node::reread): Don't call
16400 environment::do_break.
16402 * troff/div.c (blank_line): New function.
16403 * troff/div.h: Declare it.
16404 * troff/input.c (process_input_stack): Call it.
16406 * troff/div.c (truncated_space_reg::get_string): New function.
16407 (init_div_requests): Bind to .trunc.
16408 (space_request, top_level_diversion::space,
16409 top_level_diversion::output, macro_diversion::space,
16410 macro_diversion::output): Update truncated_space.
16411 (macro_diversion::output): Redo calculations when trap sprung.
16412 (macro_diversion::output, macro_diversion::space): No need for
16415 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
16416 after truncating post line spacing.
16418 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
16420 * ps/devps/prologue (MF, SF): Make them work even if setfont is
16421 defined as a procedure rather than as an operator.
16423 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
16425 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
16427 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
16429 * troff/div.c (top_level_diversion::output): Merge
16430 output_file::print_line and output_file::end_of_line member
16432 * troff/div.h (class output_file):
16433 * troff/node.c (troff_output_file::print_line,
16434 troff_output_file::end_of_line, output_file::end_of_line,
16435 ascii_output_file::print_line, suppress_output_file::print_line):
16436 Corresponding changes.
16438 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
16440 * troff/input.c (token::next): Don't give a warning for `\.'.
16442 * troff/env.c (environment::get_center_lines): New function.
16443 (init_env_requests): Bind number register .ce to it.
16444 * troff/env.h: Declare it.
16445 * tbl/table.c (table::init_output): Define reset macro to restore
16446 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
16448 (table::print): If center option not given, then imply center
16449 option if SAVED_CENTER_REG > 0.
16451 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
16453 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
16454 Troff.ps from DOWNLOAD.
16456 * troff/Makefile: Change comment in DEFINES to avoid confusing
16459 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
16460 code. Don't try to catch errors with stopped.
16461 (check_line_lengths): New function.
16462 * ps/devps/prologue (EXEC): Deleted.
16463 (EBEGIN, EEND): New procedures.
16465 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
16467 * troff/input.c: Include request.h before node.h.
16468 * troff/node.c: Likewise.
16469 * troff/env.c: Likewise.
16470 * troff/div.c: Likewise.
16471 * troff/node.h (class special_node): Store argument as a macro
16472 rather than a char *.
16473 * troff/node.c (special_node::special_node, special_node::copy):
16475 (special_node::~special_node): Deleted.
16476 (special_node::tprint): Deleted.
16477 (special_node::tprint_start, special_node::tprint_end,
16478 special_node::tprint_char): New functions.
16479 (troff_output_file::special): Deleted.
16480 (troff_output_file::start_special, troff_output_file::end_special,
16481 troff_output_file::special_char): New functions.
16482 * troff/input.c (special_node::tprint): New function.
16483 (do_special): Use macro not char *.
16484 (do_transparent_macro): Deleted.
16485 (token::next): Don't call do_transparent_macro.
16487 * troff/input.c (token::next): Add 'Y' case.
16488 (do_transparent_macro): New function.
16489 * troff/node.c (troff_output_file::special): Handle newlines with
16490 argument using new continuation convention.
16491 * driver/input.c (get_string): Cope with continuation convention.
16492 (do_file): Don't call skip_line after calling get_string(1).
16493 * ps/ps.c (ps_printer::special, ps_printer::do_import,
16494 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
16496 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
16499 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
16501 * troff/input.c (asciify): By default, illegal input characters
16502 should return empty string.
16504 * troff/input.c (copy_file): Handle first page transition like title.
16505 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
16507 * troff/input.c (token::next): Improve error message for EOF after
16509 (input_char_description): New function.
16510 (get_char_for_escape_name): Use input_char_description.
16511 (token::next): Warn about unrecognized escape sequences.
16512 (warning_table): Add WARN_ESCAPE.
16513 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
16516 * troff/token.h: Remove declaration of process_input_stack.
16518 * troff/input.c: Remove declaration of init_hyphen_requests.
16519 * troff/request.h: Correct spelling in declaration of same.
16521 * troff/input.c (token::next): Check whether escape_char is 0.
16523 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
16525 * groff.c (main, usage, help): Implement -P and -L options.
16526 * groff.sh: Likewise.
16528 * troff/input.c (token::next): Use some gotos to avoid code
16531 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
16532 Avoid calling symbol::symbol if name empty.
16534 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
16536 * troff/input.c (init_input_requests): Make \n(.x return the major
16537 version number and \n(.y return the minor version number.
16538 * troff/Makefile: Construct file majorminor.c defining
16539 major_version and minor_version automatically from ../VERSION.
16541 * troff/node.c (class glyph_node): Make operator new and operator
16543 (class ligature_node): Similarily.
16545 * troff/input.c (operator==(const macro &, const macro &)): New
16547 (non_interpreted_node::same): Use this.
16548 (string_iterator::string_iterator): Make macro& argument const.
16550 * troff/input.c (input_iterator::get): New function. Don't make
16551 asciify_macro or class non_interpreted_node friends of class
16553 (non_interpreted_node::interpret): Use input_iterator::get.
16554 (asciify_macro): Likewise.
16556 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
16557 ~non_interpreted_node): Deleted.
16558 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
16561 * troff/symbol.h: Make all symbol member functions const.
16563 * lib/strtol.c: New file.
16564 * lib/Makefile: Add strtol.c.
16565 * Makefile: Define STRTOL as strtol.o to include strtol in
16568 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
16570 * pic/troff.c (troff_output::simple_circle): Divide by scale.
16572 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
16574 * troff/input.c (do_special): Use input_level.
16576 * troff/token.h (TOKEN_BACKSPACE): New token.
16577 (token::backspace): New function.
16578 * troff/input.c (token::description, token::next, token::process):
16579 Grok TOKEN_BACKSPACE.
16580 (do_special): Turn TOKEN_BACKSPACE back into \b.
16582 * troff/token.h (token::leader): New function.
16583 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
16585 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
16587 * troff/input.c (do_special): Use token::description in error
16590 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
16592 * troff/input.c (decode_args): Combine quoted and
16593 quote_input_level variables. Make it a for (;;) loop.
16595 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
16597 * troff/input.c (read_long_escape_name): The test for whether to
16598 expand buffer was off by 1.
16599 (read_string): Similarily.
16601 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
16603 * troff/input.c: Use `const int' rather than `static const int'.
16605 * troff/div.h (diversion::copy_file): Declare as pure virtual.
16606 (macro_diversion::copy_file): New function.
16607 * troff/node.h: New class diverted_copy_file_node.
16608 * troff/node.c: Implement it.
16609 * troff/input.c (copy_file): Use diversion::copy_file. Handle
16610 first page transition by pushing a diverted_copy_file_node.
16611 * troff/input.c (token::next, process_input_stack): Don't handle
16614 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
16616 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
16617 whether space widths need adjusting.
16619 * troff/charinfo.h: Generalize translated_to_space to
16620 special_translation so as to allow translation to \&.
16621 * troff/input.c (translate): Allow translation to \&.
16622 (charinfo::*): Corresponding changes.
16623 * troff/node.c (make_node, node::add_char): Corresponding changes.
16624 * troff/node.h (dummy_node::dummy_node): Allow optional first
16627 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
16628 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
16630 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
16631 TOKEN_REQUEST with an argument of TITLE_REQUEST.
16632 (token::process): Grok that.
16633 * troff/input.c (copy_file): Handle first page transition like
16634 title by pushing a COPY_FILE_REQUEST cookie.
16635 (token::next, process_input_stack): Grok that.
16636 * troff/node.h (output_file::copy_file): Add x and y arguments.
16638 * troff/div.c (top_level_diversion::copy_file): Supply them.
16639 * troff/node.c (troff_output_file::copy_file): Add x and y
16640 arguments; moveto specified position. Invalidate font_position
16641 array after copying file.
16642 (output_file::copy_file): New function.
16643 (suppressed_output_file::copy_file, ascii_output::copy_file):
16645 * troff/input.c (transparent_file): New function.
16646 (init_input_requests): Bind to "trf".
16647 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
16648 (process_input_stack): Likewise.
16650 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
16652 * troff/node.c (init_node_requests): New number registers .kern
16653 pointing to global_kern_mode, and .lg pointing to
16654 global_ligature_mode.
16656 * troff/node.c (ligature): Don't change it if we get a bad
16659 * troff/input.c (do_define_string): Don't strip tabs.
16661 * troff/input.c (asciify_macro): Make the string_iterator auto.
16663 * troff/node.c (init_font_requests): Rename to...
16664 (init_node_requests):
16665 * troff/node.h: Change declaration.
16666 * troff/input.c (main): Change call.
16668 * troff/input.c (node::reread, diverted_space_node::reread): New
16670 (process_input_stack): Call reread rather than
16671 get_diverted_space_node.
16672 * troff/node.c (node::get_diverted_space_node,
16673 diverted_space_node::get_diverted_space_node): Removed.
16674 * troff/node.h: Declare reread methods instead of
16675 get_diverted_space_node methods. Make `n' member private.
16676 * troff/input.c: (token::diverted_space): Removed.
16677 * troff/token.h: Removed declaration.
16680 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
16682 * eqn/script.c (script_box::compute_metrics): Don't let
16683 SUP_RAISE_FORMAT become negative.
16685 * tbl/table.c (table::do_row): Entries that don't end in the
16686 this row shouldn't make the row non-blank.
16688 * tbl/table.c (table::make_columns_equal): Only set the width of
16689 columns which are marked as equal.
16691 * tbl/main.c (process_data): Before issuing excess data error,
16692 if last character was a newline unget it; then get it again after
16693 the error. Also include the contents of the entry in the message.
16695 * groff.c: New file.
16696 * Makefile: Build groff from groff.c. Make it possible to use
16697 either groff.sh or groff.c as groff.
16698 * Makefile.bd: Similarily.
16700 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
16702 * groff.sh: Don't delay expansion of $@ in assignment to files.
16703 Remove occurrences of \".
16705 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
16707 * all Makefiles: Simplify and rearrange.
16709 * Makefile: Handle fmod like malloc.
16710 * lib/Makefile: Similarily.
16711 * lib/fmod.c: Remove #ifdef NEED_FMOD.
16713 * Makefile: Rename OPTIMISE to OPTIMIZE.
16715 * groff.sh: Remove assignment to PATH.
16716 * Makefile: Remove SHPATH variable.
16717 * Makefile.bd: Similarily.
16719 * groff.sh: Add -V option to print the pipeline instead of
16722 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
16724 * lib/font.c: Split off file searching into ...
16725 * lib/fontfile.c: New file.
16727 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
16729 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
16731 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
16732 Also change misleading comment.
16733 (table::do_vspan): Change similarily misleading comment.
16734 * tbl/main.c (process_data): A format row with an explicit `s'
16735 uses up a data line, even if all the other columns are `_' or `='.
16737 * troff/input.c (token::description): Fix description of
16738 TOKEN_DUMMY and TOKEN_EMPTY.
16740 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
16742 * groff.sh: Fix description of -Z in help message.
16744 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
16746 * pic/object.c (object_spec::make_object): Allow negative and zero
16748 * pic/pic.y: Give linethick default value of -1.0.
16749 * pic/troff.c (troff_output::troff_output): Initialize
16750 last_line_thickness to BAD_THICKNESS.
16751 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
16752 (troff_output::line_thickness): Canonicalize negative thicknesses
16753 to RELATIVE_THICKNESS.
16754 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
16755 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
16757 (tex_output::start_picture): Set pen_size to -2.0.
16759 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
16760 0, then use 0 linewidth.
16761 (ps_printer::ps_printer): Initialize line_thickness to -1.
16763 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
16765 * ps/devps/symbolchars: Remove `or'.
16766 * ps/tmac.ps: Implement \(or with .char.
16768 * ps/devps/symbolchars: Move most characters into textmap.
16769 * ps/devps/textmap: Add names for troff bracket characters. Remove
16772 * ps/devps/TSymbol.ps: Removed.
16773 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
16774 * ps/tmac.ps: Do with .char what TSymbol did.
16775 * ps/devps/download: Remove TSymbol.
16777 * ps/devps/T: Removed.
16778 * ps/devps/Troff.ps: Removed.
16779 * ps/devps/Troff.afm: Removed.
16780 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
16781 * ps/devps/download: Remove Troff.
16782 * ps/devps/FontMakefile: Remove T target.
16783 * ps/devps/DESC-A4: Remove T from font list.
16784 * ps/devps/DESC-letter: Likewise.
16786 * troff/input.c (macro_to_node): Rename to ...
16787 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
16788 character's definition while processing it.
16789 * troff/node.c (node::add_char, make_node): Change calls to
16790 macro_to_node accordingly.
16792 * troff/input.c (token::next): Translate \_ to \(ul.
16794 * tty/devascii/R.proto: Add `|'.
16795 * tty/devlatin1/R.proto: Likewise.
16797 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
16799 * man: Put the version number in all the man pages.
16801 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
16803 * Makefile.bd: New file.
16804 * README.bd: New file.
16806 * VERSION: New file.
16807 * lib/version.c: Removed.
16808 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
16811 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
16812 environment variable.
16814 * all Makefiles: Split install target into install.bin for
16815 binaries, and install.nobin for everything else.
16816 * Makefile: Add bindist target.
16818 * man/afmtodit.man: New file.
16819 * man/Makefile: Add afmtodit.n to MAN1PAGES.
16820 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
16822 * ps/Makefile: Pass BINDIR to make install in devps.
16824 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
16825 the space character.
16827 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
16829 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
16831 * ps/ps.c: Redo font downloading.
16832 * ps/devps/download: New file.
16833 * ps/devps/Makefile: Add download to DEVICEFILES.
16834 * ps/devps/afmtodit: Remove -d option.
16835 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
16836 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
16837 * ps/devps/zapfdr.ps: Likewise.
16838 * ps/devps/TSymbol.ps: Likewise.
16840 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
16842 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
16844 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
16846 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
16847 then strip the first line if it starts with %.
16848 * Makefile: Add a comment about this.
16850 * man/tfmtodit.man: New file.
16851 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
16852 * dvi/Makefile: Install tfmtodit in BINDIR.
16854 * dvi/tfmtodit.c (usage): Mention -v option.
16856 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
16858 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
16859 * troff/node.c (troff_output_file::transparent_char): Don't call
16862 * eqn: Add check_tabs method to most box classes.
16863 * eqn/box.c (box::top_level): Call check_tabs.
16865 * eqn/script.c (script_box::output): Use \Z.
16866 * eqn/limit.c (limit_box::output): Use \Z.
16868 * eqn/box.c (box::top_level): Use itoa.
16870 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
16872 * dvi/tmac.dvi: Add font translations for CR, C, TT.
16873 * dvi/devdvi/Makefile: Don't make links to CW.
16875 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
16877 * xditview/tmac.X: Likewise.
16879 * troff/node.c: Add font translation feature.
16880 (get_font_translation): New function.
16881 (symbol_fontno): Translate the font name.
16882 (mount_font_no_translate): Rename to mount_font to this.
16883 (mount_font): New function.
16884 (font_family::make_definite): Call mount_font_no_translate instead
16886 (mount_style): Translate the font name.
16887 (font_translate): New function.
16888 (init_font_requests): Bind "ftr" to font_translate.
16890 * ps/devps/prologue (SN): New procedure that rounds a position to
16891 the nearest (pixel + (.25,.25)).
16892 (DL): Use SN to round endpoints.
16894 * lib/version.c: Changed version to 0.5.
16896 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
16898 * Makefile: Move definition of PAGE to the very beginning, so that
16899 people are less likely to miss it.
16901 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
16903 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
16905 * troff/env.c (environment::choose_breakpoint): Make `can't find
16906 breakpoint' error a warning of type WARN_BREAK. Change message to
16907 `can't break line'.
16908 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
16910 * troff/input.c: Add WARN_BREAK to warning_table. Include
16911 WARN_BREAK in DEFAULT_WARNING_MASK.
16913 * tty/tmac.tty: Add definition of \(+-.
16915 * groff.sh: Remove `--' option to set command.
16917 * dvi/devdvi/texsy.map: Remove duplicate md entry.
16919 * ps/devps/eqnchar: Better definition of cdot using md.
16920 * dvi/devdvi/eqnchar: Likewise.
16921 * xditview/devX100/eqnchar: Likewise.
16922 * xditview/devX75/eqnchar: Likewise.
16923 * eqn/lex.c: Add definition of cdot.
16925 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
16927 * troff/input.c (get_optional_char): New function.
16928 * troff/input.c (set_page_character): Use get_optional_char(),
16929 rather than has_arg() and tok.get_char(1).
16930 * troff/env.c (tab_character, leader_character, hyphen_char,
16931 field_characters): Likewise.
16932 (margin_character): Likewise. Also always delete the
16933 margin_character_node.
16935 * troff/input.c (token::get_char): Use token::description.
16937 * troff/input.c (has_arg): Don't skip over tab and \}.
16938 * troff/number.c (start_number): Give a warning if the number
16939 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
16941 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
16943 * troff/input.c (empty_name_warning, non_empty_name_warning): New
16945 (get_name, get_long_name): Use these. Rename `warn' argument to
16948 * troff/node.c (get_fontno): Test that the symbol is not null.
16950 * troff/input.c (token::description): New function.
16951 * troff/number.c (parse_term): Use token::description in `numeric
16952 expression expected' message.
16953 * troff/groff.h: Add WARN_MISSING.
16954 * troff/number.c (start_number): New function.
16955 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
16956 get_incr_number): Use start_number().
16957 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
16959 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
16960 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
16962 * troff/input.c (token::get_char): Use WARN_MISSING.
16963 * troff/input.c (token::delimiter): Use token::description.
16964 * troff/env.c (environment_switch): Back out Aug 3 change.
16965 * troff/input.c (has_arg): Skip over \}s and tabs but give a
16967 * troff/token.h (token::tab): New function.
16968 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
16969 * troff/reg.c (alter_format): Likewise.
16970 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
16972 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
16974 * troff (most files): Redo warnings. Divide warnings into various
16975 categories; warning() has an additional first argument indicating
16976 the category it falls into.
16977 * troff/input.c (main): -w now takes an argument. New option -W.
16978 (enable_warning, disable_warning): New functions.
16980 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
16981 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
16983 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
16985 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
16986 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
16987 * xditview/devX75/eqnchar: Likewise.
16988 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
16990 * eqn/other.c: When bar or over applies to a single character
16991 don't produce an overline_box or an underline_box. Instead produce
16992 an accent_box or an underaccent_box, with the accent a line
16993 whose width is accent_width. New classes underaccent_box,
16994 overline_char_box and underline_char_box.
16995 * eqn/box.h: Move overline_box, underline_box, accent_box class
16996 declarations into eqn/other.c. Add declarations of
16997 make_underline_box, make_overline_box, make_accent_box.
16998 * eqn/eqn.y: Call make_overline_box, make_underline_box
16999 make_accent_box instead of constructors.
17000 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
17002 * eqn/other.c: Add accent_box::~accent_box.
17003 * eqn/box.h: Declare it.
17005 * groff.sh: With -Tps, use eqn -D.
17007 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
17009 (underline_box::output): Similarily.
17010 (accent_box::output): Use \Z.
17012 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
17015 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
17017 * troff/div.c (top_level_diversion::transparent_output(unsigned
17018 char)): Use asciify.
17019 * troff/input.c (asciify): Don't make it static.
17020 * troff/token.h (asciify): Declare it.
17022 * troff/input.c (get_name, get_long_name, token::get_char,
17023 token::delimiter): Add an extra default argument which says
17024 whether a warning should be printed.
17025 * troff: Pass a non-zero argument to one of these rather than
17026 printing a warning directly.
17028 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
17030 * troff: Consistently use symbol::is_null.
17032 * troff/dictionary.h: Move some inline functions into
17035 * troff/request.h: Move inline functions into input.c.
17036 (request_or_macro::invoke): Make it pure.
17038 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
17039 * troff/input.c (init_input_requests): Use class constant_int_reg.
17040 (class compatible_reg): Deleted.
17041 * troff/div.c (init_div_requests): Use class constant_int_reg.
17042 (class last_post_line_extra_space_reg): Deleted.
17044 * troff/env.c (tab_character): Don't change the tab character if
17045 we get an invalid argument.
17046 (hyphen_char): Similarily.
17048 * troff/reg.c (alter_format): Check that nm is not null.
17050 * Makefile, groff.sh: Make it possible to customize the commands
17051 used for printing PostScript and dvi files. Also make it possible
17052 to customize the path used by groff.sh.
17054 * eqn/eqn.y: Make `left' right associative.
17056 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
17058 * pic/pic.h: Added definition of M_SQRT2 for those systems that
17061 * pic/pic.h: Removed definition of INT_MAX.
17063 * troff/node.c (italic_corrected_node::vertical_extent): Omit
17066 * troff/input.c (token::next): Handle \R like \n.
17068 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
17070 * ps/tmac.pc (PSPIC): Simplify.
17072 * troff/env.c (tab_stops::to_string):
17073 * pic/pic.y (object_type_name):
17074 * pic/troff.c (simple_output::line):
17075 * pic/tex.c (tex_output::spline):
17076 * pic/object.c (object_spec::make_object):
17077 * tbl/main.c (process_data): Add cases to switch statements to
17078 avoid cfront warnings. (Some of these are spurious, since the
17079 switch already has a default case.)
17081 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
17082 `ps-'. Don't test systat; instead check number of arguments to
17085 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
17087 * macros/tmac.e: Do not decrease the page offset by 0.5i.
17089 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
17090 Unlink the file as soon as we have opened it, so that we don't
17091 have to bother with signal handlers.
17092 (handler): Deleted.
17093 (fatal_error_exit): Deleted.
17094 (main): Don't call signal.
17096 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
17098 * dvi/devdvi/Makefile: Use the -k option with S and MI.
17100 * pic/pic.y: If there is a label, or an nth construction before
17101 the first `.' in the argument to `with', ignore it and generate a
17103 * pic/lex.c (lex_warning): New function.
17105 * tbl/table.c (table::init_output): In section keep and release
17106 macro, use 0 indent when diverting and the correct indent when
17109 * troff/input.c (interpolate_number_format): Do not interpolate
17110 anything if the number register is not defined.
17112 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
17114 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
17116 * ps/devps/prologue (PICTURE): Set components of graphics state to
17117 their default values.
17119 * ps/devps/text.enc: Add trademark
17120 * ps/devps/textmap: Add names for club, spade, heart, diamond,
17121 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
17122 * ps/devps/symbolchars: Add names for summation and product.
17124 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
17125 suchthat. Add pp. Add upper-case letters.
17127 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
17128 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
17131 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
17132 rA (right angle bracket) to ra. Introduce names for double-headed
17133 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
17134 * ps/devps/textmap: Likewise for ps device.
17135 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
17136 * tty/devascii/R.proto: Rename lA to la and rA to ra.
17137 * tty/devascii/R.proto: Likewise.
17138 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
17140 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
17142 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
17144 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
17147 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
17149 * troff/div.c (when_request): Use symbol::is_null rather than
17150 has_arg to determine whether we have an argument.
17151 (change_trap): Remove the trap if we get an invalid number. Give
17152 an error if we don't get at least the macro name.
17153 (diversion_trap): Remove trap if we get an invalid name or number.
17155 * troff/env.c (environment_switch): Pop if we get an invalid
17156 symbol or numeric expression.
17158 * troff/input.c (do_define_macro): If EOF is encoutered while
17159 defining the macro, do tok.next() before returning.
17161 * troff/token.h (has_arg): Move definition from here, to ...
17162 * troff/input.c (has_arg): ... here
17164 * troff/env.c (space_size): Do nothing if we get an invalid argument.
17165 * troff/input.c (shift): Likewise.
17167 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
17170 * pic/troff.c (troff_output::start_picture): Comment out calls to
17173 * eqn/main.c (do_file): Subtract 1 from current_lineno if
17174 interpret_lf_args succeeds.
17176 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
17177 \\. This avoids problems with \$N.
17179 * groff.sh: Pass -C to preprocessors.
17181 * lib/lf.c (interpret_lf_args): Be more flexible.
17183 * tbl/main.c (main): Add -C option.
17184 (table_input::get): Do not recognize TE if followed by character
17185 other than a space or newline unless -C option given.
17186 (process_input_file): Likewise for lf, TS.
17187 (process_data): Likewise for lf in text blocks.
17189 * eqn/main.c (main): Add -C option.
17190 (do_file): Don't recognize EQ, EN or lf if followed by character
17191 other than space or newline unless -C option given.
17192 * eqn/lex.c (file_input::read_line): Similarily.
17193 * eqn/eqn.h: Declare compatible_flag.
17195 * etc/soelim.c (main): Add -C option.
17196 (interpret_lf_args): Use version in libgroff.
17199 * pic/main.c (main): Add -C option, which sets compatible_flag.
17200 (top_input::get), (top_input::peek): If -C option not given,
17201 do not recognize .PS/.PE/.PF/.lf if followed by a character
17202 other than space or newline.
17203 * pic/lex.c (file_input::read_line): Similarily.
17204 * pic/pic.h: Add declaration of compatible_flag.
17206 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
17208 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
17210 * troff/node.c, troff/node.h: Add `asciify' methods to classes
17211 derived from node. New class space_char_hmotion_node.
17212 * troff/input.c (asciify_macro): New function.
17213 * troff/input.c (init_input_requests): New request `asciify' bound
17215 * macros/mm.diff: New file.
17216 * Makefile: In install.mm target use `patch' to apply
17219 * troff/input.c (macro::print_size): Just print the size in bytes.
17221 * troff/div.c (return_request): Correct the argument
17224 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
17226 * troff/node.h (class composite_node): Add sz member.
17227 * troff/node.c (composite_node::size): Return sz.
17228 * troff/input.c (macro_to_node): Use the initial size in the
17229 environment as the size of the composite_node.
17231 * troff/node.c (node::zero_width_tprint): Provide a reasonable
17234 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
17236 * troff/div.c (change_trap): If we get a bad number expression,
17239 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
17241 * lib/matherr.c (matherr): Define this only if math.h defines
17244 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
17246 * troff/div.c (macro_diversion::distance_to_next_trap): If there
17247 no diversion trap return vunits(INT_MAX - vresolution).
17249 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
17251 * troff/input.c (do_zero_width): New implementation that doesn't
17252 use a temporary environment. Use instead:
17253 (token::add_to_node_list): New function.
17254 * troff/env.c (environment::get_prev_char_height),
17255 (environment::get_prev_char_height),
17256 (environment::get_prev_char_skew): New functions.
17257 (environment::get_prev_char): New function.
17258 (environment::get_prev_char_width): Change to use get_prev_char.
17259 (init_env_request): Implement new registers .cht, .cdp, .csk.
17260 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
17261 \Z being processed in a separate environment.
17263 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
17265 * tbl/table.c: Removed TABLE_BOTTOM_REG.
17267 * tbl/table.c (table::init_output): In the section release macro,
17268 give a warning message if the section won't fit on one page.
17270 * tbl/table.c (table::do_top): Emit table keep only if table is
17272 (table::do_bottom): Likewise for table release.
17273 (table::table), (table::add_vertical_rule): Remove reference to
17275 * tbl/table.h: Remove keep member.
17277 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
17278 SECTION_RELEASE_MACRO, if there's not enough space before the next
17279 trap to output the diversion, call T# ourselves, set
17280 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
17281 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
17282 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
17283 vertical position and return to it before turning traps on again.
17285 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
17287 * troff/node.c, troff/node.h: In classes derived from node,
17288 replace prev_char_width method by last_char_node method.
17289 * troff/env.c (environment::get_prev_char_width): Use
17290 node::last_char_node rather than node::get_prev_char_width.
17292 * Makefile: Added comment about -fno-inline on 68030-based
17295 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
17296 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
17297 expressions using sizeof to int.
17298 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
17300 * macros/tmac.e (TS): Don't move @f back past the current
17303 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
17305 * ps/ps.c (main): Buffer stderr.
17306 * dvi/dvi.c (main): Likewise.
17307 * tty/tty.c (main): Likewise.
17309 * ps/ps.c (ps_printer::do_import): Improve error handling.
17311 * troff/input.c (abort_request): Use asciify.
17313 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
17314 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
17315 type of first argument int rather than char. This works around a
17316 bug on the 68030 based Apollo using g++ 1.37.1.
17318 * tbl/table.h (class table): Add `keep' member.
17319 * tbl/table.c (table::table): Initialize `keep'.
17320 (table::add_vertical_rule): Set `keep' to 1.
17321 (table::do_top): Only emit table keep macro is `keep' is non-zero.
17322 (table::do_bottom): Likewise for table release macro.
17323 (table::do_row): Emit section keep macro even if the row is 0.
17325 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
17327 * macros/tmac.e (@C): Preserve the font family across the change
17330 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
17332 * lib/font.c: Initialize font::hor and font::vert to 1.
17333 (font::load_desc): Check the values of font::hor and font::vert.
17335 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
17336 be included in a C compilation.
17337 (iftoa): Use INT_DIGITS. Include lib.h.
17339 (as_string): Likewise.
17340 * tbl/table.c: Removed definition of INT_DIGITS.
17341 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
17342 * troff/input.c (input_input_requests): Likewise.
17343 * ps/ps.c (make_encoding_name): Likewise.
17344 (ps_printer::set_style): Likewise.
17345 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
17347 * tty/devascii/R.proto: Map fm onto '.
17348 * tty/devlatin1/R.proto: Likewise.
17350 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
17352 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
17353 argument to \w is at a different input level.
17355 * tbl/table.c (table::init_output): Define a new macro
17356 REPEATED_VPT_MACRO, like vpt but if in a diversion also
17357 transparently outputs itself.
17358 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
17360 (table::do_row): Likewise.
17362 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
17363 TRANSPARENT_STRING_NAME.
17365 * tbl/table.c (table::init_output): In the table release macro
17366 print an error message and don't produce any output if after
17367 issuing the need request the table still will not fit. Also
17368 remove the diversion after bringing it back.
17370 * tbl/table.c (table::init_output): Define a new macro
17371 REPEATED_MARK_MACRO, like mk but if in a diversion also
17372 transparently outputs itself.
17373 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
17374 is necessary because .TH might not call .T#.
17375 (table::do_top): Likewise TOP_REG.
17376 (table::define_bottom_macro): If TOP_REG is no longer valid, use
17377 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
17378 table header might contain just the two top rules.
17380 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
17382 * troff/div.c: Implement new request `ptr' to print all traps.
17384 * troff/env.c (init_env_requests): Implement `.tabs' reg with
17385 init_string_env_reg.
17386 * troff/env.c (class tab_reg): Deleted.
17388 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
17390 * troff/div.c: New number register .pn returns the number of the
17391 next page as set by the pn request.
17393 * macros/tmac.an: Redid headers and footers. Number each manual
17394 entry starting from 1 unless \nC is > 0, like Sun. Added an
17395 optional 5th argument to .TH which specifies the manual name and
17396 appears in the center of the header. Understand the X, P and D
17397 registers like Sun.
17399 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
17401 * troff/env.c (init_env_requests): New number register `.lt' to
17402 return the title length.
17404 * troff/node.h (class transparent_dummy_node): New class.
17405 * troff/node.c (class transparent_dummy_node): Provide member
17407 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
17410 * troff/input.c (token::next): New escape sequence \).
17411 * troff/input.c (get_copy): Recognize \) in copy mode.
17413 * troff/input.c (input_stack::clear): New function.
17414 * troff/input.c (exit_request): Use input_stack::clear.
17416 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
17417 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
17419 * troff/env.c: Move set_page_character to input.c. Move
17420 page_character to input.c also.
17421 * troff/env.c (title): Split off the reading of the parts of the
17422 title into read_title_parts.
17423 * troff/input.c (read_title_parts): New function. Check the
17424 input_level when testing whether a token matches the delimiter.
17426 * troff/input.c (exit_request): New function.
17427 * troff/input.c (init_input_requests): Bind ex request to
17428 exit_request rather than exit_groff.
17430 * troff/input.c (exit_groff): Call tok.next() before
17431 process_input_stack().
17433 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
17435 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
17436 * troff/env.h: ditto.
17437 * troff/input.c: ditto.
17439 * troff/env.c (environment::is_empty): Test pending_lines.
17441 * troff/env.c (environment::have_pending_lines): Removed.
17443 * troff/input.c: Add request to flush pending lines from the
17446 * troff/env.c, troff/env.h: Add automatic widow control feature.
17448 * troff/input.c (exit_groff): Do process_input_stack() after
17449 do_break() but before setting exit_flag to 2.
17451 * troff/input.c: Remove FLUSH_PENDING_LINES and
17452 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
17453 environment after END_TRAP token seen, but only if there aren't
17454 any more traps still unfinished.
17455 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
17457 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
17459 * troff/env.c: Rename the `retain_size' member of class
17460 pending_output_line to `no_fill'.
17462 * troff/env.c (title): When the line is output, make the
17463 retain_size argument !fill.
17465 * troff/node.h: Add `hyphenated' member to struct breakpoint.
17466 * troff/node.c (space_node::get_breakpoints),
17467 (dbreak_node::get_breakpoints): Fill this in.
17468 * troff/env.c: Allow specification of maximum number of
17469 consecutive hyphenated lines.
17471 * troff/env.c (environment::is_empty): Add test for !current_tab.
17473 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
17475 * troff/env.c (environment::hyphenate_line): Don't completely give
17476 up if the word is not to be hyphenated; continue so that breaks
17477 can be made at break_char_node's.
17479 * lib/lib.h: Only define INT_MAX if it's not already defined;
17480 undef INT_MIN if it's already defined.
17482 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
17484 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
17485 This works around a bug in AT&T C++ 2.0 used with an ANSI C
17488 * macros/tmac.an (an-header): Set no-space mode.
17490 * macros/tmac.an (TH): Start a new page if necessary.
17492 * Started using ChangeLog at version 0.4.
17495 version-control: never