* INSTALL.gen: Updated (taken from texinfo CVS).
[s-roff.git] / ChangeLog
blob2335b7f5e12c97d636994217dd4fc2b449a37642
1 2004-10-03  Werner LEMBERG  <wl@gnu.org>
3         * INSTALL.gen: Updated (taken from texinfo CVS).
5 2004-09-28  Werner LEMBERG  <wl@gnu.org>
7         * NEWS: Updated.
9 2004-09-28  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
11         * tmac/groff_www.man: Revised and updated.
13 2004-09-26  Werner LEMBERG  <wl@gnu.org>
15         Fix \$@ and \$* to handle any number of arguments.
17         * src/roff/troff/input.h (BEGIN_QUOTE, END_QUOTE): New special
18         characters.
20         * src/roff/troff/input.cpp (input_iterator::internal_level):
21         Removed.
22         (input_stack): New member functions `increase_level' and
23         `decrease_level'.
24         (input_stack::get_level): Don't use `internal_level'.
25         (get_copy, token::next): Handle BEGIN_QUOTE and END_QUOTE.
26         (end_quote_iterator): Completely removed.
27         (interpolate_arg): Build string for \$@ and \$* which is then
28         pushed onto the input stack.
30 2004-09-23  Keith Marshall  <keith.d.marshall@ntlworld.com>
32         * tmac/groff_ms.man, doc/groff.texinfo: Document changes from
33         2004-09-19.
35 2004-09-23  Werner LEMBERG  <wl@gnu.org>
37         * tmac/an-old.tmac (ne): Using default scaling operator.
39 2004-09-19  Keith Marshall  <keith.d.marshall@ntlworld.com>
41         This change implements the following features:
43         PORPHANS
44           New numeric register: Defines number of lines following LP, PP,
45           QP, IP or XP, which must be kept together, before any automatic
46           page break.  If insufficient space remains on the current page, a
47           page break is forced before the new paragraph begins.
49         HORPHANS
50           New numeric register: Sets number of lines of following paragraph
51           which must be kept with a heading, defined by NH or SH, before any
52           automatic page break.  If insufficient space remains on the
53           current page, a page break is forced before the heading.
55         GROWPS
56           (Thanks to Joerg van den Hoff, for this idea).
58           New numeric register: Sets the first level of heading (set with
59           NH), which will keep the same point size as body text; e.g. if
60           GROWPS is set to 3, .NH 3, .NH 4, ... will produce headings at the
61           point size specified by \n[PS], but .NH 2 and .NH 1 will have
62           progressively larger point sizes, determined by \n[PSINCR] (see
63           below).
65         PSINCR
66           New numeric register: Sets the point size increment for each level
67           of heading, (set with NH), below the threshold level set by
68           GROWPS; e.g. if \n[PS] = 10, \n[GROWPS] = 3 and \n[PSINCR] = 2.0p,
69           then .NH 1 will produce 14pt headings, .NH 2 will produce 12pt,
70           and all other levels will remain at 10pt, (because \n[PS] = 10).
72         SH
73           Existing macro now accepts a numeric argument, to make heading
74           size match that of NH with same argument value, when the
75           GROWPS/PSINCR feature is enabled.
77         SN-DOT
78           New string, set by NH macro, replaces the existing (undocumented)
79           use of SN, to represent the assigned section number.
81         SN-NO-DOT
82           New string, set by NH macro, represents the assigned section
83           number, but omits the terminal period (periods at intermediate
84           levels are retained).
86         SN
87           String set by NH macro, originally undocumented, now implemented
88           as an alias for SN-DOT (which reproduces original behaviour).
90         * tmac/s.tmac (PORPHANS): New register.
91         (par*start): Use it.
92         (HORPHANS, GROWPS, PSINCR): New registers.
93         (SH-NO-TAG, @SH): Use them.
94         (@NH): Improved.
96 2004-09-19  Keith Marshall  <keith.d.marshall@ntlworld.com>
98         * NEWS, doc/groff.texinfo, tmac/groff_ms.man: Document the deletion
99         of `Ds' and `De' macros.
101 2004-09-10  Werner LEMBERG  <wl@gnu.org>
103         In tbl, handle \a as an interpreted leader character if in
104         compatibility mode.
106         * src/preproc/tbl/table.h (PREFIX, PREFIX_CHAR, LEADER,
107         LEADER_CHAR): New macros.
108         (compatible_flag): New declaration.
110         * src/preproc/tbl/main.cpp (table_input): Add LEADER_1, LEADER_2,
111         LEADER_3, and LEADER_4 to `state'.
112         (table_input::get): Handle `\a'.
114         * src/preproc/tbl/table.cpp (PREFIX): Removed.
115         (LEADER_REG): New macro.
116         (table::init_output): Define LEADER_REG string register if in
117         compatibility mode.
119         * src/preproc/tbl/tbl.man: Document it.
121 2004-08-18  Werner LEMBERG  <wl@gnu.org>
123         * tmac/doc.tmac (An): Fix error message.
125 2004-08-06  Werner LEMBERG  <wl@gnu.org>
127         * src/preproc/tbl/main.cpp (main): Call `fatal' not `error' if a
128         file can't be opened.  UNIX tbl has the same behaviour.
130 2004-08-05  Y T  <doarhop@hotmail.com>
132         * src/preproc/grn/hdb.cpp (compatibility_flag): Add declaration.
133         (DBRead): If in compatibility mode, take into account the text
134         when computing figure boundaries.
136 2004-08-05  Werner LEMBERG  <wl@gnu.org>
138         * src/preproc/soelim/soelim.man: Improved.  Based on suggestions
139         from Tadziu Hoffmann.
141 2004-08-03  Werner LEMBERG  <wl@gnu.org>
143         * doc/meref.me: Document `_M' register.
145 2004-08-03  Martin Husemann  <martin@duskware.de>
147         Make hpftodit work correctly on big-endian systems.
149         * src/utils/hpftodit/hpftodit.cpp (File): New method
150         `get_uint32(char *)'.
151         (entry): New member `orig_value'.
152         (read_tags): Use new method.
153         (output_font_name, read_and_output_pcltypeface, dump_ascii):
154         Updated.
156 2004-08-01  Werner LEMBERG  <wl@gnu.org>
158         * tmac/s.tmac: Undo change 2003-06-29.  The proper macro definitions
159         are already in X11's `macros.t' file.
161 2004-08-01  Jeff Conrad  <jeff_conrad@msn.com>
163         * src/utils/hpftodit/hfptodit.cpp (output_font_name, dump_ascii):
164         Fix casting bug.
165         (read_and_output_pcltypeface): Handle strings with length <= 4.
167 2004-07-27  Egil Kvaleberg  <egil@kvaleberg.no>
169         * tmac/s.tmac (pg@top): Don't save `PO' register.
170         (pg*end-col, pg*end-page): Directly use `PO' register.
172 2004-07-27  Werner LEMBERG  <wl@gnu.org>
174         * man/groff_tmac.man: Mention `trace' and `pic' macro packages.
176         * src/preproc/refer/refer.cpp (output_references): Check for
177         empty hash table.
178         * src/preproc/refer/refer.man: Improve documentation of
179         `bibliography' command.
181 2004-07-26  Werner LEMBERG  <wl@gnu.org>
183         Add requests `fcolor' and `gcolor'.
185         * src/roff/troff/env.cpp (fill_color_change, glyph_color_change):
186         New functions.
187         (init_env_requests): Add `fcolor' and `gcolor'.
189         * src/roff/troff/input.h: Export do_glyph_color and do_fill_color.
191         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
192         Document new requests.
194 2004-07-24  Werner LEMBERG  <wl@gnu.org>
196         Add support for fractional point sizes in ms macros.  A value for
197         PS, VS, FPS, and FVS greater than or equal to 1000 is always divided
198         by 1000.  For example, `.nr PS 10250' sets the font size to 10.25p.
200         * tmac/s.tmac (@AU, @AI, par@load-init, par@init, par@reset, NL,
201         PX): Handle fractional point sizes for PS, VS, FPS, and FVS.
203         * tmac/groff_ms.man, docs/groff.texinfo, NEWS: Document it.
205 2004-07-19  Werner LEMBERG  <wl@gnu.org>
207         * src/preproc/pic/lex.cpp (for_input): Add member `from'.
208         Update constructor.
209         (do_for, for_input::get, for_input::peek): Handle negative `by'.
210         * src/preproc/pic/pic.man, doc/pic.ms, NEWS: Document it.
212 2004-07-08  Thomas Klausner  <wiz@netbsd.org>
214         * tmac/doc-syms (doc-str-St--p1003.1-2004): New string.
215         * tmac/groff_mdoc.man: Updated.
217 2004-07-05  Werner LEMBERG  <wl@gnu.org>
219         * doc/groff.texinfo: Further improve documentation of `hcode'.
221 2004-07-04  Sang Dae Yu  <sdyu@bh.knu.ac.kr>
223         Improve appearance of arrows in pic.
225         * src/preproc/pic/object.cpp (draw_arrow): Make outline of filled
226         arrow head thin.
227         Use two line segments for drawing non-filled arrow head.
228         (line_object::print, spline_object::print): Shorten line length to
229         avoid arrow sticking.
230         (arc_object::print): Take arrow direction into account.
232 2004-07-03  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
234         * tmac/groff_www.man: Update documentation of .MPIMG.
236 2004-07-03  Werner LEMBERG  <wl@gnu.org>
238         * tmac/an-old.tmac (RI): Always start with font `R'.
239         (RI, IR): Properly end with font `R'.
241 2004-07-02  Paul Eggert  <eggert@cs.ucla.edu>
243         * man/ditroff.man, man/groff_font.man, man/groff_out.man,
244         src/devices/grohtml/grohtml.man, src/preproc/grn/grn.man,
245         src/preproc/pic/pic.man, tmac/groff_man.man, tmac/groff_ms.man:
246         Don't pass more than six arguments to .R, .I, .B, etc., for
247         compatibility with traditional troff macros.
249 2004-07-02  Werner LEMBERG  <wl@gnu.org>
251         * src/roff/troff/input.h: s/COMPATIBLE_SAVE/PUSH_GROFF_MODE/.
252         s/COMPATIBLE_RESTORE/POP_GROFFCOMP_MODE/.
253         Update all users.
254         (PUSH_COMP_MODE): New internal character constant.
255         Update all users.
257         * src/roff/troff/input.cpp (get_copy): Handle PUSH_GROFF_MODE,
258         PUSH_COMP_MODE, and POP_GROFFCOMP_MODE.
259         (token::next, macro::append): Handle PUSH_COMP_MODE.
260         (decode_args): Add PUSH_GROFF_MODE or PUSH_COMP_MODE before and
261         POP_GROFFCOMP after each of the decoded arguments to make them
262         independent from the compatibility mode status.
263         (comp_mode): Add `COMP_ENABLE'.
264         (do_define_string, do_define_macro): Handle COMP_ENABLE.
265         (define_string, append_string, define_macro, define_indirect_macro,
266         append_macro, append_indirect_macro): Handle `compatible_flag'.
267         (chop_macro, substring_request, asciify): Handle PUSH_COMP_MODE.
269         * man/groff_diff.man, doc/groff.texinfo: Updated.
271 2004-07-01  Werner LEMBERG  <wl@gnu.org>
273         * doc/groff.texinfo: Improve documentation of `hcode'.
274         Use @documentencoding and convert document to latin-1; to do that
275         make latin characters active and assign proper macros (within a
276         @tex...@end tex environment).
277         * doc/Makefile.in (.texinfo.html, groff): Use --enable-encoding.
278         * doc/Makefile.sub (groff): Ditto.
280 2004-06-29  Werner LEMBERG  <wl@gnu.org>
282         Implement two new conditional operators `F <name>' and `S <name>'
283         which check whether <name> is a valid font or style, respectively.
285         * src/libs/libgroff/font.cpp (text_file): Add `silent' member.
286         (text_file::text_file): Updated.
287         (text_file::error): Don't emit message if `silent' is set.
288         (font::load_font): Add optional third argument (which is directly
289         passed to `load'.
290         (font::load): Add optional second argument to check the header of
291         a font only, without emitting warning or error messages.
292         * src/include/font.h (font): Updated.
294         * src/roff/troff/input.cpp (do_if_request): Implement `S' and `F'
295         conditionals.
296         * src/roff/troff/node.cpp (mount_font_no_translate): Add optional
297         fourth argument to check a font without mounting.
298         (check_font, check_style): New functions.
299         * src/roff/troff/node.h: Updated.
301         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
302         Updated.
304 2004-06-27  Werner LEMBERG  <wl@gnu.org>
306         Implement new string-valued register `.sty' to return the current
307         style name.
309         * env.cpp (environment::get_style_name_string): New function.
310         (init_env_requests): Add `.sty' register.
311         * env.h (environment): Updated.
312         * node.cpp (font_info): Make `get_style_name' a friend.
313         (get_style_name): New function.
314         * node.h: Updated.
316         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
317         Updated.
319 2004-06-15  Werner LEMBERG  <wl@gnu.org>
321         * src/preproc/tbl/main.cpp (process_data) <GOT_RIGHT_BRACE>: Handle
322         `nospaces' option.
324 2004-06-10  Colin Percival  <colin.percival@wadham.ox.ac.uk>
326         * doc/meintro.me, doc/meref.me: Don't use \*[td], \n[dy], \*[mo],
327         and \n[mo] to avoid dependency on current date.
329 2004-06-08  Werner LEMBERG  <wl@gnu.org>
331         * Makefile.sub (install_data): New target.
333 2004-06-04  Werner LEMBERG  <wl@gnu.org>
335         * src/libs/libxutil/Makefile.sub (EXTRA_CFLAGS): Define.
337 2004-06-03  Werner LEMBERG  <wl@gnu.org>
339         * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Fix typo and
340         order of libraries.
341         (install_data): Add $(srcdir).
343         * src/utils/xtotroff/Makefile.sub (EXTRA_LDFLAGS): Fix order of
344         libraries.
346 2004-06-02  Werner LEMBERG  <wl@gnu.org>
348         * aclocal.m4 (GROFF_X11): s/have_no_x/groff_no_x/.
349         Add X11 stuff to CFLAGS, LDFLAGS, and LIBS temporarily.
350         Add test for Xmu library.
351         (GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
352         GROFF_APPRESDIR_DEFAULT): New macros.
354         * configure.ac: Call GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
355         and GROFF_APPRESDIR_DEFAULT.
357         * configure: Regenerated.
359         * Makefile.in (appresdir): New variable.
360         (MDEFINES): Add appresdir.
362         * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Add -Xmu and
363         -Xt.
364         (install_data, uninstall_sub): New targets to handle GXditview.ad.
366         * src/utils/indxbib/Makefiles.ub (install_data): Depend on
367         `$(srcdir)/eign', not `eign'.
369         * MANIFEST, INSTALL, NEWS, PROBLEMS: Updated.
371         * man/groff_out.man, man/roff.man, src/devices/grops/grops.man,
372         src/devices/xditview/gxditview.man, src/roff/groff/groff.man:
373         Protect (g)xditview with `\%' to avoid hyphenation.
374         Other minor formatting.
376 2004-06-01  Werner LEMBERG  <wl@gnu.org>
378         Integrate gxditview into groff's standard directory hierarchy.
380         * src/xditview/*: Moved to ...
381         * src/devices/xditview/*: Here.
382         Moved DviChar.h and XFontName.h to src/include.
383         Moved DviChar.c and XFontName.c to new directory src/libs/libxutil.
384         Split off `xmalloc' into new file src/libs/libxutil/xmalloc.c.
385         Moved xtotroff.c to new directory src/utils/xtotroff.
386         Provide proper Makefile.sub files (reusing the stuff from
387         Imakefile.in).
388         DESC renamed to DESC.in.
389         Removed GXDitview-ad.h, INSTALL, Imakefile.in.
390         Converted everything from K&R to ANSI C.
391         Decorated with const where appropriate.
392         Cast string constants with `String' and `char *' where appropriate.
393         Made it compile with C++ (used as a C compiler).
394         Removed other minor compiler warnings.
396         * src/devices/xditview/device.c: Include config.h, string.h, and
397         defs.h.
398         Don't declare `exit', `strtok', `strchr', and `getenv'.
399         (FONTPATH): Remove.
401         * src/devices/xditview/font.c: Don't declare `XParseFontName' and
402         `XFormatFontName'.
404         * src/devices/xditview/xditview.c: Include config.h.
405         Include stdio.h earlier.
406         Protect declaration of `popen' and `pclose' with
407         NEED_DECLARATION_POPEN and NEED_DECLARATION_PCLOSE.
408         Replace `caddr_t' with `XtPointer'.
409         (MakePromptFunc): New typedef.
410         (DoPrint): Use RETSIGTYPE.
411         (promptfunction): Change type to MakePromptFunc.
412         (MakePrompt): Use MakePromptFunc for third argument.
413         (xmalloc): Removed.
415         * src/devices/xditview/ad2c: Add casts to `String'.
417         * src/include/XFontName.h (XFontNameString): Don't use array
418         notation.
419         Add prototypes for `XParseFontName', `XFormatFontName',
420         `XCompareFontName', and `XCopyFontName'.
422         * src/include/Makefile.sub (HDRS): Add `DviChar.h' and
423         `XFontName.h'.
425         * src/utils/xtotroff/xtotroff.c: Include getopt.h.
426         Don't declare `XParseFontName' and `XFormatFontName'.
427         (xmalloc): Removed.
428         (main): Remove `optind' and `optarg'.
430         * Makefile.in (XDEVDIRS, XPROGDIRS, XLIBDIRS): New variables
431         (to select programs which need X).
432         Make XDEVIDIRS depend on `FORCE'.
433         (X_CFLAGS, X_LIBS, X_EXTRA_LIBS, X_PRE_LIBS): New variables (for
434         X support).
435         (MDEFINES): Updated.
436         (LIBDIRS): Use XLIBDIRS.
437         (CPROGDIRS): Use XPROGDIRS.
438         (DEVDIRS): Remove font directories for gxditview.
439         (ALLDIRS, DISTDIRS): Add XDEVDIRS.
440         (EXTRADIRS): Remove src/xditview.
442         * Makefile.sub (DISCLEANFILES): Updated.
444         * Makefile.comm (LIBXUTIL): New variable.
445         (.cpp.o, .cpp.obj): Handle EXTRA_CCFLAGS.
446         (.c.o, .c.obj, .y.o): Handle EXTRA_CFLAGS.
448         * Makefile.cpg, Makefile.ccpg ($PROG): Handle EXTRA_LDFLAGS.
450         * aclocal.m4 (GROFF_X11): New function.
452         * configure.ac: Call GROFF_X11.
453         Don't create src/xditview/Imakefile.
454         Don't emit notice how to build gxditview.
456         * configure: Regenerated.
458         * test-groff.in (GROFF_BIN_PATH, XENVIRONMENT): Updated.
460 2004-05-28  Akihiro Sagawa  <sagawa@sohgoh.net>
462         * Makefile.in (CPPFLAGS): Define.
463         (MDEFINES): Add CPPFLAGS.
465 2004-05-27  Werner LEMBERG  <wl@gnu.org>
467         * arch/misc/Makefile.sub (shdeps.sed): Use $(srcdir).
469 2004-05-26  Niklas Edmundsson  <nikke@acc.umu.se>
471         Fix problems with `friend name injections'.
473         * src/preproc/eqn/box.h (make_mark_box, make_lineup_box,
474         make_script_box), src/roff/troff/div.h (end_diversions),
475         src/roff/troff/env.h (title), input.cpp (process_input_stack): Undo
476         change 2004-04-08.
478 2004-05-25  Bernd Warken  <bwarken@mayn.de>
480         * src/preproc/pic/pic.man, doc/pic.ms: Add example for `command'.
482 2004-05-25  Werner LEMBERG  <wl@gnu.org>
484         * src/libs/libgroff/cset.cpp, src/libs/libgroff/lf.cpp,
485         src/libs/libgroff/color.cpp: Include lib.h.
487 2004-05-25  Paul Eggert  <eggert@cs.ucla.edu>
489         * PROBLEMS: Update documentation for problems with Sun C++ 5.0
490         through Forte 6u1, and for how to get GNU make on Solaris.
492 2004-05-24  Werner LEMBERG  <wl@gnu.org>
494         * PROBLEMS: Document problems with gcc 3.4.0 on Sun.  Reported
495         by Paul Eggert.
497 2004-05-15  Keith Marshall  <keith.d.marshall@ntlworld.com>
499         * arch/misc/Makefile.sub (shdeps.sed): Don't use `$<' in explicit
500         rule.
502 2005-05-14  Werner LEMBERG  <wl@gnu.org>
504         * REVISION: Set to 2.
506         * aclocal.m4 (GROFF_STDINT_H): Removed.
507         (GROFF_INTTYPES_H): Define HAVE_CC_INTTYPES_H.
509         * configure.ac: Updated.
510         * configure, src/include/config.hin: Regenerated.
512         * src/libs/libgroff/tmpname.cpp: Don't include stdint.h but
513         inttypes.h conditionally.
515 2003-05-13  Werner LEMBERG  <wl@gnu.org>
517 Version 1.19.1 released
518 =======================
520 2004-05-10  Stephen Gildea  <http://www.gildea.com/stephen>
522         * src/preproc/refer/label.y (same_author_last_name,
523         same_author_name): Handle empty sort keys.
525 2004-05-10  Werner LEMBERG  <wl@gnu.org>
527         * NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,
528         tmac/TODO: Updated.
530         * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
531         doc-str-Lb-librt): Reset font.
532         (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
533         Provide `doc-str-Lb' to reset font.
534         * tmac/groff_mdoc.man: Updated.
536 2004-05-08  Jan Schaumann  <jschauma@netmeister.org>
538         * src/preproc/html/pre-html.cpp (make_message): Make it work for
539         snprintf versions which don't conform to ANSI C 99 (this is,
540         counting the string's trailing null byte in the return value).
542 2004-05-07  Keith Marshall  <keith.d.marshall@ntlworld.com>
544         * src/roff/troff/node.cpp (suppress_node::tprint): Don't expect
545         that all implementations of sprintf handle null pointers correctly.
547 2004-05-04  Werner LEMBERG  <wl@gnu.org>
549         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
550         Document `.U' register.
552         * src/roff/troff/env.cpp (environment::mark_last_line)
553         [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers.
555 2004-05-04  Larry Kollar  <kollar@alltel.net>
557         New read-only register `.U'; it returns 1 in safer mode and 0
558         otherwise.
560         * src/roff/troff/input.cpp (init_input_requests): Implement `.U'
561         register.
563 2004-05-03  Werner LEMBERG  <wl@gnu.org>
565         * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
567 2004-04-17  Werner LEMBERG  <wl@gnu.org>
569         * src/include/font.h (font): Use `int' for ch_index.
570         * src/libs/libgroff/font.cpp (font::alloc_ch_index,
571         font::compact): Updated.
573         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
574         warnings.
576         * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
577         (hyphen_word): Fix compiler warnings.
578         * src/roff/troff/input.cpp (get_char_for_escape_name): Return
579         `char'.
580         Update all callers.
581         (get_delim_number, get_line_arg): Change second argument type to
582         `unsigned char'.
583         (macro_header::copy, token::next, do_define_string,
584         do_define_character, substring_request, asciify_macro,
585         unformat_macro, read_size, non_interpreted_node::interpret,
586         while_request, main: Fix compiler warnings.
587         (read_color_draw_node): Initialize `col'.
589         * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
590         `start_col' and `end_col' of type `int'.
591         (vertical_rule): Make `col' of type `int'.
593         * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
594         for EOF.
596         * src/preproc/refer/label.y (uppercase_array, lowercase_array):
597         New arrays.
598         (format_serial): Use them to remove dependency on ASCII.
600         * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
601         compiler warning.
602         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
603         Ditto.
605         * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
606         compiler warnings.
607         (glyph): Change type of `hpos' to `int'.
609         * src/devices/lbp/lbp.cpp (strsep): Removed.  Unused.
610         * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
612         * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
614         * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
616 2004-04-16  Werner LEMBERG  <wl@gnu.org>
618         * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
619         src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
620         src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
621         `double' instead of `float' everywhere.
622         * src/preproc/grn/main.cpp: Use `double' instead of `float'
623         everywhere.
624         (main): Add return value.
625         * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
626         everywhere.
627         Update all user functions.
629         * src/include/search.h, src/include/ptable.h, src/include/printer.h,
630         src/preproc/eqn/box.h, src/preproc/pic/object.h,
631         src/preproc/refer/refer.h, src/preproc/tbl/table.h,
632         src/preproc/tbl/table.cpp, src/roff/troff/env.h,
633         src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
634         src/roff/troff/input.cpp, src/roff/troff/request.h,
635         src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
636         declarations.
638         * src/utils/indxbib/signal.c: Include stdlib.h.
640 2004-04-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
642         * tmac/s.tmac (@init, RP): Allow initialization of the PO register
643         before the first page.
645 2004-04-14  Thomas Klausner  <wiz@netbsd.org>
647         * tmac/doc-common (doc-volume-as-*): Use lowercase names.
648         (doc-operating-system-*): Updated.
649         * tmac/doc-syms (doc-str-St-*): Various small fixes.
650         (doc-str-Lb-*): Add more library names.
652 2004-04-10  Art Haas  <ahaas@airmail.net>
654         * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
655         use anonymous type.
657 2004-04-09  Art Haas  <ahaas@airmail.net>
659         * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
661 2004-04-09  Keith Marshall  <keith.d.marshall@ntlworld.com>
663         * arch/misc/shdeps.sh: Generate better comment for sed script.
665 2004-04-08  Art Haas  <ahaas@airmail.net>
667         * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
668         src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
669         src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
670         src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
671         (polyfill), src/preproc/grn/main.cpp (polyfill),
672         src/preproc/refer/command.cpp (command_table),
673         src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
674         gcc 3.5 doesn't like).
676 2004-04-08  Werner LEMBERG  <wl@gnu.org>
678         Removing many compiler warnings.  groff should now compile with
679         a C++ compiler used for C files also.  [Simple variable renamings
680         to avoid shadowing aren't logged in detail.]
682         * src/devices/grodvi/dvi.cpp: Some local variable renamings.
683         (draw_dvi_printer::draw) ['c']: Enclose in block.
685         * src/devices/grohtml/post-html.cpp: Some local variable renamings.
686         (page::add_line): Fix typos.
687         * src/devices/grohtml/html-text.cpp: Some local variable renamings.
689         * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
690         Some local variable renamings.
691         * src/devices/grolbp/lbp.h: Some local variable renamings.
693         * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
694         variable renamings.
696         * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
697         Remove redundant local variable declaration.
698         * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
699         Don't use `caddr_t' but `void *'.
700         Enclose functions with `extern "C"' for C++.
702         * src/libs/libdriver/input.cpp (remember_filename,
703         remember_source_filename): Use cast for string constant.
705         * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
706         src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
707         src/libs/libgroff/geometry.cpp: Some local variable renamings.
708         * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
709         style.
710         Enclose functions with `extern "C"' for C++.
711         * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
712         (needs_quoting): Return `int'.
713         (quote_arg): Add proper casts to malloc and realloc.
714         * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
715         various MS Windows environments.
716         (spawnvp_wrapper): Add proper cast to malloc.
718         * src/preproc/eqn/box.h: Remove redundant declarations of
719         `make_script_box', `make_mark_box' and `make_lineup_box'.
720         * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
721         * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
722         variable renamings.
724         * src/preproc/grn/hpoint.cpp: Some local variable renamings.
725         * src/preproc/grn/hgraph.cpp: Some local variable renamings.
726         (dx, dy): Renamed functions to...
727         (deltax, deltay): This.
728         * src/preproc/grn/main.cpp: Some local variable renamings.
729         (deffont): Add `const'.
730         (initpic, conv): Use cast for string constant.
732         * src/preproc/html/pre-html.cpp: Some local variable renamings.
733         (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
734         (char_buffer::run_output_filter): Second argument is unused.
735         * src/preproc/html/pushback.cpp: Some local variable renamings.
737         * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
738         * src/preproc/pic/object.cpp: Some local variable renamings.
740         * src/preproc/refer/label.y (lookup_label): Remove redundant
741         declaration of local variable.
743         * src/preproc/soelim.cpp: Remove redundant declaration of
744         `interpret_lf_args'.
746         * src/preproc/tbl/main.cpp: Some local variable renamings.
748         * src/roff/groff/groff.cpp (main): Use cast for string constant.
749         * src/roff/groff/pipeline.c: Enclose declarations of `error',
750         `c_fatal', and `i_to_a' with `extern "C"' for C++.
751         Don't use C++-style comments.
753         * src/roff/troff/env.h: Remove redundant declaration of `title'.
754         * src/roff/troff/node.h, src/roff/troff/env.cpp,
755         src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
756         renamings.
757         * src/roff/troff/div.h: Remove redundant declaration of
758         `end_diversions'.
759         * src/roff/troff/troff.h: Remove redundant declaration of
760         `cleanup_and_exit'
761         * src/roff/troff/input.cpp: Remove redundant declaration of
762         `handle_first_page_transition' and `process_input_stack'.
764         * src/utils/hpftodit.cpp: Some local variable renamings.
766         * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
767         for C++.
768         Don't define RETSIGTYPE.
769         * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
771         * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
772         (error): Use `const' in argument.
773         (main): Remove redundant declaration of `optind'.
774         Move declaration of `Version_string' to top-level.
776         * PROBLEMS: Document difficulties compiling signal.c if a C++
777         compiler is used for C.
779 2004-04-07  Werner LEMBERG  <wl@gnu.org>
781         * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
783 2004-04-06  Keith Marshall  <keith.d.marshall@ntlworld.com>
785         Make scripts like nroff.sh and neqn.sh portable across various
786         (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
787         non-POSIX path separators.  The idea is to extend those scripts to
788         decide at run-time (of the script) which path separator to use.
790         * arch/misc/Makefile.sub: New file.
791         * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
792         This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
793         a proper definition of the variable `GROFF_RUNTIME'.
795         * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
796         (MDEFINES): Add SH_DEPS_SED_SCRIPT.
797         (PROGDEPDIRS): New variable.
798         `FORCE' it.
799         (PROGDIRS): Add PROGDEPDIRS.
801         * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
802         Don't substitute @SEP@ and @BINDIR@.
803         * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
804         (PATH): Use GROFF_RUNTIME.
806         * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
807         Don't substitute @SEP@ and @BINDIR@.
808         * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
809         (PATH): Use GROFF_RUNTIME.
811 2004-04-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
813         * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
814         Cygwin which doesn't handle stderr correctly.
816 2004-03-08  Werner LEMBERG  <wl@gnu.org>
818         * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
819         against empty argument.  Problem reported by <cgd@broadcom.com>.
821 2004-03-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
823         * Makefile.in (SEP): Replaced with...
824         (RT_SEP, SH_SEP): Separators for the target platform's native path
825         separator and the build environment, respectively.
826         (fontpath, tmacpath): Use RT_SEP.
827         (MDEFINES): Updated.
829         * contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
830         * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
831         * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
832         * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
834 2004-03-05  Werner LEMBERG  <wl@gnu.org>
836         * fonts/devlj4/Makefile.sub (LJ4RES): Set to 1200.  This helps to
837         reduce alignment problems with newer printers which use built-in
838         TrueType fonts (instead of the older Intellifonts).  The ideal
839         solution is to provide a second set of groff metric files, but this
840         is extremely time-consuming to produce, given that HP's metric
841         files are very rudimentary.
843 2004-03-01  Werner LEMBERG  <wl@gnu.org>
845         * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
846         s/operand/argument/ in error message.
848 2004-03-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
850         * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
851         is in use.
853 2004-03-01  Antti Kantee  <pooka@netbsd.org>
855         * tmac/s.tmac (XE): Fix error message.
857 2004-02-27  Jeff Conrad  <jeff_conrad@msn.com>
859         * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
860         New macros.
862         * src/roff/groff/pipeline.c: Declare strcasecmp.
863         (run_pipeline) [_WIN32]: Use function name variants which don't
864         start with `_'.
865         Fix stream handling.
867 2004-02-27  Keith Marshall  <keith.d.marshall@ntlworld.com>
869         * src/include/nonposix.h: Fix declaration of `system_shell_name'.
870         Declare `spawnvp_wrapper' and macro definitions of spawnvp only
871         for platforms which use the native Win32 runtime libraries.
872         (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
874         * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
875         QUOTE_ARG_REALLOC_ERROR): Fix string.
877         * src/preproc/html/pre-html.cpp: Remove declaration of
878         `spawnvp_wrapper'.
879         Don't use __MINGW32__.
880         s/DEBUG_FILE/DEBUG_FILE_DIR/.
881         (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
882         (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
883         (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
884         calls to `set_redirection' and `WAIT'.
885         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
886         Fix calls to `set_redirection' and `save_and_redirect'.
887         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
888         to `set_redirection' and `save_and_redirect'.
889         (usage): Fix message.
890         (makeTempFiles, main): Use `DEBUG_FILE'.
892 2004-02-21  Werner LEMBERG  <wl@gnu.org>
894         * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
896 2004-02-21  Keith Marshall  <keith.d.marshall@ntlworld.com>
898         * src/libs/libgroff/quotearg.c: New file, providing proper argument
899         quoting for MSVC's spawn* and exec* functions.
900         * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
901         spawnvp with proper quoting for MSVC.
903         * src/libs/libgroff/assert.cpp (program_name),
904         src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
905         * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
907         * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
909         * src/include/error.h (program_name): Declare as `extern "C"'.
910         * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
912 2004-02-21  Jeff Conrad  <jeff_conrad@msn.com>
914         * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
915         spawnvp_wrapper.
916         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
918 2004-02-20  Jeff Conrad  <jeff_conrad@msn.com>
920         * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
921         variable.
922         (sbasename) [__MSDOS__ || ...]: New function.
923         (system_shell_name) [__MSDOS__ || ...]: Use a different, more
924         generic algorithm.
925         (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
926         (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
927         of XXX.
928         Use STDOUT_FILENO instead of hardcoded file handle.
929         (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
931 2004-02-19  Werner LEMBERG  <wl@gnu.org>
933         * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
934         avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
936 2004-02-18  Werner LEMBERG  <wl@gnu.org>
938         * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
939         new font and mapping files.
941 2004-02-18  Jeff Conrad  <jeff_conrad@msn.com>
942             Keith Marshall  <keith.d.marshall@ntlworld.com>
944         * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
945         an input pipe.  This is needed for the MSVC compiler to make troff's
946         `-o' option work.
948         * src/roff/troff/div.cpp: Include nonposix.h.
949         (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
951 2004-02-17  Werner LEMBERG  <wl@gnu.org>
953         * font/devlj4/generate/special.awk: New script.
954         * font/devlj4/generate/Makefile (S): Use special.awk.
955         * font/devlj4/*: Regenerated, including the following new files:
956         Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
957         MS Symbol (SYMBOL), Wingdings (WINGDINGS).
958         * NEWS: Document new lj4 fonts and revised hpftodit.
960 2004-02-17  Paco Andrés Verdú  <pandres@dragonet.es>
962         * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
964 2004-01-25  Werner LEMBERG  <wl@gnu.org>
966         * src/libs/libgroff/progname.cpp: Replaced with...
967         * src/libs/libgroff/progname.c: New file.
968         * src/libs/libgroff/Makefile.sub: Updated accordingly.
970 2004-01-17  Werner LEMBERG  <wl@gnu.org>
972         * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
974 2004-01-16  Jeff Conrad  <jeff_conrad@msn.com>
976         * font/devlj4/generate/wingdings.map,
977         font/devlj4/generate/symbol.map: Include unnamed glyphs.
978         Use groff glyph names where possible.
979         * src/devices/grolj4/lj4_font.man: Minor updates.
981 2004-01-13  Werner LEMBERG  <wl@gnu.org>
983         * tmac/www.tmac (DC): Handle TTY devices.
985         * doc/webpage.ms: Document viewCVS from ffii.org.
986         * NEWS, README: Updated.
988         * src/roff/groff/groff.man: Mention lj4_font man page.
990         * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
991         variables.
992         (FONTS): Add SYMBOL and WINGDINGS.
993         (SYMBOL, WINGDINGS): New targets.
995 2004-01-13  Jeff Conrad  <jeff_conrad@msn.com>
997         * src/devices/grolj4/lj4_font.man: New man page.
998         * src/devices/grolj4/Makefile.sub (MAN5): New variable.
999         * src/devices/grolj4.man: Mention lj4_font man page.
1001         * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
1002         * src/utils/hpftodit/hpftodit.man: Document it.
1003         (CW): New macro.
1004         Remove details about fonts (which are now in lj4_font.man).
1006         * font/devlj4/generate/symbol.map,
1007         font/devlj4/generate/wingdings.map: New files.
1009 2004-01-12  Werner LEMBERG  <wl@gnu.org>
1011         * README: Mention ffii's viewcvs access.
1013 2004-01-09  Werner LEMBERG  <wl@gnu.org>
1015         * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
1017 2004-01-09  Jeff Conrad  <jeff_conrad@msn.com>
1019         Revert most of the change from 2004-01-03 to better control used
1020         symbol sets.
1022         * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
1023         (text_symbol_sets, special_symbol_sets): New arrays.
1024         (symbol_set_table): New global variable.
1025         (read_symbol_sets): Use search order given in the text_symbol_sets
1026         and special_symbol_sets arrays.  If command line flag -a is not
1027         given, search both arrays.
1028         (output_charset): Require x_height_tag only for command line flag -i.
1030 2004-01-06  Werner LEMBERG  <wl@gnu.org>
1032         Implement string-valued registers \n[.m] and \n[.M] to return the
1033         name of the current drawing and background color, respectively.
1035         * src/roff/troff/symbol.h: Moved to...
1036         * src/include/symbol.h: Here.
1037         Small fixes to make it work outside of the `troff' directory.
1038         * src/roff/troff/symbol.cpp: Moved to...
1039         * src/libs/libgroff/symbol.cpp: Here.
1040         Small fixes to make it work outside of the `troff' directory.
1042         * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
1043         (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
1044         Updated.
1046         * src/include/color.h: Include symbol.h.
1047         (color): Add new field `nm'.
1048         * src/libs/libgroff/color.cpp (color::color): Updated.
1050         * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
1051         src/roff/troff/node.cpp, src/roff/troff/number.cpp,
1052         src/roff/troff/reg.cpp: Don't include symbol.h.
1054         * src/roff/troff/env.cpp: Don't include symbol.h.
1055         (environment::get_glyph_color_string,
1056         environment_get_fill_color_string): New member functions.
1057         (init_env_requests): Handle `.m' and `.M' registers.
1058         * src/roff/troff/input.cpp: Don't include symbol.h.
1059         (default_symbol): Moved to symbol.cpp/symbol.h.
1060         (do_glyph_color, do_fill_color, define_color): Pass symbol name
1061         to color constructor.
1062         * src/roff/troff/env.h: Updated.
1064         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1065         Document new registers.
1067 2004-01-05  Werner LEMBERG  <wl@gnu.org>
1069         * src/roff/troff/node.cpp (space_node::get_breakpoints,
1070         space_node::nbreaks): Protect against zero `next' field.
1072 2004-01-03  Jeff Conrad  <jeff_conrad@msn.com>
1074         In hpftodit, use the symbol sets offered in the TFM.
1076         * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
1077         (symbol_set, text_symbol_sets, special_symbol_sets,
1078         symbol_set_table): Removed.
1079         (get_printcode): Removed.
1080         (read_symbol_sets): Initialize `symbol_set' field with
1081         `NO_SYMBOL_SET'.
1082         Simplify code to just use the `kind' value.
1083         (output_charset): Improve output formatting.
1084         (dump_symbols): Simplified.
1086 2004-01-02  Werner LEMBERG  <wl@gnu.org>
1088         * font/devlj4/generate/text.map: Add more MSL numbers.
1090 2004-01-02  Jeff Conrad  <jeff_conrad@msn.com>
1092         * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
1093         (text_symbol_sets): Add more symbol sets.
1094         (debug_flag): New static variable (moved from `main').
1095         (get_printcode, show_symset): New functions.
1096         (main): Remove `debug_flag'.
1097         (output_charset): Use `show_symset'.
1098         (dump_symbols):  Use `show_symset'.
1099         Print symsets for all glyphs.
1100         (read_map): Actually call `unicode_to_ucode_make' but this time
1101         correctly.
1103 2004-01-01  Werner LEMBERG  <wl@gnu.org>
1105         * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
1106         Fix placement of comments.
1108 2004-01-01  Jeff Conrad  <jeff_conrad@msn.com>
1110         * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
1111         option `-d' is given.
1112         (output_charset): Improve warning messages to give more information.
1113         (dump_symbols): Make information more precise.
1114         (usage): Updated.
1115         (read_map): Don't call unicode_to_ucode_name; the glyph names must
1116         appear as-is and shouldn't be decomposed.
1118 2003-12-31  Werner LEMBERG  <wl@gnu.org>
1120         * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
1121         * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
1122         (FONTS): Add TrueType font families Arial and Times New Roman.
1123         (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
1124         * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
1125         `fl'.
1127 2003-12-31  Jeff Conrad  <jeff_conrad@msn.com>
1129         * test-groff.in (SEP): Quote value.
1130         * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
1131         `tem' to `char*' to avoid deallocation of a pointer to a constant
1132         object which some compilers don't like.
1134 2003-12-31  Werner LEMBERG  <wl@gnu.org>
1136         * font/devlj4/generate (text.map, special.map): Rewritten to work
1137         with the new hpftodit version.
1139 2003-12-30  Jeff Conrad  <jeff_conrad@msn.com>
1141         * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
1142         set and 8bit character code for all glyphs also.
1144 2003-12-30  Werner LEMBERG  <wl@gnu.org>
1146         * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
1148 2003-12-29  Werner LEMBERG  <wl@gnu.org>
1150         More fixes for MSVC compiler.
1152         * doc/Makefile.sub, contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use
1153         $(SEP).
1155         * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
1156         STDERR_FILENO) [_MSC_VER]: Define conditionally.
1157         (getpid) [_MSC_VER]: Remove.
1158         Include direct.h and process.h conditionally.
1160         * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
1161         parentheses for a_delete.
1163         * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
1165         * test-groff: Replaced with...
1166         * test-groff.in: This new template to handle path separator
1167         properly.
1169         * configure.ac: Check for direct.h and process.h.
1170         Generate test-groff script.
1171         * configure, src/include/config.hin: Regenerated.
1173 2003-12-28  Werner LEMBERG  <wl@gnu.org>
1175         Add integral extension glyph.
1176         Add new option `-x' to afmtodit to suppress use of built-in AGL.
1178         * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
1180         * font/devps/generate/textmap: Provide entry for `integralex' to
1181         override (old) PUA value of the AGL.
1182         * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
1183         * font/devps/*: Regenerated.
1185         * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
1186         * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
1188 2003-12-27  Werner LEMBERG  <wl@gnu.org>
1190         Add forgotten `coproduct' symbol (already available for DVI).
1192         * font/devhtml/R.proto, font/devps/generate/textmap,
1193         font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
1194         src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
1195         U+2210 (\[coproduct]).
1197 2003-12-26  Jeff Conrad  <jeff_conrad@msn.com>
1199         hpftodit has been extended to handle TrueType metric files and
1200         more glyphs.  See hpftodit.man for more details.
1202         * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h, 
1203         ctype.h, and unicode.h.
1204         s/msl/charcode/ everywhere since we now handle Unicode values also.
1205         (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
1206         Use it where appropriate.
1207         (MULTIPLIER): Replaced with...
1208         (multiplier): New global static variable.
1209         (scale): Updated.
1210         (tag_type): Add more TFM tags.
1211         (tag_name): New array.
1212         (ENUM_TYPE, FLOAT_TYPE): Removed.
1213         (BYTE_TYPE): New value assigned.
1214         (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
1215         (text_symbol_sets, special_symbol_sets): Extended to cover more
1216         sets.
1217         (check_type): Add return value.
1218         (check_units): Add parameters to get ppi and upem values.
1219         Handle TrueType TFM data.
1220         (output_font_name): New function.
1221         (output_charset): Add parameter to handle TFM type.
1222         Handle TrueType TFMs also.
1223         (em_fract): New macro.
1224         (dump_tags): Be much more verbose and handle more tags.
1225         (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
1226         (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
1227         functions.
1228         (read_map): Add parameter to handle TFM type.
1229         Handle both MSL and Unicode mappings.
1230         (main): Add two new command line options `-a' and `-q'.
1231         Updated to make use of new functions.
1232         (usage): Updated.
1234         * src/utils/hpftodit/hpuni.cpp: New file.
1236         * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
1237         Updated.
1239 2003-12-25  Werner LEMBERG  <wl@gnu.org>
1241         * src/include/nonposix.h (read) [_MSC_VER]: Define.
1243 2003-12-24  Werner LEMBERG  <wl@gnu.org>
1245         * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
1246         by Michail Vidiassov <master@iaas.msu.ru>.
1248 2003-12-20  Werner LEMBERG  <wl@gnu.org>
1250         * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
1251         and u0049_0307.
1252         Add missing latin-2 glyphs.
1253         * font/devutf8/R.proto: Add missing latin-2 glyphs.
1255         * tmac/troffrc: Load `composite.tmac' earlier.
1257         * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
1258         u00{53,73}_0327, and u0049_0307.
1259         * tmac/X.tmac: Add u00{47,67}_0306.
1260         * tmac/tty-char.tmac: Use composite glyph names for readability.
1262         * NEWS: Updated.
1264         * src/include/unicode.h: Remove `extern' keywords.
1266 2003-12-20  Nilgün Belma Bugüner  <nilgun@superonline.com>
1268         * tmac/latin5.tmac: New file.
1270 2003-12-19  Werner LEMBERG  <wl@gnu.org>
1272         Add some glyphs needed for Turkish.
1274         * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
1275         and u0049_0307.
1277         * tmac/composite.tmac: Add `,' as a synonym for `ac' accent. 
1278         * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
1279         u00{53,73}_0327, and u0049_0307.
1281 2003-12-18  Werner LEMBERG  <wl@gnu.org>
1283         * src/devices/grops/ps.cc (ps_output::put_float): Revert change
1284         from 2001-10-04.
1285         Remove trailing zeros.
1287 2003-12-17  Werner LEMBERG  <wl@gnu.org>
1289         Make \? transparent to end-of-sentence recognition.
1291         * src/roff/troff/input.cc (non_interpreted_node): Add
1292         `ends_sentence' member function.
1294 2003-12-16  Werner LEMBERG  <wl@gnu.org>
1296         * doc/groff.texinfo: Document `dt' request correctly.
1297         Other minor typographical improvements.
1299 2003-12-10  Michail Vidiassov  <master@iaas.msu.ru>
1301         * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
1303 2003-12-10  Richard Stallman  <rms@gnu.org>
1305         * LICENSE: Better wording.
1307 2003-12-09  Werner LEMBERG  <wl@gnu.org>
1309         * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
1310         * configure, NEWS: Updated.
1312 2003-12-08  Werner LEMBERG  <wl@gnu.org>
1314         * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
1316 2003-12-07  Bernd Warken  <bwarken@mayn.de>
1318         * LICENSE: Updated.
1320 2003-12-07  Werner LEMBERG  <wl@gnu.org>
1322         * INSTALL: Improved.
1324 2003-12-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
1326         Use path separator character of target platform for compiled-in
1327         default paths.
1329         * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
1330         * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
1331         * configure: Regenerated.
1332         * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
1334 2003-12-05  Werner LEMBERG  <wl@gnu.org>
1336         * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
1337         Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
1339 2003-12-04  Bernd Warken  <bwarken@mayn.de>
1341         * LICENSE: New file.
1343 2003-12-03  Werner LEMBERG  <wl@gnu.org>
1345         * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
1346         ligatures present in AFM files since groff currently only
1347         understands some standard ligatures and nothing else.
1349 2003-12-03  Jeff Conrad  <jeff_conrad@msn.com>
1351         * src/roff/groff/groff.cpp (main): Don't run the spooler if
1352         option -v is given.
1354         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
1355         messages.
1356         Close stdout copy.
1357         Don't use Unix wait flags.
1359 2003-12-02  Werner LEMBERG  <wl@gnu.org>
1361         * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
1362         src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
1363         src/roff/troff/uniuni.cpp: Moved to...
1364         * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
1365         src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
1366         src/libs/libgroff/uniuni.cpp: Here.
1368         * src/include/Makefile.sub.old (HDRS),
1369         src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
1370         src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
1372 2003-12-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
1374         * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
1375         `DEBUG_FILE'.
1376         Updated all users.
1378 2003-12-01  Werner LEMBERG  <wl@gnu.org>
1380         * groff.texinfo: Document special behaviour of `.vs 0'.
1381         Improve documentation of `cflags' request.
1382         * NEWS: Updated.
1384 2003-11-29  Werner LEMBERG  <wl@gnu.org>
1386         * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
1387         * font/devlj4/CORONET: Regenerated.
1389 2003-11-24  Werner LEMBERG  <wl@gnu.org>
1391         * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
1392         if processing hyphenation patterns in traditional mode.
1393         Improve error messages.
1395 2003-11-20  Werner LEMBERG  <wl@gnu.org>
1397         * src/roff/troff/node.cpp (troff_output_file::put_char_width,
1398         troff_output_file::put_char): Fix type of local variable `c'.
1400 2003-11-19  Werner LEMBERG  <wl@gnu.org>
1402         * src/roff/groff/pipeline.c (P): Removed.  Updated all function
1403         declarations.
1404         (i_to_a): Removed.  libgroff already provides this function.
1405         (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
1407 2003-11-18  Keith Marshall  <keith.d.marshall@ntlworld.com>
1409         * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
1410         HAVE_DECL_SYS_LIST.
1412 2003-11-17  Werner LEMBERG  <wl@gnu.org>
1414         * COPYING: Use correct version.
1416 2003-11-11  Werner LEMBERG  <wl@gnu.org>
1418         LynxOS 4.0.0 doesn't declare vfprintf.
1420         * configure.ac: Check for vfprintf.
1421         * configure: Regenerated.
1422         * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
1423         * src/include/config.hin: Regenerated.
1425 2003-11-10  Werner LEMBERG  <wl@gnu.org>
1427         LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
1429         * configure.ac: Check for vsnprintf.
1430         * configure: Regenerated.
1431         * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
1432         `HAVE_VSNPRINTF'.
1433         * src/include/config.hin: Regenerated.
1435 2003-11-09  Werner LEMBERG  <wl@gnu.org>
1437         * aclocal.m4: Updated syntax to autoconf 2.59.
1438         (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
1439         Don't check for gsos2.
1440         (GROFF_SRCDIR, GROFF_BUILDDIR): Removed.  autoconf 2.59 provides
1441         working abs_top_srcdir and abs_top_builddir.
1443         * configure.ac: Updated syntax to autoconf 2.59.
1444         Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
1445         Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
1446         * configure: Regenerated.
1448         * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
1449         s/@groff_top_builddir@/@abs_top_builddir@/.
1451         * src/roff/groff/pipeline.c (xstrsignal):
1452         s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
1454 2003-11-07  Werner LEMBERG  <wl@gnu.org>
1456         * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
1457         make start angle smaller than end angle to circumvent a bug in tpic
1458         handling of some versions of dvipdfm (and dvipdfmx).
1460 2003-10-30  Werner LEMBERG  <wl@gnu.org>
1462         * src/devices/grops/grops.man: Improve section on creating EPS.
1464 2003-10-29  Werner LEMBERG  <wl@gnu.org>
1466         * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
1467         -P-pletter).
1469 2003-10-28  Werner LEMBERG  <wl@gnu.org>
1471         * doc/groff.texinfo: Fix documentation of `.if'.
1473 2003-10-27  Michail Vidiassov  <master@iaas.msu.ru>
1475         * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
1476         the form `uniXXXX' also.
1478 2003-10-27  Werner LEMBERG  <wl@gnu.org>
1480         * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
1481         contrib/pic2graph/pic2graph.sh: Implement secure management of
1482         temporary files.
1483         Pass `-P-pletter' to groff to avoid data outside of the converted
1484         area -- some versions of `convert' (for example 5.3.8) don't check
1485         the bounding box of the image but always use a fixed image size
1486         (letter paper format).
1487         * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
1488         contrib/pic2graph/pic2graph.man: Updated.
1490         * src/roff/groff/groff.man: Document $TMP and $TEMP.
1492 2003-10-26  Werner LEMBERG  <wl@gnu.org>
1494         * src/preproc/pic/troff.cpp (troff_output::simple_circle,
1495         troff_output::simple_ellipse, troff_output::simple_arc,
1496         troff_output::simple_line, troff_output::simple_spline,
1497         troff_output::simple_polygon): Insert a space before arguments.
1498         (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
1499         latter doesn't produce a node, so the following `.sp -1' would do
1500         the wrong thing.
1501         Don't emit `.sp -1' after \M.  This also doesn't produce a token
1502         (and we don't have to care about compatibility mode).
1503         (troff_output::set_color, troff_output::reset_color): Don't emit
1504         `.sp -1' after \M and \m.
1506         * src/roff/troff/input.cpp (old_have_input): New global variable.
1507         (input_stack::get): Handle `old_have_input'.
1508         (process_input_stack) <token::TOKEN_NEWLINE>: Call
1509         `trapping_blank_line' depending on `old_have_input', not
1510         `have_input'.
1512 2003-10-20  Keith Marshall  <keith.d.marshall@ntlworld.com>
1514         * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
1515         (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
1516         default directory names for temporary files.
1517         [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
1519         * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
1520         [__MSDOS__] (run_pipeline): Honour environment variables.
1521         Don't use `tmpnam' but `tempnam' to work around messy
1522         implementation.
1524         * README.MinGW: New file.
1526 2003-10-16  Werner LEMBERG  <wl@gnu.org>
1528         * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
1529         `(*t)->next' without testing validity of `*t'.
1530         (usage): Make it more readable.
1532 2003-10-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
1534         Make html device run under both MS-DOS and Win32.
1536         * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
1537         MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
1538         spawn or fork+exec has to be used, and whether parent must sleep
1539         until the child process terminates.  Used in
1540         `char_buffer::run_output_filter'.
1541         (copyofstdoutfd): Removed.
1542         (char_buffer): Replace `write_file_html' and `write_file_troff'
1543         member functions with `emit_troff_output' and `run_output_filter'.
1544         (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
1545         macros.
1546         (replaceFd): Replaced with...
1547         (set_redirection): New auxiliary function.
1548         (waitForChild): Replaced with...
1549         (save_and_redirect): New auxiliary function for.
1551         (char_buffer::do_html, char_buffer::do_image): Simplified, using new
1552         functions.
1554 2003-10-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
1556         * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
1557         (GROFF_LIBC): New function.
1558         * configure.ac: Call GROFF_LIBC.
1559         Check for `kill'.
1560         * configure: Regenerated.
1562         * src/include/lib.h: Handle __MINGW32__.
1563         * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
1564         Add macro for `pipe'.
1565         Define P_tmpdir.
1567         * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
1568         correctly.
1570         * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
1571         Implement.
1573 2003-10-13  Werner LEMBERG  <wl@gnu.org>
1575         Finally fix change 2003-08-26, based on ideas from Chuck Silvers
1576         <chuq@chuq.com>.
1578         * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
1579         directory.
1581 2003-10-12  Werner LEMBERG  <wl@gnu.org>
1583         * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
1584         src/roff/troff/input.cc (usage): Updated.
1586         * NEWS, doc/groff.texinfo: Updated.
1588 2003-10-12  Peter Miller  <millerp@canb.auug.org.au>
1590         * src/libs/libgroff/searchpath.cpp
1591         (search_path::open_file_cautious): New function which also handles
1592         `-' as stdin and stdout depending on the access mode.
1593         * src/include/searchpath.h (search_path): Updated.
1595         * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
1596         * src/devices/grops/ps.h: Include `searchpath.h'.
1597         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
1598         Open resource file with `include_search_path.open_file_cautious'.
1599         * src/devices/grops/grops.man: Document new `-I' switch.
1601         * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
1602         (main), src/devices/grolj4/lj4.cpp (main),
1603         src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
1605         * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
1606         Replaced with...
1607         (include_search_path): New global variable.
1608         (include_path_append): Removed.
1609         (main): Use `include_search_path.command_line_dir' to handle `-I'.
1610         (do_file): Simplify, using new
1611         `include_search_path.open_file_cautious'.
1613         * src/roff/groff/groff.cpp (print_commands): Accept file handle as
1614         parameter.
1615         (main): Pass arguments to `-I' to both troff and devices.
1616         Improve handling of `-V'.
1617         * src/roff/groff/groff.man: Document changes to -I and -V.
1619         * src/roff/troff/input.cpp (include_search_path): New global
1620         variable.
1621         (next_file, source, ps_bbox_request, transparent_file,
1622         process_input_file): Use new
1623         `include_search_path.open_file_cautious'.
1624         (main) Handle `-I' switch.
1625         * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
1626         Use new `include_search_path.open_file_cautious'.
1627         * src/roff/troff/node.h: New extern symbol `include_search_path'.
1628         * src/roff/troff/troff.man: Document new `-I' switch.
1630 2003-09-15  Ruslan Ermilov  <ru@FreeBSD.org>
1632         Support multiple calls of .Lb in LIBRARY section.
1634         * tmac/doc-common (doc-in-library-section): New register.
1635         (doc-section-library): New string.
1636         (Sh): Set `doc-in-library-section'.
1637         (Rd): Updated.
1638         * tmac/doc-syms (Lb): Insert breaks before and after arguments
1639         if in LIBRARY section.
1640         * tmac/doc.tmac (doc-save-global-vars): Updated.
1641         * NEWS, tmac/groff_mdoc.man: Updated.
1643 2003-09-14  Ruslan Ermilov  <ru@FreeBSD.org>
1645         * tmac/doc-common (doc-default-operating-system): New variable.
1646         (Os): Use it.
1648 2003-09-08  Werner LEMBERG  <wl@gnu.org>
1650         * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
1652 2003-08-31  Werner LEMBERG  <wl@gnu.org>
1654         * contrib/mom/Makefile.sub: Fix last change to make it really work.
1655         * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
1656         (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
1657         $(DEVFILES) are not empty.
1658         * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
1660 2003-08-26  Chuck Silvers  <chuq@chuq.com>
1662         * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
1663         with parallel runs of `make'.
1665 2003-08-23  Stephen Gildea  <http://www.gildea.com/stephen>
1667         * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
1668         insert SORT_SEP.  With certain combinations of sort specifications,
1669         refer sorted entries in the wrong order.  In particular, entries
1670         with a missing field should be be sorted before all entries that
1671         have that field, before refer looks to the next field.
1673 2003-08-23  Werner LEMBERG  <wl@gnu.org>
1675         * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
1676         g++ linker is used.  Reported by Mark J. Reed
1677         <mark.reed@turner.com>.
1679 2003-08-16  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
1681         Add key character `x' to tbl which makes tbl call a user-defined
1682         macro on a table cell.
1684         * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
1685         * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
1686         `set_modifier' after printing the compatibility request.
1687         (set_modifier): Print call to `m->macro' if not empty.
1688         * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
1689         `macro'.
1690         (process_format): Implement cases `x' and `X'.
1691         * src/preproc/tbl/tbl.man, NEWS: Updated.
1693 2003-08-15  Werner LEMBERG  <wl@gnu.org>
1695         * doc/groff.texinfo: Minor fixes.
1697 2003-08-09  Werner LEMBERG  <wl@gnu.org>
1699         * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
1701 2003-08-07  Werner LEMBERG  <wl@gnu.org>
1703         * doc/Makefile.sub: Not all shells expand wildcards in the `for'
1704         argument list to nothing if there is no file to match.  Use `ls' as
1705         a protection, similar to autoconf.
1707         * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
1708         empty argument lists.
1710         * doc/groff.texinfo: Improve documentation how vertical spacing
1711         and line breaks interact.
1712         Other minor fixes.
1714         * tmac/www.tmac: Initialize `www-htmlimage-gap'.
1716 2003-08-03  Werner LEMBERG  <wl@gnu.org>
1718         * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
1719         EPS (using eps2eps or similar programs to compute the bounding box).
1721 2003-07-24  Werner LEMBERG  <wl@gnu.org>
1723         * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
1724         * doc/texinfo.tex: Updated from texinfo 4.6.
1725         * README.CVS: From now on we need texinfo 4.6.
1727 2003-07-23  Werner LEMBERG  <wl@gnu.org>
1729         Add requests `dei1' and `ami1' for completeness.
1731         * src/roff/troff/input.cc (calling_mode): Remove
1732         CALLING_DISABLE_COMP.
1733         (comp_mode): New enumeration.
1734         (do_define_string, define_string, define_nocomp_string,
1735         append_string, append_nocomp_string): Updated.
1736         (do_define_macro): Add third parameter.
1737         (define_macro, define_nocomp_macro, define_indirect_macro,
1738         append_macro, append_nocomp_macro, append_indirect_macro): Updated.
1739         (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
1740         functions.
1741         (ignore): Updated.
1742         (init_input_requests): Add `dei1' and `ami1'.
1744         * tmac/trace.tmac: Handle de1 and am1.
1745         (de): Improve tracing message.
1746         (am): Add missing `do'.
1747         (return): Use de1.
1749         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1750         Document new requests.
1752 2003-07-22  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
1754         Add option -G to .MPIMG to insert a gap between text and the image.
1756         * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
1757         www-finish-left-ll): Updated.
1758         (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
1759         (MPIMG): Make option -L and -R optional.
1760         Implement option -G.
1762 2003-07-22  Gaius Mulley  <gaius@glam.ac.uk>
1764         * src/devices/grohtml/post-html.cpp
1765         (html_printer::do_file_components): Don't use `stdout' as lvalue
1766         since it can be a macro.
1768 2003-07-22  Werner LEMBERG  <wl@gnu.org>
1770         * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
1771         the corresponding test in aclocal.m4.
1773 2003-07-21  Werner LEMBERG  <wl@gnu.org>
1775         * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
1776         names but RGB values directly.  Otherwise pnmtopng depends on
1777         an external file `rgb.txt' which maps colour names to values.
1779 2003-07-20  Werner LEMBERG  <wl@gnu.org>
1781         * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
1782         * configure, src/include/config.hin: Regenerated.
1784         * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
1786 2003-07-19  Werner LEMBERG  <wl@gnu.org>
1788         * PROBLEMS: Add solution for UTF-8 problem with hyphens.
1790 2003-07-18  Werner LEMBERG  <wl@gnu.org>
1792         * *.man: Switch to non-compatibility mode temporarily if GNU
1793         syntax extensions are used in the particular man page.
1795         * PROBLEMS: Add solutions for SGR problems.
1797 2003-07-17  Werner LEMBERG  <wl@gnu.org>
1799         Don't ignore grotty's command line options if \X'tty: sgr ...' is
1800         used to change the drawing scheme.
1802         * src/devives/grotty/tty.cpp (bold_flag_option,
1803         underline_flag_option, italic_flag_option, reverse_flag_option,
1804         bold_underline_mode_option): New global variables.
1805         (update_options): New function.
1806         (tty_printer::special): Call update_options.
1807         (main): Don't set xxx_flag but xxx_flag_option, then call
1808         update_options.
1810 2003-07-14  Werner LEMBERG  <wl@gnu.org>
1812         Make grotty emit proper Unicode box drawing characters for -Tutf8.
1814         * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
1815         values.
1816         (hline_char, vline_char): New global variables.
1817         (tty_printer::tty_printer): Initialize them.
1818         (tty_printer::draw): Emit START_LINE and END_LINE flags for both
1819         horizontal and vertical lines.
1820         (crossings): New global array.
1821         (tty_printer::end_page): Use it to determine the proper crossing
1822         character for -Tutf8.
1824 2003-07-12  Werner LEMBERG  <wl@gnu.org>
1826         * doc/Makefilesub (HTMLDOCFILESALL): New macro.
1827         (HTMLDOCFILES): Revert to `pic.html'.
1828         (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
1830 2003-07-11  Werner LEMBERG  <wl@gnu.org>
1832         * doc/pic.ms: Improve documentation of absolute coordinates.
1833         Document absolute positioning of pictures.
1835         * NEWS: Add new pic capability.
1837 2003-07-09  Hartmut Henkel  <hartmut_henkel@gmx.de>
1839         * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
1840         Rewritten.
1842 2003-07-07  Werner LEMBERG  <wl@gnu.org>
1844         Implement support for dashed and dotted ellipses in pic.  Based on
1845         a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
1847         * src/preproc/pic/common.cpp (common_output::ellipse_arc,
1848         common_output::dashed_ellipse, common_output::dotted_ellipse): New
1849         functions.  Ellipse arcs are approximated with circle arcs.
1850         * src/preproc/pic/common.h (common_output): Updated.
1851         * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
1852         functions.
1853         * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
1855         * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
1857 2003-07-06  Werner LEMBERG  <wl@gnu.org>
1859         Make grotty work on platforms which have unsigned char as the
1860         default for char.  Based on a patch by Thomas Klausner
1861         <wiz@netbsd.org>.
1863         * src/devices/grotty/tty.cpp (schar): New typedef.
1864         Updated calls to declare_ptable and implement_ptable.
1865         (glyph): Use schar for back_color_idx and fore_color_idx.
1866         (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
1867         (tty_printer::tty_color, tty_printer::tty_printer,
1868         tty_printer::color_to_idx, tty_printer::put_color): Updated.
1870 2003-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
1872         * src/roff/nroff/nroff.sh: Add option -d for completeness.
1873         * src/roff/nroff/nroff.man: Updated.
1875 2003-07-05  Werner LEMBERG  <wl@gnu.org>
1877         * NEWS, tmac/groff_www.man: Updated.
1878         * doc/Makefile.sub: Updated.
1880 2003-07-05  Gaius Mulley  <gaius@glam.ac.uk>
1882         Implement support for multiple HTML output files.
1884         * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
1885         -j command line option.
1887         * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
1888         global variables.
1889         (file): New fields `new_output_file', `require_links',
1890         `output_file_name'.
1891         (file::file): Updated.
1892         (files::set_file_name, files::set_links_required,
1893         files::are_links_required, files::is_new_output_file,
1894         files::file_name, files::next_file_name): New functions.
1895         (header_desc): New fields `no_of_level_one_headings',
1896         `header_filename'.
1897         (header_desc::header_desc): Updated.
1898         (header_desc::write_headings): Handle multiple files.
1899         (html_printer::write_header): Save file name in which header occurs.
1900         (html_printer::determine_header_level): Possibly split files on
1901         level one headings.
1902         (html_printer::do_links, html_printer::troff_tag): Updated.
1903         (html_printer::insert_split_file, html_printer::do_job_name,
1904         html_printer::emit_link, html_printer::write_navigation,
1905         html_printer::do_file_components): New functions.
1906         (html_printer::~html_printer): Handle multiple files.
1907         (main): Handle command line option `-j'.
1909         * src/devices/grohtml/grohtml.man: Updated.
1911         * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
1912         which splits file.
1914         * tmac/www.tmac (JOBNAME): New macro.
1915         * tmac/s.tmac (SH-NO-TAG): New macro.
1916         (@SH): Call SH-NO-TAG.
1917         (@NH): Updated.
1919 2003-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
1921         * tmac/groff_mdoc.man: Improve documentation of punctuation
1922         characters.
1924 2003-07-04  Ruslan Ermilov  <ru@FreeBSD.org>
1926         * tmac/doc.tmac (Bd): Change to doc-Li-font later.
1928 2003-07-03  Werner LEMBERG  <wl@gnu.org>
1930         * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
1932 2003-07-01  Ruslan Ermilov  <ru@FreeBSD.org>
1934         * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
1935         after `/*' and `*/'.
1936         Fix spacing.
1937         (Fn, Fo): Reduce indentation in synopsis.
1939         * tmac/doc-common (doc-check-depth): New macro.
1940         (doc-end-macro, Sh, Ss): Use it.
1941         (Cd): Fix behaviour in synopsis.
1942         (In): Make it parsed and callable.
1943         If not in the synopsis, represent the C header file enclosed in
1944         angle brackets.
1945         (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
1946         Use minus, not hyphen.
1948         * tmc/groff_mdoc.man: Updated.
1950 2003-07-01  Werner LEMBERG  <wl@gnu.org>
1952         Integrated grap2graph, contributed by Eric S. Raymond.
1954         * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
1955         New files.
1956         * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
1957         contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
1959 2003-07-01  Colin Watson  <cjwatson@debian.org>
1961         * src/xditview/*.c: Add prototypes, fix return types, add includes.
1962         Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
1964 2003-06-31  Ruslan Ermilov  <ru@FreeBSD.org>
1966         * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
1968 2003-06-31  Werner LEMBERG  <wl@gnu.org>
1970         * doc/Makefile.sub (CLEANADD): Remove all files created by
1971         running `make groff.{pdf,dvi}'.
1973         * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
1974         src/xditview also.
1976 2003-06-30  Werner LEMBERG  <wl@gnu.org>
1978         * Makefile.in (SHELL): Define as @SHELL@.
1979         (mkinstalldirs): Use $(SHELL).
1980         (MDEFINES): Add $(SHELL).
1981         * Makefile.comm (SHELL): Removed.
1983 2003-06-29  Werner LEMBERG  <wl@gnu.org>
1985         * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
1986         The X11 documentation files use them.
1987         * tmac/groff_ms.man, doc/groff.texinfo: Document them.
1989 2003-06-15  Robert Goulding  <goulding@Princeton.EDU>
1991         * tmac/e.tmac (@C): Handle .ad also.
1993 2003-06-12  Werner LEMBERG  <wl@gnu.org>
1995         * src/preproc/tbl/tbl.man: Document formatting of text blocks.
1997         * src/roff/troff/input.cc (token::next) <handle_escape_char>:
1998         Assign `n' even here.  It is possible to construct a node
1999         immediately following an escape character:
2001           .di xx
2002           \?\\\?a
2003           .br
2004           .di
2005           .xx
2007 2003-06-10  Werner LEMBERG  <wl@gnu.org>
2009         * README.WIN32: Removed.
2010         * MANIFEST: Updated.
2012 2003-06-07  Werner LEMBERG  <wl@gnu.org>
2014         * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
2016 2003-06-05  Werner LEMBERG  <wl@gnu.org>
2018         * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
2019         in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
2021 2003-06-03  Werner LEMBERG  <wl@gnu.org>
2023         * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
2024         is done by the calling function.
2026 2003-05-22  Ruslan Ermilov  <ru@FreeBSD.org>
2028         * tmac/X.tmac: Fix definition of `em'.
2030 2003-05-22  Werner LEMBERG  <wl@gnu.org>
2032         * src/roff/troff/input.cc (return_macro_request): Fix detection of
2033         argument.
2035 2003-05-18  Werner LEMBERG  <wl@gnu.org>
2037         * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
2038         to make items work which consist only of a tag.
2040 2003-05-17  Werner LEMBERG  <wl@gnu.org>
2042         * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
2043         aren't stretched in a tag (this can fail with unformatted boxes).
2044         Instead, insert a break and go back one line.
2046 2003-05-16  Werner LEMBERG  <wl@gnu.org>
2048         * src/roff/troff/input.cc (return_macro_request): If called with
2049         argument pop macro twice.  We need this to trace `return'.
2051         * tmac/trace.tmac: Handle `return'.
2052         Fix typos.
2054         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2055         Document.
2057 2003-05-15  Larry Kollar  <kollar@alltel.net>
2059         * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
2060         registers `FPS', `FVS', and `FPD'.
2062 2003-05-15  Werner LEMBERG  <wl@gnu.org>
2064         * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
2065         correctly.
2067 2003-05-03  Ruslan Ermilov  <ru@FreeBSD.org>
2069         * tmac/groff_mdoc.man: Slight improvements.
2071 2003-05-03  Werner LEMBERG  <wl@gnu.org>
2073         * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
2074         `doc-header-space' after header line if register `cR' is set.
2076 2003-05-02  Werner LEMBERG  <wl@gnu.org>
2078         * TODO: Updated.
2080 2003-05-01  Ruslan Ermilov  <ru@FreeBSD.org>
2082         * tmac/doc-common (Nd): Use \[em].
2084 2003-05-01  Werner LEMBERG  <wl@gnu.org>
2086         * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
2087         doc-footer-space): Initialize to 0.5i.
2088         (doc-setup-page-layout): Don't set doc-header-space and
2089         doc-footer-space.
2091 2003-04-30  Werner LEMBERG  <wl@gnu.org>
2093         * REVISION: Set to 1.
2095         * doc/pic.ms: Document possible problems with `figname'.
2097 2003-04-29  Werner LEMBERG  <wl@gnu.org>
2099 Version 1.19 released
2100 =====================
2102         * VERSION: Set to 1.19.
2103         * REVISION: Set to 0.
2104         * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
2106         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
2107         Define charset as `US-ASCII' in html output.
2109         * tmac/www.tmac (ULE): Add missing scaling indicator.
2111         * win32-diffs: Removed.
2113 2003-04-28  Werner LEMBERG  <wl@gnu.org>
2115         * doc/groff.texinfo: Document `dn' and `dl' registers if used with
2116         `.da' and `.boxa'.
2117         Document how to insert discardable whitespace with `.ss'.
2119 2003-04-27  Werner LEMBERG  <wl@gnu.org>
2121         * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
2122         work with plain TeX also.
2124         * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
2126 2003-04-25  Gaius Mulley  <gaius@glam.ac.uk>
2128         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
2129         Use a loose DTD.
2131 2003-04-24  Werner LEMBERG  <wl@gnu.org>
2133         * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
2134         vbox with positive height and zero depth if in TeX mode.
2136         * NEWS: Document glyph name changes for grodvi and grolj4.
2138 2003-04-23  Werner LEMBERG  <wl@gnu.org>
2140         * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
2141         * doc/pic.ms: Fixed.
2143 2003-04-21  Werner LEMBERG  <wl@gnu.org>
2145         HP-UX 10.20 has `snprintf' but it isn't declared.
2147         * configure.ac: Add declaration test for snprintf.
2148         * configure: Regenerated.
2149         * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
2150         * src/include/config.hin: Regenerated.
2152 2003-04-19  Werner LEMBERG  <wl@gnu.org>
2154         Add keyword `figname' to pic, specifying the name of the picture
2155         box in TeX mode.  Based on a patch from William J Poser
2156         <wjposer@unagi.cis.upenn.edu>.
2158         * src/preproc/pic/pic.y: New token `FIGNAME'.
2159         (macro_name): New rule of type <str>.
2160         (placeless_element): Handle `FIGNAME'.
2161         * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
2162         * src/preproc/pic/main.cpp (graphname): New global variable.
2163         (do_picture): Initialize `graphname'.
2164         * src/preproc/pic/pic.h: Updated.
2165         * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
2166         `graphname'.
2167         Simplify TeX code.
2168         (tex_output::text): Beautify output.
2169         * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
2170         `shaded' and `outlined' unconditionally.
2171         * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
2172         Minor improvements.
2174         * PROBLEMS, README.CVS: Mention that bison version 1.875b or
2175         greater is necessary.
2177 2003-04-17  Hartmut Henkel  <hartmut_henkel@gmx.de>
2179         Add option -r to soelim to avoid emission of `.lf' lines.
2180         Add option -t to produces TeX comment lines instead of `.lf' lines.
2182         * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
2183         and `tex_flag'.
2184         (usage): Updated.
2185         (main): Handle `-r' and `-t'.
2186         (set_location): Handle `raw_flag' and `tex_flag'.
2187         * src/preproc/soelim/soelim.man, NEWS: Updated.
2189 2003-04-17  Werner LEMBERG  <wl@gnu.org>
2191         * tmac/hyphenex.sh: Replaced with...
2192         * tmac/hyphenex.pl: This perl script to avoid sed compatibility
2193         nightmares.
2195         * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
2196         if --quiet is used for the configure script.
2197         * configure: Regenerated.
2199 2003-04-16  Werner LEMBERG  <wl@gnu.org>
2201         * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
2202         Add `const' to second argument.
2203         (html_printer::add_table_end): Add `const' to argument.
2204         * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
2205         `const' to arguments.
2206         * src/devices/grohtml/html-text.h: Updated.
2208         * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
2209         * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
2210         argument.
2212         * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
2213         cast for integer constant.
2215         * src/preproc/html/pre-html.cpp (image_device): Use `const'.
2216         (writeNbytes): Add `const' to first argument.
2217         (writeString): Add `const' to argument.
2218         (char_buffer::can_see): Add `const' to third argument.
2219         * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
2220         `const' to argument.
2221         * src/preproc/html/pushback.h: Updated.
2223         * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
2224         (include_path_append): Add `const' to argument.
2225         (do_file): Updated.
2227         * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
2228         for `value'.
2229         (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
2230         * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
2231         for `value'.
2232         (unicode_decompose_init::unicode_decompose_init): Updated.
2233         * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
2234         for `value'.
2235         (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
2236         * src/roff/troff/input.cc (process_startup_file): Add `const' to
2237         argument.
2239         * tmac/hyphenex.sh: Make script more portable by using a here
2240         document.
2242 2003-04-15  Werner LEMBERG  <wl@gnu.org>
2244         Renamed all `*.cc' files to `*.cpp'.
2245         Updated all configuration files, makefiles, and documentation.
2247 2003-04-14  Werner LEMBERG  <wl@gnu.org>
2249         * tmac/hyphenex.sh: Slight improvements.
2251 2003-04-13  Werner LEMBERG  <wl@gnu.org>
2253         * font/devascii/R.proto, font/devcp1037/R.proto,
2254         font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
2255         character slots with unnamed glyphs.
2257         * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
2258         (an-first): New global variable.
2259         (an-header): Emit vertical space between multiple man pages.
2261 2003-04-11  Werner LEMBERG  <wl@gnu.org>
2263         * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
2264         values.
2266 2003-04-10  Werner LEMBERG  <wl@gnu.org>
2268         * PROBLEMS: Revised.
2270 2003-04-10  Bernd Warken  <bwarken@mayn.de>
2272         * doc/webpage.ms: Improved.
2274 2003-04-09  Werner LEMBERG  <wl@gnu.org>
2276         Add register \n[.height] which returns the value of \H.
2277         Add register \n[.slant] which returns the value of \S.
2279         * src/roff/troff/env.cc (init_env_requests): Implement.
2280         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2281         Document.
2283 2003-04-08  Werner LEMBERG  <wl@gnu.org>
2285         * tmac/html.tmac: Move some of the data into html-end.tmac.
2286         Remove most of the character translations for eqn since html fonts
2287         now cover those characters.
2288         Load www.tmac.
2289         * tmac/html-end.tmac: New file.
2290         * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
2291         * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
2292         * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
2294 2003-04-07  Werner LEMBERG  <wl@gnu.org>
2296         * man/groff_out.man: Document negative values of `N' if -Thtml is
2297         used.
2299 2003-04-06  Werner LEMBERG  <wl@gnu.org>
2301         * Makefile.comm (depend.temp): Check location of YTABC.
2303 2003-04-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2305         * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
2306         binary path.
2307         (groff_bin_path): Rename to GROFF_BIN_PATH.
2308         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2309         * doc/Makefile.in (TROFFBIN): New variable for troff
2310         binary path.
2311         (GROFFBIN): New variable for groff binary path.
2312         (groff_bin_path): Rename to GROFF_BIN_PATH.
2313         (TROFF): Use TROFFBIN.
2314         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2315         * doc/Makefile.sub (GROFFBIN): New variable for groff
2316         binary path.
2317         (groff_bin_path): Rename to GROFF_BIN_PATH.
2318         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2320         * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
2321         with INSTALL_SCRIPT.
2322         (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
2323         * Makefile.dev (all): Depend on DEVSCRIPTS.
2324         (install_dev): Likewise.
2325         * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
2326         scripts.
2327         * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
2328         (DEVGENSCRIPTS): New variable to hold generated scripts.
2330 2003-04-05  Werner LEMBERG  <wl@gnu.org>
2332         * src/libs/libdriver/input.cc (IntArray::operator[],
2333         IntArray::get_data): Remove meaningless `const' in return value.
2335         * README.CVS: New file.
2337 2003-04-04  Werner LEMBERG  <wl@gnu.org>
2339         Check for stdint.h in C++, not in C.
2341         * aclocal.m4 (GROFF_STDINT_H): New function,
2342         * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
2343         AC_CHECK_HEADERS.
2344         * configure, src/include/config.hin: Regenerated.
2345         * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
2348         Fix handling of &nbsp; in grohtml.  To do this, troff emits `N'
2349         with a negative value, representing the width of the unbreakable
2350         space (only for -Thtml).  grohtml then converts this back to
2351         &nbsp; and uses the value of N as its width.
2353         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
2354         unbreakable_space_node::tprint): Emit `N-<width>'.
2355         * src/include/printer.h (printer::set_numbered_char): Make it
2356         virtual.
2357         Make members `font_table' and `nfonts' protected instead of private.
2358         * src/devices/grohtml/post-html.cc
2359         (html_printer::set_numbered_char): New member function.
2362         * src/libs/libgroff/maxfilename.cc:
2363         s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
2365         * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
2366         emit word marker.
2368 2003-04-03  Sergey A. Osokin  <osa@freebsd.org.ru>
2370         * man/roff.man: Small fixes.
2372 2003-04-03  Werner LEMBERG  <wl@gnu.org>
2374         Make groff independent from locale's numeric settings.
2376         * configure.ac: Check for `setlocale'.
2377         * configure, src/include/config.hin: Regenerated.
2379         * src/include/lib.h: Handle HAVE_SETLOCALE.
2381         * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
2382         (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
2383         (main), src/preproc/pic/main.cc (main): Call `setlocale'.
2386         * doc/groff.texinfo: Change dir category to `Typesetting'.
2387         (Man font macros): Mention that there is no space between arguments
2388         of .BI and friends.
2390         * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
2391         (*printer::change_color, *printer::change_fill_color): Add missing
2392         `const'.
2394 2003-04-02  Werner LEMBERG  <wl@gnu.org>
2396         * src/devices/grohtml/html-table.cc (html_table::emit_col,
2397         html_table::is_gap): Compute table widths after converting border
2398         positions to avoid rounding errors.
2400 2003-04-01  Werner LEMBERG  <wl@gnu.org>
2402         * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
2403         `space_emitted' properly.
2405 2003-03-31  Werner LEMBERG  <wl@gnu.org>
2407         * src/devices/grohtml/html-table.cc: Fix column width calculation.
2408         (html_table::set_linelength): Don't add 1.
2409         (html_table::add_indent): Don't subtract 1.
2411         * tmac/html.tmac: Set default page offset to zero.
2413 2003-03-30  Werner LEMBERG  <wl@gnu.org>
2415         Make groff emit `&nbsp;' for `\ ' and `\~' if `-Thtml' is used.
2417         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
2418         unbreakable_space_node::tprint): New functions.
2419         (troff_output_file): Make space_char_hmotion_mode::tprint and
2420         unbreakable_space_node::tprint to friends.
2421         * src/roff/troff/node.h: Updated.
2423         * font/devhtml/R.proto: Add `&nbsp' at position 0xA0 (as defined
2424         in the HTML standard).
2426 2003-03-29  Werner LEMBERG  <wl@gnu.org>
2428         * src/roff/troff/env.cc (point_size): Fix emission of html tag.
2429         Otherwise, the following code
2431           .di xxx
2432           .ps 10
2433           a
2434           .br
2435           .di
2436           x\*[xxx]
2438         produces `x a' instead of `xa'.  This is a temporary fix, disabling
2439         font changes in diversions for -Thtml.
2441         * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
2442         `HTML-TAG'.
2443         (an-do-tag-html): Merge with ...
2444         (an-do-tag): This macro.
2445         Change code slightly to circumvent grohtml bug.
2446         * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
2448         * src/devices/grohtml/html-table.cc (html_table::emit_col,
2449         html_table::is_gap): Round `width' properly.
2451         * tmac/html.tmac: Provide some default layout parameters for
2452         grohtml.
2454         * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
2455         command.
2457 2003-03-28  Werner LEMBERG  <wl@gnu.org>
2459         src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
2461 2003-03-27  Werner LEMBERG  <wl@gnu.org>
2463         * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
2464         defined.
2466 2003-03-20  Werner LEMBERG  <wl@gnu.org>
2468         * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
2469         `.vs'.
2470         * doc/groff.texinfo: Updated.
2472 2003-03-19  Werner LEMBERG  <wl@gnu.org>
2474         * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
2475         TOKEN_END_TRAP>: Reset `have_input'.
2477 2003-03-18  Werner LEMBERG  <wl@gnu.org>
2479         * src/roff/groff/groff.man: Mention groff_trace man page.
2481 2003-03-16  Werner LEMBERG  <wl@gnu.org>
2483         * Makefile.in (LIBEXT): New variable to indicate the file extension
2484         of library files.  Computed heuristically from $(OBJEXT).
2485         (MDEFINES): Add $(LIBEXT).
2486         * Makefile.lib, Makefile.comm: Use it.
2488         * src/utils/pfbtops/pfbtops.c (get_text): New function.  Split
2489         overlong lines into smaller chunks.
2490         (get_binary): New function.
2491         (main): Use them.
2492         * src/utils/pfbtops/pfbtops.man: Updated.
2494 2003-03-15  Colin Watson  <cjwatson@debian.org>
2496         * src/roff/groff/groff.man: Minor syntax fix.
2498 2003-03-14  Egil Kvaleberg  <egil@kvaleberg.no>
2500         * src/devices/grops/ps.cc (ps_printer::media_set,
2501         ps_printer::~ps_printer): Handle zero paper width and length.
2503 2003-03-13  Werner LEMBERG  <wl@gnu.org>
2505         Add options -p and -l to grodvi.
2507         * src/devices/grodvi/dvi.cc: Include paper.h.
2508         (landscape_flag, user_paper_length, user_paper_width): New global
2509         variables.
2510         (dvi_printer::begin_page): Emit `papersize' special.
2511         Set color after initialization of `cur_h' and `cur_v'.
2512         (main): Add options `-l' and `-p'.
2513         * font/devdvi/Makefile.sub (DESC): Set `papersize'.
2514         * src/devices/grodvi/grodvi.man, NEWS: Updated.
2516         * src/devices/grops/psrm.cc (valid_input_table): Fixed.
2518 2003-03-12  Werner LEMBERG  <wl@gnu.org>
2520         * src/devices/grops/grops.man: Move documentation of .PSPIC to...
2521         * man/groff_tmac.man: This man page.
2522         * man/groff_font.man: Declare `paperwidth' and `paperlength' as
2523         deprecated.
2525         * tmac/X.tmac: Don't load pspic.tmac.
2527 2003-03-11  Werner LEMBERG  <wl@gnu.org>
2529         Make variable `pr' local to libdriver/input.cc.  Based on a patch
2530         by Bernd Warken <bwarken@mayn.de>.
2532         * src/include/driver.h (pr): Removed.
2534         * src/libs/libdriver/input.cc (pr): New global variable.
2535         (do_file): Deallocate `pr'.
2536         * src/libs/libdriver/printer.cc (pr): Removed.
2538         * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
2539         (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
2540         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
2541         (main): Don't delete `pr'.
2543 2003-03-10  Werner LEMBERG  <wl@gnu.org>
2545         * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
2546         * tmac/papersize.tmac: New file.
2547         * tmac/troffrc: Include `papersize.tmac'.
2548         * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
2549         * tmac/an-old.tmac: Set LT to LL by default.
2551         * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
2552         doc/groff.texinfo: Updated.
2554         * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
2555         bug which caused all odd iso papers to have wrong dimensions.
2557         * src/devices/grops/ps.cc (user_paper_width): New global variable.
2558         (main) <'p'>: Set `user_paper_width' also.
2559         (ps_printer::media_width, ps_printer::media_height): Use values
2560         given with option `-p'.
2562 2003-03-09  Werner LEMBERG  <wl@gnu.org>
2564         * src/include/nonposix.h: Provide default for SET_BINARY.
2566         * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
2567         src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
2568         unconditionally.
2570         * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
2571         (main): Treat \r\n as \n.
2573 2003-03-08  Werner LEMBERG  <wl@gnu.org>
2575         * tmac/an-old.tmac: Use register `HY' to control hyphenation.
2576         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
2578 2003-03-07  Werner LEMBERG  <wl@gnu.org>
2580         Added support to access more than 256 glyphs in Type 1 fonts.
2582         * src/devices/grops/ps.cc (subencoding): New structure.
2583         (style): Add `sub' field.
2584         Updated all users.
2585         (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
2586         Add `set_subencoding', `get_subfont' and `encode_subfont' member
2587         functions.
2588         Updated all users.
2589         (ps_printer::set_char): Use `set_subencoding'.
2590         (make_subencoding_name): New function.
2591         (ps_printer::set_style): Handle case where `sty.sub' is not zero.
2592         (ps_printer::~ps_printer): Emit subencoding definitions.
2594         * src/devices/grops/psrm.cc (valid_input_table): New array to
2595         properly support EBCDIC.
2596         (white_space): Add `\f'.
2597         (ps_get_line): Change first argument to be of type `string &'.
2598         Updated all callers.
2599         This allows to get lines of arbitrary length.
2600         Use `valid_input_table'.
2601         Remove warning about non-conforming PS line length.  This seems
2602         not to be of great importance -- for example, dvips don't emit
2603         a warning either.
2604         (PS_LINE_MAX): Removed.
2605         (matches_comment): Change first argument to be of type `string &'.
2607         * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
2609         * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
2610         %AGL_to_unicode, %default_ligatures): New hash tables.
2611         Read all map entries.
2612         Add unencoded characters.
2613         Check for default ligatures if there are no `L' entries.
2614         Print all kern entries.
2615         Print all characters in charset.
2616         * src/utils/afmtodit/afmtodit.man: Updated.
2618         * font/devps/*: Regerated all fonts.
2620         * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
2621         of characters, just use `.trin'.  Otherwise the mapping depends
2622         on the font encoding.
2623         * tmac/ps.tmac: Add `fi' and `fl'.
2624         Improve `Fi' and `Fl'.
2625         * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
2626         * tmac/Xps.tmac: Fix `em'.
2628         * NEWS: Updated.
2630 2003-03-04  Werner LEMBERG  <wl@gnu.org>
2632         * src/roff/troff/input.cc (charinfo_to_node_list): Reset
2633         `have_input'.
2635 2003-03-03  Werner LEMBERG  <wl@gnu.org>
2637         * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
2639         * font/devps/generate/textmap: Remove entry `similarequal'.
2640         * font/devps/symbolmap: Updated.
2642 2003-03-02  Werner LEMBERG  <wl@gnu.org>
2644         * src/libs/libgroff/font.cc (font::load): Fix error message for
2645         bad character type.
2647         * src/devices/grops/grops.man: Improve documentation of the -b
2648         flag.
2650         * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
2651         `ascii' and `cp1047'.
2653 2003-03-01  Werner LEMBERG  <wl@gnu.org>
2655         Document composite glyphs and the `composite' request.
2657         * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
2659 2003-02-28  Werner LEMBERG  <wl@gnu.org>
2661         * font/devdvi/generate/ec.map: Add some more Unicode entities.
2662         * font/devdvi/*EC: Updated.
2664         * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
2665         * tmac/latin1 (latin1-tr): Undo any previous mapping.
2666         * tmac/troffrc: Load `composite.tmac'.
2667         * tmac/Makefile.sub (NORMALFILES): Updated.
2669         * doc/groff.texinfo (Input Encodings): New section.
2670         * NEWS: Updated.
2672 2003-02-27  Werner LEMBERG  <wl@gnu.org>
2674         * doc/texinfo.tex: New version 2003-02-11.06.
2676         * tmac/doc-common (Dt): Don't emit warning for unknown section.
2677         * tmac/groff_mdoc.man: Fix description of `Dt'.
2679 2003-02-26  Egil Kvaleberg  <egil@kvaleberg.no>
2681         * font/devps/prologue.ps: Fix for included Postscript that does
2682         a setpagedevice -- which is now safely ignored.
2684         * NEWS: Updated.
2686         * src/devices/grops/ps.cc: Now sets the page size in the generated
2687         document.  This is done in two ways: Via a %%-comment for gv and
2688         the like, and via a PageSize and setpagedevice for programs that
2689         understands Postscript proper, like ps2pdf.
2691         * src/devices/grops/ps.h: New broken-flag to avoid page size
2692         definition, if required.
2694         * src/devices/grops/grops.man: New broken-flag 16 mentioned.
2696         * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
2697         Not really necessary due to the fix in prologue.ps, but cleaner:
2698         Such information does not belong in an .eps file.
2700         * doc/Makefile.sub: See doc/Makefile.in.
2702 2003-02-26  Ralph Corderoy  <ralph@inputplus.co.uk>
2704         * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
2705         instead of P1 since the latter is broken in some versions of netpbm.
2706         * configure: Updated.
2708 2003-02-26  Larry Kollar  <kollar@alltel.net>
2710         Make man pages more customizable.
2712         * tmac/an-old.tmac (FT): New register holding footer distance from
2713         bottom.
2714         (HF): New string holding the default heading font.
2715         (TH): Handle registers `IN' and `SN' set on the command line.
2716         Use `FT'.
2717         (PT, BT): New strings to customize header and footer lines.
2718         (an-header, an-footer): Use them.
2719         (SH, SS): Use `HF'.
2720         * tmac/groff_man.man: Document changes.
2722         * doc/groff.texinfo: Document man changes.
2723         Document Ultrix extensions of man.
2725 2003-02-26  Werner LEMBERG  <wl@gnu.org>
2727         * src/roff/troff/input.cc (do_width, do_if_request): Reset
2728         `have_input' after changing back to old environment.
2730         * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
2731         function up to be defined before first call.  This is necessary to
2732         avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
2734         * src/utils/afmtodit/afmtodit.pl: Make script search for files in
2735         the default font directory also.  Based on a patch from James
2736         J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
2737         * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
2738         * src/utils/afmtodit/afmtodit.man: Document it.
2740         * NEWS: Updated.
2742         * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
2744 2003-02-25  Gaius Mulley  <gaius@glam.ac.uk>
2746         * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
2747         (GROFF_PNMTOPS_NOSETPAGE): New macro.
2748         * configure.ac: Use it.
2749         * configure: Regenerated.
2750         * Makefile.in: Updated.
2752         * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
2753         (CLEANADD): Add www.tmac-sed.
2754         (pnmtops_nosetpage): Define default.
2755         (install_data): Handle www.tmac-sed and substitute
2756         @PNMTOPS_NOSETPAGE@.
2757         (stamp-sed): Add www.tmac.
2758         * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
2759         It now breaks URLs at suitable places.
2760         (www:substring_ok): New register set by...
2761         (www:@test_substring): New macro.
2762         (www:error): New alias to www-error.
2763         (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
2764         New macros.
2765         (URL): Use www:url_breaks.
2766         (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
2767         (CDS, CDE): New macros.
2769 2003-02-25  Werner LEMBERG  <wl@gnu.org>
2771         * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
2772         buffer overflow.
2774 2003-02-24  Werner LEMBERG  <wl@gnu.org>
2776         Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
2777         can be negative also.
2779         * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
2780         `int16'.
2781         (read_char_table): Avoid negative ascenders.
2782         (output_charset): Add cast.
2783         * font/devlj4/*: Regenerated.
2785         Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
2786         possible.
2788         * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
2789         * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
2790         of `<>'.
2791         * font/devdvi/*: Regenerated.
2793         Map `la' and `ra' to U+27E8 and U+27E9.  These two characters have
2794         normal width, while the previously used characters (U+2329 and
2795         U+232A) are classified as wide due to canonical equivalence with the
2796         CJK punctuation characters U+3008 and U+3009.
2798         * font/devutf8/R.proto: Updated.
2799         * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
2801         * man/groff_char.man: Simplify handling of table traps by
2802         introducing `start block' and `end block' macros.
2803         (Ns, Ne, 2s, 2e, Ds, De): New macros.
2804         (DL): Make it work with Unix troff also.
2805         Fix code values of `la' and `ra'.
2807         * tmac/dvi.tmac: Define `<>' for CW and CWI.
2809 2003-02-23  Gaius Mulley  <gaius@glam.ac.uk>
2811         * src/devices/grohtml/post-html.cc (element_list::~element_list):
2812         New destructor, fixing a major memory leak.
2814 2003-02-22  Werner LEMBERG  <wl@gnu.org>
2816         * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
2817         to be in conformance with Unicode 3.0 and newer.
2819         * font/devlj4/generate/text.map: Add `Eu'.
2820         * font/devlj4/generate/special.map: Flip `*e' and `+e'.
2821         * font/devlj4/S: Regenerated.
2823         * man/groff_char.man: Completely rewritten.
2825         * doc/groff.texinfo: Fix description of request and macro arguments.
2827 2003-02-20  Gaius Mulley  <gaius@glam.ac.uk>
2829         Valgrind fixes.
2831         * src/devices/grohtml/html-table.cc (html_table::~html_table):
2832         Deallocate `columns' list.
2833         * src/devices/grohtml/post-html.cc (char_block::~char_block):
2834         New destructor.
2835         (text_glob::text_glob_html, text_glob::text_glob_special,
2836         text_glob::text_glob_line, text_glob::text_glob_auto_image,
2837         text_glob::text_glob_tag): Avoid memory leaks.
2838         (text_glob::remember_table): Free memory before reassigning.
2840 2003-02-19  Werner LEMBERG  <wl@gnu.org>
2842         Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
2843         alias `hbar'), the Planck constant over two pi.
2845         * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
2846         `+e' for position 34.
2847         * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
2848         `u2662' and `u2661'.
2849         * font/devdvi/{MI,S}: Regenerated.
2850         * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
2851         * font/devlbp/*: Add `hbar' alias.
2852         * font/devlj4/generate/special.map: Ditto.
2853         * font/devlj4/S: Regenerated.
2854         * font/devps/generate/symbolchars: Add `+e'.
2855         * font/devps/generate/textmap: Fix PS name for `-h'.
2856         Add `hbar' alias.
2857         * font/devps/symbolmap: Regenerated.
2859         * src/devices/grops/ps.cc (transform_fill): Removed since unused.
2861         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
2862         `-h', `hbar'.
2863         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
2864         `-h'.
2866         * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
2867         `hbar'.
2868         * tmac/tty-char.tmac: Add `+e'.
2870 2003-02-17  Werner LEMBERG  <wl@gnu.org>
2872         Another round trying to really fix problems with `have_input'.
2874         * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
2875         (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
2877         * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
2878         handling if both foreground and background colors are default.
2880         * doc/groff.texinfo (Debugging): Document .lf differences to
2881         AT&T troff.
2883 2003-02-16  Werner LEMBERG  <wl@gnu.org>
2885         * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
2886         null-bytes in created string.
2888         * src/roff/troff/input.cc (lookup_color, interpolate_macro,
2889         alias_macro, lookup_request): Improve warning messages.
2891         * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
2892         not `strdup'.
2893         Free `last_image_filename'.
2895         * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
2896         `buffer'.
2897         (imageList::createPage, imageList::createImage): Use `free', not
2898         `a_delete'.
2899         (imageItem::~imageItem): Free `imageName'.
2900         (addRegDef): Use `strsave', not `strdup'.
2901         (get_resolution): Free `pathp'.
2903 2003-02-15  Werner LEMBERG  <wl@gnu.org>
2905         * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
2906         to `dummy'.
2908 2003-02-14  Werner LEMBERG  <wl@gnu.org>
2910         Add memory management for colors to deallocate unnamed colors
2911         properly.
2913         * src/include/color.h (color): New members `free_list' and `next'.
2914         New member functions `new' and `delete'.
2915         Add destructor.
2916         * src/libs/libgroff/color.cc: Implement it.
2918         * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
2919         for array size of new operator.
2921         * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
2922         redundant comparison.
2924         * src/roff/troff/input.cc (word_space_node::reread,
2925         hmotion_node::reread): Avoid warning about unused parameter.
2926         (reset_output_registers): Remove redundant parameter.
2927         (define_color): Undo change 2003-02-12.
2929         * src/roff/troff/reg.h: Updated.
2931         * src/roff/troff/node.cc (troff_output_file::really_print_line,
2932         output_file::put_filename, real_output_file::really_put_filename,
2933         ascii_output_file::really_print_line,
2934         break_char_node::get_hyphen_list): Avoid warning about unused
2935         parameter.
2936         (suppress_node::tprint): Updated.
2938         * configure.ac: Check declaration for rand() and srand().
2939         * configure: Regenerated.
2941         * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
2942         conditionally.
2943         * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
2944         and srand().
2946         * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
2947         to avoid compiler warnings.
2949         * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
2950         unused.
2952         * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
2953         is unused.
2954         * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
2955         (unused) parameter.
2956         Updated all callers.
2958         * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
2959         is unused.
2960         * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
2961         * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
2963         * src/devices/grohtml/post-html.cc (html_printer::emit_line):
2964         Parameter is unused.
2965         (html_printer::add_table_end): Define parameter conditionally.
2966         * src/devices/grohtml/output.cc (simple_output::special): Parameter
2967         is unused.
2969         * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
2970         (lbp_printer::set_char): Last parameter is unused.
2972         * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
2974 2003-02-13  Werner LEMBERG  <wl@gnu.org>
2976         New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
2977         Make \D'f ...' move horizontally again for backwards compatibility.
2978         Replace it with \D'Fg ...' where appropriate to avoid dependency
2979         on horizontal resolution.
2981         * src/roff/troff/input.cc (do_get_long_name): New function.
2982         (get_long_name): Call it.
2984         (read_draw_node): Handle `\D'Fx ...' by calling ...
2985         (read_color_draw_node): New function.
2987         (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
2988         `end'.
2989         Pass it to `do_get_long_name' which is used instead of
2990         `get_long_name'.
2992         * src/libs/libdriver/input.cc (color_from_Df_command): Remove
2993         unnecessary value guard.
2994         (parse_D_command) <'f'>: Add horizontal shift.
2996         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
2997         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
2998         (FILL_MAX): Removed.
3000         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3001         Updated.
3003 2003-02-12  Werner LEMBERG  <wl@gnu.org>
3005         * src/roff/troff/input.cc (do_name_test, do_expr_test,
3006         do_zero_width): Push `\n' if closing delimiter is missing.
3008         (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
3009         <'F'>: Make \F non-transparent at the beginning of line.
3010         (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
3011         token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
3012         `have_input'.
3014         (define_color): Free color in case of reassignment.
3016         * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
3017         @DefescListEnd): Use @Var, not @var.
3018         Fix all calls.
3020         * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
3022         * src/preproc/pic/object.cc (object_spec::~object_spec): Free
3023         `shaded' and `outlined' arrays.
3024         (object_spec::object_spec): Initialize `shaded' and `outlined'.
3025         (graphic_object::set_fill_color, graphic_object::set_outline_color):
3026         Use strsave.
3027         (closed_object::set_fill_color): Ditto.
3028         * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
3029         instead of strdup.
3030         (troff_output::reset_color): Use a_delete instead of free.
3031         * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
3033 2003-02-11  Werner LEMBERG  <wl@gnu.org>
3035         * doc/groff.texinfo: Improve documentation of `ad'.
3036         Document that \D'f...' is dependent on the horizontal resolution.
3037         * man/groff_diff.man: Improve documentation of \D'f...'.
3039         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
3040         compensating \h'...' for \D'f ...' since the latter no longer moves
3041         current position.
3042         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
3044 2003-02-10  Werner LEMBERG  <wl@gnu.org>
3046         Improve error messages for `x F' (and `F') commands.
3048         * src/include/error.h: Add declaration for
3049         `current_source_filename'.
3050         * src/libs/libgroff/filename.cc: Add `current_source_filename'.
3051         * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
3052         parameter for source file string.
3053         Updated all callers.
3055         * src/libs/libdriver/input.cc: Add `current_source_filename'.
3056         (remember_source_filename): New function.
3057         (parse_x_command <'F'>, do_file <'F'>): Use it.
3059 2003-02-09  Werner LEMBERG  <wl@gnu.org>
3061         Make grotty not emit warnings about unknown colors more than
3062         necessary.
3064         * src/devices/grotty/tty.cc: Include `ptable.h'.
3065         (TTY_MAX_COLORS): Removed.
3066         (DEFAULT_COLOR_IDX): Defined to -1.
3067         (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
3068         (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
3069         Change `tty_colors' to be a ptable.
3070         First arg of `put_color' is now `char'.
3071         New functions `make_rgb_string' and `tty_color'.
3072         (tty_printer::tty_printer): Use `tty_color'.
3073         (tty_printer::color_to_idx): Return value is now `char'.
3074         Use `tty_color'.
3076         * src/include/color.h (color): Add `print_color' member function.
3077         * src/libs/libgroff/color.cc (color::print_color): Implement it.
3079 2003-02-08  Werner LEMBERG  <wl@gnu.org>
3081         Valgrind fixes.
3083         * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
3084         encoding file.
3086         * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
3087         assume that value has been allocated with `new[]', thus use
3088         `a_delete' for deallocation.
3090         * src/libs/libdriver/input.cc (get_integer_arg,
3091         get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
3092         where appropriate.
3094         * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
3095         * src/libs/libgroff/nametoindex.cc
3096         (character_indexer::named_char_index): Use `new <type>[1]'.
3098         * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
3099         <type>[1]'.
3100         * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
3101         (split_text): Use `a_delete'.
3103         * src/preproc/pic/pic.y (define_label, define_variable): Use `new
3104         <type>[1]'.
3106         * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
3107         harmless memory leak.
3108         (hyphen_trie::read_patterns_file): Initialize `buf'.
3109         * src/roff/troff/node.cc (troff_output_file::troff_output_file):
3110         Initialize `current_fill_color'and `current_glyph_color'.
3111         * src/roff/troff/glyphuni.cc
3112         (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
3113         * src/roff/troff/uniuni.cc
3114         (unicode_decompose_init::unicode_decompose_init): Ditto.
3115         * src/roff/troff/uniglyph.cc
3116         (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
3118 2003-01-26  Werner LEMBERG  <wl@gnu.org>
3120         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
3121         `access' before calling `unlink'.
3122         (do_file): Handle __EMX__.
3124         * src/include/nonposix.h: Handle __EMX__.
3126         * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
3127         (fontpath,tmacpath): Use it.
3128         (MDEFINES): Add it.
3129         Sorted alphabetically.
3131         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
3132         @SEP@.
3133         * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
3134         @SEP@.
3136 2003-01-27  Werner LEMBERG  <wl@gnu.org>
3138         * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
3139         New files, copied from gnulib.
3140         * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
3141         * configure.ac: Updated.
3142         * configure: Regenerated.
3144         * src/include/config.hin: Regenerated.
3145         * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
3146         Don't define `strcasecmp' as `strcmp'.
3147         [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
3148         Dont define `strncasecmp' as `strncmp'.
3150         * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
3151         Removed.
3153 2003-01-26  Werner LEMBERG  <wl@gnu.org>
3155         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
3156         s/unline/unlink/.
3158 2003-01-25  Werner LEMBERG  <wl@gnu.org>
3160         * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
3162 2003-01-24  Werner LEMBERG  <wl@gnu.org>
3164         Add US-english hyphenation exceptions (converted from Barbara
3165         Beeton's hyphenation exception log reports which appear irregularly
3166         in TUGBoat).
3168         * tmac/hyphen.us: Updated to latest version.
3169         * tmac/README: Updated.
3170         * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
3171         * tmac/troffrc: Load `hyphenex.us'.
3172         * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
3173         * doc/groff.texinfo: Updated.
3175 2003-01-23  Werner LEMBERG  <wl@gnu.org>
3177         Improve hyphenation slightly.  This is a first step in redesigning
3178         the hyphenation algorithm to make it more flexible (e.g. allowing
3179         kerns and ligatures between the hyphenation character and the
3180         following character -- while not used normally in English, other
3181         languages like German would benefit).
3183         * src/roff/troff/env.cc (environment::hyphenate_line): Use
3184         assertion instead of if-clause.
3185         Let `get_hyphen_list' return the number of involved characters in
3186         the hyphenation pattern instead of computing it directly (which
3187         often yields too small values).
3188         * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
3189         * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
3190         parameter.
3192 2003-01-22  Werner LEMBERG  <wl@gnu.org>
3194         Fixing a bug which caused groff to hang if the hyphenation exception
3195         dictionary tried to grow.
3197         * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
3198         hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
3199         pointer to dictionary.
3201 2003-01-20  Werner LEMBERG  <wl@gnu.org>
3203         * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
3204         negative left italic correction.
3205         * src/utils/afmtodit/afmtodit.man: Document it.
3207         * font/devps/generate/Makefile (RFLAG): Add `-m'.
3208         * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
3209         S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
3211         * NEWS: Updated.
3213 2003-01-16  Werner LEMBERG  <wl@gnu.org>
3215         * NEWS: Updated.
3217 2003-01-16  Jörgen Grahn  <jgrahn@algonet.se>
3219         * src/preproc/refer/refer.man: Mention REFER environment variable.
3221 2003-01-05  Werner LEMBERG  <wl@gnu.org>
3223         Similar to \[is], the square root glyph (\[sr]) and the square root
3224         extension glyph (\[radicalex]) are now text symbols.  The new
3225         mathematical versions are called \[sqrt] and \[sqrtex],
3226         respectively.
3228         * font/devX*/S: Regenerated.
3229         * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
3230         * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
3231         * font/devdvi/EX, font/devdvi/S: Regenerated.
3232         * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
3233         * font/devlj4/generate/special.map: Add `sqrt'.
3234         * font/devlj4/S: Regenerated.
3235         * font/devps/generate/textmap: Add `sqrt'.
3236         * font/devps/S, font/devps/symbolmap: Regenerated.
3238         * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
3239         SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
3240         * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
3241         overlap horizontally.
3243         * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
3244         * tmac/dvi.tmac: Add `sr', and `sqrtex'.
3245         Fix `radicalex'.
3247         * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
3248         and `sqrtex' are overlapping glyphs.
3250 2003-01-04  Werner LEMBERG  <wl@gnu.org>
3252         * font/devdvi/generate/texsy.map: Add `is'.
3253         * font/devps/symbolmap: Regenerated.
3254         * font/devdvi/*TC, MI, S: Regenerated.
3256         * tmac/dvi.tmac: Remove `is'.
3258 2003-01-03  Werner LEMBERG  <wl@gnu.org>
3260         `is' is now a text symbol (only relevant for dvi).  The math variant
3261         can be accessed with `integral'.
3263         * font/devX*/S: Regenerated.
3264         * font/devdvi/generate/texex.map: Remove `is'.
3265         * font/devdvi/EX: Updated.
3266         * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
3267         * font/devlj4/generate/special.map: Ditto.
3268         * font/devlj4/S: Regenerated.
3269         * font/devps/generate/textmap: Add `integral'.
3270         * font/devps/S: Regenerated.
3272         * tmac/dvi.tmac: Define `is'.
3274         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
3276         * src/preproc/tbl/main.cc (process_format): Fix error message.
3278 2003-01-02  Werner LEMBERG  <wl@gnu.org>
3280         * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
3281         * font/devps/textmap: Fix entries for `ne' and `nc'.
3282         * font/devps/symbolmap: Regenerated.
3284         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
3285         src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
3286         `38', `58', `78', `-+', `|=', `nc', `ne'.
3288         * tmac/dvi.tmac: Add `nm', `ne', `nc'.
3289         Use `schar' for `aq'.
3290         * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
3291         * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
3292         * tmac/tty.tmac: Add `ne'.
3294         * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
3295         for fallback glyphs.
3297 2002-12-29  Werner LEMBERG  <wl@gnu.org>
3299         Add glyph `|='.
3301         * font/devX*/*: Regenerated.
3302         * font/devdvi/generate/ec.map: Remove `eq'.
3303         * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
3304         Assign `|=' to position 39.
3305         * font/devdvi/*EC, S: Regenerated.
3306         * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
3307         * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
3308         Assign `|=' to position 549.
3309         * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
3310         `equalmath'.
3311         Add `uni2243' for `|='.
3313         * tmac/ec.tmac: Add `eq'.
3314         * tmac/dvi.tmac: Add `=~'.
3315         * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
3316         `|='.
3318 2002-12-21  Werner LEMBERG  <wl@gnu.org>
3320         * font/devdvi/generate/tc.map: Remove `**'.
3321         * font/devdvi/*TC: Regenerated.
3322         * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
3323         `78', `<<', `>>'.
3324         * font/devutf8/NOTES: Updated.
3326         * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
3327         Don't give default parameter to `set_macro'.
3328         * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
3329         instead of `set_macro'.
3330         (charinfo::setx_macro): Implement it.
3331         (charinfo::set_macro): Don't change `mode'.
3333         * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
3334         * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
3335         * tmac/dvi.tmac: Define `!=' with `.schar'.
3337 2002-12-20  Werner LEMBERG  <wl@gnu.org>
3339         * font/devX*/S: Regenerated.
3340         * font/devdvi/generate/ec.map: Remove `pl'.
3341         * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
3342         * font/devdvi/*{TC,EC}: Regenerated.
3343         * font/devhtml/R.proto: Add `-+'.
3344         Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
3345         * font/devlbp/*: Remove `or'.
3346         * font/devlj4/generate/special.map: Remove `or'.
3347         * font/devlj4/S: Regenerated.
3348         * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
3349         `seveneighths', `threeeighths'.
3350         Remove `plusmath'.
3351         Replace `minusplus' with `uni2213'.
3352         * font/devps/symbolmap: Regenerated.
3353         * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
3354         Add `-+'.
3356         * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
3357         function.
3358         * src/roff/troff/node.cc (troff_output_file::put_char_width):
3359         Call glyph_color and fill_color even if tcommand_flag isn't set.
3360         (make_node, node::add_char): Check not ci->is_fallback but
3361         ci->is_normal.
3363         * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
3364         * tmac/ec.tmac: Add .rchar entry for `f/'.
3365         Don't remove `12', `14', `34'.
3366         Define `pl' to be always roman.
3367         * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
3368         Define `18', `38', `58', `78'.
3369         * tmac/tty.tmac: Add `-+'.
3370         * tmac/dvi.tmac: Define `f/'.
3371         (dvi-frac): Use `f/'.
3372         * tmac/X.tmac (X-frac, X-frac-mono): New macros.
3373         Define `18', `38', `58', `78'.
3375 2002-12-15  Colin Watson  <cjwatson@debian.org>
3377         * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
3379 2002-12-10  Werner LEMBERG  <wl@gnu.org>
3381         Add glyph `tno', a textual variant of `no'.
3383         * font/devX*/*: Regenerated.
3384         * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
3385         * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
3386         * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
3387         * font/devdvi/*: Regenerated.
3388         * font/devlbp/*: Add `tno'.
3389         * font/devlj4/generate/tex.map: Replace `no' with `tno'.
3390         * font/devlj4/*: Regenerated.
3391         * font/devps/generate/textmap: Replace `no' with `tno'.
3392         * font/devps/generate/symbolchars: Add `no'.
3393         * font/devps/*: Regenerated.
3395         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
3397         * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
3398         * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
3400         * NEWS: Updated.
3402         * tmac/dvi.tmac: Replace most `\\' with `\E'.
3403         Add definition for `sd'.
3404         * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
3406         * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
3408 2002-12-08  Werner LEMBERG  <wl@gnu.org>
3410         * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
3411         mode to avoid rounding errors.
3412         (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
3414         * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
3415         src/roff/troff/troff.man: Improve documentation of -T.
3417 2002-12-07  Jeff Conrad  <jeff_conrad@msn.com>
3419         * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
3420         (run_pipeline) [_WIN32]: Provide working function without `fork'.
3422 2002-12-06  Werner LEMBERG  <wl@gnu.org>
3424         * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
3425         glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
3426         Scaling Euro.sansserif glyphs down to have the same height as
3427         digits.
3428         Removed unnecessary points; added some extrema.
3430         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
3431         Regenerated.
3433 2002-12-04  Werner LEMBERG  <wl@gnu.org>
3435         * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
3436         and `Euro.symbol.bold.slanted'.
3437         Improve some glyph offsets and widths.
3438         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
3439         Regenerated.
3440         * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
3441         typo.
3442         * font/devps/generate/sfdtopfa.pe: Generate PFA in current
3443         direcory.
3445         * tmac/europs.tmac: Updated to new glyph indices.
3446         Use Euro.symbol for font familiy `A'.
3448         * doc/groff.texinfo: Minor improvements.
3450 2002-12-02  Werner LEMBERG  <wl@gnu.org>
3452         * font/devdvi/generate.tc.map: s/%O/%0/.
3453         * font/devdvi/*TC: Regenerated.
3455         * src/roff/troff/div.cc (init_div_requests): Sorted.
3457         * tmac/dvi.tmac: Remove `Ye'.
3458         * tmac/ec.tmac: Remove `Ye'.
3459         Add .rchar entry for `de'.
3461         * man/groff.man, man/groff_diff.man: Document register `.pe'.
3462         * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
3463         * NEWS: Updated.
3465 2002-11-30  Werner LEMBERG  <wl@gnu.org>
3467         Add PS font for various Euro glyphs.
3469         * font/devps/generate/freeeuro.sfd: New master font file for
3470         pfaedit.
3471         * font/devps/generate/sfdtopfa.pe: New conversion script for
3472         pfaedit.
3473         * font/devps/generate/Makefile (FONTS): Add `EURO'.
3474         (EURO, freeeuro.afm, freeeuro.pfa): New rules.
3475         * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
3476         `freeeuro.sfd'.
3477         * font/devps/EURO: Generated from `freeeuro.afm'.
3478         * font/devps/download: Add `freeuro.pfa'.
3479         * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
3480         `freeeuro.pfa'.
3482         * tmac/europs.tmac: New file.
3483         * tmac/ps.tmac: Include `europs.tmac'.
3484         * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
3486 2002-11-29  Werner LEMBERG  <wl@gnu.org>
3488         * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
3489         * font/devdvi/S: Regenerated.
3490         * font/devhtml/R.proto: Fix `CR' and `ci'.
3491         Add `OK'.
3492         * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
3493         Remove `bs'.
3494         * font/devps/symbolmap: Regenerated.
3495         * font/devutf8/R.proto: Fix `CR' and `ci'.
3496         Add `OK'.
3497         * font/devutf8/NOTES: Updated.
3499         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
3500         `ci'.
3501         Add `OK'.
3502         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
3504         * tmac/dvi.tmac: Add `lh' and `rh'.
3505         * tmac/Xps.tmac: Fix `lh' and `rh'.
3506         * tmac/X.tmac: Add `OK'.
3507         * tmac/lj4.tmac: Ditto.
3509 2002-11-24  Werner LEMBERG  <wl@gnu.org>
3511         * font/devX*/S: Regenerated.
3512         * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
3513         `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
3514         * font/devdvi/generate/texsy.map: Remove `or' glyph.
3515         * font/devdvi/S: Regenerated.
3516         * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
3517         `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
3518         `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
3519         `bracketleftbt', `bracketrighttp', `bracketrightex',
3520         `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
3521         `braceex', `braceleftex', `bracerightex', `bracerighttp',
3522         `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
3523         `rb', and `bv'.
3524         * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
3525         * font/devutf8/NOTES: Updated.
3526         * font/devlj4/generate/special.map: Add glyph `braceex'.
3527         * font/devlj4/S: Regenerated.
3529         * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
3531 2002-11-14  Werner LEMBERG  <wl@gnu.org>
3533         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
3534         and `vA'.
3535         Fix code for `an'.
3536         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
3538         * doc/texinfo.tex: New version from texinfo 4.3.
3539         * doc/groff.texinfo: Updated for texinfo 4.3.
3540         Use @tie{} where appropriate.
3541         * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
3542         * font/devdvi/generate/tc.map: Remove `rn'.
3543         * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
3544         * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
3545         Fix code for `an'.
3546         * font/devX100/*, font/devX100-12/*, font/devX75/*,
3547         font/devX75-12/*: Regenerated.
3549         * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
3550         Use .char (again) for `br', `ul', `rn', `or', and `ru'.
3551         Improve definition of `an'.
3552         * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
3553         `ru'.
3554         * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
3555         * tmac/X.tmac: Add definition for `or'.
3556         * tmac/Xps.tmac: Undo change 2002-11-05.
3557         * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
3559 2002-11-11  Werner LEMBERG  <wl@gnu.org>
3561         * src/roff/troff/node.cc (troff_output_file::put_char): Always
3562         call flush_tbuf.
3564 2002-11-10  Werner LEMBERG  <wl@gnu.org>
3566         Added three new requests `schar', `fschar', and `rfschar'.  `schar'
3567         defines a glyph which is searched after the check for fonts declared
3568         with `.special' (and before the check for all mounted special
3569         fonts).  `fschar' defines a glyph for a particular font which is
3570         searched after the check for fonts declared with `.fspecial' (and
3571         before the check for fonts declared with `.special').  `rfschar'
3572         removes glyphs defined with `fschar'.
3574         * src/roff/troff/token.h (char_mode): New enum.
3575         Declare do_define_character.
3576         * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
3577         `mode'.
3578         (charinfo::is_fallback): Updated.
3579         (charinfo::is_special): New method.
3580         * src/roff/troff/input.cc (do_define_character): Add and use
3581         optional second parameter used as a prefix for font-specific glyph
3582         names.
3583         (define_character, define_fallback_character): Updated.
3584         (define_special_character): New function.
3585         (init_input_requests): Add `schar'.
3586         (charinfo::charinfo, charinfo::set_macro): Updated.
3587         * src/roff/troff/node.cc: Include `stringclass.h'.
3588         (make_glyph_node): Handle special glyphs defined with `.schar' and
3589         `.fschar'.
3590         (define_font_special_character, remove_font_special_character): New
3591         functions.
3592         (init_node_requests): Sorted.
3593         Add `fschar' and `rfschar'.
3594         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3595         Document new requests.
3597         * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
3598         * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
3600 2002-11-08  Werner LEMBERG  <wl@gnu.org>
3602         Added new font `SC' (cmtex10) to devdvi.
3604         * devdvi/generate/Makefile (FONTS): Add `SC'.
3605         (SC): New rule.
3606         * devdvi/generate/textex.map: New map file for cmtex.
3607         * devdvi/SC: New.
3608         * devdvi/Makefile.sub (DEVFILES): Updated.
3609         * tmac/dvi.tmac: Add fspecial entries for SC.
3610         Add `MI', `S' and `CW' to the `special' call.  Otherwise, `SC' is
3611         found before `S' since the font position of `SC' is lower due to the
3612         gaps in DESC's `font' line.
3613         * tmac/ec.tmac: Add a `special' call.
3614         * NEWS: Updated.
3616         * font/devhtml/R.proto: Remove double entry for `ti'.
3617         * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
3618         * tmac/tty-char.tmac: Remove entry for `bq'.
3619         * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
3620         * tmac/ec.tmac: Don't remove `aq' glyph.
3621         * tmac/X.tmac: Fix entry for `em'.
3622         Add entries for `fo' and `fc'.
3623         * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
3625         * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
3626         documentation of `special' and `fspecial' requests.
3628 2002-11-05  Werner LEMBERG  <wl@gnu.org>
3630         * font/devascii/R.proto, font/devcp1047/R.proto,
3631         font/devlatin1/R.proto: Remove entry for `.i'.
3632         * font/devdvi/generate/textt.map: Add entry for `ad'.
3633         * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
3634         font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
3635         We need this for getting kerning values to compose `/l' and `/L'.
3636         * font/devdvi: Regenerated font definition files for CM fonts.
3637         * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
3638         * font/devutf8/R.proto: Ditto.
3639         Remove double entry for `ti'.
3641         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
3642         for (groff) ligatures, `la', and `ra'.
3643         Add "'C", "'c", `IJ', and `ij'.
3644         Remove double entry for `ti'.
3645         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
3646         double entries.
3647         Add "'C", "'c", `IJ', and `ij'.
3648         Fix entries for (groff) ligatures, `la', and `ra'.
3650         * tmac/ps.tmac (ps-achar): New macro.
3651         Define "'c" and "'C".
3652         * tmac/tty.tmac: Add entry for `.i'.
3653         * tmac/X.tmac (X-achar): New macro.
3654         Define "'c", "'C", and `:Y'.
3655         Add entries for `IJ' and `ij'.
3656         * tmac/Xps.tmac (Xps-achar): New macro.
3657         Define "'c" and "'C".
3658         Add entries for `IJ' and `ij'.
3659         * tmac/lbp.tmac (lbp-achar): New macro.
3660         Add fallback characters for all groff ligatures and many other
3661         glyphs.
3662         * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
3663         Add entries for `/l' and `/L'.
3664         Define "'c" and "'C".
3665         Add entries for `IJ' and `ij'.
3667 2002-11-02  Larry Kollar  <kollar@alltel.net>
3669         * PROBLEMS: Document how to solve Mac OS X compilation problems.
3671 2002-11-02  Werner LEMBERG  <wl@gnu.org>
3673         Adding support for composite glyphs: \[xxx yyy ...] and the
3674         `composite' request.
3676         * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
3677         to Unicode-based glyph names.
3678         * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
3679         glyph names to groff glyph names.
3680         * src/roff/troff/uniuni.cc: New file for canonically decomposing
3681         Unicode-based glyph names.
3682         * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
3683         for handling Unicode glyph names.
3684         * src/roff/troff/input.cc: Include unicode.h.
3685         (composite_glyph_name): New function.
3686         (token::next) <'['>: Handle Unicode glyph names and composite
3687         glyphs.
3688         (composite_dictionary): New dictionary for the `composite' request.
3689         (composite_request): Implement `composite' request.
3690         (init_input_requests): Add `composite'.
3691         Alphabetically sorted.
3692         * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
3693         commented out).
3694         (init_env_requests): Alphabetically sorted.
3695         Removed `tas' and `tar' (already commented out).
3696         * src/roff/troff/Makefile.sub: Updated.
3698 2002-10-31  Ruslan Ermilov  <ru@FreeBSD.org>
3700         * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
3701         of options.
3703 2002-10-29  Werner LEMBERG  <wl@gnu.org>
3705         Fix computation of .trunc register.  Additionally, its value (and
3706         the value of the .ne register) is now always set before entering the
3707         trap.
3709         * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
3710         `needed_space' before calling `space'.
3711         (top_level_diversion::space): Remove special code for 'sp before the
3712         first page.
3713         Call `begin_page' with the discarded space as a parameter.
3714         (top_level_diversion::begin_page): Add optional parameter to set
3715         `truncated_space'.
3716         * src/roff/troff/div.h: Updated.
3718         * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
3719         \n[.ne].
3721         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
3722         (LP): Remove superfluous call to `br'.
3723         * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
3724         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
3726 2002-10-26  Werner LEMBERG  <wl@gnu.org>
3728         * tmac/doc-ditroff: Remove useless switch/variable -rC.
3729         (doc-setup-header): Don't set page register `%'.
3730         * tmac/doc-nroff: Remove variable `C'.
3731         (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
3732         (doc-setup-header): Don't set page register `%'.
3733         Don't call `bp'.
3734         * tmac/doc-common (doc-header): Call `ns'.
3735         (doc-paragraph): Protect .sp with .br so that it survives traps
3736         possibly set by the user.
3737         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
3739         * tmac/doc*: Replace ' with . for consistency if no effect.
3741 2002-10-26  Werner LEMBERG  <wl@gnu.org>
3743         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
3744         so that it survives traps possibly set by the user.
3746         * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
3747         (troff_output_file::set_font): Call flush_tbuf if necessary.
3748         (troff_output_file::fill_color, troff_output_file::glyph_color): Call
3749         flush_tbuf and do_motion only if necessary.
3750         (troff_output_file::start_special,
3751         troff_output_file::put_char_width, troff_output_file::put_char,
3752         troff_output_file::draw): Updated.
3753         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
3754         vmotion_node::tprint): Undo change 2002-10-23.
3756 2002-10-25  Werner LEMBERG  <wl@gnu.org>
3758         * tmac/www.tmac (DC): Fix case of overlapping images.
3760 2002-10-23  Werner LEMBERG  <wl@gnu.org>
3762         * src/roff/troff/node.cc (troff_output_file::fill_color,
3763         troff_output_file::glyph_color): Set current color before testing
3764         color_flag.
3765         (troff_output_file::put_char_width, troff_output_file::put_char,
3766         troff_output_file::draw): Don't call flush_tbuf and/or do_motion
3767         before glyph_color.
3768         (troff_output_file::file_color, troff_output_file::glyph_color):
3769         Call do_motion.
3770         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
3771         vmotion_node::tprint): Move first, then call fill_color.
3773 2002-10-20  Werner LEMBERG  <wl@gnu.org>
3775         * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
3776         possible to use multiple main macro packages.
3778 2002-10-19  Werner LEMBERG  <wl@gnu.org>
3780         * src/devices/grops/ps.cc (cmyk_flag): New global variable.
3781         (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
3782         (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
3783         is set.
3784         * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
3785         `where' construction since `cmyksetcolor' is a PS Level 2 operator.
3787 2002-10-16  Werner LEMBERG  <wl@gnu.org>
3789         * NEWS, doc/webpage.ms: Updated.
3791 2002-10-14  Werner LEMBERG  <wl@gnu.org>
3793         * src/roff/troff/node.cc (troff_output_file::put_char_width,
3794         troff_output_file::put_char, troff_output_file::fill_color,
3795         troff_output_file::glyph_color): Handle case where color pointer
3796         is null.
3798 2002-10-13  Ruslan Ermilov  <ru@FreeBSD.org>
3800         Add the new -r option to grotty.  It is similar to the -i option
3801         except it tells grotty(1) to use the "reverse video" attribute to
3802         render italic fonts.
3804         * src/devices/grotty/tty.cc (reverse_flag): New global variable.
3805         (SGR_REVERSE, SGR_NO_REVERSE): New macros.
3806         (tty_printer::make_underline, tty_printer::put_color,
3807         tty_printer::end_page): Use it.
3808         (main): Add -r switch.
3809         (usage): Updated.
3810         * src/devices/grotty/grotty.man: Document it.
3812 2002-10-11  Ruslan Ermilov  <ru@FreeBSD.org>
3814         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
3815         cast to `unsigned char' to properly read patterns with 8bit
3816         characters.
3818 2002-10-08  Werner LEMBERG  <wl@gnu.org>
3820         * REVISION: Increased to 2.
3822 Version 1.18.1 released
3823 =======================
3825 2002-10-08  Werner LEMBERG  <wl@gnu.org>
3827         * doc/webpage.ms, NEWS: Updated.
3829 2002-10-07  Werner LEMBERG  <wl@gnu.org>
3831         * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
3832         suppress additional whitespace after the header.
3834         * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
3835         with NetBSD.
3837         * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
3839 2002-10-07  Ruslan Ermilov  <ru@FreeBSD.org>
3841         * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
3842         (Dt): Use it to improve language localization (especially Russian
3843         and French).
3845 2002-10-07  Daniel Senderowicz  <daniel@synchrods.com>
3847         * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
3848         * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
3849         drawing commands.
3850         * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
3851         curve type.
3852         Call `picurve' for BSPLINE.
3853         (HGPrintElt): Handle BSPLINE.
3854         * src/preproc/grn/README: Document it.
3856 2002-10-03  Werner LEMBERG  <wl@gnu.org>
3858         * src/roff/troff/node.cc (break_char_node::col): New variable.
3859         Updated constructor.
3860         (space_node::tprint, word_space_node::tprint): Call `fill_color'
3861         unconditionally.
3862         (space_node::space_node): Remove assertion.
3863         (break_char_node::add_self): Pass color argument to space node.
3864         * src/roff/troff/input.cc (token::add_to_node_list, token::process):
3865         Ditto.
3866         * src/roff/troff/env.cc (environment::do_break,
3867         environment::add_padding): Ditto.
3869 2002-10-02  Werner LEMBERG  <wl@gnu.org>
3871         Redesigning color support in troff.  Colors are no longer
3872         represented as separate nodes but are now part of glyph nodes and
3873         friends.  This fixes the current formatting misbehaviour due to the
3874         changes introduced on 2002-09-20.  Some extra code is necessary for
3875         proper grotty support: Without adding color variables to
3876         space-related nodes, the background color would be changed too late.
3878         * src/roff/troff/node.h, src/roff/troff/node.cc:
3879         s/current_pagecolor/current_fill_color/.
3880         s/current_glyphcolor/current_glyph_color/.
3881         (glyph_color_node, fill_color_node): Removed.
3882         (node::get_glyph_color, node::get_fill_color): New virtual member
3883         functions.
3884         (space_node::col): New variable.
3885         Updated constructors of space_node and derived classes accordingly.
3886         (hmotion_node::col): New variable.
3887         Updated constructors of hmotion_node and space_char_hmotion_node
3888         accordingly.
3889         (vmotion_node::col): New variable.
3890         Updated constructor accordingly.
3891         (draw_node::gcol, draw_node::fcol): New variables.
3892         Updated constructor accordingly.
3893         (special_node::gcol, special_node::fcol): New variables.
3894         Updated constructors accordingly.
3895         (troff_output_file::put_char, troff_output_file::put_charwidth,
3896         troff_output_file::draw): Set glyph and fill color.
3897         (troff_output_file::start_special): Set glyph and fill color.
3898         Always set current font.
3899         (troff_output_file::fill_color, troff_output_file::glyph_color):
3900         Don't call `do_motion'.
3901         (glyph_node::gcol, glyph_node::fcol): New variables.
3902         Updated constructors of glyph_node and ligature_node accordingly.
3903         (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
3904         member functions.
3905         (glyph_node::merge_glyph_node,
3906         kern_pair_node::add_discretionary_hyphen,
3907         node::add_discretionary_hyphen): Updated.
3908         (break_char_node::merge_self): Updated.
3909         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
3910         vmotion_node::tprint): Handle color.
3911         (make_glyph_node, make_node, node::add_char): Updated.
3913         * src/roff/troff/env.cc (environment::space_newline,
3914         environment::space, environment::output_line, environment::do_break,
3915         environment::make_tab_node, environment::add_padding, title):
3916         Updated.
3917         (environment_switch, environment_copy): Don't add color nodes.
3919         * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
3920         nothing.
3921         (token::next): Updated.
3922         \m and \M now are as transparent as \s.
3923         (process_input_stack, token::add_to_node_list, token::process,
3924         read_draw_node): Updated.
3925         (charinfo_to_node_list): Don't add color nodes.
3927         * doc/groff.texinfo: Updated.
3929 2002-09-27  Ruslan Ermilov  <ru@FreeBSD.org>
3931         * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
3932         strings.
3934 2002-09-27  Colin Watson  <cjwatson@debian.org>
3936         * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
3938 2002-09-23  Werner LEMBERG  <wl@gnu.org>
3940         * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
3941         appropriate.
3942         (DEFAULT_LINEWIDTH_FACTOR): New macro.
3943         (linewidth_factor): New global variable.
3944         (lbp_printer::set_line_thickness): Fix case for size < 0, using
3945         linewidth_factor.
3946         (long_options): Add -w/--linewidth option.
3947         (usage): Updated.
3948         (main): Handle -w option to set linewidth_factor.
3949         (lbp_printer::lbp_printer): Initialize req_linethickness, not
3950         line_thickness.
3952         * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
3954 2002-09-22  Paco Andrés Verdú  <pandres@dragonet.es>
3956         Fixed a bug in the line thickness setting code.
3958         * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
3959         variable.
3960         (lbp_printer::set_line_thickness): Pass environment as second
3961         parameter.
3962         Implement it actually.
3963         (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
3964         and `set_line_thickness, depending on the current font size.
3966 2002-09-21  Werner LEMBERG  <wl@gnu.org>
3968         Some Debian patches.
3970         * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
3971         * src/roff/troff/node.cc (bracket_node::copy): Initialize
3972         `list->last'.
3974 2002-09-20  Werner LEMBERG  <wl@gnu.org>
3976         * configure: Regenerated with autoconf 2.54.
3978 2002-09-20  Werner LEMBERG  <wl@gnu.org>
3980         * src/roff/troff/env.h (environment): Rename cur_glyph_color to
3981         glyph_color.
3982         Rename cur_fill_color to fill_color.
3983         * src/roff/troff/env.cc: Updated.
3985 2002-09-20  Werner LEMBERG  <wl@gnu.org>
3987         * src/roff/troff/env.cc (title): Copy color status after processing
3988         title.
3989         * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
3990         fill color nodes to reset colors properly.
3992         * tmac/www.tmac (DC): Fix color handling.
3994         * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
3995         * doc/groff.texinfo: Fixing documentation of `tl' request.
3996         * doc/webpage.ms: Updated.
3998 2002-09-19  Werner LEMBERG  <wl@gnu.org>
4000         * src/roff/troff/env.cc (environent_switch, environment_copy):
4001         Emit glyph and fill color nodes to initialize colors properly.
4003 2002-09-17  Colin Watson  <cjwatson@debian.org>
4005         * src/roff/troff/env.cc (environment::set_glyph_color,
4006         environment::set_fill_color): Fix typo which prevented \m[] work
4007         correctly.
4009 2002-09-17  Werner LEMBERG  <wl@gnu.org>
4011         Add left and right italic correction to non-slanted PS fonts.  This
4012         is an experimental feature to improve image rendering of grohtml.
4014         * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
4015         ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
4016         * font/devps/*: All non-slanted fonts regenerated.
4017         * NEWS: Updated.
4019 2002-09-16  Werner LEMBERG  <wl@gnu.org>
4021         Add a site-specific font directory.
4023         * Makefile.in (localfontdir, legacyfontdir): New variables.
4024         (fontpath): Use them.
4025         (MDEFINES, uninstall_dirs): Updated.
4026         * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
4027         Remove `FONTPATH' and `MACROPATH'.
4029         * src/roff/troff/troff.man, NEWS: Updated.
4030         * doc/groff.texinfo (Font Directories): New section.
4031         Other minor fixes.
4033         * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
4034         src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
4035         src/preproc/grn/grn.man: Minor fixes.
4037         * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
4038         Remove unused variable.
4040 2002-09-11  Werner LEMBERG  <wl@gnu.org>
4042         * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
4043         * man/groff_out.man: Fix documentation of 'N'.
4045 2002-09-09  Gaius Mulley  <gaius@glam.ac.uk>
4047         * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
4048         * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
4049         set.
4050         * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
4051         (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
4052         (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
4053         * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
4054         PRE_TAG>: Call `begin' with `FALSE'.
4056 2002-09-09  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
4058         * src/libs/libgroff/string.cc (string::extract): Fix position of
4059         terminating null byte.
4061 2002-09-08  Werner LEMBERG  <wl@gnu.org>
4063         Add global option `nospaces' to tbl so that leading and trailing
4064         spaces in data items are ignored.
4066         * src/libs/libgroff/string.cc (string::remove_spaces): New member
4067         function to remove leading and trailing spaces.
4068         * src/include/stringclass.h: Updated.
4070         * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
4072         * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
4073         option.
4074         Fix typo in error messages.
4075         (process_data): Implement `nospaces' option.
4076         * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
4078 2002-09-07  Werner LEMBERG  <wl@gnu.org>
4080         * src/include/config.hin: Add `HAVE_ISATTY'.
4081         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
4082         `fname' member.
4083         * src/libs/libgroff/tmpname.cc: Include `time.h'.
4084         * src/libs/libdriver/input.cc (Char): Add `operator==' and
4085         `operator!=' for `char'.
4086         * doc/groff.texinfo: Replace @ifnottex block for top node with
4087         @ifhtml block.
4089 2002-09-06  Werner LEMBERG  <wl@gnu.org>
4091         * doc/Makefile.in (.texinfo.html): Add -I switch.
4092         * doc/groff.texinfo: Add @ifnottex block for top node to make
4093         translation to HTML work.
4095 2002-09-05  Gaius Mulley  <gaius@glam.ac.uk>
4097         * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
4098         (get_papersize, determine_vertical_offset): Removed.
4099         (char_buffer::do_image): Always specify letter size.
4100         (main): Updated.
4101         (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
4102         -sPAPERSIZE.
4104 2002-09-05  Werner LEMBERG  <wl@gnu.org>
4106         * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
4107         default indentation.
4109 2002-09-04  Gaius Mulley  <gaius@glam.ac.uk>
4111         * src/preproc/html/pre-html.cc (imageList::createPage): Use
4112         -sPAPERSIZE for gs.
4113         (generateImages): Clean up push-back buffer.
4115 2002-09-04  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
4117         * doc/groff.texinfo: Minor fixes.
4119 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
4121         * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
4122         (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
4123         (gsPaper): Removed.
4124         (determine_vertical_offset): Use LETTER_LENGTH.
4125         (createPage): Moved to ...
4126         (imageList::createPage): This.
4127         Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
4128         (imageList::getMaxX): New function.
4129         (createImage): Moved to ...
4130         (imageList::createImage): This.
4131         (imageList::createImages): New function.
4132         (generateImages): Read `maxx' directly.
4133         Updated.
4134         (scanArguments): Don't specify `gsPaper' for `-o'.
4135         (makeTempFiles): Call `xtmpfile' with the last argument set to
4136         `TRUE'.
4138 2002-08-24  Werner LEMBERG  <wl@gnu.org>
4140         * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
4141         (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
4142         * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
4143         * src/preproc/html/pushback.cc: Include nonposix.h.
4144         * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
4145         conditionally.
4147 2002-08-23  Werner LEMBERG  <wl@gnu.org>
4149         Use $(OBJEXT) for the object file extension.
4151         * Makefile.comm (.SUFFIXES): Add .obj.
4152         (.cc.obj, .c.obj): New implicit rules.
4153         * Makefile.in (OBJEXT): New variable, initialized from autoconf.
4154         (MDEFINES): Add EXEEXT and OBJEXT.
4155         * */Makefile.sub: s/.o/.$(OBJEXT)/.
4157 2002-08-22  Werner LEMBERG  <wl@gnu.org>
4159         * INSTALL: Mention texinfo 4.2 as a prerequisite.
4161 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
4163         * src/devices/grohtml/post-html.cc (colType): Make enum global to
4164         the file.
4165         (html_printer::update_min_max, html_printer::add_table_end): New
4166         methods.
4167         (html_printer::lookahead_for_tables): Use them.
4168         Reset page offset correctly.
4169         (html_printer::~html_printer): Add creation of creator comment up.
4171 2002-08-20  Werner LEMBERG  <wl@gnu.org>
4173         * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
4174         * man/groff_tmac.man: Fix typos.
4175         * man/groff_font.man: Minor reordering.
4176         * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
4178 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
4180         Avoid endless loops while scanning for tables.
4182         * src/devices/grohtml/post-html.cc (list::insert): Set
4183         ptr->right->left.
4184         (html_printer::next_horiz_pos): Add `text_glob' argument; update
4185         all callers.
4186         Return immediately if that argument is NULL.
4187         (html_printer::calc_nf): Don't test if `g' is NULL.
4188         (html_printer::lookahead_for_tables): Use
4189         `glyphs.move_right_get_data'.
4190         Don't test if `g' is NULL.
4192 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
4194         A better fix, replacing fix 2002-08-15, for increasing SIZE.
4196         * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
4197         a pointer.
4198         (char_block::char_block): Allocate `buffer'.
4199         (char_buffer::add_string): Use it.
4201 2002-08-15  Werner LEMBERG  <wl@gnu.org>
4203         * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
4204         src/devices/grodvi/grodvi.man: Document default line thickness.
4206 2002-08-15  Gaius Mulley  <gaius@glam.ac.uk>
4208         * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
4209         8192.
4211 2002-08-14  Werner LEMBERG  <wl@gnu.org>
4213         * doc/webpage.ms: Updated.
4215 2002-08-09  Werner LEMBERG  <wl@gnu.org>
4217         * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
4218         unbreakable space.
4220 2002-08-08  Aaron Campbell  <aaron@monkey.org>
4222         * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
4223         (&& -> &).
4225 2002-08-08  Werner LEMBERG  <wl@gnu.org>
4227         * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
4228         tok.next().
4229         (read_gray): Ditto.
4230         Don't push back a space but a newline onto the stack.
4232 2002-08-07  Gaius Mulley  <gaius@glam.ac.uk>
4234         Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
4235         inadvertently.
4237         * src/devices/grohtml/post-html.cc (html_printer::end_font,
4238         html_printer::start_font): Handle them.
4239         * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
4240         reset bold and tt.
4241         (html_text::do_bold): Don't reset italic and tt.
4242         (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
4243         * font/devhtml/DESC.proto: Add those fonts.
4244         * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
4246 2002-08-07  Werner LEMBERG  <wl@gnu.org>
4248         * MORE.STUFF: Added gpresent.
4250         * tmac/trace.tmac: Show nesting level by a corresponding amount of
4251         whitespace before printing the logging message.
4253 2002-07-31  Colin Watson  <cjwatson@debian.org>
4255         * src/devices/grohtml/html-table.cc (html_table::finish_row):
4256         Initialize `n' to zero.  This fixes a segfault on ARM.
4258 2002-07-30  Werner LEMBERG  <wl@gnu.org>
4260         * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
4262 2002-07-29  Werner LEMBERG  <wl@gnu.org>
4264         * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
4265         final semicolon.
4267 2002-07-28  Colin Watson  <cjwatson@debian.org>
4269         * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
4270         `.ps'.
4271         (html_printer::html_printer): Initialize `pointsize'.
4273 2002-07-26  Werner LEMBERG  <wl@gnu.org>
4275         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
4276         gnu.png.
4277         (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
4278         (gnu.eps): Add -rle switch to pnmtops.
4279         (distfiles): Add gnu.eps and gnu.png.
4281 2002-07-25  Petter Reinholdtsen  <pere@hungry.com>
4283         * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
4284         Add `operator!='.
4286 2002-07-24  Werner LEMBERG  <wl@gnu.org>
4288         * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
4289         ' \+' but '  *' for sed.
4290         (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
4292 2002-07-23  Werner LEMBERG  <wl@gnu.org>
4294         * doc/groff.texinfo: Document `papersize' keyword.
4295         * NEWS, man/groff_font.man: Updated.
4297 2002-07-23  Colin Watson  <cjwatson@debian.org>
4299         Extend papersize keyword to accept more than a single entry.  The
4300         first valid will be used.
4302         * src/libs/libgroff/font.cc (font::load_desc): Implement it.
4303         (font::scan_papersize): Really skip final newline.
4304         * src/preproc/html/pre-html.cc (get_papersize): Ditto.
4306 2002-07-23  Werner LEMBERG  <wl@gnu.org>
4308         * configure.ac: Test for isatty.
4309         * configure: Regenerated.
4310         * src/include/posix.h: Check HAVE_ISATTY.
4311         * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
4312         * src/utils/lookbib/lookbib.cc: Include posix.h.
4313         Don't declare isatty.
4315 2002-07-21  Werner LEMBERG  <wl@gnu.org>
4317         * NEWS: Add `output' request.
4319         * REVISION: Increased to 1.
4321 Version 1.18.0 released
4322 =======================
4324 2002-07-19  Gaius Mulley  <gaius@glam.ac.uk>
4326         Allow internal glyph indices > 0xFF in grohtml for input characters.
4328         * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
4329         as parameter.
4330         (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
4331         Updated all callers.
4332         (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
4333         (html_printer): Updated.
4335 2002-07-19  Werner LEMBERG  <wl@gnu.org>
4337         * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
4338         * font/devutf8/R.proto: Adding some missing glyphs.
4339         * font/devutf8/NOTES: Updated.
4341         * tmac/dvi.tmac: Add more composite glyphs.
4342         * tmac/html.tmac: Updated.
4344         * man/groff_char.man: Add `sum' and `product' entities.
4346         * NEWS: Updated.
4348 2002-07-18  Gaius Mulley  <gaius@glam.ac.uk>
4350         Improved table, tab, and indenting support.
4352         * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
4353         string_iterator::suppress_newline_flag): Removed.  Updated all
4354         function which have used it.
4356         * src/roff/troff/env.cc: Include `input.h'.
4357         (environment::add_node): Accept 0 as parameter.
4358         (environment::add_html_tag): Add `force' parameter.
4359         Updated all callers.
4360         (environment::add_html_tag_tabs): Ditto.
4361         For the moment, support left-aligned tabs only.
4362         (environment::make_html_tag): New function.
4363         (fill, no_fill): Set .br html tag additionally.
4364         (environment::newline): Emit `eol.ce' or `eol' tag for html.
4365         (environment::add_html_tag_eol): Removed.
4366         (tab_stops::distance_to_next_tab): Add variant for handling 
4367         nextpos'.
4368         (environment::distance_to_next_tab): Ditto.
4369         Updated all callers.
4370         (environment::handle_tab): Handle tabs for html.
4371         
4372         * src/roff/troff/env.h: Updated.
4374         * src/roff/troff/div.cc: Updated all callers of
4375         `environment::add_html_tag'.
4377         * src/devices/grohtml/html-table.cc,
4378         src/devices/grohtml/html-table.h: New files.
4380         * src/devices/grohtml/html-text.cc (html_text): New members
4381         `blank_para' and `start_space'.
4382         (html_text::issue_tag): Don't emit TABLE_TAG.
4383         Handle indentation for PRE_TAG and P_TAG.
4384         (html_text::end_tag): Updated.
4385         (html_text::table_is_void, html_text::issue_table_begin,
4386         html_text::issue_table_end): Removed.
4387         (html_text::do_push): Simplified.
4388         [DEBUGGING]: Small fix.
4389         (html_text::push_para): Add new parameter for indentation; updated
4390         all callers.
4391         Handle PRE_TAG.
4392         (html_text::do_indent, html_text::do_table, html_text::done_table,
4393         html_text::is_in_table): Removed.
4394         (html_text::do_pre): Handle P_TAG also.
4395         (html_text::shutdown): Handle p->indent.
4396         (html_text::check_emit_text): Simplified.
4397         (html_text::do_emittext): Reset `blank_para'.
4398         (html_text::do_para): Add new parameter for indentation; updated
4399         all callers.
4400         (html_text::remove_indent): New function.
4401         (html_text::do_space): Handle verbatim text properly.
4402         (html_text::ever_emitted_text, html_text::starts_with_space,
4403         html_text::remove_para_align): New functions.
4404         (html_text::dump_stack_element, html_text::dump_stack): Updated.
4406         * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
4407         Updated.
4409         * src/devices/grohtml/post-html.cc: Include html-table.h.
4410         (INDENTATION): Removed.
4411         (text_glob): Added many `is_<foo>' functions.
4412         Added table description `tab'.
4413         Added `get_arg',`get_tab_args', `remember_table', and `get_table'
4414         member functions.
4415         (list): Add `insert' and `move_to' member functions.
4416         (page): Add `insert_tag' member function.
4417         (page::dump_page) [DEBUG_TABLES]: Improved.
4418         (html_printer): Add `table' and `max_linelength' elements.
4419         Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
4420         `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
4421         `remove_tabs', `remove_courier_tabs'.
4422         (html_printer::emit_raw): Handle indentation.
4423         (html_printer::do_center, html_printer::write_header): Updated.
4424         (html_printer::is_courier_until_eol): Check for tag.
4425         (html_printer::do_linelength): Handle max_linelength.
4426         (html_printer::do_page_offset, html_printer::do_indentation): Handle
4427         fill_on.
4428         (html_printer::do_tempindent): Updated.
4429         (html_printer::do_indentedparagraph): Removed.
4430         (html_printer::do_indent): Simplified.
4431         (html_printer::do_eol): Use `ever_emitted_text'.
4432         (html_printer::do_flush, html_printer::do_links): Don't call
4433         done_table.
4434         (html_printer::do_break): Handle end_tempindent.
4435         (html_printer::troff_tag): Get argument.
4436         Don't handle `.ip'.
4437         Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
4438         (html_printer::flush_page): Call `lookahead_for_tables'.
4439         Don't call `done_table'.
4440         (html_printer::add_to_sbuf): Always call do_indent.
4442         * src/devices/grohtml/Makefile.sub: Updated.
4444         * tmac/an-old.tmac (TP): Don't handle html device specially.
4445         (an-do-tag-html): New function which will be used instead of
4446         `an-do-tag' if html device is used.
4448         * tmac/html.tmac: Call .po to pass default page offset to grohtml.
4450         * tmac/s.tmac (@IP): Don't handle html device specially.
4451         (@IP-html): New function which will be used instead of `@IP' if
4452         html device is used.
4454         * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
4455         is a hack which will eventually vanish again.
4456         (PIMG): Handle `-C' option correctly if not html.
4457         (HR): Use HTML-NS.
4459 2002-07-17  Werner LEMBERG  <wl@gnu.org>
4461         * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
4463 2002-07-14  Eric S. Raymond  <esr@thyrsus.com>
4465         * contrib/pic2graph/pic2graph.*: Use convert(1).
4466         * contrib/eqn2graph/eqn2graph.*: Minor fixes.
4468 2002-07-14  Bernd Warken  <bwarken@mayn.de>
4470         * tmac/groff_trace.man: New file.
4471         * tmac/Makefile.sub: Updated.
4472         * NEWS: Updated.
4474 2002-07-13  Werner LEMBERG  <wl@gnu.org>
4476         * src/roff/groff/groff.man: Add some cross references.
4478 2002-07-12  Werner LEMBERG  <wl@gnu.org>
4480         * src/roff/troff/input.cc (substring_request): Add warnings for
4481         string indices out of range.
4483 2002-07-11  Werner LEMBERG  <wl@gnu.org>
4485         * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
4486         * font/devdvi/*EC: Regenerated.
4488 2002-07-10  Bernd Warken  <bwarken@mayn.de>
4490         * man/groff_char.man: Updated and extended.
4492 2002-07-10  Werner LEMBERG  <wl@gnu.org>
4494         * src/roff/troff/input.cc (length_macro): Renamed to...
4495         (length_request): This.
4496         Move call of `tok.next()' to the very end, otherwise the register
4497         value hasn't been updated yet.
4498         (init_input_requests): Updated.
4500 2002-07-09  Werner LEMBERG  <wl@gnu.org>
4502         * src/roff/troff/input.cc (substring_macro): Renamed to...
4503         (substring_request): This.
4504         (init_input_requests): Updated.
4505         * src/roff/troff/request.h: Updated.
4507 2002-07-08  Robert D. Goulding  <goulding@Princeton.EDU>
4509         * src/roff/grog/grog.sh: Fix typo.
4511 2002-07-08  Werner LEMBERG  <wl@gnu.org>
4513         * win32-diffs: Updated.
4515         Handle `papersize' keyword properly in DESC.
4517         * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
4518         type.
4519         Updated all callers.
4520         * src/libs/libgroff/paper.cc: Add four more paper formats used by
4521         grolj4.
4522         * src/include/paper.h: Updated.
4524         * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
4525         Other minor C syntax fixes.
4526         (papersize, paperlength, paperwidth): Renamed to `user_*'.
4527         (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
4528         members.
4529         (lbp_printer::lbp_printer): Pass three arguments.
4530         Set paper dimensions properly.
4531         (make_printer, main): Updated.
4532         (handle_unknown_desc_command): Fix error messages.
4533         (main): Handle papersize keyword in DESC properly.
4535         * src/devices/grolj4/lj4.cc (paper_size): Renamed to
4536         `user_paper_size'.
4537         (lbp_printer::lbp_printer): Pass an argument.
4538         Set paper_size properly.
4539         (handle_unknown_desc_command): Removed.
4540         (make_printer, main): Updated.
4541         * src/devices/grolj4/grolj4.man: Minor documentation fix.
4543         * man/groff_font.man, NEWS: Updated.
4545 2002-07-07  Werner LEMBERG  <wl@gnu.org>
4547         Integrated eqn2graph, contributed by Eric S. Raymond.
4549         * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
4550         files.
4551         * Makefile.in, NEWS: Updated.
4553 2002-06-04  Werner LEMBERG  <wl@gnu.org>
4555         Changing the substring request to make it fit better with other
4556         string manipulation functions in other programming languages:
4557         Index 0 is now the first character in the string, and index -1
4558         indicates the last character.  Since this request didn't work
4559         properly anyway in the last release, it doesn't harm too much to
4560         change the syntax.
4562         * src/roff/troff/input.cc (substring_macro): Use loops to get
4563         the real string length (ignoring COMPATIBLE_SAVE and
4564         COMPATIBLE_RESTORE) and offsets.
4565         Implement change described above.
4567         * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
4568         (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
4570         * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
4572 2002-06-03  Werner LEMBERG  <wl@gnu.org>
4574         Make .chop work with .de1 and friends.  COMPATIBLE_SAVE and
4575         COMPATIBLE_RESTORE are completely ignored.
4577         * src/roff/troff/input.cc (char_list::set, char_list::get): New
4578         functions.
4579         (macro): `length' field renamed to `len'.
4580         Added new field `empty_macro' (1 if macro is empty), to be used
4581         instead of checking `len'.
4582         Updated all callers.
4583         (macro::empty): Updated.
4584         (macro::length, macro::set, macro::get): New functions.
4585         (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
4586         Set `empty_macro'.
4587         (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
4588         COMPATIBLE_RESTORE pairs.
4589         (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
4590         * src/roff/troff/request.h: Updated.
4592         * doc/groff.texinfo: Document .chop's behaviour better.
4594 2002-06-02  Werner LEMBERG  <wl@gnu.org>
4596         * doc/pic.ms: Fix documentation for the addition of positions.
4598         * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
4600 2002-06-29  Werner LEMBERG  <wl@gnu.org>
4602         Implementation of string arguments of the form \*[foo arg1 arg2 ...]
4604         * src/roff/troff/input.cc (have_string_arg): New global variable.
4605         (read_mode): New enumeration.
4606         (read_escape_name): Use it.  Update all calls.
4607         (read_long_escape_name): Use it.  Update all calls.
4608         Set have_string_arg if appropriate.
4609         (get_char_for_escape_name): Add parameter for handling space
4610         character.
4611         (interpolate_string_with_args, decode_string_args): New functions.
4612         (get_copy, token::next): Call it if necessary.
4613         (interpolate_string): Fix error message.
4615         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
4616         Document it.
4618 2002-06-24  Bernd Warken  <bwarken@mayn.de>
4620         * man/groff_tmac.man: Updated and extended.
4622 2002-06-24  Werner LEMBERG  <wl@gnu.org>
4624         * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
4626 2002-06-23  Werner LEMBERG  <wl@gnu.org>
4628         * doc/pic.ms: Improve documentation of composite block objects.
4630 2002-06-22  Werner LEMBERG  <wl@gnu.org>
4632         * src/roff/troff/input.cc (init_registers): Add three registers
4633         `seconds', `minutes', and `hours' to hold the current time.
4635         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
4636         Updated.
4638 2002-06-20  Werner LEMBERG  <wl@gnu.org>
4640         Make \X accept both `\ ' and `\~', converting them to single space
4641         characters.
4643         * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
4644         (token::unstretchable_space): New inline function.
4645         * src/roff/troff/input.cc (token::next, token::delimiter,
4646         token::description, token::add_to_node_list, token::process): Handle
4647         TOKEN_UNSTRETCHABLE_NODE.
4648         (encode_char): Handle tok.stretchable_space and
4649         tok.unstretchable_space.
4651         * NEWS, doc/groff.texinfo: Document it..
4653 2002-06-19  Werner LEMBERG  <wl@gnu.org>
4655         * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
4657         * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
4658         keyword to enable/disable SGR output.
4659         (tty_printer::change_fill_color): New function.
4660         * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
4662         * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
4663         call.
4665 2002-06-18  Werner LEMBERG  <wl@gnu.org>
4667         Add a `color' request and a `.color' register to control usage of
4668         colours.
4670         * src/roff/troff/input.cc (disable_color_flag): Replaced with...
4671         (color_flag): This (which is the inverse).
4672         (activate_color): New function.
4673         (main, init_input_requests): Updated.
4674         * src/roff/troff/troff.h, src/roff/troff/node.cc
4675         (troff_output_file::fill_color, troff_output_file::glyph_color):
4676         Updated.
4678         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
4679         Document the changes.
4681 2002-06-17  Colin Watson  <cjwatson@debian.org>
4683         Circumvent bug in autoconf 2.53 regarding top_builddir.
4685         * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
4686         * Makefile.in, doc/Makefile.in:
4687         s/@top_builddir@/@groff_top_builddir@/.
4688         * configure: Regenerated (with autoconf 2.53).
4690 2002-06-17  Werner LEMBERG  <wl@gnu.org>
4692         * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
4693         `paperwidth' and `paperlength' for the `papersize' keyword.
4695 2002-06-16  P. Alejandro Lopez-Valencia  <dradul@007mundo.com>
4697         * src/devices/grops/grops.man: Add info about Type 42 fonts.
4699 2002-06-15  Gaius Mulley  <gaius@glam.ac.uk>
4701         * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
4702         html_printer::do_linelength, html_printer::do_pageoffset,
4703         html_printer::do_indentation, html_printer::do_tempindent,
4704         html_printer::do_break, html_printer::begin_page): Clear indented
4705         text.
4706         * tmac/html.tmac: Disable hyphenation.
4708 2002-06-15  Werner LEMBERG  <wl@gnu.org>
4710         Don't produce HTML files if utility programs are missing.
4712         * Makefile.in (make_html, make_install_html): New variables.
4713         (MDEFINES): Updated.
4715         * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
4716         utility programs.
4717         * configure.ac: Use it.
4718         * configure: Regenerated.
4720         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
4721         (HTMLEXAMPLESFILES): This new variable.
4722         (EXAMPLESIMAGEFILES): Renamed to...
4723         (HTMLEXAMPLEIMAGEFILES): This.
4724         (CLEANADD): Add HTMLEXAMPLEFILES.
4725         (all): Use `make_html'.
4726         (html): New target.
4727         (install_data): Use `make_install_html'.
4728         Move html stuff to...
4729         (install_html): This new target.
4730         (uninstall_sub): Updated.
4732 2002-06-14  Bernd Warken  <bwarken@mayn.de>
4734         * src/roff/grog/Makefile.sub (grog): Renamed to...
4735         (grog.old): This.
4736         (grog): New rule to always install grog.sh as grog.
4738 2002-06-08  Bernd Warken  <bwarken@mayn.de>
4740         * src/roff/grog/grog.pl: Fix typo.
4742 2002-06-07  Werner LEMBERG  <wl@gnu.org>
4744         * doc/groff.texinfo: Add more info on .tr arguments.
4746 2002-06-05  Werner LEMBERG  <wl@gnu.org>
4748         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
4750         * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
4751         * configure: Regenerated.
4753 2002-06-05  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
4755         * src/roff/troff/symbol.cc (table_sizes): Add more values.
4757         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
4759 2002-06-04  Werner LEMBERG  <wl@gnu.org>
4761         * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
4762         is not initialized at the time we need it in case `--prefix' hasn't
4763         been set.  Check for `ac_default_prefix' also.
4764         Test for `papersize' keyword also and generalize allowed whitespace.
4765         * configure: Regenerated.
4767         * font/devps/Makefile.sub (DESC): Use `papersize' instead of
4768         `paperlength'.
4770         * src/libs/libgroff/Makefile.sub (version, revision): Replaced
4771         with...
4772         (src_version, src_revision): New variables to avoid overwriting
4773         from parent make process.
4774         (version.cc): Updated.
4776         * src/preproc/html/pre-html.cc: Include paper.h and font.h.
4777         (linebuf, linebufsize): New global variables.
4778         (sys_fatal): Use `fatal' to abort properly.
4779         (get_line): New function.
4780         (get_resolution): Use it.
4781         Improve error messages.
4782         (get_papersize): Check `papersize' also.
4783         Use `get_line'.
4784         Improve error messages.
4786 2002-06-03  Werner LEMBERG  <wl@gnu.org>
4788         * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
4789         should be removed only if builddir is not srcdir.
4790         (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
4791         (clean): Depend on `mostlyclean'.
4792         (distclean): Depend on `clean'.
4793         (realclean, extraclean): Depend on `distclean'.
4794         (.y.cc, .y.o): Simplified.  The output files are no longer written
4795         to srcdir but to builddir.
4796         * Makefile.in (MDEFINES): Add `version' and `revision'.
4797         (uninstall_dirs): Fix order of directories.
4798         * doc/Makefile.sub (version, revision): Removed.
4799         (CLEANADD): Removed grnexmpl.g, groff, groff-*.
4800         Added `HTMLDOCFILES'.
4801         (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
4802         * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
4803         src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
4804         as prefix.
4806         * doc/texinfo.tex (\authortt): New macro.
4807         (\shortcontt): Define.
4808         (\titlepage): Set \tt to \authortt while defining \authorfont.
4809         (\appendixbox): New macro.
4810         (\chapmacro, \appendixentry): Use \appendixbox to get even
4811         indentation for letters.
4812         (\summarycontents): Set \tt.
4813         (\internalpagesize): Add two arguments for real paper width and
4814         height as needed by pdfTeX.
4815         (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
4816         Updated.
4817         (\tempdima, \tempdimb): New temporary dimensions.
4818         (\pagesizesyyy): Updated.
4820 2002-06-02  Werner LEMBERG  <wl@gnu.org>
4822         Adding a new keyword `papersize' to the DESC file format (similar
4823         but not completely identical to grolbp's extension).  grops now has
4824         a -p command line option to override `papersize'.  Finally, grolbp
4825         has been adapted to the new syntax.
4827         * src/libs/libgroff/paper.cc, src/include/paper.h: New files.  It
4828         defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
4829         elements.
4830         * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
4831         (CCSRCS): Add `paper.cc'.
4833         * src/include/font.h (font): Add `papersize' element.
4834         * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
4835         (font::scan_papersize): New function.
4836         (font::load_desc): Use it for handling `papersize' keyword.
4837         * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
4839         * src/devices/grops/ps.cc: Include paper.h.
4840         (user_paper_length): New global variable.
4841         (ps_printer): Use paper length as initializer.
4842         (make_printer): Updated.
4843         (main): Handle new `-p' option.
4844         * src/devices/grops/grops.man: Updated.
4846         * src/devices/grolbp/lbp.cc: Include paper.h.
4847         s/papersizes/lbp_papersizes/.
4848         (set_papersize): Use new `papersizes' array.
4849         (handle_unknown_desc_command): Don't handle `papersize'.
4850         (main): Use `font::scan_papersize' for handling `-p' option.
4851         * src/devices/grolbp/grolbp.man: Updated.
4853         * man/groff_font.man: Document `papersize'.
4854         * NEWS: Updated.
4856 2002-05-30  Werner LEMBERG  <wl@gnu.org>
4858         * src/devices/grops/TODO: Updated.
4859         * src/devices/grops/grops.man: More info on paper formats.
4860         * man/groff_font.man: Document `paperheight' and `paperwidth'.
4862 2002-05-29  Werner LEMBERG  <wl@gnu.org>
4864         * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
4865         to list only if srcdir != currdir.
4866         (distfiles): New target.
4868         * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
4869         (NOMAKEDIRS): New variable.
4870         (DISTDIRS): Use it.
4872 2002-05-26  Werner LEMBERG  <wl@gnu.org>
4874         Add .output request, similar to \! at top-level.
4876         * src/roff/troff/input.cc (transparent): Remove unused declaration.
4877         (output_request): New function.
4878         (init_input_requests): Add it.
4879         Sorted.
4880         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
4881         Document it.
4883         * Makefile.in (MDEFINES): Add INSTALL_INFO.
4884         (prepare_examples): Fix typo.
4885         * doc/groff.texinfo (@direntry): Fix it.
4887 2002-05-25  Werner LEMBERG  <wl@gnu.org>
4889         Including the doc subdir into groff's Makefile system.
4891         * aclocal.m4 (GROFF_INSTALL_INFO): New function.
4892         * configure.ac: Use it.
4893         Generate `doc/Makefile'.
4894         * configure: Regenerated.
4896         * Makefile.in (infodir, INSTALL_INFO): New variables.
4897         (MDEFINES, uninstall_dirs): Updated.
4898         (OTHERDIRS): Add `doc'.
4899         * Makefile.comm (CLEANDIRADD): New variable.
4900         (mostlyclean): Use it.
4902         * doc/Makefile.sub, doc/Makefile.in: New files.
4903         * doc/Makefile: Removed.
4905         * NEWS, INSTALL: Updated.
4907 2002-05-24  Werner LEMBERG  <wl@gnu.org>
4909         * doc/homepage.ms: Renamed to ...
4910         * doc/webpage.ms: This.
4911         Use `.NHR'.
4913 2002-05-23  Werner LEMBERG  <wl@gnu.org>
4915         Integrating the `mom' macro package, contributed by Peter Schaffter
4916         <df191@ncf.ca>.
4918         * contrib/mom/*: New subdirectory tree.
4919         * Makefile.in (docdir, exampledir, htmldocdir): New variables to
4920         be used for documentation files.
4921         (MDEFINES, uninstall_dirs): Use them.
4922         (OTHERDIRS): Add contrib/mom.
4923         * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
4924         @HTMLDOCDIR@.
4925         * MANIFEST, NEWS: Updated.
4927 2002-05-22  Gaius Mulley  <gaius@glam.ac.uk>
4929         Change syntax of \O: \O[0] suppresses output, \O[1] enables output
4930         if at outer level; at start-up we are at outer level.
4932         * src/roff/troff/input.cc (do_suppress): Implement it.
4933         Simplify \O[3].
4935         Add option -p to show progress information.
4936         pre-grohtml will now render only one page at a time, reducing the
4937         size of needed disk resources enormously.
4939         * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
4940         (imagePageName): New global variable.
4941         (psPageName, show_progress, currentPageNo): New global variables.
4942         (html_system): Close saved stderr and stdout handles.
4943         (write_end_image): Accept a parameter to control \O escape.
4944         (write_start_image): Adapted to new \O meaning.
4945         (char_buffer::write_upto_newline): Updated.
4946         (createAllPages): Replaced with...
4947         (createPage): This new function to create a single page for images.
4948         It uses `psselect' from the psutils package.
4949         (removeAllPages): Removed.
4950         (createImage): Updated.
4951         Handle progress display.
4952         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
4953         (scanArguments): Add option -p.
4954         (makeTempFiles): Updated to create temp files for psPageName and
4955         imagePageName.
4956         (removeTempFiles): Removed.
4957         (main): Updated.
4959         * src/devices/grohtml/post-html.cc (header_desc::write_headings,
4960         html_printer::write_header): Append `\0' to `buffer'.
4961         (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
4962         (main): Handle -p.
4963         * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
4964         Handle `text_emitted'.
4965         (html_text::table_is_void): Slightly rewritten.
4966         (stop): New external symbol.
4967         (html_text::do_push) [DEBUGGING]: Use it and simplify.
4968         (html_text::shutdown): Call `dump_stack'.
4969         (html_text::do_space): Rewritten.
4970         * src/devices/grohtml/grohtml.man: Document -p and the need of
4971         `psselect'.
4973         * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
4974         new \O syntax.
4975         Call \O[0] if `ps4html' is active.
4976         * tmac/s.tmac (@EQ, @EN): Handle html better.
4977         (@TS, TE): Ditto.
4978         * tmac/html.tmac: Don't use black for background colour.
4980         * src/roff/troff/node.cc: Include `div.h'.
4981         (troff_output_file::really_print_line): Don't use `is_on'. 
4982         (troff_output_file::word_marker, troff_output_file::flush_tbuf
4983         troff_output_file::check_charinfo,
4984         troff_output_file::put_char_width, troff_output_file::put_char,
4985         troff_output_file::determine_line_limits, troff_output_file::draw,
4986         real_output_file::begin_page, glyph_color_node::tprintf,
4987         fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
4988         Use `is_on'.
4989         (troff_output_file::really_on): Call `do_motion'.
4990         (suppress_node::tprint): Use `get_page_number' instead of `%'
4991         register.
4992         Call `reset_output_registers' conditionally on `is_on'.
4994         * doc/groff.texinfo: Document new syntax of \O.
4995         * NEWS, man/groff_diff.man: Updated.
4997 2002-05-22  Werner LEMBERG  <wl@gnu.org>
4999         * MORE.STUFF: Add info about David Frey's deroff implementation.
5000         Mention troff.org.
5002 2002-05-16  Werner LEMBERG  <wl@gnu.org>
5004         Pic's `with' attribute now accepts positions.
5006         * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
5007         ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
5008         conflicts.
5009         (object_spec): Add rule for `WITH' and `position'.
5010         (relative_path): Give `corner' the precedence of `CHOP'.
5011         * src/preproc/pic/object.h (path): New members `pos' and
5012         `is_position'.
5013         * src/preproc/pic/object.cc: Updated initializers of `path'.
5014         (path::follow): Handle `is_position'.
5016         * doc/pic.ms: Completely updated grammar description.
5017         Many typographical improvements.
5019 2002-05-15  Werner LEMBERG  <wl@gnu.org>
5021         * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
5022         code of x in range 0-127) also.
5023         * doc/groff.texinfo, man/groff_diff.man: Updated.
5025         Added keywords `north', `south', `east', and `west' for corners
5026         in pic.
5028         * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
5029         and WEST.
5030         (yylex): Handle them.
5031         * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
5032         (corner): Handle them.
5034 2002-05-14  Werner LEMBERG  <wl@gnu.org>
5036         * src/devices/grops/grops.man: Clarify handling of `download' file.
5038 2002-05-11  Werner LEMBERG  <wl@gnu.org>
5040         Adding `warnscale' and `spreadwarn' requests, based on a patch from
5041         Jeffrey Friedl <jfriedl@yahoo.com>.
5043         * src/roff/troff/input.cc (spread_limit, warn_scale,
5044         warn_scaling_indicator): New global variables.
5045         (warnscale_request, spreadwarn_requests): New functions.
5046         (main): Initialize `warn_scale' and `warn_scaling_indicator'.
5047         (init_input_requests): Updated.
5048         (error_type): Add `OUTPUT_WARNING'.
5049         (do_error): Handle it.
5050         (output_warning): New warning function which shows output location.
5051         * src/roff/troff/env.h (spread_limit): New external variable.
5052         * src/roff/troff/env.cc (environment::choose_breakpoint): Use
5053         `output_warning'.
5054         (distribute_space): Emit warning if added space is larger than
5055         `spread_limit'.
5056         (environment::possibly_break_line): Emit warning if a line can't
5057         be adjusted on both sides.
5059         * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
5061 2002-05-08  Werner LEMBERG  <wl@gnu.org>
5063         * src/roff/troff/node.cc (special_node::special_node): Use
5064         env_definite_font(curenv) instead of curenv->get_font().  Otherwise
5065         \X''\% crashes, for example.
5067         * doc/groff.texinfo: Document \! and \? used at top-level.
5069 2002-05-06  Werner LEMBERG  <wl@gnu.org>
5071         * src/preproc/pic/pic.man: Fix some keyword syntax.
5072         Other minor typographical fixes.
5074         * src/roff/groff/groff.man: Fix typos.
5076 2002-05-04  Werner LEMBERG  <wl@gnu.org>
5078         * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
5079         (ShortOpt[]): This to avoid problems with refer.
5081         * doc/pic.ms: Fix typo.
5082         Fix pic grammar description.
5084         * tmac/an-old.tmac (ne): Use de1, not de.
5086 2002-05-03  Werner LEMBERG  <wl@gnu.org>
5088         * doc/groff.texinfo: Finished separation of glyphs and characters.
5089         Don't use the string `Appendix' for appendix headers (both in
5090         the text and the table of contents).
5091         * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
5092         directories.
5094         Use registers LL and LT (similar to -ms) for controlling the
5095         length of title and line, respectively, in the -man and -mdoc
5096         macro packages.
5098         * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
5099         (doc-setup-page-layout): Use \n[LL] and \n[LT].
5100         * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
5101         (TH): Use \n[LL].
5102         (an-header, an-p-footer): Use \n[LT].
5103         * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
5104         doc/groff.texinfo: Document it.
5106 2002-05-02  Werner LEMBERG  <wl@gnu.org>
5108         * doc/fdl.texi: New file.
5109         * doc/groff.texinfo: Include it.
5110         Define and use @copying.
5111         Starting with separating glyph, symbol, and character.
5113 2002-04-27  Werner LEMBERG  <wl@gnu.org>
5115         * Makefile.in (EXEEXT): Set it.
5116         * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
5117         programs.
5119         * src/include/nonposix.h: Define GS_NAME.
5120         * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
5122         Some preliminary changes for EMX support under OS/2.
5124         * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
5125         __EMX__ similar to __MSDOS__.
5126         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
5128 2002-04-25  Werner LEMBERG  <wl@gnu.org>
5130         * doc/groff.texinfo: Integrated groff_out.man.
5131         Some macro fixes.
5133 2002-04-23  Werner LEMBERG  <wl@gnu.org>
5135         * man/groff_out.man: Minor fixes.
5137 2002-04-23  Werner LEMBERG  <wl@gnu.org>
5139         * doc/groff.texinfo: Moving @cindex entries after @Def* to get
5140         correct page references.
5141         Fixed many index entries.
5143 2002-04-23  Bernd Warken  <bwarken@mayn.de>
5145         * man/roff.man: Enlarged.
5147 2002-04-22  Werner LEMBERG  <wl@gnu.org>
5149         * doc/groff.texinfo: More examples, other fixes.
5151 2002-04-20  Werner LEMBERG  <wl@gnu.org>
5153         * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
5154         will now form a chain, e.g.
5156           .pi foo
5157           .pi bar
5159         is now the same as
5161           .pi foo | bar
5163         This is for compatibility with plan 9's troff.
5165         * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
5166         with UNIX troff.
5167         * NEWS: Updated.
5169         * doc/groff.texinfo: Add documentation of remaining requests and
5170         registers.
5172 2002-04-19  Werner LEMBERG  <wl@gnu.org>
5174         * doc/groff.texinfo: Add documentation of remaining escapes.
5176         * font/devdvi/generate/tc.map: Remove entry for `sr'.
5177         * font/devdvi/*TC: Regenerated.
5179 2002-04-18  Werner LEMBERG  <wl@gnu.org>
5181         * src/roff/troff/input.cc (token::next): Make \H behave consistently
5182         if not in compatibility mode, i.e., increment relative to the
5183         previous height.
5184         * doc/groff.texinfo: Updated accordingly.
5186 2002-04-17  Werner LEMBERG  <wl@gnu.org>
5188         * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
5190 2002-04-16  Bernd Warken  <bwarken@mayn.de>
5192         * src/roff/groff/groff.man: Improve documentation of -P option.
5193         Other minor fixes.
5195 2002-04-15  Werner LEMBERG  <wl@gnu.org>
5197         Add new escape \F to switch font family.
5199         * src/roff/troff/input.cc (token::next): Handle \F.
5200         * src/roff/troff/env.cc (environment::set_family): Handle
5201         `interrupted' flag.
5202         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5203         Document it.
5205 2002-04-14  Werner LEMBERG  <wl@gnu.org>
5207         * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
5208         spaces in tags.
5210 2002-04-13  Werner LEMBERG  <wl@gnu.org>
5212         Implement \f[] as an alternative to \fP.  Change \mP and \MP to
5213         \m[] and \M[], respectively.
5215         * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
5216         (symbol::symbol): Handle NULL string and empty string differently.
5217         * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
5218         * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
5219         Add optional parameter.
5220         Updated calling functions.
5221         (get_copy, do_glyph_color, do_fill_color, token::next): Use
5222         `symbol::is_empty'.
5223         * src/roff/troff/env.cc (environment::set_font): Ditto.
5225         * src/preproc/pic/troff.cc (troff_output::set_fill,
5226         troff_output::reset_color: Updated.
5228         * tmac/www.tmac: Updated.
5230         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
5231         doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
5232         Updated.
5234         * tmac/Xps.tmac: Remove some redundant code.
5236         * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
5237         tmac/dvi.tmac, man/roff.man, man/groff_out.man, man/groff.man,
5238         man/groff_diff.man, src/roff/groff/groff.man: Replace \f[P] with
5239         \f[].
5241 2002-04-13  Bernd Warken  <bwarken@mayn.de>
5243         * src/include/printer.h, src/libs/libdriver/printer.cc
5244         (printer::change_fill_color): New member function.
5245         * src/libs/libdriver/input.cc (parse_D_command): Use it.
5247 2002-04-12  Werner LEMBERG  <wl@gnu.org>
5249         * doc/groff.texinfo: Completed pass on gtroff reference.
5251 2002-04-11  Werner LEMBERG  <wl@gnu.org>
5253         * doc/groff.texinfo: More fixes.
5255 2002-04-11  Bernd Warken  <bwarken@mayn.de>
5257         * src/include/color.h: Decorate with `const'.
5258         Use `size_t'.
5259         Include `stddef.h'.
5260         * src/libs/libgroff.color.cc: Decorate with `const'.
5261         Use `size_t'.
5262         (color::color): Initialize members.
5263         * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
5264         command according to the documentation.
5266         * man/groff_out.man: Updated.
5267         Minor fixes.
5269 2002-04-11  Gaius Mulley  <gaius@glam.ac.uk>
5271         * src/preproc/html/pre-html.cc (write_start_image): Remove
5272         redundant output.
5273         * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
5275         * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
5276         \C'hy' caused an assertion failure.
5278         * src/roff/troff/env.cc (environment::environment): Initialize
5279         `emitted_node'.
5280         (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
5282 2002-04-10  Werner LEMBERG  <wl@gnu.org>
5284         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
5285         Document pvs request and .pvs register.
5287 2002-04-09  Werner LEMBERG  <wl@gnu.org>
5289         * doc/groff.texinfo: Improve and fix documentation of diversions
5290         and environments.
5292 2002-04-08  Werner LEMBERG  <wl@gnu.org>
5294         * doc/groff.texinfo: Fix documentation of drawing functions.
5295         Other minor fixes.
5297 2002-04-07  Werner LEMBERG  <wl@gnu.org>
5299         * doc/groff.texinfo: Better documentation of double quotes as
5300         arguments.
5301         Other minor fixes.
5303 2002-04-06  Werner LEMBERG  <wl@gnu.org>
5305         * man/groff_font.man: Document names of special characters better.
5306         * doc/groff.texinfo: Minor improvements.
5308         * tmac/lbp.tmac: Load latin1.tmac.
5309         * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
5311         * font/devX*/*: Regenerated (all chars > 0x80 removed).
5313 2002-04-05  Werner LEMBERG  <wl@gnu.org>
5315         * tmac/tty.tmac: Don't use shc request.
5316         * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
5317         * NEWS: Updated.
5319         * man/groff_diff.man: Minor fixes.
5321         * font/devlbp/*: Remove all `charXXX' entities.
5323         * src/libs/libgroff/font.cc (font::~font): Deallocate
5324         `special_device_coding'.
5325         (font::load): Use `new' for allocating `special_device_coding'.
5326         * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
5327         Removed unused member.
5329 2002-04-05  Werner LEMBERG  <wl@gnu.org>
5331         * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
5332         (resource_manager::do_begin_binary,
5333         resource_manager::do_begin_data): Use it.
5335         * doc/texinfo.tex: Updated to version 4.2.
5337         * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
5338         (token::zero_width_break): New inline function.
5339         * src/roff/troff/input.cc (token::next): Use it.
5340         (token::description): Updated.
5341         (encode_char): Ignore `\%', `\&', `\)', and `\:'.
5342         (token::add_to_node_list, token::process): Use it.
5343         * NEWS, doc/groff.texinfo: Updated.
5345         * src/preproc/eqn/over.cc (over_box::output): Fix typo.
5346         * tmac/tty.tmac: Add missing backslash.
5348 2002-04-04  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
5350         * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
5351         `.ps' register instead of `.s' to handle fractional point sizes.
5352         * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
5353         limit_box::output): Ditto.
5354         * src/preproc/eqn/other.cc (size_box::compute_metrics,
5355         size_box::output): Ditto.
5356         * src/preproc/eqn/over.cc (over_box::compute_metrics,
5357         over_box::output): Ditto.
5358         * src/preproc/eqn/script.cc (script_box::compute_metrics,
5359         script_box::output): Ditto.
5360         * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
5361         sqrt_box::output): Ditto.
5363 2002-04-03  Michael Selway  <mas@ssl.co.uk>
5365         * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
5366         Fix typo.
5368 2002-04-03  Werner LEMBERG  <wl@gnu.org>
5370         * doc/homepage.ms: Reduce title size.
5371         * doc/groff.texinfo: Fix documentation of .t register.
5372         Fix handling of colon.
5373         Fix `\' vs. `\\'.
5375         * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
5376         only if page length is positive to avoid a loop.
5378         * tmac/an-old.tmac (ne): Increase page length to avoid problems with
5379         tbl.
5381 2002-04-02  P. Alejandro Lopez-Valencia  <dradul@yahoo.com>
5383         * src/include/nonposix.h, src/roff/groff/pipeline.c:
5384         s/__CYGWIN32__/__CYGWIN__/.
5386 2002-03-28  Gaius Mulley  <gaius@glam.ac.uk>
5388         * doc/gnu.xpm: New image contributed by Emily Mulley.
5389         * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
5390         (homepage.html): Be dependent on gnu.eps.
5391         * doc/homepage.ms: Updated to new image.
5393         * src/devices/grohtml/post-html.cc (html_printer): New member
5394         `sbuf_prev_hpos'.
5395         (html_printer::flush_sbuf, html_printer::set_char): Set it.
5396         (html_printer::sbuf_continuation): Use it.
5398 2002-03-28  Werner LEMBERG  <wl@gnu.org>
5400         * src/libs/libgroff/getopt.c: Updated to latest version.
5402         * tmac/README: More on hyphen.tex license.
5404 2002-03-26  Larry Kollar  <kollar@alltel.net>
5406         * doc/groff.texinfo: Add documentation of most missing requests.
5408 2002-03-25  Werner LEMBERG  <wl@gnu.org>
5410         Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
5411         of `+-', `mu', and `di', respectively.
5413         * font/devascii/R.proto, font/devutf8/R.proto,
5414         font/devlatin1/R.proto, font/devhtml/R.proto,
5415         font/devcp1047/R.proto, font/devlpb/*: Add them.
5416         * font/devps/generate/textmap: Ditto.
5417         * font/devps/*: Regenerated.
5418         * font/devlj4/generate/text.map: Add them.
5419         * font/devlj4/*: Regenerated.
5420         * font/devdvi/generate/tc.map: Use them.
5421         * font/devdvi/generate/texsy.map: Add them.
5422         * font/devdvi/*: Regenerated.
5423         * font/devX*/*: Regenerated.
5425         * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
5426         tmac/tty-char.tmac: Updated.
5428         * NEWS, man/groff_char.man: Updated.
5430 2002-03-24  Werner LEMBERG  <wl@gnu.org>
5432         * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
5433         tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
5434         * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
5435         we use `.fchar' in dvi.tmac.
5436         * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
5437         * tmac/Xps.tmac: Simplify some char definitions.
5438         Add definition for \[f/].
5439         * man/groff_char.man: Updated for new X.tmac.
5441         * tmac/README: New file.
5443 2002-03-23  Phil Lobbes  <phil@perkpartners.com>
5445         * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
5446         internal .y.o rule took precendence over the .y.cc rule, compiling
5447         the yacc files with gcc instead of g++.
5449 2002-03-23  Werner LEMBERG  <wl@gnu.org>
5451         * tmac/dvi.tmac: Add replacement font for `CB'.
5453         * tmac/doc.tmac: s/request/macro/ in messages.
5454         (doc-generic-macro): Improve error message.
5455         * tmac/groff_mdoc.man: Minor improvements.
5457 2002-03-22  Werner LEMBERG  <wl@gnu.org>
5459         * doc/groff.texinfo: Document possible conflict between `tr' and
5460         `char' requests.
5462 2002-03-21  Werner LEMBERG  <wl@gnu.org>
5464         Improve handling of hyphenation patterns.  It is now possible to
5465         use most of TeX's pattern files unmodified.  To make the process
5466         more flexible, a new request `hpfcode' has been added which
5467         provides a character code mapping for the `hpf' request.  See
5468         comment before hpf_getc() for more details.
5470         * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
5471         functions.
5472         (read_patterns_file): Additional parameter for exception dictionary.
5473         Extended to recognize \pattern, \hyphenation, and \endinput.
5474         (do_hyphenation_patterns_file): Updated.
5475         * src/roff/troff/env.h (hpf_code_table): New extern.
5477         * src/roff/troff/input.cc (hpf_code_table): New array.
5478         (init_hpf_code_table, hyphenation_patterns_file_code): New
5479         functions.
5480         (hyphenation_code): Handle translation from `trin' correctly.
5481         (main, init_input_requests): Updated.
5482         (charinfo::set_translation): Handle hyphenation code also.
5484         * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
5485         inline function.
5487         * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
5488         char' is used for offsets in hyphenation exceptions.
5490         * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
5492         * NEWS, man/groff_diff.man, man/groff.man: Document it.
5494 2002-03-20  Larry Kollar  <kollar@alltel.net>
5496         * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
5497         requests.
5499 2002-03-18  Werner LEMBERG  <wl@gnu.org>
5501         * tmac/html.tmac: Fix serious typo.
5503 2002-03-17  Larry Kollar  <kollar@alltel.net>
5505         * doc/groff.texinfo: Add documentation for `writec' request.
5507 2002-03-17  Werner LEMBERG  <wl@gnu.org>
5509         Added request `hpfa' to append hyphenation patterns.
5511         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
5512         parameter `append'.
5513         (hyphenation_patterns_file): Renamed to...
5514         (do_hyphenation_patterns_file): This.
5515         (hyphenation_patterns_file, hyphenation_patterns_file_append): New
5516         functions.
5517         (init_hyphen_requests): Updated.
5518         * NEWS, man/groff.man, man/groff_diff.man: Document it.
5520 2002-03-16  Werner LEMBERG  <wl@gnu.org>
5522         Added request `writec' in analogy to `tmc'.
5524         * src/roff/troff/input.cc (write_request): Renamed to...
5525         (do_write_request): This.
5526         Added one parameter.
5527         (write_request, write_request_continue): New functions.
5528         (init_input_requests): Updated.
5529         * NEWS, man/groff.man, man/groff_diff.man: Document it.
5531         * font/devdvi/DESC.in (sizes): Allow all sizes in the range
5532         5-10000pt.
5533         * NEWS: Document it.
5535 2002-03-15  Werner LEMBERG  <wl@gnu.org>
5537         * man/groff.man: Add writem request.
5539         Add request `trin' (translate input) to make `.asciify' work
5540         correctly.  This is necessary since `charXXX' entity names are no
5541         longer hardcoded in font definition files.
5543         * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
5544         `translate_input' members.
5545         (charinfo::set_asciify_code, charinfo::get_asciify_code,
5546         charinfo::set_translation_input): New methods.
5547         (charinfo::set_translation): Add third argument.
5548         * src/roff/troff/input.cc (charinfo:set_translation): Set
5549         `asciify_code'.
5550         (do_translate): Add second argument.
5551         (translate_input): New function.
5552         (init_input_requests): Updated.
5553         * src/roff/troff/node.cc (glyph_node::asciify,
5554         composite_node::asciify): Use `get_asciify_code'.
5556         * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
5558         * NEWS, man/groff.man, man/groff_diff.man: Updated.
5560 2002-03-14  Larry Kollar  <kollar@alltel.net>
5562         * doc/groff.texinfo: Improve documentation of .RS and .RE.
5564 2002-03-14  Werner LEMBERG  <wl@gnu.org>
5566         Add a new request `sizes' similar to the `sizes' command in DESC
5567         files.
5569         * src/roff/troff/env.cc (override_sizes): New function.
5570         (init_env_requests): Use it.
5571         * src/roff/troff/token.h: Export `read_string'.
5572         * NEWS, man/groff_diff.man, man/groff.man: Document it.
5574 2002-03-12  Werner LEMBERG  <wl@gnu.org>
5576         * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
5578 2002-03-10  Werner LEMBERG  <wl@gnu.org>
5580         * tmac/pspic.tmac: Add support for -Tdvi.
5581         * tmac/dvi.tmac: Include pspic.tmac.
5582         * src/devices/grodvi/grodvi.man: Document it.
5583         * NEWS: Updated.
5585         * font/devlj4/generate/Makefile: Fix URL of metric files.
5587 2002-03-09  Werner LEMBERG  <wl@gnu.org>
5589         * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
5591 2002-03-09  Larry Kollar  <kollar@alltel.net>
5593         * tmac/groff_ms.man: Add documentation for RS and RE macros.
5595 2002-03-08  Werner LEMBERG  <wl@gnu.org>
5597         * doc/groff.texinfo: Fixes for texinfo 4.1.
5599 2002-03-07  Werner LEMBERG  <wl@gnu.org>
5601         * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
5602         included.
5603         Handle CYGWIN properly.
5605 2002-03-07  Paco Andrés Verdú  <pandres@dragonet.es>
5607         * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
5608         * tmac/lbp.tmac: Add some font translations.
5610 2002-03-02  Werner LEMBERG  <wl@gnu.org>
5612         * font/devcp1047/R.proto, font/devlatin1/R.proto,
5613         font/devhtml/R.proto: Remove `charXXX'  entries.
5614         * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
5615         where appropriate.
5617         * font/devlj4/generate/text.map: Remove `charXXX' entries.
5618         * font/devlj4/*: Regenerated all font definition files.
5619         * tmac/lj4.tmac: Load latin1.tmac.
5621         * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
5622         from 2000-06-17: LJ4 metric files are *not* text files.
5624         * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
5625         register to test for EBCDIC.
5627 2002-03-01  Werner LEMBERG  <wl@gnu.org>
5629         * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
5630         files (as grops already does).
5631         * src/utils/afmtodit/afmtodit.man: Document comment lines in map
5632         files.
5633         * src/devices/grops/grops.man: Document comment lines in encoding
5634         files.
5636         * tmac/cp1047.tmac: New file.
5637         * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
5638         * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
5639         * tmac/Makefile.sub (NORMALFILES): Updated.
5641         * tmac/ec.tmac: Don't load latin1.tmac again.
5643         * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
5644         font/devps/generate/dingbats.map,
5645         font/devps/generate/dingbats.rmap, font/devps/text.enc,
5646         font/devps/generate/Makefile (symbolmap): Add header comment.
5647         * font/devps/generate/textmap: Ditto.
5648         Remove `charXXX' entries.
5649         * font/devps/symbolmap: Regenerated.
5650         * font/devps/*: Regenerated all font definition files.
5652 2002-02-28  Werner LEMBERG  <wl@gnu.org>
5654         Add color support to grodvi (for drawing colors are currently
5655         translated to gray values).
5657         * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
5658         (dvi_printer): Add `cur_color' member.
5659         (dvi_printer::set_color): New function.
5660         (draw_dvi_printer): Remove `fill'.
5661         (draw_dvi_printer::fill_next): Pass environment as parameter.
5662         Update code for new color support translated to gray.
5663         (dvi_printer::set_char): Updated.
5664         (dvi_printer::begin_page, dvi_printer::end_page): Handle color
5665         changes crossing the page border.
5666         (dvi_printer::draw): Updated.
5667         Remove cases `f' and `F'.
5668         * tmac/dvi.tmac: Add color definitions.
5669         * NEWS, src/devices/grodvi/grodvi.man: Updated.
5671         * tmac/an-old.tmac (R): Make this a macro to emit a warning if
5672         used incorrectly.
5674         * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
5675         versions of autoconf.
5676         * configure: Updated.
5678         * doc/homepage.ms: Use `.blm'.
5679         * tmac/www.tmac (www-depth): New auxiliary variable.
5680         (www-pop-level): Don't issue HTML tag.
5681         (ULS, ULE, LI): Use absolute indentation.
5683         * src/devices/grops/ps.cc (ps_printer::begin_page,
5684         ps_printer::end_page): Switch forth and back to default color while
5685         starting a new page.
5687 2002-02-27  Werner LEMBERG  <wl@gnu.org>
5689         Add EC and TC fonts to devdvi.
5691         * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
5692         * font/devdvi/generate/cork.map: Renamed to...
5693         * font/devdvi/generate/ec.map: This.
5694         Remove entry for `aq'.
5695         * font/devdvi/generate/tc.map: New file.
5696         * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
5697         EC and TC fonts.
5698         (FONTS): Updated.
5699         * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
5700         * font/devdvi/Makefile.sub (DEVFILES): Updated.
5701         * tmac/ec.tmac: New file.
5702         * tmac/Makefile.sub (NORMALFILES): Updated.
5703         * NEWS, src/devices/grodvi/grodvi.man: Updated.
5704         * man/groff_char.man: Check `ECFONTS' register.
5706         * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
5708 2002-02-26  Werner LEMBERG  <wl@gnu.org>
5710         * font/devdvi/generate/*.map: Remove all `charXXX' entries.
5711         * font/devdvi/generate/cork.map: Add 'y and 'Y.
5712         * font/devdvi/*: Updated.
5713         * tmac/dvi.tmac: Formatting.
5715         Add font `HBI' for the dvi output.
5716         Add support for font families `T' and `H'.
5718         * font/devdvi/HBI: New file.
5719         * font/devdvi/B: Renamed to ...
5720         * font/devdvi/TB: This.
5721         * font/devdvi/BI: Renamed to ...
5722         * font/devdvi/TBI: This.
5723         * font/devdvi/I: Renamed to ...
5724         * font/devdvi/TI: This.
5725         * font/devdvi/R: Renamed to ...
5726         * font/devdvi/TR: This.
5727         * font/devdvi/H: Renamed to ...
5728         * font/devdvi/HR: This.
5729         * font/devdvi/Makefile.sub (DEVFILES): Updated.
5730         * font/devdvi/generate/Makefile (HBI): New rule.
5731         (FONTS): Updated.
5732         (R, I, B, BI, H): Renamed to ...
5733         (TR, TI, TB, TBI, HR): This, respectively.
5734         (srcdir): Fixed.
5735         * NEWS, src/devices/grodvi/grodvi.man: Updated.
5736         * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
5737         Add `styles' and `family' keywords.
5738         * tmac/dvi.tmac: Alias `H' to `HR'.
5739         Add some fspecial requests for italic fonts.
5740         Add TR and TI as special.
5741         Add support for `_' with font CWI.
5743         * src/roff/troff/number.cc (parse_expr): Add missing `break' for
5744         operator `:'.  Until now, the expression `0:1' would return 2
5745         instead of 1.
5747 2002-02-25  Werner LEMBERG  <wl@gnu.org>
5749         * man/groff_char.man: Added some missing PS glyph names (from the
5750         Adobe Glyph List).
5751         * font/devps/generate/textmap, font/devps/symbolmap: Add
5752         `arrowupdn'.
5754         * doc/groff.texinfo: Minor additions and fixes.
5755         * man/groff_diff.man: Remove documentation of fp request.  This
5756         is already covered in the original troff manual.
5757         Updated to be consistent with other doc files.
5758         * NEWS: Updated.
5760 2002-02-24  Werner LEMBERG  <wl@gnu.org>
5762         * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
5763         TTYDEVDIRS.
5764         Define new variable OTHERDEVDIRS (containing `font/devlj4
5765         font/devlbp' if not EBCDIC).
5766         * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
5767         (OTHERDEVDIRS): New variable.
5768         (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
5769         * configure: Regenerated.
5771         * NEWS, src/devices/grotty/grotty.man: Updated.
5773 2002-02-23  Werner LEMBERG  <wl@gnu.org>
5775         * src/roff/troff/input.cc (do_overstrike, do_bracket,
5776         get_line_arg): Honour input level.
5778         Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
5780         * font/*/*: Implement it in all font files.
5781         * font/devps/generate/textmap, font/devps/generate/symbolchars,
5782         * font/devps/symbolmap: Updated.
5783         * font/devlj4/generate/text.map: Updated.
5784         * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
5785         * font/devdvi/generate/texmi.map: Updated.
5787         * font/devutf8/R.proto: Remove all `charXXX' entries.
5788         * font/devutf8/NOTES: Updated.
5790         * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
5791         version 4.1.0.
5793         * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
5795         * NEWS, man/groff_char.man: Updated.
5797 2002-02-21  Phil Lobbes  <phil@perkpartners.com>
5799         * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
5801 2002-02-20  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5803         * src/roff/grog/grog.pl: Fix computation of $refer.
5805 2002-02-19  Werner LEMBERG  <wl@gnu.org>
5807         * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
5808         `snprintf' and `vsnprintf'.
5810         * src/include/htmlindicate.h: Renamed to...
5811         * src/include/htmlhint.h: This.
5812         * src/include/Makefile.sub: Updated.
5813         * src/preproc/eqn/main.cc: Updated.
5815 2002-02-18  Werner LEMBERG  <wl@gnu.org>
5817         * man/roff.man, man/groff_out.man, man/groff.man,
5818         man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
5819         src/roff/troff/troff.man: Updated to latest changes in www.tmac.
5821         * win32-diffs: Updated.
5823 2002-02-17  Werner LEMBERG  <wl@gnu.org>
5825         * doc/Makefile (clean): Add *.eps.
5826         (MEMACROS): Removed.
5827         (TFLAG): New variable.
5828         (TROFF): Use it.
5829         Add -ww.
5830         (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
5831         (.me.dit): Fixed.
5832         (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
5834         * tmac/www.tmac: Use dummy diversion while resetting and disabling
5835         `.tl'.
5836         * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
5837         unstripped.
5838         * src/roff/troff/troff.man: Fix order of parameter description.
5840         * NEWS: Updated.
5842 2002-02-16  Gaius Mulley  <gaius@glam.ac.uk>
5844         Simplify image handling for grohtml.
5845         Fix <p> bug.
5847         * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
5848         comment out.
5849         (html_text::dump_stack): Don't emit newline while debugging.
5850         (html_text::do_push) [DEBUGGING]: Print more info.
5851         (html_text::check_emit_text): Fix handling of <p>.
5852         * src/devices/grohtml/html.h: Updated.
5853         * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
5854         replacing `fputc', `fputs', `putc'.  If DEBUGGING is defined, they
5855         send its data to stderr also.
5856         Update all callers.
5857         (simple_output::space_or_newline) [DEBUGGING]: Removed.
5858         * src/devices/grohtml/post-html.cc (html_printer::do_links,
5859         html_printer::html_printer): Remove `DEBUGGING' conditionals.
5861         * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
5862         Removed.
5863         * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
5864         is_inline_image): Removed.
5865         (html_begin_suppress, html_end_suppress): Don't take a parameter.
5866         (graphic_start, graphic_end): Removed.
5867         * src/include/htmlindicate.h: Updated.
5868         * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
5869         (macroset_template): New global variable.
5870         (makeFileName): Use `macroset_template'.
5871         (write_end_image): Don't take a parameter.
5872         Don't emit newline.
5873         (write_start_image: Don't emit newline.
5874         (char_buffer::write_upto_newline): Updated.
5875         (char_buffer::skip_to_newline): Renamed to ...
5876         (char_buffer::skip_until_newline): This.
5877         Fix code.
5878         (char_buffer::write_file_troff, char_buffer::write_file_html):
5879         Simplified.
5880         (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
5881         (removeAllPages): Remove `DEBUGGING' conditionals.
5882         (addRegDef, dump_args): New functions.
5883         (char_buffer::do_html, char_buffer::do_image): Handle
5884         `www-image-template' command line variable.
5885         Add more debugging code.
5886         (addps4html): Removed.
5887         (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
5889         * src/preproc/eqn/main.cc: Include `ctype.h'.
5890         (suppress_html): Removed.
5891         (do_file): Updated.
5892         (inline_equation): Use `html_begin_suppress' and
5893         `html_end_suppress'.
5894         * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
5895         (troff_output::start_picture, troff_output::finish_picture):
5896         Updated.
5897         * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
5898         (process_input_file): Updated.
5900         * src/roff/troff/div.cc (page_number): Set page number only if the
5901         `ps4html' register isn't defined.
5902         * src/roff/troff/input.cc (image_no): New external variable.
5903         (do_suppress): Use it.
5904         * src/roff/troff/node.h (suppress_node::image_id): New member.
5905         * src/roff/troff/node.cc (image_no): Remove `static' keyword.
5906         (suppress_node::suppress_node): Initialize `image_id' member.
5907         (suppress_node::same): Handle `image_id' also.
5908         (suppress_node::copy): Updated.
5909         (last_image_id): New global variable.
5910         (suppress_node::tprint): Use it.
5912         * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
5913         HTML-IMAGE-END.
5914         * tmac/pspic.mac (PSPIC): Fix html support.
5915         * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
5916         * tmac/www.tmac (www-image-template): Set up.
5917         (HTMLINDEX): Renamed to...
5918         (HX): This.
5919         (BODYCOLOR): Renamed to...
5920         (BCL): This.
5921         (BACKGROUND): Renamed to...
5922         (BGIMG): This.
5923         (URL): Change order of parameters for consistency.
5924         (MAILTO): Renamed to...
5925         (MTO): This.
5926         (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
5927         (IMG, PIMG, MPIMG): This.
5928         (HTML-H-BEGIN, HTML-H-END): Renamed to...
5929         (HnS, HnE): This.
5930         (LINKS): Renamed to...
5931         (LK): This.
5932         (LINE): Renamed to...
5933         (HR): This.
5934         (NO-AUTO-RULE): Renamed to...
5935         (NHR): This.
5936         (HTML-TL): Renamed to...
5937         (HTL): This.
5938         (UL-BEGIN, UL-END): Renamed to...
5939         (ULS, ULE): This.
5940         (DROPCAP): Renamed to...
5941         (DC): This.
5942         (TS, TE, EQ, EN): Provide default definitions.
5943         (www-make-unique-name): Updated.
5944         (HTML-IMAGE-INLINE): Fix typo.
5945         * tmac/groff_www.man: Updated.
5947         * doc/Makefile (homepage.html): Add option -r to grohtml.
5948         Use shortened image name.
5949         * doc/groff.texinfo: Updated info on grohtml strings and macros.
5950         * doc/homepage.ms: Updated and extended.
5952 2002-02-14  Werner LEMBERG  <wl@gnu.org>
5954         Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
5956         * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
5957         SGR_BACK_DEFAULT_COLOR): Replaced with ...
5958         (tty_printer::put_color): Use it.
5959         (ttr_printer::end_page): Simplify.
5961 2002-02-13  Werner LEMBERG  <wl@gnu.org>
5963         * tmac/groff_tmac.man: Moved to...
5964         * man/groff_tmac.man: This place.
5965         * tmac/Makefile.sub, man/Makefile.sub: Updated.
5967 2002-02-12  Werner LEMBERG  <wl@gnu.org>
5969         * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
5970         $(COMPILE.c) to not include groff's assert.h.
5972         * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
5973         variable.
5974         * NEWS, src/drivers/grotty/grotty.man: Document it.
5976 2002-02-11  Werner LEMBERG  <wl@gnu.org>
5978         * src/libs/snprintf/snprintf.c: Updated to latest version
5979         (2002-02-11).
5981         * src/roff/grog/grog.pl (process): Fix handling of `.['.  We now
5982         test whether there is `.]' also.
5983         Don't check for spaces after `.['.
5984         * src/roff/grog/grog.sh: Do the same.
5986 2002-02-10  Werner LEMBERG  <wl@gnu.org>
5988         Illegal -> Invalid.
5990         * src/libs/libgroff/illegal.cc: Renamed to ...
5991         * src/libs/libgroff/invalid.cc: This.
5992         (illegal_char_table): Renamed to ...
5993         (invalid_char_table): This.
5994         * src/libs/libgroff/Makefile.sub: Updated.
5995         * win32-diffs: Updated.
5997         * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
5998         src/libs/libdriver/input.cc (fatal_command, parse_color_command,
5999         parse_x_command), src/libs/libgroff/font.cc (text_file::next,
6000         font::load), src/preproc/eqn/main.cc (read_line, main),
6001         src/preproc/eqn/lex.cc (file_input::read_line),
6002         src/preproc/pic/lex.cc (file_input::read_line,
6003         simple_file_input::get, simple_file_input::peek),
6004         src/preproc/pic/main.cc (top_input::get, top_input::peek),
6005         src/preproc/pic/pic.man, src/preproc/refer/main.cc
6006         (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
6007         do_bib), src/preproc/tbl/main.cc (table_input::get),
6008         src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
6009         src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
6010         do_zero_width, read_request, encode_char, ps_get_line,
6011         transparent_file, get_char_for_escape_name, transparent_translate,
6012         asciify, input_char_description, read_string, set_string),
6013         src/roff/troff/env.cc (environment::add_html_tag),
6014         src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
6016         * src/include/lib.h: Updated.
6018         * src/preproc/eqn/eqn.cc: Removed.
6020         * NEWS: Updated.
6022         * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
6024 2002-02-09  Werner LEMBERG  <wl@gnu.org>
6026         * doc/gnu.xpm: New image.
6027         * doc/Makefile (DOCS): Add homepage.ps.
6028         Add rules for converting xpm->png and xpm->eps.
6029         Use `gnu.{xpm,eps}' as image names.
6030         * doc/homepage.ms: Updated.
6032 2002-02-09  Gaius Mulley  <gaius@glam.ac.uk>
6034         * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
6035         (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
6036         Remove calls to `B1' and `B2'
6037         (PNG-IMAGE): New macro for inclusion of images in PNG format.
6038         (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
6039         auxiliary variables for MARGIN-PNG-IMAGE.
6040         (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
6041         auxiliary macros for MARGIN-PNG-IMAGE.
6042         (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
6043         the margin.
6044         (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
6045         (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
6046         (DROPCAP): New macro to produce dropcap characters.
6047         (www-do-image): Renamed back to...
6048         (HTML-DO-IMAGE): This.
6049         Updated all callers.
6051         * doc/Makefile (gnubw.eps): Updated.
6052         * doc/homepage.ms: Updated.
6054 2002-02-08  Werner LEMBERG  <wl@gnu.org>
6056         * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
6057         Added `linethick' to table in section `Style Variables'.
6059 2002-02-08  Gaius Mulley  <gaius@glam.ac.uk>
6061         * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
6063 2002-02-07  Werner LEMBERG  <wl@gnu.org>
6065         Adding options -C (compatibility mode) and -c (grotty's old output
6066         scheme) to nroff.
6068         * src/roff/nroff/nroff.sh: Implement it.
6069         Remove `-Wall'.
6070         * NEWS, src/roff/nroff/nroff.man: Updated.
6072         * PROBLEMS: Document bison 1.32 bug.
6074         Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
6076         * src/roff/troff/node.cc (make_tfont): Define it earlier.
6077         * src/roff/troff/div.h: Add prototype for `end_diversions'.
6078         * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
6079         * src/roff/troff/env.h: Add prototype for `title'.
6081         Adding EBCDIC support to grotty.
6083         * src/devices/grotty/tty.cc (CSI): New macro.
6084         (SGR_*, tty_printer::put_color): Use it.
6086 2002-02-06  Werner LEMBERG  <wl@gnu.org>
6088         Implementing color support in grotty.  The new switch -c activates
6089         the old drawing scheme, disabling color at the same time.  The new
6090         switch `-i' selects italic instead of underlining (SGR only).
6092         * src/devices/grotty/tty.cc (putstring): New define instead of
6093         `fputs'.  Updated all callers.
6094         (old_drawing_scheme): New global variable.
6095         (COLOR_CHANGE): New enum value.
6096         (SGR_*): New defines containing color handling escape sequences.
6097         (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
6098         (glyph): New members `back_color_idx' and `fore_color_idx'.
6099         (glyph::order): Add COLOR_CHANGE.
6100         (tty_printer): New members `cur_fore_idx', `curr_back_idx',
6101         `is_underline', `is_bold', `cu_flag', `tty_colors'.
6102         New methods `make_underline', `make_bold', `color_to_idx',
6103         `change_color', `put_color'.
6104         (cu_flag): Moved into `tty_printer' class.
6105         (tty_printer::tty_printer): Initialize colors.
6106         (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
6107         tty_printer::draw, tty_printer::end_page): Handle colors also.
6108         (main): Add options `-c' and `-i'.
6109         (usage): Updated.
6110         * NEWS, src/devices/grotty/grotty.man: Updated.
6112         * src/include/errarg.h (errarg): Add support for `unsigned int'.
6113         * src/libs/libgroff/errarg.c: Implement it.
6115         * src/include/printer.h (printer): Add `change_color' method
6116         (currently used by grotty only).
6117         * src/libs/libdriver/printer.cc: Implement it.
6118         * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
6119         call to `pr->change_color'.
6121         * src/roff/troff/node.cc (troff_output_file::fill_color,
6122         troff_output_file::glyph_color): Call `do_motion'.
6124         * tmac/tty.tmac: Add color definitions.
6126         * src/roff/groff/groff.man: Minor fixes.
6128 2002-02-05  Bernd Warken  <bwarken@mayn.de>
6130         * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
6131         it.  This is a preparation for future changes.
6133 2002-02-05  Werner LEMBERG  <wl@gnu.org>
6135         * src/roff/troff/input.cc (process_input_stack): Fix the case
6136         where leading spaces are followed by \f or \s; previously, an
6137         incorrect space width has been used.
6139         * doc/roff.man (quoted_char): Fix argument.
6140         (comment): Define string.
6142 2002-02-04  Larry Kollar  <kollar@alltel.net>
6144         * doc/groff.texinfo: More fixes.
6146 2002-02-04  Werner LEMBERG  <wl@gnu.org>
6148         * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
6149         * src/preproc/eqn/main.cc (do_file, inline_equation): Call
6150         `restore_compatibility' before `output_string' -- the LINE_STRING
6151         register now already contains proper switches from and to
6152         compatibility mode.
6154         * man/groff_char.man: Add Euro symbol.
6155         * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
6156         * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
6157         * doc/groff.texinfo (Defstr*): Print strings with full syntax.
6158         Other minor fixes.
6160         * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
6161         texinfo->pdf.
6162         (.texinfo.html): Add support for texinfo->html.
6164 2002-02-03  Werner LEMBERG  <wl@gnu.org>
6166         Added three new requests `ds1', `as1', and `ami'.  The former two
6167         are equivalent to `ds' and `as' with the difference that
6168         compatibility mode is saved on entry, switched off during string
6169         expansion, and restored on exit.  The latter is the pendant to `dei'
6170         for `am'.
6172         (do_define_string): Use `define_mode' and `calling mode'.
6173         Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
6174         end of string, respectively.
6175         (define_string, append_string): Use `calling_mode'.
6176         (define_nocomp_string, append_nocomp_string,
6177         define_string_indirect): New functions.
6178         (init_input_requests): Updated.
6179         * NEWS, man/groff_diff.man, man/groff.man: Document it.
6181         * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
6182         `as1' for assigning LINE_STRING (this is `10' usually).  Sun's
6183         mm macro package accesses this string register directly.
6184         * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
6186         * tmac/trace.tmac: Trace calls to `am' also.  Make it work in
6187         compatibility mode.
6189 2002-02-02  Larry Kollar  <kollar@alltel.net>
6191         * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
6193 2002-01-31  Werner LEMBERG  <wl@gnu.org>
6195         * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
6197 2002-01-31  Bernd Warken  <bwarken@mayn.de>
6199         * src/devices/grolbp/lbp.cc (main): Delete `pr'.
6200         * man/groff_out.man: Revised and updated.
6202 2002-01-30  Bernd Warken  <bwarken@mayn.de>
6204         * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
6205         out the unused `{' and `}' commands.  Undefined by default.
6206         (IntArray): Make `data' private.
6207         (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
6208         new methods instead.
6209         (skip_line_D, skip_to_end_of_line): New functions.
6210         (get_D_fixed_args): Use `skip_line_D'.
6211         Changed to handle dummy odd arguments by ...
6212         (get_D_fixed_args_odd_dummy): This new function.
6213         (get_D_variable_args): Split some code into ...
6214         (get_possibly_integer_args): This new function.
6215         (send_draw): Use more `const'.
6216         (delete_current_env): New function.
6217         (position_to_end_of_args): Use `size_t'.
6218         Updated.
6219         (send_draw): Updated.
6220         (parse_D_command): Handle `c', `C', and `t' better.
6221         Updated.
6222         (do_file): Updated.
6224 2002-01-29  Werner LEMBERG  <wl@gnu.org>
6226         * NEWS: Revised.
6227         * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
6228         @Def...ListEnd which replaces @Def...x.  This is necessary to get
6229         proper HTML output -- see the comment in the file for more
6230         information.
6231         Updated all calls.
6233 2002-01-29  Gaius Mulley  <gaius@glam.ac.uk>
6235         Fixes to make color changes of 2002-01-21 work with grohtml.
6237         * src/devices/grohtml/post-html.cc (style): Updated.
6238         (html_printer): Remove unused methods.
6239         (html_printer::do_font, html_printer::draw, html_printer::set_char,
6240         html_printer::special): Updated.
6241         * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
6242         html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
6243         Added some debugging code.
6244         (html_text::start_tag): Updated.
6245         (html_text::do_push): New method.
6246         (html_text::push_para): Call it.
6247         Add method for handling color.
6248         (html_text::do_color): Updated.
6249         (html_text::shutdown): Handle color.
6250         * src/devices/grohtml/html-text.h (tag_definition): New member
6251         `col'.
6252         Updated.
6254 2002-01-28  Werner LEMBERG  <wl@gnu.org>
6256         * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
6258 2002-01-27  Gaius Mulley  <gaius@glam.ac.uk>
6260         Add two switches -a and -g to control the antialiasing bits for
6261         text and graphics, respectively.
6263         * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
6264         `-g'.
6265         * src/devices/grohtml/grohtml.man: Document them.
6266         * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
6267         New macros.
6268         (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
6269         (setupAntiAlias): New function.
6270         (createAllPages): Updated.
6271         (scanArguments): Handle `-a' and `-g'.
6272         (main): Call `setupAntiAlias'.
6273         * NEWS: Updated.
6275 2002-01-27  Werner LEMBERG  <wl@gnu.org>
6277         * doc/groff.texinfo (Def*): Call index function after deffn.
6279         * tmac/html.tmac: Call `nroff' request.
6281 2002-01-26  Larry Kollar  <kollar@alltel.net>
6283         * tmac/groff_ms.man: Add some omissions.
6285 2002-01-25  Larry Kollar  <kollar@alltel.net>
6287         * tmac/groff_ms.man: Typographical improvements.
6289 2002-01-25  Werner LEMBERG  <wl@gnu.org>
6291         * doc/groff.texinfo: Updated version and copyright.
6292         * src/devices/grops/grops.man: Updated.
6294         * tmac/groff_tmac.man: Fix `ig' macro.
6296         * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
6297         nroff mode.
6298         Use `.ne' unconditionally everywhere.
6299         (TS): Only insert some vertical space.  Doing a page break is no
6300         longer necessary due to the redefinition of the `ne' request.
6302         * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
6303         warning for unknown subcommands but parse and pass them to the
6304         device driver.
6306 2002-01-24  Werner LEMBERG  <wl@gnu.org>
6308         * tmac/groff_www.man, NEWS: Fix typos.
6310 2002-01-21  Werner LEMBERG  <wl@gnu.org>
6312         Complete revision of color support:
6314           Adapt programs to the new libdriver/input.cc.
6316           Color spaces are no longer converted to RGB but transferred as-is
6317           in the troff intermediate output format.
6319           Handle default color gracefully.  troff now supports a `default'
6320           color (which can't be changed).
6322           grops will now use the proper color space functions if available.
6324           Update pic.
6326         Note that currently grohtml doesn't handle colors properly.  This
6327         has to be fixed.
6329         * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
6330         (ui_to_a): New function.
6331         * src/include/lib.h: Updated.
6333         * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
6334         (color): Simplified; removed all `double' members and methods.
6335         A new array `components' now holds the color parameters.
6336         (color::is_default, color::get_components): New methods.
6337         (color::operator==, color:operator!=): New.
6338         (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
6339         to make access to the `components' array more comprehensible.
6340         * src/libs/libgroff/color.cc: Implement new color support.
6341         (atoh): Small fixes.
6342         (color::read_encoding): Simplified for new troff intermediate color
6343         output format.
6344         (default_color): New global variable.
6346         * src/roff/troff/input.cc (default_symbol): New global variable.
6347         (lookup_color): Use it.
6348         (default_black): Removed.
6349         (do_glyph_color, do_fill_color): Simplified.
6350         (define_color): Handle default color.
6351         Improve warnings.
6352         (do_if_request): Handle default color.
6353         * src/roff/troff/env.cc (environment::environment): Initialize
6354         colors with `default_color'.
6355         * src/roff/troff/node.cc (troff_output_file::put): Add method
6356         for `unsigned int'.
6357         (troff_output_file::hex): Removed.
6358         (troff_output_file::fill_color, troff_output_file::glyph_color):
6359         Updated to include/color.h and libdriver/input.cc.
6361         * src/preproc/pic/object.cc (draw_arrow): New parameter to set
6362         fill color properly (identically to the outline color).  \D'f...'
6363         doesn't work any more.
6364         All function calls to it updated.
6366         * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
6367         Updated.
6368         * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
6369         Updated.
6371         * src/devices/grops/ps.cc (ps_output::put_color): New method.
6372         (ps_printer::sbuf_color): Make a real member instead of pointer.
6373         (ps_printer::fill_color, ps_printer::output_color): Removed.
6374         (ps_printer::ps_printer): Updated.
6375         (ps_printer::set_char): Ditto.
6376         (ps_printer::set_color): Use various color schemes.
6377         Use `put_color' method.
6378         (ps_printer::flush_sbuf): Don't set color.
6379         (ps_printer::fill_path): Take `environment' as parameter.
6380         Simplify color handling.
6381         (ps_printer::set_line_thickness): Renamed to ...
6382         (ps_printer::set_line_thickness_and_color): This (and updated).
6383         (ps_printer::set_color): Change second parameter from `complete'
6384         to `fill' which better describes what it does.
6385         (ps_printer::draw): Call `flush_sbuf' to output graphic commands
6386         and text in the right order.
6387         Updated.
6388         Remove branches for `f' and `F'; this is handled by
6389         libdriver/input.cc.
6390         * src/devices/grops/ps.h: Updated.
6391         * font/devps/prologue (FL): Redefined.
6392         ({F,C}r,k,g: New color functions (with and without filling).
6394         * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
6395         * man/groff_diff.man, man/groff.man, man/groff_out.man,
6396         doc/groff.texinfo, NEWS: Updated.
6398 2002-01-20  Bernd Warken  <bwarken@mayn.de>
6400         * src/libs/libdriver/input.cc: Completely rewritten.  See comments
6401         in this file for what has been changed.
6403 2002-01-19  Werner LEMBERG  <wl@gnu.org>
6405         * test-groff: Fix GROFF_FONT_PATH.
6406         * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
6407         is read before .TH or .Dd is parsed.
6409 2002-01-18  Gaius Mulley  <gaius@glam.ac.uk>
6411         * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
6412         quadrant boundaries.
6414 2002-01-18  Werner LEMBERG  <wl@gnu.org>
6416         * devices/grops/ps.cc: Aargh!  Fix the fix of the incorrectly
6417         applied last patch.
6419 2002-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
6421         * tmac/doc.common: Initialize %I register for the %I macro to
6422         avoid (harmless) warning.
6423         * tmac/doc.tmac (Bd): There is no reason to enforce -compact
6424         when in the SYNOPSIS section.
6426 2002-01-17  Bruno Haible  <haible@clisp.cons.org>
6428         * src/preproc/pic/lex.cc (get_token): Fix typo.
6430 2002-01-17  Werner LEMBERG  <wl@gnu.org>
6432         * devices/grops/ps.cc: Fix incorrectly applied last patch.
6434 2002-01-17  Larry Kollar  <kollar@alltel.net>
6436         * tmac/groff_ms.man: Completely rewritten.
6438 2002-01-16  Werner LEMBERG  <wl@gnu.org>
6440         * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
6442 2002-01-15  Gaius Mulley  <gaius@glam.ac.uk>
6444         * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
6445         fill colors.
6446         (ps_printer::draw): Ditto.
6448 2002-01-14  Ruslan Ermilov  <ru@FreeBSD.org>
6450         * tmac/groff_mdoc.man: Minor fixes.
6452 2002-01-13  Werner LEMBERG  <wl@gnu.org>
6454         * man/groff_out.man: Some fixes.
6456 2002-01-13  Gaius Mulley  <gaius@glam.ac.uk>
6458         * doc/pic.ms: Fix typos.
6460 2002-01-12  Werner LEMBERG  <wl@gnu.org>
6462         * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
6464 2002-01-10  Werner LEMBERG  <wl@gnu.org>
6466         * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
6467         symbols.
6468         * NEWS: Updated.
6470 2002-01-09  Bernd Warken  <bwarken@mayn.de>
6472         * man/groff_out.man: Revised.
6473         * man/roff.man: Minor fixes.
6474         * src/roff/troff/troff.man: Some reordering.
6476 2002-01-09  Werner LEMBERG  <wl@gnu.org>
6478         * tmac/an-old.tmac: Add dummy macros for equation support.
6480 2002-01-07  Werner LEMBERG  <wl@gnu.org>
6482         doc/groff.texinfo: Fix documentation of glyph searching algorithm.
6484         * tmac/an-old.tmac: Revert change 2001-12-23.  This breaks too many
6485         man pages.
6486         * tmac/groff_man.man: Small improvements.
6488 2002-01-07  Bernd Warken  <bwarken@mayn.de>
6490         * man/groff_diff.man: Revised.
6492 2002-01-06  Werner LEMBERG  <wl@gnu.org>
6494         * tmac/www.tmac: Remove extraneous backslash.
6496 2002-01-06  Bernd Warken  <bwarken@mayn.de>
6498         * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
6500 2002-01-05  Werner LEMBERG  <wl@gnu.org>
6502         Integrated groffer, contributed by Bernd Warken.
6504         * contrib/groffer/*: New.       
6505         * Makefile.in, NEWS: Updated.
6507 2002-01-04  Werner LEMBERG  <wl@gnu.org>
6509         * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
6510         registers defined in macro packages.
6511         Revising the ms part.
6513 2002-01-04  Larry Kollar  <kollar@alltel.net>
6515         * doc/groff.texinfo: Add documentation for ms macros.
6517 2002-01-02  Werner LEMBERG  <wl@gnu.org>
6519         First step in adding PS support for the Euro symbol.  `eu' is the
6520         official Euro logo, `Eu' is a font-specific glyph variant.
6522         * font/devps/text.enc: Add `Euro' at position 9.
6523         * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
6524         * font/devps/symbolmap: Regenerated.
6526         * NEWS: Updated.
6528 2002-01-02  Bernd Warken  <bwarken@mayn.de>
6530         * man/roff.man: Revised.
6532 2002-01-01  Bernd Warken  <bwarken@mayn.de>
6534         * src/roff/groff/groff.man: Completely rewritten.
6536 2001-12-31  Werner LEMBERG  <wl@gnu.org>
6538         * doc/Makefile: Updated.
6540 2001-12-30  Werner LEMBERG  <wl@gnu.org>
6542         * tmac/www.tmac: Make all names of internal macros/registers/strings
6543         lowercase, and prepend `www-'.
6544         Other minor changes.
6545         * src/roff/troff/troff.man: Add preprocessor string at BOF.
6547 2001-12-30  Gaius Mulley  <gaius@glam.ac.uk>
6549         Implement option `-b' in grohtml to set the HTML background colour.
6551         * src/devices/grohtml/post-html.cc (default_background): New global
6552         variable.
6553         (html_printer::html_printer): Initialize `background' to
6554         `default_background'.
6555         (main): Implement option `-b'.
6556         (usage): Updated.
6557         * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
6558         of `-b' option.
6559         * src/devices/grohtml/grohtml.man: Updated.
6560         * doc/Makefile (.ms.html): Use `-b'.
6561         * tmac/html.tmac: Don't set background color.
6563         Add new grohtml tag `.html-tl'.
6565         * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
6566         member variable.
6567         (title_desc::title_desc): Updated.
6568         (html_printer::troff_tag): Handle `.html-tl'.
6569         (html_printer::write_title): Use `with_h1'.
6570         * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
6571         (HTML-TL): New macro.
6573         Add support for unordered lists in HTML.
6575         * tmac/www.tmac (www-level): New auxiliary register.
6576         (www-level1, www-level2, www-level3): New auxiliary strings.
6577         (www-push-level, www-pop-level): New auxiliary macros
6578         (UL-BEGIN, UL-END, LI): User macros for unordered lists.
6580         Miscellaneous.
6582         * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
6583         (DEFAULT_VERTICAL_OFFSET): Removed.
6584         (IMAGE_BOARDER_PIXELS): Set to 0.
6585         (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
6586         (vertical_offset): Initialize with 0.
6587         (gsPaper): New global variable.
6588         (get_resolution): Scan for and return unsigned int.
6589         (get_papersize): New function to get paper length from devps/DESC.
6590         (determine_vertical_offset): New function.
6591         (createAllPages): Produce gray-level images and use proper page
6592         length.
6593         (createImage): Use `-quiet' option of pnmcrop.
6594         (addZ): Fix passing of `-Z'.
6595         (scanArguments): Fix handling of `-o'.
6596         (main): Call `determine_vertical_offset'.
6597         * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
6598         code for `l'.
6600         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
6601         * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
6602         glyph descenders properly.
6604         * doc/homepage.ms: Include `gnubw.eps'.
6605         * doc/Makefile (gnubw.eps): New rule.
6606         (homepage.html): Depend on `gnubw.eps'.
6608 2001-12-25  Werner LEMBERG  <wl@gnu.org>
6610         * src/roff/troff/input.cc (default_black): Fix return value.
6612 2001-12-24  Ruslan Ermilov  <ru@FreeBSD.org>
6614         * tmac/doc-common (Dt): Change output of architecture strings.
6615         Do some syntax cleanup.
6616         * tmac/groff_mdoc.man: Updated.
6618 2001-12-23  Werner LEMBERG  <wl@gnu.org>
6620         Adding an `itc' request (input line trap accepting \c).
6622         * src/roff/troff/env.h (environment): New member
6623         `continued_input_trap'.
6624         Make `do_input_trap' a friend function instead of `input_trap'.
6625         * src/roff/troff/env.cc (environment::environment,
6626         environment::copy): Updated.
6627         (environment::newline): Implement it.
6628         (do_input_trap): New function.
6629         (input_trap): Call `do_input_trap'.
6630         (input_trap_continued): New function.
6631         (init_env_requests): Updated.
6632         * src/roff/troff/TODO: Updated.
6634         * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
6635         `.it'.
6637         * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
6639 2001-12-22  Ruslan Ermilov  <ru@FreeBSD.org>
6641         * tmac/doc-common, tmac/doc-syms: Small updates.
6643 2001-12-22  Colin Watson  <cjwatson@debian.org>
6645         * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
6647 2001-12-22  Bernd Warken  <bwarken@mayn.de>
6649         * MANIFEST: New file.
6651 2001-12-22  Werner LEMBERG  <wl@gnu.org>
6653         * src/preproc/grn/grn.man: Updated.
6655 2001-12-22  Solar Designer  <solar@openwall.com>
6657         * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
6658         (DBRead): Use it.
6660 2001-12-19  Werner LEMBERG  <wl@gnu.org>
6662         Implement a fallback character request `.fchar'.
6664         * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
6665         (is_fallback): New inline function.
6666         * src/roff/troff/input.cc (do_define_character): New function.
6667         (define_character): Call `do_define_character'.
6668         (define_fallback_character): New function.
6669         (init_input_requests): Add `fchar'.
6670         (charinfo::charinfo): Updated.
6671         (charinfo::set_macro): New argument to set `fallback' flag.
6672         * src/roff/troff/node.cc (make_glyph_node, make_node,
6673         node::add_char): Check `fallback' flag.
6674         * NEWS, man/groff_diff.man, man/groff_man: Updated.
6676 2001-12-16  Werner LEMBERG  <wl@gnu.org>
6678         * groff.texinfo: Document exact search algorithm for glyphs.
6680 2001-12-15  Werner LEMBERG  <wl@gnu.org>
6682         * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
6683         the left side of $(MANPAGES) rule to make it always non-empty.
6685 2001-12-14  Werner LEMBERG  <wl@gnu.org>
6687         * src/roff/troff/input.cc (default_black): Define default color
6688         `black' if not yet defined.
6690 2001-12-13  Werner LEMBERG  <wl@gnu.org>
6692         Implement new string-valued register `.fn' to return the current
6693         real (internal) font name.
6695         * env.cc (environment::get_font_name_string): New function.
6696         (init_env_requests): Add `.fn' register.
6697         * env.h (environment): Updated.
6698         * node.cc (font_info): Make `get_font_name' a friend.
6699         (get_font_name): New function.
6700         * node.h: Updated.
6702         * man/groff_diff.man, man/groff.man, NEWS: Updated.
6704 2001-12-12  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
6706         * src/preproc/eqn/main.cc (inline_equation): Fix typos.
6708 2001-12-12  Werner LEMBERG  <wl@gnu.org>
6710         * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
6712 2001-12-10  Gaius Mulley  <gaius@glam.ac.uk>
6714         * man/groff_diff.man: Adding documentation for \O.
6716 2001-12-10  Werner LEMBERG  <wl@gnu.org>
6718         * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
6719         (scanArguments): Use PROG_PREFIX for the name of the troff binary.
6721 2001-12-09  Werner LEMBERG  <wl@gnu.org>
6723         * man/roff.man: Revised.
6724         * src/roff/groff/groff.man: Replace man page references with a
6725         pointer to roff.man.
6727 2001-12-09  Bernd Warken  <bwarken@mayn.de>
6729         * man/roff.man: Completely rewritten.
6731 2001-12-06  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
6733         * src/preproc/eqn/main.cc (inline_equation): Improve error message.
6735 2001-12-05  Werner LEMBERG  <wl@gnu.org>
6737         * src/roff/troff/input.cc (get_delim_file_name): Removed since no
6738         longer used.
6739         * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
6740         order of initializers.
6741         * NEWS: Updated.
6743 2001-12-05  Gaius Mulley  <gaius@glam.ac.uk>
6745         * doc/groff.texinfo: Fix documentation of \O.
6747         * src/devices/grohtml/html-text.cc (html_text::do_indent,
6748         html_text::do_table, html_text::do_emittext, html_text::do_para):
6749         Use `const' for first argument.
6750         (html_text::do_table): Use cast.
6751         * src/devices/grohtml/html-text.h: Updated.
6752         * src/devices/grohtml/output.cc (simple_output::put_string): Add
6753         method for `const string &s'.
6754         * src/devices/grohtml/html.h: Updated.
6755         * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
6756         (ANCHOR_TEMPLATE): Modified.
6757         (manufacture_headings): New global variable to handle `-h' option.
6758         (is_subsection): Removed.
6759         (char_buffer::add_string): Add `const' to first argument.
6760         Protect against invalid string argument.
6761         Add method for `const string &s'.
6762         (text_glob): Completely redesigned.
6763         (page): Use `const' for strings and remove string length variable.
6764         (page::add_html): Removed.
6765         (page::add_end_encode): New member function.
6766         (to_unicode): Moved upwards.
6767         (title_desc, header_desc): Updated.
6768         (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
6769         definition.
6770         (html_printer::is_bold, html_printer::make_bold): New member
6771         functions.
6772         (html_printer::end_of_line): Updated.
6773         (generate_img_src, html_printer::do_auto_image,
6774         html_printer::do_title, html_printer::write_header,
6775         html_printer::determine_header_level, html_printer::do_heading,
6776         html_printer::do_linelength, html_printer::do_pageoffset,
6777         html_printer::do_indentation, html_printer::do_tempindent,
6778         html_printer::do_indentedparagraph, html_printer::do_break,
6779         html_printer::flush_sbuf, get_html_translation,
6780         html_printer::begin_page, html_printer::special): Rewritten to get
6781         rid of static string length limit.
6782         (html_printer::troff_tag): Added `.no-auto-rule'.
6783         (html_printer::flush_globs): Small fix.
6784         (html_printer::determine_space): Don't compute `space_width'.
6785         (html_printer::translate_to_html): Renamed to ...
6786         (html_printer::emit_html): This (with updates).
6787         (html_printer::write_header): Implement `-h' option.
6788         (html_printer::draw): Remove commented-out code.  Handle `F'
6789         command.
6790         (html_printer::add_char_to_sbuf): Removed.
6791         (html_printer::add_to_sbuf): Rewritten.
6792         (html_printer::sbuf_continuation): Fixed.
6793         (html_printer::seen_backwards_escape, reverse,
6794         html_printer::remove_last_char_from_sbuf): Removed.
6795         (char_translate_to_html, str_translate_to_html): Removed.
6796         (html_printer::overstrike): New function member.
6797         (html_printer::set_char): Use it.
6798         (html_printer::do_body): New function member.
6799         (html_printer::~html_printer): Use it.
6800         (main): Handle `-h' option.
6801         (usage): Updated.
6802         * src/devices/grohtml/grohtml.man: Document -h switch.
6804         * src/preproc/html/pre-html.cc: Include searchpath.h
6805         Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
6806         (get_resolution): New function.
6807         (checkImageDir): Use `0777' permissions in mkdir()
6808         (write_start_image): Rewritten to use `\O[5...]'.
6809         (createImage, generateImages): Updated.
6810         (main): Handle `F' and `h' options.
6811         Use `get_resolution'.
6813         * src/roff/troff/input.cc (begin, end, image): Removed.
6814         (do_suppress): Take parameter.
6815         Handle modified syntax of `\O'.
6816         (token::next): Updated.
6817         (init_markup_requests): Removed.
6818         (main): Updated.
6820         * src/roff/troff/div.h: Add declaration for begin_page().
6822         * tmac/color-html.tmac: Removed.  Contents moved to...
6823         * tmac/html.tmac: Here.  Set background color.
6824         * tmac/color.tmac: Removed.  Contents moved to...
6825         * tmac/ps.tmac: Here.
6826         * tmac/www.tmac: Remove the title command when generating images
6827         for html.
6828         (NO_AUTO_RULE): New macro.
6829         (HTML_DO_IMAGE): Use revised `\O' escapes.
6830         * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
6832 2001-12-02  Werner LEMBERG  <wl@gnu.org>
6834         * tmac/groff_mdoc.man: Fix typo.
6836 2001-12-01  Colin Watson  <cjwatson@debian.org>
6838         * man/roff.man: Fix typo.
6840 2001-11-29  Werner LEMBERG  <wl@gnu.org>
6842         * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
6843         stdlib.h.
6845         * src/roff/troff/input.cc (read_draw_node): Emit error message if
6846         more than one argument to \D'f ...'.
6848         * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
6850 2001-11-28  Werner LEMBERG  <wl@gnu.org>
6852         * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
6853         loaded only once.
6855         * tmac/groff_man.man: Minor cosmetic fix.
6857 2001-11-27  Werner LEMBERG  <wl@gnu.org>
6859         * src/roff/groff/groff.man, tmac/groff_tmac.man,
6860         tmac/groff_www.man: s/mwww/www/.
6862 2001-11-26  Werner LEMBERG  <wl@gnu.org>
6864         * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
6865         * configure: Regenerated.
6866         * win32-diffs: Updated.
6868         * tmac/groff_mwww.tmac: Renamed to ...
6869         * tmac/groff_www.tmac: This.
6870         * tmac/mwww.tmac: Removed.
6871         * NEWS, tmac/Makefile.sub: Updated.
6873 2001-11-21  Werner LEMBERG  <wl@gnu.org>
6875         * doc/groff.texinfo: Improve documentation of the `\v' escape.
6876         Fix explanation of `\D' and `rt'.
6878 2001-11-20  Werner LEMBERG  <wl@gnu.org>
6880         * tmac/an-old.tmac (an-header): Set header length equal to page
6881         width.
6882         * doc/groff.texinfo: Improve documentation of `ne' request.  Other
6883         minor fixes.
6884         * NEWS: Small fix.
6886 2001-11-19  Werner LEMBERG  <wl@gnu.org>
6888         * NEWS, man/Makefile.sub: Updated.
6890 2001-11-19  Bernd Warken  <bwarken@mayn.de>
6892         * man/ditroff.man: New file.
6894 2001-11-17  Werner LEMBERG  <wl@gnu.org>
6896         * man/groff_differences.man: Renamed to ...
6897         * man/groff_diff.man: This.  Updated.
6898         * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
6900         * src/preproc/html/pushbackbuffer.cc: Renamed to ...
6901         * src/preproc/html/pushback.cc: This.  Updated.
6902         * src/preproc/html/pushbackbuffer.h: Renamed to ...
6903         * src/preproc/html/pushback.h: This.
6904         * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
6905         Updated.
6907         * src/libs/libgroff/htmlindicate.cc: Renamed to ...
6908         * src/libs/libgroff/htmlhint.cc: This.
6909         * src/libs/libgroff/Makefile.sub: Updated.
6911         * tmac/an-old.tmac (an-end): Fix page length.
6913 2001-11-16  Werner LEMBERG  <wl@gnu.org>
6915         * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
6916         * man/Makefile.sub: Include groff_differences.man.
6917         * VERSION: Set to 1.18.
6918         * REVISION: Set to 0.
6920 2001-11-16  Bernd Warken  <bwarken@mayn.de>
6922         * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
6923         the second dot (or ending macro name) to end a macro.
6924         * doc/groff.texinfo: Doc fix.
6926 2001-11-16  Ruslan Ermilov  <ru@FreeBSD.org>
6928         * tmac/doc-common (doc-header): Handle very long document titles
6929         better.
6931 2001-11-16  Werner LEMBERG  <wl@gnu.org>
6933         * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
6935 2001-11-15  Werner LEMBERG  <wl@gnu.org>
6937         * src/roff/troff/troff.man: Revised and split into troff.man and...
6938         * man/groff_differences.man: New file.
6939         * NEWS: Updated.
6941 2001-11-13  Werner LEMBERG  <wl@gnu.org>
6943         * tmac/an-old.tmac (TS, TE): New macros for table support.
6945 2001-11-12  Werner LEMBERG  <wl@gnu.org>
6947         * src/include/lib.h: Provide a fix for emx to not include
6948         groff-getopt.h.
6950 2001-10-27  Werner LEMBERG  <wl@gnu.org>
6952         * src/roff/troff/input.cc (substring_macro): Fix computation of
6953         boundary values.
6955 2001-10-20  Werner LEMBERG  <wl@gnu.org>
6957         Undo change from 2001-08-28.
6959         * src/roff/troff/input.cc (have_input): New global variable.
6960         (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
6961         in compatibility mode.
6962         (process_input_stack): Use it.
6964 2001-10-19  Ruslan Ermilov  <ru@FreeBSD.org>
6966         * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
6967         being handled as end-of-sentence characters,
6969 2001-10-10  Gaius Mulley  <gaius@glam.ac.uk>
6971         * src/roff/troff/input.cc (file_iterator): New members
6972         `suppress_newline_flag' and `seen_escape'.
6973         (file_iterator::next_file): Updated.
6974         (file_iterator::fill): Use it.
6975         (string_iterator): New member `suppress_newline_flag'.
6976         (string_iterator::fill): Set it.
6977         (get_color_element): Use MAX_COLOR_VAL.
6978         * src/roff/troff/env.cc (environment): Remove `need_eol'.
6979         (no_fill): Don't set `env->ignore_next_eol'.
6980         (environment::newline): Handle `eol' tag properly.
6981         Emit `eol.ce'.
6982         (environment::add_html_tag): Set `env->ignore_next_eol'.
6983         Don't handle `.ce'.
6984         * src/roff/troff/env.h (environment): Updated.
6986         * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
6987         member function.
6988         (html_printer::outstanding_eol): New member function.
6989         (html_printer::do_title): Use new functions.
6990         (html_printer::troff_tag): Test `id_eol_ce'.
6992 2001-10-10  Werner LEMBERG  <wl@gnu.org>
6994         * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
6995         files work with -C also.
6997 2001-10-05  Werner LEMBERG  <wl@gnu.org>
6999         * doc/pic.ms: Minor fix.
7000         * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
7001         as a valid command line switch.
7002         * src/devices/grohtml/post-html.cc (main): Ditto.
7003         (usage): Updated.
7004         * src/devices/grohtml/grohtml.man: Updated.
7005         * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
7007 2001-10-04  Werner LEMBERG  <wl@gnu.org>
7009         Implementing color support in troff, pic, grops, and grohtml.  These
7010         changes are based on a major patch provided by Gaius Mulley
7011         <gaius@glam.ac.uk>.
7013         New request: `defcolor', supporting rgb, cmy, cmyk, and gray
7014         definitions with both hex values and fractions.
7016         New escapes: \m and \M for drawing and background color,
7017         respectively.  This corresponds to the troff output commands `m'
7018         and `DF'.
7020         groff and troff accept command line switch `-c' to disable color
7021         output (which is automatically disabled in compatibility mode).
7023         New scaling indicator `f' for fractions (1f = 65536u).
7025         New conditional operator `m' to test for defined colors with `if'
7026         and `ie'.
7028         New keywords `color' (or `colour', `colored', `coloured'), `outline'
7029         (or `outlined'), and `shaded' added to pic.
7031         * src/include/color.h: New file.
7032         * src/include/driver.h: Include it.
7033         * src/include/printer.h: Include color.h.
7034         (environment): New members `col' and `fill'.
7035         (printer): Remove `adjust_arc_center' member function.
7036         * src/include/Makefile.sub: Updated.
7038         * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
7039         `env.fill'.
7040         Handle `m' and `DF' troff commands.
7041         * src/libs/libgroff/color.cc: New file.
7042         * src/libs/libgroff/Makefile.sub: Updated.
7044         * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
7045         (stop): Removed.
7046         (createImage): Fix computation of `y2'.
7047         Use `pnmcrop' also.
7048         (buffer::write_file_html): Remove calls to `stop'.
7050         * src/preproc/pic/common.h (common_output): New abstract function
7051         members `set_color', `reset_color', `get_last_filled', and
7052         `get_outline_color'.
7053         * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
7054         (object_spec): Add members `shaded' and `outlined'.
7055         * src/preproc/pic/output.h (output): `command' is now abstract.
7056         New function members `set_color', `reset_color', `get_last_filled',
7057         and `get_outline_color'.
7058         * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
7059         `outline[d]', and `shaded'.
7060         * src/preproc/pic/object.cc (output::command): Removed.
7061         (output::set_location): Moved to output.h.
7062         (graphic_object): Add protected members `outline_color' and
7063         `color_fill'.
7064         Add member functions `set_outline_color', `get_outline_color', and
7065         `set_fill_color'.
7066         (closed_object): Add member function `set_fill_color'.
7067         Add member `color_fill'.
7068         (graphic_object::print_text): Use `out->set_color' and
7069         `out->reset_color'.
7070         (box_object::print, ellipse_object::print, circle_object::print,
7071         line_object::print, spline_object::print, arc_object::print): Ditto.
7072         (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
7073         * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
7074         `SHADED', making them `%left'.
7075         Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
7076         * src/preproc/pic/tex.cc (tex_output): New dummy function members
7077         `set_color', `reset_color', `get_last_filled', and
7078         `get_outline_color'.
7079         * src/preproc/pic/troff.cc (simple_output): New abstract function
7080         members `set_color', `reset_color', and `get_last_filled'.
7081         (simple_output::polygon, simple_output::circle,
7082         simple_output::ellipse): Use `get_last_filled'.
7083         (troff_output): New members `last_filled' and `last_outlined'.
7084         New function members `set_color', `reset_color', `get_last_filled',
7085         and `get_outline_color'.
7086         (troff_output::finish_picture): Use `reset_color'.
7087         (troff_output::set_fill): Test `last_filled'.
7088         * src/preproc/pic/pic.man: Updated.
7090         * src/roff/groff/groff.cc (main): Implement `-c' option.
7091         (synopsis, help): Updated.
7092         src/roff/groff/groff.man: Updated.
7094         * src/roff/troff/troff.h: Include color.h.
7095         (warning_type): Add WARN_COLOR.
7096         * src/roff/troff/env.h (environment): New members
7097         `{cur,prev}_{glyph,fill}_color'.
7098         New member functions `get_{prev_,}{glyph,fill}_color'.
7099         * src/roff/troff/env.cc: Initialize and implement them.
7100         * src/roff/troff/input.cc: New global variable `disable_color_flag'.
7101         Replace `NULL' with `0' everywhere for consistency.
7102         (lookup_color, default_black, do_glyph_color, do_fill_color,
7103         get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
7104         define_color): New functions.
7105         (token::next): Implement \M and \m escapes.
7106         (do_if_request): Implement `m' operator.
7107         (usage): Updated.
7108         (main): Implement `-c' option.
7109         (init_markup_requests): Add `defcolor' request.
7110         (warning_table): Add `color' warning.
7111         * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
7112         classes.
7113         * src/roff/troff/node.cc (troff_output_file): New members
7114         `current_{page,glyph}color'.  New member functions `put_hex',
7115         `glyph_color', and `fill_color'.
7116         (glyph_color_node::*, fill_color_node::*): Implement it.
7117         * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
7118         (parse_term): Add support for `f'.
7119         * src/roff/troff/troff.man: Updated.
7121         * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
7122         entry for `F'.
7123         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
7124         * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
7126         * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
7127         (tag_definition): Use `void *' for arg1.
7128         (html_text): New member functions `do_color' and `done_color'.
7129         Use `void *' for second parameter of `push_para' member function.
7130         New `push_para' member function with a single parameter.
7131         Use `char *' for parameter of `issue_table_begin' member funtion.
7132         New `issue_color_begin' member function.
7133         * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
7134         COLOR_TAG.
7135         (html_text::issue_color_begin): New function.
7136         (html_text::issue_table_begin): Use `char *' for parameter.
7137         (html_text::start_tag, html_text::shutdown,
7138         html_text::check_emit_text): Updated.
7139         (html_text::push_para): Use `void *' for second parameter.
7140         Add same function with only one parameter.
7141         (html_text::do_*): Updated.
7142         (html_text::do_color, html_text::done_color): New functions.
7143         * src/devices/grohtml/post-html.cc (style): New member `col'.
7144         Mew member `style' with 6 parameters.
7145         (style::style, style::operator==): Updated.
7146         (html_printer::do_font): Use it.
7147         (html_printer::draw): Add dummy entry for `F'.
7148         (html_printer::set_char): Updated.
7149         * src/devices/grohtml/grohtml.man: Updated.
7151         * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
7152         trailing zeroes removed.
7153         (ps_printer): New members `sbuf_color', `fill_color', and
7154         `output_color'.
7155         Removed member `fill'.
7156         New member function `set_color'.
7157         (ps_printer::ps_printer, ps_printer::set_char): Updated.
7158         (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
7159         ps_printer::fill_path, ps_printer::draw): Use `set_color'.
7161         * tmac/color-html.tmac, tmac/color.tmac: New files.
7162         * tmac/troffrc: Include them.
7163         * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
7164         * tmac/Makefile.sub: Updated.
7166         * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
7167         man/groff.man: Updated.
7168         * font/devps/prologue.ps: Define FC and CO functions.
7170 2001-10-04  Gaius Mulley  <gaius@glam.ac.uk>
7172         Fix incorrect cropping of images and incorrect handling of special
7173         characters.  Fix handling of file names in \O.
7175         * src/include/geometry.h: New file.
7176         * src/libs/libgroff/geometry.cc: New file.
7177         * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
7178         to `geometry.cc'.
7179         * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
7180         initial spaces.
7181         (do_suppress): Updated.
7182         * src/roff/troff/node.cc: Include geometry.h.
7183         (troff_output_file::flush_tbuf): Fixed parameters to
7184         `check_output_limits'.
7185         (troff_output_file::check_charinfo): Ditto.
7186         (troff_output_file::determine_line_limits): Add support for `Da'
7187         and `Dl' commands.
7189         * src/devices/grohtml/post-html.cc (str_translate_to_html):
7190         Add new parameter `is_special' to decode special characters from
7191         escape sequences.
7192         (html_printer::do_title, html_printer::do_heading,
7193         html_printer::do_indentedparagraph,
7194         html_printer::translate_to_html, html_printer::special): Updated.
7196 2001-10-03  Werner LEMBERG  <wl@gnu.org>
7198         * Makefile.sub (DISTCLEANFILES): Add stamp-h.
7199         Fix entry for config.h.
7200         * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
7201         * tmac/troffrc: Translate nonbreakable space character to `\~'.
7202         * src/preproc/eqn/eqn.man: Document -d command line option.
7204 2001-09-27  Werner LEMBERG  <wl@gnu.org>
7206         * man/groff.man: Use
7208           .ev xxx
7209           .na
7210           .nh
7211           <table>
7212           .ev
7214         instead of the old code (`.ad .hy' after the table) to suppress
7215         incorrect hyphenation for grohtml output.
7217 2001-09-22  Werner LEMBERG  <wl@gnu.org>
7219         * man/groff_font.man, man/groff_out.man: Minor fixes.
7221 2001-09-20  Werner LEMBERG  <wl@gnu.org>
7223         * PROBLEMS: Updated, reordered.  Improved EPS section (thanks to
7224         Arnold Robbins <arnold@skeeve.com>).
7226 2001-09-09  Werner LEMBERG  <wl@gnu.org>
7228         * configure: Regenerated with autoconf 2.52.
7230         * doc/groff.texinfo: Complete revision of indices.
7232 2001-09-07  Werner LEMBERG  <wl@gnu.org>
7234         * doc/Makefile (clean): Updated to delete all indices.
7236 2001-09-05  Werner LEMBERG  <wl@gnu.org>
7238         * src/roff/troff/troff.man: Remove superfluous line.
7240         * tmac/s.tmac: Enable all warnings only if no -W or -w option is
7241         given on the command line (or rather, if only the default warnings
7242         are set).
7244 2001-09-03  Werner LEMBERG  <wl@gnu.org>
7246         * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
7247         use .ne for TTY devices.
7249 2001-08-31  Werner LEMBERG  <wl@gnu.org>
7251         * src/roff/troff/token.h, src/roff/troff/input.cc:
7252         s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
7254 2001-08-28  Werner LEMBERG  <wl@gnu.org>
7256         * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
7257         * src/roff/troff/input.cc (token::next): Return
7258         TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
7259         compatibility mode.
7260         (token::description): Updated.
7261         (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
7262         (token::add_to_node_list, token::process): Ignore
7263         TOKEN_TRANSPARENT_ESCAPE.
7265 2001-08-27  Werner LEMBERG  <wl@gnu.org>
7267         * tmac/an-old.tmac: Fix `S' string.
7269 2001-08-26  Werner LEMBERG  <wl@gnu.org>
7271         * src/roff/troff/troff.man: Don't use .ne for TTY devices.
7273 2001-08-25  Werner LEMBERG  <wl@gnu.org>
7275         * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
7276         backslashes).
7277         Many other minor fixes.
7279         * configure.ac: Add message at end to inform how to compile
7280         xditview.
7281         * configure: Regenerated.
7283 2001-08-24  Werner LEMBERG  <wl@gnu.org>
7285         * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
7286         Updated to latest version of libc.
7288 2001-08-23  Werner LEMBERG  <wl@gnu.org>
7290         * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
7291         Autoconf 2.50 and newer can handle this.
7292         * configure: Regenerated.
7294 2001-08-21  Werner LEMBERG  <wl@gnu.org>
7296         * doc/pic.ms: Fix typo.
7297         * src/preproc/tbl/tbl.man: Document case of global options.
7299 2001-08-21  Gaius Mulley  <gaius@glam.ac.uk>
7301         * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
7302         handling of `CR' font.
7304 2001-08-20  Werner LEMBERG  <wl@gnu.org>
7306         Use a config.h file.
7308         * src/include/lib.h: Include config.h.
7309         * All C files: Ditto (if necessary).
7310         * All C++ source and header files: Include lib.h first (if
7311         necessary).
7313         * src/include/config.hin: New file (autogenerated by autoheader).
7314         * stamp-h.in: New file.
7315         * configure.ac: Updated.
7316         * aclocal.m4: Add third parameters to AC_DEFINE macros.
7317         (GROFF_ARRAY_DELETE): Simplified.
7318         * Makefile.sub (DISTCLEANFILES): Updated.
7319         Added targets for remaking config.status, config.hin, config.h,
7320         stamp-h.in, and stamp-h.
7321         * configure: Regenerated.
7323 2001-08-19  Werner LEMBERG  <wl@gnu.org>
7325         * NEWS: Updated.
7327 2001-08-18  Sebastian Krahmer  <krahmer@suse.de>
7329         * src/preproc/pic/pic.y (format_number): Use do_sprintf().
7330         (do_sprintf): Use snprintf().
7332 2001-08-18  Werner LEMBERG  <wl@gnu.org>
7334         * src/libs/snprintf/*: Added an snprintf module written by Mark
7335         Martinec.
7336         * src/libs/libgroff/Makefile.sub: Updated.
7337         * configure.ac: Add test for snprintf().
7338         * Makefile.in: Updated.
7339         * configure: Regenerated.
7341         * src/preproc/html/pre-html.cc (make_message): Reactivate code which
7342         uses snprintf().
7344 2001-08-14  Ruslan Ermilov  <ru@FreeBSD.org>
7346         * tmac/doc.tmac (Ex): New implementation.
7347         * tmac/doc-common, tmac/groff_tmac.man: Updated.
7349 2001-08-13  Ruslan Ermilov  <ru@FreeBSD.org>
7351         * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
7352         argument.
7353         * tmac/groff_tmac.man: Updated.
7355 2001-08-13  Werner LEMBERG  <wl@gnu.org>
7357         * src/preproc/tbl/tbl.man: Minor documentation update.
7359 2001-08-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7361         * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
7362         * configure.ac: Add declaration test for gettimeofday().
7363         * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
7364         * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
7365         * configure: Regenerated.
7367 2001-08-11  Werner LEMBERG  <wl@gnu.org>
7369         * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
7370         * configure.ac: Add declaration test for strcasecmp().
7371         * Makefile.in: Updated.
7372         * configure: Regenerated.
7373         * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
7374         this is necessary because groff's mkstemp.cc is C++.
7375         Add declaration conditionally for strcasecmp().
7377 2001-08-10  Werner LEMBERG  <wl@gnu.org>
7379         Integrated pic2graph, contributed by Eric S. Raymond.
7381         * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
7382         files.
7383         * Makefile.in, NEWS: Updated.
7385         * src/preproc/tbl/tbl.man: Revised.
7387 2001-08-09  Eric S. Raymond  <esr@thyrsus.com>
7389         * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
7391 2001-08-09  Werner LEMBERG  <wl@gnu.org>
7393         * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
7394         requests.
7396 2001-08-08  Paul Eggert  <eggert@twinsun.com>
7398         * Makefile.sub (configure): Depend on configure.ac, not
7399         configure.in.
7400         * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
7402 2001-08-07  Werner LEMBERG  <wl@gnu.org>
7404         * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
7405         fixes.
7407 2001-08-06  Werner LEMBERG  <wl@gnu.org>
7409         * src/roff/troff/troff.man: Improve documentation of -E option.
7411 2001-07-28  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
7413         * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
7414         Simplified.
7416 2001-07-27  Werner LEMBERG  <wl@gnu.org>
7418         * src/preproc/refer/refer.cc: Undo last change.
7419         * src/devices/grohtml/post-html.cc: Ditto.
7421 2001-07-26  Werner LEMBERG  <wl@gnu.org>
7423         * src/preproc/refer/refer.cc: Include `lib.h'.
7424         * src/devices/grohtml/post-html.cc: Ditto.
7426 2001-07-25  Gaius Mulley  <gaius@glam.ac.uk>
7428         * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
7429         * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
7430         * Makefile.in: Comment updated.
7431         * configure: Regenerated.
7433 2001-07-25  Werner LEMBERG  <wl@gnu.org>
7435         * src/preproc/pic/pic.cc: Removed.
7436         * src/preproc/pic/pic_tab.h: Removed.
7437         * src/preproc/refer/label.cc: Removed.
7439         * doc/Makefile (.ms.html): Don't use a file name extension in
7440         argument to grohtml's -I option.
7441         * Makefile.in (dist): Remove CVS directories.
7442         Call `distfiles' target.
7444         * src/devices/grohtml/grohtml.man: Add information about valid
7445         versions of pnmtopng.
7446         * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
7447         name instead of number.
7449 2001-07-24  Werner LEMBERG  <wl@gnu.org>
7451         * doc/groff.texinfo: Minor fixes.
7453 2001-07-21  Gaius Mulley  <gaius@glam.ac.uk>
7455         * doc/Makefile (.ms.html): Put image files into a subdirectory.
7456         (clean): Updated.
7458 2001-07-20  Werner LEMBERG  <wl@gnu.org>
7460         * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
7461         * src/libs/libgroff/mkstemp.cc: New file.
7462         * src/libs/libgroff/mksdir.cc: New file.
7463         * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
7464         (xtmpfile) [!HAVE_MKSTEMP]: Removed.
7465         * src/libs/libgroff/Makefile.sub: Updated.
7466         * src/include/lib.h: Add mksdir() prototype.
7467         * src/include/posix.h: Define S_IXUSR if not yet defined.
7469         * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
7470         (createAllPages): Use mksdir() instead of current code.
7471         * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
7472         (main): [!HAVE_MKSTEMP]: Removed.
7474         * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
7475         (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
7476         macros.
7477         * configure.ac: Add tests for stdint.h, sys/time.h, and
7478         gettimeofday().
7479         Call new GROFF_xxx macros.
7480         * configure: Regenerated.
7481         * Makefile.in: Comments updated.
7483 2001-07-20  Gaius Mulley  <gaius@glam.ac.uk>
7485         * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
7486         instead of current code.
7487         * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
7488         * src/roff/groff/groff.cc (possible_command::insert_args): New
7489         function.
7490         (main): Use it for predriver handling instead of insert_arg().
7492 2001-07-19  Werner LEMBERG  <wl@gnu.org>
7494         * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
7495         groff also.
7497         * src/include/posix.h: Define S_IWUSR if not yet defined.
7499 2001-07-18  Werner LEMBERG  <wl@gnu.org>
7501         * NEWS: Updated.
7503 2001-07-18  Ruslan Ermilov  <ru@FreeBSD.org>
7505         * tmac/groff_mdoc.man: Document new -width and -column syntax.
7506         Some other minor fixes.
7507         * tmac/an-old.tmac: Add `AT' and `UC' macros.
7509 2001-07-17  Gaius Mulley  <gaius@glam.ac.uk>
7511         Replace call to `troff' with `groff -Z' to make it aware of
7512         GROFF_BIN_PATH.
7514         * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
7515         (troff_command, command_prefix): Removed.
7516         (alterDeviceTo): Use groff.
7517         (addZ): New function.
7518         (char_buffer::do_html): Use it.
7519         (scanArguments): Use TROFF_COMMAND.
7520         (findPrefix): Removed.
7521         (main): Updated.
7522         * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
7524 2001-07-17  Eric S. Raymond  <esr@snark.thyrsus.com>
7526         * doc/pic.ms: Documentation fixes.
7528 2001-07-17  Werner LEMBERG  <wl@gnu.org>
7530         Replace atexit() with global destructor.
7532         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
7533         (xtmpfile_list_init): New global structure to deallocate
7534         xtmpfile_list on exit.  Its destructor inherits most code from
7535         remove_tmp_files().
7536         (remove_tmp_files): Deleted.
7537         (add_tmp_file): Simplified.
7539 2001-07-16  Werner LEMBERG  <wl@gnu.org>
7541         Replace strdup() with strsave().
7543         * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
7544         (set_papersize): Use strsave() and a_delete.
7545         (main): Use strsave().
7546         * src/preproc/html/pre-html.cc (make_message, createAllPages,
7547         removeAllPages): Use strsave() and a_delete.
7549         * configure.ac: Remove test for strdup.
7550         * Makefile.in: Comment updated.
7551         * configure: Regenerated.
7553 2001-07-15  Werner LEMBERG  <wl@gnu.org>
7555         * win32-diffs: Updated.
7557 2001-07-14  Werner LEMBERG  <wl@gnu.org>
7559         * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
7560         removing the old one.
7561         * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
7563 2001-07-14  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
7565         * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
7567 2001-07-12  Ruslan Ermilov  <ru@FreeBSD.org>
7569         Merge -xwidth into -width.  Add -xwidth functionality to -column
7570         also.
7572         * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
7573         avoid warning.
7574         (doc-do-Bl-args): Merge -xwidth code with -width.  Test whether
7575         string immediately following a leading dot starts with a valid mdoc
7576         argument.
7577         Add similar code to the -column branch.
7578         (doc-Bl-usage): Updated.
7579         * groff_mdoc.man: s/-xwidth/-width/.
7581 2001-07-12  Gaius Mulley  <gaius@glam.ac.uk>
7583         * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
7584         running into centered or non-formatted text.
7586 2001-07-11  Werner LEMBERG  <wl@gnu.org>
7588         Introduce short and long prefixes to have the selection at run-time
7589         whether there is a 8+3 limit for names of temporary files.
7591         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
7592         (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
7593         (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
7594         variables.
7595         (temp_init): New global structure to initialize above three
7596         variables.
7597         (xtmptemplate): Use two parameters for long and short prefix.
7598         Simplify code use above three variables.
7599         (xtmpfile): Use long and short prefixes as parameters.
7600         * src/include/lib.h: Updated.
7602         * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
7603         with ...
7604         ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
7605         (createAllPages, makeTempFiles): Updated.
7607 2001-07-09  Werner LEMBERG  <wl@gnu.org>
7609         * REVISION: Increased to 3.
7611 Version 1.17.2 released
7612 =======================
7614 2001-07-07  Werner LEMBERG  <wl@gnu.org>
7616         * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
7617         to size_t.
7619 2001-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
7621         * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
7622         Fix synopsis.
7623         * tmac/groff_mdoc.man: Fix synopsis.
7625 2001-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
7627         * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
7628         Restore `doc-Pa-font'.
7630 2001-07-04  Werner LEMBERG  <wl@gnu.org>
7632         * src/utils/indxbib/dirnamemax.c: Moved to ...
7633         * src/libs/libgroff/maxfilename.cc: Here.
7634         s/dir_name_max/file_name_max/.
7635         Add copyright.
7636         * src/include/lib.h: Add file_name_max.
7637         * src/utils/indxbib/indxbib.cc: Updated.
7638         * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
7639         Updated.
7641         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
7642         as empty.
7643         (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
7645         * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
7646         REGION_TEMPLATE): New macros.
7647         (createAllPages, makeTempFiles): Use them.
7648         Include `nonposix.h'.
7649         (html_system): New function.
7650         (createAllPages, createImage): Use it.
7651         Use EXE_EXT.
7653         * tmac/www.tmac: Fix typos.
7655 2001-07-03  Werner LEMBERG  <wl@gnu.org>
7657         * tmac/www.tmac: Disable hyphenation in normal text only if output
7658         device is html.
7659         (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
7660         * tmac/groff_mwww.man, NEWS: Updated.
7662 2001-07-03  Gaius Mulley  <gaius@glam.ac.uk>
7664         * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
7665         image location.
7667 2001-07-02  Ruslan Ermilov  <ru@FreeBSD.org>
7669         * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
7670         doc-display-ps-stack): Implement font and font size stack for
7671         displays.
7673 2001-07-02  Werner LEMBERG  <wl@gnu.org>
7675         * REVISION: Increased to 2.
7676         * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
7678         * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
7679         beginning of a line.
7680         * src/groff/grog/grog.sh: Ditto.
7682 2001-06-29  Peter Marquardt  <wwwutz@molgen.mpg.de>
7684         * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
7685         make it portable.
7687 2001-06-27  Werner LEMBERG  <wl@gnu.org>
7689         Fix problems with preprocessor string for `man' program.
7691         * *.man: Don't use `s' in preprocessor string --  it doesn't exist.
7692         Updated/added copyright.
7693         Moved Emacs's local variable to identify nroff mode to the end of
7694         the file; add local variable if missing.
7696 2001-06-26  Andras Salamon  <andras@cs.wits.ac.za>
7698         * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
7699         AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
7700         * configure: Regenerated.
7702 2001-06-25  Andras Salamon  <andras@cs.wits.ac.za>
7704         * aclocal.m4 (GROFF_PAGE): Fix page detection code.
7705         * configure: Regenerated.
7707 2001-06-24  Werner LEMBERG  <wl@gnu.org>
7709         * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
7710         but www.tmac.
7711         * doc/pic.ms: Fix typos.
7713 Version 1.17.1 released
7714 =======================
7716 2001-06-21  Golubev I. N.  <gin@mo.msk.ru>
7718         * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
7719         * configure: Updated.
7721 2001-06-20  Gaius Mulley  <gaius@glam.ac.uk>
7723         * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
7724         image names.
7725         * src/roff/troff/dic.cc (blank_line): Add html tag.
7727 2001-06-19  Gaius Mulley  <gaius@glam.ac.uk>
7729         * src/roff/troff/input.cc (do_suppress): Fix typo.
7731 2001-06-18  Gaius Mulley  <gaius@glam.ac.uk>
7733         Added two new options (-D and -I) to specify image names and a
7734         subdirectory to place the images in.
7736         Change syntax from \\Ox to \\O[x].
7738         * src/devices/grohtml/post-html.cc (main): Add options.
7739         (usage): Updated.
7740         * src/preproc/html/pre-html.cc: Include `stdarg.h'.
7741         Use `NULL' instead of `0' for null string pointers.
7742         (MAX_RETRIES): New macro.
7743         (lengthOfintToStr, intToStr, make_message): New functions.
7744         (makeFileName): Make function static.
7745         Implement -D and -I options.
7746         (checkImageDir): New function.
7747         (write_end_image, write_start_image): Use new syntax of \O.
7748         (createAllPages, removeAllPages): Implement -D and -I options.  Use
7749         make_message().
7750         (createImage): Use make_message().
7751         (addps4html): Add guard for malloc().
7752         (usage, scanArguments): Updated.
7753         (makeTempFiles): Use mkstemp().
7754         (removeTempFiles): Use unlink().
7755         (findPrefix): Add guard for malloc().
7756         (main): Updated.
7757         * src/roff/troff/input.cc (get_delim_file_name): New function to
7758         parse \O.
7759         (do_suppress): Updated to parse new syntax.
7760         * src/devices/grohtml/grohtml.man: Updated.
7761         * tmac/www.tmac: Updated to new syntax.
7763         * NEWS: Updated.
7765 2001-06-15  Werner LEMBERG  <wl@gnu.org>
7767         * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
7769         * src/devices/grohtml/grohtml.man: Minor improvements.
7771 2001-06-14  Werner LEMBERG  <wl@gnu.org>
7773         * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
7775 2001-06-11  Werner LEMBERG  <wl@gnu.org>
7777         * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
7778         line to specify preprocessor options -- mandb 2.3.1 only recognizes
7779         the former.
7780         * src/preproc/grn/grn.man: Add proper '\" string.
7782 2001-06-11  OKAZAKI Tetsurou  <okazaki@be.to>
7784         * test-groff: Don't use PATH but GROFF_BIN_PATH.
7786 2001-06-08  Werner LEMBERG  <wl@gnu.org>
7788         Updated to autoconf 2.50.
7790         * configure.in: Renamed to...
7791         * configure.ac: This.
7792         * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
7793         (GROFF_OS390): Updated.
7794         * configure: Regenerated.
7796 2001-05-18  Werner LEMBERG  <wl@gnu.org>
7798         * src/roff/troff/env.c, src/roff/troff/env.h,
7799         src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
7800         from 2000-12-21.
7802 2001-05-17  Jeffrey Friedl  <jfriedl@yahoo-inc.com>
7804         * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
7806 2001-05-16  Werner LEMBERG  <wl@gnu.org>
7808         * src/roff/troff/input.cc (read_size): Emit warning if value becomes
7809         less than or equal zero; set it to 1 then.
7810         * src/roff/troff/node.h (node::node): Initialize `last'.
7812 2001-05-08  Werner LEMBERG  <wl@gnu.org>
7814         * tmac/an-old.tmac: Make predefined strings work in compatibility
7815         mode.
7816         Add troff version guard.
7817         * tmac/doc.tmac: Simplify version guard.
7819 2001-05-07  Werner LEMBERG  <wl@gnu.org>
7821         The .ns and .rs requests are now honoured not only in the top-level
7822         but in all diversions (similar to UNIX troff).
7824         This change is based on a patch from Tadziu Hoffmann
7825         <hoffmann@usm.uni-muenchen.de>.
7827         * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
7828         (top_level_diversion): Remove `no_space_mode' member.
7829         * src/roff/troff/div.cc (diversion::diversion,
7830         top_level_diversion::top_level_diversion): Updated.
7831         (macro_diversion::output): Reset `no_space_mode'.
7832         (no_space, restore_spacing): Use `curdiv' unconditionally.
7833         (space_request, blank_line): Check `curdiv->no_space_mode'.
7834         (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
7835         `curdiv' unconditionally.
7836         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
7837         Updated.
7839 2001-05-06  Werner LEMBERG  <wl@gnu.org>
7841         Added two new requests `de1' and `am1' which are similar to `de' and
7842         `am' with the difference that compatibility mode is saved on entry,
7843         switched off during macro execution, and restored on exit.
7845         * src/roff/troff/input.h: Added two new special characters
7846         (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
7847         * src/roff/troff/input.cc (input_iterator): Added two member
7848         functions `save_compatible_flag' and `get_compatible_flag'.
7849         (input_stack): Ditto.
7850         (string_iterator): Ditto.  Also add private member
7851         `saved_compatible_flag'.
7852         (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
7853         (calling_mode): New enumeration.
7854         (do_define_macro): Use it.  Insert COMPATIBLE_SAVE and
7855         COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
7856         (define_macro, define_indirect_macro, append_macro, ignore): Use
7857         `calling_mode'.
7858         (define_nocomp_macro, append_nocomp_macro): New functions.
7859         (init_input_requests): Updated.
7860         (do_request): Rename local variable `saved_compatible_flag' to
7861         `old_compatible_flag'.
7862         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7864         * tmac/an-old.tmac: Use `de1' instead of `de' request for all
7865         public and trap-invoked macros.  As a consequence, the man macros
7866         work in compatibility mode also.
7868 2001-05-06  Solar Designer  <solar@openwall.com>
7870         * Makefile.in: Use $(mandir).
7872 2001-05-06  Alexios Zavras  <zvr@pobox.com>
7874         * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
7876 2001-05-05  Werner LEMBERG  <wl@gnu.org>
7878         Added `.ns' number register: Returns 1 in no-space mode (if in
7879         top-level diversion), 0 otherwise.
7881         * src/roff/troff/div.cc (no_space_mode_reg): New class.
7882         (init_div_requests): Updated.
7883         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
7884         Document it.
7886 2001-05-04  Werner LEMBERG  <wl@gnu.org>
7888         * src/roff/nroff/nroff.man: Improved documentation (especially
7889         locales).
7891 2001-05-02  Werner LEMBERG  <wl@gnu.org>
7893         Added `brp' request: This is \p as a request.
7895         * src/roff/troff/env.cc (environment::do_break): Add parameter
7896         `spread'.
7897         (do_break_request): New function (was `break_request').
7898         (break_request): Calls `do_break_request'.
7899         (break_spread_request): New; calls `do_break_request'.
7900         (init_env_requests): Updated.
7901         * src/roff/troff/env.h: Updated.
7902         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7904         * REVISION: Increased to 1.
7905         * win32-diffs: Updated.
7907 2001-05-01  Werner LEMBERG  <wl@gnu.org>
7909         * tmac/an-old.tmac: Fix minor compatibility mode issue.
7910         * tmac/troffrc-end: Make it really work in compatibility mode.
7912 2001-04-27  Werner LEMBERG  <wl@gnu.org>
7914         * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
7915         stdlib.h.
7917 2001-04-22  Werner LEMBERG  <wl@gnu.org>
7919         * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
7920         latest versions from glibc CVS archive.
7922         * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
7923         <c.zeelenberg@hccnet.nl>.
7925 2001-04-21  Werner LEMBERG  <wl@gnu.org>
7927         * configure.in: Move check for mkstemp() to...
7928         * aclocal.m4 (GROFF_MKSTEMP): This new function.
7929         * configure: Regenerated.
7931         * src/include/groff-getopt.h: Don't use variable names in
7932         declarations.
7934         * src/devices/grohtml/html-chars.h: Removed.  It isn't used.
7935         * src/devices/grohtml/Makefile.sub,
7936         src/devices/grohtml/post-html.cc: Updated.
7938 2001-04-21  Albert Chin-A-Young  <china@thewrittenword.com>
7940         * configure.in: Add special check for mkstemp().
7941         * src/libs/libgroff/tmpfile.cc: Use it.
7942         * src/utils/indxbib/indxbib.cc: Ditto.
7943         * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
7944         * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
7945         `const'.
7947 2001-04-20  Bruce Lilly  <blilly@erols.com>
7949         `Version_string' as C++ object was not visible to linker from C
7950         object files.
7951         Add `const' to `Version_string'.
7953         * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
7954         (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
7955         (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
7956         (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
7957         (scanArguments), src/preproc/refer/refer.cc (main),
7958         src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
7959         (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
7960         (main), src/devices/grohtml/post-html.cc (main),
7961         src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
7962         (main), src/utils/hpftodit/hpftodit.cc (main),
7963         src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
7964         (main), src/utils/lkbib/lkbib.cc (main),
7965         src/utils/addftinfo/addftinfo.cc (main): Implement it.
7967         * src/roff/groff/pipeline.c: Add _UWIN.
7968         * src/include/nonposix.h: Ditto.
7970 2001-04-20  Werner LEMBERG  <wl@gnu.org>
7972         * src/include/lib.h: Use HAVE_STRERROR.
7973         * src/roff/groff/pipeline.c: Ditto.
7974         * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
7975         * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
7976         * src/utils/pfbtops/pfbtops.c: Add copyright notice.
7977         * win32-diffs: Updated.
7978         * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
7980 2001-04-19  Werner LEMBERG  <wl@gnu.org>
7982         * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
7983         instead of hardwired `"troff"'.
7984         (char_buffer::read_file): Remove unused variables.
7985         (char_buffer::write_file_troff): Ditto.
7986         (char_buffer::write_file_html): Ditto.
7987         (generateImages): Ditto.
7988         (abs): Removed.
7989         * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
7991         * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
7993         * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
7994         * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
7995         index_search_item::search1): Ditto.
7996         * src/roff/troff/node.h (width_list): Reorder members.
7997         * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
7998         (lookup_warning): Ditto.
7999         (prepend_string): Commented out.
8000         * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
8001         * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
8002         * src/preproc/tbl/main.cc (process_format): Ditto.
8003         * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
8004         compiler warnings.
8005         * src/preproc/pic/pic.cc: Updated.
8006         * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
8007         * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
8008         * src/preproc/refer/command.cc (execute_command): Ditto.
8009         * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
8010         * src/preproc/refer/token.cc (lookup_token): Ditto.
8011         * src/preproc/soelim/soelim.cc: Ditto.
8012         * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
8013         (isHexDigit): Commented out.
8014         (pushBackBuffer::isString): Remove unused variable.
8015         * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
8016         warning.
8017         * src/devices/grops/psrm.cc (resource_manager::lookup_font,
8018         resource_manager::read_resource_arg, read_one_of, parse_extensions):
8019         Ditto.
8020         * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
8021         * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
8022         lookup_paper_size): Ditto.
8023         * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
8024         (text_glob, element_list): Reorder members.
8025         * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
8026         compiler warning.
8027         * src/devices/grohtml/html-text.h (html_text::emit_space): Change
8028         return value to `void'.
8029         * src/devices/grohtml/output.cc (word_list::word_list): Fix order
8030         of initializers.
8031         * src/devices/grohtml/html.h (simple_output::check_newline,
8032         simple_output::space_or_newline, simple_output::enable_newlines):
8033         Add return value.
8034         * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
8035         compiler warnings.
8036         * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
8037         * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
8038         output_ligatures, output_charset, read_map): Ditto.
8039         * src/utils/lookbib/lookbib.cc (main): Ditto.
8040         * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
8041         (do_file): Fix typo (`=' -> `==').
8042         * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
8043         * src/utils/addftinfo/addftinfo.cc (main): Ditto.
8045 2001-04-18  Ruslan Ermilov  <ru@FreeBSD.org>
8047         * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
8048         Fix usage of GROFF_BIN_PATH.
8049         * src/roff/nroff/nroff.man: Updated.
8051 2001-04-18  Werner LEMBERG  <wl@gnu.org>
8053         * NEWS: Fixing typos.
8054         Updated.
8056 Version 1.17 released
8057 =====================
8059 2001-04-17  Werner LEMBERG  <wl@gnu.org>
8061         * tmac/Makefile.sub (install-data): mdoc.local-s is in current
8062         directory, not in $(srcdir).
8064 2001-04-16  Werner LEMBERG  <wl@gnu.org>
8066         * doc/groff.texinfo: More info on conditionals.
8068 2001-04-15  Werner LEMBERG  <wl@gnu.org>
8070         * doc/groff.texinfo: Added some info about groff internals.
8072         * src/roff/troff/node.cc (make_glyph_node): Emit warning message
8073         about missing special character only if the name is non-null.
8075 2001-04-14  Werner LEMBERG  <wl@gnu.org>
8077         Removing the grohtml-old device driver which is now obsolete.
8079         * src/devices/grohtml-old/*: Removed.
8080         * font/devhtml-old/*: Removed.
8081         * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
8082         Remove comments.
8083         * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
8084         * test-groff (PATH): Updated.
8085         * tmac/Makefile.sub (NORMALFILES): Updated.
8086         * tmac/an-old.tmac: Remove special code for html-old device.
8087         Replace `html-or-html-old' register with `an-html'.
8088         * tmac/eqnrc: Updated.
8089         * tmac/html-old.tmac: Removed.
8090         * tmac/troffrc, tmac/troffrc-end: Updated.
8091         * tmac/www.tmac: Remove special code for html-old device.
8092         Replace `html-or-html-old' register with `www-html'.
8094         * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
8095         src/libs/libgroff/htmlindicate.cc (graphic_end),
8096         include/htmlindicate.h, src/preproc/grn/*.cc,
8097         src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
8098         single argument for consistency with rest of source code.
8100         * aclocal.m4, tmac/an-old.tmac: Fix copyright.
8102 2001-04-13  Ruslan Ermilov  <ru@FreeBSD.org>
8104         * src/roff/troff/troff.man: Fixing typos.
8106 2001-04-13  Werner LEMBERG  <wl@gnu.org>
8108         * doc/pic.ms: Fixing many font switches.
8109         * doc/groff.texinfo: Fixes, additions.
8110         * MORE.STUFF: Updated.
8112 2001-04-12  Gaius Mulley  <gaius@glam.ac.uk>
8114         * src/devices/grohtml/grohtml.man: Updated manual page regarding
8115         simple anchor.
8116         * src/preproc/html/pre-html.cc (createImage): Fixed right hand
8117         cropping of images.
8118         (removeTempFiles): New function to tidy up temporary files.
8119         * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
8120         Many fixes to do with the new inline suppress node and image regions
8121         are much tighter.
8122         * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
8123         (generate_img_src): New function.
8124         (html_printer::do_auto_image): Utilizes it.
8125         (do_heading, do_title): Include inline images within their contents.
8126         (html_printer::begin_page): Tidied up comments that are issued to
8127         the html output file.
8128         (html_printer::do_fill): Fixed so that `.nf' works with fonts other
8129         than courier.
8130         (text_glob::is_br): New method used by do_heading.
8131         * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
8132         equivalent diversion.
8133         * src/include/html-strings.h: Altered image tags to reflect the
8134         inline image node.
8135         * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
8136         parameter.
8137         * src/preproc/eqn/main.cc: Will suppress generation of image tags if
8138         it is already inside a pic image.  Only emit tags if the argument
8139         `-Tps:html' is present.
8140         * src/preproc/tbl/main.cc: Changes to reflect additional
8141         `html_end_suppress' parameter.
8142         * src/roff/troff/env.cc: Only emit eol tag if a node has been
8143         emitted since the last eol tag was written.
8144         * src/roff/troff/env.h: New boolean `emitted_node'.
8145         * src/roff/troff/input.cc (do_suppress): Handles extra suppress
8146         nodes \O3, \O4, \O5.  No longer use `output_low_mark_miny'.
8147         * src/roff/troff/node.cc (check_charinfo): New method. 
8148         (troff_output_file::determine_line_limits): Alterations to limit
8149         checking.
8150         * tmac/www.tmac: Changes to reflect new suppress nodes.
8151           
8152 2001-04-12  Bruno Haible  <haible@clisp.cons.org>
8154         * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
8155         Escape the html_glyph in the buffer.
8156         (str_translate_to_html): Output the unescaped escaped_char.
8157         * src/devices/grohtml/html-text.cc (issue_table_begin): Set
8158         `frame=void', not `frame=none'.  Add `border=0'.
8160 2001-04-12  Werner LEMBERG  <wl@gnu.org>
8162         * PROBLEMS: Add some words on how to avoid wrapper macros.
8164 2001-04-11  Blake McBride  <blake@florida-software.com>
8166         * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
8168 2001-04-11  Werner LEMBERG  <wl@gnu.org>
8170         * font/devlbp/Makefile.sub (CLEANADD): Set it.
8171         * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
8172         * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
8173         * Makefile.sub (DISTCLEANFILES): Here.
8175         * libs/libgroff/new.cc: Include `nonposix.h'.
8176         * win32-diffs: Updated.
8178 2001-04-10  Ruslan Ermilov  <ru@FreeBSD.org>
8180         Added skeleton macro for defunct macros.
8182         Updated documentation.
8184         When inside displays, an empty input line warning should be
8185         suppressed.  If another macro call is put inside a display,
8186         all subsequent empty lines found in that display caused a
8187         warning to be emitted.
8189         * tmac/doc.tmac (doc-defunct-macro): New macro.
8190         (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
8191         (doc-restore-global-vars): Fixed typo.
8192         (doc-empty-line): Check the `doc-display-depth' register to
8193         determine whether we are inside display or not.
8195         * tmac/doc-common: Removed `Or' and `Sf' registers.
8196         Moved obsolete `Ds' macro to doc.tmac.
8198         * tmac/groff_mdoc.man: Bump document date.
8199         Document `.Vt' under ``Variable Types''.
8200         Removed documentation for obsolete `.Or' macro.
8202 2001-04-10  Werner LEMBERG  <wl@gnu.org>
8204         * NEWS: Updated.
8205         * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
8207 2001-04-10  Bruno Haible  <haible@clisp.cons.org>
8209         * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
8210         (usage): Add stream argument. Don't exit.
8211         * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
8212         Write --version output to stdout, not stderr.
8213         (usage): Add stream argument. Don't exit.
8214         * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
8215         (usage): Add stream argument. Don't exit.
8216         * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
8217         constants.
8218         (usage): Add stream argument. Don't exit.
8219         (main): Write --help output to stdout, not stderr.
8220         * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
8221         (usage): Add stream argument. Don't exit.
8222         * src/devices/grops/ps.cc (main): Accept --help and --version.
8223         (usage): Add stream argument. Don't exit.
8224         * src/devices/grotty/tty.cc (main): Accept --help and --version.
8225         (usage): Add stream argument. Don't exit.
8226         * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
8227         (main): Accept --help and --version.
8228         * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
8229         (main): Accept --help and --version.
8230         * src/preproc/html/pre-html.cc (usage): Add stream argument.
8231         (scanArguments): Accept --help and --version.
8232         * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
8233         (main): Accept --help and --version.
8234         * src/preproc/refer/refer.cc (main): Accept --help and --version.
8235         (usage): Add stream argument. Don't exit.
8236         * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
8237         exit.
8238         (main): Accept --help and --version.
8239         * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
8240         (main): Accept --help and --version.
8241         * src/roff/groff/groff.cc (main): Accept --help and --version.
8242         (synopsis): Add stream argument.
8243         (help): Write --help output to stdout, not stderr.
8244         (usage): Add stream argument. Don't exit.
8245         * src/roff/grog/grog.pl: Accept --help and --version.
8246         (help): New sub.
8247         * src/roff/grog/grog.sh: Accept --help and --version.
8248         * src/roff/nroff/nroff.sh: Accept --help and --version.
8249         * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
8250         (usage): Add stream argument. Don't exit.
8251         (main): Accept --help and --version.
8252         * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
8253         (usage): New function with stream argument, doesn't exit.
8254         * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
8255         (usage): New function with stream argument, doesn't exit.
8256         * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
8257         (usage): Add stream argument. Don't exit.
8258         * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
8259         (main): Accept --help and --version.
8260         * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
8261         exit.
8262         (main): Accept --help and --version.
8263         * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
8264         (main): Accept --help and --version.
8265         * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
8266         (usage): Add stream argument. Don't exit.
8268 2001-04-10  Ruslan Ermilov  <ru@freebsd.org>
8270         Fix indentation in SYNOPSIS.
8272         Updated to include changes of latest BSD mdoc version (basically,
8273         the only change is that `.Fn' and `.Fc' put a final semicolon after
8274         a function declaration in the SYNOPSIS section).
8276         * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
8277         (doc-in-synopsis-section): New variable.  Updated all related
8278         functions.
8279         (doc-indent-synopsis-active): New register.
8280         (Nd, Fn, Fo): Use it.
8281         (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
8282         `.Cd' with long argument line produces indented wrapped lines. 
8283         Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
8284         undesirable line break to be output.
8285         (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
8286         `.rs'.
8287         (Fn, Fc): Add final `;' to output.
8288         (doc-save-global-vars, doc-restore-global-vars): Updated.
8289         * tmac/doc-common: Remove `Ex' register.
8290         Updated.
8291         * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
8292         copyright.
8294 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
8296         * tmac/doc.tmac (Cd): Simplify code.
8297         * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
8299 2001-04-06  Werner LEMBERG  <wl@gnu.org>
8301         Implement continuous underlining for nroff mode.  To do that, a new
8302         request in the ditroff language has been added: `x u N' (N is 0
8303         or 1).
8305         \X and \Y are now transparent to end-of-sentence recognition.
8307         * src/include/printer.h (printer): Add `type' parameter to `special'
8308         method.
8309         * src/libs/libdriver/printer.cc (printer::special): Updated.
8310         * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
8312         * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
8313         specials of type `p'.
8314         * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
8315         * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
8316         * src/devices/grops/ps.cc (ps_printer::special): Ditto.
8317         * src/devices/grotty/tty.cc: Add new enum CU_MODE.
8318         (glyph::order): New method.
8319         (tty_printer::add_char): Use it.
8320         (tty_printer::special): New method.
8321         (tty_printer::end_page): Implement it.
8323         * src/roff/troff/node.h (special_node): Add `no_init_string' member.
8324         * src/roff/troff/node.cc (special_node::special_node): Add parameter
8325         to set `no_init_string'.
8326         (special_node::tprint_start): Use it.
8327         (special_node::same, special_node::copy): Updated.
8328         (special_node::ends_sentence): New method.
8329         (troff_output_file::start_special): Add parameter to include
8330         inititialization of special conditionally.
8332         * src/roff/troff/env.h (environment): New member `underline_spaces'.
8333         * src/roff/troff/env.cc (do_underline_special): New function.
8334         (environment::set_font): Use it.
8335         (do_underline): Use it.  This was `underline()'.
8336         (underline): Call `do_underline()'.
8337         (continuous_underline): New function which calls `do_underline()'.
8338         (environment::newline): Use `do_underline_special()'.
8339         (init_env_requests): Updated.
8341         * NEWS, man/troff_out.man: Updated.
8343 2001-04-06  Bruno Haible  <haible@clisp.cons.org>
8345         * font/devutf8/R.proto: Fix code of 'shc'.
8347 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
8349         Many fixes.  Diag lists can now be nested also; additionally,
8350         `-compact' and `-offset' are supported.
8352         * tmac/doc.tmac (doc-have-indent): Replaced with ...
8353         (doc-list-have-indent-stackXXX): A new register stack.
8354         (doc-have-diag-list): Removed.
8355         (Bl): Use `doc-list-have-indent-stackXXX'.
8356         (El): Updated.
8357         (doc-diag-list): Use `doc-compact-list-stackXXX'.
8358         (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
8359         (doc-set-vertical-and-indent): Ditto.
8360         (doc-next-list-depth): Removed.
8361         (doc-increment-list-stack): Updated.
8362         (doc-decrement-list-stack): Use `doc-list-depth' instead of
8363         `doc-next-list-depth'.
8364         (doc-end-list, doc-end-column-list): Don't use
8365         `doc-increment-list-stack'.
8366         (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
8367         (doc-save-global-vars, doc-restore-global-vars): Updated.
8368         * tmac/doc-common: Updated.
8369         * tmac/groff_mdoc.man: Updated.
8370         * NEWS: Fix typo.
8372 2001-04-02  Werner LEMBERG  <wl@gnu.org>
8374         * src/devices/grotty/grotty.man: Fix grammatical error.
8376 2001-03-30  Ruslan Ermilov  <ru@freebsd.org>
8378         Remove .Ld from mdoc package; replace it with special handling of
8379         `...'.
8381         * tmac/doc-common: Remove `Ld' register.
8382         Uncomment `doc-volume-ds-*' strings.
8383         Remove `doc-operating-system-default'.
8384         (Os): Updated.
8385         * tmac/doc-syms (Ld): Removed.
8386         * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
8387         `...' specially.
8388         * NEWS: Updated.
8390         * tmac/groff_mdoc.man: Many fixes and updates.
8392 2001-03-29  Werner LEMBERG  <wl@gnu.org>
8394         * tmac/troffrc-end: Protect data with `.do'.  Reported by T. Kurt
8395         Bond <tkb@tkb.mpl.com>.
8396         * tmac/www.tmac: Save compatibility mode.
8398 2001-03-28  Ruslan Ermilov  <ru@freebsd.org>
8400         * tmac/groff_mdoc.man: Many fixes.
8402 2001-03-28  Werner LEMBERG  <wl@gnu.org>
8404         * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
8405         isn't recognized.
8407 2001-03-27  Werner LEMBERG  <wl@gnu.org>
8409         * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
8410         diversion.  This fixes overlong tags.
8412 2001-03-26  Werner LEMBERG  <wl@gnu.org>
8414         * doc/groff.texinfo: Fixed and improved documentation of fonts.
8415         * tmac/doc-syms: Fix error messages.
8416         * tmac/an-old.tmac: Remove incorrect double backslashes.
8418 2001-03-24  Ruslan Ermilov  <ru@freebsd.org>
8420         * tmac/Makefile.sub: Strip mdoc.local also
8421         * tmac/strip.sed: Fixed.
8423 2001-03-24  Werner LEMBERG  <wl@gnu.org>
8425         * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
8426         selecting the font size.
8427         * tmac/groff_mdoc.man, NEWS: Document it.
8429 2001-03-23  Werner LEMBERG  <wl@gnu.org>
8431         * src/roff/troff/div.cc (save_vertical_space): Add default argument
8432         to `sv' request.
8433         * src/roff/troff/env.cc (family_change): Make `.fam' accept no
8434         argument to restore previous font family.
8435         * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
8437         * doc/groff.texinfo: More fixes and additions (mainly for font
8438         manipulating commands).
8440         * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
8441         * tmac/groff_mdoc.man: This.  The quick reference has been removed.
8442         * tmac/Makefile.sub, NEWS: Updated.
8444 2001-03-23  Werner LEMBERG  <wl@gnu.org>
8446         Replaced mdoc implementation.  The new version is `state of the
8447         art', using almost all new features of groff 1.17 -- it won't run
8448         with older versions.
8450         * tmac/doc.tmac: Completely rewritten.
8451         * tmac/doc-common: Ditto.
8452         * tmac/doc-nroff: Ditto.
8453         * tmac/doc-ditroff: Ditto.
8454         * tmac/doc-syms: Ditto.
8455         * tmac/mdoc.local: New file.
8456         * tmac/groff_mdoc.samples.man: Replaced with ...
8457         * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
8458         * tmac/strip.sed: Updated.
8459         * tmac/Makefile.sub: Updated.
8460         * INSTALL: Updated.
8462         * tmac/groff_man.man: Add `man.local' to the FILES section.
8464 2001-03-22  Werner LEMBERG  <wl@gnu.org>
8466         * doc/groff.texinfo: Added many @noindent.
8467         Replaced @end_Example -> @endExample.
8468         Added info whether registers are r/o.
8469         Many other additions and fixes.
8471 2001-03-21  Werner LEMBERG  <wl@gnu.org>
8473         * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
8474         in makeinfo of texinfo 4.0) to be used in @Def* macros.
8475         Improved @Def* macros: Now the exact syntax of request, register,
8476         and escapes is shown.
8477         Added macros for parentheses and brackets to be used in @Def*.
8478         Many fixes and improvements of the documentation.
8480 2001-03-20  Werner LEMBERG  <wl@gnu.org>
8482         * doc/groff.texinfo: Added new index: `st' (for strings).
8483         Added macros @Defstr(x).
8484         Added macro @Example (adding @group).
8485         Other minor improvements.
8487 2001-03-19  Werner LEMBERG  <wl@gnu.org>
8489         * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
8490         `rq' for requests.  `fn' is no longer used.
8491         Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
8492         Removed @Deffn(x).
8494         * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
8495         number with name of man page.
8497 2001-03-19  Larry Kollar  <kollar@alltel.net>
8499         * doc/groff.texinfo: Complete revision.  Added many @Deffn to gain
8500         consistency.
8502 2001-03-19  Werner LEMBERG  <wl@gnu.org>
8504         * man/groff_font.man: Document `prepro', `postpro', and `print'.
8505         * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
8506         * src/devices/grohtml/grohtml.man: Fixing typos.
8508 2001-03-19  Gaius Mulley  <gaius@glam.ac.uk>
8510         * tmac/s.tmac (@IP): Pass `.ip' html tag.
8511         * tmac/groff_mwww.man: Remove .LINE macro
8512         * tmac/www.tmac (LINE): Add `.ti'.
8514         * src/devices/grohtml/post-html.cc (html_printer): New member
8515         `indent'.
8516         (html_printer::emit_raw): Use it.
8517         (html_printer::do_linelength): Ditto.
8518         (html_printer::do_pageoffset): Ditto.
8519         (html_printer::do_indentation): Ditto.
8520         (html_printer::do_tempindent): Ditto.
8521         (html_printer::do_break): Ditto.
8522         (html_printer::begin_page): Ditto.
8523         (html_printer::do_indentedparagraph): New function.
8524         (html_printer::troff_tag): Handle `.ip'.
8525         * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
8526         Add `<td width=...>' handling.
8527         (html_text::do_table): Add parameter.
8528         (html_text::do_indent): Updated.
8529         * src/devices/groohtml/html-text.h: Updated.
8531 2001-03-16  Gaius Mulley  <gaius@glam.ac.uk>
8533         Introduced simple html tables to implement indentation.
8535         * src/devices/grohtml/html.h (word, word_list): New structures.
8536         (simple_output): Use it.
8537         * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
8538         (html_printer): Improve indentation handling.
8539         (html_printer::emit_raw): Set `in_table' element.  Handle
8540         indentation if set.
8541         (html_printer::write_header): Move conditional downwards.
8542         Don't allow whitespace in tags.
8543         (html_printer::do_linelength): Handle line length and indentation
8544         conditionally.
8545         (html_printer::do_pageoffset): Handle indentation conditionally.
8546         (html_printer::do_indentation): Ditto.
8547         (html_printer::do_tempindent): New function member.
8548         (html_printer::do_fill): Take care of indentation.
8549         (html_printer::do_flush): Finish table.
8550         (html_printer::do_links): Ditto.
8551         (html_printer::do_break): New function for handling `.br' and `.ti'.
8552         (html_printer::troff_tag): Use it.
8553         Handle `.ti'.
8554         (html_printer::flush_globs): Fix.
8555         (html_printer::flush_page): Finish table.
8556         (html_printer::html_printer): Fix error message.  Set up
8557         `linelength'.
8558         (html_printer::add_to_sbuf): Remove special handling of character
8559         code 255.
8560         (to_unicode): Remove `stop()'.
8561         (html_printer::write_title): Cleanup.
8562         (html_printer::begin_page): Use `put_string()'.  Handle indentation.
8563         (html_printer::~html_printer): Flush text and end the line.
8564         Use `put_string()'.
8565         * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
8566         * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
8567         emission of tags.
8568         (html_text::start_tag): Disable newlines.
8569         (html_text::table_is_void): New function.
8570         (html_text::issue_table_begin): Ditto.
8571         (html_text::issue_table_end): Ditto.
8572         (html_text::push_para): Better table handling.
8573         (html_text::do_indent): New function.
8574         (html_text::do_table): Ditto.
8575         (html_text::done_table): Ditto.
8576         (html_text::do_tt): Handle PRE_TAG.
8577         (html_text::is_in_table): New function.
8578         (html_text::check_emit_text): Handle tables.
8579         (html_text::do_emittext): Use `nl()'.
8580         (html_text::do_para): Handle table.
8581         (html_text::remove_def): New function.
8582         * src/devices/grohtml/output.cc (word, word_list): Implement
8583         methods.
8584         (simple_output::end_line): Flush last word.
8585         (simple_output::simple_comment): Ditto.
8586         (simple_output::begin_comment): Recoded.
8587         (simple_output::end_comment): Ditto.
8588         (simple_output::comment_arg): Removed.
8589         (simple_output::check_newline): Improve test and flush last word.
8590         (simple_output::space_or_newline): Improved.
8591         (simple_output::write_newline): Replaced with...
8592         (simple_output::nl): This.
8593         (simple_output::put_raw_char): Flush last word.
8594         (simple_output::check_space): Removed.
8595         (simple_output::put_translated_string): Ditto.
8596         (simple_output::put_string): Simplified.
8597         (simple_output::put_number): Updated.
8598         (simple_output::put_float): Ditto.
8599         (simple_output::put_symbol): Removed.
8600         (simple_output::enable_newlines): Add `check_newline()'.
8601         (simple_output::flush_last_word): New function.
8603         * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
8604         * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
8606         * tmac/s.tmac (@PP, @IP): Add html conditional code.
8607         * tmac/an-old.tmac (TP): Ditto.
8609 2001-03-09  Ruslan Ermilov  <ru@freebsd.org>
8611         * mdate.sh: Make it POSIX compliant.
8613 2001-03-09  Werner LEMBERG  <wl@gnu.org>
8615         Added the `return' request to end a macro immediately.  It simply
8616         pops iterators from the input stack until a macro iterator is found.
8618         * src/roff/troff/input.cc (input_iterator::is_macro,
8619         macro_iterator::is_macro): New member.
8620         (input_return_boundary): New class to signal an immediate return
8621         to while_request().
8622         (input_stack::add_return_boundary, input_stack::is_return_boundary):
8623         New functions.
8624         (input_stack::clear): Use it.
8625         (input_stack::pop_macro): New function.
8626         (while_request): Use `is_return_boundary()'.
8627         (return_macro_request): New function.
8628         (init_input_requests): Use it.
8630         * src/roff/troff/TODO: Updated.
8631         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8633 2001-03-08  Werner LEMBERG  <wl@gnu.org>
8635         * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
8636         cleanup.
8638 2001-03-07  Werner LEMBERG  <wl@gnu.org>
8640         Make `\B' more rigid.
8642         * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
8643         parameter.
8644         (get_number_rigidly): New function.
8645         * src/roff/troff/input.cc (do_expr_test): Use it.
8646         * src/roff/troff/token.h: Updated.
8648         * src/roff/troff/request.h: Fix typo (init_html_request ->
8649         init_markup_request).
8651 2001-03-04  Gaius Mulley  <gaius@glam.ac.uk>
8653         Fixed grohtml handling of any named glyph for glyph indexes < 0x80. 
8654         Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
8655         are now `.begin', `.end', `.image'.
8657         * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
8658         (html_printer::add_to_sbuf): Changing type of `code' parameter.
8659         Use add_char_to_sbuf().
8660         (to_unicode): New function.
8661         (char_translate_to_html): Changing type of `ch' parameter.
8662         Use `to_unicode()'.
8663         (html_printer::~html_printer): Comment out doctype string.
8664         * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
8665         instead of `.html-end'.
8666         (write_start_image): Use `.begin' and `.image' instead of
8667         `.html-begin' and `.html-image'.
8668         * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
8669         (html_begin): Renamed to ...
8670         (begin): This.
8671         (html_end): Renamed to ...
8672         (end): This.
8673         (html_image): Renamed to ...
8674         (image): This.
8675         (init_html_requests): Renamed to ...
8676         (init_markup_requests): This.
8677         * tmac/www.tmac: Updated.
8679 2001-02-28  Bram  <bram@avontuur.org>
8681         * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
8682         constructor.
8684 2001-02-26  David Leonard  <david.leonard@csee.uq.edu.au>
8686         * doc/meref.me: Fixing some typos.
8688 2001-02-16  Werner LEMBERG  <wl@gnu.org>
8690         * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
8691         method.  Return `HYPHEN_MIDDLE' if it was `\:'.
8692         * src/roff/troff/node.h: Updated.
8694 2001-02-17  Ruslan Ermilov  <ru@FreeBSD.org>
8696         * tmac/groff_tmac.man: Fix typo.
8698 2001-02-16  Werner LEMBERG  <wl@gnu.org>
8700         Fixing a bug which prevented proper end-of-sentence recognition
8701         between an `unformatted' box and the following text.  As a
8702         consequence, vertical line distances are no longer preserved in
8703         boxes after a call to `.unformat' -- because boxes aren't
8704         line-oriented (contrary to diversions), this doesn't make sense
8705         anyway.
8707         * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
8708         value.
8709         (vertical_size_node::set_unformat_flag): New method.
8710         * src/roff/troff/node.hh: Updated.
8711         * src/roff/troff/input.cc (word_space_node::reread,
8712         hmotion_node::reread): Reset `unformat' flag after usage.
8713         (unformat_macro): Append only if `set_unformat_flag()' returns
8714         non-zero.
8715         * src/roff/troff/troff.man: Updated.
8717 2001-02-15  Werner LEMBERG  <wl@gnu.org>
8719         * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
8720         documentation of `asciify' and `unformat' requests.
8722 2001-02-13  Werner LEMBERG  <wl@gnu.org>
8724         Redesigned the `unformat' request.  It is no longer connected with
8725         `asciify' but rather uses new `reread()' methods if the `unformat'
8726         flag is set.  Additionally, the handling of space characters after
8727         unformatting has been fixed so that they retain their width.
8729         * src/roff/troff/node.h (width_list): New structure to store
8730         original widths of spaces.
8731         (node): Added `unformat' member.
8732         Replaced `num_spaces' variable with `orig_width' list.
8733         * src/roff/troff/node.cc (*node::asciify,
8734         asciify_reverse_node_list): Removed `unformat_only' flag and related
8735         code.
8736         (word_space_node::asciify, word_space_node::word_space_node): Use
8737         `orig_width'.
8738         (word_space_node::~word_space_node): New destructor.
8739         (word_space_node::copy): Updated to handle `orig_width'.
8740         (hmotion_node::copy, unbreakable_space_node::copy): Updated.
8741         (*node::merge_space): Update `orig_width' list if necessary.
8742         (*node::set_unformat_flag): New methods to set the `unformat' flag.
8743         * src/roff/troff/enc.cc (environment::space_newline): Use
8744         `width_list'.
8745         (environment::space): Added method to handle space width and
8746         sentence space width as parameters.  Use `width_list'.
8747         (environment::make_tab_node): Updated.
8748         * src/roff/troff/env.h: Updated.
8749         * src/roff/troff/input.cc (word_space_node::reread,
8750         unbreakable_space_node::reread, hmotion_node::reread): New methods
8751         to handle nodes specially if `unformat' flag is set.
8752         (do_asciify_macro): Renamed back to ...
8753         (asciify_macro): This.
8754         (unformat_macro): New implementation to simply set the `unformat'
8755         flag.
8757         * MORE.STUFF: Added more info about deroff.
8759 2001-02-08  Werner LEMBERG  <wl@gnu.org>
8761         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
8762         space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
8763         and `add_self()' methods to avoid hyphenation.  For example, the
8764         hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
8765         soft hyphen after `foo'.  Now the hyphen list is correctly
8766         `foo<ignore><ignore>bar'.
8768 2001-02-05  Yoshiteru Kageyama  <yt-kage@cb3.so-net.ne.jp>
8770         * tmac/groff_tmac.man: Fix `BIR' macro.
8772 2001-02-04  Werner LEMBERG  <wl@gnu.org>
8774         A new escape sequence `\:', inserting a zero-width break point.
8776         * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
8777         * src/roff/troff/input.cc (get_copy, token::next, asciify):
8778         Implement it.
8779         * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
8780         method.
8781         (space_node): Add `was_escape_colon' member.  Add `is_escape_colon()'
8782         and `asciify()' methods.
8783         * src/roff/troff/node.cc (space_node::space_node): Updated.
8784         (space_node::asciify): Handle `was_escape_colon'.
8785         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8787         Handle `\~' similar to other comparable requests.
8789         * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
8790         label.
8791         (token::next): Move creation of an unbreakable_space_node to...
8792         (token::add_to_node_list): Here.
8794         Fix a bug which sometimes prevented hyphenation of words connected
8795         with `\~' or `\ ' (and other escape sequences handled as
8796         TOKEN_NODE).  This also fixes a hyphenation problem with boxes
8797         (after a call to the `unformat' request).
8799         * src/roff/troff/env.h (environment::possibly_break_line,
8800         environment::hyphenate_line): Introducing `start_here' parameter.
8801         * src/roff/troff/env.cc (environment::space_newline,
8802         environment::space): Use it.
8803         (environment::possibly_break_line, environment::hyphenate_line):
8804         Implement it.
8805         * src/roff/troff/input.cc (process_input_stack): Use it.
8806         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
8807         space_char_hmotion_node, overstrike_node): Add
8808         `get_hyphenation_type()' method.
8809         * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
8810         if `unformat_only' is active.
8812 2001-01-30  Werner LEMBERG  <wl@gnu.org>
8814         Implemented new read-only number register `.linetabs' which
8815         returns 1 if in line-tabs mode, 0 otherwise.
8817         * src/roff/troff/env.h (environment): Add get_line_tabs() member.
8818         * src/roff/troff/env.cc (get_line_tabs): New function.
8819         (init_env_requests): Use it.
8820         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8822         * VERSION, REVISION: Changing to 1.17.0.
8824 2001-01-28  Werner LEMBERG  <wl@gnu.org>
8826         Fixed a bug which prevented hyphenation of words which are finished
8827         with `\)'.
8829         * src/roff/troff/token.h (token): Add enum type
8830         `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
8831         * src/roff/troff/input.cc (token::next, token::description,
8832         get_line_arg, token::add_to_node_list, token::process): Use it.
8834 2001-01-27  Werner LEMBERG  <wl@gnu.org>
8836         * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
8837         * src/roff/troff/div.cc (do_divert): Use it.
8839         * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
8841 2001-01-25  Werner LEMBERG  <wl@gnu.org>
8843         Adding the `linetabs' request.  If set, tab distances are not
8844         computed relative to the input line but relative to the output line.
8846         * src/roff/troff/env.h (environment): New member `line_tabs'.
8847         * src/roff/troff/env.cc (line_tabs_request): Implement request.
8848         (environment::environment, environment::copy): Updated.
8849         (environment::distance_to_next_tab): Use `line_tabs'.
8850         (init_env_requests): Register request.
8851         * src/roff/troff/troff.man, man/groff.man, NEWS: Document it.  Other
8852         fixes.
8854 2001-01-24  Werner LEMBERG  <wl@gnu.org>
8856         Introducing a new read-only register `.int' which is set to a
8857         positive value if the last output line is interrupted (i.e., if it
8858         contains `\c').
8860         * src/roff/troff/env.cc (init_env_requests): Add it.
8861         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8863 2001-01-23  Gaius Mulley  <gaius@glam.ac.uk>
8865         * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
8866         * src/preproc/html/pre-html.cc (findPrefix): New function which
8867         generates the troff executable name via the system prefix.
8868         * src/preproc/eqn/main.cc: Modified warning message.
8870 2001-01-23  Werner LEMBERG  <wl@gnu.org>
8872         troff's `box' and `boxa' requests didn't preserve temporary
8873         indentation.
8875         * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
8876         `saved_target_text_length' members.
8877         * src/roff/troff/div.cc (do_divert): Use them.
8879         Tabs (but not yet leaders and fields) are now handled correctly by
8880         `asciify' request.
8882         * node.h (hmotion_node): Add field `was_tab'.
8883         * env.cc (environment::make_tab_node): Set it.
8884         * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
8886         Added new request `unformat' which will, contrary to `asciify',
8887         preserve font information after unformatting (i.e., only nodes
8888         dealing with horizontal space are converted back to input
8889         characters).
8891         * input.cc (asciify_macro): Renamed to ...
8892         (do_asciify_macro): this, having a new parameter `unformat_only'.
8893         (asciify_macro, unformat_macro): New; using do_asciify_macro.
8894         (init_input_requests): Added `unformat'.
8895         * node.cc (*_node::asciify), asciify_reverse_node_list: Added
8896         parameter to control asciification process.
8897         * node.h (*_node::asciify): Ditto.
8898         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8900 2001-01-20  Werner LEMBERG  <wl@gnu.org>
8902         * doc/groff.texinfo: Minor improvement of `.in' documentation.
8904 2001-01-18  Werner LEMBERG  <wl@gnu.org>
8906         * tmac/ps.tmac: Remove call of psold.tmac.
8907         * tmac/psold.tmac: Comment updated.
8908         * tmac/psnew.tmac: Removed since no longer needed.
8909         * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
8911         * font/devutf8/R.proto: Adding `shc' glyph.
8912         * font/devutf8/NOTES: Updated.
8914         * test-groff: Updated.
8916 2001-01-15  Gaius Mulley  <gaius@glam.ac.uk>
8918         First cut of the new html device driver.  Changes to pre-html and
8919         the new grohtml are too numerous to be documented here.
8921         Stuff related to `html' has been renamed to `html-old' and `html2'
8922         stuff has been renamed to `html' (including directories).  The new
8923         html device driver is therefore invoked as `-Thtml'.
8925         Added new `\O' escape to suppress output (needed by html driver).
8927         Added functions and code to pass info about input-level commands
8928         (`.in', `.fl', etc.) to html driver.
8930         Three new functions (.html-begin, .html-end, and .html-image) for
8931         better html handling: `html-begin' will execute the remaining line
8932         if at the outermost nesting level, increasing an internal counter.
8933         `html-end' does the same but decreases the internal counter.
8934         `html_image' puts its arguments into a special node (suppress_node)
8935         to define an image region.
8937         The `output' request has been removed.
8939         * tmac/html-tags.tmac: Removed.
8940         * tmac/arkup.tmac: Updated and renamed to ...
8941         * tmac/www.tmac: New file.
8942         * tmac/markup.tmac Updated and renamed to ...
8943         * tmac/mwww.tmac: New file.
8944         * tmac/Makefile.sub: Updated.
8945         * tmac/an-old.tmac: Updated.
8946         * tmac/eqnrc: Updated.
8947         * tmac/groff_man.man
8948         * tmac/groff_markup.man: Updated and renamed to ...
8949         * tmac/groff_mwww.man: New file.
8950         * tmac/groff_tmac.man: Updated.
8951         * tmac/html-old.tmac: Updated and Renamed from html.tmac.
8952         * tmac/html.tmac: Updated and renamed from html2.tmac.
8953         * tmac/pspic.tmac: Updated html support.
8954         * tmac/s.tmac: Added html output support.
8955         * tmac/troffrc, tmac/troffrc-end: Updated.
8957         * Makefile.in, doc/Makefile: Updated.
8958         * doc/groff.texinfo: Added info about new `\O' escape.
8959         * doc/homepage.ms: Use `MAILTO' macro.
8961         * font/devhtml/DESC.proto: Add `C' font.
8962         * font/devhtml/Makefile.sub: Updated.
8963         * font/devhtml/R.proto: Minor fixes.
8964         * font/devhtml-old/Makefile.sub: Updated.
8966         * src/devices/grohtml-old/Makefile.sub: Updated.
8968         * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
8969         method.
8970         * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
8971         graphic_start): Add `inline' parameter.  Update.
8972         (html_end_suppress, graphic_end): Update.
8974         * src/include/html-strings.h: New file.
8975         * src/include/htmlindicate.h: Comments updated.
8976         * src/include/printer.h: Updated.
8978         * src/preproc/eqn/main.cc (do_file, main): Updated.
8979         * src/preproc/pic/troff.cc (troff_output::start_picture,
8980         troff_output::finish_picture): Updated.
8981         * src/preproc/tbl/main.cc (process_input_file): Updated.
8983         * src/roff/groff/groff.cc (main): Updated.
8984         Pass device arguments to predrivers also.
8985         Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
8986         * src/roff/troff/env.h (environment): Updated.
8987         New elements `need_eol' and `ignore_next_eol' (for html output).
8988         * src/roff/troff/env.cc (environment::environment): Add initializers
8989         for `need_eol' and `ignore_next_eol'.
8990         (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
8991         functions.
8992         (point_size, fill, no_fill, center, right_justify, line_length,
8993         indent, temporary_indent, break_request, handle_tab): Use
8994         `add_html_tag()'.
8995         (set_tabs): Use `add_html_tag_tabs()'.
8996         (environment::add_html_tag): Updated.
8997         (environment::do_break): Updated.
8998         * src/roff/troff/div.cc (space_request, flush_output): Use
8999         `environment::add_html_tag()'.
9000         * src/roff/troff/input.cc: Updated.
9001         New variable `html_level' to indicate nested `html-begin' requests.
9002         (file_iterator::fill): Use `environment::add_html_tag_eol()'.
9003         (non_interpreted_char_node, token_node, non_interpreted_node): Add
9004         `force_tprint()' method.
9005         (token::next): Handle `\O'.
9006         (do_suppress): Implement it.
9007         (html_begin, html_end, html_image): New functions.
9008         (init_output_requests): Renamed to ...
9009         (init_html_requests): this.
9010         (main): Use it.
9011         (macro::append_str, macro::append_unsigned, macro::append_int): New
9012         methods.
9013         New variable `output_low_mark_miny' to limit minimal value of y.
9014         (reset_output_registers): Use it.
9015         (output_request): Removed.
9016         (get_output_registers): New function.
9017         * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
9018         (*_node): Added `force_tprint()' if necessary.
9019         (special_node): New elements `tf' and `get_tfont()'.
9020         (suppress_node): New class.
9021         * src/roff/troff/node.cc:
9022         New global variables `image_no' and `suppress_start_page'.
9023         (real_output_file): New method `is_on()'.
9024         (troff_output_file): New method `start_special(tfont)'.
9025         (troff_output_file::really_print_line): Use `tprint' conditionally.
9026         (real_output_file::print_line): Updated.
9027         (real_output_file::on): Updated.
9028         (*_node): Added `force_tprint()'.
9029         (special_node::special_node): Initializer updated.
9030         (special_node::same, special_node::copy, special_node::tprint_start):
9031         Updated.
9032         (get_reg_int, get_reg_str): New functions.
9033         (suppress_node::*): New methods.
9034         New global variables last_position, last_image_filename;
9035         (min): New inline function.
9036         * src/roff/troff/reg.h, src/roff/troff/request.h,
9037         src/roff/troff/troff.h: Updated.
9039 2001-01-13  Werner LEMBERG  <wl@gnu.org>
9041         * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
9042         documentation of `asciify' request.
9044 2001-01-12  Werner LEMBERG  <wl@gnu.org>
9046         * src/roff/troff/input.cc: Move definition of special characters
9047         like `ESCAPE_TILDE' to ...
9048         * src/roff/troff/input.h: New file.
9049         * src/roff/troff/Makefile.sub (HDRS): Add it.
9051         Extending the .asciify request to `unformat' space characters also.
9053         * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
9054         to count input space characters.
9055         Update constructors to take care of it.
9056         * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
9057         `ESCAPE_SPACE' instead of normal space.
9058         (word_space_node::asciify): New method.
9059         (unbreakable_space_node::asciify): New method.
9060         (word_space_node::merge_space): New method.
9061         * src/roff/troff/env.cc (environment::space_newline,
9062         environment::space): Add code to initialize `num_spaces' (using the
9063         constructor of `word_space_node').
9064         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
9065         Document it.
9067 2001-01-09  Werner LEMBERG  <wl@gnu.org>
9069         * man/groff_char.man: Use table header traps only conditionally.
9071 2001-01-09  Bjarni Ingi Gíslason  <bjarniig@hi.is>
9073         * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
9075 2001-01-08  Werner LEMBERG  <wl@gnu.org>
9077         Introducing the `box' and `boxa' requests which are similar to
9078         `di' resp. `da' but omitting a partially filled line (which is
9079         restored after ending the diversion).
9081         * src/roff/troff/div.h (diversion): Add elements to save partially
9082         filled line.
9083         * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
9084         partially filled line.
9085         (divert, divert_append): Updated.
9086         (box, box_append): New functions.
9087         (init_div_requests): Use them.
9088         * src/roff/troff/env.h (environment): do_divert() is now a friend.
9089         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9091         * doc/groff.texinfo: Fix documentation of `lf' request.
9093 2000-12-25  Werner LEMBERG  <wl@gnu.org>
9095         * src/roff/troff/troff.man, NEWS: Document `writem' request.
9097 2000-12-21  Werner LEMBERG  <wl@gnu.org>
9099         Ignore `ss' request if in compatibility mode.
9101         * src/roff/troff/input.cc: Make `compatible_flag' non-static.
9102         * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
9103         * src/roff/troff/env.cc (space_size): Use it.
9105         * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
9106         `ss' request in nroff mode.
9108         * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
9109         changes.
9111 2000-12-15  Ruslan Ermilov  <ru@FreeBSD.org>
9113         * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
9115 2000-12-13  Werner LEMBERG  <wl@gnu.org>
9117         * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
9118         * src/preproc/eqn/neqn.man: Small fixes and additions.
9120 2000-12-13  Ruslan Ermilov  <ru@FreeBSD.org>
9122         * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
9123         Fixing typo.
9125         * src/preproc/eqn/neqn.man: New file.
9127         * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
9128         negative' warning.
9130         * tmac/e.tmac: Add `T&' macro.
9131         Fix `indent cannot be negative' warning.
9132         * tmac/s.tmac: Fix `indent cannot be negative' warning.
9134 2000-12-07  Werner LEMBERG  <wl@gnu.org>
9136         * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
9138 2000-12-06  Werner LEMBERG  <wl@gnu.org>
9140         * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
9141         `alloca' symbol .
9143         * MORE.STUFF: Added info about deroff for djgpp.
9145         * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
9146         documentation of -rcR switch.
9148 2000-12-03  Werner LEMBERG  <wl@gnu.org>
9150         * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
9151         if -rcR=1 (which is now the default in nroff mode), a single, very
9152         long page is created instead of multiple pages: All `ne' and `wh'
9153         requests are put into conditionals; a new macro `an-end' is added to
9154         be called with `em'.
9156         Some other minor cleanups.
9158         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
9160 2000-12-02  Werner LEMBERG  <wl@gnu.org>
9162         Fixing a bug which prevented hyphenation in words followed
9163         immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
9165         * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
9166         Adding possibly_break_line().
9167         * src/roff/troff/env.h (environment): Make possibly_break_line()
9168         public.
9170         Make `\~' usable in .tr request.
9172         * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
9173         (token): Add stretchable_space().
9174         * src/roff/troff/input.cc (token::next, token::delimiter,
9175         token::description, process_input_stack, do_translate,
9176         add_to_node_list, token::process): Use it.
9177         * src/roff/troff/node.h (node): Add fourth parameter to add_char()
9178         for adjusting the space.
9179         * src/roff/troff/node.cc (node::add_char): Implement it.  Add code
9180         for stretchable space.
9181         * src/roff/troff/input.cc (token::add_to_node_list): Use it.
9182         (make_node): Add code for stretchable space.
9183         * src/roff/troff/env.cc (environment::add_char): Use it.
9184         * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
9185         (get_copy, token::next, transparent_translate, asciify): Use it.
9187         * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
9188         doc/groff.texinfo: Updated.
9189         * man/groff.man: Small reorderings.
9191 2000-11-23  Werner LEMBERG  <wl@gnu.org>
9193         * NEWS: Fixes.
9194         * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
9195         option.
9196         * src/roff/troff/input.cc (main): Add `config_macro_path' and
9197         `safer_macro_path' to -M option.
9198         * src/roff/troff/troff.man: Fixes.
9200 2000-11-22  Werner LEMBERG  <wl@gnu.org>
9202         Use safer path (except for config files) if -U isn't specified.  Add
9203         a special macro path (without home and current directory) for config
9204         files.  Add home directory to unsafe path for consistency.  Don't
9205         include the home directory in the font path.
9207         * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
9208         `macro_path'.
9209         * src/include/macropath.h: Add `config_macrp_path'.
9210         * src/libs/libgroff/fontfile.cc: Fix font path.
9211         * src/roff/troff/input.cc (process_startup_file): Use
9212         `config_macro_path'.
9213         (main): Select unsafe path if -U is given.
9215         * src/preproc/eqn/main.cc (main): Fixing search path for
9216         configuration file.
9217         * src/preproc/eqn/eqn.man: Updated.
9219         * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
9220         Updated.
9222         * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
9223         src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
9224         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
9225         src/devices/grotty/grotty.man: Updated.
9227         * Makefile.in: Fix comments.
9229 2000-11-17  Werner LEMBERG  <wl@gnu.org>
9231         * tmac/safer.tmac: Empty file added (again) for compatibility
9232         reasons.
9233         * tmac/Makefile.sub: Updated.
9235 2000-11-16  Werner LEMBERG  <wl@gnu.org>
9237         * src/devices/grodvi/dvi.cc (main),
9238         src/devices/grohtml2/post-html.cc (main),
9239         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
9240         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
9241         (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
9242         (main), src/preproc/html2/pre-html.cc (main),
9243         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
9244         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
9245         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
9246         (main), src/utils/hpftodit/hpftodit.cc (main),
9247         src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
9248         (main), src/utils/lookbib/lookbib.cc (main),
9249         src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
9250         (main): Use stdout for -v.
9251         * src/roff/groff/groff.cc (run_commands),
9252         src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
9253         to make direct printing to stdout possible.
9254         * src/roff/groff/pipeline.h: Updated.
9256         * src/utils/afmtodit/afmtodit.pl: Add -v switch.
9257         * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
9258         * src/utils/afmtodit/afmtodit.man: Updated.
9260         * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
9261         (version): New function.
9262         (usage): Updated.
9263         * src/utils/addftinfo/addftinfo.man: Updated.
9265         * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
9266         Fixing copyright dates.
9268         * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
9269         replacing it.
9271         * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
9272         version_string.
9274         * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
9276 2000-11-15  Werner LEMBERG  <wl@gnu.org>
9278         In all programs, make -v return immediately with exit status 0 to
9279         be compliant with the GNU standard.
9281         * src/devices/grodvi/dvi.cc (main),
9282         src/devices/grohtml2/post-html.cc (main),
9283         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
9284         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
9285         (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
9286         (main), src/preproc/html2/pre-html.cc (main),
9287         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
9288         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
9289         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
9290         (main): Implement it.
9291         * NEWS: Updated.
9293         * src/roff/groff/groff.cc (main): Add copyright notice.  Add refer
9294         and postprocessors to the -v option.
9296         * src/roff/grog/grog.pl: Implement -v.
9297         * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
9298         * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
9300         * src/roff/nroff/nroff.sh: Implement -v.
9301         * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
9302         * src/roff/nroff/nroff.man: Updated.
9303         
9304         * src/preproc/eqn/main.cc (main): Fix comment typo.
9306         * MORE.STUFF: Added info about djgpp port of grap.
9308 2000-11-14  Werner LEMBERG  <wl@gnu.org>
9310         * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
9311         mode (or rather, implemented non-compatibility mode).
9312         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
9314         * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
9315         replacing it -- we don't find gxditview otherwise.
9316         * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
9318         * src/preproc/pic/depend: Removed.  Unnecessary.
9320         Implemented dummy keyword `solid' in pic for compatibility with
9321         AT&T pic.
9323         * lex.cc (lookup_keyword): Added `solid'.
9324         * pic.y: Added SOLID with dummy rule.
9325         * pic.cc, pic_tab.h: Regenerated.
9326         * doc/pic.ms: Updated.
9328 2000-11-13  Werner LEMBERG  <wl@gnu.org>
9330         For security reasons, don't use the current directory but the home
9331         directory while searching and scanning troffrc and troffrc-end.
9332         Similarly, replace the current directory with the home directory
9333         in the font path.
9335         * Makefile.in (fontpath, tmacpath): Remove current directory.
9337         * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
9338         two parameters `add_home' and `add_current'.
9339         (search_path::~search_path, search_path::command_line_dir,
9340         search_path::open_file): Remove tests for `dirs' being zero.
9341         * src/include/searchpath.h: Adjust.
9342         * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
9343         `safer_macro_path'.
9344         * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
9346         * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
9347         * src/roff/troff/input.cc: Use `mac_path', initialized with
9348         `macro_path'.
9349         (process_startup_file): Set `mac_path' to `safer_macro_path'.
9350         * src/roff/troff/env.cc: Use `mac_path'.
9352         * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
9354         * NEWS, man/roff.man, src/roff/troff/troff.man,
9355         src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
9356         Updated.
9358 2000-11-12  Werner LEMBERG  <wl@gnu.org>
9360         * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
9362         * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
9363         * configure.in: Fix typo in comment.
9364         * configure: Regenerated.
9366         * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
9367         copyright dates.
9369 2000-11-08  Werner LEMBERG  <wl@gnu.org>
9371         Add system tmac directory (/usr/local/lib/groff/site-tmac).
9373         * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
9374         (uninstall_dirs): Add $(libdir), $(libprogramdir), and
9375         $(systemtmacdir).
9376         Use @libdir@.
9377         * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
9378         * tmac/Makefile.sub (install_data): Create
9379         $(systemtmacdir) and $(localtmacdir).
9380         (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
9381         * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
9382         NEWS, doc/groff.texinfo: Updated and minor fixes.
9384         * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
9385         * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
9386         $(systemtmacdir) since the wrapper files are platform-dependent.
9388 2000-11-01  Werner LEMBERG  <wl@gnu.org>
9390         * doc/groff.texinfo: Fix typo.
9392 2000-10-26  Werner LEMBERG  <wl@gnu.org>
9394         Convert macros `tmac.XXX' to `XXX.tmac'.  Special cases:
9395           tmac.doc.old -> doc-old.tmac
9396           tmac.an.old  -> an-old.tmac
9398         * tmac/tmac.*: Moved to ...
9399         * tmac/*.tmac: this.
9400         * tmac/man.local: Fix comment.
9401         * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
9402         tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. 
9403         Added some `FILES' sections.  More use of @...@ directives.  Other
9404         minor updates.
9405         * arch/djgpp/README, font/devutf8/NOTES: Updated.
9406         * doc/homepage.ms, doc/groff.texinfo: Updated.
9407         * man/groff.man, man/roff.man: Updated.
9408         * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
9409         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
9410         src/devices/grotty/grotty.man: Updated.
9411         * src/preproc/pic/pic.man: Updated.
9412         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
9413         instead of -mdoc.old.
9414         * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
9415         * src/roff/nroff/nroff.man: Updated.
9416         * NEWS: Updated.
9418         * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
9420         * tmac/mm.diff: Removed -- it has no use now since the mm package
9421         is part of groff.
9423         * tmac/*: Removed trailing spaces.
9425         * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
9426         the tmac subdirectory also).
9428         * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
9429         * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
9430         stuff since it is no longer needed.
9432         * README, PROBLEMS: Updated.
9434 2000-10-25  Werner LEMBERG  <wl@gnu.org>
9436         Invert current behaviour: Search first FOOBAR.tmac, then
9437         tmac.FOOBAR.
9439         * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
9440         (open_mac_file, macro_source): Implement it.
9441         * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
9442         doc/groff.texinfo, NEWS: Document it.
9444         * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
9445         Small documentation improvements.
9447         * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
9448         subdirectory also).
9450         * font/devps/Makefile.sub: Fix rules for dingbats.*map.
9452 2000-10-24  Werner LEMBERG  <wl@gnu.org>
9454         Add local tmac directory (groff/site-tmac).
9456         * Makefile.in: Add $(localtmacdir).
9457         (uninstall_dirs): Add $(localtmacdir).
9458         * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
9459         * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
9460         in $(localtmacdir).  Create $(localtmacdir).
9461         * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
9462         Updated and minor fixes.
9464         Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
9466         * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
9468 2000-10-23  Werner LEMBERG  <wl@gnu.org>
9470         Move hyphen.us to tmac directory.
9472         * src/roff/troff/hyphen.us: Removed.
9473         * src/tmac/hyphen.us: Added.
9474         * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
9476         Change installation structure for data files from .../groff/... to
9477         .../groff/<version><revision>/... to be conform with other GNU
9478         programs.
9480         * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
9481         doc/Makefile: Implement it.
9482         * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
9483         * configure: Updated.
9484         * arch/djgpp/README, font/devutf8/NOTES: Use it.
9485         * NEWS: Document it.
9486         * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
9487         @MACRODIR@ instead of hard-coded directories.
9489 2000-10-22  Werner LEMBERG  <wl@gnu.org>
9491         Implement $GROFF_BIN_PATH environment variable (which defaults to
9492         $bindir) used for child programs of groff and similar wrappers.
9494         * gendefs.sh: Improve documentation.
9495         * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
9496         src/preproc/eqn/Makefile.sub (neqn),
9497         src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
9498         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
9499         $GROFF_BIN_PATH.
9500         * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
9501         $GROFF_PATH__ (the latter for communication with troff).
9502         * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
9503         set.
9504         * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
9505         doc/groff.texinfo: Document it.
9507         * doc/groff.texinfo: Improve documentation of troff's -a option.
9509 2000-10-17  Gaius Mulley  <gaius@glam.ac.uk>
9511         * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
9512         non-intrusive eol marker.
9513         (troff_output_file::determine_line_limits): New function.
9514         (troff_output_file::draw): Use it.
9515         * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
9516         output_pending_lines() instead of output_line().
9517         * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
9518         * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
9519         createImage): Small fixes.
9520         
9521 2000-10-14  Werner LEMBERG  <wl@gnu.org>
9523         Replace tmac.safer with a real secure solution.
9525         * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
9526         system_request, pipe_output): Disable requests if in safer mode.
9527         * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
9528         * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
9529         * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
9530         doc/groff.texinfo, src/roff/groff/groff.man,
9531         src/roff/troff/troff.man, arch/djgpp/README: Updated.
9533         * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
9534         (resource_manager::output_prolog): Replace setenv() with putenv().
9536 2000-10-09  Werner LEMBERG  <wl@gnu.org>
9538         * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
9539         src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
9540         src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
9541         src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
9542         compilation errors with some compilers.  It seems that this code
9543         is no longer necessary -- if yes, it is easy to add some #ifdef's
9544         for that particular old-fashioned compiler.
9546         * MORE.STUFF: Added info about Meta-tbl.
9548         * doc/groff.texinfo: Added more info about `.if "..."..."'.
9550 2000-10-07  Werner LEMBERG  <wl@gnu.org>
9552         Adding a new escape sequence \B'...': If the string between
9553         the delimiters is a valid numeric expression, return the character
9554         `1', and `0' otherwise.  This is an analogon to \A.
9556         * src/roff/troff/input.cc (do_expr_test): Implement it.
9557         (token::next): Use it.
9558         * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
9560         * tmac/tmac.trace: Made independent from escape character.
9562 2000-10-06  Werner LEMBERG  <wl@gnu.org>
9564         Adding a new request .dei: define indirect.  The first and second
9565         parameter of .dei are taken from string registers instead directly;
9566         this very special request is needed to make tmac.trace independent
9567         from the escape character (which might even be disabled).
9569         * src/roff/troff/input.cc (do_define_macro): Implement it.
9570         (define_macro_indirect): New function.
9571         (init_input_requests): Use it.
9573         Adding two requests .ecs and .ecr: Save and restore the escape
9574         character.  These two requests are needed to make tmac.trace
9575         independent from the escape character (which might even be
9576         disabled).
9578         * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
9579         Implement it.
9580         (init_input_requests): Use it.
9582         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
9584 2000-09-22  Ricardo Soares Guimarães  <ricardo@conectiva.com.br>
9586         Adding a new option -P and new environment variable GROPS_PROLOGUE
9587         to grops, selecting a different prologue file (minor modifications
9588         by WL).
9590         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
9591         src/devices/grops/ps.cc (main): Implement it.
9592         * src/devices/grops/grops.man, NEWS: Document it.
9594 2000-09-22  Werner LEMBERG  <wl@gnu.org>
9596         * INSTALL: Add info about selecting paper format.
9598 2000-09-21  Werner LEMBERG  <wl@gnu.org>
9600         * src/roff/troff/input.cc (main): Fixing compiler warning.
9601         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
9602         strings.h from the former to the latter.
9603         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
9604         stuff from the former to the latter.
9606 2000-09-11  Werner LEMBERG  <wl@gnu.org>
9608         Implementing two new requests .tm1 and .tmc: The former is similar
9609         to .tm but can output leading spaces; its syntax is similar to
9610         defining a string, i.e., a `"' can be used to mark the beginning of
9611         the string to be written to stderr: `.tm1 " test'.  The latter is
9612         similar to .tm1 but doesn't write out a final newline character.
9614         * src/roff/troff/input.cc (terminal1, terminal_continue,
9615         do_terminal): New functions.
9616         (init_input_requests): Use them.
9617         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
9619 2000-09-09  Werner LEMBERG  <wl@gnu.org>
9621         * tmac/groff_mdoc.samples.man: Small fixes.
9623 2000-09-08  Werner LEMBERG  <wl@gnu.org>
9625         * tmac/groff_mdoc.man: Fixing typo.
9627 2000-09-02  Werner LEMBERG  <wl@gnu.org>
9629         Implementing a .nop request which does nothing.
9631         * src/roff/troff/input.cc (nop_request): New function.
9632         (init_input_requests): Use it.
9633         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
9635 2000-09-01  Werner LEMBERG  <wl@gnu.org>
9637         * doc/groff.texinfo: Added some comments.
9639 2000-08-30  Werner LEMBERG  <wl@gnu.org>
9641         * src/roff/troff/TODO: Updated.
9643 2000-08-25  Werner LEMBERG  <wl@gnu.org>
9645         * doc/groff.texinfo: Fix comment how to compile the DVI file.
9647 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
9649         * font/devps/generate/Makefile (SHELL): Define explicitly to
9650         "/bin/sh", for non-Unix platforms.
9651         (extraclean): Use a more portable "" quoting instead of a
9652         backslash (which doesn't work on DOS/Windows).
9653         
9654         * font/devlj4/generate/Makefile (extraclean): Ditto.
9656         * font/devdvi/generate/Makefile (extraclean): Ditto.
9658 2000-08-25  Werner LEMBERG  <wl@gnu.org>
9660         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
9661         src/roff/troff/troff.man: Document Eli's latest changes.
9663 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
9665         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
9666         macro file names of the form NAME.tmac as well as tmac.NAME.
9668 2000-08-25  Werner LEMBERG  <wl@gnu.org>
9670         * src/include/posix.h: Remove definition of FILENAME_MAX.
9672         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
9673         `sys_fatal' and `stop' function().
9675         * test-groff: Updated.
9677 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
9679         Added the new troff command .output <arg> to suppress output (while
9680         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
9681         registers (for passing the output dimensions to the output device).
9683         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
9684         parameter.
9685         * src/roff/troff/node.h, src/roff/troff/node.cc
9686         (troff_output_file::really_print_line,
9687         ascii_output_file::really_print_line,
9688         supress_output_file::really_print_line): Use `width' parameter.
9689         (troff_output_file::really_on, troff_output_file::really_off,
9690         output_file::on, output_file::off, real_output_file::on,
9691         real_output_file::off, real_output_file::really_on,
9692         real_output_file::really_off): New functions.
9693         (real_output_file:public output_file): New variable `output_on'.
9694         (real_output_file::begin_page, real_output_file::copy_file,
9695         real_output_file::transparent_char, real_output_file::print_line):
9696         Use it.
9697         (real_output_file::print_line): Use check_output_limits.
9698         * src/roff/troff/reg.h, src/roff/troff/request.h,
9699         src/roff/troff/input.cc (assign_registers): New function to remove
9700         two `goto's.
9701         (do_ps_file): Use it.
9702         (check_output_limits, reset_output_registers, output_request,
9703         init_output_requests): New functions.
9704         (init_input_requests): Updated.
9706         Added new grohtml2 device and html2 preprocessor (coding
9707         not yet finished) which will eventually replace grohtml.
9709         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
9710         Updated.
9711         * src/include/htmlindicate.h, src/include/htmlindicate
9712         (html_begin_suppress, html_end_suppress): New functions.
9713         * src/preproc/tbl/main.cc: Use it.
9714         * src/roff/groff/groff.cc: Add support for html2 device (which will
9715         automatically invoke the html2 preprocessor).
9716         * src/roff/troff/input.cc (is_html2): New variable.
9717         * src/roff/troff/troff.h, src/roff/troff/env.h,
9718         src/roff/troff/env.cc (environment::add_html_tag): New function
9719         (uses `is_html2').
9720         (environment::do_break): Use it.
9721         * font/devhtml2/*: New files.
9722         * src/devices/grohtml2: New device.
9723         * src/preproc/html2: New preprocessor.
9724         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
9726 2000-08-23  Werner LEMBERG  <wl@gnu.org>
9728         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
9730 2000-08-22  Werner LEMBERG  <wl@gnu.org>
9732         * src/include/lib.h: Provide a fix for IRIX to not include
9733         groff-getopt.h.
9735 2000-08-18  Werner LEMBERG  <wl@gnu.org>
9737         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
9738         since some non-GNU sed programs can't handle null regexps.
9739         * configure, src/preproc/eqn/Makefile.sub,
9740         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
9742         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
9743         bug (string.h and strings.h are both needed according to latest
9744         POSIX standard).
9746         * MORE.STUFF: Added info about unroff and troffcvt.
9748 2000-08-08  Werner LEMBERG  <wl@gnu.org>
9750         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
9751         used before -ms.
9753         * tmac/tmac.man.old: Remove unused number register.
9755         * tmac.doc: Minor documentation fix.
9757 2000-08-07  Paul Eggert  <eggert@twinsun.com>
9759         * src/roff/groff/pipeline.c (is_system_shell):
9760         Fix typo: "monocased_shell" no longer exists.
9762 2000-08-07  Paul Eggert  <eggert@twinsun.com>
9764         Remove FILENAME_MAX limits.
9766         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
9767         that the argument length is less than FILENAME_MAX.
9768         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
9769         Use struct hack to allocate and free file name.
9770         (struct xtmpfile_list): fname is now part of the structure,
9771         not a pointer to another string.
9773 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
9775         * src/include/posix.h: Add a default value for FILENAME_MAX.
9777 2000-08-06  Paul Eggert  <eggert@twinsun.com>
9779         Add support for new BSD-style man pages (with ".Dd" instead of
9780         ".TH"), so that "groff -man" understands both styles, even
9781         when running "groff -man" on a host whose system man page
9782         macros don't support ".Dd".
9784         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
9785         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
9786         in case the system man macros don't define Dd or TH.
9788         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
9789         * tmac/tmac.an: New one-line file.
9790         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
9792 2000-08-06  Werner LEMBERG  <wl@gnu.org>
9794         * src/roff/troff/troff.man: Fixing typos.
9796 Version 1.16.1 released
9797 =======================
9799 2000-07-31  Werner LEMBERG  <wl@gnu.org>
9801         Preparing release 1.16.1.
9803         * REVISION: Revision number set to 1.
9804         * MORE.STUFF: Added info about port to DOS.
9805         * NEWS, win32-diffs: Updated.
9807         * src/include/nonposix.h: Remove first line -- this file is used
9808         in C also.
9810         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
9811         link to it.
9813 2000-07-30  Werner LEMBERG  <wl@gnu.org>
9815         * doc/texinfo.tex: Update to latest version.
9817 2000-06-28  Paul Eggert  <eggert@twinsun.com>
9819         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
9820         commands that fail.  Don't assume that "export a=b" is valid shell
9821         syntax.  This is needed for Solaris 2.5.1.
9823         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
9824         comment about missing Solaris headers.
9826         * PROBLEMS: Add section about problems with Sun Make and VPATH.
9828 2000-06-25  Werner LEMBERG  <wl@gnu.org>
9830         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
9831         SET_BINARY().
9833         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
9835         * win32-diffs: Updated.
9836         * README.WIN32: Added CRs to make all Windows editors happy.
9838         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
9839         src/roff/groff/pipeline.c).
9841 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
9843         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
9844         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
9846 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
9848         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
9849         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
9850         are binary files.
9851         (main): Support non-Posix systems with several different styles of
9852         slash characters in file names.
9854         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
9855         (main) [SET_BINARY]: Switch stdin into binary mode.
9857         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
9858         (main): Support file names with several possible slash-type
9859         characters, as given by DIR_SEPS[] in nonposix.h.
9860         (main) [__MSDOS__]: If renaming the temporary index file fails
9861         because it has more than one dot in its trunk, replace the dot
9862         with an underscore and try again.
9863         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
9864         Newline.
9865         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
9867         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
9868         (File::File): Open the input file in binary mode.  Strip CR
9869         characters from each CR-LF pair.
9870         (xbasename): Support file names with several possible slash-type
9871         characters, as given by DIR_SEPS[] in nonposix.h.
9873         * src/include/Makefile.sub (HDRS): Add nonposix.h.
9875         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
9876         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
9877         [!_POSIX_VERSION]: Define for traditional Unix systems.
9878         (real_output_file::real_output_file): Remove the MSVC-specific
9879         call to popen, use instead POPEN_WT, appropriately defined on
9880         nonposix.h.  #include nonposix.h.
9881         (real_output_file::~real_output_file): Remove the MSVC-specific
9882         call to pclose, a suitable macro is now defined on nonposix.h.
9883         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
9884         and WEXITSTATUS instead of assuming traditional Unix
9885         interpretation of the status returned by pclose.
9887         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
9888         call to popen, use POPEN_RT instead (appropriately defined on
9889         nonposix.h).  #include nonposix.h.
9890         (ps_bbox_request): Open the PostScript file in binary mode.
9891         Close the file after processing it.
9892         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
9893         nonposix.h.
9895         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
9896         A version of run_pipeline that doesn't use `fork'.
9897         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
9898         (system_shell_name, system_shell_dash_c)
9899         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
9900         the ugliness of testing DOS/Windows file names for equality, and
9901         support both stock shells and ports of Unix shells.
9903         * src/roff/groff/groff.cc: #include nonposix.h.
9904         (BSHELL): Definition moved to nonposix.h.
9905         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
9906         instead of a literal "-c".
9907         (xbasename): Support file names with several possible slash-type
9908         characters, as given by DIR_SEPS[] in nonposix.h.
9909         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
9910         of literal strings.
9912         * src/preproc/soelim/soelim.cc: #include nonposix.h.
9913         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
9915         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
9916         pic_tab.h.
9918         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
9920         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
9921         eqn_tab.h.
9923         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
9925         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
9926         P_tmpdir is defined, use it instead of the literal "/tmp".
9927         (remove_tmp_files, add_tmp_file): New functions.
9928         (xtmpfile): Record temporary files and register an atexit function
9929         to delete them explicitly, instead of relying on the OS to do
9930         that, which doesn't work on non-Unix systems.
9932         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
9933         (search_path::search_path): Use PATH_SEP instead of a literal
9934         colon.
9935         (search_path::command_line_dir): Ditto.
9936         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
9937         to support non-Posix systems.
9939         * src/libs/libbib/search.cc: #include nonposix.h.
9940         (search_list::add_file): Open the file in binary mode.
9942         * src/libs/libbib/linear.cc: #include nonposix.h.
9943         (file_buffer::load): Remove \r characters preceding \n from the
9944         loaded buffer.
9946         * src/libs/libbib/index.cc: #include nonposix.h.
9947         (make_index_search_item): Open index_filename in O_BINARY mode.
9948         (index_search_item_iterator::get_tag): Ditto.  Remove \r
9949         characters before \n characters.
9950         (index_search_item::check_files): Open files in binary mode.
9951         (index_search_item::munge_filename): Support DOS-style file names
9952         with backslashes and drive letters, use IS_ABSOLUTE.
9954         * src/devices/grops/ps.cc: #include nonposix.h.
9955         (main) [SET_BINARY]: Switch stdout to binary mode.
9957         * src/devices/grolj4/lj4.cc: #include nonposix.h.
9958         (main) [SET_BINARY]: Switch stdout to binary mode.
9960         * src/devices/grolbp/lbp.cc: #include nonposix.h
9961         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
9963         * src/devices/grodvi/dvi.cc: #include nonposix.h.
9964         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
9965         nonposix.h).
9966         (main) [SET_BINARY]: Switch stdout to binary mode.
9967         [_MSC_VER]: Remove an explicit call to _setmode.
9969         * src/include/nonposix.h: New file.
9971         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
9972         operation when building with DJGPP.
9973         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
9974         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
9975         ENVSETUP.
9977         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
9978         MS-DOS.
9979         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
9980         etc. can include a semi-colon on DOS/Windows.
9981         (depend.temp): Use depend1.temp instead of depend.temp1, to
9982         prevent files from overerwiting each other on 8+3 filesystems.
9984         * gendef.sh (t): Change definition to work with DOS/Windows.
9986         doc/groff.texinfo: Apart of some typo corrections, I also changed
9987         some index entris, to make them more non-ambiguous, and also put
9988         @ignore around some parts that are not yet written, to allow the
9989         Info output be readable.
9991 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
9993         Replaced specific checks for function declarations with a generic
9994         routine taken from GNU bfd.
9996         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
9997         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
9998         * configure.in: Use it.
9999         * src/devices/grolbp/lbp.cc, src/include/lib.h,
10000         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
10001         src/roff/groff/groff.cc: Use it.
10002         * Makefile.in, configure: Updated.
10004 2000-06-07  Paco Andrés Verdú  <pandres@dragonet.es>
10006         * src/devides/grolbp/lbp.h: Removed unused variables.
10008 2000-05-31  Keith Thompson  <kst@sdsc.edu>
10010         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
10011         strncasecmp().
10013 2000-05-31  Werner LEMBERG  <wl@gnu.org>
10015         * aclocal.m4 (GROFF_SRAND): New function to test the return value
10016         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
10017         * configure.in: Use it.
10018         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
10019         * configure, Makefile.in: Updated.
10021         * configure.in: Add test for strncasecmp().
10022         * src/include/lib.h: Use it.
10024 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
10026         * src/preproc/grn/Makefile.sub: Add MLIB.
10028 2000-05-29  Nix  <nix@esperi.demon.co.uk>
10030         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
10032 2000-05-29  Werner LEMBERG  <wl@gnu.org>
10034         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
10036         * PROBLEMS: Small update.
10038         * src/devices/grolbp/lbp.cc: Various small fixes.
10040 2000-05-28  Keith Thompson  <kst@sdsc.edu>
10042         * src/roff/nroff/nroff.sh: Fix main loop syntax.
10044         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
10046 2000-05-25  Werner LEMBERG  <wl@gnu.org>
10048         * man/roff.man: Removed unused macro.
10050 2000-05-24  Werner LEMBERG  <wl@gnu.org>
10052         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
10053         This is needed e.g. if you do
10054         `make distclean; ./configure; make dist'.
10056 Version 1.16 released
10057 =====================
10059 2000-05-23  Werner LEMBERG  <wl@gnu.org>
10061         Adding font CWI (constant width italic) to devdvi.
10063         * font/devdvi/CWI: New file.
10064         * font/devdvi/generate/Makefile: Add generating rule.
10065         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
10066         tmac/tmac.dvi: Use it.
10067         * NEWS: Announce it.
10069         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
10070         * font/devlj4/generate/Makefile: Cosmetic changes only.
10072         * man/groff.man: Removed most of the redundant description of
10073         special characters (which is in groff_char.man).  Added font
10074         translation CB->CR for devdvi.  Other minor fixes.
10076         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
10077         (registered) symbols.
10079 2000-05-22  Werner LEMBERG  <wl@gnu.org>
10081         * doc/Makefile: Added rule for creating info files.
10083         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
10084         AMS font metrics.
10085         * font/devdvi/generate/Makefile: Fixed dependencies.
10087         * font/devps/*: Regenerated.  Heavy changes for Bookman and
10088         NewCentury Schoolbook!
10089         * font/devps/generate/afmname: Will now run with GNU awk.
10090         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
10091         * font/devps/generate/Makefile: Cosmetic changes only.
10093 2000-05-21  Werner LEMBERG  <wl@gnu.org>
10095         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
10096         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
10097         `.SS' now produces a heading with a smaller size than `.SH'. 
10098         Completely formatted.
10099         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
10101         * man/groff.man: Improved table appearance.  Use of `eo' request
10102         to reduce number of doubled backslashes in macro definitions.
10103         Replacing `\e' with `\(rs'.  Other minor fixes.
10105         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
10106         to have correct line number.
10108         * INSTALL: Small improvement.
10110 2000-05-20  Bernd Warken  <bwarken@mayn.de>
10112         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
10113         WL).
10115 2000-05-19  Bernd Warken  <bwarken@mayn.de>
10117         * man/groff.man: Complete update (with a lot of corrections by WL).
10119 2000-05-18  Werner LEMBERG  <wl@gnu.org>
10121         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
10123         * font/*/*: Implement it.
10124         * man/groff_char.man, NEWS: Document it.
10126         * src/include/unix.h: Removed.  It isn't used.
10128         * doc/groff.texinfo: Slight improvements.
10130 2000-05-17  Werner LEMBERG  <wl@gnu.org>
10132         * README, win32-diffs: Small fixes and improvements.
10134 2000-05-16  Werner LEMBERG  <wl@gnu.org>
10136         * FDL: New file (the Free Documentation License version 1.1).
10138         * doc/groff.texinfo: Added many start-up values for gtroff.
10139         Some structural improvements of the source code.
10141 2000-05-15  Werner LEMBERG  <wl@gnu.org>
10143         * src/roff/troff/input.cc: Added small comment about troffrc-end.
10144         * src/roff/troff/troff.man: Added info about troffrc-end.
10146 2000-05-14  Werner LEMBERG  <wl@gnu.org>
10148         * Makefile.in (EXTRADIRS): Fix typos.
10149         (dist): Handle deletion of old .tar.gz file correctly.
10150         (DISTDIRS): Include all tty output devices.
10152         * doc/groff.texinfo: Adding more cross references; countless other
10153         fixes.
10155 2000-05-13  Werner LEMBERG  <wl@gnu.org>
10157         * MORE.STUFF: Added Robert Marks's utilities.
10159 2000-05-12  Werner LEMBERG  <wl@gnu.org>
10161         Added win32 port contributed by Blake McBride
10162         <blake@florida-software.com>.
10164         * README.WIN32, win32-diffs: New files.
10165         * NEWS: Updated.
10167         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
10168         (tmove, tmove2): Added parentheses to avoid compiler warnings.
10169         (change): Removed unused variables.
10171         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
10172         (savebounds): Changed return value from `int' to `void'.
10173         * src/preproc/grn/hdb.cc: Ditto.
10175         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
10176         final backslash in comment to avoid compiler warning.
10178         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
10180         * doc/groff.texinfo: More fixes.
10182 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
10184         * tmac/tmac.doc: Documentation fix.
10186 2000-05-11  Werner LEMBERG  <wl@gnu.org>
10188         * doc/groff.texinfo: Reading the source code shows up a lot of
10189         omissions and incorrect data...  More conversion to @Deffn macros.
10191 2000-05-10  Werner LEMBERG  <wl@gnu.org>
10193         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
10194         dependency.
10196         * src/roff/troff/request.h: Removing unused `no_break_flag'.
10198 2000-05-09  Werner LEMBERG  <wl@gnu.org>
10200         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
10201         improvements.
10203         * doc/groff.texinfo: Extended history section.  More conversion to
10204         @Deffn macros.  More .tr documentation.
10206 2000-05-07  Werner LEMBERG  <wl@gnu.org>
10208         * doc/groff.texinfo: Completed tab section.  Added info about
10209         fields.
10211 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
10213         * PROBLEMS: Describe configure script fix for OS/390 Unix.
10215 2000-05-05  Werner LEMBERG  <wl@gnu.org>
10217         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
10218         LaTeX 2e).
10219         * NEWS: Document it.
10221         * man/troff.man: Minor optical improvements.
10223 2000-05-03  Werner LEMBERG  <wl@gnu.org>
10225         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
10227         * font/*/*: Implement it.
10228         * man/groff_char.man, NEWS: Document it.
10230 2000-05-02  Werner LEMBERG  <wl@gnu.org>
10232         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
10233         expansion.
10234         * NEWS: Document the three new man pages.
10236         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
10237         * configure: Updated.
10239         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
10241 2000-05-01  Werner LEMBERG  <wl@gnu.org>
10243         Added grap support to grog.
10245         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
10246         * src/roff/grog/grog.man: Document it.
10248         * doc/groff.texinfo, NEWS: Add info about grap support.
10250         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
10251         (with slight fixes by me).
10253         * tmac/groff_tmac.man: New file documenting tmac mechanism.
10254         * tmac/Makefile.sub: Add groff_tmac.man.
10255         * man/roff.man: New file giving overview of roff system.
10256         * man/troff.man: A short reference of troff.
10257         * man/Makefile.sub: Add roff.man and troff.man.
10259 2000-04-30  Werner LEMBERG  <wl@gnu.org>
10261         Added grap support to groff.
10263         * src/roff/groff/groff.cc: Implement it.
10264         * src/roff/groff/groff.man: Document it.
10266         * src/devices/grotty/grotty.man: Add cp1047 device.
10267         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
10268         Ditto.
10269         * src/roff/groff/groff.man: Ditto.
10270         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
10271         * doc/groff.texinfo: Ditto.
10273         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
10274         for cp1047.
10276 2000-04-29  Werner LEMBERG  <wl@gnu.org>
10278         * man/groff_char.man: Add `pc' glyph.
10279         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
10280         * tmac/tmac.tty: Add `pc' glyph.
10281         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
10282         we use cp1047 output device.
10284         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
10285         there are still hardcoded latin1->unicode values in utf8's font
10286         definition files.
10287         * configure: Updated.
10288         * NEWS: Minor clarification.  Updated.
10290         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
10291         Unix.
10293 2000-04-28  Werner LEMBERG  <wl@gnu.org>
10295         Adding EBCDIC code page 1047.
10297         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
10298         font/devcp1047/DESC.proto: New files.
10300         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
10301         either ascii/latin1 or cp1047.
10302         * Makefile.in: Use it.
10303         * configure: Updated.
10305         Replacing and/or adding `md' (mathdot) glyph with `pc'
10306         (periodcentered) in all text fonts.
10308         * font/*/*: Change it.
10310 2000-04-27  Werner LEMBERG  <wl@gnu.org>
10312         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
10314         * configure.in: Add check for strings.h.
10315         * src/include/driver.h: Use HAVE_STRINGS_H.
10316         * src/devices/grolbp/lpb.cc: Remove string.h.
10318         * src/include/groff-getopt.h: New file.  It will be used instead of
10319         getopt.h (to be included in lib.h) to avoid endless problems with
10320         picky C++ compilers.
10321         * src/include/lib.h: Use groff-getopt.h.
10322         * src/include/Makefile.sub: Updated.
10324         * configure: Updated.
10325         * Makefile.in: Updated.
10327         * NEWS: Mention EBCDIC support.
10329 2000-04-26  Werner LEMBERG  <wl@gnu.org>
10331         * TODO: Some additions.
10333 2000-04-25  Werner LEMBERG  <wl@gnu.org>
10335         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
10336         of mso request.
10338 2000-04-23  Werner LEMBERG  <wl@gnu.org>
10340         * src/roff/troff/troff.man: Minor fixes.
10342 2000-04-22  Werner LEMBERG  <wl@gnu.org>
10344         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
10345         `.T' string register and the incompatible definition of the `.T'
10346         number register (compared to Unix troff).
10348         * man/groff_char.man: Add some missing characters.
10349         * font/devutf8/NOTES: Update.
10351 2000-04-21  Werner LEMBERG  <wl@gnu.org>
10353         * src/include/htmlindicate.h, src/include/lib.h,
10354         src/include/posix.h: Fix copyright.
10356         * src/include/Makefile.sub: Update.
10358 2000-04-20  Werner LEMBERG  <wl@gnu.org>
10360         * src/roff/troff/input.cc (input_char_description): Removing
10361         superfluous space char.
10363         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
10365         * doc/groff.texinfo: Document EBCDIC.
10367 2000-04-19  Werner LEMBERG  <wl@gnu.org>
10369         Introducing `shc' as the glyph name for the soft hyphen character.
10371         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
10372         font/devlatin1/R.proto: Use it.
10374         * NEWS: Updated.
10376 2000-04-18  Werner LEMBERG  <wl@gnu.org>
10378         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
10379         dependency on ASCII order.
10381 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
10383         * src/libs/libgroff/illegal.c: Added EBCDIC table.
10384         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
10386         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
10387         to increase portability.
10389 2000-04-15  Werner LEMBERG  <wl@gnu.org>
10391         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
10392         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
10393         the generic `\n' if under OS/390 Unix.
10395         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
10397         * configure: Regenerated.
10399 2000-04-14  Werner LEMBERG  <wl@gnu.org>
10401         * doc/groff.texinfo: More conversions to @Deffn.
10403 2000-04-12  Werner LEMBERG  <wl@gnu.org>
10405         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
10406         with `:'.
10408         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
10410 2000-04-10  Werner LEMBERG  <wl@gnu.org>
10412         * doc/groff.texinfo: More conversions to @Deffn.
10414 2000-04-08  Werner LEMBERG  <wl@gnu.org>
10416         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
10417         Updated to latest version (glibc 2.1.3).
10419 2000-04-07  Werner LEMBERG  <wl@gnu.org>
10421         * doc/Makefile (clean): Include more index files.
10422         Add rule texinfo->dvi.
10424 2000-04-05  Werner LEMBERG  <wl@gnu.org>
10426         * doc/groff.texinfo: Added new index `op' for operators.  More
10427         info on end of sentence characters.  More use of @Deffn.
10429 2000-03-30  Werner LEMBERG  <wl@gnu.org>
10431         * */*.man: Adding a note that a whitespace can be inserted between
10432         a command line option and its parameter -- we are using GNU getopt.
10434         * src/roff/groff/groff.man: Add example of `-m mandoc'.
10436 2000-03-28  Werner LEMBERG  <wl@gnu.org>
10438         Correct anachronism of calling the man macro file with `-man'
10439         instead of `-m man' etc.
10441         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
10442         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
10443         load tmac.<package>.
10445         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
10447         * NEWS: Updated.
10449         * doc/groff.texinfo: Updated.
10451         * tmac/groff_man.man: Copyright added.
10453 2000-03-27  Werner LEMBERG  <wl@gnu.org>
10455         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
10456         typeset the request resp. escape name with a tt font -- due to a
10457         bug in texinfo.tex it is necessary to use the `-e' switch with
10458         texi2dvi.
10460         Improving info about usage of groff units.
10462         Other minor fixes.
10464 2000-03-20  Werner LEMBERG  <wl@gnu.org>
10466         * doc/groff.texinfo: Added section about man macro package
10467         (I've basically taken groff_man.man).  Introducing new indices `ma'
10468         for macros/strings and `gl' for glyph names.  Other minor fixes.
10470         * tmac/groff_man.man: Fixed some typos.
10472 2000-03-19  Werner LEMBERG  <wl@gnu.org>
10474         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
10475         Other minor fixes.
10477         * doc/texinfo.tex: New file.
10479 2000-03-18  Werner LEMBERG  <wl@gnu.org>
10481         * doc/groff.texinfo: Improved section on number registers.  Other
10482         minor updates.
10484 2000-03-16  Werner LEMBERG  <wl@gnu.org>
10486         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
10487         synopsis.
10489         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
10490         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
10491         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
10492         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
10494         * src/preproc/grn/grn.man: Better synopsis; added copyright.
10496         * src/roff/grog/grog.man: Updated copyright date.
10498 2000-03-14  Francisco Andrés Verdú  <pandres@dragonet.es>
10500         * configure.in: Added test for strdup.
10502         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
10503         is available.
10505         Replaced dynamic allocation of arrays `[...]' with `new' operator.
10507         Other minor fixes.
10509 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
10511         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
10513 2000-03-11  Werner LEMBERG  <wl@gnu.org>
10515         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
10516         compilers silent.
10517         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
10518         * src/include/lib.h: Remove some spaces.
10520 2000-03-10  Werner LEMBERG  <wl@gnu.org>
10522         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
10523         initializers from arguments (some compilers don't like this).
10525 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
10527         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
10528         used by pic and eqn to tell grohtml where the graphic regions start
10529         and end.
10530         * src/libs/libgroff/Makefile.sub: Use it.
10531         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
10532         graphic_start() and graphic_end() from htmlindicate.cc.
10534 2000-03-09  Werner LEMBERG  <wl@gnu.org>
10536         * tmac/tmac.safer: Will now work correctly in compatibility mode.
10537         * tmac/groff_man.man: More fixes.
10539 2000-03-08  Werner LEMBERG  <wl@gnu.org>
10541         * doc/Makefile: Added texput.log to the `clean' target.
10542         * doc/groff.texinfo: Added info about delimiters for escapes.
10544 2000-03-08  Bernd Warken  <bwarken@mayn.de>
10546         * src/preproc/pic/pic.man: Add info on conversion of pic images to
10547         other graphic formats.
10549 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
10551         * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
10552         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
10553         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
10554         files.
10556 2000-03-07  Werner LEMBERG  <wl@gnu.org>
10558         * doc/groff.texinfo: Spelling fixes.
10560 2000-03-06  Werner LEMBERG  <wl@gnu.org>
10562         * tmac/groff_man.man: Completely revised to cover everything in
10563         tmac.an.
10565         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
10566         Other minor fixings.
10567         * src/roff/troff/env.cc (environment_copy): Improve error message and
10568         fix itoa->i_to_a.
10569         * src/roff/troff/TODO: Updated.
10571         * doc/Makefile: Bug fixes -- this is still provisional, though...
10573         * tmac/eqnrc: Small fixes.
10575 2000-03-05  Abramo Bagnara  <abramo@alsa-project.org>
10577         Adding a request `evc' to copy environments.
10579         * src/roff/troff/env.cc (environment::copy, environment_copy):
10580         Implement it.
10581         * src/roff/troff/env.h: Add prototype.
10583 2000-03-05  Francisco Andrés Verdú  <pandres@dragonet.es>
10585         Adding strsep() -- Solaris 8 doesn't have it.
10587         * configure.in: Test it.
10588         * src/devices/grolbp/lbp.cc: Add code.
10590 2000-03-05  Werner LEMBERG  <wl@gnu.org>
10592         * src/roff/troff/div.cc (macro_diversion::output,
10593         top_level_diversion::output): Fixing an incompatibility with
10594         original troff: \x'0' updates the .a register also.  Thanks to
10595         <Andries.Brouwer@cwi.nl> for pointing this out.
10596         * doc/groff.texinfo: Document it.
10598         * Makefile.in: Create Makefile.dep if necessary before calling the
10599         submake process to avoid warning about nonexistent file.
10601         * NEWS, PROJECTS: Updated.
10603 2000-03-04  Werner LEMBERG  <wl@gnu.org>
10605         * tmac/troffrc: Add tmac.lbp.
10607 2000-03-03  Francisco Andrés Verdú  <pandres@dragonet.es>
10609         * tmac/tmac.lbp: New file.
10610         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
10611         command.
10613 2000-03-03  Werner LEMBERG  <wl@gnu.org>
10615         * Makefile.in: Fixing $(subdir).
10617         * README, NEWS: Small fixes.
10619         * test-groff: Adding path to grolbp.
10621         * configure.in: The (new) file src/xditview/Imakefile.in will be
10622         also configured -- it is now possible to build gxditview in a
10623         directory different from $srcdir.
10625 2000-03-02  Blake McBride  <blake@florida-software.com>
10627         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
10629         * MORE.STUFF: Added website of bell labs and info about plot2dev.
10631 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
10633         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
10634         files.
10636 2000-02-29  Werner LEMBERG  <wl@gnu.org>
10638         Adding GNU getopt to the groff distribution.
10640         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
10641         New files.
10642         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
10643         * aclocal.a4: Remove GROFF_GETOPT function.
10644         * configure.in, Makefile.in, PROBLEMS: Update.
10645         * src/include/lib.h: Replace getopt tests with getopt.h.
10646         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
10648         * doc/groff.texinfo: Further checking/updating.  Adding more index
10649         entries.
10651         * man/groff_out.man: Fix nroff mode activation (for emacs).
10652         * man/groff_font.man: Add missing ligature.
10654 2000-02-28  Werner LEMBERG  <wl@gnu.org>
10656         * doc/groff.texinfo: Further checking/updating.  Adding more index
10657         entries.
10659         * src/devices/grolbp/grolbp.man: Added a comment line at the
10660         beginning of the file (similar to shell scripts) which indicates
10661         that `tbl' should be used as a preprocessor.
10663 2000-02-27  Blake McBride  <blake@florida-software.com>
10665         Adapting groff to MS Visual C++ 6.0 compiler (tested with
10666         Windows NT 4.0).  Uses _MSC_VER define where necessary.
10668         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
10669         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
10670         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
10671         src/include/lib.h, src/libs/libgroff/errarg.cc,
10672         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
10673         src/preproc/refer/label.y, src/preproc/refer/label.cc,
10674         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
10675         src/roff/troff/div.cc, src/roff/troff/env.cc,
10676         src/roff/troff/input.cc, src/roff/troff/node.cc,
10677         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
10678         if_to_a() to avoid name clashes.
10679         * src/include/posix.h: Don't use unistd.h.
10680         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
10681         clause for integrating non-Unix xtmpfile() code.
10682         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
10683         structure; use "rt" for popen() in pipe_source(); add getpid()
10684         dummy function.
10685         * src/roff/troff/node.cc: Use special versions of popen() in
10686         real_output_file() and pclose() in ~real_output_file().
10688 2000-02-27  Werner LEMBERG  <wl@gnu.org>
10690         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
10691         LBP-8 series laser printers).  This code has been contributed by
10692         Francisco Andrés Verdú <pandres@dragonet.es>.
10694         * src/devices/grolbp/*: The grolbp output device.
10695         * font/devlpb/*: The font description files.
10696         * Makefile.in: Add grolpb and devlbp subdirectories.
10698         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
10699         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
10700         typographic fixes.
10702         * doc/groff.texinfo: Further checking/updating.  Adding more index
10703         entries.
10705         * NEWS: Updated.
10707         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
10709         * man/groff_font.man: Adding info about obsolete DESC keywords.
10710         * src/devices/grolj4/grolj4.man: Documenting additional DESC
10711         keywords.
10713 2000-02-26  Werner LEMBERG  <wl@gnu.org>
10715         * src/preproc/grn/grn.man: Added info about the gremlin file format
10716         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
10718 2000-02-25  Werner LEMBERG  <wl@gnu.org>
10720         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
10721         friends to be non-integer.
10723         * src/preproc/grn/grn.man: Document it.
10725         * doc/groff.texinfo: Further checking/updating.  Adding more index
10726         entries.
10728 2000-02-24  Werner LEMBERG  <wl@gnu.org>
10730         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
10731         line thicknesses to be integer multiples of this value.
10733         * src/preproc/grn/grn.man: Commenting out the -s option -- the
10734         corresponding code doesn't work (yet).
10736         * doc/groff.texinfo: Further checking/updating.  Adding more index
10737         entries.
10739 2000-02-23  Werner LEMBERG  <wl@gnu.org>
10741         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
10742         specify line thickness instead of base units.  The new default
10743         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
10744         thick lines respectively.
10746         Removed unused variable `prevval'.
10748         * src/preproc/grn/grn.man: Updated.
10750 2000-02-22  Werner LEMBERG  <wl@gnu.org>
10752         * src/preproc/grn/main.cc: Slight formatting.
10754         * src/roff/groff/groff.man: Formatting fix.
10755         * src/preproc/grn/grn.man: Ditto.
10757         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
10759         * doc/groff.texinfo: Further checking/updating.
10761 2000-02-21  Werner LEMBERG  <wl@gnu.org>
10763         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
10765         * test-groff: Added grn subdir to path.
10767         * doc/groff.texinfo: Some restructing and other small improvements.
10769         * src/roff/groff/groff.cc (help): Fixed info string.
10771 2000-02-20  Werner LEMBERG  <wl@gnu.org>
10773         * doc/meref.me: Fix description of .GS request.
10775         * src/roff/troff/troff.man: Fixing typo.
10777         Adding the `grn' preprocessor for gremlin graphic files.
10779         * src/preproc/grn/*: This is the Berkeley distribution written by
10780         David Slattengren and Barry Roitblat, adapted to groff by Daniel
10781         Senderowicz and Werner Lemberg.
10783         * doc/grnexampl.{me,g}: A sample for grn.
10785         * Makefile.in: Added subdirectory entry for grn.
10787         * src/roff/groff/groff.cc: Added support for grn.  It can be now
10788         called with the switch `-g'.
10790         * src/roff/groff/groff.man: Updated.
10792         * src/roff/grog/grog.{man,pl,sh}: Updated.
10794         * NEWS: Updated.
10796 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
10798         * src/include/lib.h: Added xtmptemplate and made xtmpfile
10799         parametrically polymorphic.
10801         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
10802         and the alterations to xtmpfile.
10803         xtmpfile can be requested to return the filename created
10804         and asked not to unlink the temp file.  The default behaviour
10805         if parameters are absent is exactly the same as before.
10807 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
10809         A new request `length' is available which returns the length of a
10810         string in a number register:
10812         * src/roff/troff/input.cc (length_macro): Implement it.
10813         * src/roff/troff/input.cc (init_input_requests): Register it.
10815 2000-02-11  Werner LEMBERG  <wl@gnu.org>
10817         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
10818         of the `substring' request.
10820         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
10821         request.
10823         * src/roff/troff/TODO, NEWS: Updated.
10825 2000-02-09  Werner LEMBERG  <wl@gnu.org>
10827         * src/roff/groff/groff.man: Added an example.
10829 2000-02-06  Werner LEMBERG  <wl@gnu.org>
10831         I've considerably modified the directory structure of the
10832         distribution to get a more vertical layout.  For example, the number
10833         of top level directories has been reduced from 42 to 6.
10835         As a consequence, many changes, especially to the makefiles, were
10836         necessary:
10838         * The makefile variables `top_builddir' and `top_srcdir' have been
10839         introduced.  Virtually all relative paths have been replaced with
10840         absolute ones using these two variables.
10842         * Dependencies (in the files `Makefile.dep') are no longer part of
10843         the distribution.  Instead, they are created during a `make install'
10844         in the build directory.
10846         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
10847         make `top_srcdir' and `top_builddir' absolute.
10849         Some other changes:
10851         * Man pages now depend on the files `VERSION' and `REVISION'.
10853         * The added shell script `mkinstalldirs' will replace `mkdir' in
10854         almost all cases.
10856         * VERSION: Version number increased to 1.16.
10858 2000-02-04  Werner LEMBERG  <wl@gnu.org>
10860         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
10862         * Makefile.in: Removed $(tmac_m) since it is no longer needed
10863         (after an update of the mm stuff).
10865         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
10867 2000-02-03  Werner LEMBERG  <wl@gnu.org>
10869         The .psbb request will now also accept Mac PS images (i.e. using LF
10870         as the EOL character).
10872         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
10873         (with slight modifications).
10874         * troff/input.cc (do_ps_file): Use it.
10876         * test-groff: Add grohtml and grolj4 output devices to PATH.
10878 2000-01-30  Werner LEMBERG  <wl@gnu.org>
10880         * NEWS, MORE.STUFF: Updated.
10882 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
10884         Add the `srand' command to pic.
10886         * pic/lex.cc, pic/pic.y: Implement it.
10887         * pic/pic.man: Document it.
10888         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
10890 2000-01-30  Werner LEMBERG  <wl@gnu.org>
10892         Add a new request `.psbb'.  This does exactly what the external
10893         program psbb did.  It scans a PostScript image file for a
10894         %%BoundingBox comment and extracts the bounding box values (in
10895         PostScript units) which are then stored in the four new (read-only)
10896         number registers `llx', `lly', `urx', and `ury'.
10898         This will allow the usage of the .PSPIC macro without worrying
10899         about unsafe behaviour of groff, i.e., it will work without the
10900         `-U' switch of groff.
10902         * troff/input.cc: Implement it.
10903         * tmac/tmac.pspic: Use it.
10904         * troff/troff.man, grops/grops.man, NEWS: Document it.
10905         * psbb/*, Makefile.in: Remove it since it is no longer needed.
10907         This is bloody C code simply adapted from psbb.c!  Any improvements
10908         welcome.
10910 2000-01-29  Werner LEMBERG  <wl@gnu.org>
10912         * man/groff_font.man: Minor clarifications.
10914         * NEWS: Updated.
10916 2000-01-28  Werner LEMBERG  <wl@gnu.org>
10918         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
10920 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
10922         * man/groff_font.man: Brought up to date regarding tcommand
10923         extensions.
10924         * libgroff/font.cc: Handle everything after `--' as a comment
10925         in the font files.
10926         * devps/*: Added comment delimiter inside devps font files.
10928 2000-01-28  Werner LEMBERG  <wl@gnu.org>
10930         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
10931         \fC...\fP (which now works as expected).
10933         * troff/troff.man: Fix typo.
10935 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
10937         Completed the pass_filenames implementation in troff.
10939         * libdriver/input.cc: Will read the new `F' tcommand.
10940         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
10941         * troff/input.cc: Use it.
10943 2000-01-26  Werner LEMBERG  <wl@gnu.org>
10945         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
10946         font will now be updated even if an invalid font is selected.
10948 2000-01-24  Werner LEMBERG  <wl@gnu.org>
10950         * doc/homepage.ms: Updated for new tmac.arkup.
10952         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
10954         * tmac/tmac.arkup: Cleanup.
10956         Added `\&' to .HTML macro to `leave vertical mode', so to say.
10958         Removed obsolete .LINK macro completely.
10960         The macros .URL, .FTP, and .MAILTO now accept a third argument which
10961         will be immediately appended to the second argument (to be used with
10962         punctuation, for example).
10964         Disabled .CDFTP macro temporarily for security reasons.
10966         * tmac/groff_markup.man: Complete revision for latest changes in
10967         tmac.arkup -- note that it does not yet format correctly with
10968         grohtml :-(
10970 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
10972         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
10973         * devutf8/R.proto: Add mappings for wp, lh, rh.
10974         * devutf8/NOTES: Updated.
10976 2000-01-23  Werner LEMBERG  <wl@gnu.org>
10978         * doc/groff.texinfo: Updated version/copyright info.
10980 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
10982         Added support for two new directives in device descriptions:
10983         `pass_filenames' (to pass the input file name to the output device)
10984         and `use_charnames_in_special' (to support e.g. accented characters
10985         in the `X' request).
10987         * include/font.h, troff/charinfo.h: Declare it.
10989         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
10991         * devhtml/DESC: Use it.
10993         * troff/input.cc: New function encoded_char.
10995         * troff/token.h: Add test for `specialness'.
10997 2000-01-21  Werner LEMBERG  <wl@gnu.org>
10999         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
11000         mistake from the list of files to be installed.
11002 2000-01-18  Werner LEMBERG  <wl@gnu.org>
11004         * README: Added info how to apply patches.
11006 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
11008         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
11010 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
11012         * troff/input.cc: Add support for troffrc-end.
11014         * tbl/main.cc: Altered to issue table-start and table-end special
11015         characters if using the html device.
11017         * devhtml/*: Modified font files to incorporate html encoding of
11018         characters.
11020         * tmac/groff_markup.man: New file documenting tmac.arkup.
11022         * tmac/troffrc-end: New file.  This is invoked after all user
11023         specified macros.  Currently used by the html device to include
11024         tmac.html.  Thus no need for users to specify -mhtml anymore.
11026         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
11027         (MAN7): Add groff_markup.man.
11029         * tmac/tmac.an, tmac/tmac.html: Small html updates.
11031         * tmac/troffrc: tmac.arkup will now be called for the html device.
11033         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
11034         extra device specific information about fonts.
11036         * doc/homepage.ms: New file.  It is an example how an HTML home page
11037         could look like with grohtml.
11039         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
11041 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
11043         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
11044         of Im, Re.
11046         * devutf8/NOTES: Updated.
11048 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
11050         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
11051         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
11052         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
11053         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
11054         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
11055         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
11056         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
11057         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
11058         warnings.
11060         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
11062 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
11064         grolj4: Paper size will be searched case-insensitively.
11066         * include/lib.h: Add check for strcasecmp().
11067         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
11068         * configure.in: Check for strcasecmp().
11070 2000-01-11  Werner LEMBERG  <wl@gnu.org>
11072         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
11073         `REVISION'.
11075 2000-01-10  Werner LEMBERG  <wl@gnu.org>
11077         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
11078         revision scheme.
11080         Add a new read-only register, `.Y', which contains the groff
11081         revision.
11083         * troff/input.cc (init_input_requests): Define it.
11084         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
11085         * doc/groff.texinfo, troff/troff.man: Document it.
11087         * libgroff/Makefile.sub (version.cc): Add definition of
11088         `Version_string[]', consisting of `<major>.<minor>.<revision>'
11089         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
11090         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
11091         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
11092         troff/input.cc, pfbtops/pfbtops.c: Use it.
11094 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
11096         Add a revision scheme to the groff package.
11098         * REVISION: New file.
11099         * libgroff/Makefile.sub (version.cc): Use it to define
11100         `revision_string[]'.
11101         * grops/psrm.cc: Use revision_string (converted to an unsigned
11102         integer) in constructor of resource_manager.
11104 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
11106         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
11107         files.
11108         * Makefile.in (DEVDIRS): Add devutf8.
11109         * grotty/tty.cc: Include device.h.
11110         (glyph): Change type of `code' to `unsigned int'.
11111         (tty_printer): New field is_utf8.  Constructor takes device argument.
11112         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
11113         (tty_printer::add_char): Change type of first arg to `unsigned int'.
11114         (tty_printer::put_char): New function.
11115         (tty_printer::end_page): Use put_char() instead of ::putchar().
11116         (make_printer): Pass device to tty_printer constructor.
11117         * nroff.sh: Determine default device by calling 'locale'.  As a
11118         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
11119         Recognize UTF-8 locales.
11120         * tmac/eqnrc: Recognize utf8 like latin1.
11121         * tmac/troffrc: Device utf8 needs tmac.tty.
11123 2000-01-07  Werner LEMBERG  <wl@gnu.org>
11125         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
11127 2000-01-07  Paul Eggert  <eggert@twinsun.com>
11129         Add a new predefined writeable number register, `year',
11130         which contains the current year.
11132         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
11133         * tmac/tmac.s: Use it.
11134         * troff/input.cc (init_registers): Initialize it.
11136 2000-01-06  Werner LEMBERG  <wl@gnu.org>
11138         * PROBLEMS: Fixed typo.
11140 2000-01-04  Paul Eggert  <eggert@twinsun.com>
11142         * PROBLEMS: Add Y2k advice for the yr number register.
11144 2000-01-03  Paul Eggert  <eggert@twinsun.com>
11146         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
11148 2000-01-02  Werner LEMBERG  <wl@gnu.org>
11150         * tmac/tmac.arkup: Slight modification of macros to provide better
11151         appearance for non-HTML formats.
11153 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
11155         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
11156         does not automatically translate to malloc(n) on all OSes
11157         (e.g., SunOS) so do it explicitly.  Also, check the returned
11158         value.
11160 2000-01-01  Werner LEMBERG  <wl@gnu.org>
11162         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
11164         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
11165         expects this variable
11167 2000-01-01  Gaius Mulley  <gaius@glam.ac.uk>
11169         * doc/Makefile: Added instructions to create HTML and text
11170         versions of some files.
11172 1999-12-31  Werner LEMBERG  <wl@gnu.org>
11174         * Updated INSTALL.gen.
11176         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
11177         better resp. correctly with non-HTML devices.
11179 Version 1.15 released
11180 =====================
11182 1999-12-28  Werner LEMBERG  <wl@gnu.org>
11184         * NEWS, VERSION: Changed to 1.15
11186 1999-12-27  Paul Eggert  <eggert@twinsun.com>
11188         * nroff/nroff.man: -S is safer, not safe.
11190         * groff/groff.cc (main): Use `safer', not `safe', in variable
11191         names.  This does not change the behavior.
11193         * troff/input.cc (main): Likewise.
11195         * nroff/nroff.sh: Likewise.
11197         * troff/input.cc (prepend_string): New function.
11198         (main): Prepend -msafer, so that we check macro libraries for
11199         safety.
11201         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
11203 Version 1.14 released
11204 =====================
11206 1999-12-26  Werner LEMBERG  <wl@gnu.org>
11208         * NEWS, VERSION: Changed to 1.14.
11210 1999-12-24  Werner LEMBERG  <wl@gnu.org>
11212         * refer/refer.cc: Fixing the last fix.
11214 Version 1.13 released
11215 =====================
11217 1999-12-23  Werner LEMBERG  <wl@gnu.org>
11219         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
11220         number disappear.
11222         * NEWS: Updated.
11224         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
11226         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
11227         document conventions, the version number must be a real.
11229 Version 1.12.1 released
11230 =======================
11232 1999-12-22  Werner LEMBERG  <wl@gnu.org>
11234         * VERSION: Changed to 1.12.1.
11236 1999-12-22  Alan Rooks  <arooks@istar.ca>
11238         * refer/refer.cc (do_file): Slight modification to satisfy the
11239         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
11240         UnixWare 7.1.
11242 1999-12-20  Werner LEMBERG  <wl@gnu.org>
11244         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
11245         notices.
11247         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
11248         list of unsafe requests.
11250         * pic/pic.man: Fixed a typo.
11252         * man/groff_out.man: Fixed a typo.
11254 1999-12-18  Werner LEMBERG  <wl@gnu.org>
11256         * Makefile.in: Doc fixes.
11258 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
11260         * groff/groff.cc: Missing `U' option added to getopt().
11262         * troff/troff.man: Missing `U' option added to synopsis.
11264 Version 1.12 released
11265 =====================
11267 1999-12-14  Werner LEMBERG  <wl@gnu.org>
11269         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
11270         to the synopsis.
11272         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
11273         with the more appropriate terms `safer' and `unsafe'.
11275         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
11276         sys_nerr and sys_errlist[].
11278         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
11280         * pic/pic.y, pic/pic.cc: Added check for fmod().
11282 1999-12-13  Werner LEMBERG  <wl@gnu.org>
11284         * VERSION: Changed to 1.12.
11286         Here some patches from various sources; most of them taken from
11287         the Debian distribution.
11289         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
11290         tmac/Makefile.sub: New files copied directly from the NetBSD
11291         distribution.  Probably, some additional adaptation later on is
11292         necessary...
11294         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
11295         of unsafe requests.
11297         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
11298         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
11299         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
11300         (`-S') is now the default.
11302         * README, NEWS: Updated.
11304 1999-12-09  Werner LEMBERG  <wl@gnu.org>
11306         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
11308         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
11310 1999-12-06  Werner LEMBERG  <wl@gnu.org>
11312         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
11313         grief than relief today.  Additionally, it is against the GNU
11314         coding standards.
11316         * configure: Recreated.
11318 1999-12-05  Werner LEMBERG  <wl@gnu.org>
11320         * configure.in: Added GROFF_LIBM.
11322         * configure: Recreated.
11324         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
11325         necessary.
11327         * Makefile.in: Added definition of $(LIBM).
11329         * Makefile.comm (LIBM): Removed.
11331         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
11333 1999-12-03  Gaius Mulley  <gaius@glam.ac.uk>
11335         * doc/Makefile: Added rule for generation pic.html.
11337         (clean): Files produced by grohtml will be removed also.
11339         * doc/pic.ms: Small fix.
11341         * tmac/tmac.html: Fixed suppression of headers.
11343 1999-11-16  Gaius Mulley  <gaius@glam.ac.uk>
11345         * tmac/tmac.html: Fixing horizontal arrows.
11347         Turning off hyphenation.
11349         * tmac/tmac.an: Improved support for grohtml; better indentation,
11350         no footers/headers.
11352 1999-10-31  Gaius Mulley  <gaius@glam.ac.uk>
11354         * tmac/tmac.arkup: Added CDFTP macro
11356         * tmac/tmac.html: All headers are turned off for ms, me, and mm
11357         macros.
11359         * tmac/troffrc: Some additions for HTML stuff.
11361 1999-10-06  Gaius Mulley  <gaius@glam.ac.uk>
11363         * tmac/tmac.html: Small changes.
11365 1999-09-26  Werner LEMBERG  <wl@gnu.org>
11367         * doc/groff.texinfo: Minor fixes.
11369 1999-09-26  Gaius Mulley  <gaius@glam.ac.uk>
11371         * devhtml/TR: Changed spacewidth to 3.
11373         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
11375         * tmac/tmac.html: Moved markup macros to tmap.arkup.
11377         * tmac/tmac.arkup: New file.
11379         * grohtml/ChangeLog: New file.
11381 1999-09-16  Werner LEMBERG  <wl@gnu.org>
11383         * doc/groff.texinfo (Common Features): Added Copying chapter.
11384         Changed format to @smallbook.
11386 1999-09-15  Werner LEMBERG  <wl@gnu.org>
11388         * NEWS: Added info about groff.texinfo.
11390         * doc/groff.texinfo: Will now compile (using texi2dvi) without
11391         warning messages.
11393 1999-09-14  Werner LEMBERG  <wl@gnu.org>
11395         * groff/groff.man: More updates.
11397 1999-09-13  Werner LEMBERG  <wl@gnu.org>
11399         * doc/groff.texinfo: New file.  This manual is still very
11400         rudimentary.  It has been originally contributed by Trent
11401         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
11402         additions by me.
11404         * INSTALL: Added information about the `doc' subdir
11406         * troff/troff.man: Minor fixes.
11408         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
11409         reordered options.
11411         * troff/input.cc (usage): Added missing `-ffam' to usage message.
11413         * Makefile.in (dist): groff-$(version).tar.gz must be removed
11414         also, otherwise it is included itself in another call of `make
11415         dist'.
11417         * groff/groff.cc (synopsis): Removed superfluous space.
11419         * PROJECTS, PROBLEMS, NEWS: Updated.
11421         * VERSION: Updated to 1.12beta.
11423         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
11425         * README: Updated: Included documentation about CVS repository,
11426         mailing lists, and daily snapshots.
11428         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
11430 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
11432         * tmac/tmac.an: If the tag didn't fit into the space that the
11433         macro `TP' specifies, the rest of the tag went into the space for
11434         the next line.
11436 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
11438         * grolj4/lj4.cc: Added duplex printing (option `-d').
11440         * grolj4/grolj4.man: Document duplex printing.
11442 1999-09-12  Werner LEMBERG  <wl@gnu.org>
11444         * doc/Makefile (pic.ps): Fixed rule which caused problems with
11445         non-GNUish sed programs.
11447         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
11448         definition.
11450         * configure.in (LIBS): Added `-lc'
11452         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
11454         * pic/tex.cc (solid_arc): Casting M_PI to double.
11456         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
11458         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
11459         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
11460         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
11462         * groff/groff_man.man: New file.  This manual page was originally
11463         written for the Debian GNU/Linux system by Susan G. Kleinmann
11464         <sgk@debian.org>.
11466         * eqn/list.cc (list_box::compute_metrics,
11467         list_box::compute_sublist_width): Removed variable declaration to
11468         avoid shadowing warnings.
11470         * grops/psrm.cc (resource_manager::process_file): Ditto.
11472         * tfmtodit/tfmtodit.cc (main): Ditto.
11474         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
11475         to avoid shadowing warnings.
11477         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
11478         shadowing loop variable.
11480         * groff/groff.man, troff/troff.man: Added doc about grohtml.
11482 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
11484         New grohtml frontend to convert groff input to html.
11486         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
11488         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
11490         * tmac/eqnrc: Added html device.
11492         * tmac/tmac.html: New file.
11494         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
11495         (troff_output::start_picture, troff_output::finish_picture),
11496         tbl/main.cc (process_input_file):
11497         Surrounded output with `graphics_start' and `graphics_end' so that
11498         the html driver can identify non-text portions.
11500         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
11501         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
11502         grotty/tty.ps (tty_printer::set_char): Additional parameter
11503         `name'.
11505         * include/printer.h: Class printer: New function
11506         set_char_and_width; new variables (is_char_named, is_named_set,
11507         named_command, named_char_s, named_char_n) to hold information
11508         about named characters -- needed by the html driver.
11510         * libdriver/printer.cc (printer::set_ascii_char,
11511         printer::set_special_char): Use set_char_and_width.
11513         * devhtml/*: New device files for html driver.
11515         * grohtml/*: New driver grohtml.
11517 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
11519         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
11520         default strings.
11522 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
11524         * libgroff/string.cc (search): Small fix to test against NULL
11525         pointer.
11527 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
11529         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
11530         \b'abc') were stacked in reverse order when processed in a
11531         diversion.
11533         * troff/node.h: Added `*last' to struct `node' to make the above
11534         fix work.
11536         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
11537         The default scale for the 'f' and 't' graphics functions were 'm'
11538         rather than 'u' (i.e., no scaling).
11540 1999-09-11  Peter Miller  <peterm@jna.com.au>
11542         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
11543         do_file), soelim/soelim.man: Added `-I file' option to soelim,
11544         defining include paths.
11546         * soelim/soelim.cc (include_path_append): New function.
11548 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
11550         * tbl/main.cc (process_options): Unix (at least Documenter's
11551         Workbench) tbl allows arbitrary non-alpha characters between
11552         options.
11554 1999-09-11  Paul Eggert  <eggert@twinsun.com>
11556         Y2k fixes.  Don't assume that the current year precedes 2000.
11558         * doc/meref.me: Add \n(y2, \n(y4.
11560         * tmac/doc-common (Yr): New number register.
11561         (Dd): Don't assume current year precedes 2000.
11563         * tmac/tmac.e (td): Likewise.
11564         (y2, y4): New number registers.
11566         * pic/pic.man: Update reference for pic paper to May, 1991
11567         version.
11569 1999-09-11  Werner LEMBERG  <wl@gnu.org>
11571         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
11572         Removed quotation marks which prevented correct expansion of
11573         $(tmac_wrap).
11575         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
11577 1999-09-10  Werner LEMBERG  <wl@gnu.org>
11579         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
11580         `config.cache'.
11582         * Removed configure.old.
11584 1999-08-31  Werner LEMBERG  <wl@gnu.org>
11586         * VERSION: Updated to 1.11.1
11588 1999-05-27  Werner LEMBERG  <wl@gnu.org>
11590         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
11592         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
11593         added quotations around $(tmac_wrap) to avoid syntax error if
11594         variable is empty.
11596         * configure: Newly generated using autoconf 2.13.
11598         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
11600 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
11602         * README, PROJECTS, NEWS, INSTALL, VERSION, 
11603         doc/Makefile. doc/pic.ms, groff/groff.man:
11604         Prepare for 1.11 release.  No code changes.
11605         Documentation for pic added (doc/pic.ms).
11607 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
11609         * Version 1.10 released.
11611 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
11613         * afmtodit/afmtodit.pl: Avoid comment on first line.
11615 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
11617         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
11618         * configure.in: Call it.
11620         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
11621         (distfiles): Doesn't depend on config.log or config.cache.
11623 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
11625         * grog/grog.sh: Use print "" rather than print in END rule.
11627 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
11629         * tbl/main.cc (process_data): Don't give error for excess data
11630         entries that are comments.
11632 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
11634         * tbl/main.cc (process_data): Fix case where new for-scope rules
11635         silently change meaning of code.
11637 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
11639         * troff/env.cc (hyphenate): Loop over all consecutive sequences
11640         of non-zero hyphenation codes.
11642 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
11644         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
11646 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
11648         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
11650 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
11652         * tmac/tmac.andoc: Make it work in compatibility mode.
11654         * refer/token.h (token_info::is_range_sep): New function.
11655         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
11656         * refer/ref.cc (reference::output): More sophisticated check for
11657         multiple pages.
11659         * devps/prologue.ps (MANUAL): New procedure.
11660         * grops/ps.cc (main): New -m option.
11661         (usage): Include -m.
11662         (ps_printer::~ps_printer): Implement -m.
11664         * aclocal.m4 (GROFF_G): New macro.
11665         * configure.in: Call it.
11666         * Makefile.in (g): Provided by configure.
11668         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
11670         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
11671         translations.
11673         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
11674         (tmac_m, tmac_s): Deleted.
11675         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
11676         tmac_s_prefix): New variables.
11677         (MDEFINES): Change accordingly.
11678         * Makefile.comm (.man.n): Use new TMAC_* variables.
11679         * configure.in (GROFF_TMAC): Call.
11680         * aclocal.m4 (GROFF_TMAC): Define.
11681         * tmac/Makefile.sub (stamp_wrap): New target.
11682         (install_data, uninstall_sub): Handle macro wrapping.
11684 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
11686         * tbl/main.cc (main): Ignore -T option.
11688 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
11690         * devlj4/generate/special.map: Add definition of \(nb.
11692         * tmac/tmac.dvi: Add definition of \(nb.
11694         * troff/dictionary.c (dictionary::dictionary): association::v gets
11695         initialized by association::association.
11697         * tmac/Makefile.sub: Avoid using temporary files when installing.
11699         * troff/env.cc (environment::set_font): Make bad font number a
11700         warning.
11702         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
11704         * Makefile.in (datadir): Use share rather than lib.
11706         * groff/groff.cc (basename): Rename to xbasename.
11708 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
11710         * Makefile (CCLIBS): Don't use.
11711         * Makefile.ccpg: Likewise.
11713         * acgroff.m4: Rename to...
11714         * aclocal.m4: Modify extensively for autoconf 2.
11715         * configure.in: Likewise.
11716         * Makefile.in: Likewise.
11718         * groff/pipeline.c (const): Declare as empty if __STDC__ not
11719         defined.
11720         (xstrsignal): Check for definition of NSIG. Conditionalize
11721         on SYS_SIGLIST_DECLARED.  Make return type const.
11723 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
11725         * troff/input.cc (interpolate_macro): Rephrase missing space
11726         warning.
11728 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
11730         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
11731         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
11732         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
11733         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
11734         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
11735         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
11736         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
11737         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
11738         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
11739         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
11740         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
11741         Fix 'for' scoping.
11743 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
11745         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
11746         string_iterator.
11747         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
11748         file.
11749         (macro_iterator::macro_iterator): Add additional argument.
11751 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
11753         * troff/div.cc (vertical_size::vertical_size): In place of integer
11754         specifying line spacing use cunits specifying post vertical
11755         space.
11756         (macro_diversion::output, top_level_diversion::output): Likewise.
11757         * troff/div.h: Change declarations accordingly.
11758         * troff/env.cc (pending_output_line): Replace ls field by post_vs
11759         field.
11760         (pending_output_line::pending_output_line,
11761         pending_output_line::output, environment::output,
11762         environment::output_line, environment::output_title,
11763         environment::hyphenate_line):  In place of
11764         integer specifying line spacing use cunits specifying post vertical
11765         space.
11766         (environment::environment): Add post_vertical_spacing and
11767         prev_post_vertical_spacing arguments.
11768         (environment::get_post_vertical_spacing): New function.
11769         (environment::total_post_vertical_spacing): New function.
11770         (environment::post_vertical_spacing): New function.
11771         (init_env_requests): Initialize pvs request and .pvs register.
11772         * troff/env.h: Change declarations.
11774 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
11776         * tmac/tmac.pspic: Immediately remove the temporary file.
11778 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
11780         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
11781         height is specified.
11783 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
11785         * tbl/table.c (struct vertical rule, class table_entry): Use int
11786         not short for start_row and end_row.
11788 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
11790         * troff/input.cc (trapping_blank_line, blank_line_macro): New
11791         functions.
11792         (diverted_space_node::reread, process_input_stack): Call
11793         trapping_blank_line() rather than blank_line().
11794         (init_input_requests): Bind "blm" to blank_line_macro().
11796         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
11798 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
11800         * troff/env.cc (environment::possibly_break_line): Require that
11801         width total excluding width of final space node be greater than
11802         the target text length.
11804 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
11806         * troff/node.cc (kern_pair_node::vertical_extent): New function.
11808 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
11810         * troff/node.cc (charinfo_node): New class.
11811         (glyph_node, composite_node): Derive from charinfo_node.  Change
11812         member functions accordingly.
11814 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
11816         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
11818 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
11820         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
11822         * devps/generate/textmap (notsubset): Add.
11824         * tmac/tmac.a4: New file.
11826 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
11828         * pic/main.cc (had_parse_error): New variable.
11829         (do_picture, do_whole_file): Set had_parse_error if yyparse()
11830         returns non-zero.
11831         (main): Return 1 if had_parse_error is true.
11833 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
11835         * grolj4/lj4.cc (main): Avoid use of strtoul.
11837 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
11839         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
11840         iso_8859_1 or $LESSCHARSET is latin1.
11842 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
11844         * hpftodit: New directory.
11845         * Makefile.in (CCPROGDIRS): Add hpftodit.
11846         * devlj4/generate: New directory.
11848 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
11850         * configure.in: Don't use AC_VFORK.
11851         * groff/pipeline.c (run_pipeline): Use fork() always.
11853 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
11855         * grops/ps.cc (main): Use %1 not %s in error message for -w.
11857         * Makefile.in (CCPROGDIRS): Add grolj4.
11858         (DEVDIRS): Add devlj4.
11859         * grolj4, devlj4: New directories.
11860         * tmac/troffrc: Handle lj4.
11861         * tmac/tmac.lj4: New file.
11863 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
11865         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
11867 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
11869         * troff/input.cc (do_if_request): At end of second string, switch
11870         environments before getting next token.
11872 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
11874         * devps/psstrip.sed: Split rule that strips whitespace on either
11875         side of delimiters.
11877 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
11879         * troff/node.h (font_family::make_definition): Add return value to
11880         declaration.  * troff/symbol.h (symbol::operator==,
11881         symbol::operator!=): Likewise.
11883 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
11885         * groff/groff.cc (main, help, synopsis): Handle -S.
11886         (possible_command::insert_arg): New function.
11888         * tmac/tmac.safer: New file.
11889         * tmac/msafer.man: New file.
11890         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
11892 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
11894         * pic/pic.h, pic/main.cc (safer_flag): New variable.
11895         * pic/pic.y (placeless_element): Avoid unsafe operations if
11896         `safer_flag' is set.
11897         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
11899 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
11901         * eqn/lex.cc (get_token): Put call to add_context() in block to
11902         work around Sun C++ 4.0 bug.
11904         * include/stringclass.h (operator +): Use ?: instead of `if' to
11905         work around Sun C++ 4.0 bug.
11907 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
11909         * tbl/main.cc (process_format): Accept - as a synonym for the _
11910         key letter.
11912         * libbib/index.cc (minus_one): Don't declare as const.
11914 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
11916         * troff/input.cc (get_char_for_escape_name): Push back a newline.
11918 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
11920         * troff/input.cc (write_macro_request): New function.
11921         (init_input_requests): Bind write_macro_request to writem.
11923 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
11925         * tmac/tmac.s (@EN): Turn filling back on even if there was no
11926         equation.
11928         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
11930         * tmac/tmac.s (@TS): Renamed from TS.
11931         (TS): Call LP then TS again.
11932         (cov*ab-init): Alias @TS to TS.
11934         * tmac/tmac.s: Allow QP or RS to initialize.
11936         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
11937         Move initializations of PS and LL here.
11938         (par@init): Don't initialize HY.  Avoid changing environment 0.
11939         (par*env-init): Don't all par@reset.
11941 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
11943         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
11945 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
11947         * Makefile.in (MDEFINES): Add LDFLAGS.
11948         (LDFLAGS): Add definition line.
11950 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
11952         * troff/input.cc (get_optional_char): Split off error check into...
11953         (check_missing_character): New function.
11954         * troff/token.h: Declare it.
11955         * troff/env.cc (margin_character): Don't call get_optional_char.
11956         Only call tok.next() after making the node.
11958         * include/lib.h (getopt): Make 2nd argument char *const *.
11960 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
11962         * nroff/conftest.sh: Deleted.
11964 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
11966         * pic/make-dos-dist: Deleted.
11968 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
11970         * devps/psstrip.sed: Strip comments before stripping trailing
11971         white space.
11973 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
11975         * Version 1.09 released.
11977 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
11979         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
11981 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
11983         * libgroff/font.cc (font::load_desc): Fix typo in error message.
11985 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
11987         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
11988         about returning without a value.
11990         * troff/charinfo.h (charinfo::get_special_translation): Cast
11991         TRANSLATE_NONE to int.
11993         * refer/token.cc (lookup_token, store_token): Remove bogus loop
11994         test.  Fix test so that it works with n unsigned.
11996         * pic/pic.y (defaults_table): Fully bracket initializer.
11997         * pic/lex.cc (lookup_keyword): Likewise.
11998         * eqn/lex.cc (token_table, def_table): Likewise.
11999         * eqn/box.cc (param_table): Likewise.
12000         * troff/input.cc (warning_table): Likewise.
12001         * libgroff/font.cc (table): Likewise.
12002         * grops/ps.cc (ps_printer::special): Likewise.
12003         * grops/psrm.cc (resource_manager::process_file): Likewise.
12004         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
12005         * refer/command.cc (command_table): Likewise.
12006         * addftinfo/addftinfo.cc (param_table): Likewise.
12008         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
12009         about temp's being unused.
12010         (unused): New function.
12012         * groff/pipeline.cc: Declare c_fatal.
12014         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
12015         uchar.
12017         * libbib/index.cc (index_search_item::load): Prevent compiler
12018         warnings about fd_closer's being unused.
12019         (unused): New function.
12021 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
12023         * troff/input.cc (copy_mode_error): Make `prefix' static.
12024         Fix typo.
12026         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
12027         defined.
12028         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
12029         HAVE_CC_OSFCN_H and modify accordingly.
12031         * troff/input.cc (init_charset_table): radicalex overlaps
12032         horizontally.
12034         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
12035         udodo!hans@relay.NL.net).
12036         * groff/configure.in: Call it.
12038         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
12039         * groff/configure.in: Call it.
12040         * include/lib.h: Conditionalize declaration of pclose.
12042         * troff/div.cc (last_page_number): New global variable.
12043         (top_level_diversion::begin_page): Exit if we just printed the
12044         last page.
12045         * troff/div.h (last_page_number): Declare it.
12046         * troff/input.cc (parse_output_page_list): Set last_page_number.
12048         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
12049         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
12050         tmac/tmac.X: Likewise.
12051         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
12052         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
12054 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
12056         * tmac/doc-ditroff (hK): Remove groff specific code which
12057         prevented page-breaks between separate manual entries.  If this is
12058         the first page, don't set the page number to 1.
12060         * acgroff.m4 (GROFF_POSIX): New macro.
12061         * configure.in: Use it.
12063         * troff/node.cc (class real_output_file,
12064         real_output_file::real_output_file,
12065         real_output_file::~real_output_file): Conditionalize use of
12066         popen/pclose on POPEN_MISSING.
12067         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
12068         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
12069         (pipe_source): Similarily.
12071         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
12073         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
12074         presence of declarations by trying to compile example with
12075         conflicting declarations.  (gcc only gives a warning for missing
12076         declarations.)
12078 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
12080         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
12081         (from Ulrich Lauther).
12083 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
12085         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
12087 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
12089         * indxbib/indxbib.cc (write_hash_table): Add code for case where
12090         pointers and ints have different sizes.
12092 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
12094         * tmac/tmac.s (par*env-init): Call par@reset.
12096 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
12098         * tmac/tmac.s (@IP): Switch to a new environment when diverting
12099         tag.
12100         (par*push-tag-env, par*pop-tag-env): New macros.
12102 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
12104         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
12105         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
12107         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
12108         comment.  Include <time.h>.
12110 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
12112         * grops/ps.cc (is_small_h, is_small_v): Deleted.
12113         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
12114         lines.
12116 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
12118         * troff/input.cc (read_request): Only print a prompt if reading
12119         from the terminal.  Also clearerr on EOF if reading from the
12120         terminal.  Declare isatty.
12122 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
12124         * refer/label.y: Rename map_t to map_func and extractor_t to
12125         extractor_func.
12127 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
12129         * include/assert.h: Don't use volatile.
12130         * libgroff/assert.cc: Likewise.
12132 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
12134         * troff/input.cc (abort_request): Look at character in tok before
12135         calling get_copy().
12137 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
12139         * troff/troff.h (NO_RETURN): Deleted.
12140         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
12141         * troff/input.cc (exit_troff): Likewise
12143         * Makefile.in: Remove `Making ...' messages since GNU make now
12144         gives these. 
12146         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
12148 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
12150         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
12151         to constant 1 inch.
12153 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
12155         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
12157 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
12159         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
12160         MARK_REG if there was no left delimiter.
12162 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
12164         * pic/troff.cc (troff_output::text): Set line thickness to
12165         relative before outputting text.
12167         * tmac/tmac.e (@k): Don't zero ?T.
12168         ((z): Likewise.
12170 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
12172         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
12174 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
12176         * troff/input.cc (decode_args): Warn about unquoted tabs (from
12177         Paul Eggert).
12179 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
12181         * troff/input.cc (ignoring): New variable.
12182         (ignore): Set ignoring during call to do_define_macro.
12183         (do_define_macro): Clear ignoring before interpolating terminating
12184         macro.
12185         (copy_mode_error): New function.
12186         (get_char_for_escape_name, read_long_escape_name,
12187         interpolate_arg): Use copy_mode_error.
12188         (warning_table): Add WARN_IG.
12189         * troff/troff.h (WARN_IG): Declare.
12190         (WARN_TOTAL): Change accordingly.
12192         * groff/pipeline.c (strsignal): Rename to xstrsignal.
12193         * groff/groff.cc (strsignal): Delete declaration.
12195 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
12197         * troff/div.cc (page_offset): Use 'm' as default scaling.
12199 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
12201         * nroff/nroff.sh: Ignore -u.
12203 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
12205         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
12207 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
12209         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
12210         drawing box.
12211         (B2): With -Tascii, leave additional vertical space before
12212         and after. Ensure that the left and right indent is restored to
12213         what it was even if the point size changes.  Don't call
12214         par@finish. Change the indent, line length and title length
12215         directly.  With -Tascii, make the width of the box 1n less.
12216         (B1): Remember 1n at the current point size.  Don't call
12217         par@reset.  Change the indent, line length and title length
12218         directly.  Ensure that the temporary indent is preserved.
12219         (par*box-mark-top): Turn off no spacing mode.
12221 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
12223         * Makefile.in (dist): Use .gz suffix.
12225 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
12227         * troff/input.cc (main): Add return 0.
12228         * pic/main.cc (main): Use return instead of exit.
12229         * tbl/main.cc (main): Likewise.
12230         * eqn/main.cc (main): Likewise.
12231         * grops/ps.cc (main): Likewise.
12232         * grotty/tty.cc (main): Likewise.
12233         * groff/groff.cc (main): Likewise.
12234         * grodvi/dvi.cc (main): Likewise.
12235         * refer/refer.cc (main): Likewise.
12236         * indxbib/indxbib.cc (main): Likewise.
12237         * lkbib/lkbib.cc (main): Likewise.
12238         * soelim/soelim.cc (main): Likewise.
12239         * addftinfo/addftinfo.cc (main): Likewise.
12240         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
12241         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
12243         * troff/token.h (process_input_stack): Don't declare as static.
12244         * troff/input.cc: Likewise.
12246         * troff/node.c (invalidate_fontno): Make it a static member of
12247         class font_family.  Change callers.
12248         * troff/node.c: Change declaration.
12250         * tbl/main.cc (struct input_entry_format): Add explicit public
12251         specifier.
12252         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
12253         struct double_hline_stuff): Likewise.
12254         * tbl/table.h (struct entry_format): Likewise.
12255         * pic/object.h (struct saved_state): Likewise.
12257         * include/stringclass.h: Add forward declarations of friend
12258         functions that are later declared as inline.  Don't include inline
12259         specifier in friend declaration.
12261         * libgroff/lib.h: Declare popen and pclose.
12262         * acgroff.m4 (GROFF_POPEN): New macro.
12263         * configure.in: Call it.
12265         * include/lib.h (PI): New constant. Undef first if necessary.
12266         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
12267         * grops/ps.cc (degrees, radians): Likewise.
12268         * libgroff/font.cc (font::get_skew): Likewise.
12270         * grops/ps.cc (is_ascii): New function.
12271         (ps_output::put_string): Use is_ascii.  Use csprint rather than
12272         isprint.
12273         (ps_printer::define_encoding): Use csspace.
12274         * libgroff/strtol.c (ISASCII): New macro.
12275         (strtol): Cast arguments to is*() and tolower() to unsigned char.
12276         Use ISASCII rather than isascii.
12277         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
12278         * libgroff/cset.cc: Likewise.
12279         * libdriver/input.cc: Include cset.h.
12280         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
12281         than isdigit().
12283         * refer/refer.cc (main): Use %ld rather than %d for longs.
12285         * libbib/index.cc (index_search_item_iterator::get_tag): Use
12286         S_ISREG macro.
12288         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
12290 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
12292         * troff/input.cc (hyphenation_code): Skip white space between
12293         char/code pairs.
12295 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
12297         * tbl/table.h (table::entry_list_tailp): New member.
12298         (table::table): Initialize it.
12299         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
12300         behaviour.
12302 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
12304         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
12305         with negative horizontal positions. Remove casts of glyph::hpos to
12306         int.
12307         (USHRT_MAX): Delete definition.
12308         (SHRT_MAX, SHRT_MIN): New definitions.
12309         (glyph::hpos): Change type to short.
12310         (tty_printer::end_page): Output multiple backspaces if necessary.
12311          Remove casts of glyph::hpos to int.
12312         
12313 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
12315         * tmac/tmac.s (@RT): New definition.
12317 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
12319         * refer/refer.cc (do_file): Make sure current_filename is set when
12320         filename is "-".
12322         * pic/common.cc (common_output::dot_line): Handle zero length
12323         lines.
12325 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
12327         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
12328         (par@init): Initialize \n[HY].
12330 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
12332         * troff/dictionary.cc (dictionary::remove): Continue when
12333         r < j < i.
12335 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
12337         * Makefile.com (.y.cc): Avoid ending up with two versions of
12338         $(YTABH).
12340 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
12342         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
12343         (\(,C): Likewise.  Also fix typo.
12345 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
12347         * lib.h: Delete extraneous semi-colon.
12349         * Add pso request: `so' from a pipe.
12350         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
12351         (file_iterator::close): New function.
12352         (file_iterator::~file_iterator, file_iterator::next_file): Use
12353         file_iterator::close.
12354         (file_iterator::backtrace): Say `process' rather than `file' when
12355         the stream is popened.
12356         (pipe_source): New function.
12357         (init_input_requests): Bind ".pso" to pipe_source.
12359 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
12361         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
12363         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
12364         digits in lower case.
12366 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
12368         * Version 1.08 released.
12370         * Makefile.in (dist): Insert || true after ln -s commands that
12371         might fail.
12373         * mm: Update to mm 1.16.
12375         * acgroff.m4 (GROFF_CSH_HACK): New macro.
12376         * configure.in: Call GROFF_CSH_HACK.  Substitute for
12377         SH_SCRIPT_SED_CMD.
12378         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
12379         MDEFINES.
12380         * nroff/Makefile.sub (nroff): New target.
12381         (install_data): Install nroff.
12382         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
12383         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
12385 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
12387         * eqn/Makefile.sub (neqn): Add chmod +x.
12389         * grog/Makefile.sub (grog): Remove spurious semi-colon.
12391 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
12393         * troff/input.cc (string_iterator::string_iterator()): Initialize
12394         lineno and count.
12396 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
12398         * troff/div.cc (macro_diversion::space,
12399         top_level_diversion::space): Don't set high_water_mark.
12400         (macro_diversion::output, top_level_diversion::output): Don't
12401         include post line space in high water mark.
12403 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
12405         * eqn/eqn.y: Don't define YYDEBUG.
12406         * pic/pic.y: Likewise.
12408 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
12410         * tmac/tmac.e ([3): Add space after comma following editors.
12411         Change double spaces to single spaces.
12412         ([4): Change double spaces to single spaces.
12414         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
12415         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
12416         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
12417         after %!PS-Adobe- (for Newsprint).
12419         * troff/div.cc (top_level_diversion::begin_page): When
12420         before_first_page is 1, set page_number to 1.
12422 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
12424         * eqn/box.cc (box::top_level): Protect equation with \&.
12426 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
12428         * groff/groff.cc (possible_command::set_name): Delete old name.
12430         * groff/groff.cc (possible_command::~possible_command): Use
12431         a_delete.
12433         * troff/node.cc (troff_output_file::begun_page): New member.
12434         (troff_output_file::troff_output_file): Initialize it.
12435         (troff_output_file::really_begin_page): Only output V command if a
12436         page has been begun.
12438         * pic/pic.y (placeless_element): Delete argument to PRINT after
12439         use.
12441 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
12443         * Make wrapman work.
12444         * troff/div.h (class top_level_diversion): Replace
12445         first_page_begun by before_first_page (with opposite sense).
12446         * Change first_page_begun to before_first_page inverting sense.
12447         * troff/div.cc (class nl_reg): New class.
12448         (init_div_requests): Use class nl_reg for \n(nl.
12449         (top_level_diversion::begin_page): Don't call
12450         output_file::begin_page if before_first_page is 2;
12451         reset before_first_page afterwards.  If have_next_page_number is
12452         false, then always increment page_number.
12453         * tmac/tmac.an: Set traps within TH rather than at the top-level.
12454         Restore compatibility mode after loading, and then disable
12455         compatibility mode in TH.
12457 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
12459         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
12460         past last line.
12461         * troff/node.h (output_file::trailer): Declare.
12462         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
12463         * troff/node.cc (output_file::trailer): New function.
12464         (troff_output_file::~troff_output_file): Move most code into...
12465         (troff_output_file::trailer): New function.
12466         (class troff_output_file): Delete page_length member. Declare
12467         trailer().
12468         (troff_output_file::really_begin_page): Use current page length
12469         for final V command.
12471         * tbl/main.cc (struct options): New decimal_point_char member.
12472         (options::options): Initialize this.
12473         (process_options): Implement decimalpoint option.
12474         (process_data): Pass decimal_point_char option to table::table.
12475         * tbl/table.h (class table): New decimal_point_char member.
12476         (table::table): Add additional argument.
12477         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
12478         second argument specifying decimal point character.  Use this
12479         instead of '.'.
12480         (table::table): Initialize decimal_point_char.
12481         (table::add_entry): Change call to find_dot.
12483         * troff/input.cc (get_copy, token::next): Implement \V.
12484         (interpolate_environment_variable): New function.
12486 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
12488         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
12489         * pic/pic.y: Likewise.
12491         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
12492         Add casts to int.
12493         * refer/ref.cc (reference::insert_field, reference::delete_field):
12494         Likewise.
12495         * troff/number.cc (parse_term): Likewise.
12497         * acgroff.m4 (GROFF_PROG_YACC): New macro.
12498         * configure.in: Use GROFF_PROG_YACC.
12500         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
12501         and g++.
12502         * Makefile.in (OPTIMIZE): New define.
12503         (DEBUG): Empty by default.
12504         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
12506         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
12507         (GROFF_ARRAY_DELETE): Likewise.
12508         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
12510         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
12512         * devps/psstrip.sed: Use different delimiter on last line (so that
12513         it works with BSD 4.4 sed.)
12515 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
12517         * devps/psstrip.sed: Delete comments.
12519         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
12520         optind, opterr, optarg.
12521         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
12522         opterr, optarg.
12524 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
12526         * Makefile.in (check): Dummy target.
12528 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
12530         * Version 1.07 released.
12532         * Integrate mm 1.11.
12534         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
12535         where start_col was meant.
12537 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
12539         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
12541 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
12543         * troff/input.cc (token::next): Make \z\o'...' and similar things
12544         work.
12546         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
12547         constants.
12548         (environment): Add margin_character_flags member.
12549         * env.cc (environment::environment(symbol),
12550         environment::environment(const environment *): Initialize
12551         margin_character_flags.
12552         (margin_character): Rewrite.
12553         (environment::output_line): Add a margin character if
12554         margin_character_flags is non-zero.  Turn off the
12555         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
12556         zero, use margin_character_node without copying and then set
12557         margin_character_node to 0.
12559         * devps/DESC.in: Change minimum size to 1000.
12561 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
12563         * troff/symbol.h (symbol::hash): Change return type to unsigned
12564         long.
12565         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
12566         Add casts to int.
12568         * test-groff: Use -r rather than -x.
12570         * grops/psfig.diff: Include in distribution again.
12572 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
12574         * Makefile.in (dist): Use gzip.
12576 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
12578         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
12579         unistd.h as well as in stdlib.h.
12580         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
12581         defined; otherwise include <sys/types.h> and <unistd.h> if
12582         UNISTD_H_DECLARES_GETOPT is defined.
12584         * configure.in: use builtin(include, ... rather than include(...
12585         * configure: Regenerate with autoconf 1.3.
12587         * libdriver/print.cc (printer::adjust_arc_center): Use new
12588         algorithm suggested by Andy Fyfe.
12590         * libdriver/printer.cc (printer::adjust_arc_center): New function.
12591         * include/printer.h: Declare this.
12592         * grops/ps.cc (ps_printer::draw): Use it.
12593         * grodvi/dvi.cc (dvi_printer::draw): Use it.
12595 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
12597         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
12599 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
12601         * eqn/main.cc (main): Handle "eqn -".
12603 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
12605         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
12607         * mm: Integrate version 1.08.
12609         * pic/troff.cc (troff_output::finish_picture): Set
12610         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
12611         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
12612         if it's not defined. Check whether the register is non-zero rather
12613         than whether it's not defined.
12614         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
12616         * indxbib/indxbib.cc: Move all signal handling into...
12617         * indxbib/signal.c: New file.
12618         * configure.in: Call AC_RETSIGTYPE.
12620         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
12621         * configure.in: Call GROFF_STRUCT_EXCEPTION.
12622         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
12624         * troff/input.cc (token::token, token::operator=): Work round SGI
12625         C++ bug.
12626         * pic/object.cc (position::position): Likewise.
12628 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
12630         * pic/pic.h: Move declaration of hypot().
12632 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
12634         * pic/pic.h: Declare hypot().
12636         * pic/pic.h: Define M_PI if necessary.
12638 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
12640         * tmac/tmac.e (re): Add alternative version that doesn't use groff
12641         `.ta T' feature.
12643         * devps/prologue.ps (RE): Handle the possibility that the old font
12644         doesn't have a FontName entry.
12646 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
12648         * tmac/tmac.e (fam): Redefine to set family in environment 2.
12649         (@C): Use @fam not fam.
12651 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
12653         * lookbib/lookbib.cc (main): Change type of start to const char *.
12654         * lkbib/lkbib.cc (main): Likewise.
12656         * eqn/lex.cc (definition::definition): Don't use member
12657         initializer syntax for members of anonymous unions.
12659         * troff/input.cc (input_stack::backtrace): Change type of to const
12660         char *.
12662 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
12664         * include/stringclass.h (class string): Declare inline friend
12665         functions as inline in class declaration.
12666         * troff/hvunits.h (class hunits, class vunits): Likewise.
12667         * include/refid.h (class reference_id): Likewise
12668         * troff/troff.h (points_to_units(units), scale(units, double)):
12669         Delete declarations.
12670         * libdriver/input.cc (get_char): Delete declaration.
12671         * include/lib.h: Change 2nd argument of getopt from const char **
12672         to char **.
12673         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
12674         char **' before assigning to a `const char **'.
12675         * tbl/table.cc: Delete extra declarations of prints().
12677 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
12679         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
12680         char **' before assigning to a `const char **'.
12682         * libgroff/errarg.cc (errarg::errarg): Don't use member
12683         initializer syntax for members of anonymous unions.
12685 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
12687         * mm: Integrate version 1.07.
12689 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
12691         * troff/input.c (translate2): Rename to
12692         (translate_no_transparent).
12693         (init_input_requests): Rename tr2 to trnt.
12695 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
12697         * troff/charinfo.h (class charinfo): Add transparent_translate field.
12698         (charinfo::set_translation, charinfo::set_special_translation):
12699         Add second argument that specifies value for
12700         transparent_translate.
12701         (charinfo::get_translation, charinfo::get_special_translation):
12702         Add optional second argument that specifies whether translation is
12703         being used for transparent throughput.
12704         * troff/input.cc (charinfo::set_translation,
12705         charinfo::set_special_translation): Handle second argument.
12706         (charinfo::charinfo): Initialize transparent_translate.
12707         (translate): Split main part off into
12708         (do_translate): New function.  Pass argument saying whether
12709         translation applies to transparent throughput.
12710         (translate2): New request.
12711         (init_input_requests): Bind translate2 to `tr2'.
12713 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
12715         * tbl/table.h (class table): Add `nokeep' flag.
12716         * tbl/main.cc (process_options): Handle `nokeep' option.
12717         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
12718         table::do_bottom): Don't output keep/release macro definitions or
12719         calls when `nokeep' option has been specified.
12721 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
12723         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
12725 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
12727         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
12728         block_entry::divert, alphabetic_block_entry::divert): Add extra
12729         argument giving column separation.
12730         (table::compute_widths): Pass column separation to
12731         table_entry::divert().
12732         (block_entry::do_divert): If an entry spans multiple columns and a
12733         minimumum width has been specified for each column, then set the
12734         line length to the sum of the widths (plus possibly the column
12735         separations).
12737         * troff/input.cc (set_escape_char): Don't set the escape_char
12738         until after calling has_arg().
12740 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
12742         * tbl/table.cc (table::do_top): Add missing \s0 for double box
12743         case.
12745         * tbl/table.cc (table::print_double_hline): Avoid extra new line
12746         in case where r > nrows - 1.
12748         * tbl/table.cc (BODY_HEIGHT): Deleted.
12749         (LINE_SEP): New definition.
12750         (table::print_single_hline, table::print_double_hline,
12751         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
12752         table::do_row, table::do_top): Use LINE_SEP space before a line
12753         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
12755         * tbl/table.cc (text_entry::print_contents): New function.
12756         (text_string_name, right_text_string_name): Deleted.
12757         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
12758         (simple_text_entry::do_width, numeric_text_entry::do_width,
12759         alphabetic_text_entry::do_width): Don't store the contents of the
12760         entry in a string.
12761         (left_text_entry::simple_print, right_text_entry::simple_print,
12762         center_text_entry::simple_print,
12763         alphabetic_text_entry::simple_print,
12764         numeric_text_entry::simple_print): Print the entry directly
12765         instead of using the stored string.
12767 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
12769         * devps/Makefile: Strip PostScript files.
12770         * devps/prologue: Rename to...
12771         * devps/prologue.ps.
12772         * devps/psstrip.sed: New file.
12773         * devps/download: Use .pfa rather than .ps for installed versions
12774         of fonts.
12776 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
12778         * troff/env.cc (input_trap): Give a warning if the argument is out
12779         of range.
12781         * troff/env.cc (adjust): Treat negative argument as missing. Round
12782         argument > 5 down to 5.
12784         * troff/env.cc (center, right_justify): Make negative argument zero.
12786         * troff/div.cc (page_offset, vertical_position_traps): Treat
12787         invalid argument as missing.
12788         * troff/env.cc (line_spacing, line_length, title_length, indent,
12789         underline, hyphen_line_max_request, control_char,
12790         no_break_control_char, widow_control_request, adjust, input_trap,
12791         point_size): Likewise.
12792         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
12793         constant_space): Likewise.
12794         * troff/input.cc (compatible, shift, warn_request,
12795         set_escape_char): Likewise.
12797         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
12798         * tbl/table.cc (table::table): Likewise.
12800         * Makefile.dev (install_dev): depends on $(DEVFILES).
12802 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
12804         * devX75, devX75-12, devX100, devX100-12: New directories.
12805         * Makefile.in: Add these to DEVDIRS.
12807         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
12808         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
12809         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
12810         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
12811         targets.
12812         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
12813         (uninstall): New target.
12814         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
12815         uninstall_prog, uninstall_dev): New targets.
12817         * troff/div.cc (return_request): Treat an invalid argument as
12818         missing.
12820 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
12822         * tmac/tmac.e ((f): Set up the environment even when there's a
12823         current diversion.  Transperently throughput a call to @N.
12824         (@N): New macro.
12826 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
12828         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
12829         up to vertical resolution.
12831         * tbl/table.cc (table::do_row): Change row number after printing
12832         stuff list.
12834         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
12836 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
12838         * Rename CHANGES to NEWS.
12840 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
12842         * libgroff/new.cc (operator new): Avoid calling malloc(0).
12844 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
12846         * man.ultrix: Removed.
12848 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
12850         * Makefile.comm (extraclean): Delete files whose names begin with
12851         `='.
12853         * pic/troff.cc (troff_output::text): Fix typo in implementation of
12854         aligned text.
12856 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
12858         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
12859         * troff/div.cc (page_length, need_space, space_request): Treat
12860         invalid optional argument as missing.
12861         * troff/env.cc (number_lines): If the first argument is present
12862         but not a number, turn on line numbering, don't change the next
12863         line number and parse the remaining arguments.
12865         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
12867 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
12869         * eqn/box.h: Change declaration accordingly.
12870         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
12871         the specified size was bad but don't give an error.  Check for
12872         overflow.
12873         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
12874         * eqn/lex (do_size): Likewise.
12876 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
12878         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
12879         compatible headers.
12881 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
12883         * tbl/table.cc (table::init_output): Improve error message when
12884         table won't fit on one page.
12886 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
12888         * pic/troff.cc (troff_output::start_picture): Generate line
12889         containing a horizontal motion equal to the width of the picture.
12891         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
12892         using GROFF_COMMAND_PREFIX environment variable.
12894 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
12896         * mdate.sh: Use $NF rather than $(NF).
12898 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
12900         * pic/main.cc (main):  Use %1 not %c in argument to warning.
12902         * eqn/main.cc (main): Output code to check that geqn was given the
12903         correct -T option.
12905 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
12907         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
12908         `ln -s ../Makefile .; make; rm -f Makefile'.
12910         * troff/hyphen: Rename to...
12911         * troff/hyphen.us:
12912         * troff/input.cc (main): Delete -H option. Don't call
12913         read_hyphen_file().
12914         * troff/env.cc: Include searchpath.h and macropath.h.
12915         (exception_dictionary): Deleted.
12916         (ht): Deleted.
12917         (read_hyphen_file): Deleted.
12918         (hyphenation_language): New struct.
12919         (class trie, class hyphen_trie): Move declarations up.
12920         (trie_node::~trie_node): Deleted.
12921         (trie::delete_trie_node): New function.
12922         (trie::do_delete): New pure virtual function.
12923         (hyphen_trie::do_delete): New function.
12924         (trie::~trie): New function.
12925         (hyphen_trie::~hyphen_trie): New function.
12926         (trie::clear): No need to chcek that tp is not 0.
12927         (current_language, language_dictionary): New variables.
12928         (hyphen_word): Give an error if no current language.  Use
12929         exceptions dictionary in current language.
12930         (hyphen_trie::read_patterns_file): Find file using macro_path.
12931         Allow comments (starting with %) in patterns file.  Don't make it
12932         a fatal error if the file can't be found.
12933         (hyphenate): Return if no current language.  Get the exceptions
12934         dictionary and the hyphenation patterns from the current language.
12935         (set_hyphenation_language): New variable.
12936         (hyphenation_patterns_file): New function.
12937         (hyphenation_language_reg): New class.
12938         (hyphenation_language_reg::get_string): New function.
12939         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
12940         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
12941         register.
12942         * groff/groff.cc (main, help, synopsis): Delete -H option.
12943         * include/Makefile.sub: Don't define HYPHENFILE.
12944         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
12945         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
12946         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
12947         hyphenation patterns.
12949 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
12951         * eqn/neqn.sh: New file.
12952         * eqn/Makefile.sub: Handle neqn.sh.
12954         * eqn/eqn.h: Declare `nroff' variable.
12955         * eqn/box.cc (param_table): Add `nroff' param.
12956         (nroff): Define it.
12957         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
12958         variable.
12959         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
12961         * troff/troff.h (WARN_FONT): New warning.
12962         (WARN_TOTAL): Change accordingly.
12963         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
12964         (warning_table): Add WARN_FONT.
12965         * troff/node.cc (mount_font_no_translate): Pass argument to
12966         font::load_font.  If this is non-zero, give a warning.
12967         Don't give an error message when accessing a font that has already
12968         been found to be invalid.
12969         * include/font.h (font::load, font::load_font): Add additional
12970         optional argument which suppresses error message if the font is
12971         not found.
12972         * libgroff/font.cc (font::load_font): Handle additional argument.
12973         (font::load): Add additional argument. If this is non-null, set it
12974         to 1 and don't give error message.
12976         * include/printer.h (printer::end_page): Add argument giving
12977         length of page.
12978         * libdriver/input.cc (do_file): Pass this.
12979         * grops/ps.cc (ps_printer::end_page): Add argument.
12980         * grodvi/dvi.cc (dvi_printer::end_page,
12981         draw_dvi_printer::end_page): Add argument.
12982         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
12983         columns_per_page members. New member nlines.
12984         (DEFAULT_LINES_PER_PAGE): Deleted.
12985         (tty_printer::tty_printer): Don't compute lines_per_page from
12986         font::paperlength. Don't compute columns_per_page from
12987         font::paperwidth.
12988         (tty_printer::add_char): Don't check horizontal position against
12989         columns_per_page. Grow glyphs vector if neccessary.
12990         (tty_printer::end_page): Add argument giving page_length in units.
12991         Discard lines past end of page.
12993 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
12995         * tmac/tmac.tty-char: Fix definition of \(/l.
12997         * tmac/tmac.X: Define \(en.
12999 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
13001         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
13002         lpq, then use lp rather than lpr.
13004         * tmac/tmac.s (par@reset): Don't call `ad'.
13005         (par*env-init): Call `ad'.
13007 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
13009         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
13010         date.
13012         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
13013         * indxbib/indxbib.cc: Likewise.
13015 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
13017         * libgroff/putenv.c: New file.
13018         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
13019         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
13020         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
13021         stdlib.h with AC_HAVE_HEADERS.
13023 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
13025         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
13026         does not exist.
13028 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
13030         * eqn/box.cc (gsize): Make it an int.
13031         (set_gsize): Parse argument handling increment or decrement.
13032         (box::top_level): Convert gsize to a string.
13034         * troff/input.cc (exit_troff): Make buf unsigned char [].
13035         Call to make_temp_iterator casts buf to char*.
13037         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
13039         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
13040         * Makefile.cpg (depend.temp): Likewise.
13042         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
13044         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
13046 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
13048         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
13050 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
13052         * Version 1.06 released.
13054         * Integrate mm 1.04.
13056 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
13058         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
13060 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
13062         * afmtodit/afmtodit.pl: Add -n option that disables generation of
13063         ligatures command.
13064         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
13065         afmtodit. Regenerate.
13067         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
13068         @f back past the current position.
13070         * tmac/tmac.e: Change calls to @R so that comments are not part of
13071         arguments.
13073 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
13075         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
13077         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
13078         check that we can link a call to a function declared in <stdio.h>.
13079         (GROFF_UNISTD_H): New macro.
13080         * configure.in: Call it.
13081         * Makefile.in: Document it.
13082         * include/posix.h: New file.
13083         * troff/troff.h: Don't include <osfcn.h>
13084         * troff/input.cc: Include posix.h.
13085         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
13086         osfcn.h.
13087         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
13088         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
13089         <fcntl.h>.
13090         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
13091         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
13092         * libbib/search.cc (O_RDONLY): Delete definition.
13093         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
13094         Don't include <osfcn.h>.
13096         * acgroff.m4 (GROFF_TIME_T): New macro.
13097         * configure.in: Call it.
13098         * Makefile.in: Document it.
13100         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
13101         * configure.in: Call it.
13102         * Makefile.in: Document -DTRADITIONAL_CPP.
13103         * include/ptable.h: Don't include generic.h.
13104         (name2): Define it.
13106         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
13107         Afterwards remove [T1 and [T2.
13108         (ref*spec!0, ref*spec!2): Use T1 rather than T.
13109         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
13110         (ref*add-T2): Renamed from ref*add-T.
13111         (ref*add-T1): New macro.
13113 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
13115         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
13117         * libbib/index.cc: Include <fcntl.h>.
13118         (O_RDONLY): Define if necessary.
13119         (make_index_search_item, index_search_item_iterator::get_tag,
13120         index_search_item::check_files): Use O_RDONLY.
13121         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
13122         (O_RDONLY): Define if necessary.
13123         (search_list::add_file): Use O_RDONLY.
13124         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
13125         <sys/stat.h>.
13126         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
13127         (main): Use these.
13129         * libbib/index.cc (S_ISREG): Define it if necessary.
13130         (index_search_item::load): Use S_ISREG.
13132         * include/driver.h: Include <errno.h>.
13134 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
13136         * eqn/box.cc (body_height): Increase default value to 85.
13137         (body_depth): Increase default value to 35.
13139 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
13141         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
13142         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
13143         protected from expansion with \E.
13145         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
13147         * Makefile (Makefile): New target.
13149         * Makefile.sub (configure, distfiles): New targets.
13151         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
13152         construct.
13154 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
13156         * eqn/box.cc (param_table): Add body_height and body_depth.
13158         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
13160 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
13162         * psbb/Makefile.sub: Don't link with libgroff.a.
13164         * acgroff.m4 (GROFF_PUTENV): New macro.
13165         * configure.in: Call GROFF_PUTENV.
13166         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
13167         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
13168         is defined.
13170         * troff/env.cc (distribute_space): Rename force_forward argument
13171         to force_reverse.  Reverse the list if force_reverse is true.
13173 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
13175         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
13177         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
13178         height or depth to be negative.  Guard against SUP_RAISE quantity
13179         being negative.
13181 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
13183         * devps/generate/textmap: Add `an' (arrowhorizex).
13184         * tmac/tmac.ps: \(an overlaps horizontally.
13185         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
13187         * devps/symbolchars: Add arrowverttp, arrowvertbt.
13188         * devps/textmap: Add arrowvertex.
13189         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
13190         updownarrow delimiters.
13191         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
13193         * tbl/table.cc (simple_entry::position_vertically,
13194         block_entry::position_vertically):  For a centered entry, perform
13195         the motion in two stages.
13197         * refer/refer.cc (split_punct): Don't call lookup_token if there
13198         is no token.
13200 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
13202         * troff/input.cc (token::next): Delete token_node after copying
13203         token.
13205         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
13206         cur_point_size.
13208         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
13210         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
13212 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
13214         * grops/ps.cc (usage): -b option takes an argument.
13216         * devps/prologue (PLG): New procedure.
13217         * grops/ps.cc (main, usage): New -g option.
13218         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
13219         length using PLG.
13221 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
13223         * include/cset.h: Include <limits.h> if we have it.
13225         * libgroff/illegal.cc: New file.
13226         * include/lib.h (illegal_input_char): Use table.
13227         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
13228         * pic/lex.cc (ARG1): Renumber to 14.
13229         * eqn/lex.cc (ARG1): Likewise.
13231         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
13232         (eg 1.05.90) correctly.
13234 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
13236         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
13237         Rename $r and $R registers to $v and $V.
13238         ($r, $R): Initialize to 0.
13239         (@v, @V): New macros.
13240         (sz): Call @v.
13241         (@M): Call @V.
13243         * troff/input.cc (main, usage): Add -R option that says not to
13244         load troffrc.
13245         * eqn/main.cc (main, usage): Rename -n to -R.
13247 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
13249         * devps/DESC.in: Leave font positions 5-9 blank.
13250         * devdvi/DESC.in: Likewise.
13252         * grog/grog.pl: Handle `.PS <file' correctly.
13254         * troff/input.cc (input_stack::push): Improve error message when
13255         input stack limit exceeded.
13257 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
13259         * refer/refer.cc (main): Fix typo in handling of `a' option.
13261         * refer/refer.cc (do_bib): In state START after a newline remain
13262         in state START.
13264         * groff/groff.sh: Deleted.
13265         * groff/Makefile.sub: Delete handling of groff.sh.
13267         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
13268         to determine whether to use \X'ps:...'.
13269         * tmac/troffrc: Set 0p register to 0.
13270         * tmac/tmac.ps: Set 0p register to 1.
13272         * groff/groff.cc: Support -X option. Give warning for -TXps and
13273         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
13274         * tmac/troffrc: Support -r.X=1.
13276         * pic/troff.cc (troff_output::dot): Don't test
13277         zero_length_line_flag.
13279 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
13281         * include/lib.h: Declare getopt() and friends unless
13282         STDLIB_H_DECLARES_GETOPT is defined.
13284         * doc/chars.tr: Delete.
13285         * man/groff_char.man: New file.
13287 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
13289         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
13290         user has changed register format.
13292 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
13294         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
13295         `postpro' command in DESC file.  Get spooler command from `print'
13296         command in DESC file.  Execute spooler command with /bin/sh.
13298         * groff/groff.cc: Split Unix-specific parts into...
13299         * groff/pipeline.c: New file.
13301         * LICENSE: Delete.
13302         * COPYING: New file.
13303         * all files: Update copyright notices.
13305         * Rearrange files.  Redo Makefiles.  Use autoconf.
13307 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
13309         * troff/input.c (charinfo_to_node_list): Interpret character
13310         definition with escape_char of `\'.
13312 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
13314         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
13315         Define INT_DIGITS as big enough for 64-bit integer.
13316         * lib/strtol.c: Don't include lib.h.
13317         * lib/lib.h: Delete ifdef __cplusplus stuff.
13319 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
13321         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
13322         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
13323         get DESC from current directory.
13325 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
13327         * tbl/main.c (main): Always reset the line number when reading
13328         from stdin.
13330         * tbl/table.c (table::print_single_hline, table::print_double_hline,
13331         table::define_bottom_macro, table::do_row, table::do_top): Round
13332         vertical spacing up to vertical resolution.
13334 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
13336         * ps/ps.h (enum resource_type): Avoid comma at end of
13337         enumerator-list.
13338         * dvi/dvi.c (class dvi_printer): Likewise.
13339         * dvi/tfmtodit.c (gf::load): Likewise.
13340         * refer/label.y (struct expression): Likewise.
13341         * refer/refer.c (class label_processing_state): Likewise.
13342         * refer/indxbib.c (do_file): Likewise.
13343         * troff/troff.c (enum warning_type): Likewise.
13344         * tbl/main.c (process_data): Likewise.
13345         * troff/charinfo.h (class charinfo):
13347 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
13349         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
13351 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
13353         * groff.c: Move to new groff subdirectory.
13354         * groff/Makefile: New file.
13355         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
13357         * man/mdate.sh: Use ls -L if supported.
13359         * Consolidate all header files produced by gendef into lib/defs.h.
13360         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
13361         Don't include path.h.
13362         * lib/Makefile (path.h): Don't generate.
13363         * troff/input.c: Include defs.h. Don't include config.h.
13364         * troff/Makefile (config.h): Don't generate.
13365         * refer/index.h: Don't include suffix.h.
13366         * refer/index.c: Include defs.h.
13367         * refer/indxbib.c: Include defs.h.
13368         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
13369         defs.h.
13370         * refer/Makefile (suffix.h, path.h): Don't generate.
13371         * groff.c: Don't include config.h. Include defs.h.
13372         * Makefile (config.h): Don't generate.
13373         (lib/defs.h): Generate.
13374         (topclean): Remove lib/defs.h.
13376 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
13378         * lib/malloc.c, lib/getpagesize.h: Deleted.
13379         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
13380         related stuff.
13381         * lib/Makefile: Delete malloc-related stuff.
13382         * lib/new.c: Workaround COOKIE_BUG if necessary.
13384         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
13385         needed header files directly.
13386         * refer/refer.h: Omit definition of DEFAULT_INDEX.
13387         * Makefile: Include definition of DEFAULT_INDEX in path.h.
13389 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
13391         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
13392         argument.
13393         * lib/font (font::load_desc, font::load): Don't split argument of
13394         unknown command.
13395         (font::handle_unknown_font_command): Change type.
13396         * ps/ps.c (ps_font::handle_unknown_font_command,
13397         handle_unknown_desc_command): Change type.
13398         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
13400 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
13402         * lib/font.h (font::handle_unknown_font_command): Add file and
13403         line arguments.
13404         * lib/font.c (font::handle_unknown_font_command):
13405         * ps/ps.c (ps_font::handle_unknown_font_command):
13406         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
13407         lineno arguments.  Use _with_file_and_line functions for error
13408         reporting.
13410         * lib/fontfile.c (font::unknown_desc_command_handler): New static
13411         data member.
13412         * lib/font.c (font::set_unknown_desc_command_handler): New
13413         function.
13414         (font::load_desc): For unknown commands, call
13415         unknown_desc_command_handler if not null.
13416         * lib/font.h (class font): Declare them.
13417         (FONT_COMMAND_HANDLER): New typedef.
13418         * ps/ps.c (handle_unknown_desc_command): New function.
13419         (main): Set bflag if we had a -b option. Call
13420         font::set_unknown_desc_command_handler.
13421         (broken.h): Don't include.
13422         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
13423         submake 
13424         * ps/devps/Makefile: Add `broken' command to DESC file using
13425         BROKEN_SPOOLER_FLAGS.
13427         * macros/tmac.e ([, ]): Add as synonyms for { and }.
13429         * macros/tmac.e ($p): Only exdent if \$3 > 0.
13431         * macros/tmac.e (@R, @S): New macros.
13432         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
13433         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
13434         Declare $H, $[0-9], .. macros with @S.
13435         Declare |0, |1, |2, |3 strings with @S.
13437         * macros/tmac.e (@S): Rename to @U.
13439         * macros/tmac.e (@z): Define @b and bp as empty instead of
13440         deleting them,
13442         * macros/tmac.e (@m): Deleted.
13443         (@h): Don't call @m.
13444         (@z): Don't set @m trap.
13446         * macros/tmac.e ($h, $f): Define |z as empty string.
13448         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
13449         (@q): Likewise.
13451         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
13452         removing them.
13453         ()f): Likewise for * register.
13455         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
13456         argument is missing, don't change $R.  Call sr with three
13457         arguments when initializing.
13459 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
13461         * macros/tmac.e (sr): New macro.
13462         Initialize $r and $R using sr.
13464         * macros/tmac.e (,): Delete \*(#[.
13466         * troff/env.c (set_tabs): Read the tab type even if the position
13467         is bad.  Allow the position of the first tab stop to be negative.
13469 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
13471         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
13472         _POSIX_VERSION.
13473         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
13474         rather than -DPATHCONF_MISSING.
13475         * Makefile: Get rid of PATHCONF_MISSING.
13477         * refer/map.c: New file.
13478         * refer/index.c: Interface to mmap through map.c.  Rename map_size
13479         to map_len.
13480         * refer/Makefile: Handle map.c.
13481         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
13483 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
13485         * Makefile: RANLIB should be `true' if there is no ranlib.
13486         * lib/Makefile (libgroff.a): Simplify.
13487         * driver/Makefile (libdriver.a): Simplify.
13489         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
13490         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
13491         defined.
13493 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
13495         * troff/env.c (compare_ranges): Declare as extern "C".
13497         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
13499         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
13501 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
13503         * pic/troff.c (troff_output::text): Merge in grops_output::text,
13504         but conditionalize use of \X based on \*(.T.
13505         (grops_output::*): Deleted.
13506         * pic/output.h: Delete declaration of make_grops_output.
13507         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
13508         by default. -n sets it to 0.
13509         (usage): Corresponding changes.
13510         * groff.c (main): Don't pass -x or -p to pic.
13511         * groff.sh: Likewise.
13513         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
13514         to be non-zero.
13516         * ps/devps/afmtodit: Change calculation of asc_boundary and
13517         desc_boundary.  Make these bounds inclusive.
13518         * ps/devps: Regenerate font files.
13520 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
13522         * macros/tmac.latin1: New file.
13523         * macros/tmac.tty-char: Use tmac.latin1.
13524         (tmac.tty-tr): Deleted.
13525         * macros/Makefile: Install tmac.latin1.
13526         * macros/tmac.dvi: Use tmac.latin1.
13527         * macros/troffrc: Translate \[char160] onto no-break space here.
13528         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
13530 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
13532         * macros/tmac.Xps: Use `do' request.
13534         * macros/tmac.ps: Use `do' request.
13536         * macros/tmac.e (@C): Use `do' request.
13538         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
13539         * macros/Makefile: Install tmac.X*.
13541         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
13542         * tty/Makefile: Don't install tmac.tty*.
13543         * macros/Makefile: Install tmac.tty*.
13545         * dvi/tmac.dvi: Move to macros.
13546         * dvi/Makefile: Don't install tmac.dvi.
13547         * macros/Makefile: Install tmac.dvi.
13549         * ps/tmac.ps*: Move to macros.
13550         * ps/Makefile: Don't install tmac.ps*.
13551         * macros/Makefile: Install tmac.ps*.
13553         * eqn/box.c: Provide draw_lines parameter corresponding to -D
13554         option.
13555         * macros/eqnrc: Set draw_lines parameter based on device.
13556         * groff.c: Don't pass -D flag to eqn.
13557         * groff.sh: Likewise.
13558         * eqn/main.c: Warn about use of -D.
13560         * troff/input.c (process_startup_file): New function.
13561         (main): Call process_startup_file().
13562         * macros/troffrc: New file.
13563         * macros/Makefile: Install troffrc.
13564         * groff.c (main): Don't pass extra -m option to troff. For a 
13565         pseudo device pass the name of the pseudo device to troff using
13566         -d.
13567         * groff.sh: Likewise.
13568         * groff.c (possible_command::prepend_arg): Deleted.
13570         * troff/input.c (do_request): New function.
13571         (init_input_requests): Bind "do" to do_request.
13573         * eqn/main.c (main): Instead of loading eqnchar from device directory,
13574         load eqnrc from macro directory.
13575         * macros/eqnrc: New file.
13576         * macros/Makefile: Install eqnrc.
13577         * ps/devps/eqnchar: Deleted.
13578         * ps/devps/Makefile: Don't install eqnchar.
13579         * dvi/devdvi/eqnchar: Deleted.
13580         * dvi/devdvi/Makefile: Don't install eqnchar.
13581         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
13582         variable optM.
13584         * lib/device.[ch]: New files.
13585         * lib/font.h (font::set_device_name, font::get_device_name):
13586         Deleted.
13587         * lib/fontfile.c: Use device.h.
13588         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
13589         * troff/input.c: Delete definition of `device'.
13590         (main): Don't initialize device.
13591         * troff/troff.h: Include device.h rather than declaring device.
13592         * troff/Makefile: No need to handle DEVICE.
13593         * driver/input.c: Include device.h. Don't use
13594         font::{set,get}_device_name.
13595         * groff.c, Makefile: Rename device.h to config.h.
13596         * groff.c: Use library device variable.
13597         * eqn/main.c: Use library device variable.
13598         * eqn/Makefile: No need to handle DEVICE.
13600         * lib/searchpath.[ch]: New files.
13601         * lib/Makefile: Handle searchpath.[ch].
13602         * troff/input.c (open_file, init_dirs): Deleted.
13603         (macro_dirs): Deleted.
13604         (open_mac_file, macro_source): Use class search_path.
13605         (add_string, struct string_list): Move definition.
13606         (main): Change -M option to use macro_path. Delete call to
13607         init_dirs().
13608         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
13609         Rewrite to use class search_path.
13610         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
13611         * lib/Makefile: fontfile.c depends on searchpath.h.
13612         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
13613         MACROPATH.
13614         * lib/macropath.[ch]: New files.
13615         * troff/Makefile: No need to handle MACROPATH.
13617         * troff/input.c: Delete DUMP code.
13618         * lib/fontfile.c, lib/font.h: Delete
13619         font::forget_command_line_font_dirs.
13621         * troff/input.c (push_token): New function.
13622         (handle_first_page_transition): Use push_token().
13623         (process_input_stack): Change handling of a space at the beginning
13624         of the line.
13626 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
13628         * troff/input.c (font_dirs): Delete unused variable.
13630         * eqn/lex.c (do_set): Correct error messages.
13632 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
13634         * troff/input.c (do_define_string): Allow the string name to be
13635         followed immediately by a tab.
13636         (define_character): Likewise.
13638 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
13640         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
13641         be negative.
13643         * troff/input.c (input_iterator::is_file): New virtual function.
13644         (file_iterator::is_file): New function.
13645         (input_stack::end_file): New function.
13646         (input_stack::next_file): Handle the situation where there is no
13647         file on the input stack correctly.  Avoid making two passes over
13648         the input stack.
13649         (next_file): Make the filename optional; in this case call
13650         input_stack::end_file().
13652 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
13654         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
13655         produce a real _ charater when the current font is CW and _
13656         otherwise.
13658         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
13659         expression to work around gcc 2.2 bug.
13661 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
13663         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
13665         * troff/env.c (environment::add_padding): New function.
13666         (environment::add_char): Use add_padding().
13667         (environment::space): Likewise.
13668         (environment::wrap_up_field): Add some padding if there is none
13669         and there's no current tab.
13670         * troff/env.h: Declare environment::add_padding.
13672 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
13674         * pic/pic.y: undef fmod and rand before declaring them.
13676 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
13678         * troff/input.c (main): If the DESC file specifies a font name of
13679         0, then leave the corresponding font position empty.
13681         * nroff.sh: New file.
13682         * Makefile (install.nobin): Install nroff.sh.
13684         * tty/devlatin1/R.proto: Add ao as synonym for de.
13685         * tty/tmac.tty-char: Define ao as o.
13687         * tty/dev{ascii,latin1}/R.proto: Add aq.
13688         * tty/tmac.tty-char: Delete definition of aq.
13690 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
13692         * troff/input.c (init_charset_table): Don't translate 0240.
13693         * ps/tmac.ps: Translate char160 to space.
13694         * dvi/tmac.dvi: Likewise.
13695         * tty/tmac.tty: Likewise.
13697 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
13699         * dvi/tmac.dvi: Add support for all Latin-1 characters.
13701         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
13702         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
13703         \(oe, \(r?, \(r!.
13705         * tty/tmac.tty-char: Add \(ah.
13707         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
13708         No need to define \(FM and \(!/. Conditionalize all character
13709         definitions.
13711         * ps/devps/lgreekmap: Add +h, +f, +p.
13713         * ps/tmac.psnew: New file.
13714         * ps/Makefile: Install tmac.psnew.
13716         * troff/input.c (charinfo_to_node_list): Don't ever interpret
13717         character definitions in compatible mode.
13719         * troff/input.c (remove_character): New function.
13720         (init_input_requests): Bind remove_character to "rchar".
13722         * ps/tmac.psold: New file.
13723         * ps/Makefile: Install tmac.psold.
13724         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
13725         characters into tmac.psold.  Make these definitions unconditional.
13727         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
13729         * ps/tmac.ps: Don't define \('c and \('C.
13731         * ps/devps/textmap: Move Greek characters to...
13732         * ps/devps/symbolchars:
13734 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
13736         * ps/devps/text.enc: Add quotesingle.
13737         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
13738         * tty/tmac.tty-char: Likewise.
13739         * dvi/devdvi/texmi.map: Add +h, +f, +p.
13740         * dvi/devdvi/texi.map: Add Fn.
13741         * dvi/devdvi/msam.map: Add lz.
13742         * dvi/tmac.dvi: Handle Bq, bq, aq.
13744         * pic/lex.c (get_token): Recognize 'th.
13745         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
13747 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
13749         * ps/devps/textmap: Move di, mu, +- to...
13750         * ps/devps/symbolchars:
13752         * macros/tmac.s (@XS): Don't call par@reset or fi.
13753         (XA): Call LP. Turn off adjustment. Reduce line length.
13755         * macros/tmac.s: Initially alias XS to LP.
13756         (XS): Rename to @XS.
13757         (cov*ab-init): Alias XS to @XS.
13759 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
13761         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
13762         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
13763         (token::is_size, token::changes_env): Deleted.
13764         * troff/number.c (parse_term): No need to process \s explicitly.
13765         Call tok.next() only after scale indicator has been processed.
13766         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
13767         \f etc explicitly.
13768         (token::next): Handle \s, \f, \S, \H immediately rather than
13769         returning them as tokens.
13770         (token::operator==, token::description, token::add_to_node_list,
13771         token::process): Remove handling of deleted tokens.
13773         * troff/env.c (environment::add_char): When adding padding
13774         indicator character, call start_line() if necessary.
13776 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
13778         * ps/devps/afmtodit: Don't output 0 kerns.
13780         * ps/devps/afmtodit: Remove directory from name of encoding in
13781         font description file.
13783         * ps/devps/afmtodit: Improve error messages.
13785         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
13787         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
13788         * ps/devps/FontMakefile: Deleted.
13789         * ps/devps/afmname: New file.
13791         * ps/devps/symbol.sed: New file.
13792         * ps/devps/symbol.diff: Deleted.
13793         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
13794         Generate zapfdr.afm from zapfd.afm.
13796         * tty/tmac.tty (tty-char): Prefix definition with ".
13798         * macros/tmac.an (TP): Don't start a diversion if one has already
13799         been started.
13801         * tty/tmac.tty-char: Add Latin-1 characters.
13803         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
13805 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
13807         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
13808         Move declaration of struct horizontal_span.
13810         * tbl/table.c (table::table): Initialize span_list.
13811         (table::~table): Delete span_list.
13813         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
13815         * ps/devps/Makefile: Avoid dependency on GNU make.
13817         * ps/tmac.ps: Check that character does not already exist before
13818         defining it.
13820         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
13821         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
13822         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
13823         files.
13825         * tty/tmac.tty-char: New file.
13826         * tty/Makefile: Install tmac.tty-char.
13827         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
13828         tmac.tty-char.
13830         * tty/tmac.tty: Fix definition of \(34.
13832         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
13833         bracket-drawing characters onto |. Add *o.
13835         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
13836         only if current_field.
13838         * troff/dictionary.c (dictionary::lookup): Free old_table after
13839         rehashing. 
13841 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
13843         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
13844         whose glyphs are identical to glyphs of some Roman character.
13846         * tty/devlatin1/R.proto (bu): Deleted.
13847         * tty/devascii/R.proto (bu): Deleted.
13848         * tty/tmac.tty: Add definition of \(bu.
13850         * eqn/main.c (do_file): Pass FILE as argument.
13851         (main): Automatically load eqnchar.  New options -F and -n.
13852         Pass do_file an opened FILE.
13853         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
13854         No need to include font.h.
13855         * groff.sh: Likewise.  Don't need to use - for standard input.
13856         Prefix files with -- if first file starts with -.
13858         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
13860         * troff/env.c (environment::possibly_break_line): Don't set line
13861         to 0 across call to output_line().  Don't call output_line() until
13862         after discarding nodes after break.
13864 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
13866         * request.h (macro::empty): Declare it.
13867         * input.c (macro::empty): New method.
13868         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
13869         macro is empty.
13871 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
13873         * troff/env.c (environment::start_field): Decrement space_total
13874         when a space is frozen.
13876 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
13878         * macros/tmac.an (R): Delete macro.
13880         * troff/input.c (get_copy, token::next): Support \# (like \" but
13881         newline is ignored).
13883         * troff/input.c (token::next): Fix error message in 'Y' case.
13885 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
13887         * eqn/delim.c (define_extensible_string): Recognize any prefix of
13888         a delimiter name.
13890 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
13892         * c++test.c: Include <osfcn.h>.
13894         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
13895         <errno.h> doesn't.
13897 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
13899         * tbl/table.c (table::divide_span): Don't count column separation
13900         if expand was specified.
13902         * tbl/main.c (process_format): Don't ignore width specs in
13903         continued format.  Give warning for changing equal widths or
13904         column separation in continued format.
13905         (process_data): Set column separation, minimum width, equal
13906         columns at end of table.
13908 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
13910         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
13911         node::add_discretionary_hyphen): Use soft_hyphen_char.
13912         (set_soft_hyphen_char): New function.
13913         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
13915         * Makefile (c++tested): Give more helpful message if test fails.
13917 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
13919         * troff/input.c (init_charset_table): Translate 0240 to
13920         an unbreakable space.
13922         * troff/token.h (token::hyphen_indicator): New function.
13923         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
13924         translation.
13925         * troff/input.c (translate): Allow translation to \%.
13926         * troff/node.c (node::add_char): Handle
13927         TRANSLATE_HYPHEN_INDICATOR.     
13928         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
13930         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
13931         for \(hy.
13933         * tty/devlatin1/R.proto: \(hy and - should print as 055.
13935 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
13937         * groff.c (run_commands): If the last command gets a SIGPIPE send
13938         a SIGPIPE to all children than haven't yet terminated.  When
13939         command terminates, set pid field to -1.
13941 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
13943         * groff.c (main): Pass an appropriate -filename option to gxditview.
13945 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
13947         * Makefile.bd (install): Remove existing program before copying.
13949         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
13950         programs which have Unix counterparts to be installed with
13951         user-specified prefix.
13953         * troff/input.c (exit_troff): Don't check if exit_started.
13954         (exit_request): Don't call exit_troff if exit_started.
13956         * Makefile.bd (install.mm): Rename to install.dwbmm.
13958 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
13960         * driver/input.c (do_file): Add missing break for '#' case.
13962 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
13964         * troff/input.c (input_stack::clear):  Clear past any boundaries and
13965         then add the boundaries back.
13967         * troff/input.c (exit_troff): Return immediately if already
13968         exiting.
13970         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
13971         end macro.
13972         (pg*end-page): If the text has ended and there are no more
13973         footnotes or keeps, exit.
13975         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
13977         * troff/input.c (init_charset_table): Make \(rq transparent by
13978         default.
13980         * macros/tmac.an: Define lq and rq strings.
13982         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
13984 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
13986         * troff/env.c (environment::final_break): New function.
13987         (environment::newline): Set prev_line_interrupted to 2 if
13988         exit_started.
13989         * troff/env.h: Declare environment::final_break.
13990         * troff/input.c (exit_troff): Call environment::final_break()
13991         instead of environment::do_break().
13993         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
13994         doesn't already exist.
13995         * macros/man.local: New file.
13996         * macros/tmac.an: Load man.local.
13997         * macros/man.ultrix: New file.
13999 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
14001         * troff/input.c (exit_groff): Rename to...
14002         (exit_troff): New function.
14004         * troff/div.c (exit_started, done_end_macro,
14005         seen_last_page_ejector): New global variables.
14006         (began_page_in_end_macro): New static variable.
14007         (exit_flag): Deleted.
14008         (top_level_diversion::top_level_diversion): Initialize
14009         last_page_count.
14010         (top_level_diversion): More elaborate test for whether
14011         cleanup_and_exit() should be called.
14012         Set began_page_in_end_macro if the end macro isn't yet finished.
14013         * troff/div.h (top_level_diversion::last_page_count): New data
14014         member.
14015         (top_level_diversion::set_last_page): New function.
14016         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
14017         * troff/env.c (do_break): Zero prev_line_interrupted.
14018         * troff/input.c (exit_flag): Delete declaration.
14019         (LAST_PAGE_EJECTOR): New magic cookie.
14020         (token::next): Handle LAST_PAGE_EJECTOR.
14021         (exit_groff): Set exit_started and done_end_macro instead of
14022         exit_flag.  Call top_level_diversion::set_last_page.  Push a
14023         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
14024         another ejection after setting seen_last_page_ejector.
14026 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
14028         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
14030         * macros/tmac.e (TH): Make sure there's room for the initial
14031         header.
14033         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
14034         Set FVS in points rather than units.
14036 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
14038         * troff/div.c (top_level_diversion::add_trap): Don't consider the
14039         position of empty slots.
14041 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
14043         * ps/devps/S: Fix height and depth of parenrightex.
14044         * ps/devps/symbol.diff: Regenerate.
14046 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
14048         * tmac.e (u): Do underlining as in -mgs.
14050 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
14052         * tty/tty.c (tty_printer::end_page): If overstriking is
14053         suppressed, still turn overstruck horizontal and vertical lines
14054         into +.
14056         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
14057         2.1.
14059         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
14061 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
14063         * Version 1.05 released.
14065 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
14067         * tty/tty.c: Instead of keeping an array of glyphs and then
14068         sorting it, keep a ordered linked list of glyphs for each line.
14070         * driver/driver.h: Include stddef.h.
14072         * tty/tty.c (compare_glyph):
14073         * refer/refer.c (rcompare):
14074         * troff/env.c (compare_ranges): Arguments of qsort comparison
14075         function should be const void *.
14077         * troff/number.c (parse_term):
14078         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
14079         switch statement.
14081         * refer/label.y (consider_authors): Don't access variables
14082         constructed under a condition outside that condition: put braces
14083         round for statement containing declaration; redeclare use of same
14084         variable later.
14086         * pic/pic.y (text_expr): Delete production that allows
14087         parenthesised text_expr.
14088         (expr): Allow a conditional_expr to appear in parentheses.
14089         (conditional_expr): Rename to any_expr.
14091         * mm: Install new version 1.01 from jh.
14093         * lib/font.c (font::get_width): Cache scaled widths.
14094         (font::font): Initialize widths_cache.
14095         (font::~font): Destroy widths_cache.
14096         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
14098 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
14100         * c++test.c, c++test.ref: New files.
14101         * Makefile: Check that the C++ compiler works.
14103         * ps/tmac.pspic (PSPIC): Do a break.
14105         * ps/tmac.ps: Move definition of PSPIC into...
14106         * ps/tmac.pspic: New file.
14107         (PSPIC): Draw box around picture, but make it invisible to grops.
14108         * ps/tmac.ps: Load tmac.pspic.
14109         * ps/Makefile: Install tmac.pspic.
14111 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
14113         * lib/font.c (scale_round): If n is negative,
14114         subtract .5 before truncating floating point result.
14116         * lib/fontfile.c: Include <errno.h>.
14118 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
14120         * driver/input.c (get_char): Inline. Don't update current_lineno.
14121         Change callers to up date current_lineno if necessary.
14122         Use get_char() instead of getc(current_file).
14124 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
14126         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
14128 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
14130         * tty/tty.c (tmac.tty): Define \(rg as (R).
14132 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
14134         * lib/lib.h: New define a_delete.
14135         * Use a_delete instead of delete when deleting an array of objects
14136         without destructors.
14138         * lib/lib.h: Rename adelete to ad_delete.
14139         * Change uses of adelete.
14141 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
14143         * eqn/eqn.y: Include lib.h.
14145         * troff/node.c (grow_font_table): Delete old_font_table.
14147         * mm: Install new version from jh.
14149 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
14151         * tbl/table.h (format_type): Make global instead of local to class
14152         entry_format.  Prefix enumerators with FORMAT_.
14153         * tbl/table.c, tbl/main.c: Corresponding changes.
14154         * refer/token.h (token_type): Make global.  Prefix enumerators
14155         with TOKEN_.
14156         * refer/token.[ch]: Corresponding changes.
14157         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
14159         * troff/div.c (node::set_vertical_size): Don't name argument.
14161 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
14163         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
14164         * lib/lib.h: Define adelete accordingly.
14165         * pic/object.c (graphic_object::graphic_object):
14166         * tbl/main.c (format::~format):
14167         * tbl/table.c (table::~table):
14168         * refer/ref.c (reference::~reference, reference::merge,
14169         reference::insert_field, reference::delete_field): Use adelete.
14171         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
14172         * refer/token.h:
14173         * tbl/table.h: Corresponding changes.
14175         * common.c (common_output::dashed_arc, common_output::dotted_arc):
14176         Ensure total_angle is positive.
14178 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
14180         * refer/ref.c (reference::merge, reference::insert_field,
14181         reference::delete_field): Avoid delete[0].
14183         * refer/token.c (init_special_chars): Move calls to cmupper
14184         outside calls to init_two_char_letter to work around bug in gcc
14185         2.0.
14187 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
14189         * lib/new.c (operator new): Use __builtin_new for g++.
14191         * pic/object.c (graphic_object::~graphic_object):  Don't use
14192         delete [] on 0.
14194         * pic/object.c (output::compute_scale): Initialize max_width and
14195         max_height.
14197 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
14199         * troff/input.c (write_request): Call fflush.
14201         * troff/node.h (class composite_node): Move declaration to node.c
14202         * troff/input.c (charinfo_to_node): Rename to ...
14203         (charinfo_to_node_list): Return node list rather than composite
14204         node.
14205         * troff/node.c (make_composite_node): New function.
14206         (make_node, add_char): Call make_composite_node instead of
14207         charinfo_to_node.
14208         (class composite_node): Add a tfont * member.  Delete font_size
14209         member.
14210         (composite_node::composite_node, composite_node::copy,
14211         composite_node::size): Corresponding changes.
14212         (composite_node::tprint): Provide constant spacing, emboldening
14213         and track kerning as specified in tfont.
14214         (composite_node::width): Change width calculation accordingly.
14215         * troff/env.h (environment::composite): New member.
14216         (environment::is_composite, environment::set_composite): New
14217         functions.
14218         * troff/env.c (environment::environment): Initialize composite.
14219         * troff/input.c (charinfo_to_node): Call
14220         environment::set_composite.
14221         * troff/node.c (make_composite_node, make_glyph_node): Use the
14222         plain version of the tfont if the environment is composite.
14224         * troff/node.c (font_info::get_space_width): Additional argument
14225         giving space_size.  Handle constant space correctly. Scale by
14226         space_size unless constant spaced.
14227         (env_sentence_space_width): New function.
14228         * troff/node.h: Declare it.
14229         * troff/env.h (environment::get_space_size,
14230         environment::get_sentence_space_size,
14231         environment::get_narrow_space_width,
14232         environment::get_half_narrow_space_width): Make inline.
14233         (environment::get_space_width): Make inline.  Just call
14234         env_space_width.
14235         * troff/env.c: Delete definitions for funtions made inline.
14236         (environment::space_newline, environment::space): Use
14237         env_sentence_space_width(). Don't scale by space_size.
14238         * troff/node.h: Move declarations of env*space_width() functions
14239         into env.h.
14241 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
14243         * macros/tmac.s (PS): Don't try to set negative indent.
14245 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
14247         * pic/pic.y: Fix min function.
14249 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
14251         * man/mdate.sh: Clear LANGUAGE.
14253 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
14255         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
14256         * pic/lex.c: New COMMAND keyword.
14257         * pic/pic.y (print_args, print_arg): New rules.
14258         (placeless_element): Use print_args for PRINT.
14259         New COMMAND element.
14261 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
14263         * troff/input.c (terminal): Handle missing argument correctly.
14265         * pic/pic.y (text_expr): New rule.
14267         * pic/pic.y: Implement := operator.
14269 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
14271         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
14272         mdoc.
14274 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
14276         * ps/devps/dingbatsrmap: Include this in the distribution.
14278         * macros/tmac.doc: Replace with new version from 2nd Networking
14279         Release. Fix loading of doc-* files.
14280         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
14281         * macros/tmac.doc.old: New file.  Apply fixes that had been
14282         applied to old tmac.doc.
14283         * macros/tmac.andoc: Check that we're running under groff.
14284         * macros/Makefile: Rework.
14286 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
14288         * tbl/table.h (format_type): 
14289         * refer/token.h (token_type): If NESTED_TYPES is defined, use
14290         typedef to make these types visible at file scope.
14291         * Makefile: Add NESTED_TYPES configuration option.
14293         * troff/div.c (mark): At the top level use the value of
14294         nl_reg_contents rather than the current vertical position.
14296 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
14298         * tty/tty.c: Implement \D for horizontal or vertical lines.
14299         (tty_printer::set_char): Use vec_used+2 as serial number.
14300         Don't allow size of vector to exceed USHRT_MAX-2.
14301         Split off part into...
14302         (tty_printer::add_char): New function.
14303         (tty_printer::draw): New function.
14304         (compare_glyph): Handle equal serial numbers.
14305         (tty_printer::end_page): Handle overstruck characters from \D.
14306         (main, usage): Implement -d option.
14308 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
14310         * tbl/main.c (process_format):
14311         * eqn/text.c (split_text):
14312         * troff/input.c (token::next): Use inner block for declarations
14313         with initializers in switch statement.
14315 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
14317         * pic/common.c (common_output::dash_line): Cope with zero-length
14318         lines.
14320 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
14322         * Version 1.04 released.
14324 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
14326         * macros/tmac.an (TH): Define a macro an-init to define variables
14327         based on command line arguments.
14328         (an-header): Call it.
14330 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
14332         * Makefile (install.mm): Rename to install.dwbmm.
14334         * Makefile: Integrate mm.
14335         * mm: New directory.
14337 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
14339         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
14340         <sys/types.h>.
14342         * pic/troff.c (troff_output::simple_spline,
14343         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
14344         shadowing parameter.
14346         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
14348         * lib/ptable.h: Add explicit casts when converting from unsigned
14349         long to unsigned.
14351         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
14352         * dvi/devdvi/Makefile: Install SA, SB.
14354         * refer/indxbib.c: Add declaration of mktemp.
14356         * refer/lookbib.c: Add declaration of isatty.
14358 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
14360         * pic/lex.c (interpolate_macro_with_args):  While collecting
14361         arguments, keep track of whether we're in a string.
14363 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
14365         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
14366         down with \v, so as to avoid problems with top of page trap
14367         setting no space mode.
14369 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
14371         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
14373 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
14375         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
14376         Improve error message.
14378 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
14380         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
14381         printf("%03o");
14383 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
14385         * groff.c (possible_command::execp): Always use _exit() after a
14386         failed exec.
14388         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
14389         NO_SYS_WAIT_H   configuration options.
14390         * groff.c: Use these options.  Use POSIX-style macros to extract
14391         fields from the status returned by wait().
14393 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
14395         * tbl/table.c (table::compute_separation_factor): Allow the
14396         separation factor to drop to 0.
14398 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
14400         * refer/search.c: Include <errno.h>.
14402 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
14404         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
14406         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
14407         C++. 
14409         * pic/lex.c (input_stack::bol): Move definition out of class body.
14411         * pic/main.c: On MSDOS munge argv[0].
14413         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
14415         * lib/ptable.c (hash_string): Use unsigned long rather than
14416         unsigned.
14417         (next_ptable_size): Use unsigned rather than int.  Give an error
14418         message if we've hit the largest table size.
14419         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
14420         table size.
14422         * pic/object.h (object_spec): Make flags unsigned long.  Declare
14423         flags as const unisgned long rather than as enums.
14425         * pic/output.c: Deleted.
14427         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
14429         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
14430         Add additional argument.
14431         (line_entry::note_double_vrule_on_{left,right}): Set value of
14432         douvle_vrule_on_{right,left} flag according to argument.
14433         (simple_line_entry::simple_print,
14434         simple_line_entry::double_line_print): If adjacent to double vrule
14435         on a corner extend rather than shorten the rule by half the double
14436         vrule sep.
14438         * troff/number.c (parse_term): In checking for overflow, handle the
14439         case where the current horizontal position is negative.
14441 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
14443         * pic/object.c (draw_arrow): Check for object having zero length.
14445 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
14447         * eqn/main.c (do_file): Split off inline equation handling into...
14448         (inline_equation): New function.  Search for starting delimiter
14449         using...
14450         (delim_search): New function. Don't recognize a delimiter that
14451         occurs in the name of an escape sequence, number register, string
14452         etc.
14454 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
14456         * eqn/delim.c (delim_box::compute_metrics): Don't call
14457         define_extensible_string if left is 0.
14458         (delim_box::output):  Don't print the left delimiter if left is 0.
14459         (delim_box::debug_print): Check for left == 0 before calling printf.
14461 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
14463         * troff/Makefile (majorminor.c): Include only digits in
14464         minor_version.
14466 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
14468         * refer/dirnamemax.c: new file.
14469         * refer/genlimits.c: Deleted.
14470         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
14471         Don't check path length.
14472         * refer/Makefile: Add dir_name_max.o; delete genlimits.
14473         * Makefile: Add PATHCONF_MISSING option.
14475         * refer/indxbib.c (get_cwd): New function.
14476         (main): Use get_cwd().
14477         * lib/getcwd.c: New file.
14478         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
14479         GETCWD in SUBFLAGS.
14480         * lib/Makefile: Compile getcwd.o.
14482         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
14483         userdict.
14485         * refer/indxbib.c (main): Check success of mktemp.
14487         * lib/tmpfile.c: New file.
14488         * lib/Makefile: Add tmpfile.c.
14489         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
14490         * ps/ps.h: Delete declaration of mktemp().
14491         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
14492         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
14493         * driver/driver.h: No need now to include errno.h.
14495         * everywhere: Set errno to 0 before calling fopen().
14497         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
14498         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
14499         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
14501 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
14503         * troff/env.h (translate_space_to_dummy): Declare it.
14504         * troff/env.c (environment::space_newline, environment::space):
14505         If translate_space_to_dummy is set then make the width of spaces 0.
14506         * troff/input.c (translate): If the second character of a
14507         translation is a space, translate to unbreakable space.  If the
14508         first character is a space, set or clear translate_space_to_dummy
14509         according to whether the second character is \&.  Weird!
14511 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
14513         * groff.c (run_commands): Don't use non-zero exit code because a
14514         command gets SIGPIPE.
14516         * groff.c, groff.sh: Use -mXps with -TXps.
14518         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
14519         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
14520         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
14521         (ps_printer::special): New specials invis and endinvis.
14522         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
14523         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
14524         (ps_printer::end_page): Check that invis_count == 0.
14525         (ps_printer::invis_count): New member.
14526         (ps_printer::ps_printer): Initialize invis_count to 0.
14528         * troff/env.c (environment::hyphenate_line): Hyphenation
14529         indicator at beginning of word inhibits splitting after -, \(em
14530         etc.
14532         * pic/pic.y (element): Allow another element to follow } without
14533         any intervening separator.
14535 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
14537         * pic/lex.c (get_delimited): Allow tabs before delimiter.
14539 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
14541         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
14542         declaration of wait() in header files.
14543         * Makefile: Get rid of -DHAVE_UNION_WAIT.
14545         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
14547         * lib/lib.h: Declare return type of strerror as char *.
14549         * man/Makefile: Add g flag to sed substitutions.
14550         * Makefile (shgroff, bindist): Likewise.
14552 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
14554         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
14555         * ps/devps/prologue (PBEGIN): Define showpage after pushing
14556         userdict.
14558 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
14560         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
14561         userdict.
14563 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
14565         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
14566         group.
14568 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
14570         * troff/input.c (define_number_reg):  If currently undefined,
14571         don't define it if the argument is an invalid expression.
14573         * Makefile: Ignore return value of `if' commands without `else'
14574         parts.
14576         * Makefile: Split up CPPDEFINES into a series of separate
14577         configuration options.
14579         * troff/input.c (init_registers): Use time_t instead of long
14580         unless LONG_FOR_TIME_T is defined.  Use returned result rather
14581         than passing pointer.
14582         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
14584         * lib/Makefile (fontpath.h): Use gendef.
14586 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
14588         * troff/input.c (input_iterator::shift): Delete argument name.
14589         * troff/node.c (suppress_output_file::really_begin_page,
14590         suppress_output_file::really_transparent_char, node::ascii_print,
14591         node::tprint): Delete names of unused arguments.
14593 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
14595         * refer/label.y (string):  Pass $4 to command_error.
14597 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
14599         * Version 1.03 released.
14601 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
14603         * Makefile: Pass definition of SHELL in SUBFLAGS.
14605         * gendef: New file.
14606         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
14607         ps/Makefile: Use gendef to construct header files that are
14608         constructed from the Makefile.
14610         * macros/Makefile: make all should build stripped version of tmac.e.
14612         * refer/Makefile (clean): Remove y.output.
14614 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
14616         * ps/pfbtops.c (main): Add -v option which prints out a version
14617         number.
14618         * ps/Makefile (pfbtops): Link with libgroff.a.
14620 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
14622         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
14623         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
14625         * refer/lkbib.c (main): Always terminate reference with blank
14626         line.
14627         * refer/lookbib.c (main): Likewise.
14629         * refer/linear.c (file_buffer::load): Check that the file is not a
14630         binary file.
14632         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
14633         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
14634         Delete second inclusion of <sys/param.h>.
14636 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
14638         * troff/token.h (token::special): Deleted.
14640         * tbl/main.c (process_format): Rework so that opt->tab_char is
14641         recognized only when appropriate.
14643         * ps/Makefile (clean): Remove pfbtops.
14645 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
14647         * lib/font.c (text_file::next): Don't return if we have got a
14648         blank line.
14650 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
14652         * refer/refer.c (store_reference): Get hash code from old_table[i]
14653         when rehashing the table.
14655 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
14657         * eqn/box.c (box::top_level): Save size and prev size using \R and
14658         restore it afterwards. Set the size to the size at the beginning
14659         of the line.
14660         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
14661         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
14663         * refer/Makefile (limits.h): Use ./genlimits.
14665 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
14667         * refer/index.c: Delete declarations of stat() and fstat().
14669 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
14671         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
14673 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
14675         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
14677 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
14679         * troff/input.c (token::get_char): Handle \e.
14681         * refer/linear.c: Delete declarations of fstat() and stat().
14683 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
14685         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
14686         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
14688 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
14690         * troff/input.c (do_define_macro): Improve error handling for end
14691         of file while defining macro.
14693 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
14695         * eqn/box.h: Fix declaration of set_gsize.
14696         * eqn/box.c (set_gsize): Make argument const char *.
14697         (gsize): Declare as char *.
14698         * eqn/main.c (main): Don't convert gsize to int.
14699         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
14701         * Version 1.02 released.
14703 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
14705         * macros/tmac.andoc: New file.
14706         * macros/Makefile: Install tmac.andoc.
14708         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
14709         operator new and delete on OP_DELETE_BROKEN not being defined.
14710         * Makefile: Mention OP_DELETE_BROKEN.
14712 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
14714         * Makefile (bindist): Pass SUBFLAGS.
14716 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
14718         * Makefile, groff.c: Pass definitions to groff.c via device.h.
14720         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
14721         parameter.
14723         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
14725         * ps/ps.h, ps/psrm.c: Make comment_table and
14726         header_comment_table local to resource_manager::process_file.
14728         * groff.sh: With -TXps pass -printCommand option to gxditview.
14730         * groff.c (possible_command::print): Implement using
14731         append_arg_to_string.
14733         * xditview: Merge in new implementation with own ChangeLog.
14735 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
14737         * groff.c (main): Implement PRINT_OPTION.
14738         (append_arg_to_string): New command.
14739         (device_table): Set PRINT_OPTION flag for Xps.
14741 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
14743         * troff/groff.h: Rename to troff.h.
14745         * pic/lex.c (lookup_keyword, docmp): New functions.
14746         (get_token): Use new lookup_keyword.
14747         Don't include key.h.
14748         * pic/key.[ch], pic/pic.gperf: Deleted.
14749         * pic/Makefile: Remove gperf stuff.
14751         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
14752         into output.h.
14753         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
14755         * troff/Makefile, troff/node.c: Move definition of
14756         STORE_WIDTH into node.c.
14758         * etc/grog.pl, etc/grog.sh: Support -mdoc.
14760 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
14762         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
14763         dvi/devdvi/texb.map: Add lq and rq.
14764         dvi/devdvi: Regenerate fonts.
14765         * ps/devps/textmap: Add lq and rq.
14766         * ps/devps: Regenerate fonts.
14767         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
14768         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
14770         * pic/object.c (position_rectangle): When checking radius
14771         cope with possiblity that width or height is negative.
14772         (box_object::box_object): Have separate xrad and yrad with
14773         signs matching signs of dim components.
14774         (box_object::{north,south}_{east,west}): Use xrad and yrad.
14775         (box_object::print): With rounded boxes use absolute values
14776         for dim and rad arguments.
14778         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
14779         in fontpath.h.
14781         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
14783         * various files: Add explicit destructors to keep Saber CC +d
14784         happy.
14786 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
14788         * eqn/box.c (box::top_level): Restore fonts correctly after
14789         font changes in line containing inline equation.  Also
14790         restore previous font as well as current font.
14791         * eqn/pbox.h: Define necessary string and register names.
14793         * troff/input.c (token::next): Case 'R' calls do_register.
14794         (do_register): New function.
14796 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
14798         * groff.c, groff.sh: Support Xps device.  Allow each device
14799         to have a pseudo_name and a real_name.
14801         * groff.c (run_commands): Don't print `Broken pipe' messages.
14803         * ps/pfbtops.c: New file.
14804         * ps/Makefile: Add pfbtops.
14806         * troff/number.c (parse_term): Improved error message.
14808 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
14810         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
14812         * Makefile: Integrate refer.
14813         * refer: New directory.
14814         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
14815         man/lkbib.man: New files.
14816         * man/Makefile: Support refer man pages.
14818         * lib/lib.h: Declare is_prime.
14819         * lib/prime.c: New file.
14821         * troff/input.c (macro_source): New function.
14822         (init_input_requests): Bind "mso" to macro_source.
14824         * troff/env.c (environment::possibly_break_line): Maintain
14825         pointer to pointer to node to be split in ndp so as to avoid
14826         using address of freed node.
14828         * troff/env.c (environment::hyphenate_line): Maintain pointer to
14829         pointer to first node to be hyphenated in startp so as to
14830         avoid using address of freed node.
14832         * troff/env.c (class trie, class hyphen_trie): Make the
14833         elements of the trie be of type char not unsigned char.
14834         Declare arguments to be const char* instead of unsigned char *.
14835         
14836         * troff/env.c (hyphenate): Initialize hbuf[0].
14838         * troff/input.c (set_string): Declare p to be char * and cast
14839         *p to unsigned char when necessary.
14841         * troff/input.c (do_define_macro): Declare s to be const
14842         char*. Cast element to unisgned char when necessary, Declare
14843         d to be an int.  Handle EOF better.
14845         * troff/Makefile, troff/input.c: Different scheme for passing
14846         definitions of MACROPATH, HYPHENFILE and DEVICE.
14848 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
14850         * tty/devascii/R.proto: Delete entry for em.
14851         * tty/devlatin1/R.proto: Likewise.
14853 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
14855         * troff/input.c (translate): Stop when we get a space. Treat eof
14856         like newline.
14858         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
14860 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
14862         * tbl/main.c (process_format): A font name following a `f'
14863         modifier that starts with a digit can be only one character long.
14864         Also deal with EOF on the second character of the font name.
14866 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
14868         * troff/input.c (token::next): Turn \~ into an
14869         unbreakable_space_node.
14870         * troff/node.c (unbreakable_space_node): New class.
14871         * troff/node.h: Declare it.
14873 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
14875         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
14876         it's >= 0, before outputting it as a single byte.
14878 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
14880         * lib/font.c: Make font_char_metric::code an int.
14881         (font::get_code): Change return type to int.
14882         (font::load): Allow code to be arbitrary integer.
14883         * lib/font.h (font::get_code): Change return type to int.
14884         (font::number_to_index): Change argument type to int.
14885         * troff/input.c (token::next):  In case 'N', allow any value.
14886         Store value in token::val.
14887         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
14888         (token::get_char, token::add_to_node_list, token::process): Get
14889         number from val.
14890         (charinfo::set_number): Change argument to int.
14891         (charinfo::get_number):  Require that NUMBERED flag be set.
14892         (get_charinfo_by_number): Store numbered characters not between 0
14893         and 255 in a dictionary.
14894         * troff/charinfo.h (get_charinfo_by_number): Change argument type
14895         to int.
14896         (charinfo::number): Change type to int.
14897         (charinfo::set_number): Change type of set_number to int.
14898         * troff/node.c (troff_output_file::put_char_width,
14899         troff_output_file::put_char): Test whether character is numbered
14900         using charinfo::numbered().
14901         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
14902         values of num.
14903         * lib/nametoindex.c: New implementation to cope with arbitrary
14904         number characters.
14906         * troff/input.c (token::operator==): Test val for
14907         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
14908         TOKEN_SIZE.
14910         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
14911         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
14913 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
14915         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
14916         variable.
14918         * all Makefiles: rm targets of cp and >.
14920         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
14921         it.
14923         * eqn/lex.c (def_table): Add dollar.
14925 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
14927         * troff/input.c (do_width): Push back newline before closing delim
14928         like do_bracket.
14930 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
14932         * groff.c (possible_command::prepend_arg): New function.
14933         (main): Prepend device -m option.
14934         * groff.sh: Put device -m options before command-line options.
14936 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
14938         * macros/tmac.an (IP): Quote argument to TP.
14940         * ps/ps.c (main): New option -b, which sets...
14941         (broken_flags): New variable.
14942         (ps_printer::~ps_printer): Incorporate the setup section in the
14943         prolog if (broken_flags & NO_SETUP_SECTION).
14944         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
14945         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
14946         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
14947         ps_printer::print_needed_font_comment,
14948         ps_printer::print_supplied_font_comment,
14949         ps_printer::print_include_font_comments,
14950         ps_printer::lookup_doc_font, ps_printer::download_fonts,
14951         ps_printer::read_download_file, read_document_fonts, add_font,
14952         skip_line, parse_fonts_arg, document_font::document_font,
14953         document_font::~document_font, document_font::download,
14954         ps_output::include_file):  Deleted.
14955         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
14956         rather than %!PS-Adobe-2.0.  Make calls to
14957         resource_manager::need_font for each font that we used. Replace
14958         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
14959         print_supplied_font_comment, print_needed_font_comment by call to
14960         resource_manager::print_header_comments. Output %%Orientation
14961         comment. Output %%Requirements: numcopies comment if ncopies > 1.
14962         Don't output the prolog directly.  Instead call
14963         resource_manager::output_prolog.  Only define #copies when ncopies
14964         > 1.  Delete calls to print_include_font_comments  and
14965         download_fonts.  Add call to resource_manager::document_setup.
14966         (ps_printer::do_file): Call resource_manager::import_file instead
14967         of including it ourselves.
14968         (ps_printer::do_import): Likewise.  Also don't call
14969         merge_import_fonts. Push userdict on the dictionary stack before
14970         and pop it afterwards.
14971         Move declaration of ps_output into ps.h.
14972         * ps/psrm.c: New file implementing resource_manager class.
14973         * ps/ps.h: New file declaring ps_output and resource_manager
14974         classes.
14975         * ps/devps/zapfdr.ps:
14976         * ps/devps/symbolsl.ps:
14977         * ps/devps/prologue:  Use 3.0 conventions.
14978         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
14979         Add default definition of BROKEN_SPOOLER_FLAGS.
14980         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
14981         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
14983 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
14985         * etc/grog.pl: New file.
14986         * Makefile (GROG): New variable.
14987         Add GROG to SUBFLAGS.
14988         * etc/Makefile (GROG): New variable.
14989         (install.nobin): Install $(GROG) rather than grog.sh.
14991 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
14993         * eqn/special.c (special_box::compute_metrics): Make the input and
14994         output strings the same.  Get the new height and depth from the
14995         predefined height and depth registers.  Also make subscript kern
14996         and skew available.
14997         (special_box::compute_subscript_kern, special_box::compute_skew):
14998         New functions.
15000         * eqn/box.c (pointer_box::compute_skew,
15001         simple_box::compute_metrics, box::top_level)
15002         * eqn/text.c (prime_box::compute_metrics,
15003         prime_box::comput_subscript_kern)
15004         * eqn/limit.c (limit_box::compute_metrics):
15005         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
15006         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
15007         negative numbers in `nr' requests with a leading 0.
15009 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
15011         * eqn/special.c: New file.
15012         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
15013         Add new rule for simple.
15014         * eqn/lex.c (token_table): Add SPECIAL.
15015         * eqn/box.h: Declare make_special_box.
15016         * eqn/Makefile: Add special.[co].
15018 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
15020         * ps/devps/prologue: Possibly set packing to true while defining.
15021         Create grops dictionary here.  Initialize local variables before
15022         defining procedures.
15023         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
15024         the dictionary stack. Set strokeadjust and overprint to false if
15025         the relevant operators are defined.
15026         (PEND): New procedure.
15027         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
15028         prologue.  Do everything else in the setup section.
15029         (ps_printer::do_import): Just call PBEGIN and PEND around the
15030         picture. Also push userdict before, and pop it afterwards.
15032 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
15034         * troff/node.c (bracket_node::tprint): Brackets were being printed
15035         1m too low.
15037         * macros/tmac.an (SH, SS): Set fill mode.
15039 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
15041         * troff/div.c (top_level_diversion::begin_page): Set
15042         high_water_mark to 0.
15044 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
15046         * man/mdate.sh: New file.
15047         * man/mdate.c: Deleted.
15048         * man/Makefile: Use mdate.sh instead of mdate.
15049         (mdate): Deleted.
15051         * eqn/lex.c (do_gsize): Supply missing argument to error message.
15053 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
15055         * man/mdate.c: New file.
15056         * man/*.man: Replace modification date by @MDATE@.
15057         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
15058         (mdate): New target.
15060         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
15061         Remove illegal input characters.
15063 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
15065         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
15067 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
15069         * troff/div.c (begin_page): Change behaviour when
15070         !first_page_begun and !break_flag.
15072         * troff/input.c (do_name_test): Return 0 if argument is empty.
15074         * troff/input.c (read_long_escape_name): Require closing ] to be
15075         at same input level as opening [.
15077         * troff/input.c (read_increment_and_escape_name): New function.
15078         (get_copy, process_input_stack): Use this for \n.
15080 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
15082         * troff/div.c (top_level_diversion::begin_page): Ignore the
15083         current value of page_number if !first_page_begun.
15085         * groff.c (main): Fix declaration of buf.
15087         * troff/input.c (do_name_test): New function.
15088         (token::next): Implement \A.
15089         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
15090         (token::description, token::add_to_node_list, token::process):
15091         Handle TOKEN_ESCAPE.
15092         * troff/token.h: New token TOKEN_ESCAPE.
15094 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
15096         * pic/main.c (do_picture): Allow space before and after filename
15097         following `<'.  Check that the filename is not empty.
15099 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
15101         * Version 1.01 released. 
15103         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
15105         * dvi/tmac.dvi: ftr HR to H.
15107         * macros/tmac.e: Round up computation of $r.
15109         * xditview/tmac.X:  Don't give up completely in compatibility mode.
15110         Use \n(.s instead of \n[.s].
15112         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
15113         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
15114         Add u to factors inside \s[...]. Rename frac to dvi-frac.
15115         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
15116         short names in the char definitions.
15118         * ps/tmac.ps: Don't give up completely in compatibility mode.
15119         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
15120         quote in front of \n(.s. Add u to factors inside \s[...].
15122 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
15124         * tty/tmac.tty: Call the nroff request.
15126         * macros/tmac.e ((x, )x):  Better definitions that work properly
15127         in a diversion.
15128         (@0, @1): Helper macros for (x.
15130         * macros/tmac.e ($s, hl): Use \l rather than \D.
15132         * tty/tmac.tty: Make it work better in compatibility mode.
15133         (pchar): Rename to tty-char.
15135         * macros/tmac.e (@E): New macro.
15136         (r, i, b, rb, bi): Use @E.
15138         * macros/tmac.e (@F): Don't use (;...) syntax.
15140         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
15141         it was modified for groff.
15143         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
15145         * macros/tmac.e (<., .>): Removed.
15146         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
15148         * macros/tmac.e: Remove check that groff is being used.
15150         * macros/tmac.e (@C): Change families only if using groff; turn
15151         compatibility mode off while changing familes. Save compatibility
15152         mode before changing families and restore it afterwards.
15154         * macros/tmac.e (@h): Remove test for offset + line length.
15156         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
15157         (lo, th, ac): Define to call @S instead of using als.
15159         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
15160         the ratio of the vertical spacing to the point size in units
15161         expressed as a percentage.  Use these instead of $10r and $10R,
15162         Delete $10r and $10R.
15164         * lib/font.c (font::load): In default computation of space_width,
15165         divide by sizescale.  Use scale_round.
15167         * macros/tmac.an (TP): Don't call `nf'.
15168         (an-do-tag): Don't call `fi'.
15170 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
15172         * troff/input.c (process_input_stack): Handle the case where
15173         spaces at the beginning of an input line are followed by a
15174         newline.
15176 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
15178         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
15179         * groff.sh: Use pic -x with the dvi device.
15181         * dvi/devdvi/FontMakefile (H): Don't use -s.
15183         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
15184         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
15185         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
15186         in FONTS.
15188 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
15190         * ps/psfig.diff: New file.
15191         * ps/tmac.psfig: New file.
15193 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
15195         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
15196         (]-): Don't call ref*do-tl.
15198         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
15200         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
15201         (fn@do-FS): Rename to fn*do-FS.
15203         * troff/input.c (transparent_translate): New function.
15204         (process_input_stack): Apply transparent_translate before calling
15205         diversion::transparent_output(unsigned char).
15207 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
15209         * troff/input.c (do_define_macro): Define the macro before calling
15210         skip_line.
15212         * xditview/Makefile: Add DEVICES variable.  Change install target
15213         to use this.
15215 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
15217         * groff.c (run_commands): Handle the possibility that there are
15218         child processes other than those forked by us.
15220 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
15222         * lib/string.c (string::append): New function.
15223         * lib/stringclass.h: Declare it.
15225 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
15227         * eqn/main.c (main): New option -N which sets
15228         no_newline_in_delim_flag. 
15229         (do_file): If no_newline_in_delim_flag is set don't allow newlines
15230         in delimiters.
15231         * groff.c (main): Pass -N on to eqn.
15232         (help, synopsis): Mention -N.
15233         * groff.sh: Implement -N.
15235 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
15237         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
15238         (]-): Call ref*do-tl if ref*need-tl is non-zero.
15239         (XP): Allow as initializer.
15241 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
15243         * troff/env.c (environment::wrap_up_field): If field_spaces are
15244         non-zero and we have a current_tab, subtract padding from
15245         tab_distance.  If this makes tab_distance <= 0, use the next tab
15246         stop instead.  If there isn't any next tab or it's a left tab,
15247         wrap up the current tab.
15248         (environment::start_field): Initialize tab_precedes_field.
15249         (environment::wrap_up_tab): If there's a current field, update
15250         pre_field_width, field_distance and tab_precedes_field.
15251         * troff/env.h (environment::tab_precedes_field): New member.
15253 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
15255         * ps/ps.c (ps_printer::do_file): New function.
15256         (ps_printer::special): Bind to `file' special.
15257         (ps_printer::do_exec): Set ndefined_styles to 0.
15259 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
15261         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
15262         Avoid stripping first character from the start of unrecognized
15263         escapes.  Use lex_error instead of error to report errors.
15264         * eqn/lex.c (get_token): Rework handling of escapes.
15265         (lex_error): Move declaration into...
15266         * eqn/eqn.h.
15268         * xditview/xditview.c (main): Make -page option work.
15270         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
15272 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
15274         * macros/tmac.s (B2): Correct size of box.
15276 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
15278         * macros/tmac.s (B2): Postpone drawing the box until in the
15279         top-level diversion.
15281         * tty/tmac.tty: Add font translations for C, CR, CW.
15283         * groff.c (synopsis, help): Document -i.
15284         * groff.sh: Implement -i.
15286         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
15287         Simplify the construction of SN.
15289         * troff/number.c (parse_term): Give `|' a higher precedence.
15290         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
15291         accordingly.
15293         * macros/tmac.s (B2): Use par@finish instead of par@reset.
15295 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
15297         * lib/string.c (string::move): New function.
15298         * lib/stringclass.h: Declare it.
15300 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
15302         * troff/env.c (distribute_space): Add optional argument
15303         `force_forward'.
15304         (environment::wrap_up_field): Call distribute_space with
15305         `force_forward' argument of 1.
15307 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
15309         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
15310         Inline it.  Move reallocation into...
15311         (string::grow1): New function.
15312         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
15313         dependencies to include library header files.
15314         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
15316 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
15318         * macros/tmac.s (@NH): Use the same number registers than -ms does
15319         for the heading level counters.  Use the same string that -ms does
15320         for the number for this heading.
15322 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
15324         * lib/new.c (operator new): Cast result of malloc to char *.
15326         * troff/input.c (spring_trap, lookup_request): Add assert that nm
15327         is not null.
15329 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
15331         * groff.c (main): Support -i.
15333 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
15335         * pic/pic.h: Include <osfcn.h>.
15337         * ps/ps.c: Add declaration of mktemp.
15339         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
15340         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
15341         argument as union wait *.
15342         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
15343         argument to union wait *.
15345 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
15347         * tty/tmac.tty: Add definition of \(co.
15349         * pic/object.c (make_arc): Only increase radius when radius
15350         strictly less than d.
15351         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
15352         more than once.
15354         * troff/env.c (environment::environment(symbol),
15355         environment::environment(const environment *)):  Initialize
15356         input_trap_count.
15358 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
15360         * tbl/main.c (main): Add exit(0).
15362         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
15364         * pic/main.c (main):
15365         * eqn/main.c (main):
15366         * tbl/main.c (main):
15367         * etc/soelim.c (main):
15368         * driver/printer.c (printer::~printer):
15369         * troff/node.c (real_output_file::~real_output_file,
15370         real_output_file::flush):  Check for errors on stdout.
15372         * most files: Add 1991 to copyright notice.
15374         * macros/tmac.s: Don't test \n(.x and \n(.y.
15376         * troff/input.c (token::next): Rename `escape_char' label to
15377         `handle_escape_char' and `normal_char' label to
15378         `handle_normal_char'.
15380 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
15382         * groff.c (main, synopsis, help): Support -a option.
15383         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
15384         to trflags while parsing options.
15386 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
15388         * troff/number.c (parse_term): With `m', `M' and `n' scale
15389         indicators, convert scale factor to hunits before scaling.
15391 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
15393         * lib/font.c (scale_round): Better test for overflow when n is
15394         negative.
15396 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
15398         * tbl/main.c (process_format): Add second argument of type
15399         options*. Change callers.  Allow opt->tab_char as well as '\t'
15400         between format items.
15402 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
15404         * macros/tmac.an (PD): With no arguments, make sure register PD is
15405         at least \n[.V].
15406         (TH): Call PD with no argument, instead of setting register PD
15407         directly.
15409 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
15411         * Version 1.00 released.
15413 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
15415         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
15417         * dvi/devdvi/DESC: Mount CW instead of CR.
15419         * dvi/tmac.dvi: Add definition of \(tm.
15421         * dvi/devdvi/texsy.map: Add lh, and rh.
15422         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
15423         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
15425         * dvi/devdvi/FontMakefile: Generate H from cmss10.
15426         * dvi/devdvi/Makefile: Install H.
15427         * dvi/devdvi/H: New file.
15429 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
15431         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
15432         be 0.
15434 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
15436         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
15438         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
15440         * macros/tmac.s (@EN): Handle the case where the equation is empty
15441         but the label is not.
15443 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
15445         * troff/groff.h: New warning category WARN_SPACE.
15446         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
15447         WARN_SPACE to warning_table.
15448         (interpolate_macro): Give a warning of type WARN_SPACE if the name
15449         is longer than two characters and is not defined, but the first
15450         two characters do make a defined name.
15452         * PROBLEMS: New file.
15454         * CHANGES: New file.
15455         * README-0.6, README-1.00: Deleted.
15457         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
15458         * xditview/devX75/Makefile: Make devX75-12.
15459         * xditview/devX100/Makefile: Make devX100-12.
15461         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
15462         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
15464 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
15466         * README-0.7: Rename to README-1.00.
15468         * macros/tmac.pic: New file.
15469         * macros/Makefile (install.nobin): Install tmac.pic.
15471 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
15473         * troff/env.c (hyphen_word): Correct the test for whether the
15474         token is a hyphen.  Reset npos to 0.
15476         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
15478 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
15480         * macros/tmac.s (ds*common-end): Call par*reset.
15481         (PE): Likewise.
15482         (par@reset-indent): Deleted.
15484         * macros/tmac.s (@IP): Divert the label.
15486 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
15488         * xditview/draw.c (setGC): Use a line width of .1m rather than
15489         .04m by default; round rather than truncate value.
15491         * tbl/table.c (class empty_entry): New class.
15492         (empty_entry::empty_entry, empty_entry::line_type): New functions.
15493         (table::add_entry): Represent empty entries by objects of type
15494         empty_entry.
15495         (table_entry::line_type): Return -1.
15496         (table::determine_row_type): Ignore entries with line_type 0.
15497         Treat type -1 as non-lines.
15499 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
15501         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
15502         macros/tmac.s: Rename \(-d to \(Sd.
15504 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
15506         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
15507         * xditview/libXdvi/DviChar.c: Likewise.
15508         * dvi/devdvi/texsy.map: Add `<<', `>>'.
15510 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
15512         * troff/div.c (top_level_diversion::begin_page): Call
15513         init_output() if the_output is 0.
15515 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
15517         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
15518         ESCAPE_c.
15519         (get_copy): Turn \E into ESCAPE_E.
15520         (token::process, asciify): Handle ESCAPE_E.
15522         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
15523         (RD): New macro.
15524         (DS): Implement `.DS R'.
15526 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
15528         * macros/tmac.s (FS): New macro.
15530         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
15532         * macros/tmac.s (cov*tl-init): Remove after first execution
15533         instead of aliasing to @nop.  Call top of page macro explicitly
15534         instead of setting trap; call @init first.  Set pg@top as top of
15535         page macro.
15536         (cov*auto-init): Deleted.  Set cov*tl-init instead of
15537         cov*auto-init as top of page trap. 
15538         (TL, LP): Do a break instead of calling cov*tl-init.
15539         (cov*print): With RP format but no TL, alias FS and FE to @FS and
15540         @FE; in this case also give a warning and always start another
15541         page. No need to set pg@top here.
15542         (cov*tl-init): Rename to cov*first-page-init.
15544         * macros/tmac.s (RP): Do `.pn 0'.
15545         (cov*tl-init): With RP format don't do `.pn 0'.
15547         * macros/tmac.s (pg@cs-top): Set no space mode.
15549         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
15550         (cov*ab-init): Alias TL, AU and AI to these.
15552 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
15554         * macros/tmac.s (@EQ): Move the space before the equation into @EN
15555         (@EN): Do nothing unless \n[dl] is > 0.
15557 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
15559         * pic/object.c (ellipse_object::radius): New function.
15561         * VERSION: Change version to 0.7.
15563         * tbl/table.c (block_entry::do_divert): Declare return type as
15564         void.
15565         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
15567 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
15569         * troff/column.c: New file.
15570         * troff/Makefile: Corresponding changes.
15572         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
15573         Friend of vunits.
15575         * troff/div.c (top_level_diversion::space): If the space causes
15576         the first-page transition and springs a trap, truncate the space
15577         to 0.
15579 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
15581         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
15582         the document.
15584         * pic/troff.c (troff_output::line_thickness,
15585         troff_output::set_fill): Do a horizontal motion to compensate for
15586         the width of the \D escape sequence.
15588 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
15590         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
15591         (not X75).
15593         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
15594         to printf.
15596         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
15597         Supply empty definition.
15598         (text_entry::simple_print, simple_text_entry::simple_print):
15599         Delete declarations.
15600         (table::add_entry): Represent empty entries by objects of type
15601         `simple_entry'.
15603 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
15605         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
15607         * tbl/table.c (left_text_entry::add_tab): New function.
15609         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
15610         initialize like LP.
15612 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
15614         * troff/env.c (environment::start_field): Give an error message if
15615         there is no next tab.
15617 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
15619         * troff/env.c (hyphenate): Skip initial elements with zero
15620         hyphenation code.
15622         * macros/tmac.s (par@init): Keep VS in points rather than units.
15624 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
15626         * pic/main.c (main): Implement `-c' option.
15627         * pic/output.h: Declare make_tpic_output().
15628         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
15629         protected.
15630         (tpic_output): New class.
15631         (tpic_output::tpic_output, tpic_output::set_pen_size,
15632         tpic_output::command, make_tpic_output): New functions.
15634 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
15636         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
15637         if they're not already defined.
15638         * tbl/table.c (init_output): Don't test \n(.g.
15640         * troff/input.c (do_if_request): Delete `g' condition. Recognize
15641         `d', `r' and `c' conditions even in compatibility mode.
15643 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
15645         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
15646         box.
15648 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
15650         * troff/env.h (environment::prev_line_interrupted): New member.
15651         (environment::get_prev_line_interrupted): New function.
15652         * troff/env.c (environment::newline): Set prev_line_interrupted.
15653         (environment::environment(const environment *),
15654         environment::environment(symbol)): Initialize
15655         prev_line_interrupted.
15656         * troff/input.c (process_input_stack): Don't give special
15657         treatment to space and newline at the beginning of the line if the
15658         previous line was interrupted.
15660 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
15662         * eqn/eqn.y: Disallow PRIME by itself.
15663         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
15664         PRIME.
15665         (def_table): Remove definition of '.  Define prime to be `.
15667         * eqn/eqn.y: Split off part of rule `script' into a new rule
15668         `nonsup'.
15670 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
15672         * macros/tmac.s ({, }): New string aliases.
15674 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
15676         * README-0.7: New file.
15678 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
15680         * macros/tmac.s: New file.
15681         * man/groff_ms.man: New file.
15682         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
15683         * Makefile.bd: Similarily.
15684         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
15685         definition of TMAC_S.
15686         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
15687         * macros/TODO: New file.
15689 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
15691         * troff/env.c (right_justify): New function.
15692         (init_env_requests): Bind this to request "rj".
15693         (center_lines): Set right_justify_lines to 0. If we get a bad
15694         integer, center 1 line.
15695         (environment::environment(symbol), environment::environment(const
15696         environment *)): Initialize right_justify_lines.
15697         (environment::get_right_justify_lines): New function.
15698         (init_env_requests): Bind this to number_register ".rj".
15700         * troff/env.c (environment::choose_breakpoint): Implement
15701         hyphenation_margin and hyphenation_space.
15702         (environment::get_hyphenation_space,
15703         environment::get_hyphenation_margin): New functions.
15704         (init_env_requests): Bind these to .hys and .hym.
15705         (hyphenation_space_request, hyphenation_margin_request): New
15706         functions
15707         (init_env_requests): Bind these to hys and hym.
15708         (environment::environment(symbol), environment::environment(const
15709         environment *)): Initialize hyphenation_margin and
15710         hyphenation_space.
15711         * troff/env.h: Corresponding changes to class environment.
15713 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
15715         * troff/div.c (blank_line): Always do a break.
15717         * eqn/box.c (do_text): Turn off escapes while appending text to
15718         string.
15720 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
15722         * troff/input.c (while_break_request, while_continue_request): New
15723         functions.
15724         (init_input_requests): Bind these to "break" and "continue".
15725         (while_depth, while_break_flag): New variables.
15726         (while_request): Update while_depth.  Break out of loop if
15727         while_break_flag is set.
15729 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
15731         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
15732         rather than 0.
15734 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
15736         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
15738         * stringify: New file.
15739         * Makefile (groff.o): Use stringify.
15741         * xditview/tmac.X: Remove definition of \(rn.
15742         * xditview/libXdvi/DviChar.c: Remove radicalex from
15743         Adobe_symbol_map.
15745 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
15747         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
15748         (alphabetic_block_entry::alphabetic_block_entry,
15749         alphabetic_block_entry::divert, alphabetic_block_entry::print):
15750         New functions.
15751         (block_entry::divert): Split off body into ...
15752         (block_entry::do_divert): If the block is alphabetic, subtract 2n
15753         from the line length; also update the span width to dl+2n, and the
15754         alphabetic span width to dl.
15756         * driver/input.c (do_file):  While reading argument to D command,
15757         when expanding buffer, multiply szp by sizeof(int) rather than 2
15758         in the argument to memcpy.
15760         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
15761         width of alphabetic columns.
15763 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
15765         * troff/node.c (lookup_family): Supply second argument to lookup.
15767         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
15768         search, return immediately if v is 0.
15770         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
15771         (troff_output::start_picture): Set this reg.
15772         (troff_output::end_picture): Remove this reg
15773         * eqn/box.c (box::extra_space): Don't produce `\x's if
15774         EQN_NO_EXTRA_SPACE_REG is defined.
15776         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
15777         * eqn/text.c (split_text): Map ' to \(fm when it's the first
15778         character.
15780 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
15782         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
15783         requests.
15785         * troff/div.c (top_level_diversion::top_level_diversion):
15786         Initialize page_number to 0.
15788 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
15790         * groff/troff (environment::environment(const environment *)):
15791         Initialize name to e->name, rather than "anonymous".
15793 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
15795         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
15796         requested_page.  Split middle part into ...
15797         (FindPage): New function.
15798         (SetValues): If we don't yet know the last page, and the requested
15799         page is greater than the current page, call FindPage.
15800         Update the font_map_string before doing this.
15802         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
15803         Translate \(lh and \(rh into left and right double arrows.
15805         * troff/node.c (class hyphen_inhibitor_node): New class.
15806         (hyphen_inhibitor_node::hyphen_inhibitor_node,
15807         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
15808         hyphen_inhibitor_node::type,
15809         hyphen_inhibitor_node::get_hyphenation_type): New functions.
15810         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
15811         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
15812         word.
15814 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
15816         * troff/node.h (dummy_node::get_hyphenation_type,
15817         transparent_dummy_node::get_hyphenation_type):  Declare them.
15818         * troff/node.c: (dummy_node::get_hyphenation_type,
15819         transparent_dummy_node::get_hyphenation_type): New functions.
15821 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
15823         * xditview/libXdvi/draw.c: If M_PI not defined after including
15824         math.h, then define it.
15826         * xditview/Makefile: Add definition of AR. Pass it to the submake
15827         in libXdvi.
15828         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
15830 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
15832         * troff/dictionary.h (object_dictionary::alias): Declare return
15833         value as int.
15834         * troff/dictionary.c (object_dictionary::alias): Return non-zero
15835         if the old name was defined.
15836         * troff/input.c (alias_macro): Give a warning if the old name was
15837         not defined.
15838         * troff/reg.c (alias_reg): Likewise.
15840 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
15842         * troff/input.c (token::next): Delete implementation of \R.
15844         * macros/Makefile: Strip comments from tmac.e while installing it.
15846         * troff/input.c: New variable `nroff_mode'.
15847         (troff_request, nroff_request): New functions.
15848         (init_input_requests): Bind `troff' and `nroff' to troff_request
15849         and nroff_request.
15850         (do_if_request): Compute results of t and n conditions from
15851         nroff_mode.
15853         * text/text.c (split_text): Fix typo in >=.
15855         * eqn/lex.c: Add definition of `==' to def_table.
15857 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
15859         * pic/tex.c (tex_output::start_picture): Change the definitions of
15860         \graph and \graphtemp so that they work properly with Plain TeX.
15862         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
15863         argument to `ar' is not less than the first.
15865         * pic/pic.y: Allow a comma between elements of the variable list
15866         in the argument to `reset'.
15868         * pic/object.c (arc_object::arc_object): Fix computation of
15869         radius.
15871         * eqn/main.c (main): Add exit(0).
15873 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
15875         * troff/div.c (begin_page): Test no_space_mode after doing the
15876         break, but still push the page ejector cookie before doing the
15877         break.  Also set the next page number after doing the break.
15878         
15879         * xditview/xditview.c (NewFile): Don't set the title and icon name
15880         if this is the first file and its name is `-'.
15881         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
15882         the X75 and X100 devices.
15883         (main): If a device has the XT_OPTION flag set and there's exactly
15884         one file argument, pass the driver -xrm and -title options to set
15885         the icon name and window title to the name of the file.
15887         * troff/env.c (environment_switch): If there was an argument but
15888         it wasn't a valid number or name, then pop an environment but
15889         don't give an error message on underflow.
15891         * troff/number.c (start_number): Correct spelling in error message.
15893         * troff/input.c (token::delimiter): Don't print an error message
15894         if err is false.
15896         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
15897         ParseDrawFunction if dw->display_enable is true.
15899 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
15901         * pic/pic.y: Parse text positioning like normal attributes, so as
15902         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
15903         positioning attribute.
15905 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
15907         * tbl/main.c (process_data): When in state START while reading a
15908         text block, don't change to state MIDDLE if c is a newline.
15910 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
15912         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
15913         so as to avoid shadowing parameter.
15915 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
15917         * tbl/table.c (trim_space): Deleted.
15918         (table::add_entry): Don't call trim_space.
15920 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
15922         * VERSION: Change version to 0.6.
15924         * troff/number.c (parse_expr): Make == work.
15926 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
15928         * man/grog.man: New file.
15929         * man/Makefile: Add grog.n to MAN1PAGES.
15930         * etc/grog.sh: New file.
15931         * etc/Makefile: Install grog.sh as grog.
15933 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
15935         * troff/input.c (token::next): Implement \E.
15937 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
15939         * xditview/tmac.X: Change font translations to match tmac.ps.
15941         * troff/input.c (non_empty_name_warning): Don't give a warning if
15942         `\{' terminates the name.
15944 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
15946         * ps/devps/symbol.diff: New file.
15947         * ps/devps/FontMakefile: Mention symbol.diff.
15949 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
15951         * troff/node.c (font_position): Use get_long_name to read the
15952         external_name.
15954         * troff/env.c (environment_switch): If we get a number that's < 0
15955         or >= NENVIRONMENTS, treat it like a name.
15956         Change NENVIRONMENTS to 10.
15958         * troff/groff.h: Remove definition of FONTS_MAX.
15959         * troff/node.h (class font_family): Make map a pointer instead of
15960         an array. Add a map_size member. Make it a class. Make nm const
15961         and public. Make invalidate_fontno a friend.
15962         * troff/node.c: Define font_table_size. Make font_info a pointer
15963         rather than an array.
15964         (class troff_output_file): Allocate font_position dynamically. Add
15965         nfont_positions member.
15966         (troff_output_file::set_font): Grow font_position if necessary.
15967         (troff_output_file::~troff_output_file): Delete font_position.
15968         (troff_output_file::troff_output_file): Allocate font_position.
15969         (grow_font_table): New function.
15970         (troff_output_file::really_begin_page,
15971         troff_output_file:really_copy_page): Use nfont_positions rather
15972         than FONTS_MAX.
15973         (mount_font_no_translate, mount_style): Call grow_font_table if
15974         necessary.
15975         (font_family::font_family): Allocate map.
15976         (font_family::make_definite): Grow map if necessary. Use
15977         font_table_size instead of FONTS_MAX.
15978         (font_family::~font_family): New function.
15979         (invalidate_fontno): Use font_family::map_size.
15980         (get_fontno, env_space_width, env_half_narrow_space_width,
15981         env_narrow_space_width, symbol_fotno, is_good_fontno,
15982         get_bold_fontno, make_glyph_node): Use font_table_size rather than
15983         FONTS_MAX.
15984         (next_available_font_position): Never return 0.
15986 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
15988         * ps/tmac.ps: Add font translations for compatibility with dpost.
15990 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
15992         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
15993         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
15994         Move definitions baseline_sep, shift_down, column_sep,
15995         matrix_side_sep into...
15996         * eqn/box.c: Add them to param_table.
15997         * eqn/pbox.h: Add declarations to pbox.h.
15999         * troff/input.c (set_string): Cast value to unsigned char *.
16001         * troff/token.h (process_input_stack): Declare it static before
16002         declaring it a friend.
16004 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
16006         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
16007         and bottom.
16008         * dvi/devdvi/EX: Regenerate.
16010         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
16011         transparent.
16013 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
16015         * eqn/lex.c: In defaults_table, make definition of `dot' call
16016         `dot_def'.  Don't explicitly make it roman.  Similarily for other
16017         accents.
16019         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
16020         argument.
16021         (for_input::get, for_input::peek): Use this.
16022         (do_for): Add by_is_multiplicative argument.
16023         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
16024         Change semantic value of optional_by to be a double plus a flag
16025         saying whethet the by clause is multiplicative.
16027         * eqn/lex.c (get_delimited_text): Remember location of start of
16028         definition.  Improve error handling when EOF is encountered.
16030         * lib/font.h: Rename handle_x_command to
16031         handle_unknown_font_command.
16032         * lib/font.c (font::load): Call handle_unknown_font_command for
16033         any unknown command in the font description file.  Don't call
16034         handle_x_command. Include the name of the command in the argv.
16035         Improve message for unknown command after kernpairs or charset
16036         command.
16037         * ps/ps.c (ps_font::handle_x_command): Rename to
16038         handle_unknown_font_command.  Remove message about `x download'
16039         command.  Give error message for wrong number of arguments.
16040         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
16041         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
16042         handle_unknown_font_command. Give an error message for wrong
16043         number of arguments.  Rename design_size to designsize.
16044         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
16045         checksum', `designsize' instead of `design_size'.
16047 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
16049         * eqn/*.[chy]: Change underaccent to uaccent.
16051         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
16052         give it the same precedence as ACCENT.
16053         * eqn/other.c (make_underaccent_box): New function.
16054         * eqn/box.h: Declare it.
16055         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
16056         def_table.
16058 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
16060         * pic/pic.y (reset_all): New function. Called in rule for RESET.
16061         (parse_init): Call reset_all.
16062         (define_variable): When defining scale reset only those
16063         pre-defined variables that are scaled.
16064         (defaults_table): Add `scale' as non-scaled value.
16066         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
16067         together with the text; allow any number of positioning words;
16068         allow center as a positioning word.
16070         * pic/object.c (output::compute_scale): Get picture maximum height
16071         and width from variables called maxpswid and maxpsht.
16072         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
16074 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
16076         * pic/object.c (object_spec::make_text): Multiply textht by number
16077         of text items.
16079         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
16080         occur.
16081         (do_sprintf): New function.
16082         (pic.gperf): Add sprintf token.
16083         (text, sprintf): New rules.
16085         * pic/pic.y: `rand()' with no arguments returns a random number
16086         in the range [0,1).
16088         * pic/pic.y: Allow a bare expression to be an attribute: change
16089         precedences to support this.  Change optional_ordinal rule to
16090         optional_ordinal_last to avoid reduce/reduce conflict.
16091         * pic/object.c (object_spec::object_spec): Initialize direction.
16093         * pic/pic.y: Implement ^ operator meaning exponentiation.
16095         * troff/node.h: Add default argument to mount_font.
16096         * troff/node.c (font_position): Read an optional third argument
16097         giving the external_name.
16098         (mount_font): Add optional argument giving the external_name.
16099         (mount_font_not_translate): Have additional argument giving
16100         external name.  Use this name to load the font.  Pass both names
16101         to font_info::font_info.
16102         (font_info::font_info): Have additional argument giving
16103         external_name.
16104         (class tfont): New member external_name.
16105         (font_info::get_tfont): Use external name to construct tfont_spec.
16107 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
16109         * eqn/lex.c (init_table): Add argument giving device.  Define
16110         name of device to be "1".
16111         (do_ifdef): Counts as true if the argument has been defined with
16112         `define'.
16113         * eqn/main.c (main): Call init_table with device argument. Make
16114         device local to main.
16115         * eqn/eqn.h: Change declaration of init_table. Remove declaration
16116         of device.
16118         * pic/lex.c (get_delimited): Allow text to be delimited by
16119         matching {}s.  Don't recognize ending delimiter within a string.
16121         * troff/input.c (get_delim_name): New function.
16122         (token::next): Implement \C.
16124         * lib/font.c (font::load): Grok ---.  Add an alias for each
16125         character based on its code.
16126         (font::get_code_width): Deleted.
16127         * lib/font.h (class font): Declare font::number_to_index().
16128         Remove declaration of font::get_code_width.
16129         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
16130         to indices of named characters.
16131         (font::number_to_index): New function.
16132         * troff/input.c (font::number_to_index): New function.
16133         (get_charinfo_by_number, charinfo::get_number,
16134         charinfo::set_number): New functions.
16135         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
16136         (token::process, token::description, token::get_char,
16137         token::add_to_node_list, token::operator==): Handle
16138         TOKEN_NUMBERED_CHAR.
16139         * troff/charinfo.h: Declare get_charinfo_by_number,
16140         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
16141         charinfo class.
16142         (charinfo::numbered): New function.
16143         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
16144         * troff/env.h (class environment): Remove declaration of ...
16145         * troff/env.c (environment::make_numbered_char_node): Deleted.
16146         * troff/node.c (make_numbered_node): Deleted.
16147         (class numbered_glyph_node): Remove.
16148         (troff_output_file::put_char_width, troff_output_file::put_char):
16149         Handle numbered chars.
16150         (troff_output_file::numbered_char): Removed.
16151         (tfont::get_code_width): Removed.
16152         (make_glyph_node): Don't search special fonts for numbered
16153         characters.
16154         * troff/node.h: Remove declaration of make_numbered_node.
16155         * driver/input.c (do_file): Handle N command.
16156         * driver/printer.h: Add declaration of ...
16157         * driver/printer.c (printer::set_numbered_char): New function.
16158         * dvi/tfmtodit.c (main): Generate unnamed entries.
16159         * ps/devps/afmtodit: Likewise.
16160         * xditview/xtotroff.c (MapFont): Likewise.
16161         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
16163         * tbl/main.c (process_format): If multiple widths are specified
16164         for a column but all the widths are the same, don't give an error
16165         message.
16167         * tbl/table.c (table::do_row): If the current row is all lines and
16168         the stuff doesn't contains a line, mark the top of the row after
16169         printing stuff before the row.  If the current row is not all
16170         lines and the stuff doesn't contain a line, don't unnecessarily
16171         mark the top of the row before printing the stuff.
16172         
16173 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
16175         * troff/groff.h: Remove MAX_PATH.
16176         * troff/input.c (open_file): Dynamically allocate space for the
16177         path.
16178         (open_mac_file, process_macro_file): Corresponding changes.
16180 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
16182         * troff/node.h (class output_file): Make copy_file pure.  Add
16183         vspace method ifdef COLUMN. Add is_printing method.
16184         * troff/node.c: Add class printing_reg. Add class
16185         real_output_file. Derive other output_file classes from
16186         real_output_file; in these classes rename begin_page to
16187         really_begin_page, print_line to really_print_line, copy_file to
16188         really_copy_file, transparent_char to really_transparent_char.
16189         Move output_file::flush to real_output_file. Add printing member
16190         to class output_file.
16191         * troff/div.h: Remove printing member from top_level_diversion.
16192         Add vspace member function to class diversion ifdef COLUMN. Add
16193         some declarations ifdef COLUMN.
16194         * troff/div.c (top_level_diversion::copy_file,
16195         top_level_diversion::transparent_output,
16196         top_level_diversion::output): Don't test printing member before
16197         output.
16198         * troff/input.c: Handle initial variable_space_request ifdef
16199         COLUMN.
16200         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
16201         but comment it out.
16203 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
16205         * troff/div.c (diversion::need): Make any space forced.  If we
16206         sprung a trap, set truncated_space to minus the distance to the
16207         trap and set needed_space to the amount that was needed.
16208         (top_level_diversion::space): A forced space turns no_space_mode
16209         off.
16210         (class constant_vunits_reg): New class.
16211         (init_div_requests): Implement number registers .trunc and .ne
16212         using constant_vunits_reg.
16213         (class truncated_space_reg): Deleted.   
16215         * troff/div.h: Don't have a no_space_mode member in diversion.
16216         Instead have it in top_level_diversion.
16217         * troff/div.c (diversion::diversion): Don't initialize
16218         no_space_mode.
16219         (top_level_diversion::top_level_diversion): Initialize
16220         no_space_mode.
16221         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
16222         (macro_diversion::output): Don't clear no_space_mode.
16224         * troff/input.c (diverted_space_node::reread): Don't call
16225         environment::do_break.  In fill mode, act like a blank line.
16226         (diverted_copy_file_node::reread): Don't call
16227         environment::do_break.
16229         * troff/div.c (blank_line): New function.
16230         * troff/div.h: Declare it.
16231         * troff/input.c (process_input_stack): Call it.
16233         * troff/div.c (truncated_space_reg::get_string): New function.
16234         (init_div_requests): Bind to .trunc.
16235         (space_request, top_level_diversion::space,
16236         top_level_diversion::output, macro_diversion::space,
16237         macro_diversion::output): Update truncated_space.
16238         (macro_diversion::output): Redo calculations when trap sprung.
16239         (macro_diversion::output, macro_diversion::space): No need for
16240         trap_flag.
16242         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
16243         after truncating post line spacing.
16245 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
16247         * ps/devps/prologue (MF, SF): Make them work even if setfont is
16248         defined as a procedure rather than as an operator.
16250 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
16252         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
16254 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
16256         * troff/div.c (top_level_diversion::output): Merge
16257         output_file::print_line and output_file::end_of_line member
16258         functions.
16259         * troff/div.h (class output_file):
16260         * troff/node.c (troff_output_file::print_line,
16261         troff_output_file::end_of_line, output_file::end_of_line,
16262         ascii_output_file::print_line, suppress_output_file::print_line):
16263         Corresponding changes.  
16265 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
16267         * troff/input.c (token::next): Don't give a warning for `\.'.
16269         * troff/env.c (environment::get_center_lines): New function.
16270         (init_env_requests): Bind number register .ce to it.
16271         * troff/env.h: Declare it.
16272         * tbl/table.c (table::init_output): Define reset macro to restore
16273         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
16274         Then do .ce 0.
16275         (table::print): If center option not given, then imply center
16276         option if SAVED_CENTER_REG > 0.
16278 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
16280         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
16281         Troff.ps from DOWNLOAD.
16282         
16283         * troff/Makefile: Change comment in DEFINES to avoid confusing
16284         System V make.
16286         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
16287         code.  Don't try to catch errors with stopped.
16288         (check_line_lengths): New function.
16289         * ps/devps/prologue (EXEC): Deleted.
16290         (EBEGIN, EEND): New procedures.
16292 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
16294         * troff/input.c: Include request.h before node.h.
16295         * troff/node.c: Likewise.
16296         * troff/env.c: Likewise.
16297         * troff/div.c: Likewise.
16298         * troff/node.h (class special_node): Store argument as a macro
16299         rather than a char *.
16300         * troff/node.c (special_node::special_node, special_node::copy):
16301         Grok this.
16302         (special_node::~special_node): Deleted.
16303         (special_node::tprint): Deleted.
16304         (special_node::tprint_start, special_node::tprint_end,
16305         special_node::tprint_char): New functions.
16306         (troff_output_file::special): Deleted.
16307         (troff_output_file::start_special, troff_output_file::end_special,
16308         troff_output_file::special_char): New functions.
16309         * troff/input.c (special_node::tprint): New function.
16310         (do_special): Use macro not char *.
16311         (do_transparent_macro): Deleted.
16312         (token::next): Don't call do_transparent_macro.
16314         * troff/input.c (token::next): Add 'Y' case.
16315         (do_transparent_macro): New function.
16316         * troff/node.c (troff_output_file::special): Handle newlines with
16317         argument using new continuation convention.
16318         * driver/input.c (get_string): Cope with continuation convention.
16319         (do_file): Don't call skip_line after calling get_string(1).
16320         * ps/ps.c (ps_printer::special, ps_printer::do_import,
16321         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
16322         arg.
16323         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
16324         with +.
16326 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
16328         * troff/input.c (asciify): By default, illegal input characters
16329         should return empty string.
16331         * troff/input.c (copy_file): Handle first page transition like title.
16332         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
16334         * troff/input.c (token::next): Improve error message for EOF after
16335         escape character.
16336         (input_char_description): New function.
16337         (get_char_for_escape_name): Use input_char_description.
16338         (token::next): Warn about unrecognized escape sequences.
16339         (warning_table): Add WARN_ESCAPE.
16340         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
16341         accordingly.
16343         * troff/token.h: Remove declaration of process_input_stack.
16345         * troff/input.c: Remove declaration of init_hyphen_requests.
16346         * troff/request.h: Correct spelling in declaration of same.
16348         * troff/input.c (token::next): Check whether escape_char is 0.
16350 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
16352         * groff.c (main, usage, help): Implement -P and -L options.
16353         * groff.sh: Likewise.
16355         * troff/input.c (token::next): Use some gotos to avoid code
16356         duplication.
16358         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
16359         Avoid calling symbol::symbol if name empty.
16361 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
16363         * troff/input.c (init_input_requests): Make \n(.x return the major
16364         version number and \n(.y return the minor version number.
16365         * troff/Makefile: Construct file majorminor.c defining
16366         major_version and minor_version automatically from ../VERSION.
16368         * troff/node.c (class glyph_node): Make operator new and operator
16369         delete public.
16370         (class ligature_node): Similarily.
16372         * troff/input.c (operator==(const macro &, const macro &)): New
16373         function.
16374         (non_interpreted_node::same): Use this.
16375         (string_iterator::string_iterator): Make macro& argument const.
16377         * troff/input.c (input_iterator::get): New function. Don't make
16378         asciify_macro or class non_interpreted_node friends of class
16379         input_iterator.
16380         (non_interpreted_node::interpret): Use input_iterator::get.
16381         (asciify_macro): Likewise.
16383         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
16384         ~non_interpreted_node): Deleted.
16385         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
16386         Deleted.
16388         * troff/symbol.h: Make all symbol member functions const.
16390         * lib/strtol.c: New file.
16391         * lib/Makefile: Add strtol.c.
16392         * Makefile: Define STRTOL as strtol.o to include strtol in
16393         libgroff.a.
16395 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
16397         * pic/troff.c (troff_output::simple_circle): Divide by scale.
16399 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
16401         * troff/input.c (do_special): Use input_level.
16403         * troff/token.h (TOKEN_BACKSPACE): New token.
16404         (token::backspace): New function.
16405         * troff/input.c (token::description, token::next, token::process):
16406         Grok TOKEN_BACKSPACE.
16407         (do_special): Turn TOKEN_BACKSPACE back into \b.
16409         * troff/token.h (token::leader): New function.
16410         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
16412         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
16414         * troff/input.c (do_special): Use token::description in error
16415         message.
16417 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
16419         * troff/input.c (decode_args): Combine quoted and
16420         quote_input_level variables. Make it a for (;;) loop.
16422         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
16424         * troff/input.c (read_long_escape_name): The test for whether to
16425         expand buffer was off by 1.
16426         (read_string): Similarily.
16428 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
16430         * troff/input.c: Use `const int' rather than `static const int'.
16432         * troff/div.h (diversion::copy_file): Declare as pure virtual.
16433         (macro_diversion::copy_file): New function.
16434         * troff/node.h: New class diverted_copy_file_node.
16435         * troff/node.c: Implement it.
16436         * troff/input.c (copy_file): Use diversion::copy_file. Handle
16437         first page transition by pushing a diverted_copy_file_node.
16438         * troff/input.c (token::next, process_input_stack): Don't handle
16439         COPY_FILE_REQUEST.
16441 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
16443         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
16444         whether space widths need adjusting.
16446         * troff/charinfo.h: Generalize translated_to_space to
16447         special_translation so as to allow translation to \&.
16448         * troff/input.c (translate): Allow translation to \&.
16449         (charinfo::*): Corresponding changes.
16450         * troff/node.c (make_node, node::add_char): Corresponding changes.
16451         * troff/node.h (dummy_node::dummy_node): Allow optional first
16452         argument.
16454         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
16455         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
16456         TOKEN_REQUEST.
16457         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
16458         TOKEN_REQUEST with an argument of TITLE_REQUEST.
16459         (token::process): Grok that.
16460         * troff/input.c (copy_file): Handle first page transition like
16461         title by pushing a COPY_FILE_REQUEST cookie.
16462         (token::next, process_input_stack): Grok that.
16463         * troff/node.h (output_file::copy_file): Add x and y arguments.
16464         Make it non-pure.
16465         * troff/div.c (top_level_diversion::copy_file): Supply them.
16466         * troff/node.c (troff_output_file::copy_file): Add x and y
16467         arguments; moveto specified position.  Invalidate font_position
16468         array after copying file.
16469         (output_file::copy_file): New function.
16470         (suppressed_output_file::copy_file, ascii_output::copy_file):
16471         Removed.
16472         * troff/input.c (transparent_file): New function.
16473         (init_input_requests): Bind to "trf".
16474         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
16475         (process_input_stack): Likewise.
16477         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
16479         * troff/node.c (init_node_requests): New number registers .kern
16480         pointing to global_kern_mode, and .lg pointing to
16481         global_ligature_mode.
16483         * troff/node.c (ligature): Don't change it if we get a bad
16484         integer.
16486         * troff/input.c (do_define_string): Don't strip tabs.
16488         * troff/input.c (asciify_macro): Make the string_iterator auto.
16490         * troff/node.c (init_font_requests): Rename to...
16491         (init_node_requests):
16492         * troff/node.h: Change declaration.
16493         * troff/input.c (main): Change call.
16495         * troff/input.c (node::reread, diverted_space_node::reread): New
16496         methods.
16497         (process_input_stack): Call reread rather than
16498         get_diverted_space_node.
16499         * troff/node.c (node::get_diverted_space_node,
16500         diverted_space_node::get_diverted_space_node): Removed.
16501         * troff/node.h: Declare reread methods instead of
16502         get_diverted_space_node methods. Make `n' member private.
16503         * troff/input.c: (token::diverted_space): Removed.
16504         * troff/token.h: Removed declaration.
16505         
16507 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
16509         * eqn/script.c (script_box::compute_metrics): Don't let
16510         SUP_RAISE_FORMAT become negative.
16512         * tbl/table.c (table::do_row): Entries that don't end in the
16513         this row shouldn't make the row non-blank.
16514         
16515         * tbl/table.c (table::make_columns_equal): Only set the width of
16516         columns which are marked as equal.
16517         
16518         * tbl/main.c (process_data): Before issuing excess data error,
16519         if last character was a newline unget it; then get it again after
16520         the error.  Also include the contents of the entry in the message.
16522         * groff.c: New file.
16523         * Makefile: Build groff from groff.c.  Make it possible to use
16524         either groff.sh or groff.c as groff.
16525         * Makefile.bd: Similarily.
16527 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
16529         * groff.sh: Don't delay expansion of $@ in assignment to files.
16530         Remove occurrences of \".
16532 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
16534         * all Makefiles: Simplify and rearrange.
16536         * Makefile: Handle fmod like malloc.
16537         * lib/Makefile: Similarily.
16538         * lib/fmod.c: Remove #ifdef NEED_FMOD.
16540         * Makefile: Rename OPTIMISE to OPTIMIZE.
16542         * groff.sh: Remove assignment to PATH.
16543         * Makefile: Remove SHPATH variable.
16544         * Makefile.bd: Similarily.
16546         * groff.sh: Add -V option to print the pipeline instead of
16547         executing it.
16549 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
16551         * lib/font.c: Split off file searching into ...
16552         * lib/fontfile.c: New file.
16554         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
16556 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
16558         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
16559         Also change misleading comment.
16560         (table::do_vspan): Change similarily misleading comment.
16561         * tbl/main.c (process_data): A format row with an explicit `s'
16562         uses up a data line, even if all the other columns are `_' or `='.
16564         * troff/input.c (token::description): Fix description of
16565         TOKEN_DUMMY and TOKEN_EMPTY.
16567 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
16569         * groff.sh: Fix description of -Z in help message.
16571 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
16573         * pic/object.c (object_spec::make_object): Allow negative and zero
16574         line thicknesses.
16575         * pic/pic.y: Give linethick default value of -1.0.
16576         * pic/troff.c (troff_output::troff_output): Initialize
16577         last_line_thickness to BAD_THICKNESS.
16578         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
16579         (troff_output::line_thickness): Canonicalize negative thicknesses
16580         to RELATIVE_THICKNESS.
16581         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
16582         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
16583         to -1.0.
16584         (tex_output::start_picture): Set pen_size to -2.0.
16586         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
16587         0, then use 0 linewidth.
16588         (ps_printer::ps_printer): Initialize line_thickness to -1.
16590         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
16592         * ps/devps/symbolchars: Remove `or'.
16593         * ps/tmac.ps: Implement \(or with .char.
16595         * ps/devps/symbolchars: Move most characters into textmap.
16596         * ps/devps/textmap: Add names for troff bracket characters. Remove
16597         ul, ru, br, bv.
16599         * ps/devps/TSymbol.ps: Removed.
16600         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
16601         * ps/tmac.ps: Do with .char what TSymbol did.
16602         * ps/devps/download: Remove TSymbol.
16604         * ps/devps/T: Removed.
16605         * ps/devps/Troff.ps: Removed.
16606         * ps/devps/Troff.afm: Removed.
16607         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
16608         * ps/devps/download: Remove Troff.
16609         * ps/devps/FontMakefile: Remove T target.
16610         * ps/devps/DESC-A4: Remove T from font list.
16611         * ps/devps/DESC-letter: Likewise.
16613         * troff/input.c (macro_to_node): Rename to ...
16614         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
16615         character's definition while processing it.
16616         * troff/node.c (node::add_char, make_node): Change calls to
16617         macro_to_node accordingly.
16619         * troff/input.c (token::next): Translate \_ to \(ul.
16621         * tty/devascii/R.proto: Add `|'.
16622         * tty/devlatin1/R.proto: Likewise.
16624 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
16626         * man: Put the version number in all the man pages.
16628 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
16630         * Makefile.bd: New file.
16631         * README.bd: New file.
16633         * VERSION: New file.
16634         * lib/version.c: Removed.
16635         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
16636         in clean target.
16638         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
16639         environment variable.
16641         * all Makefiles: Split install target into install.bin for
16642         binaries, and install.nobin for everything else.
16643         * Makefile: Add bindist target.
16645         * man/afmtodit.man: New file.
16646         * man/Makefile: Add afmtodit.n to MAN1PAGES.
16647         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
16648         in BINDIR.
16649         * ps/Makefile: Pass BINDIR to make install in devps.
16651         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
16652         the space character.
16654         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
16656 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
16658         * ps/ps.c: Redo font downloading.
16659         * ps/devps/download: New file.
16660         * ps/devps/Makefile: Add download to DEVICEFILES.
16661         * ps/devps/afmtodit: Remove -d option.
16662         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
16663         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
16664         * ps/devps/zapfdr.ps: Likewise.
16665         * ps/devps/TSymbol.ps: Likewise.
16667 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
16669         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
16671 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
16673         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
16674         then strip the first line if it starts with %.
16675         * Makefile: Add a comment about this.
16677         * man/tfmtodit.man: New file.
16678         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
16679         * dvi/Makefile: Install tfmtodit in BINDIR.
16681         * dvi/tfmtodit.c (usage): Mention -v option.
16683 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
16685         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
16686         * troff/node.c (troff_output_file::transparent_char): Don't call
16687         flush_tbuf.
16689         * eqn: Add check_tabs method to most box classes.
16690         * eqn/box.c (box::top_level): Call check_tabs.
16692         * eqn/script.c (script_box::output): Use \Z.
16693         * eqn/limit.c (limit_box::output): Use \Z.
16695         * eqn/box.c (box::top_level): Use itoa.
16697 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
16699         * dvi/tmac.dvi: Add font translations for CR, C, TT.
16700         * dvi/devdvi/Makefile: Don't make links to CW.
16702         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
16703         HX, HD.
16704         * xditview/tmac.X: Likewise.
16706         * troff/node.c: Add font translation feature.
16707         (get_font_translation): New function.
16708         (symbol_fontno): Translate the font name.
16709         (mount_font_no_translate): Rename to mount_font to this.
16710         (mount_font): New function.
16711         (font_family::make_definite): Call mount_font_no_translate instead
16712         of mount_font.
16713         (mount_style): Translate the font name.
16714         (font_translate): New function.
16715         (init_font_requests): Bind "ftr" to font_translate.
16717         * ps/devps/prologue (SN): New procedure that rounds a position to
16718         the nearest (pixel + (.25,.25)).
16719         (DL): Use SN to round endpoints.
16721         * lib/version.c: Changed version to 0.5.
16723 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
16725         * Makefile: Move definition of PAGE to the very beginning, so that
16726         people are less likely to miss it.
16728 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
16730         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
16732         * troff/env.c (environment::choose_breakpoint): Make `can't find
16733         breakpoint' error a warning of type WARN_BREAK.  Change message to
16734         `can't break line'.
16735         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
16736         code 040000.
16737         * troff/input.c: Add WARN_BREAK to warning_table.  Include
16738         WARN_BREAK in DEFAULT_WARNING_MASK.
16740         * tty/tmac.tty: Add definition of \(+-.
16742         * groff.sh: Remove `--' option to set command.
16744         * dvi/devdvi/texsy.map: Remove duplicate md entry.
16746         * ps/devps/eqnchar: Better definition of cdot using md.
16747         * dvi/devdvi/eqnchar:  Likewise.
16748         * xditview/devX100/eqnchar:  Likewise.
16749         * xditview/devX75/eqnchar: Likewise.
16750         * eqn/lex.c: Add definition of cdot.
16752 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
16754         * troff/input.c (get_optional_char): New function.
16755         * troff/input.c (set_page_character): Use get_optional_char(),
16756         rather than has_arg() and tok.get_char(1).
16757         * troff/env.c (tab_character, leader_character, hyphen_char,
16758         field_characters): Likewise.
16759         (margin_character): Likewise.  Also always delete the
16760         margin_character_node.
16762         * troff/input.c (token::get_char): Use token::description.
16764         * troff/input.c (has_arg): Don't skip over tab and \}.
16765         * troff/number.c (start_number): Give a warning if the number
16766         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
16768 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
16770         * troff/input.c (empty_name_warning, non_empty_name_warning): New
16771         functions.
16772         (get_name, get_long_name): Use these.  Rename `warn' argument to
16773         `required'.
16775         * troff/node.c (get_fontno): Test that the symbol is not null.
16777         * troff/input.c (token::description): New function.
16778         * troff/number.c (parse_term): Use token::description in `numeric
16779         expression expected' message.
16780         * troff/groff.h: Add WARN_MISSING.
16781         * troff/number.c (start_number): New function.
16782         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
16783         get_incr_number): Use start_number().
16784         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
16785         default.
16786         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
16787         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
16788         token::descripion.
16789         * troff/input.c (token::get_char): Use WARN_MISSING.
16790         * troff/input.c (token::delimiter): Use token::description.
16791         * troff/env.c (environment_switch): Back out Aug 3 change.
16792         * troff/input.c (has_arg): Skip over \}s and tabs but give a
16793         warning.
16794         * troff/token.h (token::tab): New function.
16795         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
16796         * troff/reg.c (alter_format): Likewise.
16797         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
16799 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
16801         * troff (most files): Redo warnings. Divide warnings into various
16802         categories; warning() has an additional first argument indicating
16803         the category it falls into.
16804         * troff/input.c (main): -w now takes an argument. New option -W.
16805         (enable_warning, disable_warning): New functions.
16807         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
16808         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
16810 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
16812         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
16813         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
16814         * xditview/devX75/eqnchar: Likewise.
16815         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
16817         * eqn/other.c: When bar or over applies to a single character
16818         don't produce an overline_box or an underline_box. Instead produce
16819         an accent_box or an underaccent_box, with the accent a line
16820         whose width is accent_width.  New classes underaccent_box,
16821         overline_char_box and underline_char_box.
16822         * eqn/box.h: Move overline_box, underline_box, accent_box class
16823         declarations into eqn/other.c. Add declarations of
16824         make_underline_box, make_overline_box, make_accent_box.
16825         * eqn/eqn.y: Call make_overline_box, make_underline_box
16826         make_accent_box instead of constructors.
16827         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
16829         * eqn/other.c: Add accent_box::~accent_box.
16830         * eqn/box.h: Declare it.
16832         * groff.sh: With -Tps, use eqn -D.
16834         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
16835         rather than \l.
16836         (underline_box::output): Similarily.
16837         (accent_box::output): Use \Z.
16839         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
16840         bit smaller.)
16842 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
16844         * troff/div.c (top_level_diversion::transparent_output(unsigned
16845         char)): Use asciify.
16846         * troff/input.c (asciify): Don't make it static.
16847         * troff/token.h (asciify): Declare it.
16848         
16849         * troff/input.c (get_name, get_long_name, token::get_char,
16850         token::delimiter): Add an extra default argument which says
16851         whether a warning should be printed.
16852         * troff: Pass a non-zero argument to one of these rather than
16853         printing a warning directly.
16855 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
16857         * troff: Consistently use symbol::is_null.
16859         * troff/dictionary.h: Move some inline functions into
16860         dictionary.c.
16862         * troff/request.h: Move inline functions into input.c.
16863         (request_or_macro::invoke): Make it pure.
16865         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
16866         * troff/input.c (init_input_requests): Use class constant_int_reg.
16867         (class compatible_reg): Deleted.
16868         * troff/div.c (init_div_requests): Use class constant_int_reg.
16869         (class last_post_line_extra_space_reg): Deleted.
16871         * troff/env.c (tab_character): Don't change the tab character if
16872         we get an invalid argument.
16873         (hyphen_char): Similarily.
16875         * troff/reg.c (alter_format): Check that nm is not null.
16877         * Makefile, groff.sh: Make it possible to customize the commands
16878         used for printing PostScript and dvi files. Also make it possible
16879         to customize the path used by groff.sh.
16881         * eqn/eqn.y: Make `left' right associative.
16883 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
16885         * pic/pic.h: Added definition of M_SQRT2 for those systems that
16886         don't have it.
16888         * pic/pic.h: Removed definition of INT_MAX.
16890         * troff/node.c (italic_corrected_node::vertical_extent): Omit
16891         `return'.
16893         * troff/input.c (token::next):  Handle \R like \n.
16895 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
16897         * ps/tmac.pc (PSPIC): Simplify.
16899         * troff/env.c (tab_stops::to_string):
16900         * pic/pic.y (object_type_name):
16901         * pic/troff.c (simple_output::line):
16902         * pic/tex.c (tex_output::spline):
16903         * pic/object.c (object_spec::make_object):
16904         * tbl/main.c (process_data):  Add cases to switch statements to
16905         avoid cfront warnings. (Some of these are spurious, since the
16906         switch already has a default case.)
16908         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
16909         `ps-'.  Don't test systat; instead check number of arguments to
16910         ps-bb.
16912 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
16914         * macros/tmac.e: Do not decrease the page offset by 0.5i.
16916         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
16917         Unlink the file as soon as we have opened it, so that we don't
16918         have to bother with signal handlers.
16919         (handler): Deleted.
16920         (fatal_error_exit): Deleted.
16921         (main): Don't call signal.
16923         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
16924         can be ignored.
16925         * dvi/devdvi/Makefile: Use the -k option with S and MI.
16927         * pic/pic.y:  If there is a label, or an nth construction before
16928         the first `.' in the argument to `with', ignore it and generate a
16929         warning.
16930         * pic/lex.c (lex_warning): New function.
16932         * tbl/table.c (table::init_output): In section keep and release
16933         macro, use 0 indent when diverting and the correct indent when
16934         rereading.
16936         * troff/input.c (interpolate_number_format): Do not interpolate
16937         anything if the number register is not defined.
16939         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
16941 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
16943         * ps/devps/prologue (PICTURE): Set components of graphics state to
16944         their default values.
16946         * ps/devps/text.enc: Add trademark
16947         * ps/devps/textmap: Add names for club, spade, heart, diamond,
16948         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
16949         * ps/devps/symbolchars: Add names for summation and product.
16951         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
16952         suchthat. Add pp. Add upper-case letters.
16954         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
16955         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
16956         Upsilon.
16958         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
16959         rA (right angle bracket) to ra.  Introduce names for double-headed
16960         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
16961         * ps/devps/textmap: Likewise for ps device.
16962         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
16963         * tty/devascii/R.proto: Rename lA to la and rA to ra.
16964         * tty/devascii/R.proto: Likewise.
16965         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
16966         \(uA, \(dA.
16967         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
16969         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
16971         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
16972         def_table.
16974 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
16976         * troff/div.c (when_request): Use symbol::is_null rather than
16977         has_arg to determine whether we have an argument.
16978         (change_trap): Remove the trap if we get an invalid number. Give
16979         an error if we don't get at least the macro name.
16980         (diversion_trap): Remove trap if we get an invalid name or number.
16982         * troff/env.c (environment_switch): Pop if we get an invalid
16983         symbol or numeric expression.
16985         * troff/input.c (do_define_macro):  If EOF is encoutered while
16986         defining the macro, do tok.next() before returning.
16988         * troff/token.h (has_arg): Move definition from here, to ...
16989         * troff/input.c (has_arg): ... here
16991         * troff/env.c (space_size): Do nothing if we get an invalid argument.
16992         * troff/input.c (shift): Likewise.
16994         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
16995         for `.c'.
16997         * pic/troff.c (troff_output::start_picture):  Comment out calls to
16998         `..'.
17000         * eqn/main.c (do_file): Subtract 1 from current_lineno if
17001         interpret_lf_args succeeds.
17003         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
17004         \\.  This avoids problems with \$N.
17006         * groff.sh: Pass -C to preprocessors.
17008         * lib/lf.c (interpret_lf_args):  Be more flexible.
17010         * tbl/main.c (main): Add -C option.
17011         (table_input::get): Do not recognize TE if followed by character
17012         other than a space or newline unless -C option given.
17013         (process_input_file): Likewise for lf, TS.
17014         (process_data): Likewise for lf in text blocks.
17016         * eqn/main.c (main): Add -C option.
17017         (do_file): Don't recognize EQ, EN or lf if followed by character
17018         other than space or newline unless -C option given.
17019         * eqn/lex.c (file_input::read_line): Similarily.
17020         * eqn/eqn.h: Declare compatible_flag.
17022         * etc/soelim.c (main): Add -C option.
17023         (interpret_lf_args): Use version in libgroff.
17024         (do_file):
17026         * pic/main.c (main): Add -C option, which sets compatible_flag.
17027         (top_input::get), (top_input::peek):  If -C option not given,
17028         do not recognize .PS/.PE/.PF/.lf if followed by a character
17029         other than space or newline.
17030         * pic/lex.c (file_input::read_line): Similarily.
17031         * pic/pic.h: Add declaration of compatible_flag.
17033 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
17035         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
17037         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
17038         derived from node.  New class space_char_hmotion_node.
17039         * troff/input.c (asciify_macro): New function.
17040         * troff/input.c (init_input_requests): New request `asciify' bound
17041         to asciify_macro.
17042         * macros/mm.diff: New file.
17043         * Makefile:  In install.mm target use `patch' to apply
17044         macros/mm.diff.
17046         * troff/input.c (macro::print_size): Just print the size in bytes.
17048         * troff/div.c (return_request): Correct the argument
17049         interpretation.
17051 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
17053         * troff/node.h (class composite_node): Add sz member.
17054         * troff/node.c (composite_node::size): Return sz.
17055         * troff/input.c (macro_to_node):  Use the initial size in the
17056         environment as the size of the composite_node.
17058         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
17059         default.
17061 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
17063         * troff/div.c (change_trap): If we get a bad number expression,
17064         do nothing.
17066 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
17068         * lib/matherr.c (matherr): Define this only if math.h defines
17069         TLOSS.
17071 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
17073         * troff/div.c (macro_diversion::distance_to_next_trap): If there
17074         no diversion trap return vunits(INT_MAX - vresolution).
17076 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
17078         * troff/input.c (do_zero_width): New implementation that doesn't
17079         use a temporary environment. Use instead:
17080         (token::add_to_node_list): New function.
17081         * troff/env.c (environment::get_prev_char_height),
17082         (environment::get_prev_char_height),
17083         (environment::get_prev_char_skew): New functions.
17084         (environment::get_prev_char): New function.
17085         (environment::get_prev_char_width): Change to use get_prev_char.
17086         (init_env_request): Implement new registers .cht, .cdp, .csk.
17087         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
17088         \Z being processed in a separate environment.
17090 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
17092         * tbl/table.c: Removed TABLE_BOTTOM_REG.
17094         * tbl/table.c (table::init_output): In the section release macro,
17095         give a warning message if the section won't fit on one page.
17097         * tbl/table.c (table::do_top): Emit table keep only if table is
17098         boxed.
17099         (table::do_bottom): Likewise for table release.
17100         (table::table), (table::add_vertical_rule):  Remove reference to
17101         keep member.
17102         * tbl/table.h: Remove keep member.
17104         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
17105         SECTION_RELEASE_MACRO, if there's not enough space before the next
17106         trap to output the diversion, call T# ourselves, set
17107         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
17108         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
17109         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
17110         vertical position and return to it before turning traps on again.
17111         
17112 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
17114         * troff/node.c, troff/node.h: In classes derived from node,
17115         replace prev_char_width method by last_char_node method.
17116         * troff/env.c (environment::get_prev_char_width): Use
17117         node::last_char_node rather than node::get_prev_char_width.
17119         * Makefile: Added comment about -fno-inline on 68030-based
17120         Apollos.
17122         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
17123         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
17124         expressions using sizeof to int.
17125         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
17127         * macros/tmac.e (TS):  Don't move @f back past the current
17128         position.
17130 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
17132         * ps/ps.c (main): Buffer stderr.
17133         * dvi/dvi.c (main): Likewise.
17134         * tty/tty.c (main): Likewise.
17136         * ps/ps.c (ps_printer::do_import): Improve error handling.
17138         * troff/input.c (abort_request): Use asciify.
17140         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
17141         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
17142         type of first argument int rather than char.  This works around a
17143         bug on the 68030 based Apollo using g++ 1.37.1.
17145         * tbl/table.h (class table): Add `keep' member.
17146         * tbl/table.c (table::table): Initialize `keep'.
17147         (table::add_vertical_rule): Set `keep' to 1.
17148         (table::do_top): Only emit table keep macro is `keep' is non-zero.
17149         (table::do_bottom): Likewise for table release macro.
17150         (table::do_row): Emit section keep macro even if the row is 0.
17152 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
17154         * macros/tmac.e (@C): Preserve the font family across the change
17155         in environments.
17157 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
17159         * lib/font.c: Initialize font::hor and font::vert to 1.
17160         (font::load_desc): Check the values of font::hor and font::vert.
17162         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
17163         be included in a C compilation.
17164         (iftoa): Use INT_DIGITS. Include lib.h.
17165         (itoa): Likewise.
17166         (as_string): Likewise.
17167         * tbl/table.c: Removed definition of INT_DIGITS.
17168         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
17169         * troff/input.c (input_input_requests): Likewise.
17170         * ps/ps.c (make_encoding_name): Likewise.
17171         (ps_printer::set_style): Likewise.
17172         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
17174         * tty/devascii/R.proto: Map fm onto '.
17175         * tty/devlatin1/R.proto: Likewise.
17177 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
17179         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
17180         argument to \w is at a different input level.
17182         * tbl/table.c (table::init_output): Define a new macro
17183         REPEATED_VPT_MACRO, like vpt but if in a diversion also
17184         transparently outputs itself.
17185         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
17186         vpt.
17187         (table::do_row): Likewise.
17189         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
17190         TRANSPARENT_STRING_NAME.
17192         * tbl/table.c (table::init_output): In the table release macro
17193         print an error message and don't produce any output if after
17194         issuing the need request the table still will not fit.  Also
17195         remove the diversion after bringing it back.
17197         * tbl/table.c (table::init_output): Define a new macro
17198         REPEATED_MARK_MACRO, like mk but if in a diversion also
17199         transparently outputs itself.
17200         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
17201         is necessary because .TH might not call .T#.
17202         (table::do_top): Likewise TOP_REG.
17203         (table::define_bottom_macro): If TOP_REG is no longer valid, use
17204         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
17205         table header might contain just the two top rules.
17207 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
17209         * troff/div.c: Implement new request `ptr' to print all traps.
17211         * troff/env.c (init_env_requests): Implement `.tabs' reg with
17212         init_string_env_reg.
17213         * troff/env.c (class tab_reg): Deleted.
17215 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
17217         * troff/div.c: New number register .pn returns the number of the
17218         next page as set by the pn request.
17220         * macros/tmac.an: Redid headers and footers.  Number each manual
17221         entry starting from 1 unless \nC is > 0, like Sun.  Added an
17222         optional 5th argument to .TH which specifies the manual name and
17223         appears in the center of the header.  Understand the X, P and D
17224         registers like Sun.
17226 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
17228         * troff/env.c (init_env_requests): New number register `.lt' to
17229         return the title length.
17231         * troff/node.h (class transparent_dummy_node): New class.
17232         * troff/node.c (class transparent_dummy_node): Provide member
17233         functions. 
17234         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
17235         than a dummy_node.
17237         * troff/input.c (token::next): New escape sequence \).
17238         * troff/input.c (get_copy): Recognize \) in copy mode.
17240         * troff/input.c (input_stack::clear): New function.
17241         * troff/input.c (exit_request): Use input_stack::clear.
17243         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
17244         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
17246         * troff/env.c: Move set_page_character to input.c.  Move
17247         page_character to input.c also.
17248         * troff/env.c (title): Split off the reading of the parts of the
17249         title into read_title_parts.
17250         * troff/input.c (read_title_parts): New function.  Check the
17251         input_level when testing whether a token matches the delimiter.
17253         * troff/input.c (exit_request): New function.
17254         * troff/input.c (init_input_requests): Bind ex request to
17255         exit_request rather than exit_groff.
17257         * troff/input.c (exit_groff): Call tok.next() before
17258         process_input_stack().
17260 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
17262         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
17263         * troff/env.h: ditto.
17264         * troff/input.c: ditto.
17266         * troff/env.c (environment::is_empty): Test pending_lines.
17268         * troff/env.c (environment::have_pending_lines): Removed.
17270         * troff/input.c: Add request to flush pending lines from the
17271         environment.
17273         * troff/env.c, troff/env.h: Add automatic widow control feature.
17275         * troff/input.c (exit_groff):  Do process_input_stack() after
17276         do_break() but before setting exit_flag to 2.
17278         * troff/input.c: Remove FLUSH_PENDING_LINES and
17279         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
17280         environment after END_TRAP token seen, but only if there aren't
17281         any more traps still unfinished.
17282         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
17284 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
17286         * troff/env.c: Rename the `retain_size' member of class
17287         pending_output_line to `no_fill'.
17289         * troff/env.c (title): When the line is output, make the
17290         retain_size argument !fill.
17292         * troff/node.h: Add `hyphenated' member to struct breakpoint.
17293         * troff/node.c (space_node::get_breakpoints),
17294         (dbreak_node::get_breakpoints):  Fill this in.
17295         * troff/env.c:  Allow specification of maximum number of
17296         consecutive hyphenated lines.
17298         * troff/env.c (environment::is_empty): Add test for !current_tab.
17300 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
17302         * troff/env.c (environment::hyphenate_line): Don't completely give
17303         up if the word is not to be hyphenated; continue so that breaks
17304         can be made at break_char_node's.
17306         * lib/lib.h: Only define INT_MAX if it's not already defined;
17307         undef INT_MIN if it's already defined.
17309         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
17311         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
17312         This works around a bug in AT&T C++ 2.0 used with an ANSI C
17313         compiler.
17314         
17315         * macros/tmac.an (an-header): Set no-space mode.
17317         * macros/tmac.an (TH): Start a new page if necessary.
17319         * Started using ChangeLog at version 0.4.
17321 Local Variables:
17322 version-control: never
17323 coding: latin-1
17324 End: