This change implements the following features:
[s-roff.git] / ChangeLog
blobe06f82848406a52441d38465a937d630a43dc7dd
1 2004-09-19  Keith Marshall  <keith.d.marshall@ntlworld.com>
3         This change implements the following features:
5         PORPHANS
6           New numeric register: Defines number of lines following LP, PP,
7           QP, IP or XP, which must be kept together, before any automatic
8           page break.  If insufficient space remains on the current page, a
9           page break is forced before the new paragraph begins.
11         HORPHANS
12           New numeric register: Sets number of lines of following paragraph
13           which must be kept with a heading, defined by NH or SH, before any
14           automatic page break.  If insufficient space remains on the
15           current page, a page break is forced before the heading.
17         GROWPS
18           (Thanks to Joerg van den Hoff, for this idea).
20           New numeric register: Sets the first level of heading (set with
21           NH), which will keep the same point size as body text; e.g. if
22           GROWPS is set to 3, .NH 3, .NH 4, ... will produce headings at the
23           point size specified by \n[PS], but .NH 2 and .NH 1 will have
24           progressively larger point sizes, determined by \n[PSINCR] (see
25           below).
27         PSINCR
28           New numeric register: Sets the point size increment for each level
29           of heading, (set with NH), below the threshold level set by
30           GROWPS; e.g. if \n[PS] = 10, \n[GROWPS] = 3 and \n[PSINCR] = 2.0p,
31           then .NH 1 will produce 14pt headings, .NH 2 will produce 12pt,
32           and all other levels will remain at 10pt, (because \n[PS] = 10).
34         SH
35           Existing macro now accepts a numeric argument, to make heading
36           size match that of NH with same argument value, when the
37           GROWPS/PSINCR feature is enabled.
39         SN-DOT
40           New string, set by NH macro, replaces the existing (undocumented)
41           use of SN, to represent the assigned section number.
43         SN-NO-DOT
44           New string, set by NH macro, represents the assigned section
45           number, but omits the terminal period (periods at intermediate
46           levels are retained).
48         SN
49           String set by NH macro, originally undocumented, now implemented
50           as an alias for SN-DOT (which reproduces original behaviour).
52         * tmac/s.tmac (PORPHANS): New register.
53         (par*start): Use it.
54         (HORPHANS, GROWPS, PSINCR): New registers.
55         (SH-NO-TAG, @SH): Use them.
56         (@NH): Improved.
58 2004-09-19  Keith Marshall  <keith.d.marshall@ntlworld.com>
60         * NEWS, doc/groff.texinfo, tmac/groff_ms.man: Document the deletion
61         of `Ds' and `De' macros.
63 2004-09-10  Werner LEMBERG  <wl@gnu.org>
65         In tbl, handle \a as an interpreted leader character if in
66         compatibility mode.
68         * src/preproc/tbl/table.h (PREFIX, PREFIX_CHAR, LEADER,
69         LEADER_CHAR): New macros.
70         (compatible_flag): New declaration.
72         * src/preproc/tbl/main.cpp (table_input): Add LEADER_1, LEADER_2,
73         LEADER_3, and LEADER_4 to `state'.
74         (table_input::get): Handle `\a'.
76         * src/preproc/tbl/table.cpp (PREFIX): Removed.
77         (LEADER_REG): New macro.
78         (table::init_output): Define LEADER_REG string register if in
79         compatibility mode.
81         * src/preproc/tbl/tbl.man: Document it.
83 2004-08-18  Werner LEMBERG  <wl@gnu.org>
85         * tmac/doc.tmac (An): Fix error message.
87 2004-08-06  Werner LEMBERG  <wl@gnu.org>
89         * src/preproc/tbl/main.cpp (main): Call `fatal' not `error' if a
90         file can't be opened.  UNIX tbl has the same behaviour.
92 2004-08-05  Y T  <doarhop@hotmail.com>
94         * src/preproc/grn/hdb.cpp (compatibility_flag): Add declaration.
95         (DBRead): If in compatibility mode, take into account the text
96         when computing figure boundaries.
98 2004-08-05  Werner LEMBERG  <wl@gnu.org>
100         * src/preproc/soelim/soelim.man: Improved.  Based on suggestions
101         from Tadziu Hoffmann.
103 2004-08-03  Werner LEMBERG  <wl@gnu.org>
105         * doc/meref.me: Document `_M' register.
107 2004-08-03  Martin Husemann  <martin@duskware.de>
109         Make hpftodit work correctly on big-endian systems.
111         * src/utils/hpftodit/hpftodit.cpp (File): New method
112         `get_uint32(char *)'.
113         (entry): New member `orig_value'.
114         (read_tags): Use new method.
115         (output_font_name, read_and_output_pcltypeface, dump_ascii):
116         Updated.
118 2004-08-01  Werner LEMBERG  <wl@gnu.org>
120         * tmac/s.tmac: Undo change 2003-06-29.  The proper macro definitions
121         are already in X11's `macros.t' file.
123 2004-08-01  Jeff Conrad  <jeff_conrad@msn.com>
125         * src/utils/hpftodit/hfptodit.cpp (output_font_name, dump_ascii):
126         Fix casting bug.
127         (read_and_output_pcltypeface): Handle strings with length <= 4.
129 2004-07-27  Egil Kvaleberg  <egil@kvaleberg.no>
131         * tmac/s.tmac (pg@top): Don't save `PO' register.
132         (pg*end-col, pg*end-page): Directly use `PO' register.
134 2004-07-27  Werner LEMBERG  <wl@gnu.org>
136         * man/groff_tmac.man: Mention `trace' and `pic' macro packages.
138         * src/preproc/refer/refer.cpp (output_references): Check for
139         empty hash table.
140         * src/preproc/refer/refer.man: Improve documentation of
141         `bibliography' command.
143 2004-07-26  Werner LEMBERG  <wl@gnu.org>
145         Add requests `fcolor' and `gcolor'.
147         * src/roff/troff/env.cpp (fill_color_change, glyph_color_change):
148         New functions.
149         (init_env_requests): Add `fcolor' and `gcolor'.
151         * src/roff/troff/input.h: Export do_glyph_color and do_fill_color.
153         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
154         Document new requests.
156 2004-07-24  Werner LEMBERG  <wl@gnu.org>
158         Add support for fractional point sizes in ms macros.  A value for
159         PS, VS, FPS, and FVS greater than or equal to 1000 is always divided
160         by 1000.  For example, `.nr PS 10250' sets the font size to 10.25p.
162         * tmac/s.tmac (@AU, @AI, par@load-init, par@init, par@reset, NL,
163         PX): Handle fractional point sizes for PS, VS, FPS, and FVS.
165         * tmac/groff_ms.man, docs/groff.texinfo, NEWS: Document it.
167 2004-07-19  Werner LEMBERG  <wl@gnu.org>
169         * src/preproc/pic/lex.cpp (for_input): Add member `from'.
170         Update constructor.
171         (do_for, for_input::get, for_input::peek): Handle negative `by'.
172         * src/preproc/pic/pic.man, doc/pic.ms, NEWS: Document it.
174 2004-07-08  Thomas Klausner  <wiz@netbsd.org>
176         * tmac/doc-syms (doc-str-St--p1003.1-2004): New string.
177         * tmac/groff_mdoc.man: Updated.
179 2004-07-05  Werner LEMBERG  <wl@gnu.org>
181         * doc/groff.texinfo: Further improve documentation of `hcode'.
183 2004-07-04  Sang Dae Yu  <sdyu@bh.knu.ac.kr>
185         Improve appearance of arrows in pic.
187         * src/preproc/pic/object.cpp (draw_arrow): Make outline of filled
188         arrow head thin.
189         Use two line segments for drawing non-filled arrow head.
190         (line_object::print, spline_object::print): Shorten line length to
191         avoid arrow sticking.
192         (arc_object::print): Take arrow direction into account.
194 2004-07-03  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
196         * tmac/groff_www.man: Update documentation of .MPIMG.
198 2004-07-03  Werner LEMBERG  <wl@gnu.org>
200         * tmac/an-old.tmac (RI): Always start with font `R'.
201         (RI, IR): Properly end with font `R'.
203 2004-07-02  Paul Eggert  <eggert@cs.ucla.edu>
205         * man/ditroff.man, man/groff_font.man, man/groff_out.man,
206         src/devices/grohtml/grohtml.man, src/preproc/grn/grn.man,
207         src/preproc/pic/pic.man, tmac/groff_man.man, tmac/groff_ms.man:
208         Don't pass more than six arguments to .R, .I, .B, etc., for
209         compatibility with traditional troff macros.
211 2004-07-02  Werner LEMBERG  <wl@gnu.org>
213         * src/roff/troff/input.h: s/COMPATIBLE_SAVE/PUSH_GROFF_MODE/.
214         s/COMPATIBLE_RESTORE/POP_GROFFCOMP_MODE/.
215         Update all users.
216         (PUSH_COMP_MODE): New internal character constant.
217         Update all users.
219         * src/roff/troff/input.cpp (get_copy): Handle PUSH_GROFF_MODE,
220         PUSH_COMP_MODE, and POP_GROFFCOMP_MODE.
221         (token::next, macro::append): Handle PUSH_COMP_MODE.
222         (decode_args): Add PUSH_GROFF_MODE or PUSH_COMP_MODE before and
223         POP_GROFFCOMP after each of the decoded arguments to make them
224         independent from the compatibility mode status.
225         (comp_mode): Add `COMP_ENABLE'.
226         (do_define_string, do_define_macro): Handle COMP_ENABLE.
227         (define_string, append_string, define_macro, define_indirect_macro,
228         append_macro, append_indirect_macro): Handle `compatible_flag'.
229         (chop_macro, substring_request, asciify): Handle PUSH_COMP_MODE.
231         * man/groff_diff.man, doc/groff.texinfo: Updated.
233 2004-07-01  Werner LEMBERG  <wl@gnu.org>
235         * doc/groff.texinfo: Improve documentation of `hcode'.
236         Use @documentencoding and convert document to latin-1; to do that
237         make latin characters active and assign proper macros (within a
238         @tex...@end tex environment).
239         * doc/Makefile.in (.texinfo.html, groff): Use --enable-encoding.
240         * doc/Makefile.sub (groff): Ditto.
242 2004-06-29  Werner LEMBERG  <wl@gnu.org>
244         Implement two new conditional operators `F <name>' and `S <name>'
245         which check whether <name> is a valid font or style, respectively.
247         * src/libs/libgroff/font.cpp (text_file): Add `silent' member.
248         (text_file::text_file): Updated.
249         (text_file::error): Don't emit message if `silent' is set.
250         (font::load_font): Add optional third argument (which is directly
251         passed to `load'.
252         (font::load): Add optional second argument to check the header of
253         a font only, without emitting warning or error messages.
254         * src/include/font.h (font): Updated.
256         * src/roff/troff/input.cpp (do_if_request): Implement `S' and `F'
257         conditionals.
258         * src/roff/troff/node.cpp (mount_font_no_translate): Add optional
259         fourth argument to check a font without mounting.
260         (check_font, check_style): New functions.
261         * src/roff/troff/node.h: Updated.
263         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
264         Updated.
266 2004-06-27  Werner LEMBERG  <wl@gnu.org>
268         Implement new string-valued register `.sty' to return the current
269         style name.
271         * env.cpp (environment::get_style_name_string): New function.
272         (init_env_requests): Add `.sty' register.
273         * env.h (environment): Updated.
274         * node.cpp (font_info): Make `get_style_name' a friend.
275         (get_style_name): New function.
276         * node.h: Updated.
278         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
279         Updated.
281 2004-06-15  Werner LEMBERG  <wl@gnu.org>
283         * src/preproc/tbl/main.cpp (process_data) <GOT_RIGHT_BRACE>: Handle
284         `nospaces' option.
286 2004-06-10  Colin Percival  <colin.percival@wadham.ox.ac.uk>
288         * doc/meintro.me, doc/meref.me: Don't use \*[td], \n[dy], \*[mo],
289         and \n[mo] to avoid dependency on current date.
291 2004-06-08  Werner LEMBERG  <wl@gnu.org>
293         * Makefile.sub (install_data): New target.
295 2004-06-04  Werner LEMBERG  <wl@gnu.org>
297         * src/libs/libxutil/Makefile.sub (EXTRA_CFLAGS): Define.
299 2004-06-03  Werner LEMBERG  <wl@gnu.org>
301         * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Fix typo and
302         order of libraries.
303         (install_data): Add $(srcdir).
305         * src/utils/xtotroff/Makefile.sub (EXTRA_LDFLAGS): Fix order of
306         libraries.
308 2004-06-02  Werner LEMBERG  <wl@gnu.org>
310         * aclocal.m4 (GROFF_X11): s/have_no_x/groff_no_x/.
311         Add X11 stuff to CFLAGS, LDFLAGS, and LIBS temporarily.
312         Add test for Xmu library.
313         (GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
314         GROFF_APPRESDIR_DEFAULT): New macros.
316         * configure.ac: Call GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
317         and GROFF_APPRESDIR_DEFAULT.
319         * configure: Regenerated.
321         * Makefile.in (appresdir): New variable.
322         (MDEFINES): Add appresdir.
324         * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Add -Xmu and
325         -Xt.
326         (install_data, uninstall_sub): New targets to handle GXditview.ad.
328         * src/utils/indxbib/Makefiles.ub (install_data): Depend on
329         `$(srcdir)/eign', not `eign'.
331         * MANIFEST, INSTALL, NEWS, PROBLEMS: Updated.
333         * man/groff_out.man, man/roff.man, src/devices/grops/grops.man,
334         src/devices/xditview/gxditview.man, src/roff/groff/groff.man:
335         Protect (g)xditview with `\%' to avoid hyphenation.
336         Other minor formatting.
338 2004-06-01  Werner LEMBERG  <wl@gnu.org>
340         Integrate gxditview into groff's standard directory hierarchy.
342         * src/xditview/*: Moved to ...
343         * src/devices/xditview/*: Here.
344         Moved DviChar.h and XFontName.h to src/include.
345         Moved DviChar.c and XFontName.c to new directory src/libs/libxutil.
346         Split off `xmalloc' into new file src/libs/libxutil/xmalloc.c.
347         Moved xtotroff.c to new directory src/utils/xtotroff.
348         Provide proper Makefile.sub files (reusing the stuff from
349         Imakefile.in).
350         DESC renamed to DESC.in.
351         Removed GXDitview-ad.h, INSTALL, Imakefile.in.
352         Converted everything from K&R to ANSI C.
353         Decorated with const where appropriate.
354         Cast string constants with `String' and `char *' where appropriate.
355         Made it compile with C++ (used as a C compiler).
356         Removed other minor compiler warnings.
358         * src/devices/xditview/device.c: Include config.h, string.h, and
359         defs.h.
360         Don't declare `exit', `strtok', `strchr', and `getenv'.
361         (FONTPATH): Remove.
363         * src/devices/xditview/font.c: Don't declare `XParseFontName' and
364         `XFormatFontName'.
366         * src/devices/xditview/xditview.c: Include config.h.
367         Include stdio.h earlier.
368         Protect declaration of `popen' and `pclose' with
369         NEED_DECLARATION_POPEN and NEED_DECLARATION_PCLOSE.
370         Replace `caddr_t' with `XtPointer'.
371         (MakePromptFunc): New typedef.
372         (DoPrint): Use RETSIGTYPE.
373         (promptfunction): Change type to MakePromptFunc.
374         (MakePrompt): Use MakePromptFunc for third argument.
375         (xmalloc): Removed.
377         * src/devices/xditview/ad2c: Add casts to `String'.
379         * src/include/XFontName.h (XFontNameString): Don't use array
380         notation.
381         Add prototypes for `XParseFontName', `XFormatFontName',
382         `XCompareFontName', and `XCopyFontName'.
384         * src/include/Makefile.sub (HDRS): Add `DviChar.h' and
385         `XFontName.h'.
387         * src/utils/xtotroff/xtotroff.c: Include getopt.h.
388         Don't declare `XParseFontName' and `XFormatFontName'.
389         (xmalloc): Removed.
390         (main): Remove `optind' and `optarg'.
392         * Makefile.in (XDEVDIRS, XPROGDIRS, XLIBDIRS): New variables
393         (to select programs which need X).
394         Make XDEVIDIRS depend on `FORCE'.
395         (X_CFLAGS, X_LIBS, X_EXTRA_LIBS, X_PRE_LIBS): New variables (for
396         X support).
397         (MDEFINES): Updated.
398         (LIBDIRS): Use XLIBDIRS.
399         (CPROGDIRS): Use XPROGDIRS.
400         (DEVDIRS): Remove font directories for gxditview.
401         (ALLDIRS, DISTDIRS): Add XDEVDIRS.
402         (EXTRADIRS): Remove src/xditview.
404         * Makefile.sub (DISCLEANFILES): Updated.
406         * Makefile.comm (LIBXUTIL): New variable.
407         (.cpp.o, .cpp.obj): Handle EXTRA_CCFLAGS.
408         (.c.o, .c.obj, .y.o): Handle EXTRA_CFLAGS.
410         * Makefile.cpg, Makefile.ccpg ($PROG): Handle EXTRA_LDFLAGS.
412         * aclocal.m4 (GROFF_X11): New function.
414         * configure.ac: Call GROFF_X11.
415         Don't create src/xditview/Imakefile.
416         Don't emit notice how to build gxditview.
418         * configure: Regenerated.
420         * test-groff.in (GROFF_BIN_PATH, XENVIRONMENT): Updated.
422 2004-05-28  Akihiro Sagawa  <sagawa@sohgoh.net>
424         * Makefile.in (CPPFLAGS): Define.
425         (MDEFINES): Add CPPFLAGS.
427 2004-05-27  Werner LEMBERG  <wl@gnu.org>
429         * arch/misc/Makefile.sub (shdeps.sed): Use $(srcdir).
431 2004-05-26  Niklas Edmundsson  <nikke@acc.umu.se>
433         Fix problems with `friend name injections'.
435         * src/preproc/eqn/box.h (make_mark_box, make_lineup_box,
436         make_script_box), src/roff/troff/div.h (end_diversions),
437         src/roff/troff/env.h (title), input.cpp (process_input_stack): Undo
438         change 2004-04-08.
440 2004-05-25  Bernd Warken  <bwarken@mayn.de>
442         * src/preproc/pic/pic.man, doc/pic.ms: Add example for `command'.
444 2004-05-25  Werner LEMBERG  <wl@gnu.org>
446         * src/libs/libgroff/cset.cpp, src/libs/libgroff/lf.cpp,
447         src/libs/libgroff/color.cpp: Include lib.h.
449 2004-05-25  Paul Eggert  <eggert@cs.ucla.edu>
451         * PROBLEMS: Update documentation for problems with Sun C++ 5.0
452         through Forte 6u1, and for how to get GNU make on Solaris.
454 2004-05-24  Werner LEMBERG  <wl@gnu.org>
456         * PROBLEMS: Document problems with gcc 3.4.0 on Sun.  Reported
457         by Paul Eggert.
459 2004-05-15  Keith Marshall  <keith.d.marshall@ntlworld.com>
461         * arch/misc/Makefile.sub (shdeps.sed): Don't use `$<' in explicit
462         rule.
464 2005-05-14  Werner LEMBERG  <wl@gnu.org>
466         * REVISION: Set to 2.
468         * aclocal.m4 (GROFF_STDINT_H): Removed.
469         (GROFF_INTTYPES_H): Define HAVE_CC_INTTYPES_H.
471         * configure.ac: Updated.
472         * configure, src/include/config.hin: Regenerated.
474         * src/libs/libgroff/tmpname.cpp: Don't include stdint.h but
475         inttypes.h conditionally.
477 2003-05-13  Werner LEMBERG  <wl@gnu.org>
479 Version 1.19.1 released
480 =======================
482 2004-05-10  Stephen Gildea  <http://www.gildea.com/stephen>
484         * src/preproc/refer/label.y (same_author_last_name,
485         same_author_name): Handle empty sort keys.
487 2004-05-10  Werner LEMBERG  <wl@gnu.org>
489         * NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,
490         tmac/TODO: Updated.
492         * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
493         doc-str-Lb-librt): Reset font.
494         (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
495         Provide `doc-str-Lb' to reset font.
496         * tmac/groff_mdoc.man: Updated.
498 2004-05-08  Jan Schaumann  <jschauma@netmeister.org>
500         * src/preproc/html/pre-html.cpp (make_message): Make it work for
501         snprintf versions which don't conform to ANSI C 99 (this is,
502         counting the string's trailing null byte in the return value).
504 2004-05-07  Keith Marshall  <keith.d.marshall@ntlworld.com>
506         * src/roff/troff/node.cpp (suppress_node::tprint): Don't expect
507         that all implementations of sprintf handle null pointers correctly.
509 2004-05-04  Werner LEMBERG  <wl@gnu.org>
511         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
512         Document `.U' register.
514         * src/roff/troff/env.cpp (environment::mark_last_line)
515         [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers.
517 2004-05-04  Larry Kollar  <kollar@alltel.net>
519         New read-only register `.U'; it returns 1 in safer mode and 0
520         otherwise.
522         * src/roff/troff/input.cpp (init_input_requests): Implement `.U'
523         register.
525 2004-05-03  Werner LEMBERG  <wl@gnu.org>
527         * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
529 2004-04-17  Werner LEMBERG  <wl@gnu.org>
531         * src/include/font.h (font): Use `int' for ch_index.
532         * src/libs/libgroff/font.cpp (font::alloc_ch_index,
533         font::compact): Updated.
535         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
536         warnings.
538         * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
539         (hyphen_word): Fix compiler warnings.
540         * src/roff/troff/input.cpp (get_char_for_escape_name): Return
541         `char'.
542         Update all callers.
543         (get_delim_number, get_line_arg): Change second argument type to
544         `unsigned char'.
545         (macro_header::copy, token::next, do_define_string,
546         do_define_character, substring_request, asciify_macro,
547         unformat_macro, read_size, non_interpreted_node::interpret,
548         while_request, main: Fix compiler warnings.
549         (read_color_draw_node): Initialize `col'.
551         * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
552         `start_col' and `end_col' of type `int'.
553         (vertical_rule): Make `col' of type `int'.
555         * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
556         for EOF.
558         * src/preproc/refer/label.y (uppercase_array, lowercase_array):
559         New arrays.
560         (format_serial): Use them to remove dependency on ASCII.
562         * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
563         compiler warning.
564         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
565         Ditto.
567         * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
568         compiler warnings.
569         (glyph): Change type of `hpos' to `int'.
571         * src/devices/lbp/lbp.cpp (strsep): Removed.  Unused.
572         * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
574         * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
576         * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
578 2004-04-16  Werner LEMBERG  <wl@gnu.org>
580         * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
581         src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
582         src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
583         `double' instead of `float' everywhere.
584         * src/preproc/grn/main.cpp: Use `double' instead of `float'
585         everywhere.
586         (main): Add return value.
587         * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
588         everywhere.
589         Update all user functions.
591         * src/include/search.h, src/include/ptable.h, src/include/printer.h,
592         src/preproc/eqn/box.h, src/preproc/pic/object.h,
593         src/preproc/refer/refer.h, src/preproc/tbl/table.h,
594         src/preproc/tbl/table.cpp, src/roff/troff/env.h,
595         src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
596         src/roff/troff/input.cpp, src/roff/troff/request.h,
597         src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
598         declarations.
600         * src/utils/indxbib/signal.c: Include stdlib.h.
602 2004-04-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
604         * tmac/s.tmac (@init, RP): Allow initialization of the PO register
605         before the first page.
607 2004-04-14  Thomas Klausner  <wiz@netbsd.org>
609         * tmac/doc-common (doc-volume-as-*): Use lowercase names.
610         (doc-operating-system-*): Updated.
611         * tmac/doc-syms (doc-str-St-*): Various small fixes.
612         (doc-str-Lb-*): Add more library names.
614 2004-04-10  Art Haas  <ahaas@airmail.net>
616         * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
617         use anonymous type.
619 2004-04-09  Art Haas  <ahaas@airmail.net>
621         * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
623 2004-04-09  Keith Marshall  <keith.d.marshall@ntlworld.com>
625         * arch/misc/shdeps.sh: Generate better comment for sed script.
627 2004-04-08  Art Haas  <ahaas@airmail.net>
629         * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
630         src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
631         src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
632         src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
633         (polyfill), src/preproc/grn/main.cpp (polyfill),
634         src/preproc/refer/command.cpp (command_table),
635         src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
636         gcc 3.5 doesn't like).
638 2004-04-08  Werner LEMBERG  <wl@gnu.org>
640         Removing many compiler warnings.  groff should now compile with
641         a C++ compiler used for C files also.  [Simple variable renamings
642         to avoid shadowing aren't logged in detail.]
644         * src/devices/grodvi/dvi.cpp: Some local variable renamings.
645         (draw_dvi_printer::draw) ['c']: Enclose in block.
647         * src/devices/grohtml/post-html.cpp: Some local variable renamings.
648         (page::add_line): Fix typos.
649         * src/devices/grohtml/html-text.cpp: Some local variable renamings.
651         * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
652         Some local variable renamings.
653         * src/devices/grolbp/lbp.h: Some local variable renamings.
655         * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
656         variable renamings.
658         * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
659         Remove redundant local variable declaration.
660         * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
661         Don't use `caddr_t' but `void *'.
662         Enclose functions with `extern "C"' for C++.
664         * src/libs/libdriver/input.cpp (remember_filename,
665         remember_source_filename): Use cast for string constant.
667         * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
668         src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
669         src/libs/libgroff/geometry.cpp: Some local variable renamings.
670         * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
671         style.
672         Enclose functions with `extern "C"' for C++.
673         * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
674         (needs_quoting): Return `int'.
675         (quote_arg): Add proper casts to malloc and realloc.
676         * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
677         various MS Windows environments.
678         (spawnvp_wrapper): Add proper cast to malloc.
680         * src/preproc/eqn/box.h: Remove redundant declarations of
681         `make_script_box', `make_mark_box' and `make_lineup_box'.
682         * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
683         * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
684         variable renamings.
686         * src/preproc/grn/hpoint.cpp: Some local variable renamings.
687         * src/preproc/grn/hgraph.cpp: Some local variable renamings.
688         (dx, dy): Renamed functions to...
689         (deltax, deltay): This.
690         * src/preproc/grn/main.cpp: Some local variable renamings.
691         (deffont): Add `const'.
692         (initpic, conv): Use cast for string constant.
694         * src/preproc/html/pre-html.cpp: Some local variable renamings.
695         (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
696         (char_buffer::run_output_filter): Second argument is unused.
697         * src/preproc/html/pushback.cpp: Some local variable renamings.
699         * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
700         * src/preproc/pic/object.cpp: Some local variable renamings.
702         * src/preproc/refer/label.y (lookup_label): Remove redundant
703         declaration of local variable.
705         * src/preproc/soelim.cpp: Remove redundant declaration of
706         `interpret_lf_args'.
708         * src/preproc/tbl/main.cpp: Some local variable renamings.
710         * src/roff/groff/groff.cpp (main): Use cast for string constant.
711         * src/roff/groff/pipeline.c: Enclose declarations of `error',
712         `c_fatal', and `i_to_a' with `extern "C"' for C++.
713         Don't use C++-style comments.
715         * src/roff/troff/env.h: Remove redundant declaration of `title'.
716         * src/roff/troff/node.h, src/roff/troff/env.cpp,
717         src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
718         renamings.
719         * src/roff/troff/div.h: Remove redundant declaration of
720         `end_diversions'.
721         * src/roff/troff/troff.h: Remove redundant declaration of
722         `cleanup_and_exit'
723         * src/roff/troff/input.cpp: Remove redundant declaration of
724         `handle_first_page_transition' and `process_input_stack'.
726         * src/utils/hpftodit.cpp: Some local variable renamings.
728         * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
729         for C++.
730         Don't define RETSIGTYPE.
731         * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
733         * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
734         (error): Use `const' in argument.
735         (main): Remove redundant declaration of `optind'.
736         Move declaration of `Version_string' to top-level.
738         * PROBLEMS: Document difficulties compiling signal.c if a C++
739         compiler is used for C.
741 2004-04-07  Werner LEMBERG  <wl@gnu.org>
743         * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
745 2004-04-06  Keith Marshall  <keith.d.marshall@ntlworld.com>
747         Make scripts like nroff.sh and neqn.sh portable across various
748         (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
749         non-POSIX path separators.  The idea is to extend those scripts to
750         decide at run-time (of the script) which path separator to use.
752         * arch/misc/Makefile.sub: New file.
753         * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
754         This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
755         a proper definition of the variable `GROFF_RUNTIME'.
757         * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
758         (MDEFINES): Add SH_DEPS_SED_SCRIPT.
759         (PROGDEPDIRS): New variable.
760         `FORCE' it.
761         (PROGDIRS): Add PROGDEPDIRS.
763         * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
764         Don't substitute @SEP@ and @BINDIR@.
765         * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
766         (PATH): Use GROFF_RUNTIME.
768         * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
769         Don't substitute @SEP@ and @BINDIR@.
770         * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
771         (PATH): Use GROFF_RUNTIME.
773 2004-04-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
775         * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
776         Cygwin which doesn't handle stderr correctly.
778 2004-03-08  Werner LEMBERG  <wl@gnu.org>
780         * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
781         against empty argument.  Problem reported by <cgd@broadcom.com>.
783 2004-03-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
785         * Makefile.in (SEP): Replaced with...
786         (RT_SEP, SH_SEP): Separators for the target platform's native path
787         separator and the build environment, respectively.
788         (fontpath, tmacpath): Use RT_SEP.
789         (MDEFINES): Updated.
791         * contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
792         * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
793         * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
794         * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
796 2004-03-05  Werner LEMBERG  <wl@gnu.org>
798         * fonts/devlj4/Makefile.sub (LJ4RES): Set to 1200.  This helps to
799         reduce alignment problems with newer printers which use built-in
800         TrueType fonts (instead of the older Intellifonts).  The ideal
801         solution is to provide a second set of groff metric files, but this
802         is extremely time-consuming to produce, given that HP's metric
803         files are very rudimentary.
805 2004-03-01  Werner LEMBERG  <wl@gnu.org>
807         * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
808         s/operand/argument/ in error message.
810 2004-03-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
812         * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
813         is in use.
815 2004-03-01  Antti Kantee  <pooka@netbsd.org>
817         * tmac/s.tmac (XE): Fix error message.
819 2004-02-27  Jeff Conrad  <jeff_conrad@msn.com>
821         * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
822         New macros.
824         * src/roff/groff/pipeline.c: Declare strcasecmp.
825         (run_pipeline) [_WIN32]: Use function name variants which don't
826         start with `_'.
827         Fix stream handling.
829 2004-02-27  Keith Marshall  <keith.d.marshall@ntlworld.com>
831         * src/include/nonposix.h: Fix declaration of `system_shell_name'.
832         Declare `spawnvp_wrapper' and macro definitions of spawnvp only
833         for platforms which use the native Win32 runtime libraries.
834         (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
836         * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
837         QUOTE_ARG_REALLOC_ERROR): Fix string.
839         * src/preproc/html/pre-html.cpp: Remove declaration of
840         `spawnvp_wrapper'.
841         Don't use __MINGW32__.
842         s/DEBUG_FILE/DEBUG_FILE_DIR/.
843         (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
844         (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
845         (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
846         calls to `set_redirection' and `WAIT'.
847         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
848         Fix calls to `set_redirection' and `save_and_redirect'.
849         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
850         to `set_redirection' and `save_and_redirect'.
851         (usage): Fix message.
852         (makeTempFiles, main): Use `DEBUG_FILE'.
854 2004-02-21  Werner LEMBERG  <wl@gnu.org>
856         * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
858 2004-02-21  Keith Marshall  <keith.d.marshall@ntlworld.com>
860         * src/libs/libgroff/quotearg.c: New file, providing proper argument
861         quoting for MSVC's spawn* and exec* functions.
862         * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
863         spawnvp with proper quoting for MSVC.
865         * src/libs/libgroff/assert.cpp (program_name),
866         src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
867         * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
869         * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
871         * src/include/error.h (program_name): Declare as `extern "C"'.
872         * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
874 2004-02-21  Jeff Conrad  <jeff_conrad@msn.com>
876         * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
877         spawnvp_wrapper.
878         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
880 2004-02-20  Jeff Conrad  <jeff_conrad@msn.com>
882         * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
883         variable.
884         (sbasename) [__MSDOS__ || ...]: New function.
885         (system_shell_name) [__MSDOS__ || ...]: Use a different, more
886         generic algorithm.
887         (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
888         (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
889         of XXX.
890         Use STDOUT_FILENO instead of hardcoded file handle.
891         (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
893 2004-02-19  Werner LEMBERG  <wl@gnu.org>
895         * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
896         avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
898 2004-02-18  Werner LEMBERG  <wl@gnu.org>
900         * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
901         new font and mapping files.
903 2004-02-18  Jeff Conrad  <jeff_conrad@msn.com>
904             Keith Marshall  <keith.d.marshall@ntlworld.com>
906         * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
907         an input pipe.  This is needed for the MSVC compiler to make troff's
908         `-o' option work.
910         * src/roff/troff/div.cpp: Include nonposix.h.
911         (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
913 2004-02-17  Werner LEMBERG  <wl@gnu.org>
915         * font/devlj4/generate/special.awk: New script.
916         * font/devlj4/generate/Makefile (S): Use special.awk.
917         * font/devlj4/*: Regenerated, including the following new files:
918         Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
919         MS Symbol (SYMBOL), Wingdings (WINGDINGS).
920         * NEWS: Document new lj4 fonts and revised hpftodit.
922 2004-02-17  Paco Andrés Verdú  <pandres@dragonet.es>
924         * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
926 2004-01-25  Werner LEMBERG  <wl@gnu.org>
928         * src/libs/libgroff/progname.cpp: Replaced with...
929         * src/libs/libgroff/progname.c: New file.
930         * src/libs/libgroff/Makefile.sub: Updated accordingly.
932 2004-01-17  Werner LEMBERG  <wl@gnu.org>
934         * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
936 2004-01-16  Jeff Conrad  <jeff_conrad@msn.com>
938         * font/devlj4/generate/wingdings.map,
939         font/devlj4/generate/symbol.map: Include unnamed glyphs.
940         Use groff glyph names where possible.
941         * src/devices/grolj4/lj4_font.man: Minor updates.
943 2004-01-13  Werner LEMBERG  <wl@gnu.org>
945         * tmac/www.tmac (DC): Handle TTY devices.
947         * doc/webpage.ms: Document viewCVS from ffii.org.
948         * NEWS, README: Updated.
950         * src/roff/groff/groff.man: Mention lj4_font man page.
952         * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
953         variables.
954         (FONTS): Add SYMBOL and WINGDINGS.
955         (SYMBOL, WINGDINGS): New targets.
957 2004-01-13  Jeff Conrad  <jeff_conrad@msn.com>
959         * src/devices/grolj4/lj4_font.man: New man page.
960         * src/devices/grolj4/Makefile.sub (MAN5): New variable.
961         * src/devices/grolj4.man: Mention lj4_font man page.
963         * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
964         * src/utils/hpftodit/hpftodit.man: Document it.
965         (CW): New macro.
966         Remove details about fonts (which are now in lj4_font.man).
968         * font/devlj4/generate/symbol.map,
969         font/devlj4/generate/wingdings.map: New files.
971 2004-01-12  Werner LEMBERG  <wl@gnu.org>
973         * README: Mention ffii's viewcvs access.
975 2004-01-09  Werner LEMBERG  <wl@gnu.org>
977         * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
979 2004-01-09  Jeff Conrad  <jeff_conrad@msn.com>
981         Revert most of the change from 2004-01-03 to better control used
982         symbol sets.
984         * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
985         (text_symbol_sets, special_symbol_sets): New arrays.
986         (symbol_set_table): New global variable.
987         (read_symbol_sets): Use search order given in the text_symbol_sets
988         and special_symbol_sets arrays.  If command line flag -a is not
989         given, search both arrays.
990         (output_charset): Require x_height_tag only for command line flag -i.
992 2004-01-06  Werner LEMBERG  <wl@gnu.org>
994         Implement string-valued registers \n[.m] and \n[.M] to return the
995         name of the current drawing and background color, respectively.
997         * src/roff/troff/symbol.h: Moved to...
998         * src/include/symbol.h: Here.
999         Small fixes to make it work outside of the `troff' directory.
1000         * src/roff/troff/symbol.cpp: Moved to...
1001         * src/libs/libgroff/symbol.cpp: Here.
1002         Small fixes to make it work outside of the `troff' directory.
1004         * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
1005         (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
1006         Updated.
1008         * src/include/color.h: Include symbol.h.
1009         (color): Add new field `nm'.
1010         * src/libs/libgroff/color.cpp (color::color): Updated.
1012         * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
1013         src/roff/troff/node.cpp, src/roff/troff/number.cpp,
1014         src/roff/troff/reg.cpp: Don't include symbol.h.
1016         * src/roff/troff/env.cpp: Don't include symbol.h.
1017         (environment::get_glyph_color_string,
1018         environment_get_fill_color_string): New member functions.
1019         (init_env_requests): Handle `.m' and `.M' registers.
1020         * src/roff/troff/input.cpp: Don't include symbol.h.
1021         (default_symbol): Moved to symbol.cpp/symbol.h.
1022         (do_glyph_color, do_fill_color, define_color): Pass symbol name
1023         to color constructor.
1024         * src/roff/troff/env.h: Updated.
1026         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1027         Document new registers.
1029 2004-01-05  Werner LEMBERG  <wl@gnu.org>
1031         * src/roff/troff/node.cpp (space_node::get_breakpoints,
1032         space_node::nbreaks): Protect against zero `next' field.
1034 2004-01-03  Jeff Conrad  <jeff_conrad@msn.com>
1036         In hpftodit, use the symbol sets offered in the TFM.
1038         * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
1039         (symbol_set, text_symbol_sets, special_symbol_sets,
1040         symbol_set_table): Removed.
1041         (get_printcode): Removed.
1042         (read_symbol_sets): Initialize `symbol_set' field with
1043         `NO_SYMBOL_SET'.
1044         Simplify code to just use the `kind' value.
1045         (output_charset): Improve output formatting.
1046         (dump_symbols): Simplified.
1048 2004-01-02  Werner LEMBERG  <wl@gnu.org>
1050         * font/devlj4/generate/text.map: Add more MSL numbers.
1052 2004-01-02  Jeff Conrad  <jeff_conrad@msn.com>
1054         * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
1055         (text_symbol_sets): Add more symbol sets.
1056         (debug_flag): New static variable (moved from `main').
1057         (get_printcode, show_symset): New functions.
1058         (main): Remove `debug_flag'.
1059         (output_charset): Use `show_symset'.
1060         (dump_symbols):  Use `show_symset'.
1061         Print symsets for all glyphs.
1062         (read_map): Actually call `unicode_to_ucode_make' but this time
1063         correctly.
1065 2004-01-01  Werner LEMBERG  <wl@gnu.org>
1067         * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
1068         Fix placement of comments.
1070 2004-01-01  Jeff Conrad  <jeff_conrad@msn.com>
1072         * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
1073         option `-d' is given.
1074         (output_charset): Improve warning messages to give more information.
1075         (dump_symbols): Make information more precise.
1076         (usage): Updated.
1077         (read_map): Don't call unicode_to_ucode_name; the glyph names must
1078         appear as-is and shouldn't be decomposed.
1080 2003-12-31  Werner LEMBERG  <wl@gnu.org>
1082         * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
1083         * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
1084         (FONTS): Add TrueType font families Arial and Times New Roman.
1085         (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
1086         * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
1087         `fl'.
1089 2003-12-31  Jeff Conrad  <jeff_conrad@msn.com>
1091         * test-groff.in (SEP): Quote value.
1092         * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
1093         `tem' to `char*' to avoid deallocation of a pointer to a constant
1094         object which some compilers don't like.
1096 2003-12-31  Werner LEMBERG  <wl@gnu.org>
1098         * font/devlj4/generate (text.map, special.map): Rewritten to work
1099         with the new hpftodit version.
1101 2003-12-30  Jeff Conrad  <jeff_conrad@msn.com>
1103         * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
1104         set and 8bit character code for all glyphs also.
1106 2003-12-30  Werner LEMBERG  <wl@gnu.org>
1108         * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
1110 2003-12-29  Werner LEMBERG  <wl@gnu.org>
1112         More fixes for MSVC compiler.
1114         * doc/Makefile.sub, contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use
1115         $(SEP).
1117         * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
1118         STDERR_FILENO) [_MSC_VER]: Define conditionally.
1119         (getpid) [_MSC_VER]: Remove.
1120         Include direct.h and process.h conditionally.
1122         * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
1123         parentheses for a_delete.
1125         * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
1127         * test-groff: Replaced with...
1128         * test-groff.in: This new template to handle path separator
1129         properly.
1131         * configure.ac: Check for direct.h and process.h.
1132         Generate test-groff script.
1133         * configure, src/include/config.hin: Regenerated.
1135 2003-12-28  Werner LEMBERG  <wl@gnu.org>
1137         Add integral extension glyph.
1138         Add new option `-x' to afmtodit to suppress use of built-in AGL.
1140         * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
1142         * font/devps/generate/textmap: Provide entry for `integralex' to
1143         override (old) PUA value of the AGL.
1144         * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
1145         * font/devps/*: Regenerated.
1147         * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
1148         * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
1150 2003-12-27  Werner LEMBERG  <wl@gnu.org>
1152         Add forgotten `coproduct' symbol (already available for DVI).
1154         * font/devhtml/R.proto, font/devps/generate/textmap,
1155         font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
1156         src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
1157         U+2210 (\[coproduct]).
1159 2003-12-26  Jeff Conrad  <jeff_conrad@msn.com>
1161         hpftodit has been extended to handle TrueType metric files and
1162         more glyphs.  See hpftodit.man for more details.
1164         * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h, 
1165         ctype.h, and unicode.h.
1166         s/msl/charcode/ everywhere since we now handle Unicode values also.
1167         (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
1168         Use it where appropriate.
1169         (MULTIPLIER): Replaced with...
1170         (multiplier): New global static variable.
1171         (scale): Updated.
1172         (tag_type): Add more TFM tags.
1173         (tag_name): New array.
1174         (ENUM_TYPE, FLOAT_TYPE): Removed.
1175         (BYTE_TYPE): New value assigned.
1176         (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
1177         (text_symbol_sets, special_symbol_sets): Extended to cover more
1178         sets.
1179         (check_type): Add return value.
1180         (check_units): Add parameters to get ppi and upem values.
1181         Handle TrueType TFM data.
1182         (output_font_name): New function.
1183         (output_charset): Add parameter to handle TFM type.
1184         Handle TrueType TFMs also.
1185         (em_fract): New macro.
1186         (dump_tags): Be much more verbose and handle more tags.
1187         (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
1188         (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
1189         functions.
1190         (read_map): Add parameter to handle TFM type.
1191         Handle both MSL and Unicode mappings.
1192         (main): Add two new command line options `-a' and `-q'.
1193         Updated to make use of new functions.
1194         (usage): Updated.
1196         * src/utils/hpftodit/hpuni.cpp: New file.
1198         * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
1199         Updated.
1201 2003-12-25  Werner LEMBERG  <wl@gnu.org>
1203         * src/include/nonposix.h (read) [_MSC_VER]: Define.
1205 2003-12-24  Werner LEMBERG  <wl@gnu.org>
1207         * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
1208         by Michail Vidiassov <master@iaas.msu.ru>.
1210 2003-12-20  Werner LEMBERG  <wl@gnu.org>
1212         * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
1213         and u0049_0307.
1214         Add missing latin-2 glyphs.
1215         * font/devutf8/R.proto: Add missing latin-2 glyphs.
1217         * tmac/troffrc: Load `composite.tmac' earlier.
1219         * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
1220         u00{53,73}_0327, and u0049_0307.
1221         * tmac/X.tmac: Add u00{47,67}_0306.
1222         * tmac/tty-char.tmac: Use composite glyph names for readability.
1224         * NEWS: Updated.
1226         * src/include/unicode.h: Remove `extern' keywords.
1228 2003-12-20  Nilgün Belma Bugüner  <nilgun@superonline.com>
1230         * tmac/latin5.tmac: New file.
1232 2003-12-19  Werner LEMBERG  <wl@gnu.org>
1234         Add some glyphs needed for Turkish.
1236         * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
1237         and u0049_0307.
1239         * tmac/composite.tmac: Add `,' as a synonym for `ac' accent. 
1240         * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
1241         u00{53,73}_0327, and u0049_0307.
1243 2003-12-18  Werner LEMBERG  <wl@gnu.org>
1245         * src/devices/grops/ps.cc (ps_output::put_float): Revert change
1246         from 2001-10-04.
1247         Remove trailing zeros.
1249 2003-12-17  Werner LEMBERG  <wl@gnu.org>
1251         Make \? transparent to end-of-sentence recognition.
1253         * src/roff/troff/input.cc (non_interpreted_node): Add
1254         `ends_sentence' member function.
1256 2003-12-16  Werner LEMBERG  <wl@gnu.org>
1258         * doc/groff.texinfo: Document `dt' request correctly.
1259         Other minor typographical improvements.
1261 2003-12-10  Michail Vidiassov  <master@iaas.msu.ru>
1263         * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
1265 2003-12-10  Richard Stallman  <rms@gnu.org>
1267         * LICENSE: Better wording.
1269 2003-12-09  Werner LEMBERG  <wl@gnu.org>
1271         * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
1272         * configure, NEWS: Updated.
1274 2003-12-08  Werner LEMBERG  <wl@gnu.org>
1276         * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
1278 2003-12-07  Bernd Warken  <bwarken@mayn.de>
1280         * LICENSE: Updated.
1282 2003-12-07  Werner LEMBERG  <wl@gnu.org>
1284         * INSTALL: Improved.
1286 2003-12-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
1288         Use path separator character of target platform for compiled-in
1289         default paths.
1291         * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
1292         * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
1293         * configure: Regenerated.
1294         * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
1296 2003-12-05  Werner LEMBERG  <wl@gnu.org>
1298         * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
1299         Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
1301 2003-12-04  Bernd Warken  <bwarken@mayn.de>
1303         * LICENSE: New file.
1305 2003-12-03  Werner LEMBERG  <wl@gnu.org>
1307         * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
1308         ligatures present in AFM files since groff currently only
1309         understands some standard ligatures and nothing else.
1311 2003-12-03  Jeff Conrad  <jeff_conrad@msn.com>
1313         * src/roff/groff/groff.cpp (main): Don't run the spooler if
1314         option -v is given.
1316         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
1317         messages.
1318         Close stdout copy.
1319         Don't use Unix wait flags.
1321 2003-12-02  Werner LEMBERG  <wl@gnu.org>
1323         * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
1324         src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
1325         src/roff/troff/uniuni.cpp: Moved to...
1326         * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
1327         src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
1328         src/libs/libgroff/uniuni.cpp: Here.
1330         * src/include/Makefile.sub.old (HDRS),
1331         src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
1332         src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
1334 2003-12-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
1336         * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
1337         `DEBUG_FILE'.
1338         Updated all users.
1340 2003-12-01  Werner LEMBERG  <wl@gnu.org>
1342         * groff.texinfo: Document special behaviour of `.vs 0'.
1343         Improve documentation of `cflags' request.
1344         * NEWS: Updated.
1346 2003-11-29  Werner LEMBERG  <wl@gnu.org>
1348         * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
1349         * font/devlj4/CORONET: Regenerated.
1351 2003-11-24  Werner LEMBERG  <wl@gnu.org>
1353         * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
1354         if processing hyphenation patterns in traditional mode.
1355         Improve error messages.
1357 2003-11-20  Werner LEMBERG  <wl@gnu.org>
1359         * src/roff/troff/node.cpp (troff_output_file::put_char_width,
1360         troff_output_file::put_char): Fix type of local variable `c'.
1362 2003-11-19  Werner LEMBERG  <wl@gnu.org>
1364         * src/roff/groff/pipeline.c (P): Removed.  Updated all function
1365         declarations.
1366         (i_to_a): Removed.  libgroff already provides this function.
1367         (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
1369 2003-11-18  Keith Marshall  <keith.d.marshall@ntlworld.com>
1371         * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
1372         HAVE_DECL_SYS_LIST.
1374 2003-11-17  Werner LEMBERG  <wl@gnu.org>
1376         * COPYING: Use correct version.
1378 2003-11-11  Werner LEMBERG  <wl@gnu.org>
1380         LynxOS 4.0.0 doesn't declare vfprintf.
1382         * configure.ac: Check for vfprintf.
1383         * configure: Regenerated.
1384         * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
1385         * src/include/config.hin: Regenerated.
1387 2003-11-10  Werner LEMBERG  <wl@gnu.org>
1389         LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
1391         * configure.ac: Check for vsnprintf.
1392         * configure: Regenerated.
1393         * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
1394         `HAVE_VSNPRINTF'.
1395         * src/include/config.hin: Regenerated.
1397 2003-11-09  Werner LEMBERG  <wl@gnu.org>
1399         * aclocal.m4: Updated syntax to autoconf 2.59.
1400         (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
1401         Don't check for gsos2.
1402         (GROFF_SRCDIR, GROFF_BUILDDIR): Removed.  autoconf 2.59 provides
1403         working abs_top_srcdir and abs_top_builddir.
1405         * configure.ac: Updated syntax to autoconf 2.59.
1406         Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
1407         Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
1408         * configure: Regenerated.
1410         * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
1411         s/@groff_top_builddir@/@abs_top_builddir@/.
1413         * src/roff/groff/pipeline.c (xstrsignal):
1414         s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
1416 2003-11-07  Werner LEMBERG  <wl@gnu.org>
1418         * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
1419         make start angle smaller than end angle to circumvent a bug in tpic
1420         handling of some versions of dvipdfm (and dvipdfmx).
1422 2003-10-30  Werner LEMBERG  <wl@gnu.org>
1424         * src/devices/grops/grops.man: Improve section on creating EPS.
1426 2003-10-29  Werner LEMBERG  <wl@gnu.org>
1428         * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
1429         -P-pletter).
1431 2003-10-28  Werner LEMBERG  <wl@gnu.org>
1433         * doc/groff.texinfo: Fix documentation of `.if'.
1435 2003-10-27  Michail Vidiassov  <master@iaas.msu.ru>
1437         * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
1438         the form `uniXXXX' also.
1440 2003-10-27  Werner LEMBERG  <wl@gnu.org>
1442         * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
1443         contrib/pic2graph/pic2graph.sh: Implement secure management of
1444         temporary files.
1445         Pass `-P-pletter' to groff to avoid data outside of the converted
1446         area -- some versions of `convert' (for example 5.3.8) don't check
1447         the bounding box of the image but always use a fixed image size
1448         (letter paper format).
1449         * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
1450         contrib/pic2graph/pic2graph.man: Updated.
1452         * src/roff/groff/groff.man: Document $TMP and $TEMP.
1454 2003-10-26  Werner LEMBERG  <wl@gnu.org>
1456         * src/preproc/pic/troff.cpp (troff_output::simple_circle,
1457         troff_output::simple_ellipse, troff_output::simple_arc,
1458         troff_output::simple_line, troff_output::simple_spline,
1459         troff_output::simple_polygon): Insert a space before arguments.
1460         (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
1461         latter doesn't produce a node, so the following `.sp -1' would do
1462         the wrong thing.
1463         Don't emit `.sp -1' after \M.  This also doesn't produce a token
1464         (and we don't have to care about compatibility mode).
1465         (troff_output::set_color, troff_output::reset_color): Don't emit
1466         `.sp -1' after \M and \m.
1468         * src/roff/troff/input.cpp (old_have_input): New global variable.
1469         (input_stack::get): Handle `old_have_input'.
1470         (process_input_stack) <token::TOKEN_NEWLINE>: Call
1471         `trapping_blank_line' depending on `old_have_input', not
1472         `have_input'.
1474 2003-10-20  Keith Marshall  <keith.d.marshall@ntlworld.com>
1476         * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
1477         (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
1478         default directory names for temporary files.
1479         [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
1481         * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
1482         [__MSDOS__] (run_pipeline): Honour environment variables.
1483         Don't use `tmpnam' but `tempnam' to work around messy
1484         implementation.
1486         * README.MinGW: New file.
1488 2003-10-16  Werner LEMBERG  <wl@gnu.org>
1490         * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
1491         `(*t)->next' without testing validity of `*t'.
1492         (usage): Make it more readable.
1494 2003-10-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
1496         Make html device run under both MS-DOS and Win32.
1498         * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
1499         MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
1500         spawn or fork+exec has to be used, and whether parent must sleep
1501         until the child process terminates.  Used in
1502         `char_buffer::run_output_filter'.
1503         (copyofstdoutfd): Removed.
1504         (char_buffer): Replace `write_file_html' and `write_file_troff'
1505         member functions with `emit_troff_output' and `run_output_filter'.
1506         (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
1507         macros.
1508         (replaceFd): Replaced with...
1509         (set_redirection): New auxiliary function.
1510         (waitForChild): Replaced with...
1511         (save_and_redirect): New auxiliary function for.
1513         (char_buffer::do_html, char_buffer::do_image): Simplified, using new
1514         functions.
1516 2003-10-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
1518         * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
1519         (GROFF_LIBC): New function.
1520         * configure.ac: Call GROFF_LIBC.
1521         Check for `kill'.
1522         * configure: Regenerated.
1524         * src/include/lib.h: Handle __MINGW32__.
1525         * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
1526         Add macro for `pipe'.
1527         Define P_tmpdir.
1529         * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
1530         correctly.
1532         * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
1533         Implement.
1535 2003-10-13  Werner LEMBERG  <wl@gnu.org>
1537         Finally fix change 2003-08-26, based on ideas from Chuck Silvers
1538         <chuq@chuq.com>.
1540         * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
1541         directory.
1543 2003-10-12  Werner LEMBERG  <wl@gnu.org>
1545         * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
1546         src/roff/troff/input.cc (usage): Updated.
1548         * NEWS, doc/groff.texinfo: Updated.
1550 2003-10-12  Peter Miller  <millerp@canb.auug.org.au>
1552         * src/libs/libgroff/searchpath.cpp
1553         (search_path::open_file_cautious): New function which also handles
1554         `-' as stdin and stdout depending on the access mode.
1555         * src/include/searchpath.h (search_path): Updated.
1557         * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
1558         * src/devices/grops/ps.h: Include `searchpath.h'.
1559         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
1560         Open resource file with `include_search_path.open_file_cautious'.
1561         * src/devices/grops/grops.man: Document new `-I' switch.
1563         * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
1564         (main), src/devices/grolj4/lj4.cpp (main),
1565         src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
1567         * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
1568         Replaced with...
1569         (include_search_path): New global variable.
1570         (include_path_append): Removed.
1571         (main): Use `include_search_path.command_line_dir' to handle `-I'.
1572         (do_file): Simplify, using new
1573         `include_search_path.open_file_cautious'.
1575         * src/roff/groff/groff.cpp (print_commands): Accept file handle as
1576         parameter.
1577         (main): Pass arguments to `-I' to both troff and devices.
1578         Improve handling of `-V'.
1579         * src/roff/groff/groff.man: Document changes to -I and -V.
1581         * src/roff/troff/input.cpp (include_search_path): New global
1582         variable.
1583         (next_file, source, ps_bbox_request, transparent_file,
1584         process_input_file): Use new
1585         `include_search_path.open_file_cautious'.
1586         (main) Handle `-I' switch.
1587         * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
1588         Use new `include_search_path.open_file_cautious'.
1589         * src/roff/troff/node.h: New extern symbol `include_search_path'.
1590         * src/roff/troff/troff.man: Document new `-I' switch.
1592 2003-09-15  Ruslan Ermilov  <ru@FreeBSD.org>
1594         Support multiple calls of .Lb in LIBRARY section.
1596         * tmac/doc-common (doc-in-library-section): New register.
1597         (doc-section-library): New string.
1598         (Sh): Set `doc-in-library-section'.
1599         (Rd): Updated.
1600         * tmac/doc-syms (Lb): Insert breaks before and after arguments
1601         if in LIBRARY section.
1602         * tmac/doc.tmac (doc-save-global-vars): Updated.
1603         * NEWS, tmac/groff_mdoc.man: Updated.
1605 2003-09-14  Ruslan Ermilov  <ru@FreeBSD.org>
1607         * tmac/doc-common (doc-default-operating-system): New variable.
1608         (Os): Use it.
1610 2003-09-08  Werner LEMBERG  <wl@gnu.org>
1612         * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
1614 2003-08-31  Werner LEMBERG  <wl@gnu.org>
1616         * contrib/mom/Makefile.sub: Fix last change to make it really work.
1617         * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
1618         (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
1619         $(DEVFILES) are not empty.
1620         * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
1622 2003-08-26  Chuck Silvers  <chuq@chuq.com>
1624         * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
1625         with parallel runs of `make'.
1627 2003-08-23  Stephen Gildea  <http://www.gildea.com/stephen>
1629         * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
1630         insert SORT_SEP.  With certain combinations of sort specifications,
1631         refer sorted entries in the wrong order.  In particular, entries
1632         with a missing field should be be sorted before all entries that
1633         have that field, before refer looks to the next field.
1635 2003-08-23  Werner LEMBERG  <wl@gnu.org>
1637         * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
1638         g++ linker is used.  Reported by Mark J. Reed
1639         <mark.reed@turner.com>.
1641 2003-08-16  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
1643         Add key character `x' to tbl which makes tbl call a user-defined
1644         macro on a table cell.
1646         * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
1647         * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
1648         `set_modifier' after printing the compatibility request.
1649         (set_modifier): Print call to `m->macro' if not empty.
1650         * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
1651         `macro'.
1652         (process_format): Implement cases `x' and `X'.
1653         * src/preproc/tbl/tbl.man, NEWS: Updated.
1655 2003-08-15  Werner LEMBERG  <wl@gnu.org>
1657         * doc/groff.texinfo: Minor fixes.
1659 2003-08-09  Werner LEMBERG  <wl@gnu.org>
1661         * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
1663 2003-08-07  Werner LEMBERG  <wl@gnu.org>
1665         * doc/Makefile.sub: Not all shells expand wildcards in the `for'
1666         argument list to nothing if there is no file to match.  Use `ls' as
1667         a protection, similar to autoconf.
1669         * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
1670         empty argument lists.
1672         * doc/groff.texinfo: Improve documentation how vertical spacing
1673         and line breaks interact.
1674         Other minor fixes.
1676         * tmac/www.tmac: Initialize `www-htmlimage-gap'.
1678 2003-08-03  Werner LEMBERG  <wl@gnu.org>
1680         * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
1681         EPS (using eps2eps or similar programs to compute the bounding box).
1683 2003-07-24  Werner LEMBERG  <wl@gnu.org>
1685         * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
1686         * doc/texinfo.tex: Updated from texinfo 4.6.
1687         * README.CVS: From now on we need texinfo 4.6.
1689 2003-07-23  Werner LEMBERG  <wl@gnu.org>
1691         Add requests `dei1' and `ami1' for completeness.
1693         * src/roff/troff/input.cc (calling_mode): Remove
1694         CALLING_DISABLE_COMP.
1695         (comp_mode): New enumeration.
1696         (do_define_string, define_string, define_nocomp_string,
1697         append_string, append_nocomp_string): Updated.
1698         (do_define_macro): Add third parameter.
1699         (define_macro, define_nocomp_macro, define_indirect_macro,
1700         append_macro, append_nocomp_macro, append_indirect_macro): Updated.
1701         (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
1702         functions.
1703         (ignore): Updated.
1704         (init_input_requests): Add `dei1' and `ami1'.
1706         * tmac/trace.tmac: Handle de1 and am1.
1707         (de): Improve tracing message.
1708         (am): Add missing `do'.
1709         (return): Use de1.
1711         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1712         Document new requests.
1714 2003-07-22  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
1716         Add option -G to .MPIMG to insert a gap between text and the image.
1718         * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
1719         www-finish-left-ll): Updated.
1720         (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
1721         (MPIMG): Make option -L and -R optional.
1722         Implement option -G.
1724 2003-07-22  Gaius Mulley  <gaius@glam.ac.uk>
1726         * src/devices/grohtml/post-html.cpp
1727         (html_printer::do_file_components): Don't use `stdout' as lvalue
1728         since it can be a macro.
1730 2003-07-22  Werner LEMBERG  <wl@gnu.org>
1732         * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
1733         the corresponding test in aclocal.m4.
1735 2003-07-21  Werner LEMBERG  <wl@gnu.org>
1737         * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
1738         names but RGB values directly.  Otherwise pnmtopng depends on
1739         an external file `rgb.txt' which maps colour names to values.
1741 2003-07-20  Werner LEMBERG  <wl@gnu.org>
1743         * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
1744         * configure, src/include/config.hin: Regenerated.
1746         * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
1748 2003-07-19  Werner LEMBERG  <wl@gnu.org>
1750         * PROBLEMS: Add solution for UTF-8 problem with hyphens.
1752 2003-07-18  Werner LEMBERG  <wl@gnu.org>
1754         * *.man: Switch to non-compatibility mode temporarily if GNU
1755         syntax extensions are used in the particular man page.
1757         * PROBLEMS: Add solutions for SGR problems.
1759 2003-07-17  Werner LEMBERG  <wl@gnu.org>
1761         Don't ignore grotty's command line options if \X'tty: sgr ...' is
1762         used to change the drawing scheme.
1764         * src/devives/grotty/tty.cpp (bold_flag_option,
1765         underline_flag_option, italic_flag_option, reverse_flag_option,
1766         bold_underline_mode_option): New global variables.
1767         (update_options): New function.
1768         (tty_printer::special): Call update_options.
1769         (main): Don't set xxx_flag but xxx_flag_option, then call
1770         update_options.
1772 2003-07-14  Werner LEMBERG  <wl@gnu.org>
1774         Make grotty emit proper Unicode box drawing characters for -Tutf8.
1776         * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
1777         values.
1778         (hline_char, vline_char): New global variables.
1779         (tty_printer::tty_printer): Initialize them.
1780         (tty_printer::draw): Emit START_LINE and END_LINE flags for both
1781         horizontal and vertical lines.
1782         (crossings): New global array.
1783         (tty_printer::end_page): Use it to determine the proper crossing
1784         character for -Tutf8.
1786 2003-07-12  Werner LEMBERG  <wl@gnu.org>
1788         * doc/Makefilesub (HTMLDOCFILESALL): New macro.
1789         (HTMLDOCFILES): Revert to `pic.html'.
1790         (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
1792 2003-07-11  Werner LEMBERG  <wl@gnu.org>
1794         * doc/pic.ms: Improve documentation of absolute coordinates.
1795         Document absolute positioning of pictures.
1797         * NEWS: Add new pic capability.
1799 2003-07-09  Hartmut Henkel  <hartmut_henkel@gmx.de>
1801         * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
1802         Rewritten.
1804 2003-07-07  Werner LEMBERG  <wl@gnu.org>
1806         Implement support for dashed and dotted ellipses in pic.  Based on
1807         a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
1809         * src/preproc/pic/common.cpp (common_output::ellipse_arc,
1810         common_output::dashed_ellipse, common_output::dotted_ellipse): New
1811         functions.  Ellipse arcs are approximated with circle arcs.
1812         * src/preproc/pic/common.h (common_output): Updated.
1813         * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
1814         functions.
1815         * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
1817         * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
1819 2003-07-06  Werner LEMBERG  <wl@gnu.org>
1821         Make grotty work on platforms which have unsigned char as the
1822         default for char.  Based on a patch by Thomas Klausner
1823         <wiz@netbsd.org>.
1825         * src/devices/grotty/tty.cpp (schar): New typedef.
1826         Updated calls to declare_ptable and implement_ptable.
1827         (glyph): Use schar for back_color_idx and fore_color_idx.
1828         (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
1829         (tty_printer::tty_color, tty_printer::tty_printer,
1830         tty_printer::color_to_idx, tty_printer::put_color): Updated.
1832 2003-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
1834         * src/roff/nroff/nroff.sh: Add option -d for completeness.
1835         * src/roff/nroff/nroff.man: Updated.
1837 2003-07-05  Werner LEMBERG  <wl@gnu.org>
1839         * NEWS, tmac/groff_www.man: Updated.
1840         * doc/Makefile.sub: Updated.
1842 2003-07-05  Gaius Mulley  <gaius@glam.ac.uk>
1844         Implement support for multiple HTML output files.
1846         * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
1847         -j command line option.
1849         * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
1850         global variables.
1851         (file): New fields `new_output_file', `require_links',
1852         `output_file_name'.
1853         (file::file): Updated.
1854         (files::set_file_name, files::set_links_required,
1855         files::are_links_required, files::is_new_output_file,
1856         files::file_name, files::next_file_name): New functions.
1857         (header_desc): New fields `no_of_level_one_headings',
1858         `header_filename'.
1859         (header_desc::header_desc): Updated.
1860         (header_desc::write_headings): Handle multiple files.
1861         (html_printer::write_header): Save file name in which header occurs.
1862         (html_printer::determine_header_level): Possibly split files on
1863         level one headings.
1864         (html_printer::do_links, html_printer::troff_tag): Updated.
1865         (html_printer::insert_split_file, html_printer::do_job_name,
1866         html_printer::emit_link, html_printer::write_navigation,
1867         html_printer::do_file_components): New functions.
1868         (html_printer::~html_printer): Handle multiple files.
1869         (main): Handle command line option `-j'.
1871         * src/devices/grohtml/grohtml.man: Updated.
1873         * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
1874         which splits file.
1876         * tmac/www.tmac (JOBNAME): New macro.
1877         * tmac/s.tmac (SH-NO-TAG): New macro.
1878         (@SH): Call SH-NO-TAG.
1879         (@NH): Updated.
1881 2003-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
1883         * tmac/groff_mdoc.man: Improve documentation of punctuation
1884         characters.
1886 2003-07-04  Ruslan Ermilov  <ru@FreeBSD.org>
1888         * tmac/doc.tmac (Bd): Change to doc-Li-font later.
1890 2003-07-03  Werner LEMBERG  <wl@gnu.org>
1892         * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
1894 2003-07-01  Ruslan Ermilov  <ru@FreeBSD.org>
1896         * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
1897         after `/*' and `*/'.
1898         Fix spacing.
1899         (Fn, Fo): Reduce indentation in synopsis.
1901         * tmac/doc-common (doc-check-depth): New macro.
1902         (doc-end-macro, Sh, Ss): Use it.
1903         (Cd): Fix behaviour in synopsis.
1904         (In): Make it parsed and callable.
1905         If not in the synopsis, represent the C header file enclosed in
1906         angle brackets.
1907         (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
1908         Use minus, not hyphen.
1910         * tmc/groff_mdoc.man: Updated.
1912 2003-07-01  Werner LEMBERG  <wl@gnu.org>
1914         Integrated grap2graph, contributed by Eric S. Raymond.
1916         * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
1917         New files.
1918         * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
1919         contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
1921 2003-07-01  Colin Watson  <cjwatson@debian.org>
1923         * src/xditview/*.c: Add prototypes, fix return types, add includes.
1924         Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
1926 2003-06-31  Ruslan Ermilov  <ru@FreeBSD.org>
1928         * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
1930 2003-06-31  Werner LEMBERG  <wl@gnu.org>
1932         * doc/Makefile.sub (CLEANADD): Remove all files created by
1933         running `make groff.{pdf,dvi}'.
1935         * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
1936         src/xditview also.
1938 2003-06-30  Werner LEMBERG  <wl@gnu.org>
1940         * Makefile.in (SHELL): Define as @SHELL@.
1941         (mkinstalldirs): Use $(SHELL).
1942         (MDEFINES): Add $(SHELL).
1943         * Makefile.comm (SHELL): Removed.
1945 2003-06-29  Werner LEMBERG  <wl@gnu.org>
1947         * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
1948         The X11 documentation files use them.
1949         * tmac/groff_ms.man, doc/groff.texinfo: Document them.
1951 2003-06-15  Robert Goulding  <goulding@Princeton.EDU>
1953         * tmac/e.tmac (@C): Handle .ad also.
1955 2003-06-12  Werner LEMBERG  <wl@gnu.org>
1957         * src/preproc/tbl/tbl.man: Document formatting of text blocks.
1959         * src/roff/troff/input.cc (token::next) <handle_escape_char>:
1960         Assign `n' even here.  It is possible to construct a node
1961         immediately following an escape character:
1963           .di xx
1964           \?\\\?a
1965           .br
1966           .di
1967           .xx
1969 2003-06-10  Werner LEMBERG  <wl@gnu.org>
1971         * README.WIN32: Removed.
1972         * MANIFEST: Updated.
1974 2003-06-07  Werner LEMBERG  <wl@gnu.org>
1976         * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
1978 2003-06-05  Werner LEMBERG  <wl@gnu.org>
1980         * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
1981         in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
1983 2003-06-03  Werner LEMBERG  <wl@gnu.org>
1985         * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
1986         is done by the calling function.
1988 2003-05-22  Ruslan Ermilov  <ru@FreeBSD.org>
1990         * tmac/X.tmac: Fix definition of `em'.
1992 2003-05-22  Werner LEMBERG  <wl@gnu.org>
1994         * src/roff/troff/input.cc (return_macro_request): Fix detection of
1995         argument.
1997 2003-05-18  Werner LEMBERG  <wl@gnu.org>
1999         * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
2000         to make items work which consist only of a tag.
2002 2003-05-17  Werner LEMBERG  <wl@gnu.org>
2004         * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
2005         aren't stretched in a tag (this can fail with unformatted boxes).
2006         Instead, insert a break and go back one line.
2008 2003-05-16  Werner LEMBERG  <wl@gnu.org>
2010         * src/roff/troff/input.cc (return_macro_request): If called with
2011         argument pop macro twice.  We need this to trace `return'.
2013         * tmac/trace.tmac: Handle `return'.
2014         Fix typos.
2016         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2017         Document.
2019 2003-05-15  Larry Kollar  <kollar@alltel.net>
2021         * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
2022         registers `FPS', `FVS', and `FPD'.
2024 2003-05-15  Werner LEMBERG  <wl@gnu.org>
2026         * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
2027         correctly.
2029 2003-05-03  Ruslan Ermilov  <ru@FreeBSD.org>
2031         * tmac/groff_mdoc.man: Slight improvements.
2033 2003-05-03  Werner LEMBERG  <wl@gnu.org>
2035         * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
2036         `doc-header-space' after header line if register `cR' is set.
2038 2003-05-02  Werner LEMBERG  <wl@gnu.org>
2040         * TODO: Updated.
2042 2003-05-01  Ruslan Ermilov  <ru@FreeBSD.org>
2044         * tmac/doc-common (Nd): Use \[em].
2046 2003-05-01  Werner LEMBERG  <wl@gnu.org>
2048         * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
2049         doc-footer-space): Initialize to 0.5i.
2050         (doc-setup-page-layout): Don't set doc-header-space and
2051         doc-footer-space.
2053 2003-04-30  Werner LEMBERG  <wl@gnu.org>
2055         * REVISION: Set to 1.
2057         * doc/pic.ms: Document possible problems with `figname'.
2059 2003-04-29  Werner LEMBERG  <wl@gnu.org>
2061 Version 1.19 released
2062 =====================
2064         * VERSION: Set to 1.19.
2065         * REVISION: Set to 0.
2066         * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
2068         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
2069         Define charset as `US-ASCII' in html output.
2071         * tmac/www.tmac (ULE): Add missing scaling indicator.
2073         * win32-diffs: Removed.
2075 2003-04-28  Werner LEMBERG  <wl@gnu.org>
2077         * doc/groff.texinfo: Document `dn' and `dl' registers if used with
2078         `.da' and `.boxa'.
2079         Document how to insert discardable whitespace with `.ss'.
2081 2003-04-27  Werner LEMBERG  <wl@gnu.org>
2083         * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
2084         work with plain TeX also.
2086         * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
2088 2003-04-25  Gaius Mulley  <gaius@glam.ac.uk>
2090         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
2091         Use a loose DTD.
2093 2003-04-24  Werner LEMBERG  <wl@gnu.org>
2095         * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
2096         vbox with positive height and zero depth if in TeX mode.
2098         * NEWS: Document glyph name changes for grodvi and grolj4.
2100 2003-04-23  Werner LEMBERG  <wl@gnu.org>
2102         * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
2103         * doc/pic.ms: Fixed.
2105 2003-04-21  Werner LEMBERG  <wl@gnu.org>
2107         HP-UX 10.20 has `snprintf' but it isn't declared.
2109         * configure.ac: Add declaration test for snprintf.
2110         * configure: Regenerated.
2111         * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
2112         * src/include/config.hin: Regenerated.
2114 2003-04-19  Werner LEMBERG  <wl@gnu.org>
2116         Add keyword `figname' to pic, specifying the name of the picture
2117         box in TeX mode.  Based on a patch from William J Poser
2118         <wjposer@unagi.cis.upenn.edu>.
2120         * src/preproc/pic/pic.y: New token `FIGNAME'.
2121         (macro_name): New rule of type <str>.
2122         (placeless_element): Handle `FIGNAME'.
2123         * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
2124         * src/preproc/pic/main.cpp (graphname): New global variable.
2125         (do_picture): Initialize `graphname'.
2126         * src/preproc/pic/pic.h: Updated.
2127         * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
2128         `graphname'.
2129         Simplify TeX code.
2130         (tex_output::text): Beautify output.
2131         * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
2132         `shaded' and `outlined' unconditionally.
2133         * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
2134         Minor improvements.
2136         * PROBLEMS, README.CVS: Mention that bison version 1.875b or
2137         greater is necessary.
2139 2003-04-17  Hartmut Henkel  <hartmut_henkel@gmx.de>
2141         Add option -r to soelim to avoid emission of `.lf' lines.
2142         Add option -t to produces TeX comment lines instead of `.lf' lines.
2144         * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
2145         and `tex_flag'.
2146         (usage): Updated.
2147         (main): Handle `-r' and `-t'.
2148         (set_location): Handle `raw_flag' and `tex_flag'.
2149         * src/preproc/soelim/soelim.man, NEWS: Updated.
2151 2003-04-17  Werner LEMBERG  <wl@gnu.org>
2153         * tmac/hyphenex.sh: Replaced with...
2154         * tmac/hyphenex.pl: This perl script to avoid sed compatibility
2155         nightmares.
2157         * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
2158         if --quiet is used for the configure script.
2159         * configure: Regenerated.
2161 2003-04-16  Werner LEMBERG  <wl@gnu.org>
2163         * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
2164         Add `const' to second argument.
2165         (html_printer::add_table_end): Add `const' to argument.
2166         * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
2167         `const' to arguments.
2168         * src/devices/grohtml/html-text.h: Updated.
2170         * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
2171         * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
2172         argument.
2174         * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
2175         cast for integer constant.
2177         * src/preproc/html/pre-html.cpp (image_device): Use `const'.
2178         (writeNbytes): Add `const' to first argument.
2179         (writeString): Add `const' to argument.
2180         (char_buffer::can_see): Add `const' to third argument.
2181         * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
2182         `const' to argument.
2183         * src/preproc/html/pushback.h: Updated.
2185         * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
2186         (include_path_append): Add `const' to argument.
2187         (do_file): Updated.
2189         * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
2190         for `value'.
2191         (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
2192         * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
2193         for `value'.
2194         (unicode_decompose_init::unicode_decompose_init): Updated.
2195         * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
2196         for `value'.
2197         (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
2198         * src/roff/troff/input.cc (process_startup_file): Add `const' to
2199         argument.
2201         * tmac/hyphenex.sh: Make script more portable by using a here
2202         document.
2204 2003-04-15  Werner LEMBERG  <wl@gnu.org>
2206         Renamed all `*.cc' files to `*.cpp'.
2207         Updated all configuration files, makefiles, and documentation.
2209 2003-04-14  Werner LEMBERG  <wl@gnu.org>
2211         * tmac/hyphenex.sh: Slight improvements.
2213 2003-04-13  Werner LEMBERG  <wl@gnu.org>
2215         * font/devascii/R.proto, font/devcp1037/R.proto,
2216         font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
2217         character slots with unnamed glyphs.
2219         * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
2220         (an-first): New global variable.
2221         (an-header): Emit vertical space between multiple man pages.
2223 2003-04-11  Werner LEMBERG  <wl@gnu.org>
2225         * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
2226         values.
2228 2003-04-10  Werner LEMBERG  <wl@gnu.org>
2230         * PROBLEMS: Revised.
2232 2003-04-10  Bernd Warken  <bwarken@mayn.de>
2234         * doc/webpage.ms: Improved.
2236 2003-04-09  Werner LEMBERG  <wl@gnu.org>
2238         Add register \n[.height] which returns the value of \H.
2239         Add register \n[.slant] which returns the value of \S.
2241         * src/roff/troff/env.cc (init_env_requests): Implement.
2242         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2243         Document.
2245 2003-04-08  Werner LEMBERG  <wl@gnu.org>
2247         * tmac/html.tmac: Move some of the data into html-end.tmac.
2248         Remove most of the character translations for eqn since html fonts
2249         now cover those characters.
2250         Load www.tmac.
2251         * tmac/html-end.tmac: New file.
2252         * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
2253         * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
2254         * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
2256 2003-04-07  Werner LEMBERG  <wl@gnu.org>
2258         * man/groff_out.man: Document negative values of `N' if -Thtml is
2259         used.
2261 2003-04-06  Werner LEMBERG  <wl@gnu.org>
2263         * Makefile.comm (depend.temp): Check location of YTABC.
2265 2003-04-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2267         * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
2268         binary path.
2269         (groff_bin_path): Rename to GROFF_BIN_PATH.
2270         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2271         * doc/Makefile.in (TROFFBIN): New variable for troff
2272         binary path.
2273         (GROFFBIN): New variable for groff binary path.
2274         (groff_bin_path): Rename to GROFF_BIN_PATH.
2275         (TROFF): Use TROFFBIN.
2276         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2277         * doc/Makefile.sub (GROFFBIN): New variable for groff
2278         binary path.
2279         (groff_bin_path): Rename to GROFF_BIN_PATH.
2280         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2282         * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
2283         with INSTALL_SCRIPT.
2284         (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
2285         * Makefile.dev (all): Depend on DEVSCRIPTS.
2286         (install_dev): Likewise.
2287         * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
2288         scripts.
2289         * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
2290         (DEVGENSCRIPTS): New variable to hold generated scripts.
2292 2003-04-05  Werner LEMBERG  <wl@gnu.org>
2294         * src/libs/libdriver/input.cc (IntArray::operator[],
2295         IntArray::get_data): Remove meaningless `const' in return value.
2297         * README.CVS: New file.
2299 2003-04-04  Werner LEMBERG  <wl@gnu.org>
2301         Check for stdint.h in C++, not in C.
2303         * aclocal.m4 (GROFF_STDINT_H): New function,
2304         * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
2305         AC_CHECK_HEADERS.
2306         * configure, src/include/config.hin: Regenerated.
2307         * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
2310         Fix handling of &nbsp; in grohtml.  To do this, troff emits `N'
2311         with a negative value, representing the width of the unbreakable
2312         space (only for -Thtml).  grohtml then converts this back to
2313         &nbsp; and uses the value of N as its width.
2315         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
2316         unbreakable_space_node::tprint): Emit `N-<width>'.
2317         * src/include/printer.h (printer::set_numbered_char): Make it
2318         virtual.
2319         Make members `font_table' and `nfonts' protected instead of private.
2320         * src/devices/grohtml/post-html.cc
2321         (html_printer::set_numbered_char): New member function.
2324         * src/libs/libgroff/maxfilename.cc:
2325         s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
2327         * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
2328         emit word marker.
2330 2003-04-03  Sergey A. Osokin  <osa@freebsd.org.ru>
2332         * man/roff.man: Small fixes.
2334 2003-04-03  Werner LEMBERG  <wl@gnu.org>
2336         Make groff independent from locale's numeric settings.
2338         * configure.ac: Check for `setlocale'.
2339         * configure, src/include/config.hin: Regenerated.
2341         * src/include/lib.h: Handle HAVE_SETLOCALE.
2343         * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
2344         (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
2345         (main), src/preproc/pic/main.cc (main): Call `setlocale'.
2348         * doc/groff.texinfo: Change dir category to `Typesetting'.
2349         (Man font macros): Mention that there is no space between arguments
2350         of .BI and friends.
2352         * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
2353         (*printer::change_color, *printer::change_fill_color): Add missing
2354         `const'.
2356 2003-04-02  Werner LEMBERG  <wl@gnu.org>
2358         * src/devices/grohtml/html-table.cc (html_table::emit_col,
2359         html_table::is_gap): Compute table widths after converting border
2360         positions to avoid rounding errors.
2362 2003-04-01  Werner LEMBERG  <wl@gnu.org>
2364         * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
2365         `space_emitted' properly.
2367 2003-03-31  Werner LEMBERG  <wl@gnu.org>
2369         * src/devices/grohtml/html-table.cc: Fix column width calculation.
2370         (html_table::set_linelength): Don't add 1.
2371         (html_table::add_indent): Don't subtract 1.
2373         * tmac/html.tmac: Set default page offset to zero.
2375 2003-03-30  Werner LEMBERG  <wl@gnu.org>
2377         Make groff emit `&nbsp;' for `\ ' and `\~' if `-Thtml' is used.
2379         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
2380         unbreakable_space_node::tprint): New functions.
2381         (troff_output_file): Make space_char_hmotion_mode::tprint and
2382         unbreakable_space_node::tprint to friends.
2383         * src/roff/troff/node.h: Updated.
2385         * font/devhtml/R.proto: Add `&nbsp' at position 0xA0 (as defined
2386         in the HTML standard).
2388 2003-03-29  Werner LEMBERG  <wl@gnu.org>
2390         * src/roff/troff/env.cc (point_size): Fix emission of html tag.
2391         Otherwise, the following code
2393           .di xxx
2394           .ps 10
2395           a
2396           .br
2397           .di
2398           x\*[xxx]
2400         produces `x a' instead of `xa'.  This is a temporary fix, disabling
2401         font changes in diversions for -Thtml.
2403         * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
2404         `HTML-TAG'.
2405         (an-do-tag-html): Merge with ...
2406         (an-do-tag): This macro.
2407         Change code slightly to circumvent grohtml bug.
2408         * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
2410         * src/devices/grohtml/html-table.cc (html_table::emit_col,
2411         html_table::is_gap): Round `width' properly.
2413         * tmac/html.tmac: Provide some default layout parameters for
2414         grohtml.
2416         * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
2417         command.
2419 2003-03-28  Werner LEMBERG  <wl@gnu.org>
2421         src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
2423 2003-03-27  Werner LEMBERG  <wl@gnu.org>
2425         * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
2426         defined.
2428 2003-03-20  Werner LEMBERG  <wl@gnu.org>
2430         * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
2431         `.vs'.
2432         * doc/groff.texinfo: Updated.
2434 2003-03-19  Werner LEMBERG  <wl@gnu.org>
2436         * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
2437         TOKEN_END_TRAP>: Reset `have_input'.
2439 2003-03-18  Werner LEMBERG  <wl@gnu.org>
2441         * src/roff/groff/groff.man: Mention groff_trace man page.
2443 2003-03-16  Werner LEMBERG  <wl@gnu.org>
2445         * Makefile.in (LIBEXT): New variable to indicate the file extension
2446         of library files.  Computed heuristically from $(OBJEXT).
2447         (MDEFINES): Add $(LIBEXT).
2448         * Makefile.lib, Makefile.comm: Use it.
2450         * src/utils/pfbtops/pfbtops.c (get_text): New function.  Split
2451         overlong lines into smaller chunks.
2452         (get_binary): New function.
2453         (main): Use them.
2454         * src/utils/pfbtops/pfbtops.man: Updated.
2456 2003-03-15  Colin Watson  <cjwatson@debian.org>
2458         * src/roff/groff/groff.man: Minor syntax fix.
2460 2003-03-14  Egil Kvaleberg  <egil@kvaleberg.no>
2462         * src/devices/grops/ps.cc (ps_printer::media_set,
2463         ps_printer::~ps_printer): Handle zero paper width and length.
2465 2003-03-13  Werner LEMBERG  <wl@gnu.org>
2467         Add options -p and -l to grodvi.
2469         * src/devices/grodvi/dvi.cc: Include paper.h.
2470         (landscape_flag, user_paper_length, user_paper_width): New global
2471         variables.
2472         (dvi_printer::begin_page): Emit `papersize' special.
2473         Set color after initialization of `cur_h' and `cur_v'.
2474         (main): Add options `-l' and `-p'.
2475         * font/devdvi/Makefile.sub (DESC): Set `papersize'.
2476         * src/devices/grodvi/grodvi.man, NEWS: Updated.
2478         * src/devices/grops/psrm.cc (valid_input_table): Fixed.
2480 2003-03-12  Werner LEMBERG  <wl@gnu.org>
2482         * src/devices/grops/grops.man: Move documentation of .PSPIC to...
2483         * man/groff_tmac.man: This man page.
2484         * man/groff_font.man: Declare `paperwidth' and `paperlength' as
2485         deprecated.
2487         * tmac/X.tmac: Don't load pspic.tmac.
2489 2003-03-11  Werner LEMBERG  <wl@gnu.org>
2491         Make variable `pr' local to libdriver/input.cc.  Based on a patch
2492         by Bernd Warken <bwarken@mayn.de>.
2494         * src/include/driver.h (pr): Removed.
2496         * src/libs/libdriver/input.cc (pr): New global variable.
2497         (do_file): Deallocate `pr'.
2498         * src/libs/libdriver/printer.cc (pr): Removed.
2500         * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
2501         (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
2502         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
2503         (main): Don't delete `pr'.
2505 2003-03-10  Werner LEMBERG  <wl@gnu.org>
2507         * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
2508         * tmac/papersize.tmac: New file.
2509         * tmac/troffrc: Include `papersize.tmac'.
2510         * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
2511         * tmac/an-old.tmac: Set LT to LL by default.
2513         * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
2514         doc/groff.texinfo: Updated.
2516         * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
2517         bug which caused all odd iso papers to have wrong dimensions.
2519         * src/devices/grops/ps.cc (user_paper_width): New global variable.
2520         (main) <'p'>: Set `user_paper_width' also.
2521         (ps_printer::media_width, ps_printer::media_height): Use values
2522         given with option `-p'.
2524 2003-03-09  Werner LEMBERG  <wl@gnu.org>
2526         * src/include/nonposix.h: Provide default for SET_BINARY.
2528         * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
2529         src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
2530         unconditionally.
2532         * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
2533         (main): Treat \r\n as \n.
2535 2003-03-08  Werner LEMBERG  <wl@gnu.org>
2537         * tmac/an-old.tmac: Use register `HY' to control hyphenation.
2538         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
2540 2003-03-07  Werner LEMBERG  <wl@gnu.org>
2542         Added support to access more than 256 glyphs in Type 1 fonts.
2544         * src/devices/grops/ps.cc (subencoding): New structure.
2545         (style): Add `sub' field.
2546         Updated all users.
2547         (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
2548         Add `set_subencoding', `get_subfont' and `encode_subfont' member
2549         functions.
2550         Updated all users.
2551         (ps_printer::set_char): Use `set_subencoding'.
2552         (make_subencoding_name): New function.
2553         (ps_printer::set_style): Handle case where `sty.sub' is not zero.
2554         (ps_printer::~ps_printer): Emit subencoding definitions.
2556         * src/devices/grops/psrm.cc (valid_input_table): New array to
2557         properly support EBCDIC.
2558         (white_space): Add `\f'.
2559         (ps_get_line): Change first argument to be of type `string &'.
2560         Updated all callers.
2561         This allows to get lines of arbitrary length.
2562         Use `valid_input_table'.
2563         Remove warning about non-conforming PS line length.  This seems
2564         not to be of great importance -- for example, dvips don't emit
2565         a warning either.
2566         (PS_LINE_MAX): Removed.
2567         (matches_comment): Change first argument to be of type `string &'.
2569         * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
2571         * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
2572         %AGL_to_unicode, %default_ligatures): New hash tables.
2573         Read all map entries.
2574         Add unencoded characters.
2575         Check for default ligatures if there are no `L' entries.
2576         Print all kern entries.
2577         Print all characters in charset.
2578         * src/utils/afmtodit/afmtodit.man: Updated.
2580         * font/devps/*: Regerated all fonts.
2582         * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
2583         of characters, just use `.trin'.  Otherwise the mapping depends
2584         on the font encoding.
2585         * tmac/ps.tmac: Add `fi' and `fl'.
2586         Improve `Fi' and `Fl'.
2587         * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
2588         * tmac/Xps.tmac: Fix `em'.
2590         * NEWS: Updated.
2592 2003-03-04  Werner LEMBERG  <wl@gnu.org>
2594         * src/roff/troff/input.cc (charinfo_to_node_list): Reset
2595         `have_input'.
2597 2003-03-03  Werner LEMBERG  <wl@gnu.org>
2599         * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
2601         * font/devps/generate/textmap: Remove entry `similarequal'.
2602         * font/devps/symbolmap: Updated.
2604 2003-03-02  Werner LEMBERG  <wl@gnu.org>
2606         * src/libs/libgroff/font.cc (font::load): Fix error message for
2607         bad character type.
2609         * src/devices/grops/grops.man: Improve documentation of the -b
2610         flag.
2612         * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
2613         `ascii' and `cp1047'.
2615 2003-03-01  Werner LEMBERG  <wl@gnu.org>
2617         Document composite glyphs and the `composite' request.
2619         * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
2621 2003-02-28  Werner LEMBERG  <wl@gnu.org>
2623         * font/devdvi/generate/ec.map: Add some more Unicode entities.
2624         * font/devdvi/*EC: Updated.
2626         * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
2627         * tmac/latin1 (latin1-tr): Undo any previous mapping.
2628         * tmac/troffrc: Load `composite.tmac'.
2629         * tmac/Makefile.sub (NORMALFILES): Updated.
2631         * doc/groff.texinfo (Input Encodings): New section.
2632         * NEWS: Updated.
2634 2003-02-27  Werner LEMBERG  <wl@gnu.org>
2636         * doc/texinfo.tex: New version 2003-02-11.06.
2638         * tmac/doc-common (Dt): Don't emit warning for unknown section.
2639         * tmac/groff_mdoc.man: Fix description of `Dt'.
2641 2003-02-26  Egil Kvaleberg  <egil@kvaleberg.no>
2643         * font/devps/prologue.ps: Fix for included Postscript that does
2644         a setpagedevice -- which is now safely ignored.
2646         * NEWS: Updated.
2648         * src/devices/grops/ps.cc: Now sets the page size in the generated
2649         document.  This is done in two ways: Via a %%-comment for gv and
2650         the like, and via a PageSize and setpagedevice for programs that
2651         understands Postscript proper, like ps2pdf.
2653         * src/devices/grops/ps.h: New broken-flag to avoid page size
2654         definition, if required.
2656         * src/devices/grops/grops.man: New broken-flag 16 mentioned.
2658         * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
2659         Not really necessary due to the fix in prologue.ps, but cleaner:
2660         Such information does not belong in an .eps file.
2662         * doc/Makefile.sub: See doc/Makefile.in.
2664 2003-02-26  Ralph Corderoy  <ralph@inputplus.co.uk>
2666         * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
2667         instead of P1 since the latter is broken in some versions of netpbm.
2668         * configure: Updated.
2670 2003-02-26  Larry Kollar  <kollar@alltel.net>
2672         Make man pages more customizable.
2674         * tmac/an-old.tmac (FT): New register holding footer distance from
2675         bottom.
2676         (HF): New string holding the default heading font.
2677         (TH): Handle registers `IN' and `SN' set on the command line.
2678         Use `FT'.
2679         (PT, BT): New strings to customize header and footer lines.
2680         (an-header, an-footer): Use them.
2681         (SH, SS): Use `HF'.
2682         * tmac/groff_man.man: Document changes.
2684         * doc/groff.texinfo: Document man changes.
2685         Document Ultrix extensions of man.
2687 2003-02-26  Werner LEMBERG  <wl@gnu.org>
2689         * src/roff/troff/input.cc (do_width, do_if_request): Reset
2690         `have_input' after changing back to old environment.
2692         * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
2693         function up to be defined before first call.  This is necessary to
2694         avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
2696         * src/utils/afmtodit/afmtodit.pl: Make script search for files in
2697         the default font directory also.  Based on a patch from James
2698         J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
2699         * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
2700         * src/utils/afmtodit/afmtodit.man: Document it.
2702         * NEWS: Updated.
2704         * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
2706 2003-02-25  Gaius Mulley  <gaius@glam.ac.uk>
2708         * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
2709         (GROFF_PNMTOPS_NOSETPAGE): New macro.
2710         * configure.ac: Use it.
2711         * configure: Regenerated.
2712         * Makefile.in: Updated.
2714         * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
2715         (CLEANADD): Add www.tmac-sed.
2716         (pnmtops_nosetpage): Define default.
2717         (install_data): Handle www.tmac-sed and substitute
2718         @PNMTOPS_NOSETPAGE@.
2719         (stamp-sed): Add www.tmac.
2720         * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
2721         It now breaks URLs at suitable places.
2722         (www:substring_ok): New register set by...
2723         (www:@test_substring): New macro.
2724         (www:error): New alias to www-error.
2725         (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
2726         New macros.
2727         (URL): Use www:url_breaks.
2728         (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
2729         (CDS, CDE): New macros.
2731 2003-02-25  Werner LEMBERG  <wl@gnu.org>
2733         * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
2734         buffer overflow.
2736 2003-02-24  Werner LEMBERG  <wl@gnu.org>
2738         Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
2739         can be negative also.
2741         * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
2742         `int16'.
2743         (read_char_table): Avoid negative ascenders.
2744         (output_charset): Add cast.
2745         * font/devlj4/*: Regenerated.
2747         Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
2748         possible.
2750         * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
2751         * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
2752         of `<>'.
2753         * font/devdvi/*: Regenerated.
2755         Map `la' and `ra' to U+27E8 and U+27E9.  These two characters have
2756         normal width, while the previously used characters (U+2329 and
2757         U+232A) are classified as wide due to canonical equivalence with the
2758         CJK punctuation characters U+3008 and U+3009.
2760         * font/devutf8/R.proto: Updated.
2761         * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
2763         * man/groff_char.man: Simplify handling of table traps by
2764         introducing `start block' and `end block' macros.
2765         (Ns, Ne, 2s, 2e, Ds, De): New macros.
2766         (DL): Make it work with Unix troff also.
2767         Fix code values of `la' and `ra'.
2769         * tmac/dvi.tmac: Define `<>' for CW and CWI.
2771 2003-02-23  Gaius Mulley  <gaius@glam.ac.uk>
2773         * src/devices/grohtml/post-html.cc (element_list::~element_list):
2774         New destructor, fixing a major memory leak.
2776 2003-02-22  Werner LEMBERG  <wl@gnu.org>
2778         * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
2779         to be in conformance with Unicode 3.0 and newer.
2781         * font/devlj4/generate/text.map: Add `Eu'.
2782         * font/devlj4/generate/special.map: Flip `*e' and `+e'.
2783         * font/devlj4/S: Regenerated.
2785         * man/groff_char.man: Completely rewritten.
2787         * doc/groff.texinfo: Fix description of request and macro arguments.
2789 2003-02-20  Gaius Mulley  <gaius@glam.ac.uk>
2791         Valgrind fixes.
2793         * src/devices/grohtml/html-table.cc (html_table::~html_table):
2794         Deallocate `columns' list.
2795         * src/devices/grohtml/post-html.cc (char_block::~char_block):
2796         New destructor.
2797         (text_glob::text_glob_html, text_glob::text_glob_special,
2798         text_glob::text_glob_line, text_glob::text_glob_auto_image,
2799         text_glob::text_glob_tag): Avoid memory leaks.
2800         (text_glob::remember_table): Free memory before reassigning.
2802 2003-02-19  Werner LEMBERG  <wl@gnu.org>
2804         Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
2805         alias `hbar'), the Planck constant over two pi.
2807         * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
2808         `+e' for position 34.
2809         * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
2810         `u2662' and `u2661'.
2811         * font/devdvi/{MI,S}: Regenerated.
2812         * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
2813         * font/devlbp/*: Add `hbar' alias.
2814         * font/devlj4/generate/special.map: Ditto.
2815         * font/devlj4/S: Regenerated.
2816         * font/devps/generate/symbolchars: Add `+e'.
2817         * font/devps/generate/textmap: Fix PS name for `-h'.
2818         Add `hbar' alias.
2819         * font/devps/symbolmap: Regenerated.
2821         * src/devices/grops/ps.cc (transform_fill): Removed since unused.
2823         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
2824         `-h', `hbar'.
2825         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
2826         `-h'.
2828         * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
2829         `hbar'.
2830         * tmac/tty-char.tmac: Add `+e'.
2832 2003-02-17  Werner LEMBERG  <wl@gnu.org>
2834         Another round trying to really fix problems with `have_input'.
2836         * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
2837         (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
2839         * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
2840         handling if both foreground and background colors are default.
2842         * doc/groff.texinfo (Debugging): Document .lf differences to
2843         AT&T troff.
2845 2003-02-16  Werner LEMBERG  <wl@gnu.org>
2847         * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
2848         null-bytes in created string.
2850         * src/roff/troff/input.cc (lookup_color, interpolate_macro,
2851         alias_macro, lookup_request): Improve warning messages.
2853         * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
2854         not `strdup'.
2855         Free `last_image_filename'.
2857         * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
2858         `buffer'.
2859         (imageList::createPage, imageList::createImage): Use `free', not
2860         `a_delete'.
2861         (imageItem::~imageItem): Free `imageName'.
2862         (addRegDef): Use `strsave', not `strdup'.
2863         (get_resolution): Free `pathp'.
2865 2003-02-15  Werner LEMBERG  <wl@gnu.org>
2867         * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
2868         to `dummy'.
2870 2003-02-14  Werner LEMBERG  <wl@gnu.org>
2872         Add memory management for colors to deallocate unnamed colors
2873         properly.
2875         * src/include/color.h (color): New members `free_list' and `next'.
2876         New member functions `new' and `delete'.
2877         Add destructor.
2878         * src/libs/libgroff/color.cc: Implement it.
2880         * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
2881         for array size of new operator.
2883         * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
2884         redundant comparison.
2886         * src/roff/troff/input.cc (word_space_node::reread,
2887         hmotion_node::reread): Avoid warning about unused parameter.
2888         (reset_output_registers): Remove redundant parameter.
2889         (define_color): Undo change 2003-02-12.
2891         * src/roff/troff/reg.h: Updated.
2893         * src/roff/troff/node.cc (troff_output_file::really_print_line,
2894         output_file::put_filename, real_output_file::really_put_filename,
2895         ascii_output_file::really_print_line,
2896         break_char_node::get_hyphen_list): Avoid warning about unused
2897         parameter.
2898         (suppress_node::tprint): Updated.
2900         * configure.ac: Check declaration for rand() and srand().
2901         * configure: Regenerated.
2903         * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
2904         conditionally.
2905         * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
2906         and srand().
2908         * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
2909         to avoid compiler warnings.
2911         * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
2912         unused.
2914         * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
2915         is unused.
2916         * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
2917         (unused) parameter.
2918         Updated all callers.
2920         * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
2921         is unused.
2922         * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
2923         * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
2925         * src/devices/grohtml/post-html.cc (html_printer::emit_line):
2926         Parameter is unused.
2927         (html_printer::add_table_end): Define parameter conditionally.
2928         * src/devices/grohtml/output.cc (simple_output::special): Parameter
2929         is unused.
2931         * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
2932         (lbp_printer::set_char): Last parameter is unused.
2934         * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
2936 2003-02-13  Werner LEMBERG  <wl@gnu.org>
2938         New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
2939         Make \D'f ...' move horizontally again for backwards compatibility.
2940         Replace it with \D'Fg ...' where appropriate to avoid dependency
2941         on horizontal resolution.
2943         * src/roff/troff/input.cc (do_get_long_name): New function.
2944         (get_long_name): Call it.
2946         (read_draw_node): Handle `\D'Fx ...' by calling ...
2947         (read_color_draw_node): New function.
2949         (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
2950         `end'.
2951         Pass it to `do_get_long_name' which is used instead of
2952         `get_long_name'.
2954         * src/libs/libdriver/input.cc (color_from_Df_command): Remove
2955         unnecessary value guard.
2956         (parse_D_command) <'f'>: Add horizontal shift.
2958         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
2959         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
2960         (FILL_MAX): Removed.
2962         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2963         Updated.
2965 2003-02-12  Werner LEMBERG  <wl@gnu.org>
2967         * src/roff/troff/input.cc (do_name_test, do_expr_test,
2968         do_zero_width): Push `\n' if closing delimiter is missing.
2970         (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
2971         <'F'>: Make \F non-transparent at the beginning of line.
2972         (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
2973         token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
2974         `have_input'.
2976         (define_color): Free color in case of reassignment.
2978         * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
2979         @DefescListEnd): Use @Var, not @var.
2980         Fix all calls.
2982         * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
2984         * src/preproc/pic/object.cc (object_spec::~object_spec): Free
2985         `shaded' and `outlined' arrays.
2986         (object_spec::object_spec): Initialize `shaded' and `outlined'.
2987         (graphic_object::set_fill_color, graphic_object::set_outline_color):
2988         Use strsave.
2989         (closed_object::set_fill_color): Ditto.
2990         * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
2991         instead of strdup.
2992         (troff_output::reset_color): Use a_delete instead of free.
2993         * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
2995 2003-02-11  Werner LEMBERG  <wl@gnu.org>
2997         * doc/groff.texinfo: Improve documentation of `ad'.
2998         Document that \D'f...' is dependent on the horizontal resolution.
2999         * man/groff_diff.man: Improve documentation of \D'f...'.
3001         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
3002         compensating \h'...' for \D'f ...' since the latter no longer moves
3003         current position.
3004         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
3006 2003-02-10  Werner LEMBERG  <wl@gnu.org>
3008         Improve error messages for `x F' (and `F') commands.
3010         * src/include/error.h: Add declaration for
3011         `current_source_filename'.
3012         * src/libs/libgroff/filename.cc: Add `current_source_filename'.
3013         * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
3014         parameter for source file string.
3015         Updated all callers.
3017         * src/libs/libdriver/input.cc: Add `current_source_filename'.
3018         (remember_source_filename): New function.
3019         (parse_x_command <'F'>, do_file <'F'>): Use it.
3021 2003-02-09  Werner LEMBERG  <wl@gnu.org>
3023         Make grotty not emit warnings about unknown colors more than
3024         necessary.
3026         * src/devices/grotty/tty.cc: Include `ptable.h'.
3027         (TTY_MAX_COLORS): Removed.
3028         (DEFAULT_COLOR_IDX): Defined to -1.
3029         (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
3030         (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
3031         Change `tty_colors' to be a ptable.
3032         First arg of `put_color' is now `char'.
3033         New functions `make_rgb_string' and `tty_color'.
3034         (tty_printer::tty_printer): Use `tty_color'.
3035         (tty_printer::color_to_idx): Return value is now `char'.
3036         Use `tty_color'.
3038         * src/include/color.h (color): Add `print_color' member function.
3039         * src/libs/libgroff/color.cc (color::print_color): Implement it.
3041 2003-02-08  Werner LEMBERG  <wl@gnu.org>
3043         Valgrind fixes.
3045         * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
3046         encoding file.
3048         * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
3049         assume that value has been allocated with `new[]', thus use
3050         `a_delete' for deallocation.
3052         * src/libs/libdriver/input.cc (get_integer_arg,
3053         get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
3054         where appropriate.
3056         * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
3057         * src/libs/libgroff/nametoindex.cc
3058         (character_indexer::named_char_index): Use `new <type>[1]'.
3060         * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
3061         <type>[1]'.
3062         * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
3063         (split_text): Use `a_delete'.
3065         * src/preproc/pic/pic.y (define_label, define_variable): Use `new
3066         <type>[1]'.
3068         * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
3069         harmless memory leak.
3070         (hyphen_trie::read_patterns_file): Initialize `buf'.
3071         * src/roff/troff/node.cc (troff_output_file::troff_output_file):
3072         Initialize `current_fill_color'and `current_glyph_color'.
3073         * src/roff/troff/glyphuni.cc
3074         (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
3075         * src/roff/troff/uniuni.cc
3076         (unicode_decompose_init::unicode_decompose_init): Ditto.
3077         * src/roff/troff/uniglyph.cc
3078         (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
3080 2003-01-26  Werner LEMBERG  <wl@gnu.org>
3082         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
3083         `access' before calling `unlink'.
3084         (do_file): Handle __EMX__.
3086         * src/include/nonposix.h: Handle __EMX__.
3088         * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
3089         (fontpath,tmacpath): Use it.
3090         (MDEFINES): Add it.
3091         Sorted alphabetically.
3093         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
3094         @SEP@.
3095         * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
3096         @SEP@.
3098 2003-01-27  Werner LEMBERG  <wl@gnu.org>
3100         * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
3101         New files, copied from gnulib.
3102         * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
3103         * configure.ac: Updated.
3104         * configure: Regenerated.
3106         * src/include/config.hin: Regenerated.
3107         * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
3108         Don't define `strcasecmp' as `strcmp'.
3109         [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
3110         Dont define `strncasecmp' as `strncmp'.
3112         * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
3113         Removed.
3115 2003-01-26  Werner LEMBERG  <wl@gnu.org>
3117         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
3118         s/unline/unlink/.
3120 2003-01-25  Werner LEMBERG  <wl@gnu.org>
3122         * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
3124 2003-01-24  Werner LEMBERG  <wl@gnu.org>
3126         Add US-english hyphenation exceptions (converted from Barbara
3127         Beeton's hyphenation exception log reports which appear irregularly
3128         in TUGBoat).
3130         * tmac/hyphen.us: Updated to latest version.
3131         * tmac/README: Updated.
3132         * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
3133         * tmac/troffrc: Load `hyphenex.us'.
3134         * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
3135         * doc/groff.texinfo: Updated.
3137 2003-01-23  Werner LEMBERG  <wl@gnu.org>
3139         Improve hyphenation slightly.  This is a first step in redesigning
3140         the hyphenation algorithm to make it more flexible (e.g. allowing
3141         kerns and ligatures between the hyphenation character and the
3142         following character -- while not used normally in English, other
3143         languages like German would benefit).
3145         * src/roff/troff/env.cc (environment::hyphenate_line): Use
3146         assertion instead of if-clause.
3147         Let `get_hyphen_list' return the number of involved characters in
3148         the hyphenation pattern instead of computing it directly (which
3149         often yields too small values).
3150         * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
3151         * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
3152         parameter.
3154 2003-01-22  Werner LEMBERG  <wl@gnu.org>
3156         Fixing a bug which caused groff to hang if the hyphenation exception
3157         dictionary tried to grow.
3159         * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
3160         hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
3161         pointer to dictionary.
3163 2003-01-20  Werner LEMBERG  <wl@gnu.org>
3165         * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
3166         negative left italic correction.
3167         * src/utils/afmtodit/afmtodit.man: Document it.
3169         * font/devps/generate/Makefile (RFLAG): Add `-m'.
3170         * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
3171         S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
3173         * NEWS: Updated.
3175 2003-01-16  Werner LEMBERG  <wl@gnu.org>
3177         * NEWS: Updated.
3179 2003-01-16  Jörgen Grahn  <jgrahn@algonet.se>
3181         * src/preproc/refer/refer.man: Mention REFER environment variable.
3183 2003-01-05  Werner LEMBERG  <wl@gnu.org>
3185         Similar to \[is], the square root glyph (\[sr]) and the square root
3186         extension glyph (\[radicalex]) are now text symbols.  The new
3187         mathematical versions are called \[sqrt] and \[sqrtex],
3188         respectively.
3190         * font/devX*/S: Regenerated.
3191         * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
3192         * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
3193         * font/devdvi/EX, font/devdvi/S: Regenerated.
3194         * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
3195         * font/devlj4/generate/special.map: Add `sqrt'.
3196         * font/devlj4/S: Regenerated.
3197         * font/devps/generate/textmap: Add `sqrt'.
3198         * font/devps/S, font/devps/symbolmap: Regenerated.
3200         * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
3201         SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
3202         * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
3203         overlap horizontally.
3205         * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
3206         * tmac/dvi.tmac: Add `sr', and `sqrtex'.
3207         Fix `radicalex'.
3209         * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
3210         and `sqrtex' are overlapping glyphs.
3212 2003-01-04  Werner LEMBERG  <wl@gnu.org>
3214         * font/devdvi/generate/texsy.map: Add `is'.
3215         * font/devps/symbolmap: Regenerated.
3216         * font/devdvi/*TC, MI, S: Regenerated.
3218         * tmac/dvi.tmac: Remove `is'.
3220 2003-01-03  Werner LEMBERG  <wl@gnu.org>
3222         `is' is now a text symbol (only relevant for dvi).  The math variant
3223         can be accessed with `integral'.
3225         * font/devX*/S: Regenerated.
3226         * font/devdvi/generate/texex.map: Remove `is'.
3227         * font/devdvi/EX: Updated.
3228         * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
3229         * font/devlj4/generate/special.map: Ditto.
3230         * font/devlj4/S: Regenerated.
3231         * font/devps/generate/textmap: Add `integral'.
3232         * font/devps/S: Regenerated.
3234         * tmac/dvi.tmac: Define `is'.
3236         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
3238         * src/preproc/tbl/main.cc (process_format): Fix error message.
3240 2003-01-02  Werner LEMBERG  <wl@gnu.org>
3242         * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
3243         * font/devps/textmap: Fix entries for `ne' and `nc'.
3244         * font/devps/symbolmap: Regenerated.
3246         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
3247         src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
3248         `38', `58', `78', `-+', `|=', `nc', `ne'.
3250         * tmac/dvi.tmac: Add `nm', `ne', `nc'.
3251         Use `schar' for `aq'.
3252         * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
3253         * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
3254         * tmac/tty.tmac: Add `ne'.
3256         * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
3257         for fallback glyphs.
3259 2002-12-29  Werner LEMBERG  <wl@gnu.org>
3261         Add glyph `|='.
3263         * font/devX*/*: Regenerated.
3264         * font/devdvi/generate/ec.map: Remove `eq'.
3265         * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
3266         Assign `|=' to position 39.
3267         * font/devdvi/*EC, S: Regenerated.
3268         * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
3269         * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
3270         Assign `|=' to position 549.
3271         * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
3272         `equalmath'.
3273         Add `uni2243' for `|='.
3275         * tmac/ec.tmac: Add `eq'.
3276         * tmac/dvi.tmac: Add `=~'.
3277         * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
3278         `|='.
3280 2002-12-21  Werner LEMBERG  <wl@gnu.org>
3282         * font/devdvi/generate/tc.map: Remove `**'.
3283         * font/devdvi/*TC: Regenerated.
3284         * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
3285         `78', `<<', `>>'.
3286         * font/devutf8/NOTES: Updated.
3288         * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
3289         Don't give default parameter to `set_macro'.
3290         * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
3291         instead of `set_macro'.
3292         (charinfo::setx_macro): Implement it.
3293         (charinfo::set_macro): Don't change `mode'.
3295         * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
3296         * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
3297         * tmac/dvi.tmac: Define `!=' with `.schar'.
3299 2002-12-20  Werner LEMBERG  <wl@gnu.org>
3301         * font/devX*/S: Regenerated.
3302         * font/devdvi/generate/ec.map: Remove `pl'.
3303         * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
3304         * font/devdvi/*{TC,EC}: Regenerated.
3305         * font/devhtml/R.proto: Add `-+'.
3306         Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
3307         * font/devlbp/*: Remove `or'.
3308         * font/devlj4/generate/special.map: Remove `or'.
3309         * font/devlj4/S: Regenerated.
3310         * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
3311         `seveneighths', `threeeighths'.
3312         Remove `plusmath'.
3313         Replace `minusplus' with `uni2213'.
3314         * font/devps/symbolmap: Regenerated.
3315         * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
3316         Add `-+'.
3318         * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
3319         function.
3320         * src/roff/troff/node.cc (troff_output_file::put_char_width):
3321         Call glyph_color and fill_color even if tcommand_flag isn't set.
3322         (make_node, node::add_char): Check not ci->is_fallback but
3323         ci->is_normal.
3325         * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
3326         * tmac/ec.tmac: Add .rchar entry for `f/'.
3327         Don't remove `12', `14', `34'.
3328         Define `pl' to be always roman.
3329         * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
3330         Define `18', `38', `58', `78'.
3331         * tmac/tty.tmac: Add `-+'.
3332         * tmac/dvi.tmac: Define `f/'.
3333         (dvi-frac): Use `f/'.
3334         * tmac/X.tmac (X-frac, X-frac-mono): New macros.
3335         Define `18', `38', `58', `78'.
3337 2002-12-15  Colin Watson  <cjwatson@debian.org>
3339         * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
3341 2002-12-10  Werner LEMBERG  <wl@gnu.org>
3343         Add glyph `tno', a textual variant of `no'.
3345         * font/devX*/*: Regenerated.
3346         * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
3347         * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
3348         * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
3349         * font/devdvi/*: Regenerated.
3350         * font/devlbp/*: Add `tno'.
3351         * font/devlj4/generate/tex.map: Replace `no' with `tno'.
3352         * font/devlj4/*: Regenerated.
3353         * font/devps/generate/textmap: Replace `no' with `tno'.
3354         * font/devps/generate/symbolchars: Add `no'.
3355         * font/devps/*: Regenerated.
3357         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
3359         * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
3360         * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
3362         * NEWS: Updated.
3364         * tmac/dvi.tmac: Replace most `\\' with `\E'.
3365         Add definition for `sd'.
3366         * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
3368         * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
3370 2002-12-08  Werner LEMBERG  <wl@gnu.org>
3372         * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
3373         mode to avoid rounding errors.
3374         (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
3376         * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
3377         src/roff/troff/troff.man: Improve documentation of -T.
3379 2002-12-07  Jeff Conrad  <jeff_conrad@msn.com>
3381         * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
3382         (run_pipeline) [_WIN32]: Provide working function without `fork'.
3384 2002-12-06  Werner LEMBERG  <wl@gnu.org>
3386         * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
3387         glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
3388         Scaling Euro.sansserif glyphs down to have the same height as
3389         digits.
3390         Removed unnecessary points; added some extrema.
3392         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
3393         Regenerated.
3395 2002-12-04  Werner LEMBERG  <wl@gnu.org>
3397         * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
3398         and `Euro.symbol.bold.slanted'.
3399         Improve some glyph offsets and widths.
3400         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
3401         Regenerated.
3402         * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
3403         typo.
3404         * font/devps/generate/sfdtopfa.pe: Generate PFA in current
3405         direcory.
3407         * tmac/europs.tmac: Updated to new glyph indices.
3408         Use Euro.symbol for font familiy `A'.
3410         * doc/groff.texinfo: Minor improvements.
3412 2002-12-02  Werner LEMBERG  <wl@gnu.org>
3414         * font/devdvi/generate.tc.map: s/%O/%0/.
3415         * font/devdvi/*TC: Regenerated.
3417         * src/roff/troff/div.cc (init_div_requests): Sorted.
3419         * tmac/dvi.tmac: Remove `Ye'.
3420         * tmac/ec.tmac: Remove `Ye'.
3421         Add .rchar entry for `de'.
3423         * man/groff.man, man/groff_diff.man: Document register `.pe'.
3424         * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
3425         * NEWS: Updated.
3427 2002-11-30  Werner LEMBERG  <wl@gnu.org>
3429         Add PS font for various Euro glyphs.
3431         * font/devps/generate/freeeuro.sfd: New master font file for
3432         pfaedit.
3433         * font/devps/generate/sfdtopfa.pe: New conversion script for
3434         pfaedit.
3435         * font/devps/generate/Makefile (FONTS): Add `EURO'.
3436         (EURO, freeeuro.afm, freeeuro.pfa): New rules.
3437         * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
3438         `freeeuro.sfd'.
3439         * font/devps/EURO: Generated from `freeeuro.afm'.
3440         * font/devps/download: Add `freeuro.pfa'.
3441         * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
3442         `freeeuro.pfa'.
3444         * tmac/europs.tmac: New file.
3445         * tmac/ps.tmac: Include `europs.tmac'.
3446         * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
3448 2002-11-29  Werner LEMBERG  <wl@gnu.org>
3450         * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
3451         * font/devdvi/S: Regenerated.
3452         * font/devhtml/R.proto: Fix `CR' and `ci'.
3453         Add `OK'.
3454         * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
3455         Remove `bs'.
3456         * font/devps/symbolmap: Regenerated.
3457         * font/devutf8/R.proto: Fix `CR' and `ci'.
3458         Add `OK'.
3459         * font/devutf8/NOTES: Updated.
3461         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
3462         `ci'.
3463         Add `OK'.
3464         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
3466         * tmac/dvi.tmac: Add `lh' and `rh'.
3467         * tmac/Xps.tmac: Fix `lh' and `rh'.
3468         * tmac/X.tmac: Add `OK'.
3469         * tmac/lj4.tmac: Ditto.
3471 2002-11-24  Werner LEMBERG  <wl@gnu.org>
3473         * font/devX*/S: Regenerated.
3474         * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
3475         `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
3476         * font/devdvi/generate/texsy.map: Remove `or' glyph.
3477         * font/devdvi/S: Regenerated.
3478         * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
3479         `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
3480         `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
3481         `bracketleftbt', `bracketrighttp', `bracketrightex',
3482         `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
3483         `braceex', `braceleftex', `bracerightex', `bracerighttp',
3484         `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
3485         `rb', and `bv'.
3486         * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
3487         * font/devutf8/NOTES: Updated.
3488         * font/devlj4/generate/special.map: Add glyph `braceex'.
3489         * font/devlj4/S: Regenerated.
3491         * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
3493 2002-11-14  Werner LEMBERG  <wl@gnu.org>
3495         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
3496         and `vA'.
3497         Fix code for `an'.
3498         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
3500         * doc/texinfo.tex: New version from texinfo 4.3.
3501         * doc/groff.texinfo: Updated for texinfo 4.3.
3502         Use @tie{} where appropriate.
3503         * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
3504         * font/devdvi/generate/tc.map: Remove `rn'.
3505         * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
3506         * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
3507         Fix code for `an'.
3508         * font/devX100/*, font/devX100-12/*, font/devX75/*,
3509         font/devX75-12/*: Regenerated.
3511         * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
3512         Use .char (again) for `br', `ul', `rn', `or', and `ru'.
3513         Improve definition of `an'.
3514         * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
3515         `ru'.
3516         * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
3517         * tmac/X.tmac: Add definition for `or'.
3518         * tmac/Xps.tmac: Undo change 2002-11-05.
3519         * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
3521 2002-11-11  Werner LEMBERG  <wl@gnu.org>
3523         * src/roff/troff/node.cc (troff_output_file::put_char): Always
3524         call flush_tbuf.
3526 2002-11-10  Werner LEMBERG  <wl@gnu.org>
3528         Added three new requests `schar', `fschar', and `rfschar'.  `schar'
3529         defines a glyph which is searched after the check for fonts declared
3530         with `.special' (and before the check for all mounted special
3531         fonts).  `fschar' defines a glyph for a particular font which is
3532         searched after the check for fonts declared with `.fspecial' (and
3533         before the check for fonts declared with `.special').  `rfschar'
3534         removes glyphs defined with `fschar'.
3536         * src/roff/troff/token.h (char_mode): New enum.
3537         Declare do_define_character.
3538         * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
3539         `mode'.
3540         (charinfo::is_fallback): Updated.
3541         (charinfo::is_special): New method.
3542         * src/roff/troff/input.cc (do_define_character): Add and use
3543         optional second parameter used as a prefix for font-specific glyph
3544         names.
3545         (define_character, define_fallback_character): Updated.
3546         (define_special_character): New function.
3547         (init_input_requests): Add `schar'.
3548         (charinfo::charinfo, charinfo::set_macro): Updated.
3549         * src/roff/troff/node.cc: Include `stringclass.h'.
3550         (make_glyph_node): Handle special glyphs defined with `.schar' and
3551         `.fschar'.
3552         (define_font_special_character, remove_font_special_character): New
3553         functions.
3554         (init_node_requests): Sorted.
3555         Add `fschar' and `rfschar'.
3556         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3557         Document new requests.
3559         * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
3560         * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
3562 2002-11-08  Werner LEMBERG  <wl@gnu.org>
3564         Added new font `SC' (cmtex10) to devdvi.
3566         * devdvi/generate/Makefile (FONTS): Add `SC'.
3567         (SC): New rule.
3568         * devdvi/generate/textex.map: New map file for cmtex.
3569         * devdvi/SC: New.
3570         * devdvi/Makefile.sub (DEVFILES): Updated.
3571         * tmac/dvi.tmac: Add fspecial entries for SC.
3572         Add `MI', `S' and `CW' to the `special' call.  Otherwise, `SC' is
3573         found before `S' since the font position of `SC' is lower due to the
3574         gaps in DESC's `font' line.
3575         * tmac/ec.tmac: Add a `special' call.
3576         * NEWS: Updated.
3578         * font/devhtml/R.proto: Remove double entry for `ti'.
3579         * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
3580         * tmac/tty-char.tmac: Remove entry for `bq'.
3581         * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
3582         * tmac/ec.tmac: Don't remove `aq' glyph.
3583         * tmac/X.tmac: Fix entry for `em'.
3584         Add entries for `fo' and `fc'.
3585         * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
3587         * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
3588         documentation of `special' and `fspecial' requests.
3590 2002-11-05  Werner LEMBERG  <wl@gnu.org>
3592         * font/devascii/R.proto, font/devcp1047/R.proto,
3593         font/devlatin1/R.proto: Remove entry for `.i'.
3594         * font/devdvi/generate/textt.map: Add entry for `ad'.
3595         * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
3596         font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
3597         We need this for getting kerning values to compose `/l' and `/L'.
3598         * font/devdvi: Regenerated font definition files for CM fonts.
3599         * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
3600         * font/devutf8/R.proto: Ditto.
3601         Remove double entry for `ti'.
3603         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
3604         for (groff) ligatures, `la', and `ra'.
3605         Add "'C", "'c", `IJ', and `ij'.
3606         Remove double entry for `ti'.
3607         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
3608         double entries.
3609         Add "'C", "'c", `IJ', and `ij'.
3610         Fix entries for (groff) ligatures, `la', and `ra'.
3612         * tmac/ps.tmac (ps-achar): New macro.
3613         Define "'c" and "'C".
3614         * tmac/tty.tmac: Add entry for `.i'.
3615         * tmac/X.tmac (X-achar): New macro.
3616         Define "'c", "'C", and `:Y'.
3617         Add entries for `IJ' and `ij'.
3618         * tmac/Xps.tmac (Xps-achar): New macro.
3619         Define "'c" and "'C".
3620         Add entries for `IJ' and `ij'.
3621         * tmac/lbp.tmac (lbp-achar): New macro.
3622         Add fallback characters for all groff ligatures and many other
3623         glyphs.
3624         * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
3625         Add entries for `/l' and `/L'.
3626         Define "'c" and "'C".
3627         Add entries for `IJ' and `ij'.
3629 2002-11-02  Larry Kollar  <kollar@alltel.net>
3631         * PROBLEMS: Document how to solve Mac OS X compilation problems.
3633 2002-11-02  Werner LEMBERG  <wl@gnu.org>
3635         Adding support for composite glyphs: \[xxx yyy ...] and the
3636         `composite' request.
3638         * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
3639         to Unicode-based glyph names.
3640         * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
3641         glyph names to groff glyph names.
3642         * src/roff/troff/uniuni.cc: New file for canonically decomposing
3643         Unicode-based glyph names.
3644         * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
3645         for handling Unicode glyph names.
3646         * src/roff/troff/input.cc: Include unicode.h.
3647         (composite_glyph_name): New function.
3648         (token::next) <'['>: Handle Unicode glyph names and composite
3649         glyphs.
3650         (composite_dictionary): New dictionary for the `composite' request.
3651         (composite_request): Implement `composite' request.
3652         (init_input_requests): Add `composite'.
3653         Alphabetically sorted.
3654         * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
3655         commented out).
3656         (init_env_requests): Alphabetically sorted.
3657         Removed `tas' and `tar' (already commented out).
3658         * src/roff/troff/Makefile.sub: Updated.
3660 2002-10-31  Ruslan Ermilov  <ru@FreeBSD.org>
3662         * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
3663         of options.
3665 2002-10-29  Werner LEMBERG  <wl@gnu.org>
3667         Fix computation of .trunc register.  Additionally, its value (and
3668         the value of the .ne register) is now always set before entering the
3669         trap.
3671         * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
3672         `needed_space' before calling `space'.
3673         (top_level_diversion::space): Remove special code for 'sp before the
3674         first page.
3675         Call `begin_page' with the discarded space as a parameter.
3676         (top_level_diversion::begin_page): Add optional parameter to set
3677         `truncated_space'.
3678         * src/roff/troff/div.h: Updated.
3680         * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
3681         \n[.ne].
3683         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
3684         (LP): Remove superfluous call to `br'.
3685         * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
3686         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
3688 2002-10-26  Werner LEMBERG  <wl@gnu.org>
3690         * tmac/doc-ditroff: Remove useless switch/variable -rC.
3691         (doc-setup-header): Don't set page register `%'.
3692         * tmac/doc-nroff: Remove variable `C'.
3693         (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
3694         (doc-setup-header): Don't set page register `%'.
3695         Don't call `bp'.
3696         * tmac/doc-common (doc-header): Call `ns'.
3697         (doc-paragraph): Protect .sp with .br so that it survives traps
3698         possibly set by the user.
3699         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
3701         * tmac/doc*: Replace ' with . for consistency if no effect.
3703 2002-10-26  Werner LEMBERG  <wl@gnu.org>
3705         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
3706         so that it survives traps possibly set by the user.
3708         * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
3709         (troff_output_file::set_font): Call flush_tbuf if necessary.
3710         (troff_output_file::fill_color, troff_output_file::glyph_color): Call
3711         flush_tbuf and do_motion only if necessary.
3712         (troff_output_file::start_special,
3713         troff_output_file::put_char_width, troff_output_file::put_char,
3714         troff_output_file::draw): Updated.
3715         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
3716         vmotion_node::tprint): Undo change 2002-10-23.
3718 2002-10-25  Werner LEMBERG  <wl@gnu.org>
3720         * tmac/www.tmac (DC): Fix case of overlapping images.
3722 2002-10-23  Werner LEMBERG  <wl@gnu.org>
3724         * src/roff/troff/node.cc (troff_output_file::fill_color,
3725         troff_output_file::glyph_color): Set current color before testing
3726         color_flag.
3727         (troff_output_file::put_char_width, troff_output_file::put_char,
3728         troff_output_file::draw): Don't call flush_tbuf and/or do_motion
3729         before glyph_color.
3730         (troff_output_file::file_color, troff_output_file::glyph_color):
3731         Call do_motion.
3732         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
3733         vmotion_node::tprint): Move first, then call fill_color.
3735 2002-10-20  Werner LEMBERG  <wl@gnu.org>
3737         * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
3738         possible to use multiple main macro packages.
3740 2002-10-19  Werner LEMBERG  <wl@gnu.org>
3742         * src/devices/grops/ps.cc (cmyk_flag): New global variable.
3743         (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
3744         (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
3745         is set.
3746         * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
3747         `where' construction since `cmyksetcolor' is a PS Level 2 operator.
3749 2002-10-16  Werner LEMBERG  <wl@gnu.org>
3751         * NEWS, doc/webpage.ms: Updated.
3753 2002-10-14  Werner LEMBERG  <wl@gnu.org>
3755         * src/roff/troff/node.cc (troff_output_file::put_char_width,
3756         troff_output_file::put_char, troff_output_file::fill_color,
3757         troff_output_file::glyph_color): Handle case where color pointer
3758         is null.
3760 2002-10-13  Ruslan Ermilov  <ru@FreeBSD.org>
3762         Add the new -r option to grotty.  It is similar to the -i option
3763         except it tells grotty(1) to use the "reverse video" attribute to
3764         render italic fonts.
3766         * src/devices/grotty/tty.cc (reverse_flag): New global variable.
3767         (SGR_REVERSE, SGR_NO_REVERSE): New macros.
3768         (tty_printer::make_underline, tty_printer::put_color,
3769         tty_printer::end_page): Use it.
3770         (main): Add -r switch.
3771         (usage): Updated.
3772         * src/devices/grotty/grotty.man: Document it.
3774 2002-10-11  Ruslan Ermilov  <ru@FreeBSD.org>
3776         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
3777         cast to `unsigned char' to properly read patterns with 8bit
3778         characters.
3780 2002-10-08  Werner LEMBERG  <wl@gnu.org>
3782         * REVISION: Increased to 2.
3784 Version 1.18.1 released
3785 =======================
3787 2002-10-08  Werner LEMBERG  <wl@gnu.org>
3789         * doc/webpage.ms, NEWS: Updated.
3791 2002-10-07  Werner LEMBERG  <wl@gnu.org>
3793         * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
3794         suppress additional whitespace after the header.
3796         * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
3797         with NetBSD.
3799         * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
3801 2002-10-07  Ruslan Ermilov  <ru@FreeBSD.org>
3803         * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
3804         (Dt): Use it to improve language localization (especially Russian
3805         and French).
3807 2002-10-07  Daniel Senderowicz  <daniel@synchrods.com>
3809         * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
3810         * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
3811         drawing commands.
3812         * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
3813         curve type.
3814         Call `picurve' for BSPLINE.
3815         (HGPrintElt): Handle BSPLINE.
3816         * src/preproc/grn/README: Document it.
3818 2002-10-03  Werner LEMBERG  <wl@gnu.org>
3820         * src/roff/troff/node.cc (break_char_node::col): New variable.
3821         Updated constructor.
3822         (space_node::tprint, word_space_node::tprint): Call `fill_color'
3823         unconditionally.
3824         (space_node::space_node): Remove assertion.
3825         (break_char_node::add_self): Pass color argument to space node.
3826         * src/roff/troff/input.cc (token::add_to_node_list, token::process):
3827         Ditto.
3828         * src/roff/troff/env.cc (environment::do_break,
3829         environment::add_padding): Ditto.
3831 2002-10-02  Werner LEMBERG  <wl@gnu.org>
3833         Redesigning color support in troff.  Colors are no longer
3834         represented as separate nodes but are now part of glyph nodes and
3835         friends.  This fixes the current formatting misbehaviour due to the
3836         changes introduced on 2002-09-20.  Some extra code is necessary for
3837         proper grotty support: Without adding color variables to
3838         space-related nodes, the background color would be changed too late.
3840         * src/roff/troff/node.h, src/roff/troff/node.cc:
3841         s/current_pagecolor/current_fill_color/.
3842         s/current_glyphcolor/current_glyph_color/.
3843         (glyph_color_node, fill_color_node): Removed.
3844         (node::get_glyph_color, node::get_fill_color): New virtual member
3845         functions.
3846         (space_node::col): New variable.
3847         Updated constructors of space_node and derived classes accordingly.
3848         (hmotion_node::col): New variable.
3849         Updated constructors of hmotion_node and space_char_hmotion_node
3850         accordingly.
3851         (vmotion_node::col): New variable.
3852         Updated constructor accordingly.
3853         (draw_node::gcol, draw_node::fcol): New variables.
3854         Updated constructor accordingly.
3855         (special_node::gcol, special_node::fcol): New variables.
3856         Updated constructors accordingly.
3857         (troff_output_file::put_char, troff_output_file::put_charwidth,
3858         troff_output_file::draw): Set glyph and fill color.
3859         (troff_output_file::start_special): Set glyph and fill color.
3860         Always set current font.
3861         (troff_output_file::fill_color, troff_output_file::glyph_color):
3862         Don't call `do_motion'.
3863         (glyph_node::gcol, glyph_node::fcol): New variables.
3864         Updated constructors of glyph_node and ligature_node accordingly.
3865         (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
3866         member functions.
3867         (glyph_node::merge_glyph_node,
3868         kern_pair_node::add_discretionary_hyphen,
3869         node::add_discretionary_hyphen): Updated.
3870         (break_char_node::merge_self): Updated.
3871         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
3872         vmotion_node::tprint): Handle color.
3873         (make_glyph_node, make_node, node::add_char): Updated.
3875         * src/roff/troff/env.cc (environment::space_newline,
3876         environment::space, environment::output_line, environment::do_break,
3877         environment::make_tab_node, environment::add_padding, title):
3878         Updated.
3879         (environment_switch, environment_copy): Don't add color nodes.
3881         * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
3882         nothing.
3883         (token::next): Updated.
3884         \m and \M now are as transparent as \s.
3885         (process_input_stack, token::add_to_node_list, token::process,
3886         read_draw_node): Updated.
3887         (charinfo_to_node_list): Don't add color nodes.
3889         * doc/groff.texinfo: Updated.
3891 2002-09-27  Ruslan Ermilov  <ru@FreeBSD.org>
3893         * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
3894         strings.
3896 2002-09-27  Colin Watson  <cjwatson@debian.org>
3898         * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
3900 2002-09-23  Werner LEMBERG  <wl@gnu.org>
3902         * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
3903         appropriate.
3904         (DEFAULT_LINEWIDTH_FACTOR): New macro.
3905         (linewidth_factor): New global variable.
3906         (lbp_printer::set_line_thickness): Fix case for size < 0, using
3907         linewidth_factor.
3908         (long_options): Add -w/--linewidth option.
3909         (usage): Updated.
3910         (main): Handle -w option to set linewidth_factor.
3911         (lbp_printer::lbp_printer): Initialize req_linethickness, not
3912         line_thickness.
3914         * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
3916 2002-09-22  Paco Andrés Verdú  <pandres@dragonet.es>
3918         Fixed a bug in the line thickness setting code.
3920         * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
3921         variable.
3922         (lbp_printer::set_line_thickness): Pass environment as second
3923         parameter.
3924         Implement it actually.
3925         (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
3926         and `set_line_thickness, depending on the current font size.
3928 2002-09-21  Werner LEMBERG  <wl@gnu.org>
3930         Some Debian patches.
3932         * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
3933         * src/roff/troff/node.cc (bracket_node::copy): Initialize
3934         `list->last'.
3936 2002-09-20  Werner LEMBERG  <wl@gnu.org>
3938         * configure: Regenerated with autoconf 2.54.
3940 2002-09-20  Werner LEMBERG  <wl@gnu.org>
3942         * src/roff/troff/env.h (environment): Rename cur_glyph_color to
3943         glyph_color.
3944         Rename cur_fill_color to fill_color.
3945         * src/roff/troff/env.cc: Updated.
3947 2002-09-20  Werner LEMBERG  <wl@gnu.org>
3949         * src/roff/troff/env.cc (title): Copy color status after processing
3950         title.
3951         * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
3952         fill color nodes to reset colors properly.
3954         * tmac/www.tmac (DC): Fix color handling.
3956         * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
3957         * doc/groff.texinfo: Fixing documentation of `tl' request.
3958         * doc/webpage.ms: Updated.
3960 2002-09-19  Werner LEMBERG  <wl@gnu.org>
3962         * src/roff/troff/env.cc (environent_switch, environment_copy):
3963         Emit glyph and fill color nodes to initialize colors properly.
3965 2002-09-17  Colin Watson  <cjwatson@debian.org>
3967         * src/roff/troff/env.cc (environment::set_glyph_color,
3968         environment::set_fill_color): Fix typo which prevented \m[] work
3969         correctly.
3971 2002-09-17  Werner LEMBERG  <wl@gnu.org>
3973         Add left and right italic correction to non-slanted PS fonts.  This
3974         is an experimental feature to improve image rendering of grohtml.
3976         * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
3977         ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
3978         * font/devps/*: All non-slanted fonts regenerated.
3979         * NEWS: Updated.
3981 2002-09-16  Werner LEMBERG  <wl@gnu.org>
3983         Add a site-specific font directory.
3985         * Makefile.in (localfontdir, legacyfontdir): New variables.
3986         (fontpath): Use them.
3987         (MDEFINES, uninstall_dirs): Updated.
3988         * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
3989         Remove `FONTPATH' and `MACROPATH'.
3991         * src/roff/troff/troff.man, NEWS: Updated.
3992         * doc/groff.texinfo (Font Directories): New section.
3993         Other minor fixes.
3995         * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
3996         src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
3997         src/preproc/grn/grn.man: Minor fixes.
3999         * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
4000         Remove unused variable.
4002 2002-09-11  Werner LEMBERG  <wl@gnu.org>
4004         * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
4005         * man/groff_out.man: Fix documentation of 'N'.
4007 2002-09-09  Gaius Mulley  <gaius@glam.ac.uk>
4009         * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
4010         * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
4011         set.
4012         * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
4013         (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
4014         (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
4015         * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
4016         PRE_TAG>: Call `begin' with `FALSE'.
4018 2002-09-09  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
4020         * src/libs/libgroff/string.cc (string::extract): Fix position of
4021         terminating null byte.
4023 2002-09-08  Werner LEMBERG  <wl@gnu.org>
4025         Add global option `nospaces' to tbl so that leading and trailing
4026         spaces in data items are ignored.
4028         * src/libs/libgroff/string.cc (string::remove_spaces): New member
4029         function to remove leading and trailing spaces.
4030         * src/include/stringclass.h: Updated.
4032         * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
4034         * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
4035         option.
4036         Fix typo in error messages.
4037         (process_data): Implement `nospaces' option.
4038         * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
4040 2002-09-07  Werner LEMBERG  <wl@gnu.org>
4042         * src/include/config.hin: Add `HAVE_ISATTY'.
4043         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
4044         `fname' member.
4045         * src/libs/libgroff/tmpname.cc: Include `time.h'.
4046         * src/libs/libdriver/input.cc (Char): Add `operator==' and
4047         `operator!=' for `char'.
4048         * doc/groff.texinfo: Replace @ifnottex block for top node with
4049         @ifhtml block.
4051 2002-09-06  Werner LEMBERG  <wl@gnu.org>
4053         * doc/Makefile.in (.texinfo.html): Add -I switch.
4054         * doc/groff.texinfo: Add @ifnottex block for top node to make
4055         translation to HTML work.
4057 2002-09-05  Gaius Mulley  <gaius@glam.ac.uk>
4059         * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
4060         (get_papersize, determine_vertical_offset): Removed.
4061         (char_buffer::do_image): Always specify letter size.
4062         (main): Updated.
4063         (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
4064         -sPAPERSIZE.
4066 2002-09-05  Werner LEMBERG  <wl@gnu.org>
4068         * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
4069         default indentation.
4071 2002-09-04  Gaius Mulley  <gaius@glam.ac.uk>
4073         * src/preproc/html/pre-html.cc (imageList::createPage): Use
4074         -sPAPERSIZE for gs.
4075         (generateImages): Clean up push-back buffer.
4077 2002-09-04  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
4079         * doc/groff.texinfo: Minor fixes.
4081 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
4083         * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
4084         (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
4085         (gsPaper): Removed.
4086         (determine_vertical_offset): Use LETTER_LENGTH.
4087         (createPage): Moved to ...
4088         (imageList::createPage): This.
4089         Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
4090         (imageList::getMaxX): New function.
4091         (createImage): Moved to ...
4092         (imageList::createImage): This.
4093         (imageList::createImages): New function.
4094         (generateImages): Read `maxx' directly.
4095         Updated.
4096         (scanArguments): Don't specify `gsPaper' for `-o'.
4097         (makeTempFiles): Call `xtmpfile' with the last argument set to
4098         `TRUE'.
4100 2002-08-24  Werner LEMBERG  <wl@gnu.org>
4102         * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
4103         (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
4104         * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
4105         * src/preproc/html/pushback.cc: Include nonposix.h.
4106         * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
4107         conditionally.
4109 2002-08-23  Werner LEMBERG  <wl@gnu.org>
4111         Use $(OBJEXT) for the object file extension.
4113         * Makefile.comm (.SUFFIXES): Add .obj.
4114         (.cc.obj, .c.obj): New implicit rules.
4115         * Makefile.in (OBJEXT): New variable, initialized from autoconf.
4116         (MDEFINES): Add EXEEXT and OBJEXT.
4117         * */Makefile.sub: s/.o/.$(OBJEXT)/.
4119 2002-08-22  Werner LEMBERG  <wl@gnu.org>
4121         * INSTALL: Mention texinfo 4.2 as a prerequisite.
4123 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
4125         * src/devices/grohtml/post-html.cc (colType): Make enum global to
4126         the file.
4127         (html_printer::update_min_max, html_printer::add_table_end): New
4128         methods.
4129         (html_printer::lookahead_for_tables): Use them.
4130         Reset page offset correctly.
4131         (html_printer::~html_printer): Add creation of creator comment up.
4133 2002-08-20  Werner LEMBERG  <wl@gnu.org>
4135         * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
4136         * man/groff_tmac.man: Fix typos.
4137         * man/groff_font.man: Minor reordering.
4138         * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
4140 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
4142         Avoid endless loops while scanning for tables.
4144         * src/devices/grohtml/post-html.cc (list::insert): Set
4145         ptr->right->left.
4146         (html_printer::next_horiz_pos): Add `text_glob' argument; update
4147         all callers.
4148         Return immediately if that argument is NULL.
4149         (html_printer::calc_nf): Don't test if `g' is NULL.
4150         (html_printer::lookahead_for_tables): Use
4151         `glyphs.move_right_get_data'.
4152         Don't test if `g' is NULL.
4154 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
4156         A better fix, replacing fix 2002-08-15, for increasing SIZE.
4158         * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
4159         a pointer.
4160         (char_block::char_block): Allocate `buffer'.
4161         (char_buffer::add_string): Use it.
4163 2002-08-15  Werner LEMBERG  <wl@gnu.org>
4165         * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
4166         src/devices/grodvi/grodvi.man: Document default line thickness.
4168 2002-08-15  Gaius Mulley  <gaius@glam.ac.uk>
4170         * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
4171         8192.
4173 2002-08-14  Werner LEMBERG  <wl@gnu.org>
4175         * doc/webpage.ms: Updated.
4177 2002-08-09  Werner LEMBERG  <wl@gnu.org>
4179         * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
4180         unbreakable space.
4182 2002-08-08  Aaron Campbell  <aaron@monkey.org>
4184         * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
4185         (&& -> &).
4187 2002-08-08  Werner LEMBERG  <wl@gnu.org>
4189         * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
4190         tok.next().
4191         (read_gray): Ditto.
4192         Don't push back a space but a newline onto the stack.
4194 2002-08-07  Gaius Mulley  <gaius@glam.ac.uk>
4196         Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
4197         inadvertently.
4199         * src/devices/grohtml/post-html.cc (html_printer::end_font,
4200         html_printer::start_font): Handle them.
4201         * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
4202         reset bold and tt.
4203         (html_text::do_bold): Don't reset italic and tt.
4204         (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
4205         * font/devhtml/DESC.proto: Add those fonts.
4206         * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
4208 2002-08-07  Werner LEMBERG  <wl@gnu.org>
4210         * MORE.STUFF: Added gpresent.
4212         * tmac/trace.tmac: Show nesting level by a corresponding amount of
4213         whitespace before printing the logging message.
4215 2002-07-31  Colin Watson  <cjwatson@debian.org>
4217         * src/devices/grohtml/html-table.cc (html_table::finish_row):
4218         Initialize `n' to zero.  This fixes a segfault on ARM.
4220 2002-07-30  Werner LEMBERG  <wl@gnu.org>
4222         * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
4224 2002-07-29  Werner LEMBERG  <wl@gnu.org>
4226         * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
4227         final semicolon.
4229 2002-07-28  Colin Watson  <cjwatson@debian.org>
4231         * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
4232         `.ps'.
4233         (html_printer::html_printer): Initialize `pointsize'.
4235 2002-07-26  Werner LEMBERG  <wl@gnu.org>
4237         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
4238         gnu.png.
4239         (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
4240         (gnu.eps): Add -rle switch to pnmtops.
4241         (distfiles): Add gnu.eps and gnu.png.
4243 2002-07-25  Petter Reinholdtsen  <pere@hungry.com>
4245         * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
4246         Add `operator!='.
4248 2002-07-24  Werner LEMBERG  <wl@gnu.org>
4250         * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
4251         ' \+' but '  *' for sed.
4252         (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
4254 2002-07-23  Werner LEMBERG  <wl@gnu.org>
4256         * doc/groff.texinfo: Document `papersize' keyword.
4257         * NEWS, man/groff_font.man: Updated.
4259 2002-07-23  Colin Watson  <cjwatson@debian.org>
4261         Extend papersize keyword to accept more than a single entry.  The
4262         first valid will be used.
4264         * src/libs/libgroff/font.cc (font::load_desc): Implement it.
4265         (font::scan_papersize): Really skip final newline.
4266         * src/preproc/html/pre-html.cc (get_papersize): Ditto.
4268 2002-07-23  Werner LEMBERG  <wl@gnu.org>
4270         * configure.ac: Test for isatty.
4271         * configure: Regenerated.
4272         * src/include/posix.h: Check HAVE_ISATTY.
4273         * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
4274         * src/utils/lookbib/lookbib.cc: Include posix.h.
4275         Don't declare isatty.
4277 2002-07-21  Werner LEMBERG  <wl@gnu.org>
4279         * NEWS: Add `output' request.
4281         * REVISION: Increased to 1.
4283 Version 1.18.0 released
4284 =======================
4286 2002-07-19  Gaius Mulley  <gaius@glam.ac.uk>
4288         Allow internal glyph indices > 0xFF in grohtml for input characters.
4290         * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
4291         as parameter.
4292         (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
4293         Updated all callers.
4294         (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
4295         (html_printer): Updated.
4297 2002-07-19  Werner LEMBERG  <wl@gnu.org>
4299         * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
4300         * font/devutf8/R.proto: Adding some missing glyphs.
4301         * font/devutf8/NOTES: Updated.
4303         * tmac/dvi.tmac: Add more composite glyphs.
4304         * tmac/html.tmac: Updated.
4306         * man/groff_char.man: Add `sum' and `product' entities.
4308         * NEWS: Updated.
4310 2002-07-18  Gaius Mulley  <gaius@glam.ac.uk>
4312         Improved table, tab, and indenting support.
4314         * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
4315         string_iterator::suppress_newline_flag): Removed.  Updated all
4316         function which have used it.
4318         * src/roff/troff/env.cc: Include `input.h'.
4319         (environment::add_node): Accept 0 as parameter.
4320         (environment::add_html_tag): Add `force' parameter.
4321         Updated all callers.
4322         (environment::add_html_tag_tabs): Ditto.
4323         For the moment, support left-aligned tabs only.
4324         (environment::make_html_tag): New function.
4325         (fill, no_fill): Set .br html tag additionally.
4326         (environment::newline): Emit `eol.ce' or `eol' tag for html.
4327         (environment::add_html_tag_eol): Removed.
4328         (tab_stops::distance_to_next_tab): Add variant for handling 
4329         nextpos'.
4330         (environment::distance_to_next_tab): Ditto.
4331         Updated all callers.
4332         (environment::handle_tab): Handle tabs for html.
4333         
4334         * src/roff/troff/env.h: Updated.
4336         * src/roff/troff/div.cc: Updated all callers of
4337         `environment::add_html_tag'.
4339         * src/devices/grohtml/html-table.cc,
4340         src/devices/grohtml/html-table.h: New files.
4342         * src/devices/grohtml/html-text.cc (html_text): New members
4343         `blank_para' and `start_space'.
4344         (html_text::issue_tag): Don't emit TABLE_TAG.
4345         Handle indentation for PRE_TAG and P_TAG.
4346         (html_text::end_tag): Updated.
4347         (html_text::table_is_void, html_text::issue_table_begin,
4348         html_text::issue_table_end): Removed.
4349         (html_text::do_push): Simplified.
4350         [DEBUGGING]: Small fix.
4351         (html_text::push_para): Add new parameter for indentation; updated
4352         all callers.
4353         Handle PRE_TAG.
4354         (html_text::do_indent, html_text::do_table, html_text::done_table,
4355         html_text::is_in_table): Removed.
4356         (html_text::do_pre): Handle P_TAG also.
4357         (html_text::shutdown): Handle p->indent.
4358         (html_text::check_emit_text): Simplified.
4359         (html_text::do_emittext): Reset `blank_para'.
4360         (html_text::do_para): Add new parameter for indentation; updated
4361         all callers.
4362         (html_text::remove_indent): New function.
4363         (html_text::do_space): Handle verbatim text properly.
4364         (html_text::ever_emitted_text, html_text::starts_with_space,
4365         html_text::remove_para_align): New functions.
4366         (html_text::dump_stack_element, html_text::dump_stack): Updated.
4368         * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
4369         Updated.
4371         * src/devices/grohtml/post-html.cc: Include html-table.h.
4372         (INDENTATION): Removed.
4373         (text_glob): Added many `is_<foo>' functions.
4374         Added table description `tab'.
4375         Added `get_arg',`get_tab_args', `remember_table', and `get_table'
4376         member functions.
4377         (list): Add `insert' and `move_to' member functions.
4378         (page): Add `insert_tag' member function.
4379         (page::dump_page) [DEBUG_TABLES]: Improved.
4380         (html_printer): Add `table' and `max_linelength' elements.
4381         Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
4382         `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
4383         `remove_tabs', `remove_courier_tabs'.
4384         (html_printer::emit_raw): Handle indentation.
4385         (html_printer::do_center, html_printer::write_header): Updated.
4386         (html_printer::is_courier_until_eol): Check for tag.
4387         (html_printer::do_linelength): Handle max_linelength.
4388         (html_printer::do_page_offset, html_printer::do_indentation): Handle
4389         fill_on.
4390         (html_printer::do_tempindent): Updated.
4391         (html_printer::do_indentedparagraph): Removed.
4392         (html_printer::do_indent): Simplified.
4393         (html_printer::do_eol): Use `ever_emitted_text'.
4394         (html_printer::do_flush, html_printer::do_links): Don't call
4395         done_table.
4396         (html_printer::do_break): Handle end_tempindent.
4397         (html_printer::troff_tag): Get argument.
4398         Don't handle `.ip'.
4399         Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
4400         (html_printer::flush_page): Call `lookahead_for_tables'.
4401         Don't call `done_table'.
4402         (html_printer::add_to_sbuf): Always call do_indent.
4404         * src/devices/grohtml/Makefile.sub: Updated.
4406         * tmac/an-old.tmac (TP): Don't handle html device specially.
4407         (an-do-tag-html): New function which will be used instead of
4408         `an-do-tag' if html device is used.
4410         * tmac/html.tmac: Call .po to pass default page offset to grohtml.
4412         * tmac/s.tmac (@IP): Don't handle html device specially.
4413         (@IP-html): New function which will be used instead of `@IP' if
4414         html device is used.
4416         * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
4417         is a hack which will eventually vanish again.
4418         (PIMG): Handle `-C' option correctly if not html.
4419         (HR): Use HTML-NS.
4421 2002-07-17  Werner LEMBERG  <wl@gnu.org>
4423         * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
4425 2002-07-14  Eric S. Raymond  <esr@thyrsus.com>
4427         * contrib/pic2graph/pic2graph.*: Use convert(1).
4428         * contrib/eqn2graph/eqn2graph.*: Minor fixes.
4430 2002-07-14  Bernd Warken  <bwarken@mayn.de>
4432         * tmac/groff_trace.man: New file.
4433         * tmac/Makefile.sub: Updated.
4434         * NEWS: Updated.
4436 2002-07-13  Werner LEMBERG  <wl@gnu.org>
4438         * src/roff/groff/groff.man: Add some cross references.
4440 2002-07-12  Werner LEMBERG  <wl@gnu.org>
4442         * src/roff/troff/input.cc (substring_request): Add warnings for
4443         string indices out of range.
4445 2002-07-11  Werner LEMBERG  <wl@gnu.org>
4447         * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
4448         * font/devdvi/*EC: Regenerated.
4450 2002-07-10  Bernd Warken  <bwarken@mayn.de>
4452         * man/groff_char.man: Updated and extended.
4454 2002-07-10  Werner LEMBERG  <wl@gnu.org>
4456         * src/roff/troff/input.cc (length_macro): Renamed to...
4457         (length_request): This.
4458         Move call of `tok.next()' to the very end, otherwise the register
4459         value hasn't been updated yet.
4460         (init_input_requests): Updated.
4462 2002-07-09  Werner LEMBERG  <wl@gnu.org>
4464         * src/roff/troff/input.cc (substring_macro): Renamed to...
4465         (substring_request): This.
4466         (init_input_requests): Updated.
4467         * src/roff/troff/request.h: Updated.
4469 2002-07-08  Robert D. Goulding  <goulding@Princeton.EDU>
4471         * src/roff/grog/grog.sh: Fix typo.
4473 2002-07-08  Werner LEMBERG  <wl@gnu.org>
4475         * win32-diffs: Updated.
4477         Handle `papersize' keyword properly in DESC.
4479         * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
4480         type.
4481         Updated all callers.
4482         * src/libs/libgroff/paper.cc: Add four more paper formats used by
4483         grolj4.
4484         * src/include/paper.h: Updated.
4486         * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
4487         Other minor C syntax fixes.
4488         (papersize, paperlength, paperwidth): Renamed to `user_*'.
4489         (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
4490         members.
4491         (lbp_printer::lbp_printer): Pass three arguments.
4492         Set paper dimensions properly.
4493         (make_printer, main): Updated.
4494         (handle_unknown_desc_command): Fix error messages.
4495         (main): Handle papersize keyword in DESC properly.
4497         * src/devices/grolj4/lj4.cc (paper_size): Renamed to
4498         `user_paper_size'.
4499         (lbp_printer::lbp_printer): Pass an argument.
4500         Set paper_size properly.
4501         (handle_unknown_desc_command): Removed.
4502         (make_printer, main): Updated.
4503         * src/devices/grolj4/grolj4.man: Minor documentation fix.
4505         * man/groff_font.man, NEWS: Updated.
4507 2002-07-07  Werner LEMBERG  <wl@gnu.org>
4509         Integrated eqn2graph, contributed by Eric S. Raymond.
4511         * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
4512         files.
4513         * Makefile.in, NEWS: Updated.
4515 2002-06-04  Werner LEMBERG  <wl@gnu.org>
4517         Changing the substring request to make it fit better with other
4518         string manipulation functions in other programming languages:
4519         Index 0 is now the first character in the string, and index -1
4520         indicates the last character.  Since this request didn't work
4521         properly anyway in the last release, it doesn't harm too much to
4522         change the syntax.
4524         * src/roff/troff/input.cc (substring_macro): Use loops to get
4525         the real string length (ignoring COMPATIBLE_SAVE and
4526         COMPATIBLE_RESTORE) and offsets.
4527         Implement change described above.
4529         * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
4530         (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
4532         * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
4534 2002-06-03  Werner LEMBERG  <wl@gnu.org>
4536         Make .chop work with .de1 and friends.  COMPATIBLE_SAVE and
4537         COMPATIBLE_RESTORE are completely ignored.
4539         * src/roff/troff/input.cc (char_list::set, char_list::get): New
4540         functions.
4541         (macro): `length' field renamed to `len'.
4542         Added new field `empty_macro' (1 if macro is empty), to be used
4543         instead of checking `len'.
4544         Updated all callers.
4545         (macro::empty): Updated.
4546         (macro::length, macro::set, macro::get): New functions.
4547         (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
4548         Set `empty_macro'.
4549         (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
4550         COMPATIBLE_RESTORE pairs.
4551         (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
4552         * src/roff/troff/request.h: Updated.
4554         * doc/groff.texinfo: Document .chop's behaviour better.
4556 2002-06-02  Werner LEMBERG  <wl@gnu.org>
4558         * doc/pic.ms: Fix documentation for the addition of positions.
4560         * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
4562 2002-06-29  Werner LEMBERG  <wl@gnu.org>
4564         Implementation of string arguments of the form \*[foo arg1 arg2 ...]
4566         * src/roff/troff/input.cc (have_string_arg): New global variable.
4567         (read_mode): New enumeration.
4568         (read_escape_name): Use it.  Update all calls.
4569         (read_long_escape_name): Use it.  Update all calls.
4570         Set have_string_arg if appropriate.
4571         (get_char_for_escape_name): Add parameter for handling space
4572         character.
4573         (interpolate_string_with_args, decode_string_args): New functions.
4574         (get_copy, token::next): Call it if necessary.
4575         (interpolate_string): Fix error message.
4577         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
4578         Document it.
4580 2002-06-24  Bernd Warken  <bwarken@mayn.de>
4582         * man/groff_tmac.man: Updated and extended.
4584 2002-06-24  Werner LEMBERG  <wl@gnu.org>
4586         * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
4588 2002-06-23  Werner LEMBERG  <wl@gnu.org>
4590         * doc/pic.ms: Improve documentation of composite block objects.
4592 2002-06-22  Werner LEMBERG  <wl@gnu.org>
4594         * src/roff/troff/input.cc (init_registers): Add three registers
4595         `seconds', `minutes', and `hours' to hold the current time.
4597         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
4598         Updated.
4600 2002-06-20  Werner LEMBERG  <wl@gnu.org>
4602         Make \X accept both `\ ' and `\~', converting them to single space
4603         characters.
4605         * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
4606         (token::unstretchable_space): New inline function.
4607         * src/roff/troff/input.cc (token::next, token::delimiter,
4608         token::description, token::add_to_node_list, token::process): Handle
4609         TOKEN_UNSTRETCHABLE_NODE.
4610         (encode_char): Handle tok.stretchable_space and
4611         tok.unstretchable_space.
4613         * NEWS, doc/groff.texinfo: Document it..
4615 2002-06-19  Werner LEMBERG  <wl@gnu.org>
4617         * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
4619         * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
4620         keyword to enable/disable SGR output.
4621         (tty_printer::change_fill_color): New function.
4622         * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
4624         * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
4625         call.
4627 2002-06-18  Werner LEMBERG  <wl@gnu.org>
4629         Add a `color' request and a `.color' register to control usage of
4630         colours.
4632         * src/roff/troff/input.cc (disable_color_flag): Replaced with...
4633         (color_flag): This (which is the inverse).
4634         (activate_color): New function.
4635         (main, init_input_requests): Updated.
4636         * src/roff/troff/troff.h, src/roff/troff/node.cc
4637         (troff_output_file::fill_color, troff_output_file::glyph_color):
4638         Updated.
4640         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
4641         Document the changes.
4643 2002-06-17  Colin Watson  <cjwatson@debian.org>
4645         Circumvent bug in autoconf 2.53 regarding top_builddir.
4647         * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
4648         * Makefile.in, doc/Makefile.in:
4649         s/@top_builddir@/@groff_top_builddir@/.
4650         * configure: Regenerated (with autoconf 2.53).
4652 2002-06-17  Werner LEMBERG  <wl@gnu.org>
4654         * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
4655         `paperwidth' and `paperlength' for the `papersize' keyword.
4657 2002-06-16  P. Alejandro Lopez-Valencia  <dradul@007mundo.com>
4659         * src/devices/grops/grops.man: Add info about Type 42 fonts.
4661 2002-06-15  Gaius Mulley  <gaius@glam.ac.uk>
4663         * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
4664         html_printer::do_linelength, html_printer::do_pageoffset,
4665         html_printer::do_indentation, html_printer::do_tempindent,
4666         html_printer::do_break, html_printer::begin_page): Clear indented
4667         text.
4668         * tmac/html.tmac: Disable hyphenation.
4670 2002-06-15  Werner LEMBERG  <wl@gnu.org>
4672         Don't produce HTML files if utility programs are missing.
4674         * Makefile.in (make_html, make_install_html): New variables.
4675         (MDEFINES): Updated.
4677         * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
4678         utility programs.
4679         * configure.ac: Use it.
4680         * configure: Regenerated.
4682         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
4683         (HTMLEXAMPLESFILES): This new variable.
4684         (EXAMPLESIMAGEFILES): Renamed to...
4685         (HTMLEXAMPLEIMAGEFILES): This.
4686         (CLEANADD): Add HTMLEXAMPLEFILES.
4687         (all): Use `make_html'.
4688         (html): New target.
4689         (install_data): Use `make_install_html'.
4690         Move html stuff to...
4691         (install_html): This new target.
4692         (uninstall_sub): Updated.
4694 2002-06-14  Bernd Warken  <bwarken@mayn.de>
4696         * src/roff/grog/Makefile.sub (grog): Renamed to...
4697         (grog.old): This.
4698         (grog): New rule to always install grog.sh as grog.
4700 2002-06-08  Bernd Warken  <bwarken@mayn.de>
4702         * src/roff/grog/grog.pl: Fix typo.
4704 2002-06-07  Werner LEMBERG  <wl@gnu.org>
4706         * doc/groff.texinfo: Add more info on .tr arguments.
4708 2002-06-05  Werner LEMBERG  <wl@gnu.org>
4710         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
4712         * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
4713         * configure: Regenerated.
4715 2002-06-05  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
4717         * src/roff/troff/symbol.cc (table_sizes): Add more values.
4719         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
4721 2002-06-04  Werner LEMBERG  <wl@gnu.org>
4723         * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
4724         is not initialized at the time we need it in case `--prefix' hasn't
4725         been set.  Check for `ac_default_prefix' also.
4726         Test for `papersize' keyword also and generalize allowed whitespace.
4727         * configure: Regenerated.
4729         * font/devps/Makefile.sub (DESC): Use `papersize' instead of
4730         `paperlength'.
4732         * src/libs/libgroff/Makefile.sub (version, revision): Replaced
4733         with...
4734         (src_version, src_revision): New variables to avoid overwriting
4735         from parent make process.
4736         (version.cc): Updated.
4738         * src/preproc/html/pre-html.cc: Include paper.h and font.h.
4739         (linebuf, linebufsize): New global variables.
4740         (sys_fatal): Use `fatal' to abort properly.
4741         (get_line): New function.
4742         (get_resolution): Use it.
4743         Improve error messages.
4744         (get_papersize): Check `papersize' also.
4745         Use `get_line'.
4746         Improve error messages.
4748 2002-06-03  Werner LEMBERG  <wl@gnu.org>
4750         * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
4751         should be removed only if builddir is not srcdir.
4752         (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
4753         (clean): Depend on `mostlyclean'.
4754         (distclean): Depend on `clean'.
4755         (realclean, extraclean): Depend on `distclean'.
4756         (.y.cc, .y.o): Simplified.  The output files are no longer written
4757         to srcdir but to builddir.
4758         * Makefile.in (MDEFINES): Add `version' and `revision'.
4759         (uninstall_dirs): Fix order of directories.
4760         * doc/Makefile.sub (version, revision): Removed.
4761         (CLEANADD): Removed grnexmpl.g, groff, groff-*.
4762         Added `HTMLDOCFILES'.
4763         (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
4764         * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
4765         src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
4766         as prefix.
4768         * doc/texinfo.tex (\authortt): New macro.
4769         (\shortcontt): Define.
4770         (\titlepage): Set \tt to \authortt while defining \authorfont.
4771         (\appendixbox): New macro.
4772         (\chapmacro, \appendixentry): Use \appendixbox to get even
4773         indentation for letters.
4774         (\summarycontents): Set \tt.
4775         (\internalpagesize): Add two arguments for real paper width and
4776         height as needed by pdfTeX.
4777         (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
4778         Updated.
4779         (\tempdima, \tempdimb): New temporary dimensions.
4780         (\pagesizesyyy): Updated.
4782 2002-06-02  Werner LEMBERG  <wl@gnu.org>
4784         Adding a new keyword `papersize' to the DESC file format (similar
4785         but not completely identical to grolbp's extension).  grops now has
4786         a -p command line option to override `papersize'.  Finally, grolbp
4787         has been adapted to the new syntax.
4789         * src/libs/libgroff/paper.cc, src/include/paper.h: New files.  It
4790         defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
4791         elements.
4792         * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
4793         (CCSRCS): Add `paper.cc'.
4795         * src/include/font.h (font): Add `papersize' element.
4796         * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
4797         (font::scan_papersize): New function.
4798         (font::load_desc): Use it for handling `papersize' keyword.
4799         * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
4801         * src/devices/grops/ps.cc: Include paper.h.
4802         (user_paper_length): New global variable.
4803         (ps_printer): Use paper length as initializer.
4804         (make_printer): Updated.
4805         (main): Handle new `-p' option.
4806         * src/devices/grops/grops.man: Updated.
4808         * src/devices/grolbp/lbp.cc: Include paper.h.
4809         s/papersizes/lbp_papersizes/.
4810         (set_papersize): Use new `papersizes' array.
4811         (handle_unknown_desc_command): Don't handle `papersize'.
4812         (main): Use `font::scan_papersize' for handling `-p' option.
4813         * src/devices/grolbp/grolbp.man: Updated.
4815         * man/groff_font.man: Document `papersize'.
4816         * NEWS: Updated.
4818 2002-05-30  Werner LEMBERG  <wl@gnu.org>
4820         * src/devices/grops/TODO: Updated.
4821         * src/devices/grops/grops.man: More info on paper formats.
4822         * man/groff_font.man: Document `paperheight' and `paperwidth'.
4824 2002-05-29  Werner LEMBERG  <wl@gnu.org>
4826         * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
4827         to list only if srcdir != currdir.
4828         (distfiles): New target.
4830         * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
4831         (NOMAKEDIRS): New variable.
4832         (DISTDIRS): Use it.
4834 2002-05-26  Werner LEMBERG  <wl@gnu.org>
4836         Add .output request, similar to \! at top-level.
4838         * src/roff/troff/input.cc (transparent): Remove unused declaration.
4839         (output_request): New function.
4840         (init_input_requests): Add it.
4841         Sorted.
4842         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
4843         Document it.
4845         * Makefile.in (MDEFINES): Add INSTALL_INFO.
4846         (prepare_examples): Fix typo.
4847         * doc/groff.texinfo (@direntry): Fix it.
4849 2002-05-25  Werner LEMBERG  <wl@gnu.org>
4851         Including the doc subdir into groff's Makefile system.
4853         * aclocal.m4 (GROFF_INSTALL_INFO): New function.
4854         * configure.ac: Use it.
4855         Generate `doc/Makefile'.
4856         * configure: Regenerated.
4858         * Makefile.in (infodir, INSTALL_INFO): New variables.
4859         (MDEFINES, uninstall_dirs): Updated.
4860         (OTHERDIRS): Add `doc'.
4861         * Makefile.comm (CLEANDIRADD): New variable.
4862         (mostlyclean): Use it.
4864         * doc/Makefile.sub, doc/Makefile.in: New files.
4865         * doc/Makefile: Removed.
4867         * NEWS, INSTALL: Updated.
4869 2002-05-24  Werner LEMBERG  <wl@gnu.org>
4871         * doc/homepage.ms: Renamed to ...
4872         * doc/webpage.ms: This.
4873         Use `.NHR'.
4875 2002-05-23  Werner LEMBERG  <wl@gnu.org>
4877         Integrating the `mom' macro package, contributed by Peter Schaffter
4878         <df191@ncf.ca>.
4880         * contrib/mom/*: New subdirectory tree.
4881         * Makefile.in (docdir, exampledir, htmldocdir): New variables to
4882         be used for documentation files.
4883         (MDEFINES, uninstall_dirs): Use them.
4884         (OTHERDIRS): Add contrib/mom.
4885         * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
4886         @HTMLDOCDIR@.
4887         * MANIFEST, NEWS: Updated.
4889 2002-05-22  Gaius Mulley  <gaius@glam.ac.uk>
4891         Change syntax of \O: \O[0] suppresses output, \O[1] enables output
4892         if at outer level; at start-up we are at outer level.
4894         * src/roff/troff/input.cc (do_suppress): Implement it.
4895         Simplify \O[3].
4897         Add option -p to show progress information.
4898         pre-grohtml will now render only one page at a time, reducing the
4899         size of needed disk resources enormously.
4901         * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
4902         (imagePageName): New global variable.
4903         (psPageName, show_progress, currentPageNo): New global variables.
4904         (html_system): Close saved stderr and stdout handles.
4905         (write_end_image): Accept a parameter to control \O escape.
4906         (write_start_image): Adapted to new \O meaning.
4907         (char_buffer::write_upto_newline): Updated.
4908         (createAllPages): Replaced with...
4909         (createPage): This new function to create a single page for images.
4910         It uses `psselect' from the psutils package.
4911         (removeAllPages): Removed.
4912         (createImage): Updated.
4913         Handle progress display.
4914         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
4915         (scanArguments): Add option -p.
4916         (makeTempFiles): Updated to create temp files for psPageName and
4917         imagePageName.
4918         (removeTempFiles): Removed.
4919         (main): Updated.
4921         * src/devices/grohtml/post-html.cc (header_desc::write_headings,
4922         html_printer::write_header): Append `\0' to `buffer'.
4923         (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
4924         (main): Handle -p.
4925         * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
4926         Handle `text_emitted'.
4927         (html_text::table_is_void): Slightly rewritten.
4928         (stop): New external symbol.
4929         (html_text::do_push) [DEBUGGING]: Use it and simplify.
4930         (html_text::shutdown): Call `dump_stack'.
4931         (html_text::do_space): Rewritten.
4932         * src/devices/grohtml/grohtml.man: Document -p and the need of
4933         `psselect'.
4935         * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
4936         new \O syntax.
4937         Call \O[0] if `ps4html' is active.
4938         * tmac/s.tmac (@EQ, @EN): Handle html better.
4939         (@TS, TE): Ditto.
4940         * tmac/html.tmac: Don't use black for background colour.
4942         * src/roff/troff/node.cc: Include `div.h'.
4943         (troff_output_file::really_print_line): Don't use `is_on'. 
4944         (troff_output_file::word_marker, troff_output_file::flush_tbuf
4945         troff_output_file::check_charinfo,
4946         troff_output_file::put_char_width, troff_output_file::put_char,
4947         troff_output_file::determine_line_limits, troff_output_file::draw,
4948         real_output_file::begin_page, glyph_color_node::tprintf,
4949         fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
4950         Use `is_on'.
4951         (troff_output_file::really_on): Call `do_motion'.
4952         (suppress_node::tprint): Use `get_page_number' instead of `%'
4953         register.
4954         Call `reset_output_registers' conditionally on `is_on'.
4956         * doc/groff.texinfo: Document new syntax of \O.
4957         * NEWS, man/groff_diff.man: Updated.
4959 2002-05-22  Werner LEMBERG  <wl@gnu.org>
4961         * MORE.STUFF: Add info about David Frey's deroff implementation.
4962         Mention troff.org.
4964 2002-05-16  Werner LEMBERG  <wl@gnu.org>
4966         Pic's `with' attribute now accepts positions.
4968         * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
4969         ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
4970         conflicts.
4971         (object_spec): Add rule for `WITH' and `position'.
4972         (relative_path): Give `corner' the precedence of `CHOP'.
4973         * src/preproc/pic/object.h (path): New members `pos' and
4974         `is_position'.
4975         * src/preproc/pic/object.cc: Updated initializers of `path'.
4976         (path::follow): Handle `is_position'.
4978         * doc/pic.ms: Completely updated grammar description.
4979         Many typographical improvements.
4981 2002-05-15  Werner LEMBERG  <wl@gnu.org>
4983         * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
4984         code of x in range 0-127) also.
4985         * doc/groff.texinfo, man/groff_diff.man: Updated.
4987         Added keywords `north', `south', `east', and `west' for corners
4988         in pic.
4990         * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
4991         and WEST.
4992         (yylex): Handle them.
4993         * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
4994         (corner): Handle them.
4996 2002-05-14  Werner LEMBERG  <wl@gnu.org>
4998         * src/devices/grops/grops.man: Clarify handling of `download' file.
5000 2002-05-11  Werner LEMBERG  <wl@gnu.org>
5002         Adding `warnscale' and `spreadwarn' requests, based on a patch from
5003         Jeffrey Friedl <jfriedl@yahoo.com>.
5005         * src/roff/troff/input.cc (spread_limit, warn_scale,
5006         warn_scaling_indicator): New global variables.
5007         (warnscale_request, spreadwarn_requests): New functions.
5008         (main): Initialize `warn_scale' and `warn_scaling_indicator'.
5009         (init_input_requests): Updated.
5010         (error_type): Add `OUTPUT_WARNING'.
5011         (do_error): Handle it.
5012         (output_warning): New warning function which shows output location.
5013         * src/roff/troff/env.h (spread_limit): New external variable.
5014         * src/roff/troff/env.cc (environment::choose_breakpoint): Use
5015         `output_warning'.
5016         (distribute_space): Emit warning if added space is larger than
5017         `spread_limit'.
5018         (environment::possibly_break_line): Emit warning if a line can't
5019         be adjusted on both sides.
5021         * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
5023 2002-05-08  Werner LEMBERG  <wl@gnu.org>
5025         * src/roff/troff/node.cc (special_node::special_node): Use
5026         env_definite_font(curenv) instead of curenv->get_font().  Otherwise
5027         \X''\% crashes, for example.
5029         * doc/groff.texinfo: Document \! and \? used at top-level.
5031 2002-05-06  Werner LEMBERG  <wl@gnu.org>
5033         * src/preproc/pic/pic.man: Fix some keyword syntax.
5034         Other minor typographical fixes.
5036         * src/roff/groff/groff.man: Fix typos.
5038 2002-05-04  Werner LEMBERG  <wl@gnu.org>
5040         * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
5041         (ShortOpt[]): This to avoid problems with refer.
5043         * doc/pic.ms: Fix typo.
5044         Fix pic grammar description.
5046         * tmac/an-old.tmac (ne): Use de1, not de.
5048 2002-05-03  Werner LEMBERG  <wl@gnu.org>
5050         * doc/groff.texinfo: Finished separation of glyphs and characters.
5051         Don't use the string `Appendix' for appendix headers (both in
5052         the text and the table of contents).
5053         * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
5054         directories.
5056         Use registers LL and LT (similar to -ms) for controlling the
5057         length of title and line, respectively, in the -man and -mdoc
5058         macro packages.
5060         * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
5061         (doc-setup-page-layout): Use \n[LL] and \n[LT].
5062         * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
5063         (TH): Use \n[LL].
5064         (an-header, an-p-footer): Use \n[LT].
5065         * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
5066         doc/groff.texinfo: Document it.
5068 2002-05-02  Werner LEMBERG  <wl@gnu.org>
5070         * doc/fdl.texi: New file.
5071         * doc/groff.texinfo: Include it.
5072         Define and use @copying.
5073         Starting with separating glyph, symbol, and character.
5075 2002-04-27  Werner LEMBERG  <wl@gnu.org>
5077         * Makefile.in (EXEEXT): Set it.
5078         * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
5079         programs.
5081         * src/include/nonposix.h: Define GS_NAME.
5082         * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
5084         Some preliminary changes for EMX support under OS/2.
5086         * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
5087         __EMX__ similar to __MSDOS__.
5088         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
5090 2002-04-25  Werner LEMBERG  <wl@gnu.org>
5092         * doc/groff.texinfo: Integrated groff_out.man.
5093         Some macro fixes.
5095 2002-04-23  Werner LEMBERG  <wl@gnu.org>
5097         * man/groff_out.man: Minor fixes.
5099 2002-04-23  Werner LEMBERG  <wl@gnu.org>
5101         * doc/groff.texinfo: Moving @cindex entries after @Def* to get
5102         correct page references.
5103         Fixed many index entries.
5105 2002-04-23  Bernd Warken  <bwarken@mayn.de>
5107         * man/roff.man: Enlarged.
5109 2002-04-22  Werner LEMBERG  <wl@gnu.org>
5111         * doc/groff.texinfo: More examples, other fixes.
5113 2002-04-20  Werner LEMBERG  <wl@gnu.org>
5115         * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
5116         will now form a chain, e.g.
5118           .pi foo
5119           .pi bar
5121         is now the same as
5123           .pi foo | bar
5125         This is for compatibility with plan 9's troff.
5127         * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
5128         with UNIX troff.
5129         * NEWS: Updated.
5131         * doc/groff.texinfo: Add documentation of remaining requests and
5132         registers.
5134 2002-04-19  Werner LEMBERG  <wl@gnu.org>
5136         * doc/groff.texinfo: Add documentation of remaining escapes.
5138         * font/devdvi/generate/tc.map: Remove entry for `sr'.
5139         * font/devdvi/*TC: Regenerated.
5141 2002-04-18  Werner LEMBERG  <wl@gnu.org>
5143         * src/roff/troff/input.cc (token::next): Make \H behave consistently
5144         if not in compatibility mode, i.e., increment relative to the
5145         previous height.
5146         * doc/groff.texinfo: Updated accordingly.
5148 2002-04-17  Werner LEMBERG  <wl@gnu.org>
5150         * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
5152 2002-04-16  Bernd Warken  <bwarken@mayn.de>
5154         * src/roff/groff/groff.man: Improve documentation of -P option.
5155         Other minor fixes.
5157 2002-04-15  Werner LEMBERG  <wl@gnu.org>
5159         Add new escape \F to switch font family.
5161         * src/roff/troff/input.cc (token::next): Handle \F.
5162         * src/roff/troff/env.cc (environment::set_family): Handle
5163         `interrupted' flag.
5164         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5165         Document it.
5167 2002-04-14  Werner LEMBERG  <wl@gnu.org>
5169         * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
5170         spaces in tags.
5172 2002-04-13  Werner LEMBERG  <wl@gnu.org>
5174         Implement \f[] as an alternative to \fP.  Change \mP and \MP to
5175         \m[] and \M[], respectively.
5177         * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
5178         (symbol::symbol): Handle NULL string and empty string differently.
5179         * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
5180         * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
5181         Add optional parameter.
5182         Updated calling functions.
5183         (get_copy, do_glyph_color, do_fill_color, token::next): Use
5184         `symbol::is_empty'.
5185         * src/roff/troff/env.cc (environment::set_font): Ditto.
5187         * src/preproc/pic/troff.cc (troff_output::set_fill,
5188         troff_output::reset_color: Updated.
5190         * tmac/www.tmac: Updated.
5192         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
5193         doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
5194         Updated.
5196         * tmac/Xps.tmac: Remove some redundant code.
5198         * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
5199         tmac/dvi.tmac, man/roff.man, man/groff_out.man, man/groff.man,
5200         man/groff_diff.man, src/roff/groff/groff.man: Replace \f[P] with
5201         \f[].
5203 2002-04-13  Bernd Warken  <bwarken@mayn.de>
5205         * src/include/printer.h, src/libs/libdriver/printer.cc
5206         (printer::change_fill_color): New member function.
5207         * src/libs/libdriver/input.cc (parse_D_command): Use it.
5209 2002-04-12  Werner LEMBERG  <wl@gnu.org>
5211         * doc/groff.texinfo: Completed pass on gtroff reference.
5213 2002-04-11  Werner LEMBERG  <wl@gnu.org>
5215         * doc/groff.texinfo: More fixes.
5217 2002-04-11  Bernd Warken  <bwarken@mayn.de>
5219         * src/include/color.h: Decorate with `const'.
5220         Use `size_t'.
5221         Include `stddef.h'.
5222         * src/libs/libgroff.color.cc: Decorate with `const'.
5223         Use `size_t'.
5224         (color::color): Initialize members.
5225         * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
5226         command according to the documentation.
5228         * man/groff_out.man: Updated.
5229         Minor fixes.
5231 2002-04-11  Gaius Mulley  <gaius@glam.ac.uk>
5233         * src/preproc/html/pre-html.cc (write_start_image): Remove
5234         redundant output.
5235         * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
5237         * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
5238         \C'hy' caused an assertion failure.
5240         * src/roff/troff/env.cc (environment::environment): Initialize
5241         `emitted_node'.
5242         (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
5244 2002-04-10  Werner LEMBERG  <wl@gnu.org>
5246         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
5247         Document pvs request and .pvs register.
5249 2002-04-09  Werner LEMBERG  <wl@gnu.org>
5251         * doc/groff.texinfo: Improve and fix documentation of diversions
5252         and environments.
5254 2002-04-08  Werner LEMBERG  <wl@gnu.org>
5256         * doc/groff.texinfo: Fix documentation of drawing functions.
5257         Other minor fixes.
5259 2002-04-07  Werner LEMBERG  <wl@gnu.org>
5261         * doc/groff.texinfo: Better documentation of double quotes as
5262         arguments.
5263         Other minor fixes.
5265 2002-04-06  Werner LEMBERG  <wl@gnu.org>
5267         * man/groff_font.man: Document names of special characters better.
5268         * doc/groff.texinfo: Minor improvements.
5270         * tmac/lbp.tmac: Load latin1.tmac.
5271         * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
5273         * font/devX*/*: Regenerated (all chars > 0x80 removed).
5275 2002-04-05  Werner LEMBERG  <wl@gnu.org>
5277         * tmac/tty.tmac: Don't use shc request.
5278         * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
5279         * NEWS: Updated.
5281         * man/groff_diff.man: Minor fixes.
5283         * font/devlbp/*: Remove all `charXXX' entities.
5285         * src/libs/libgroff/font.cc (font::~font): Deallocate
5286         `special_device_coding'.
5287         (font::load): Use `new' for allocating `special_device_coding'.
5288         * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
5289         Removed unused member.
5291 2002-04-05  Werner LEMBERG  <wl@gnu.org>
5293         * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
5294         (resource_manager::do_begin_binary,
5295         resource_manager::do_begin_data): Use it.
5297         * doc/texinfo.tex: Updated to version 4.2.
5299         * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
5300         (token::zero_width_break): New inline function.
5301         * src/roff/troff/input.cc (token::next): Use it.
5302         (token::description): Updated.
5303         (encode_char): Ignore `\%', `\&', `\)', and `\:'.
5304         (token::add_to_node_list, token::process): Use it.
5305         * NEWS, doc/groff.texinfo: Updated.
5307         * src/preproc/eqn/over.cc (over_box::output): Fix typo.
5308         * tmac/tty.tmac: Add missing backslash.
5310 2002-04-04  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
5312         * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
5313         `.ps' register instead of `.s' to handle fractional point sizes.
5314         * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
5315         limit_box::output): Ditto.
5316         * src/preproc/eqn/other.cc (size_box::compute_metrics,
5317         size_box::output): Ditto.
5318         * src/preproc/eqn/over.cc (over_box::compute_metrics,
5319         over_box::output): Ditto.
5320         * src/preproc/eqn/script.cc (script_box::compute_metrics,
5321         script_box::output): Ditto.
5322         * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
5323         sqrt_box::output): Ditto.
5325 2002-04-03  Michael Selway  <mas@ssl.co.uk>
5327         * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
5328         Fix typo.
5330 2002-04-03  Werner LEMBERG  <wl@gnu.org>
5332         * doc/homepage.ms: Reduce title size.
5333         * doc/groff.texinfo: Fix documentation of .t register.
5334         Fix handling of colon.
5335         Fix `\' vs. `\\'.
5337         * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
5338         only if page length is positive to avoid a loop.
5340         * tmac/an-old.tmac (ne): Increase page length to avoid problems with
5341         tbl.
5343 2002-04-02  P. Alejandro Lopez-Valencia  <dradul@yahoo.com>
5345         * src/include/nonposix.h, src/roff/groff/pipeline.c:
5346         s/__CYGWIN32__/__CYGWIN__/.
5348 2002-03-28  Gaius Mulley  <gaius@glam.ac.uk>
5350         * doc/gnu.xpm: New image contributed by Emily Mulley.
5351         * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
5352         (homepage.html): Be dependent on gnu.eps.
5353         * doc/homepage.ms: Updated to new image.
5355         * src/devices/grohtml/post-html.cc (html_printer): New member
5356         `sbuf_prev_hpos'.
5357         (html_printer::flush_sbuf, html_printer::set_char): Set it.
5358         (html_printer::sbuf_continuation): Use it.
5360 2002-03-28  Werner LEMBERG  <wl@gnu.org>
5362         * src/libs/libgroff/getopt.c: Updated to latest version.
5364         * tmac/README: More on hyphen.tex license.
5366 2002-03-26  Larry Kollar  <kollar@alltel.net>
5368         * doc/groff.texinfo: Add documentation of most missing requests.
5370 2002-03-25  Werner LEMBERG  <wl@gnu.org>
5372         Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
5373         of `+-', `mu', and `di', respectively.
5375         * font/devascii/R.proto, font/devutf8/R.proto,
5376         font/devlatin1/R.proto, font/devhtml/R.proto,
5377         font/devcp1047/R.proto, font/devlpb/*: Add them.
5378         * font/devps/generate/textmap: Ditto.
5379         * font/devps/*: Regenerated.
5380         * font/devlj4/generate/text.map: Add them.
5381         * font/devlj4/*: Regenerated.
5382         * font/devdvi/generate/tc.map: Use them.
5383         * font/devdvi/generate/texsy.map: Add them.
5384         * font/devdvi/*: Regenerated.
5385         * font/devX*/*: Regenerated.
5387         * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
5388         tmac/tty-char.tmac: Updated.
5390         * NEWS, man/groff_char.man: Updated.
5392 2002-03-24  Werner LEMBERG  <wl@gnu.org>
5394         * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
5395         tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
5396         * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
5397         we use `.fchar' in dvi.tmac.
5398         * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
5399         * tmac/Xps.tmac: Simplify some char definitions.
5400         Add definition for \[f/].
5401         * man/groff_char.man: Updated for new X.tmac.
5403         * tmac/README: New file.
5405 2002-03-23  Phil Lobbes  <phil@perkpartners.com>
5407         * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
5408         internal .y.o rule took precendence over the .y.cc rule, compiling
5409         the yacc files with gcc instead of g++.
5411 2002-03-23  Werner LEMBERG  <wl@gnu.org>
5413         * tmac/dvi.tmac: Add replacement font for `CB'.
5415         * tmac/doc.tmac: s/request/macro/ in messages.
5416         (doc-generic-macro): Improve error message.
5417         * tmac/groff_mdoc.man: Minor improvements.
5419 2002-03-22  Werner LEMBERG  <wl@gnu.org>
5421         * doc/groff.texinfo: Document possible conflict between `tr' and
5422         `char' requests.
5424 2002-03-21  Werner LEMBERG  <wl@gnu.org>
5426         Improve handling of hyphenation patterns.  It is now possible to
5427         use most of TeX's pattern files unmodified.  To make the process
5428         more flexible, a new request `hpfcode' has been added which
5429         provides a character code mapping for the `hpf' request.  See
5430         comment before hpf_getc() for more details.
5432         * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
5433         functions.
5434         (read_patterns_file): Additional parameter for exception dictionary.
5435         Extended to recognize \pattern, \hyphenation, and \endinput.
5436         (do_hyphenation_patterns_file): Updated.
5437         * src/roff/troff/env.h (hpf_code_table): New extern.
5439         * src/roff/troff/input.cc (hpf_code_table): New array.
5440         (init_hpf_code_table, hyphenation_patterns_file_code): New
5441         functions.
5442         (hyphenation_code): Handle translation from `trin' correctly.
5443         (main, init_input_requests): Updated.
5444         (charinfo::set_translation): Handle hyphenation code also.
5446         * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
5447         inline function.
5449         * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
5450         char' is used for offsets in hyphenation exceptions.
5452         * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
5454         * NEWS, man/groff_diff.man, man/groff.man: Document it.
5456 2002-03-20  Larry Kollar  <kollar@alltel.net>
5458         * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
5459         requests.
5461 2002-03-18  Werner LEMBERG  <wl@gnu.org>
5463         * tmac/html.tmac: Fix serious typo.
5465 2002-03-17  Larry Kollar  <kollar@alltel.net>
5467         * doc/groff.texinfo: Add documentation for `writec' request.
5469 2002-03-17  Werner LEMBERG  <wl@gnu.org>
5471         Added request `hpfa' to append hyphenation patterns.
5473         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
5474         parameter `append'.
5475         (hyphenation_patterns_file): Renamed to...
5476         (do_hyphenation_patterns_file): This.
5477         (hyphenation_patterns_file, hyphenation_patterns_file_append): New
5478         functions.
5479         (init_hyphen_requests): Updated.
5480         * NEWS, man/groff.man, man/groff_diff.man: Document it.
5482 2002-03-16  Werner LEMBERG  <wl@gnu.org>
5484         Added request `writec' in analogy to `tmc'.
5486         * src/roff/troff/input.cc (write_request): Renamed to...
5487         (do_write_request): This.
5488         Added one parameter.
5489         (write_request, write_request_continue): New functions.
5490         (init_input_requests): Updated.
5491         * NEWS, man/groff.man, man/groff_diff.man: Document it.
5493         * font/devdvi/DESC.in (sizes): Allow all sizes in the range
5494         5-10000pt.
5495         * NEWS: Document it.
5497 2002-03-15  Werner LEMBERG  <wl@gnu.org>
5499         * man/groff.man: Add writem request.
5501         Add request `trin' (translate input) to make `.asciify' work
5502         correctly.  This is necessary since `charXXX' entity names are no
5503         longer hardcoded in font definition files.
5505         * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
5506         `translate_input' members.
5507         (charinfo::set_asciify_code, charinfo::get_asciify_code,
5508         charinfo::set_translation_input): New methods.
5509         (charinfo::set_translation): Add third argument.
5510         * src/roff/troff/input.cc (charinfo:set_translation): Set
5511         `asciify_code'.
5512         (do_translate): Add second argument.
5513         (translate_input): New function.
5514         (init_input_requests): Updated.
5515         * src/roff/troff/node.cc (glyph_node::asciify,
5516         composite_node::asciify): Use `get_asciify_code'.
5518         * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
5520         * NEWS, man/groff.man, man/groff_diff.man: Updated.
5522 2002-03-14  Larry Kollar  <kollar@alltel.net>
5524         * doc/groff.texinfo: Improve documentation of .RS and .RE.
5526 2002-03-14  Werner LEMBERG  <wl@gnu.org>
5528         Add a new request `sizes' similar to the `sizes' command in DESC
5529         files.
5531         * src/roff/troff/env.cc (override_sizes): New function.
5532         (init_env_requests): Use it.
5533         * src/roff/troff/token.h: Export `read_string'.
5534         * NEWS, man/groff_diff.man, man/groff.man: Document it.
5536 2002-03-12  Werner LEMBERG  <wl@gnu.org>
5538         * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
5540 2002-03-10  Werner LEMBERG  <wl@gnu.org>
5542         * tmac/pspic.tmac: Add support for -Tdvi.
5543         * tmac/dvi.tmac: Include pspic.tmac.
5544         * src/devices/grodvi/grodvi.man: Document it.
5545         * NEWS: Updated.
5547         * font/devlj4/generate/Makefile: Fix URL of metric files.
5549 2002-03-09  Werner LEMBERG  <wl@gnu.org>
5551         * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
5553 2002-03-09  Larry Kollar  <kollar@alltel.net>
5555         * tmac/groff_ms.man: Add documentation for RS and RE macros.
5557 2002-03-08  Werner LEMBERG  <wl@gnu.org>
5559         * doc/groff.texinfo: Fixes for texinfo 4.1.
5561 2002-03-07  Werner LEMBERG  <wl@gnu.org>
5563         * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
5564         included.
5565         Handle CYGWIN properly.
5567 2002-03-07  Paco Andrés Verdú  <pandres@dragonet.es>
5569         * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
5570         * tmac/lbp.tmac: Add some font translations.
5572 2002-03-02  Werner LEMBERG  <wl@gnu.org>
5574         * font/devcp1047/R.proto, font/devlatin1/R.proto,
5575         font/devhtml/R.proto: Remove `charXXX'  entries.
5576         * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
5577         where appropriate.
5579         * font/devlj4/generate/text.map: Remove `charXXX' entries.
5580         * font/devlj4/*: Regenerated all font definition files.
5581         * tmac/lj4.tmac: Load latin1.tmac.
5583         * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
5584         from 2000-06-17: LJ4 metric files are *not* text files.
5586         * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
5587         register to test for EBCDIC.
5589 2002-03-01  Werner LEMBERG  <wl@gnu.org>
5591         * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
5592         files (as grops already does).
5593         * src/utils/afmtodit/afmtodit.man: Document comment lines in map
5594         files.
5595         * src/devices/grops/grops.man: Document comment lines in encoding
5596         files.
5598         * tmac/cp1047.tmac: New file.
5599         * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
5600         * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
5601         * tmac/Makefile.sub (NORMALFILES): Updated.
5603         * tmac/ec.tmac: Don't load latin1.tmac again.
5605         * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
5606         font/devps/generate/dingbats.map,
5607         font/devps/generate/dingbats.rmap, font/devps/text.enc,
5608         font/devps/generate/Makefile (symbolmap): Add header comment.
5609         * font/devps/generate/textmap: Ditto.
5610         Remove `charXXX' entries.
5611         * font/devps/symbolmap: Regenerated.
5612         * font/devps/*: Regenerated all font definition files.
5614 2002-02-28  Werner LEMBERG  <wl@gnu.org>
5616         Add color support to grodvi (for drawing colors are currently
5617         translated to gray values).
5619         * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
5620         (dvi_printer): Add `cur_color' member.
5621         (dvi_printer::set_color): New function.
5622         (draw_dvi_printer): Remove `fill'.
5623         (draw_dvi_printer::fill_next): Pass environment as parameter.
5624         Update code for new color support translated to gray.
5625         (dvi_printer::set_char): Updated.
5626         (dvi_printer::begin_page, dvi_printer::end_page): Handle color
5627         changes crossing the page border.
5628         (dvi_printer::draw): Updated.
5629         Remove cases `f' and `F'.
5630         * tmac/dvi.tmac: Add color definitions.
5631         * NEWS, src/devices/grodvi/grodvi.man: Updated.
5633         * tmac/an-old.tmac (R): Make this a macro to emit a warning if
5634         used incorrectly.
5636         * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
5637         versions of autoconf.
5638         * configure: Updated.
5640         * doc/homepage.ms: Use `.blm'.
5641         * tmac/www.tmac (www-depth): New auxiliary variable.
5642         (www-pop-level): Don't issue HTML tag.
5643         (ULS, ULE, LI): Use absolute indentation.
5645         * src/devices/grops/ps.cc (ps_printer::begin_page,
5646         ps_printer::end_page): Switch forth and back to default color while
5647         starting a new page.
5649 2002-02-27  Werner LEMBERG  <wl@gnu.org>
5651         Add EC and TC fonts to devdvi.
5653         * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
5654         * font/devdvi/generate/cork.map: Renamed to...
5655         * font/devdvi/generate/ec.map: This.
5656         Remove entry for `aq'.
5657         * font/devdvi/generate/tc.map: New file.
5658         * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
5659         EC and TC fonts.
5660         (FONTS): Updated.
5661         * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
5662         * font/devdvi/Makefile.sub (DEVFILES): Updated.
5663         * tmac/ec.tmac: New file.
5664         * tmac/Makefile.sub (NORMALFILES): Updated.
5665         * NEWS, src/devices/grodvi/grodvi.man: Updated.
5666         * man/groff_char.man: Check `ECFONTS' register.
5668         * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
5670 2002-02-26  Werner LEMBERG  <wl@gnu.org>
5672         * font/devdvi/generate/*.map: Remove all `charXXX' entries.
5673         * font/devdvi/generate/cork.map: Add 'y and 'Y.
5674         * font/devdvi/*: Updated.
5675         * tmac/dvi.tmac: Formatting.
5677         Add font `HBI' for the dvi output.
5678         Add support for font families `T' and `H'.
5680         * font/devdvi/HBI: New file.
5681         * font/devdvi/B: Renamed to ...
5682         * font/devdvi/TB: This.
5683         * font/devdvi/BI: Renamed to ...
5684         * font/devdvi/TBI: This.
5685         * font/devdvi/I: Renamed to ...
5686         * font/devdvi/TI: This.
5687         * font/devdvi/R: Renamed to ...
5688         * font/devdvi/TR: This.
5689         * font/devdvi/H: Renamed to ...
5690         * font/devdvi/HR: This.
5691         * font/devdvi/Makefile.sub (DEVFILES): Updated.
5692         * font/devdvi/generate/Makefile (HBI): New rule.
5693         (FONTS): Updated.
5694         (R, I, B, BI, H): Renamed to ...
5695         (TR, TI, TB, TBI, HR): This, respectively.
5696         (srcdir): Fixed.
5697         * NEWS, src/devices/grodvi/grodvi.man: Updated.
5698         * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
5699         Add `styles' and `family' keywords.
5700         * tmac/dvi.tmac: Alias `H' to `HR'.
5701         Add some fspecial requests for italic fonts.
5702         Add TR and TI as special.
5703         Add support for `_' with font CWI.
5705         * src/roff/troff/number.cc (parse_expr): Add missing `break' for
5706         operator `:'.  Until now, the expression `0:1' would return 2
5707         instead of 1.
5709 2002-02-25  Werner LEMBERG  <wl@gnu.org>
5711         * man/groff_char.man: Added some missing PS glyph names (from the
5712         Adobe Glyph List).
5713         * font/devps/generate/textmap, font/devps/symbolmap: Add
5714         `arrowupdn'.
5716         * doc/groff.texinfo: Minor additions and fixes.
5717         * man/groff_diff.man: Remove documentation of fp request.  This
5718         is already covered in the original troff manual.
5719         Updated to be consistent with other doc files.
5720         * NEWS: Updated.
5722 2002-02-24  Werner LEMBERG  <wl@gnu.org>
5724         * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
5725         TTYDEVDIRS.
5726         Define new variable OTHERDEVDIRS (containing `font/devlj4
5727         font/devlbp' if not EBCDIC).
5728         * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
5729         (OTHERDEVDIRS): New variable.
5730         (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
5731         * configure: Regenerated.
5733         * NEWS, src/devices/grotty/grotty.man: Updated.
5735 2002-02-23  Werner LEMBERG  <wl@gnu.org>
5737         * src/roff/troff/input.cc (do_overstrike, do_bracket,
5738         get_line_arg): Honour input level.
5740         Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
5742         * font/*/*: Implement it in all font files.
5743         * font/devps/generate/textmap, font/devps/generate/symbolchars,
5744         * font/devps/symbolmap: Updated.
5745         * font/devlj4/generate/text.map: Updated.
5746         * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
5747         * font/devdvi/generate/texmi.map: Updated.
5749         * font/devutf8/R.proto: Remove all `charXXX' entries.
5750         * font/devutf8/NOTES: Updated.
5752         * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
5753         version 4.1.0.
5755         * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
5757         * NEWS, man/groff_char.man: Updated.
5759 2002-02-21  Phil Lobbes  <phil@perkpartners.com>
5761         * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
5763 2002-02-20  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5765         * src/roff/grog/grog.pl: Fix computation of $refer.
5767 2002-02-19  Werner LEMBERG  <wl@gnu.org>
5769         * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
5770         `snprintf' and `vsnprintf'.
5772         * src/include/htmlindicate.h: Renamed to...
5773         * src/include/htmlhint.h: This.
5774         * src/include/Makefile.sub: Updated.
5775         * src/preproc/eqn/main.cc: Updated.
5777 2002-02-18  Werner LEMBERG  <wl@gnu.org>
5779         * man/roff.man, man/groff_out.man, man/groff.man,
5780         man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
5781         src/roff/troff/troff.man: Updated to latest changes in www.tmac.
5783         * win32-diffs: Updated.
5785 2002-02-17  Werner LEMBERG  <wl@gnu.org>
5787         * doc/Makefile (clean): Add *.eps.
5788         (MEMACROS): Removed.
5789         (TFLAG): New variable.
5790         (TROFF): Use it.
5791         Add -ww.
5792         (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
5793         (.me.dit): Fixed.
5794         (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
5796         * tmac/www.tmac: Use dummy diversion while resetting and disabling
5797         `.tl'.
5798         * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
5799         unstripped.
5800         * src/roff/troff/troff.man: Fix order of parameter description.
5802         * NEWS: Updated.
5804 2002-02-16  Gaius Mulley  <gaius@glam.ac.uk>
5806         Simplify image handling for grohtml.
5807         Fix <p> bug.
5809         * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
5810         comment out.
5811         (html_text::dump_stack): Don't emit newline while debugging.
5812         (html_text::do_push) [DEBUGGING]: Print more info.
5813         (html_text::check_emit_text): Fix handling of <p>.
5814         * src/devices/grohtml/html.h: Updated.
5815         * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
5816         replacing `fputc', `fputs', `putc'.  If DEBUGGING is defined, they
5817         send its data to stderr also.
5818         Update all callers.
5819         (simple_output::space_or_newline) [DEBUGGING]: Removed.
5820         * src/devices/grohtml/post-html.cc (html_printer::do_links,
5821         html_printer::html_printer): Remove `DEBUGGING' conditionals.
5823         * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
5824         Removed.
5825         * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
5826         is_inline_image): Removed.
5827         (html_begin_suppress, html_end_suppress): Don't take a parameter.
5828         (graphic_start, graphic_end): Removed.
5829         * src/include/htmlindicate.h: Updated.
5830         * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
5831         (macroset_template): New global variable.
5832         (makeFileName): Use `macroset_template'.
5833         (write_end_image): Don't take a parameter.
5834         Don't emit newline.
5835         (write_start_image: Don't emit newline.
5836         (char_buffer::write_upto_newline): Updated.
5837         (char_buffer::skip_to_newline): Renamed to ...
5838         (char_buffer::skip_until_newline): This.
5839         Fix code.
5840         (char_buffer::write_file_troff, char_buffer::write_file_html):
5841         Simplified.
5842         (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
5843         (removeAllPages): Remove `DEBUGGING' conditionals.
5844         (addRegDef, dump_args): New functions.
5845         (char_buffer::do_html, char_buffer::do_image): Handle
5846         `www-image-template' command line variable.
5847         Add more debugging code.
5848         (addps4html): Removed.
5849         (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
5851         * src/preproc/eqn/main.cc: Include `ctype.h'.
5852         (suppress_html): Removed.
5853         (do_file): Updated.
5854         (inline_equation): Use `html_begin_suppress' and
5855         `html_end_suppress'.
5856         * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
5857         (troff_output::start_picture, troff_output::finish_picture):
5858         Updated.
5859         * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
5860         (process_input_file): Updated.
5862         * src/roff/troff/div.cc (page_number): Set page number only if the
5863         `ps4html' register isn't defined.
5864         * src/roff/troff/input.cc (image_no): New external variable.
5865         (do_suppress): Use it.
5866         * src/roff/troff/node.h (suppress_node::image_id): New member.
5867         * src/roff/troff/node.cc (image_no): Remove `static' keyword.
5868         (suppress_node::suppress_node): Initialize `image_id' member.
5869         (suppress_node::same): Handle `image_id' also.
5870         (suppress_node::copy): Updated.
5871         (last_image_id): New global variable.
5872         (suppress_node::tprint): Use it.
5874         * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
5875         HTML-IMAGE-END.
5876         * tmac/pspic.mac (PSPIC): Fix html support.
5877         * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
5878         * tmac/www.tmac (www-image-template): Set up.
5879         (HTMLINDEX): Renamed to...
5880         (HX): This.
5881         (BODYCOLOR): Renamed to...
5882         (BCL): This.
5883         (BACKGROUND): Renamed to...
5884         (BGIMG): This.
5885         (URL): Change order of parameters for consistency.
5886         (MAILTO): Renamed to...
5887         (MTO): This.
5888         (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
5889         (IMG, PIMG, MPIMG): This.
5890         (HTML-H-BEGIN, HTML-H-END): Renamed to...
5891         (HnS, HnE): This.
5892         (LINKS): Renamed to...
5893         (LK): This.
5894         (LINE): Renamed to...
5895         (HR): This.
5896         (NO-AUTO-RULE): Renamed to...
5897         (NHR): This.
5898         (HTML-TL): Renamed to...
5899         (HTL): This.
5900         (UL-BEGIN, UL-END): Renamed to...
5901         (ULS, ULE): This.
5902         (DROPCAP): Renamed to...
5903         (DC): This.
5904         (TS, TE, EQ, EN): Provide default definitions.
5905         (www-make-unique-name): Updated.
5906         (HTML-IMAGE-INLINE): Fix typo.
5907         * tmac/groff_www.man: Updated.
5909         * doc/Makefile (homepage.html): Add option -r to grohtml.
5910         Use shortened image name.
5911         * doc/groff.texinfo: Updated info on grohtml strings and macros.
5912         * doc/homepage.ms: Updated and extended.
5914 2002-02-14  Werner LEMBERG  <wl@gnu.org>
5916         Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
5918         * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
5919         SGR_BACK_DEFAULT_COLOR): Replaced with ...
5920         (tty_printer::put_color): Use it.
5921         (ttr_printer::end_page): Simplify.
5923 2002-02-13  Werner LEMBERG  <wl@gnu.org>
5925         * tmac/groff_tmac.man: Moved to...
5926         * man/groff_tmac.man: This place.
5927         * tmac/Makefile.sub, man/Makefile.sub: Updated.
5929 2002-02-12  Werner LEMBERG  <wl@gnu.org>
5931         * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
5932         $(COMPILE.c) to not include groff's assert.h.
5934         * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
5935         variable.
5936         * NEWS, src/drivers/grotty/grotty.man: Document it.
5938 2002-02-11  Werner LEMBERG  <wl@gnu.org>
5940         * src/libs/snprintf/snprintf.c: Updated to latest version
5941         (2002-02-11).
5943         * src/roff/grog/grog.pl (process): Fix handling of `.['.  We now
5944         test whether there is `.]' also.
5945         Don't check for spaces after `.['.
5946         * src/roff/grog/grog.sh: Do the same.
5948 2002-02-10  Werner LEMBERG  <wl@gnu.org>
5950         Illegal -> Invalid.
5952         * src/libs/libgroff/illegal.cc: Renamed to ...
5953         * src/libs/libgroff/invalid.cc: This.
5954         (illegal_char_table): Renamed to ...
5955         (invalid_char_table): This.
5956         * src/libs/libgroff/Makefile.sub: Updated.
5957         * win32-diffs: Updated.
5959         * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
5960         src/libs/libdriver/input.cc (fatal_command, parse_color_command,
5961         parse_x_command), src/libs/libgroff/font.cc (text_file::next,
5962         font::load), src/preproc/eqn/main.cc (read_line, main),
5963         src/preproc/eqn/lex.cc (file_input::read_line),
5964         src/preproc/pic/lex.cc (file_input::read_line,
5965         simple_file_input::get, simple_file_input::peek),
5966         src/preproc/pic/main.cc (top_input::get, top_input::peek),
5967         src/preproc/pic/pic.man, src/preproc/refer/main.cc
5968         (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
5969         do_bib), src/preproc/tbl/main.cc (table_input::get),
5970         src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
5971         src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
5972         do_zero_width, read_request, encode_char, ps_get_line,
5973         transparent_file, get_char_for_escape_name, transparent_translate,
5974         asciify, input_char_description, read_string, set_string),
5975         src/roff/troff/env.cc (environment::add_html_tag),
5976         src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
5978         * src/include/lib.h: Updated.
5980         * src/preproc/eqn/eqn.cc: Removed.
5982         * NEWS: Updated.
5984         * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
5986 2002-02-09  Werner LEMBERG  <wl@gnu.org>
5988         * doc/gnu.xpm: New image.
5989         * doc/Makefile (DOCS): Add homepage.ps.
5990         Add rules for converting xpm->png and xpm->eps.
5991         Use `gnu.{xpm,eps}' as image names.
5992         * doc/homepage.ms: Updated.
5994 2002-02-09  Gaius Mulley  <gaius@glam.ac.uk>
5996         * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
5997         (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
5998         Remove calls to `B1' and `B2'
5999         (PNG-IMAGE): New macro for inclusion of images in PNG format.
6000         (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
6001         auxiliary variables for MARGIN-PNG-IMAGE.
6002         (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
6003         auxiliary macros for MARGIN-PNG-IMAGE.
6004         (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
6005         the margin.
6006         (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
6007         (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
6008         (DROPCAP): New macro to produce dropcap characters.
6009         (www-do-image): Renamed back to...
6010         (HTML-DO-IMAGE): This.
6011         Updated all callers.
6013         * doc/Makefile (gnubw.eps): Updated.
6014         * doc/homepage.ms: Updated.
6016 2002-02-08  Werner LEMBERG  <wl@gnu.org>
6018         * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
6019         Added `linethick' to table in section `Style Variables'.
6021 2002-02-08  Gaius Mulley  <gaius@glam.ac.uk>
6023         * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
6025 2002-02-07  Werner LEMBERG  <wl@gnu.org>
6027         Adding options -C (compatibility mode) and -c (grotty's old output
6028         scheme) to nroff.
6030         * src/roff/nroff/nroff.sh: Implement it.
6031         Remove `-Wall'.
6032         * NEWS, src/roff/nroff/nroff.man: Updated.
6034         * PROBLEMS: Document bison 1.32 bug.
6036         Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
6038         * src/roff/troff/node.cc (make_tfont): Define it earlier.
6039         * src/roff/troff/div.h: Add prototype for `end_diversions'.
6040         * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
6041         * src/roff/troff/env.h: Add prototype for `title'.
6043         Adding EBCDIC support to grotty.
6045         * src/devices/grotty/tty.cc (CSI): New macro.
6046         (SGR_*, tty_printer::put_color): Use it.
6048 2002-02-06  Werner LEMBERG  <wl@gnu.org>
6050         Implementing color support in grotty.  The new switch -c activates
6051         the old drawing scheme, disabling color at the same time.  The new
6052         switch `-i' selects italic instead of underlining (SGR only).
6054         * src/devices/grotty/tty.cc (putstring): New define instead of
6055         `fputs'.  Updated all callers.
6056         (old_drawing_scheme): New global variable.
6057         (COLOR_CHANGE): New enum value.
6058         (SGR_*): New defines containing color handling escape sequences.
6059         (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
6060         (glyph): New members `back_color_idx' and `fore_color_idx'.
6061         (glyph::order): Add COLOR_CHANGE.
6062         (tty_printer): New members `cur_fore_idx', `curr_back_idx',
6063         `is_underline', `is_bold', `cu_flag', `tty_colors'.
6064         New methods `make_underline', `make_bold', `color_to_idx',
6065         `change_color', `put_color'.
6066         (cu_flag): Moved into `tty_printer' class.
6067         (tty_printer::tty_printer): Initialize colors.
6068         (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
6069         tty_printer::draw, tty_printer::end_page): Handle colors also.
6070         (main): Add options `-c' and `-i'.
6071         (usage): Updated.
6072         * NEWS, src/devices/grotty/grotty.man: Updated.
6074         * src/include/errarg.h (errarg): Add support for `unsigned int'.
6075         * src/libs/libgroff/errarg.c: Implement it.
6077         * src/include/printer.h (printer): Add `change_color' method
6078         (currently used by grotty only).
6079         * src/libs/libdriver/printer.cc: Implement it.
6080         * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
6081         call to `pr->change_color'.
6083         * src/roff/troff/node.cc (troff_output_file::fill_color,
6084         troff_output_file::glyph_color): Call `do_motion'.
6086         * tmac/tty.tmac: Add color definitions.
6088         * src/roff/groff/groff.man: Minor fixes.
6090 2002-02-05  Bernd Warken  <bwarken@mayn.de>
6092         * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
6093         it.  This is a preparation for future changes.
6095 2002-02-05  Werner LEMBERG  <wl@gnu.org>
6097         * src/roff/troff/input.cc (process_input_stack): Fix the case
6098         where leading spaces are followed by \f or \s; previously, an
6099         incorrect space width has been used.
6101         * doc/roff.man (quoted_char): Fix argument.
6102         (comment): Define string.
6104 2002-02-04  Larry Kollar  <kollar@alltel.net>
6106         * doc/groff.texinfo: More fixes.
6108 2002-02-04  Werner LEMBERG  <wl@gnu.org>
6110         * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
6111         * src/preproc/eqn/main.cc (do_file, inline_equation): Call
6112         `restore_compatibility' before `output_string' -- the LINE_STRING
6113         register now already contains proper switches from and to
6114         compatibility mode.
6116         * man/groff_char.man: Add Euro symbol.
6117         * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
6118         * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
6119         * doc/groff.texinfo (Defstr*): Print strings with full syntax.
6120         Other minor fixes.
6122         * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
6123         texinfo->pdf.
6124         (.texinfo.html): Add support for texinfo->html.
6126 2002-02-03  Werner LEMBERG  <wl@gnu.org>
6128         Added three new requests `ds1', `as1', and `ami'.  The former two
6129         are equivalent to `ds' and `as' with the difference that
6130         compatibility mode is saved on entry, switched off during string
6131         expansion, and restored on exit.  The latter is the pendant to `dei'
6132         for `am'.
6134         (do_define_string): Use `define_mode' and `calling mode'.
6135         Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
6136         end of string, respectively.
6137         (define_string, append_string): Use `calling_mode'.
6138         (define_nocomp_string, append_nocomp_string,
6139         define_string_indirect): New functions.
6140         (init_input_requests): Updated.
6141         * NEWS, man/groff_diff.man, man/groff.man: Document it.
6143         * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
6144         `as1' for assigning LINE_STRING (this is `10' usually).  Sun's
6145         mm macro package accesses this string register directly.
6146         * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
6148         * tmac/trace.tmac: Trace calls to `am' also.  Make it work in
6149         compatibility mode.
6151 2002-02-02  Larry Kollar  <kollar@alltel.net>
6153         * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
6155 2002-01-31  Werner LEMBERG  <wl@gnu.org>
6157         * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
6159 2002-01-31  Bernd Warken  <bwarken@mayn.de>
6161         * src/devices/grolbp/lbp.cc (main): Delete `pr'.
6162         * man/groff_out.man: Revised and updated.
6164 2002-01-30  Bernd Warken  <bwarken@mayn.de>
6166         * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
6167         out the unused `{' and `}' commands.  Undefined by default.
6168         (IntArray): Make `data' private.
6169         (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
6170         new methods instead.
6171         (skip_line_D, skip_to_end_of_line): New functions.
6172         (get_D_fixed_args): Use `skip_line_D'.
6173         Changed to handle dummy odd arguments by ...
6174         (get_D_fixed_args_odd_dummy): This new function.
6175         (get_D_variable_args): Split some code into ...
6176         (get_possibly_integer_args): This new function.
6177         (send_draw): Use more `const'.
6178         (delete_current_env): New function.
6179         (position_to_end_of_args): Use `size_t'.
6180         Updated.
6181         (send_draw): Updated.
6182         (parse_D_command): Handle `c', `C', and `t' better.
6183         Updated.
6184         (do_file): Updated.
6186 2002-01-29  Werner LEMBERG  <wl@gnu.org>
6188         * NEWS: Revised.
6189         * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
6190         @Def...ListEnd which replaces @Def...x.  This is necessary to get
6191         proper HTML output -- see the comment in the file for more
6192         information.
6193         Updated all calls.
6195 2002-01-29  Gaius Mulley  <gaius@glam.ac.uk>
6197         Fixes to make color changes of 2002-01-21 work with grohtml.
6199         * src/devices/grohtml/post-html.cc (style): Updated.
6200         (html_printer): Remove unused methods.
6201         (html_printer::do_font, html_printer::draw, html_printer::set_char,
6202         html_printer::special): Updated.
6203         * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
6204         html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
6205         Added some debugging code.
6206         (html_text::start_tag): Updated.
6207         (html_text::do_push): New method.
6208         (html_text::push_para): Call it.
6209         Add method for handling color.
6210         (html_text::do_color): Updated.
6211         (html_text::shutdown): Handle color.
6212         * src/devices/grohtml/html-text.h (tag_definition): New member
6213         `col'.
6214         Updated.
6216 2002-01-28  Werner LEMBERG  <wl@gnu.org>
6218         * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
6220 2002-01-27  Gaius Mulley  <gaius@glam.ac.uk>
6222         Add two switches -a and -g to control the antialiasing bits for
6223         text and graphics, respectively.
6225         * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
6226         `-g'.
6227         * src/devices/grohtml/grohtml.man: Document them.
6228         * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
6229         New macros.
6230         (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
6231         (setupAntiAlias): New function.
6232         (createAllPages): Updated.
6233         (scanArguments): Handle `-a' and `-g'.
6234         (main): Call `setupAntiAlias'.
6235         * NEWS: Updated.
6237 2002-01-27  Werner LEMBERG  <wl@gnu.org>
6239         * doc/groff.texinfo (Def*): Call index function after deffn.
6241         * tmac/html.tmac: Call `nroff' request.
6243 2002-01-26  Larry Kollar  <kollar@alltel.net>
6245         * tmac/groff_ms.man: Add some omissions.
6247 2002-01-25  Larry Kollar  <kollar@alltel.net>
6249         * tmac/groff_ms.man: Typographical improvements.
6251 2002-01-25  Werner LEMBERG  <wl@gnu.org>
6253         * doc/groff.texinfo: Updated version and copyright.
6254         * src/devices/grops/grops.man: Updated.
6256         * tmac/groff_tmac.man: Fix `ig' macro.
6258         * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
6259         nroff mode.
6260         Use `.ne' unconditionally everywhere.
6261         (TS): Only insert some vertical space.  Doing a page break is no
6262         longer necessary due to the redefinition of the `ne' request.
6264         * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
6265         warning for unknown subcommands but parse and pass them to the
6266         device driver.
6268 2002-01-24  Werner LEMBERG  <wl@gnu.org>
6270         * tmac/groff_www.man, NEWS: Fix typos.
6272 2002-01-21  Werner LEMBERG  <wl@gnu.org>
6274         Complete revision of color support:
6276           Adapt programs to the new libdriver/input.cc.
6278           Color spaces are no longer converted to RGB but transferred as-is
6279           in the troff intermediate output format.
6281           Handle default color gracefully.  troff now supports a `default'
6282           color (which can't be changed).
6284           grops will now use the proper color space functions if available.
6286           Update pic.
6288         Note that currently grohtml doesn't handle colors properly.  This
6289         has to be fixed.
6291         * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
6292         (ui_to_a): New function.
6293         * src/include/lib.h: Updated.
6295         * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
6296         (color): Simplified; removed all `double' members and methods.
6297         A new array `components' now holds the color parameters.
6298         (color::is_default, color::get_components): New methods.
6299         (color::operator==, color:operator!=): New.
6300         (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
6301         to make access to the `components' array more comprehensible.
6302         * src/libs/libgroff/color.cc: Implement new color support.
6303         (atoh): Small fixes.
6304         (color::read_encoding): Simplified for new troff intermediate color
6305         output format.
6306         (default_color): New global variable.
6308         * src/roff/troff/input.cc (default_symbol): New global variable.
6309         (lookup_color): Use it.
6310         (default_black): Removed.
6311         (do_glyph_color, do_fill_color): Simplified.
6312         (define_color): Handle default color.
6313         Improve warnings.
6314         (do_if_request): Handle default color.
6315         * src/roff/troff/env.cc (environment::environment): Initialize
6316         colors with `default_color'.
6317         * src/roff/troff/node.cc (troff_output_file::put): Add method
6318         for `unsigned int'.
6319         (troff_output_file::hex): Removed.
6320         (troff_output_file::fill_color, troff_output_file::glyph_color):
6321         Updated to include/color.h and libdriver/input.cc.
6323         * src/preproc/pic/object.cc (draw_arrow): New parameter to set
6324         fill color properly (identically to the outline color).  \D'f...'
6325         doesn't work any more.
6326         All function calls to it updated.
6328         * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
6329         Updated.
6330         * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
6331         Updated.
6333         * src/devices/grops/ps.cc (ps_output::put_color): New method.
6334         (ps_printer::sbuf_color): Make a real member instead of pointer.
6335         (ps_printer::fill_color, ps_printer::output_color): Removed.
6336         (ps_printer::ps_printer): Updated.
6337         (ps_printer::set_char): Ditto.
6338         (ps_printer::set_color): Use various color schemes.
6339         Use `put_color' method.
6340         (ps_printer::flush_sbuf): Don't set color.
6341         (ps_printer::fill_path): Take `environment' as parameter.
6342         Simplify color handling.
6343         (ps_printer::set_line_thickness): Renamed to ...
6344         (ps_printer::set_line_thickness_and_color): This (and updated).
6345         (ps_printer::set_color): Change second parameter from `complete'
6346         to `fill' which better describes what it does.
6347         (ps_printer::draw): Call `flush_sbuf' to output graphic commands
6348         and text in the right order.
6349         Updated.
6350         Remove branches for `f' and `F'; this is handled by
6351         libdriver/input.cc.
6352         * src/devices/grops/ps.h: Updated.
6353         * font/devps/prologue (FL): Redefined.
6354         ({F,C}r,k,g: New color functions (with and without filling).
6356         * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
6357         * man/groff_diff.man, man/groff.man, man/groff_out.man,
6358         doc/groff.texinfo, NEWS: Updated.
6360 2002-01-20  Bernd Warken  <bwarken@mayn.de>
6362         * src/libs/libdriver/input.cc: Completely rewritten.  See comments
6363         in this file for what has been changed.
6365 2002-01-19  Werner LEMBERG  <wl@gnu.org>
6367         * test-groff: Fix GROFF_FONT_PATH.
6368         * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
6369         is read before .TH or .Dd is parsed.
6371 2002-01-18  Gaius Mulley  <gaius@glam.ac.uk>
6373         * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
6374         quadrant boundaries.
6376 2002-01-18  Werner LEMBERG  <wl@gnu.org>
6378         * devices/grops/ps.cc: Aargh!  Fix the fix of the incorrectly
6379         applied last patch.
6381 2002-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
6383         * tmac/doc.common: Initialize %I register for the %I macro to
6384         avoid (harmless) warning.
6385         * tmac/doc.tmac (Bd): There is no reason to enforce -compact
6386         when in the SYNOPSIS section.
6388 2002-01-17  Bruno Haible  <haible@clisp.cons.org>
6390         * src/preproc/pic/lex.cc (get_token): Fix typo.
6392 2002-01-17  Werner LEMBERG  <wl@gnu.org>
6394         * devices/grops/ps.cc: Fix incorrectly applied last patch.
6396 2002-01-17  Larry Kollar  <kollar@alltel.net>
6398         * tmac/groff_ms.man: Completely rewritten.
6400 2002-01-16  Werner LEMBERG  <wl@gnu.org>
6402         * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
6404 2002-01-15  Gaius Mulley  <gaius@glam.ac.uk>
6406         * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
6407         fill colors.
6408         (ps_printer::draw): Ditto.
6410 2002-01-14  Ruslan Ermilov  <ru@FreeBSD.org>
6412         * tmac/groff_mdoc.man: Minor fixes.
6414 2002-01-13  Werner LEMBERG  <wl@gnu.org>
6416         * man/groff_out.man: Some fixes.
6418 2002-01-13  Gaius Mulley  <gaius@glam.ac.uk>
6420         * doc/pic.ms: Fix typos.
6422 2002-01-12  Werner LEMBERG  <wl@gnu.org>
6424         * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
6426 2002-01-10  Werner LEMBERG  <wl@gnu.org>
6428         * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
6429         symbols.
6430         * NEWS: Updated.
6432 2002-01-09  Bernd Warken  <bwarken@mayn.de>
6434         * man/groff_out.man: Revised.
6435         * man/roff.man: Minor fixes.
6436         * src/roff/troff/troff.man: Some reordering.
6438 2002-01-09  Werner LEMBERG  <wl@gnu.org>
6440         * tmac/an-old.tmac: Add dummy macros for equation support.
6442 2002-01-07  Werner LEMBERG  <wl@gnu.org>
6444         doc/groff.texinfo: Fix documentation of glyph searching algorithm.
6446         * tmac/an-old.tmac: Revert change 2001-12-23.  This breaks too many
6447         man pages.
6448         * tmac/groff_man.man: Small improvements.
6450 2002-01-07  Bernd Warken  <bwarken@mayn.de>
6452         * man/groff_diff.man: Revised.
6454 2002-01-06  Werner LEMBERG  <wl@gnu.org>
6456         * tmac/www.tmac: Remove extraneous backslash.
6458 2002-01-06  Bernd Warken  <bwarken@mayn.de>
6460         * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
6462 2002-01-05  Werner LEMBERG  <wl@gnu.org>
6464         Integrated groffer, contributed by Bernd Warken.
6466         * contrib/groffer/*: New.       
6467         * Makefile.in, NEWS: Updated.
6469 2002-01-04  Werner LEMBERG  <wl@gnu.org>
6471         * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
6472         registers defined in macro packages.
6473         Revising the ms part.
6475 2002-01-04  Larry Kollar  <kollar@alltel.net>
6477         * doc/groff.texinfo: Add documentation for ms macros.
6479 2002-01-02  Werner LEMBERG  <wl@gnu.org>
6481         First step in adding PS support for the Euro symbol.  `eu' is the
6482         official Euro logo, `Eu' is a font-specific glyph variant.
6484         * font/devps/text.enc: Add `Euro' at position 9.
6485         * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
6486         * font/devps/symbolmap: Regenerated.
6488         * NEWS: Updated.
6490 2002-01-02  Bernd Warken  <bwarken@mayn.de>
6492         * man/roff.man: Revised.
6494 2002-01-01  Bernd Warken  <bwarken@mayn.de>
6496         * src/roff/groff/groff.man: Completely rewritten.
6498 2001-12-31  Werner LEMBERG  <wl@gnu.org>
6500         * doc/Makefile: Updated.
6502 2001-12-30  Werner LEMBERG  <wl@gnu.org>
6504         * tmac/www.tmac: Make all names of internal macros/registers/strings
6505         lowercase, and prepend `www-'.
6506         Other minor changes.
6507         * src/roff/troff/troff.man: Add preprocessor string at BOF.
6509 2001-12-30  Gaius Mulley  <gaius@glam.ac.uk>
6511         Implement option `-b' in grohtml to set the HTML background colour.
6513         * src/devices/grohtml/post-html.cc (default_background): New global
6514         variable.
6515         (html_printer::html_printer): Initialize `background' to
6516         `default_background'.
6517         (main): Implement option `-b'.
6518         (usage): Updated.
6519         * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
6520         of `-b' option.
6521         * src/devices/grohtml/grohtml.man: Updated.
6522         * doc/Makefile (.ms.html): Use `-b'.
6523         * tmac/html.tmac: Don't set background color.
6525         Add new grohtml tag `.html-tl'.
6527         * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
6528         member variable.
6529         (title_desc::title_desc): Updated.
6530         (html_printer::troff_tag): Handle `.html-tl'.
6531         (html_printer::write_title): Use `with_h1'.
6532         * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
6533         (HTML-TL): New macro.
6535         Add support for unordered lists in HTML.
6537         * tmac/www.tmac (www-level): New auxiliary register.
6538         (www-level1, www-level2, www-level3): New auxiliary strings.
6539         (www-push-level, www-pop-level): New auxiliary macros
6540         (UL-BEGIN, UL-END, LI): User macros for unordered lists.
6542         Miscellaneous.
6544         * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
6545         (DEFAULT_VERTICAL_OFFSET): Removed.
6546         (IMAGE_BOARDER_PIXELS): Set to 0.
6547         (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
6548         (vertical_offset): Initialize with 0.
6549         (gsPaper): New global variable.
6550         (get_resolution): Scan for and return unsigned int.
6551         (get_papersize): New function to get paper length from devps/DESC.
6552         (determine_vertical_offset): New function.
6553         (createAllPages): Produce gray-level images and use proper page
6554         length.
6555         (createImage): Use `-quiet' option of pnmcrop.
6556         (addZ): Fix passing of `-Z'.
6557         (scanArguments): Fix handling of `-o'.
6558         (main): Call `determine_vertical_offset'.
6559         * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
6560         code for `l'.
6562         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
6563         * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
6564         glyph descenders properly.
6566         * doc/homepage.ms: Include `gnubw.eps'.
6567         * doc/Makefile (gnubw.eps): New rule.
6568         (homepage.html): Depend on `gnubw.eps'.
6570 2001-12-25  Werner LEMBERG  <wl@gnu.org>
6572         * src/roff/troff/input.cc (default_black): Fix return value.
6574 2001-12-24  Ruslan Ermilov  <ru@FreeBSD.org>
6576         * tmac/doc-common (Dt): Change output of architecture strings.
6577         Do some syntax cleanup.
6578         * tmac/groff_mdoc.man: Updated.
6580 2001-12-23  Werner LEMBERG  <wl@gnu.org>
6582         Adding an `itc' request (input line trap accepting \c).
6584         * src/roff/troff/env.h (environment): New member
6585         `continued_input_trap'.
6586         Make `do_input_trap' a friend function instead of `input_trap'.
6587         * src/roff/troff/env.cc (environment::environment,
6588         environment::copy): Updated.
6589         (environment::newline): Implement it.
6590         (do_input_trap): New function.
6591         (input_trap): Call `do_input_trap'.
6592         (input_trap_continued): New function.
6593         (init_env_requests): Updated.
6594         * src/roff/troff/TODO: Updated.
6596         * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
6597         `.it'.
6599         * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
6601 2001-12-22  Ruslan Ermilov  <ru@FreeBSD.org>
6603         * tmac/doc-common, tmac/doc-syms: Small updates.
6605 2001-12-22  Colin Watson  <cjwatson@debian.org>
6607         * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
6609 2001-12-22  Bernd Warken  <bwarken@mayn.de>
6611         * MANIFEST: New file.
6613 2001-12-22  Werner LEMBERG  <wl@gnu.org>
6615         * src/preproc/grn/grn.man: Updated.
6617 2001-12-22  Solar Designer  <solar@openwall.com>
6619         * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
6620         (DBRead): Use it.
6622 2001-12-19  Werner LEMBERG  <wl@gnu.org>
6624         Implement a fallback character request `.fchar'.
6626         * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
6627         (is_fallback): New inline function.
6628         * src/roff/troff/input.cc (do_define_character): New function.
6629         (define_character): Call `do_define_character'.
6630         (define_fallback_character): New function.
6631         (init_input_requests): Add `fchar'.
6632         (charinfo::charinfo): Updated.
6633         (charinfo::set_macro): New argument to set `fallback' flag.
6634         * src/roff/troff/node.cc (make_glyph_node, make_node,
6635         node::add_char): Check `fallback' flag.
6636         * NEWS, man/groff_diff.man, man/groff_man: Updated.
6638 2001-12-16  Werner LEMBERG  <wl@gnu.org>
6640         * groff.texinfo: Document exact search algorithm for glyphs.
6642 2001-12-15  Werner LEMBERG  <wl@gnu.org>
6644         * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
6645         the left side of $(MANPAGES) rule to make it always non-empty.
6647 2001-12-14  Werner LEMBERG  <wl@gnu.org>
6649         * src/roff/troff/input.cc (default_black): Define default color
6650         `black' if not yet defined.
6652 2001-12-13  Werner LEMBERG  <wl@gnu.org>
6654         Implement new string-valued register `.fn' to return the current
6655         real (internal) font name.
6657         * env.cc (environment::get_font_name_string): New function.
6658         (init_env_requests): Add `.fn' register.
6659         * env.h (environment): Updated.
6660         * node.cc (font_info): Make `get_font_name' a friend.
6661         (get_font_name): New function.
6662         * node.h: Updated.
6664         * man/groff_diff.man, man/groff.man, NEWS: Updated.
6666 2001-12-12  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
6668         * src/preproc/eqn/main.cc (inline_equation): Fix typos.
6670 2001-12-12  Werner LEMBERG  <wl@gnu.org>
6672         * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
6674 2001-12-10  Gaius Mulley  <gaius@glam.ac.uk>
6676         * man/groff_diff.man: Adding documentation for \O.
6678 2001-12-10  Werner LEMBERG  <wl@gnu.org>
6680         * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
6681         (scanArguments): Use PROG_PREFIX for the name of the troff binary.
6683 2001-12-09  Werner LEMBERG  <wl@gnu.org>
6685         * man/roff.man: Revised.
6686         * src/roff/groff/groff.man: Replace man page references with a
6687         pointer to roff.man.
6689 2001-12-09  Bernd Warken  <bwarken@mayn.de>
6691         * man/roff.man: Completely rewritten.
6693 2001-12-06  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
6695         * src/preproc/eqn/main.cc (inline_equation): Improve error message.
6697 2001-12-05  Werner LEMBERG  <wl@gnu.org>
6699         * src/roff/troff/input.cc (get_delim_file_name): Removed since no
6700         longer used.
6701         * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
6702         order of initializers.
6703         * NEWS: Updated.
6705 2001-12-05  Gaius Mulley  <gaius@glam.ac.uk>
6707         * doc/groff.texinfo: Fix documentation of \O.
6709         * src/devices/grohtml/html-text.cc (html_text::do_indent,
6710         html_text::do_table, html_text::do_emittext, html_text::do_para):
6711         Use `const' for first argument.
6712         (html_text::do_table): Use cast.
6713         * src/devices/grohtml/html-text.h: Updated.
6714         * src/devices/grohtml/output.cc (simple_output::put_string): Add
6715         method for `const string &s'.
6716         * src/devices/grohtml/html.h: Updated.
6717         * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
6718         (ANCHOR_TEMPLATE): Modified.
6719         (manufacture_headings): New global variable to handle `-h' option.
6720         (is_subsection): Removed.
6721         (char_buffer::add_string): Add `const' to first argument.
6722         Protect against invalid string argument.
6723         Add method for `const string &s'.
6724         (text_glob): Completely redesigned.
6725         (page): Use `const' for strings and remove string length variable.
6726         (page::add_html): Removed.
6727         (page::add_end_encode): New member function.
6728         (to_unicode): Moved upwards.
6729         (title_desc, header_desc): Updated.
6730         (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
6731         definition.
6732         (html_printer::is_bold, html_printer::make_bold): New member
6733         functions.
6734         (html_printer::end_of_line): Updated.
6735         (generate_img_src, html_printer::do_auto_image,
6736         html_printer::do_title, html_printer::write_header,
6737         html_printer::determine_header_level, html_printer::do_heading,
6738         html_printer::do_linelength, html_printer::do_pageoffset,
6739         html_printer::do_indentation, html_printer::do_tempindent,
6740         html_printer::do_indentedparagraph, html_printer::do_break,
6741         html_printer::flush_sbuf, get_html_translation,
6742         html_printer::begin_page, html_printer::special): Rewritten to get
6743         rid of static string length limit.
6744         (html_printer::troff_tag): Added `.no-auto-rule'.
6745         (html_printer::flush_globs): Small fix.
6746         (html_printer::determine_space): Don't compute `space_width'.
6747         (html_printer::translate_to_html): Renamed to ...
6748         (html_printer::emit_html): This (with updates).
6749         (html_printer::write_header): Implement `-h' option.
6750         (html_printer::draw): Remove commented-out code.  Handle `F'
6751         command.
6752         (html_printer::add_char_to_sbuf): Removed.
6753         (html_printer::add_to_sbuf): Rewritten.
6754         (html_printer::sbuf_continuation): Fixed.
6755         (html_printer::seen_backwards_escape, reverse,
6756         html_printer::remove_last_char_from_sbuf): Removed.
6757         (char_translate_to_html, str_translate_to_html): Removed.
6758         (html_printer::overstrike): New function member.
6759         (html_printer::set_char): Use it.
6760         (html_printer::do_body): New function member.
6761         (html_printer::~html_printer): Use it.
6762         (main): Handle `-h' option.
6763         (usage): Updated.
6764         * src/devices/grohtml/grohtml.man: Document -h switch.
6766         * src/preproc/html/pre-html.cc: Include searchpath.h
6767         Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
6768         (get_resolution): New function.
6769         (checkImageDir): Use `0777' permissions in mkdir()
6770         (write_start_image): Rewritten to use `\O[5...]'.
6771         (createImage, generateImages): Updated.
6772         (main): Handle `F' and `h' options.
6773         Use `get_resolution'.
6775         * src/roff/troff/input.cc (begin, end, image): Removed.
6776         (do_suppress): Take parameter.
6777         Handle modified syntax of `\O'.
6778         (token::next): Updated.
6779         (init_markup_requests): Removed.
6780         (main): Updated.
6782         * src/roff/troff/div.h: Add declaration for begin_page().
6784         * tmac/color-html.tmac: Removed.  Contents moved to...
6785         * tmac/html.tmac: Here.  Set background color.
6786         * tmac/color.tmac: Removed.  Contents moved to...
6787         * tmac/ps.tmac: Here.
6788         * tmac/www.tmac: Remove the title command when generating images
6789         for html.
6790         (NO_AUTO_RULE): New macro.
6791         (HTML_DO_IMAGE): Use revised `\O' escapes.
6792         * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
6794 2001-12-02  Werner LEMBERG  <wl@gnu.org>
6796         * tmac/groff_mdoc.man: Fix typo.
6798 2001-12-01  Colin Watson  <cjwatson@debian.org>
6800         * man/roff.man: Fix typo.
6802 2001-11-29  Werner LEMBERG  <wl@gnu.org>
6804         * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
6805         stdlib.h.
6807         * src/roff/troff/input.cc (read_draw_node): Emit error message if
6808         more than one argument to \D'f ...'.
6810         * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
6812 2001-11-28  Werner LEMBERG  <wl@gnu.org>
6814         * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
6815         loaded only once.
6817         * tmac/groff_man.man: Minor cosmetic fix.
6819 2001-11-27  Werner LEMBERG  <wl@gnu.org>
6821         * src/roff/groff/groff.man, tmac/groff_tmac.man,
6822         tmac/groff_www.man: s/mwww/www/.
6824 2001-11-26  Werner LEMBERG  <wl@gnu.org>
6826         * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
6827         * configure: Regenerated.
6828         * win32-diffs: Updated.
6830         * tmac/groff_mwww.tmac: Renamed to ...
6831         * tmac/groff_www.tmac: This.
6832         * tmac/mwww.tmac: Removed.
6833         * NEWS, tmac/Makefile.sub: Updated.
6835 2001-11-21  Werner LEMBERG  <wl@gnu.org>
6837         * doc/groff.texinfo: Improve documentation of the `\v' escape.
6838         Fix explanation of `\D' and `rt'.
6840 2001-11-20  Werner LEMBERG  <wl@gnu.org>
6842         * tmac/an-old.tmac (an-header): Set header length equal to page
6843         width.
6844         * doc/groff.texinfo: Improve documentation of `ne' request.  Other
6845         minor fixes.
6846         * NEWS: Small fix.
6848 2001-11-19  Werner LEMBERG  <wl@gnu.org>
6850         * NEWS, man/Makefile.sub: Updated.
6852 2001-11-19  Bernd Warken  <bwarken@mayn.de>
6854         * man/ditroff.man: New file.
6856 2001-11-17  Werner LEMBERG  <wl@gnu.org>
6858         * man/groff_differences.man: Renamed to ...
6859         * man/groff_diff.man: This.  Updated.
6860         * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
6862         * src/preproc/html/pushbackbuffer.cc: Renamed to ...
6863         * src/preproc/html/pushback.cc: This.  Updated.
6864         * src/preproc/html/pushbackbuffer.h: Renamed to ...
6865         * src/preproc/html/pushback.h: This.
6866         * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
6867         Updated.
6869         * src/libs/libgroff/htmlindicate.cc: Renamed to ...
6870         * src/libs/libgroff/htmlhint.cc: This.
6871         * src/libs/libgroff/Makefile.sub: Updated.
6873         * tmac/an-old.tmac (an-end): Fix page length.
6875 2001-11-16  Werner LEMBERG  <wl@gnu.org>
6877         * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
6878         * man/Makefile.sub: Include groff_differences.man.
6879         * VERSION: Set to 1.18.
6880         * REVISION: Set to 0.
6882 2001-11-16  Bernd Warken  <bwarken@mayn.de>
6884         * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
6885         the second dot (or ending macro name) to end a macro.
6886         * doc/groff.texinfo: Doc fix.
6888 2001-11-16  Ruslan Ermilov  <ru@FreeBSD.org>
6890         * tmac/doc-common (doc-header): Handle very long document titles
6891         better.
6893 2001-11-16  Werner LEMBERG  <wl@gnu.org>
6895         * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
6897 2001-11-15  Werner LEMBERG  <wl@gnu.org>
6899         * src/roff/troff/troff.man: Revised and split into troff.man and...
6900         * man/groff_differences.man: New file.
6901         * NEWS: Updated.
6903 2001-11-13  Werner LEMBERG  <wl@gnu.org>
6905         * tmac/an-old.tmac (TS, TE): New macros for table support.
6907 2001-11-12  Werner LEMBERG  <wl@gnu.org>
6909         * src/include/lib.h: Provide a fix for emx to not include
6910         groff-getopt.h.
6912 2001-10-27  Werner LEMBERG  <wl@gnu.org>
6914         * src/roff/troff/input.cc (substring_macro): Fix computation of
6915         boundary values.
6917 2001-10-20  Werner LEMBERG  <wl@gnu.org>
6919         Undo change from 2001-08-28.
6921         * src/roff/troff/input.cc (have_input): New global variable.
6922         (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
6923         in compatibility mode.
6924         (process_input_stack): Use it.
6926 2001-10-19  Ruslan Ermilov  <ru@FreeBSD.org>
6928         * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
6929         being handled as end-of-sentence characters,
6931 2001-10-10  Gaius Mulley  <gaius@glam.ac.uk>
6933         * src/roff/troff/input.cc (file_iterator): New members
6934         `suppress_newline_flag' and `seen_escape'.
6935         (file_iterator::next_file): Updated.
6936         (file_iterator::fill): Use it.
6937         (string_iterator): New member `suppress_newline_flag'.
6938         (string_iterator::fill): Set it.
6939         (get_color_element): Use MAX_COLOR_VAL.
6940         * src/roff/troff/env.cc (environment): Remove `need_eol'.
6941         (no_fill): Don't set `env->ignore_next_eol'.
6942         (environment::newline): Handle `eol' tag properly.
6943         Emit `eol.ce'.
6944         (environment::add_html_tag): Set `env->ignore_next_eol'.
6945         Don't handle `.ce'.
6946         * src/roff/troff/env.h (environment): Updated.
6948         * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
6949         member function.
6950         (html_printer::outstanding_eol): New member function.
6951         (html_printer::do_title): Use new functions.
6952         (html_printer::troff_tag): Test `id_eol_ce'.
6954 2001-10-10  Werner LEMBERG  <wl@gnu.org>
6956         * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
6957         files work with -C also.
6959 2001-10-05  Werner LEMBERG  <wl@gnu.org>
6961         * doc/pic.ms: Minor fix.
6962         * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
6963         as a valid command line switch.
6964         * src/devices/grohtml/post-html.cc (main): Ditto.
6965         (usage): Updated.
6966         * src/devices/grohtml/grohtml.man: Updated.
6967         * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
6969 2001-10-04  Werner LEMBERG  <wl@gnu.org>
6971         Implementing color support in troff, pic, grops, and grohtml.  These
6972         changes are based on a major patch provided by Gaius Mulley
6973         <gaius@glam.ac.uk>.
6975         New request: `defcolor', supporting rgb, cmy, cmyk, and gray
6976         definitions with both hex values and fractions.
6978         New escapes: \m and \M for drawing and background color,
6979         respectively.  This corresponds to the troff output commands `m'
6980         and `DF'.
6982         groff and troff accept command line switch `-c' to disable color
6983         output (which is automatically disabled in compatibility mode).
6985         New scaling indicator `f' for fractions (1f = 65536u).
6987         New conditional operator `m' to test for defined colors with `if'
6988         and `ie'.
6990         New keywords `color' (or `colour', `colored', `coloured'), `outline'
6991         (or `outlined'), and `shaded' added to pic.
6993         * src/include/color.h: New file.
6994         * src/include/driver.h: Include it.
6995         * src/include/printer.h: Include color.h.
6996         (environment): New members `col' and `fill'.
6997         (printer): Remove `adjust_arc_center' member function.
6998         * src/include/Makefile.sub: Updated.
7000         * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
7001         `env.fill'.
7002         Handle `m' and `DF' troff commands.
7003         * src/libs/libgroff/color.cc: New file.
7004         * src/libs/libgroff/Makefile.sub: Updated.
7006         * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
7007         (stop): Removed.
7008         (createImage): Fix computation of `y2'.
7009         Use `pnmcrop' also.
7010         (buffer::write_file_html): Remove calls to `stop'.
7012         * src/preproc/pic/common.h (common_output): New abstract function
7013         members `set_color', `reset_color', `get_last_filled', and
7014         `get_outline_color'.
7015         * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
7016         (object_spec): Add members `shaded' and `outlined'.
7017         * src/preproc/pic/output.h (output): `command' is now abstract.
7018         New function members `set_color', `reset_color', `get_last_filled',
7019         and `get_outline_color'.
7020         * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
7021         `outline[d]', and `shaded'.
7022         * src/preproc/pic/object.cc (output::command): Removed.
7023         (output::set_location): Moved to output.h.
7024         (graphic_object): Add protected members `outline_color' and
7025         `color_fill'.
7026         Add member functions `set_outline_color', `get_outline_color', and
7027         `set_fill_color'.
7028         (closed_object): Add member function `set_fill_color'.
7029         Add member `color_fill'.
7030         (graphic_object::print_text): Use `out->set_color' and
7031         `out->reset_color'.
7032         (box_object::print, ellipse_object::print, circle_object::print,
7033         line_object::print, spline_object::print, arc_object::print): Ditto.
7034         (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
7035         * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
7036         `SHADED', making them `%left'.
7037         Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
7038         * src/preproc/pic/tex.cc (tex_output): New dummy function members
7039         `set_color', `reset_color', `get_last_filled', and
7040         `get_outline_color'.
7041         * src/preproc/pic/troff.cc (simple_output): New abstract function
7042         members `set_color', `reset_color', and `get_last_filled'.
7043         (simple_output::polygon, simple_output::circle,
7044         simple_output::ellipse): Use `get_last_filled'.
7045         (troff_output): New members `last_filled' and `last_outlined'.
7046         New function members `set_color', `reset_color', `get_last_filled',
7047         and `get_outline_color'.
7048         (troff_output::finish_picture): Use `reset_color'.
7049         (troff_output::set_fill): Test `last_filled'.
7050         * src/preproc/pic/pic.man: Updated.
7052         * src/roff/groff/groff.cc (main): Implement `-c' option.
7053         (synopsis, help): Updated.
7054         src/roff/groff/groff.man: Updated.
7056         * src/roff/troff/troff.h: Include color.h.
7057         (warning_type): Add WARN_COLOR.
7058         * src/roff/troff/env.h (environment): New members
7059         `{cur,prev}_{glyph,fill}_color'.
7060         New member functions `get_{prev_,}{glyph,fill}_color'.
7061         * src/roff/troff/env.cc: Initialize and implement them.
7062         * src/roff/troff/input.cc: New global variable `disable_color_flag'.
7063         Replace `NULL' with `0' everywhere for consistency.
7064         (lookup_color, default_black, do_glyph_color, do_fill_color,
7065         get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
7066         define_color): New functions.
7067         (token::next): Implement \M and \m escapes.
7068         (do_if_request): Implement `m' operator.
7069         (usage): Updated.
7070         (main): Implement `-c' option.
7071         (init_markup_requests): Add `defcolor' request.
7072         (warning_table): Add `color' warning.
7073         * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
7074         classes.
7075         * src/roff/troff/node.cc (troff_output_file): New members
7076         `current_{page,glyph}color'.  New member functions `put_hex',
7077         `glyph_color', and `fill_color'.
7078         (glyph_color_node::*, fill_color_node::*): Implement it.
7079         * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
7080         (parse_term): Add support for `f'.
7081         * src/roff/troff/troff.man: Updated.
7083         * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
7084         entry for `F'.
7085         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
7086         * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
7088         * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
7089         (tag_definition): Use `void *' for arg1.
7090         (html_text): New member functions `do_color' and `done_color'.
7091         Use `void *' for second parameter of `push_para' member function.
7092         New `push_para' member function with a single parameter.
7093         Use `char *' for parameter of `issue_table_begin' member funtion.
7094         New `issue_color_begin' member function.
7095         * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
7096         COLOR_TAG.
7097         (html_text::issue_color_begin): New function.
7098         (html_text::issue_table_begin): Use `char *' for parameter.
7099         (html_text::start_tag, html_text::shutdown,
7100         html_text::check_emit_text): Updated.
7101         (html_text::push_para): Use `void *' for second parameter.
7102         Add same function with only one parameter.
7103         (html_text::do_*): Updated.
7104         (html_text::do_color, html_text::done_color): New functions.
7105         * src/devices/grohtml/post-html.cc (style): New member `col'.
7106         Mew member `style' with 6 parameters.
7107         (style::style, style::operator==): Updated.
7108         (html_printer::do_font): Use it.
7109         (html_printer::draw): Add dummy entry for `F'.
7110         (html_printer::set_char): Updated.
7111         * src/devices/grohtml/grohtml.man: Updated.
7113         * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
7114         trailing zeroes removed.
7115         (ps_printer): New members `sbuf_color', `fill_color', and
7116         `output_color'.
7117         Removed member `fill'.
7118         New member function `set_color'.
7119         (ps_printer::ps_printer, ps_printer::set_char): Updated.
7120         (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
7121         ps_printer::fill_path, ps_printer::draw): Use `set_color'.
7123         * tmac/color-html.tmac, tmac/color.tmac: New files.
7124         * tmac/troffrc: Include them.
7125         * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
7126         * tmac/Makefile.sub: Updated.
7128         * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
7129         man/groff.man: Updated.
7130         * font/devps/prologue.ps: Define FC and CO functions.
7132 2001-10-04  Gaius Mulley  <gaius@glam.ac.uk>
7134         Fix incorrect cropping of images and incorrect handling of special
7135         characters.  Fix handling of file names in \O.
7137         * src/include/geometry.h: New file.
7138         * src/libs/libgroff/geometry.cc: New file.
7139         * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
7140         to `geometry.cc'.
7141         * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
7142         initial spaces.
7143         (do_suppress): Updated.
7144         * src/roff/troff/node.cc: Include geometry.h.
7145         (troff_output_file::flush_tbuf): Fixed parameters to
7146         `check_output_limits'.
7147         (troff_output_file::check_charinfo): Ditto.
7148         (troff_output_file::determine_line_limits): Add support for `Da'
7149         and `Dl' commands.
7151         * src/devices/grohtml/post-html.cc (str_translate_to_html):
7152         Add new parameter `is_special' to decode special characters from
7153         escape sequences.
7154         (html_printer::do_title, html_printer::do_heading,
7155         html_printer::do_indentedparagraph,
7156         html_printer::translate_to_html, html_printer::special): Updated.
7158 2001-10-03  Werner LEMBERG  <wl@gnu.org>
7160         * Makefile.sub (DISTCLEANFILES): Add stamp-h.
7161         Fix entry for config.h.
7162         * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
7163         * tmac/troffrc: Translate nonbreakable space character to `\~'.
7164         * src/preproc/eqn/eqn.man: Document -d command line option.
7166 2001-09-27  Werner LEMBERG  <wl@gnu.org>
7168         * man/groff.man: Use
7170           .ev xxx
7171           .na
7172           .nh
7173           <table>
7174           .ev
7176         instead of the old code (`.ad .hy' after the table) to suppress
7177         incorrect hyphenation for grohtml output.
7179 2001-09-22  Werner LEMBERG  <wl@gnu.org>
7181         * man/groff_font.man, man/groff_out.man: Minor fixes.
7183 2001-09-20  Werner LEMBERG  <wl@gnu.org>
7185         * PROBLEMS: Updated, reordered.  Improved EPS section (thanks to
7186         Arnold Robbins <arnold@skeeve.com>).
7188 2001-09-09  Werner LEMBERG  <wl@gnu.org>
7190         * configure: Regenerated with autoconf 2.52.
7192         * doc/groff.texinfo: Complete revision of indices.
7194 2001-09-07  Werner LEMBERG  <wl@gnu.org>
7196         * doc/Makefile (clean): Updated to delete all indices.
7198 2001-09-05  Werner LEMBERG  <wl@gnu.org>
7200         * src/roff/troff/troff.man: Remove superfluous line.
7202         * tmac/s.tmac: Enable all warnings only if no -W or -w option is
7203         given on the command line (or rather, if only the default warnings
7204         are set).
7206 2001-09-03  Werner LEMBERG  <wl@gnu.org>
7208         * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
7209         use .ne for TTY devices.
7211 2001-08-31  Werner LEMBERG  <wl@gnu.org>
7213         * src/roff/troff/token.h, src/roff/troff/input.cc:
7214         s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
7216 2001-08-28  Werner LEMBERG  <wl@gnu.org>
7218         * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
7219         * src/roff/troff/input.cc (token::next): Return
7220         TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
7221         compatibility mode.
7222         (token::description): Updated.
7223         (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
7224         (token::add_to_node_list, token::process): Ignore
7225         TOKEN_TRANSPARENT_ESCAPE.
7227 2001-08-27  Werner LEMBERG  <wl@gnu.org>
7229         * tmac/an-old.tmac: Fix `S' string.
7231 2001-08-26  Werner LEMBERG  <wl@gnu.org>
7233         * src/roff/troff/troff.man: Don't use .ne for TTY devices.
7235 2001-08-25  Werner LEMBERG  <wl@gnu.org>
7237         * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
7238         backslashes).
7239         Many other minor fixes.
7241         * configure.ac: Add message at end to inform how to compile
7242         xditview.
7243         * configure: Regenerated.
7245 2001-08-24  Werner LEMBERG  <wl@gnu.org>
7247         * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
7248         Updated to latest version of libc.
7250 2001-08-23  Werner LEMBERG  <wl@gnu.org>
7252         * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
7253         Autoconf 2.50 and newer can handle this.
7254         * configure: Regenerated.
7256 2001-08-21  Werner LEMBERG  <wl@gnu.org>
7258         * doc/pic.ms: Fix typo.
7259         * src/preproc/tbl/tbl.man: Document case of global options.
7261 2001-08-21  Gaius Mulley  <gaius@glam.ac.uk>
7263         * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
7264         handling of `CR' font.
7266 2001-08-20  Werner LEMBERG  <wl@gnu.org>
7268         Use a config.h file.
7270         * src/include/lib.h: Include config.h.
7271         * All C files: Ditto (if necessary).
7272         * All C++ source and header files: Include lib.h first (if
7273         necessary).
7275         * src/include/config.hin: New file (autogenerated by autoheader).
7276         * stamp-h.in: New file.
7277         * configure.ac: Updated.
7278         * aclocal.m4: Add third parameters to AC_DEFINE macros.
7279         (GROFF_ARRAY_DELETE): Simplified.
7280         * Makefile.sub (DISTCLEANFILES): Updated.
7281         Added targets for remaking config.status, config.hin, config.h,
7282         stamp-h.in, and stamp-h.
7283         * configure: Regenerated.
7285 2001-08-19  Werner LEMBERG  <wl@gnu.org>
7287         * NEWS: Updated.
7289 2001-08-18  Sebastian Krahmer  <krahmer@suse.de>
7291         * src/preproc/pic/pic.y (format_number): Use do_sprintf().
7292         (do_sprintf): Use snprintf().
7294 2001-08-18  Werner LEMBERG  <wl@gnu.org>
7296         * src/libs/snprintf/*: Added an snprintf module written by Mark
7297         Martinec.
7298         * src/libs/libgroff/Makefile.sub: Updated.
7299         * configure.ac: Add test for snprintf().
7300         * Makefile.in: Updated.
7301         * configure: Regenerated.
7303         * src/preproc/html/pre-html.cc (make_message): Reactivate code which
7304         uses snprintf().
7306 2001-08-14  Ruslan Ermilov  <ru@FreeBSD.org>
7308         * tmac/doc.tmac (Ex): New implementation.
7309         * tmac/doc-common, tmac/groff_tmac.man: Updated.
7311 2001-08-13  Ruslan Ermilov  <ru@FreeBSD.org>
7313         * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
7314         argument.
7315         * tmac/groff_tmac.man: Updated.
7317 2001-08-13  Werner LEMBERG  <wl@gnu.org>
7319         * src/preproc/tbl/tbl.man: Minor documentation update.
7321 2001-08-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7323         * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
7324         * configure.ac: Add declaration test for gettimeofday().
7325         * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
7326         * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
7327         * configure: Regenerated.
7329 2001-08-11  Werner LEMBERG  <wl@gnu.org>
7331         * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
7332         * configure.ac: Add declaration test for strcasecmp().
7333         * Makefile.in: Updated.
7334         * configure: Regenerated.
7335         * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
7336         this is necessary because groff's mkstemp.cc is C++.
7337         Add declaration conditionally for strcasecmp().
7339 2001-08-10  Werner LEMBERG  <wl@gnu.org>
7341         Integrated pic2graph, contributed by Eric S. Raymond.
7343         * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
7344         files.
7345         * Makefile.in, NEWS: Updated.
7347         * src/preproc/tbl/tbl.man: Revised.
7349 2001-08-09  Eric S. Raymond  <esr@thyrsus.com>
7351         * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
7353 2001-08-09  Werner LEMBERG  <wl@gnu.org>
7355         * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
7356         requests.
7358 2001-08-08  Paul Eggert  <eggert@twinsun.com>
7360         * Makefile.sub (configure): Depend on configure.ac, not
7361         configure.in.
7362         * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
7364 2001-08-07  Werner LEMBERG  <wl@gnu.org>
7366         * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
7367         fixes.
7369 2001-08-06  Werner LEMBERG  <wl@gnu.org>
7371         * src/roff/troff/troff.man: Improve documentation of -E option.
7373 2001-07-28  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
7375         * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
7376         Simplified.
7378 2001-07-27  Werner LEMBERG  <wl@gnu.org>
7380         * src/preproc/refer/refer.cc: Undo last change.
7381         * src/devices/grohtml/post-html.cc: Ditto.
7383 2001-07-26  Werner LEMBERG  <wl@gnu.org>
7385         * src/preproc/refer/refer.cc: Include `lib.h'.
7386         * src/devices/grohtml/post-html.cc: Ditto.
7388 2001-07-25  Gaius Mulley  <gaius@glam.ac.uk>
7390         * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
7391         * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
7392         * Makefile.in: Comment updated.
7393         * configure: Regenerated.
7395 2001-07-25  Werner LEMBERG  <wl@gnu.org>
7397         * src/preproc/pic/pic.cc: Removed.
7398         * src/preproc/pic/pic_tab.h: Removed.
7399         * src/preproc/refer/label.cc: Removed.
7401         * doc/Makefile (.ms.html): Don't use a file name extension in
7402         argument to grohtml's -I option.
7403         * Makefile.in (dist): Remove CVS directories.
7404         Call `distfiles' target.
7406         * src/devices/grohtml/grohtml.man: Add information about valid
7407         versions of pnmtopng.
7408         * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
7409         name instead of number.
7411 2001-07-24  Werner LEMBERG  <wl@gnu.org>
7413         * doc/groff.texinfo: Minor fixes.
7415 2001-07-21  Gaius Mulley  <gaius@glam.ac.uk>
7417         * doc/Makefile (.ms.html): Put image files into a subdirectory.
7418         (clean): Updated.
7420 2001-07-20  Werner LEMBERG  <wl@gnu.org>
7422         * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
7423         * src/libs/libgroff/mkstemp.cc: New file.
7424         * src/libs/libgroff/mksdir.cc: New file.
7425         * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
7426         (xtmpfile) [!HAVE_MKSTEMP]: Removed.
7427         * src/libs/libgroff/Makefile.sub: Updated.
7428         * src/include/lib.h: Add mksdir() prototype.
7429         * src/include/posix.h: Define S_IXUSR if not yet defined.
7431         * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
7432         (createAllPages): Use mksdir() instead of current code.
7433         * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
7434         (main): [!HAVE_MKSTEMP]: Removed.
7436         * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
7437         (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
7438         macros.
7439         * configure.ac: Add tests for stdint.h, sys/time.h, and
7440         gettimeofday().
7441         Call new GROFF_xxx macros.
7442         * configure: Regenerated.
7443         * Makefile.in: Comments updated.
7445 2001-07-20  Gaius Mulley  <gaius@glam.ac.uk>
7447         * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
7448         instead of current code.
7449         * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
7450         * src/roff/groff/groff.cc (possible_command::insert_args): New
7451         function.
7452         (main): Use it for predriver handling instead of insert_arg().
7454 2001-07-19  Werner LEMBERG  <wl@gnu.org>
7456         * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
7457         groff also.
7459         * src/include/posix.h: Define S_IWUSR if not yet defined.
7461 2001-07-18  Werner LEMBERG  <wl@gnu.org>
7463         * NEWS: Updated.
7465 2001-07-18  Ruslan Ermilov  <ru@FreeBSD.org>
7467         * tmac/groff_mdoc.man: Document new -width and -column syntax.
7468         Some other minor fixes.
7469         * tmac/an-old.tmac: Add `AT' and `UC' macros.
7471 2001-07-17  Gaius Mulley  <gaius@glam.ac.uk>
7473         Replace call to `troff' with `groff -Z' to make it aware of
7474         GROFF_BIN_PATH.
7476         * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
7477         (troff_command, command_prefix): Removed.
7478         (alterDeviceTo): Use groff.
7479         (addZ): New function.
7480         (char_buffer::do_html): Use it.
7481         (scanArguments): Use TROFF_COMMAND.
7482         (findPrefix): Removed.
7483         (main): Updated.
7484         * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
7486 2001-07-17  Eric S. Raymond  <esr@snark.thyrsus.com>
7488         * doc/pic.ms: Documentation fixes.
7490 2001-07-17  Werner LEMBERG  <wl@gnu.org>
7492         Replace atexit() with global destructor.
7494         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
7495         (xtmpfile_list_init): New global structure to deallocate
7496         xtmpfile_list on exit.  Its destructor inherits most code from
7497         remove_tmp_files().
7498         (remove_tmp_files): Deleted.
7499         (add_tmp_file): Simplified.
7501 2001-07-16  Werner LEMBERG  <wl@gnu.org>
7503         Replace strdup() with strsave().
7505         * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
7506         (set_papersize): Use strsave() and a_delete.
7507         (main): Use strsave().
7508         * src/preproc/html/pre-html.cc (make_message, createAllPages,
7509         removeAllPages): Use strsave() and a_delete.
7511         * configure.ac: Remove test for strdup.
7512         * Makefile.in: Comment updated.
7513         * configure: Regenerated.
7515 2001-07-15  Werner LEMBERG  <wl@gnu.org>
7517         * win32-diffs: Updated.
7519 2001-07-14  Werner LEMBERG  <wl@gnu.org>
7521         * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
7522         removing the old one.
7523         * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
7525 2001-07-14  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
7527         * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
7529 2001-07-12  Ruslan Ermilov  <ru@FreeBSD.org>
7531         Merge -xwidth into -width.  Add -xwidth functionality to -column
7532         also.
7534         * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
7535         avoid warning.
7536         (doc-do-Bl-args): Merge -xwidth code with -width.  Test whether
7537         string immediately following a leading dot starts with a valid mdoc
7538         argument.
7539         Add similar code to the -column branch.
7540         (doc-Bl-usage): Updated.
7541         * groff_mdoc.man: s/-xwidth/-width/.
7543 2001-07-12  Gaius Mulley  <gaius@glam.ac.uk>
7545         * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
7546         running into centered or non-formatted text.
7548 2001-07-11  Werner LEMBERG  <wl@gnu.org>
7550         Introduce short and long prefixes to have the selection at run-time
7551         whether there is a 8+3 limit for names of temporary files.
7553         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
7554         (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
7555         (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
7556         variables.
7557         (temp_init): New global structure to initialize above three
7558         variables.
7559         (xtmptemplate): Use two parameters for long and short prefix.
7560         Simplify code use above three variables.
7561         (xtmpfile): Use long and short prefixes as parameters.
7562         * src/include/lib.h: Updated.
7564         * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
7565         with ...
7566         ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
7567         (createAllPages, makeTempFiles): Updated.
7569 2001-07-09  Werner LEMBERG  <wl@gnu.org>
7571         * REVISION: Increased to 3.
7573 Version 1.17.2 released
7574 =======================
7576 2001-07-07  Werner LEMBERG  <wl@gnu.org>
7578         * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
7579         to size_t.
7581 2001-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
7583         * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
7584         Fix synopsis.
7585         * tmac/groff_mdoc.man: Fix synopsis.
7587 2001-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
7589         * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
7590         Restore `doc-Pa-font'.
7592 2001-07-04  Werner LEMBERG  <wl@gnu.org>
7594         * src/utils/indxbib/dirnamemax.c: Moved to ...
7595         * src/libs/libgroff/maxfilename.cc: Here.
7596         s/dir_name_max/file_name_max/.
7597         Add copyright.
7598         * src/include/lib.h: Add file_name_max.
7599         * src/utils/indxbib/indxbib.cc: Updated.
7600         * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
7601         Updated.
7603         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
7604         as empty.
7605         (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
7607         * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
7608         REGION_TEMPLATE): New macros.
7609         (createAllPages, makeTempFiles): Use them.
7610         Include `nonposix.h'.
7611         (html_system): New function.
7612         (createAllPages, createImage): Use it.
7613         Use EXE_EXT.
7615         * tmac/www.tmac: Fix typos.
7617 2001-07-03  Werner LEMBERG  <wl@gnu.org>
7619         * tmac/www.tmac: Disable hyphenation in normal text only if output
7620         device is html.
7621         (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
7622         * tmac/groff_mwww.man, NEWS: Updated.
7624 2001-07-03  Gaius Mulley  <gaius@glam.ac.uk>
7626         * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
7627         image location.
7629 2001-07-02  Ruslan Ermilov  <ru@FreeBSD.org>
7631         * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
7632         doc-display-ps-stack): Implement font and font size stack for
7633         displays.
7635 2001-07-02  Werner LEMBERG  <wl@gnu.org>
7637         * REVISION: Increased to 2.
7638         * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
7640         * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
7641         beginning of a line.
7642         * src/groff/grog/grog.sh: Ditto.
7644 2001-06-29  Peter Marquardt  <wwwutz@molgen.mpg.de>
7646         * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
7647         make it portable.
7649 2001-06-27  Werner LEMBERG  <wl@gnu.org>
7651         Fix problems with preprocessor string for `man' program.
7653         * *.man: Don't use `s' in preprocessor string --  it doesn't exist.
7654         Updated/added copyright.
7655         Moved Emacs's local variable to identify nroff mode to the end of
7656         the file; add local variable if missing.
7658 2001-06-26  Andras Salamon  <andras@cs.wits.ac.za>
7660         * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
7661         AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
7662         * configure: Regenerated.
7664 2001-06-25  Andras Salamon  <andras@cs.wits.ac.za>
7666         * aclocal.m4 (GROFF_PAGE): Fix page detection code.
7667         * configure: Regenerated.
7669 2001-06-24  Werner LEMBERG  <wl@gnu.org>
7671         * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
7672         but www.tmac.
7673         * doc/pic.ms: Fix typos.
7675 Version 1.17.1 released
7676 =======================
7678 2001-06-21  Golubev I. N.  <gin@mo.msk.ru>
7680         * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
7681         * configure: Updated.
7683 2001-06-20  Gaius Mulley  <gaius@glam.ac.uk>
7685         * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
7686         image names.
7687         * src/roff/troff/dic.cc (blank_line): Add html tag.
7689 2001-06-19  Gaius Mulley  <gaius@glam.ac.uk>
7691         * src/roff/troff/input.cc (do_suppress): Fix typo.
7693 2001-06-18  Gaius Mulley  <gaius@glam.ac.uk>
7695         Added two new options (-D and -I) to specify image names and a
7696         subdirectory to place the images in.
7698         Change syntax from \\Ox to \\O[x].
7700         * src/devices/grohtml/post-html.cc (main): Add options.
7701         (usage): Updated.
7702         * src/preproc/html/pre-html.cc: Include `stdarg.h'.
7703         Use `NULL' instead of `0' for null string pointers.
7704         (MAX_RETRIES): New macro.
7705         (lengthOfintToStr, intToStr, make_message): New functions.
7706         (makeFileName): Make function static.
7707         Implement -D and -I options.
7708         (checkImageDir): New function.
7709         (write_end_image, write_start_image): Use new syntax of \O.
7710         (createAllPages, removeAllPages): Implement -D and -I options.  Use
7711         make_message().
7712         (createImage): Use make_message().
7713         (addps4html): Add guard for malloc().
7714         (usage, scanArguments): Updated.
7715         (makeTempFiles): Use mkstemp().
7716         (removeTempFiles): Use unlink().
7717         (findPrefix): Add guard for malloc().
7718         (main): Updated.
7719         * src/roff/troff/input.cc (get_delim_file_name): New function to
7720         parse \O.
7721         (do_suppress): Updated to parse new syntax.
7722         * src/devices/grohtml/grohtml.man: Updated.
7723         * tmac/www.tmac: Updated to new syntax.
7725         * NEWS: Updated.
7727 2001-06-15  Werner LEMBERG  <wl@gnu.org>
7729         * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
7731         * src/devices/grohtml/grohtml.man: Minor improvements.
7733 2001-06-14  Werner LEMBERG  <wl@gnu.org>
7735         * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
7737 2001-06-11  Werner LEMBERG  <wl@gnu.org>
7739         * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
7740         line to specify preprocessor options -- mandb 2.3.1 only recognizes
7741         the former.
7742         * src/preproc/grn/grn.man: Add proper '\" string.
7744 2001-06-11  OKAZAKI Tetsurou  <okazaki@be.to>
7746         * test-groff: Don't use PATH but GROFF_BIN_PATH.
7748 2001-06-08  Werner LEMBERG  <wl@gnu.org>
7750         Updated to autoconf 2.50.
7752         * configure.in: Renamed to...
7753         * configure.ac: This.
7754         * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
7755         (GROFF_OS390): Updated.
7756         * configure: Regenerated.
7758 2001-05-18  Werner LEMBERG  <wl@gnu.org>
7760         * src/roff/troff/env.c, src/roff/troff/env.h,
7761         src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
7762         from 2000-12-21.
7764 2001-05-17  Jeffrey Friedl  <jfriedl@yahoo-inc.com>
7766         * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
7768 2001-05-16  Werner LEMBERG  <wl@gnu.org>
7770         * src/roff/troff/input.cc (read_size): Emit warning if value becomes
7771         less than or equal zero; set it to 1 then.
7772         * src/roff/troff/node.h (node::node): Initialize `last'.
7774 2001-05-08  Werner LEMBERG  <wl@gnu.org>
7776         * tmac/an-old.tmac: Make predefined strings work in compatibility
7777         mode.
7778         Add troff version guard.
7779         * tmac/doc.tmac: Simplify version guard.
7781 2001-05-07  Werner LEMBERG  <wl@gnu.org>
7783         The .ns and .rs requests are now honoured not only in the top-level
7784         but in all diversions (similar to UNIX troff).
7786         This change is based on a patch from Tadziu Hoffmann
7787         <hoffmann@usm.uni-muenchen.de>.
7789         * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
7790         (top_level_diversion): Remove `no_space_mode' member.
7791         * src/roff/troff/div.cc (diversion::diversion,
7792         top_level_diversion::top_level_diversion): Updated.
7793         (macro_diversion::output): Reset `no_space_mode'.
7794         (no_space, restore_spacing): Use `curdiv' unconditionally.
7795         (space_request, blank_line): Check `curdiv->no_space_mode'.
7796         (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
7797         `curdiv' unconditionally.
7798         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
7799         Updated.
7801 2001-05-06  Werner LEMBERG  <wl@gnu.org>
7803         Added two new requests `de1' and `am1' which are similar to `de' and
7804         `am' with the difference that compatibility mode is saved on entry,
7805         switched off during macro execution, and restored on exit.
7807         * src/roff/troff/input.h: Added two new special characters
7808         (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
7809         * src/roff/troff/input.cc (input_iterator): Added two member
7810         functions `save_compatible_flag' and `get_compatible_flag'.
7811         (input_stack): Ditto.
7812         (string_iterator): Ditto.  Also add private member
7813         `saved_compatible_flag'.
7814         (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
7815         (calling_mode): New enumeration.
7816         (do_define_macro): Use it.  Insert COMPATIBLE_SAVE and
7817         COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
7818         (define_macro, define_indirect_macro, append_macro, ignore): Use
7819         `calling_mode'.
7820         (define_nocomp_macro, append_nocomp_macro): New functions.
7821         (init_input_requests): Updated.
7822         (do_request): Rename local variable `saved_compatible_flag' to
7823         `old_compatible_flag'.
7824         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7826         * tmac/an-old.tmac: Use `de1' instead of `de' request for all
7827         public and trap-invoked macros.  As a consequence, the man macros
7828         work in compatibility mode also.
7830 2001-05-06  Solar Designer  <solar@openwall.com>
7832         * Makefile.in: Use $(mandir).
7834 2001-05-06  Alexios Zavras  <zvr@pobox.com>
7836         * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
7838 2001-05-05  Werner LEMBERG  <wl@gnu.org>
7840         Added `.ns' number register: Returns 1 in no-space mode (if in
7841         top-level diversion), 0 otherwise.
7843         * src/roff/troff/div.cc (no_space_mode_reg): New class.
7844         (init_div_requests): Updated.
7845         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
7846         Document it.
7848 2001-05-04  Werner LEMBERG  <wl@gnu.org>
7850         * src/roff/nroff/nroff.man: Improved documentation (especially
7851         locales).
7853 2001-05-02  Werner LEMBERG  <wl@gnu.org>
7855         Added `brp' request: This is \p as a request.
7857         * src/roff/troff/env.cc (environment::do_break): Add parameter
7858         `spread'.
7859         (do_break_request): New function (was `break_request').
7860         (break_request): Calls `do_break_request'.
7861         (break_spread_request): New; calls `do_break_request'.
7862         (init_env_requests): Updated.
7863         * src/roff/troff/env.h: Updated.
7864         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7866         * REVISION: Increased to 1.
7867         * win32-diffs: Updated.
7869 2001-05-01  Werner LEMBERG  <wl@gnu.org>
7871         * tmac/an-old.tmac: Fix minor compatibility mode issue.
7872         * tmac/troffrc-end: Make it really work in compatibility mode.
7874 2001-04-27  Werner LEMBERG  <wl@gnu.org>
7876         * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
7877         stdlib.h.
7879 2001-04-22  Werner LEMBERG  <wl@gnu.org>
7881         * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
7882         latest versions from glibc CVS archive.
7884         * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
7885         <c.zeelenberg@hccnet.nl>.
7887 2001-04-21  Werner LEMBERG  <wl@gnu.org>
7889         * configure.in: Move check for mkstemp() to...
7890         * aclocal.m4 (GROFF_MKSTEMP): This new function.
7891         * configure: Regenerated.
7893         * src/include/groff-getopt.h: Don't use variable names in
7894         declarations.
7896         * src/devices/grohtml/html-chars.h: Removed.  It isn't used.
7897         * src/devices/grohtml/Makefile.sub,
7898         src/devices/grohtml/post-html.cc: Updated.
7900 2001-04-21  Albert Chin-A-Young  <china@thewrittenword.com>
7902         * configure.in: Add special check for mkstemp().
7903         * src/libs/libgroff/tmpfile.cc: Use it.
7904         * src/utils/indxbib/indxbib.cc: Ditto.
7905         * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
7906         * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
7907         `const'.
7909 2001-04-20  Bruce Lilly  <blilly@erols.com>
7911         `Version_string' as C++ object was not visible to linker from C
7912         object files.
7913         Add `const' to `Version_string'.
7915         * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
7916         (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
7917         (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
7918         (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
7919         (scanArguments), src/preproc/refer/refer.cc (main),
7920         src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
7921         (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
7922         (main), src/devices/grohtml/post-html.cc (main),
7923         src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
7924         (main), src/utils/hpftodit/hpftodit.cc (main),
7925         src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
7926         (main), src/utils/lkbib/lkbib.cc (main),
7927         src/utils/addftinfo/addftinfo.cc (main): Implement it.
7929         * src/roff/groff/pipeline.c: Add _UWIN.
7930         * src/include/nonposix.h: Ditto.
7932 2001-04-20  Werner LEMBERG  <wl@gnu.org>
7934         * src/include/lib.h: Use HAVE_STRERROR.
7935         * src/roff/groff/pipeline.c: Ditto.
7936         * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
7937         * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
7938         * src/utils/pfbtops/pfbtops.c: Add copyright notice.
7939         * win32-diffs: Updated.
7940         * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
7942 2001-04-19  Werner LEMBERG  <wl@gnu.org>
7944         * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
7945         instead of hardwired `"troff"'.
7946         (char_buffer::read_file): Remove unused variables.
7947         (char_buffer::write_file_troff): Ditto.
7948         (char_buffer::write_file_html): Ditto.
7949         (generateImages): Ditto.
7950         (abs): Removed.
7951         * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
7953         * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
7955         * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
7956         * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
7957         index_search_item::search1): Ditto.
7958         * src/roff/troff/node.h (width_list): Reorder members.
7959         * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
7960         (lookup_warning): Ditto.
7961         (prepend_string): Commented out.
7962         * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
7963         * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
7964         * src/preproc/tbl/main.cc (process_format): Ditto.
7965         * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
7966         compiler warnings.
7967         * src/preproc/pic/pic.cc: Updated.
7968         * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
7969         * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
7970         * src/preproc/refer/command.cc (execute_command): Ditto.
7971         * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
7972         * src/preproc/refer/token.cc (lookup_token): Ditto.
7973         * src/preproc/soelim/soelim.cc: Ditto.
7974         * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
7975         (isHexDigit): Commented out.
7976         (pushBackBuffer::isString): Remove unused variable.
7977         * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
7978         warning.
7979         * src/devices/grops/psrm.cc (resource_manager::lookup_font,
7980         resource_manager::read_resource_arg, read_one_of, parse_extensions):
7981         Ditto.
7982         * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
7983         * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
7984         lookup_paper_size): Ditto.
7985         * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
7986         (text_glob, element_list): Reorder members.
7987         * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
7988         compiler warning.
7989         * src/devices/grohtml/html-text.h (html_text::emit_space): Change
7990         return value to `void'.
7991         * src/devices/grohtml/output.cc (word_list::word_list): Fix order
7992         of initializers.
7993         * src/devices/grohtml/html.h (simple_output::check_newline,
7994         simple_output::space_or_newline, simple_output::enable_newlines):
7995         Add return value.
7996         * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
7997         compiler warnings.
7998         * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
7999         * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
8000         output_ligatures, output_charset, read_map): Ditto.
8001         * src/utils/lookbib/lookbib.cc (main): Ditto.
8002         * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
8003         (do_file): Fix typo (`=' -> `==').
8004         * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
8005         * src/utils/addftinfo/addftinfo.cc (main): Ditto.
8007 2001-04-18  Ruslan Ermilov  <ru@FreeBSD.org>
8009         * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
8010         Fix usage of GROFF_BIN_PATH.
8011         * src/roff/nroff/nroff.man: Updated.
8013 2001-04-18  Werner LEMBERG  <wl@gnu.org>
8015         * NEWS: Fixing typos.
8016         Updated.
8018 Version 1.17 released
8019 =====================
8021 2001-04-17  Werner LEMBERG  <wl@gnu.org>
8023         * tmac/Makefile.sub (install-data): mdoc.local-s is in current
8024         directory, not in $(srcdir).
8026 2001-04-16  Werner LEMBERG  <wl@gnu.org>
8028         * doc/groff.texinfo: More info on conditionals.
8030 2001-04-15  Werner LEMBERG  <wl@gnu.org>
8032         * doc/groff.texinfo: Added some info about groff internals.
8034         * src/roff/troff/node.cc (make_glyph_node): Emit warning message
8035         about missing special character only if the name is non-null.
8037 2001-04-14  Werner LEMBERG  <wl@gnu.org>
8039         Removing the grohtml-old device driver which is now obsolete.
8041         * src/devices/grohtml-old/*: Removed.
8042         * font/devhtml-old/*: Removed.
8043         * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
8044         Remove comments.
8045         * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
8046         * test-groff (PATH): Updated.
8047         * tmac/Makefile.sub (NORMALFILES): Updated.
8048         * tmac/an-old.tmac: Remove special code for html-old device.
8049         Replace `html-or-html-old' register with `an-html'.
8050         * tmac/eqnrc: Updated.
8051         * tmac/html-old.tmac: Removed.
8052         * tmac/troffrc, tmac/troffrc-end: Updated.
8053         * tmac/www.tmac: Remove special code for html-old device.
8054         Replace `html-or-html-old' register with `www-html'.
8056         * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
8057         src/libs/libgroff/htmlindicate.cc (graphic_end),
8058         include/htmlindicate.h, src/preproc/grn/*.cc,
8059         src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
8060         single argument for consistency with rest of source code.
8062         * aclocal.m4, tmac/an-old.tmac: Fix copyright.
8064 2001-04-13  Ruslan Ermilov  <ru@FreeBSD.org>
8066         * src/roff/troff/troff.man: Fixing typos.
8068 2001-04-13  Werner LEMBERG  <wl@gnu.org>
8070         * doc/pic.ms: Fixing many font switches.
8071         * doc/groff.texinfo: Fixes, additions.
8072         * MORE.STUFF: Updated.
8074 2001-04-12  Gaius Mulley  <gaius@glam.ac.uk>
8076         * src/devices/grohtml/grohtml.man: Updated manual page regarding
8077         simple anchor.
8078         * src/preproc/html/pre-html.cc (createImage): Fixed right hand
8079         cropping of images.
8080         (removeTempFiles): New function to tidy up temporary files.
8081         * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
8082         Many fixes to do with the new inline suppress node and image regions
8083         are much tighter.
8084         * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
8085         (generate_img_src): New function.
8086         (html_printer::do_auto_image): Utilizes it.
8087         (do_heading, do_title): Include inline images within their contents.
8088         (html_printer::begin_page): Tidied up comments that are issued to
8089         the html output file.
8090         (html_printer::do_fill): Fixed so that `.nf' works with fonts other
8091         than courier.
8092         (text_glob::is_br): New method used by do_heading.
8093         * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
8094         equivalent diversion.
8095         * src/include/html-strings.h: Altered image tags to reflect the
8096         inline image node.
8097         * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
8098         parameter.
8099         * src/preproc/eqn/main.cc: Will suppress generation of image tags if
8100         it is already inside a pic image.  Only emit tags if the argument
8101         `-Tps:html' is present.
8102         * src/preproc/tbl/main.cc: Changes to reflect additional
8103         `html_end_suppress' parameter.
8104         * src/roff/troff/env.cc: Only emit eol tag if a node has been
8105         emitted since the last eol tag was written.
8106         * src/roff/troff/env.h: New boolean `emitted_node'.
8107         * src/roff/troff/input.cc (do_suppress): Handles extra suppress
8108         nodes \O3, \O4, \O5.  No longer use `output_low_mark_miny'.
8109         * src/roff/troff/node.cc (check_charinfo): New method. 
8110         (troff_output_file::determine_line_limits): Alterations to limit
8111         checking.
8112         * tmac/www.tmac: Changes to reflect new suppress nodes.
8113           
8114 2001-04-12  Bruno Haible  <haible@clisp.cons.org>
8116         * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
8117         Escape the html_glyph in the buffer.
8118         (str_translate_to_html): Output the unescaped escaped_char.
8119         * src/devices/grohtml/html-text.cc (issue_table_begin): Set
8120         `frame=void', not `frame=none'.  Add `border=0'.
8122 2001-04-12  Werner LEMBERG  <wl@gnu.org>
8124         * PROBLEMS: Add some words on how to avoid wrapper macros.
8126 2001-04-11  Blake McBride  <blake@florida-software.com>
8128         * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
8130 2001-04-11  Werner LEMBERG  <wl@gnu.org>
8132         * font/devlbp/Makefile.sub (CLEANADD): Set it.
8133         * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
8134         * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
8135         * Makefile.sub (DISTCLEANFILES): Here.
8137         * libs/libgroff/new.cc: Include `nonposix.h'.
8138         * win32-diffs: Updated.
8140 2001-04-10  Ruslan Ermilov  <ru@FreeBSD.org>
8142         Added skeleton macro for defunct macros.
8144         Updated documentation.
8146         When inside displays, an empty input line warning should be
8147         suppressed.  If another macro call is put inside a display,
8148         all subsequent empty lines found in that display caused a
8149         warning to be emitted.
8151         * tmac/doc.tmac (doc-defunct-macro): New macro.
8152         (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
8153         (doc-restore-global-vars): Fixed typo.
8154         (doc-empty-line): Check the `doc-display-depth' register to
8155         determine whether we are inside display or not.
8157         * tmac/doc-common: Removed `Or' and `Sf' registers.
8158         Moved obsolete `Ds' macro to doc.tmac.
8160         * tmac/groff_mdoc.man: Bump document date.
8161         Document `.Vt' under ``Variable Types''.
8162         Removed documentation for obsolete `.Or' macro.
8164 2001-04-10  Werner LEMBERG  <wl@gnu.org>
8166         * NEWS: Updated.
8167         * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
8169 2001-04-10  Bruno Haible  <haible@clisp.cons.org>
8171         * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
8172         (usage): Add stream argument. Don't exit.
8173         * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
8174         Write --version output to stdout, not stderr.
8175         (usage): Add stream argument. Don't exit.
8176         * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
8177         (usage): Add stream argument. Don't exit.
8178         * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
8179         constants.
8180         (usage): Add stream argument. Don't exit.
8181         (main): Write --help output to stdout, not stderr.
8182         * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
8183         (usage): Add stream argument. Don't exit.
8184         * src/devices/grops/ps.cc (main): Accept --help and --version.
8185         (usage): Add stream argument. Don't exit.
8186         * src/devices/grotty/tty.cc (main): Accept --help and --version.
8187         (usage): Add stream argument. Don't exit.
8188         * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
8189         (main): Accept --help and --version.
8190         * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
8191         (main): Accept --help and --version.
8192         * src/preproc/html/pre-html.cc (usage): Add stream argument.
8193         (scanArguments): Accept --help and --version.
8194         * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
8195         (main): Accept --help and --version.
8196         * src/preproc/refer/refer.cc (main): Accept --help and --version.
8197         (usage): Add stream argument. Don't exit.
8198         * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
8199         exit.
8200         (main): Accept --help and --version.
8201         * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
8202         (main): Accept --help and --version.
8203         * src/roff/groff/groff.cc (main): Accept --help and --version.
8204         (synopsis): Add stream argument.
8205         (help): Write --help output to stdout, not stderr.
8206         (usage): Add stream argument. Don't exit.
8207         * src/roff/grog/grog.pl: Accept --help and --version.
8208         (help): New sub.
8209         * src/roff/grog/grog.sh: Accept --help and --version.
8210         * src/roff/nroff/nroff.sh: Accept --help and --version.
8211         * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
8212         (usage): Add stream argument. Don't exit.
8213         (main): Accept --help and --version.
8214         * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
8215         (usage): New function with stream argument, doesn't exit.
8216         * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
8217         (usage): New function with stream argument, doesn't exit.
8218         * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
8219         (usage): Add stream argument. Don't exit.
8220         * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
8221         (main): Accept --help and --version.
8222         * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
8223         exit.
8224         (main): Accept --help and --version.
8225         * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
8226         (main): Accept --help and --version.
8227         * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
8228         (usage): Add stream argument. Don't exit.
8230 2001-04-10  Ruslan Ermilov  <ru@freebsd.org>
8232         Fix indentation in SYNOPSIS.
8234         Updated to include changes of latest BSD mdoc version (basically,
8235         the only change is that `.Fn' and `.Fc' put a final semicolon after
8236         a function declaration in the SYNOPSIS section).
8238         * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
8239         (doc-in-synopsis-section): New variable.  Updated all related
8240         functions.
8241         (doc-indent-synopsis-active): New register.
8242         (Nd, Fn, Fo): Use it.
8243         (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
8244         `.Cd' with long argument line produces indented wrapped lines. 
8245         Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
8246         undesirable line break to be output.
8247         (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
8248         `.rs'.
8249         (Fn, Fc): Add final `;' to output.
8250         (doc-save-global-vars, doc-restore-global-vars): Updated.
8251         * tmac/doc-common: Remove `Ex' register.
8252         Updated.
8253         * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
8254         copyright.
8256 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
8258         * tmac/doc.tmac (Cd): Simplify code.
8259         * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
8261 2001-04-06  Werner LEMBERG  <wl@gnu.org>
8263         Implement continuous underlining for nroff mode.  To do that, a new
8264         request in the ditroff language has been added: `x u N' (N is 0
8265         or 1).
8267         \X and \Y are now transparent to end-of-sentence recognition.
8269         * src/include/printer.h (printer): Add `type' parameter to `special'
8270         method.
8271         * src/libs/libdriver/printer.cc (printer::special): Updated.
8272         * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
8274         * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
8275         specials of type `p'.
8276         * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
8277         * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
8278         * src/devices/grops/ps.cc (ps_printer::special): Ditto.
8279         * src/devices/grotty/tty.cc: Add new enum CU_MODE.
8280         (glyph::order): New method.
8281         (tty_printer::add_char): Use it.
8282         (tty_printer::special): New method.
8283         (tty_printer::end_page): Implement it.
8285         * src/roff/troff/node.h (special_node): Add `no_init_string' member.
8286         * src/roff/troff/node.cc (special_node::special_node): Add parameter
8287         to set `no_init_string'.
8288         (special_node::tprint_start): Use it.
8289         (special_node::same, special_node::copy): Updated.
8290         (special_node::ends_sentence): New method.
8291         (troff_output_file::start_special): Add parameter to include
8292         inititialization of special conditionally.
8294         * src/roff/troff/env.h (environment): New member `underline_spaces'.
8295         * src/roff/troff/env.cc (do_underline_special): New function.
8296         (environment::set_font): Use it.
8297         (do_underline): Use it.  This was `underline()'.
8298         (underline): Call `do_underline()'.
8299         (continuous_underline): New function which calls `do_underline()'.
8300         (environment::newline): Use `do_underline_special()'.
8301         (init_env_requests): Updated.
8303         * NEWS, man/troff_out.man: Updated.
8305 2001-04-06  Bruno Haible  <haible@clisp.cons.org>
8307         * font/devutf8/R.proto: Fix code of 'shc'.
8309 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
8311         Many fixes.  Diag lists can now be nested also; additionally,
8312         `-compact' and `-offset' are supported.
8314         * tmac/doc.tmac (doc-have-indent): Replaced with ...
8315         (doc-list-have-indent-stackXXX): A new register stack.
8316         (doc-have-diag-list): Removed.
8317         (Bl): Use `doc-list-have-indent-stackXXX'.
8318         (El): Updated.
8319         (doc-diag-list): Use `doc-compact-list-stackXXX'.
8320         (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
8321         (doc-set-vertical-and-indent): Ditto.
8322         (doc-next-list-depth): Removed.
8323         (doc-increment-list-stack): Updated.
8324         (doc-decrement-list-stack): Use `doc-list-depth' instead of
8325         `doc-next-list-depth'.
8326         (doc-end-list, doc-end-column-list): Don't use
8327         `doc-increment-list-stack'.
8328         (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
8329         (doc-save-global-vars, doc-restore-global-vars): Updated.
8330         * tmac/doc-common: Updated.
8331         * tmac/groff_mdoc.man: Updated.
8332         * NEWS: Fix typo.
8334 2001-04-02  Werner LEMBERG  <wl@gnu.org>
8336         * src/devices/grotty/grotty.man: Fix grammatical error.
8338 2001-03-30  Ruslan Ermilov  <ru@freebsd.org>
8340         Remove .Ld from mdoc package; replace it with special handling of
8341         `...'.
8343         * tmac/doc-common: Remove `Ld' register.
8344         Uncomment `doc-volume-ds-*' strings.
8345         Remove `doc-operating-system-default'.
8346         (Os): Updated.
8347         * tmac/doc-syms (Ld): Removed.
8348         * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
8349         `...' specially.
8350         * NEWS: Updated.
8352         * tmac/groff_mdoc.man: Many fixes and updates.
8354 2001-03-29  Werner LEMBERG  <wl@gnu.org>
8356         * tmac/troffrc-end: Protect data with `.do'.  Reported by T. Kurt
8357         Bond <tkb@tkb.mpl.com>.
8358         * tmac/www.tmac: Save compatibility mode.
8360 2001-03-28  Ruslan Ermilov  <ru@freebsd.org>
8362         * tmac/groff_mdoc.man: Many fixes.
8364 2001-03-28  Werner LEMBERG  <wl@gnu.org>
8366         * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
8367         isn't recognized.
8369 2001-03-27  Werner LEMBERG  <wl@gnu.org>
8371         * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
8372         diversion.  This fixes overlong tags.
8374 2001-03-26  Werner LEMBERG  <wl@gnu.org>
8376         * doc/groff.texinfo: Fixed and improved documentation of fonts.
8377         * tmac/doc-syms: Fix error messages.
8378         * tmac/an-old.tmac: Remove incorrect double backslashes.
8380 2001-03-24  Ruslan Ermilov  <ru@freebsd.org>
8382         * tmac/Makefile.sub: Strip mdoc.local also
8383         * tmac/strip.sed: Fixed.
8385 2001-03-24  Werner LEMBERG  <wl@gnu.org>
8387         * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
8388         selecting the font size.
8389         * tmac/groff_mdoc.man, NEWS: Document it.
8391 2001-03-23  Werner LEMBERG  <wl@gnu.org>
8393         * src/roff/troff/div.cc (save_vertical_space): Add default argument
8394         to `sv' request.
8395         * src/roff/troff/env.cc (family_change): Make `.fam' accept no
8396         argument to restore previous font family.
8397         * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
8399         * doc/groff.texinfo: More fixes and additions (mainly for font
8400         manipulating commands).
8402         * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
8403         * tmac/groff_mdoc.man: This.  The quick reference has been removed.
8404         * tmac/Makefile.sub, NEWS: Updated.
8406 2001-03-23  Werner LEMBERG  <wl@gnu.org>
8408         Replaced mdoc implementation.  The new version is `state of the
8409         art', using almost all new features of groff 1.17 -- it won't run
8410         with older versions.
8412         * tmac/doc.tmac: Completely rewritten.
8413         * tmac/doc-common: Ditto.
8414         * tmac/doc-nroff: Ditto.
8415         * tmac/doc-ditroff: Ditto.
8416         * tmac/doc-syms: Ditto.
8417         * tmac/mdoc.local: New file.
8418         * tmac/groff_mdoc.samples.man: Replaced with ...
8419         * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
8420         * tmac/strip.sed: Updated.
8421         * tmac/Makefile.sub: Updated.
8422         * INSTALL: Updated.
8424         * tmac/groff_man.man: Add `man.local' to the FILES section.
8426 2001-03-22  Werner LEMBERG  <wl@gnu.org>
8428         * doc/groff.texinfo: Added many @noindent.
8429         Replaced @end_Example -> @endExample.
8430         Added info whether registers are r/o.
8431         Many other additions and fixes.
8433 2001-03-21  Werner LEMBERG  <wl@gnu.org>
8435         * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
8436         in makeinfo of texinfo 4.0) to be used in @Def* macros.
8437         Improved @Def* macros: Now the exact syntax of request, register,
8438         and escapes is shown.
8439         Added macros for parentheses and brackets to be used in @Def*.
8440         Many fixes and improvements of the documentation.
8442 2001-03-20  Werner LEMBERG  <wl@gnu.org>
8444         * doc/groff.texinfo: Added new index: `st' (for strings).
8445         Added macros @Defstr(x).
8446         Added macro @Example (adding @group).
8447         Other minor improvements.
8449 2001-03-19  Werner LEMBERG  <wl@gnu.org>
8451         * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
8452         `rq' for requests.  `fn' is no longer used.
8453         Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
8454         Removed @Deffn(x).
8456         * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
8457         number with name of man page.
8459 2001-03-19  Larry Kollar  <kollar@alltel.net>
8461         * doc/groff.texinfo: Complete revision.  Added many @Deffn to gain
8462         consistency.
8464 2001-03-19  Werner LEMBERG  <wl@gnu.org>
8466         * man/groff_font.man: Document `prepro', `postpro', and `print'.
8467         * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
8468         * src/devices/grohtml/grohtml.man: Fixing typos.
8470 2001-03-19  Gaius Mulley  <gaius@glam.ac.uk>
8472         * tmac/s.tmac (@IP): Pass `.ip' html tag.
8473         * tmac/groff_mwww.man: Remove .LINE macro
8474         * tmac/www.tmac (LINE): Add `.ti'.
8476         * src/devices/grohtml/post-html.cc (html_printer): New member
8477         `indent'.
8478         (html_printer::emit_raw): Use it.
8479         (html_printer::do_linelength): Ditto.
8480         (html_printer::do_pageoffset): Ditto.
8481         (html_printer::do_indentation): Ditto.
8482         (html_printer::do_tempindent): Ditto.
8483         (html_printer::do_break): Ditto.
8484         (html_printer::begin_page): Ditto.
8485         (html_printer::do_indentedparagraph): New function.
8486         (html_printer::troff_tag): Handle `.ip'.
8487         * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
8488         Add `<td width=...>' handling.
8489         (html_text::do_table): Add parameter.
8490         (html_text::do_indent): Updated.
8491         * src/devices/groohtml/html-text.h: Updated.
8493 2001-03-16  Gaius Mulley  <gaius@glam.ac.uk>
8495         Introduced simple html tables to implement indentation.
8497         * src/devices/grohtml/html.h (word, word_list): New structures.
8498         (simple_output): Use it.
8499         * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
8500         (html_printer): Improve indentation handling.
8501         (html_printer::emit_raw): Set `in_table' element.  Handle
8502         indentation if set.
8503         (html_printer::write_header): Move conditional downwards.
8504         Don't allow whitespace in tags.
8505         (html_printer::do_linelength): Handle line length and indentation
8506         conditionally.
8507         (html_printer::do_pageoffset): Handle indentation conditionally.
8508         (html_printer::do_indentation): Ditto.
8509         (html_printer::do_tempindent): New function member.
8510         (html_printer::do_fill): Take care of indentation.
8511         (html_printer::do_flush): Finish table.
8512         (html_printer::do_links): Ditto.
8513         (html_printer::do_break): New function for handling `.br' and `.ti'.
8514         (html_printer::troff_tag): Use it.
8515         Handle `.ti'.
8516         (html_printer::flush_globs): Fix.
8517         (html_printer::flush_page): Finish table.
8518         (html_printer::html_printer): Fix error message.  Set up
8519         `linelength'.
8520         (html_printer::add_to_sbuf): Remove special handling of character
8521         code 255.
8522         (to_unicode): Remove `stop()'.
8523         (html_printer::write_title): Cleanup.
8524         (html_printer::begin_page): Use `put_string()'.  Handle indentation.
8525         (html_printer::~html_printer): Flush text and end the line.
8526         Use `put_string()'.
8527         * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
8528         * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
8529         emission of tags.
8530         (html_text::start_tag): Disable newlines.
8531         (html_text::table_is_void): New function.
8532         (html_text::issue_table_begin): Ditto.
8533         (html_text::issue_table_end): Ditto.
8534         (html_text::push_para): Better table handling.
8535         (html_text::do_indent): New function.
8536         (html_text::do_table): Ditto.
8537         (html_text::done_table): Ditto.
8538         (html_text::do_tt): Handle PRE_TAG.
8539         (html_text::is_in_table): New function.
8540         (html_text::check_emit_text): Handle tables.
8541         (html_text::do_emittext): Use `nl()'.
8542         (html_text::do_para): Handle table.
8543         (html_text::remove_def): New function.
8544         * src/devices/grohtml/output.cc (word, word_list): Implement
8545         methods.
8546         (simple_output::end_line): Flush last word.
8547         (simple_output::simple_comment): Ditto.
8548         (simple_output::begin_comment): Recoded.
8549         (simple_output::end_comment): Ditto.
8550         (simple_output::comment_arg): Removed.
8551         (simple_output::check_newline): Improve test and flush last word.
8552         (simple_output::space_or_newline): Improved.
8553         (simple_output::write_newline): Replaced with...
8554         (simple_output::nl): This.
8555         (simple_output::put_raw_char): Flush last word.
8556         (simple_output::check_space): Removed.
8557         (simple_output::put_translated_string): Ditto.
8558         (simple_output::put_string): Simplified.
8559         (simple_output::put_number): Updated.
8560         (simple_output::put_float): Ditto.
8561         (simple_output::put_symbol): Removed.
8562         (simple_output::enable_newlines): Add `check_newline()'.
8563         (simple_output::flush_last_word): New function.
8565         * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
8566         * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
8568         * tmac/s.tmac (@PP, @IP): Add html conditional code.
8569         * tmac/an-old.tmac (TP): Ditto.
8571 2001-03-09  Ruslan Ermilov  <ru@freebsd.org>
8573         * mdate.sh: Make it POSIX compliant.
8575 2001-03-09  Werner LEMBERG  <wl@gnu.org>
8577         Added the `return' request to end a macro immediately.  It simply
8578         pops iterators from the input stack until a macro iterator is found.
8580         * src/roff/troff/input.cc (input_iterator::is_macro,
8581         macro_iterator::is_macro): New member.
8582         (input_return_boundary): New class to signal an immediate return
8583         to while_request().
8584         (input_stack::add_return_boundary, input_stack::is_return_boundary):
8585         New functions.
8586         (input_stack::clear): Use it.
8587         (input_stack::pop_macro): New function.
8588         (while_request): Use `is_return_boundary()'.
8589         (return_macro_request): New function.
8590         (init_input_requests): Use it.
8592         * src/roff/troff/TODO: Updated.
8593         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8595 2001-03-08  Werner LEMBERG  <wl@gnu.org>
8597         * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
8598         cleanup.
8600 2001-03-07  Werner LEMBERG  <wl@gnu.org>
8602         Make `\B' more rigid.
8604         * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
8605         parameter.
8606         (get_number_rigidly): New function.
8607         * src/roff/troff/input.cc (do_expr_test): Use it.
8608         * src/roff/troff/token.h: Updated.
8610         * src/roff/troff/request.h: Fix typo (init_html_request ->
8611         init_markup_request).
8613 2001-03-04  Gaius Mulley  <gaius@glam.ac.uk>
8615         Fixed grohtml handling of any named glyph for glyph indexes < 0x80. 
8616         Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
8617         are now `.begin', `.end', `.image'.
8619         * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
8620         (html_printer::add_to_sbuf): Changing type of `code' parameter.
8621         Use add_char_to_sbuf().
8622         (to_unicode): New function.
8623         (char_translate_to_html): Changing type of `ch' parameter.
8624         Use `to_unicode()'.
8625         (html_printer::~html_printer): Comment out doctype string.
8626         * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
8627         instead of `.html-end'.
8628         (write_start_image): Use `.begin' and `.image' instead of
8629         `.html-begin' and `.html-image'.
8630         * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
8631         (html_begin): Renamed to ...
8632         (begin): This.
8633         (html_end): Renamed to ...
8634         (end): This.
8635         (html_image): Renamed to ...
8636         (image): This.
8637         (init_html_requests): Renamed to ...
8638         (init_markup_requests): This.
8639         * tmac/www.tmac: Updated.
8641 2001-02-28  Bram  <bram@avontuur.org>
8643         * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
8644         constructor.
8646 2001-02-26  David Leonard  <david.leonard@csee.uq.edu.au>
8648         * doc/meref.me: Fixing some typos.
8650 2001-02-16  Werner LEMBERG  <wl@gnu.org>
8652         * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
8653         method.  Return `HYPHEN_MIDDLE' if it was `\:'.
8654         * src/roff/troff/node.h: Updated.
8656 2001-02-17  Ruslan Ermilov  <ru@FreeBSD.org>
8658         * tmac/groff_tmac.man: Fix typo.
8660 2001-02-16  Werner LEMBERG  <wl@gnu.org>
8662         Fixing a bug which prevented proper end-of-sentence recognition
8663         between an `unformatted' box and the following text.  As a
8664         consequence, vertical line distances are no longer preserved in
8665         boxes after a call to `.unformat' -- because boxes aren't
8666         line-oriented (contrary to diversions), this doesn't make sense
8667         anyway.
8669         * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
8670         value.
8671         (vertical_size_node::set_unformat_flag): New method.
8672         * src/roff/troff/node.hh: Updated.
8673         * src/roff/troff/input.cc (word_space_node::reread,
8674         hmotion_node::reread): Reset `unformat' flag after usage.
8675         (unformat_macro): Append only if `set_unformat_flag()' returns
8676         non-zero.
8677         * src/roff/troff/troff.man: Updated.
8679 2001-02-15  Werner LEMBERG  <wl@gnu.org>
8681         * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
8682         documentation of `asciify' and `unformat' requests.
8684 2001-02-13  Werner LEMBERG  <wl@gnu.org>
8686         Redesigned the `unformat' request.  It is no longer connected with
8687         `asciify' but rather uses new `reread()' methods if the `unformat'
8688         flag is set.  Additionally, the handling of space characters after
8689         unformatting has been fixed so that they retain their width.
8691         * src/roff/troff/node.h (width_list): New structure to store
8692         original widths of spaces.
8693         (node): Added `unformat' member.
8694         Replaced `num_spaces' variable with `orig_width' list.
8695         * src/roff/troff/node.cc (*node::asciify,
8696         asciify_reverse_node_list): Removed `unformat_only' flag and related
8697         code.
8698         (word_space_node::asciify, word_space_node::word_space_node): Use
8699         `orig_width'.
8700         (word_space_node::~word_space_node): New destructor.
8701         (word_space_node::copy): Updated to handle `orig_width'.
8702         (hmotion_node::copy, unbreakable_space_node::copy): Updated.
8703         (*node::merge_space): Update `orig_width' list if necessary.
8704         (*node::set_unformat_flag): New methods to set the `unformat' flag.
8705         * src/roff/troff/enc.cc (environment::space_newline): Use
8706         `width_list'.
8707         (environment::space): Added method to handle space width and
8708         sentence space width as parameters.  Use `width_list'.
8709         (environment::make_tab_node): Updated.
8710         * src/roff/troff/env.h: Updated.
8711         * src/roff/troff/input.cc (word_space_node::reread,
8712         unbreakable_space_node::reread, hmotion_node::reread): New methods
8713         to handle nodes specially if `unformat' flag is set.
8714         (do_asciify_macro): Renamed back to ...
8715         (asciify_macro): This.
8716         (unformat_macro): New implementation to simply set the `unformat'
8717         flag.
8719         * MORE.STUFF: Added more info about deroff.
8721 2001-02-08  Werner LEMBERG  <wl@gnu.org>
8723         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
8724         space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
8725         and `add_self()' methods to avoid hyphenation.  For example, the
8726         hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
8727         soft hyphen after `foo'.  Now the hyphen list is correctly
8728         `foo<ignore><ignore>bar'.
8730 2001-02-05  Yoshiteru Kageyama  <yt-kage@cb3.so-net.ne.jp>
8732         * tmac/groff_tmac.man: Fix `BIR' macro.
8734 2001-02-04  Werner LEMBERG  <wl@gnu.org>
8736         A new escape sequence `\:', inserting a zero-width break point.
8738         * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
8739         * src/roff/troff/input.cc (get_copy, token::next, asciify):
8740         Implement it.
8741         * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
8742         method.
8743         (space_node): Add `was_escape_colon' member.  Add `is_escape_colon()'
8744         and `asciify()' methods.
8745         * src/roff/troff/node.cc (space_node::space_node): Updated.
8746         (space_node::asciify): Handle `was_escape_colon'.
8747         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8749         Handle `\~' similar to other comparable requests.
8751         * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
8752         label.
8753         (token::next): Move creation of an unbreakable_space_node to...
8754         (token::add_to_node_list): Here.
8756         Fix a bug which sometimes prevented hyphenation of words connected
8757         with `\~' or `\ ' (and other escape sequences handled as
8758         TOKEN_NODE).  This also fixes a hyphenation problem with boxes
8759         (after a call to the `unformat' request).
8761         * src/roff/troff/env.h (environment::possibly_break_line,
8762         environment::hyphenate_line): Introducing `start_here' parameter.
8763         * src/roff/troff/env.cc (environment::space_newline,
8764         environment::space): Use it.
8765         (environment::possibly_break_line, environment::hyphenate_line):
8766         Implement it.
8767         * src/roff/troff/input.cc (process_input_stack): Use it.
8768         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
8769         space_char_hmotion_node, overstrike_node): Add
8770         `get_hyphenation_type()' method.
8771         * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
8772         if `unformat_only' is active.
8774 2001-01-30  Werner LEMBERG  <wl@gnu.org>
8776         Implemented new read-only number register `.linetabs' which
8777         returns 1 if in line-tabs mode, 0 otherwise.
8779         * src/roff/troff/env.h (environment): Add get_line_tabs() member.
8780         * src/roff/troff/env.cc (get_line_tabs): New function.
8781         (init_env_requests): Use it.
8782         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8784         * VERSION, REVISION: Changing to 1.17.0.
8786 2001-01-28  Werner LEMBERG  <wl@gnu.org>
8788         Fixed a bug which prevented hyphenation of words which are finished
8789         with `\)'.
8791         * src/roff/troff/token.h (token): Add enum type
8792         `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
8793         * src/roff/troff/input.cc (token::next, token::description,
8794         get_line_arg, token::add_to_node_list, token::process): Use it.
8796 2001-01-27  Werner LEMBERG  <wl@gnu.org>
8798         * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
8799         * src/roff/troff/div.cc (do_divert): Use it.
8801         * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
8803 2001-01-25  Werner LEMBERG  <wl@gnu.org>
8805         Adding the `linetabs' request.  If set, tab distances are not
8806         computed relative to the input line but relative to the output line.
8808         * src/roff/troff/env.h (environment): New member `line_tabs'.
8809         * src/roff/troff/env.cc (line_tabs_request): Implement request.
8810         (environment::environment, environment::copy): Updated.
8811         (environment::distance_to_next_tab): Use `line_tabs'.
8812         (init_env_requests): Register request.
8813         * src/roff/troff/troff.man, man/groff.man, NEWS: Document it.  Other
8814         fixes.
8816 2001-01-24  Werner LEMBERG  <wl@gnu.org>
8818         Introducing a new read-only register `.int' which is set to a
8819         positive value if the last output line is interrupted (i.e., if it
8820         contains `\c').
8822         * src/roff/troff/env.cc (init_env_requests): Add it.
8823         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8825 2001-01-23  Gaius Mulley  <gaius@glam.ac.uk>
8827         * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
8828         * src/preproc/html/pre-html.cc (findPrefix): New function which
8829         generates the troff executable name via the system prefix.
8830         * src/preproc/eqn/main.cc: Modified warning message.
8832 2001-01-23  Werner LEMBERG  <wl@gnu.org>
8834         troff's `box' and `boxa' requests didn't preserve temporary
8835         indentation.
8837         * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
8838         `saved_target_text_length' members.
8839         * src/roff/troff/div.cc (do_divert): Use them.
8841         Tabs (but not yet leaders and fields) are now handled correctly by
8842         `asciify' request.
8844         * node.h (hmotion_node): Add field `was_tab'.
8845         * env.cc (environment::make_tab_node): Set it.
8846         * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
8848         Added new request `unformat' which will, contrary to `asciify',
8849         preserve font information after unformatting (i.e., only nodes
8850         dealing with horizontal space are converted back to input
8851         characters).
8853         * input.cc (asciify_macro): Renamed to ...
8854         (do_asciify_macro): this, having a new parameter `unformat_only'.
8855         (asciify_macro, unformat_macro): New; using do_asciify_macro.
8856         (init_input_requests): Added `unformat'.
8857         * node.cc (*_node::asciify), asciify_reverse_node_list: Added
8858         parameter to control asciification process.
8859         * node.h (*_node::asciify): Ditto.
8860         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8862 2001-01-20  Werner LEMBERG  <wl@gnu.org>
8864         * doc/groff.texinfo: Minor improvement of `.in' documentation.
8866 2001-01-18  Werner LEMBERG  <wl@gnu.org>
8868         * tmac/ps.tmac: Remove call of psold.tmac.
8869         * tmac/psold.tmac: Comment updated.
8870         * tmac/psnew.tmac: Removed since no longer needed.
8871         * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
8873         * font/devutf8/R.proto: Adding `shc' glyph.
8874         * font/devutf8/NOTES: Updated.
8876         * test-groff: Updated.
8878 2001-01-15  Gaius Mulley  <gaius@glam.ac.uk>
8880         First cut of the new html device driver.  Changes to pre-html and
8881         the new grohtml are too numerous to be documented here.
8883         Stuff related to `html' has been renamed to `html-old' and `html2'
8884         stuff has been renamed to `html' (including directories).  The new
8885         html device driver is therefore invoked as `-Thtml'.
8887         Added new `\O' escape to suppress output (needed by html driver).
8889         Added functions and code to pass info about input-level commands
8890         (`.in', `.fl', etc.) to html driver.
8892         Three new functions (.html-begin, .html-end, and .html-image) for
8893         better html handling: `html-begin' will execute the remaining line
8894         if at the outermost nesting level, increasing an internal counter.
8895         `html-end' does the same but decreases the internal counter.
8896         `html_image' puts its arguments into a special node (suppress_node)
8897         to define an image region.
8899         The `output' request has been removed.
8901         * tmac/html-tags.tmac: Removed.
8902         * tmac/arkup.tmac: Updated and renamed to ...
8903         * tmac/www.tmac: New file.
8904         * tmac/markup.tmac Updated and renamed to ...
8905         * tmac/mwww.tmac: New file.
8906         * tmac/Makefile.sub: Updated.
8907         * tmac/an-old.tmac: Updated.
8908         * tmac/eqnrc: Updated.
8909         * tmac/groff_man.man
8910         * tmac/groff_markup.man: Updated and renamed to ...
8911         * tmac/groff_mwww.man: New file.
8912         * tmac/groff_tmac.man: Updated.
8913         * tmac/html-old.tmac: Updated and Renamed from html.tmac.
8914         * tmac/html.tmac: Updated and renamed from html2.tmac.
8915         * tmac/pspic.tmac: Updated html support.
8916         * tmac/s.tmac: Added html output support.
8917         * tmac/troffrc, tmac/troffrc-end: Updated.
8919         * Makefile.in, doc/Makefile: Updated.
8920         * doc/groff.texinfo: Added info about new `\O' escape.
8921         * doc/homepage.ms: Use `MAILTO' macro.
8923         * font/devhtml/DESC.proto: Add `C' font.
8924         * font/devhtml/Makefile.sub: Updated.
8925         * font/devhtml/R.proto: Minor fixes.
8926         * font/devhtml-old/Makefile.sub: Updated.
8928         * src/devices/grohtml-old/Makefile.sub: Updated.
8930         * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
8931         method.
8932         * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
8933         graphic_start): Add `inline' parameter.  Update.
8934         (html_end_suppress, graphic_end): Update.
8936         * src/include/html-strings.h: New file.
8937         * src/include/htmlindicate.h: Comments updated.
8938         * src/include/printer.h: Updated.
8940         * src/preproc/eqn/main.cc (do_file, main): Updated.
8941         * src/preproc/pic/troff.cc (troff_output::start_picture,
8942         troff_output::finish_picture): Updated.
8943         * src/preproc/tbl/main.cc (process_input_file): Updated.
8945         * src/roff/groff/groff.cc (main): Updated.
8946         Pass device arguments to predrivers also.
8947         Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
8948         * src/roff/troff/env.h (environment): Updated.
8949         New elements `need_eol' and `ignore_next_eol' (for html output).
8950         * src/roff/troff/env.cc (environment::environment): Add initializers
8951         for `need_eol' and `ignore_next_eol'.
8952         (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
8953         functions.
8954         (point_size, fill, no_fill, center, right_justify, line_length,
8955         indent, temporary_indent, break_request, handle_tab): Use
8956         `add_html_tag()'.
8957         (set_tabs): Use `add_html_tag_tabs()'.
8958         (environment::add_html_tag): Updated.
8959         (environment::do_break): Updated.
8960         * src/roff/troff/div.cc (space_request, flush_output): Use
8961         `environment::add_html_tag()'.
8962         * src/roff/troff/input.cc: Updated.
8963         New variable `html_level' to indicate nested `html-begin' requests.
8964         (file_iterator::fill): Use `environment::add_html_tag_eol()'.
8965         (non_interpreted_char_node, token_node, non_interpreted_node): Add
8966         `force_tprint()' method.
8967         (token::next): Handle `\O'.
8968         (do_suppress): Implement it.
8969         (html_begin, html_end, html_image): New functions.
8970         (init_output_requests): Renamed to ...
8971         (init_html_requests): this.
8972         (main): Use it.
8973         (macro::append_str, macro::append_unsigned, macro::append_int): New
8974         methods.
8975         New variable `output_low_mark_miny' to limit minimal value of y.
8976         (reset_output_registers): Use it.
8977         (output_request): Removed.
8978         (get_output_registers): New function.
8979         * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
8980         (*_node): Added `force_tprint()' if necessary.
8981         (special_node): New elements `tf' and `get_tfont()'.
8982         (suppress_node): New class.
8983         * src/roff/troff/node.cc:
8984         New global variables `image_no' and `suppress_start_page'.
8985         (real_output_file): New method `is_on()'.
8986         (troff_output_file): New method `start_special(tfont)'.
8987         (troff_output_file::really_print_line): Use `tprint' conditionally.
8988         (real_output_file::print_line): Updated.
8989         (real_output_file::on): Updated.
8990         (*_node): Added `force_tprint()'.
8991         (special_node::special_node): Initializer updated.
8992         (special_node::same, special_node::copy, special_node::tprint_start):
8993         Updated.
8994         (get_reg_int, get_reg_str): New functions.
8995         (suppress_node::*): New methods.
8996         New global variables last_position, last_image_filename;
8997         (min): New inline function.
8998         * src/roff/troff/reg.h, src/roff/troff/request.h,
8999         src/roff/troff/troff.h: Updated.
9001 2001-01-13  Werner LEMBERG  <wl@gnu.org>
9003         * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
9004         documentation of `asciify' request.
9006 2001-01-12  Werner LEMBERG  <wl@gnu.org>
9008         * src/roff/troff/input.cc: Move definition of special characters
9009         like `ESCAPE_TILDE' to ...
9010         * src/roff/troff/input.h: New file.
9011         * src/roff/troff/Makefile.sub (HDRS): Add it.
9013         Extending the .asciify request to `unformat' space characters also.
9015         * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
9016         to count input space characters.
9017         Update constructors to take care of it.
9018         * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
9019         `ESCAPE_SPACE' instead of normal space.
9020         (word_space_node::asciify): New method.
9021         (unbreakable_space_node::asciify): New method.
9022         (word_space_node::merge_space): New method.
9023         * src/roff/troff/env.cc (environment::space_newline,
9024         environment::space): Add code to initialize `num_spaces' (using the
9025         constructor of `word_space_node').
9026         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
9027         Document it.
9029 2001-01-09  Werner LEMBERG  <wl@gnu.org>
9031         * man/groff_char.man: Use table header traps only conditionally.
9033 2001-01-09  Bjarni Ingi Gíslason  <bjarniig@hi.is>
9035         * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
9037 2001-01-08  Werner LEMBERG  <wl@gnu.org>
9039         Introducing the `box' and `boxa' requests which are similar to
9040         `di' resp. `da' but omitting a partially filled line (which is
9041         restored after ending the diversion).
9043         * src/roff/troff/div.h (diversion): Add elements to save partially
9044         filled line.
9045         * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
9046         partially filled line.
9047         (divert, divert_append): Updated.
9048         (box, box_append): New functions.
9049         (init_div_requests): Use them.
9050         * src/roff/troff/env.h (environment): do_divert() is now a friend.
9051         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9053         * doc/groff.texinfo: Fix documentation of `lf' request.
9055 2000-12-25  Werner LEMBERG  <wl@gnu.org>
9057         * src/roff/troff/troff.man, NEWS: Document `writem' request.
9059 2000-12-21  Werner LEMBERG  <wl@gnu.org>
9061         Ignore `ss' request if in compatibility mode.
9063         * src/roff/troff/input.cc: Make `compatible_flag' non-static.
9064         * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
9065         * src/roff/troff/env.cc (space_size): Use it.
9067         * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
9068         `ss' request in nroff mode.
9070         * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
9071         changes.
9073 2000-12-15  Ruslan Ermilov  <ru@FreeBSD.org>
9075         * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
9077 2000-12-13  Werner LEMBERG  <wl@gnu.org>
9079         * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
9080         * src/preproc/eqn/neqn.man: Small fixes and additions.
9082 2000-12-13  Ruslan Ermilov  <ru@FreeBSD.org>
9084         * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
9085         Fixing typo.
9087         * src/preproc/eqn/neqn.man: New file.
9089         * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
9090         negative' warning.
9092         * tmac/e.tmac: Add `T&' macro.
9093         Fix `indent cannot be negative' warning.
9094         * tmac/s.tmac: Fix `indent cannot be negative' warning.
9096 2000-12-07  Werner LEMBERG  <wl@gnu.org>
9098         * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
9100 2000-12-06  Werner LEMBERG  <wl@gnu.org>
9102         * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
9103         `alloca' symbol .
9105         * MORE.STUFF: Added info about deroff for djgpp.
9107         * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
9108         documentation of -rcR switch.
9110 2000-12-03  Werner LEMBERG  <wl@gnu.org>
9112         * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
9113         if -rcR=1 (which is now the default in nroff mode), a single, very
9114         long page is created instead of multiple pages: All `ne' and `wh'
9115         requests are put into conditionals; a new macro `an-end' is added to
9116         be called with `em'.
9118         Some other minor cleanups.
9120         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
9122 2000-12-02  Werner LEMBERG  <wl@gnu.org>
9124         Fixing a bug which prevented hyphenation in words followed
9125         immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
9127         * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
9128         Adding possibly_break_line().
9129         * src/roff/troff/env.h (environment): Make possibly_break_line()
9130         public.
9132         Make `\~' usable in .tr request.
9134         * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
9135         (token): Add stretchable_space().
9136         * src/roff/troff/input.cc (token::next, token::delimiter,
9137         token::description, process_input_stack, do_translate,
9138         add_to_node_list, token::process): Use it.
9139         * src/roff/troff/node.h (node): Add fourth parameter to add_char()
9140         for adjusting the space.
9141         * src/roff/troff/node.cc (node::add_char): Implement it.  Add code
9142         for stretchable space.
9143         * src/roff/troff/input.cc (token::add_to_node_list): Use it.
9144         (make_node): Add code for stretchable space.
9145         * src/roff/troff/env.cc (environment::add_char): Use it.
9146         * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
9147         (get_copy, token::next, transparent_translate, asciify): Use it.
9149         * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
9150         doc/groff.texinfo: Updated.
9151         * man/groff.man: Small reorderings.
9153 2000-11-23  Werner LEMBERG  <wl@gnu.org>
9155         * NEWS: Fixes.
9156         * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
9157         option.
9158         * src/roff/troff/input.cc (main): Add `config_macro_path' and
9159         `safer_macro_path' to -M option.
9160         * src/roff/troff/troff.man: Fixes.
9162 2000-11-22  Werner LEMBERG  <wl@gnu.org>
9164         Use safer path (except for config files) if -U isn't specified.  Add
9165         a special macro path (without home and current directory) for config
9166         files.  Add home directory to unsafe path for consistency.  Don't
9167         include the home directory in the font path.
9169         * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
9170         `macro_path'.
9171         * src/include/macropath.h: Add `config_macrp_path'.
9172         * src/libs/libgroff/fontfile.cc: Fix font path.
9173         * src/roff/troff/input.cc (process_startup_file): Use
9174         `config_macro_path'.
9175         (main): Select unsafe path if -U is given.
9177         * src/preproc/eqn/main.cc (main): Fixing search path for
9178         configuration file.
9179         * src/preproc/eqn/eqn.man: Updated.
9181         * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
9182         Updated.
9184         * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
9185         src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
9186         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
9187         src/devices/grotty/grotty.man: Updated.
9189         * Makefile.in: Fix comments.
9191 2000-11-17  Werner LEMBERG  <wl@gnu.org>
9193         * tmac/safer.tmac: Empty file added (again) for compatibility
9194         reasons.
9195         * tmac/Makefile.sub: Updated.
9197 2000-11-16  Werner LEMBERG  <wl@gnu.org>
9199         * src/devices/grodvi/dvi.cc (main),
9200         src/devices/grohtml2/post-html.cc (main),
9201         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
9202         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
9203         (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
9204         (main), src/preproc/html2/pre-html.cc (main),
9205         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
9206         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
9207         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
9208         (main), src/utils/hpftodit/hpftodit.cc (main),
9209         src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
9210         (main), src/utils/lookbib/lookbib.cc (main),
9211         src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
9212         (main): Use stdout for -v.
9213         * src/roff/groff/groff.cc (run_commands),
9214         src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
9215         to make direct printing to stdout possible.
9216         * src/roff/groff/pipeline.h: Updated.
9218         * src/utils/afmtodit/afmtodit.pl: Add -v switch.
9219         * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
9220         * src/utils/afmtodit/afmtodit.man: Updated.
9222         * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
9223         (version): New function.
9224         (usage): Updated.
9225         * src/utils/addftinfo/addftinfo.man: Updated.
9227         * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
9228         Fixing copyright dates.
9230         * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
9231         replacing it.
9233         * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
9234         version_string.
9236         * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
9238 2000-11-15  Werner LEMBERG  <wl@gnu.org>
9240         In all programs, make -v return immediately with exit status 0 to
9241         be compliant with the GNU standard.
9243         * src/devices/grodvi/dvi.cc (main),
9244         src/devices/grohtml2/post-html.cc (main),
9245         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
9246         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
9247         (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
9248         (main), src/preproc/html2/pre-html.cc (main),
9249         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
9250         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
9251         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
9252         (main): Implement it.
9253         * NEWS: Updated.
9255         * src/roff/groff/groff.cc (main): Add copyright notice.  Add refer
9256         and postprocessors to the -v option.
9258         * src/roff/grog/grog.pl: Implement -v.
9259         * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
9260         * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
9262         * src/roff/nroff/nroff.sh: Implement -v.
9263         * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
9264         * src/roff/nroff/nroff.man: Updated.
9265         
9266         * src/preproc/eqn/main.cc (main): Fix comment typo.
9268         * MORE.STUFF: Added info about djgpp port of grap.
9270 2000-11-14  Werner LEMBERG  <wl@gnu.org>
9272         * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
9273         mode (or rather, implemented non-compatibility mode).
9274         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
9276         * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
9277         replacing it -- we don't find gxditview otherwise.
9278         * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
9280         * src/preproc/pic/depend: Removed.  Unnecessary.
9282         Implemented dummy keyword `solid' in pic for compatibility with
9283         AT&T pic.
9285         * lex.cc (lookup_keyword): Added `solid'.
9286         * pic.y: Added SOLID with dummy rule.
9287         * pic.cc, pic_tab.h: Regenerated.
9288         * doc/pic.ms: Updated.
9290 2000-11-13  Werner LEMBERG  <wl@gnu.org>
9292         For security reasons, don't use the current directory but the home
9293         directory while searching and scanning troffrc and troffrc-end.
9294         Similarly, replace the current directory with the home directory
9295         in the font path.
9297         * Makefile.in (fontpath, tmacpath): Remove current directory.
9299         * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
9300         two parameters `add_home' and `add_current'.
9301         (search_path::~search_path, search_path::command_line_dir,
9302         search_path::open_file): Remove tests for `dirs' being zero.
9303         * src/include/searchpath.h: Adjust.
9304         * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
9305         `safer_macro_path'.
9306         * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
9308         * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
9309         * src/roff/troff/input.cc: Use `mac_path', initialized with
9310         `macro_path'.
9311         (process_startup_file): Set `mac_path' to `safer_macro_path'.
9312         * src/roff/troff/env.cc: Use `mac_path'.
9314         * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
9316         * NEWS, man/roff.man, src/roff/troff/troff.man,
9317         src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
9318         Updated.
9320 2000-11-12  Werner LEMBERG  <wl@gnu.org>
9322         * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
9324         * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
9325         * configure.in: Fix typo in comment.
9326         * configure: Regenerated.
9328         * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
9329         copyright dates.
9331 2000-11-08  Werner LEMBERG  <wl@gnu.org>
9333         Add system tmac directory (/usr/local/lib/groff/site-tmac).
9335         * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
9336         (uninstall_dirs): Add $(libdir), $(libprogramdir), and
9337         $(systemtmacdir).
9338         Use @libdir@.
9339         * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
9340         * tmac/Makefile.sub (install_data): Create
9341         $(systemtmacdir) and $(localtmacdir).
9342         (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
9343         * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
9344         NEWS, doc/groff.texinfo: Updated and minor fixes.
9346         * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
9347         * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
9348         $(systemtmacdir) since the wrapper files are platform-dependent.
9350 2000-11-01  Werner LEMBERG  <wl@gnu.org>
9352         * doc/groff.texinfo: Fix typo.
9354 2000-10-26  Werner LEMBERG  <wl@gnu.org>
9356         Convert macros `tmac.XXX' to `XXX.tmac'.  Special cases:
9357           tmac.doc.old -> doc-old.tmac
9358           tmac.an.old  -> an-old.tmac
9360         * tmac/tmac.*: Moved to ...
9361         * tmac/*.tmac: this.
9362         * tmac/man.local: Fix comment.
9363         * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
9364         tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. 
9365         Added some `FILES' sections.  More use of @...@ directives.  Other
9366         minor updates.
9367         * arch/djgpp/README, font/devutf8/NOTES: Updated.
9368         * doc/homepage.ms, doc/groff.texinfo: Updated.
9369         * man/groff.man, man/roff.man: Updated.
9370         * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
9371         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
9372         src/devices/grotty/grotty.man: Updated.
9373         * src/preproc/pic/pic.man: Updated.
9374         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
9375         instead of -mdoc.old.
9376         * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
9377         * src/roff/nroff/nroff.man: Updated.
9378         * NEWS: Updated.
9380         * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
9382         * tmac/mm.diff: Removed -- it has no use now since the mm package
9383         is part of groff.
9385         * tmac/*: Removed trailing spaces.
9387         * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
9388         the tmac subdirectory also).
9390         * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
9391         * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
9392         stuff since it is no longer needed.
9394         * README, PROBLEMS: Updated.
9396 2000-10-25  Werner LEMBERG  <wl@gnu.org>
9398         Invert current behaviour: Search first FOOBAR.tmac, then
9399         tmac.FOOBAR.
9401         * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
9402         (open_mac_file, macro_source): Implement it.
9403         * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
9404         doc/groff.texinfo, NEWS: Document it.
9406         * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
9407         Small documentation improvements.
9409         * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
9410         subdirectory also).
9412         * font/devps/Makefile.sub: Fix rules for dingbats.*map.
9414 2000-10-24  Werner LEMBERG  <wl@gnu.org>
9416         Add local tmac directory (groff/site-tmac).
9418         * Makefile.in: Add $(localtmacdir).
9419         (uninstall_dirs): Add $(localtmacdir).
9420         * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
9421         * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
9422         in $(localtmacdir).  Create $(localtmacdir).
9423         * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
9424         Updated and minor fixes.
9426         Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
9428         * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
9430 2000-10-23  Werner LEMBERG  <wl@gnu.org>
9432         Move hyphen.us to tmac directory.
9434         * src/roff/troff/hyphen.us: Removed.
9435         * src/tmac/hyphen.us: Added.
9436         * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
9438         Change installation structure for data files from .../groff/... to
9439         .../groff/<version><revision>/... to be conform with other GNU
9440         programs.
9442         * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
9443         doc/Makefile: Implement it.
9444         * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
9445         * configure: Updated.
9446         * arch/djgpp/README, font/devutf8/NOTES: Use it.
9447         * NEWS: Document it.
9448         * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
9449         @MACRODIR@ instead of hard-coded directories.
9451 2000-10-22  Werner LEMBERG  <wl@gnu.org>
9453         Implement $GROFF_BIN_PATH environment variable (which defaults to
9454         $bindir) used for child programs of groff and similar wrappers.
9456         * gendefs.sh: Improve documentation.
9457         * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
9458         src/preproc/eqn/Makefile.sub (neqn),
9459         src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
9460         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
9461         $GROFF_BIN_PATH.
9462         * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
9463         $GROFF_PATH__ (the latter for communication with troff).
9464         * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
9465         set.
9466         * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
9467         doc/groff.texinfo: Document it.
9469         * doc/groff.texinfo: Improve documentation of troff's -a option.
9471 2000-10-17  Gaius Mulley  <gaius@glam.ac.uk>
9473         * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
9474         non-intrusive eol marker.
9475         (troff_output_file::determine_line_limits): New function.
9476         (troff_output_file::draw): Use it.
9477         * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
9478         output_pending_lines() instead of output_line().
9479         * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
9480         * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
9481         createImage): Small fixes.
9482         
9483 2000-10-14  Werner LEMBERG  <wl@gnu.org>
9485         Replace tmac.safer with a real secure solution.
9487         * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
9488         system_request, pipe_output): Disable requests if in safer mode.
9489         * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
9490         * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
9491         * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
9492         doc/groff.texinfo, src/roff/groff/groff.man,
9493         src/roff/troff/troff.man, arch/djgpp/README: Updated.
9495         * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
9496         (resource_manager::output_prolog): Replace setenv() with putenv().
9498 2000-10-09  Werner LEMBERG  <wl@gnu.org>
9500         * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
9501         src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
9502         src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
9503         src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
9504         compilation errors with some compilers.  It seems that this code
9505         is no longer necessary -- if yes, it is easy to add some #ifdef's
9506         for that particular old-fashioned compiler.
9508         * MORE.STUFF: Added info about Meta-tbl.
9510         * doc/groff.texinfo: Added more info about `.if "..."..."'.
9512 2000-10-07  Werner LEMBERG  <wl@gnu.org>
9514         Adding a new escape sequence \B'...': If the string between
9515         the delimiters is a valid numeric expression, return the character
9516         `1', and `0' otherwise.  This is an analogon to \A.
9518         * src/roff/troff/input.cc (do_expr_test): Implement it.
9519         (token::next): Use it.
9520         * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
9522         * tmac/tmac.trace: Made independent from escape character.
9524 2000-10-06  Werner LEMBERG  <wl@gnu.org>
9526         Adding a new request .dei: define indirect.  The first and second
9527         parameter of .dei are taken from string registers instead directly;
9528         this very special request is needed to make tmac.trace independent
9529         from the escape character (which might even be disabled).
9531         * src/roff/troff/input.cc (do_define_macro): Implement it.
9532         (define_macro_indirect): New function.
9533         (init_input_requests): Use it.
9535         Adding two requests .ecs and .ecr: Save and restore the escape
9536         character.  These two requests are needed to make tmac.trace
9537         independent from the escape character (which might even be
9538         disabled).
9540         * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
9541         Implement it.
9542         (init_input_requests): Use it.
9544         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
9546 2000-09-22  Ricardo Soares Guimarães  <ricardo@conectiva.com.br>
9548         Adding a new option -P and new environment variable GROPS_PROLOGUE
9549         to grops, selecting a different prologue file (minor modifications
9550         by WL).
9552         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
9553         src/devices/grops/ps.cc (main): Implement it.
9554         * src/devices/grops/grops.man, NEWS: Document it.
9556 2000-09-22  Werner LEMBERG  <wl@gnu.org>
9558         * INSTALL: Add info about selecting paper format.
9560 2000-09-21  Werner LEMBERG  <wl@gnu.org>
9562         * src/roff/troff/input.cc (main): Fixing compiler warning.
9563         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
9564         strings.h from the former to the latter.
9565         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
9566         stuff from the former to the latter.
9568 2000-09-11  Werner LEMBERG  <wl@gnu.org>
9570         Implementing two new requests .tm1 and .tmc: The former is similar
9571         to .tm but can output leading spaces; its syntax is similar to
9572         defining a string, i.e., a `"' can be used to mark the beginning of
9573         the string to be written to stderr: `.tm1 " test'.  The latter is
9574         similar to .tm1 but doesn't write out a final newline character.
9576         * src/roff/troff/input.cc (terminal1, terminal_continue,
9577         do_terminal): New functions.
9578         (init_input_requests): Use them.
9579         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
9581 2000-09-09  Werner LEMBERG  <wl@gnu.org>
9583         * tmac/groff_mdoc.samples.man: Small fixes.
9585 2000-09-08  Werner LEMBERG  <wl@gnu.org>
9587         * tmac/groff_mdoc.man: Fixing typo.
9589 2000-09-02  Werner LEMBERG  <wl@gnu.org>
9591         Implementing a .nop request which does nothing.
9593         * src/roff/troff/input.cc (nop_request): New function.
9594         (init_input_requests): Use it.
9595         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
9597 2000-09-01  Werner LEMBERG  <wl@gnu.org>
9599         * doc/groff.texinfo: Added some comments.
9601 2000-08-30  Werner LEMBERG  <wl@gnu.org>
9603         * src/roff/troff/TODO: Updated.
9605 2000-08-25  Werner LEMBERG  <wl@gnu.org>
9607         * doc/groff.texinfo: Fix comment how to compile the DVI file.
9609 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
9611         * font/devps/generate/Makefile (SHELL): Define explicitly to
9612         "/bin/sh", for non-Unix platforms.
9613         (extraclean): Use a more portable "" quoting instead of a
9614         backslash (which doesn't work on DOS/Windows).
9615         
9616         * font/devlj4/generate/Makefile (extraclean): Ditto.
9618         * font/devdvi/generate/Makefile (extraclean): Ditto.
9620 2000-08-25  Werner LEMBERG  <wl@gnu.org>
9622         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
9623         src/roff/troff/troff.man: Document Eli's latest changes.
9625 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
9627         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
9628         macro file names of the form NAME.tmac as well as tmac.NAME.
9630 2000-08-25  Werner LEMBERG  <wl@gnu.org>
9632         * src/include/posix.h: Remove definition of FILENAME_MAX.
9634         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
9635         `sys_fatal' and `stop' function().
9637         * test-groff: Updated.
9639 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
9641         Added the new troff command .output <arg> to suppress output (while
9642         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
9643         registers (for passing the output dimensions to the output device).
9645         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
9646         parameter.
9647         * src/roff/troff/node.h, src/roff/troff/node.cc
9648         (troff_output_file::really_print_line,
9649         ascii_output_file::really_print_line,
9650         supress_output_file::really_print_line): Use `width' parameter.
9651         (troff_output_file::really_on, troff_output_file::really_off,
9652         output_file::on, output_file::off, real_output_file::on,
9653         real_output_file::off, real_output_file::really_on,
9654         real_output_file::really_off): New functions.
9655         (real_output_file:public output_file): New variable `output_on'.
9656         (real_output_file::begin_page, real_output_file::copy_file,
9657         real_output_file::transparent_char, real_output_file::print_line):
9658         Use it.
9659         (real_output_file::print_line): Use check_output_limits.
9660         * src/roff/troff/reg.h, src/roff/troff/request.h,
9661         src/roff/troff/input.cc (assign_registers): New function to remove
9662         two `goto's.
9663         (do_ps_file): Use it.
9664         (check_output_limits, reset_output_registers, output_request,
9665         init_output_requests): New functions.
9666         (init_input_requests): Updated.
9668         Added new grohtml2 device and html2 preprocessor (coding
9669         not yet finished) which will eventually replace grohtml.
9671         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
9672         Updated.
9673         * src/include/htmlindicate.h, src/include/htmlindicate
9674         (html_begin_suppress, html_end_suppress): New functions.
9675         * src/preproc/tbl/main.cc: Use it.
9676         * src/roff/groff/groff.cc: Add support for html2 device (which will
9677         automatically invoke the html2 preprocessor).
9678         * src/roff/troff/input.cc (is_html2): New variable.
9679         * src/roff/troff/troff.h, src/roff/troff/env.h,
9680         src/roff/troff/env.cc (environment::add_html_tag): New function
9681         (uses `is_html2').
9682         (environment::do_break): Use it.
9683         * font/devhtml2/*: New files.
9684         * src/devices/grohtml2: New device.
9685         * src/preproc/html2: New preprocessor.
9686         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
9688 2000-08-23  Werner LEMBERG  <wl@gnu.org>
9690         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
9692 2000-08-22  Werner LEMBERG  <wl@gnu.org>
9694         * src/include/lib.h: Provide a fix for IRIX to not include
9695         groff-getopt.h.
9697 2000-08-18  Werner LEMBERG  <wl@gnu.org>
9699         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
9700         since some non-GNU sed programs can't handle null regexps.
9701         * configure, src/preproc/eqn/Makefile.sub,
9702         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
9704         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
9705         bug (string.h and strings.h are both needed according to latest
9706         POSIX standard).
9708         * MORE.STUFF: Added info about unroff and troffcvt.
9710 2000-08-08  Werner LEMBERG  <wl@gnu.org>
9712         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
9713         used before -ms.
9715         * tmac/tmac.man.old: Remove unused number register.
9717         * tmac.doc: Minor documentation fix.
9719 2000-08-07  Paul Eggert  <eggert@twinsun.com>
9721         * src/roff/groff/pipeline.c (is_system_shell):
9722         Fix typo: "monocased_shell" no longer exists.
9724 2000-08-07  Paul Eggert  <eggert@twinsun.com>
9726         Remove FILENAME_MAX limits.
9728         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
9729         that the argument length is less than FILENAME_MAX.
9730         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
9731         Use struct hack to allocate and free file name.
9732         (struct xtmpfile_list): fname is now part of the structure,
9733         not a pointer to another string.
9735 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
9737         * src/include/posix.h: Add a default value for FILENAME_MAX.
9739 2000-08-06  Paul Eggert  <eggert@twinsun.com>
9741         Add support for new BSD-style man pages (with ".Dd" instead of
9742         ".TH"), so that "groff -man" understands both styles, even
9743         when running "groff -man" on a host whose system man page
9744         macros don't support ".Dd".
9746         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
9747         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
9748         in case the system man macros don't define Dd or TH.
9750         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
9751         * tmac/tmac.an: New one-line file.
9752         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
9754 2000-08-06  Werner LEMBERG  <wl@gnu.org>
9756         * src/roff/troff/troff.man: Fixing typos.
9758 Version 1.16.1 released
9759 =======================
9761 2000-07-31  Werner LEMBERG  <wl@gnu.org>
9763         Preparing release 1.16.1.
9765         * REVISION: Revision number set to 1.
9766         * MORE.STUFF: Added info about port to DOS.
9767         * NEWS, win32-diffs: Updated.
9769         * src/include/nonposix.h: Remove first line -- this file is used
9770         in C also.
9772         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
9773         link to it.
9775 2000-07-30  Werner LEMBERG  <wl@gnu.org>
9777         * doc/texinfo.tex: Update to latest version.
9779 2000-06-28  Paul Eggert  <eggert@twinsun.com>
9781         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
9782         commands that fail.  Don't assume that "export a=b" is valid shell
9783         syntax.  This is needed for Solaris 2.5.1.
9785         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
9786         comment about missing Solaris headers.
9788         * PROBLEMS: Add section about problems with Sun Make and VPATH.
9790 2000-06-25  Werner LEMBERG  <wl@gnu.org>
9792         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
9793         SET_BINARY().
9795         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
9797         * win32-diffs: Updated.
9798         * README.WIN32: Added CRs to make all Windows editors happy.
9800         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
9801         src/roff/groff/pipeline.c).
9803 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
9805         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
9806         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
9808 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
9810         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
9811         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
9812         are binary files.
9813         (main): Support non-Posix systems with several different styles of
9814         slash characters in file names.
9816         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
9817         (main) [SET_BINARY]: Switch stdin into binary mode.
9819         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
9820         (main): Support file names with several possible slash-type
9821         characters, as given by DIR_SEPS[] in nonposix.h.
9822         (main) [__MSDOS__]: If renaming the temporary index file fails
9823         because it has more than one dot in its trunk, replace the dot
9824         with an underscore and try again.
9825         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
9826         Newline.
9827         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
9829         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
9830         (File::File): Open the input file in binary mode.  Strip CR
9831         characters from each CR-LF pair.
9832         (xbasename): Support file names with several possible slash-type
9833         characters, as given by DIR_SEPS[] in nonposix.h.
9835         * src/include/Makefile.sub (HDRS): Add nonposix.h.
9837         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
9838         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
9839         [!_POSIX_VERSION]: Define for traditional Unix systems.
9840         (real_output_file::real_output_file): Remove the MSVC-specific
9841         call to popen, use instead POPEN_WT, appropriately defined on
9842         nonposix.h.  #include nonposix.h.
9843         (real_output_file::~real_output_file): Remove the MSVC-specific
9844         call to pclose, a suitable macro is now defined on nonposix.h.
9845         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
9846         and WEXITSTATUS instead of assuming traditional Unix
9847         interpretation of the status returned by pclose.
9849         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
9850         call to popen, use POPEN_RT instead (appropriately defined on
9851         nonposix.h).  #include nonposix.h.
9852         (ps_bbox_request): Open the PostScript file in binary mode.
9853         Close the file after processing it.
9854         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
9855         nonposix.h.
9857         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
9858         A version of run_pipeline that doesn't use `fork'.
9859         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
9860         (system_shell_name, system_shell_dash_c)
9861         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
9862         the ugliness of testing DOS/Windows file names for equality, and
9863         support both stock shells and ports of Unix shells.
9865         * src/roff/groff/groff.cc: #include nonposix.h.
9866         (BSHELL): Definition moved to nonposix.h.
9867         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
9868         instead of a literal "-c".
9869         (xbasename): Support file names with several possible slash-type
9870         characters, as given by DIR_SEPS[] in nonposix.h.
9871         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
9872         of literal strings.
9874         * src/preproc/soelim/soelim.cc: #include nonposix.h.
9875         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
9877         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
9878         pic_tab.h.
9880         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
9882         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
9883         eqn_tab.h.
9885         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
9887         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
9888         P_tmpdir is defined, use it instead of the literal "/tmp".
9889         (remove_tmp_files, add_tmp_file): New functions.
9890         (xtmpfile): Record temporary files and register an atexit function
9891         to delete them explicitly, instead of relying on the OS to do
9892         that, which doesn't work on non-Unix systems.
9894         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
9895         (search_path::search_path): Use PATH_SEP instead of a literal
9896         colon.
9897         (search_path::command_line_dir): Ditto.
9898         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
9899         to support non-Posix systems.
9901         * src/libs/libbib/search.cc: #include nonposix.h.
9902         (search_list::add_file): Open the file in binary mode.
9904         * src/libs/libbib/linear.cc: #include nonposix.h.
9905         (file_buffer::load): Remove \r characters preceding \n from the
9906         loaded buffer.
9908         * src/libs/libbib/index.cc: #include nonposix.h.
9909         (make_index_search_item): Open index_filename in O_BINARY mode.
9910         (index_search_item_iterator::get_tag): Ditto.  Remove \r
9911         characters before \n characters.
9912         (index_search_item::check_files): Open files in binary mode.
9913         (index_search_item::munge_filename): Support DOS-style file names
9914         with backslashes and drive letters, use IS_ABSOLUTE.
9916         * src/devices/grops/ps.cc: #include nonposix.h.
9917         (main) [SET_BINARY]: Switch stdout to binary mode.
9919         * src/devices/grolj4/lj4.cc: #include nonposix.h.
9920         (main) [SET_BINARY]: Switch stdout to binary mode.
9922         * src/devices/grolbp/lbp.cc: #include nonposix.h
9923         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
9925         * src/devices/grodvi/dvi.cc: #include nonposix.h.
9926         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
9927         nonposix.h).
9928         (main) [SET_BINARY]: Switch stdout to binary mode.
9929         [_MSC_VER]: Remove an explicit call to _setmode.
9931         * src/include/nonposix.h: New file.
9933         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
9934         operation when building with DJGPP.
9935         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
9936         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
9937         ENVSETUP.
9939         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
9940         MS-DOS.
9941         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
9942         etc. can include a semi-colon on DOS/Windows.
9943         (depend.temp): Use depend1.temp instead of depend.temp1, to
9944         prevent files from overerwiting each other on 8+3 filesystems.
9946         * gendef.sh (t): Change definition to work with DOS/Windows.
9948         doc/groff.texinfo: Apart of some typo corrections, I also changed
9949         some index entris, to make them more non-ambiguous, and also put
9950         @ignore around some parts that are not yet written, to allow the
9951         Info output be readable.
9953 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
9955         Replaced specific checks for function declarations with a generic
9956         routine taken from GNU bfd.
9958         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
9959         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
9960         * configure.in: Use it.
9961         * src/devices/grolbp/lbp.cc, src/include/lib.h,
9962         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
9963         src/roff/groff/groff.cc: Use it.
9964         * Makefile.in, configure: Updated.
9966 2000-06-07  Paco Andrés Verdú  <pandres@dragonet.es>
9968         * src/devides/grolbp/lbp.h: Removed unused variables.
9970 2000-05-31  Keith Thompson  <kst@sdsc.edu>
9972         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
9973         strncasecmp().
9975 2000-05-31  Werner LEMBERG  <wl@gnu.org>
9977         * aclocal.m4 (GROFF_SRAND): New function to test the return value
9978         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
9979         * configure.in: Use it.
9980         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
9981         * configure, Makefile.in: Updated.
9983         * configure.in: Add test for strncasecmp().
9984         * src/include/lib.h: Use it.
9986 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
9988         * src/preproc/grn/Makefile.sub: Add MLIB.
9990 2000-05-29  Nix  <nix@esperi.demon.co.uk>
9992         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
9994 2000-05-29  Werner LEMBERG  <wl@gnu.org>
9996         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
9998         * PROBLEMS: Small update.
10000         * src/devices/grolbp/lbp.cc: Various small fixes.
10002 2000-05-28  Keith Thompson  <kst@sdsc.edu>
10004         * src/roff/nroff/nroff.sh: Fix main loop syntax.
10006         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
10008 2000-05-25  Werner LEMBERG  <wl@gnu.org>
10010         * man/roff.man: Removed unused macro.
10012 2000-05-24  Werner LEMBERG  <wl@gnu.org>
10014         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
10015         This is needed e.g. if you do
10016         `make distclean; ./configure; make dist'.
10018 Version 1.16 released
10019 =====================
10021 2000-05-23  Werner LEMBERG  <wl@gnu.org>
10023         Adding font CWI (constant width italic) to devdvi.
10025         * font/devdvi/CWI: New file.
10026         * font/devdvi/generate/Makefile: Add generating rule.
10027         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
10028         tmac/tmac.dvi: Use it.
10029         * NEWS: Announce it.
10031         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
10032         * font/devlj4/generate/Makefile: Cosmetic changes only.
10034         * man/groff.man: Removed most of the redundant description of
10035         special characters (which is in groff_char.man).  Added font
10036         translation CB->CR for devdvi.  Other minor fixes.
10038         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
10039         (registered) symbols.
10041 2000-05-22  Werner LEMBERG  <wl@gnu.org>
10043         * doc/Makefile: Added rule for creating info files.
10045         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
10046         AMS font metrics.
10047         * font/devdvi/generate/Makefile: Fixed dependencies.
10049         * font/devps/*: Regenerated.  Heavy changes for Bookman and
10050         NewCentury Schoolbook!
10051         * font/devps/generate/afmname: Will now run with GNU awk.
10052         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
10053         * font/devps/generate/Makefile: Cosmetic changes only.
10055 2000-05-21  Werner LEMBERG  <wl@gnu.org>
10057         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
10058         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
10059         `.SS' now produces a heading with a smaller size than `.SH'. 
10060         Completely formatted.
10061         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
10063         * man/groff.man: Improved table appearance.  Use of `eo' request
10064         to reduce number of doubled backslashes in macro definitions.
10065         Replacing `\e' with `\(rs'.  Other minor fixes.
10067         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
10068         to have correct line number.
10070         * INSTALL: Small improvement.
10072 2000-05-20  Bernd Warken  <bwarken@mayn.de>
10074         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
10075         WL).
10077 2000-05-19  Bernd Warken  <bwarken@mayn.de>
10079         * man/groff.man: Complete update (with a lot of corrections by WL).
10081 2000-05-18  Werner LEMBERG  <wl@gnu.org>
10083         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
10085         * font/*/*: Implement it.
10086         * man/groff_char.man, NEWS: Document it.
10088         * src/include/unix.h: Removed.  It isn't used.
10090         * doc/groff.texinfo: Slight improvements.
10092 2000-05-17  Werner LEMBERG  <wl@gnu.org>
10094         * README, win32-diffs: Small fixes and improvements.
10096 2000-05-16  Werner LEMBERG  <wl@gnu.org>
10098         * FDL: New file (the Free Documentation License version 1.1).
10100         * doc/groff.texinfo: Added many start-up values for gtroff.
10101         Some structural improvements of the source code.
10103 2000-05-15  Werner LEMBERG  <wl@gnu.org>
10105         * src/roff/troff/input.cc: Added small comment about troffrc-end.
10106         * src/roff/troff/troff.man: Added info about troffrc-end.
10108 2000-05-14  Werner LEMBERG  <wl@gnu.org>
10110         * Makefile.in (EXTRADIRS): Fix typos.
10111         (dist): Handle deletion of old .tar.gz file correctly.
10112         (DISTDIRS): Include all tty output devices.
10114         * doc/groff.texinfo: Adding more cross references; countless other
10115         fixes.
10117 2000-05-13  Werner LEMBERG  <wl@gnu.org>
10119         * MORE.STUFF: Added Robert Marks's utilities.
10121 2000-05-12  Werner LEMBERG  <wl@gnu.org>
10123         Added win32 port contributed by Blake McBride
10124         <blake@florida-software.com>.
10126         * README.WIN32, win32-diffs: New files.
10127         * NEWS: Updated.
10129         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
10130         (tmove, tmove2): Added parentheses to avoid compiler warnings.
10131         (change): Removed unused variables.
10133         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
10134         (savebounds): Changed return value from `int' to `void'.
10135         * src/preproc/grn/hdb.cc: Ditto.
10137         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
10138         final backslash in comment to avoid compiler warning.
10140         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
10142         * doc/groff.texinfo: More fixes.
10144 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
10146         * tmac/tmac.doc: Documentation fix.
10148 2000-05-11  Werner LEMBERG  <wl@gnu.org>
10150         * doc/groff.texinfo: Reading the source code shows up a lot of
10151         omissions and incorrect data...  More conversion to @Deffn macros.
10153 2000-05-10  Werner LEMBERG  <wl@gnu.org>
10155         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
10156         dependency.
10158         * src/roff/troff/request.h: Removing unused `no_break_flag'.
10160 2000-05-09  Werner LEMBERG  <wl@gnu.org>
10162         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
10163         improvements.
10165         * doc/groff.texinfo: Extended history section.  More conversion to
10166         @Deffn macros.  More .tr documentation.
10168 2000-05-07  Werner LEMBERG  <wl@gnu.org>
10170         * doc/groff.texinfo: Completed tab section.  Added info about
10171         fields.
10173 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
10175         * PROBLEMS: Describe configure script fix for OS/390 Unix.
10177 2000-05-05  Werner LEMBERG  <wl@gnu.org>
10179         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
10180         LaTeX 2e).
10181         * NEWS: Document it.
10183         * man/troff.man: Minor optical improvements.
10185 2000-05-03  Werner LEMBERG  <wl@gnu.org>
10187         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
10189         * font/*/*: Implement it.
10190         * man/groff_char.man, NEWS: Document it.
10192 2000-05-02  Werner LEMBERG  <wl@gnu.org>
10194         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
10195         expansion.
10196         * NEWS: Document the three new man pages.
10198         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
10199         * configure: Updated.
10201         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
10203 2000-05-01  Werner LEMBERG  <wl@gnu.org>
10205         Added grap support to grog.
10207         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
10208         * src/roff/grog/grog.man: Document it.
10210         * doc/groff.texinfo, NEWS: Add info about grap support.
10212         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
10213         (with slight fixes by me).
10215         * tmac/groff_tmac.man: New file documenting tmac mechanism.
10216         * tmac/Makefile.sub: Add groff_tmac.man.
10217         * man/roff.man: New file giving overview of roff system.
10218         * man/troff.man: A short reference of troff.
10219         * man/Makefile.sub: Add roff.man and troff.man.
10221 2000-04-30  Werner LEMBERG  <wl@gnu.org>
10223         Added grap support to groff.
10225         * src/roff/groff/groff.cc: Implement it.
10226         * src/roff/groff/groff.man: Document it.
10228         * src/devices/grotty/grotty.man: Add cp1047 device.
10229         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
10230         Ditto.
10231         * src/roff/groff/groff.man: Ditto.
10232         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
10233         * doc/groff.texinfo: Ditto.
10235         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
10236         for cp1047.
10238 2000-04-29  Werner LEMBERG  <wl@gnu.org>
10240         * man/groff_char.man: Add `pc' glyph.
10241         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
10242         * tmac/tmac.tty: Add `pc' glyph.
10243         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
10244         we use cp1047 output device.
10246         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
10247         there are still hardcoded latin1->unicode values in utf8's font
10248         definition files.
10249         * configure: Updated.
10250         * NEWS: Minor clarification.  Updated.
10252         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
10253         Unix.
10255 2000-04-28  Werner LEMBERG  <wl@gnu.org>
10257         Adding EBCDIC code page 1047.
10259         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
10260         font/devcp1047/DESC.proto: New files.
10262         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
10263         either ascii/latin1 or cp1047.
10264         * Makefile.in: Use it.
10265         * configure: Updated.
10267         Replacing and/or adding `md' (mathdot) glyph with `pc'
10268         (periodcentered) in all text fonts.
10270         * font/*/*: Change it.
10272 2000-04-27  Werner LEMBERG  <wl@gnu.org>
10274         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
10276         * configure.in: Add check for strings.h.
10277         * src/include/driver.h: Use HAVE_STRINGS_H.
10278         * src/devices/grolbp/lpb.cc: Remove string.h.
10280         * src/include/groff-getopt.h: New file.  It will be used instead of
10281         getopt.h (to be included in lib.h) to avoid endless problems with
10282         picky C++ compilers.
10283         * src/include/lib.h: Use groff-getopt.h.
10284         * src/include/Makefile.sub: Updated.
10286         * configure: Updated.
10287         * Makefile.in: Updated.
10289         * NEWS: Mention EBCDIC support.
10291 2000-04-26  Werner LEMBERG  <wl@gnu.org>
10293         * TODO: Some additions.
10295 2000-04-25  Werner LEMBERG  <wl@gnu.org>
10297         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
10298         of mso request.
10300 2000-04-23  Werner LEMBERG  <wl@gnu.org>
10302         * src/roff/troff/troff.man: Minor fixes.
10304 2000-04-22  Werner LEMBERG  <wl@gnu.org>
10306         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
10307         `.T' string register and the incompatible definition of the `.T'
10308         number register (compared to Unix troff).
10310         * man/groff_char.man: Add some missing characters.
10311         * font/devutf8/NOTES: Update.
10313 2000-04-21  Werner LEMBERG  <wl@gnu.org>
10315         * src/include/htmlindicate.h, src/include/lib.h,
10316         src/include/posix.h: Fix copyright.
10318         * src/include/Makefile.sub: Update.
10320 2000-04-20  Werner LEMBERG  <wl@gnu.org>
10322         * src/roff/troff/input.cc (input_char_description): Removing
10323         superfluous space char.
10325         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
10327         * doc/groff.texinfo: Document EBCDIC.
10329 2000-04-19  Werner LEMBERG  <wl@gnu.org>
10331         Introducing `shc' as the glyph name for the soft hyphen character.
10333         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
10334         font/devlatin1/R.proto: Use it.
10336         * NEWS: Updated.
10338 2000-04-18  Werner LEMBERG  <wl@gnu.org>
10340         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
10341         dependency on ASCII order.
10343 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
10345         * src/libs/libgroff/illegal.c: Added EBCDIC table.
10346         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
10348         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
10349         to increase portability.
10351 2000-04-15  Werner LEMBERG  <wl@gnu.org>
10353         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
10354         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
10355         the generic `\n' if under OS/390 Unix.
10357         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
10359         * configure: Regenerated.
10361 2000-04-14  Werner LEMBERG  <wl@gnu.org>
10363         * doc/groff.texinfo: More conversions to @Deffn.
10365 2000-04-12  Werner LEMBERG  <wl@gnu.org>
10367         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
10368         with `:'.
10370         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
10372 2000-04-10  Werner LEMBERG  <wl@gnu.org>
10374         * doc/groff.texinfo: More conversions to @Deffn.
10376 2000-04-08  Werner LEMBERG  <wl@gnu.org>
10378         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
10379         Updated to latest version (glibc 2.1.3).
10381 2000-04-07  Werner LEMBERG  <wl@gnu.org>
10383         * doc/Makefile (clean): Include more index files.
10384         Add rule texinfo->dvi.
10386 2000-04-05  Werner LEMBERG  <wl@gnu.org>
10388         * doc/groff.texinfo: Added new index `op' for operators.  More
10389         info on end of sentence characters.  More use of @Deffn.
10391 2000-03-30  Werner LEMBERG  <wl@gnu.org>
10393         * */*.man: Adding a note that a whitespace can be inserted between
10394         a command line option and its parameter -- we are using GNU getopt.
10396         * src/roff/groff/groff.man: Add example of `-m mandoc'.
10398 2000-03-28  Werner LEMBERG  <wl@gnu.org>
10400         Correct anachronism of calling the man macro file with `-man'
10401         instead of `-m man' etc.
10403         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
10404         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
10405         load tmac.<package>.
10407         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
10409         * NEWS: Updated.
10411         * doc/groff.texinfo: Updated.
10413         * tmac/groff_man.man: Copyright added.
10415 2000-03-27  Werner LEMBERG  <wl@gnu.org>
10417         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
10418         typeset the request resp. escape name with a tt font -- due to a
10419         bug in texinfo.tex it is necessary to use the `-e' switch with
10420         texi2dvi.
10422         Improving info about usage of groff units.
10424         Other minor fixes.
10426 2000-03-20  Werner LEMBERG  <wl@gnu.org>
10428         * doc/groff.texinfo: Added section about man macro package
10429         (I've basically taken groff_man.man).  Introducing new indices `ma'
10430         for macros/strings and `gl' for glyph names.  Other minor fixes.
10432         * tmac/groff_man.man: Fixed some typos.
10434 2000-03-19  Werner LEMBERG  <wl@gnu.org>
10436         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
10437         Other minor fixes.
10439         * doc/texinfo.tex: New file.
10441 2000-03-18  Werner LEMBERG  <wl@gnu.org>
10443         * doc/groff.texinfo: Improved section on number registers.  Other
10444         minor updates.
10446 2000-03-16  Werner LEMBERG  <wl@gnu.org>
10448         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
10449         synopsis.
10451         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
10452         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
10453         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
10454         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
10456         * src/preproc/grn/grn.man: Better synopsis; added copyright.
10458         * src/roff/grog/grog.man: Updated copyright date.
10460 2000-03-14  Francisco Andrés Verdú  <pandres@dragonet.es>
10462         * configure.in: Added test for strdup.
10464         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
10465         is available.
10467         Replaced dynamic allocation of arrays `[...]' with `new' operator.
10469         Other minor fixes.
10471 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
10473         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
10475 2000-03-11  Werner LEMBERG  <wl@gnu.org>
10477         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
10478         compilers silent.
10479         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
10480         * src/include/lib.h: Remove some spaces.
10482 2000-03-10  Werner LEMBERG  <wl@gnu.org>
10484         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
10485         initializers from arguments (some compilers don't like this).
10487 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
10489         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
10490         used by pic and eqn to tell grohtml where the graphic regions start
10491         and end.
10492         * src/libs/libgroff/Makefile.sub: Use it.
10493         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
10494         graphic_start() and graphic_end() from htmlindicate.cc.
10496 2000-03-09  Werner LEMBERG  <wl@gnu.org>
10498         * tmac/tmac.safer: Will now work correctly in compatibility mode.
10499         * tmac/groff_man.man: More fixes.
10501 2000-03-08  Werner LEMBERG  <wl@gnu.org>
10503         * doc/Makefile: Added texput.log to the `clean' target.
10504         * doc/groff.texinfo: Added info about delimiters for escapes.
10506 2000-03-08  Bernd Warken  <bwarken@mayn.de>
10508         * src/preproc/pic/pic.man: Add info on conversion of pic images to
10509         other graphic formats.
10511 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
10513         * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
10514         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
10515         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
10516         files.
10518 2000-03-07  Werner LEMBERG  <wl@gnu.org>
10520         * doc/groff.texinfo: Spelling fixes.
10522 2000-03-06  Werner LEMBERG  <wl@gnu.org>
10524         * tmac/groff_man.man: Completely revised to cover everything in
10525         tmac.an.
10527         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
10528         Other minor fixings.
10529         * src/roff/troff/env.cc (environment_copy): Improve error message and
10530         fix itoa->i_to_a.
10531         * src/roff/troff/TODO: Updated.
10533         * doc/Makefile: Bug fixes -- this is still provisional, though...
10535         * tmac/eqnrc: Small fixes.
10537 2000-03-05  Abramo Bagnara  <abramo@alsa-project.org>
10539         Adding a request `evc' to copy environments.
10541         * src/roff/troff/env.cc (environment::copy, environment_copy):
10542         Implement it.
10543         * src/roff/troff/env.h: Add prototype.
10545 2000-03-05  Francisco Andrés Verdú  <pandres@dragonet.es>
10547         Adding strsep() -- Solaris 8 doesn't have it.
10549         * configure.in: Test it.
10550         * src/devices/grolbp/lbp.cc: Add code.
10552 2000-03-05  Werner LEMBERG  <wl@gnu.org>
10554         * src/roff/troff/div.cc (macro_diversion::output,
10555         top_level_diversion::output): Fixing an incompatibility with
10556         original troff: \x'0' updates the .a register also.  Thanks to
10557         <Andries.Brouwer@cwi.nl> for pointing this out.
10558         * doc/groff.texinfo: Document it.
10560         * Makefile.in: Create Makefile.dep if necessary before calling the
10561         submake process to avoid warning about nonexistent file.
10563         * NEWS, PROJECTS: Updated.
10565 2000-03-04  Werner LEMBERG  <wl@gnu.org>
10567         * tmac/troffrc: Add tmac.lbp.
10569 2000-03-03  Francisco Andrés Verdú  <pandres@dragonet.es>
10571         * tmac/tmac.lbp: New file.
10572         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
10573         command.
10575 2000-03-03  Werner LEMBERG  <wl@gnu.org>
10577         * Makefile.in: Fixing $(subdir).
10579         * README, NEWS: Small fixes.
10581         * test-groff: Adding path to grolbp.
10583         * configure.in: The (new) file src/xditview/Imakefile.in will be
10584         also configured -- it is now possible to build gxditview in a
10585         directory different from $srcdir.
10587 2000-03-02  Blake McBride  <blake@florida-software.com>
10589         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
10591         * MORE.STUFF: Added website of bell labs and info about plot2dev.
10593 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
10595         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
10596         files.
10598 2000-02-29  Werner LEMBERG  <wl@gnu.org>
10600         Adding GNU getopt to the groff distribution.
10602         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
10603         New files.
10604         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
10605         * aclocal.a4: Remove GROFF_GETOPT function.
10606         * configure.in, Makefile.in, PROBLEMS: Update.
10607         * src/include/lib.h: Replace getopt tests with getopt.h.
10608         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
10610         * doc/groff.texinfo: Further checking/updating.  Adding more index
10611         entries.
10613         * man/groff_out.man: Fix nroff mode activation (for emacs).
10614         * man/groff_font.man: Add missing ligature.
10616 2000-02-28  Werner LEMBERG  <wl@gnu.org>
10618         * doc/groff.texinfo: Further checking/updating.  Adding more index
10619         entries.
10621         * src/devices/grolbp/grolbp.man: Added a comment line at the
10622         beginning of the file (similar to shell scripts) which indicates
10623         that `tbl' should be used as a preprocessor.
10625 2000-02-27  Blake McBride  <blake@florida-software.com>
10627         Adapting groff to MS Visual C++ 6.0 compiler (tested with
10628         Windows NT 4.0).  Uses _MSC_VER define where necessary.
10630         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
10631         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
10632         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
10633         src/include/lib.h, src/libs/libgroff/errarg.cc,
10634         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
10635         src/preproc/refer/label.y, src/preproc/refer/label.cc,
10636         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
10637         src/roff/troff/div.cc, src/roff/troff/env.cc,
10638         src/roff/troff/input.cc, src/roff/troff/node.cc,
10639         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
10640         if_to_a() to avoid name clashes.
10641         * src/include/posix.h: Don't use unistd.h.
10642         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
10643         clause for integrating non-Unix xtmpfile() code.
10644         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
10645         structure; use "rt" for popen() in pipe_source(); add getpid()
10646         dummy function.
10647         * src/roff/troff/node.cc: Use special versions of popen() in
10648         real_output_file() and pclose() in ~real_output_file().
10650 2000-02-27  Werner LEMBERG  <wl@gnu.org>
10652         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
10653         LBP-8 series laser printers).  This code has been contributed by
10654         Francisco Andrés Verdú <pandres@dragonet.es>.
10656         * src/devices/grolbp/*: The grolbp output device.
10657         * font/devlpb/*: The font description files.
10658         * Makefile.in: Add grolpb and devlbp subdirectories.
10660         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
10661         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
10662         typographic fixes.
10664         * doc/groff.texinfo: Further checking/updating.  Adding more index
10665         entries.
10667         * NEWS: Updated.
10669         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
10671         * man/groff_font.man: Adding info about obsolete DESC keywords.
10672         * src/devices/grolj4/grolj4.man: Documenting additional DESC
10673         keywords.
10675 2000-02-26  Werner LEMBERG  <wl@gnu.org>
10677         * src/preproc/grn/grn.man: Added info about the gremlin file format
10678         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
10680 2000-02-25  Werner LEMBERG  <wl@gnu.org>
10682         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
10683         friends to be non-integer.
10685         * src/preproc/grn/grn.man: Document it.
10687         * doc/groff.texinfo: Further checking/updating.  Adding more index
10688         entries.
10690 2000-02-24  Werner LEMBERG  <wl@gnu.org>
10692         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
10693         line thicknesses to be integer multiples of this value.
10695         * src/preproc/grn/grn.man: Commenting out the -s option -- the
10696         corresponding code doesn't work (yet).
10698         * doc/groff.texinfo: Further checking/updating.  Adding more index
10699         entries.
10701 2000-02-23  Werner LEMBERG  <wl@gnu.org>
10703         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
10704         specify line thickness instead of base units.  The new default
10705         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
10706         thick lines respectively.
10708         Removed unused variable `prevval'.
10710         * src/preproc/grn/grn.man: Updated.
10712 2000-02-22  Werner LEMBERG  <wl@gnu.org>
10714         * src/preproc/grn/main.cc: Slight formatting.
10716         * src/roff/groff/groff.man: Formatting fix.
10717         * src/preproc/grn/grn.man: Ditto.
10719         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
10721         * doc/groff.texinfo: Further checking/updating.
10723 2000-02-21  Werner LEMBERG  <wl@gnu.org>
10725         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
10727         * test-groff: Added grn subdir to path.
10729         * doc/groff.texinfo: Some restructing and other small improvements.
10731         * src/roff/groff/groff.cc (help): Fixed info string.
10733 2000-02-20  Werner LEMBERG  <wl@gnu.org>
10735         * doc/meref.me: Fix description of .GS request.
10737         * src/roff/troff/troff.man: Fixing typo.
10739         Adding the `grn' preprocessor for gremlin graphic files.
10741         * src/preproc/grn/*: This is the Berkeley distribution written by
10742         David Slattengren and Barry Roitblat, adapted to groff by Daniel
10743         Senderowicz and Werner Lemberg.
10745         * doc/grnexampl.{me,g}: A sample for grn.
10747         * Makefile.in: Added subdirectory entry for grn.
10749         * src/roff/groff/groff.cc: Added support for grn.  It can be now
10750         called with the switch `-g'.
10752         * src/roff/groff/groff.man: Updated.
10754         * src/roff/grog/grog.{man,pl,sh}: Updated.
10756         * NEWS: Updated.
10758 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
10760         * src/include/lib.h: Added xtmptemplate and made xtmpfile
10761         parametrically polymorphic.
10763         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
10764         and the alterations to xtmpfile.
10765         xtmpfile can be requested to return the filename created
10766         and asked not to unlink the temp file.  The default behaviour
10767         if parameters are absent is exactly the same as before.
10769 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
10771         A new request `length' is available which returns the length of a
10772         string in a number register:
10774         * src/roff/troff/input.cc (length_macro): Implement it.
10775         * src/roff/troff/input.cc (init_input_requests): Register it.
10777 2000-02-11  Werner LEMBERG  <wl@gnu.org>
10779         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
10780         of the `substring' request.
10782         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
10783         request.
10785         * src/roff/troff/TODO, NEWS: Updated.
10787 2000-02-09  Werner LEMBERG  <wl@gnu.org>
10789         * src/roff/groff/groff.man: Added an example.
10791 2000-02-06  Werner LEMBERG  <wl@gnu.org>
10793         I've considerably modified the directory structure of the
10794         distribution to get a more vertical layout.  For example, the number
10795         of top level directories has been reduced from 42 to 6.
10797         As a consequence, many changes, especially to the makefiles, were
10798         necessary:
10800         * The makefile variables `top_builddir' and `top_srcdir' have been
10801         introduced.  Virtually all relative paths have been replaced with
10802         absolute ones using these two variables.
10804         * Dependencies (in the files `Makefile.dep') are no longer part of
10805         the distribution.  Instead, they are created during a `make install'
10806         in the build directory.
10808         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
10809         make `top_srcdir' and `top_builddir' absolute.
10811         Some other changes:
10813         * Man pages now depend on the files `VERSION' and `REVISION'.
10815         * The added shell script `mkinstalldirs' will replace `mkdir' in
10816         almost all cases.
10818         * VERSION: Version number increased to 1.16.
10820 2000-02-04  Werner LEMBERG  <wl@gnu.org>
10822         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
10824         * Makefile.in: Removed $(tmac_m) since it is no longer needed
10825         (after an update of the mm stuff).
10827         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
10829 2000-02-03  Werner LEMBERG  <wl@gnu.org>
10831         The .psbb request will now also accept Mac PS images (i.e. using LF
10832         as the EOL character).
10834         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
10835         (with slight modifications).
10836         * troff/input.cc (do_ps_file): Use it.
10838         * test-groff: Add grohtml and grolj4 output devices to PATH.
10840 2000-01-30  Werner LEMBERG  <wl@gnu.org>
10842         * NEWS, MORE.STUFF: Updated.
10844 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
10846         Add the `srand' command to pic.
10848         * pic/lex.cc, pic/pic.y: Implement it.
10849         * pic/pic.man: Document it.
10850         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
10852 2000-01-30  Werner LEMBERG  <wl@gnu.org>
10854         Add a new request `.psbb'.  This does exactly what the external
10855         program psbb did.  It scans a PostScript image file for a
10856         %%BoundingBox comment and extracts the bounding box values (in
10857         PostScript units) which are then stored in the four new (read-only)
10858         number registers `llx', `lly', `urx', and `ury'.
10860         This will allow the usage of the .PSPIC macro without worrying
10861         about unsafe behaviour of groff, i.e., it will work without the
10862         `-U' switch of groff.
10864         * troff/input.cc: Implement it.
10865         * tmac/tmac.pspic: Use it.
10866         * troff/troff.man, grops/grops.man, NEWS: Document it.
10867         * psbb/*, Makefile.in: Remove it since it is no longer needed.
10869         This is bloody C code simply adapted from psbb.c!  Any improvements
10870         welcome.
10872 2000-01-29  Werner LEMBERG  <wl@gnu.org>
10874         * man/groff_font.man: Minor clarifications.
10876         * NEWS: Updated.
10878 2000-01-28  Werner LEMBERG  <wl@gnu.org>
10880         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
10882 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
10884         * man/groff_font.man: Brought up to date regarding tcommand
10885         extensions.
10886         * libgroff/font.cc: Handle everything after `--' as a comment
10887         in the font files.
10888         * devps/*: Added comment delimiter inside devps font files.
10890 2000-01-28  Werner LEMBERG  <wl@gnu.org>
10892         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
10893         \fC...\fP (which now works as expected).
10895         * troff/troff.man: Fix typo.
10897 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
10899         Completed the pass_filenames implementation in troff.
10901         * libdriver/input.cc: Will read the new `F' tcommand.
10902         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
10903         * troff/input.cc: Use it.
10905 2000-01-26  Werner LEMBERG  <wl@gnu.org>
10907         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
10908         font will now be updated even if an invalid font is selected.
10910 2000-01-24  Werner LEMBERG  <wl@gnu.org>
10912         * doc/homepage.ms: Updated for new tmac.arkup.
10914         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
10916         * tmac/tmac.arkup: Cleanup.
10918         Added `\&' to .HTML macro to `leave vertical mode', so to say.
10920         Removed obsolete .LINK macro completely.
10922         The macros .URL, .FTP, and .MAILTO now accept a third argument which
10923         will be immediately appended to the second argument (to be used with
10924         punctuation, for example).
10926         Disabled .CDFTP macro temporarily for security reasons.
10928         * tmac/groff_markup.man: Complete revision for latest changes in
10929         tmac.arkup -- note that it does not yet format correctly with
10930         grohtml :-(
10932 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
10934         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
10935         * devutf8/R.proto: Add mappings for wp, lh, rh.
10936         * devutf8/NOTES: Updated.
10938 2000-01-23  Werner LEMBERG  <wl@gnu.org>
10940         * doc/groff.texinfo: Updated version/copyright info.
10942 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
10944         Added support for two new directives in device descriptions:
10945         `pass_filenames' (to pass the input file name to the output device)
10946         and `use_charnames_in_special' (to support e.g. accented characters
10947         in the `X' request).
10949         * include/font.h, troff/charinfo.h: Declare it.
10951         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
10953         * devhtml/DESC: Use it.
10955         * troff/input.cc: New function encoded_char.
10957         * troff/token.h: Add test for `specialness'.
10959 2000-01-21  Werner LEMBERG  <wl@gnu.org>
10961         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
10962         mistake from the list of files to be installed.
10964 2000-01-18  Werner LEMBERG  <wl@gnu.org>
10966         * README: Added info how to apply patches.
10968 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
10970         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
10972 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
10974         * troff/input.cc: Add support for troffrc-end.
10976         * tbl/main.cc: Altered to issue table-start and table-end special
10977         characters if using the html device.
10979         * devhtml/*: Modified font files to incorporate html encoding of
10980         characters.
10982         * tmac/groff_markup.man: New file documenting tmac.arkup.
10984         * tmac/troffrc-end: New file.  This is invoked after all user
10985         specified macros.  Currently used by the html device to include
10986         tmac.html.  Thus no need for users to specify -mhtml anymore.
10988         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
10989         (MAN7): Add groff_markup.man.
10991         * tmac/tmac.an, tmac/tmac.html: Small html updates.
10993         * tmac/troffrc: tmac.arkup will now be called for the html device.
10995         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
10996         extra device specific information about fonts.
10998         * doc/homepage.ms: New file.  It is an example how an HTML home page
10999         could look like with grohtml.
11001         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
11003 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
11005         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
11006         of Im, Re.
11008         * devutf8/NOTES: Updated.
11010 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
11012         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
11013         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
11014         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
11015         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
11016         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
11017         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
11018         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
11019         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
11020         warnings.
11022         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
11024 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
11026         grolj4: Paper size will be searched case-insensitively.
11028         * include/lib.h: Add check for strcasecmp().
11029         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
11030         * configure.in: Check for strcasecmp().
11032 2000-01-11  Werner LEMBERG  <wl@gnu.org>
11034         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
11035         `REVISION'.
11037 2000-01-10  Werner LEMBERG  <wl@gnu.org>
11039         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
11040         revision scheme.
11042         Add a new read-only register, `.Y', which contains the groff
11043         revision.
11045         * troff/input.cc (init_input_requests): Define it.
11046         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
11047         * doc/groff.texinfo, troff/troff.man: Document it.
11049         * libgroff/Makefile.sub (version.cc): Add definition of
11050         `Version_string[]', consisting of `<major>.<minor>.<revision>'
11051         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
11052         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
11053         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
11054         troff/input.cc, pfbtops/pfbtops.c: Use it.
11056 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
11058         Add a revision scheme to the groff package.
11060         * REVISION: New file.
11061         * libgroff/Makefile.sub (version.cc): Use it to define
11062         `revision_string[]'.
11063         * grops/psrm.cc: Use revision_string (converted to an unsigned
11064         integer) in constructor of resource_manager.
11066 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
11068         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
11069         files.
11070         * Makefile.in (DEVDIRS): Add devutf8.
11071         * grotty/tty.cc: Include device.h.
11072         (glyph): Change type of `code' to `unsigned int'.
11073         (tty_printer): New field is_utf8.  Constructor takes device argument.
11074         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
11075         (tty_printer::add_char): Change type of first arg to `unsigned int'.
11076         (tty_printer::put_char): New function.
11077         (tty_printer::end_page): Use put_char() instead of ::putchar().
11078         (make_printer): Pass device to tty_printer constructor.
11079         * nroff.sh: Determine default device by calling 'locale'.  As a
11080         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
11081         Recognize UTF-8 locales.
11082         * tmac/eqnrc: Recognize utf8 like latin1.
11083         * tmac/troffrc: Device utf8 needs tmac.tty.
11085 2000-01-07  Werner LEMBERG  <wl@gnu.org>
11087         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
11089 2000-01-07  Paul Eggert  <eggert@twinsun.com>
11091         Add a new predefined writeable number register, `year',
11092         which contains the current year.
11094         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
11095         * tmac/tmac.s: Use it.
11096         * troff/input.cc (init_registers): Initialize it.
11098 2000-01-06  Werner LEMBERG  <wl@gnu.org>
11100         * PROBLEMS: Fixed typo.
11102 2000-01-04  Paul Eggert  <eggert@twinsun.com>
11104         * PROBLEMS: Add Y2k advice for the yr number register.
11106 2000-01-03  Paul Eggert  <eggert@twinsun.com>
11108         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
11110 2000-01-02  Werner LEMBERG  <wl@gnu.org>
11112         * tmac/tmac.arkup: Slight modification of macros to provide better
11113         appearance for non-HTML formats.
11115 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
11117         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
11118         does not automatically translate to malloc(n) on all OSes
11119         (e.g., SunOS) so do it explicitly.  Also, check the returned
11120         value.
11122 2000-01-01  Werner LEMBERG  <wl@gnu.org>
11124         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
11126         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
11127         expects this variable
11129 2000-01-01  Gaius Mulley  <gaius@glam.ac.uk>
11131         * doc/Makefile: Added instructions to create HTML and text
11132         versions of some files.
11134 1999-12-31  Werner LEMBERG  <wl@gnu.org>
11136         * Updated INSTALL.gen.
11138         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
11139         better resp. correctly with non-HTML devices.
11141 Version 1.15 released
11142 =====================
11144 1999-12-28  Werner LEMBERG  <wl@gnu.org>
11146         * NEWS, VERSION: Changed to 1.15
11148 1999-12-27  Paul Eggert  <eggert@twinsun.com>
11150         * nroff/nroff.man: -S is safer, not safe.
11152         * groff/groff.cc (main): Use `safer', not `safe', in variable
11153         names.  This does not change the behavior.
11155         * troff/input.cc (main): Likewise.
11157         * nroff/nroff.sh: Likewise.
11159         * troff/input.cc (prepend_string): New function.
11160         (main): Prepend -msafer, so that we check macro libraries for
11161         safety.
11163         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
11165 Version 1.14 released
11166 =====================
11168 1999-12-26  Werner LEMBERG  <wl@gnu.org>
11170         * NEWS, VERSION: Changed to 1.14.
11172 1999-12-24  Werner LEMBERG  <wl@gnu.org>
11174         * refer/refer.cc: Fixing the last fix.
11176 Version 1.13 released
11177 =====================
11179 1999-12-23  Werner LEMBERG  <wl@gnu.org>
11181         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
11182         number disappear.
11184         * NEWS: Updated.
11186         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
11188         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
11189         document conventions, the version number must be a real.
11191 Version 1.12.1 released
11192 =======================
11194 1999-12-22  Werner LEMBERG  <wl@gnu.org>
11196         * VERSION: Changed to 1.12.1.
11198 1999-12-22  Alan Rooks  <arooks@istar.ca>
11200         * refer/refer.cc (do_file): Slight modification to satisfy the
11201         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
11202         UnixWare 7.1.
11204 1999-12-20  Werner LEMBERG  <wl@gnu.org>
11206         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
11207         notices.
11209         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
11210         list of unsafe requests.
11212         * pic/pic.man: Fixed a typo.
11214         * man/groff_out.man: Fixed a typo.
11216 1999-12-18  Werner LEMBERG  <wl@gnu.org>
11218         * Makefile.in: Doc fixes.
11220 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
11222         * groff/groff.cc: Missing `U' option added to getopt().
11224         * troff/troff.man: Missing `U' option added to synopsis.
11226 Version 1.12 released
11227 =====================
11229 1999-12-14  Werner LEMBERG  <wl@gnu.org>
11231         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
11232         to the synopsis.
11234         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
11235         with the more appropriate terms `safer' and `unsafe'.
11237         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
11238         sys_nerr and sys_errlist[].
11240         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
11242         * pic/pic.y, pic/pic.cc: Added check for fmod().
11244 1999-12-13  Werner LEMBERG  <wl@gnu.org>
11246         * VERSION: Changed to 1.12.
11248         Here some patches from various sources; most of them taken from
11249         the Debian distribution.
11251         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
11252         tmac/Makefile.sub: New files copied directly from the NetBSD
11253         distribution.  Probably, some additional adaptation later on is
11254         necessary...
11256         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
11257         of unsafe requests.
11259         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
11260         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
11261         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
11262         (`-S') is now the default.
11264         * README, NEWS: Updated.
11266 1999-12-09  Werner LEMBERG  <wl@gnu.org>
11268         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
11270         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
11272 1999-12-06  Werner LEMBERG  <wl@gnu.org>
11274         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
11275         grief than relief today.  Additionally, it is against the GNU
11276         coding standards.
11278         * configure: Recreated.
11280 1999-12-05  Werner LEMBERG  <wl@gnu.org>
11282         * configure.in: Added GROFF_LIBM.
11284         * configure: Recreated.
11286         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
11287         necessary.
11289         * Makefile.in: Added definition of $(LIBM).
11291         * Makefile.comm (LIBM): Removed.
11293         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
11295 1999-12-03  Gaius Mulley  <gaius@glam.ac.uk>
11297         * doc/Makefile: Added rule for generation pic.html.
11299         (clean): Files produced by grohtml will be removed also.
11301         * doc/pic.ms: Small fix.
11303         * tmac/tmac.html: Fixed suppression of headers.
11305 1999-11-16  Gaius Mulley  <gaius@glam.ac.uk>
11307         * tmac/tmac.html: Fixing horizontal arrows.
11309         Turning off hyphenation.
11311         * tmac/tmac.an: Improved support for grohtml; better indentation,
11312         no footers/headers.
11314 1999-10-31  Gaius Mulley  <gaius@glam.ac.uk>
11316         * tmac/tmac.arkup: Added CDFTP macro
11318         * tmac/tmac.html: All headers are turned off for ms, me, and mm
11319         macros.
11321         * tmac/troffrc: Some additions for HTML stuff.
11323 1999-10-06  Gaius Mulley  <gaius@glam.ac.uk>
11325         * tmac/tmac.html: Small changes.
11327 1999-09-26  Werner LEMBERG  <wl@gnu.org>
11329         * doc/groff.texinfo: Minor fixes.
11331 1999-09-26  Gaius Mulley  <gaius@glam.ac.uk>
11333         * devhtml/TR: Changed spacewidth to 3.
11335         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
11337         * tmac/tmac.html: Moved markup macros to tmap.arkup.
11339         * tmac/tmac.arkup: New file.
11341         * grohtml/ChangeLog: New file.
11343 1999-09-16  Werner LEMBERG  <wl@gnu.org>
11345         * doc/groff.texinfo (Common Features): Added Copying chapter.
11346         Changed format to @smallbook.
11348 1999-09-15  Werner LEMBERG  <wl@gnu.org>
11350         * NEWS: Added info about groff.texinfo.
11352         * doc/groff.texinfo: Will now compile (using texi2dvi) without
11353         warning messages.
11355 1999-09-14  Werner LEMBERG  <wl@gnu.org>
11357         * groff/groff.man: More updates.
11359 1999-09-13  Werner LEMBERG  <wl@gnu.org>
11361         * doc/groff.texinfo: New file.  This manual is still very
11362         rudimentary.  It has been originally contributed by Trent
11363         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
11364         additions by me.
11366         * INSTALL: Added information about the `doc' subdir
11368         * troff/troff.man: Minor fixes.
11370         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
11371         reordered options.
11373         * troff/input.cc (usage): Added missing `-ffam' to usage message.
11375         * Makefile.in (dist): groff-$(version).tar.gz must be removed
11376         also, otherwise it is included itself in another call of `make
11377         dist'.
11379         * groff/groff.cc (synopsis): Removed superfluous space.
11381         * PROJECTS, PROBLEMS, NEWS: Updated.
11383         * VERSION: Updated to 1.12beta.
11385         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
11387         * README: Updated: Included documentation about CVS repository,
11388         mailing lists, and daily snapshots.
11390         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
11392 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
11394         * tmac/tmac.an: If the tag didn't fit into the space that the
11395         macro `TP' specifies, the rest of the tag went into the space for
11396         the next line.
11398 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
11400         * grolj4/lj4.cc: Added duplex printing (option `-d').
11402         * grolj4/grolj4.man: Document duplex printing.
11404 1999-09-12  Werner LEMBERG  <wl@gnu.org>
11406         * doc/Makefile (pic.ps): Fixed rule which caused problems with
11407         non-GNUish sed programs.
11409         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
11410         definition.
11412         * configure.in (LIBS): Added `-lc'
11414         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
11416         * pic/tex.cc (solid_arc): Casting M_PI to double.
11418         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
11420         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
11421         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
11422         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
11424         * groff/groff_man.man: New file.  This manual page was originally
11425         written for the Debian GNU/Linux system by Susan G. Kleinmann
11426         <sgk@debian.org>.
11428         * eqn/list.cc (list_box::compute_metrics,
11429         list_box::compute_sublist_width): Removed variable declaration to
11430         avoid shadowing warnings.
11432         * grops/psrm.cc (resource_manager::process_file): Ditto.
11434         * tfmtodit/tfmtodit.cc (main): Ditto.
11436         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
11437         to avoid shadowing warnings.
11439         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
11440         shadowing loop variable.
11442         * groff/groff.man, troff/troff.man: Added doc about grohtml.
11444 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
11446         New grohtml frontend to convert groff input to html.
11448         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
11450         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
11452         * tmac/eqnrc: Added html device.
11454         * tmac/tmac.html: New file.
11456         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
11457         (troff_output::start_picture, troff_output::finish_picture),
11458         tbl/main.cc (process_input_file):
11459         Surrounded output with `graphics_start' and `graphics_end' so that
11460         the html driver can identify non-text portions.
11462         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
11463         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
11464         grotty/tty.ps (tty_printer::set_char): Additional parameter
11465         `name'.
11467         * include/printer.h: Class printer: New function
11468         set_char_and_width; new variables (is_char_named, is_named_set,
11469         named_command, named_char_s, named_char_n) to hold information
11470         about named characters -- needed by the html driver.
11472         * libdriver/printer.cc (printer::set_ascii_char,
11473         printer::set_special_char): Use set_char_and_width.
11475         * devhtml/*: New device files for html driver.
11477         * grohtml/*: New driver grohtml.
11479 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
11481         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
11482         default strings.
11484 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
11486         * libgroff/string.cc (search): Small fix to test against NULL
11487         pointer.
11489 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
11491         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
11492         \b'abc') were stacked in reverse order when processed in a
11493         diversion.
11495         * troff/node.h: Added `*last' to struct `node' to make the above
11496         fix work.
11498         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
11499         The default scale for the 'f' and 't' graphics functions were 'm'
11500         rather than 'u' (i.e., no scaling).
11502 1999-09-11  Peter Miller  <peterm@jna.com.au>
11504         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
11505         do_file), soelim/soelim.man: Added `-I file' option to soelim,
11506         defining include paths.
11508         * soelim/soelim.cc (include_path_append): New function.
11510 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
11512         * tbl/main.cc (process_options): Unix (at least Documenter's
11513         Workbench) tbl allows arbitrary non-alpha characters between
11514         options.
11516 1999-09-11  Paul Eggert  <eggert@twinsun.com>
11518         Y2k fixes.  Don't assume that the current year precedes 2000.
11520         * doc/meref.me: Add \n(y2, \n(y4.
11522         * tmac/doc-common (Yr): New number register.
11523         (Dd): Don't assume current year precedes 2000.
11525         * tmac/tmac.e (td): Likewise.
11526         (y2, y4): New number registers.
11528         * pic/pic.man: Update reference for pic paper to May, 1991
11529         version.
11531 1999-09-11  Werner LEMBERG  <wl@gnu.org>
11533         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
11534         Removed quotation marks which prevented correct expansion of
11535         $(tmac_wrap).
11537         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
11539 1999-09-10  Werner LEMBERG  <wl@gnu.org>
11541         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
11542         `config.cache'.
11544         * Removed configure.old.
11546 1999-08-31  Werner LEMBERG  <wl@gnu.org>
11548         * VERSION: Updated to 1.11.1
11550 1999-05-27  Werner LEMBERG  <wl@gnu.org>
11552         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
11554         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
11555         added quotations around $(tmac_wrap) to avoid syntax error if
11556         variable is empty.
11558         * configure: Newly generated using autoconf 2.13.
11560         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
11562 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
11564         * README, PROJECTS, NEWS, INSTALL, VERSION, 
11565         doc/Makefile. doc/pic.ms, groff/groff.man:
11566         Prepare for 1.11 release.  No code changes.
11567         Documentation for pic added (doc/pic.ms).
11569 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
11571         * Version 1.10 released.
11573 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
11575         * afmtodit/afmtodit.pl: Avoid comment on first line.
11577 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
11579         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
11580         * configure.in: Call it.
11582         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
11583         (distfiles): Doesn't depend on config.log or config.cache.
11585 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
11587         * grog/grog.sh: Use print "" rather than print in END rule.
11589 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
11591         * tbl/main.cc (process_data): Don't give error for excess data
11592         entries that are comments.
11594 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
11596         * tbl/main.cc (process_data): Fix case where new for-scope rules
11597         silently change meaning of code.
11599 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
11601         * troff/env.cc (hyphenate): Loop over all consecutive sequences
11602         of non-zero hyphenation codes.
11604 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
11606         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
11608 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
11610         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
11612 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
11614         * tmac/tmac.andoc: Make it work in compatibility mode.
11616         * refer/token.h (token_info::is_range_sep): New function.
11617         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
11618         * refer/ref.cc (reference::output): More sophisticated check for
11619         multiple pages.
11621         * devps/prologue.ps (MANUAL): New procedure.
11622         * grops/ps.cc (main): New -m option.
11623         (usage): Include -m.
11624         (ps_printer::~ps_printer): Implement -m.
11626         * aclocal.m4 (GROFF_G): New macro.
11627         * configure.in: Call it.
11628         * Makefile.in (g): Provided by configure.
11630         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
11632         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
11633         translations.
11635         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
11636         (tmac_m, tmac_s): Deleted.
11637         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
11638         tmac_s_prefix): New variables.
11639         (MDEFINES): Change accordingly.
11640         * Makefile.comm (.man.n): Use new TMAC_* variables.
11641         * configure.in (GROFF_TMAC): Call.
11642         * aclocal.m4 (GROFF_TMAC): Define.
11643         * tmac/Makefile.sub (stamp_wrap): New target.
11644         (install_data, uninstall_sub): Handle macro wrapping.
11646 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
11648         * tbl/main.cc (main): Ignore -T option.
11650 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
11652         * devlj4/generate/special.map: Add definition of \(nb.
11654         * tmac/tmac.dvi: Add definition of \(nb.
11656         * troff/dictionary.c (dictionary::dictionary): association::v gets
11657         initialized by association::association.
11659         * tmac/Makefile.sub: Avoid using temporary files when installing.
11661         * troff/env.cc (environment::set_font): Make bad font number a
11662         warning.
11664         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
11666         * Makefile.in (datadir): Use share rather than lib.
11668         * groff/groff.cc (basename): Rename to xbasename.
11670 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
11672         * Makefile (CCLIBS): Don't use.
11673         * Makefile.ccpg: Likewise.
11675         * acgroff.m4: Rename to...
11676         * aclocal.m4: Modify extensively for autoconf 2.
11677         * configure.in: Likewise.
11678         * Makefile.in: Likewise.
11680         * groff/pipeline.c (const): Declare as empty if __STDC__ not
11681         defined.
11682         (xstrsignal): Check for definition of NSIG. Conditionalize
11683         on SYS_SIGLIST_DECLARED.  Make return type const.
11685 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
11687         * troff/input.cc (interpolate_macro): Rephrase missing space
11688         warning.
11690 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
11692         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
11693         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
11694         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
11695         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
11696         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
11697         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
11698         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
11699         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
11700         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
11701         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
11702         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
11703         Fix 'for' scoping.
11705 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
11707         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
11708         string_iterator.
11709         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
11710         file.
11711         (macro_iterator::macro_iterator): Add additional argument.
11713 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
11715         * troff/div.cc (vertical_size::vertical_size): In place of integer
11716         specifying line spacing use cunits specifying post vertical
11717         space.
11718         (macro_diversion::output, top_level_diversion::output): Likewise.
11719         * troff/div.h: Change declarations accordingly.
11720         * troff/env.cc (pending_output_line): Replace ls field by post_vs
11721         field.
11722         (pending_output_line::pending_output_line,
11723         pending_output_line::output, environment::output,
11724         environment::output_line, environment::output_title,
11725         environment::hyphenate_line):  In place of
11726         integer specifying line spacing use cunits specifying post vertical
11727         space.
11728         (environment::environment): Add post_vertical_spacing and
11729         prev_post_vertical_spacing arguments.
11730         (environment::get_post_vertical_spacing): New function.
11731         (environment::total_post_vertical_spacing): New function.
11732         (environment::post_vertical_spacing): New function.
11733         (init_env_requests): Initialize pvs request and .pvs register.
11734         * troff/env.h: Change declarations.
11736 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
11738         * tmac/tmac.pspic: Immediately remove the temporary file.
11740 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
11742         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
11743         height is specified.
11745 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
11747         * tbl/table.c (struct vertical rule, class table_entry): Use int
11748         not short for start_row and end_row.
11750 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
11752         * troff/input.cc (trapping_blank_line, blank_line_macro): New
11753         functions.
11754         (diverted_space_node::reread, process_input_stack): Call
11755         trapping_blank_line() rather than blank_line().
11756         (init_input_requests): Bind "blm" to blank_line_macro().
11758         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
11760 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
11762         * troff/env.cc (environment::possibly_break_line): Require that
11763         width total excluding width of final space node be greater than
11764         the target text length.
11766 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
11768         * troff/node.cc (kern_pair_node::vertical_extent): New function.
11770 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
11772         * troff/node.cc (charinfo_node): New class.
11773         (glyph_node, composite_node): Derive from charinfo_node.  Change
11774         member functions accordingly.
11776 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
11778         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
11780 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
11782         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
11784         * devps/generate/textmap (notsubset): Add.
11786         * tmac/tmac.a4: New file.
11788 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
11790         * pic/main.cc (had_parse_error): New variable.
11791         (do_picture, do_whole_file): Set had_parse_error if yyparse()
11792         returns non-zero.
11793         (main): Return 1 if had_parse_error is true.
11795 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
11797         * grolj4/lj4.cc (main): Avoid use of strtoul.
11799 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
11801         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
11802         iso_8859_1 or $LESSCHARSET is latin1.
11804 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
11806         * hpftodit: New directory.
11807         * Makefile.in (CCPROGDIRS): Add hpftodit.
11808         * devlj4/generate: New directory.
11810 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
11812         * configure.in: Don't use AC_VFORK.
11813         * groff/pipeline.c (run_pipeline): Use fork() always.
11815 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
11817         * grops/ps.cc (main): Use %1 not %s in error message for -w.
11819         * Makefile.in (CCPROGDIRS): Add grolj4.
11820         (DEVDIRS): Add devlj4.
11821         * grolj4, devlj4: New directories.
11822         * tmac/troffrc: Handle lj4.
11823         * tmac/tmac.lj4: New file.
11825 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
11827         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
11829 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
11831         * troff/input.cc (do_if_request): At end of second string, switch
11832         environments before getting next token.
11834 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
11836         * devps/psstrip.sed: Split rule that strips whitespace on either
11837         side of delimiters.
11839 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
11841         * troff/node.h (font_family::make_definition): Add return value to
11842         declaration.  * troff/symbol.h (symbol::operator==,
11843         symbol::operator!=): Likewise.
11845 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
11847         * groff/groff.cc (main, help, synopsis): Handle -S.
11848         (possible_command::insert_arg): New function.
11850         * tmac/tmac.safer: New file.
11851         * tmac/msafer.man: New file.
11852         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
11854 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
11856         * pic/pic.h, pic/main.cc (safer_flag): New variable.
11857         * pic/pic.y (placeless_element): Avoid unsafe operations if
11858         `safer_flag' is set.
11859         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
11861 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
11863         * eqn/lex.cc (get_token): Put call to add_context() in block to
11864         work around Sun C++ 4.0 bug.
11866         * include/stringclass.h (operator +): Use ?: instead of `if' to
11867         work around Sun C++ 4.0 bug.
11869 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
11871         * tbl/main.cc (process_format): Accept - as a synonym for the _
11872         key letter.
11874         * libbib/index.cc (minus_one): Don't declare as const.
11876 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
11878         * troff/input.cc (get_char_for_escape_name): Push back a newline.
11880 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
11882         * troff/input.cc (write_macro_request): New function.
11883         (init_input_requests): Bind write_macro_request to writem.
11885 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
11887         * tmac/tmac.s (@EN): Turn filling back on even if there was no
11888         equation.
11890         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
11892         * tmac/tmac.s (@TS): Renamed from TS.
11893         (TS): Call LP then TS again.
11894         (cov*ab-init): Alias @TS to TS.
11896         * tmac/tmac.s: Allow QP or RS to initialize.
11898         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
11899         Move initializations of PS and LL here.
11900         (par@init): Don't initialize HY.  Avoid changing environment 0.
11901         (par*env-init): Don't all par@reset.
11903 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
11905         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
11907 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
11909         * Makefile.in (MDEFINES): Add LDFLAGS.
11910         (LDFLAGS): Add definition line.
11912 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
11914         * troff/input.cc (get_optional_char): Split off error check into...
11915         (check_missing_character): New function.
11916         * troff/token.h: Declare it.
11917         * troff/env.cc (margin_character): Don't call get_optional_char.
11918         Only call tok.next() after making the node.
11920         * include/lib.h (getopt): Make 2nd argument char *const *.
11922 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
11924         * nroff/conftest.sh: Deleted.
11926 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
11928         * pic/make-dos-dist: Deleted.
11930 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
11932         * devps/psstrip.sed: Strip comments before stripping trailing
11933         white space.
11935 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
11937         * Version 1.09 released.
11939 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
11941         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
11943 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
11945         * libgroff/font.cc (font::load_desc): Fix typo in error message.
11947 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
11949         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
11950         about returning without a value.
11952         * troff/charinfo.h (charinfo::get_special_translation): Cast
11953         TRANSLATE_NONE to int.
11955         * refer/token.cc (lookup_token, store_token): Remove bogus loop
11956         test.  Fix test so that it works with n unsigned.
11958         * pic/pic.y (defaults_table): Fully bracket initializer.
11959         * pic/lex.cc (lookup_keyword): Likewise.
11960         * eqn/lex.cc (token_table, def_table): Likewise.
11961         * eqn/box.cc (param_table): Likewise.
11962         * troff/input.cc (warning_table): Likewise.
11963         * libgroff/font.cc (table): Likewise.
11964         * grops/ps.cc (ps_printer::special): Likewise.
11965         * grops/psrm.cc (resource_manager::process_file): Likewise.
11966         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
11967         * refer/command.cc (command_table): Likewise.
11968         * addftinfo/addftinfo.cc (param_table): Likewise.
11970         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
11971         about temp's being unused.
11972         (unused): New function.
11974         * groff/pipeline.cc: Declare c_fatal.
11976         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
11977         uchar.
11979         * libbib/index.cc (index_search_item::load): Prevent compiler
11980         warnings about fd_closer's being unused.
11981         (unused): New function.
11983 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
11985         * troff/input.cc (copy_mode_error): Make `prefix' static.
11986         Fix typo.
11988         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
11989         defined.
11990         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
11991         HAVE_CC_OSFCN_H and modify accordingly.
11993         * troff/input.cc (init_charset_table): radicalex overlaps
11994         horizontally.
11996         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
11997         udodo!hans@relay.NL.net).
11998         * groff/configure.in: Call it.
12000         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
12001         * groff/configure.in: Call it.
12002         * include/lib.h: Conditionalize declaration of pclose.
12004         * troff/div.cc (last_page_number): New global variable.
12005         (top_level_diversion::begin_page): Exit if we just printed the
12006         last page.
12007         * troff/div.h (last_page_number): Declare it.
12008         * troff/input.cc (parse_output_page_list): Set last_page_number.
12010         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
12011         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
12012         tmac/tmac.X: Likewise.
12013         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
12014         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
12016 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
12018         * tmac/doc-ditroff (hK): Remove groff specific code which
12019         prevented page-breaks between separate manual entries.  If this is
12020         the first page, don't set the page number to 1.
12022         * acgroff.m4 (GROFF_POSIX): New macro.
12023         * configure.in: Use it.
12025         * troff/node.cc (class real_output_file,
12026         real_output_file::real_output_file,
12027         real_output_file::~real_output_file): Conditionalize use of
12028         popen/pclose on POPEN_MISSING.
12029         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
12030         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
12031         (pipe_source): Similarily.
12033         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
12035         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
12036         presence of declarations by trying to compile example with
12037         conflicting declarations.  (gcc only gives a warning for missing
12038         declarations.)
12040 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
12042         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
12043         (from Ulrich Lauther).
12045 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
12047         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
12049 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
12051         * indxbib/indxbib.cc (write_hash_table): Add code for case where
12052         pointers and ints have different sizes.
12054 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
12056         * tmac/tmac.s (par*env-init): Call par@reset.
12058 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
12060         * tmac/tmac.s (@IP): Switch to a new environment when diverting
12061         tag.
12062         (par*push-tag-env, par*pop-tag-env): New macros.
12064 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
12066         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
12067         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
12069         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
12070         comment.  Include <time.h>.
12072 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
12074         * grops/ps.cc (is_small_h, is_small_v): Deleted.
12075         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
12076         lines.
12078 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
12080         * troff/input.cc (read_request): Only print a prompt if reading
12081         from the terminal.  Also clearerr on EOF if reading from the
12082         terminal.  Declare isatty.
12084 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
12086         * refer/label.y: Rename map_t to map_func and extractor_t to
12087         extractor_func.
12089 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
12091         * include/assert.h: Don't use volatile.
12092         * libgroff/assert.cc: Likewise.
12094 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
12096         * troff/input.cc (abort_request): Look at character in tok before
12097         calling get_copy().
12099 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
12101         * troff/troff.h (NO_RETURN): Deleted.
12102         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
12103         * troff/input.cc (exit_troff): Likewise
12105         * Makefile.in: Remove `Making ...' messages since GNU make now
12106         gives these. 
12108         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
12110 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
12112         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
12113         to constant 1 inch.
12115 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
12117         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
12119 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
12121         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
12122         MARK_REG if there was no left delimiter.
12124 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
12126         * pic/troff.cc (troff_output::text): Set line thickness to
12127         relative before outputting text.
12129         * tmac/tmac.e (@k): Don't zero ?T.
12130         ((z): Likewise.
12132 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
12134         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
12136 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
12138         * troff/input.cc (decode_args): Warn about unquoted tabs (from
12139         Paul Eggert).
12141 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
12143         * troff/input.cc (ignoring): New variable.
12144         (ignore): Set ignoring during call to do_define_macro.
12145         (do_define_macro): Clear ignoring before interpolating terminating
12146         macro.
12147         (copy_mode_error): New function.
12148         (get_char_for_escape_name, read_long_escape_name,
12149         interpolate_arg): Use copy_mode_error.
12150         (warning_table): Add WARN_IG.
12151         * troff/troff.h (WARN_IG): Declare.
12152         (WARN_TOTAL): Change accordingly.
12154         * groff/pipeline.c (strsignal): Rename to xstrsignal.
12155         * groff/groff.cc (strsignal): Delete declaration.
12157 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
12159         * troff/div.cc (page_offset): Use 'm' as default scaling.
12161 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
12163         * nroff/nroff.sh: Ignore -u.
12165 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
12167         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
12169 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
12171         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
12172         drawing box.
12173         (B2): With -Tascii, leave additional vertical space before
12174         and after. Ensure that the left and right indent is restored to
12175         what it was even if the point size changes.  Don't call
12176         par@finish. Change the indent, line length and title length
12177         directly.  With -Tascii, make the width of the box 1n less.
12178         (B1): Remember 1n at the current point size.  Don't call
12179         par@reset.  Change the indent, line length and title length
12180         directly.  Ensure that the temporary indent is preserved.
12181         (par*box-mark-top): Turn off no spacing mode.
12183 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
12185         * Makefile.in (dist): Use .gz suffix.
12187 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
12189         * troff/input.cc (main): Add return 0.
12190         * pic/main.cc (main): Use return instead of exit.
12191         * tbl/main.cc (main): Likewise.
12192         * eqn/main.cc (main): Likewise.
12193         * grops/ps.cc (main): Likewise.
12194         * grotty/tty.cc (main): Likewise.
12195         * groff/groff.cc (main): Likewise.
12196         * grodvi/dvi.cc (main): Likewise.
12197         * refer/refer.cc (main): Likewise.
12198         * indxbib/indxbib.cc (main): Likewise.
12199         * lkbib/lkbib.cc (main): Likewise.
12200         * soelim/soelim.cc (main): Likewise.
12201         * addftinfo/addftinfo.cc (main): Likewise.
12202         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
12203         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
12205         * troff/token.h (process_input_stack): Don't declare as static.
12206         * troff/input.cc: Likewise.
12208         * troff/node.c (invalidate_fontno): Make it a static member of
12209         class font_family.  Change callers.
12210         * troff/node.c: Change declaration.
12212         * tbl/main.cc (struct input_entry_format): Add explicit public
12213         specifier.
12214         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
12215         struct double_hline_stuff): Likewise.
12216         * tbl/table.h (struct entry_format): Likewise.
12217         * pic/object.h (struct saved_state): Likewise.
12219         * include/stringclass.h: Add forward declarations of friend
12220         functions that are later declared as inline.  Don't include inline
12221         specifier in friend declaration.
12223         * libgroff/lib.h: Declare popen and pclose.
12224         * acgroff.m4 (GROFF_POPEN): New macro.
12225         * configure.in: Call it.
12227         * include/lib.h (PI): New constant. Undef first if necessary.
12228         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
12229         * grops/ps.cc (degrees, radians): Likewise.
12230         * libgroff/font.cc (font::get_skew): Likewise.
12232         * grops/ps.cc (is_ascii): New function.
12233         (ps_output::put_string): Use is_ascii.  Use csprint rather than
12234         isprint.
12235         (ps_printer::define_encoding): Use csspace.
12236         * libgroff/strtol.c (ISASCII): New macro.
12237         (strtol): Cast arguments to is*() and tolower() to unsigned char.
12238         Use ISASCII rather than isascii.
12239         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
12240         * libgroff/cset.cc: Likewise.
12241         * libdriver/input.cc: Include cset.h.
12242         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
12243         than isdigit().
12245         * refer/refer.cc (main): Use %ld rather than %d for longs.
12247         * libbib/index.cc (index_search_item_iterator::get_tag): Use
12248         S_ISREG macro.
12250         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
12252 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
12254         * troff/input.cc (hyphenation_code): Skip white space between
12255         char/code pairs.
12257 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
12259         * tbl/table.h (table::entry_list_tailp): New member.
12260         (table::table): Initialize it.
12261         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
12262         behaviour.
12264 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
12266         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
12267         with negative horizontal positions. Remove casts of glyph::hpos to
12268         int.
12269         (USHRT_MAX): Delete definition.
12270         (SHRT_MAX, SHRT_MIN): New definitions.
12271         (glyph::hpos): Change type to short.
12272         (tty_printer::end_page): Output multiple backspaces if necessary.
12273          Remove casts of glyph::hpos to int.
12274         
12275 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
12277         * tmac/tmac.s (@RT): New definition.
12279 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
12281         * refer/refer.cc (do_file): Make sure current_filename is set when
12282         filename is "-".
12284         * pic/common.cc (common_output::dot_line): Handle zero length
12285         lines.
12287 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
12289         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
12290         (par@init): Initialize \n[HY].
12292 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
12294         * troff/dictionary.cc (dictionary::remove): Continue when
12295         r < j < i.
12297 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
12299         * Makefile.com (.y.cc): Avoid ending up with two versions of
12300         $(YTABH).
12302 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
12304         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
12305         (\(,C): Likewise.  Also fix typo.
12307 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
12309         * lib.h: Delete extraneous semi-colon.
12311         * Add pso request: `so' from a pipe.
12312         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
12313         (file_iterator::close): New function.
12314         (file_iterator::~file_iterator, file_iterator::next_file): Use
12315         file_iterator::close.
12316         (file_iterator::backtrace): Say `process' rather than `file' when
12317         the stream is popened.
12318         (pipe_source): New function.
12319         (init_input_requests): Bind ".pso" to pipe_source.
12321 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
12323         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
12325         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
12326         digits in lower case.
12328 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
12330         * Version 1.08 released.
12332         * Makefile.in (dist): Insert || true after ln -s commands that
12333         might fail.
12335         * mm: Update to mm 1.16.
12337         * acgroff.m4 (GROFF_CSH_HACK): New macro.
12338         * configure.in: Call GROFF_CSH_HACK.  Substitute for
12339         SH_SCRIPT_SED_CMD.
12340         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
12341         MDEFINES.
12342         * nroff/Makefile.sub (nroff): New target.
12343         (install_data): Install nroff.
12344         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
12345         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
12347 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
12349         * eqn/Makefile.sub (neqn): Add chmod +x.
12351         * grog/Makefile.sub (grog): Remove spurious semi-colon.
12353 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
12355         * troff/input.cc (string_iterator::string_iterator()): Initialize
12356         lineno and count.
12358 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
12360         * troff/div.cc (macro_diversion::space,
12361         top_level_diversion::space): Don't set high_water_mark.
12362         (macro_diversion::output, top_level_diversion::output): Don't
12363         include post line space in high water mark.
12365 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
12367         * eqn/eqn.y: Don't define YYDEBUG.
12368         * pic/pic.y: Likewise.
12370 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
12372         * tmac/tmac.e ([3): Add space after comma following editors.
12373         Change double spaces to single spaces.
12374         ([4): Change double spaces to single spaces.
12376         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
12377         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
12378         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
12379         after %!PS-Adobe- (for Newsprint).
12381         * troff/div.cc (top_level_diversion::begin_page): When
12382         before_first_page is 1, set page_number to 1.
12384 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
12386         * eqn/box.cc (box::top_level): Protect equation with \&.
12388 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
12390         * groff/groff.cc (possible_command::set_name): Delete old name.
12392         * groff/groff.cc (possible_command::~possible_command): Use
12393         a_delete.
12395         * troff/node.cc (troff_output_file::begun_page): New member.
12396         (troff_output_file::troff_output_file): Initialize it.
12397         (troff_output_file::really_begin_page): Only output V command if a
12398         page has been begun.
12400         * pic/pic.y (placeless_element): Delete argument to PRINT after
12401         use.
12403 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
12405         * Make wrapman work.
12406         * troff/div.h (class top_level_diversion): Replace
12407         first_page_begun by before_first_page (with opposite sense).
12408         * Change first_page_begun to before_first_page inverting sense.
12409         * troff/div.cc (class nl_reg): New class.
12410         (init_div_requests): Use class nl_reg for \n(nl.
12411         (top_level_diversion::begin_page): Don't call
12412         output_file::begin_page if before_first_page is 2;
12413         reset before_first_page afterwards.  If have_next_page_number is
12414         false, then always increment page_number.
12415         * tmac/tmac.an: Set traps within TH rather than at the top-level.
12416         Restore compatibility mode after loading, and then disable
12417         compatibility mode in TH.
12419 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
12421         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
12422         past last line.
12423         * troff/node.h (output_file::trailer): Declare.
12424         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
12425         * troff/node.cc (output_file::trailer): New function.
12426         (troff_output_file::~troff_output_file): Move most code into...
12427         (troff_output_file::trailer): New function.
12428         (class troff_output_file): Delete page_length member. Declare
12429         trailer().
12430         (troff_output_file::really_begin_page): Use current page length
12431         for final V command.
12433         * tbl/main.cc (struct options): New decimal_point_char member.
12434         (options::options): Initialize this.
12435         (process_options): Implement decimalpoint option.
12436         (process_data): Pass decimal_point_char option to table::table.
12437         * tbl/table.h (class table): New decimal_point_char member.
12438         (table::table): Add additional argument.
12439         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
12440         second argument specifying decimal point character.  Use this
12441         instead of '.'.
12442         (table::table): Initialize decimal_point_char.
12443         (table::add_entry): Change call to find_dot.
12445         * troff/input.cc (get_copy, token::next): Implement \V.
12446         (interpolate_environment_variable): New function.
12448 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
12450         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
12451         * pic/pic.y: Likewise.
12453         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
12454         Add casts to int.
12455         * refer/ref.cc (reference::insert_field, reference::delete_field):
12456         Likewise.
12457         * troff/number.cc (parse_term): Likewise.
12459         * acgroff.m4 (GROFF_PROG_YACC): New macro.
12460         * configure.in: Use GROFF_PROG_YACC.
12462         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
12463         and g++.
12464         * Makefile.in (OPTIMIZE): New define.
12465         (DEBUG): Empty by default.
12466         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
12468         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
12469         (GROFF_ARRAY_DELETE): Likewise.
12470         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
12472         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
12474         * devps/psstrip.sed: Use different delimiter on last line (so that
12475         it works with BSD 4.4 sed.)
12477 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
12479         * devps/psstrip.sed: Delete comments.
12481         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
12482         optind, opterr, optarg.
12483         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
12484         opterr, optarg.
12486 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
12488         * Makefile.in (check): Dummy target.
12490 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
12492         * Version 1.07 released.
12494         * Integrate mm 1.11.
12496         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
12497         where start_col was meant.
12499 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
12501         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
12503 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
12505         * troff/input.cc (token::next): Make \z\o'...' and similar things
12506         work.
12508         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
12509         constants.
12510         (environment): Add margin_character_flags member.
12511         * env.cc (environment::environment(symbol),
12512         environment::environment(const environment *): Initialize
12513         margin_character_flags.
12514         (margin_character): Rewrite.
12515         (environment::output_line): Add a margin character if
12516         margin_character_flags is non-zero.  Turn off the
12517         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
12518         zero, use margin_character_node without copying and then set
12519         margin_character_node to 0.
12521         * devps/DESC.in: Change minimum size to 1000.
12523 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
12525         * troff/symbol.h (symbol::hash): Change return type to unsigned
12526         long.
12527         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
12528         Add casts to int.
12530         * test-groff: Use -r rather than -x.
12532         * grops/psfig.diff: Include in distribution again.
12534 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
12536         * Makefile.in (dist): Use gzip.
12538 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
12540         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
12541         unistd.h as well as in stdlib.h.
12542         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
12543         defined; otherwise include <sys/types.h> and <unistd.h> if
12544         UNISTD_H_DECLARES_GETOPT is defined.
12546         * configure.in: use builtin(include, ... rather than include(...
12547         * configure: Regenerate with autoconf 1.3.
12549         * libdriver/print.cc (printer::adjust_arc_center): Use new
12550         algorithm suggested by Andy Fyfe.
12552         * libdriver/printer.cc (printer::adjust_arc_center): New function.
12553         * include/printer.h: Declare this.
12554         * grops/ps.cc (ps_printer::draw): Use it.
12555         * grodvi/dvi.cc (dvi_printer::draw): Use it.
12557 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
12559         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
12561 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
12563         * eqn/main.cc (main): Handle "eqn -".
12565 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
12567         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
12569         * mm: Integrate version 1.08.
12571         * pic/troff.cc (troff_output::finish_picture): Set
12572         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
12573         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
12574         if it's not defined. Check whether the register is non-zero rather
12575         than whether it's not defined.
12576         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
12578         * indxbib/indxbib.cc: Move all signal handling into...
12579         * indxbib/signal.c: New file.
12580         * configure.in: Call AC_RETSIGTYPE.
12582         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
12583         * configure.in: Call GROFF_STRUCT_EXCEPTION.
12584         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
12586         * troff/input.cc (token::token, token::operator=): Work round SGI
12587         C++ bug.
12588         * pic/object.cc (position::position): Likewise.
12590 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
12592         * pic/pic.h: Move declaration of hypot().
12594 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
12596         * pic/pic.h: Declare hypot().
12598         * pic/pic.h: Define M_PI if necessary.
12600 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
12602         * tmac/tmac.e (re): Add alternative version that doesn't use groff
12603         `.ta T' feature.
12605         * devps/prologue.ps (RE): Handle the possibility that the old font
12606         doesn't have a FontName entry.
12608 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
12610         * tmac/tmac.e (fam): Redefine to set family in environment 2.
12611         (@C): Use @fam not fam.
12613 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
12615         * lookbib/lookbib.cc (main): Change type of start to const char *.
12616         * lkbib/lkbib.cc (main): Likewise.
12618         * eqn/lex.cc (definition::definition): Don't use member
12619         initializer syntax for members of anonymous unions.
12621         * troff/input.cc (input_stack::backtrace): Change type of to const
12622         char *.
12624 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
12626         * include/stringclass.h (class string): Declare inline friend
12627         functions as inline in class declaration.
12628         * troff/hvunits.h (class hunits, class vunits): Likewise.
12629         * include/refid.h (class reference_id): Likewise
12630         * troff/troff.h (points_to_units(units), scale(units, double)):
12631         Delete declarations.
12632         * libdriver/input.cc (get_char): Delete declaration.
12633         * include/lib.h: Change 2nd argument of getopt from const char **
12634         to char **.
12635         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
12636         char **' before assigning to a `const char **'.
12637         * tbl/table.cc: Delete extra declarations of prints().
12639 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
12641         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
12642         char **' before assigning to a `const char **'.
12644         * libgroff/errarg.cc (errarg::errarg): Don't use member
12645         initializer syntax for members of anonymous unions.
12647 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
12649         * mm: Integrate version 1.07.
12651 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
12653         * troff/input.c (translate2): Rename to
12654         (translate_no_transparent).
12655         (init_input_requests): Rename tr2 to trnt.
12657 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
12659         * troff/charinfo.h (class charinfo): Add transparent_translate field.
12660         (charinfo::set_translation, charinfo::set_special_translation):
12661         Add second argument that specifies value for
12662         transparent_translate.
12663         (charinfo::get_translation, charinfo::get_special_translation):
12664         Add optional second argument that specifies whether translation is
12665         being used for transparent throughput.
12666         * troff/input.cc (charinfo::set_translation,
12667         charinfo::set_special_translation): Handle second argument.
12668         (charinfo::charinfo): Initialize transparent_translate.
12669         (translate): Split main part off into
12670         (do_translate): New function.  Pass argument saying whether
12671         translation applies to transparent throughput.
12672         (translate2): New request.
12673         (init_input_requests): Bind translate2 to `tr2'.
12675 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
12677         * tbl/table.h (class table): Add `nokeep' flag.
12678         * tbl/main.cc (process_options): Handle `nokeep' option.
12679         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
12680         table::do_bottom): Don't output keep/release macro definitions or
12681         calls when `nokeep' option has been specified.
12683 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
12685         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
12687 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
12689         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
12690         block_entry::divert, alphabetic_block_entry::divert): Add extra
12691         argument giving column separation.
12692         (table::compute_widths): Pass column separation to
12693         table_entry::divert().
12694         (block_entry::do_divert): If an entry spans multiple columns and a
12695         minimumum width has been specified for each column, then set the
12696         line length to the sum of the widths (plus possibly the column
12697         separations).
12699         * troff/input.cc (set_escape_char): Don't set the escape_char
12700         until after calling has_arg().
12702 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
12704         * tbl/table.cc (table::do_top): Add missing \s0 for double box
12705         case.
12707         * tbl/table.cc (table::print_double_hline): Avoid extra new line
12708         in case where r > nrows - 1.
12710         * tbl/table.cc (BODY_HEIGHT): Deleted.
12711         (LINE_SEP): New definition.
12712         (table::print_single_hline, table::print_double_hline,
12713         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
12714         table::do_row, table::do_top): Use LINE_SEP space before a line
12715         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
12717         * tbl/table.cc (text_entry::print_contents): New function.
12718         (text_string_name, right_text_string_name): Deleted.
12719         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
12720         (simple_text_entry::do_width, numeric_text_entry::do_width,
12721         alphabetic_text_entry::do_width): Don't store the contents of the
12722         entry in a string.
12723         (left_text_entry::simple_print, right_text_entry::simple_print,
12724         center_text_entry::simple_print,
12725         alphabetic_text_entry::simple_print,
12726         numeric_text_entry::simple_print): Print the entry directly
12727         instead of using the stored string.
12729 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
12731         * devps/Makefile: Strip PostScript files.
12732         * devps/prologue: Rename to...
12733         * devps/prologue.ps.
12734         * devps/psstrip.sed: New file.
12735         * devps/download: Use .pfa rather than .ps for installed versions
12736         of fonts.
12738 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
12740         * troff/env.cc (input_trap): Give a warning if the argument is out
12741         of range.
12743         * troff/env.cc (adjust): Treat negative argument as missing. Round
12744         argument > 5 down to 5.
12746         * troff/env.cc (center, right_justify): Make negative argument zero.
12748         * troff/div.cc (page_offset, vertical_position_traps): Treat
12749         invalid argument as missing.
12750         * troff/env.cc (line_spacing, line_length, title_length, indent,
12751         underline, hyphen_line_max_request, control_char,
12752         no_break_control_char, widow_control_request, adjust, input_trap,
12753         point_size): Likewise.
12754         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
12755         constant_space): Likewise.
12756         * troff/input.cc (compatible, shift, warn_request,
12757         set_escape_char): Likewise.
12759         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
12760         * tbl/table.cc (table::table): Likewise.
12762         * Makefile.dev (install_dev): depends on $(DEVFILES).
12764 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
12766         * devX75, devX75-12, devX100, devX100-12: New directories.
12767         * Makefile.in: Add these to DEVDIRS.
12769         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
12770         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
12771         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
12772         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
12773         targets.
12774         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
12775         (uninstall): New target.
12776         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
12777         uninstall_prog, uninstall_dev): New targets.
12779         * troff/div.cc (return_request): Treat an invalid argument as
12780         missing.
12782 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
12784         * tmac/tmac.e ((f): Set up the environment even when there's a
12785         current diversion.  Transperently throughput a call to @N.
12786         (@N): New macro.
12788 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
12790         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
12791         up to vertical resolution.
12793         * tbl/table.cc (table::do_row): Change row number after printing
12794         stuff list.
12796         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
12798 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
12800         * Rename CHANGES to NEWS.
12802 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
12804         * libgroff/new.cc (operator new): Avoid calling malloc(0).
12806 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
12808         * man.ultrix: Removed.
12810 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
12812         * Makefile.comm (extraclean): Delete files whose names begin with
12813         `='.
12815         * pic/troff.cc (troff_output::text): Fix typo in implementation of
12816         aligned text.
12818 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
12820         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
12821         * troff/div.cc (page_length, need_space, space_request): Treat
12822         invalid optional argument as missing.
12823         * troff/env.cc (number_lines): If the first argument is present
12824         but not a number, turn on line numbering, don't change the next
12825         line number and parse the remaining arguments.
12827         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
12829 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
12831         * eqn/box.h: Change declaration accordingly.
12832         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
12833         the specified size was bad but don't give an error.  Check for
12834         overflow.
12835         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
12836         * eqn/lex (do_size): Likewise.
12838 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
12840         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
12841         compatible headers.
12843 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
12845         * tbl/table.cc (table::init_output): Improve error message when
12846         table won't fit on one page.
12848 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
12850         * pic/troff.cc (troff_output::start_picture): Generate line
12851         containing a horizontal motion equal to the width of the picture.
12853         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
12854         using GROFF_COMMAND_PREFIX environment variable.
12856 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
12858         * mdate.sh: Use $NF rather than $(NF).
12860 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
12862         * pic/main.cc (main):  Use %1 not %c in argument to warning.
12864         * eqn/main.cc (main): Output code to check that geqn was given the
12865         correct -T option.
12867 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
12869         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
12870         `ln -s ../Makefile .; make; rm -f Makefile'.
12872         * troff/hyphen: Rename to...
12873         * troff/hyphen.us:
12874         * troff/input.cc (main): Delete -H option. Don't call
12875         read_hyphen_file().
12876         * troff/env.cc: Include searchpath.h and macropath.h.
12877         (exception_dictionary): Deleted.
12878         (ht): Deleted.
12879         (read_hyphen_file): Deleted.
12880         (hyphenation_language): New struct.
12881         (class trie, class hyphen_trie): Move declarations up.
12882         (trie_node::~trie_node): Deleted.
12883         (trie::delete_trie_node): New function.
12884         (trie::do_delete): New pure virtual function.
12885         (hyphen_trie::do_delete): New function.
12886         (trie::~trie): New function.
12887         (hyphen_trie::~hyphen_trie): New function.
12888         (trie::clear): No need to chcek that tp is not 0.
12889         (current_language, language_dictionary): New variables.
12890         (hyphen_word): Give an error if no current language.  Use
12891         exceptions dictionary in current language.
12892         (hyphen_trie::read_patterns_file): Find file using macro_path.
12893         Allow comments (starting with %) in patterns file.  Don't make it
12894         a fatal error if the file can't be found.
12895         (hyphenate): Return if no current language.  Get the exceptions
12896         dictionary and the hyphenation patterns from the current language.
12897         (set_hyphenation_language): New variable.
12898         (hyphenation_patterns_file): New function.
12899         (hyphenation_language_reg): New class.
12900         (hyphenation_language_reg::get_string): New function.
12901         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
12902         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
12903         register.
12904         * groff/groff.cc (main, help, synopsis): Delete -H option.
12905         * include/Makefile.sub: Don't define HYPHENFILE.
12906         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
12907         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
12908         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
12909         hyphenation patterns.
12911 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
12913         * eqn/neqn.sh: New file.
12914         * eqn/Makefile.sub: Handle neqn.sh.
12916         * eqn/eqn.h: Declare `nroff' variable.
12917         * eqn/box.cc (param_table): Add `nroff' param.
12918         (nroff): Define it.
12919         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
12920         variable.
12921         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
12923         * troff/troff.h (WARN_FONT): New warning.
12924         (WARN_TOTAL): Change accordingly.
12925         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
12926         (warning_table): Add WARN_FONT.
12927         * troff/node.cc (mount_font_no_translate): Pass argument to
12928         font::load_font.  If this is non-zero, give a warning.
12929         Don't give an error message when accessing a font that has already
12930         been found to be invalid.
12931         * include/font.h (font::load, font::load_font): Add additional
12932         optional argument which suppresses error message if the font is
12933         not found.
12934         * libgroff/font.cc (font::load_font): Handle additional argument.
12935         (font::load): Add additional argument. If this is non-null, set it
12936         to 1 and don't give error message.
12938         * include/printer.h (printer::end_page): Add argument giving
12939         length of page.
12940         * libdriver/input.cc (do_file): Pass this.
12941         * grops/ps.cc (ps_printer::end_page): Add argument.
12942         * grodvi/dvi.cc (dvi_printer::end_page,
12943         draw_dvi_printer::end_page): Add argument.
12944         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
12945         columns_per_page members. New member nlines.
12946         (DEFAULT_LINES_PER_PAGE): Deleted.
12947         (tty_printer::tty_printer): Don't compute lines_per_page from
12948         font::paperlength. Don't compute columns_per_page from
12949         font::paperwidth.
12950         (tty_printer::add_char): Don't check horizontal position against
12951         columns_per_page. Grow glyphs vector if neccessary.
12952         (tty_printer::end_page): Add argument giving page_length in units.
12953         Discard lines past end of page.
12955 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
12957         * tmac/tmac.tty-char: Fix definition of \(/l.
12959         * tmac/tmac.X: Define \(en.
12961 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
12963         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
12964         lpq, then use lp rather than lpr.
12966         * tmac/tmac.s (par@reset): Don't call `ad'.
12967         (par*env-init): Call `ad'.
12969 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
12971         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
12972         date.
12974         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
12975         * indxbib/indxbib.cc: Likewise.
12977 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
12979         * libgroff/putenv.c: New file.
12980         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
12981         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
12982         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
12983         stdlib.h with AC_HAVE_HEADERS.
12985 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
12987         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
12988         does not exist.
12990 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
12992         * eqn/box.cc (gsize): Make it an int.
12993         (set_gsize): Parse argument handling increment or decrement.
12994         (box::top_level): Convert gsize to a string.
12996         * troff/input.cc (exit_troff): Make buf unsigned char [].
12997         Call to make_temp_iterator casts buf to char*.
12999         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
13001         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
13002         * Makefile.cpg (depend.temp): Likewise.
13004         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
13006         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
13008 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
13010         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
13012 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
13014         * Version 1.06 released.
13016         * Integrate mm 1.04.
13018 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
13020         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
13022 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
13024         * afmtodit/afmtodit.pl: Add -n option that disables generation of
13025         ligatures command.
13026         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
13027         afmtodit. Regenerate.
13029         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
13030         @f back past the current position.
13032         * tmac/tmac.e: Change calls to @R so that comments are not part of
13033         arguments.
13035 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
13037         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
13039         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
13040         check that we can link a call to a function declared in <stdio.h>.
13041         (GROFF_UNISTD_H): New macro.
13042         * configure.in: Call it.
13043         * Makefile.in: Document it.
13044         * include/posix.h: New file.
13045         * troff/troff.h: Don't include <osfcn.h>
13046         * troff/input.cc: Include posix.h.
13047         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
13048         osfcn.h.
13049         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
13050         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
13051         <fcntl.h>.
13052         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
13053         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
13054         * libbib/search.cc (O_RDONLY): Delete definition.
13055         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
13056         Don't include <osfcn.h>.
13058         * acgroff.m4 (GROFF_TIME_T): New macro.
13059         * configure.in: Call it.
13060         * Makefile.in: Document it.
13062         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
13063         * configure.in: Call it.
13064         * Makefile.in: Document -DTRADITIONAL_CPP.
13065         * include/ptable.h: Don't include generic.h.
13066         (name2): Define it.
13068         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
13069         Afterwards remove [T1 and [T2.
13070         (ref*spec!0, ref*spec!2): Use T1 rather than T.
13071         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
13072         (ref*add-T2): Renamed from ref*add-T.
13073         (ref*add-T1): New macro.
13075 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
13077         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
13079         * libbib/index.cc: Include <fcntl.h>.
13080         (O_RDONLY): Define if necessary.
13081         (make_index_search_item, index_search_item_iterator::get_tag,
13082         index_search_item::check_files): Use O_RDONLY.
13083         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
13084         (O_RDONLY): Define if necessary.
13085         (search_list::add_file): Use O_RDONLY.
13086         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
13087         <sys/stat.h>.
13088         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
13089         (main): Use these.
13091         * libbib/index.cc (S_ISREG): Define it if necessary.
13092         (index_search_item::load): Use S_ISREG.
13094         * include/driver.h: Include <errno.h>.
13096 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
13098         * eqn/box.cc (body_height): Increase default value to 85.
13099         (body_depth): Increase default value to 35.
13101 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
13103         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
13104         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
13105         protected from expansion with \E.
13107         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
13109         * Makefile (Makefile): New target.
13111         * Makefile.sub (configure, distfiles): New targets.
13113         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
13114         construct.
13116 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
13118         * eqn/box.cc (param_table): Add body_height and body_depth.
13120         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
13122 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
13124         * psbb/Makefile.sub: Don't link with libgroff.a.
13126         * acgroff.m4 (GROFF_PUTENV): New macro.
13127         * configure.in: Call GROFF_PUTENV.
13128         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
13129         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
13130         is defined.
13132         * troff/env.cc (distribute_space): Rename force_forward argument
13133         to force_reverse.  Reverse the list if force_reverse is true.
13135 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
13137         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
13139         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
13140         height or depth to be negative.  Guard against SUP_RAISE quantity
13141         being negative.
13143 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
13145         * devps/generate/textmap: Add `an' (arrowhorizex).
13146         * tmac/tmac.ps: \(an overlaps horizontally.
13147         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
13149         * devps/symbolchars: Add arrowverttp, arrowvertbt.
13150         * devps/textmap: Add arrowvertex.
13151         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
13152         updownarrow delimiters.
13153         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
13155         * tbl/table.cc (simple_entry::position_vertically,
13156         block_entry::position_vertically):  For a centered entry, perform
13157         the motion in two stages.
13159         * refer/refer.cc (split_punct): Don't call lookup_token if there
13160         is no token.
13162 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
13164         * troff/input.cc (token::next): Delete token_node after copying
13165         token.
13167         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
13168         cur_point_size.
13170         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
13172         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
13174 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
13176         * grops/ps.cc (usage): -b option takes an argument.
13178         * devps/prologue (PLG): New procedure.
13179         * grops/ps.cc (main, usage): New -g option.
13180         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
13181         length using PLG.
13183 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
13185         * include/cset.h: Include <limits.h> if we have it.
13187         * libgroff/illegal.cc: New file.
13188         * include/lib.h (illegal_input_char): Use table.
13189         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
13190         * pic/lex.cc (ARG1): Renumber to 14.
13191         * eqn/lex.cc (ARG1): Likewise.
13193         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
13194         (eg 1.05.90) correctly.
13196 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
13198         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
13199         Rename $r and $R registers to $v and $V.
13200         ($r, $R): Initialize to 0.
13201         (@v, @V): New macros.
13202         (sz): Call @v.
13203         (@M): Call @V.
13205         * troff/input.cc (main, usage): Add -R option that says not to
13206         load troffrc.
13207         * eqn/main.cc (main, usage): Rename -n to -R.
13209 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
13211         * devps/DESC.in: Leave font positions 5-9 blank.
13212         * devdvi/DESC.in: Likewise.
13214         * grog/grog.pl: Handle `.PS <file' correctly.
13216         * troff/input.cc (input_stack::push): Improve error message when
13217         input stack limit exceeded.
13219 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
13221         * refer/refer.cc (main): Fix typo in handling of `a' option.
13223         * refer/refer.cc (do_bib): In state START after a newline remain
13224         in state START.
13226         * groff/groff.sh: Deleted.
13227         * groff/Makefile.sub: Delete handling of groff.sh.
13229         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
13230         to determine whether to use \X'ps:...'.
13231         * tmac/troffrc: Set 0p register to 0.
13232         * tmac/tmac.ps: Set 0p register to 1.
13234         * groff/groff.cc: Support -X option. Give warning for -TXps and
13235         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
13236         * tmac/troffrc: Support -r.X=1.
13238         * pic/troff.cc (troff_output::dot): Don't test
13239         zero_length_line_flag.
13241 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
13243         * include/lib.h: Declare getopt() and friends unless
13244         STDLIB_H_DECLARES_GETOPT is defined.
13246         * doc/chars.tr: Delete.
13247         * man/groff_char.man: New file.
13249 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
13251         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
13252         user has changed register format.
13254 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
13256         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
13257         `postpro' command in DESC file.  Get spooler command from `print'
13258         command in DESC file.  Execute spooler command with /bin/sh.
13260         * groff/groff.cc: Split Unix-specific parts into...
13261         * groff/pipeline.c: New file.
13263         * LICENSE: Delete.
13264         * COPYING: New file.
13265         * all files: Update copyright notices.
13267         * Rearrange files.  Redo Makefiles.  Use autoconf.
13269 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
13271         * troff/input.c (charinfo_to_node_list): Interpret character
13272         definition with escape_char of `\'.
13274 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
13276         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
13277         Define INT_DIGITS as big enough for 64-bit integer.
13278         * lib/strtol.c: Don't include lib.h.
13279         * lib/lib.h: Delete ifdef __cplusplus stuff.
13281 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
13283         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
13284         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
13285         get DESC from current directory.
13287 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
13289         * tbl/main.c (main): Always reset the line number when reading
13290         from stdin.
13292         * tbl/table.c (table::print_single_hline, table::print_double_hline,
13293         table::define_bottom_macro, table::do_row, table::do_top): Round
13294         vertical spacing up to vertical resolution.
13296 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
13298         * ps/ps.h (enum resource_type): Avoid comma at end of
13299         enumerator-list.
13300         * dvi/dvi.c (class dvi_printer): Likewise.
13301         * dvi/tfmtodit.c (gf::load): Likewise.
13302         * refer/label.y (struct expression): Likewise.
13303         * refer/refer.c (class label_processing_state): Likewise.
13304         * refer/indxbib.c (do_file): Likewise.
13305         * troff/troff.c (enum warning_type): Likewise.
13306         * tbl/main.c (process_data): Likewise.
13307         * troff/charinfo.h (class charinfo):
13309 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
13311         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
13313 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
13315         * groff.c: Move to new groff subdirectory.
13316         * groff/Makefile: New file.
13317         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
13319         * man/mdate.sh: Use ls -L if supported.
13321         * Consolidate all header files produced by gendef into lib/defs.h.
13322         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
13323         Don't include path.h.
13324         * lib/Makefile (path.h): Don't generate.
13325         * troff/input.c: Include defs.h. Don't include config.h.
13326         * troff/Makefile (config.h): Don't generate.
13327         * refer/index.h: Don't include suffix.h.
13328         * refer/index.c: Include defs.h.
13329         * refer/indxbib.c: Include defs.h.
13330         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
13331         defs.h.
13332         * refer/Makefile (suffix.h, path.h): Don't generate.
13333         * groff.c: Don't include config.h. Include defs.h.
13334         * Makefile (config.h): Don't generate.
13335         (lib/defs.h): Generate.
13336         (topclean): Remove lib/defs.h.
13338 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
13340         * lib/malloc.c, lib/getpagesize.h: Deleted.
13341         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
13342         related stuff.
13343         * lib/Makefile: Delete malloc-related stuff.
13344         * lib/new.c: Workaround COOKIE_BUG if necessary.
13346         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
13347         needed header files directly.
13348         * refer/refer.h: Omit definition of DEFAULT_INDEX.
13349         * Makefile: Include definition of DEFAULT_INDEX in path.h.
13351 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
13353         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
13354         argument.
13355         * lib/font (font::load_desc, font::load): Don't split argument of
13356         unknown command.
13357         (font::handle_unknown_font_command): Change type.
13358         * ps/ps.c (ps_font::handle_unknown_font_command,
13359         handle_unknown_desc_command): Change type.
13360         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
13362 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
13364         * lib/font.h (font::handle_unknown_font_command): Add file and
13365         line arguments.
13366         * lib/font.c (font::handle_unknown_font_command):
13367         * ps/ps.c (ps_font::handle_unknown_font_command):
13368         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
13369         lineno arguments.  Use _with_file_and_line functions for error
13370         reporting.
13372         * lib/fontfile.c (font::unknown_desc_command_handler): New static
13373         data member.
13374         * lib/font.c (font::set_unknown_desc_command_handler): New
13375         function.
13376         (font::load_desc): For unknown commands, call
13377         unknown_desc_command_handler if not null.
13378         * lib/font.h (class font): Declare them.
13379         (FONT_COMMAND_HANDLER): New typedef.
13380         * ps/ps.c (handle_unknown_desc_command): New function.
13381         (main): Set bflag if we had a -b option. Call
13382         font::set_unknown_desc_command_handler.
13383         (broken.h): Don't include.
13384         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
13385         submake 
13386         * ps/devps/Makefile: Add `broken' command to DESC file using
13387         BROKEN_SPOOLER_FLAGS.
13389         * macros/tmac.e ([, ]): Add as synonyms for { and }.
13391         * macros/tmac.e ($p): Only exdent if \$3 > 0.
13393         * macros/tmac.e (@R, @S): New macros.
13394         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
13395         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
13396         Declare $H, $[0-9], .. macros with @S.
13397         Declare |0, |1, |2, |3 strings with @S.
13399         * macros/tmac.e (@S): Rename to @U.
13401         * macros/tmac.e (@z): Define @b and bp as empty instead of
13402         deleting them,
13404         * macros/tmac.e (@m): Deleted.
13405         (@h): Don't call @m.
13406         (@z): Don't set @m trap.
13408         * macros/tmac.e ($h, $f): Define |z as empty string.
13410         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
13411         (@q): Likewise.
13413         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
13414         removing them.
13415         ()f): Likewise for * register.
13417         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
13418         argument is missing, don't change $R.  Call sr with three
13419         arguments when initializing.
13421 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
13423         * macros/tmac.e (sr): New macro.
13424         Initialize $r and $R using sr.
13426         * macros/tmac.e (,): Delete \*(#[.
13428         * troff/env.c (set_tabs): Read the tab type even if the position
13429         is bad.  Allow the position of the first tab stop to be negative.
13431 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
13433         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
13434         _POSIX_VERSION.
13435         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
13436         rather than -DPATHCONF_MISSING.
13437         * Makefile: Get rid of PATHCONF_MISSING.
13439         * refer/map.c: New file.
13440         * refer/index.c: Interface to mmap through map.c.  Rename map_size
13441         to map_len.
13442         * refer/Makefile: Handle map.c.
13443         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
13445 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
13447         * Makefile: RANLIB should be `true' if there is no ranlib.
13448         * lib/Makefile (libgroff.a): Simplify.
13449         * driver/Makefile (libdriver.a): Simplify.
13451         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
13452         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
13453         defined.
13455 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
13457         * troff/env.c (compare_ranges): Declare as extern "C".
13459         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
13461         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
13463 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
13465         * pic/troff.c (troff_output::text): Merge in grops_output::text,
13466         but conditionalize use of \X based on \*(.T.
13467         (grops_output::*): Deleted.
13468         * pic/output.h: Delete declaration of make_grops_output.
13469         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
13470         by default. -n sets it to 0.
13471         (usage): Corresponding changes.
13472         * groff.c (main): Don't pass -x or -p to pic.
13473         * groff.sh: Likewise.
13475         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
13476         to be non-zero.
13478         * ps/devps/afmtodit: Change calculation of asc_boundary and
13479         desc_boundary.  Make these bounds inclusive.
13480         * ps/devps: Regenerate font files.
13482 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
13484         * macros/tmac.latin1: New file.
13485         * macros/tmac.tty-char: Use tmac.latin1.
13486         (tmac.tty-tr): Deleted.
13487         * macros/Makefile: Install tmac.latin1.
13488         * macros/tmac.dvi: Use tmac.latin1.
13489         * macros/troffrc: Translate \[char160] onto no-break space here.
13490         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
13492 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
13494         * macros/tmac.Xps: Use `do' request.
13496         * macros/tmac.ps: Use `do' request.
13498         * macros/tmac.e (@C): Use `do' request.
13500         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
13501         * macros/Makefile: Install tmac.X*.
13503         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
13504         * tty/Makefile: Don't install tmac.tty*.
13505         * macros/Makefile: Install tmac.tty*.
13507         * dvi/tmac.dvi: Move to macros.
13508         * dvi/Makefile: Don't install tmac.dvi.
13509         * macros/Makefile: Install tmac.dvi.
13511         * ps/tmac.ps*: Move to macros.
13512         * ps/Makefile: Don't install tmac.ps*.
13513         * macros/Makefile: Install tmac.ps*.
13515         * eqn/box.c: Provide draw_lines parameter corresponding to -D
13516         option.
13517         * macros/eqnrc: Set draw_lines parameter based on device.
13518         * groff.c: Don't pass -D flag to eqn.
13519         * groff.sh: Likewise.
13520         * eqn/main.c: Warn about use of -D.
13522         * troff/input.c (process_startup_file): New function.
13523         (main): Call process_startup_file().
13524         * macros/troffrc: New file.
13525         * macros/Makefile: Install troffrc.
13526         * groff.c (main): Don't pass extra -m option to troff. For a 
13527         pseudo device pass the name of the pseudo device to troff using
13528         -d.
13529         * groff.sh: Likewise.
13530         * groff.c (possible_command::prepend_arg): Deleted.
13532         * troff/input.c (do_request): New function.
13533         (init_input_requests): Bind "do" to do_request.
13535         * eqn/main.c (main): Instead of loading eqnchar from device directory,
13536         load eqnrc from macro directory.
13537         * macros/eqnrc: New file.
13538         * macros/Makefile: Install eqnrc.
13539         * ps/devps/eqnchar: Deleted.
13540         * ps/devps/Makefile: Don't install eqnchar.
13541         * dvi/devdvi/eqnchar: Deleted.
13542         * dvi/devdvi/Makefile: Don't install eqnchar.
13543         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
13544         variable optM.
13546         * lib/device.[ch]: New files.
13547         * lib/font.h (font::set_device_name, font::get_device_name):
13548         Deleted.
13549         * lib/fontfile.c: Use device.h.
13550         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
13551         * troff/input.c: Delete definition of `device'.
13552         (main): Don't initialize device.
13553         * troff/troff.h: Include device.h rather than declaring device.
13554         * troff/Makefile: No need to handle DEVICE.
13555         * driver/input.c: Include device.h. Don't use
13556         font::{set,get}_device_name.
13557         * groff.c, Makefile: Rename device.h to config.h.
13558         * groff.c: Use library device variable.
13559         * eqn/main.c: Use library device variable.
13560         * eqn/Makefile: No need to handle DEVICE.
13562         * lib/searchpath.[ch]: New files.
13563         * lib/Makefile: Handle searchpath.[ch].
13564         * troff/input.c (open_file, init_dirs): Deleted.
13565         (macro_dirs): Deleted.
13566         (open_mac_file, macro_source): Use class search_path.
13567         (add_string, struct string_list): Move definition.
13568         (main): Change -M option to use macro_path. Delete call to
13569         init_dirs().
13570         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
13571         Rewrite to use class search_path.
13572         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
13573         * lib/Makefile: fontfile.c depends on searchpath.h.
13574         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
13575         MACROPATH.
13576         * lib/macropath.[ch]: New files.
13577         * troff/Makefile: No need to handle MACROPATH.
13579         * troff/input.c: Delete DUMP code.
13580         * lib/fontfile.c, lib/font.h: Delete
13581         font::forget_command_line_font_dirs.
13583         * troff/input.c (push_token): New function.
13584         (handle_first_page_transition): Use push_token().
13585         (process_input_stack): Change handling of a space at the beginning
13586         of the line.
13588 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
13590         * troff/input.c (font_dirs): Delete unused variable.
13592         * eqn/lex.c (do_set): Correct error messages.
13594 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
13596         * troff/input.c (do_define_string): Allow the string name to be
13597         followed immediately by a tab.
13598         (define_character): Likewise.
13600 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
13602         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
13603         be negative.
13605         * troff/input.c (input_iterator::is_file): New virtual function.
13606         (file_iterator::is_file): New function.
13607         (input_stack::end_file): New function.
13608         (input_stack::next_file): Handle the situation where there is no
13609         file on the input stack correctly.  Avoid making two passes over
13610         the input stack.
13611         (next_file): Make the filename optional; in this case call
13612         input_stack::end_file().
13614 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
13616         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
13617         produce a real _ charater when the current font is CW and _
13618         otherwise.
13620         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
13621         expression to work around gcc 2.2 bug.
13623 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
13625         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
13627         * troff/env.c (environment::add_padding): New function.
13628         (environment::add_char): Use add_padding().
13629         (environment::space): Likewise.
13630         (environment::wrap_up_field): Add some padding if there is none
13631         and there's no current tab.
13632         * troff/env.h: Declare environment::add_padding.
13634 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
13636         * pic/pic.y: undef fmod and rand before declaring them.
13638 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
13640         * troff/input.c (main): If the DESC file specifies a font name of
13641         0, then leave the corresponding font position empty.
13643         * nroff.sh: New file.
13644         * Makefile (install.nobin): Install nroff.sh.
13646         * tty/devlatin1/R.proto: Add ao as synonym for de.
13647         * tty/tmac.tty-char: Define ao as o.
13649         * tty/dev{ascii,latin1}/R.proto: Add aq.
13650         * tty/tmac.tty-char: Delete definition of aq.
13652 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
13654         * troff/input.c (init_charset_table): Don't translate 0240.
13655         * ps/tmac.ps: Translate char160 to space.
13656         * dvi/tmac.dvi: Likewise.
13657         * tty/tmac.tty: Likewise.
13659 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
13661         * dvi/tmac.dvi: Add support for all Latin-1 characters.
13663         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
13664         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
13665         \(oe, \(r?, \(r!.
13667         * tty/tmac.tty-char: Add \(ah.
13669         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
13670         No need to define \(FM and \(!/. Conditionalize all character
13671         definitions.
13673         * ps/devps/lgreekmap: Add +h, +f, +p.
13675         * ps/tmac.psnew: New file.
13676         * ps/Makefile: Install tmac.psnew.
13678         * troff/input.c (charinfo_to_node_list): Don't ever interpret
13679         character definitions in compatible mode.
13681         * troff/input.c (remove_character): New function.
13682         (init_input_requests): Bind remove_character to "rchar".
13684         * ps/tmac.psold: New file.
13685         * ps/Makefile: Install tmac.psold.
13686         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
13687         characters into tmac.psold.  Make these definitions unconditional.
13689         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
13691         * ps/tmac.ps: Don't define \('c and \('C.
13693         * ps/devps/textmap: Move Greek characters to...
13694         * ps/devps/symbolchars:
13696 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
13698         * ps/devps/text.enc: Add quotesingle.
13699         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
13700         * tty/tmac.tty-char: Likewise.
13701         * dvi/devdvi/texmi.map: Add +h, +f, +p.
13702         * dvi/devdvi/texi.map: Add Fn.
13703         * dvi/devdvi/msam.map: Add lz.
13704         * dvi/tmac.dvi: Handle Bq, bq, aq.
13706         * pic/lex.c (get_token): Recognize 'th.
13707         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
13709 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
13711         * ps/devps/textmap: Move di, mu, +- to...
13712         * ps/devps/symbolchars:
13714         * macros/tmac.s (@XS): Don't call par@reset or fi.
13715         (XA): Call LP. Turn off adjustment. Reduce line length.
13717         * macros/tmac.s: Initially alias XS to LP.
13718         (XS): Rename to @XS.
13719         (cov*ab-init): Alias XS to @XS.
13721 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
13723         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
13724         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
13725         (token::is_size, token::changes_env): Deleted.
13726         * troff/number.c (parse_term): No need to process \s explicitly.
13727         Call tok.next() only after scale indicator has been processed.
13728         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
13729         \f etc explicitly.
13730         (token::next): Handle \s, \f, \S, \H immediately rather than
13731         returning them as tokens.
13732         (token::operator==, token::description, token::add_to_node_list,
13733         token::process): Remove handling of deleted tokens.
13735         * troff/env.c (environment::add_char): When adding padding
13736         indicator character, call start_line() if necessary.
13738 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
13740         * ps/devps/afmtodit: Don't output 0 kerns.
13742         * ps/devps/afmtodit: Remove directory from name of encoding in
13743         font description file.
13745         * ps/devps/afmtodit: Improve error messages.
13747         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
13749         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
13750         * ps/devps/FontMakefile: Deleted.
13751         * ps/devps/afmname: New file.
13753         * ps/devps/symbol.sed: New file.
13754         * ps/devps/symbol.diff: Deleted.
13755         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
13756         Generate zapfdr.afm from zapfd.afm.
13758         * tty/tmac.tty (tty-char): Prefix definition with ".
13760         * macros/tmac.an (TP): Don't start a diversion if one has already
13761         been started.
13763         * tty/tmac.tty-char: Add Latin-1 characters.
13765         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
13767 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
13769         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
13770         Move declaration of struct horizontal_span.
13772         * tbl/table.c (table::table): Initialize span_list.
13773         (table::~table): Delete span_list.
13775         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
13777         * ps/devps/Makefile: Avoid dependency on GNU make.
13779         * ps/tmac.ps: Check that character does not already exist before
13780         defining it.
13782         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
13783         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
13784         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
13785         files.
13787         * tty/tmac.tty-char: New file.
13788         * tty/Makefile: Install tmac.tty-char.
13789         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
13790         tmac.tty-char.
13792         * tty/tmac.tty: Fix definition of \(34.
13794         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
13795         bracket-drawing characters onto |. Add *o.
13797         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
13798         only if current_field.
13800         * troff/dictionary.c (dictionary::lookup): Free old_table after
13801         rehashing. 
13803 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
13805         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
13806         whose glyphs are identical to glyphs of some Roman character.
13808         * tty/devlatin1/R.proto (bu): Deleted.
13809         * tty/devascii/R.proto (bu): Deleted.
13810         * tty/tmac.tty: Add definition of \(bu.
13812         * eqn/main.c (do_file): Pass FILE as argument.
13813         (main): Automatically load eqnchar.  New options -F and -n.
13814         Pass do_file an opened FILE.
13815         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
13816         No need to include font.h.
13817         * groff.sh: Likewise.  Don't need to use - for standard input.
13818         Prefix files with -- if first file starts with -.
13820         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
13822         * troff/env.c (environment::possibly_break_line): Don't set line
13823         to 0 across call to output_line().  Don't call output_line() until
13824         after discarding nodes after break.
13826 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
13828         * request.h (macro::empty): Declare it.
13829         * input.c (macro::empty): New method.
13830         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
13831         macro is empty.
13833 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
13835         * troff/env.c (environment::start_field): Decrement space_total
13836         when a space is frozen.
13838 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
13840         * macros/tmac.an (R): Delete macro.
13842         * troff/input.c (get_copy, token::next): Support \# (like \" but
13843         newline is ignored).
13845         * troff/input.c (token::next): Fix error message in 'Y' case.
13847 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
13849         * eqn/delim.c (define_extensible_string): Recognize any prefix of
13850         a delimiter name.
13852 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
13854         * c++test.c: Include <osfcn.h>.
13856         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
13857         <errno.h> doesn't.
13859 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
13861         * tbl/table.c (table::divide_span): Don't count column separation
13862         if expand was specified.
13864         * tbl/main.c (process_format): Don't ignore width specs in
13865         continued format.  Give warning for changing equal widths or
13866         column separation in continued format.
13867         (process_data): Set column separation, minimum width, equal
13868         columns at end of table.
13870 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
13872         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
13873         node::add_discretionary_hyphen): Use soft_hyphen_char.
13874         (set_soft_hyphen_char): New function.
13875         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
13877         * Makefile (c++tested): Give more helpful message if test fails.
13879 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
13881         * troff/input.c (init_charset_table): Translate 0240 to
13882         an unbreakable space.
13884         * troff/token.h (token::hyphen_indicator): New function.
13885         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
13886         translation.
13887         * troff/input.c (translate): Allow translation to \%.
13888         * troff/node.c (node::add_char): Handle
13889         TRANSLATE_HYPHEN_INDICATOR.     
13890         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
13892         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
13893         for \(hy.
13895         * tty/devlatin1/R.proto: \(hy and - should print as 055.
13897 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
13899         * groff.c (run_commands): If the last command gets a SIGPIPE send
13900         a SIGPIPE to all children than haven't yet terminated.  When
13901         command terminates, set pid field to -1.
13903 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
13905         * groff.c (main): Pass an appropriate -filename option to gxditview.
13907 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
13909         * Makefile.bd (install): Remove existing program before copying.
13911         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
13912         programs which have Unix counterparts to be installed with
13913         user-specified prefix.
13915         * troff/input.c (exit_troff): Don't check if exit_started.
13916         (exit_request): Don't call exit_troff if exit_started.
13918         * Makefile.bd (install.mm): Rename to install.dwbmm.
13920 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
13922         * driver/input.c (do_file): Add missing break for '#' case.
13924 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
13926         * troff/input.c (input_stack::clear):  Clear past any boundaries and
13927         then add the boundaries back.
13929         * troff/input.c (exit_troff): Return immediately if already
13930         exiting.
13932         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
13933         end macro.
13934         (pg*end-page): If the text has ended and there are no more
13935         footnotes or keeps, exit.
13937         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
13939         * troff/input.c (init_charset_table): Make \(rq transparent by
13940         default.
13942         * macros/tmac.an: Define lq and rq strings.
13944         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
13946 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
13948         * troff/env.c (environment::final_break): New function.
13949         (environment::newline): Set prev_line_interrupted to 2 if
13950         exit_started.
13951         * troff/env.h: Declare environment::final_break.
13952         * troff/input.c (exit_troff): Call environment::final_break()
13953         instead of environment::do_break().
13955         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
13956         doesn't already exist.
13957         * macros/man.local: New file.
13958         * macros/tmac.an: Load man.local.
13959         * macros/man.ultrix: New file.
13961 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
13963         * troff/input.c (exit_groff): Rename to...
13964         (exit_troff): New function.
13966         * troff/div.c (exit_started, done_end_macro,
13967         seen_last_page_ejector): New global variables.
13968         (began_page_in_end_macro): New static variable.
13969         (exit_flag): Deleted.
13970         (top_level_diversion::top_level_diversion): Initialize
13971         last_page_count.
13972         (top_level_diversion): More elaborate test for whether
13973         cleanup_and_exit() should be called.
13974         Set began_page_in_end_macro if the end macro isn't yet finished.
13975         * troff/div.h (top_level_diversion::last_page_count): New data
13976         member.
13977         (top_level_diversion::set_last_page): New function.
13978         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
13979         * troff/env.c (do_break): Zero prev_line_interrupted.
13980         * troff/input.c (exit_flag): Delete declaration.
13981         (LAST_PAGE_EJECTOR): New magic cookie.
13982         (token::next): Handle LAST_PAGE_EJECTOR.
13983         (exit_groff): Set exit_started and done_end_macro instead of
13984         exit_flag.  Call top_level_diversion::set_last_page.  Push a
13985         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
13986         another ejection after setting seen_last_page_ejector.
13988 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
13990         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
13992         * macros/tmac.e (TH): Make sure there's room for the initial
13993         header.
13995         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
13996         Set FVS in points rather than units.
13998 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
14000         * troff/div.c (top_level_diversion::add_trap): Don't consider the
14001         position of empty slots.
14003 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
14005         * ps/devps/S: Fix height and depth of parenrightex.
14006         * ps/devps/symbol.diff: Regenerate.
14008 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
14010         * tmac.e (u): Do underlining as in -mgs.
14012 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
14014         * tty/tty.c (tty_printer::end_page): If overstriking is
14015         suppressed, still turn overstruck horizontal and vertical lines
14016         into +.
14018         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
14019         2.1.
14021         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
14023 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
14025         * Version 1.05 released.
14027 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
14029         * tty/tty.c: Instead of keeping an array of glyphs and then
14030         sorting it, keep a ordered linked list of glyphs for each line.
14032         * driver/driver.h: Include stddef.h.
14034         * tty/tty.c (compare_glyph):
14035         * refer/refer.c (rcompare):
14036         * troff/env.c (compare_ranges): Arguments of qsort comparison
14037         function should be const void *.
14039         * troff/number.c (parse_term):
14040         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
14041         switch statement.
14043         * refer/label.y (consider_authors): Don't access variables
14044         constructed under a condition outside that condition: put braces
14045         round for statement containing declaration; redeclare use of same
14046         variable later.
14048         * pic/pic.y (text_expr): Delete production that allows
14049         parenthesised text_expr.
14050         (expr): Allow a conditional_expr to appear in parentheses.
14051         (conditional_expr): Rename to any_expr.
14053         * mm: Install new version 1.01 from jh.
14055         * lib/font.c (font::get_width): Cache scaled widths.
14056         (font::font): Initialize widths_cache.
14057         (font::~font): Destroy widths_cache.
14058         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
14060 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
14062         * c++test.c, c++test.ref: New files.
14063         * Makefile: Check that the C++ compiler works.
14065         * ps/tmac.pspic (PSPIC): Do a break.
14067         * ps/tmac.ps: Move definition of PSPIC into...
14068         * ps/tmac.pspic: New file.
14069         (PSPIC): Draw box around picture, but make it invisible to grops.
14070         * ps/tmac.ps: Load tmac.pspic.
14071         * ps/Makefile: Install tmac.pspic.
14073 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
14075         * lib/font.c (scale_round): If n is negative,
14076         subtract .5 before truncating floating point result.
14078         * lib/fontfile.c: Include <errno.h>.
14080 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
14082         * driver/input.c (get_char): Inline. Don't update current_lineno.
14083         Change callers to up date current_lineno if necessary.
14084         Use get_char() instead of getc(current_file).
14086 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
14088         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
14090 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
14092         * tty/tty.c (tmac.tty): Define \(rg as (R).
14094 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
14096         * lib/lib.h: New define a_delete.
14097         * Use a_delete instead of delete when deleting an array of objects
14098         without destructors.
14100         * lib/lib.h: Rename adelete to ad_delete.
14101         * Change uses of adelete.
14103 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
14105         * eqn/eqn.y: Include lib.h.
14107         * troff/node.c (grow_font_table): Delete old_font_table.
14109         * mm: Install new version from jh.
14111 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
14113         * tbl/table.h (format_type): Make global instead of local to class
14114         entry_format.  Prefix enumerators with FORMAT_.
14115         * tbl/table.c, tbl/main.c: Corresponding changes.
14116         * refer/token.h (token_type): Make global.  Prefix enumerators
14117         with TOKEN_.
14118         * refer/token.[ch]: Corresponding changes.
14119         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
14121         * troff/div.c (node::set_vertical_size): Don't name argument.
14123 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
14125         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
14126         * lib/lib.h: Define adelete accordingly.
14127         * pic/object.c (graphic_object::graphic_object):
14128         * tbl/main.c (format::~format):
14129         * tbl/table.c (table::~table):
14130         * refer/ref.c (reference::~reference, reference::merge,
14131         reference::insert_field, reference::delete_field): Use adelete.
14133         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
14134         * refer/token.h:
14135         * tbl/table.h: Corresponding changes.
14137         * common.c (common_output::dashed_arc, common_output::dotted_arc):
14138         Ensure total_angle is positive.
14140 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
14142         * refer/ref.c (reference::merge, reference::insert_field,
14143         reference::delete_field): Avoid delete[0].
14145         * refer/token.c (init_special_chars): Move calls to cmupper
14146         outside calls to init_two_char_letter to work around bug in gcc
14147         2.0.
14149 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
14151         * lib/new.c (operator new): Use __builtin_new for g++.
14153         * pic/object.c (graphic_object::~graphic_object):  Don't use
14154         delete [] on 0.
14156         * pic/object.c (output::compute_scale): Initialize max_width and
14157         max_height.
14159 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
14161         * troff/input.c (write_request): Call fflush.
14163         * troff/node.h (class composite_node): Move declaration to node.c
14164         * troff/input.c (charinfo_to_node): Rename to ...
14165         (charinfo_to_node_list): Return node list rather than composite
14166         node.
14167         * troff/node.c (make_composite_node): New function.
14168         (make_node, add_char): Call make_composite_node instead of
14169         charinfo_to_node.
14170         (class composite_node): Add a tfont * member.  Delete font_size
14171         member.
14172         (composite_node::composite_node, composite_node::copy,
14173         composite_node::size): Corresponding changes.
14174         (composite_node::tprint): Provide constant spacing, emboldening
14175         and track kerning as specified in tfont.
14176         (composite_node::width): Change width calculation accordingly.
14177         * troff/env.h (environment::composite): New member.
14178         (environment::is_composite, environment::set_composite): New
14179         functions.
14180         * troff/env.c (environment::environment): Initialize composite.
14181         * troff/input.c (charinfo_to_node): Call
14182         environment::set_composite.
14183         * troff/node.c (make_composite_node, make_glyph_node): Use the
14184         plain version of the tfont if the environment is composite.
14186         * troff/node.c (font_info::get_space_width): Additional argument
14187         giving space_size.  Handle constant space correctly. Scale by
14188         space_size unless constant spaced.
14189         (env_sentence_space_width): New function.
14190         * troff/node.h: Declare it.
14191         * troff/env.h (environment::get_space_size,
14192         environment::get_sentence_space_size,
14193         environment::get_narrow_space_width,
14194         environment::get_half_narrow_space_width): Make inline.
14195         (environment::get_space_width): Make inline.  Just call
14196         env_space_width.
14197         * troff/env.c: Delete definitions for funtions made inline.
14198         (environment::space_newline, environment::space): Use
14199         env_sentence_space_width(). Don't scale by space_size.
14200         * troff/node.h: Move declarations of env*space_width() functions
14201         into env.h.
14203 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
14205         * macros/tmac.s (PS): Don't try to set negative indent.
14207 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
14209         * pic/pic.y: Fix min function.
14211 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
14213         * man/mdate.sh: Clear LANGUAGE.
14215 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
14217         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
14218         * pic/lex.c: New COMMAND keyword.
14219         * pic/pic.y (print_args, print_arg): New rules.
14220         (placeless_element): Use print_args for PRINT.
14221         New COMMAND element.
14223 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
14225         * troff/input.c (terminal): Handle missing argument correctly.
14227         * pic/pic.y (text_expr): New rule.
14229         * pic/pic.y: Implement := operator.
14231 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
14233         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
14234         mdoc.
14236 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
14238         * ps/devps/dingbatsrmap: Include this in the distribution.
14240         * macros/tmac.doc: Replace with new version from 2nd Networking
14241         Release. Fix loading of doc-* files.
14242         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
14243         * macros/tmac.doc.old: New file.  Apply fixes that had been
14244         applied to old tmac.doc.
14245         * macros/tmac.andoc: Check that we're running under groff.
14246         * macros/Makefile: Rework.
14248 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
14250         * tbl/table.h (format_type): 
14251         * refer/token.h (token_type): If NESTED_TYPES is defined, use
14252         typedef to make these types visible at file scope.
14253         * Makefile: Add NESTED_TYPES configuration option.
14255         * troff/div.c (mark): At the top level use the value of
14256         nl_reg_contents rather than the current vertical position.
14258 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
14260         * tty/tty.c: Implement \D for horizontal or vertical lines.
14261         (tty_printer::set_char): Use vec_used+2 as serial number.
14262         Don't allow size of vector to exceed USHRT_MAX-2.
14263         Split off part into...
14264         (tty_printer::add_char): New function.
14265         (tty_printer::draw): New function.
14266         (compare_glyph): Handle equal serial numbers.
14267         (tty_printer::end_page): Handle overstruck characters from \D.
14268         (main, usage): Implement -d option.
14270 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
14272         * tbl/main.c (process_format):
14273         * eqn/text.c (split_text):
14274         * troff/input.c (token::next): Use inner block for declarations
14275         with initializers in switch statement.
14277 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
14279         * pic/common.c (common_output::dash_line): Cope with zero-length
14280         lines.
14282 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
14284         * Version 1.04 released.
14286 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
14288         * macros/tmac.an (TH): Define a macro an-init to define variables
14289         based on command line arguments.
14290         (an-header): Call it.
14292 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
14294         * Makefile (install.mm): Rename to install.dwbmm.
14296         * Makefile: Integrate mm.
14297         * mm: New directory.
14299 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
14301         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
14302         <sys/types.h>.
14304         * pic/troff.c (troff_output::simple_spline,
14305         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
14306         shadowing parameter.
14308         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
14310         * lib/ptable.h: Add explicit casts when converting from unsigned
14311         long to unsigned.
14313         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
14314         * dvi/devdvi/Makefile: Install SA, SB.
14316         * refer/indxbib.c: Add declaration of mktemp.
14318         * refer/lookbib.c: Add declaration of isatty.
14320 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
14322         * pic/lex.c (interpolate_macro_with_args):  While collecting
14323         arguments, keep track of whether we're in a string.
14325 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
14327         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
14328         down with \v, so as to avoid problems with top of page trap
14329         setting no space mode.
14331 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
14333         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
14335 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
14337         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
14338         Improve error message.
14340 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
14342         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
14343         printf("%03o");
14345 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
14347         * groff.c (possible_command::execp): Always use _exit() after a
14348         failed exec.
14350         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
14351         NO_SYS_WAIT_H   configuration options.
14352         * groff.c: Use these options.  Use POSIX-style macros to extract
14353         fields from the status returned by wait().
14355 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
14357         * tbl/table.c (table::compute_separation_factor): Allow the
14358         separation factor to drop to 0.
14360 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
14362         * refer/search.c: Include <errno.h>.
14364 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
14366         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
14368         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
14369         C++. 
14371         * pic/lex.c (input_stack::bol): Move definition out of class body.
14373         * pic/main.c: On MSDOS munge argv[0].
14375         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
14377         * lib/ptable.c (hash_string): Use unsigned long rather than
14378         unsigned.
14379         (next_ptable_size): Use unsigned rather than int.  Give an error
14380         message if we've hit the largest table size.
14381         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
14382         table size.
14384         * pic/object.h (object_spec): Make flags unsigned long.  Declare
14385         flags as const unisgned long rather than as enums.
14387         * pic/output.c: Deleted.
14389         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
14391         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
14392         Add additional argument.
14393         (line_entry::note_double_vrule_on_{left,right}): Set value of
14394         douvle_vrule_on_{right,left} flag according to argument.
14395         (simple_line_entry::simple_print,
14396         simple_line_entry::double_line_print): If adjacent to double vrule
14397         on a corner extend rather than shorten the rule by half the double
14398         vrule sep.
14400         * troff/number.c (parse_term): In checking for overflow, handle the
14401         case where the current horizontal position is negative.
14403 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
14405         * pic/object.c (draw_arrow): Check for object having zero length.
14407 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
14409         * eqn/main.c (do_file): Split off inline equation handling into...
14410         (inline_equation): New function.  Search for starting delimiter
14411         using...
14412         (delim_search): New function. Don't recognize a delimiter that
14413         occurs in the name of an escape sequence, number register, string
14414         etc.
14416 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
14418         * eqn/delim.c (delim_box::compute_metrics): Don't call
14419         define_extensible_string if left is 0.
14420         (delim_box::output):  Don't print the left delimiter if left is 0.
14421         (delim_box::debug_print): Check for left == 0 before calling printf.
14423 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
14425         * troff/Makefile (majorminor.c): Include only digits in
14426         minor_version.
14428 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
14430         * refer/dirnamemax.c: new file.
14431         * refer/genlimits.c: Deleted.
14432         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
14433         Don't check path length.
14434         * refer/Makefile: Add dir_name_max.o; delete genlimits.
14435         * Makefile: Add PATHCONF_MISSING option.
14437         * refer/indxbib.c (get_cwd): New function.
14438         (main): Use get_cwd().
14439         * lib/getcwd.c: New file.
14440         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
14441         GETCWD in SUBFLAGS.
14442         * lib/Makefile: Compile getcwd.o.
14444         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
14445         userdict.
14447         * refer/indxbib.c (main): Check success of mktemp.
14449         * lib/tmpfile.c: New file.
14450         * lib/Makefile: Add tmpfile.c.
14451         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
14452         * ps/ps.h: Delete declaration of mktemp().
14453         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
14454         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
14455         * driver/driver.h: No need now to include errno.h.
14457         * everywhere: Set errno to 0 before calling fopen().
14459         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
14460         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
14461         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
14463 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
14465         * troff/env.h (translate_space_to_dummy): Declare it.
14466         * troff/env.c (environment::space_newline, environment::space):
14467         If translate_space_to_dummy is set then make the width of spaces 0.
14468         * troff/input.c (translate): If the second character of a
14469         translation is a space, translate to unbreakable space.  If the
14470         first character is a space, set or clear translate_space_to_dummy
14471         according to whether the second character is \&.  Weird!
14473 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
14475         * groff.c (run_commands): Don't use non-zero exit code because a
14476         command gets SIGPIPE.
14478         * groff.c, groff.sh: Use -mXps with -TXps.
14480         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
14481         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
14482         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
14483         (ps_printer::special): New specials invis and endinvis.
14484         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
14485         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
14486         (ps_printer::end_page): Check that invis_count == 0.
14487         (ps_printer::invis_count): New member.
14488         (ps_printer::ps_printer): Initialize invis_count to 0.
14490         * troff/env.c (environment::hyphenate_line): Hyphenation
14491         indicator at beginning of word inhibits splitting after -, \(em
14492         etc.
14494         * pic/pic.y (element): Allow another element to follow } without
14495         any intervening separator.
14497 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
14499         * pic/lex.c (get_delimited): Allow tabs before delimiter.
14501 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
14503         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
14504         declaration of wait() in header files.
14505         * Makefile: Get rid of -DHAVE_UNION_WAIT.
14507         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
14509         * lib/lib.h: Declare return type of strerror as char *.
14511         * man/Makefile: Add g flag to sed substitutions.
14512         * Makefile (shgroff, bindist): Likewise.
14514 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
14516         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
14517         * ps/devps/prologue (PBEGIN): Define showpage after pushing
14518         userdict.
14520 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
14522         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
14523         userdict.
14525 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
14527         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
14528         group.
14530 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
14532         * troff/input.c (define_number_reg):  If currently undefined,
14533         don't define it if the argument is an invalid expression.
14535         * Makefile: Ignore return value of `if' commands without `else'
14536         parts.
14538         * Makefile: Split up CPPDEFINES into a series of separate
14539         configuration options.
14541         * troff/input.c (init_registers): Use time_t instead of long
14542         unless LONG_FOR_TIME_T is defined.  Use returned result rather
14543         than passing pointer.
14544         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
14546         * lib/Makefile (fontpath.h): Use gendef.
14548 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
14550         * troff/input.c (input_iterator::shift): Delete argument name.
14551         * troff/node.c (suppress_output_file::really_begin_page,
14552         suppress_output_file::really_transparent_char, node::ascii_print,
14553         node::tprint): Delete names of unused arguments.
14555 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
14557         * refer/label.y (string):  Pass $4 to command_error.
14559 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
14561         * Version 1.03 released.
14563 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
14565         * Makefile: Pass definition of SHELL in SUBFLAGS.
14567         * gendef: New file.
14568         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
14569         ps/Makefile: Use gendef to construct header files that are
14570         constructed from the Makefile.
14572         * macros/Makefile: make all should build stripped version of tmac.e.
14574         * refer/Makefile (clean): Remove y.output.
14576 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
14578         * ps/pfbtops.c (main): Add -v option which prints out a version
14579         number.
14580         * ps/Makefile (pfbtops): Link with libgroff.a.
14582 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
14584         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
14585         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
14587         * refer/lkbib.c (main): Always terminate reference with blank
14588         line.
14589         * refer/lookbib.c (main): Likewise.
14591         * refer/linear.c (file_buffer::load): Check that the file is not a
14592         binary file.
14594         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
14595         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
14596         Delete second inclusion of <sys/param.h>.
14598 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
14600         * troff/token.h (token::special): Deleted.
14602         * tbl/main.c (process_format): Rework so that opt->tab_char is
14603         recognized only when appropriate.
14605         * ps/Makefile (clean): Remove pfbtops.
14607 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
14609         * lib/font.c (text_file::next): Don't return if we have got a
14610         blank line.
14612 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
14614         * refer/refer.c (store_reference): Get hash code from old_table[i]
14615         when rehashing the table.
14617 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
14619         * eqn/box.c (box::top_level): Save size and prev size using \R and
14620         restore it afterwards. Set the size to the size at the beginning
14621         of the line.
14622         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
14623         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
14625         * refer/Makefile (limits.h): Use ./genlimits.
14627 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
14629         * refer/index.c: Delete declarations of stat() and fstat().
14631 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
14633         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
14635 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
14637         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
14639 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
14641         * troff/input.c (token::get_char): Handle \e.
14643         * refer/linear.c: Delete declarations of fstat() and stat().
14645 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
14647         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
14648         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
14650 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
14652         * troff/input.c (do_define_macro): Improve error handling for end
14653         of file while defining macro.
14655 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
14657         * eqn/box.h: Fix declaration of set_gsize.
14658         * eqn/box.c (set_gsize): Make argument const char *.
14659         (gsize): Declare as char *.
14660         * eqn/main.c (main): Don't convert gsize to int.
14661         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
14663         * Version 1.02 released.
14665 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
14667         * macros/tmac.andoc: New file.
14668         * macros/Makefile: Install tmac.andoc.
14670         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
14671         operator new and delete on OP_DELETE_BROKEN not being defined.
14672         * Makefile: Mention OP_DELETE_BROKEN.
14674 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
14676         * Makefile (bindist): Pass SUBFLAGS.
14678 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
14680         * Makefile, groff.c: Pass definitions to groff.c via device.h.
14682         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
14683         parameter.
14685         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
14687         * ps/ps.h, ps/psrm.c: Make comment_table and
14688         header_comment_table local to resource_manager::process_file.
14690         * groff.sh: With -TXps pass -printCommand option to gxditview.
14692         * groff.c (possible_command::print): Implement using
14693         append_arg_to_string.
14695         * xditview: Merge in new implementation with own ChangeLog.
14697 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
14699         * groff.c (main): Implement PRINT_OPTION.
14700         (append_arg_to_string): New command.
14701         (device_table): Set PRINT_OPTION flag for Xps.
14703 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
14705         * troff/groff.h: Rename to troff.h.
14707         * pic/lex.c (lookup_keyword, docmp): New functions.
14708         (get_token): Use new lookup_keyword.
14709         Don't include key.h.
14710         * pic/key.[ch], pic/pic.gperf: Deleted.
14711         * pic/Makefile: Remove gperf stuff.
14713         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
14714         into output.h.
14715         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
14717         * troff/Makefile, troff/node.c: Move definition of
14718         STORE_WIDTH into node.c.
14720         * etc/grog.pl, etc/grog.sh: Support -mdoc.
14722 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
14724         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
14725         dvi/devdvi/texb.map: Add lq and rq.
14726         dvi/devdvi: Regenerate fonts.
14727         * ps/devps/textmap: Add lq and rq.
14728         * ps/devps: Regenerate fonts.
14729         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
14730         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
14732         * pic/object.c (position_rectangle): When checking radius
14733         cope with possiblity that width or height is negative.
14734         (box_object::box_object): Have separate xrad and yrad with
14735         signs matching signs of dim components.
14736         (box_object::{north,south}_{east,west}): Use xrad and yrad.
14737         (box_object::print): With rounded boxes use absolute values
14738         for dim and rad arguments.
14740         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
14741         in fontpath.h.
14743         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
14745         * various files: Add explicit destructors to keep Saber CC +d
14746         happy.
14748 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
14750         * eqn/box.c (box::top_level): Restore fonts correctly after
14751         font changes in line containing inline equation.  Also
14752         restore previous font as well as current font.
14753         * eqn/pbox.h: Define necessary string and register names.
14755         * troff/input.c (token::next): Case 'R' calls do_register.
14756         (do_register): New function.
14758 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
14760         * groff.c, groff.sh: Support Xps device.  Allow each device
14761         to have a pseudo_name and a real_name.
14763         * groff.c (run_commands): Don't print `Broken pipe' messages.
14765         * ps/pfbtops.c: New file.
14766         * ps/Makefile: Add pfbtops.
14768         * troff/number.c (parse_term): Improved error message.
14770 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
14772         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
14774         * Makefile: Integrate refer.
14775         * refer: New directory.
14776         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
14777         man/lkbib.man: New files.
14778         * man/Makefile: Support refer man pages.
14780         * lib/lib.h: Declare is_prime.
14781         * lib/prime.c: New file.
14783         * troff/input.c (macro_source): New function.
14784         (init_input_requests): Bind "mso" to macro_source.
14786         * troff/env.c (environment::possibly_break_line): Maintain
14787         pointer to pointer to node to be split in ndp so as to avoid
14788         using address of freed node.
14790         * troff/env.c (environment::hyphenate_line): Maintain pointer to
14791         pointer to first node to be hyphenated in startp so as to
14792         avoid using address of freed node.
14794         * troff/env.c (class trie, class hyphen_trie): Make the
14795         elements of the trie be of type char not unsigned char.
14796         Declare arguments to be const char* instead of unsigned char *.
14797         
14798         * troff/env.c (hyphenate): Initialize hbuf[0].
14800         * troff/input.c (set_string): Declare p to be char * and cast
14801         *p to unsigned char when necessary.
14803         * troff/input.c (do_define_macro): Declare s to be const
14804         char*. Cast element to unisgned char when necessary, Declare
14805         d to be an int.  Handle EOF better.
14807         * troff/Makefile, troff/input.c: Different scheme for passing
14808         definitions of MACROPATH, HYPHENFILE and DEVICE.
14810 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
14812         * tty/devascii/R.proto: Delete entry for em.
14813         * tty/devlatin1/R.proto: Likewise.
14815 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
14817         * troff/input.c (translate): Stop when we get a space. Treat eof
14818         like newline.
14820         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
14822 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
14824         * tbl/main.c (process_format): A font name following a `f'
14825         modifier that starts with a digit can be only one character long.
14826         Also deal with EOF on the second character of the font name.
14828 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
14830         * troff/input.c (token::next): Turn \~ into an
14831         unbreakable_space_node.
14832         * troff/node.c (unbreakable_space_node): New class.
14833         * troff/node.h: Declare it.
14835 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
14837         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
14838         it's >= 0, before outputting it as a single byte.
14840 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
14842         * lib/font.c: Make font_char_metric::code an int.
14843         (font::get_code): Change return type to int.
14844         (font::load): Allow code to be arbitrary integer.
14845         * lib/font.h (font::get_code): Change return type to int.
14846         (font::number_to_index): Change argument type to int.
14847         * troff/input.c (token::next):  In case 'N', allow any value.
14848         Store value in token::val.
14849         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
14850         (token::get_char, token::add_to_node_list, token::process): Get
14851         number from val.
14852         (charinfo::set_number): Change argument to int.
14853         (charinfo::get_number):  Require that NUMBERED flag be set.
14854         (get_charinfo_by_number): Store numbered characters not between 0
14855         and 255 in a dictionary.
14856         * troff/charinfo.h (get_charinfo_by_number): Change argument type
14857         to int.
14858         (charinfo::number): Change type to int.
14859         (charinfo::set_number): Change type of set_number to int.
14860         * troff/node.c (troff_output_file::put_char_width,
14861         troff_output_file::put_char): Test whether character is numbered
14862         using charinfo::numbered().
14863         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
14864         values of num.
14865         * lib/nametoindex.c: New implementation to cope with arbitrary
14866         number characters.
14868         * troff/input.c (token::operator==): Test val for
14869         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
14870         TOKEN_SIZE.
14872         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
14873         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
14875 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
14877         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
14878         variable.
14880         * all Makefiles: rm targets of cp and >.
14882         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
14883         it.
14885         * eqn/lex.c (def_table): Add dollar.
14887 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
14889         * troff/input.c (do_width): Push back newline before closing delim
14890         like do_bracket.
14892 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
14894         * groff.c (possible_command::prepend_arg): New function.
14895         (main): Prepend device -m option.
14896         * groff.sh: Put device -m options before command-line options.
14898 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
14900         * macros/tmac.an (IP): Quote argument to TP.
14902         * ps/ps.c (main): New option -b, which sets...
14903         (broken_flags): New variable.
14904         (ps_printer::~ps_printer): Incorporate the setup section in the
14905         prolog if (broken_flags & NO_SETUP_SECTION).
14906         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
14907         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
14908         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
14909         ps_printer::print_needed_font_comment,
14910         ps_printer::print_supplied_font_comment,
14911         ps_printer::print_include_font_comments,
14912         ps_printer::lookup_doc_font, ps_printer::download_fonts,
14913         ps_printer::read_download_file, read_document_fonts, add_font,
14914         skip_line, parse_fonts_arg, document_font::document_font,
14915         document_font::~document_font, document_font::download,
14916         ps_output::include_file):  Deleted.
14917         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
14918         rather than %!PS-Adobe-2.0.  Make calls to
14919         resource_manager::need_font for each font that we used. Replace
14920         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
14921         print_supplied_font_comment, print_needed_font_comment by call to
14922         resource_manager::print_header_comments. Output %%Orientation
14923         comment. Output %%Requirements: numcopies comment if ncopies > 1.
14924         Don't output the prolog directly.  Instead call
14925         resource_manager::output_prolog.  Only define #copies when ncopies
14926         > 1.  Delete calls to print_include_font_comments  and
14927         download_fonts.  Add call to resource_manager::document_setup.
14928         (ps_printer::do_file): Call resource_manager::import_file instead
14929         of including it ourselves.
14930         (ps_printer::do_import): Likewise.  Also don't call
14931         merge_import_fonts. Push userdict on the dictionary stack before
14932         and pop it afterwards.
14933         Move declaration of ps_output into ps.h.
14934         * ps/psrm.c: New file implementing resource_manager class.
14935         * ps/ps.h: New file declaring ps_output and resource_manager
14936         classes.
14937         * ps/devps/zapfdr.ps:
14938         * ps/devps/symbolsl.ps:
14939         * ps/devps/prologue:  Use 3.0 conventions.
14940         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
14941         Add default definition of BROKEN_SPOOLER_FLAGS.
14942         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
14943         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
14945 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
14947         * etc/grog.pl: New file.
14948         * Makefile (GROG): New variable.
14949         Add GROG to SUBFLAGS.
14950         * etc/Makefile (GROG): New variable.
14951         (install.nobin): Install $(GROG) rather than grog.sh.
14953 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
14955         * eqn/special.c (special_box::compute_metrics): Make the input and
14956         output strings the same.  Get the new height and depth from the
14957         predefined height and depth registers.  Also make subscript kern
14958         and skew available.
14959         (special_box::compute_subscript_kern, special_box::compute_skew):
14960         New functions.
14962         * eqn/box.c (pointer_box::compute_skew,
14963         simple_box::compute_metrics, box::top_level)
14964         * eqn/text.c (prime_box::compute_metrics,
14965         prime_box::comput_subscript_kern)
14966         * eqn/limit.c (limit_box::compute_metrics):
14967         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
14968         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
14969         negative numbers in `nr' requests with a leading 0.
14971 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
14973         * eqn/special.c: New file.
14974         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
14975         Add new rule for simple.
14976         * eqn/lex.c (token_table): Add SPECIAL.
14977         * eqn/box.h: Declare make_special_box.
14978         * eqn/Makefile: Add special.[co].
14980 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
14982         * ps/devps/prologue: Possibly set packing to true while defining.
14983         Create grops dictionary here.  Initialize local variables before
14984         defining procedures.
14985         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
14986         the dictionary stack. Set strokeadjust and overprint to false if
14987         the relevant operators are defined.
14988         (PEND): New procedure.
14989         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
14990         prologue.  Do everything else in the setup section.
14991         (ps_printer::do_import): Just call PBEGIN and PEND around the
14992         picture. Also push userdict before, and pop it afterwards.
14994 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
14996         * troff/node.c (bracket_node::tprint): Brackets were being printed
14997         1m too low.
14999         * macros/tmac.an (SH, SS): Set fill mode.
15001 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
15003         * troff/div.c (top_level_diversion::begin_page): Set
15004         high_water_mark to 0.
15006 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
15008         * man/mdate.sh: New file.
15009         * man/mdate.c: Deleted.
15010         * man/Makefile: Use mdate.sh instead of mdate.
15011         (mdate): Deleted.
15013         * eqn/lex.c (do_gsize): Supply missing argument to error message.
15015 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
15017         * man/mdate.c: New file.
15018         * man/*.man: Replace modification date by @MDATE@.
15019         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
15020         (mdate): New target.
15022         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
15023         Remove illegal input characters.
15025 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
15027         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
15029 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
15031         * troff/div.c (begin_page): Change behaviour when
15032         !first_page_begun and !break_flag.
15034         * troff/input.c (do_name_test): Return 0 if argument is empty.
15036         * troff/input.c (read_long_escape_name): Require closing ] to be
15037         at same input level as opening [.
15039         * troff/input.c (read_increment_and_escape_name): New function.
15040         (get_copy, process_input_stack): Use this for \n.
15042 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
15044         * troff/div.c (top_level_diversion::begin_page): Ignore the
15045         current value of page_number if !first_page_begun.
15047         * groff.c (main): Fix declaration of buf.
15049         * troff/input.c (do_name_test): New function.
15050         (token::next): Implement \A.
15051         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
15052         (token::description, token::add_to_node_list, token::process):
15053         Handle TOKEN_ESCAPE.
15054         * troff/token.h: New token TOKEN_ESCAPE.
15056 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
15058         * pic/main.c (do_picture): Allow space before and after filename
15059         following `<'.  Check that the filename is not empty.
15061 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
15063         * Version 1.01 released. 
15065         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
15067         * dvi/tmac.dvi: ftr HR to H.
15069         * macros/tmac.e: Round up computation of $r.
15071         * xditview/tmac.X:  Don't give up completely in compatibility mode.
15072         Use \n(.s instead of \n[.s].
15074         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
15075         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
15076         Add u to factors inside \s[...]. Rename frac to dvi-frac.
15077         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
15078         short names in the char definitions.
15080         * ps/tmac.ps: Don't give up completely in compatibility mode.
15081         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
15082         quote in front of \n(.s. Add u to factors inside \s[...].
15084 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
15086         * tty/tmac.tty: Call the nroff request.
15088         * macros/tmac.e ((x, )x):  Better definitions that work properly
15089         in a diversion.
15090         (@0, @1): Helper macros for (x.
15092         * macros/tmac.e ($s, hl): Use \l rather than \D.
15094         * tty/tmac.tty: Make it work better in compatibility mode.
15095         (pchar): Rename to tty-char.
15097         * macros/tmac.e (@E): New macro.
15098         (r, i, b, rb, bi): Use @E.
15100         * macros/tmac.e (@F): Don't use (;...) syntax.
15102         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
15103         it was modified for groff.
15105         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
15107         * macros/tmac.e (<., .>): Removed.
15108         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
15110         * macros/tmac.e: Remove check that groff is being used.
15112         * macros/tmac.e (@C): Change families only if using groff; turn
15113         compatibility mode off while changing familes. Save compatibility
15114         mode before changing families and restore it afterwards.
15116         * macros/tmac.e (@h): Remove test for offset + line length.
15118         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
15119         (lo, th, ac): Define to call @S instead of using als.
15121         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
15122         the ratio of the vertical spacing to the point size in units
15123         expressed as a percentage.  Use these instead of $10r and $10R,
15124         Delete $10r and $10R.
15126         * lib/font.c (font::load): In default computation of space_width,
15127         divide by sizescale.  Use scale_round.
15129         * macros/tmac.an (TP): Don't call `nf'.
15130         (an-do-tag): Don't call `fi'.
15132 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
15134         * troff/input.c (process_input_stack): Handle the case where
15135         spaces at the beginning of an input line are followed by a
15136         newline.
15138 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
15140         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
15141         * groff.sh: Use pic -x with the dvi device.
15143         * dvi/devdvi/FontMakefile (H): Don't use -s.
15145         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
15146         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
15147         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
15148         in FONTS.
15150 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
15152         * ps/psfig.diff: New file.
15153         * ps/tmac.psfig: New file.
15155 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
15157         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
15158         (]-): Don't call ref*do-tl.
15160         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
15162         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
15163         (fn@do-FS): Rename to fn*do-FS.
15165         * troff/input.c (transparent_translate): New function.
15166         (process_input_stack): Apply transparent_translate before calling
15167         diversion::transparent_output(unsigned char).
15169 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
15171         * troff/input.c (do_define_macro): Define the macro before calling
15172         skip_line.
15174         * xditview/Makefile: Add DEVICES variable.  Change install target
15175         to use this.
15177 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
15179         * groff.c (run_commands): Handle the possibility that there are
15180         child processes other than those forked by us.
15182 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
15184         * lib/string.c (string::append): New function.
15185         * lib/stringclass.h: Declare it.
15187 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
15189         * eqn/main.c (main): New option -N which sets
15190         no_newline_in_delim_flag. 
15191         (do_file): If no_newline_in_delim_flag is set don't allow newlines
15192         in delimiters.
15193         * groff.c (main): Pass -N on to eqn.
15194         (help, synopsis): Mention -N.
15195         * groff.sh: Implement -N.
15197 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
15199         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
15200         (]-): Call ref*do-tl if ref*need-tl is non-zero.
15201         (XP): Allow as initializer.
15203 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
15205         * troff/env.c (environment::wrap_up_field): If field_spaces are
15206         non-zero and we have a current_tab, subtract padding from
15207         tab_distance.  If this makes tab_distance <= 0, use the next tab
15208         stop instead.  If there isn't any next tab or it's a left tab,
15209         wrap up the current tab.
15210         (environment::start_field): Initialize tab_precedes_field.
15211         (environment::wrap_up_tab): If there's a current field, update
15212         pre_field_width, field_distance and tab_precedes_field.
15213         * troff/env.h (environment::tab_precedes_field): New member.
15215 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
15217         * ps/ps.c (ps_printer::do_file): New function.
15218         (ps_printer::special): Bind to `file' special.
15219         (ps_printer::do_exec): Set ndefined_styles to 0.
15221 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
15223         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
15224         Avoid stripping first character from the start of unrecognized
15225         escapes.  Use lex_error instead of error to report errors.
15226         * eqn/lex.c (get_token): Rework handling of escapes.
15227         (lex_error): Move declaration into...
15228         * eqn/eqn.h.
15230         * xditview/xditview.c (main): Make -page option work.
15232         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
15234 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
15236         * macros/tmac.s (B2): Correct size of box.
15238 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
15240         * macros/tmac.s (B2): Postpone drawing the box until in the
15241         top-level diversion.
15243         * tty/tmac.tty: Add font translations for C, CR, CW.
15245         * groff.c (synopsis, help): Document -i.
15246         * groff.sh: Implement -i.
15248         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
15249         Simplify the construction of SN.
15251         * troff/number.c (parse_term): Give `|' a higher precedence.
15252         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
15253         accordingly.
15255         * macros/tmac.s (B2): Use par@finish instead of par@reset.
15257 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
15259         * lib/string.c (string::move): New function.
15260         * lib/stringclass.h: Declare it.
15262 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
15264         * troff/env.c (distribute_space): Add optional argument
15265         `force_forward'.
15266         (environment::wrap_up_field): Call distribute_space with
15267         `force_forward' argument of 1.
15269 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
15271         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
15272         Inline it.  Move reallocation into...
15273         (string::grow1): New function.
15274         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
15275         dependencies to include library header files.
15276         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
15278 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
15280         * macros/tmac.s (@NH): Use the same number registers than -ms does
15281         for the heading level counters.  Use the same string that -ms does
15282         for the number for this heading.
15284 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
15286         * lib/new.c (operator new): Cast result of malloc to char *.
15288         * troff/input.c (spring_trap, lookup_request): Add assert that nm
15289         is not null.
15291 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
15293         * groff.c (main): Support -i.
15295 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
15297         * pic/pic.h: Include <osfcn.h>.
15299         * ps/ps.c: Add declaration of mktemp.
15301         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
15302         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
15303         argument as union wait *.
15304         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
15305         argument to union wait *.
15307 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
15309         * tty/tmac.tty: Add definition of \(co.
15311         * pic/object.c (make_arc): Only increase radius when radius
15312         strictly less than d.
15313         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
15314         more than once.
15316         * troff/env.c (environment::environment(symbol),
15317         environment::environment(const environment *)):  Initialize
15318         input_trap_count.
15320 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
15322         * tbl/main.c (main): Add exit(0).
15324         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
15326         * pic/main.c (main):
15327         * eqn/main.c (main):
15328         * tbl/main.c (main):
15329         * etc/soelim.c (main):
15330         * driver/printer.c (printer::~printer):
15331         * troff/node.c (real_output_file::~real_output_file,
15332         real_output_file::flush):  Check for errors on stdout.
15334         * most files: Add 1991 to copyright notice.
15336         * macros/tmac.s: Don't test \n(.x and \n(.y.
15338         * troff/input.c (token::next): Rename `escape_char' label to
15339         `handle_escape_char' and `normal_char' label to
15340         `handle_normal_char'.
15342 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
15344         * groff.c (main, synopsis, help): Support -a option.
15345         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
15346         to trflags while parsing options.
15348 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
15350         * troff/number.c (parse_term): With `m', `M' and `n' scale
15351         indicators, convert scale factor to hunits before scaling.
15353 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
15355         * lib/font.c (scale_round): Better test for overflow when n is
15356         negative.
15358 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
15360         * tbl/main.c (process_format): Add second argument of type
15361         options*. Change callers.  Allow opt->tab_char as well as '\t'
15362         between format items.
15364 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
15366         * macros/tmac.an (PD): With no arguments, make sure register PD is
15367         at least \n[.V].
15368         (TH): Call PD with no argument, instead of setting register PD
15369         directly.
15371 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
15373         * Version 1.00 released.
15375 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
15377         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
15379         * dvi/devdvi/DESC: Mount CW instead of CR.
15381         * dvi/tmac.dvi: Add definition of \(tm.
15383         * dvi/devdvi/texsy.map: Add lh, and rh.
15384         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
15385         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
15387         * dvi/devdvi/FontMakefile: Generate H from cmss10.
15388         * dvi/devdvi/Makefile: Install H.
15389         * dvi/devdvi/H: New file.
15391 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
15393         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
15394         be 0.
15396 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
15398         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
15400         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
15402         * macros/tmac.s (@EN): Handle the case where the equation is empty
15403         but the label is not.
15405 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
15407         * troff/groff.h: New warning category WARN_SPACE.
15408         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
15409         WARN_SPACE to warning_table.
15410         (interpolate_macro): Give a warning of type WARN_SPACE if the name
15411         is longer than two characters and is not defined, but the first
15412         two characters do make a defined name.
15414         * PROBLEMS: New file.
15416         * CHANGES: New file.
15417         * README-0.6, README-1.00: Deleted.
15419         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
15420         * xditview/devX75/Makefile: Make devX75-12.
15421         * xditview/devX100/Makefile: Make devX100-12.
15423         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
15424         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
15426 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
15428         * README-0.7: Rename to README-1.00.
15430         * macros/tmac.pic: New file.
15431         * macros/Makefile (install.nobin): Install tmac.pic.
15433 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
15435         * troff/env.c (hyphen_word): Correct the test for whether the
15436         token is a hyphen.  Reset npos to 0.
15438         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
15440 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
15442         * macros/tmac.s (ds*common-end): Call par*reset.
15443         (PE): Likewise.
15444         (par@reset-indent): Deleted.
15446         * macros/tmac.s (@IP): Divert the label.
15448 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
15450         * xditview/draw.c (setGC): Use a line width of .1m rather than
15451         .04m by default; round rather than truncate value.
15453         * tbl/table.c (class empty_entry): New class.
15454         (empty_entry::empty_entry, empty_entry::line_type): New functions.
15455         (table::add_entry): Represent empty entries by objects of type
15456         empty_entry.
15457         (table_entry::line_type): Return -1.
15458         (table::determine_row_type): Ignore entries with line_type 0.
15459         Treat type -1 as non-lines.
15461 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
15463         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
15464         macros/tmac.s: Rename \(-d to \(Sd.
15466 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
15468         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
15469         * xditview/libXdvi/DviChar.c: Likewise.
15470         * dvi/devdvi/texsy.map: Add `<<', `>>'.
15472 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
15474         * troff/div.c (top_level_diversion::begin_page): Call
15475         init_output() if the_output is 0.
15477 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
15479         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
15480         ESCAPE_c.
15481         (get_copy): Turn \E into ESCAPE_E.
15482         (token::process, asciify): Handle ESCAPE_E.
15484         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
15485         (RD): New macro.
15486         (DS): Implement `.DS R'.
15488 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
15490         * macros/tmac.s (FS): New macro.
15492         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
15494         * macros/tmac.s (cov*tl-init): Remove after first execution
15495         instead of aliasing to @nop.  Call top of page macro explicitly
15496         instead of setting trap; call @init first.  Set pg@top as top of
15497         page macro.
15498         (cov*auto-init): Deleted.  Set cov*tl-init instead of
15499         cov*auto-init as top of page trap. 
15500         (TL, LP): Do a break instead of calling cov*tl-init.
15501         (cov*print): With RP format but no TL, alias FS and FE to @FS and
15502         @FE; in this case also give a warning and always start another
15503         page. No need to set pg@top here.
15504         (cov*tl-init): Rename to cov*first-page-init.
15506         * macros/tmac.s (RP): Do `.pn 0'.
15507         (cov*tl-init): With RP format don't do `.pn 0'.
15509         * macros/tmac.s (pg@cs-top): Set no space mode.
15511         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
15512         (cov*ab-init): Alias TL, AU and AI to these.
15514 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
15516         * macros/tmac.s (@EQ): Move the space before the equation into @EN
15517         (@EN): Do nothing unless \n[dl] is > 0.
15519 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
15521         * pic/object.c (ellipse_object::radius): New function.
15523         * VERSION: Change version to 0.7.
15525         * tbl/table.c (block_entry::do_divert): Declare return type as
15526         void.
15527         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
15529 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
15531         * troff/column.c: New file.
15532         * troff/Makefile: Corresponding changes.
15534         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
15535         Friend of vunits.
15537         * troff/div.c (top_level_diversion::space): If the space causes
15538         the first-page transition and springs a trap, truncate the space
15539         to 0.
15541 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
15543         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
15544         the document.
15546         * pic/troff.c (troff_output::line_thickness,
15547         troff_output::set_fill): Do a horizontal motion to compensate for
15548         the width of the \D escape sequence.
15550 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
15552         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
15553         (not X75).
15555         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
15556         to printf.
15558         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
15559         Supply empty definition.
15560         (text_entry::simple_print, simple_text_entry::simple_print):
15561         Delete declarations.
15562         (table::add_entry): Represent empty entries by objects of type
15563         `simple_entry'.
15565 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
15567         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
15569         * tbl/table.c (left_text_entry::add_tab): New function.
15571         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
15572         initialize like LP.
15574 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
15576         * troff/env.c (environment::start_field): Give an error message if
15577         there is no next tab.
15579 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
15581         * troff/env.c (hyphenate): Skip initial elements with zero
15582         hyphenation code.
15584         * macros/tmac.s (par@init): Keep VS in points rather than units.
15586 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
15588         * pic/main.c (main): Implement `-c' option.
15589         * pic/output.h: Declare make_tpic_output().
15590         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
15591         protected.
15592         (tpic_output): New class.
15593         (tpic_output::tpic_output, tpic_output::set_pen_size,
15594         tpic_output::command, make_tpic_output): New functions.
15596 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
15598         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
15599         if they're not already defined.
15600         * tbl/table.c (init_output): Don't test \n(.g.
15602         * troff/input.c (do_if_request): Delete `g' condition. Recognize
15603         `d', `r' and `c' conditions even in compatibility mode.
15605 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
15607         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
15608         box.
15610 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
15612         * troff/env.h (environment::prev_line_interrupted): New member.
15613         (environment::get_prev_line_interrupted): New function.
15614         * troff/env.c (environment::newline): Set prev_line_interrupted.
15615         (environment::environment(const environment *),
15616         environment::environment(symbol)): Initialize
15617         prev_line_interrupted.
15618         * troff/input.c (process_input_stack): Don't give special
15619         treatment to space and newline at the beginning of the line if the
15620         previous line was interrupted.
15622 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
15624         * eqn/eqn.y: Disallow PRIME by itself.
15625         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
15626         PRIME.
15627         (def_table): Remove definition of '.  Define prime to be `.
15629         * eqn/eqn.y: Split off part of rule `script' into a new rule
15630         `nonsup'.
15632 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
15634         * macros/tmac.s ({, }): New string aliases.
15636 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
15638         * README-0.7: New file.
15640 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
15642         * macros/tmac.s: New file.
15643         * man/groff_ms.man: New file.
15644         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
15645         * Makefile.bd: Similarily.
15646         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
15647         definition of TMAC_S.
15648         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
15649         * macros/TODO: New file.
15651 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
15653         * troff/env.c (right_justify): New function.
15654         (init_env_requests): Bind this to request "rj".
15655         (center_lines): Set right_justify_lines to 0. If we get a bad
15656         integer, center 1 line.
15657         (environment::environment(symbol), environment::environment(const
15658         environment *)): Initialize right_justify_lines.
15659         (environment::get_right_justify_lines): New function.
15660         (init_env_requests): Bind this to number_register ".rj".
15662         * troff/env.c (environment::choose_breakpoint): Implement
15663         hyphenation_margin and hyphenation_space.
15664         (environment::get_hyphenation_space,
15665         environment::get_hyphenation_margin): New functions.
15666         (init_env_requests): Bind these to .hys and .hym.
15667         (hyphenation_space_request, hyphenation_margin_request): New
15668         functions
15669         (init_env_requests): Bind these to hys and hym.
15670         (environment::environment(symbol), environment::environment(const
15671         environment *)): Initialize hyphenation_margin and
15672         hyphenation_space.
15673         * troff/env.h: Corresponding changes to class environment.
15675 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
15677         * troff/div.c (blank_line): Always do a break.
15679         * eqn/box.c (do_text): Turn off escapes while appending text to
15680         string.
15682 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
15684         * troff/input.c (while_break_request, while_continue_request): New
15685         functions.
15686         (init_input_requests): Bind these to "break" and "continue".
15687         (while_depth, while_break_flag): New variables.
15688         (while_request): Update while_depth.  Break out of loop if
15689         while_break_flag is set.
15691 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
15693         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
15694         rather than 0.
15696 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
15698         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
15700         * stringify: New file.
15701         * Makefile (groff.o): Use stringify.
15703         * xditview/tmac.X: Remove definition of \(rn.
15704         * xditview/libXdvi/DviChar.c: Remove radicalex from
15705         Adobe_symbol_map.
15707 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
15709         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
15710         (alphabetic_block_entry::alphabetic_block_entry,
15711         alphabetic_block_entry::divert, alphabetic_block_entry::print):
15712         New functions.
15713         (block_entry::divert): Split off body into ...
15714         (block_entry::do_divert): If the block is alphabetic, subtract 2n
15715         from the line length; also update the span width to dl+2n, and the
15716         alphabetic span width to dl.
15718         * driver/input.c (do_file):  While reading argument to D command,
15719         when expanding buffer, multiply szp by sizeof(int) rather than 2
15720         in the argument to memcpy.
15722         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
15723         width of alphabetic columns.
15725 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
15727         * troff/node.c (lookup_family): Supply second argument to lookup.
15729         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
15730         search, return immediately if v is 0.
15732         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
15733         (troff_output::start_picture): Set this reg.
15734         (troff_output::end_picture): Remove this reg
15735         * eqn/box.c (box::extra_space): Don't produce `\x's if
15736         EQN_NO_EXTRA_SPACE_REG is defined.
15738         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
15739         * eqn/text.c (split_text): Map ' to \(fm when it's the first
15740         character.
15742 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
15744         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
15745         requests.
15747         * troff/div.c (top_level_diversion::top_level_diversion):
15748         Initialize page_number to 0.
15750 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
15752         * groff/troff (environment::environment(const environment *)):
15753         Initialize name to e->name, rather than "anonymous".
15755 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
15757         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
15758         requested_page.  Split middle part into ...
15759         (FindPage): New function.
15760         (SetValues): If we don't yet know the last page, and the requested
15761         page is greater than the current page, call FindPage.
15762         Update the font_map_string before doing this.
15764         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
15765         Translate \(lh and \(rh into left and right double arrows.
15767         * troff/node.c (class hyphen_inhibitor_node): New class.
15768         (hyphen_inhibitor_node::hyphen_inhibitor_node,
15769         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
15770         hyphen_inhibitor_node::type,
15771         hyphen_inhibitor_node::get_hyphenation_type): New functions.
15772         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
15773         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
15774         word.
15776 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
15778         * troff/node.h (dummy_node::get_hyphenation_type,
15779         transparent_dummy_node::get_hyphenation_type):  Declare them.
15780         * troff/node.c: (dummy_node::get_hyphenation_type,
15781         transparent_dummy_node::get_hyphenation_type): New functions.
15783 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
15785         * xditview/libXdvi/draw.c: If M_PI not defined after including
15786         math.h, then define it.
15788         * xditview/Makefile: Add definition of AR. Pass it to the submake
15789         in libXdvi.
15790         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
15792 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
15794         * troff/dictionary.h (object_dictionary::alias): Declare return
15795         value as int.
15796         * troff/dictionary.c (object_dictionary::alias): Return non-zero
15797         if the old name was defined.
15798         * troff/input.c (alias_macro): Give a warning if the old name was
15799         not defined.
15800         * troff/reg.c (alias_reg): Likewise.
15802 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
15804         * troff/input.c (token::next): Delete implementation of \R.
15806         * macros/Makefile: Strip comments from tmac.e while installing it.
15808         * troff/input.c: New variable `nroff_mode'.
15809         (troff_request, nroff_request): New functions.
15810         (init_input_requests): Bind `troff' and `nroff' to troff_request
15811         and nroff_request.
15812         (do_if_request): Compute results of t and n conditions from
15813         nroff_mode.
15815         * text/text.c (split_text): Fix typo in >=.
15817         * eqn/lex.c: Add definition of `==' to def_table.
15819 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
15821         * pic/tex.c (tex_output::start_picture): Change the definitions of
15822         \graph and \graphtemp so that they work properly with Plain TeX.
15824         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
15825         argument to `ar' is not less than the first.
15827         * pic/pic.y: Allow a comma between elements of the variable list
15828         in the argument to `reset'.
15830         * pic/object.c (arc_object::arc_object): Fix computation of
15831         radius.
15833         * eqn/main.c (main): Add exit(0).
15835 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
15837         * troff/div.c (begin_page): Test no_space_mode after doing the
15838         break, but still push the page ejector cookie before doing the
15839         break.  Also set the next page number after doing the break.
15840         
15841         * xditview/xditview.c (NewFile): Don't set the title and icon name
15842         if this is the first file and its name is `-'.
15843         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
15844         the X75 and X100 devices.
15845         (main): If a device has the XT_OPTION flag set and there's exactly
15846         one file argument, pass the driver -xrm and -title options to set
15847         the icon name and window title to the name of the file.
15849         * troff/env.c (environment_switch): If there was an argument but
15850         it wasn't a valid number or name, then pop an environment but
15851         don't give an error message on underflow.
15853         * troff/number.c (start_number): Correct spelling in error message.
15855         * troff/input.c (token::delimiter): Don't print an error message
15856         if err is false.
15858         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
15859         ParseDrawFunction if dw->display_enable is true.
15861 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
15863         * pic/pic.y: Parse text positioning like normal attributes, so as
15864         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
15865         positioning attribute.
15867 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
15869         * tbl/main.c (process_data): When in state START while reading a
15870         text block, don't change to state MIDDLE if c is a newline.
15872 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
15874         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
15875         so as to avoid shadowing parameter.
15877 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
15879         * tbl/table.c (trim_space): Deleted.
15880         (table::add_entry): Don't call trim_space.
15882 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
15884         * VERSION: Change version to 0.6.
15886         * troff/number.c (parse_expr): Make == work.
15888 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
15890         * man/grog.man: New file.
15891         * man/Makefile: Add grog.n to MAN1PAGES.
15892         * etc/grog.sh: New file.
15893         * etc/Makefile: Install grog.sh as grog.
15895 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
15897         * troff/input.c (token::next): Implement \E.
15899 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
15901         * xditview/tmac.X: Change font translations to match tmac.ps.
15903         * troff/input.c (non_empty_name_warning): Don't give a warning if
15904         `\{' terminates the name.
15906 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
15908         * ps/devps/symbol.diff: New file.
15909         * ps/devps/FontMakefile: Mention symbol.diff.
15911 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
15913         * troff/node.c (font_position): Use get_long_name to read the
15914         external_name.
15916         * troff/env.c (environment_switch): If we get a number that's < 0
15917         or >= NENVIRONMENTS, treat it like a name.
15918         Change NENVIRONMENTS to 10.
15920         * troff/groff.h: Remove definition of FONTS_MAX.
15921         * troff/node.h (class font_family): Make map a pointer instead of
15922         an array. Add a map_size member. Make it a class. Make nm const
15923         and public. Make invalidate_fontno a friend.
15924         * troff/node.c: Define font_table_size. Make font_info a pointer
15925         rather than an array.
15926         (class troff_output_file): Allocate font_position dynamically. Add
15927         nfont_positions member.
15928         (troff_output_file::set_font): Grow font_position if necessary.
15929         (troff_output_file::~troff_output_file): Delete font_position.
15930         (troff_output_file::troff_output_file): Allocate font_position.
15931         (grow_font_table): New function.
15932         (troff_output_file::really_begin_page,
15933         troff_output_file:really_copy_page): Use nfont_positions rather
15934         than FONTS_MAX.
15935         (mount_font_no_translate, mount_style): Call grow_font_table if
15936         necessary.
15937         (font_family::font_family): Allocate map.
15938         (font_family::make_definite): Grow map if necessary. Use
15939         font_table_size instead of FONTS_MAX.
15940         (font_family::~font_family): New function.
15941         (invalidate_fontno): Use font_family::map_size.
15942         (get_fontno, env_space_width, env_half_narrow_space_width,
15943         env_narrow_space_width, symbol_fotno, is_good_fontno,
15944         get_bold_fontno, make_glyph_node): Use font_table_size rather than
15945         FONTS_MAX.
15946         (next_available_font_position): Never return 0.
15948 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
15950         * ps/tmac.ps: Add font translations for compatibility with dpost.
15952 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
15954         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
15955         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
15956         Move definitions baseline_sep, shift_down, column_sep,
15957         matrix_side_sep into...
15958         * eqn/box.c: Add them to param_table.
15959         * eqn/pbox.h: Add declarations to pbox.h.
15961         * troff/input.c (set_string): Cast value to unsigned char *.
15963         * troff/token.h (process_input_stack): Declare it static before
15964         declaring it a friend.
15966 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
15968         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
15969         and bottom.
15970         * dvi/devdvi/EX: Regenerate.
15972         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
15973         transparent.
15975 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
15977         * eqn/lex.c: In defaults_table, make definition of `dot' call
15978         `dot_def'.  Don't explicitly make it roman.  Similarily for other
15979         accents.
15981         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
15982         argument.
15983         (for_input::get, for_input::peek): Use this.
15984         (do_for): Add by_is_multiplicative argument.
15985         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
15986         Change semantic value of optional_by to be a double plus a flag
15987         saying whethet the by clause is multiplicative.
15989         * eqn/lex.c (get_delimited_text): Remember location of start of
15990         definition.  Improve error handling when EOF is encountered.
15992         * lib/font.h: Rename handle_x_command to
15993         handle_unknown_font_command.
15994         * lib/font.c (font::load): Call handle_unknown_font_command for
15995         any unknown command in the font description file.  Don't call
15996         handle_x_command. Include the name of the command in the argv.
15997         Improve message for unknown command after kernpairs or charset
15998         command.
15999         * ps/ps.c (ps_font::handle_x_command): Rename to
16000         handle_unknown_font_command.  Remove message about `x download'
16001         command.  Give error message for wrong number of arguments.
16002         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
16003         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
16004         handle_unknown_font_command. Give an error message for wrong
16005         number of arguments.  Rename design_size to designsize.
16006         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
16007         checksum', `designsize' instead of `design_size'.
16009 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
16011         * eqn/*.[chy]: Change underaccent to uaccent.
16013         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
16014         give it the same precedence as ACCENT.
16015         * eqn/other.c (make_underaccent_box): New function.
16016         * eqn/box.h: Declare it.
16017         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
16018         def_table.
16020 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
16022         * pic/pic.y (reset_all): New function. Called in rule for RESET.
16023         (parse_init): Call reset_all.
16024         (define_variable): When defining scale reset only those
16025         pre-defined variables that are scaled.
16026         (defaults_table): Add `scale' as non-scaled value.
16028         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
16029         together with the text; allow any number of positioning words;
16030         allow center as a positioning word.
16032         * pic/object.c (output::compute_scale): Get picture maximum height
16033         and width from variables called maxpswid and maxpsht.
16034         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
16036 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
16038         * pic/object.c (object_spec::make_text): Multiply textht by number
16039         of text items.
16041         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
16042         occur.
16043         (do_sprintf): New function.
16044         (pic.gperf): Add sprintf token.
16045         (text, sprintf): New rules.
16047         * pic/pic.y: `rand()' with no arguments returns a random number
16048         in the range [0,1).
16050         * pic/pic.y: Allow a bare expression to be an attribute: change
16051         precedences to support this.  Change optional_ordinal rule to
16052         optional_ordinal_last to avoid reduce/reduce conflict.
16053         * pic/object.c (object_spec::object_spec): Initialize direction.
16055         * pic/pic.y: Implement ^ operator meaning exponentiation.
16057         * troff/node.h: Add default argument to mount_font.
16058         * troff/node.c (font_position): Read an optional third argument
16059         giving the external_name.
16060         (mount_font): Add optional argument giving the external_name.
16061         (mount_font_not_translate): Have additional argument giving
16062         external name.  Use this name to load the font.  Pass both names
16063         to font_info::font_info.
16064         (font_info::font_info): Have additional argument giving
16065         external_name.
16066         (class tfont): New member external_name.
16067         (font_info::get_tfont): Use external name to construct tfont_spec.
16069 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
16071         * eqn/lex.c (init_table): Add argument giving device.  Define
16072         name of device to be "1".
16073         (do_ifdef): Counts as true if the argument has been defined with
16074         `define'.
16075         * eqn/main.c (main): Call init_table with device argument. Make
16076         device local to main.
16077         * eqn/eqn.h: Change declaration of init_table. Remove declaration
16078         of device.
16080         * pic/lex.c (get_delimited): Allow text to be delimited by
16081         matching {}s.  Don't recognize ending delimiter within a string.
16083         * troff/input.c (get_delim_name): New function.
16084         (token::next): Implement \C.
16086         * lib/font.c (font::load): Grok ---.  Add an alias for each
16087         character based on its code.
16088         (font::get_code_width): Deleted.
16089         * lib/font.h (class font): Declare font::number_to_index().
16090         Remove declaration of font::get_code_width.
16091         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
16092         to indices of named characters.
16093         (font::number_to_index): New function.
16094         * troff/input.c (font::number_to_index): New function.
16095         (get_charinfo_by_number, charinfo::get_number,
16096         charinfo::set_number): New functions.
16097         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
16098         (token::process, token::description, token::get_char,
16099         token::add_to_node_list, token::operator==): Handle
16100         TOKEN_NUMBERED_CHAR.
16101         * troff/charinfo.h: Declare get_charinfo_by_number,
16102         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
16103         charinfo class.
16104         (charinfo::numbered): New function.
16105         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
16106         * troff/env.h (class environment): Remove declaration of ...
16107         * troff/env.c (environment::make_numbered_char_node): Deleted.
16108         * troff/node.c (make_numbered_node): Deleted.
16109         (class numbered_glyph_node): Remove.
16110         (troff_output_file::put_char_width, troff_output_file::put_char):
16111         Handle numbered chars.
16112         (troff_output_file::numbered_char): Removed.
16113         (tfont::get_code_width): Removed.
16114         (make_glyph_node): Don't search special fonts for numbered
16115         characters.
16116         * troff/node.h: Remove declaration of make_numbered_node.
16117         * driver/input.c (do_file): Handle N command.
16118         * driver/printer.h: Add declaration of ...
16119         * driver/printer.c (printer::set_numbered_char): New function.
16120         * dvi/tfmtodit.c (main): Generate unnamed entries.
16121         * ps/devps/afmtodit: Likewise.
16122         * xditview/xtotroff.c (MapFont): Likewise.
16123         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
16125         * tbl/main.c (process_format): If multiple widths are specified
16126         for a column but all the widths are the same, don't give an error
16127         message.
16129         * tbl/table.c (table::do_row): If the current row is all lines and
16130         the stuff doesn't contains a line, mark the top of the row after
16131         printing stuff before the row.  If the current row is not all
16132         lines and the stuff doesn't contain a line, don't unnecessarily
16133         mark the top of the row before printing the stuff.
16134         
16135 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
16137         * troff/groff.h: Remove MAX_PATH.
16138         * troff/input.c (open_file): Dynamically allocate space for the
16139         path.
16140         (open_mac_file, process_macro_file): Corresponding changes.
16142 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
16144         * troff/node.h (class output_file): Make copy_file pure.  Add
16145         vspace method ifdef COLUMN. Add is_printing method.
16146         * troff/node.c: Add class printing_reg. Add class
16147         real_output_file. Derive other output_file classes from
16148         real_output_file; in these classes rename begin_page to
16149         really_begin_page, print_line to really_print_line, copy_file to
16150         really_copy_file, transparent_char to really_transparent_char.
16151         Move output_file::flush to real_output_file. Add printing member
16152         to class output_file.
16153         * troff/div.h: Remove printing member from top_level_diversion.
16154         Add vspace member function to class diversion ifdef COLUMN. Add
16155         some declarations ifdef COLUMN.
16156         * troff/div.c (top_level_diversion::copy_file,
16157         top_level_diversion::transparent_output,
16158         top_level_diversion::output): Don't test printing member before
16159         output.
16160         * troff/input.c: Handle initial variable_space_request ifdef
16161         COLUMN.
16162         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
16163         but comment it out.
16165 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
16167         * troff/div.c (diversion::need): Make any space forced.  If we
16168         sprung a trap, set truncated_space to minus the distance to the
16169         trap and set needed_space to the amount that was needed.
16170         (top_level_diversion::space): A forced space turns no_space_mode
16171         off.
16172         (class constant_vunits_reg): New class.
16173         (init_div_requests): Implement number registers .trunc and .ne
16174         using constant_vunits_reg.
16175         (class truncated_space_reg): Deleted.   
16177         * troff/div.h: Don't have a no_space_mode member in diversion.
16178         Instead have it in top_level_diversion.
16179         * troff/div.c (diversion::diversion): Don't initialize
16180         no_space_mode.
16181         (top_level_diversion::top_level_diversion): Initialize
16182         no_space_mode.
16183         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
16184         (macro_diversion::output): Don't clear no_space_mode.
16186         * troff/input.c (diverted_space_node::reread): Don't call
16187         environment::do_break.  In fill mode, act like a blank line.
16188         (diverted_copy_file_node::reread): Don't call
16189         environment::do_break.
16191         * troff/div.c (blank_line): New function.
16192         * troff/div.h: Declare it.
16193         * troff/input.c (process_input_stack): Call it.
16195         * troff/div.c (truncated_space_reg::get_string): New function.
16196         (init_div_requests): Bind to .trunc.
16197         (space_request, top_level_diversion::space,
16198         top_level_diversion::output, macro_diversion::space,
16199         macro_diversion::output): Update truncated_space.
16200         (macro_diversion::output): Redo calculations when trap sprung.
16201         (macro_diversion::output, macro_diversion::space): No need for
16202         trap_flag.
16204         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
16205         after truncating post line spacing.
16207 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
16209         * ps/devps/prologue (MF, SF): Make them work even if setfont is
16210         defined as a procedure rather than as an operator.
16212 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
16214         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
16216 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
16218         * troff/div.c (top_level_diversion::output): Merge
16219         output_file::print_line and output_file::end_of_line member
16220         functions.
16221         * troff/div.h (class output_file):
16222         * troff/node.c (troff_output_file::print_line,
16223         troff_output_file::end_of_line, output_file::end_of_line,
16224         ascii_output_file::print_line, suppress_output_file::print_line):
16225         Corresponding changes.  
16227 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
16229         * troff/input.c (token::next): Don't give a warning for `\.'.
16231         * troff/env.c (environment::get_center_lines): New function.
16232         (init_env_requests): Bind number register .ce to it.
16233         * troff/env.h: Declare it.
16234         * tbl/table.c (table::init_output): Define reset macro to restore
16235         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
16236         Then do .ce 0.
16237         (table::print): If center option not given, then imply center
16238         option if SAVED_CENTER_REG > 0.
16240 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
16242         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
16243         Troff.ps from DOWNLOAD.
16244         
16245         * troff/Makefile: Change comment in DEFINES to avoid confusing
16246         System V make.
16248         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
16249         code.  Don't try to catch errors with stopped.
16250         (check_line_lengths): New function.
16251         * ps/devps/prologue (EXEC): Deleted.
16252         (EBEGIN, EEND): New procedures.
16254 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
16256         * troff/input.c: Include request.h before node.h.
16257         * troff/node.c: Likewise.
16258         * troff/env.c: Likewise.
16259         * troff/div.c: Likewise.
16260         * troff/node.h (class special_node): Store argument as a macro
16261         rather than a char *.
16262         * troff/node.c (special_node::special_node, special_node::copy):
16263         Grok this.
16264         (special_node::~special_node): Deleted.
16265         (special_node::tprint): Deleted.
16266         (special_node::tprint_start, special_node::tprint_end,
16267         special_node::tprint_char): New functions.
16268         (troff_output_file::special): Deleted.
16269         (troff_output_file::start_special, troff_output_file::end_special,
16270         troff_output_file::special_char): New functions.
16271         * troff/input.c (special_node::tprint): New function.
16272         (do_special): Use macro not char *.
16273         (do_transparent_macro): Deleted.
16274         (token::next): Don't call do_transparent_macro.
16276         * troff/input.c (token::next): Add 'Y' case.
16277         (do_transparent_macro): New function.
16278         * troff/node.c (troff_output_file::special): Handle newlines with
16279         argument using new continuation convention.
16280         * driver/input.c (get_string): Cope with continuation convention.
16281         (do_file): Don't call skip_line after calling get_string(1).
16282         * ps/ps.c (ps_printer::special, ps_printer::do_import,
16283         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
16284         arg.
16285         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
16286         with +.
16288 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
16290         * troff/input.c (asciify): By default, illegal input characters
16291         should return empty string.
16293         * troff/input.c (copy_file): Handle first page transition like title.
16294         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
16296         * troff/input.c (token::next): Improve error message for EOF after
16297         escape character.
16298         (input_char_description): New function.
16299         (get_char_for_escape_name): Use input_char_description.
16300         (token::next): Warn about unrecognized escape sequences.
16301         (warning_table): Add WARN_ESCAPE.
16302         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
16303         accordingly.
16305         * troff/token.h: Remove declaration of process_input_stack.
16307         * troff/input.c: Remove declaration of init_hyphen_requests.
16308         * troff/request.h: Correct spelling in declaration of same.
16310         * troff/input.c (token::next): Check whether escape_char is 0.
16312 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
16314         * groff.c (main, usage, help): Implement -P and -L options.
16315         * groff.sh: Likewise.
16317         * troff/input.c (token::next): Use some gotos to avoid code
16318         duplication.
16320         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
16321         Avoid calling symbol::symbol if name empty.
16323 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
16325         * troff/input.c (init_input_requests): Make \n(.x return the major
16326         version number and \n(.y return the minor version number.
16327         * troff/Makefile: Construct file majorminor.c defining
16328         major_version and minor_version automatically from ../VERSION.
16330         * troff/node.c (class glyph_node): Make operator new and operator
16331         delete public.
16332         (class ligature_node): Similarily.
16334         * troff/input.c (operator==(const macro &, const macro &)): New
16335         function.
16336         (non_interpreted_node::same): Use this.
16337         (string_iterator::string_iterator): Make macro& argument const.
16339         * troff/input.c (input_iterator::get): New function. Don't make
16340         asciify_macro or class non_interpreted_node friends of class
16341         input_iterator.
16342         (non_interpreted_node::interpret): Use input_iterator::get.
16343         (asciify_macro): Likewise.
16345         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
16346         ~non_interpreted_node): Deleted.
16347         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
16348         Deleted.
16350         * troff/symbol.h: Make all symbol member functions const.
16352         * lib/strtol.c: New file.
16353         * lib/Makefile: Add strtol.c.
16354         * Makefile: Define STRTOL as strtol.o to include strtol in
16355         libgroff.a.
16357 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
16359         * pic/troff.c (troff_output::simple_circle): Divide by scale.
16361 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
16363         * troff/input.c (do_special): Use input_level.
16365         * troff/token.h (TOKEN_BACKSPACE): New token.
16366         (token::backspace): New function.
16367         * troff/input.c (token::description, token::next, token::process):
16368         Grok TOKEN_BACKSPACE.
16369         (do_special): Turn TOKEN_BACKSPACE back into \b.
16371         * troff/token.h (token::leader): New function.
16372         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
16374         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
16376         * troff/input.c (do_special): Use token::description in error
16377         message.
16379 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
16381         * troff/input.c (decode_args): Combine quoted and
16382         quote_input_level variables. Make it a for (;;) loop.
16384         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
16386         * troff/input.c (read_long_escape_name): The test for whether to
16387         expand buffer was off by 1.
16388         (read_string): Similarily.
16390 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
16392         * troff/input.c: Use `const int' rather than `static const int'.
16394         * troff/div.h (diversion::copy_file): Declare as pure virtual.
16395         (macro_diversion::copy_file): New function.
16396         * troff/node.h: New class diverted_copy_file_node.
16397         * troff/node.c: Implement it.
16398         * troff/input.c (copy_file): Use diversion::copy_file. Handle
16399         first page transition by pushing a diverted_copy_file_node.
16400         * troff/input.c (token::next, process_input_stack): Don't handle
16401         COPY_FILE_REQUEST.
16403 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
16405         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
16406         whether space widths need adjusting.
16408         * troff/charinfo.h: Generalize translated_to_space to
16409         special_translation so as to allow translation to \&.
16410         * troff/input.c (translate): Allow translation to \&.
16411         (charinfo::*): Corresponding changes.
16412         * troff/node.c (make_node, node::add_char): Corresponding changes.
16413         * troff/node.h (dummy_node::dummy_node): Allow optional first
16414         argument.
16416         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
16417         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
16418         TOKEN_REQUEST.
16419         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
16420         TOKEN_REQUEST with an argument of TITLE_REQUEST.
16421         (token::process): Grok that.
16422         * troff/input.c (copy_file): Handle first page transition like
16423         title by pushing a COPY_FILE_REQUEST cookie.
16424         (token::next, process_input_stack): Grok that.
16425         * troff/node.h (output_file::copy_file): Add x and y arguments.
16426         Make it non-pure.
16427         * troff/div.c (top_level_diversion::copy_file): Supply them.
16428         * troff/node.c (troff_output_file::copy_file): Add x and y
16429         arguments; moveto specified position.  Invalidate font_position
16430         array after copying file.
16431         (output_file::copy_file): New function.
16432         (suppressed_output_file::copy_file, ascii_output::copy_file):
16433         Removed.
16434         * troff/input.c (transparent_file): New function.
16435         (init_input_requests): Bind to "trf".
16436         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
16437         (process_input_stack): Likewise.
16439         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
16441         * troff/node.c (init_node_requests): New number registers .kern
16442         pointing to global_kern_mode, and .lg pointing to
16443         global_ligature_mode.
16445         * troff/node.c (ligature): Don't change it if we get a bad
16446         integer.
16448         * troff/input.c (do_define_string): Don't strip tabs.
16450         * troff/input.c (asciify_macro): Make the string_iterator auto.
16452         * troff/node.c (init_font_requests): Rename to...
16453         (init_node_requests):
16454         * troff/node.h: Change declaration.
16455         * troff/input.c (main): Change call.
16457         * troff/input.c (node::reread, diverted_space_node::reread): New
16458         methods.
16459         (process_input_stack): Call reread rather than
16460         get_diverted_space_node.
16461         * troff/node.c (node::get_diverted_space_node,
16462         diverted_space_node::get_diverted_space_node): Removed.
16463         * troff/node.h: Declare reread methods instead of
16464         get_diverted_space_node methods. Make `n' member private.
16465         * troff/input.c: (token::diverted_space): Removed.
16466         * troff/token.h: Removed declaration.
16467         
16469 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
16471         * eqn/script.c (script_box::compute_metrics): Don't let
16472         SUP_RAISE_FORMAT become negative.
16474         * tbl/table.c (table::do_row): Entries that don't end in the
16475         this row shouldn't make the row non-blank.
16476         
16477         * tbl/table.c (table::make_columns_equal): Only set the width of
16478         columns which are marked as equal.
16479         
16480         * tbl/main.c (process_data): Before issuing excess data error,
16481         if last character was a newline unget it; then get it again after
16482         the error.  Also include the contents of the entry in the message.
16484         * groff.c: New file.
16485         * Makefile: Build groff from groff.c.  Make it possible to use
16486         either groff.sh or groff.c as groff.
16487         * Makefile.bd: Similarily.
16489 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
16491         * groff.sh: Don't delay expansion of $@ in assignment to files.
16492         Remove occurrences of \".
16494 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
16496         * all Makefiles: Simplify and rearrange.
16498         * Makefile: Handle fmod like malloc.
16499         * lib/Makefile: Similarily.
16500         * lib/fmod.c: Remove #ifdef NEED_FMOD.
16502         * Makefile: Rename OPTIMISE to OPTIMIZE.
16504         * groff.sh: Remove assignment to PATH.
16505         * Makefile: Remove SHPATH variable.
16506         * Makefile.bd: Similarily.
16508         * groff.sh: Add -V option to print the pipeline instead of
16509         executing it.
16511 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
16513         * lib/font.c: Split off file searching into ...
16514         * lib/fontfile.c: New file.
16516         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
16518 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
16520         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
16521         Also change misleading comment.
16522         (table::do_vspan): Change similarily misleading comment.
16523         * tbl/main.c (process_data): A format row with an explicit `s'
16524         uses up a data line, even if all the other columns are `_' or `='.
16526         * troff/input.c (token::description): Fix description of
16527         TOKEN_DUMMY and TOKEN_EMPTY.
16529 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
16531         * groff.sh: Fix description of -Z in help message.
16533 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
16535         * pic/object.c (object_spec::make_object): Allow negative and zero
16536         line thicknesses.
16537         * pic/pic.y: Give linethick default value of -1.0.
16538         * pic/troff.c (troff_output::troff_output): Initialize
16539         last_line_thickness to BAD_THICKNESS.
16540         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
16541         (troff_output::line_thickness): Canonicalize negative thicknesses
16542         to RELATIVE_THICKNESS.
16543         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
16544         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
16545         to -1.0.
16546         (tex_output::start_picture): Set pen_size to -2.0.
16548         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
16549         0, then use 0 linewidth.
16550         (ps_printer::ps_printer): Initialize line_thickness to -1.
16552         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
16554         * ps/devps/symbolchars: Remove `or'.
16555         * ps/tmac.ps: Implement \(or with .char.
16557         * ps/devps/symbolchars: Move most characters into textmap.
16558         * ps/devps/textmap: Add names for troff bracket characters. Remove
16559         ul, ru, br, bv.
16561         * ps/devps/TSymbol.ps: Removed.
16562         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
16563         * ps/tmac.ps: Do with .char what TSymbol did.
16564         * ps/devps/download: Remove TSymbol.
16566         * ps/devps/T: Removed.
16567         * ps/devps/Troff.ps: Removed.
16568         * ps/devps/Troff.afm: Removed.
16569         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
16570         * ps/devps/download: Remove Troff.
16571         * ps/devps/FontMakefile: Remove T target.
16572         * ps/devps/DESC-A4: Remove T from font list.
16573         * ps/devps/DESC-letter: Likewise.
16575         * troff/input.c (macro_to_node): Rename to ...
16576         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
16577         character's definition while processing it.
16578         * troff/node.c (node::add_char, make_node): Change calls to
16579         macro_to_node accordingly.
16581         * troff/input.c (token::next): Translate \_ to \(ul.
16583         * tty/devascii/R.proto: Add `|'.
16584         * tty/devlatin1/R.proto: Likewise.
16586 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
16588         * man: Put the version number in all the man pages.
16590 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
16592         * Makefile.bd: New file.
16593         * README.bd: New file.
16595         * VERSION: New file.
16596         * lib/version.c: Removed.
16597         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
16598         in clean target.
16600         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
16601         environment variable.
16603         * all Makefiles: Split install target into install.bin for
16604         binaries, and install.nobin for everything else.
16605         * Makefile: Add bindist target.
16607         * man/afmtodit.man: New file.
16608         * man/Makefile: Add afmtodit.n to MAN1PAGES.
16609         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
16610         in BINDIR.
16611         * ps/Makefile: Pass BINDIR to make install in devps.
16613         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
16614         the space character.
16616         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
16618 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
16620         * ps/ps.c: Redo font downloading.
16621         * ps/devps/download: New file.
16622         * ps/devps/Makefile: Add download to DEVICEFILES.
16623         * ps/devps/afmtodit: Remove -d option.
16624         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
16625         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
16626         * ps/devps/zapfdr.ps: Likewise.
16627         * ps/devps/TSymbol.ps: Likewise.
16629 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
16631         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
16633 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
16635         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
16636         then strip the first line if it starts with %.
16637         * Makefile: Add a comment about this.
16639         * man/tfmtodit.man: New file.
16640         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
16641         * dvi/Makefile: Install tfmtodit in BINDIR.
16643         * dvi/tfmtodit.c (usage): Mention -v option.
16645 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
16647         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
16648         * troff/node.c (troff_output_file::transparent_char): Don't call
16649         flush_tbuf.
16651         * eqn: Add check_tabs method to most box classes.
16652         * eqn/box.c (box::top_level): Call check_tabs.
16654         * eqn/script.c (script_box::output): Use \Z.
16655         * eqn/limit.c (limit_box::output): Use \Z.
16657         * eqn/box.c (box::top_level): Use itoa.
16659 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
16661         * dvi/tmac.dvi: Add font translations for CR, C, TT.
16662         * dvi/devdvi/Makefile: Don't make links to CW.
16664         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
16665         HX, HD.
16666         * xditview/tmac.X: Likewise.
16668         * troff/node.c: Add font translation feature.
16669         (get_font_translation): New function.
16670         (symbol_fontno): Translate the font name.
16671         (mount_font_no_translate): Rename to mount_font to this.
16672         (mount_font): New function.
16673         (font_family::make_definite): Call mount_font_no_translate instead
16674         of mount_font.
16675         (mount_style): Translate the font name.
16676         (font_translate): New function.
16677         (init_font_requests): Bind "ftr" to font_translate.
16679         * ps/devps/prologue (SN): New procedure that rounds a position to
16680         the nearest (pixel + (.25,.25)).
16681         (DL): Use SN to round endpoints.
16683         * lib/version.c: Changed version to 0.5.
16685 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
16687         * Makefile: Move definition of PAGE to the very beginning, so that
16688         people are less likely to miss it.
16690 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
16692         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
16694         * troff/env.c (environment::choose_breakpoint): Make `can't find
16695         breakpoint' error a warning of type WARN_BREAK.  Change message to
16696         `can't break line'.
16697         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
16698         code 040000.
16699         * troff/input.c: Add WARN_BREAK to warning_table.  Include
16700         WARN_BREAK in DEFAULT_WARNING_MASK.
16702         * tty/tmac.tty: Add definition of \(+-.
16704         * groff.sh: Remove `--' option to set command.
16706         * dvi/devdvi/texsy.map: Remove duplicate md entry.
16708         * ps/devps/eqnchar: Better definition of cdot using md.
16709         * dvi/devdvi/eqnchar:  Likewise.
16710         * xditview/devX100/eqnchar:  Likewise.
16711         * xditview/devX75/eqnchar: Likewise.
16712         * eqn/lex.c: Add definition of cdot.
16714 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
16716         * troff/input.c (get_optional_char): New function.
16717         * troff/input.c (set_page_character): Use get_optional_char(),
16718         rather than has_arg() and tok.get_char(1).
16719         * troff/env.c (tab_character, leader_character, hyphen_char,
16720         field_characters): Likewise.
16721         (margin_character): Likewise.  Also always delete the
16722         margin_character_node.
16724         * troff/input.c (token::get_char): Use token::description.
16726         * troff/input.c (has_arg): Don't skip over tab and \}.
16727         * troff/number.c (start_number): Give a warning if the number
16728         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
16730 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
16732         * troff/input.c (empty_name_warning, non_empty_name_warning): New
16733         functions.
16734         (get_name, get_long_name): Use these.  Rename `warn' argument to
16735         `required'.
16737         * troff/node.c (get_fontno): Test that the symbol is not null.
16739         * troff/input.c (token::description): New function.
16740         * troff/number.c (parse_term): Use token::description in `numeric
16741         expression expected' message.
16742         * troff/groff.h: Add WARN_MISSING.
16743         * troff/number.c (start_number): New function.
16744         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
16745         get_incr_number): Use start_number().
16746         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
16747         default.
16748         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
16749         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
16750         token::descripion.
16751         * troff/input.c (token::get_char): Use WARN_MISSING.
16752         * troff/input.c (token::delimiter): Use token::description.
16753         * troff/env.c (environment_switch): Back out Aug 3 change.
16754         * troff/input.c (has_arg): Skip over \}s and tabs but give a
16755         warning.
16756         * troff/token.h (token::tab): New function.
16757         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
16758         * troff/reg.c (alter_format): Likewise.
16759         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
16761 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
16763         * troff (most files): Redo warnings. Divide warnings into various
16764         categories; warning() has an additional first argument indicating
16765         the category it falls into.
16766         * troff/input.c (main): -w now takes an argument. New option -W.
16767         (enable_warning, disable_warning): New functions.
16769         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
16770         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
16772 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
16774         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
16775         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
16776         * xditview/devX75/eqnchar: Likewise.
16777         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
16779         * eqn/other.c: When bar or over applies to a single character
16780         don't produce an overline_box or an underline_box. Instead produce
16781         an accent_box or an underaccent_box, with the accent a line
16782         whose width is accent_width.  New classes underaccent_box,
16783         overline_char_box and underline_char_box.
16784         * eqn/box.h: Move overline_box, underline_box, accent_box class
16785         declarations into eqn/other.c. Add declarations of
16786         make_underline_box, make_overline_box, make_accent_box.
16787         * eqn/eqn.y: Call make_overline_box, make_underline_box
16788         make_accent_box instead of constructors.
16789         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
16791         * eqn/other.c: Add accent_box::~accent_box.
16792         * eqn/box.h: Declare it.
16794         * groff.sh: With -Tps, use eqn -D.
16796         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
16797         rather than \l.
16798         (underline_box::output): Similarily.
16799         (accent_box::output): Use \Z.
16801         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
16802         bit smaller.)
16804 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
16806         * troff/div.c (top_level_diversion::transparent_output(unsigned
16807         char)): Use asciify.
16808         * troff/input.c (asciify): Don't make it static.
16809         * troff/token.h (asciify): Declare it.
16810         
16811         * troff/input.c (get_name, get_long_name, token::get_char,
16812         token::delimiter): Add an extra default argument which says
16813         whether a warning should be printed.
16814         * troff: Pass a non-zero argument to one of these rather than
16815         printing a warning directly.
16817 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
16819         * troff: Consistently use symbol::is_null.
16821         * troff/dictionary.h: Move some inline functions into
16822         dictionary.c.
16824         * troff/request.h: Move inline functions into input.c.
16825         (request_or_macro::invoke): Make it pure.
16827         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
16828         * troff/input.c (init_input_requests): Use class constant_int_reg.
16829         (class compatible_reg): Deleted.
16830         * troff/div.c (init_div_requests): Use class constant_int_reg.
16831         (class last_post_line_extra_space_reg): Deleted.
16833         * troff/env.c (tab_character): Don't change the tab character if
16834         we get an invalid argument.
16835         (hyphen_char): Similarily.
16837         * troff/reg.c (alter_format): Check that nm is not null.
16839         * Makefile, groff.sh: Make it possible to customize the commands
16840         used for printing PostScript and dvi files. Also make it possible
16841         to customize the path used by groff.sh.
16843         * eqn/eqn.y: Make `left' right associative.
16845 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
16847         * pic/pic.h: Added definition of M_SQRT2 for those systems that
16848         don't have it.
16850         * pic/pic.h: Removed definition of INT_MAX.
16852         * troff/node.c (italic_corrected_node::vertical_extent): Omit
16853         `return'.
16855         * troff/input.c (token::next):  Handle \R like \n.
16857 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
16859         * ps/tmac.pc (PSPIC): Simplify.
16861         * troff/env.c (tab_stops::to_string):
16862         * pic/pic.y (object_type_name):
16863         * pic/troff.c (simple_output::line):
16864         * pic/tex.c (tex_output::spline):
16865         * pic/object.c (object_spec::make_object):
16866         * tbl/main.c (process_data):  Add cases to switch statements to
16867         avoid cfront warnings. (Some of these are spurious, since the
16868         switch already has a default case.)
16870         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
16871         `ps-'.  Don't test systat; instead check number of arguments to
16872         ps-bb.
16874 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
16876         * macros/tmac.e: Do not decrease the page offset by 0.5i.
16878         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
16879         Unlink the file as soon as we have opened it, so that we don't
16880         have to bother with signal handlers.
16881         (handler): Deleted.
16882         (fatal_error_exit): Deleted.
16883         (main): Don't call signal.
16885         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
16886         can be ignored.
16887         * dvi/devdvi/Makefile: Use the -k option with S and MI.
16889         * pic/pic.y:  If there is a label, or an nth construction before
16890         the first `.' in the argument to `with', ignore it and generate a
16891         warning.
16892         * pic/lex.c (lex_warning): New function.
16894         * tbl/table.c (table::init_output): In section keep and release
16895         macro, use 0 indent when diverting and the correct indent when
16896         rereading.
16898         * troff/input.c (interpolate_number_format): Do not interpolate
16899         anything if the number register is not defined.
16901         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
16903 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
16905         * ps/devps/prologue (PICTURE): Set components of graphics state to
16906         their default values.
16908         * ps/devps/text.enc: Add trademark
16909         * ps/devps/textmap: Add names for club, spade, heart, diamond,
16910         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
16911         * ps/devps/symbolchars: Add names for summation and product.
16913         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
16914         suchthat. Add pp. Add upper-case letters.
16916         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
16917         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
16918         Upsilon.
16920         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
16921         rA (right angle bracket) to ra.  Introduce names for double-headed
16922         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
16923         * ps/devps/textmap: Likewise for ps device.
16924         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
16925         * tty/devascii/R.proto: Rename lA to la and rA to ra.
16926         * tty/devascii/R.proto: Likewise.
16927         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
16928         \(uA, \(dA.
16929         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
16931         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
16933         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
16934         def_table.
16936 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
16938         * troff/div.c (when_request): Use symbol::is_null rather than
16939         has_arg to determine whether we have an argument.
16940         (change_trap): Remove the trap if we get an invalid number. Give
16941         an error if we don't get at least the macro name.
16942         (diversion_trap): Remove trap if we get an invalid name or number.
16944         * troff/env.c (environment_switch): Pop if we get an invalid
16945         symbol or numeric expression.
16947         * troff/input.c (do_define_macro):  If EOF is encoutered while
16948         defining the macro, do tok.next() before returning.
16950         * troff/token.h (has_arg): Move definition from here, to ...
16951         * troff/input.c (has_arg): ... here
16953         * troff/env.c (space_size): Do nothing if we get an invalid argument.
16954         * troff/input.c (shift): Likewise.
16956         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
16957         for `.c'.
16959         * pic/troff.c (troff_output::start_picture):  Comment out calls to
16960         `..'.
16962         * eqn/main.c (do_file): Subtract 1 from current_lineno if
16963         interpret_lf_args succeeds.
16965         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
16966         \\.  This avoids problems with \$N.
16968         * groff.sh: Pass -C to preprocessors.
16970         * lib/lf.c (interpret_lf_args):  Be more flexible.
16972         * tbl/main.c (main): Add -C option.
16973         (table_input::get): Do not recognize TE if followed by character
16974         other than a space or newline unless -C option given.
16975         (process_input_file): Likewise for lf, TS.
16976         (process_data): Likewise for lf in text blocks.
16978         * eqn/main.c (main): Add -C option.
16979         (do_file): Don't recognize EQ, EN or lf if followed by character
16980         other than space or newline unless -C option given.
16981         * eqn/lex.c (file_input::read_line): Similarily.
16982         * eqn/eqn.h: Declare compatible_flag.
16984         * etc/soelim.c (main): Add -C option.
16985         (interpret_lf_args): Use version in libgroff.
16986         (do_file):
16988         * pic/main.c (main): Add -C option, which sets compatible_flag.
16989         (top_input::get), (top_input::peek):  If -C option not given,
16990         do not recognize .PS/.PE/.PF/.lf if followed by a character
16991         other than space or newline.
16992         * pic/lex.c (file_input::read_line): Similarily.
16993         * pic/pic.h: Add declaration of compatible_flag.
16995 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
16997         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
16999         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
17000         derived from node.  New class space_char_hmotion_node.
17001         * troff/input.c (asciify_macro): New function.
17002         * troff/input.c (init_input_requests): New request `asciify' bound
17003         to asciify_macro.
17004         * macros/mm.diff: New file.
17005         * Makefile:  In install.mm target use `patch' to apply
17006         macros/mm.diff.
17008         * troff/input.c (macro::print_size): Just print the size in bytes.
17010         * troff/div.c (return_request): Correct the argument
17011         interpretation.
17013 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
17015         * troff/node.h (class composite_node): Add sz member.
17016         * troff/node.c (composite_node::size): Return sz.
17017         * troff/input.c (macro_to_node):  Use the initial size in the
17018         environment as the size of the composite_node.
17020         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
17021         default.
17023 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
17025         * troff/div.c (change_trap): If we get a bad number expression,
17026         do nothing.
17028 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
17030         * lib/matherr.c (matherr): Define this only if math.h defines
17031         TLOSS.
17033 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
17035         * troff/div.c (macro_diversion::distance_to_next_trap): If there
17036         no diversion trap return vunits(INT_MAX - vresolution).
17038 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
17040         * troff/input.c (do_zero_width): New implementation that doesn't
17041         use a temporary environment. Use instead:
17042         (token::add_to_node_list): New function.
17043         * troff/env.c (environment::get_prev_char_height),
17044         (environment::get_prev_char_height),
17045         (environment::get_prev_char_skew): New functions.
17046         (environment::get_prev_char): New function.
17047         (environment::get_prev_char_width): Change to use get_prev_char.
17048         (init_env_request): Implement new registers .cht, .cdp, .csk.
17049         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
17050         \Z being processed in a separate environment.
17052 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
17054         * tbl/table.c: Removed TABLE_BOTTOM_REG.
17056         * tbl/table.c (table::init_output): In the section release macro,
17057         give a warning message if the section won't fit on one page.
17059         * tbl/table.c (table::do_top): Emit table keep only if table is
17060         boxed.
17061         (table::do_bottom): Likewise for table release.
17062         (table::table), (table::add_vertical_rule):  Remove reference to
17063         keep member.
17064         * tbl/table.h: Remove keep member.
17066         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
17067         SECTION_RELEASE_MACRO, if there's not enough space before the next
17068         trap to output the diversion, call T# ourselves, set
17069         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
17070         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
17071         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
17072         vertical position and return to it before turning traps on again.
17073         
17074 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
17076         * troff/node.c, troff/node.h: In classes derived from node,
17077         replace prev_char_width method by last_char_node method.
17078         * troff/env.c (environment::get_prev_char_width): Use
17079         node::last_char_node rather than node::get_prev_char_width.
17081         * Makefile: Added comment about -fno-inline on 68030-based
17082         Apollos.
17084         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
17085         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
17086         expressions using sizeof to int.
17087         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
17089         * macros/tmac.e (TS):  Don't move @f back past the current
17090         position.
17092 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
17094         * ps/ps.c (main): Buffer stderr.
17095         * dvi/dvi.c (main): Likewise.
17096         * tty/tty.c (main): Likewise.
17098         * ps/ps.c (ps_printer::do_import): Improve error handling.
17100         * troff/input.c (abort_request): Use asciify.
17102         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
17103         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
17104         type of first argument int rather than char.  This works around a
17105         bug on the 68030 based Apollo using g++ 1.37.1.
17107         * tbl/table.h (class table): Add `keep' member.
17108         * tbl/table.c (table::table): Initialize `keep'.
17109         (table::add_vertical_rule): Set `keep' to 1.
17110         (table::do_top): Only emit table keep macro is `keep' is non-zero.
17111         (table::do_bottom): Likewise for table release macro.
17112         (table::do_row): Emit section keep macro even if the row is 0.
17114 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
17116         * macros/tmac.e (@C): Preserve the font family across the change
17117         in environments.
17119 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
17121         * lib/font.c: Initialize font::hor and font::vert to 1.
17122         (font::load_desc): Check the values of font::hor and font::vert.
17124         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
17125         be included in a C compilation.
17126         (iftoa): Use INT_DIGITS. Include lib.h.
17127         (itoa): Likewise.
17128         (as_string): Likewise.
17129         * tbl/table.c: Removed definition of INT_DIGITS.
17130         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
17131         * troff/input.c (input_input_requests): Likewise.
17132         * ps/ps.c (make_encoding_name): Likewise.
17133         (ps_printer::set_style): Likewise.
17134         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
17136         * tty/devascii/R.proto: Map fm onto '.
17137         * tty/devlatin1/R.proto: Likewise.
17139 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
17141         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
17142         argument to \w is at a different input level.
17144         * tbl/table.c (table::init_output): Define a new macro
17145         REPEATED_VPT_MACRO, like vpt but if in a diversion also
17146         transparently outputs itself.
17147         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
17148         vpt.
17149         (table::do_row): Likewise.
17151         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
17152         TRANSPARENT_STRING_NAME.
17154         * tbl/table.c (table::init_output): In the table release macro
17155         print an error message and don't produce any output if after
17156         issuing the need request the table still will not fit.  Also
17157         remove the diversion after bringing it back.
17159         * tbl/table.c (table::init_output): Define a new macro
17160         REPEATED_MARK_MACRO, like mk but if in a diversion also
17161         transparently outputs itself.
17162         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
17163         is necessary because .TH might not call .T#.
17164         (table::do_top): Likewise TOP_REG.
17165         (table::define_bottom_macro): If TOP_REG is no longer valid, use
17166         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
17167         table header might contain just the two top rules.
17169 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
17171         * troff/div.c: Implement new request `ptr' to print all traps.
17173         * troff/env.c (init_env_requests): Implement `.tabs' reg with
17174         init_string_env_reg.
17175         * troff/env.c (class tab_reg): Deleted.
17177 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
17179         * troff/div.c: New number register .pn returns the number of the
17180         next page as set by the pn request.
17182         * macros/tmac.an: Redid headers and footers.  Number each manual
17183         entry starting from 1 unless \nC is > 0, like Sun.  Added an
17184         optional 5th argument to .TH which specifies the manual name and
17185         appears in the center of the header.  Understand the X, P and D
17186         registers like Sun.
17188 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
17190         * troff/env.c (init_env_requests): New number register `.lt' to
17191         return the title length.
17193         * troff/node.h (class transparent_dummy_node): New class.
17194         * troff/node.c (class transparent_dummy_node): Provide member
17195         functions. 
17196         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
17197         than a dummy_node.
17199         * troff/input.c (token::next): New escape sequence \).
17200         * troff/input.c (get_copy): Recognize \) in copy mode.
17202         * troff/input.c (input_stack::clear): New function.
17203         * troff/input.c (exit_request): Use input_stack::clear.
17205         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
17206         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
17208         * troff/env.c: Move set_page_character to input.c.  Move
17209         page_character to input.c also.
17210         * troff/env.c (title): Split off the reading of the parts of the
17211         title into read_title_parts.
17212         * troff/input.c (read_title_parts): New function.  Check the
17213         input_level when testing whether a token matches the delimiter.
17215         * troff/input.c (exit_request): New function.
17216         * troff/input.c (init_input_requests): Bind ex request to
17217         exit_request rather than exit_groff.
17219         * troff/input.c (exit_groff): Call tok.next() before
17220         process_input_stack().
17222 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
17224         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
17225         * troff/env.h: ditto.
17226         * troff/input.c: ditto.
17228         * troff/env.c (environment::is_empty): Test pending_lines.
17230         * troff/env.c (environment::have_pending_lines): Removed.
17232         * troff/input.c: Add request to flush pending lines from the
17233         environment.
17235         * troff/env.c, troff/env.h: Add automatic widow control feature.
17237         * troff/input.c (exit_groff):  Do process_input_stack() after
17238         do_break() but before setting exit_flag to 2.
17240         * troff/input.c: Remove FLUSH_PENDING_LINES and
17241         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
17242         environment after END_TRAP token seen, but only if there aren't
17243         any more traps still unfinished.
17244         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
17246 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
17248         * troff/env.c: Rename the `retain_size' member of class
17249         pending_output_line to `no_fill'.
17251         * troff/env.c (title): When the line is output, make the
17252         retain_size argument !fill.
17254         * troff/node.h: Add `hyphenated' member to struct breakpoint.
17255         * troff/node.c (space_node::get_breakpoints),
17256         (dbreak_node::get_breakpoints):  Fill this in.
17257         * troff/env.c:  Allow specification of maximum number of
17258         consecutive hyphenated lines.
17260         * troff/env.c (environment::is_empty): Add test for !current_tab.
17262 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
17264         * troff/env.c (environment::hyphenate_line): Don't completely give
17265         up if the word is not to be hyphenated; continue so that breaks
17266         can be made at break_char_node's.
17268         * lib/lib.h: Only define INT_MAX if it's not already defined;
17269         undef INT_MIN if it's already defined.
17271         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
17273         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
17274         This works around a bug in AT&T C++ 2.0 used with an ANSI C
17275         compiler.
17276         
17277         * macros/tmac.an (an-header): Set no-space mode.
17279         * macros/tmac.an (TH): Start a new page if necessary.
17281         * Started using ChangeLog at version 0.4.
17283 Local Variables:
17284 version-control: never
17285 coding: latin-1
17286 End: