* tmac/groff_ms.man, doc/groff.texinfo: Document changes from
[s-roff.git] / ChangeLog
blob418925fdced64bb9886f3f09a651873cee9af03a
1 2004-09-23  Keith Marshall  <keith.d.marshall@ntlworld.com>
3         * tmac/groff_ms.man, doc/groff.texinfo: Document changes from
4         2004-09-19.
6 2004-09-23  Werner LEMBERG  <wl@gnu.org>
8         * tmac/an-old.tmac (ne): Using default scaling operator.
10 2004-09-19  Keith Marshall  <keith.d.marshall@ntlworld.com>
12         This change implements the following features:
14         PORPHANS
15           New numeric register: Defines number of lines following LP, PP,
16           QP, IP or XP, which must be kept together, before any automatic
17           page break.  If insufficient space remains on the current page, a
18           page break is forced before the new paragraph begins.
20         HORPHANS
21           New numeric register: Sets number of lines of following paragraph
22           which must be kept with a heading, defined by NH or SH, before any
23           automatic page break.  If insufficient space remains on the
24           current page, a page break is forced before the heading.
26         GROWPS
27           (Thanks to Joerg van den Hoff, for this idea).
29           New numeric register: Sets the first level of heading (set with
30           NH), which will keep the same point size as body text; e.g. if
31           GROWPS is set to 3, .NH 3, .NH 4, ... will produce headings at the
32           point size specified by \n[PS], but .NH 2 and .NH 1 will have
33           progressively larger point sizes, determined by \n[PSINCR] (see
34           below).
36         PSINCR
37           New numeric register: Sets the point size increment for each level
38           of heading, (set with NH), below the threshold level set by
39           GROWPS; e.g. if \n[PS] = 10, \n[GROWPS] = 3 and \n[PSINCR] = 2.0p,
40           then .NH 1 will produce 14pt headings, .NH 2 will produce 12pt,
41           and all other levels will remain at 10pt, (because \n[PS] = 10).
43         SH
44           Existing macro now accepts a numeric argument, to make heading
45           size match that of NH with same argument value, when the
46           GROWPS/PSINCR feature is enabled.
48         SN-DOT
49           New string, set by NH macro, replaces the existing (undocumented)
50           use of SN, to represent the assigned section number.
52         SN-NO-DOT
53           New string, set by NH macro, represents the assigned section
54           number, but omits the terminal period (periods at intermediate
55           levels are retained).
57         SN
58           String set by NH macro, originally undocumented, now implemented
59           as an alias for SN-DOT (which reproduces original behaviour).
61         * tmac/s.tmac (PORPHANS): New register.
62         (par*start): Use it.
63         (HORPHANS, GROWPS, PSINCR): New registers.
64         (SH-NO-TAG, @SH): Use them.
65         (@NH): Improved.
67 2004-09-19  Keith Marshall  <keith.d.marshall@ntlworld.com>
69         * NEWS, doc/groff.texinfo, tmac/groff_ms.man: Document the deletion
70         of `Ds' and `De' macros.
72 2004-09-10  Werner LEMBERG  <wl@gnu.org>
74         In tbl, handle \a as an interpreted leader character if in
75         compatibility mode.
77         * src/preproc/tbl/table.h (PREFIX, PREFIX_CHAR, LEADER,
78         LEADER_CHAR): New macros.
79         (compatible_flag): New declaration.
81         * src/preproc/tbl/main.cpp (table_input): Add LEADER_1, LEADER_2,
82         LEADER_3, and LEADER_4 to `state'.
83         (table_input::get): Handle `\a'.
85         * src/preproc/tbl/table.cpp (PREFIX): Removed.
86         (LEADER_REG): New macro.
87         (table::init_output): Define LEADER_REG string register if in
88         compatibility mode.
90         * src/preproc/tbl/tbl.man: Document it.
92 2004-08-18  Werner LEMBERG  <wl@gnu.org>
94         * tmac/doc.tmac (An): Fix error message.
96 2004-08-06  Werner LEMBERG  <wl@gnu.org>
98         * src/preproc/tbl/main.cpp (main): Call `fatal' not `error' if a
99         file can't be opened.  UNIX tbl has the same behaviour.
101 2004-08-05  Y T  <doarhop@hotmail.com>
103         * src/preproc/grn/hdb.cpp (compatibility_flag): Add declaration.
104         (DBRead): If in compatibility mode, take into account the text
105         when computing figure boundaries.
107 2004-08-05  Werner LEMBERG  <wl@gnu.org>
109         * src/preproc/soelim/soelim.man: Improved.  Based on suggestions
110         from Tadziu Hoffmann.
112 2004-08-03  Werner LEMBERG  <wl@gnu.org>
114         * doc/meref.me: Document `_M' register.
116 2004-08-03  Martin Husemann  <martin@duskware.de>
118         Make hpftodit work correctly on big-endian systems.
120         * src/utils/hpftodit/hpftodit.cpp (File): New method
121         `get_uint32(char *)'.
122         (entry): New member `orig_value'.
123         (read_tags): Use new method.
124         (output_font_name, read_and_output_pcltypeface, dump_ascii):
125         Updated.
127 2004-08-01  Werner LEMBERG  <wl@gnu.org>
129         * tmac/s.tmac: Undo change 2003-06-29.  The proper macro definitions
130         are already in X11's `macros.t' file.
132 2004-08-01  Jeff Conrad  <jeff_conrad@msn.com>
134         * src/utils/hpftodit/hfptodit.cpp (output_font_name, dump_ascii):
135         Fix casting bug.
136         (read_and_output_pcltypeface): Handle strings with length <= 4.
138 2004-07-27  Egil Kvaleberg  <egil@kvaleberg.no>
140         * tmac/s.tmac (pg@top): Don't save `PO' register.
141         (pg*end-col, pg*end-page): Directly use `PO' register.
143 2004-07-27  Werner LEMBERG  <wl@gnu.org>
145         * man/groff_tmac.man: Mention `trace' and `pic' macro packages.
147         * src/preproc/refer/refer.cpp (output_references): Check for
148         empty hash table.
149         * src/preproc/refer/refer.man: Improve documentation of
150         `bibliography' command.
152 2004-07-26  Werner LEMBERG  <wl@gnu.org>
154         Add requests `fcolor' and `gcolor'.
156         * src/roff/troff/env.cpp (fill_color_change, glyph_color_change):
157         New functions.
158         (init_env_requests): Add `fcolor' and `gcolor'.
160         * src/roff/troff/input.h: Export do_glyph_color and do_fill_color.
162         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
163         Document new requests.
165 2004-07-24  Werner LEMBERG  <wl@gnu.org>
167         Add support for fractional point sizes in ms macros.  A value for
168         PS, VS, FPS, and FVS greater than or equal to 1000 is always divided
169         by 1000.  For example, `.nr PS 10250' sets the font size to 10.25p.
171         * tmac/s.tmac (@AU, @AI, par@load-init, par@init, par@reset, NL,
172         PX): Handle fractional point sizes for PS, VS, FPS, and FVS.
174         * tmac/groff_ms.man, docs/groff.texinfo, NEWS: Document it.
176 2004-07-19  Werner LEMBERG  <wl@gnu.org>
178         * src/preproc/pic/lex.cpp (for_input): Add member `from'.
179         Update constructor.
180         (do_for, for_input::get, for_input::peek): Handle negative `by'.
181         * src/preproc/pic/pic.man, doc/pic.ms, NEWS: Document it.
183 2004-07-08  Thomas Klausner  <wiz@netbsd.org>
185         * tmac/doc-syms (doc-str-St--p1003.1-2004): New string.
186         * tmac/groff_mdoc.man: Updated.
188 2004-07-05  Werner LEMBERG  <wl@gnu.org>
190         * doc/groff.texinfo: Further improve documentation of `hcode'.
192 2004-07-04  Sang Dae Yu  <sdyu@bh.knu.ac.kr>
194         Improve appearance of arrows in pic.
196         * src/preproc/pic/object.cpp (draw_arrow): Make outline of filled
197         arrow head thin.
198         Use two line segments for drawing non-filled arrow head.
199         (line_object::print, spline_object::print): Shorten line length to
200         avoid arrow sticking.
201         (arc_object::print): Take arrow direction into account.
203 2004-07-03  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
205         * tmac/groff_www.man: Update documentation of .MPIMG.
207 2004-07-03  Werner LEMBERG  <wl@gnu.org>
209         * tmac/an-old.tmac (RI): Always start with font `R'.
210         (RI, IR): Properly end with font `R'.
212 2004-07-02  Paul Eggert  <eggert@cs.ucla.edu>
214         * man/ditroff.man, man/groff_font.man, man/groff_out.man,
215         src/devices/grohtml/grohtml.man, src/preproc/grn/grn.man,
216         src/preproc/pic/pic.man, tmac/groff_man.man, tmac/groff_ms.man:
217         Don't pass more than six arguments to .R, .I, .B, etc., for
218         compatibility with traditional troff macros.
220 2004-07-02  Werner LEMBERG  <wl@gnu.org>
222         * src/roff/troff/input.h: s/COMPATIBLE_SAVE/PUSH_GROFF_MODE/.
223         s/COMPATIBLE_RESTORE/POP_GROFFCOMP_MODE/.
224         Update all users.
225         (PUSH_COMP_MODE): New internal character constant.
226         Update all users.
228         * src/roff/troff/input.cpp (get_copy): Handle PUSH_GROFF_MODE,
229         PUSH_COMP_MODE, and POP_GROFFCOMP_MODE.
230         (token::next, macro::append): Handle PUSH_COMP_MODE.
231         (decode_args): Add PUSH_GROFF_MODE or PUSH_COMP_MODE before and
232         POP_GROFFCOMP after each of the decoded arguments to make them
233         independent from the compatibility mode status.
234         (comp_mode): Add `COMP_ENABLE'.
235         (do_define_string, do_define_macro): Handle COMP_ENABLE.
236         (define_string, append_string, define_macro, define_indirect_macro,
237         append_macro, append_indirect_macro): Handle `compatible_flag'.
238         (chop_macro, substring_request, asciify): Handle PUSH_COMP_MODE.
240         * man/groff_diff.man, doc/groff.texinfo: Updated.
242 2004-07-01  Werner LEMBERG  <wl@gnu.org>
244         * doc/groff.texinfo: Improve documentation of `hcode'.
245         Use @documentencoding and convert document to latin-1; to do that
246         make latin characters active and assign proper macros (within a
247         @tex...@end tex environment).
248         * doc/Makefile.in (.texinfo.html, groff): Use --enable-encoding.
249         * doc/Makefile.sub (groff): Ditto.
251 2004-06-29  Werner LEMBERG  <wl@gnu.org>
253         Implement two new conditional operators `F <name>' and `S <name>'
254         which check whether <name> is a valid font or style, respectively.
256         * src/libs/libgroff/font.cpp (text_file): Add `silent' member.
257         (text_file::text_file): Updated.
258         (text_file::error): Don't emit message if `silent' is set.
259         (font::load_font): Add optional third argument (which is directly
260         passed to `load'.
261         (font::load): Add optional second argument to check the header of
262         a font only, without emitting warning or error messages.
263         * src/include/font.h (font): Updated.
265         * src/roff/troff/input.cpp (do_if_request): Implement `S' and `F'
266         conditionals.
267         * src/roff/troff/node.cpp (mount_font_no_translate): Add optional
268         fourth argument to check a font without mounting.
269         (check_font, check_style): New functions.
270         * src/roff/troff/node.h: Updated.
272         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
273         Updated.
275 2004-06-27  Werner LEMBERG  <wl@gnu.org>
277         Implement new string-valued register `.sty' to return the current
278         style name.
280         * env.cpp (environment::get_style_name_string): New function.
281         (init_env_requests): Add `.sty' register.
282         * env.h (environment): Updated.
283         * node.cpp (font_info): Make `get_style_name' a friend.
284         (get_style_name): New function.
285         * node.h: Updated.
287         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
288         Updated.
290 2004-06-15  Werner LEMBERG  <wl@gnu.org>
292         * src/preproc/tbl/main.cpp (process_data) <GOT_RIGHT_BRACE>: Handle
293         `nospaces' option.
295 2004-06-10  Colin Percival  <colin.percival@wadham.ox.ac.uk>
297         * doc/meintro.me, doc/meref.me: Don't use \*[td], \n[dy], \*[mo],
298         and \n[mo] to avoid dependency on current date.
300 2004-06-08  Werner LEMBERG  <wl@gnu.org>
302         * Makefile.sub (install_data): New target.
304 2004-06-04  Werner LEMBERG  <wl@gnu.org>
306         * src/libs/libxutil/Makefile.sub (EXTRA_CFLAGS): Define.
308 2004-06-03  Werner LEMBERG  <wl@gnu.org>
310         * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Fix typo and
311         order of libraries.
312         (install_data): Add $(srcdir).
314         * src/utils/xtotroff/Makefile.sub (EXTRA_LDFLAGS): Fix order of
315         libraries.
317 2004-06-02  Werner LEMBERG  <wl@gnu.org>
319         * aclocal.m4 (GROFF_X11): s/have_no_x/groff_no_x/.
320         Add X11 stuff to CFLAGS, LDFLAGS, and LIBS temporarily.
321         Add test for Xmu library.
322         (GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
323         GROFF_APPRESDIR_DEFAULT): New macros.
325         * configure.ac: Call GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
326         and GROFF_APPRESDIR_DEFAULT.
328         * configure: Regenerated.
330         * Makefile.in (appresdir): New variable.
331         (MDEFINES): Add appresdir.
333         * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Add -Xmu and
334         -Xt.
335         (install_data, uninstall_sub): New targets to handle GXditview.ad.
337         * src/utils/indxbib/Makefiles.ub (install_data): Depend on
338         `$(srcdir)/eign', not `eign'.
340         * MANIFEST, INSTALL, NEWS, PROBLEMS: Updated.
342         * man/groff_out.man, man/roff.man, src/devices/grops/grops.man,
343         src/devices/xditview/gxditview.man, src/roff/groff/groff.man:
344         Protect (g)xditview with `\%' to avoid hyphenation.
345         Other minor formatting.
347 2004-06-01  Werner LEMBERG  <wl@gnu.org>
349         Integrate gxditview into groff's standard directory hierarchy.
351         * src/xditview/*: Moved to ...
352         * src/devices/xditview/*: Here.
353         Moved DviChar.h and XFontName.h to src/include.
354         Moved DviChar.c and XFontName.c to new directory src/libs/libxutil.
355         Split off `xmalloc' into new file src/libs/libxutil/xmalloc.c.
356         Moved xtotroff.c to new directory src/utils/xtotroff.
357         Provide proper Makefile.sub files (reusing the stuff from
358         Imakefile.in).
359         DESC renamed to DESC.in.
360         Removed GXDitview-ad.h, INSTALL, Imakefile.in.
361         Converted everything from K&R to ANSI C.
362         Decorated with const where appropriate.
363         Cast string constants with `String' and `char *' where appropriate.
364         Made it compile with C++ (used as a C compiler).
365         Removed other minor compiler warnings.
367         * src/devices/xditview/device.c: Include config.h, string.h, and
368         defs.h.
369         Don't declare `exit', `strtok', `strchr', and `getenv'.
370         (FONTPATH): Remove.
372         * src/devices/xditview/font.c: Don't declare `XParseFontName' and
373         `XFormatFontName'.
375         * src/devices/xditview/xditview.c: Include config.h.
376         Include stdio.h earlier.
377         Protect declaration of `popen' and `pclose' with
378         NEED_DECLARATION_POPEN and NEED_DECLARATION_PCLOSE.
379         Replace `caddr_t' with `XtPointer'.
380         (MakePromptFunc): New typedef.
381         (DoPrint): Use RETSIGTYPE.
382         (promptfunction): Change type to MakePromptFunc.
383         (MakePrompt): Use MakePromptFunc for third argument.
384         (xmalloc): Removed.
386         * src/devices/xditview/ad2c: Add casts to `String'.
388         * src/include/XFontName.h (XFontNameString): Don't use array
389         notation.
390         Add prototypes for `XParseFontName', `XFormatFontName',
391         `XCompareFontName', and `XCopyFontName'.
393         * src/include/Makefile.sub (HDRS): Add `DviChar.h' and
394         `XFontName.h'.
396         * src/utils/xtotroff/xtotroff.c: Include getopt.h.
397         Don't declare `XParseFontName' and `XFormatFontName'.
398         (xmalloc): Removed.
399         (main): Remove `optind' and `optarg'.
401         * Makefile.in (XDEVDIRS, XPROGDIRS, XLIBDIRS): New variables
402         (to select programs which need X).
403         Make XDEVIDIRS depend on `FORCE'.
404         (X_CFLAGS, X_LIBS, X_EXTRA_LIBS, X_PRE_LIBS): New variables (for
405         X support).
406         (MDEFINES): Updated.
407         (LIBDIRS): Use XLIBDIRS.
408         (CPROGDIRS): Use XPROGDIRS.
409         (DEVDIRS): Remove font directories for gxditview.
410         (ALLDIRS, DISTDIRS): Add XDEVDIRS.
411         (EXTRADIRS): Remove src/xditview.
413         * Makefile.sub (DISCLEANFILES): Updated.
415         * Makefile.comm (LIBXUTIL): New variable.
416         (.cpp.o, .cpp.obj): Handle EXTRA_CCFLAGS.
417         (.c.o, .c.obj, .y.o): Handle EXTRA_CFLAGS.
419         * Makefile.cpg, Makefile.ccpg ($PROG): Handle EXTRA_LDFLAGS.
421         * aclocal.m4 (GROFF_X11): New function.
423         * configure.ac: Call GROFF_X11.
424         Don't create src/xditview/Imakefile.
425         Don't emit notice how to build gxditview.
427         * configure: Regenerated.
429         * test-groff.in (GROFF_BIN_PATH, XENVIRONMENT): Updated.
431 2004-05-28  Akihiro Sagawa  <sagawa@sohgoh.net>
433         * Makefile.in (CPPFLAGS): Define.
434         (MDEFINES): Add CPPFLAGS.
436 2004-05-27  Werner LEMBERG  <wl@gnu.org>
438         * arch/misc/Makefile.sub (shdeps.sed): Use $(srcdir).
440 2004-05-26  Niklas Edmundsson  <nikke@acc.umu.se>
442         Fix problems with `friend name injections'.
444         * src/preproc/eqn/box.h (make_mark_box, make_lineup_box,
445         make_script_box), src/roff/troff/div.h (end_diversions),
446         src/roff/troff/env.h (title), input.cpp (process_input_stack): Undo
447         change 2004-04-08.
449 2004-05-25  Bernd Warken  <bwarken@mayn.de>
451         * src/preproc/pic/pic.man, doc/pic.ms: Add example for `command'.
453 2004-05-25  Werner LEMBERG  <wl@gnu.org>
455         * src/libs/libgroff/cset.cpp, src/libs/libgroff/lf.cpp,
456         src/libs/libgroff/color.cpp: Include lib.h.
458 2004-05-25  Paul Eggert  <eggert@cs.ucla.edu>
460         * PROBLEMS: Update documentation for problems with Sun C++ 5.0
461         through Forte 6u1, and for how to get GNU make on Solaris.
463 2004-05-24  Werner LEMBERG  <wl@gnu.org>
465         * PROBLEMS: Document problems with gcc 3.4.0 on Sun.  Reported
466         by Paul Eggert.
468 2004-05-15  Keith Marshall  <keith.d.marshall@ntlworld.com>
470         * arch/misc/Makefile.sub (shdeps.sed): Don't use `$<' in explicit
471         rule.
473 2005-05-14  Werner LEMBERG  <wl@gnu.org>
475         * REVISION: Set to 2.
477         * aclocal.m4 (GROFF_STDINT_H): Removed.
478         (GROFF_INTTYPES_H): Define HAVE_CC_INTTYPES_H.
480         * configure.ac: Updated.
481         * configure, src/include/config.hin: Regenerated.
483         * src/libs/libgroff/tmpname.cpp: Don't include stdint.h but
484         inttypes.h conditionally.
486 2003-05-13  Werner LEMBERG  <wl@gnu.org>
488 Version 1.19.1 released
489 =======================
491 2004-05-10  Stephen Gildea  <http://www.gildea.com/stephen>
493         * src/preproc/refer/label.y (same_author_last_name,
494         same_author_name): Handle empty sort keys.
496 2004-05-10  Werner LEMBERG  <wl@gnu.org>
498         * NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,
499         tmac/TODO: Updated.
501         * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
502         doc-str-Lb-librt): Reset font.
503         (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
504         Provide `doc-str-Lb' to reset font.
505         * tmac/groff_mdoc.man: Updated.
507 2004-05-08  Jan Schaumann  <jschauma@netmeister.org>
509         * src/preproc/html/pre-html.cpp (make_message): Make it work for
510         snprintf versions which don't conform to ANSI C 99 (this is,
511         counting the string's trailing null byte in the return value).
513 2004-05-07  Keith Marshall  <keith.d.marshall@ntlworld.com>
515         * src/roff/troff/node.cpp (suppress_node::tprint): Don't expect
516         that all implementations of sprintf handle null pointers correctly.
518 2004-05-04  Werner LEMBERG  <wl@gnu.org>
520         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
521         Document `.U' register.
523         * src/roff/troff/env.cpp (environment::mark_last_line)
524         [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers.
526 2004-05-04  Larry Kollar  <kollar@alltel.net>
528         New read-only register `.U'; it returns 1 in safer mode and 0
529         otherwise.
531         * src/roff/troff/input.cpp (init_input_requests): Implement `.U'
532         register.
534 2004-05-03  Werner LEMBERG  <wl@gnu.org>
536         * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
538 2004-04-17  Werner LEMBERG  <wl@gnu.org>
540         * src/include/font.h (font): Use `int' for ch_index.
541         * src/libs/libgroff/font.cpp (font::alloc_ch_index,
542         font::compact): Updated.
544         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
545         warnings.
547         * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
548         (hyphen_word): Fix compiler warnings.
549         * src/roff/troff/input.cpp (get_char_for_escape_name): Return
550         `char'.
551         Update all callers.
552         (get_delim_number, get_line_arg): Change second argument type to
553         `unsigned char'.
554         (macro_header::copy, token::next, do_define_string,
555         do_define_character, substring_request, asciify_macro,
556         unformat_macro, read_size, non_interpreted_node::interpret,
557         while_request, main: Fix compiler warnings.
558         (read_color_draw_node): Initialize `col'.
560         * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
561         `start_col' and `end_col' of type `int'.
562         (vertical_rule): Make `col' of type `int'.
564         * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
565         for EOF.
567         * src/preproc/refer/label.y (uppercase_array, lowercase_array):
568         New arrays.
569         (format_serial): Use them to remove dependency on ASCII.
571         * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
572         compiler warning.
573         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
574         Ditto.
576         * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
577         compiler warnings.
578         (glyph): Change type of `hpos' to `int'.
580         * src/devices/lbp/lbp.cpp (strsep): Removed.  Unused.
581         * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
583         * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
585         * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
587 2004-04-16  Werner LEMBERG  <wl@gnu.org>
589         * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
590         src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
591         src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
592         `double' instead of `float' everywhere.
593         * src/preproc/grn/main.cpp: Use `double' instead of `float'
594         everywhere.
595         (main): Add return value.
596         * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
597         everywhere.
598         Update all user functions.
600         * src/include/search.h, src/include/ptable.h, src/include/printer.h,
601         src/preproc/eqn/box.h, src/preproc/pic/object.h,
602         src/preproc/refer/refer.h, src/preproc/tbl/table.h,
603         src/preproc/tbl/table.cpp, src/roff/troff/env.h,
604         src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
605         src/roff/troff/input.cpp, src/roff/troff/request.h,
606         src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
607         declarations.
609         * src/utils/indxbib/signal.c: Include stdlib.h.
611 2004-04-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
613         * tmac/s.tmac (@init, RP): Allow initialization of the PO register
614         before the first page.
616 2004-04-14  Thomas Klausner  <wiz@netbsd.org>
618         * tmac/doc-common (doc-volume-as-*): Use lowercase names.
619         (doc-operating-system-*): Updated.
620         * tmac/doc-syms (doc-str-St-*): Various small fixes.
621         (doc-str-Lb-*): Add more library names.
623 2004-04-10  Art Haas  <ahaas@airmail.net>
625         * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
626         use anonymous type.
628 2004-04-09  Art Haas  <ahaas@airmail.net>
630         * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
632 2004-04-09  Keith Marshall  <keith.d.marshall@ntlworld.com>
634         * arch/misc/shdeps.sh: Generate better comment for sed script.
636 2004-04-08  Art Haas  <ahaas@airmail.net>
638         * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
639         src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
640         src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
641         src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
642         (polyfill), src/preproc/grn/main.cpp (polyfill),
643         src/preproc/refer/command.cpp (command_table),
644         src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
645         gcc 3.5 doesn't like).
647 2004-04-08  Werner LEMBERG  <wl@gnu.org>
649         Removing many compiler warnings.  groff should now compile with
650         a C++ compiler used for C files also.  [Simple variable renamings
651         to avoid shadowing aren't logged in detail.]
653         * src/devices/grodvi/dvi.cpp: Some local variable renamings.
654         (draw_dvi_printer::draw) ['c']: Enclose in block.
656         * src/devices/grohtml/post-html.cpp: Some local variable renamings.
657         (page::add_line): Fix typos.
658         * src/devices/grohtml/html-text.cpp: Some local variable renamings.
660         * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
661         Some local variable renamings.
662         * src/devices/grolbp/lbp.h: Some local variable renamings.
664         * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
665         variable renamings.
667         * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
668         Remove redundant local variable declaration.
669         * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
670         Don't use `caddr_t' but `void *'.
671         Enclose functions with `extern "C"' for C++.
673         * src/libs/libdriver/input.cpp (remember_filename,
674         remember_source_filename): Use cast for string constant.
676         * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
677         src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
678         src/libs/libgroff/geometry.cpp: Some local variable renamings.
679         * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
680         style.
681         Enclose functions with `extern "C"' for C++.
682         * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
683         (needs_quoting): Return `int'.
684         (quote_arg): Add proper casts to malloc and realloc.
685         * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
686         various MS Windows environments.
687         (spawnvp_wrapper): Add proper cast to malloc.
689         * src/preproc/eqn/box.h: Remove redundant declarations of
690         `make_script_box', `make_mark_box' and `make_lineup_box'.
691         * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
692         * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
693         variable renamings.
695         * src/preproc/grn/hpoint.cpp: Some local variable renamings.
696         * src/preproc/grn/hgraph.cpp: Some local variable renamings.
697         (dx, dy): Renamed functions to...
698         (deltax, deltay): This.
699         * src/preproc/grn/main.cpp: Some local variable renamings.
700         (deffont): Add `const'.
701         (initpic, conv): Use cast for string constant.
703         * src/preproc/html/pre-html.cpp: Some local variable renamings.
704         (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
705         (char_buffer::run_output_filter): Second argument is unused.
706         * src/preproc/html/pushback.cpp: Some local variable renamings.
708         * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
709         * src/preproc/pic/object.cpp: Some local variable renamings.
711         * src/preproc/refer/label.y (lookup_label): Remove redundant
712         declaration of local variable.
714         * src/preproc/soelim.cpp: Remove redundant declaration of
715         `interpret_lf_args'.
717         * src/preproc/tbl/main.cpp: Some local variable renamings.
719         * src/roff/groff/groff.cpp (main): Use cast for string constant.
720         * src/roff/groff/pipeline.c: Enclose declarations of `error',
721         `c_fatal', and `i_to_a' with `extern "C"' for C++.
722         Don't use C++-style comments.
724         * src/roff/troff/env.h: Remove redundant declaration of `title'.
725         * src/roff/troff/node.h, src/roff/troff/env.cpp,
726         src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
727         renamings.
728         * src/roff/troff/div.h: Remove redundant declaration of
729         `end_diversions'.
730         * src/roff/troff/troff.h: Remove redundant declaration of
731         `cleanup_and_exit'
732         * src/roff/troff/input.cpp: Remove redundant declaration of
733         `handle_first_page_transition' and `process_input_stack'.
735         * src/utils/hpftodit.cpp: Some local variable renamings.
737         * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
738         for C++.
739         Don't define RETSIGTYPE.
740         * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
742         * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
743         (error): Use `const' in argument.
744         (main): Remove redundant declaration of `optind'.
745         Move declaration of `Version_string' to top-level.
747         * PROBLEMS: Document difficulties compiling signal.c if a C++
748         compiler is used for C.
750 2004-04-07  Werner LEMBERG  <wl@gnu.org>
752         * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
754 2004-04-06  Keith Marshall  <keith.d.marshall@ntlworld.com>
756         Make scripts like nroff.sh and neqn.sh portable across various
757         (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
758         non-POSIX path separators.  The idea is to extend those scripts to
759         decide at run-time (of the script) which path separator to use.
761         * arch/misc/Makefile.sub: New file.
762         * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
763         This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
764         a proper definition of the variable `GROFF_RUNTIME'.
766         * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
767         (MDEFINES): Add SH_DEPS_SED_SCRIPT.
768         (PROGDEPDIRS): New variable.
769         `FORCE' it.
770         (PROGDIRS): Add PROGDEPDIRS.
772         * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
773         Don't substitute @SEP@ and @BINDIR@.
774         * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
775         (PATH): Use GROFF_RUNTIME.
777         * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
778         Don't substitute @SEP@ and @BINDIR@.
779         * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
780         (PATH): Use GROFF_RUNTIME.
782 2004-04-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
784         * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
785         Cygwin which doesn't handle stderr correctly.
787 2004-03-08  Werner LEMBERG  <wl@gnu.org>
789         * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
790         against empty argument.  Problem reported by <cgd@broadcom.com>.
792 2004-03-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
794         * Makefile.in (SEP): Replaced with...
795         (RT_SEP, SH_SEP): Separators for the target platform's native path
796         separator and the build environment, respectively.
797         (fontpath, tmacpath): Use RT_SEP.
798         (MDEFINES): Updated.
800         * contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
801         * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
802         * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
803         * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
805 2004-03-05  Werner LEMBERG  <wl@gnu.org>
807         * fonts/devlj4/Makefile.sub (LJ4RES): Set to 1200.  This helps to
808         reduce alignment problems with newer printers which use built-in
809         TrueType fonts (instead of the older Intellifonts).  The ideal
810         solution is to provide a second set of groff metric files, but this
811         is extremely time-consuming to produce, given that HP's metric
812         files are very rudimentary.
814 2004-03-01  Werner LEMBERG  <wl@gnu.org>
816         * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
817         s/operand/argument/ in error message.
819 2004-03-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
821         * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
822         is in use.
824 2004-03-01  Antti Kantee  <pooka@netbsd.org>
826         * tmac/s.tmac (XE): Fix error message.
828 2004-02-27  Jeff Conrad  <jeff_conrad@msn.com>
830         * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
831         New macros.
833         * src/roff/groff/pipeline.c: Declare strcasecmp.
834         (run_pipeline) [_WIN32]: Use function name variants which don't
835         start with `_'.
836         Fix stream handling.
838 2004-02-27  Keith Marshall  <keith.d.marshall@ntlworld.com>
840         * src/include/nonposix.h: Fix declaration of `system_shell_name'.
841         Declare `spawnvp_wrapper' and macro definitions of spawnvp only
842         for platforms which use the native Win32 runtime libraries.
843         (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
845         * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
846         QUOTE_ARG_REALLOC_ERROR): Fix string.
848         * src/preproc/html/pre-html.cpp: Remove declaration of
849         `spawnvp_wrapper'.
850         Don't use __MINGW32__.
851         s/DEBUG_FILE/DEBUG_FILE_DIR/.
852         (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
853         (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
854         (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
855         calls to `set_redirection' and `WAIT'.
856         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
857         Fix calls to `set_redirection' and `save_and_redirect'.
858         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
859         to `set_redirection' and `save_and_redirect'.
860         (usage): Fix message.
861         (makeTempFiles, main): Use `DEBUG_FILE'.
863 2004-02-21  Werner LEMBERG  <wl@gnu.org>
865         * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
867 2004-02-21  Keith Marshall  <keith.d.marshall@ntlworld.com>
869         * src/libs/libgroff/quotearg.c: New file, providing proper argument
870         quoting for MSVC's spawn* and exec* functions.
871         * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
872         spawnvp with proper quoting for MSVC.
874         * src/libs/libgroff/assert.cpp (program_name),
875         src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
876         * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
878         * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
880         * src/include/error.h (program_name): Declare as `extern "C"'.
881         * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
883 2004-02-21  Jeff Conrad  <jeff_conrad@msn.com>
885         * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
886         spawnvp_wrapper.
887         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
889 2004-02-20  Jeff Conrad  <jeff_conrad@msn.com>
891         * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
892         variable.
893         (sbasename) [__MSDOS__ || ...]: New function.
894         (system_shell_name) [__MSDOS__ || ...]: Use a different, more
895         generic algorithm.
896         (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
897         (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
898         of XXX.
899         Use STDOUT_FILENO instead of hardcoded file handle.
900         (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
902 2004-02-19  Werner LEMBERG  <wl@gnu.org>
904         * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
905         avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
907 2004-02-18  Werner LEMBERG  <wl@gnu.org>
909         * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
910         new font and mapping files.
912 2004-02-18  Jeff Conrad  <jeff_conrad@msn.com>
913             Keith Marshall  <keith.d.marshall@ntlworld.com>
915         * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
916         an input pipe.  This is needed for the MSVC compiler to make troff's
917         `-o' option work.
919         * src/roff/troff/div.cpp: Include nonposix.h.
920         (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
922 2004-02-17  Werner LEMBERG  <wl@gnu.org>
924         * font/devlj4/generate/special.awk: New script.
925         * font/devlj4/generate/Makefile (S): Use special.awk.
926         * font/devlj4/*: Regenerated, including the following new files:
927         Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
928         MS Symbol (SYMBOL), Wingdings (WINGDINGS).
929         * NEWS: Document new lj4 fonts and revised hpftodit.
931 2004-02-17  Paco Andrés Verdú  <pandres@dragonet.es>
933         * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
935 2004-01-25  Werner LEMBERG  <wl@gnu.org>
937         * src/libs/libgroff/progname.cpp: Replaced with...
938         * src/libs/libgroff/progname.c: New file.
939         * src/libs/libgroff/Makefile.sub: Updated accordingly.
941 2004-01-17  Werner LEMBERG  <wl@gnu.org>
943         * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
945 2004-01-16  Jeff Conrad  <jeff_conrad@msn.com>
947         * font/devlj4/generate/wingdings.map,
948         font/devlj4/generate/symbol.map: Include unnamed glyphs.
949         Use groff glyph names where possible.
950         * src/devices/grolj4/lj4_font.man: Minor updates.
952 2004-01-13  Werner LEMBERG  <wl@gnu.org>
954         * tmac/www.tmac (DC): Handle TTY devices.
956         * doc/webpage.ms: Document viewCVS from ffii.org.
957         * NEWS, README: Updated.
959         * src/roff/groff/groff.man: Mention lj4_font man page.
961         * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
962         variables.
963         (FONTS): Add SYMBOL and WINGDINGS.
964         (SYMBOL, WINGDINGS): New targets.
966 2004-01-13  Jeff Conrad  <jeff_conrad@msn.com>
968         * src/devices/grolj4/lj4_font.man: New man page.
969         * src/devices/grolj4/Makefile.sub (MAN5): New variable.
970         * src/devices/grolj4.man: Mention lj4_font man page.
972         * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
973         * src/utils/hpftodit/hpftodit.man: Document it.
974         (CW): New macro.
975         Remove details about fonts (which are now in lj4_font.man).
977         * font/devlj4/generate/symbol.map,
978         font/devlj4/generate/wingdings.map: New files.
980 2004-01-12  Werner LEMBERG  <wl@gnu.org>
982         * README: Mention ffii's viewcvs access.
984 2004-01-09  Werner LEMBERG  <wl@gnu.org>
986         * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
988 2004-01-09  Jeff Conrad  <jeff_conrad@msn.com>
990         Revert most of the change from 2004-01-03 to better control used
991         symbol sets.
993         * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
994         (text_symbol_sets, special_symbol_sets): New arrays.
995         (symbol_set_table): New global variable.
996         (read_symbol_sets): Use search order given in the text_symbol_sets
997         and special_symbol_sets arrays.  If command line flag -a is not
998         given, search both arrays.
999         (output_charset): Require x_height_tag only for command line flag -i.
1001 2004-01-06  Werner LEMBERG  <wl@gnu.org>
1003         Implement string-valued registers \n[.m] and \n[.M] to return the
1004         name of the current drawing and background color, respectively.
1006         * src/roff/troff/symbol.h: Moved to...
1007         * src/include/symbol.h: Here.
1008         Small fixes to make it work outside of the `troff' directory.
1009         * src/roff/troff/symbol.cpp: Moved to...
1010         * src/libs/libgroff/symbol.cpp: Here.
1011         Small fixes to make it work outside of the `troff' directory.
1013         * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
1014         (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
1015         Updated.
1017         * src/include/color.h: Include symbol.h.
1018         (color): Add new field `nm'.
1019         * src/libs/libgroff/color.cpp (color::color): Updated.
1021         * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
1022         src/roff/troff/node.cpp, src/roff/troff/number.cpp,
1023         src/roff/troff/reg.cpp: Don't include symbol.h.
1025         * src/roff/troff/env.cpp: Don't include symbol.h.
1026         (environment::get_glyph_color_string,
1027         environment_get_fill_color_string): New member functions.
1028         (init_env_requests): Handle `.m' and `.M' registers.
1029         * src/roff/troff/input.cpp: Don't include symbol.h.
1030         (default_symbol): Moved to symbol.cpp/symbol.h.
1031         (do_glyph_color, do_fill_color, define_color): Pass symbol name
1032         to color constructor.
1033         * src/roff/troff/env.h: Updated.
1035         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1036         Document new registers.
1038 2004-01-05  Werner LEMBERG  <wl@gnu.org>
1040         * src/roff/troff/node.cpp (space_node::get_breakpoints,
1041         space_node::nbreaks): Protect against zero `next' field.
1043 2004-01-03  Jeff Conrad  <jeff_conrad@msn.com>
1045         In hpftodit, use the symbol sets offered in the TFM.
1047         * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
1048         (symbol_set, text_symbol_sets, special_symbol_sets,
1049         symbol_set_table): Removed.
1050         (get_printcode): Removed.
1051         (read_symbol_sets): Initialize `symbol_set' field with
1052         `NO_SYMBOL_SET'.
1053         Simplify code to just use the `kind' value.
1054         (output_charset): Improve output formatting.
1055         (dump_symbols): Simplified.
1057 2004-01-02  Werner LEMBERG  <wl@gnu.org>
1059         * font/devlj4/generate/text.map: Add more MSL numbers.
1061 2004-01-02  Jeff Conrad  <jeff_conrad@msn.com>
1063         * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
1064         (text_symbol_sets): Add more symbol sets.
1065         (debug_flag): New static variable (moved from `main').
1066         (get_printcode, show_symset): New functions.
1067         (main): Remove `debug_flag'.
1068         (output_charset): Use `show_symset'.
1069         (dump_symbols):  Use `show_symset'.
1070         Print symsets for all glyphs.
1071         (read_map): Actually call `unicode_to_ucode_make' but this time
1072         correctly.
1074 2004-01-01  Werner LEMBERG  <wl@gnu.org>
1076         * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
1077         Fix placement of comments.
1079 2004-01-01  Jeff Conrad  <jeff_conrad@msn.com>
1081         * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
1082         option `-d' is given.
1083         (output_charset): Improve warning messages to give more information.
1084         (dump_symbols): Make information more precise.
1085         (usage): Updated.
1086         (read_map): Don't call unicode_to_ucode_name; the glyph names must
1087         appear as-is and shouldn't be decomposed.
1089 2003-12-31  Werner LEMBERG  <wl@gnu.org>
1091         * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
1092         * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
1093         (FONTS): Add TrueType font families Arial and Times New Roman.
1094         (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
1095         * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
1096         `fl'.
1098 2003-12-31  Jeff Conrad  <jeff_conrad@msn.com>
1100         * test-groff.in (SEP): Quote value.
1101         * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
1102         `tem' to `char*' to avoid deallocation of a pointer to a constant
1103         object which some compilers don't like.
1105 2003-12-31  Werner LEMBERG  <wl@gnu.org>
1107         * font/devlj4/generate (text.map, special.map): Rewritten to work
1108         with the new hpftodit version.
1110 2003-12-30  Jeff Conrad  <jeff_conrad@msn.com>
1112         * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
1113         set and 8bit character code for all glyphs also.
1115 2003-12-30  Werner LEMBERG  <wl@gnu.org>
1117         * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
1119 2003-12-29  Werner LEMBERG  <wl@gnu.org>
1121         More fixes for MSVC compiler.
1123         * doc/Makefile.sub, contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use
1124         $(SEP).
1126         * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
1127         STDERR_FILENO) [_MSC_VER]: Define conditionally.
1128         (getpid) [_MSC_VER]: Remove.
1129         Include direct.h and process.h conditionally.
1131         * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
1132         parentheses for a_delete.
1134         * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
1136         * test-groff: Replaced with...
1137         * test-groff.in: This new template to handle path separator
1138         properly.
1140         * configure.ac: Check for direct.h and process.h.
1141         Generate test-groff script.
1142         * configure, src/include/config.hin: Regenerated.
1144 2003-12-28  Werner LEMBERG  <wl@gnu.org>
1146         Add integral extension glyph.
1147         Add new option `-x' to afmtodit to suppress use of built-in AGL.
1149         * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
1151         * font/devps/generate/textmap: Provide entry for `integralex' to
1152         override (old) PUA value of the AGL.
1153         * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
1154         * font/devps/*: Regenerated.
1156         * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
1157         * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
1159 2003-12-27  Werner LEMBERG  <wl@gnu.org>
1161         Add forgotten `coproduct' symbol (already available for DVI).
1163         * font/devhtml/R.proto, font/devps/generate/textmap,
1164         font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
1165         src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
1166         U+2210 (\[coproduct]).
1168 2003-12-26  Jeff Conrad  <jeff_conrad@msn.com>
1170         hpftodit has been extended to handle TrueType metric files and
1171         more glyphs.  See hpftodit.man for more details.
1173         * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h, 
1174         ctype.h, and unicode.h.
1175         s/msl/charcode/ everywhere since we now handle Unicode values also.
1176         (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
1177         Use it where appropriate.
1178         (MULTIPLIER): Replaced with...
1179         (multiplier): New global static variable.
1180         (scale): Updated.
1181         (tag_type): Add more TFM tags.
1182         (tag_name): New array.
1183         (ENUM_TYPE, FLOAT_TYPE): Removed.
1184         (BYTE_TYPE): New value assigned.
1185         (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
1186         (text_symbol_sets, special_symbol_sets): Extended to cover more
1187         sets.
1188         (check_type): Add return value.
1189         (check_units): Add parameters to get ppi and upem values.
1190         Handle TrueType TFM data.
1191         (output_font_name): New function.
1192         (output_charset): Add parameter to handle TFM type.
1193         Handle TrueType TFMs also.
1194         (em_fract): New macro.
1195         (dump_tags): Be much more verbose and handle more tags.
1196         (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
1197         (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
1198         functions.
1199         (read_map): Add parameter to handle TFM type.
1200         Handle both MSL and Unicode mappings.
1201         (main): Add two new command line options `-a' and `-q'.
1202         Updated to make use of new functions.
1203         (usage): Updated.
1205         * src/utils/hpftodit/hpuni.cpp: New file.
1207         * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
1208         Updated.
1210 2003-12-25  Werner LEMBERG  <wl@gnu.org>
1212         * src/include/nonposix.h (read) [_MSC_VER]: Define.
1214 2003-12-24  Werner LEMBERG  <wl@gnu.org>
1216         * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
1217         by Michail Vidiassov <master@iaas.msu.ru>.
1219 2003-12-20  Werner LEMBERG  <wl@gnu.org>
1221         * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
1222         and u0049_0307.
1223         Add missing latin-2 glyphs.
1224         * font/devutf8/R.proto: Add missing latin-2 glyphs.
1226         * tmac/troffrc: Load `composite.tmac' earlier.
1228         * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
1229         u00{53,73}_0327, and u0049_0307.
1230         * tmac/X.tmac: Add u00{47,67}_0306.
1231         * tmac/tty-char.tmac: Use composite glyph names for readability.
1233         * NEWS: Updated.
1235         * src/include/unicode.h: Remove `extern' keywords.
1237 2003-12-20  Nilgün Belma Bugüner  <nilgun@superonline.com>
1239         * tmac/latin5.tmac: New file.
1241 2003-12-19  Werner LEMBERG  <wl@gnu.org>
1243         Add some glyphs needed for Turkish.
1245         * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
1246         and u0049_0307.
1248         * tmac/composite.tmac: Add `,' as a synonym for `ac' accent. 
1249         * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
1250         u00{53,73}_0327, and u0049_0307.
1252 2003-12-18  Werner LEMBERG  <wl@gnu.org>
1254         * src/devices/grops/ps.cc (ps_output::put_float): Revert change
1255         from 2001-10-04.
1256         Remove trailing zeros.
1258 2003-12-17  Werner LEMBERG  <wl@gnu.org>
1260         Make \? transparent to end-of-sentence recognition.
1262         * src/roff/troff/input.cc (non_interpreted_node): Add
1263         `ends_sentence' member function.
1265 2003-12-16  Werner LEMBERG  <wl@gnu.org>
1267         * doc/groff.texinfo: Document `dt' request correctly.
1268         Other minor typographical improvements.
1270 2003-12-10  Michail Vidiassov  <master@iaas.msu.ru>
1272         * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
1274 2003-12-10  Richard Stallman  <rms@gnu.org>
1276         * LICENSE: Better wording.
1278 2003-12-09  Werner LEMBERG  <wl@gnu.org>
1280         * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
1281         * configure, NEWS: Updated.
1283 2003-12-08  Werner LEMBERG  <wl@gnu.org>
1285         * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
1287 2003-12-07  Bernd Warken  <bwarken@mayn.de>
1289         * LICENSE: Updated.
1291 2003-12-07  Werner LEMBERG  <wl@gnu.org>
1293         * INSTALL: Improved.
1295 2003-12-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
1297         Use path separator character of target platform for compiled-in
1298         default paths.
1300         * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
1301         * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
1302         * configure: Regenerated.
1303         * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
1305 2003-12-05  Werner LEMBERG  <wl@gnu.org>
1307         * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
1308         Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
1310 2003-12-04  Bernd Warken  <bwarken@mayn.de>
1312         * LICENSE: New file.
1314 2003-12-03  Werner LEMBERG  <wl@gnu.org>
1316         * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
1317         ligatures present in AFM files since groff currently only
1318         understands some standard ligatures and nothing else.
1320 2003-12-03  Jeff Conrad  <jeff_conrad@msn.com>
1322         * src/roff/groff/groff.cpp (main): Don't run the spooler if
1323         option -v is given.
1325         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
1326         messages.
1327         Close stdout copy.
1328         Don't use Unix wait flags.
1330 2003-12-02  Werner LEMBERG  <wl@gnu.org>
1332         * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
1333         src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
1334         src/roff/troff/uniuni.cpp: Moved to...
1335         * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
1336         src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
1337         src/libs/libgroff/uniuni.cpp: Here.
1339         * src/include/Makefile.sub.old (HDRS),
1340         src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
1341         src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
1343 2003-12-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
1345         * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
1346         `DEBUG_FILE'.
1347         Updated all users.
1349 2003-12-01  Werner LEMBERG  <wl@gnu.org>
1351         * groff.texinfo: Document special behaviour of `.vs 0'.
1352         Improve documentation of `cflags' request.
1353         * NEWS: Updated.
1355 2003-11-29  Werner LEMBERG  <wl@gnu.org>
1357         * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
1358         * font/devlj4/CORONET: Regenerated.
1360 2003-11-24  Werner LEMBERG  <wl@gnu.org>
1362         * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
1363         if processing hyphenation patterns in traditional mode.
1364         Improve error messages.
1366 2003-11-20  Werner LEMBERG  <wl@gnu.org>
1368         * src/roff/troff/node.cpp (troff_output_file::put_char_width,
1369         troff_output_file::put_char): Fix type of local variable `c'.
1371 2003-11-19  Werner LEMBERG  <wl@gnu.org>
1373         * src/roff/groff/pipeline.c (P): Removed.  Updated all function
1374         declarations.
1375         (i_to_a): Removed.  libgroff already provides this function.
1376         (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
1378 2003-11-18  Keith Marshall  <keith.d.marshall@ntlworld.com>
1380         * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
1381         HAVE_DECL_SYS_LIST.
1383 2003-11-17  Werner LEMBERG  <wl@gnu.org>
1385         * COPYING: Use correct version.
1387 2003-11-11  Werner LEMBERG  <wl@gnu.org>
1389         LynxOS 4.0.0 doesn't declare vfprintf.
1391         * configure.ac: Check for vfprintf.
1392         * configure: Regenerated.
1393         * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
1394         * src/include/config.hin: Regenerated.
1396 2003-11-10  Werner LEMBERG  <wl@gnu.org>
1398         LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
1400         * configure.ac: Check for vsnprintf.
1401         * configure: Regenerated.
1402         * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
1403         `HAVE_VSNPRINTF'.
1404         * src/include/config.hin: Regenerated.
1406 2003-11-09  Werner LEMBERG  <wl@gnu.org>
1408         * aclocal.m4: Updated syntax to autoconf 2.59.
1409         (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
1410         Don't check for gsos2.
1411         (GROFF_SRCDIR, GROFF_BUILDDIR): Removed.  autoconf 2.59 provides
1412         working abs_top_srcdir and abs_top_builddir.
1414         * configure.ac: Updated syntax to autoconf 2.59.
1415         Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
1416         Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
1417         * configure: Regenerated.
1419         * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
1420         s/@groff_top_builddir@/@abs_top_builddir@/.
1422         * src/roff/groff/pipeline.c (xstrsignal):
1423         s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
1425 2003-11-07  Werner LEMBERG  <wl@gnu.org>
1427         * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
1428         make start angle smaller than end angle to circumvent a bug in tpic
1429         handling of some versions of dvipdfm (and dvipdfmx).
1431 2003-10-30  Werner LEMBERG  <wl@gnu.org>
1433         * src/devices/grops/grops.man: Improve section on creating EPS.
1435 2003-10-29  Werner LEMBERG  <wl@gnu.org>
1437         * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
1438         -P-pletter).
1440 2003-10-28  Werner LEMBERG  <wl@gnu.org>
1442         * doc/groff.texinfo: Fix documentation of `.if'.
1444 2003-10-27  Michail Vidiassov  <master@iaas.msu.ru>
1446         * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
1447         the form `uniXXXX' also.
1449 2003-10-27  Werner LEMBERG  <wl@gnu.org>
1451         * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
1452         contrib/pic2graph/pic2graph.sh: Implement secure management of
1453         temporary files.
1454         Pass `-P-pletter' to groff to avoid data outside of the converted
1455         area -- some versions of `convert' (for example 5.3.8) don't check
1456         the bounding box of the image but always use a fixed image size
1457         (letter paper format).
1458         * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
1459         contrib/pic2graph/pic2graph.man: Updated.
1461         * src/roff/groff/groff.man: Document $TMP and $TEMP.
1463 2003-10-26  Werner LEMBERG  <wl@gnu.org>
1465         * src/preproc/pic/troff.cpp (troff_output::simple_circle,
1466         troff_output::simple_ellipse, troff_output::simple_arc,
1467         troff_output::simple_line, troff_output::simple_spline,
1468         troff_output::simple_polygon): Insert a space before arguments.
1469         (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
1470         latter doesn't produce a node, so the following `.sp -1' would do
1471         the wrong thing.
1472         Don't emit `.sp -1' after \M.  This also doesn't produce a token
1473         (and we don't have to care about compatibility mode).
1474         (troff_output::set_color, troff_output::reset_color): Don't emit
1475         `.sp -1' after \M and \m.
1477         * src/roff/troff/input.cpp (old_have_input): New global variable.
1478         (input_stack::get): Handle `old_have_input'.
1479         (process_input_stack) <token::TOKEN_NEWLINE>: Call
1480         `trapping_blank_line' depending on `old_have_input', not
1481         `have_input'.
1483 2003-10-20  Keith Marshall  <keith.d.marshall@ntlworld.com>
1485         * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
1486         (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
1487         default directory names for temporary files.
1488         [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
1490         * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
1491         [__MSDOS__] (run_pipeline): Honour environment variables.
1492         Don't use `tmpnam' but `tempnam' to work around messy
1493         implementation.
1495         * README.MinGW: New file.
1497 2003-10-16  Werner LEMBERG  <wl@gnu.org>
1499         * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
1500         `(*t)->next' without testing validity of `*t'.
1501         (usage): Make it more readable.
1503 2003-10-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
1505         Make html device run under both MS-DOS and Win32.
1507         * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
1508         MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
1509         spawn or fork+exec has to be used, and whether parent must sleep
1510         until the child process terminates.  Used in
1511         `char_buffer::run_output_filter'.
1512         (copyofstdoutfd): Removed.
1513         (char_buffer): Replace `write_file_html' and `write_file_troff'
1514         member functions with `emit_troff_output' and `run_output_filter'.
1515         (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
1516         macros.
1517         (replaceFd): Replaced with...
1518         (set_redirection): New auxiliary function.
1519         (waitForChild): Replaced with...
1520         (save_and_redirect): New auxiliary function for.
1522         (char_buffer::do_html, char_buffer::do_image): Simplified, using new
1523         functions.
1525 2003-10-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
1527         * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
1528         (GROFF_LIBC): New function.
1529         * configure.ac: Call GROFF_LIBC.
1530         Check for `kill'.
1531         * configure: Regenerated.
1533         * src/include/lib.h: Handle __MINGW32__.
1534         * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
1535         Add macro for `pipe'.
1536         Define P_tmpdir.
1538         * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
1539         correctly.
1541         * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
1542         Implement.
1544 2003-10-13  Werner LEMBERG  <wl@gnu.org>
1546         Finally fix change 2003-08-26, based on ideas from Chuck Silvers
1547         <chuq@chuq.com>.
1549         * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
1550         directory.
1552 2003-10-12  Werner LEMBERG  <wl@gnu.org>
1554         * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
1555         src/roff/troff/input.cc (usage): Updated.
1557         * NEWS, doc/groff.texinfo: Updated.
1559 2003-10-12  Peter Miller  <millerp@canb.auug.org.au>
1561         * src/libs/libgroff/searchpath.cpp
1562         (search_path::open_file_cautious): New function which also handles
1563         `-' as stdin and stdout depending on the access mode.
1564         * src/include/searchpath.h (search_path): Updated.
1566         * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
1567         * src/devices/grops/ps.h: Include `searchpath.h'.
1568         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
1569         Open resource file with `include_search_path.open_file_cautious'.
1570         * src/devices/grops/grops.man: Document new `-I' switch.
1572         * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
1573         (main), src/devices/grolj4/lj4.cpp (main),
1574         src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
1576         * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
1577         Replaced with...
1578         (include_search_path): New global variable.
1579         (include_path_append): Removed.
1580         (main): Use `include_search_path.command_line_dir' to handle `-I'.
1581         (do_file): Simplify, using new
1582         `include_search_path.open_file_cautious'.
1584         * src/roff/groff/groff.cpp (print_commands): Accept file handle as
1585         parameter.
1586         (main): Pass arguments to `-I' to both troff and devices.
1587         Improve handling of `-V'.
1588         * src/roff/groff/groff.man: Document changes to -I and -V.
1590         * src/roff/troff/input.cpp (include_search_path): New global
1591         variable.
1592         (next_file, source, ps_bbox_request, transparent_file,
1593         process_input_file): Use new
1594         `include_search_path.open_file_cautious'.
1595         (main) Handle `-I' switch.
1596         * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
1597         Use new `include_search_path.open_file_cautious'.
1598         * src/roff/troff/node.h: New extern symbol `include_search_path'.
1599         * src/roff/troff/troff.man: Document new `-I' switch.
1601 2003-09-15  Ruslan Ermilov  <ru@FreeBSD.org>
1603         Support multiple calls of .Lb in LIBRARY section.
1605         * tmac/doc-common (doc-in-library-section): New register.
1606         (doc-section-library): New string.
1607         (Sh): Set `doc-in-library-section'.
1608         (Rd): Updated.
1609         * tmac/doc-syms (Lb): Insert breaks before and after arguments
1610         if in LIBRARY section.
1611         * tmac/doc.tmac (doc-save-global-vars): Updated.
1612         * NEWS, tmac/groff_mdoc.man: Updated.
1614 2003-09-14  Ruslan Ermilov  <ru@FreeBSD.org>
1616         * tmac/doc-common (doc-default-operating-system): New variable.
1617         (Os): Use it.
1619 2003-09-08  Werner LEMBERG  <wl@gnu.org>
1621         * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
1623 2003-08-31  Werner LEMBERG  <wl@gnu.org>
1625         * contrib/mom/Makefile.sub: Fix last change to make it really work.
1626         * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
1627         (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
1628         $(DEVFILES) are not empty.
1629         * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
1631 2003-08-26  Chuck Silvers  <chuq@chuq.com>
1633         * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
1634         with parallel runs of `make'.
1636 2003-08-23  Stephen Gildea  <http://www.gildea.com/stephen>
1638         * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
1639         insert SORT_SEP.  With certain combinations of sort specifications,
1640         refer sorted entries in the wrong order.  In particular, entries
1641         with a missing field should be be sorted before all entries that
1642         have that field, before refer looks to the next field.
1644 2003-08-23  Werner LEMBERG  <wl@gnu.org>
1646         * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
1647         g++ linker is used.  Reported by Mark J. Reed
1648         <mark.reed@turner.com>.
1650 2003-08-16  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
1652         Add key character `x' to tbl which makes tbl call a user-defined
1653         macro on a table cell.
1655         * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
1656         * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
1657         `set_modifier' after printing the compatibility request.
1658         (set_modifier): Print call to `m->macro' if not empty.
1659         * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
1660         `macro'.
1661         (process_format): Implement cases `x' and `X'.
1662         * src/preproc/tbl/tbl.man, NEWS: Updated.
1664 2003-08-15  Werner LEMBERG  <wl@gnu.org>
1666         * doc/groff.texinfo: Minor fixes.
1668 2003-08-09  Werner LEMBERG  <wl@gnu.org>
1670         * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
1672 2003-08-07  Werner LEMBERG  <wl@gnu.org>
1674         * doc/Makefile.sub: Not all shells expand wildcards in the `for'
1675         argument list to nothing if there is no file to match.  Use `ls' as
1676         a protection, similar to autoconf.
1678         * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
1679         empty argument lists.
1681         * doc/groff.texinfo: Improve documentation how vertical spacing
1682         and line breaks interact.
1683         Other minor fixes.
1685         * tmac/www.tmac: Initialize `www-htmlimage-gap'.
1687 2003-08-03  Werner LEMBERG  <wl@gnu.org>
1689         * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
1690         EPS (using eps2eps or similar programs to compute the bounding box).
1692 2003-07-24  Werner LEMBERG  <wl@gnu.org>
1694         * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
1695         * doc/texinfo.tex: Updated from texinfo 4.6.
1696         * README.CVS: From now on we need texinfo 4.6.
1698 2003-07-23  Werner LEMBERG  <wl@gnu.org>
1700         Add requests `dei1' and `ami1' for completeness.
1702         * src/roff/troff/input.cc (calling_mode): Remove
1703         CALLING_DISABLE_COMP.
1704         (comp_mode): New enumeration.
1705         (do_define_string, define_string, define_nocomp_string,
1706         append_string, append_nocomp_string): Updated.
1707         (do_define_macro): Add third parameter.
1708         (define_macro, define_nocomp_macro, define_indirect_macro,
1709         append_macro, append_nocomp_macro, append_indirect_macro): Updated.
1710         (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
1711         functions.
1712         (ignore): Updated.
1713         (init_input_requests): Add `dei1' and `ami1'.
1715         * tmac/trace.tmac: Handle de1 and am1.
1716         (de): Improve tracing message.
1717         (am): Add missing `do'.
1718         (return): Use de1.
1720         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1721         Document new requests.
1723 2003-07-22  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
1725         Add option -G to .MPIMG to insert a gap between text and the image.
1727         * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
1728         www-finish-left-ll): Updated.
1729         (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
1730         (MPIMG): Make option -L and -R optional.
1731         Implement option -G.
1733 2003-07-22  Gaius Mulley  <gaius@glam.ac.uk>
1735         * src/devices/grohtml/post-html.cpp
1736         (html_printer::do_file_components): Don't use `stdout' as lvalue
1737         since it can be a macro.
1739 2003-07-22  Werner LEMBERG  <wl@gnu.org>
1741         * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
1742         the corresponding test in aclocal.m4.
1744 2003-07-21  Werner LEMBERG  <wl@gnu.org>
1746         * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
1747         names but RGB values directly.  Otherwise pnmtopng depends on
1748         an external file `rgb.txt' which maps colour names to values.
1750 2003-07-20  Werner LEMBERG  <wl@gnu.org>
1752         * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
1753         * configure, src/include/config.hin: Regenerated.
1755         * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
1757 2003-07-19  Werner LEMBERG  <wl@gnu.org>
1759         * PROBLEMS: Add solution for UTF-8 problem with hyphens.
1761 2003-07-18  Werner LEMBERG  <wl@gnu.org>
1763         * *.man: Switch to non-compatibility mode temporarily if GNU
1764         syntax extensions are used in the particular man page.
1766         * PROBLEMS: Add solutions for SGR problems.
1768 2003-07-17  Werner LEMBERG  <wl@gnu.org>
1770         Don't ignore grotty's command line options if \X'tty: sgr ...' is
1771         used to change the drawing scheme.
1773         * src/devives/grotty/tty.cpp (bold_flag_option,
1774         underline_flag_option, italic_flag_option, reverse_flag_option,
1775         bold_underline_mode_option): New global variables.
1776         (update_options): New function.
1777         (tty_printer::special): Call update_options.
1778         (main): Don't set xxx_flag but xxx_flag_option, then call
1779         update_options.
1781 2003-07-14  Werner LEMBERG  <wl@gnu.org>
1783         Make grotty emit proper Unicode box drawing characters for -Tutf8.
1785         * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
1786         values.
1787         (hline_char, vline_char): New global variables.
1788         (tty_printer::tty_printer): Initialize them.
1789         (tty_printer::draw): Emit START_LINE and END_LINE flags for both
1790         horizontal and vertical lines.
1791         (crossings): New global array.
1792         (tty_printer::end_page): Use it to determine the proper crossing
1793         character for -Tutf8.
1795 2003-07-12  Werner LEMBERG  <wl@gnu.org>
1797         * doc/Makefilesub (HTMLDOCFILESALL): New macro.
1798         (HTMLDOCFILES): Revert to `pic.html'.
1799         (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
1801 2003-07-11  Werner LEMBERG  <wl@gnu.org>
1803         * doc/pic.ms: Improve documentation of absolute coordinates.
1804         Document absolute positioning of pictures.
1806         * NEWS: Add new pic capability.
1808 2003-07-09  Hartmut Henkel  <hartmut_henkel@gmx.de>
1810         * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
1811         Rewritten.
1813 2003-07-07  Werner LEMBERG  <wl@gnu.org>
1815         Implement support for dashed and dotted ellipses in pic.  Based on
1816         a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
1818         * src/preproc/pic/common.cpp (common_output::ellipse_arc,
1819         common_output::dashed_ellipse, common_output::dotted_ellipse): New
1820         functions.  Ellipse arcs are approximated with circle arcs.
1821         * src/preproc/pic/common.h (common_output): Updated.
1822         * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
1823         functions.
1824         * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
1826         * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
1828 2003-07-06  Werner LEMBERG  <wl@gnu.org>
1830         Make grotty work on platforms which have unsigned char as the
1831         default for char.  Based on a patch by Thomas Klausner
1832         <wiz@netbsd.org>.
1834         * src/devices/grotty/tty.cpp (schar): New typedef.
1835         Updated calls to declare_ptable and implement_ptable.
1836         (glyph): Use schar for back_color_idx and fore_color_idx.
1837         (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
1838         (tty_printer::tty_color, tty_printer::tty_printer,
1839         tty_printer::color_to_idx, tty_printer::put_color): Updated.
1841 2003-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
1843         * src/roff/nroff/nroff.sh: Add option -d for completeness.
1844         * src/roff/nroff/nroff.man: Updated.
1846 2003-07-05  Werner LEMBERG  <wl@gnu.org>
1848         * NEWS, tmac/groff_www.man: Updated.
1849         * doc/Makefile.sub: Updated.
1851 2003-07-05  Gaius Mulley  <gaius@glam.ac.uk>
1853         Implement support for multiple HTML output files.
1855         * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
1856         -j command line option.
1858         * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
1859         global variables.
1860         (file): New fields `new_output_file', `require_links',
1861         `output_file_name'.
1862         (file::file): Updated.
1863         (files::set_file_name, files::set_links_required,
1864         files::are_links_required, files::is_new_output_file,
1865         files::file_name, files::next_file_name): New functions.
1866         (header_desc): New fields `no_of_level_one_headings',
1867         `header_filename'.
1868         (header_desc::header_desc): Updated.
1869         (header_desc::write_headings): Handle multiple files.
1870         (html_printer::write_header): Save file name in which header occurs.
1871         (html_printer::determine_header_level): Possibly split files on
1872         level one headings.
1873         (html_printer::do_links, html_printer::troff_tag): Updated.
1874         (html_printer::insert_split_file, html_printer::do_job_name,
1875         html_printer::emit_link, html_printer::write_navigation,
1876         html_printer::do_file_components): New functions.
1877         (html_printer::~html_printer): Handle multiple files.
1878         (main): Handle command line option `-j'.
1880         * src/devices/grohtml/grohtml.man: Updated.
1882         * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
1883         which splits file.
1885         * tmac/www.tmac (JOBNAME): New macro.
1886         * tmac/s.tmac (SH-NO-TAG): New macro.
1887         (@SH): Call SH-NO-TAG.
1888         (@NH): Updated.
1890 2003-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
1892         * tmac/groff_mdoc.man: Improve documentation of punctuation
1893         characters.
1895 2003-07-04  Ruslan Ermilov  <ru@FreeBSD.org>
1897         * tmac/doc.tmac (Bd): Change to doc-Li-font later.
1899 2003-07-03  Werner LEMBERG  <wl@gnu.org>
1901         * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
1903 2003-07-01  Ruslan Ermilov  <ru@FreeBSD.org>
1905         * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
1906         after `/*' and `*/'.
1907         Fix spacing.
1908         (Fn, Fo): Reduce indentation in synopsis.
1910         * tmac/doc-common (doc-check-depth): New macro.
1911         (doc-end-macro, Sh, Ss): Use it.
1912         (Cd): Fix behaviour in synopsis.
1913         (In): Make it parsed and callable.
1914         If not in the synopsis, represent the C header file enclosed in
1915         angle brackets.
1916         (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
1917         Use minus, not hyphen.
1919         * tmc/groff_mdoc.man: Updated.
1921 2003-07-01  Werner LEMBERG  <wl@gnu.org>
1923         Integrated grap2graph, contributed by Eric S. Raymond.
1925         * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
1926         New files.
1927         * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
1928         contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
1930 2003-07-01  Colin Watson  <cjwatson@debian.org>
1932         * src/xditview/*.c: Add prototypes, fix return types, add includes.
1933         Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
1935 2003-06-31  Ruslan Ermilov  <ru@FreeBSD.org>
1937         * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
1939 2003-06-31  Werner LEMBERG  <wl@gnu.org>
1941         * doc/Makefile.sub (CLEANADD): Remove all files created by
1942         running `make groff.{pdf,dvi}'.
1944         * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
1945         src/xditview also.
1947 2003-06-30  Werner LEMBERG  <wl@gnu.org>
1949         * Makefile.in (SHELL): Define as @SHELL@.
1950         (mkinstalldirs): Use $(SHELL).
1951         (MDEFINES): Add $(SHELL).
1952         * Makefile.comm (SHELL): Removed.
1954 2003-06-29  Werner LEMBERG  <wl@gnu.org>
1956         * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
1957         The X11 documentation files use them.
1958         * tmac/groff_ms.man, doc/groff.texinfo: Document them.
1960 2003-06-15  Robert Goulding  <goulding@Princeton.EDU>
1962         * tmac/e.tmac (@C): Handle .ad also.
1964 2003-06-12  Werner LEMBERG  <wl@gnu.org>
1966         * src/preproc/tbl/tbl.man: Document formatting of text blocks.
1968         * src/roff/troff/input.cc (token::next) <handle_escape_char>:
1969         Assign `n' even here.  It is possible to construct a node
1970         immediately following an escape character:
1972           .di xx
1973           \?\\\?a
1974           .br
1975           .di
1976           .xx
1978 2003-06-10  Werner LEMBERG  <wl@gnu.org>
1980         * README.WIN32: Removed.
1981         * MANIFEST: Updated.
1983 2003-06-07  Werner LEMBERG  <wl@gnu.org>
1985         * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
1987 2003-06-05  Werner LEMBERG  <wl@gnu.org>
1989         * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
1990         in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
1992 2003-06-03  Werner LEMBERG  <wl@gnu.org>
1994         * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
1995         is done by the calling function.
1997 2003-05-22  Ruslan Ermilov  <ru@FreeBSD.org>
1999         * tmac/X.tmac: Fix definition of `em'.
2001 2003-05-22  Werner LEMBERG  <wl@gnu.org>
2003         * src/roff/troff/input.cc (return_macro_request): Fix detection of
2004         argument.
2006 2003-05-18  Werner LEMBERG  <wl@gnu.org>
2008         * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
2009         to make items work which consist only of a tag.
2011 2003-05-17  Werner LEMBERG  <wl@gnu.org>
2013         * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
2014         aren't stretched in a tag (this can fail with unformatted boxes).
2015         Instead, insert a break and go back one line.
2017 2003-05-16  Werner LEMBERG  <wl@gnu.org>
2019         * src/roff/troff/input.cc (return_macro_request): If called with
2020         argument pop macro twice.  We need this to trace `return'.
2022         * tmac/trace.tmac: Handle `return'.
2023         Fix typos.
2025         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2026         Document.
2028 2003-05-15  Larry Kollar  <kollar@alltel.net>
2030         * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
2031         registers `FPS', `FVS', and `FPD'.
2033 2003-05-15  Werner LEMBERG  <wl@gnu.org>
2035         * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
2036         correctly.
2038 2003-05-03  Ruslan Ermilov  <ru@FreeBSD.org>
2040         * tmac/groff_mdoc.man: Slight improvements.
2042 2003-05-03  Werner LEMBERG  <wl@gnu.org>
2044         * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
2045         `doc-header-space' after header line if register `cR' is set.
2047 2003-05-02  Werner LEMBERG  <wl@gnu.org>
2049         * TODO: Updated.
2051 2003-05-01  Ruslan Ermilov  <ru@FreeBSD.org>
2053         * tmac/doc-common (Nd): Use \[em].
2055 2003-05-01  Werner LEMBERG  <wl@gnu.org>
2057         * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
2058         doc-footer-space): Initialize to 0.5i.
2059         (doc-setup-page-layout): Don't set doc-header-space and
2060         doc-footer-space.
2062 2003-04-30  Werner LEMBERG  <wl@gnu.org>
2064         * REVISION: Set to 1.
2066         * doc/pic.ms: Document possible problems with `figname'.
2068 2003-04-29  Werner LEMBERG  <wl@gnu.org>
2070 Version 1.19 released
2071 =====================
2073         * VERSION: Set to 1.19.
2074         * REVISION: Set to 0.
2075         * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
2077         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
2078         Define charset as `US-ASCII' in html output.
2080         * tmac/www.tmac (ULE): Add missing scaling indicator.
2082         * win32-diffs: Removed.
2084 2003-04-28  Werner LEMBERG  <wl@gnu.org>
2086         * doc/groff.texinfo: Document `dn' and `dl' registers if used with
2087         `.da' and `.boxa'.
2088         Document how to insert discardable whitespace with `.ss'.
2090 2003-04-27  Werner LEMBERG  <wl@gnu.org>
2092         * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
2093         work with plain TeX also.
2095         * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
2097 2003-04-25  Gaius Mulley  <gaius@glam.ac.uk>
2099         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
2100         Use a loose DTD.
2102 2003-04-24  Werner LEMBERG  <wl@gnu.org>
2104         * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
2105         vbox with positive height and zero depth if in TeX mode.
2107         * NEWS: Document glyph name changes for grodvi and grolj4.
2109 2003-04-23  Werner LEMBERG  <wl@gnu.org>
2111         * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
2112         * doc/pic.ms: Fixed.
2114 2003-04-21  Werner LEMBERG  <wl@gnu.org>
2116         HP-UX 10.20 has `snprintf' but it isn't declared.
2118         * configure.ac: Add declaration test for snprintf.
2119         * configure: Regenerated.
2120         * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
2121         * src/include/config.hin: Regenerated.
2123 2003-04-19  Werner LEMBERG  <wl@gnu.org>
2125         Add keyword `figname' to pic, specifying the name of the picture
2126         box in TeX mode.  Based on a patch from William J Poser
2127         <wjposer@unagi.cis.upenn.edu>.
2129         * src/preproc/pic/pic.y: New token `FIGNAME'.
2130         (macro_name): New rule of type <str>.
2131         (placeless_element): Handle `FIGNAME'.
2132         * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
2133         * src/preproc/pic/main.cpp (graphname): New global variable.
2134         (do_picture): Initialize `graphname'.
2135         * src/preproc/pic/pic.h: Updated.
2136         * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
2137         `graphname'.
2138         Simplify TeX code.
2139         (tex_output::text): Beautify output.
2140         * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
2141         `shaded' and `outlined' unconditionally.
2142         * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
2143         Minor improvements.
2145         * PROBLEMS, README.CVS: Mention that bison version 1.875b or
2146         greater is necessary.
2148 2003-04-17  Hartmut Henkel  <hartmut_henkel@gmx.de>
2150         Add option -r to soelim to avoid emission of `.lf' lines.
2151         Add option -t to produces TeX comment lines instead of `.lf' lines.
2153         * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
2154         and `tex_flag'.
2155         (usage): Updated.
2156         (main): Handle `-r' and `-t'.
2157         (set_location): Handle `raw_flag' and `tex_flag'.
2158         * src/preproc/soelim/soelim.man, NEWS: Updated.
2160 2003-04-17  Werner LEMBERG  <wl@gnu.org>
2162         * tmac/hyphenex.sh: Replaced with...
2163         * tmac/hyphenex.pl: This perl script to avoid sed compatibility
2164         nightmares.
2166         * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
2167         if --quiet is used for the configure script.
2168         * configure: Regenerated.
2170 2003-04-16  Werner LEMBERG  <wl@gnu.org>
2172         * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
2173         Add `const' to second argument.
2174         (html_printer::add_table_end): Add `const' to argument.
2175         * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
2176         `const' to arguments.
2177         * src/devices/grohtml/html-text.h: Updated.
2179         * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
2180         * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
2181         argument.
2183         * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
2184         cast for integer constant.
2186         * src/preproc/html/pre-html.cpp (image_device): Use `const'.
2187         (writeNbytes): Add `const' to first argument.
2188         (writeString): Add `const' to argument.
2189         (char_buffer::can_see): Add `const' to third argument.
2190         * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
2191         `const' to argument.
2192         * src/preproc/html/pushback.h: Updated.
2194         * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
2195         (include_path_append): Add `const' to argument.
2196         (do_file): Updated.
2198         * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
2199         for `value'.
2200         (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
2201         * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
2202         for `value'.
2203         (unicode_decompose_init::unicode_decompose_init): Updated.
2204         * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
2205         for `value'.
2206         (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
2207         * src/roff/troff/input.cc (process_startup_file): Add `const' to
2208         argument.
2210         * tmac/hyphenex.sh: Make script more portable by using a here
2211         document.
2213 2003-04-15  Werner LEMBERG  <wl@gnu.org>
2215         Renamed all `*.cc' files to `*.cpp'.
2216         Updated all configuration files, makefiles, and documentation.
2218 2003-04-14  Werner LEMBERG  <wl@gnu.org>
2220         * tmac/hyphenex.sh: Slight improvements.
2222 2003-04-13  Werner LEMBERG  <wl@gnu.org>
2224         * font/devascii/R.proto, font/devcp1037/R.proto,
2225         font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
2226         character slots with unnamed glyphs.
2228         * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
2229         (an-first): New global variable.
2230         (an-header): Emit vertical space between multiple man pages.
2232 2003-04-11  Werner LEMBERG  <wl@gnu.org>
2234         * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
2235         values.
2237 2003-04-10  Werner LEMBERG  <wl@gnu.org>
2239         * PROBLEMS: Revised.
2241 2003-04-10  Bernd Warken  <bwarken@mayn.de>
2243         * doc/webpage.ms: Improved.
2245 2003-04-09  Werner LEMBERG  <wl@gnu.org>
2247         Add register \n[.height] which returns the value of \H.
2248         Add register \n[.slant] which returns the value of \S.
2250         * src/roff/troff/env.cc (init_env_requests): Implement.
2251         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2252         Document.
2254 2003-04-08  Werner LEMBERG  <wl@gnu.org>
2256         * tmac/html.tmac: Move some of the data into html-end.tmac.
2257         Remove most of the character translations for eqn since html fonts
2258         now cover those characters.
2259         Load www.tmac.
2260         * tmac/html-end.tmac: New file.
2261         * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
2262         * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
2263         * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
2265 2003-04-07  Werner LEMBERG  <wl@gnu.org>
2267         * man/groff_out.man: Document negative values of `N' if -Thtml is
2268         used.
2270 2003-04-06  Werner LEMBERG  <wl@gnu.org>
2272         * Makefile.comm (depend.temp): Check location of YTABC.
2274 2003-04-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2276         * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
2277         binary path.
2278         (groff_bin_path): Rename to GROFF_BIN_PATH.
2279         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2280         * doc/Makefile.in (TROFFBIN): New variable for troff
2281         binary path.
2282         (GROFFBIN): New variable for groff binary path.
2283         (groff_bin_path): Rename to GROFF_BIN_PATH.
2284         (TROFF): Use TROFFBIN.
2285         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2286         * doc/Makefile.sub (GROFFBIN): New variable for groff
2287         binary path.
2288         (groff_bin_path): Rename to GROFF_BIN_PATH.
2289         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2291         * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
2292         with INSTALL_SCRIPT.
2293         (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
2294         * Makefile.dev (all): Depend on DEVSCRIPTS.
2295         (install_dev): Likewise.
2296         * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
2297         scripts.
2298         * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
2299         (DEVGENSCRIPTS): New variable to hold generated scripts.
2301 2003-04-05  Werner LEMBERG  <wl@gnu.org>
2303         * src/libs/libdriver/input.cc (IntArray::operator[],
2304         IntArray::get_data): Remove meaningless `const' in return value.
2306         * README.CVS: New file.
2308 2003-04-04  Werner LEMBERG  <wl@gnu.org>
2310         Check for stdint.h in C++, not in C.
2312         * aclocal.m4 (GROFF_STDINT_H): New function,
2313         * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
2314         AC_CHECK_HEADERS.
2315         * configure, src/include/config.hin: Regenerated.
2316         * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
2319         Fix handling of &nbsp; in grohtml.  To do this, troff emits `N'
2320         with a negative value, representing the width of the unbreakable
2321         space (only for -Thtml).  grohtml then converts this back to
2322         &nbsp; and uses the value of N as its width.
2324         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
2325         unbreakable_space_node::tprint): Emit `N-<width>'.
2326         * src/include/printer.h (printer::set_numbered_char): Make it
2327         virtual.
2328         Make members `font_table' and `nfonts' protected instead of private.
2329         * src/devices/grohtml/post-html.cc
2330         (html_printer::set_numbered_char): New member function.
2333         * src/libs/libgroff/maxfilename.cc:
2334         s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
2336         * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
2337         emit word marker.
2339 2003-04-03  Sergey A. Osokin  <osa@freebsd.org.ru>
2341         * man/roff.man: Small fixes.
2343 2003-04-03  Werner LEMBERG  <wl@gnu.org>
2345         Make groff independent from locale's numeric settings.
2347         * configure.ac: Check for `setlocale'.
2348         * configure, src/include/config.hin: Regenerated.
2350         * src/include/lib.h: Handle HAVE_SETLOCALE.
2352         * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
2353         (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
2354         (main), src/preproc/pic/main.cc (main): Call `setlocale'.
2357         * doc/groff.texinfo: Change dir category to `Typesetting'.
2358         (Man font macros): Mention that there is no space between arguments
2359         of .BI and friends.
2361         * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
2362         (*printer::change_color, *printer::change_fill_color): Add missing
2363         `const'.
2365 2003-04-02  Werner LEMBERG  <wl@gnu.org>
2367         * src/devices/grohtml/html-table.cc (html_table::emit_col,
2368         html_table::is_gap): Compute table widths after converting border
2369         positions to avoid rounding errors.
2371 2003-04-01  Werner LEMBERG  <wl@gnu.org>
2373         * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
2374         `space_emitted' properly.
2376 2003-03-31  Werner LEMBERG  <wl@gnu.org>
2378         * src/devices/grohtml/html-table.cc: Fix column width calculation.
2379         (html_table::set_linelength): Don't add 1.
2380         (html_table::add_indent): Don't subtract 1.
2382         * tmac/html.tmac: Set default page offset to zero.
2384 2003-03-30  Werner LEMBERG  <wl@gnu.org>
2386         Make groff emit `&nbsp;' for `\ ' and `\~' if `-Thtml' is used.
2388         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
2389         unbreakable_space_node::tprint): New functions.
2390         (troff_output_file): Make space_char_hmotion_mode::tprint and
2391         unbreakable_space_node::tprint to friends.
2392         * src/roff/troff/node.h: Updated.
2394         * font/devhtml/R.proto: Add `&nbsp' at position 0xA0 (as defined
2395         in the HTML standard).
2397 2003-03-29  Werner LEMBERG  <wl@gnu.org>
2399         * src/roff/troff/env.cc (point_size): Fix emission of html tag.
2400         Otherwise, the following code
2402           .di xxx
2403           .ps 10
2404           a
2405           .br
2406           .di
2407           x\*[xxx]
2409         produces `x a' instead of `xa'.  This is a temporary fix, disabling
2410         font changes in diversions for -Thtml.
2412         * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
2413         `HTML-TAG'.
2414         (an-do-tag-html): Merge with ...
2415         (an-do-tag): This macro.
2416         Change code slightly to circumvent grohtml bug.
2417         * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
2419         * src/devices/grohtml/html-table.cc (html_table::emit_col,
2420         html_table::is_gap): Round `width' properly.
2422         * tmac/html.tmac: Provide some default layout parameters for
2423         grohtml.
2425         * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
2426         command.
2428 2003-03-28  Werner LEMBERG  <wl@gnu.org>
2430         src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
2432 2003-03-27  Werner LEMBERG  <wl@gnu.org>
2434         * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
2435         defined.
2437 2003-03-20  Werner LEMBERG  <wl@gnu.org>
2439         * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
2440         `.vs'.
2441         * doc/groff.texinfo: Updated.
2443 2003-03-19  Werner LEMBERG  <wl@gnu.org>
2445         * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
2446         TOKEN_END_TRAP>: Reset `have_input'.
2448 2003-03-18  Werner LEMBERG  <wl@gnu.org>
2450         * src/roff/groff/groff.man: Mention groff_trace man page.
2452 2003-03-16  Werner LEMBERG  <wl@gnu.org>
2454         * Makefile.in (LIBEXT): New variable to indicate the file extension
2455         of library files.  Computed heuristically from $(OBJEXT).
2456         (MDEFINES): Add $(LIBEXT).
2457         * Makefile.lib, Makefile.comm: Use it.
2459         * src/utils/pfbtops/pfbtops.c (get_text): New function.  Split
2460         overlong lines into smaller chunks.
2461         (get_binary): New function.
2462         (main): Use them.
2463         * src/utils/pfbtops/pfbtops.man: Updated.
2465 2003-03-15  Colin Watson  <cjwatson@debian.org>
2467         * src/roff/groff/groff.man: Minor syntax fix.
2469 2003-03-14  Egil Kvaleberg  <egil@kvaleberg.no>
2471         * src/devices/grops/ps.cc (ps_printer::media_set,
2472         ps_printer::~ps_printer): Handle zero paper width and length.
2474 2003-03-13  Werner LEMBERG  <wl@gnu.org>
2476         Add options -p and -l to grodvi.
2478         * src/devices/grodvi/dvi.cc: Include paper.h.
2479         (landscape_flag, user_paper_length, user_paper_width): New global
2480         variables.
2481         (dvi_printer::begin_page): Emit `papersize' special.
2482         Set color after initialization of `cur_h' and `cur_v'.
2483         (main): Add options `-l' and `-p'.
2484         * font/devdvi/Makefile.sub (DESC): Set `papersize'.
2485         * src/devices/grodvi/grodvi.man, NEWS: Updated.
2487         * src/devices/grops/psrm.cc (valid_input_table): Fixed.
2489 2003-03-12  Werner LEMBERG  <wl@gnu.org>
2491         * src/devices/grops/grops.man: Move documentation of .PSPIC to...
2492         * man/groff_tmac.man: This man page.
2493         * man/groff_font.man: Declare `paperwidth' and `paperlength' as
2494         deprecated.
2496         * tmac/X.tmac: Don't load pspic.tmac.
2498 2003-03-11  Werner LEMBERG  <wl@gnu.org>
2500         Make variable `pr' local to libdriver/input.cc.  Based on a patch
2501         by Bernd Warken <bwarken@mayn.de>.
2503         * src/include/driver.h (pr): Removed.
2505         * src/libs/libdriver/input.cc (pr): New global variable.
2506         (do_file): Deallocate `pr'.
2507         * src/libs/libdriver/printer.cc (pr): Removed.
2509         * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
2510         (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
2511         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
2512         (main): Don't delete `pr'.
2514 2003-03-10  Werner LEMBERG  <wl@gnu.org>
2516         * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
2517         * tmac/papersize.tmac: New file.
2518         * tmac/troffrc: Include `papersize.tmac'.
2519         * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
2520         * tmac/an-old.tmac: Set LT to LL by default.
2522         * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
2523         doc/groff.texinfo: Updated.
2525         * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
2526         bug which caused all odd iso papers to have wrong dimensions.
2528         * src/devices/grops/ps.cc (user_paper_width): New global variable.
2529         (main) <'p'>: Set `user_paper_width' also.
2530         (ps_printer::media_width, ps_printer::media_height): Use values
2531         given with option `-p'.
2533 2003-03-09  Werner LEMBERG  <wl@gnu.org>
2535         * src/include/nonposix.h: Provide default for SET_BINARY.
2537         * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
2538         src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
2539         unconditionally.
2541         * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
2542         (main): Treat \r\n as \n.
2544 2003-03-08  Werner LEMBERG  <wl@gnu.org>
2546         * tmac/an-old.tmac: Use register `HY' to control hyphenation.
2547         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
2549 2003-03-07  Werner LEMBERG  <wl@gnu.org>
2551         Added support to access more than 256 glyphs in Type 1 fonts.
2553         * src/devices/grops/ps.cc (subencoding): New structure.
2554         (style): Add `sub' field.
2555         Updated all users.
2556         (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
2557         Add `set_subencoding', `get_subfont' and `encode_subfont' member
2558         functions.
2559         Updated all users.
2560         (ps_printer::set_char): Use `set_subencoding'.
2561         (make_subencoding_name): New function.
2562         (ps_printer::set_style): Handle case where `sty.sub' is not zero.
2563         (ps_printer::~ps_printer): Emit subencoding definitions.
2565         * src/devices/grops/psrm.cc (valid_input_table): New array to
2566         properly support EBCDIC.
2567         (white_space): Add `\f'.
2568         (ps_get_line): Change first argument to be of type `string &'.
2569         Updated all callers.
2570         This allows to get lines of arbitrary length.
2571         Use `valid_input_table'.
2572         Remove warning about non-conforming PS line length.  This seems
2573         not to be of great importance -- for example, dvips don't emit
2574         a warning either.
2575         (PS_LINE_MAX): Removed.
2576         (matches_comment): Change first argument to be of type `string &'.
2578         * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
2580         * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
2581         %AGL_to_unicode, %default_ligatures): New hash tables.
2582         Read all map entries.
2583         Add unencoded characters.
2584         Check for default ligatures if there are no `L' entries.
2585         Print all kern entries.
2586         Print all characters in charset.
2587         * src/utils/afmtodit/afmtodit.man: Updated.
2589         * font/devps/*: Regerated all fonts.
2591         * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
2592         of characters, just use `.trin'.  Otherwise the mapping depends
2593         on the font encoding.
2594         * tmac/ps.tmac: Add `fi' and `fl'.
2595         Improve `Fi' and `Fl'.
2596         * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
2597         * tmac/Xps.tmac: Fix `em'.
2599         * NEWS: Updated.
2601 2003-03-04  Werner LEMBERG  <wl@gnu.org>
2603         * src/roff/troff/input.cc (charinfo_to_node_list): Reset
2604         `have_input'.
2606 2003-03-03  Werner LEMBERG  <wl@gnu.org>
2608         * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
2610         * font/devps/generate/textmap: Remove entry `similarequal'.
2611         * font/devps/symbolmap: Updated.
2613 2003-03-02  Werner LEMBERG  <wl@gnu.org>
2615         * src/libs/libgroff/font.cc (font::load): Fix error message for
2616         bad character type.
2618         * src/devices/grops/grops.man: Improve documentation of the -b
2619         flag.
2621         * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
2622         `ascii' and `cp1047'.
2624 2003-03-01  Werner LEMBERG  <wl@gnu.org>
2626         Document composite glyphs and the `composite' request.
2628         * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
2630 2003-02-28  Werner LEMBERG  <wl@gnu.org>
2632         * font/devdvi/generate/ec.map: Add some more Unicode entities.
2633         * font/devdvi/*EC: Updated.
2635         * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
2636         * tmac/latin1 (latin1-tr): Undo any previous mapping.
2637         * tmac/troffrc: Load `composite.tmac'.
2638         * tmac/Makefile.sub (NORMALFILES): Updated.
2640         * doc/groff.texinfo (Input Encodings): New section.
2641         * NEWS: Updated.
2643 2003-02-27  Werner LEMBERG  <wl@gnu.org>
2645         * doc/texinfo.tex: New version 2003-02-11.06.
2647         * tmac/doc-common (Dt): Don't emit warning for unknown section.
2648         * tmac/groff_mdoc.man: Fix description of `Dt'.
2650 2003-02-26  Egil Kvaleberg  <egil@kvaleberg.no>
2652         * font/devps/prologue.ps: Fix for included Postscript that does
2653         a setpagedevice -- which is now safely ignored.
2655         * NEWS: Updated.
2657         * src/devices/grops/ps.cc: Now sets the page size in the generated
2658         document.  This is done in two ways: Via a %%-comment for gv and
2659         the like, and via a PageSize and setpagedevice for programs that
2660         understands Postscript proper, like ps2pdf.
2662         * src/devices/grops/ps.h: New broken-flag to avoid page size
2663         definition, if required.
2665         * src/devices/grops/grops.man: New broken-flag 16 mentioned.
2667         * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
2668         Not really necessary due to the fix in prologue.ps, but cleaner:
2669         Such information does not belong in an .eps file.
2671         * doc/Makefile.sub: See doc/Makefile.in.
2673 2003-02-26  Ralph Corderoy  <ralph@inputplus.co.uk>
2675         * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
2676         instead of P1 since the latter is broken in some versions of netpbm.
2677         * configure: Updated.
2679 2003-02-26  Larry Kollar  <kollar@alltel.net>
2681         Make man pages more customizable.
2683         * tmac/an-old.tmac (FT): New register holding footer distance from
2684         bottom.
2685         (HF): New string holding the default heading font.
2686         (TH): Handle registers `IN' and `SN' set on the command line.
2687         Use `FT'.
2688         (PT, BT): New strings to customize header and footer lines.
2689         (an-header, an-footer): Use them.
2690         (SH, SS): Use `HF'.
2691         * tmac/groff_man.man: Document changes.
2693         * doc/groff.texinfo: Document man changes.
2694         Document Ultrix extensions of man.
2696 2003-02-26  Werner LEMBERG  <wl@gnu.org>
2698         * src/roff/troff/input.cc (do_width, do_if_request): Reset
2699         `have_input' after changing back to old environment.
2701         * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
2702         function up to be defined before first call.  This is necessary to
2703         avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
2705         * src/utils/afmtodit/afmtodit.pl: Make script search for files in
2706         the default font directory also.  Based on a patch from James
2707         J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
2708         * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
2709         * src/utils/afmtodit/afmtodit.man: Document it.
2711         * NEWS: Updated.
2713         * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
2715 2003-02-25  Gaius Mulley  <gaius@glam.ac.uk>
2717         * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
2718         (GROFF_PNMTOPS_NOSETPAGE): New macro.
2719         * configure.ac: Use it.
2720         * configure: Regenerated.
2721         * Makefile.in: Updated.
2723         * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
2724         (CLEANADD): Add www.tmac-sed.
2725         (pnmtops_nosetpage): Define default.
2726         (install_data): Handle www.tmac-sed and substitute
2727         @PNMTOPS_NOSETPAGE@.
2728         (stamp-sed): Add www.tmac.
2729         * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
2730         It now breaks URLs at suitable places.
2731         (www:substring_ok): New register set by...
2732         (www:@test_substring): New macro.
2733         (www:error): New alias to www-error.
2734         (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
2735         New macros.
2736         (URL): Use www:url_breaks.
2737         (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
2738         (CDS, CDE): New macros.
2740 2003-02-25  Werner LEMBERG  <wl@gnu.org>
2742         * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
2743         buffer overflow.
2745 2003-02-24  Werner LEMBERG  <wl@gnu.org>
2747         Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
2748         can be negative also.
2750         * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
2751         `int16'.
2752         (read_char_table): Avoid negative ascenders.
2753         (output_charset): Add cast.
2754         * font/devlj4/*: Regenerated.
2756         Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
2757         possible.
2759         * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
2760         * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
2761         of `<>'.
2762         * font/devdvi/*: Regenerated.
2764         Map `la' and `ra' to U+27E8 and U+27E9.  These two characters have
2765         normal width, while the previously used characters (U+2329 and
2766         U+232A) are classified as wide due to canonical equivalence with the
2767         CJK punctuation characters U+3008 and U+3009.
2769         * font/devutf8/R.proto: Updated.
2770         * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
2772         * man/groff_char.man: Simplify handling of table traps by
2773         introducing `start block' and `end block' macros.
2774         (Ns, Ne, 2s, 2e, Ds, De): New macros.
2775         (DL): Make it work with Unix troff also.
2776         Fix code values of `la' and `ra'.
2778         * tmac/dvi.tmac: Define `<>' for CW and CWI.
2780 2003-02-23  Gaius Mulley  <gaius@glam.ac.uk>
2782         * src/devices/grohtml/post-html.cc (element_list::~element_list):
2783         New destructor, fixing a major memory leak.
2785 2003-02-22  Werner LEMBERG  <wl@gnu.org>
2787         * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
2788         to be in conformance with Unicode 3.0 and newer.
2790         * font/devlj4/generate/text.map: Add `Eu'.
2791         * font/devlj4/generate/special.map: Flip `*e' and `+e'.
2792         * font/devlj4/S: Regenerated.
2794         * man/groff_char.man: Completely rewritten.
2796         * doc/groff.texinfo: Fix description of request and macro arguments.
2798 2003-02-20  Gaius Mulley  <gaius@glam.ac.uk>
2800         Valgrind fixes.
2802         * src/devices/grohtml/html-table.cc (html_table::~html_table):
2803         Deallocate `columns' list.
2804         * src/devices/grohtml/post-html.cc (char_block::~char_block):
2805         New destructor.
2806         (text_glob::text_glob_html, text_glob::text_glob_special,
2807         text_glob::text_glob_line, text_glob::text_glob_auto_image,
2808         text_glob::text_glob_tag): Avoid memory leaks.
2809         (text_glob::remember_table): Free memory before reassigning.
2811 2003-02-19  Werner LEMBERG  <wl@gnu.org>
2813         Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
2814         alias `hbar'), the Planck constant over two pi.
2816         * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
2817         `+e' for position 34.
2818         * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
2819         `u2662' and `u2661'.
2820         * font/devdvi/{MI,S}: Regenerated.
2821         * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
2822         * font/devlbp/*: Add `hbar' alias.
2823         * font/devlj4/generate/special.map: Ditto.
2824         * font/devlj4/S: Regenerated.
2825         * font/devps/generate/symbolchars: Add `+e'.
2826         * font/devps/generate/textmap: Fix PS name for `-h'.
2827         Add `hbar' alias.
2828         * font/devps/symbolmap: Regenerated.
2830         * src/devices/grops/ps.cc (transform_fill): Removed since unused.
2832         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
2833         `-h', `hbar'.
2834         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
2835         `-h'.
2837         * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
2838         `hbar'.
2839         * tmac/tty-char.tmac: Add `+e'.
2841 2003-02-17  Werner LEMBERG  <wl@gnu.org>
2843         Another round trying to really fix problems with `have_input'.
2845         * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
2846         (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
2848         * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
2849         handling if both foreground and background colors are default.
2851         * doc/groff.texinfo (Debugging): Document .lf differences to
2852         AT&T troff.
2854 2003-02-16  Werner LEMBERG  <wl@gnu.org>
2856         * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
2857         null-bytes in created string.
2859         * src/roff/troff/input.cc (lookup_color, interpolate_macro,
2860         alias_macro, lookup_request): Improve warning messages.
2862         * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
2863         not `strdup'.
2864         Free `last_image_filename'.
2866         * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
2867         `buffer'.
2868         (imageList::createPage, imageList::createImage): Use `free', not
2869         `a_delete'.
2870         (imageItem::~imageItem): Free `imageName'.
2871         (addRegDef): Use `strsave', not `strdup'.
2872         (get_resolution): Free `pathp'.
2874 2003-02-15  Werner LEMBERG  <wl@gnu.org>
2876         * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
2877         to `dummy'.
2879 2003-02-14  Werner LEMBERG  <wl@gnu.org>
2881         Add memory management for colors to deallocate unnamed colors
2882         properly.
2884         * src/include/color.h (color): New members `free_list' and `next'.
2885         New member functions `new' and `delete'.
2886         Add destructor.
2887         * src/libs/libgroff/color.cc: Implement it.
2889         * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
2890         for array size of new operator.
2892         * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
2893         redundant comparison.
2895         * src/roff/troff/input.cc (word_space_node::reread,
2896         hmotion_node::reread): Avoid warning about unused parameter.
2897         (reset_output_registers): Remove redundant parameter.
2898         (define_color): Undo change 2003-02-12.
2900         * src/roff/troff/reg.h: Updated.
2902         * src/roff/troff/node.cc (troff_output_file::really_print_line,
2903         output_file::put_filename, real_output_file::really_put_filename,
2904         ascii_output_file::really_print_line,
2905         break_char_node::get_hyphen_list): Avoid warning about unused
2906         parameter.
2907         (suppress_node::tprint): Updated.
2909         * configure.ac: Check declaration for rand() and srand().
2910         * configure: Regenerated.
2912         * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
2913         conditionally.
2914         * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
2915         and srand().
2917         * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
2918         to avoid compiler warnings.
2920         * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
2921         unused.
2923         * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
2924         is unused.
2925         * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
2926         (unused) parameter.
2927         Updated all callers.
2929         * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
2930         is unused.
2931         * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
2932         * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
2934         * src/devices/grohtml/post-html.cc (html_printer::emit_line):
2935         Parameter is unused.
2936         (html_printer::add_table_end): Define parameter conditionally.
2937         * src/devices/grohtml/output.cc (simple_output::special): Parameter
2938         is unused.
2940         * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
2941         (lbp_printer::set_char): Last parameter is unused.
2943         * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
2945 2003-02-13  Werner LEMBERG  <wl@gnu.org>
2947         New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
2948         Make \D'f ...' move horizontally again for backwards compatibility.
2949         Replace it with \D'Fg ...' where appropriate to avoid dependency
2950         on horizontal resolution.
2952         * src/roff/troff/input.cc (do_get_long_name): New function.
2953         (get_long_name): Call it.
2955         (read_draw_node): Handle `\D'Fx ...' by calling ...
2956         (read_color_draw_node): New function.
2958         (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
2959         `end'.
2960         Pass it to `do_get_long_name' which is used instead of
2961         `get_long_name'.
2963         * src/libs/libdriver/input.cc (color_from_Df_command): Remove
2964         unnecessary value guard.
2965         (parse_D_command) <'f'>: Add horizontal shift.
2967         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
2968         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
2969         (FILL_MAX): Removed.
2971         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2972         Updated.
2974 2003-02-12  Werner LEMBERG  <wl@gnu.org>
2976         * src/roff/troff/input.cc (do_name_test, do_expr_test,
2977         do_zero_width): Push `\n' if closing delimiter is missing.
2979         (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
2980         <'F'>: Make \F non-transparent at the beginning of line.
2981         (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
2982         token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
2983         `have_input'.
2985         (define_color): Free color in case of reassignment.
2987         * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
2988         @DefescListEnd): Use @Var, not @var.
2989         Fix all calls.
2991         * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
2993         * src/preproc/pic/object.cc (object_spec::~object_spec): Free
2994         `shaded' and `outlined' arrays.
2995         (object_spec::object_spec): Initialize `shaded' and `outlined'.
2996         (graphic_object::set_fill_color, graphic_object::set_outline_color):
2997         Use strsave.
2998         (closed_object::set_fill_color): Ditto.
2999         * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
3000         instead of strdup.
3001         (troff_output::reset_color): Use a_delete instead of free.
3002         * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
3004 2003-02-11  Werner LEMBERG  <wl@gnu.org>
3006         * doc/groff.texinfo: Improve documentation of `ad'.
3007         Document that \D'f...' is dependent on the horizontal resolution.
3008         * man/groff_diff.man: Improve documentation of \D'f...'.
3010         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
3011         compensating \h'...' for \D'f ...' since the latter no longer moves
3012         current position.
3013         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
3015 2003-02-10  Werner LEMBERG  <wl@gnu.org>
3017         Improve error messages for `x F' (and `F') commands.
3019         * src/include/error.h: Add declaration for
3020         `current_source_filename'.
3021         * src/libs/libgroff/filename.cc: Add `current_source_filename'.
3022         * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
3023         parameter for source file string.
3024         Updated all callers.
3026         * src/libs/libdriver/input.cc: Add `current_source_filename'.
3027         (remember_source_filename): New function.
3028         (parse_x_command <'F'>, do_file <'F'>): Use it.
3030 2003-02-09  Werner LEMBERG  <wl@gnu.org>
3032         Make grotty not emit warnings about unknown colors more than
3033         necessary.
3035         * src/devices/grotty/tty.cc: Include `ptable.h'.
3036         (TTY_MAX_COLORS): Removed.
3037         (DEFAULT_COLOR_IDX): Defined to -1.
3038         (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
3039         (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
3040         Change `tty_colors' to be a ptable.
3041         First arg of `put_color' is now `char'.
3042         New functions `make_rgb_string' and `tty_color'.
3043         (tty_printer::tty_printer): Use `tty_color'.
3044         (tty_printer::color_to_idx): Return value is now `char'.
3045         Use `tty_color'.
3047         * src/include/color.h (color): Add `print_color' member function.
3048         * src/libs/libgroff/color.cc (color::print_color): Implement it.
3050 2003-02-08  Werner LEMBERG  <wl@gnu.org>
3052         Valgrind fixes.
3054         * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
3055         encoding file.
3057         * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
3058         assume that value has been allocated with `new[]', thus use
3059         `a_delete' for deallocation.
3061         * src/libs/libdriver/input.cc (get_integer_arg,
3062         get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
3063         where appropriate.
3065         * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
3066         * src/libs/libgroff/nametoindex.cc
3067         (character_indexer::named_char_index): Use `new <type>[1]'.
3069         * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
3070         <type>[1]'.
3071         * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
3072         (split_text): Use `a_delete'.
3074         * src/preproc/pic/pic.y (define_label, define_variable): Use `new
3075         <type>[1]'.
3077         * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
3078         harmless memory leak.
3079         (hyphen_trie::read_patterns_file): Initialize `buf'.
3080         * src/roff/troff/node.cc (troff_output_file::troff_output_file):
3081         Initialize `current_fill_color'and `current_glyph_color'.
3082         * src/roff/troff/glyphuni.cc
3083         (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
3084         * src/roff/troff/uniuni.cc
3085         (unicode_decompose_init::unicode_decompose_init): Ditto.
3086         * src/roff/troff/uniglyph.cc
3087         (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
3089 2003-01-26  Werner LEMBERG  <wl@gnu.org>
3091         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
3092         `access' before calling `unlink'.
3093         (do_file): Handle __EMX__.
3095         * src/include/nonposix.h: Handle __EMX__.
3097         * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
3098         (fontpath,tmacpath): Use it.
3099         (MDEFINES): Add it.
3100         Sorted alphabetically.
3102         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
3103         @SEP@.
3104         * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
3105         @SEP@.
3107 2003-01-27  Werner LEMBERG  <wl@gnu.org>
3109         * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
3110         New files, copied from gnulib.
3111         * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
3112         * configure.ac: Updated.
3113         * configure: Regenerated.
3115         * src/include/config.hin: Regenerated.
3116         * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
3117         Don't define `strcasecmp' as `strcmp'.
3118         [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
3119         Dont define `strncasecmp' as `strncmp'.
3121         * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
3122         Removed.
3124 2003-01-26  Werner LEMBERG  <wl@gnu.org>
3126         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
3127         s/unline/unlink/.
3129 2003-01-25  Werner LEMBERG  <wl@gnu.org>
3131         * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
3133 2003-01-24  Werner LEMBERG  <wl@gnu.org>
3135         Add US-english hyphenation exceptions (converted from Barbara
3136         Beeton's hyphenation exception log reports which appear irregularly
3137         in TUGBoat).
3139         * tmac/hyphen.us: Updated to latest version.
3140         * tmac/README: Updated.
3141         * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
3142         * tmac/troffrc: Load `hyphenex.us'.
3143         * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
3144         * doc/groff.texinfo: Updated.
3146 2003-01-23  Werner LEMBERG  <wl@gnu.org>
3148         Improve hyphenation slightly.  This is a first step in redesigning
3149         the hyphenation algorithm to make it more flexible (e.g. allowing
3150         kerns and ligatures between the hyphenation character and the
3151         following character -- while not used normally in English, other
3152         languages like German would benefit).
3154         * src/roff/troff/env.cc (environment::hyphenate_line): Use
3155         assertion instead of if-clause.
3156         Let `get_hyphen_list' return the number of involved characters in
3157         the hyphenation pattern instead of computing it directly (which
3158         often yields too small values).
3159         * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
3160         * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
3161         parameter.
3163 2003-01-22  Werner LEMBERG  <wl@gnu.org>
3165         Fixing a bug which caused groff to hang if the hyphenation exception
3166         dictionary tried to grow.
3168         * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
3169         hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
3170         pointer to dictionary.
3172 2003-01-20  Werner LEMBERG  <wl@gnu.org>
3174         * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
3175         negative left italic correction.
3176         * src/utils/afmtodit/afmtodit.man: Document it.
3178         * font/devps/generate/Makefile (RFLAG): Add `-m'.
3179         * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
3180         S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
3182         * NEWS: Updated.
3184 2003-01-16  Werner LEMBERG  <wl@gnu.org>
3186         * NEWS: Updated.
3188 2003-01-16  Jörgen Grahn  <jgrahn@algonet.se>
3190         * src/preproc/refer/refer.man: Mention REFER environment variable.
3192 2003-01-05  Werner LEMBERG  <wl@gnu.org>
3194         Similar to \[is], the square root glyph (\[sr]) and the square root
3195         extension glyph (\[radicalex]) are now text symbols.  The new
3196         mathematical versions are called \[sqrt] and \[sqrtex],
3197         respectively.
3199         * font/devX*/S: Regenerated.
3200         * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
3201         * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
3202         * font/devdvi/EX, font/devdvi/S: Regenerated.
3203         * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
3204         * font/devlj4/generate/special.map: Add `sqrt'.
3205         * font/devlj4/S: Regenerated.
3206         * font/devps/generate/textmap: Add `sqrt'.
3207         * font/devps/S, font/devps/symbolmap: Regenerated.
3209         * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
3210         SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
3211         * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
3212         overlap horizontally.
3214         * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
3215         * tmac/dvi.tmac: Add `sr', and `sqrtex'.
3216         Fix `radicalex'.
3218         * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
3219         and `sqrtex' are overlapping glyphs.
3221 2003-01-04  Werner LEMBERG  <wl@gnu.org>
3223         * font/devdvi/generate/texsy.map: Add `is'.
3224         * font/devps/symbolmap: Regenerated.
3225         * font/devdvi/*TC, MI, S: Regenerated.
3227         * tmac/dvi.tmac: Remove `is'.
3229 2003-01-03  Werner LEMBERG  <wl@gnu.org>
3231         `is' is now a text symbol (only relevant for dvi).  The math variant
3232         can be accessed with `integral'.
3234         * font/devX*/S: Regenerated.
3235         * font/devdvi/generate/texex.map: Remove `is'.
3236         * font/devdvi/EX: Updated.
3237         * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
3238         * font/devlj4/generate/special.map: Ditto.
3239         * font/devlj4/S: Regenerated.
3240         * font/devps/generate/textmap: Add `integral'.
3241         * font/devps/S: Regenerated.
3243         * tmac/dvi.tmac: Define `is'.
3245         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
3247         * src/preproc/tbl/main.cc (process_format): Fix error message.
3249 2003-01-02  Werner LEMBERG  <wl@gnu.org>
3251         * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
3252         * font/devps/textmap: Fix entries for `ne' and `nc'.
3253         * font/devps/symbolmap: Regenerated.
3255         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
3256         src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
3257         `38', `58', `78', `-+', `|=', `nc', `ne'.
3259         * tmac/dvi.tmac: Add `nm', `ne', `nc'.
3260         Use `schar' for `aq'.
3261         * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
3262         * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
3263         * tmac/tty.tmac: Add `ne'.
3265         * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
3266         for fallback glyphs.
3268 2002-12-29  Werner LEMBERG  <wl@gnu.org>
3270         Add glyph `|='.
3272         * font/devX*/*: Regenerated.
3273         * font/devdvi/generate/ec.map: Remove `eq'.
3274         * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
3275         Assign `|=' to position 39.
3276         * font/devdvi/*EC, S: Regenerated.
3277         * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
3278         * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
3279         Assign `|=' to position 549.
3280         * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
3281         `equalmath'.
3282         Add `uni2243' for `|='.
3284         * tmac/ec.tmac: Add `eq'.
3285         * tmac/dvi.tmac: Add `=~'.
3286         * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
3287         `|='.
3289 2002-12-21  Werner LEMBERG  <wl@gnu.org>
3291         * font/devdvi/generate/tc.map: Remove `**'.
3292         * font/devdvi/*TC: Regenerated.
3293         * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
3294         `78', `<<', `>>'.
3295         * font/devutf8/NOTES: Updated.
3297         * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
3298         Don't give default parameter to `set_macro'.
3299         * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
3300         instead of `set_macro'.
3301         (charinfo::setx_macro): Implement it.
3302         (charinfo::set_macro): Don't change `mode'.
3304         * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
3305         * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
3306         * tmac/dvi.tmac: Define `!=' with `.schar'.
3308 2002-12-20  Werner LEMBERG  <wl@gnu.org>
3310         * font/devX*/S: Regenerated.
3311         * font/devdvi/generate/ec.map: Remove `pl'.
3312         * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
3313         * font/devdvi/*{TC,EC}: Regenerated.
3314         * font/devhtml/R.proto: Add `-+'.
3315         Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
3316         * font/devlbp/*: Remove `or'.
3317         * font/devlj4/generate/special.map: Remove `or'.
3318         * font/devlj4/S: Regenerated.
3319         * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
3320         `seveneighths', `threeeighths'.
3321         Remove `plusmath'.
3322         Replace `minusplus' with `uni2213'.
3323         * font/devps/symbolmap: Regenerated.
3324         * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
3325         Add `-+'.
3327         * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
3328         function.
3329         * src/roff/troff/node.cc (troff_output_file::put_char_width):
3330         Call glyph_color and fill_color even if tcommand_flag isn't set.
3331         (make_node, node::add_char): Check not ci->is_fallback but
3332         ci->is_normal.
3334         * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
3335         * tmac/ec.tmac: Add .rchar entry for `f/'.
3336         Don't remove `12', `14', `34'.
3337         Define `pl' to be always roman.
3338         * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
3339         Define `18', `38', `58', `78'.
3340         * tmac/tty.tmac: Add `-+'.
3341         * tmac/dvi.tmac: Define `f/'.
3342         (dvi-frac): Use `f/'.
3343         * tmac/X.tmac (X-frac, X-frac-mono): New macros.
3344         Define `18', `38', `58', `78'.
3346 2002-12-15  Colin Watson  <cjwatson@debian.org>
3348         * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
3350 2002-12-10  Werner LEMBERG  <wl@gnu.org>
3352         Add glyph `tno', a textual variant of `no'.
3354         * font/devX*/*: Regenerated.
3355         * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
3356         * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
3357         * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
3358         * font/devdvi/*: Regenerated.
3359         * font/devlbp/*: Add `tno'.
3360         * font/devlj4/generate/tex.map: Replace `no' with `tno'.
3361         * font/devlj4/*: Regenerated.
3362         * font/devps/generate/textmap: Replace `no' with `tno'.
3363         * font/devps/generate/symbolchars: Add `no'.
3364         * font/devps/*: Regenerated.
3366         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
3368         * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
3369         * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
3371         * NEWS: Updated.
3373         * tmac/dvi.tmac: Replace most `\\' with `\E'.
3374         Add definition for `sd'.
3375         * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
3377         * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
3379 2002-12-08  Werner LEMBERG  <wl@gnu.org>
3381         * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
3382         mode to avoid rounding errors.
3383         (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
3385         * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
3386         src/roff/troff/troff.man: Improve documentation of -T.
3388 2002-12-07  Jeff Conrad  <jeff_conrad@msn.com>
3390         * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
3391         (run_pipeline) [_WIN32]: Provide working function without `fork'.
3393 2002-12-06  Werner LEMBERG  <wl@gnu.org>
3395         * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
3396         glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
3397         Scaling Euro.sansserif glyphs down to have the same height as
3398         digits.
3399         Removed unnecessary points; added some extrema.
3401         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
3402         Regenerated.
3404 2002-12-04  Werner LEMBERG  <wl@gnu.org>
3406         * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
3407         and `Euro.symbol.bold.slanted'.
3408         Improve some glyph offsets and widths.
3409         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
3410         Regenerated.
3411         * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
3412         typo.
3413         * font/devps/generate/sfdtopfa.pe: Generate PFA in current
3414         direcory.
3416         * tmac/europs.tmac: Updated to new glyph indices.
3417         Use Euro.symbol for font familiy `A'.
3419         * doc/groff.texinfo: Minor improvements.
3421 2002-12-02  Werner LEMBERG  <wl@gnu.org>
3423         * font/devdvi/generate.tc.map: s/%O/%0/.
3424         * font/devdvi/*TC: Regenerated.
3426         * src/roff/troff/div.cc (init_div_requests): Sorted.
3428         * tmac/dvi.tmac: Remove `Ye'.
3429         * tmac/ec.tmac: Remove `Ye'.
3430         Add .rchar entry for `de'.
3432         * man/groff.man, man/groff_diff.man: Document register `.pe'.
3433         * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
3434         * NEWS: Updated.
3436 2002-11-30  Werner LEMBERG  <wl@gnu.org>
3438         Add PS font for various Euro glyphs.
3440         * font/devps/generate/freeeuro.sfd: New master font file for
3441         pfaedit.
3442         * font/devps/generate/sfdtopfa.pe: New conversion script for
3443         pfaedit.
3444         * font/devps/generate/Makefile (FONTS): Add `EURO'.
3445         (EURO, freeeuro.afm, freeeuro.pfa): New rules.
3446         * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
3447         `freeeuro.sfd'.
3448         * font/devps/EURO: Generated from `freeeuro.afm'.
3449         * font/devps/download: Add `freeuro.pfa'.
3450         * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
3451         `freeeuro.pfa'.
3453         * tmac/europs.tmac: New file.
3454         * tmac/ps.tmac: Include `europs.tmac'.
3455         * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
3457 2002-11-29  Werner LEMBERG  <wl@gnu.org>
3459         * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
3460         * font/devdvi/S: Regenerated.
3461         * font/devhtml/R.proto: Fix `CR' and `ci'.
3462         Add `OK'.
3463         * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
3464         Remove `bs'.
3465         * font/devps/symbolmap: Regenerated.
3466         * font/devutf8/R.proto: Fix `CR' and `ci'.
3467         Add `OK'.
3468         * font/devutf8/NOTES: Updated.
3470         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
3471         `ci'.
3472         Add `OK'.
3473         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
3475         * tmac/dvi.tmac: Add `lh' and `rh'.
3476         * tmac/Xps.tmac: Fix `lh' and `rh'.
3477         * tmac/X.tmac: Add `OK'.
3478         * tmac/lj4.tmac: Ditto.
3480 2002-11-24  Werner LEMBERG  <wl@gnu.org>
3482         * font/devX*/S: Regenerated.
3483         * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
3484         `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
3485         * font/devdvi/generate/texsy.map: Remove `or' glyph.
3486         * font/devdvi/S: Regenerated.
3487         * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
3488         `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
3489         `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
3490         `bracketleftbt', `bracketrighttp', `bracketrightex',
3491         `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
3492         `braceex', `braceleftex', `bracerightex', `bracerighttp',
3493         `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
3494         `rb', and `bv'.
3495         * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
3496         * font/devutf8/NOTES: Updated.
3497         * font/devlj4/generate/special.map: Add glyph `braceex'.
3498         * font/devlj4/S: Regenerated.
3500         * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
3502 2002-11-14  Werner LEMBERG  <wl@gnu.org>
3504         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
3505         and `vA'.
3506         Fix code for `an'.
3507         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
3509         * doc/texinfo.tex: New version from texinfo 4.3.
3510         * doc/groff.texinfo: Updated for texinfo 4.3.
3511         Use @tie{} where appropriate.
3512         * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
3513         * font/devdvi/generate/tc.map: Remove `rn'.
3514         * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
3515         * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
3516         Fix code for `an'.
3517         * font/devX100/*, font/devX100-12/*, font/devX75/*,
3518         font/devX75-12/*: Regenerated.
3520         * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
3521         Use .char (again) for `br', `ul', `rn', `or', and `ru'.
3522         Improve definition of `an'.
3523         * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
3524         `ru'.
3525         * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
3526         * tmac/X.tmac: Add definition for `or'.
3527         * tmac/Xps.tmac: Undo change 2002-11-05.
3528         * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
3530 2002-11-11  Werner LEMBERG  <wl@gnu.org>
3532         * src/roff/troff/node.cc (troff_output_file::put_char): Always
3533         call flush_tbuf.
3535 2002-11-10  Werner LEMBERG  <wl@gnu.org>
3537         Added three new requests `schar', `fschar', and `rfschar'.  `schar'
3538         defines a glyph which is searched after the check for fonts declared
3539         with `.special' (and before the check for all mounted special
3540         fonts).  `fschar' defines a glyph for a particular font which is
3541         searched after the check for fonts declared with `.fspecial' (and
3542         before the check for fonts declared with `.special').  `rfschar'
3543         removes glyphs defined with `fschar'.
3545         * src/roff/troff/token.h (char_mode): New enum.
3546         Declare do_define_character.
3547         * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
3548         `mode'.
3549         (charinfo::is_fallback): Updated.
3550         (charinfo::is_special): New method.
3551         * src/roff/troff/input.cc (do_define_character): Add and use
3552         optional second parameter used as a prefix for font-specific glyph
3553         names.
3554         (define_character, define_fallback_character): Updated.
3555         (define_special_character): New function.
3556         (init_input_requests): Add `schar'.
3557         (charinfo::charinfo, charinfo::set_macro): Updated.
3558         * src/roff/troff/node.cc: Include `stringclass.h'.
3559         (make_glyph_node): Handle special glyphs defined with `.schar' and
3560         `.fschar'.
3561         (define_font_special_character, remove_font_special_character): New
3562         functions.
3563         (init_node_requests): Sorted.
3564         Add `fschar' and `rfschar'.
3565         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3566         Document new requests.
3568         * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
3569         * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
3571 2002-11-08  Werner LEMBERG  <wl@gnu.org>
3573         Added new font `SC' (cmtex10) to devdvi.
3575         * devdvi/generate/Makefile (FONTS): Add `SC'.
3576         (SC): New rule.
3577         * devdvi/generate/textex.map: New map file for cmtex.
3578         * devdvi/SC: New.
3579         * devdvi/Makefile.sub (DEVFILES): Updated.
3580         * tmac/dvi.tmac: Add fspecial entries for SC.
3581         Add `MI', `S' and `CW' to the `special' call.  Otherwise, `SC' is
3582         found before `S' since the font position of `SC' is lower due to the
3583         gaps in DESC's `font' line.
3584         * tmac/ec.tmac: Add a `special' call.
3585         * NEWS: Updated.
3587         * font/devhtml/R.proto: Remove double entry for `ti'.
3588         * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
3589         * tmac/tty-char.tmac: Remove entry for `bq'.
3590         * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
3591         * tmac/ec.tmac: Don't remove `aq' glyph.
3592         * tmac/X.tmac: Fix entry for `em'.
3593         Add entries for `fo' and `fc'.
3594         * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
3596         * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
3597         documentation of `special' and `fspecial' requests.
3599 2002-11-05  Werner LEMBERG  <wl@gnu.org>
3601         * font/devascii/R.proto, font/devcp1047/R.proto,
3602         font/devlatin1/R.proto: Remove entry for `.i'.
3603         * font/devdvi/generate/textt.map: Add entry for `ad'.
3604         * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
3605         font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
3606         We need this for getting kerning values to compose `/l' and `/L'.
3607         * font/devdvi: Regenerated font definition files for CM fonts.
3608         * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
3609         * font/devutf8/R.proto: Ditto.
3610         Remove double entry for `ti'.
3612         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
3613         for (groff) ligatures, `la', and `ra'.
3614         Add "'C", "'c", `IJ', and `ij'.
3615         Remove double entry for `ti'.
3616         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
3617         double entries.
3618         Add "'C", "'c", `IJ', and `ij'.
3619         Fix entries for (groff) ligatures, `la', and `ra'.
3621         * tmac/ps.tmac (ps-achar): New macro.
3622         Define "'c" and "'C".
3623         * tmac/tty.tmac: Add entry for `.i'.
3624         * tmac/X.tmac (X-achar): New macro.
3625         Define "'c", "'C", and `:Y'.
3626         Add entries for `IJ' and `ij'.
3627         * tmac/Xps.tmac (Xps-achar): New macro.
3628         Define "'c" and "'C".
3629         Add entries for `IJ' and `ij'.
3630         * tmac/lbp.tmac (lbp-achar): New macro.
3631         Add fallback characters for all groff ligatures and many other
3632         glyphs.
3633         * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
3634         Add entries for `/l' and `/L'.
3635         Define "'c" and "'C".
3636         Add entries for `IJ' and `ij'.
3638 2002-11-02  Larry Kollar  <kollar@alltel.net>
3640         * PROBLEMS: Document how to solve Mac OS X compilation problems.
3642 2002-11-02  Werner LEMBERG  <wl@gnu.org>
3644         Adding support for composite glyphs: \[xxx yyy ...] and the
3645         `composite' request.
3647         * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
3648         to Unicode-based glyph names.
3649         * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
3650         glyph names to groff glyph names.
3651         * src/roff/troff/uniuni.cc: New file for canonically decomposing
3652         Unicode-based glyph names.
3653         * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
3654         for handling Unicode glyph names.
3655         * src/roff/troff/input.cc: Include unicode.h.
3656         (composite_glyph_name): New function.
3657         (token::next) <'['>: Handle Unicode glyph names and composite
3658         glyphs.
3659         (composite_dictionary): New dictionary for the `composite' request.
3660         (composite_request): Implement `composite' request.
3661         (init_input_requests): Add `composite'.
3662         Alphabetically sorted.
3663         * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
3664         commented out).
3665         (init_env_requests): Alphabetically sorted.
3666         Removed `tas' and `tar' (already commented out).
3667         * src/roff/troff/Makefile.sub: Updated.
3669 2002-10-31  Ruslan Ermilov  <ru@FreeBSD.org>
3671         * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
3672         of options.
3674 2002-10-29  Werner LEMBERG  <wl@gnu.org>
3676         Fix computation of .trunc register.  Additionally, its value (and
3677         the value of the .ne register) is now always set before entering the
3678         trap.
3680         * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
3681         `needed_space' before calling `space'.
3682         (top_level_diversion::space): Remove special code for 'sp before the
3683         first page.
3684         Call `begin_page' with the discarded space as a parameter.
3685         (top_level_diversion::begin_page): Add optional parameter to set
3686         `truncated_space'.
3687         * src/roff/troff/div.h: Updated.
3689         * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
3690         \n[.ne].
3692         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
3693         (LP): Remove superfluous call to `br'.
3694         * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
3695         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
3697 2002-10-26  Werner LEMBERG  <wl@gnu.org>
3699         * tmac/doc-ditroff: Remove useless switch/variable -rC.
3700         (doc-setup-header): Don't set page register `%'.
3701         * tmac/doc-nroff: Remove variable `C'.
3702         (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
3703         (doc-setup-header): Don't set page register `%'.
3704         Don't call `bp'.
3705         * tmac/doc-common (doc-header): Call `ns'.
3706         (doc-paragraph): Protect .sp with .br so that it survives traps
3707         possibly set by the user.
3708         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
3710         * tmac/doc*: Replace ' with . for consistency if no effect.
3712 2002-10-26  Werner LEMBERG  <wl@gnu.org>
3714         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
3715         so that it survives traps possibly set by the user.
3717         * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
3718         (troff_output_file::set_font): Call flush_tbuf if necessary.
3719         (troff_output_file::fill_color, troff_output_file::glyph_color): Call
3720         flush_tbuf and do_motion only if necessary.
3721         (troff_output_file::start_special,
3722         troff_output_file::put_char_width, troff_output_file::put_char,
3723         troff_output_file::draw): Updated.
3724         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
3725         vmotion_node::tprint): Undo change 2002-10-23.
3727 2002-10-25  Werner LEMBERG  <wl@gnu.org>
3729         * tmac/www.tmac (DC): Fix case of overlapping images.
3731 2002-10-23  Werner LEMBERG  <wl@gnu.org>
3733         * src/roff/troff/node.cc (troff_output_file::fill_color,
3734         troff_output_file::glyph_color): Set current color before testing
3735         color_flag.
3736         (troff_output_file::put_char_width, troff_output_file::put_char,
3737         troff_output_file::draw): Don't call flush_tbuf and/or do_motion
3738         before glyph_color.
3739         (troff_output_file::file_color, troff_output_file::glyph_color):
3740         Call do_motion.
3741         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
3742         vmotion_node::tprint): Move first, then call fill_color.
3744 2002-10-20  Werner LEMBERG  <wl@gnu.org>
3746         * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
3747         possible to use multiple main macro packages.
3749 2002-10-19  Werner LEMBERG  <wl@gnu.org>
3751         * src/devices/grops/ps.cc (cmyk_flag): New global variable.
3752         (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
3753         (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
3754         is set.
3755         * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
3756         `where' construction since `cmyksetcolor' is a PS Level 2 operator.
3758 2002-10-16  Werner LEMBERG  <wl@gnu.org>
3760         * NEWS, doc/webpage.ms: Updated.
3762 2002-10-14  Werner LEMBERG  <wl@gnu.org>
3764         * src/roff/troff/node.cc (troff_output_file::put_char_width,
3765         troff_output_file::put_char, troff_output_file::fill_color,
3766         troff_output_file::glyph_color): Handle case where color pointer
3767         is null.
3769 2002-10-13  Ruslan Ermilov  <ru@FreeBSD.org>
3771         Add the new -r option to grotty.  It is similar to the -i option
3772         except it tells grotty(1) to use the "reverse video" attribute to
3773         render italic fonts.
3775         * src/devices/grotty/tty.cc (reverse_flag): New global variable.
3776         (SGR_REVERSE, SGR_NO_REVERSE): New macros.
3777         (tty_printer::make_underline, tty_printer::put_color,
3778         tty_printer::end_page): Use it.
3779         (main): Add -r switch.
3780         (usage): Updated.
3781         * src/devices/grotty/grotty.man: Document it.
3783 2002-10-11  Ruslan Ermilov  <ru@FreeBSD.org>
3785         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
3786         cast to `unsigned char' to properly read patterns with 8bit
3787         characters.
3789 2002-10-08  Werner LEMBERG  <wl@gnu.org>
3791         * REVISION: Increased to 2.
3793 Version 1.18.1 released
3794 =======================
3796 2002-10-08  Werner LEMBERG  <wl@gnu.org>
3798         * doc/webpage.ms, NEWS: Updated.
3800 2002-10-07  Werner LEMBERG  <wl@gnu.org>
3802         * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
3803         suppress additional whitespace after the header.
3805         * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
3806         with NetBSD.
3808         * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
3810 2002-10-07  Ruslan Ermilov  <ru@FreeBSD.org>
3812         * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
3813         (Dt): Use it to improve language localization (especially Russian
3814         and French).
3816 2002-10-07  Daniel Senderowicz  <daniel@synchrods.com>
3818         * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
3819         * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
3820         drawing commands.
3821         * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
3822         curve type.
3823         Call `picurve' for BSPLINE.
3824         (HGPrintElt): Handle BSPLINE.
3825         * src/preproc/grn/README: Document it.
3827 2002-10-03  Werner LEMBERG  <wl@gnu.org>
3829         * src/roff/troff/node.cc (break_char_node::col): New variable.
3830         Updated constructor.
3831         (space_node::tprint, word_space_node::tprint): Call `fill_color'
3832         unconditionally.
3833         (space_node::space_node): Remove assertion.
3834         (break_char_node::add_self): Pass color argument to space node.
3835         * src/roff/troff/input.cc (token::add_to_node_list, token::process):
3836         Ditto.
3837         * src/roff/troff/env.cc (environment::do_break,
3838         environment::add_padding): Ditto.
3840 2002-10-02  Werner LEMBERG  <wl@gnu.org>
3842         Redesigning color support in troff.  Colors are no longer
3843         represented as separate nodes but are now part of glyph nodes and
3844         friends.  This fixes the current formatting misbehaviour due to the
3845         changes introduced on 2002-09-20.  Some extra code is necessary for
3846         proper grotty support: Without adding color variables to
3847         space-related nodes, the background color would be changed too late.
3849         * src/roff/troff/node.h, src/roff/troff/node.cc:
3850         s/current_pagecolor/current_fill_color/.
3851         s/current_glyphcolor/current_glyph_color/.
3852         (glyph_color_node, fill_color_node): Removed.
3853         (node::get_glyph_color, node::get_fill_color): New virtual member
3854         functions.
3855         (space_node::col): New variable.
3856         Updated constructors of space_node and derived classes accordingly.
3857         (hmotion_node::col): New variable.
3858         Updated constructors of hmotion_node and space_char_hmotion_node
3859         accordingly.
3860         (vmotion_node::col): New variable.
3861         Updated constructor accordingly.
3862         (draw_node::gcol, draw_node::fcol): New variables.
3863         Updated constructor accordingly.
3864         (special_node::gcol, special_node::fcol): New variables.
3865         Updated constructors accordingly.
3866         (troff_output_file::put_char, troff_output_file::put_charwidth,
3867         troff_output_file::draw): Set glyph and fill color.
3868         (troff_output_file::start_special): Set glyph and fill color.
3869         Always set current font.
3870         (troff_output_file::fill_color, troff_output_file::glyph_color):
3871         Don't call `do_motion'.
3872         (glyph_node::gcol, glyph_node::fcol): New variables.
3873         Updated constructors of glyph_node and ligature_node accordingly.
3874         (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
3875         member functions.
3876         (glyph_node::merge_glyph_node,
3877         kern_pair_node::add_discretionary_hyphen,
3878         node::add_discretionary_hyphen): Updated.
3879         (break_char_node::merge_self): Updated.
3880         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
3881         vmotion_node::tprint): Handle color.
3882         (make_glyph_node, make_node, node::add_char): Updated.
3884         * src/roff/troff/env.cc (environment::space_newline,
3885         environment::space, environment::output_line, environment::do_break,
3886         environment::make_tab_node, environment::add_padding, title):
3887         Updated.
3888         (environment_switch, environment_copy): Don't add color nodes.
3890         * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
3891         nothing.
3892         (token::next): Updated.
3893         \m and \M now are as transparent as \s.
3894         (process_input_stack, token::add_to_node_list, token::process,
3895         read_draw_node): Updated.
3896         (charinfo_to_node_list): Don't add color nodes.
3898         * doc/groff.texinfo: Updated.
3900 2002-09-27  Ruslan Ermilov  <ru@FreeBSD.org>
3902         * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
3903         strings.
3905 2002-09-27  Colin Watson  <cjwatson@debian.org>
3907         * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
3909 2002-09-23  Werner LEMBERG  <wl@gnu.org>
3911         * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
3912         appropriate.
3913         (DEFAULT_LINEWIDTH_FACTOR): New macro.
3914         (linewidth_factor): New global variable.
3915         (lbp_printer::set_line_thickness): Fix case for size < 0, using
3916         linewidth_factor.
3917         (long_options): Add -w/--linewidth option.
3918         (usage): Updated.
3919         (main): Handle -w option to set linewidth_factor.
3920         (lbp_printer::lbp_printer): Initialize req_linethickness, not
3921         line_thickness.
3923         * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
3925 2002-09-22  Paco Andrés Verdú  <pandres@dragonet.es>
3927         Fixed a bug in the line thickness setting code.
3929         * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
3930         variable.
3931         (lbp_printer::set_line_thickness): Pass environment as second
3932         parameter.
3933         Implement it actually.
3934         (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
3935         and `set_line_thickness, depending on the current font size.
3937 2002-09-21  Werner LEMBERG  <wl@gnu.org>
3939         Some Debian patches.
3941         * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
3942         * src/roff/troff/node.cc (bracket_node::copy): Initialize
3943         `list->last'.
3945 2002-09-20  Werner LEMBERG  <wl@gnu.org>
3947         * configure: Regenerated with autoconf 2.54.
3949 2002-09-20  Werner LEMBERG  <wl@gnu.org>
3951         * src/roff/troff/env.h (environment): Rename cur_glyph_color to
3952         glyph_color.
3953         Rename cur_fill_color to fill_color.
3954         * src/roff/troff/env.cc: Updated.
3956 2002-09-20  Werner LEMBERG  <wl@gnu.org>
3958         * src/roff/troff/env.cc (title): Copy color status after processing
3959         title.
3960         * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
3961         fill color nodes to reset colors properly.
3963         * tmac/www.tmac (DC): Fix color handling.
3965         * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
3966         * doc/groff.texinfo: Fixing documentation of `tl' request.
3967         * doc/webpage.ms: Updated.
3969 2002-09-19  Werner LEMBERG  <wl@gnu.org>
3971         * src/roff/troff/env.cc (environent_switch, environment_copy):
3972         Emit glyph and fill color nodes to initialize colors properly.
3974 2002-09-17  Colin Watson  <cjwatson@debian.org>
3976         * src/roff/troff/env.cc (environment::set_glyph_color,
3977         environment::set_fill_color): Fix typo which prevented \m[] work
3978         correctly.
3980 2002-09-17  Werner LEMBERG  <wl@gnu.org>
3982         Add left and right italic correction to non-slanted PS fonts.  This
3983         is an experimental feature to improve image rendering of grohtml.
3985         * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
3986         ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
3987         * font/devps/*: All non-slanted fonts regenerated.
3988         * NEWS: Updated.
3990 2002-09-16  Werner LEMBERG  <wl@gnu.org>
3992         Add a site-specific font directory.
3994         * Makefile.in (localfontdir, legacyfontdir): New variables.
3995         (fontpath): Use them.
3996         (MDEFINES, uninstall_dirs): Updated.
3997         * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
3998         Remove `FONTPATH' and `MACROPATH'.
4000         * src/roff/troff/troff.man, NEWS: Updated.
4001         * doc/groff.texinfo (Font Directories): New section.
4002         Other minor fixes.
4004         * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
4005         src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
4006         src/preproc/grn/grn.man: Minor fixes.
4008         * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
4009         Remove unused variable.
4011 2002-09-11  Werner LEMBERG  <wl@gnu.org>
4013         * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
4014         * man/groff_out.man: Fix documentation of 'N'.
4016 2002-09-09  Gaius Mulley  <gaius@glam.ac.uk>
4018         * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
4019         * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
4020         set.
4021         * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
4022         (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
4023         (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
4024         * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
4025         PRE_TAG>: Call `begin' with `FALSE'.
4027 2002-09-09  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
4029         * src/libs/libgroff/string.cc (string::extract): Fix position of
4030         terminating null byte.
4032 2002-09-08  Werner LEMBERG  <wl@gnu.org>
4034         Add global option `nospaces' to tbl so that leading and trailing
4035         spaces in data items are ignored.
4037         * src/libs/libgroff/string.cc (string::remove_spaces): New member
4038         function to remove leading and trailing spaces.
4039         * src/include/stringclass.h: Updated.
4041         * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
4043         * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
4044         option.
4045         Fix typo in error messages.
4046         (process_data): Implement `nospaces' option.
4047         * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
4049 2002-09-07  Werner LEMBERG  <wl@gnu.org>
4051         * src/include/config.hin: Add `HAVE_ISATTY'.
4052         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
4053         `fname' member.
4054         * src/libs/libgroff/tmpname.cc: Include `time.h'.
4055         * src/libs/libdriver/input.cc (Char): Add `operator==' and
4056         `operator!=' for `char'.
4057         * doc/groff.texinfo: Replace @ifnottex block for top node with
4058         @ifhtml block.
4060 2002-09-06  Werner LEMBERG  <wl@gnu.org>
4062         * doc/Makefile.in (.texinfo.html): Add -I switch.
4063         * doc/groff.texinfo: Add @ifnottex block for top node to make
4064         translation to HTML work.
4066 2002-09-05  Gaius Mulley  <gaius@glam.ac.uk>
4068         * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
4069         (get_papersize, determine_vertical_offset): Removed.
4070         (char_buffer::do_image): Always specify letter size.
4071         (main): Updated.
4072         (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
4073         -sPAPERSIZE.
4075 2002-09-05  Werner LEMBERG  <wl@gnu.org>
4077         * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
4078         default indentation.
4080 2002-09-04  Gaius Mulley  <gaius@glam.ac.uk>
4082         * src/preproc/html/pre-html.cc (imageList::createPage): Use
4083         -sPAPERSIZE for gs.
4084         (generateImages): Clean up push-back buffer.
4086 2002-09-04  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
4088         * doc/groff.texinfo: Minor fixes.
4090 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
4092         * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
4093         (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
4094         (gsPaper): Removed.
4095         (determine_vertical_offset): Use LETTER_LENGTH.
4096         (createPage): Moved to ...
4097         (imageList::createPage): This.
4098         Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
4099         (imageList::getMaxX): New function.
4100         (createImage): Moved to ...
4101         (imageList::createImage): This.
4102         (imageList::createImages): New function.
4103         (generateImages): Read `maxx' directly.
4104         Updated.
4105         (scanArguments): Don't specify `gsPaper' for `-o'.
4106         (makeTempFiles): Call `xtmpfile' with the last argument set to
4107         `TRUE'.
4109 2002-08-24  Werner LEMBERG  <wl@gnu.org>
4111         * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
4112         (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
4113         * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
4114         * src/preproc/html/pushback.cc: Include nonposix.h.
4115         * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
4116         conditionally.
4118 2002-08-23  Werner LEMBERG  <wl@gnu.org>
4120         Use $(OBJEXT) for the object file extension.
4122         * Makefile.comm (.SUFFIXES): Add .obj.
4123         (.cc.obj, .c.obj): New implicit rules.
4124         * Makefile.in (OBJEXT): New variable, initialized from autoconf.
4125         (MDEFINES): Add EXEEXT and OBJEXT.
4126         * */Makefile.sub: s/.o/.$(OBJEXT)/.
4128 2002-08-22  Werner LEMBERG  <wl@gnu.org>
4130         * INSTALL: Mention texinfo 4.2 as a prerequisite.
4132 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
4134         * src/devices/grohtml/post-html.cc (colType): Make enum global to
4135         the file.
4136         (html_printer::update_min_max, html_printer::add_table_end): New
4137         methods.
4138         (html_printer::lookahead_for_tables): Use them.
4139         Reset page offset correctly.
4140         (html_printer::~html_printer): Add creation of creator comment up.
4142 2002-08-20  Werner LEMBERG  <wl@gnu.org>
4144         * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
4145         * man/groff_tmac.man: Fix typos.
4146         * man/groff_font.man: Minor reordering.
4147         * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
4149 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
4151         Avoid endless loops while scanning for tables.
4153         * src/devices/grohtml/post-html.cc (list::insert): Set
4154         ptr->right->left.
4155         (html_printer::next_horiz_pos): Add `text_glob' argument; update
4156         all callers.
4157         Return immediately if that argument is NULL.
4158         (html_printer::calc_nf): Don't test if `g' is NULL.
4159         (html_printer::lookahead_for_tables): Use
4160         `glyphs.move_right_get_data'.
4161         Don't test if `g' is NULL.
4163 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
4165         A better fix, replacing fix 2002-08-15, for increasing SIZE.
4167         * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
4168         a pointer.
4169         (char_block::char_block): Allocate `buffer'.
4170         (char_buffer::add_string): Use it.
4172 2002-08-15  Werner LEMBERG  <wl@gnu.org>
4174         * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
4175         src/devices/grodvi/grodvi.man: Document default line thickness.
4177 2002-08-15  Gaius Mulley  <gaius@glam.ac.uk>
4179         * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
4180         8192.
4182 2002-08-14  Werner LEMBERG  <wl@gnu.org>
4184         * doc/webpage.ms: Updated.
4186 2002-08-09  Werner LEMBERG  <wl@gnu.org>
4188         * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
4189         unbreakable space.
4191 2002-08-08  Aaron Campbell  <aaron@monkey.org>
4193         * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
4194         (&& -> &).
4196 2002-08-08  Werner LEMBERG  <wl@gnu.org>
4198         * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
4199         tok.next().
4200         (read_gray): Ditto.
4201         Don't push back a space but a newline onto the stack.
4203 2002-08-07  Gaius Mulley  <gaius@glam.ac.uk>
4205         Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
4206         inadvertently.
4208         * src/devices/grohtml/post-html.cc (html_printer::end_font,
4209         html_printer::start_font): Handle them.
4210         * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
4211         reset bold and tt.
4212         (html_text::do_bold): Don't reset italic and tt.
4213         (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
4214         * font/devhtml/DESC.proto: Add those fonts.
4215         * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
4217 2002-08-07  Werner LEMBERG  <wl@gnu.org>
4219         * MORE.STUFF: Added gpresent.
4221         * tmac/trace.tmac: Show nesting level by a corresponding amount of
4222         whitespace before printing the logging message.
4224 2002-07-31  Colin Watson  <cjwatson@debian.org>
4226         * src/devices/grohtml/html-table.cc (html_table::finish_row):
4227         Initialize `n' to zero.  This fixes a segfault on ARM.
4229 2002-07-30  Werner LEMBERG  <wl@gnu.org>
4231         * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
4233 2002-07-29  Werner LEMBERG  <wl@gnu.org>
4235         * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
4236         final semicolon.
4238 2002-07-28  Colin Watson  <cjwatson@debian.org>
4240         * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
4241         `.ps'.
4242         (html_printer::html_printer): Initialize `pointsize'.
4244 2002-07-26  Werner LEMBERG  <wl@gnu.org>
4246         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
4247         gnu.png.
4248         (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
4249         (gnu.eps): Add -rle switch to pnmtops.
4250         (distfiles): Add gnu.eps and gnu.png.
4252 2002-07-25  Petter Reinholdtsen  <pere@hungry.com>
4254         * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
4255         Add `operator!='.
4257 2002-07-24  Werner LEMBERG  <wl@gnu.org>
4259         * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
4260         ' \+' but '  *' for sed.
4261         (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
4263 2002-07-23  Werner LEMBERG  <wl@gnu.org>
4265         * doc/groff.texinfo: Document `papersize' keyword.
4266         * NEWS, man/groff_font.man: Updated.
4268 2002-07-23  Colin Watson  <cjwatson@debian.org>
4270         Extend papersize keyword to accept more than a single entry.  The
4271         first valid will be used.
4273         * src/libs/libgroff/font.cc (font::load_desc): Implement it.
4274         (font::scan_papersize): Really skip final newline.
4275         * src/preproc/html/pre-html.cc (get_papersize): Ditto.
4277 2002-07-23  Werner LEMBERG  <wl@gnu.org>
4279         * configure.ac: Test for isatty.
4280         * configure: Regenerated.
4281         * src/include/posix.h: Check HAVE_ISATTY.
4282         * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
4283         * src/utils/lookbib/lookbib.cc: Include posix.h.
4284         Don't declare isatty.
4286 2002-07-21  Werner LEMBERG  <wl@gnu.org>
4288         * NEWS: Add `output' request.
4290         * REVISION: Increased to 1.
4292 Version 1.18.0 released
4293 =======================
4295 2002-07-19  Gaius Mulley  <gaius@glam.ac.uk>
4297         Allow internal glyph indices > 0xFF in grohtml for input characters.
4299         * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
4300         as parameter.
4301         (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
4302         Updated all callers.
4303         (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
4304         (html_printer): Updated.
4306 2002-07-19  Werner LEMBERG  <wl@gnu.org>
4308         * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
4309         * font/devutf8/R.proto: Adding some missing glyphs.
4310         * font/devutf8/NOTES: Updated.
4312         * tmac/dvi.tmac: Add more composite glyphs.
4313         * tmac/html.tmac: Updated.
4315         * man/groff_char.man: Add `sum' and `product' entities.
4317         * NEWS: Updated.
4319 2002-07-18  Gaius Mulley  <gaius@glam.ac.uk>
4321         Improved table, tab, and indenting support.
4323         * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
4324         string_iterator::suppress_newline_flag): Removed.  Updated all
4325         function which have used it.
4327         * src/roff/troff/env.cc: Include `input.h'.
4328         (environment::add_node): Accept 0 as parameter.
4329         (environment::add_html_tag): Add `force' parameter.
4330         Updated all callers.
4331         (environment::add_html_tag_tabs): Ditto.
4332         For the moment, support left-aligned tabs only.
4333         (environment::make_html_tag): New function.
4334         (fill, no_fill): Set .br html tag additionally.
4335         (environment::newline): Emit `eol.ce' or `eol' tag for html.
4336         (environment::add_html_tag_eol): Removed.
4337         (tab_stops::distance_to_next_tab): Add variant for handling 
4338         nextpos'.
4339         (environment::distance_to_next_tab): Ditto.
4340         Updated all callers.
4341         (environment::handle_tab): Handle tabs for html.
4342         
4343         * src/roff/troff/env.h: Updated.
4345         * src/roff/troff/div.cc: Updated all callers of
4346         `environment::add_html_tag'.
4348         * src/devices/grohtml/html-table.cc,
4349         src/devices/grohtml/html-table.h: New files.
4351         * src/devices/grohtml/html-text.cc (html_text): New members
4352         `blank_para' and `start_space'.
4353         (html_text::issue_tag): Don't emit TABLE_TAG.
4354         Handle indentation for PRE_TAG and P_TAG.
4355         (html_text::end_tag): Updated.
4356         (html_text::table_is_void, html_text::issue_table_begin,
4357         html_text::issue_table_end): Removed.
4358         (html_text::do_push): Simplified.
4359         [DEBUGGING]: Small fix.
4360         (html_text::push_para): Add new parameter for indentation; updated
4361         all callers.
4362         Handle PRE_TAG.
4363         (html_text::do_indent, html_text::do_table, html_text::done_table,
4364         html_text::is_in_table): Removed.
4365         (html_text::do_pre): Handle P_TAG also.
4366         (html_text::shutdown): Handle p->indent.
4367         (html_text::check_emit_text): Simplified.
4368         (html_text::do_emittext): Reset `blank_para'.
4369         (html_text::do_para): Add new parameter for indentation; updated
4370         all callers.
4371         (html_text::remove_indent): New function.
4372         (html_text::do_space): Handle verbatim text properly.
4373         (html_text::ever_emitted_text, html_text::starts_with_space,
4374         html_text::remove_para_align): New functions.
4375         (html_text::dump_stack_element, html_text::dump_stack): Updated.
4377         * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
4378         Updated.
4380         * src/devices/grohtml/post-html.cc: Include html-table.h.
4381         (INDENTATION): Removed.
4382         (text_glob): Added many `is_<foo>' functions.
4383         Added table description `tab'.
4384         Added `get_arg',`get_tab_args', `remember_table', and `get_table'
4385         member functions.
4386         (list): Add `insert' and `move_to' member functions.
4387         (page): Add `insert_tag' member function.
4388         (page::dump_page) [DEBUG_TABLES]: Improved.
4389         (html_printer): Add `table' and `max_linelength' elements.
4390         Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
4391         `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
4392         `remove_tabs', `remove_courier_tabs'.
4393         (html_printer::emit_raw): Handle indentation.
4394         (html_printer::do_center, html_printer::write_header): Updated.
4395         (html_printer::is_courier_until_eol): Check for tag.
4396         (html_printer::do_linelength): Handle max_linelength.
4397         (html_printer::do_page_offset, html_printer::do_indentation): Handle
4398         fill_on.
4399         (html_printer::do_tempindent): Updated.
4400         (html_printer::do_indentedparagraph): Removed.
4401         (html_printer::do_indent): Simplified.
4402         (html_printer::do_eol): Use `ever_emitted_text'.
4403         (html_printer::do_flush, html_printer::do_links): Don't call
4404         done_table.
4405         (html_printer::do_break): Handle end_tempindent.
4406         (html_printer::troff_tag): Get argument.
4407         Don't handle `.ip'.
4408         Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
4409         (html_printer::flush_page): Call `lookahead_for_tables'.
4410         Don't call `done_table'.
4411         (html_printer::add_to_sbuf): Always call do_indent.
4413         * src/devices/grohtml/Makefile.sub: Updated.
4415         * tmac/an-old.tmac (TP): Don't handle html device specially.
4416         (an-do-tag-html): New function which will be used instead of
4417         `an-do-tag' if html device is used.
4419         * tmac/html.tmac: Call .po to pass default page offset to grohtml.
4421         * tmac/s.tmac (@IP): Don't handle html device specially.
4422         (@IP-html): New function which will be used instead of `@IP' if
4423         html device is used.
4425         * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
4426         is a hack which will eventually vanish again.
4427         (PIMG): Handle `-C' option correctly if not html.
4428         (HR): Use HTML-NS.
4430 2002-07-17  Werner LEMBERG  <wl@gnu.org>
4432         * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
4434 2002-07-14  Eric S. Raymond  <esr@thyrsus.com>
4436         * contrib/pic2graph/pic2graph.*: Use convert(1).
4437         * contrib/eqn2graph/eqn2graph.*: Minor fixes.
4439 2002-07-14  Bernd Warken  <bwarken@mayn.de>
4441         * tmac/groff_trace.man: New file.
4442         * tmac/Makefile.sub: Updated.
4443         * NEWS: Updated.
4445 2002-07-13  Werner LEMBERG  <wl@gnu.org>
4447         * src/roff/groff/groff.man: Add some cross references.
4449 2002-07-12  Werner LEMBERG  <wl@gnu.org>
4451         * src/roff/troff/input.cc (substring_request): Add warnings for
4452         string indices out of range.
4454 2002-07-11  Werner LEMBERG  <wl@gnu.org>
4456         * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
4457         * font/devdvi/*EC: Regenerated.
4459 2002-07-10  Bernd Warken  <bwarken@mayn.de>
4461         * man/groff_char.man: Updated and extended.
4463 2002-07-10  Werner LEMBERG  <wl@gnu.org>
4465         * src/roff/troff/input.cc (length_macro): Renamed to...
4466         (length_request): This.
4467         Move call of `tok.next()' to the very end, otherwise the register
4468         value hasn't been updated yet.
4469         (init_input_requests): Updated.
4471 2002-07-09  Werner LEMBERG  <wl@gnu.org>
4473         * src/roff/troff/input.cc (substring_macro): Renamed to...
4474         (substring_request): This.
4475         (init_input_requests): Updated.
4476         * src/roff/troff/request.h: Updated.
4478 2002-07-08  Robert D. Goulding  <goulding@Princeton.EDU>
4480         * src/roff/grog/grog.sh: Fix typo.
4482 2002-07-08  Werner LEMBERG  <wl@gnu.org>
4484         * win32-diffs: Updated.
4486         Handle `papersize' keyword properly in DESC.
4488         * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
4489         type.
4490         Updated all callers.
4491         * src/libs/libgroff/paper.cc: Add four more paper formats used by
4492         grolj4.
4493         * src/include/paper.h: Updated.
4495         * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
4496         Other minor C syntax fixes.
4497         (papersize, paperlength, paperwidth): Renamed to `user_*'.
4498         (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
4499         members.
4500         (lbp_printer::lbp_printer): Pass three arguments.
4501         Set paper dimensions properly.
4502         (make_printer, main): Updated.
4503         (handle_unknown_desc_command): Fix error messages.
4504         (main): Handle papersize keyword in DESC properly.
4506         * src/devices/grolj4/lj4.cc (paper_size): Renamed to
4507         `user_paper_size'.
4508         (lbp_printer::lbp_printer): Pass an argument.
4509         Set paper_size properly.
4510         (handle_unknown_desc_command): Removed.
4511         (make_printer, main): Updated.
4512         * src/devices/grolj4/grolj4.man: Minor documentation fix.
4514         * man/groff_font.man, NEWS: Updated.
4516 2002-07-07  Werner LEMBERG  <wl@gnu.org>
4518         Integrated eqn2graph, contributed by Eric S. Raymond.
4520         * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
4521         files.
4522         * Makefile.in, NEWS: Updated.
4524 2002-06-04  Werner LEMBERG  <wl@gnu.org>
4526         Changing the substring request to make it fit better with other
4527         string manipulation functions in other programming languages:
4528         Index 0 is now the first character in the string, and index -1
4529         indicates the last character.  Since this request didn't work
4530         properly anyway in the last release, it doesn't harm too much to
4531         change the syntax.
4533         * src/roff/troff/input.cc (substring_macro): Use loops to get
4534         the real string length (ignoring COMPATIBLE_SAVE and
4535         COMPATIBLE_RESTORE) and offsets.
4536         Implement change described above.
4538         * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
4539         (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
4541         * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
4543 2002-06-03  Werner LEMBERG  <wl@gnu.org>
4545         Make .chop work with .de1 and friends.  COMPATIBLE_SAVE and
4546         COMPATIBLE_RESTORE are completely ignored.
4548         * src/roff/troff/input.cc (char_list::set, char_list::get): New
4549         functions.
4550         (macro): `length' field renamed to `len'.
4551         Added new field `empty_macro' (1 if macro is empty), to be used
4552         instead of checking `len'.
4553         Updated all callers.
4554         (macro::empty): Updated.
4555         (macro::length, macro::set, macro::get): New functions.
4556         (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
4557         Set `empty_macro'.
4558         (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
4559         COMPATIBLE_RESTORE pairs.
4560         (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
4561         * src/roff/troff/request.h: Updated.
4563         * doc/groff.texinfo: Document .chop's behaviour better.
4565 2002-06-02  Werner LEMBERG  <wl@gnu.org>
4567         * doc/pic.ms: Fix documentation for the addition of positions.
4569         * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
4571 2002-06-29  Werner LEMBERG  <wl@gnu.org>
4573         Implementation of string arguments of the form \*[foo arg1 arg2 ...]
4575         * src/roff/troff/input.cc (have_string_arg): New global variable.
4576         (read_mode): New enumeration.
4577         (read_escape_name): Use it.  Update all calls.
4578         (read_long_escape_name): Use it.  Update all calls.
4579         Set have_string_arg if appropriate.
4580         (get_char_for_escape_name): Add parameter for handling space
4581         character.
4582         (interpolate_string_with_args, decode_string_args): New functions.
4583         (get_copy, token::next): Call it if necessary.
4584         (interpolate_string): Fix error message.
4586         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
4587         Document it.
4589 2002-06-24  Bernd Warken  <bwarken@mayn.de>
4591         * man/groff_tmac.man: Updated and extended.
4593 2002-06-24  Werner LEMBERG  <wl@gnu.org>
4595         * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
4597 2002-06-23  Werner LEMBERG  <wl@gnu.org>
4599         * doc/pic.ms: Improve documentation of composite block objects.
4601 2002-06-22  Werner LEMBERG  <wl@gnu.org>
4603         * src/roff/troff/input.cc (init_registers): Add three registers
4604         `seconds', `minutes', and `hours' to hold the current time.
4606         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
4607         Updated.
4609 2002-06-20  Werner LEMBERG  <wl@gnu.org>
4611         Make \X accept both `\ ' and `\~', converting them to single space
4612         characters.
4614         * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
4615         (token::unstretchable_space): New inline function.
4616         * src/roff/troff/input.cc (token::next, token::delimiter,
4617         token::description, token::add_to_node_list, token::process): Handle
4618         TOKEN_UNSTRETCHABLE_NODE.
4619         (encode_char): Handle tok.stretchable_space and
4620         tok.unstretchable_space.
4622         * NEWS, doc/groff.texinfo: Document it..
4624 2002-06-19  Werner LEMBERG  <wl@gnu.org>
4626         * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
4628         * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
4629         keyword to enable/disable SGR output.
4630         (tty_printer::change_fill_color): New function.
4631         * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
4633         * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
4634         call.
4636 2002-06-18  Werner LEMBERG  <wl@gnu.org>
4638         Add a `color' request and a `.color' register to control usage of
4639         colours.
4641         * src/roff/troff/input.cc (disable_color_flag): Replaced with...
4642         (color_flag): This (which is the inverse).
4643         (activate_color): New function.
4644         (main, init_input_requests): Updated.
4645         * src/roff/troff/troff.h, src/roff/troff/node.cc
4646         (troff_output_file::fill_color, troff_output_file::glyph_color):
4647         Updated.
4649         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
4650         Document the changes.
4652 2002-06-17  Colin Watson  <cjwatson@debian.org>
4654         Circumvent bug in autoconf 2.53 regarding top_builddir.
4656         * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
4657         * Makefile.in, doc/Makefile.in:
4658         s/@top_builddir@/@groff_top_builddir@/.
4659         * configure: Regenerated (with autoconf 2.53).
4661 2002-06-17  Werner LEMBERG  <wl@gnu.org>
4663         * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
4664         `paperwidth' and `paperlength' for the `papersize' keyword.
4666 2002-06-16  P. Alejandro Lopez-Valencia  <dradul@007mundo.com>
4668         * src/devices/grops/grops.man: Add info about Type 42 fonts.
4670 2002-06-15  Gaius Mulley  <gaius@glam.ac.uk>
4672         * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
4673         html_printer::do_linelength, html_printer::do_pageoffset,
4674         html_printer::do_indentation, html_printer::do_tempindent,
4675         html_printer::do_break, html_printer::begin_page): Clear indented
4676         text.
4677         * tmac/html.tmac: Disable hyphenation.
4679 2002-06-15  Werner LEMBERG  <wl@gnu.org>
4681         Don't produce HTML files if utility programs are missing.
4683         * Makefile.in (make_html, make_install_html): New variables.
4684         (MDEFINES): Updated.
4686         * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
4687         utility programs.
4688         * configure.ac: Use it.
4689         * configure: Regenerated.
4691         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
4692         (HTMLEXAMPLESFILES): This new variable.
4693         (EXAMPLESIMAGEFILES): Renamed to...
4694         (HTMLEXAMPLEIMAGEFILES): This.
4695         (CLEANADD): Add HTMLEXAMPLEFILES.
4696         (all): Use `make_html'.
4697         (html): New target.
4698         (install_data): Use `make_install_html'.
4699         Move html stuff to...
4700         (install_html): This new target.
4701         (uninstall_sub): Updated.
4703 2002-06-14  Bernd Warken  <bwarken@mayn.de>
4705         * src/roff/grog/Makefile.sub (grog): Renamed to...
4706         (grog.old): This.
4707         (grog): New rule to always install grog.sh as grog.
4709 2002-06-08  Bernd Warken  <bwarken@mayn.de>
4711         * src/roff/grog/grog.pl: Fix typo.
4713 2002-06-07  Werner LEMBERG  <wl@gnu.org>
4715         * doc/groff.texinfo: Add more info on .tr arguments.
4717 2002-06-05  Werner LEMBERG  <wl@gnu.org>
4719         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
4721         * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
4722         * configure: Regenerated.
4724 2002-06-05  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
4726         * src/roff/troff/symbol.cc (table_sizes): Add more values.
4728         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
4730 2002-06-04  Werner LEMBERG  <wl@gnu.org>
4732         * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
4733         is not initialized at the time we need it in case `--prefix' hasn't
4734         been set.  Check for `ac_default_prefix' also.
4735         Test for `papersize' keyword also and generalize allowed whitespace.
4736         * configure: Regenerated.
4738         * font/devps/Makefile.sub (DESC): Use `papersize' instead of
4739         `paperlength'.
4741         * src/libs/libgroff/Makefile.sub (version, revision): Replaced
4742         with...
4743         (src_version, src_revision): New variables to avoid overwriting
4744         from parent make process.
4745         (version.cc): Updated.
4747         * src/preproc/html/pre-html.cc: Include paper.h and font.h.
4748         (linebuf, linebufsize): New global variables.
4749         (sys_fatal): Use `fatal' to abort properly.
4750         (get_line): New function.
4751         (get_resolution): Use it.
4752         Improve error messages.
4753         (get_papersize): Check `papersize' also.
4754         Use `get_line'.
4755         Improve error messages.
4757 2002-06-03  Werner LEMBERG  <wl@gnu.org>
4759         * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
4760         should be removed only if builddir is not srcdir.
4761         (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
4762         (clean): Depend on `mostlyclean'.
4763         (distclean): Depend on `clean'.
4764         (realclean, extraclean): Depend on `distclean'.
4765         (.y.cc, .y.o): Simplified.  The output files are no longer written
4766         to srcdir but to builddir.
4767         * Makefile.in (MDEFINES): Add `version' and `revision'.
4768         (uninstall_dirs): Fix order of directories.
4769         * doc/Makefile.sub (version, revision): Removed.
4770         (CLEANADD): Removed grnexmpl.g, groff, groff-*.
4771         Added `HTMLDOCFILES'.
4772         (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
4773         * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
4774         src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
4775         as prefix.
4777         * doc/texinfo.tex (\authortt): New macro.
4778         (\shortcontt): Define.
4779         (\titlepage): Set \tt to \authortt while defining \authorfont.
4780         (\appendixbox): New macro.
4781         (\chapmacro, \appendixentry): Use \appendixbox to get even
4782         indentation for letters.
4783         (\summarycontents): Set \tt.
4784         (\internalpagesize): Add two arguments for real paper width and
4785         height as needed by pdfTeX.
4786         (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
4787         Updated.
4788         (\tempdima, \tempdimb): New temporary dimensions.
4789         (\pagesizesyyy): Updated.
4791 2002-06-02  Werner LEMBERG  <wl@gnu.org>
4793         Adding a new keyword `papersize' to the DESC file format (similar
4794         but not completely identical to grolbp's extension).  grops now has
4795         a -p command line option to override `papersize'.  Finally, grolbp
4796         has been adapted to the new syntax.
4798         * src/libs/libgroff/paper.cc, src/include/paper.h: New files.  It
4799         defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
4800         elements.
4801         * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
4802         (CCSRCS): Add `paper.cc'.
4804         * src/include/font.h (font): Add `papersize' element.
4805         * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
4806         (font::scan_papersize): New function.
4807         (font::load_desc): Use it for handling `papersize' keyword.
4808         * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
4810         * src/devices/grops/ps.cc: Include paper.h.
4811         (user_paper_length): New global variable.
4812         (ps_printer): Use paper length as initializer.
4813         (make_printer): Updated.
4814         (main): Handle new `-p' option.
4815         * src/devices/grops/grops.man: Updated.
4817         * src/devices/grolbp/lbp.cc: Include paper.h.
4818         s/papersizes/lbp_papersizes/.
4819         (set_papersize): Use new `papersizes' array.
4820         (handle_unknown_desc_command): Don't handle `papersize'.
4821         (main): Use `font::scan_papersize' for handling `-p' option.
4822         * src/devices/grolbp/grolbp.man: Updated.
4824         * man/groff_font.man: Document `papersize'.
4825         * NEWS: Updated.
4827 2002-05-30  Werner LEMBERG  <wl@gnu.org>
4829         * src/devices/grops/TODO: Updated.
4830         * src/devices/grops/grops.man: More info on paper formats.
4831         * man/groff_font.man: Document `paperheight' and `paperwidth'.
4833 2002-05-29  Werner LEMBERG  <wl@gnu.org>
4835         * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
4836         to list only if srcdir != currdir.
4837         (distfiles): New target.
4839         * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
4840         (NOMAKEDIRS): New variable.
4841         (DISTDIRS): Use it.
4843 2002-05-26  Werner LEMBERG  <wl@gnu.org>
4845         Add .output request, similar to \! at top-level.
4847         * src/roff/troff/input.cc (transparent): Remove unused declaration.
4848         (output_request): New function.
4849         (init_input_requests): Add it.
4850         Sorted.
4851         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
4852         Document it.
4854         * Makefile.in (MDEFINES): Add INSTALL_INFO.
4855         (prepare_examples): Fix typo.
4856         * doc/groff.texinfo (@direntry): Fix it.
4858 2002-05-25  Werner LEMBERG  <wl@gnu.org>
4860         Including the doc subdir into groff's Makefile system.
4862         * aclocal.m4 (GROFF_INSTALL_INFO): New function.
4863         * configure.ac: Use it.
4864         Generate `doc/Makefile'.
4865         * configure: Regenerated.
4867         * Makefile.in (infodir, INSTALL_INFO): New variables.
4868         (MDEFINES, uninstall_dirs): Updated.
4869         (OTHERDIRS): Add `doc'.
4870         * Makefile.comm (CLEANDIRADD): New variable.
4871         (mostlyclean): Use it.
4873         * doc/Makefile.sub, doc/Makefile.in: New files.
4874         * doc/Makefile: Removed.
4876         * NEWS, INSTALL: Updated.
4878 2002-05-24  Werner LEMBERG  <wl@gnu.org>
4880         * doc/homepage.ms: Renamed to ...
4881         * doc/webpage.ms: This.
4882         Use `.NHR'.
4884 2002-05-23  Werner LEMBERG  <wl@gnu.org>
4886         Integrating the `mom' macro package, contributed by Peter Schaffter
4887         <df191@ncf.ca>.
4889         * contrib/mom/*: New subdirectory tree.
4890         * Makefile.in (docdir, exampledir, htmldocdir): New variables to
4891         be used for documentation files.
4892         (MDEFINES, uninstall_dirs): Use them.
4893         (OTHERDIRS): Add contrib/mom.
4894         * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
4895         @HTMLDOCDIR@.
4896         * MANIFEST, NEWS: Updated.
4898 2002-05-22  Gaius Mulley  <gaius@glam.ac.uk>
4900         Change syntax of \O: \O[0] suppresses output, \O[1] enables output
4901         if at outer level; at start-up we are at outer level.
4903         * src/roff/troff/input.cc (do_suppress): Implement it.
4904         Simplify \O[3].
4906         Add option -p to show progress information.
4907         pre-grohtml will now render only one page at a time, reducing the
4908         size of needed disk resources enormously.
4910         * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
4911         (imagePageName): New global variable.
4912         (psPageName, show_progress, currentPageNo): New global variables.
4913         (html_system): Close saved stderr and stdout handles.
4914         (write_end_image): Accept a parameter to control \O escape.
4915         (write_start_image): Adapted to new \O meaning.
4916         (char_buffer::write_upto_newline): Updated.
4917         (createAllPages): Replaced with...
4918         (createPage): This new function to create a single page for images.
4919         It uses `psselect' from the psutils package.
4920         (removeAllPages): Removed.
4921         (createImage): Updated.
4922         Handle progress display.
4923         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
4924         (scanArguments): Add option -p.
4925         (makeTempFiles): Updated to create temp files for psPageName and
4926         imagePageName.
4927         (removeTempFiles): Removed.
4928         (main): Updated.
4930         * src/devices/grohtml/post-html.cc (header_desc::write_headings,
4931         html_printer::write_header): Append `\0' to `buffer'.
4932         (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
4933         (main): Handle -p.
4934         * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
4935         Handle `text_emitted'.
4936         (html_text::table_is_void): Slightly rewritten.
4937         (stop): New external symbol.
4938         (html_text::do_push) [DEBUGGING]: Use it and simplify.
4939         (html_text::shutdown): Call `dump_stack'.
4940         (html_text::do_space): Rewritten.
4941         * src/devices/grohtml/grohtml.man: Document -p and the need of
4942         `psselect'.
4944         * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
4945         new \O syntax.
4946         Call \O[0] if `ps4html' is active.
4947         * tmac/s.tmac (@EQ, @EN): Handle html better.
4948         (@TS, TE): Ditto.
4949         * tmac/html.tmac: Don't use black for background colour.
4951         * src/roff/troff/node.cc: Include `div.h'.
4952         (troff_output_file::really_print_line): Don't use `is_on'. 
4953         (troff_output_file::word_marker, troff_output_file::flush_tbuf
4954         troff_output_file::check_charinfo,
4955         troff_output_file::put_char_width, troff_output_file::put_char,
4956         troff_output_file::determine_line_limits, troff_output_file::draw,
4957         real_output_file::begin_page, glyph_color_node::tprintf,
4958         fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
4959         Use `is_on'.
4960         (troff_output_file::really_on): Call `do_motion'.
4961         (suppress_node::tprint): Use `get_page_number' instead of `%'
4962         register.
4963         Call `reset_output_registers' conditionally on `is_on'.
4965         * doc/groff.texinfo: Document new syntax of \O.
4966         * NEWS, man/groff_diff.man: Updated.
4968 2002-05-22  Werner LEMBERG  <wl@gnu.org>
4970         * MORE.STUFF: Add info about David Frey's deroff implementation.
4971         Mention troff.org.
4973 2002-05-16  Werner LEMBERG  <wl@gnu.org>
4975         Pic's `with' attribute now accepts positions.
4977         * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
4978         ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
4979         conflicts.
4980         (object_spec): Add rule for `WITH' and `position'.
4981         (relative_path): Give `corner' the precedence of `CHOP'.
4982         * src/preproc/pic/object.h (path): New members `pos' and
4983         `is_position'.
4984         * src/preproc/pic/object.cc: Updated initializers of `path'.
4985         (path::follow): Handle `is_position'.
4987         * doc/pic.ms: Completely updated grammar description.
4988         Many typographical improvements.
4990 2002-05-15  Werner LEMBERG  <wl@gnu.org>
4992         * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
4993         code of x in range 0-127) also.
4994         * doc/groff.texinfo, man/groff_diff.man: Updated.
4996         Added keywords `north', `south', `east', and `west' for corners
4997         in pic.
4999         * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
5000         and WEST.
5001         (yylex): Handle them.
5002         * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
5003         (corner): Handle them.
5005 2002-05-14  Werner LEMBERG  <wl@gnu.org>
5007         * src/devices/grops/grops.man: Clarify handling of `download' file.
5009 2002-05-11  Werner LEMBERG  <wl@gnu.org>
5011         Adding `warnscale' and `spreadwarn' requests, based on a patch from
5012         Jeffrey Friedl <jfriedl@yahoo.com>.
5014         * src/roff/troff/input.cc (spread_limit, warn_scale,
5015         warn_scaling_indicator): New global variables.
5016         (warnscale_request, spreadwarn_requests): New functions.
5017         (main): Initialize `warn_scale' and `warn_scaling_indicator'.
5018         (init_input_requests): Updated.
5019         (error_type): Add `OUTPUT_WARNING'.
5020         (do_error): Handle it.
5021         (output_warning): New warning function which shows output location.
5022         * src/roff/troff/env.h (spread_limit): New external variable.
5023         * src/roff/troff/env.cc (environment::choose_breakpoint): Use
5024         `output_warning'.
5025         (distribute_space): Emit warning if added space is larger than
5026         `spread_limit'.
5027         (environment::possibly_break_line): Emit warning if a line can't
5028         be adjusted on both sides.
5030         * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
5032 2002-05-08  Werner LEMBERG  <wl@gnu.org>
5034         * src/roff/troff/node.cc (special_node::special_node): Use
5035         env_definite_font(curenv) instead of curenv->get_font().  Otherwise
5036         \X''\% crashes, for example.
5038         * doc/groff.texinfo: Document \! and \? used at top-level.
5040 2002-05-06  Werner LEMBERG  <wl@gnu.org>
5042         * src/preproc/pic/pic.man: Fix some keyword syntax.
5043         Other minor typographical fixes.
5045         * src/roff/groff/groff.man: Fix typos.
5047 2002-05-04  Werner LEMBERG  <wl@gnu.org>
5049         * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
5050         (ShortOpt[]): This to avoid problems with refer.
5052         * doc/pic.ms: Fix typo.
5053         Fix pic grammar description.
5055         * tmac/an-old.tmac (ne): Use de1, not de.
5057 2002-05-03  Werner LEMBERG  <wl@gnu.org>
5059         * doc/groff.texinfo: Finished separation of glyphs and characters.
5060         Don't use the string `Appendix' for appendix headers (both in
5061         the text and the table of contents).
5062         * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
5063         directories.
5065         Use registers LL and LT (similar to -ms) for controlling the
5066         length of title and line, respectively, in the -man and -mdoc
5067         macro packages.
5069         * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
5070         (doc-setup-page-layout): Use \n[LL] and \n[LT].
5071         * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
5072         (TH): Use \n[LL].
5073         (an-header, an-p-footer): Use \n[LT].
5074         * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
5075         doc/groff.texinfo: Document it.
5077 2002-05-02  Werner LEMBERG  <wl@gnu.org>
5079         * doc/fdl.texi: New file.
5080         * doc/groff.texinfo: Include it.
5081         Define and use @copying.
5082         Starting with separating glyph, symbol, and character.
5084 2002-04-27  Werner LEMBERG  <wl@gnu.org>
5086         * Makefile.in (EXEEXT): Set it.
5087         * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
5088         programs.
5090         * src/include/nonposix.h: Define GS_NAME.
5091         * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
5093         Some preliminary changes for EMX support under OS/2.
5095         * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
5096         __EMX__ similar to __MSDOS__.
5097         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
5099 2002-04-25  Werner LEMBERG  <wl@gnu.org>
5101         * doc/groff.texinfo: Integrated groff_out.man.
5102         Some macro fixes.
5104 2002-04-23  Werner LEMBERG  <wl@gnu.org>
5106         * man/groff_out.man: Minor fixes.
5108 2002-04-23  Werner LEMBERG  <wl@gnu.org>
5110         * doc/groff.texinfo: Moving @cindex entries after @Def* to get
5111         correct page references.
5112         Fixed many index entries.
5114 2002-04-23  Bernd Warken  <bwarken@mayn.de>
5116         * man/roff.man: Enlarged.
5118 2002-04-22  Werner LEMBERG  <wl@gnu.org>
5120         * doc/groff.texinfo: More examples, other fixes.
5122 2002-04-20  Werner LEMBERG  <wl@gnu.org>
5124         * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
5125         will now form a chain, e.g.
5127           .pi foo
5128           .pi bar
5130         is now the same as
5132           .pi foo | bar
5134         This is for compatibility with plan 9's troff.
5136         * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
5137         with UNIX troff.
5138         * NEWS: Updated.
5140         * doc/groff.texinfo: Add documentation of remaining requests and
5141         registers.
5143 2002-04-19  Werner LEMBERG  <wl@gnu.org>
5145         * doc/groff.texinfo: Add documentation of remaining escapes.
5147         * font/devdvi/generate/tc.map: Remove entry for `sr'.
5148         * font/devdvi/*TC: Regenerated.
5150 2002-04-18  Werner LEMBERG  <wl@gnu.org>
5152         * src/roff/troff/input.cc (token::next): Make \H behave consistently
5153         if not in compatibility mode, i.e., increment relative to the
5154         previous height.
5155         * doc/groff.texinfo: Updated accordingly.
5157 2002-04-17  Werner LEMBERG  <wl@gnu.org>
5159         * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
5161 2002-04-16  Bernd Warken  <bwarken@mayn.de>
5163         * src/roff/groff/groff.man: Improve documentation of -P option.
5164         Other minor fixes.
5166 2002-04-15  Werner LEMBERG  <wl@gnu.org>
5168         Add new escape \F to switch font family.
5170         * src/roff/troff/input.cc (token::next): Handle \F.
5171         * src/roff/troff/env.cc (environment::set_family): Handle
5172         `interrupted' flag.
5173         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5174         Document it.
5176 2002-04-14  Werner LEMBERG  <wl@gnu.org>
5178         * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
5179         spaces in tags.
5181 2002-04-13  Werner LEMBERG  <wl@gnu.org>
5183         Implement \f[] as an alternative to \fP.  Change \mP and \MP to
5184         \m[] and \M[], respectively.
5186         * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
5187         (symbol::symbol): Handle NULL string and empty string differently.
5188         * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
5189         * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
5190         Add optional parameter.
5191         Updated calling functions.
5192         (get_copy, do_glyph_color, do_fill_color, token::next): Use
5193         `symbol::is_empty'.
5194         * src/roff/troff/env.cc (environment::set_font): Ditto.
5196         * src/preproc/pic/troff.cc (troff_output::set_fill,
5197         troff_output::reset_color: Updated.
5199         * tmac/www.tmac: Updated.
5201         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
5202         doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
5203         Updated.
5205         * tmac/Xps.tmac: Remove some redundant code.
5207         * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
5208         tmac/dvi.tmac, man/roff.man, man/groff_out.man, man/groff.man,
5209         man/groff_diff.man, src/roff/groff/groff.man: Replace \f[P] with
5210         \f[].
5212 2002-04-13  Bernd Warken  <bwarken@mayn.de>
5214         * src/include/printer.h, src/libs/libdriver/printer.cc
5215         (printer::change_fill_color): New member function.
5216         * src/libs/libdriver/input.cc (parse_D_command): Use it.
5218 2002-04-12  Werner LEMBERG  <wl@gnu.org>
5220         * doc/groff.texinfo: Completed pass on gtroff reference.
5222 2002-04-11  Werner LEMBERG  <wl@gnu.org>
5224         * doc/groff.texinfo: More fixes.
5226 2002-04-11  Bernd Warken  <bwarken@mayn.de>
5228         * src/include/color.h: Decorate with `const'.
5229         Use `size_t'.
5230         Include `stddef.h'.
5231         * src/libs/libgroff.color.cc: Decorate with `const'.
5232         Use `size_t'.
5233         (color::color): Initialize members.
5234         * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
5235         command according to the documentation.
5237         * man/groff_out.man: Updated.
5238         Minor fixes.
5240 2002-04-11  Gaius Mulley  <gaius@glam.ac.uk>
5242         * src/preproc/html/pre-html.cc (write_start_image): Remove
5243         redundant output.
5244         * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
5246         * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
5247         \C'hy' caused an assertion failure.
5249         * src/roff/troff/env.cc (environment::environment): Initialize
5250         `emitted_node'.
5251         (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
5253 2002-04-10  Werner LEMBERG  <wl@gnu.org>
5255         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
5256         Document pvs request and .pvs register.
5258 2002-04-09  Werner LEMBERG  <wl@gnu.org>
5260         * doc/groff.texinfo: Improve and fix documentation of diversions
5261         and environments.
5263 2002-04-08  Werner LEMBERG  <wl@gnu.org>
5265         * doc/groff.texinfo: Fix documentation of drawing functions.
5266         Other minor fixes.
5268 2002-04-07  Werner LEMBERG  <wl@gnu.org>
5270         * doc/groff.texinfo: Better documentation of double quotes as
5271         arguments.
5272         Other minor fixes.
5274 2002-04-06  Werner LEMBERG  <wl@gnu.org>
5276         * man/groff_font.man: Document names of special characters better.
5277         * doc/groff.texinfo: Minor improvements.
5279         * tmac/lbp.tmac: Load latin1.tmac.
5280         * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
5282         * font/devX*/*: Regenerated (all chars > 0x80 removed).
5284 2002-04-05  Werner LEMBERG  <wl@gnu.org>
5286         * tmac/tty.tmac: Don't use shc request.
5287         * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
5288         * NEWS: Updated.
5290         * man/groff_diff.man: Minor fixes.
5292         * font/devlbp/*: Remove all `charXXX' entities.
5294         * src/libs/libgroff/font.cc (font::~font): Deallocate
5295         `special_device_coding'.
5296         (font::load): Use `new' for allocating `special_device_coding'.
5297         * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
5298         Removed unused member.
5300 2002-04-05  Werner LEMBERG  <wl@gnu.org>
5302         * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
5303         (resource_manager::do_begin_binary,
5304         resource_manager::do_begin_data): Use it.
5306         * doc/texinfo.tex: Updated to version 4.2.
5308         * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
5309         (token::zero_width_break): New inline function.
5310         * src/roff/troff/input.cc (token::next): Use it.
5311         (token::description): Updated.
5312         (encode_char): Ignore `\%', `\&', `\)', and `\:'.
5313         (token::add_to_node_list, token::process): Use it.
5314         * NEWS, doc/groff.texinfo: Updated.
5316         * src/preproc/eqn/over.cc (over_box::output): Fix typo.
5317         * tmac/tty.tmac: Add missing backslash.
5319 2002-04-04  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
5321         * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
5322         `.ps' register instead of `.s' to handle fractional point sizes.
5323         * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
5324         limit_box::output): Ditto.
5325         * src/preproc/eqn/other.cc (size_box::compute_metrics,
5326         size_box::output): Ditto.
5327         * src/preproc/eqn/over.cc (over_box::compute_metrics,
5328         over_box::output): Ditto.
5329         * src/preproc/eqn/script.cc (script_box::compute_metrics,
5330         script_box::output): Ditto.
5331         * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
5332         sqrt_box::output): Ditto.
5334 2002-04-03  Michael Selway  <mas@ssl.co.uk>
5336         * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
5337         Fix typo.
5339 2002-04-03  Werner LEMBERG  <wl@gnu.org>
5341         * doc/homepage.ms: Reduce title size.
5342         * doc/groff.texinfo: Fix documentation of .t register.
5343         Fix handling of colon.
5344         Fix `\' vs. `\\'.
5346         * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
5347         only if page length is positive to avoid a loop.
5349         * tmac/an-old.tmac (ne): Increase page length to avoid problems with
5350         tbl.
5352 2002-04-02  P. Alejandro Lopez-Valencia  <dradul@yahoo.com>
5354         * src/include/nonposix.h, src/roff/groff/pipeline.c:
5355         s/__CYGWIN32__/__CYGWIN__/.
5357 2002-03-28  Gaius Mulley  <gaius@glam.ac.uk>
5359         * doc/gnu.xpm: New image contributed by Emily Mulley.
5360         * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
5361         (homepage.html): Be dependent on gnu.eps.
5362         * doc/homepage.ms: Updated to new image.
5364         * src/devices/grohtml/post-html.cc (html_printer): New member
5365         `sbuf_prev_hpos'.
5366         (html_printer::flush_sbuf, html_printer::set_char): Set it.
5367         (html_printer::sbuf_continuation): Use it.
5369 2002-03-28  Werner LEMBERG  <wl@gnu.org>
5371         * src/libs/libgroff/getopt.c: Updated to latest version.
5373         * tmac/README: More on hyphen.tex license.
5375 2002-03-26  Larry Kollar  <kollar@alltel.net>
5377         * doc/groff.texinfo: Add documentation of most missing requests.
5379 2002-03-25  Werner LEMBERG  <wl@gnu.org>
5381         Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
5382         of `+-', `mu', and `di', respectively.
5384         * font/devascii/R.proto, font/devutf8/R.proto,
5385         font/devlatin1/R.proto, font/devhtml/R.proto,
5386         font/devcp1047/R.proto, font/devlpb/*: Add them.
5387         * font/devps/generate/textmap: Ditto.
5388         * font/devps/*: Regenerated.
5389         * font/devlj4/generate/text.map: Add them.
5390         * font/devlj4/*: Regenerated.
5391         * font/devdvi/generate/tc.map: Use them.
5392         * font/devdvi/generate/texsy.map: Add them.
5393         * font/devdvi/*: Regenerated.
5394         * font/devX*/*: Regenerated.
5396         * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
5397         tmac/tty-char.tmac: Updated.
5399         * NEWS, man/groff_char.man: Updated.
5401 2002-03-24  Werner LEMBERG  <wl@gnu.org>
5403         * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
5404         tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
5405         * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
5406         we use `.fchar' in dvi.tmac.
5407         * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
5408         * tmac/Xps.tmac: Simplify some char definitions.
5409         Add definition for \[f/].
5410         * man/groff_char.man: Updated for new X.tmac.
5412         * tmac/README: New file.
5414 2002-03-23  Phil Lobbes  <phil@perkpartners.com>
5416         * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
5417         internal .y.o rule took precendence over the .y.cc rule, compiling
5418         the yacc files with gcc instead of g++.
5420 2002-03-23  Werner LEMBERG  <wl@gnu.org>
5422         * tmac/dvi.tmac: Add replacement font for `CB'.
5424         * tmac/doc.tmac: s/request/macro/ in messages.
5425         (doc-generic-macro): Improve error message.
5426         * tmac/groff_mdoc.man: Minor improvements.
5428 2002-03-22  Werner LEMBERG  <wl@gnu.org>
5430         * doc/groff.texinfo: Document possible conflict between `tr' and
5431         `char' requests.
5433 2002-03-21  Werner LEMBERG  <wl@gnu.org>
5435         Improve handling of hyphenation patterns.  It is now possible to
5436         use most of TeX's pattern files unmodified.  To make the process
5437         more flexible, a new request `hpfcode' has been added which
5438         provides a character code mapping for the `hpf' request.  See
5439         comment before hpf_getc() for more details.
5441         * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
5442         functions.
5443         (read_patterns_file): Additional parameter for exception dictionary.
5444         Extended to recognize \pattern, \hyphenation, and \endinput.
5445         (do_hyphenation_patterns_file): Updated.
5446         * src/roff/troff/env.h (hpf_code_table): New extern.
5448         * src/roff/troff/input.cc (hpf_code_table): New array.
5449         (init_hpf_code_table, hyphenation_patterns_file_code): New
5450         functions.
5451         (hyphenation_code): Handle translation from `trin' correctly.
5452         (main, init_input_requests): Updated.
5453         (charinfo::set_translation): Handle hyphenation code also.
5455         * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
5456         inline function.
5458         * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
5459         char' is used for offsets in hyphenation exceptions.
5461         * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
5463         * NEWS, man/groff_diff.man, man/groff.man: Document it.
5465 2002-03-20  Larry Kollar  <kollar@alltel.net>
5467         * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
5468         requests.
5470 2002-03-18  Werner LEMBERG  <wl@gnu.org>
5472         * tmac/html.tmac: Fix serious typo.
5474 2002-03-17  Larry Kollar  <kollar@alltel.net>
5476         * doc/groff.texinfo: Add documentation for `writec' request.
5478 2002-03-17  Werner LEMBERG  <wl@gnu.org>
5480         Added request `hpfa' to append hyphenation patterns.
5482         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
5483         parameter `append'.
5484         (hyphenation_patterns_file): Renamed to...
5485         (do_hyphenation_patterns_file): This.
5486         (hyphenation_patterns_file, hyphenation_patterns_file_append): New
5487         functions.
5488         (init_hyphen_requests): Updated.
5489         * NEWS, man/groff.man, man/groff_diff.man: Document it.
5491 2002-03-16  Werner LEMBERG  <wl@gnu.org>
5493         Added request `writec' in analogy to `tmc'.
5495         * src/roff/troff/input.cc (write_request): Renamed to...
5496         (do_write_request): This.
5497         Added one parameter.
5498         (write_request, write_request_continue): New functions.
5499         (init_input_requests): Updated.
5500         * NEWS, man/groff.man, man/groff_diff.man: Document it.
5502         * font/devdvi/DESC.in (sizes): Allow all sizes in the range
5503         5-10000pt.
5504         * NEWS: Document it.
5506 2002-03-15  Werner LEMBERG  <wl@gnu.org>
5508         * man/groff.man: Add writem request.
5510         Add request `trin' (translate input) to make `.asciify' work
5511         correctly.  This is necessary since `charXXX' entity names are no
5512         longer hardcoded in font definition files.
5514         * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
5515         `translate_input' members.
5516         (charinfo::set_asciify_code, charinfo::get_asciify_code,
5517         charinfo::set_translation_input): New methods.
5518         (charinfo::set_translation): Add third argument.
5519         * src/roff/troff/input.cc (charinfo:set_translation): Set
5520         `asciify_code'.
5521         (do_translate): Add second argument.
5522         (translate_input): New function.
5523         (init_input_requests): Updated.
5524         * src/roff/troff/node.cc (glyph_node::asciify,
5525         composite_node::asciify): Use `get_asciify_code'.
5527         * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
5529         * NEWS, man/groff.man, man/groff_diff.man: Updated.
5531 2002-03-14  Larry Kollar  <kollar@alltel.net>
5533         * doc/groff.texinfo: Improve documentation of .RS and .RE.
5535 2002-03-14  Werner LEMBERG  <wl@gnu.org>
5537         Add a new request `sizes' similar to the `sizes' command in DESC
5538         files.
5540         * src/roff/troff/env.cc (override_sizes): New function.
5541         (init_env_requests): Use it.
5542         * src/roff/troff/token.h: Export `read_string'.
5543         * NEWS, man/groff_diff.man, man/groff.man: Document it.
5545 2002-03-12  Werner LEMBERG  <wl@gnu.org>
5547         * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
5549 2002-03-10  Werner LEMBERG  <wl@gnu.org>
5551         * tmac/pspic.tmac: Add support for -Tdvi.
5552         * tmac/dvi.tmac: Include pspic.tmac.
5553         * src/devices/grodvi/grodvi.man: Document it.
5554         * NEWS: Updated.
5556         * font/devlj4/generate/Makefile: Fix URL of metric files.
5558 2002-03-09  Werner LEMBERG  <wl@gnu.org>
5560         * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
5562 2002-03-09  Larry Kollar  <kollar@alltel.net>
5564         * tmac/groff_ms.man: Add documentation for RS and RE macros.
5566 2002-03-08  Werner LEMBERG  <wl@gnu.org>
5568         * doc/groff.texinfo: Fixes for texinfo 4.1.
5570 2002-03-07  Werner LEMBERG  <wl@gnu.org>
5572         * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
5573         included.
5574         Handle CYGWIN properly.
5576 2002-03-07  Paco Andrés Verdú  <pandres@dragonet.es>
5578         * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
5579         * tmac/lbp.tmac: Add some font translations.
5581 2002-03-02  Werner LEMBERG  <wl@gnu.org>
5583         * font/devcp1047/R.proto, font/devlatin1/R.proto,
5584         font/devhtml/R.proto: Remove `charXXX'  entries.
5585         * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
5586         where appropriate.
5588         * font/devlj4/generate/text.map: Remove `charXXX' entries.
5589         * font/devlj4/*: Regenerated all font definition files.
5590         * tmac/lj4.tmac: Load latin1.tmac.
5592         * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
5593         from 2000-06-17: LJ4 metric files are *not* text files.
5595         * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
5596         register to test for EBCDIC.
5598 2002-03-01  Werner LEMBERG  <wl@gnu.org>
5600         * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
5601         files (as grops already does).
5602         * src/utils/afmtodit/afmtodit.man: Document comment lines in map
5603         files.
5604         * src/devices/grops/grops.man: Document comment lines in encoding
5605         files.
5607         * tmac/cp1047.tmac: New file.
5608         * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
5609         * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
5610         * tmac/Makefile.sub (NORMALFILES): Updated.
5612         * tmac/ec.tmac: Don't load latin1.tmac again.
5614         * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
5615         font/devps/generate/dingbats.map,
5616         font/devps/generate/dingbats.rmap, font/devps/text.enc,
5617         font/devps/generate/Makefile (symbolmap): Add header comment.
5618         * font/devps/generate/textmap: Ditto.
5619         Remove `charXXX' entries.
5620         * font/devps/symbolmap: Regenerated.
5621         * font/devps/*: Regenerated all font definition files.
5623 2002-02-28  Werner LEMBERG  <wl@gnu.org>
5625         Add color support to grodvi (for drawing colors are currently
5626         translated to gray values).
5628         * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
5629         (dvi_printer): Add `cur_color' member.
5630         (dvi_printer::set_color): New function.
5631         (draw_dvi_printer): Remove `fill'.
5632         (draw_dvi_printer::fill_next): Pass environment as parameter.
5633         Update code for new color support translated to gray.
5634         (dvi_printer::set_char): Updated.
5635         (dvi_printer::begin_page, dvi_printer::end_page): Handle color
5636         changes crossing the page border.
5637         (dvi_printer::draw): Updated.
5638         Remove cases `f' and `F'.
5639         * tmac/dvi.tmac: Add color definitions.
5640         * NEWS, src/devices/grodvi/grodvi.man: Updated.
5642         * tmac/an-old.tmac (R): Make this a macro to emit a warning if
5643         used incorrectly.
5645         * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
5646         versions of autoconf.
5647         * configure: Updated.
5649         * doc/homepage.ms: Use `.blm'.
5650         * tmac/www.tmac (www-depth): New auxiliary variable.
5651         (www-pop-level): Don't issue HTML tag.
5652         (ULS, ULE, LI): Use absolute indentation.
5654         * src/devices/grops/ps.cc (ps_printer::begin_page,
5655         ps_printer::end_page): Switch forth and back to default color while
5656         starting a new page.
5658 2002-02-27  Werner LEMBERG  <wl@gnu.org>
5660         Add EC and TC fonts to devdvi.
5662         * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
5663         * font/devdvi/generate/cork.map: Renamed to...
5664         * font/devdvi/generate/ec.map: This.
5665         Remove entry for `aq'.
5666         * font/devdvi/generate/tc.map: New file.
5667         * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
5668         EC and TC fonts.
5669         (FONTS): Updated.
5670         * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
5671         * font/devdvi/Makefile.sub (DEVFILES): Updated.
5672         * tmac/ec.tmac: New file.
5673         * tmac/Makefile.sub (NORMALFILES): Updated.
5674         * NEWS, src/devices/grodvi/grodvi.man: Updated.
5675         * man/groff_char.man: Check `ECFONTS' register.
5677         * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
5679 2002-02-26  Werner LEMBERG  <wl@gnu.org>
5681         * font/devdvi/generate/*.map: Remove all `charXXX' entries.
5682         * font/devdvi/generate/cork.map: Add 'y and 'Y.
5683         * font/devdvi/*: Updated.
5684         * tmac/dvi.tmac: Formatting.
5686         Add font `HBI' for the dvi output.
5687         Add support for font families `T' and `H'.
5689         * font/devdvi/HBI: New file.
5690         * font/devdvi/B: Renamed to ...
5691         * font/devdvi/TB: This.
5692         * font/devdvi/BI: Renamed to ...
5693         * font/devdvi/TBI: This.
5694         * font/devdvi/I: Renamed to ...
5695         * font/devdvi/TI: This.
5696         * font/devdvi/R: Renamed to ...
5697         * font/devdvi/TR: This.
5698         * font/devdvi/H: Renamed to ...
5699         * font/devdvi/HR: This.
5700         * font/devdvi/Makefile.sub (DEVFILES): Updated.
5701         * font/devdvi/generate/Makefile (HBI): New rule.
5702         (FONTS): Updated.
5703         (R, I, B, BI, H): Renamed to ...
5704         (TR, TI, TB, TBI, HR): This, respectively.
5705         (srcdir): Fixed.
5706         * NEWS, src/devices/grodvi/grodvi.man: Updated.
5707         * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
5708         Add `styles' and `family' keywords.
5709         * tmac/dvi.tmac: Alias `H' to `HR'.
5710         Add some fspecial requests for italic fonts.
5711         Add TR and TI as special.
5712         Add support for `_' with font CWI.
5714         * src/roff/troff/number.cc (parse_expr): Add missing `break' for
5715         operator `:'.  Until now, the expression `0:1' would return 2
5716         instead of 1.
5718 2002-02-25  Werner LEMBERG  <wl@gnu.org>
5720         * man/groff_char.man: Added some missing PS glyph names (from the
5721         Adobe Glyph List).
5722         * font/devps/generate/textmap, font/devps/symbolmap: Add
5723         `arrowupdn'.
5725         * doc/groff.texinfo: Minor additions and fixes.
5726         * man/groff_diff.man: Remove documentation of fp request.  This
5727         is already covered in the original troff manual.
5728         Updated to be consistent with other doc files.
5729         * NEWS: Updated.
5731 2002-02-24  Werner LEMBERG  <wl@gnu.org>
5733         * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
5734         TTYDEVDIRS.
5735         Define new variable OTHERDEVDIRS (containing `font/devlj4
5736         font/devlbp' if not EBCDIC).
5737         * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
5738         (OTHERDEVDIRS): New variable.
5739         (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
5740         * configure: Regenerated.
5742         * NEWS, src/devices/grotty/grotty.man: Updated.
5744 2002-02-23  Werner LEMBERG  <wl@gnu.org>
5746         * src/roff/troff/input.cc (do_overstrike, do_bracket,
5747         get_line_arg): Honour input level.
5749         Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
5751         * font/*/*: Implement it in all font files.
5752         * font/devps/generate/textmap, font/devps/generate/symbolchars,
5753         * font/devps/symbolmap: Updated.
5754         * font/devlj4/generate/text.map: Updated.
5755         * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
5756         * font/devdvi/generate/texmi.map: Updated.
5758         * font/devutf8/R.proto: Remove all `charXXX' entries.
5759         * font/devutf8/NOTES: Updated.
5761         * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
5762         version 4.1.0.
5764         * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
5766         * NEWS, man/groff_char.man: Updated.
5768 2002-02-21  Phil Lobbes  <phil@perkpartners.com>
5770         * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
5772 2002-02-20  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5774         * src/roff/grog/grog.pl: Fix computation of $refer.
5776 2002-02-19  Werner LEMBERG  <wl@gnu.org>
5778         * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
5779         `snprintf' and `vsnprintf'.
5781         * src/include/htmlindicate.h: Renamed to...
5782         * src/include/htmlhint.h: This.
5783         * src/include/Makefile.sub: Updated.
5784         * src/preproc/eqn/main.cc: Updated.
5786 2002-02-18  Werner LEMBERG  <wl@gnu.org>
5788         * man/roff.man, man/groff_out.man, man/groff.man,
5789         man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
5790         src/roff/troff/troff.man: Updated to latest changes in www.tmac.
5792         * win32-diffs: Updated.
5794 2002-02-17  Werner LEMBERG  <wl@gnu.org>
5796         * doc/Makefile (clean): Add *.eps.
5797         (MEMACROS): Removed.
5798         (TFLAG): New variable.
5799         (TROFF): Use it.
5800         Add -ww.
5801         (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
5802         (.me.dit): Fixed.
5803         (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
5805         * tmac/www.tmac: Use dummy diversion while resetting and disabling
5806         `.tl'.
5807         * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
5808         unstripped.
5809         * src/roff/troff/troff.man: Fix order of parameter description.
5811         * NEWS: Updated.
5813 2002-02-16  Gaius Mulley  <gaius@glam.ac.uk>
5815         Simplify image handling for grohtml.
5816         Fix <p> bug.
5818         * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
5819         comment out.
5820         (html_text::dump_stack): Don't emit newline while debugging.
5821         (html_text::do_push) [DEBUGGING]: Print more info.
5822         (html_text::check_emit_text): Fix handling of <p>.
5823         * src/devices/grohtml/html.h: Updated.
5824         * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
5825         replacing `fputc', `fputs', `putc'.  If DEBUGGING is defined, they
5826         send its data to stderr also.
5827         Update all callers.
5828         (simple_output::space_or_newline) [DEBUGGING]: Removed.
5829         * src/devices/grohtml/post-html.cc (html_printer::do_links,
5830         html_printer::html_printer): Remove `DEBUGGING' conditionals.
5832         * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
5833         Removed.
5834         * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
5835         is_inline_image): Removed.
5836         (html_begin_suppress, html_end_suppress): Don't take a parameter.
5837         (graphic_start, graphic_end): Removed.
5838         * src/include/htmlindicate.h: Updated.
5839         * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
5840         (macroset_template): New global variable.
5841         (makeFileName): Use `macroset_template'.
5842         (write_end_image): Don't take a parameter.
5843         Don't emit newline.
5844         (write_start_image: Don't emit newline.
5845         (char_buffer::write_upto_newline): Updated.
5846         (char_buffer::skip_to_newline): Renamed to ...
5847         (char_buffer::skip_until_newline): This.
5848         Fix code.
5849         (char_buffer::write_file_troff, char_buffer::write_file_html):
5850         Simplified.
5851         (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
5852         (removeAllPages): Remove `DEBUGGING' conditionals.
5853         (addRegDef, dump_args): New functions.
5854         (char_buffer::do_html, char_buffer::do_image): Handle
5855         `www-image-template' command line variable.
5856         Add more debugging code.
5857         (addps4html): Removed.
5858         (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
5860         * src/preproc/eqn/main.cc: Include `ctype.h'.
5861         (suppress_html): Removed.
5862         (do_file): Updated.
5863         (inline_equation): Use `html_begin_suppress' and
5864         `html_end_suppress'.
5865         * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
5866         (troff_output::start_picture, troff_output::finish_picture):
5867         Updated.
5868         * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
5869         (process_input_file): Updated.
5871         * src/roff/troff/div.cc (page_number): Set page number only if the
5872         `ps4html' register isn't defined.
5873         * src/roff/troff/input.cc (image_no): New external variable.
5874         (do_suppress): Use it.
5875         * src/roff/troff/node.h (suppress_node::image_id): New member.
5876         * src/roff/troff/node.cc (image_no): Remove `static' keyword.
5877         (suppress_node::suppress_node): Initialize `image_id' member.
5878         (suppress_node::same): Handle `image_id' also.
5879         (suppress_node::copy): Updated.
5880         (last_image_id): New global variable.
5881         (suppress_node::tprint): Use it.
5883         * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
5884         HTML-IMAGE-END.
5885         * tmac/pspic.mac (PSPIC): Fix html support.
5886         * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
5887         * tmac/www.tmac (www-image-template): Set up.
5888         (HTMLINDEX): Renamed to...
5889         (HX): This.
5890         (BODYCOLOR): Renamed to...
5891         (BCL): This.
5892         (BACKGROUND): Renamed to...
5893         (BGIMG): This.
5894         (URL): Change order of parameters for consistency.
5895         (MAILTO): Renamed to...
5896         (MTO): This.
5897         (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
5898         (IMG, PIMG, MPIMG): This.
5899         (HTML-H-BEGIN, HTML-H-END): Renamed to...
5900         (HnS, HnE): This.
5901         (LINKS): Renamed to...
5902         (LK): This.
5903         (LINE): Renamed to...
5904         (HR): This.
5905         (NO-AUTO-RULE): Renamed to...
5906         (NHR): This.
5907         (HTML-TL): Renamed to...
5908         (HTL): This.
5909         (UL-BEGIN, UL-END): Renamed to...
5910         (ULS, ULE): This.
5911         (DROPCAP): Renamed to...
5912         (DC): This.
5913         (TS, TE, EQ, EN): Provide default definitions.
5914         (www-make-unique-name): Updated.
5915         (HTML-IMAGE-INLINE): Fix typo.
5916         * tmac/groff_www.man: Updated.
5918         * doc/Makefile (homepage.html): Add option -r to grohtml.
5919         Use shortened image name.
5920         * doc/groff.texinfo: Updated info on grohtml strings and macros.
5921         * doc/homepage.ms: Updated and extended.
5923 2002-02-14  Werner LEMBERG  <wl@gnu.org>
5925         Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
5927         * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
5928         SGR_BACK_DEFAULT_COLOR): Replaced with ...
5929         (tty_printer::put_color): Use it.
5930         (ttr_printer::end_page): Simplify.
5932 2002-02-13  Werner LEMBERG  <wl@gnu.org>
5934         * tmac/groff_tmac.man: Moved to...
5935         * man/groff_tmac.man: This place.
5936         * tmac/Makefile.sub, man/Makefile.sub: Updated.
5938 2002-02-12  Werner LEMBERG  <wl@gnu.org>
5940         * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
5941         $(COMPILE.c) to not include groff's assert.h.
5943         * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
5944         variable.
5945         * NEWS, src/drivers/grotty/grotty.man: Document it.
5947 2002-02-11  Werner LEMBERG  <wl@gnu.org>
5949         * src/libs/snprintf/snprintf.c: Updated to latest version
5950         (2002-02-11).
5952         * src/roff/grog/grog.pl (process): Fix handling of `.['.  We now
5953         test whether there is `.]' also.
5954         Don't check for spaces after `.['.
5955         * src/roff/grog/grog.sh: Do the same.
5957 2002-02-10  Werner LEMBERG  <wl@gnu.org>
5959         Illegal -> Invalid.
5961         * src/libs/libgroff/illegal.cc: Renamed to ...
5962         * src/libs/libgroff/invalid.cc: This.
5963         (illegal_char_table): Renamed to ...
5964         (invalid_char_table): This.
5965         * src/libs/libgroff/Makefile.sub: Updated.
5966         * win32-diffs: Updated.
5968         * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
5969         src/libs/libdriver/input.cc (fatal_command, parse_color_command,
5970         parse_x_command), src/libs/libgroff/font.cc (text_file::next,
5971         font::load), src/preproc/eqn/main.cc (read_line, main),
5972         src/preproc/eqn/lex.cc (file_input::read_line),
5973         src/preproc/pic/lex.cc (file_input::read_line,
5974         simple_file_input::get, simple_file_input::peek),
5975         src/preproc/pic/main.cc (top_input::get, top_input::peek),
5976         src/preproc/pic/pic.man, src/preproc/refer/main.cc
5977         (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
5978         do_bib), src/preproc/tbl/main.cc (table_input::get),
5979         src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
5980         src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
5981         do_zero_width, read_request, encode_char, ps_get_line,
5982         transparent_file, get_char_for_escape_name, transparent_translate,
5983         asciify, input_char_description, read_string, set_string),
5984         src/roff/troff/env.cc (environment::add_html_tag),
5985         src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
5987         * src/include/lib.h: Updated.
5989         * src/preproc/eqn/eqn.cc: Removed.
5991         * NEWS: Updated.
5993         * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
5995 2002-02-09  Werner LEMBERG  <wl@gnu.org>
5997         * doc/gnu.xpm: New image.
5998         * doc/Makefile (DOCS): Add homepage.ps.
5999         Add rules for converting xpm->png and xpm->eps.
6000         Use `gnu.{xpm,eps}' as image names.
6001         * doc/homepage.ms: Updated.
6003 2002-02-09  Gaius Mulley  <gaius@glam.ac.uk>
6005         * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
6006         (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
6007         Remove calls to `B1' and `B2'
6008         (PNG-IMAGE): New macro for inclusion of images in PNG format.
6009         (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
6010         auxiliary variables for MARGIN-PNG-IMAGE.
6011         (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
6012         auxiliary macros for MARGIN-PNG-IMAGE.
6013         (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
6014         the margin.
6015         (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
6016         (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
6017         (DROPCAP): New macro to produce dropcap characters.
6018         (www-do-image): Renamed back to...
6019         (HTML-DO-IMAGE): This.
6020         Updated all callers.
6022         * doc/Makefile (gnubw.eps): Updated.
6023         * doc/homepage.ms: Updated.
6025 2002-02-08  Werner LEMBERG  <wl@gnu.org>
6027         * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
6028         Added `linethick' to table in section `Style Variables'.
6030 2002-02-08  Gaius Mulley  <gaius@glam.ac.uk>
6032         * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
6034 2002-02-07  Werner LEMBERG  <wl@gnu.org>
6036         Adding options -C (compatibility mode) and -c (grotty's old output
6037         scheme) to nroff.
6039         * src/roff/nroff/nroff.sh: Implement it.
6040         Remove `-Wall'.
6041         * NEWS, src/roff/nroff/nroff.man: Updated.
6043         * PROBLEMS: Document bison 1.32 bug.
6045         Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
6047         * src/roff/troff/node.cc (make_tfont): Define it earlier.
6048         * src/roff/troff/div.h: Add prototype for `end_diversions'.
6049         * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
6050         * src/roff/troff/env.h: Add prototype for `title'.
6052         Adding EBCDIC support to grotty.
6054         * src/devices/grotty/tty.cc (CSI): New macro.
6055         (SGR_*, tty_printer::put_color): Use it.
6057 2002-02-06  Werner LEMBERG  <wl@gnu.org>
6059         Implementing color support in grotty.  The new switch -c activates
6060         the old drawing scheme, disabling color at the same time.  The new
6061         switch `-i' selects italic instead of underlining (SGR only).
6063         * src/devices/grotty/tty.cc (putstring): New define instead of
6064         `fputs'.  Updated all callers.
6065         (old_drawing_scheme): New global variable.
6066         (COLOR_CHANGE): New enum value.
6067         (SGR_*): New defines containing color handling escape sequences.
6068         (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
6069         (glyph): New members `back_color_idx' and `fore_color_idx'.
6070         (glyph::order): Add COLOR_CHANGE.
6071         (tty_printer): New members `cur_fore_idx', `curr_back_idx',
6072         `is_underline', `is_bold', `cu_flag', `tty_colors'.
6073         New methods `make_underline', `make_bold', `color_to_idx',
6074         `change_color', `put_color'.
6075         (cu_flag): Moved into `tty_printer' class.
6076         (tty_printer::tty_printer): Initialize colors.
6077         (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
6078         tty_printer::draw, tty_printer::end_page): Handle colors also.
6079         (main): Add options `-c' and `-i'.
6080         (usage): Updated.
6081         * NEWS, src/devices/grotty/grotty.man: Updated.
6083         * src/include/errarg.h (errarg): Add support for `unsigned int'.
6084         * src/libs/libgroff/errarg.c: Implement it.
6086         * src/include/printer.h (printer): Add `change_color' method
6087         (currently used by grotty only).
6088         * src/libs/libdriver/printer.cc: Implement it.
6089         * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
6090         call to `pr->change_color'.
6092         * src/roff/troff/node.cc (troff_output_file::fill_color,
6093         troff_output_file::glyph_color): Call `do_motion'.
6095         * tmac/tty.tmac: Add color definitions.
6097         * src/roff/groff/groff.man: Minor fixes.
6099 2002-02-05  Bernd Warken  <bwarken@mayn.de>
6101         * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
6102         it.  This is a preparation for future changes.
6104 2002-02-05  Werner LEMBERG  <wl@gnu.org>
6106         * src/roff/troff/input.cc (process_input_stack): Fix the case
6107         where leading spaces are followed by \f or \s; previously, an
6108         incorrect space width has been used.
6110         * doc/roff.man (quoted_char): Fix argument.
6111         (comment): Define string.
6113 2002-02-04  Larry Kollar  <kollar@alltel.net>
6115         * doc/groff.texinfo: More fixes.
6117 2002-02-04  Werner LEMBERG  <wl@gnu.org>
6119         * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
6120         * src/preproc/eqn/main.cc (do_file, inline_equation): Call
6121         `restore_compatibility' before `output_string' -- the LINE_STRING
6122         register now already contains proper switches from and to
6123         compatibility mode.
6125         * man/groff_char.man: Add Euro symbol.
6126         * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
6127         * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
6128         * doc/groff.texinfo (Defstr*): Print strings with full syntax.
6129         Other minor fixes.
6131         * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
6132         texinfo->pdf.
6133         (.texinfo.html): Add support for texinfo->html.
6135 2002-02-03  Werner LEMBERG  <wl@gnu.org>
6137         Added three new requests `ds1', `as1', and `ami'.  The former two
6138         are equivalent to `ds' and `as' with the difference that
6139         compatibility mode is saved on entry, switched off during string
6140         expansion, and restored on exit.  The latter is the pendant to `dei'
6141         for `am'.
6143         (do_define_string): Use `define_mode' and `calling mode'.
6144         Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
6145         end of string, respectively.
6146         (define_string, append_string): Use `calling_mode'.
6147         (define_nocomp_string, append_nocomp_string,
6148         define_string_indirect): New functions.
6149         (init_input_requests): Updated.
6150         * NEWS, man/groff_diff.man, man/groff.man: Document it.
6152         * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
6153         `as1' for assigning LINE_STRING (this is `10' usually).  Sun's
6154         mm macro package accesses this string register directly.
6155         * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
6157         * tmac/trace.tmac: Trace calls to `am' also.  Make it work in
6158         compatibility mode.
6160 2002-02-02  Larry Kollar  <kollar@alltel.net>
6162         * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
6164 2002-01-31  Werner LEMBERG  <wl@gnu.org>
6166         * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
6168 2002-01-31  Bernd Warken  <bwarken@mayn.de>
6170         * src/devices/grolbp/lbp.cc (main): Delete `pr'.
6171         * man/groff_out.man: Revised and updated.
6173 2002-01-30  Bernd Warken  <bwarken@mayn.de>
6175         * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
6176         out the unused `{' and `}' commands.  Undefined by default.
6177         (IntArray): Make `data' private.
6178         (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
6179         new methods instead.
6180         (skip_line_D, skip_to_end_of_line): New functions.
6181         (get_D_fixed_args): Use `skip_line_D'.
6182         Changed to handle dummy odd arguments by ...
6183         (get_D_fixed_args_odd_dummy): This new function.
6184         (get_D_variable_args): Split some code into ...
6185         (get_possibly_integer_args): This new function.
6186         (send_draw): Use more `const'.
6187         (delete_current_env): New function.
6188         (position_to_end_of_args): Use `size_t'.
6189         Updated.
6190         (send_draw): Updated.
6191         (parse_D_command): Handle `c', `C', and `t' better.
6192         Updated.
6193         (do_file): Updated.
6195 2002-01-29  Werner LEMBERG  <wl@gnu.org>
6197         * NEWS: Revised.
6198         * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
6199         @Def...ListEnd which replaces @Def...x.  This is necessary to get
6200         proper HTML output -- see the comment in the file for more
6201         information.
6202         Updated all calls.
6204 2002-01-29  Gaius Mulley  <gaius@glam.ac.uk>
6206         Fixes to make color changes of 2002-01-21 work with grohtml.
6208         * src/devices/grohtml/post-html.cc (style): Updated.
6209         (html_printer): Remove unused methods.
6210         (html_printer::do_font, html_printer::draw, html_printer::set_char,
6211         html_printer::special): Updated.
6212         * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
6213         html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
6214         Added some debugging code.
6215         (html_text::start_tag): Updated.
6216         (html_text::do_push): New method.
6217         (html_text::push_para): Call it.
6218         Add method for handling color.
6219         (html_text::do_color): Updated.
6220         (html_text::shutdown): Handle color.
6221         * src/devices/grohtml/html-text.h (tag_definition): New member
6222         `col'.
6223         Updated.
6225 2002-01-28  Werner LEMBERG  <wl@gnu.org>
6227         * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
6229 2002-01-27  Gaius Mulley  <gaius@glam.ac.uk>
6231         Add two switches -a and -g to control the antialiasing bits for
6232         text and graphics, respectively.
6234         * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
6235         `-g'.
6236         * src/devices/grohtml/grohtml.man: Document them.
6237         * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
6238         New macros.
6239         (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
6240         (setupAntiAlias): New function.
6241         (createAllPages): Updated.
6242         (scanArguments): Handle `-a' and `-g'.
6243         (main): Call `setupAntiAlias'.
6244         * NEWS: Updated.
6246 2002-01-27  Werner LEMBERG  <wl@gnu.org>
6248         * doc/groff.texinfo (Def*): Call index function after deffn.
6250         * tmac/html.tmac: Call `nroff' request.
6252 2002-01-26  Larry Kollar  <kollar@alltel.net>
6254         * tmac/groff_ms.man: Add some omissions.
6256 2002-01-25  Larry Kollar  <kollar@alltel.net>
6258         * tmac/groff_ms.man: Typographical improvements.
6260 2002-01-25  Werner LEMBERG  <wl@gnu.org>
6262         * doc/groff.texinfo: Updated version and copyright.
6263         * src/devices/grops/grops.man: Updated.
6265         * tmac/groff_tmac.man: Fix `ig' macro.
6267         * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
6268         nroff mode.
6269         Use `.ne' unconditionally everywhere.
6270         (TS): Only insert some vertical space.  Doing a page break is no
6271         longer necessary due to the redefinition of the `ne' request.
6273         * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
6274         warning for unknown subcommands but parse and pass them to the
6275         device driver.
6277 2002-01-24  Werner LEMBERG  <wl@gnu.org>
6279         * tmac/groff_www.man, NEWS: Fix typos.
6281 2002-01-21  Werner LEMBERG  <wl@gnu.org>
6283         Complete revision of color support:
6285           Adapt programs to the new libdriver/input.cc.
6287           Color spaces are no longer converted to RGB but transferred as-is
6288           in the troff intermediate output format.
6290           Handle default color gracefully.  troff now supports a `default'
6291           color (which can't be changed).
6293           grops will now use the proper color space functions if available.
6295           Update pic.
6297         Note that currently grohtml doesn't handle colors properly.  This
6298         has to be fixed.
6300         * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
6301         (ui_to_a): New function.
6302         * src/include/lib.h: Updated.
6304         * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
6305         (color): Simplified; removed all `double' members and methods.
6306         A new array `components' now holds the color parameters.
6307         (color::is_default, color::get_components): New methods.
6308         (color::operator==, color:operator!=): New.
6309         (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
6310         to make access to the `components' array more comprehensible.
6311         * src/libs/libgroff/color.cc: Implement new color support.
6312         (atoh): Small fixes.
6313         (color::read_encoding): Simplified for new troff intermediate color
6314         output format.
6315         (default_color): New global variable.
6317         * src/roff/troff/input.cc (default_symbol): New global variable.
6318         (lookup_color): Use it.
6319         (default_black): Removed.
6320         (do_glyph_color, do_fill_color): Simplified.
6321         (define_color): Handle default color.
6322         Improve warnings.
6323         (do_if_request): Handle default color.
6324         * src/roff/troff/env.cc (environment::environment): Initialize
6325         colors with `default_color'.
6326         * src/roff/troff/node.cc (troff_output_file::put): Add method
6327         for `unsigned int'.
6328         (troff_output_file::hex): Removed.
6329         (troff_output_file::fill_color, troff_output_file::glyph_color):
6330         Updated to include/color.h and libdriver/input.cc.
6332         * src/preproc/pic/object.cc (draw_arrow): New parameter to set
6333         fill color properly (identically to the outline color).  \D'f...'
6334         doesn't work any more.
6335         All function calls to it updated.
6337         * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
6338         Updated.
6339         * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
6340         Updated.
6342         * src/devices/grops/ps.cc (ps_output::put_color): New method.
6343         (ps_printer::sbuf_color): Make a real member instead of pointer.
6344         (ps_printer::fill_color, ps_printer::output_color): Removed.
6345         (ps_printer::ps_printer): Updated.
6346         (ps_printer::set_char): Ditto.
6347         (ps_printer::set_color): Use various color schemes.
6348         Use `put_color' method.
6349         (ps_printer::flush_sbuf): Don't set color.
6350         (ps_printer::fill_path): Take `environment' as parameter.
6351         Simplify color handling.
6352         (ps_printer::set_line_thickness): Renamed to ...
6353         (ps_printer::set_line_thickness_and_color): This (and updated).
6354         (ps_printer::set_color): Change second parameter from `complete'
6355         to `fill' which better describes what it does.
6356         (ps_printer::draw): Call `flush_sbuf' to output graphic commands
6357         and text in the right order.
6358         Updated.
6359         Remove branches for `f' and `F'; this is handled by
6360         libdriver/input.cc.
6361         * src/devices/grops/ps.h: Updated.
6362         * font/devps/prologue (FL): Redefined.
6363         ({F,C}r,k,g: New color functions (with and without filling).
6365         * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
6366         * man/groff_diff.man, man/groff.man, man/groff_out.man,
6367         doc/groff.texinfo, NEWS: Updated.
6369 2002-01-20  Bernd Warken  <bwarken@mayn.de>
6371         * src/libs/libdriver/input.cc: Completely rewritten.  See comments
6372         in this file for what has been changed.
6374 2002-01-19  Werner LEMBERG  <wl@gnu.org>
6376         * test-groff: Fix GROFF_FONT_PATH.
6377         * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
6378         is read before .TH or .Dd is parsed.
6380 2002-01-18  Gaius Mulley  <gaius@glam.ac.uk>
6382         * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
6383         quadrant boundaries.
6385 2002-01-18  Werner LEMBERG  <wl@gnu.org>
6387         * devices/grops/ps.cc: Aargh!  Fix the fix of the incorrectly
6388         applied last patch.
6390 2002-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
6392         * tmac/doc.common: Initialize %I register for the %I macro to
6393         avoid (harmless) warning.
6394         * tmac/doc.tmac (Bd): There is no reason to enforce -compact
6395         when in the SYNOPSIS section.
6397 2002-01-17  Bruno Haible  <haible@clisp.cons.org>
6399         * src/preproc/pic/lex.cc (get_token): Fix typo.
6401 2002-01-17  Werner LEMBERG  <wl@gnu.org>
6403         * devices/grops/ps.cc: Fix incorrectly applied last patch.
6405 2002-01-17  Larry Kollar  <kollar@alltel.net>
6407         * tmac/groff_ms.man: Completely rewritten.
6409 2002-01-16  Werner LEMBERG  <wl@gnu.org>
6411         * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
6413 2002-01-15  Gaius Mulley  <gaius@glam.ac.uk>
6415         * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
6416         fill colors.
6417         (ps_printer::draw): Ditto.
6419 2002-01-14  Ruslan Ermilov  <ru@FreeBSD.org>
6421         * tmac/groff_mdoc.man: Minor fixes.
6423 2002-01-13  Werner LEMBERG  <wl@gnu.org>
6425         * man/groff_out.man: Some fixes.
6427 2002-01-13  Gaius Mulley  <gaius@glam.ac.uk>
6429         * doc/pic.ms: Fix typos.
6431 2002-01-12  Werner LEMBERG  <wl@gnu.org>
6433         * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
6435 2002-01-10  Werner LEMBERG  <wl@gnu.org>
6437         * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
6438         symbols.
6439         * NEWS: Updated.
6441 2002-01-09  Bernd Warken  <bwarken@mayn.de>
6443         * man/groff_out.man: Revised.
6444         * man/roff.man: Minor fixes.
6445         * src/roff/troff/troff.man: Some reordering.
6447 2002-01-09  Werner LEMBERG  <wl@gnu.org>
6449         * tmac/an-old.tmac: Add dummy macros for equation support.
6451 2002-01-07  Werner LEMBERG  <wl@gnu.org>
6453         doc/groff.texinfo: Fix documentation of glyph searching algorithm.
6455         * tmac/an-old.tmac: Revert change 2001-12-23.  This breaks too many
6456         man pages.
6457         * tmac/groff_man.man: Small improvements.
6459 2002-01-07  Bernd Warken  <bwarken@mayn.de>
6461         * man/groff_diff.man: Revised.
6463 2002-01-06  Werner LEMBERG  <wl@gnu.org>
6465         * tmac/www.tmac: Remove extraneous backslash.
6467 2002-01-06  Bernd Warken  <bwarken@mayn.de>
6469         * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
6471 2002-01-05  Werner LEMBERG  <wl@gnu.org>
6473         Integrated groffer, contributed by Bernd Warken.
6475         * contrib/groffer/*: New.       
6476         * Makefile.in, NEWS: Updated.
6478 2002-01-04  Werner LEMBERG  <wl@gnu.org>
6480         * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
6481         registers defined in macro packages.
6482         Revising the ms part.
6484 2002-01-04  Larry Kollar  <kollar@alltel.net>
6486         * doc/groff.texinfo: Add documentation for ms macros.
6488 2002-01-02  Werner LEMBERG  <wl@gnu.org>
6490         First step in adding PS support for the Euro symbol.  `eu' is the
6491         official Euro logo, `Eu' is a font-specific glyph variant.
6493         * font/devps/text.enc: Add `Euro' at position 9.
6494         * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
6495         * font/devps/symbolmap: Regenerated.
6497         * NEWS: Updated.
6499 2002-01-02  Bernd Warken  <bwarken@mayn.de>
6501         * man/roff.man: Revised.
6503 2002-01-01  Bernd Warken  <bwarken@mayn.de>
6505         * src/roff/groff/groff.man: Completely rewritten.
6507 2001-12-31  Werner LEMBERG  <wl@gnu.org>
6509         * doc/Makefile: Updated.
6511 2001-12-30  Werner LEMBERG  <wl@gnu.org>
6513         * tmac/www.tmac: Make all names of internal macros/registers/strings
6514         lowercase, and prepend `www-'.
6515         Other minor changes.
6516         * src/roff/troff/troff.man: Add preprocessor string at BOF.
6518 2001-12-30  Gaius Mulley  <gaius@glam.ac.uk>
6520         Implement option `-b' in grohtml to set the HTML background colour.
6522         * src/devices/grohtml/post-html.cc (default_background): New global
6523         variable.
6524         (html_printer::html_printer): Initialize `background' to
6525         `default_background'.
6526         (main): Implement option `-b'.
6527         (usage): Updated.
6528         * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
6529         of `-b' option.
6530         * src/devices/grohtml/grohtml.man: Updated.
6531         * doc/Makefile (.ms.html): Use `-b'.
6532         * tmac/html.tmac: Don't set background color.
6534         Add new grohtml tag `.html-tl'.
6536         * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
6537         member variable.
6538         (title_desc::title_desc): Updated.
6539         (html_printer::troff_tag): Handle `.html-tl'.
6540         (html_printer::write_title): Use `with_h1'.
6541         * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
6542         (HTML-TL): New macro.
6544         Add support for unordered lists in HTML.
6546         * tmac/www.tmac (www-level): New auxiliary register.
6547         (www-level1, www-level2, www-level3): New auxiliary strings.
6548         (www-push-level, www-pop-level): New auxiliary macros
6549         (UL-BEGIN, UL-END, LI): User macros for unordered lists.
6551         Miscellaneous.
6553         * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
6554         (DEFAULT_VERTICAL_OFFSET): Removed.
6555         (IMAGE_BOARDER_PIXELS): Set to 0.
6556         (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
6557         (vertical_offset): Initialize with 0.
6558         (gsPaper): New global variable.
6559         (get_resolution): Scan for and return unsigned int.
6560         (get_papersize): New function to get paper length from devps/DESC.
6561         (determine_vertical_offset): New function.
6562         (createAllPages): Produce gray-level images and use proper page
6563         length.
6564         (createImage): Use `-quiet' option of pnmcrop.
6565         (addZ): Fix passing of `-Z'.
6566         (scanArguments): Fix handling of `-o'.
6567         (main): Call `determine_vertical_offset'.
6568         * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
6569         code for `l'.
6571         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
6572         * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
6573         glyph descenders properly.
6575         * doc/homepage.ms: Include `gnubw.eps'.
6576         * doc/Makefile (gnubw.eps): New rule.
6577         (homepage.html): Depend on `gnubw.eps'.
6579 2001-12-25  Werner LEMBERG  <wl@gnu.org>
6581         * src/roff/troff/input.cc (default_black): Fix return value.
6583 2001-12-24  Ruslan Ermilov  <ru@FreeBSD.org>
6585         * tmac/doc-common (Dt): Change output of architecture strings.
6586         Do some syntax cleanup.
6587         * tmac/groff_mdoc.man: Updated.
6589 2001-12-23  Werner LEMBERG  <wl@gnu.org>
6591         Adding an `itc' request (input line trap accepting \c).
6593         * src/roff/troff/env.h (environment): New member
6594         `continued_input_trap'.
6595         Make `do_input_trap' a friend function instead of `input_trap'.
6596         * src/roff/troff/env.cc (environment::environment,
6597         environment::copy): Updated.
6598         (environment::newline): Implement it.
6599         (do_input_trap): New function.
6600         (input_trap): Call `do_input_trap'.
6601         (input_trap_continued): New function.
6602         (init_env_requests): Updated.
6603         * src/roff/troff/TODO: Updated.
6605         * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
6606         `.it'.
6608         * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
6610 2001-12-22  Ruslan Ermilov  <ru@FreeBSD.org>
6612         * tmac/doc-common, tmac/doc-syms: Small updates.
6614 2001-12-22  Colin Watson  <cjwatson@debian.org>
6616         * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
6618 2001-12-22  Bernd Warken  <bwarken@mayn.de>
6620         * MANIFEST: New file.
6622 2001-12-22  Werner LEMBERG  <wl@gnu.org>
6624         * src/preproc/grn/grn.man: Updated.
6626 2001-12-22  Solar Designer  <solar@openwall.com>
6628         * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
6629         (DBRead): Use it.
6631 2001-12-19  Werner LEMBERG  <wl@gnu.org>
6633         Implement a fallback character request `.fchar'.
6635         * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
6636         (is_fallback): New inline function.
6637         * src/roff/troff/input.cc (do_define_character): New function.
6638         (define_character): Call `do_define_character'.
6639         (define_fallback_character): New function.
6640         (init_input_requests): Add `fchar'.
6641         (charinfo::charinfo): Updated.
6642         (charinfo::set_macro): New argument to set `fallback' flag.
6643         * src/roff/troff/node.cc (make_glyph_node, make_node,
6644         node::add_char): Check `fallback' flag.
6645         * NEWS, man/groff_diff.man, man/groff_man: Updated.
6647 2001-12-16  Werner LEMBERG  <wl@gnu.org>
6649         * groff.texinfo: Document exact search algorithm for glyphs.
6651 2001-12-15  Werner LEMBERG  <wl@gnu.org>
6653         * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
6654         the left side of $(MANPAGES) rule to make it always non-empty.
6656 2001-12-14  Werner LEMBERG  <wl@gnu.org>
6658         * src/roff/troff/input.cc (default_black): Define default color
6659         `black' if not yet defined.
6661 2001-12-13  Werner LEMBERG  <wl@gnu.org>
6663         Implement new string-valued register `.fn' to return the current
6664         real (internal) font name.
6666         * env.cc (environment::get_font_name_string): New function.
6667         (init_env_requests): Add `.fn' register.
6668         * env.h (environment): Updated.
6669         * node.cc (font_info): Make `get_font_name' a friend.
6670         (get_font_name): New function.
6671         * node.h: Updated.
6673         * man/groff_diff.man, man/groff.man, NEWS: Updated.
6675 2001-12-12  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
6677         * src/preproc/eqn/main.cc (inline_equation): Fix typos.
6679 2001-12-12  Werner LEMBERG  <wl@gnu.org>
6681         * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
6683 2001-12-10  Gaius Mulley  <gaius@glam.ac.uk>
6685         * man/groff_diff.man: Adding documentation for \O.
6687 2001-12-10  Werner LEMBERG  <wl@gnu.org>
6689         * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
6690         (scanArguments): Use PROG_PREFIX for the name of the troff binary.
6692 2001-12-09  Werner LEMBERG  <wl@gnu.org>
6694         * man/roff.man: Revised.
6695         * src/roff/groff/groff.man: Replace man page references with a
6696         pointer to roff.man.
6698 2001-12-09  Bernd Warken  <bwarken@mayn.de>
6700         * man/roff.man: Completely rewritten.
6702 2001-12-06  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
6704         * src/preproc/eqn/main.cc (inline_equation): Improve error message.
6706 2001-12-05  Werner LEMBERG  <wl@gnu.org>
6708         * src/roff/troff/input.cc (get_delim_file_name): Removed since no
6709         longer used.
6710         * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
6711         order of initializers.
6712         * NEWS: Updated.
6714 2001-12-05  Gaius Mulley  <gaius@glam.ac.uk>
6716         * doc/groff.texinfo: Fix documentation of \O.
6718         * src/devices/grohtml/html-text.cc (html_text::do_indent,
6719         html_text::do_table, html_text::do_emittext, html_text::do_para):
6720         Use `const' for first argument.
6721         (html_text::do_table): Use cast.
6722         * src/devices/grohtml/html-text.h: Updated.
6723         * src/devices/grohtml/output.cc (simple_output::put_string): Add
6724         method for `const string &s'.
6725         * src/devices/grohtml/html.h: Updated.
6726         * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
6727         (ANCHOR_TEMPLATE): Modified.
6728         (manufacture_headings): New global variable to handle `-h' option.
6729         (is_subsection): Removed.
6730         (char_buffer::add_string): Add `const' to first argument.
6731         Protect against invalid string argument.
6732         Add method for `const string &s'.
6733         (text_glob): Completely redesigned.
6734         (page): Use `const' for strings and remove string length variable.
6735         (page::add_html): Removed.
6736         (page::add_end_encode): New member function.
6737         (to_unicode): Moved upwards.
6738         (title_desc, header_desc): Updated.
6739         (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
6740         definition.
6741         (html_printer::is_bold, html_printer::make_bold): New member
6742         functions.
6743         (html_printer::end_of_line): Updated.
6744         (generate_img_src, html_printer::do_auto_image,
6745         html_printer::do_title, html_printer::write_header,
6746         html_printer::determine_header_level, html_printer::do_heading,
6747         html_printer::do_linelength, html_printer::do_pageoffset,
6748         html_printer::do_indentation, html_printer::do_tempindent,
6749         html_printer::do_indentedparagraph, html_printer::do_break,
6750         html_printer::flush_sbuf, get_html_translation,
6751         html_printer::begin_page, html_printer::special): Rewritten to get
6752         rid of static string length limit.
6753         (html_printer::troff_tag): Added `.no-auto-rule'.
6754         (html_printer::flush_globs): Small fix.
6755         (html_printer::determine_space): Don't compute `space_width'.
6756         (html_printer::translate_to_html): Renamed to ...
6757         (html_printer::emit_html): This (with updates).
6758         (html_printer::write_header): Implement `-h' option.
6759         (html_printer::draw): Remove commented-out code.  Handle `F'
6760         command.
6761         (html_printer::add_char_to_sbuf): Removed.
6762         (html_printer::add_to_sbuf): Rewritten.
6763         (html_printer::sbuf_continuation): Fixed.
6764         (html_printer::seen_backwards_escape, reverse,
6765         html_printer::remove_last_char_from_sbuf): Removed.
6766         (char_translate_to_html, str_translate_to_html): Removed.
6767         (html_printer::overstrike): New function member.
6768         (html_printer::set_char): Use it.
6769         (html_printer::do_body): New function member.
6770         (html_printer::~html_printer): Use it.
6771         (main): Handle `-h' option.
6772         (usage): Updated.
6773         * src/devices/grohtml/grohtml.man: Document -h switch.
6775         * src/preproc/html/pre-html.cc: Include searchpath.h
6776         Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
6777         (get_resolution): New function.
6778         (checkImageDir): Use `0777' permissions in mkdir()
6779         (write_start_image): Rewritten to use `\O[5...]'.
6780         (createImage, generateImages): Updated.
6781         (main): Handle `F' and `h' options.
6782         Use `get_resolution'.
6784         * src/roff/troff/input.cc (begin, end, image): Removed.
6785         (do_suppress): Take parameter.
6786         Handle modified syntax of `\O'.
6787         (token::next): Updated.
6788         (init_markup_requests): Removed.
6789         (main): Updated.
6791         * src/roff/troff/div.h: Add declaration for begin_page().
6793         * tmac/color-html.tmac: Removed.  Contents moved to...
6794         * tmac/html.tmac: Here.  Set background color.
6795         * tmac/color.tmac: Removed.  Contents moved to...
6796         * tmac/ps.tmac: Here.
6797         * tmac/www.tmac: Remove the title command when generating images
6798         for html.
6799         (NO_AUTO_RULE): New macro.
6800         (HTML_DO_IMAGE): Use revised `\O' escapes.
6801         * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
6803 2001-12-02  Werner LEMBERG  <wl@gnu.org>
6805         * tmac/groff_mdoc.man: Fix typo.
6807 2001-12-01  Colin Watson  <cjwatson@debian.org>
6809         * man/roff.man: Fix typo.
6811 2001-11-29  Werner LEMBERG  <wl@gnu.org>
6813         * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
6814         stdlib.h.
6816         * src/roff/troff/input.cc (read_draw_node): Emit error message if
6817         more than one argument to \D'f ...'.
6819         * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
6821 2001-11-28  Werner LEMBERG  <wl@gnu.org>
6823         * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
6824         loaded only once.
6826         * tmac/groff_man.man: Minor cosmetic fix.
6828 2001-11-27  Werner LEMBERG  <wl@gnu.org>
6830         * src/roff/groff/groff.man, tmac/groff_tmac.man,
6831         tmac/groff_www.man: s/mwww/www/.
6833 2001-11-26  Werner LEMBERG  <wl@gnu.org>
6835         * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
6836         * configure: Regenerated.
6837         * win32-diffs: Updated.
6839         * tmac/groff_mwww.tmac: Renamed to ...
6840         * tmac/groff_www.tmac: This.
6841         * tmac/mwww.tmac: Removed.
6842         * NEWS, tmac/Makefile.sub: Updated.
6844 2001-11-21  Werner LEMBERG  <wl@gnu.org>
6846         * doc/groff.texinfo: Improve documentation of the `\v' escape.
6847         Fix explanation of `\D' and `rt'.
6849 2001-11-20  Werner LEMBERG  <wl@gnu.org>
6851         * tmac/an-old.tmac (an-header): Set header length equal to page
6852         width.
6853         * doc/groff.texinfo: Improve documentation of `ne' request.  Other
6854         minor fixes.
6855         * NEWS: Small fix.
6857 2001-11-19  Werner LEMBERG  <wl@gnu.org>
6859         * NEWS, man/Makefile.sub: Updated.
6861 2001-11-19  Bernd Warken  <bwarken@mayn.de>
6863         * man/ditroff.man: New file.
6865 2001-11-17  Werner LEMBERG  <wl@gnu.org>
6867         * man/groff_differences.man: Renamed to ...
6868         * man/groff_diff.man: This.  Updated.
6869         * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
6871         * src/preproc/html/pushbackbuffer.cc: Renamed to ...
6872         * src/preproc/html/pushback.cc: This.  Updated.
6873         * src/preproc/html/pushbackbuffer.h: Renamed to ...
6874         * src/preproc/html/pushback.h: This.
6875         * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
6876         Updated.
6878         * src/libs/libgroff/htmlindicate.cc: Renamed to ...
6879         * src/libs/libgroff/htmlhint.cc: This.
6880         * src/libs/libgroff/Makefile.sub: Updated.
6882         * tmac/an-old.tmac (an-end): Fix page length.
6884 2001-11-16  Werner LEMBERG  <wl@gnu.org>
6886         * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
6887         * man/Makefile.sub: Include groff_differences.man.
6888         * VERSION: Set to 1.18.
6889         * REVISION: Set to 0.
6891 2001-11-16  Bernd Warken  <bwarken@mayn.de>
6893         * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
6894         the second dot (or ending macro name) to end a macro.
6895         * doc/groff.texinfo: Doc fix.
6897 2001-11-16  Ruslan Ermilov  <ru@FreeBSD.org>
6899         * tmac/doc-common (doc-header): Handle very long document titles
6900         better.
6902 2001-11-16  Werner LEMBERG  <wl@gnu.org>
6904         * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
6906 2001-11-15  Werner LEMBERG  <wl@gnu.org>
6908         * src/roff/troff/troff.man: Revised and split into troff.man and...
6909         * man/groff_differences.man: New file.
6910         * NEWS: Updated.
6912 2001-11-13  Werner LEMBERG  <wl@gnu.org>
6914         * tmac/an-old.tmac (TS, TE): New macros for table support.
6916 2001-11-12  Werner LEMBERG  <wl@gnu.org>
6918         * src/include/lib.h: Provide a fix for emx to not include
6919         groff-getopt.h.
6921 2001-10-27  Werner LEMBERG  <wl@gnu.org>
6923         * src/roff/troff/input.cc (substring_macro): Fix computation of
6924         boundary values.
6926 2001-10-20  Werner LEMBERG  <wl@gnu.org>
6928         Undo change from 2001-08-28.
6930         * src/roff/troff/input.cc (have_input): New global variable.
6931         (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
6932         in compatibility mode.
6933         (process_input_stack): Use it.
6935 2001-10-19  Ruslan Ermilov  <ru@FreeBSD.org>
6937         * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
6938         being handled as end-of-sentence characters,
6940 2001-10-10  Gaius Mulley  <gaius@glam.ac.uk>
6942         * src/roff/troff/input.cc (file_iterator): New members
6943         `suppress_newline_flag' and `seen_escape'.
6944         (file_iterator::next_file): Updated.
6945         (file_iterator::fill): Use it.
6946         (string_iterator): New member `suppress_newline_flag'.
6947         (string_iterator::fill): Set it.
6948         (get_color_element): Use MAX_COLOR_VAL.
6949         * src/roff/troff/env.cc (environment): Remove `need_eol'.
6950         (no_fill): Don't set `env->ignore_next_eol'.
6951         (environment::newline): Handle `eol' tag properly.
6952         Emit `eol.ce'.
6953         (environment::add_html_tag): Set `env->ignore_next_eol'.
6954         Don't handle `.ce'.
6955         * src/roff/troff/env.h (environment): Updated.
6957         * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
6958         member function.
6959         (html_printer::outstanding_eol): New member function.
6960         (html_printer::do_title): Use new functions.
6961         (html_printer::troff_tag): Test `id_eol_ce'.
6963 2001-10-10  Werner LEMBERG  <wl@gnu.org>
6965         * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
6966         files work with -C also.
6968 2001-10-05  Werner LEMBERG  <wl@gnu.org>
6970         * doc/pic.ms: Minor fix.
6971         * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
6972         as a valid command line switch.
6973         * src/devices/grohtml/post-html.cc (main): Ditto.
6974         (usage): Updated.
6975         * src/devices/grohtml/grohtml.man: Updated.
6976         * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
6978 2001-10-04  Werner LEMBERG  <wl@gnu.org>
6980         Implementing color support in troff, pic, grops, and grohtml.  These
6981         changes are based on a major patch provided by Gaius Mulley
6982         <gaius@glam.ac.uk>.
6984         New request: `defcolor', supporting rgb, cmy, cmyk, and gray
6985         definitions with both hex values and fractions.
6987         New escapes: \m and \M for drawing and background color,
6988         respectively.  This corresponds to the troff output commands `m'
6989         and `DF'.
6991         groff and troff accept command line switch `-c' to disable color
6992         output (which is automatically disabled in compatibility mode).
6994         New scaling indicator `f' for fractions (1f = 65536u).
6996         New conditional operator `m' to test for defined colors with `if'
6997         and `ie'.
6999         New keywords `color' (or `colour', `colored', `coloured'), `outline'
7000         (or `outlined'), and `shaded' added to pic.
7002         * src/include/color.h: New file.
7003         * src/include/driver.h: Include it.
7004         * src/include/printer.h: Include color.h.
7005         (environment): New members `col' and `fill'.
7006         (printer): Remove `adjust_arc_center' member function.
7007         * src/include/Makefile.sub: Updated.
7009         * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
7010         `env.fill'.
7011         Handle `m' and `DF' troff commands.
7012         * src/libs/libgroff/color.cc: New file.
7013         * src/libs/libgroff/Makefile.sub: Updated.
7015         * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
7016         (stop): Removed.
7017         (createImage): Fix computation of `y2'.
7018         Use `pnmcrop' also.
7019         (buffer::write_file_html): Remove calls to `stop'.
7021         * src/preproc/pic/common.h (common_output): New abstract function
7022         members `set_color', `reset_color', `get_last_filled', and
7023         `get_outline_color'.
7024         * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
7025         (object_spec): Add members `shaded' and `outlined'.
7026         * src/preproc/pic/output.h (output): `command' is now abstract.
7027         New function members `set_color', `reset_color', `get_last_filled',
7028         and `get_outline_color'.
7029         * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
7030         `outline[d]', and `shaded'.
7031         * src/preproc/pic/object.cc (output::command): Removed.
7032         (output::set_location): Moved to output.h.
7033         (graphic_object): Add protected members `outline_color' and
7034         `color_fill'.
7035         Add member functions `set_outline_color', `get_outline_color', and
7036         `set_fill_color'.
7037         (closed_object): Add member function `set_fill_color'.
7038         Add member `color_fill'.
7039         (graphic_object::print_text): Use `out->set_color' and
7040         `out->reset_color'.
7041         (box_object::print, ellipse_object::print, circle_object::print,
7042         line_object::print, spline_object::print, arc_object::print): Ditto.
7043         (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
7044         * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
7045         `SHADED', making them `%left'.
7046         Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
7047         * src/preproc/pic/tex.cc (tex_output): New dummy function members
7048         `set_color', `reset_color', `get_last_filled', and
7049         `get_outline_color'.
7050         * src/preproc/pic/troff.cc (simple_output): New abstract function
7051         members `set_color', `reset_color', and `get_last_filled'.
7052         (simple_output::polygon, simple_output::circle,
7053         simple_output::ellipse): Use `get_last_filled'.
7054         (troff_output): New members `last_filled' and `last_outlined'.
7055         New function members `set_color', `reset_color', `get_last_filled',
7056         and `get_outline_color'.
7057         (troff_output::finish_picture): Use `reset_color'.
7058         (troff_output::set_fill): Test `last_filled'.
7059         * src/preproc/pic/pic.man: Updated.
7061         * src/roff/groff/groff.cc (main): Implement `-c' option.
7062         (synopsis, help): Updated.
7063         src/roff/groff/groff.man: Updated.
7065         * src/roff/troff/troff.h: Include color.h.
7066         (warning_type): Add WARN_COLOR.
7067         * src/roff/troff/env.h (environment): New members
7068         `{cur,prev}_{glyph,fill}_color'.
7069         New member functions `get_{prev_,}{glyph,fill}_color'.
7070         * src/roff/troff/env.cc: Initialize and implement them.
7071         * src/roff/troff/input.cc: New global variable `disable_color_flag'.
7072         Replace `NULL' with `0' everywhere for consistency.
7073         (lookup_color, default_black, do_glyph_color, do_fill_color,
7074         get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
7075         define_color): New functions.
7076         (token::next): Implement \M and \m escapes.
7077         (do_if_request): Implement `m' operator.
7078         (usage): Updated.
7079         (main): Implement `-c' option.
7080         (init_markup_requests): Add `defcolor' request.
7081         (warning_table): Add `color' warning.
7082         * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
7083         classes.
7084         * src/roff/troff/node.cc (troff_output_file): New members
7085         `current_{page,glyph}color'.  New member functions `put_hex',
7086         `glyph_color', and `fill_color'.
7087         (glyph_color_node::*, fill_color_node::*): Implement it.
7088         * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
7089         (parse_term): Add support for `f'.
7090         * src/roff/troff/troff.man: Updated.
7092         * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
7093         entry for `F'.
7094         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
7095         * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
7097         * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
7098         (tag_definition): Use `void *' for arg1.
7099         (html_text): New member functions `do_color' and `done_color'.
7100         Use `void *' for second parameter of `push_para' member function.
7101         New `push_para' member function with a single parameter.
7102         Use `char *' for parameter of `issue_table_begin' member funtion.
7103         New `issue_color_begin' member function.
7104         * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
7105         COLOR_TAG.
7106         (html_text::issue_color_begin): New function.
7107         (html_text::issue_table_begin): Use `char *' for parameter.
7108         (html_text::start_tag, html_text::shutdown,
7109         html_text::check_emit_text): Updated.
7110         (html_text::push_para): Use `void *' for second parameter.
7111         Add same function with only one parameter.
7112         (html_text::do_*): Updated.
7113         (html_text::do_color, html_text::done_color): New functions.
7114         * src/devices/grohtml/post-html.cc (style): New member `col'.
7115         Mew member `style' with 6 parameters.
7116         (style::style, style::operator==): Updated.
7117         (html_printer::do_font): Use it.
7118         (html_printer::draw): Add dummy entry for `F'.
7119         (html_printer::set_char): Updated.
7120         * src/devices/grohtml/grohtml.man: Updated.
7122         * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
7123         trailing zeroes removed.
7124         (ps_printer): New members `sbuf_color', `fill_color', and
7125         `output_color'.
7126         Removed member `fill'.
7127         New member function `set_color'.
7128         (ps_printer::ps_printer, ps_printer::set_char): Updated.
7129         (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
7130         ps_printer::fill_path, ps_printer::draw): Use `set_color'.
7132         * tmac/color-html.tmac, tmac/color.tmac: New files.
7133         * tmac/troffrc: Include them.
7134         * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
7135         * tmac/Makefile.sub: Updated.
7137         * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
7138         man/groff.man: Updated.
7139         * font/devps/prologue.ps: Define FC and CO functions.
7141 2001-10-04  Gaius Mulley  <gaius@glam.ac.uk>
7143         Fix incorrect cropping of images and incorrect handling of special
7144         characters.  Fix handling of file names in \O.
7146         * src/include/geometry.h: New file.
7147         * src/libs/libgroff/geometry.cc: New file.
7148         * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
7149         to `geometry.cc'.
7150         * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
7151         initial spaces.
7152         (do_suppress): Updated.
7153         * src/roff/troff/node.cc: Include geometry.h.
7154         (troff_output_file::flush_tbuf): Fixed parameters to
7155         `check_output_limits'.
7156         (troff_output_file::check_charinfo): Ditto.
7157         (troff_output_file::determine_line_limits): Add support for `Da'
7158         and `Dl' commands.
7160         * src/devices/grohtml/post-html.cc (str_translate_to_html):
7161         Add new parameter `is_special' to decode special characters from
7162         escape sequences.
7163         (html_printer::do_title, html_printer::do_heading,
7164         html_printer::do_indentedparagraph,
7165         html_printer::translate_to_html, html_printer::special): Updated.
7167 2001-10-03  Werner LEMBERG  <wl@gnu.org>
7169         * Makefile.sub (DISTCLEANFILES): Add stamp-h.
7170         Fix entry for config.h.
7171         * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
7172         * tmac/troffrc: Translate nonbreakable space character to `\~'.
7173         * src/preproc/eqn/eqn.man: Document -d command line option.
7175 2001-09-27  Werner LEMBERG  <wl@gnu.org>
7177         * man/groff.man: Use
7179           .ev xxx
7180           .na
7181           .nh
7182           <table>
7183           .ev
7185         instead of the old code (`.ad .hy' after the table) to suppress
7186         incorrect hyphenation for grohtml output.
7188 2001-09-22  Werner LEMBERG  <wl@gnu.org>
7190         * man/groff_font.man, man/groff_out.man: Minor fixes.
7192 2001-09-20  Werner LEMBERG  <wl@gnu.org>
7194         * PROBLEMS: Updated, reordered.  Improved EPS section (thanks to
7195         Arnold Robbins <arnold@skeeve.com>).
7197 2001-09-09  Werner LEMBERG  <wl@gnu.org>
7199         * configure: Regenerated with autoconf 2.52.
7201         * doc/groff.texinfo: Complete revision of indices.
7203 2001-09-07  Werner LEMBERG  <wl@gnu.org>
7205         * doc/Makefile (clean): Updated to delete all indices.
7207 2001-09-05  Werner LEMBERG  <wl@gnu.org>
7209         * src/roff/troff/troff.man: Remove superfluous line.
7211         * tmac/s.tmac: Enable all warnings only if no -W or -w option is
7212         given on the command line (or rather, if only the default warnings
7213         are set).
7215 2001-09-03  Werner LEMBERG  <wl@gnu.org>
7217         * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
7218         use .ne for TTY devices.
7220 2001-08-31  Werner LEMBERG  <wl@gnu.org>
7222         * src/roff/troff/token.h, src/roff/troff/input.cc:
7223         s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
7225 2001-08-28  Werner LEMBERG  <wl@gnu.org>
7227         * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
7228         * src/roff/troff/input.cc (token::next): Return
7229         TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
7230         compatibility mode.
7231         (token::description): Updated.
7232         (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
7233         (token::add_to_node_list, token::process): Ignore
7234         TOKEN_TRANSPARENT_ESCAPE.
7236 2001-08-27  Werner LEMBERG  <wl@gnu.org>
7238         * tmac/an-old.tmac: Fix `S' string.
7240 2001-08-26  Werner LEMBERG  <wl@gnu.org>
7242         * src/roff/troff/troff.man: Don't use .ne for TTY devices.
7244 2001-08-25  Werner LEMBERG  <wl@gnu.org>
7246         * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
7247         backslashes).
7248         Many other minor fixes.
7250         * configure.ac: Add message at end to inform how to compile
7251         xditview.
7252         * configure: Regenerated.
7254 2001-08-24  Werner LEMBERG  <wl@gnu.org>
7256         * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
7257         Updated to latest version of libc.
7259 2001-08-23  Werner LEMBERG  <wl@gnu.org>
7261         * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
7262         Autoconf 2.50 and newer can handle this.
7263         * configure: Regenerated.
7265 2001-08-21  Werner LEMBERG  <wl@gnu.org>
7267         * doc/pic.ms: Fix typo.
7268         * src/preproc/tbl/tbl.man: Document case of global options.
7270 2001-08-21  Gaius Mulley  <gaius@glam.ac.uk>
7272         * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
7273         handling of `CR' font.
7275 2001-08-20  Werner LEMBERG  <wl@gnu.org>
7277         Use a config.h file.
7279         * src/include/lib.h: Include config.h.
7280         * All C files: Ditto (if necessary).
7281         * All C++ source and header files: Include lib.h first (if
7282         necessary).
7284         * src/include/config.hin: New file (autogenerated by autoheader).
7285         * stamp-h.in: New file.
7286         * configure.ac: Updated.
7287         * aclocal.m4: Add third parameters to AC_DEFINE macros.
7288         (GROFF_ARRAY_DELETE): Simplified.
7289         * Makefile.sub (DISTCLEANFILES): Updated.
7290         Added targets for remaking config.status, config.hin, config.h,
7291         stamp-h.in, and stamp-h.
7292         * configure: Regenerated.
7294 2001-08-19  Werner LEMBERG  <wl@gnu.org>
7296         * NEWS: Updated.
7298 2001-08-18  Sebastian Krahmer  <krahmer@suse.de>
7300         * src/preproc/pic/pic.y (format_number): Use do_sprintf().
7301         (do_sprintf): Use snprintf().
7303 2001-08-18  Werner LEMBERG  <wl@gnu.org>
7305         * src/libs/snprintf/*: Added an snprintf module written by Mark
7306         Martinec.
7307         * src/libs/libgroff/Makefile.sub: Updated.
7308         * configure.ac: Add test for snprintf().
7309         * Makefile.in: Updated.
7310         * configure: Regenerated.
7312         * src/preproc/html/pre-html.cc (make_message): Reactivate code which
7313         uses snprintf().
7315 2001-08-14  Ruslan Ermilov  <ru@FreeBSD.org>
7317         * tmac/doc.tmac (Ex): New implementation.
7318         * tmac/doc-common, tmac/groff_tmac.man: Updated.
7320 2001-08-13  Ruslan Ermilov  <ru@FreeBSD.org>
7322         * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
7323         argument.
7324         * tmac/groff_tmac.man: Updated.
7326 2001-08-13  Werner LEMBERG  <wl@gnu.org>
7328         * src/preproc/tbl/tbl.man: Minor documentation update.
7330 2001-08-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7332         * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
7333         * configure.ac: Add declaration test for gettimeofday().
7334         * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
7335         * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
7336         * configure: Regenerated.
7338 2001-08-11  Werner LEMBERG  <wl@gnu.org>
7340         * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
7341         * configure.ac: Add declaration test for strcasecmp().
7342         * Makefile.in: Updated.
7343         * configure: Regenerated.
7344         * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
7345         this is necessary because groff's mkstemp.cc is C++.
7346         Add declaration conditionally for strcasecmp().
7348 2001-08-10  Werner LEMBERG  <wl@gnu.org>
7350         Integrated pic2graph, contributed by Eric S. Raymond.
7352         * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
7353         files.
7354         * Makefile.in, NEWS: Updated.
7356         * src/preproc/tbl/tbl.man: Revised.
7358 2001-08-09  Eric S. Raymond  <esr@thyrsus.com>
7360         * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
7362 2001-08-09  Werner LEMBERG  <wl@gnu.org>
7364         * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
7365         requests.
7367 2001-08-08  Paul Eggert  <eggert@twinsun.com>
7369         * Makefile.sub (configure): Depend on configure.ac, not
7370         configure.in.
7371         * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
7373 2001-08-07  Werner LEMBERG  <wl@gnu.org>
7375         * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
7376         fixes.
7378 2001-08-06  Werner LEMBERG  <wl@gnu.org>
7380         * src/roff/troff/troff.man: Improve documentation of -E option.
7382 2001-07-28  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
7384         * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
7385         Simplified.
7387 2001-07-27  Werner LEMBERG  <wl@gnu.org>
7389         * src/preproc/refer/refer.cc: Undo last change.
7390         * src/devices/grohtml/post-html.cc: Ditto.
7392 2001-07-26  Werner LEMBERG  <wl@gnu.org>
7394         * src/preproc/refer/refer.cc: Include `lib.h'.
7395         * src/devices/grohtml/post-html.cc: Ditto.
7397 2001-07-25  Gaius Mulley  <gaius@glam.ac.uk>
7399         * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
7400         * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
7401         * Makefile.in: Comment updated.
7402         * configure: Regenerated.
7404 2001-07-25  Werner LEMBERG  <wl@gnu.org>
7406         * src/preproc/pic/pic.cc: Removed.
7407         * src/preproc/pic/pic_tab.h: Removed.
7408         * src/preproc/refer/label.cc: Removed.
7410         * doc/Makefile (.ms.html): Don't use a file name extension in
7411         argument to grohtml's -I option.
7412         * Makefile.in (dist): Remove CVS directories.
7413         Call `distfiles' target.
7415         * src/devices/grohtml/grohtml.man: Add information about valid
7416         versions of pnmtopng.
7417         * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
7418         name instead of number.
7420 2001-07-24  Werner LEMBERG  <wl@gnu.org>
7422         * doc/groff.texinfo: Minor fixes.
7424 2001-07-21  Gaius Mulley  <gaius@glam.ac.uk>
7426         * doc/Makefile (.ms.html): Put image files into a subdirectory.
7427         (clean): Updated.
7429 2001-07-20  Werner LEMBERG  <wl@gnu.org>
7431         * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
7432         * src/libs/libgroff/mkstemp.cc: New file.
7433         * src/libs/libgroff/mksdir.cc: New file.
7434         * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
7435         (xtmpfile) [!HAVE_MKSTEMP]: Removed.
7436         * src/libs/libgroff/Makefile.sub: Updated.
7437         * src/include/lib.h: Add mksdir() prototype.
7438         * src/include/posix.h: Define S_IXUSR if not yet defined.
7440         * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
7441         (createAllPages): Use mksdir() instead of current code.
7442         * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
7443         (main): [!HAVE_MKSTEMP]: Removed.
7445         * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
7446         (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
7447         macros.
7448         * configure.ac: Add tests for stdint.h, sys/time.h, and
7449         gettimeofday().
7450         Call new GROFF_xxx macros.
7451         * configure: Regenerated.
7452         * Makefile.in: Comments updated.
7454 2001-07-20  Gaius Mulley  <gaius@glam.ac.uk>
7456         * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
7457         instead of current code.
7458         * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
7459         * src/roff/groff/groff.cc (possible_command::insert_args): New
7460         function.
7461         (main): Use it for predriver handling instead of insert_arg().
7463 2001-07-19  Werner LEMBERG  <wl@gnu.org>
7465         * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
7466         groff also.
7468         * src/include/posix.h: Define S_IWUSR if not yet defined.
7470 2001-07-18  Werner LEMBERG  <wl@gnu.org>
7472         * NEWS: Updated.
7474 2001-07-18  Ruslan Ermilov  <ru@FreeBSD.org>
7476         * tmac/groff_mdoc.man: Document new -width and -column syntax.
7477         Some other minor fixes.
7478         * tmac/an-old.tmac: Add `AT' and `UC' macros.
7480 2001-07-17  Gaius Mulley  <gaius@glam.ac.uk>
7482         Replace call to `troff' with `groff -Z' to make it aware of
7483         GROFF_BIN_PATH.
7485         * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
7486         (troff_command, command_prefix): Removed.
7487         (alterDeviceTo): Use groff.
7488         (addZ): New function.
7489         (char_buffer::do_html): Use it.
7490         (scanArguments): Use TROFF_COMMAND.
7491         (findPrefix): Removed.
7492         (main): Updated.
7493         * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
7495 2001-07-17  Eric S. Raymond  <esr@snark.thyrsus.com>
7497         * doc/pic.ms: Documentation fixes.
7499 2001-07-17  Werner LEMBERG  <wl@gnu.org>
7501         Replace atexit() with global destructor.
7503         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
7504         (xtmpfile_list_init): New global structure to deallocate
7505         xtmpfile_list on exit.  Its destructor inherits most code from
7506         remove_tmp_files().
7507         (remove_tmp_files): Deleted.
7508         (add_tmp_file): Simplified.
7510 2001-07-16  Werner LEMBERG  <wl@gnu.org>
7512         Replace strdup() with strsave().
7514         * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
7515         (set_papersize): Use strsave() and a_delete.
7516         (main): Use strsave().
7517         * src/preproc/html/pre-html.cc (make_message, createAllPages,
7518         removeAllPages): Use strsave() and a_delete.
7520         * configure.ac: Remove test for strdup.
7521         * Makefile.in: Comment updated.
7522         * configure: Regenerated.
7524 2001-07-15  Werner LEMBERG  <wl@gnu.org>
7526         * win32-diffs: Updated.
7528 2001-07-14  Werner LEMBERG  <wl@gnu.org>
7530         * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
7531         removing the old one.
7532         * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
7534 2001-07-14  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
7536         * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
7538 2001-07-12  Ruslan Ermilov  <ru@FreeBSD.org>
7540         Merge -xwidth into -width.  Add -xwidth functionality to -column
7541         also.
7543         * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
7544         avoid warning.
7545         (doc-do-Bl-args): Merge -xwidth code with -width.  Test whether
7546         string immediately following a leading dot starts with a valid mdoc
7547         argument.
7548         Add similar code to the -column branch.
7549         (doc-Bl-usage): Updated.
7550         * groff_mdoc.man: s/-xwidth/-width/.
7552 2001-07-12  Gaius Mulley  <gaius@glam.ac.uk>
7554         * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
7555         running into centered or non-formatted text.
7557 2001-07-11  Werner LEMBERG  <wl@gnu.org>
7559         Introduce short and long prefixes to have the selection at run-time
7560         whether there is a 8+3 limit for names of temporary files.
7562         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
7563         (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
7564         (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
7565         variables.
7566         (temp_init): New global structure to initialize above three
7567         variables.
7568         (xtmptemplate): Use two parameters for long and short prefix.
7569         Simplify code use above three variables.
7570         (xtmpfile): Use long and short prefixes as parameters.
7571         * src/include/lib.h: Updated.
7573         * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
7574         with ...
7575         ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
7576         (createAllPages, makeTempFiles): Updated.
7578 2001-07-09  Werner LEMBERG  <wl@gnu.org>
7580         * REVISION: Increased to 3.
7582 Version 1.17.2 released
7583 =======================
7585 2001-07-07  Werner LEMBERG  <wl@gnu.org>
7587         * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
7588         to size_t.
7590 2001-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
7592         * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
7593         Fix synopsis.
7594         * tmac/groff_mdoc.man: Fix synopsis.
7596 2001-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
7598         * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
7599         Restore `doc-Pa-font'.
7601 2001-07-04  Werner LEMBERG  <wl@gnu.org>
7603         * src/utils/indxbib/dirnamemax.c: Moved to ...
7604         * src/libs/libgroff/maxfilename.cc: Here.
7605         s/dir_name_max/file_name_max/.
7606         Add copyright.
7607         * src/include/lib.h: Add file_name_max.
7608         * src/utils/indxbib/indxbib.cc: Updated.
7609         * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
7610         Updated.
7612         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
7613         as empty.
7614         (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
7616         * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
7617         REGION_TEMPLATE): New macros.
7618         (createAllPages, makeTempFiles): Use them.
7619         Include `nonposix.h'.
7620         (html_system): New function.
7621         (createAllPages, createImage): Use it.
7622         Use EXE_EXT.
7624         * tmac/www.tmac: Fix typos.
7626 2001-07-03  Werner LEMBERG  <wl@gnu.org>
7628         * tmac/www.tmac: Disable hyphenation in normal text only if output
7629         device is html.
7630         (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
7631         * tmac/groff_mwww.man, NEWS: Updated.
7633 2001-07-03  Gaius Mulley  <gaius@glam.ac.uk>
7635         * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
7636         image location.
7638 2001-07-02  Ruslan Ermilov  <ru@FreeBSD.org>
7640         * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
7641         doc-display-ps-stack): Implement font and font size stack for
7642         displays.
7644 2001-07-02  Werner LEMBERG  <wl@gnu.org>
7646         * REVISION: Increased to 2.
7647         * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
7649         * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
7650         beginning of a line.
7651         * src/groff/grog/grog.sh: Ditto.
7653 2001-06-29  Peter Marquardt  <wwwutz@molgen.mpg.de>
7655         * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
7656         make it portable.
7658 2001-06-27  Werner LEMBERG  <wl@gnu.org>
7660         Fix problems with preprocessor string for `man' program.
7662         * *.man: Don't use `s' in preprocessor string --  it doesn't exist.
7663         Updated/added copyright.
7664         Moved Emacs's local variable to identify nroff mode to the end of
7665         the file; add local variable if missing.
7667 2001-06-26  Andras Salamon  <andras@cs.wits.ac.za>
7669         * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
7670         AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
7671         * configure: Regenerated.
7673 2001-06-25  Andras Salamon  <andras@cs.wits.ac.za>
7675         * aclocal.m4 (GROFF_PAGE): Fix page detection code.
7676         * configure: Regenerated.
7678 2001-06-24  Werner LEMBERG  <wl@gnu.org>
7680         * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
7681         but www.tmac.
7682         * doc/pic.ms: Fix typos.
7684 Version 1.17.1 released
7685 =======================
7687 2001-06-21  Golubev I. N.  <gin@mo.msk.ru>
7689         * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
7690         * configure: Updated.
7692 2001-06-20  Gaius Mulley  <gaius@glam.ac.uk>
7694         * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
7695         image names.
7696         * src/roff/troff/dic.cc (blank_line): Add html tag.
7698 2001-06-19  Gaius Mulley  <gaius@glam.ac.uk>
7700         * src/roff/troff/input.cc (do_suppress): Fix typo.
7702 2001-06-18  Gaius Mulley  <gaius@glam.ac.uk>
7704         Added two new options (-D and -I) to specify image names and a
7705         subdirectory to place the images in.
7707         Change syntax from \\Ox to \\O[x].
7709         * src/devices/grohtml/post-html.cc (main): Add options.
7710         (usage): Updated.
7711         * src/preproc/html/pre-html.cc: Include `stdarg.h'.
7712         Use `NULL' instead of `0' for null string pointers.
7713         (MAX_RETRIES): New macro.
7714         (lengthOfintToStr, intToStr, make_message): New functions.
7715         (makeFileName): Make function static.
7716         Implement -D and -I options.
7717         (checkImageDir): New function.
7718         (write_end_image, write_start_image): Use new syntax of \O.
7719         (createAllPages, removeAllPages): Implement -D and -I options.  Use
7720         make_message().
7721         (createImage): Use make_message().
7722         (addps4html): Add guard for malloc().
7723         (usage, scanArguments): Updated.
7724         (makeTempFiles): Use mkstemp().
7725         (removeTempFiles): Use unlink().
7726         (findPrefix): Add guard for malloc().
7727         (main): Updated.
7728         * src/roff/troff/input.cc (get_delim_file_name): New function to
7729         parse \O.
7730         (do_suppress): Updated to parse new syntax.
7731         * src/devices/grohtml/grohtml.man: Updated.
7732         * tmac/www.tmac: Updated to new syntax.
7734         * NEWS: Updated.
7736 2001-06-15  Werner LEMBERG  <wl@gnu.org>
7738         * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
7740         * src/devices/grohtml/grohtml.man: Minor improvements.
7742 2001-06-14  Werner LEMBERG  <wl@gnu.org>
7744         * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
7746 2001-06-11  Werner LEMBERG  <wl@gnu.org>
7748         * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
7749         line to specify preprocessor options -- mandb 2.3.1 only recognizes
7750         the former.
7751         * src/preproc/grn/grn.man: Add proper '\" string.
7753 2001-06-11  OKAZAKI Tetsurou  <okazaki@be.to>
7755         * test-groff: Don't use PATH but GROFF_BIN_PATH.
7757 2001-06-08  Werner LEMBERG  <wl@gnu.org>
7759         Updated to autoconf 2.50.
7761         * configure.in: Renamed to...
7762         * configure.ac: This.
7763         * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
7764         (GROFF_OS390): Updated.
7765         * configure: Regenerated.
7767 2001-05-18  Werner LEMBERG  <wl@gnu.org>
7769         * src/roff/troff/env.c, src/roff/troff/env.h,
7770         src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
7771         from 2000-12-21.
7773 2001-05-17  Jeffrey Friedl  <jfriedl@yahoo-inc.com>
7775         * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
7777 2001-05-16  Werner LEMBERG  <wl@gnu.org>
7779         * src/roff/troff/input.cc (read_size): Emit warning if value becomes
7780         less than or equal zero; set it to 1 then.
7781         * src/roff/troff/node.h (node::node): Initialize `last'.
7783 2001-05-08  Werner LEMBERG  <wl@gnu.org>
7785         * tmac/an-old.tmac: Make predefined strings work in compatibility
7786         mode.
7787         Add troff version guard.
7788         * tmac/doc.tmac: Simplify version guard.
7790 2001-05-07  Werner LEMBERG  <wl@gnu.org>
7792         The .ns and .rs requests are now honoured not only in the top-level
7793         but in all diversions (similar to UNIX troff).
7795         This change is based on a patch from Tadziu Hoffmann
7796         <hoffmann@usm.uni-muenchen.de>.
7798         * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
7799         (top_level_diversion): Remove `no_space_mode' member.
7800         * src/roff/troff/div.cc (diversion::diversion,
7801         top_level_diversion::top_level_diversion): Updated.
7802         (macro_diversion::output): Reset `no_space_mode'.
7803         (no_space, restore_spacing): Use `curdiv' unconditionally.
7804         (space_request, blank_line): Check `curdiv->no_space_mode'.
7805         (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
7806         `curdiv' unconditionally.
7807         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
7808         Updated.
7810 2001-05-06  Werner LEMBERG  <wl@gnu.org>
7812         Added two new requests `de1' and `am1' which are similar to `de' and
7813         `am' with the difference that compatibility mode is saved on entry,
7814         switched off during macro execution, and restored on exit.
7816         * src/roff/troff/input.h: Added two new special characters
7817         (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
7818         * src/roff/troff/input.cc (input_iterator): Added two member
7819         functions `save_compatible_flag' and `get_compatible_flag'.
7820         (input_stack): Ditto.
7821         (string_iterator): Ditto.  Also add private member
7822         `saved_compatible_flag'.
7823         (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
7824         (calling_mode): New enumeration.
7825         (do_define_macro): Use it.  Insert COMPATIBLE_SAVE and
7826         COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
7827         (define_macro, define_indirect_macro, append_macro, ignore): Use
7828         `calling_mode'.
7829         (define_nocomp_macro, append_nocomp_macro): New functions.
7830         (init_input_requests): Updated.
7831         (do_request): Rename local variable `saved_compatible_flag' to
7832         `old_compatible_flag'.
7833         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7835         * tmac/an-old.tmac: Use `de1' instead of `de' request for all
7836         public and trap-invoked macros.  As a consequence, the man macros
7837         work in compatibility mode also.
7839 2001-05-06  Solar Designer  <solar@openwall.com>
7841         * Makefile.in: Use $(mandir).
7843 2001-05-06  Alexios Zavras  <zvr@pobox.com>
7845         * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
7847 2001-05-05  Werner LEMBERG  <wl@gnu.org>
7849         Added `.ns' number register: Returns 1 in no-space mode (if in
7850         top-level diversion), 0 otherwise.
7852         * src/roff/troff/div.cc (no_space_mode_reg): New class.
7853         (init_div_requests): Updated.
7854         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
7855         Document it.
7857 2001-05-04  Werner LEMBERG  <wl@gnu.org>
7859         * src/roff/nroff/nroff.man: Improved documentation (especially
7860         locales).
7862 2001-05-02  Werner LEMBERG  <wl@gnu.org>
7864         Added `brp' request: This is \p as a request.
7866         * src/roff/troff/env.cc (environment::do_break): Add parameter
7867         `spread'.
7868         (do_break_request): New function (was `break_request').
7869         (break_request): Calls `do_break_request'.
7870         (break_spread_request): New; calls `do_break_request'.
7871         (init_env_requests): Updated.
7872         * src/roff/troff/env.h: Updated.
7873         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7875         * REVISION: Increased to 1.
7876         * win32-diffs: Updated.
7878 2001-05-01  Werner LEMBERG  <wl@gnu.org>
7880         * tmac/an-old.tmac: Fix minor compatibility mode issue.
7881         * tmac/troffrc-end: Make it really work in compatibility mode.
7883 2001-04-27  Werner LEMBERG  <wl@gnu.org>
7885         * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
7886         stdlib.h.
7888 2001-04-22  Werner LEMBERG  <wl@gnu.org>
7890         * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
7891         latest versions from glibc CVS archive.
7893         * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
7894         <c.zeelenberg@hccnet.nl>.
7896 2001-04-21  Werner LEMBERG  <wl@gnu.org>
7898         * configure.in: Move check for mkstemp() to...
7899         * aclocal.m4 (GROFF_MKSTEMP): This new function.
7900         * configure: Regenerated.
7902         * src/include/groff-getopt.h: Don't use variable names in
7903         declarations.
7905         * src/devices/grohtml/html-chars.h: Removed.  It isn't used.
7906         * src/devices/grohtml/Makefile.sub,
7907         src/devices/grohtml/post-html.cc: Updated.
7909 2001-04-21  Albert Chin-A-Young  <china@thewrittenword.com>
7911         * configure.in: Add special check for mkstemp().
7912         * src/libs/libgroff/tmpfile.cc: Use it.
7913         * src/utils/indxbib/indxbib.cc: Ditto.
7914         * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
7915         * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
7916         `const'.
7918 2001-04-20  Bruce Lilly  <blilly@erols.com>
7920         `Version_string' as C++ object was not visible to linker from C
7921         object files.
7922         Add `const' to `Version_string'.
7924         * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
7925         (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
7926         (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
7927         (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
7928         (scanArguments), src/preproc/refer/refer.cc (main),
7929         src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
7930         (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
7931         (main), src/devices/grohtml/post-html.cc (main),
7932         src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
7933         (main), src/utils/hpftodit/hpftodit.cc (main),
7934         src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
7935         (main), src/utils/lkbib/lkbib.cc (main),
7936         src/utils/addftinfo/addftinfo.cc (main): Implement it.
7938         * src/roff/groff/pipeline.c: Add _UWIN.
7939         * src/include/nonposix.h: Ditto.
7941 2001-04-20  Werner LEMBERG  <wl@gnu.org>
7943         * src/include/lib.h: Use HAVE_STRERROR.
7944         * src/roff/groff/pipeline.c: Ditto.
7945         * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
7946         * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
7947         * src/utils/pfbtops/pfbtops.c: Add copyright notice.
7948         * win32-diffs: Updated.
7949         * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
7951 2001-04-19  Werner LEMBERG  <wl@gnu.org>
7953         * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
7954         instead of hardwired `"troff"'.
7955         (char_buffer::read_file): Remove unused variables.
7956         (char_buffer::write_file_troff): Ditto.
7957         (char_buffer::write_file_html): Ditto.
7958         (generateImages): Ditto.
7959         (abs): Removed.
7960         * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
7962         * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
7964         * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
7965         * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
7966         index_search_item::search1): Ditto.
7967         * src/roff/troff/node.h (width_list): Reorder members.
7968         * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
7969         (lookup_warning): Ditto.
7970         (prepend_string): Commented out.
7971         * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
7972         * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
7973         * src/preproc/tbl/main.cc (process_format): Ditto.
7974         * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
7975         compiler warnings.
7976         * src/preproc/pic/pic.cc: Updated.
7977         * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
7978         * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
7979         * src/preproc/refer/command.cc (execute_command): Ditto.
7980         * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
7981         * src/preproc/refer/token.cc (lookup_token): Ditto.
7982         * src/preproc/soelim/soelim.cc: Ditto.
7983         * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
7984         (isHexDigit): Commented out.
7985         (pushBackBuffer::isString): Remove unused variable.
7986         * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
7987         warning.
7988         * src/devices/grops/psrm.cc (resource_manager::lookup_font,
7989         resource_manager::read_resource_arg, read_one_of, parse_extensions):
7990         Ditto.
7991         * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
7992         * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
7993         lookup_paper_size): Ditto.
7994         * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
7995         (text_glob, element_list): Reorder members.
7996         * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
7997         compiler warning.
7998         * src/devices/grohtml/html-text.h (html_text::emit_space): Change
7999         return value to `void'.
8000         * src/devices/grohtml/output.cc (word_list::word_list): Fix order
8001         of initializers.
8002         * src/devices/grohtml/html.h (simple_output::check_newline,
8003         simple_output::space_or_newline, simple_output::enable_newlines):
8004         Add return value.
8005         * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
8006         compiler warnings.
8007         * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
8008         * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
8009         output_ligatures, output_charset, read_map): Ditto.
8010         * src/utils/lookbib/lookbib.cc (main): Ditto.
8011         * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
8012         (do_file): Fix typo (`=' -> `==').
8013         * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
8014         * src/utils/addftinfo/addftinfo.cc (main): Ditto.
8016 2001-04-18  Ruslan Ermilov  <ru@FreeBSD.org>
8018         * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
8019         Fix usage of GROFF_BIN_PATH.
8020         * src/roff/nroff/nroff.man: Updated.
8022 2001-04-18  Werner LEMBERG  <wl@gnu.org>
8024         * NEWS: Fixing typos.
8025         Updated.
8027 Version 1.17 released
8028 =====================
8030 2001-04-17  Werner LEMBERG  <wl@gnu.org>
8032         * tmac/Makefile.sub (install-data): mdoc.local-s is in current
8033         directory, not in $(srcdir).
8035 2001-04-16  Werner LEMBERG  <wl@gnu.org>
8037         * doc/groff.texinfo: More info on conditionals.
8039 2001-04-15  Werner LEMBERG  <wl@gnu.org>
8041         * doc/groff.texinfo: Added some info about groff internals.
8043         * src/roff/troff/node.cc (make_glyph_node): Emit warning message
8044         about missing special character only if the name is non-null.
8046 2001-04-14  Werner LEMBERG  <wl@gnu.org>
8048         Removing the grohtml-old device driver which is now obsolete.
8050         * src/devices/grohtml-old/*: Removed.
8051         * font/devhtml-old/*: Removed.
8052         * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
8053         Remove comments.
8054         * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
8055         * test-groff (PATH): Updated.
8056         * tmac/Makefile.sub (NORMALFILES): Updated.
8057         * tmac/an-old.tmac: Remove special code for html-old device.
8058         Replace `html-or-html-old' register with `an-html'.
8059         * tmac/eqnrc: Updated.
8060         * tmac/html-old.tmac: Removed.
8061         * tmac/troffrc, tmac/troffrc-end: Updated.
8062         * tmac/www.tmac: Remove special code for html-old device.
8063         Replace `html-or-html-old' register with `www-html'.
8065         * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
8066         src/libs/libgroff/htmlindicate.cc (graphic_end),
8067         include/htmlindicate.h, src/preproc/grn/*.cc,
8068         src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
8069         single argument for consistency with rest of source code.
8071         * aclocal.m4, tmac/an-old.tmac: Fix copyright.
8073 2001-04-13  Ruslan Ermilov  <ru@FreeBSD.org>
8075         * src/roff/troff/troff.man: Fixing typos.
8077 2001-04-13  Werner LEMBERG  <wl@gnu.org>
8079         * doc/pic.ms: Fixing many font switches.
8080         * doc/groff.texinfo: Fixes, additions.
8081         * MORE.STUFF: Updated.
8083 2001-04-12  Gaius Mulley  <gaius@glam.ac.uk>
8085         * src/devices/grohtml/grohtml.man: Updated manual page regarding
8086         simple anchor.
8087         * src/preproc/html/pre-html.cc (createImage): Fixed right hand
8088         cropping of images.
8089         (removeTempFiles): New function to tidy up temporary files.
8090         * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
8091         Many fixes to do with the new inline suppress node and image regions
8092         are much tighter.
8093         * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
8094         (generate_img_src): New function.
8095         (html_printer::do_auto_image): Utilizes it.
8096         (do_heading, do_title): Include inline images within their contents.
8097         (html_printer::begin_page): Tidied up comments that are issued to
8098         the html output file.
8099         (html_printer::do_fill): Fixed so that `.nf' works with fonts other
8100         than courier.
8101         (text_glob::is_br): New method used by do_heading.
8102         * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
8103         equivalent diversion.
8104         * src/include/html-strings.h: Altered image tags to reflect the
8105         inline image node.
8106         * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
8107         parameter.
8108         * src/preproc/eqn/main.cc: Will suppress generation of image tags if
8109         it is already inside a pic image.  Only emit tags if the argument
8110         `-Tps:html' is present.
8111         * src/preproc/tbl/main.cc: Changes to reflect additional
8112         `html_end_suppress' parameter.
8113         * src/roff/troff/env.cc: Only emit eol tag if a node has been
8114         emitted since the last eol tag was written.
8115         * src/roff/troff/env.h: New boolean `emitted_node'.
8116         * src/roff/troff/input.cc (do_suppress): Handles extra suppress
8117         nodes \O3, \O4, \O5.  No longer use `output_low_mark_miny'.
8118         * src/roff/troff/node.cc (check_charinfo): New method. 
8119         (troff_output_file::determine_line_limits): Alterations to limit
8120         checking.
8121         * tmac/www.tmac: Changes to reflect new suppress nodes.
8122           
8123 2001-04-12  Bruno Haible  <haible@clisp.cons.org>
8125         * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
8126         Escape the html_glyph in the buffer.
8127         (str_translate_to_html): Output the unescaped escaped_char.
8128         * src/devices/grohtml/html-text.cc (issue_table_begin): Set
8129         `frame=void', not `frame=none'.  Add `border=0'.
8131 2001-04-12  Werner LEMBERG  <wl@gnu.org>
8133         * PROBLEMS: Add some words on how to avoid wrapper macros.
8135 2001-04-11  Blake McBride  <blake@florida-software.com>
8137         * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
8139 2001-04-11  Werner LEMBERG  <wl@gnu.org>
8141         * font/devlbp/Makefile.sub (CLEANADD): Set it.
8142         * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
8143         * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
8144         * Makefile.sub (DISTCLEANFILES): Here.
8146         * libs/libgroff/new.cc: Include `nonposix.h'.
8147         * win32-diffs: Updated.
8149 2001-04-10  Ruslan Ermilov  <ru@FreeBSD.org>
8151         Added skeleton macro for defunct macros.
8153         Updated documentation.
8155         When inside displays, an empty input line warning should be
8156         suppressed.  If another macro call is put inside a display,
8157         all subsequent empty lines found in that display caused a
8158         warning to be emitted.
8160         * tmac/doc.tmac (doc-defunct-macro): New macro.
8161         (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
8162         (doc-restore-global-vars): Fixed typo.
8163         (doc-empty-line): Check the `doc-display-depth' register to
8164         determine whether we are inside display or not.
8166         * tmac/doc-common: Removed `Or' and `Sf' registers.
8167         Moved obsolete `Ds' macro to doc.tmac.
8169         * tmac/groff_mdoc.man: Bump document date.
8170         Document `.Vt' under ``Variable Types''.
8171         Removed documentation for obsolete `.Or' macro.
8173 2001-04-10  Werner LEMBERG  <wl@gnu.org>
8175         * NEWS: Updated.
8176         * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
8178 2001-04-10  Bruno Haible  <haible@clisp.cons.org>
8180         * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
8181         (usage): Add stream argument. Don't exit.
8182         * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
8183         Write --version output to stdout, not stderr.
8184         (usage): Add stream argument. Don't exit.
8185         * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
8186         (usage): Add stream argument. Don't exit.
8187         * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
8188         constants.
8189         (usage): Add stream argument. Don't exit.
8190         (main): Write --help output to stdout, not stderr.
8191         * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
8192         (usage): Add stream argument. Don't exit.
8193         * src/devices/grops/ps.cc (main): Accept --help and --version.
8194         (usage): Add stream argument. Don't exit.
8195         * src/devices/grotty/tty.cc (main): Accept --help and --version.
8196         (usage): Add stream argument. Don't exit.
8197         * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
8198         (main): Accept --help and --version.
8199         * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
8200         (main): Accept --help and --version.
8201         * src/preproc/html/pre-html.cc (usage): Add stream argument.
8202         (scanArguments): Accept --help and --version.
8203         * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
8204         (main): Accept --help and --version.
8205         * src/preproc/refer/refer.cc (main): Accept --help and --version.
8206         (usage): Add stream argument. Don't exit.
8207         * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
8208         exit.
8209         (main): Accept --help and --version.
8210         * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
8211         (main): Accept --help and --version.
8212         * src/roff/groff/groff.cc (main): Accept --help and --version.
8213         (synopsis): Add stream argument.
8214         (help): Write --help output to stdout, not stderr.
8215         (usage): Add stream argument. Don't exit.
8216         * src/roff/grog/grog.pl: Accept --help and --version.
8217         (help): New sub.
8218         * src/roff/grog/grog.sh: Accept --help and --version.
8219         * src/roff/nroff/nroff.sh: Accept --help and --version.
8220         * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
8221         (usage): Add stream argument. Don't exit.
8222         (main): Accept --help and --version.
8223         * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
8224         (usage): New function with stream argument, doesn't exit.
8225         * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
8226         (usage): New function with stream argument, doesn't exit.
8227         * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
8228         (usage): Add stream argument. Don't exit.
8229         * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
8230         (main): Accept --help and --version.
8231         * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
8232         exit.
8233         (main): Accept --help and --version.
8234         * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
8235         (main): Accept --help and --version.
8236         * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
8237         (usage): Add stream argument. Don't exit.
8239 2001-04-10  Ruslan Ermilov  <ru@freebsd.org>
8241         Fix indentation in SYNOPSIS.
8243         Updated to include changes of latest BSD mdoc version (basically,
8244         the only change is that `.Fn' and `.Fc' put a final semicolon after
8245         a function declaration in the SYNOPSIS section).
8247         * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
8248         (doc-in-synopsis-section): New variable.  Updated all related
8249         functions.
8250         (doc-indent-synopsis-active): New register.
8251         (Nd, Fn, Fo): Use it.
8252         (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
8253         `.Cd' with long argument line produces indented wrapped lines. 
8254         Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
8255         undesirable line break to be output.
8256         (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
8257         `.rs'.
8258         (Fn, Fc): Add final `;' to output.
8259         (doc-save-global-vars, doc-restore-global-vars): Updated.
8260         * tmac/doc-common: Remove `Ex' register.
8261         Updated.
8262         * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
8263         copyright.
8265 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
8267         * tmac/doc.tmac (Cd): Simplify code.
8268         * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
8270 2001-04-06  Werner LEMBERG  <wl@gnu.org>
8272         Implement continuous underlining for nroff mode.  To do that, a new
8273         request in the ditroff language has been added: `x u N' (N is 0
8274         or 1).
8276         \X and \Y are now transparent to end-of-sentence recognition.
8278         * src/include/printer.h (printer): Add `type' parameter to `special'
8279         method.
8280         * src/libs/libdriver/printer.cc (printer::special): Updated.
8281         * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
8283         * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
8284         specials of type `p'.
8285         * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
8286         * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
8287         * src/devices/grops/ps.cc (ps_printer::special): Ditto.
8288         * src/devices/grotty/tty.cc: Add new enum CU_MODE.
8289         (glyph::order): New method.
8290         (tty_printer::add_char): Use it.
8291         (tty_printer::special): New method.
8292         (tty_printer::end_page): Implement it.
8294         * src/roff/troff/node.h (special_node): Add `no_init_string' member.
8295         * src/roff/troff/node.cc (special_node::special_node): Add parameter
8296         to set `no_init_string'.
8297         (special_node::tprint_start): Use it.
8298         (special_node::same, special_node::copy): Updated.
8299         (special_node::ends_sentence): New method.
8300         (troff_output_file::start_special): Add parameter to include
8301         inititialization of special conditionally.
8303         * src/roff/troff/env.h (environment): New member `underline_spaces'.
8304         * src/roff/troff/env.cc (do_underline_special): New function.
8305         (environment::set_font): Use it.
8306         (do_underline): Use it.  This was `underline()'.
8307         (underline): Call `do_underline()'.
8308         (continuous_underline): New function which calls `do_underline()'.
8309         (environment::newline): Use `do_underline_special()'.
8310         (init_env_requests): Updated.
8312         * NEWS, man/troff_out.man: Updated.
8314 2001-04-06  Bruno Haible  <haible@clisp.cons.org>
8316         * font/devutf8/R.proto: Fix code of 'shc'.
8318 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
8320         Many fixes.  Diag lists can now be nested also; additionally,
8321         `-compact' and `-offset' are supported.
8323         * tmac/doc.tmac (doc-have-indent): Replaced with ...
8324         (doc-list-have-indent-stackXXX): A new register stack.
8325         (doc-have-diag-list): Removed.
8326         (Bl): Use `doc-list-have-indent-stackXXX'.
8327         (El): Updated.
8328         (doc-diag-list): Use `doc-compact-list-stackXXX'.
8329         (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
8330         (doc-set-vertical-and-indent): Ditto.
8331         (doc-next-list-depth): Removed.
8332         (doc-increment-list-stack): Updated.
8333         (doc-decrement-list-stack): Use `doc-list-depth' instead of
8334         `doc-next-list-depth'.
8335         (doc-end-list, doc-end-column-list): Don't use
8336         `doc-increment-list-stack'.
8337         (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
8338         (doc-save-global-vars, doc-restore-global-vars): Updated.
8339         * tmac/doc-common: Updated.
8340         * tmac/groff_mdoc.man: Updated.
8341         * NEWS: Fix typo.
8343 2001-04-02  Werner LEMBERG  <wl@gnu.org>
8345         * src/devices/grotty/grotty.man: Fix grammatical error.
8347 2001-03-30  Ruslan Ermilov  <ru@freebsd.org>
8349         Remove .Ld from mdoc package; replace it with special handling of
8350         `...'.
8352         * tmac/doc-common: Remove `Ld' register.
8353         Uncomment `doc-volume-ds-*' strings.
8354         Remove `doc-operating-system-default'.
8355         (Os): Updated.
8356         * tmac/doc-syms (Ld): Removed.
8357         * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
8358         `...' specially.
8359         * NEWS: Updated.
8361         * tmac/groff_mdoc.man: Many fixes and updates.
8363 2001-03-29  Werner LEMBERG  <wl@gnu.org>
8365         * tmac/troffrc-end: Protect data with `.do'.  Reported by T. Kurt
8366         Bond <tkb@tkb.mpl.com>.
8367         * tmac/www.tmac: Save compatibility mode.
8369 2001-03-28  Ruslan Ermilov  <ru@freebsd.org>
8371         * tmac/groff_mdoc.man: Many fixes.
8373 2001-03-28  Werner LEMBERG  <wl@gnu.org>
8375         * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
8376         isn't recognized.
8378 2001-03-27  Werner LEMBERG  <wl@gnu.org>
8380         * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
8381         diversion.  This fixes overlong tags.
8383 2001-03-26  Werner LEMBERG  <wl@gnu.org>
8385         * doc/groff.texinfo: Fixed and improved documentation of fonts.
8386         * tmac/doc-syms: Fix error messages.
8387         * tmac/an-old.tmac: Remove incorrect double backslashes.
8389 2001-03-24  Ruslan Ermilov  <ru@freebsd.org>
8391         * tmac/Makefile.sub: Strip mdoc.local also
8392         * tmac/strip.sed: Fixed.
8394 2001-03-24  Werner LEMBERG  <wl@gnu.org>
8396         * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
8397         selecting the font size.
8398         * tmac/groff_mdoc.man, NEWS: Document it.
8400 2001-03-23  Werner LEMBERG  <wl@gnu.org>
8402         * src/roff/troff/div.cc (save_vertical_space): Add default argument
8403         to `sv' request.
8404         * src/roff/troff/env.cc (family_change): Make `.fam' accept no
8405         argument to restore previous font family.
8406         * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
8408         * doc/groff.texinfo: More fixes and additions (mainly for font
8409         manipulating commands).
8411         * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
8412         * tmac/groff_mdoc.man: This.  The quick reference has been removed.
8413         * tmac/Makefile.sub, NEWS: Updated.
8415 2001-03-23  Werner LEMBERG  <wl@gnu.org>
8417         Replaced mdoc implementation.  The new version is `state of the
8418         art', using almost all new features of groff 1.17 -- it won't run
8419         with older versions.
8421         * tmac/doc.tmac: Completely rewritten.
8422         * tmac/doc-common: Ditto.
8423         * tmac/doc-nroff: Ditto.
8424         * tmac/doc-ditroff: Ditto.
8425         * tmac/doc-syms: Ditto.
8426         * tmac/mdoc.local: New file.
8427         * tmac/groff_mdoc.samples.man: Replaced with ...
8428         * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
8429         * tmac/strip.sed: Updated.
8430         * tmac/Makefile.sub: Updated.
8431         * INSTALL: Updated.
8433         * tmac/groff_man.man: Add `man.local' to the FILES section.
8435 2001-03-22  Werner LEMBERG  <wl@gnu.org>
8437         * doc/groff.texinfo: Added many @noindent.
8438         Replaced @end_Example -> @endExample.
8439         Added info whether registers are r/o.
8440         Many other additions and fixes.
8442 2001-03-21  Werner LEMBERG  <wl@gnu.org>
8444         * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
8445         in makeinfo of texinfo 4.0) to be used in @Def* macros.
8446         Improved @Def* macros: Now the exact syntax of request, register,
8447         and escapes is shown.
8448         Added macros for parentheses and brackets to be used in @Def*.
8449         Many fixes and improvements of the documentation.
8451 2001-03-20  Werner LEMBERG  <wl@gnu.org>
8453         * doc/groff.texinfo: Added new index: `st' (for strings).
8454         Added macros @Defstr(x).
8455         Added macro @Example (adding @group).
8456         Other minor improvements.
8458 2001-03-19  Werner LEMBERG  <wl@gnu.org>
8460         * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
8461         `rq' for requests.  `fn' is no longer used.
8462         Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
8463         Removed @Deffn(x).
8465         * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
8466         number with name of man page.
8468 2001-03-19  Larry Kollar  <kollar@alltel.net>
8470         * doc/groff.texinfo: Complete revision.  Added many @Deffn to gain
8471         consistency.
8473 2001-03-19  Werner LEMBERG  <wl@gnu.org>
8475         * man/groff_font.man: Document `prepro', `postpro', and `print'.
8476         * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
8477         * src/devices/grohtml/grohtml.man: Fixing typos.
8479 2001-03-19  Gaius Mulley  <gaius@glam.ac.uk>
8481         * tmac/s.tmac (@IP): Pass `.ip' html tag.
8482         * tmac/groff_mwww.man: Remove .LINE macro
8483         * tmac/www.tmac (LINE): Add `.ti'.
8485         * src/devices/grohtml/post-html.cc (html_printer): New member
8486         `indent'.
8487         (html_printer::emit_raw): Use it.
8488         (html_printer::do_linelength): Ditto.
8489         (html_printer::do_pageoffset): Ditto.
8490         (html_printer::do_indentation): Ditto.
8491         (html_printer::do_tempindent): Ditto.
8492         (html_printer::do_break): Ditto.
8493         (html_printer::begin_page): Ditto.
8494         (html_printer::do_indentedparagraph): New function.
8495         (html_printer::troff_tag): Handle `.ip'.
8496         * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
8497         Add `<td width=...>' handling.
8498         (html_text::do_table): Add parameter.
8499         (html_text::do_indent): Updated.
8500         * src/devices/groohtml/html-text.h: Updated.
8502 2001-03-16  Gaius Mulley  <gaius@glam.ac.uk>
8504         Introduced simple html tables to implement indentation.
8506         * src/devices/grohtml/html.h (word, word_list): New structures.
8507         (simple_output): Use it.
8508         * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
8509         (html_printer): Improve indentation handling.
8510         (html_printer::emit_raw): Set `in_table' element.  Handle
8511         indentation if set.
8512         (html_printer::write_header): Move conditional downwards.
8513         Don't allow whitespace in tags.
8514         (html_printer::do_linelength): Handle line length and indentation
8515         conditionally.
8516         (html_printer::do_pageoffset): Handle indentation conditionally.
8517         (html_printer::do_indentation): Ditto.
8518         (html_printer::do_tempindent): New function member.
8519         (html_printer::do_fill): Take care of indentation.
8520         (html_printer::do_flush): Finish table.
8521         (html_printer::do_links): Ditto.
8522         (html_printer::do_break): New function for handling `.br' and `.ti'.
8523         (html_printer::troff_tag): Use it.
8524         Handle `.ti'.
8525         (html_printer::flush_globs): Fix.
8526         (html_printer::flush_page): Finish table.
8527         (html_printer::html_printer): Fix error message.  Set up
8528         `linelength'.
8529         (html_printer::add_to_sbuf): Remove special handling of character
8530         code 255.
8531         (to_unicode): Remove `stop()'.
8532         (html_printer::write_title): Cleanup.
8533         (html_printer::begin_page): Use `put_string()'.  Handle indentation.
8534         (html_printer::~html_printer): Flush text and end the line.
8535         Use `put_string()'.
8536         * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
8537         * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
8538         emission of tags.
8539         (html_text::start_tag): Disable newlines.
8540         (html_text::table_is_void): New function.
8541         (html_text::issue_table_begin): Ditto.
8542         (html_text::issue_table_end): Ditto.
8543         (html_text::push_para): Better table handling.
8544         (html_text::do_indent): New function.
8545         (html_text::do_table): Ditto.
8546         (html_text::done_table): Ditto.
8547         (html_text::do_tt): Handle PRE_TAG.
8548         (html_text::is_in_table): New function.
8549         (html_text::check_emit_text): Handle tables.
8550         (html_text::do_emittext): Use `nl()'.
8551         (html_text::do_para): Handle table.
8552         (html_text::remove_def): New function.
8553         * src/devices/grohtml/output.cc (word, word_list): Implement
8554         methods.
8555         (simple_output::end_line): Flush last word.
8556         (simple_output::simple_comment): Ditto.
8557         (simple_output::begin_comment): Recoded.
8558         (simple_output::end_comment): Ditto.
8559         (simple_output::comment_arg): Removed.
8560         (simple_output::check_newline): Improve test and flush last word.
8561         (simple_output::space_or_newline): Improved.
8562         (simple_output::write_newline): Replaced with...
8563         (simple_output::nl): This.
8564         (simple_output::put_raw_char): Flush last word.
8565         (simple_output::check_space): Removed.
8566         (simple_output::put_translated_string): Ditto.
8567         (simple_output::put_string): Simplified.
8568         (simple_output::put_number): Updated.
8569         (simple_output::put_float): Ditto.
8570         (simple_output::put_symbol): Removed.
8571         (simple_output::enable_newlines): Add `check_newline()'.
8572         (simple_output::flush_last_word): New function.
8574         * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
8575         * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
8577         * tmac/s.tmac (@PP, @IP): Add html conditional code.
8578         * tmac/an-old.tmac (TP): Ditto.
8580 2001-03-09  Ruslan Ermilov  <ru@freebsd.org>
8582         * mdate.sh: Make it POSIX compliant.
8584 2001-03-09  Werner LEMBERG  <wl@gnu.org>
8586         Added the `return' request to end a macro immediately.  It simply
8587         pops iterators from the input stack until a macro iterator is found.
8589         * src/roff/troff/input.cc (input_iterator::is_macro,
8590         macro_iterator::is_macro): New member.
8591         (input_return_boundary): New class to signal an immediate return
8592         to while_request().
8593         (input_stack::add_return_boundary, input_stack::is_return_boundary):
8594         New functions.
8595         (input_stack::clear): Use it.
8596         (input_stack::pop_macro): New function.
8597         (while_request): Use `is_return_boundary()'.
8598         (return_macro_request): New function.
8599         (init_input_requests): Use it.
8601         * src/roff/troff/TODO: Updated.
8602         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8604 2001-03-08  Werner LEMBERG  <wl@gnu.org>
8606         * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
8607         cleanup.
8609 2001-03-07  Werner LEMBERG  <wl@gnu.org>
8611         Make `\B' more rigid.
8613         * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
8614         parameter.
8615         (get_number_rigidly): New function.
8616         * src/roff/troff/input.cc (do_expr_test): Use it.
8617         * src/roff/troff/token.h: Updated.
8619         * src/roff/troff/request.h: Fix typo (init_html_request ->
8620         init_markup_request).
8622 2001-03-04  Gaius Mulley  <gaius@glam.ac.uk>
8624         Fixed grohtml handling of any named glyph for glyph indexes < 0x80. 
8625         Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
8626         are now `.begin', `.end', `.image'.
8628         * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
8629         (html_printer::add_to_sbuf): Changing type of `code' parameter.
8630         Use add_char_to_sbuf().
8631         (to_unicode): New function.
8632         (char_translate_to_html): Changing type of `ch' parameter.
8633         Use `to_unicode()'.
8634         (html_printer::~html_printer): Comment out doctype string.
8635         * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
8636         instead of `.html-end'.
8637         (write_start_image): Use `.begin' and `.image' instead of
8638         `.html-begin' and `.html-image'.
8639         * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
8640         (html_begin): Renamed to ...
8641         (begin): This.
8642         (html_end): Renamed to ...
8643         (end): This.
8644         (html_image): Renamed to ...
8645         (image): This.
8646         (init_html_requests): Renamed to ...
8647         (init_markup_requests): This.
8648         * tmac/www.tmac: Updated.
8650 2001-02-28  Bram  <bram@avontuur.org>
8652         * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
8653         constructor.
8655 2001-02-26  David Leonard  <david.leonard@csee.uq.edu.au>
8657         * doc/meref.me: Fixing some typos.
8659 2001-02-16  Werner LEMBERG  <wl@gnu.org>
8661         * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
8662         method.  Return `HYPHEN_MIDDLE' if it was `\:'.
8663         * src/roff/troff/node.h: Updated.
8665 2001-02-17  Ruslan Ermilov  <ru@FreeBSD.org>
8667         * tmac/groff_tmac.man: Fix typo.
8669 2001-02-16  Werner LEMBERG  <wl@gnu.org>
8671         Fixing a bug which prevented proper end-of-sentence recognition
8672         between an `unformatted' box and the following text.  As a
8673         consequence, vertical line distances are no longer preserved in
8674         boxes after a call to `.unformat' -- because boxes aren't
8675         line-oriented (contrary to diversions), this doesn't make sense
8676         anyway.
8678         * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
8679         value.
8680         (vertical_size_node::set_unformat_flag): New method.
8681         * src/roff/troff/node.hh: Updated.
8682         * src/roff/troff/input.cc (word_space_node::reread,
8683         hmotion_node::reread): Reset `unformat' flag after usage.
8684         (unformat_macro): Append only if `set_unformat_flag()' returns
8685         non-zero.
8686         * src/roff/troff/troff.man: Updated.
8688 2001-02-15  Werner LEMBERG  <wl@gnu.org>
8690         * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
8691         documentation of `asciify' and `unformat' requests.
8693 2001-02-13  Werner LEMBERG  <wl@gnu.org>
8695         Redesigned the `unformat' request.  It is no longer connected with
8696         `asciify' but rather uses new `reread()' methods if the `unformat'
8697         flag is set.  Additionally, the handling of space characters after
8698         unformatting has been fixed so that they retain their width.
8700         * src/roff/troff/node.h (width_list): New structure to store
8701         original widths of spaces.
8702         (node): Added `unformat' member.
8703         Replaced `num_spaces' variable with `orig_width' list.
8704         * src/roff/troff/node.cc (*node::asciify,
8705         asciify_reverse_node_list): Removed `unformat_only' flag and related
8706         code.
8707         (word_space_node::asciify, word_space_node::word_space_node): Use
8708         `orig_width'.
8709         (word_space_node::~word_space_node): New destructor.
8710         (word_space_node::copy): Updated to handle `orig_width'.
8711         (hmotion_node::copy, unbreakable_space_node::copy): Updated.
8712         (*node::merge_space): Update `orig_width' list if necessary.
8713         (*node::set_unformat_flag): New methods to set the `unformat' flag.
8714         * src/roff/troff/enc.cc (environment::space_newline): Use
8715         `width_list'.
8716         (environment::space): Added method to handle space width and
8717         sentence space width as parameters.  Use `width_list'.
8718         (environment::make_tab_node): Updated.
8719         * src/roff/troff/env.h: Updated.
8720         * src/roff/troff/input.cc (word_space_node::reread,
8721         unbreakable_space_node::reread, hmotion_node::reread): New methods
8722         to handle nodes specially if `unformat' flag is set.
8723         (do_asciify_macro): Renamed back to ...
8724         (asciify_macro): This.
8725         (unformat_macro): New implementation to simply set the `unformat'
8726         flag.
8728         * MORE.STUFF: Added more info about deroff.
8730 2001-02-08  Werner LEMBERG  <wl@gnu.org>
8732         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
8733         space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
8734         and `add_self()' methods to avoid hyphenation.  For example, the
8735         hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
8736         soft hyphen after `foo'.  Now the hyphen list is correctly
8737         `foo<ignore><ignore>bar'.
8739 2001-02-05  Yoshiteru Kageyama  <yt-kage@cb3.so-net.ne.jp>
8741         * tmac/groff_tmac.man: Fix `BIR' macro.
8743 2001-02-04  Werner LEMBERG  <wl@gnu.org>
8745         A new escape sequence `\:', inserting a zero-width break point.
8747         * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
8748         * src/roff/troff/input.cc (get_copy, token::next, asciify):
8749         Implement it.
8750         * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
8751         method.
8752         (space_node): Add `was_escape_colon' member.  Add `is_escape_colon()'
8753         and `asciify()' methods.
8754         * src/roff/troff/node.cc (space_node::space_node): Updated.
8755         (space_node::asciify): Handle `was_escape_colon'.
8756         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8758         Handle `\~' similar to other comparable requests.
8760         * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
8761         label.
8762         (token::next): Move creation of an unbreakable_space_node to...
8763         (token::add_to_node_list): Here.
8765         Fix a bug which sometimes prevented hyphenation of words connected
8766         with `\~' or `\ ' (and other escape sequences handled as
8767         TOKEN_NODE).  This also fixes a hyphenation problem with boxes
8768         (after a call to the `unformat' request).
8770         * src/roff/troff/env.h (environment::possibly_break_line,
8771         environment::hyphenate_line): Introducing `start_here' parameter.
8772         * src/roff/troff/env.cc (environment::space_newline,
8773         environment::space): Use it.
8774         (environment::possibly_break_line, environment::hyphenate_line):
8775         Implement it.
8776         * src/roff/troff/input.cc (process_input_stack): Use it.
8777         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
8778         space_char_hmotion_node, overstrike_node): Add
8779         `get_hyphenation_type()' method.
8780         * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
8781         if `unformat_only' is active.
8783 2001-01-30  Werner LEMBERG  <wl@gnu.org>
8785         Implemented new read-only number register `.linetabs' which
8786         returns 1 if in line-tabs mode, 0 otherwise.
8788         * src/roff/troff/env.h (environment): Add get_line_tabs() member.
8789         * src/roff/troff/env.cc (get_line_tabs): New function.
8790         (init_env_requests): Use it.
8791         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8793         * VERSION, REVISION: Changing to 1.17.0.
8795 2001-01-28  Werner LEMBERG  <wl@gnu.org>
8797         Fixed a bug which prevented hyphenation of words which are finished
8798         with `\)'.
8800         * src/roff/troff/token.h (token): Add enum type
8801         `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
8802         * src/roff/troff/input.cc (token::next, token::description,
8803         get_line_arg, token::add_to_node_list, token::process): Use it.
8805 2001-01-27  Werner LEMBERG  <wl@gnu.org>
8807         * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
8808         * src/roff/troff/div.cc (do_divert): Use it.
8810         * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
8812 2001-01-25  Werner LEMBERG  <wl@gnu.org>
8814         Adding the `linetabs' request.  If set, tab distances are not
8815         computed relative to the input line but relative to the output line.
8817         * src/roff/troff/env.h (environment): New member `line_tabs'.
8818         * src/roff/troff/env.cc (line_tabs_request): Implement request.
8819         (environment::environment, environment::copy): Updated.
8820         (environment::distance_to_next_tab): Use `line_tabs'.
8821         (init_env_requests): Register request.
8822         * src/roff/troff/troff.man, man/groff.man, NEWS: Document it.  Other
8823         fixes.
8825 2001-01-24  Werner LEMBERG  <wl@gnu.org>
8827         Introducing a new read-only register `.int' which is set to a
8828         positive value if the last output line is interrupted (i.e., if it
8829         contains `\c').
8831         * src/roff/troff/env.cc (init_env_requests): Add it.
8832         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8834 2001-01-23  Gaius Mulley  <gaius@glam.ac.uk>
8836         * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
8837         * src/preproc/html/pre-html.cc (findPrefix): New function which
8838         generates the troff executable name via the system prefix.
8839         * src/preproc/eqn/main.cc: Modified warning message.
8841 2001-01-23  Werner LEMBERG  <wl@gnu.org>
8843         troff's `box' and `boxa' requests didn't preserve temporary
8844         indentation.
8846         * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
8847         `saved_target_text_length' members.
8848         * src/roff/troff/div.cc (do_divert): Use them.
8850         Tabs (but not yet leaders and fields) are now handled correctly by
8851         `asciify' request.
8853         * node.h (hmotion_node): Add field `was_tab'.
8854         * env.cc (environment::make_tab_node): Set it.
8855         * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
8857         Added new request `unformat' which will, contrary to `asciify',
8858         preserve font information after unformatting (i.e., only nodes
8859         dealing with horizontal space are converted back to input
8860         characters).
8862         * input.cc (asciify_macro): Renamed to ...
8863         (do_asciify_macro): this, having a new parameter `unformat_only'.
8864         (asciify_macro, unformat_macro): New; using do_asciify_macro.
8865         (init_input_requests): Added `unformat'.
8866         * node.cc (*_node::asciify), asciify_reverse_node_list: Added
8867         parameter to control asciification process.
8868         * node.h (*_node::asciify): Ditto.
8869         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8871 2001-01-20  Werner LEMBERG  <wl@gnu.org>
8873         * doc/groff.texinfo: Minor improvement of `.in' documentation.
8875 2001-01-18  Werner LEMBERG  <wl@gnu.org>
8877         * tmac/ps.tmac: Remove call of psold.tmac.
8878         * tmac/psold.tmac: Comment updated.
8879         * tmac/psnew.tmac: Removed since no longer needed.
8880         * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
8882         * font/devutf8/R.proto: Adding `shc' glyph.
8883         * font/devutf8/NOTES: Updated.
8885         * test-groff: Updated.
8887 2001-01-15  Gaius Mulley  <gaius@glam.ac.uk>
8889         First cut of the new html device driver.  Changes to pre-html and
8890         the new grohtml are too numerous to be documented here.
8892         Stuff related to `html' has been renamed to `html-old' and `html2'
8893         stuff has been renamed to `html' (including directories).  The new
8894         html device driver is therefore invoked as `-Thtml'.
8896         Added new `\O' escape to suppress output (needed by html driver).
8898         Added functions and code to pass info about input-level commands
8899         (`.in', `.fl', etc.) to html driver.
8901         Three new functions (.html-begin, .html-end, and .html-image) for
8902         better html handling: `html-begin' will execute the remaining line
8903         if at the outermost nesting level, increasing an internal counter.
8904         `html-end' does the same but decreases the internal counter.
8905         `html_image' puts its arguments into a special node (suppress_node)
8906         to define an image region.
8908         The `output' request has been removed.
8910         * tmac/html-tags.tmac: Removed.
8911         * tmac/arkup.tmac: Updated and renamed to ...
8912         * tmac/www.tmac: New file.
8913         * tmac/markup.tmac Updated and renamed to ...
8914         * tmac/mwww.tmac: New file.
8915         * tmac/Makefile.sub: Updated.
8916         * tmac/an-old.tmac: Updated.
8917         * tmac/eqnrc: Updated.
8918         * tmac/groff_man.man
8919         * tmac/groff_markup.man: Updated and renamed to ...
8920         * tmac/groff_mwww.man: New file.
8921         * tmac/groff_tmac.man: Updated.
8922         * tmac/html-old.tmac: Updated and Renamed from html.tmac.
8923         * tmac/html.tmac: Updated and renamed from html2.tmac.
8924         * tmac/pspic.tmac: Updated html support.
8925         * tmac/s.tmac: Added html output support.
8926         * tmac/troffrc, tmac/troffrc-end: Updated.
8928         * Makefile.in, doc/Makefile: Updated.
8929         * doc/groff.texinfo: Added info about new `\O' escape.
8930         * doc/homepage.ms: Use `MAILTO' macro.
8932         * font/devhtml/DESC.proto: Add `C' font.
8933         * font/devhtml/Makefile.sub: Updated.
8934         * font/devhtml/R.proto: Minor fixes.
8935         * font/devhtml-old/Makefile.sub: Updated.
8937         * src/devices/grohtml-old/Makefile.sub: Updated.
8939         * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
8940         method.
8941         * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
8942         graphic_start): Add `inline' parameter.  Update.
8943         (html_end_suppress, graphic_end): Update.
8945         * src/include/html-strings.h: New file.
8946         * src/include/htmlindicate.h: Comments updated.
8947         * src/include/printer.h: Updated.
8949         * src/preproc/eqn/main.cc (do_file, main): Updated.
8950         * src/preproc/pic/troff.cc (troff_output::start_picture,
8951         troff_output::finish_picture): Updated.
8952         * src/preproc/tbl/main.cc (process_input_file): Updated.
8954         * src/roff/groff/groff.cc (main): Updated.
8955         Pass device arguments to predrivers also.
8956         Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
8957         * src/roff/troff/env.h (environment): Updated.
8958         New elements `need_eol' and `ignore_next_eol' (for html output).
8959         * src/roff/troff/env.cc (environment::environment): Add initializers
8960         for `need_eol' and `ignore_next_eol'.
8961         (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
8962         functions.
8963         (point_size, fill, no_fill, center, right_justify, line_length,
8964         indent, temporary_indent, break_request, handle_tab): Use
8965         `add_html_tag()'.
8966         (set_tabs): Use `add_html_tag_tabs()'.
8967         (environment::add_html_tag): Updated.
8968         (environment::do_break): Updated.
8969         * src/roff/troff/div.cc (space_request, flush_output): Use
8970         `environment::add_html_tag()'.
8971         * src/roff/troff/input.cc: Updated.
8972         New variable `html_level' to indicate nested `html-begin' requests.
8973         (file_iterator::fill): Use `environment::add_html_tag_eol()'.
8974         (non_interpreted_char_node, token_node, non_interpreted_node): Add
8975         `force_tprint()' method.
8976         (token::next): Handle `\O'.
8977         (do_suppress): Implement it.
8978         (html_begin, html_end, html_image): New functions.
8979         (init_output_requests): Renamed to ...
8980         (init_html_requests): this.
8981         (main): Use it.
8982         (macro::append_str, macro::append_unsigned, macro::append_int): New
8983         methods.
8984         New variable `output_low_mark_miny' to limit minimal value of y.
8985         (reset_output_registers): Use it.
8986         (output_request): Removed.
8987         (get_output_registers): New function.
8988         * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
8989         (*_node): Added `force_tprint()' if necessary.
8990         (special_node): New elements `tf' and `get_tfont()'.
8991         (suppress_node): New class.
8992         * src/roff/troff/node.cc:
8993         New global variables `image_no' and `suppress_start_page'.
8994         (real_output_file): New method `is_on()'.
8995         (troff_output_file): New method `start_special(tfont)'.
8996         (troff_output_file::really_print_line): Use `tprint' conditionally.
8997         (real_output_file::print_line): Updated.
8998         (real_output_file::on): Updated.
8999         (*_node): Added `force_tprint()'.
9000         (special_node::special_node): Initializer updated.
9001         (special_node::same, special_node::copy, special_node::tprint_start):
9002         Updated.
9003         (get_reg_int, get_reg_str): New functions.
9004         (suppress_node::*): New methods.
9005         New global variables last_position, last_image_filename;
9006         (min): New inline function.
9007         * src/roff/troff/reg.h, src/roff/troff/request.h,
9008         src/roff/troff/troff.h: Updated.
9010 2001-01-13  Werner LEMBERG  <wl@gnu.org>
9012         * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
9013         documentation of `asciify' request.
9015 2001-01-12  Werner LEMBERG  <wl@gnu.org>
9017         * src/roff/troff/input.cc: Move definition of special characters
9018         like `ESCAPE_TILDE' to ...
9019         * src/roff/troff/input.h: New file.
9020         * src/roff/troff/Makefile.sub (HDRS): Add it.
9022         Extending the .asciify request to `unformat' space characters also.
9024         * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
9025         to count input space characters.
9026         Update constructors to take care of it.
9027         * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
9028         `ESCAPE_SPACE' instead of normal space.
9029         (word_space_node::asciify): New method.
9030         (unbreakable_space_node::asciify): New method.
9031         (word_space_node::merge_space): New method.
9032         * src/roff/troff/env.cc (environment::space_newline,
9033         environment::space): Add code to initialize `num_spaces' (using the
9034         constructor of `word_space_node').
9035         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
9036         Document it.
9038 2001-01-09  Werner LEMBERG  <wl@gnu.org>
9040         * man/groff_char.man: Use table header traps only conditionally.
9042 2001-01-09  Bjarni Ingi Gíslason  <bjarniig@hi.is>
9044         * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
9046 2001-01-08  Werner LEMBERG  <wl@gnu.org>
9048         Introducing the `box' and `boxa' requests which are similar to
9049         `di' resp. `da' but omitting a partially filled line (which is
9050         restored after ending the diversion).
9052         * src/roff/troff/div.h (diversion): Add elements to save partially
9053         filled line.
9054         * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
9055         partially filled line.
9056         (divert, divert_append): Updated.
9057         (box, box_append): New functions.
9058         (init_div_requests): Use them.
9059         * src/roff/troff/env.h (environment): do_divert() is now a friend.
9060         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9062         * doc/groff.texinfo: Fix documentation of `lf' request.
9064 2000-12-25  Werner LEMBERG  <wl@gnu.org>
9066         * src/roff/troff/troff.man, NEWS: Document `writem' request.
9068 2000-12-21  Werner LEMBERG  <wl@gnu.org>
9070         Ignore `ss' request if in compatibility mode.
9072         * src/roff/troff/input.cc: Make `compatible_flag' non-static.
9073         * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
9074         * src/roff/troff/env.cc (space_size): Use it.
9076         * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
9077         `ss' request in nroff mode.
9079         * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
9080         changes.
9082 2000-12-15  Ruslan Ermilov  <ru@FreeBSD.org>
9084         * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
9086 2000-12-13  Werner LEMBERG  <wl@gnu.org>
9088         * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
9089         * src/preproc/eqn/neqn.man: Small fixes and additions.
9091 2000-12-13  Ruslan Ermilov  <ru@FreeBSD.org>
9093         * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
9094         Fixing typo.
9096         * src/preproc/eqn/neqn.man: New file.
9098         * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
9099         negative' warning.
9101         * tmac/e.tmac: Add `T&' macro.
9102         Fix `indent cannot be negative' warning.
9103         * tmac/s.tmac: Fix `indent cannot be negative' warning.
9105 2000-12-07  Werner LEMBERG  <wl@gnu.org>
9107         * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
9109 2000-12-06  Werner LEMBERG  <wl@gnu.org>
9111         * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
9112         `alloca' symbol .
9114         * MORE.STUFF: Added info about deroff for djgpp.
9116         * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
9117         documentation of -rcR switch.
9119 2000-12-03  Werner LEMBERG  <wl@gnu.org>
9121         * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
9122         if -rcR=1 (which is now the default in nroff mode), a single, very
9123         long page is created instead of multiple pages: All `ne' and `wh'
9124         requests are put into conditionals; a new macro `an-end' is added to
9125         be called with `em'.
9127         Some other minor cleanups.
9129         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
9131 2000-12-02  Werner LEMBERG  <wl@gnu.org>
9133         Fixing a bug which prevented hyphenation in words followed
9134         immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
9136         * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
9137         Adding possibly_break_line().
9138         * src/roff/troff/env.h (environment): Make possibly_break_line()
9139         public.
9141         Make `\~' usable in .tr request.
9143         * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
9144         (token): Add stretchable_space().
9145         * src/roff/troff/input.cc (token::next, token::delimiter,
9146         token::description, process_input_stack, do_translate,
9147         add_to_node_list, token::process): Use it.
9148         * src/roff/troff/node.h (node): Add fourth parameter to add_char()
9149         for adjusting the space.
9150         * src/roff/troff/node.cc (node::add_char): Implement it.  Add code
9151         for stretchable space.
9152         * src/roff/troff/input.cc (token::add_to_node_list): Use it.
9153         (make_node): Add code for stretchable space.
9154         * src/roff/troff/env.cc (environment::add_char): Use it.
9155         * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
9156         (get_copy, token::next, transparent_translate, asciify): Use it.
9158         * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
9159         doc/groff.texinfo: Updated.
9160         * man/groff.man: Small reorderings.
9162 2000-11-23  Werner LEMBERG  <wl@gnu.org>
9164         * NEWS: Fixes.
9165         * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
9166         option.
9167         * src/roff/troff/input.cc (main): Add `config_macro_path' and
9168         `safer_macro_path' to -M option.
9169         * src/roff/troff/troff.man: Fixes.
9171 2000-11-22  Werner LEMBERG  <wl@gnu.org>
9173         Use safer path (except for config files) if -U isn't specified.  Add
9174         a special macro path (without home and current directory) for config
9175         files.  Add home directory to unsafe path for consistency.  Don't
9176         include the home directory in the font path.
9178         * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
9179         `macro_path'.
9180         * src/include/macropath.h: Add `config_macrp_path'.
9181         * src/libs/libgroff/fontfile.cc: Fix font path.
9182         * src/roff/troff/input.cc (process_startup_file): Use
9183         `config_macro_path'.
9184         (main): Select unsafe path if -U is given.
9186         * src/preproc/eqn/main.cc (main): Fixing search path for
9187         configuration file.
9188         * src/preproc/eqn/eqn.man: Updated.
9190         * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
9191         Updated.
9193         * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
9194         src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
9195         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
9196         src/devices/grotty/grotty.man: Updated.
9198         * Makefile.in: Fix comments.
9200 2000-11-17  Werner LEMBERG  <wl@gnu.org>
9202         * tmac/safer.tmac: Empty file added (again) for compatibility
9203         reasons.
9204         * tmac/Makefile.sub: Updated.
9206 2000-11-16  Werner LEMBERG  <wl@gnu.org>
9208         * src/devices/grodvi/dvi.cc (main),
9209         src/devices/grohtml2/post-html.cc (main),
9210         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
9211         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
9212         (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
9213         (main), src/preproc/html2/pre-html.cc (main),
9214         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
9215         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
9216         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
9217         (main), src/utils/hpftodit/hpftodit.cc (main),
9218         src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
9219         (main), src/utils/lookbib/lookbib.cc (main),
9220         src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
9221         (main): Use stdout for -v.
9222         * src/roff/groff/groff.cc (run_commands),
9223         src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
9224         to make direct printing to stdout possible.
9225         * src/roff/groff/pipeline.h: Updated.
9227         * src/utils/afmtodit/afmtodit.pl: Add -v switch.
9228         * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
9229         * src/utils/afmtodit/afmtodit.man: Updated.
9231         * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
9232         (version): New function.
9233         (usage): Updated.
9234         * src/utils/addftinfo/addftinfo.man: Updated.
9236         * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
9237         Fixing copyright dates.
9239         * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
9240         replacing it.
9242         * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
9243         version_string.
9245         * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
9247 2000-11-15  Werner LEMBERG  <wl@gnu.org>
9249         In all programs, make -v return immediately with exit status 0 to
9250         be compliant with the GNU standard.
9252         * src/devices/grodvi/dvi.cc (main),
9253         src/devices/grohtml2/post-html.cc (main),
9254         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
9255         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
9256         (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
9257         (main), src/preproc/html2/pre-html.cc (main),
9258         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
9259         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
9260         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
9261         (main): Implement it.
9262         * NEWS: Updated.
9264         * src/roff/groff/groff.cc (main): Add copyright notice.  Add refer
9265         and postprocessors to the -v option.
9267         * src/roff/grog/grog.pl: Implement -v.
9268         * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
9269         * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
9271         * src/roff/nroff/nroff.sh: Implement -v.
9272         * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
9273         * src/roff/nroff/nroff.man: Updated.
9274         
9275         * src/preproc/eqn/main.cc (main): Fix comment typo.
9277         * MORE.STUFF: Added info about djgpp port of grap.
9279 2000-11-14  Werner LEMBERG  <wl@gnu.org>
9281         * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
9282         mode (or rather, implemented non-compatibility mode).
9283         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
9285         * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
9286         replacing it -- we don't find gxditview otherwise.
9287         * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
9289         * src/preproc/pic/depend: Removed.  Unnecessary.
9291         Implemented dummy keyword `solid' in pic for compatibility with
9292         AT&T pic.
9294         * lex.cc (lookup_keyword): Added `solid'.
9295         * pic.y: Added SOLID with dummy rule.
9296         * pic.cc, pic_tab.h: Regenerated.
9297         * doc/pic.ms: Updated.
9299 2000-11-13  Werner LEMBERG  <wl@gnu.org>
9301         For security reasons, don't use the current directory but the home
9302         directory while searching and scanning troffrc and troffrc-end.
9303         Similarly, replace the current directory with the home directory
9304         in the font path.
9306         * Makefile.in (fontpath, tmacpath): Remove current directory.
9308         * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
9309         two parameters `add_home' and `add_current'.
9310         (search_path::~search_path, search_path::command_line_dir,
9311         search_path::open_file): Remove tests for `dirs' being zero.
9312         * src/include/searchpath.h: Adjust.
9313         * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
9314         `safer_macro_path'.
9315         * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
9317         * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
9318         * src/roff/troff/input.cc: Use `mac_path', initialized with
9319         `macro_path'.
9320         (process_startup_file): Set `mac_path' to `safer_macro_path'.
9321         * src/roff/troff/env.cc: Use `mac_path'.
9323         * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
9325         * NEWS, man/roff.man, src/roff/troff/troff.man,
9326         src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
9327         Updated.
9329 2000-11-12  Werner LEMBERG  <wl@gnu.org>
9331         * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
9333         * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
9334         * configure.in: Fix typo in comment.
9335         * configure: Regenerated.
9337         * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
9338         copyright dates.
9340 2000-11-08  Werner LEMBERG  <wl@gnu.org>
9342         Add system tmac directory (/usr/local/lib/groff/site-tmac).
9344         * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
9345         (uninstall_dirs): Add $(libdir), $(libprogramdir), and
9346         $(systemtmacdir).
9347         Use @libdir@.
9348         * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
9349         * tmac/Makefile.sub (install_data): Create
9350         $(systemtmacdir) and $(localtmacdir).
9351         (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
9352         * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
9353         NEWS, doc/groff.texinfo: Updated and minor fixes.
9355         * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
9356         * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
9357         $(systemtmacdir) since the wrapper files are platform-dependent.
9359 2000-11-01  Werner LEMBERG  <wl@gnu.org>
9361         * doc/groff.texinfo: Fix typo.
9363 2000-10-26  Werner LEMBERG  <wl@gnu.org>
9365         Convert macros `tmac.XXX' to `XXX.tmac'.  Special cases:
9366           tmac.doc.old -> doc-old.tmac
9367           tmac.an.old  -> an-old.tmac
9369         * tmac/tmac.*: Moved to ...
9370         * tmac/*.tmac: this.
9371         * tmac/man.local: Fix comment.
9372         * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
9373         tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. 
9374         Added some `FILES' sections.  More use of @...@ directives.  Other
9375         minor updates.
9376         * arch/djgpp/README, font/devutf8/NOTES: Updated.
9377         * doc/homepage.ms, doc/groff.texinfo: Updated.
9378         * man/groff.man, man/roff.man: Updated.
9379         * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
9380         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
9381         src/devices/grotty/grotty.man: Updated.
9382         * src/preproc/pic/pic.man: Updated.
9383         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
9384         instead of -mdoc.old.
9385         * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
9386         * src/roff/nroff/nroff.man: Updated.
9387         * NEWS: Updated.
9389         * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
9391         * tmac/mm.diff: Removed -- it has no use now since the mm package
9392         is part of groff.
9394         * tmac/*: Removed trailing spaces.
9396         * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
9397         the tmac subdirectory also).
9399         * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
9400         * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
9401         stuff since it is no longer needed.
9403         * README, PROBLEMS: Updated.
9405 2000-10-25  Werner LEMBERG  <wl@gnu.org>
9407         Invert current behaviour: Search first FOOBAR.tmac, then
9408         tmac.FOOBAR.
9410         * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
9411         (open_mac_file, macro_source): Implement it.
9412         * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
9413         doc/groff.texinfo, NEWS: Document it.
9415         * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
9416         Small documentation improvements.
9418         * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
9419         subdirectory also).
9421         * font/devps/Makefile.sub: Fix rules for dingbats.*map.
9423 2000-10-24  Werner LEMBERG  <wl@gnu.org>
9425         Add local tmac directory (groff/site-tmac).
9427         * Makefile.in: Add $(localtmacdir).
9428         (uninstall_dirs): Add $(localtmacdir).
9429         * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
9430         * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
9431         in $(localtmacdir).  Create $(localtmacdir).
9432         * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
9433         Updated and minor fixes.
9435         Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
9437         * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
9439 2000-10-23  Werner LEMBERG  <wl@gnu.org>
9441         Move hyphen.us to tmac directory.
9443         * src/roff/troff/hyphen.us: Removed.
9444         * src/tmac/hyphen.us: Added.
9445         * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
9447         Change installation structure for data files from .../groff/... to
9448         .../groff/<version><revision>/... to be conform with other GNU
9449         programs.
9451         * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
9452         doc/Makefile: Implement it.
9453         * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
9454         * configure: Updated.
9455         * arch/djgpp/README, font/devutf8/NOTES: Use it.
9456         * NEWS: Document it.
9457         * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
9458         @MACRODIR@ instead of hard-coded directories.
9460 2000-10-22  Werner LEMBERG  <wl@gnu.org>
9462         Implement $GROFF_BIN_PATH environment variable (which defaults to
9463         $bindir) used for child programs of groff and similar wrappers.
9465         * gendefs.sh: Improve documentation.
9466         * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
9467         src/preproc/eqn/Makefile.sub (neqn),
9468         src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
9469         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
9470         $GROFF_BIN_PATH.
9471         * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
9472         $GROFF_PATH__ (the latter for communication with troff).
9473         * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
9474         set.
9475         * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
9476         doc/groff.texinfo: Document it.
9478         * doc/groff.texinfo: Improve documentation of troff's -a option.
9480 2000-10-17  Gaius Mulley  <gaius@glam.ac.uk>
9482         * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
9483         non-intrusive eol marker.
9484         (troff_output_file::determine_line_limits): New function.
9485         (troff_output_file::draw): Use it.
9486         * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
9487         output_pending_lines() instead of output_line().
9488         * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
9489         * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
9490         createImage): Small fixes.
9491         
9492 2000-10-14  Werner LEMBERG  <wl@gnu.org>
9494         Replace tmac.safer with a real secure solution.
9496         * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
9497         system_request, pipe_output): Disable requests if in safer mode.
9498         * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
9499         * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
9500         * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
9501         doc/groff.texinfo, src/roff/groff/groff.man,
9502         src/roff/troff/troff.man, arch/djgpp/README: Updated.
9504         * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
9505         (resource_manager::output_prolog): Replace setenv() with putenv().
9507 2000-10-09  Werner LEMBERG  <wl@gnu.org>
9509         * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
9510         src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
9511         src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
9512         src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
9513         compilation errors with some compilers.  It seems that this code
9514         is no longer necessary -- if yes, it is easy to add some #ifdef's
9515         for that particular old-fashioned compiler.
9517         * MORE.STUFF: Added info about Meta-tbl.
9519         * doc/groff.texinfo: Added more info about `.if "..."..."'.
9521 2000-10-07  Werner LEMBERG  <wl@gnu.org>
9523         Adding a new escape sequence \B'...': If the string between
9524         the delimiters is a valid numeric expression, return the character
9525         `1', and `0' otherwise.  This is an analogon to \A.
9527         * src/roff/troff/input.cc (do_expr_test): Implement it.
9528         (token::next): Use it.
9529         * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
9531         * tmac/tmac.trace: Made independent from escape character.
9533 2000-10-06  Werner LEMBERG  <wl@gnu.org>
9535         Adding a new request .dei: define indirect.  The first and second
9536         parameter of .dei are taken from string registers instead directly;
9537         this very special request is needed to make tmac.trace independent
9538         from the escape character (which might even be disabled).
9540         * src/roff/troff/input.cc (do_define_macro): Implement it.
9541         (define_macro_indirect): New function.
9542         (init_input_requests): Use it.
9544         Adding two requests .ecs and .ecr: Save and restore the escape
9545         character.  These two requests are needed to make tmac.trace
9546         independent from the escape character (which might even be
9547         disabled).
9549         * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
9550         Implement it.
9551         (init_input_requests): Use it.
9553         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
9555 2000-09-22  Ricardo Soares Guimarães  <ricardo@conectiva.com.br>
9557         Adding a new option -P and new environment variable GROPS_PROLOGUE
9558         to grops, selecting a different prologue file (minor modifications
9559         by WL).
9561         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
9562         src/devices/grops/ps.cc (main): Implement it.
9563         * src/devices/grops/grops.man, NEWS: Document it.
9565 2000-09-22  Werner LEMBERG  <wl@gnu.org>
9567         * INSTALL: Add info about selecting paper format.
9569 2000-09-21  Werner LEMBERG  <wl@gnu.org>
9571         * src/roff/troff/input.cc (main): Fixing compiler warning.
9572         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
9573         strings.h from the former to the latter.
9574         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
9575         stuff from the former to the latter.
9577 2000-09-11  Werner LEMBERG  <wl@gnu.org>
9579         Implementing two new requests .tm1 and .tmc: The former is similar
9580         to .tm but can output leading spaces; its syntax is similar to
9581         defining a string, i.e., a `"' can be used to mark the beginning of
9582         the string to be written to stderr: `.tm1 " test'.  The latter is
9583         similar to .tm1 but doesn't write out a final newline character.
9585         * src/roff/troff/input.cc (terminal1, terminal_continue,
9586         do_terminal): New functions.
9587         (init_input_requests): Use them.
9588         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
9590 2000-09-09  Werner LEMBERG  <wl@gnu.org>
9592         * tmac/groff_mdoc.samples.man: Small fixes.
9594 2000-09-08  Werner LEMBERG  <wl@gnu.org>
9596         * tmac/groff_mdoc.man: Fixing typo.
9598 2000-09-02  Werner LEMBERG  <wl@gnu.org>
9600         Implementing a .nop request which does nothing.
9602         * src/roff/troff/input.cc (nop_request): New function.
9603         (init_input_requests): Use it.
9604         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
9606 2000-09-01  Werner LEMBERG  <wl@gnu.org>
9608         * doc/groff.texinfo: Added some comments.
9610 2000-08-30  Werner LEMBERG  <wl@gnu.org>
9612         * src/roff/troff/TODO: Updated.
9614 2000-08-25  Werner LEMBERG  <wl@gnu.org>
9616         * doc/groff.texinfo: Fix comment how to compile the DVI file.
9618 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
9620         * font/devps/generate/Makefile (SHELL): Define explicitly to
9621         "/bin/sh", for non-Unix platforms.
9622         (extraclean): Use a more portable "" quoting instead of a
9623         backslash (which doesn't work on DOS/Windows).
9624         
9625         * font/devlj4/generate/Makefile (extraclean): Ditto.
9627         * font/devdvi/generate/Makefile (extraclean): Ditto.
9629 2000-08-25  Werner LEMBERG  <wl@gnu.org>
9631         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
9632         src/roff/troff/troff.man: Document Eli's latest changes.
9634 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
9636         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
9637         macro file names of the form NAME.tmac as well as tmac.NAME.
9639 2000-08-25  Werner LEMBERG  <wl@gnu.org>
9641         * src/include/posix.h: Remove definition of FILENAME_MAX.
9643         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
9644         `sys_fatal' and `stop' function().
9646         * test-groff: Updated.
9648 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
9650         Added the new troff command .output <arg> to suppress output (while
9651         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
9652         registers (for passing the output dimensions to the output device).
9654         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
9655         parameter.
9656         * src/roff/troff/node.h, src/roff/troff/node.cc
9657         (troff_output_file::really_print_line,
9658         ascii_output_file::really_print_line,
9659         supress_output_file::really_print_line): Use `width' parameter.
9660         (troff_output_file::really_on, troff_output_file::really_off,
9661         output_file::on, output_file::off, real_output_file::on,
9662         real_output_file::off, real_output_file::really_on,
9663         real_output_file::really_off): New functions.
9664         (real_output_file:public output_file): New variable `output_on'.
9665         (real_output_file::begin_page, real_output_file::copy_file,
9666         real_output_file::transparent_char, real_output_file::print_line):
9667         Use it.
9668         (real_output_file::print_line): Use check_output_limits.
9669         * src/roff/troff/reg.h, src/roff/troff/request.h,
9670         src/roff/troff/input.cc (assign_registers): New function to remove
9671         two `goto's.
9672         (do_ps_file): Use it.
9673         (check_output_limits, reset_output_registers, output_request,
9674         init_output_requests): New functions.
9675         (init_input_requests): Updated.
9677         Added new grohtml2 device and html2 preprocessor (coding
9678         not yet finished) which will eventually replace grohtml.
9680         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
9681         Updated.
9682         * src/include/htmlindicate.h, src/include/htmlindicate
9683         (html_begin_suppress, html_end_suppress): New functions.
9684         * src/preproc/tbl/main.cc: Use it.
9685         * src/roff/groff/groff.cc: Add support for html2 device (which will
9686         automatically invoke the html2 preprocessor).
9687         * src/roff/troff/input.cc (is_html2): New variable.
9688         * src/roff/troff/troff.h, src/roff/troff/env.h,
9689         src/roff/troff/env.cc (environment::add_html_tag): New function
9690         (uses `is_html2').
9691         (environment::do_break): Use it.
9692         * font/devhtml2/*: New files.
9693         * src/devices/grohtml2: New device.
9694         * src/preproc/html2: New preprocessor.
9695         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
9697 2000-08-23  Werner LEMBERG  <wl@gnu.org>
9699         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
9701 2000-08-22  Werner LEMBERG  <wl@gnu.org>
9703         * src/include/lib.h: Provide a fix for IRIX to not include
9704         groff-getopt.h.
9706 2000-08-18  Werner LEMBERG  <wl@gnu.org>
9708         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
9709         since some non-GNU sed programs can't handle null regexps.
9710         * configure, src/preproc/eqn/Makefile.sub,
9711         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
9713         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
9714         bug (string.h and strings.h are both needed according to latest
9715         POSIX standard).
9717         * MORE.STUFF: Added info about unroff and troffcvt.
9719 2000-08-08  Werner LEMBERG  <wl@gnu.org>
9721         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
9722         used before -ms.
9724         * tmac/tmac.man.old: Remove unused number register.
9726         * tmac.doc: Minor documentation fix.
9728 2000-08-07  Paul Eggert  <eggert@twinsun.com>
9730         * src/roff/groff/pipeline.c (is_system_shell):
9731         Fix typo: "monocased_shell" no longer exists.
9733 2000-08-07  Paul Eggert  <eggert@twinsun.com>
9735         Remove FILENAME_MAX limits.
9737         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
9738         that the argument length is less than FILENAME_MAX.
9739         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
9740         Use struct hack to allocate and free file name.
9741         (struct xtmpfile_list): fname is now part of the structure,
9742         not a pointer to another string.
9744 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
9746         * src/include/posix.h: Add a default value for FILENAME_MAX.
9748 2000-08-06  Paul Eggert  <eggert@twinsun.com>
9750         Add support for new BSD-style man pages (with ".Dd" instead of
9751         ".TH"), so that "groff -man" understands both styles, even
9752         when running "groff -man" on a host whose system man page
9753         macros don't support ".Dd".
9755         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
9756         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
9757         in case the system man macros don't define Dd or TH.
9759         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
9760         * tmac/tmac.an: New one-line file.
9761         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
9763 2000-08-06  Werner LEMBERG  <wl@gnu.org>
9765         * src/roff/troff/troff.man: Fixing typos.
9767 Version 1.16.1 released
9768 =======================
9770 2000-07-31  Werner LEMBERG  <wl@gnu.org>
9772         Preparing release 1.16.1.
9774         * REVISION: Revision number set to 1.
9775         * MORE.STUFF: Added info about port to DOS.
9776         * NEWS, win32-diffs: Updated.
9778         * src/include/nonposix.h: Remove first line -- this file is used
9779         in C also.
9781         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
9782         link to it.
9784 2000-07-30  Werner LEMBERG  <wl@gnu.org>
9786         * doc/texinfo.tex: Update to latest version.
9788 2000-06-28  Paul Eggert  <eggert@twinsun.com>
9790         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
9791         commands that fail.  Don't assume that "export a=b" is valid shell
9792         syntax.  This is needed for Solaris 2.5.1.
9794         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
9795         comment about missing Solaris headers.
9797         * PROBLEMS: Add section about problems with Sun Make and VPATH.
9799 2000-06-25  Werner LEMBERG  <wl@gnu.org>
9801         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
9802         SET_BINARY().
9804         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
9806         * win32-diffs: Updated.
9807         * README.WIN32: Added CRs to make all Windows editors happy.
9809         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
9810         src/roff/groff/pipeline.c).
9812 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
9814         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
9815         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
9817 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
9819         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
9820         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
9821         are binary files.
9822         (main): Support non-Posix systems with several different styles of
9823         slash characters in file names.
9825         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
9826         (main) [SET_BINARY]: Switch stdin into binary mode.
9828         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
9829         (main): Support file names with several possible slash-type
9830         characters, as given by DIR_SEPS[] in nonposix.h.
9831         (main) [__MSDOS__]: If renaming the temporary index file fails
9832         because it has more than one dot in its trunk, replace the dot
9833         with an underscore and try again.
9834         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
9835         Newline.
9836         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
9838         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
9839         (File::File): Open the input file in binary mode.  Strip CR
9840         characters from each CR-LF pair.
9841         (xbasename): Support file names with several possible slash-type
9842         characters, as given by DIR_SEPS[] in nonposix.h.
9844         * src/include/Makefile.sub (HDRS): Add nonposix.h.
9846         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
9847         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
9848         [!_POSIX_VERSION]: Define for traditional Unix systems.
9849         (real_output_file::real_output_file): Remove the MSVC-specific
9850         call to popen, use instead POPEN_WT, appropriately defined on
9851         nonposix.h.  #include nonposix.h.
9852         (real_output_file::~real_output_file): Remove the MSVC-specific
9853         call to pclose, a suitable macro is now defined on nonposix.h.
9854         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
9855         and WEXITSTATUS instead of assuming traditional Unix
9856         interpretation of the status returned by pclose.
9858         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
9859         call to popen, use POPEN_RT instead (appropriately defined on
9860         nonposix.h).  #include nonposix.h.
9861         (ps_bbox_request): Open the PostScript file in binary mode.
9862         Close the file after processing it.
9863         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
9864         nonposix.h.
9866         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
9867         A version of run_pipeline that doesn't use `fork'.
9868         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
9869         (system_shell_name, system_shell_dash_c)
9870         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
9871         the ugliness of testing DOS/Windows file names for equality, and
9872         support both stock shells and ports of Unix shells.
9874         * src/roff/groff/groff.cc: #include nonposix.h.
9875         (BSHELL): Definition moved to nonposix.h.
9876         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
9877         instead of a literal "-c".
9878         (xbasename): Support file names with several possible slash-type
9879         characters, as given by DIR_SEPS[] in nonposix.h.
9880         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
9881         of literal strings.
9883         * src/preproc/soelim/soelim.cc: #include nonposix.h.
9884         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
9886         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
9887         pic_tab.h.
9889         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
9891         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
9892         eqn_tab.h.
9894         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
9896         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
9897         P_tmpdir is defined, use it instead of the literal "/tmp".
9898         (remove_tmp_files, add_tmp_file): New functions.
9899         (xtmpfile): Record temporary files and register an atexit function
9900         to delete them explicitly, instead of relying on the OS to do
9901         that, which doesn't work on non-Unix systems.
9903         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
9904         (search_path::search_path): Use PATH_SEP instead of a literal
9905         colon.
9906         (search_path::command_line_dir): Ditto.
9907         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
9908         to support non-Posix systems.
9910         * src/libs/libbib/search.cc: #include nonposix.h.
9911         (search_list::add_file): Open the file in binary mode.
9913         * src/libs/libbib/linear.cc: #include nonposix.h.
9914         (file_buffer::load): Remove \r characters preceding \n from the
9915         loaded buffer.
9917         * src/libs/libbib/index.cc: #include nonposix.h.
9918         (make_index_search_item): Open index_filename in O_BINARY mode.
9919         (index_search_item_iterator::get_tag): Ditto.  Remove \r
9920         characters before \n characters.
9921         (index_search_item::check_files): Open files in binary mode.
9922         (index_search_item::munge_filename): Support DOS-style file names
9923         with backslashes and drive letters, use IS_ABSOLUTE.
9925         * src/devices/grops/ps.cc: #include nonposix.h.
9926         (main) [SET_BINARY]: Switch stdout to binary mode.
9928         * src/devices/grolj4/lj4.cc: #include nonposix.h.
9929         (main) [SET_BINARY]: Switch stdout to binary mode.
9931         * src/devices/grolbp/lbp.cc: #include nonposix.h
9932         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
9934         * src/devices/grodvi/dvi.cc: #include nonposix.h.
9935         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
9936         nonposix.h).
9937         (main) [SET_BINARY]: Switch stdout to binary mode.
9938         [_MSC_VER]: Remove an explicit call to _setmode.
9940         * src/include/nonposix.h: New file.
9942         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
9943         operation when building with DJGPP.
9944         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
9945         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
9946         ENVSETUP.
9948         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
9949         MS-DOS.
9950         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
9951         etc. can include a semi-colon on DOS/Windows.
9952         (depend.temp): Use depend1.temp instead of depend.temp1, to
9953         prevent files from overerwiting each other on 8+3 filesystems.
9955         * gendef.sh (t): Change definition to work with DOS/Windows.
9957         doc/groff.texinfo: Apart of some typo corrections, I also changed
9958         some index entris, to make them more non-ambiguous, and also put
9959         @ignore around some parts that are not yet written, to allow the
9960         Info output be readable.
9962 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
9964         Replaced specific checks for function declarations with a generic
9965         routine taken from GNU bfd.
9967         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
9968         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
9969         * configure.in: Use it.
9970         * src/devices/grolbp/lbp.cc, src/include/lib.h,
9971         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
9972         src/roff/groff/groff.cc: Use it.
9973         * Makefile.in, configure: Updated.
9975 2000-06-07  Paco Andrés Verdú  <pandres@dragonet.es>
9977         * src/devides/grolbp/lbp.h: Removed unused variables.
9979 2000-05-31  Keith Thompson  <kst@sdsc.edu>
9981         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
9982         strncasecmp().
9984 2000-05-31  Werner LEMBERG  <wl@gnu.org>
9986         * aclocal.m4 (GROFF_SRAND): New function to test the return value
9987         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
9988         * configure.in: Use it.
9989         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
9990         * configure, Makefile.in: Updated.
9992         * configure.in: Add test for strncasecmp().
9993         * src/include/lib.h: Use it.
9995 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
9997         * src/preproc/grn/Makefile.sub: Add MLIB.
9999 2000-05-29  Nix  <nix@esperi.demon.co.uk>
10001         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
10003 2000-05-29  Werner LEMBERG  <wl@gnu.org>
10005         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
10007         * PROBLEMS: Small update.
10009         * src/devices/grolbp/lbp.cc: Various small fixes.
10011 2000-05-28  Keith Thompson  <kst@sdsc.edu>
10013         * src/roff/nroff/nroff.sh: Fix main loop syntax.
10015         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
10017 2000-05-25  Werner LEMBERG  <wl@gnu.org>
10019         * man/roff.man: Removed unused macro.
10021 2000-05-24  Werner LEMBERG  <wl@gnu.org>
10023         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
10024         This is needed e.g. if you do
10025         `make distclean; ./configure; make dist'.
10027 Version 1.16 released
10028 =====================
10030 2000-05-23  Werner LEMBERG  <wl@gnu.org>
10032         Adding font CWI (constant width italic) to devdvi.
10034         * font/devdvi/CWI: New file.
10035         * font/devdvi/generate/Makefile: Add generating rule.
10036         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
10037         tmac/tmac.dvi: Use it.
10038         * NEWS: Announce it.
10040         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
10041         * font/devlj4/generate/Makefile: Cosmetic changes only.
10043         * man/groff.man: Removed most of the redundant description of
10044         special characters (which is in groff_char.man).  Added font
10045         translation CB->CR for devdvi.  Other minor fixes.
10047         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
10048         (registered) symbols.
10050 2000-05-22  Werner LEMBERG  <wl@gnu.org>
10052         * doc/Makefile: Added rule for creating info files.
10054         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
10055         AMS font metrics.
10056         * font/devdvi/generate/Makefile: Fixed dependencies.
10058         * font/devps/*: Regenerated.  Heavy changes for Bookman and
10059         NewCentury Schoolbook!
10060         * font/devps/generate/afmname: Will now run with GNU awk.
10061         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
10062         * font/devps/generate/Makefile: Cosmetic changes only.
10064 2000-05-21  Werner LEMBERG  <wl@gnu.org>
10066         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
10067         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
10068         `.SS' now produces a heading with a smaller size than `.SH'. 
10069         Completely formatted.
10070         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
10072         * man/groff.man: Improved table appearance.  Use of `eo' request
10073         to reduce number of doubled backslashes in macro definitions.
10074         Replacing `\e' with `\(rs'.  Other minor fixes.
10076         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
10077         to have correct line number.
10079         * INSTALL: Small improvement.
10081 2000-05-20  Bernd Warken  <bwarken@mayn.de>
10083         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
10084         WL).
10086 2000-05-19  Bernd Warken  <bwarken@mayn.de>
10088         * man/groff.man: Complete update (with a lot of corrections by WL).
10090 2000-05-18  Werner LEMBERG  <wl@gnu.org>
10092         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
10094         * font/*/*: Implement it.
10095         * man/groff_char.man, NEWS: Document it.
10097         * src/include/unix.h: Removed.  It isn't used.
10099         * doc/groff.texinfo: Slight improvements.
10101 2000-05-17  Werner LEMBERG  <wl@gnu.org>
10103         * README, win32-diffs: Small fixes and improvements.
10105 2000-05-16  Werner LEMBERG  <wl@gnu.org>
10107         * FDL: New file (the Free Documentation License version 1.1).
10109         * doc/groff.texinfo: Added many start-up values for gtroff.
10110         Some structural improvements of the source code.
10112 2000-05-15  Werner LEMBERG  <wl@gnu.org>
10114         * src/roff/troff/input.cc: Added small comment about troffrc-end.
10115         * src/roff/troff/troff.man: Added info about troffrc-end.
10117 2000-05-14  Werner LEMBERG  <wl@gnu.org>
10119         * Makefile.in (EXTRADIRS): Fix typos.
10120         (dist): Handle deletion of old .tar.gz file correctly.
10121         (DISTDIRS): Include all tty output devices.
10123         * doc/groff.texinfo: Adding more cross references; countless other
10124         fixes.
10126 2000-05-13  Werner LEMBERG  <wl@gnu.org>
10128         * MORE.STUFF: Added Robert Marks's utilities.
10130 2000-05-12  Werner LEMBERG  <wl@gnu.org>
10132         Added win32 port contributed by Blake McBride
10133         <blake@florida-software.com>.
10135         * README.WIN32, win32-diffs: New files.
10136         * NEWS: Updated.
10138         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
10139         (tmove, tmove2): Added parentheses to avoid compiler warnings.
10140         (change): Removed unused variables.
10142         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
10143         (savebounds): Changed return value from `int' to `void'.
10144         * src/preproc/grn/hdb.cc: Ditto.
10146         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
10147         final backslash in comment to avoid compiler warning.
10149         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
10151         * doc/groff.texinfo: More fixes.
10153 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
10155         * tmac/tmac.doc: Documentation fix.
10157 2000-05-11  Werner LEMBERG  <wl@gnu.org>
10159         * doc/groff.texinfo: Reading the source code shows up a lot of
10160         omissions and incorrect data...  More conversion to @Deffn macros.
10162 2000-05-10  Werner LEMBERG  <wl@gnu.org>
10164         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
10165         dependency.
10167         * src/roff/troff/request.h: Removing unused `no_break_flag'.
10169 2000-05-09  Werner LEMBERG  <wl@gnu.org>
10171         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
10172         improvements.
10174         * doc/groff.texinfo: Extended history section.  More conversion to
10175         @Deffn macros.  More .tr documentation.
10177 2000-05-07  Werner LEMBERG  <wl@gnu.org>
10179         * doc/groff.texinfo: Completed tab section.  Added info about
10180         fields.
10182 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
10184         * PROBLEMS: Describe configure script fix for OS/390 Unix.
10186 2000-05-05  Werner LEMBERG  <wl@gnu.org>
10188         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
10189         LaTeX 2e).
10190         * NEWS: Document it.
10192         * man/troff.man: Minor optical improvements.
10194 2000-05-03  Werner LEMBERG  <wl@gnu.org>
10196         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
10198         * font/*/*: Implement it.
10199         * man/groff_char.man, NEWS: Document it.
10201 2000-05-02  Werner LEMBERG  <wl@gnu.org>
10203         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
10204         expansion.
10205         * NEWS: Document the three new man pages.
10207         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
10208         * configure: Updated.
10210         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
10212 2000-05-01  Werner LEMBERG  <wl@gnu.org>
10214         Added grap support to grog.
10216         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
10217         * src/roff/grog/grog.man: Document it.
10219         * doc/groff.texinfo, NEWS: Add info about grap support.
10221         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
10222         (with slight fixes by me).
10224         * tmac/groff_tmac.man: New file documenting tmac mechanism.
10225         * tmac/Makefile.sub: Add groff_tmac.man.
10226         * man/roff.man: New file giving overview of roff system.
10227         * man/troff.man: A short reference of troff.
10228         * man/Makefile.sub: Add roff.man and troff.man.
10230 2000-04-30  Werner LEMBERG  <wl@gnu.org>
10232         Added grap support to groff.
10234         * src/roff/groff/groff.cc: Implement it.
10235         * src/roff/groff/groff.man: Document it.
10237         * src/devices/grotty/grotty.man: Add cp1047 device.
10238         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
10239         Ditto.
10240         * src/roff/groff/groff.man: Ditto.
10241         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
10242         * doc/groff.texinfo: Ditto.
10244         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
10245         for cp1047.
10247 2000-04-29  Werner LEMBERG  <wl@gnu.org>
10249         * man/groff_char.man: Add `pc' glyph.
10250         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
10251         * tmac/tmac.tty: Add `pc' glyph.
10252         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
10253         we use cp1047 output device.
10255         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
10256         there are still hardcoded latin1->unicode values in utf8's font
10257         definition files.
10258         * configure: Updated.
10259         * NEWS: Minor clarification.  Updated.
10261         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
10262         Unix.
10264 2000-04-28  Werner LEMBERG  <wl@gnu.org>
10266         Adding EBCDIC code page 1047.
10268         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
10269         font/devcp1047/DESC.proto: New files.
10271         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
10272         either ascii/latin1 or cp1047.
10273         * Makefile.in: Use it.
10274         * configure: Updated.
10276         Replacing and/or adding `md' (mathdot) glyph with `pc'
10277         (periodcentered) in all text fonts.
10279         * font/*/*: Change it.
10281 2000-04-27  Werner LEMBERG  <wl@gnu.org>
10283         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
10285         * configure.in: Add check for strings.h.
10286         * src/include/driver.h: Use HAVE_STRINGS_H.
10287         * src/devices/grolbp/lpb.cc: Remove string.h.
10289         * src/include/groff-getopt.h: New file.  It will be used instead of
10290         getopt.h (to be included in lib.h) to avoid endless problems with
10291         picky C++ compilers.
10292         * src/include/lib.h: Use groff-getopt.h.
10293         * src/include/Makefile.sub: Updated.
10295         * configure: Updated.
10296         * Makefile.in: Updated.
10298         * NEWS: Mention EBCDIC support.
10300 2000-04-26  Werner LEMBERG  <wl@gnu.org>
10302         * TODO: Some additions.
10304 2000-04-25  Werner LEMBERG  <wl@gnu.org>
10306         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
10307         of mso request.
10309 2000-04-23  Werner LEMBERG  <wl@gnu.org>
10311         * src/roff/troff/troff.man: Minor fixes.
10313 2000-04-22  Werner LEMBERG  <wl@gnu.org>
10315         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
10316         `.T' string register and the incompatible definition of the `.T'
10317         number register (compared to Unix troff).
10319         * man/groff_char.man: Add some missing characters.
10320         * font/devutf8/NOTES: Update.
10322 2000-04-21  Werner LEMBERG  <wl@gnu.org>
10324         * src/include/htmlindicate.h, src/include/lib.h,
10325         src/include/posix.h: Fix copyright.
10327         * src/include/Makefile.sub: Update.
10329 2000-04-20  Werner LEMBERG  <wl@gnu.org>
10331         * src/roff/troff/input.cc (input_char_description): Removing
10332         superfluous space char.
10334         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
10336         * doc/groff.texinfo: Document EBCDIC.
10338 2000-04-19  Werner LEMBERG  <wl@gnu.org>
10340         Introducing `shc' as the glyph name for the soft hyphen character.
10342         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
10343         font/devlatin1/R.proto: Use it.
10345         * NEWS: Updated.
10347 2000-04-18  Werner LEMBERG  <wl@gnu.org>
10349         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
10350         dependency on ASCII order.
10352 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
10354         * src/libs/libgroff/illegal.c: Added EBCDIC table.
10355         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
10357         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
10358         to increase portability.
10360 2000-04-15  Werner LEMBERG  <wl@gnu.org>
10362         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
10363         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
10364         the generic `\n' if under OS/390 Unix.
10366         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
10368         * configure: Regenerated.
10370 2000-04-14  Werner LEMBERG  <wl@gnu.org>
10372         * doc/groff.texinfo: More conversions to @Deffn.
10374 2000-04-12  Werner LEMBERG  <wl@gnu.org>
10376         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
10377         with `:'.
10379         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
10381 2000-04-10  Werner LEMBERG  <wl@gnu.org>
10383         * doc/groff.texinfo: More conversions to @Deffn.
10385 2000-04-08  Werner LEMBERG  <wl@gnu.org>
10387         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
10388         Updated to latest version (glibc 2.1.3).
10390 2000-04-07  Werner LEMBERG  <wl@gnu.org>
10392         * doc/Makefile (clean): Include more index files.
10393         Add rule texinfo->dvi.
10395 2000-04-05  Werner LEMBERG  <wl@gnu.org>
10397         * doc/groff.texinfo: Added new index `op' for operators.  More
10398         info on end of sentence characters.  More use of @Deffn.
10400 2000-03-30  Werner LEMBERG  <wl@gnu.org>
10402         * */*.man: Adding a note that a whitespace can be inserted between
10403         a command line option and its parameter -- we are using GNU getopt.
10405         * src/roff/groff/groff.man: Add example of `-m mandoc'.
10407 2000-03-28  Werner LEMBERG  <wl@gnu.org>
10409         Correct anachronism of calling the man macro file with `-man'
10410         instead of `-m man' etc.
10412         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
10413         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
10414         load tmac.<package>.
10416         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
10418         * NEWS: Updated.
10420         * doc/groff.texinfo: Updated.
10422         * tmac/groff_man.man: Copyright added.
10424 2000-03-27  Werner LEMBERG  <wl@gnu.org>
10426         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
10427         typeset the request resp. escape name with a tt font -- due to a
10428         bug in texinfo.tex it is necessary to use the `-e' switch with
10429         texi2dvi.
10431         Improving info about usage of groff units.
10433         Other minor fixes.
10435 2000-03-20  Werner LEMBERG  <wl@gnu.org>
10437         * doc/groff.texinfo: Added section about man macro package
10438         (I've basically taken groff_man.man).  Introducing new indices `ma'
10439         for macros/strings and `gl' for glyph names.  Other minor fixes.
10441         * tmac/groff_man.man: Fixed some typos.
10443 2000-03-19  Werner LEMBERG  <wl@gnu.org>
10445         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
10446         Other minor fixes.
10448         * doc/texinfo.tex: New file.
10450 2000-03-18  Werner LEMBERG  <wl@gnu.org>
10452         * doc/groff.texinfo: Improved section on number registers.  Other
10453         minor updates.
10455 2000-03-16  Werner LEMBERG  <wl@gnu.org>
10457         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
10458         synopsis.
10460         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
10461         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
10462         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
10463         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
10465         * src/preproc/grn/grn.man: Better synopsis; added copyright.
10467         * src/roff/grog/grog.man: Updated copyright date.
10469 2000-03-14  Francisco Andrés Verdú  <pandres@dragonet.es>
10471         * configure.in: Added test for strdup.
10473         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
10474         is available.
10476         Replaced dynamic allocation of arrays `[...]' with `new' operator.
10478         Other minor fixes.
10480 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
10482         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
10484 2000-03-11  Werner LEMBERG  <wl@gnu.org>
10486         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
10487         compilers silent.
10488         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
10489         * src/include/lib.h: Remove some spaces.
10491 2000-03-10  Werner LEMBERG  <wl@gnu.org>
10493         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
10494         initializers from arguments (some compilers don't like this).
10496 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
10498         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
10499         used by pic and eqn to tell grohtml where the graphic regions start
10500         and end.
10501         * src/libs/libgroff/Makefile.sub: Use it.
10502         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
10503         graphic_start() and graphic_end() from htmlindicate.cc.
10505 2000-03-09  Werner LEMBERG  <wl@gnu.org>
10507         * tmac/tmac.safer: Will now work correctly in compatibility mode.
10508         * tmac/groff_man.man: More fixes.
10510 2000-03-08  Werner LEMBERG  <wl@gnu.org>
10512         * doc/Makefile: Added texput.log to the `clean' target.
10513         * doc/groff.texinfo: Added info about delimiters for escapes.
10515 2000-03-08  Bernd Warken  <bwarken@mayn.de>
10517         * src/preproc/pic/pic.man: Add info on conversion of pic images to
10518         other graphic formats.
10520 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
10522         * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
10523         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
10524         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
10525         files.
10527 2000-03-07  Werner LEMBERG  <wl@gnu.org>
10529         * doc/groff.texinfo: Spelling fixes.
10531 2000-03-06  Werner LEMBERG  <wl@gnu.org>
10533         * tmac/groff_man.man: Completely revised to cover everything in
10534         tmac.an.
10536         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
10537         Other minor fixings.
10538         * src/roff/troff/env.cc (environment_copy): Improve error message and
10539         fix itoa->i_to_a.
10540         * src/roff/troff/TODO: Updated.
10542         * doc/Makefile: Bug fixes -- this is still provisional, though...
10544         * tmac/eqnrc: Small fixes.
10546 2000-03-05  Abramo Bagnara  <abramo@alsa-project.org>
10548         Adding a request `evc' to copy environments.
10550         * src/roff/troff/env.cc (environment::copy, environment_copy):
10551         Implement it.
10552         * src/roff/troff/env.h: Add prototype.
10554 2000-03-05  Francisco Andrés Verdú  <pandres@dragonet.es>
10556         Adding strsep() -- Solaris 8 doesn't have it.
10558         * configure.in: Test it.
10559         * src/devices/grolbp/lbp.cc: Add code.
10561 2000-03-05  Werner LEMBERG  <wl@gnu.org>
10563         * src/roff/troff/div.cc (macro_diversion::output,
10564         top_level_diversion::output): Fixing an incompatibility with
10565         original troff: \x'0' updates the .a register also.  Thanks to
10566         <Andries.Brouwer@cwi.nl> for pointing this out.
10567         * doc/groff.texinfo: Document it.
10569         * Makefile.in: Create Makefile.dep if necessary before calling the
10570         submake process to avoid warning about nonexistent file.
10572         * NEWS, PROJECTS: Updated.
10574 2000-03-04  Werner LEMBERG  <wl@gnu.org>
10576         * tmac/troffrc: Add tmac.lbp.
10578 2000-03-03  Francisco Andrés Verdú  <pandres@dragonet.es>
10580         * tmac/tmac.lbp: New file.
10581         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
10582         command.
10584 2000-03-03  Werner LEMBERG  <wl@gnu.org>
10586         * Makefile.in: Fixing $(subdir).
10588         * README, NEWS: Small fixes.
10590         * test-groff: Adding path to grolbp.
10592         * configure.in: The (new) file src/xditview/Imakefile.in will be
10593         also configured -- it is now possible to build gxditview in a
10594         directory different from $srcdir.
10596 2000-03-02  Blake McBride  <blake@florida-software.com>
10598         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
10600         * MORE.STUFF: Added website of bell labs and info about plot2dev.
10602 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
10604         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
10605         files.
10607 2000-02-29  Werner LEMBERG  <wl@gnu.org>
10609         Adding GNU getopt to the groff distribution.
10611         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
10612         New files.
10613         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
10614         * aclocal.a4: Remove GROFF_GETOPT function.
10615         * configure.in, Makefile.in, PROBLEMS: Update.
10616         * src/include/lib.h: Replace getopt tests with getopt.h.
10617         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
10619         * doc/groff.texinfo: Further checking/updating.  Adding more index
10620         entries.
10622         * man/groff_out.man: Fix nroff mode activation (for emacs).
10623         * man/groff_font.man: Add missing ligature.
10625 2000-02-28  Werner LEMBERG  <wl@gnu.org>
10627         * doc/groff.texinfo: Further checking/updating.  Adding more index
10628         entries.
10630         * src/devices/grolbp/grolbp.man: Added a comment line at the
10631         beginning of the file (similar to shell scripts) which indicates
10632         that `tbl' should be used as a preprocessor.
10634 2000-02-27  Blake McBride  <blake@florida-software.com>
10636         Adapting groff to MS Visual C++ 6.0 compiler (tested with
10637         Windows NT 4.0).  Uses _MSC_VER define where necessary.
10639         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
10640         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
10641         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
10642         src/include/lib.h, src/libs/libgroff/errarg.cc,
10643         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
10644         src/preproc/refer/label.y, src/preproc/refer/label.cc,
10645         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
10646         src/roff/troff/div.cc, src/roff/troff/env.cc,
10647         src/roff/troff/input.cc, src/roff/troff/node.cc,
10648         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
10649         if_to_a() to avoid name clashes.
10650         * src/include/posix.h: Don't use unistd.h.
10651         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
10652         clause for integrating non-Unix xtmpfile() code.
10653         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
10654         structure; use "rt" for popen() in pipe_source(); add getpid()
10655         dummy function.
10656         * src/roff/troff/node.cc: Use special versions of popen() in
10657         real_output_file() and pclose() in ~real_output_file().
10659 2000-02-27  Werner LEMBERG  <wl@gnu.org>
10661         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
10662         LBP-8 series laser printers).  This code has been contributed by
10663         Francisco Andrés Verdú <pandres@dragonet.es>.
10665         * src/devices/grolbp/*: The grolbp output device.
10666         * font/devlpb/*: The font description files.
10667         * Makefile.in: Add grolpb and devlbp subdirectories.
10669         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
10670         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
10671         typographic fixes.
10673         * doc/groff.texinfo: Further checking/updating.  Adding more index
10674         entries.
10676         * NEWS: Updated.
10678         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
10680         * man/groff_font.man: Adding info about obsolete DESC keywords.
10681         * src/devices/grolj4/grolj4.man: Documenting additional DESC
10682         keywords.
10684 2000-02-26  Werner LEMBERG  <wl@gnu.org>
10686         * src/preproc/grn/grn.man: Added info about the gremlin file format
10687         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
10689 2000-02-25  Werner LEMBERG  <wl@gnu.org>
10691         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
10692         friends to be non-integer.
10694         * src/preproc/grn/grn.man: Document it.
10696         * doc/groff.texinfo: Further checking/updating.  Adding more index
10697         entries.
10699 2000-02-24  Werner LEMBERG  <wl@gnu.org>
10701         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
10702         line thicknesses to be integer multiples of this value.
10704         * src/preproc/grn/grn.man: Commenting out the -s option -- the
10705         corresponding code doesn't work (yet).
10707         * doc/groff.texinfo: Further checking/updating.  Adding more index
10708         entries.
10710 2000-02-23  Werner LEMBERG  <wl@gnu.org>
10712         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
10713         specify line thickness instead of base units.  The new default
10714         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
10715         thick lines respectively.
10717         Removed unused variable `prevval'.
10719         * src/preproc/grn/grn.man: Updated.
10721 2000-02-22  Werner LEMBERG  <wl@gnu.org>
10723         * src/preproc/grn/main.cc: Slight formatting.
10725         * src/roff/groff/groff.man: Formatting fix.
10726         * src/preproc/grn/grn.man: Ditto.
10728         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
10730         * doc/groff.texinfo: Further checking/updating.
10732 2000-02-21  Werner LEMBERG  <wl@gnu.org>
10734         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
10736         * test-groff: Added grn subdir to path.
10738         * doc/groff.texinfo: Some restructing and other small improvements.
10740         * src/roff/groff/groff.cc (help): Fixed info string.
10742 2000-02-20  Werner LEMBERG  <wl@gnu.org>
10744         * doc/meref.me: Fix description of .GS request.
10746         * src/roff/troff/troff.man: Fixing typo.
10748         Adding the `grn' preprocessor for gremlin graphic files.
10750         * src/preproc/grn/*: This is the Berkeley distribution written by
10751         David Slattengren and Barry Roitblat, adapted to groff by Daniel
10752         Senderowicz and Werner Lemberg.
10754         * doc/grnexampl.{me,g}: A sample for grn.
10756         * Makefile.in: Added subdirectory entry for grn.
10758         * src/roff/groff/groff.cc: Added support for grn.  It can be now
10759         called with the switch `-g'.
10761         * src/roff/groff/groff.man: Updated.
10763         * src/roff/grog/grog.{man,pl,sh}: Updated.
10765         * NEWS: Updated.
10767 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
10769         * src/include/lib.h: Added xtmptemplate and made xtmpfile
10770         parametrically polymorphic.
10772         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
10773         and the alterations to xtmpfile.
10774         xtmpfile can be requested to return the filename created
10775         and asked not to unlink the temp file.  The default behaviour
10776         if parameters are absent is exactly the same as before.
10778 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
10780         A new request `length' is available which returns the length of a
10781         string in a number register:
10783         * src/roff/troff/input.cc (length_macro): Implement it.
10784         * src/roff/troff/input.cc (init_input_requests): Register it.
10786 2000-02-11  Werner LEMBERG  <wl@gnu.org>
10788         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
10789         of the `substring' request.
10791         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
10792         request.
10794         * src/roff/troff/TODO, NEWS: Updated.
10796 2000-02-09  Werner LEMBERG  <wl@gnu.org>
10798         * src/roff/groff/groff.man: Added an example.
10800 2000-02-06  Werner LEMBERG  <wl@gnu.org>
10802         I've considerably modified the directory structure of the
10803         distribution to get a more vertical layout.  For example, the number
10804         of top level directories has been reduced from 42 to 6.
10806         As a consequence, many changes, especially to the makefiles, were
10807         necessary:
10809         * The makefile variables `top_builddir' and `top_srcdir' have been
10810         introduced.  Virtually all relative paths have been replaced with
10811         absolute ones using these two variables.
10813         * Dependencies (in the files `Makefile.dep') are no longer part of
10814         the distribution.  Instead, they are created during a `make install'
10815         in the build directory.
10817         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
10818         make `top_srcdir' and `top_builddir' absolute.
10820         Some other changes:
10822         * Man pages now depend on the files `VERSION' and `REVISION'.
10824         * The added shell script `mkinstalldirs' will replace `mkdir' in
10825         almost all cases.
10827         * VERSION: Version number increased to 1.16.
10829 2000-02-04  Werner LEMBERG  <wl@gnu.org>
10831         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
10833         * Makefile.in: Removed $(tmac_m) since it is no longer needed
10834         (after an update of the mm stuff).
10836         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
10838 2000-02-03  Werner LEMBERG  <wl@gnu.org>
10840         The .psbb request will now also accept Mac PS images (i.e. using LF
10841         as the EOL character).
10843         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
10844         (with slight modifications).
10845         * troff/input.cc (do_ps_file): Use it.
10847         * test-groff: Add grohtml and grolj4 output devices to PATH.
10849 2000-01-30  Werner LEMBERG  <wl@gnu.org>
10851         * NEWS, MORE.STUFF: Updated.
10853 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
10855         Add the `srand' command to pic.
10857         * pic/lex.cc, pic/pic.y: Implement it.
10858         * pic/pic.man: Document it.
10859         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
10861 2000-01-30  Werner LEMBERG  <wl@gnu.org>
10863         Add a new request `.psbb'.  This does exactly what the external
10864         program psbb did.  It scans a PostScript image file for a
10865         %%BoundingBox comment and extracts the bounding box values (in
10866         PostScript units) which are then stored in the four new (read-only)
10867         number registers `llx', `lly', `urx', and `ury'.
10869         This will allow the usage of the .PSPIC macro without worrying
10870         about unsafe behaviour of groff, i.e., it will work without the
10871         `-U' switch of groff.
10873         * troff/input.cc: Implement it.
10874         * tmac/tmac.pspic: Use it.
10875         * troff/troff.man, grops/grops.man, NEWS: Document it.
10876         * psbb/*, Makefile.in: Remove it since it is no longer needed.
10878         This is bloody C code simply adapted from psbb.c!  Any improvements
10879         welcome.
10881 2000-01-29  Werner LEMBERG  <wl@gnu.org>
10883         * man/groff_font.man: Minor clarifications.
10885         * NEWS: Updated.
10887 2000-01-28  Werner LEMBERG  <wl@gnu.org>
10889         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
10891 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
10893         * man/groff_font.man: Brought up to date regarding tcommand
10894         extensions.
10895         * libgroff/font.cc: Handle everything after `--' as a comment
10896         in the font files.
10897         * devps/*: Added comment delimiter inside devps font files.
10899 2000-01-28  Werner LEMBERG  <wl@gnu.org>
10901         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
10902         \fC...\fP (which now works as expected).
10904         * troff/troff.man: Fix typo.
10906 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
10908         Completed the pass_filenames implementation in troff.
10910         * libdriver/input.cc: Will read the new `F' tcommand.
10911         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
10912         * troff/input.cc: Use it.
10914 2000-01-26  Werner LEMBERG  <wl@gnu.org>
10916         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
10917         font will now be updated even if an invalid font is selected.
10919 2000-01-24  Werner LEMBERG  <wl@gnu.org>
10921         * doc/homepage.ms: Updated for new tmac.arkup.
10923         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
10925         * tmac/tmac.arkup: Cleanup.
10927         Added `\&' to .HTML macro to `leave vertical mode', so to say.
10929         Removed obsolete .LINK macro completely.
10931         The macros .URL, .FTP, and .MAILTO now accept a third argument which
10932         will be immediately appended to the second argument (to be used with
10933         punctuation, for example).
10935         Disabled .CDFTP macro temporarily for security reasons.
10937         * tmac/groff_markup.man: Complete revision for latest changes in
10938         tmac.arkup -- note that it does not yet format correctly with
10939         grohtml :-(
10941 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
10943         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
10944         * devutf8/R.proto: Add mappings for wp, lh, rh.
10945         * devutf8/NOTES: Updated.
10947 2000-01-23  Werner LEMBERG  <wl@gnu.org>
10949         * doc/groff.texinfo: Updated version/copyright info.
10951 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
10953         Added support for two new directives in device descriptions:
10954         `pass_filenames' (to pass the input file name to the output device)
10955         and `use_charnames_in_special' (to support e.g. accented characters
10956         in the `X' request).
10958         * include/font.h, troff/charinfo.h: Declare it.
10960         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
10962         * devhtml/DESC: Use it.
10964         * troff/input.cc: New function encoded_char.
10966         * troff/token.h: Add test for `specialness'.
10968 2000-01-21  Werner LEMBERG  <wl@gnu.org>
10970         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
10971         mistake from the list of files to be installed.
10973 2000-01-18  Werner LEMBERG  <wl@gnu.org>
10975         * README: Added info how to apply patches.
10977 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
10979         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
10981 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
10983         * troff/input.cc: Add support for troffrc-end.
10985         * tbl/main.cc: Altered to issue table-start and table-end special
10986         characters if using the html device.
10988         * devhtml/*: Modified font files to incorporate html encoding of
10989         characters.
10991         * tmac/groff_markup.man: New file documenting tmac.arkup.
10993         * tmac/troffrc-end: New file.  This is invoked after all user
10994         specified macros.  Currently used by the html device to include
10995         tmac.html.  Thus no need for users to specify -mhtml anymore.
10997         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
10998         (MAN7): Add groff_markup.man.
11000         * tmac/tmac.an, tmac/tmac.html: Small html updates.
11002         * tmac/troffrc: tmac.arkup will now be called for the html device.
11004         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
11005         extra device specific information about fonts.
11007         * doc/homepage.ms: New file.  It is an example how an HTML home page
11008         could look like with grohtml.
11010         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
11012 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
11014         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
11015         of Im, Re.
11017         * devutf8/NOTES: Updated.
11019 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
11021         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
11022         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
11023         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
11024         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
11025         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
11026         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
11027         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
11028         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
11029         warnings.
11031         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
11033 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
11035         grolj4: Paper size will be searched case-insensitively.
11037         * include/lib.h: Add check for strcasecmp().
11038         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
11039         * configure.in: Check for strcasecmp().
11041 2000-01-11  Werner LEMBERG  <wl@gnu.org>
11043         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
11044         `REVISION'.
11046 2000-01-10  Werner LEMBERG  <wl@gnu.org>
11048         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
11049         revision scheme.
11051         Add a new read-only register, `.Y', which contains the groff
11052         revision.
11054         * troff/input.cc (init_input_requests): Define it.
11055         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
11056         * doc/groff.texinfo, troff/troff.man: Document it.
11058         * libgroff/Makefile.sub (version.cc): Add definition of
11059         `Version_string[]', consisting of `<major>.<minor>.<revision>'
11060         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
11061         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
11062         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
11063         troff/input.cc, pfbtops/pfbtops.c: Use it.
11065 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
11067         Add a revision scheme to the groff package.
11069         * REVISION: New file.
11070         * libgroff/Makefile.sub (version.cc): Use it to define
11071         `revision_string[]'.
11072         * grops/psrm.cc: Use revision_string (converted to an unsigned
11073         integer) in constructor of resource_manager.
11075 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
11077         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
11078         files.
11079         * Makefile.in (DEVDIRS): Add devutf8.
11080         * grotty/tty.cc: Include device.h.
11081         (glyph): Change type of `code' to `unsigned int'.
11082         (tty_printer): New field is_utf8.  Constructor takes device argument.
11083         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
11084         (tty_printer::add_char): Change type of first arg to `unsigned int'.
11085         (tty_printer::put_char): New function.
11086         (tty_printer::end_page): Use put_char() instead of ::putchar().
11087         (make_printer): Pass device to tty_printer constructor.
11088         * nroff.sh: Determine default device by calling 'locale'.  As a
11089         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
11090         Recognize UTF-8 locales.
11091         * tmac/eqnrc: Recognize utf8 like latin1.
11092         * tmac/troffrc: Device utf8 needs tmac.tty.
11094 2000-01-07  Werner LEMBERG  <wl@gnu.org>
11096         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
11098 2000-01-07  Paul Eggert  <eggert@twinsun.com>
11100         Add a new predefined writeable number register, `year',
11101         which contains the current year.
11103         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
11104         * tmac/tmac.s: Use it.
11105         * troff/input.cc (init_registers): Initialize it.
11107 2000-01-06  Werner LEMBERG  <wl@gnu.org>
11109         * PROBLEMS: Fixed typo.
11111 2000-01-04  Paul Eggert  <eggert@twinsun.com>
11113         * PROBLEMS: Add Y2k advice for the yr number register.
11115 2000-01-03  Paul Eggert  <eggert@twinsun.com>
11117         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
11119 2000-01-02  Werner LEMBERG  <wl@gnu.org>
11121         * tmac/tmac.arkup: Slight modification of macros to provide better
11122         appearance for non-HTML formats.
11124 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
11126         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
11127         does not automatically translate to malloc(n) on all OSes
11128         (e.g., SunOS) so do it explicitly.  Also, check the returned
11129         value.
11131 2000-01-01  Werner LEMBERG  <wl@gnu.org>
11133         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
11135         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
11136         expects this variable
11138 2000-01-01  Gaius Mulley  <gaius@glam.ac.uk>
11140         * doc/Makefile: Added instructions to create HTML and text
11141         versions of some files.
11143 1999-12-31  Werner LEMBERG  <wl@gnu.org>
11145         * Updated INSTALL.gen.
11147         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
11148         better resp. correctly with non-HTML devices.
11150 Version 1.15 released
11151 =====================
11153 1999-12-28  Werner LEMBERG  <wl@gnu.org>
11155         * NEWS, VERSION: Changed to 1.15
11157 1999-12-27  Paul Eggert  <eggert@twinsun.com>
11159         * nroff/nroff.man: -S is safer, not safe.
11161         * groff/groff.cc (main): Use `safer', not `safe', in variable
11162         names.  This does not change the behavior.
11164         * troff/input.cc (main): Likewise.
11166         * nroff/nroff.sh: Likewise.
11168         * troff/input.cc (prepend_string): New function.
11169         (main): Prepend -msafer, so that we check macro libraries for
11170         safety.
11172         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
11174 Version 1.14 released
11175 =====================
11177 1999-12-26  Werner LEMBERG  <wl@gnu.org>
11179         * NEWS, VERSION: Changed to 1.14.
11181 1999-12-24  Werner LEMBERG  <wl@gnu.org>
11183         * refer/refer.cc: Fixing the last fix.
11185 Version 1.13 released
11186 =====================
11188 1999-12-23  Werner LEMBERG  <wl@gnu.org>
11190         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
11191         number disappear.
11193         * NEWS: Updated.
11195         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
11197         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
11198         document conventions, the version number must be a real.
11200 Version 1.12.1 released
11201 =======================
11203 1999-12-22  Werner LEMBERG  <wl@gnu.org>
11205         * VERSION: Changed to 1.12.1.
11207 1999-12-22  Alan Rooks  <arooks@istar.ca>
11209         * refer/refer.cc (do_file): Slight modification to satisfy the
11210         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
11211         UnixWare 7.1.
11213 1999-12-20  Werner LEMBERG  <wl@gnu.org>
11215         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
11216         notices.
11218         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
11219         list of unsafe requests.
11221         * pic/pic.man: Fixed a typo.
11223         * man/groff_out.man: Fixed a typo.
11225 1999-12-18  Werner LEMBERG  <wl@gnu.org>
11227         * Makefile.in: Doc fixes.
11229 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
11231         * groff/groff.cc: Missing `U' option added to getopt().
11233         * troff/troff.man: Missing `U' option added to synopsis.
11235 Version 1.12 released
11236 =====================
11238 1999-12-14  Werner LEMBERG  <wl@gnu.org>
11240         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
11241         to the synopsis.
11243         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
11244         with the more appropriate terms `safer' and `unsafe'.
11246         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
11247         sys_nerr and sys_errlist[].
11249         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
11251         * pic/pic.y, pic/pic.cc: Added check for fmod().
11253 1999-12-13  Werner LEMBERG  <wl@gnu.org>
11255         * VERSION: Changed to 1.12.
11257         Here some patches from various sources; most of them taken from
11258         the Debian distribution.
11260         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
11261         tmac/Makefile.sub: New files copied directly from the NetBSD
11262         distribution.  Probably, some additional adaptation later on is
11263         necessary...
11265         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
11266         of unsafe requests.
11268         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
11269         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
11270         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
11271         (`-S') is now the default.
11273         * README, NEWS: Updated.
11275 1999-12-09  Werner LEMBERG  <wl@gnu.org>
11277         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
11279         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
11281 1999-12-06  Werner LEMBERG  <wl@gnu.org>
11283         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
11284         grief than relief today.  Additionally, it is against the GNU
11285         coding standards.
11287         * configure: Recreated.
11289 1999-12-05  Werner LEMBERG  <wl@gnu.org>
11291         * configure.in: Added GROFF_LIBM.
11293         * configure: Recreated.
11295         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
11296         necessary.
11298         * Makefile.in: Added definition of $(LIBM).
11300         * Makefile.comm (LIBM): Removed.
11302         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
11304 1999-12-03  Gaius Mulley  <gaius@glam.ac.uk>
11306         * doc/Makefile: Added rule for generation pic.html.
11308         (clean): Files produced by grohtml will be removed also.
11310         * doc/pic.ms: Small fix.
11312         * tmac/tmac.html: Fixed suppression of headers.
11314 1999-11-16  Gaius Mulley  <gaius@glam.ac.uk>
11316         * tmac/tmac.html: Fixing horizontal arrows.
11318         Turning off hyphenation.
11320         * tmac/tmac.an: Improved support for grohtml; better indentation,
11321         no footers/headers.
11323 1999-10-31  Gaius Mulley  <gaius@glam.ac.uk>
11325         * tmac/tmac.arkup: Added CDFTP macro
11327         * tmac/tmac.html: All headers are turned off for ms, me, and mm
11328         macros.
11330         * tmac/troffrc: Some additions for HTML stuff.
11332 1999-10-06  Gaius Mulley  <gaius@glam.ac.uk>
11334         * tmac/tmac.html: Small changes.
11336 1999-09-26  Werner LEMBERG  <wl@gnu.org>
11338         * doc/groff.texinfo: Minor fixes.
11340 1999-09-26  Gaius Mulley  <gaius@glam.ac.uk>
11342         * devhtml/TR: Changed spacewidth to 3.
11344         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
11346         * tmac/tmac.html: Moved markup macros to tmap.arkup.
11348         * tmac/tmac.arkup: New file.
11350         * grohtml/ChangeLog: New file.
11352 1999-09-16  Werner LEMBERG  <wl@gnu.org>
11354         * doc/groff.texinfo (Common Features): Added Copying chapter.
11355         Changed format to @smallbook.
11357 1999-09-15  Werner LEMBERG  <wl@gnu.org>
11359         * NEWS: Added info about groff.texinfo.
11361         * doc/groff.texinfo: Will now compile (using texi2dvi) without
11362         warning messages.
11364 1999-09-14  Werner LEMBERG  <wl@gnu.org>
11366         * groff/groff.man: More updates.
11368 1999-09-13  Werner LEMBERG  <wl@gnu.org>
11370         * doc/groff.texinfo: New file.  This manual is still very
11371         rudimentary.  It has been originally contributed by Trent
11372         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
11373         additions by me.
11375         * INSTALL: Added information about the `doc' subdir
11377         * troff/troff.man: Minor fixes.
11379         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
11380         reordered options.
11382         * troff/input.cc (usage): Added missing `-ffam' to usage message.
11384         * Makefile.in (dist): groff-$(version).tar.gz must be removed
11385         also, otherwise it is included itself in another call of `make
11386         dist'.
11388         * groff/groff.cc (synopsis): Removed superfluous space.
11390         * PROJECTS, PROBLEMS, NEWS: Updated.
11392         * VERSION: Updated to 1.12beta.
11394         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
11396         * README: Updated: Included documentation about CVS repository,
11397         mailing lists, and daily snapshots.
11399         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
11401 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
11403         * tmac/tmac.an: If the tag didn't fit into the space that the
11404         macro `TP' specifies, the rest of the tag went into the space for
11405         the next line.
11407 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
11409         * grolj4/lj4.cc: Added duplex printing (option `-d').
11411         * grolj4/grolj4.man: Document duplex printing.
11413 1999-09-12  Werner LEMBERG  <wl@gnu.org>
11415         * doc/Makefile (pic.ps): Fixed rule which caused problems with
11416         non-GNUish sed programs.
11418         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
11419         definition.
11421         * configure.in (LIBS): Added `-lc'
11423         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
11425         * pic/tex.cc (solid_arc): Casting M_PI to double.
11427         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
11429         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
11430         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
11431         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
11433         * groff/groff_man.man: New file.  This manual page was originally
11434         written for the Debian GNU/Linux system by Susan G. Kleinmann
11435         <sgk@debian.org>.
11437         * eqn/list.cc (list_box::compute_metrics,
11438         list_box::compute_sublist_width): Removed variable declaration to
11439         avoid shadowing warnings.
11441         * grops/psrm.cc (resource_manager::process_file): Ditto.
11443         * tfmtodit/tfmtodit.cc (main): Ditto.
11445         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
11446         to avoid shadowing warnings.
11448         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
11449         shadowing loop variable.
11451         * groff/groff.man, troff/troff.man: Added doc about grohtml.
11453 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
11455         New grohtml frontend to convert groff input to html.
11457         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
11459         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
11461         * tmac/eqnrc: Added html device.
11463         * tmac/tmac.html: New file.
11465         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
11466         (troff_output::start_picture, troff_output::finish_picture),
11467         tbl/main.cc (process_input_file):
11468         Surrounded output with `graphics_start' and `graphics_end' so that
11469         the html driver can identify non-text portions.
11471         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
11472         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
11473         grotty/tty.ps (tty_printer::set_char): Additional parameter
11474         `name'.
11476         * include/printer.h: Class printer: New function
11477         set_char_and_width; new variables (is_char_named, is_named_set,
11478         named_command, named_char_s, named_char_n) to hold information
11479         about named characters -- needed by the html driver.
11481         * libdriver/printer.cc (printer::set_ascii_char,
11482         printer::set_special_char): Use set_char_and_width.
11484         * devhtml/*: New device files for html driver.
11486         * grohtml/*: New driver grohtml.
11488 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
11490         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
11491         default strings.
11493 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
11495         * libgroff/string.cc (search): Small fix to test against NULL
11496         pointer.
11498 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
11500         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
11501         \b'abc') were stacked in reverse order when processed in a
11502         diversion.
11504         * troff/node.h: Added `*last' to struct `node' to make the above
11505         fix work.
11507         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
11508         The default scale for the 'f' and 't' graphics functions were 'm'
11509         rather than 'u' (i.e., no scaling).
11511 1999-09-11  Peter Miller  <peterm@jna.com.au>
11513         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
11514         do_file), soelim/soelim.man: Added `-I file' option to soelim,
11515         defining include paths.
11517         * soelim/soelim.cc (include_path_append): New function.
11519 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
11521         * tbl/main.cc (process_options): Unix (at least Documenter's
11522         Workbench) tbl allows arbitrary non-alpha characters between
11523         options.
11525 1999-09-11  Paul Eggert  <eggert@twinsun.com>
11527         Y2k fixes.  Don't assume that the current year precedes 2000.
11529         * doc/meref.me: Add \n(y2, \n(y4.
11531         * tmac/doc-common (Yr): New number register.
11532         (Dd): Don't assume current year precedes 2000.
11534         * tmac/tmac.e (td): Likewise.
11535         (y2, y4): New number registers.
11537         * pic/pic.man: Update reference for pic paper to May, 1991
11538         version.
11540 1999-09-11  Werner LEMBERG  <wl@gnu.org>
11542         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
11543         Removed quotation marks which prevented correct expansion of
11544         $(tmac_wrap).
11546         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
11548 1999-09-10  Werner LEMBERG  <wl@gnu.org>
11550         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
11551         `config.cache'.
11553         * Removed configure.old.
11555 1999-08-31  Werner LEMBERG  <wl@gnu.org>
11557         * VERSION: Updated to 1.11.1
11559 1999-05-27  Werner LEMBERG  <wl@gnu.org>
11561         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
11563         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
11564         added quotations around $(tmac_wrap) to avoid syntax error if
11565         variable is empty.
11567         * configure: Newly generated using autoconf 2.13.
11569         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
11571 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
11573         * README, PROJECTS, NEWS, INSTALL, VERSION, 
11574         doc/Makefile. doc/pic.ms, groff/groff.man:
11575         Prepare for 1.11 release.  No code changes.
11576         Documentation for pic added (doc/pic.ms).
11578 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
11580         * Version 1.10 released.
11582 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
11584         * afmtodit/afmtodit.pl: Avoid comment on first line.
11586 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
11588         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
11589         * configure.in: Call it.
11591         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
11592         (distfiles): Doesn't depend on config.log or config.cache.
11594 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
11596         * grog/grog.sh: Use print "" rather than print in END rule.
11598 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
11600         * tbl/main.cc (process_data): Don't give error for excess data
11601         entries that are comments.
11603 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
11605         * tbl/main.cc (process_data): Fix case where new for-scope rules
11606         silently change meaning of code.
11608 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
11610         * troff/env.cc (hyphenate): Loop over all consecutive sequences
11611         of non-zero hyphenation codes.
11613 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
11615         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
11617 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
11619         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
11621 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
11623         * tmac/tmac.andoc: Make it work in compatibility mode.
11625         * refer/token.h (token_info::is_range_sep): New function.
11626         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
11627         * refer/ref.cc (reference::output): More sophisticated check for
11628         multiple pages.
11630         * devps/prologue.ps (MANUAL): New procedure.
11631         * grops/ps.cc (main): New -m option.
11632         (usage): Include -m.
11633         (ps_printer::~ps_printer): Implement -m.
11635         * aclocal.m4 (GROFF_G): New macro.
11636         * configure.in: Call it.
11637         * Makefile.in (g): Provided by configure.
11639         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
11641         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
11642         translations.
11644         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
11645         (tmac_m, tmac_s): Deleted.
11646         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
11647         tmac_s_prefix): New variables.
11648         (MDEFINES): Change accordingly.
11649         * Makefile.comm (.man.n): Use new TMAC_* variables.
11650         * configure.in (GROFF_TMAC): Call.
11651         * aclocal.m4 (GROFF_TMAC): Define.
11652         * tmac/Makefile.sub (stamp_wrap): New target.
11653         (install_data, uninstall_sub): Handle macro wrapping.
11655 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
11657         * tbl/main.cc (main): Ignore -T option.
11659 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
11661         * devlj4/generate/special.map: Add definition of \(nb.
11663         * tmac/tmac.dvi: Add definition of \(nb.
11665         * troff/dictionary.c (dictionary::dictionary): association::v gets
11666         initialized by association::association.
11668         * tmac/Makefile.sub: Avoid using temporary files when installing.
11670         * troff/env.cc (environment::set_font): Make bad font number a
11671         warning.
11673         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
11675         * Makefile.in (datadir): Use share rather than lib.
11677         * groff/groff.cc (basename): Rename to xbasename.
11679 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
11681         * Makefile (CCLIBS): Don't use.
11682         * Makefile.ccpg: Likewise.
11684         * acgroff.m4: Rename to...
11685         * aclocal.m4: Modify extensively for autoconf 2.
11686         * configure.in: Likewise.
11687         * Makefile.in: Likewise.
11689         * groff/pipeline.c (const): Declare as empty if __STDC__ not
11690         defined.
11691         (xstrsignal): Check for definition of NSIG. Conditionalize
11692         on SYS_SIGLIST_DECLARED.  Make return type const.
11694 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
11696         * troff/input.cc (interpolate_macro): Rephrase missing space
11697         warning.
11699 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
11701         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
11702         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
11703         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
11704         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
11705         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
11706         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
11707         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
11708         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
11709         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
11710         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
11711         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
11712         Fix 'for' scoping.
11714 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
11716         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
11717         string_iterator.
11718         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
11719         file.
11720         (macro_iterator::macro_iterator): Add additional argument.
11722 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
11724         * troff/div.cc (vertical_size::vertical_size): In place of integer
11725         specifying line spacing use cunits specifying post vertical
11726         space.
11727         (macro_diversion::output, top_level_diversion::output): Likewise.
11728         * troff/div.h: Change declarations accordingly.
11729         * troff/env.cc (pending_output_line): Replace ls field by post_vs
11730         field.
11731         (pending_output_line::pending_output_line,
11732         pending_output_line::output, environment::output,
11733         environment::output_line, environment::output_title,
11734         environment::hyphenate_line):  In place of
11735         integer specifying line spacing use cunits specifying post vertical
11736         space.
11737         (environment::environment): Add post_vertical_spacing and
11738         prev_post_vertical_spacing arguments.
11739         (environment::get_post_vertical_spacing): New function.
11740         (environment::total_post_vertical_spacing): New function.
11741         (environment::post_vertical_spacing): New function.
11742         (init_env_requests): Initialize pvs request and .pvs register.
11743         * troff/env.h: Change declarations.
11745 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
11747         * tmac/tmac.pspic: Immediately remove the temporary file.
11749 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
11751         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
11752         height is specified.
11754 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
11756         * tbl/table.c (struct vertical rule, class table_entry): Use int
11757         not short for start_row and end_row.
11759 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
11761         * troff/input.cc (trapping_blank_line, blank_line_macro): New
11762         functions.
11763         (diverted_space_node::reread, process_input_stack): Call
11764         trapping_blank_line() rather than blank_line().
11765         (init_input_requests): Bind "blm" to blank_line_macro().
11767         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
11769 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
11771         * troff/env.cc (environment::possibly_break_line): Require that
11772         width total excluding width of final space node be greater than
11773         the target text length.
11775 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
11777         * troff/node.cc (kern_pair_node::vertical_extent): New function.
11779 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
11781         * troff/node.cc (charinfo_node): New class.
11782         (glyph_node, composite_node): Derive from charinfo_node.  Change
11783         member functions accordingly.
11785 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
11787         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
11789 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
11791         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
11793         * devps/generate/textmap (notsubset): Add.
11795         * tmac/tmac.a4: New file.
11797 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
11799         * pic/main.cc (had_parse_error): New variable.
11800         (do_picture, do_whole_file): Set had_parse_error if yyparse()
11801         returns non-zero.
11802         (main): Return 1 if had_parse_error is true.
11804 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
11806         * grolj4/lj4.cc (main): Avoid use of strtoul.
11808 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
11810         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
11811         iso_8859_1 or $LESSCHARSET is latin1.
11813 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
11815         * hpftodit: New directory.
11816         * Makefile.in (CCPROGDIRS): Add hpftodit.
11817         * devlj4/generate: New directory.
11819 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
11821         * configure.in: Don't use AC_VFORK.
11822         * groff/pipeline.c (run_pipeline): Use fork() always.
11824 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
11826         * grops/ps.cc (main): Use %1 not %s in error message for -w.
11828         * Makefile.in (CCPROGDIRS): Add grolj4.
11829         (DEVDIRS): Add devlj4.
11830         * grolj4, devlj4: New directories.
11831         * tmac/troffrc: Handle lj4.
11832         * tmac/tmac.lj4: New file.
11834 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
11836         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
11838 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
11840         * troff/input.cc (do_if_request): At end of second string, switch
11841         environments before getting next token.
11843 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
11845         * devps/psstrip.sed: Split rule that strips whitespace on either
11846         side of delimiters.
11848 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
11850         * troff/node.h (font_family::make_definition): Add return value to
11851         declaration.  * troff/symbol.h (symbol::operator==,
11852         symbol::operator!=): Likewise.
11854 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
11856         * groff/groff.cc (main, help, synopsis): Handle -S.
11857         (possible_command::insert_arg): New function.
11859         * tmac/tmac.safer: New file.
11860         * tmac/msafer.man: New file.
11861         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
11863 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
11865         * pic/pic.h, pic/main.cc (safer_flag): New variable.
11866         * pic/pic.y (placeless_element): Avoid unsafe operations if
11867         `safer_flag' is set.
11868         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
11870 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
11872         * eqn/lex.cc (get_token): Put call to add_context() in block to
11873         work around Sun C++ 4.0 bug.
11875         * include/stringclass.h (operator +): Use ?: instead of `if' to
11876         work around Sun C++ 4.0 bug.
11878 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
11880         * tbl/main.cc (process_format): Accept - as a synonym for the _
11881         key letter.
11883         * libbib/index.cc (minus_one): Don't declare as const.
11885 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
11887         * troff/input.cc (get_char_for_escape_name): Push back a newline.
11889 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
11891         * troff/input.cc (write_macro_request): New function.
11892         (init_input_requests): Bind write_macro_request to writem.
11894 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
11896         * tmac/tmac.s (@EN): Turn filling back on even if there was no
11897         equation.
11899         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
11901         * tmac/tmac.s (@TS): Renamed from TS.
11902         (TS): Call LP then TS again.
11903         (cov*ab-init): Alias @TS to TS.
11905         * tmac/tmac.s: Allow QP or RS to initialize.
11907         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
11908         Move initializations of PS and LL here.
11909         (par@init): Don't initialize HY.  Avoid changing environment 0.
11910         (par*env-init): Don't all par@reset.
11912 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
11914         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
11916 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
11918         * Makefile.in (MDEFINES): Add LDFLAGS.
11919         (LDFLAGS): Add definition line.
11921 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
11923         * troff/input.cc (get_optional_char): Split off error check into...
11924         (check_missing_character): New function.
11925         * troff/token.h: Declare it.
11926         * troff/env.cc (margin_character): Don't call get_optional_char.
11927         Only call tok.next() after making the node.
11929         * include/lib.h (getopt): Make 2nd argument char *const *.
11931 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
11933         * nroff/conftest.sh: Deleted.
11935 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
11937         * pic/make-dos-dist: Deleted.
11939 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
11941         * devps/psstrip.sed: Strip comments before stripping trailing
11942         white space.
11944 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
11946         * Version 1.09 released.
11948 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
11950         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
11952 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
11954         * libgroff/font.cc (font::load_desc): Fix typo in error message.
11956 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
11958         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
11959         about returning without a value.
11961         * troff/charinfo.h (charinfo::get_special_translation): Cast
11962         TRANSLATE_NONE to int.
11964         * refer/token.cc (lookup_token, store_token): Remove bogus loop
11965         test.  Fix test so that it works with n unsigned.
11967         * pic/pic.y (defaults_table): Fully bracket initializer.
11968         * pic/lex.cc (lookup_keyword): Likewise.
11969         * eqn/lex.cc (token_table, def_table): Likewise.
11970         * eqn/box.cc (param_table): Likewise.
11971         * troff/input.cc (warning_table): Likewise.
11972         * libgroff/font.cc (table): Likewise.
11973         * grops/ps.cc (ps_printer::special): Likewise.
11974         * grops/psrm.cc (resource_manager::process_file): Likewise.
11975         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
11976         * refer/command.cc (command_table): Likewise.
11977         * addftinfo/addftinfo.cc (param_table): Likewise.
11979         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
11980         about temp's being unused.
11981         (unused): New function.
11983         * groff/pipeline.cc: Declare c_fatal.
11985         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
11986         uchar.
11988         * libbib/index.cc (index_search_item::load): Prevent compiler
11989         warnings about fd_closer's being unused.
11990         (unused): New function.
11992 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
11994         * troff/input.cc (copy_mode_error): Make `prefix' static.
11995         Fix typo.
11997         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
11998         defined.
11999         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
12000         HAVE_CC_OSFCN_H and modify accordingly.
12002         * troff/input.cc (init_charset_table): radicalex overlaps
12003         horizontally.
12005         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
12006         udodo!hans@relay.NL.net).
12007         * groff/configure.in: Call it.
12009         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
12010         * groff/configure.in: Call it.
12011         * include/lib.h: Conditionalize declaration of pclose.
12013         * troff/div.cc (last_page_number): New global variable.
12014         (top_level_diversion::begin_page): Exit if we just printed the
12015         last page.
12016         * troff/div.h (last_page_number): Declare it.
12017         * troff/input.cc (parse_output_page_list): Set last_page_number.
12019         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
12020         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
12021         tmac/tmac.X: Likewise.
12022         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
12023         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
12025 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
12027         * tmac/doc-ditroff (hK): Remove groff specific code which
12028         prevented page-breaks between separate manual entries.  If this is
12029         the first page, don't set the page number to 1.
12031         * acgroff.m4 (GROFF_POSIX): New macro.
12032         * configure.in: Use it.
12034         * troff/node.cc (class real_output_file,
12035         real_output_file::real_output_file,
12036         real_output_file::~real_output_file): Conditionalize use of
12037         popen/pclose on POPEN_MISSING.
12038         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
12039         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
12040         (pipe_source): Similarily.
12042         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
12044         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
12045         presence of declarations by trying to compile example with
12046         conflicting declarations.  (gcc only gives a warning for missing
12047         declarations.)
12049 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
12051         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
12052         (from Ulrich Lauther).
12054 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
12056         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
12058 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
12060         * indxbib/indxbib.cc (write_hash_table): Add code for case where
12061         pointers and ints have different sizes.
12063 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
12065         * tmac/tmac.s (par*env-init): Call par@reset.
12067 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
12069         * tmac/tmac.s (@IP): Switch to a new environment when diverting
12070         tag.
12071         (par*push-tag-env, par*pop-tag-env): New macros.
12073 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
12075         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
12076         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
12078         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
12079         comment.  Include <time.h>.
12081 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
12083         * grops/ps.cc (is_small_h, is_small_v): Deleted.
12084         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
12085         lines.
12087 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
12089         * troff/input.cc (read_request): Only print a prompt if reading
12090         from the terminal.  Also clearerr on EOF if reading from the
12091         terminal.  Declare isatty.
12093 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
12095         * refer/label.y: Rename map_t to map_func and extractor_t to
12096         extractor_func.
12098 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
12100         * include/assert.h: Don't use volatile.
12101         * libgroff/assert.cc: Likewise.
12103 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
12105         * troff/input.cc (abort_request): Look at character in tok before
12106         calling get_copy().
12108 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
12110         * troff/troff.h (NO_RETURN): Deleted.
12111         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
12112         * troff/input.cc (exit_troff): Likewise
12114         * Makefile.in: Remove `Making ...' messages since GNU make now
12115         gives these. 
12117         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
12119 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
12121         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
12122         to constant 1 inch.
12124 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
12126         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
12128 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
12130         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
12131         MARK_REG if there was no left delimiter.
12133 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
12135         * pic/troff.cc (troff_output::text): Set line thickness to
12136         relative before outputting text.
12138         * tmac/tmac.e (@k): Don't zero ?T.
12139         ((z): Likewise.
12141 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
12143         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
12145 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
12147         * troff/input.cc (decode_args): Warn about unquoted tabs (from
12148         Paul Eggert).
12150 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
12152         * troff/input.cc (ignoring): New variable.
12153         (ignore): Set ignoring during call to do_define_macro.
12154         (do_define_macro): Clear ignoring before interpolating terminating
12155         macro.
12156         (copy_mode_error): New function.
12157         (get_char_for_escape_name, read_long_escape_name,
12158         interpolate_arg): Use copy_mode_error.
12159         (warning_table): Add WARN_IG.
12160         * troff/troff.h (WARN_IG): Declare.
12161         (WARN_TOTAL): Change accordingly.
12163         * groff/pipeline.c (strsignal): Rename to xstrsignal.
12164         * groff/groff.cc (strsignal): Delete declaration.
12166 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
12168         * troff/div.cc (page_offset): Use 'm' as default scaling.
12170 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
12172         * nroff/nroff.sh: Ignore -u.
12174 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
12176         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
12178 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
12180         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
12181         drawing box.
12182         (B2): With -Tascii, leave additional vertical space before
12183         and after. Ensure that the left and right indent is restored to
12184         what it was even if the point size changes.  Don't call
12185         par@finish. Change the indent, line length and title length
12186         directly.  With -Tascii, make the width of the box 1n less.
12187         (B1): Remember 1n at the current point size.  Don't call
12188         par@reset.  Change the indent, line length and title length
12189         directly.  Ensure that the temporary indent is preserved.
12190         (par*box-mark-top): Turn off no spacing mode.
12192 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
12194         * Makefile.in (dist): Use .gz suffix.
12196 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
12198         * troff/input.cc (main): Add return 0.
12199         * pic/main.cc (main): Use return instead of exit.
12200         * tbl/main.cc (main): Likewise.
12201         * eqn/main.cc (main): Likewise.
12202         * grops/ps.cc (main): Likewise.
12203         * grotty/tty.cc (main): Likewise.
12204         * groff/groff.cc (main): Likewise.
12205         * grodvi/dvi.cc (main): Likewise.
12206         * refer/refer.cc (main): Likewise.
12207         * indxbib/indxbib.cc (main): Likewise.
12208         * lkbib/lkbib.cc (main): Likewise.
12209         * soelim/soelim.cc (main): Likewise.
12210         * addftinfo/addftinfo.cc (main): Likewise.
12211         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
12212         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
12214         * troff/token.h (process_input_stack): Don't declare as static.
12215         * troff/input.cc: Likewise.
12217         * troff/node.c (invalidate_fontno): Make it a static member of
12218         class font_family.  Change callers.
12219         * troff/node.c: Change declaration.
12221         * tbl/main.cc (struct input_entry_format): Add explicit public
12222         specifier.
12223         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
12224         struct double_hline_stuff): Likewise.
12225         * tbl/table.h (struct entry_format): Likewise.
12226         * pic/object.h (struct saved_state): Likewise.
12228         * include/stringclass.h: Add forward declarations of friend
12229         functions that are later declared as inline.  Don't include inline
12230         specifier in friend declaration.
12232         * libgroff/lib.h: Declare popen and pclose.
12233         * acgroff.m4 (GROFF_POPEN): New macro.
12234         * configure.in: Call it.
12236         * include/lib.h (PI): New constant. Undef first if necessary.
12237         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
12238         * grops/ps.cc (degrees, radians): Likewise.
12239         * libgroff/font.cc (font::get_skew): Likewise.
12241         * grops/ps.cc (is_ascii): New function.
12242         (ps_output::put_string): Use is_ascii.  Use csprint rather than
12243         isprint.
12244         (ps_printer::define_encoding): Use csspace.
12245         * libgroff/strtol.c (ISASCII): New macro.
12246         (strtol): Cast arguments to is*() and tolower() to unsigned char.
12247         Use ISASCII rather than isascii.
12248         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
12249         * libgroff/cset.cc: Likewise.
12250         * libdriver/input.cc: Include cset.h.
12251         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
12252         than isdigit().
12254         * refer/refer.cc (main): Use %ld rather than %d for longs.
12256         * libbib/index.cc (index_search_item_iterator::get_tag): Use
12257         S_ISREG macro.
12259         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
12261 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
12263         * troff/input.cc (hyphenation_code): Skip white space between
12264         char/code pairs.
12266 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
12268         * tbl/table.h (table::entry_list_tailp): New member.
12269         (table::table): Initialize it.
12270         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
12271         behaviour.
12273 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
12275         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
12276         with negative horizontal positions. Remove casts of glyph::hpos to
12277         int.
12278         (USHRT_MAX): Delete definition.
12279         (SHRT_MAX, SHRT_MIN): New definitions.
12280         (glyph::hpos): Change type to short.
12281         (tty_printer::end_page): Output multiple backspaces if necessary.
12282          Remove casts of glyph::hpos to int.
12283         
12284 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
12286         * tmac/tmac.s (@RT): New definition.
12288 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
12290         * refer/refer.cc (do_file): Make sure current_filename is set when
12291         filename is "-".
12293         * pic/common.cc (common_output::dot_line): Handle zero length
12294         lines.
12296 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
12298         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
12299         (par@init): Initialize \n[HY].
12301 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
12303         * troff/dictionary.cc (dictionary::remove): Continue when
12304         r < j < i.
12306 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
12308         * Makefile.com (.y.cc): Avoid ending up with two versions of
12309         $(YTABH).
12311 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
12313         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
12314         (\(,C): Likewise.  Also fix typo.
12316 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
12318         * lib.h: Delete extraneous semi-colon.
12320         * Add pso request: `so' from a pipe.
12321         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
12322         (file_iterator::close): New function.
12323         (file_iterator::~file_iterator, file_iterator::next_file): Use
12324         file_iterator::close.
12325         (file_iterator::backtrace): Say `process' rather than `file' when
12326         the stream is popened.
12327         (pipe_source): New function.
12328         (init_input_requests): Bind ".pso" to pipe_source.
12330 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
12332         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
12334         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
12335         digits in lower case.
12337 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
12339         * Version 1.08 released.
12341         * Makefile.in (dist): Insert || true after ln -s commands that
12342         might fail.
12344         * mm: Update to mm 1.16.
12346         * acgroff.m4 (GROFF_CSH_HACK): New macro.
12347         * configure.in: Call GROFF_CSH_HACK.  Substitute for
12348         SH_SCRIPT_SED_CMD.
12349         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
12350         MDEFINES.
12351         * nroff/Makefile.sub (nroff): New target.
12352         (install_data): Install nroff.
12353         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
12354         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
12356 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
12358         * eqn/Makefile.sub (neqn): Add chmod +x.
12360         * grog/Makefile.sub (grog): Remove spurious semi-colon.
12362 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
12364         * troff/input.cc (string_iterator::string_iterator()): Initialize
12365         lineno and count.
12367 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
12369         * troff/div.cc (macro_diversion::space,
12370         top_level_diversion::space): Don't set high_water_mark.
12371         (macro_diversion::output, top_level_diversion::output): Don't
12372         include post line space in high water mark.
12374 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
12376         * eqn/eqn.y: Don't define YYDEBUG.
12377         * pic/pic.y: Likewise.
12379 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
12381         * tmac/tmac.e ([3): Add space after comma following editors.
12382         Change double spaces to single spaces.
12383         ([4): Change double spaces to single spaces.
12385         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
12386         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
12387         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
12388         after %!PS-Adobe- (for Newsprint).
12390         * troff/div.cc (top_level_diversion::begin_page): When
12391         before_first_page is 1, set page_number to 1.
12393 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
12395         * eqn/box.cc (box::top_level): Protect equation with \&.
12397 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
12399         * groff/groff.cc (possible_command::set_name): Delete old name.
12401         * groff/groff.cc (possible_command::~possible_command): Use
12402         a_delete.
12404         * troff/node.cc (troff_output_file::begun_page): New member.
12405         (troff_output_file::troff_output_file): Initialize it.
12406         (troff_output_file::really_begin_page): Only output V command if a
12407         page has been begun.
12409         * pic/pic.y (placeless_element): Delete argument to PRINT after
12410         use.
12412 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
12414         * Make wrapman work.
12415         * troff/div.h (class top_level_diversion): Replace
12416         first_page_begun by before_first_page (with opposite sense).
12417         * Change first_page_begun to before_first_page inverting sense.
12418         * troff/div.cc (class nl_reg): New class.
12419         (init_div_requests): Use class nl_reg for \n(nl.
12420         (top_level_diversion::begin_page): Don't call
12421         output_file::begin_page if before_first_page is 2;
12422         reset before_first_page afterwards.  If have_next_page_number is
12423         false, then always increment page_number.
12424         * tmac/tmac.an: Set traps within TH rather than at the top-level.
12425         Restore compatibility mode after loading, and then disable
12426         compatibility mode in TH.
12428 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
12430         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
12431         past last line.
12432         * troff/node.h (output_file::trailer): Declare.
12433         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
12434         * troff/node.cc (output_file::trailer): New function.
12435         (troff_output_file::~troff_output_file): Move most code into...
12436         (troff_output_file::trailer): New function.
12437         (class troff_output_file): Delete page_length member. Declare
12438         trailer().
12439         (troff_output_file::really_begin_page): Use current page length
12440         for final V command.
12442         * tbl/main.cc (struct options): New decimal_point_char member.
12443         (options::options): Initialize this.
12444         (process_options): Implement decimalpoint option.
12445         (process_data): Pass decimal_point_char option to table::table.
12446         * tbl/table.h (class table): New decimal_point_char member.
12447         (table::table): Add additional argument.
12448         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
12449         second argument specifying decimal point character.  Use this
12450         instead of '.'.
12451         (table::table): Initialize decimal_point_char.
12452         (table::add_entry): Change call to find_dot.
12454         * troff/input.cc (get_copy, token::next): Implement \V.
12455         (interpolate_environment_variable): New function.
12457 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
12459         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
12460         * pic/pic.y: Likewise.
12462         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
12463         Add casts to int.
12464         * refer/ref.cc (reference::insert_field, reference::delete_field):
12465         Likewise.
12466         * troff/number.cc (parse_term): Likewise.
12468         * acgroff.m4 (GROFF_PROG_YACC): New macro.
12469         * configure.in: Use GROFF_PROG_YACC.
12471         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
12472         and g++.
12473         * Makefile.in (OPTIMIZE): New define.
12474         (DEBUG): Empty by default.
12475         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
12477         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
12478         (GROFF_ARRAY_DELETE): Likewise.
12479         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
12481         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
12483         * devps/psstrip.sed: Use different delimiter on last line (so that
12484         it works with BSD 4.4 sed.)
12486 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
12488         * devps/psstrip.sed: Delete comments.
12490         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
12491         optind, opterr, optarg.
12492         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
12493         opterr, optarg.
12495 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
12497         * Makefile.in (check): Dummy target.
12499 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
12501         * Version 1.07 released.
12503         * Integrate mm 1.11.
12505         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
12506         where start_col was meant.
12508 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
12510         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
12512 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
12514         * troff/input.cc (token::next): Make \z\o'...' and similar things
12515         work.
12517         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
12518         constants.
12519         (environment): Add margin_character_flags member.
12520         * env.cc (environment::environment(symbol),
12521         environment::environment(const environment *): Initialize
12522         margin_character_flags.
12523         (margin_character): Rewrite.
12524         (environment::output_line): Add a margin character if
12525         margin_character_flags is non-zero.  Turn off the
12526         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
12527         zero, use margin_character_node without copying and then set
12528         margin_character_node to 0.
12530         * devps/DESC.in: Change minimum size to 1000.
12532 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
12534         * troff/symbol.h (symbol::hash): Change return type to unsigned
12535         long.
12536         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
12537         Add casts to int.
12539         * test-groff: Use -r rather than -x.
12541         * grops/psfig.diff: Include in distribution again.
12543 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
12545         * Makefile.in (dist): Use gzip.
12547 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
12549         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
12550         unistd.h as well as in stdlib.h.
12551         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
12552         defined; otherwise include <sys/types.h> and <unistd.h> if
12553         UNISTD_H_DECLARES_GETOPT is defined.
12555         * configure.in: use builtin(include, ... rather than include(...
12556         * configure: Regenerate with autoconf 1.3.
12558         * libdriver/print.cc (printer::adjust_arc_center): Use new
12559         algorithm suggested by Andy Fyfe.
12561         * libdriver/printer.cc (printer::adjust_arc_center): New function.
12562         * include/printer.h: Declare this.
12563         * grops/ps.cc (ps_printer::draw): Use it.
12564         * grodvi/dvi.cc (dvi_printer::draw): Use it.
12566 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
12568         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
12570 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
12572         * eqn/main.cc (main): Handle "eqn -".
12574 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
12576         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
12578         * mm: Integrate version 1.08.
12580         * pic/troff.cc (troff_output::finish_picture): Set
12581         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
12582         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
12583         if it's not defined. Check whether the register is non-zero rather
12584         than whether it's not defined.
12585         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
12587         * indxbib/indxbib.cc: Move all signal handling into...
12588         * indxbib/signal.c: New file.
12589         * configure.in: Call AC_RETSIGTYPE.
12591         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
12592         * configure.in: Call GROFF_STRUCT_EXCEPTION.
12593         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
12595         * troff/input.cc (token::token, token::operator=): Work round SGI
12596         C++ bug.
12597         * pic/object.cc (position::position): Likewise.
12599 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
12601         * pic/pic.h: Move declaration of hypot().
12603 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
12605         * pic/pic.h: Declare hypot().
12607         * pic/pic.h: Define M_PI if necessary.
12609 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
12611         * tmac/tmac.e (re): Add alternative version that doesn't use groff
12612         `.ta T' feature.
12614         * devps/prologue.ps (RE): Handle the possibility that the old font
12615         doesn't have a FontName entry.
12617 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
12619         * tmac/tmac.e (fam): Redefine to set family in environment 2.
12620         (@C): Use @fam not fam.
12622 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
12624         * lookbib/lookbib.cc (main): Change type of start to const char *.
12625         * lkbib/lkbib.cc (main): Likewise.
12627         * eqn/lex.cc (definition::definition): Don't use member
12628         initializer syntax for members of anonymous unions.
12630         * troff/input.cc (input_stack::backtrace): Change type of to const
12631         char *.
12633 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
12635         * include/stringclass.h (class string): Declare inline friend
12636         functions as inline in class declaration.
12637         * troff/hvunits.h (class hunits, class vunits): Likewise.
12638         * include/refid.h (class reference_id): Likewise
12639         * troff/troff.h (points_to_units(units), scale(units, double)):
12640         Delete declarations.
12641         * libdriver/input.cc (get_char): Delete declaration.
12642         * include/lib.h: Change 2nd argument of getopt from const char **
12643         to char **.
12644         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
12645         char **' before assigning to a `const char **'.
12646         * tbl/table.cc: Delete extra declarations of prints().
12648 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
12650         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
12651         char **' before assigning to a `const char **'.
12653         * libgroff/errarg.cc (errarg::errarg): Don't use member
12654         initializer syntax for members of anonymous unions.
12656 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
12658         * mm: Integrate version 1.07.
12660 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
12662         * troff/input.c (translate2): Rename to
12663         (translate_no_transparent).
12664         (init_input_requests): Rename tr2 to trnt.
12666 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
12668         * troff/charinfo.h (class charinfo): Add transparent_translate field.
12669         (charinfo::set_translation, charinfo::set_special_translation):
12670         Add second argument that specifies value for
12671         transparent_translate.
12672         (charinfo::get_translation, charinfo::get_special_translation):
12673         Add optional second argument that specifies whether translation is
12674         being used for transparent throughput.
12675         * troff/input.cc (charinfo::set_translation,
12676         charinfo::set_special_translation): Handle second argument.
12677         (charinfo::charinfo): Initialize transparent_translate.
12678         (translate): Split main part off into
12679         (do_translate): New function.  Pass argument saying whether
12680         translation applies to transparent throughput.
12681         (translate2): New request.
12682         (init_input_requests): Bind translate2 to `tr2'.
12684 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
12686         * tbl/table.h (class table): Add `nokeep' flag.
12687         * tbl/main.cc (process_options): Handle `nokeep' option.
12688         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
12689         table::do_bottom): Don't output keep/release macro definitions or
12690         calls when `nokeep' option has been specified.
12692 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
12694         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
12696 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
12698         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
12699         block_entry::divert, alphabetic_block_entry::divert): Add extra
12700         argument giving column separation.
12701         (table::compute_widths): Pass column separation to
12702         table_entry::divert().
12703         (block_entry::do_divert): If an entry spans multiple columns and a
12704         minimumum width has been specified for each column, then set the
12705         line length to the sum of the widths (plus possibly the column
12706         separations).
12708         * troff/input.cc (set_escape_char): Don't set the escape_char
12709         until after calling has_arg().
12711 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
12713         * tbl/table.cc (table::do_top): Add missing \s0 for double box
12714         case.
12716         * tbl/table.cc (table::print_double_hline): Avoid extra new line
12717         in case where r > nrows - 1.
12719         * tbl/table.cc (BODY_HEIGHT): Deleted.
12720         (LINE_SEP): New definition.
12721         (table::print_single_hline, table::print_double_hline,
12722         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
12723         table::do_row, table::do_top): Use LINE_SEP space before a line
12724         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
12726         * tbl/table.cc (text_entry::print_contents): New function.
12727         (text_string_name, right_text_string_name): Deleted.
12728         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
12729         (simple_text_entry::do_width, numeric_text_entry::do_width,
12730         alphabetic_text_entry::do_width): Don't store the contents of the
12731         entry in a string.
12732         (left_text_entry::simple_print, right_text_entry::simple_print,
12733         center_text_entry::simple_print,
12734         alphabetic_text_entry::simple_print,
12735         numeric_text_entry::simple_print): Print the entry directly
12736         instead of using the stored string.
12738 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
12740         * devps/Makefile: Strip PostScript files.
12741         * devps/prologue: Rename to...
12742         * devps/prologue.ps.
12743         * devps/psstrip.sed: New file.
12744         * devps/download: Use .pfa rather than .ps for installed versions
12745         of fonts.
12747 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
12749         * troff/env.cc (input_trap): Give a warning if the argument is out
12750         of range.
12752         * troff/env.cc (adjust): Treat negative argument as missing. Round
12753         argument > 5 down to 5.
12755         * troff/env.cc (center, right_justify): Make negative argument zero.
12757         * troff/div.cc (page_offset, vertical_position_traps): Treat
12758         invalid argument as missing.
12759         * troff/env.cc (line_spacing, line_length, title_length, indent,
12760         underline, hyphen_line_max_request, control_char,
12761         no_break_control_char, widow_control_request, adjust, input_trap,
12762         point_size): Likewise.
12763         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
12764         constant_space): Likewise.
12765         * troff/input.cc (compatible, shift, warn_request,
12766         set_escape_char): Likewise.
12768         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
12769         * tbl/table.cc (table::table): Likewise.
12771         * Makefile.dev (install_dev): depends on $(DEVFILES).
12773 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
12775         * devX75, devX75-12, devX100, devX100-12: New directories.
12776         * Makefile.in: Add these to DEVDIRS.
12778         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
12779         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
12780         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
12781         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
12782         targets.
12783         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
12784         (uninstall): New target.
12785         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
12786         uninstall_prog, uninstall_dev): New targets.
12788         * troff/div.cc (return_request): Treat an invalid argument as
12789         missing.
12791 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
12793         * tmac/tmac.e ((f): Set up the environment even when there's a
12794         current diversion.  Transperently throughput a call to @N.
12795         (@N): New macro.
12797 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
12799         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
12800         up to vertical resolution.
12802         * tbl/table.cc (table::do_row): Change row number after printing
12803         stuff list.
12805         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
12807 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
12809         * Rename CHANGES to NEWS.
12811 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
12813         * libgroff/new.cc (operator new): Avoid calling malloc(0).
12815 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
12817         * man.ultrix: Removed.
12819 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
12821         * Makefile.comm (extraclean): Delete files whose names begin with
12822         `='.
12824         * pic/troff.cc (troff_output::text): Fix typo in implementation of
12825         aligned text.
12827 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
12829         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
12830         * troff/div.cc (page_length, need_space, space_request): Treat
12831         invalid optional argument as missing.
12832         * troff/env.cc (number_lines): If the first argument is present
12833         but not a number, turn on line numbering, don't change the next
12834         line number and parse the remaining arguments.
12836         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
12838 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
12840         * eqn/box.h: Change declaration accordingly.
12841         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
12842         the specified size was bad but don't give an error.  Check for
12843         overflow.
12844         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
12845         * eqn/lex (do_size): Likewise.
12847 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
12849         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
12850         compatible headers.
12852 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
12854         * tbl/table.cc (table::init_output): Improve error message when
12855         table won't fit on one page.
12857 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
12859         * pic/troff.cc (troff_output::start_picture): Generate line
12860         containing a horizontal motion equal to the width of the picture.
12862         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
12863         using GROFF_COMMAND_PREFIX environment variable.
12865 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
12867         * mdate.sh: Use $NF rather than $(NF).
12869 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
12871         * pic/main.cc (main):  Use %1 not %c in argument to warning.
12873         * eqn/main.cc (main): Output code to check that geqn was given the
12874         correct -T option.
12876 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
12878         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
12879         `ln -s ../Makefile .; make; rm -f Makefile'.
12881         * troff/hyphen: Rename to...
12882         * troff/hyphen.us:
12883         * troff/input.cc (main): Delete -H option. Don't call
12884         read_hyphen_file().
12885         * troff/env.cc: Include searchpath.h and macropath.h.
12886         (exception_dictionary): Deleted.
12887         (ht): Deleted.
12888         (read_hyphen_file): Deleted.
12889         (hyphenation_language): New struct.
12890         (class trie, class hyphen_trie): Move declarations up.
12891         (trie_node::~trie_node): Deleted.
12892         (trie::delete_trie_node): New function.
12893         (trie::do_delete): New pure virtual function.
12894         (hyphen_trie::do_delete): New function.
12895         (trie::~trie): New function.
12896         (hyphen_trie::~hyphen_trie): New function.
12897         (trie::clear): No need to chcek that tp is not 0.
12898         (current_language, language_dictionary): New variables.
12899         (hyphen_word): Give an error if no current language.  Use
12900         exceptions dictionary in current language.
12901         (hyphen_trie::read_patterns_file): Find file using macro_path.
12902         Allow comments (starting with %) in patterns file.  Don't make it
12903         a fatal error if the file can't be found.
12904         (hyphenate): Return if no current language.  Get the exceptions
12905         dictionary and the hyphenation patterns from the current language.
12906         (set_hyphenation_language): New variable.
12907         (hyphenation_patterns_file): New function.
12908         (hyphenation_language_reg): New class.
12909         (hyphenation_language_reg::get_string): New function.
12910         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
12911         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
12912         register.
12913         * groff/groff.cc (main, help, synopsis): Delete -H option.
12914         * include/Makefile.sub: Don't define HYPHENFILE.
12915         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
12916         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
12917         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
12918         hyphenation patterns.
12920 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
12922         * eqn/neqn.sh: New file.
12923         * eqn/Makefile.sub: Handle neqn.sh.
12925         * eqn/eqn.h: Declare `nroff' variable.
12926         * eqn/box.cc (param_table): Add `nroff' param.
12927         (nroff): Define it.
12928         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
12929         variable.
12930         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
12932         * troff/troff.h (WARN_FONT): New warning.
12933         (WARN_TOTAL): Change accordingly.
12934         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
12935         (warning_table): Add WARN_FONT.
12936         * troff/node.cc (mount_font_no_translate): Pass argument to
12937         font::load_font.  If this is non-zero, give a warning.
12938         Don't give an error message when accessing a font that has already
12939         been found to be invalid.
12940         * include/font.h (font::load, font::load_font): Add additional
12941         optional argument which suppresses error message if the font is
12942         not found.
12943         * libgroff/font.cc (font::load_font): Handle additional argument.
12944         (font::load): Add additional argument. If this is non-null, set it
12945         to 1 and don't give error message.
12947         * include/printer.h (printer::end_page): Add argument giving
12948         length of page.
12949         * libdriver/input.cc (do_file): Pass this.
12950         * grops/ps.cc (ps_printer::end_page): Add argument.
12951         * grodvi/dvi.cc (dvi_printer::end_page,
12952         draw_dvi_printer::end_page): Add argument.
12953         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
12954         columns_per_page members. New member nlines.
12955         (DEFAULT_LINES_PER_PAGE): Deleted.
12956         (tty_printer::tty_printer): Don't compute lines_per_page from
12957         font::paperlength. Don't compute columns_per_page from
12958         font::paperwidth.
12959         (tty_printer::add_char): Don't check horizontal position against
12960         columns_per_page. Grow glyphs vector if neccessary.
12961         (tty_printer::end_page): Add argument giving page_length in units.
12962         Discard lines past end of page.
12964 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
12966         * tmac/tmac.tty-char: Fix definition of \(/l.
12968         * tmac/tmac.X: Define \(en.
12970 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
12972         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
12973         lpq, then use lp rather than lpr.
12975         * tmac/tmac.s (par@reset): Don't call `ad'.
12976         (par*env-init): Call `ad'.
12978 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
12980         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
12981         date.
12983         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
12984         * indxbib/indxbib.cc: Likewise.
12986 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
12988         * libgroff/putenv.c: New file.
12989         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
12990         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
12991         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
12992         stdlib.h with AC_HAVE_HEADERS.
12994 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
12996         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
12997         does not exist.
12999 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
13001         * eqn/box.cc (gsize): Make it an int.
13002         (set_gsize): Parse argument handling increment or decrement.
13003         (box::top_level): Convert gsize to a string.
13005         * troff/input.cc (exit_troff): Make buf unsigned char [].
13006         Call to make_temp_iterator casts buf to char*.
13008         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
13010         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
13011         * Makefile.cpg (depend.temp): Likewise.
13013         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
13015         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
13017 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
13019         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
13021 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
13023         * Version 1.06 released.
13025         * Integrate mm 1.04.
13027 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
13029         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
13031 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
13033         * afmtodit/afmtodit.pl: Add -n option that disables generation of
13034         ligatures command.
13035         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
13036         afmtodit. Regenerate.
13038         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
13039         @f back past the current position.
13041         * tmac/tmac.e: Change calls to @R so that comments are not part of
13042         arguments.
13044 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
13046         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
13048         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
13049         check that we can link a call to a function declared in <stdio.h>.
13050         (GROFF_UNISTD_H): New macro.
13051         * configure.in: Call it.
13052         * Makefile.in: Document it.
13053         * include/posix.h: New file.
13054         * troff/troff.h: Don't include <osfcn.h>
13055         * troff/input.cc: Include posix.h.
13056         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
13057         osfcn.h.
13058         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
13059         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
13060         <fcntl.h>.
13061         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
13062         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
13063         * libbib/search.cc (O_RDONLY): Delete definition.
13064         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
13065         Don't include <osfcn.h>.
13067         * acgroff.m4 (GROFF_TIME_T): New macro.
13068         * configure.in: Call it.
13069         * Makefile.in: Document it.
13071         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
13072         * configure.in: Call it.
13073         * Makefile.in: Document -DTRADITIONAL_CPP.
13074         * include/ptable.h: Don't include generic.h.
13075         (name2): Define it.
13077         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
13078         Afterwards remove [T1 and [T2.
13079         (ref*spec!0, ref*spec!2): Use T1 rather than T.
13080         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
13081         (ref*add-T2): Renamed from ref*add-T.
13082         (ref*add-T1): New macro.
13084 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
13086         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
13088         * libbib/index.cc: Include <fcntl.h>.
13089         (O_RDONLY): Define if necessary.
13090         (make_index_search_item, index_search_item_iterator::get_tag,
13091         index_search_item::check_files): Use O_RDONLY.
13092         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
13093         (O_RDONLY): Define if necessary.
13094         (search_list::add_file): Use O_RDONLY.
13095         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
13096         <sys/stat.h>.
13097         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
13098         (main): Use these.
13100         * libbib/index.cc (S_ISREG): Define it if necessary.
13101         (index_search_item::load): Use S_ISREG.
13103         * include/driver.h: Include <errno.h>.
13105 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
13107         * eqn/box.cc (body_height): Increase default value to 85.
13108         (body_depth): Increase default value to 35.
13110 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
13112         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
13113         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
13114         protected from expansion with \E.
13116         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
13118         * Makefile (Makefile): New target.
13120         * Makefile.sub (configure, distfiles): New targets.
13122         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
13123         construct.
13125 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
13127         * eqn/box.cc (param_table): Add body_height and body_depth.
13129         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
13131 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
13133         * psbb/Makefile.sub: Don't link with libgroff.a.
13135         * acgroff.m4 (GROFF_PUTENV): New macro.
13136         * configure.in: Call GROFF_PUTENV.
13137         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
13138         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
13139         is defined.
13141         * troff/env.cc (distribute_space): Rename force_forward argument
13142         to force_reverse.  Reverse the list if force_reverse is true.
13144 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
13146         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
13148         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
13149         height or depth to be negative.  Guard against SUP_RAISE quantity
13150         being negative.
13152 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
13154         * devps/generate/textmap: Add `an' (arrowhorizex).
13155         * tmac/tmac.ps: \(an overlaps horizontally.
13156         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
13158         * devps/symbolchars: Add arrowverttp, arrowvertbt.
13159         * devps/textmap: Add arrowvertex.
13160         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
13161         updownarrow delimiters.
13162         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
13164         * tbl/table.cc (simple_entry::position_vertically,
13165         block_entry::position_vertically):  For a centered entry, perform
13166         the motion in two stages.
13168         * refer/refer.cc (split_punct): Don't call lookup_token if there
13169         is no token.
13171 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
13173         * troff/input.cc (token::next): Delete token_node after copying
13174         token.
13176         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
13177         cur_point_size.
13179         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
13181         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
13183 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
13185         * grops/ps.cc (usage): -b option takes an argument.
13187         * devps/prologue (PLG): New procedure.
13188         * grops/ps.cc (main, usage): New -g option.
13189         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
13190         length using PLG.
13192 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
13194         * include/cset.h: Include <limits.h> if we have it.
13196         * libgroff/illegal.cc: New file.
13197         * include/lib.h (illegal_input_char): Use table.
13198         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
13199         * pic/lex.cc (ARG1): Renumber to 14.
13200         * eqn/lex.cc (ARG1): Likewise.
13202         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
13203         (eg 1.05.90) correctly.
13205 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
13207         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
13208         Rename $r and $R registers to $v and $V.
13209         ($r, $R): Initialize to 0.
13210         (@v, @V): New macros.
13211         (sz): Call @v.
13212         (@M): Call @V.
13214         * troff/input.cc (main, usage): Add -R option that says not to
13215         load troffrc.
13216         * eqn/main.cc (main, usage): Rename -n to -R.
13218 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
13220         * devps/DESC.in: Leave font positions 5-9 blank.
13221         * devdvi/DESC.in: Likewise.
13223         * grog/grog.pl: Handle `.PS <file' correctly.
13225         * troff/input.cc (input_stack::push): Improve error message when
13226         input stack limit exceeded.
13228 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
13230         * refer/refer.cc (main): Fix typo in handling of `a' option.
13232         * refer/refer.cc (do_bib): In state START after a newline remain
13233         in state START.
13235         * groff/groff.sh: Deleted.
13236         * groff/Makefile.sub: Delete handling of groff.sh.
13238         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
13239         to determine whether to use \X'ps:...'.
13240         * tmac/troffrc: Set 0p register to 0.
13241         * tmac/tmac.ps: Set 0p register to 1.
13243         * groff/groff.cc: Support -X option. Give warning for -TXps and
13244         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
13245         * tmac/troffrc: Support -r.X=1.
13247         * pic/troff.cc (troff_output::dot): Don't test
13248         zero_length_line_flag.
13250 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
13252         * include/lib.h: Declare getopt() and friends unless
13253         STDLIB_H_DECLARES_GETOPT is defined.
13255         * doc/chars.tr: Delete.
13256         * man/groff_char.man: New file.
13258 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
13260         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
13261         user has changed register format.
13263 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
13265         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
13266         `postpro' command in DESC file.  Get spooler command from `print'
13267         command in DESC file.  Execute spooler command with /bin/sh.
13269         * groff/groff.cc: Split Unix-specific parts into...
13270         * groff/pipeline.c: New file.
13272         * LICENSE: Delete.
13273         * COPYING: New file.
13274         * all files: Update copyright notices.
13276         * Rearrange files.  Redo Makefiles.  Use autoconf.
13278 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
13280         * troff/input.c (charinfo_to_node_list): Interpret character
13281         definition with escape_char of `\'.
13283 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
13285         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
13286         Define INT_DIGITS as big enough for 64-bit integer.
13287         * lib/strtol.c: Don't include lib.h.
13288         * lib/lib.h: Delete ifdef __cplusplus stuff.
13290 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
13292         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
13293         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
13294         get DESC from current directory.
13296 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
13298         * tbl/main.c (main): Always reset the line number when reading
13299         from stdin.
13301         * tbl/table.c (table::print_single_hline, table::print_double_hline,
13302         table::define_bottom_macro, table::do_row, table::do_top): Round
13303         vertical spacing up to vertical resolution.
13305 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
13307         * ps/ps.h (enum resource_type): Avoid comma at end of
13308         enumerator-list.
13309         * dvi/dvi.c (class dvi_printer): Likewise.
13310         * dvi/tfmtodit.c (gf::load): Likewise.
13311         * refer/label.y (struct expression): Likewise.
13312         * refer/refer.c (class label_processing_state): Likewise.
13313         * refer/indxbib.c (do_file): Likewise.
13314         * troff/troff.c (enum warning_type): Likewise.
13315         * tbl/main.c (process_data): Likewise.
13316         * troff/charinfo.h (class charinfo):
13318 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
13320         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
13322 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
13324         * groff.c: Move to new groff subdirectory.
13325         * groff/Makefile: New file.
13326         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
13328         * man/mdate.sh: Use ls -L if supported.
13330         * Consolidate all header files produced by gendef into lib/defs.h.
13331         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
13332         Don't include path.h.
13333         * lib/Makefile (path.h): Don't generate.
13334         * troff/input.c: Include defs.h. Don't include config.h.
13335         * troff/Makefile (config.h): Don't generate.
13336         * refer/index.h: Don't include suffix.h.
13337         * refer/index.c: Include defs.h.
13338         * refer/indxbib.c: Include defs.h.
13339         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
13340         defs.h.
13341         * refer/Makefile (suffix.h, path.h): Don't generate.
13342         * groff.c: Don't include config.h. Include defs.h.
13343         * Makefile (config.h): Don't generate.
13344         (lib/defs.h): Generate.
13345         (topclean): Remove lib/defs.h.
13347 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
13349         * lib/malloc.c, lib/getpagesize.h: Deleted.
13350         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
13351         related stuff.
13352         * lib/Makefile: Delete malloc-related stuff.
13353         * lib/new.c: Workaround COOKIE_BUG if necessary.
13355         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
13356         needed header files directly.
13357         * refer/refer.h: Omit definition of DEFAULT_INDEX.
13358         * Makefile: Include definition of DEFAULT_INDEX in path.h.
13360 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
13362         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
13363         argument.
13364         * lib/font (font::load_desc, font::load): Don't split argument of
13365         unknown command.
13366         (font::handle_unknown_font_command): Change type.
13367         * ps/ps.c (ps_font::handle_unknown_font_command,
13368         handle_unknown_desc_command): Change type.
13369         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
13371 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
13373         * lib/font.h (font::handle_unknown_font_command): Add file and
13374         line arguments.
13375         * lib/font.c (font::handle_unknown_font_command):
13376         * ps/ps.c (ps_font::handle_unknown_font_command):
13377         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
13378         lineno arguments.  Use _with_file_and_line functions for error
13379         reporting.
13381         * lib/fontfile.c (font::unknown_desc_command_handler): New static
13382         data member.
13383         * lib/font.c (font::set_unknown_desc_command_handler): New
13384         function.
13385         (font::load_desc): For unknown commands, call
13386         unknown_desc_command_handler if not null.
13387         * lib/font.h (class font): Declare them.
13388         (FONT_COMMAND_HANDLER): New typedef.
13389         * ps/ps.c (handle_unknown_desc_command): New function.
13390         (main): Set bflag if we had a -b option. Call
13391         font::set_unknown_desc_command_handler.
13392         (broken.h): Don't include.
13393         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
13394         submake 
13395         * ps/devps/Makefile: Add `broken' command to DESC file using
13396         BROKEN_SPOOLER_FLAGS.
13398         * macros/tmac.e ([, ]): Add as synonyms for { and }.
13400         * macros/tmac.e ($p): Only exdent if \$3 > 0.
13402         * macros/tmac.e (@R, @S): New macros.
13403         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
13404         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
13405         Declare $H, $[0-9], .. macros with @S.
13406         Declare |0, |1, |2, |3 strings with @S.
13408         * macros/tmac.e (@S): Rename to @U.
13410         * macros/tmac.e (@z): Define @b and bp as empty instead of
13411         deleting them,
13413         * macros/tmac.e (@m): Deleted.
13414         (@h): Don't call @m.
13415         (@z): Don't set @m trap.
13417         * macros/tmac.e ($h, $f): Define |z as empty string.
13419         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
13420         (@q): Likewise.
13422         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
13423         removing them.
13424         ()f): Likewise for * register.
13426         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
13427         argument is missing, don't change $R.  Call sr with three
13428         arguments when initializing.
13430 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
13432         * macros/tmac.e (sr): New macro.
13433         Initialize $r and $R using sr.
13435         * macros/tmac.e (,): Delete \*(#[.
13437         * troff/env.c (set_tabs): Read the tab type even if the position
13438         is bad.  Allow the position of the first tab stop to be negative.
13440 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
13442         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
13443         _POSIX_VERSION.
13444         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
13445         rather than -DPATHCONF_MISSING.
13446         * Makefile: Get rid of PATHCONF_MISSING.
13448         * refer/map.c: New file.
13449         * refer/index.c: Interface to mmap through map.c.  Rename map_size
13450         to map_len.
13451         * refer/Makefile: Handle map.c.
13452         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
13454 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
13456         * Makefile: RANLIB should be `true' if there is no ranlib.
13457         * lib/Makefile (libgroff.a): Simplify.
13458         * driver/Makefile (libdriver.a): Simplify.
13460         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
13461         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
13462         defined.
13464 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
13466         * troff/env.c (compare_ranges): Declare as extern "C".
13468         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
13470         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
13472 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
13474         * pic/troff.c (troff_output::text): Merge in grops_output::text,
13475         but conditionalize use of \X based on \*(.T.
13476         (grops_output::*): Deleted.
13477         * pic/output.h: Delete declaration of make_grops_output.
13478         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
13479         by default. -n sets it to 0.
13480         (usage): Corresponding changes.
13481         * groff.c (main): Don't pass -x or -p to pic.
13482         * groff.sh: Likewise.
13484         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
13485         to be non-zero.
13487         * ps/devps/afmtodit: Change calculation of asc_boundary and
13488         desc_boundary.  Make these bounds inclusive.
13489         * ps/devps: Regenerate font files.
13491 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
13493         * macros/tmac.latin1: New file.
13494         * macros/tmac.tty-char: Use tmac.latin1.
13495         (tmac.tty-tr): Deleted.
13496         * macros/Makefile: Install tmac.latin1.
13497         * macros/tmac.dvi: Use tmac.latin1.
13498         * macros/troffrc: Translate \[char160] onto no-break space here.
13499         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
13501 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
13503         * macros/tmac.Xps: Use `do' request.
13505         * macros/tmac.ps: Use `do' request.
13507         * macros/tmac.e (@C): Use `do' request.
13509         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
13510         * macros/Makefile: Install tmac.X*.
13512         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
13513         * tty/Makefile: Don't install tmac.tty*.
13514         * macros/Makefile: Install tmac.tty*.
13516         * dvi/tmac.dvi: Move to macros.
13517         * dvi/Makefile: Don't install tmac.dvi.
13518         * macros/Makefile: Install tmac.dvi.
13520         * ps/tmac.ps*: Move to macros.
13521         * ps/Makefile: Don't install tmac.ps*.
13522         * macros/Makefile: Install tmac.ps*.
13524         * eqn/box.c: Provide draw_lines parameter corresponding to -D
13525         option.
13526         * macros/eqnrc: Set draw_lines parameter based on device.
13527         * groff.c: Don't pass -D flag to eqn.
13528         * groff.sh: Likewise.
13529         * eqn/main.c: Warn about use of -D.
13531         * troff/input.c (process_startup_file): New function.
13532         (main): Call process_startup_file().
13533         * macros/troffrc: New file.
13534         * macros/Makefile: Install troffrc.
13535         * groff.c (main): Don't pass extra -m option to troff. For a 
13536         pseudo device pass the name of the pseudo device to troff using
13537         -d.
13538         * groff.sh: Likewise.
13539         * groff.c (possible_command::prepend_arg): Deleted.
13541         * troff/input.c (do_request): New function.
13542         (init_input_requests): Bind "do" to do_request.
13544         * eqn/main.c (main): Instead of loading eqnchar from device directory,
13545         load eqnrc from macro directory.
13546         * macros/eqnrc: New file.
13547         * macros/Makefile: Install eqnrc.
13548         * ps/devps/eqnchar: Deleted.
13549         * ps/devps/Makefile: Don't install eqnchar.
13550         * dvi/devdvi/eqnchar: Deleted.
13551         * dvi/devdvi/Makefile: Don't install eqnchar.
13552         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
13553         variable optM.
13555         * lib/device.[ch]: New files.
13556         * lib/font.h (font::set_device_name, font::get_device_name):
13557         Deleted.
13558         * lib/fontfile.c: Use device.h.
13559         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
13560         * troff/input.c: Delete definition of `device'.
13561         (main): Don't initialize device.
13562         * troff/troff.h: Include device.h rather than declaring device.
13563         * troff/Makefile: No need to handle DEVICE.
13564         * driver/input.c: Include device.h. Don't use
13565         font::{set,get}_device_name.
13566         * groff.c, Makefile: Rename device.h to config.h.
13567         * groff.c: Use library device variable.
13568         * eqn/main.c: Use library device variable.
13569         * eqn/Makefile: No need to handle DEVICE.
13571         * lib/searchpath.[ch]: New files.
13572         * lib/Makefile: Handle searchpath.[ch].
13573         * troff/input.c (open_file, init_dirs): Deleted.
13574         (macro_dirs): Deleted.
13575         (open_mac_file, macro_source): Use class search_path.
13576         (add_string, struct string_list): Move definition.
13577         (main): Change -M option to use macro_path. Delete call to
13578         init_dirs().
13579         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
13580         Rewrite to use class search_path.
13581         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
13582         * lib/Makefile: fontfile.c depends on searchpath.h.
13583         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
13584         MACROPATH.
13585         * lib/macropath.[ch]: New files.
13586         * troff/Makefile: No need to handle MACROPATH.
13588         * troff/input.c: Delete DUMP code.
13589         * lib/fontfile.c, lib/font.h: Delete
13590         font::forget_command_line_font_dirs.
13592         * troff/input.c (push_token): New function.
13593         (handle_first_page_transition): Use push_token().
13594         (process_input_stack): Change handling of a space at the beginning
13595         of the line.
13597 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
13599         * troff/input.c (font_dirs): Delete unused variable.
13601         * eqn/lex.c (do_set): Correct error messages.
13603 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
13605         * troff/input.c (do_define_string): Allow the string name to be
13606         followed immediately by a tab.
13607         (define_character): Likewise.
13609 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
13611         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
13612         be negative.
13614         * troff/input.c (input_iterator::is_file): New virtual function.
13615         (file_iterator::is_file): New function.
13616         (input_stack::end_file): New function.
13617         (input_stack::next_file): Handle the situation where there is no
13618         file on the input stack correctly.  Avoid making two passes over
13619         the input stack.
13620         (next_file): Make the filename optional; in this case call
13621         input_stack::end_file().
13623 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
13625         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
13626         produce a real _ charater when the current font is CW and _
13627         otherwise.
13629         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
13630         expression to work around gcc 2.2 bug.
13632 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
13634         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
13636         * troff/env.c (environment::add_padding): New function.
13637         (environment::add_char): Use add_padding().
13638         (environment::space): Likewise.
13639         (environment::wrap_up_field): Add some padding if there is none
13640         and there's no current tab.
13641         * troff/env.h: Declare environment::add_padding.
13643 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
13645         * pic/pic.y: undef fmod and rand before declaring them.
13647 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
13649         * troff/input.c (main): If the DESC file specifies a font name of
13650         0, then leave the corresponding font position empty.
13652         * nroff.sh: New file.
13653         * Makefile (install.nobin): Install nroff.sh.
13655         * tty/devlatin1/R.proto: Add ao as synonym for de.
13656         * tty/tmac.tty-char: Define ao as o.
13658         * tty/dev{ascii,latin1}/R.proto: Add aq.
13659         * tty/tmac.tty-char: Delete definition of aq.
13661 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
13663         * troff/input.c (init_charset_table): Don't translate 0240.
13664         * ps/tmac.ps: Translate char160 to space.
13665         * dvi/tmac.dvi: Likewise.
13666         * tty/tmac.tty: Likewise.
13668 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
13670         * dvi/tmac.dvi: Add support for all Latin-1 characters.
13672         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
13673         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
13674         \(oe, \(r?, \(r!.
13676         * tty/tmac.tty-char: Add \(ah.
13678         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
13679         No need to define \(FM and \(!/. Conditionalize all character
13680         definitions.
13682         * ps/devps/lgreekmap: Add +h, +f, +p.
13684         * ps/tmac.psnew: New file.
13685         * ps/Makefile: Install tmac.psnew.
13687         * troff/input.c (charinfo_to_node_list): Don't ever interpret
13688         character definitions in compatible mode.
13690         * troff/input.c (remove_character): New function.
13691         (init_input_requests): Bind remove_character to "rchar".
13693         * ps/tmac.psold: New file.
13694         * ps/Makefile: Install tmac.psold.
13695         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
13696         characters into tmac.psold.  Make these definitions unconditional.
13698         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
13700         * ps/tmac.ps: Don't define \('c and \('C.
13702         * ps/devps/textmap: Move Greek characters to...
13703         * ps/devps/symbolchars:
13705 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
13707         * ps/devps/text.enc: Add quotesingle.
13708         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
13709         * tty/tmac.tty-char: Likewise.
13710         * dvi/devdvi/texmi.map: Add +h, +f, +p.
13711         * dvi/devdvi/texi.map: Add Fn.
13712         * dvi/devdvi/msam.map: Add lz.
13713         * dvi/tmac.dvi: Handle Bq, bq, aq.
13715         * pic/lex.c (get_token): Recognize 'th.
13716         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
13718 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
13720         * ps/devps/textmap: Move di, mu, +- to...
13721         * ps/devps/symbolchars:
13723         * macros/tmac.s (@XS): Don't call par@reset or fi.
13724         (XA): Call LP. Turn off adjustment. Reduce line length.
13726         * macros/tmac.s: Initially alias XS to LP.
13727         (XS): Rename to @XS.
13728         (cov*ab-init): Alias XS to @XS.
13730 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
13732         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
13733         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
13734         (token::is_size, token::changes_env): Deleted.
13735         * troff/number.c (parse_term): No need to process \s explicitly.
13736         Call tok.next() only after scale indicator has been processed.
13737         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
13738         \f etc explicitly.
13739         (token::next): Handle \s, \f, \S, \H immediately rather than
13740         returning them as tokens.
13741         (token::operator==, token::description, token::add_to_node_list,
13742         token::process): Remove handling of deleted tokens.
13744         * troff/env.c (environment::add_char): When adding padding
13745         indicator character, call start_line() if necessary.
13747 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
13749         * ps/devps/afmtodit: Don't output 0 kerns.
13751         * ps/devps/afmtodit: Remove directory from name of encoding in
13752         font description file.
13754         * ps/devps/afmtodit: Improve error messages.
13756         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
13758         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
13759         * ps/devps/FontMakefile: Deleted.
13760         * ps/devps/afmname: New file.
13762         * ps/devps/symbol.sed: New file.
13763         * ps/devps/symbol.diff: Deleted.
13764         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
13765         Generate zapfdr.afm from zapfd.afm.
13767         * tty/tmac.tty (tty-char): Prefix definition with ".
13769         * macros/tmac.an (TP): Don't start a diversion if one has already
13770         been started.
13772         * tty/tmac.tty-char: Add Latin-1 characters.
13774         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
13776 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
13778         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
13779         Move declaration of struct horizontal_span.
13781         * tbl/table.c (table::table): Initialize span_list.
13782         (table::~table): Delete span_list.
13784         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
13786         * ps/devps/Makefile: Avoid dependency on GNU make.
13788         * ps/tmac.ps: Check that character does not already exist before
13789         defining it.
13791         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
13792         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
13793         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
13794         files.
13796         * tty/tmac.tty-char: New file.
13797         * tty/Makefile: Install tmac.tty-char.
13798         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
13799         tmac.tty-char.
13801         * tty/tmac.tty: Fix definition of \(34.
13803         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
13804         bracket-drawing characters onto |. Add *o.
13806         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
13807         only if current_field.
13809         * troff/dictionary.c (dictionary::lookup): Free old_table after
13810         rehashing. 
13812 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
13814         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
13815         whose glyphs are identical to glyphs of some Roman character.
13817         * tty/devlatin1/R.proto (bu): Deleted.
13818         * tty/devascii/R.proto (bu): Deleted.
13819         * tty/tmac.tty: Add definition of \(bu.
13821         * eqn/main.c (do_file): Pass FILE as argument.
13822         (main): Automatically load eqnchar.  New options -F and -n.
13823         Pass do_file an opened FILE.
13824         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
13825         No need to include font.h.
13826         * groff.sh: Likewise.  Don't need to use - for standard input.
13827         Prefix files with -- if first file starts with -.
13829         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
13831         * troff/env.c (environment::possibly_break_line): Don't set line
13832         to 0 across call to output_line().  Don't call output_line() until
13833         after discarding nodes after break.
13835 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
13837         * request.h (macro::empty): Declare it.
13838         * input.c (macro::empty): New method.
13839         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
13840         macro is empty.
13842 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
13844         * troff/env.c (environment::start_field): Decrement space_total
13845         when a space is frozen.
13847 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
13849         * macros/tmac.an (R): Delete macro.
13851         * troff/input.c (get_copy, token::next): Support \# (like \" but
13852         newline is ignored).
13854         * troff/input.c (token::next): Fix error message in 'Y' case.
13856 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
13858         * eqn/delim.c (define_extensible_string): Recognize any prefix of
13859         a delimiter name.
13861 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
13863         * c++test.c: Include <osfcn.h>.
13865         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
13866         <errno.h> doesn't.
13868 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
13870         * tbl/table.c (table::divide_span): Don't count column separation
13871         if expand was specified.
13873         * tbl/main.c (process_format): Don't ignore width specs in
13874         continued format.  Give warning for changing equal widths or
13875         column separation in continued format.
13876         (process_data): Set column separation, minimum width, equal
13877         columns at end of table.
13879 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
13881         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
13882         node::add_discretionary_hyphen): Use soft_hyphen_char.
13883         (set_soft_hyphen_char): New function.
13884         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
13886         * Makefile (c++tested): Give more helpful message if test fails.
13888 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
13890         * troff/input.c (init_charset_table): Translate 0240 to
13891         an unbreakable space.
13893         * troff/token.h (token::hyphen_indicator): New function.
13894         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
13895         translation.
13896         * troff/input.c (translate): Allow translation to \%.
13897         * troff/node.c (node::add_char): Handle
13898         TRANSLATE_HYPHEN_INDICATOR.     
13899         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
13901         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
13902         for \(hy.
13904         * tty/devlatin1/R.proto: \(hy and - should print as 055.
13906 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
13908         * groff.c (run_commands): If the last command gets a SIGPIPE send
13909         a SIGPIPE to all children than haven't yet terminated.  When
13910         command terminates, set pid field to -1.
13912 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
13914         * groff.c (main): Pass an appropriate -filename option to gxditview.
13916 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
13918         * Makefile.bd (install): Remove existing program before copying.
13920         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
13921         programs which have Unix counterparts to be installed with
13922         user-specified prefix.
13924         * troff/input.c (exit_troff): Don't check if exit_started.
13925         (exit_request): Don't call exit_troff if exit_started.
13927         * Makefile.bd (install.mm): Rename to install.dwbmm.
13929 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
13931         * driver/input.c (do_file): Add missing break for '#' case.
13933 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
13935         * troff/input.c (input_stack::clear):  Clear past any boundaries and
13936         then add the boundaries back.
13938         * troff/input.c (exit_troff): Return immediately if already
13939         exiting.
13941         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
13942         end macro.
13943         (pg*end-page): If the text has ended and there are no more
13944         footnotes or keeps, exit.
13946         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
13948         * troff/input.c (init_charset_table): Make \(rq transparent by
13949         default.
13951         * macros/tmac.an: Define lq and rq strings.
13953         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
13955 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
13957         * troff/env.c (environment::final_break): New function.
13958         (environment::newline): Set prev_line_interrupted to 2 if
13959         exit_started.
13960         * troff/env.h: Declare environment::final_break.
13961         * troff/input.c (exit_troff): Call environment::final_break()
13962         instead of environment::do_break().
13964         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
13965         doesn't already exist.
13966         * macros/man.local: New file.
13967         * macros/tmac.an: Load man.local.
13968         * macros/man.ultrix: New file.
13970 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
13972         * troff/input.c (exit_groff): Rename to...
13973         (exit_troff): New function.
13975         * troff/div.c (exit_started, done_end_macro,
13976         seen_last_page_ejector): New global variables.
13977         (began_page_in_end_macro): New static variable.
13978         (exit_flag): Deleted.
13979         (top_level_diversion::top_level_diversion): Initialize
13980         last_page_count.
13981         (top_level_diversion): More elaborate test for whether
13982         cleanup_and_exit() should be called.
13983         Set began_page_in_end_macro if the end macro isn't yet finished.
13984         * troff/div.h (top_level_diversion::last_page_count): New data
13985         member.
13986         (top_level_diversion::set_last_page): New function.
13987         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
13988         * troff/env.c (do_break): Zero prev_line_interrupted.
13989         * troff/input.c (exit_flag): Delete declaration.
13990         (LAST_PAGE_EJECTOR): New magic cookie.
13991         (token::next): Handle LAST_PAGE_EJECTOR.
13992         (exit_groff): Set exit_started and done_end_macro instead of
13993         exit_flag.  Call top_level_diversion::set_last_page.  Push a
13994         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
13995         another ejection after setting seen_last_page_ejector.
13997 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
13999         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
14001         * macros/tmac.e (TH): Make sure there's room for the initial
14002         header.
14004         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
14005         Set FVS in points rather than units.
14007 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
14009         * troff/div.c (top_level_diversion::add_trap): Don't consider the
14010         position of empty slots.
14012 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
14014         * ps/devps/S: Fix height and depth of parenrightex.
14015         * ps/devps/symbol.diff: Regenerate.
14017 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
14019         * tmac.e (u): Do underlining as in -mgs.
14021 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
14023         * tty/tty.c (tty_printer::end_page): If overstriking is
14024         suppressed, still turn overstruck horizontal and vertical lines
14025         into +.
14027         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
14028         2.1.
14030         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
14032 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
14034         * Version 1.05 released.
14036 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
14038         * tty/tty.c: Instead of keeping an array of glyphs and then
14039         sorting it, keep a ordered linked list of glyphs for each line.
14041         * driver/driver.h: Include stddef.h.
14043         * tty/tty.c (compare_glyph):
14044         * refer/refer.c (rcompare):
14045         * troff/env.c (compare_ranges): Arguments of qsort comparison
14046         function should be const void *.
14048         * troff/number.c (parse_term):
14049         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
14050         switch statement.
14052         * refer/label.y (consider_authors): Don't access variables
14053         constructed under a condition outside that condition: put braces
14054         round for statement containing declaration; redeclare use of same
14055         variable later.
14057         * pic/pic.y (text_expr): Delete production that allows
14058         parenthesised text_expr.
14059         (expr): Allow a conditional_expr to appear in parentheses.
14060         (conditional_expr): Rename to any_expr.
14062         * mm: Install new version 1.01 from jh.
14064         * lib/font.c (font::get_width): Cache scaled widths.
14065         (font::font): Initialize widths_cache.
14066         (font::~font): Destroy widths_cache.
14067         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
14069 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
14071         * c++test.c, c++test.ref: New files.
14072         * Makefile: Check that the C++ compiler works.
14074         * ps/tmac.pspic (PSPIC): Do a break.
14076         * ps/tmac.ps: Move definition of PSPIC into...
14077         * ps/tmac.pspic: New file.
14078         (PSPIC): Draw box around picture, but make it invisible to grops.
14079         * ps/tmac.ps: Load tmac.pspic.
14080         * ps/Makefile: Install tmac.pspic.
14082 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
14084         * lib/font.c (scale_round): If n is negative,
14085         subtract .5 before truncating floating point result.
14087         * lib/fontfile.c: Include <errno.h>.
14089 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
14091         * driver/input.c (get_char): Inline. Don't update current_lineno.
14092         Change callers to up date current_lineno if necessary.
14093         Use get_char() instead of getc(current_file).
14095 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
14097         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
14099 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
14101         * tty/tty.c (tmac.tty): Define \(rg as (R).
14103 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
14105         * lib/lib.h: New define a_delete.
14106         * Use a_delete instead of delete when deleting an array of objects
14107         without destructors.
14109         * lib/lib.h: Rename adelete to ad_delete.
14110         * Change uses of adelete.
14112 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
14114         * eqn/eqn.y: Include lib.h.
14116         * troff/node.c (grow_font_table): Delete old_font_table.
14118         * mm: Install new version from jh.
14120 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
14122         * tbl/table.h (format_type): Make global instead of local to class
14123         entry_format.  Prefix enumerators with FORMAT_.
14124         * tbl/table.c, tbl/main.c: Corresponding changes.
14125         * refer/token.h (token_type): Make global.  Prefix enumerators
14126         with TOKEN_.
14127         * refer/token.[ch]: Corresponding changes.
14128         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
14130         * troff/div.c (node::set_vertical_size): Don't name argument.
14132 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
14134         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
14135         * lib/lib.h: Define adelete accordingly.
14136         * pic/object.c (graphic_object::graphic_object):
14137         * tbl/main.c (format::~format):
14138         * tbl/table.c (table::~table):
14139         * refer/ref.c (reference::~reference, reference::merge,
14140         reference::insert_field, reference::delete_field): Use adelete.
14142         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
14143         * refer/token.h:
14144         * tbl/table.h: Corresponding changes.
14146         * common.c (common_output::dashed_arc, common_output::dotted_arc):
14147         Ensure total_angle is positive.
14149 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
14151         * refer/ref.c (reference::merge, reference::insert_field,
14152         reference::delete_field): Avoid delete[0].
14154         * refer/token.c (init_special_chars): Move calls to cmupper
14155         outside calls to init_two_char_letter to work around bug in gcc
14156         2.0.
14158 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
14160         * lib/new.c (operator new): Use __builtin_new for g++.
14162         * pic/object.c (graphic_object::~graphic_object):  Don't use
14163         delete [] on 0.
14165         * pic/object.c (output::compute_scale): Initialize max_width and
14166         max_height.
14168 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
14170         * troff/input.c (write_request): Call fflush.
14172         * troff/node.h (class composite_node): Move declaration to node.c
14173         * troff/input.c (charinfo_to_node): Rename to ...
14174         (charinfo_to_node_list): Return node list rather than composite
14175         node.
14176         * troff/node.c (make_composite_node): New function.
14177         (make_node, add_char): Call make_composite_node instead of
14178         charinfo_to_node.
14179         (class composite_node): Add a tfont * member.  Delete font_size
14180         member.
14181         (composite_node::composite_node, composite_node::copy,
14182         composite_node::size): Corresponding changes.
14183         (composite_node::tprint): Provide constant spacing, emboldening
14184         and track kerning as specified in tfont.
14185         (composite_node::width): Change width calculation accordingly.
14186         * troff/env.h (environment::composite): New member.
14187         (environment::is_composite, environment::set_composite): New
14188         functions.
14189         * troff/env.c (environment::environment): Initialize composite.
14190         * troff/input.c (charinfo_to_node): Call
14191         environment::set_composite.
14192         * troff/node.c (make_composite_node, make_glyph_node): Use the
14193         plain version of the tfont if the environment is composite.
14195         * troff/node.c (font_info::get_space_width): Additional argument
14196         giving space_size.  Handle constant space correctly. Scale by
14197         space_size unless constant spaced.
14198         (env_sentence_space_width): New function.
14199         * troff/node.h: Declare it.
14200         * troff/env.h (environment::get_space_size,
14201         environment::get_sentence_space_size,
14202         environment::get_narrow_space_width,
14203         environment::get_half_narrow_space_width): Make inline.
14204         (environment::get_space_width): Make inline.  Just call
14205         env_space_width.
14206         * troff/env.c: Delete definitions for funtions made inline.
14207         (environment::space_newline, environment::space): Use
14208         env_sentence_space_width(). Don't scale by space_size.
14209         * troff/node.h: Move declarations of env*space_width() functions
14210         into env.h.
14212 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
14214         * macros/tmac.s (PS): Don't try to set negative indent.
14216 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
14218         * pic/pic.y: Fix min function.
14220 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
14222         * man/mdate.sh: Clear LANGUAGE.
14224 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
14226         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
14227         * pic/lex.c: New COMMAND keyword.
14228         * pic/pic.y (print_args, print_arg): New rules.
14229         (placeless_element): Use print_args for PRINT.
14230         New COMMAND element.
14232 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
14234         * troff/input.c (terminal): Handle missing argument correctly.
14236         * pic/pic.y (text_expr): New rule.
14238         * pic/pic.y: Implement := operator.
14240 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
14242         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
14243         mdoc.
14245 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
14247         * ps/devps/dingbatsrmap: Include this in the distribution.
14249         * macros/tmac.doc: Replace with new version from 2nd Networking
14250         Release. Fix loading of doc-* files.
14251         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
14252         * macros/tmac.doc.old: New file.  Apply fixes that had been
14253         applied to old tmac.doc.
14254         * macros/tmac.andoc: Check that we're running under groff.
14255         * macros/Makefile: Rework.
14257 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
14259         * tbl/table.h (format_type): 
14260         * refer/token.h (token_type): If NESTED_TYPES is defined, use
14261         typedef to make these types visible at file scope.
14262         * Makefile: Add NESTED_TYPES configuration option.
14264         * troff/div.c (mark): At the top level use the value of
14265         nl_reg_contents rather than the current vertical position.
14267 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
14269         * tty/tty.c: Implement \D for horizontal or vertical lines.
14270         (tty_printer::set_char): Use vec_used+2 as serial number.
14271         Don't allow size of vector to exceed USHRT_MAX-2.
14272         Split off part into...
14273         (tty_printer::add_char): New function.
14274         (tty_printer::draw): New function.
14275         (compare_glyph): Handle equal serial numbers.
14276         (tty_printer::end_page): Handle overstruck characters from \D.
14277         (main, usage): Implement -d option.
14279 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
14281         * tbl/main.c (process_format):
14282         * eqn/text.c (split_text):
14283         * troff/input.c (token::next): Use inner block for declarations
14284         with initializers in switch statement.
14286 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
14288         * pic/common.c (common_output::dash_line): Cope with zero-length
14289         lines.
14291 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
14293         * Version 1.04 released.
14295 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
14297         * macros/tmac.an (TH): Define a macro an-init to define variables
14298         based on command line arguments.
14299         (an-header): Call it.
14301 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
14303         * Makefile (install.mm): Rename to install.dwbmm.
14305         * Makefile: Integrate mm.
14306         * mm: New directory.
14308 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
14310         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
14311         <sys/types.h>.
14313         * pic/troff.c (troff_output::simple_spline,
14314         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
14315         shadowing parameter.
14317         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
14319         * lib/ptable.h: Add explicit casts when converting from unsigned
14320         long to unsigned.
14322         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
14323         * dvi/devdvi/Makefile: Install SA, SB.
14325         * refer/indxbib.c: Add declaration of mktemp.
14327         * refer/lookbib.c: Add declaration of isatty.
14329 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
14331         * pic/lex.c (interpolate_macro_with_args):  While collecting
14332         arguments, keep track of whether we're in a string.
14334 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
14336         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
14337         down with \v, so as to avoid problems with top of page trap
14338         setting no space mode.
14340 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
14342         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
14344 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
14346         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
14347         Improve error message.
14349 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
14351         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
14352         printf("%03o");
14354 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
14356         * groff.c (possible_command::execp): Always use _exit() after a
14357         failed exec.
14359         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
14360         NO_SYS_WAIT_H   configuration options.
14361         * groff.c: Use these options.  Use POSIX-style macros to extract
14362         fields from the status returned by wait().
14364 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
14366         * tbl/table.c (table::compute_separation_factor): Allow the
14367         separation factor to drop to 0.
14369 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
14371         * refer/search.c: Include <errno.h>.
14373 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
14375         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
14377         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
14378         C++. 
14380         * pic/lex.c (input_stack::bol): Move definition out of class body.
14382         * pic/main.c: On MSDOS munge argv[0].
14384         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
14386         * lib/ptable.c (hash_string): Use unsigned long rather than
14387         unsigned.
14388         (next_ptable_size): Use unsigned rather than int.  Give an error
14389         message if we've hit the largest table size.
14390         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
14391         table size.
14393         * pic/object.h (object_spec): Make flags unsigned long.  Declare
14394         flags as const unisgned long rather than as enums.
14396         * pic/output.c: Deleted.
14398         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
14400         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
14401         Add additional argument.
14402         (line_entry::note_double_vrule_on_{left,right}): Set value of
14403         douvle_vrule_on_{right,left} flag according to argument.
14404         (simple_line_entry::simple_print,
14405         simple_line_entry::double_line_print): If adjacent to double vrule
14406         on a corner extend rather than shorten the rule by half the double
14407         vrule sep.
14409         * troff/number.c (parse_term): In checking for overflow, handle the
14410         case where the current horizontal position is negative.
14412 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
14414         * pic/object.c (draw_arrow): Check for object having zero length.
14416 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
14418         * eqn/main.c (do_file): Split off inline equation handling into...
14419         (inline_equation): New function.  Search for starting delimiter
14420         using...
14421         (delim_search): New function. Don't recognize a delimiter that
14422         occurs in the name of an escape sequence, number register, string
14423         etc.
14425 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
14427         * eqn/delim.c (delim_box::compute_metrics): Don't call
14428         define_extensible_string if left is 0.
14429         (delim_box::output):  Don't print the left delimiter if left is 0.
14430         (delim_box::debug_print): Check for left == 0 before calling printf.
14432 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
14434         * troff/Makefile (majorminor.c): Include only digits in
14435         minor_version.
14437 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
14439         * refer/dirnamemax.c: new file.
14440         * refer/genlimits.c: Deleted.
14441         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
14442         Don't check path length.
14443         * refer/Makefile: Add dir_name_max.o; delete genlimits.
14444         * Makefile: Add PATHCONF_MISSING option.
14446         * refer/indxbib.c (get_cwd): New function.
14447         (main): Use get_cwd().
14448         * lib/getcwd.c: New file.
14449         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
14450         GETCWD in SUBFLAGS.
14451         * lib/Makefile: Compile getcwd.o.
14453         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
14454         userdict.
14456         * refer/indxbib.c (main): Check success of mktemp.
14458         * lib/tmpfile.c: New file.
14459         * lib/Makefile: Add tmpfile.c.
14460         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
14461         * ps/ps.h: Delete declaration of mktemp().
14462         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
14463         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
14464         * driver/driver.h: No need now to include errno.h.
14466         * everywhere: Set errno to 0 before calling fopen().
14468         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
14469         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
14470         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
14472 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
14474         * troff/env.h (translate_space_to_dummy): Declare it.
14475         * troff/env.c (environment::space_newline, environment::space):
14476         If translate_space_to_dummy is set then make the width of spaces 0.
14477         * troff/input.c (translate): If the second character of a
14478         translation is a space, translate to unbreakable space.  If the
14479         first character is a space, set or clear translate_space_to_dummy
14480         according to whether the second character is \&.  Weird!
14482 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
14484         * groff.c (run_commands): Don't use non-zero exit code because a
14485         command gets SIGPIPE.
14487         * groff.c, groff.sh: Use -mXps with -TXps.
14489         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
14490         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
14491         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
14492         (ps_printer::special): New specials invis and endinvis.
14493         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
14494         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
14495         (ps_printer::end_page): Check that invis_count == 0.
14496         (ps_printer::invis_count): New member.
14497         (ps_printer::ps_printer): Initialize invis_count to 0.
14499         * troff/env.c (environment::hyphenate_line): Hyphenation
14500         indicator at beginning of word inhibits splitting after -, \(em
14501         etc.
14503         * pic/pic.y (element): Allow another element to follow } without
14504         any intervening separator.
14506 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
14508         * pic/lex.c (get_delimited): Allow tabs before delimiter.
14510 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
14512         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
14513         declaration of wait() in header files.
14514         * Makefile: Get rid of -DHAVE_UNION_WAIT.
14516         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
14518         * lib/lib.h: Declare return type of strerror as char *.
14520         * man/Makefile: Add g flag to sed substitutions.
14521         * Makefile (shgroff, bindist): Likewise.
14523 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
14525         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
14526         * ps/devps/prologue (PBEGIN): Define showpage after pushing
14527         userdict.
14529 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
14531         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
14532         userdict.
14534 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
14536         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
14537         group.
14539 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
14541         * troff/input.c (define_number_reg):  If currently undefined,
14542         don't define it if the argument is an invalid expression.
14544         * Makefile: Ignore return value of `if' commands without `else'
14545         parts.
14547         * Makefile: Split up CPPDEFINES into a series of separate
14548         configuration options.
14550         * troff/input.c (init_registers): Use time_t instead of long
14551         unless LONG_FOR_TIME_T is defined.  Use returned result rather
14552         than passing pointer.
14553         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
14555         * lib/Makefile (fontpath.h): Use gendef.
14557 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
14559         * troff/input.c (input_iterator::shift): Delete argument name.
14560         * troff/node.c (suppress_output_file::really_begin_page,
14561         suppress_output_file::really_transparent_char, node::ascii_print,
14562         node::tprint): Delete names of unused arguments.
14564 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
14566         * refer/label.y (string):  Pass $4 to command_error.
14568 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
14570         * Version 1.03 released.
14572 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
14574         * Makefile: Pass definition of SHELL in SUBFLAGS.
14576         * gendef: New file.
14577         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
14578         ps/Makefile: Use gendef to construct header files that are
14579         constructed from the Makefile.
14581         * macros/Makefile: make all should build stripped version of tmac.e.
14583         * refer/Makefile (clean): Remove y.output.
14585 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
14587         * ps/pfbtops.c (main): Add -v option which prints out a version
14588         number.
14589         * ps/Makefile (pfbtops): Link with libgroff.a.
14591 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
14593         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
14594         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
14596         * refer/lkbib.c (main): Always terminate reference with blank
14597         line.
14598         * refer/lookbib.c (main): Likewise.
14600         * refer/linear.c (file_buffer::load): Check that the file is not a
14601         binary file.
14603         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
14604         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
14605         Delete second inclusion of <sys/param.h>.
14607 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
14609         * troff/token.h (token::special): Deleted.
14611         * tbl/main.c (process_format): Rework so that opt->tab_char is
14612         recognized only when appropriate.
14614         * ps/Makefile (clean): Remove pfbtops.
14616 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
14618         * lib/font.c (text_file::next): Don't return if we have got a
14619         blank line.
14621 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
14623         * refer/refer.c (store_reference): Get hash code from old_table[i]
14624         when rehashing the table.
14626 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
14628         * eqn/box.c (box::top_level): Save size and prev size using \R and
14629         restore it afterwards. Set the size to the size at the beginning
14630         of the line.
14631         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
14632         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
14634         * refer/Makefile (limits.h): Use ./genlimits.
14636 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
14638         * refer/index.c: Delete declarations of stat() and fstat().
14640 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
14642         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
14644 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
14646         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
14648 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
14650         * troff/input.c (token::get_char): Handle \e.
14652         * refer/linear.c: Delete declarations of fstat() and stat().
14654 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
14656         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
14657         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
14659 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
14661         * troff/input.c (do_define_macro): Improve error handling for end
14662         of file while defining macro.
14664 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
14666         * eqn/box.h: Fix declaration of set_gsize.
14667         * eqn/box.c (set_gsize): Make argument const char *.
14668         (gsize): Declare as char *.
14669         * eqn/main.c (main): Don't convert gsize to int.
14670         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
14672         * Version 1.02 released.
14674 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
14676         * macros/tmac.andoc: New file.
14677         * macros/Makefile: Install tmac.andoc.
14679         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
14680         operator new and delete on OP_DELETE_BROKEN not being defined.
14681         * Makefile: Mention OP_DELETE_BROKEN.
14683 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
14685         * Makefile (bindist): Pass SUBFLAGS.
14687 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
14689         * Makefile, groff.c: Pass definitions to groff.c via device.h.
14691         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
14692         parameter.
14694         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
14696         * ps/ps.h, ps/psrm.c: Make comment_table and
14697         header_comment_table local to resource_manager::process_file.
14699         * groff.sh: With -TXps pass -printCommand option to gxditview.
14701         * groff.c (possible_command::print): Implement using
14702         append_arg_to_string.
14704         * xditview: Merge in new implementation with own ChangeLog.
14706 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
14708         * groff.c (main): Implement PRINT_OPTION.
14709         (append_arg_to_string): New command.
14710         (device_table): Set PRINT_OPTION flag for Xps.
14712 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
14714         * troff/groff.h: Rename to troff.h.
14716         * pic/lex.c (lookup_keyword, docmp): New functions.
14717         (get_token): Use new lookup_keyword.
14718         Don't include key.h.
14719         * pic/key.[ch], pic/pic.gperf: Deleted.
14720         * pic/Makefile: Remove gperf stuff.
14722         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
14723         into output.h.
14724         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
14726         * troff/Makefile, troff/node.c: Move definition of
14727         STORE_WIDTH into node.c.
14729         * etc/grog.pl, etc/grog.sh: Support -mdoc.
14731 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
14733         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
14734         dvi/devdvi/texb.map: Add lq and rq.
14735         dvi/devdvi: Regenerate fonts.
14736         * ps/devps/textmap: Add lq and rq.
14737         * ps/devps: Regenerate fonts.
14738         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
14739         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
14741         * pic/object.c (position_rectangle): When checking radius
14742         cope with possiblity that width or height is negative.
14743         (box_object::box_object): Have separate xrad and yrad with
14744         signs matching signs of dim components.
14745         (box_object::{north,south}_{east,west}): Use xrad and yrad.
14746         (box_object::print): With rounded boxes use absolute values
14747         for dim and rad arguments.
14749         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
14750         in fontpath.h.
14752         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
14754         * various files: Add explicit destructors to keep Saber CC +d
14755         happy.
14757 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
14759         * eqn/box.c (box::top_level): Restore fonts correctly after
14760         font changes in line containing inline equation.  Also
14761         restore previous font as well as current font.
14762         * eqn/pbox.h: Define necessary string and register names.
14764         * troff/input.c (token::next): Case 'R' calls do_register.
14765         (do_register): New function.
14767 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
14769         * groff.c, groff.sh: Support Xps device.  Allow each device
14770         to have a pseudo_name and a real_name.
14772         * groff.c (run_commands): Don't print `Broken pipe' messages.
14774         * ps/pfbtops.c: New file.
14775         * ps/Makefile: Add pfbtops.
14777         * troff/number.c (parse_term): Improved error message.
14779 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
14781         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
14783         * Makefile: Integrate refer.
14784         * refer: New directory.
14785         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
14786         man/lkbib.man: New files.
14787         * man/Makefile: Support refer man pages.
14789         * lib/lib.h: Declare is_prime.
14790         * lib/prime.c: New file.
14792         * troff/input.c (macro_source): New function.
14793         (init_input_requests): Bind "mso" to macro_source.
14795         * troff/env.c (environment::possibly_break_line): Maintain
14796         pointer to pointer to node to be split in ndp so as to avoid
14797         using address of freed node.
14799         * troff/env.c (environment::hyphenate_line): Maintain pointer to
14800         pointer to first node to be hyphenated in startp so as to
14801         avoid using address of freed node.
14803         * troff/env.c (class trie, class hyphen_trie): Make the
14804         elements of the trie be of type char not unsigned char.
14805         Declare arguments to be const char* instead of unsigned char *.
14806         
14807         * troff/env.c (hyphenate): Initialize hbuf[0].
14809         * troff/input.c (set_string): Declare p to be char * and cast
14810         *p to unsigned char when necessary.
14812         * troff/input.c (do_define_macro): Declare s to be const
14813         char*. Cast element to unisgned char when necessary, Declare
14814         d to be an int.  Handle EOF better.
14816         * troff/Makefile, troff/input.c: Different scheme for passing
14817         definitions of MACROPATH, HYPHENFILE and DEVICE.
14819 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
14821         * tty/devascii/R.proto: Delete entry for em.
14822         * tty/devlatin1/R.proto: Likewise.
14824 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
14826         * troff/input.c (translate): Stop when we get a space. Treat eof
14827         like newline.
14829         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
14831 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
14833         * tbl/main.c (process_format): A font name following a `f'
14834         modifier that starts with a digit can be only one character long.
14835         Also deal with EOF on the second character of the font name.
14837 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
14839         * troff/input.c (token::next): Turn \~ into an
14840         unbreakable_space_node.
14841         * troff/node.c (unbreakable_space_node): New class.
14842         * troff/node.h: Declare it.
14844 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
14846         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
14847         it's >= 0, before outputting it as a single byte.
14849 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
14851         * lib/font.c: Make font_char_metric::code an int.
14852         (font::get_code): Change return type to int.
14853         (font::load): Allow code to be arbitrary integer.
14854         * lib/font.h (font::get_code): Change return type to int.
14855         (font::number_to_index): Change argument type to int.
14856         * troff/input.c (token::next):  In case 'N', allow any value.
14857         Store value in token::val.
14858         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
14859         (token::get_char, token::add_to_node_list, token::process): Get
14860         number from val.
14861         (charinfo::set_number): Change argument to int.
14862         (charinfo::get_number):  Require that NUMBERED flag be set.
14863         (get_charinfo_by_number): Store numbered characters not between 0
14864         and 255 in a dictionary.
14865         * troff/charinfo.h (get_charinfo_by_number): Change argument type
14866         to int.
14867         (charinfo::number): Change type to int.
14868         (charinfo::set_number): Change type of set_number to int.
14869         * troff/node.c (troff_output_file::put_char_width,
14870         troff_output_file::put_char): Test whether character is numbered
14871         using charinfo::numbered().
14872         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
14873         values of num.
14874         * lib/nametoindex.c: New implementation to cope with arbitrary
14875         number characters.
14877         * troff/input.c (token::operator==): Test val for
14878         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
14879         TOKEN_SIZE.
14881         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
14882         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
14884 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
14886         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
14887         variable.
14889         * all Makefiles: rm targets of cp and >.
14891         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
14892         it.
14894         * eqn/lex.c (def_table): Add dollar.
14896 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
14898         * troff/input.c (do_width): Push back newline before closing delim
14899         like do_bracket.
14901 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
14903         * groff.c (possible_command::prepend_arg): New function.
14904         (main): Prepend device -m option.
14905         * groff.sh: Put device -m options before command-line options.
14907 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
14909         * macros/tmac.an (IP): Quote argument to TP.
14911         * ps/ps.c (main): New option -b, which sets...
14912         (broken_flags): New variable.
14913         (ps_printer::~ps_printer): Incorporate the setup section in the
14914         prolog if (broken_flags & NO_SETUP_SECTION).
14915         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
14916         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
14917         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
14918         ps_printer::print_needed_font_comment,
14919         ps_printer::print_supplied_font_comment,
14920         ps_printer::print_include_font_comments,
14921         ps_printer::lookup_doc_font, ps_printer::download_fonts,
14922         ps_printer::read_download_file, read_document_fonts, add_font,
14923         skip_line, parse_fonts_arg, document_font::document_font,
14924         document_font::~document_font, document_font::download,
14925         ps_output::include_file):  Deleted.
14926         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
14927         rather than %!PS-Adobe-2.0.  Make calls to
14928         resource_manager::need_font for each font that we used. Replace
14929         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
14930         print_supplied_font_comment, print_needed_font_comment by call to
14931         resource_manager::print_header_comments. Output %%Orientation
14932         comment. Output %%Requirements: numcopies comment if ncopies > 1.
14933         Don't output the prolog directly.  Instead call
14934         resource_manager::output_prolog.  Only define #copies when ncopies
14935         > 1.  Delete calls to print_include_font_comments  and
14936         download_fonts.  Add call to resource_manager::document_setup.
14937         (ps_printer::do_file): Call resource_manager::import_file instead
14938         of including it ourselves.
14939         (ps_printer::do_import): Likewise.  Also don't call
14940         merge_import_fonts. Push userdict on the dictionary stack before
14941         and pop it afterwards.
14942         Move declaration of ps_output into ps.h.
14943         * ps/psrm.c: New file implementing resource_manager class.
14944         * ps/ps.h: New file declaring ps_output and resource_manager
14945         classes.
14946         * ps/devps/zapfdr.ps:
14947         * ps/devps/symbolsl.ps:
14948         * ps/devps/prologue:  Use 3.0 conventions.
14949         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
14950         Add default definition of BROKEN_SPOOLER_FLAGS.
14951         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
14952         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
14954 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
14956         * etc/grog.pl: New file.
14957         * Makefile (GROG): New variable.
14958         Add GROG to SUBFLAGS.
14959         * etc/Makefile (GROG): New variable.
14960         (install.nobin): Install $(GROG) rather than grog.sh.
14962 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
14964         * eqn/special.c (special_box::compute_metrics): Make the input and
14965         output strings the same.  Get the new height and depth from the
14966         predefined height and depth registers.  Also make subscript kern
14967         and skew available.
14968         (special_box::compute_subscript_kern, special_box::compute_skew):
14969         New functions.
14971         * eqn/box.c (pointer_box::compute_skew,
14972         simple_box::compute_metrics, box::top_level)
14973         * eqn/text.c (prime_box::compute_metrics,
14974         prime_box::comput_subscript_kern)
14975         * eqn/limit.c (limit_box::compute_metrics):
14976         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
14977         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
14978         negative numbers in `nr' requests with a leading 0.
14980 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
14982         * eqn/special.c: New file.
14983         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
14984         Add new rule for simple.
14985         * eqn/lex.c (token_table): Add SPECIAL.
14986         * eqn/box.h: Declare make_special_box.
14987         * eqn/Makefile: Add special.[co].
14989 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
14991         * ps/devps/prologue: Possibly set packing to true while defining.
14992         Create grops dictionary here.  Initialize local variables before
14993         defining procedures.
14994         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
14995         the dictionary stack. Set strokeadjust and overprint to false if
14996         the relevant operators are defined.
14997         (PEND): New procedure.
14998         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
14999         prologue.  Do everything else in the setup section.
15000         (ps_printer::do_import): Just call PBEGIN and PEND around the
15001         picture. Also push userdict before, and pop it afterwards.
15003 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
15005         * troff/node.c (bracket_node::tprint): Brackets were being printed
15006         1m too low.
15008         * macros/tmac.an (SH, SS): Set fill mode.
15010 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
15012         * troff/div.c (top_level_diversion::begin_page): Set
15013         high_water_mark to 0.
15015 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
15017         * man/mdate.sh: New file.
15018         * man/mdate.c: Deleted.
15019         * man/Makefile: Use mdate.sh instead of mdate.
15020         (mdate): Deleted.
15022         * eqn/lex.c (do_gsize): Supply missing argument to error message.
15024 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
15026         * man/mdate.c: New file.
15027         * man/*.man: Replace modification date by @MDATE@.
15028         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
15029         (mdate): New target.
15031         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
15032         Remove illegal input characters.
15034 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
15036         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
15038 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
15040         * troff/div.c (begin_page): Change behaviour when
15041         !first_page_begun and !break_flag.
15043         * troff/input.c (do_name_test): Return 0 if argument is empty.
15045         * troff/input.c (read_long_escape_name): Require closing ] to be
15046         at same input level as opening [.
15048         * troff/input.c (read_increment_and_escape_name): New function.
15049         (get_copy, process_input_stack): Use this for \n.
15051 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
15053         * troff/div.c (top_level_diversion::begin_page): Ignore the
15054         current value of page_number if !first_page_begun.
15056         * groff.c (main): Fix declaration of buf.
15058         * troff/input.c (do_name_test): New function.
15059         (token::next): Implement \A.
15060         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
15061         (token::description, token::add_to_node_list, token::process):
15062         Handle TOKEN_ESCAPE.
15063         * troff/token.h: New token TOKEN_ESCAPE.
15065 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
15067         * pic/main.c (do_picture): Allow space before and after filename
15068         following `<'.  Check that the filename is not empty.
15070 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
15072         * Version 1.01 released. 
15074         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
15076         * dvi/tmac.dvi: ftr HR to H.
15078         * macros/tmac.e: Round up computation of $r.
15080         * xditview/tmac.X:  Don't give up completely in compatibility mode.
15081         Use \n(.s instead of \n[.s].
15083         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
15084         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
15085         Add u to factors inside \s[...]. Rename frac to dvi-frac.
15086         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
15087         short names in the char definitions.
15089         * ps/tmac.ps: Don't give up completely in compatibility mode.
15090         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
15091         quote in front of \n(.s. Add u to factors inside \s[...].
15093 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
15095         * tty/tmac.tty: Call the nroff request.
15097         * macros/tmac.e ((x, )x):  Better definitions that work properly
15098         in a diversion.
15099         (@0, @1): Helper macros for (x.
15101         * macros/tmac.e ($s, hl): Use \l rather than \D.
15103         * tty/tmac.tty: Make it work better in compatibility mode.
15104         (pchar): Rename to tty-char.
15106         * macros/tmac.e (@E): New macro.
15107         (r, i, b, rb, bi): Use @E.
15109         * macros/tmac.e (@F): Don't use (;...) syntax.
15111         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
15112         it was modified for groff.
15114         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
15116         * macros/tmac.e (<., .>): Removed.
15117         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
15119         * macros/tmac.e: Remove check that groff is being used.
15121         * macros/tmac.e (@C): Change families only if using groff; turn
15122         compatibility mode off while changing familes. Save compatibility
15123         mode before changing families and restore it afterwards.
15125         * macros/tmac.e (@h): Remove test for offset + line length.
15127         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
15128         (lo, th, ac): Define to call @S instead of using als.
15130         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
15131         the ratio of the vertical spacing to the point size in units
15132         expressed as a percentage.  Use these instead of $10r and $10R,
15133         Delete $10r and $10R.
15135         * lib/font.c (font::load): In default computation of space_width,
15136         divide by sizescale.  Use scale_round.
15138         * macros/tmac.an (TP): Don't call `nf'.
15139         (an-do-tag): Don't call `fi'.
15141 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
15143         * troff/input.c (process_input_stack): Handle the case where
15144         spaces at the beginning of an input line are followed by a
15145         newline.
15147 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
15149         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
15150         * groff.sh: Use pic -x with the dvi device.
15152         * dvi/devdvi/FontMakefile (H): Don't use -s.
15154         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
15155         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
15156         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
15157         in FONTS.
15159 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
15161         * ps/psfig.diff: New file.
15162         * ps/tmac.psfig: New file.
15164 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
15166         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
15167         (]-): Don't call ref*do-tl.
15169         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
15171         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
15172         (fn@do-FS): Rename to fn*do-FS.
15174         * troff/input.c (transparent_translate): New function.
15175         (process_input_stack): Apply transparent_translate before calling
15176         diversion::transparent_output(unsigned char).
15178 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
15180         * troff/input.c (do_define_macro): Define the macro before calling
15181         skip_line.
15183         * xditview/Makefile: Add DEVICES variable.  Change install target
15184         to use this.
15186 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
15188         * groff.c (run_commands): Handle the possibility that there are
15189         child processes other than those forked by us.
15191 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
15193         * lib/string.c (string::append): New function.
15194         * lib/stringclass.h: Declare it.
15196 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
15198         * eqn/main.c (main): New option -N which sets
15199         no_newline_in_delim_flag. 
15200         (do_file): If no_newline_in_delim_flag is set don't allow newlines
15201         in delimiters.
15202         * groff.c (main): Pass -N on to eqn.
15203         (help, synopsis): Mention -N.
15204         * groff.sh: Implement -N.
15206 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
15208         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
15209         (]-): Call ref*do-tl if ref*need-tl is non-zero.
15210         (XP): Allow as initializer.
15212 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
15214         * troff/env.c (environment::wrap_up_field): If field_spaces are
15215         non-zero and we have a current_tab, subtract padding from
15216         tab_distance.  If this makes tab_distance <= 0, use the next tab
15217         stop instead.  If there isn't any next tab or it's a left tab,
15218         wrap up the current tab.
15219         (environment::start_field): Initialize tab_precedes_field.
15220         (environment::wrap_up_tab): If there's a current field, update
15221         pre_field_width, field_distance and tab_precedes_field.
15222         * troff/env.h (environment::tab_precedes_field): New member.
15224 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
15226         * ps/ps.c (ps_printer::do_file): New function.
15227         (ps_printer::special): Bind to `file' special.
15228         (ps_printer::do_exec): Set ndefined_styles to 0.
15230 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
15232         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
15233         Avoid stripping first character from the start of unrecognized
15234         escapes.  Use lex_error instead of error to report errors.
15235         * eqn/lex.c (get_token): Rework handling of escapes.
15236         (lex_error): Move declaration into...
15237         * eqn/eqn.h.
15239         * xditview/xditview.c (main): Make -page option work.
15241         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
15243 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
15245         * macros/tmac.s (B2): Correct size of box.
15247 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
15249         * macros/tmac.s (B2): Postpone drawing the box until in the
15250         top-level diversion.
15252         * tty/tmac.tty: Add font translations for C, CR, CW.
15254         * groff.c (synopsis, help): Document -i.
15255         * groff.sh: Implement -i.
15257         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
15258         Simplify the construction of SN.
15260         * troff/number.c (parse_term): Give `|' a higher precedence.
15261         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
15262         accordingly.
15264         * macros/tmac.s (B2): Use par@finish instead of par@reset.
15266 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
15268         * lib/string.c (string::move): New function.
15269         * lib/stringclass.h: Declare it.
15271 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
15273         * troff/env.c (distribute_space): Add optional argument
15274         `force_forward'.
15275         (environment::wrap_up_field): Call distribute_space with
15276         `force_forward' argument of 1.
15278 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
15280         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
15281         Inline it.  Move reallocation into...
15282         (string::grow1): New function.
15283         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
15284         dependencies to include library header files.
15285         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
15287 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
15289         * macros/tmac.s (@NH): Use the same number registers than -ms does
15290         for the heading level counters.  Use the same string that -ms does
15291         for the number for this heading.
15293 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
15295         * lib/new.c (operator new): Cast result of malloc to char *.
15297         * troff/input.c (spring_trap, lookup_request): Add assert that nm
15298         is not null.
15300 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
15302         * groff.c (main): Support -i.
15304 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
15306         * pic/pic.h: Include <osfcn.h>.
15308         * ps/ps.c: Add declaration of mktemp.
15310         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
15311         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
15312         argument as union wait *.
15313         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
15314         argument to union wait *.
15316 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
15318         * tty/tmac.tty: Add definition of \(co.
15320         * pic/object.c (make_arc): Only increase radius when radius
15321         strictly less than d.
15322         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
15323         more than once.
15325         * troff/env.c (environment::environment(symbol),
15326         environment::environment(const environment *)):  Initialize
15327         input_trap_count.
15329 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
15331         * tbl/main.c (main): Add exit(0).
15333         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
15335         * pic/main.c (main):
15336         * eqn/main.c (main):
15337         * tbl/main.c (main):
15338         * etc/soelim.c (main):
15339         * driver/printer.c (printer::~printer):
15340         * troff/node.c (real_output_file::~real_output_file,
15341         real_output_file::flush):  Check for errors on stdout.
15343         * most files: Add 1991 to copyright notice.
15345         * macros/tmac.s: Don't test \n(.x and \n(.y.
15347         * troff/input.c (token::next): Rename `escape_char' label to
15348         `handle_escape_char' and `normal_char' label to
15349         `handle_normal_char'.
15351 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
15353         * groff.c (main, synopsis, help): Support -a option.
15354         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
15355         to trflags while parsing options.
15357 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
15359         * troff/number.c (parse_term): With `m', `M' and `n' scale
15360         indicators, convert scale factor to hunits before scaling.
15362 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
15364         * lib/font.c (scale_round): Better test for overflow when n is
15365         negative.
15367 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
15369         * tbl/main.c (process_format): Add second argument of type
15370         options*. Change callers.  Allow opt->tab_char as well as '\t'
15371         between format items.
15373 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
15375         * macros/tmac.an (PD): With no arguments, make sure register PD is
15376         at least \n[.V].
15377         (TH): Call PD with no argument, instead of setting register PD
15378         directly.
15380 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
15382         * Version 1.00 released.
15384 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
15386         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
15388         * dvi/devdvi/DESC: Mount CW instead of CR.
15390         * dvi/tmac.dvi: Add definition of \(tm.
15392         * dvi/devdvi/texsy.map: Add lh, and rh.
15393         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
15394         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
15396         * dvi/devdvi/FontMakefile: Generate H from cmss10.
15397         * dvi/devdvi/Makefile: Install H.
15398         * dvi/devdvi/H: New file.
15400 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
15402         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
15403         be 0.
15405 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
15407         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
15409         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
15411         * macros/tmac.s (@EN): Handle the case where the equation is empty
15412         but the label is not.
15414 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
15416         * troff/groff.h: New warning category WARN_SPACE.
15417         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
15418         WARN_SPACE to warning_table.
15419         (interpolate_macro): Give a warning of type WARN_SPACE if the name
15420         is longer than two characters and is not defined, but the first
15421         two characters do make a defined name.
15423         * PROBLEMS: New file.
15425         * CHANGES: New file.
15426         * README-0.6, README-1.00: Deleted.
15428         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
15429         * xditview/devX75/Makefile: Make devX75-12.
15430         * xditview/devX100/Makefile: Make devX100-12.
15432         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
15433         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
15435 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
15437         * README-0.7: Rename to README-1.00.
15439         * macros/tmac.pic: New file.
15440         * macros/Makefile (install.nobin): Install tmac.pic.
15442 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
15444         * troff/env.c (hyphen_word): Correct the test for whether the
15445         token is a hyphen.  Reset npos to 0.
15447         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
15449 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
15451         * macros/tmac.s (ds*common-end): Call par*reset.
15452         (PE): Likewise.
15453         (par@reset-indent): Deleted.
15455         * macros/tmac.s (@IP): Divert the label.
15457 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
15459         * xditview/draw.c (setGC): Use a line width of .1m rather than
15460         .04m by default; round rather than truncate value.
15462         * tbl/table.c (class empty_entry): New class.
15463         (empty_entry::empty_entry, empty_entry::line_type): New functions.
15464         (table::add_entry): Represent empty entries by objects of type
15465         empty_entry.
15466         (table_entry::line_type): Return -1.
15467         (table::determine_row_type): Ignore entries with line_type 0.
15468         Treat type -1 as non-lines.
15470 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
15472         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
15473         macros/tmac.s: Rename \(-d to \(Sd.
15475 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
15477         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
15478         * xditview/libXdvi/DviChar.c: Likewise.
15479         * dvi/devdvi/texsy.map: Add `<<', `>>'.
15481 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
15483         * troff/div.c (top_level_diversion::begin_page): Call
15484         init_output() if the_output is 0.
15486 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
15488         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
15489         ESCAPE_c.
15490         (get_copy): Turn \E into ESCAPE_E.
15491         (token::process, asciify): Handle ESCAPE_E.
15493         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
15494         (RD): New macro.
15495         (DS): Implement `.DS R'.
15497 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
15499         * macros/tmac.s (FS): New macro.
15501         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
15503         * macros/tmac.s (cov*tl-init): Remove after first execution
15504         instead of aliasing to @nop.  Call top of page macro explicitly
15505         instead of setting trap; call @init first.  Set pg@top as top of
15506         page macro.
15507         (cov*auto-init): Deleted.  Set cov*tl-init instead of
15508         cov*auto-init as top of page trap. 
15509         (TL, LP): Do a break instead of calling cov*tl-init.
15510         (cov*print): With RP format but no TL, alias FS and FE to @FS and
15511         @FE; in this case also give a warning and always start another
15512         page. No need to set pg@top here.
15513         (cov*tl-init): Rename to cov*first-page-init.
15515         * macros/tmac.s (RP): Do `.pn 0'.
15516         (cov*tl-init): With RP format don't do `.pn 0'.
15518         * macros/tmac.s (pg@cs-top): Set no space mode.
15520         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
15521         (cov*ab-init): Alias TL, AU and AI to these.
15523 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
15525         * macros/tmac.s (@EQ): Move the space before the equation into @EN
15526         (@EN): Do nothing unless \n[dl] is > 0.
15528 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
15530         * pic/object.c (ellipse_object::radius): New function.
15532         * VERSION: Change version to 0.7.
15534         * tbl/table.c (block_entry::do_divert): Declare return type as
15535         void.
15536         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
15538 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
15540         * troff/column.c: New file.
15541         * troff/Makefile: Corresponding changes.
15543         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
15544         Friend of vunits.
15546         * troff/div.c (top_level_diversion::space): If the space causes
15547         the first-page transition and springs a trap, truncate the space
15548         to 0.
15550 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
15552         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
15553         the document.
15555         * pic/troff.c (troff_output::line_thickness,
15556         troff_output::set_fill): Do a horizontal motion to compensate for
15557         the width of the \D escape sequence.
15559 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
15561         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
15562         (not X75).
15564         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
15565         to printf.
15567         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
15568         Supply empty definition.
15569         (text_entry::simple_print, simple_text_entry::simple_print):
15570         Delete declarations.
15571         (table::add_entry): Represent empty entries by objects of type
15572         `simple_entry'.
15574 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
15576         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
15578         * tbl/table.c (left_text_entry::add_tab): New function.
15580         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
15581         initialize like LP.
15583 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
15585         * troff/env.c (environment::start_field): Give an error message if
15586         there is no next tab.
15588 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
15590         * troff/env.c (hyphenate): Skip initial elements with zero
15591         hyphenation code.
15593         * macros/tmac.s (par@init): Keep VS in points rather than units.
15595 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
15597         * pic/main.c (main): Implement `-c' option.
15598         * pic/output.h: Declare make_tpic_output().
15599         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
15600         protected.
15601         (tpic_output): New class.
15602         (tpic_output::tpic_output, tpic_output::set_pen_size,
15603         tpic_output::command, make_tpic_output): New functions.
15605 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
15607         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
15608         if they're not already defined.
15609         * tbl/table.c (init_output): Don't test \n(.g.
15611         * troff/input.c (do_if_request): Delete `g' condition. Recognize
15612         `d', `r' and `c' conditions even in compatibility mode.
15614 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
15616         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
15617         box.
15619 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
15621         * troff/env.h (environment::prev_line_interrupted): New member.
15622         (environment::get_prev_line_interrupted): New function.
15623         * troff/env.c (environment::newline): Set prev_line_interrupted.
15624         (environment::environment(const environment *),
15625         environment::environment(symbol)): Initialize
15626         prev_line_interrupted.
15627         * troff/input.c (process_input_stack): Don't give special
15628         treatment to space and newline at the beginning of the line if the
15629         previous line was interrupted.
15631 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
15633         * eqn/eqn.y: Disallow PRIME by itself.
15634         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
15635         PRIME.
15636         (def_table): Remove definition of '.  Define prime to be `.
15638         * eqn/eqn.y: Split off part of rule `script' into a new rule
15639         `nonsup'.
15641 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
15643         * macros/tmac.s ({, }): New string aliases.
15645 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
15647         * README-0.7: New file.
15649 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
15651         * macros/tmac.s: New file.
15652         * man/groff_ms.man: New file.
15653         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
15654         * Makefile.bd: Similarily.
15655         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
15656         definition of TMAC_S.
15657         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
15658         * macros/TODO: New file.
15660 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
15662         * troff/env.c (right_justify): New function.
15663         (init_env_requests): Bind this to request "rj".
15664         (center_lines): Set right_justify_lines to 0. If we get a bad
15665         integer, center 1 line.
15666         (environment::environment(symbol), environment::environment(const
15667         environment *)): Initialize right_justify_lines.
15668         (environment::get_right_justify_lines): New function.
15669         (init_env_requests): Bind this to number_register ".rj".
15671         * troff/env.c (environment::choose_breakpoint): Implement
15672         hyphenation_margin and hyphenation_space.
15673         (environment::get_hyphenation_space,
15674         environment::get_hyphenation_margin): New functions.
15675         (init_env_requests): Bind these to .hys and .hym.
15676         (hyphenation_space_request, hyphenation_margin_request): New
15677         functions
15678         (init_env_requests): Bind these to hys and hym.
15679         (environment::environment(symbol), environment::environment(const
15680         environment *)): Initialize hyphenation_margin and
15681         hyphenation_space.
15682         * troff/env.h: Corresponding changes to class environment.
15684 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
15686         * troff/div.c (blank_line): Always do a break.
15688         * eqn/box.c (do_text): Turn off escapes while appending text to
15689         string.
15691 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
15693         * troff/input.c (while_break_request, while_continue_request): New
15694         functions.
15695         (init_input_requests): Bind these to "break" and "continue".
15696         (while_depth, while_break_flag): New variables.
15697         (while_request): Update while_depth.  Break out of loop if
15698         while_break_flag is set.
15700 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
15702         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
15703         rather than 0.
15705 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
15707         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
15709         * stringify: New file.
15710         * Makefile (groff.o): Use stringify.
15712         * xditview/tmac.X: Remove definition of \(rn.
15713         * xditview/libXdvi/DviChar.c: Remove radicalex from
15714         Adobe_symbol_map.
15716 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
15718         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
15719         (alphabetic_block_entry::alphabetic_block_entry,
15720         alphabetic_block_entry::divert, alphabetic_block_entry::print):
15721         New functions.
15722         (block_entry::divert): Split off body into ...
15723         (block_entry::do_divert): If the block is alphabetic, subtract 2n
15724         from the line length; also update the span width to dl+2n, and the
15725         alphabetic span width to dl.
15727         * driver/input.c (do_file):  While reading argument to D command,
15728         when expanding buffer, multiply szp by sizeof(int) rather than 2
15729         in the argument to memcpy.
15731         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
15732         width of alphabetic columns.
15734 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
15736         * troff/node.c (lookup_family): Supply second argument to lookup.
15738         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
15739         search, return immediately if v is 0.
15741         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
15742         (troff_output::start_picture): Set this reg.
15743         (troff_output::end_picture): Remove this reg
15744         * eqn/box.c (box::extra_space): Don't produce `\x's if
15745         EQN_NO_EXTRA_SPACE_REG is defined.
15747         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
15748         * eqn/text.c (split_text): Map ' to \(fm when it's the first
15749         character.
15751 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
15753         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
15754         requests.
15756         * troff/div.c (top_level_diversion::top_level_diversion):
15757         Initialize page_number to 0.
15759 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
15761         * groff/troff (environment::environment(const environment *)):
15762         Initialize name to e->name, rather than "anonymous".
15764 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
15766         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
15767         requested_page.  Split middle part into ...
15768         (FindPage): New function.
15769         (SetValues): If we don't yet know the last page, and the requested
15770         page is greater than the current page, call FindPage.
15771         Update the font_map_string before doing this.
15773         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
15774         Translate \(lh and \(rh into left and right double arrows.
15776         * troff/node.c (class hyphen_inhibitor_node): New class.
15777         (hyphen_inhibitor_node::hyphen_inhibitor_node,
15778         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
15779         hyphen_inhibitor_node::type,
15780         hyphen_inhibitor_node::get_hyphenation_type): New functions.
15781         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
15782         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
15783         word.
15785 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
15787         * troff/node.h (dummy_node::get_hyphenation_type,
15788         transparent_dummy_node::get_hyphenation_type):  Declare them.
15789         * troff/node.c: (dummy_node::get_hyphenation_type,
15790         transparent_dummy_node::get_hyphenation_type): New functions.
15792 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
15794         * xditview/libXdvi/draw.c: If M_PI not defined after including
15795         math.h, then define it.
15797         * xditview/Makefile: Add definition of AR. Pass it to the submake
15798         in libXdvi.
15799         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
15801 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
15803         * troff/dictionary.h (object_dictionary::alias): Declare return
15804         value as int.
15805         * troff/dictionary.c (object_dictionary::alias): Return non-zero
15806         if the old name was defined.
15807         * troff/input.c (alias_macro): Give a warning if the old name was
15808         not defined.
15809         * troff/reg.c (alias_reg): Likewise.
15811 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
15813         * troff/input.c (token::next): Delete implementation of \R.
15815         * macros/Makefile: Strip comments from tmac.e while installing it.
15817         * troff/input.c: New variable `nroff_mode'.
15818         (troff_request, nroff_request): New functions.
15819         (init_input_requests): Bind `troff' and `nroff' to troff_request
15820         and nroff_request.
15821         (do_if_request): Compute results of t and n conditions from
15822         nroff_mode.
15824         * text/text.c (split_text): Fix typo in >=.
15826         * eqn/lex.c: Add definition of `==' to def_table.
15828 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
15830         * pic/tex.c (tex_output::start_picture): Change the definitions of
15831         \graph and \graphtemp so that they work properly with Plain TeX.
15833         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
15834         argument to `ar' is not less than the first.
15836         * pic/pic.y: Allow a comma between elements of the variable list
15837         in the argument to `reset'.
15839         * pic/object.c (arc_object::arc_object): Fix computation of
15840         radius.
15842         * eqn/main.c (main): Add exit(0).
15844 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
15846         * troff/div.c (begin_page): Test no_space_mode after doing the
15847         break, but still push the page ejector cookie before doing the
15848         break.  Also set the next page number after doing the break.
15849         
15850         * xditview/xditview.c (NewFile): Don't set the title and icon name
15851         if this is the first file and its name is `-'.
15852         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
15853         the X75 and X100 devices.
15854         (main): If a device has the XT_OPTION flag set and there's exactly
15855         one file argument, pass the driver -xrm and -title options to set
15856         the icon name and window title to the name of the file.
15858         * troff/env.c (environment_switch): If there was an argument but
15859         it wasn't a valid number or name, then pop an environment but
15860         don't give an error message on underflow.
15862         * troff/number.c (start_number): Correct spelling in error message.
15864         * troff/input.c (token::delimiter): Don't print an error message
15865         if err is false.
15867         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
15868         ParseDrawFunction if dw->display_enable is true.
15870 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
15872         * pic/pic.y: Parse text positioning like normal attributes, so as
15873         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
15874         positioning attribute.
15876 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
15878         * tbl/main.c (process_data): When in state START while reading a
15879         text block, don't change to state MIDDLE if c is a newline.
15881 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
15883         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
15884         so as to avoid shadowing parameter.
15886 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
15888         * tbl/table.c (trim_space): Deleted.
15889         (table::add_entry): Don't call trim_space.
15891 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
15893         * VERSION: Change version to 0.6.
15895         * troff/number.c (parse_expr): Make == work.
15897 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
15899         * man/grog.man: New file.
15900         * man/Makefile: Add grog.n to MAN1PAGES.
15901         * etc/grog.sh: New file.
15902         * etc/Makefile: Install grog.sh as grog.
15904 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
15906         * troff/input.c (token::next): Implement \E.
15908 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
15910         * xditview/tmac.X: Change font translations to match tmac.ps.
15912         * troff/input.c (non_empty_name_warning): Don't give a warning if
15913         `\{' terminates the name.
15915 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
15917         * ps/devps/symbol.diff: New file.
15918         * ps/devps/FontMakefile: Mention symbol.diff.
15920 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
15922         * troff/node.c (font_position): Use get_long_name to read the
15923         external_name.
15925         * troff/env.c (environment_switch): If we get a number that's < 0
15926         or >= NENVIRONMENTS, treat it like a name.
15927         Change NENVIRONMENTS to 10.
15929         * troff/groff.h: Remove definition of FONTS_MAX.
15930         * troff/node.h (class font_family): Make map a pointer instead of
15931         an array. Add a map_size member. Make it a class. Make nm const
15932         and public. Make invalidate_fontno a friend.
15933         * troff/node.c: Define font_table_size. Make font_info a pointer
15934         rather than an array.
15935         (class troff_output_file): Allocate font_position dynamically. Add
15936         nfont_positions member.
15937         (troff_output_file::set_font): Grow font_position if necessary.
15938         (troff_output_file::~troff_output_file): Delete font_position.
15939         (troff_output_file::troff_output_file): Allocate font_position.
15940         (grow_font_table): New function.
15941         (troff_output_file::really_begin_page,
15942         troff_output_file:really_copy_page): Use nfont_positions rather
15943         than FONTS_MAX.
15944         (mount_font_no_translate, mount_style): Call grow_font_table if
15945         necessary.
15946         (font_family::font_family): Allocate map.
15947         (font_family::make_definite): Grow map if necessary. Use
15948         font_table_size instead of FONTS_MAX.
15949         (font_family::~font_family): New function.
15950         (invalidate_fontno): Use font_family::map_size.
15951         (get_fontno, env_space_width, env_half_narrow_space_width,
15952         env_narrow_space_width, symbol_fotno, is_good_fontno,
15953         get_bold_fontno, make_glyph_node): Use font_table_size rather than
15954         FONTS_MAX.
15955         (next_available_font_position): Never return 0.
15957 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
15959         * ps/tmac.ps: Add font translations for compatibility with dpost.
15961 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
15963         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
15964         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
15965         Move definitions baseline_sep, shift_down, column_sep,
15966         matrix_side_sep into...
15967         * eqn/box.c: Add them to param_table.
15968         * eqn/pbox.h: Add declarations to pbox.h.
15970         * troff/input.c (set_string): Cast value to unsigned char *.
15972         * troff/token.h (process_input_stack): Declare it static before
15973         declaring it a friend.
15975 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
15977         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
15978         and bottom.
15979         * dvi/devdvi/EX: Regenerate.
15981         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
15982         transparent.
15984 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
15986         * eqn/lex.c: In defaults_table, make definition of `dot' call
15987         `dot_def'.  Don't explicitly make it roman.  Similarily for other
15988         accents.
15990         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
15991         argument.
15992         (for_input::get, for_input::peek): Use this.
15993         (do_for): Add by_is_multiplicative argument.
15994         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
15995         Change semantic value of optional_by to be a double plus a flag
15996         saying whethet the by clause is multiplicative.
15998         * eqn/lex.c (get_delimited_text): Remember location of start of
15999         definition.  Improve error handling when EOF is encountered.
16001         * lib/font.h: Rename handle_x_command to
16002         handle_unknown_font_command.
16003         * lib/font.c (font::load): Call handle_unknown_font_command for
16004         any unknown command in the font description file.  Don't call
16005         handle_x_command. Include the name of the command in the argv.
16006         Improve message for unknown command after kernpairs or charset
16007         command.
16008         * ps/ps.c (ps_font::handle_x_command): Rename to
16009         handle_unknown_font_command.  Remove message about `x download'
16010         command.  Give error message for wrong number of arguments.
16011         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
16012         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
16013         handle_unknown_font_command. Give an error message for wrong
16014         number of arguments.  Rename design_size to designsize.
16015         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
16016         checksum', `designsize' instead of `design_size'.
16018 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
16020         * eqn/*.[chy]: Change underaccent to uaccent.
16022         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
16023         give it the same precedence as ACCENT.
16024         * eqn/other.c (make_underaccent_box): New function.
16025         * eqn/box.h: Declare it.
16026         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
16027         def_table.
16029 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
16031         * pic/pic.y (reset_all): New function. Called in rule for RESET.
16032         (parse_init): Call reset_all.
16033         (define_variable): When defining scale reset only those
16034         pre-defined variables that are scaled.
16035         (defaults_table): Add `scale' as non-scaled value.
16037         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
16038         together with the text; allow any number of positioning words;
16039         allow center as a positioning word.
16041         * pic/object.c (output::compute_scale): Get picture maximum height
16042         and width from variables called maxpswid and maxpsht.
16043         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
16045 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
16047         * pic/object.c (object_spec::make_text): Multiply textht by number
16048         of text items.
16050         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
16051         occur.
16052         (do_sprintf): New function.
16053         (pic.gperf): Add sprintf token.
16054         (text, sprintf): New rules.
16056         * pic/pic.y: `rand()' with no arguments returns a random number
16057         in the range [0,1).
16059         * pic/pic.y: Allow a bare expression to be an attribute: change
16060         precedences to support this.  Change optional_ordinal rule to
16061         optional_ordinal_last to avoid reduce/reduce conflict.
16062         * pic/object.c (object_spec::object_spec): Initialize direction.
16064         * pic/pic.y: Implement ^ operator meaning exponentiation.
16066         * troff/node.h: Add default argument to mount_font.
16067         * troff/node.c (font_position): Read an optional third argument
16068         giving the external_name.
16069         (mount_font): Add optional argument giving the external_name.
16070         (mount_font_not_translate): Have additional argument giving
16071         external name.  Use this name to load the font.  Pass both names
16072         to font_info::font_info.
16073         (font_info::font_info): Have additional argument giving
16074         external_name.
16075         (class tfont): New member external_name.
16076         (font_info::get_tfont): Use external name to construct tfont_spec.
16078 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
16080         * eqn/lex.c (init_table): Add argument giving device.  Define
16081         name of device to be "1".
16082         (do_ifdef): Counts as true if the argument has been defined with
16083         `define'.
16084         * eqn/main.c (main): Call init_table with device argument. Make
16085         device local to main.
16086         * eqn/eqn.h: Change declaration of init_table. Remove declaration
16087         of device.
16089         * pic/lex.c (get_delimited): Allow text to be delimited by
16090         matching {}s.  Don't recognize ending delimiter within a string.
16092         * troff/input.c (get_delim_name): New function.
16093         (token::next): Implement \C.
16095         * lib/font.c (font::load): Grok ---.  Add an alias for each
16096         character based on its code.
16097         (font::get_code_width): Deleted.
16098         * lib/font.h (class font): Declare font::number_to_index().
16099         Remove declaration of font::get_code_width.
16100         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
16101         to indices of named characters.
16102         (font::number_to_index): New function.
16103         * troff/input.c (font::number_to_index): New function.
16104         (get_charinfo_by_number, charinfo::get_number,
16105         charinfo::set_number): New functions.
16106         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
16107         (token::process, token::description, token::get_char,
16108         token::add_to_node_list, token::operator==): Handle
16109         TOKEN_NUMBERED_CHAR.
16110         * troff/charinfo.h: Declare get_charinfo_by_number,
16111         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
16112         charinfo class.
16113         (charinfo::numbered): New function.
16114         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
16115         * troff/env.h (class environment): Remove declaration of ...
16116         * troff/env.c (environment::make_numbered_char_node): Deleted.
16117         * troff/node.c (make_numbered_node): Deleted.
16118         (class numbered_glyph_node): Remove.
16119         (troff_output_file::put_char_width, troff_output_file::put_char):
16120         Handle numbered chars.
16121         (troff_output_file::numbered_char): Removed.
16122         (tfont::get_code_width): Removed.
16123         (make_glyph_node): Don't search special fonts for numbered
16124         characters.
16125         * troff/node.h: Remove declaration of make_numbered_node.
16126         * driver/input.c (do_file): Handle N command.
16127         * driver/printer.h: Add declaration of ...
16128         * driver/printer.c (printer::set_numbered_char): New function.
16129         * dvi/tfmtodit.c (main): Generate unnamed entries.
16130         * ps/devps/afmtodit: Likewise.
16131         * xditview/xtotroff.c (MapFont): Likewise.
16132         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
16134         * tbl/main.c (process_format): If multiple widths are specified
16135         for a column but all the widths are the same, don't give an error
16136         message.
16138         * tbl/table.c (table::do_row): If the current row is all lines and
16139         the stuff doesn't contains a line, mark the top of the row after
16140         printing stuff before the row.  If the current row is not all
16141         lines and the stuff doesn't contain a line, don't unnecessarily
16142         mark the top of the row before printing the stuff.
16143         
16144 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
16146         * troff/groff.h: Remove MAX_PATH.
16147         * troff/input.c (open_file): Dynamically allocate space for the
16148         path.
16149         (open_mac_file, process_macro_file): Corresponding changes.
16151 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
16153         * troff/node.h (class output_file): Make copy_file pure.  Add
16154         vspace method ifdef COLUMN. Add is_printing method.
16155         * troff/node.c: Add class printing_reg. Add class
16156         real_output_file. Derive other output_file classes from
16157         real_output_file; in these classes rename begin_page to
16158         really_begin_page, print_line to really_print_line, copy_file to
16159         really_copy_file, transparent_char to really_transparent_char.
16160         Move output_file::flush to real_output_file. Add printing member
16161         to class output_file.
16162         * troff/div.h: Remove printing member from top_level_diversion.
16163         Add vspace member function to class diversion ifdef COLUMN. Add
16164         some declarations ifdef COLUMN.
16165         * troff/div.c (top_level_diversion::copy_file,
16166         top_level_diversion::transparent_output,
16167         top_level_diversion::output): Don't test printing member before
16168         output.
16169         * troff/input.c: Handle initial variable_space_request ifdef
16170         COLUMN.
16171         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
16172         but comment it out.
16174 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
16176         * troff/div.c (diversion::need): Make any space forced.  If we
16177         sprung a trap, set truncated_space to minus the distance to the
16178         trap and set needed_space to the amount that was needed.
16179         (top_level_diversion::space): A forced space turns no_space_mode
16180         off.
16181         (class constant_vunits_reg): New class.
16182         (init_div_requests): Implement number registers .trunc and .ne
16183         using constant_vunits_reg.
16184         (class truncated_space_reg): Deleted.   
16186         * troff/div.h: Don't have a no_space_mode member in diversion.
16187         Instead have it in top_level_diversion.
16188         * troff/div.c (diversion::diversion): Don't initialize
16189         no_space_mode.
16190         (top_level_diversion::top_level_diversion): Initialize
16191         no_space_mode.
16192         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
16193         (macro_diversion::output): Don't clear no_space_mode.
16195         * troff/input.c (diverted_space_node::reread): Don't call
16196         environment::do_break.  In fill mode, act like a blank line.
16197         (diverted_copy_file_node::reread): Don't call
16198         environment::do_break.
16200         * troff/div.c (blank_line): New function.
16201         * troff/div.h: Declare it.
16202         * troff/input.c (process_input_stack): Call it.
16204         * troff/div.c (truncated_space_reg::get_string): New function.
16205         (init_div_requests): Bind to .trunc.
16206         (space_request, top_level_diversion::space,
16207         top_level_diversion::output, macro_diversion::space,
16208         macro_diversion::output): Update truncated_space.
16209         (macro_diversion::output): Redo calculations when trap sprung.
16210         (macro_diversion::output, macro_diversion::space): No need for
16211         trap_flag.
16213         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
16214         after truncating post line spacing.
16216 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
16218         * ps/devps/prologue (MF, SF): Make them work even if setfont is
16219         defined as a procedure rather than as an operator.
16221 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
16223         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
16225 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
16227         * troff/div.c (top_level_diversion::output): Merge
16228         output_file::print_line and output_file::end_of_line member
16229         functions.
16230         * troff/div.h (class output_file):
16231         * troff/node.c (troff_output_file::print_line,
16232         troff_output_file::end_of_line, output_file::end_of_line,
16233         ascii_output_file::print_line, suppress_output_file::print_line):
16234         Corresponding changes.  
16236 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
16238         * troff/input.c (token::next): Don't give a warning for `\.'.
16240         * troff/env.c (environment::get_center_lines): New function.
16241         (init_env_requests): Bind number register .ce to it.
16242         * troff/env.h: Declare it.
16243         * tbl/table.c (table::init_output): Define reset macro to restore
16244         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
16245         Then do .ce 0.
16246         (table::print): If center option not given, then imply center
16247         option if SAVED_CENTER_REG > 0.
16249 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
16251         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
16252         Troff.ps from DOWNLOAD.
16253         
16254         * troff/Makefile: Change comment in DEFINES to avoid confusing
16255         System V make.
16257         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
16258         code.  Don't try to catch errors with stopped.
16259         (check_line_lengths): New function.
16260         * ps/devps/prologue (EXEC): Deleted.
16261         (EBEGIN, EEND): New procedures.
16263 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
16265         * troff/input.c: Include request.h before node.h.
16266         * troff/node.c: Likewise.
16267         * troff/env.c: Likewise.
16268         * troff/div.c: Likewise.
16269         * troff/node.h (class special_node): Store argument as a macro
16270         rather than a char *.
16271         * troff/node.c (special_node::special_node, special_node::copy):
16272         Grok this.
16273         (special_node::~special_node): Deleted.
16274         (special_node::tprint): Deleted.
16275         (special_node::tprint_start, special_node::tprint_end,
16276         special_node::tprint_char): New functions.
16277         (troff_output_file::special): Deleted.
16278         (troff_output_file::start_special, troff_output_file::end_special,
16279         troff_output_file::special_char): New functions.
16280         * troff/input.c (special_node::tprint): New function.
16281         (do_special): Use macro not char *.
16282         (do_transparent_macro): Deleted.
16283         (token::next): Don't call do_transparent_macro.
16285         * troff/input.c (token::next): Add 'Y' case.
16286         (do_transparent_macro): New function.
16287         * troff/node.c (troff_output_file::special): Handle newlines with
16288         argument using new continuation convention.
16289         * driver/input.c (get_string): Cope with continuation convention.
16290         (do_file): Don't call skip_line after calling get_string(1).
16291         * ps/ps.c (ps_printer::special, ps_printer::do_import,
16292         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
16293         arg.
16294         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
16295         with +.
16297 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
16299         * troff/input.c (asciify): By default, illegal input characters
16300         should return empty string.
16302         * troff/input.c (copy_file): Handle first page transition like title.
16303         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
16305         * troff/input.c (token::next): Improve error message for EOF after
16306         escape character.
16307         (input_char_description): New function.
16308         (get_char_for_escape_name): Use input_char_description.
16309         (token::next): Warn about unrecognized escape sequences.
16310         (warning_table): Add WARN_ESCAPE.
16311         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
16312         accordingly.
16314         * troff/token.h: Remove declaration of process_input_stack.
16316         * troff/input.c: Remove declaration of init_hyphen_requests.
16317         * troff/request.h: Correct spelling in declaration of same.
16319         * troff/input.c (token::next): Check whether escape_char is 0.
16321 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
16323         * groff.c (main, usage, help): Implement -P and -L options.
16324         * groff.sh: Likewise.
16326         * troff/input.c (token::next): Use some gotos to avoid code
16327         duplication.
16329         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
16330         Avoid calling symbol::symbol if name empty.
16332 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
16334         * troff/input.c (init_input_requests): Make \n(.x return the major
16335         version number and \n(.y return the minor version number.
16336         * troff/Makefile: Construct file majorminor.c defining
16337         major_version and minor_version automatically from ../VERSION.
16339         * troff/node.c (class glyph_node): Make operator new and operator
16340         delete public.
16341         (class ligature_node): Similarily.
16343         * troff/input.c (operator==(const macro &, const macro &)): New
16344         function.
16345         (non_interpreted_node::same): Use this.
16346         (string_iterator::string_iterator): Make macro& argument const.
16348         * troff/input.c (input_iterator::get): New function. Don't make
16349         asciify_macro or class non_interpreted_node friends of class
16350         input_iterator.
16351         (non_interpreted_node::interpret): Use input_iterator::get.
16352         (asciify_macro): Likewise.
16354         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
16355         ~non_interpreted_node): Deleted.
16356         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
16357         Deleted.
16359         * troff/symbol.h: Make all symbol member functions const.
16361         * lib/strtol.c: New file.
16362         * lib/Makefile: Add strtol.c.
16363         * Makefile: Define STRTOL as strtol.o to include strtol in
16364         libgroff.a.
16366 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
16368         * pic/troff.c (troff_output::simple_circle): Divide by scale.
16370 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
16372         * troff/input.c (do_special): Use input_level.
16374         * troff/token.h (TOKEN_BACKSPACE): New token.
16375         (token::backspace): New function.
16376         * troff/input.c (token::description, token::next, token::process):
16377         Grok TOKEN_BACKSPACE.
16378         (do_special): Turn TOKEN_BACKSPACE back into \b.
16380         * troff/token.h (token::leader): New function.
16381         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
16383         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
16385         * troff/input.c (do_special): Use token::description in error
16386         message.
16388 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
16390         * troff/input.c (decode_args): Combine quoted and
16391         quote_input_level variables. Make it a for (;;) loop.
16393         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
16395         * troff/input.c (read_long_escape_name): The test for whether to
16396         expand buffer was off by 1.
16397         (read_string): Similarily.
16399 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
16401         * troff/input.c: Use `const int' rather than `static const int'.
16403         * troff/div.h (diversion::copy_file): Declare as pure virtual.
16404         (macro_diversion::copy_file): New function.
16405         * troff/node.h: New class diverted_copy_file_node.
16406         * troff/node.c: Implement it.
16407         * troff/input.c (copy_file): Use diversion::copy_file. Handle
16408         first page transition by pushing a diverted_copy_file_node.
16409         * troff/input.c (token::next, process_input_stack): Don't handle
16410         COPY_FILE_REQUEST.
16412 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
16414         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
16415         whether space widths need adjusting.
16417         * troff/charinfo.h: Generalize translated_to_space to
16418         special_translation so as to allow translation to \&.
16419         * troff/input.c (translate): Allow translation to \&.
16420         (charinfo::*): Corresponding changes.
16421         * troff/node.c (make_node, node::add_char): Corresponding changes.
16422         * troff/node.h (dummy_node::dummy_node): Allow optional first
16423         argument.
16425         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
16426         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
16427         TOKEN_REQUEST.
16428         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
16429         TOKEN_REQUEST with an argument of TITLE_REQUEST.
16430         (token::process): Grok that.
16431         * troff/input.c (copy_file): Handle first page transition like
16432         title by pushing a COPY_FILE_REQUEST cookie.
16433         (token::next, process_input_stack): Grok that.
16434         * troff/node.h (output_file::copy_file): Add x and y arguments.
16435         Make it non-pure.
16436         * troff/div.c (top_level_diversion::copy_file): Supply them.
16437         * troff/node.c (troff_output_file::copy_file): Add x and y
16438         arguments; moveto specified position.  Invalidate font_position
16439         array after copying file.
16440         (output_file::copy_file): New function.
16441         (suppressed_output_file::copy_file, ascii_output::copy_file):
16442         Removed.
16443         * troff/input.c (transparent_file): New function.
16444         (init_input_requests): Bind to "trf".
16445         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
16446         (process_input_stack): Likewise.
16448         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
16450         * troff/node.c (init_node_requests): New number registers .kern
16451         pointing to global_kern_mode, and .lg pointing to
16452         global_ligature_mode.
16454         * troff/node.c (ligature): Don't change it if we get a bad
16455         integer.
16457         * troff/input.c (do_define_string): Don't strip tabs.
16459         * troff/input.c (asciify_macro): Make the string_iterator auto.
16461         * troff/node.c (init_font_requests): Rename to...
16462         (init_node_requests):
16463         * troff/node.h: Change declaration.
16464         * troff/input.c (main): Change call.
16466         * troff/input.c (node::reread, diverted_space_node::reread): New
16467         methods.
16468         (process_input_stack): Call reread rather than
16469         get_diverted_space_node.
16470         * troff/node.c (node::get_diverted_space_node,
16471         diverted_space_node::get_diverted_space_node): Removed.
16472         * troff/node.h: Declare reread methods instead of
16473         get_diverted_space_node methods. Make `n' member private.
16474         * troff/input.c: (token::diverted_space): Removed.
16475         * troff/token.h: Removed declaration.
16476         
16478 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
16480         * eqn/script.c (script_box::compute_metrics): Don't let
16481         SUP_RAISE_FORMAT become negative.
16483         * tbl/table.c (table::do_row): Entries that don't end in the
16484         this row shouldn't make the row non-blank.
16485         
16486         * tbl/table.c (table::make_columns_equal): Only set the width of
16487         columns which are marked as equal.
16488         
16489         * tbl/main.c (process_data): Before issuing excess data error,
16490         if last character was a newline unget it; then get it again after
16491         the error.  Also include the contents of the entry in the message.
16493         * groff.c: New file.
16494         * Makefile: Build groff from groff.c.  Make it possible to use
16495         either groff.sh or groff.c as groff.
16496         * Makefile.bd: Similarily.
16498 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
16500         * groff.sh: Don't delay expansion of $@ in assignment to files.
16501         Remove occurrences of \".
16503 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
16505         * all Makefiles: Simplify and rearrange.
16507         * Makefile: Handle fmod like malloc.
16508         * lib/Makefile: Similarily.
16509         * lib/fmod.c: Remove #ifdef NEED_FMOD.
16511         * Makefile: Rename OPTIMISE to OPTIMIZE.
16513         * groff.sh: Remove assignment to PATH.
16514         * Makefile: Remove SHPATH variable.
16515         * Makefile.bd: Similarily.
16517         * groff.sh: Add -V option to print the pipeline instead of
16518         executing it.
16520 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
16522         * lib/font.c: Split off file searching into ...
16523         * lib/fontfile.c: New file.
16525         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
16527 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
16529         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
16530         Also change misleading comment.
16531         (table::do_vspan): Change similarily misleading comment.
16532         * tbl/main.c (process_data): A format row with an explicit `s'
16533         uses up a data line, even if all the other columns are `_' or `='.
16535         * troff/input.c (token::description): Fix description of
16536         TOKEN_DUMMY and TOKEN_EMPTY.
16538 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
16540         * groff.sh: Fix description of -Z in help message.
16542 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
16544         * pic/object.c (object_spec::make_object): Allow negative and zero
16545         line thicknesses.
16546         * pic/pic.y: Give linethick default value of -1.0.
16547         * pic/troff.c (troff_output::troff_output): Initialize
16548         last_line_thickness to BAD_THICKNESS.
16549         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
16550         (troff_output::line_thickness): Canonicalize negative thicknesses
16551         to RELATIVE_THICKNESS.
16552         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
16553         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
16554         to -1.0.
16555         (tex_output::start_picture): Set pen_size to -2.0.
16557         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
16558         0, then use 0 linewidth.
16559         (ps_printer::ps_printer): Initialize line_thickness to -1.
16561         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
16563         * ps/devps/symbolchars: Remove `or'.
16564         * ps/tmac.ps: Implement \(or with .char.
16566         * ps/devps/symbolchars: Move most characters into textmap.
16567         * ps/devps/textmap: Add names for troff bracket characters. Remove
16568         ul, ru, br, bv.
16570         * ps/devps/TSymbol.ps: Removed.
16571         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
16572         * ps/tmac.ps: Do with .char what TSymbol did.
16573         * ps/devps/download: Remove TSymbol.
16575         * ps/devps/T: Removed.
16576         * ps/devps/Troff.ps: Removed.
16577         * ps/devps/Troff.afm: Removed.
16578         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
16579         * ps/devps/download: Remove Troff.
16580         * ps/devps/FontMakefile: Remove T target.
16581         * ps/devps/DESC-A4: Remove T from font list.
16582         * ps/devps/DESC-letter: Likewise.
16584         * troff/input.c (macro_to_node): Rename to ...
16585         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
16586         character's definition while processing it.
16587         * troff/node.c (node::add_char, make_node): Change calls to
16588         macro_to_node accordingly.
16590         * troff/input.c (token::next): Translate \_ to \(ul.
16592         * tty/devascii/R.proto: Add `|'.
16593         * tty/devlatin1/R.proto: Likewise.
16595 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
16597         * man: Put the version number in all the man pages.
16599 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
16601         * Makefile.bd: New file.
16602         * README.bd: New file.
16604         * VERSION: New file.
16605         * lib/version.c: Removed.
16606         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
16607         in clean target.
16609         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
16610         environment variable.
16612         * all Makefiles: Split install target into install.bin for
16613         binaries, and install.nobin for everything else.
16614         * Makefile: Add bindist target.
16616         * man/afmtodit.man: New file.
16617         * man/Makefile: Add afmtodit.n to MAN1PAGES.
16618         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
16619         in BINDIR.
16620         * ps/Makefile: Pass BINDIR to make install in devps.
16622         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
16623         the space character.
16625         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
16627 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
16629         * ps/ps.c: Redo font downloading.
16630         * ps/devps/download: New file.
16631         * ps/devps/Makefile: Add download to DEVICEFILES.
16632         * ps/devps/afmtodit: Remove -d option.
16633         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
16634         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
16635         * ps/devps/zapfdr.ps: Likewise.
16636         * ps/devps/TSymbol.ps: Likewise.
16638 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
16640         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
16642 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
16644         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
16645         then strip the first line if it starts with %.
16646         * Makefile: Add a comment about this.
16648         * man/tfmtodit.man: New file.
16649         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
16650         * dvi/Makefile: Install tfmtodit in BINDIR.
16652         * dvi/tfmtodit.c (usage): Mention -v option.
16654 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
16656         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
16657         * troff/node.c (troff_output_file::transparent_char): Don't call
16658         flush_tbuf.
16660         * eqn: Add check_tabs method to most box classes.
16661         * eqn/box.c (box::top_level): Call check_tabs.
16663         * eqn/script.c (script_box::output): Use \Z.
16664         * eqn/limit.c (limit_box::output): Use \Z.
16666         * eqn/box.c (box::top_level): Use itoa.
16668 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
16670         * dvi/tmac.dvi: Add font translations for CR, C, TT.
16671         * dvi/devdvi/Makefile: Don't make links to CW.
16673         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
16674         HX, HD.
16675         * xditview/tmac.X: Likewise.
16677         * troff/node.c: Add font translation feature.
16678         (get_font_translation): New function.
16679         (symbol_fontno): Translate the font name.
16680         (mount_font_no_translate): Rename to mount_font to this.
16681         (mount_font): New function.
16682         (font_family::make_definite): Call mount_font_no_translate instead
16683         of mount_font.
16684         (mount_style): Translate the font name.
16685         (font_translate): New function.
16686         (init_font_requests): Bind "ftr" to font_translate.
16688         * ps/devps/prologue (SN): New procedure that rounds a position to
16689         the nearest (pixel + (.25,.25)).
16690         (DL): Use SN to round endpoints.
16692         * lib/version.c: Changed version to 0.5.
16694 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
16696         * Makefile: Move definition of PAGE to the very beginning, so that
16697         people are less likely to miss it.
16699 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
16701         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
16703         * troff/env.c (environment::choose_breakpoint): Make `can't find
16704         breakpoint' error a warning of type WARN_BREAK.  Change message to
16705         `can't break line'.
16706         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
16707         code 040000.
16708         * troff/input.c: Add WARN_BREAK to warning_table.  Include
16709         WARN_BREAK in DEFAULT_WARNING_MASK.
16711         * tty/tmac.tty: Add definition of \(+-.
16713         * groff.sh: Remove `--' option to set command.
16715         * dvi/devdvi/texsy.map: Remove duplicate md entry.
16717         * ps/devps/eqnchar: Better definition of cdot using md.
16718         * dvi/devdvi/eqnchar:  Likewise.
16719         * xditview/devX100/eqnchar:  Likewise.
16720         * xditview/devX75/eqnchar: Likewise.
16721         * eqn/lex.c: Add definition of cdot.
16723 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
16725         * troff/input.c (get_optional_char): New function.
16726         * troff/input.c (set_page_character): Use get_optional_char(),
16727         rather than has_arg() and tok.get_char(1).
16728         * troff/env.c (tab_character, leader_character, hyphen_char,
16729         field_characters): Likewise.
16730         (margin_character): Likewise.  Also always delete the
16731         margin_character_node.
16733         * troff/input.c (token::get_char): Use token::description.
16735         * troff/input.c (has_arg): Don't skip over tab and \}.
16736         * troff/number.c (start_number): Give a warning if the number
16737         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
16739 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
16741         * troff/input.c (empty_name_warning, non_empty_name_warning): New
16742         functions.
16743         (get_name, get_long_name): Use these.  Rename `warn' argument to
16744         `required'.
16746         * troff/node.c (get_fontno): Test that the symbol is not null.
16748         * troff/input.c (token::description): New function.
16749         * troff/number.c (parse_term): Use token::description in `numeric
16750         expression expected' message.
16751         * troff/groff.h: Add WARN_MISSING.
16752         * troff/number.c (start_number): New function.
16753         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
16754         get_incr_number): Use start_number().
16755         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
16756         default.
16757         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
16758         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
16759         token::descripion.
16760         * troff/input.c (token::get_char): Use WARN_MISSING.
16761         * troff/input.c (token::delimiter): Use token::description.
16762         * troff/env.c (environment_switch): Back out Aug 3 change.
16763         * troff/input.c (has_arg): Skip over \}s and tabs but give a
16764         warning.
16765         * troff/token.h (token::tab): New function.
16766         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
16767         * troff/reg.c (alter_format): Likewise.
16768         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
16770 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
16772         * troff (most files): Redo warnings. Divide warnings into various
16773         categories; warning() has an additional first argument indicating
16774         the category it falls into.
16775         * troff/input.c (main): -w now takes an argument. New option -W.
16776         (enable_warning, disable_warning): New functions.
16778         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
16779         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
16781 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
16783         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
16784         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
16785         * xditview/devX75/eqnchar: Likewise.
16786         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
16788         * eqn/other.c: When bar or over applies to a single character
16789         don't produce an overline_box or an underline_box. Instead produce
16790         an accent_box or an underaccent_box, with the accent a line
16791         whose width is accent_width.  New classes underaccent_box,
16792         overline_char_box and underline_char_box.
16793         * eqn/box.h: Move overline_box, underline_box, accent_box class
16794         declarations into eqn/other.c. Add declarations of
16795         make_underline_box, make_overline_box, make_accent_box.
16796         * eqn/eqn.y: Call make_overline_box, make_underline_box
16797         make_accent_box instead of constructors.
16798         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
16800         * eqn/other.c: Add accent_box::~accent_box.
16801         * eqn/box.h: Declare it.
16803         * groff.sh: With -Tps, use eqn -D.
16805         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
16806         rather than \l.
16807         (underline_box::output): Similarily.
16808         (accent_box::output): Use \Z.
16810         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
16811         bit smaller.)
16813 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
16815         * troff/div.c (top_level_diversion::transparent_output(unsigned
16816         char)): Use asciify.
16817         * troff/input.c (asciify): Don't make it static.
16818         * troff/token.h (asciify): Declare it.
16819         
16820         * troff/input.c (get_name, get_long_name, token::get_char,
16821         token::delimiter): Add an extra default argument which says
16822         whether a warning should be printed.
16823         * troff: Pass a non-zero argument to one of these rather than
16824         printing a warning directly.
16826 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
16828         * troff: Consistently use symbol::is_null.
16830         * troff/dictionary.h: Move some inline functions into
16831         dictionary.c.
16833         * troff/request.h: Move inline functions into input.c.
16834         (request_or_macro::invoke): Make it pure.
16836         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
16837         * troff/input.c (init_input_requests): Use class constant_int_reg.
16838         (class compatible_reg): Deleted.
16839         * troff/div.c (init_div_requests): Use class constant_int_reg.
16840         (class last_post_line_extra_space_reg): Deleted.
16842         * troff/env.c (tab_character): Don't change the tab character if
16843         we get an invalid argument.
16844         (hyphen_char): Similarily.
16846         * troff/reg.c (alter_format): Check that nm is not null.
16848         * Makefile, groff.sh: Make it possible to customize the commands
16849         used for printing PostScript and dvi files. Also make it possible
16850         to customize the path used by groff.sh.
16852         * eqn/eqn.y: Make `left' right associative.
16854 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
16856         * pic/pic.h: Added definition of M_SQRT2 for those systems that
16857         don't have it.
16859         * pic/pic.h: Removed definition of INT_MAX.
16861         * troff/node.c (italic_corrected_node::vertical_extent): Omit
16862         `return'.
16864         * troff/input.c (token::next):  Handle \R like \n.
16866 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
16868         * ps/tmac.pc (PSPIC): Simplify.
16870         * troff/env.c (tab_stops::to_string):
16871         * pic/pic.y (object_type_name):
16872         * pic/troff.c (simple_output::line):
16873         * pic/tex.c (tex_output::spline):
16874         * pic/object.c (object_spec::make_object):
16875         * tbl/main.c (process_data):  Add cases to switch statements to
16876         avoid cfront warnings. (Some of these are spurious, since the
16877         switch already has a default case.)
16879         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
16880         `ps-'.  Don't test systat; instead check number of arguments to
16881         ps-bb.
16883 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
16885         * macros/tmac.e: Do not decrease the page offset by 0.5i.
16887         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
16888         Unlink the file as soon as we have opened it, so that we don't
16889         have to bother with signal handlers.
16890         (handler): Deleted.
16891         (fatal_error_exit): Deleted.
16892         (main): Don't call signal.
16894         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
16895         can be ignored.
16896         * dvi/devdvi/Makefile: Use the -k option with S and MI.
16898         * pic/pic.y:  If there is a label, or an nth construction before
16899         the first `.' in the argument to `with', ignore it and generate a
16900         warning.
16901         * pic/lex.c (lex_warning): New function.
16903         * tbl/table.c (table::init_output): In section keep and release
16904         macro, use 0 indent when diverting and the correct indent when
16905         rereading.
16907         * troff/input.c (interpolate_number_format): Do not interpolate
16908         anything if the number register is not defined.
16910         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
16912 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
16914         * ps/devps/prologue (PICTURE): Set components of graphics state to
16915         their default values.
16917         * ps/devps/text.enc: Add trademark
16918         * ps/devps/textmap: Add names for club, spade, heart, diamond,
16919         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
16920         * ps/devps/symbolchars: Add names for summation and product.
16922         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
16923         suchthat. Add pp. Add upper-case letters.
16925         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
16926         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
16927         Upsilon.
16929         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
16930         rA (right angle bracket) to ra.  Introduce names for double-headed
16931         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
16932         * ps/devps/textmap: Likewise for ps device.
16933         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
16934         * tty/devascii/R.proto: Rename lA to la and rA to ra.
16935         * tty/devascii/R.proto: Likewise.
16936         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
16937         \(uA, \(dA.
16938         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
16940         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
16942         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
16943         def_table.
16945 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
16947         * troff/div.c (when_request): Use symbol::is_null rather than
16948         has_arg to determine whether we have an argument.
16949         (change_trap): Remove the trap if we get an invalid number. Give
16950         an error if we don't get at least the macro name.
16951         (diversion_trap): Remove trap if we get an invalid name or number.
16953         * troff/env.c (environment_switch): Pop if we get an invalid
16954         symbol or numeric expression.
16956         * troff/input.c (do_define_macro):  If EOF is encoutered while
16957         defining the macro, do tok.next() before returning.
16959         * troff/token.h (has_arg): Move definition from here, to ...
16960         * troff/input.c (has_arg): ... here
16962         * troff/env.c (space_size): Do nothing if we get an invalid argument.
16963         * troff/input.c (shift): Likewise.
16965         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
16966         for `.c'.
16968         * pic/troff.c (troff_output::start_picture):  Comment out calls to
16969         `..'.
16971         * eqn/main.c (do_file): Subtract 1 from current_lineno if
16972         interpret_lf_args succeeds.
16974         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
16975         \\.  This avoids problems with \$N.
16977         * groff.sh: Pass -C to preprocessors.
16979         * lib/lf.c (interpret_lf_args):  Be more flexible.
16981         * tbl/main.c (main): Add -C option.
16982         (table_input::get): Do not recognize TE if followed by character
16983         other than a space or newline unless -C option given.
16984         (process_input_file): Likewise for lf, TS.
16985         (process_data): Likewise for lf in text blocks.
16987         * eqn/main.c (main): Add -C option.
16988         (do_file): Don't recognize EQ, EN or lf if followed by character
16989         other than space or newline unless -C option given.
16990         * eqn/lex.c (file_input::read_line): Similarily.
16991         * eqn/eqn.h: Declare compatible_flag.
16993         * etc/soelim.c (main): Add -C option.
16994         (interpret_lf_args): Use version in libgroff.
16995         (do_file):
16997         * pic/main.c (main): Add -C option, which sets compatible_flag.
16998         (top_input::get), (top_input::peek):  If -C option not given,
16999         do not recognize .PS/.PE/.PF/.lf if followed by a character
17000         other than space or newline.
17001         * pic/lex.c (file_input::read_line): Similarily.
17002         * pic/pic.h: Add declaration of compatible_flag.
17004 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
17006         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
17008         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
17009         derived from node.  New class space_char_hmotion_node.
17010         * troff/input.c (asciify_macro): New function.
17011         * troff/input.c (init_input_requests): New request `asciify' bound
17012         to asciify_macro.
17013         * macros/mm.diff: New file.
17014         * Makefile:  In install.mm target use `patch' to apply
17015         macros/mm.diff.
17017         * troff/input.c (macro::print_size): Just print the size in bytes.
17019         * troff/div.c (return_request): Correct the argument
17020         interpretation.
17022 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
17024         * troff/node.h (class composite_node): Add sz member.
17025         * troff/node.c (composite_node::size): Return sz.
17026         * troff/input.c (macro_to_node):  Use the initial size in the
17027         environment as the size of the composite_node.
17029         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
17030         default.
17032 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
17034         * troff/div.c (change_trap): If we get a bad number expression,
17035         do nothing.
17037 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
17039         * lib/matherr.c (matherr): Define this only if math.h defines
17040         TLOSS.
17042 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
17044         * troff/div.c (macro_diversion::distance_to_next_trap): If there
17045         no diversion trap return vunits(INT_MAX - vresolution).
17047 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
17049         * troff/input.c (do_zero_width): New implementation that doesn't
17050         use a temporary environment. Use instead:
17051         (token::add_to_node_list): New function.
17052         * troff/env.c (environment::get_prev_char_height),
17053         (environment::get_prev_char_height),
17054         (environment::get_prev_char_skew): New functions.
17055         (environment::get_prev_char): New function.
17056         (environment::get_prev_char_width): Change to use get_prev_char.
17057         (init_env_request): Implement new registers .cht, .cdp, .csk.
17058         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
17059         \Z being processed in a separate environment.
17061 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
17063         * tbl/table.c: Removed TABLE_BOTTOM_REG.
17065         * tbl/table.c (table::init_output): In the section release macro,
17066         give a warning message if the section won't fit on one page.
17068         * tbl/table.c (table::do_top): Emit table keep only if table is
17069         boxed.
17070         (table::do_bottom): Likewise for table release.
17071         (table::table), (table::add_vertical_rule):  Remove reference to
17072         keep member.
17073         * tbl/table.h: Remove keep member.
17075         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
17076         SECTION_RELEASE_MACRO, if there's not enough space before the next
17077         trap to output the diversion, call T# ourselves, set
17078         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
17079         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
17080         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
17081         vertical position and return to it before turning traps on again.
17082         
17083 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
17085         * troff/node.c, troff/node.h: In classes derived from node,
17086         replace prev_char_width method by last_char_node method.
17087         * troff/env.c (environment::get_prev_char_width): Use
17088         node::last_char_node rather than node::get_prev_char_width.
17090         * Makefile: Added comment about -fno-inline on 68030-based
17091         Apollos.
17093         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
17094         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
17095         expressions using sizeof to int.
17096         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
17098         * macros/tmac.e (TS):  Don't move @f back past the current
17099         position.
17101 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
17103         * ps/ps.c (main): Buffer stderr.
17104         * dvi/dvi.c (main): Likewise.
17105         * tty/tty.c (main): Likewise.
17107         * ps/ps.c (ps_printer::do_import): Improve error handling.
17109         * troff/input.c (abort_request): Use asciify.
17111         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
17112         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
17113         type of first argument int rather than char.  This works around a
17114         bug on the 68030 based Apollo using g++ 1.37.1.
17116         * tbl/table.h (class table): Add `keep' member.
17117         * tbl/table.c (table::table): Initialize `keep'.
17118         (table::add_vertical_rule): Set `keep' to 1.
17119         (table::do_top): Only emit table keep macro is `keep' is non-zero.
17120         (table::do_bottom): Likewise for table release macro.
17121         (table::do_row): Emit section keep macro even if the row is 0.
17123 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
17125         * macros/tmac.e (@C): Preserve the font family across the change
17126         in environments.
17128 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
17130         * lib/font.c: Initialize font::hor and font::vert to 1.
17131         (font::load_desc): Check the values of font::hor and font::vert.
17133         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
17134         be included in a C compilation.
17135         (iftoa): Use INT_DIGITS. Include lib.h.
17136         (itoa): Likewise.
17137         (as_string): Likewise.
17138         * tbl/table.c: Removed definition of INT_DIGITS.
17139         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
17140         * troff/input.c (input_input_requests): Likewise.
17141         * ps/ps.c (make_encoding_name): Likewise.
17142         (ps_printer::set_style): Likewise.
17143         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
17145         * tty/devascii/R.proto: Map fm onto '.
17146         * tty/devlatin1/R.proto: Likewise.
17148 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
17150         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
17151         argument to \w is at a different input level.
17153         * tbl/table.c (table::init_output): Define a new macro
17154         REPEATED_VPT_MACRO, like vpt but if in a diversion also
17155         transparently outputs itself.
17156         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
17157         vpt.
17158         (table::do_row): Likewise.
17160         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
17161         TRANSPARENT_STRING_NAME.
17163         * tbl/table.c (table::init_output): In the table release macro
17164         print an error message and don't produce any output if after
17165         issuing the need request the table still will not fit.  Also
17166         remove the diversion after bringing it back.
17168         * tbl/table.c (table::init_output): Define a new macro
17169         REPEATED_MARK_MACRO, like mk but if in a diversion also
17170         transparently outputs itself.
17171         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
17172         is necessary because .TH might not call .T#.
17173         (table::do_top): Likewise TOP_REG.
17174         (table::define_bottom_macro): If TOP_REG is no longer valid, use
17175         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
17176         table header might contain just the two top rules.
17178 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
17180         * troff/div.c: Implement new request `ptr' to print all traps.
17182         * troff/env.c (init_env_requests): Implement `.tabs' reg with
17183         init_string_env_reg.
17184         * troff/env.c (class tab_reg): Deleted.
17186 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
17188         * troff/div.c: New number register .pn returns the number of the
17189         next page as set by the pn request.
17191         * macros/tmac.an: Redid headers and footers.  Number each manual
17192         entry starting from 1 unless \nC is > 0, like Sun.  Added an
17193         optional 5th argument to .TH which specifies the manual name and
17194         appears in the center of the header.  Understand the X, P and D
17195         registers like Sun.
17197 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
17199         * troff/env.c (init_env_requests): New number register `.lt' to
17200         return the title length.
17202         * troff/node.h (class transparent_dummy_node): New class.
17203         * troff/node.c (class transparent_dummy_node): Provide member
17204         functions. 
17205         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
17206         than a dummy_node.
17208         * troff/input.c (token::next): New escape sequence \).
17209         * troff/input.c (get_copy): Recognize \) in copy mode.
17211         * troff/input.c (input_stack::clear): New function.
17212         * troff/input.c (exit_request): Use input_stack::clear.
17214         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
17215         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
17217         * troff/env.c: Move set_page_character to input.c.  Move
17218         page_character to input.c also.
17219         * troff/env.c (title): Split off the reading of the parts of the
17220         title into read_title_parts.
17221         * troff/input.c (read_title_parts): New function.  Check the
17222         input_level when testing whether a token matches the delimiter.
17224         * troff/input.c (exit_request): New function.
17225         * troff/input.c (init_input_requests): Bind ex request to
17226         exit_request rather than exit_groff.
17228         * troff/input.c (exit_groff): Call tok.next() before
17229         process_input_stack().
17231 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
17233         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
17234         * troff/env.h: ditto.
17235         * troff/input.c: ditto.
17237         * troff/env.c (environment::is_empty): Test pending_lines.
17239         * troff/env.c (environment::have_pending_lines): Removed.
17241         * troff/input.c: Add request to flush pending lines from the
17242         environment.
17244         * troff/env.c, troff/env.h: Add automatic widow control feature.
17246         * troff/input.c (exit_groff):  Do process_input_stack() after
17247         do_break() but before setting exit_flag to 2.
17249         * troff/input.c: Remove FLUSH_PENDING_LINES and
17250         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
17251         environment after END_TRAP token seen, but only if there aren't
17252         any more traps still unfinished.
17253         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
17255 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
17257         * troff/env.c: Rename the `retain_size' member of class
17258         pending_output_line to `no_fill'.
17260         * troff/env.c (title): When the line is output, make the
17261         retain_size argument !fill.
17263         * troff/node.h: Add `hyphenated' member to struct breakpoint.
17264         * troff/node.c (space_node::get_breakpoints),
17265         (dbreak_node::get_breakpoints):  Fill this in.
17266         * troff/env.c:  Allow specification of maximum number of
17267         consecutive hyphenated lines.
17269         * troff/env.c (environment::is_empty): Add test for !current_tab.
17271 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
17273         * troff/env.c (environment::hyphenate_line): Don't completely give
17274         up if the word is not to be hyphenated; continue so that breaks
17275         can be made at break_char_node's.
17277         * lib/lib.h: Only define INT_MAX if it's not already defined;
17278         undef INT_MIN if it's already defined.
17280         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
17282         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
17283         This works around a bug in AT&T C++ 2.0 used with an ANSI C
17284         compiler.
17285         
17286         * macros/tmac.an (an-header): Set no-space mode.
17288         * macros/tmac.an (TH): Start a new page if necessary.
17290         * Started using ChangeLog at version 0.4.
17292 Local Variables:
17293 version-control: never
17294 coding: latin-1
17295 End: