1 2004-09-26 Werner LEMBERG <wl@gnu.org>
3 Fix \$@ and \$* to handle any number of arguments.
5 * src/roff/troff/input.h (BEGIN_QUOTE, END_QUOTE): New special
8 * src/roff/troff/input.cpp (input_iterator::internal_level):
10 (input_stack): New member functions `increase_level' and
12 (input_stack::get_level): Don't use `internal_level'.
13 (get_copy, token::next): Handle BEGIN_QUOTE and END_QUOTE.
14 (end_quote_iterator): Completely removed.
15 (interpolate_arg): Build string for \$@ and \$* which is then
16 pushed onto the input stack.
18 2004-09-23 Keith Marshall <keith.d.marshall@ntlworld.com>
20 * tmac/groff_ms.man, doc/groff.texinfo: Document changes from
23 2004-09-23 Werner LEMBERG <wl@gnu.org>
25 * tmac/an-old.tmac (ne): Using default scaling operator.
27 2004-09-19 Keith Marshall <keith.d.marshall@ntlworld.com>
29 This change implements the following features:
32 New numeric register: Defines number of lines following LP, PP,
33 QP, IP or XP, which must be kept together, before any automatic
34 page break. If insufficient space remains on the current page, a
35 page break is forced before the new paragraph begins.
38 New numeric register: Sets number of lines of following paragraph
39 which must be kept with a heading, defined by NH or SH, before any
40 automatic page break. If insufficient space remains on the
41 current page, a page break is forced before the heading.
44 (Thanks to Joerg van den Hoff, for this idea).
46 New numeric register: Sets the first level of heading (set with
47 NH), which will keep the same point size as body text; e.g. if
48 GROWPS is set to 3, .NH 3, .NH 4, ... will produce headings at the
49 point size specified by \n[PS], but .NH 2 and .NH 1 will have
50 progressively larger point sizes, determined by \n[PSINCR] (see
54 New numeric register: Sets the point size increment for each level
55 of heading, (set with NH), below the threshold level set by
56 GROWPS; e.g. if \n[PS] = 10, \n[GROWPS] = 3 and \n[PSINCR] = 2.0p,
57 then .NH 1 will produce 14pt headings, .NH 2 will produce 12pt,
58 and all other levels will remain at 10pt, (because \n[PS] = 10).
61 Existing macro now accepts a numeric argument, to make heading
62 size match that of NH with same argument value, when the
63 GROWPS/PSINCR feature is enabled.
66 New string, set by NH macro, replaces the existing (undocumented)
67 use of SN, to represent the assigned section number.
70 New string, set by NH macro, represents the assigned section
71 number, but omits the terminal period (periods at intermediate
75 String set by NH macro, originally undocumented, now implemented
76 as an alias for SN-DOT (which reproduces original behaviour).
78 * tmac/s.tmac (PORPHANS): New register.
80 (HORPHANS, GROWPS, PSINCR): New registers.
81 (SH-NO-TAG, @SH): Use them.
84 2004-09-19 Keith Marshall <keith.d.marshall@ntlworld.com>
86 * NEWS, doc/groff.texinfo, tmac/groff_ms.man: Document the deletion
87 of `Ds' and `De' macros.
89 2004-09-10 Werner LEMBERG <wl@gnu.org>
91 In tbl, handle \a as an interpreted leader character if in
94 * src/preproc/tbl/table.h (PREFIX, PREFIX_CHAR, LEADER,
95 LEADER_CHAR): New macros.
96 (compatible_flag): New declaration.
98 * src/preproc/tbl/main.cpp (table_input): Add LEADER_1, LEADER_2,
99 LEADER_3, and LEADER_4 to `state'.
100 (table_input::get): Handle `\a'.
102 * src/preproc/tbl/table.cpp (PREFIX): Removed.
103 (LEADER_REG): New macro.
104 (table::init_output): Define LEADER_REG string register if in
107 * src/preproc/tbl/tbl.man: Document it.
109 2004-08-18 Werner LEMBERG <wl@gnu.org>
111 * tmac/doc.tmac (An): Fix error message.
113 2004-08-06 Werner LEMBERG <wl@gnu.org>
115 * src/preproc/tbl/main.cpp (main): Call `fatal' not `error' if a
116 file can't be opened. UNIX tbl has the same behaviour.
118 2004-08-05 Y T <doarhop@hotmail.com>
120 * src/preproc/grn/hdb.cpp (compatibility_flag): Add declaration.
121 (DBRead): If in compatibility mode, take into account the text
122 when computing figure boundaries.
124 2004-08-05 Werner LEMBERG <wl@gnu.org>
126 * src/preproc/soelim/soelim.man: Improved. Based on suggestions
127 from Tadziu Hoffmann.
129 2004-08-03 Werner LEMBERG <wl@gnu.org>
131 * doc/meref.me: Document `_M' register.
133 2004-08-03 Martin Husemann <martin@duskware.de>
135 Make hpftodit work correctly on big-endian systems.
137 * src/utils/hpftodit/hpftodit.cpp (File): New method
138 `get_uint32(char *)'.
139 (entry): New member `orig_value'.
140 (read_tags): Use new method.
141 (output_font_name, read_and_output_pcltypeface, dump_ascii):
144 2004-08-01 Werner LEMBERG <wl@gnu.org>
146 * tmac/s.tmac: Undo change 2003-06-29. The proper macro definitions
147 are already in X11's `macros.t' file.
149 2004-08-01 Jeff Conrad <jeff_conrad@msn.com>
151 * src/utils/hpftodit/hfptodit.cpp (output_font_name, dump_ascii):
153 (read_and_output_pcltypeface): Handle strings with length <= 4.
155 2004-07-27 Egil Kvaleberg <egil@kvaleberg.no>
157 * tmac/s.tmac (pg@top): Don't save `PO' register.
158 (pg*end-col, pg*end-page): Directly use `PO' register.
160 2004-07-27 Werner LEMBERG <wl@gnu.org>
162 * man/groff_tmac.man: Mention `trace' and `pic' macro packages.
164 * src/preproc/refer/refer.cpp (output_references): Check for
166 * src/preproc/refer/refer.man: Improve documentation of
167 `bibliography' command.
169 2004-07-26 Werner LEMBERG <wl@gnu.org>
171 Add requests `fcolor' and `gcolor'.
173 * src/roff/troff/env.cpp (fill_color_change, glyph_color_change):
175 (init_env_requests): Add `fcolor' and `gcolor'.
177 * src/roff/troff/input.h: Export do_glyph_color and do_fill_color.
179 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
180 Document new requests.
182 2004-07-24 Werner LEMBERG <wl@gnu.org>
184 Add support for fractional point sizes in ms macros. A value for
185 PS, VS, FPS, and FVS greater than or equal to 1000 is always divided
186 by 1000. For example, `.nr PS 10250' sets the font size to 10.25p.
188 * tmac/s.tmac (@AU, @AI, par@load-init, par@init, par@reset, NL,
189 PX): Handle fractional point sizes for PS, VS, FPS, and FVS.
191 * tmac/groff_ms.man, docs/groff.texinfo, NEWS: Document it.
193 2004-07-19 Werner LEMBERG <wl@gnu.org>
195 * src/preproc/pic/lex.cpp (for_input): Add member `from'.
197 (do_for, for_input::get, for_input::peek): Handle negative `by'.
198 * src/preproc/pic/pic.man, doc/pic.ms, NEWS: Document it.
200 2004-07-08 Thomas Klausner <wiz@netbsd.org>
202 * tmac/doc-syms (doc-str-St--p1003.1-2004): New string.
203 * tmac/groff_mdoc.man: Updated.
205 2004-07-05 Werner LEMBERG <wl@gnu.org>
207 * doc/groff.texinfo: Further improve documentation of `hcode'.
209 2004-07-04 Sang Dae Yu <sdyu@bh.knu.ac.kr>
211 Improve appearance of arrows in pic.
213 * src/preproc/pic/object.cpp (draw_arrow): Make outline of filled
215 Use two line segments for drawing non-filled arrow head.
216 (line_object::print, spline_object::print): Shorten line length to
217 avoid arrow sticking.
218 (arc_object::print): Take arrow direction into account.
220 2004-07-03 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
222 * tmac/groff_www.man: Update documentation of .MPIMG.
224 2004-07-03 Werner LEMBERG <wl@gnu.org>
226 * tmac/an-old.tmac (RI): Always start with font `R'.
227 (RI, IR): Properly end with font `R'.
229 2004-07-02 Paul Eggert <eggert@cs.ucla.edu>
231 * man/ditroff.man, man/groff_font.man, man/groff_out.man,
232 src/devices/grohtml/grohtml.man, src/preproc/grn/grn.man,
233 src/preproc/pic/pic.man, tmac/groff_man.man, tmac/groff_ms.man:
234 Don't pass more than six arguments to .R, .I, .B, etc., for
235 compatibility with traditional troff macros.
237 2004-07-02 Werner LEMBERG <wl@gnu.org>
239 * src/roff/troff/input.h: s/COMPATIBLE_SAVE/PUSH_GROFF_MODE/.
240 s/COMPATIBLE_RESTORE/POP_GROFFCOMP_MODE/.
242 (PUSH_COMP_MODE): New internal character constant.
245 * src/roff/troff/input.cpp (get_copy): Handle PUSH_GROFF_MODE,
246 PUSH_COMP_MODE, and POP_GROFFCOMP_MODE.
247 (token::next, macro::append): Handle PUSH_COMP_MODE.
248 (decode_args): Add PUSH_GROFF_MODE or PUSH_COMP_MODE before and
249 POP_GROFFCOMP after each of the decoded arguments to make them
250 independent from the compatibility mode status.
251 (comp_mode): Add `COMP_ENABLE'.
252 (do_define_string, do_define_macro): Handle COMP_ENABLE.
253 (define_string, append_string, define_macro, define_indirect_macro,
254 append_macro, append_indirect_macro): Handle `compatible_flag'.
255 (chop_macro, substring_request, asciify): Handle PUSH_COMP_MODE.
257 * man/groff_diff.man, doc/groff.texinfo: Updated.
259 2004-07-01 Werner LEMBERG <wl@gnu.org>
261 * doc/groff.texinfo: Improve documentation of `hcode'.
262 Use @documentencoding and convert document to latin-1; to do that
263 make latin characters active and assign proper macros (within a
264 @tex...@end tex environment).
265 * doc/Makefile.in (.texinfo.html, groff): Use --enable-encoding.
266 * doc/Makefile.sub (groff): Ditto.
268 2004-06-29 Werner LEMBERG <wl@gnu.org>
270 Implement two new conditional operators `F <name>' and `S <name>'
271 which check whether <name> is a valid font or style, respectively.
273 * src/libs/libgroff/font.cpp (text_file): Add `silent' member.
274 (text_file::text_file): Updated.
275 (text_file::error): Don't emit message if `silent' is set.
276 (font::load_font): Add optional third argument (which is directly
278 (font::load): Add optional second argument to check the header of
279 a font only, without emitting warning or error messages.
280 * src/include/font.h (font): Updated.
282 * src/roff/troff/input.cpp (do_if_request): Implement `S' and `F'
284 * src/roff/troff/node.cpp (mount_font_no_translate): Add optional
285 fourth argument to check a font without mounting.
286 (check_font, check_style): New functions.
287 * src/roff/troff/node.h: Updated.
289 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
292 2004-06-27 Werner LEMBERG <wl@gnu.org>
294 Implement new string-valued register `.sty' to return the current
297 * env.cpp (environment::get_style_name_string): New function.
298 (init_env_requests): Add `.sty' register.
299 * env.h (environment): Updated.
300 * node.cpp (font_info): Make `get_style_name' a friend.
301 (get_style_name): New function.
304 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
307 2004-06-15 Werner LEMBERG <wl@gnu.org>
309 * src/preproc/tbl/main.cpp (process_data) <GOT_RIGHT_BRACE>: Handle
312 2004-06-10 Colin Percival <colin.percival@wadham.ox.ac.uk>
314 * doc/meintro.me, doc/meref.me: Don't use \*[td], \n[dy], \*[mo],
315 and \n[mo] to avoid dependency on current date.
317 2004-06-08 Werner LEMBERG <wl@gnu.org>
319 * Makefile.sub (install_data): New target.
321 2004-06-04 Werner LEMBERG <wl@gnu.org>
323 * src/libs/libxutil/Makefile.sub (EXTRA_CFLAGS): Define.
325 2004-06-03 Werner LEMBERG <wl@gnu.org>
327 * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Fix typo and
329 (install_data): Add $(srcdir).
331 * src/utils/xtotroff/Makefile.sub (EXTRA_LDFLAGS): Fix order of
334 2004-06-02 Werner LEMBERG <wl@gnu.org>
336 * aclocal.m4 (GROFF_X11): s/have_no_x/groff_no_x/.
337 Add X11 stuff to CFLAGS, LDFLAGS, and LIBS temporarily.
338 Add test for Xmu library.
339 (GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
340 GROFF_APPRESDIR_DEFAULT): New macros.
342 * configure.ac: Call GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
343 and GROFF_APPRESDIR_DEFAULT.
345 * configure: Regenerated.
347 * Makefile.in (appresdir): New variable.
348 (MDEFINES): Add appresdir.
350 * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Add -Xmu and
352 (install_data, uninstall_sub): New targets to handle GXditview.ad.
354 * src/utils/indxbib/Makefiles.ub (install_data): Depend on
355 `$(srcdir)/eign', not `eign'.
357 * MANIFEST, INSTALL, NEWS, PROBLEMS: Updated.
359 * man/groff_out.man, man/roff.man, src/devices/grops/grops.man,
360 src/devices/xditview/gxditview.man, src/roff/groff/groff.man:
361 Protect (g)xditview with `\%' to avoid hyphenation.
362 Other minor formatting.
364 2004-06-01 Werner LEMBERG <wl@gnu.org>
366 Integrate gxditview into groff's standard directory hierarchy.
368 * src/xditview/*: Moved to ...
369 * src/devices/xditview/*: Here.
370 Moved DviChar.h and XFontName.h to src/include.
371 Moved DviChar.c and XFontName.c to new directory src/libs/libxutil.
372 Split off `xmalloc' into new file src/libs/libxutil/xmalloc.c.
373 Moved xtotroff.c to new directory src/utils/xtotroff.
374 Provide proper Makefile.sub files (reusing the stuff from
376 DESC renamed to DESC.in.
377 Removed GXDitview-ad.h, INSTALL, Imakefile.in.
378 Converted everything from K&R to ANSI C.
379 Decorated with const where appropriate.
380 Cast string constants with `String' and `char *' where appropriate.
381 Made it compile with C++ (used as a C compiler).
382 Removed other minor compiler warnings.
384 * src/devices/xditview/device.c: Include config.h, string.h, and
386 Don't declare `exit', `strtok', `strchr', and `getenv'.
389 * src/devices/xditview/font.c: Don't declare `XParseFontName' and
392 * src/devices/xditview/xditview.c: Include config.h.
393 Include stdio.h earlier.
394 Protect declaration of `popen' and `pclose' with
395 NEED_DECLARATION_POPEN and NEED_DECLARATION_PCLOSE.
396 Replace `caddr_t' with `XtPointer'.
397 (MakePromptFunc): New typedef.
398 (DoPrint): Use RETSIGTYPE.
399 (promptfunction): Change type to MakePromptFunc.
400 (MakePrompt): Use MakePromptFunc for third argument.
403 * src/devices/xditview/ad2c: Add casts to `String'.
405 * src/include/XFontName.h (XFontNameString): Don't use array
407 Add prototypes for `XParseFontName', `XFormatFontName',
408 `XCompareFontName', and `XCopyFontName'.
410 * src/include/Makefile.sub (HDRS): Add `DviChar.h' and
413 * src/utils/xtotroff/xtotroff.c: Include getopt.h.
414 Don't declare `XParseFontName' and `XFormatFontName'.
416 (main): Remove `optind' and `optarg'.
418 * Makefile.in (XDEVDIRS, XPROGDIRS, XLIBDIRS): New variables
419 (to select programs which need X).
420 Make XDEVIDIRS depend on `FORCE'.
421 (X_CFLAGS, X_LIBS, X_EXTRA_LIBS, X_PRE_LIBS): New variables (for
424 (LIBDIRS): Use XLIBDIRS.
425 (CPROGDIRS): Use XPROGDIRS.
426 (DEVDIRS): Remove font directories for gxditview.
427 (ALLDIRS, DISTDIRS): Add XDEVDIRS.
428 (EXTRADIRS): Remove src/xditview.
430 * Makefile.sub (DISCLEANFILES): Updated.
432 * Makefile.comm (LIBXUTIL): New variable.
433 (.cpp.o, .cpp.obj): Handle EXTRA_CCFLAGS.
434 (.c.o, .c.obj, .y.o): Handle EXTRA_CFLAGS.
436 * Makefile.cpg, Makefile.ccpg ($PROG): Handle EXTRA_LDFLAGS.
438 * aclocal.m4 (GROFF_X11): New function.
440 * configure.ac: Call GROFF_X11.
441 Don't create src/xditview/Imakefile.
442 Don't emit notice how to build gxditview.
444 * configure: Regenerated.
446 * test-groff.in (GROFF_BIN_PATH, XENVIRONMENT): Updated.
448 2004-05-28 Akihiro Sagawa <sagawa@sohgoh.net>
450 * Makefile.in (CPPFLAGS): Define.
451 (MDEFINES): Add CPPFLAGS.
453 2004-05-27 Werner LEMBERG <wl@gnu.org>
455 * arch/misc/Makefile.sub (shdeps.sed): Use $(srcdir).
457 2004-05-26 Niklas Edmundsson <nikke@acc.umu.se>
459 Fix problems with `friend name injections'.
461 * src/preproc/eqn/box.h (make_mark_box, make_lineup_box,
462 make_script_box), src/roff/troff/div.h (end_diversions),
463 src/roff/troff/env.h (title), input.cpp (process_input_stack): Undo
466 2004-05-25 Bernd Warken <bwarken@mayn.de>
468 * src/preproc/pic/pic.man, doc/pic.ms: Add example for `command'.
470 2004-05-25 Werner LEMBERG <wl@gnu.org>
472 * src/libs/libgroff/cset.cpp, src/libs/libgroff/lf.cpp,
473 src/libs/libgroff/color.cpp: Include lib.h.
475 2004-05-25 Paul Eggert <eggert@cs.ucla.edu>
477 * PROBLEMS: Update documentation for problems with Sun C++ 5.0
478 through Forte 6u1, and for how to get GNU make on Solaris.
480 2004-05-24 Werner LEMBERG <wl@gnu.org>
482 * PROBLEMS: Document problems with gcc 3.4.0 on Sun. Reported
485 2004-05-15 Keith Marshall <keith.d.marshall@ntlworld.com>
487 * arch/misc/Makefile.sub (shdeps.sed): Don't use `$<' in explicit
490 2005-05-14 Werner LEMBERG <wl@gnu.org>
492 * REVISION: Set to 2.
494 * aclocal.m4 (GROFF_STDINT_H): Removed.
495 (GROFF_INTTYPES_H): Define HAVE_CC_INTTYPES_H.
497 * configure.ac: Updated.
498 * configure, src/include/config.hin: Regenerated.
500 * src/libs/libgroff/tmpname.cpp: Don't include stdint.h but
501 inttypes.h conditionally.
503 2003-05-13 Werner LEMBERG <wl@gnu.org>
505 Version 1.19.1 released
506 =======================
508 2004-05-10 Stephen Gildea <http://www.gildea.com/stephen>
510 * src/preproc/refer/label.y (same_author_last_name,
511 same_author_name): Handle empty sort keys.
513 2004-05-10 Werner LEMBERG <wl@gnu.org>
515 * NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,
518 * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
519 doc-str-Lb-librt): Reset font.
520 (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
521 Provide `doc-str-Lb' to reset font.
522 * tmac/groff_mdoc.man: Updated.
524 2004-05-08 Jan Schaumann <jschauma@netmeister.org>
526 * src/preproc/html/pre-html.cpp (make_message): Make it work for
527 snprintf versions which don't conform to ANSI C 99 (this is,
528 counting the string's trailing null byte in the return value).
530 2004-05-07 Keith Marshall <keith.d.marshall@ntlworld.com>
532 * src/roff/troff/node.cpp (suppress_node::tprint): Don't expect
533 that all implementations of sprintf handle null pointers correctly.
535 2004-05-04 Werner LEMBERG <wl@gnu.org>
537 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
538 Document `.U' register.
540 * src/roff/troff/env.cpp (environment::mark_last_line)
541 [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers.
543 2004-05-04 Larry Kollar <kollar@alltel.net>
545 New read-only register `.U'; it returns 1 in safer mode and 0
548 * src/roff/troff/input.cpp (init_input_requests): Implement `.U'
551 2004-05-03 Werner LEMBERG <wl@gnu.org>
553 * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
555 2004-04-17 Werner LEMBERG <wl@gnu.org>
557 * src/include/font.h (font): Use `int' for ch_index.
558 * src/libs/libgroff/font.cpp (font::alloc_ch_index,
559 font::compact): Updated.
561 * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
564 * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
565 (hyphen_word): Fix compiler warnings.
566 * src/roff/troff/input.cpp (get_char_for_escape_name): Return
569 (get_delim_number, get_line_arg): Change second argument type to
571 (macro_header::copy, token::next, do_define_string,
572 do_define_character, substring_request, asciify_macro,
573 unformat_macro, read_size, non_interpreted_node::interpret,
574 while_request, main: Fix compiler warnings.
575 (read_color_draw_node): Initialize `col'.
577 * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
578 `start_col' and `end_col' of type `int'.
579 (vertical_rule): Make `col' of type `int'.
581 * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
584 * src/preproc/refer/label.y (uppercase_array, lowercase_array):
586 (format_serial): Use them to remove dependency on ASCII.
588 * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
590 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
593 * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
595 (glyph): Change type of `hpos' to `int'.
597 * src/devices/lbp/lbp.cpp (strsep): Removed. Unused.
598 * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
600 * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
602 * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
604 2004-04-16 Werner LEMBERG <wl@gnu.org>
606 * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
607 src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
608 src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
609 `double' instead of `float' everywhere.
610 * src/preproc/grn/main.cpp: Use `double' instead of `float'
612 (main): Add return value.
613 * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
615 Update all user functions.
617 * src/include/search.h, src/include/ptable.h, src/include/printer.h,
618 src/preproc/eqn/box.h, src/preproc/pic/object.h,
619 src/preproc/refer/refer.h, src/preproc/tbl/table.h,
620 src/preproc/tbl/table.cpp, src/roff/troff/env.h,
621 src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
622 src/roff/troff/input.cpp, src/roff/troff/request.h,
623 src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
626 * src/utils/indxbib/signal.c: Include stdlib.h.
628 2004-04-14 Keith Marshall <keith.d.marshall@ntlworld.com>
630 * tmac/s.tmac (@init, RP): Allow initialization of the PO register
631 before the first page.
633 2004-04-14 Thomas Klausner <wiz@netbsd.org>
635 * tmac/doc-common (doc-volume-as-*): Use lowercase names.
636 (doc-operating-system-*): Updated.
637 * tmac/doc-syms (doc-str-St-*): Various small fixes.
638 (doc-str-Lb-*): Add more library names.
640 2004-04-10 Art Haas <ahaas@airmail.net>
642 * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
645 2004-04-09 Art Haas <ahaas@airmail.net>
647 * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
649 2004-04-09 Keith Marshall <keith.d.marshall@ntlworld.com>
651 * arch/misc/shdeps.sh: Generate better comment for sed script.
653 2004-04-08 Art Haas <ahaas@airmail.net>
655 * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
656 src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
657 src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
658 src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
659 (polyfill), src/preproc/grn/main.cpp (polyfill),
660 src/preproc/refer/command.cpp (command_table),
661 src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
662 gcc 3.5 doesn't like).
664 2004-04-08 Werner LEMBERG <wl@gnu.org>
666 Removing many compiler warnings. groff should now compile with
667 a C++ compiler used for C files also. [Simple variable renamings
668 to avoid shadowing aren't logged in detail.]
670 * src/devices/grodvi/dvi.cpp: Some local variable renamings.
671 (draw_dvi_printer::draw) ['c']: Enclose in block.
673 * src/devices/grohtml/post-html.cpp: Some local variable renamings.
674 (page::add_line): Fix typos.
675 * src/devices/grohtml/html-text.cpp: Some local variable renamings.
677 * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
678 Some local variable renamings.
679 * src/devices/grolbp/lbp.h: Some local variable renamings.
681 * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
684 * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
685 Remove redundant local variable declaration.
686 * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
687 Don't use `caddr_t' but `void *'.
688 Enclose functions with `extern "C"' for C++.
690 * src/libs/libdriver/input.cpp (remember_filename,
691 remember_source_filename): Use cast for string constant.
693 * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
694 src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
695 src/libs/libgroff/geometry.cpp: Some local variable renamings.
696 * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
698 Enclose functions with `extern "C"' for C++.
699 * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
700 (needs_quoting): Return `int'.
701 (quote_arg): Add proper casts to malloc and realloc.
702 * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
703 various MS Windows environments.
704 (spawnvp_wrapper): Add proper cast to malloc.
706 * src/preproc/eqn/box.h: Remove redundant declarations of
707 `make_script_box', `make_mark_box' and `make_lineup_box'.
708 * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
709 * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
712 * src/preproc/grn/hpoint.cpp: Some local variable renamings.
713 * src/preproc/grn/hgraph.cpp: Some local variable renamings.
714 (dx, dy): Renamed functions to...
715 (deltax, deltay): This.
716 * src/preproc/grn/main.cpp: Some local variable renamings.
717 (deffont): Add `const'.
718 (initpic, conv): Use cast for string constant.
720 * src/preproc/html/pre-html.cpp: Some local variable renamings.
721 (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
722 (char_buffer::run_output_filter): Second argument is unused.
723 * src/preproc/html/pushback.cpp: Some local variable renamings.
725 * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
726 * src/preproc/pic/object.cpp: Some local variable renamings.
728 * src/preproc/refer/label.y (lookup_label): Remove redundant
729 declaration of local variable.
731 * src/preproc/soelim.cpp: Remove redundant declaration of
734 * src/preproc/tbl/main.cpp: Some local variable renamings.
736 * src/roff/groff/groff.cpp (main): Use cast for string constant.
737 * src/roff/groff/pipeline.c: Enclose declarations of `error',
738 `c_fatal', and `i_to_a' with `extern "C"' for C++.
739 Don't use C++-style comments.
741 * src/roff/troff/env.h: Remove redundant declaration of `title'.
742 * src/roff/troff/node.h, src/roff/troff/env.cpp,
743 src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
745 * src/roff/troff/div.h: Remove redundant declaration of
747 * src/roff/troff/troff.h: Remove redundant declaration of
749 * src/roff/troff/input.cpp: Remove redundant declaration of
750 `handle_first_page_transition' and `process_input_stack'.
752 * src/utils/hpftodit.cpp: Some local variable renamings.
754 * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
756 Don't define RETSIGTYPE.
757 * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
759 * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
760 (error): Use `const' in argument.
761 (main): Remove redundant declaration of `optind'.
762 Move declaration of `Version_string' to top-level.
764 * PROBLEMS: Document difficulties compiling signal.c if a C++
765 compiler is used for C.
767 2004-04-07 Werner LEMBERG <wl@gnu.org>
769 * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
771 2004-04-06 Keith Marshall <keith.d.marshall@ntlworld.com>
773 Make scripts like nroff.sh and neqn.sh portable across various
774 (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
775 non-POSIX path separators. The idea is to extend those scripts to
776 decide at run-time (of the script) which path separator to use.
778 * arch/misc/Makefile.sub: New file.
779 * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
780 This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
781 a proper definition of the variable `GROFF_RUNTIME'.
783 * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
784 (MDEFINES): Add SH_DEPS_SED_SCRIPT.
785 (PROGDEPDIRS): New variable.
787 (PROGDIRS): Add PROGDEPDIRS.
789 * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
790 Don't substitute @SEP@ and @BINDIR@.
791 * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
792 (PATH): Use GROFF_RUNTIME.
794 * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
795 Don't substitute @SEP@ and @BINDIR@.
796 * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
797 (PATH): Use GROFF_RUNTIME.
799 2004-04-05 Keith Marshall <keith.d.marshall@ntlworld.com>
801 * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
802 Cygwin which doesn't handle stderr correctly.
804 2004-03-08 Werner LEMBERG <wl@gnu.org>
806 * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
807 against empty argument. Problem reported by <cgd@broadcom.com>.
809 2004-03-05 Keith Marshall <keith.d.marshall@ntlworld.com>
811 * Makefile.in (SEP): Replaced with...
812 (RT_SEP, SH_SEP): Separators for the target platform's native path
813 separator and the build environment, respectively.
814 (fontpath, tmacpath): Use RT_SEP.
817 * contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
818 * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
819 * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
820 * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
822 2004-03-05 Werner LEMBERG <wl@gnu.org>
824 * fonts/devlj4/Makefile.sub (LJ4RES): Set to 1200. This helps to
825 reduce alignment problems with newer printers which use built-in
826 TrueType fonts (instead of the older Intellifonts). The ideal
827 solution is to provide a second set of groff metric files, but this
828 is extremely time-consuming to produce, given that HP's metric
829 files are very rudimentary.
831 2004-03-01 Werner LEMBERG <wl@gnu.org>
833 * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
834 s/operand/argument/ in error message.
836 2004-03-01 Keith Marshall <keith.d.marshall@ntlworld.com>
838 * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
841 2004-03-01 Antti Kantee <pooka@netbsd.org>
843 * tmac/s.tmac (XE): Fix error message.
845 2004-02-27 Jeff Conrad <jeff_conrad@msn.com>
847 * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
850 * src/roff/groff/pipeline.c: Declare strcasecmp.
851 (run_pipeline) [_WIN32]: Use function name variants which don't
855 2004-02-27 Keith Marshall <keith.d.marshall@ntlworld.com>
857 * src/include/nonposix.h: Fix declaration of `system_shell_name'.
858 Declare `spawnvp_wrapper' and macro definitions of spawnvp only
859 for platforms which use the native Win32 runtime libraries.
860 (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
862 * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
863 QUOTE_ARG_REALLOC_ERROR): Fix string.
865 * src/preproc/html/pre-html.cpp: Remove declaration of
867 Don't use __MINGW32__.
868 s/DEBUG_FILE/DEBUG_FILE_DIR/.
869 (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
870 (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
871 (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
872 calls to `set_redirection' and `WAIT'.
873 [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
874 Fix calls to `set_redirection' and `save_and_redirect'.
875 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
876 to `set_redirection' and `save_and_redirect'.
877 (usage): Fix message.
878 (makeTempFiles, main): Use `DEBUG_FILE'.
880 2004-02-21 Werner LEMBERG <wl@gnu.org>
882 * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
884 2004-02-21 Keith Marshall <keith.d.marshall@ntlworld.com>
886 * src/libs/libgroff/quotearg.c: New file, providing proper argument
887 quoting for MSVC's spawn* and exec* functions.
888 * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
889 spawnvp with proper quoting for MSVC.
891 * src/libs/libgroff/assert.cpp (program_name),
892 src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
893 * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
895 * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
897 * src/include/error.h (program_name): Declare as `extern "C"'.
898 * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
900 2004-02-21 Jeff Conrad <jeff_conrad@msn.com>
902 * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
904 [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
906 2004-02-20 Jeff Conrad <jeff_conrad@msn.com>
908 * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
910 (sbasename) [__MSDOS__ || ...]: New function.
911 (system_shell_name) [__MSDOS__ || ...]: Use a different, more
913 (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
914 (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
916 Use STDOUT_FILENO instead of hardcoded file handle.
917 (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
919 2004-02-19 Werner LEMBERG <wl@gnu.org>
921 * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
922 avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
924 2004-02-18 Werner LEMBERG <wl@gnu.org>
926 * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
927 new font and mapping files.
929 2004-02-18 Jeff Conrad <jeff_conrad@msn.com>
930 Keith Marshall <keith.d.marshall@ntlworld.com>
932 * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
933 an input pipe. This is needed for the MSVC compiler to make troff's
936 * src/roff/troff/div.cpp: Include nonposix.h.
937 (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
939 2004-02-17 Werner LEMBERG <wl@gnu.org>
941 * font/devlj4/generate/special.awk: New script.
942 * font/devlj4/generate/Makefile (S): Use special.awk.
943 * font/devlj4/*: Regenerated, including the following new files:
944 Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
945 MS Symbol (SYMBOL), Wingdings (WINGDINGS).
946 * NEWS: Document new lj4 fonts and revised hpftodit.
948 2004-02-17 Paco Andrés Verdú <pandres@dragonet.es>
950 * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
952 2004-01-25 Werner LEMBERG <wl@gnu.org>
954 * src/libs/libgroff/progname.cpp: Replaced with...
955 * src/libs/libgroff/progname.c: New file.
956 * src/libs/libgroff/Makefile.sub: Updated accordingly.
958 2004-01-17 Werner LEMBERG <wl@gnu.org>
960 * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
962 2004-01-16 Jeff Conrad <jeff_conrad@msn.com>
964 * font/devlj4/generate/wingdings.map,
965 font/devlj4/generate/symbol.map: Include unnamed glyphs.
966 Use groff glyph names where possible.
967 * src/devices/grolj4/lj4_font.man: Minor updates.
969 2004-01-13 Werner LEMBERG <wl@gnu.org>
971 * tmac/www.tmac (DC): Handle TTY devices.
973 * doc/webpage.ms: Document viewCVS from ffii.org.
974 * NEWS, README: Updated.
976 * src/roff/groff/groff.man: Mention lj4_font man page.
978 * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
980 (FONTS): Add SYMBOL and WINGDINGS.
981 (SYMBOL, WINGDINGS): New targets.
983 2004-01-13 Jeff Conrad <jeff_conrad@msn.com>
985 * src/devices/grolj4/lj4_font.man: New man page.
986 * src/devices/grolj4/Makefile.sub (MAN5): New variable.
987 * src/devices/grolj4.man: Mention lj4_font man page.
989 * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
990 * src/utils/hpftodit/hpftodit.man: Document it.
992 Remove details about fonts (which are now in lj4_font.man).
994 * font/devlj4/generate/symbol.map,
995 font/devlj4/generate/wingdings.map: New files.
997 2004-01-12 Werner LEMBERG <wl@gnu.org>
999 * README: Mention ffii's viewcvs access.
1001 2004-01-09 Werner LEMBERG <wl@gnu.org>
1003 * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
1005 2004-01-09 Jeff Conrad <jeff_conrad@msn.com>
1007 Revert most of the change from 2004-01-03 to better control used
1010 * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
1011 (text_symbol_sets, special_symbol_sets): New arrays.
1012 (symbol_set_table): New global variable.
1013 (read_symbol_sets): Use search order given in the text_symbol_sets
1014 and special_symbol_sets arrays. If command line flag -a is not
1015 given, search both arrays.
1016 (output_charset): Require x_height_tag only for command line flag -i.
1018 2004-01-06 Werner LEMBERG <wl@gnu.org>
1020 Implement string-valued registers \n[.m] and \n[.M] to return the
1021 name of the current drawing and background color, respectively.
1023 * src/roff/troff/symbol.h: Moved to...
1024 * src/include/symbol.h: Here.
1025 Small fixes to make it work outside of the `troff' directory.
1026 * src/roff/troff/symbol.cpp: Moved to...
1027 * src/libs/libgroff/symbol.cpp: Here.
1028 Small fixes to make it work outside of the `troff' directory.
1030 * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
1031 (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
1034 * src/include/color.h: Include symbol.h.
1035 (color): Add new field `nm'.
1036 * src/libs/libgroff/color.cpp (color::color): Updated.
1038 * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
1039 src/roff/troff/node.cpp, src/roff/troff/number.cpp,
1040 src/roff/troff/reg.cpp: Don't include symbol.h.
1042 * src/roff/troff/env.cpp: Don't include symbol.h.
1043 (environment::get_glyph_color_string,
1044 environment_get_fill_color_string): New member functions.
1045 (init_env_requests): Handle `.m' and `.M' registers.
1046 * src/roff/troff/input.cpp: Don't include symbol.h.
1047 (default_symbol): Moved to symbol.cpp/symbol.h.
1048 (do_glyph_color, do_fill_color, define_color): Pass symbol name
1049 to color constructor.
1050 * src/roff/troff/env.h: Updated.
1052 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1053 Document new registers.
1055 2004-01-05 Werner LEMBERG <wl@gnu.org>
1057 * src/roff/troff/node.cpp (space_node::get_breakpoints,
1058 space_node::nbreaks): Protect against zero `next' field.
1060 2004-01-03 Jeff Conrad <jeff_conrad@msn.com>
1062 In hpftodit, use the symbol sets offered in the TFM.
1064 * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
1065 (symbol_set, text_symbol_sets, special_symbol_sets,
1066 symbol_set_table): Removed.
1067 (get_printcode): Removed.
1068 (read_symbol_sets): Initialize `symbol_set' field with
1070 Simplify code to just use the `kind' value.
1071 (output_charset): Improve output formatting.
1072 (dump_symbols): Simplified.
1074 2004-01-02 Werner LEMBERG <wl@gnu.org>
1076 * font/devlj4/generate/text.map: Add more MSL numbers.
1078 2004-01-02 Jeff Conrad <jeff_conrad@msn.com>
1080 * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
1081 (text_symbol_sets): Add more symbol sets.
1082 (debug_flag): New static variable (moved from `main').
1083 (get_printcode, show_symset): New functions.
1084 (main): Remove `debug_flag'.
1085 (output_charset): Use `show_symset'.
1086 (dump_symbols): Use `show_symset'.
1087 Print symsets for all glyphs.
1088 (read_map): Actually call `unicode_to_ucode_make' but this time
1091 2004-01-01 Werner LEMBERG <wl@gnu.org>
1093 * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
1094 Fix placement of comments.
1096 2004-01-01 Jeff Conrad <jeff_conrad@msn.com>
1098 * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
1099 option `-d' is given.
1100 (output_charset): Improve warning messages to give more information.
1101 (dump_symbols): Make information more precise.
1103 (read_map): Don't call unicode_to_ucode_name; the glyph names must
1104 appear as-is and shouldn't be decomposed.
1106 2003-12-31 Werner LEMBERG <wl@gnu.org>
1108 * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
1109 * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
1110 (FONTS): Add TrueType font families Arial and Times New Roman.
1111 (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
1112 * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
1115 2003-12-31 Jeff Conrad <jeff_conrad@msn.com>
1117 * test-groff.in (SEP): Quote value.
1118 * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
1119 `tem' to `char*' to avoid deallocation of a pointer to a constant
1120 object which some compilers don't like.
1122 2003-12-31 Werner LEMBERG <wl@gnu.org>
1124 * font/devlj4/generate (text.map, special.map): Rewritten to work
1125 with the new hpftodit version.
1127 2003-12-30 Jeff Conrad <jeff_conrad@msn.com>
1129 * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
1130 set and 8bit character code for all glyphs also.
1132 2003-12-30 Werner LEMBERG <wl@gnu.org>
1134 * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
1136 2003-12-29 Werner LEMBERG <wl@gnu.org>
1138 More fixes for MSVC compiler.
1140 * doc/Makefile.sub, contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use
1143 * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
1144 STDERR_FILENO) [_MSC_VER]: Define conditionally.
1145 (getpid) [_MSC_VER]: Remove.
1146 Include direct.h and process.h conditionally.
1148 * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
1149 parentheses for a_delete.
1151 * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
1153 * test-groff: Replaced with...
1154 * test-groff.in: This new template to handle path separator
1157 * configure.ac: Check for direct.h and process.h.
1158 Generate test-groff script.
1159 * configure, src/include/config.hin: Regenerated.
1161 2003-12-28 Werner LEMBERG <wl@gnu.org>
1163 Add integral extension glyph.
1164 Add new option `-x' to afmtodit to suppress use of built-in AGL.
1166 * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
1168 * font/devps/generate/textmap: Provide entry for `integralex' to
1169 override (old) PUA value of the AGL.
1170 * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
1171 * font/devps/*: Regenerated.
1173 * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
1174 * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
1176 2003-12-27 Werner LEMBERG <wl@gnu.org>
1178 Add forgotten `coproduct' symbol (already available for DVI).
1180 * font/devhtml/R.proto, font/devps/generate/textmap,
1181 font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
1182 src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
1183 U+2210 (\[coproduct]).
1185 2003-12-26 Jeff Conrad <jeff_conrad@msn.com>
1187 hpftodit has been extended to handle TrueType metric files and
1188 more glyphs. See hpftodit.man for more details.
1190 * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h,
1191 ctype.h, and unicode.h.
1192 s/msl/charcode/ everywhere since we now handle Unicode values also.
1193 (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
1194 Use it where appropriate.
1195 (MULTIPLIER): Replaced with...
1196 (multiplier): New global static variable.
1198 (tag_type): Add more TFM tags.
1199 (tag_name): New array.
1200 (ENUM_TYPE, FLOAT_TYPE): Removed.
1201 (BYTE_TYPE): New value assigned.
1202 (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
1203 (text_symbol_sets, special_symbol_sets): Extended to cover more
1205 (check_type): Add return value.
1206 (check_units): Add parameters to get ppi and upem values.
1207 Handle TrueType TFM data.
1208 (output_font_name): New function.
1209 (output_charset): Add parameter to handle TFM type.
1210 Handle TrueType TFMs also.
1211 (em_fract): New macro.
1212 (dump_tags): Be much more verbose and handle more tags.
1213 (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
1214 (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
1216 (read_map): Add parameter to handle TFM type.
1217 Handle both MSL and Unicode mappings.
1218 (main): Add two new command line options `-a' and `-q'.
1219 Updated to make use of new functions.
1222 * src/utils/hpftodit/hpuni.cpp: New file.
1224 * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
1227 2003-12-25 Werner LEMBERG <wl@gnu.org>
1229 * src/include/nonposix.h (read) [_MSC_VER]: Define.
1231 2003-12-24 Werner LEMBERG <wl@gnu.org>
1233 * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
1234 by Michail Vidiassov <master@iaas.msu.ru>.
1236 2003-12-20 Werner LEMBERG <wl@gnu.org>
1238 * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
1240 Add missing latin-2 glyphs.
1241 * font/devutf8/R.proto: Add missing latin-2 glyphs.
1243 * tmac/troffrc: Load `composite.tmac' earlier.
1245 * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
1246 u00{53,73}_0327, and u0049_0307.
1247 * tmac/X.tmac: Add u00{47,67}_0306.
1248 * tmac/tty-char.tmac: Use composite glyph names for readability.
1252 * src/include/unicode.h: Remove `extern' keywords.
1254 2003-12-20 Nilgün Belma Bugüner <nilgun@superonline.com>
1256 * tmac/latin5.tmac: New file.
1258 2003-12-19 Werner LEMBERG <wl@gnu.org>
1260 Add some glyphs needed for Turkish.
1262 * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
1265 * tmac/composite.tmac: Add `,' as a synonym for `ac' accent.
1266 * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
1267 u00{53,73}_0327, and u0049_0307.
1269 2003-12-18 Werner LEMBERG <wl@gnu.org>
1271 * src/devices/grops/ps.cc (ps_output::put_float): Revert change
1273 Remove trailing zeros.
1275 2003-12-17 Werner LEMBERG <wl@gnu.org>
1277 Make \? transparent to end-of-sentence recognition.
1279 * src/roff/troff/input.cc (non_interpreted_node): Add
1280 `ends_sentence' member function.
1282 2003-12-16 Werner LEMBERG <wl@gnu.org>
1284 * doc/groff.texinfo: Document `dt' request correctly.
1285 Other minor typographical improvements.
1287 2003-12-10 Michail Vidiassov <master@iaas.msu.ru>
1289 * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
1291 2003-12-10 Richard Stallman <rms@gnu.org>
1293 * LICENSE: Better wording.
1295 2003-12-09 Werner LEMBERG <wl@gnu.org>
1297 * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
1298 * configure, NEWS: Updated.
1300 2003-12-08 Werner LEMBERG <wl@gnu.org>
1302 * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
1304 2003-12-07 Bernd Warken <bwarken@mayn.de>
1308 2003-12-07 Werner LEMBERG <wl@gnu.org>
1310 * INSTALL: Improved.
1312 2003-12-05 Keith Marshall <keith.d.marshall@ntlworld.com>
1314 Use path separator character of target platform for compiled-in
1317 * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
1318 * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
1319 * configure: Regenerated.
1320 * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
1322 2003-12-05 Werner LEMBERG <wl@gnu.org>
1324 * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
1325 Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
1327 2003-12-04 Bernd Warken <bwarken@mayn.de>
1329 * LICENSE: New file.
1331 2003-12-03 Werner LEMBERG <wl@gnu.org>
1333 * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
1334 ligatures present in AFM files since groff currently only
1335 understands some standard ligatures and nothing else.
1337 2003-12-03 Jeff Conrad <jeff_conrad@msn.com>
1339 * src/roff/groff/groff.cpp (main): Don't run the spooler if
1342 * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
1345 Don't use Unix wait flags.
1347 2003-12-02 Werner LEMBERG <wl@gnu.org>
1349 * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
1350 src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
1351 src/roff/troff/uniuni.cpp: Moved to...
1352 * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
1353 src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
1354 src/libs/libgroff/uniuni.cpp: Here.
1356 * src/include/Makefile.sub.old (HDRS),
1357 src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
1358 src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
1360 2003-12-01 Keith Marshall <keith.d.marshall@ntlworld.com>
1362 * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
1366 2003-12-01 Werner LEMBERG <wl@gnu.org>
1368 * groff.texinfo: Document special behaviour of `.vs 0'.
1369 Improve documentation of `cflags' request.
1372 2003-11-29 Werner LEMBERG <wl@gnu.org>
1374 * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
1375 * font/devlj4/CORONET: Regenerated.
1377 2003-11-24 Werner LEMBERG <wl@gnu.org>
1379 * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
1380 if processing hyphenation patterns in traditional mode.
1381 Improve error messages.
1383 2003-11-20 Werner LEMBERG <wl@gnu.org>
1385 * src/roff/troff/node.cpp (troff_output_file::put_char_width,
1386 troff_output_file::put_char): Fix type of local variable `c'.
1388 2003-11-19 Werner LEMBERG <wl@gnu.org>
1390 * src/roff/groff/pipeline.c (P): Removed. Updated all function
1392 (i_to_a): Removed. libgroff already provides this function.
1393 (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
1395 2003-11-18 Keith Marshall <keith.d.marshall@ntlworld.com>
1397 * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
1400 2003-11-17 Werner LEMBERG <wl@gnu.org>
1402 * COPYING: Use correct version.
1404 2003-11-11 Werner LEMBERG <wl@gnu.org>
1406 LynxOS 4.0.0 doesn't declare vfprintf.
1408 * configure.ac: Check for vfprintf.
1409 * configure: Regenerated.
1410 * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
1411 * src/include/config.hin: Regenerated.
1413 2003-11-10 Werner LEMBERG <wl@gnu.org>
1415 LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
1417 * configure.ac: Check for vsnprintf.
1418 * configure: Regenerated.
1419 * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
1421 * src/include/config.hin: Regenerated.
1423 2003-11-09 Werner LEMBERG <wl@gnu.org>
1425 * aclocal.m4: Updated syntax to autoconf 2.59.
1426 (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
1427 Don't check for gsos2.
1428 (GROFF_SRCDIR, GROFF_BUILDDIR): Removed. autoconf 2.59 provides
1429 working abs_top_srcdir and abs_top_builddir.
1431 * configure.ac: Updated syntax to autoconf 2.59.
1432 Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
1433 Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
1434 * configure: Regenerated.
1436 * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
1437 s/@groff_top_builddir@/@abs_top_builddir@/.
1439 * src/roff/groff/pipeline.c (xstrsignal):
1440 s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
1442 2003-11-07 Werner LEMBERG <wl@gnu.org>
1444 * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
1445 make start angle smaller than end angle to circumvent a bug in tpic
1446 handling of some versions of dvipdfm (and dvipdfmx).
1448 2003-10-30 Werner LEMBERG <wl@gnu.org>
1450 * src/devices/grops/grops.man: Improve section on creating EPS.
1452 2003-10-29 Werner LEMBERG <wl@gnu.org>
1454 * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
1457 2003-10-28 Werner LEMBERG <wl@gnu.org>
1459 * doc/groff.texinfo: Fix documentation of `.if'.
1461 2003-10-27 Michail Vidiassov <master@iaas.msu.ru>
1463 * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
1464 the form `uniXXXX' also.
1466 2003-10-27 Werner LEMBERG <wl@gnu.org>
1468 * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
1469 contrib/pic2graph/pic2graph.sh: Implement secure management of
1471 Pass `-P-pletter' to groff to avoid data outside of the converted
1472 area -- some versions of `convert' (for example 5.3.8) don't check
1473 the bounding box of the image but always use a fixed image size
1474 (letter paper format).
1475 * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
1476 contrib/pic2graph/pic2graph.man: Updated.
1478 * src/roff/groff/groff.man: Document $TMP and $TEMP.
1480 2003-10-26 Werner LEMBERG <wl@gnu.org>
1482 * src/preproc/pic/troff.cpp (troff_output::simple_circle,
1483 troff_output::simple_ellipse, troff_output::simple_arc,
1484 troff_output::simple_line, troff_output::simple_spline,
1485 troff_output::simple_polygon): Insert a space before arguments.
1486 (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
1487 latter doesn't produce a node, so the following `.sp -1' would do
1489 Don't emit `.sp -1' after \M. This also doesn't produce a token
1490 (and we don't have to care about compatibility mode).
1491 (troff_output::set_color, troff_output::reset_color): Don't emit
1492 `.sp -1' after \M and \m.
1494 * src/roff/troff/input.cpp (old_have_input): New global variable.
1495 (input_stack::get): Handle `old_have_input'.
1496 (process_input_stack) <token::TOKEN_NEWLINE>: Call
1497 `trapping_blank_line' depending on `old_have_input', not
1500 2003-10-20 Keith Marshall <keith.d.marshall@ntlworld.com>
1502 * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
1503 (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
1504 default directory names for temporary files.
1505 [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
1507 * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
1508 [__MSDOS__] (run_pipeline): Honour environment variables.
1509 Don't use `tmpnam' but `tempnam' to work around messy
1512 * README.MinGW: New file.
1514 2003-10-16 Werner LEMBERG <wl@gnu.org>
1516 * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
1517 `(*t)->next' without testing validity of `*t'.
1518 (usage): Make it more readable.
1520 2003-10-16 Keith Marshall <keith.d.marshall@ntlworld.com>
1522 Make html device run under both MS-DOS and Win32.
1524 * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
1525 MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
1526 spawn or fork+exec has to be used, and whether parent must sleep
1527 until the child process terminates. Used in
1528 `char_buffer::run_output_filter'.
1529 (copyofstdoutfd): Removed.
1530 (char_buffer): Replace `write_file_html' and `write_file_troff'
1531 member functions with `emit_troff_output' and `run_output_filter'.
1532 (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
1534 (replaceFd): Replaced with...
1535 (set_redirection): New auxiliary function.
1536 (waitForChild): Replaced with...
1537 (save_and_redirect): New auxiliary function for.
1539 (char_buffer::do_html, char_buffer::do_image): Simplified, using new
1542 2003-10-14 Keith Marshall <keith.d.marshall@ntlworld.com>
1544 * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
1545 (GROFF_LIBC): New function.
1546 * configure.ac: Call GROFF_LIBC.
1548 * configure: Regenerated.
1550 * src/include/lib.h: Handle __MINGW32__.
1551 * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
1552 Add macro for `pipe'.
1555 * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
1558 * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
1561 2003-10-13 Werner LEMBERG <wl@gnu.org>
1563 Finally fix change 2003-08-26, based on ideas from Chuck Silvers
1566 * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
1569 2003-10-12 Werner LEMBERG <wl@gnu.org>
1571 * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
1572 src/roff/troff/input.cc (usage): Updated.
1574 * NEWS, doc/groff.texinfo: Updated.
1576 2003-10-12 Peter Miller <millerp@canb.auug.org.au>
1578 * src/libs/libgroff/searchpath.cpp
1579 (search_path::open_file_cautious): New function which also handles
1580 `-' as stdin and stdout depending on the access mode.
1581 * src/include/searchpath.h (search_path): Updated.
1583 * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
1584 * src/devices/grops/ps.h: Include `searchpath.h'.
1585 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
1586 Open resource file with `include_search_path.open_file_cautious'.
1587 * src/devices/grops/grops.man: Document new `-I' switch.
1589 * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
1590 (main), src/devices/grolj4/lj4.cpp (main),
1591 src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
1593 * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
1595 (include_search_path): New global variable.
1596 (include_path_append): Removed.
1597 (main): Use `include_search_path.command_line_dir' to handle `-I'.
1598 (do_file): Simplify, using new
1599 `include_search_path.open_file_cautious'.
1601 * src/roff/groff/groff.cpp (print_commands): Accept file handle as
1603 (main): Pass arguments to `-I' to both troff and devices.
1604 Improve handling of `-V'.
1605 * src/roff/groff/groff.man: Document changes to -I and -V.
1607 * src/roff/troff/input.cpp (include_search_path): New global
1609 (next_file, source, ps_bbox_request, transparent_file,
1610 process_input_file): Use new
1611 `include_search_path.open_file_cautious'.
1612 (main) Handle `-I' switch.
1613 * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
1614 Use new `include_search_path.open_file_cautious'.
1615 * src/roff/troff/node.h: New extern symbol `include_search_path'.
1616 * src/roff/troff/troff.man: Document new `-I' switch.
1618 2003-09-15 Ruslan Ermilov <ru@FreeBSD.org>
1620 Support multiple calls of .Lb in LIBRARY section.
1622 * tmac/doc-common (doc-in-library-section): New register.
1623 (doc-section-library): New string.
1624 (Sh): Set `doc-in-library-section'.
1626 * tmac/doc-syms (Lb): Insert breaks before and after arguments
1627 if in LIBRARY section.
1628 * tmac/doc.tmac (doc-save-global-vars): Updated.
1629 * NEWS, tmac/groff_mdoc.man: Updated.
1631 2003-09-14 Ruslan Ermilov <ru@FreeBSD.org>
1633 * tmac/doc-common (doc-default-operating-system): New variable.
1636 2003-09-08 Werner LEMBERG <wl@gnu.org>
1638 * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
1640 2003-08-31 Werner LEMBERG <wl@gnu.org>
1642 * contrib/mom/Makefile.sub: Fix last change to make it really work.
1643 * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
1644 (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
1645 $(DEVFILES) are not empty.
1646 * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
1648 2003-08-26 Chuck Silvers <chuq@chuq.com>
1650 * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
1651 with parallel runs of `make'.
1653 2003-08-23 Stephen Gildea <http://www.gildea.com/stephen>
1655 * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
1656 insert SORT_SEP. With certain combinations of sort specifications,
1657 refer sorted entries in the wrong order. In particular, entries
1658 with a missing field should be be sorted before all entries that
1659 have that field, before refer looks to the next field.
1661 2003-08-23 Werner LEMBERG <wl@gnu.org>
1663 * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
1664 g++ linker is used. Reported by Mark J. Reed
1665 <mark.reed@turner.com>.
1667 2003-08-16 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
1669 Add key character `x' to tbl which makes tbl call a user-defined
1670 macro on a table cell.
1672 * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
1673 * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
1674 `set_modifier' after printing the compatibility request.
1675 (set_modifier): Print call to `m->macro' if not empty.
1676 * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
1678 (process_format): Implement cases `x' and `X'.
1679 * src/preproc/tbl/tbl.man, NEWS: Updated.
1681 2003-08-15 Werner LEMBERG <wl@gnu.org>
1683 * doc/groff.texinfo: Minor fixes.
1685 2003-08-09 Werner LEMBERG <wl@gnu.org>
1687 * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
1689 2003-08-07 Werner LEMBERG <wl@gnu.org>
1691 * doc/Makefile.sub: Not all shells expand wildcards in the `for'
1692 argument list to nothing if there is no file to match. Use `ls' as
1693 a protection, similar to autoconf.
1695 * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
1696 empty argument lists.
1698 * doc/groff.texinfo: Improve documentation how vertical spacing
1699 and line breaks interact.
1702 * tmac/www.tmac: Initialize `www-htmlimage-gap'.
1704 2003-08-03 Werner LEMBERG <wl@gnu.org>
1706 * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
1707 EPS (using eps2eps or similar programs to compute the bounding box).
1709 2003-07-24 Werner LEMBERG <wl@gnu.org>
1711 * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
1712 * doc/texinfo.tex: Updated from texinfo 4.6.
1713 * README.CVS: From now on we need texinfo 4.6.
1715 2003-07-23 Werner LEMBERG <wl@gnu.org>
1717 Add requests `dei1' and `ami1' for completeness.
1719 * src/roff/troff/input.cc (calling_mode): Remove
1720 CALLING_DISABLE_COMP.
1721 (comp_mode): New enumeration.
1722 (do_define_string, define_string, define_nocomp_string,
1723 append_string, append_nocomp_string): Updated.
1724 (do_define_macro): Add third parameter.
1725 (define_macro, define_nocomp_macro, define_indirect_macro,
1726 append_macro, append_nocomp_macro, append_indirect_macro): Updated.
1727 (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
1730 (init_input_requests): Add `dei1' and `ami1'.
1732 * tmac/trace.tmac: Handle de1 and am1.
1733 (de): Improve tracing message.
1734 (am): Add missing `do'.
1737 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1738 Document new requests.
1740 2003-07-22 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
1742 Add option -G to .MPIMG to insert a gap between text and the image.
1744 * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
1745 www-finish-left-ll): Updated.
1746 (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
1747 (MPIMG): Make option -L and -R optional.
1748 Implement option -G.
1750 2003-07-22 Gaius Mulley <gaius@glam.ac.uk>
1752 * src/devices/grohtml/post-html.cpp
1753 (html_printer::do_file_components): Don't use `stdout' as lvalue
1754 since it can be a macro.
1756 2003-07-22 Werner LEMBERG <wl@gnu.org>
1758 * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
1759 the corresponding test in aclocal.m4.
1761 2003-07-21 Werner LEMBERG <wl@gnu.org>
1763 * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
1764 names but RGB values directly. Otherwise pnmtopng depends on
1765 an external file `rgb.txt' which maps colour names to values.
1767 2003-07-20 Werner LEMBERG <wl@gnu.org>
1769 * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
1770 * configure, src/include/config.hin: Regenerated.
1772 * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
1774 2003-07-19 Werner LEMBERG <wl@gnu.org>
1776 * PROBLEMS: Add solution for UTF-8 problem with hyphens.
1778 2003-07-18 Werner LEMBERG <wl@gnu.org>
1780 * *.man: Switch to non-compatibility mode temporarily if GNU
1781 syntax extensions are used in the particular man page.
1783 * PROBLEMS: Add solutions for SGR problems.
1785 2003-07-17 Werner LEMBERG <wl@gnu.org>
1787 Don't ignore grotty's command line options if \X'tty: sgr ...' is
1788 used to change the drawing scheme.
1790 * src/devives/grotty/tty.cpp (bold_flag_option,
1791 underline_flag_option, italic_flag_option, reverse_flag_option,
1792 bold_underline_mode_option): New global variables.
1793 (update_options): New function.
1794 (tty_printer::special): Call update_options.
1795 (main): Don't set xxx_flag but xxx_flag_option, then call
1798 2003-07-14 Werner LEMBERG <wl@gnu.org>
1800 Make grotty emit proper Unicode box drawing characters for -Tutf8.
1802 * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
1804 (hline_char, vline_char): New global variables.
1805 (tty_printer::tty_printer): Initialize them.
1806 (tty_printer::draw): Emit START_LINE and END_LINE flags for both
1807 horizontal and vertical lines.
1808 (crossings): New global array.
1809 (tty_printer::end_page): Use it to determine the proper crossing
1810 character for -Tutf8.
1812 2003-07-12 Werner LEMBERG <wl@gnu.org>
1814 * doc/Makefilesub (HTMLDOCFILESALL): New macro.
1815 (HTMLDOCFILES): Revert to `pic.html'.
1816 (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
1818 2003-07-11 Werner LEMBERG <wl@gnu.org>
1820 * doc/pic.ms: Improve documentation of absolute coordinates.
1821 Document absolute positioning of pictures.
1823 * NEWS: Add new pic capability.
1825 2003-07-09 Hartmut Henkel <hartmut_henkel@gmx.de>
1827 * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
1830 2003-07-07 Werner LEMBERG <wl@gnu.org>
1832 Implement support for dashed and dotted ellipses in pic. Based on
1833 a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
1835 * src/preproc/pic/common.cpp (common_output::ellipse_arc,
1836 common_output::dashed_ellipse, common_output::dotted_ellipse): New
1837 functions. Ellipse arcs are approximated with circle arcs.
1838 * src/preproc/pic/common.h (common_output): Updated.
1839 * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
1841 * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
1843 * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
1845 2003-07-06 Werner LEMBERG <wl@gnu.org>
1847 Make grotty work on platforms which have unsigned char as the
1848 default for char. Based on a patch by Thomas Klausner
1851 * src/devices/grotty/tty.cpp (schar): New typedef.
1852 Updated calls to declare_ptable and implement_ptable.
1853 (glyph): Use schar for back_color_idx and fore_color_idx.
1854 (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
1855 (tty_printer::tty_color, tty_printer::tty_printer,
1856 tty_printer::color_to_idx, tty_printer::put_color): Updated.
1858 2003-07-06 Ruslan Ermilov <ru@FreeBSD.org>
1860 * src/roff/nroff/nroff.sh: Add option -d for completeness.
1861 * src/roff/nroff/nroff.man: Updated.
1863 2003-07-05 Werner LEMBERG <wl@gnu.org>
1865 * NEWS, tmac/groff_www.man: Updated.
1866 * doc/Makefile.sub: Updated.
1868 2003-07-05 Gaius Mulley <gaius@glam.ac.uk>
1870 Implement support for multiple HTML output files.
1872 * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
1873 -j command line option.
1875 * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
1877 (file): New fields `new_output_file', `require_links',
1879 (file::file): Updated.
1880 (files::set_file_name, files::set_links_required,
1881 files::are_links_required, files::is_new_output_file,
1882 files::file_name, files::next_file_name): New functions.
1883 (header_desc): New fields `no_of_level_one_headings',
1885 (header_desc::header_desc): Updated.
1886 (header_desc::write_headings): Handle multiple files.
1887 (html_printer::write_header): Save file name in which header occurs.
1888 (html_printer::determine_header_level): Possibly split files on
1890 (html_printer::do_links, html_printer::troff_tag): Updated.
1891 (html_printer::insert_split_file, html_printer::do_job_name,
1892 html_printer::emit_link, html_printer::write_navigation,
1893 html_printer::do_file_components): New functions.
1894 (html_printer::~html_printer): Handle multiple files.
1895 (main): Handle command line option `-j'.
1897 * src/devices/grohtml/grohtml.man: Updated.
1899 * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
1902 * tmac/www.tmac (JOBNAME): New macro.
1903 * tmac/s.tmac (SH-NO-TAG): New macro.
1904 (@SH): Call SH-NO-TAG.
1907 2003-07-05 Ruslan Ermilov <ru@FreeBSD.org>
1909 * tmac/groff_mdoc.man: Improve documentation of punctuation
1912 2003-07-04 Ruslan Ermilov <ru@FreeBSD.org>
1914 * tmac/doc.tmac (Bd): Change to doc-Li-font later.
1916 2003-07-03 Werner LEMBERG <wl@gnu.org>
1918 * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
1920 2003-07-01 Ruslan Ermilov <ru@FreeBSD.org>
1922 * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
1923 after `/*' and `*/'.
1925 (Fn, Fo): Reduce indentation in synopsis.
1927 * tmac/doc-common (doc-check-depth): New macro.
1928 (doc-end-macro, Sh, Ss): Use it.
1929 (Cd): Fix behaviour in synopsis.
1930 (In): Make it parsed and callable.
1931 If not in the synopsis, represent the C header file enclosed in
1933 (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
1934 Use minus, not hyphen.
1936 * tmc/groff_mdoc.man: Updated.
1938 2003-07-01 Werner LEMBERG <wl@gnu.org>
1940 Integrated grap2graph, contributed by Eric S. Raymond.
1942 * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
1944 * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
1945 contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
1947 2003-07-01 Colin Watson <cjwatson@debian.org>
1949 * src/xditview/*.c: Add prototypes, fix return types, add includes.
1950 Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
1952 2003-06-31 Ruslan Ermilov <ru@FreeBSD.org>
1954 * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
1956 2003-06-31 Werner LEMBERG <wl@gnu.org>
1958 * doc/Makefile.sub (CLEANADD): Remove all files created by
1959 running `make groff.{pdf,dvi}'.
1961 * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
1964 2003-06-30 Werner LEMBERG <wl@gnu.org>
1966 * Makefile.in (SHELL): Define as @SHELL@.
1967 (mkinstalldirs): Use $(SHELL).
1968 (MDEFINES): Add $(SHELL).
1969 * Makefile.comm (SHELL): Removed.
1971 2003-06-29 Werner LEMBERG <wl@gnu.org>
1973 * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
1974 The X11 documentation files use them.
1975 * tmac/groff_ms.man, doc/groff.texinfo: Document them.
1977 2003-06-15 Robert Goulding <goulding@Princeton.EDU>
1979 * tmac/e.tmac (@C): Handle .ad also.
1981 2003-06-12 Werner LEMBERG <wl@gnu.org>
1983 * src/preproc/tbl/tbl.man: Document formatting of text blocks.
1985 * src/roff/troff/input.cc (token::next) <handle_escape_char>:
1986 Assign `n' even here. It is possible to construct a node
1987 immediately following an escape character:
1995 2003-06-10 Werner LEMBERG <wl@gnu.org>
1997 * README.WIN32: Removed.
1998 * MANIFEST: Updated.
2000 2003-06-07 Werner LEMBERG <wl@gnu.org>
2002 * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
2004 2003-06-05 Werner LEMBERG <wl@gnu.org>
2006 * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
2007 in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
2009 2003-06-03 Werner LEMBERG <wl@gnu.org>
2011 * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
2012 is done by the calling function.
2014 2003-05-22 Ruslan Ermilov <ru@FreeBSD.org>
2016 * tmac/X.tmac: Fix definition of `em'.
2018 2003-05-22 Werner LEMBERG <wl@gnu.org>
2020 * src/roff/troff/input.cc (return_macro_request): Fix detection of
2023 2003-05-18 Werner LEMBERG <wl@gnu.org>
2025 * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
2026 to make items work which consist only of a tag.
2028 2003-05-17 Werner LEMBERG <wl@gnu.org>
2030 * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
2031 aren't stretched in a tag (this can fail with unformatted boxes).
2032 Instead, insert a break and go back one line.
2034 2003-05-16 Werner LEMBERG <wl@gnu.org>
2036 * src/roff/troff/input.cc (return_macro_request): If called with
2037 argument pop macro twice. We need this to trace `return'.
2039 * tmac/trace.tmac: Handle `return'.
2042 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2045 2003-05-15 Larry Kollar <kollar@alltel.net>
2047 * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
2048 registers `FPS', `FVS', and `FPD'.
2050 2003-05-15 Werner LEMBERG <wl@gnu.org>
2052 * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
2055 2003-05-03 Ruslan Ermilov <ru@FreeBSD.org>
2057 * tmac/groff_mdoc.man: Slight improvements.
2059 2003-05-03 Werner LEMBERG <wl@gnu.org>
2061 * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
2062 `doc-header-space' after header line if register `cR' is set.
2064 2003-05-02 Werner LEMBERG <wl@gnu.org>
2068 2003-05-01 Ruslan Ermilov <ru@FreeBSD.org>
2070 * tmac/doc-common (Nd): Use \[em].
2072 2003-05-01 Werner LEMBERG <wl@gnu.org>
2074 * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
2075 doc-footer-space): Initialize to 0.5i.
2076 (doc-setup-page-layout): Don't set doc-header-space and
2079 2003-04-30 Werner LEMBERG <wl@gnu.org>
2081 * REVISION: Set to 1.
2083 * doc/pic.ms: Document possible problems with `figname'.
2085 2003-04-29 Werner LEMBERG <wl@gnu.org>
2087 Version 1.19 released
2088 =====================
2090 * VERSION: Set to 1.19.
2091 * REVISION: Set to 0.
2092 * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
2094 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
2095 Define charset as `US-ASCII' in html output.
2097 * tmac/www.tmac (ULE): Add missing scaling indicator.
2099 * win32-diffs: Removed.
2101 2003-04-28 Werner LEMBERG <wl@gnu.org>
2103 * doc/groff.texinfo: Document `dn' and `dl' registers if used with
2105 Document how to insert discardable whitespace with `.ss'.
2107 2003-04-27 Werner LEMBERG <wl@gnu.org>
2109 * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
2110 work with plain TeX also.
2112 * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
2114 2003-04-25 Gaius Mulley <gaius@glam.ac.uk>
2116 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
2119 2003-04-24 Werner LEMBERG <wl@gnu.org>
2121 * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
2122 vbox with positive height and zero depth if in TeX mode.
2124 * NEWS: Document glyph name changes for grodvi and grolj4.
2126 2003-04-23 Werner LEMBERG <wl@gnu.org>
2128 * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
2129 * doc/pic.ms: Fixed.
2131 2003-04-21 Werner LEMBERG <wl@gnu.org>
2133 HP-UX 10.20 has `snprintf' but it isn't declared.
2135 * configure.ac: Add declaration test for snprintf.
2136 * configure: Regenerated.
2137 * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
2138 * src/include/config.hin: Regenerated.
2140 2003-04-19 Werner LEMBERG <wl@gnu.org>
2142 Add keyword `figname' to pic, specifying the name of the picture
2143 box in TeX mode. Based on a patch from William J Poser
2144 <wjposer@unagi.cis.upenn.edu>.
2146 * src/preproc/pic/pic.y: New token `FIGNAME'.
2147 (macro_name): New rule of type <str>.
2148 (placeless_element): Handle `FIGNAME'.
2149 * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
2150 * src/preproc/pic/main.cpp (graphname): New global variable.
2151 (do_picture): Initialize `graphname'.
2152 * src/preproc/pic/pic.h: Updated.
2153 * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
2156 (tex_output::text): Beautify output.
2157 * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
2158 `shaded' and `outlined' unconditionally.
2159 * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
2162 * PROBLEMS, README.CVS: Mention that bison version 1.875b or
2163 greater is necessary.
2165 2003-04-17 Hartmut Henkel <hartmut_henkel@gmx.de>
2167 Add option -r to soelim to avoid emission of `.lf' lines.
2168 Add option -t to produces TeX comment lines instead of `.lf' lines.
2170 * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
2173 (main): Handle `-r' and `-t'.
2174 (set_location): Handle `raw_flag' and `tex_flag'.
2175 * src/preproc/soelim/soelim.man, NEWS: Updated.
2177 2003-04-17 Werner LEMBERG <wl@gnu.org>
2179 * tmac/hyphenex.sh: Replaced with...
2180 * tmac/hyphenex.pl: This perl script to avoid sed compatibility
2183 * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
2184 if --quiet is used for the configure script.
2185 * configure: Regenerated.
2187 2003-04-16 Werner LEMBERG <wl@gnu.org>
2189 * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
2190 Add `const' to second argument.
2191 (html_printer::add_table_end): Add `const' to argument.
2192 * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
2193 `const' to arguments.
2194 * src/devices/grohtml/html-text.h: Updated.
2196 * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
2197 * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
2200 * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
2201 cast for integer constant.
2203 * src/preproc/html/pre-html.cpp (image_device): Use `const'.
2204 (writeNbytes): Add `const' to first argument.
2205 (writeString): Add `const' to argument.
2206 (char_buffer::can_see): Add `const' to third argument.
2207 * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
2208 `const' to argument.
2209 * src/preproc/html/pushback.h: Updated.
2211 * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
2212 (include_path_append): Add `const' to argument.
2215 * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
2217 (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
2218 * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
2220 (unicode_decompose_init::unicode_decompose_init): Updated.
2221 * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
2223 (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
2224 * src/roff/troff/input.cc (process_startup_file): Add `const' to
2227 * tmac/hyphenex.sh: Make script more portable by using a here
2230 2003-04-15 Werner LEMBERG <wl@gnu.org>
2232 Renamed all `*.cc' files to `*.cpp'.
2233 Updated all configuration files, makefiles, and documentation.
2235 2003-04-14 Werner LEMBERG <wl@gnu.org>
2237 * tmac/hyphenex.sh: Slight improvements.
2239 2003-04-13 Werner LEMBERG <wl@gnu.org>
2241 * font/devascii/R.proto, font/devcp1037/R.proto,
2242 font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
2243 character slots with unnamed glyphs.
2245 * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
2246 (an-first): New global variable.
2247 (an-header): Emit vertical space between multiple man pages.
2249 2003-04-11 Werner LEMBERG <wl@gnu.org>
2251 * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
2254 2003-04-10 Werner LEMBERG <wl@gnu.org>
2256 * PROBLEMS: Revised.
2258 2003-04-10 Bernd Warken <bwarken@mayn.de>
2260 * doc/webpage.ms: Improved.
2262 2003-04-09 Werner LEMBERG <wl@gnu.org>
2264 Add register \n[.height] which returns the value of \H.
2265 Add register \n[.slant] which returns the value of \S.
2267 * src/roff/troff/env.cc (init_env_requests): Implement.
2268 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2271 2003-04-08 Werner LEMBERG <wl@gnu.org>
2273 * tmac/html.tmac: Move some of the data into html-end.tmac.
2274 Remove most of the character translations for eqn since html fonts
2275 now cover those characters.
2277 * tmac/html-end.tmac: New file.
2278 * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
2279 * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
2280 * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
2282 2003-04-07 Werner LEMBERG <wl@gnu.org>
2284 * man/groff_out.man: Document negative values of `N' if -Thtml is
2287 2003-04-06 Werner LEMBERG <wl@gnu.org>
2289 * Makefile.comm (depend.temp): Check location of YTABC.
2291 2003-04-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2293 * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
2295 (groff_bin_path): Rename to GROFF_BIN_PATH.
2296 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2297 * doc/Makefile.in (TROFFBIN): New variable for troff
2299 (GROFFBIN): New variable for groff binary path.
2300 (groff_bin_path): Rename to GROFF_BIN_PATH.
2301 (TROFF): Use TROFFBIN.
2302 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2303 * doc/Makefile.sub (GROFFBIN): New variable for groff
2305 (groff_bin_path): Rename to GROFF_BIN_PATH.
2306 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2308 * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
2309 with INSTALL_SCRIPT.
2310 (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
2311 * Makefile.dev (all): Depend on DEVSCRIPTS.
2312 (install_dev): Likewise.
2313 * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
2315 * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
2316 (DEVGENSCRIPTS): New variable to hold generated scripts.
2318 2003-04-05 Werner LEMBERG <wl@gnu.org>
2320 * src/libs/libdriver/input.cc (IntArray::operator[],
2321 IntArray::get_data): Remove meaningless `const' in return value.
2323 * README.CVS: New file.
2325 2003-04-04 Werner LEMBERG <wl@gnu.org>
2327 Check for stdint.h in C++, not in C.
2329 * aclocal.m4 (GROFF_STDINT_H): New function,
2330 * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
2332 * configure, src/include/config.hin: Regenerated.
2333 * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
2336 Fix handling of in grohtml. To do this, troff emits `N'
2337 with a negative value, representing the width of the unbreakable
2338 space (only for -Thtml). grohtml then converts this back to
2339 and uses the value of N as its width.
2341 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
2342 unbreakable_space_node::tprint): Emit `N-<width>'.
2343 * src/include/printer.h (printer::set_numbered_char): Make it
2345 Make members `font_table' and `nfonts' protected instead of private.
2346 * src/devices/grohtml/post-html.cc
2347 (html_printer::set_numbered_char): New member function.
2350 * src/libs/libgroff/maxfilename.cc:
2351 s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
2353 * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
2356 2003-04-03 Sergey A. Osokin <osa@freebsd.org.ru>
2358 * man/roff.man: Small fixes.
2360 2003-04-03 Werner LEMBERG <wl@gnu.org>
2362 Make groff independent from locale's numeric settings.
2364 * configure.ac: Check for `setlocale'.
2365 * configure, src/include/config.hin: Regenerated.
2367 * src/include/lib.h: Handle HAVE_SETLOCALE.
2369 * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
2370 (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
2371 (main), src/preproc/pic/main.cc (main): Call `setlocale'.
2374 * doc/groff.texinfo: Change dir category to `Typesetting'.
2375 (Man font macros): Mention that there is no space between arguments
2378 * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
2379 (*printer::change_color, *printer::change_fill_color): Add missing
2382 2003-04-02 Werner LEMBERG <wl@gnu.org>
2384 * src/devices/grohtml/html-table.cc (html_table::emit_col,
2385 html_table::is_gap): Compute table widths after converting border
2386 positions to avoid rounding errors.
2388 2003-04-01 Werner LEMBERG <wl@gnu.org>
2390 * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
2391 `space_emitted' properly.
2393 2003-03-31 Werner LEMBERG <wl@gnu.org>
2395 * src/devices/grohtml/html-table.cc: Fix column width calculation.
2396 (html_table::set_linelength): Don't add 1.
2397 (html_table::add_indent): Don't subtract 1.
2399 * tmac/html.tmac: Set default page offset to zero.
2401 2003-03-30 Werner LEMBERG <wl@gnu.org>
2403 Make groff emit ` ' for `\ ' and `\~' if `-Thtml' is used.
2405 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
2406 unbreakable_space_node::tprint): New functions.
2407 (troff_output_file): Make space_char_hmotion_mode::tprint and
2408 unbreakable_space_node::tprint to friends.
2409 * src/roff/troff/node.h: Updated.
2411 * font/devhtml/R.proto: Add ` ' at position 0xA0 (as defined
2412 in the HTML standard).
2414 2003-03-29 Werner LEMBERG <wl@gnu.org>
2416 * src/roff/troff/env.cc (point_size): Fix emission of html tag.
2417 Otherwise, the following code
2426 produces `x a' instead of `xa'. This is a temporary fix, disabling
2427 font changes in diversions for -Thtml.
2429 * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
2431 (an-do-tag-html): Merge with ...
2432 (an-do-tag): This macro.
2433 Change code slightly to circumvent grohtml bug.
2434 * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
2436 * src/devices/grohtml/html-table.cc (html_table::emit_col,
2437 html_table::is_gap): Round `width' properly.
2439 * tmac/html.tmac: Provide some default layout parameters for
2442 * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
2445 2003-03-28 Werner LEMBERG <wl@gnu.org>
2447 src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
2449 2003-03-27 Werner LEMBERG <wl@gnu.org>
2451 * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
2454 2003-03-20 Werner LEMBERG <wl@gnu.org>
2456 * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
2458 * doc/groff.texinfo: Updated.
2460 2003-03-19 Werner LEMBERG <wl@gnu.org>
2462 * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
2463 TOKEN_END_TRAP>: Reset `have_input'.
2465 2003-03-18 Werner LEMBERG <wl@gnu.org>
2467 * src/roff/groff/groff.man: Mention groff_trace man page.
2469 2003-03-16 Werner LEMBERG <wl@gnu.org>
2471 * Makefile.in (LIBEXT): New variable to indicate the file extension
2472 of library files. Computed heuristically from $(OBJEXT).
2473 (MDEFINES): Add $(LIBEXT).
2474 * Makefile.lib, Makefile.comm: Use it.
2476 * src/utils/pfbtops/pfbtops.c (get_text): New function. Split
2477 overlong lines into smaller chunks.
2478 (get_binary): New function.
2480 * src/utils/pfbtops/pfbtops.man: Updated.
2482 2003-03-15 Colin Watson <cjwatson@debian.org>
2484 * src/roff/groff/groff.man: Minor syntax fix.
2486 2003-03-14 Egil Kvaleberg <egil@kvaleberg.no>
2488 * src/devices/grops/ps.cc (ps_printer::media_set,
2489 ps_printer::~ps_printer): Handle zero paper width and length.
2491 2003-03-13 Werner LEMBERG <wl@gnu.org>
2493 Add options -p and -l to grodvi.
2495 * src/devices/grodvi/dvi.cc: Include paper.h.
2496 (landscape_flag, user_paper_length, user_paper_width): New global
2498 (dvi_printer::begin_page): Emit `papersize' special.
2499 Set color after initialization of `cur_h' and `cur_v'.
2500 (main): Add options `-l' and `-p'.
2501 * font/devdvi/Makefile.sub (DESC): Set `papersize'.
2502 * src/devices/grodvi/grodvi.man, NEWS: Updated.
2504 * src/devices/grops/psrm.cc (valid_input_table): Fixed.
2506 2003-03-12 Werner LEMBERG <wl@gnu.org>
2508 * src/devices/grops/grops.man: Move documentation of .PSPIC to...
2509 * man/groff_tmac.man: This man page.
2510 * man/groff_font.man: Declare `paperwidth' and `paperlength' as
2513 * tmac/X.tmac: Don't load pspic.tmac.
2515 2003-03-11 Werner LEMBERG <wl@gnu.org>
2517 Make variable `pr' local to libdriver/input.cc. Based on a patch
2518 by Bernd Warken <bwarken@mayn.de>.
2520 * src/include/driver.h (pr): Removed.
2522 * src/libs/libdriver/input.cc (pr): New global variable.
2523 (do_file): Deallocate `pr'.
2524 * src/libs/libdriver/printer.cc (pr): Removed.
2526 * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
2527 (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
2528 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
2529 (main): Don't delete `pr'.
2531 2003-03-10 Werner LEMBERG <wl@gnu.org>
2533 * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
2534 * tmac/papersize.tmac: New file.
2535 * tmac/troffrc: Include `papersize.tmac'.
2536 * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
2537 * tmac/an-old.tmac: Set LT to LL by default.
2539 * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
2540 doc/groff.texinfo: Updated.
2542 * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
2543 bug which caused all odd iso papers to have wrong dimensions.
2545 * src/devices/grops/ps.cc (user_paper_width): New global variable.
2546 (main) <'p'>: Set `user_paper_width' also.
2547 (ps_printer::media_width, ps_printer::media_height): Use values
2548 given with option `-p'.
2550 2003-03-09 Werner LEMBERG <wl@gnu.org>
2552 * src/include/nonposix.h: Provide default for SET_BINARY.
2554 * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
2555 src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
2558 * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
2559 (main): Treat \r\n as \n.
2561 2003-03-08 Werner LEMBERG <wl@gnu.org>
2563 * tmac/an-old.tmac: Use register `HY' to control hyphenation.
2564 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
2566 2003-03-07 Werner LEMBERG <wl@gnu.org>
2568 Added support to access more than 256 glyphs in Type 1 fonts.
2570 * src/devices/grops/ps.cc (subencoding): New structure.
2571 (style): Add `sub' field.
2573 (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
2574 Add `set_subencoding', `get_subfont' and `encode_subfont' member
2577 (ps_printer::set_char): Use `set_subencoding'.
2578 (make_subencoding_name): New function.
2579 (ps_printer::set_style): Handle case where `sty.sub' is not zero.
2580 (ps_printer::~ps_printer): Emit subencoding definitions.
2582 * src/devices/grops/psrm.cc (valid_input_table): New array to
2583 properly support EBCDIC.
2584 (white_space): Add `\f'.
2585 (ps_get_line): Change first argument to be of type `string &'.
2586 Updated all callers.
2587 This allows to get lines of arbitrary length.
2588 Use `valid_input_table'.
2589 Remove warning about non-conforming PS line length. This seems
2590 not to be of great importance -- for example, dvips don't emit
2592 (PS_LINE_MAX): Removed.
2593 (matches_comment): Change first argument to be of type `string &'.
2595 * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
2597 * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
2598 %AGL_to_unicode, %default_ligatures): New hash tables.
2599 Read all map entries.
2600 Add unencoded characters.
2601 Check for default ligatures if there are no `L' entries.
2602 Print all kern entries.
2603 Print all characters in charset.
2604 * src/utils/afmtodit/afmtodit.man: Updated.
2606 * font/devps/*: Regerated all fonts.
2608 * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
2609 of characters, just use `.trin'. Otherwise the mapping depends
2610 on the font encoding.
2611 * tmac/ps.tmac: Add `fi' and `fl'.
2612 Improve `Fi' and `Fl'.
2613 * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
2614 * tmac/Xps.tmac: Fix `em'.
2618 2003-03-04 Werner LEMBERG <wl@gnu.org>
2620 * src/roff/troff/input.cc (charinfo_to_node_list): Reset
2623 2003-03-03 Werner LEMBERG <wl@gnu.org>
2625 * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
2627 * font/devps/generate/textmap: Remove entry `similarequal'.
2628 * font/devps/symbolmap: Updated.
2630 2003-03-02 Werner LEMBERG <wl@gnu.org>
2632 * src/libs/libgroff/font.cc (font::load): Fix error message for
2635 * src/devices/grops/grops.man: Improve documentation of the -b
2638 * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
2639 `ascii' and `cp1047'.
2641 2003-03-01 Werner LEMBERG <wl@gnu.org>
2643 Document composite glyphs and the `composite' request.
2645 * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
2647 2003-02-28 Werner LEMBERG <wl@gnu.org>
2649 * font/devdvi/generate/ec.map: Add some more Unicode entities.
2650 * font/devdvi/*EC: Updated.
2652 * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
2653 * tmac/latin1 (latin1-tr): Undo any previous mapping.
2654 * tmac/troffrc: Load `composite.tmac'.
2655 * tmac/Makefile.sub (NORMALFILES): Updated.
2657 * doc/groff.texinfo (Input Encodings): New section.
2660 2003-02-27 Werner LEMBERG <wl@gnu.org>
2662 * doc/texinfo.tex: New version 2003-02-11.06.
2664 * tmac/doc-common (Dt): Don't emit warning for unknown section.
2665 * tmac/groff_mdoc.man: Fix description of `Dt'.
2667 2003-02-26 Egil Kvaleberg <egil@kvaleberg.no>
2669 * font/devps/prologue.ps: Fix for included Postscript that does
2670 a setpagedevice -- which is now safely ignored.
2674 * src/devices/grops/ps.cc: Now sets the page size in the generated
2675 document. This is done in two ways: Via a %%-comment for gv and
2676 the like, and via a PageSize and setpagedevice for programs that
2677 understands Postscript proper, like ps2pdf.
2679 * src/devices/grops/ps.h: New broken-flag to avoid page size
2680 definition, if required.
2682 * src/devices/grops/grops.man: New broken-flag 16 mentioned.
2684 * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
2685 Not really necessary due to the fix in prologue.ps, but cleaner:
2686 Such information does not belong in an .eps file.
2688 * doc/Makefile.sub: See doc/Makefile.in.
2690 2003-02-26 Ralph Corderoy <ralph@inputplus.co.uk>
2692 * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
2693 instead of P1 since the latter is broken in some versions of netpbm.
2694 * configure: Updated.
2696 2003-02-26 Larry Kollar <kollar@alltel.net>
2698 Make man pages more customizable.
2700 * tmac/an-old.tmac (FT): New register holding footer distance from
2702 (HF): New string holding the default heading font.
2703 (TH): Handle registers `IN' and `SN' set on the command line.
2705 (PT, BT): New strings to customize header and footer lines.
2706 (an-header, an-footer): Use them.
2708 * tmac/groff_man.man: Document changes.
2710 * doc/groff.texinfo: Document man changes.
2711 Document Ultrix extensions of man.
2713 2003-02-26 Werner LEMBERG <wl@gnu.org>
2715 * src/roff/troff/input.cc (do_width, do_if_request): Reset
2716 `have_input' after changing back to old environment.
2718 * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
2719 function up to be defined before first call. This is necessary to
2720 avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
2722 * src/utils/afmtodit/afmtodit.pl: Make script search for files in
2723 the default font directory also. Based on a patch from James
2724 J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
2725 * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
2726 * src/utils/afmtodit/afmtodit.man: Document it.
2730 * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
2732 2003-02-25 Gaius Mulley <gaius@glam.ac.uk>
2734 * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
2735 (GROFF_PNMTOPS_NOSETPAGE): New macro.
2736 * configure.ac: Use it.
2737 * configure: Regenerated.
2738 * Makefile.in: Updated.
2740 * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
2741 (CLEANADD): Add www.tmac-sed.
2742 (pnmtops_nosetpage): Define default.
2743 (install_data): Handle www.tmac-sed and substitute
2744 @PNMTOPS_NOSETPAGE@.
2745 (stamp-sed): Add www.tmac.
2746 * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
2747 It now breaks URLs at suitable places.
2748 (www:substring_ok): New register set by...
2749 (www:@test_substring): New macro.
2750 (www:error): New alias to www-error.
2751 (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
2753 (URL): Use www:url_breaks.
2754 (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
2755 (CDS, CDE): New macros.
2757 2003-02-25 Werner LEMBERG <wl@gnu.org>
2759 * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
2762 2003-02-24 Werner LEMBERG <wl@gnu.org>
2764 Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
2765 can be negative also.
2767 * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
2769 (read_char_table): Avoid negative ascenders.
2770 (output_charset): Add cast.
2771 * font/devlj4/*: Regenerated.
2773 Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
2776 * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
2777 * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
2779 * font/devdvi/*: Regenerated.
2781 Map `la' and `ra' to U+27E8 and U+27E9. These two characters have
2782 normal width, while the previously used characters (U+2329 and
2783 U+232A) are classified as wide due to canonical equivalence with the
2784 CJK punctuation characters U+3008 and U+3009.
2786 * font/devutf8/R.proto: Updated.
2787 * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
2789 * man/groff_char.man: Simplify handling of table traps by
2790 introducing `start block' and `end block' macros.
2791 (Ns, Ne, 2s, 2e, Ds, De): New macros.
2792 (DL): Make it work with Unix troff also.
2793 Fix code values of `la' and `ra'.
2795 * tmac/dvi.tmac: Define `<>' for CW and CWI.
2797 2003-02-23 Gaius Mulley <gaius@glam.ac.uk>
2799 * src/devices/grohtml/post-html.cc (element_list::~element_list):
2800 New destructor, fixing a major memory leak.
2802 2003-02-22 Werner LEMBERG <wl@gnu.org>
2804 * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
2805 to be in conformance with Unicode 3.0 and newer.
2807 * font/devlj4/generate/text.map: Add `Eu'.
2808 * font/devlj4/generate/special.map: Flip `*e' and `+e'.
2809 * font/devlj4/S: Regenerated.
2811 * man/groff_char.man: Completely rewritten.
2813 * doc/groff.texinfo: Fix description of request and macro arguments.
2815 2003-02-20 Gaius Mulley <gaius@glam.ac.uk>
2819 * src/devices/grohtml/html-table.cc (html_table::~html_table):
2820 Deallocate `columns' list.
2821 * src/devices/grohtml/post-html.cc (char_block::~char_block):
2823 (text_glob::text_glob_html, text_glob::text_glob_special,
2824 text_glob::text_glob_line, text_glob::text_glob_auto_image,
2825 text_glob::text_glob_tag): Avoid memory leaks.
2826 (text_glob::remember_table): Free memory before reassigning.
2828 2003-02-19 Werner LEMBERG <wl@gnu.org>
2830 Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
2831 alias `hbar'), the Planck constant over two pi.
2833 * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
2834 `+e' for position 34.
2835 * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
2836 `u2662' and `u2661'.
2837 * font/devdvi/{MI,S}: Regenerated.
2838 * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
2839 * font/devlbp/*: Add `hbar' alias.
2840 * font/devlj4/generate/special.map: Ditto.
2841 * font/devlj4/S: Regenerated.
2842 * font/devps/generate/symbolchars: Add `+e'.
2843 * font/devps/generate/textmap: Fix PS name for `-h'.
2845 * font/devps/symbolmap: Regenerated.
2847 * src/devices/grops/ps.cc (transform_fill): Removed since unused.
2849 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
2851 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
2854 * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
2856 * tmac/tty-char.tmac: Add `+e'.
2858 2003-02-17 Werner LEMBERG <wl@gnu.org>
2860 Another round trying to really fix problems with `have_input'.
2862 * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
2863 (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
2865 * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
2866 handling if both foreground and background colors are default.
2868 * doc/groff.texinfo (Debugging): Document .lf differences to
2871 2003-02-16 Werner LEMBERG <wl@gnu.org>
2873 * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
2874 null-bytes in created string.
2876 * src/roff/troff/input.cc (lookup_color, interpolate_macro,
2877 alias_macro, lookup_request): Improve warning messages.
2879 * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
2881 Free `last_image_filename'.
2883 * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
2885 (imageList::createPage, imageList::createImage): Use `free', not
2887 (imageItem::~imageItem): Free `imageName'.
2888 (addRegDef): Use `strsave', not `strdup'.
2889 (get_resolution): Free `pathp'.
2891 2003-02-15 Werner LEMBERG <wl@gnu.org>
2893 * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
2896 2003-02-14 Werner LEMBERG <wl@gnu.org>
2898 Add memory management for colors to deallocate unnamed colors
2901 * src/include/color.h (color): New members `free_list' and `next'.
2902 New member functions `new' and `delete'.
2904 * src/libs/libgroff/color.cc: Implement it.
2906 * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
2907 for array size of new operator.
2909 * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
2910 redundant comparison.
2912 * src/roff/troff/input.cc (word_space_node::reread,
2913 hmotion_node::reread): Avoid warning about unused parameter.
2914 (reset_output_registers): Remove redundant parameter.
2915 (define_color): Undo change 2003-02-12.
2917 * src/roff/troff/reg.h: Updated.
2919 * src/roff/troff/node.cc (troff_output_file::really_print_line,
2920 output_file::put_filename, real_output_file::really_put_filename,
2921 ascii_output_file::really_print_line,
2922 break_char_node::get_hyphen_list): Avoid warning about unused
2924 (suppress_node::tprint): Updated.
2926 * configure.ac: Check declaration for rand() and srand().
2927 * configure: Regenerated.
2929 * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
2931 * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
2934 * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
2935 to avoid compiler warnings.
2937 * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
2940 * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
2942 * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
2944 Updated all callers.
2946 * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
2948 * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
2949 * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
2951 * src/devices/grohtml/post-html.cc (html_printer::emit_line):
2952 Parameter is unused.
2953 (html_printer::add_table_end): Define parameter conditionally.
2954 * src/devices/grohtml/output.cc (simple_output::special): Parameter
2957 * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
2958 (lbp_printer::set_char): Last parameter is unused.
2960 * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
2962 2003-02-13 Werner LEMBERG <wl@gnu.org>
2964 New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
2965 Make \D'f ...' move horizontally again for backwards compatibility.
2966 Replace it with \D'Fg ...' where appropriate to avoid dependency
2967 on horizontal resolution.
2969 * src/roff/troff/input.cc (do_get_long_name): New function.
2970 (get_long_name): Call it.
2972 (read_draw_node): Handle `\D'Fx ...' by calling ...
2973 (read_color_draw_node): New function.
2975 (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
2977 Pass it to `do_get_long_name' which is used instead of
2980 * src/libs/libdriver/input.cc (color_from_Df_command): Remove
2981 unnecessary value guard.
2982 (parse_D_command) <'f'>: Add horizontal shift.
2984 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
2985 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
2986 (FILL_MAX): Removed.
2988 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2991 2003-02-12 Werner LEMBERG <wl@gnu.org>
2993 * src/roff/troff/input.cc (do_name_test, do_expr_test,
2994 do_zero_width): Push `\n' if closing delimiter is missing.
2996 (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
2997 <'F'>: Make \F non-transparent at the beginning of line.
2998 (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
2999 token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
3002 (define_color): Free color in case of reassignment.
3004 * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
3005 @DefescListEnd): Use @Var, not @var.
3008 * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
3010 * src/preproc/pic/object.cc (object_spec::~object_spec): Free
3011 `shaded' and `outlined' arrays.
3012 (object_spec::object_spec): Initialize `shaded' and `outlined'.
3013 (graphic_object::set_fill_color, graphic_object::set_outline_color):
3015 (closed_object::set_fill_color): Ditto.
3016 * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
3018 (troff_output::reset_color): Use a_delete instead of free.
3019 * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
3021 2003-02-11 Werner LEMBERG <wl@gnu.org>
3023 * doc/groff.texinfo: Improve documentation of `ad'.
3024 Document that \D'f...' is dependent on the horizontal resolution.
3025 * man/groff_diff.man: Improve documentation of \D'f...'.
3027 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
3028 compensating \h'...' for \D'f ...' since the latter no longer moves
3030 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
3032 2003-02-10 Werner LEMBERG <wl@gnu.org>
3034 Improve error messages for `x F' (and `F') commands.
3036 * src/include/error.h: Add declaration for
3037 `current_source_filename'.
3038 * src/libs/libgroff/filename.cc: Add `current_source_filename'.
3039 * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
3040 parameter for source file string.
3041 Updated all callers.
3043 * src/libs/libdriver/input.cc: Add `current_source_filename'.
3044 (remember_source_filename): New function.
3045 (parse_x_command <'F'>, do_file <'F'>): Use it.
3047 2003-02-09 Werner LEMBERG <wl@gnu.org>
3049 Make grotty not emit warnings about unknown colors more than
3052 * src/devices/grotty/tty.cc: Include `ptable.h'.
3053 (TTY_MAX_COLORS): Removed.
3054 (DEFAULT_COLOR_IDX): Defined to -1.
3055 (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
3056 (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
3057 Change `tty_colors' to be a ptable.
3058 First arg of `put_color' is now `char'.
3059 New functions `make_rgb_string' and `tty_color'.
3060 (tty_printer::tty_printer): Use `tty_color'.
3061 (tty_printer::color_to_idx): Return value is now `char'.
3064 * src/include/color.h (color): Add `print_color' member function.
3065 * src/libs/libgroff/color.cc (color::print_color): Implement it.
3067 2003-02-08 Werner LEMBERG <wl@gnu.org>
3071 * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
3074 * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
3075 assume that value has been allocated with `new[]', thus use
3076 `a_delete' for deallocation.
3078 * src/libs/libdriver/input.cc (get_integer_arg,
3079 get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
3082 * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
3083 * src/libs/libgroff/nametoindex.cc
3084 (character_indexer::named_char_index): Use `new <type>[1]'.
3086 * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
3088 * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
3089 (split_text): Use `a_delete'.
3091 * src/preproc/pic/pic.y (define_label, define_variable): Use `new
3094 * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
3095 harmless memory leak.
3096 (hyphen_trie::read_patterns_file): Initialize `buf'.
3097 * src/roff/troff/node.cc (troff_output_file::troff_output_file):
3098 Initialize `current_fill_color'and `current_glyph_color'.
3099 * src/roff/troff/glyphuni.cc
3100 (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
3101 * src/roff/troff/uniuni.cc
3102 (unicode_decompose_init::unicode_decompose_init): Ditto.
3103 * src/roff/troff/uniglyph.cc
3104 (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
3106 2003-01-26 Werner LEMBERG <wl@gnu.org>
3108 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
3109 `access' before calling `unlink'.
3110 (do_file): Handle __EMX__.
3112 * src/include/nonposix.h: Handle __EMX__.
3114 * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
3115 (fontpath,tmacpath): Use it.
3117 Sorted alphabetically.
3119 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
3121 * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
3124 2003-01-27 Werner LEMBERG <wl@gnu.org>
3126 * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
3127 New files, copied from gnulib.
3128 * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
3129 * configure.ac: Updated.
3130 * configure: Regenerated.
3132 * src/include/config.hin: Regenerated.
3133 * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
3134 Don't define `strcasecmp' as `strcmp'.
3135 [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
3136 Dont define `strncasecmp' as `strncmp'.
3138 * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
3141 2003-01-26 Werner LEMBERG <wl@gnu.org>
3143 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
3146 2003-01-25 Werner LEMBERG <wl@gnu.org>
3148 * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
3150 2003-01-24 Werner LEMBERG <wl@gnu.org>
3152 Add US-english hyphenation exceptions (converted from Barbara
3153 Beeton's hyphenation exception log reports which appear irregularly
3156 * tmac/hyphen.us: Updated to latest version.
3157 * tmac/README: Updated.
3158 * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
3159 * tmac/troffrc: Load `hyphenex.us'.
3160 * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
3161 * doc/groff.texinfo: Updated.
3163 2003-01-23 Werner LEMBERG <wl@gnu.org>
3165 Improve hyphenation slightly. This is a first step in redesigning
3166 the hyphenation algorithm to make it more flexible (e.g. allowing
3167 kerns and ligatures between the hyphenation character and the
3168 following character -- while not used normally in English, other
3169 languages like German would benefit).
3171 * src/roff/troff/env.cc (environment::hyphenate_line): Use
3172 assertion instead of if-clause.
3173 Let `get_hyphen_list' return the number of involved characters in
3174 the hyphenation pattern instead of computing it directly (which
3175 often yields too small values).
3176 * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
3177 * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
3180 2003-01-22 Werner LEMBERG <wl@gnu.org>
3182 Fixing a bug which caused groff to hang if the hyphenation exception
3183 dictionary tried to grow.
3185 * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
3186 hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
3187 pointer to dictionary.
3189 2003-01-20 Werner LEMBERG <wl@gnu.org>
3191 * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
3192 negative left italic correction.
3193 * src/utils/afmtodit/afmtodit.man: Document it.
3195 * font/devps/generate/Makefile (RFLAG): Add `-m'.
3196 * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
3197 S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
3201 2003-01-16 Werner LEMBERG <wl@gnu.org>
3205 2003-01-16 Jörgen Grahn <jgrahn@algonet.se>
3207 * src/preproc/refer/refer.man: Mention REFER environment variable.
3209 2003-01-05 Werner LEMBERG <wl@gnu.org>
3211 Similar to \[is], the square root glyph (\[sr]) and the square root
3212 extension glyph (\[radicalex]) are now text symbols. The new
3213 mathematical versions are called \[sqrt] and \[sqrtex],
3216 * font/devX*/S: Regenerated.
3217 * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
3218 * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
3219 * font/devdvi/EX, font/devdvi/S: Regenerated.
3220 * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
3221 * font/devlj4/generate/special.map: Add `sqrt'.
3222 * font/devlj4/S: Regenerated.
3223 * font/devps/generate/textmap: Add `sqrt'.
3224 * font/devps/S, font/devps/symbolmap: Regenerated.
3226 * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
3227 SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
3228 * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
3229 overlap horizontally.
3231 * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
3232 * tmac/dvi.tmac: Add `sr', and `sqrtex'.
3235 * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
3236 and `sqrtex' are overlapping glyphs.
3238 2003-01-04 Werner LEMBERG <wl@gnu.org>
3240 * font/devdvi/generate/texsy.map: Add `is'.
3241 * font/devps/symbolmap: Regenerated.
3242 * font/devdvi/*TC, MI, S: Regenerated.
3244 * tmac/dvi.tmac: Remove `is'.
3246 2003-01-03 Werner LEMBERG <wl@gnu.org>
3248 `is' is now a text symbol (only relevant for dvi). The math variant
3249 can be accessed with `integral'.
3251 * font/devX*/S: Regenerated.
3252 * font/devdvi/generate/texex.map: Remove `is'.
3253 * font/devdvi/EX: Updated.
3254 * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
3255 * font/devlj4/generate/special.map: Ditto.
3256 * font/devlj4/S: Regenerated.
3257 * font/devps/generate/textmap: Add `integral'.
3258 * font/devps/S: Regenerated.
3260 * tmac/dvi.tmac: Define `is'.
3262 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
3264 * src/preproc/tbl/main.cc (process_format): Fix error message.
3266 2003-01-02 Werner LEMBERG <wl@gnu.org>
3268 * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
3269 * font/devps/textmap: Fix entries for `ne' and `nc'.
3270 * font/devps/symbolmap: Regenerated.
3272 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
3273 src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
3274 `38', `58', `78', `-+', `|=', `nc', `ne'.
3276 * tmac/dvi.tmac: Add `nm', `ne', `nc'.
3277 Use `schar' for `aq'.
3278 * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
3279 * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
3280 * tmac/tty.tmac: Add `ne'.
3282 * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
3283 for fallback glyphs.
3285 2002-12-29 Werner LEMBERG <wl@gnu.org>
3289 * font/devX*/*: Regenerated.
3290 * font/devdvi/generate/ec.map: Remove `eq'.
3291 * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
3292 Assign `|=' to position 39.
3293 * font/devdvi/*EC, S: Regenerated.
3294 * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
3295 * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
3296 Assign `|=' to position 549.
3297 * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
3299 Add `uni2243' for `|='.
3301 * tmac/ec.tmac: Add `eq'.
3302 * tmac/dvi.tmac: Add `=~'.
3303 * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
3306 2002-12-21 Werner LEMBERG <wl@gnu.org>
3308 * font/devdvi/generate/tc.map: Remove `**'.
3309 * font/devdvi/*TC: Regenerated.
3310 * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
3312 * font/devutf8/NOTES: Updated.
3314 * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
3315 Don't give default parameter to `set_macro'.
3316 * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
3317 instead of `set_macro'.
3318 (charinfo::setx_macro): Implement it.
3319 (charinfo::set_macro): Don't change `mode'.
3321 * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
3322 * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
3323 * tmac/dvi.tmac: Define `!=' with `.schar'.
3325 2002-12-20 Werner LEMBERG <wl@gnu.org>
3327 * font/devX*/S: Regenerated.
3328 * font/devdvi/generate/ec.map: Remove `pl'.
3329 * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
3330 * font/devdvi/*{TC,EC}: Regenerated.
3331 * font/devhtml/R.proto: Add `-+'.
3332 Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
3333 * font/devlbp/*: Remove `or'.
3334 * font/devlj4/generate/special.map: Remove `or'.
3335 * font/devlj4/S: Regenerated.
3336 * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
3337 `seveneighths', `threeeighths'.
3339 Replace `minusplus' with `uni2213'.
3340 * font/devps/symbolmap: Regenerated.
3341 * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
3344 * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
3346 * src/roff/troff/node.cc (troff_output_file::put_char_width):
3347 Call glyph_color and fill_color even if tcommand_flag isn't set.
3348 (make_node, node::add_char): Check not ci->is_fallback but
3351 * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
3352 * tmac/ec.tmac: Add .rchar entry for `f/'.
3353 Don't remove `12', `14', `34'.
3354 Define `pl' to be always roman.
3355 * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
3356 Define `18', `38', `58', `78'.
3357 * tmac/tty.tmac: Add `-+'.
3358 * tmac/dvi.tmac: Define `f/'.
3359 (dvi-frac): Use `f/'.
3360 * tmac/X.tmac (X-frac, X-frac-mono): New macros.
3361 Define `18', `38', `58', `78'.
3363 2002-12-15 Colin Watson <cjwatson@debian.org>
3365 * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
3367 2002-12-10 Werner LEMBERG <wl@gnu.org>
3369 Add glyph `tno', a textual variant of `no'.
3371 * font/devX*/*: Regenerated.
3372 * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
3373 * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
3374 * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
3375 * font/devdvi/*: Regenerated.
3376 * font/devlbp/*: Add `tno'.
3377 * font/devlj4/generate/tex.map: Replace `no' with `tno'.
3378 * font/devlj4/*: Regenerated.
3379 * font/devps/generate/textmap: Replace `no' with `tno'.
3380 * font/devps/generate/symbolchars: Add `no'.
3381 * font/devps/*: Regenerated.
3383 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
3385 * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
3386 * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
3390 * tmac/dvi.tmac: Replace most `\\' with `\E'.
3391 Add definition for `sd'.
3392 * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
3394 * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
3396 2002-12-08 Werner LEMBERG <wl@gnu.org>
3398 * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
3399 mode to avoid rounding errors.
3400 (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
3402 * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
3403 src/roff/troff/troff.man: Improve documentation of -T.
3405 2002-12-07 Jeff Conrad <jeff_conrad@msn.com>
3407 * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
3408 (run_pipeline) [_WIN32]: Provide working function without `fork'.
3410 2002-12-06 Werner LEMBERG <wl@gnu.org>
3412 * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
3413 glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
3414 Scaling Euro.sansserif glyphs down to have the same height as
3416 Removed unnecessary points; added some extrema.
3418 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
3421 2002-12-04 Werner LEMBERG <wl@gnu.org>
3423 * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
3424 and `Euro.symbol.bold.slanted'.
3425 Improve some glyph offsets and widths.
3426 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
3428 * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
3430 * font/devps/generate/sfdtopfa.pe: Generate PFA in current
3433 * tmac/europs.tmac: Updated to new glyph indices.
3434 Use Euro.symbol for font familiy `A'.
3436 * doc/groff.texinfo: Minor improvements.
3438 2002-12-02 Werner LEMBERG <wl@gnu.org>
3440 * font/devdvi/generate.tc.map: s/%O/%0/.
3441 * font/devdvi/*TC: Regenerated.
3443 * src/roff/troff/div.cc (init_div_requests): Sorted.
3445 * tmac/dvi.tmac: Remove `Ye'.
3446 * tmac/ec.tmac: Remove `Ye'.
3447 Add .rchar entry for `de'.
3449 * man/groff.man, man/groff_diff.man: Document register `.pe'.
3450 * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
3453 2002-11-30 Werner LEMBERG <wl@gnu.org>
3455 Add PS font for various Euro glyphs.
3457 * font/devps/generate/freeeuro.sfd: New master font file for
3459 * font/devps/generate/sfdtopfa.pe: New conversion script for
3461 * font/devps/generate/Makefile (FONTS): Add `EURO'.
3462 (EURO, freeeuro.afm, freeeuro.pfa): New rules.
3463 * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
3465 * font/devps/EURO: Generated from `freeeuro.afm'.
3466 * font/devps/download: Add `freeuro.pfa'.
3467 * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
3470 * tmac/europs.tmac: New file.
3471 * tmac/ps.tmac: Include `europs.tmac'.
3472 * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
3474 2002-11-29 Werner LEMBERG <wl@gnu.org>
3476 * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
3477 * font/devdvi/S: Regenerated.
3478 * font/devhtml/R.proto: Fix `CR' and `ci'.
3480 * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
3482 * font/devps/symbolmap: Regenerated.
3483 * font/devutf8/R.proto: Fix `CR' and `ci'.
3485 * font/devutf8/NOTES: Updated.
3487 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
3490 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
3492 * tmac/dvi.tmac: Add `lh' and `rh'.
3493 * tmac/Xps.tmac: Fix `lh' and `rh'.
3494 * tmac/X.tmac: Add `OK'.
3495 * tmac/lj4.tmac: Ditto.
3497 2002-11-24 Werner LEMBERG <wl@gnu.org>
3499 * font/devX*/S: Regenerated.
3500 * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
3501 `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
3502 * font/devdvi/generate/texsy.map: Remove `or' glyph.
3503 * font/devdvi/S: Regenerated.
3504 * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
3505 `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
3506 `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
3507 `bracketleftbt', `bracketrighttp', `bracketrightex',
3508 `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
3509 `braceex', `braceleftex', `bracerightex', `bracerighttp',
3510 `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
3512 * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
3513 * font/devutf8/NOTES: Updated.
3514 * font/devlj4/generate/special.map: Add glyph `braceex'.
3515 * font/devlj4/S: Regenerated.
3517 * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
3519 2002-11-14 Werner LEMBERG <wl@gnu.org>
3521 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
3524 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
3526 * doc/texinfo.tex: New version from texinfo 4.3.
3527 * doc/groff.texinfo: Updated for texinfo 4.3.
3528 Use @tie{} where appropriate.
3529 * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
3530 * font/devdvi/generate/tc.map: Remove `rn'.
3531 * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
3532 * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
3534 * font/devX100/*, font/devX100-12/*, font/devX75/*,
3535 font/devX75-12/*: Regenerated.
3537 * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
3538 Use .char (again) for `br', `ul', `rn', `or', and `ru'.
3539 Improve definition of `an'.
3540 * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
3542 * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
3543 * tmac/X.tmac: Add definition for `or'.
3544 * tmac/Xps.tmac: Undo change 2002-11-05.
3545 * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
3547 2002-11-11 Werner LEMBERG <wl@gnu.org>
3549 * src/roff/troff/node.cc (troff_output_file::put_char): Always
3552 2002-11-10 Werner LEMBERG <wl@gnu.org>
3554 Added three new requests `schar', `fschar', and `rfschar'. `schar'
3555 defines a glyph which is searched after the check for fonts declared
3556 with `.special' (and before the check for all mounted special
3557 fonts). `fschar' defines a glyph for a particular font which is
3558 searched after the check for fonts declared with `.fspecial' (and
3559 before the check for fonts declared with `.special'). `rfschar'
3560 removes glyphs defined with `fschar'.
3562 * src/roff/troff/token.h (char_mode): New enum.
3563 Declare do_define_character.
3564 * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
3566 (charinfo::is_fallback): Updated.
3567 (charinfo::is_special): New method.
3568 * src/roff/troff/input.cc (do_define_character): Add and use
3569 optional second parameter used as a prefix for font-specific glyph
3571 (define_character, define_fallback_character): Updated.
3572 (define_special_character): New function.
3573 (init_input_requests): Add `schar'.
3574 (charinfo::charinfo, charinfo::set_macro): Updated.
3575 * src/roff/troff/node.cc: Include `stringclass.h'.
3576 (make_glyph_node): Handle special glyphs defined with `.schar' and
3578 (define_font_special_character, remove_font_special_character): New
3580 (init_node_requests): Sorted.
3581 Add `fschar' and `rfschar'.
3582 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3583 Document new requests.
3585 * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
3586 * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
3588 2002-11-08 Werner LEMBERG <wl@gnu.org>
3590 Added new font `SC' (cmtex10) to devdvi.
3592 * devdvi/generate/Makefile (FONTS): Add `SC'.
3594 * devdvi/generate/textex.map: New map file for cmtex.
3596 * devdvi/Makefile.sub (DEVFILES): Updated.
3597 * tmac/dvi.tmac: Add fspecial entries for SC.
3598 Add `MI', `S' and `CW' to the `special' call. Otherwise, `SC' is
3599 found before `S' since the font position of `SC' is lower due to the
3600 gaps in DESC's `font' line.
3601 * tmac/ec.tmac: Add a `special' call.
3604 * font/devhtml/R.proto: Remove double entry for `ti'.
3605 * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
3606 * tmac/tty-char.tmac: Remove entry for `bq'.
3607 * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
3608 * tmac/ec.tmac: Don't remove `aq' glyph.
3609 * tmac/X.tmac: Fix entry for `em'.
3610 Add entries for `fo' and `fc'.
3611 * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
3613 * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
3614 documentation of `special' and `fspecial' requests.
3616 2002-11-05 Werner LEMBERG <wl@gnu.org>
3618 * font/devascii/R.proto, font/devcp1047/R.proto,
3619 font/devlatin1/R.proto: Remove entry for `.i'.
3620 * font/devdvi/generate/textt.map: Add entry for `ad'.
3621 * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
3622 font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
3623 We need this for getting kerning values to compose `/l' and `/L'.
3624 * font/devdvi: Regenerated font definition files for CM fonts.
3625 * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
3626 * font/devutf8/R.proto: Ditto.
3627 Remove double entry for `ti'.
3629 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
3630 for (groff) ligatures, `la', and `ra'.
3631 Add "'C", "'c", `IJ', and `ij'.
3632 Remove double entry for `ti'.
3633 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
3635 Add "'C", "'c", `IJ', and `ij'.
3636 Fix entries for (groff) ligatures, `la', and `ra'.
3638 * tmac/ps.tmac (ps-achar): New macro.
3639 Define "'c" and "'C".
3640 * tmac/tty.tmac: Add entry for `.i'.
3641 * tmac/X.tmac (X-achar): New macro.
3642 Define "'c", "'C", and `:Y'.
3643 Add entries for `IJ' and `ij'.
3644 * tmac/Xps.tmac (Xps-achar): New macro.
3645 Define "'c" and "'C".
3646 Add entries for `IJ' and `ij'.
3647 * tmac/lbp.tmac (lbp-achar): New macro.
3648 Add fallback characters for all groff ligatures and many other
3650 * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
3651 Add entries for `/l' and `/L'.
3652 Define "'c" and "'C".
3653 Add entries for `IJ' and `ij'.
3655 2002-11-02 Larry Kollar <kollar@alltel.net>
3657 * PROBLEMS: Document how to solve Mac OS X compilation problems.
3659 2002-11-02 Werner LEMBERG <wl@gnu.org>
3661 Adding support for composite glyphs: \[xxx yyy ...] and the
3662 `composite' request.
3664 * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
3665 to Unicode-based glyph names.
3666 * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
3667 glyph names to groff glyph names.
3668 * src/roff/troff/uniuni.cc: New file for canonically decomposing
3669 Unicode-based glyph names.
3670 * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
3671 for handling Unicode glyph names.
3672 * src/roff/troff/input.cc: Include unicode.h.
3673 (composite_glyph_name): New function.
3674 (token::next) <'['>: Handle Unicode glyph names and composite
3676 (composite_dictionary): New dictionary for the `composite' request.
3677 (composite_request): Implement `composite' request.
3678 (init_input_requests): Add `composite'.
3679 Alphabetically sorted.
3680 * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
3682 (init_env_requests): Alphabetically sorted.
3683 Removed `tas' and `tar' (already commented out).
3684 * src/roff/troff/Makefile.sub: Updated.
3686 2002-10-31 Ruslan Ermilov <ru@FreeBSD.org>
3688 * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
3691 2002-10-29 Werner LEMBERG <wl@gnu.org>
3693 Fix computation of .trunc register. Additionally, its value (and
3694 the value of the .ne register) is now always set before entering the
3697 * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
3698 `needed_space' before calling `space'.
3699 (top_level_diversion::space): Remove special code for 'sp before the
3701 Call `begin_page' with the discarded space as a parameter.
3702 (top_level_diversion::begin_page): Add optional parameter to set
3704 * src/roff/troff/div.h: Updated.
3706 * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
3709 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
3710 (LP): Remove superfluous call to `br'.
3711 * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
3712 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
3714 2002-10-26 Werner LEMBERG <wl@gnu.org>
3716 * tmac/doc-ditroff: Remove useless switch/variable -rC.
3717 (doc-setup-header): Don't set page register `%'.
3718 * tmac/doc-nroff: Remove variable `C'.
3719 (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
3720 (doc-setup-header): Don't set page register `%'.
3722 * tmac/doc-common (doc-header): Call `ns'.
3723 (doc-paragraph): Protect .sp with .br so that it survives traps
3724 possibly set by the user.
3725 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
3727 * tmac/doc*: Replace ' with . for consistency if no effect.
3729 2002-10-26 Werner LEMBERG <wl@gnu.org>
3731 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
3732 so that it survives traps possibly set by the user.
3734 * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
3735 (troff_output_file::set_font): Call flush_tbuf if necessary.
3736 (troff_output_file::fill_color, troff_output_file::glyph_color): Call
3737 flush_tbuf and do_motion only if necessary.
3738 (troff_output_file::start_special,
3739 troff_output_file::put_char_width, troff_output_file::put_char,
3740 troff_output_file::draw): Updated.
3741 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
3742 vmotion_node::tprint): Undo change 2002-10-23.
3744 2002-10-25 Werner LEMBERG <wl@gnu.org>
3746 * tmac/www.tmac (DC): Fix case of overlapping images.
3748 2002-10-23 Werner LEMBERG <wl@gnu.org>
3750 * src/roff/troff/node.cc (troff_output_file::fill_color,
3751 troff_output_file::glyph_color): Set current color before testing
3753 (troff_output_file::put_char_width, troff_output_file::put_char,
3754 troff_output_file::draw): Don't call flush_tbuf and/or do_motion
3756 (troff_output_file::file_color, troff_output_file::glyph_color):
3758 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
3759 vmotion_node::tprint): Move first, then call fill_color.
3761 2002-10-20 Werner LEMBERG <wl@gnu.org>
3763 * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
3764 possible to use multiple main macro packages.
3766 2002-10-19 Werner LEMBERG <wl@gnu.org>
3768 * src/devices/grops/ps.cc (cmyk_flag): New global variable.
3769 (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
3770 (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
3772 * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
3773 `where' construction since `cmyksetcolor' is a PS Level 2 operator.
3775 2002-10-16 Werner LEMBERG <wl@gnu.org>
3777 * NEWS, doc/webpage.ms: Updated.
3779 2002-10-14 Werner LEMBERG <wl@gnu.org>
3781 * src/roff/troff/node.cc (troff_output_file::put_char_width,
3782 troff_output_file::put_char, troff_output_file::fill_color,
3783 troff_output_file::glyph_color): Handle case where color pointer
3786 2002-10-13 Ruslan Ermilov <ru@FreeBSD.org>
3788 Add the new -r option to grotty. It is similar to the -i option
3789 except it tells grotty(1) to use the "reverse video" attribute to
3790 render italic fonts.
3792 * src/devices/grotty/tty.cc (reverse_flag): New global variable.
3793 (SGR_REVERSE, SGR_NO_REVERSE): New macros.
3794 (tty_printer::make_underline, tty_printer::put_color,
3795 tty_printer::end_page): Use it.
3796 (main): Add -r switch.
3798 * src/devices/grotty/grotty.man: Document it.
3800 2002-10-11 Ruslan Ermilov <ru@FreeBSD.org>
3802 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
3803 cast to `unsigned char' to properly read patterns with 8bit
3806 2002-10-08 Werner LEMBERG <wl@gnu.org>
3808 * REVISION: Increased to 2.
3810 Version 1.18.1 released
3811 =======================
3813 2002-10-08 Werner LEMBERG <wl@gnu.org>
3815 * doc/webpage.ms, NEWS: Updated.
3817 2002-10-07 Werner LEMBERG <wl@gnu.org>
3819 * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
3820 suppress additional whitespace after the header.
3822 * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
3825 * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
3827 2002-10-07 Ruslan Ermilov <ru@FreeBSD.org>
3829 * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
3830 (Dt): Use it to improve language localization (especially Russian
3833 2002-10-07 Daniel Senderowicz <daniel@synchrods.com>
3835 * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
3836 * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
3838 * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
3840 Call `picurve' for BSPLINE.
3841 (HGPrintElt): Handle BSPLINE.
3842 * src/preproc/grn/README: Document it.
3844 2002-10-03 Werner LEMBERG <wl@gnu.org>
3846 * src/roff/troff/node.cc (break_char_node::col): New variable.
3847 Updated constructor.
3848 (space_node::tprint, word_space_node::tprint): Call `fill_color'
3850 (space_node::space_node): Remove assertion.
3851 (break_char_node::add_self): Pass color argument to space node.
3852 * src/roff/troff/input.cc (token::add_to_node_list, token::process):
3854 * src/roff/troff/env.cc (environment::do_break,
3855 environment::add_padding): Ditto.
3857 2002-10-02 Werner LEMBERG <wl@gnu.org>
3859 Redesigning color support in troff. Colors are no longer
3860 represented as separate nodes but are now part of glyph nodes and
3861 friends. This fixes the current formatting misbehaviour due to the
3862 changes introduced on 2002-09-20. Some extra code is necessary for
3863 proper grotty support: Without adding color variables to
3864 space-related nodes, the background color would be changed too late.
3866 * src/roff/troff/node.h, src/roff/troff/node.cc:
3867 s/current_pagecolor/current_fill_color/.
3868 s/current_glyphcolor/current_glyph_color/.
3869 (glyph_color_node, fill_color_node): Removed.
3870 (node::get_glyph_color, node::get_fill_color): New virtual member
3872 (space_node::col): New variable.
3873 Updated constructors of space_node and derived classes accordingly.
3874 (hmotion_node::col): New variable.
3875 Updated constructors of hmotion_node and space_char_hmotion_node
3877 (vmotion_node::col): New variable.
3878 Updated constructor accordingly.
3879 (draw_node::gcol, draw_node::fcol): New variables.
3880 Updated constructor accordingly.
3881 (special_node::gcol, special_node::fcol): New variables.
3882 Updated constructors accordingly.
3883 (troff_output_file::put_char, troff_output_file::put_charwidth,
3884 troff_output_file::draw): Set glyph and fill color.
3885 (troff_output_file::start_special): Set glyph and fill color.
3886 Always set current font.
3887 (troff_output_file::fill_color, troff_output_file::glyph_color):
3888 Don't call `do_motion'.
3889 (glyph_node::gcol, glyph_node::fcol): New variables.
3890 Updated constructors of glyph_node and ligature_node accordingly.
3891 (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
3893 (glyph_node::merge_glyph_node,
3894 kern_pair_node::add_discretionary_hyphen,
3895 node::add_discretionary_hyphen): Updated.
3896 (break_char_node::merge_self): Updated.
3897 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
3898 vmotion_node::tprint): Handle color.
3899 (make_glyph_node, make_node, node::add_char): Updated.
3901 * src/roff/troff/env.cc (environment::space_newline,
3902 environment::space, environment::output_line, environment::do_break,
3903 environment::make_tab_node, environment::add_padding, title):
3905 (environment_switch, environment_copy): Don't add color nodes.
3907 * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
3909 (token::next): Updated.
3910 \m and \M now are as transparent as \s.
3911 (process_input_stack, token::add_to_node_list, token::process,
3912 read_draw_node): Updated.
3913 (charinfo_to_node_list): Don't add color nodes.
3915 * doc/groff.texinfo: Updated.
3917 2002-09-27 Ruslan Ermilov <ru@FreeBSD.org>
3919 * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
3922 2002-09-27 Colin Watson <cjwatson@debian.org>
3924 * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
3926 2002-09-23 Werner LEMBERG <wl@gnu.org>
3928 * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
3930 (DEFAULT_LINEWIDTH_FACTOR): New macro.
3931 (linewidth_factor): New global variable.
3932 (lbp_printer::set_line_thickness): Fix case for size < 0, using
3934 (long_options): Add -w/--linewidth option.
3936 (main): Handle -w option to set linewidth_factor.
3937 (lbp_printer::lbp_printer): Initialize req_linethickness, not
3940 * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
3942 2002-09-22 Paco Andrés Verdú <pandres@dragonet.es>
3944 Fixed a bug in the line thickness setting code.
3946 * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
3948 (lbp_printer::set_line_thickness): Pass environment as second
3950 Implement it actually.
3951 (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
3952 and `set_line_thickness, depending on the current font size.
3954 2002-09-21 Werner LEMBERG <wl@gnu.org>
3956 Some Debian patches.
3958 * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
3959 * src/roff/troff/node.cc (bracket_node::copy): Initialize
3962 2002-09-20 Werner LEMBERG <wl@gnu.org>
3964 * configure: Regenerated with autoconf 2.54.
3966 2002-09-20 Werner LEMBERG <wl@gnu.org>
3968 * src/roff/troff/env.h (environment): Rename cur_glyph_color to
3970 Rename cur_fill_color to fill_color.
3971 * src/roff/troff/env.cc: Updated.
3973 2002-09-20 Werner LEMBERG <wl@gnu.org>
3975 * src/roff/troff/env.cc (title): Copy color status after processing
3977 * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
3978 fill color nodes to reset colors properly.
3980 * tmac/www.tmac (DC): Fix color handling.
3982 * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
3983 * doc/groff.texinfo: Fixing documentation of `tl' request.
3984 * doc/webpage.ms: Updated.
3986 2002-09-19 Werner LEMBERG <wl@gnu.org>
3988 * src/roff/troff/env.cc (environent_switch, environment_copy):
3989 Emit glyph and fill color nodes to initialize colors properly.
3991 2002-09-17 Colin Watson <cjwatson@debian.org>
3993 * src/roff/troff/env.cc (environment::set_glyph_color,
3994 environment::set_fill_color): Fix typo which prevented \m[] work
3997 2002-09-17 Werner LEMBERG <wl@gnu.org>
3999 Add left and right italic correction to non-slanted PS fonts. This
4000 is an experimental feature to improve image rendering of grohtml.
4002 * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
4003 ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
4004 * font/devps/*: All non-slanted fonts regenerated.
4007 2002-09-16 Werner LEMBERG <wl@gnu.org>
4009 Add a site-specific font directory.
4011 * Makefile.in (localfontdir, legacyfontdir): New variables.
4012 (fontpath): Use them.
4013 (MDEFINES, uninstall_dirs): Updated.
4014 * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
4015 Remove `FONTPATH' and `MACROPATH'.
4017 * src/roff/troff/troff.man, NEWS: Updated.
4018 * doc/groff.texinfo (Font Directories): New section.
4021 * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
4022 src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
4023 src/preproc/grn/grn.man: Minor fixes.
4025 * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
4026 Remove unused variable.
4028 2002-09-11 Werner LEMBERG <wl@gnu.org>
4030 * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
4031 * man/groff_out.man: Fix documentation of 'N'.
4033 2002-09-09 Gaius Mulley <gaius@glam.ac.uk>
4035 * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
4036 * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
4038 * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
4039 (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
4040 (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
4041 * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
4042 PRE_TAG>: Call `begin' with `FALSE'.
4044 2002-09-09 Ralph Corderoy <ralph@inputplus.demon.co.uk>
4046 * src/libs/libgroff/string.cc (string::extract): Fix position of
4047 terminating null byte.
4049 2002-09-08 Werner LEMBERG <wl@gnu.org>
4051 Add global option `nospaces' to tbl so that leading and trailing
4052 spaces in data items are ignored.
4054 * src/libs/libgroff/string.cc (string::remove_spaces): New member
4055 function to remove leading and trailing spaces.
4056 * src/include/stringclass.h: Updated.
4058 * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
4060 * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
4062 Fix typo in error messages.
4063 (process_data): Implement `nospaces' option.
4064 * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
4066 2002-09-07 Werner LEMBERG <wl@gnu.org>
4068 * src/include/config.hin: Add `HAVE_ISATTY'.
4069 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
4071 * src/libs/libgroff/tmpname.cc: Include `time.h'.
4072 * src/libs/libdriver/input.cc (Char): Add `operator==' and
4073 `operator!=' for `char'.
4074 * doc/groff.texinfo: Replace @ifnottex block for top node with
4077 2002-09-06 Werner LEMBERG <wl@gnu.org>
4079 * doc/Makefile.in (.texinfo.html): Add -I switch.
4080 * doc/groff.texinfo: Add @ifnottex block for top node to make
4081 translation to HTML work.
4083 2002-09-05 Gaius Mulley <gaius@glam.ac.uk>
4085 * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
4086 (get_papersize, determine_vertical_offset): Removed.
4087 (char_buffer::do_image): Always specify letter size.
4089 (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
4092 2002-09-05 Werner LEMBERG <wl@gnu.org>
4094 * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
4095 default indentation.
4097 2002-09-04 Gaius Mulley <gaius@glam.ac.uk>
4099 * src/preproc/html/pre-html.cc (imageList::createPage): Use
4101 (generateImages): Clean up push-back buffer.
4103 2002-09-04 Ralph Corderoy <ralph@inputplus.demon.co.uk>
4105 * doc/groff.texinfo: Minor fixes.
4107 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
4109 * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
4110 (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
4112 (determine_vertical_offset): Use LETTER_LENGTH.
4113 (createPage): Moved to ...
4114 (imageList::createPage): This.
4115 Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
4116 (imageList::getMaxX): New function.
4117 (createImage): Moved to ...
4118 (imageList::createImage): This.
4119 (imageList::createImages): New function.
4120 (generateImages): Read `maxx' directly.
4122 (scanArguments): Don't specify `gsPaper' for `-o'.
4123 (makeTempFiles): Call `xtmpfile' with the last argument set to
4126 2002-08-24 Werner LEMBERG <wl@gnu.org>
4128 * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
4129 (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
4130 * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
4131 * src/preproc/html/pushback.cc: Include nonposix.h.
4132 * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
4135 2002-08-23 Werner LEMBERG <wl@gnu.org>
4137 Use $(OBJEXT) for the object file extension.
4139 * Makefile.comm (.SUFFIXES): Add .obj.
4140 (.cc.obj, .c.obj): New implicit rules.
4141 * Makefile.in (OBJEXT): New variable, initialized from autoconf.
4142 (MDEFINES): Add EXEEXT and OBJEXT.
4143 * */Makefile.sub: s/.o/.$(OBJEXT)/.
4145 2002-08-22 Werner LEMBERG <wl@gnu.org>
4147 * INSTALL: Mention texinfo 4.2 as a prerequisite.
4149 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
4151 * src/devices/grohtml/post-html.cc (colType): Make enum global to
4153 (html_printer::update_min_max, html_printer::add_table_end): New
4155 (html_printer::lookahead_for_tables): Use them.
4156 Reset page offset correctly.
4157 (html_printer::~html_printer): Add creation of creator comment up.
4159 2002-08-20 Werner LEMBERG <wl@gnu.org>
4161 * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
4162 * man/groff_tmac.man: Fix typos.
4163 * man/groff_font.man: Minor reordering.
4164 * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
4166 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
4168 Avoid endless loops while scanning for tables.
4170 * src/devices/grohtml/post-html.cc (list::insert): Set
4172 (html_printer::next_horiz_pos): Add `text_glob' argument; update
4174 Return immediately if that argument is NULL.
4175 (html_printer::calc_nf): Don't test if `g' is NULL.
4176 (html_printer::lookahead_for_tables): Use
4177 `glyphs.move_right_get_data'.
4178 Don't test if `g' is NULL.
4180 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
4182 A better fix, replacing fix 2002-08-15, for increasing SIZE.
4184 * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
4186 (char_block::char_block): Allocate `buffer'.
4187 (char_buffer::add_string): Use it.
4189 2002-08-15 Werner LEMBERG <wl@gnu.org>
4191 * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
4192 src/devices/grodvi/grodvi.man: Document default line thickness.
4194 2002-08-15 Gaius Mulley <gaius@glam.ac.uk>
4196 * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
4199 2002-08-14 Werner LEMBERG <wl@gnu.org>
4201 * doc/webpage.ms: Updated.
4203 2002-08-09 Werner LEMBERG <wl@gnu.org>
4205 * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
4208 2002-08-08 Aaron Campbell <aaron@monkey.org>
4210 * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
4213 2002-08-08 Werner LEMBERG <wl@gnu.org>
4215 * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
4218 Don't push back a space but a newline onto the stack.
4220 2002-08-07 Gaius Mulley <gaius@glam.ac.uk>
4222 Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
4225 * src/devices/grohtml/post-html.cc (html_printer::end_font,
4226 html_printer::start_font): Handle them.
4227 * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
4229 (html_text::do_bold): Don't reset italic and tt.
4230 (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
4231 * font/devhtml/DESC.proto: Add those fonts.
4232 * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
4234 2002-08-07 Werner LEMBERG <wl@gnu.org>
4236 * MORE.STUFF: Added gpresent.
4238 * tmac/trace.tmac: Show nesting level by a corresponding amount of
4239 whitespace before printing the logging message.
4241 2002-07-31 Colin Watson <cjwatson@debian.org>
4243 * src/devices/grohtml/html-table.cc (html_table::finish_row):
4244 Initialize `n' to zero. This fixes a segfault on ARM.
4246 2002-07-30 Werner LEMBERG <wl@gnu.org>
4248 * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
4250 2002-07-29 Werner LEMBERG <wl@gnu.org>
4252 * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
4255 2002-07-28 Colin Watson <cjwatson@debian.org>
4257 * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
4259 (html_printer::html_printer): Initialize `pointsize'.
4261 2002-07-26 Werner LEMBERG <wl@gnu.org>
4263 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
4265 (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
4266 (gnu.eps): Add -rle switch to pnmtops.
4267 (distfiles): Add gnu.eps and gnu.png.
4269 2002-07-25 Petter Reinholdtsen <pere@hungry.com>
4271 * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
4274 2002-07-24 Werner LEMBERG <wl@gnu.org>
4276 * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
4277 ' \+' but ' *' for sed.
4278 (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
4280 2002-07-23 Werner LEMBERG <wl@gnu.org>
4282 * doc/groff.texinfo: Document `papersize' keyword.
4283 * NEWS, man/groff_font.man: Updated.
4285 2002-07-23 Colin Watson <cjwatson@debian.org>
4287 Extend papersize keyword to accept more than a single entry. The
4288 first valid will be used.
4290 * src/libs/libgroff/font.cc (font::load_desc): Implement it.
4291 (font::scan_papersize): Really skip final newline.
4292 * src/preproc/html/pre-html.cc (get_papersize): Ditto.
4294 2002-07-23 Werner LEMBERG <wl@gnu.org>
4296 * configure.ac: Test for isatty.
4297 * configure: Regenerated.
4298 * src/include/posix.h: Check HAVE_ISATTY.
4299 * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
4300 * src/utils/lookbib/lookbib.cc: Include posix.h.
4301 Don't declare isatty.
4303 2002-07-21 Werner LEMBERG <wl@gnu.org>
4305 * NEWS: Add `output' request.
4307 * REVISION: Increased to 1.
4309 Version 1.18.0 released
4310 =======================
4312 2002-07-19 Gaius Mulley <gaius@glam.ac.uk>
4314 Allow internal glyph indices > 0xFF in grohtml for input characters.
4316 * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
4318 (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
4319 Updated all callers.
4320 (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
4321 (html_printer): Updated.
4323 2002-07-19 Werner LEMBERG <wl@gnu.org>
4325 * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
4326 * font/devutf8/R.proto: Adding some missing glyphs.
4327 * font/devutf8/NOTES: Updated.
4329 * tmac/dvi.tmac: Add more composite glyphs.
4330 * tmac/html.tmac: Updated.
4332 * man/groff_char.man: Add `sum' and `product' entities.
4336 2002-07-18 Gaius Mulley <gaius@glam.ac.uk>
4338 Improved table, tab, and indenting support.
4340 * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
4341 string_iterator::suppress_newline_flag): Removed. Updated all
4342 function which have used it.
4344 * src/roff/troff/env.cc: Include `input.h'.
4345 (environment::add_node): Accept 0 as parameter.
4346 (environment::add_html_tag): Add `force' parameter.
4347 Updated all callers.
4348 (environment::add_html_tag_tabs): Ditto.
4349 For the moment, support left-aligned tabs only.
4350 (environment::make_html_tag): New function.
4351 (fill, no_fill): Set .br html tag additionally.
4352 (environment::newline): Emit `eol.ce' or `eol' tag for html.
4353 (environment::add_html_tag_eol): Removed.
4354 (tab_stops::distance_to_next_tab): Add variant for handling
4356 (environment::distance_to_next_tab): Ditto.
4357 Updated all callers.
4358 (environment::handle_tab): Handle tabs for html.
4360 * src/roff/troff/env.h: Updated.
4362 * src/roff/troff/div.cc: Updated all callers of
4363 `environment::add_html_tag'.
4365 * src/devices/grohtml/html-table.cc,
4366 src/devices/grohtml/html-table.h: New files.
4368 * src/devices/grohtml/html-text.cc (html_text): New members
4369 `blank_para' and `start_space'.
4370 (html_text::issue_tag): Don't emit TABLE_TAG.
4371 Handle indentation for PRE_TAG and P_TAG.
4372 (html_text::end_tag): Updated.
4373 (html_text::table_is_void, html_text::issue_table_begin,
4374 html_text::issue_table_end): Removed.
4375 (html_text::do_push): Simplified.
4376 [DEBUGGING]: Small fix.
4377 (html_text::push_para): Add new parameter for indentation; updated
4380 (html_text::do_indent, html_text::do_table, html_text::done_table,
4381 html_text::is_in_table): Removed.
4382 (html_text::do_pre): Handle P_TAG also.
4383 (html_text::shutdown): Handle p->indent.
4384 (html_text::check_emit_text): Simplified.
4385 (html_text::do_emittext): Reset `blank_para'.
4386 (html_text::do_para): Add new parameter for indentation; updated
4388 (html_text::remove_indent): New function.
4389 (html_text::do_space): Handle verbatim text properly.
4390 (html_text::ever_emitted_text, html_text::starts_with_space,
4391 html_text::remove_para_align): New functions.
4392 (html_text::dump_stack_element, html_text::dump_stack): Updated.
4394 * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
4397 * src/devices/grohtml/post-html.cc: Include html-table.h.
4398 (INDENTATION): Removed.
4399 (text_glob): Added many `is_<foo>' functions.
4400 Added table description `tab'.
4401 Added `get_arg',`get_tab_args', `remember_table', and `get_table'
4403 (list): Add `insert' and `move_to' member functions.
4404 (page): Add `insert_tag' member function.
4405 (page::dump_page) [DEBUG_TABLES]: Improved.
4406 (html_printer): Add `table' and `max_linelength' elements.
4407 Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
4408 `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
4409 `remove_tabs', `remove_courier_tabs'.
4410 (html_printer::emit_raw): Handle indentation.
4411 (html_printer::do_center, html_printer::write_header): Updated.
4412 (html_printer::is_courier_until_eol): Check for tag.
4413 (html_printer::do_linelength): Handle max_linelength.
4414 (html_printer::do_page_offset, html_printer::do_indentation): Handle
4416 (html_printer::do_tempindent): Updated.
4417 (html_printer::do_indentedparagraph): Removed.
4418 (html_printer::do_indent): Simplified.
4419 (html_printer::do_eol): Use `ever_emitted_text'.
4420 (html_printer::do_flush, html_printer::do_links): Don't call
4422 (html_printer::do_break): Handle end_tempindent.
4423 (html_printer::troff_tag): Get argument.
4425 Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
4426 (html_printer::flush_page): Call `lookahead_for_tables'.
4427 Don't call `done_table'.
4428 (html_printer::add_to_sbuf): Always call do_indent.
4430 * src/devices/grohtml/Makefile.sub: Updated.
4432 * tmac/an-old.tmac (TP): Don't handle html device specially.
4433 (an-do-tag-html): New function which will be used instead of
4434 `an-do-tag' if html device is used.
4436 * tmac/html.tmac: Call .po to pass default page offset to grohtml.
4438 * tmac/s.tmac (@IP): Don't handle html device specially.
4439 (@IP-html): New function which will be used instead of `@IP' if
4440 html device is used.
4442 * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
4443 is a hack which will eventually vanish again.
4444 (PIMG): Handle `-C' option correctly if not html.
4447 2002-07-17 Werner LEMBERG <wl@gnu.org>
4449 * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
4451 2002-07-14 Eric S. Raymond <esr@thyrsus.com>
4453 * contrib/pic2graph/pic2graph.*: Use convert(1).
4454 * contrib/eqn2graph/eqn2graph.*: Minor fixes.
4456 2002-07-14 Bernd Warken <bwarken@mayn.de>
4458 * tmac/groff_trace.man: New file.
4459 * tmac/Makefile.sub: Updated.
4462 2002-07-13 Werner LEMBERG <wl@gnu.org>
4464 * src/roff/groff/groff.man: Add some cross references.
4466 2002-07-12 Werner LEMBERG <wl@gnu.org>
4468 * src/roff/troff/input.cc (substring_request): Add warnings for
4469 string indices out of range.
4471 2002-07-11 Werner LEMBERG <wl@gnu.org>
4473 * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
4474 * font/devdvi/*EC: Regenerated.
4476 2002-07-10 Bernd Warken <bwarken@mayn.de>
4478 * man/groff_char.man: Updated and extended.
4480 2002-07-10 Werner LEMBERG <wl@gnu.org>
4482 * src/roff/troff/input.cc (length_macro): Renamed to...
4483 (length_request): This.
4484 Move call of `tok.next()' to the very end, otherwise the register
4485 value hasn't been updated yet.
4486 (init_input_requests): Updated.
4488 2002-07-09 Werner LEMBERG <wl@gnu.org>
4490 * src/roff/troff/input.cc (substring_macro): Renamed to...
4491 (substring_request): This.
4492 (init_input_requests): Updated.
4493 * src/roff/troff/request.h: Updated.
4495 2002-07-08 Robert D. Goulding <goulding@Princeton.EDU>
4497 * src/roff/grog/grog.sh: Fix typo.
4499 2002-07-08 Werner LEMBERG <wl@gnu.org>
4501 * win32-diffs: Updated.
4503 Handle `papersize' keyword properly in DESC.
4505 * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
4507 Updated all callers.
4508 * src/libs/libgroff/paper.cc: Add four more paper formats used by
4510 * src/include/paper.h: Updated.
4512 * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
4513 Other minor C syntax fixes.
4514 (papersize, paperlength, paperwidth): Renamed to `user_*'.
4515 (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
4517 (lbp_printer::lbp_printer): Pass three arguments.
4518 Set paper dimensions properly.
4519 (make_printer, main): Updated.
4520 (handle_unknown_desc_command): Fix error messages.
4521 (main): Handle papersize keyword in DESC properly.
4523 * src/devices/grolj4/lj4.cc (paper_size): Renamed to
4525 (lbp_printer::lbp_printer): Pass an argument.
4526 Set paper_size properly.
4527 (handle_unknown_desc_command): Removed.
4528 (make_printer, main): Updated.
4529 * src/devices/grolj4/grolj4.man: Minor documentation fix.
4531 * man/groff_font.man, NEWS: Updated.
4533 2002-07-07 Werner LEMBERG <wl@gnu.org>
4535 Integrated eqn2graph, contributed by Eric S. Raymond.
4537 * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
4539 * Makefile.in, NEWS: Updated.
4541 2002-06-04 Werner LEMBERG <wl@gnu.org>
4543 Changing the substring request to make it fit better with other
4544 string manipulation functions in other programming languages:
4545 Index 0 is now the first character in the string, and index -1
4546 indicates the last character. Since this request didn't work
4547 properly anyway in the last release, it doesn't harm too much to
4550 * src/roff/troff/input.cc (substring_macro): Use loops to get
4551 the real string length (ignoring COMPATIBLE_SAVE and
4552 COMPATIBLE_RESTORE) and offsets.
4553 Implement change described above.
4555 * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
4556 (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
4558 * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
4560 2002-06-03 Werner LEMBERG <wl@gnu.org>
4562 Make .chop work with .de1 and friends. COMPATIBLE_SAVE and
4563 COMPATIBLE_RESTORE are completely ignored.
4565 * src/roff/troff/input.cc (char_list::set, char_list::get): New
4567 (macro): `length' field renamed to `len'.
4568 Added new field `empty_macro' (1 if macro is empty), to be used
4569 instead of checking `len'.
4570 Updated all callers.
4571 (macro::empty): Updated.
4572 (macro::length, macro::set, macro::get): New functions.
4573 (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
4575 (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
4576 COMPATIBLE_RESTORE pairs.
4577 (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
4578 * src/roff/troff/request.h: Updated.
4580 * doc/groff.texinfo: Document .chop's behaviour better.
4582 2002-06-02 Werner LEMBERG <wl@gnu.org>
4584 * doc/pic.ms: Fix documentation for the addition of positions.
4586 * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
4588 2002-06-29 Werner LEMBERG <wl@gnu.org>
4590 Implementation of string arguments of the form \*[foo arg1 arg2 ...]
4592 * src/roff/troff/input.cc (have_string_arg): New global variable.
4593 (read_mode): New enumeration.
4594 (read_escape_name): Use it. Update all calls.
4595 (read_long_escape_name): Use it. Update all calls.
4596 Set have_string_arg if appropriate.
4597 (get_char_for_escape_name): Add parameter for handling space
4599 (interpolate_string_with_args, decode_string_args): New functions.
4600 (get_copy, token::next): Call it if necessary.
4601 (interpolate_string): Fix error message.
4603 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
4606 2002-06-24 Bernd Warken <bwarken@mayn.de>
4608 * man/groff_tmac.man: Updated and extended.
4610 2002-06-24 Werner LEMBERG <wl@gnu.org>
4612 * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
4614 2002-06-23 Werner LEMBERG <wl@gnu.org>
4616 * doc/pic.ms: Improve documentation of composite block objects.
4618 2002-06-22 Werner LEMBERG <wl@gnu.org>
4620 * src/roff/troff/input.cc (init_registers): Add three registers
4621 `seconds', `minutes', and `hours' to hold the current time.
4623 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
4626 2002-06-20 Werner LEMBERG <wl@gnu.org>
4628 Make \X accept both `\ ' and `\~', converting them to single space
4631 * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
4632 (token::unstretchable_space): New inline function.
4633 * src/roff/troff/input.cc (token::next, token::delimiter,
4634 token::description, token::add_to_node_list, token::process): Handle
4635 TOKEN_UNSTRETCHABLE_NODE.
4636 (encode_char): Handle tok.stretchable_space and
4637 tok.unstretchable_space.
4639 * NEWS, doc/groff.texinfo: Document it..
4641 2002-06-19 Werner LEMBERG <wl@gnu.org>
4643 * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
4645 * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
4646 keyword to enable/disable SGR output.
4647 (tty_printer::change_fill_color): New function.
4648 * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
4650 * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
4653 2002-06-18 Werner LEMBERG <wl@gnu.org>
4655 Add a `color' request and a `.color' register to control usage of
4658 * src/roff/troff/input.cc (disable_color_flag): Replaced with...
4659 (color_flag): This (which is the inverse).
4660 (activate_color): New function.
4661 (main, init_input_requests): Updated.
4662 * src/roff/troff/troff.h, src/roff/troff/node.cc
4663 (troff_output_file::fill_color, troff_output_file::glyph_color):
4666 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
4667 Document the changes.
4669 2002-06-17 Colin Watson <cjwatson@debian.org>
4671 Circumvent bug in autoconf 2.53 regarding top_builddir.
4673 * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
4674 * Makefile.in, doc/Makefile.in:
4675 s/@top_builddir@/@groff_top_builddir@/.
4676 * configure: Regenerated (with autoconf 2.53).
4678 2002-06-17 Werner LEMBERG <wl@gnu.org>
4680 * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
4681 `paperwidth' and `paperlength' for the `papersize' keyword.
4683 2002-06-16 P. Alejandro Lopez-Valencia <dradul@007mundo.com>
4685 * src/devices/grops/grops.man: Add info about Type 42 fonts.
4687 2002-06-15 Gaius Mulley <gaius@glam.ac.uk>
4689 * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
4690 html_printer::do_linelength, html_printer::do_pageoffset,
4691 html_printer::do_indentation, html_printer::do_tempindent,
4692 html_printer::do_break, html_printer::begin_page): Clear indented
4694 * tmac/html.tmac: Disable hyphenation.
4696 2002-06-15 Werner LEMBERG <wl@gnu.org>
4698 Don't produce HTML files if utility programs are missing.
4700 * Makefile.in (make_html, make_install_html): New variables.
4701 (MDEFINES): Updated.
4703 * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
4705 * configure.ac: Use it.
4706 * configure: Regenerated.
4708 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
4709 (HTMLEXAMPLESFILES): This new variable.
4710 (EXAMPLESIMAGEFILES): Renamed to...
4711 (HTMLEXAMPLEIMAGEFILES): This.
4712 (CLEANADD): Add HTMLEXAMPLEFILES.
4713 (all): Use `make_html'.
4715 (install_data): Use `make_install_html'.
4716 Move html stuff to...
4717 (install_html): This new target.
4718 (uninstall_sub): Updated.
4720 2002-06-14 Bernd Warken <bwarken@mayn.de>
4722 * src/roff/grog/Makefile.sub (grog): Renamed to...
4724 (grog): New rule to always install grog.sh as grog.
4726 2002-06-08 Bernd Warken <bwarken@mayn.de>
4728 * src/roff/grog/grog.pl: Fix typo.
4730 2002-06-07 Werner LEMBERG <wl@gnu.org>
4732 * doc/groff.texinfo: Add more info on .tr arguments.
4734 2002-06-05 Werner LEMBERG <wl@gnu.org>
4736 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
4738 * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
4739 * configure: Regenerated.
4741 2002-06-05 Ralph Corderoy <ralph@inputplus.demon.co.uk>
4743 * src/roff/troff/symbol.cc (table_sizes): Add more values.
4745 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
4747 2002-06-04 Werner LEMBERG <wl@gnu.org>
4749 * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
4750 is not initialized at the time we need it in case `--prefix' hasn't
4751 been set. Check for `ac_default_prefix' also.
4752 Test for `papersize' keyword also and generalize allowed whitespace.
4753 * configure: Regenerated.
4755 * font/devps/Makefile.sub (DESC): Use `papersize' instead of
4758 * src/libs/libgroff/Makefile.sub (version, revision): Replaced
4760 (src_version, src_revision): New variables to avoid overwriting
4761 from parent make process.
4762 (version.cc): Updated.
4764 * src/preproc/html/pre-html.cc: Include paper.h and font.h.
4765 (linebuf, linebufsize): New global variables.
4766 (sys_fatal): Use `fatal' to abort properly.
4767 (get_line): New function.
4768 (get_resolution): Use it.
4769 Improve error messages.
4770 (get_papersize): Check `papersize' also.
4772 Improve error messages.
4774 2002-06-03 Werner LEMBERG <wl@gnu.org>
4776 * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
4777 should be removed only if builddir is not srcdir.
4778 (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
4779 (clean): Depend on `mostlyclean'.
4780 (distclean): Depend on `clean'.
4781 (realclean, extraclean): Depend on `distclean'.
4782 (.y.cc, .y.o): Simplified. The output files are no longer written
4783 to srcdir but to builddir.
4784 * Makefile.in (MDEFINES): Add `version' and `revision'.
4785 (uninstall_dirs): Fix order of directories.
4786 * doc/Makefile.sub (version, revision): Removed.
4787 (CLEANADD): Removed grnexmpl.g, groff, groff-*.
4788 Added `HTMLDOCFILES'.
4789 (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
4790 * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
4791 src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
4794 * doc/texinfo.tex (\authortt): New macro.
4795 (\shortcontt): Define.
4796 (\titlepage): Set \tt to \authortt while defining \authorfont.
4797 (\appendixbox): New macro.
4798 (\chapmacro, \appendixentry): Use \appendixbox to get even
4799 indentation for letters.
4800 (\summarycontents): Set \tt.
4801 (\internalpagesize): Add two arguments for real paper width and
4802 height as needed by pdfTeX.
4803 (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
4805 (\tempdima, \tempdimb): New temporary dimensions.
4806 (\pagesizesyyy): Updated.
4808 2002-06-02 Werner LEMBERG <wl@gnu.org>
4810 Adding a new keyword `papersize' to the DESC file format (similar
4811 but not completely identical to grolbp's extension). grops now has
4812 a -p command line option to override `papersize'. Finally, grolbp
4813 has been adapted to the new syntax.
4815 * src/libs/libgroff/paper.cc, src/include/paper.h: New files. It
4816 defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
4818 * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
4819 (CCSRCS): Add `paper.cc'.
4821 * src/include/font.h (font): Add `papersize' element.
4822 * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
4823 (font::scan_papersize): New function.
4824 (font::load_desc): Use it for handling `papersize' keyword.
4825 * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
4827 * src/devices/grops/ps.cc: Include paper.h.
4828 (user_paper_length): New global variable.
4829 (ps_printer): Use paper length as initializer.
4830 (make_printer): Updated.
4831 (main): Handle new `-p' option.
4832 * src/devices/grops/grops.man: Updated.
4834 * src/devices/grolbp/lbp.cc: Include paper.h.
4835 s/papersizes/lbp_papersizes/.
4836 (set_papersize): Use new `papersizes' array.
4837 (handle_unknown_desc_command): Don't handle `papersize'.
4838 (main): Use `font::scan_papersize' for handling `-p' option.
4839 * src/devices/grolbp/grolbp.man: Updated.
4841 * man/groff_font.man: Document `papersize'.
4844 2002-05-30 Werner LEMBERG <wl@gnu.org>
4846 * src/devices/grops/TODO: Updated.
4847 * src/devices/grops/grops.man: More info on paper formats.
4848 * man/groff_font.man: Document `paperheight' and `paperwidth'.
4850 2002-05-29 Werner LEMBERG <wl@gnu.org>
4852 * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
4853 to list only if srcdir != currdir.
4854 (distfiles): New target.
4856 * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
4857 (NOMAKEDIRS): New variable.
4860 2002-05-26 Werner LEMBERG <wl@gnu.org>
4862 Add .output request, similar to \! at top-level.
4864 * src/roff/troff/input.cc (transparent): Remove unused declaration.
4865 (output_request): New function.
4866 (init_input_requests): Add it.
4868 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
4871 * Makefile.in (MDEFINES): Add INSTALL_INFO.
4872 (prepare_examples): Fix typo.
4873 * doc/groff.texinfo (@direntry): Fix it.
4875 2002-05-25 Werner LEMBERG <wl@gnu.org>
4877 Including the doc subdir into groff's Makefile system.
4879 * aclocal.m4 (GROFF_INSTALL_INFO): New function.
4880 * configure.ac: Use it.
4881 Generate `doc/Makefile'.
4882 * configure: Regenerated.
4884 * Makefile.in (infodir, INSTALL_INFO): New variables.
4885 (MDEFINES, uninstall_dirs): Updated.
4886 (OTHERDIRS): Add `doc'.
4887 * Makefile.comm (CLEANDIRADD): New variable.
4888 (mostlyclean): Use it.
4890 * doc/Makefile.sub, doc/Makefile.in: New files.
4891 * doc/Makefile: Removed.
4893 * NEWS, INSTALL: Updated.
4895 2002-05-24 Werner LEMBERG <wl@gnu.org>
4897 * doc/homepage.ms: Renamed to ...
4898 * doc/webpage.ms: This.
4901 2002-05-23 Werner LEMBERG <wl@gnu.org>
4903 Integrating the `mom' macro package, contributed by Peter Schaffter
4906 * contrib/mom/*: New subdirectory tree.
4907 * Makefile.in (docdir, exampledir, htmldocdir): New variables to
4908 be used for documentation files.
4909 (MDEFINES, uninstall_dirs): Use them.
4910 (OTHERDIRS): Add contrib/mom.
4911 * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
4913 * MANIFEST, NEWS: Updated.
4915 2002-05-22 Gaius Mulley <gaius@glam.ac.uk>
4917 Change syntax of \O: \O[0] suppresses output, \O[1] enables output
4918 if at outer level; at start-up we are at outer level.
4920 * src/roff/troff/input.cc (do_suppress): Implement it.
4923 Add option -p to show progress information.
4924 pre-grohtml will now render only one page at a time, reducing the
4925 size of needed disk resources enormously.
4927 * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
4928 (imagePageName): New global variable.
4929 (psPageName, show_progress, currentPageNo): New global variables.
4930 (html_system): Close saved stderr and stdout handles.
4931 (write_end_image): Accept a parameter to control \O escape.
4932 (write_start_image): Adapted to new \O meaning.
4933 (char_buffer::write_upto_newline): Updated.
4934 (createAllPages): Replaced with...
4935 (createPage): This new function to create a single page for images.
4936 It uses `psselect' from the psutils package.
4937 (removeAllPages): Removed.
4938 (createImage): Updated.
4939 Handle progress display.
4940 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
4941 (scanArguments): Add option -p.
4942 (makeTempFiles): Updated to create temp files for psPageName and
4944 (removeTempFiles): Removed.
4947 * src/devices/grohtml/post-html.cc (header_desc::write_headings,
4948 html_printer::write_header): Append `\0' to `buffer'.
4949 (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
4951 * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
4952 Handle `text_emitted'.
4953 (html_text::table_is_void): Slightly rewritten.
4954 (stop): New external symbol.
4955 (html_text::do_push) [DEBUGGING]: Use it and simplify.
4956 (html_text::shutdown): Call `dump_stack'.
4957 (html_text::do_space): Rewritten.
4958 * src/devices/grohtml/grohtml.man: Document -p and the need of
4961 * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
4963 Call \O[0] if `ps4html' is active.
4964 * tmac/s.tmac (@EQ, @EN): Handle html better.
4966 * tmac/html.tmac: Don't use black for background colour.
4968 * src/roff/troff/node.cc: Include `div.h'.
4969 (troff_output_file::really_print_line): Don't use `is_on'.
4970 (troff_output_file::word_marker, troff_output_file::flush_tbuf
4971 troff_output_file::check_charinfo,
4972 troff_output_file::put_char_width, troff_output_file::put_char,
4973 troff_output_file::determine_line_limits, troff_output_file::draw,
4974 real_output_file::begin_page, glyph_color_node::tprintf,
4975 fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
4977 (troff_output_file::really_on): Call `do_motion'.
4978 (suppress_node::tprint): Use `get_page_number' instead of `%'
4980 Call `reset_output_registers' conditionally on `is_on'.
4982 * doc/groff.texinfo: Document new syntax of \O.
4983 * NEWS, man/groff_diff.man: Updated.
4985 2002-05-22 Werner LEMBERG <wl@gnu.org>
4987 * MORE.STUFF: Add info about David Frey's deroff implementation.
4990 2002-05-16 Werner LEMBERG <wl@gnu.org>
4992 Pic's `with' attribute now accepts positions.
4994 * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
4995 ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
4997 (object_spec): Add rule for `WITH' and `position'.
4998 (relative_path): Give `corner' the precedence of `CHOP'.
4999 * src/preproc/pic/object.h (path): New members `pos' and
5001 * src/preproc/pic/object.cc: Updated initializers of `path'.
5002 (path::follow): Handle `is_position'.
5004 * doc/pic.ms: Completely updated grammar description.
5005 Many typographical improvements.
5007 2002-05-15 Werner LEMBERG <wl@gnu.org>
5009 * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
5010 code of x in range 0-127) also.
5011 * doc/groff.texinfo, man/groff_diff.man: Updated.
5013 Added keywords `north', `south', `east', and `west' for corners
5016 * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
5018 (yylex): Handle them.
5019 * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
5020 (corner): Handle them.
5022 2002-05-14 Werner LEMBERG <wl@gnu.org>
5024 * src/devices/grops/grops.man: Clarify handling of `download' file.
5026 2002-05-11 Werner LEMBERG <wl@gnu.org>
5028 Adding `warnscale' and `spreadwarn' requests, based on a patch from
5029 Jeffrey Friedl <jfriedl@yahoo.com>.
5031 * src/roff/troff/input.cc (spread_limit, warn_scale,
5032 warn_scaling_indicator): New global variables.
5033 (warnscale_request, spreadwarn_requests): New functions.
5034 (main): Initialize `warn_scale' and `warn_scaling_indicator'.
5035 (init_input_requests): Updated.
5036 (error_type): Add `OUTPUT_WARNING'.
5037 (do_error): Handle it.
5038 (output_warning): New warning function which shows output location.
5039 * src/roff/troff/env.h (spread_limit): New external variable.
5040 * src/roff/troff/env.cc (environment::choose_breakpoint): Use
5042 (distribute_space): Emit warning if added space is larger than
5044 (environment::possibly_break_line): Emit warning if a line can't
5045 be adjusted on both sides.
5047 * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
5049 2002-05-08 Werner LEMBERG <wl@gnu.org>
5051 * src/roff/troff/node.cc (special_node::special_node): Use
5052 env_definite_font(curenv) instead of curenv->get_font(). Otherwise
5053 \X''\% crashes, for example.
5055 * doc/groff.texinfo: Document \! and \? used at top-level.
5057 2002-05-06 Werner LEMBERG <wl@gnu.org>
5059 * src/preproc/pic/pic.man: Fix some keyword syntax.
5060 Other minor typographical fixes.
5062 * src/roff/groff/groff.man: Fix typos.
5064 2002-05-04 Werner LEMBERG <wl@gnu.org>
5066 * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
5067 (ShortOpt[]): This to avoid problems with refer.
5069 * doc/pic.ms: Fix typo.
5070 Fix pic grammar description.
5072 * tmac/an-old.tmac (ne): Use de1, not de.
5074 2002-05-03 Werner LEMBERG <wl@gnu.org>
5076 * doc/groff.texinfo: Finished separation of glyphs and characters.
5077 Don't use the string `Appendix' for appendix headers (both in
5078 the text and the table of contents).
5079 * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
5082 Use registers LL and LT (similar to -ms) for controlling the
5083 length of title and line, respectively, in the -man and -mdoc
5086 * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
5087 (doc-setup-page-layout): Use \n[LL] and \n[LT].
5088 * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
5090 (an-header, an-p-footer): Use \n[LT].
5091 * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
5092 doc/groff.texinfo: Document it.
5094 2002-05-02 Werner LEMBERG <wl@gnu.org>
5096 * doc/fdl.texi: New file.
5097 * doc/groff.texinfo: Include it.
5098 Define and use @copying.
5099 Starting with separating glyph, symbol, and character.
5101 2002-04-27 Werner LEMBERG <wl@gnu.org>
5103 * Makefile.in (EXEEXT): Set it.
5104 * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
5107 * src/include/nonposix.h: Define GS_NAME.
5108 * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
5110 Some preliminary changes for EMX support under OS/2.
5112 * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
5113 __EMX__ similar to __MSDOS__.
5114 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
5116 2002-04-25 Werner LEMBERG <wl@gnu.org>
5118 * doc/groff.texinfo: Integrated groff_out.man.
5121 2002-04-23 Werner LEMBERG <wl@gnu.org>
5123 * man/groff_out.man: Minor fixes.
5125 2002-04-23 Werner LEMBERG <wl@gnu.org>
5127 * doc/groff.texinfo: Moving @cindex entries after @Def* to get
5128 correct page references.
5129 Fixed many index entries.
5131 2002-04-23 Bernd Warken <bwarken@mayn.de>
5133 * man/roff.man: Enlarged.
5135 2002-04-22 Werner LEMBERG <wl@gnu.org>
5137 * doc/groff.texinfo: More examples, other fixes.
5139 2002-04-20 Werner LEMBERG <wl@gnu.org>
5141 * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
5142 will now form a chain, e.g.
5151 This is for compatibility with plan 9's troff.
5153 * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
5157 * doc/groff.texinfo: Add documentation of remaining requests and
5160 2002-04-19 Werner LEMBERG <wl@gnu.org>
5162 * doc/groff.texinfo: Add documentation of remaining escapes.
5164 * font/devdvi/generate/tc.map: Remove entry for `sr'.
5165 * font/devdvi/*TC: Regenerated.
5167 2002-04-18 Werner LEMBERG <wl@gnu.org>
5169 * src/roff/troff/input.cc (token::next): Make \H behave consistently
5170 if not in compatibility mode, i.e., increment relative to the
5172 * doc/groff.texinfo: Updated accordingly.
5174 2002-04-17 Werner LEMBERG <wl@gnu.org>
5176 * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
5178 2002-04-16 Bernd Warken <bwarken@mayn.de>
5180 * src/roff/groff/groff.man: Improve documentation of -P option.
5183 2002-04-15 Werner LEMBERG <wl@gnu.org>
5185 Add new escape \F to switch font family.
5187 * src/roff/troff/input.cc (token::next): Handle \F.
5188 * src/roff/troff/env.cc (environment::set_family): Handle
5190 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5193 2002-04-14 Werner LEMBERG <wl@gnu.org>
5195 * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
5198 2002-04-13 Werner LEMBERG <wl@gnu.org>
5200 Implement \f[] as an alternative to \fP. Change \mP and \MP to
5201 \m[] and \M[], respectively.
5203 * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
5204 (symbol::symbol): Handle NULL string and empty string differently.
5205 * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
5206 * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
5207 Add optional parameter.
5208 Updated calling functions.
5209 (get_copy, do_glyph_color, do_fill_color, token::next): Use
5211 * src/roff/troff/env.cc (environment::set_font): Ditto.
5213 * src/preproc/pic/troff.cc (troff_output::set_fill,
5214 troff_output::reset_color: Updated.
5216 * tmac/www.tmac: Updated.
5218 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
5219 doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
5222 * tmac/Xps.tmac: Remove some redundant code.
5224 * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
5225 tmac/dvi.tmac, man/roff.man, man/groff_out.man, man/groff.man,
5226 man/groff_diff.man, src/roff/groff/groff.man: Replace \f[P] with
5229 2002-04-13 Bernd Warken <bwarken@mayn.de>
5231 * src/include/printer.h, src/libs/libdriver/printer.cc
5232 (printer::change_fill_color): New member function.
5233 * src/libs/libdriver/input.cc (parse_D_command): Use it.
5235 2002-04-12 Werner LEMBERG <wl@gnu.org>
5237 * doc/groff.texinfo: Completed pass on gtroff reference.
5239 2002-04-11 Werner LEMBERG <wl@gnu.org>
5241 * doc/groff.texinfo: More fixes.
5243 2002-04-11 Bernd Warken <bwarken@mayn.de>
5245 * src/include/color.h: Decorate with `const'.
5248 * src/libs/libgroff.color.cc: Decorate with `const'.
5250 (color::color): Initialize members.
5251 * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
5252 command according to the documentation.
5254 * man/groff_out.man: Updated.
5257 2002-04-11 Gaius Mulley <gaius@glam.ac.uk>
5259 * src/preproc/html/pre-html.cc (write_start_image): Remove
5261 * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
5263 * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
5264 \C'hy' caused an assertion failure.
5266 * src/roff/troff/env.cc (environment::environment): Initialize
5268 (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
5270 2002-04-10 Werner LEMBERG <wl@gnu.org>
5272 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
5273 Document pvs request and .pvs register.
5275 2002-04-09 Werner LEMBERG <wl@gnu.org>
5277 * doc/groff.texinfo: Improve and fix documentation of diversions
5280 2002-04-08 Werner LEMBERG <wl@gnu.org>
5282 * doc/groff.texinfo: Fix documentation of drawing functions.
5285 2002-04-07 Werner LEMBERG <wl@gnu.org>
5287 * doc/groff.texinfo: Better documentation of double quotes as
5291 2002-04-06 Werner LEMBERG <wl@gnu.org>
5293 * man/groff_font.man: Document names of special characters better.
5294 * doc/groff.texinfo: Minor improvements.
5296 * tmac/lbp.tmac: Load latin1.tmac.
5297 * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
5299 * font/devX*/*: Regenerated (all chars > 0x80 removed).
5301 2002-04-05 Werner LEMBERG <wl@gnu.org>
5303 * tmac/tty.tmac: Don't use shc request.
5304 * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
5307 * man/groff_diff.man: Minor fixes.
5309 * font/devlbp/*: Remove all `charXXX' entities.
5311 * src/libs/libgroff/font.cc (font::~font): Deallocate
5312 `special_device_coding'.
5313 (font::load): Use `new' for allocating `special_device_coding'.
5314 * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
5315 Removed unused member.
5317 2002-04-05 Werner LEMBERG <wl@gnu.org>
5319 * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
5320 (resource_manager::do_begin_binary,
5321 resource_manager::do_begin_data): Use it.
5323 * doc/texinfo.tex: Updated to version 4.2.
5325 * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
5326 (token::zero_width_break): New inline function.
5327 * src/roff/troff/input.cc (token::next): Use it.
5328 (token::description): Updated.
5329 (encode_char): Ignore `\%', `\&', `\)', and `\:'.
5330 (token::add_to_node_list, token::process): Use it.
5331 * NEWS, doc/groff.texinfo: Updated.
5333 * src/preproc/eqn/over.cc (over_box::output): Fix typo.
5334 * tmac/tty.tmac: Add missing backslash.
5336 2002-04-04 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
5338 * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
5339 `.ps' register instead of `.s' to handle fractional point sizes.
5340 * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
5341 limit_box::output): Ditto.
5342 * src/preproc/eqn/other.cc (size_box::compute_metrics,
5343 size_box::output): Ditto.
5344 * src/preproc/eqn/over.cc (over_box::compute_metrics,
5345 over_box::output): Ditto.
5346 * src/preproc/eqn/script.cc (script_box::compute_metrics,
5347 script_box::output): Ditto.
5348 * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
5349 sqrt_box::output): Ditto.
5351 2002-04-03 Michael Selway <mas@ssl.co.uk>
5353 * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
5356 2002-04-03 Werner LEMBERG <wl@gnu.org>
5358 * doc/homepage.ms: Reduce title size.
5359 * doc/groff.texinfo: Fix documentation of .t register.
5360 Fix handling of colon.
5363 * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
5364 only if page length is positive to avoid a loop.
5366 * tmac/an-old.tmac (ne): Increase page length to avoid problems with
5369 2002-04-02 P. Alejandro Lopez-Valencia <dradul@yahoo.com>
5371 * src/include/nonposix.h, src/roff/groff/pipeline.c:
5372 s/__CYGWIN32__/__CYGWIN__/.
5374 2002-03-28 Gaius Mulley <gaius@glam.ac.uk>
5376 * doc/gnu.xpm: New image contributed by Emily Mulley.
5377 * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
5378 (homepage.html): Be dependent on gnu.eps.
5379 * doc/homepage.ms: Updated to new image.
5381 * src/devices/grohtml/post-html.cc (html_printer): New member
5383 (html_printer::flush_sbuf, html_printer::set_char): Set it.
5384 (html_printer::sbuf_continuation): Use it.
5386 2002-03-28 Werner LEMBERG <wl@gnu.org>
5388 * src/libs/libgroff/getopt.c: Updated to latest version.
5390 * tmac/README: More on hyphen.tex license.
5392 2002-03-26 Larry Kollar <kollar@alltel.net>
5394 * doc/groff.texinfo: Add documentation of most missing requests.
5396 2002-03-25 Werner LEMBERG <wl@gnu.org>
5398 Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
5399 of `+-', `mu', and `di', respectively.
5401 * font/devascii/R.proto, font/devutf8/R.proto,
5402 font/devlatin1/R.proto, font/devhtml/R.proto,
5403 font/devcp1047/R.proto, font/devlpb/*: Add them.
5404 * font/devps/generate/textmap: Ditto.
5405 * font/devps/*: Regenerated.
5406 * font/devlj4/generate/text.map: Add them.
5407 * font/devlj4/*: Regenerated.
5408 * font/devdvi/generate/tc.map: Use them.
5409 * font/devdvi/generate/texsy.map: Add them.
5410 * font/devdvi/*: Regenerated.
5411 * font/devX*/*: Regenerated.
5413 * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
5414 tmac/tty-char.tmac: Updated.
5416 * NEWS, man/groff_char.man: Updated.
5418 2002-03-24 Werner LEMBERG <wl@gnu.org>
5420 * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
5421 tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
5422 * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
5423 we use `.fchar' in dvi.tmac.
5424 * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
5425 * tmac/Xps.tmac: Simplify some char definitions.
5426 Add definition for \[f/].
5427 * man/groff_char.man: Updated for new X.tmac.
5429 * tmac/README: New file.
5431 2002-03-23 Phil Lobbes <phil@perkpartners.com>
5433 * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
5434 internal .y.o rule took precendence over the .y.cc rule, compiling
5435 the yacc files with gcc instead of g++.
5437 2002-03-23 Werner LEMBERG <wl@gnu.org>
5439 * tmac/dvi.tmac: Add replacement font for `CB'.
5441 * tmac/doc.tmac: s/request/macro/ in messages.
5442 (doc-generic-macro): Improve error message.
5443 * tmac/groff_mdoc.man: Minor improvements.
5445 2002-03-22 Werner LEMBERG <wl@gnu.org>
5447 * doc/groff.texinfo: Document possible conflict between `tr' and
5450 2002-03-21 Werner LEMBERG <wl@gnu.org>
5452 Improve handling of hyphenation patterns. It is now possible to
5453 use most of TeX's pattern files unmodified. To make the process
5454 more flexible, a new request `hpfcode' has been added which
5455 provides a character code mapping for the `hpf' request. See
5456 comment before hpf_getc() for more details.
5458 * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
5460 (read_patterns_file): Additional parameter for exception dictionary.
5461 Extended to recognize \pattern, \hyphenation, and \endinput.
5462 (do_hyphenation_patterns_file): Updated.
5463 * src/roff/troff/env.h (hpf_code_table): New extern.
5465 * src/roff/troff/input.cc (hpf_code_table): New array.
5466 (init_hpf_code_table, hyphenation_patterns_file_code): New
5468 (hyphenation_code): Handle translation from `trin' correctly.
5469 (main, init_input_requests): Updated.
5470 (charinfo::set_translation): Handle hyphenation code also.
5472 * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
5475 * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
5476 char' is used for offsets in hyphenation exceptions.
5478 * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
5480 * NEWS, man/groff_diff.man, man/groff.man: Document it.
5482 2002-03-20 Larry Kollar <kollar@alltel.net>
5484 * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
5487 2002-03-18 Werner LEMBERG <wl@gnu.org>
5489 * tmac/html.tmac: Fix serious typo.
5491 2002-03-17 Larry Kollar <kollar@alltel.net>
5493 * doc/groff.texinfo: Add documentation for `writec' request.
5495 2002-03-17 Werner LEMBERG <wl@gnu.org>
5497 Added request `hpfa' to append hyphenation patterns.
5499 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
5501 (hyphenation_patterns_file): Renamed to...
5502 (do_hyphenation_patterns_file): This.
5503 (hyphenation_patterns_file, hyphenation_patterns_file_append): New
5505 (init_hyphen_requests): Updated.
5506 * NEWS, man/groff.man, man/groff_diff.man: Document it.
5508 2002-03-16 Werner LEMBERG <wl@gnu.org>
5510 Added request `writec' in analogy to `tmc'.
5512 * src/roff/troff/input.cc (write_request): Renamed to...
5513 (do_write_request): This.
5514 Added one parameter.
5515 (write_request, write_request_continue): New functions.
5516 (init_input_requests): Updated.
5517 * NEWS, man/groff.man, man/groff_diff.man: Document it.
5519 * font/devdvi/DESC.in (sizes): Allow all sizes in the range
5521 * NEWS: Document it.
5523 2002-03-15 Werner LEMBERG <wl@gnu.org>
5525 * man/groff.man: Add writem request.
5527 Add request `trin' (translate input) to make `.asciify' work
5528 correctly. This is necessary since `charXXX' entity names are no
5529 longer hardcoded in font definition files.
5531 * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
5532 `translate_input' members.
5533 (charinfo::set_asciify_code, charinfo::get_asciify_code,
5534 charinfo::set_translation_input): New methods.
5535 (charinfo::set_translation): Add third argument.
5536 * src/roff/troff/input.cc (charinfo:set_translation): Set
5538 (do_translate): Add second argument.
5539 (translate_input): New function.
5540 (init_input_requests): Updated.
5541 * src/roff/troff/node.cc (glyph_node::asciify,
5542 composite_node::asciify): Use `get_asciify_code'.
5544 * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
5546 * NEWS, man/groff.man, man/groff_diff.man: Updated.
5548 2002-03-14 Larry Kollar <kollar@alltel.net>
5550 * doc/groff.texinfo: Improve documentation of .RS and .RE.
5552 2002-03-14 Werner LEMBERG <wl@gnu.org>
5554 Add a new request `sizes' similar to the `sizes' command in DESC
5557 * src/roff/troff/env.cc (override_sizes): New function.
5558 (init_env_requests): Use it.
5559 * src/roff/troff/token.h: Export `read_string'.
5560 * NEWS, man/groff_diff.man, man/groff.man: Document it.
5562 2002-03-12 Werner LEMBERG <wl@gnu.org>
5564 * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
5566 2002-03-10 Werner LEMBERG <wl@gnu.org>
5568 * tmac/pspic.tmac: Add support for -Tdvi.
5569 * tmac/dvi.tmac: Include pspic.tmac.
5570 * src/devices/grodvi/grodvi.man: Document it.
5573 * font/devlj4/generate/Makefile: Fix URL of metric files.
5575 2002-03-09 Werner LEMBERG <wl@gnu.org>
5577 * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
5579 2002-03-09 Larry Kollar <kollar@alltel.net>
5581 * tmac/groff_ms.man: Add documentation for RS and RE macros.
5583 2002-03-08 Werner LEMBERG <wl@gnu.org>
5585 * doc/groff.texinfo: Fixes for texinfo 4.1.
5587 2002-03-07 Werner LEMBERG <wl@gnu.org>
5589 * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
5591 Handle CYGWIN properly.
5593 2002-03-07 Paco Andrés Verdú <pandres@dragonet.es>
5595 * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
5596 * tmac/lbp.tmac: Add some font translations.
5598 2002-03-02 Werner LEMBERG <wl@gnu.org>
5600 * font/devcp1047/R.proto, font/devlatin1/R.proto,
5601 font/devhtml/R.proto: Remove `charXXX' entries.
5602 * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
5605 * font/devlj4/generate/text.map: Remove `charXXX' entries.
5606 * font/devlj4/*: Regenerated all font definition files.
5607 * tmac/lj4.tmac: Load latin1.tmac.
5609 * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
5610 from 2000-06-17: LJ4 metric files are *not* text files.
5612 * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
5613 register to test for EBCDIC.
5615 2002-03-01 Werner LEMBERG <wl@gnu.org>
5617 * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
5618 files (as grops already does).
5619 * src/utils/afmtodit/afmtodit.man: Document comment lines in map
5621 * src/devices/grops/grops.man: Document comment lines in encoding
5624 * tmac/cp1047.tmac: New file.
5625 * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
5626 * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
5627 * tmac/Makefile.sub (NORMALFILES): Updated.
5629 * tmac/ec.tmac: Don't load latin1.tmac again.
5631 * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
5632 font/devps/generate/dingbats.map,
5633 font/devps/generate/dingbats.rmap, font/devps/text.enc,
5634 font/devps/generate/Makefile (symbolmap): Add header comment.
5635 * font/devps/generate/textmap: Ditto.
5636 Remove `charXXX' entries.
5637 * font/devps/symbolmap: Regenerated.
5638 * font/devps/*: Regenerated all font definition files.
5640 2002-02-28 Werner LEMBERG <wl@gnu.org>
5642 Add color support to grodvi (for drawing colors are currently
5643 translated to gray values).
5645 * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
5646 (dvi_printer): Add `cur_color' member.
5647 (dvi_printer::set_color): New function.
5648 (draw_dvi_printer): Remove `fill'.
5649 (draw_dvi_printer::fill_next): Pass environment as parameter.
5650 Update code for new color support translated to gray.
5651 (dvi_printer::set_char): Updated.
5652 (dvi_printer::begin_page, dvi_printer::end_page): Handle color
5653 changes crossing the page border.
5654 (dvi_printer::draw): Updated.
5655 Remove cases `f' and `F'.
5656 * tmac/dvi.tmac: Add color definitions.
5657 * NEWS, src/devices/grodvi/grodvi.man: Updated.
5659 * tmac/an-old.tmac (R): Make this a macro to emit a warning if
5662 * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
5663 versions of autoconf.
5664 * configure: Updated.
5666 * doc/homepage.ms: Use `.blm'.
5667 * tmac/www.tmac (www-depth): New auxiliary variable.
5668 (www-pop-level): Don't issue HTML tag.
5669 (ULS, ULE, LI): Use absolute indentation.
5671 * src/devices/grops/ps.cc (ps_printer::begin_page,
5672 ps_printer::end_page): Switch forth and back to default color while
5673 starting a new page.
5675 2002-02-27 Werner LEMBERG <wl@gnu.org>
5677 Add EC and TC fonts to devdvi.
5679 * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
5680 * font/devdvi/generate/cork.map: Renamed to...
5681 * font/devdvi/generate/ec.map: This.
5682 Remove entry for `aq'.
5683 * font/devdvi/generate/tc.map: New file.
5684 * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
5687 * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
5688 * font/devdvi/Makefile.sub (DEVFILES): Updated.
5689 * tmac/ec.tmac: New file.
5690 * tmac/Makefile.sub (NORMALFILES): Updated.
5691 * NEWS, src/devices/grodvi/grodvi.man: Updated.
5692 * man/groff_char.man: Check `ECFONTS' register.
5694 * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
5696 2002-02-26 Werner LEMBERG <wl@gnu.org>
5698 * font/devdvi/generate/*.map: Remove all `charXXX' entries.
5699 * font/devdvi/generate/cork.map: Add 'y and 'Y.
5700 * font/devdvi/*: Updated.
5701 * tmac/dvi.tmac: Formatting.
5703 Add font `HBI' for the dvi output.
5704 Add support for font families `T' and `H'.
5706 * font/devdvi/HBI: New file.
5707 * font/devdvi/B: Renamed to ...
5708 * font/devdvi/TB: This.
5709 * font/devdvi/BI: Renamed to ...
5710 * font/devdvi/TBI: This.
5711 * font/devdvi/I: Renamed to ...
5712 * font/devdvi/TI: This.
5713 * font/devdvi/R: Renamed to ...
5714 * font/devdvi/TR: This.
5715 * font/devdvi/H: Renamed to ...
5716 * font/devdvi/HR: This.
5717 * font/devdvi/Makefile.sub (DEVFILES): Updated.
5718 * font/devdvi/generate/Makefile (HBI): New rule.
5720 (R, I, B, BI, H): Renamed to ...
5721 (TR, TI, TB, TBI, HR): This, respectively.
5723 * NEWS, src/devices/grodvi/grodvi.man: Updated.
5724 * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
5725 Add `styles' and `family' keywords.
5726 * tmac/dvi.tmac: Alias `H' to `HR'.
5727 Add some fspecial requests for italic fonts.
5728 Add TR and TI as special.
5729 Add support for `_' with font CWI.
5731 * src/roff/troff/number.cc (parse_expr): Add missing `break' for
5732 operator `:'. Until now, the expression `0:1' would return 2
5735 2002-02-25 Werner LEMBERG <wl@gnu.org>
5737 * man/groff_char.man: Added some missing PS glyph names (from the
5739 * font/devps/generate/textmap, font/devps/symbolmap: Add
5742 * doc/groff.texinfo: Minor additions and fixes.
5743 * man/groff_diff.man: Remove documentation of fp request. This
5744 is already covered in the original troff manual.
5745 Updated to be consistent with other doc files.
5748 2002-02-24 Werner LEMBERG <wl@gnu.org>
5750 * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
5752 Define new variable OTHERDEVDIRS (containing `font/devlj4
5753 font/devlbp' if not EBCDIC).
5754 * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
5755 (OTHERDEVDIRS): New variable.
5756 (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
5757 * configure: Regenerated.
5759 * NEWS, src/devices/grotty/grotty.man: Updated.
5761 2002-02-23 Werner LEMBERG <wl@gnu.org>
5763 * src/roff/troff/input.cc (do_overstrike, do_bracket,
5764 get_line_arg): Honour input level.
5766 Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
5768 * font/*/*: Implement it in all font files.
5769 * font/devps/generate/textmap, font/devps/generate/symbolchars,
5770 * font/devps/symbolmap: Updated.
5771 * font/devlj4/generate/text.map: Updated.
5772 * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
5773 * font/devdvi/generate/texmi.map: Updated.
5775 * font/devutf8/R.proto: Remove all `charXXX' entries.
5776 * font/devutf8/NOTES: Updated.
5778 * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
5781 * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
5783 * NEWS, man/groff_char.man: Updated.
5785 2002-02-21 Phil Lobbes <phil@perkpartners.com>
5787 * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
5789 2002-02-20 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5791 * src/roff/grog/grog.pl: Fix computation of $refer.
5793 2002-02-19 Werner LEMBERG <wl@gnu.org>
5795 * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
5796 `snprintf' and `vsnprintf'.
5798 * src/include/htmlindicate.h: Renamed to...
5799 * src/include/htmlhint.h: This.
5800 * src/include/Makefile.sub: Updated.
5801 * src/preproc/eqn/main.cc: Updated.
5803 2002-02-18 Werner LEMBERG <wl@gnu.org>
5805 * man/roff.man, man/groff_out.man, man/groff.man,
5806 man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
5807 src/roff/troff/troff.man: Updated to latest changes in www.tmac.
5809 * win32-diffs: Updated.
5811 2002-02-17 Werner LEMBERG <wl@gnu.org>
5813 * doc/Makefile (clean): Add *.eps.
5814 (MEMACROS): Removed.
5815 (TFLAG): New variable.
5818 (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
5820 (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
5822 * tmac/www.tmac: Use dummy diversion while resetting and disabling
5824 * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
5826 * src/roff/troff/troff.man: Fix order of parameter description.
5830 2002-02-16 Gaius Mulley <gaius@glam.ac.uk>
5832 Simplify image handling for grohtml.
5835 * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
5837 (html_text::dump_stack): Don't emit newline while debugging.
5838 (html_text::do_push) [DEBUGGING]: Print more info.
5839 (html_text::check_emit_text): Fix handling of <p>.
5840 * src/devices/grohtml/html.h: Updated.
5841 * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
5842 replacing `fputc', `fputs', `putc'. If DEBUGGING is defined, they
5843 send its data to stderr also.
5845 (simple_output::space_or_newline) [DEBUGGING]: Removed.
5846 * src/devices/grohtml/post-html.cc (html_printer::do_links,
5847 html_printer::html_printer): Remove `DEBUGGING' conditionals.
5849 * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
5851 * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
5852 is_inline_image): Removed.
5853 (html_begin_suppress, html_end_suppress): Don't take a parameter.
5854 (graphic_start, graphic_end): Removed.
5855 * src/include/htmlindicate.h: Updated.
5856 * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
5857 (macroset_template): New global variable.
5858 (makeFileName): Use `macroset_template'.
5859 (write_end_image): Don't take a parameter.
5861 (write_start_image: Don't emit newline.
5862 (char_buffer::write_upto_newline): Updated.
5863 (char_buffer::skip_to_newline): Renamed to ...
5864 (char_buffer::skip_until_newline): This.
5866 (char_buffer::write_file_troff, char_buffer::write_file_html):
5868 (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
5869 (removeAllPages): Remove `DEBUGGING' conditionals.
5870 (addRegDef, dump_args): New functions.
5871 (char_buffer::do_html, char_buffer::do_image): Handle
5872 `www-image-template' command line variable.
5873 Add more debugging code.
5874 (addps4html): Removed.
5875 (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
5877 * src/preproc/eqn/main.cc: Include `ctype.h'.
5878 (suppress_html): Removed.
5880 (inline_equation): Use `html_begin_suppress' and
5881 `html_end_suppress'.
5882 * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
5883 (troff_output::start_picture, troff_output::finish_picture):
5885 * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
5886 (process_input_file): Updated.
5888 * src/roff/troff/div.cc (page_number): Set page number only if the
5889 `ps4html' register isn't defined.
5890 * src/roff/troff/input.cc (image_no): New external variable.
5891 (do_suppress): Use it.
5892 * src/roff/troff/node.h (suppress_node::image_id): New member.
5893 * src/roff/troff/node.cc (image_no): Remove `static' keyword.
5894 (suppress_node::suppress_node): Initialize `image_id' member.
5895 (suppress_node::same): Handle `image_id' also.
5896 (suppress_node::copy): Updated.
5897 (last_image_id): New global variable.
5898 (suppress_node::tprint): Use it.
5900 * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
5902 * tmac/pspic.mac (PSPIC): Fix html support.
5903 * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
5904 * tmac/www.tmac (www-image-template): Set up.
5905 (HTMLINDEX): Renamed to...
5907 (BODYCOLOR): Renamed to...
5909 (BACKGROUND): Renamed to...
5911 (URL): Change order of parameters for consistency.
5912 (MAILTO): Renamed to...
5914 (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
5915 (IMG, PIMG, MPIMG): This.
5916 (HTML-H-BEGIN, HTML-H-END): Renamed to...
5918 (LINKS): Renamed to...
5920 (LINE): Renamed to...
5922 (NO-AUTO-RULE): Renamed to...
5924 (HTML-TL): Renamed to...
5926 (UL-BEGIN, UL-END): Renamed to...
5928 (DROPCAP): Renamed to...
5930 (TS, TE, EQ, EN): Provide default definitions.
5931 (www-make-unique-name): Updated.
5932 (HTML-IMAGE-INLINE): Fix typo.
5933 * tmac/groff_www.man: Updated.
5935 * doc/Makefile (homepage.html): Add option -r to grohtml.
5936 Use shortened image name.
5937 * doc/groff.texinfo: Updated info on grohtml strings and macros.
5938 * doc/homepage.ms: Updated and extended.
5940 2002-02-14 Werner LEMBERG <wl@gnu.org>
5942 Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
5944 * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
5945 SGR_BACK_DEFAULT_COLOR): Replaced with ...
5946 (tty_printer::put_color): Use it.
5947 (ttr_printer::end_page): Simplify.
5949 2002-02-13 Werner LEMBERG <wl@gnu.org>
5951 * tmac/groff_tmac.man: Moved to...
5952 * man/groff_tmac.man: This place.
5953 * tmac/Makefile.sub, man/Makefile.sub: Updated.
5955 2002-02-12 Werner LEMBERG <wl@gnu.org>
5957 * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
5958 $(COMPILE.c) to not include groff's assert.h.
5960 * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
5962 * NEWS, src/drivers/grotty/grotty.man: Document it.
5964 2002-02-11 Werner LEMBERG <wl@gnu.org>
5966 * src/libs/snprintf/snprintf.c: Updated to latest version
5969 * src/roff/grog/grog.pl (process): Fix handling of `.['. We now
5970 test whether there is `.]' also.
5971 Don't check for spaces after `.['.
5972 * src/roff/grog/grog.sh: Do the same.
5974 2002-02-10 Werner LEMBERG <wl@gnu.org>
5978 * src/libs/libgroff/illegal.cc: Renamed to ...
5979 * src/libs/libgroff/invalid.cc: This.
5980 (illegal_char_table): Renamed to ...
5981 (invalid_char_table): This.
5982 * src/libs/libgroff/Makefile.sub: Updated.
5983 * win32-diffs: Updated.
5985 * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
5986 src/libs/libdriver/input.cc (fatal_command, parse_color_command,
5987 parse_x_command), src/libs/libgroff/font.cc (text_file::next,
5988 font::load), src/preproc/eqn/main.cc (read_line, main),
5989 src/preproc/eqn/lex.cc (file_input::read_line),
5990 src/preproc/pic/lex.cc (file_input::read_line,
5991 simple_file_input::get, simple_file_input::peek),
5992 src/preproc/pic/main.cc (top_input::get, top_input::peek),
5993 src/preproc/pic/pic.man, src/preproc/refer/main.cc
5994 (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
5995 do_bib), src/preproc/tbl/main.cc (table_input::get),
5996 src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
5997 src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
5998 do_zero_width, read_request, encode_char, ps_get_line,
5999 transparent_file, get_char_for_escape_name, transparent_translate,
6000 asciify, input_char_description, read_string, set_string),
6001 src/roff/troff/env.cc (environment::add_html_tag),
6002 src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
6004 * src/include/lib.h: Updated.
6006 * src/preproc/eqn/eqn.cc: Removed.
6010 * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
6012 2002-02-09 Werner LEMBERG <wl@gnu.org>
6014 * doc/gnu.xpm: New image.
6015 * doc/Makefile (DOCS): Add homepage.ps.
6016 Add rules for converting xpm->png and xpm->eps.
6017 Use `gnu.{xpm,eps}' as image names.
6018 * doc/homepage.ms: Updated.
6020 2002-02-09 Gaius Mulley <gaius@glam.ac.uk>
6022 * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
6023 (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
6024 Remove calls to `B1' and `B2'
6025 (PNG-IMAGE): New macro for inclusion of images in PNG format.
6026 (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
6027 auxiliary variables for MARGIN-PNG-IMAGE.
6028 (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
6029 auxiliary macros for MARGIN-PNG-IMAGE.
6030 (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
6032 (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
6033 (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
6034 (DROPCAP): New macro to produce dropcap characters.
6035 (www-do-image): Renamed back to...
6036 (HTML-DO-IMAGE): This.
6037 Updated all callers.
6039 * doc/Makefile (gnubw.eps): Updated.
6040 * doc/homepage.ms: Updated.
6042 2002-02-08 Werner LEMBERG <wl@gnu.org>
6044 * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
6045 Added `linethick' to table in section `Style Variables'.
6047 2002-02-08 Gaius Mulley <gaius@glam.ac.uk>
6049 * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
6051 2002-02-07 Werner LEMBERG <wl@gnu.org>
6053 Adding options -C (compatibility mode) and -c (grotty's old output
6056 * src/roff/nroff/nroff.sh: Implement it.
6058 * NEWS, src/roff/nroff/nroff.man: Updated.
6060 * PROBLEMS: Document bison 1.32 bug.
6062 Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
6064 * src/roff/troff/node.cc (make_tfont): Define it earlier.
6065 * src/roff/troff/div.h: Add prototype for `end_diversions'.
6066 * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
6067 * src/roff/troff/env.h: Add prototype for `title'.
6069 Adding EBCDIC support to grotty.
6071 * src/devices/grotty/tty.cc (CSI): New macro.
6072 (SGR_*, tty_printer::put_color): Use it.
6074 2002-02-06 Werner LEMBERG <wl@gnu.org>
6076 Implementing color support in grotty. The new switch -c activates
6077 the old drawing scheme, disabling color at the same time. The new
6078 switch `-i' selects italic instead of underlining (SGR only).
6080 * src/devices/grotty/tty.cc (putstring): New define instead of
6081 `fputs'. Updated all callers.
6082 (old_drawing_scheme): New global variable.
6083 (COLOR_CHANGE): New enum value.
6084 (SGR_*): New defines containing color handling escape sequences.
6085 (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
6086 (glyph): New members `back_color_idx' and `fore_color_idx'.
6087 (glyph::order): Add COLOR_CHANGE.
6088 (tty_printer): New members `cur_fore_idx', `curr_back_idx',
6089 `is_underline', `is_bold', `cu_flag', `tty_colors'.
6090 New methods `make_underline', `make_bold', `color_to_idx',
6091 `change_color', `put_color'.
6092 (cu_flag): Moved into `tty_printer' class.
6093 (tty_printer::tty_printer): Initialize colors.
6094 (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
6095 tty_printer::draw, tty_printer::end_page): Handle colors also.
6096 (main): Add options `-c' and `-i'.
6098 * NEWS, src/devices/grotty/grotty.man: Updated.
6100 * src/include/errarg.h (errarg): Add support for `unsigned int'.
6101 * src/libs/libgroff/errarg.c: Implement it.
6103 * src/include/printer.h (printer): Add `change_color' method
6104 (currently used by grotty only).
6105 * src/libs/libdriver/printer.cc: Implement it.
6106 * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
6107 call to `pr->change_color'.
6109 * src/roff/troff/node.cc (troff_output_file::fill_color,
6110 troff_output_file::glyph_color): Call `do_motion'.
6112 * tmac/tty.tmac: Add color definitions.
6114 * src/roff/groff/groff.man: Minor fixes.
6116 2002-02-05 Bernd Warken <bwarken@mayn.de>
6118 * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
6119 it. This is a preparation for future changes.
6121 2002-02-05 Werner LEMBERG <wl@gnu.org>
6123 * src/roff/troff/input.cc (process_input_stack): Fix the case
6124 where leading spaces are followed by \f or \s; previously, an
6125 incorrect space width has been used.
6127 * doc/roff.man (quoted_char): Fix argument.
6128 (comment): Define string.
6130 2002-02-04 Larry Kollar <kollar@alltel.net>
6132 * doc/groff.texinfo: More fixes.
6134 2002-02-04 Werner LEMBERG <wl@gnu.org>
6136 * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
6137 * src/preproc/eqn/main.cc (do_file, inline_equation): Call
6138 `restore_compatibility' before `output_string' -- the LINE_STRING
6139 register now already contains proper switches from and to
6142 * man/groff_char.man: Add Euro symbol.
6143 * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
6144 * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
6145 * doc/groff.texinfo (Defstr*): Print strings with full syntax.
6148 * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
6150 (.texinfo.html): Add support for texinfo->html.
6152 2002-02-03 Werner LEMBERG <wl@gnu.org>
6154 Added three new requests `ds1', `as1', and `ami'. The former two
6155 are equivalent to `ds' and `as' with the difference that
6156 compatibility mode is saved on entry, switched off during string
6157 expansion, and restored on exit. The latter is the pendant to `dei'
6160 (do_define_string): Use `define_mode' and `calling mode'.
6161 Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
6162 end of string, respectively.
6163 (define_string, append_string): Use `calling_mode'.
6164 (define_nocomp_string, append_nocomp_string,
6165 define_string_indirect): New functions.
6166 (init_input_requests): Updated.
6167 * NEWS, man/groff_diff.man, man/groff.man: Document it.
6169 * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
6170 `as1' for assigning LINE_STRING (this is `10' usually). Sun's
6171 mm macro package accesses this string register directly.
6172 * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
6174 * tmac/trace.tmac: Trace calls to `am' also. Make it work in
6177 2002-02-02 Larry Kollar <kollar@alltel.net>
6179 * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
6181 2002-01-31 Werner LEMBERG <wl@gnu.org>
6183 * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
6185 2002-01-31 Bernd Warken <bwarken@mayn.de>
6187 * src/devices/grolbp/lbp.cc (main): Delete `pr'.
6188 * man/groff_out.man: Revised and updated.
6190 2002-01-30 Bernd Warken <bwarken@mayn.de>
6192 * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
6193 out the unused `{' and `}' commands. Undefined by default.
6194 (IntArray): Make `data' private.
6195 (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
6196 new methods instead.
6197 (skip_line_D, skip_to_end_of_line): New functions.
6198 (get_D_fixed_args): Use `skip_line_D'.
6199 Changed to handle dummy odd arguments by ...
6200 (get_D_fixed_args_odd_dummy): This new function.
6201 (get_D_variable_args): Split some code into ...
6202 (get_possibly_integer_args): This new function.
6203 (send_draw): Use more `const'.
6204 (delete_current_env): New function.
6205 (position_to_end_of_args): Use `size_t'.
6207 (send_draw): Updated.
6208 (parse_D_command): Handle `c', `C', and `t' better.
6212 2002-01-29 Werner LEMBERG <wl@gnu.org>
6215 * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
6216 @Def...ListEnd which replaces @Def...x. This is necessary to get
6217 proper HTML output -- see the comment in the file for more
6221 2002-01-29 Gaius Mulley <gaius@glam.ac.uk>
6223 Fixes to make color changes of 2002-01-21 work with grohtml.
6225 * src/devices/grohtml/post-html.cc (style): Updated.
6226 (html_printer): Remove unused methods.
6227 (html_printer::do_font, html_printer::draw, html_printer::set_char,
6228 html_printer::special): Updated.
6229 * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
6230 html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
6231 Added some debugging code.
6232 (html_text::start_tag): Updated.
6233 (html_text::do_push): New method.
6234 (html_text::push_para): Call it.
6235 Add method for handling color.
6236 (html_text::do_color): Updated.
6237 (html_text::shutdown): Handle color.
6238 * src/devices/grohtml/html-text.h (tag_definition): New member
6242 2002-01-28 Werner LEMBERG <wl@gnu.org>
6244 * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
6246 2002-01-27 Gaius Mulley <gaius@glam.ac.uk>
6248 Add two switches -a and -g to control the antialiasing bits for
6249 text and graphics, respectively.
6251 * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
6253 * src/devices/grohtml/grohtml.man: Document them.
6254 * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
6256 (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
6257 (setupAntiAlias): New function.
6258 (createAllPages): Updated.
6259 (scanArguments): Handle `-a' and `-g'.
6260 (main): Call `setupAntiAlias'.
6263 2002-01-27 Werner LEMBERG <wl@gnu.org>
6265 * doc/groff.texinfo (Def*): Call index function after deffn.
6267 * tmac/html.tmac: Call `nroff' request.
6269 2002-01-26 Larry Kollar <kollar@alltel.net>
6271 * tmac/groff_ms.man: Add some omissions.
6273 2002-01-25 Larry Kollar <kollar@alltel.net>
6275 * tmac/groff_ms.man: Typographical improvements.
6277 2002-01-25 Werner LEMBERG <wl@gnu.org>
6279 * doc/groff.texinfo: Updated version and copyright.
6280 * src/devices/grops/grops.man: Updated.
6282 * tmac/groff_tmac.man: Fix `ig' macro.
6284 * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
6286 Use `.ne' unconditionally everywhere.
6287 (TS): Only insert some vertical space. Doing a page break is no
6288 longer necessary due to the redefinition of the `ne' request.
6290 * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
6291 warning for unknown subcommands but parse and pass them to the
6294 2002-01-24 Werner LEMBERG <wl@gnu.org>
6296 * tmac/groff_www.man, NEWS: Fix typos.
6298 2002-01-21 Werner LEMBERG <wl@gnu.org>
6300 Complete revision of color support:
6302 Adapt programs to the new libdriver/input.cc.
6304 Color spaces are no longer converted to RGB but transferred as-is
6305 in the troff intermediate output format.
6307 Handle default color gracefully. troff now supports a `default'
6308 color (which can't be changed).
6310 grops will now use the proper color space functions if available.
6314 Note that currently grohtml doesn't handle colors properly. This
6317 * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
6318 (ui_to_a): New function.
6319 * src/include/lib.h: Updated.
6321 * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
6322 (color): Simplified; removed all `double' members and methods.
6323 A new array `components' now holds the color parameters.
6324 (color::is_default, color::get_components): New methods.
6325 (color::operator==, color:operator!=): New.
6326 (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
6327 to make access to the `components' array more comprehensible.
6328 * src/libs/libgroff/color.cc: Implement new color support.
6329 (atoh): Small fixes.
6330 (color::read_encoding): Simplified for new troff intermediate color
6332 (default_color): New global variable.
6334 * src/roff/troff/input.cc (default_symbol): New global variable.
6335 (lookup_color): Use it.
6336 (default_black): Removed.
6337 (do_glyph_color, do_fill_color): Simplified.
6338 (define_color): Handle default color.
6340 (do_if_request): Handle default color.
6341 * src/roff/troff/env.cc (environment::environment): Initialize
6342 colors with `default_color'.
6343 * src/roff/troff/node.cc (troff_output_file::put): Add method
6345 (troff_output_file::hex): Removed.
6346 (troff_output_file::fill_color, troff_output_file::glyph_color):
6347 Updated to include/color.h and libdriver/input.cc.
6349 * src/preproc/pic/object.cc (draw_arrow): New parameter to set
6350 fill color properly (identically to the outline color). \D'f...'
6351 doesn't work any more.
6352 All function calls to it updated.
6354 * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
6356 * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
6359 * src/devices/grops/ps.cc (ps_output::put_color): New method.
6360 (ps_printer::sbuf_color): Make a real member instead of pointer.
6361 (ps_printer::fill_color, ps_printer::output_color): Removed.
6362 (ps_printer::ps_printer): Updated.
6363 (ps_printer::set_char): Ditto.
6364 (ps_printer::set_color): Use various color schemes.
6365 Use `put_color' method.
6366 (ps_printer::flush_sbuf): Don't set color.
6367 (ps_printer::fill_path): Take `environment' as parameter.
6368 Simplify color handling.
6369 (ps_printer::set_line_thickness): Renamed to ...
6370 (ps_printer::set_line_thickness_and_color): This (and updated).
6371 (ps_printer::set_color): Change second parameter from `complete'
6372 to `fill' which better describes what it does.
6373 (ps_printer::draw): Call `flush_sbuf' to output graphic commands
6374 and text in the right order.
6376 Remove branches for `f' and `F'; this is handled by
6378 * src/devices/grops/ps.h: Updated.
6379 * font/devps/prologue (FL): Redefined.
6380 ({F,C}r,k,g: New color functions (with and without filling).
6382 * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
6383 * man/groff_diff.man, man/groff.man, man/groff_out.man,
6384 doc/groff.texinfo, NEWS: Updated.
6386 2002-01-20 Bernd Warken <bwarken@mayn.de>
6388 * src/libs/libdriver/input.cc: Completely rewritten. See comments
6389 in this file for what has been changed.
6391 2002-01-19 Werner LEMBERG <wl@gnu.org>
6393 * test-groff: Fix GROFF_FONT_PATH.
6394 * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
6395 is read before .TH or .Dd is parsed.
6397 2002-01-18 Gaius Mulley <gaius@glam.ac.uk>
6399 * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
6400 quadrant boundaries.
6402 2002-01-18 Werner LEMBERG <wl@gnu.org>
6404 * devices/grops/ps.cc: Aargh! Fix the fix of the incorrectly
6407 2002-01-17 Ruslan Ermilov <ru@FreeBSD.org>
6409 * tmac/doc.common: Initialize %I register for the %I macro to
6410 avoid (harmless) warning.
6411 * tmac/doc.tmac (Bd): There is no reason to enforce -compact
6412 when in the SYNOPSIS section.
6414 2002-01-17 Bruno Haible <haible@clisp.cons.org>
6416 * src/preproc/pic/lex.cc (get_token): Fix typo.
6418 2002-01-17 Werner LEMBERG <wl@gnu.org>
6420 * devices/grops/ps.cc: Fix incorrectly applied last patch.
6422 2002-01-17 Larry Kollar <kollar@alltel.net>
6424 * tmac/groff_ms.man: Completely rewritten.
6426 2002-01-16 Werner LEMBERG <wl@gnu.org>
6428 * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
6430 2002-01-15 Gaius Mulley <gaius@glam.ac.uk>
6432 * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
6434 (ps_printer::draw): Ditto.
6436 2002-01-14 Ruslan Ermilov <ru@FreeBSD.org>
6438 * tmac/groff_mdoc.man: Minor fixes.
6440 2002-01-13 Werner LEMBERG <wl@gnu.org>
6442 * man/groff_out.man: Some fixes.
6444 2002-01-13 Gaius Mulley <gaius@glam.ac.uk>
6446 * doc/pic.ms: Fix typos.
6448 2002-01-12 Werner LEMBERG <wl@gnu.org>
6450 * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
6452 2002-01-10 Werner LEMBERG <wl@gnu.org>
6454 * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
6458 2002-01-09 Bernd Warken <bwarken@mayn.de>
6460 * man/groff_out.man: Revised.
6461 * man/roff.man: Minor fixes.
6462 * src/roff/troff/troff.man: Some reordering.
6464 2002-01-09 Werner LEMBERG <wl@gnu.org>
6466 * tmac/an-old.tmac: Add dummy macros for equation support.
6468 2002-01-07 Werner LEMBERG <wl@gnu.org>
6470 doc/groff.texinfo: Fix documentation of glyph searching algorithm.
6472 * tmac/an-old.tmac: Revert change 2001-12-23. This breaks too many
6474 * tmac/groff_man.man: Small improvements.
6476 2002-01-07 Bernd Warken <bwarken@mayn.de>
6478 * man/groff_diff.man: Revised.
6480 2002-01-06 Werner LEMBERG <wl@gnu.org>
6482 * tmac/www.tmac: Remove extraneous backslash.
6484 2002-01-06 Bernd Warken <bwarken@mayn.de>
6486 * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
6488 2002-01-05 Werner LEMBERG <wl@gnu.org>
6490 Integrated groffer, contributed by Bernd Warken.
6492 * contrib/groffer/*: New.
6493 * Makefile.in, NEWS: Updated.
6495 2002-01-04 Werner LEMBERG <wl@gnu.org>
6497 * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
6498 registers defined in macro packages.
6499 Revising the ms part.
6501 2002-01-04 Larry Kollar <kollar@alltel.net>
6503 * doc/groff.texinfo: Add documentation for ms macros.
6505 2002-01-02 Werner LEMBERG <wl@gnu.org>
6507 First step in adding PS support for the Euro symbol. `eu' is the
6508 official Euro logo, `Eu' is a font-specific glyph variant.
6510 * font/devps/text.enc: Add `Euro' at position 9.
6511 * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
6512 * font/devps/symbolmap: Regenerated.
6516 2002-01-02 Bernd Warken <bwarken@mayn.de>
6518 * man/roff.man: Revised.
6520 2002-01-01 Bernd Warken <bwarken@mayn.de>
6522 * src/roff/groff/groff.man: Completely rewritten.
6524 2001-12-31 Werner LEMBERG <wl@gnu.org>
6526 * doc/Makefile: Updated.
6528 2001-12-30 Werner LEMBERG <wl@gnu.org>
6530 * tmac/www.tmac: Make all names of internal macros/registers/strings
6531 lowercase, and prepend `www-'.
6532 Other minor changes.
6533 * src/roff/troff/troff.man: Add preprocessor string at BOF.
6535 2001-12-30 Gaius Mulley <gaius@glam.ac.uk>
6537 Implement option `-b' in grohtml to set the HTML background colour.
6539 * src/devices/grohtml/post-html.cc (default_background): New global
6541 (html_printer::html_printer): Initialize `background' to
6542 `default_background'.
6543 (main): Implement option `-b'.
6545 * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
6547 * src/devices/grohtml/grohtml.man: Updated.
6548 * doc/Makefile (.ms.html): Use `-b'.
6549 * tmac/html.tmac: Don't set background color.
6551 Add new grohtml tag `.html-tl'.
6553 * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
6555 (title_desc::title_desc): Updated.
6556 (html_printer::troff_tag): Handle `.html-tl'.
6557 (html_printer::write_title): Use `with_h1'.
6558 * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
6559 (HTML-TL): New macro.
6561 Add support for unordered lists in HTML.
6563 * tmac/www.tmac (www-level): New auxiliary register.
6564 (www-level1, www-level2, www-level3): New auxiliary strings.
6565 (www-push-level, www-pop-level): New auxiliary macros
6566 (UL-BEGIN, UL-END, LI): User macros for unordered lists.
6570 * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
6571 (DEFAULT_VERTICAL_OFFSET): Removed.
6572 (IMAGE_BOARDER_PIXELS): Set to 0.
6573 (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
6574 (vertical_offset): Initialize with 0.
6575 (gsPaper): New global variable.
6576 (get_resolution): Scan for and return unsigned int.
6577 (get_papersize): New function to get paper length from devps/DESC.
6578 (determine_vertical_offset): New function.
6579 (createAllPages): Produce gray-level images and use proper page
6581 (createImage): Use `-quiet' option of pnmcrop.
6582 (addZ): Fix passing of `-Z'.
6583 (scanArguments): Fix handling of `-o'.
6584 (main): Call `determine_vertical_offset'.
6585 * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
6588 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
6589 * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
6590 glyph descenders properly.
6592 * doc/homepage.ms: Include `gnubw.eps'.
6593 * doc/Makefile (gnubw.eps): New rule.
6594 (homepage.html): Depend on `gnubw.eps'.
6596 2001-12-25 Werner LEMBERG <wl@gnu.org>
6598 * src/roff/troff/input.cc (default_black): Fix return value.
6600 2001-12-24 Ruslan Ermilov <ru@FreeBSD.org>
6602 * tmac/doc-common (Dt): Change output of architecture strings.
6603 Do some syntax cleanup.
6604 * tmac/groff_mdoc.man: Updated.
6606 2001-12-23 Werner LEMBERG <wl@gnu.org>
6608 Adding an `itc' request (input line trap accepting \c).
6610 * src/roff/troff/env.h (environment): New member
6611 `continued_input_trap'.
6612 Make `do_input_trap' a friend function instead of `input_trap'.
6613 * src/roff/troff/env.cc (environment::environment,
6614 environment::copy): Updated.
6615 (environment::newline): Implement it.
6616 (do_input_trap): New function.
6617 (input_trap): Call `do_input_trap'.
6618 (input_trap_continued): New function.
6619 (init_env_requests): Updated.
6620 * src/roff/troff/TODO: Updated.
6622 * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
6625 * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
6627 2001-12-22 Ruslan Ermilov <ru@FreeBSD.org>
6629 * tmac/doc-common, tmac/doc-syms: Small updates.
6631 2001-12-22 Colin Watson <cjwatson@debian.org>
6633 * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
6635 2001-12-22 Bernd Warken <bwarken@mayn.de>
6637 * MANIFEST: New file.
6639 2001-12-22 Werner LEMBERG <wl@gnu.org>
6641 * src/preproc/grn/grn.man: Updated.
6643 2001-12-22 Solar Designer <solar@openwall.com>
6645 * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
6648 2001-12-19 Werner LEMBERG <wl@gnu.org>
6650 Implement a fallback character request `.fchar'.
6652 * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
6653 (is_fallback): New inline function.
6654 * src/roff/troff/input.cc (do_define_character): New function.
6655 (define_character): Call `do_define_character'.
6656 (define_fallback_character): New function.
6657 (init_input_requests): Add `fchar'.
6658 (charinfo::charinfo): Updated.
6659 (charinfo::set_macro): New argument to set `fallback' flag.
6660 * src/roff/troff/node.cc (make_glyph_node, make_node,
6661 node::add_char): Check `fallback' flag.
6662 * NEWS, man/groff_diff.man, man/groff_man: Updated.
6664 2001-12-16 Werner LEMBERG <wl@gnu.org>
6666 * groff.texinfo: Document exact search algorithm for glyphs.
6668 2001-12-15 Werner LEMBERG <wl@gnu.org>
6670 * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
6671 the left side of $(MANPAGES) rule to make it always non-empty.
6673 2001-12-14 Werner LEMBERG <wl@gnu.org>
6675 * src/roff/troff/input.cc (default_black): Define default color
6676 `black' if not yet defined.
6678 2001-12-13 Werner LEMBERG <wl@gnu.org>
6680 Implement new string-valued register `.fn' to return the current
6681 real (internal) font name.
6683 * env.cc (environment::get_font_name_string): New function.
6684 (init_env_requests): Add `.fn' register.
6685 * env.h (environment): Updated.
6686 * node.cc (font_info): Make `get_font_name' a friend.
6687 (get_font_name): New function.
6690 * man/groff_diff.man, man/groff.man, NEWS: Updated.
6692 2001-12-12 Ralph Corderoy <ralph@inputplus.demon.co.uk>
6694 * src/preproc/eqn/main.cc (inline_equation): Fix typos.
6696 2001-12-12 Werner LEMBERG <wl@gnu.org>
6698 * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
6700 2001-12-10 Gaius Mulley <gaius@glam.ac.uk>
6702 * man/groff_diff.man: Adding documentation for \O.
6704 2001-12-10 Werner LEMBERG <wl@gnu.org>
6706 * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
6707 (scanArguments): Use PROG_PREFIX for the name of the troff binary.
6709 2001-12-09 Werner LEMBERG <wl@gnu.org>
6711 * man/roff.man: Revised.
6712 * src/roff/groff/groff.man: Replace man page references with a
6713 pointer to roff.man.
6715 2001-12-09 Bernd Warken <bwarken@mayn.de>
6717 * man/roff.man: Completely rewritten.
6719 2001-12-06 Ralph Corderoy <ralph@inputplus.demon.co.uk>
6721 * src/preproc/eqn/main.cc (inline_equation): Improve error message.
6723 2001-12-05 Werner LEMBERG <wl@gnu.org>
6725 * src/roff/troff/input.cc (get_delim_file_name): Removed since no
6727 * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
6728 order of initializers.
6731 2001-12-05 Gaius Mulley <gaius@glam.ac.uk>
6733 * doc/groff.texinfo: Fix documentation of \O.
6735 * src/devices/grohtml/html-text.cc (html_text::do_indent,
6736 html_text::do_table, html_text::do_emittext, html_text::do_para):
6737 Use `const' for first argument.
6738 (html_text::do_table): Use cast.
6739 * src/devices/grohtml/html-text.h: Updated.
6740 * src/devices/grohtml/output.cc (simple_output::put_string): Add
6741 method for `const string &s'.
6742 * src/devices/grohtml/html.h: Updated.
6743 * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
6744 (ANCHOR_TEMPLATE): Modified.
6745 (manufacture_headings): New global variable to handle `-h' option.
6746 (is_subsection): Removed.
6747 (char_buffer::add_string): Add `const' to first argument.
6748 Protect against invalid string argument.
6749 Add method for `const string &s'.
6750 (text_glob): Completely redesigned.
6751 (page): Use `const' for strings and remove string length variable.
6752 (page::add_html): Removed.
6753 (page::add_end_encode): New member function.
6754 (to_unicode): Moved upwards.
6755 (title_desc, header_desc): Updated.
6756 (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
6758 (html_printer::is_bold, html_printer::make_bold): New member
6760 (html_printer::end_of_line): Updated.
6761 (generate_img_src, html_printer::do_auto_image,
6762 html_printer::do_title, html_printer::write_header,
6763 html_printer::determine_header_level, html_printer::do_heading,
6764 html_printer::do_linelength, html_printer::do_pageoffset,
6765 html_printer::do_indentation, html_printer::do_tempindent,
6766 html_printer::do_indentedparagraph, html_printer::do_break,
6767 html_printer::flush_sbuf, get_html_translation,
6768 html_printer::begin_page, html_printer::special): Rewritten to get
6769 rid of static string length limit.
6770 (html_printer::troff_tag): Added `.no-auto-rule'.
6771 (html_printer::flush_globs): Small fix.
6772 (html_printer::determine_space): Don't compute `space_width'.
6773 (html_printer::translate_to_html): Renamed to ...
6774 (html_printer::emit_html): This (with updates).
6775 (html_printer::write_header): Implement `-h' option.
6776 (html_printer::draw): Remove commented-out code. Handle `F'
6778 (html_printer::add_char_to_sbuf): Removed.
6779 (html_printer::add_to_sbuf): Rewritten.
6780 (html_printer::sbuf_continuation): Fixed.
6781 (html_printer::seen_backwards_escape, reverse,
6782 html_printer::remove_last_char_from_sbuf): Removed.
6783 (char_translate_to_html, str_translate_to_html): Removed.
6784 (html_printer::overstrike): New function member.
6785 (html_printer::set_char): Use it.
6786 (html_printer::do_body): New function member.
6787 (html_printer::~html_printer): Use it.
6788 (main): Handle `-h' option.
6790 * src/devices/grohtml/grohtml.man: Document -h switch.
6792 * src/preproc/html/pre-html.cc: Include searchpath.h
6793 Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
6794 (get_resolution): New function.
6795 (checkImageDir): Use `0777' permissions in mkdir()
6796 (write_start_image): Rewritten to use `\O[5...]'.
6797 (createImage, generateImages): Updated.
6798 (main): Handle `F' and `h' options.
6799 Use `get_resolution'.
6801 * src/roff/troff/input.cc (begin, end, image): Removed.
6802 (do_suppress): Take parameter.
6803 Handle modified syntax of `\O'.
6804 (token::next): Updated.
6805 (init_markup_requests): Removed.
6808 * src/roff/troff/div.h: Add declaration for begin_page().
6810 * tmac/color-html.tmac: Removed. Contents moved to...
6811 * tmac/html.tmac: Here. Set background color.
6812 * tmac/color.tmac: Removed. Contents moved to...
6813 * tmac/ps.tmac: Here.
6814 * tmac/www.tmac: Remove the title command when generating images
6816 (NO_AUTO_RULE): New macro.
6817 (HTML_DO_IMAGE): Use revised `\O' escapes.
6818 * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
6820 2001-12-02 Werner LEMBERG <wl@gnu.org>
6822 * tmac/groff_mdoc.man: Fix typo.
6824 2001-12-01 Colin Watson <cjwatson@debian.org>
6826 * man/roff.man: Fix typo.
6828 2001-11-29 Werner LEMBERG <wl@gnu.org>
6830 * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
6833 * src/roff/troff/input.cc (read_draw_node): Emit error message if
6834 more than one argument to \D'f ...'.
6836 * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
6838 2001-11-28 Werner LEMBERG <wl@gnu.org>
6840 * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
6843 * tmac/groff_man.man: Minor cosmetic fix.
6845 2001-11-27 Werner LEMBERG <wl@gnu.org>
6847 * src/roff/groff/groff.man, tmac/groff_tmac.man,
6848 tmac/groff_www.man: s/mwww/www/.
6850 2001-11-26 Werner LEMBERG <wl@gnu.org>
6852 * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
6853 * configure: Regenerated.
6854 * win32-diffs: Updated.
6856 * tmac/groff_mwww.tmac: Renamed to ...
6857 * tmac/groff_www.tmac: This.
6858 * tmac/mwww.tmac: Removed.
6859 * NEWS, tmac/Makefile.sub: Updated.
6861 2001-11-21 Werner LEMBERG <wl@gnu.org>
6863 * doc/groff.texinfo: Improve documentation of the `\v' escape.
6864 Fix explanation of `\D' and `rt'.
6866 2001-11-20 Werner LEMBERG <wl@gnu.org>
6868 * tmac/an-old.tmac (an-header): Set header length equal to page
6870 * doc/groff.texinfo: Improve documentation of `ne' request. Other
6874 2001-11-19 Werner LEMBERG <wl@gnu.org>
6876 * NEWS, man/Makefile.sub: Updated.
6878 2001-11-19 Bernd Warken <bwarken@mayn.de>
6880 * man/ditroff.man: New file.
6882 2001-11-17 Werner LEMBERG <wl@gnu.org>
6884 * man/groff_differences.man: Renamed to ...
6885 * man/groff_diff.man: This. Updated.
6886 * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
6888 * src/preproc/html/pushbackbuffer.cc: Renamed to ...
6889 * src/preproc/html/pushback.cc: This. Updated.
6890 * src/preproc/html/pushbackbuffer.h: Renamed to ...
6891 * src/preproc/html/pushback.h: This.
6892 * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
6895 * src/libs/libgroff/htmlindicate.cc: Renamed to ...
6896 * src/libs/libgroff/htmlhint.cc: This.
6897 * src/libs/libgroff/Makefile.sub: Updated.
6899 * tmac/an-old.tmac (an-end): Fix page length.
6901 2001-11-16 Werner LEMBERG <wl@gnu.org>
6903 * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
6904 * man/Makefile.sub: Include groff_differences.man.
6905 * VERSION: Set to 1.18.
6906 * REVISION: Set to 0.
6908 2001-11-16 Bernd Warken <bwarken@mayn.de>
6910 * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
6911 the second dot (or ending macro name) to end a macro.
6912 * doc/groff.texinfo: Doc fix.
6914 2001-11-16 Ruslan Ermilov <ru@FreeBSD.org>
6916 * tmac/doc-common (doc-header): Handle very long document titles
6919 2001-11-16 Werner LEMBERG <wl@gnu.org>
6921 * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
6923 2001-11-15 Werner LEMBERG <wl@gnu.org>
6925 * src/roff/troff/troff.man: Revised and split into troff.man and...
6926 * man/groff_differences.man: New file.
6929 2001-11-13 Werner LEMBERG <wl@gnu.org>
6931 * tmac/an-old.tmac (TS, TE): New macros for table support.
6933 2001-11-12 Werner LEMBERG <wl@gnu.org>
6935 * src/include/lib.h: Provide a fix for emx to not include
6938 2001-10-27 Werner LEMBERG <wl@gnu.org>
6940 * src/roff/troff/input.cc (substring_macro): Fix computation of
6943 2001-10-20 Werner LEMBERG <wl@gnu.org>
6945 Undo change from 2001-08-28.
6947 * src/roff/troff/input.cc (have_input): New global variable.
6948 (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
6949 in compatibility mode.
6950 (process_input_stack): Use it.
6952 2001-10-19 Ruslan Ermilov <ru@FreeBSD.org>
6954 * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
6955 being handled as end-of-sentence characters,
6957 2001-10-10 Gaius Mulley <gaius@glam.ac.uk>
6959 * src/roff/troff/input.cc (file_iterator): New members
6960 `suppress_newline_flag' and `seen_escape'.
6961 (file_iterator::next_file): Updated.
6962 (file_iterator::fill): Use it.
6963 (string_iterator): New member `suppress_newline_flag'.
6964 (string_iterator::fill): Set it.
6965 (get_color_element): Use MAX_COLOR_VAL.
6966 * src/roff/troff/env.cc (environment): Remove `need_eol'.
6967 (no_fill): Don't set `env->ignore_next_eol'.
6968 (environment::newline): Handle `eol' tag properly.
6970 (environment::add_html_tag): Set `env->ignore_next_eol'.
6972 * src/roff/troff/env.h (environment): Updated.
6974 * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
6976 (html_printer::outstanding_eol): New member function.
6977 (html_printer::do_title): Use new functions.
6978 (html_printer::troff_tag): Test `id_eol_ce'.
6980 2001-10-10 Werner LEMBERG <wl@gnu.org>
6982 * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
6983 files work with -C also.
6985 2001-10-05 Werner LEMBERG <wl@gnu.org>
6987 * doc/pic.ms: Minor fix.
6988 * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
6989 as a valid command line switch.
6990 * src/devices/grohtml/post-html.cc (main): Ditto.
6992 * src/devices/grohtml/grohtml.man: Updated.
6993 * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
6995 2001-10-04 Werner LEMBERG <wl@gnu.org>
6997 Implementing color support in troff, pic, grops, and grohtml. These
6998 changes are based on a major patch provided by Gaius Mulley
7001 New request: `defcolor', supporting rgb, cmy, cmyk, and gray
7002 definitions with both hex values and fractions.
7004 New escapes: \m and \M for drawing and background color,
7005 respectively. This corresponds to the troff output commands `m'
7008 groff and troff accept command line switch `-c' to disable color
7009 output (which is automatically disabled in compatibility mode).
7011 New scaling indicator `f' for fractions (1f = 65536u).
7013 New conditional operator `m' to test for defined colors with `if'
7016 New keywords `color' (or `colour', `colored', `coloured'), `outline'
7017 (or `outlined'), and `shaded' added to pic.
7019 * src/include/color.h: New file.
7020 * src/include/driver.h: Include it.
7021 * src/include/printer.h: Include color.h.
7022 (environment): New members `col' and `fill'.
7023 (printer): Remove `adjust_arc_center' member function.
7024 * src/include/Makefile.sub: Updated.
7026 * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
7028 Handle `m' and `DF' troff commands.
7029 * src/libs/libgroff/color.cc: New file.
7030 * src/libs/libgroff/Makefile.sub: Updated.
7032 * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
7034 (createImage): Fix computation of `y2'.
7036 (buffer::write_file_html): Remove calls to `stop'.
7038 * src/preproc/pic/common.h (common_output): New abstract function
7039 members `set_color', `reset_color', `get_last_filled', and
7040 `get_outline_color'.
7041 * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
7042 (object_spec): Add members `shaded' and `outlined'.
7043 * src/preproc/pic/output.h (output): `command' is now abstract.
7044 New function members `set_color', `reset_color', `get_last_filled',
7045 and `get_outline_color'.
7046 * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
7047 `outline[d]', and `shaded'.
7048 * src/preproc/pic/object.cc (output::command): Removed.
7049 (output::set_location): Moved to output.h.
7050 (graphic_object): Add protected members `outline_color' and
7052 Add member functions `set_outline_color', `get_outline_color', and
7054 (closed_object): Add member function `set_fill_color'.
7055 Add member `color_fill'.
7056 (graphic_object::print_text): Use `out->set_color' and
7058 (box_object::print, ellipse_object::print, circle_object::print,
7059 line_object::print, spline_object::print, arc_object::print): Ditto.
7060 (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
7061 * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
7062 `SHADED', making them `%left'.
7063 Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
7064 * src/preproc/pic/tex.cc (tex_output): New dummy function members
7065 `set_color', `reset_color', `get_last_filled', and
7066 `get_outline_color'.
7067 * src/preproc/pic/troff.cc (simple_output): New abstract function
7068 members `set_color', `reset_color', and `get_last_filled'.
7069 (simple_output::polygon, simple_output::circle,
7070 simple_output::ellipse): Use `get_last_filled'.
7071 (troff_output): New members `last_filled' and `last_outlined'.
7072 New function members `set_color', `reset_color', `get_last_filled',
7073 and `get_outline_color'.
7074 (troff_output::finish_picture): Use `reset_color'.
7075 (troff_output::set_fill): Test `last_filled'.
7076 * src/preproc/pic/pic.man: Updated.
7078 * src/roff/groff/groff.cc (main): Implement `-c' option.
7079 (synopsis, help): Updated.
7080 src/roff/groff/groff.man: Updated.
7082 * src/roff/troff/troff.h: Include color.h.
7083 (warning_type): Add WARN_COLOR.
7084 * src/roff/troff/env.h (environment): New members
7085 `{cur,prev}_{glyph,fill}_color'.
7086 New member functions `get_{prev_,}{glyph,fill}_color'.
7087 * src/roff/troff/env.cc: Initialize and implement them.
7088 * src/roff/troff/input.cc: New global variable `disable_color_flag'.
7089 Replace `NULL' with `0' everywhere for consistency.
7090 (lookup_color, default_black, do_glyph_color, do_fill_color,
7091 get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
7092 define_color): New functions.
7093 (token::next): Implement \M and \m escapes.
7094 (do_if_request): Implement `m' operator.
7096 (main): Implement `-c' option.
7097 (init_markup_requests): Add `defcolor' request.
7098 (warning_table): Add `color' warning.
7099 * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
7101 * src/roff/troff/node.cc (troff_output_file): New members
7102 `current_{page,glyph}color'. New member functions `put_hex',
7103 `glyph_color', and `fill_color'.
7104 (glyph_color_node::*, fill_color_node::*): Implement it.
7105 * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
7106 (parse_term): Add support for `f'.
7107 * src/roff/troff/troff.man: Updated.
7109 * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
7111 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
7112 * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
7114 * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
7115 (tag_definition): Use `void *' for arg1.
7116 (html_text): New member functions `do_color' and `done_color'.
7117 Use `void *' for second parameter of `push_para' member function.
7118 New `push_para' member function with a single parameter.
7119 Use `char *' for parameter of `issue_table_begin' member funtion.
7120 New `issue_color_begin' member function.
7121 * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
7123 (html_text::issue_color_begin): New function.
7124 (html_text::issue_table_begin): Use `char *' for parameter.
7125 (html_text::start_tag, html_text::shutdown,
7126 html_text::check_emit_text): Updated.
7127 (html_text::push_para): Use `void *' for second parameter.
7128 Add same function with only one parameter.
7129 (html_text::do_*): Updated.
7130 (html_text::do_color, html_text::done_color): New functions.
7131 * src/devices/grohtml/post-html.cc (style): New member `col'.
7132 Mew member `style' with 6 parameters.
7133 (style::style, style::operator==): Updated.
7134 (html_printer::do_font): Use it.
7135 (html_printer::draw): Add dummy entry for `F'.
7136 (html_printer::set_char): Updated.
7137 * src/devices/grohtml/grohtml.man: Updated.
7139 * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
7140 trailing zeroes removed.
7141 (ps_printer): New members `sbuf_color', `fill_color', and
7143 Removed member `fill'.
7144 New member function `set_color'.
7145 (ps_printer::ps_printer, ps_printer::set_char): Updated.
7146 (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
7147 ps_printer::fill_path, ps_printer::draw): Use `set_color'.
7149 * tmac/color-html.tmac, tmac/color.tmac: New files.
7150 * tmac/troffrc: Include them.
7151 * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
7152 * tmac/Makefile.sub: Updated.
7154 * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
7155 man/groff.man: Updated.
7156 * font/devps/prologue.ps: Define FC and CO functions.
7158 2001-10-04 Gaius Mulley <gaius@glam.ac.uk>
7160 Fix incorrect cropping of images and incorrect handling of special
7161 characters. Fix handling of file names in \O.
7163 * src/include/geometry.h: New file.
7164 * src/libs/libgroff/geometry.cc: New file.
7165 * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
7167 * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
7169 (do_suppress): Updated.
7170 * src/roff/troff/node.cc: Include geometry.h.
7171 (troff_output_file::flush_tbuf): Fixed parameters to
7172 `check_output_limits'.
7173 (troff_output_file::check_charinfo): Ditto.
7174 (troff_output_file::determine_line_limits): Add support for `Da'
7177 * src/devices/grohtml/post-html.cc (str_translate_to_html):
7178 Add new parameter `is_special' to decode special characters from
7180 (html_printer::do_title, html_printer::do_heading,
7181 html_printer::do_indentedparagraph,
7182 html_printer::translate_to_html, html_printer::special): Updated.
7184 2001-10-03 Werner LEMBERG <wl@gnu.org>
7186 * Makefile.sub (DISTCLEANFILES): Add stamp-h.
7187 Fix entry for config.h.
7188 * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
7189 * tmac/troffrc: Translate nonbreakable space character to `\~'.
7190 * src/preproc/eqn/eqn.man: Document -d command line option.
7192 2001-09-27 Werner LEMBERG <wl@gnu.org>
7194 * man/groff.man: Use
7202 instead of the old code (`.ad .hy' after the table) to suppress
7203 incorrect hyphenation for grohtml output.
7205 2001-09-22 Werner LEMBERG <wl@gnu.org>
7207 * man/groff_font.man, man/groff_out.man: Minor fixes.
7209 2001-09-20 Werner LEMBERG <wl@gnu.org>
7211 * PROBLEMS: Updated, reordered. Improved EPS section (thanks to
7212 Arnold Robbins <arnold@skeeve.com>).
7214 2001-09-09 Werner LEMBERG <wl@gnu.org>
7216 * configure: Regenerated with autoconf 2.52.
7218 * doc/groff.texinfo: Complete revision of indices.
7220 2001-09-07 Werner LEMBERG <wl@gnu.org>
7222 * doc/Makefile (clean): Updated to delete all indices.
7224 2001-09-05 Werner LEMBERG <wl@gnu.org>
7226 * src/roff/troff/troff.man: Remove superfluous line.
7228 * tmac/s.tmac: Enable all warnings only if no -W or -w option is
7229 given on the command line (or rather, if only the default warnings
7232 2001-09-03 Werner LEMBERG <wl@gnu.org>
7234 * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
7235 use .ne for TTY devices.
7237 2001-08-31 Werner LEMBERG <wl@gnu.org>
7239 * src/roff/troff/token.h, src/roff/troff/input.cc:
7240 s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
7242 2001-08-28 Werner LEMBERG <wl@gnu.org>
7244 * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
7245 * src/roff/troff/input.cc (token::next): Return
7246 TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
7248 (token::description): Updated.
7249 (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
7250 (token::add_to_node_list, token::process): Ignore
7251 TOKEN_TRANSPARENT_ESCAPE.
7253 2001-08-27 Werner LEMBERG <wl@gnu.org>
7255 * tmac/an-old.tmac: Fix `S' string.
7257 2001-08-26 Werner LEMBERG <wl@gnu.org>
7259 * src/roff/troff/troff.man: Don't use .ne for TTY devices.
7261 2001-08-25 Werner LEMBERG <wl@gnu.org>
7263 * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
7265 Many other minor fixes.
7267 * configure.ac: Add message at end to inform how to compile
7269 * configure: Regenerated.
7271 2001-08-24 Werner LEMBERG <wl@gnu.org>
7273 * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
7274 Updated to latest version of libc.
7276 2001-08-23 Werner LEMBERG <wl@gnu.org>
7278 * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
7279 Autoconf 2.50 and newer can handle this.
7280 * configure: Regenerated.
7282 2001-08-21 Werner LEMBERG <wl@gnu.org>
7284 * doc/pic.ms: Fix typo.
7285 * src/preproc/tbl/tbl.man: Document case of global options.
7287 2001-08-21 Gaius Mulley <gaius@glam.ac.uk>
7289 * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
7290 handling of `CR' font.
7292 2001-08-20 Werner LEMBERG <wl@gnu.org>
7294 Use a config.h file.
7296 * src/include/lib.h: Include config.h.
7297 * All C files: Ditto (if necessary).
7298 * All C++ source and header files: Include lib.h first (if
7301 * src/include/config.hin: New file (autogenerated by autoheader).
7302 * stamp-h.in: New file.
7303 * configure.ac: Updated.
7304 * aclocal.m4: Add third parameters to AC_DEFINE macros.
7305 (GROFF_ARRAY_DELETE): Simplified.
7306 * Makefile.sub (DISTCLEANFILES): Updated.
7307 Added targets for remaking config.status, config.hin, config.h,
7308 stamp-h.in, and stamp-h.
7309 * configure: Regenerated.
7311 2001-08-19 Werner LEMBERG <wl@gnu.org>
7315 2001-08-18 Sebastian Krahmer <krahmer@suse.de>
7317 * src/preproc/pic/pic.y (format_number): Use do_sprintf().
7318 (do_sprintf): Use snprintf().
7320 2001-08-18 Werner LEMBERG <wl@gnu.org>
7322 * src/libs/snprintf/*: Added an snprintf module written by Mark
7324 * src/libs/libgroff/Makefile.sub: Updated.
7325 * configure.ac: Add test for snprintf().
7326 * Makefile.in: Updated.
7327 * configure: Regenerated.
7329 * src/preproc/html/pre-html.cc (make_message): Reactivate code which
7332 2001-08-14 Ruslan Ermilov <ru@FreeBSD.org>
7334 * tmac/doc.tmac (Ex): New implementation.
7335 * tmac/doc-common, tmac/groff_tmac.man: Updated.
7337 2001-08-13 Ruslan Ermilov <ru@FreeBSD.org>
7339 * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
7341 * tmac/groff_tmac.man: Updated.
7343 2001-08-13 Werner LEMBERG <wl@gnu.org>
7345 * src/preproc/tbl/tbl.man: Minor documentation update.
7347 2001-08-13 John David Anglin <dave@hiauly1.hia.nrc.ca>
7349 * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
7350 * configure.ac: Add declaration test for gettimeofday().
7351 * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
7352 * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
7353 * configure: Regenerated.
7355 2001-08-11 Werner LEMBERG <wl@gnu.org>
7357 * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
7358 * configure.ac: Add declaration test for strcasecmp().
7359 * Makefile.in: Updated.
7360 * configure: Regenerated.
7361 * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
7362 this is necessary because groff's mkstemp.cc is C++.
7363 Add declaration conditionally for strcasecmp().
7365 2001-08-10 Werner LEMBERG <wl@gnu.org>
7367 Integrated pic2graph, contributed by Eric S. Raymond.
7369 * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
7371 * Makefile.in, NEWS: Updated.
7373 * src/preproc/tbl/tbl.man: Revised.
7375 2001-08-09 Eric S. Raymond <esr@thyrsus.com>
7377 * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
7379 2001-08-09 Werner LEMBERG <wl@gnu.org>
7381 * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
7384 2001-08-08 Paul Eggert <eggert@twinsun.com>
7386 * Makefile.sub (configure): Depend on configure.ac, not
7388 * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
7390 2001-08-07 Werner LEMBERG <wl@gnu.org>
7392 * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
7395 2001-08-06 Werner LEMBERG <wl@gnu.org>
7397 * src/roff/troff/troff.man: Improve documentation of -E option.
7399 2001-07-28 Ralph Corderoy <ralph@inputplus.demon.co.uk>
7401 * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
7404 2001-07-27 Werner LEMBERG <wl@gnu.org>
7406 * src/preproc/refer/refer.cc: Undo last change.
7407 * src/devices/grohtml/post-html.cc: Ditto.
7409 2001-07-26 Werner LEMBERG <wl@gnu.org>
7411 * src/preproc/refer/refer.cc: Include `lib.h'.
7412 * src/devices/grohtml/post-html.cc: Ditto.
7414 2001-07-25 Gaius Mulley <gaius@glam.ac.uk>
7416 * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
7417 * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
7418 * Makefile.in: Comment updated.
7419 * configure: Regenerated.
7421 2001-07-25 Werner LEMBERG <wl@gnu.org>
7423 * src/preproc/pic/pic.cc: Removed.
7424 * src/preproc/pic/pic_tab.h: Removed.
7425 * src/preproc/refer/label.cc: Removed.
7427 * doc/Makefile (.ms.html): Don't use a file name extension in
7428 argument to grohtml's -I option.
7429 * Makefile.in (dist): Remove CVS directories.
7430 Call `distfiles' target.
7432 * src/devices/grohtml/grohtml.man: Add information about valid
7433 versions of pnmtopng.
7434 * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
7435 name instead of number.
7437 2001-07-24 Werner LEMBERG <wl@gnu.org>
7439 * doc/groff.texinfo: Minor fixes.
7441 2001-07-21 Gaius Mulley <gaius@glam.ac.uk>
7443 * doc/Makefile (.ms.html): Put image files into a subdirectory.
7446 2001-07-20 Werner LEMBERG <wl@gnu.org>
7448 * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
7449 * src/libs/libgroff/mkstemp.cc: New file.
7450 * src/libs/libgroff/mksdir.cc: New file.
7451 * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
7452 (xtmpfile) [!HAVE_MKSTEMP]: Removed.
7453 * src/libs/libgroff/Makefile.sub: Updated.
7454 * src/include/lib.h: Add mksdir() prototype.
7455 * src/include/posix.h: Define S_IXUSR if not yet defined.
7457 * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
7458 (createAllPages): Use mksdir() instead of current code.
7459 * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
7460 (main): [!HAVE_MKSTEMP]: Removed.
7462 * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
7463 (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
7465 * configure.ac: Add tests for stdint.h, sys/time.h, and
7467 Call new GROFF_xxx macros.
7468 * configure: Regenerated.
7469 * Makefile.in: Comments updated.
7471 2001-07-20 Gaius Mulley <gaius@glam.ac.uk>
7473 * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
7474 instead of current code.
7475 * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
7476 * src/roff/groff/groff.cc (possible_command::insert_args): New
7478 (main): Use it for predriver handling instead of insert_arg().
7480 2001-07-19 Werner LEMBERG <wl@gnu.org>
7482 * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
7485 * src/include/posix.h: Define S_IWUSR if not yet defined.
7487 2001-07-18 Werner LEMBERG <wl@gnu.org>
7491 2001-07-18 Ruslan Ermilov <ru@FreeBSD.org>
7493 * tmac/groff_mdoc.man: Document new -width and -column syntax.
7494 Some other minor fixes.
7495 * tmac/an-old.tmac: Add `AT' and `UC' macros.
7497 2001-07-17 Gaius Mulley <gaius@glam.ac.uk>
7499 Replace call to `troff' with `groff -Z' to make it aware of
7502 * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
7503 (troff_command, command_prefix): Removed.
7504 (alterDeviceTo): Use groff.
7505 (addZ): New function.
7506 (char_buffer::do_html): Use it.
7507 (scanArguments): Use TROFF_COMMAND.
7508 (findPrefix): Removed.
7510 * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
7512 2001-07-17 Eric S. Raymond <esr@snark.thyrsus.com>
7514 * doc/pic.ms: Documentation fixes.
7516 2001-07-17 Werner LEMBERG <wl@gnu.org>
7518 Replace atexit() with global destructor.
7520 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
7521 (xtmpfile_list_init): New global structure to deallocate
7522 xtmpfile_list on exit. Its destructor inherits most code from
7524 (remove_tmp_files): Deleted.
7525 (add_tmp_file): Simplified.
7527 2001-07-16 Werner LEMBERG <wl@gnu.org>
7529 Replace strdup() with strsave().
7531 * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
7532 (set_papersize): Use strsave() and a_delete.
7533 (main): Use strsave().
7534 * src/preproc/html/pre-html.cc (make_message, createAllPages,
7535 removeAllPages): Use strsave() and a_delete.
7537 * configure.ac: Remove test for strdup.
7538 * Makefile.in: Comment updated.
7539 * configure: Regenerated.
7541 2001-07-15 Werner LEMBERG <wl@gnu.org>
7543 * win32-diffs: Updated.
7545 2001-07-14 Werner LEMBERG <wl@gnu.org>
7547 * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
7548 removing the old one.
7549 * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
7551 2001-07-14 Ralph Corderoy <ralph@inputplus.demon.co.uk>
7553 * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
7555 2001-07-12 Ruslan Ermilov <ru@FreeBSD.org>
7557 Merge -xwidth into -width. Add -xwidth functionality to -column
7560 * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
7562 (doc-do-Bl-args): Merge -xwidth code with -width. Test whether
7563 string immediately following a leading dot starts with a valid mdoc
7565 Add similar code to the -column branch.
7566 (doc-Bl-usage): Updated.
7567 * groff_mdoc.man: s/-xwidth/-width/.
7569 2001-07-12 Gaius Mulley <gaius@glam.ac.uk>
7571 * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
7572 running into centered or non-formatted text.
7574 2001-07-11 Werner LEMBERG <wl@gnu.org>
7576 Introduce short and long prefixes to have the selection at run-time
7577 whether there is a 8+3 limit for names of temporary files.
7579 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
7580 (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
7581 (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
7583 (temp_init): New global structure to initialize above three
7585 (xtmptemplate): Use two parameters for long and short prefix.
7586 Simplify code use above three variables.
7587 (xtmpfile): Use long and short prefixes as parameters.
7588 * src/include/lib.h: Updated.
7590 * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
7592 ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
7593 (createAllPages, makeTempFiles): Updated.
7595 2001-07-09 Werner LEMBERG <wl@gnu.org>
7597 * REVISION: Increased to 3.
7599 Version 1.17.2 released
7600 =======================
7602 2001-07-07 Werner LEMBERG <wl@gnu.org>
7604 * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
7607 2001-07-06 Ruslan Ermilov <ru@FreeBSD.org>
7609 * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
7611 * tmac/groff_mdoc.man: Fix synopsis.
7613 2001-07-05 Ruslan Ermilov <ru@FreeBSD.org>
7615 * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
7616 Restore `doc-Pa-font'.
7618 2001-07-04 Werner LEMBERG <wl@gnu.org>
7620 * src/utils/indxbib/dirnamemax.c: Moved to ...
7621 * src/libs/libgroff/maxfilename.cc: Here.
7622 s/dir_name_max/file_name_max/.
7624 * src/include/lib.h: Add file_name_max.
7625 * src/utils/indxbib/indxbib.cc: Updated.
7626 * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
7629 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
7631 (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
7633 * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
7634 REGION_TEMPLATE): New macros.
7635 (createAllPages, makeTempFiles): Use them.
7636 Include `nonposix.h'.
7637 (html_system): New function.
7638 (createAllPages, createImage): Use it.
7641 * tmac/www.tmac: Fix typos.
7643 2001-07-03 Werner LEMBERG <wl@gnu.org>
7645 * tmac/www.tmac: Disable hyphenation in normal text only if output
7647 (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
7648 * tmac/groff_mwww.man, NEWS: Updated.
7650 2001-07-03 Gaius Mulley <gaius@glam.ac.uk>
7652 * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
7655 2001-07-02 Ruslan Ermilov <ru@FreeBSD.org>
7657 * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
7658 doc-display-ps-stack): Implement font and font size stack for
7661 2001-07-02 Werner LEMBERG <wl@gnu.org>
7663 * REVISION: Increased to 2.
7664 * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
7666 * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
7667 beginning of a line.
7668 * src/groff/grog/grog.sh: Ditto.
7670 2001-06-29 Peter Marquardt <wwwutz@molgen.mpg.de>
7672 * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
7675 2001-06-27 Werner LEMBERG <wl@gnu.org>
7677 Fix problems with preprocessor string for `man' program.
7679 * *.man: Don't use `s' in preprocessor string -- it doesn't exist.
7680 Updated/added copyright.
7681 Moved Emacs's local variable to identify nroff mode to the end of
7682 the file; add local variable if missing.
7684 2001-06-26 Andras Salamon <andras@cs.wits.ac.za>
7686 * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
7687 AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
7688 * configure: Regenerated.
7690 2001-06-25 Andras Salamon <andras@cs.wits.ac.za>
7692 * aclocal.m4 (GROFF_PAGE): Fix page detection code.
7693 * configure: Regenerated.
7695 2001-06-24 Werner LEMBERG <wl@gnu.org>
7697 * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
7699 * doc/pic.ms: Fix typos.
7701 Version 1.17.1 released
7702 =======================
7704 2001-06-21 Golubev I. N. <gin@mo.msk.ru>
7706 * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
7707 * configure: Updated.
7709 2001-06-20 Gaius Mulley <gaius@glam.ac.uk>
7711 * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
7713 * src/roff/troff/dic.cc (blank_line): Add html tag.
7715 2001-06-19 Gaius Mulley <gaius@glam.ac.uk>
7717 * src/roff/troff/input.cc (do_suppress): Fix typo.
7719 2001-06-18 Gaius Mulley <gaius@glam.ac.uk>
7721 Added two new options (-D and -I) to specify image names and a
7722 subdirectory to place the images in.
7724 Change syntax from \\Ox to \\O[x].
7726 * src/devices/grohtml/post-html.cc (main): Add options.
7728 * src/preproc/html/pre-html.cc: Include `stdarg.h'.
7729 Use `NULL' instead of `0' for null string pointers.
7730 (MAX_RETRIES): New macro.
7731 (lengthOfintToStr, intToStr, make_message): New functions.
7732 (makeFileName): Make function static.
7733 Implement -D and -I options.
7734 (checkImageDir): New function.
7735 (write_end_image, write_start_image): Use new syntax of \O.
7736 (createAllPages, removeAllPages): Implement -D and -I options. Use
7738 (createImage): Use make_message().
7739 (addps4html): Add guard for malloc().
7740 (usage, scanArguments): Updated.
7741 (makeTempFiles): Use mkstemp().
7742 (removeTempFiles): Use unlink().
7743 (findPrefix): Add guard for malloc().
7745 * src/roff/troff/input.cc (get_delim_file_name): New function to
7747 (do_suppress): Updated to parse new syntax.
7748 * src/devices/grohtml/grohtml.man: Updated.
7749 * tmac/www.tmac: Updated to new syntax.
7753 2001-06-15 Werner LEMBERG <wl@gnu.org>
7755 * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
7757 * src/devices/grohtml/grohtml.man: Minor improvements.
7759 2001-06-14 Werner LEMBERG <wl@gnu.org>
7761 * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
7763 2001-06-11 Werner LEMBERG <wl@gnu.org>
7765 * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
7766 line to specify preprocessor options -- mandb 2.3.1 only recognizes
7768 * src/preproc/grn/grn.man: Add proper '\" string.
7770 2001-06-11 OKAZAKI Tetsurou <okazaki@be.to>
7772 * test-groff: Don't use PATH but GROFF_BIN_PATH.
7774 2001-06-08 Werner LEMBERG <wl@gnu.org>
7776 Updated to autoconf 2.50.
7778 * configure.in: Renamed to...
7779 * configure.ac: This.
7780 * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
7781 (GROFF_OS390): Updated.
7782 * configure: Regenerated.
7784 2001-05-18 Werner LEMBERG <wl@gnu.org>
7786 * src/roff/troff/env.c, src/roff/troff/env.h,
7787 src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
7790 2001-05-17 Jeffrey Friedl <jfriedl@yahoo-inc.com>
7792 * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
7794 2001-05-16 Werner LEMBERG <wl@gnu.org>
7796 * src/roff/troff/input.cc (read_size): Emit warning if value becomes
7797 less than or equal zero; set it to 1 then.
7798 * src/roff/troff/node.h (node::node): Initialize `last'.
7800 2001-05-08 Werner LEMBERG <wl@gnu.org>
7802 * tmac/an-old.tmac: Make predefined strings work in compatibility
7804 Add troff version guard.
7805 * tmac/doc.tmac: Simplify version guard.
7807 2001-05-07 Werner LEMBERG <wl@gnu.org>
7809 The .ns and .rs requests are now honoured not only in the top-level
7810 but in all diversions (similar to UNIX troff).
7812 This change is based on a patch from Tadziu Hoffmann
7813 <hoffmann@usm.uni-muenchen.de>.
7815 * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
7816 (top_level_diversion): Remove `no_space_mode' member.
7817 * src/roff/troff/div.cc (diversion::diversion,
7818 top_level_diversion::top_level_diversion): Updated.
7819 (macro_diversion::output): Reset `no_space_mode'.
7820 (no_space, restore_spacing): Use `curdiv' unconditionally.
7821 (space_request, blank_line): Check `curdiv->no_space_mode'.
7822 (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
7823 `curdiv' unconditionally.
7824 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
7827 2001-05-06 Werner LEMBERG <wl@gnu.org>
7829 Added two new requests `de1' and `am1' which are similar to `de' and
7830 `am' with the difference that compatibility mode is saved on entry,
7831 switched off during macro execution, and restored on exit.
7833 * src/roff/troff/input.h: Added two new special characters
7834 (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
7835 * src/roff/troff/input.cc (input_iterator): Added two member
7836 functions `save_compatible_flag' and `get_compatible_flag'.
7837 (input_stack): Ditto.
7838 (string_iterator): Ditto. Also add private member
7839 `saved_compatible_flag'.
7840 (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
7841 (calling_mode): New enumeration.
7842 (do_define_macro): Use it. Insert COMPATIBLE_SAVE and
7843 COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
7844 (define_macro, define_indirect_macro, append_macro, ignore): Use
7846 (define_nocomp_macro, append_nocomp_macro): New functions.
7847 (init_input_requests): Updated.
7848 (do_request): Rename local variable `saved_compatible_flag' to
7849 `old_compatible_flag'.
7850 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7852 * tmac/an-old.tmac: Use `de1' instead of `de' request for all
7853 public and trap-invoked macros. As a consequence, the man macros
7854 work in compatibility mode also.
7856 2001-05-06 Solar Designer <solar@openwall.com>
7858 * Makefile.in: Use $(mandir).
7860 2001-05-06 Alexios Zavras <zvr@pobox.com>
7862 * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
7864 2001-05-05 Werner LEMBERG <wl@gnu.org>
7866 Added `.ns' number register: Returns 1 in no-space mode (if in
7867 top-level diversion), 0 otherwise.
7869 * src/roff/troff/div.cc (no_space_mode_reg): New class.
7870 (init_div_requests): Updated.
7871 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
7874 2001-05-04 Werner LEMBERG <wl@gnu.org>
7876 * src/roff/nroff/nroff.man: Improved documentation (especially
7879 2001-05-02 Werner LEMBERG <wl@gnu.org>
7881 Added `brp' request: This is \p as a request.
7883 * src/roff/troff/env.cc (environment::do_break): Add parameter
7885 (do_break_request): New function (was `break_request').
7886 (break_request): Calls `do_break_request'.
7887 (break_spread_request): New; calls `do_break_request'.
7888 (init_env_requests): Updated.
7889 * src/roff/troff/env.h: Updated.
7890 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7892 * REVISION: Increased to 1.
7893 * win32-diffs: Updated.
7895 2001-05-01 Werner LEMBERG <wl@gnu.org>
7897 * tmac/an-old.tmac: Fix minor compatibility mode issue.
7898 * tmac/troffrc-end: Make it really work in compatibility mode.
7900 2001-04-27 Werner LEMBERG <wl@gnu.org>
7902 * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
7905 2001-04-22 Werner LEMBERG <wl@gnu.org>
7907 * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
7908 latest versions from glibc CVS archive.
7910 * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
7911 <c.zeelenberg@hccnet.nl>.
7913 2001-04-21 Werner LEMBERG <wl@gnu.org>
7915 * configure.in: Move check for mkstemp() to...
7916 * aclocal.m4 (GROFF_MKSTEMP): This new function.
7917 * configure: Regenerated.
7919 * src/include/groff-getopt.h: Don't use variable names in
7922 * src/devices/grohtml/html-chars.h: Removed. It isn't used.
7923 * src/devices/grohtml/Makefile.sub,
7924 src/devices/grohtml/post-html.cc: Updated.
7926 2001-04-21 Albert Chin-A-Young <china@thewrittenword.com>
7928 * configure.in: Add special check for mkstemp().
7929 * src/libs/libgroff/tmpfile.cc: Use it.
7930 * src/utils/indxbib/indxbib.cc: Ditto.
7931 * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
7932 * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
7935 2001-04-20 Bruce Lilly <blilly@erols.com>
7937 `Version_string' as C++ object was not visible to linker from C
7939 Add `const' to `Version_string'.
7941 * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
7942 (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
7943 (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
7944 (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
7945 (scanArguments), src/preproc/refer/refer.cc (main),
7946 src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
7947 (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
7948 (main), src/devices/grohtml/post-html.cc (main),
7949 src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
7950 (main), src/utils/hpftodit/hpftodit.cc (main),
7951 src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
7952 (main), src/utils/lkbib/lkbib.cc (main),
7953 src/utils/addftinfo/addftinfo.cc (main): Implement it.
7955 * src/roff/groff/pipeline.c: Add _UWIN.
7956 * src/include/nonposix.h: Ditto.
7958 2001-04-20 Werner LEMBERG <wl@gnu.org>
7960 * src/include/lib.h: Use HAVE_STRERROR.
7961 * src/roff/groff/pipeline.c: Ditto.
7962 * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
7963 * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
7964 * src/utils/pfbtops/pfbtops.c: Add copyright notice.
7965 * win32-diffs: Updated.
7966 * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
7968 2001-04-19 Werner LEMBERG <wl@gnu.org>
7970 * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
7971 instead of hardwired `"troff"'.
7972 (char_buffer::read_file): Remove unused variables.
7973 (char_buffer::write_file_troff): Ditto.
7974 (char_buffer::write_file_html): Ditto.
7975 (generateImages): Ditto.
7977 * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
7979 * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
7981 * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
7982 * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
7983 index_search_item::search1): Ditto.
7984 * src/roff/troff/node.h (width_list): Reorder members.
7985 * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
7986 (lookup_warning): Ditto.
7987 (prepend_string): Commented out.
7988 * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
7989 * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
7990 * src/preproc/tbl/main.cc (process_format): Ditto.
7991 * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
7993 * src/preproc/pic/pic.cc: Updated.
7994 * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
7995 * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
7996 * src/preproc/refer/command.cc (execute_command): Ditto.
7997 * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
7998 * src/preproc/refer/token.cc (lookup_token): Ditto.
7999 * src/preproc/soelim/soelim.cc: Ditto.
8000 * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
8001 (isHexDigit): Commented out.
8002 (pushBackBuffer::isString): Remove unused variable.
8003 * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
8005 * src/devices/grops/psrm.cc (resource_manager::lookup_font,
8006 resource_manager::read_resource_arg, read_one_of, parse_extensions):
8008 * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
8009 * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
8010 lookup_paper_size): Ditto.
8011 * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
8012 (text_glob, element_list): Reorder members.
8013 * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
8015 * src/devices/grohtml/html-text.h (html_text::emit_space): Change
8016 return value to `void'.
8017 * src/devices/grohtml/output.cc (word_list::word_list): Fix order
8019 * src/devices/grohtml/html.h (simple_output::check_newline,
8020 simple_output::space_or_newline, simple_output::enable_newlines):
8022 * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
8024 * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
8025 * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
8026 output_ligatures, output_charset, read_map): Ditto.
8027 * src/utils/lookbib/lookbib.cc (main): Ditto.
8028 * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
8029 (do_file): Fix typo (`=' -> `==').
8030 * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
8031 * src/utils/addftinfo/addftinfo.cc (main): Ditto.
8033 2001-04-18 Ruslan Ermilov <ru@FreeBSD.org>
8035 * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
8036 Fix usage of GROFF_BIN_PATH.
8037 * src/roff/nroff/nroff.man: Updated.
8039 2001-04-18 Werner LEMBERG <wl@gnu.org>
8041 * NEWS: Fixing typos.
8044 Version 1.17 released
8045 =====================
8047 2001-04-17 Werner LEMBERG <wl@gnu.org>
8049 * tmac/Makefile.sub (install-data): mdoc.local-s is in current
8050 directory, not in $(srcdir).
8052 2001-04-16 Werner LEMBERG <wl@gnu.org>
8054 * doc/groff.texinfo: More info on conditionals.
8056 2001-04-15 Werner LEMBERG <wl@gnu.org>
8058 * doc/groff.texinfo: Added some info about groff internals.
8060 * src/roff/troff/node.cc (make_glyph_node): Emit warning message
8061 about missing special character only if the name is non-null.
8063 2001-04-14 Werner LEMBERG <wl@gnu.org>
8065 Removing the grohtml-old device driver which is now obsolete.
8067 * src/devices/grohtml-old/*: Removed.
8068 * font/devhtml-old/*: Removed.
8069 * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
8071 * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
8072 * test-groff (PATH): Updated.
8073 * tmac/Makefile.sub (NORMALFILES): Updated.
8074 * tmac/an-old.tmac: Remove special code for html-old device.
8075 Replace `html-or-html-old' register with `an-html'.
8076 * tmac/eqnrc: Updated.
8077 * tmac/html-old.tmac: Removed.
8078 * tmac/troffrc, tmac/troffrc-end: Updated.
8079 * tmac/www.tmac: Remove special code for html-old device.
8080 Replace `html-or-html-old' register with `www-html'.
8082 * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
8083 src/libs/libgroff/htmlindicate.cc (graphic_end),
8084 include/htmlindicate.h, src/preproc/grn/*.cc,
8085 src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
8086 single argument for consistency with rest of source code.
8088 * aclocal.m4, tmac/an-old.tmac: Fix copyright.
8090 2001-04-13 Ruslan Ermilov <ru@FreeBSD.org>
8092 * src/roff/troff/troff.man: Fixing typos.
8094 2001-04-13 Werner LEMBERG <wl@gnu.org>
8096 * doc/pic.ms: Fixing many font switches.
8097 * doc/groff.texinfo: Fixes, additions.
8098 * MORE.STUFF: Updated.
8100 2001-04-12 Gaius Mulley <gaius@glam.ac.uk>
8102 * src/devices/grohtml/grohtml.man: Updated manual page regarding
8104 * src/preproc/html/pre-html.cc (createImage): Fixed right hand
8106 (removeTempFiles): New function to tidy up temporary files.
8107 * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
8108 Many fixes to do with the new inline suppress node and image regions
8110 * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
8111 (generate_img_src): New function.
8112 (html_printer::do_auto_image): Utilizes it.
8113 (do_heading, do_title): Include inline images within their contents.
8114 (html_printer::begin_page): Tidied up comments that are issued to
8115 the html output file.
8116 (html_printer::do_fill): Fixed so that `.nf' works with fonts other
8118 (text_glob::is_br): New method used by do_heading.
8119 * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
8120 equivalent diversion.
8121 * src/include/html-strings.h: Altered image tags to reflect the
8123 * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
8125 * src/preproc/eqn/main.cc: Will suppress generation of image tags if
8126 it is already inside a pic image. Only emit tags if the argument
8127 `-Tps:html' is present.
8128 * src/preproc/tbl/main.cc: Changes to reflect additional
8129 `html_end_suppress' parameter.
8130 * src/roff/troff/env.cc: Only emit eol tag if a node has been
8131 emitted since the last eol tag was written.
8132 * src/roff/troff/env.h: New boolean `emitted_node'.
8133 * src/roff/troff/input.cc (do_suppress): Handles extra suppress
8134 nodes \O3, \O4, \O5. No longer use `output_low_mark_miny'.
8135 * src/roff/troff/node.cc (check_charinfo): New method.
8136 (troff_output_file::determine_line_limits): Alterations to limit
8138 * tmac/www.tmac: Changes to reflect new suppress nodes.
8140 2001-04-12 Bruno Haible <haible@clisp.cons.org>
8142 * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
8143 Escape the html_glyph in the buffer.
8144 (str_translate_to_html): Output the unescaped escaped_char.
8145 * src/devices/grohtml/html-text.cc (issue_table_begin): Set
8146 `frame=void', not `frame=none'. Add `border=0'.
8148 2001-04-12 Werner LEMBERG <wl@gnu.org>
8150 * PROBLEMS: Add some words on how to avoid wrapper macros.
8152 2001-04-11 Blake McBride <blake@florida-software.com>
8154 * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
8156 2001-04-11 Werner LEMBERG <wl@gnu.org>
8158 * font/devlbp/Makefile.sub (CLEANADD): Set it.
8159 * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
8160 * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
8161 * Makefile.sub (DISTCLEANFILES): Here.
8163 * libs/libgroff/new.cc: Include `nonposix.h'.
8164 * win32-diffs: Updated.
8166 2001-04-10 Ruslan Ermilov <ru@FreeBSD.org>
8168 Added skeleton macro for defunct macros.
8170 Updated documentation.
8172 When inside displays, an empty input line warning should be
8173 suppressed. If another macro call is put inside a display,
8174 all subsequent empty lines found in that display caused a
8175 warning to be emitted.
8177 * tmac/doc.tmac (doc-defunct-macro): New macro.
8178 (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
8179 (doc-restore-global-vars): Fixed typo.
8180 (doc-empty-line): Check the `doc-display-depth' register to
8181 determine whether we are inside display or not.
8183 * tmac/doc-common: Removed `Or' and `Sf' registers.
8184 Moved obsolete `Ds' macro to doc.tmac.
8186 * tmac/groff_mdoc.man: Bump document date.
8187 Document `.Vt' under ``Variable Types''.
8188 Removed documentation for obsolete `.Or' macro.
8190 2001-04-10 Werner LEMBERG <wl@gnu.org>
8193 * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
8195 2001-04-10 Bruno Haible <haible@clisp.cons.org>
8197 * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
8198 (usage): Add stream argument. Don't exit.
8199 * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
8200 Write --version output to stdout, not stderr.
8201 (usage): Add stream argument. Don't exit.
8202 * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
8203 (usage): Add stream argument. Don't exit.
8204 * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
8206 (usage): Add stream argument. Don't exit.
8207 (main): Write --help output to stdout, not stderr.
8208 * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
8209 (usage): Add stream argument. Don't exit.
8210 * src/devices/grops/ps.cc (main): Accept --help and --version.
8211 (usage): Add stream argument. Don't exit.
8212 * src/devices/grotty/tty.cc (main): Accept --help and --version.
8213 (usage): Add stream argument. Don't exit.
8214 * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
8215 (main): Accept --help and --version.
8216 * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
8217 (main): Accept --help and --version.
8218 * src/preproc/html/pre-html.cc (usage): Add stream argument.
8219 (scanArguments): Accept --help and --version.
8220 * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
8221 (main): Accept --help and --version.
8222 * src/preproc/refer/refer.cc (main): Accept --help and --version.
8223 (usage): Add stream argument. Don't exit.
8224 * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
8226 (main): Accept --help and --version.
8227 * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
8228 (main): Accept --help and --version.
8229 * src/roff/groff/groff.cc (main): Accept --help and --version.
8230 (synopsis): Add stream argument.
8231 (help): Write --help output to stdout, not stderr.
8232 (usage): Add stream argument. Don't exit.
8233 * src/roff/grog/grog.pl: Accept --help and --version.
8235 * src/roff/grog/grog.sh: Accept --help and --version.
8236 * src/roff/nroff/nroff.sh: Accept --help and --version.
8237 * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
8238 (usage): Add stream argument. Don't exit.
8239 (main): Accept --help and --version.
8240 * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
8241 (usage): New function with stream argument, doesn't exit.
8242 * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
8243 (usage): New function with stream argument, doesn't exit.
8244 * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
8245 (usage): Add stream argument. Don't exit.
8246 * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
8247 (main): Accept --help and --version.
8248 * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
8250 (main): Accept --help and --version.
8251 * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
8252 (main): Accept --help and --version.
8253 * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
8254 (usage): Add stream argument. Don't exit.
8256 2001-04-10 Ruslan Ermilov <ru@freebsd.org>
8258 Fix indentation in SYNOPSIS.
8260 Updated to include changes of latest BSD mdoc version (basically,
8261 the only change is that `.Fn' and `.Fc' put a final semicolon after
8262 a function declaration in the SYNOPSIS section).
8264 * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
8265 (doc-in-synopsis-section): New variable. Updated all related
8267 (doc-indent-synopsis-active): New register.
8268 (Nd, Fn, Fo): Use it.
8269 (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
8270 `.Cd' with long argument line produces indented wrapped lines.
8271 Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
8272 undesirable line break to be output.
8273 (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
8275 (Fn, Fc): Add final `;' to output.
8276 (doc-save-global-vars, doc-restore-global-vars): Updated.
8277 * tmac/doc-common: Remove `Ex' register.
8279 * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
8282 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
8284 * tmac/doc.tmac (Cd): Simplify code.
8285 * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
8287 2001-04-06 Werner LEMBERG <wl@gnu.org>
8289 Implement continuous underlining for nroff mode. To do that, a new
8290 request in the ditroff language has been added: `x u N' (N is 0
8293 \X and \Y are now transparent to end-of-sentence recognition.
8295 * src/include/printer.h (printer): Add `type' parameter to `special'
8297 * src/libs/libdriver/printer.cc (printer::special): Updated.
8298 * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
8300 * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
8301 specials of type `p'.
8302 * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
8303 * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
8304 * src/devices/grops/ps.cc (ps_printer::special): Ditto.
8305 * src/devices/grotty/tty.cc: Add new enum CU_MODE.
8306 (glyph::order): New method.
8307 (tty_printer::add_char): Use it.
8308 (tty_printer::special): New method.
8309 (tty_printer::end_page): Implement it.
8311 * src/roff/troff/node.h (special_node): Add `no_init_string' member.
8312 * src/roff/troff/node.cc (special_node::special_node): Add parameter
8313 to set `no_init_string'.
8314 (special_node::tprint_start): Use it.
8315 (special_node::same, special_node::copy): Updated.
8316 (special_node::ends_sentence): New method.
8317 (troff_output_file::start_special): Add parameter to include
8318 inititialization of special conditionally.
8320 * src/roff/troff/env.h (environment): New member `underline_spaces'.
8321 * src/roff/troff/env.cc (do_underline_special): New function.
8322 (environment::set_font): Use it.
8323 (do_underline): Use it. This was `underline()'.
8324 (underline): Call `do_underline()'.
8325 (continuous_underline): New function which calls `do_underline()'.
8326 (environment::newline): Use `do_underline_special()'.
8327 (init_env_requests): Updated.
8329 * NEWS, man/troff_out.man: Updated.
8331 2001-04-06 Bruno Haible <haible@clisp.cons.org>
8333 * font/devutf8/R.proto: Fix code of 'shc'.
8335 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
8337 Many fixes. Diag lists can now be nested also; additionally,
8338 `-compact' and `-offset' are supported.
8340 * tmac/doc.tmac (doc-have-indent): Replaced with ...
8341 (doc-list-have-indent-stackXXX): A new register stack.
8342 (doc-have-diag-list): Removed.
8343 (Bl): Use `doc-list-have-indent-stackXXX'.
8345 (doc-diag-list): Use `doc-compact-list-stackXXX'.
8346 (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
8347 (doc-set-vertical-and-indent): Ditto.
8348 (doc-next-list-depth): Removed.
8349 (doc-increment-list-stack): Updated.
8350 (doc-decrement-list-stack): Use `doc-list-depth' instead of
8351 `doc-next-list-depth'.
8352 (doc-end-list, doc-end-column-list): Don't use
8353 `doc-increment-list-stack'.
8354 (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
8355 (doc-save-global-vars, doc-restore-global-vars): Updated.
8356 * tmac/doc-common: Updated.
8357 * tmac/groff_mdoc.man: Updated.
8360 2001-04-02 Werner LEMBERG <wl@gnu.org>
8362 * src/devices/grotty/grotty.man: Fix grammatical error.
8364 2001-03-30 Ruslan Ermilov <ru@freebsd.org>
8366 Remove .Ld from mdoc package; replace it with special handling of
8369 * tmac/doc-common: Remove `Ld' register.
8370 Uncomment `doc-volume-ds-*' strings.
8371 Remove `doc-operating-system-default'.
8373 * tmac/doc-syms (Ld): Removed.
8374 * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
8378 * tmac/groff_mdoc.man: Many fixes and updates.
8380 2001-03-29 Werner LEMBERG <wl@gnu.org>
8382 * tmac/troffrc-end: Protect data with `.do'. Reported by T. Kurt
8383 Bond <tkb@tkb.mpl.com>.
8384 * tmac/www.tmac: Save compatibility mode.
8386 2001-03-28 Ruslan Ermilov <ru@freebsd.org>
8388 * tmac/groff_mdoc.man: Many fixes.
8390 2001-03-28 Werner LEMBERG <wl@gnu.org>
8392 * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
8395 2001-03-27 Werner LEMBERG <wl@gnu.org>
8397 * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
8398 diversion. This fixes overlong tags.
8400 2001-03-26 Werner LEMBERG <wl@gnu.org>
8402 * doc/groff.texinfo: Fixed and improved documentation of fonts.
8403 * tmac/doc-syms: Fix error messages.
8404 * tmac/an-old.tmac: Remove incorrect double backslashes.
8406 2001-03-24 Ruslan Ermilov <ru@freebsd.org>
8408 * tmac/Makefile.sub: Strip mdoc.local also
8409 * tmac/strip.sed: Fixed.
8411 2001-03-24 Werner LEMBERG <wl@gnu.org>
8413 * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
8414 selecting the font size.
8415 * tmac/groff_mdoc.man, NEWS: Document it.
8417 2001-03-23 Werner LEMBERG <wl@gnu.org>
8419 * src/roff/troff/div.cc (save_vertical_space): Add default argument
8421 * src/roff/troff/env.cc (family_change): Make `.fam' accept no
8422 argument to restore previous font family.
8423 * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
8425 * doc/groff.texinfo: More fixes and additions (mainly for font
8426 manipulating commands).
8428 * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
8429 * tmac/groff_mdoc.man: This. The quick reference has been removed.
8430 * tmac/Makefile.sub, NEWS: Updated.
8432 2001-03-23 Werner LEMBERG <wl@gnu.org>
8434 Replaced mdoc implementation. The new version is `state of the
8435 art', using almost all new features of groff 1.17 -- it won't run
8436 with older versions.
8438 * tmac/doc.tmac: Completely rewritten.
8439 * tmac/doc-common: Ditto.
8440 * tmac/doc-nroff: Ditto.
8441 * tmac/doc-ditroff: Ditto.
8442 * tmac/doc-syms: Ditto.
8443 * tmac/mdoc.local: New file.
8444 * tmac/groff_mdoc.samples.man: Replaced with ...
8445 * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
8446 * tmac/strip.sed: Updated.
8447 * tmac/Makefile.sub: Updated.
8450 * tmac/groff_man.man: Add `man.local' to the FILES section.
8452 2001-03-22 Werner LEMBERG <wl@gnu.org>
8454 * doc/groff.texinfo: Added many @noindent.
8455 Replaced @end_Example -> @endExample.
8456 Added info whether registers are r/o.
8457 Many other additions and fixes.
8459 2001-03-21 Werner LEMBERG <wl@gnu.org>
8461 * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
8462 in makeinfo of texinfo 4.0) to be used in @Def* macros.
8463 Improved @Def* macros: Now the exact syntax of request, register,
8464 and escapes is shown.
8465 Added macros for parentheses and brackets to be used in @Def*.
8466 Many fixes and improvements of the documentation.
8468 2001-03-20 Werner LEMBERG <wl@gnu.org>
8470 * doc/groff.texinfo: Added new index: `st' (for strings).
8471 Added macros @Defstr(x).
8472 Added macro @Example (adding @group).
8473 Other minor improvements.
8475 2001-03-19 Werner LEMBERG <wl@gnu.org>
8477 * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
8478 `rq' for requests. `fn' is no longer used.
8479 Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
8482 * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
8483 number with name of man page.
8485 2001-03-19 Larry Kollar <kollar@alltel.net>
8487 * doc/groff.texinfo: Complete revision. Added many @Deffn to gain
8490 2001-03-19 Werner LEMBERG <wl@gnu.org>
8492 * man/groff_font.man: Document `prepro', `postpro', and `print'.
8493 * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
8494 * src/devices/grohtml/grohtml.man: Fixing typos.
8496 2001-03-19 Gaius Mulley <gaius@glam.ac.uk>
8498 * tmac/s.tmac (@IP): Pass `.ip' html tag.
8499 * tmac/groff_mwww.man: Remove .LINE macro
8500 * tmac/www.tmac (LINE): Add `.ti'.
8502 * src/devices/grohtml/post-html.cc (html_printer): New member
8504 (html_printer::emit_raw): Use it.
8505 (html_printer::do_linelength): Ditto.
8506 (html_printer::do_pageoffset): Ditto.
8507 (html_printer::do_indentation): Ditto.
8508 (html_printer::do_tempindent): Ditto.
8509 (html_printer::do_break): Ditto.
8510 (html_printer::begin_page): Ditto.
8511 (html_printer::do_indentedparagraph): New function.
8512 (html_printer::troff_tag): Handle `.ip'.
8513 * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
8514 Add `<td width=...>' handling.
8515 (html_text::do_table): Add parameter.
8516 (html_text::do_indent): Updated.
8517 * src/devices/groohtml/html-text.h: Updated.
8519 2001-03-16 Gaius Mulley <gaius@glam.ac.uk>
8521 Introduced simple html tables to implement indentation.
8523 * src/devices/grohtml/html.h (word, word_list): New structures.
8524 (simple_output): Use it.
8525 * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
8526 (html_printer): Improve indentation handling.
8527 (html_printer::emit_raw): Set `in_table' element. Handle
8529 (html_printer::write_header): Move conditional downwards.
8530 Don't allow whitespace in tags.
8531 (html_printer::do_linelength): Handle line length and indentation
8533 (html_printer::do_pageoffset): Handle indentation conditionally.
8534 (html_printer::do_indentation): Ditto.
8535 (html_printer::do_tempindent): New function member.
8536 (html_printer::do_fill): Take care of indentation.
8537 (html_printer::do_flush): Finish table.
8538 (html_printer::do_links): Ditto.
8539 (html_printer::do_break): New function for handling `.br' and `.ti'.
8540 (html_printer::troff_tag): Use it.
8542 (html_printer::flush_globs): Fix.
8543 (html_printer::flush_page): Finish table.
8544 (html_printer::html_printer): Fix error message. Set up
8546 (html_printer::add_to_sbuf): Remove special handling of character
8548 (to_unicode): Remove `stop()'.
8549 (html_printer::write_title): Cleanup.
8550 (html_printer::begin_page): Use `put_string()'. Handle indentation.
8551 (html_printer::~html_printer): Flush text and end the line.
8553 * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
8554 * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
8556 (html_text::start_tag): Disable newlines.
8557 (html_text::table_is_void): New function.
8558 (html_text::issue_table_begin): Ditto.
8559 (html_text::issue_table_end): Ditto.
8560 (html_text::push_para): Better table handling.
8561 (html_text::do_indent): New function.
8562 (html_text::do_table): Ditto.
8563 (html_text::done_table): Ditto.
8564 (html_text::do_tt): Handle PRE_TAG.
8565 (html_text::is_in_table): New function.
8566 (html_text::check_emit_text): Handle tables.
8567 (html_text::do_emittext): Use `nl()'.
8568 (html_text::do_para): Handle table.
8569 (html_text::remove_def): New function.
8570 * src/devices/grohtml/output.cc (word, word_list): Implement
8572 (simple_output::end_line): Flush last word.
8573 (simple_output::simple_comment): Ditto.
8574 (simple_output::begin_comment): Recoded.
8575 (simple_output::end_comment): Ditto.
8576 (simple_output::comment_arg): Removed.
8577 (simple_output::check_newline): Improve test and flush last word.
8578 (simple_output::space_or_newline): Improved.
8579 (simple_output::write_newline): Replaced with...
8580 (simple_output::nl): This.
8581 (simple_output::put_raw_char): Flush last word.
8582 (simple_output::check_space): Removed.
8583 (simple_output::put_translated_string): Ditto.
8584 (simple_output::put_string): Simplified.
8585 (simple_output::put_number): Updated.
8586 (simple_output::put_float): Ditto.
8587 (simple_output::put_symbol): Removed.
8588 (simple_output::enable_newlines): Add `check_newline()'.
8589 (simple_output::flush_last_word): New function.
8591 * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
8592 * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
8594 * tmac/s.tmac (@PP, @IP): Add html conditional code.
8595 * tmac/an-old.tmac (TP): Ditto.
8597 2001-03-09 Ruslan Ermilov <ru@freebsd.org>
8599 * mdate.sh: Make it POSIX compliant.
8601 2001-03-09 Werner LEMBERG <wl@gnu.org>
8603 Added the `return' request to end a macro immediately. It simply
8604 pops iterators from the input stack until a macro iterator is found.
8606 * src/roff/troff/input.cc (input_iterator::is_macro,
8607 macro_iterator::is_macro): New member.
8608 (input_return_boundary): New class to signal an immediate return
8610 (input_stack::add_return_boundary, input_stack::is_return_boundary):
8612 (input_stack::clear): Use it.
8613 (input_stack::pop_macro): New function.
8614 (while_request): Use `is_return_boundary()'.
8615 (return_macro_request): New function.
8616 (init_input_requests): Use it.
8618 * src/roff/troff/TODO: Updated.
8619 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8621 2001-03-08 Werner LEMBERG <wl@gnu.org>
8623 * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
8626 2001-03-07 Werner LEMBERG <wl@gnu.org>
8628 Make `\B' more rigid.
8630 * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
8632 (get_number_rigidly): New function.
8633 * src/roff/troff/input.cc (do_expr_test): Use it.
8634 * src/roff/troff/token.h: Updated.
8636 * src/roff/troff/request.h: Fix typo (init_html_request ->
8637 init_markup_request).
8639 2001-03-04 Gaius Mulley <gaius@glam.ac.uk>
8641 Fixed grohtml handling of any named glyph for glyph indexes < 0x80.
8642 Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
8643 are now `.begin', `.end', `.image'.
8645 * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
8646 (html_printer::add_to_sbuf): Changing type of `code' parameter.
8647 Use add_char_to_sbuf().
8648 (to_unicode): New function.
8649 (char_translate_to_html): Changing type of `ch' parameter.
8651 (html_printer::~html_printer): Comment out doctype string.
8652 * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
8653 instead of `.html-end'.
8654 (write_start_image): Use `.begin' and `.image' instead of
8655 `.html-begin' and `.html-image'.
8656 * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
8657 (html_begin): Renamed to ...
8659 (html_end): Renamed to ...
8661 (html_image): Renamed to ...
8663 (init_html_requests): Renamed to ...
8664 (init_markup_requests): This.
8665 * tmac/www.tmac: Updated.
8667 2001-02-28 Bram <bram@avontuur.org>
8669 * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
8672 2001-02-26 David Leonard <david.leonard@csee.uq.edu.au>
8674 * doc/meref.me: Fixing some typos.
8676 2001-02-16 Werner LEMBERG <wl@gnu.org>
8678 * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
8679 method. Return `HYPHEN_MIDDLE' if it was `\:'.
8680 * src/roff/troff/node.h: Updated.
8682 2001-02-17 Ruslan Ermilov <ru@FreeBSD.org>
8684 * tmac/groff_tmac.man: Fix typo.
8686 2001-02-16 Werner LEMBERG <wl@gnu.org>
8688 Fixing a bug which prevented proper end-of-sentence recognition
8689 between an `unformatted' box and the following text. As a
8690 consequence, vertical line distances are no longer preserved in
8691 boxes after a call to `.unformat' -- because boxes aren't
8692 line-oriented (contrary to diversions), this doesn't make sense
8695 * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
8697 (vertical_size_node::set_unformat_flag): New method.
8698 * src/roff/troff/node.hh: Updated.
8699 * src/roff/troff/input.cc (word_space_node::reread,
8700 hmotion_node::reread): Reset `unformat' flag after usage.
8701 (unformat_macro): Append only if `set_unformat_flag()' returns
8703 * src/roff/troff/troff.man: Updated.
8705 2001-02-15 Werner LEMBERG <wl@gnu.org>
8707 * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
8708 documentation of `asciify' and `unformat' requests.
8710 2001-02-13 Werner LEMBERG <wl@gnu.org>
8712 Redesigned the `unformat' request. It is no longer connected with
8713 `asciify' but rather uses new `reread()' methods if the `unformat'
8714 flag is set. Additionally, the handling of space characters after
8715 unformatting has been fixed so that they retain their width.
8717 * src/roff/troff/node.h (width_list): New structure to store
8718 original widths of spaces.
8719 (node): Added `unformat' member.
8720 Replaced `num_spaces' variable with `orig_width' list.
8721 * src/roff/troff/node.cc (*node::asciify,
8722 asciify_reverse_node_list): Removed `unformat_only' flag and related
8724 (word_space_node::asciify, word_space_node::word_space_node): Use
8726 (word_space_node::~word_space_node): New destructor.
8727 (word_space_node::copy): Updated to handle `orig_width'.
8728 (hmotion_node::copy, unbreakable_space_node::copy): Updated.
8729 (*node::merge_space): Update `orig_width' list if necessary.
8730 (*node::set_unformat_flag): New methods to set the `unformat' flag.
8731 * src/roff/troff/enc.cc (environment::space_newline): Use
8733 (environment::space): Added method to handle space width and
8734 sentence space width as parameters. Use `width_list'.
8735 (environment::make_tab_node): Updated.
8736 * src/roff/troff/env.h: Updated.
8737 * src/roff/troff/input.cc (word_space_node::reread,
8738 unbreakable_space_node::reread, hmotion_node::reread): New methods
8739 to handle nodes specially if `unformat' flag is set.
8740 (do_asciify_macro): Renamed back to ...
8741 (asciify_macro): This.
8742 (unformat_macro): New implementation to simply set the `unformat'
8745 * MORE.STUFF: Added more info about deroff.
8747 2001-02-08 Werner LEMBERG <wl@gnu.org>
8749 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
8750 space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
8751 and `add_self()' methods to avoid hyphenation. For example, the
8752 hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
8753 soft hyphen after `foo'. Now the hyphen list is correctly
8754 `foo<ignore><ignore>bar'.
8756 2001-02-05 Yoshiteru Kageyama <yt-kage@cb3.so-net.ne.jp>
8758 * tmac/groff_tmac.man: Fix `BIR' macro.
8760 2001-02-04 Werner LEMBERG <wl@gnu.org>
8762 A new escape sequence `\:', inserting a zero-width break point.
8764 * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
8765 * src/roff/troff/input.cc (get_copy, token::next, asciify):
8767 * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
8769 (space_node): Add `was_escape_colon' member. Add `is_escape_colon()'
8770 and `asciify()' methods.
8771 * src/roff/troff/node.cc (space_node::space_node): Updated.
8772 (space_node::asciify): Handle `was_escape_colon'.
8773 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8775 Handle `\~' similar to other comparable requests.
8777 * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
8779 (token::next): Move creation of an unbreakable_space_node to...
8780 (token::add_to_node_list): Here.
8782 Fix a bug which sometimes prevented hyphenation of words connected
8783 with `\~' or `\ ' (and other escape sequences handled as
8784 TOKEN_NODE). This also fixes a hyphenation problem with boxes
8785 (after a call to the `unformat' request).
8787 * src/roff/troff/env.h (environment::possibly_break_line,
8788 environment::hyphenate_line): Introducing `start_here' parameter.
8789 * src/roff/troff/env.cc (environment::space_newline,
8790 environment::space): Use it.
8791 (environment::possibly_break_line, environment::hyphenate_line):
8793 * src/roff/troff/input.cc (process_input_stack): Use it.
8794 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
8795 space_char_hmotion_node, overstrike_node): Add
8796 `get_hyphenation_type()' method.
8797 * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
8798 if `unformat_only' is active.
8800 2001-01-30 Werner LEMBERG <wl@gnu.org>
8802 Implemented new read-only number register `.linetabs' which
8803 returns 1 if in line-tabs mode, 0 otherwise.
8805 * src/roff/troff/env.h (environment): Add get_line_tabs() member.
8806 * src/roff/troff/env.cc (get_line_tabs): New function.
8807 (init_env_requests): Use it.
8808 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8810 * VERSION, REVISION: Changing to 1.17.0.
8812 2001-01-28 Werner LEMBERG <wl@gnu.org>
8814 Fixed a bug which prevented hyphenation of words which are finished
8817 * src/roff/troff/token.h (token): Add enum type
8818 `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
8819 * src/roff/troff/input.cc (token::next, token::description,
8820 get_line_arg, token::add_to_node_list, token::process): Use it.
8822 2001-01-27 Werner LEMBERG <wl@gnu.org>
8824 * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
8825 * src/roff/troff/div.cc (do_divert): Use it.
8827 * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
8829 2001-01-25 Werner LEMBERG <wl@gnu.org>
8831 Adding the `linetabs' request. If set, tab distances are not
8832 computed relative to the input line but relative to the output line.
8834 * src/roff/troff/env.h (environment): New member `line_tabs'.
8835 * src/roff/troff/env.cc (line_tabs_request): Implement request.
8836 (environment::environment, environment::copy): Updated.
8837 (environment::distance_to_next_tab): Use `line_tabs'.
8838 (init_env_requests): Register request.
8839 * src/roff/troff/troff.man, man/groff.man, NEWS: Document it. Other
8842 2001-01-24 Werner LEMBERG <wl@gnu.org>
8844 Introducing a new read-only register `.int' which is set to a
8845 positive value if the last output line is interrupted (i.e., if it
8848 * src/roff/troff/env.cc (init_env_requests): Add it.
8849 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8851 2001-01-23 Gaius Mulley <gaius@glam.ac.uk>
8853 * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
8854 * src/preproc/html/pre-html.cc (findPrefix): New function which
8855 generates the troff executable name via the system prefix.
8856 * src/preproc/eqn/main.cc: Modified warning message.
8858 2001-01-23 Werner LEMBERG <wl@gnu.org>
8860 troff's `box' and `boxa' requests didn't preserve temporary
8863 * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
8864 `saved_target_text_length' members.
8865 * src/roff/troff/div.cc (do_divert): Use them.
8867 Tabs (but not yet leaders and fields) are now handled correctly by
8870 * node.h (hmotion_node): Add field `was_tab'.
8871 * env.cc (environment::make_tab_node): Set it.
8872 * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
8874 Added new request `unformat' which will, contrary to `asciify',
8875 preserve font information after unformatting (i.e., only nodes
8876 dealing with horizontal space are converted back to input
8879 * input.cc (asciify_macro): Renamed to ...
8880 (do_asciify_macro): this, having a new parameter `unformat_only'.
8881 (asciify_macro, unformat_macro): New; using do_asciify_macro.
8882 (init_input_requests): Added `unformat'.
8883 * node.cc (*_node::asciify), asciify_reverse_node_list: Added
8884 parameter to control asciification process.
8885 * node.h (*_node::asciify): Ditto.
8886 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8888 2001-01-20 Werner LEMBERG <wl@gnu.org>
8890 * doc/groff.texinfo: Minor improvement of `.in' documentation.
8892 2001-01-18 Werner LEMBERG <wl@gnu.org>
8894 * tmac/ps.tmac: Remove call of psold.tmac.
8895 * tmac/psold.tmac: Comment updated.
8896 * tmac/psnew.tmac: Removed since no longer needed.
8897 * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
8899 * font/devutf8/R.proto: Adding `shc' glyph.
8900 * font/devutf8/NOTES: Updated.
8902 * test-groff: Updated.
8904 2001-01-15 Gaius Mulley <gaius@glam.ac.uk>
8906 First cut of the new html device driver. Changes to pre-html and
8907 the new grohtml are too numerous to be documented here.
8909 Stuff related to `html' has been renamed to `html-old' and `html2'
8910 stuff has been renamed to `html' (including directories). The new
8911 html device driver is therefore invoked as `-Thtml'.
8913 Added new `\O' escape to suppress output (needed by html driver).
8915 Added functions and code to pass info about input-level commands
8916 (`.in', `.fl', etc.) to html driver.
8918 Three new functions (.html-begin, .html-end, and .html-image) for
8919 better html handling: `html-begin' will execute the remaining line
8920 if at the outermost nesting level, increasing an internal counter.
8921 `html-end' does the same but decreases the internal counter.
8922 `html_image' puts its arguments into a special node (suppress_node)
8923 to define an image region.
8925 The `output' request has been removed.
8927 * tmac/html-tags.tmac: Removed.
8928 * tmac/arkup.tmac: Updated and renamed to ...
8929 * tmac/www.tmac: New file.
8930 * tmac/markup.tmac Updated and renamed to ...
8931 * tmac/mwww.tmac: New file.
8932 * tmac/Makefile.sub: Updated.
8933 * tmac/an-old.tmac: Updated.
8934 * tmac/eqnrc: Updated.
8935 * tmac/groff_man.man
8936 * tmac/groff_markup.man: Updated and renamed to ...
8937 * tmac/groff_mwww.man: New file.
8938 * tmac/groff_tmac.man: Updated.
8939 * tmac/html-old.tmac: Updated and Renamed from html.tmac.
8940 * tmac/html.tmac: Updated and renamed from html2.tmac.
8941 * tmac/pspic.tmac: Updated html support.
8942 * tmac/s.tmac: Added html output support.
8943 * tmac/troffrc, tmac/troffrc-end: Updated.
8945 * Makefile.in, doc/Makefile: Updated.
8946 * doc/groff.texinfo: Added info about new `\O' escape.
8947 * doc/homepage.ms: Use `MAILTO' macro.
8949 * font/devhtml/DESC.proto: Add `C' font.
8950 * font/devhtml/Makefile.sub: Updated.
8951 * font/devhtml/R.proto: Minor fixes.
8952 * font/devhtml-old/Makefile.sub: Updated.
8954 * src/devices/grohtml-old/Makefile.sub: Updated.
8956 * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
8958 * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
8959 graphic_start): Add `inline' parameter. Update.
8960 (html_end_suppress, graphic_end): Update.
8962 * src/include/html-strings.h: New file.
8963 * src/include/htmlindicate.h: Comments updated.
8964 * src/include/printer.h: Updated.
8966 * src/preproc/eqn/main.cc (do_file, main): Updated.
8967 * src/preproc/pic/troff.cc (troff_output::start_picture,
8968 troff_output::finish_picture): Updated.
8969 * src/preproc/tbl/main.cc (process_input_file): Updated.
8971 * src/roff/groff/groff.cc (main): Updated.
8972 Pass device arguments to predrivers also.
8973 Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
8974 * src/roff/troff/env.h (environment): Updated.
8975 New elements `need_eol' and `ignore_next_eol' (for html output).
8976 * src/roff/troff/env.cc (environment::environment): Add initializers
8977 for `need_eol' and `ignore_next_eol'.
8978 (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
8980 (point_size, fill, no_fill, center, right_justify, line_length,
8981 indent, temporary_indent, break_request, handle_tab): Use
8983 (set_tabs): Use `add_html_tag_tabs()'.
8984 (environment::add_html_tag): Updated.
8985 (environment::do_break): Updated.
8986 * src/roff/troff/div.cc (space_request, flush_output): Use
8987 `environment::add_html_tag()'.
8988 * src/roff/troff/input.cc: Updated.
8989 New variable `html_level' to indicate nested `html-begin' requests.
8990 (file_iterator::fill): Use `environment::add_html_tag_eol()'.
8991 (non_interpreted_char_node, token_node, non_interpreted_node): Add
8992 `force_tprint()' method.
8993 (token::next): Handle `\O'.
8994 (do_suppress): Implement it.
8995 (html_begin, html_end, html_image): New functions.
8996 (init_output_requests): Renamed to ...
8997 (init_html_requests): this.
8999 (macro::append_str, macro::append_unsigned, macro::append_int): New
9001 New variable `output_low_mark_miny' to limit minimal value of y.
9002 (reset_output_registers): Use it.
9003 (output_request): Removed.
9004 (get_output_registers): New function.
9005 * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
9006 (*_node): Added `force_tprint()' if necessary.
9007 (special_node): New elements `tf' and `get_tfont()'.
9008 (suppress_node): New class.
9009 * src/roff/troff/node.cc:
9010 New global variables `image_no' and `suppress_start_page'.
9011 (real_output_file): New method `is_on()'.
9012 (troff_output_file): New method `start_special(tfont)'.
9013 (troff_output_file::really_print_line): Use `tprint' conditionally.
9014 (real_output_file::print_line): Updated.
9015 (real_output_file::on): Updated.
9016 (*_node): Added `force_tprint()'.
9017 (special_node::special_node): Initializer updated.
9018 (special_node::same, special_node::copy, special_node::tprint_start):
9020 (get_reg_int, get_reg_str): New functions.
9021 (suppress_node::*): New methods.
9022 New global variables last_position, last_image_filename;
9023 (min): New inline function.
9024 * src/roff/troff/reg.h, src/roff/troff/request.h,
9025 src/roff/troff/troff.h: Updated.
9027 2001-01-13 Werner LEMBERG <wl@gnu.org>
9029 * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
9030 documentation of `asciify' request.
9032 2001-01-12 Werner LEMBERG <wl@gnu.org>
9034 * src/roff/troff/input.cc: Move definition of special characters
9035 like `ESCAPE_TILDE' to ...
9036 * src/roff/troff/input.h: New file.
9037 * src/roff/troff/Makefile.sub (HDRS): Add it.
9039 Extending the .asciify request to `unformat' space characters also.
9041 * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
9042 to count input space characters.
9043 Update constructors to take care of it.
9044 * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
9045 `ESCAPE_SPACE' instead of normal space.
9046 (word_space_node::asciify): New method.
9047 (unbreakable_space_node::asciify): New method.
9048 (word_space_node::merge_space): New method.
9049 * src/roff/troff/env.cc (environment::space_newline,
9050 environment::space): Add code to initialize `num_spaces' (using the
9051 constructor of `word_space_node').
9052 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
9055 2001-01-09 Werner LEMBERG <wl@gnu.org>
9057 * man/groff_char.man: Use table header traps only conditionally.
9059 2001-01-09 Bjarni Ingi Gíslason <bjarniig@hi.is>
9061 * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
9063 2001-01-08 Werner LEMBERG <wl@gnu.org>
9065 Introducing the `box' and `boxa' requests which are similar to
9066 `di' resp. `da' but omitting a partially filled line (which is
9067 restored after ending the diversion).
9069 * src/roff/troff/div.h (diversion): Add elements to save partially
9071 * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
9072 partially filled line.
9073 (divert, divert_append): Updated.
9074 (box, box_append): New functions.
9075 (init_div_requests): Use them.
9076 * src/roff/troff/env.h (environment): do_divert() is now a friend.
9077 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9079 * doc/groff.texinfo: Fix documentation of `lf' request.
9081 2000-12-25 Werner LEMBERG <wl@gnu.org>
9083 * src/roff/troff/troff.man, NEWS: Document `writem' request.
9085 2000-12-21 Werner LEMBERG <wl@gnu.org>
9087 Ignore `ss' request if in compatibility mode.
9089 * src/roff/troff/input.cc: Make `compatible_flag' non-static.
9090 * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
9091 * src/roff/troff/env.cc (space_size): Use it.
9093 * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
9094 `ss' request in nroff mode.
9096 * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
9099 2000-12-15 Ruslan Ermilov <ru@FreeBSD.org>
9101 * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
9103 2000-12-13 Werner LEMBERG <wl@gnu.org>
9105 * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
9106 * src/preproc/eqn/neqn.man: Small fixes and additions.
9108 2000-12-13 Ruslan Ermilov <ru@FreeBSD.org>
9110 * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
9113 * src/preproc/eqn/neqn.man: New file.
9115 * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
9118 * tmac/e.tmac: Add `T&' macro.
9119 Fix `indent cannot be negative' warning.
9120 * tmac/s.tmac: Fix `indent cannot be negative' warning.
9122 2000-12-07 Werner LEMBERG <wl@gnu.org>
9124 * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
9126 2000-12-06 Werner LEMBERG <wl@gnu.org>
9128 * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
9131 * MORE.STUFF: Added info about deroff for djgpp.
9133 * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
9134 documentation of -rcR switch.
9136 2000-12-03 Werner LEMBERG <wl@gnu.org>
9138 * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
9139 if -rcR=1 (which is now the default in nroff mode), a single, very
9140 long page is created instead of multiple pages: All `ne' and `wh'
9141 requests are put into conditionals; a new macro `an-end' is added to
9142 be called with `em'.
9144 Some other minor cleanups.
9146 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
9148 2000-12-02 Werner LEMBERG <wl@gnu.org>
9150 Fixing a bug which prevented hyphenation in words followed
9151 immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
9153 * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
9154 Adding possibly_break_line().
9155 * src/roff/troff/env.h (environment): Make possibly_break_line()
9158 Make `\~' usable in .tr request.
9160 * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
9161 (token): Add stretchable_space().
9162 * src/roff/troff/input.cc (token::next, token::delimiter,
9163 token::description, process_input_stack, do_translate,
9164 add_to_node_list, token::process): Use it.
9165 * src/roff/troff/node.h (node): Add fourth parameter to add_char()
9166 for adjusting the space.
9167 * src/roff/troff/node.cc (node::add_char): Implement it. Add code
9168 for stretchable space.
9169 * src/roff/troff/input.cc (token::add_to_node_list): Use it.
9170 (make_node): Add code for stretchable space.
9171 * src/roff/troff/env.cc (environment::add_char): Use it.
9172 * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
9173 (get_copy, token::next, transparent_translate, asciify): Use it.
9175 * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
9176 doc/groff.texinfo: Updated.
9177 * man/groff.man: Small reorderings.
9179 2000-11-23 Werner LEMBERG <wl@gnu.org>
9182 * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
9184 * src/roff/troff/input.cc (main): Add `config_macro_path' and
9185 `safer_macro_path' to -M option.
9186 * src/roff/troff/troff.man: Fixes.
9188 2000-11-22 Werner LEMBERG <wl@gnu.org>
9190 Use safer path (except for config files) if -U isn't specified. Add
9191 a special macro path (without home and current directory) for config
9192 files. Add home directory to unsafe path for consistency. Don't
9193 include the home directory in the font path.
9195 * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
9197 * src/include/macropath.h: Add `config_macrp_path'.
9198 * src/libs/libgroff/fontfile.cc: Fix font path.
9199 * src/roff/troff/input.cc (process_startup_file): Use
9200 `config_macro_path'.
9201 (main): Select unsafe path if -U is given.
9203 * src/preproc/eqn/main.cc (main): Fixing search path for
9205 * src/preproc/eqn/eqn.man: Updated.
9207 * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
9210 * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
9211 src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
9212 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
9213 src/devices/grotty/grotty.man: Updated.
9215 * Makefile.in: Fix comments.
9217 2000-11-17 Werner LEMBERG <wl@gnu.org>
9219 * tmac/safer.tmac: Empty file added (again) for compatibility
9221 * tmac/Makefile.sub: Updated.
9223 2000-11-16 Werner LEMBERG <wl@gnu.org>
9225 * src/devices/grodvi/dvi.cc (main),
9226 src/devices/grohtml2/post-html.cc (main),
9227 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
9228 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
9229 (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
9230 (main), src/preproc/html2/pre-html.cc (main),
9231 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
9232 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
9233 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
9234 (main), src/utils/hpftodit/hpftodit.cc (main),
9235 src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
9236 (main), src/utils/lookbib/lookbib.cc (main),
9237 src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
9238 (main): Use stdout for -v.
9239 * src/roff/groff/groff.cc (run_commands),
9240 src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
9241 to make direct printing to stdout possible.
9242 * src/roff/groff/pipeline.h: Updated.
9244 * src/utils/afmtodit/afmtodit.pl: Add -v switch.
9245 * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
9246 * src/utils/afmtodit/afmtodit.man: Updated.
9248 * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
9249 (version): New function.
9251 * src/utils/addftinfo/addftinfo.man: Updated.
9253 * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
9254 Fixing copyright dates.
9256 * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
9259 * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
9262 * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
9264 2000-11-15 Werner LEMBERG <wl@gnu.org>
9266 In all programs, make -v return immediately with exit status 0 to
9267 be compliant with the GNU standard.
9269 * src/devices/grodvi/dvi.cc (main),
9270 src/devices/grohtml2/post-html.cc (main),
9271 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
9272 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
9273 (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
9274 (main), src/preproc/html2/pre-html.cc (main),
9275 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
9276 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
9277 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
9278 (main): Implement it.
9281 * src/roff/groff/groff.cc (main): Add copyright notice. Add refer
9282 and postprocessors to the -v option.
9284 * src/roff/grog/grog.pl: Implement -v.
9285 * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
9286 * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
9288 * src/roff/nroff/nroff.sh: Implement -v.
9289 * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
9290 * src/roff/nroff/nroff.man: Updated.
9292 * src/preproc/eqn/main.cc (main): Fix comment typo.
9294 * MORE.STUFF: Added info about djgpp port of grap.
9296 2000-11-14 Werner LEMBERG <wl@gnu.org>
9298 * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
9299 mode (or rather, implemented non-compatibility mode).
9300 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
9302 * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
9303 replacing it -- we don't find gxditview otherwise.
9304 * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
9306 * src/preproc/pic/depend: Removed. Unnecessary.
9308 Implemented dummy keyword `solid' in pic for compatibility with
9311 * lex.cc (lookup_keyword): Added `solid'.
9312 * pic.y: Added SOLID with dummy rule.
9313 * pic.cc, pic_tab.h: Regenerated.
9314 * doc/pic.ms: Updated.
9316 2000-11-13 Werner LEMBERG <wl@gnu.org>
9318 For security reasons, don't use the current directory but the home
9319 directory while searching and scanning troffrc and troffrc-end.
9320 Similarly, replace the current directory with the home directory
9323 * Makefile.in (fontpath, tmacpath): Remove current directory.
9325 * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
9326 two parameters `add_home' and `add_current'.
9327 (search_path::~search_path, search_path::command_line_dir,
9328 search_path::open_file): Remove tests for `dirs' being zero.
9329 * src/include/searchpath.h: Adjust.
9330 * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
9332 * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
9334 * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
9335 * src/roff/troff/input.cc: Use `mac_path', initialized with
9337 (process_startup_file): Set `mac_path' to `safer_macro_path'.
9338 * src/roff/troff/env.cc: Use `mac_path'.
9340 * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
9342 * NEWS, man/roff.man, src/roff/troff/troff.man,
9343 src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
9346 2000-11-12 Werner LEMBERG <wl@gnu.org>
9348 * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
9350 * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
9351 * configure.in: Fix typo in comment.
9352 * configure: Regenerated.
9354 * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
9357 2000-11-08 Werner LEMBERG <wl@gnu.org>
9359 Add system tmac directory (/usr/local/lib/groff/site-tmac).
9361 * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
9362 (uninstall_dirs): Add $(libdir), $(libprogramdir), and
9365 * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
9366 * tmac/Makefile.sub (install_data): Create
9367 $(systemtmacdir) and $(localtmacdir).
9368 (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
9369 * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
9370 NEWS, doc/groff.texinfo: Updated and minor fixes.
9372 * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
9373 * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
9374 $(systemtmacdir) since the wrapper files are platform-dependent.
9376 2000-11-01 Werner LEMBERG <wl@gnu.org>
9378 * doc/groff.texinfo: Fix typo.
9380 2000-10-26 Werner LEMBERG <wl@gnu.org>
9382 Convert macros `tmac.XXX' to `XXX.tmac'. Special cases:
9383 tmac.doc.old -> doc-old.tmac
9384 tmac.an.old -> an-old.tmac
9386 * tmac/tmac.*: Moved to ...
9387 * tmac/*.tmac: this.
9388 * tmac/man.local: Fix comment.
9389 * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
9390 tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated.
9391 Added some `FILES' sections. More use of @...@ directives. Other
9393 * arch/djgpp/README, font/devutf8/NOTES: Updated.
9394 * doc/homepage.ms, doc/groff.texinfo: Updated.
9395 * man/groff.man, man/roff.man: Updated.
9396 * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
9397 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
9398 src/devices/grotty/grotty.man: Updated.
9399 * src/preproc/pic/pic.man: Updated.
9400 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
9401 instead of -mdoc.old.
9402 * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
9403 * src/roff/nroff/nroff.man: Updated.
9406 * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
9408 * tmac/mm.diff: Removed -- it has no use now since the mm package
9411 * tmac/*: Removed trailing spaces.
9413 * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
9414 the tmac subdirectory also).
9416 * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
9417 * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
9418 stuff since it is no longer needed.
9420 * README, PROBLEMS: Updated.
9422 2000-10-25 Werner LEMBERG <wl@gnu.org>
9424 Invert current behaviour: Search first FOOBAR.tmac, then
9427 * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
9428 (open_mac_file, macro_source): Implement it.
9429 * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
9430 doc/groff.texinfo, NEWS: Document it.
9432 * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
9433 Small documentation improvements.
9435 * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
9438 * font/devps/Makefile.sub: Fix rules for dingbats.*map.
9440 2000-10-24 Werner LEMBERG <wl@gnu.org>
9442 Add local tmac directory (groff/site-tmac).
9444 * Makefile.in: Add $(localtmacdir).
9445 (uninstall_dirs): Add $(localtmacdir).
9446 * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
9447 * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
9448 in $(localtmacdir). Create $(localtmacdir).
9449 * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
9450 Updated and minor fixes.
9452 Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
9454 * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
9456 2000-10-23 Werner LEMBERG <wl@gnu.org>
9458 Move hyphen.us to tmac directory.
9460 * src/roff/troff/hyphen.us: Removed.
9461 * src/tmac/hyphen.us: Added.
9462 * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
9464 Change installation structure for data files from .../groff/... to
9465 .../groff/<version><revision>/... to be conform with other GNU
9468 * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
9469 doc/Makefile: Implement it.
9470 * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
9471 * configure: Updated.
9472 * arch/djgpp/README, font/devutf8/NOTES: Use it.
9473 * NEWS: Document it.
9474 * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
9475 @MACRODIR@ instead of hard-coded directories.
9477 2000-10-22 Werner LEMBERG <wl@gnu.org>
9479 Implement $GROFF_BIN_PATH environment variable (which defaults to
9480 $bindir) used for child programs of groff and similar wrappers.
9482 * gendefs.sh: Improve documentation.
9483 * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
9484 src/preproc/eqn/Makefile.sub (neqn),
9485 src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
9486 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
9488 * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
9489 $GROFF_PATH__ (the latter for communication with troff).
9490 * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
9492 * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
9493 doc/groff.texinfo: Document it.
9495 * doc/groff.texinfo: Improve documentation of troff's -a option.
9497 2000-10-17 Gaius Mulley <gaius@glam.ac.uk>
9499 * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
9500 non-intrusive eol marker.
9501 (troff_output_file::determine_line_limits): New function.
9502 (troff_output_file::draw): Use it.
9503 * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
9504 output_pending_lines() instead of output_line().
9505 * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
9506 * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
9507 createImage): Small fixes.
9509 2000-10-14 Werner LEMBERG <wl@gnu.org>
9511 Replace tmac.safer with a real secure solution.
9513 * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
9514 system_request, pipe_output): Disable requests if in safer mode.
9515 * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
9516 * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
9517 * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
9518 doc/groff.texinfo, src/roff/groff/groff.man,
9519 src/roff/troff/troff.man, arch/djgpp/README: Updated.
9521 * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
9522 (resource_manager::output_prolog): Replace setenv() with putenv().
9524 2000-10-09 Werner LEMBERG <wl@gnu.org>
9526 * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
9527 src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
9528 src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
9529 src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
9530 compilation errors with some compilers. It seems that this code
9531 is no longer necessary -- if yes, it is easy to add some #ifdef's
9532 for that particular old-fashioned compiler.
9534 * MORE.STUFF: Added info about Meta-tbl.
9536 * doc/groff.texinfo: Added more info about `.if "..."..."'.
9538 2000-10-07 Werner LEMBERG <wl@gnu.org>
9540 Adding a new escape sequence \B'...': If the string between
9541 the delimiters is a valid numeric expression, return the character
9542 `1', and `0' otherwise. This is an analogon to \A.
9544 * src/roff/troff/input.cc (do_expr_test): Implement it.
9545 (token::next): Use it.
9546 * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
9548 * tmac/tmac.trace: Made independent from escape character.
9550 2000-10-06 Werner LEMBERG <wl@gnu.org>
9552 Adding a new request .dei: define indirect. The first and second
9553 parameter of .dei are taken from string registers instead directly;
9554 this very special request is needed to make tmac.trace independent
9555 from the escape character (which might even be disabled).
9557 * src/roff/troff/input.cc (do_define_macro): Implement it.
9558 (define_macro_indirect): New function.
9559 (init_input_requests): Use it.
9561 Adding two requests .ecs and .ecr: Save and restore the escape
9562 character. These two requests are needed to make tmac.trace
9563 independent from the escape character (which might even be
9566 * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
9568 (init_input_requests): Use it.
9570 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
9572 2000-09-22 Ricardo Soares Guimarães <ricardo@conectiva.com.br>
9574 Adding a new option -P and new environment variable GROPS_PROLOGUE
9575 to grops, selecting a different prologue file (minor modifications
9578 * src/devices/grops/psrm.cc (resource_manager::output_prolog),
9579 src/devices/grops/ps.cc (main): Implement it.
9580 * src/devices/grops/grops.man, NEWS: Document it.
9582 2000-09-22 Werner LEMBERG <wl@gnu.org>
9584 * INSTALL: Add info about selecting paper format.
9586 2000-09-21 Werner LEMBERG <wl@gnu.org>
9588 * src/roff/troff/input.cc (main): Fixing compiler warning.
9589 * src/include/{driver.h, lib.h}: Move inclusion of string.h and
9590 strings.h from the former to the latter.
9591 * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
9592 stuff from the former to the latter.
9594 2000-09-11 Werner LEMBERG <wl@gnu.org>
9596 Implementing two new requests .tm1 and .tmc: The former is similar
9597 to .tm but can output leading spaces; its syntax is similar to
9598 defining a string, i.e., a `"' can be used to mark the beginning of
9599 the string to be written to stderr: `.tm1 " test'. The latter is
9600 similar to .tm1 but doesn't write out a final newline character.
9602 * src/roff/troff/input.cc (terminal1, terminal_continue,
9603 do_terminal): New functions.
9604 (init_input_requests): Use them.
9605 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
9607 2000-09-09 Werner LEMBERG <wl@gnu.org>
9609 * tmac/groff_mdoc.samples.man: Small fixes.
9611 2000-09-08 Werner LEMBERG <wl@gnu.org>
9613 * tmac/groff_mdoc.man: Fixing typo.
9615 2000-09-02 Werner LEMBERG <wl@gnu.org>
9617 Implementing a .nop request which does nothing.
9619 * src/roff/troff/input.cc (nop_request): New function.
9620 (init_input_requests): Use it.
9621 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
9623 2000-09-01 Werner LEMBERG <wl@gnu.org>
9625 * doc/groff.texinfo: Added some comments.
9627 2000-08-30 Werner LEMBERG <wl@gnu.org>
9629 * src/roff/troff/TODO: Updated.
9631 2000-08-25 Werner LEMBERG <wl@gnu.org>
9633 * doc/groff.texinfo: Fix comment how to compile the DVI file.
9635 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
9637 * font/devps/generate/Makefile (SHELL): Define explicitly to
9638 "/bin/sh", for non-Unix platforms.
9639 (extraclean): Use a more portable "" quoting instead of a
9640 backslash (which doesn't work on DOS/Windows).
9642 * font/devlj4/generate/Makefile (extraclean): Ditto.
9644 * font/devdvi/generate/Makefile (extraclean): Ditto.
9646 2000-08-25 Werner LEMBERG <wl@gnu.org>
9648 * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
9649 src/roff/troff/troff.man: Document Eli's latest changes.
9651 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
9653 * src/roff/troff/input.cc (open_mac_file, macro_source): Support
9654 macro file names of the form NAME.tmac as well as tmac.NAME.
9656 2000-08-25 Werner LEMBERG <wl@gnu.org>
9658 * src/include/posix.h: Remove definition of FILENAME_MAX.
9660 * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
9661 `sys_fatal' and `stop' function().
9663 * test-groff: Updated.
9665 2000-08-24 Gaius Mulley <gaius@glam.ac.uk>
9667 Added the new troff command .output <arg> to suppress output (while
9668 still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
9669 registers (for passing the output dimensions to the output device).
9671 * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
9673 * src/roff/troff/node.h, src/roff/troff/node.cc
9674 (troff_output_file::really_print_line,
9675 ascii_output_file::really_print_line,
9676 supress_output_file::really_print_line): Use `width' parameter.
9677 (troff_output_file::really_on, troff_output_file::really_off,
9678 output_file::on, output_file::off, real_output_file::on,
9679 real_output_file::off, real_output_file::really_on,
9680 real_output_file::really_off): New functions.
9681 (real_output_file:public output_file): New variable `output_on'.
9682 (real_output_file::begin_page, real_output_file::copy_file,
9683 real_output_file::transparent_char, real_output_file::print_line):
9685 (real_output_file::print_line): Use check_output_limits.
9686 * src/roff/troff/reg.h, src/roff/troff/request.h,
9687 src/roff/troff/input.cc (assign_registers): New function to remove
9689 (do_ps_file): Use it.
9690 (check_output_limits, reset_output_registers, output_request,
9691 init_output_requests): New functions.
9692 (init_input_requests): Updated.
9694 Added new grohtml2 device and html2 preprocessor (coding
9695 not yet finished) which will eventually replace grohtml.
9697 * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
9699 * src/include/htmlindicate.h, src/include/htmlindicate
9700 (html_begin_suppress, html_end_suppress): New functions.
9701 * src/preproc/tbl/main.cc: Use it.
9702 * src/roff/groff/groff.cc: Add support for html2 device (which will
9703 automatically invoke the html2 preprocessor).
9704 * src/roff/troff/input.cc (is_html2): New variable.
9705 * src/roff/troff/troff.h, src/roff/troff/env.h,
9706 src/roff/troff/env.cc (environment::add_html_tag): New function
9708 (environment::do_break): Use it.
9709 * font/devhtml2/*: New files.
9710 * src/devices/grohtml2: New device.
9711 * src/preproc/html2: New preprocessor.
9712 * tmac/tmac.html-tags, tmac/tmac.html2: New files.
9714 2000-08-23 Werner LEMBERG <wl@gnu.org>
9716 * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
9718 2000-08-22 Werner LEMBERG <wl@gnu.org>
9720 * src/include/lib.h: Provide a fix for IRIX to not include
9723 2000-08-18 Werner LEMBERG <wl@gnu.org>
9725 * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
9726 since some non-GNU sed programs can't handle null regexps.
9727 * configure, src/preproc/eqn/Makefile.sub,
9728 src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
9730 * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
9731 bug (string.h and strings.h are both needed according to latest
9734 * MORE.STUFF: Added info about unroff and troffcvt.
9736 2000-08-08 Werner LEMBERG <wl@gnu.org>
9738 * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
9741 * tmac/tmac.man.old: Remove unused number register.
9743 * tmac.doc: Minor documentation fix.
9745 2000-08-07 Paul Eggert <eggert@twinsun.com>
9747 * src/roff/groff/pipeline.c (is_system_shell):
9748 Fix typo: "monocased_shell" no longer exists.
9750 2000-08-07 Paul Eggert <eggert@twinsun.com>
9752 Remove FILENAME_MAX limits.
9754 * src/roff/groff/pipeline.c (is_system_shell): Do not assume
9755 that the argument length is less than FILENAME_MAX.
9756 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
9757 Use struct hack to allocate and free file name.
9758 (struct xtmpfile_list): fname is now part of the structure,
9759 not a pointer to another string.
9761 2000-08-07 Tom Schmidt <tschmidt@micron.com>
9763 * src/include/posix.h: Add a default value for FILENAME_MAX.
9765 2000-08-06 Paul Eggert <eggert@twinsun.com>
9767 Add support for new BSD-style man pages (with ".Dd" instead of
9768 ".TH"), so that "groff -man" understands both styles, even
9769 when running "groff -man" on a host whose system man page
9770 macros don't support ".Dd".
9772 * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
9773 (stamp-wrap): Source tmac.andoc first when wrapping man macros,
9774 in case the system man macros don't define Dd or TH.
9776 * tmac/tmac.an.old: Renamed from tmac/tmac.an.
9777 * tmac/tmac.an: New one-line file.
9778 * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
9780 2000-08-06 Werner LEMBERG <wl@gnu.org>
9782 * src/roff/troff/troff.man: Fixing typos.
9784 Version 1.16.1 released
9785 =======================
9787 2000-07-31 Werner LEMBERG <wl@gnu.org>
9789 Preparing release 1.16.1.
9791 * REVISION: Revision number set to 1.
9792 * MORE.STUFF: Added info about port to DOS.
9793 * NEWS, win32-diffs: Updated.
9795 * src/include/nonposix.h: Remove first line -- this file is used
9798 * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
9801 2000-07-30 Werner LEMBERG <wl@gnu.org>
9803 * doc/texinfo.tex: Update to latest version.
9805 2000-06-28 Paul Eggert <eggert@twinsun.com>
9807 * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
9808 commands that fail. Don't assume that "export a=b" is valid shell
9809 syntax. This is needed for Solaris 2.5.1.
9811 * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
9812 comment about missing Solaris headers.
9814 * PROBLEMS: Add section about problems with Sun Make and VPATH.
9816 2000-06-25 Werner LEMBERG <wl@gnu.org>
9818 * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
9821 * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
9823 * win32-diffs: Updated.
9824 * README.WIN32: Added CRs to make all Windows editors happy.
9826 * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
9827 src/roff/groff/pipeline.c).
9829 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
9831 * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
9832 $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
9834 2000-06-17 Eli Zaretskii <eliz@is.elta.co.il>
9836 * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
9837 (tfm::load, gf::load): Open tfm and gf files in binary mode: these
9839 (main): Support non-Posix systems with several different styles of
9840 slash characters in file names.
9842 * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
9843 (main) [SET_BINARY]: Switch stdin into binary mode.
9845 * src/utils/indxbib/indxbib.cc: #include nonposix.h.
9846 (main): Support file names with several possible slash-type
9847 characters, as given by DIR_SEPS[] in nonposix.h.
9848 (main) [__MSDOS__]: If renaming the temporary index file fails
9849 because it has more than one dot in its trunk, replace the dot
9850 with an underscore and try again.
9851 (do_file): Use FOPEN_RB instead of "r". Skip every CR before a
9853 [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
9855 * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
9856 (File::File): Open the input file in binary mode. Strip CR
9857 characters from each CR-LF pair.
9858 (xbasename): Support file names with several possible slash-type
9859 characters, as given by DIR_SEPS[] in nonposix.h.
9861 * src/include/Makefile.sub (HDRS): Add nonposix.h.
9863 * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
9864 (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
9865 [!_POSIX_VERSION]: Define for traditional Unix systems.
9866 (real_output_file::real_output_file): Remove the MSVC-specific
9867 call to popen, use instead POPEN_WT, appropriately defined on
9868 nonposix.h. #include nonposix.h.
9869 (real_output_file::~real_output_file): Remove the MSVC-specific
9870 call to pclose, a suitable macro is now defined on nonposix.h.
9871 Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
9872 and WEXITSTATUS instead of assuming traditional Unix
9873 interpretation of the status returned by pclose.
9875 * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
9876 call to popen, use POPEN_RT instead (appropriately defined on
9877 nonposix.h). #include nonposix.h.
9878 (ps_bbox_request): Open the PostScript file in binary mode.
9879 Close the file after processing it.
9880 (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
9883 * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
9884 A version of run_pipeline that doesn't use `fork'.
9885 (signal_catcher) [__MSDOS__ || _WIN32]: New function.
9886 (system_shell_name, system_shell_dash_c)
9887 (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
9888 the ugliness of testing DOS/Windows file names for equality, and
9889 support both stock shells and ports of Unix shells.
9891 * src/roff/groff/groff.cc: #include nonposix.h.
9892 (BSHELL): Definition moved to nonposix.h.
9893 (main): Use PATH_SEP[0] instead of literal ':'. Use BSHELL_DASH_C
9894 instead of a literal "-c".
9895 (xbasename): Support file names with several possible slash-type
9896 characters, as given by DIR_SEPS[] in nonposix.h.
9897 (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
9900 * src/preproc/soelim/soelim.cc: #include nonposix.h.
9901 (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
9903 * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
9906 * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
9908 * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
9911 * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
9913 * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
9914 P_tmpdir is defined, use it instead of the literal "/tmp".
9915 (remove_tmp_files, add_tmp_file): New functions.
9916 (xtmpfile): Record temporary files and register an atexit function
9917 to delete them explicitly, instead of relying on the OS to do
9918 that, which doesn't work on non-Unix systems.
9920 * src/libs/libgroff/searchpath.cc: #include nonposix.h.
9921 (search_path::search_path): Use PATH_SEP instead of a literal
9923 (search_path::command_line_dir): Ditto.
9924 (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
9925 to support non-Posix systems.
9927 * src/libs/libbib/search.cc: #include nonposix.h.
9928 (search_list::add_file): Open the file in binary mode.
9930 * src/libs/libbib/linear.cc: #include nonposix.h.
9931 (file_buffer::load): Remove \r characters preceding \n from the
9934 * src/libs/libbib/index.cc: #include nonposix.h.
9935 (make_index_search_item): Open index_filename in O_BINARY mode.
9936 (index_search_item_iterator::get_tag): Ditto. Remove \r
9937 characters before \n characters.
9938 (index_search_item::check_files): Open files in binary mode.
9939 (index_search_item::munge_filename): Support DOS-style file names
9940 with backslashes and drive letters, use IS_ABSOLUTE.
9942 * src/devices/grops/ps.cc: #include nonposix.h.
9943 (main) [SET_BINARY]: Switch stdout to binary mode.
9945 * src/devices/grolj4/lj4.cc: #include nonposix.h.
9946 (main) [SET_BINARY]: Switch stdout to binary mode.
9948 * src/devices/grolbp/lbp.cc: #include nonposix.h
9949 (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
9951 * src/devices/grodvi/dvi.cc: #include nonposix.h.
9952 [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
9954 (main) [SET_BINARY]: Switch stdout to binary mode.
9955 [_MSC_VER]: Remove an explicit call to _setmode.
9957 * src/include/nonposix.h: New file.
9959 * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
9960 operation when building with DJGPP.
9961 ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
9962 ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
9965 * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
9967 (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
9968 etc. can include a semi-colon on DOS/Windows.
9969 (depend.temp): Use depend1.temp instead of depend.temp1, to
9970 prevent files from overerwiting each other on 8+3 filesystems.
9972 * gendef.sh (t): Change definition to work with DOS/Windows.
9974 doc/groff.texinfo: Apart of some typo corrections, I also changed
9975 some index entris, to make them more non-ambiguous, and also put
9976 @ignore around some parts that are not yet written, to allow the
9977 Info output be readable.
9979 2000-06-10 Gael Queri <gqueri@mail.dotcom.fr>
9981 Replaced specific checks for function declarations with a generic
9982 routine taken from GNU bfd.
9984 * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
9985 GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
9986 * configure.in: Use it.
9987 * src/devices/grolbp/lbp.cc, src/include/lib.h,
9988 src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
9989 src/roff/groff/groff.cc: Use it.
9990 * Makefile.in, configure: Updated.
9992 2000-06-07 Paco Andrés Verdú <pandres@dragonet.es>
9994 * src/devides/grolbp/lbp.h: Removed unused variables.
9996 2000-05-31 Keith Thompson <kst@sdsc.edu>
9998 * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
10001 2000-05-31 Werner LEMBERG <wl@gnu.org>
10003 * aclocal.m4 (GROFF_SRAND): New function to test the return value
10004 of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
10005 * configure.in: Use it.
10006 * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
10007 * configure, Makefile.in: Updated.
10009 * configure.in: Add test for strncasecmp().
10010 * src/include/lib.h: Use it.
10012 2000-05-29 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
10014 * src/preproc/grn/Makefile.sub: Add MLIB.
10016 2000-05-29 Nix <nix@esperi.demon.co.uk>
10018 * Makefile.in: Use @datadir@ and @mandir@ appropriately.
10020 2000-05-29 Werner LEMBERG <wl@gnu.org>
10022 * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
10024 * PROBLEMS: Small update.
10026 * src/devices/grolbp/lbp.cc: Various small fixes.
10028 2000-05-28 Keith Thompson <kst@sdsc.edu>
10030 * src/roff/nroff/nroff.sh: Fix main loop syntax.
10032 * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
10034 2000-05-25 Werner LEMBERG <wl@gnu.org>
10036 * man/roff.man: Removed unused macro.
10038 2000-05-24 Werner LEMBERG <wl@gnu.org>
10040 * Makefile.in (dist): Remove src/xditview/Imakefile explicitly.
10041 This is needed e.g. if you do
10042 `make distclean; ./configure; make dist'.
10044 Version 1.16 released
10045 =====================
10047 2000-05-23 Werner LEMBERG <wl@gnu.org>
10049 Adding font CWI (constant width italic) to devdvi.
10051 * font/devdvi/CWI: New file.
10052 * font/devdvi/generate/Makefile: Add generating rule.
10053 * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
10054 tmac/tmac.dvi: Use it.
10055 * NEWS: Announce it.
10057 * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
10058 * font/devlj4/generate/Makefile: Cosmetic changes only.
10060 * man/groff.man: Removed most of the redundant description of
10061 special characters (which is in groff_char.man). Added font
10062 translation CB->CR for devdvi. Other minor fixes.
10064 * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
10065 (registered) symbols.
10067 2000-05-22 Werner LEMBERG <wl@gnu.org>
10069 * doc/Makefile: Added rule for creating info files.
10071 * font/devdvi/*: Added kernings for `cq' glyph. Updated to latest
10073 * font/devdvi/generate/Makefile: Fixed dependencies.
10075 * font/devps/*: Regenerated. Heavy changes for Bookman and
10076 NewCentury Schoolbook!
10077 * font/devps/generate/afmname: Will now run with GNU awk.
10078 * font/devps/generate/textmap: Added forgotten `cq' glyph name.
10079 * font/devps/generate/Makefile: Cosmetic changes only.
10081 2000-05-21 Werner LEMBERG <wl@gnu.org>
10083 * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
10084 10, 11, or 12) to support output with 11pt and 12pt base font sizes.
10085 `.SS' now produces a heading with a smaller size than `.SH'.
10086 Completely formatted.
10087 * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
10089 * man/groff.man: Improved table appearance. Use of `eo' request
10090 to reduce number of doubled backslashes in macro definitions.
10091 Replacing `\e' with `\(rs'. Other minor fixes.
10093 * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
10094 to have correct line number.
10096 * INSTALL: Small improvement.
10098 2000-05-20 Bernd Warken <bwarken@mayn.de>
10100 * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
10103 2000-05-19 Bernd Warken <bwarken@mayn.de>
10105 * man/groff.man: Complete update (with a lot of corrections by WL).
10107 2000-05-18 Werner LEMBERG <wl@gnu.org>
10109 Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
10111 * font/*/*: Implement it.
10112 * man/groff_char.man, NEWS: Document it.
10114 * src/include/unix.h: Removed. It isn't used.
10116 * doc/groff.texinfo: Slight improvements.
10118 2000-05-17 Werner LEMBERG <wl@gnu.org>
10120 * README, win32-diffs: Small fixes and improvements.
10122 2000-05-16 Werner LEMBERG <wl@gnu.org>
10124 * FDL: New file (the Free Documentation License version 1.1).
10126 * doc/groff.texinfo: Added many start-up values for gtroff.
10127 Some structural improvements of the source code.
10129 2000-05-15 Werner LEMBERG <wl@gnu.org>
10131 * src/roff/troff/input.cc: Added small comment about troffrc-end.
10132 * src/roff/troff/troff.man: Added info about troffrc-end.
10134 2000-05-14 Werner LEMBERG <wl@gnu.org>
10136 * Makefile.in (EXTRADIRS): Fix typos.
10137 (dist): Handle deletion of old .tar.gz file correctly.
10138 (DISTDIRS): Include all tty output devices.
10140 * doc/groff.texinfo: Adding more cross references; countless other
10143 2000-05-13 Werner LEMBERG <wl@gnu.org>
10145 * MORE.STUFF: Added Robert Marks's utilities.
10147 2000-05-12 Werner LEMBERG <wl@gnu.org>
10149 Added win32 port contributed by Blake McBride
10150 <blake@florida-software.com>.
10152 * README.WIN32, win32-diffs: New files.
10155 * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
10156 (tmove, tmove2): Added parentheses to avoid compiler warnings.
10157 (change): Removed unused variables.
10159 * src/preproc/grn/main.cc (main, conv): Removed unused variables.
10160 (savebounds): Changed return value from `int' to `void'.
10161 * src/preproc/grn/hdb.cc: Ditto.
10163 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
10164 final backslash in comment to avoid compiler warning.
10166 * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
10168 * doc/groff.texinfo: More fixes.
10170 2000-05-11 OKAZAKI Tetsurou <okazaki@be.to>
10172 * tmac/tmac.doc: Documentation fix.
10174 2000-05-11 Werner LEMBERG <wl@gnu.org>
10176 * doc/groff.texinfo: Reading the source code shows up a lot of
10177 omissions and incorrect data... More conversion to @Deffn macros.
10179 2000-05-10 Werner LEMBERG <wl@gnu.org>
10181 * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
10184 * src/roff/troff/request.h: Removing unused `no_break_flag'.
10186 2000-05-09 Werner LEMBERG <wl@gnu.org>
10188 * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
10191 * doc/groff.texinfo: Extended history section. More conversion to
10192 @Deffn macros. More .tr documentation.
10194 2000-05-07 Werner LEMBERG <wl@gnu.org>
10196 * doc/groff.texinfo: Completed tab section. Added info about
10199 2000-05-06 Mike MacIsaac <mikemac@us.ibm.com>
10201 * PROBLEMS: Describe configure script fix for OS/390 Unix.
10203 2000-05-05 Werner LEMBERG <wl@gnu.org>
10205 * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
10207 * NEWS: Document it.
10209 * man/troff.man: Minor optical improvements.
10211 2000-05-03 Werner LEMBERG <wl@gnu.org>
10213 Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
10215 * font/*/*: Implement it.
10216 * man/groff_char.man, NEWS: Document it.
10218 2000-05-02 Werner LEMBERG <wl@gnu.org>
10220 * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
10222 * NEWS: Document the three new man pages.
10224 * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
10225 * configure: Updated.
10227 * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
10229 2000-05-01 Werner LEMBERG <wl@gnu.org>
10231 Added grap support to grog.
10233 * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
10234 * src/roff/grog/grog.man: Document it.
10236 * doc/groff.texinfo, NEWS: Add info about grap support.
10238 Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
10239 (with slight fixes by me).
10241 * tmac/groff_tmac.man: New file documenting tmac mechanism.
10242 * tmac/Makefile.sub: Add groff_tmac.man.
10243 * man/roff.man: New file giving overview of roff system.
10244 * man/troff.man: A short reference of troff.
10245 * man/Makefile.sub: Add roff.man and troff.man.
10247 2000-04-30 Werner LEMBERG <wl@gnu.org>
10249 Added grap support to groff.
10251 * src/roff/groff/groff.cc: Implement it.
10252 * src/roff/groff/groff.man: Document it.
10254 * src/devices/grotty/grotty.man: Add cp1047 device.
10255 * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
10257 * src/roff/groff/groff.man: Ditto.
10258 * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
10259 * doc/groff.texinfo: Ditto.
10261 * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
10264 2000-04-29 Werner LEMBERG <wl@gnu.org>
10266 * man/groff_char.man: Add `pc' glyph.
10267 * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
10268 * tmac/tmac.tty: Add `pc' glyph.
10269 * tmac/tmac.tty-char: Use/add `pc' glyph. Don't call tmac.latin1 if
10270 we use cp1047 output device.
10272 * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
10273 there are still hardcoded latin1->unicode values in utf8's font
10275 * configure: Updated.
10276 * NEWS: Minor clarification. Updated.
10278 * PROBLEMS: Formatted. Added info about C++ fix pack for OS/390
10281 2000-04-28 Werner LEMBERG <wl@gnu.org>
10283 Adding EBCDIC code page 1047.
10285 * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
10286 font/devcp1047/DESC.proto: New files.
10288 * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
10289 either ascii/latin1 or cp1047.
10290 * Makefile.in: Use it.
10291 * configure: Updated.
10293 Replacing and/or adding `md' (mathdot) glyph with `pc'
10294 (periodcentered) in all text fonts.
10296 * font/*/*: Change it.
10298 2000-04-27 Werner LEMBERG <wl@gnu.org>
10300 * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
10302 * configure.in: Add check for strings.h.
10303 * src/include/driver.h: Use HAVE_STRINGS_H.
10304 * src/devices/grolbp/lpb.cc: Remove string.h.
10306 * src/include/groff-getopt.h: New file. It will be used instead of
10307 getopt.h (to be included in lib.h) to avoid endless problems with
10308 picky C++ compilers.
10309 * src/include/lib.h: Use groff-getopt.h.
10310 * src/include/Makefile.sub: Updated.
10312 * configure: Updated.
10313 * Makefile.in: Updated.
10315 * NEWS: Mention EBCDIC support.
10317 2000-04-26 Werner LEMBERG <wl@gnu.org>
10319 * TODO: Some additions.
10321 2000-04-25 Werner LEMBERG <wl@gnu.org>
10323 * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
10326 2000-04-23 Werner LEMBERG <wl@gnu.org>
10328 * src/roff/troff/troff.man: Minor fixes.
10330 2000-04-22 Werner LEMBERG <wl@gnu.org>
10332 * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
10333 `.T' string register and the incompatible definition of the `.T'
10334 number register (compared to Unix troff).
10336 * man/groff_char.man: Add some missing characters.
10337 * font/devutf8/NOTES: Update.
10339 2000-04-21 Werner LEMBERG <wl@gnu.org>
10341 * src/include/htmlindicate.h, src/include/lib.h,
10342 src/include/posix.h: Fix copyright.
10344 * src/include/Makefile.sub: Update.
10346 2000-04-20 Werner LEMBERG <wl@gnu.org>
10348 * src/roff/troff/input.cc (input_char_description): Removing
10349 superfluous space char.
10351 * tmac/tmac.X: Fix typo \(bq -> \(Bq.
10353 * doc/groff.texinfo: Document EBCDIC.
10355 2000-04-19 Werner LEMBERG <wl@gnu.org>
10357 Introducing `shc' as the glyph name for the soft hyphen character.
10359 * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
10360 font/devlatin1/R.proto: Use it.
10364 2000-04-18 Werner LEMBERG <wl@gnu.org>
10366 * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
10367 dependency on ASCII order.
10369 2000-04-16 Sandor BARANY <S.Barany@infosys.tuwien.ac.at>
10371 * src/libs/libgroff/illegal.c: Added EBCDIC table.
10372 * src/roff/troff/input.cc: Added adaptation to EBCDIC.
10374 * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
10375 to increase portability.
10377 2000-04-15 Werner LEMBERG <wl@gnu.org>
10379 * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
10380 Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
10381 the generic `\n' if under OS/390 Unix.
10383 * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
10385 * configure: Regenerated.
10387 2000-04-14 Werner LEMBERG <wl@gnu.org>
10389 * doc/groff.texinfo: More conversions to @Deffn.
10391 2000-04-12 Werner LEMBERG <wl@gnu.org>
10393 * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
10396 * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
10398 2000-04-10 Werner LEMBERG <wl@gnu.org>
10400 * doc/groff.texinfo: More conversions to @Deffn.
10402 2000-04-08 Werner LEMBERG <wl@gnu.org>
10404 * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
10405 Updated to latest version (glibc 2.1.3).
10407 2000-04-07 Werner LEMBERG <wl@gnu.org>
10409 * doc/Makefile (clean): Include more index files.
10410 Add rule texinfo->dvi.
10412 2000-04-05 Werner LEMBERG <wl@gnu.org>
10414 * doc/groff.texinfo: Added new index `op' for operators. More
10415 info on end of sentence characters. More use of @Deffn.
10417 2000-03-30 Werner LEMBERG <wl@gnu.org>
10419 * */*.man: Adding a note that a whitespace can be inserted between
10420 a command line option and its parameter -- we are using GNU getopt.
10422 * src/roff/groff/groff.man: Add example of `-m mandoc'.
10424 2000-03-28 Werner LEMBERG <wl@gnu.org>
10426 Correct anachronism of calling the man macro file with `-man'
10427 instead of `-m man' etc.
10429 * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
10430 tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
10431 load tmac.<package>.
10433 * tmac/Makefile.sub: Updated. Take care of $(tmac_an_prefix) etc.
10437 * doc/groff.texinfo: Updated.
10439 * tmac/groff_man.man: Copyright added.
10441 2000-03-27 Werner LEMBERG <wl@gnu.org>
10443 * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
10444 typeset the request resp. escape name with a tt font -- due to a
10445 bug in texinfo.tex it is necessary to use the `-e' switch with
10448 Improving info about usage of groff units.
10452 2000-03-20 Werner LEMBERG <wl@gnu.org>
10454 * doc/groff.texinfo: Added section about man macro package
10455 (I've basically taken groff_man.man). Introducing new indices `ma'
10456 for macros/strings and `gl' for glyph names. Other minor fixes.
10458 * tmac/groff_man.man: Fixed some typos.
10460 2000-03-19 Werner LEMBERG <wl@gnu.org>
10462 * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
10465 * doc/texinfo.tex: New file.
10467 2000-03-18 Werner LEMBERG <wl@gnu.org>
10469 * doc/groff.texinfo: Improved section on number registers. Other
10472 2000-03-16 Werner LEMBERG <wl@gnu.org>
10474 * src/roff/groff/groff.man: Added info about grolbp. Make nicer
10477 * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
10478 src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
10479 src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
10480 src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
10482 * src/preproc/grn/grn.man: Better synopsis; added copyright.
10484 * src/roff/grog/grog.man: Updated copyright date.
10486 2000-03-14 Francisco Andrés Verdú <pandres@dragonet.es>
10488 * configure.in: Added test for strdup.
10490 * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
10493 Replaced dynamic allocation of arrays `[...]' with `new' operator.
10497 2000-03-12 OKAZAKI Tetsurou <okazaki@be.to>
10499 * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
10501 2000-03-11 Werner LEMBERG <wl@gnu.org>
10503 * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
10505 * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
10506 * src/include/lib.h: Remove some spaces.
10508 2000-03-10 Werner LEMBERG <wl@gnu.org>
10510 * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
10511 initializers from arguments (some compilers don't like this).
10513 2000-03-09 Gaius Mulley <gaius@glam.ac.uk>
10515 * src/libs/libgroff/htmlindicate.cc: Added library file which is now
10516 used by pic and eqn to tell grohtml where the graphic regions start
10518 * src/libs/libgroff/Makefile.sub: Use it.
10519 * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
10520 graphic_start() and graphic_end() from htmlindicate.cc.
10522 2000-03-09 Werner LEMBERG <wl@gnu.org>
10524 * tmac/tmac.safer: Will now work correctly in compatibility mode.
10525 * tmac/groff_man.man: More fixes.
10527 2000-03-08 Werner LEMBERG <wl@gnu.org>
10529 * doc/Makefile: Added texput.log to the `clean' target.
10530 * doc/groff.texinfo: Added info about delimiters for escapes.
10532 2000-03-08 Bernd Warken <bwarken@mayn.de>
10534 * src/preproc/pic/pic.man: Add info on conversion of pic images to
10535 other graphic formats.
10537 2000-03-07 OKAZAKI Tetsurou <okazaki@be.to>
10539 * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
10540 src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
10541 src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
10544 2000-03-07 Werner LEMBERG <wl@gnu.org>
10546 * doc/groff.texinfo: Spelling fixes.
10548 2000-03-06 Werner LEMBERG <wl@gnu.org>
10550 * tmac/groff_man.man: Completely revised to cover everything in
10553 * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
10554 Other minor fixings.
10555 * src/roff/troff/env.cc (environment_copy): Improve error message and
10557 * src/roff/troff/TODO: Updated.
10559 * doc/Makefile: Bug fixes -- this is still provisional, though...
10561 * tmac/eqnrc: Small fixes.
10563 2000-03-05 Abramo Bagnara <abramo@alsa-project.org>
10565 Adding a request `evc' to copy environments.
10567 * src/roff/troff/env.cc (environment::copy, environment_copy):
10569 * src/roff/troff/env.h: Add prototype.
10571 2000-03-05 Francisco Andrés Verdú <pandres@dragonet.es>
10573 Adding strsep() -- Solaris 8 doesn't have it.
10575 * configure.in: Test it.
10576 * src/devices/grolbp/lbp.cc: Add code.
10578 2000-03-05 Werner LEMBERG <wl@gnu.org>
10580 * src/roff/troff/div.cc (macro_diversion::output,
10581 top_level_diversion::output): Fixing an incompatibility with
10582 original troff: \x'0' updates the .a register also. Thanks to
10583 <Andries.Brouwer@cwi.nl> for pointing this out.
10584 * doc/groff.texinfo: Document it.
10586 * Makefile.in: Create Makefile.dep if necessary before calling the
10587 submake process to avoid warning about nonexistent file.
10589 * NEWS, PROJECTS: Updated.
10591 2000-03-04 Werner LEMBERG <wl@gnu.org>
10593 * tmac/troffrc: Add tmac.lbp.
10595 2000-03-03 Francisco Andrés Verdú <pandres@dragonet.es>
10597 * tmac/tmac.lbp: New file.
10598 * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
10601 2000-03-03 Werner LEMBERG <wl@gnu.org>
10603 * Makefile.in: Fixing $(subdir).
10605 * README, NEWS: Small fixes.
10607 * test-groff: Adding path to grolbp.
10609 * configure.in: The (new) file src/xditview/Imakefile.in will be
10610 also configured -- it is now possible to build gxditview in a
10611 directory different from $srcdir.
10613 2000-03-02 Blake McBride <blake@florida-software.com>
10615 * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
10617 * MORE.STUFF: Added website of bell labs and info about plot2dev.
10619 2000-03-01 Colin Phipps <crp22@cam.ac.uk>
10621 * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
10624 2000-02-29 Werner LEMBERG <wl@gnu.org>
10626 Adding GNU getopt to the groff distribution.
10628 * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
10630 * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
10631 * aclocal.a4: Remove GROFF_GETOPT function.
10632 * configure.in, Makefile.in, PROBLEMS: Update.
10633 * src/include/lib.h: Replace getopt tests with getopt.h.
10634 * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
10636 * doc/groff.texinfo: Further checking/updating. Adding more index
10639 * man/groff_out.man: Fix nroff mode activation (for emacs).
10640 * man/groff_font.man: Add missing ligature.
10642 2000-02-28 Werner LEMBERG <wl@gnu.org>
10644 * doc/groff.texinfo: Further checking/updating. Adding more index
10647 * src/devices/grolbp/grolbp.man: Added a comment line at the
10648 beginning of the file (similar to shell scripts) which indicates
10649 that `tbl' should be used as a preprocessor.
10651 2000-02-27 Blake McBride <blake@florida-software.com>
10653 Adapting groff to MS Visual C++ 6.0 compiler (tested with
10654 Windows NT 4.0). Uses _MSC_VER define where necessary.
10656 * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
10657 * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
10658 * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
10659 src/include/lib.h, src/libs/libgroff/errarg.cc,
10660 src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
10661 src/preproc/refer/label.y, src/preproc/refer/label.cc,
10662 src/roff/groff/pipeline.c, src/roff/troff/column.cc,
10663 src/roff/troff/div.cc, src/roff/troff/env.cc,
10664 src/roff/troff/input.cc, src/roff/troff/node.cc,
10665 src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
10666 if_to_a() to avoid name clashes.
10667 * src/include/posix.h: Don't use unistd.h.
10668 * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
10669 clause for integrating non-Unix xtmpfile() code.
10670 * src/roff/troff/input.cc: Adding `public' keyword to macro_header
10671 structure; use "rt" for popen() in pipe_source(); add getpid()
10673 * src/roff/troff/node.cc: Use special versions of popen() in
10674 real_output_file() and pclose() in ~real_output_file().
10676 2000-02-27 Werner LEMBERG <wl@gnu.org>
10678 Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
10679 LBP-8 series laser printers). This code has been contributed by
10680 Francisco Andrés Verdú <pandres@dragonet.es>.
10682 * src/devices/grolbp/*: The grolbp output device.
10683 * font/devlpb/*: The font description files.
10684 * Makefile.in: Add grolpb and devlbp subdirectories.
10686 * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
10687 src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
10690 * doc/groff.texinfo: Further checking/updating. Adding more index
10695 * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
10697 * man/groff_font.man: Adding info about obsolete DESC keywords.
10698 * src/devices/grolj4/grolj4.man: Documenting additional DESC
10701 2000-02-26 Werner LEMBERG <wl@gnu.org>
10703 * src/preproc/grn/grn.man: Added info about the gremlin file format
10704 (contributed by Daniel Senderowicz <daniel@synchrods.com>).
10706 2000-02-25 Werner LEMBERG <wl@gnu.org>
10708 * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
10709 friends to be non-integer.
10711 * src/preproc/grn/grn.man: Document it.
10713 * doc/groff.texinfo: Further checking/updating. Adding more index
10716 2000-02-24 Werner LEMBERG <wl@gnu.org>
10718 * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
10719 line thicknesses to be integer multiples of this value.
10721 * src/preproc/grn/grn.man: Commenting out the -s option -- the
10722 corresponding code doesn't work (yet).
10724 * doc/groff.texinfo: Further checking/updating. Adding more index
10727 2000-02-23 Werner LEMBERG <wl@gnu.org>
10729 * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
10730 specify line thickness instead of base units. The new default
10731 values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
10732 thick lines respectively.
10734 Removed unused variable `prevval'.
10736 * src/preproc/grn/grn.man: Updated.
10738 2000-02-22 Werner LEMBERG <wl@gnu.org>
10740 * src/preproc/grn/main.cc: Slight formatting.
10742 * src/roff/groff/groff.man: Formatting fix.
10743 * src/preproc/grn/grn.man: Ditto.
10745 * src/roff/grog/grog.pl: Fixing two embarassing bugs.
10747 * doc/groff.texinfo: Further checking/updating.
10749 2000-02-21 Werner LEMBERG <wl@gnu.org>
10751 * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
10753 * test-groff: Added grn subdir to path.
10755 * doc/groff.texinfo: Some restructing and other small improvements.
10757 * src/roff/groff/groff.cc (help): Fixed info string.
10759 2000-02-20 Werner LEMBERG <wl@gnu.org>
10761 * doc/meref.me: Fix description of .GS request.
10763 * src/roff/troff/troff.man: Fixing typo.
10765 Adding the `grn' preprocessor for gremlin graphic files.
10767 * src/preproc/grn/*: This is the Berkeley distribution written by
10768 David Slattengren and Barry Roitblat, adapted to groff by Daniel
10769 Senderowicz and Werner Lemberg.
10771 * doc/grnexampl.{me,g}: A sample for grn.
10773 * Makefile.in: Added subdirectory entry for grn.
10775 * src/roff/groff/groff.cc: Added support for grn. It can be now
10776 called with the switch `-g'.
10778 * src/roff/groff/groff.man: Updated.
10780 * src/roff/grog/grog.{man,pl,sh}: Updated.
10784 2000-02-11 Gaius Mulley <gaius@glam.ac.uk>
10786 * src/include/lib.h: Added xtmptemplate and made xtmpfile
10787 parametrically polymorphic.
10789 * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
10790 and the alterations to xtmpfile.
10791 xtmpfile can be requested to return the filename created
10792 and asked not to unlink the temp file. The default behaviour
10793 if parameters are absent is exactly the same as before.
10795 2000-02-11 Abramo Bagnara <abramo@alsa-project.org>
10797 A new request `length' is available which returns the length of a
10798 string in a number register:
10800 * src/roff/troff/input.cc (length_macro): Implement it.
10801 * src/roff/troff/input.cc (init_input_requests): Register it.
10803 2000-02-11 Werner LEMBERG <wl@gnu.org>
10805 * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
10806 of the `substring' request.
10808 * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
10811 * src/roff/troff/TODO, NEWS: Updated.
10813 2000-02-09 Werner LEMBERG <wl@gnu.org>
10815 * src/roff/groff/groff.man: Added an example.
10817 2000-02-06 Werner LEMBERG <wl@gnu.org>
10819 I've considerably modified the directory structure of the
10820 distribution to get a more vertical layout. For example, the number
10821 of top level directories has been reduced from 42 to 6.
10823 As a consequence, many changes, especially to the makefiles, were
10826 * The makefile variables `top_builddir' and `top_srcdir' have been
10827 introduced. Virtually all relative paths have been replaced with
10828 absolute ones using these two variables.
10830 * Dependencies (in the files `Makefile.dep') are no longer part of
10831 the distribution. Instead, they are created during a `make install'
10832 in the build directory.
10834 * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
10835 make `top_srcdir' and `top_builddir' absolute.
10837 Some other changes:
10839 * Man pages now depend on the files `VERSION' and `REVISION'.
10841 * The added shell script `mkinstalldirs' will replace `mkdir' in
10844 * VERSION: Version number increased to 1.16.
10846 2000-02-04 Werner LEMBERG <wl@gnu.org>
10848 * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
10850 * Makefile.in: Removed $(tmac_m) since it is no longer needed
10851 (after an update of the mm stuff).
10853 * troff/Makefile.sub (majorminor.cc): Fix dependencies.
10855 2000-02-03 Werner LEMBERG <wl@gnu.org>
10857 The .psbb request will now also accept Mac PS images (i.e. using LF
10858 as the EOL character).
10860 * troff/input.cc (ps_get_line): New function, taken from psrm.cc
10861 (with slight modifications).
10862 * troff/input.cc (do_ps_file): Use it.
10864 * test-groff: Add grohtml and grolj4 output devices to PATH.
10866 2000-01-30 Werner LEMBERG <wl@gnu.org>
10868 * NEWS, MORE.STUFF: Updated.
10870 2000-01-30 Cary D. Renzema <caryr@dollar.mxim.com>
10872 Add the `srand' command to pic.
10874 * pic/lex.cc, pic/pic.y: Implement it.
10875 * pic/pic.man: Document it.
10876 * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
10878 2000-01-30 Werner LEMBERG <wl@gnu.org>
10880 Add a new request `.psbb'. This does exactly what the external
10881 program psbb did. It scans a PostScript image file for a
10882 %%BoundingBox comment and extracts the bounding box values (in
10883 PostScript units) which are then stored in the four new (read-only)
10884 number registers `llx', `lly', `urx', and `ury'.
10886 This will allow the usage of the .PSPIC macro without worrying
10887 about unsafe behaviour of groff, i.e., it will work without the
10888 `-U' switch of groff.
10890 * troff/input.cc: Implement it.
10891 * tmac/tmac.pspic: Use it.
10892 * troff/troff.man, grops/grops.man, NEWS: Document it.
10893 * psbb/*, Makefile.in: Remove it since it is no longer needed.
10895 This is bloody C code simply adapted from psbb.c! Any improvements
10898 2000-01-29 Werner LEMBERG <wl@gnu.org>
10900 * man/groff_font.man: Minor clarifications.
10904 2000-01-28 Werner LEMBERG <wl@gnu.org>
10906 * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
10908 2000-01-28 Gaius Mulley <gaius@glam.ac.uk>
10910 * man/groff_font.man: Brought up to date regarding tcommand
10912 * libgroff/font.cc: Handle everything after `--' as a comment
10914 * devps/*: Added comment delimiter inside devps font files.
10916 2000-01-28 Werner LEMBERG <wl@gnu.org>
10918 * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
10919 \fC...\fP (which now works as expected).
10921 * troff/troff.man: Fix typo.
10923 2000-01-27 Gaius Mulley <gaius@glam.ac.uk>
10925 Completed the pass_filenames implementation in troff.
10927 * libdriver/input.cc: Will read the new `F' tcommand.
10928 * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
10929 * troff/input.cc: Use it.
10931 2000-01-26 Werner LEMBERG <wl@gnu.org>
10933 * troff/env.cc (set_font): Fix the behaviour of \fP. The previous
10934 font will now be updated even if an invalid font is selected.
10936 2000-01-24 Werner LEMBERG <wl@gnu.org>
10938 * doc/homepage.ms: Updated for new tmac.arkup.
10940 * tmac/tmac.html: Disable line breaks after hyphen-like characters.
10942 * tmac/tmac.arkup: Cleanup.
10944 Added `\&' to .HTML macro to `leave vertical mode', so to say.
10946 Removed obsolete .LINK macro completely.
10948 The macros .URL, .FTP, and .MAILTO now accept a third argument which
10949 will be immediately appended to the second argument (to be used with
10950 punctuation, for example).
10952 Disabled .CDFTP macro temporarily for security reasons.
10954 * tmac/groff_markup.man: Complete revision for latest changes in
10955 tmac.arkup -- note that it does not yet format correctly with
10958 2000-01-23 Bruno Haible <haible@clisp.cons.org>
10960 * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
10961 * devutf8/R.proto: Add mappings for wp, lh, rh.
10962 * devutf8/NOTES: Updated.
10964 2000-01-23 Werner LEMBERG <wl@gnu.org>
10966 * doc/groff.texinfo: Updated version/copyright info.
10968 2000-01-21 Gaius Mulley <gaius@glam.ac.uk>
10970 Added support for two new directives in device descriptions:
10971 `pass_filenames' (to pass the input file name to the output device)
10972 and `use_charnames_in_special' (to support e.g. accented characters
10973 in the `X' request).
10975 * include/font.h, troff/charinfo.h: Declare it.
10977 * libgroff/font.cc, libgroff/fontfile.cc: Set it.
10979 * devhtml/DESC: Use it.
10981 * troff/input.cc: New function encoded_char.
10983 * troff/token.h: Add test for `specialness'.
10985 2000-01-21 Werner LEMBERG <wl@gnu.org>
10987 * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
10988 mistake from the list of files to be installed.
10990 2000-01-18 Werner LEMBERG <wl@gnu.org>
10992 * README: Added info how to apply patches.
10994 2000-01-15 Jan Echternach <echter@informatik.uni-rostock.de>
10996 * troff/node.cc (ligature_note::operator delete): Fix g++ warning.
10998 2000-01-15 Gaius Mulley <gaius@glam.ac.uk>
11000 * troff/input.cc: Add support for troffrc-end.
11002 * tbl/main.cc: Altered to issue table-start and table-end special
11003 characters if using the html device.
11005 * devhtml/*: Modified font files to incorporate html encoding of
11008 * tmac/groff_markup.man: New file documenting tmac.arkup.
11010 * tmac/troffrc-end: New file. This is invoked after all user
11011 specified macros. Currently used by the html device to include
11012 tmac.html. Thus no need for users to specify -mhtml anymore.
11014 * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
11015 (MAN7): Add groff_markup.man.
11017 * tmac/tmac.an, tmac/tmac.html: Small html updates.
11019 * tmac/troffrc: tmac.arkup will now be called for the html device.
11021 * libgroff/font.cc, libgroff/font.h: Altered to include reading of
11022 extra device specific information about fonts.
11024 * doc/homepage.ms: New file. It is an example how an HTML home page
11025 could look like with grohtml.
11027 * doc/Makefile: Add homepage.ms. Remove rule for pic.html.
11029 2000-01-12 Bruno Haible <haible@clisp.cons.org>
11031 * devutf8/R.proto: Add mappings for ti, Fn, st, an. Change mappings
11034 * devutf8/NOTES: Updated.
11036 2000-01-08 Bruno Haible <haible@clisp.cons.org>
11038 * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
11039 eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
11040 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
11041 libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
11042 pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
11043 tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
11044 troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
11045 troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
11048 * troff/node.cc (bracket_node::copy): Initialize last to NULL.
11050 2000-01-12 Fabrizio Polacco <fab@prosa.it>
11052 grolj4: Paper size will be searched case-insensitively.
11054 * include/lib.h: Add check for strcasecmp().
11055 * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
11056 * configure.in: Check for strcasecmp().
11058 2000-01-11 Werner LEMBERG <wl@gnu.org>
11060 * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
11063 2000-01-10 Werner LEMBERG <wl@gnu.org>
11065 * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
11068 Add a new read-only register, `.Y', which contains the groff
11071 * troff/input.cc (init_input_requests): Define it.
11072 * troff/Makefile.sub (majorminor.cc): Define `revision' string.
11073 * doc/groff.texinfo, troff/troff.man: Document it.
11075 * libgroff/Makefile.sub (version.cc): Add definition of
11076 `Version_string[]', consisting of `<major>.<minor>.<revision>'
11077 * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
11078 grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
11079 refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
11080 troff/input.cc, pfbtops/pfbtops.c: Use it.
11082 2000-01-10 Fabrizio Polacco <fab@prosa.it>
11084 Add a revision scheme to the groff package.
11086 * REVISION: New file.
11087 * libgroff/Makefile.sub (version.cc): Use it to define
11088 `revision_string[]'.
11089 * grops/psrm.cc: Use revision_string (converted to an unsigned
11090 integer) in constructor of resource_manager.
11092 2000-01-10 Bruno Haible <haible@clisp.cons.org>
11094 * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
11096 * Makefile.in (DEVDIRS): Add devutf8.
11097 * grotty/tty.cc: Include device.h.
11098 (glyph): Change type of `code' to `unsigned int'.
11099 (tty_printer): New field is_utf8. Constructor takes device argument.
11100 (tty_printer::tty_printer): If device if `utf8', set is_utf8.
11101 (tty_printer::add_char): Change type of first arg to `unsigned int'.
11102 (tty_printer::put_char): New function.
11103 (tty_printer::end_page): Use put_char() instead of ::putchar().
11104 (make_printer): Pass device to tty_printer constructor.
11105 * nroff.sh: Determine default device by calling 'locale'. As a
11106 fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
11107 Recognize UTF-8 locales.
11108 * tmac/eqnrc: Recognize utf8 like latin1.
11109 * tmac/troffrc: Device utf8 needs tmac.tty.
11111 2000-01-07 Werner LEMBERG <wl@gnu.org>
11113 * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
11115 2000-01-07 Paul Eggert <eggert@twinsun.com>
11117 Add a new predefined writeable number register, `year',
11118 which contains the current year.
11120 * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
11121 * tmac/tmac.s: Use it.
11122 * troff/input.cc (init_registers): Initialize it.
11124 2000-01-06 Werner LEMBERG <wl@gnu.org>
11126 * PROBLEMS: Fixed typo.
11128 2000-01-04 Paul Eggert <eggert@twinsun.com>
11130 * PROBLEMS: Add Y2k advice for the yr number register.
11132 2000-01-03 Paul Eggert <eggert@twinsun.com>
11134 * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
11136 2000-01-02 Werner LEMBERG <wl@gnu.org>
11138 * tmac/tmac.arkup: Slight modification of macros to provide better
11139 appearance for non-HTML formats.
11141 2000-01-01 Charles Levert <charles@comm.polymtl.ca>
11143 * soelim/soelim.cc (include_path_append): realloc(NULL, n)
11144 does not automatically translate to malloc(n) on all OSes
11145 (e.g., SunOS) so do it explicitly. Also, check the returned
11148 2000-01-01 Werner LEMBERG <wl@gnu.org>
11150 * tmac/tmac.arkup: Added .LINE macro. Some formatting.
11152 * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
11153 expects this variable
11155 2000-01-01 Gaius Mulley <gaius@glam.ac.uk>
11157 * doc/Makefile: Added instructions to create HTML and text
11158 versions of some files.
11160 1999-12-31 Werner LEMBERG <wl@gnu.org>
11162 * Updated INSTALL.gen.
11164 * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
11165 better resp. correctly with non-HTML devices.
11167 Version 1.15 released
11168 =====================
11170 1999-12-28 Werner LEMBERG <wl@gnu.org>
11172 * NEWS, VERSION: Changed to 1.15
11174 1999-12-27 Paul Eggert <eggert@twinsun.com>
11176 * nroff/nroff.man: -S is safer, not safe.
11178 * groff/groff.cc (main): Use `safer', not `safe', in variable
11179 names. This does not change the behavior.
11181 * troff/input.cc (main): Likewise.
11183 * nroff/nroff.sh: Likewise.
11185 * troff/input.cc (prepend_string): New function.
11186 (main): Prepend -msafer, so that we check macro libraries for
11189 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
11191 Version 1.14 released
11192 =====================
11194 1999-12-26 Werner LEMBERG <wl@gnu.org>
11196 * NEWS, VERSION: Changed to 1.14.
11198 1999-12-24 Werner LEMBERG <wl@gnu.org>
11200 * refer/refer.cc: Fixing the last fix.
11202 Version 1.13 released
11203 =====================
11205 1999-12-23 Werner LEMBERG <wl@gnu.org>
11207 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
11212 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
11214 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
11215 document conventions, the version number must be a real.
11217 Version 1.12.1 released
11218 =======================
11220 1999-12-22 Werner LEMBERG <wl@gnu.org>
11222 * VERSION: Changed to 1.12.1.
11224 1999-12-22 Alan Rooks <arooks@istar.ca>
11226 * refer/refer.cc (do_file): Slight modification to satisfy the
11227 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
11230 1999-12-20 Werner LEMBERG <wl@gnu.org>
11232 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
11235 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
11236 list of unsafe requests.
11238 * pic/pic.man: Fixed a typo.
11240 * man/groff_out.man: Fixed a typo.
11242 1999-12-18 Werner LEMBERG <wl@gnu.org>
11244 * Makefile.in: Doc fixes.
11246 1999-12-17 Fabrizio Polacco <fab@prosa.it>
11248 * groff/groff.cc: Missing `U' option added to getopt().
11250 * troff/troff.man: Missing `U' option added to synopsis.
11252 Version 1.12 released
11253 =====================
11255 1999-12-14 Werner LEMBERG <wl@gnu.org>
11257 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
11260 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
11261 with the more appropriate terms `safer' and `unsafe'.
11263 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
11264 sys_nerr and sys_errlist[].
11266 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
11268 * pic/pic.y, pic/pic.cc: Added check for fmod().
11270 1999-12-13 Werner LEMBERG <wl@gnu.org>
11272 * VERSION: Changed to 1.12.
11274 Here some patches from various sources; most of them taken from
11275 the Debian distribution.
11277 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
11278 tmac/Makefile.sub: New files copied directly from the NetBSD
11279 distribution. Probably, some additional adaptation later on is
11282 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
11283 of unsafe requests.
11285 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
11286 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
11287 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
11288 (`-S') is now the default.
11290 * README, NEWS: Updated.
11292 1999-12-09 Werner LEMBERG <wl@gnu.org>
11294 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
11296 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
11298 1999-12-06 Werner LEMBERG <wl@gnu.org>
11300 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
11301 grief than relief today. Additionally, it is against the GNU
11304 * configure: Recreated.
11306 1999-12-05 Werner LEMBERG <wl@gnu.org>
11308 * configure.in: Added GROFF_LIBM.
11310 * configure: Recreated.
11312 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
11315 * Makefile.in: Added definition of $(LIBM).
11317 * Makefile.comm (LIBM): Removed.
11319 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
11321 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
11323 * doc/Makefile: Added rule for generation pic.html.
11325 (clean): Files produced by grohtml will be removed also.
11327 * doc/pic.ms: Small fix.
11329 * tmac/tmac.html: Fixed suppression of headers.
11331 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
11333 * tmac/tmac.html: Fixing horizontal arrows.
11335 Turning off hyphenation.
11337 * tmac/tmac.an: Improved support for grohtml; better indentation,
11338 no footers/headers.
11340 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
11342 * tmac/tmac.arkup: Added CDFTP macro
11344 * tmac/tmac.html: All headers are turned off for ms, me, and mm
11347 * tmac/troffrc: Some additions for HTML stuff.
11349 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
11351 * tmac/tmac.html: Small changes.
11353 1999-09-26 Werner LEMBERG <wl@gnu.org>
11355 * doc/groff.texinfo: Minor fixes.
11357 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
11359 * devhtml/TR: Changed spacewidth to 3.
11361 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
11363 * tmac/tmac.html: Moved markup macros to tmap.arkup.
11365 * tmac/tmac.arkup: New file.
11367 * grohtml/ChangeLog: New file.
11369 1999-09-16 Werner LEMBERG <wl@gnu.org>
11371 * doc/groff.texinfo (Common Features): Added Copying chapter.
11372 Changed format to @smallbook.
11374 1999-09-15 Werner LEMBERG <wl@gnu.org>
11376 * NEWS: Added info about groff.texinfo.
11378 * doc/groff.texinfo: Will now compile (using texi2dvi) without
11381 1999-09-14 Werner LEMBERG <wl@gnu.org>
11383 * groff/groff.man: More updates.
11385 1999-09-13 Werner LEMBERG <wl@gnu.org>
11387 * doc/groff.texinfo: New file. This manual is still very
11388 rudimentary. It has been originally contributed by Trent
11389 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
11392 * INSTALL: Added information about the `doc' subdir
11394 * troff/troff.man: Minor fixes.
11396 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
11399 * troff/input.cc (usage): Added missing `-ffam' to usage message.
11401 * Makefile.in (dist): groff-$(version).tar.gz must be removed
11402 also, otherwise it is included itself in another call of `make
11405 * groff/groff.cc (synopsis): Removed superfluous space.
11407 * PROJECTS, PROBLEMS, NEWS: Updated.
11409 * VERSION: Updated to 1.12beta.
11411 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
11413 * README: Updated: Included documentation about CVS repository,
11414 mailing lists, and daily snapshots.
11416 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
11418 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
11420 * tmac/tmac.an: If the tag didn't fit into the space that the
11421 macro `TP' specifies, the rest of the tag went into the space for
11424 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
11426 * grolj4/lj4.cc: Added duplex printing (option `-d').
11428 * grolj4/grolj4.man: Document duplex printing.
11430 1999-09-12 Werner LEMBERG <wl@gnu.org>
11432 * doc/Makefile (pic.ps): Fixed rule which caused problems with
11433 non-GNUish sed programs.
11435 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
11438 * configure.in (LIBS): Added `-lc'
11440 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
11442 * pic/tex.cc (solid_arc): Casting M_PI to double.
11444 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
11446 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
11447 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
11448 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
11450 * groff/groff_man.man: New file. This manual page was originally
11451 written for the Debian GNU/Linux system by Susan G. Kleinmann
11454 * eqn/list.cc (list_box::compute_metrics,
11455 list_box::compute_sublist_width): Removed variable declaration to
11456 avoid shadowing warnings.
11458 * grops/psrm.cc (resource_manager::process_file): Ditto.
11460 * tfmtodit/tfmtodit.cc (main): Ditto.
11462 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
11463 to avoid shadowing warnings.
11465 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
11466 shadowing loop variable.
11468 * groff/groff.man, troff/troff.man: Added doc about grohtml.
11470 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
11472 New grohtml frontend to convert groff input to html.
11474 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
11476 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
11478 * tmac/eqnrc: Added html device.
11480 * tmac/tmac.html: New file.
11482 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
11483 (troff_output::start_picture, troff_output::finish_picture),
11484 tbl/main.cc (process_input_file):
11485 Surrounded output with `graphics_start' and `graphics_end' so that
11486 the html driver can identify non-text portions.
11488 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
11489 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
11490 grotty/tty.ps (tty_printer::set_char): Additional parameter
11493 * include/printer.h: Class printer: New function
11494 set_char_and_width; new variables (is_char_named, is_named_set,
11495 named_command, named_char_s, named_char_n) to hold information
11496 about named characters -- needed by the html driver.
11498 * libdriver/printer.cc (printer::set_ascii_char,
11499 printer::set_special_char): Use set_char_and_width.
11501 * devhtml/*: New device files for html driver.
11503 * grohtml/*: New driver grohtml.
11505 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
11507 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
11510 1999-09-11 Luke Mewburn <lukem@netbsd.org>
11512 * libgroff/string.cc (search): Small fix to test against NULL
11515 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
11517 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
11518 \b'abc') were stacked in reverse order when processed in a
11521 * troff/node.h: Added `*last' to struct `node' to make the above
11524 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
11525 The default scale for the 'f' and 't' graphics functions were 'm'
11526 rather than 'u' (i.e., no scaling).
11528 1999-09-11 Peter Miller <peterm@jna.com.au>
11530 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
11531 do_file), soelim/soelim.man: Added `-I file' option to soelim,
11532 defining include paths.
11534 * soelim/soelim.cc (include_path_append): New function.
11536 1999-09-11 Larry Jones <larry.jones@sdrc.com>
11538 * tbl/main.cc (process_options): Unix (at least Documenter's
11539 Workbench) tbl allows arbitrary non-alpha characters between
11542 1999-09-11 Paul Eggert <eggert@twinsun.com>
11544 Y2k fixes. Don't assume that the current year precedes 2000.
11546 * doc/meref.me: Add \n(y2, \n(y4.
11548 * tmac/doc-common (Yr): New number register.
11549 (Dd): Don't assume current year precedes 2000.
11551 * tmac/tmac.e (td): Likewise.
11552 (y2, y4): New number registers.
11554 * pic/pic.man: Update reference for pic paper to May, 1991
11557 1999-09-11 Werner LEMBERG <wl@gnu.org>
11559 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
11560 Removed quotation marks which prevented correct expansion of
11563 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
11565 1999-09-10 Werner LEMBERG <wl@gnu.org>
11567 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
11570 * Removed configure.old.
11572 1999-08-31 Werner LEMBERG <wl@gnu.org>
11574 * VERSION: Updated to 1.11.1
11576 1999-05-27 Werner LEMBERG <wl@gnu.org>
11578 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
11580 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
11581 added quotations around $(tmac_wrap) to avoid syntax error if
11584 * configure: Newly generated using autoconf 2.13.
11586 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
11588 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
11590 * README, PROJECTS, NEWS, INSTALL, VERSION,
11591 doc/Makefile. doc/pic.ms, groff/groff.man:
11592 Prepare for 1.11 release. No code changes.
11593 Documentation for pic added (doc/pic.ms).
11595 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
11597 * Version 1.10 released.
11599 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
11601 * afmtodit/afmtodit.pl: Avoid comment on first line.
11603 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
11605 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
11606 * configure.in: Call it.
11608 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
11609 (distfiles): Doesn't depend on config.log or config.cache.
11611 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
11613 * grog/grog.sh: Use print "" rather than print in END rule.
11615 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
11617 * tbl/main.cc (process_data): Don't give error for excess data
11618 entries that are comments.
11620 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
11622 * tbl/main.cc (process_data): Fix case where new for-scope rules
11623 silently change meaning of code.
11625 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
11627 * troff/env.cc (hyphenate): Loop over all consecutive sequences
11628 of non-zero hyphenation codes.
11630 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
11632 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
11634 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
11636 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
11638 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
11640 * tmac/tmac.andoc: Make it work in compatibility mode.
11642 * refer/token.h (token_info::is_range_sep): New function.
11643 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
11644 * refer/ref.cc (reference::output): More sophisticated check for
11647 * devps/prologue.ps (MANUAL): New procedure.
11648 * grops/ps.cc (main): New -m option.
11649 (usage): Include -m.
11650 (ps_printer::~ps_printer): Implement -m.
11652 * aclocal.m4 (GROFF_G): New macro.
11653 * configure.in: Call it.
11654 * Makefile.in (g): Provided by configure.
11656 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
11658 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
11661 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
11662 (tmac_m, tmac_s): Deleted.
11663 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
11664 tmac_s_prefix): New variables.
11665 (MDEFINES): Change accordingly.
11666 * Makefile.comm (.man.n): Use new TMAC_* variables.
11667 * configure.in (GROFF_TMAC): Call.
11668 * aclocal.m4 (GROFF_TMAC): Define.
11669 * tmac/Makefile.sub (stamp_wrap): New target.
11670 (install_data, uninstall_sub): Handle macro wrapping.
11672 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
11674 * tbl/main.cc (main): Ignore -T option.
11676 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
11678 * devlj4/generate/special.map: Add definition of \(nb.
11680 * tmac/tmac.dvi: Add definition of \(nb.
11682 * troff/dictionary.c (dictionary::dictionary): association::v gets
11683 initialized by association::association.
11685 * tmac/Makefile.sub: Avoid using temporary files when installing.
11687 * troff/env.cc (environment::set_font): Make bad font number a
11690 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
11692 * Makefile.in (datadir): Use share rather than lib.
11694 * groff/groff.cc (basename): Rename to xbasename.
11696 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
11698 * Makefile (CCLIBS): Don't use.
11699 * Makefile.ccpg: Likewise.
11701 * acgroff.m4: Rename to...
11702 * aclocal.m4: Modify extensively for autoconf 2.
11703 * configure.in: Likewise.
11704 * Makefile.in: Likewise.
11706 * groff/pipeline.c (const): Declare as empty if __STDC__ not
11708 (xstrsignal): Check for definition of NSIG. Conditionalize
11709 on SYS_SIGLIST_DECLARED. Make return type const.
11711 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
11713 * troff/input.cc (interpolate_macro): Rephrase missing space
11716 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
11718 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
11719 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
11720 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
11721 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
11722 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
11723 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
11724 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
11725 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
11726 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
11727 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
11728 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
11731 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
11733 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
11735 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
11737 (macro_iterator::macro_iterator): Add additional argument.
11739 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
11741 * troff/div.cc (vertical_size::vertical_size): In place of integer
11742 specifying line spacing use cunits specifying post vertical
11744 (macro_diversion::output, top_level_diversion::output): Likewise.
11745 * troff/div.h: Change declarations accordingly.
11746 * troff/env.cc (pending_output_line): Replace ls field by post_vs
11748 (pending_output_line::pending_output_line,
11749 pending_output_line::output, environment::output,
11750 environment::output_line, environment::output_title,
11751 environment::hyphenate_line): In place of
11752 integer specifying line spacing use cunits specifying post vertical
11754 (environment::environment): Add post_vertical_spacing and
11755 prev_post_vertical_spacing arguments.
11756 (environment::get_post_vertical_spacing): New function.
11757 (environment::total_post_vertical_spacing): New function.
11758 (environment::post_vertical_spacing): New function.
11759 (init_env_requests): Initialize pvs request and .pvs register.
11760 * troff/env.h: Change declarations.
11762 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
11764 * tmac/tmac.pspic: Immediately remove the temporary file.
11766 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
11768 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
11769 height is specified.
11771 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
11773 * tbl/table.c (struct vertical rule, class table_entry): Use int
11774 not short for start_row and end_row.
11776 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
11778 * troff/input.cc (trapping_blank_line, blank_line_macro): New
11780 (diverted_space_node::reread, process_input_stack): Call
11781 trapping_blank_line() rather than blank_line().
11782 (init_input_requests): Bind "blm" to blank_line_macro().
11784 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
11786 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
11788 * troff/env.cc (environment::possibly_break_line): Require that
11789 width total excluding width of final space node be greater than
11790 the target text length.
11792 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
11794 * troff/node.cc (kern_pair_node::vertical_extent): New function.
11796 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
11798 * troff/node.cc (charinfo_node): New class.
11799 (glyph_node, composite_node): Derive from charinfo_node. Change
11800 member functions accordingly.
11802 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
11804 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
11806 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
11808 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
11810 * devps/generate/textmap (notsubset): Add.
11812 * tmac/tmac.a4: New file.
11814 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
11816 * pic/main.cc (had_parse_error): New variable.
11817 (do_picture, do_whole_file): Set had_parse_error if yyparse()
11819 (main): Return 1 if had_parse_error is true.
11821 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
11823 * grolj4/lj4.cc (main): Avoid use of strtoul.
11825 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
11827 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
11828 iso_8859_1 or $LESSCHARSET is latin1.
11830 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
11832 * hpftodit: New directory.
11833 * Makefile.in (CCPROGDIRS): Add hpftodit.
11834 * devlj4/generate: New directory.
11836 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
11838 * configure.in: Don't use AC_VFORK.
11839 * groff/pipeline.c (run_pipeline): Use fork() always.
11841 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
11843 * grops/ps.cc (main): Use %1 not %s in error message for -w.
11845 * Makefile.in (CCPROGDIRS): Add grolj4.
11846 (DEVDIRS): Add devlj4.
11847 * grolj4, devlj4: New directories.
11848 * tmac/troffrc: Handle lj4.
11849 * tmac/tmac.lj4: New file.
11851 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
11853 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
11855 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
11857 * troff/input.cc (do_if_request): At end of second string, switch
11858 environments before getting next token.
11860 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
11862 * devps/psstrip.sed: Split rule that strips whitespace on either
11863 side of delimiters.
11865 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
11867 * troff/node.h (font_family::make_definition): Add return value to
11868 declaration. * troff/symbol.h (symbol::operator==,
11869 symbol::operator!=): Likewise.
11871 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
11873 * groff/groff.cc (main, help, synopsis): Handle -S.
11874 (possible_command::insert_arg): New function.
11876 * tmac/tmac.safer: New file.
11877 * tmac/msafer.man: New file.
11878 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
11880 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
11882 * pic/pic.h, pic/main.cc (safer_flag): New variable.
11883 * pic/pic.y (placeless_element): Avoid unsafe operations if
11884 `safer_flag' is set.
11885 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
11887 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
11889 * eqn/lex.cc (get_token): Put call to add_context() in block to
11890 work around Sun C++ 4.0 bug.
11892 * include/stringclass.h (operator +): Use ?: instead of `if' to
11893 work around Sun C++ 4.0 bug.
11895 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
11897 * tbl/main.cc (process_format): Accept - as a synonym for the _
11900 * libbib/index.cc (minus_one): Don't declare as const.
11902 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
11904 * troff/input.cc (get_char_for_escape_name): Push back a newline.
11906 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
11908 * troff/input.cc (write_macro_request): New function.
11909 (init_input_requests): Bind write_macro_request to writem.
11911 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
11913 * tmac/tmac.s (@EN): Turn filling back on even if there was no
11916 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
11918 * tmac/tmac.s (@TS): Renamed from TS.
11919 (TS): Call LP then TS again.
11920 (cov*ab-init): Alias @TS to TS.
11922 * tmac/tmac.s: Allow QP or RS to initialize.
11924 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
11925 Move initializations of PS and LL here.
11926 (par@init): Don't initialize HY. Avoid changing environment 0.
11927 (par*env-init): Don't all par@reset.
11929 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
11931 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
11933 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
11935 * Makefile.in (MDEFINES): Add LDFLAGS.
11936 (LDFLAGS): Add definition line.
11938 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
11940 * troff/input.cc (get_optional_char): Split off error check into...
11941 (check_missing_character): New function.
11942 * troff/token.h: Declare it.
11943 * troff/env.cc (margin_character): Don't call get_optional_char.
11944 Only call tok.next() after making the node.
11946 * include/lib.h (getopt): Make 2nd argument char *const *.
11948 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
11950 * nroff/conftest.sh: Deleted.
11952 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
11954 * pic/make-dos-dist: Deleted.
11956 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
11958 * devps/psstrip.sed: Strip comments before stripping trailing
11961 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
11963 * Version 1.09 released.
11965 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
11967 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
11969 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
11971 * libgroff/font.cc (font::load_desc): Fix typo in error message.
11973 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
11975 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
11976 about returning without a value.
11978 * troff/charinfo.h (charinfo::get_special_translation): Cast
11979 TRANSLATE_NONE to int.
11981 * refer/token.cc (lookup_token, store_token): Remove bogus loop
11982 test. Fix test so that it works with n unsigned.
11984 * pic/pic.y (defaults_table): Fully bracket initializer.
11985 * pic/lex.cc (lookup_keyword): Likewise.
11986 * eqn/lex.cc (token_table, def_table): Likewise.
11987 * eqn/box.cc (param_table): Likewise.
11988 * troff/input.cc (warning_table): Likewise.
11989 * libgroff/font.cc (table): Likewise.
11990 * grops/ps.cc (ps_printer::special): Likewise.
11991 * grops/psrm.cc (resource_manager::process_file): Likewise.
11992 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
11993 * refer/command.cc (command_table): Likewise.
11994 * addftinfo/addftinfo.cc (param_table): Likewise.
11996 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
11997 about temp's being unused.
11998 (unused): New function.
12000 * groff/pipeline.cc: Declare c_fatal.
12002 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
12005 * libbib/index.cc (index_search_item::load): Prevent compiler
12006 warnings about fd_closer's being unused.
12007 (unused): New function.
12009 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
12011 * troff/input.cc (copy_mode_error): Make `prefix' static.
12014 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
12016 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
12017 HAVE_CC_OSFCN_H and modify accordingly.
12019 * troff/input.cc (init_charset_table): radicalex overlaps
12022 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
12023 udodo!hans@relay.NL.net).
12024 * groff/configure.in: Call it.
12026 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
12027 * groff/configure.in: Call it.
12028 * include/lib.h: Conditionalize declaration of pclose.
12030 * troff/div.cc (last_page_number): New global variable.
12031 (top_level_diversion::begin_page): Exit if we just printed the
12033 * troff/div.h (last_page_number): Declare it.
12034 * troff/input.cc (parse_output_page_list): Set last_page_number.
12036 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
12037 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
12038 tmac/tmac.X: Likewise.
12039 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
12040 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
12042 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
12044 * tmac/doc-ditroff (hK): Remove groff specific code which
12045 prevented page-breaks between separate manual entries. If this is
12046 the first page, don't set the page number to 1.
12048 * acgroff.m4 (GROFF_POSIX): New macro.
12049 * configure.in: Use it.
12051 * troff/node.cc (class real_output_file,
12052 real_output_file::real_output_file,
12053 real_output_file::~real_output_file): Conditionalize use of
12054 popen/pclose on POPEN_MISSING.
12055 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
12056 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
12057 (pipe_source): Similarily.
12059 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
12061 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
12062 presence of declarations by trying to compile example with
12063 conflicting declarations. (gcc only gives a warning for missing
12066 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
12068 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
12069 (from Ulrich Lauther).
12071 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
12073 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
12075 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
12077 * indxbib/indxbib.cc (write_hash_table): Add code for case where
12078 pointers and ints have different sizes.
12080 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
12082 * tmac/tmac.s (par*env-init): Call par@reset.
12084 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
12086 * tmac/tmac.s (@IP): Switch to a new environment when diverting
12088 (par*push-tag-env, par*pop-tag-env): New macros.
12090 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
12092 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
12093 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
12095 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
12096 comment. Include <time.h>.
12098 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
12100 * grops/ps.cc (is_small_h, is_small_v): Deleted.
12101 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
12104 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
12106 * troff/input.cc (read_request): Only print a prompt if reading
12107 from the terminal. Also clearerr on EOF if reading from the
12108 terminal. Declare isatty.
12110 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
12112 * refer/label.y: Rename map_t to map_func and extractor_t to
12115 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
12117 * include/assert.h: Don't use volatile.
12118 * libgroff/assert.cc: Likewise.
12120 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
12122 * troff/input.cc (abort_request): Look at character in tok before
12123 calling get_copy().
12125 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
12127 * troff/troff.h (NO_RETURN): Deleted.
12128 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
12129 * troff/input.cc (exit_troff): Likewise
12131 * Makefile.in: Remove `Making ...' messages since GNU make now
12134 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
12136 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
12138 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
12139 to constant 1 inch.
12141 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
12143 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
12145 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
12147 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
12148 MARK_REG if there was no left delimiter.
12150 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
12152 * pic/troff.cc (troff_output::text): Set line thickness to
12153 relative before outputting text.
12155 * tmac/tmac.e (@k): Don't zero ?T.
12158 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
12160 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
12162 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
12164 * troff/input.cc (decode_args): Warn about unquoted tabs (from
12167 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
12169 * troff/input.cc (ignoring): New variable.
12170 (ignore): Set ignoring during call to do_define_macro.
12171 (do_define_macro): Clear ignoring before interpolating terminating
12173 (copy_mode_error): New function.
12174 (get_char_for_escape_name, read_long_escape_name,
12175 interpolate_arg): Use copy_mode_error.
12176 (warning_table): Add WARN_IG.
12177 * troff/troff.h (WARN_IG): Declare.
12178 (WARN_TOTAL): Change accordingly.
12180 * groff/pipeline.c (strsignal): Rename to xstrsignal.
12181 * groff/groff.cc (strsignal): Delete declaration.
12183 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
12185 * troff/div.cc (page_offset): Use 'm' as default scaling.
12187 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
12189 * nroff/nroff.sh: Ignore -u.
12191 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
12193 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
12195 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
12197 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
12199 (B2): With -Tascii, leave additional vertical space before
12200 and after. Ensure that the left and right indent is restored to
12201 what it was even if the point size changes. Don't call
12202 par@finish. Change the indent, line length and title length
12203 directly. With -Tascii, make the width of the box 1n less.
12204 (B1): Remember 1n at the current point size. Don't call
12205 par@reset. Change the indent, line length and title length
12206 directly. Ensure that the temporary indent is preserved.
12207 (par*box-mark-top): Turn off no spacing mode.
12209 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
12211 * Makefile.in (dist): Use .gz suffix.
12213 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
12215 * troff/input.cc (main): Add return 0.
12216 * pic/main.cc (main): Use return instead of exit.
12217 * tbl/main.cc (main): Likewise.
12218 * eqn/main.cc (main): Likewise.
12219 * grops/ps.cc (main): Likewise.
12220 * grotty/tty.cc (main): Likewise.
12221 * groff/groff.cc (main): Likewise.
12222 * grodvi/dvi.cc (main): Likewise.
12223 * refer/refer.cc (main): Likewise.
12224 * indxbib/indxbib.cc (main): Likewise.
12225 * lkbib/lkbib.cc (main): Likewise.
12226 * soelim/soelim.cc (main): Likewise.
12227 * addftinfo/addftinfo.cc (main): Likewise.
12228 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
12229 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
12231 * troff/token.h (process_input_stack): Don't declare as static.
12232 * troff/input.cc: Likewise.
12234 * troff/node.c (invalidate_fontno): Make it a static member of
12235 class font_family. Change callers.
12236 * troff/node.c: Change declaration.
12238 * tbl/main.cc (struct input_entry_format): Add explicit public
12240 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
12241 struct double_hline_stuff): Likewise.
12242 * tbl/table.h (struct entry_format): Likewise.
12243 * pic/object.h (struct saved_state): Likewise.
12245 * include/stringclass.h: Add forward declarations of friend
12246 functions that are later declared as inline. Don't include inline
12247 specifier in friend declaration.
12249 * libgroff/lib.h: Declare popen and pclose.
12250 * acgroff.m4 (GROFF_POPEN): New macro.
12251 * configure.in: Call it.
12253 * include/lib.h (PI): New constant. Undef first if necessary.
12254 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
12255 * grops/ps.cc (degrees, radians): Likewise.
12256 * libgroff/font.cc (font::get_skew): Likewise.
12258 * grops/ps.cc (is_ascii): New function.
12259 (ps_output::put_string): Use is_ascii. Use csprint rather than
12261 (ps_printer::define_encoding): Use csspace.
12262 * libgroff/strtol.c (ISASCII): New macro.
12263 (strtol): Cast arguments to is*() and tolower() to unsigned char.
12264 Use ISASCII rather than isascii.
12265 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
12266 * libgroff/cset.cc: Likewise.
12267 * libdriver/input.cc: Include cset.h.
12268 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
12271 * refer/refer.cc (main): Use %ld rather than %d for longs.
12273 * libbib/index.cc (index_search_item_iterator::get_tag): Use
12276 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
12278 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
12280 * troff/input.cc (hyphenation_code): Skip white space between
12283 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
12285 * tbl/table.h (table::entry_list_tailp): New member.
12286 (table::table): Initialize it.
12287 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
12290 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
12292 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
12293 with negative horizontal positions. Remove casts of glyph::hpos to
12295 (USHRT_MAX): Delete definition.
12296 (SHRT_MAX, SHRT_MIN): New definitions.
12297 (glyph::hpos): Change type to short.
12298 (tty_printer::end_page): Output multiple backspaces if necessary.
12299 Remove casts of glyph::hpos to int.
12301 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
12303 * tmac/tmac.s (@RT): New definition.
12305 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
12307 * refer/refer.cc (do_file): Make sure current_filename is set when
12310 * pic/common.cc (common_output::dot_line): Handle zero length
12313 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
12315 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
12316 (par@init): Initialize \n[HY].
12318 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
12320 * troff/dictionary.cc (dictionary::remove): Continue when
12323 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
12325 * Makefile.com (.y.cc): Avoid ending up with two versions of
12328 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
12330 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
12331 (\(,C): Likewise. Also fix typo.
12333 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
12335 * lib.h: Delete extraneous semi-colon.
12337 * Add pso request: `so' from a pipe.
12338 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
12339 (file_iterator::close): New function.
12340 (file_iterator::~file_iterator, file_iterator::next_file): Use
12341 file_iterator::close.
12342 (file_iterator::backtrace): Say `process' rather than `file' when
12343 the stream is popened.
12344 (pipe_source): New function.
12345 (init_input_requests): Bind ".pso" to pipe_source.
12347 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
12349 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
12351 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
12352 digits in lower case.
12354 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
12356 * Version 1.08 released.
12358 * Makefile.in (dist): Insert || true after ln -s commands that
12361 * mm: Update to mm 1.16.
12363 * acgroff.m4 (GROFF_CSH_HACK): New macro.
12364 * configure.in: Call GROFF_CSH_HACK. Substitute for
12366 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
12368 * nroff/Makefile.sub (nroff): New target.
12369 (install_data): Install nroff.
12370 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
12371 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
12373 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
12375 * eqn/Makefile.sub (neqn): Add chmod +x.
12377 * grog/Makefile.sub (grog): Remove spurious semi-colon.
12379 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
12381 * troff/input.cc (string_iterator::string_iterator()): Initialize
12384 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
12386 * troff/div.cc (macro_diversion::space,
12387 top_level_diversion::space): Don't set high_water_mark.
12388 (macro_diversion::output, top_level_diversion::output): Don't
12389 include post line space in high water mark.
12391 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
12393 * eqn/eqn.y: Don't define YYDEBUG.
12394 * pic/pic.y: Likewise.
12396 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
12398 * tmac/tmac.e ([3): Add space after comma following editors.
12399 Change double spaces to single spaces.
12400 ([4): Change double spaces to single spaces.
12402 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
12403 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
12404 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
12405 after %!PS-Adobe- (for Newsprint).
12407 * troff/div.cc (top_level_diversion::begin_page): When
12408 before_first_page is 1, set page_number to 1.
12410 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
12412 * eqn/box.cc (box::top_level): Protect equation with \&.
12414 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
12416 * groff/groff.cc (possible_command::set_name): Delete old name.
12418 * groff/groff.cc (possible_command::~possible_command): Use
12421 * troff/node.cc (troff_output_file::begun_page): New member.
12422 (troff_output_file::troff_output_file): Initialize it.
12423 (troff_output_file::really_begin_page): Only output V command if a
12424 page has been begun.
12426 * pic/pic.y (placeless_element): Delete argument to PRINT after
12429 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
12431 * Make wrapman work.
12432 * troff/div.h (class top_level_diversion): Replace
12433 first_page_begun by before_first_page (with opposite sense).
12434 * Change first_page_begun to before_first_page inverting sense.
12435 * troff/div.cc (class nl_reg): New class.
12436 (init_div_requests): Use class nl_reg for \n(nl.
12437 (top_level_diversion::begin_page): Don't call
12438 output_file::begin_page if before_first_page is 2;
12439 reset before_first_page afterwards. If have_next_page_number is
12440 false, then always increment page_number.
12441 * tmac/tmac.an: Set traps within TH rather than at the top-level.
12442 Restore compatibility mode after loading, and then disable
12443 compatibility mode in TH.
12445 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
12447 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
12449 * troff/node.h (output_file::trailer): Declare.
12450 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
12451 * troff/node.cc (output_file::trailer): New function.
12452 (troff_output_file::~troff_output_file): Move most code into...
12453 (troff_output_file::trailer): New function.
12454 (class troff_output_file): Delete page_length member. Declare
12456 (troff_output_file::really_begin_page): Use current page length
12457 for final V command.
12459 * tbl/main.cc (struct options): New decimal_point_char member.
12460 (options::options): Initialize this.
12461 (process_options): Implement decimalpoint option.
12462 (process_data): Pass decimal_point_char option to table::table.
12463 * tbl/table.h (class table): New decimal_point_char member.
12464 (table::table): Add additional argument.
12465 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
12466 second argument specifying decimal point character. Use this
12468 (table::table): Initialize decimal_point_char.
12469 (table::add_entry): Change call to find_dot.
12471 * troff/input.cc (get_copy, token::next): Implement \V.
12472 (interpolate_environment_variable): New function.
12474 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
12476 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
12477 * pic/pic.y: Likewise.
12479 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
12481 * refer/ref.cc (reference::insert_field, reference::delete_field):
12483 * troff/number.cc (parse_term): Likewise.
12485 * acgroff.m4 (GROFF_PROG_YACC): New macro.
12486 * configure.in: Use GROFF_PROG_YACC.
12488 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
12490 * Makefile.in (OPTIMIZE): New define.
12491 (DEBUG): Empty by default.
12492 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
12494 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
12495 (GROFF_ARRAY_DELETE): Likewise.
12496 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
12498 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
12500 * devps/psstrip.sed: Use different delimiter on last line (so that
12501 it works with BSD 4.4 sed.)
12503 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
12505 * devps/psstrip.sed: Delete comments.
12507 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
12508 optind, opterr, optarg.
12509 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
12512 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
12514 * Makefile.in (check): Dummy target.
12516 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
12518 * Version 1.07 released.
12520 * Integrate mm 1.11.
12522 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
12523 where start_col was meant.
12525 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
12527 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
12529 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
12531 * troff/input.cc (token::next): Make \z\o'...' and similar things
12534 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
12536 (environment): Add margin_character_flags member.
12537 * env.cc (environment::environment(symbol),
12538 environment::environment(const environment *): Initialize
12539 margin_character_flags.
12540 (margin_character): Rewrite.
12541 (environment::output_line): Add a margin character if
12542 margin_character_flags is non-zero. Turn off the
12543 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
12544 zero, use margin_character_node without copying and then set
12545 margin_character_node to 0.
12547 * devps/DESC.in: Change minimum size to 1000.
12549 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
12551 * troff/symbol.h (symbol::hash): Change return type to unsigned
12553 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
12556 * test-groff: Use -r rather than -x.
12558 * grops/psfig.diff: Include in distribution again.
12560 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
12562 * Makefile.in (dist): Use gzip.
12564 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
12566 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
12567 unistd.h as well as in stdlib.h.
12568 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
12569 defined; otherwise include <sys/types.h> and <unistd.h> if
12570 UNISTD_H_DECLARES_GETOPT is defined.
12572 * configure.in: use builtin(include, ... rather than include(...
12573 * configure: Regenerate with autoconf 1.3.
12575 * libdriver/print.cc (printer::adjust_arc_center): Use new
12576 algorithm suggested by Andy Fyfe.
12578 * libdriver/printer.cc (printer::adjust_arc_center): New function.
12579 * include/printer.h: Declare this.
12580 * grops/ps.cc (ps_printer::draw): Use it.
12581 * grodvi/dvi.cc (dvi_printer::draw): Use it.
12583 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
12585 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
12587 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
12589 * eqn/main.cc (main): Handle "eqn -".
12591 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
12593 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
12595 * mm: Integrate version 1.08.
12597 * pic/troff.cc (troff_output::finish_picture): Set
12598 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
12599 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
12600 if it's not defined. Check whether the register is non-zero rather
12601 than whether it's not defined.
12602 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
12604 * indxbib/indxbib.cc: Move all signal handling into...
12605 * indxbib/signal.c: New file.
12606 * configure.in: Call AC_RETSIGTYPE.
12608 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
12609 * configure.in: Call GROFF_STRUCT_EXCEPTION.
12610 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
12612 * troff/input.cc (token::token, token::operator=): Work round SGI
12614 * pic/object.cc (position::position): Likewise.
12616 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
12618 * pic/pic.h: Move declaration of hypot().
12620 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
12622 * pic/pic.h: Declare hypot().
12624 * pic/pic.h: Define M_PI if necessary.
12626 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
12628 * tmac/tmac.e (re): Add alternative version that doesn't use groff
12631 * devps/prologue.ps (RE): Handle the possibility that the old font
12632 doesn't have a FontName entry.
12634 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
12636 * tmac/tmac.e (fam): Redefine to set family in environment 2.
12637 (@C): Use @fam not fam.
12639 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
12641 * lookbib/lookbib.cc (main): Change type of start to const char *.
12642 * lkbib/lkbib.cc (main): Likewise.
12644 * eqn/lex.cc (definition::definition): Don't use member
12645 initializer syntax for members of anonymous unions.
12647 * troff/input.cc (input_stack::backtrace): Change type of to const
12650 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
12652 * include/stringclass.h (class string): Declare inline friend
12653 functions as inline in class declaration.
12654 * troff/hvunits.h (class hunits, class vunits): Likewise.
12655 * include/refid.h (class reference_id): Likewise
12656 * troff/troff.h (points_to_units(units), scale(units, double)):
12657 Delete declarations.
12658 * libdriver/input.cc (get_char): Delete declaration.
12659 * include/lib.h: Change 2nd argument of getopt from const char **
12661 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
12662 char **' before assigning to a `const char **'.
12663 * tbl/table.cc: Delete extra declarations of prints().
12665 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
12667 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
12668 char **' before assigning to a `const char **'.
12670 * libgroff/errarg.cc (errarg::errarg): Don't use member
12671 initializer syntax for members of anonymous unions.
12673 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
12675 * mm: Integrate version 1.07.
12677 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
12679 * troff/input.c (translate2): Rename to
12680 (translate_no_transparent).
12681 (init_input_requests): Rename tr2 to trnt.
12683 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
12685 * troff/charinfo.h (class charinfo): Add transparent_translate field.
12686 (charinfo::set_translation, charinfo::set_special_translation):
12687 Add second argument that specifies value for
12688 transparent_translate.
12689 (charinfo::get_translation, charinfo::get_special_translation):
12690 Add optional second argument that specifies whether translation is
12691 being used for transparent throughput.
12692 * troff/input.cc (charinfo::set_translation,
12693 charinfo::set_special_translation): Handle second argument.
12694 (charinfo::charinfo): Initialize transparent_translate.
12695 (translate): Split main part off into
12696 (do_translate): New function. Pass argument saying whether
12697 translation applies to transparent throughput.
12698 (translate2): New request.
12699 (init_input_requests): Bind translate2 to `tr2'.
12701 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
12703 * tbl/table.h (class table): Add `nokeep' flag.
12704 * tbl/main.cc (process_options): Handle `nokeep' option.
12705 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
12706 table::do_bottom): Don't output keep/release macro definitions or
12707 calls when `nokeep' option has been specified.
12709 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
12711 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
12713 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
12715 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
12716 block_entry::divert, alphabetic_block_entry::divert): Add extra
12717 argument giving column separation.
12718 (table::compute_widths): Pass column separation to
12719 table_entry::divert().
12720 (block_entry::do_divert): If an entry spans multiple columns and a
12721 minimumum width has been specified for each column, then set the
12722 line length to the sum of the widths (plus possibly the column
12725 * troff/input.cc (set_escape_char): Don't set the escape_char
12726 until after calling has_arg().
12728 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
12730 * tbl/table.cc (table::do_top): Add missing \s0 for double box
12733 * tbl/table.cc (table::print_double_hline): Avoid extra new line
12734 in case where r > nrows - 1.
12736 * tbl/table.cc (BODY_HEIGHT): Deleted.
12737 (LINE_SEP): New definition.
12738 (table::print_single_hline, table::print_double_hline,
12739 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
12740 table::do_row, table::do_top): Use LINE_SEP space before a line
12741 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
12743 * tbl/table.cc (text_entry::print_contents): New function.
12744 (text_string_name, right_text_string_name): Deleted.
12745 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
12746 (simple_text_entry::do_width, numeric_text_entry::do_width,
12747 alphabetic_text_entry::do_width): Don't store the contents of the
12749 (left_text_entry::simple_print, right_text_entry::simple_print,
12750 center_text_entry::simple_print,
12751 alphabetic_text_entry::simple_print,
12752 numeric_text_entry::simple_print): Print the entry directly
12753 instead of using the stored string.
12755 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
12757 * devps/Makefile: Strip PostScript files.
12758 * devps/prologue: Rename to...
12759 * devps/prologue.ps.
12760 * devps/psstrip.sed: New file.
12761 * devps/download: Use .pfa rather than .ps for installed versions
12764 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
12766 * troff/env.cc (input_trap): Give a warning if the argument is out
12769 * troff/env.cc (adjust): Treat negative argument as missing. Round
12770 argument > 5 down to 5.
12772 * troff/env.cc (center, right_justify): Make negative argument zero.
12774 * troff/div.cc (page_offset, vertical_position_traps): Treat
12775 invalid argument as missing.
12776 * troff/env.cc (line_spacing, line_length, title_length, indent,
12777 underline, hyphen_line_max_request, control_char,
12778 no_break_control_char, widow_control_request, adjust, input_trap,
12779 point_size): Likewise.
12780 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
12781 constant_space): Likewise.
12782 * troff/input.cc (compatible, shift, warn_request,
12783 set_escape_char): Likewise.
12785 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
12786 * tbl/table.cc (table::table): Likewise.
12788 * Makefile.dev (install_dev): depends on $(DEVFILES).
12790 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
12792 * devX75, devX75-12, devX100, devX100-12: New directories.
12793 * Makefile.in: Add these to DEVDIRS.
12795 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
12796 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
12797 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
12798 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
12800 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
12801 (uninstall): New target.
12802 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
12803 uninstall_prog, uninstall_dev): New targets.
12805 * troff/div.cc (return_request): Treat an invalid argument as
12808 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
12810 * tmac/tmac.e ((f): Set up the environment even when there's a
12811 current diversion. Transperently throughput a call to @N.
12814 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
12816 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
12817 up to vertical resolution.
12819 * tbl/table.cc (table::do_row): Change row number after printing
12822 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
12824 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
12826 * Rename CHANGES to NEWS.
12828 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
12830 * libgroff/new.cc (operator new): Avoid calling malloc(0).
12832 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
12834 * man.ultrix: Removed.
12836 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
12838 * Makefile.comm (extraclean): Delete files whose names begin with
12841 * pic/troff.cc (troff_output::text): Fix typo in implementation of
12844 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
12846 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
12847 * troff/div.cc (page_length, need_space, space_request): Treat
12848 invalid optional argument as missing.
12849 * troff/env.cc (number_lines): If the first argument is present
12850 but not a number, turn on line numbering, don't change the next
12851 line number and parse the remaining arguments.
12853 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
12855 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
12857 * eqn/box.h: Change declaration accordingly.
12858 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
12859 the specified size was bad but don't give an error. Check for
12861 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
12862 * eqn/lex (do_size): Likewise.
12864 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
12866 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
12867 compatible headers.
12869 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
12871 * tbl/table.cc (table::init_output): Improve error message when
12872 table won't fit on one page.
12874 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
12876 * pic/troff.cc (troff_output::start_picture): Generate line
12877 containing a horizontal motion equal to the width of the picture.
12879 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
12880 using GROFF_COMMAND_PREFIX environment variable.
12882 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
12884 * mdate.sh: Use $NF rather than $(NF).
12886 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
12888 * pic/main.cc (main): Use %1 not %c in argument to warning.
12890 * eqn/main.cc (main): Output code to check that geqn was given the
12893 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
12895 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
12896 `ln -s ../Makefile .; make; rm -f Makefile'.
12898 * troff/hyphen: Rename to...
12900 * troff/input.cc (main): Delete -H option. Don't call
12901 read_hyphen_file().
12902 * troff/env.cc: Include searchpath.h and macropath.h.
12903 (exception_dictionary): Deleted.
12905 (read_hyphen_file): Deleted.
12906 (hyphenation_language): New struct.
12907 (class trie, class hyphen_trie): Move declarations up.
12908 (trie_node::~trie_node): Deleted.
12909 (trie::delete_trie_node): New function.
12910 (trie::do_delete): New pure virtual function.
12911 (hyphen_trie::do_delete): New function.
12912 (trie::~trie): New function.
12913 (hyphen_trie::~hyphen_trie): New function.
12914 (trie::clear): No need to chcek that tp is not 0.
12915 (current_language, language_dictionary): New variables.
12916 (hyphen_word): Give an error if no current language. Use
12917 exceptions dictionary in current language.
12918 (hyphen_trie::read_patterns_file): Find file using macro_path.
12919 Allow comments (starting with %) in patterns file. Don't make it
12920 a fatal error if the file can't be found.
12921 (hyphenate): Return if no current language. Get the exceptions
12922 dictionary and the hyphenation patterns from the current language.
12923 (set_hyphenation_language): New variable.
12924 (hyphenation_patterns_file): New function.
12925 (hyphenation_language_reg): New class.
12926 (hyphenation_language_reg::get_string): New function.
12927 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
12928 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
12930 * groff/groff.cc (main, help, synopsis): Delete -H option.
12931 * include/Makefile.sub: Don't define HYPHENFILE.
12932 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
12933 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
12934 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
12935 hyphenation patterns.
12937 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
12939 * eqn/neqn.sh: New file.
12940 * eqn/Makefile.sub: Handle neqn.sh.
12942 * eqn/eqn.h: Declare `nroff' variable.
12943 * eqn/box.cc (param_table): Add `nroff' param.
12944 (nroff): Define it.
12945 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
12947 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
12949 * troff/troff.h (WARN_FONT): New warning.
12950 (WARN_TOTAL): Change accordingly.
12951 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
12952 (warning_table): Add WARN_FONT.
12953 * troff/node.cc (mount_font_no_translate): Pass argument to
12954 font::load_font. If this is non-zero, give a warning.
12955 Don't give an error message when accessing a font that has already
12956 been found to be invalid.
12957 * include/font.h (font::load, font::load_font): Add additional
12958 optional argument which suppresses error message if the font is
12960 * libgroff/font.cc (font::load_font): Handle additional argument.
12961 (font::load): Add additional argument. If this is non-null, set it
12962 to 1 and don't give error message.
12964 * include/printer.h (printer::end_page): Add argument giving
12966 * libdriver/input.cc (do_file): Pass this.
12967 * grops/ps.cc (ps_printer::end_page): Add argument.
12968 * grodvi/dvi.cc (dvi_printer::end_page,
12969 draw_dvi_printer::end_page): Add argument.
12970 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
12971 columns_per_page members. New member nlines.
12972 (DEFAULT_LINES_PER_PAGE): Deleted.
12973 (tty_printer::tty_printer): Don't compute lines_per_page from
12974 font::paperlength. Don't compute columns_per_page from
12976 (tty_printer::add_char): Don't check horizontal position against
12977 columns_per_page. Grow glyphs vector if neccessary.
12978 (tty_printer::end_page): Add argument giving page_length in units.
12979 Discard lines past end of page.
12981 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
12983 * tmac/tmac.tty-char: Fix definition of \(/l.
12985 * tmac/tmac.X: Define \(en.
12987 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
12989 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
12990 lpq, then use lp rather than lpr.
12992 * tmac/tmac.s (par@reset): Don't call `ad'.
12993 (par*env-init): Call `ad'.
12995 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
12997 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
13000 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
13001 * indxbib/indxbib.cc: Likewise.
13003 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
13005 * libgroff/putenv.c: New file.
13006 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
13007 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
13008 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
13009 stdlib.h with AC_HAVE_HEADERS.
13011 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
13013 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
13016 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
13018 * eqn/box.cc (gsize): Make it an int.
13019 (set_gsize): Parse argument handling increment or decrement.
13020 (box::top_level): Convert gsize to a string.
13022 * troff/input.cc (exit_troff): Make buf unsigned char [].
13023 Call to make_temp_iterator casts buf to char*.
13025 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
13027 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
13028 * Makefile.cpg (depend.temp): Likewise.
13030 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
13032 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
13034 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
13036 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
13038 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
13040 * Version 1.06 released.
13042 * Integrate mm 1.04.
13044 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
13046 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
13048 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
13050 * afmtodit/afmtodit.pl: Add -n option that disables generation of
13052 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
13053 afmtodit. Regenerate.
13055 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
13056 @f back past the current position.
13058 * tmac/tmac.e: Change calls to @R so that comments are not part of
13061 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
13063 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
13065 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
13066 check that we can link a call to a function declared in <stdio.h>.
13067 (GROFF_UNISTD_H): New macro.
13068 * configure.in: Call it.
13069 * Makefile.in: Document it.
13070 * include/posix.h: New file.
13071 * troff/troff.h: Don't include <osfcn.h>
13072 * troff/input.cc: Include posix.h.
13073 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
13075 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
13076 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
13078 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
13079 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
13080 * libbib/search.cc (O_RDONLY): Delete definition.
13081 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
13082 Don't include <osfcn.h>.
13084 * acgroff.m4 (GROFF_TIME_T): New macro.
13085 * configure.in: Call it.
13086 * Makefile.in: Document it.
13088 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
13089 * configure.in: Call it.
13090 * Makefile.in: Document -DTRADITIONAL_CPP.
13091 * include/ptable.h: Don't include generic.h.
13092 (name2): Define it.
13094 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
13095 Afterwards remove [T1 and [T2.
13096 (ref*spec!0, ref*spec!2): Use T1 rather than T.
13097 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
13098 (ref*add-T2): Renamed from ref*add-T.
13099 (ref*add-T1): New macro.
13101 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
13103 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
13105 * libbib/index.cc: Include <fcntl.h>.
13106 (O_RDONLY): Define if necessary.
13107 (make_index_search_item, index_search_item_iterator::get_tag,
13108 index_search_item::check_files): Use O_RDONLY.
13109 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
13110 (O_RDONLY): Define if necessary.
13111 (search_list::add_file): Use O_RDONLY.
13112 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
13114 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
13117 * libbib/index.cc (S_ISREG): Define it if necessary.
13118 (index_search_item::load): Use S_ISREG.
13120 * include/driver.h: Include <errno.h>.
13122 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
13124 * eqn/box.cc (body_height): Increase default value to 85.
13125 (body_depth): Increase default value to 35.
13127 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
13129 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
13130 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
13131 protected from expansion with \E.
13133 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
13135 * Makefile (Makefile): New target.
13137 * Makefile.sub (configure, distfiles): New targets.
13139 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
13142 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
13144 * eqn/box.cc (param_table): Add body_height and body_depth.
13146 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
13148 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
13150 * psbb/Makefile.sub: Don't link with libgroff.a.
13152 * acgroff.m4 (GROFF_PUTENV): New macro.
13153 * configure.in: Call GROFF_PUTENV.
13154 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
13155 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
13158 * troff/env.cc (distribute_space): Rename force_forward argument
13159 to force_reverse. Reverse the list if force_reverse is true.
13161 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
13163 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
13165 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
13166 height or depth to be negative. Guard against SUP_RAISE quantity
13169 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
13171 * devps/generate/textmap: Add `an' (arrowhorizex).
13172 * tmac/tmac.ps: \(an overlaps horizontally.
13173 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
13175 * devps/symbolchars: Add arrowverttp, arrowvertbt.
13176 * devps/textmap: Add arrowvertex.
13177 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
13178 updownarrow delimiters.
13179 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
13181 * tbl/table.cc (simple_entry::position_vertically,
13182 block_entry::position_vertically): For a centered entry, perform
13183 the motion in two stages.
13185 * refer/refer.cc (split_punct): Don't call lookup_token if there
13188 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
13190 * troff/input.cc (token::next): Delete token_node after copying
13193 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
13196 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
13198 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
13200 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
13202 * grops/ps.cc (usage): -b option takes an argument.
13204 * devps/prologue (PLG): New procedure.
13205 * grops/ps.cc (main, usage): New -g option.
13206 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
13209 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
13211 * include/cset.h: Include <limits.h> if we have it.
13213 * libgroff/illegal.cc: New file.
13214 * include/lib.h (illegal_input_char): Use table.
13215 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
13216 * pic/lex.cc (ARG1): Renumber to 14.
13217 * eqn/lex.cc (ARG1): Likewise.
13219 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
13220 (eg 1.05.90) correctly.
13222 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
13224 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
13225 Rename $r and $R registers to $v and $V.
13226 ($r, $R): Initialize to 0.
13227 (@v, @V): New macros.
13231 * troff/input.cc (main, usage): Add -R option that says not to
13233 * eqn/main.cc (main, usage): Rename -n to -R.
13235 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
13237 * devps/DESC.in: Leave font positions 5-9 blank.
13238 * devdvi/DESC.in: Likewise.
13240 * grog/grog.pl: Handle `.PS <file' correctly.
13242 * troff/input.cc (input_stack::push): Improve error message when
13243 input stack limit exceeded.
13245 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
13247 * refer/refer.cc (main): Fix typo in handling of `a' option.
13249 * refer/refer.cc (do_bib): In state START after a newline remain
13252 * groff/groff.sh: Deleted.
13253 * groff/Makefile.sub: Delete handling of groff.sh.
13255 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
13256 to determine whether to use \X'ps:...'.
13257 * tmac/troffrc: Set 0p register to 0.
13258 * tmac/tmac.ps: Set 0p register to 1.
13260 * groff/groff.cc: Support -X option. Give warning for -TXps and
13261 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
13262 * tmac/troffrc: Support -r.X=1.
13264 * pic/troff.cc (troff_output::dot): Don't test
13265 zero_length_line_flag.
13267 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
13269 * include/lib.h: Declare getopt() and friends unless
13270 STDLIB_H_DECLARES_GETOPT is defined.
13272 * doc/chars.tr: Delete.
13273 * man/groff_char.man: New file.
13275 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
13277 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
13278 user has changed register format.
13280 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
13282 * groff/groff.cc: Get rid of device_table. Get postprocessor from
13283 `postpro' command in DESC file. Get spooler command from `print'
13284 command in DESC file. Execute spooler command with /bin/sh.
13286 * groff/groff.cc: Split Unix-specific parts into...
13287 * groff/pipeline.c: New file.
13290 * COPYING: New file.
13291 * all files: Update copyright notices.
13293 * Rearrange files. Redo Makefiles. Use autoconf.
13295 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
13297 * troff/input.c (charinfo_to_node_list): Interpret character
13298 definition with escape_char of `\'.
13300 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
13302 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
13303 Define INT_DIGITS as big enough for 64-bit integer.
13304 * lib/strtol.c: Don't include lib.h.
13305 * lib/lib.h: Delete ifdef __cplusplus stuff.
13307 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
13309 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
13310 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
13311 get DESC from current directory.
13313 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
13315 * tbl/main.c (main): Always reset the line number when reading
13318 * tbl/table.c (table::print_single_hline, table::print_double_hline,
13319 table::define_bottom_macro, table::do_row, table::do_top): Round
13320 vertical spacing up to vertical resolution.
13322 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
13324 * ps/ps.h (enum resource_type): Avoid comma at end of
13326 * dvi/dvi.c (class dvi_printer): Likewise.
13327 * dvi/tfmtodit.c (gf::load): Likewise.
13328 * refer/label.y (struct expression): Likewise.
13329 * refer/refer.c (class label_processing_state): Likewise.
13330 * refer/indxbib.c (do_file): Likewise.
13331 * troff/troff.c (enum warning_type): Likewise.
13332 * tbl/main.c (process_data): Likewise.
13333 * troff/charinfo.h (class charinfo):
13335 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
13337 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
13339 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
13341 * groff.c: Move to new groff subdirectory.
13342 * groff/Makefile: New file.
13343 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
13345 * man/mdate.sh: Use ls -L if supported.
13347 * Consolidate all header files produced by gendef into lib/defs.h.
13348 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
13349 Don't include path.h.
13350 * lib/Makefile (path.h): Don't generate.
13351 * troff/input.c: Include defs.h. Don't include config.h.
13352 * troff/Makefile (config.h): Don't generate.
13353 * refer/index.h: Don't include suffix.h.
13354 * refer/index.c: Include defs.h.
13355 * refer/indxbib.c: Include defs.h.
13356 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
13358 * refer/Makefile (suffix.h, path.h): Don't generate.
13359 * groff.c: Don't include config.h. Include defs.h.
13360 * Makefile (config.h): Don't generate.
13361 (lib/defs.h): Generate.
13362 (topclean): Remove lib/defs.h.
13364 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
13366 * lib/malloc.c, lib/getpagesize.h: Deleted.
13367 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
13369 * lib/Makefile: Delete malloc-related stuff.
13370 * lib/new.c: Workaround COOKIE_BUG if necessary.
13372 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
13373 needed header files directly.
13374 * refer/refer.h: Omit definition of DEFAULT_INDEX.
13375 * Makefile: Include definition of DEFAULT_INDEX in path.h.
13377 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
13379 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
13381 * lib/font (font::load_desc, font::load): Don't split argument of
13383 (font::handle_unknown_font_command): Change type.
13384 * ps/ps.c (ps_font::handle_unknown_font_command,
13385 handle_unknown_desc_command): Change type.
13386 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
13388 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
13390 * lib/font.h (font::handle_unknown_font_command): Add file and
13392 * lib/font.c (font::handle_unknown_font_command):
13393 * ps/ps.c (ps_font::handle_unknown_font_command):
13394 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
13395 lineno arguments. Use _with_file_and_line functions for error
13398 * lib/fontfile.c (font::unknown_desc_command_handler): New static
13400 * lib/font.c (font::set_unknown_desc_command_handler): New
13402 (font::load_desc): For unknown commands, call
13403 unknown_desc_command_handler if not null.
13404 * lib/font.h (class font): Declare them.
13405 (FONT_COMMAND_HANDLER): New typedef.
13406 * ps/ps.c (handle_unknown_desc_command): New function.
13407 (main): Set bflag if we had a -b option. Call
13408 font::set_unknown_desc_command_handler.
13409 (broken.h): Don't include.
13410 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
13412 * ps/devps/Makefile: Add `broken' command to DESC file using
13413 BROKEN_SPOOLER_FLAGS.
13415 * macros/tmac.e ([, ]): Add as synonyms for { and }.
13417 * macros/tmac.e ($p): Only exdent if \$3 > 0.
13419 * macros/tmac.e (@R, @S): New macros.
13420 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
13421 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
13422 Declare $H, $[0-9], .. macros with @S.
13423 Declare |0, |1, |2, |3 strings with @S.
13425 * macros/tmac.e (@S): Rename to @U.
13427 * macros/tmac.e (@z): Define @b and bp as empty instead of
13430 * macros/tmac.e (@m): Deleted.
13431 (@h): Don't call @m.
13432 (@z): Don't set @m trap.
13434 * macros/tmac.e ($h, $f): Define |z as empty string.
13436 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
13439 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
13441 ()f): Likewise for * register.
13443 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
13444 argument is missing, don't change $R. Call sr with three
13445 arguments when initializing.
13447 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
13449 * macros/tmac.e (sr): New macro.
13450 Initialize $r and $R using sr.
13452 * macros/tmac.e (,): Delete \*(#[.
13454 * troff/env.c (set_tabs): Read the tab type even if the position
13455 is bad. Allow the position of the first tab stop to be negative.
13457 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
13459 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
13461 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
13462 rather than -DPATHCONF_MISSING.
13463 * Makefile: Get rid of PATHCONF_MISSING.
13465 * refer/map.c: New file.
13466 * refer/index.c: Interface to mmap through map.c. Rename map_size
13468 * refer/Makefile: Handle map.c.
13469 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
13471 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
13473 * Makefile: RANLIB should be `true' if there is no ranlib.
13474 * lib/Makefile (libgroff.a): Simplify.
13475 * driver/Makefile (libdriver.a): Simplify.
13477 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
13478 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
13481 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
13483 * troff/env.c (compare_ranges): Declare as extern "C".
13485 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
13487 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
13489 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
13491 * pic/troff.c (troff_output::text): Merge in grops_output::text,
13492 but conditionalize use of \X based on \*(.T.
13493 (grops_output::*): Deleted.
13494 * pic/output.h: Delete declaration of make_grops_output.
13495 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
13496 by default. -n sets it to 0.
13497 (usage): Corresponding changes.
13498 * groff.c (main): Don't pass -x or -p to pic.
13499 * groff.sh: Likewise.
13501 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
13504 * ps/devps/afmtodit: Change calculation of asc_boundary and
13505 desc_boundary. Make these bounds inclusive.
13506 * ps/devps: Regenerate font files.
13508 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
13510 * macros/tmac.latin1: New file.
13511 * macros/tmac.tty-char: Use tmac.latin1.
13512 (tmac.tty-tr): Deleted.
13513 * macros/Makefile: Install tmac.latin1.
13514 * macros/tmac.dvi: Use tmac.latin1.
13515 * macros/troffrc: Translate \[char160] onto no-break space here.
13516 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
13518 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
13520 * macros/tmac.Xps: Use `do' request.
13522 * macros/tmac.ps: Use `do' request.
13524 * macros/tmac.e (@C): Use `do' request.
13526 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
13527 * macros/Makefile: Install tmac.X*.
13529 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
13530 * tty/Makefile: Don't install tmac.tty*.
13531 * macros/Makefile: Install tmac.tty*.
13533 * dvi/tmac.dvi: Move to macros.
13534 * dvi/Makefile: Don't install tmac.dvi.
13535 * macros/Makefile: Install tmac.dvi.
13537 * ps/tmac.ps*: Move to macros.
13538 * ps/Makefile: Don't install tmac.ps*.
13539 * macros/Makefile: Install tmac.ps*.
13541 * eqn/box.c: Provide draw_lines parameter corresponding to -D
13543 * macros/eqnrc: Set draw_lines parameter based on device.
13544 * groff.c: Don't pass -D flag to eqn.
13545 * groff.sh: Likewise.
13546 * eqn/main.c: Warn about use of -D.
13548 * troff/input.c (process_startup_file): New function.
13549 (main): Call process_startup_file().
13550 * macros/troffrc: New file.
13551 * macros/Makefile: Install troffrc.
13552 * groff.c (main): Don't pass extra -m option to troff. For a
13553 pseudo device pass the name of the pseudo device to troff using
13555 * groff.sh: Likewise.
13556 * groff.c (possible_command::prepend_arg): Deleted.
13558 * troff/input.c (do_request): New function.
13559 (init_input_requests): Bind "do" to do_request.
13561 * eqn/main.c (main): Instead of loading eqnchar from device directory,
13562 load eqnrc from macro directory.
13563 * macros/eqnrc: New file.
13564 * macros/Makefile: Install eqnrc.
13565 * ps/devps/eqnchar: Deleted.
13566 * ps/devps/Makefile: Don't install eqnchar.
13567 * dvi/devdvi/eqnchar: Deleted.
13568 * dvi/devdvi/Makefile: Don't install eqnchar.
13569 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
13572 * lib/device.[ch]: New files.
13573 * lib/font.h (font::set_device_name, font::get_device_name):
13575 * lib/fontfile.c: Use device.h.
13576 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
13577 * troff/input.c: Delete definition of `device'.
13578 (main): Don't initialize device.
13579 * troff/troff.h: Include device.h rather than declaring device.
13580 * troff/Makefile: No need to handle DEVICE.
13581 * driver/input.c: Include device.h. Don't use
13582 font::{set,get}_device_name.
13583 * groff.c, Makefile: Rename device.h to config.h.
13584 * groff.c: Use library device variable.
13585 * eqn/main.c: Use library device variable.
13586 * eqn/Makefile: No need to handle DEVICE.
13588 * lib/searchpath.[ch]: New files.
13589 * lib/Makefile: Handle searchpath.[ch].
13590 * troff/input.c (open_file, init_dirs): Deleted.
13591 (macro_dirs): Deleted.
13592 (open_mac_file, macro_source): Use class search_path.
13593 (add_string, struct string_list): Move definition.
13594 (main): Change -M option to use macro_path. Delete call to
13596 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
13597 Rewrite to use class search_path.
13598 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
13599 * lib/Makefile: fontfile.c depends on searchpath.h.
13600 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
13602 * lib/macropath.[ch]: New files.
13603 * troff/Makefile: No need to handle MACROPATH.
13605 * troff/input.c: Delete DUMP code.
13606 * lib/fontfile.c, lib/font.h: Delete
13607 font::forget_command_line_font_dirs.
13609 * troff/input.c (push_token): New function.
13610 (handle_first_page_transition): Use push_token().
13611 (process_input_stack): Change handling of a space at the beginning
13614 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
13616 * troff/input.c (font_dirs): Delete unused variable.
13618 * eqn/lex.c (do_set): Correct error messages.
13620 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
13622 * troff/input.c (do_define_string): Allow the string name to be
13623 followed immediately by a tab.
13624 (define_character): Likewise.
13626 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
13628 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
13631 * troff/input.c (input_iterator::is_file): New virtual function.
13632 (file_iterator::is_file): New function.
13633 (input_stack::end_file): New function.
13634 (input_stack::next_file): Handle the situation where there is no
13635 file on the input stack correctly. Avoid making two passes over
13637 (next_file): Make the filename optional; in this case call
13638 input_stack::end_file().
13640 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
13642 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
13643 produce a real _ charater when the current font is CW and _
13646 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
13647 expression to work around gcc 2.2 bug.
13649 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
13651 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
13653 * troff/env.c (environment::add_padding): New function.
13654 (environment::add_char): Use add_padding().
13655 (environment::space): Likewise.
13656 (environment::wrap_up_field): Add some padding if there is none
13657 and there's no current tab.
13658 * troff/env.h: Declare environment::add_padding.
13660 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
13662 * pic/pic.y: undef fmod and rand before declaring them.
13664 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
13666 * troff/input.c (main): If the DESC file specifies a font name of
13667 0, then leave the corresponding font position empty.
13669 * nroff.sh: New file.
13670 * Makefile (install.nobin): Install nroff.sh.
13672 * tty/devlatin1/R.proto: Add ao as synonym for de.
13673 * tty/tmac.tty-char: Define ao as o.
13675 * tty/dev{ascii,latin1}/R.proto: Add aq.
13676 * tty/tmac.tty-char: Delete definition of aq.
13678 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
13680 * troff/input.c (init_charset_table): Don't translate 0240.
13681 * ps/tmac.ps: Translate char160 to space.
13682 * dvi/tmac.dvi: Likewise.
13683 * tty/tmac.tty: Likewise.
13685 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
13687 * dvi/tmac.dvi: Add support for all Latin-1 characters.
13689 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
13690 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
13693 * tty/tmac.tty-char: Add \(ah.
13695 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
13696 No need to define \(FM and \(!/. Conditionalize all character
13699 * ps/devps/lgreekmap: Add +h, +f, +p.
13701 * ps/tmac.psnew: New file.
13702 * ps/Makefile: Install tmac.psnew.
13704 * troff/input.c (charinfo_to_node_list): Don't ever interpret
13705 character definitions in compatible mode.
13707 * troff/input.c (remove_character): New function.
13708 (init_input_requests): Bind remove_character to "rchar".
13710 * ps/tmac.psold: New file.
13711 * ps/Makefile: Install tmac.psold.
13712 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
13713 characters into tmac.psold. Make these definitions unconditional.
13715 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
13717 * ps/tmac.ps: Don't define \('c and \('C.
13719 * ps/devps/textmap: Move Greek characters to...
13720 * ps/devps/symbolchars:
13722 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
13724 * ps/devps/text.enc: Add quotesingle.
13725 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
13726 * tty/tmac.tty-char: Likewise.
13727 * dvi/devdvi/texmi.map: Add +h, +f, +p.
13728 * dvi/devdvi/texi.map: Add Fn.
13729 * dvi/devdvi/msam.map: Add lz.
13730 * dvi/tmac.dvi: Handle Bq, bq, aq.
13732 * pic/lex.c (get_token): Recognize 'th.
13733 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
13735 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
13737 * ps/devps/textmap: Move di, mu, +- to...
13738 * ps/devps/symbolchars:
13740 * macros/tmac.s (@XS): Don't call par@reset or fi.
13741 (XA): Call LP. Turn off adjustment. Reduce line length.
13743 * macros/tmac.s: Initially alias XS to LP.
13744 (XS): Rename to @XS.
13745 (cov*ab-init): Alias XS to @XS.
13747 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
13749 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
13750 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
13751 (token::is_size, token::changes_env): Deleted.
13752 * troff/number.c (parse_term): No need to process \s explicitly.
13753 Call tok.next() only after scale indicator has been processed.
13754 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
13756 (token::next): Handle \s, \f, \S, \H immediately rather than
13757 returning them as tokens.
13758 (token::operator==, token::description, token::add_to_node_list,
13759 token::process): Remove handling of deleted tokens.
13761 * troff/env.c (environment::add_char): When adding padding
13762 indicator character, call start_line() if necessary.
13764 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
13766 * ps/devps/afmtodit: Don't output 0 kerns.
13768 * ps/devps/afmtodit: Remove directory from name of encoding in
13769 font description file.
13771 * ps/devps/afmtodit: Improve error messages.
13773 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
13775 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
13776 * ps/devps/FontMakefile: Deleted.
13777 * ps/devps/afmname: New file.
13779 * ps/devps/symbol.sed: New file.
13780 * ps/devps/symbol.diff: Deleted.
13781 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
13782 Generate zapfdr.afm from zapfd.afm.
13784 * tty/tmac.tty (tty-char): Prefix definition with ".
13786 * macros/tmac.an (TP): Don't start a diversion if one has already
13789 * tty/tmac.tty-char: Add Latin-1 characters.
13791 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
13793 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
13795 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
13796 Move declaration of struct horizontal_span.
13798 * tbl/table.c (table::table): Initialize span_list.
13799 (table::~table): Delete span_list.
13801 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
13803 * ps/devps/Makefile: Avoid dependency on GNU make.
13805 * ps/tmac.ps: Check that character does not already exist before
13808 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
13809 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
13810 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
13813 * tty/tmac.tty-char: New file.
13814 * tty/Makefile: Install tmac.tty-char.
13815 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
13818 * tty/tmac.tty: Fix definition of \(34.
13820 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
13821 bracket-drawing characters onto |. Add *o.
13823 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
13824 only if current_field.
13826 * troff/dictionary.c (dictionary::lookup): Free old_table after
13829 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
13831 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
13832 whose glyphs are identical to glyphs of some Roman character.
13834 * tty/devlatin1/R.proto (bu): Deleted.
13835 * tty/devascii/R.proto (bu): Deleted.
13836 * tty/tmac.tty: Add definition of \(bu.
13838 * eqn/main.c (do_file): Pass FILE as argument.
13839 (main): Automatically load eqnchar. New options -F and -n.
13840 Pass do_file an opened FILE.
13841 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
13842 No need to include font.h.
13843 * groff.sh: Likewise. Don't need to use - for standard input.
13844 Prefix files with -- if first file starts with -.
13846 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
13848 * troff/env.c (environment::possibly_break_line): Don't set line
13849 to 0 across call to output_line(). Don't call output_line() until
13850 after discarding nodes after break.
13852 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
13854 * request.h (macro::empty): Declare it.
13855 * input.c (macro::empty): New method.
13856 (interpolate_macro): Don't give a WARN_SPACE if the two-character
13859 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
13861 * troff/env.c (environment::start_field): Decrement space_total
13862 when a space is frozen.
13864 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
13866 * macros/tmac.an (R): Delete macro.
13868 * troff/input.c (get_copy, token::next): Support \# (like \" but
13869 newline is ignored).
13871 * troff/input.c (token::next): Fix error message in 'Y' case.
13873 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
13875 * eqn/delim.c (define_extensible_string): Recognize any prefix of
13878 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
13880 * c++test.c: Include <osfcn.h>.
13882 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
13885 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
13887 * tbl/table.c (table::divide_span): Don't count column separation
13888 if expand was specified.
13890 * tbl/main.c (process_format): Don't ignore width specs in
13891 continued format. Give warning for changing equal widths or
13892 column separation in continued format.
13893 (process_data): Set column separation, minimum width, equal
13894 columns at end of table.
13896 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
13898 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
13899 node::add_discretionary_hyphen): Use soft_hyphen_char.
13900 (set_soft_hyphen_char): New function.
13901 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
13903 * Makefile (c++tested): Give more helpful message if test fails.
13905 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
13907 * troff/input.c (init_charset_table): Translate 0240 to
13908 an unbreakable space.
13910 * troff/token.h (token::hyphen_indicator): New function.
13911 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
13913 * troff/input.c (translate): Allow translation to \%.
13914 * troff/node.c (node::add_char): Handle
13915 TRANSLATE_HYPHEN_INDICATOR.
13916 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
13918 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
13921 * tty/devlatin1/R.proto: \(hy and - should print as 055.
13923 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
13925 * groff.c (run_commands): If the last command gets a SIGPIPE send
13926 a SIGPIPE to all children than haven't yet terminated. When
13927 command terminates, set pid field to -1.
13929 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
13931 * groff.c (main): Pass an appropriate -filename option to gxditview.
13933 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
13935 * Makefile.bd (install): Remove existing program before copying.
13937 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
13938 programs which have Unix counterparts to be installed with
13939 user-specified prefix.
13941 * troff/input.c (exit_troff): Don't check if exit_started.
13942 (exit_request): Don't call exit_troff if exit_started.
13944 * Makefile.bd (install.mm): Rename to install.dwbmm.
13946 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
13948 * driver/input.c (do_file): Add missing break for '#' case.
13950 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
13952 * troff/input.c (input_stack::clear): Clear past any boundaries and
13953 then add the boundaries back.
13955 * troff/input.c (exit_troff): Return immediately if already
13958 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
13960 (pg*end-page): If the text has ended and there are no more
13961 footnotes or keeps, exit.
13963 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
13965 * troff/input.c (init_charset_table): Make \(rq transparent by
13968 * macros/tmac.an: Define lq and rq strings.
13970 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
13972 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
13974 * troff/env.c (environment::final_break): New function.
13975 (environment::newline): Set prev_line_interrupted to 2 if
13977 * troff/env.h: Declare environment::final_break.
13978 * troff/input.c (exit_troff): Call environment::final_break()
13979 instead of environment::do_break().
13981 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
13982 doesn't already exist.
13983 * macros/man.local: New file.
13984 * macros/tmac.an: Load man.local.
13985 * macros/man.ultrix: New file.
13987 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
13989 * troff/input.c (exit_groff): Rename to...
13990 (exit_troff): New function.
13992 * troff/div.c (exit_started, done_end_macro,
13993 seen_last_page_ejector): New global variables.
13994 (began_page_in_end_macro): New static variable.
13995 (exit_flag): Deleted.
13996 (top_level_diversion::top_level_diversion): Initialize
13998 (top_level_diversion): More elaborate test for whether
13999 cleanup_and_exit() should be called.
14000 Set began_page_in_end_macro if the end macro isn't yet finished.
14001 * troff/div.h (top_level_diversion::last_page_count): New data
14003 (top_level_diversion::set_last_page): New function.
14004 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
14005 * troff/env.c (do_break): Zero prev_line_interrupted.
14006 * troff/input.c (exit_flag): Delete declaration.
14007 (LAST_PAGE_EJECTOR): New magic cookie.
14008 (token::next): Handle LAST_PAGE_EJECTOR.
14009 (exit_groff): Set exit_started and done_end_macro instead of
14010 exit_flag. Call top_level_diversion::set_last_page. Push a
14011 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
14012 another ejection after setting seen_last_page_ejector.
14014 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
14016 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
14018 * macros/tmac.e (TH): Make sure there's room for the initial
14021 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
14022 Set FVS in points rather than units.
14024 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
14026 * troff/div.c (top_level_diversion::add_trap): Don't consider the
14027 position of empty slots.
14029 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
14031 * ps/devps/S: Fix height and depth of parenrightex.
14032 * ps/devps/symbol.diff: Regenerate.
14034 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
14036 * tmac.e (u): Do underlining as in -mgs.
14038 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
14040 * tty/tty.c (tty_printer::end_page): If overstriking is
14041 suppressed, still turn overstruck horizontal and vertical lines
14044 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
14047 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
14049 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
14051 * Version 1.05 released.
14053 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
14055 * tty/tty.c: Instead of keeping an array of glyphs and then
14056 sorting it, keep a ordered linked list of glyphs for each line.
14058 * driver/driver.h: Include stddef.h.
14060 * tty/tty.c (compare_glyph):
14061 * refer/refer.c (rcompare):
14062 * troff/env.c (compare_ranges): Arguments of qsort comparison
14063 function should be const void *.
14065 * troff/number.c (parse_term):
14066 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
14069 * refer/label.y (consider_authors): Don't access variables
14070 constructed under a condition outside that condition: put braces
14071 round for statement containing declaration; redeclare use of same
14074 * pic/pic.y (text_expr): Delete production that allows
14075 parenthesised text_expr.
14076 (expr): Allow a conditional_expr to appear in parentheses.
14077 (conditional_expr): Rename to any_expr.
14079 * mm: Install new version 1.01 from jh.
14081 * lib/font.c (font::get_width): Cache scaled widths.
14082 (font::font): Initialize widths_cache.
14083 (font::~font): Destroy widths_cache.
14084 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
14086 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
14088 * c++test.c, c++test.ref: New files.
14089 * Makefile: Check that the C++ compiler works.
14091 * ps/tmac.pspic (PSPIC): Do a break.
14093 * ps/tmac.ps: Move definition of PSPIC into...
14094 * ps/tmac.pspic: New file.
14095 (PSPIC): Draw box around picture, but make it invisible to grops.
14096 * ps/tmac.ps: Load tmac.pspic.
14097 * ps/Makefile: Install tmac.pspic.
14099 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
14101 * lib/font.c (scale_round): If n is negative,
14102 subtract .5 before truncating floating point result.
14104 * lib/fontfile.c: Include <errno.h>.
14106 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
14108 * driver/input.c (get_char): Inline. Don't update current_lineno.
14109 Change callers to up date current_lineno if necessary.
14110 Use get_char() instead of getc(current_file).
14112 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
14114 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
14116 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
14118 * tty/tty.c (tmac.tty): Define \(rg as (R).
14120 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
14122 * lib/lib.h: New define a_delete.
14123 * Use a_delete instead of delete when deleting an array of objects
14124 without destructors.
14126 * lib/lib.h: Rename adelete to ad_delete.
14127 * Change uses of adelete.
14129 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
14131 * eqn/eqn.y: Include lib.h.
14133 * troff/node.c (grow_font_table): Delete old_font_table.
14135 * mm: Install new version from jh.
14137 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
14139 * tbl/table.h (format_type): Make global instead of local to class
14140 entry_format. Prefix enumerators with FORMAT_.
14141 * tbl/table.c, tbl/main.c: Corresponding changes.
14142 * refer/token.h (token_type): Make global. Prefix enumerators
14144 * refer/token.[ch]: Corresponding changes.
14145 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
14147 * troff/div.c (node::set_vertical_size): Don't name argument.
14149 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
14151 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
14152 * lib/lib.h: Define adelete accordingly.
14153 * pic/object.c (graphic_object::graphic_object):
14154 * tbl/main.c (format::~format):
14155 * tbl/table.c (table::~table):
14156 * refer/ref.c (reference::~reference, reference::merge,
14157 reference::insert_field, reference::delete_field): Use adelete.
14159 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
14161 * tbl/table.h: Corresponding changes.
14163 * common.c (common_output::dashed_arc, common_output::dotted_arc):
14164 Ensure total_angle is positive.
14166 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
14168 * refer/ref.c (reference::merge, reference::insert_field,
14169 reference::delete_field): Avoid delete[0].
14171 * refer/token.c (init_special_chars): Move calls to cmupper
14172 outside calls to init_two_char_letter to work around bug in gcc
14175 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
14177 * lib/new.c (operator new): Use __builtin_new for g++.
14179 * pic/object.c (graphic_object::~graphic_object): Don't use
14182 * pic/object.c (output::compute_scale): Initialize max_width and
14185 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
14187 * troff/input.c (write_request): Call fflush.
14189 * troff/node.h (class composite_node): Move declaration to node.c
14190 * troff/input.c (charinfo_to_node): Rename to ...
14191 (charinfo_to_node_list): Return node list rather than composite
14193 * troff/node.c (make_composite_node): New function.
14194 (make_node, add_char): Call make_composite_node instead of
14196 (class composite_node): Add a tfont * member. Delete font_size
14198 (composite_node::composite_node, composite_node::copy,
14199 composite_node::size): Corresponding changes.
14200 (composite_node::tprint): Provide constant spacing, emboldening
14201 and track kerning as specified in tfont.
14202 (composite_node::width): Change width calculation accordingly.
14203 * troff/env.h (environment::composite): New member.
14204 (environment::is_composite, environment::set_composite): New
14206 * troff/env.c (environment::environment): Initialize composite.
14207 * troff/input.c (charinfo_to_node): Call
14208 environment::set_composite.
14209 * troff/node.c (make_composite_node, make_glyph_node): Use the
14210 plain version of the tfont if the environment is composite.
14212 * troff/node.c (font_info::get_space_width): Additional argument
14213 giving space_size. Handle constant space correctly. Scale by
14214 space_size unless constant spaced.
14215 (env_sentence_space_width): New function.
14216 * troff/node.h: Declare it.
14217 * troff/env.h (environment::get_space_size,
14218 environment::get_sentence_space_size,
14219 environment::get_narrow_space_width,
14220 environment::get_half_narrow_space_width): Make inline.
14221 (environment::get_space_width): Make inline. Just call
14223 * troff/env.c: Delete definitions for funtions made inline.
14224 (environment::space_newline, environment::space): Use
14225 env_sentence_space_width(). Don't scale by space_size.
14226 * troff/node.h: Move declarations of env*space_width() functions
14229 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
14231 * macros/tmac.s (PS): Don't try to set negative indent.
14233 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
14235 * pic/pic.y: Fix min function.
14237 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
14239 * man/mdate.sh: Clear LANGUAGE.
14241 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
14243 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
14244 * pic/lex.c: New COMMAND keyword.
14245 * pic/pic.y (print_args, print_arg): New rules.
14246 (placeless_element): Use print_args for PRINT.
14247 New COMMAND element.
14249 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
14251 * troff/input.c (terminal): Handle missing argument correctly.
14253 * pic/pic.y (text_expr): New rule.
14255 * pic/pic.y: Implement := operator.
14257 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
14259 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
14262 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
14264 * ps/devps/dingbatsrmap: Include this in the distribution.
14266 * macros/tmac.doc: Replace with new version from 2nd Networking
14267 Release. Fix loading of doc-* files.
14268 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
14269 * macros/tmac.doc.old: New file. Apply fixes that had been
14270 applied to old tmac.doc.
14271 * macros/tmac.andoc: Check that we're running under groff.
14272 * macros/Makefile: Rework.
14274 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
14276 * tbl/table.h (format_type):
14277 * refer/token.h (token_type): If NESTED_TYPES is defined, use
14278 typedef to make these types visible at file scope.
14279 * Makefile: Add NESTED_TYPES configuration option.
14281 * troff/div.c (mark): At the top level use the value of
14282 nl_reg_contents rather than the current vertical position.
14284 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
14286 * tty/tty.c: Implement \D for horizontal or vertical lines.
14287 (tty_printer::set_char): Use vec_used+2 as serial number.
14288 Don't allow size of vector to exceed USHRT_MAX-2.
14289 Split off part into...
14290 (tty_printer::add_char): New function.
14291 (tty_printer::draw): New function.
14292 (compare_glyph): Handle equal serial numbers.
14293 (tty_printer::end_page): Handle overstruck characters from \D.
14294 (main, usage): Implement -d option.
14296 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
14298 * tbl/main.c (process_format):
14299 * eqn/text.c (split_text):
14300 * troff/input.c (token::next): Use inner block for declarations
14301 with initializers in switch statement.
14303 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
14305 * pic/common.c (common_output::dash_line): Cope with zero-length
14308 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
14310 * Version 1.04 released.
14312 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
14314 * macros/tmac.an (TH): Define a macro an-init to define variables
14315 based on command line arguments.
14316 (an-header): Call it.
14318 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
14320 * Makefile (install.mm): Rename to install.dwbmm.
14322 * Makefile: Integrate mm.
14323 * mm: New directory.
14325 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
14327 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
14330 * pic/troff.c (troff_output::simple_spline,
14331 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
14332 shadowing parameter.
14334 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
14336 * lib/ptable.h: Add explicit casts when converting from unsigned
14339 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
14340 * dvi/devdvi/Makefile: Install SA, SB.
14342 * refer/indxbib.c: Add declaration of mktemp.
14344 * refer/lookbib.c: Add declaration of isatty.
14346 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
14348 * pic/lex.c (interpolate_macro_with_args): While collecting
14349 arguments, keep track of whether we're in a string.
14351 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
14353 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
14354 down with \v, so as to avoid problems with top of page trap
14355 setting no space mode.
14357 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
14359 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
14361 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
14363 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
14364 Improve error message.
14366 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
14368 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
14371 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
14373 * groff.c (possible_command::execp): Always use _exit() after a
14376 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
14377 NO_SYS_WAIT_H configuration options.
14378 * groff.c: Use these options. Use POSIX-style macros to extract
14379 fields from the status returned by wait().
14381 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
14383 * tbl/table.c (table::compute_separation_factor): Allow the
14384 separation factor to drop to 0.
14386 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
14388 * refer/search.c: Include <errno.h>.
14390 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
14392 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
14394 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
14397 * pic/lex.c (input_stack::bol): Move definition out of class body.
14399 * pic/main.c: On MSDOS munge argv[0].
14401 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
14403 * lib/ptable.c (hash_string): Use unsigned long rather than
14405 (next_ptable_size): Use unsigned rather than int. Give an error
14406 message if we've hit the largest table size.
14407 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
14410 * pic/object.h (object_spec): Make flags unsigned long. Declare
14411 flags as const unisgned long rather than as enums.
14413 * pic/output.c: Deleted.
14415 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
14417 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
14418 Add additional argument.
14419 (line_entry::note_double_vrule_on_{left,right}): Set value of
14420 douvle_vrule_on_{right,left} flag according to argument.
14421 (simple_line_entry::simple_print,
14422 simple_line_entry::double_line_print): If adjacent to double vrule
14423 on a corner extend rather than shorten the rule by half the double
14426 * troff/number.c (parse_term): In checking for overflow, handle the
14427 case where the current horizontal position is negative.
14429 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
14431 * pic/object.c (draw_arrow): Check for object having zero length.
14433 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
14435 * eqn/main.c (do_file): Split off inline equation handling into...
14436 (inline_equation): New function. Search for starting delimiter
14438 (delim_search): New function. Don't recognize a delimiter that
14439 occurs in the name of an escape sequence, number register, string
14442 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
14444 * eqn/delim.c (delim_box::compute_metrics): Don't call
14445 define_extensible_string if left is 0.
14446 (delim_box::output): Don't print the left delimiter if left is 0.
14447 (delim_box::debug_print): Check for left == 0 before calling printf.
14449 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
14451 * troff/Makefile (majorminor.c): Include only digits in
14454 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
14456 * refer/dirnamemax.c: new file.
14457 * refer/genlimits.c: Deleted.
14458 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
14459 Don't check path length.
14460 * refer/Makefile: Add dir_name_max.o; delete genlimits.
14461 * Makefile: Add PATHCONF_MISSING option.
14463 * refer/indxbib.c (get_cwd): New function.
14464 (main): Use get_cwd().
14465 * lib/getcwd.c: New file.
14466 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
14467 GETCWD in SUBFLAGS.
14468 * lib/Makefile: Compile getcwd.o.
14470 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
14473 * refer/indxbib.c (main): Check success of mktemp.
14475 * lib/tmpfile.c: New file.
14476 * lib/Makefile: Add tmpfile.c.
14477 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
14478 * ps/ps.h: Delete declaration of mktemp().
14479 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
14480 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
14481 * driver/driver.h: No need now to include errno.h.
14483 * everywhere: Set errno to 0 before calling fopen().
14485 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
14486 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
14487 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
14489 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
14491 * troff/env.h (translate_space_to_dummy): Declare it.
14492 * troff/env.c (environment::space_newline, environment::space):
14493 If translate_space_to_dummy is set then make the width of spaces 0.
14494 * troff/input.c (translate): If the second character of a
14495 translation is a space, translate to unbreakable space. If the
14496 first character is a space, set or clear translate_space_to_dummy
14497 according to whether the second character is \&. Weird!
14499 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
14501 * groff.c (run_commands): Don't use non-zero exit code because a
14502 command gets SIGPIPE.
14504 * groff.c, groff.sh: Use -mXps with -TXps.
14506 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
14507 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
14508 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
14509 (ps_printer::special): New specials invis and endinvis.
14510 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
14511 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
14512 (ps_printer::end_page): Check that invis_count == 0.
14513 (ps_printer::invis_count): New member.
14514 (ps_printer::ps_printer): Initialize invis_count to 0.
14516 * troff/env.c (environment::hyphenate_line): Hyphenation
14517 indicator at beginning of word inhibits splitting after -, \(em
14520 * pic/pic.y (element): Allow another element to follow } without
14521 any intervening separator.
14523 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
14525 * pic/lex.c (get_delimited): Allow tabs before delimiter.
14527 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
14529 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
14530 declaration of wait() in header files.
14531 * Makefile: Get rid of -DHAVE_UNION_WAIT.
14533 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
14535 * lib/lib.h: Declare return type of strerror as char *.
14537 * man/Makefile: Add g flag to sed substitutions.
14538 * Makefile (shgroff, bindist): Likewise.
14540 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
14542 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
14543 * ps/devps/prologue (PBEGIN): Define showpage after pushing
14546 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
14548 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
14551 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
14553 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
14556 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
14558 * troff/input.c (define_number_reg): If currently undefined,
14559 don't define it if the argument is an invalid expression.
14561 * Makefile: Ignore return value of `if' commands without `else'
14564 * Makefile: Split up CPPDEFINES into a series of separate
14565 configuration options.
14567 * troff/input.c (init_registers): Use time_t instead of long
14568 unless LONG_FOR_TIME_T is defined. Use returned result rather
14569 than passing pointer.
14570 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
14572 * lib/Makefile (fontpath.h): Use gendef.
14574 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
14576 * troff/input.c (input_iterator::shift): Delete argument name.
14577 * troff/node.c (suppress_output_file::really_begin_page,
14578 suppress_output_file::really_transparent_char, node::ascii_print,
14579 node::tprint): Delete names of unused arguments.
14581 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
14583 * refer/label.y (string): Pass $4 to command_error.
14585 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
14587 * Version 1.03 released.
14589 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
14591 * Makefile: Pass definition of SHELL in SUBFLAGS.
14593 * gendef: New file.
14594 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
14595 ps/Makefile: Use gendef to construct header files that are
14596 constructed from the Makefile.
14598 * macros/Makefile: make all should build stripped version of tmac.e.
14600 * refer/Makefile (clean): Remove y.output.
14602 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
14604 * ps/pfbtops.c (main): Add -v option which prints out a version
14606 * ps/Makefile (pfbtops): Link with libgroff.a.
14608 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
14610 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
14611 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
14613 * refer/lkbib.c (main): Always terminate reference with blank
14615 * refer/lookbib.c (main): Likewise.
14617 * refer/linear.c (file_buffer::load): Check that the file is not a
14620 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
14621 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
14622 Delete second inclusion of <sys/param.h>.
14624 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
14626 * troff/token.h (token::special): Deleted.
14628 * tbl/main.c (process_format): Rework so that opt->tab_char is
14629 recognized only when appropriate.
14631 * ps/Makefile (clean): Remove pfbtops.
14633 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
14635 * lib/font.c (text_file::next): Don't return if we have got a
14638 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
14640 * refer/refer.c (store_reference): Get hash code from old_table[i]
14641 when rehashing the table.
14643 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
14645 * eqn/box.c (box::top_level): Save size and prev size using \R and
14646 restore it afterwards. Set the size to the size at the beginning
14648 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
14649 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
14651 * refer/Makefile (limits.h): Use ./genlimits.
14653 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
14655 * refer/index.c: Delete declarations of stat() and fstat().
14657 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
14659 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
14661 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
14663 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
14665 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
14667 * troff/input.c (token::get_char): Handle \e.
14669 * refer/linear.c: Delete declarations of fstat() and stat().
14671 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
14673 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
14674 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
14676 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
14678 * troff/input.c (do_define_macro): Improve error handling for end
14679 of file while defining macro.
14681 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
14683 * eqn/box.h: Fix declaration of set_gsize.
14684 * eqn/box.c (set_gsize): Make argument const char *.
14685 (gsize): Declare as char *.
14686 * eqn/main.c (main): Don't convert gsize to int.
14687 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
14689 * Version 1.02 released.
14691 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
14693 * macros/tmac.andoc: New file.
14694 * macros/Makefile: Install tmac.andoc.
14696 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
14697 operator new and delete on OP_DELETE_BROKEN not being defined.
14698 * Makefile: Mention OP_DELETE_BROKEN.
14700 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
14702 * Makefile (bindist): Pass SUBFLAGS.
14704 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
14706 * Makefile, groff.c: Pass definitions to groff.c via device.h.
14708 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
14711 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
14713 * ps/ps.h, ps/psrm.c: Make comment_table and
14714 header_comment_table local to resource_manager::process_file.
14716 * groff.sh: With -TXps pass -printCommand option to gxditview.
14718 * groff.c (possible_command::print): Implement using
14719 append_arg_to_string.
14721 * xditview: Merge in new implementation with own ChangeLog.
14723 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
14725 * groff.c (main): Implement PRINT_OPTION.
14726 (append_arg_to_string): New command.
14727 (device_table): Set PRINT_OPTION flag for Xps.
14729 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
14731 * troff/groff.h: Rename to troff.h.
14733 * pic/lex.c (lookup_keyword, docmp): New functions.
14734 (get_token): Use new lookup_keyword.
14735 Don't include key.h.
14736 * pic/key.[ch], pic/pic.gperf: Deleted.
14737 * pic/Makefile: Remove gperf stuff.
14739 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
14741 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
14743 * troff/Makefile, troff/node.c: Move definition of
14744 STORE_WIDTH into node.c.
14746 * etc/grog.pl, etc/grog.sh: Support -mdoc.
14748 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
14750 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
14751 dvi/devdvi/texb.map: Add lq and rq.
14752 dvi/devdvi: Regenerate fonts.
14753 * ps/devps/textmap: Add lq and rq.
14754 * ps/devps: Regenerate fonts.
14755 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
14756 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
14758 * pic/object.c (position_rectangle): When checking radius
14759 cope with possiblity that width or height is negative.
14760 (box_object::box_object): Have separate xrad and yrad with
14761 signs matching signs of dim components.
14762 (box_object::{north,south}_{east,west}): Use xrad and yrad.
14763 (box_object::print): With rounded boxes use absolute values
14764 for dim and rad arguments.
14766 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
14769 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
14771 * various files: Add explicit destructors to keep Saber CC +d
14774 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
14776 * eqn/box.c (box::top_level): Restore fonts correctly after
14777 font changes in line containing inline equation. Also
14778 restore previous font as well as current font.
14779 * eqn/pbox.h: Define necessary string and register names.
14781 * troff/input.c (token::next): Case 'R' calls do_register.
14782 (do_register): New function.
14784 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
14786 * groff.c, groff.sh: Support Xps device. Allow each device
14787 to have a pseudo_name and a real_name.
14789 * groff.c (run_commands): Don't print `Broken pipe' messages.
14791 * ps/pfbtops.c: New file.
14792 * ps/Makefile: Add pfbtops.
14794 * troff/number.c (parse_term): Improved error message.
14796 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
14798 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
14800 * Makefile: Integrate refer.
14801 * refer: New directory.
14802 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
14803 man/lkbib.man: New files.
14804 * man/Makefile: Support refer man pages.
14806 * lib/lib.h: Declare is_prime.
14807 * lib/prime.c: New file.
14809 * troff/input.c (macro_source): New function.
14810 (init_input_requests): Bind "mso" to macro_source.
14812 * troff/env.c (environment::possibly_break_line): Maintain
14813 pointer to pointer to node to be split in ndp so as to avoid
14814 using address of freed node.
14816 * troff/env.c (environment::hyphenate_line): Maintain pointer to
14817 pointer to first node to be hyphenated in startp so as to
14818 avoid using address of freed node.
14820 * troff/env.c (class trie, class hyphen_trie): Make the
14821 elements of the trie be of type char not unsigned char.
14822 Declare arguments to be const char* instead of unsigned char *.
14824 * troff/env.c (hyphenate): Initialize hbuf[0].
14826 * troff/input.c (set_string): Declare p to be char * and cast
14827 *p to unsigned char when necessary.
14829 * troff/input.c (do_define_macro): Declare s to be const
14830 char*. Cast element to unisgned char when necessary, Declare
14831 d to be an int. Handle EOF better.
14833 * troff/Makefile, troff/input.c: Different scheme for passing
14834 definitions of MACROPATH, HYPHENFILE and DEVICE.
14836 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
14838 * tty/devascii/R.proto: Delete entry for em.
14839 * tty/devlatin1/R.proto: Likewise.
14841 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
14843 * troff/input.c (translate): Stop when we get a space. Treat eof
14846 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
14848 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
14850 * tbl/main.c (process_format): A font name following a `f'
14851 modifier that starts with a digit can be only one character long.
14852 Also deal with EOF on the second character of the font name.
14854 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
14856 * troff/input.c (token::next): Turn \~ into an
14857 unbreakable_space_node.
14858 * troff/node.c (unbreakable_space_node): New class.
14859 * troff/node.h: Declare it.
14861 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
14863 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
14864 it's >= 0, before outputting it as a single byte.
14866 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
14868 * lib/font.c: Make font_char_metric::code an int.
14869 (font::get_code): Change return type to int.
14870 (font::load): Allow code to be arbitrary integer.
14871 * lib/font.h (font::get_code): Change return type to int.
14872 (font::number_to_index): Change argument type to int.
14873 * troff/input.c (token::next): In case 'N', allow any value.
14874 Store value in token::val.
14875 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
14876 (token::get_char, token::add_to_node_list, token::process): Get
14878 (charinfo::set_number): Change argument to int.
14879 (charinfo::get_number): Require that NUMBERED flag be set.
14880 (get_charinfo_by_number): Store numbered characters not between 0
14881 and 255 in a dictionary.
14882 * troff/charinfo.h (get_charinfo_by_number): Change argument type
14884 (charinfo::number): Change type to int.
14885 (charinfo::set_number): Change type of set_number to int.
14886 * troff/node.c (troff_output_file::put_char_width,
14887 troff_output_file::put_char): Test whether character is numbered
14888 using charinfo::numbered().
14889 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
14891 * lib/nametoindex.c: New implementation to cope with arbitrary
14894 * troff/input.c (token::operator==): Test val for
14895 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
14898 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
14899 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
14901 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
14903 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
14906 * all Makefiles: rm targets of cp and >.
14908 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
14911 * eqn/lex.c (def_table): Add dollar.
14913 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
14915 * troff/input.c (do_width): Push back newline before closing delim
14918 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
14920 * groff.c (possible_command::prepend_arg): New function.
14921 (main): Prepend device -m option.
14922 * groff.sh: Put device -m options before command-line options.
14924 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
14926 * macros/tmac.an (IP): Quote argument to TP.
14928 * ps/ps.c (main): New option -b, which sets...
14929 (broken_flags): New variable.
14930 (ps_printer::~ps_printer): Incorporate the setup section in the
14931 prolog if (broken_flags & NO_SETUP_SECTION).
14932 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
14933 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
14934 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
14935 ps_printer::print_needed_font_comment,
14936 ps_printer::print_supplied_font_comment,
14937 ps_printer::print_include_font_comments,
14938 ps_printer::lookup_doc_font, ps_printer::download_fonts,
14939 ps_printer::read_download_file, read_document_fonts, add_font,
14940 skip_line, parse_fonts_arg, document_font::document_font,
14941 document_font::~document_font, document_font::download,
14942 ps_output::include_file): Deleted.
14943 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
14944 rather than %!PS-Adobe-2.0. Make calls to
14945 resource_manager::need_font for each font that we used. Replace
14946 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
14947 print_supplied_font_comment, print_needed_font_comment by call to
14948 resource_manager::print_header_comments. Output %%Orientation
14949 comment. Output %%Requirements: numcopies comment if ncopies > 1.
14950 Don't output the prolog directly. Instead call
14951 resource_manager::output_prolog. Only define #copies when ncopies
14952 > 1. Delete calls to print_include_font_comments and
14953 download_fonts. Add call to resource_manager::document_setup.
14954 (ps_printer::do_file): Call resource_manager::import_file instead
14955 of including it ourselves.
14956 (ps_printer::do_import): Likewise. Also don't call
14957 merge_import_fonts. Push userdict on the dictionary stack before
14958 and pop it afterwards.
14959 Move declaration of ps_output into ps.h.
14960 * ps/psrm.c: New file implementing resource_manager class.
14961 * ps/ps.h: New file declaring ps_output and resource_manager
14963 * ps/devps/zapfdr.ps:
14964 * ps/devps/symbolsl.ps:
14965 * ps/devps/prologue: Use 3.0 conventions.
14966 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
14967 Add default definition of BROKEN_SPOOLER_FLAGS.
14968 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
14969 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
14971 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
14973 * etc/grog.pl: New file.
14974 * Makefile (GROG): New variable.
14975 Add GROG to SUBFLAGS.
14976 * etc/Makefile (GROG): New variable.
14977 (install.nobin): Install $(GROG) rather than grog.sh.
14979 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
14981 * eqn/special.c (special_box::compute_metrics): Make the input and
14982 output strings the same. Get the new height and depth from the
14983 predefined height and depth registers. Also make subscript kern
14984 and skew available.
14985 (special_box::compute_subscript_kern, special_box::compute_skew):
14988 * eqn/box.c (pointer_box::compute_skew,
14989 simple_box::compute_metrics, box::top_level)
14990 * eqn/text.c (prime_box::compute_metrics,
14991 prime_box::comput_subscript_kern)
14992 * eqn/limit.c (limit_box::compute_metrics):
14993 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
14994 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
14995 negative numbers in `nr' requests with a leading 0.
14997 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
14999 * eqn/special.c: New file.
15000 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
15001 Add new rule for simple.
15002 * eqn/lex.c (token_table): Add SPECIAL.
15003 * eqn/box.h: Declare make_special_box.
15004 * eqn/Makefile: Add special.[co].
15006 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
15008 * ps/devps/prologue: Possibly set packing to true while defining.
15009 Create grops dictionary here. Initialize local variables before
15010 defining procedures.
15011 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
15012 the dictionary stack. Set strokeadjust and overprint to false if
15013 the relevant operators are defined.
15014 (PEND): New procedure.
15015 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
15016 prologue. Do everything else in the setup section.
15017 (ps_printer::do_import): Just call PBEGIN and PEND around the
15018 picture. Also push userdict before, and pop it afterwards.
15020 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
15022 * troff/node.c (bracket_node::tprint): Brackets were being printed
15025 * macros/tmac.an (SH, SS): Set fill mode.
15027 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
15029 * troff/div.c (top_level_diversion::begin_page): Set
15030 high_water_mark to 0.
15032 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
15034 * man/mdate.sh: New file.
15035 * man/mdate.c: Deleted.
15036 * man/Makefile: Use mdate.sh instead of mdate.
15039 * eqn/lex.c (do_gsize): Supply missing argument to error message.
15041 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
15043 * man/mdate.c: New file.
15044 * man/*.man: Replace modification date by @MDATE@.
15045 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
15046 (mdate): New target.
15048 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
15049 Remove illegal input characters.
15051 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
15053 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
15055 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
15057 * troff/div.c (begin_page): Change behaviour when
15058 !first_page_begun and !break_flag.
15060 * troff/input.c (do_name_test): Return 0 if argument is empty.
15062 * troff/input.c (read_long_escape_name): Require closing ] to be
15063 at same input level as opening [.
15065 * troff/input.c (read_increment_and_escape_name): New function.
15066 (get_copy, process_input_stack): Use this for \n.
15068 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
15070 * troff/div.c (top_level_diversion::begin_page): Ignore the
15071 current value of page_number if !first_page_begun.
15073 * groff.c (main): Fix declaration of buf.
15075 * troff/input.c (do_name_test): New function.
15076 (token::next): Implement \A.
15077 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
15078 (token::description, token::add_to_node_list, token::process):
15079 Handle TOKEN_ESCAPE.
15080 * troff/token.h: New token TOKEN_ESCAPE.
15082 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
15084 * pic/main.c (do_picture): Allow space before and after filename
15085 following `<'. Check that the filename is not empty.
15087 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
15089 * Version 1.01 released.
15091 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
15093 * dvi/tmac.dvi: ftr HR to H.
15095 * macros/tmac.e: Round up computation of $r.
15097 * xditview/tmac.X: Don't give up completely in compatibility mode.
15098 Use \n(.s instead of \n[.s].
15100 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
15101 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
15102 Add u to factors inside \s[...]. Rename frac to dvi-frac.
15103 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
15104 short names in the char definitions.
15106 * ps/tmac.ps: Don't give up completely in compatibility mode.
15107 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
15108 quote in front of \n(.s. Add u to factors inside \s[...].
15110 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
15112 * tty/tmac.tty: Call the nroff request.
15114 * macros/tmac.e ((x, )x): Better definitions that work properly
15116 (@0, @1): Helper macros for (x.
15118 * macros/tmac.e ($s, hl): Use \l rather than \D.
15120 * tty/tmac.tty: Make it work better in compatibility mode.
15121 (pchar): Rename to tty-char.
15123 * macros/tmac.e (@E): New macro.
15124 (r, i, b, rb, bi): Use @E.
15126 * macros/tmac.e (@F): Don't use (;...) syntax.
15128 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
15129 it was modified for groff.
15131 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
15133 * macros/tmac.e (<., .>): Removed.
15134 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
15136 * macros/tmac.e: Remove check that groff is being used.
15138 * macros/tmac.e (@C): Change families only if using groff; turn
15139 compatibility mode off while changing familes. Save compatibility
15140 mode before changing families and restore it afterwards.
15142 * macros/tmac.e (@h): Remove test for offset + line length.
15144 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
15145 (lo, th, ac): Define to call @S instead of using als.
15147 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
15148 the ratio of the vertical spacing to the point size in units
15149 expressed as a percentage. Use these instead of $10r and $10R,
15150 Delete $10r and $10R.
15152 * lib/font.c (font::load): In default computation of space_width,
15153 divide by sizescale. Use scale_round.
15155 * macros/tmac.an (TP): Don't call `nf'.
15156 (an-do-tag): Don't call `fi'.
15158 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
15160 * troff/input.c (process_input_stack): Handle the case where
15161 spaces at the beginning of an input line are followed by a
15164 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
15166 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
15167 * groff.sh: Use pic -x with the dvi device.
15169 * dvi/devdvi/FontMakefile (H): Don't use -s.
15171 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
15172 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
15173 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
15176 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
15178 * ps/psfig.diff: New file.
15179 * ps/tmac.psfig: New file.
15181 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
15183 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
15184 (]-): Don't call ref*do-tl.
15186 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
15188 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
15189 (fn@do-FS): Rename to fn*do-FS.
15191 * troff/input.c (transparent_translate): New function.
15192 (process_input_stack): Apply transparent_translate before calling
15193 diversion::transparent_output(unsigned char).
15195 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
15197 * troff/input.c (do_define_macro): Define the macro before calling
15200 * xditview/Makefile: Add DEVICES variable. Change install target
15203 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
15205 * groff.c (run_commands): Handle the possibility that there are
15206 child processes other than those forked by us.
15208 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
15210 * lib/string.c (string::append): New function.
15211 * lib/stringclass.h: Declare it.
15213 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
15215 * eqn/main.c (main): New option -N which sets
15216 no_newline_in_delim_flag.
15217 (do_file): If no_newline_in_delim_flag is set don't allow newlines
15219 * groff.c (main): Pass -N on to eqn.
15220 (help, synopsis): Mention -N.
15221 * groff.sh: Implement -N.
15223 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
15225 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
15226 (]-): Call ref*do-tl if ref*need-tl is non-zero.
15227 (XP): Allow as initializer.
15229 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
15231 * troff/env.c (environment::wrap_up_field): If field_spaces are
15232 non-zero and we have a current_tab, subtract padding from
15233 tab_distance. If this makes tab_distance <= 0, use the next tab
15234 stop instead. If there isn't any next tab or it's a left tab,
15235 wrap up the current tab.
15236 (environment::start_field): Initialize tab_precedes_field.
15237 (environment::wrap_up_tab): If there's a current field, update
15238 pre_field_width, field_distance and tab_precedes_field.
15239 * troff/env.h (environment::tab_precedes_field): New member.
15241 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
15243 * ps/ps.c (ps_printer::do_file): New function.
15244 (ps_printer::special): Bind to `file' special.
15245 (ps_printer::do_exec): Set ndefined_styles to 0.
15247 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
15249 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
15250 Avoid stripping first character from the start of unrecognized
15251 escapes. Use lex_error instead of error to report errors.
15252 * eqn/lex.c (get_token): Rework handling of escapes.
15253 (lex_error): Move declaration into...
15256 * xditview/xditview.c (main): Make -page option work.
15258 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
15260 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
15262 * macros/tmac.s (B2): Correct size of box.
15264 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
15266 * macros/tmac.s (B2): Postpone drawing the box until in the
15267 top-level diversion.
15269 * tty/tmac.tty: Add font translations for C, CR, CW.
15271 * groff.c (synopsis, help): Document -i.
15272 * groff.sh: Implement -i.
15274 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
15275 Simplify the construction of SN.
15277 * troff/number.c (parse_term): Give `|' a higher precedence.
15278 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
15281 * macros/tmac.s (B2): Use par@finish instead of par@reset.
15283 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
15285 * lib/string.c (string::move): New function.
15286 * lib/stringclass.h: Declare it.
15288 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
15290 * troff/env.c (distribute_space): Add optional argument
15292 (environment::wrap_up_field): Call distribute_space with
15293 `force_forward' argument of 1.
15295 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
15297 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
15298 Inline it. Move reallocation into...
15299 (string::grow1): New function.
15300 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
15301 dependencies to include library header files.
15302 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
15304 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
15306 * macros/tmac.s (@NH): Use the same number registers than -ms does
15307 for the heading level counters. Use the same string that -ms does
15308 for the number for this heading.
15310 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
15312 * lib/new.c (operator new): Cast result of malloc to char *.
15314 * troff/input.c (spring_trap, lookup_request): Add assert that nm
15317 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
15319 * groff.c (main): Support -i.
15321 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
15323 * pic/pic.h: Include <osfcn.h>.
15325 * ps/ps.c: Add declaration of mktemp.
15327 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
15328 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
15329 argument as union wait *.
15330 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
15331 argument to union wait *.
15333 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
15335 * tty/tmac.tty: Add definition of \(co.
15337 * pic/object.c (make_arc): Only increase radius when radius
15338 strictly less than d.
15339 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
15342 * troff/env.c (environment::environment(symbol),
15343 environment::environment(const environment *)): Initialize
15346 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
15348 * tbl/main.c (main): Add exit(0).
15350 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
15352 * pic/main.c (main):
15353 * eqn/main.c (main):
15354 * tbl/main.c (main):
15355 * etc/soelim.c (main):
15356 * driver/printer.c (printer::~printer):
15357 * troff/node.c (real_output_file::~real_output_file,
15358 real_output_file::flush): Check for errors on stdout.
15360 * most files: Add 1991 to copyright notice.
15362 * macros/tmac.s: Don't test \n(.x and \n(.y.
15364 * troff/input.c (token::next): Rename `escape_char' label to
15365 `handle_escape_char' and `normal_char' label to
15366 `handle_normal_char'.
15368 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
15370 * groff.c (main, synopsis, help): Support -a option.
15371 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
15372 to trflags while parsing options.
15374 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
15376 * troff/number.c (parse_term): With `m', `M' and `n' scale
15377 indicators, convert scale factor to hunits before scaling.
15379 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
15381 * lib/font.c (scale_round): Better test for overflow when n is
15384 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
15386 * tbl/main.c (process_format): Add second argument of type
15387 options*. Change callers. Allow opt->tab_char as well as '\t'
15388 between format items.
15390 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
15392 * macros/tmac.an (PD): With no arguments, make sure register PD is
15394 (TH): Call PD with no argument, instead of setting register PD
15397 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
15399 * Version 1.00 released.
15401 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
15403 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
15405 * dvi/devdvi/DESC: Mount CW instead of CR.
15407 * dvi/tmac.dvi: Add definition of \(tm.
15409 * dvi/devdvi/texsy.map: Add lh, and rh.
15410 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
15411 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
15413 * dvi/devdvi/FontMakefile: Generate H from cmss10.
15414 * dvi/devdvi/Makefile: Install H.
15415 * dvi/devdvi/H: New file.
15417 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
15419 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
15422 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
15424 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
15426 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
15428 * macros/tmac.s (@EN): Handle the case where the equation is empty
15429 but the label is not.
15431 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
15433 * troff/groff.h: New warning category WARN_SPACE.
15434 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
15435 WARN_SPACE to warning_table.
15436 (interpolate_macro): Give a warning of type WARN_SPACE if the name
15437 is longer than two characters and is not defined, but the first
15438 two characters do make a defined name.
15440 * PROBLEMS: New file.
15442 * CHANGES: New file.
15443 * README-0.6, README-1.00: Deleted.
15445 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
15446 * xditview/devX75/Makefile: Make devX75-12.
15447 * xditview/devX100/Makefile: Make devX100-12.
15449 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
15450 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
15452 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
15454 * README-0.7: Rename to README-1.00.
15456 * macros/tmac.pic: New file.
15457 * macros/Makefile (install.nobin): Install tmac.pic.
15459 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
15461 * troff/env.c (hyphen_word): Correct the test for whether the
15462 token is a hyphen. Reset npos to 0.
15464 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
15466 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
15468 * macros/tmac.s (ds*common-end): Call par*reset.
15470 (par@reset-indent): Deleted.
15472 * macros/tmac.s (@IP): Divert the label.
15474 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
15476 * xditview/draw.c (setGC): Use a line width of .1m rather than
15477 .04m by default; round rather than truncate value.
15479 * tbl/table.c (class empty_entry): New class.
15480 (empty_entry::empty_entry, empty_entry::line_type): New functions.
15481 (table::add_entry): Represent empty entries by objects of type
15483 (table_entry::line_type): Return -1.
15484 (table::determine_row_type): Ignore entries with line_type 0.
15485 Treat type -1 as non-lines.
15487 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
15489 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
15490 macros/tmac.s: Rename \(-d to \(Sd.
15492 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
15494 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
15495 * xditview/libXdvi/DviChar.c: Likewise.
15496 * dvi/devdvi/texsy.map: Add `<<', `>>'.
15498 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
15500 * troff/div.c (top_level_diversion::begin_page): Call
15501 init_output() if the_output is 0.
15503 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
15505 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
15507 (get_copy): Turn \E into ESCAPE_E.
15508 (token::process, asciify): Handle ESCAPE_E.
15510 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
15512 (DS): Implement `.DS R'.
15514 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
15516 * macros/tmac.s (FS): New macro.
15518 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
15520 * macros/tmac.s (cov*tl-init): Remove after first execution
15521 instead of aliasing to @nop. Call top of page macro explicitly
15522 instead of setting trap; call @init first. Set pg@top as top of
15524 (cov*auto-init): Deleted. Set cov*tl-init instead of
15525 cov*auto-init as top of page trap.
15526 (TL, LP): Do a break instead of calling cov*tl-init.
15527 (cov*print): With RP format but no TL, alias FS and FE to @FS and
15528 @FE; in this case also give a warning and always start another
15529 page. No need to set pg@top here.
15530 (cov*tl-init): Rename to cov*first-page-init.
15532 * macros/tmac.s (RP): Do `.pn 0'.
15533 (cov*tl-init): With RP format don't do `.pn 0'.
15535 * macros/tmac.s (pg@cs-top): Set no space mode.
15537 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
15538 (cov*ab-init): Alias TL, AU and AI to these.
15540 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
15542 * macros/tmac.s (@EQ): Move the space before the equation into @EN
15543 (@EN): Do nothing unless \n[dl] is > 0.
15545 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
15547 * pic/object.c (ellipse_object::radius): New function.
15549 * VERSION: Change version to 0.7.
15551 * tbl/table.c (block_entry::do_divert): Declare return type as
15553 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
15555 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
15557 * troff/column.c: New file.
15558 * troff/Makefile: Corresponding changes.
15560 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
15563 * troff/div.c (top_level_diversion::space): If the space causes
15564 the first-page transition and springs a trap, truncate the space
15567 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
15569 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
15572 * pic/troff.c (troff_output::line_thickness,
15573 troff_output::set_fill): Do a horizontal motion to compensate for
15574 the width of the \D escape sequence.
15576 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
15578 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
15581 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
15584 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
15585 Supply empty definition.
15586 (text_entry::simple_print, simple_text_entry::simple_print):
15587 Delete declarations.
15588 (table::add_entry): Represent empty entries by objects of type
15591 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
15593 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
15595 * tbl/table.c (left_text_entry::add_tab): New function.
15597 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
15598 initialize like LP.
15600 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
15602 * troff/env.c (environment::start_field): Give an error message if
15603 there is no next tab.
15605 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
15607 * troff/env.c (hyphenate): Skip initial elements with zero
15610 * macros/tmac.s (par@init): Keep VS in points rather than units.
15612 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
15614 * pic/main.c (main): Implement `-c' option.
15615 * pic/output.h: Declare make_tpic_output().
15616 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
15618 (tpic_output): New class.
15619 (tpic_output::tpic_output, tpic_output::set_pen_size,
15620 tpic_output::command, make_tpic_output): New functions.
15622 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
15624 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
15625 if they're not already defined.
15626 * tbl/table.c (init_output): Don't test \n(.g.
15628 * troff/input.c (do_if_request): Delete `g' condition. Recognize
15629 `d', `r' and `c' conditions even in compatibility mode.
15631 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
15633 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
15636 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
15638 * troff/env.h (environment::prev_line_interrupted): New member.
15639 (environment::get_prev_line_interrupted): New function.
15640 * troff/env.c (environment::newline): Set prev_line_interrupted.
15641 (environment::environment(const environment *),
15642 environment::environment(symbol)): Initialize
15643 prev_line_interrupted.
15644 * troff/input.c (process_input_stack): Don't give special
15645 treatment to space and newline at the beginning of the line if the
15646 previous line was interrupted.
15648 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
15650 * eqn/eqn.y: Disallow PRIME by itself.
15651 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
15653 (def_table): Remove definition of '. Define prime to be `.
15655 * eqn/eqn.y: Split off part of rule `script' into a new rule
15658 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
15660 * macros/tmac.s ({, }): New string aliases.
15662 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
15664 * README-0.7: New file.
15666 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
15668 * macros/tmac.s: New file.
15669 * man/groff_ms.man: New file.
15670 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
15671 * Makefile.bd: Similarily.
15672 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
15673 definition of TMAC_S.
15674 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
15675 * macros/TODO: New file.
15677 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
15679 * troff/env.c (right_justify): New function.
15680 (init_env_requests): Bind this to request "rj".
15681 (center_lines): Set right_justify_lines to 0. If we get a bad
15682 integer, center 1 line.
15683 (environment::environment(symbol), environment::environment(const
15684 environment *)): Initialize right_justify_lines.
15685 (environment::get_right_justify_lines): New function.
15686 (init_env_requests): Bind this to number_register ".rj".
15688 * troff/env.c (environment::choose_breakpoint): Implement
15689 hyphenation_margin and hyphenation_space.
15690 (environment::get_hyphenation_space,
15691 environment::get_hyphenation_margin): New functions.
15692 (init_env_requests): Bind these to .hys and .hym.
15693 (hyphenation_space_request, hyphenation_margin_request): New
15695 (init_env_requests): Bind these to hys and hym.
15696 (environment::environment(symbol), environment::environment(const
15697 environment *)): Initialize hyphenation_margin and
15699 * troff/env.h: Corresponding changes to class environment.
15701 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
15703 * troff/div.c (blank_line): Always do a break.
15705 * eqn/box.c (do_text): Turn off escapes while appending text to
15708 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
15710 * troff/input.c (while_break_request, while_continue_request): New
15712 (init_input_requests): Bind these to "break" and "continue".
15713 (while_depth, while_break_flag): New variables.
15714 (while_request): Update while_depth. Break out of loop if
15715 while_break_flag is set.
15717 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
15719 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
15722 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
15724 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
15726 * stringify: New file.
15727 * Makefile (groff.o): Use stringify.
15729 * xditview/tmac.X: Remove definition of \(rn.
15730 * xditview/libXdvi/DviChar.c: Remove radicalex from
15733 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
15735 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
15736 (alphabetic_block_entry::alphabetic_block_entry,
15737 alphabetic_block_entry::divert, alphabetic_block_entry::print):
15739 (block_entry::divert): Split off body into ...
15740 (block_entry::do_divert): If the block is alphabetic, subtract 2n
15741 from the line length; also update the span width to dl+2n, and the
15742 alphabetic span width to dl.
15744 * driver/input.c (do_file): While reading argument to D command,
15745 when expanding buffer, multiply szp by sizeof(int) rather than 2
15746 in the argument to memcpy.
15748 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
15749 width of alphabetic columns.
15751 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
15753 * troff/node.c (lookup_family): Supply second argument to lookup.
15755 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
15756 search, return immediately if v is 0.
15758 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
15759 (troff_output::start_picture): Set this reg.
15760 (troff_output::end_picture): Remove this reg
15761 * eqn/box.c (box::extra_space): Don't produce `\x's if
15762 EQN_NO_EXTRA_SPACE_REG is defined.
15764 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
15765 * eqn/text.c (split_text): Map ' to \(fm when it's the first
15768 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
15770 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
15773 * troff/div.c (top_level_diversion::top_level_diversion):
15774 Initialize page_number to 0.
15776 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
15778 * groff/troff (environment::environment(const environment *)):
15779 Initialize name to e->name, rather than "anonymous".
15781 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
15783 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
15784 requested_page. Split middle part into ...
15785 (FindPage): New function.
15786 (SetValues): If we don't yet know the last page, and the requested
15787 page is greater than the current page, call FindPage.
15788 Update the font_map_string before doing this.
15790 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
15791 Translate \(lh and \(rh into left and right double arrows.
15793 * troff/node.c (class hyphen_inhibitor_node): New class.
15794 (hyphen_inhibitor_node::hyphen_inhibitor_node,
15795 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
15796 hyphen_inhibitor_node::type,
15797 hyphen_inhibitor_node::get_hyphenation_type): New functions.
15798 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
15799 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
15802 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
15804 * troff/node.h (dummy_node::get_hyphenation_type,
15805 transparent_dummy_node::get_hyphenation_type): Declare them.
15806 * troff/node.c: (dummy_node::get_hyphenation_type,
15807 transparent_dummy_node::get_hyphenation_type): New functions.
15809 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
15811 * xditview/libXdvi/draw.c: If M_PI not defined after including
15812 math.h, then define it.
15814 * xditview/Makefile: Add definition of AR. Pass it to the submake
15816 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
15818 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
15820 * troff/dictionary.h (object_dictionary::alias): Declare return
15822 * troff/dictionary.c (object_dictionary::alias): Return non-zero
15823 if the old name was defined.
15824 * troff/input.c (alias_macro): Give a warning if the old name was
15826 * troff/reg.c (alias_reg): Likewise.
15828 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
15830 * troff/input.c (token::next): Delete implementation of \R.
15832 * macros/Makefile: Strip comments from tmac.e while installing it.
15834 * troff/input.c: New variable `nroff_mode'.
15835 (troff_request, nroff_request): New functions.
15836 (init_input_requests): Bind `troff' and `nroff' to troff_request
15838 (do_if_request): Compute results of t and n conditions from
15841 * text/text.c (split_text): Fix typo in >=.
15843 * eqn/lex.c: Add definition of `==' to def_table.
15845 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
15847 * pic/tex.c (tex_output::start_picture): Change the definitions of
15848 \graph and \graphtemp so that they work properly with Plain TeX.
15850 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
15851 argument to `ar' is not less than the first.
15853 * pic/pic.y: Allow a comma between elements of the variable list
15854 in the argument to `reset'.
15856 * pic/object.c (arc_object::arc_object): Fix computation of
15859 * eqn/main.c (main): Add exit(0).
15861 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
15863 * troff/div.c (begin_page): Test no_space_mode after doing the
15864 break, but still push the page ejector cookie before doing the
15865 break. Also set the next page number after doing the break.
15867 * xditview/xditview.c (NewFile): Don't set the title and icon name
15868 if this is the first file and its name is `-'.
15869 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
15870 the X75 and X100 devices.
15871 (main): If a device has the XT_OPTION flag set and there's exactly
15872 one file argument, pass the driver -xrm and -title options to set
15873 the icon name and window title to the name of the file.
15875 * troff/env.c (environment_switch): If there was an argument but
15876 it wasn't a valid number or name, then pop an environment but
15877 don't give an error message on underflow.
15879 * troff/number.c (start_number): Correct spelling in error message.
15881 * troff/input.c (token::delimiter): Don't print an error message
15884 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
15885 ParseDrawFunction if dw->display_enable is true.
15887 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
15889 * pic/pic.y: Parse text positioning like normal attributes, so as
15890 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
15891 positioning attribute.
15893 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
15895 * tbl/main.c (process_data): When in state START while reading a
15896 text block, don't change to state MIDDLE if c is a newline.
15898 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
15900 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
15901 so as to avoid shadowing parameter.
15903 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
15905 * tbl/table.c (trim_space): Deleted.
15906 (table::add_entry): Don't call trim_space.
15908 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
15910 * VERSION: Change version to 0.6.
15912 * troff/number.c (parse_expr): Make == work.
15914 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
15916 * man/grog.man: New file.
15917 * man/Makefile: Add grog.n to MAN1PAGES.
15918 * etc/grog.sh: New file.
15919 * etc/Makefile: Install grog.sh as grog.
15921 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
15923 * troff/input.c (token::next): Implement \E.
15925 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
15927 * xditview/tmac.X: Change font translations to match tmac.ps.
15929 * troff/input.c (non_empty_name_warning): Don't give a warning if
15930 `\{' terminates the name.
15932 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
15934 * ps/devps/symbol.diff: New file.
15935 * ps/devps/FontMakefile: Mention symbol.diff.
15937 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
15939 * troff/node.c (font_position): Use get_long_name to read the
15942 * troff/env.c (environment_switch): If we get a number that's < 0
15943 or >= NENVIRONMENTS, treat it like a name.
15944 Change NENVIRONMENTS to 10.
15946 * troff/groff.h: Remove definition of FONTS_MAX.
15947 * troff/node.h (class font_family): Make map a pointer instead of
15948 an array. Add a map_size member. Make it a class. Make nm const
15949 and public. Make invalidate_fontno a friend.
15950 * troff/node.c: Define font_table_size. Make font_info a pointer
15951 rather than an array.
15952 (class troff_output_file): Allocate font_position dynamically. Add
15953 nfont_positions member.
15954 (troff_output_file::set_font): Grow font_position if necessary.
15955 (troff_output_file::~troff_output_file): Delete font_position.
15956 (troff_output_file::troff_output_file): Allocate font_position.
15957 (grow_font_table): New function.
15958 (troff_output_file::really_begin_page,
15959 troff_output_file:really_copy_page): Use nfont_positions rather
15961 (mount_font_no_translate, mount_style): Call grow_font_table if
15963 (font_family::font_family): Allocate map.
15964 (font_family::make_definite): Grow map if necessary. Use
15965 font_table_size instead of FONTS_MAX.
15966 (font_family::~font_family): New function.
15967 (invalidate_fontno): Use font_family::map_size.
15968 (get_fontno, env_space_width, env_half_narrow_space_width,
15969 env_narrow_space_width, symbol_fotno, is_good_fontno,
15970 get_bold_fontno, make_glyph_node): Use font_table_size rather than
15972 (next_available_font_position): Never return 0.
15974 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
15976 * ps/tmac.ps: Add font translations for compatibility with dpost.
15978 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
15980 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
15981 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
15982 Move definitions baseline_sep, shift_down, column_sep,
15983 matrix_side_sep into...
15984 * eqn/box.c: Add them to param_table.
15985 * eqn/pbox.h: Add declarations to pbox.h.
15987 * troff/input.c (set_string): Cast value to unsigned char *.
15989 * troff/token.h (process_input_stack): Declare it static before
15990 declaring it a friend.
15992 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
15994 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
15996 * dvi/devdvi/EX: Regenerate.
15998 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
16001 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
16003 * eqn/lex.c: In defaults_table, make definition of `dot' call
16004 `dot_def'. Don't explicitly make it roman. Similarily for other
16007 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
16009 (for_input::get, for_input::peek): Use this.
16010 (do_for): Add by_is_multiplicative argument.
16011 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
16012 Change semantic value of optional_by to be a double plus a flag
16013 saying whethet the by clause is multiplicative.
16015 * eqn/lex.c (get_delimited_text): Remember location of start of
16016 definition. Improve error handling when EOF is encountered.
16018 * lib/font.h: Rename handle_x_command to
16019 handle_unknown_font_command.
16020 * lib/font.c (font::load): Call handle_unknown_font_command for
16021 any unknown command in the font description file. Don't call
16022 handle_x_command. Include the name of the command in the argv.
16023 Improve message for unknown command after kernpairs or charset
16025 * ps/ps.c (ps_font::handle_x_command): Rename to
16026 handle_unknown_font_command. Remove message about `x download'
16027 command. Give error message for wrong number of arguments.
16028 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
16029 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
16030 handle_unknown_font_command. Give an error message for wrong
16031 number of arguments. Rename design_size to designsize.
16032 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
16033 checksum', `designsize' instead of `design_size'.
16035 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
16037 * eqn/*.[chy]: Change underaccent to uaccent.
16039 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
16040 give it the same precedence as ACCENT.
16041 * eqn/other.c (make_underaccent_box): New function.
16042 * eqn/box.h: Declare it.
16043 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
16046 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
16048 * pic/pic.y (reset_all): New function. Called in rule for RESET.
16049 (parse_init): Call reset_all.
16050 (define_variable): When defining scale reset only those
16051 pre-defined variables that are scaled.
16052 (defaults_table): Add `scale' as non-scaled value.
16054 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
16055 together with the text; allow any number of positioning words;
16056 allow center as a positioning word.
16058 * pic/object.c (output::compute_scale): Get picture maximum height
16059 and width from variables called maxpswid and maxpsht.
16060 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
16062 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
16064 * pic/object.c (object_spec::make_text): Multiply textht by number
16067 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
16069 (do_sprintf): New function.
16070 (pic.gperf): Add sprintf token.
16071 (text, sprintf): New rules.
16073 * pic/pic.y: `rand()' with no arguments returns a random number
16074 in the range [0,1).
16076 * pic/pic.y: Allow a bare expression to be an attribute: change
16077 precedences to support this. Change optional_ordinal rule to
16078 optional_ordinal_last to avoid reduce/reduce conflict.
16079 * pic/object.c (object_spec::object_spec): Initialize direction.
16081 * pic/pic.y: Implement ^ operator meaning exponentiation.
16083 * troff/node.h: Add default argument to mount_font.
16084 * troff/node.c (font_position): Read an optional third argument
16085 giving the external_name.
16086 (mount_font): Add optional argument giving the external_name.
16087 (mount_font_not_translate): Have additional argument giving
16088 external name. Use this name to load the font. Pass both names
16089 to font_info::font_info.
16090 (font_info::font_info): Have additional argument giving
16092 (class tfont): New member external_name.
16093 (font_info::get_tfont): Use external name to construct tfont_spec.
16095 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
16097 * eqn/lex.c (init_table): Add argument giving device. Define
16098 name of device to be "1".
16099 (do_ifdef): Counts as true if the argument has been defined with
16101 * eqn/main.c (main): Call init_table with device argument. Make
16102 device local to main.
16103 * eqn/eqn.h: Change declaration of init_table. Remove declaration
16106 * pic/lex.c (get_delimited): Allow text to be delimited by
16107 matching {}s. Don't recognize ending delimiter within a string.
16109 * troff/input.c (get_delim_name): New function.
16110 (token::next): Implement \C.
16112 * lib/font.c (font::load): Grok ---. Add an alias for each
16113 character based on its code.
16114 (font::get_code_width): Deleted.
16115 * lib/font.h (class font): Declare font::number_to_index().
16116 Remove declaration of font::get_code_width.
16117 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
16118 to indices of named characters.
16119 (font::number_to_index): New function.
16120 * troff/input.c (font::number_to_index): New function.
16121 (get_charinfo_by_number, charinfo::get_number,
16122 charinfo::set_number): New functions.
16123 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
16124 (token::process, token::description, token::get_char,
16125 token::add_to_node_list, token::operator==): Handle
16126 TOKEN_NUMBERED_CHAR.
16127 * troff/charinfo.h: Declare get_charinfo_by_number,
16128 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
16130 (charinfo::numbered): New function.
16131 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
16132 * troff/env.h (class environment): Remove declaration of ...
16133 * troff/env.c (environment::make_numbered_char_node): Deleted.
16134 * troff/node.c (make_numbered_node): Deleted.
16135 (class numbered_glyph_node): Remove.
16136 (troff_output_file::put_char_width, troff_output_file::put_char):
16137 Handle numbered chars.
16138 (troff_output_file::numbered_char): Removed.
16139 (tfont::get_code_width): Removed.
16140 (make_glyph_node): Don't search special fonts for numbered
16142 * troff/node.h: Remove declaration of make_numbered_node.
16143 * driver/input.c (do_file): Handle N command.
16144 * driver/printer.h: Add declaration of ...
16145 * driver/printer.c (printer::set_numbered_char): New function.
16146 * dvi/tfmtodit.c (main): Generate unnamed entries.
16147 * ps/devps/afmtodit: Likewise.
16148 * xditview/xtotroff.c (MapFont): Likewise.
16149 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
16151 * tbl/main.c (process_format): If multiple widths are specified
16152 for a column but all the widths are the same, don't give an error
16155 * tbl/table.c (table::do_row): If the current row is all lines and
16156 the stuff doesn't contains a line, mark the top of the row after
16157 printing stuff before the row. If the current row is not all
16158 lines and the stuff doesn't contain a line, don't unnecessarily
16159 mark the top of the row before printing the stuff.
16161 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
16163 * troff/groff.h: Remove MAX_PATH.
16164 * troff/input.c (open_file): Dynamically allocate space for the
16166 (open_mac_file, process_macro_file): Corresponding changes.
16168 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
16170 * troff/node.h (class output_file): Make copy_file pure. Add
16171 vspace method ifdef COLUMN. Add is_printing method.
16172 * troff/node.c: Add class printing_reg. Add class
16173 real_output_file. Derive other output_file classes from
16174 real_output_file; in these classes rename begin_page to
16175 really_begin_page, print_line to really_print_line, copy_file to
16176 really_copy_file, transparent_char to really_transparent_char.
16177 Move output_file::flush to real_output_file. Add printing member
16178 to class output_file.
16179 * troff/div.h: Remove printing member from top_level_diversion.
16180 Add vspace member function to class diversion ifdef COLUMN. Add
16181 some declarations ifdef COLUMN.
16182 * troff/div.c (top_level_diversion::copy_file,
16183 top_level_diversion::transparent_output,
16184 top_level_diversion::output): Don't test printing member before
16186 * troff/input.c: Handle initial variable_space_request ifdef
16188 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
16189 but comment it out.
16191 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
16193 * troff/div.c (diversion::need): Make any space forced. If we
16194 sprung a trap, set truncated_space to minus the distance to the
16195 trap and set needed_space to the amount that was needed.
16196 (top_level_diversion::space): A forced space turns no_space_mode
16198 (class constant_vunits_reg): New class.
16199 (init_div_requests): Implement number registers .trunc and .ne
16200 using constant_vunits_reg.
16201 (class truncated_space_reg): Deleted.
16203 * troff/div.h: Don't have a no_space_mode member in diversion.
16204 Instead have it in top_level_diversion.
16205 * troff/div.c (diversion::diversion): Don't initialize
16207 (top_level_diversion::top_level_diversion): Initialize
16209 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
16210 (macro_diversion::output): Don't clear no_space_mode.
16212 * troff/input.c (diverted_space_node::reread): Don't call
16213 environment::do_break. In fill mode, act like a blank line.
16214 (diverted_copy_file_node::reread): Don't call
16215 environment::do_break.
16217 * troff/div.c (blank_line): New function.
16218 * troff/div.h: Declare it.
16219 * troff/input.c (process_input_stack): Call it.
16221 * troff/div.c (truncated_space_reg::get_string): New function.
16222 (init_div_requests): Bind to .trunc.
16223 (space_request, top_level_diversion::space,
16224 top_level_diversion::output, macro_diversion::space,
16225 macro_diversion::output): Update truncated_space.
16226 (macro_diversion::output): Redo calculations when trap sprung.
16227 (macro_diversion::output, macro_diversion::space): No need for
16230 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
16231 after truncating post line spacing.
16233 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
16235 * ps/devps/prologue (MF, SF): Make them work even if setfont is
16236 defined as a procedure rather than as an operator.
16238 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
16240 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
16242 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
16244 * troff/div.c (top_level_diversion::output): Merge
16245 output_file::print_line and output_file::end_of_line member
16247 * troff/div.h (class output_file):
16248 * troff/node.c (troff_output_file::print_line,
16249 troff_output_file::end_of_line, output_file::end_of_line,
16250 ascii_output_file::print_line, suppress_output_file::print_line):
16251 Corresponding changes.
16253 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
16255 * troff/input.c (token::next): Don't give a warning for `\.'.
16257 * troff/env.c (environment::get_center_lines): New function.
16258 (init_env_requests): Bind number register .ce to it.
16259 * troff/env.h: Declare it.
16260 * tbl/table.c (table::init_output): Define reset macro to restore
16261 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
16263 (table::print): If center option not given, then imply center
16264 option if SAVED_CENTER_REG > 0.
16266 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
16268 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
16269 Troff.ps from DOWNLOAD.
16271 * troff/Makefile: Change comment in DEFINES to avoid confusing
16274 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
16275 code. Don't try to catch errors with stopped.
16276 (check_line_lengths): New function.
16277 * ps/devps/prologue (EXEC): Deleted.
16278 (EBEGIN, EEND): New procedures.
16280 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
16282 * troff/input.c: Include request.h before node.h.
16283 * troff/node.c: Likewise.
16284 * troff/env.c: Likewise.
16285 * troff/div.c: Likewise.
16286 * troff/node.h (class special_node): Store argument as a macro
16287 rather than a char *.
16288 * troff/node.c (special_node::special_node, special_node::copy):
16290 (special_node::~special_node): Deleted.
16291 (special_node::tprint): Deleted.
16292 (special_node::tprint_start, special_node::tprint_end,
16293 special_node::tprint_char): New functions.
16294 (troff_output_file::special): Deleted.
16295 (troff_output_file::start_special, troff_output_file::end_special,
16296 troff_output_file::special_char): New functions.
16297 * troff/input.c (special_node::tprint): New function.
16298 (do_special): Use macro not char *.
16299 (do_transparent_macro): Deleted.
16300 (token::next): Don't call do_transparent_macro.
16302 * troff/input.c (token::next): Add 'Y' case.
16303 (do_transparent_macro): New function.
16304 * troff/node.c (troff_output_file::special): Handle newlines with
16305 argument using new continuation convention.
16306 * driver/input.c (get_string): Cope with continuation convention.
16307 (do_file): Don't call skip_line after calling get_string(1).
16308 * ps/ps.c (ps_printer::special, ps_printer::do_import,
16309 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
16311 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
16314 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
16316 * troff/input.c (asciify): By default, illegal input characters
16317 should return empty string.
16319 * troff/input.c (copy_file): Handle first page transition like title.
16320 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
16322 * troff/input.c (token::next): Improve error message for EOF after
16324 (input_char_description): New function.
16325 (get_char_for_escape_name): Use input_char_description.
16326 (token::next): Warn about unrecognized escape sequences.
16327 (warning_table): Add WARN_ESCAPE.
16328 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
16331 * troff/token.h: Remove declaration of process_input_stack.
16333 * troff/input.c: Remove declaration of init_hyphen_requests.
16334 * troff/request.h: Correct spelling in declaration of same.
16336 * troff/input.c (token::next): Check whether escape_char is 0.
16338 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
16340 * groff.c (main, usage, help): Implement -P and -L options.
16341 * groff.sh: Likewise.
16343 * troff/input.c (token::next): Use some gotos to avoid code
16346 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
16347 Avoid calling symbol::symbol if name empty.
16349 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
16351 * troff/input.c (init_input_requests): Make \n(.x return the major
16352 version number and \n(.y return the minor version number.
16353 * troff/Makefile: Construct file majorminor.c defining
16354 major_version and minor_version automatically from ../VERSION.
16356 * troff/node.c (class glyph_node): Make operator new and operator
16358 (class ligature_node): Similarily.
16360 * troff/input.c (operator==(const macro &, const macro &)): New
16362 (non_interpreted_node::same): Use this.
16363 (string_iterator::string_iterator): Make macro& argument const.
16365 * troff/input.c (input_iterator::get): New function. Don't make
16366 asciify_macro or class non_interpreted_node friends of class
16368 (non_interpreted_node::interpret): Use input_iterator::get.
16369 (asciify_macro): Likewise.
16371 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
16372 ~non_interpreted_node): Deleted.
16373 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
16376 * troff/symbol.h: Make all symbol member functions const.
16378 * lib/strtol.c: New file.
16379 * lib/Makefile: Add strtol.c.
16380 * Makefile: Define STRTOL as strtol.o to include strtol in
16383 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
16385 * pic/troff.c (troff_output::simple_circle): Divide by scale.
16387 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
16389 * troff/input.c (do_special): Use input_level.
16391 * troff/token.h (TOKEN_BACKSPACE): New token.
16392 (token::backspace): New function.
16393 * troff/input.c (token::description, token::next, token::process):
16394 Grok TOKEN_BACKSPACE.
16395 (do_special): Turn TOKEN_BACKSPACE back into \b.
16397 * troff/token.h (token::leader): New function.
16398 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
16400 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
16402 * troff/input.c (do_special): Use token::description in error
16405 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
16407 * troff/input.c (decode_args): Combine quoted and
16408 quote_input_level variables. Make it a for (;;) loop.
16410 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
16412 * troff/input.c (read_long_escape_name): The test for whether to
16413 expand buffer was off by 1.
16414 (read_string): Similarily.
16416 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
16418 * troff/input.c: Use `const int' rather than `static const int'.
16420 * troff/div.h (diversion::copy_file): Declare as pure virtual.
16421 (macro_diversion::copy_file): New function.
16422 * troff/node.h: New class diverted_copy_file_node.
16423 * troff/node.c: Implement it.
16424 * troff/input.c (copy_file): Use diversion::copy_file. Handle
16425 first page transition by pushing a diverted_copy_file_node.
16426 * troff/input.c (token::next, process_input_stack): Don't handle
16429 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
16431 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
16432 whether space widths need adjusting.
16434 * troff/charinfo.h: Generalize translated_to_space to
16435 special_translation so as to allow translation to \&.
16436 * troff/input.c (translate): Allow translation to \&.
16437 (charinfo::*): Corresponding changes.
16438 * troff/node.c (make_node, node::add_char): Corresponding changes.
16439 * troff/node.h (dummy_node::dummy_node): Allow optional first
16442 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
16443 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
16445 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
16446 TOKEN_REQUEST with an argument of TITLE_REQUEST.
16447 (token::process): Grok that.
16448 * troff/input.c (copy_file): Handle first page transition like
16449 title by pushing a COPY_FILE_REQUEST cookie.
16450 (token::next, process_input_stack): Grok that.
16451 * troff/node.h (output_file::copy_file): Add x and y arguments.
16453 * troff/div.c (top_level_diversion::copy_file): Supply them.
16454 * troff/node.c (troff_output_file::copy_file): Add x and y
16455 arguments; moveto specified position. Invalidate font_position
16456 array after copying file.
16457 (output_file::copy_file): New function.
16458 (suppressed_output_file::copy_file, ascii_output::copy_file):
16460 * troff/input.c (transparent_file): New function.
16461 (init_input_requests): Bind to "trf".
16462 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
16463 (process_input_stack): Likewise.
16465 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
16467 * troff/node.c (init_node_requests): New number registers .kern
16468 pointing to global_kern_mode, and .lg pointing to
16469 global_ligature_mode.
16471 * troff/node.c (ligature): Don't change it if we get a bad
16474 * troff/input.c (do_define_string): Don't strip tabs.
16476 * troff/input.c (asciify_macro): Make the string_iterator auto.
16478 * troff/node.c (init_font_requests): Rename to...
16479 (init_node_requests):
16480 * troff/node.h: Change declaration.
16481 * troff/input.c (main): Change call.
16483 * troff/input.c (node::reread, diverted_space_node::reread): New
16485 (process_input_stack): Call reread rather than
16486 get_diverted_space_node.
16487 * troff/node.c (node::get_diverted_space_node,
16488 diverted_space_node::get_diverted_space_node): Removed.
16489 * troff/node.h: Declare reread methods instead of
16490 get_diverted_space_node methods. Make `n' member private.
16491 * troff/input.c: (token::diverted_space): Removed.
16492 * troff/token.h: Removed declaration.
16495 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
16497 * eqn/script.c (script_box::compute_metrics): Don't let
16498 SUP_RAISE_FORMAT become negative.
16500 * tbl/table.c (table::do_row): Entries that don't end in the
16501 this row shouldn't make the row non-blank.
16503 * tbl/table.c (table::make_columns_equal): Only set the width of
16504 columns which are marked as equal.
16506 * tbl/main.c (process_data): Before issuing excess data error,
16507 if last character was a newline unget it; then get it again after
16508 the error. Also include the contents of the entry in the message.
16510 * groff.c: New file.
16511 * Makefile: Build groff from groff.c. Make it possible to use
16512 either groff.sh or groff.c as groff.
16513 * Makefile.bd: Similarily.
16515 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
16517 * groff.sh: Don't delay expansion of $@ in assignment to files.
16518 Remove occurrences of \".
16520 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
16522 * all Makefiles: Simplify and rearrange.
16524 * Makefile: Handle fmod like malloc.
16525 * lib/Makefile: Similarily.
16526 * lib/fmod.c: Remove #ifdef NEED_FMOD.
16528 * Makefile: Rename OPTIMISE to OPTIMIZE.
16530 * groff.sh: Remove assignment to PATH.
16531 * Makefile: Remove SHPATH variable.
16532 * Makefile.bd: Similarily.
16534 * groff.sh: Add -V option to print the pipeline instead of
16537 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
16539 * lib/font.c: Split off file searching into ...
16540 * lib/fontfile.c: New file.
16542 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
16544 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
16546 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
16547 Also change misleading comment.
16548 (table::do_vspan): Change similarily misleading comment.
16549 * tbl/main.c (process_data): A format row with an explicit `s'
16550 uses up a data line, even if all the other columns are `_' or `='.
16552 * troff/input.c (token::description): Fix description of
16553 TOKEN_DUMMY and TOKEN_EMPTY.
16555 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
16557 * groff.sh: Fix description of -Z in help message.
16559 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
16561 * pic/object.c (object_spec::make_object): Allow negative and zero
16563 * pic/pic.y: Give linethick default value of -1.0.
16564 * pic/troff.c (troff_output::troff_output): Initialize
16565 last_line_thickness to BAD_THICKNESS.
16566 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
16567 (troff_output::line_thickness): Canonicalize negative thicknesses
16568 to RELATIVE_THICKNESS.
16569 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
16570 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
16572 (tex_output::start_picture): Set pen_size to -2.0.
16574 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
16575 0, then use 0 linewidth.
16576 (ps_printer::ps_printer): Initialize line_thickness to -1.
16578 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
16580 * ps/devps/symbolchars: Remove `or'.
16581 * ps/tmac.ps: Implement \(or with .char.
16583 * ps/devps/symbolchars: Move most characters into textmap.
16584 * ps/devps/textmap: Add names for troff bracket characters. Remove
16587 * ps/devps/TSymbol.ps: Removed.
16588 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
16589 * ps/tmac.ps: Do with .char what TSymbol did.
16590 * ps/devps/download: Remove TSymbol.
16592 * ps/devps/T: Removed.
16593 * ps/devps/Troff.ps: Removed.
16594 * ps/devps/Troff.afm: Removed.
16595 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
16596 * ps/devps/download: Remove Troff.
16597 * ps/devps/FontMakefile: Remove T target.
16598 * ps/devps/DESC-A4: Remove T from font list.
16599 * ps/devps/DESC-letter: Likewise.
16601 * troff/input.c (macro_to_node): Rename to ...
16602 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
16603 character's definition while processing it.
16604 * troff/node.c (node::add_char, make_node): Change calls to
16605 macro_to_node accordingly.
16607 * troff/input.c (token::next): Translate \_ to \(ul.
16609 * tty/devascii/R.proto: Add `|'.
16610 * tty/devlatin1/R.proto: Likewise.
16612 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
16614 * man: Put the version number in all the man pages.
16616 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
16618 * Makefile.bd: New file.
16619 * README.bd: New file.
16621 * VERSION: New file.
16622 * lib/version.c: Removed.
16623 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
16626 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
16627 environment variable.
16629 * all Makefiles: Split install target into install.bin for
16630 binaries, and install.nobin for everything else.
16631 * Makefile: Add bindist target.
16633 * man/afmtodit.man: New file.
16634 * man/Makefile: Add afmtodit.n to MAN1PAGES.
16635 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
16637 * ps/Makefile: Pass BINDIR to make install in devps.
16639 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
16640 the space character.
16642 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
16644 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
16646 * ps/ps.c: Redo font downloading.
16647 * ps/devps/download: New file.
16648 * ps/devps/Makefile: Add download to DEVICEFILES.
16649 * ps/devps/afmtodit: Remove -d option.
16650 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
16651 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
16652 * ps/devps/zapfdr.ps: Likewise.
16653 * ps/devps/TSymbol.ps: Likewise.
16655 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
16657 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
16659 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
16661 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
16662 then strip the first line if it starts with %.
16663 * Makefile: Add a comment about this.
16665 * man/tfmtodit.man: New file.
16666 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
16667 * dvi/Makefile: Install tfmtodit in BINDIR.
16669 * dvi/tfmtodit.c (usage): Mention -v option.
16671 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
16673 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
16674 * troff/node.c (troff_output_file::transparent_char): Don't call
16677 * eqn: Add check_tabs method to most box classes.
16678 * eqn/box.c (box::top_level): Call check_tabs.
16680 * eqn/script.c (script_box::output): Use \Z.
16681 * eqn/limit.c (limit_box::output): Use \Z.
16683 * eqn/box.c (box::top_level): Use itoa.
16685 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
16687 * dvi/tmac.dvi: Add font translations for CR, C, TT.
16688 * dvi/devdvi/Makefile: Don't make links to CW.
16690 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
16692 * xditview/tmac.X: Likewise.
16694 * troff/node.c: Add font translation feature.
16695 (get_font_translation): New function.
16696 (symbol_fontno): Translate the font name.
16697 (mount_font_no_translate): Rename to mount_font to this.
16698 (mount_font): New function.
16699 (font_family::make_definite): Call mount_font_no_translate instead
16701 (mount_style): Translate the font name.
16702 (font_translate): New function.
16703 (init_font_requests): Bind "ftr" to font_translate.
16705 * ps/devps/prologue (SN): New procedure that rounds a position to
16706 the nearest (pixel + (.25,.25)).
16707 (DL): Use SN to round endpoints.
16709 * lib/version.c: Changed version to 0.5.
16711 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
16713 * Makefile: Move definition of PAGE to the very beginning, so that
16714 people are less likely to miss it.
16716 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
16718 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
16720 * troff/env.c (environment::choose_breakpoint): Make `can't find
16721 breakpoint' error a warning of type WARN_BREAK. Change message to
16722 `can't break line'.
16723 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
16725 * troff/input.c: Add WARN_BREAK to warning_table. Include
16726 WARN_BREAK in DEFAULT_WARNING_MASK.
16728 * tty/tmac.tty: Add definition of \(+-.
16730 * groff.sh: Remove `--' option to set command.
16732 * dvi/devdvi/texsy.map: Remove duplicate md entry.
16734 * ps/devps/eqnchar: Better definition of cdot using md.
16735 * dvi/devdvi/eqnchar: Likewise.
16736 * xditview/devX100/eqnchar: Likewise.
16737 * xditview/devX75/eqnchar: Likewise.
16738 * eqn/lex.c: Add definition of cdot.
16740 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
16742 * troff/input.c (get_optional_char): New function.
16743 * troff/input.c (set_page_character): Use get_optional_char(),
16744 rather than has_arg() and tok.get_char(1).
16745 * troff/env.c (tab_character, leader_character, hyphen_char,
16746 field_characters): Likewise.
16747 (margin_character): Likewise. Also always delete the
16748 margin_character_node.
16750 * troff/input.c (token::get_char): Use token::description.
16752 * troff/input.c (has_arg): Don't skip over tab and \}.
16753 * troff/number.c (start_number): Give a warning if the number
16754 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
16756 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
16758 * troff/input.c (empty_name_warning, non_empty_name_warning): New
16760 (get_name, get_long_name): Use these. Rename `warn' argument to
16763 * troff/node.c (get_fontno): Test that the symbol is not null.
16765 * troff/input.c (token::description): New function.
16766 * troff/number.c (parse_term): Use token::description in `numeric
16767 expression expected' message.
16768 * troff/groff.h: Add WARN_MISSING.
16769 * troff/number.c (start_number): New function.
16770 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
16771 get_incr_number): Use start_number().
16772 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
16774 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
16775 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
16777 * troff/input.c (token::get_char): Use WARN_MISSING.
16778 * troff/input.c (token::delimiter): Use token::description.
16779 * troff/env.c (environment_switch): Back out Aug 3 change.
16780 * troff/input.c (has_arg): Skip over \}s and tabs but give a
16782 * troff/token.h (token::tab): New function.
16783 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
16784 * troff/reg.c (alter_format): Likewise.
16785 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
16787 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
16789 * troff (most files): Redo warnings. Divide warnings into various
16790 categories; warning() has an additional first argument indicating
16791 the category it falls into.
16792 * troff/input.c (main): -w now takes an argument. New option -W.
16793 (enable_warning, disable_warning): New functions.
16795 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
16796 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
16798 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
16800 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
16801 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
16802 * xditview/devX75/eqnchar: Likewise.
16803 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
16805 * eqn/other.c: When bar or over applies to a single character
16806 don't produce an overline_box or an underline_box. Instead produce
16807 an accent_box or an underaccent_box, with the accent a line
16808 whose width is accent_width. New classes underaccent_box,
16809 overline_char_box and underline_char_box.
16810 * eqn/box.h: Move overline_box, underline_box, accent_box class
16811 declarations into eqn/other.c. Add declarations of
16812 make_underline_box, make_overline_box, make_accent_box.
16813 * eqn/eqn.y: Call make_overline_box, make_underline_box
16814 make_accent_box instead of constructors.
16815 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
16817 * eqn/other.c: Add accent_box::~accent_box.
16818 * eqn/box.h: Declare it.
16820 * groff.sh: With -Tps, use eqn -D.
16822 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
16824 (underline_box::output): Similarily.
16825 (accent_box::output): Use \Z.
16827 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
16830 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
16832 * troff/div.c (top_level_diversion::transparent_output(unsigned
16833 char)): Use asciify.
16834 * troff/input.c (asciify): Don't make it static.
16835 * troff/token.h (asciify): Declare it.
16837 * troff/input.c (get_name, get_long_name, token::get_char,
16838 token::delimiter): Add an extra default argument which says
16839 whether a warning should be printed.
16840 * troff: Pass a non-zero argument to one of these rather than
16841 printing a warning directly.
16843 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
16845 * troff: Consistently use symbol::is_null.
16847 * troff/dictionary.h: Move some inline functions into
16850 * troff/request.h: Move inline functions into input.c.
16851 (request_or_macro::invoke): Make it pure.
16853 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
16854 * troff/input.c (init_input_requests): Use class constant_int_reg.
16855 (class compatible_reg): Deleted.
16856 * troff/div.c (init_div_requests): Use class constant_int_reg.
16857 (class last_post_line_extra_space_reg): Deleted.
16859 * troff/env.c (tab_character): Don't change the tab character if
16860 we get an invalid argument.
16861 (hyphen_char): Similarily.
16863 * troff/reg.c (alter_format): Check that nm is not null.
16865 * Makefile, groff.sh: Make it possible to customize the commands
16866 used for printing PostScript and dvi files. Also make it possible
16867 to customize the path used by groff.sh.
16869 * eqn/eqn.y: Make `left' right associative.
16871 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
16873 * pic/pic.h: Added definition of M_SQRT2 for those systems that
16876 * pic/pic.h: Removed definition of INT_MAX.
16878 * troff/node.c (italic_corrected_node::vertical_extent): Omit
16881 * troff/input.c (token::next): Handle \R like \n.
16883 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
16885 * ps/tmac.pc (PSPIC): Simplify.
16887 * troff/env.c (tab_stops::to_string):
16888 * pic/pic.y (object_type_name):
16889 * pic/troff.c (simple_output::line):
16890 * pic/tex.c (tex_output::spline):
16891 * pic/object.c (object_spec::make_object):
16892 * tbl/main.c (process_data): Add cases to switch statements to
16893 avoid cfront warnings. (Some of these are spurious, since the
16894 switch already has a default case.)
16896 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
16897 `ps-'. Don't test systat; instead check number of arguments to
16900 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
16902 * macros/tmac.e: Do not decrease the page offset by 0.5i.
16904 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
16905 Unlink the file as soon as we have opened it, so that we don't
16906 have to bother with signal handlers.
16907 (handler): Deleted.
16908 (fatal_error_exit): Deleted.
16909 (main): Don't call signal.
16911 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
16913 * dvi/devdvi/Makefile: Use the -k option with S and MI.
16915 * pic/pic.y: If there is a label, or an nth construction before
16916 the first `.' in the argument to `with', ignore it and generate a
16918 * pic/lex.c (lex_warning): New function.
16920 * tbl/table.c (table::init_output): In section keep and release
16921 macro, use 0 indent when diverting and the correct indent when
16924 * troff/input.c (interpolate_number_format): Do not interpolate
16925 anything if the number register is not defined.
16927 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
16929 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
16931 * ps/devps/prologue (PICTURE): Set components of graphics state to
16932 their default values.
16934 * ps/devps/text.enc: Add trademark
16935 * ps/devps/textmap: Add names for club, spade, heart, diamond,
16936 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
16937 * ps/devps/symbolchars: Add names for summation and product.
16939 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
16940 suchthat. Add pp. Add upper-case letters.
16942 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
16943 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
16946 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
16947 rA (right angle bracket) to ra. Introduce names for double-headed
16948 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
16949 * ps/devps/textmap: Likewise for ps device.
16950 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
16951 * tty/devascii/R.proto: Rename lA to la and rA to ra.
16952 * tty/devascii/R.proto: Likewise.
16953 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
16955 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
16957 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
16959 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
16962 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
16964 * troff/div.c (when_request): Use symbol::is_null rather than
16965 has_arg to determine whether we have an argument.
16966 (change_trap): Remove the trap if we get an invalid number. Give
16967 an error if we don't get at least the macro name.
16968 (diversion_trap): Remove trap if we get an invalid name or number.
16970 * troff/env.c (environment_switch): Pop if we get an invalid
16971 symbol or numeric expression.
16973 * troff/input.c (do_define_macro): If EOF is encoutered while
16974 defining the macro, do tok.next() before returning.
16976 * troff/token.h (has_arg): Move definition from here, to ...
16977 * troff/input.c (has_arg): ... here
16979 * troff/env.c (space_size): Do nothing if we get an invalid argument.
16980 * troff/input.c (shift): Likewise.
16982 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
16985 * pic/troff.c (troff_output::start_picture): Comment out calls to
16988 * eqn/main.c (do_file): Subtract 1 from current_lineno if
16989 interpret_lf_args succeeds.
16991 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
16992 \\. This avoids problems with \$N.
16994 * groff.sh: Pass -C to preprocessors.
16996 * lib/lf.c (interpret_lf_args): Be more flexible.
16998 * tbl/main.c (main): Add -C option.
16999 (table_input::get): Do not recognize TE if followed by character
17000 other than a space or newline unless -C option given.
17001 (process_input_file): Likewise for lf, TS.
17002 (process_data): Likewise for lf in text blocks.
17004 * eqn/main.c (main): Add -C option.
17005 (do_file): Don't recognize EQ, EN or lf if followed by character
17006 other than space or newline unless -C option given.
17007 * eqn/lex.c (file_input::read_line): Similarily.
17008 * eqn/eqn.h: Declare compatible_flag.
17010 * etc/soelim.c (main): Add -C option.
17011 (interpret_lf_args): Use version in libgroff.
17014 * pic/main.c (main): Add -C option, which sets compatible_flag.
17015 (top_input::get), (top_input::peek): If -C option not given,
17016 do not recognize .PS/.PE/.PF/.lf if followed by a character
17017 other than space or newline.
17018 * pic/lex.c (file_input::read_line): Similarily.
17019 * pic/pic.h: Add declaration of compatible_flag.
17021 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
17023 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
17025 * troff/node.c, troff/node.h: Add `asciify' methods to classes
17026 derived from node. New class space_char_hmotion_node.
17027 * troff/input.c (asciify_macro): New function.
17028 * troff/input.c (init_input_requests): New request `asciify' bound
17030 * macros/mm.diff: New file.
17031 * Makefile: In install.mm target use `patch' to apply
17034 * troff/input.c (macro::print_size): Just print the size in bytes.
17036 * troff/div.c (return_request): Correct the argument
17039 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
17041 * troff/node.h (class composite_node): Add sz member.
17042 * troff/node.c (composite_node::size): Return sz.
17043 * troff/input.c (macro_to_node): Use the initial size in the
17044 environment as the size of the composite_node.
17046 * troff/node.c (node::zero_width_tprint): Provide a reasonable
17049 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
17051 * troff/div.c (change_trap): If we get a bad number expression,
17054 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
17056 * lib/matherr.c (matherr): Define this only if math.h defines
17059 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
17061 * troff/div.c (macro_diversion::distance_to_next_trap): If there
17062 no diversion trap return vunits(INT_MAX - vresolution).
17064 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
17066 * troff/input.c (do_zero_width): New implementation that doesn't
17067 use a temporary environment. Use instead:
17068 (token::add_to_node_list): New function.
17069 * troff/env.c (environment::get_prev_char_height),
17070 (environment::get_prev_char_height),
17071 (environment::get_prev_char_skew): New functions.
17072 (environment::get_prev_char): New function.
17073 (environment::get_prev_char_width): Change to use get_prev_char.
17074 (init_env_request): Implement new registers .cht, .cdp, .csk.
17075 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
17076 \Z being processed in a separate environment.
17078 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
17080 * tbl/table.c: Removed TABLE_BOTTOM_REG.
17082 * tbl/table.c (table::init_output): In the section release macro,
17083 give a warning message if the section won't fit on one page.
17085 * tbl/table.c (table::do_top): Emit table keep only if table is
17087 (table::do_bottom): Likewise for table release.
17088 (table::table), (table::add_vertical_rule): Remove reference to
17090 * tbl/table.h: Remove keep member.
17092 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
17093 SECTION_RELEASE_MACRO, if there's not enough space before the next
17094 trap to output the diversion, call T# ourselves, set
17095 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
17096 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
17097 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
17098 vertical position and return to it before turning traps on again.
17100 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
17102 * troff/node.c, troff/node.h: In classes derived from node,
17103 replace prev_char_width method by last_char_node method.
17104 * troff/env.c (environment::get_prev_char_width): Use
17105 node::last_char_node rather than node::get_prev_char_width.
17107 * Makefile: Added comment about -fno-inline on 68030-based
17110 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
17111 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
17112 expressions using sizeof to int.
17113 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
17115 * macros/tmac.e (TS): Don't move @f back past the current
17118 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
17120 * ps/ps.c (main): Buffer stderr.
17121 * dvi/dvi.c (main): Likewise.
17122 * tty/tty.c (main): Likewise.
17124 * ps/ps.c (ps_printer::do_import): Improve error handling.
17126 * troff/input.c (abort_request): Use asciify.
17128 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
17129 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
17130 type of first argument int rather than char. This works around a
17131 bug on the 68030 based Apollo using g++ 1.37.1.
17133 * tbl/table.h (class table): Add `keep' member.
17134 * tbl/table.c (table::table): Initialize `keep'.
17135 (table::add_vertical_rule): Set `keep' to 1.
17136 (table::do_top): Only emit table keep macro is `keep' is non-zero.
17137 (table::do_bottom): Likewise for table release macro.
17138 (table::do_row): Emit section keep macro even if the row is 0.
17140 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
17142 * macros/tmac.e (@C): Preserve the font family across the change
17145 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
17147 * lib/font.c: Initialize font::hor and font::vert to 1.
17148 (font::load_desc): Check the values of font::hor and font::vert.
17150 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
17151 be included in a C compilation.
17152 (iftoa): Use INT_DIGITS. Include lib.h.
17154 (as_string): Likewise.
17155 * tbl/table.c: Removed definition of INT_DIGITS.
17156 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
17157 * troff/input.c (input_input_requests): Likewise.
17158 * ps/ps.c (make_encoding_name): Likewise.
17159 (ps_printer::set_style): Likewise.
17160 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
17162 * tty/devascii/R.proto: Map fm onto '.
17163 * tty/devlatin1/R.proto: Likewise.
17165 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
17167 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
17168 argument to \w is at a different input level.
17170 * tbl/table.c (table::init_output): Define a new macro
17171 REPEATED_VPT_MACRO, like vpt but if in a diversion also
17172 transparently outputs itself.
17173 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
17175 (table::do_row): Likewise.
17177 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
17178 TRANSPARENT_STRING_NAME.
17180 * tbl/table.c (table::init_output): In the table release macro
17181 print an error message and don't produce any output if after
17182 issuing the need request the table still will not fit. Also
17183 remove the diversion after bringing it back.
17185 * tbl/table.c (table::init_output): Define a new macro
17186 REPEATED_MARK_MACRO, like mk but if in a diversion also
17187 transparently outputs itself.
17188 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
17189 is necessary because .TH might not call .T#.
17190 (table::do_top): Likewise TOP_REG.
17191 (table::define_bottom_macro): If TOP_REG is no longer valid, use
17192 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
17193 table header might contain just the two top rules.
17195 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
17197 * troff/div.c: Implement new request `ptr' to print all traps.
17199 * troff/env.c (init_env_requests): Implement `.tabs' reg with
17200 init_string_env_reg.
17201 * troff/env.c (class tab_reg): Deleted.
17203 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
17205 * troff/div.c: New number register .pn returns the number of the
17206 next page as set by the pn request.
17208 * macros/tmac.an: Redid headers and footers. Number each manual
17209 entry starting from 1 unless \nC is > 0, like Sun. Added an
17210 optional 5th argument to .TH which specifies the manual name and
17211 appears in the center of the header. Understand the X, P and D
17212 registers like Sun.
17214 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
17216 * troff/env.c (init_env_requests): New number register `.lt' to
17217 return the title length.
17219 * troff/node.h (class transparent_dummy_node): New class.
17220 * troff/node.c (class transparent_dummy_node): Provide member
17222 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
17225 * troff/input.c (token::next): New escape sequence \).
17226 * troff/input.c (get_copy): Recognize \) in copy mode.
17228 * troff/input.c (input_stack::clear): New function.
17229 * troff/input.c (exit_request): Use input_stack::clear.
17231 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
17232 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
17234 * troff/env.c: Move set_page_character to input.c. Move
17235 page_character to input.c also.
17236 * troff/env.c (title): Split off the reading of the parts of the
17237 title into read_title_parts.
17238 * troff/input.c (read_title_parts): New function. Check the
17239 input_level when testing whether a token matches the delimiter.
17241 * troff/input.c (exit_request): New function.
17242 * troff/input.c (init_input_requests): Bind ex request to
17243 exit_request rather than exit_groff.
17245 * troff/input.c (exit_groff): Call tok.next() before
17246 process_input_stack().
17248 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
17250 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
17251 * troff/env.h: ditto.
17252 * troff/input.c: ditto.
17254 * troff/env.c (environment::is_empty): Test pending_lines.
17256 * troff/env.c (environment::have_pending_lines): Removed.
17258 * troff/input.c: Add request to flush pending lines from the
17261 * troff/env.c, troff/env.h: Add automatic widow control feature.
17263 * troff/input.c (exit_groff): Do process_input_stack() after
17264 do_break() but before setting exit_flag to 2.
17266 * troff/input.c: Remove FLUSH_PENDING_LINES and
17267 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
17268 environment after END_TRAP token seen, but only if there aren't
17269 any more traps still unfinished.
17270 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
17272 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
17274 * troff/env.c: Rename the `retain_size' member of class
17275 pending_output_line to `no_fill'.
17277 * troff/env.c (title): When the line is output, make the
17278 retain_size argument !fill.
17280 * troff/node.h: Add `hyphenated' member to struct breakpoint.
17281 * troff/node.c (space_node::get_breakpoints),
17282 (dbreak_node::get_breakpoints): Fill this in.
17283 * troff/env.c: Allow specification of maximum number of
17284 consecutive hyphenated lines.
17286 * troff/env.c (environment::is_empty): Add test for !current_tab.
17288 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
17290 * troff/env.c (environment::hyphenate_line): Don't completely give
17291 up if the word is not to be hyphenated; continue so that breaks
17292 can be made at break_char_node's.
17294 * lib/lib.h: Only define INT_MAX if it's not already defined;
17295 undef INT_MIN if it's already defined.
17297 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
17299 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
17300 This works around a bug in AT&T C++ 2.0 used with an ANSI C
17303 * macros/tmac.an (an-header): Set no-space mode.
17305 * macros/tmac.an (TH): Start a new page if necessary.
17307 * Started using ChangeLog at version 0.4.
17310 version-control: never