new file
[s-roff.git] / ChangeLog
blob6a2f603f4c6ba9f941d020b12ed8e4c0576d805c
1 2001-01-12  Werner LEMBERG  <wl@gnu.org>
3         * src/roff/troff/input.cc: Move definition of special characters
4         like `ESCAPE_TILDE' to ...
5         * src/roff/troff/input.h: New file.
6         * src/roff/troff/Makefile.sub (HDRS): Add it.
8         Extending the .asciify request to `unformat' space characters also.
10         * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
11         to count input space characters.
12         Update constructors to take care of it.
13         * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
14         `ESCAPE_SPACE' instead of normal space.
15         (word_space_node::asciify): New method.
16         (unbreakable_space_node::asciify): New method.
17         (word_space_node::merge_space): New method.
18         * src/roff/troff/env.cc (environment::space_newline,
19         environment::space): Add code to initialize `num_spaces' (using the
20         constructor of `word_space_node').
21         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
22         Document it.
24 2001-01-09  Werner LEMBERG  <wl@gnu.org>
26         * man/groff_char.man: Use table header traps only conditionally.
28 2001-01-09  Bjarni Ingi Gíslason  <bjarniig@hi.is>
30         * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
32 2001-01-08  Werner LEMBERG  <wl@gnu.org>
34         Introducing the `box' and `boxa' requests which are similar to
35         `di' resp. `da' but omitting a partially filled line (which is
36         restored after ending the diversion).
38         * src/roff/troff/div.h (diversion): Add elements to save partially
39         filled line.
40         * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
41         partially filled line.
42         (divert, divert_append): Updated.
43         (box, box_append): New functions.
44         (init_div_requests): Use them.
45         * src/roff/troff/env.h (environment): do_divert() is now a friend.
46         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
48         * doc/groff.texinfo: Fix documentation of `lf' request.
50 2000-12-25  Werner LEMBERG  <wl@gnu.org>
52         * src/roff/troff/troff.man, NEWS: Document `writem' request.
54 2000-12-21  Werner LEMBERG  <wl@gnu.org>
56         Ignore `ss' request if in compatibility mode.
58         * src/roff/troff/input.cc: Make `compatible_flag' non-static.
59         * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
60         * src/roff/troff/env.cc (space_size): Use it.
62         * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
63         `ss' request in nroff mode.
65         * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
66         changes.
68 2000-12-15  Ruslan Ermilov  <ru@FreeBSD.org>
70         * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
72 2000-12-13  Werner LEMBERG  <wl@gnu.org>
74         * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
75         * src/preproc/eqn/neqn.man: Small fixes and additions.
77 2000-12-13  Ruslan Ermilov  <ru@FreeBSD.org>
79         * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
80         Fixing typo.
82         * src/preproc/eqn/neqn.man: New file.
84         * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
85         negative' warning.
87         * tmac/e.tmac: Add `T&' macro.
88         Fix `indent cannot be negative' warning.
89         * tmac/s.tmac: Fix `indent cannot be negative' warning.
91 2000-12-07  Werner LEMBERG  <wl@gnu.org>
93         * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
95 2000-12-06  Werner LEMBERG  <wl@gnu.org>
97         * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
98         `alloca' symbol .
100         * MORE.STUFF: Added info about deroff for djgpp.
102         * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
103         documentation of -rcR switch.
105 2000-12-03  Werner LEMBERG  <wl@gnu.org>
107         * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
108         if -rcR=1 (which is now the default in nroff mode), a single, very
109         long page is created instead of multiple pages: All `ne' and `wh'
110         requests are put into conditionals; a new macro `an-end' is added to
111         be called with `em'.
113         Some other minor cleanups.
115         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
117 2000-12-02  Werner LEMBERG  <wl@gnu.org>
119         Fixing a bug which prevented hyphenation in words followed
120         immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
122         * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
123         Adding possibly_break_line().
124         * src/roff/troff/env.h (environment): Make possibly_break_line()
125         public.
127         Make `\~' usable in .tr request.
129         * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
130         (token): Add stretchable_space().
131         * src/roff/troff/input.cc (token::next, token::delimiter,
132         token::description, process_input_stack, do_translate,
133         add_to_node_list, token::process): Use it.
134         * src/roff/troff/node.h (node): Add fourth parameter to add_char()
135         for adjusting the space.
136         * src/roff/troff/node.cc (node::add_char): Implement it.  Add code
137         for stretchable space.
138         * src/roff/troff/input.cc (token::add_to_node_list): Use it.
139         (make_node): Add code for stretchable space.
140         * src/roff/troff/env.cc (environment::add_char): Use it.
141         * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
142         (get_copy, token::next, transparent_translate, asciify): Use it.
144         * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
145         doc/groff.texinfo: Updated.
146         * man/groff.man: Small reorderings.
148 2000-11-23  Werner LEMBERG  <wl@gnu.org>
150         * NEWS: Fixes.
151         * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
152         option.
153         * src/roff/troff/input.cc (main): Add `config_macro_path' and
154         `safer_macro_path' to -M option.
155         * src/roff/troff/troff.man: Fixes.
157 2000-11-22  Werner LEMBERG  <wl@gnu.org>
159         Use safer path (except for config files) if -U isn't specified.  Add
160         a special macro path (without home and current directory) for config
161         files.  Add home directory to unsafe path for consistency.  Don't
162         include the home directory in the font path.
164         * src/lib/libgroff/macropath.cc: Add `config_macro_path', change
165         `macro_path'.
166         * src/include/macropath.h: Add `config_macrp_path'.
167         * src/lib/libgroff/fontfile.cc: Fix font path.
168         * src/roff/troff/input.cc (process_startup_file): Use
169         `config_macro_path'.
170         (main): Select unsafe path if -U is given.
172         * src/preproc/eqn/main.cc (main): Fixing search path for
173         configuration file.
174         * src/preproc/eqn/eqn.man: Updated.
176         * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
177         Updated.
179         * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
180         src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
181         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
182         src/devices/grotty/grotty.man: Updated.
184         * Makefile.in: Fix comments.
186 2000-11-17  Werner LEMBERG  <wl@gnu.org>
188         * tmac/safer.tmac: Empty file added (again) for compatibility
189         reasons.
190         * tmac/Makefile.sub: Updated.
192 2000-11-16  Werner LEMBERG  <wl@gnu.org>
194         * src/devices/grodvi/dvi.cc (main),
195         src/devices/grohtml2/post-html.cc (main),
196         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
197         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
198         (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
199         (main), src/preproc/html2/pre-html.cc (main),
200         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
201         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
202         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
203         (main), src/utils/hpftodit/hpftodit.cc (main),
204         src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
205         (main), src/utils/lookbib/lookbib.cc (main),
206         src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
207         (main): Use stdout for -v.
208         * src/roff/groff/groff.cc (run_commands),
209         src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
210         to make direct printing to stdout possible.
211         * src/roff/groff/pipeline.h: Updated.
213         * src/utils/afmtodit/afmtodit.pl: Add -v switch.
214         * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
215         * src/utils/afmtodit/afmtodit.man: Updated.
217         * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
218         (version): New function.
219         (usage): Updated.
220         * src/utils/addftinfo/addftinfo.man: Updated.
222         * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
223         Fixing copyright dates.
225         * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
226         replacing it.
228         * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
229         version_string.
231         * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
233 2000-11-15  Werner LEMBERG  <wl@gnu.org>
235         In all programs, make -v return immediately with exit status 0 to
236         be compliant with the GNU standard.
238         * src/devices/grodvi/dvi.cc (main),
239         src/devices/grohtml2/post-html.cc (main),
240         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
241         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
242         (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
243         (main), src/preproc/html2/pre-html.cc (main),
244         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
245         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
246         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
247         (main): Implement it.
248         * NEWS: Updated.
250         * src/roff/groff/groff.cc (main): Add copyright notice.  Add refer
251         and postprocessors to the -v option.
253         * src/roff/grog/grog.pl: Implement -v.
254         * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
255         * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
257         * src/roff/nroff/nroff.sh: Implement -v.
258         * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
259         * src/roff/nroff/nroff.man: Updated.
260         
261         * src/preproc/eqn/main.cc (main): Fix comment typo.
263         * MORE.STUFF: Added info about djgpp port of grap.
265 2000-11-14  Werner LEMBERG  <wl@gnu.org>
267         * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
268         mode (or rather, implemented non-compatibility mode).
269         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
271         * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
272         replacing it -- we don't find gxditview otherwise.
273         * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
275         * src/preproc/pic/depend: Removed.  Unnecessary.
277         Implemented dummy keyword `solid' in pic for compatibility with
278         AT&T pic.
280         * lex.cc (lookup_keyword): Added `solid'.
281         * pic.y: Added SOLID with dummy rule.
282         * pic.cc, pic_tab.h: Regenerated.
283         * doc/pic.ms: Updated.
285 2000-11-13  Werner LEMBERG  <wl@gnu.org>
287         For security reasons, don't use the current directory but the home
288         directory while searching and scanning troffrc and troffrc-end.
289         Similarly, replace the current directory with the home directory
290         in the font path.
292         * Makefile.in (fontpath, tmacpath): Remove current directory.
294         * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
295         two parameters `add_home' and `add_current'.
296         (search_path::~search_path, search_path::command_line_dir,
297         search_path::open_file): Remove tests for `dirs' being zero.
298         * src/include/searchpath.h: Adjust.
299         * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
300         `safer_macro_path'.
301         * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
303         * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
304         * src/roff/troff/input.cc: Use `mac_path', initialized with
305         `macro_path'.
306         (process_startup_file): Set `mac_path' to `safer_macro_path'.
307         * src/roff/troff/env.cc: Use `mac_path'.
309         * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
311         * NEWS, man/roff.man, src/roff/troff/troff.man,
312         src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
313         Updated.
315 2000-11-12  Werner LEMBERG  <wl@gnu.org>
317         * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
319         * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
320         * configure.in: Fix typo in comment.
321         * configure: Regenerated.
323         * src/libgroff/*, src/include/*, src/roff/troff/*: Fixing copyright
324         dates.
326 2000-11-08  Werner LEMBERG  <wl@gnu.org>
328         Add system tmac directory (/usr/local/lib/groff/site-tmac).
330         * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
331         (uninstall_dirs): Add $(libdir), $(libprogramdir), and
332         $(systemtmacdir).
333         Use @libdir@.
334         * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
335         * tmac/Makefile.sub (install_data): Create
336         $(systemtmacdir) and $(localtmacdir).
337         (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
338         * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
339         NEWS, doc/groff.texinfo: Updated and minor fixes.
341         * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
342         * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
343         $(systemtmacdir) since the wrapper files are platform-dependent.
345 2000-11-01  Werner LEMBERG  <wl@gnu.org>
347         * doc/groff.texinfo: Fix typo.
349 2000-10-26  Werner LEMBERG  <wl@gnu.org>
351         Convert macros `tmac.XXX' to `XXX.tmac'.  Special cases:
352           tmac.doc.old -> doc-old.tmac
353           tmac.an.old  -> an-old.tmac
355         * tmac/tmac.*: Moved to ...
356         * tmac/*.tmac: this.
357         * tmac/man.local: Fix comment.
358         * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
359         tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. 
360         Added some `FILES' sections.  More use of @...@ directives.  Other
361         minor updates.
362         * arch/djgpp/README, font/devutf8/NOTES: Updated.
363         * doc/homepage.ms, doc/groff.texinfo: Updated.
364         * man/groff.man, man/roff.man: Updated.
365         * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
366         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
367         src/devices/grotty/grotty.man: Updated.
368         * src/preproc/pic/pic.man: Updated.
369         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
370         instead of -mdoc.old.
371         * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
372         * src/roff/nroff/nroff.man: Updated.
373         * NEWS: Updated.
375         * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
377         * tmac/mm.diff: Removed -- it has no use now since the mm package
378         is part of groff.
380         * tmac/*: Removed trailing spaces.
382         * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
383         the tmac subdirectory also).
385         * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
386         * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
387         stuff since it is no longer needed.
389         * README, PROBLEMS: Updated.
391 2000-10-25  Werner LEMBERG  <wl@gnu.org>
393         Invert current behaviour: Search first FOOBAR.tmac, then
394         tmac.FOOBAR.
396         * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
397         (open_mac_file, macro_source): Implement it.
398         * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
399         doc/groff.texinfo, NEWS: Document it.
401         * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
402         Small documentation improvements.
404         * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
405         subdirectory also).
407         * font/devps/Makefile.sub: Fix rules for dingbats.*map.
409 2000-10-24  Werner LEMBERG  <wl@gnu.org>
411         Add local tmac directory (groff/site-tmac).
413         * Makefile.in: Add $(localtmacdir).
414         (uninstall_dirs): Add $(localtmacdir).
415         * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
416         * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
417         in $(localtmacdir).  Create $(localtmacdir).
418         * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
419         Updated and minor fixes.
421         Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
423         * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
425 2000-10-23  Werner LEMBERG  <wl@gnu.org>
427         Move hyphen.us to tmac directory.
429         * src/roff/troff/hyphen.us: Removed.
430         * src/tmac/hyphen.us: Added.
431         * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
433         Change installation structure for data files from .../groff/... to
434         .../groff/<version><revision>/... to be conform with other GNU
435         programs.
437         * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
438         doc/Makefile: Implement it.
439         * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
440         * configure: Updated.
441         * arch/djgpp/README, font/devutf8/NOTES: Use it.
442         * NEWS: Document it.
443         * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
444         @MACRODIR@ instead of hard-coded directories.
446 2000-10-22  Werner LEMBERG  <wl@gnu.org>
448         Implement $GROFF_BIN_PATH environment variable (which defaults to
449         $bindir) used for child programs of groff and similar wrappers.
451         * gendefs.sh: Improve documentation.
452         * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
453         src/preproc/eqn/Makefile.sub (neqn),
454         src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
455         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
456         $GROFF_BIN_PATH.
457         * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
458         $GROFF_PATH__ (the latter for communication with troff).
459         * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
460         set.
461         * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
462         doc/groff.texinfo: Document it.
464         * doc/groff.texinfo: Improve documentation of troff's -a option.
466 2000-10-17  Gaius Mulley  <gaius@glam.ac.uk>
468         * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
469         non-intrusive eol marker.
470         (troff_output_file::determine_line_limits): New function.
471         (troff_output_file::draw): Use it.
472         * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
473         output_pending_lines() instead of output_line().
474         * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
475         * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
476         createImage): Small fixes.
477         
478 2000-10-14  Werner LEMBERG  <wl@gnu.org>
480         Replace tmac.safer with a real secure solution.
482         * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
483         system_request, pipe_output): Disable requests if in safer mode.
484         * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
485         * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
486         * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
487         doc/groff.texinfo, src/roff/groff/groff.man,
488         src/roff/troff/troff.man, arch/djgpp/README: Updated.
490         * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
491         (resource_manager::output_prolog): Replace setenv() with putenv().
493 2000-10-09  Werner LEMBERG  <wl@gnu.org>
495         * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
496         src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
497         src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
498         src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
499         compilation errors with some compilers.  It seems that this code
500         is no longer necessary -- if yes, it is easy to add some #ifdef's
501         for that particular old-fashioned compiler.
503         * MORE.STUFF: Added info about Meta-tbl.
505         * doc/groff.texinfo: Added more info about `.if "..."..."'.
507 2000-10-07  Werner LEMBERG  <wl@gnu.org>
509         Adding a new escape sequence \B'...': If the string between
510         the delimiters is a valid numeric expression, return the character
511         `1', and `0' otherwise.  This is an analogon to \A.
513         * src/roff/troff/input.cc (do_expr_test): Implement it.
514         (token::next): Use it.
515         * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
517         * tmac/tmac.trace: Made independent from escape character.
519 2000-10-06  Werner LEMBERG  <wl@gnu.org>
521         Adding a new request .dei: define indirect.  The first and second
522         parameter of .dei are taken from string registers instead directly;
523         this very special request is needed to make tmac.trace independent
524         from the escape character (which might even be disabled).
526         * src/roff/troff/input.cc (do_define_macro): Implement it.
527         (define_macro_indirect): New function.
528         (init_input_requests): Use it.
530         Adding two requests .ecs and .ecr: Save and restore the escape
531         character.  These two requests are needed to make tmac.trace
532         independent from the escape character (which might even be
533         disabled).
535         * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
536         Implement it.
537         (init_input_requests): Use it.
539         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
541 2000-09-22  Ricardo Soares Guimarães <ricardo@conectiva.com.br>
543         Adding a new option -P and new environment variable GROPS_PROLOGUE
544         to grops, selecting a different prologue file (minor modifications
545         by WL).
547         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
548         src/devices/grops/ps.cc (main): Implement it.
549         * src/devices/grops/grops.man, NEWS: Document it.
551 2000-09-22  Werner LEMBERG  <wl@gnu.org>
553         * INSTALL: Add info about selecting paper format.
555 2000-09-21  Werner LEMBERG  <wl@gnu.org>
557         * src/roff/troff/input.cc (main): Fixing compiler warning.
558         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
559         strings.h from the former to the latter.
560         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
561         stuff from the former to the latter.
563 2000-09-11  Werner LEMBERG  <wl@gnu.org>
565         Implementing two new requests .tm1 and .tmc: The former is similar
566         to .tm but can output leading spaces; its syntax is similar to
567         defining a string, i.e., a `"' can be used to mark the beginning of
568         the string to be written to stderr: `.tm1 " test'.  The latter is
569         similar to .tm1 but doesn't write out a final newline character.
571         * src/roff/troff/input.cc (terminal1, terminal_continue,
572         do_terminal): New functions.
573         (init_input_requests): Use them.
574         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
576 2000-09-09  Werner LEMBERG  <wl@gnu.org>
578         * tmac/groff_mdoc.samples.man: Small fixes.
580 2000-09-08  Werner LEMBERG  <wl@gnu.org>
582         * tmac/groff_mdoc.man: Fixing typo.
584 2000-09-02  Werner LEMBERG  <wl@gnu.org>
586         Implementing a .nop request which does nothing.
588         * src/roff/troff/input.cc (nop_request): New function.
589         (init_input_requests): Use it.
590         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
592 2000-09-01  Werner LEMBERG  <wl@gnu.org>
594         * doc/groff.texinfo: Added some comments.
596 2000-08-30  Werner LEMBERG  <wl@gnu.org>
598         * src/roff/troff/TODO: Updated.
600 2000-08-28  Bruno Haible  <haible@clisp.cons.org>
602         * contrib/mm/Makefile.sub: New target 'all', makes all prerequisites
603         of 'install'.
605 2000-08-25  Werner LEMBERG  <wl@gnu.org>
607         * doc/groff.texinfo: Fix comment how to compile the DVI file.
609 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
611         * font/devps/generate/Makefile (SHELL): Define explicitly to
612         "/bin/sh", for non-Unix platforms.
613         (extraclean): Use a more portable "" quoting instead of a
614         backslash (which doesn't work on DOS/Windows).
615         
616         * font/devlj4/generate/Makefile (extraclean): Ditto.
618         * font/devdvi/generate/Makefile (extraclean): Ditto.
620 2000-08-25  Werner LEMBERG  <wl@gnu.org>
622         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
623         src/roff/troff/troff.man: Document Eli's latest changes.
625 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
627         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
628         macro file names of the form NAME.tmac as well as tmac.NAME.
630 2000-08-25  Werner LEMBERG  <wl@gnu.org>
632         * src/include/posix.h: Remove definition of FILENAME_MAX.
634         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
635         `sys_fatal' and `stop' function().
637         * test-groff: Updated.
639 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
641         Added the new troff command .output <arg> to suppress output (while
642         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
643         registers (for passing the output dimensions to the output device).
645         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
646         parameter.
647         * src/roff/troff/node.h, src/roff/troff/node.cc
648         (troff_output_file::really_print_line,
649         ascii_output_file::really_print_line,
650         supress_output_file::really_print_line): Use `width' parameter.
651         (troff_output_file::really_on, troff_output_file::really_off,
652         output_file::on, output_file::off, real_output_file::on,
653         real_output_file::off, real_output_file::really_on,
654         real_output_file::really_off): New functions.
655         (real_output_file:public output_file): New variable `output_on'.
656         (real_output_file::begin_page, real_output_file::copy_file,
657         real_output_file::transparent_char, real_output_file::print_line):
658         Use it.
659         (real_output_file::print_line): Use check_output_limits.
660         * src/roff/troff/reg.h, src/roff/troff/request.h,
661         src/roff/troff/input.cc (assign_registers): New function to remove
662         two `goto's.
663         (do_ps_file): Use it.
664         (check_output_limits, reset_output_registers, output_request,
665         init_output_requests): New functions.
666         (init_input_requests): Updated.
668         Added new grohtml2 device and html2 preprocessor (coding
669         not yet finished) which will eventually replace grohtml.
671         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
672         Updated.
673         * src/include/htmlindicate.h, src/include/htmlindicate
674         (html_begin_suppress, html_end_suppress): New functions.
675         * src/preproc/tbl/main.cc: Use it.
676         * src/roff/groff/groff.cc: Add support for html2 device (which will
677         automatically invoke the html2 preprocessor).
678         * src/roff/troff/input.cc (is_html2): New variable.
679         * src/roff/troff/troff.h, src/roff/troff/env.h,
680         src/roff/troff/env.cc (environment::add_html_tag): New function
681         (uses `is_html2').
682         (environment::do_break): Use it.
683         * font/devhtml2/*: New files.
684         * src/devices/grohtml2: New device.
685         * src/preproc/html2: New preprocessor.
686         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
688 2000-08-23  Werner LEMBERG  <wl@gnu.org>
690         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
692 2000-08-22  Werner LEMBERG  <wl@gnu.org>
694         * src/include/lib.h: Provide a fix for IRIX to not include
695         groff-getopt.h.
697 2000-08-18  Werner LEMBERG  <wl@gnu.org>
699         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
700         since some non-GNU sed programs can't handle null regexps.
701         * configure, src/preproc/eqn/Makefile.sub,
702         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
704         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
705         bug (string.h and strings.h are both needed according to latest
706         POSIX standard).
708         * MORE.STUFF: Added info about unroff and troffcvt.
710 2000-08-08  Werner LEMBERG  <wl@gnu.org>
712         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
713         used before -ms.
715         * tmac/tmac.man.old: Remove unused number register.
717         * tmac.doc: Minor documentation fix.
719 2000-08-07  Paul Eggert  <eggert@twinsun.com>
721         * src/roff/groff/pipeline.c (is_system_shell):
722         Fix typo: "monocased_shell" no longer exists.
724 2000-08-07  Paul Eggert  <eggert@twinsun.com>
726         Remove FILENAME_MAX limits.
728         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
729         that the argument length is less than FILENAME_MAX.
730         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
731         Use struct hack to allocate and free file name.
732         (struct xtmpfile_list): fname is now part of the structure,
733         not a pointer to another string.
735 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
737         * src/include/posix.h: Add a default value for FILENAME_MAX.
739 2000-08-06  Paul Eggert  <eggert@twinsun.com>
741         Add support for new BSD-style man pages (with ".Dd" instead of
742         ".TH"), so that "groff -man" understands both styles, even
743         when running "groff -man" on a host whose system man page
744         macros don't support ".Dd".
746         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
747         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
748         in case the system man macros don't define Dd or TH.
750         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
751         * tmac/tmac.an: New one-line file.
752         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
754 2000-08-06  Werner LEMBERG  <wl@gnu.org>
756         * src/roff/troff/troff.man: Fixing typos.
758 Version 1.16.1 released
759 =======================
761 2000-07-31  Werner LEMBERG  <wl@gnu.org>
763         Preparing release 1.16.1.
765         * REVISION: Revision number set to 1.
766         * MORE.STUFF: Added info about port to DOS.
767         * NEWS, win32-diffs: Updated.
769         * src/include/nonposix.h: Remove first line -- this file is used
770         in C also.
772         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
773         link to it.
775 2000-07-30  Werner LEMBERG  <wl@gnu.org>
777         * doc/texinfo.tex: Update to latest version.
779 2000-06-28  Paul Eggert  <eggert@twinsun.com>
781         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
782         commands that fail.  Don't assume that "export a=b" is valid shell
783         syntax.  This is needed for Solaris 2.5.1.
785         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
786         comment about missing Solaris headers.
788         * PROBLEMS: Add section about problems with Sun Make and VPATH.
790 2000-06-25  Werner LEMBERG  <wl@gnu.org>
792         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
793         SET_BINARY().
795         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
797         * win32-diffs: Updated.
798         * README.WIN32: Added CRs to make all Windows editors happy.
800         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
801         src/roff/groff/pipeline.c).
803 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
805         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
806         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
808 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
810         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
811         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
812         are binary files.
813         (main): Support non-Posix systems with several different styles of
814         slash characters in file names.
816         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
817         (main) [SET_BINARY]: Switch stdin into binary mode.
819         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
820         (main): Support file names with several possible slash-type
821         characters, as given by DIR_SEPS[] in nonposix.h.
822         (main) [__MSDOS__]: If renaming the temporary index file fails
823         because it has more than one dot in its trunk, replace the dot
824         with an underscore and try again.
825         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
826         Newline.
827         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
829         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
830         (File::File): Open the input file in binary mode.  Strip CR
831         characters from each CR-LF pair.
832         (xbasename): Support file names with several possible slash-type
833         characters, as given by DIR_SEPS[] in nonposix.h.
835         * src/include/Makefile.sub (HDRS): Add nonposix.h.
837         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
838         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
839         [!_POSIX_VERSION]: Define for traditional Unix systems.
840         (real_output_file::real_output_file): Remove the MSVC-specific
841         call to popen, use instead POPEN_WT, appropriately defined on
842         nonposix.h.  #include nonposix.h.
843         (real_output_file::~real_output_file): Remove the MSVC-specific
844         call to pclose, a suitable macro is now defined on nonposix.h.
845         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
846         and WEXITSTATUS instead of assuming traditional Unix
847         interpretation of the status returned by pclose.
849         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
850         call to popen, use POPEN_RT instead (appropriately defined on
851         nonposix.h).  #include nonposix.h.
852         (ps_bbox_request): Open the PostScript file in binary mode.
853         Close the file after processing it.
854         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
855         nonposix.h.
857         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
858         A version of run_pipeline that doesn't use `fork'.
859         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
860         (system_shell_name, system_shell_dash_c)
861         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
862         the ugliness of testing DOS/Windows file names for equality, and
863         support both stock shells and ports of Unix shells.
865         * src/roff/groff/groff.cc: #include nonposix.h.
866         (BSHELL): Definition moved to nonposix.h.
867         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
868         instead of a literal "-c".
869         (xbasename): Support file names with several possible slash-type
870         characters, as given by DIR_SEPS[] in nonposix.h.
871         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
872         of literal strings.
874         * src/preproc/soelim/soelim.cc: #include nonposix.h.
875         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
877         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
878         pic_tab.h.
880         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
882         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
883         eqn_tab.h.
885         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
887         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
888         P_tmpdir is defined, use it instead of the literal "/tmp".
889         (remove_tmp_files, add_tmp_file): New functions.
890         (xtmpfile): Record temporary files and register an atexit function
891         to delete them explicitly, instead of relying on the OS to do
892         that, which doesn't work on non-Unix systems.
894         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
895         (search_path::search_path): Use PATH_SEP instead of a literal
896         colon.
897         (search_path::command_line_dir): Ditto.
898         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
899         to support non-Posix systems.
901         * src/libc/libbib/search.cc: #include nonposix.h.
902         (search_list::add_file): Open the file in binary mode.
904         * src/libs/libbib/linear.cc: #include nonposix.h.
905         (file_buffer::load): Remove \r characters preceding \n from the
906         loaded buffer.
908         * src/libs/libbib/index.cc: #include nonposix.h.
909         (make_index_search_item): Open index_filename in O_BINARY mode.
910         (index_search_item_iterator::get_tag): Ditto.  Remove \r
911         characters before \n characters.
912         (index_search_item::check_files): Open files in binary mode.
913         (index_search_item::munge_filename): Support DOS-style file names
914         with backslashes and drive letters, use IS_ABSOLUTE.
916         * src/devices/grops/ps.cc: #include nonposix.h.
917         (main) [SET_BINARY]: Switch stdout to binary mode.
919         * src/devices/grolj4/lj4.cc: #include nonposix.h.
920         (main) [SET_BINARY]: Switch stdout to binary mode.
922         * src/devices/grolbp/lbp.cc: #include nonposix.h
923         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
925         * src/devices/grodvi/dvi.cc: #include nonposix.h.
926         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
927         nonposix.h).
928         (main) [SET_BINARY]: Switch stdout to binary mode.
929         [_MSC_VER]: Remove an explicit call to _setmode.
931         * src/include/nonposix.h: New file.
933         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
934         operation when building with DJGPP.
935         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
936         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
937         ENVSETUP.
939         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
940         MS-DOS.
941         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
942         etc. can include a semi-colon on DOS/Windows.
943         (depend.temp): Use depend1.temp instead of depend.temp1, to
944         prevent files from overerwiting each other on 8+3 filesystems.
946         * gendef.sh (t): Change definition to work with DOS/Windows.
948         doc/groff.texinfo: Apart of some typo corrections, I also changed
949         some index entris, to make them more non-ambiguous, and also put
950         @ignore around some parts that are not yet written, to allow the
951         Info output be readable.
953 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
955         Replaced specific checks for function declarations with a generic
956         routine taken from GNU bfd.
958         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
959         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
960         * configure.in: Use it.
961         * src/devices/grolbp/lbp.cc, src/include/lib.h,
962         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
963         src/roff/groff/groff.cc: Use it.
964         * Makefile.in, configure: Updated.
966 2000-06-07  Paco Andres Verdu  <pandres@dragonet.es>
968         * src/devides/grolbp/lbp.h: Removed unused variables.
970 2000-05-31  Keith Thompson  <kst@sdsc.edu>
972         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
973         strncasecmp().
975 2000-05-31  Werner LEMBERG  <wl@gnu.org>
977         * aclocal.m4 (GROFF_SRAND): New function to test the return value
978         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
979         * configure.in: Use it.
980         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
981         * configure, Makefile.in: Updated.
983         * configure.in: Add test for strncasecmp().
984         * src/include/lib.h: Use it.
986 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
988         * src/preproc/grn/Makefile.sub: Add MLIB.
990 2000-05-29  Nix  <nix@esperi.demon.co.uk>
992         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
994 2000-05-29  Werner LEMBERG  <wl@gnu.org>
996         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
998         * PROBLEMS: Small update.
1000         * src/devices/grolbp/lbp.cc: Various small fixes.
1002 2000-05-28  Keith Thompson  <kst@sdsc.edu>
1004         * src/roff/nroff/nroff.sh: Fix main loop syntax.
1006         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
1008 2000-05-25  Werner LEMBERG  <wl@gnu.org>
1010         * man/roff.man: Removed unused macro.
1012 2000-05-24  Werner LEMBERG  <wl@gnu.org>
1014         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
1015         This is needed e.g. if you do
1016         `make distclean; ./configure; make dist'.
1018 Version 1.16 released
1019 =====================
1021 2000-05-23  Werner LEMBERG  <wl@gnu.org>
1023         Adding font CWI (constant width italic) to devdvi.
1025         * font/devdvi/CWI: New file.
1026         * font/devdvi/generate/Makefile: Add generating rule.
1027         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
1028         tmac/tmac.dvi: Use it.
1029         * NEWS: Announce it.
1031         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
1032         * font/devlj4/generate/Makefile: Cosmetic changes only.
1034         * man/groff.man: Removed most of the redundant description of
1035         special characters (which is in groff_char.man).  Added font
1036         translation CB->CR for devdvi.  Other minor fixes.
1038         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
1039         (registered) symbols.
1041 2000-05-22  Werner LEMBERG  <wl@gnu.org>
1043         * doc/Makefile: Added rule for creating info files.
1045         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
1046         AMS font metrics.
1047         * font/devdvi/generate/Makefile: Fixed dependencies.
1049         * font/devps/*: Regenerated.  Heavy changes for Bookman and
1050         NewCentury Schoolbook!
1051         * font/devps/generate/afmname: Will now run with GNU awk.
1052         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
1053         * font/devps/generate/Makefile: Cosmetic changes only.
1055 2000-05-21  Werner LEMBERG  <wl@gnu.org>
1057         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
1058         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
1059         `.SS' now produces a heading with a smaller size than `.SH'. 
1060         Completely formatted.
1061         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
1063         * man/groff.man: Improved table appearance.  Use of `eo' request
1064         to reduce number of doubled backslashes in macro definitions.
1065         Replacing `\e' with `\(rs'.  Other minor fixes.
1067         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
1068         to have correct line number.
1070         * INSTALL: Small improvement.
1072 2000-05-20  Bernd Warken  <bwarken@mayn.de>
1074         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
1075         WL).
1077 2000-05-19  Bernd Warken  <bwarken@mayn.de>
1079         * man/groff.man: Complete update (with a lot of corrections by WL).
1081 2000-05-18  Werner LEMBERG  <wl@gnu.org>
1083         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
1085         * font/*/*: Implement it.
1086         * man/groff_char.man, NEWS: Document it.
1088         * src/include/unix.h: Removed.  It isn't used.
1090         * doc/groff.texinfo: Slight improvements.
1092 2000-05-17  Werner LEMBERG  <wl@gnu.org>
1094         * README, win32-diffs: Small fixes and improvements.
1096 2000-05-16  Werner LEMBERG  <wl@gnu.org>
1098         * FDL: New file (the Free Documentation License version 1.1).
1100         * doc/groff.texinfo: Added many start-up values for gtroff.
1101         Some structural improvements of the source code.
1103 2000-05-15  Werner LEMBERG  <wl@gnu.org>
1105         * src/roff/troff/input.cc: Added small comment about troffrc-end.
1106         * src/roff/troff/troff.man: Added info about troffrc-end.
1108 2000-05-14  Werner LEMBERG  <wl@gnu.org>
1110         * Makefile.in (EXTRADIRS): Fix typos.
1111         (dist): Handle deletion of old .tar.gz file correctly.
1112         (DISTDIRS): Include all tty output devices.
1114         * doc/groff.texinfo: Adding more cross references; countless other
1115         fixes.
1117 2000-05-13  Werner LEMBERG  <wl@gnu.org>
1119         * MORE.STUFF: Added Robert Marks's utilities.
1121 2000-05-12  Werner LEMBERG  <wl@gnu.org>
1123         Added win32 port contributed by Blake McBride
1124         <blake@florida-software.com>.
1126         * README.WIN32, win32-diffs: New files.
1127         * NEWS: Updated.
1129         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
1130         (tmove, tmove2): Added parentheses to avoid compiler warnings.
1131         (change): Removed unused variables.
1133         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
1134         (savebounds): Changed return value from `int' to `void'.
1135         * src/preproc/grn/hdb.cc: Ditto.
1137         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
1138         final backslash in comment to avoid compiler warning.
1140         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
1142         * doc/groff.texinfo: More fixes.
1144 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
1146         * tmac/tmac.doc: Documentation fix.
1148 2000-05-11  Werner LEMBERG  <wl@gnu.org>
1150         * doc/groff.texinfo: Reading the source code shows up a lot of
1151         omissions and incorrect data...  More conversion to @Deffn macros.
1153 2000-05-10  Werner LEMBERG  <wl@gnu.org>
1155         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
1156         dependency.
1158         * src/roff/troff/request.h: Removing unused `no_break_flag'.
1160 2000-05-09  Werner LEMBERG  <wl@gnu.org>
1162         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
1163         improvements.
1165         * doc/groff.texinfo: Extended history section.  More conversion to
1166         @Deffn macros.  More .tr documentation.
1168 2000-05-07  Werner LEMBERG  <wl@gnu.org>
1170         * doc/groff.texinfo: Completed tab section.  Added info about
1171         fields.
1173 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
1175         * PROBLEMS: Describe configure script fix for OS/390 Unix.
1177 2000-05-05  Werner LEMBERG  <wl@gnu.org>
1179         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
1180         LaTeX 2e).
1181         * NEWS: Document it.
1183         * man/troff.man: Minor optical improvements.
1185 2000-05-03  Werner LEMBERG  <wl@gnu.org>
1187         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
1189         * font/*/*: Implement it.
1190         * man/groff_char.man, NEWS: Document it.
1192 2000-05-02  Werner LEMBERG  <wl@gnu.org>
1194         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
1195         expansion.
1196         * NEWS: Document the three new man pages.
1198         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
1199         * configure: Updated.
1201         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
1203 2000-05-01  Werner LEMBERG  <wl@gnu.org>
1205         Added grap support to grog.
1207         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
1208         * src/roff/grog/grog.man: Document it.
1210         * doc/groff.texinfo, NEWS: Add info about grap support.
1212         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
1213         (with slight fixes by me).
1215         * tmac/groff_tmac.man: New file documenting tmac mechanism.
1216         * tmac/Makefile.sub: Add groff_tmac.man.
1217         * man/roff.man: New file giving overview of roff system.
1218         * man/troff.man: A short reference of troff.
1219         * man/Makefile.sub: Add roff.man and troff.man.
1221 2000-04-30  Werner LEMBERG  <wl@gnu.org>
1223         Added grap support to groff.
1225         * src/roff/groff/groff.cc: Implement it.
1226         * src/roff/groff/groff.man: Document it.
1228         * src/devices/grotty/grotty.man: Add cp1047 device.
1229         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
1230         Ditto.
1231         * src/roff/groff/groff.man: Ditto.
1232         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
1233         * doc/groff.texinfo: Ditto.
1235         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
1236         for cp1047.
1238 2000-04-29  Werner LEMBERG  <wl@gnu.org>
1240         * man/groff_char.man: Add `pc' glyph.
1241         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
1242         * tmac/tmac.tty: Add `pc' glyph.
1243         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
1244         we use cp1047 output device.
1246         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
1247         there are still hardcoded latin1->unicode values in utf8's font
1248         definition files.
1249         * configure: Updated.
1250         * NEWS: Minor clarification.  Updated.
1252         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
1253         Unix.
1255 2000-04-28  Werner LEMBERG  <wl@gnu.org>
1257         Adding EBCDIC code page 1047.
1259         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
1260         font/devcp1047/DESC.proto: New files.
1262         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
1263         either ascii/latin1 or cp1047.
1264         * Makefile.in: Use it.
1265         * configure: Updated.
1267         Replacing and/or adding `md' (mathdot) glyph with `pc'
1268         (periodcentered) in all text fonts.
1270         * font/*/*: Change it.
1272 2000-04-27  Werner LEMBERG  <wl@gnu.org>
1274         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
1276         * configure.in: Add check for strings.h.
1277         * src/include/driver.h: Use HAVE_STRINGS_H.
1278         * src/devices/grolbp/lpb.cc: Remove string.h.
1280         * src/include/groff-getopt.h: New file.  It will be used instead of
1281         getopt.h (to be included in lib.h) to avoid endless problems with
1282         picky C++ compilers.
1283         * src/include/lib.h: Use groff-getopt.h.
1284         * src/include/Makefile.sub: Updated.
1286         * configure: Updated.
1287         * Makefile.in: Updated.
1289         * NEWS: Mention EBCDIC support.
1291 2000-04-26  Werner LEMBERG  <wl@gnu.org>
1293         * TODO: Some additions.
1295 2000-04-25  Werner LEMBERG  <wl@gnu.org>
1297         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
1298         of mso request.
1300 2000-04-23  Werner LEMBERG  <wl@gnu.org>
1302         * src/roff/troff/troff.man: Minor fixes.
1304 2000-04-22  Werner LEMBERG  <wl@gnu.org>
1306         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
1307         `.T' string register and the incompatible definition of the `.T'
1308         number register (compared to Unix troff).
1310         * man/groff_char.man: Add some missing characters.
1311         * font/devutf8/NOTES: Update.
1313 2000-04-21  Werner LEMBERG  <wl@gnu.org>
1315         * src/include/htmlindicate.h, src/include/lib.h,
1316         src/include/posix.h: Fix copyright.
1318         * src/include/Makefile.sub: Update.
1320 2000-04-20  Werner LEMBERG  <wl@gnu.org>
1322         * src/roff/troff/input.cc (input_char_description): Removing
1323         superfluous space char.
1325         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
1327         * doc/groff.texinfo: Document EBCDIC.
1329 2000-04-19  Werner LEMBERG  <wl@gnu.org>
1331         Introducing `shc' as the glyph name for the soft hyphen character.
1333         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
1334         font/devlatin1/R.proto: Use it.
1336         * NEWS: Updated.
1338 2000-04-18  Werner LEMBERG  <wl@gnu.org>
1340         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
1341         dependency on ASCII order.
1343 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
1345         * src/libs/libgroff/illegal.c: Added EBCDIC table.
1346         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
1348         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
1349         to increase portability.
1351 2000-04-15  Werner LEMBERG  <wl@gnu.org>
1353         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
1354         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
1355         the generic `\n' if under OS/390 Unix.
1357         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
1359         * configure: Regenerated.
1361 2000-04-14  Werner LEMBERG  <wl@gnu.org>
1363         * doc/groff.texinfo: More conversions to @Deffn.
1365 2000-04-12  Werner LEMBERG  <wl@gnu.org>
1367         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
1368         with `:'.
1370         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
1372 2000-04-10  Werner LEMBERG  <wl@gnu.org>
1374         * doc/groff.texinfo: More conversions to @Deffn.
1376 2000-04-08  Werner LEMBERG  <wl@gnu.org>
1378         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
1379         Updated to latest version (glibc 2.1.3).
1381 2000-04-07  Werner LEMBERG  <wl@gnu.org>
1383         * doc/Makefile (clean): Include more index files.
1384         Add rule texinfo->dvi.
1386 2000-04-05  Werner LEMBERG  <wl@gnu.org>
1388         * doc/groff.texinfo: Added new index `op' for operators.  More
1389         info on end of sentence characters.  More use of @Deffn.
1391 2000-03-30  Werner LEMBERG  <wl@gnu.org>
1393         * */*.man: Adding a note that a whitespace can be inserted between
1394         a command line option and its parameter -- we are using GNU getopt.
1396         * src/roff/groff/groff.man: Add example of `-m mandoc'.
1398 2000-03-28  Werner LEMBERG  <wl@gnu.org>
1400         Correct anachronism of calling the man macro file with `-man'
1401         instead of `-m man' etc.
1403         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
1404         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
1405         load tmac.<package>.
1407         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
1409         * NEWS: Updated.
1411         * doc/groff.texinfo: Updated.
1413         * tmac/groff_man.man: Copyright added.
1415 2000-03-27  Werner LEMBERG  <wl@gnu.org>
1417         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
1418         typeset the request resp. escape name with a tt font -- due to a
1419         bug in texinfo.tex it is necessary to use the `-e' switch with
1420         texi2dvi.
1422         Improving info about usage of groff units.
1424         Other minor fixes.
1426 2000-03-20  Werner LEMBERG  <wl@gnu.org>
1428         * doc/groff.texinfo: Added section about man macro package
1429         (I've basically taken groff_man.man).  Introducing new indices `ma'
1430         for macros/strings and `gl' for glyph names.  Other minor fixes.
1432         * tmac/groff_man.man: Fixed some typos.
1434 2000-03-19  Werner LEMBERG  <wl@gnu.org>
1436         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
1437         Other minor fixes.
1439         * doc/texinfo.tex: New file.
1441 2000-03-18  Werner LEMBERG  <wl@gnu.org>
1443         * doc/groff.texinfo: Improved section on number registers.  Other
1444         minor updates.
1446 2000-03-16  Werner LEMBERG  <wl@gnu.org>
1448         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
1449         synopsis.
1451         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
1452         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
1453         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
1454         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
1456         * src/preproc/grn/grn.man: Better synopsis; added copyright.
1458         * src/roff/grog/grog.man: Updated copyright date.
1460 2000-03-14  Francisco Andres Verdu  <pandres@dragonet.es>
1462         * configure.in: Added test for strdup.
1464         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
1465         is available.
1467         Replaced dynamic allocation of arrays `[...]' with `new' operator.
1469         Other minor fixes.
1471 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
1473         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
1475 2000-03-11  Werner LEMBERG  <wl@gnu.org>
1477         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
1478         compilers silent.
1479         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
1480         * src/include/lib.h: Remove some spaces.
1482 2000-03-10  Werner LEMBERG  <wl@gnu.org>
1484         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
1485         initializers from arguments (some compilers don't like this).
1487 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
1489         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
1490         used by pic and eqn to tell grohtml where the graphic regions start
1491         and end.
1492         * src/libs/libgroff/Makefile.sub: Use it.
1493         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
1494         graphic_start() and graphic_end() from htmlindicate.cc.
1496 2000-03-09  Werner LEMBERG  <wl@gnu.org>
1498         * tmac/tmac.safer: Will now work correctly in compatibility mode.
1499         * tmac/groff_man.man: More fixes.
1501 2000-03-08  Werner LEMBERG  <wl@gnu.org>
1503         * doc/Makefile: Added texput.log to the `clean' target.
1504         * doc/groff.texinfo: Added info about delimiters for escapes.
1506 2000-03-08  Bernd Warken  <bwarken@mayn.de>
1508         * src/preproc/pic/pic.man: Add info on conversion of pic images to
1509         other graphic formats.
1511 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
1513         * Makefile.in, contrib/mm/Makefile.sub, src/preproc/eqn/Makefile.sub,
1514         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
1515         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
1516         files.
1518 2000-03-07  Werner LEMBERG  <wl@gnu.org>
1520         * doc/groff.texinfo: Spelling fixes.
1522 2000-03-06  Werner LEMBERG  <wl@gnu.org>
1524         * tmac/groff_man.man: Completely revised to cover everything in
1525         tmac.an.
1527         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
1528         Other minor fixings.
1529         * src/roff/troff/env.cc (environment_copy): Improve error message and
1530         fix itoa->i_to_a.
1531         * src/roff/troff/TODO: Updated.
1533         * doc/Makefile: Bug fixes -- this is still provisional, though...
1535         * tmac/eqnrc: Small fixes.
1537 2000-03-05  Abramo Bagnara <abramo@alsa-project.org>
1539         Adding a request `evc' to copy environments.
1541         * src/roff/troff/env.cc (environment::copy, environment_copy):
1542         Implement it.
1543         * src/roff/troff/env.h: Add prototype.
1545 2000-03-05  Francisco Andres Verdu  <pandres@dragonet.es>
1547         Adding strsep() -- Solaris 8 doesn't have it.
1549         * configure.in: Test it.
1550         * src/devices/grolbp/lbp.cc: Add code.
1552 2000-03-05  Werner LEMBERG  <wl@gnu.org>
1554         * src/roff/troff/div.cc (macro_diversion::output,
1555         top_level_diversion::output): Fixing an incompatibility with
1556         original troff: \x'0' updates the .a register also.  Thanks to
1557         <Andries.Brouwer@cwi.nl> for pointing this out.
1558         * doc/groff.texinfo: Document it.
1560         * Makefile.in: Create Makefile.dep if necessary before calling the
1561         submake process to avoid warning about nonexistent file.
1563         * NEWS, PROJECTS: Updated.
1565 2000-03-04  Werner LEMBERG  <wl@gnu.org>
1567         * tmac/troffrc: Add tmac.lbp.
1569 2000-03-03  Francisco Andres Verdu  <pandres@dragonet.es>
1571         * tmac/tmac.lbp: New file.
1572         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
1573         command.
1575 2000-03-03  Werner LEMBERG  <wl@gnu.org>
1577         * Makefile.in: Fixing $(subdir).
1579         * README, NEWS: Small fixes.
1581         * test-groff: Adding path to grolbp.
1583         * configure.in: The (new) file src/xditview/Imakefile.in will be
1584         also configured -- it is now possible to build gxditview in a
1585         directory different from $srcdir.
1587 2000-03-02  Blake McBride  <blake@florida-software.com>
1589         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
1591         * MORE.STUFF: Added website of bell labs and info about plot2dev.
1593 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
1595         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
1596         files.
1598 2000-02-29  Werner LEMBERG  <wl@gnu.org>
1600         Adding GNU getopt to the groff distribution.
1602         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
1603         New files.
1604         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
1605         * aclocal.a4: Remove GROFF_GETOPT function.
1606         * configure.in, Makefile.in, PROBLEMS: Update.
1607         * src/include/lib.h: Replace getopt tests with getopt.h.
1608         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
1610         * doc/groff.texinfo: Further checking/updating.  Adding more index
1611         entries.
1613         * man/groff_out.man: Fix nroff mode activation (for emacs).
1614         * man/groff_font.man: Add missing ligature.
1616 2000-02-28  Werner LEMBERG  <wl@gnu.org>
1618         * doc/groff.texinfo: Further checking/updating.  Adding more index
1619         entries.
1621         * src/devices/grolbp/grolbp.man: Added a comment line at the
1622         beginning of the file (similar to shell scripts) which indicates
1623         that `tbl' should be used as a preprocessor.
1625 2000-02-27  Blake McBride  <blake@florida-software.com>
1627         Adapting groff to MS Visual C++ 6.0 compiler (tested with
1628         Windows NT 4.0).  Uses _MSC_VER define where necessary.
1630         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
1631         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
1632         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
1633         src/include/lib.h, src/libs/libgroff/errarg.cc,
1634         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
1635         src/preproc/refer/label.y, src/preproc/refer/label.cc,
1636         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
1637         src/roff/troff/div.cc, src/roff/troff/env.cc,
1638         src/roff/troff/input.cc, src/roff/troff/node.cc,
1639         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
1640         if_to_a() to avoid name clashes.
1641         * src/include/posix.h: Don't use unistd.h.
1642         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
1643         clause for integrating non-Unix xtmpfile() code.
1644         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
1645         structure; use "rt" for popen() in pipe_source(); add getpid()
1646         dummy function.
1647         * src/roff/troff/node.cc: Use special versions of popen() in
1648         real_output_file() and pclose() in ~real_output_file().
1650 2000-02-27  Werner LEMBERG  <wl@gnu.org>
1652         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
1653         LBP-8 series laser printers).  This code has been contributed by
1654         Francisco Andres Verdu <pandres@dragonet.es>.
1656         * src/devices/grolbp/*: The grolbp output device.
1657         * font/devlpb/*: The font description files.
1658         * Makefile.in: Add grolpb and devlbp subdirectories.
1660         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
1661         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
1662         typographic fixes.
1664         * doc/groff.texinfo: Further checking/updating.  Adding more index
1665         entries.
1667         * NEWS: Updated.
1669         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
1671         * man/groff_font.man: Adding info about obsolete DESC keywords.
1672         * src/devices/grolj4/grolj4.man: Documenting additional DESC
1673         keywords.
1675 2000-02-26  Werner LEMBERG  <wl@gnu.org>
1677         * src/preproc/grn/grn.man: Added info about the gremlin file format
1678         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
1680 2000-02-25  Werner LEMBERG  <wl@gnu.org>
1682         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
1683         friends to be non-integer.
1685         * src/preproc/grn/grn.man: Document it.
1687         * doc/groff.texinfo: Further checking/updating.  Adding more index
1688         entries.
1690 2000-02-24  Werner LEMBERG  <wl@gnu.org>
1692         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
1693         line thicknesses to be integer multiples of this value.
1695         * src/preproc/grn/grn.man: Commenting out the -s option -- the
1696         corresponding code doesn't work (yet).
1698         * doc/groff.texinfo: Further checking/updating.  Adding more index
1699         entries.
1701 2000-02-23  Werner LEMBERG  <wl@gnu.org>
1703         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
1704         specify line thickness instead of base units.  The new default
1705         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
1706         thick lines respectively.
1708         Removed unused variable `prevval'.
1710         * src/preproc/grn/grn.man: Updated.
1712 2000-02-22  Werner LEMBERG  <wl@gnu.org>
1714         * src/preproc/grn/main.cc: Slight formatting.
1716         * src/roff/groff/groff.man: Formatting fix.
1717         * src/preproc/grn/grn.man: Ditto.
1719         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
1721         * doc/groff.texinfo: Further checking/updating.
1723 2000-02-21  Werner LEMBERG  <wl@gnu.org>
1725         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
1727         * test-groff: Added grn subdir to path.
1729         * doc/groff.texinfo: Some restructing and other small improvements.
1731         * src/roff/groff/groff.cc (help): Fixed info string.
1733 2000-02-20  Werner LEMBERG  <wl@gnu.org>
1735         * doc/meref.me: Fix description of .GS request.
1737         * src/roff/troff/troff.man: Fixing typo.
1739         Adding the `grn' preprocessor for gremlin graphic files.
1741         * src/preproc/grn/*: This is the Berkeley distribution written by
1742         David Slattengren and Barry Roitblat, adapted to groff by Daniel
1743         Senderowicz and Werner Lemberg.
1745         * doc/grnexampl.{me,g}: A sample for grn.
1747         * Makefile.in: Added subdirectory entry for grn.
1749         * src/roff/groff/groff.cc: Added support for grn.  It can be now
1750         called with the switch `-g'.
1752         * src/roff/groff/groff.man: Updated.
1754         * src/roff/grog/grog.{man,pl,sh}: Updated.
1756         * NEWS: Updated.
1758 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
1760         * src/include/lib.h: Added xtmptemplate and made xtmpfile
1761         parametrically polymorphic.
1763         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
1764         and the alterations to xtmpfile.
1765         xtmpfile can be requested to return the filename created
1766         and asked not to unlink the temp file.  The default behaviour
1767         if parameters are absent is exactly the same as before.
1769 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
1771         A new request `length' is available which returns the length of a
1772         string in a number register:
1774         * src/roff/troff/input.cc (length_macro): Implement it.
1775         * src/roff/troff/input.cc (init_input_requests): Register it.
1777 2000-02-11  Werner LEMBERG  <wl@gnu.org>
1779         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
1780         of the `substring' request.
1782         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
1783         request.
1785         * src/roff/troff/TODO, NEWS: Updated.
1787 2000-02-09  Werner LEMBERG  <wl@gnu.org>
1789         * src/roff/groff/groff.man: Added an example.
1791 2000-02-06  Werner LEMBERG  <wl@gnu.org>
1793         I've considerably modified the directory structure of the
1794         distribution to get a more vertical layout.  For example, the number
1795         of top level directories has been reduced from 42 to 6.
1797         As a consequence, many changes, especially to the makefiles, were
1798         necessary:
1800         * The makefile variables `top_builddir' and `top_srcdir' have been
1801         introduced.  Virtually all relative paths have been replaced with
1802         absolute ones using these two variables.
1804         * Dependencies (in the files `Makefile.dep') are no longer part of
1805         the distribution.  Instead, they are created during a `make install'
1806         in the build directory.
1808         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
1809         make `top_srcdir' and `top_builddir' absolute.
1811         Some other changes:
1813         * Man pages no depend on the files `VERSION' and `REVISION'.
1815         * The added shell script `mkinstalldirs' will replace `mkdir' in
1816         almost all cases.
1818         * VERSION: Version number increased to 1.16.
1820 2000-02-04  Werner LEMBERG  <wl@gnu.org>
1822         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
1824         * Makefile.in: Removed $(tmac_m) since it is no longer needed
1825         (after an update of the mm stuff).
1827         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
1829 2000-02-03  Werner LEMBERG  <wl@gnu.org>
1831         The .psbb request will now also accept Mac PS images (i.e. using LF
1832         as the EOL character).
1834         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
1835         (with slight modifications).
1836         * troff/input.cc (do_ps_file): Use it.
1838         * test-groff: Add grohtml and grolj4 output devices to PATH.
1840 2000-01-30  Werner LEMBERG  <wl@gnu.org>
1842         * NEWS, MORE.STUFF: Updated.
1844 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
1846         Add the `srand' command to pic.
1848         * pic/lex.cc, pic/pic.y: Implement it.
1849         * pic/pic.man: Document it.
1850         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
1852 2000-01-30  Werner LEMBERG  <wl@gnu.org>
1854         Add a new request `.psbb'.  This does exactly what the external
1855         program psbb did.  It scans a PostScript image file for a
1856         %%BoundingBox comment and extracts the bounding box values (in
1857         PostScript units) which are then stored in the four new (read-only)
1858         number registers `llx', `lly', `urx', and `ury'.
1860         This will allow the usage of the .PSPIC macro without worrying
1861         about unsafe behaviour of groff, i.e., it will work without the
1862         `-U' switch of groff.
1864         * troff/input.cc: Implement it.
1865         * tmac/tmac.pspic: Use it.
1866         * troff/troff.man, grops/grops.man, NEWS: Document it.
1867         * psbb/*, Makefile.in: Remove it since it is no longer needed.
1869         This is bloody C code simply adapted from psbb.c!  Any improvements
1870         welcome.
1872 2000-01-29  Werner LEMBERG  <wl@gnu.org>
1874         * man/groff_font.man: Minor clarifications.
1876         * NEWS: Updated.
1878 2000-01-28  Werner LEMBERG  <wl@gnu.org>
1880         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
1882 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
1884         * man/groff_font.man: Brought up to date regarding tcommand
1885         extensions.
1886         * libgroff/font.cc: Handle everything after `--' as a comment
1887         in the font files.
1888         * devps/*: Added comment delimiter inside devps font files.
1890 2000-01-28  Werner LEMBERG  <wl@gnu.org>
1892         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
1893         \fC...\fP (which now works as expected).
1895         * troff/troff.man: Fix typo.
1897 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
1899         Completed the pass_filenames implementation in troff.
1901         * libdriver/input.cc: Will read the new `F' tcommand.
1902         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
1903         * troff/input.cc: Use it.
1905 2000-01-26  Werner LEMBERG  <wl@gnu.org>
1907         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
1908         font will now be updated even if an invalid font is selected.
1910 2000-01-24  Werner LEMBERG  <wl@gnu.org>
1912         * doc/homepage.ms: Updated for new tmac.arkup.
1914         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
1916         * tmac/tmac.arkup: Cleanup.
1918         Added `\&' to .HTML macro to `leave vertical mode', so to say.
1920         Removed obsolete .LINK macro completely.
1922         The macros .URL, .FTP, and .MAILTO now accept a third argument which
1923         will be immediately appended to the second argument (to be used with
1924         punctuation, for example).
1926         Disabled .CDFTP macro temporarily for security reasons.
1928         * tmac/groff_markup.man: Complete revision for latest changes in
1929         tmac.arkup -- note that it does not yet format correctly with
1930         grohtml :-(
1932 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
1934         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
1935         * devutf8/R.proto: Add mappings for wp, lh, rh.
1936         * devutf8/NOTES: Updated.
1938 2000-01-23  Werner LEMBERG  <wl@gnu.org>
1940         * doc/groff.texinfo: Updated version/copyright info.
1942 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
1944         Added support for two new directives in device descriptions:
1945         `pass_filenames' (to pass the input file name to the output device)
1946         and `use_charnames_in_special' (to support e.g. accented characters
1947         in the `X' request).
1949         * include/font.h, troff/charinfo.h: Declare it.
1951         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
1953         * devhtml/DESC: Use it.
1955         * troff/input.cc: New function encoded_char.
1957         * troff/token.h: Add test for `specialness'.
1959 2000-01-21  Werner LEMBERG  <wl@gnu.org>
1961         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
1962         mistake from the list of files to be installed.
1964 2000-01-18  Werner LEMBERG  <wl@gnu.org>
1966         * README: Added info how to apply patches.
1968 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
1970         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
1972 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
1974         * troff/input.cc: Add support for troffrc-end.
1976         * tbl/main.cc: Altered to issue table-start and table-end special
1977         characters if using the html device.
1979         * devhtml/*: Modified font files to incorporate html encoding of
1980         characters.
1982         * tmac/groff_markup.man: New file documenting tmac.arkup.
1984         * tmac/troffrc-end: New file.  This is invoked after all user
1985         specified macros.  Currently used by the html device to include
1986         tmac.html.  Thus no need for users to specify -mhtml anymore.
1988         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
1989         (MAN7): Add groff_markup.man.
1991         * tmac/tmac.an, tmac/tmac.html: Small html updates.
1993         * tmac/troffrc: tmac.arkup will now be called for the html device.
1995         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
1996         extra device specific information about fonts.
1998         * doc/homepage.ms: New file.  It is an example how an HTML home page
1999         could look like with grohtml.
2001         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
2003 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
2005         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
2006         of Im, Re.
2008         * devutf8/NOTES: Updated.
2010 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
2012         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
2013         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
2014         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
2015         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
2016         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
2017         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
2018         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
2019         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
2020         warnings.
2022         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
2024 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
2026         grolj4: Paper size will be searched case-insensitively.
2028         * include/lib.h: Add check for strcasecmp().
2029         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
2030         * configure.in: Check for strcasecmp().
2032 2000-01-11  Werner LEMBERG  <wl@gnu.org>
2034         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
2035         `REVISION'.
2037 2000-01-10  Werner LEMBERG  <wl@gnu.org>
2039         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
2040         revision scheme.
2042         Add a new read-only register, `.Y', which contains the groff
2043         revision.
2045         * troff/input.cc (init_input_requests): Define it.
2046         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
2047         * doc/groff.texinfo, troff/troff.man: Document it.
2049         * libgroff/Makefile.sub (version.cc): Add definition of
2050         `Version_string[]', consisting of `<major>.<minor>.<revision>'
2051         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
2052         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
2053         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
2054         troff/input.cc, pfbtops/pfbtops.c: Use it.
2056 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
2058         Add a revision scheme to the groff package.
2060         * REVISION: New file.
2061         * libgroff/Makefile.sub (version.cc): Use it to define
2062         `revision_string[]'.
2063         * grops/psrm.cc: Use revision_string (converted to an unsigned
2064         integer) in constructor of resource_manager.
2066 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
2068         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
2069         files.
2070         * Makefile.in (DEVDIRS): Add devutf8.
2071         * grotty/tty.cc: Include device.h.
2072         (glyph): Change type of `code' to `unsigned int'.
2073         (tty_printer): New field is_utf8.  Constructor takes device argument.
2074         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
2075         (tty_printer::add_char): Change type of first arg to `unsigned int'.
2076         (tty_printer::put_char): New function.
2077         (tty_printer::end_page): Use put_char() instead of ::putchar().
2078         (make_printer): Pass device to tty_printer constructor.
2079         * nroff.sh: Determine default device by calling 'locale'.  As a
2080         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
2081         Recognize UTF-8 locales.
2082         * tmac/eqnrc: Recognize utf8 like latin1.
2083         * tmac/troffrc: Device utf8 needs tmac.tty.
2085 2000-01-07  Werner LEMBERG  <wl@gnu.org>
2087         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
2089 2000-01-07  Paul Eggert  <eggert@twinsun.com>
2091         Add a new predefined writeable number register, `year',
2092         which contains the current year.
2094         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
2095         * tmac/tmac.s: Use it.
2096         * troff/input.cc (init_registers): Initialize it.
2098 2000-01-06  Werner LEMBERG  <wl@gnu.org>
2100         * PROBLEMS: Fixed typo.
2102 2000-01-04  Paul Eggert  <eggert@twinsun.com>
2104         * PROBLEMS: Add Y2k advice for the yr number register.
2106 2000-01-03  Paul Eggert  <eggert@twinsun.com>
2108         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
2110 2000-01-02  Werner LEMBERG  <wl@gnu.org>
2112         * tmac/tmac.arkup: Slight modification of macros to provide better
2113         appearance for non-HTML formats.
2115 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
2117         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
2118         does not automatically translate to malloc(n) on all OSes
2119         (e.g., SunOS) so do it explicitly.  Also, check the returned
2120         value.
2122 2000-01-01  Werner LEMBERG  <wl@gnu.org>
2124         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
2126         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
2127         expects this variable
2129 2000-01-01  Gaius Mulley <gaius@glam.ac.uk>
2131         * doc/Makefile: Added instructions to create HTML and text
2132         versions of some files.
2134 1999-12-31  Werner LEMBERG  <wl@gnu.org>
2136         * Updated INSTALL.gen.
2138         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
2139         better resp. correctly with non-HTML devices.
2141 Version 1.15 released
2142 =====================
2144 1999-12-28  Werner LEMBERG  <wl@gnu.org>
2146         * NEWS, VERSION: Changed to 1.15
2148 1999-12-27  Paul Eggert  <eggert@twinsun.com>
2150         * nroff/nroff.man: -S is safer, not safe.
2152         * groff/groff.cc (main): Use `safer', not `safe', in variable
2153         names.  This does not change the behavior.
2155         * troff/input.cc (main): Likewise.
2157         * nroff/nroff.sh: Likewise.
2159         * troff/input.cc (prepend_string): New function.
2160         (main): Prepend -msafer, so that we check macro libraries for
2161         safety.
2163         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
2165 Version 1.14 released
2166 =====================
2168 1999-12-26  Werner LEMBERG  <wl@gnu.org>
2170         * NEWS, VERSION: Changed to 1.14.
2172 1999-12-24  Werner LEMBERG  <wl@gnu.org>
2174         * refer/refer.cc: Fixing the last fix.
2176 Version 1.13 released
2177 =====================
2179 1999-12-23  Werner LEMBERG  <wl@gnu.org>
2181         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
2182         number disappear.
2184         * NEWS: Updated.
2186         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
2188         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
2189         document conventions, the version number must be a real.
2191 Version 1.12.1 released
2192 =======================
2194 1999-12-22  Werner LEMBERG  <wl@gnu.org>
2196         * VERSION: Changed to 1.12.1.
2198 1999-12-22  Alan Rooks  <arooks@istar.ca>
2200         * refer/refer.cc (do_file): Slight modification to satisfy the
2201         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
2202         UnixWare 7.1.
2204 1999-12-20  Werner LEMBERG  <wl@gnu.org>
2206         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
2207         notices.
2209         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
2210         list of unsafe requests.
2212         * pic/pic.man: Fixed a typo.
2214         * man/groff_out.man: Fixed a typo.
2216 1999-12-18  Werner LEMBERG  <wl@gnu.org>
2218         * Makefile.in: Doc fixes.
2220 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
2222         * groff/groff.cc: Missing `U' option added to getopt().
2224         * troff/troff.man: Missing `U' option added to synopsis.
2226 Version 1.12 released
2227 =====================
2229 1999-12-14  Werner LEMBERG  <wl@gnu.org>
2231         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
2232         to the synopsis.
2234         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
2235         with the more appropriate terms `safer' and `unsafe'.
2237         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
2238         sys_nerr and sys_errlist[].
2240         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
2242         * pic/pic.y, pic/pic.cc: Added check for fmod().
2244 1999-12-13  Werner LEMBERG  <wl@gnu.org>
2246         * VERSION: Changed to 1.12.
2248         Here some patches from various sources; most of them taken from
2249         the Debian distribution.
2251         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
2252         tmac/Makefile.sub: New files copied directly from the NetBSD
2253         distribution.  Probably, some additional adaptation later on is
2254         necessary...
2256         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
2257         of unsafe requests.
2259         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
2260         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
2261         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
2262         (`-S') is now the default.
2264         * README, NEWS: Updated.
2266 1999-12-09  Werner LEMBERG  <wl@gnu.org>
2268         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
2270         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
2272 1999-12-06  Werner LEMBERG  <wl@gnu.org>
2274         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
2275         grief than relief today.  Additionally, it is against the GNU
2276         coding standards.
2278         * configure: Recreated.
2280 1999-12-05  Werner LEMBERG  <wl@gnu.org>
2282         * configure.in: Added GROFF_LIBM.
2284         * configure: Recreated.
2286         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
2287         necessary.
2289         * Makefile.in: Added definition of $(LIBM).
2291         * Makefile.comm (LIBM): Removed.
2293         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
2295 1999-12-03  Gaius Mulley <gaius@glam.ac.uk>
2297         * doc/Makefile: Added rule for generation pic.html.
2299         (clean): Files produced by grohtml will be removed also.
2301         * doc/pic.ms: Small fix.
2303         * tmac/tmac.html: Fixed suppression of headers.
2305 1999-11-16  Gaius Mulley <gaius@glam.ac.uk>
2307         * tmac/tmac.html: Fixing horizontal arrows.
2309         Turning off hyphenation.
2311         * tmac/tmac.an: Improved support for grohtml; better indentation,
2312         no footers/headers.
2314 1999-10-31  Gaius Mulley <gaius@glam.ac.uk>
2316         * tmac/tmac.arkup: Added CDFTP macro
2318         * tmac/tmac.html: All headers are turned off for ms, me, and mm
2319         macros.
2321         * tmac/troffrc: Some additions for HTML stuff.
2323 1999-10-06  Gaius Mulley <gaius@glam.ac.uk>
2325         * tmac/tmac.html: Small changes.
2327 1999-09-26  Werner LEMBERG  <wl@gnu.org>
2329         * doc/groff.texinfo: Minor fixes.
2331 1999-09-26  Gaius Mulley <gaius@glam.ac.uk>
2333         * devhtml/TR: Changed spacewidth to 3.
2335         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
2337         * tmac/tmac.html: Moved markup macros to tmap.arkup.
2339         * tmac/tmac.arkup: New file.
2341         * grohtml/ChangeLog: New file.
2343 1999-09-16  Werner LEMBERG  <wl@gnu.org>
2345         * doc/groff.texinfo (Common Features): Added Copying chapter.
2346         Changed format to @smallbook.
2348 1999-09-15  Werner LEMBERG  <wl@gnu.org>
2350         * NEWS: Added info about groff.texinfo.
2352         * doc/groff.texinfo: Will now compile (using texi2dvi) without
2353         warning messages.
2355 1999-09-14  Werner LEMBERG  <wl@gnu.org>
2357         * groff/groff.man: More updates.
2359 1999-09-13  Werner LEMBERG  <wl@gnu.org>
2361         * doc/groff.texinfo: New file.  This manual is still very
2362         rudimentary.  It has been originally contributed by Trent
2363         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
2364         additions by me.
2366         * INSTALL: Added information about the `doc' subdir
2368         * troff/troff.man: Minor fixes.
2370         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
2371         reordered options.
2373         * troff/input.cc (usage): Added missing `-ffam' to usage message.
2375         * Makefile.in (dist): groff-$(version).tar.gz must be removed
2376         also, otherwise it is included itself in another call of `make
2377         dist'.
2379         * groff/groff.cc (synopsis): Removed superfluous space.
2381         * PROJECTS, PROBLEMS, NEWS: Updated.
2383         * VERSION: Updated to 1.12beta.
2385         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
2387         * README: Updated: Included documentation about CVS repository,
2388         mailing lists, and daily snapshots.
2390         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
2392 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
2394         * tmac/tmac.an: If the tag didn't fit into the space that the
2395         macro `TP' specifies, the rest of the tag went into the space for
2396         the next line.
2398 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
2400         * grolj4/lj4.cc: Added duplex printing (option `-d').
2402         * grolj4/grolj4.man: Document duplex printing.
2404 1999-09-12  Werner LEMBERG  <wl@gnu.org>
2406         * doc/Makefile (pic.ps): Fixed rule which caused problems with
2407         non-GNUish sed programs.
2409         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
2410         definition.
2412         * configure.in (LIBS): Added `-lc'
2414         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
2416         * pic/tex.cc (solid_arc): Casting M_PI to double.
2418         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
2420         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
2421         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
2422         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
2424         * groff/groff_man.man: New file.  This manual page was originally
2425         written for the Debian GNU/Linux system by Susan G. Kleinmann
2426         <sgk@debian.org>.
2428         * eqn/list.cc (list_box::compute_metrics,
2429         list_box::compute_sublist_width): Removed variable declaration to
2430         avoid shadowing warnings.
2432         * grops/psrm.cc (resource_manager::process_file): Ditto.
2434         * tfmtodit/tfmtodit.cc (main): Ditto.
2436         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
2437         to avoid shadowing warnings.
2439         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
2440         shadowing loop variable.
2442         * groff/groff.man, troff/troff.man: Added doc about grohtml.
2444 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
2446         New grohtml frontend to convert groff input to html.
2448         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
2450         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
2452         * tmac/eqnrc: Added html device.
2454         * tmac/tmac.html: New file.
2456         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
2457         (troff_output::start_picture, troff_output::finish_picture),
2458         tbl/main.cc (process_input_file):
2459         Surrounded output with `graphics_start' and `graphics_end' so that
2460         the html driver can identify non-text portions.
2462         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
2463         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
2464         grotty/tty.ps (tty_printer::set_char): Additional parameter
2465         `name'.
2467         * include/printer.h: Class printer: New function
2468         set_char_and_width; new variables (is_char_named, is_named_set,
2469         named_command, named_char_s, named_char_n) to hold information
2470         about named characters -- needed by the html driver.
2472         * libdriver/printer.cc (printer::set_ascii_char,
2473         printer::set_special_char): Use set_char_and_width.
2475         * devhtml/*: New device files for html driver.
2477         * grohtml/*: New driver grohtml.
2479 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
2481         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
2482         default strings.
2484 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
2486         * libgroff/string.cc (search): Small fix to test against NULL
2487         pointer.
2489 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
2491         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
2492         \b'abc') were stacked in reverse order when processed in a
2493         diversion.
2495         * troff/node.h: Added `*last' to struct `node' to make the above
2496         fix work.
2498         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
2499         The default scale for the 'f' and 't' graphics functions were 'm'
2500         rather than 'u' (i.e., no scaling).
2502 1999-09-11  Peter Miller  <peterm@jna.com.au>
2504         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
2505         do_file), soelim/soelim.man: Added `-I file' option to soelim,
2506         defining include paths.
2508         * soelim/soelim.cc (include_path_append): New function.
2510 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
2512         * tbl/main.cc (process_options): Unix (at least Documenter's
2513         Workbench) tbl allows arbitrary non-alpha characters between
2514         options.
2516 1999-09-11  Paul Eggert  <eggert@twinsun.com>
2518         Y2k fixes.  Don't assume that the current year precedes 2000.
2520         * doc/meref.me: Add \n(y2, \n(y4.
2522         * tmac/doc-common (Yr): New number register.
2523         (Dd): Don't assume current year precedes 2000.
2525         * tmac/tmac.e (td): Likewise.
2526         (y2, y4): New number registers.
2528         * pic/pic.man: Update reference for pic paper to May, 1991
2529         version.
2531 1999-09-11  Werner LEMBERG  <wl@gnu.org>
2533         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
2534         Removed quotation marks which prevented correct expansion of
2535         $(tmac_wrap).
2537         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
2539 1999-09-10  Werner LEMBERG  <wl@gnu.org>
2541         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
2542         `config.cache'.
2544         * Removed configure.old.
2546 1999-08-31  Werner LEMBERG  <wl@gnu.org>
2548         * VERSION: Updated to 1.11.1
2550 1999-05-27  Werner LEMBERG  <wl@gnu.org>
2552         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
2554         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
2555         added quotations around $(tmac_wrap) to avoid syntax error if
2556         variable is empty.
2558         * configure: Newly generated using autoconf 2.13.
2560         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
2562 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
2564         * README, PROJECTS, NEWS, INSTALL, VERSION, 
2565         doc/Makefile. doc/pic.ms, groff/groff.man:
2566         Prepare for 1.11 release.  No code changes.
2567         Documentation for pic added (doc/pic.ms).
2569 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
2571         * Version 1.10 released.
2573 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
2575         * afmtodit/afmtodit.pl: Avoid comment on first line.
2577 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
2579         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
2580         * configure.in: Call it.
2582         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
2583         (distfiles): Doesn't depend on config.log or config.cache.
2585 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
2587         * grog/grog.sh: Use print "" rather than print in END rule.
2589 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
2591         * tbl/main.cc (process_data): Don't give error for excess data
2592         entries that are comments.
2594 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
2596         * tbl/main.cc (process_data): Fix case where new for-scope rules
2597         silently change meaning of code.
2599 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
2601         * troff/env.cc (hyphenate): Loop over all consecutive sequences
2602         of non-zero hyphenation codes.
2604 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
2606         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
2608 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
2610         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
2612 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
2614         * tmac/tmac.andoc: Make it work in compatibility mode.
2616         * refer/token.h (token_info::is_range_sep): New function.
2617         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
2618         * refer/ref.cc (reference::output): More sophisticated check for
2619         multiple pages.
2621         * devps/prologue.ps (MANUAL): New procedure.
2622         * grops/ps.cc (main): New -m option.
2623         (usage): Include -m.
2624         (ps_printer::~ps_printer): Implement -m.
2626         * aclocal.m4 (GROFF_G): New macro.
2627         * configure.in: Call it.
2628         * Makefile.in (g): Provided by configure.
2630         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
2632         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
2633         translations.
2635         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
2636         (tmac_m, tmac_s): Deleted.
2637         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
2638         tmac_s_prefix): New variables.
2639         (MDEFINES): Change accordingly.
2640         * Makefile.comm (.man.n): Use new TMAC_* variables.
2641         * configure.in (GROFF_TMAC): Call.
2642         * aclocal.m4 (GROFF_TMAC): Define.
2643         * tmac/Makefile.sub (stamp_wrap): New target.
2644         (install_data, uninstall_sub): Handle macro wrapping.
2646 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
2648         * tbl/main.cc (main): Ignore -T option.
2650 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
2652         * devlj4/generate/special.map: Add definition of \(nb.
2654         * tmac/tmac.dvi: Add definition of \(nb.
2656         * troff/dictionary.c (dictionary::dictionary): association::v gets
2657         initialized by association::association.
2659         * tmac/Makefile.sub: Avoid using temporary files when installing.
2661         * troff/env.cc (environment::set_font): Make bad font number a
2662         warning.
2664         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
2666         * Makefile.in (datadir): Use share rather than lib.
2668         * groff/groff.cc (basename): Rename to xbasename.
2670 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
2672         * Makefile (CCLIBS): Don't use.
2673         * Makefile.ccpg: Likewise.
2675         * acgroff.m4: Rename to...
2676         * aclocal.m4: Modify extensively for autoconf 2.
2677         * configure.in: Likewise.
2678         * Makefile.in: Likewise.
2680         * groff/pipeline.c (const): Declare as empty if __STDC__ not
2681         defined.
2682         (xstrsignal): Check for definition of NSIG. Conditionalize
2683         on SYS_SIGLIST_DECLARED.  Make return type const.
2685 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
2687         * troff/input.cc (interpolate_macro): Rephrase missing space
2688         warning.
2690 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
2692         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
2693         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
2694         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
2695         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
2696         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
2697         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
2698         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
2699         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
2700         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
2701         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
2702         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
2703         Fix 'for' scoping.
2705 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
2707         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
2708         string_iterator.
2709         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
2710         file.
2711         (macro_iterator::macro_iterator): Add additional argument.
2713 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
2715         * troff/div.cc (vertical_size::vertical_size): In place of integer
2716         specifying line spacing use cunits specifying post vertical
2717         space.
2718         (macro_diversion::output, top_level_diversion::output): Likewise.
2719         * troff/div.h: Change declarations accordingly.
2720         * troff/env.cc (pending_output_line): Replace ls field by post_vs
2721         field.
2722         (pending_output_line::pending_output_line,
2723         pending_output_line::output, environment::output,
2724         environment::output_line, environment::output_title,
2725         environment::hyphenate_line):  In place of
2726         integer specifying line spacing use cunits specifying post vertical
2727         space.
2728         (environment::environment): Add post_vertical_spacing and
2729         prev_post_vertical_spacing arguments.
2730         (environment::get_post_vertical_spacing): New function.
2731         (environment::total_post_vertical_spacing): New function.
2732         (environment::post_vertical_spacing): New function.
2733         (init_env_requests): Initialize pvs request and .pvs register.
2734         * troff/env.h: Change declarations.
2736 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
2738         * tmac/tmac.pspic: Immediately remove the temporary file.
2740 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
2742         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
2743         height is specified.
2745 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
2747         * tbl/table.c (struct vertical rule, class table_entry): Use int
2748         not short for start_row and end_row.
2750 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
2752         * troff/input.cc (trapping_blank_line, blank_line_macro): New
2753         functions.
2754         (diverted_space_node::reread, process_input_stack): Call
2755         trapping_blank_line() rather than blank_line().
2756         (init_input_requests): Bind "blm" to blank_line_macro().
2758         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
2760 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
2762         * troff/env.cc (environment::possibly_break_line): Require that
2763         width total excluding width of final space node be greater than
2764         the target text length.
2766 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
2768         * troff/node.cc (kern_pair_node::vertical_extent): New function.
2770 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
2772         * troff/node.cc (charinfo_node): New class.
2773         (glyph_node, composite_node): Derive from charinfo_node.  Change
2774         member functions accordingly.
2776 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
2778         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
2780 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
2782         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
2784         * devps/generate/textmap (notsubset): Add.
2786         * tmac/tmac.a4: New file.
2788 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
2790         * pic/main.cc (had_parse_error): New variable.
2791         (do_picture, do_whole_file): Set had_parse_error if yyparse()
2792         returns non-zero.
2793         (main): Return 1 if had_parse_error is true.
2795 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
2797         * grolj4/lj4.cc (main): Avoid use of strtoul.
2799 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
2801         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
2802         iso_8859_1 or $LESSCHARSET is latin1.
2804 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
2806         * hpftodit: New directory.
2807         * Makefile.in (CCPROGDIRS): Add hpftodit.
2808         * devlj4/generate: New directory.
2810 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
2812         * configure.in: Don't use AC_VFORK.
2813         * groff/pipeline.c (run_pipeline): Use fork() always.
2815 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
2817         * grops/ps.cc (main): Use %1 not %s in error message for -w.
2819         * Makefile.in (CCPROGDIRS): Add grolj4.
2820         (DEVDIRS): Add devlj4.
2821         * grolj4, devlj4: New directories.
2822         * tmac/troffrc: Handle lj4.
2823         * tmac/tmac.lj4: New file.
2825 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
2827         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
2829 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
2831         * troff/input.cc (do_if_request): At end of second string, switch
2832         environments before getting next token.
2834 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
2836         * devps/psstrip.sed: Split rule that strips whitespace on either
2837         side of delimiters.
2839 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
2841         * troff/node.h (font_family::make_definition): Add return value to
2842         declaration.  * troff/symbol.h (symbol::operator==,
2843         symbol::operator!=): Likewise.
2845 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
2847         * groff/groff.cc (main, help, synopsis): Handle -S.
2848         (possible_command::insert_arg): New function.
2850         * tmac/tmac.safer: New file.
2851         * tmac/msafer.man: New file.
2852         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
2854 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
2856         * pic/pic.h, pic/main.cc (safer_flag): New variable.
2857         * pic/pic.y (placeless_element): Avoid unsafe operations if
2858         `safer_flag' is set.
2859         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
2861 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
2863         * eqn/lex.cc (get_token): Put call to add_context() in block to
2864         work around Sun C++ 4.0 bug.
2866         * include/stringclass.h (operator +): Use ?: instead of `if' to
2867         work around Sun C++ 4.0 bug.
2869 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
2871         * tbl/main.cc (process_format): Accept - as a synonym for the _
2872         key letter.
2874         * libbib/index.cc (minus_one): Don't declare as const.
2876 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
2878         * troff/input.cc (get_char_for_escape_name): Push back a newline.
2880 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
2882         * troff/input.cc (write_macro_request): New function.
2883         (init_input_requests): Bind write_macro_request to writem.
2885 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
2887         * tmac/tmac.s (@EN): Turn filling back on even if there was no
2888         equation.
2890         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
2892         * tmac/tmac.s (@TS): Renamed from TS.
2893         (TS): Call LP then TS again.
2894         (cov*ab-init): Alias @TS to TS.
2896         * tmac/tmac.s: Allow QP or RS to initialize.
2898         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
2899         Move initializations of PS and LL here.
2900         (par@init): Don't initialize HY.  Avoid changing environment 0.
2901         (par*env-init): Don't all par@reset.
2903 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
2905         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
2907 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
2909         * Makefile.in (MDEFINES): Add LDFLAGS.
2910         (LDFLAGS): Add definition line.
2912 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
2914         * troff/input.cc (get_optional_char): Split off error check into...
2915         (check_missing_character): New function.
2916         * troff/token.h: Declare it.
2917         * troff/env.cc (margin_character): Don't call get_optional_char.
2918         Only call tok.next() after making the node.
2920         * include/lib.h (getopt): Make 2nd argument char *const *.
2922 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
2924         * nroff/conftest.sh: Deleted.
2926 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
2928         * pic/make-dos-dist: Deleted.
2930 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
2932         * devps/psstrip.sed: Strip comments before stripping trailing
2933         white space.
2935 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
2937         * Version 1.09 released.
2939 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
2941         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
2943 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
2945         * libgroff/font.cc (font::load_desc): Fix typo in error message.
2947 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
2949         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
2950         about returning without a value.
2952         * troff/charinfo.h (charinfo::get_special_translation): Cast
2953         TRANSLATE_NONE to int.
2955         * refer/token.cc (lookup_token, store_token): Remove bogus loop
2956         test.  Fix test so that it works with n unsigned.
2958         * pic/pic.y (defaults_table): Fully bracket initializer.
2959         * pic/lex.cc (lookup_keyword): Likewise.
2960         * eqn/lex.cc (token_table, def_table): Likewise.
2961         * eqn/box.cc (param_table): Likewise.
2962         * troff/input.cc (warning_table): Likewise.
2963         * libgroff/font.cc (table): Likewise.
2964         * grops/ps.cc (ps_printer::special): Likewise.
2965         * grops/psrm.cc (resource_manager::process_file): Likewise.
2966         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
2967         * refer/command.cc (command_table): Likewise.
2968         * addftinfo/addftinfo.cc (param_table): Likewise.
2970         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
2971         about temp's being unused.
2972         (unused): New function.
2974         * groff/pipeline.cc: Declare c_fatal.
2976         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
2977         uchar.
2979         * libbib/index.cc (index_search_item::load): Prevent compiler
2980         warnings about fd_closer's being unused.
2981         (unused): New function.
2983 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
2985         * troff/input.cc (copy_mode_error): Make `prefix' static.
2986         Fix typo.
2988         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
2989         defined.
2990         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
2991         HAVE_CC_OSFCN_H and modify accordingly.
2993         * troff/input.cc (init_charset_table): radicalex overlaps
2994         horizontally.
2996         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
2997         udodo!hans@relay.NL.net).
2998         * groff/configure.in: Call it.
3000         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
3001         * groff/configure.in: Call it.
3002         * include/lib.h: Conditionalize declaration of pclose.
3004         * troff/div.cc (last_page_number): New global variable.
3005         (top_level_diversion::begin_page): Exit if we just printed the
3006         last page.
3007         * troff/div.h (last_page_number): Declare it.
3008         * troff/input.cc (parse_output_page_list): Set last_page_number.
3010         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
3011         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
3012         tmac/tmac.X: Likewise.
3013         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
3014         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
3016 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
3018         * tmac/doc-ditroff (hK): Remove groff specific code which
3019         prevented page-breaks between separate manual entries.  If this is
3020         the first page, don't set the page number to 1.
3022         * acgroff.m4 (GROFF_POSIX): New macro.
3023         * configure.in: Use it.
3025         * troff/node.cc (class real_output_file,
3026         real_output_file::real_output_file,
3027         real_output_file::~real_output_file): Conditionalize use of
3028         popen/pclose on POPEN_MISSING.
3029         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
3030         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
3031         (pipe_source): Similarily.
3033         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
3035         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
3036         presence of declarations by trying to compile example with
3037         conflicting declarations.  (gcc only gives a warning for missing
3038         declarations.)
3040 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
3042         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
3043         (from Ulrich Lauther).
3045 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
3047         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
3049 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
3051         * indxbib/indxbib.cc (write_hash_table): Add code for case where
3052         pointers and ints have different sizes.
3054 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
3056         * tmac/tmac.s (par*env-init): Call par@reset.
3058 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
3060         * tmac/tmac.s (@IP): Switch to a new environment when diverting
3061         tag.
3062         (par*push-tag-env, par*pop-tag-env): New macros.
3064 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
3066         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
3067         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
3069         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
3070         comment.  Include <time.h>.
3072 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
3074         * grops/ps.cc (is_small_h, is_small_v): Deleted.
3075         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
3076         lines.
3078 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
3080         * troff/input.cc (read_request): Only print a prompt if reading
3081         from the terminal.  Also clearerr on EOF if reading from the
3082         terminal.  Declare isatty.
3084 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
3086         * refer/label.y: Rename map_t to map_func and extractor_t to
3087         extractor_func.
3089 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
3091         * include/assert.h: Don't use volatile.
3092         * libgroff/assert.cc: Likewise.
3094 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
3096         * troff/input.cc (abort_request): Look at character in tok before
3097         calling get_copy().
3099 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
3101         * troff/troff.h (NO_RETURN): Deleted.
3102         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
3103         * troff/input.cc (exit_troff): Likewise
3105         * Makefile.in: Remove `Making ...' messages since GNU make now
3106         gives these. 
3108         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
3110 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
3112         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
3113         to constant 1 inch.
3115 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
3117         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
3119 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
3121         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
3122         MARK_REG if there was no left delimiter.
3124 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
3126         * pic/troff.cc (troff_output::text): Set line thickness to
3127         relative before outputting text.
3129         * tmac/tmac.e (@k): Don't zero ?T.
3130         ((z): Likewise.
3132 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
3134         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
3136 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
3138         * troff/input.cc (decode_args): Warn about unquoted tabs (from
3139         Paul Eggert).
3141 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
3143         * troff/input.cc (ignoring): New variable.
3144         (ignore): Set ignoring during call to do_define_macro.
3145         (do_define_macro): Clear ignoring before interpolating terminating
3146         macro.
3147         (copy_mode_error): New function.
3148         (get_char_for_escape_name, read_long_escape_name,
3149         interpolate_arg): Use copy_mode_error.
3150         (warning_table): Add WARN_IG.
3151         * troff/troff.h (WARN_IG): Declare.
3152         (WARN_TOTAL): Change accordingly.
3154         * groff/pipeline.c (strsignal): Rename to xstrsignal.
3155         * groff/groff.cc (strsignal): Delete declaration.
3157 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
3159         * troff/div.cc (page_offset): Use 'm' as default scaling.
3161 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
3163         * nroff/nroff.sh: Ignore -u.
3165 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
3167         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
3169 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
3171         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
3172         drawing box.
3173         (B2): With -Tascii, leave additional vertical space before
3174         and after. Ensure that the left and right indent is restored to
3175         what it was even if the point size changes.  Don't call
3176         par@finish. Change the indent, line length and title length
3177         directly.  With -Tascii, make the width of the box 1n less.
3178         (B1): Remember 1n at the current point size.  Don't call
3179         par@reset.  Change the indent, line length and title length
3180         directly.  Ensure that the temporary indent is preserved.
3181         (par*box-mark-top): Turn off no spacing mode.
3183 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
3185         * Makefile.in (dist): Use .gz suffix.
3187 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
3189         * troff/input.cc (main): Add return 0.
3190         * pic/main.cc (main): Use return instead of exit.
3191         * tbl/main.cc (main): Likewise.
3192         * eqn/main.cc (main): Likewise.
3193         * grops/ps.cc (main): Likewise.
3194         * grotty/tty.cc (main): Likewise.
3195         * groff/groff.cc (main): Likewise.
3196         * grodvi/dvi.cc (main): Likewise.
3197         * refer/refer.cc (main): Likewise.
3198         * indxbib/indxbib.cc (main): Likewise.
3199         * lkbib/lkbib.cc (main): Likewise.
3200         * soelim/soelim.cc (main): Likewise.
3201         * addftinfo/addftinfo.cc (main): Likewise.
3202         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
3203         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
3205         * troff/token.h (process_input_stack): Don't declare as static.
3206         * troff/input.cc: Likewise.
3208         * troff/node.c (invalidate_fontno): Make it a static member of
3209         class font_family.  Change callers.
3210         * troff/node.c: Change declaration.
3212         * tbl/main.cc (struct input_entry_format): Add explicit public
3213         specifier.
3214         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
3215         struct double_hline_stuff): Likewise.
3216         * tbl/table.h (struct entry_format): Likewise.
3217         * pic/object.h (struct saved_state): Likewise.
3219         * include/stringclass.h: Add forward declarations of friend
3220         functions that are later declared as inline.  Don't include inline
3221         specifier in friend declaration.
3223         * libgroff/lib.h: Declare popen and pclose.
3224         * acgroff.m4 (GROFF_POPEN): New macro.
3225         * configure.in: Call it.
3227         * include/lib.h (PI): New constant. Undef first if necessary.
3228         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
3229         * grops/ps.cc (degrees, radians): Likewise.
3230         * libgroff/font.cc (font::get_skew): Likewise.
3232         * grops/ps.cc (is_ascii): New function.
3233         (ps_output::put_string): Use is_ascii.  Use csprint rather than
3234         isprint.
3235         (ps_printer::define_encoding): Use csspace.
3236         * libgroff/strtol.c (ISASCII): New macro.
3237         (strtol): Cast arguments to is*() and tolower() to unsigned char.
3238         Use ISASCII rather than isascii.
3239         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
3240         * libgroff/cset.cc: Likewise.
3241         * libdriver/input.cc: Include cset.h.
3242         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
3243         than isdigit().
3245         * refer/refer.cc (main): Use %ld rather than %d for longs.
3247         * libbib/index.cc (index_search_item_iterator::get_tag): Use
3248         S_ISREG macro.
3250         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
3252 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
3254         * troff/input.cc (hyphenation_code): Skip white space between
3255         char/code pairs.
3257 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
3259         * tbl/table.h (table::entry_list_tailp): New member.
3260         (table::table): Initialize it.
3261         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
3262         behaviour.
3264 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
3266         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
3267         with negative horizontal positions. Remove casts of glyph::hpos to
3268         int.
3269         (USHRT_MAX): Delete definition.
3270         (SHRT_MAX, SHRT_MIN): New definitions.
3271         (glyph::hpos): Change type to short.
3272         (tty_printer::end_page): Output multiple backspaces if necessary.
3273          Remove casts of glyph::hpos to int.
3274         
3275 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
3277         * tmac/tmac.s (@RT): New definition.
3279 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
3281         * refer/refer.cc (do_file): Make sure current_filename is set when
3282         filename is "-".
3284         * pic/common.cc (common_output::dot_line): Handle zero length
3285         lines.
3287 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
3289         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
3290         (par@init): Initialize \n[HY].
3292 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
3294         * troff/dictionary.cc (dictionary::remove): Continue when
3295         r < j < i.
3297 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
3299         * Makefile.com (.y.cc): Avoid ending up with two versions of
3300         $(YTABH).
3302 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
3304         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
3305         (\(,C): Likewise.  Also fix typo.
3307 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
3309         * lib.h: Delete extraneous semi-colon.
3311         * Add pso request: `so' from a pipe.
3312         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
3313         (file_iterator::close): New function.
3314         (file_iterator::~file_iterator, file_iterator::next_file): Use
3315         file_iterator::close.
3316         (file_iterator::backtrace): Say `process' rather than `file' when
3317         the stream is popened.
3318         (pipe_source): New function.
3319         (init_input_requests): Bind ".pso" to pipe_source.
3321 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
3323         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
3325         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
3326         digits in lower case.
3328 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
3330         * Version 1.08 released.
3332         * Makefile.in (dist): Insert || true after ln -s commands that
3333         might fail.
3335         * mm: Update to mm 1.16.
3337         * acgroff.m4 (GROFF_CSH_HACK): New macro.
3338         * configure.in: Call GROFF_CSH_HACK.  Substitute for
3339         SH_SCRIPT_SED_CMD.
3340         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
3341         MDEFINES.
3342         * nroff/Makefile.sub (nroff): New target.
3343         (install_data): Install nroff.
3344         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
3345         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
3347 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
3349         * eqn/Makefile.sub (neqn): Add chmod +x.
3351         * grog/Makefile.sub (grog): Remove spurious semi-colon.
3353 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
3355         * troff/input.cc (string_iterator::string_iterator()): Initialize
3356         lineno and count.
3358 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
3360         * troff/div.cc (macro_diversion::space,
3361         top_level_diversion::space): Don't set high_water_mark.
3362         (macro_diversion::output, top_level_diversion::output): Don't
3363         include post line space in high water mark.
3365 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
3367         * eqn/eqn.y: Don't define YYDEBUG.
3368         * pic/pic.y: Likewise.
3370 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
3372         * tmac/tmac.e ([3): Add space after comma following editors.
3373         Change double spaces to single spaces.
3374         ([4): Change double spaces to single spaces.
3376         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
3377         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
3378         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
3379         after %!PS-Adobe- (for Newsprint).
3381         * troff/div.cc (top_level_diversion::begin_page): When
3382         before_first_page is 1, set page_number to 1.
3384 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
3386         * eqn/box.cc (box::top_level): Protect equation with \&.
3388 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
3390         * groff/groff.cc (possible_command::set_name): Delete old name.
3392         * groff/groff.cc (possible_command::~possible_command): Use
3393         a_delete.
3395         * troff/node.cc (troff_output_file::begun_page): New member.
3396         (troff_output_file::troff_output_file): Initialize it.
3397         (troff_output_file::really_begin_page): Only output V command if a
3398         page has been begun.
3400         * pic/pic.y (placeless_element): Delete argument to PRINT after
3401         use.
3403 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
3405         * Make wrapman work.
3406         * troff/div.h (class top_level_diversion): Replace
3407         first_page_begun by before_first_page (with opposite sense).
3408         * Change first_page_begun to before_first_page inverting sense.
3409         * troff/div.cc (class nl_reg): New class.
3410         (init_div_requests): Use class nl_reg for \n(nl.
3411         (top_level_diversion::begin_page): Don't call
3412         output_file::begin_page if before_first_page is 2;
3413         reset before_first_page afterwards.  If have_next_page_number is
3414         false, then always increment page_number.
3415         * tmac/tmac.an: Set traps within TH rather than at the top-level.
3416         Restore compatibility mode after loading, and then disable
3417         compatibility mode in TH.
3419 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
3421         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
3422         past last line.
3423         * troff/node.h (output_file::trailer): Declare.
3424         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
3425         * troff/node.cc (output_file::trailer): New function.
3426         (troff_output_file::~troff_output_file): Move most code into...
3427         (troff_output_file::trailer): New function.
3428         (class troff_output_file): Delete page_length member. Declare
3429         trailer().
3430         (troff_output_file::really_begin_page): Use current page length
3431         for final V command.
3433         * tbl/main.cc (struct options): New decimal_point_char member.
3434         (options::options): Initialize this.
3435         (process_options): Implement decimalpoint option.
3436         (process_data): Pass decimal_point_char option to table::table.
3437         * tbl/table.h (class table): New decimal_point_char member.
3438         (table::table): Add additional argument.
3439         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
3440         second argument specifying decimal point character.  Use this
3441         instead of '.'.
3442         (table::table): Initialize decimal_point_char.
3443         (table::add_entry): Change call to find_dot.
3445         * troff/input.cc (get_copy, token::next): Implement \V.
3446         (interpolate_environment_variable): New function.
3448 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
3450         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
3451         * pic/pic.y: Likewise.
3453         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
3454         Add casts to int.
3455         * refer/ref.cc (reference::insert_field, reference::delete_field):
3456         Likewise.
3457         * troff/number.cc (parse_term): Likewise.
3459         * acgroff.m4 (GROFF_PROG_YACC): New macro.
3460         * configure.in: Use GROFF_PROG_YACC.
3462         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
3463         and g++.
3464         * Makefile.in (OPTIMIZE): New define.
3465         (DEBUG): Empty by default.
3466         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
3468         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
3469         (GROFF_ARRAY_DELETE): Likewise.
3470         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
3472         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
3474         * devps/psstrip.sed: Use different delimiter on last line (so that
3475         it works with BSD 4.4 sed.)
3477 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
3479         * devps/psstrip.sed: Delete comments.
3481         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
3482         optind, opterr, optarg.
3483         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
3484         opterr, optarg.
3486 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
3488         * Makefile.in (check): Dummy target.
3490 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
3492         * Version 1.07 released.
3494         * Integrate mm 1.11.
3496         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
3497         where start_col was meant.
3499 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
3501         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
3503 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
3505         * troff/input.cc (token::next): Make \z\o'...' and similar things
3506         work.
3508         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
3509         constants.
3510         (environment): Add margin_character_flags member.
3511         * env.cc (environment::environment(symbol),
3512         environment::environment(const environment *): Initialize
3513         margin_character_flags.
3514         (margin_character): Rewrite.
3515         (environment::output_line): Add a margin character if
3516         margin_character_flags is non-zero.  Turn off the
3517         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
3518         zero, use margin_character_node without copying and then set
3519         margin_character_node to 0.
3521         * devps/DESC.in: Change minimum size to 1000.
3523 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
3525         * troff/symbol.h (symbol::hash): Change return type to unsigned
3526         long.
3527         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
3528         Add casts to int.
3530         * test-groff: Use -r rather than -x.
3532         * grops/psfig.diff: Include in distribution again.
3534 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
3536         * Makefile.in (dist): Use gzip.
3538 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
3540         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
3541         unistd.h as well as in stdlib.h.
3542         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
3543         defined; otherwise include <sys/types.h> and <unistd.h> if
3544         UNISTD_H_DECLARES_GETOPT is defined.
3546         * configure.in: use builtin(include, ... rather than include(...
3547         * configure: Regenerate with autoconf 1.3.
3549         * libdriver/print.cc (printer::adjust_arc_center): Use new
3550         algorithm suggested by Andy Fyfe.
3552         * libdriver/printer.cc (printer::adjust_arc_center): New function.
3553         * include/printer.h: Declare this.
3554         * grops/ps.cc (ps_printer::draw): Use it.
3555         * grodvi/dvi.cc (dvi_printer::draw): Use it.
3557 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
3559         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
3561 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
3563         * eqn/main.cc (main): Handle "eqn -".
3565 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
3567         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
3569         * mm: Integrate version 1.08.
3571         * pic/troff.cc (troff_output::finish_picture): Set
3572         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
3573         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
3574         if it's not defined. Check whether the register is non-zero rather
3575         than whether it's not defined.
3576         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
3578         * indxbib/indxbib.cc: Move all signal handling into...
3579         * indxbib/signal.c: New file.
3580         * configure.in: Call AC_RETSIGTYPE.
3582         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
3583         * configure.in: Call GROFF_STRUCT_EXCEPTION.
3584         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
3586         * troff/input.cc (token::token, token::operator=): Work round SGI
3587         C++ bug.
3588         * pic/object.cc (position::position): Likewise.
3590 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
3592         * pic/pic.h: Move declaration of hypot().
3594 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
3596         * pic/pic.h: Declare hypot().
3598         * pic/pic.h: Define M_PI if necessary.
3600 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
3602         * tmac/tmac.e (re): Add alternative version that doesn't use groff
3603         `.ta T' feature.
3605         * devps/prologue.ps (RE): Handle the possibility that the old font
3606         doesn't have a FontName entry.
3608 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
3610         * tmac/tmac.e (fam): Redefine to set family in environment 2.
3611         (@C): Use @fam not fam.
3613 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
3615         * lookbib/lookbib.cc (main): Change type of start to const char *.
3616         * lkbib/lkbib.cc (main): Likewise.
3618         * eqn/lex.cc (definition::definition): Don't use member
3619         initializer syntax for members of anonymous unions.
3621         * troff/input.cc (input_stack::backtrace): Change type of to const
3622         char *.
3624 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
3626         * include/stringclass.h (class string): Declare inline friend
3627         functions as inline in class declaration.
3628         * troff/hvunits.h (class hunits, class vunits): Likewise.
3629         * include/refid.h (class reference_id): Likewise
3630         * troff/troff.h (points_to_units(units), scale(units, double)):
3631         Delete declarations.
3632         * libdriver/input.cc (get_char): Delete declaration.
3633         * include/lib.h: Change 2nd argument of getopt from const char **
3634         to char **.
3635         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
3636         char **' before assigning to a `const char **'.
3637         * tbl/table.cc: Delete extra declarations of prints().
3639 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
3641         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
3642         char **' before assigning to a `const char **'.
3644         * libgroff/errarg.cc (errarg::errarg): Don't use member
3645         initializer syntax for members of anonymous unions.
3647 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
3649         * mm: Integrate version 1.07.
3651 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
3653         * troff/input.c (translate2): Rename to
3654         (translate_no_transparent).
3655         (init_input_requests): Rename tr2 to trnt.
3657 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
3659         * troff/charinfo.h (class charinfo): Add transparent_translate field.
3660         (charinfo::set_translation, charinfo::set_special_translation):
3661         Add second argument that specifies value for
3662         transparent_translate.
3663         (charinfo::get_translation, charinfo::get_special_translation):
3664         Add optional second argument that specifies whether translation is
3665         being used for transparent throughput.
3666         * troff/input.cc (charinfo::set_translation,
3667         charinfo::set_special_translation): Handle second argument.
3668         (charinfo::charinfo): Initialize transparent_translate.
3669         (translate): Split main part off into
3670         (do_translate): New function.  Pass argument saying whether
3671         translation applies to transparent throughput.
3672         (translate2): New request.
3673         (init_input_requests): Bind translate2 to `tr2'.
3675 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
3677         * tbl/table.h (class table): Add `nokeep' flag.
3678         * tbl/main.cc (process_options): Handle `nokeep' option.
3679         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
3680         table::do_bottom): Don't output keep/release macro definitions or
3681         calls when `nokeep' option has been specified.
3683 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
3685         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
3687 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
3689         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
3690         block_entry::divert, alphabetic_block_entry::divert): Add extra
3691         argument giving column separation.
3692         (table::compute_widths): Pass column separation to
3693         table_entry::divert().
3694         (block_entry::do_divert): If an entry spans multiple columns and a
3695         minimumum width has been specified for each column, then set the
3696         line length to the sum of the widths (plus possibly the column
3697         separations).
3699         * troff/input.cc (set_escape_char): Don't set the escape_char
3700         until after calling has_arg().
3702 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
3704         * tbl/table.cc (table::do_top): Add missing \s0 for double box
3705         case.
3707         * tbl/table.cc (table::print_double_hline): Avoid extra new line
3708         in case where r > nrows - 1.
3710         * tbl/table.cc (BODY_HEIGHT): Deleted.
3711         (LINE_SEP): New definition.
3712         (table::print_single_hline, table::print_double_hline,
3713         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
3714         table::do_row, table::do_top): Use LINE_SEP space before a line
3715         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
3717         * tbl/table.cc (text_entry::print_contents): New function.
3718         (text_string_name, right_text_string_name): Deleted.
3719         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
3720         (simple_text_entry::do_width, numeric_text_entry::do_width,
3721         alphabetic_text_entry::do_width): Don't store the contents of the
3722         entry in a string.
3723         (left_text_entry::simple_print, right_text_entry::simple_print,
3724         center_text_entry::simple_print,
3725         alphabetic_text_entry::simple_print,
3726         numeric_text_entry::simple_print): Print the entry directly
3727         instead of using the stored string.
3729 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
3731         * devps/Makefile: Strip PostScript files.
3732         * devps/prologue: Rename to...
3733         * devps/prologue.ps.
3734         * devps/psstrip.sed: New file.
3735         * devps/download: Use .pfa rather than .ps for installed versions
3736         of fonts.
3738 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
3740         * troff/env.cc (input_trap): Give a warning if the argument is out
3741         of range.
3743         * troff/env.cc (adjust): Treat negative argument as missing. Round
3744         argument > 5 down to 5.
3746         * troff/env.cc (center, right_justify): Make negative argument zero.
3748         * troff/div.cc (page_offset, vertical_position_traps): Treat
3749         invalid argument as missing.
3750         * troff/env.cc (line_spacing, line_length, title_length, indent,
3751         underline, hyphen_line_max_request, control_char,
3752         no_break_control_char, widow_control_request, adjust, input_trap,
3753         point_size): Likewise.
3754         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
3755         constant_space): Likewise.
3756         * troff/input.cc (compatible, shift, warn_request,
3757         set_escape_char): Likewise.
3759         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
3760         * tbl/table.cc (table::table): Likewise.
3762         * Makefile.dev (install_dev): depends on $(DEVFILES).
3764 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
3766         * devX75, devX75-12, devX100, devX100-12: New directories.
3767         * Makefile.in: Add these to DEVDIRS.
3769         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
3770         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
3771         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
3772         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
3773         targets.
3774         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
3775         (uninstall): New target.
3776         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
3777         uninstall_prog, uninstall_dev): New targets.
3779         * troff/div.cc (return_request): Treat an invalid argument as
3780         missing.
3782 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
3784         * tmac/tmac.e ((f): Set up the environment even when there's a
3785         current diversion.  Transperently throughput a call to @N.
3786         (@N): New macro.
3788 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
3790         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
3791         up to vertical resolution.
3793         * tbl/table.cc (table::do_row): Change row number after printing
3794         stuff list.
3796         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
3798 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
3800         * Rename CHANGES to NEWS.
3802 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
3804         * libgroff/new.cc (operator new): Avoid calling malloc(0).
3806 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
3808         * man.ultrix: Removed.
3810 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
3812         * Makefile.comm (extraclean): Delete files whose names begin with
3813         `='.
3815         * pic/troff.cc (troff_output::text): Fix typo in implementation of
3816         aligned text.
3818 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
3820         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
3821         * troff/div.cc (page_length, need_space, space_request): Treat
3822         invalid optional argument as missing.
3823         * troff/env.cc (number_lines): If the first argument is present
3824         but not a number, turn on line numbering, don't change the next
3825         line number and parse the remaining arguments.
3827         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
3829 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
3831         * eqn/box.h: Change declaration accordingly.
3832         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
3833         the specified size was bad but don't give an error.  Check for
3834         overflow.
3835         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
3836         * eqn/lex (do_size): Likewise.
3838 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
3840         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
3841         compatible headers.
3843 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
3845         * tbl/table.cc (table::init_output): Improve error message when
3846         table won't fit on one page.
3848 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
3850         * pic/troff.cc (troff_output::start_picture): Generate line
3851         containing a horizontal motion equal to the width of the picture.
3853         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
3854         using GROFF_COMMAND_PREFIX environment variable.
3856 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
3858         * mdate.sh: Use $NF rather than $(NF).
3860 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
3862         * pic/main.cc (main):  Use %1 not %c in argument to warning.
3864         * eqn/main.cc (main): Output code to check that geqn was given the
3865         correct -T option.
3867 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
3869         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
3870         `ln -s ../Makefile .; make; rm -f Makefile'.
3872         * troff/hyphen: Rename to...
3873         * troff/hyphen.us:
3874         * troff/input.cc (main): Delete -H option. Don't call
3875         read_hyphen_file().
3876         * troff/env.cc: Include searchpath.h and macropath.h.
3877         (exception_dictionary): Deleted.
3878         (ht): Deleted.
3879         (read_hyphen_file): Deleted.
3880         (hyphenation_language): New struct.
3881         (class trie, class hyphen_trie): Move declarations up.
3882         (trie_node::~trie_node): Deleted.
3883         (trie::delete_trie_node): New function.
3884         (trie::do_delete): New pure virtual function.
3885         (hyphen_trie::do_delete): New function.
3886         (trie::~trie): New function.
3887         (hyphen_trie::~hyphen_trie): New function.
3888         (trie::clear): No need to chcek that tp is not 0.
3889         (current_language, language_dictionary): New variables.
3890         (hyphen_word): Give an error if no current language.  Use
3891         exceptions dictionary in current language.
3892         (hyphen_trie::read_patterns_file): Find file using macro_path.
3893         Allow comments (starting with %) in patterns file.  Don't make it
3894         a fatal error if the file can't be found.
3895         (hyphenate): Return if no current language.  Get the exceptions
3896         dictionary and the hyphenation patterns from the current language.
3897         (set_hyphenation_language): New variable.
3898         (hyphenation_patterns_file): New function.
3899         (hyphenation_language_reg): New class.
3900         (hyphenation_language_reg::get_string): New function.
3901         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
3902         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
3903         register.
3904         * groff/groff.cc (main, help, synopsis): Delete -H option.
3905         * include/Makefile.sub: Don't define HYPHENFILE.
3906         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
3907         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
3908         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
3909         hyphenation patterns.
3911 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
3913         * eqn/neqn.sh: New file.
3914         * eqn/Makefile.sub: Handle neqn.sh.
3916         * eqn/eqn.h: Declare `nroff' variable.
3917         * eqn/box.cc (param_table): Add `nroff' param.
3918         (nroff): Define it.
3919         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
3920         variable.
3921         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
3923         * troff/troff.h (WARN_FONT): New warning.
3924         (WARN_TOTAL): Change accordingly.
3925         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
3926         (warning_table): Add WARN_FONT.
3927         * troff/node.cc (mount_font_no_translate): Pass argument to
3928         font::load_font.  If this is non-zero, give a warning.
3929         Don't give an error message when accessing a font that has already
3930         been found to be invalid.
3931         * include/font.h (font::load, font::load_font): Add additional
3932         optional argument which suppresses error message if the font is
3933         not found.
3934         * libgroff/font.cc (font::load_font): Handle additional argument.
3935         (font::load): Add additional argument. If this is non-null, set it
3936         to 1 and don't give error message.
3938         * include/printer.h (printer::end_page): Add argument giving
3939         length of page.
3940         * libdriver/input.cc (do_file): Pass this.
3941         * grops/ps.cc (ps_printer::end_page): Add argument.
3942         * grodvi/dvi.cc (dvi_printer::end_page,
3943         draw_dvi_printer::end_page): Add argument.
3944         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
3945         columns_per_page members. New member nlines.
3946         (DEFAULT_LINES_PER_PAGE): Deleted.
3947         (tty_printer::tty_printer): Don't compute lines_per_page from
3948         font::paperlength. Don't compute columns_per_page from
3949         font::paperwidth.
3950         (tty_printer::add_char): Don't check horizontal position against
3951         columns_per_page. Grow glyphs vector if neccessary.
3952         (tty_printer::end_page): Add argument giving page_length in units.
3953         Discard lines past end of page.
3955 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
3957         * tmac/tmac.tty-char: Fix definition of \(/l.
3959         * tmac/tmac.X: Define \(en.
3961 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
3963         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
3964         lpq, then use lp rather than lpr.
3966         * tmac/tmac.s (par@reset): Don't call `ad'.
3967         (par*env-init): Call `ad'.
3969 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
3971         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
3972         date.
3974         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
3975         * indxbib/indxbib.cc: Likewise.
3977 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
3979         * libgroff/putenv.c: New file.
3980         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
3981         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
3982         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
3983         stdlib.h with AC_HAVE_HEADERS.
3985 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
3987         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
3988         does not exist.
3990 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
3992         * eqn/box.cc (gsize): Make it an int.
3993         (set_gsize): Parse argument handling increment or decrement.
3994         (box::top_level): Convert gsize to a string.
3996         * troff/input.cc (exit_troff): Make buf unsigned char [].
3997         Call to make_temp_iterator casts buf to char*.
3999         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
4001         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
4002         * Makefile.cpg (depend.temp): Likewise.
4004         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
4006         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
4008 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
4010         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
4012 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
4014         * Version 1.06 released.
4016         * Integrate mm 1.04.
4018 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
4020         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
4022 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
4024         * afmtodit/afmtodit.pl: Add -n option that disables generation of
4025         ligatures command.
4026         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
4027         afmtodit. Regenerate.
4029         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
4030         @f back past the current position.
4032         * tmac/tmac.e: Change calls to @R so that comments are not part of
4033         arguments.
4035 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
4037         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
4039         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
4040         check that we can link a call to a function declared in <stdio.h>.
4041         (GROFF_UNISTD_H): New macro.
4042         * configure.in: Call it.
4043         * Makefile.in: Document it.
4044         * include/posix.h: New file.
4045         * troff/troff.h: Don't include <osfcn.h>
4046         * troff/input.cc: Include posix.h.
4047         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
4048         osfcn.h.
4049         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
4050         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
4051         <fcntl.h>.
4052         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
4053         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
4054         * libbib/search.cc (O_RDONLY): Delete definition.
4055         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
4056         Don't include <osfcn.h>.
4058         * acgroff.m4 (GROFF_TIME_T): New macro.
4059         * configure.in: Call it.
4060         * Makefile.in: Document it.
4062         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
4063         * configure.in: Call it.
4064         * Makefile.in: Document -DTRADITIONAL_CPP.
4065         * include/ptable.h: Don't include generic.h.
4066         (name2): Define it.
4068         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
4069         Afterwards remove [T1 and [T2.
4070         (ref*spec!0, ref*spec!2): Use T1 rather than T.
4071         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
4072         (ref*add-T2): Renamed from ref*add-T.
4073         (ref*add-T1): New macro.
4075 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
4077         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
4079         * libbib/index.cc: Include <fcntl.h>.
4080         (O_RDONLY): Define if necessary.
4081         (make_index_search_item, index_search_item_iterator::get_tag,
4082         index_search_item::check_files): Use O_RDONLY.
4083         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
4084         (O_RDONLY): Define if necessary.
4085         (search_list::add_file): Use O_RDONLY.
4086         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
4087         <sys/stat.h>.
4088         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
4089         (main): Use these.
4091         * libbib/index.cc (S_ISREG): Define it if necessary.
4092         (index_search_item::load): Use S_ISREG.
4094         * include/driver.h: Include <errno.h>.
4096 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
4098         * eqn/box.cc (body_height): Increase default value to 85.
4099         (body_depth): Increase default value to 35.
4101 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
4103         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
4104         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
4105         protected from expansion with \E.
4107         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
4109         * Makefile (Makefile): New target.
4111         * Makefile.sub (configure, distfiles): New targets.
4113         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
4114         construct.
4116 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
4118         * eqn/box.cc (param_table): Add body_height and body_depth.
4120         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
4122 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
4124         * psbb/Makefile.sub: Don't link with libgroff.a.
4126         * acgroff.m4 (GROFF_PUTENV): New macro.
4127         * configure.in: Call GROFF_PUTENV.
4128         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
4129         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
4130         is defined.
4132         * troff/env.cc (distribute_space): Rename force_forward argument
4133         to force_reverse.  Reverse the list if force_reverse is true.
4135 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
4137         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
4139         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
4140         height or depth to be negative.  Guard against SUP_RAISE quantity
4141         being negative.
4143 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
4145         * devps/generate/textmap: Add `an' (arrowhorizex).
4146         * tmac/tmac.ps: \(an overlaps horizontally.
4147         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
4149         * devps/symbolchars: Add arrowverttp, arrowvertbt.
4150         * devps/textmap: Add arrowvertex.
4151         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
4152         updownarrow delimiters.
4153         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
4155         * tbl/table.cc (simple_entry::position_vertically,
4156         block_entry::position_vertically):  For a centered entry, perform
4157         the motion in two stages.
4159         * refer/refer.cc (split_punct): Don't call lookup_token if there
4160         is no token.
4162 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
4164         * troff/input.cc (token::next): Delete token_node after copying
4165         token.
4167         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
4168         cur_point_size.
4170         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
4172         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
4174 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
4176         * grops/ps.cc (usage): -b option takes an argument.
4178         * devps/prologue (PLG): New procedure.
4179         * grops/ps.cc (main, usage): New -g option.
4180         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
4181         length using PLG.
4183 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
4185         * include/cset.h: Include <limits.h> if we have it.
4187         * libgroff/illegal.cc: New file.
4188         * include/lib.h (illegal_input_char): Use table.
4189         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
4190         * pic/lex.cc (ARG1): Renumber to 14.
4191         * eqn/lex.cc (ARG1: Likewise.
4193         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
4194         (eg 1.05.90) correctly.
4196 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
4198         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
4199         Rename $r and $R registers to $v and $V.
4200         ($r, $R): Initialize to 0.
4201         (@v, @V): New macros.
4202         (sz): Call @v.
4203         (@M): Call @V.
4205         * troff/input.cc (main, usage): Add -R option that says not to
4206         load troffrc.
4207         * eqn/main.cc (main, usage): Rename -n to -R.
4209 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
4211         * devps/DESC.in: Leave font positions 5-9 blank.
4212         * devdvi/DESC.in: Likewise.
4214         * grog/grog.pl: Handle `.PS <file' correctly.
4216         * troff/input.cc (input_stack::push): Improve error message when
4217         input stack limit exceeded.
4219 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
4221         * refer/refer.cc (main): Fix typo in handling of `a' option.
4223         * refer/refer.cc (do_bib): In state START after a newline remain
4224         in state START.
4226         * groff/groff.sh: Deleted.
4227         * groff/Makefile.sub: Delete handling of groff.sh.
4229         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
4230         to determine whether to use \X'ps:...'.
4231         * tmac/troffrc: Set 0p register to 0.
4232         * tmac/tmac.ps: Set 0p register to 1.
4234         * groff/groff.cc: Support -X option. Give warning for -TXps and
4235         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
4236         * tmac/troffrc: Support -r.X=1.
4238         * pic/troff.cc (troff_output::dot): Don't test
4239         zero_length_line_flag.
4241 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
4243         * include/lib.h: Declare getopt() and friends unless
4244         STDLIB_H_DECLARES_GETOPT is defined.
4246         * doc/chars.tr: Delete.
4247         * man/groff_char.man: New file.
4249 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
4251         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
4252         user has changed register format.
4254 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
4256         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
4257         `postpro' command in DESC file.  Get spooler command from `print'
4258         command in DESC file.  Execute spooler command with /bin/sh.
4260         * groff/groff.cc: Split Unix-specific parts into...
4261         * groff/pipeline.c: New file.
4263         * LICENSE: Delete.
4264         * COPYING: New file.
4265         * all files: Update copyright notices.
4267         * Rearrange files.  Redo Makefiles.  Use autoconf.
4269 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
4271         * troff/input.c (charinfo_to_node_list): Interpret character
4272         definition with escape_char of `\'.
4274 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
4276         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
4277         Define INT_DIGITS as big enough for 64-bit integer.
4278         * lib/strtol.c: Don't include lib.h.
4279         * lib/lib.h: Delete ifdef __cplusplus stuff.
4281 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
4283         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
4284         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
4285         get DESC from current directory.
4287 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
4289         * tbl/main.c (main): Always reset the line number when reading
4290         from stdin.
4292         * tbl/table.c (table::print_single_hline, table::print_double_hline,
4293         table::define_bottom_macro, table::do_row, table::do_top): Round
4294         vertical spacing up to vertical resolution.
4296 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
4298         * ps/ps.h (enum resource_type): Avoid comma at end of
4299         enumerator-list.
4300         * dvi/dvi.c (class dvi_printer): Likewise.
4301         * dvi/tfmtodit.c (gf::load): Likewise.
4302         * refer/label.y (struct expression): Likewise.
4303         * refer/refer.c (class label_processing_state): Likewise.
4304         * refer/indxbib.c (do_file): Likewise.
4305         * troff/troff.c (enum warning_type): Likewise.
4306         * tbl/main.c (process_data): Likewise.
4307         * troff/charinfo.h (class charinfo):
4309 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
4311         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
4313 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
4315         * groff.c: Move to new groff subdirectory.
4316         * groff/Makefile: New file.
4317         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
4319         * man/mdate.sh: Use ls -L if supported.
4321         * Consolidate all header files produced by gendef into lib/defs.h.
4322         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
4323         Don't include path.h.
4324         * lib/Makefile (path.h): Don't generate.
4325         * troff/input.c: Include defs.h. Don't include config.h.
4326         * troff/Makefile (config.h): Don't generate.
4327         * refer/index.h: Don't include suffix.h.
4328         * refer/index.c: Include defs.h.
4329         * refer/indxbib.c: Include defs.h.
4330         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
4331         defs.h.
4332         * refer/Makefile (suffix.h, path.h): Don't generate.
4333         * groff.c: Don't include config.h. Include defs.h.
4334         * Makefile (config.h): Don't generate.
4335         (lib/defs.h): Generate.
4336         (topclean): Remove lib/defs.h.
4338 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
4340         * lib/malloc.c, lib/getpagesize.h: Deleted.
4341         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
4342         related stuff.
4343         * lib/Makefile: Delete malloc-related stuff.
4344         * lib/new.c: Workaround COOKIE_BUG if necessary.
4346         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
4347         needed header files directly.
4348         * refer/refer.h: Omit definition of DEFAULT_INDEX.
4349         * Makefile: Include definition of DEFAULT_INDEX in path.h.
4351 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
4353         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
4354         argument.
4355         * lib/font (font::load_desc, font::load): Don't split argument of
4356         unknown command.
4357         (font::handle_unknown_font_command): Change type.
4358         * ps/ps.c (ps_font::handle_unknown_font_command,
4359         handle_unknown_desc_command): Change type.
4360         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
4362 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
4364         * lib/font.h (font::handle_unknown_font_command): Add file and
4365         line arguments.
4366         * lib/font.c (font::handle_unknown_font_command):
4367         * ps/ps.c (ps_font::handle_unknown_font_command):
4368         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
4369         lineno arguments.  Use _with_file_and_line functions for error
4370         reporting.
4372         * lib/fontfile.c (font::unknown_desc_command_handler): New static
4373         data member.
4374         * lib/font.c (font::set_unknown_desc_command_handler): New
4375         function.
4376         (font::load_desc): For unknown commands, call
4377         unknown_desc_command_handler if not null.
4378         * lib/font.h (class font): Declare them.
4379         (FONT_COMMAND_HANDLER): New typedef.
4380         * ps/ps.c (handle_unknown_desc_command): New function.
4381         (main): Set bflag if we had a -b option. Call
4382         font::set_unknown_desc_command_handler.
4383         (broken.h): Don't include.
4384         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
4385         submake 
4386         * ps/devps/Makefile: Add `broken' command to DESC file using
4387         BROKEN_SPOOLER_FLAGS.
4389         * macros/tmac.e ([, ]): Add as synonyms for { and }.
4391         * macros/tmac.e ($p): Only exdent if \$3 > 0.
4393         * macros/tmac.e (@R, @S): New macros.
4394         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
4395         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
4396         Declare $H, $[0-9], .. macros with @S.
4397         Declare |0, |1, |2, |3 strings with @S.
4399         * macros/tmac.e (@S): Rename to @U.
4401         * macros/tmac.e (@z): Define @b and bp as empty instead of
4402         deleting them,
4404         * macros/tmac.e (@m): Deleted.
4405         (@h): Don't call @m.
4406         (@z): Don't set @m trap.
4408         * macros/tmac.e ($h, $f): Define |z as empty string.
4410         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
4411         (@q): Likewise.
4413         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
4414         removing them.
4415         ()f): Likewise for * register.
4417         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
4418         argument is missing, don't change $R.  Call sr with three
4419         arguments when initializing.
4421 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
4423         * macros/tmac.e (sr): New macro.
4424         Initialize $r and $R using sr.
4426         * macros/tmac.e (,): Delete \*(#[.
4428         * troff/env.c (set_tabs): Read the tab type even if the position
4429         is bad.  Allow the position of the first tab stop to be negative.
4431 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
4433         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
4434         _POSIX_VERSION.
4435         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
4436         rather than -DPATHCONF_MISSING.
4437         * Makefile: Get rid of PATHCONF_MISSING.
4439         * refer/map.c: New file.
4440         * refer/index.c: Interface to mmap through map.c.  Rename map_size
4441         to map_len.
4442         * refer/Makefile: Handle map.c.
4443         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
4445 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
4447         * Makefile: RANLIB should be `true' if there is no ranlib.
4448         * lib/Makefile (libgroff.a): Simplify.
4449         * driver/Makefile (libdriver.a): Simplify.
4451         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
4452         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
4453         defined.
4455 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
4457         * troff/env.c (compare_ranges): Declare as extern "C".
4459         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
4461         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
4463 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
4465         * pic/troff.c (troff_output::text): Merge in grops_output::text,
4466         but conditionalize use of \X based on \*(.T.
4467         (grops_output::*): Deleted.
4468         * pic/output.h: Delete declaration of make_grops_output.
4469         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
4470         by default. -n sets it to 0.
4471         (usage): Corresponding changes.
4472         * groff.c (main): Don't pass -x or -p to pic.
4473         * groff.sh: Likewise.
4475         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
4476         to be non-zero.
4478         * ps/devps/afmtodit: Change calculation of asc_boundary and
4479         desc_boundary.  Make these bounds inclusive.
4480         * ps/devps: Regenerate font files.
4482 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
4484         * macros/tmac.latin1: New file.
4485         * macros/tmac.tty-char: Use tmac.latin1.
4486         (tmac.tty-tr): Deleted.
4487         * macros/Makefile: Install tmac.latin1.
4488         * macros/tmac.dvi: Use tmac.latin1.
4489         * macros/troffrc: Translate \[char160] onto no-break space here.
4490         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
4492 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
4494         * macros/tmac.Xps: Use `do' request.
4496         * macros/tmac.ps: Use `do' request.
4498         * macros/tmac.e (@C): Use `do' request.
4500         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
4501         * macros/Makefile: Install tmac.X*.
4503         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
4504         * tty/Makefile: Don't install tmac.tty*.
4505         * macros/Makefile: Install tmac.tty*.
4507         * dvi/tmac.dvi: Move to macros.
4508         * dvi/Makefile: Don't install tmac.dvi.
4509         * macros/Makefile: Install tmac.dvi.
4511         * ps/tmac.ps*: Move to macros.
4512         * ps/Makefile: Don't install tmac.ps*.
4513         * macros/Makefile: Install tmac.ps*.
4515         * eqn/box.c: Provide draw_lines parameter corresponding to -D
4516         option.
4517         * macros/eqnrc: Set draw_lines parameter based on device.
4518         * groff.c: Don't pass -D flag to eqn.
4519         * groff.sh: Likewise.
4520         * eqn/main.c: Warn about use of -D.
4522         * troff/input.c (process_startup_file): New function.
4523         (main): Call process_startup_file().
4524         * macros/troffrc: New file.
4525         * macros/Makefile: Install troffrc.
4526         * groff.c (main): Don't pass extra -m option to troff. For a 
4527         pseudo device pass the name of the pseudo device to troff using
4528         -d.
4529         * groff.sh: Likewise.
4530         * groff.c (possible_command::prepend_arg): Deleted.
4532         * troff/input.c (do_request): New function.
4533         (init_input_requests): Bind "do" to do_request.
4535         * eqn/main.c (main): Instead of loading eqnchar from device directory,
4536         load eqnrc from macro directory.
4537         * macros/eqnrc: New file.
4538         * macros/Makefile: Install eqnrc.
4539         * ps/devps/eqnchar: Deleted.
4540         * ps/devps/Makefile: Don't install eqnchar.
4541         * dvi/devdvi/eqnchar: Deleted.
4542         * dvi/devdvi/Makefile: Don't install eqnchar.
4543         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
4544         variable optM.
4546         * lib/device.[ch]: New files.
4547         * lib/font.h (font::set_device_name, font::get_device_name):
4548         Deleted.
4549         * lib/fontfile.c: Use device.h.
4550         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
4551         * troff/input.c: Delete definition of `device'.
4552         (main): Don't initialize device.
4553         * troff/troff.h: Include device.h rather than declaring device.
4554         * troff/Makefile: No need to handle DEVICE.
4555         * driver/input.c: Include device.h. Don't use
4556         font::{set,get}_device_name.
4557         * groff.c, Makefile: Rename device.h to config.h.
4558         * groff.c: Use library device variable.
4559         * eqn/main.c: Use library device variable.
4560         * eqn/Makefile: No need to handle DEVICE.
4562         * lib/searchpath.[ch]: New files.
4563         * lib/Makefile: Handle searchpath.[ch].
4564         * troff/input.c (open_file, init_dirs): Deleted.
4565         (macro_dirs): Deleted.
4566         (open_mac_file, macro_source): Use class search_path.
4567         (add_string, struct string_list): Move definition.
4568         (main): Change -M option to use macro_path. Delete call to
4569         init_dirs().
4570         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
4571         Rewrite to use class search_path.
4572         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
4573         * lib/Makefile: fontfile.c depends on searchpath.h.
4574         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
4575         MACROPATH.
4576         * lib/macropath.[ch]: New files.
4577         * troff/Makefile: No need to handle MACROPATH.
4579         * troff/input.c: Delete DUMP code.
4580         * lib/fontfile.c, lib/font.h: Delete
4581         font::forget_command_line_font_dirs.
4583         * troff/input.c (push_token): New function.
4584         (handle_first_page_transition): Use push_token().
4585         (process_input_stack): Change handling of a space at the beginning
4586         of the line.
4588 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
4590         * troff/input.c (font_dirs): Delete unused variable.
4592         * eqn/lex.c (do_set): Correct error messages.
4594 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
4596         * troff/input.c (do_define_string): Allow the string name to be
4597         followed immediately by a tab.
4598         (define_character): Likewise.
4600 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
4602         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
4603         be negative.
4605         * troff/input.c (input_iterator::is_file): New virtual function.
4606         (file_iterator::is_file): New function.
4607         (input_stack::end_file): New function.
4608         (input_stack::next_file): Handle the situation where there is no
4609         file on the input stack correctly.  Avoid making two passes over
4610         the input stack.
4611         (next_file): Make the filename optional; in this case call
4612         input_stack::end_file().
4614 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
4616         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
4617         produce a real _ charater when the current font is CW and _
4618         otherwise.
4620         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
4621         expression to work around gcc 2.2 bug.
4623 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
4625         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
4627         * troff/env.c (environment::add_padding): New function.
4628         (environment::add_char): Use add_padding().
4629         (environment::space): Likewise.
4630         (environment::wrap_up_field): Add some padding if there is none
4631         and there's no current tab.
4632         * troff/env.h: Declare environment::add_padding.
4634 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
4636         * pic/pic.y: undef fmod and rand before declaring them.
4638 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
4640         * troff/input.c (main): If the DESC file specifies a font name of
4641         0, then leave the corresponding font position empty.
4643         * nroff.sh: New file.
4644         * Makefile (install.nobin): Install nroff.sh.
4646         * tty/devlatin1/R.proto: Add ao as synonym for de.
4647         * tty/tmac.tty-char: Define ao as o.
4649         * tty/dev{ascii,latin1}/R.proto: Add aq.
4650         * tty/tmac.tty-char: Delete definition of aq.
4652 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
4654         * troff/input.c (init_charset_table): Don't translate 0240.
4655         * ps/tmac.ps: Translate char160 to space.
4656         * dvi/tmac.dvi: Likewise.
4657         * tty/tmac.tty: Likewise.
4659 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
4661         * dvi/tmac.dvi: Add support for all Latin-1 characters.
4663         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
4664         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
4665         \(oe, \(r?, \(r!.
4667         * tty/tmac.tty-char: Add \(ah.
4669         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
4670         No need to define \(FM and \(!/. Conditionalize all character
4671         definitions.
4673         * ps/devps/lgreekmap: Add +h, +f, +p.
4675         * ps/tmac.psnew: New file.
4676         * ps/Makefile: Install tmac.psnew.
4678         * troff/input.c (charinfo_to_node_list): Don't ever interpret
4679         character definitions in compatible mode.
4681         * troff/input.c (remove_character): New function.
4682         (init_input_requests): Bind remove_character to "rchar".
4684         * ps/tmac.psold: New file.
4685         * ps/Makefile: Install tmac.psold.
4686         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
4687         characters into tmac.psold.  Make these definitions unconditional.
4689         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
4691         * ps/tmac.ps: Don't define \('c and \('C.
4693         * ps/devps/textmap: Move Greek characters to...
4694         * ps/devps/symbolchars:
4696 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
4698         * ps/devps/text.enc: Add quotesingle.
4699         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
4700         * tty/tmac.tty-char: Likewise.
4701         * dvi/devdvi/texmi.map: Add +h, +f, +p.
4702         * dvi/devdvi/texi.map: Add Fn.
4703         * dvi/devdvi/msam.map: Add lz.
4704         * dvi/tmac.dvi: Handle Bq, bq, aq.
4706         * pic/lex.c (get_token): Recognize 'th.
4707         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
4709 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
4711         * ps/devps/textmap: Move di, mu, +- to...
4712         * ps/devps/symbolchars:
4714         * macros/tmac.s (@XS): Don't call par@reset or fi.
4715         (XA): Call LP. Turn off adjustment. Reduce line length.
4717         * macros/tmac.s: Initially alias XS to LP.
4718         (XS): Rename to @XS.
4719         (cov*ab-init): Alias XS to @XS.
4721 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
4723         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
4724         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
4725         (token::is_size, token::changes_env): Deleted.
4726         * troff/number.c (parse_term): No need to process \s explicitly.
4727         Call tok.next() only after scale indicator has been processed.
4728         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
4729         \f etc explicitly.
4730         (token::next): Handle \s, \f, \S, \H immediately rather than
4731         returning them as tokens.
4732         (token::operator==, token::description, token::add_to_node_list,
4733         token::process): Remove handling of deleted tokens.
4735         * troff/env.c (environment::add_char): When adding padding
4736         indicator character, call start_line() if necessary.
4738 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
4740         * ps/devps/afmtodit: Don't output 0 kerns.
4742         * ps/devps/afmtodit: Remove directory from name of encoding in
4743         font description file.
4745         * ps/devps/afmtodit: Improve error messages.
4747         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
4749         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
4750         * ps/devps/FontMakefile: Deleted.
4751         * ps/devps/afmname: New file.
4753         * ps/devps/symbol.sed: New file.
4754         * ps/devps/symbol.diff: Deleted.
4755         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
4756         Generate zapfdr.afm from zapfd.afm.
4758         * tty/tmac.tty (tty-char): Prefix definition with ".
4760         * macros/tmac.an (TP): Don't start a diversion if one has already
4761         been started.
4763         * tty/tmac.tty-char: Add Latin-1 characters.
4765         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
4767 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
4769         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
4770         Move declaration of struct horizontal_span.
4772         * tbl/table.c (table::table): Initialize span_list.
4773         (table::~table): Delete span_list.
4775         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
4777         * ps/devps/Makefile: Avoid dependency on GNU make.
4779         * ps/tmac.ps: Check that character does not already exist before
4780         defining it.
4782         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
4783         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
4784         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
4785         files.
4787         * tty/tmac.tty-char: New file.
4788         * tty/Makefile: Install tmac.tty-char.
4789         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
4790         tmac.tty-char.
4792         * tty/tmac.tty: Fix definition of \(34.
4794         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
4795         bracket-drawing characters onto |. Add *o.
4797         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
4798         only if current_field.
4800         * troff/dictionary.c (dictionary::lookup): Free old_table after
4801         rehashing. 
4803 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
4805         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
4806         whose glyphs are identical to glyphs of some Roman character.
4808         * tty/devlatin1/R.proto (bu): Deleted.
4809         * tty/devascii/R.proto (bu): Deleted.
4810         * tty/tmac.tty: Add definition of \(bu.
4812         * eqn/main.c (do_file): Pass FILE as argument.
4813         (main): Automatically load eqnchar.  New options -F and -n.
4814         Pass do_file an opened FILE.
4815         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
4816         No need to include font.h.
4817         * groff.sh: Likewise.  Don't need to use - for standard input.
4818         Prefix files with -- if first file starts with -.
4820         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
4822         * troff/env.c (environment::possibly_break_line): Don't set line
4823         to 0 across call to output_line().  Don't call output_line() until
4824         after discarding nodes after break.
4826 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
4828         * request.h (macro::empty): Declare it.
4829         * input.c (macro::empty): New method.
4830         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
4831         macro is empty.
4833 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
4835         * troff/env.c (environment::start_field): Decrement space_total
4836         when a space is frozen.
4838 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
4840         * macros/tmac.an (R): Delete macro.
4842         * troff/input.c (get_copy, token::next): Support \# (like \" but
4843         newline is ignored).
4845         * troff/input.c (token::next): Fix error message in 'Y' case.
4847 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
4849         * eqn/delim.c (define_extensible_string): Recognize any prefix of
4850         a delimiter name.
4852 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
4854         * c++test.c: Include <osfcn.h>.
4856         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
4857         <errno.h> doesn't.
4859 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
4861         * tbl/table.c (table::divide_span): Don't count column separation
4862         if expand was specified.
4864         * tbl/main.c (process_format): Don't ignore width specs in
4865         continued format.  Give warning for changing equal widths or
4866         column separation in continued format.
4867         (process_data): Set column separation, minimum width, equal
4868         columns at end of table.
4870 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
4872         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
4873         node::add_discretionary_hyphen): Use soft_hyphen_char.
4874         (set_soft_hyphen_char): New function.
4875         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
4877         * Makefile (c++tested): Give more helpful message if test fails.
4879 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
4881         * troff/input.c (init_charset_table): Translate 0240 to
4882         an unbreakable space.
4884         * troff/token.h (token::hyphen_indicator): New function.
4885         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
4886         translation.
4887         * troff/input.c (translate): Allow translation to \%.
4888         * troff/node.c (node::add_char): Handle
4889         TRANSLATE_HYPHEN_INDICATOR.     
4890         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
4892         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
4893         for \(hy.
4895         * tty/devlatin1/R.proto: \(hy and - should print as 055.
4897 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
4899         * groff.c (run_commands): If the last command gets a SIGPIPE send
4900         a SIGPIPE to all children than haven't yet terminated.  When
4901         command terminates, set pid field to -1.
4903 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
4905         * groff.c (main): Pass an appropriate -filename option to gxditview.
4907 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
4909         * Makefile.bd (install): Remove existing program before copying.
4911         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
4912         programs which have Unix counterparts to be installed with
4913         user-specified prefix.
4915         * troff/input.c (exit_troff): Don't check if exit_started.
4916         (exit_request): Don't call exit_troff if exit_started.
4918         * Makefile.bd (install.mm): Rename to install.dwbmm.
4920 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
4922         * driver/input.c (do_file): Add missing break for '#' case.
4924 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
4926         * troff/input.c (input_stack::clear):  Clear past any boundaries and
4927         then add the boundaries back.
4929         * troff/input.c (exit_troff): Return immediately if already
4930         exiting.
4932         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
4933         end macro.
4934         (pg*end-page): If the text has ended and there are no more
4935         footnotes or keeps, exit.
4937         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
4939         * troff/input.c (init_charset_table): Make \(rq transparent by
4940         default.
4942         * macros/tmac.an: Define lq and rq strings.
4944         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
4946 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
4948         * troff/env.c (environment::final_break): New function.
4949         (environment::newline): Set prev_line_interrupted to 2 if
4950         exit_started.
4951         * troff/env.h: Declare environment::final_break.
4952         * troff/input.c (exit_troff): Call environment::final_break()
4953         instead of environment::do_break().
4955         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
4956         doesn't already exist.
4957         * macros/man.local: New file.
4958         * macros/tmac.an: Load man.local.
4959         * macros/man.ultrix: New file.
4961 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
4963         * troff/input.c (exit_groff): Rename to...
4964         (exit_troff): New function.
4966         * troff/div.c (exit_started, done_end_macro,
4967         seen_last_page_ejector): New global variables.
4968         (began_page_in_end_macro): New static variable.
4969         (exit_flag): Deleted.
4970         (top_level_diversion::top_level_diversion): Initialize
4971         last_page_count.
4972         (top_level_diversion): More elaborate test for whether
4973         cleanup_and_exit() should be called.
4974         Set began_page_in_end_macro if the end macro isn't yet finished.
4975         * troff/div.h (top_level_diversion::last_page_count): New data
4976         member.
4977         (top_level_diversion::set_last_page): New function.
4978         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
4979         * troff/env.c (do_break): Zero prev_line_interrupted.
4980         * troff/input.c (exit_flag): Delete declaration.
4981         (LAST_PAGE_EJECTOR): New magic cookie.
4982         (token::next): Handle LAST_PAGE_EJECTOR.
4983         (exit_groff): Set exit_started and done_end_macro instead of
4984         exit_flag.  Call top_level_diversion::set_last_page.  Push a
4985         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
4986         another ejection after setting seen_last_page_ejector.
4988 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
4990         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
4992         * macros/tmac.e (TH): Make sure there's room for the initial
4993         header.
4995         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
4996         Set FVS in points rather than units.
4998 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
5000         * troff/div.c (top_level_diversion::add_trap): Don't consider the
5001         position of empty slots.
5003 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
5005         * ps/devps/S: Fix height and depth of parenrightex.
5006         * ps/devps/symbol.diff: Regenerate.
5008 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
5010         * tmac.e (u): Do underlining as in -mgs.
5012 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
5014         * tty/tty.c (tty_printer::end_page): If overstriking is
5015         suppressed, still turn overstruck horizontal and vertical lines
5016         into +.
5018         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
5019         2.1.
5021         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
5023 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
5025         * Version 1.05 released.
5027 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
5029         * tty/tty.c: Instead of keeping an array of glyphs and then
5030         sorting it, keep a ordered linked list of glyphs for each line.
5032         * driver/driver.h: Include stddef.h.
5034         * tty/tty.c (compare_glyph):
5035         * refer/refer.c (rcompare):
5036         * troff/env.c (compare_ranges): Arguments of qsort comparison
5037         function should be const void *.
5039         * troff/number.c (parse_term):
5040         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
5041         switch statement.
5043         * refer/label.y (consider_authors): Don't access variables
5044         constructed under a condition outside that condition: put braces
5045         round for statement containing declaration; redeclare use of same
5046         variable later.
5048         * pic/pic.y (text_expr): Delete production that allows
5049         parenthesised text_expr.
5050         (expr): Allow a conditional_expr to appear in parentheses.
5051         (conditional_expr): Rename to any_expr.
5053         * mm: Install new version 1.01 from jh.
5055         * lib/font.c (font::get_width): Cache scaled widths.
5056         (font::font): Initialize widths_cache.
5057         (font::~font): Destroy widths_cache.
5058         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
5060 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
5062         * c++test.c, c++test.ref: New files.
5063         * Makefile: Check that the C++ compiler works.
5065         * ps/tmac.pspic (PSPIC): Do a break.
5067         * ps/tmac.ps: Move definition of PSPIC into...
5068         * ps/tmac.pspic: New file.
5069         (PSPIC): Draw box around picture, but make it invisible to grops.
5070         * ps/tmac.ps: Load tmac.pspic.
5071         * ps/Makefile: Install tmac.pspic.
5073 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
5075         * lib/font.c (scale_round): If n is negative,
5076         subtract .5 before truncating floating point result.
5078         * lib/fontfile.c: Include <errno.h>.
5080 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
5082         * driver/input.c (get_char): Inline. Don't update current_lineno.
5083         Change callers to up date current_lineno if necessary.
5084         Use get_char() instead of getc(current_file).
5086 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
5088         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
5090 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
5092         * tty/tty.c (tmac.tty): Define \(rg as (R).
5094 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
5096         * lib/lib.h: New define a_delete.
5097         * Use a_delete instead of delete when deleting an array of objects
5098         without destructors.
5100         * lib/lib.h: Rename adelete to ad_delete.
5101         * Change uses of adelete.
5103 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
5105         * eqn/eqn.y: Include lib.h.
5107         * troff/node.c (grow_font_table): Delete old_font_table.
5109         * mm: Install new version from jh.
5111 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
5113         * tbl/table.h (format_type): Make global instead of local to class
5114         entry_format.  Prefix enumerators with FORMAT_.
5115         * tbl/table.c, tbl/main.c: Corresponding changes.
5116         * refer/token.h (token_type): Make global.  Prefix enumerators
5117         with TOKEN_.
5118         * refer/token.[ch]: Corresponding changes.
5119         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
5121         * troff/div.c (node::set_vertical_size): Don't name argument.
5123 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
5125         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
5126         * lib/lib.h: Define adelete accordingly.
5127         * pic/object.c (graphic_object::graphic_object):
5128         * tbl/main.c (format::~format):
5129         * tbl/table.c (table::~table):
5130         * refer/ref.c (reference::~reference, reference::merge,
5131         reference::insert_field, reference::delete_field): Use adelete.
5133         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
5134         * refer/token.h:
5135         * tbl/table.h: Corresponding changes.
5137         * common.c (common_output::dashed_arc, common_output::dotted_arc):
5138         Ensure total_angle is positive.
5140 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
5142         * refer/ref.c (reference::merge, reference::insert_field,
5143         reference::delete_field): Avoid delete[0].
5145         * refer/token.c (init_special_chars): Move calls to cmupper
5146         outside calls to init_two_char_letter to work around bug in gcc
5147         2.0.
5149 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
5151         * lib/new.c (operator new): Use __builtin_new for g++.
5153         * pic/object.c (graphic_object::~graphic_object):  Don't use
5154         delete [] on 0.
5156         * pic/object.c (output::compute_scale): Initialize max_width and
5157         max_height.
5159 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
5161         * troff/input.c (write_request): Call fflush.
5163         * troff/node.h (class composite_node): Move declaration to node.c
5164         * troff/input.c (charinfo_to_node): Rename to ...
5165         (charinfo_to_node_list): Return node list rather than composite
5166         node.
5167         * troff/node.c (make_composite_node): New function.
5168         (make_node, add_char): Call make_composite_node instead of
5169         charinfo_to_node.
5170         (class composite_node): Add a tfont * member.  Delete font_size
5171         member.
5172         (composite_node::composite_node, composite_node::copy,
5173         composite_node::size): Corresponding changes.
5174         (composite_node::tprint): Provide constant spacing, emboldening
5175         and track kerning as specified in tfont.
5176         (composite_node::width): Change width calculation accordingly.
5177         * troff/env.h (environment::composite): New member.
5178         (environment::is_composite, environment::set_composite): New
5179         functions.
5180         * troff/env.c (environment::environment): Initialize composite.
5181         * troff/input.c (charinfo_to_node): Call
5182         environment::set_composite.
5183         * troff/node.c (make_composite_node, make_glyph_node): Use the
5184         plain version of the tfont if the environment is composite.
5186         * troff/node.c (font_info::get_space_width): Additional argument
5187         giving space_size.  Handle constant space correctly. Scale by
5188         space_size unless constant spaced.
5189         (env_sentence_space_width): New function.
5190         * troff/node.h: Declare it.
5191         * troff/env.h (environment::get_space_size,
5192         environment::get_sentence_space_size,
5193         environment::get_narrow_space_width,
5194         environment::get_half_narrow_space_width): Make inline.
5195         (environment::get_space_width): Make inline.  Just call
5196         env_space_width.
5197         * troff/env.c: Delete definitions for funtions made inline.
5198         (environment::space_newline, environment::space): Use
5199         env_sentence_space_width(). Don't scale by space_size.
5200         * troff/node.h: Move declarations of env*space_width() functions
5201         into env.h.
5203 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
5205         * macros/tmac.s (PS): Don't try to set negative indent.
5207 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
5209         * pic/pic.y: Fix min function.
5211 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
5213         * man/mdate.sh: Clear LANGUAGE.
5215 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
5217         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
5218         * pic/lex.c: New COMMAND keyword.
5219         * pic/pic.y (print_args, print_arg): New rules.
5220         (placeless_element): Use print_args for PRINT.
5221         New COMMAND element.
5223 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
5225         * troff/input.c (terminal): Handle missing argument correctly.
5227         * pic/pic.y (text_expr): New rule.
5229         * pic/pic.y: Implement := operator.
5231 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
5233         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
5234         mdoc.
5236 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
5238         * ps/devps/dingbatsrmap: Include this in the distribution.
5240         * macros/tmac.doc: Replace with new version from 2nd Networking
5241         Release. Fix loading of doc-* files.
5242         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
5243         * macros/tmac.doc.old: New file.  Apply fixes that had been
5244         applied to old tmac.doc.
5245         * macros/tmac.andoc: Check that we're running under groff.
5246         * macros/Makefile: Rework.
5248 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
5250         * tbl/table.h (format_type): 
5251         * refer/token.h (token_type): If NESTED_TYPES is defined, use
5252         typedef to make these types visible at file scope.
5253         * Makefile: Add NESTED_TYPES configuration option.
5255         * troff/div.c (mark): At the top level use the value of
5256         nl_reg_contents rather than the current vertical position.
5258 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
5260         * tty/tty.c: Implement \D for horizontal or vertical lines.
5261         (tty_printer::set_char): Use vec_used+2 as serial number.
5262         Don't allow size of vector to exceed USHRT_MAX-2.
5263         Split off part into...
5264         (tty_printer::add_char): New function.
5265         (tty_printer::draw): New function.
5266         (compare_glyph): Handle equal serial numbers.
5267         (tty_printer::end_page): Handle overstruck characters from \D.
5268         (main, usage): Implement -d option.
5270 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
5272         * tbl/main.c (process_format):
5273         * eqn/text.c (split_text):
5274         * troff/input.c (token::next): Use inner block for declarations
5275         with initializers in switch statement.
5277 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
5279         * pic/common.c (common_output::dash_line): Cope with zero-length
5280         lines.
5282 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
5284         * Version 1.04 released.
5286 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
5288         * macros/tmac.an (TH): Define a macro an-init to define variables
5289         based on command line arguments.
5290         (an-header): Call it.
5292 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
5294         * Makefile (install.mm): Rename to install.dwbmm.
5296         * Makefile: Integrate mm.
5297         * mm: New directory.
5299 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
5301         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
5302         <sys/types.h>.
5304         * pic/troff.c (troff_output::simple_spline,
5305         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
5306         shadowing parameter.
5308         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
5310         * lib/ptable.h: Add explicit casts when converting from unsigned
5311         long to unsigned.
5313         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
5314         * dvi/devdvi/Makefile: Install SA, SB.
5316         * refer/indxbib.c: Add declaration of mktemp.
5318         * refer/lookbib.c: Add declaration of isatty.
5320 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
5322         * pic/lex.c (interpolate_macro_with_args):  While collecting
5323         arguments, keep track of whether we're in a string.
5325 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
5327         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
5328         down with \v, so as to avoid problems with top of page trap
5329         setting no space mode.
5331 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
5333         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
5335 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
5337         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
5338         Improve error message.
5340 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
5342         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
5343         printf("%03o");
5345 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
5347         * groff.c (possible_command::execp): Always use _exit() after a
5348         failed exec.
5350         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
5351         NO_SYS_WAIT_H   configuration options.
5352         * groff.c: Use these options.  Use POSIX-style macros to extract
5353         fields from the status returned by wait().
5355 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
5357         * tbl/table.c (table::compute_separation_factor): Allow the
5358         separation factor to drop to 0.
5360 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
5362         * refer/search.c: Include <errno.h>.
5364 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
5366         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
5368         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
5369         C++. 
5371         * pic/lex.c (input_stack::bol): Move definition out of class body.
5373         * pic/main.c: On MSDOS munge argv[0].
5375         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
5377         * lib/ptable.c (hash_string): Use unsigned long rather than
5378         unsigned.
5379         (next_ptable_size): Use unsigned rather than int.  Give an error
5380         message if we've hit the largest table size.
5381         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
5382         table size.
5384         * pic/object.h (object_spec): Make flags unsigned long.  Declare
5385         flags as const unisgned long rather than as enums.
5387         * pic/output.c: Deleted.
5389         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
5391         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
5392         Add additional argument.
5393         (line_entry::note_double_vrule_on_{left,right}): Set value of
5394         douvle_vrule_on_{right,left} flag according to argument.
5395         (simple_line_entry::simple_print,
5396         simple_line_entry::double_line_print): If adjacent to double vrule
5397         on a corner extend rather than shorten the rule by half the double
5398         vrule sep.
5400         * troff/number.c (parse_term): In checking for overflow, handle the
5401         case where the current horizontal position is negative.
5403 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
5405         * pic/object.c (draw_arrow): Check for object having zero length.
5407 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
5409         * eqn/main.c (do_file): Split off inline equation handling into...
5410         (inline_equation): New function.  Search for starting delimiter
5411         using...
5412         (delim_search): New function. Don't recognize a delimiter that
5413         occurs in the name of an escape sequence, number register, string
5414         etc.
5416 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
5418         * eqn/delim.c (delim_box::compute_metrics): Don't call
5419         define_extensible_string if left is 0.
5420         (delim_box::output):  Don't print the left delimiter if left is 0.
5421         (delim_box::debug_print): Check for left == 0 before calling printf.
5423 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
5425         * troff/Makefile (majorminor.c): Include only digits in
5426         minor_version.
5428 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
5430         * refer/dirnamemax.c: new file.
5431         * refer/genlimits.c: Deleted.
5432         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
5433         Don't check path length.
5434         * refer/Makefile: Add dir_name_max.o; delete genlimits.
5435         * Makefile: Add PATHCONF_MISSING option.
5437         * refer/indxbib.c (get_cwd): New function.
5438         (main): Use get_cwd().
5439         * lib/getcwd.c: New file.
5440         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
5441         GETCWD in SUBFLAGS.
5442         * lib/Makefile: Compile getcwd.o.
5444         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
5445         userdict.
5447         * refer/indxbib.c (main): Check success of mktemp.
5449         * lib/tmpfile.c: New file.
5450         * lib/Makefile: Add tmpfile.c.
5451         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
5452         * ps/ps.h: Delete declaration of mktemp().
5453         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
5454         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
5455         * driver/driver.h: No need now to include errno.h.
5457         * everywhere: Set errno to 0 before calling fopen().
5459         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
5460         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
5461         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
5463 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
5465         * troff/env.h (translate_space_to_dummy): Declare it.
5466         * troff/env.c (environment::space_newline, environment::space):
5467         If translate_space_to_dummy is set then make the width of spaces 0.
5468         * troff/input.c (translate): If the second character of a
5469         translation is a space, translate to unbreakable space.  If the
5470         first character is a space, set or clear translate_space_to_dummy
5471         according to whether the second character is \&.  Weird!
5473 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
5475         * groff.c (run_commands): Don't use non-zero exit code because a
5476         command gets SIGPIPE.
5478         * groff.c, groff.sh: Use -mXps with -TXps.
5480         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
5481         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
5482         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
5483         (ps_printer::special): New specials invis and endinvis.
5484         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
5485         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
5486         (ps_printer::end_page): Check that invis_count == 0.
5487         (ps_printer::invis_count): New member.
5488         (ps_printer::ps_printer): Initialize invis_count to 0.
5490         * troff/env.c (environment::hyphenate_line): Hyphenation
5491         indicator at beginning of word inhibits splitting after -, \(em
5492         etc.
5494         * pic/pic.y (element): Allow another element to follow } without
5495         any intervening separator.
5497 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
5499         * pic/lex.c (get_delimited): Allow tabs before delimiter.
5501 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
5503         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
5504         declaration of wait() in header files.
5505         * Makefile: Get rid of -DHAVE_UNION_WAIT.
5507         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
5509         * lib/lib.h: Declare return type of strerror as char *.
5511         * man/Makefile: Add g flag to sed substitutions.
5512         * Makefile (shgroff, bindist): Likewise.
5514 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
5516         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
5517         * ps/devps/prologue (PBEGIN): Define showpage after pushing
5518         userdict.
5520 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
5522         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
5523         userdict.
5525 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
5527         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
5528         group.
5530 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
5532         * troff/input.c (define_number_reg):  If currently undefined,
5533         don't define it if the argument is an invalid expression.
5535         * Makefile: Ignore return value of `if' commands without `else'
5536         parts.
5538         * Makefile: Split up CPPDEFINES into a series of separate
5539         configuration options.
5541         * troff/input.c (init_registers): Use time_t instead of long
5542         unless LONG_FOR_TIME_T is defined.  Use returned result rather
5543         than passing pointer.
5544         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
5546         * lib/Makefile (fontpath.h): Use gendef.
5548 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
5550         * troff/input.c (input_iterator::shift): Delete argument name.
5551         * troff/node.c (suppress_output_file::really_begin_page,
5552         suppress_output_file::really_transparent_char, node::ascii_print,
5553         node::tprint): Delete names of unused arguments.
5555 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
5557         * refer/label.y (string):  Pass $4 to command_error.
5559 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
5561         * Version 1.03 released.
5563 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
5565         * Makefile: Pass definition of SHELL in SUBFLAGS.
5567         * gendef: New file.
5568         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
5569         ps/Makefile: Use gendef to construct header files that are
5570         constructed from the Makefile.
5572         * macros/Makefile: make all should build stripped version of tmac.e.
5574         * refer/Makefile (clean): Remove y.output.
5576 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
5578         * ps/pfbtops.c (main): Add -v option which prints out a version
5579         number.
5580         * ps/Makefile (pfbtops): Link with libgroff.a.
5582 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
5584         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
5585         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
5587         * refer/lkbib.c (main): Always terminate reference with blank
5588         line.
5589         * refer/lookbib.c (main): Likewise.
5591         * refer/linear.c (file_buffer::load): Check that the file is not a
5592         binary file.
5594         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
5595         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
5596         Delete second inclusion of <sys/param.h>.
5598 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
5600         * troff/token.h (token::special): Deleted.
5602         * tbl/main.c (process_format): Rework so that opt->tab_char is
5603         recognized only when appropriate.
5605         * ps/Makefile (clean): Remove pfbtops.
5607 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
5609         * lib/font.c (text_file::next): Don't return if we have got a
5610         blank line.
5612 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
5614         * refer/refer.c (store_reference): Get hash code from old_table[i]
5615         when rehashing the table.
5617 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
5619         * eqn/box.c (box::top_level): Save size and prev size using \R and
5620         restore it afterwards. Set the size to the size at the beginning
5621         of the line.
5622         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
5623         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
5625         * refer/Makefile (limits.h): Use ./genlimits.
5627 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
5629         * refer/index.c: Delete declarations of stat() and fstat().
5631 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
5633         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
5635 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
5637         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
5639 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
5641         * troff/input.c (token::get_char): Handle \e.
5643         * refer/linear.c: Delete declarations of fstat() and stat().
5645 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
5647         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
5648         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
5650 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
5652         * troff/input.c (do_define_macro): Improve error handling for end
5653         of file while defining macro.
5655 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
5657         * eqn/box.h: Fix declaration of set_gsize.
5658         * eqn/box.c (set_gsize): Make argument const char *.
5659         (gsize): Declare as char *.
5660         * eqn/main.c (main): Don't convert gsize to int.
5661         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
5663         * Version 1.02 released.
5665 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
5667         * macros/tmac.andoc: New file.
5668         * macros/Makefile: Install tmac.andoc.
5670         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
5671         operator new and delete on OP_DELETE_BROKEN not being defined.
5672         * Makefile: Mention OP_DELETE_BROKEN.
5674 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
5676         * Makefile (bindist): Pass SUBFLAGS.
5678 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
5680         * Makefile, groff.c: Pass definitions to groff.c via device.h.
5682         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
5683         parameter.
5685         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
5687         * ps/ps.h, ps/psrm.c: Make comment_table and
5688         header_comment_table local to resource_manager::process_file.
5690         * groff.sh: With -TXps pass -printCommand option to gxditview.
5692         * groff.c (possible_command::print): Implement using
5693         append_arg_to_string.
5695         * xditview: Merge in new implementation with own ChangeLog.
5697 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
5699         * groff.c (main): Implement PRINT_OPTION.
5700         (append_arg_to_string): New command.
5701         (device_table): Set PRINT_OPTION flag for Xps.
5703 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
5705         * troff/groff.h: Rename to troff.h.
5707         * pic/lex.c (lookup_keyword, docmp): New functions.
5708         (get_token): Use new lookup_keyword.
5709         Don't include key.h.
5710         * pic/key.[ch], pic/pic.gperf: Deleted.
5711         * pic/Makefile: Remove gperf stuff.
5713         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
5714         into output.h.
5715         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
5717         * troff/Makefile, troff/node.c: Move definition of
5718         STORE_WIDTH into node.c.
5720         * etc/grog.pl, etc/grog.sh: Support -mdoc.
5722 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
5724         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
5725         dvi/devdvi/texb.map: Add lq and rq.
5726         dvi/devdvi: Regenerate fonts.
5727         * ps/devps/textmap: Add lq and rq.
5728         * ps/devps: Regenerate fonts.
5729         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
5730         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
5732         * pic/object.c (position_rectangle): When checking radius
5733         cope with possiblity that width or height is negative.
5734         (box_object::box_object): Have separate xrad and yrad with
5735         signs matching signs of dim components.
5736         (box_object::{north,south}_{east,west}): Use xrad and yrad.
5737         (box_object::print): With rounded boxes use absolute values
5738         for dim and rad arguments.
5740         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
5741         in fontpath.h.
5743         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
5745         * various files: Add explicit destructors to keep Saber CC +d
5746         happy.
5748 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
5750         * eqn/box.c (box::top_level): Restore fonts correctly after
5751         font changes in line containing inline equation.  Also
5752         restore previous font as well as current font.
5753         * eqn/pbox.h: Define necessary string and register names.
5755         * troff/input.c (token::next): Case 'R' calls do_register.
5756         (do_register): New function.
5758 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
5760         * groff.c, groff.sh: Support Xps device.  Allow each device
5761         to have a pseudo_name and a real_name.
5763         * groff.c (run_commands): Don't print `Broken pipe' messages.
5765         * ps/pfbtops.c: New file.
5766         * ps/Makefile: Add pfbtops.
5768         * troff/number.c (parse_term): Improved error message.
5770 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
5772         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
5774         * Makefile: Integrate refer.
5775         * refer: New directory.
5776         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
5777         man/lkbib.man: New files.
5778         * man/Makefile: Support refer man pages.
5780         * lib/lib.h: Declare is_prime.
5781         * lib/prime.c: New file.
5783         * troff/input.c (macro_source): New function.
5784         (init_input_requests): Bind "mso" to macro_source.
5786         * troff/env.c (environment::possibly_break_line): Maintain
5787         pointer to pointer to node to be split in ndp so as to avoid
5788         using address of freed node.
5790         * troff/env.c (environment::hyphenate_line): Maintain pointer to
5791         pointer to first node to be hyphenated in startp so as to
5792         avoid using address of freed node.
5794         * troff/env.c (class trie, class hyphen_trie): Make the
5795         elements of the trie be of type char not unsigned char.
5796         Declare arguments to be const char* instead of unsigned char *.
5797         
5798         * troff/env.c (hyphenate): Initialize hbuf[0].
5800         * troff/input.c (set_string): Declare p to be char * and cast
5801         *p to unsigned char when necessary.
5803         * troff/input.c (do_define_macro): Declare s to be const
5804         char*. Cast element to unisgned char when necessary, Declare
5805         d to be an int.  Handle EOF better.
5807         * troff/Makefile, troff/input.c: Different scheme for passing
5808         definitions of MACROPATH, HYPHENFILE and DEVICE.
5810 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
5812         * tty/devascii/R.proto: Delete entry for em.
5813         * tty/devlatin1/R.proto: Likewise.
5815 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
5817         * troff/input.c (translate): Stop when we get a space. Treat eof
5818         like newline.
5820         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
5822 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
5824         * tbl/main.c (process_format): A font name following a `f'
5825         modifier that starts with a digit can be only one character long.
5826         Also deal with EOF on the second character of the font name.
5828 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
5830         * troff/input.c (token::next): Turn \~ into an
5831         unbreakable_space_node.
5832         * troff/node.c (unbreakable_space_node): New class.
5833         * troff/node.h: Declare it.
5835 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
5837         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
5838         it's >= 0, before outputting it as a single byte.
5840 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
5842         * lib/font.c: Make font_char_metric::code an int.
5843         (font::get_code): Change return type to int.
5844         (font::load): Allow code to be arbitrary integer.
5845         * lib/font.h (font::get_code): Change return type to int.
5846         (font::number_to_index): Change argument type to int.
5847         * troff/input.c (token::next):  In case 'N', allow any value.
5848         Store value in token::val.
5849         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
5850         (token::get_char, token::add_to_node_list, token::process): Get
5851         number from val.
5852         (charinfo::set_number): Change argument to int.
5853         (charinfo::get_number):  Require that NUMBERED flag be set.
5854         (get_charinfo_by_number): Store numbered characters not between 0
5855         and 255 in a dictionary.
5856         * troff/charinfo.h (get_charinfo_by_number): Change argument type
5857         to int.
5858         (charinfo::number): Change type to int.
5859         (charinfo::set_number): Change type of set_number to int.
5860         * troff/node.c (troff_output_file::put_char_width,
5861         troff_output_file::put_char): Test whether character is numbered
5862         using charinfo::numbered().
5863         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
5864         values of num.
5865         * lib/nametoindex.c: New implementation to cope with arbitrary
5866         number characters.
5868         * troff/input.c (token::operator==): Test val for
5869         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
5870         TOKEN_SIZE.
5872         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
5873         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
5875 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
5877         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
5878         variable.
5880         * all Makefiles: rm targets of cp and >.
5882         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
5883         it.
5885         * eqn/lex.c (def_table): Add dollar.
5887 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
5889         * troff/input.c (do_width): Push back newline before closing delim
5890         like do_bracket.
5892 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
5894         * groff.c (possible_command::prepend_arg): New function.
5895         (main): Prepend device -m option.
5896         * groff.sh: Put device -m options before command-line options.
5898 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
5900         * macros/tmac.an (IP): Quote argument to TP.
5902         * ps/ps.c (main): New option -b, which sets...
5903         (broken_flags): New variable.
5904         (ps_printer::~ps_printer): Incorporate the setup section in the
5905         prolog if (broken_flags & NO_SETUP_SECTION).
5906         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
5907         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
5908         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
5909         ps_printer::print_needed_font_comment,
5910         ps_printer::print_supplied_font_comment,
5911         ps_printer::print_include_font_comments,
5912         ps_printer::lookup_doc_font, ps_printer::download_fonts,
5913         ps_printer::read_download_file, read_document_fonts, add_font,
5914         skip_line, parse_fonts_arg, document_font::document_font,
5915         document_font::~document_font, document_font::download,
5916         ps_output::include_file):  Deleted.
5917         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
5918         rather than %!PS-Adobe-2.0.  Make calls to
5919         resource_manager::need_font for each font that we used. Replace
5920         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
5921         print_supplied_font_comment, print_needed_font_comment by call to
5922         resource_manager::print_header_comments. Output %%Orientation
5923         comment. Output %%Requirements: numcopies comment if ncopies > 1.
5924         Don't output the prolog directly.  Instead call
5925         resource_manager::output_prolog.  Only define #copies when ncopies
5926         > 1.  Delete calls to print_include_font_comments  and
5927         download_fonts.  Add call to resource_manager::document_setup.
5928         (ps_printer::do_file): Call resource_manager::import_file instead
5929         of including it ourselves.
5930         (ps_printer::do_import): Likewise.  Also don't call
5931         merge_import_fonts. Push userdict on the dictionary stack before
5932         and pop it afterwards.
5933         Move declaration of ps_output into ps.h.
5934         * ps/psrm.c: New file implementing resource_manager class.
5935         * ps/ps.h: New file declaring ps_output and resource_manager
5936         classes.
5937         * ps/devps/zapfdr.ps:
5938         * ps/devps/symbolsl.ps:
5939         * ps/devps/prologue:  Use 3.0 conventions.
5940         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
5941         Add default definition of BROKEN_SPOOLER_FLAGS.
5942         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
5943         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
5945 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
5947         * etc/grog.pl: New file.
5948         * Makefile (GROG): New variable.
5949         Add GROG to SUBFLAGS.
5950         * etc/Makefile (GROG): New variable.
5951         (install.nobin): Install $(GROG) rather than grog.sh.
5953 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
5955         * eqn/special.c (special_box::compute_metrics): Make the input and
5956         output strings the same.  Get the new height and depth from the
5957         predefined height and depth registers.  Also make subscript kern
5958         and skew available.
5959         (special_box::compute_subscript_kern, special_box::compute_skew):
5960         New functions.
5962         * eqn/box.c (pointer_box::compute_skew,
5963         simple_box::compute_metrics, box::top_level)
5964         * eqn/text.c (prime_box::compute_metrics,
5965         prime_box::comput_subscript_kern)
5966         * eqn/limit.c (limit_box::compute_metrics):
5967         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
5968         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
5969         negative numbers in `nr' requests with a leading 0.
5971 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
5973         * eqn/special.c: New file.
5974         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
5975         Add new rule for simple.
5976         * eqn/lex.c (token_table): Add SPECIAL.
5977         * eqn/box.h: Declare make_special_box.
5978         * eqn/Makefile: Add special.[co].
5980 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
5982         * ps/devps/prologue: Possibly set packing to true while defining.
5983         Create grops dictionary here.  Initialize local variables before
5984         defining procedures.
5985         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
5986         the dictionary stack. Set strokeadjust and overprint to false if
5987         the relevant operators are defined.
5988         (PEND): New procedure.
5989         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
5990         prologue.  Do everything else in the setup section.
5991         (ps_printer::do_import): Just call PBEGIN and PEND around the
5992         picture. Also push userdict before, and pop it afterwards.
5994 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
5996         * troff/node.c (bracket_node::tprint): Brackets were being printed
5997         1m too low.
5999         * macros/tmac.an (SH, SS): Set fill mode.
6001 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
6003         * troff/div.c (top_level_diversion::begin_page): Set
6004         high_water_mark to 0.
6006 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
6008         * man/mdate.sh: New file.
6009         * man/mdate.c: Deleted.
6010         * man/Makefile: Use mdate.sh instead of mdate.
6011         (mdate): Deleted.
6013         * eqn/lex.c (do_gsize): Supply missing argument to error message.
6015 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
6017         * man/mdate.c: New file.
6018         * man/*.man: Replace modification date by @MDATE@.
6019         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
6020         (mdate): New target.
6022         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
6023         Remove illegal input characters.
6025 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
6027         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
6029 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
6031         * troff/div.c (begin_page): Change behaviour when
6032         !first_page_begun and !break_flag.
6034         * troff/input.c (do_name_test): Return 0 if argument is empty.
6036         * troff/input.c (read_long_escape_name): Require closing ] to be
6037         at same input level as opening [.
6039         * troff/input.c (read_increment_and_escape_name): New function.
6040         (get_copy, process_input_stack): Use this for \n.
6042 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
6044         * troff/div.c (top_level_diversion::begin_page): Ignore the
6045         current value of page_number if !first_page_begun.
6047         * groff.c (main): Fix declaration of buf.
6049         * troff/input.c (do_name_test): New function.
6050         (token::next): Implement \A.
6051         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
6052         (token::description, token::add_to_node_list, token::process):
6053         Handle TOKEN_ESCAPE.
6054         * troff/token.h: New token TOKEN_ESCAPE.
6056 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
6058         * pic/main.c (do_picture): Allow space before and after filename
6059         following `<'.  Check that the filename is not empty.
6061 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
6063         * Version 1.01 released. 
6065         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
6067         * dvi/tmac.dvi: ftr HR to H.
6069         * macros/tmac.e: Round up computation of $r.
6071         * xditview/tmac.X:  Don't give up completely in compatibility mode.
6072         Use \n(.s instead of \n[.s].
6074         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
6075         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
6076         Add u to factors inside \s[...]. Rename frac to dvi-frac.
6077         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
6078         short names in the char definitions.
6080         * ps/tmac.ps: Don't give up completely in compatibility mode.
6081         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
6082         quote in front of \n(.s. Add u to factors inside \s[...].
6084 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
6086         * tty/tmac.tty: Call the nroff request.
6088         * macros/tmac.e ((x, )x):  Better definitions that work properly
6089         in a diversion.
6090         (@0, @1): Helper macros for (x.
6092         * macros/tmac.e ($s, hl): Use \l rather than \D.
6094         * tty/tmac.tty: Make it work better in compatibility mode.
6095         (pchar): Rename to tty-char.
6097         * macros/tmac.e (@E): New macro.
6098         (r, i, b, rb, bi): Use @E.
6100         * macros/tmac.e (@F): Don't use (;...) syntax.
6102         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
6103         it was modified for groff.
6105         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
6107         * macros/tmac.e (<., .>): Removed.
6108         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
6110         * macros/tmac.e: Remove check that groff is being used.
6112         * macros/tmac.e (@C): Change families only if using groff; turn
6113         compatibility mode off while changing familes. Save compatibility
6114         mode before changing families and restore it afterwards.
6116         * macros/tmac.e (@h): Remove test for offset + line length.
6118         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
6119         (lo, th, ac): Define to call @S instead of using als.
6121         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
6122         the ratio of the vertical spacing to the point size in units
6123         expressed as a percentage.  Use these instead of $10r and $10R,
6124         Delete $10r and $10R.
6126         * lib/font.c (font::load): In default computation of space_width,
6127         divide by sizescale.  Use scale_round.
6129         * macros/tmac.an (TP): Don't call `nf'.
6130         (an-do-tag): Don't call `fi'.
6132 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
6134         * troff/input.c (process_input_stack): Handle the case where
6135         spaces at the beginning of an input line are followed by a
6136         newline.
6138 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
6140         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
6141         * groff.sh: Use pic -x with the dvi device.
6143         * dvi/devdvi/FontMakefile (H): Don't use -s.
6145         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
6146         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
6147         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
6148         in FONTS.
6150 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
6152         * ps/psfig.diff: New file.
6153         * ps/tmac.psfig: New file.
6155 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
6157         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
6158         (]-): Don't call ref*do-tl.
6160         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
6162         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
6163         (fn@do-FS): Rename to fn*do-FS.
6165         * troff/input.c (transparent_translate): New function.
6166         (process_input_stack): Apply transparent_translate before calling
6167         diversion::transparent_output(unsigned char).
6169 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
6171         * troff/input.c (do_define_macro): Define the macro before calling
6172         skip_line.
6174         * xditview/Makefile: Add DEVICES variable.  Change install target
6175         to use this.
6177 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
6179         * groff.c (run_commands): Handle the possibility that there are
6180         child processes other than those forked by us.
6182 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
6184         * lib/string.c (string::append): New function.
6185         * lib/stringclass.h: Declare it.
6187 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
6189         * eqn/main.c (main): New option -N which sets
6190         no_newline_in_delim_flag. 
6191         (do_file): If no_newline_in_delim_flag is set don't allow newlines
6192         in delimiters.
6193         * groff.c (main): Pass -N on to eqn.
6194         (help, synopsis): Mention -N.
6195         * groff.sh: Implement -N.
6197 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
6199         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
6200         (]-): Call ref*do-tl if ref*need-tl is non-zero.
6201         (XP): Allow as initializer.
6203 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
6205         * troff/env.c (environment::wrap_up_field): If field_spaces are
6206         non-zero and we have a current_tab, subtract padding from
6207         tab_distance.  If this makes tab_distance <= 0, use the next tab
6208         stop instead.  If there isn't any next tab or it's a left tab,
6209         wrap up the current tab.
6210         (environment::start_field): Initialize tab_precedes_field.
6211         (environment::wrap_up_tab): If there's a current field, update
6212         pre_field_width, field_distance and tab_precedes_field.
6213         * troff/env.h (environment::tab_precedes_field): New member.
6215 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
6217         * ps/ps.c (ps_printer::do_file): New function.
6218         (ps_printer::special): Bind to `file' special.
6219         (ps_printer::do_exec): Set ndefined_styles to 0.
6221 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
6223         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
6224         Avoid stripping first character from the start of unrecognized
6225         escapes.  Use lex_error instead of error to report errors.
6226         * eqn/lex.c (get_token): Rework handling of escapes.
6227         (lex_error): Move declaration into...
6228         * eqn/eqn.h.
6230         * xditview/xditview.c (main): Make -page option work.
6232         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
6234 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
6236         * macros/tmac.s (B2): Correct size of box.
6238 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
6240         * macros/tmac.s (B2): Postpone drawing the box until in the
6241         top-level diversion.
6243         * tty/tmac.tty: Add font translations for C, CR, CW.
6245         * groff.c (synopsis, help): Document -i.
6246         * groff.sh: Implement -i.
6248         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
6249         Simplify the construction of SN.
6251         * troff/number.c (parse_term): Give `|' a higher precedence.
6252         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
6253         accordingly.
6255         * macros/tmac.s (B2): Use par@finish instead of par@reset.
6257 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
6259         * lib/string.c (string::move): New function.
6260         * lib/stringclass.h: Declare it.
6262 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
6264         * troff/env.c (distribute_space): Add optional argument
6265         `force_forward'.
6266         (environment::wrap_up_field): Call distribute_space with
6267         `force_forward' argument of 1.
6269 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
6271         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
6272         Inline it.  Move reallocation into...
6273         (string::grow1): New function.
6274         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
6275         dependencies to include library header files.
6276         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
6278 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
6280         * macros/tmac.s (@NH): Use the same number registers than -ms does
6281         for the heading level counters.  Use the same string that -ms does
6282         for the number for this heading.
6284 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
6286         * lib/new.c (operator new): Cast result of malloc to char *.
6288         * troff/input.c (spring_trap, lookup_request): Add assert that nm
6289         is not null.
6291 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
6293         * groff.c (main): Support -i.
6295 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
6297         * pic/pic.h: Include <osfcn.h>.
6299         * ps/ps.c: Add declaration of mktemp.
6301         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
6302         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
6303         argument as union wait *.
6304         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
6305         argument to union wait *.
6307 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
6309         * tty/tmac.tty: Add definition of \(co.
6311         * pic/object.c (make_arc): Only increase radius when radius
6312         strictly less than d.
6313         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
6314         more than once.
6316         * troff/env.c (environment::environment(symbol),
6317         environment::environment(const environment *)):  Initialize
6318         input_trap_count.
6320 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
6322         * tbl/main.c (main): Add exit(0).
6324         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
6326         * pic/main.c (main):
6327         * eqn/main.c (main):
6328         * tbl/main.c (main):
6329         * etc/soelim.c (main):
6330         * driver/printer.c (printer::~printer):
6331         * troff/node.c (real_output_file::~real_output_file,
6332         real_output_file::flush):  Check for errors on stdout.
6334         * most files: Add 1991 to copyright notice.
6336         * macros/tmac.s: Don't test \n(.x and \n(.y.
6338         * troff/input.c (token::next): Rename `escape_char' label to
6339         `handle_escape_char' and `normal_char' label to
6340         `handle_normal_char'.
6342 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
6344         * groff.c (main, synopsis, help): Support -a option.
6345         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
6346         to trflags while parsing options.
6348 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
6350         * troff/number.c (parse_term): With `m', `M' and `n' scale
6351         indicators, convert scale factor to hunits before scaling.
6353 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
6355         * lib/font.c (scale_round): Better test for overflow when n is
6356         negative.
6358 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
6360         * tbl/main.c (process_format): Add second argument of type
6361         options*. Change callers.  Allow opt->tab_char as well as '\t'
6362         between format items.
6364 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
6366         * macros/tmac.an (PD): With no arguments, make sure register PD is
6367         at least \n[.V].
6368         (TH): Call PD with no argument, instead of setting register PD
6369         directly.
6371 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
6373         * Version 1.00 released.
6375 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
6377         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
6379         * dvi/devdvi/DESC: Mount CW instead of CR.
6381         * dvi/tmac.dvi: Add definition of \(tm.
6383         * dvi/devdvi/texsy.map: Add lh, and rh.
6384         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
6385         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
6387         * dvi/devdvi/FontMakefile: Generate H from cmss10.
6388         * dvi/devdvi/Makefile: Install H.
6389         * dvi/devdvi/H: New file.
6391 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
6393         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
6394         be 0.
6396 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
6398         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
6400         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
6402         * macros/tmac.s (@EN): Handle the case where the equation is empty
6403         but the label is not.
6405 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
6407         * troff/groff.h: New warning category WARN_SPACE.
6408         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
6409         WARN_SPACE to warning_table.
6410         (interpolate_macro): Give a warning of type WARN_SPACE if the name
6411         is longer than two characters and is not defined, but the first
6412         two characters do make a defined name.
6414         * PROBLEMS: New file.
6416         * CHANGES: New file.
6417         * README-0.6, README-1.00: Deleted.
6419         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
6420         * xditview/devX75/Makefile: Make devX75-12.
6421         * xditview/devX100/Makefile: Make devX100-12.
6423         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
6424         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
6426 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
6428         * README-0.7: Rename to README-1.00.
6430         * macros/tmac.pic: New file.
6431         * macros/Makefile (install.nobin): Install tmac.pic.
6433 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
6435         * troff/env.c (hyphen_word): Correct the test for whether the
6436         token is a hyphen.  Reset npos to 0.
6438         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
6440 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
6442         * macros/tmac.s (ds*common-end): Call par*reset.
6443         (PE): Likewise.
6444         (par@reset-indent): Deleted.
6446         * macros/tmac.s (@IP): Divert the label.
6448 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
6450         * xditview/draw.c (setGC): Use a line width of .1m rather than
6451         .04m by default; round rather than truncate value.
6453         * tbl/table.c (class empty_entry): New class.
6454         (empty_entry::empty_entry, empty_entry::line_type): New functions.
6455         (table::add_entry): Represent empty entries by objects of type
6456         empty_entry.
6457         (table_entry::line_type): Return -1.
6458         (table::determine_row_type): Ignore entries with line_type 0.
6459         Treat type -1 as non-lines.
6461 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
6463         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
6464         macros/tmac.s: Rename \(-d to \(Sd.
6466 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
6468         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
6469         * xditview/libXdvi/DviChar.c: Likewise.
6470         * dvi/devdvi/texsy.map: Add `<<', `>>'.
6472 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
6474         * troff/div.c (top_level_diversion::begin_page): Call
6475         init_output() if the_output is 0.
6477 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
6479         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
6480         ESCAPE_c.
6481         (get_copy): Turn \E into ESCAPE_E.
6482         (token::process, asciify): Handle ESCAPE_E.
6484         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
6485         (RD): New macro.
6486         (DS): Implement `.DS R'.
6488 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
6490         * macros/tmac.s (FS): New macro.
6492         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
6494         * macros/tmac.s (cov*tl-init): Remove after first execution
6495         instead of aliasing to @nop.  Call top of page macro explicitly
6496         instead of setting trap; call @init first.  Set pg@top as top of
6497         page macro.
6498         (cov*auto-init): Deleted.  Set cov*tl-init instead of
6499         cov*auto-init as top of page trap. 
6500         (TL, LP): Do a break instead of calling cov*tl-init.
6501         (cov*print): With RP format but no TL, alias FS and FE to @FS and
6502         @FE; in this case also give a warning and always start another
6503         page. No need to set pg@top here.
6504         (cov*tl-init): Rename to cov*first-page-init.
6506         * macros/tmac.s (RP): Do `.pn 0'.
6507         (cov*tl-init): With RP format don't do `.pn 0'.
6509         * macros/tmac.s (pg@cs-top): Set no space mode.
6511         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
6512         (cov*ab-init): Alias TL, AU and AI to these.
6514 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
6516         * macros/tmac.s (@EQ): Move the space before the equation into @EN
6517         (@EN): Do nothing unless \n[dl] is > 0.
6519 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
6521         * pic/object.c (ellipse_object::radius): New function.
6523         * VERSION: Change version to 0.7.
6525         * tbl/table.c (block_entry::do_divert): Declare return type as
6526         void.
6527         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
6529 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
6531         * troff/column.c: New file.
6532         * troff/Makefile: Corresponding changes.
6534         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
6535         Friend of vunits.
6537         * troff/div.c (top_level_diversion::space): If the space causes
6538         the first-page transition and springs a trap, truncate the space
6539         to 0.
6541 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
6543         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
6544         the document.
6546         * pic/troff.c (troff_output::line_thickness,
6547         troff_output::set_fill): Do a horizontal motion to compensate for
6548         the width of the \D escape sequence.
6550 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
6552         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
6553         (not X75).
6555         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
6556         to printf.
6558         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
6559         Supply empty definition.
6560         (text_entry::simple_print, simple_text_entry::simple_print):
6561         Delete declarations.
6562         (table::add_entry): Represent empty entries by objects of type
6563         `simple_entry'.
6565 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
6567         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
6569         * tbl/table.c (left_text_entry::add_tab): New function.
6571         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
6572         initialize like LP.
6574 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
6576         * troff/env.c (environment::start_field): Give an error message if
6577         there is no next tab.
6579 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
6581         * troff/env.c (hyphenate): Skip initial elements with zero
6582         hyphenation code.
6584         * macros/tmac.s (par@init): Keep VS in points rather than units.
6586 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
6588         * pic/main.c (main): Implement `-c' option.
6589         * pic/output.h: Declare make_tpic_output().
6590         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
6591         protected.
6592         (tpic_output): New class.
6593         (tpic_output::tpic_output, tpic_output::set_pen_size,
6594         tpic_output::command, make_tpic_output): New functions.
6596 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
6598         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
6599         if they're not already defined.
6600         * tbl/table.c (init_output): Don't test \n(.g.
6602         * troff/input.c (do_if_request): Delete `g' condition. Recognize
6603         `d', `r' and `c' conditions even in compatibility mode.
6605 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
6607         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
6608         box.
6610 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
6612         * troff/env.h (environment::prev_line_interrupted): New member.
6613         (environment::get_prev_line_interrupted): New function.
6614         * troff/env.c (environment::newline): Set prev_line_interrupted.
6615         (environment::environment(const environment *),
6616         environment::environment(symbol)): Initialize
6617         prev_line_interrupted.
6618         * troff/input.c (process_input_stack): Don't give special
6619         treatment to space and newline at the beginning of the line if the
6620         previous line was interrupted.
6622 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
6624         * eqn/eqn.y: Disallow PRIME by itself.
6625         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
6626         PRIME.
6627         (def_table): Remove definition of '.  Define prime to be `.
6629         * eqn/eqn.y: Split off part of rule `script' into a new rule
6630         `nonsup'.
6632 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
6634         * macros/tmac.s ({, }): New string aliases.
6636 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
6638         * README-0.7: New file.
6640 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
6642         * macros/tmac.s: New file.
6643         * man/groff_ms.man: New file.
6644         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
6645         * Makefile.bd: Similarily.
6646         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
6647         definition of TMAC_S.
6648         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
6649         * macros/TODO: New file.
6651 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
6653         * troff/env.c (right_justify): New function.
6654         (init_env_requests): Bind this to request "rj".
6655         (center_lines): Set right_justify_lines to 0. If we get a bad
6656         integer, center 1 line.
6657         (environment::environment(symbol), environment::environment(const
6658         environment *)): Initialize right_justify_lines.
6659         (environment::get_right_justify_lines): New function.
6660         (init_env_requests): Bind this to number_register ".rj".
6662         * troff/env.c (environment::choose_breakpoint): Implement
6663         hyphenation_margin and hyphenation_space.
6664         (environment::get_hyphenation_space,
6665         environment::get_hyphenation_margin): New functions.
6666         (init_env_requests): Bind these to .hys and .hym.
6667         (hyphenation_space_request, hyphenation_margin_request): New
6668         functions
6669         (init_env_requests): Bind these to hys and hym.
6670         (environment::environment(symbol), environment::environment(const
6671         environment *)): Initialize hyphenation_margin and
6672         hyphenation_space.
6673         * troff/env.h: Corresponding changes to class environment.
6675 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
6677         * troff/div.c (blank_line): Always do a break.
6679         * eqn/box.c (do_text): Turn off escapes while appending text to
6680         string.
6682 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
6684         * troff/input.c (while_break_request, while_continue_request): New
6685         functions.
6686         (init_input_requests): Bind these to "break" and "continue".
6687         (while_depth, while_break_flag): New variables.
6688         (while_request): Update while_depth.  Break out of loop if
6689         while_break_flag is set.
6691 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
6693         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
6694         rather than 0.
6696 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
6698         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
6700         * stringify: New file.
6701         * Makefile (groff.o): Use stringify.
6703         * xditview/tmac.X: Remove definition of \(rn.
6704         * xditview/libXdvi/DviChar.c: Remove radicalex from
6705         Adobe_symbol_map.
6707 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
6709         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
6710         (alphabetic_block_entry::alphabetic_block_entry,
6711         alphabetic_block_entry::divert, alphabetic_block_entry::print):
6712         New functions.
6713         (block_entry::divert): Split off body into ...
6714         (block_entry::do_divert): If the block is alphabetic, subtract 2n
6715         from the line length; also update the span width to dl+2n, and the
6716         alphabetic span width to dl.
6718         * driver/input.c (do_file):  While reading argument to D command,
6719         when expanding buffer, multiply szp by sizeof(int) rather than 2
6720         in the argument to memcpy.
6722         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
6723         width of alphabetic columns.
6725 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
6727         * troff/node.c (lookup_family): Supply second argument to lookup.
6729         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
6730         search, return immediately if v is 0.
6732         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
6733         (troff_output::start_picture): Set this reg.
6734         (troff_output::end_picture): Remove this reg
6735         * eqn/box.c (box::extra_space): Don't produce `\x's if
6736         EQN_NO_EXTRA_SPACE_REG is defined.
6738         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
6739         * eqn/text.c (split_text): Map ' to \(fm when it's the first
6740         character.
6742 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
6744         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
6745         requests.
6747         * troff/div.c (top_level_diversion::top_level_diversion):
6748         Initialize page_number to 0.
6750 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
6752         * groff/troff (environment::environment(const environment *)):
6753         Initialize name to e->name, rather than "anonymous".
6755 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
6757         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
6758         requested_page.  Split middle part into ...
6759         (FindPage): New function.
6760         (SetValues): If we don't yet know the last page, and the requested
6761         page is greater than the current page, call FindPage.
6762         Update the font_map_string before doing this.
6764         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
6765         Translate \(lh and \(rh into left and right double arrows.
6767         * troff/node.c (class hyphen_inhibitor_node): New class.
6768         (hyphen_inhibitor_node::hyphen_inhibitor_node,
6769         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
6770         hyphen_inhibitor_node::type,
6771         hyphen_inhibitor_node::get_hyphenation_type): New functions.
6772         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
6773         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
6774         word.
6776 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
6778         * troff/node.h (dummy_node::get_hyphenation_type,
6779         transparent_dummy_node::get_hyphenation_type):  Declare them.
6780         * troff/node.c: (dummy_node::get_hyphenation_type,
6781         transparent_dummy_node::get_hyphenation_type): New functions.
6783 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
6785         * xditview/libXdvi/draw.c: If M_PI not defined after including
6786         math.h, then define it.
6788         * xditview/Makefile: Add definition of AR. Pass it to the submake
6789         in libXdvi.
6790         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
6792 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
6794         * troff/dictionary.h (object_dictionary::alias): Declare return
6795         value as int.
6796         * troff/dictionary.c (object_dictionary::alias): Return non-zero
6797         if the old name was defined.
6798         * troff/input.c (alias_macro): Give a warning if the old name was
6799         not defined.
6800         * troff/reg.c (alias_reg): Likewise.
6802 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
6804         * troff/input.c (token::next): Delete implementation of \R.
6806         * macros/Makefile: Strip comments from tmac.e while installing it.
6808         * troff/input.c: New variable `nroff_mode'.
6809         (troff_request, nroff_request): New functions.
6810         (init_input_requests): Bind `troff' and `nroff' to troff_request
6811         and nroff_request.
6812         (do_if_request): Compute results of t and n conditions from
6813         nroff_mode.
6815         * text/text.c (split_text): Fix typo in >=.
6817         * eqn/lex.c: Add definition of `==' to def_table.
6819 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
6821         * pic/tex.c (tex_output::start_picture): Change the definitions of
6822         \graph and \graphtemp so that they work properly with Plain TeX.
6824         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
6825         argument to `ar' is not less than the first.
6827         * pic/pic.y: Allow a comma between elements of the variable list
6828         in the argument to `reset'.
6830         * pic/object.c (arc_object::arc_object): Fix computation of
6831         radius.
6833         * eqn/main.c (main): Add exit(0).
6835 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
6837         * troff/div.c (begin_page): Test no_space_mode after doing the
6838         break, but still push the page ejector cookie before doing the
6839         break.  Also set the next page number after doing the break.
6840         
6841         * xditview/xditview.c (NewFile): Don't set the title and icon name
6842         if this is the first file and its name is `-'.
6843         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
6844         the X75 and X100 devices.
6845         (main): If a device has the XT_OPTION flag set and there's exactly
6846         one file argument, pass the driver -xrm and -title options to set
6847         the icon name and window title to the name of the file.
6849         * troff/env.c (environment_switch): If there was an argument but
6850         it wasn't a valid number or name, then pop an environment but
6851         don't give an error message on underflow.
6853         * troff/number.c (start_number): Correct spelling in error message.
6855         * troff/input.c (token::delimiter): Don't print an error message
6856         if err is false.
6858         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
6859         ParseDrawFunction if dw->display_enable is true.
6861 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
6863         * pic/pic.y: Parse text positioning like normal attributes, so as
6864         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
6865         positioning attribute.
6867 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
6869         * tbl/main.c (process_data): When in state START while reading a
6870         text block, don't change to state MIDDLE if c is a newline.
6872 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
6874         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
6875         so as to avoid shadowing parameter.
6877 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
6879         * tbl/table.c (trim_space): Deleted.
6880         (table::add_entry): Don't call trim_space.
6882 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
6884         * VERSION: Change version to 0.6.
6886         * troff/number.c (parse_expr): Make == work.
6888 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
6890         * man/grog.man: New file.
6891         * man/Makefile: Add grog.n to MAN1PAGES.
6892         * etc/grog.sh: New file.
6893         * etc/Makefile: Install grog.sh as grog.
6895 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
6897         * troff/input.c (token::next): Implement \E.
6899 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
6901         * xditview/tmac.X: Change font translations to match tmac.ps.
6903         * troff/input.c (non_empty_name_warning): Don't give a warning if
6904         `\{' terminates the name.
6906 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
6908         * ps/devps/symbol.diff: New file.
6909         * ps/devps/FontMakefile: Mention symbol.diff.
6911 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
6913         * troff/node.c (font_position): Use get_long_name to read the
6914         external_name.
6916         * troff/env.c (environment_switch): If we get a number that's < 0
6917         or >= NENVIRONMENTS, treat it like a name.
6918         Change NENVIRONMENTS to 10.
6920         * troff/groff.h: Remove definition of FONTS_MAX.
6921         * troff/node.h (class font_family): Make map a pointer instead of
6922         an array. Add a map_size member. Make it a class. Make nm const
6923         and public. Make invalidate_fontno a friend.
6924         * troff/node.c: Define font_table_size. Make font_info a pointer
6925         rather than an array.
6926         (class troff_output_file): Allocate font_position dynamically. Add
6927         nfont_positions member.
6928         (troff_output_file::set_font): Grow font_position if necessary.
6929         (troff_output_file::~troff_output_file): Delete font_position.
6930         (troff_output_file::troff_output_file): Allocate font_position.
6931         (grow_font_table): New function.
6932         (troff_output_file::really_begin_page,
6933         troff_output_file:really_copy_page): Use nfont_positions rather
6934         than FONTS_MAX.
6935         (mount_font_no_translate, mount_style): Call grow_font_table if
6936         necessary.
6937         (font_family::font_family): Allocate map.
6938         (font_family::make_definite): Grow map if necessary. Use
6939         font_table_size instead of FONTS_MAX.
6940         (font_family::~font_family): New function.
6941         (invalidate_fontno): Use font_family::map_size.
6942         (get_fontno, env_space_width, env_half_narrow_space_width,
6943         env_narrow_space_width, symbol_fotno, is_good_fontno,
6944         get_bold_fontno, make_glyph_node): Use font_table_size rather than
6945         FONTS_MAX.
6946         (next_available_font_position): Never return 0.
6948 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
6950         * ps/tmac.ps: Add font translations for compatibility with dpost.
6952 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
6954         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
6955         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
6956         Move definitions baseline_sep, shift_down, column_sep,
6957         matrix_side_sep into...
6958         * eqn/box.c: Add them to param_table.
6959         * eqn/pbox.h: Add declarations to pbox.h.
6961         * troff/input.c (set_string): Cast value to unsigned char *.
6963         * troff/token.h (process_input_stack): Declare it static before
6964         declaring it a friend.
6966 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
6968         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
6969         and bottom.
6970         * dvi/devdvi/EX: Regenerate.
6972         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
6973         transparent.
6975 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
6977         * eqn/lex.c: In defaults_table, make definition of `dot' call
6978         `dot_def'.  Don't explicitly make it roman.  Similarily for other
6979         accents.
6981         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
6982         argument.
6983         (for_input::get, for_input::peek): Use this.
6984         (do_for): Add by_is_multiplicative argument.
6985         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
6986         Change semantic value of optional_by to be a double plus a flag
6987         saying whethet the by clause is multiplicative.
6989         * eqn/lex.c (get_delimited_text): Remember location of start of
6990         definition.  Improve error handling when EOF is encountered.
6992         * lib/font.h: Rename handle_x_command to
6993         handle_unknown_font_command.
6994         * lib/font.c (font::load): Call handle_unknown_font_command for
6995         any unknown command in the font description file.  Don't call
6996         handle_x_command. Include the name of the command in the argv.
6997         Improve message for unknown command after kernpairs or charset
6998         command.
6999         * ps/ps.c (ps_font::handle_x_command): Rename to
7000         handle_unknown_font_command.  Remove message about `x download'
7001         command.  Give error message for wrong number of arguments.
7002         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
7003         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
7004         handle_unknown_font_command. Give an error message for wrong
7005         number of arguments.  Rename design_size to designsize.
7006         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
7007         checksum', `designsize' instead of `design_size'.
7009 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
7011         * eqn/*.[chy]: Change underaccent to uaccent.
7013         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
7014         give it the same precedence as ACCENT.
7015         * eqn/other.c (make_underaccent_box): New function.
7016         * eqn/box.h: Declare it.
7017         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
7018         def_table.
7020 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
7022         * pic/pic.y (reset_all): New function. Called in rule for RESET.
7023         (parse_init): Call reset_all.
7024         (define_variable): When defining scale reset only those
7025         pre-defined variables that are scaled.
7026         (defaults_table): Add `scale' as non-scaled value.
7028         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
7029         together with the text; allow any number of positioning words;
7030         allow center as a positioning word.
7032         * pic/object.c (output::compute_scale): Get picture maximum height
7033         and width from variables called maxpswid and maxpsht.
7034         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
7036 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
7038         * pic/object.c (object_spec::make_text): Multiply textht by number
7039         of text items.
7041         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
7042         occur.
7043         (do_sprintf): New function.
7044         (pic.gperf): Add sprintf token.
7045         (text, sprintf): New rules.
7047         * pic/pic.y: `rand()' with no arguments returns a random number
7048         in the range [0,1).
7050         * pic/pic.y: Allow a bare expression to be an attribute: change
7051         precedences to support this.  Change optional_ordinal rule to
7052         optional_ordinal_last to avoid reduce/reduce conflict.
7053         * pic/object.c (object_spec::object_spec): Initialize direction.
7055         * pic/pic.y: Implement ^ operator meaning exponentiation.
7057         * troff/node.h: Add default argument to mount_font.
7058         * troff/node.c (font_position): Read an optional third argument
7059         giving the external_name.
7060         (mount_font): Add optional argument giving the external_name.
7061         (mount_font_not_translate): Have additional argument giving
7062         external name.  Use this name to load the font.  Pass both names
7063         to font_info::font_info.
7064         (font_info::font_info): Have additional argument giving
7065         external_name.
7066         (class tfont): New member external_name.
7067         (font_info::get_tfont): Use external name to construct tfont_spec.
7069 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
7071         * eqn/lex.c (init_table): Add argument giving device.  Define
7072         name of device to be "1".
7073         (do_ifdef): Counts as true if the argument has been defined with
7074         `define'.
7075         * eqn/main.c (main): Call init_table with device argument. Make
7076         device local to main.
7077         * eqn/eqn.h: Change declaration of init_table. Remove declaration
7078         of device.
7080         * pic/lex.c (get_delimited): Allow text to be delimited by
7081         matching {}s.  Don't recognize ending delimiter within a string.
7083         * troff/input.c (get_delim_name): New function.
7084         (token::next): Implement \C.
7086         * lib/font.c (font::load): Grok ---.  Add an alias for each
7087         character based on its code.
7088         (font::get_code_width): Deleted.
7089         * lib/font.h (class font): Declare font::number_to_index().
7090         Remove declaration of font::get_code_width.
7091         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
7092         to indices of named characters.
7093         (font::number_to_index): New function.
7094         * troff/input.c (font::number_to_index): New function.
7095         (get_charinfo_by_number, charinfo::get_number,
7096         charinfo::set_number): New functions.
7097         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
7098         (token::process, token::description, token::get_char,
7099         token::add_to_node_list, token::operator==): Handle
7100         TOKEN_NUMBERED_CHAR.
7101         * troff/charinfo.h: Declare get_charinfo_by_number,
7102         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
7103         charinfo class.
7104         (charinfo::numbered): New function.
7105         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
7106         * troff/env.h (class environment): Remove declaration of ...
7107         * troff/env.c (environment::make_numbered_char_node): Deleted.
7108         * troff/node.c (make_numbered_node): Deleted.
7109         (class numbered_glyph_node): Remove.
7110         (troff_output_file::put_char_width, troff_output_file::put_char):
7111         Handle numbered chars.
7112         (troff_output_file::numbered_char): Removed.
7113         (tfont::get_code_width): Removed.
7114         (make_glyph_node): Don't search special fonts for numbered
7115         characters.
7116         * troff/node.h: Remove declaration of make_numbered_node.
7117         * driver/input.c (do_file): Handle N command.
7118         * driver/printer.h: Add declaration of ...
7119         * driver/printer.c (printer::set_numbered_char): New function.
7120         * dvi/tfmtodit.c (main): Generate unnamed entries.
7121         * ps/devps/afmtodit: Likewise.
7122         * xditview/xtotroff.c (MapFont): Likewise.
7123         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
7125         * tbl/main.c (process_format): If multiple widths are specified
7126         for a column but all the widths are the same, don't give an error
7127         message.
7129         * tbl/table.c (table::do_row): If the current row is all lines and
7130         the stuff doesn't contains a line, mark the top of the row after
7131         printing stuff before the row.  If the current row is not all
7132         lines and the stuff doesn't contain a line, don't unnecessarily
7133         mark the top of the row before printing the stuff.
7134         
7135 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
7137         * troff/groff.h: Remove MAX_PATH.
7138         * troff/input.c (open_file): Dynamically allocate space for the
7139         path.
7140         (open_mac_file, process_macro_file): Corresponding changes.
7142 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
7144         * troff/node.h (class output_file): Make copy_file pure.  Add
7145         vspace method ifdef COLUMN. Add is_printing method.
7146         * troff/node.c: Add class printing_reg. Add class
7147         real_output_file. Derive other output_file classes from
7148         real_output_file; in these classes rename begin_page to
7149         really_begin_page, print_line to really_print_line, copy_file to
7150         really_copy_file, transparent_char to really_transparent_char.
7151         Move output_file::flush to real_output_file. Add printing member
7152         to class output_file.
7153         * troff/div.h: Remove printing member from top_level_diversion.
7154         Add vspace member function to class diversion ifdef COLUMN. Add
7155         some declarations ifdef COLUMN.
7156         * troff/div.c (top_level_diversion::copy_file,
7157         top_level_diversion::transparent_output,
7158         top_level_diversion::output): Don't test printing member before
7159         output.
7160         * troff/input.c: Handle initial variable_space_request ifdef
7161         COLUMN.
7162         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
7163         but comment it out.
7165 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
7167         * troff/div.c (diversion::need): Make any space forced.  If we
7168         sprung a trap, set truncated_space to minus the distance to the
7169         trap and set needed_space to the amount that was needed.
7170         (top_level_diversion::space): A forced space turns no_space_mode
7171         off.
7172         (class constant_vunits_reg): New class.
7173         (init_div_requests): Implement number registers .trunc and .ne
7174         using constant_vunits_reg.
7175         (class truncated_space_reg): Deleted.   
7177         * troff/div.h: Don't have a no_space_mode member in diversion.
7178         Instead have it in top_level_diversion.
7179         * troff/div.c (diversion::diversion): Don't initialize
7180         no_space_mode.
7181         (top_level_diversion::top_level_diversion): Initialize
7182         no_space_mode.
7183         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
7184         (macro_diversion::output): Don't clear no_space_mode.
7186         * troff/input.c (diverted_space_node::reread): Don't call
7187         environment::do_break.  In fill mode, act like a blank line.
7188         (diverted_copy_file_node::reread): Don't call
7189         environment::do_break.
7191         * troff/div.c (blank_line): New function.
7192         * troff/div.h: Declare it.
7193         * troff/input.c (process_input_stack): Call it.
7195         * troff/div.c (truncated_space_reg::get_string): New function.
7196         (init_div_requests): Bind to .trunc.
7197         (space_request, top_level_diversion::space,
7198         top_level_diversion::output, macro_diversion::space,
7199         macro_diversion::output): Update truncated_space.
7200         (macro_diversion::output): Redo calculations when trap sprung.
7201         (macro_diversion::output, macro_diversion::space): No need for
7202         trap_flag.
7204         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
7205         after truncating post line spacing.
7207 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
7209         * ps/devps/prologue (MF, SF): Make them work even if setfont is
7210         defined as a procedure rather than as an operator.
7212 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
7214         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
7216 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
7218         * troff/div.c (top_level_diversion::output): Merge
7219         output_file::print_line and output_file::end_of_line member
7220         functions.
7221         * troff/div.h (class output_file):
7222         * troff/node.c (troff_output_file::print_line,
7223         troff_output_file::end_of_line, output_file::end_of_line,
7224         ascii_output_file::print_line, suppress_output_file::print_line):
7225         Corresponding changes.  
7227 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
7229         * troff/input.c (token::next): Don't give a warning for `\.'.
7231         * troff/env.c (environment::get_center_lines): New function.
7232         (init_env_requests): Bind number register .ce to it.
7233         * troff/env.h: Declare it.
7234         * tbl/table.c (table::init_output): Define reset macro to restore
7235         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
7236         Then do .ce 0.
7237         (table::print): If center option not given, then imply center
7238         option if SAVED_CENTER_REG > 0.
7240 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
7242         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
7243         Troff.ps from DOWNLOAD.
7244         
7245         * troff/Makefile: Change comment in DEFINES to avoid confusing
7246         System V make.
7248         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
7249         code.  Don't try to catch errors with stopped.
7250         (check_line_lengths): New function.
7251         * ps/devps/prologue (EXEC): Deleted.
7252         (EBEGIN, EEND): New procedures.
7254 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
7256         * troff/input.c: Include request.h before node.h.
7257         * troff/node.c: Likewise.
7258         * troff/env.c: Likewise.
7259         * troff/div.c: Likewise.
7260         * troff/node.h (class special_node): Store argument as a macro
7261         rather than a char *.
7262         * troff/node.c (special_node::special_node, special_node::copy):
7263         Grok this.
7264         (special_node::~special_node): Deleted.
7265         (special_node::tprint): Deleted.
7266         (special_node::tprint_start, special_node::tprint_end,
7267         special_node::tprint_char): New functions.
7268         (troff_output_file::special): Deleted.
7269         (troff_output_file::start_special, troff_output_file::end_special,
7270         troff_output_file::special_char): New functions.
7271         * troff/input.c (special_node::tprint): New function.
7272         (do_special): Use macro not char *.
7273         (do_transparent_macro): Deleted.
7274         (token::next): Don't call do_transparent_macro.
7276         * troff/input.c (token::next): Add 'Y' case.
7277         (do_transparent_macro): New function.
7278         * troff/node.c (troff_output_file::special): Handle newlines with
7279         argument using new continuation convention.
7280         * driver/input.c (get_string): Cope with continuation convention.
7281         (do_file): Don't call skip_line after calling get_string(1).
7282         * ps/ps.c (ps_printer::special, ps_printer::do_import,
7283         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
7284         arg.
7285         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
7286         with +.
7288 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
7290         * troff/input.c (asciify): By default, illegal input characters
7291         should return empty string.
7293         * troff/input.c (copy_file): Handle first page transition like title.
7294         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
7296         * troff/input.c (token::next): Improve error message for EOF after
7297         escape character.
7298         (input_char_description): New function.
7299         (get_char_for_escape_name): Use input_char_description.
7300         (token::next): Warn about unrecognized escape sequences.
7301         (warning_table): Add WARN_ESCAPE.
7302         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
7303         accordingly.
7305         * troff/token.h: Remove declaration of process_input_stack.
7307         * troff/input.c: Remove declaration of init_hyphen_requests.
7308         * troff/request.h: Correct spelling in declaration of same.
7310         * troff/input.c (token::next): Check whether escape_char is 0.
7312 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
7314         * groff.c (main, usage, help): Implement -P and -L options.
7315         * groff.sh: Likewise.
7317         * troff/input.c (token::next): Use some gotos to avoid code
7318         duplication.
7320         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
7321         Avoid calling symbol::symbol if name empty.
7323 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
7325         * troff/input.c (init_input_requests): Make \n(.x return the major
7326         version number and \n(.y return the minor version number.
7327         * troff/Makefile: Construct file majorminor.c defining
7328         major_version and minor_version automatically from ../VERSION.
7330         * troff/node.c (class glyph_node): Make operator new and operator
7331         delete public.
7332         (class ligature_node): Similarily.
7334         * troff/input.c (operator==(const macro &, const macro &)): New
7335         function.
7336         (non_interpreted_node::same): Use this.
7337         (string_iterator::string_iterator): Make macro& argument const.
7339         * troff/input.c (input_iterator::get): New function. Don't make
7340         asciify_macro or class non_interpreted_node friends of class
7341         input_iterator.
7342         (non_interpreted_node::interpret): Use input_iterator::get.
7343         (asciify_macro): Likewise.
7345         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
7346         ~non_interpreted_node): Deleted.
7347         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
7348         Deleted.
7350         * troff/symbol.h: Make all symbol member functions const.
7352         * lib/strtol.c: New file.
7353         * lib/Makefile: Add strtol.c.
7354         * Makefile: Define STRTOL as strtol.o to include strtol in
7355         libgroff.a.
7357 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
7359         * pic/troff.c (troff_output::simple_circle): Divide by scale.
7361 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
7363         * troff/input.c (do_special): Use input_level.
7365         * troff/token.h (TOKEN_BACKSPACE): New token.
7366         (token::backspace): New function.
7367         * troff/input.c (token::description, token::next, token::process):
7368         Grok TOKEN_BACKSPACE.
7369         (do_special): Turn TOKEN_BACKSPACE back into \b.
7371         * troff/token.h (token::leader): New function.
7372         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
7374         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
7376         * troff/input.c (do_special): Use token::description in error
7377         message.
7379 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
7381         * troff/input.c (decode_args): Combine quoted and
7382         quote_input_level variables. Make it a for (;;) loop.
7384         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
7386         * troff/input.c (read_long_escape_name): The test for whether to
7387         expand buffer was off by 1.
7388         (read_string): Similarily.
7390 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
7392         * troff/input.c: Use `const int' rather than `static const int'.
7394         * troff/div.h (diversion::copy_file): Declare as pure virtual.
7395         (macro_diversion::copy_file): New function.
7396         * troff/node.h: New class diverted_copy_file_node.
7397         * troff/node.c: Implement it.
7398         * troff/input.c (copy_file): Use diversion::copy_file. Handle
7399         first page transition by pushing a diverted_copy_file_node.
7400         * troff/input.c (token::next, process_input_stack): Don't handle
7401         COPY_FILE_REQUEST.
7403 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
7405         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
7406         whether space widths need adjusting.
7408         * troff/charinfo.h: Generalize translated_to_space to
7409         special_translation so as to allow translation to \&.
7410         * troff/input.c (translate): Allow translation to \&.
7411         (charinfo::*): Corresponding changes.
7412         * troff/node.c (make_node, node::add_char): Corresponding changes.
7413         * troff/node.h (dummy_node::dummy_node): Allow optional first
7414         argument.
7416         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
7417         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
7418         TOKEN_REQUEST.
7419         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
7420         TOKEN_REQUEST with an argument of TITLE_REQUEST.
7421         (token::process): Grok that.
7422         * troff/input.c (copy_file): Handle first page transition like
7423         title by pushing a COPY_FILE_REQUEST cookie.
7424         (token::next, process_input_stack): Grok that.
7425         * troff/node.h (output_file::copy_file): Add x and y arguments.
7426         Make it non-pure.
7427         * troff/div.c (top_level_diversion::copy_file): Supply them.
7428         * troff/node.c (troff_output_file::copy_file): Add x and y
7429         arguments; moveto specified position.  Invalidate font_position
7430         array after copying file.
7431         (output_file::copy_file): New function.
7432         (suppressed_output_file::copy_file, ascii_output::copy_file):
7433         Removed.
7434         * troff/input.c (transparent_file): New function.
7435         (init_input_requests): Bind to "trf".
7436         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
7437         (process_input_stack): Likewise.
7439         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
7441         * troff/node.c (init_node_requests): New number registers .kern
7442         pointing to global_kern_mode, and .lg pointing to
7443         global_ligature_mode.
7445         * troff/node.c (ligature): Don't change it if we get a bad
7446         integer.
7448         * troff/input.c (do_define_string): Don't strip tabs.
7450         * troff/input.c (asciify_macro): Make the string_iterator auto.
7452         * troff/node.c (init_font_requests): Rename to...
7453         (init_node_requests):
7454         * troff/node.h: Change declaration.
7455         * troff/input.c (main): Change call.
7457         * troff/input.c (node::reread, diverted_space_node::reread): New
7458         methods.
7459         (process_input_stack): Call reread rather than
7460         get_diverted_space_node.
7461         * troff/node.c (node::get_diverted_space_node,
7462         diverted_space_node::get_diverted_space_node): Removed.
7463         * troff/node.h: Declare reread methods instead of
7464         get_diverted_space_node methods. Make `n' member private.
7465         * troff/input.c: (token::diverted_space): Removed.
7466         * troff/token.h: Removed declaration.
7467         
7469 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
7471         * eqn/script.c (script_box::compute_metrics): Don't let
7472         SUP_RAISE_FORMAT become negative.
7474         * tbl/table.c (table::do_row): Entries that don't end in the
7475         this row shouldn't make the row non-blank.
7476         
7477         * tbl/table.c (table::make_columns_equal): Only set the width of
7478         columns which are marked as equal.
7479         
7480         * tbl/main.c (process_data): Before issuing excess data error,
7481         if last character was a newline unget it; then get it again after
7482         the error.  Also include the contents of the entry in the message.
7484         * groff.c: New file.
7485         * Makefile: Build groff from groff.c.  Make it possible to use
7486         either groff.sh or groff.c as groff.
7487         * Makefile.bd: Similarily.
7489 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
7491         * groff.sh: Don't delay expansion of $@ in assignment to files.
7492         Remove occurrences of \".
7494 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
7496         * all Makefiles: Simplify and rearrange.
7498         * Makefile: Handle fmod like malloc.
7499         * lib/Makefile: Similarily.
7500         * lib/fmod.c: Remove #ifdef NEED_FMOD.
7502         * Makefile: Rename OPTIMISE to OPTIMIZE.
7504         * groff.sh: Remove assignment to PATH.
7505         * Makefile: Remove SHPATH variable.
7506         * Makefile.bd: Similarily.
7508         * groff.sh: Add -V option to print the pipeline instead of
7509         executing it.
7511 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
7513         * lib/font.c: Split off file searching into ...
7514         * lib/fontfile.c: New file.
7516         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
7518 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
7520         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
7521         Also change misleading comment.
7522         (table::do_vspan): Change similarily misleading comment.
7523         * tbl/main.c (process_data): A format row with an explicit `s'
7524         uses up a data line, even if all the other columns are `_' or `='.
7526         * troff/input.c (token::description): Fix description of
7527         TOKEN_DUMMY and TOKEN_EMPTY.
7529 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
7531         * groff.sh: Fix description of -Z in help message.
7533 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
7535         * pic/object.c (object_spec::make_object): Allow negative and zero
7536         line thicknesses.
7537         * pic/pic.y: Give linethick default value of -1.0.
7538         * pic/troff.c (troff_output::troff_output): Initialize
7539         last_line_thickness to BAD_THICKNESS.
7540         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
7541         (troff_output::line_thickness): Canonicalize negative thicknesses
7542         to RELATIVE_THICKNESS.
7543         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
7544         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
7545         to -1.0.
7546         (tex_output::start_picture): Set pen_size to -2.0.
7548         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
7549         0, then use 0 linewidth.
7550         (ps_printer::ps_printer): Initialize line_thickness to -1.
7552         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
7554         * ps/devps/symbolchars: Remove `or'.
7555         * ps/tmac.ps: Implement \(or with .char.
7557         * ps/devps/symbolchars: Move most characters into textmap.
7558         * ps/devps/textmap: Add names for troff bracket characters. Remove
7559         ul, ru, br, bv.
7561         * ps/devps/TSymbol.ps: Removed.
7562         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
7563         * ps/tmac.ps: Do with .char what TSymbol did.
7564         * ps/devps/download: Remove TSymbol.
7566         * ps/devps/T: Removed.
7567         * ps/devps/Troff.ps: Removed.
7568         * ps/devps/Troff.afm: Removed.
7569         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
7570         * ps/devps/download: Remove Troff.
7571         * ps/devps/FontMakefile: Remove T target.
7572         * ps/devps/DESC-A4: Remove T from font list.
7573         * ps/devps/DESC-letter: Likewise.
7575         * troff/input.c (macro_to_node): Rename to ...
7576         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
7577         character's definition while processing it.
7578         * troff/node.c (node::add_char, make_node): Change calls to
7579         macro_to_node accordingly.
7581         * troff/input.c (token::next): Translate \_ to \(ul.
7583         * tty/devascii/R.proto: Add `|'.
7584         * tty/devlatin1/R.proto: Likewise.
7586 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
7588         * man: Put the version number in all the man pages.
7590 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
7592         * Makefile.bd: New file.
7593         * README.bd: New file.
7595         * VERSION: New file.
7596         * lib/version.c: Removed.
7597         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
7598         in clean target.
7600         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
7601         environment variable.
7603         * all Makefiles: Split install target into install.bin for
7604         binaries, and install.nobin for everything else.
7605         * Makefile: Add bindist target.
7607         * man/afmtodit.man: New file.
7608         * man/Makefile: Add afmtodit.n to MAN1PAGES.
7609         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
7610         in BINDIR.
7611         * ps/Makefile: Pass BINDIR to make install in devps.
7613         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
7614         the space character.
7616         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
7618 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
7620         * ps/ps.c: Redo font downloading.
7621         * ps/devps/download: New file.
7622         * ps/devps/Makefile: Add download to DEVICEFILES.
7623         * ps/devps/afmtodit: Remove -d option.
7624         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
7625         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
7626         * ps/devps/zapfdr.ps: Likewise.
7627         * ps/devps/TSymbol.ps: Likewise.
7629 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
7631         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
7633 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
7635         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
7636         then strip the first line if it starts with %.
7637         * Makefile: Add a comment about this.
7639         * man/tfmtodit.man: New file.
7640         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
7641         * dvi/Makefile: Install tfmtodit in BINDIR.
7643         * dvi/tfmtodit.c (usage): Mention -v option.
7645 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
7647         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
7648         * troff/node.c (troff_output_file::transparent_char): Don't call
7649         flush_tbuf.
7651         * eqn: Add check_tabs method to most box classes.
7652         * eqn/box.c (box::top_level): Call check_tabs.
7654         * eqn/script.c (script_box::output): Use \Z.
7655         * eqn/limit.c (limit_box::output): Use \Z.
7657         * eqn/box.c (box::top_level): Use itoa.
7659 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
7661         * dvi/tmac.dvi: Add font translations for CR, C, TT.
7662         * dvi/devdvi/Makefile: Don't make links to CW.
7664         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
7665         HX, HD.
7666         * xditview/tmac.X: Likewise.
7668         * troff/node.c: Add font translation feature.
7669         (get_font_translation): New function.
7670         (symbol_fontno): Translate the font name.
7671         (mount_font_no_translate): Rename to mount_font to this.
7672         (mount_font): New function.
7673         (font_family::make_definite): Call mount_font_no_translate instead
7674         of mount_font.
7675         (mount_style): Translate the font name.
7676         (font_translate): New function.
7677         (init_font_requests): Bind "ftr" to font_translate.
7679         * ps/devps/prologue (SN): New procedure that rounds a position to
7680         the nearest (pixel + (.25,.25)).
7681         (DL): Use SN to round endpoints.
7683         * lib/version.c: Changed version to 0.5.
7685 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
7687         * Makefile: Move definition of PAGE to the very beginning, so that
7688         people are less likely to miss it.
7690 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
7692         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
7694         * troff/env.c (environment::choose_breakpoint): Make `can't find
7695         breakpoint' error a warning of type WARN_BREAK.  Change message to
7696         `can't break line'.
7697         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
7698         code 040000.
7699         * troff/input.c: Add WARN_BREAK to warning_table.  Include
7700         WARN_BREAK in DEFAULT_WARNING_MASK.
7702         * tty/tmac.tty: Add definition of \(+-.
7704         * groff.sh: Remove `--' option to set command.
7706         * dvi/devdvi/texsy.map: Remove duplicate md entry.
7708         * ps/devps/eqnchar: Better definition of cdot using md.
7709         * dvi/devdvi/eqnchar:  Likewise.
7710         * xditview/devX100/eqnchar:  Likewise.
7711         * xditview/devX75/eqnchar: Likewise.
7712         * eqn/lex.c: Add definition of cdot.
7714 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
7716         * troff/input.c (get_optional_char): New function.
7717         * troff/input.c (set_page_character): Use get_optional_char(),
7718         rather than has_arg() and tok.get_char(1).
7719         * troff/env.c (tab_character, leader_character, hyphen_char,
7720         field_characters): Likewise.
7721         (margin_character): Likewise.  Also always delete the
7722         margin_character_node.
7724         * troff/input.c (token::get_char): Use token::description.
7726         * troff/input.c (has_arg): Don't skip over tab and \}.
7727         * troff/number.c (start_number): Give a warning if the number
7728         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
7730 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
7732         * troff/input.c (empty_name_warning, non_empty_name_warning): New
7733         functions.
7734         (get_name, get_long_name): Use these.  Rename `warn' argument to
7735         `required'.
7737         * troff/node.c (get_fontno): Test that the symbol is not null.
7739         * troff/input.c (token::description): New function.
7740         * troff/number.c (parse_term): Use token::description in `numeric
7741         expression expected' message.
7742         * troff/groff.h: Add WARN_MISSING.
7743         * troff/number.c (start_number): New function.
7744         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
7745         get_incr_number): Use start_number().
7746         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
7747         default.
7748         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
7749         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
7750         token::descripion.
7751         * troff/input.c (token::get_char): Use WARN_MISSING.
7752         * troff/input.c (token::delimiter): Use token::description.
7753         * troff/env.c (environment_switch): Back out Aug 3 change.
7754         * troff/input.c (has_arg): Skip over \}s and tabs but give a
7755         warning.
7756         * troff/token.h (token::tab): New function.
7757         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
7758         * troff/reg.c (alter_format): Likewise.
7759         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
7761 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
7763         * troff (most files): Redo warnings. Divide warnings into various
7764         categories; warning() has an additional first argument indicating
7765         the category it falls into.
7766         * troff/input.c (main): -w now takes an argument. New option -W.
7767         (enable_warning, disable_warning): New functions.
7769         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
7770         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
7772 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
7774         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
7775         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
7776         * xditview/devX75/eqnchar: Likewise.
7777         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
7779         * eqn/other.c: When bar or over applies to a single character
7780         don't produce an overline_box or an underline_box. Instead produce
7781         an accent_box or an underaccent_box, with the accent a line
7782         whose width is accent_width.  New classes underaccent_box,
7783         overline_char_box and underline_char_box.
7784         * eqn/box.h: Move overline_box, underline_box, accent_box class
7785         declarations into eqn/other.c. Add declarations of
7786         make_underline_box, make_overline_box, make_accent_box.
7787         * eqn/eqn.y: Call make_overline_box, make_underline_box
7788         make_accent_box instead of constructors.
7789         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
7791         * eqn/other.c: Add accent_box::~accent_box.
7792         * eqn/box.h: Declare it.
7794         * groff.sh: With -Tps, use eqn -D.
7796         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
7797         rather than \l.
7798         (underline_box::output): Similarily.
7799         (accent_box::output): Use \Z.
7801         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
7802         bit smaller.)
7804 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
7806         * troff/div.c (top_level_diversion::transparent_output(unsigned
7807         char)): Use asciify.
7808         * troff/input.c (asciify): Don't make it static.
7809         * troff/token.h (asciify): Declare it.
7810         
7811         * troff/input.c (get_name, get_long_name, token::get_char,
7812         token::delimiter): Add an extra default argument which says
7813         whether a warning should be printed.
7814         * troff: Pass a non-zero argument to one of these rather than
7815         printing a warning directly.
7817 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
7819         * troff: Consistently use symbol::is_null.
7821         * troff/dictionary.h: Move some inline functions into
7822         dictionary.c.
7824         * troff/request.h: Move inline functions into input.c.
7825         (request_or_macro::invoke): Make it pure.
7827         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
7828         * troff/input.c (init_input_requests): Use class constant_int_reg.
7829         (class compatible_reg): Deleted.
7830         * troff/div.c (init_div_requests): Use class constant_int_reg.
7831         (class last_post_line_extra_space_reg): Deleted.
7833         * troff/env.c (tab_character): Don't change the tab character if
7834         we get an invalid argument.
7835         (hyphen_char): Similarily.
7837         * troff/reg.c (alter_format): Check that nm is not null.
7839         * Makefile, groff.sh: Make it possible to customize the commands
7840         used for printing PostScript and dvi files. Also make it possible
7841         to customize the path used by groff.sh.
7843         * eqn/eqn.y: Make `left' right associative.
7845 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
7847         * pic/pic.h: Added definition of M_SQRT2 for those systems that
7848         don't have it.
7850         * pic/pic.h: Removed definition of INT_MAX.
7852         * troff/node.c (italic_corrected_node::vertical_extent): Omit
7853         `return'.
7855         * troff/input.c (token::next):  Handle \R like \n.
7857 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
7859         * ps/tmac.pc (PSPIC): Simplify.
7861         * troff/env.c (tab_stops::to_string):
7862         * pic/pic.y (object_type_name):
7863         * pic/troff.c (simple_output::line):
7864         * pic/tex.c (tex_output::spline):
7865         * pic/object.c (object_spec::make_object):
7866         * tbl/main.c (process_data):  Add cases to switch statements to
7867         avoid cfront warnings. (Some of these are spurious, since the
7868         switch already has a default case.)
7870         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
7871         `ps-'.  Don't test systat; instead check number of arguments to
7872         ps-bb.
7874 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
7876         * macros/tmac.e: Do not decrease the page offset by 0.5i.
7878         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
7879         Unlink the file as soon as we have opened it, so that we don't
7880         have to bother with signal handlers.
7881         (handler): Deleted.
7882         (fatal_error_exit): Deleted.
7883         (main): Don't call signal.
7885         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
7886         can be ignored.
7887         * dvi/devdvi/Makefile: Use the -k option with S and MI.
7889         * pic/pic.y:  If there is a label, or an nth construction before
7890         the first `.' in the argument to `with', ignore it and generate a
7891         warning.
7892         * pic/lex.c (lex_warning): New function.
7894         * tbl/table.c (table::init_output): In section keep and release
7895         macro, use 0 indent when diverting and the correct indent when
7896         rereading.
7898         * troff/input.c (interpolate_number_format): Do not interpolate
7899         anything if the number register is not defined.
7901         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
7903 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
7905         * ps/devps/prologue (PICTURE): Set components of graphics state to
7906         their default values.
7908         * ps/devps/text.enc: Add trademark
7909         * ps/devps/textmap: Add names for club, spade, heart, diamond,
7910         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
7911         * ps/devps/symbolchars: Add names for summation and product.
7913         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
7914         suchthat. Add pp. Add upper-case letters.
7916         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
7917         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
7918         Upsilon.
7920         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
7921         rA (right angle bracket) to ra.  Introduce names for double-headed
7922         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
7923         * ps/devps/textmap: Likewise for ps device.
7924         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
7925         * tty/devascii/R.proto: Rename lA to la and rA to ra.
7926         * tty/devascii/R.proto: Likewise.
7927         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
7928         \(uA, \(dA.
7929         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
7931         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
7933         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
7934         def_table.
7936 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
7938         * troff/div.c (when_request): Use symbol::is_null rather than
7939         has_arg to determine whether we have an argument.
7940         (change_trap): Remove the trap if we get an invalid number. Give
7941         an error if we don't get at least the macro name.
7942         (diversion_trap): Remove trap if we get an invalid name or number.
7944         * troff/env.c (environment_switch): Pop if we get an invalid
7945         symbol or numeric expression.
7947         * troff/input.c (do_define_macro):  If EOF is encoutered while
7948         defining the macro, do tok.next() before returning.
7950         * troff/token.h (has_arg): Move definition from here, to ...
7951         * troff/input.c (has_arg): ... here
7953         * troff/env.c (space_size): Do nothing if we get an invalid argument.
7954         * troff/input.c (shift): Likewise.
7956         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
7957         for `.c'.
7959         * pic/troff.c (troff_output::start_picture):  Comment out calls to
7960         `..'.
7962         * eqn/main.c (do_file): Subtract 1 from current_lineno if
7963         interpret_lf_args succeeds.
7965         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
7966         \\.  This avoids problems with \$N.
7968         * groff.sh: Pass -C to preprocessors.
7970         * lib/lf.c (interpret_lf_args):  Be more flexible.
7972         * tbl/main.c (main): Add -C option.
7973         (table_input::get): Do not recognize TE if followed by character
7974         other than a space or newline unless -C option given.
7975         (process_input_file): Likewise for lf, TS.
7976         (process_data): Likewise for lf in text blocks.
7978         * eqn/main.c (main): Add -C option.
7979         (do_file): Don't recognize EQ, EN or lf if followed by character
7980         other than space or newline unless -C option given.
7981         * eqn/lex.c (file_input::read_line): Similarily.
7982         * eqn/eqn.h: Declare compatible_flag.
7984         * etc/soelim.c (main): Add -C option.
7985         (interpret_lf_args): Use version in libgroff.
7986         (do_file):
7988         * pic/main.c (main): Add -C option, which sets compatible_flag.
7989         (top_input::get), (top_input::peek):  If -C option not given,
7990         do not recognize .PS/.PE/.PF/.lf if followed by a character
7991         other than space or newline.
7992         * pic/lex.c (file_input::read_line): Similarily.
7993         * pic/pic.h: Add declaration of compatible_flag.
7995 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
7997         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
7999         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
8000         derived from node.  New class space_char_hmotion_node.
8001         * troff/input.c (asciify_macro): New function.
8002         * troff/input.c (init_input_requests): New request `asciify' bound
8003         to asciify_macro.
8004         * macros/mm.diff: New file.
8005         * Makefile:  In install.mm target use `patch' to apply
8006         macros/mm.diff.
8008         * troff/input.c (macro::print_size): Just print the size in bytes.
8010         * troff/div.c (return_request): Correct the argument
8011         interpretation.
8013 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
8015         * troff/node.h (class composite_node): Add sz member.
8016         * troff/node.c (composite_node::size): Return sz.
8017         * troff/input.c (macro_to_node):  Use the initial size in the
8018         environment as the size of the composite_node.
8020         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
8021         default.
8023 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
8025         * troff/div.c (change_trap): If we get a bad number expression,
8026         do nothing.
8028 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
8030         * lib/matherr.c (matherr): Define this only if math.h defines
8031         TLOSS.
8033 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
8035         * troff/div.c (macro_diversion::distance_to_next_trap): If there
8036         no diversion trap return vunits(INT_MAX - vresolution).
8038 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
8040         * troff/input.c (do_zero_width): New implementation that doesn't
8041         use a temporary environment. Use instead:
8042         (token::add_to_node_list): New function.
8043         * troff/env.c (environment::get_prev_char_height),
8044         (environment::get_prev_char_height),
8045         (environment::get_prev_char_skew): New functions.
8046         (environment::get_prev_char): New function.
8047         (environment::get_prev_char_width): Change to use get_prev_char.
8048         (init_env_request): Implement new registers .cht, .cdp, .csk.
8049         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
8050         \Z being processed in a separate environment.
8052 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
8054         * tbl/table.c: Removed TABLE_BOTTOM_REG.
8056         * tbl/table.c (table::init_output): In the section release macro,
8057         give a warning message if the section won't fit on one page.
8059         * tbl/table.c (table::do_top): Emit table keep only if table is
8060         boxed.
8061         (table::do_bottom): Likewise for table release.
8062         (table::table), (table::add_vertical_rule):  Remove reference to
8063         keep member.
8064         * tbl/table.h: Remove keep member.
8066         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
8067         SECTION_RELEASE_MACRO, if there's not enough space before the next
8068         trap to output the diversion, call T# ourselves, set
8069         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
8070         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
8071         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
8072         vertical position and return to it before turning traps on again.
8073         
8074 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
8076         * troff/node.c, troff/node.h: In classes derived from node,
8077         replace prev_char_width method by last_char_node method.
8078         * troff/env.c (environment::get_prev_char_width): Use
8079         node::last_char_node rather than node::get_prev_char_width.
8081         * Makefile: Added comment about -fno-inline on 68030-based
8082         Apollos.
8084         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
8085         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
8086         expressions using sizeof to int.
8087         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
8089         * macros/tmac.e (TS):  Don't move @f back past the current
8090         position.
8092 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
8094         * ps/ps.c (main): Buffer stderr.
8095         * dvi/dvi.c (main): Likewise.
8096         * tty/tty.c (main): Likewise.
8098         * ps/ps.c (ps_printer::do_import): Improve error handling.
8100         * troff/input.c (abort_request): Use asciify.
8102         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
8103         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
8104         type of first argument int rather than char.  This works around a
8105         bug on the 68030 based Apollo using g++ 1.37.1.
8107         * tbl/table.h (class table): Add `keep' member.
8108         * tbl/table.c (table::table): Initialize `keep'.
8109         (table::add_vertical_rule): Set `keep' to 1.
8110         (table::do_top): Only emit table keep macro is `keep' is non-zero.
8111         (table::do_bottom): Likewise for table release macro.
8112         (table::do_row): Emit section keep macro even if the row is 0.
8114 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
8116         * macros/tmac.e (@C): Preserve the font family across the change
8117         in environments.
8119 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
8121         * lib/font.c: Initialize font::hor and font::vert to 1.
8122         (font::load_desc): Check the values of font::hor and font::vert.
8124         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
8125         be included in a C compilation.
8126         (iftoa): Use INT_DIGITS. Include lib.h.
8127         (itoa): Likewise.
8128         (as_string): Likewise.
8129         * tbl/table.c: Removed definition of INT_DIGITS.
8130         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
8131         * troff/input.c (input_input_requests): Likewise.
8132         * ps/ps.c (make_encoding_name): Likewise.
8133         (ps_printer::set_style): Likewise.
8134         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
8136         * tty/devascii/R.proto: Map fm onto '.
8137         * tty/devlatin1/R.proto: Likewise.
8139 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
8141         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
8142         argument to \w is at a different input level.
8144         * tbl/table.c (table::init_output): Define a new macro
8145         REPEATED_VPT_MACRO, like vpt but if in a diversion also
8146         transparently outputs itself.
8147         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
8148         vpt.
8149         (table::do_row): Likewise.
8151         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
8152         TRANSPARENT_STRING_NAME.
8154         * tbl/table.c (table::init_output): In the table release macro
8155         print an error message and don't produce any output if after
8156         issuing the need request the table still will not fit.  Also
8157         remove the diversion after bringing it back.
8159         * tbl/table.c (table::init_output): Define a new macro
8160         REPEATED_MARK_MACRO, like mk but if in a diversion also
8161         transparently outputs itself.
8162         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
8163         is necessary because .TH might not call .T#.
8164         (table::do_top): Likewise TOP_REG.
8165         (table::define_bottom_macro): If TOP_REG is no longer valid, use
8166         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
8167         table header might contain just the two top rules.
8169 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
8171         * troff/div.c: Implement new request `ptr' to print all traps.
8173         * troff/env.c (init_env_requests): Implement `.tabs' reg with
8174         init_string_env_reg.
8175         * troff/env.c (class tab_reg): Deleted.
8177 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
8179         * troff/div.c: New number register .pn returns the number of the
8180         next page as set by the pn request.
8182         * macros/tmac.an: Redid headers and footers.  Number each manual
8183         entry starting from 1 unless \nC is > 0, like Sun.  Added an
8184         optional 5th argument to .TH which specifies the manual name and
8185         appears in the center of the header.  Understand the X, P and D
8186         registers like Sun.
8188 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
8190         * troff/env.c (init_env_requests): New number register `.lt' to
8191         return the title length.
8193         * troff/node.h (class transparent_dummy_node): New class.
8194         * troff/node.c (class transparent_dummy_node): Provide member
8195         functions. 
8196         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
8197         than a dummy_node.
8199         * troff/input.c (token::next): New escape sequence \).
8200         * troff/input.c (get_copy): Recognize \) in copy mode.
8202         * troff/input.c (input_stack::clear): New function.
8203         * troff/input.c (exit_request): Use input_stack::clear.
8205         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
8206         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
8208         * troff/env.c: Move set_page_character to input.c.  Move
8209         page_character to input.c also.
8210         * troff/env.c (title): Split off the reading of the parts of the
8211         title into read_title_parts.
8212         * troff/input.c (read_title_parts): New function.  Check the
8213         input_level when testing whether a token matches the delimiter.
8215         * troff/input.c (exit_request): New function.
8216         * troff/input.c (init_input_requests): Bind ex request to
8217         exit_request rather than exit_groff.
8219         * troff/input.c (exit_groff): Call tok.next() before
8220         process_input_stack().
8222 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
8224         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
8225         * troff/env.h: ditto.
8226         * troff/input.c: ditto.
8228         * troff/env.c (environment::is_empty): Test pending_lines.
8230         * troff/env.c (environment::have_pending_lines): Removed.
8232         * troff/input.c: Add request to flush pending lines from the
8233         environment.
8235         * troff/env.c, troff/env.h: Add automatic widow control feature.
8237         * troff/input.c (exit_groff):  Do process_input_stack() after
8238         do_break() but before setting exit_flag to 2.
8240         * troff/input.c: Remove FLUSH_PENDING_LINES and
8241         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
8242         environment after END_TRAP token seen, but only if there aren't
8243         any more traps still unfinished.
8244         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
8246 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
8248         * troff/env.c: Rename the `retain_size' member of class
8249         pending_output_line to `no_fill'.
8251         * troff/env.c (title): When the line is output, make the
8252         retain_size argument !fill.
8254         * troff/node.h: Add `hyphenated' member to struct breakpoint.
8255         * troff/node.c (space_node::get_breakpoints),
8256         (dbreak_node::get_breakpoints):  Fill this in.
8257         * troff/env.c:  Allow specification of maximum number of
8258         consecutive hyphenated lines.
8260         * troff/env.c (environment::is_empty): Add test for !current_tab.
8262 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
8264         * troff/env.c (environment::hyphenate_line): Don't completely give
8265         up if the word is not to be hyphenated; continue so that breaks
8266         can be made at break_char_node's.
8268         * lib/lib.h: Only define INT_MAX if it's not already defined;
8269         undef INT_MIN if it's already defined.
8271         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
8273         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
8274         This works around a bug in AT&T C++ 2.0 used with an ANSI C
8275         compiler.
8276         
8277         * macros/tmac.an (an-header): Set no-space mode.
8279         * macros/tmac.an (TH): Start a new page if necessary.
8281         * Started using ChangeLog at version 0.4.
8283 Local Variables:
8284 version-control: never
8285 coding: latin-1
8286 End: