]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/groff/ChangeLog
This commit was generated by cvs2svn to compensate for changes in r100519,
[FreeBSD/FreeBSD.git] / contrib / groff / ChangeLog
1 2001-07-07  Werner LEMBERG  <wl@gnu.org>
2
3         * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
4         to size_t.
5
6 2001-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
7
8         * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
9         Fix synopsis.
10         * tmac/groff_mdoc.man: Fix synopsis.
11
12 2001-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
13
14         * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
15         Restore `doc-Pa-font'.
16
17 2001-07-04  Werner LEMBERG  <wl@gnu.org>
18
19         * src/utils/indxbib/dirnamemax.c: Moved to ...
20         * src/libs/libgroff/maxfilename.cc: Here.
21         s/dir_name_max/file_name_max/.
22         Add copyright.
23         * src/include/lib.h: Add file_name_max.
24         * src/utils/indxbib/indxbib.cc: Updated.
25         * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
26         Updated.
27
28         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
29         as empty.
30         (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
31
32         * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
33         REGION_TEMPLATE): New macros.
34         (createAllPages, makeTempFiles): Use them.
35         Include `nonposix.h'.
36         (html_system): New function.
37         (createAllPages, createImage): Use it.
38         Use EXE_EXT.
39
40         * tmac/www.tmac: Fix typos.
41
42 2001-07-03  Werner LEMBERG  <wl@gnu.org>
43
44         * tmac/www.tmac: Disable hyphenation in normal text only if output
45         device is html.
46         (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
47         * tmac/groff_mwww.man, NEWS: Updated.
48
49 2001-07-03  Gaius Mulley  <gaius@glam.ac.uk>
50
51         * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
52         image location.
53
54 2001-07-02  Ruslan Ermilov  <ru@FreeBSD.org>
55
56         * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
57         doc-display-ps-stack): Implement font and font size stack for
58         displays.
59
60 2001-07-02  Werner LEMBERG  <wl@gnu.org>
61
62         * REVISION: Increased to 2.
63         * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
64
65         * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
66         beginning of a line.
67         * src/groff/grog/grog.sh: Ditto.
68
69 2001-06-29  Peter Marquardt  <wwwutz@molgen.mpg.de>
70
71         * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
72         make it portable.
73
74 2001-06-27  Werner LEMBERG  <wl@gnu.org>
75
76         Fix problems with preprocessor string for `man' program.
77
78         * *.man: Don't use `s' in preprocessor string --  it doesn't exist.
79         Updated/added copyright.
80         Moved Emacs's local variable to identify nroff mode to the end of
81         the file; add local variable if missing.
82
83 2001-06-26  Andras Salamon  <andras@cs.wits.ac.za>
84
85         * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
86         AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
87         * configure: Regenerated.
88
89 2001-06-25  Andras Salamon  <andras@cs.wits.ac.za>
90
91         * aclocal.m4 (GROFF_PAGE): Fix page detection code.
92         * configure: Regenerated.
93
94 2001-06-24  Werner LEMBERG  <wl@gnu.org>
95
96         * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
97         but www.tmac.
98         * doc/pic.ms: Fix typos.
99
100 Version 1.17.1 released
101 =======================
102
103 2001-06-21  Golubev I. N.  <gin@mo.msk.ru>
104
105         * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
106         * configure: Updated.
107
108 2001-06-20  Gaius Mulley  <gaius@glam.ac.uk>
109
110         * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
111         image names.
112         * src/roff/troff/dic.cc (blank_line): Add html tag.
113
114 2001-06-19  Gaius Mulley  <gaius@glam.ac.uk>
115
116         * src/roff/troff/input.cc (do_suppress): Fix typo.
117
118 2001-06-18  Gaius Mulley  <gaius@glam.ac.uk>
119
120         Added two new options (-D and -I) to specify image names and a
121         subdirectory to place the images in.
122
123         Change syntax from \\Ox to \\O[x].
124
125         * src/devices/grohtml/post-html.cc (main): Add options.
126         (usage): Updated.
127         * src/preproc/html/pre-html.cc: Include `stdarg.h'.
128         Use `NULL' instead of `0' for null string pointers.
129         (MAX_RETRIES): New macro.
130         (lengthOfintToStr, intToStr, make_message): New functions.
131         (makeFileName): Make function static.
132         Implement -D and -I options.
133         (checkImageDir): New function.
134         (write_end_image, write_start_image): Use new syntax of \O.
135         (createAllPages, removeAllPages): Implement -D and -I options.  Use
136         make_message().
137         (createImage): Use make_message().
138         (addps4html): Add guard for malloc().
139         (usage, scanArguments): Updated.
140         (makeTempFiles): Use mkstemp().
141         (removeTempFiles): Use unlink().
142         (findPrefix): Add guard for malloc().
143         (main): Updated.
144         * src/roff/troff/input.cc (get_delim_file_name): New function to
145         parse \O.
146         (do_suppress): Updated to parse new syntax.
147         * src/devices/grohtml/grohtml.man: Updated.
148         * tmac/www.tmac: Updated to new syntax.
149
150         * NEWS: Updated.
151
152 2001-06-15  Werner LEMBERG  <wl@gnu.org>
153
154         * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
155
156         * src/devices/grohtml/grohtml.man: Minor improvements.
157
158 2001-06-14  Werner LEMBERG  <wl@gnu.org>
159
160         * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
161
162 2001-06-11  Werner LEMBERG  <wl@gnu.org>
163
164         * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
165         line to specify preprocessor options -- mandb 2.3.1 only recognizes
166         the former.
167         * src/preproc/grn/grn.man: Add proper '\" string.
168
169 2001-06-11  OKAZAKI Tetsurou  <okazaki@be.to>
170
171         * test-groff: Don't use PATH but GROFF_BIN_PATH.
172
173 2001-06-08  Werner LEMBERG  <wl@gnu.org>
174
175         Updated to autoconf 2.50.
176
177         * configure.in: Renamed to...
178         * configure.ac: This.
179         * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
180         (GROFF_OS390): Updated.
181         * configure: Regenerated.
182
183 2001-05-18  Werner LEMBERG  <wl@gnu.org>
184
185         * src/roff/troff/env.c, src/roff/troff/env.h,
186         src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
187         from 2000-12-21.
188
189 2001-05-17  Jeffrey Friedl  <jfriedl@yahoo-inc.com>
190
191         * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
192
193 2001-05-16  Bruce Lilly  <blilly@erols.com>
194
195         * contrib/mm/m.tmac (TH): Fix incorrect error message.
196
197 2001-05-16  Werner LEMBERG  <wl@gnu.org>
198
199         * src/roff/troff/input.cc (read_size): Emit warning if value becomes
200         less than or equal zero; set it to 1 then.
201         * src/roff/troff/node.h (node::node): Initialize `last'.
202
203 2001-05-08  Werner LEMBERG  <wl@gnu.org>
204
205         * tmac/an-old.tmac: Make predefined strings work in compatibility
206         mode.
207         Add troff version guard.
208         * tmac/doc.tmac: Simplify version guard.
209
210 2001-05-07  Werner LEMBERG  <wl@gnu.org>
211
212         The .ns and .rs requests are now honoured not only in the top-level
213         but in all diversions (similar to UNIX troff).
214
215         This change is based on a patch from Tadziu Hoffmann
216         <hoffmann@usm.uni-muenchen.de>.
217
218         * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
219         (top_level_diversion): Remove `no_space_mode' member.
220         * src/roff/troff/div.cc (diversion::diversion,
221         top_level_diversion::top_level_diversion): Updated.
222         (macro_diversion::output): Reset `no_space_mode'.
223         (no_space, restore_spacing): Use `curdiv' unconditionally.
224         (space_request, blank_line): Check `curdiv->no_space_mode'.
225         (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
226         `curdiv' unconditionally.
227         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
228         Updated.
229
230 2001-05-06  Werner LEMBERG  <wl@gnu.org>
231
232         Added two new requests `de1' and `am1' which are similar to `de' and
233         `am' with the difference that compatibility mode is saved on entry,
234         switched off during macro execution, and restored on exit.
235
236         * src/roff/troff/input.h: Added two new special characters
237         (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
238         * src/roff/troff/input.cc (input_iterator): Added two member
239         functions `save_compatible_flag' and `get_compatible_flag'.
240         (input_stack): Ditto.
241         (string_iterator): Ditto.  Also add private member
242         `saved_compatible_flag'.
243         (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
244         (calling_mode): New enumeration.
245         (do_define_macro): Use it.  Insert COMPATIBLE_SAVE and
246         COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
247         (define_macro, define_indirect_macro, append_macro, ignore): Use
248         `calling_mode'.
249         (define_nocomp_macro, append_nocomp_macro): New functions.
250         (init_input_requests): Updated.
251         (do_request): Rename local variable `saved_compatible_flag' to
252         `old_compatible_flag'.
253         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
254
255         * tmac/an-old.tmac: Use `de1' instead of `de' request for all
256         public and trap-invoked macros.  As a consequence, the man macros
257         work in compatibility mode also.
258
259 2001-05-06  Solar Designer  <solar@openwall.com>
260
261         * Makefile.in: Use $(mandir).
262
263 2001-05-06  Alexios Zavras  <zvr@pobox.com>
264
265         * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
266
267 2001-05-05  Werner LEMBERG  <wl@gnu.org>
268
269         Added `.ns' number register: Returns 1 in no-space mode (if in
270         top-level diversion), 0 otherwise.
271
272         * src/roff/troff/div.cc (no_space_mode_reg): New class.
273         (init_div_requests): Updated.
274         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
275         Document it.
276
277 2001-05-04  Werner LEMBERG  <wl@gnu.org>
278
279         * src/roff/nroff/nroff.man: Improved documentation (especially
280         locales).
281
282 2001-05-02  Werner LEMBERG  <wl@gnu.org>
283
284         Added `brp' request: This is \p as a request.
285
286         * src/roff/troff/env.cc (environment::do_break): Add parameter
287         `spread'.
288         (do_break_request): New function (was `break_request').
289         (break_request): Calls `do_break_request'.
290         (break_spread_request): New; calls `do_break_request'.
291         (init_env_requests): Updated.
292         * src/roff/troff/env.h: Updated.
293         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
294
295         * REVISION: Increased to 1.
296         * win32-diffs: Updated.
297
298 2001-05-01  Werner LEMBERG  <wl@gnu.org>
299
300         * tmac/an-old.tmac: Fix minor compatibility mode issue.
301         * tmac/troffrc-end: Make it really work in compatibility mode.
302
303 2001-04-27  Werner LEMBERG  <wl@gnu.org>
304
305         * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
306         stdlib.h.
307
308 2001-04-22  Werner LEMBERG  <wl@gnu.org>
309
310         * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
311         latest versions from glibc CVS archive.
312
313         * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
314         <c.zeelenberg@hccnet.nl>.
315
316 2001-04-21  Werner LEMBERG  <wl@gnu.org>
317
318         * configure.in: Move check for mkstemp() to...
319         * aclocal.m4 (GROFF_MKSTEMP): This new function.
320         * configure: Regenerated.
321
322         * src/include/groff-getopt.h: Don't use variable names in
323         declarations.
324
325         * src/devices/grohtml/html-chars.h: Removed.  It isn't used.
326         * src/devices/grohtml/Makefile.sub,
327         src/devices/grohtml/post-html.cc: Updated.
328
329 2001-04-21  Albert Chin-A-Young  <china@thewrittenword.com>
330
331         * configure.in: Add special check for mkstemp().
332         * src/libs/libgroff/tmpfile.cc: Use it.
333         * src/utils/indxbib/indxbib.cc: Ditto.
334         * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
335         * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
336         `const'.
337
338 2001-04-20  Bruce Lilly  <blilly@erols.com>
339
340         `Version_string' as C++ object was not visible to linker from C
341         object files.
342         Add `const' to `Version_string'.
343
344         * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
345         (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
346         (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
347         (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
348         (scanArguments), src/preproc/refer/refer.cc (main),
349         src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
350         (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
351         (main), src/devices/grohtml/post-html.cc (main),
352         src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
353         (main), src/utils/hpftodit/hpftodit.cc (main),
354         src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
355         (main), src/utils/lkbib/lkbib.cc (main),
356         src/utils/addftinfo/addftinfo.cc (main): Implement it.
357
358         * src/roff/groff/pipeline.c: Add _UWIN.
359         * src/include/nonposix.h: Ditto.
360
361 2001-04-20  Werner LEMBERG  <wl@gnu.org>
362
363         * src/include/lib.h: Use HAVE_STRERROR.
364         * src/roff/groff/pipeline.c: Ditto.
365         * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
366         * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
367         * src/utils/pfbtops/pfbtops.c: Add copyright notice.
368         * win32-diffs: Updated.
369         * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
370
371 2001-04-19  Werner LEMBERG  <wl@gnu.org>
372
373         * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
374         instead of hardwired `"troff"'.
375         (char_buffer::read_file): Remove unused variables.
376         (char_buffer::write_file_troff): Ditto.
377         (char_buffer::write_file_html): Ditto.
378         (generateImages): Ditto.
379         (abs): Removed.
380         * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
381
382         * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
383
384         * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
385         * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
386         index_search_item::search1): Ditto.
387         * src/roff/troff/node.h (width_list): Reorder members.
388         * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
389         (lookup_warning): Ditto.
390         (prepend_string): Commented out.
391         * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
392         * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
393         * src/preproc/tbl/main.cc (process_format): Ditto.
394         * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
395         compiler warnings.
396         * src/preproc/pic/pic.cc: Updated.
397         * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
398         * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
399         * src/preproc/refer/command.cc (execute_command): Ditto.
400         * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
401         * src/preproc/refer/token.cc (lookup_token): Ditto.
402         * src/preproc/soelim/soelim.cc: Ditto.
403         * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
404         (isHexDigit): Commented out.
405         (pushBackBuffer::isString): Remove unused variable.
406         * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
407         warning.
408         * src/devices/grops/psrm.cc (resource_manager::lookup_font,
409         resource_manager::read_resource_arg, read_one_of, parse_extensions):
410         Ditto.
411         * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
412         * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
413         lookup_paper_size): Ditto.
414         * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
415         (text_glob, element_list): Reorder members.
416         * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
417         compiler warning.
418         * src/devices/grohtml/html-text.h (html_text::emit_space): Change
419         return value to `void'.
420         * src/devices/grohtml/output.cc (word_list::word_list): Fix order
421         of initializers.
422         * src/devices/grohtml/html.h (simple_output::check_newline,
423         simple_output::space_or_newline, simple_output::enable_newlines):
424         Add return value.
425         * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
426         compiler warnings.
427         * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
428         * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
429         output_ligatures, output_charset, read_map): Ditto.
430         * src/utils/lookbib/lookbib.cc (main): Ditto.
431         * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
432         (do_file): Fix typo (`=' -> `==').
433         * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
434         * src/utils/addftinfo/addftinfo.cc (main): Ditto.
435
436 2001-04-18  Ruslan Ermilov  <ru@FreeBSD.org>
437
438         * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
439         Fix usage of GROFF_BIN_PATH.
440         * src/roff/nroff/nroff.man: Updated.
441
442 2001-04-18  Werner LEMBERG  <wl@gnu.org>
443
444         * NEWS: Fixing typos.
445         Updated.
446
447 Version 1.17 released
448 =====================
449
450 2001-04-17  Werner LEMBERG  <wl@gnu.org>
451
452         * tmac/Makefile.sub (install-data): mdoc.local-s is in current
453         directory, not in $(srcdir).
454
455 2001-04-16  Werner LEMBERG  <wl@gnu.org>
456
457         * doc/groff.texinfo: More info on conditionals.
458
459 2001-04-15  Werner LEMBERG  <wl@gnu.org>
460
461         * doc/groff.texinfo: Added some info about groff internals.
462
463         * src/roff/troff/node.cc (make_glyph_node): Emit warning message
464         about missing special character only if the name is non-null.
465
466 2001-04-14  Werner LEMBERG  <wl@gnu.org>
467
468         Removing the grohtml-old device driver which is now obsolete.
469
470         * src/devices/grohtml-old/*: Removed.
471         * font/devhtml-old/*: Removed.
472         * src/libgroff/htmlindicate.cc (graphic_start, graphic_end): Remove
473         comments.
474         * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
475         * test-groff (PATH): Updated.
476         * tmac/Makefile.sub (NORMALFILES): Updated.
477         * tmac/an-old.tmac: Remove special code for html-old device.
478         Replace `html-or-html-old' register with `an-html'.
479         * tmac/eqnrc: Updated.
480         * tmac/html-old.tmac: Removed.
481         * tmac/troffrc, tmac/troffrc-end: Updated.
482         * tmac/www.tmac: Remove special code for html-old device.
483         Replace `html-or-html-old' register with `www-html'.
484
485         * src/libgroff/tmpfile.cc (remove_tmp_files),
486         src/libgroff/htmlindicate.cc (graphic_end), include/htmlindicate.h,
487         src/preproc/grn/*.cc, src/roff/groff/env.{cc,h}: Remove `void'
488         parameter if used as a single argument for consistency with rest of
489         source code.
490
491         * aclocal.m4, tmac/an-old.tmac: Fix copyright.
492
493 2001-04-13  Ruslan Ermilov  <ru@FreeBSD.org>
494
495         * src/roff/troff/troff.man: Fixing typos.
496
497 2001-04-13  Werner LEMBERG  <wl@gnu.org>
498
499         * doc/pic.ms: Fixing many font switches.
500         * doc/groff.texinfo: Fixes, additions.
501         * MORE.STUFF: Updated.
502
503 2001-04-12  Gaius Mulley  <gaius@glam.ac.uk>
504
505         * src/devices/grohtml/grohtml.man: Updated manual page regarding
506         simple anchor.
507         * src/preproc/html/pre-html.cc (createImage): Fixed right hand
508         cropping of images.
509         (removeTempFiles): New function to tidy up temporary files.
510         * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
511         Many fixes to do with the new inline suppress node and image regions
512         are much tighter.
513         * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
514         (generate_img_src): New function.
515         (html_printer::do_auto_image): Utilizes it.
516         (do_heading, do_title): Include inline images within their contents.
517         (html_printer::begin_page): Tidied up comments that are issued to
518         the html output file.
519         (html_printer::do_fill): Fixed so that `.nf' works with fonts other
520         than courier.
521         (text_glob::is_br): New method used by do_heading.
522         * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
523         equivalent diversion.
524         * src/include/html-strings.h: Altered image tags to reflect the
525         inline image node.
526         * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
527         parameter.
528         * src/preproc/eqn/main.cc: Will suppress generation of image tags if
529         it is already inside a pic image.  Only emit tags if the argument
530         `-Tps:html' is present.
531         * src/preproc/tbl/main.cc: Changes to reflect additional
532         `html_end_suppress' parameter.
533         * src/roff/troff/env.cc: Only emit eol tag if a node has been
534         emitted since the last eol tag was written.
535         * src/roff/troff/env.h: New boolean `emitted_node'.
536         * src/roff/troff/input.cc (do_suppress): Handles extra suppress
537         nodes \O3, \O4, \O5.  No longer use `output_low_mark_miny'.
538         * src/roff/troff/node.cc (check_charinfo): New method. 
539         (troff_output_file::determine_line_limits): Alterations to limit
540         checking.
541         * tmac/www.tmac: Changes to reflect new suppress nodes.
542           
543 2001-04-12  Bruno Haible  <haible@clisp.cons.org>
544
545         * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
546         Escape the html_glyph in the buffer.
547         (str_translate_to_html): Output the unescaped escaped_char.
548         * src/devices/grohtml/html-text.cc (issue_table_begin): Set
549         `frame=void', not `frame=none'.  Add `border=0'.
550
551 2001-04-12  Ruslan Ermilov  <ru@FreeBSD.org>
552
553         * contrib/mm/groff_mm.man: Fixing some typos.
554
555 2001-04-12  Werner LEMBERG  <wl@gnu.org>
556
557         * PROBLEMS: Add some words on how to avoid wrapper macros.
558
559 2001-04-11  Blake McBride  <blake@florida-software.com>
560
561         * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
562
563 2001-04-11  Werner LEMBERG  <wl@gnu.org>
564
565         * font/devlbp/Makefile.sub (CLEANADD): Set it.
566         * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
567         * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
568         * Makefile.sub (DISTCLEANFILES): Here.
569
570         * libs/libgroff/new.cc: Include `nonposix.h'.
571         * win32-diffs: Updated.
572
573 2001-04-10  Ruslan Ermilov  <ru@FreeBSD.org>
574
575         Added skeleton macro for defunct macros.
576
577         Updated documentation.
578
579         When inside displays, an empty input line warning should be
580         suppressed.  If another macro call is put inside a display,
581         all subsequent empty lines found in that display caused a
582         warning to be emitted.
583
584         * tmac/doc.tmac (doc-defunct-macro): New macro.
585         (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
586         (doc-restore-global-vars): Fixed typo.
587         (doc-empty-line): Check the `doc-display-depth' register to
588         determine whether we are inside display or not.
589
590         * tmac/doc-common: Removed `Or' and `Sf' registers.
591         Moved obsolete `Ds' macro to doc.tmac.
592
593         * tmac/groff_mdoc.man: Bump document date.
594         Document `.Vt' under ``Variable Types''.
595         Removed documentation for obsolete `.Or' macro.
596
597 2001-04-10  Werner LEMBERG  <wl@gnu.org>
598
599         * NEWS: Updated.
600         * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
601
602 2001-04-10  Bruno Haible  <haible@clisp.cons.org>
603
604         * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
605         (usage): Add stream argument. Don't exit.
606         * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
607         Write --version output to stdout, not stderr.
608         (usage): Add stream argument. Don't exit.
609         * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
610         (usage): Add stream argument. Don't exit.
611         * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
612         constants.
613         (usage): Add stream argument. Don't exit.
614         (main): Write --help output to stdout, not stderr.
615         * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
616         (usage): Add stream argument. Don't exit.
617         * src/devices/grops/ps.cc (main): Accept --help and --version.
618         (usage): Add stream argument. Don't exit.
619         * src/devices/grotty/tty.cc (main): Accept --help and --version.
620         (usage): Add stream argument. Don't exit.
621         * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
622         (main): Accept --help and --version.
623         * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
624         (main): Accept --help and --version.
625         * src/preproc/html/pre-html.cc (usage): Add stream argument.
626         (scanArguments): Accept --help and --version.
627         * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
628         (main): Accept --help and --version.
629         * src/preproc/refer/refer.cc (main): Accept --help and --version.
630         (usage): Add stream argument. Don't exit.
631         * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
632         exit.
633         (main): Accept --help and --version.
634         * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
635         (main): Accept --help and --version.
636         * src/roff/groff/groff.cc (main): Accept --help and --version.
637         (synopsis): Add stream argument.
638         (help): Write --help output to stdout, not stderr.
639         (usage): Add stream argument. Don't exit.
640         * src/roff/grog/grog.pl: Accept --help and --version.
641         (help): New sub.
642         * src/roff/grog/grog.sh: Accept --help and --version.
643         * src/roff/nroff/nroff.sh: Accept --help and --version.
644         * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
645         (usage): Add stream argument. Don't exit.
646         (main): Accept --help and --version.
647         * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
648         (usage): New function with stream argument, doesn't exit.
649         * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
650         (usage): New function with stream argument, doesn't exit.
651         * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
652         (usage): Add stream argument. Don't exit.
653         * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
654         (main): Accept --help and --version.
655         * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
656         exit.
657         (main): Accept --help and --version.
658         * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
659         (main): Accept --help and --version.
660         * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
661         (usage): Add stream argument. Don't exit.
662
663 2001-04-10  Ruslan Ermilov  <ru@freebsd.org>
664
665         Fix indentation in SYNOPSIS.
666
667         Updated to include changes of latest BSD mdoc version (basically,
668         the only change is that `.Fn' and `.Fc' put a final semicolon after
669         a function declaration in the SYNOPSIS section).
670
671         * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
672         (doc-in-synopsis-section): New variable.  Updated all related
673         functions.
674         (doc-indent-synopsis-active): New register.
675         (Nd, Fn, Fo): Use it.
676         (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
677         `.Cd' with long argument line produces indented wrapped lines. 
678         Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
679         undesirable line break to be output.
680         (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
681         `.rs'.
682         (Fn, Fc): Add final `;' to output.
683         (doc-save-global-vars, doc-restore-global-vars): Updated.
684         * tmac/doc-common: Remove `Ex' register.
685         Updated.
686         * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
687         copyright.
688
689 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
690
691         * tmac/doc.tmac (Cd): Simplify code.
692         * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
693
694 2001-04-06  Werner LEMBERG  <wl@gnu.org>
695
696         Implement continuous underlining for nroff mode.  To do that, a new
697         request in the ditroff language has been added: `x u N' (N is 0
698         or 1).
699
700         \X and \Y are now transparent to end-of-sentence recognition.
701
702         * src/include/printer.h (printer): Add `type' parameter to `special'
703         method.
704         * src/libs/libdriver/printer.cc (printer::special): Updated.
705         * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
706
707         * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
708         specials of type `p'.
709         * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
710         * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
711         * src/devices/grops/ps.cc (ps_printer::special): Ditto.
712         * src/devices/grotty/tty.cc: Add new enum CU_MODE.
713         (glyph::order): New method.
714         (tty_printer::add_char): Use it.
715         (tty_printer::special): New method.
716         (tty_printer::end_page): Implement it.
717
718         * src/roff/troff/node.h (special_node): Add `no_init_string' member.
719         * src/roff/troff/node.cc (special_node::special_node): Add parameter
720         to set `no_init_string'.
721         (special_node::tprint_start): Use it.
722         (special_node::same, special_node::copy): Updated.
723         (special_node::ends_sentence): New method.
724         (troff_output_file::start_special): Add parameter to include
725         inititialization of special conditionally.
726
727         * src/roff/troff/env.h (environment): New member `underline_spaces'.
728         * src/roff/troff/env.cc (do_underline_special): New function.
729         (environment::set_font): Use it.
730         (do_underline): Use it.  This was `underline()'.
731         (underline): Call `do_underline()'.
732         (continuous_underline): New function which calls `do_underline()'.
733         (environment::newline): Use `do_underline_special()'.
734         (init_env_requests): Updated.
735
736         * NEWS, man/troff_out.man: Updated.
737
738 2001-04-06  Bruno Haible  <haible@clisp.cons.org>
739
740         * font/devutf8/R.proto: Fix code of 'shc'.
741
742 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
743
744         Many fixes.  Diag lists can now be nested also; additionally,
745         `-compact' and `-offset' are supported.
746
747         * tmac/doc.tmac (doc-have-indent): Replaced with ...
748         (doc-list-have-indent-stackXXX): A new register stack.
749         (doc-have-diag-list): Removed.
750         (Bl): Use `doc-list-have-indent-stackXXX'.
751         (El): Updated.
752         (doc-diag-list): Use `doc-compact-list-stackXXX'.
753         (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
754         (doc-set-vertical-and-indent): Ditto.
755         (doc-next-list-depth): Removed.
756         (doc-increment-list-stack): Updated.
757         (doc-decrement-list-stack): Use `doc-list-depth' instead of
758         `doc-next-list-depth'.
759         (doc-end-list, doc-end-column-list): Don't use
760         `doc-increment-list-stack'.
761         (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
762         (doc-save-global-vars, doc-restore-global-vars): Updated.
763         * tmac/doc-common: Updated.
764         * tmac/groff_mdoc.man: Updated.
765         * NEWS: Fix typo.
766
767 2001-04-02  Werner LEMBERG  <wl@gnu.org>
768
769         * src/devices/grotty/grotty.man: Fix grammatical error.
770
771 2001-03-30  Ruslan Ermilov  <ru@freebsd.org>
772
773         Remove .Ld from mdoc package; replace it with special handling of
774         `...'.
775
776         * tmac/doc-common: Remove `Ld' register.
777         Uncomment `doc-volume-ds-*' strings.
778         Remove `doc-operating-system-default'.
779         (Os): Updated.
780         * tmac/doc-syms (Ld): Removed.
781         * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
782         `...' specially.
783         * NEWS: Updated.
784
785         * tmac/groff_mdoc.man: Many fixes and updates.
786
787 2001-03-29  Werner LEMBERG  <wl@gnu.org>
788
789         * tmac/troffrc-end: Protect data with `.do'.  Reported by T. Kurt
790         Bond <tkb@tkb.mpl.com>.
791         * tmac/www.tmac: Save compatibility mode.
792
793 2001-03-28  Ruslan Ermilov  <ru@freebsd.org>
794
795         * tmac/groff_mdoc.man: Many fixes.
796
797 2001-03-28  Werner LEMBERG  <wl@gnu.org>
798
799         * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
800         isn't recognized.
801
802 2001-03-27  Werner LEMBERG  <wl@gnu.org>
803
804         * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
805         diversion.  This fixes overlong tags.
806
807 2001-03-26  Werner LEMBERG  <wl@gnu.org>
808
809         * doc/groff.texinfo: Fixed and improved documentation of fonts.
810         * tmac/doc-syms: Fix error messages.
811         * tmac/an-old.tmac: Remove incorrect double backslashes.
812
813 2001-03-24  Ruslan Ermilov  <ru@freebsd.org>
814
815         * tmac/Makefile.sub: Strip mdoc.local also
816         * tmac/strip.sed: Fixed.
817
818 2001-03-24  Werner LEMBERG  <wl@gnu.org>
819
820         * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
821         selecting the font size.
822         * tmac/groff_mdoc.man, NEWS: Document it.
823
824 2001-03-23  Werner LEMBERG  <wl@gnu.org>
825
826         * src/roff/troff/div.cc (save_vertical_space): Add default argument
827         to `sv' request.
828         * src/roff/troff/env.cc (family_change): Make `.fam' accept no
829         argument to restore previous font family.
830         * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
831
832         * doc/groff.texinfo: More fixes and additions (mainly for font
833         manipulating commands).
834
835         * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
836         * tmac/groff_mdoc.man: This.  The quick reference has been removed.
837         * tmac/Makefile.sub, NEWS: Updated.
838
839 2001-03-23  Werner LEMBERG  <wl@gnu.org>
840
841         Replaced mdoc implementation.  The new version is `state of the
842         art', using almost all new features of groff 1.17 -- it won't run
843         with older versions.
844
845         * tmac/doc.tmac: Completely rewritten.
846         * tmac/doc-common: Ditto.
847         * tmac/doc-nroff: Ditto.
848         * tmac/doc-ditroff: Ditto.
849         * tmac/doc-syms: Ditto.
850         * tmac/mdoc.local: New file.
851         * tmac/groff_mdoc.samples.man: Replaced with ...
852         * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
853         * tmac/strip.sed: Updated.
854         * tmac/Makefile.sub: Updated.
855         * INSTALL: Updated.
856
857         * tmac/groff_man.man: Add `man.local' to the FILES section.
858
859 2001-03-22  Werner LEMBERG  <wl@gnu.org>
860
861         * doc/groff.texinfo: Added many @noindent.
862         Replaced @end_Example -> @endExample.
863         Added info whether registers are r/o.
864         Many other additions and fixes.
865
866 2001-03-21  Werner LEMBERG  <wl@gnu.org>
867
868         * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
869         in makeinfo of texinfo 4.0) to be used in @Def* macros.
870         Improved @Def* macros: Now the exact syntax of request, register,
871         and escapes is shown.
872         Added macros for parentheses and brackets to be used in @Def*.
873         Many fixes and improvements of the documentation.
874
875 2001-03-20  Werner LEMBERG  <wl@gnu.org>
876
877         * doc/groff.texinfo: Added new index: `st' (for strings).
878         Added macros @Defstr(x).
879         Added macro @Example (adding @group).
880         Other minor improvements.
881
882 2001-03-19  Werner LEMBERG  <wl@gnu.org>
883
884         * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
885         `rq' for requests.  `fn' is no longer used.
886         Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
887         Removed @Deffn(x).
888
889         * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
890         number with name of man page.
891
892 2001-03-19  Larry Kollar  <kollar@alltel.net>
893
894         * doc/groff.texinfo: Complete revision.  Added many @Deffn to gain
895         consistency.
896
897 2001-03-19  Werner LEMBERG  <wl@gnu.org>
898
899         * man/groff_font.man: Document `prepro', `postpro', and `print'.
900         * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
901         * src/devices/grohtml/grohtml.man: Fixing typos.
902
903 2001-03-19  Gaius Mulley  <gaius@glam.ac.uk>
904
905         * tmac/s.tmac (@IP): Pass `.ip' html tag.
906         * tmac/groff_mwww.man: Remove .LINE macro
907         * tmac/www.tmac (LINE): Add `.ti'.
908
909         * src/devices/grohtml/post-html.cc (html_printer): New member
910         `indent'.
911         (html_printer::emit_raw): Use it.
912         (html_printer::do_linelength): Ditto.
913         (html_printer::do_pageoffset): Ditto.
914         (html_printer::do_indentation): Ditto.
915         (html_printer::do_tempindent): Ditto.
916         (html_printer::do_break): Ditto.
917         (html_printer::begin_page): Ditto.
918         (html_printer::do_indentedparagraph): New function.
919         (html_printer::troff_tag): Handle `.ip'.
920         * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
921         Add `<td width=...>' handling.
922         (html_text::do_table): Add parameter.
923         (html_text::do_indent): Updated.
924         * src/devices/groohtml/html-text.h: Updated.
925
926 2001-03-16  Gaius Mulley  <gaius@glam.ac.uk>
927
928         Introduced simple html tables to implement indentation.
929
930         * src/devices/grohtml/html.h (word, word_list): New structures.
931         (simple_output): Use it.
932         * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
933         (html_printer): Improve indentation handling.
934         (html_printer::emit_raw): Set `in_table' element.  Handle
935         indentation if set.
936         (html_printer::write_header): Move conditional downwards.
937         Don't allow whitespace in tags.
938         (html_printer::do_linelength): Handle line length and indentation
939         conditionally.
940         (html_printer::do_pageoffset): Handle indentation conditionally.
941         (html_printer::do_indentation): Ditto.
942         (html_printer::do_tempindent): New function member.
943         (html_printer::do_fill): Take care of indentation.
944         (html_printer::do_flush): Finish table.
945         (html_printer::do_links): Ditto.
946         (html_printer::do_break): New function for handling `.br' and `.ti'.
947         (html_printer::troff_tag): Use it.
948         Handle `.ti'.
949         (html_printer::flush_globs): Fix.
950         (html_printer::flush_page): Finish table.
951         (html_printer::html_printer): Fix error message.  Set up
952         `linelength'.
953         (html_printer::add_to_sbuf): Remove special handling of character
954         code 255.
955         (to_unicode): Remove `stop()'.
956         (html_printer::write_title): Cleanup.
957         (html_printer::begin_page): Use `put_string()'.  Handle indentation.
958         (html_printer::~html_printer): Flush text and end the line.
959         Use `put_string()'.
960         * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
961         * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
962         emission of tags.
963         (html_text::start_tag): Disable newlines.
964         (html_text::table_is_void): New function.
965         (html_text::issue_table_begin): Ditto.
966         (html_text::issue_table_end): Ditto.
967         (html_text::push_para): Better table handling.
968         (html_text::do_indent): New function.
969         (html_text::do_table): Ditto.
970         (html_text::done_table): Ditto.
971         (html_text::do_tt): Handle PRE_TAG.
972         (html_text::is_in_table): New function.
973         (html_text::check_emit_text): Handle tables.
974         (html_text::do_emittext): Use `nl()'.
975         (html_text::do_para): Handle table.
976         (html_text::remove_def): New function.
977         * src/devices/grohtml/output.cc (word, word_list): Implement
978         methods.
979         (simple_output::end_line): Flush last word.
980         (simple_output::simple_comment): Ditto.
981         (simple_output::begin_comment): Recoded.
982         (simple_output::end_comment): Ditto.
983         (simple_output::comment_arg): Removed.
984         (simple_output::check_newline): Improve test and flush last word.
985         (simple_output::space_or_newline): Improved.
986         (simple_output::write_newline): Replaced with...
987         (simple_output::nl): This.
988         (simple_output::put_raw_char): Flush last word.
989         (simple_output::check_space): Removed.
990         (simple_output::put_translated_string): Ditto.
991         (simple_output::put_string): Simplified.
992         (simple_output::put_number): Updated.
993         (simple_output::put_float): Ditto.
994         (simple_output::put_symbol): Removed.
995         (simple_output::enable_newlines): Add `check_newline()'.
996         (simple_output::flush_last_word): New function.
997
998         * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
999         * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
1000
1001         * tmac/s.tmac (@PP, @IP): Add html conditional code.
1002         * tmac/an-old.tmac (TP): Ditto.
1003
1004 2001-03-09  Ruslan Ermilov  <ru@freebsd.org>
1005
1006         * mdate.sh: Make it POSIX compliant.
1007
1008 2001-03-09  Werner LEMBERG  <wl@gnu.org>
1009
1010         Added the `return' request to end a macro immediately.  It simply
1011         pops iterators from the input stack until a macro iterator is found.
1012
1013         * src/roff/troff/input.cc (input_iterator::is_macro,
1014         macro_iterator::is_macro): New member.
1015         (input_return_boundary): New class to signal an immediate return
1016         to while_request().
1017         (input_stack::add_return_boundary, input_stack::is_return_boundary):
1018         New functions.
1019         (input_stack::clear): Use it.
1020         (input_stack::pop_macro): New function.
1021         (while_request): Use `is_return_boundary()'.
1022         (return_macro_request): New function.
1023         (init_input_requests): Use it.
1024
1025         * src/roff/troff/TODO: Updated.
1026         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
1027
1028 2001-03-08  Werner LEMBERG  <wl@gnu.org>
1029
1030         * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
1031         cleanup.
1032
1033 2001-03-07  Werner LEMBERG  <wl@gnu.org>
1034
1035         Make `\B' more rigid.
1036
1037         * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
1038         parameter.
1039         (get_number_rigidly): New function.
1040         * src/roff/troff/input.cc (do_expr_test): Use it.
1041         * src/roff/troff/token.h: Updated.
1042
1043         * src/roff/troff/request.h: Fix typo (init_html_request ->
1044         init_markup_request).
1045
1046 2001-03-04  Gaius Mulley  <gaius@glam.ac.uk>
1047
1048         Fixed grohtml handling of any named glyph for glyph indexes < 0x80. 
1049         Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
1050         are now `.begin', `.end', `.image'.
1051
1052         * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
1053         (html_printer::add_to_sbuf): Changing type of `code' parameter.
1054         Use add_char_to_sbuf().
1055         (to_unicode): New function.
1056         (char_translate_to_html): Changing type of `ch' parameter.
1057         Use `to_unicode()'.
1058         (html_printer::~html_printer): Comment out doctype string.
1059         * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
1060         instead of `.html-end'.
1061         (write_start_image): Use `.begin' and `.image' instead of
1062         `.html-begin' and `.html-image'.
1063         * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
1064         (html_begin): Renamed to ...
1065         (begin): This.
1066         (html_end): Renamed to ...
1067         (end): This.
1068         (html_image): Renamed to ...
1069         (image): This.
1070         (init_html_requests): Renamed to ...
1071         (init_markup_requests): This.
1072         * tmac/www.tmac: Updated.
1073
1074 2001-02-28  Bram  <bram@avontuur.org>
1075
1076         * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
1077         constructor.
1078
1079 2001-02-26  David Leonard  <david.leonard@csee.uq.edu.au>
1080
1081         * doc/meref.me: Fixing some typos.
1082
1083 2001-02-16  Werner LEMBERG  <wl@gnu.org>
1084
1085         * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
1086         method.  Return `HYPHEN_MIDDLE' if it was `\:'.
1087         * src/roff/troff/node.h: Updated.
1088
1089 2001-02-17  Ruslan Ermilov  <ru@FreeBSD.org>
1090
1091         * tmac/groff_tmac.man: Fix typo.
1092
1093 2001-02-16  Werner LEMBERG  <wl@gnu.org>
1094
1095         Fixing a bug which prevented proper end-of-sentence recognition
1096         between an `unformatted' box and the following text.  As a
1097         consequence, vertical line distances are no longer preserved in
1098         boxes after a call to `.unformat' -- because boxes aren't
1099         line-oriented (contrary to diversions), this doesn't make sense
1100         anyway.
1101
1102         * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
1103         value.
1104         (vertical_size_node::set_unformat_flag): New method.
1105         * src/roff/troff/node.hh: Updated.
1106         * src/roff/troff/input.cc (word_space_node::reread,
1107         hmotion_node::reread): Reset `unformat' flag after usage.
1108         (unformat_macro): Append only if `set_unformat_flag()' returns
1109         non-zero.
1110         * src/roff/troff/troff.man: Updated.
1111
1112 2001-02-15  Werner LEMBERG  <wl@gnu.org>
1113
1114         * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
1115         documentation of `asciify' and `unformat' requests.
1116
1117 2001-02-13  Werner LEMBERG  <wl@gnu.org>
1118
1119         Redesigned the `unformat' request.  It is no longer connected with
1120         `asciify' but rather uses new `reread()' methods if the `unformat'
1121         flag is set.  Additionally, the handling of space characters after
1122         unformatting has been fixed so that they retain their width.
1123
1124         * src/roff/troff/node.h (width_list): New structure to store
1125         original widths of spaces.
1126         (node): Added `unformat' member.
1127         Replaced `num_spaces' variable with `orig_width' list.
1128         * src/roff/troff/node.cc (*node::asciify,
1129         asciify_reverse_node_list): Removed `unformat_only' flag and related
1130         code.
1131         (word_space_node::asciify, word_space_node::word_space_node): Use
1132         `orig_width'.
1133         (word_space_node::~word_space_node): New destructor.
1134         (word_space_node::copy): Updated to handle `orig_width'.
1135         (hmotion_node::copy, unbreakable_space_node::copy): Updated.
1136         (*node::merge_space): Update `orig_width' list if necessary.
1137         (*node::set_unformat_flag): New methods to set the `unformat' flag.
1138         * src/roff/troff/enc.cc (environment::space_newline): Use
1139         `width_list'.
1140         (environment::space): Added method to handle space width and
1141         sentence space width as parameters.  Use `width_list'.
1142         (environment::make_tab_node): Updated.
1143         * src/roff/troff/env.h: Updated.
1144         * src/roff/troff/input.cc (word_space_node::reread,
1145         unbreakable_space_node::reread, hmotion_node::reread): New methods
1146         to handle nodes specially if `unformat' flag is set.
1147         (do_asciify_macro): Renamed back to ...
1148         (asciify_macro): This.
1149         (unformat_macro): New implementation to simply set the `unformat'
1150         flag.
1151
1152         * MORE.STUFF: Added more info about deroff.
1153
1154 2001-02-08  Werner LEMBERG  <wl@gnu.org>
1155
1156         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
1157         space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
1158         and `add_self()' methods to avoid hyphenation.  For example, the
1159         hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
1160         soft hyphen after `foo'.  Now the hyphen list is correctly
1161         `foo<ignore><ignore>bar'.
1162
1163 2001-02-05  Yoshiteru Kageyama  <yt-kage@cb3.so-net.ne.jp>
1164
1165         * tmac/groff_tmac.man: Fix `BIR' macro.
1166
1167 2001-02-04  Werner LEMBERG  <wl@gnu.org>
1168
1169         A new escape sequence `\:', inserting a zero-width break point.
1170
1171         * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
1172         * src/roff/troff/input.cc (get_copy, token::next, asciify):
1173         Implement it.
1174         * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
1175         method.
1176         (space_node): Add `was_escape_colon' member.  Add `is_escape_colon()'
1177         and `asciify()' methods.
1178         * src/roff/troff/node.cc (space_node::space_node): Updated.
1179         (space_node::asciify): Handle `was_escape_colon'.
1180         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
1181
1182         Handle `\~' similar to other comparable requests.
1183
1184         * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
1185         label.
1186         (token::next): Move creation of an unbreakable_space_node to...
1187         (token::add_to_node_list): Here.
1188
1189         Fix a bug which sometimes prevented hyphenation of words connected
1190         with `\~' or `\ ' (and other escape sequences handled as
1191         TOKEN_NODE).  This also fixes a hyphenation problem with boxes
1192         (after a call to the `unformat' request).
1193
1194         * src/roff/troff/env.h (environment::possibly_break_line,
1195         environment::hyphenate_line): Introducing `start_here' parameter.
1196         * src/roff/troff/env.cc (environment::space_newline,
1197         environment::space): Use it.
1198         (environment::possibly_break_line, environment::hyphenate_line):
1199         Implement it.
1200         * src/roff/troff/input.cc (process_input_stack): Use it.
1201         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
1202         space_char_hmotion_node, overstrike_node): Add
1203         `get_hyphenation_type()' method.
1204         * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
1205         if `unformat_only' is active.
1206
1207 2001-01-30  Werner LEMBERG  <wl@gnu.org>
1208
1209         Implemented new read-only number register `.linetabs' which
1210         returns 1 if in line-tabs mode, 0 otherwise.
1211
1212         * src/roff/troff/env.h (environment): Add get_line_tabs() member.
1213         * src/roff/troff/env.cc (get_line_tabs): New function.
1214         (init_env_requests): Use it.
1215         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
1216
1217         * VERSION, REVISION: Changing to 1.17.0.
1218
1219 2001-01-28  Werner LEMBERG  <wl@gnu.org>
1220
1221         Fixed a bug which prevented hyphenation of words which are finished
1222         with `\)'.
1223
1224         * src/roff/troff/token.h (token): Add enum type
1225         `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
1226         * src/roff/troff/input.cc (token::next, token::description,
1227         get_line_arg, token::add_to_node_list, token::process): Use it.
1228
1229 2001-01-27  Werner LEMBERG  <wl@gnu.org>
1230
1231         * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
1232         * src/roff/troff/div.cc (do_divert): Use it.
1233
1234         * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
1235
1236 2001-01-25  Werner LEMBERG  <wl@gnu.org>
1237
1238         Adding the `linetabs' request.  If set, tab distances are not
1239         computed relative to the input line but relative to the output line.
1240
1241         * src/roff/troff/env.h (environment): New member `line_tabs'.
1242         * src/roff/troff/env.cc (line_tabs_request): Implement request.
1243         (environment::environment, environment::copy): Updated.
1244         (environment::distance_to_next_tab): Use `line_tabs'.
1245         (init_env_requests): Register request.
1246         * src/roff/troff/troff.man, man/groff.man, NEWS: Document it.  Other
1247         fixes.
1248
1249 2001-01-24  Werner LEMBERG  <wl@gnu.org>
1250
1251         Introducing a new read-only register `.int' which is set to a
1252         positive value if the last output line is interrupted (i.e., if it
1253         contains `\c').
1254
1255         * src/roff/troff/env.cc (init_env_requests): Add it.
1256         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
1257
1258 2001-01-23  Gaius Mulley  <gaius@glam.ac.uk>
1259
1260         * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
1261         * src/preproc/html/pre-html.cc (findPrefix): New function which
1262         generates the troff executable name via the system prefix.
1263         * src/preproc/eqn/main.cc: Modified warning message.
1264
1265 2001-01-23  Werner LEMBERG  <wl@gnu.org>
1266
1267         troff's `box' and `boxa' requests didn't preserve temporary
1268         indentation.
1269
1270         * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
1271         `saved_target_text_length' members.
1272         * src/roff/troff/div.cc (do_divert): Use them.
1273
1274         Tabs (but not yet leaders and fields) are now handled correctly by
1275         `asciify' request.
1276
1277         * node.h (hmotion_node): Add field `was_tab'.
1278         * env.cc (environment::make_tab_node): Set it.
1279         * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
1280
1281         Added new request `unformat' which will, contrary to `asciify',
1282         preserve font information after unformatting (i.e., only nodes
1283         dealing with horizontal space are converted back to input
1284         characters).
1285
1286         * input.cc (asciify_macro): Renamed to ...
1287         (do_asciify_macro): this, having a new parameter `unformat_only'.
1288         (asciify_macro, unformat_macro): New; using do_asciify_macro.
1289         (init_input_requests): Added `unformat'.
1290         * node.cc (*_node::asciify), asciify_reverse_node_list: Added
1291         parameter to control asciification process.
1292         * node.h (*_node::asciify): Ditto.
1293         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
1294
1295 2001-01-20  Werner LEMBERG  <wl@gnu.org>
1296
1297         * doc/groff.texinfo: Minor improvement of `.in' documentation.
1298
1299 2001-01-18  Werner LEMBERG  <wl@gnu.org>
1300
1301         * tmac/ps.tmac: Remove call of psold.tmac.
1302         * tmac/psold.tmac: Comment updated.
1303         * tmac/psnew.tmac: Removed since no longer needed.
1304         * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
1305
1306         * font/devutf8/R.proto: Adding `shc' glyph.
1307         * font/devutf8/NOTES: Updated.
1308
1309         * test-groff: Updated.
1310
1311 2001-01-15  Gaius Mulley  <gaius@glam.ac.uk>
1312
1313         First cut of the new html device driver.  Changes to pre-html and
1314         the new grohtml are too numerous to be documented here.
1315
1316         Stuff related to `html' has been renamed to `html-old' and `html2'
1317         stuff has been renamed to `html' (including directories).  The new
1318         html device driver is therefore invoked as `-Thtml'.
1319
1320         Added new `\O' escape to suppress output (needed by html driver).
1321
1322         Added functions and code to pass info about input-level commands
1323         (`.in', `.fl', etc.) to html driver.
1324
1325         Three new functions (.html-begin, .html-end, and .html-image) for
1326         better html handling: `html-begin' will execute the remaining line
1327         if at the outermost nesting level, increasing an internal counter.
1328         `html-end' does the same but decreases the internal counter.
1329         `html_image' puts its arguments into a special node (suppress_node)
1330         to define an image region.
1331
1332         The `output' request has been removed.
1333
1334         * tmac/html-tags.tmac: Removed.
1335         * tmac/arkup.tmac: Updated and renamed to ...
1336         * tmac/www.tmac: New file.
1337         * tmac/markup.tmac Updated and renamed to ...
1338         * tmac/mwww.tmac: New file.
1339         * tmac/Makefile.sub: Updated.
1340         * tmac/an-old.tmac: Updated.
1341         * tmac/eqnrc: Updated.
1342         * tmac/groff_man.man
1343         * tmac/groff_markup.man: Updated and renamed to ...
1344         * tmac/groff_mwww.man: New file.
1345         * tmac/groff_tmac.man: Updated.
1346         * tmac/html-old.tmac: Updated and Renamed from html.tmac.
1347         * tmac/html.tmac: Updated and renamed from html2.tmac.
1348         * tmac/pspic.tmac: Updated html support.
1349         * tmac/s.tmac: Added html output support.
1350         * tmac/troffrc, tmac/troffrc-end: Updated.
1351
1352         * Makefile.in, doc/Makefile: Updated.
1353         * doc/groff.texinfo: Added info about new `\O' escape.
1354         * doc/homepage.ms: Use `MAILTO' macro.
1355
1356         * font/devhtml/DESC.proto: Add `C' font.
1357         * font/devhtml/Makefile.sub: Updated.
1358         * font/devhtml/R.proto: Minor fixes.
1359         * font/devhtml-old/Makefile.sub: Updated.
1360
1361         * src/devices/grohtml-old/Makefile.sub: Updated.
1362
1363         * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
1364         method.
1365         * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
1366         graphic_start): Add `inline' parameter.  Update.
1367         (html_end_suppress, graphic_end): Update.
1368
1369         * src/include/html-strings.h: New file.
1370         * src/include/htmlindicate.h: Comments updated.
1371         * src/include/printer.h: Updated.
1372
1373         * src/preproc/eqn/main.cc (do_file, main): Updated.
1374         * src/preproc/pic/troff.cc (troff_output::start_picture,
1375         troff_output::finish_picture): Updated.
1376         * src/preproc/tbl/main.cc (process_input_file): Updated.
1377
1378         * src/roff/groff/groff.cc (main): Updated.
1379         Pass device arguments to predrivers also.
1380         Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
1381         * src/roff/troff/env.h (environment): Updated.
1382         New elements `need_eol' and `ignore_next_eol' (for html output).
1383         * src/roff/troff/env.cc (environment::environment): Add initializers
1384         for `need_eol' and `ignore_next_eol'.
1385         (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
1386         functions.
1387         (point_size, fill, no_fill, center, right_justify, line_length,
1388         indent, temporary_indent, break_request, handle_tab): Use
1389         `add_html_tag()'.
1390         (set_tabs): Use `add_html_tag_tabs()'.
1391         (environment::add_html_tag): Updated.
1392         (environment::do_break): Updated.
1393         * src/roff/troff/div.cc (space_request, flush_output): Use
1394         `environment::add_html_tag()'.
1395         * src/roff/troff/input.cc: Updated.
1396         New variable `html_level' to indicate nested `html-begin' requests.
1397         (file_iterator::fill): Use `environment::add_html_tag_eol()'.
1398         (non_interpreted_char_node, token_node, non_interpreted_node): Add
1399         `force_tprint()' method.
1400         (token::next): Handle `\O'.
1401         (do_suppress): Implement it.
1402         (html_begin, html_end, html_image): New functions.
1403         (init_output_requests): Renamed to ...
1404         (init_html_requests): this.
1405         (main): Use it.
1406         (macro::append_str, macro::append_unsigned, macro::append_int): New
1407         methods.
1408         New variable `output_low_mark_miny' to limit minimal value of y.
1409         (reset_output_registers): Use it.
1410         (output_request): Removed.
1411         (get_output_registers): New function.
1412         * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
1413         (*_node): Added `force_tprint()' if necessary.
1414         (special_node): New elements `tf' and `get_tfont()'.
1415         (suppress_node): New class.
1416         * src/roff/troff/node.cc:
1417         New global variables `image_no' and `suppress_start_page'.
1418         (real_output_file): New method `is_on()'.
1419         (troff_output_file): New method `start_special(tfont)'.
1420         (troff_output_file::really_print_line): Use `tprint' conditionally.
1421         (real_output_file::print_line): Updated.
1422         (real_output_file::on): Updated.
1423         (*_node): Added `force_tprint()'.
1424         (special_node::special_node): Initializer updated.
1425         (special_node::same, special_node::copy, special_node::tprint_start):
1426         Updated.
1427         (get_reg_int, get_reg_str): New functions.
1428         (suppress_node::*): New methods.
1429         New global variables last_position, last_image_filename;
1430         (min): New inline function.
1431         * src/roff/troff/reg.h, src/roff/troff/request.h,
1432         src/roff/troff/troff.h: Updated.
1433
1434 2001-01-13  Werner LEMBERG  <wl@gnu.org>
1435
1436         * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
1437         documentation of `asciify' request.
1438
1439 2001-01-12  Werner LEMBERG  <wl@gnu.org>
1440
1441         * src/roff/troff/input.cc: Move definition of special characters
1442         like `ESCAPE_TILDE' to ...
1443         * src/roff/troff/input.h: New file.
1444         * src/roff/troff/Makefile.sub (HDRS): Add it.
1445
1446         Extending the .asciify request to `unformat' space characters also.
1447
1448         * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
1449         to count input space characters.
1450         Update constructors to take care of it.
1451         * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
1452         `ESCAPE_SPACE' instead of normal space.
1453         (word_space_node::asciify): New method.
1454         (unbreakable_space_node::asciify): New method.
1455         (word_space_node::merge_space): New method.
1456         * src/roff/troff/env.cc (environment::space_newline,
1457         environment::space): Add code to initialize `num_spaces' (using the
1458         constructor of `word_space_node').
1459         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
1460         Document it.
1461
1462 2001-01-09  Werner LEMBERG  <wl@gnu.org>
1463
1464         * man/groff_char.man: Use table header traps only conditionally.
1465
1466 2001-01-09  Bjarni Ingi Gíslason  <bjarniig@hi.is>
1467
1468         * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
1469
1470 2001-01-08  Werner LEMBERG  <wl@gnu.org>
1471
1472         Introducing the `box' and `boxa' requests which are similar to
1473         `di' resp. `da' but omitting a partially filled line (which is
1474         restored after ending the diversion).
1475
1476         * src/roff/troff/div.h (diversion): Add elements to save partially
1477         filled line.
1478         * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
1479         partially filled line.
1480         (divert, divert_append): Updated.
1481         (box, box_append): New functions.
1482         (init_div_requests): Use them.
1483         * src/roff/troff/env.h (environment): do_divert() is now a friend.
1484         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
1485
1486         * doc/groff.texinfo: Fix documentation of `lf' request.
1487
1488 2000-12-25  Werner LEMBERG  <wl@gnu.org>
1489
1490         * src/roff/troff/troff.man, NEWS: Document `writem' request.
1491
1492 2000-12-21  Werner LEMBERG  <wl@gnu.org>
1493
1494         Ignore `ss' request if in compatibility mode.
1495
1496         * src/roff/troff/input.cc: Make `compatible_flag' non-static.
1497         * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
1498         * src/roff/troff/env.cc (space_size): Use it.
1499
1500         * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
1501         `ss' request in nroff mode.
1502
1503         * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
1504         changes.
1505
1506 2000-12-15  Ruslan Ermilov  <ru@FreeBSD.org>
1507
1508         * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
1509
1510 2000-12-13  Werner LEMBERG  <wl@gnu.org>
1511
1512         * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
1513         * src/preproc/eqn/neqn.man: Small fixes and additions.
1514
1515 2000-12-13  Ruslan Ermilov  <ru@FreeBSD.org>
1516
1517         * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
1518         Fixing typo.
1519
1520         * src/preproc/eqn/neqn.man: New file.
1521
1522         * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
1523         negative' warning.
1524
1525         * tmac/e.tmac: Add `T&' macro.
1526         Fix `indent cannot be negative' warning.
1527         * tmac/s.tmac: Fix `indent cannot be negative' warning.
1528
1529 2000-12-07  Werner LEMBERG  <wl@gnu.org>
1530
1531         * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
1532
1533 2000-12-06  Werner LEMBERG  <wl@gnu.org>
1534
1535         * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
1536         `alloca' symbol .
1537
1538         * MORE.STUFF: Added info about deroff for djgpp.
1539
1540         * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
1541         documentation of -rcR switch.
1542
1543 2000-12-03  Werner LEMBERG  <wl@gnu.org>
1544
1545         * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
1546         if -rcR=1 (which is now the default in nroff mode), a single, very
1547         long page is created instead of multiple pages: All `ne' and `wh'
1548         requests are put into conditionals; a new macro `an-end' is added to
1549         be called with `em'.
1550
1551         Some other minor cleanups.
1552
1553         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
1554
1555 2000-12-02  Werner LEMBERG  <wl@gnu.org>
1556
1557         Fixing a bug which prevented hyphenation in words followed
1558         immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
1559
1560         * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
1561         Adding possibly_break_line().
1562         * src/roff/troff/env.h (environment): Make possibly_break_line()
1563         public.
1564
1565         Make `\~' usable in .tr request.
1566
1567         * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
1568         (token): Add stretchable_space().
1569         * src/roff/troff/input.cc (token::next, token::delimiter,
1570         token::description, process_input_stack, do_translate,
1571         add_to_node_list, token::process): Use it.
1572         * src/roff/troff/node.h (node): Add fourth parameter to add_char()
1573         for adjusting the space.
1574         * src/roff/troff/node.cc (node::add_char): Implement it.  Add code
1575         for stretchable space.
1576         * src/roff/troff/input.cc (token::add_to_node_list): Use it.
1577         (make_node): Add code for stretchable space.
1578         * src/roff/troff/env.cc (environment::add_char): Use it.
1579         * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
1580         (get_copy, token::next, transparent_translate, asciify): Use it.
1581
1582         * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
1583         doc/groff.texinfo: Updated.
1584         * man/groff.man: Small reorderings.
1585
1586 2000-11-23  Werner LEMBERG  <wl@gnu.org>
1587
1588         * NEWS: Fixes.
1589         * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
1590         option.
1591         * src/roff/troff/input.cc (main): Add `config_macro_path' and
1592         `safer_macro_path' to -M option.
1593         * src/roff/troff/troff.man: Fixes.
1594
1595 2000-11-22  Werner LEMBERG  <wl@gnu.org>
1596
1597         Use safer path (except for config files) if -U isn't specified.  Add
1598         a special macro path (without home and current directory) for config
1599         files.  Add home directory to unsafe path for consistency.  Don't
1600         include the home directory in the font path.
1601
1602         * src/lib/libgroff/macropath.cc: Add `config_macro_path', change
1603         `macro_path'.
1604         * src/include/macropath.h: Add `config_macrp_path'.
1605         * src/lib/libgroff/fontfile.cc: Fix font path.
1606         * src/roff/troff/input.cc (process_startup_file): Use
1607         `config_macro_path'.
1608         (main): Select unsafe path if -U is given.
1609
1610         * src/preproc/eqn/main.cc (main): Fixing search path for
1611         configuration file.
1612         * src/preproc/eqn/eqn.man: Updated.
1613
1614         * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
1615         Updated.
1616
1617         * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
1618         src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
1619         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
1620         src/devices/grotty/grotty.man: Updated.
1621
1622         * Makefile.in: Fix comments.
1623
1624 2000-11-17  Werner LEMBERG  <wl@gnu.org>
1625
1626         * tmac/safer.tmac: Empty file added (again) for compatibility
1627         reasons.
1628         * tmac/Makefile.sub: Updated.
1629
1630 2000-11-16  Werner LEMBERG  <wl@gnu.org>
1631
1632         * src/devices/grodvi/dvi.cc (main),
1633         src/devices/grohtml2/post-html.cc (main),
1634         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
1635         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
1636         (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
1637         (main), src/preproc/html2/pre-html.cc (main),
1638         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
1639         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
1640         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
1641         (main), src/utils/hpftodit/hpftodit.cc (main),
1642         src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
1643         (main), src/utils/lookbib/lookbib.cc (main),
1644         src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
1645         (main): Use stdout for -v.
1646         * src/roff/groff/groff.cc (run_commands),
1647         src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
1648         to make direct printing to stdout possible.
1649         * src/roff/groff/pipeline.h: Updated.
1650
1651         * src/utils/afmtodit/afmtodit.pl: Add -v switch.
1652         * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
1653         * src/utils/afmtodit/afmtodit.man: Updated.
1654
1655         * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
1656         (version): New function.
1657         (usage): Updated.
1658         * src/utils/addftinfo/addftinfo.man: Updated.
1659
1660         * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
1661         Fixing copyright dates.
1662
1663         * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
1664         replacing it.
1665
1666         * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
1667         version_string.
1668
1669         * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
1670
1671 2000-11-15  Werner LEMBERG  <wl@gnu.org>
1672
1673         In all programs, make -v return immediately with exit status 0 to
1674         be compliant with the GNU standard.
1675
1676         * src/devices/grodvi/dvi.cc (main),
1677         src/devices/grohtml2/post-html.cc (main),
1678         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
1679         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
1680         (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
1681         (main), src/preproc/html2/pre-html.cc (main),
1682         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
1683         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
1684         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
1685         (main): Implement it.
1686         * NEWS: Updated.
1687
1688         * src/roff/groff/groff.cc (main): Add copyright notice.  Add refer
1689         and postprocessors to the -v option.
1690
1691         * src/roff/grog/grog.pl: Implement -v.
1692         * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
1693         * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
1694
1695         * src/roff/nroff/nroff.sh: Implement -v.
1696         * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
1697         * src/roff/nroff/nroff.man: Updated.
1698         
1699         * src/preproc/eqn/main.cc (main): Fix comment typo.
1700
1701         * MORE.STUFF: Added info about djgpp port of grap.
1702
1703 2000-11-14  Werner LEMBERG  <wl@gnu.org>
1704
1705         * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
1706         mode (or rather, implemented non-compatibility mode).
1707         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
1708
1709         * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
1710         replacing it -- we don't find gxditview otherwise.
1711         * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
1712
1713         * src/preproc/pic/depend: Removed.  Unnecessary.
1714
1715         Implemented dummy keyword `solid' in pic for compatibility with
1716         AT&T pic.
1717
1718         * lex.cc (lookup_keyword): Added `solid'.
1719         * pic.y: Added SOLID with dummy rule.
1720         * pic.cc, pic_tab.h: Regenerated.
1721         * doc/pic.ms: Updated.
1722
1723 2000-11-13  Werner LEMBERG  <wl@gnu.org>
1724
1725         For security reasons, don't use the current directory but the home
1726         directory while searching and scanning troffrc and troffrc-end.
1727         Similarly, replace the current directory with the home directory
1728         in the font path.
1729
1730         * Makefile.in (fontpath, tmacpath): Remove current directory.
1731
1732         * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
1733         two parameters `add_home' and `add_current'.
1734         (search_path::~search_path, search_path::command_line_dir,
1735         search_path::open_file): Remove tests for `dirs' being zero.
1736         * src/include/searchpath.h: Adjust.
1737         * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
1738         `safer_macro_path'.
1739         * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
1740
1741         * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
1742         * src/roff/troff/input.cc: Use `mac_path', initialized with
1743         `macro_path'.
1744         (process_startup_file): Set `mac_path' to `safer_macro_path'.
1745         * src/roff/troff/env.cc: Use `mac_path'.
1746
1747         * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
1748
1749         * NEWS, man/roff.man, src/roff/troff/troff.man,
1750         src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
1751         Updated.
1752
1753 2000-11-12  Werner LEMBERG  <wl@gnu.org>
1754
1755         * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
1756
1757         * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
1758         * configure.in: Fix typo in comment.
1759         * configure: Regenerated.
1760
1761         * src/libgroff/*, src/include/*, src/roff/troff/*: Fixing copyright
1762         dates.
1763
1764 2000-11-08  Werner LEMBERG  <wl@gnu.org>
1765
1766         Add system tmac directory (/usr/local/lib/groff/site-tmac).
1767
1768         * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
1769         (uninstall_dirs): Add $(libdir), $(libprogramdir), and
1770         $(systemtmacdir).
1771         Use @libdir@.
1772         * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
1773         * tmac/Makefile.sub (install_data): Create
1774         $(systemtmacdir) and $(localtmacdir).
1775         (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
1776         * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
1777         NEWS, doc/groff.texinfo: Updated and minor fixes.
1778
1779         * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
1780         * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
1781         $(systemtmacdir) since the wrapper files are platform-dependent.
1782
1783 2000-11-01  Werner LEMBERG  <wl@gnu.org>
1784
1785         * doc/groff.texinfo: Fix typo.
1786
1787 2000-10-26  Werner LEMBERG  <wl@gnu.org>
1788
1789         Convert macros `tmac.XXX' to `XXX.tmac'.  Special cases:
1790           tmac.doc.old -> doc-old.tmac
1791           tmac.an.old  -> an-old.tmac
1792
1793         * tmac/tmac.*: Moved to ...
1794         * tmac/*.tmac: this.
1795         * tmac/man.local: Fix comment.
1796         * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
1797         tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. 
1798         Added some `FILES' sections.  More use of @...@ directives.  Other
1799         minor updates.
1800         * arch/djgpp/README, font/devutf8/NOTES: Updated.
1801         * doc/homepage.ms, doc/groff.texinfo: Updated.
1802         * man/groff.man, man/roff.man: Updated.
1803         * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
1804         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
1805         src/devices/grotty/grotty.man: Updated.
1806         * src/preproc/pic/pic.man: Updated.
1807         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
1808         instead of -mdoc.old.
1809         * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
1810         * src/roff/nroff/nroff.man: Updated.
1811         * NEWS: Updated.
1812
1813         * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
1814
1815         * tmac/mm.diff: Removed -- it has no use now since the mm package
1816         is part of groff.
1817
1818         * tmac/*: Removed trailing spaces.
1819
1820         * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
1821         the tmac subdirectory also).
1822
1823         * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
1824         * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
1825         stuff since it is no longer needed.
1826
1827         * README, PROBLEMS: Updated.
1828
1829 2000-10-25  Werner LEMBERG  <wl@gnu.org>
1830
1831         Invert current behaviour: Search first FOOBAR.tmac, then
1832         tmac.FOOBAR.
1833
1834         * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
1835         (open_mac_file, macro_source): Implement it.
1836         * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
1837         doc/groff.texinfo, NEWS: Document it.
1838
1839         * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
1840         Small documentation improvements.
1841
1842         * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
1843         subdirectory also).
1844
1845         * font/devps/Makefile.sub: Fix rules for dingbats.*map.
1846
1847 2000-10-24  Werner LEMBERG  <wl@gnu.org>
1848
1849         Add local tmac directory (groff/site-tmac).
1850
1851         * Makefile.in: Add $(localtmacdir).
1852         (uninstall_dirs): Add $(localtmacdir).
1853         * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
1854         * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
1855         in $(localtmacdir).  Create $(localtmacdir).
1856         * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
1857         Updated and minor fixes.
1858
1859         Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
1860
1861         * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
1862
1863 2000-10-23  Werner LEMBERG  <wl@gnu.org>
1864
1865         Move hyphen.us to tmac directory.
1866
1867         * src/roff/troff/hyphen.us: Removed.
1868         * src/tmac/hyphen.us: Added.
1869         * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
1870
1871         Change installation structure for data files from .../groff/... to
1872         .../groff/<version><revision>/... to be conform with other GNU
1873         programs.
1874
1875         * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
1876         doc/Makefile: Implement it.
1877         * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
1878         * configure: Updated.
1879         * arch/djgpp/README, font/devutf8/NOTES: Use it.
1880         * NEWS: Document it.
1881         * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
1882         @MACRODIR@ instead of hard-coded directories.
1883
1884 2000-10-22  Werner LEMBERG  <wl@gnu.org>
1885
1886         Implement $GROFF_BIN_PATH environment variable (which defaults to
1887         $bindir) used for child programs of groff and similar wrappers.
1888
1889         * gendefs.sh: Improve documentation.
1890         * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
1891         src/preproc/eqn/Makefile.sub (neqn),
1892         src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
1893         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
1894         $GROFF_BIN_PATH.
1895         * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
1896         $GROFF_PATH__ (the latter for communication with troff).
1897         * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
1898         set.
1899         * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
1900         doc/groff.texinfo: Document it.
1901
1902         * doc/groff.texinfo: Improve documentation of troff's -a option.
1903
1904 2000-10-17  Gaius Mulley  <gaius@glam.ac.uk>
1905
1906         * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
1907         non-intrusive eol marker.
1908         (troff_output_file::determine_line_limits): New function.
1909         (troff_output_file::draw): Use it.
1910         * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
1911         output_pending_lines() instead of output_line().
1912         * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
1913         * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
1914         createImage): Small fixes.
1915         
1916 2000-10-14  Werner LEMBERG  <wl@gnu.org>
1917
1918         Replace tmac.safer with a real secure solution.
1919
1920         * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
1921         system_request, pipe_output): Disable requests if in safer mode.
1922         * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
1923         * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
1924         * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
1925         doc/groff.texinfo, src/roff/groff/groff.man,
1926         src/roff/troff/troff.man, arch/djgpp/README: Updated.
1927
1928         * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
1929         (resource_manager::output_prolog): Replace setenv() with putenv().
1930
1931 2000-10-09  Werner LEMBERG  <wl@gnu.org>
1932
1933         * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
1934         src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
1935         src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
1936         src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
1937         compilation errors with some compilers.  It seems that this code
1938         is no longer necessary -- if yes, it is easy to add some #ifdef's
1939         for that particular old-fashioned compiler.
1940
1941         * MORE.STUFF: Added info about Meta-tbl.
1942
1943         * doc/groff.texinfo: Added more info about `.if "..."..."'.
1944
1945 2000-10-07  Werner LEMBERG  <wl@gnu.org>
1946
1947         Adding a new escape sequence \B'...': If the string between
1948         the delimiters is a valid numeric expression, return the character
1949         `1', and `0' otherwise.  This is an analogon to \A.
1950
1951         * src/roff/troff/input.cc (do_expr_test): Implement it.
1952         (token::next): Use it.
1953         * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
1954
1955         * tmac/tmac.trace: Made independent from escape character.
1956
1957 2000-10-06  Werner LEMBERG  <wl@gnu.org>
1958
1959         Adding a new request .dei: define indirect.  The first and second
1960         parameter of .dei are taken from string registers instead directly;
1961         this very special request is needed to make tmac.trace independent
1962         from the escape character (which might even be disabled).
1963
1964         * src/roff/troff/input.cc (do_define_macro): Implement it.
1965         (define_macro_indirect): New function.
1966         (init_input_requests): Use it.
1967
1968         Adding two requests .ecs and .ecr: Save and restore the escape
1969         character.  These two requests are needed to make tmac.trace
1970         independent from the escape character (which might even be
1971         disabled).
1972
1973         * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
1974         Implement it.
1975         (init_input_requests): Use it.
1976
1977         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
1978
1979 2000-09-22  Ricardo Soares Guimarães  <ricardo@conectiva.com.br>
1980
1981         Adding a new option -P and new environment variable GROPS_PROLOGUE
1982         to grops, selecting a different prologue file (minor modifications
1983         by WL).
1984
1985         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
1986         src/devices/grops/ps.cc (main): Implement it.
1987         * src/devices/grops/grops.man, NEWS: Document it.
1988
1989 2000-09-22  Werner LEMBERG  <wl@gnu.org>
1990
1991         * INSTALL: Add info about selecting paper format.
1992
1993 2000-09-21  Werner LEMBERG  <wl@gnu.org>
1994
1995         * src/roff/troff/input.cc (main): Fixing compiler warning.
1996         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
1997         strings.h from the former to the latter.
1998         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
1999         stuff from the former to the latter.
2000
2001 2000-09-11  Werner LEMBERG  <wl@gnu.org>
2002
2003         Implementing two new requests .tm1 and .tmc: The former is similar
2004         to .tm but can output leading spaces; its syntax is similar to
2005         defining a string, i.e., a `"' can be used to mark the beginning of
2006         the string to be written to stderr: `.tm1 " test'.  The latter is
2007         similar to .tm1 but doesn't write out a final newline character.
2008
2009         * src/roff/troff/input.cc (terminal1, terminal_continue,
2010         do_terminal): New functions.
2011         (init_input_requests): Use them.
2012         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
2013
2014 2000-09-09  Werner LEMBERG  <wl@gnu.org>
2015
2016         * tmac/groff_mdoc.samples.man: Small fixes.
2017
2018 2000-09-08  Werner LEMBERG  <wl@gnu.org>
2019
2020         * tmac/groff_mdoc.man: Fixing typo.
2021
2022 2000-09-02  Werner LEMBERG  <wl@gnu.org>
2023
2024         Implementing a .nop request which does nothing.
2025
2026         * src/roff/troff/input.cc (nop_request): New function.
2027         (init_input_requests): Use it.
2028         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
2029
2030 2000-09-01  Werner LEMBERG  <wl@gnu.org>
2031
2032         * doc/groff.texinfo: Added some comments.
2033
2034 2000-08-30  Werner LEMBERG  <wl@gnu.org>
2035
2036         * src/roff/troff/TODO: Updated.
2037
2038 2000-08-28  Bruno Haible  <haible@clisp.cons.org>
2039
2040         * contrib/mm/Makefile.sub: New target 'all', makes all prerequisites
2041         of 'install'.
2042
2043 2000-08-25  Werner LEMBERG  <wl@gnu.org>
2044
2045         * doc/groff.texinfo: Fix comment how to compile the DVI file.
2046
2047 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
2048
2049         * font/devps/generate/Makefile (SHELL): Define explicitly to
2050         "/bin/sh", for non-Unix platforms.
2051         (extraclean): Use a more portable "" quoting instead of a
2052         backslash (which doesn't work on DOS/Windows).
2053         
2054         * font/devlj4/generate/Makefile (extraclean): Ditto.
2055
2056         * font/devdvi/generate/Makefile (extraclean): Ditto.
2057
2058 2000-08-25  Werner LEMBERG  <wl@gnu.org>
2059
2060         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
2061         src/roff/troff/troff.man: Document Eli's latest changes.
2062
2063 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
2064
2065         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
2066         macro file names of the form NAME.tmac as well as tmac.NAME.
2067
2068 2000-08-25  Werner LEMBERG  <wl@gnu.org>
2069
2070         * src/include/posix.h: Remove definition of FILENAME_MAX.
2071
2072         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
2073         `sys_fatal' and `stop' function().
2074
2075         * test-groff: Updated.
2076
2077 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
2078
2079         Added the new troff command .output <arg> to suppress output (while
2080         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
2081         registers (for passing the output dimensions to the output device).
2082
2083         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
2084         parameter.
2085         * src/roff/troff/node.h, src/roff/troff/node.cc
2086         (troff_output_file::really_print_line,
2087         ascii_output_file::really_print_line,
2088         supress_output_file::really_print_line): Use `width' parameter.
2089         (troff_output_file::really_on, troff_output_file::really_off,
2090         output_file::on, output_file::off, real_output_file::on,
2091         real_output_file::off, real_output_file::really_on,
2092         real_output_file::really_off): New functions.
2093         (real_output_file:public output_file): New variable `output_on'.
2094         (real_output_file::begin_page, real_output_file::copy_file,
2095         real_output_file::transparent_char, real_output_file::print_line):
2096         Use it.
2097         (real_output_file::print_line): Use check_output_limits.
2098         * src/roff/troff/reg.h, src/roff/troff/request.h,
2099         src/roff/troff/input.cc (assign_registers): New function to remove
2100         two `goto's.
2101         (do_ps_file): Use it.
2102         (check_output_limits, reset_output_registers, output_request,
2103         init_output_requests): New functions.
2104         (init_input_requests): Updated.
2105
2106         Added new grohtml2 device and html2 preprocessor (coding
2107         not yet finished) which will eventually replace grohtml.
2108
2109         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
2110         Updated.
2111         * src/include/htmlindicate.h, src/include/htmlindicate
2112         (html_begin_suppress, html_end_suppress): New functions.
2113         * src/preproc/tbl/main.cc: Use it.
2114         * src/roff/groff/groff.cc: Add support for html2 device (which will
2115         automatically invoke the html2 preprocessor).
2116         * src/roff/troff/input.cc (is_html2): New variable.
2117         * src/roff/troff/troff.h, src/roff/troff/env.h,
2118         src/roff/troff/env.cc (environment::add_html_tag): New function
2119         (uses `is_html2').
2120         (environment::do_break): Use it.
2121         * font/devhtml2/*: New files.
2122         * src/devices/grohtml2: New device.
2123         * src/preproc/html2: New preprocessor.
2124         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
2125
2126 2000-08-23  Werner LEMBERG  <wl@gnu.org>
2127
2128         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
2129
2130 2000-08-22  Werner LEMBERG  <wl@gnu.org>
2131
2132         * src/include/lib.h: Provide a fix for IRIX to not include
2133         groff-getopt.h.
2134
2135 2000-08-18  Werner LEMBERG  <wl@gnu.org>
2136
2137         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
2138         since some non-GNU sed programs can't handle null regexps.
2139         * configure, src/preproc/eqn/Makefile.sub,
2140         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
2141
2142         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
2143         bug (string.h and strings.h are both needed according to latest
2144         POSIX standard).
2145
2146         * MORE.STUFF: Added info about unroff and troffcvt.
2147
2148 2000-08-08  Werner LEMBERG  <wl@gnu.org>
2149
2150         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
2151         used before -ms.
2152
2153         * tmac/tmac.man.old: Remove unused number register.
2154
2155         * tmac.doc: Minor documentation fix.
2156
2157 2000-08-07  Paul Eggert  <eggert@twinsun.com>
2158
2159         * src/roff/groff/pipeline.c (is_system_shell):
2160         Fix typo: "monocased_shell" no longer exists.
2161
2162 2000-08-07  Paul Eggert  <eggert@twinsun.com>
2163
2164         Remove FILENAME_MAX limits.
2165
2166         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
2167         that the argument length is less than FILENAME_MAX.
2168         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
2169         Use struct hack to allocate and free file name.
2170         (struct xtmpfile_list): fname is now part of the structure,
2171         not a pointer to another string.
2172
2173 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
2174
2175         * src/include/posix.h: Add a default value for FILENAME_MAX.
2176
2177 2000-08-06  Paul Eggert  <eggert@twinsun.com>
2178
2179         Add support for new BSD-style man pages (with ".Dd" instead of
2180         ".TH"), so that "groff -man" understands both styles, even
2181         when running "groff -man" on a host whose system man page
2182         macros don't support ".Dd".
2183
2184         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
2185         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
2186         in case the system man macros don't define Dd or TH.
2187
2188         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
2189         * tmac/tmac.an: New one-line file.
2190         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
2191
2192 2000-08-06  Werner LEMBERG  <wl@gnu.org>
2193
2194         * src/roff/troff/troff.man: Fixing typos.
2195
2196 Version 1.16.1 released
2197 =======================
2198
2199 2000-07-31  Werner LEMBERG  <wl@gnu.org>
2200
2201         Preparing release 1.16.1.
2202
2203         * REVISION: Revision number set to 1.
2204         * MORE.STUFF: Added info about port to DOS.
2205         * NEWS, win32-diffs: Updated.
2206
2207         * src/include/nonposix.h: Remove first line -- this file is used
2208         in C also.
2209
2210         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
2211         link to it.
2212
2213 2000-07-30  Werner LEMBERG  <wl@gnu.org>
2214
2215         * doc/texinfo.tex: Update to latest version.
2216
2217 2000-06-28  Paul Eggert  <eggert@twinsun.com>
2218
2219         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
2220         commands that fail.  Don't assume that "export a=b" is valid shell
2221         syntax.  This is needed for Solaris 2.5.1.
2222
2223         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
2224         comment about missing Solaris headers.
2225
2226         * PROBLEMS: Add section about problems with Sun Make and VPATH.
2227
2228 2000-06-25  Werner LEMBERG  <wl@gnu.org>
2229
2230         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
2231         SET_BINARY().
2232
2233         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
2234
2235         * win32-diffs: Updated.
2236         * README.WIN32: Added CRs to make all Windows editors happy.
2237
2238         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
2239         src/roff/groff/pipeline.c).
2240
2241 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
2242
2243         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
2244         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
2245
2246 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
2247
2248         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
2249         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
2250         are binary files.
2251         (main): Support non-Posix systems with several different styles of
2252         slash characters in file names.
2253
2254         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
2255         (main) [SET_BINARY]: Switch stdin into binary mode.
2256
2257         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
2258         (main): Support file names with several possible slash-type
2259         characters, as given by DIR_SEPS[] in nonposix.h.
2260         (main) [__MSDOS__]: If renaming the temporary index file fails
2261         because it has more than one dot in its trunk, replace the dot
2262         with an underscore and try again.
2263         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
2264         Newline.
2265         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
2266
2267         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
2268         (File::File): Open the input file in binary mode.  Strip CR
2269         characters from each CR-LF pair.
2270         (xbasename): Support file names with several possible slash-type
2271         characters, as given by DIR_SEPS[] in nonposix.h.
2272
2273         * src/include/Makefile.sub (HDRS): Add nonposix.h.
2274
2275         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
2276         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
2277         [!_POSIX_VERSION]: Define for traditional Unix systems.
2278         (real_output_file::real_output_file): Remove the MSVC-specific
2279         call to popen, use instead POPEN_WT, appropriately defined on
2280         nonposix.h.  #include nonposix.h.
2281         (real_output_file::~real_output_file): Remove the MSVC-specific
2282         call to pclose, a suitable macro is now defined on nonposix.h.
2283         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
2284         and WEXITSTATUS instead of assuming traditional Unix
2285         interpretation of the status returned by pclose.
2286
2287         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
2288         call to popen, use POPEN_RT instead (appropriately defined on
2289         nonposix.h).  #include nonposix.h.
2290         (ps_bbox_request): Open the PostScript file in binary mode.
2291         Close the file after processing it.
2292         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
2293         nonposix.h.
2294
2295         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
2296         A version of run_pipeline that doesn't use `fork'.
2297         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
2298         (system_shell_name, system_shell_dash_c)
2299         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
2300         the ugliness of testing DOS/Windows file names for equality, and
2301         support both stock shells and ports of Unix shells.
2302
2303         * src/roff/groff/groff.cc: #include nonposix.h.
2304         (BSHELL): Definition moved to nonposix.h.
2305         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
2306         instead of a literal "-c".
2307         (xbasename): Support file names with several possible slash-type
2308         characters, as given by DIR_SEPS[] in nonposix.h.
2309         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
2310         of literal strings.
2311
2312         * src/preproc/soelim/soelim.cc: #include nonposix.h.
2313         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
2314
2315         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
2316         pic_tab.h.
2317
2318         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
2319
2320         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
2321         eqn_tab.h.
2322
2323         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
2324
2325         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
2326         P_tmpdir is defined, use it instead of the literal "/tmp".
2327         (remove_tmp_files, add_tmp_file): New functions.
2328         (xtmpfile): Record temporary files and register an atexit function
2329         to delete them explicitly, instead of relying on the OS to do
2330         that, which doesn't work on non-Unix systems.
2331
2332         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
2333         (search_path::search_path): Use PATH_SEP instead of a literal
2334         colon.
2335         (search_path::command_line_dir): Ditto.
2336         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
2337         to support non-Posix systems.
2338
2339         * src/libc/libbib/search.cc: #include nonposix.h.
2340         (search_list::add_file): Open the file in binary mode.
2341
2342         * src/libs/libbib/linear.cc: #include nonposix.h.
2343         (file_buffer::load): Remove \r characters preceding \n from the
2344         loaded buffer.
2345
2346         * src/libs/libbib/index.cc: #include nonposix.h.
2347         (make_index_search_item): Open index_filename in O_BINARY mode.
2348         (index_search_item_iterator::get_tag): Ditto.  Remove \r
2349         characters before \n characters.
2350         (index_search_item::check_files): Open files in binary mode.
2351         (index_search_item::munge_filename): Support DOS-style file names
2352         with backslashes and drive letters, use IS_ABSOLUTE.
2353
2354         * src/devices/grops/ps.cc: #include nonposix.h.
2355         (main) [SET_BINARY]: Switch stdout to binary mode.
2356
2357         * src/devices/grolj4/lj4.cc: #include nonposix.h.
2358         (main) [SET_BINARY]: Switch stdout to binary mode.
2359
2360         * src/devices/grolbp/lbp.cc: #include nonposix.h
2361         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
2362
2363         * src/devices/grodvi/dvi.cc: #include nonposix.h.
2364         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
2365         nonposix.h).
2366         (main) [SET_BINARY]: Switch stdout to binary mode.
2367         [_MSC_VER]: Remove an explicit call to _setmode.
2368
2369         * src/include/nonposix.h: New file.
2370
2371         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
2372         operation when building with DJGPP.
2373         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
2374         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
2375         ENVSETUP.
2376
2377         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
2378         MS-DOS.
2379         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
2380         etc. can include a semi-colon on DOS/Windows.
2381         (depend.temp): Use depend1.temp instead of depend.temp1, to
2382         prevent files from overerwiting each other on 8+3 filesystems.
2383
2384         * gendef.sh (t): Change definition to work with DOS/Windows.
2385
2386         doc/groff.texinfo: Apart of some typo corrections, I also changed
2387         some index entris, to make them more non-ambiguous, and also put
2388         @ignore around some parts that are not yet written, to allow the
2389         Info output be readable.
2390
2391 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
2392
2393         Replaced specific checks for function declarations with a generic
2394         routine taken from GNU bfd.
2395
2396         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
2397         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
2398         * configure.in: Use it.
2399         * src/devices/grolbp/lbp.cc, src/include/lib.h,
2400         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
2401         src/roff/groff/groff.cc: Use it.
2402         * Makefile.in, configure: Updated.
2403
2404 2000-06-07  Paco Andres Verdu  <pandres@dragonet.es>
2405
2406         * src/devides/grolbp/lbp.h: Removed unused variables.
2407
2408 2000-05-31  Keith Thompson  <kst@sdsc.edu>
2409
2410         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
2411         strncasecmp().
2412
2413 2000-05-31  Werner LEMBERG  <wl@gnu.org>
2414
2415         * aclocal.m4 (GROFF_SRAND): New function to test the return value
2416         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
2417         * configure.in: Use it.
2418         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
2419         * configure, Makefile.in: Updated.
2420
2421         * configure.in: Add test for strncasecmp().
2422         * src/include/lib.h: Use it.
2423
2424 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
2425
2426         * src/preproc/grn/Makefile.sub: Add MLIB.
2427
2428 2000-05-29  Nix  <nix@esperi.demon.co.uk>
2429
2430         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
2431
2432 2000-05-29  Werner LEMBERG  <wl@gnu.org>
2433
2434         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
2435
2436         * PROBLEMS: Small update.
2437
2438         * src/devices/grolbp/lbp.cc: Various small fixes.
2439
2440 2000-05-28  Keith Thompson  <kst@sdsc.edu>
2441
2442         * src/roff/nroff/nroff.sh: Fix main loop syntax.
2443
2444         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
2445
2446 2000-05-25  Werner LEMBERG  <wl@gnu.org>
2447
2448         * man/roff.man: Removed unused macro.
2449
2450 2000-05-24  Werner LEMBERG  <wl@gnu.org>
2451
2452         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
2453         This is needed e.g. if you do
2454         `make distclean; ./configure; make dist'.
2455
2456 Version 1.16 released
2457 =====================
2458
2459 2000-05-23  Werner LEMBERG  <wl@gnu.org>
2460
2461         Adding font CWI (constant width italic) to devdvi.
2462
2463         * font/devdvi/CWI: New file.
2464         * font/devdvi/generate/Makefile: Add generating rule.
2465         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
2466         tmac/tmac.dvi: Use it.
2467         * NEWS: Announce it.
2468
2469         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
2470         * font/devlj4/generate/Makefile: Cosmetic changes only.
2471
2472         * man/groff.man: Removed most of the redundant description of
2473         special characters (which is in groff_char.man).  Added font
2474         translation CB->CR for devdvi.  Other minor fixes.
2475
2476         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
2477         (registered) symbols.
2478
2479 2000-05-22  Werner LEMBERG  <wl@gnu.org>
2480
2481         * doc/Makefile: Added rule for creating info files.
2482
2483         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
2484         AMS font metrics.
2485         * font/devdvi/generate/Makefile: Fixed dependencies.
2486
2487         * font/devps/*: Regenerated.  Heavy changes for Bookman and
2488         NewCentury Schoolbook!
2489         * font/devps/generate/afmname: Will now run with GNU awk.
2490         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
2491         * font/devps/generate/Makefile: Cosmetic changes only.
2492
2493 2000-05-21  Werner LEMBERG  <wl@gnu.org>
2494
2495         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
2496         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
2497         `.SS' now produces a heading with a smaller size than `.SH'. 
2498         Completely formatted.
2499         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
2500
2501         * man/groff.man: Improved table appearance.  Use of `eo' request
2502         to reduce number of doubled backslashes in macro definitions.
2503         Replacing `\e' with `\(rs'.  Other minor fixes.
2504
2505         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
2506         to have correct line number.
2507
2508         * INSTALL: Small improvement.
2509
2510 2000-05-20  Bernd Warken  <bwarken@mayn.de>
2511
2512         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
2513         WL).
2514
2515 2000-05-19  Bernd Warken  <bwarken@mayn.de>
2516
2517         * man/groff.man: Complete update (with a lot of corrections by WL).
2518
2519 2000-05-18  Werner LEMBERG  <wl@gnu.org>
2520
2521         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
2522
2523         * font/*/*: Implement it.
2524         * man/groff_char.man, NEWS: Document it.
2525
2526         * src/include/unix.h: Removed.  It isn't used.
2527
2528         * doc/groff.texinfo: Slight improvements.
2529
2530 2000-05-17  Werner LEMBERG  <wl@gnu.org>
2531
2532         * README, win32-diffs: Small fixes and improvements.
2533
2534 2000-05-16  Werner LEMBERG  <wl@gnu.org>
2535
2536         * FDL: New file (the Free Documentation License version 1.1).
2537
2538         * doc/groff.texinfo: Added many start-up values for gtroff.
2539         Some structural improvements of the source code.
2540
2541 2000-05-15  Werner LEMBERG  <wl@gnu.org>
2542
2543         * src/roff/troff/input.cc: Added small comment about troffrc-end.
2544         * src/roff/troff/troff.man: Added info about troffrc-end.
2545
2546 2000-05-14  Werner LEMBERG  <wl@gnu.org>
2547
2548         * Makefile.in (EXTRADIRS): Fix typos.
2549         (dist): Handle deletion of old .tar.gz file correctly.
2550         (DISTDIRS): Include all tty output devices.
2551
2552         * doc/groff.texinfo: Adding more cross references; countless other
2553         fixes.
2554
2555 2000-05-13  Werner LEMBERG  <wl@gnu.org>
2556
2557         * MORE.STUFF: Added Robert Marks's utilities.
2558
2559 2000-05-12  Werner LEMBERG  <wl@gnu.org>
2560
2561         Added win32 port contributed by Blake McBride
2562         <blake@florida-software.com>.
2563
2564         * README.WIN32, win32-diffs: New files.
2565         * NEWS: Updated.
2566
2567         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
2568         (tmove, tmove2): Added parentheses to avoid compiler warnings.
2569         (change): Removed unused variables.
2570
2571         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
2572         (savebounds): Changed return value from `int' to `void'.
2573         * src/preproc/grn/hdb.cc: Ditto.
2574
2575         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
2576         final backslash in comment to avoid compiler warning.
2577
2578         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
2579
2580         * doc/groff.texinfo: More fixes.
2581
2582 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
2583
2584         * tmac/tmac.doc: Documentation fix.
2585
2586 2000-05-11  Werner LEMBERG  <wl@gnu.org>
2587
2588         * doc/groff.texinfo: Reading the source code shows up a lot of
2589         omissions and incorrect data...  More conversion to @Deffn macros.
2590
2591 2000-05-10  Werner LEMBERG  <wl@gnu.org>
2592
2593         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
2594         dependency.
2595
2596         * src/roff/troff/request.h: Removing unused `no_break_flag'.
2597
2598 2000-05-09  Werner LEMBERG  <wl@gnu.org>
2599
2600         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
2601         improvements.
2602
2603         * doc/groff.texinfo: Extended history section.  More conversion to
2604         @Deffn macros.  More .tr documentation.
2605
2606 2000-05-07  Werner LEMBERG  <wl@gnu.org>
2607
2608         * doc/groff.texinfo: Completed tab section.  Added info about
2609         fields.
2610
2611 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
2612
2613         * PROBLEMS: Describe configure script fix for OS/390 Unix.
2614
2615 2000-05-05  Werner LEMBERG  <wl@gnu.org>
2616
2617         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
2618         LaTeX 2e).
2619         * NEWS: Document it.
2620
2621         * man/troff.man: Minor optical improvements.
2622
2623 2000-05-03  Werner LEMBERG  <wl@gnu.org>
2624
2625         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
2626
2627         * font/*/*: Implement it.
2628         * man/groff_char.man, NEWS: Document it.
2629
2630 2000-05-02  Werner LEMBERG  <wl@gnu.org>
2631
2632         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
2633         expansion.
2634         * NEWS: Document the three new man pages.
2635
2636         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
2637         * configure: Updated.
2638
2639         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
2640
2641 2000-05-01  Werner LEMBERG  <wl@gnu.org>
2642
2643         Added grap support to grog.
2644
2645         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
2646         * src/roff/grog/grog.man: Document it.
2647
2648         * doc/groff.texinfo, NEWS: Add info about grap support.
2649
2650         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
2651         (with slight fixes by me).
2652
2653         * tmac/groff_tmac.man: New file documenting tmac mechanism.
2654         * tmac/Makefile.sub: Add groff_tmac.man.
2655         * man/roff.man: New file giving overview of roff system.
2656         * man/troff.man: A short reference of troff.
2657         * man/Makefile.sub: Add roff.man and troff.man.
2658
2659 2000-04-30  Werner LEMBERG  <wl@gnu.org>
2660
2661         Added grap support to groff.
2662
2663         * src/roff/groff/groff.cc: Implement it.
2664         * src/roff/groff/groff.man: Document it.
2665
2666         * src/devices/grotty/grotty.man: Add cp1047 device.
2667         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
2668         Ditto.
2669         * src/roff/groff/groff.man: Ditto.
2670         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
2671         * doc/groff.texinfo: Ditto.
2672
2673         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
2674         for cp1047.
2675
2676 2000-04-29  Werner LEMBERG  <wl@gnu.org>
2677
2678         * man/groff_char.man: Add `pc' glyph.
2679         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
2680         * tmac/tmac.tty: Add `pc' glyph.
2681         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
2682         we use cp1047 output device.
2683
2684         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
2685         there are still hardcoded latin1->unicode values in utf8's font
2686         definition files.
2687         * configure: Updated.
2688         * NEWS: Minor clarification.  Updated.
2689
2690         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
2691         Unix.
2692
2693 2000-04-28  Werner LEMBERG  <wl@gnu.org>
2694
2695         Adding EBCDIC code page 1047.
2696
2697         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
2698         font/devcp1047/DESC.proto: New files.
2699
2700         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
2701         either ascii/latin1 or cp1047.
2702         * Makefile.in: Use it.
2703         * configure: Updated.
2704
2705         Replacing and/or adding `md' (mathdot) glyph with `pc'
2706         (periodcentered) in all text fonts.
2707
2708         * font/*/*: Change it.
2709
2710 2000-04-27  Werner LEMBERG  <wl@gnu.org>
2711
2712         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
2713
2714         * configure.in: Add check for strings.h.
2715         * src/include/driver.h: Use HAVE_STRINGS_H.
2716         * src/devices/grolbp/lpb.cc: Remove string.h.
2717
2718         * src/include/groff-getopt.h: New file.  It will be used instead of
2719         getopt.h (to be included in lib.h) to avoid endless problems with
2720         picky C++ compilers.
2721         * src/include/lib.h: Use groff-getopt.h.
2722         * src/include/Makefile.sub: Updated.
2723
2724         * configure: Updated.
2725         * Makefile.in: Updated.
2726
2727         * NEWS: Mention EBCDIC support.
2728
2729 2000-04-26  Werner LEMBERG  <wl@gnu.org>
2730
2731         * TODO: Some additions.
2732
2733 2000-04-25  Werner LEMBERG  <wl@gnu.org>
2734
2735         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
2736         of mso request.
2737
2738 2000-04-23  Werner LEMBERG  <wl@gnu.org>
2739
2740         * src/roff/troff/troff.man: Minor fixes.
2741
2742 2000-04-22  Werner LEMBERG  <wl@gnu.org>
2743
2744         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
2745         `.T' string register and the incompatible definition of the `.T'
2746         number register (compared to Unix troff).
2747
2748         * man/groff_char.man: Add some missing characters.
2749         * font/devutf8/NOTES: Update.
2750
2751 2000-04-21  Werner LEMBERG  <wl@gnu.org>
2752
2753         * src/include/htmlindicate.h, src/include/lib.h,
2754         src/include/posix.h: Fix copyright.
2755
2756         * src/include/Makefile.sub: Update.
2757
2758 2000-04-20  Werner LEMBERG  <wl@gnu.org>
2759
2760         * src/roff/troff/input.cc (input_char_description): Removing
2761         superfluous space char.
2762
2763         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
2764
2765         * doc/groff.texinfo: Document EBCDIC.
2766
2767 2000-04-19  Werner LEMBERG  <wl@gnu.org>
2768
2769         Introducing `shc' as the glyph name for the soft hyphen character.
2770
2771         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
2772         font/devlatin1/R.proto: Use it.
2773
2774         * NEWS: Updated.
2775
2776 2000-04-18  Werner LEMBERG  <wl@gnu.org>
2777
2778         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
2779         dependency on ASCII order.
2780
2781 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
2782
2783         * src/libs/libgroff/illegal.c: Added EBCDIC table.
2784         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
2785
2786         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
2787         to increase portability.
2788
2789 2000-04-15  Werner LEMBERG  <wl@gnu.org>
2790
2791         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
2792         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
2793         the generic `\n' if under OS/390 Unix.
2794
2795         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
2796
2797         * configure: Regenerated.
2798
2799 2000-04-14  Werner LEMBERG  <wl@gnu.org>
2800
2801         * doc/groff.texinfo: More conversions to @Deffn.
2802
2803 2000-04-12  Werner LEMBERG  <wl@gnu.org>
2804
2805         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
2806         with `:'.
2807
2808         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
2809
2810 2000-04-10  Werner LEMBERG  <wl@gnu.org>
2811
2812         * doc/groff.texinfo: More conversions to @Deffn.
2813
2814 2000-04-08  Werner LEMBERG  <wl@gnu.org>
2815
2816         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
2817         Updated to latest version (glibc 2.1.3).
2818
2819 2000-04-07  Werner LEMBERG  <wl@gnu.org>
2820
2821         * doc/Makefile (clean): Include more index files.
2822         Add rule texinfo->dvi.
2823
2824 2000-04-05  Werner LEMBERG  <wl@gnu.org>
2825
2826         * doc/groff.texinfo: Added new index `op' for operators.  More
2827         info on end of sentence characters.  More use of @Deffn.
2828
2829 2000-03-30  Werner LEMBERG  <wl@gnu.org>
2830
2831         * */*.man: Adding a note that a whitespace can be inserted between
2832         a command line option and its parameter -- we are using GNU getopt.
2833
2834         * src/roff/groff/groff.man: Add example of `-m mandoc'.
2835
2836 2000-03-28  Werner LEMBERG  <wl@gnu.org>
2837
2838         Correct anachronism of calling the man macro file with `-man'
2839         instead of `-m man' etc.
2840
2841         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
2842         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
2843         load tmac.<package>.
2844
2845         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
2846
2847         * NEWS: Updated.
2848
2849         * doc/groff.texinfo: Updated.
2850
2851         * tmac/groff_man.man: Copyright added.
2852
2853 2000-03-27  Werner LEMBERG  <wl@gnu.org>
2854
2855         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
2856         typeset the request resp. escape name with a tt font -- due to a
2857         bug in texinfo.tex it is necessary to use the `-e' switch with
2858         texi2dvi.
2859
2860         Improving info about usage of groff units.
2861
2862         Other minor fixes.
2863
2864 2000-03-20  Werner LEMBERG  <wl@gnu.org>
2865
2866         * doc/groff.texinfo: Added section about man macro package
2867         (I've basically taken groff_man.man).  Introducing new indices `ma'
2868         for macros/strings and `gl' for glyph names.  Other minor fixes.
2869
2870         * tmac/groff_man.man: Fixed some typos.
2871
2872 2000-03-19  Werner LEMBERG  <wl@gnu.org>
2873
2874         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
2875         Other minor fixes.
2876
2877         * doc/texinfo.tex: New file.
2878
2879 2000-03-18  Werner LEMBERG  <wl@gnu.org>
2880
2881         * doc/groff.texinfo: Improved section on number registers.  Other
2882         minor updates.
2883
2884 2000-03-16  Werner LEMBERG  <wl@gnu.org>
2885
2886         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
2887         synopsis.
2888
2889         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
2890         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
2891         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
2892         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
2893
2894         * src/preproc/grn/grn.man: Better synopsis; added copyright.
2895
2896         * src/roff/grog/grog.man: Updated copyright date.
2897
2898 2000-03-14  Francisco Andres Verdu  <pandres@dragonet.es>
2899
2900         * configure.in: Added test for strdup.
2901
2902         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
2903         is available.
2904
2905         Replaced dynamic allocation of arrays `[...]' with `new' operator.
2906
2907         Other minor fixes.
2908
2909 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
2910
2911         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
2912
2913 2000-03-11  Werner LEMBERG  <wl@gnu.org>
2914
2915         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
2916         compilers silent.
2917         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
2918         * src/include/lib.h: Remove some spaces.
2919
2920 2000-03-10  Werner LEMBERG  <wl@gnu.org>
2921
2922         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
2923         initializers from arguments (some compilers don't like this).
2924
2925 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
2926
2927         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
2928         used by pic and eqn to tell grohtml where the graphic regions start
2929         and end.
2930         * src/libs/libgroff/Makefile.sub: Use it.
2931         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
2932         graphic_start() and graphic_end() from htmlindicate.cc.
2933
2934 2000-03-09  Werner LEMBERG  <wl@gnu.org>
2935
2936         * tmac/tmac.safer: Will now work correctly in compatibility mode.
2937         * tmac/groff_man.man: More fixes.
2938
2939 2000-03-08  Werner LEMBERG  <wl@gnu.org>
2940
2941         * doc/Makefile: Added texput.log to the `clean' target.
2942         * doc/groff.texinfo: Added info about delimiters for escapes.
2943
2944 2000-03-08  Bernd Warken  <bwarken@mayn.de>
2945
2946         * src/preproc/pic/pic.man: Add info on conversion of pic images to
2947         other graphic formats.
2948
2949 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
2950
2951         * Makefile.in, contrib/mm/Makefile.sub, src/preproc/eqn/Makefile.sub,
2952         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
2953         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
2954         files.
2955
2956 2000-03-07  Werner LEMBERG  <wl@gnu.org>
2957
2958         * doc/groff.texinfo: Spelling fixes.
2959
2960 2000-03-06  Werner LEMBERG  <wl@gnu.org>
2961
2962         * tmac/groff_man.man: Completely revised to cover everything in
2963         tmac.an.
2964
2965         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
2966         Other minor fixings.
2967         * src/roff/troff/env.cc (environment_copy): Improve error message and
2968         fix itoa->i_to_a.
2969         * src/roff/troff/TODO: Updated.
2970
2971         * doc/Makefile: Bug fixes -- this is still provisional, though...
2972
2973         * tmac/eqnrc: Small fixes.
2974
2975 2000-03-05  Abramo Bagnara  <abramo@alsa-project.org>
2976
2977         Adding a request `evc' to copy environments.
2978
2979         * src/roff/troff/env.cc (environment::copy, environment_copy):
2980         Implement it.
2981         * src/roff/troff/env.h: Add prototype.
2982
2983 2000-03-05  Francisco Andres Verdu  <pandres@dragonet.es>
2984
2985         Adding strsep() -- Solaris 8 doesn't have it.
2986
2987         * configure.in: Test it.
2988         * src/devices/grolbp/lbp.cc: Add code.
2989
2990 2000-03-05  Werner LEMBERG  <wl@gnu.org>
2991
2992         * src/roff/troff/div.cc (macro_diversion::output,
2993         top_level_diversion::output): Fixing an incompatibility with
2994         original troff: \x'0' updates the .a register also.  Thanks to
2995         <Andries.Brouwer@cwi.nl> for pointing this out.
2996         * doc/groff.texinfo: Document it.
2997
2998         * Makefile.in: Create Makefile.dep if necessary before calling the
2999         submake process to avoid warning about nonexistent file.
3000
3001         * NEWS, PROJECTS: Updated.
3002
3003 2000-03-04  Werner LEMBERG  <wl@gnu.org>
3004
3005         * tmac/troffrc: Add tmac.lbp.
3006
3007 2000-03-03  Francisco Andres Verdu  <pandres@dragonet.es>
3008
3009         * tmac/tmac.lbp: New file.
3010         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
3011         command.
3012
3013 2000-03-03  Werner LEMBERG  <wl@gnu.org>
3014
3015         * Makefile.in: Fixing $(subdir).
3016
3017         * README, NEWS: Small fixes.
3018
3019         * test-groff: Adding path to grolbp.
3020
3021         * configure.in: The (new) file src/xditview/Imakefile.in will be
3022         also configured -- it is now possible to build gxditview in a
3023         directory different from $srcdir.
3024
3025 2000-03-02  Blake McBride  <blake@florida-software.com>
3026
3027         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
3028
3029         * MORE.STUFF: Added website of bell labs and info about plot2dev.
3030
3031 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
3032
3033         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
3034         files.
3035
3036 2000-02-29  Werner LEMBERG  <wl@gnu.org>
3037
3038         Adding GNU getopt to the groff distribution.
3039
3040         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
3041         New files.
3042         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
3043         * aclocal.a4: Remove GROFF_GETOPT function.
3044         * configure.in, Makefile.in, PROBLEMS: Update.
3045         * src/include/lib.h: Replace getopt tests with getopt.h.
3046         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
3047
3048         * doc/groff.texinfo: Further checking/updating.  Adding more index
3049         entries.
3050
3051         * man/groff_out.man: Fix nroff mode activation (for emacs).
3052         * man/groff_font.man: Add missing ligature.
3053
3054 2000-02-28  Werner LEMBERG  <wl@gnu.org>
3055
3056         * doc/groff.texinfo: Further checking/updating.  Adding more index
3057         entries.
3058
3059         * src/devices/grolbp/grolbp.man: Added a comment line at the
3060         beginning of the file (similar to shell scripts) which indicates
3061         that `tbl' should be used as a preprocessor.
3062
3063 2000-02-27  Blake McBride  <blake@florida-software.com>
3064
3065         Adapting groff to MS Visual C++ 6.0 compiler (tested with
3066         Windows NT 4.0).  Uses _MSC_VER define where necessary.
3067
3068         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
3069         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
3070         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
3071         src/include/lib.h, src/libs/libgroff/errarg.cc,
3072         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
3073         src/preproc/refer/label.y, src/preproc/refer/label.cc,
3074         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
3075         src/roff/troff/div.cc, src/roff/troff/env.cc,
3076         src/roff/troff/input.cc, src/roff/troff/node.cc,
3077         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
3078         if_to_a() to avoid name clashes.
3079         * src/include/posix.h: Don't use unistd.h.
3080         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
3081         clause for integrating non-Unix xtmpfile() code.
3082         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
3083         structure; use "rt" for popen() in pipe_source(); add getpid()
3084         dummy function.
3085         * src/roff/troff/node.cc: Use special versions of popen() in
3086         real_output_file() and pclose() in ~real_output_file().
3087
3088 2000-02-27  Werner LEMBERG  <wl@gnu.org>
3089
3090         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
3091         LBP-8 series laser printers).  This code has been contributed by
3092         Francisco Andres Verdu <pandres@dragonet.es>.
3093
3094         * src/devices/grolbp/*: The grolbp output device.
3095         * font/devlpb/*: The font description files.
3096         * Makefile.in: Add grolpb and devlbp subdirectories.
3097
3098         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
3099         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
3100         typographic fixes.
3101
3102         * doc/groff.texinfo: Further checking/updating.  Adding more index
3103         entries.
3104
3105         * NEWS: Updated.
3106
3107         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
3108
3109         * man/groff_font.man: Adding info about obsolete DESC keywords.
3110         * src/devices/grolj4/grolj4.man: Documenting additional DESC
3111         keywords.
3112
3113 2000-02-26  Werner LEMBERG  <wl@gnu.org>
3114
3115         * src/preproc/grn/grn.man: Added info about the gremlin file format
3116         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
3117
3118 2000-02-25  Werner LEMBERG  <wl@gnu.org>
3119
3120         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
3121         friends to be non-integer.
3122
3123         * src/preproc/grn/grn.man: Document it.
3124
3125         * doc/groff.texinfo: Further checking/updating.  Adding more index
3126         entries.
3127
3128 2000-02-24  Werner LEMBERG  <wl@gnu.org>
3129
3130         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
3131         line thicknesses to be integer multiples of this value.
3132
3133         * src/preproc/grn/grn.man: Commenting out the -s option -- the
3134         corresponding code doesn't work (yet).
3135
3136         * doc/groff.texinfo: Further checking/updating.  Adding more index
3137         entries.
3138
3139 2000-02-23  Werner LEMBERG  <wl@gnu.org>
3140
3141         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
3142         specify line thickness instead of base units.  The new default
3143         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
3144         thick lines respectively.
3145
3146         Removed unused variable `prevval'.
3147
3148         * src/preproc/grn/grn.man: Updated.
3149
3150 2000-02-22  Werner LEMBERG  <wl@gnu.org>
3151
3152         * src/preproc/grn/main.cc: Slight formatting.
3153
3154         * src/roff/groff/groff.man: Formatting fix.
3155         * src/preproc/grn/grn.man: Ditto.
3156
3157         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
3158
3159         * doc/groff.texinfo: Further checking/updating.
3160
3161 2000-02-21  Werner LEMBERG  <wl@gnu.org>
3162
3163         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
3164
3165         * test-groff: Added grn subdir to path.
3166
3167         * doc/groff.texinfo: Some restructing and other small improvements.
3168
3169         * src/roff/groff/groff.cc (help): Fixed info string.
3170
3171 2000-02-20  Werner LEMBERG  <wl@gnu.org>
3172
3173         * doc/meref.me: Fix description of .GS request.
3174
3175         * src/roff/troff/troff.man: Fixing typo.
3176
3177         Adding the `grn' preprocessor for gremlin graphic files.
3178
3179         * src/preproc/grn/*: This is the Berkeley distribution written by
3180         David Slattengren and Barry Roitblat, adapted to groff by Daniel
3181         Senderowicz and Werner Lemberg.
3182
3183         * doc/grnexampl.{me,g}: A sample for grn.
3184
3185         * Makefile.in: Added subdirectory entry for grn.
3186
3187         * src/roff/groff/groff.cc: Added support for grn.  It can be now
3188         called with the switch `-g'.
3189
3190         * src/roff/groff/groff.man: Updated.
3191
3192         * src/roff/grog/grog.{man,pl,sh}: Updated.
3193
3194         * NEWS: Updated.
3195
3196 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
3197
3198         * src/include/lib.h: Added xtmptemplate and made xtmpfile
3199         parametrically polymorphic.
3200
3201         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
3202         and the alterations to xtmpfile.
3203         xtmpfile can be requested to return the filename created
3204         and asked not to unlink the temp file.  The default behaviour
3205         if parameters are absent is exactly the same as before.
3206
3207 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
3208
3209         A new request `length' is available which returns the length of a
3210         string in a number register:
3211
3212         * src/roff/troff/input.cc (length_macro): Implement it.
3213         * src/roff/troff/input.cc (init_input_requests): Register it.
3214
3215 2000-02-11  Werner LEMBERG  <wl@gnu.org>
3216
3217         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
3218         of the `substring' request.
3219
3220         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
3221         request.
3222
3223         * src/roff/troff/TODO, NEWS: Updated.
3224
3225 2000-02-09  Werner LEMBERG  <wl@gnu.org>
3226
3227         * src/roff/groff/groff.man: Added an example.
3228
3229 2000-02-06  Werner LEMBERG  <wl@gnu.org>
3230
3231         I've considerably modified the directory structure of the
3232         distribution to get a more vertical layout.  For example, the number
3233         of top level directories has been reduced from 42 to 6.
3234
3235         As a consequence, many changes, especially to the makefiles, were
3236         necessary:
3237
3238         * The makefile variables `top_builddir' and `top_srcdir' have been
3239         introduced.  Virtually all relative paths have been replaced with
3240         absolute ones using these two variables.
3241
3242         * Dependencies (in the files `Makefile.dep') are no longer part of
3243         the distribution.  Instead, they are created during a `make install'
3244         in the build directory.
3245
3246         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
3247         make `top_srcdir' and `top_builddir' absolute.
3248
3249         Some other changes:
3250
3251         * Man pages no depend on the files `VERSION' and `REVISION'.
3252
3253         * The added shell script `mkinstalldirs' will replace `mkdir' in
3254         almost all cases.
3255
3256         * VERSION: Version number increased to 1.16.
3257
3258 2000-02-04  Werner LEMBERG  <wl@gnu.org>
3259
3260         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
3261
3262         * Makefile.in: Removed $(tmac_m) since it is no longer needed
3263         (after an update of the mm stuff).
3264
3265         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
3266
3267 2000-02-03  Werner LEMBERG  <wl@gnu.org>
3268
3269         The .psbb request will now also accept Mac PS images (i.e. using LF
3270         as the EOL character).
3271
3272         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
3273         (with slight modifications).
3274         * troff/input.cc (do_ps_file): Use it.
3275
3276         * test-groff: Add grohtml and grolj4 output devices to PATH.
3277
3278 2000-01-30  Werner LEMBERG  <wl@gnu.org>
3279
3280         * NEWS, MORE.STUFF: Updated.
3281
3282 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
3283
3284         Add the `srand' command to pic.
3285
3286         * pic/lex.cc, pic/pic.y: Implement it.
3287         * pic/pic.man: Document it.
3288         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
3289
3290 2000-01-30  Werner LEMBERG  <wl@gnu.org>
3291
3292         Add a new request `.psbb'.  This does exactly what the external
3293         program psbb did.  It scans a PostScript image file for a
3294         %%BoundingBox comment and extracts the bounding box values (in
3295         PostScript units) which are then stored in the four new (read-only)
3296         number registers `llx', `lly', `urx', and `ury'.
3297
3298         This will allow the usage of the .PSPIC macro without worrying
3299         about unsafe behaviour of groff, i.e., it will work without the
3300         `-U' switch of groff.
3301
3302         * troff/input.cc: Implement it.
3303         * tmac/tmac.pspic: Use it.
3304         * troff/troff.man, grops/grops.man, NEWS: Document it.
3305         * psbb/*, Makefile.in: Remove it since it is no longer needed.
3306
3307         This is bloody C code simply adapted from psbb.c!  Any improvements
3308         welcome.
3309
3310 2000-01-29  Werner LEMBERG  <wl@gnu.org>
3311
3312         * man/groff_font.man: Minor clarifications.
3313
3314         * NEWS: Updated.
3315
3316 2000-01-28  Werner LEMBERG  <wl@gnu.org>
3317
3318         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
3319
3320 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
3321
3322         * man/groff_font.man: Brought up to date regarding tcommand
3323         extensions.
3324         * libgroff/font.cc: Handle everything after `--' as a comment
3325         in the font files.
3326         * devps/*: Added comment delimiter inside devps font files.
3327
3328 2000-01-28  Werner LEMBERG  <wl@gnu.org>
3329
3330         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
3331         \fC...\fP (which now works as expected).
3332
3333         * troff/troff.man: Fix typo.
3334
3335 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
3336
3337         Completed the pass_filenames implementation in troff.
3338
3339         * libdriver/input.cc: Will read the new `F' tcommand.
3340         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
3341         * troff/input.cc: Use it.
3342
3343 2000-01-26  Werner LEMBERG  <wl@gnu.org>
3344
3345         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
3346         font will now be updated even if an invalid font is selected.
3347
3348 2000-01-24  Werner LEMBERG  <wl@gnu.org>
3349
3350         * doc/homepage.ms: Updated for new tmac.arkup.
3351
3352         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
3353
3354         * tmac/tmac.arkup: Cleanup.
3355
3356         Added `\&' to .HTML macro to `leave vertical mode', so to say.
3357
3358         Removed obsolete .LINK macro completely.
3359
3360         The macros .URL, .FTP, and .MAILTO now accept a third argument which
3361         will be immediately appended to the second argument (to be used with
3362         punctuation, for example).
3363
3364         Disabled .CDFTP macro temporarily for security reasons.
3365
3366         * tmac/groff_markup.man: Complete revision for latest changes in
3367         tmac.arkup -- note that it does not yet format correctly with
3368         grohtml :-(
3369
3370 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
3371
3372         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
3373         * devutf8/R.proto: Add mappings for wp, lh, rh.
3374         * devutf8/NOTES: Updated.
3375
3376 2000-01-23  Werner LEMBERG  <wl@gnu.org>
3377
3378         * doc/groff.texinfo: Updated version/copyright info.
3379
3380 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
3381
3382         Added support for two new directives in device descriptions:
3383         `pass_filenames' (to pass the input file name to the output device)
3384         and `use_charnames_in_special' (to support e.g. accented characters
3385         in the `X' request).
3386
3387         * include/font.h, troff/charinfo.h: Declare it.
3388
3389         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
3390
3391         * devhtml/DESC: Use it.
3392
3393         * troff/input.cc: New function encoded_char.
3394
3395         * troff/token.h: Add test for `specialness'.
3396
3397 2000-01-21  Werner LEMBERG  <wl@gnu.org>
3398
3399         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
3400         mistake from the list of files to be installed.
3401
3402 2000-01-18  Werner LEMBERG  <wl@gnu.org>
3403
3404         * README: Added info how to apply patches.
3405
3406 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
3407
3408         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
3409
3410 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
3411
3412         * troff/input.cc: Add support for troffrc-end.
3413
3414         * tbl/main.cc: Altered to issue table-start and table-end special
3415         characters if using the html device.
3416
3417         * devhtml/*: Modified font files to incorporate html encoding of
3418         characters.
3419
3420         * tmac/groff_markup.man: New file documenting tmac.arkup.
3421
3422         * tmac/troffrc-end: New file.  This is invoked after all user
3423         specified macros.  Currently used by the html device to include
3424         tmac.html.  Thus no need for users to specify -mhtml anymore.
3425
3426         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
3427         (MAN7): Add groff_markup.man.
3428
3429         * tmac/tmac.an, tmac/tmac.html: Small html updates.
3430
3431         * tmac/troffrc: tmac.arkup will now be called for the html device.
3432
3433         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
3434         extra device specific information about fonts.
3435
3436         * doc/homepage.ms: New file.  It is an example how an HTML home page
3437         could look like with grohtml.
3438
3439         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
3440
3441 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
3442
3443         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
3444         of Im, Re.
3445
3446         * devutf8/NOTES: Updated.
3447
3448 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
3449
3450         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
3451         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
3452         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
3453         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
3454         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
3455         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
3456         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
3457         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
3458         warnings.
3459
3460         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
3461
3462 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
3463
3464         grolj4: Paper size will be searched case-insensitively.
3465
3466         * include/lib.h: Add check for strcasecmp().
3467         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
3468         * configure.in: Check for strcasecmp().
3469
3470 2000-01-11  Werner LEMBERG  <wl@gnu.org>
3471
3472         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
3473         `REVISION'.
3474
3475 2000-01-10  Werner LEMBERG  <wl@gnu.org>
3476
3477         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
3478         revision scheme.
3479
3480         Add a new read-only register, `.Y', which contains the groff
3481         revision.
3482
3483         * troff/input.cc (init_input_requests): Define it.
3484         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
3485         * doc/groff.texinfo, troff/troff.man: Document it.
3486
3487         * libgroff/Makefile.sub (version.cc): Add definition of
3488         `Version_string[]', consisting of `<major>.<minor>.<revision>'
3489         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
3490         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
3491         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
3492         troff/input.cc, pfbtops/pfbtops.c: Use it.
3493
3494 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
3495
3496         Add a revision scheme to the groff package.
3497
3498         * REVISION: New file.
3499         * libgroff/Makefile.sub (version.cc): Use it to define
3500         `revision_string[]'.
3501         * grops/psrm.cc: Use revision_string (converted to an unsigned
3502         integer) in constructor of resource_manager.
3503
3504 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
3505
3506         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
3507         files.
3508         * Makefile.in (DEVDIRS): Add devutf8.
3509         * grotty/tty.cc: Include device.h.
3510         (glyph): Change type of `code' to `unsigned int'.
3511         (tty_printer): New field is_utf8.  Constructor takes device argument.
3512         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
3513         (tty_printer::add_char): Change type of first arg to `unsigned int'.
3514         (tty_printer::put_char): New function.
3515         (tty_printer::end_page): Use put_char() instead of ::putchar().
3516         (make_printer): Pass device to tty_printer constructor.
3517         * nroff.sh: Determine default device by calling 'locale'.  As a
3518         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
3519         Recognize UTF-8 locales.
3520         * tmac/eqnrc: Recognize utf8 like latin1.
3521         * tmac/troffrc: Device utf8 needs tmac.tty.
3522
3523 2000-01-07  Werner LEMBERG  <wl@gnu.org>
3524
3525         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
3526
3527 2000-01-07  Paul Eggert  <eggert@twinsun.com>
3528
3529         Add a new predefined writeable number register, `year',
3530         which contains the current year.
3531
3532         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
3533         * tmac/tmac.s: Use it.
3534         * troff/input.cc (init_registers): Initialize it.
3535
3536 2000-01-06  Werner LEMBERG  <wl@gnu.org>
3537
3538         * PROBLEMS: Fixed typo.
3539
3540 2000-01-04  Paul Eggert  <eggert@twinsun.com>
3541
3542         * PROBLEMS: Add Y2k advice for the yr number register.
3543
3544 2000-01-03  Paul Eggert  <eggert@twinsun.com>
3545
3546         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
3547
3548 2000-01-02  Werner LEMBERG  <wl@gnu.org>
3549
3550         * tmac/tmac.arkup: Slight modification of macros to provide better
3551         appearance for non-HTML formats.
3552
3553 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
3554
3555         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
3556         does not automatically translate to malloc(n) on all OSes
3557         (e.g., SunOS) so do it explicitly.  Also, check the returned
3558         value.
3559
3560 2000-01-01  Werner LEMBERG  <wl@gnu.org>
3561
3562         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
3563
3564         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
3565         expects this variable
3566
3567 2000-01-01  Gaius Mulley  <gaius@glam.ac.uk>
3568
3569         * doc/Makefile: Added instructions to create HTML and text
3570         versions of some files.
3571
3572 1999-12-31  Werner LEMBERG  <wl@gnu.org>
3573
3574         * Updated INSTALL.gen.
3575
3576         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
3577         better resp. correctly with non-HTML devices.
3578
3579 Version 1.15 released
3580 =====================
3581
3582 1999-12-28  Werner LEMBERG  <wl@gnu.org>
3583
3584         * NEWS, VERSION: Changed to 1.15
3585
3586 1999-12-27  Paul Eggert  <eggert@twinsun.com>
3587
3588         * nroff/nroff.man: -S is safer, not safe.
3589
3590         * groff/groff.cc (main): Use `safer', not `safe', in variable
3591         names.  This does not change the behavior.
3592
3593         * troff/input.cc (main): Likewise.
3594
3595         * nroff/nroff.sh: Likewise.
3596
3597         * troff/input.cc (prepend_string): New function.
3598         (main): Prepend -msafer, so that we check macro libraries for
3599         safety.
3600
3601         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
3602
3603 Version 1.14 released
3604 =====================
3605
3606 1999-12-26  Werner LEMBERG  <wl@gnu.org>
3607
3608         * NEWS, VERSION: Changed to 1.14.
3609
3610 1999-12-24  Werner LEMBERG  <wl@gnu.org>
3611
3612         * refer/refer.cc: Fixing the last fix.
3613
3614 Version 1.13 released
3615 =====================
3616
3617 1999-12-23  Werner LEMBERG  <wl@gnu.org>
3618
3619         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
3620         number disappear.
3621
3622         * NEWS: Updated.
3623
3624         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
3625
3626         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
3627         document conventions, the version number must be a real.
3628
3629 Version 1.12.1 released
3630 =======================
3631
3632 1999-12-22  Werner LEMBERG  <wl@gnu.org>
3633
3634         * VERSION: Changed to 1.12.1.
3635
3636 1999-12-22  Alan Rooks  <arooks@istar.ca>
3637
3638         * refer/refer.cc (do_file): Slight modification to satisfy the
3639         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
3640         UnixWare 7.1.
3641
3642 1999-12-20  Werner LEMBERG  <wl@gnu.org>
3643
3644         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
3645         notices.
3646
3647         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
3648         list of unsafe requests.
3649
3650         * pic/pic.man: Fixed a typo.
3651
3652         * man/groff_out.man: Fixed a typo.
3653
3654 1999-12-18  Werner LEMBERG  <wl@gnu.org>
3655
3656         * Makefile.in: Doc fixes.
3657
3658 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
3659
3660         * groff/groff.cc: Missing `U' option added to getopt().
3661
3662         * troff/troff.man: Missing `U' option added to synopsis.
3663
3664 Version 1.12 released
3665 =====================
3666
3667 1999-12-14  Werner LEMBERG  <wl@gnu.org>
3668
3669         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
3670         to the synopsis.
3671
3672         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
3673         with the more appropriate terms `safer' and `unsafe'.
3674
3675         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
3676         sys_nerr and sys_errlist[].
3677
3678         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
3679
3680         * pic/pic.y, pic/pic.cc: Added check for fmod().
3681
3682 1999-12-13  Werner LEMBERG  <wl@gnu.org>
3683
3684         * VERSION: Changed to 1.12.
3685
3686         Here some patches from various sources; most of them taken from
3687         the Debian distribution.
3688
3689         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
3690         tmac/Makefile.sub: New files copied directly from the NetBSD
3691         distribution.  Probably, some additional adaptation later on is
3692         necessary...
3693
3694         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
3695         of unsafe requests.
3696
3697         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
3698         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
3699         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
3700         (`-S') is now the default.
3701
3702         * README, NEWS: Updated.
3703
3704 1999-12-09  Werner LEMBERG  <wl@gnu.org>
3705
3706         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
3707
3708         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
3709
3710 1999-12-06  Werner LEMBERG  <wl@gnu.org>
3711
3712         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
3713         grief than relief today.  Additionally, it is against the GNU
3714         coding standards.
3715
3716         * configure: Recreated.
3717
3718 1999-12-05  Werner LEMBERG  <wl@gnu.org>
3719
3720         * configure.in: Added GROFF_LIBM.
3721
3722         * configure: Recreated.
3723
3724         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
3725         necessary.
3726
3727         * Makefile.in: Added definition of $(LIBM).
3728
3729         * Makefile.comm (LIBM): Removed.
3730
3731         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
3732
3733 1999-12-03  Gaius Mulley  <gaius@glam.ac.uk>
3734
3735         * doc/Makefile: Added rule for generation pic.html.
3736
3737         (clean): Files produced by grohtml will be removed also.
3738
3739         * doc/pic.ms: Small fix.
3740
3741         * tmac/tmac.html: Fixed suppression of headers.
3742
3743 1999-11-16  Gaius Mulley  <gaius@glam.ac.uk>
3744
3745         * tmac/tmac.html: Fixing horizontal arrows.
3746
3747         Turning off hyphenation.
3748
3749         * tmac/tmac.an: Improved support for grohtml; better indentation,
3750         no footers/headers.
3751
3752 1999-10-31  Gaius Mulley  <gaius@glam.ac.uk>
3753
3754         * tmac/tmac.arkup: Added CDFTP macro
3755
3756         * tmac/tmac.html: All headers are turned off for ms, me, and mm
3757         macros.
3758
3759         * tmac/troffrc: Some additions for HTML stuff.
3760
3761 1999-10-06  Gaius Mulley  <gaius@glam.ac.uk>
3762
3763         * tmac/tmac.html: Small changes.
3764
3765 1999-09-26  Werner LEMBERG  <wl@gnu.org>
3766
3767         * doc/groff.texinfo: Minor fixes.
3768
3769 1999-09-26  Gaius Mulley  <gaius@glam.ac.uk>
3770
3771         * devhtml/TR: Changed spacewidth to 3.
3772
3773         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
3774
3775         * tmac/tmac.html: Moved markup macros to tmap.arkup.
3776
3777         * tmac/tmac.arkup: New file.
3778
3779         * grohtml/ChangeLog: New file.
3780
3781 1999-09-16  Werner LEMBERG  <wl@gnu.org>
3782
3783         * doc/groff.texinfo (Common Features): Added Copying chapter.
3784         Changed format to @smallbook.
3785
3786 1999-09-15  Werner LEMBERG  <wl@gnu.org>
3787
3788         * NEWS: Added info about groff.texinfo.
3789
3790         * doc/groff.texinfo: Will now compile (using texi2dvi) without
3791         warning messages.
3792
3793 1999-09-14  Werner LEMBERG  <wl@gnu.org>
3794
3795         * groff/groff.man: More updates.
3796
3797 1999-09-13  Werner LEMBERG  <wl@gnu.org>
3798
3799         * doc/groff.texinfo: New file.  This manual is still very
3800         rudimentary.  It has been originally contributed by Trent
3801         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
3802         additions by me.
3803
3804         * INSTALL: Added information about the `doc' subdir
3805
3806         * troff/troff.man: Minor fixes.
3807
3808         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
3809         reordered options.
3810
3811         * troff/input.cc (usage): Added missing `-ffam' to usage message.
3812
3813         * Makefile.in (dist): groff-$(version).tar.gz must be removed
3814         also, otherwise it is included itself in another call of `make
3815         dist'.
3816
3817         * groff/groff.cc (synopsis): Removed superfluous space.
3818
3819         * PROJECTS, PROBLEMS, NEWS: Updated.
3820
3821         * VERSION: Updated to 1.12beta.
3822
3823         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
3824
3825         * README: Updated: Included documentation about CVS repository,
3826         mailing lists, and daily snapshots.
3827
3828         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
3829
3830 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
3831
3832         * tmac/tmac.an: If the tag didn't fit into the space that the
3833         macro `TP' specifies, the rest of the tag went into the space for
3834         the next line.
3835
3836 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
3837
3838         * grolj4/lj4.cc: Added duplex printing (option `-d').
3839
3840         * grolj4/grolj4.man: Document duplex printing.
3841
3842 1999-09-12  Werner LEMBERG  <wl@gnu.org>
3843
3844         * doc/Makefile (pic.ps): Fixed rule which caused problems with
3845         non-GNUish sed programs.
3846
3847         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
3848         definition.
3849
3850         * configure.in (LIBS): Added `-lc'
3851
3852         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
3853
3854         * pic/tex.cc (solid_arc): Casting M_PI to double.
3855
3856         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
3857
3858         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
3859         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
3860         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
3861
3862         * groff/groff_man.man: New file.  This manual page was originally
3863         written for the Debian GNU/Linux system by Susan G. Kleinmann
3864         <sgk@debian.org>.
3865
3866         * eqn/list.cc (list_box::compute_metrics,
3867         list_box::compute_sublist_width): Removed variable declaration to
3868         avoid shadowing warnings.
3869
3870         * grops/psrm.cc (resource_manager::process_file): Ditto.
3871
3872         * tfmtodit/tfmtodit.cc (main): Ditto.
3873
3874         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
3875         to avoid shadowing warnings.
3876
3877         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
3878         shadowing loop variable.
3879
3880         * groff/groff.man, troff/troff.man: Added doc about grohtml.
3881
3882 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
3883
3884         New grohtml frontend to convert groff input to html.
3885
3886         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
3887
3888         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
3889
3890         * tmac/eqnrc: Added html device.
3891
3892         * tmac/tmac.html: New file.
3893
3894         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
3895         (troff_output::start_picture, troff_output::finish_picture),
3896         tbl/main.cc (process_input_file):
3897         Surrounded output with `graphics_start' and `graphics_end' so that
3898         the html driver can identify non-text portions.
3899
3900         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
3901         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
3902         grotty/tty.ps (tty_printer::set_char): Additional parameter
3903         `name'.
3904
3905         * include/printer.h: Class printer: New function
3906         set_char_and_width; new variables (is_char_named, is_named_set,
3907         named_command, named_char_s, named_char_n) to hold information
3908         about named characters -- needed by the html driver.
3909
3910         * libdriver/printer.cc (printer::set_ascii_char,
3911         printer::set_special_char): Use set_char_and_width.
3912
3913         * devhtml/*: New device files for html driver.
3914
3915         * grohtml/*: New driver grohtml.
3916
3917 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
3918
3919         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
3920         default strings.
3921
3922 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
3923
3924         * libgroff/string.cc (search): Small fix to test against NULL
3925         pointer.
3926
3927 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
3928
3929         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
3930         \b'abc') were stacked in reverse order when processed in a
3931         diversion.
3932
3933         * troff/node.h: Added `*last' to struct `node' to make the above
3934         fix work.
3935
3936         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
3937         The default scale for the 'f' and 't' graphics functions were 'm'
3938         rather than 'u' (i.e., no scaling).
3939
3940 1999-09-11  Peter Miller  <peterm@jna.com.au>
3941
3942         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
3943         do_file), soelim/soelim.man: Added `-I file' option to soelim,
3944         defining include paths.
3945
3946         * soelim/soelim.cc (include_path_append): New function.
3947
3948 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
3949
3950         * tbl/main.cc (process_options): Unix (at least Documenter's
3951         Workbench) tbl allows arbitrary non-alpha characters between
3952         options.
3953
3954 1999-09-11  Paul Eggert  <eggert@twinsun.com>
3955
3956         Y2k fixes.  Don't assume that the current year precedes 2000.
3957
3958         * doc/meref.me: Add \n(y2, \n(y4.
3959
3960         * tmac/doc-common (Yr): New number register.
3961         (Dd): Don't assume current year precedes 2000.
3962
3963         * tmac/tmac.e (td): Likewise.
3964         (y2, y4): New number registers.
3965
3966         * pic/pic.man: Update reference for pic paper to May, 1991
3967         version.
3968
3969 1999-09-11  Werner LEMBERG  <wl@gnu.org>
3970
3971         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
3972         Removed quotation marks which prevented correct expansion of
3973         $(tmac_wrap).
3974
3975         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
3976
3977 1999-09-10  Werner LEMBERG  <wl@gnu.org>
3978
3979         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
3980         `config.cache'.
3981
3982         * Removed configure.old.
3983
3984 1999-08-31  Werner LEMBERG  <wl@gnu.org>
3985
3986         * VERSION: Updated to 1.11.1
3987
3988 1999-05-27  Werner LEMBERG  <wl@gnu.org>
3989
3990         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
3991
3992         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
3993         added quotations around $(tmac_wrap) to avoid syntax error if
3994         variable is empty.
3995
3996         * configure: Newly generated using autoconf 2.13.
3997
3998         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
3999
4000 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
4001
4002         * README, PROJECTS, NEWS, INSTALL, VERSION, 
4003         doc/Makefile. doc/pic.ms, groff/groff.man:
4004         Prepare for 1.11 release.  No code changes.
4005         Documentation for pic added (doc/pic.ms).
4006
4007 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
4008
4009         * Version 1.10 released.
4010
4011 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
4012
4013         * afmtodit/afmtodit.pl: Avoid comment on first line.
4014
4015 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
4016
4017         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
4018         * configure.in: Call it.
4019
4020         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
4021         (distfiles): Doesn't depend on config.log or config.cache.
4022
4023 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
4024
4025         * grog/grog.sh: Use print "" rather than print in END rule.
4026
4027 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
4028
4029         * tbl/main.cc (process_data): Don't give error for excess data
4030         entries that are comments.
4031
4032 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
4033
4034         * tbl/main.cc (process_data): Fix case where new for-scope rules
4035         silently change meaning of code.
4036
4037 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
4038
4039         * troff/env.cc (hyphenate): Loop over all consecutive sequences
4040         of non-zero hyphenation codes.
4041
4042 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
4043
4044         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
4045
4046 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
4047
4048         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
4049
4050 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
4051
4052         * tmac/tmac.andoc: Make it work in compatibility mode.
4053
4054         * refer/token.h (token_info::is_range_sep): New function.
4055         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
4056         * refer/ref.cc (reference::output): More sophisticated check for
4057         multiple pages.
4058
4059         * devps/prologue.ps (MANUAL): New procedure.
4060         * grops/ps.cc (main): New -m option.
4061         (usage): Include -m.
4062         (ps_printer::~ps_printer): Implement -m.
4063
4064         * aclocal.m4 (GROFF_G): New macro.
4065         * configure.in: Call it.
4066         * Makefile.in (g): Provided by configure.
4067
4068         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
4069
4070         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
4071         translations.
4072
4073         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
4074         (tmac_m, tmac_s): Deleted.
4075         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
4076         tmac_s_prefix): New variables.
4077         (MDEFINES): Change accordingly.
4078         * Makefile.comm (.man.n): Use new TMAC_* variables.
4079         * configure.in (GROFF_TMAC): Call.
4080         * aclocal.m4 (GROFF_TMAC): Define.
4081         * tmac/Makefile.sub (stamp_wrap): New target.
4082         (install_data, uninstall_sub): Handle macro wrapping.
4083
4084 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
4085
4086         * tbl/main.cc (main): Ignore -T option.
4087
4088 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
4089
4090         * devlj4/generate/special.map: Add definition of \(nb.
4091
4092         * tmac/tmac.dvi: Add definition of \(nb.
4093
4094         * troff/dictionary.c (dictionary::dictionary): association::v gets
4095         initialized by association::association.
4096
4097         * tmac/Makefile.sub: Avoid using temporary files when installing.
4098
4099         * troff/env.cc (environment::set_font): Make bad font number a
4100         warning.
4101
4102         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
4103
4104         * Makefile.in (datadir): Use share rather than lib.
4105
4106         * groff/groff.cc (basename): Rename to xbasename.
4107
4108 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
4109
4110         * Makefile (CCLIBS): Don't use.
4111         * Makefile.ccpg: Likewise.
4112
4113         * acgroff.m4: Rename to...
4114         * aclocal.m4: Modify extensively for autoconf 2.
4115         * configure.in: Likewise.
4116         * Makefile.in: Likewise.
4117
4118         * groff/pipeline.c (const): Declare as empty if __STDC__ not
4119         defined.
4120         (xstrsignal): Check for definition of NSIG. Conditionalize
4121         on SYS_SIGLIST_DECLARED.  Make return type const.
4122
4123 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
4124
4125         * troff/input.cc (interpolate_macro): Rephrase missing space
4126         warning.
4127
4128 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
4129
4130         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
4131         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
4132         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
4133         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
4134         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
4135         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
4136         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
4137         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
4138         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
4139         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
4140         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
4141         Fix 'for' scoping.
4142
4143 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
4144
4145         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
4146         string_iterator.
4147         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
4148         file.
4149         (macro_iterator::macro_iterator): Add additional argument.
4150
4151 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
4152
4153         * troff/div.cc (vertical_size::vertical_size): In place of integer
4154         specifying line spacing use cunits specifying post vertical
4155         space.
4156         (macro_diversion::output, top_level_diversion::output): Likewise.
4157         * troff/div.h: Change declarations accordingly.
4158         * troff/env.cc (pending_output_line): Replace ls field by post_vs
4159         field.
4160         (pending_output_line::pending_output_line,
4161         pending_output_line::output, environment::output,
4162         environment::output_line, environment::output_title,
4163         environment::hyphenate_line):  In place of
4164         integer specifying line spacing use cunits specifying post vertical
4165         space.
4166         (environment::environment): Add post_vertical_spacing and
4167         prev_post_vertical_spacing arguments.
4168         (environment::get_post_vertical_spacing): New function.
4169         (environment::total_post_vertical_spacing): New function.
4170         (environment::post_vertical_spacing): New function.
4171         (init_env_requests): Initialize pvs request and .pvs register.
4172         * troff/env.h: Change declarations.
4173
4174 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
4175
4176         * tmac/tmac.pspic: Immediately remove the temporary file.
4177
4178 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
4179
4180         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
4181         height is specified.
4182
4183 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
4184
4185         * tbl/table.c (struct vertical rule, class table_entry): Use int
4186         not short for start_row and end_row.
4187
4188 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
4189
4190         * troff/input.cc (trapping_blank_line, blank_line_macro): New
4191         functions.
4192         (diverted_space_node::reread, process_input_stack): Call
4193         trapping_blank_line() rather than blank_line().
4194         (init_input_requests): Bind "blm" to blank_line_macro().
4195
4196         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
4197
4198 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
4199
4200         * troff/env.cc (environment::possibly_break_line): Require that
4201         width total excluding width of final space node be greater than
4202         the target text length.
4203
4204 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
4205
4206         * troff/node.cc (kern_pair_node::vertical_extent): New function.
4207
4208 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
4209
4210         * troff/node.cc (charinfo_node): New class.
4211         (glyph_node, composite_node): Derive from charinfo_node.  Change
4212         member functions accordingly.
4213
4214 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
4215
4216         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
4217
4218 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
4219
4220         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
4221
4222         * devps/generate/textmap (notsubset): Add.
4223
4224         * tmac/tmac.a4: New file.
4225
4226 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
4227
4228         * pic/main.cc (had_parse_error): New variable.
4229         (do_picture, do_whole_file): Set had_parse_error if yyparse()
4230         returns non-zero.
4231         (main): Return 1 if had_parse_error is true.
4232
4233 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
4234
4235         * grolj4/lj4.cc (main): Avoid use of strtoul.
4236
4237 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
4238
4239         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
4240         iso_8859_1 or $LESSCHARSET is latin1.
4241
4242 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
4243
4244         * hpftodit: New directory.
4245         * Makefile.in (CCPROGDIRS): Add hpftodit.
4246         * devlj4/generate: New directory.
4247
4248 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
4249
4250         * configure.in: Don't use AC_VFORK.
4251         * groff/pipeline.c (run_pipeline): Use fork() always.
4252
4253 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
4254
4255         * grops/ps.cc (main): Use %1 not %s in error message for -w.
4256
4257         * Makefile.in (CCPROGDIRS): Add grolj4.
4258         (DEVDIRS): Add devlj4.
4259         * grolj4, devlj4: New directories.
4260         * tmac/troffrc: Handle lj4.
4261         * tmac/tmac.lj4: New file.
4262
4263 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
4264
4265         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
4266
4267 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
4268
4269         * troff/input.cc (do_if_request): At end of second string, switch
4270         environments before getting next token.
4271
4272 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
4273
4274         * devps/psstrip.sed: Split rule that strips whitespace on either
4275         side of delimiters.
4276
4277 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
4278
4279         * troff/node.h (font_family::make_definition): Add return value to
4280         declaration.  * troff/symbol.h (symbol::operator==,
4281         symbol::operator!=): Likewise.
4282
4283 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
4284
4285         * groff/groff.cc (main, help, synopsis): Handle -S.
4286         (possible_command::insert_arg): New function.
4287
4288         * tmac/tmac.safer: New file.
4289         * tmac/msafer.man: New file.
4290         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
4291
4292 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
4293
4294         * pic/pic.h, pic/main.cc (safer_flag): New variable.
4295         * pic/pic.y (placeless_element): Avoid unsafe operations if
4296         `safer_flag' is set.
4297         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
4298
4299 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
4300
4301         * eqn/lex.cc (get_token): Put call to add_context() in block to
4302         work around Sun C++ 4.0 bug.
4303
4304         * include/stringclass.h (operator +): Use ?: instead of `if' to
4305         work around Sun C++ 4.0 bug.
4306
4307 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
4308
4309         * tbl/main.cc (process_format): Accept - as a synonym for the _
4310         key letter.
4311
4312         * libbib/index.cc (minus_one): Don't declare as const.
4313
4314 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
4315
4316         * troff/input.cc (get_char_for_escape_name): Push back a newline.
4317
4318 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
4319
4320         * troff/input.cc (write_macro_request): New function.
4321         (init_input_requests): Bind write_macro_request to writem.
4322
4323 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
4324
4325         * tmac/tmac.s (@EN): Turn filling back on even if there was no
4326         equation.
4327
4328         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
4329
4330         * tmac/tmac.s (@TS): Renamed from TS.
4331         (TS): Call LP then TS again.
4332         (cov*ab-init): Alias @TS to TS.
4333
4334         * tmac/tmac.s: Allow QP or RS to initialize.
4335
4336         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
4337         Move initializations of PS and LL here.
4338         (par@init): Don't initialize HY.  Avoid changing environment 0.
4339         (par*env-init): Don't all par@reset.
4340
4341 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
4342
4343         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
4344
4345 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
4346
4347         * Makefile.in (MDEFINES): Add LDFLAGS.
4348         (LDFLAGS): Add definition line.
4349
4350 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
4351
4352         * troff/input.cc (get_optional_char): Split off error check into...
4353         (check_missing_character): New function.
4354         * troff/token.h: Declare it.
4355         * troff/env.cc (margin_character): Don't call get_optional_char.
4356         Only call tok.next() after making the node.
4357
4358         * include/lib.h (getopt): Make 2nd argument char *const *.
4359
4360 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
4361
4362         * nroff/conftest.sh: Deleted.
4363
4364 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
4365
4366         * pic/make-dos-dist: Deleted.
4367
4368 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
4369
4370         * devps/psstrip.sed: Strip comments before stripping trailing
4371         white space.
4372
4373 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
4374
4375         * Version 1.09 released.
4376
4377 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
4378
4379         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
4380
4381 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
4382
4383         * libgroff/font.cc (font::load_desc): Fix typo in error message.
4384
4385 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
4386
4387         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
4388         about returning without a value.
4389
4390         * troff/charinfo.h (charinfo::get_special_translation): Cast
4391         TRANSLATE_NONE to int.
4392
4393         * refer/token.cc (lookup_token, store_token): Remove bogus loop
4394         test.  Fix test so that it works with n unsigned.
4395
4396         * pic/pic.y (defaults_table): Fully bracket initializer.
4397         * pic/lex.cc (lookup_keyword): Likewise.
4398         * eqn/lex.cc (token_table, def_table): Likewise.
4399         * eqn/box.cc (param_table): Likewise.
4400         * troff/input.cc (warning_table): Likewise.
4401         * libgroff/font.cc (table): Likewise.
4402         * grops/ps.cc (ps_printer::special): Likewise.
4403         * grops/psrm.cc (resource_manager::process_file): Likewise.
4404         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
4405         * refer/command.cc (command_table): Likewise.
4406         * addftinfo/addftinfo.cc (param_table): Likewise.
4407
4408         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
4409         about temp's being unused.
4410         (unused): New function.
4411
4412         * groff/pipeline.cc: Declare c_fatal.
4413
4414         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
4415         uchar.
4416
4417         * libbib/index.cc (index_search_item::load): Prevent compiler
4418         warnings about fd_closer's being unused.
4419         (unused): New function.
4420
4421 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
4422
4423         * troff/input.cc (copy_mode_error): Make `prefix' static.
4424         Fix typo.
4425
4426         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
4427         defined.
4428         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
4429         HAVE_CC_OSFCN_H and modify accordingly.
4430
4431         * troff/input.cc (init_charset_table): radicalex overlaps
4432         horizontally.
4433
4434         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
4435         udodo!hans@relay.NL.net).
4436         * groff/configure.in: Call it.
4437
4438         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
4439         * groff/configure.in: Call it.
4440         * include/lib.h: Conditionalize declaration of pclose.
4441
4442         * troff/div.cc (last_page_number): New global variable.
4443         (top_level_diversion::begin_page): Exit if we just printed the
4444         last page.
4445         * troff/div.h (last_page_number): Declare it.
4446         * troff/input.cc (parse_output_page_list): Set last_page_number.
4447
4448         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
4449         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
4450         tmac/tmac.X: Likewise.
4451         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
4452         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
4453
4454 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
4455
4456         * tmac/doc-ditroff (hK): Remove groff specific code which
4457         prevented page-breaks between separate manual entries.  If this is
4458         the first page, don't set the page number to 1.
4459
4460         * acgroff.m4 (GROFF_POSIX): New macro.
4461         * configure.in: Use it.
4462
4463         * troff/node.cc (class real_output_file,
4464         real_output_file::real_output_file,
4465         real_output_file::~real_output_file): Conditionalize use of
4466         popen/pclose on POPEN_MISSING.
4467         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
4468         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
4469         (pipe_source): Similarily.
4470
4471         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
4472
4473         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
4474         presence of declarations by trying to compile example with
4475         conflicting declarations.  (gcc only gives a warning for missing
4476         declarations.)
4477
4478 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
4479
4480         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
4481         (from Ulrich Lauther).
4482
4483 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
4484
4485         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
4486
4487 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
4488
4489         * indxbib/indxbib.cc (write_hash_table): Add code for case where
4490         pointers and ints have different sizes.
4491
4492 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
4493
4494         * tmac/tmac.s (par*env-init): Call par@reset.
4495
4496 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
4497
4498         * tmac/tmac.s (@IP): Switch to a new environment when diverting
4499         tag.
4500         (par*push-tag-env, par*pop-tag-env): New macros.
4501
4502 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
4503
4504         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
4505         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
4506
4507         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
4508         comment.  Include <time.h>.
4509
4510 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
4511
4512         * grops/ps.cc (is_small_h, is_small_v): Deleted.
4513         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
4514         lines.
4515
4516 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
4517
4518         * troff/input.cc (read_request): Only print a prompt if reading
4519         from the terminal.  Also clearerr on EOF if reading from the
4520         terminal.  Declare isatty.
4521
4522 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
4523
4524         * refer/label.y: Rename map_t to map_func and extractor_t to
4525         extractor_func.
4526
4527 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
4528
4529         * include/assert.h: Don't use volatile.
4530         * libgroff/assert.cc: Likewise.
4531
4532 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
4533
4534         * troff/input.cc (abort_request): Look at character in tok before
4535         calling get_copy().
4536
4537 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
4538
4539         * troff/troff.h (NO_RETURN): Deleted.
4540         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
4541         * troff/input.cc (exit_troff): Likewise
4542
4543         * Makefile.in: Remove `Making ...' messages since GNU make now
4544         gives these. 
4545
4546         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
4547
4548 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
4549
4550         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
4551         to constant 1 inch.
4552
4553 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
4554
4555         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
4556
4557 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
4558
4559         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
4560         MARK_REG if there was no left delimiter.
4561
4562 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
4563
4564         * pic/troff.cc (troff_output::text): Set line thickness to
4565         relative before outputting text.
4566
4567         * tmac/tmac.e (@k): Don't zero ?T.
4568         ((z): Likewise.
4569
4570 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
4571
4572         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
4573
4574 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
4575
4576         * troff/input.cc (decode_args): Warn about unquoted tabs (from
4577         Paul Eggert).
4578
4579 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
4580
4581         * troff/input.cc (ignoring): New variable.
4582         (ignore): Set ignoring during call to do_define_macro.
4583         (do_define_macro): Clear ignoring before interpolating terminating
4584         macro.
4585         (copy_mode_error): New function.
4586         (get_char_for_escape_name, read_long_escape_name,
4587         interpolate_arg): Use copy_mode_error.
4588         (warning_table): Add WARN_IG.
4589         * troff/troff.h (WARN_IG): Declare.
4590         (WARN_TOTAL): Change accordingly.
4591
4592         * groff/pipeline.c (strsignal): Rename to xstrsignal.
4593         * groff/groff.cc (strsignal): Delete declaration.
4594
4595 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
4596
4597         * troff/div.cc (page_offset): Use 'm' as default scaling.
4598
4599 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
4600
4601         * nroff/nroff.sh: Ignore -u.
4602
4603 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
4604
4605         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
4606
4607 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
4608
4609         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
4610         drawing box.
4611         (B2): With -Tascii, leave additional vertical space before
4612         and after. Ensure that the left and right indent is restored to
4613         what it was even if the point size changes.  Don't call
4614         par@finish. Change the indent, line length and title length
4615         directly.  With -Tascii, make the width of the box 1n less.
4616         (B1): Remember 1n at the current point size.  Don't call
4617         par@reset.  Change the indent, line length and title length
4618         directly.  Ensure that the temporary indent is preserved.
4619         (par*box-mark-top): Turn off no spacing mode.
4620
4621 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
4622
4623         * Makefile.in (dist): Use .gz suffix.
4624
4625 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
4626
4627         * troff/input.cc (main): Add return 0.
4628         * pic/main.cc (main): Use return instead of exit.
4629         * tbl/main.cc (main): Likewise.
4630         * eqn/main.cc (main): Likewise.
4631         * grops/ps.cc (main): Likewise.
4632         * grotty/tty.cc (main): Likewise.
4633         * groff/groff.cc (main): Likewise.
4634         * grodvi/dvi.cc (main): Likewise.
4635         * refer/refer.cc (main): Likewise.
4636         * indxbib/indxbib.cc (main): Likewise.
4637         * lkbib/lkbib.cc (main): Likewise.
4638         * soelim/soelim.cc (main): Likewise.
4639         * addftinfo/addftinfo.cc (main): Likewise.
4640         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
4641         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
4642
4643         * troff/token.h (process_input_stack): Don't declare as static.
4644         * troff/input.cc: Likewise.
4645
4646         * troff/node.c (invalidate_fontno): Make it a static member of
4647         class font_family.  Change callers.
4648         * troff/node.c: Change declaration.
4649
4650         * tbl/main.cc (struct input_entry_format): Add explicit public
4651         specifier.
4652         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
4653         struct double_hline_stuff): Likewise.
4654         * tbl/table.h (struct entry_format): Likewise.
4655         * pic/object.h (struct saved_state): Likewise.
4656
4657         * include/stringclass.h: Add forward declarations of friend
4658         functions that are later declared as inline.  Don't include inline
4659         specifier in friend declaration.
4660
4661         * libgroff/lib.h: Declare popen and pclose.
4662         * acgroff.m4 (GROFF_POPEN): New macro.
4663         * configure.in: Call it.
4664
4665         * include/lib.h (PI): New constant. Undef first if necessary.
4666         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
4667         * grops/ps.cc (degrees, radians): Likewise.
4668         * libgroff/font.cc (font::get_skew): Likewise.
4669
4670         * grops/ps.cc (is_ascii): New function.
4671         (ps_output::put_string): Use is_ascii.  Use csprint rather than
4672         isprint.
4673         (ps_printer::define_encoding): Use csspace.
4674         * libgroff/strtol.c (ISASCII): New macro.
4675         (strtol): Cast arguments to is*() and tolower() to unsigned char.
4676         Use ISASCII rather than isascii.
4677         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
4678         * libgroff/cset.cc: Likewise.
4679         * libdriver/input.cc: Include cset.h.
4680         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
4681         than isdigit().
4682
4683         * refer/refer.cc (main): Use %ld rather than %d for longs.
4684
4685         * libbib/index.cc (index_search_item_iterator::get_tag): Use
4686         S_ISREG macro.
4687
4688         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
4689
4690 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
4691
4692         * troff/input.cc (hyphenation_code): Skip white space between
4693         char/code pairs.
4694
4695 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
4696
4697         * tbl/table.h (table::entry_list_tailp): New member.
4698         (table::table): Initialize it.
4699         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
4700         behaviour.
4701
4702 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
4703
4704         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
4705         with negative horizontal positions. Remove casts of glyph::hpos to
4706         int.
4707         (USHRT_MAX): Delete definition.
4708         (SHRT_MAX, SHRT_MIN): New definitions.
4709         (glyph::hpos): Change type to short.
4710         (tty_printer::end_page): Output multiple backspaces if necessary.
4711          Remove casts of glyph::hpos to int.
4712         
4713 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
4714
4715         * tmac/tmac.s (@RT): New definition.
4716
4717 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
4718
4719         * refer/refer.cc (do_file): Make sure current_filename is set when
4720         filename is "-".
4721
4722         * pic/common.cc (common_output::dot_line): Handle zero length
4723         lines.
4724
4725 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
4726
4727         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
4728         (par@init): Initialize \n[HY].
4729
4730 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
4731
4732         * troff/dictionary.cc (dictionary::remove): Continue when
4733         r < j < i.
4734
4735 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
4736
4737         * Makefile.com (.y.cc): Avoid ending up with two versions of
4738         $(YTABH).
4739
4740 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
4741
4742         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
4743         (\(,C): Likewise.  Also fix typo.
4744
4745 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
4746
4747         * lib.h: Delete extraneous semi-colon.
4748
4749         * Add pso request: `so' from a pipe.
4750         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
4751         (file_iterator::close): New function.
4752         (file_iterator::~file_iterator, file_iterator::next_file): Use
4753         file_iterator::close.
4754         (file_iterator::backtrace): Say `process' rather than `file' when
4755         the stream is popened.
4756         (pipe_source): New function.
4757         (init_input_requests): Bind ".pso" to pipe_source.
4758
4759 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
4760
4761         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
4762
4763         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
4764         digits in lower case.
4765
4766 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
4767
4768         * Version 1.08 released.
4769
4770         * Makefile.in (dist): Insert || true after ln -s commands that
4771         might fail.
4772
4773         * mm: Update to mm 1.16.
4774
4775         * acgroff.m4 (GROFF_CSH_HACK): New macro.
4776         * configure.in: Call GROFF_CSH_HACK.  Substitute for
4777         SH_SCRIPT_SED_CMD.
4778         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
4779         MDEFINES.
4780         * nroff/Makefile.sub (nroff): New target.
4781         (install_data): Install nroff.
4782         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
4783         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
4784
4785 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
4786
4787         * eqn/Makefile.sub (neqn): Add chmod +x.
4788
4789         * grog/Makefile.sub (grog): Remove spurious semi-colon.
4790
4791 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
4792
4793         * troff/input.cc (string_iterator::string_iterator()): Initialize
4794         lineno and count.
4795
4796 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
4797
4798         * troff/div.cc (macro_diversion::space,
4799         top_level_diversion::space): Don't set high_water_mark.
4800         (macro_diversion::output, top_level_diversion::output): Don't
4801         include post line space in high water mark.
4802
4803 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
4804
4805         * eqn/eqn.y: Don't define YYDEBUG.
4806         * pic/pic.y: Likewise.
4807
4808 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
4809
4810         * tmac/tmac.e ([3): Add space after comma following editors.
4811         Change double spaces to single spaces.
4812         ([4): Change double spaces to single spaces.
4813
4814         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
4815         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
4816         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
4817         after %!PS-Adobe- (for Newsprint).
4818
4819         * troff/div.cc (top_level_diversion::begin_page): When
4820         before_first_page is 1, set page_number to 1.
4821
4822 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
4823
4824         * eqn/box.cc (box::top_level): Protect equation with \&.
4825
4826 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
4827
4828         * groff/groff.cc (possible_command::set_name): Delete old name.
4829
4830         * groff/groff.cc (possible_command::~possible_command): Use
4831         a_delete.
4832
4833         * troff/node.cc (troff_output_file::begun_page): New member.
4834         (troff_output_file::troff_output_file): Initialize it.
4835         (troff_output_file::really_begin_page): Only output V command if a
4836         page has been begun.
4837
4838         * pic/pic.y (placeless_element): Delete argument to PRINT after
4839         use.
4840
4841 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
4842
4843         * Make wrapman work.
4844         * troff/div.h (class top_level_diversion): Replace
4845         first_page_begun by before_first_page (with opposite sense).
4846         * Change first_page_begun to before_first_page inverting sense.
4847         * troff/div.cc (class nl_reg): New class.
4848         (init_div_requests): Use class nl_reg for \n(nl.
4849         (top_level_diversion::begin_page): Don't call
4850         output_file::begin_page if before_first_page is 2;
4851         reset before_first_page afterwards.  If have_next_page_number is
4852         false, then always increment page_number.
4853         * tmac/tmac.an: Set traps within TH rather than at the top-level.
4854         Restore compatibility mode after loading, and then disable
4855         compatibility mode in TH.
4856
4857 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
4858
4859         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
4860         past last line.
4861         * troff/node.h (output_file::trailer): Declare.
4862         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
4863         * troff/node.cc (output_file::trailer): New function.
4864         (troff_output_file::~troff_output_file): Move most code into...
4865         (troff_output_file::trailer): New function.
4866         (class troff_output_file): Delete page_length member. Declare
4867         trailer().
4868         (troff_output_file::really_begin_page): Use current page length
4869         for final V command.
4870
4871         * tbl/main.cc (struct options): New decimal_point_char member.
4872         (options::options): Initialize this.
4873         (process_options): Implement decimalpoint option.
4874         (process_data): Pass decimal_point_char option to table::table.
4875         * tbl/table.h (class table): New decimal_point_char member.
4876         (table::table): Add additional argument.
4877         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
4878         second argument specifying decimal point character.  Use this
4879         instead of '.'.
4880         (table::table): Initialize decimal_point_char.
4881         (table::add_entry): Change call to find_dot.
4882
4883         * troff/input.cc (get_copy, token::next): Implement \V.
4884         (interpolate_environment_variable): New function.
4885
4886 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
4887
4888         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
4889         * pic/pic.y: Likewise.
4890
4891         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
4892         Add casts to int.
4893         * refer/ref.cc (reference::insert_field, reference::delete_field):
4894         Likewise.
4895         * troff/number.cc (parse_term): Likewise.
4896
4897         * acgroff.m4 (GROFF_PROG_YACC): New macro.
4898         * configure.in: Use GROFF_PROG_YACC.
4899
4900         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
4901         and g++.
4902         * Makefile.in (OPTIMIZE): New define.
4903         (DEBUG): Empty by default.
4904         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
4905
4906         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
4907         (GROFF_ARRAY_DELETE): Likewise.
4908         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
4909
4910         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
4911
4912         * devps/psstrip.sed: Use different delimiter on last line (so that
4913         it works with BSD 4.4 sed.)
4914
4915 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
4916
4917         * devps/psstrip.sed: Delete comments.
4918
4919         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
4920         optind, opterr, optarg.
4921         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
4922         opterr, optarg.
4923
4924 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
4925
4926         * Makefile.in (check): Dummy target.
4927
4928 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
4929
4930         * Version 1.07 released.
4931
4932         * Integrate mm 1.11.
4933
4934         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
4935         where start_col was meant.
4936
4937 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
4938
4939         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
4940
4941 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
4942
4943         * troff/input.cc (token::next): Make \z\o'...' and similar things
4944         work.
4945
4946         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
4947         constants.
4948         (environment): Add margin_character_flags member.
4949         * env.cc (environment::environment(symbol),
4950         environment::environment(const environment *): Initialize
4951         margin_character_flags.
4952         (margin_character): Rewrite.
4953         (environment::output_line): Add a margin character if
4954         margin_character_flags is non-zero.  Turn off the
4955         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
4956         zero, use margin_character_node without copying and then set
4957         margin_character_node to 0.
4958
4959         * devps/DESC.in: Change minimum size to 1000.
4960
4961 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
4962
4963         * troff/symbol.h (symbol::hash): Change return type to unsigned
4964         long.
4965         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
4966         Add casts to int.
4967
4968         * test-groff: Use -r rather than -x.
4969
4970         * grops/psfig.diff: Include in distribution again.
4971
4972 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
4973
4974         * Makefile.in (dist): Use gzip.
4975
4976 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
4977
4978         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
4979         unistd.h as well as in stdlib.h.
4980         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
4981         defined; otherwise include <sys/types.h> and <unistd.h> if
4982         UNISTD_H_DECLARES_GETOPT is defined.
4983
4984         * configure.in: use builtin(include, ... rather than include(...
4985         * configure: Regenerate with autoconf 1.3.
4986
4987         * libdriver/print.cc (printer::adjust_arc_center): Use new
4988         algorithm suggested by Andy Fyfe.
4989
4990         * libdriver/printer.cc (printer::adjust_arc_center): New function.
4991         * include/printer.h: Declare this.
4992         * grops/ps.cc (ps_printer::draw): Use it.
4993         * grodvi/dvi.cc (dvi_printer::draw): Use it.
4994
4995 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
4996
4997         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
4998
4999 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
5000
5001         * eqn/main.cc (main): Handle "eqn -".
5002
5003 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
5004
5005         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
5006
5007         * mm: Integrate version 1.08.
5008
5009         * pic/troff.cc (troff_output::finish_picture): Set
5010         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
5011         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
5012         if it's not defined. Check whether the register is non-zero rather
5013         than whether it's not defined.
5014         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
5015
5016         * indxbib/indxbib.cc: Move all signal handling into...
5017         * indxbib/signal.c: New file.
5018         * configure.in: Call AC_RETSIGTYPE.
5019
5020         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
5021         * configure.in: Call GROFF_STRUCT_EXCEPTION.
5022         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
5023
5024         * troff/input.cc (token::token, token::operator=): Work round SGI
5025         C++ bug.
5026         * pic/object.cc (position::position): Likewise.
5027
5028 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
5029
5030         * pic/pic.h: Move declaration of hypot().
5031
5032 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
5033
5034         * pic/pic.h: Declare hypot().
5035
5036         * pic/pic.h: Define M_PI if necessary.
5037
5038 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
5039
5040         * tmac/tmac.e (re): Add alternative version that doesn't use groff
5041         `.ta T' feature.
5042
5043         * devps/prologue.ps (RE): Handle the possibility that the old font
5044         doesn't have a FontName entry.
5045
5046 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
5047
5048         * tmac/tmac.e (fam): Redefine to set family in environment 2.
5049         (@C): Use @fam not fam.
5050
5051 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
5052
5053         * lookbib/lookbib.cc (main): Change type of start to const char *.
5054         * lkbib/lkbib.cc (main): Likewise.
5055
5056         * eqn/lex.cc (definition::definition): Don't use member
5057         initializer syntax for members of anonymous unions.
5058
5059         * troff/input.cc (input_stack::backtrace): Change type of to const
5060         char *.
5061
5062 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
5063
5064         * include/stringclass.h (class string): Declare inline friend
5065         functions as inline in class declaration.
5066         * troff/hvunits.h (class hunits, class vunits): Likewise.
5067         * include/refid.h (class reference_id): Likewise
5068         * troff/troff.h (points_to_units(units), scale(units, double)):
5069         Delete declarations.
5070         * libdriver/input.cc (get_char): Delete declaration.
5071         * include/lib.h: Change 2nd argument of getopt from const char **
5072         to char **.
5073         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
5074         char **' before assigning to a `const char **'.
5075         * tbl/table.cc: Delete extra declarations of prints().
5076
5077 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
5078
5079         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
5080         char **' before assigning to a `const char **'.
5081
5082         * libgroff/errarg.cc (errarg::errarg): Don't use member
5083         initializer syntax for members of anonymous unions.
5084
5085 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
5086
5087         * mm: Integrate version 1.07.
5088
5089 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
5090
5091         * troff/input.c (translate2): Rename to
5092         (translate_no_transparent).
5093         (init_input_requests): Rename tr2 to trnt.
5094
5095 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
5096
5097         * troff/charinfo.h (class charinfo): Add transparent_translate field.
5098         (charinfo::set_translation, charinfo::set_special_translation):
5099         Add second argument that specifies value for
5100         transparent_translate.
5101         (charinfo::get_translation, charinfo::get_special_translation):
5102         Add optional second argument that specifies whether translation is
5103         being used for transparent throughput.
5104         * troff/input.cc (charinfo::set_translation,
5105         charinfo::set_special_translation): Handle second argument.
5106         (charinfo::charinfo): Initialize transparent_translate.
5107         (translate): Split main part off into
5108         (do_translate): New function.  Pass argument saying whether
5109         translation applies to transparent throughput.
5110         (translate2): New request.
5111         (init_input_requests): Bind translate2 to `tr2'.
5112
5113 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
5114
5115         * tbl/table.h (class table): Add `nokeep' flag.
5116         * tbl/main.cc (process_options): Handle `nokeep' option.
5117         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
5118         table::do_bottom): Don't output keep/release macro definitions or
5119         calls when `nokeep' option has been specified.
5120
5121 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
5122
5123         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
5124
5125 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
5126
5127         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
5128         block_entry::divert, alphabetic_block_entry::divert): Add extra
5129         argument giving column separation.
5130         (table::compute_widths): Pass column separation to
5131         table_entry::divert().
5132         (block_entry::do_divert): If an entry spans multiple columns and a
5133         minimumum width has been specified for each column, then set the
5134         line length to the sum of the widths (plus possibly the column
5135         separations).
5136
5137         * troff/input.cc (set_escape_char): Don't set the escape_char
5138         until after calling has_arg().
5139
5140 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
5141
5142         * tbl/table.cc (table::do_top): Add missing \s0 for double box
5143         case.
5144
5145         * tbl/table.cc (table::print_double_hline): Avoid extra new line
5146         in case where r > nrows - 1.
5147
5148         * tbl/table.cc (BODY_HEIGHT): Deleted.
5149         (LINE_SEP): New definition.
5150         (table::print_single_hline, table::print_double_hline,
5151         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
5152         table::do_row, table::do_top): Use LINE_SEP space before a line
5153         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
5154
5155         * tbl/table.cc (text_entry::print_contents): New function.
5156         (text_string_name, right_text_string_name): Deleted.
5157         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
5158         (simple_text_entry::do_width, numeric_text_entry::do_width,
5159         alphabetic_text_entry::do_width): Don't store the contents of the
5160         entry in a string.
5161         (left_text_entry::simple_print, right_text_entry::simple_print,
5162         center_text_entry::simple_print,
5163         alphabetic_text_entry::simple_print,
5164         numeric_text_entry::simple_print): Print the entry directly
5165         instead of using the stored string.
5166
5167 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
5168
5169         * devps/Makefile: Strip PostScript files.
5170         * devps/prologue: Rename to...
5171         * devps/prologue.ps.
5172         * devps/psstrip.sed: New file.
5173         * devps/download: Use .pfa rather than .ps for installed versions
5174         of fonts.
5175
5176 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
5177
5178         * troff/env.cc (input_trap): Give a warning if the argument is out
5179         of range.
5180
5181         * troff/env.cc (adjust): Treat negative argument as missing. Round
5182         argument > 5 down to 5.
5183
5184         * troff/env.cc (center, right_justify): Make negative argument zero.
5185
5186         * troff/div.cc (page_offset, vertical_position_traps): Treat
5187         invalid argument as missing.
5188         * troff/env.cc (line_spacing, line_length, title_length, indent,
5189         underline, hyphen_line_max_request, control_char,
5190         no_break_control_char, widow_control_request, adjust, input_trap,
5191         point_size): Likewise.
5192         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
5193         constant_space): Likewise.
5194         * troff/input.cc (compatible, shift, warn_request,
5195         set_escape_char): Likewise.
5196
5197         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
5198         * tbl/table.cc (table::table): Likewise.
5199
5200         * Makefile.dev (install_dev): depends on $(DEVFILES).
5201
5202 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
5203
5204         * devX75, devX75-12, devX100, devX100-12: New directories.
5205         * Makefile.in: Add these to DEVDIRS.
5206
5207         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
5208         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
5209         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
5210         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
5211         targets.
5212         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
5213         (uninstall): New target.
5214         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
5215         uninstall_prog, uninstall_dev): New targets.
5216
5217         * troff/div.cc (return_request): Treat an invalid argument as
5218         missing.
5219
5220 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
5221
5222         * tmac/tmac.e ((f): Set up the environment even when there's a
5223         current diversion.  Transperently throughput a call to @N.
5224         (@N): New macro.
5225
5226 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
5227
5228         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
5229         up to vertical resolution.
5230
5231         * tbl/table.cc (table::do_row): Change row number after printing
5232         stuff list.
5233
5234         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
5235
5236 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
5237
5238         * Rename CHANGES to NEWS.
5239
5240 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
5241
5242         * libgroff/new.cc (operator new): Avoid calling malloc(0).
5243
5244 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
5245
5246         * man.ultrix: Removed.
5247
5248 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
5249
5250         * Makefile.comm (extraclean): Delete files whose names begin with
5251         `='.
5252
5253         * pic/troff.cc (troff_output::text): Fix typo in implementation of
5254         aligned text.
5255
5256 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
5257
5258         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
5259         * troff/div.cc (page_length, need_space, space_request): Treat
5260         invalid optional argument as missing.
5261         * troff/env.cc (number_lines): If the first argument is present
5262         but not a number, turn on line numbering, don't change the next
5263         line number and parse the remaining arguments.
5264
5265         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
5266
5267 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
5268
5269         * eqn/box.h: Change declaration accordingly.
5270         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
5271         the specified size was bad but don't give an error.  Check for
5272         overflow.
5273         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
5274         * eqn/lex (do_size): Likewise.
5275
5276 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
5277
5278         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
5279         compatible headers.
5280
5281 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
5282
5283         * tbl/table.cc (table::init_output): Improve error message when
5284         table won't fit on one page.
5285
5286 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
5287
5288         * pic/troff.cc (troff_output::start_picture): Generate line
5289         containing a horizontal motion equal to the width of the picture.
5290
5291         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
5292         using GROFF_COMMAND_PREFIX environment variable.
5293
5294 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
5295
5296         * mdate.sh: Use $NF rather than $(NF).
5297
5298 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
5299
5300         * pic/main.cc (main):  Use %1 not %c in argument to warning.
5301
5302         * eqn/main.cc (main): Output code to check that geqn was given the
5303         correct -T option.
5304
5305 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
5306
5307         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
5308         `ln -s ../Makefile .; make; rm -f Makefile'.
5309
5310         * troff/hyphen: Rename to...
5311         * troff/hyphen.us:
5312         * troff/input.cc (main): Delete -H option. Don't call
5313         read_hyphen_file().
5314         * troff/env.cc: Include searchpath.h and macropath.h.
5315         (exception_dictionary): Deleted.
5316         (ht): Deleted.
5317         (read_hyphen_file): Deleted.
5318         (hyphenation_language): New struct.
5319         (class trie, class hyphen_trie): Move declarations up.
5320         (trie_node::~trie_node): Deleted.
5321         (trie::delete_trie_node): New function.
5322         (trie::do_delete): New pure virtual function.
5323         (hyphen_trie::do_delete): New function.
5324         (trie::~trie): New function.
5325         (hyphen_trie::~hyphen_trie): New function.
5326         (trie::clear): No need to chcek that tp is not 0.
5327         (current_language, language_dictionary): New variables.
5328         (hyphen_word): Give an error if no current language.  Use
5329         exceptions dictionary in current language.
5330         (hyphen_trie::read_patterns_file): Find file using macro_path.
5331         Allow comments (starting with %) in patterns file.  Don't make it
5332         a fatal error if the file can't be found.
5333         (hyphenate): Return if no current language.  Get the exceptions
5334         dictionary and the hyphenation patterns from the current language.
5335         (set_hyphenation_language): New variable.
5336         (hyphenation_patterns_file): New function.
5337         (hyphenation_language_reg): New class.
5338         (hyphenation_language_reg::get_string): New function.
5339         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
5340         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
5341         register.
5342         * groff/groff.cc (main, help, synopsis): Delete -H option.
5343         * include/Makefile.sub: Don't define HYPHENFILE.
5344         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
5345         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
5346         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
5347         hyphenation patterns.
5348
5349 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
5350
5351         * eqn/neqn.sh: New file.
5352         * eqn/Makefile.sub: Handle neqn.sh.
5353
5354         * eqn/eqn.h: Declare `nroff' variable.
5355         * eqn/box.cc (param_table): Add `nroff' param.
5356         (nroff): Define it.
5357         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
5358         variable.
5359         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
5360
5361         * troff/troff.h (WARN_FONT): New warning.
5362         (WARN_TOTAL): Change accordingly.
5363         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
5364         (warning_table): Add WARN_FONT.
5365         * troff/node.cc (mount_font_no_translate): Pass argument to
5366         font::load_font.  If this is non-zero, give a warning.
5367         Don't give an error message when accessing a font that has already
5368         been found to be invalid.
5369         * include/font.h (font::load, font::load_font): Add additional
5370         optional argument which suppresses error message if the font is
5371         not found.
5372         * libgroff/font.cc (font::load_font): Handle additional argument.
5373         (font::load): Add additional argument. If this is non-null, set it
5374         to 1 and don't give error message.
5375
5376         * include/printer.h (printer::end_page): Add argument giving
5377         length of page.
5378         * libdriver/input.cc (do_file): Pass this.
5379         * grops/ps.cc (ps_printer::end_page): Add argument.
5380         * grodvi/dvi.cc (dvi_printer::end_page,
5381         draw_dvi_printer::end_page): Add argument.
5382         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
5383         columns_per_page members. New member nlines.
5384         (DEFAULT_LINES_PER_PAGE): Deleted.
5385         (tty_printer::tty_printer): Don't compute lines_per_page from
5386         font::paperlength. Don't compute columns_per_page from
5387         font::paperwidth.
5388         (tty_printer::add_char): Don't check horizontal position against
5389         columns_per_page. Grow glyphs vector if neccessary.
5390         (tty_printer::end_page): Add argument giving page_length in units.
5391         Discard lines past end of page.
5392
5393 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
5394
5395         * tmac/tmac.tty-char: Fix definition of \(/l.
5396
5397         * tmac/tmac.X: Define \(en.
5398
5399 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
5400
5401         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
5402         lpq, then use lp rather than lpr.
5403
5404         * tmac/tmac.s (par@reset): Don't call `ad'.
5405         (par*env-init): Call `ad'.
5406
5407 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
5408
5409         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
5410         date.
5411
5412         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
5413         * indxbib/indxbib.cc: Likewise.
5414
5415 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
5416
5417         * libgroff/putenv.c: New file.
5418         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
5419         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
5420         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
5421         stdlib.h with AC_HAVE_HEADERS.
5422
5423 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
5424
5425         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
5426         does not exist.
5427
5428 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
5429
5430         * eqn/box.cc (gsize): Make it an int.
5431         (set_gsize): Parse argument handling increment or decrement.
5432         (box::top_level): Convert gsize to a string.
5433
5434         * troff/input.cc (exit_troff): Make buf unsigned char [].
5435         Call to make_temp_iterator casts buf to char*.
5436
5437         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
5438
5439         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
5440         * Makefile.cpg (depend.temp): Likewise.
5441
5442         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
5443
5444         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
5445
5446 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
5447
5448         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
5449
5450 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
5451
5452         * Version 1.06 released.
5453
5454         * Integrate mm 1.04.
5455
5456 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
5457
5458         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
5459
5460 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
5461
5462         * afmtodit/afmtodit.pl: Add -n option that disables generation of
5463         ligatures command.
5464         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
5465         afmtodit. Regenerate.
5466
5467         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
5468         @f back past the current position.
5469
5470         * tmac/tmac.e: Change calls to @R so that comments are not part of
5471         arguments.
5472
5473 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
5474
5475         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
5476
5477         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
5478         check that we can link a call to a function declared in <stdio.h>.
5479         (GROFF_UNISTD_H): New macro.
5480         * configure.in: Call it.
5481         * Makefile.in: Document it.
5482         * include/posix.h: New file.
5483         * troff/troff.h: Don't include <osfcn.h>
5484         * troff/input.cc: Include posix.h.
5485         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
5486         osfcn.h.
5487         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
5488         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
5489         <fcntl.h>.
5490         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
5491         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
5492         * libbib/search.cc (O_RDONLY): Delete definition.
5493         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
5494         Don't include <osfcn.h>.
5495
5496         * acgroff.m4 (GROFF_TIME_T): New macro.
5497         * configure.in: Call it.
5498         * Makefile.in: Document it.
5499
5500         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
5501         * configure.in: Call it.
5502         * Makefile.in: Document -DTRADITIONAL_CPP.
5503         * include/ptable.h: Don't include generic.h.
5504         (name2): Define it.
5505
5506         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
5507         Afterwards remove [T1 and [T2.
5508         (ref*spec!0, ref*spec!2): Use T1 rather than T.
5509         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
5510         (ref*add-T2): Renamed from ref*add-T.
5511         (ref*add-T1): New macro.
5512
5513 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
5514
5515         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
5516
5517         * libbib/index.cc: Include <fcntl.h>.
5518         (O_RDONLY): Define if necessary.
5519         (make_index_search_item, index_search_item_iterator::get_tag,
5520         index_search_item::check_files): Use O_RDONLY.
5521         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
5522         (O_RDONLY): Define if necessary.
5523         (search_list::add_file): Use O_RDONLY.
5524         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
5525         <sys/stat.h>.
5526         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
5527         (main): Use these.
5528
5529         * libbib/index.cc (S_ISREG): Define it if necessary.
5530         (index_search_item::load): Use S_ISREG.
5531
5532         * include/driver.h: Include <errno.h>.
5533
5534 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
5535
5536         * eqn/box.cc (body_height): Increase default value to 85.
5537         (body_depth): Increase default value to 35.
5538
5539 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
5540
5541         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
5542         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
5543         protected from expansion with \E.
5544
5545         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
5546
5547         * Makefile (Makefile): New target.
5548
5549         * Makefile.sub (configure, distfiles): New targets.
5550
5551         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
5552         construct.
5553
5554 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
5555
5556         * eqn/box.cc (param_table): Add body_height and body_depth.
5557
5558         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
5559
5560 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
5561
5562         * psbb/Makefile.sub: Don't link with libgroff.a.
5563
5564         * acgroff.m4 (GROFF_PUTENV): New macro.
5565         * configure.in: Call GROFF_PUTENV.
5566         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
5567         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
5568         is defined.
5569
5570         * troff/env.cc (distribute_space): Rename force_forward argument
5571         to force_reverse.  Reverse the list if force_reverse is true.
5572
5573 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
5574
5575         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
5576
5577         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
5578         height or depth to be negative.  Guard against SUP_RAISE quantity
5579         being negative.
5580
5581 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
5582
5583         * devps/generate/textmap: Add `an' (arrowhorizex).
5584         * tmac/tmac.ps: \(an overlaps horizontally.
5585         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
5586
5587         * devps/symbolchars: Add arrowverttp, arrowvertbt.
5588         * devps/textmap: Add arrowvertex.
5589         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
5590         updownarrow delimiters.
5591         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
5592
5593         * tbl/table.cc (simple_entry::position_vertically,
5594         block_entry::position_vertically):  For a centered entry, perform
5595         the motion in two stages.
5596
5597         * refer/refer.cc (split_punct): Don't call lookup_token if there
5598         is no token.
5599
5600 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
5601
5602         * troff/input.cc (token::next): Delete token_node after copying
5603         token.
5604
5605         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
5606         cur_point_size.
5607
5608         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
5609
5610         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
5611
5612 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
5613
5614         * grops/ps.cc (usage): -b option takes an argument.
5615
5616         * devps/prologue (PLG): New procedure.
5617         * grops/ps.cc (main, usage): New -g option.
5618         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
5619         length using PLG.
5620
5621 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
5622
5623         * include/cset.h: Include <limits.h> if we have it.
5624
5625         * libgroff/illegal.cc: New file.
5626         * include/lib.h (illegal_input_char): Use table.
5627         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
5628         * pic/lex.cc (ARG1): Renumber to 14.
5629         * eqn/lex.cc (ARG1: Likewise.
5630
5631         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
5632         (eg 1.05.90) correctly.
5633
5634 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
5635
5636         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
5637         Rename $r and $R registers to $v and $V.
5638         ($r, $R): Initialize to 0.
5639         (@v, @V): New macros.
5640         (sz): Call @v.
5641         (@M): Call @V.
5642
5643         * troff/input.cc (main, usage): Add -R option that says not to
5644         load troffrc.
5645         * eqn/main.cc (main, usage): Rename -n to -R.
5646
5647 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
5648
5649         * devps/DESC.in: Leave font positions 5-9 blank.
5650         * devdvi/DESC.in: Likewise.
5651
5652         * grog/grog.pl: Handle `.PS <file' correctly.
5653
5654         * troff/input.cc (input_stack::push): Improve error message when
5655         input stack limit exceeded.
5656
5657 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
5658
5659         * refer/refer.cc (main): Fix typo in handling of `a' option.
5660
5661         * refer/refer.cc (do_bib): In state START after a newline remain
5662         in state START.
5663
5664         * groff/groff.sh: Deleted.
5665         * groff/Makefile.sub: Delete handling of groff.sh.
5666
5667         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
5668         to determine whether to use \X'ps:...'.
5669         * tmac/troffrc: Set 0p register to 0.
5670         * tmac/tmac.ps: Set 0p register to 1.
5671
5672         * groff/groff.cc: Support -X option. Give warning for -TXps and
5673         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
5674         * tmac/troffrc: Support -r.X=1.
5675
5676         * pic/troff.cc (troff_output::dot): Don't test
5677         zero_length_line_flag.
5678
5679 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
5680
5681         * include/lib.h: Declare getopt() and friends unless
5682         STDLIB_H_DECLARES_GETOPT is defined.
5683
5684         * doc/chars.tr: Delete.
5685         * man/groff_char.man: New file.
5686
5687 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
5688
5689         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
5690         user has changed register format.
5691
5692 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
5693
5694         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
5695         `postpro' command in DESC file.  Get spooler command from `print'
5696         command in DESC file.  Execute spooler command with /bin/sh.
5697
5698         * groff/groff.cc: Split Unix-specific parts into...
5699         * groff/pipeline.c: New file.
5700
5701         * LICENSE: Delete.
5702         * COPYING: New file.
5703         * all files: Update copyright notices.
5704
5705         * Rearrange files.  Redo Makefiles.  Use autoconf.
5706
5707 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
5708
5709         * troff/input.c (charinfo_to_node_list): Interpret character
5710         definition with escape_char of `\'.
5711
5712 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
5713
5714         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
5715         Define INT_DIGITS as big enough for 64-bit integer.
5716         * lib/strtol.c: Don't include lib.h.
5717         * lib/lib.h: Delete ifdef __cplusplus stuff.
5718
5719 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
5720
5721         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
5722         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
5723         get DESC from current directory.
5724
5725 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
5726
5727         * tbl/main.c (main): Always reset the line number when reading
5728         from stdin.
5729
5730         * tbl/table.c (table::print_single_hline, table::print_double_hline,
5731         table::define_bottom_macro, table::do_row, table::do_top): Round
5732         vertical spacing up to vertical resolution.
5733
5734 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
5735
5736         * ps/ps.h (enum resource_type): Avoid comma at end of
5737         enumerator-list.
5738         * dvi/dvi.c (class dvi_printer): Likewise.
5739         * dvi/tfmtodit.c (gf::load): Likewise.
5740         * refer/label.y (struct expression): Likewise.
5741         * refer/refer.c (class label_processing_state): Likewise.
5742         * refer/indxbib.c (do_file): Likewise.
5743         * troff/troff.c (enum warning_type): Likewise.
5744         * tbl/main.c (process_data): Likewise.
5745         * troff/charinfo.h (class charinfo):
5746
5747 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
5748
5749         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
5750
5751 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
5752
5753         * groff.c: Move to new groff subdirectory.
5754         * groff/Makefile: New file.
5755         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
5756
5757         * man/mdate.sh: Use ls -L if supported.
5758
5759         * Consolidate all header files produced by gendef into lib/defs.h.
5760         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
5761         Don't include path.h.
5762         * lib/Makefile (path.h): Don't generate.
5763         * troff/input.c: Include defs.h. Don't include config.h.
5764         * troff/Makefile (config.h): Don't generate.
5765         * refer/index.h: Don't include suffix.h.
5766         * refer/index.c: Include defs.h.
5767         * refer/indxbib.c: Include defs.h.
5768         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
5769         defs.h.
5770         * refer/Makefile (suffix.h, path.h): Don't generate.
5771         * groff.c: Don't include config.h. Include defs.h.
5772         * Makefile (config.h): Don't generate.
5773         (lib/defs.h): Generate.
5774         (topclean): Remove lib/defs.h.
5775
5776 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
5777
5778         * lib/malloc.c, lib/getpagesize.h: Deleted.
5779         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
5780         related stuff.
5781         * lib/Makefile: Delete malloc-related stuff.
5782         * lib/new.c: Workaround COOKIE_BUG if necessary.
5783
5784         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
5785         needed header files directly.
5786         * refer/refer.h: Omit definition of DEFAULT_INDEX.
5787         * Makefile: Include definition of DEFAULT_INDEX in path.h.
5788
5789 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
5790
5791         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
5792         argument.
5793         * lib/font (font::load_desc, font::load): Don't split argument of
5794         unknown command.
5795         (font::handle_unknown_font_command): Change type.
5796         * ps/ps.c (ps_font::handle_unknown_font_command,
5797         handle_unknown_desc_command): Change type.
5798         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
5799
5800 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
5801
5802         * lib/font.h (font::handle_unknown_font_command): Add file and
5803         line arguments.
5804         * lib/font.c (font::handle_unknown_font_command):
5805         * ps/ps.c (ps_font::handle_unknown_font_command):
5806         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
5807         lineno arguments.  Use _with_file_and_line functions for error
5808         reporting.
5809
5810         * lib/fontfile.c (font::unknown_desc_command_handler): New static
5811         data member.
5812         * lib/font.c (font::set_unknown_desc_command_handler): New
5813         function.
5814         (font::load_desc): For unknown commands, call
5815         unknown_desc_command_handler if not null.
5816         * lib/font.h (class font): Declare them.
5817         (FONT_COMMAND_HANDLER): New typedef.
5818         * ps/ps.c (handle_unknown_desc_command): New function.
5819         (main): Set bflag if we had a -b option. Call
5820         font::set_unknown_desc_command_handler.
5821         (broken.h): Don't include.
5822         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
5823         submake 
5824         * ps/devps/Makefile: Add `broken' command to DESC file using
5825         BROKEN_SPOOLER_FLAGS.
5826
5827         * macros/tmac.e ([, ]): Add as synonyms for { and }.
5828
5829         * macros/tmac.e ($p): Only exdent if \$3 > 0.
5830
5831         * macros/tmac.e (@R, @S): New macros.
5832         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
5833         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
5834         Declare $H, $[0-9], .. macros with @S.
5835         Declare |0, |1, |2, |3 strings with @S.
5836
5837         * macros/tmac.e (@S): Rename to @U.
5838
5839         * macros/tmac.e (@z): Define @b and bp as empty instead of
5840         deleting them,
5841
5842         * macros/tmac.e (@m): Deleted.
5843         (@h): Don't call @m.
5844         (@z): Don't set @m trap.
5845
5846         * macros/tmac.e ($h, $f): Define |z as empty string.
5847
5848         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
5849         (@q): Likewise.
5850
5851         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
5852         removing them.
5853         ()f): Likewise for * register.
5854
5855         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
5856         argument is missing, don't change $R.  Call sr with three
5857         arguments when initializing.
5858
5859 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
5860
5861         * macros/tmac.e (sr): New macro.
5862         Initialize $r and $R using sr.
5863
5864         * macros/tmac.e (,): Delete \*(#[.
5865
5866         * troff/env.c (set_tabs): Read the tab type even if the position
5867         is bad.  Allow the position of the first tab stop to be negative.
5868
5869 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
5870
5871         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
5872         _POSIX_VERSION.
5873         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
5874         rather than -DPATHCONF_MISSING.
5875         * Makefile: Get rid of PATHCONF_MISSING.
5876
5877         * refer/map.c: New file.
5878         * refer/index.c: Interface to mmap through map.c.  Rename map_size
5879         to map_len.
5880         * refer/Makefile: Handle map.c.
5881         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
5882
5883 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
5884
5885         * Makefile: RANLIB should be `true' if there is no ranlib.
5886         * lib/Makefile (libgroff.a): Simplify.
5887         * driver/Makefile (libdriver.a): Simplify.
5888
5889         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
5890         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
5891         defined.
5892
5893 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
5894
5895         * troff/env.c (compare_ranges): Declare as extern "C".
5896
5897         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
5898
5899         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
5900
5901 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
5902
5903         * pic/troff.c (troff_output::text): Merge in grops_output::text,
5904         but conditionalize use of \X based on \*(.T.
5905         (grops_output::*): Deleted.
5906         * pic/output.h: Delete declaration of make_grops_output.
5907         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
5908         by default. -n sets it to 0.
5909         (usage): Corresponding changes.
5910         * groff.c (main): Don't pass -x or -p to pic.
5911         * groff.sh: Likewise.
5912
5913         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
5914         to be non-zero.
5915
5916         * ps/devps/afmtodit: Change calculation of asc_boundary and
5917         desc_boundary.  Make these bounds inclusive.
5918         * ps/devps: Regenerate font files.
5919
5920 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
5921
5922         * macros/tmac.latin1: New file.
5923         * macros/tmac.tty-char: Use tmac.latin1.
5924         (tmac.tty-tr): Deleted.
5925         * macros/Makefile: Install tmac.latin1.
5926         * macros/tmac.dvi: Use tmac.latin1.
5927         * macros/troffrc: Translate \[char160] onto no-break space here.
5928         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
5929
5930 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
5931
5932         * macros/tmac.Xps: Use `do' request.
5933
5934         * macros/tmac.ps: Use `do' request.
5935
5936         * macros/tmac.e (@C): Use `do' request.
5937
5938         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
5939         * macros/Makefile: Install tmac.X*.
5940
5941         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
5942         * tty/Makefile: Don't install tmac.tty*.
5943         * macros/Makefile: Install tmac.tty*.
5944
5945         * dvi/tmac.dvi: Move to macros.
5946         * dvi/Makefile: Don't install tmac.dvi.
5947         * macros/Makefile: Install tmac.dvi.
5948
5949         * ps/tmac.ps*: Move to macros.
5950         * ps/Makefile: Don't install tmac.ps*.
5951         * macros/Makefile: Install tmac.ps*.
5952
5953         * eqn/box.c: Provide draw_lines parameter corresponding to -D
5954         option.
5955         * macros/eqnrc: Set draw_lines parameter based on device.
5956         * groff.c: Don't pass -D flag to eqn.
5957         * groff.sh: Likewise.
5958         * eqn/main.c: Warn about use of -D.
5959
5960         * troff/input.c (process_startup_file): New function.
5961         (main): Call process_startup_file().
5962         * macros/troffrc: New file.
5963         * macros/Makefile: Install troffrc.
5964         * groff.c (main): Don't pass extra -m option to troff. For a 
5965         pseudo device pass the name of the pseudo device to troff using
5966         -d.
5967         * groff.sh: Likewise.
5968         * groff.c (possible_command::prepend_arg): Deleted.
5969
5970         * troff/input.c (do_request): New function.
5971         (init_input_requests): Bind "do" to do_request.
5972
5973         * eqn/main.c (main): Instead of loading eqnchar from device directory,
5974         load eqnrc from macro directory.
5975         * macros/eqnrc: New file.
5976         * macros/Makefile: Install eqnrc.
5977         * ps/devps/eqnchar: Deleted.
5978         * ps/devps/Makefile: Don't install eqnchar.
5979         * dvi/devdvi/eqnchar: Deleted.
5980         * dvi/devdvi/Makefile: Don't install eqnchar.
5981         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
5982         variable optM.
5983
5984         * lib/device.[ch]: New files.
5985         * lib/font.h (font::set_device_name, font::get_device_name):
5986         Deleted.
5987         * lib/fontfile.c: Use device.h.
5988         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
5989         * troff/input.c: Delete definition of `device'.
5990         (main): Don't initialize device.
5991         * troff/troff.h: Include device.h rather than declaring device.
5992         * troff/Makefile: No need to handle DEVICE.
5993         * driver/input.c: Include device.h. Don't use
5994         font::{set,get}_device_name.
5995         * groff.c, Makefile: Rename device.h to config.h.
5996         * groff.c: Use library device variable.
5997         * eqn/main.c: Use library device variable.
5998         * eqn/Makefile: No need to handle DEVICE.
5999
6000         * lib/searchpath.[ch]: New files.
6001         * lib/Makefile: Handle searchpath.[ch].
6002         * troff/input.c (open_file, init_dirs): Deleted.
6003         (macro_dirs): Deleted.
6004         (open_mac_file, macro_source): Use class search_path.
6005         (add_string, struct string_list): Move definition.
6006         (main): Change -M option to use macro_path. Delete call to
6007         init_dirs().
6008         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
6009         Rewrite to use class search_path.
6010         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
6011         * lib/Makefile: fontfile.c depends on searchpath.h.
6012         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
6013         MACROPATH.
6014         * lib/macropath.[ch]: New files.
6015         * troff/Makefile: No need to handle MACROPATH.
6016
6017         * troff/input.c: Delete DUMP code.
6018         * lib/fontfile.c, lib/font.h: Delete
6019         font::forget_command_line_font_dirs.
6020
6021         * troff/input.c (push_token): New function.
6022         (handle_first_page_transition): Use push_token().
6023         (process_input_stack): Change handling of a space at the beginning
6024         of the line.
6025
6026 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
6027
6028         * troff/input.c (font_dirs): Delete unused variable.
6029
6030         * eqn/lex.c (do_set): Correct error messages.
6031
6032 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
6033
6034         * troff/input.c (do_define_string): Allow the string name to be
6035         followed immediately by a tab.
6036         (define_character): Likewise.
6037
6038 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
6039
6040         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
6041         be negative.
6042
6043         * troff/input.c (input_iterator::is_file): New virtual function.
6044         (file_iterator::is_file): New function.
6045         (input_stack::end_file): New function.
6046         (input_stack::next_file): Handle the situation where there is no
6047         file on the input stack correctly.  Avoid making two passes over
6048         the input stack.
6049         (next_file): Make the filename optional; in this case call
6050         input_stack::end_file().
6051
6052 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
6053
6054         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
6055         produce a real _ charater when the current font is CW and _
6056         otherwise.
6057
6058         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
6059         expression to work around gcc 2.2 bug.
6060
6061 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
6062
6063         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
6064
6065         * troff/env.c (environment::add_padding): New function.
6066         (environment::add_char): Use add_padding().
6067         (environment::space): Likewise.
6068         (environment::wrap_up_field): Add some padding if there is none
6069         and there's no current tab.
6070         * troff/env.h: Declare environment::add_padding.
6071
6072 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
6073
6074         * pic/pic.y: undef fmod and rand before declaring them.
6075
6076 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
6077
6078         * troff/input.c (main): If the DESC file specifies a font name of
6079         0, then leave the corresponding font position empty.
6080
6081         * nroff.sh: New file.
6082         * Makefile (install.nobin): Install nroff.sh.
6083
6084         * tty/devlatin1/R.proto: Add ao as synonym for de.
6085         * tty/tmac.tty-char: Define ao as o.
6086
6087         * tty/dev{ascii,latin1}/R.proto: Add aq.
6088         * tty/tmac.tty-char: Delete definition of aq.
6089
6090 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
6091
6092         * troff/input.c (init_charset_table): Don't translate 0240.
6093         * ps/tmac.ps: Translate char160 to space.
6094         * dvi/tmac.dvi: Likewise.
6095         * tty/tmac.tty: Likewise.
6096
6097 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
6098
6099         * dvi/tmac.dvi: Add support for all Latin-1 characters.
6100
6101         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
6102         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
6103         \(oe, \(r?, \(r!.
6104
6105         * tty/tmac.tty-char: Add \(ah.
6106
6107         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
6108         No need to define \(FM and \(!/. Conditionalize all character
6109         definitions.
6110
6111         * ps/devps/lgreekmap: Add +h, +f, +p.
6112
6113         * ps/tmac.psnew: New file.
6114         * ps/Makefile: Install tmac.psnew.
6115
6116         * troff/input.c (charinfo_to_node_list): Don't ever interpret
6117         character definitions in compatible mode.
6118
6119         * troff/input.c (remove_character): New function.
6120         (init_input_requests): Bind remove_character to "rchar".
6121
6122         * ps/tmac.psold: New file.
6123         * ps/Makefile: Install tmac.psold.
6124         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
6125         characters into tmac.psold.  Make these definitions unconditional.
6126
6127         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
6128
6129         * ps/tmac.ps: Don't define \('c and \('C.
6130
6131         * ps/devps/textmap: Move Greek characters to...
6132         * ps/devps/symbolchars:
6133
6134 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
6135
6136         * ps/devps/text.enc: Add quotesingle.
6137         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
6138         * tty/tmac.tty-char: Likewise.
6139         * dvi/devdvi/texmi.map: Add +h, +f, +p.
6140         * dvi/devdvi/texi.map: Add Fn.
6141         * dvi/devdvi/msam.map: Add lz.
6142         * dvi/tmac.dvi: Handle Bq, bq, aq.
6143
6144         * pic/lex.c (get_token): Recognize 'th.
6145         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
6146
6147 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
6148
6149         * ps/devps/textmap: Move di, mu, +- to...
6150         * ps/devps/symbolchars:
6151
6152         * macros/tmac.s (@XS): Don't call par@reset or fi.
6153         (XA): Call LP. Turn off adjustment. Reduce line length.
6154
6155         * macros/tmac.s: Initially alias XS to LP.
6156         (XS): Rename to @XS.
6157         (cov*ab-init): Alias XS to @XS.
6158
6159 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
6160
6161         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
6162         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
6163         (token::is_size, token::changes_env): Deleted.
6164         * troff/number.c (parse_term): No need to process \s explicitly.
6165         Call tok.next() only after scale indicator has been processed.
6166         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
6167         \f etc explicitly.
6168         (token::next): Handle \s, \f, \S, \H immediately rather than
6169         returning them as tokens.
6170         (token::operator==, token::description, token::add_to_node_list,
6171         token::process): Remove handling of deleted tokens.
6172
6173         * troff/env.c (environment::add_char): When adding padding
6174         indicator character, call start_line() if necessary.
6175
6176 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
6177
6178         * ps/devps/afmtodit: Don't output 0 kerns.
6179
6180         * ps/devps/afmtodit: Remove directory from name of encoding in
6181         font description file.
6182
6183         * ps/devps/afmtodit: Improve error messages.
6184
6185         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
6186
6187         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
6188         * ps/devps/FontMakefile: Deleted.
6189         * ps/devps/afmname: New file.
6190
6191         * ps/devps/symbol.sed: New file.
6192         * ps/devps/symbol.diff: Deleted.
6193         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
6194         Generate zapfdr.afm from zapfd.afm.
6195
6196         * tty/tmac.tty (tty-char): Prefix definition with ".
6197
6198         * macros/tmac.an (TP): Don't start a diversion if one has already
6199         been started.
6200
6201         * tty/tmac.tty-char: Add Latin-1 characters.
6202
6203         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
6204
6205 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
6206
6207         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
6208         Move declaration of struct horizontal_span.
6209
6210         * tbl/table.c (table::table): Initialize span_list.
6211         (table::~table): Delete span_list.
6212
6213         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
6214
6215         * ps/devps/Makefile: Avoid dependency on GNU make.
6216
6217         * ps/tmac.ps: Check that character does not already exist before
6218         defining it.
6219
6220         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
6221         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
6222         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
6223         files.
6224
6225         * tty/tmac.tty-char: New file.
6226         * tty/Makefile: Install tmac.tty-char.
6227         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
6228         tmac.tty-char.
6229
6230         * tty/tmac.tty: Fix definition of \(34.
6231
6232         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
6233         bracket-drawing characters onto |. Add *o.
6234
6235         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
6236         only if current_field.
6237
6238         * troff/dictionary.c (dictionary::lookup): Free old_table after
6239         rehashing. 
6240
6241 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
6242
6243         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
6244         whose glyphs are identical to glyphs of some Roman character.
6245
6246         * tty/devlatin1/R.proto (bu): Deleted.
6247         * tty/devascii/R.proto (bu): Deleted.
6248         * tty/tmac.tty: Add definition of \(bu.
6249
6250         * eqn/main.c (do_file): Pass FILE as argument.
6251         (main): Automatically load eqnchar.  New options -F and -n.
6252         Pass do_file an opened FILE.
6253         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
6254         No need to include font.h.
6255         * groff.sh: Likewise.  Don't need to use - for standard input.
6256         Prefix files with -- if first file starts with -.
6257
6258         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
6259
6260         * troff/env.c (environment::possibly_break_line): Don't set line
6261         to 0 across call to output_line().  Don't call output_line() until
6262         after discarding nodes after break.
6263
6264 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
6265
6266         * request.h (macro::empty): Declare it.
6267         * input.c (macro::empty): New method.
6268         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
6269         macro is empty.
6270
6271 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
6272
6273         * troff/env.c (environment::start_field): Decrement space_total
6274         when a space is frozen.
6275
6276 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
6277
6278         * macros/tmac.an (R): Delete macro.
6279
6280         * troff/input.c (get_copy, token::next): Support \# (like \" but
6281         newline is ignored).
6282
6283         * troff/input.c (token::next): Fix error message in 'Y' case.
6284
6285 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
6286
6287         * eqn/delim.c (define_extensible_string): Recognize any prefix of
6288         a delimiter name.
6289
6290 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
6291
6292         * c++test.c: Include <osfcn.h>.
6293
6294         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
6295         <errno.h> doesn't.
6296
6297 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
6298
6299         * tbl/table.c (table::divide_span): Don't count column separation
6300         if expand was specified.
6301
6302         * tbl/main.c (process_format): Don't ignore width specs in
6303         continued format.  Give warning for changing equal widths or
6304         column separation in continued format.
6305         (process_data): Set column separation, minimum width, equal
6306         columns at end of table.
6307
6308 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
6309
6310         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
6311         node::add_discretionary_hyphen): Use soft_hyphen_char.
6312         (set_soft_hyphen_char): New function.
6313         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
6314
6315         * Makefile (c++tested): Give more helpful message if test fails.
6316
6317 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
6318
6319         * troff/input.c (init_charset_table): Translate 0240 to
6320         an unbreakable space.
6321
6322         * troff/token.h (token::hyphen_indicator): New function.
6323         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
6324         translation.
6325         * troff/input.c (translate): Allow translation to \%.
6326         * troff/node.c (node::add_char): Handle
6327         TRANSLATE_HYPHEN_INDICATOR.     
6328         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
6329
6330         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
6331         for \(hy.
6332
6333         * tty/devlatin1/R.proto: \(hy and - should print as 055.
6334
6335 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
6336
6337         * groff.c (run_commands): If the last command gets a SIGPIPE send
6338         a SIGPIPE to all children than haven't yet terminated.  When
6339         command terminates, set pid field to -1.
6340
6341 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
6342
6343         * groff.c (main): Pass an appropriate -filename option to gxditview.
6344
6345 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
6346
6347         * Makefile.bd (install): Remove existing program before copying.
6348
6349         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
6350         programs which have Unix counterparts to be installed with
6351         user-specified prefix.
6352
6353         * troff/input.c (exit_troff): Don't check if exit_started.
6354         (exit_request): Don't call exit_troff if exit_started.
6355
6356         * Makefile.bd (install.mm): Rename to install.dwbmm.
6357
6358 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
6359
6360         * driver/input.c (do_file): Add missing break for '#' case.
6361
6362 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
6363
6364         * troff/input.c (input_stack::clear):  Clear past any boundaries and
6365         then add the boundaries back.
6366
6367         * troff/input.c (exit_troff): Return immediately if already
6368         exiting.
6369
6370         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
6371         end macro.
6372         (pg*end-page): If the text has ended and there are no more
6373         footnotes or keeps, exit.
6374
6375         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
6376
6377         * troff/input.c (init_charset_table): Make \(rq transparent by
6378         default.
6379
6380         * macros/tmac.an: Define lq and rq strings.
6381
6382         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
6383
6384 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
6385
6386         * troff/env.c (environment::final_break): New function.
6387         (environment::newline): Set prev_line_interrupted to 2 if
6388         exit_started.
6389         * troff/env.h: Declare environment::final_break.
6390         * troff/input.c (exit_troff): Call environment::final_break()
6391         instead of environment::do_break().
6392
6393         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
6394         doesn't already exist.
6395         * macros/man.local: New file.
6396         * macros/tmac.an: Load man.local.
6397         * macros/man.ultrix: New file.
6398
6399 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
6400
6401         * troff/input.c (exit_groff): Rename to...
6402         (exit_troff): New function.
6403
6404         * troff/div.c (exit_started, done_end_macro,
6405         seen_last_page_ejector): New global variables.
6406         (began_page_in_end_macro): New static variable.
6407         (exit_flag): Deleted.
6408         (top_level_diversion::top_level_diversion): Initialize
6409         last_page_count.
6410         (top_level_diversion): More elaborate test for whether
6411         cleanup_and_exit() should be called.
6412         Set began_page_in_end_macro if the end macro isn't yet finished.
6413         * troff/div.h (top_level_diversion::last_page_count): New data
6414         member.
6415         (top_level_diversion::set_last_page): New function.
6416         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
6417         * troff/env.c (do_break): Zero prev_line_interrupted.
6418         * troff/input.c (exit_flag): Delete declaration.
6419         (LAST_PAGE_EJECTOR): New magic cookie.
6420         (token::next): Handle LAST_PAGE_EJECTOR.
6421         (exit_groff): Set exit_started and done_end_macro instead of
6422         exit_flag.  Call top_level_diversion::set_last_page.  Push a
6423         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
6424         another ejection after setting seen_last_page_ejector.
6425
6426 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
6427
6428         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
6429
6430         * macros/tmac.e (TH): Make sure there's room for the initial
6431         header.
6432
6433         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
6434         Set FVS in points rather than units.
6435
6436 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
6437
6438         * troff/div.c (top_level_diversion::add_trap): Don't consider the
6439         position of empty slots.
6440
6441 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
6442
6443         * ps/devps/S: Fix height and depth of parenrightex.
6444         * ps/devps/symbol.diff: Regenerate.
6445
6446 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
6447
6448         * tmac.e (u): Do underlining as in -mgs.
6449
6450 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
6451
6452         * tty/tty.c (tty_printer::end_page): If overstriking is
6453         suppressed, still turn overstruck horizontal and vertical lines
6454         into +.
6455
6456         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
6457         2.1.
6458
6459         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
6460
6461 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
6462
6463         * Version 1.05 released.
6464
6465 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
6466
6467         * tty/tty.c: Instead of keeping an array of glyphs and then
6468         sorting it, keep a ordered linked list of glyphs for each line.
6469
6470         * driver/driver.h: Include stddef.h.
6471
6472         * tty/tty.c (compare_glyph):
6473         * refer/refer.c (rcompare):
6474         * troff/env.c (compare_ranges): Arguments of qsort comparison
6475         function should be const void *.
6476
6477         * troff/number.c (parse_term):
6478         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
6479         switch statement.
6480
6481         * refer/label.y (consider_authors): Don't access variables
6482         constructed under a condition outside that condition: put braces
6483         round for statement containing declaration; redeclare use of same
6484         variable later.
6485
6486         * pic/pic.y (text_expr): Delete production that allows
6487         parenthesised text_expr.
6488         (expr): Allow a conditional_expr to appear in parentheses.
6489         (conditional_expr): Rename to any_expr.
6490
6491         * mm: Install new version 1.01 from jh.
6492
6493         * lib/font.c (font::get_width): Cache scaled widths.
6494         (font::font): Initialize widths_cache.
6495         (font::~font): Destroy widths_cache.
6496         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
6497
6498 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
6499
6500         * c++test.c, c++test.ref: New files.
6501         * Makefile: Check that the C++ compiler works.
6502
6503         * ps/tmac.pspic (PSPIC): Do a break.
6504
6505         * ps/tmac.ps: Move definition of PSPIC into...
6506         * ps/tmac.pspic: New file.
6507         (PSPIC): Draw box around picture, but make it invisible to grops.
6508         * ps/tmac.ps: Load tmac.pspic.
6509         * ps/Makefile: Install tmac.pspic.
6510
6511 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
6512
6513         * lib/font.c (scale_round): If n is negative,
6514         subtract .5 before truncating floating point result.
6515
6516         * lib/fontfile.c: Include <errno.h>.
6517
6518 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
6519
6520         * driver/input.c (get_char): Inline. Don't update current_lineno.
6521         Change callers to up date current_lineno if necessary.
6522         Use get_char() instead of getc(current_file).
6523
6524 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
6525
6526         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
6527
6528 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
6529
6530         * tty/tty.c (tmac.tty): Define \(rg as (R).
6531
6532 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
6533
6534         * lib/lib.h: New define a_delete.
6535         * Use a_delete instead of delete when deleting an array of objects
6536         without destructors.
6537
6538         * lib/lib.h: Rename adelete to ad_delete.
6539         * Change uses of adelete.
6540
6541 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
6542
6543         * eqn/eqn.y: Include lib.h.
6544
6545         * troff/node.c (grow_font_table): Delete old_font_table.
6546
6547         * mm: Install new version from jh.
6548
6549 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
6550
6551         * tbl/table.h (format_type): Make global instead of local to class
6552         entry_format.  Prefix enumerators with FORMAT_.
6553         * tbl/table.c, tbl/main.c: Corresponding changes.
6554         * refer/token.h (token_type): Make global.  Prefix enumerators
6555         with TOKEN_.
6556         * refer/token.[ch]: Corresponding changes.
6557         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
6558
6559         * troff/div.c (node::set_vertical_size): Don't name argument.
6560
6561 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
6562
6563         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
6564         * lib/lib.h: Define adelete accordingly.
6565         * pic/object.c (graphic_object::graphic_object):
6566         * tbl/main.c (format::~format):
6567         * tbl/table.c (table::~table):
6568         * refer/ref.c (reference::~reference, reference::merge,
6569         reference::insert_field, reference::delete_field): Use adelete.
6570
6571         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
6572         * refer/token.h:
6573         * tbl/table.h: Corresponding changes.
6574
6575         * common.c (common_output::dashed_arc, common_output::dotted_arc):
6576         Ensure total_angle is positive.
6577
6578 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
6579
6580         * refer/ref.c (reference::merge, reference::insert_field,
6581         reference::delete_field): Avoid delete[0].
6582
6583         * refer/token.c (init_special_chars): Move calls to cmupper
6584         outside calls to init_two_char_letter to work around bug in gcc
6585         2.0.
6586
6587 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
6588
6589         * lib/new.c (operator new): Use __builtin_new for g++.
6590
6591         * pic/object.c (graphic_object::~graphic_object):  Don't use
6592         delete [] on 0.
6593
6594         * pic/object.c (output::compute_scale): Initialize max_width and
6595         max_height.
6596
6597 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
6598
6599         * troff/input.c (write_request): Call fflush.
6600
6601         * troff/node.h (class composite_node): Move declaration to node.c
6602         * troff/input.c (charinfo_to_node): Rename to ...
6603         (charinfo_to_node_list): Return node list rather than composite
6604         node.
6605         * troff/node.c (make_composite_node): New function.
6606         (make_node, add_char): Call make_composite_node instead of
6607         charinfo_to_node.
6608         (class composite_node): Add a tfont * member.  Delete font_size
6609         member.
6610         (composite_node::composite_node, composite_node::copy,
6611         composite_node::size): Corresponding changes.
6612         (composite_node::tprint): Provide constant spacing, emboldening
6613         and track kerning as specified in tfont.
6614         (composite_node::width): Change width calculation accordingly.
6615         * troff/env.h (environment::composite): New member.
6616         (environment::is_composite, environment::set_composite): New
6617         functions.
6618         * troff/env.c (environment::environment): Initialize composite.
6619         * troff/input.c (charinfo_to_node): Call
6620         environment::set_composite.
6621         * troff/node.c (make_composite_node, make_glyph_node): Use the
6622         plain version of the tfont if the environment is composite.
6623
6624         * troff/node.c (font_info::get_space_width): Additional argument
6625         giving space_size.  Handle constant space correctly. Scale by
6626         space_size unless constant spaced.
6627         (env_sentence_space_width): New function.
6628         * troff/node.h: Declare it.
6629         * troff/env.h (environment::get_space_size,
6630         environment::get_sentence_space_size,
6631         environment::get_narrow_space_width,
6632         environment::get_half_narrow_space_width): Make inline.
6633         (environment::get_space_width): Make inline.  Just call
6634         env_space_width.
6635         * troff/env.c: Delete definitions for funtions made inline.
6636         (environment::space_newline, environment::space): Use
6637         env_sentence_space_width(). Don't scale by space_size.
6638         * troff/node.h: Move declarations of env*space_width() functions
6639         into env.h.
6640
6641 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
6642
6643         * macros/tmac.s (PS): Don't try to set negative indent.
6644
6645 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
6646
6647         * pic/pic.y: Fix min function.
6648
6649 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
6650
6651         * man/mdate.sh: Clear LANGUAGE.
6652
6653 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
6654
6655         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
6656         * pic/lex.c: New COMMAND keyword.
6657         * pic/pic.y (print_args, print_arg): New rules.
6658         (placeless_element): Use print_args for PRINT.
6659         New COMMAND element.
6660
6661 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
6662
6663         * troff/input.c (terminal): Handle missing argument correctly.
6664
6665         * pic/pic.y (text_expr): New rule.
6666
6667         * pic/pic.y: Implement := operator.
6668
6669 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
6670
6671         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
6672         mdoc.
6673
6674 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
6675
6676         * ps/devps/dingbatsrmap: Include this in the distribution.
6677
6678         * macros/tmac.doc: Replace with new version from 2nd Networking
6679         Release. Fix loading of doc-* files.
6680         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
6681         * macros/tmac.doc.old: New file.  Apply fixes that had been
6682         applied to old tmac.doc.
6683         * macros/tmac.andoc: Check that we're running under groff.
6684         * macros/Makefile: Rework.
6685
6686 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
6687
6688         * tbl/table.h (format_type): 
6689         * refer/token.h (token_type): If NESTED_TYPES is defined, use
6690         typedef to make these types visible at file scope.
6691         * Makefile: Add NESTED_TYPES configuration option.
6692
6693         * troff/div.c (mark): At the top level use the value of
6694         nl_reg_contents rather than the current vertical position.
6695
6696 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
6697
6698         * tty/tty.c: Implement \D for horizontal or vertical lines.
6699         (tty_printer::set_char): Use vec_used+2 as serial number.
6700         Don't allow size of vector to exceed USHRT_MAX-2.
6701         Split off part into...
6702         (tty_printer::add_char): New function.
6703         (tty_printer::draw): New function.
6704         (compare_glyph): Handle equal serial numbers.
6705         (tty_printer::end_page): Handle overstruck characters from \D.
6706         (main, usage): Implement -d option.
6707
6708 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
6709
6710         * tbl/main.c (process_format):
6711         * eqn/text.c (split_text):
6712         * troff/input.c (token::next): Use inner block for declarations
6713         with initializers in switch statement.
6714
6715 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
6716
6717         * pic/common.c (common_output::dash_line): Cope with zero-length
6718         lines.
6719
6720 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
6721
6722         * Version 1.04 released.
6723
6724 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
6725
6726         * macros/tmac.an (TH): Define a macro an-init to define variables
6727         based on command line arguments.
6728         (an-header): Call it.
6729
6730 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
6731
6732         * Makefile (install.mm): Rename to install.dwbmm.
6733
6734         * Makefile: Integrate mm.
6735         * mm: New directory.
6736
6737 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
6738
6739         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
6740         <sys/types.h>.
6741
6742         * pic/troff.c (troff_output::simple_spline,
6743         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
6744         shadowing parameter.
6745
6746         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
6747
6748         * lib/ptable.h: Add explicit casts when converting from unsigned
6749         long to unsigned.
6750
6751         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
6752         * dvi/devdvi/Makefile: Install SA, SB.
6753
6754         * refer/indxbib.c: Add declaration of mktemp.
6755
6756         * refer/lookbib.c: Add declaration of isatty.
6757
6758 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
6759
6760         * pic/lex.c (interpolate_macro_with_args):  While collecting
6761         arguments, keep track of whether we're in a string.
6762
6763 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
6764
6765         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
6766         down with \v, so as to avoid problems with top of page trap
6767         setting no space mode.
6768
6769 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
6770
6771         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
6772
6773 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
6774
6775         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
6776         Improve error message.
6777
6778 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
6779
6780         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
6781         printf("%03o");
6782
6783 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
6784
6785         * groff.c (possible_command::execp): Always use _exit() after a
6786         failed exec.
6787
6788         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
6789         NO_SYS_WAIT_H   configuration options.
6790         * groff.c: Use these options.  Use POSIX-style macros to extract
6791         fields from the status returned by wait().
6792
6793 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
6794
6795         * tbl/table.c (table::compute_separation_factor): Allow the
6796         separation factor to drop to 0.
6797
6798 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
6799
6800         * refer/search.c: Include <errno.h>.
6801
6802 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
6803
6804         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
6805
6806         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
6807         C++. 
6808
6809         * pic/lex.c (input_stack::bol): Move definition out of class body.
6810
6811         * pic/main.c: On MSDOS munge argv[0].
6812
6813         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
6814
6815         * lib/ptable.c (hash_string): Use unsigned long rather than
6816         unsigned.
6817         (next_ptable_size): Use unsigned rather than int.  Give an error
6818         message if we've hit the largest table size.
6819         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
6820         table size.
6821
6822         * pic/object.h (object_spec): Make flags unsigned long.  Declare
6823         flags as const unisgned long rather than as enums.
6824
6825         * pic/output.c: Deleted.
6826
6827         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
6828
6829         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
6830         Add additional argument.
6831         (line_entry::note_double_vrule_on_{left,right}): Set value of
6832         douvle_vrule_on_{right,left} flag according to argument.
6833         (simple_line_entry::simple_print,
6834         simple_line_entry::double_line_print): If adjacent to double vrule
6835         on a corner extend rather than shorten the rule by half the double
6836         vrule sep.
6837
6838         * troff/number.c (parse_term): In checking for overflow, handle the
6839         case where the current horizontal position is negative.
6840
6841 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
6842
6843         * pic/object.c (draw_arrow): Check for object having zero length.
6844
6845 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
6846
6847         * eqn/main.c (do_file): Split off inline equation handling into...
6848         (inline_equation): New function.  Search for starting delimiter
6849         using...
6850         (delim_search): New function. Don't recognize a delimiter that
6851         occurs in the name of an escape sequence, number register, string
6852         etc.
6853
6854 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
6855
6856         * eqn/delim.c (delim_box::compute_metrics): Don't call
6857         define_extensible_string if left is 0.
6858         (delim_box::output):  Don't print the left delimiter if left is 0.
6859         (delim_box::debug_print): Check for left == 0 before calling printf.
6860
6861 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
6862
6863         * troff/Makefile (majorminor.c): Include only digits in
6864         minor_version.
6865
6866 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
6867
6868         * refer/dirnamemax.c: new file.
6869         * refer/genlimits.c: Deleted.
6870         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
6871         Don't check path length.
6872         * refer/Makefile: Add dir_name_max.o; delete genlimits.
6873         * Makefile: Add PATHCONF_MISSING option.
6874
6875         * refer/indxbib.c (get_cwd): New function.
6876         (main): Use get_cwd().
6877         * lib/getcwd.c: New file.
6878         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
6879         GETCWD in SUBFLAGS.
6880         * lib/Makefile: Compile getcwd.o.
6881
6882         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
6883         userdict.
6884
6885         * refer/indxbib.c (main): Check success of mktemp.
6886
6887         * lib/tmpfile.c: New file.
6888         * lib/Makefile: Add tmpfile.c.
6889         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
6890         * ps/ps.h: Delete declaration of mktemp().
6891         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
6892         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
6893         * driver/driver.h: No need now to include errno.h.
6894
6895         * everywhere: Set errno to 0 before calling fopen().
6896
6897         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
6898         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
6899         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
6900
6901 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
6902
6903         * troff/env.h (translate_space_to_dummy): Declare it.
6904         * troff/env.c (environment::space_newline, environment::space):
6905         If translate_space_to_dummy is set then make the width of spaces 0.
6906         * troff/input.c (translate): If the second character of a
6907         translation is a space, translate to unbreakable space.  If the
6908         first character is a space, set or clear translate_space_to_dummy
6909         according to whether the second character is \&.  Weird!
6910
6911 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
6912
6913         * groff.c (run_commands): Don't use non-zero exit code because a
6914         command gets SIGPIPE.
6915
6916         * groff.c, groff.sh: Use -mXps with -TXps.
6917
6918         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
6919         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
6920         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
6921         (ps_printer::special): New specials invis and endinvis.
6922         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
6923         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
6924         (ps_printer::end_page): Check that invis_count == 0.
6925         (ps_printer::invis_count): New member.
6926         (ps_printer::ps_printer): Initialize invis_count to 0.
6927
6928         * troff/env.c (environment::hyphenate_line): Hyphenation
6929         indicator at beginning of word inhibits splitting after -, \(em
6930         etc.
6931
6932         * pic/pic.y (element): Allow another element to follow } without
6933         any intervening separator.
6934
6935 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
6936
6937         * pic/lex.c (get_delimited): Allow tabs before delimiter.
6938
6939 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
6940
6941         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
6942         declaration of wait() in header files.
6943         * Makefile: Get rid of -DHAVE_UNION_WAIT.
6944
6945         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
6946
6947         * lib/lib.h: Declare return type of strerror as char *.
6948
6949         * man/Makefile: Add g flag to sed substitutions.
6950         * Makefile (shgroff, bindist): Likewise.
6951
6952 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
6953
6954         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
6955         * ps/devps/prologue (PBEGIN): Define showpage after pushing
6956         userdict.
6957
6958 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
6959
6960         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
6961         userdict.
6962
6963 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
6964
6965         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
6966         group.
6967
6968 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
6969
6970         * troff/input.c (define_number_reg):  If currently undefined,
6971         don't define it if the argument is an invalid expression.
6972
6973         * Makefile: Ignore return value of `if' commands without `else'
6974         parts.
6975
6976         * Makefile: Split up CPPDEFINES into a series of separate
6977         configuration options.
6978
6979         * troff/input.c (init_registers): Use time_t instead of long
6980         unless LONG_FOR_TIME_T is defined.  Use returned result rather
6981         than passing pointer.
6982         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
6983
6984         * lib/Makefile (fontpath.h): Use gendef.
6985
6986 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
6987
6988         * troff/input.c (input_iterator::shift): Delete argument name.
6989         * troff/node.c (suppress_output_file::really_begin_page,
6990         suppress_output_file::really_transparent_char, node::ascii_print,
6991         node::tprint): Delete names of unused arguments.
6992
6993 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
6994
6995         * refer/label.y (string):  Pass $4 to command_error.
6996
6997 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
6998
6999         * Version 1.03 released.
7000
7001 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
7002
7003         * Makefile: Pass definition of SHELL in SUBFLAGS.
7004
7005         * gendef: New file.
7006         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
7007         ps/Makefile: Use gendef to construct header files that are
7008         constructed from the Makefile.
7009
7010         * macros/Makefile: make all should build stripped version of tmac.e.
7011
7012         * refer/Makefile (clean): Remove y.output.
7013
7014 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
7015
7016         * ps/pfbtops.c (main): Add -v option which prints out a version
7017         number.
7018         * ps/Makefile (pfbtops): Link with libgroff.a.
7019
7020 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
7021
7022         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
7023         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
7024
7025         * refer/lkbib.c (main): Always terminate reference with blank
7026         line.
7027         * refer/lookbib.c (main): Likewise.
7028
7029         * refer/linear.c (file_buffer::load): Check that the file is not a
7030         binary file.
7031
7032         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
7033         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
7034         Delete second inclusion of <sys/param.h>.
7035
7036 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
7037
7038         * troff/token.h (token::special): Deleted.
7039
7040         * tbl/main.c (process_format): Rework so that opt->tab_char is
7041         recognized only when appropriate.
7042
7043         * ps/Makefile (clean): Remove pfbtops.
7044
7045 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
7046
7047         * lib/font.c (text_file::next): Don't return if we have got a
7048         blank line.
7049
7050 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
7051
7052         * refer/refer.c (store_reference): Get hash code from old_table[i]
7053         when rehashing the table.
7054
7055 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
7056
7057         * eqn/box.c (box::top_level): Save size and prev size using \R and
7058         restore it afterwards. Set the size to the size at the beginning
7059         of the line.
7060         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
7061         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
7062
7063         * refer/Makefile (limits.h): Use ./genlimits.
7064
7065 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
7066
7067         * refer/index.c: Delete declarations of stat() and fstat().
7068
7069 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
7070
7071         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
7072
7073 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
7074
7075         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
7076
7077 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
7078
7079         * troff/input.c (token::get_char): Handle \e.
7080
7081         * refer/linear.c: Delete declarations of fstat() and stat().
7082
7083 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
7084
7085         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
7086         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
7087
7088 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
7089
7090         * troff/input.c (do_define_macro): Improve error handling for end
7091         of file while defining macro.
7092
7093 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
7094
7095         * eqn/box.h: Fix declaration of set_gsize.
7096         * eqn/box.c (set_gsize): Make argument const char *.
7097         (gsize): Declare as char *.
7098         * eqn/main.c (main): Don't convert gsize to int.
7099         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
7100
7101         * Version 1.02 released.
7102
7103 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
7104
7105         * macros/tmac.andoc: New file.
7106         * macros/Makefile: Install tmac.andoc.
7107
7108         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
7109         operator new and delete on OP_DELETE_BROKEN not being defined.
7110         * Makefile: Mention OP_DELETE_BROKEN.
7111
7112 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
7113
7114         * Makefile (bindist): Pass SUBFLAGS.
7115
7116 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
7117
7118         * Makefile, groff.c: Pass definitions to groff.c via device.h.
7119
7120         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
7121         parameter.
7122
7123         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
7124
7125         * ps/ps.h, ps/psrm.c: Make comment_table and
7126         header_comment_table local to resource_manager::process_file.
7127
7128         * groff.sh: With -TXps pass -printCommand option to gxditview.
7129
7130         * groff.c (possible_command::print): Implement using
7131         append_arg_to_string.
7132
7133         * xditview: Merge in new implementation with own ChangeLog.
7134
7135 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
7136
7137         * groff.c (main): Implement PRINT_OPTION.
7138         (append_arg_to_string): New command.
7139         (device_table): Set PRINT_OPTION flag for Xps.
7140
7141 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
7142
7143         * troff/groff.h: Rename to troff.h.
7144
7145         * pic/lex.c (lookup_keyword, docmp): New functions.
7146         (get_token): Use new lookup_keyword.
7147         Don't include key.h.
7148         * pic/key.[ch], pic/pic.gperf: Deleted.
7149         * pic/Makefile: Remove gperf stuff.
7150
7151         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
7152         into output.h.
7153         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
7154
7155         * troff/Makefile, troff/node.c: Move definition of
7156         STORE_WIDTH into node.c.
7157
7158         * etc/grog.pl, etc/grog.sh: Support -mdoc.
7159
7160 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
7161
7162         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
7163         dvi/devdvi/texb.map: Add lq and rq.
7164         dvi/devdvi: Regenerate fonts.
7165         * ps/devps/textmap: Add lq and rq.
7166         * ps/devps: Regenerate fonts.
7167         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
7168         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
7169
7170         * pic/object.c (position_rectangle): When checking radius
7171         cope with possiblity that width or height is negative.
7172         (box_object::box_object): Have separate xrad and yrad with
7173         signs matching signs of dim components.
7174         (box_object::{north,south}_{east,west}): Use xrad and yrad.
7175         (box_object::print): With rounded boxes use absolute values
7176         for dim and rad arguments.
7177
7178         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
7179         in fontpath.h.
7180
7181         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
7182
7183         * various files: Add explicit destructors to keep Saber CC +d
7184         happy.
7185
7186 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
7187
7188         * eqn/box.c (box::top_level): Restore fonts correctly after
7189         font changes in line containing inline equation.  Also
7190         restore previous font as well as current font.
7191         * eqn/pbox.h: Define necessary string and register names.
7192
7193         * troff/input.c (token::next): Case 'R' calls do_register.
7194         (do_register): New function.
7195
7196 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
7197
7198         * groff.c, groff.sh: Support Xps device.  Allow each device
7199         to have a pseudo_name and a real_name.
7200
7201         * groff.c (run_commands): Don't print `Broken pipe' messages.
7202
7203         * ps/pfbtops.c: New file.
7204         * ps/Makefile: Add pfbtops.
7205
7206         * troff/number.c (parse_term): Improved error message.
7207
7208 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
7209
7210         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
7211
7212         * Makefile: Integrate refer.
7213         * refer: New directory.
7214         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
7215         man/lkbib.man: New files.
7216         * man/Makefile: Support refer man pages.
7217
7218         * lib/lib.h: Declare is_prime.
7219         * lib/prime.c: New file.
7220
7221         * troff/input.c (macro_source): New function.
7222         (init_input_requests): Bind "mso" to macro_source.
7223
7224         * troff/env.c (environment::possibly_break_line): Maintain
7225         pointer to pointer to node to be split in ndp so as to avoid
7226         using address of freed node.
7227
7228         * troff/env.c (environment::hyphenate_line): Maintain pointer to
7229         pointer to first node to be hyphenated in startp so as to
7230         avoid using address of freed node.
7231
7232         * troff/env.c (class trie, class hyphen_trie): Make the
7233         elements of the trie be of type char not unsigned char.
7234         Declare arguments to be const char* instead of unsigned char *.
7235         
7236         * troff/env.c (hyphenate): Initialize hbuf[0].
7237
7238         * troff/input.c (set_string): Declare p to be char * and cast
7239         *p to unsigned char when necessary.
7240
7241         * troff/input.c (do_define_macro): Declare s to be const
7242         char*. Cast element to unisgned char when necessary, Declare
7243         d to be an int.  Handle EOF better.
7244
7245         * troff/Makefile, troff/input.c: Different scheme for passing
7246         definitions of MACROPATH, HYPHENFILE and DEVICE.
7247
7248 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
7249
7250         * tty/devascii/R.proto: Delete entry for em.
7251         * tty/devlatin1/R.proto: Likewise.
7252
7253 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
7254
7255         * troff/input.c (translate): Stop when we get a space. Treat eof
7256         like newline.
7257
7258         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
7259
7260 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
7261
7262         * tbl/main.c (process_format): A font name following a `f'
7263         modifier that starts with a digit can be only one character long.
7264         Also deal with EOF on the second character of the font name.
7265
7266 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
7267
7268         * troff/input.c (token::next): Turn \~ into an
7269         unbreakable_space_node.
7270         * troff/node.c (unbreakable_space_node): New class.
7271         * troff/node.h: Declare it.
7272
7273 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
7274
7275         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
7276         it's >= 0, before outputting it as a single byte.
7277
7278 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
7279
7280         * lib/font.c: Make font_char_metric::code an int.
7281         (font::get_code): Change return type to int.
7282         (font::load): Allow code to be arbitrary integer.
7283         * lib/font.h (font::get_code): Change return type to int.
7284         (font::number_to_index): Change argument type to int.
7285         * troff/input.c (token::next):  In case 'N', allow any value.
7286         Store value in token::val.
7287         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
7288         (token::get_char, token::add_to_node_list, token::process): Get
7289         number from val.
7290         (charinfo::set_number): Change argument to int.
7291         (charinfo::get_number):  Require that NUMBERED flag be set.
7292         (get_charinfo_by_number): Store numbered characters not between 0
7293         and 255 in a dictionary.
7294         * troff/charinfo.h (get_charinfo_by_number): Change argument type
7295         to int.
7296         (charinfo::number): Change type to int.
7297         (charinfo::set_number): Change type of set_number to int.
7298         * troff/node.c (troff_output_file::put_char_width,
7299         troff_output_file::put_char): Test whether character is numbered
7300         using charinfo::numbered().
7301         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
7302         values of num.
7303         * lib/nametoindex.c: New implementation to cope with arbitrary
7304         number characters.
7305
7306         * troff/input.c (token::operator==): Test val for
7307         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
7308         TOKEN_SIZE.
7309
7310         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
7311         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
7312
7313 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
7314
7315         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
7316         variable.
7317
7318         * all Makefiles: rm targets of cp and >.
7319
7320         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
7321         it.
7322
7323         * eqn/lex.c (def_table): Add dollar.
7324
7325 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
7326
7327         * troff/input.c (do_width): Push back newline before closing delim
7328         like do_bracket.
7329
7330 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
7331
7332         * groff.c (possible_command::prepend_arg): New function.
7333         (main): Prepend device -m option.
7334         * groff.sh: Put device -m options before command-line options.
7335
7336 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
7337
7338         * macros/tmac.an (IP): Quote argument to TP.
7339
7340         * ps/ps.c (main): New option -b, which sets...
7341         (broken_flags): New variable.
7342         (ps_printer::~ps_printer): Incorporate the setup section in the
7343         prolog if (broken_flags & NO_SETUP_SECTION).
7344         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
7345         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
7346         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
7347         ps_printer::print_needed_font_comment,
7348         ps_printer::print_supplied_font_comment,
7349         ps_printer::print_include_font_comments,
7350         ps_printer::lookup_doc_font, ps_printer::download_fonts,
7351         ps_printer::read_download_file, read_document_fonts, add_font,
7352         skip_line, parse_fonts_arg, document_font::document_font,
7353         document_font::~document_font, document_font::download,
7354         ps_output::include_file):  Deleted.
7355         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
7356         rather than %!PS-Adobe-2.0.  Make calls to
7357         resource_manager::need_font for each font that we used. Replace
7358         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
7359         print_supplied_font_comment, print_needed_font_comment by call to
7360         resource_manager::print_header_comments. Output %%Orientation
7361         comment. Output %%Requirements: numcopies comment if ncopies > 1.
7362         Don't output the prolog directly.  Instead call
7363         resource_manager::output_prolog.  Only define #copies when ncopies
7364         > 1.  Delete calls to print_include_font_comments  and
7365         download_fonts.  Add call to resource_manager::document_setup.
7366         (ps_printer::do_file): Call resource_manager::import_file instead
7367         of including it ourselves.
7368         (ps_printer::do_import): Likewise.  Also don't call
7369         merge_import_fonts. Push userdict on the dictionary stack before
7370         and pop it afterwards.
7371         Move declaration of ps_output into ps.h.
7372         * ps/psrm.c: New file implementing resource_manager class.
7373         * ps/ps.h: New file declaring ps_output and resource_manager
7374         classes.
7375         * ps/devps/zapfdr.ps:
7376         * ps/devps/symbolsl.ps:
7377         * ps/devps/prologue:  Use 3.0 conventions.
7378         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
7379         Add default definition of BROKEN_SPOOLER_FLAGS.
7380         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
7381         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
7382
7383 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
7384
7385         * etc/grog.pl: New file.
7386         * Makefile (GROG): New variable.
7387         Add GROG to SUBFLAGS.
7388         * etc/Makefile (GROG): New variable.
7389         (install.nobin): Install $(GROG) rather than grog.sh.
7390
7391 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
7392
7393         * eqn/special.c (special_box::compute_metrics): Make the input and
7394         output strings the same.  Get the new height and depth from the
7395         predefined height and depth registers.  Also make subscript kern
7396         and skew available.
7397         (special_box::compute_subscript_kern, special_box::compute_skew):
7398         New functions.
7399
7400         * eqn/box.c (pointer_box::compute_skew,
7401         simple_box::compute_metrics, box::top_level)
7402         * eqn/text.c (prime_box::compute_metrics,
7403         prime_box::comput_subscript_kern)
7404         * eqn/limit.c (limit_box::compute_metrics):
7405         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
7406         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
7407         negative numbers in `nr' requests with a leading 0.
7408
7409 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
7410
7411         * eqn/special.c: New file.
7412         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
7413         Add new rule for simple.
7414         * eqn/lex.c (token_table): Add SPECIAL.
7415         * eqn/box.h: Declare make_special_box.
7416         * eqn/Makefile: Add special.[co].
7417
7418 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
7419
7420         * ps/devps/prologue: Possibly set packing to true while defining.
7421         Create grops dictionary here.  Initialize local variables before
7422         defining procedures.
7423         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
7424         the dictionary stack. Set strokeadjust and overprint to false if
7425         the relevant operators are defined.
7426         (PEND): New procedure.
7427         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
7428         prologue.  Do everything else in the setup section.
7429         (ps_printer::do_import): Just call PBEGIN and PEND around the
7430         picture. Also push userdict before, and pop it afterwards.
7431
7432 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
7433
7434         * troff/node.c (bracket_node::tprint): Brackets were being printed
7435         1m too low.
7436
7437         * macros/tmac.an (SH, SS): Set fill mode.
7438
7439 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
7440
7441         * troff/div.c (top_level_diversion::begin_page): Set
7442         high_water_mark to 0.
7443
7444 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
7445
7446         * man/mdate.sh: New file.
7447         * man/mdate.c: Deleted.
7448         * man/Makefile: Use mdate.sh instead of mdate.
7449         (mdate): Deleted.
7450
7451         * eqn/lex.c (do_gsize): Supply missing argument to error message.
7452
7453 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
7454
7455         * man/mdate.c: New file.
7456         * man/*.man: Replace modification date by @MDATE@.
7457         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
7458         (mdate): New target.
7459
7460         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
7461         Remove illegal input characters.
7462
7463 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
7464
7465         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
7466
7467 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
7468
7469         * troff/div.c (begin_page): Change behaviour when
7470         !first_page_begun and !break_flag.
7471
7472         * troff/input.c (do_name_test): Return 0 if argument is empty.
7473
7474         * troff/input.c (read_long_escape_name): Require closing ] to be
7475         at same input level as opening [.
7476
7477         * troff/input.c (read_increment_and_escape_name): New function.
7478         (get_copy, process_input_stack): Use this for \n.
7479
7480 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
7481
7482         * troff/div.c (top_level_diversion::begin_page): Ignore the
7483         current value of page_number if !first_page_begun.
7484
7485         * groff.c (main): Fix declaration of buf.
7486
7487         * troff/input.c (do_name_test): New function.
7488         (token::next): Implement \A.
7489         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
7490         (token::description, token::add_to_node_list, token::process):
7491         Handle TOKEN_ESCAPE.
7492         * troff/token.h: New token TOKEN_ESCAPE.
7493
7494 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
7495
7496         * pic/main.c (do_picture): Allow space before and after filename
7497         following `<'.  Check that the filename is not empty.
7498
7499 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
7500
7501         * Version 1.01 released. 
7502
7503         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
7504
7505         * dvi/tmac.dvi: ftr HR to H.
7506
7507         * macros/tmac.e: Round up computation of $r.
7508
7509         * xditview/tmac.X:  Don't give up completely in compatibility mode.
7510         Use \n(.s instead of \n[.s].
7511
7512         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
7513         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
7514         Add u to factors inside \s[...]. Rename frac to dvi-frac.
7515         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
7516         short names in the char definitions.
7517
7518         * ps/tmac.ps: Don't give up completely in compatibility mode.
7519         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
7520         quote in front of \n(.s. Add u to factors inside \s[...].
7521
7522 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
7523
7524         * tty/tmac.tty: Call the nroff request.
7525
7526         * macros/tmac.e ((x, )x):  Better definitions that work properly
7527         in a diversion.
7528         (@0, @1): Helper macros for (x.
7529
7530         * macros/tmac.e ($s, hl): Use \l rather than \D.
7531
7532         * tty/tmac.tty: Make it work better in compatibility mode.
7533         (pchar): Rename to tty-char.
7534
7535         * macros/tmac.e (@E): New macro.
7536         (r, i, b, rb, bi): Use @E.
7537
7538         * macros/tmac.e (@F): Don't use (;...) syntax.
7539
7540         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
7541         it was modified for groff.
7542
7543         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
7544
7545         * macros/tmac.e (<., .>): Removed.
7546         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
7547
7548         * macros/tmac.e: Remove check that groff is being used.
7549
7550         * macros/tmac.e (@C): Change families only if using groff; turn
7551         compatibility mode off while changing familes. Save compatibility
7552         mode before changing families and restore it afterwards.
7553
7554         * macros/tmac.e (@h): Remove test for offset + line length.
7555
7556         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
7557         (lo, th, ac): Define to call @S instead of using als.
7558
7559         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
7560         the ratio of the vertical spacing to the point size in units
7561         expressed as a percentage.  Use these instead of $10r and $10R,
7562         Delete $10r and $10R.
7563
7564         * lib/font.c (font::load): In default computation of space_width,
7565         divide by sizescale.  Use scale_round.
7566
7567         * macros/tmac.an (TP): Don't call `nf'.
7568         (an-do-tag): Don't call `fi'.
7569
7570 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
7571
7572         * troff/input.c (process_input_stack): Handle the case where
7573         spaces at the beginning of an input line are followed by a
7574         newline.
7575
7576 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
7577
7578         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
7579         * groff.sh: Use pic -x with the dvi device.
7580
7581         * dvi/devdvi/FontMakefile (H): Don't use -s.
7582
7583         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
7584         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
7585         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
7586         in FONTS.
7587
7588 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
7589
7590         * ps/psfig.diff: New file.
7591         * ps/tmac.psfig: New file.
7592
7593 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
7594
7595         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
7596         (]-): Don't call ref*do-tl.
7597
7598         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
7599
7600         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
7601         (fn@do-FS): Rename to fn*do-FS.
7602
7603         * troff/input.c (transparent_translate): New function.
7604         (process_input_stack): Apply transparent_translate before calling
7605         diversion::transparent_output(unsigned char).
7606
7607 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
7608
7609         * troff/input.c (do_define_macro): Define the macro before calling
7610         skip_line.
7611
7612         * xditview/Makefile: Add DEVICES variable.  Change install target
7613         to use this.
7614
7615 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
7616
7617         * groff.c (run_commands): Handle the possibility that there are
7618         child processes other than those forked by us.
7619
7620 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
7621
7622         * lib/string.c (string::append): New function.
7623         * lib/stringclass.h: Declare it.
7624
7625 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
7626
7627         * eqn/main.c (main): New option -N which sets
7628         no_newline_in_delim_flag. 
7629         (do_file): If no_newline_in_delim_flag is set don't allow newlines
7630         in delimiters.
7631         * groff.c (main): Pass -N on to eqn.
7632         (help, synopsis): Mention -N.
7633         * groff.sh: Implement -N.
7634
7635 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
7636
7637         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
7638         (]-): Call ref*do-tl if ref*need-tl is non-zero.
7639         (XP): Allow as initializer.
7640
7641 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
7642
7643         * troff/env.c (environment::wrap_up_field): If field_spaces are
7644         non-zero and we have a current_tab, subtract padding from
7645         tab_distance.  If this makes tab_distance <= 0, use the next tab
7646         stop instead.  If there isn't any next tab or it's a left tab,
7647         wrap up the current tab.
7648         (environment::start_field): Initialize tab_precedes_field.
7649         (environment::wrap_up_tab): If there's a current field, update
7650         pre_field_width, field_distance and tab_precedes_field.
7651         * troff/env.h (environment::tab_precedes_field): New member.
7652
7653 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
7654
7655         * ps/ps.c (ps_printer::do_file): New function.
7656         (ps_printer::special): Bind to `file' special.
7657         (ps_printer::do_exec): Set ndefined_styles to 0.
7658
7659 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
7660
7661         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
7662         Avoid stripping first character from the start of unrecognized
7663         escapes.  Use lex_error instead of error to report errors.
7664         * eqn/lex.c (get_token): Rework handling of escapes.
7665         (lex_error): Move declaration into...
7666         * eqn/eqn.h.
7667
7668         * xditview/xditview.c (main): Make -page option work.
7669
7670         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
7671
7672 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
7673
7674         * macros/tmac.s (B2): Correct size of box.
7675
7676 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
7677
7678         * macros/tmac.s (B2): Postpone drawing the box until in the
7679         top-level diversion.
7680
7681         * tty/tmac.tty: Add font translations for C, CR, CW.
7682
7683         * groff.c (synopsis, help): Document -i.
7684         * groff.sh: Implement -i.
7685
7686         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
7687         Simplify the construction of SN.
7688
7689         * troff/number.c (parse_term): Give `|' a higher precedence.
7690         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
7691         accordingly.
7692
7693         * macros/tmac.s (B2): Use par@finish instead of par@reset.
7694
7695 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
7696
7697         * lib/string.c (string::move): New function.
7698         * lib/stringclass.h: Declare it.
7699
7700 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
7701
7702         * troff/env.c (distribute_space): Add optional argument
7703         `force_forward'.
7704         (environment::wrap_up_field): Call distribute_space with
7705         `force_forward' argument of 1.
7706
7707 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
7708
7709         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
7710         Inline it.  Move reallocation into...
7711         (string::grow1): New function.
7712         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
7713         dependencies to include library header files.
7714         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
7715
7716 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
7717
7718         * macros/tmac.s (@NH): Use the same number registers than -ms does
7719         for the heading level counters.  Use the same string that -ms does
7720         for the number for this heading.
7721
7722 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
7723
7724         * lib/new.c (operator new): Cast result of malloc to char *.
7725
7726         * troff/input.c (spring_trap, lookup_request): Add assert that nm
7727         is not null.
7728
7729 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
7730
7731         * groff.c (main): Support -i.
7732
7733 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
7734
7735         * pic/pic.h: Include <osfcn.h>.
7736
7737         * ps/ps.c: Add declaration of mktemp.
7738
7739         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
7740         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
7741         argument as union wait *.
7742         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
7743         argument to union wait *.
7744
7745 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
7746
7747         * tty/tmac.tty: Add definition of \(co.
7748
7749         * pic/object.c (make_arc): Only increase radius when radius
7750         strictly less than d.
7751         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
7752         more than once.
7753
7754         * troff/env.c (environment::environment(symbol),
7755         environment::environment(const environment *)):  Initialize
7756         input_trap_count.
7757
7758 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
7759
7760         * tbl/main.c (main): Add exit(0).
7761
7762         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
7763
7764         * pic/main.c (main):
7765         * eqn/main.c (main):
7766         * tbl/main.c (main):
7767         * etc/soelim.c (main):
7768         * driver/printer.c (printer::~printer):
7769         * troff/node.c (real_output_file::~real_output_file,
7770         real_output_file::flush):  Check for errors on stdout.
7771
7772         * most files: Add 1991 to copyright notice.
7773
7774         * macros/tmac.s: Don't test \n(.x and \n(.y.
7775
7776         * troff/input.c (token::next): Rename `escape_char' label to
7777         `handle_escape_char' and `normal_char' label to
7778         `handle_normal_char'.
7779
7780 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
7781
7782         * groff.c (main, synopsis, help): Support -a option.
7783         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
7784         to trflags while parsing options.
7785
7786 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
7787
7788         * troff/number.c (parse_term): With `m', `M' and `n' scale
7789         indicators, convert scale factor to hunits before scaling.
7790
7791 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
7792
7793         * lib/font.c (scale_round): Better test for overflow when n is
7794         negative.
7795
7796 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
7797
7798         * tbl/main.c (process_format): Add second argument of type
7799         options*. Change callers.  Allow opt->tab_char as well as '\t'
7800         between format items.
7801
7802 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
7803
7804         * macros/tmac.an (PD): With no arguments, make sure register PD is
7805         at least \n[.V].
7806         (TH): Call PD with no argument, instead of setting register PD
7807         directly.
7808
7809 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
7810
7811         * Version 1.00 released.
7812
7813 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
7814
7815         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
7816
7817         * dvi/devdvi/DESC: Mount CW instead of CR.
7818
7819         * dvi/tmac.dvi: Add definition of \(tm.
7820
7821         * dvi/devdvi/texsy.map: Add lh, and rh.
7822         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
7823         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
7824
7825         * dvi/devdvi/FontMakefile: Generate H from cmss10.
7826         * dvi/devdvi/Makefile: Install H.
7827         * dvi/devdvi/H: New file.
7828
7829 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
7830
7831         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
7832         be 0.
7833
7834 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
7835
7836         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
7837
7838         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
7839
7840         * macros/tmac.s (@EN): Handle the case where the equation is empty
7841         but the label is not.
7842
7843 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
7844
7845         * troff/groff.h: New warning category WARN_SPACE.
7846         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
7847         WARN_SPACE to warning_table.
7848         (interpolate_macro): Give a warning of type WARN_SPACE if the name
7849         is longer than two characters and is not defined, but the first
7850         two characters do make a defined name.
7851
7852         * PROBLEMS: New file.
7853
7854         * CHANGES: New file.
7855         * README-0.6, README-1.00: Deleted.
7856
7857         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
7858         * xditview/devX75/Makefile: Make devX75-12.
7859         * xditview/devX100/Makefile: Make devX100-12.
7860
7861         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
7862         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
7863
7864 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
7865
7866         * README-0.7: Rename to README-1.00.
7867
7868         * macros/tmac.pic: New file.
7869         * macros/Makefile (install.nobin): Install tmac.pic.
7870
7871 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
7872
7873         * troff/env.c (hyphen_word): Correct the test for whether the
7874         token is a hyphen.  Reset npos to 0.
7875
7876         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
7877
7878 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
7879
7880         * macros/tmac.s (ds*common-end): Call par*reset.
7881         (PE): Likewise.
7882         (par@reset-indent): Deleted.
7883
7884         * macros/tmac.s (@IP): Divert the label.
7885
7886 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
7887
7888         * xditview/draw.c (setGC): Use a line width of .1m rather than
7889         .04m by default; round rather than truncate value.
7890
7891         * tbl/table.c (class empty_entry): New class.
7892         (empty_entry::empty_entry, empty_entry::line_type): New functions.
7893         (table::add_entry): Represent empty entries by objects of type
7894         empty_entry.
7895         (table_entry::line_type): Return -1.
7896         (table::determine_row_type): Ignore entries with line_type 0.
7897         Treat type -1 as non-lines.
7898
7899 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
7900
7901         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
7902         macros/tmac.s: Rename \(-d to \(Sd.
7903
7904 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
7905
7906         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
7907         * xditview/libXdvi/DviChar.c: Likewise.
7908         * dvi/devdvi/texsy.map: Add `<<', `>>'.
7909
7910 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
7911
7912         * troff/div.c (top_level_diversion::begin_page): Call
7913         init_output() if the_output is 0.
7914
7915 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
7916
7917         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
7918         ESCAPE_c.
7919         (get_copy): Turn \E into ESCAPE_E.
7920         (token::process, asciify): Handle ESCAPE_E.
7921
7922         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
7923         (RD): New macro.
7924         (DS): Implement `.DS R'.
7925
7926 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
7927
7928         * macros/tmac.s (FS): New macro.
7929
7930         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
7931
7932         * macros/tmac.s (cov*tl-init): Remove after first execution
7933         instead of aliasing to @nop.  Call top of page macro explicitly
7934         instead of setting trap; call @init first.  Set pg@top as top of
7935         page macro.
7936         (cov*auto-init): Deleted.  Set cov*tl-init instead of
7937         cov*auto-init as top of page trap. 
7938         (TL, LP): Do a break instead of calling cov*tl-init.
7939         (cov*print): With RP format but no TL, alias FS and FE to @FS and
7940         @FE; in this case also give a warning and always start another
7941         page. No need to set pg@top here.
7942         (cov*tl-init): Rename to cov*first-page-init.
7943
7944         * macros/tmac.s (RP): Do `.pn 0'.
7945         (cov*tl-init): With RP format don't do `.pn 0'.
7946
7947         * macros/tmac.s (pg@cs-top): Set no space mode.
7948
7949         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
7950         (cov*ab-init): Alias TL, AU and AI to these.
7951
7952 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
7953
7954         * macros/tmac.s (@EQ): Move the space before the equation into @EN
7955         (@EN): Do nothing unless \n[dl] is > 0.
7956
7957 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
7958
7959         * pic/object.c (ellipse_object::radius): New function.
7960
7961         * VERSION: Change version to 0.7.
7962
7963         * tbl/table.c (block_entry::do_divert): Declare return type as
7964         void.
7965         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
7966
7967 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
7968
7969         * troff/column.c: New file.
7970         * troff/Makefile: Corresponding changes.
7971
7972         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
7973         Friend of vunits.
7974
7975         * troff/div.c (top_level_diversion::space): If the space causes
7976         the first-page transition and springs a trap, truncate the space
7977         to 0.
7978
7979 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
7980
7981         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
7982         the document.
7983
7984         * pic/troff.c (troff_output::line_thickness,
7985         troff_output::set_fill): Do a horizontal motion to compensate for
7986         the width of the \D escape sequence.
7987
7988 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
7989
7990         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
7991         (not X75).
7992
7993         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
7994         to printf.
7995
7996         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
7997         Supply empty definition.
7998         (text_entry::simple_print, simple_text_entry::simple_print):
7999         Delete declarations.
8000         (table::add_entry): Represent empty entries by objects of type
8001         `simple_entry'.
8002
8003 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
8004
8005         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
8006
8007         * tbl/table.c (left_text_entry::add_tab): New function.
8008
8009         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
8010         initialize like LP.
8011
8012 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
8013
8014         * troff/env.c (environment::start_field): Give an error message if
8015         there is no next tab.
8016
8017 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
8018
8019         * troff/env.c (hyphenate): Skip initial elements with zero
8020         hyphenation code.
8021
8022         * macros/tmac.s (par@init): Keep VS in points rather than units.
8023
8024 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
8025
8026         * pic/main.c (main): Implement `-c' option.
8027         * pic/output.h: Declare make_tpic_output().
8028         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
8029         protected.
8030         (tpic_output): New class.
8031         (tpic_output::tpic_output, tpic_output::set_pen_size,
8032         tpic_output::command, make_tpic_output): New functions.
8033
8034 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
8035
8036         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
8037         if they're not already defined.
8038         * tbl/table.c (init_output): Don't test \n(.g.
8039
8040         * troff/input.c (do_if_request): Delete `g' condition. Recognize
8041         `d', `r' and `c' conditions even in compatibility mode.
8042
8043 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
8044
8045         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
8046         box.
8047
8048 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
8049
8050         * troff/env.h (environment::prev_line_interrupted): New member.
8051         (environment::get_prev_line_interrupted): New function.
8052         * troff/env.c (environment::newline): Set prev_line_interrupted.
8053         (environment::environment(const environment *),
8054         environment::environment(symbol)): Initialize
8055         prev_line_interrupted.
8056         * troff/input.c (process_input_stack): Don't give special
8057         treatment to space and newline at the beginning of the line if the
8058         previous line was interrupted.
8059
8060 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
8061
8062         * eqn/eqn.y: Disallow PRIME by itself.
8063         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
8064         PRIME.
8065         (def_table): Remove definition of '.  Define prime to be `.
8066
8067         * eqn/eqn.y: Split off part of rule `script' into a new rule
8068         `nonsup'.
8069
8070 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
8071
8072         * macros/tmac.s ({, }): New string aliases.
8073
8074 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
8075
8076         * README-0.7: New file.
8077
8078 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
8079
8080         * macros/tmac.s: New file.
8081         * man/groff_ms.man: New file.
8082         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
8083         * Makefile.bd: Similarily.
8084         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
8085         definition of TMAC_S.
8086         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
8087         * macros/TODO: New file.
8088
8089 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
8090
8091         * troff/env.c (right_justify): New function.
8092         (init_env_requests): Bind this to request "rj".
8093         (center_lines): Set right_justify_lines to 0. If we get a bad
8094         integer, center 1 line.
8095         (environment::environment(symbol), environment::environment(const
8096         environment *)): Initialize right_justify_lines.
8097         (environment::get_right_justify_lines): New function.
8098         (init_env_requests): Bind this to number_register ".rj".
8099
8100         * troff/env.c (environment::choose_breakpoint): Implement
8101         hyphenation_margin and hyphenation_space.
8102         (environment::get_hyphenation_space,
8103         environment::get_hyphenation_margin): New functions.
8104         (init_env_requests): Bind these to .hys and .hym.
8105         (hyphenation_space_request, hyphenation_margin_request): New
8106         functions
8107         (init_env_requests): Bind these to hys and hym.
8108         (environment::environment(symbol), environment::environment(const
8109         environment *)): Initialize hyphenation_margin and
8110         hyphenation_space.
8111         * troff/env.h: Corresponding changes to class environment.
8112
8113 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
8114
8115         * troff/div.c (blank_line): Always do a break.
8116
8117         * eqn/box.c (do_text): Turn off escapes while appending text to
8118         string.
8119
8120 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
8121
8122         * troff/input.c (while_break_request, while_continue_request): New
8123         functions.
8124         (init_input_requests): Bind these to "break" and "continue".
8125         (while_depth, while_break_flag): New variables.
8126         (while_request): Update while_depth.  Break out of loop if
8127         while_break_flag is set.
8128
8129 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
8130
8131         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
8132         rather than 0.
8133
8134 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
8135
8136         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
8137
8138         * stringify: New file.
8139         * Makefile (groff.o): Use stringify.
8140
8141         * xditview/tmac.X: Remove definition of \(rn.
8142         * xditview/libXdvi/DviChar.c: Remove radicalex from
8143         Adobe_symbol_map.
8144
8145 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
8146
8147         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
8148         (alphabetic_block_entry::alphabetic_block_entry,
8149         alphabetic_block_entry::divert, alphabetic_block_entry::print):
8150         New functions.
8151         (block_entry::divert): Split off body into ...
8152         (block_entry::do_divert): If the block is alphabetic, subtract 2n
8153         from the line length; also update the span width to dl+2n, and the
8154         alphabetic span width to dl.
8155
8156         * driver/input.c (do_file):  While reading argument to D command,
8157         when expanding buffer, multiply szp by sizeof(int) rather than 2
8158         in the argument to memcpy.
8159
8160         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
8161         width of alphabetic columns.
8162
8163 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
8164
8165         * troff/node.c (lookup_family): Supply second argument to lookup.
8166
8167         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
8168         search, return immediately if v is 0.
8169
8170         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
8171         (troff_output::start_picture): Set this reg.
8172         (troff_output::end_picture): Remove this reg
8173         * eqn/box.c (box::extra_space): Don't produce `\x's if
8174         EQN_NO_EXTRA_SPACE_REG is defined.
8175
8176         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
8177         * eqn/text.c (split_text): Map ' to \(fm when it's the first
8178         character.
8179
8180 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
8181
8182         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
8183         requests.
8184
8185         * troff/div.c (top_level_diversion::top_level_diversion):
8186         Initialize page_number to 0.
8187
8188 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
8189
8190         * groff/troff (environment::environment(const environment *)):
8191         Initialize name to e->name, rather than "anonymous".
8192
8193 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
8194
8195         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
8196         requested_page.  Split middle part into ...
8197         (FindPage): New function.
8198         (SetValues): If we don't yet know the last page, and the requested
8199         page is greater than the current page, call FindPage.
8200         Update the font_map_string before doing this.
8201
8202         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
8203         Translate \(lh and \(rh into left and right double arrows.
8204
8205         * troff/node.c (class hyphen_inhibitor_node): New class.
8206         (hyphen_inhibitor_node::hyphen_inhibitor_node,
8207         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
8208         hyphen_inhibitor_node::type,
8209         hyphen_inhibitor_node::get_hyphenation_type): New functions.
8210         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
8211         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
8212         word.
8213
8214 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
8215
8216         * troff/node.h (dummy_node::get_hyphenation_type,
8217         transparent_dummy_node::get_hyphenation_type):  Declare them.
8218         * troff/node.c: (dummy_node::get_hyphenation_type,
8219         transparent_dummy_node::get_hyphenation_type): New functions.
8220
8221 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
8222
8223         * xditview/libXdvi/draw.c: If M_PI not defined after including
8224         math.h, then define it.
8225
8226         * xditview/Makefile: Add definition of AR. Pass it to the submake
8227         in libXdvi.
8228         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
8229
8230 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
8231
8232         * troff/dictionary.h (object_dictionary::alias): Declare return
8233         value as int.
8234         * troff/dictionary.c (object_dictionary::alias): Return non-zero
8235         if the old name was defined.
8236         * troff/input.c (alias_macro): Give a warning if the old name was
8237         not defined.
8238         * troff/reg.c (alias_reg): Likewise.
8239
8240 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
8241
8242         * troff/input.c (token::next): Delete implementation of \R.
8243
8244         * macros/Makefile: Strip comments from tmac.e while installing it.
8245
8246         * troff/input.c: New variable `nroff_mode'.
8247         (troff_request, nroff_request): New functions.
8248         (init_input_requests): Bind `troff' and `nroff' to troff_request
8249         and nroff_request.
8250         (do_if_request): Compute results of t and n conditions from
8251         nroff_mode.
8252
8253         * text/text.c (split_text): Fix typo in >=.
8254
8255         * eqn/lex.c: Add definition of `==' to def_table.
8256
8257 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
8258
8259         * pic/tex.c (tex_output::start_picture): Change the definitions of
8260         \graph and \graphtemp so that they work properly with Plain TeX.
8261
8262         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
8263         argument to `ar' is not less than the first.
8264
8265         * pic/pic.y: Allow a comma between elements of the variable list
8266         in the argument to `reset'.
8267
8268         * pic/object.c (arc_object::arc_object): Fix computation of
8269         radius.
8270
8271         * eqn/main.c (main): Add exit(0).
8272
8273 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
8274
8275         * troff/div.c (begin_page): Test no_space_mode after doing the
8276         break, but still push the page ejector cookie before doing the
8277         break.  Also set the next page number after doing the break.
8278         
8279         * xditview/xditview.c (NewFile): Don't set the title and icon name
8280         if this is the first file and its name is `-'.
8281         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
8282         the X75 and X100 devices.
8283         (main): If a device has the XT_OPTION flag set and there's exactly
8284         one file argument, pass the driver -xrm and -title options to set
8285         the icon name and window title to the name of the file.
8286
8287         * troff/env.c (environment_switch): If there was an argument but
8288         it wasn't a valid number or name, then pop an environment but
8289         don't give an error message on underflow.
8290
8291         * troff/number.c (start_number): Correct spelling in error message.
8292
8293         * troff/input.c (token::delimiter): Don't print an error message
8294         if err is false.
8295
8296         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
8297         ParseDrawFunction if dw->display_enable is true.
8298
8299 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
8300
8301         * pic/pic.y: Parse text positioning like normal attributes, so as
8302         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
8303         positioning attribute.
8304
8305 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
8306
8307         * tbl/main.c (process_data): When in state START while reading a
8308         text block, don't change to state MIDDLE if c is a newline.
8309
8310 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
8311
8312         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
8313         so as to avoid shadowing parameter.
8314
8315 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
8316
8317         * tbl/table.c (trim_space): Deleted.
8318         (table::add_entry): Don't call trim_space.
8319
8320 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
8321
8322         * VERSION: Change version to 0.6.
8323
8324         * troff/number.c (parse_expr): Make == work.
8325
8326 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
8327
8328         * man/grog.man: New file.
8329         * man/Makefile: Add grog.n to MAN1PAGES.
8330         * etc/grog.sh: New file.
8331         * etc/Makefile: Install grog.sh as grog.
8332
8333 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
8334
8335         * troff/input.c (token::next): Implement \E.
8336
8337 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
8338
8339         * xditview/tmac.X: Change font translations to match tmac.ps.
8340
8341         * troff/input.c (non_empty_name_warning): Don't give a warning if
8342         `\{' terminates the name.
8343
8344 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
8345
8346         * ps/devps/symbol.diff: New file.
8347         * ps/devps/FontMakefile: Mention symbol.diff.
8348
8349 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
8350
8351         * troff/node.c (font_position): Use get_long_name to read the
8352         external_name.
8353
8354         * troff/env.c (environment_switch): If we get a number that's < 0
8355         or >= NENVIRONMENTS, treat it like a name.
8356         Change NENVIRONMENTS to 10.
8357
8358         * troff/groff.h: Remove definition of FONTS_MAX.
8359         * troff/node.h (class font_family): Make map a pointer instead of
8360         an array. Add a map_size member. Make it a class. Make nm const
8361         and public. Make invalidate_fontno a friend.
8362         * troff/node.c: Define font_table_size. Make font_info a pointer
8363         rather than an array.
8364         (class troff_output_file): Allocate font_position dynamically. Add
8365         nfont_positions member.
8366         (troff_output_file::set_font): Grow font_position if necessary.
8367         (troff_output_file::~troff_output_file): Delete font_position.
8368         (troff_output_file::troff_output_file): Allocate font_position.
8369         (grow_font_table): New function.
8370         (troff_output_file::really_begin_page,
8371         troff_output_file:really_copy_page): Use nfont_positions rather
8372         than FONTS_MAX.
8373         (mount_font_no_translate, mount_style): Call grow_font_table if
8374         necessary.
8375         (font_family::font_family): Allocate map.
8376         (font_family::make_definite): Grow map if necessary. Use
8377         font_table_size instead of FONTS_MAX.
8378         (font_family::~font_family): New function.
8379         (invalidate_fontno): Use font_family::map_size.
8380         (get_fontno, env_space_width, env_half_narrow_space_width,
8381         env_narrow_space_width, symbol_fotno, is_good_fontno,
8382         get_bold_fontno, make_glyph_node): Use font_table_size rather than
8383         FONTS_MAX.
8384         (next_available_font_position): Never return 0.
8385
8386 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
8387
8388         * ps/tmac.ps: Add font translations for compatibility with dpost.
8389
8390 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
8391
8392         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
8393         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
8394         Move definitions baseline_sep, shift_down, column_sep,
8395         matrix_side_sep into...
8396         * eqn/box.c: Add them to param_table.
8397         * eqn/pbox.h: Add declarations to pbox.h.
8398
8399         * troff/input.c (set_string): Cast value to unsigned char *.
8400
8401         * troff/token.h (process_input_stack): Declare it static before
8402         declaring it a friend.
8403
8404 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
8405
8406         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
8407         and bottom.
8408         * dvi/devdvi/EX: Regenerate.
8409
8410         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
8411         transparent.
8412
8413 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
8414
8415         * eqn/lex.c: In defaults_table, make definition of `dot' call
8416         `dot_def'.  Don't explicitly make it roman.  Similarily for other
8417         accents.
8418
8419         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
8420         argument.
8421         (for_input::get, for_input::peek): Use this.
8422         (do_for): Add by_is_multiplicative argument.
8423         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
8424         Change semantic value of optional_by to be a double plus a flag
8425         saying whethet the by clause is multiplicative.
8426
8427         * eqn/lex.c (get_delimited_text): Remember location of start of
8428         definition.  Improve error handling when EOF is encountered.
8429
8430         * lib/font.h: Rename handle_x_command to
8431         handle_unknown_font_command.
8432         * lib/font.c (font::load): Call handle_unknown_font_command for
8433         any unknown command in the font description file.  Don't call
8434         handle_x_command. Include the name of the command in the argv.
8435         Improve message for unknown command after kernpairs or charset
8436         command.
8437         * ps/ps.c (ps_font::handle_x_command): Rename to
8438         handle_unknown_font_command.  Remove message about `x download'
8439         command.  Give error message for wrong number of arguments.
8440         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
8441         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
8442         handle_unknown_font_command. Give an error message for wrong
8443         number of arguments.  Rename design_size to designsize.
8444         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
8445         checksum', `designsize' instead of `design_size'.
8446
8447 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
8448
8449         * eqn/*.[chy]: Change underaccent to uaccent.
8450
8451         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
8452         give it the same precedence as ACCENT.
8453         * eqn/other.c (make_underaccent_box): New function.
8454         * eqn/box.h: Declare it.
8455         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
8456         def_table.
8457
8458 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
8459
8460         * pic/pic.y (reset_all): New function. Called in rule for RESET.
8461         (parse_init): Call reset_all.
8462         (define_variable): When defining scale reset only those
8463         pre-defined variables that are scaled.
8464         (defaults_table): Add `scale' as non-scaled value.
8465
8466         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
8467         together with the text; allow any number of positioning words;
8468         allow center as a positioning word.
8469
8470         * pic/object.c (output::compute_scale): Get picture maximum height
8471         and width from variables called maxpswid and maxpsht.
8472         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
8473
8474 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
8475
8476         * pic/object.c (object_spec::make_text): Multiply textht by number
8477         of text items.
8478
8479         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
8480         occur.
8481         (do_sprintf): New function.
8482         (pic.gperf): Add sprintf token.
8483         (text, sprintf): New rules.
8484
8485         * pic/pic.y: `rand()' with no arguments returns a random number
8486         in the range [0,1).
8487
8488         * pic/pic.y: Allow a bare expression to be an attribute: change
8489         precedences to support this.  Change optional_ordinal rule to
8490         optional_ordinal_last to avoid reduce/reduce conflict.
8491         * pic/object.c (object_spec::object_spec): Initialize direction.
8492
8493         * pic/pic.y: Implement ^ operator meaning exponentiation.
8494
8495         * troff/node.h: Add default argument to mount_font.
8496         * troff/node.c (font_position): Read an optional third argument
8497         giving the external_name.
8498         (mount_font): Add optional argument giving the external_name.
8499         (mount_font_not_translate): Have additional argument giving
8500         external name.  Use this name to load the font.  Pass both names
8501         to font_info::font_info.
8502         (font_info::font_info): Have additional argument giving
8503         external_name.
8504         (class tfont): New member external_name.
8505         (font_info::get_tfont): Use external name to construct tfont_spec.
8506
8507 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
8508
8509         * eqn/lex.c (init_table): Add argument giving device.  Define
8510         name of device to be "1".
8511         (do_ifdef): Counts as true if the argument has been defined with
8512         `define'.
8513         * eqn/main.c (main): Call init_table with device argument. Make
8514         device local to main.
8515         * eqn/eqn.h: Change declaration of init_table. Remove declaration
8516         of device.
8517
8518         * pic/lex.c (get_delimited): Allow text to be delimited by
8519         matching {}s.  Don't recognize ending delimiter within a string.
8520
8521         * troff/input.c (get_delim_name): New function.
8522         (token::next): Implement \C.
8523
8524         * lib/font.c (font::load): Grok ---.  Add an alias for each
8525         character based on its code.
8526         (font::get_code_width): Deleted.
8527         * lib/font.h (class font): Declare font::number_to_index().
8528         Remove declaration of font::get_code_width.
8529         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
8530         to indices of named characters.
8531         (font::number_to_index): New function.
8532         * troff/input.c (font::number_to_index): New function.
8533         (get_charinfo_by_number, charinfo::get_number,
8534         charinfo::set_number): New functions.
8535         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
8536         (token::process, token::description, token::get_char,
8537         token::add_to_node_list, token::operator==): Handle
8538         TOKEN_NUMBERED_CHAR.
8539         * troff/charinfo.h: Declare get_charinfo_by_number,
8540         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
8541         charinfo class.
8542         (charinfo::numbered): New function.
8543         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
8544         * troff/env.h (class environment): Remove declaration of ...
8545         * troff/env.c (environment::make_numbered_char_node): Deleted.
8546         * troff/node.c (make_numbered_node): Deleted.
8547         (class numbered_glyph_node): Remove.
8548         (troff_output_file::put_char_width, troff_output_file::put_char):
8549         Handle numbered chars.
8550         (troff_output_file::numbered_char): Removed.
8551         (tfont::get_code_width): Removed.
8552         (make_glyph_node): Don't search special fonts for numbered
8553         characters.
8554         * troff/node.h: Remove declaration of make_numbered_node.
8555         * driver/input.c (do_file): Handle N command.
8556         * driver/printer.h: Add declaration of ...
8557         * driver/printer.c (printer::set_numbered_char): New function.
8558         * dvi/tfmtodit.c (main): Generate unnamed entries.
8559         * ps/devps/afmtodit: Likewise.
8560         * xditview/xtotroff.c (MapFont): Likewise.
8561         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
8562
8563         * tbl/main.c (process_format): If multiple widths are specified
8564         for a column but all the widths are the same, don't give an error
8565         message.
8566
8567         * tbl/table.c (table::do_row): If the current row is all lines and
8568         the stuff doesn't contains a line, mark the top of the row after
8569         printing stuff before the row.  If the current row is not all
8570         lines and the stuff doesn't contain a line, don't unnecessarily
8571         mark the top of the row before printing the stuff.
8572         
8573 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
8574
8575         * troff/groff.h: Remove MAX_PATH.
8576         * troff/input.c (open_file): Dynamically allocate space for the
8577         path.
8578         (open_mac_file, process_macro_file): Corresponding changes.
8579
8580 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
8581
8582         * troff/node.h (class output_file): Make copy_file pure.  Add
8583         vspace method ifdef COLUMN. Add is_printing method.
8584         * troff/node.c: Add class printing_reg. Add class
8585         real_output_file. Derive other output_file classes from
8586         real_output_file; in these classes rename begin_page to
8587         really_begin_page, print_line to really_print_line, copy_file to
8588         really_copy_file, transparent_char to really_transparent_char.
8589         Move output_file::flush to real_output_file. Add printing member
8590         to class output_file.
8591         * troff/div.h: Remove printing member from top_level_diversion.
8592         Add vspace member function to class diversion ifdef COLUMN. Add
8593         some declarations ifdef COLUMN.
8594         * troff/div.c (top_level_diversion::copy_file,
8595         top_level_diversion::transparent_output,
8596         top_level_diversion::output): Don't test printing member before
8597         output.
8598         * troff/input.c: Handle initial variable_space_request ifdef
8599         COLUMN.
8600         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
8601         but comment it out.
8602
8603 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
8604
8605         * troff/div.c (diversion::need): Make any space forced.  If we
8606         sprung a trap, set truncated_space to minus the distance to the
8607         trap and set needed_space to the amount that was needed.
8608         (top_level_diversion::space): A forced space turns no_space_mode
8609         off.
8610         (class constant_vunits_reg): New class.
8611         (init_div_requests): Implement number registers .trunc and .ne
8612         using constant_vunits_reg.
8613         (class truncated_space_reg): Deleted.   
8614
8615         * troff/div.h: Don't have a no_space_mode member in diversion.
8616         Instead have it in top_level_diversion.
8617         * troff/div.c (diversion::diversion): Don't initialize
8618         no_space_mode.
8619         (top_level_diversion::top_level_diversion): Initialize
8620         no_space_mode.
8621         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
8622         (macro_diversion::output): Don't clear no_space_mode.
8623
8624         * troff/input.c (diverted_space_node::reread): Don't call
8625         environment::do_break.  In fill mode, act like a blank line.
8626         (diverted_copy_file_node::reread): Don't call
8627         environment::do_break.
8628
8629         * troff/div.c (blank_line): New function.
8630         * troff/div.h: Declare it.
8631         * troff/input.c (process_input_stack): Call it.
8632
8633         * troff/div.c (truncated_space_reg::get_string): New function.
8634         (init_div_requests): Bind to .trunc.
8635         (space_request, top_level_diversion::space,
8636         top_level_diversion::output, macro_diversion::space,
8637         macro_diversion::output): Update truncated_space.
8638         (macro_diversion::output): Redo calculations when trap sprung.
8639         (macro_diversion::output, macro_diversion::space): No need for
8640         trap_flag.
8641
8642         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
8643         after truncating post line spacing.
8644
8645 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
8646
8647         * ps/devps/prologue (MF, SF): Make them work even if setfont is
8648         defined as a procedure rather than as an operator.
8649
8650 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
8651
8652         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
8653
8654 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
8655
8656         * troff/div.c (top_level_diversion::output): Merge
8657         output_file::print_line and output_file::end_of_line member
8658         functions.
8659         * troff/div.h (class output_file):
8660         * troff/node.c (troff_output_file::print_line,
8661         troff_output_file::end_of_line, output_file::end_of_line,
8662         ascii_output_file::print_line, suppress_output_file::print_line):
8663         Corresponding changes.  
8664
8665 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
8666
8667         * troff/input.c (token::next): Don't give a warning for `\.'.
8668
8669         * troff/env.c (environment::get_center_lines): New function.
8670         (init_env_requests): Bind number register .ce to it.
8671         * troff/env.h: Declare it.
8672         * tbl/table.c (table::init_output): Define reset macro to restore
8673         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
8674         Then do .ce 0.
8675         (table::print): If center option not given, then imply center
8676         option if SAVED_CENTER_REG > 0.
8677
8678 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
8679
8680         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
8681         Troff.ps from DOWNLOAD.
8682         
8683         * troff/Makefile: Change comment in DEFINES to avoid confusing
8684         System V make.
8685
8686         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
8687         code.  Don't try to catch errors with stopped.
8688         (check_line_lengths): New function.
8689         * ps/devps/prologue (EXEC): Deleted.
8690         (EBEGIN, EEND): New procedures.
8691
8692 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
8693
8694         * troff/input.c: Include request.h before node.h.
8695         * troff/node.c: Likewise.
8696         * troff/env.c: Likewise.
8697         * troff/div.c: Likewise.
8698         * troff/node.h (class special_node): Store argument as a macro
8699         rather than a char *.
8700         * troff/node.c (special_node::special_node, special_node::copy):
8701         Grok this.
8702         (special_node::~special_node): Deleted.
8703         (special_node::tprint): Deleted.
8704         (special_node::tprint_start, special_node::tprint_end,
8705         special_node::tprint_char): New functions.
8706         (troff_output_file::special): Deleted.
8707         (troff_output_file::start_special, troff_output_file::end_special,
8708         troff_output_file::special_char): New functions.
8709         * troff/input.c (special_node::tprint): New function.
8710         (do_special): Use macro not char *.
8711         (do_transparent_macro): Deleted.
8712         (token::next): Don't call do_transparent_macro.
8713
8714         * troff/input.c (token::next): Add 'Y' case.
8715         (do_transparent_macro): New function.
8716         * troff/node.c (troff_output_file::special): Handle newlines with
8717         argument using new continuation convention.
8718         * driver/input.c (get_string): Cope with continuation convention.
8719         (do_file): Don't call skip_line after calling get_string(1).
8720         * ps/ps.c (ps_printer::special, ps_printer::do_import,
8721         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
8722         arg.
8723         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
8724         with +.
8725
8726 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
8727
8728         * troff/input.c (asciify): By default, illegal input characters
8729         should return empty string.
8730
8731         * troff/input.c (copy_file): Handle first page transition like title.
8732         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
8733
8734         * troff/input.c (token::next): Improve error message for EOF after
8735         escape character.
8736         (input_char_description): New function.
8737         (get_char_for_escape_name): Use input_char_description.
8738         (token::next): Warn about unrecognized escape sequences.
8739         (warning_table): Add WARN_ESCAPE.
8740         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
8741         accordingly.
8742
8743         * troff/token.h: Remove declaration of process_input_stack.
8744
8745         * troff/input.c: Remove declaration of init_hyphen_requests.
8746         * troff/request.h: Correct spelling in declaration of same.
8747
8748         * troff/input.c (token::next): Check whether escape_char is 0.
8749
8750 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
8751
8752         * groff.c (main, usage, help): Implement -P and -L options.
8753         * groff.sh: Likewise.
8754
8755         * troff/input.c (token::next): Use some gotos to avoid code
8756         duplication.
8757
8758         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
8759         Avoid calling symbol::symbol if name empty.
8760
8761 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
8762
8763         * troff/input.c (init_input_requests): Make \n(.x return the major
8764         version number and \n(.y return the minor version number.
8765         * troff/Makefile: Construct file majorminor.c defining
8766         major_version and minor_version automatically from ../VERSION.
8767
8768         * troff/node.c (class glyph_node): Make operator new and operator
8769         delete public.
8770         (class ligature_node): Similarily.
8771
8772         * troff/input.c (operator==(const macro &, const macro &)): New
8773         function.
8774         (non_interpreted_node::same): Use this.
8775         (string_iterator::string_iterator): Make macro& argument const.
8776
8777         * troff/input.c (input_iterator::get): New function. Don't make
8778         asciify_macro or class non_interpreted_node friends of class
8779         input_iterator.
8780         (non_interpreted_node::interpret): Use input_iterator::get.
8781         (asciify_macro): Likewise.
8782
8783         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
8784         ~non_interpreted_node): Deleted.
8785         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
8786         Deleted.
8787
8788         * troff/symbol.h: Make all symbol member functions const.
8789
8790         * lib/strtol.c: New file.
8791         * lib/Makefile: Add strtol.c.
8792         * Makefile: Define STRTOL as strtol.o to include strtol in
8793         libgroff.a.
8794
8795 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
8796
8797         * pic/troff.c (troff_output::simple_circle): Divide by scale.
8798
8799 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
8800
8801         * troff/input.c (do_special): Use input_level.
8802
8803         * troff/token.h (TOKEN_BACKSPACE): New token.
8804         (token::backspace): New function.
8805         * troff/input.c (token::description, token::next, token::process):
8806         Grok TOKEN_BACKSPACE.
8807         (do_special): Turn TOKEN_BACKSPACE back into \b.
8808
8809         * troff/token.h (token::leader): New function.
8810         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
8811
8812         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
8813
8814         * troff/input.c (do_special): Use token::description in error
8815         message.
8816
8817 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
8818
8819         * troff/input.c (decode_args): Combine quoted and
8820         quote_input_level variables. Make it a for (;;) loop.
8821
8822         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
8823
8824         * troff/input.c (read_long_escape_name): The test for whether to
8825         expand buffer was off by 1.
8826         (read_string): Similarily.
8827
8828 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
8829
8830         * troff/input.c: Use `const int' rather than `static const int'.
8831
8832         * troff/div.h (diversion::copy_file): Declare as pure virtual.
8833         (macro_diversion::copy_file): New function.
8834         * troff/node.h: New class diverted_copy_file_node.
8835         * troff/node.c: Implement it.
8836         * troff/input.c (copy_file): Use diversion::copy_file. Handle
8837         first page transition by pushing a diverted_copy_file_node.
8838         * troff/input.c (token::next, process_input_stack): Don't handle
8839         COPY_FILE_REQUEST.
8840
8841 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
8842
8843         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
8844         whether space widths need adjusting.
8845
8846         * troff/charinfo.h: Generalize translated_to_space to
8847         special_translation so as to allow translation to \&.
8848         * troff/input.c (translate): Allow translation to \&.
8849         (charinfo::*): Corresponding changes.
8850         * troff/node.c (make_node, node::add_char): Corresponding changes.
8851         * troff/node.h (dummy_node::dummy_node): Allow optional first
8852         argument.
8853
8854         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
8855         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
8856         TOKEN_REQUEST.
8857         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
8858         TOKEN_REQUEST with an argument of TITLE_REQUEST.
8859         (token::process): Grok that.
8860         * troff/input.c (copy_file): Handle first page transition like
8861         title by pushing a COPY_FILE_REQUEST cookie.
8862         (token::next, process_input_stack): Grok that.
8863         * troff/node.h (output_file::copy_file): Add x and y arguments.
8864         Make it non-pure.
8865         * troff/div.c (top_level_diversion::copy_file): Supply them.
8866         * troff/node.c (troff_output_file::copy_file): Add x and y
8867         arguments; moveto specified position.  Invalidate font_position
8868         array after copying file.
8869         (output_file::copy_file): New function.
8870         (suppressed_output_file::copy_file, ascii_output::copy_file):
8871         Removed.
8872         * troff/input.c (transparent_file): New function.
8873         (init_input_requests): Bind to "trf".
8874         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
8875         (process_input_stack): Likewise.
8876
8877         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
8878
8879         * troff/node.c (init_node_requests): New number registers .kern
8880         pointing to global_kern_mode, and .lg pointing to
8881         global_ligature_mode.
8882
8883         * troff/node.c (ligature): Don't change it if we get a bad
8884         integer.
8885
8886         * troff/input.c (do_define_string): Don't strip tabs.
8887
8888         * troff/input.c (asciify_macro): Make the string_iterator auto.
8889
8890         * troff/node.c (init_font_requests): Rename to...
8891         (init_node_requests):
8892         * troff/node.h: Change declaration.
8893         * troff/input.c (main): Change call.
8894
8895         * troff/input.c (node::reread, diverted_space_node::reread): New
8896         methods.
8897         (process_input_stack): Call reread rather than
8898         get_diverted_space_node.
8899         * troff/node.c (node::get_diverted_space_node,
8900         diverted_space_node::get_diverted_space_node): Removed.
8901         * troff/node.h: Declare reread methods instead of
8902         get_diverted_space_node methods. Make `n' member private.
8903         * troff/input.c: (token::diverted_space): Removed.
8904         * troff/token.h: Removed declaration.
8905         
8906
8907 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
8908
8909         * eqn/script.c (script_box::compute_metrics): Don't let
8910         SUP_RAISE_FORMAT become negative.
8911
8912         * tbl/table.c (table::do_row): Entries that don't end in the
8913         this row shouldn't make the row non-blank.
8914         
8915         * tbl/table.c (table::make_columns_equal): Only set the width of
8916         columns which are marked as equal.
8917         
8918         * tbl/main.c (process_data): Before issuing excess data error,
8919         if last character was a newline unget it; then get it again after
8920         the error.  Also include the contents of the entry in the message.
8921
8922         * groff.c: New file.
8923         * Makefile: Build groff from groff.c.  Make it possible to use
8924         either groff.sh or groff.c as groff.
8925         * Makefile.bd: Similarily.
8926
8927 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
8928
8929         * groff.sh: Don't delay expansion of $@ in assignment to files.
8930         Remove occurrences of \".
8931
8932 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
8933
8934         * all Makefiles: Simplify and rearrange.
8935
8936         * Makefile: Handle fmod like malloc.
8937         * lib/Makefile: Similarily.
8938         * lib/fmod.c: Remove #ifdef NEED_FMOD.
8939
8940         * Makefile: Rename OPTIMISE to OPTIMIZE.
8941
8942         * groff.sh: Remove assignment to PATH.
8943         * Makefile: Remove SHPATH variable.
8944         * Makefile.bd: Similarily.
8945
8946         * groff.sh: Add -V option to print the pipeline instead of
8947         executing it.
8948
8949 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
8950
8951         * lib/font.c: Split off file searching into ...
8952         * lib/fontfile.c: New file.
8953
8954         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
8955
8956 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
8957
8958         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
8959         Also change misleading comment.
8960         (table::do_vspan): Change similarily misleading comment.
8961         * tbl/main.c (process_data): A format row with an explicit `s'
8962         uses up a data line, even if all the other columns are `_' or `='.
8963
8964         * troff/input.c (token::description): Fix description of
8965         TOKEN_DUMMY and TOKEN_EMPTY.
8966
8967 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
8968
8969         * groff.sh: Fix description of -Z in help message.
8970
8971 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
8972
8973         * pic/object.c (object_spec::make_object): Allow negative and zero
8974         line thicknesses.
8975         * pic/pic.y: Give linethick default value of -1.0.
8976         * pic/troff.c (troff_output::troff_output): Initialize
8977         last_line_thickness to BAD_THICKNESS.
8978         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
8979         (troff_output::line_thickness): Canonicalize negative thicknesses
8980         to RELATIVE_THICKNESS.
8981         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
8982         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
8983         to -1.0.
8984         (tex_output::start_picture): Set pen_size to -2.0.
8985
8986         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
8987         0, then use 0 linewidth.
8988         (ps_printer::ps_printer): Initialize line_thickness to -1.
8989
8990         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
8991
8992         * ps/devps/symbolchars: Remove `or'.
8993         * ps/tmac.ps: Implement \(or with .char.
8994
8995         * ps/devps/symbolchars: Move most characters into textmap.
8996         * ps/devps/textmap: Add names for troff bracket characters. Remove
8997         ul, ru, br, bv.
8998
8999         * ps/devps/TSymbol.ps: Removed.
9000         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
9001         * ps/tmac.ps: Do with .char what TSymbol did.
9002         * ps/devps/download: Remove TSymbol.
9003
9004         * ps/devps/T: Removed.
9005         * ps/devps/Troff.ps: Removed.
9006         * ps/devps/Troff.afm: Removed.
9007         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
9008         * ps/devps/download: Remove Troff.
9009         * ps/devps/FontMakefile: Remove T target.
9010         * ps/devps/DESC-A4: Remove T from font list.
9011         * ps/devps/DESC-letter: Likewise.
9012
9013         * troff/input.c (macro_to_node): Rename to ...
9014         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
9015         character's definition while processing it.
9016         * troff/node.c (node::add_char, make_node): Change calls to
9017         macro_to_node accordingly.
9018
9019         * troff/input.c (token::next): Translate \_ to \(ul.
9020
9021         * tty/devascii/R.proto: Add `|'.
9022         * tty/devlatin1/R.proto: Likewise.
9023
9024 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
9025
9026         * man: Put the version number in all the man pages.
9027
9028 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
9029
9030         * Makefile.bd: New file.
9031         * README.bd: New file.
9032
9033         * VERSION: New file.
9034         * lib/version.c: Removed.
9035         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
9036         in clean target.
9037
9038         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
9039         environment variable.
9040
9041         * all Makefiles: Split install target into install.bin for
9042         binaries, and install.nobin for everything else.
9043         * Makefile: Add bindist target.
9044
9045         * man/afmtodit.man: New file.
9046         * man/Makefile: Add afmtodit.n to MAN1PAGES.
9047         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
9048         in BINDIR.
9049         * ps/Makefile: Pass BINDIR to make install in devps.
9050
9051         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
9052         the space character.
9053
9054         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
9055
9056 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
9057
9058         * ps/ps.c: Redo font downloading.
9059         * ps/devps/download: New file.
9060         * ps/devps/Makefile: Add download to DEVICEFILES.
9061         * ps/devps/afmtodit: Remove -d option.
9062         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
9063         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
9064         * ps/devps/zapfdr.ps: Likewise.
9065         * ps/devps/TSymbol.ps: Likewise.
9066
9067 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
9068
9069         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
9070
9071 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
9072
9073         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
9074         then strip the first line if it starts with %.
9075         * Makefile: Add a comment about this.
9076
9077         * man/tfmtodit.man: New file.
9078         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
9079         * dvi/Makefile: Install tfmtodit in BINDIR.
9080
9081         * dvi/tfmtodit.c (usage): Mention -v option.
9082
9083 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
9084
9085         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
9086         * troff/node.c (troff_output_file::transparent_char): Don't call
9087         flush_tbuf.
9088
9089         * eqn: Add check_tabs method to most box classes.
9090         * eqn/box.c (box::top_level): Call check_tabs.
9091
9092         * eqn/script.c (script_box::output): Use \Z.
9093         * eqn/limit.c (limit_box::output): Use \Z.
9094
9095         * eqn/box.c (box::top_level): Use itoa.
9096
9097 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
9098
9099         * dvi/tmac.dvi: Add font translations for CR, C, TT.
9100         * dvi/devdvi/Makefile: Don't make links to CW.
9101
9102         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
9103         HX, HD.
9104         * xditview/tmac.X: Likewise.
9105
9106         * troff/node.c: Add font translation feature.
9107         (get_font_translation): New function.
9108         (symbol_fontno): Translate the font name.
9109         (mount_font_no_translate): Rename to mount_font to this.
9110         (mount_font): New function.
9111         (font_family::make_definite): Call mount_font_no_translate instead
9112         of mount_font.
9113         (mount_style): Translate the font name.
9114         (font_translate): New function.
9115         (init_font_requests): Bind "ftr" to font_translate.
9116
9117         * ps/devps/prologue (SN): New procedure that rounds a position to
9118         the nearest (pixel + (.25,.25)).
9119         (DL): Use SN to round endpoints.
9120
9121         * lib/version.c: Changed version to 0.5.
9122
9123 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
9124
9125         * Makefile: Move definition of PAGE to the very beginning, so that
9126         people are less likely to miss it.
9127
9128 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
9129
9130         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
9131
9132         * troff/env.c (environment::choose_breakpoint): Make `can't find
9133         breakpoint' error a warning of type WARN_BREAK.  Change message to
9134         `can't break line'.
9135         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
9136         code 040000.
9137         * troff/input.c: Add WARN_BREAK to warning_table.  Include
9138         WARN_BREAK in DEFAULT_WARNING_MASK.
9139
9140         * tty/tmac.tty: Add definition of \(+-.
9141
9142         * groff.sh: Remove `--' option to set command.
9143
9144         * dvi/devdvi/texsy.map: Remove duplicate md entry.
9145
9146         * ps/devps/eqnchar: Better definition of cdot using md.
9147         * dvi/devdvi/eqnchar:  Likewise.
9148         * xditview/devX100/eqnchar:  Likewise.
9149         * xditview/devX75/eqnchar: Likewise.
9150         * eqn/lex.c: Add definition of cdot.
9151
9152 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
9153
9154         * troff/input.c (get_optional_char): New function.
9155         * troff/input.c (set_page_character): Use get_optional_char(),
9156         rather than has_arg() and tok.get_char(1).
9157         * troff/env.c (tab_character, leader_character, hyphen_char,
9158         field_characters): Likewise.
9159         (margin_character): Likewise.  Also always delete the
9160         margin_character_node.
9161
9162         * troff/input.c (token::get_char): Use token::description.
9163
9164         * troff/input.c (has_arg): Don't skip over tab and \}.
9165         * troff/number.c (start_number): Give a warning if the number
9166         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
9167
9168 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
9169
9170         * troff/input.c (empty_name_warning, non_empty_name_warning): New
9171         functions.
9172         (get_name, get_long_name): Use these.  Rename `warn' argument to
9173         `required'.
9174
9175         * troff/node.c (get_fontno): Test that the symbol is not null.
9176
9177         * troff/input.c (token::description): New function.
9178         * troff/number.c (parse_term): Use token::description in `numeric
9179         expression expected' message.
9180         * troff/groff.h: Add WARN_MISSING.
9181         * troff/number.c (start_number): New function.
9182         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
9183         get_incr_number): Use start_number().
9184         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
9185         default.
9186         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
9187         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
9188         token::descripion.
9189         * troff/input.c (token::get_char): Use WARN_MISSING.
9190         * troff/input.c (token::delimiter): Use token::description.
9191         * troff/env.c (environment_switch): Back out Aug 3 change.
9192         * troff/input.c (has_arg): Skip over \}s and tabs but give a
9193         warning.
9194         * troff/token.h (token::tab): New function.
9195         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
9196         * troff/reg.c (alter_format): Likewise.
9197         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
9198
9199 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
9200
9201         * troff (most files): Redo warnings. Divide warnings into various
9202         categories; warning() has an additional first argument indicating
9203         the category it falls into.
9204         * troff/input.c (main): -w now takes an argument. New option -W.
9205         (enable_warning, disable_warning): New functions.
9206
9207         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
9208         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
9209
9210 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
9211
9212         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
9213         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
9214         * xditview/devX75/eqnchar: Likewise.
9215         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
9216
9217         * eqn/other.c: When bar or over applies to a single character
9218         don't produce an overline_box or an underline_box. Instead produce
9219         an accent_box or an underaccent_box, with the accent a line
9220         whose width is accent_width.  New classes underaccent_box,
9221         overline_char_box and underline_char_box.
9222         * eqn/box.h: Move overline_box, underline_box, accent_box class
9223         declarations into eqn/other.c. Add declarations of
9224         make_underline_box, make_overline_box, make_accent_box.
9225         * eqn/eqn.y: Call make_overline_box, make_underline_box
9226         make_accent_box instead of constructors.
9227         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
9228
9229         * eqn/other.c: Add accent_box::~accent_box.
9230         * eqn/box.h: Declare it.
9231
9232         * groff.sh: With -Tps, use eqn -D.
9233
9234         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
9235         rather than \l.
9236         (underline_box::output): Similarily.
9237         (accent_box::output): Use \Z.
9238
9239         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
9240         bit smaller.)
9241
9242 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
9243
9244         * troff/div.c (top_level_diversion::transparent_output(unsigned
9245         char)): Use asciify.
9246         * troff/input.c (asciify): Don't make it static.
9247         * troff/token.h (asciify): Declare it.
9248         
9249         * troff/input.c (get_name, get_long_name, token::get_char,
9250         token::delimiter): Add an extra default argument which says
9251         whether a warning should be printed.
9252         * troff: Pass a non-zero argument to one of these rather than
9253         printing a warning directly.
9254
9255 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
9256
9257         * troff: Consistently use symbol::is_null.
9258
9259         * troff/dictionary.h: Move some inline functions into
9260         dictionary.c.
9261
9262         * troff/request.h: Move inline functions into input.c.
9263         (request_or_macro::invoke): Make it pure.
9264
9265         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
9266         * troff/input.c (init_input_requests): Use class constant_int_reg.
9267         (class compatible_reg): Deleted.
9268         * troff/div.c (init_div_requests): Use class constant_int_reg.
9269         (class last_post_line_extra_space_reg): Deleted.
9270
9271         * troff/env.c (tab_character): Don't change the tab character if
9272         we get an invalid argument.
9273         (hyphen_char): Similarily.
9274
9275         * troff/reg.c (alter_format): Check that nm is not null.
9276
9277         * Makefile, groff.sh: Make it possible to customize the commands
9278         used for printing PostScript and dvi files. Also make it possible
9279         to customize the path used by groff.sh.
9280
9281         * eqn/eqn.y: Make `left' right associative.
9282
9283 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
9284
9285         * pic/pic.h: Added definition of M_SQRT2 for those systems that
9286         don't have it.
9287
9288         * pic/pic.h: Removed definition of INT_MAX.
9289
9290         * troff/node.c (italic_corrected_node::vertical_extent): Omit
9291         `return'.
9292
9293         * troff/input.c (token::next):  Handle \R like \n.
9294
9295 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
9296
9297         * ps/tmac.pc (PSPIC): Simplify.
9298
9299         * troff/env.c (tab_stops::to_string):
9300         * pic/pic.y (object_type_name):
9301         * pic/troff.c (simple_output::line):
9302         * pic/tex.c (tex_output::spline):
9303         * pic/object.c (object_spec::make_object):
9304         * tbl/main.c (process_data):  Add cases to switch statements to
9305         avoid cfront warnings. (Some of these are spurious, since the
9306         switch already has a default case.)
9307
9308         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
9309         `ps-'.  Don't test systat; instead check number of arguments to
9310         ps-bb.
9311
9312 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
9313
9314         * macros/tmac.e: Do not decrease the page offset by 0.5i.
9315
9316         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
9317         Unlink the file as soon as we have opened it, so that we don't
9318         have to bother with signal handlers.
9319         (handler): Deleted.
9320         (fatal_error_exit): Deleted.
9321         (main): Don't call signal.
9322
9323         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
9324         can be ignored.
9325         * dvi/devdvi/Makefile: Use the -k option with S and MI.
9326
9327         * pic/pic.y:  If there is a label, or an nth construction before
9328         the first `.' in the argument to `with', ignore it and generate a
9329         warning.
9330         * pic/lex.c (lex_warning): New function.
9331
9332         * tbl/table.c (table::init_output): In section keep and release
9333         macro, use 0 indent when diverting and the correct indent when
9334         rereading.
9335
9336         * troff/input.c (interpolate_number_format): Do not interpolate
9337         anything if the number register is not defined.
9338
9339         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
9340
9341 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
9342
9343         * ps/devps/prologue (PICTURE): Set components of graphics state to
9344         their default values.
9345
9346         * ps/devps/text.enc: Add trademark
9347         * ps/devps/textmap: Add names for club, spade, heart, diamond,
9348         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
9349         * ps/devps/symbolchars: Add names for summation and product.
9350
9351         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
9352         suchthat. Add pp. Add upper-case letters.
9353
9354         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
9355         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
9356         Upsilon.
9357
9358         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
9359         rA (right angle bracket) to ra.  Introduce names for double-headed
9360         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
9361         * ps/devps/textmap: Likewise for ps device.
9362         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
9363         * tty/devascii/R.proto: Rename lA to la and rA to ra.
9364         * tty/devascii/R.proto: Likewise.
9365         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
9366         \(uA, \(dA.
9367         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
9368
9369         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
9370
9371         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
9372         def_table.
9373
9374 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
9375
9376         * troff/div.c (when_request): Use symbol::is_null rather than
9377         has_arg to determine whether we have an argument.
9378         (change_trap): Remove the trap if we get an invalid number. Give
9379         an error if we don't get at least the macro name.
9380         (diversion_trap): Remove trap if we get an invalid name or number.
9381
9382         * troff/env.c (environment_switch): Pop if we get an invalid
9383         symbol or numeric expression.
9384
9385         * troff/input.c (do_define_macro):  If EOF is encoutered while
9386         defining the macro, do tok.next() before returning.
9387
9388         * troff/token.h (has_arg): Move definition from here, to ...
9389         * troff/input.c (has_arg): ... here
9390
9391         * troff/env.c (space_size): Do nothing if we get an invalid argument.
9392         * troff/input.c (shift): Likewise.
9393
9394         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
9395         for `.c'.
9396
9397         * pic/troff.c (troff_output::start_picture):  Comment out calls to
9398         `..'.
9399
9400         * eqn/main.c (do_file): Subtract 1 from current_lineno if
9401         interpret_lf_args succeeds.
9402
9403         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
9404         \\.  This avoids problems with \$N.
9405
9406         * groff.sh: Pass -C to preprocessors.
9407
9408         * lib/lf.c (interpret_lf_args):  Be more flexible.
9409
9410         * tbl/main.c (main): Add -C option.
9411         (table_input::get): Do not recognize TE if followed by character
9412         other than a space or newline unless -C option given.
9413         (process_input_file): Likewise for lf, TS.
9414         (process_data): Likewise for lf in text blocks.
9415
9416         * eqn/main.c (main): Add -C option.
9417         (do_file): Don't recognize EQ, EN or lf if followed by character
9418         other than space or newline unless -C option given.
9419         * eqn/lex.c (file_input::read_line): Similarily.
9420         * eqn/eqn.h: Declare compatible_flag.
9421
9422         * etc/soelim.c (main): Add -C option.
9423         (interpret_lf_args): Use version in libgroff.
9424         (do_file):
9425
9426         * pic/main.c (main): Add -C option, which sets compatible_flag.
9427         (top_input::get), (top_input::peek):  If -C option not given,
9428         do not recognize .PS/.PE/.PF/.lf if followed by a character
9429         other than space or newline.
9430         * pic/lex.c (file_input::read_line): Similarily.
9431         * pic/pic.h: Add declaration of compatible_flag.
9432
9433 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
9434
9435         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
9436
9437         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
9438         derived from node.  New class space_char_hmotion_node.
9439         * troff/input.c (asciify_macro): New function.
9440         * troff/input.c (init_input_requests): New request `asciify' bound
9441         to asciify_macro.
9442         * macros/mm.diff: New file.
9443         * Makefile:  In install.mm target use `patch' to apply
9444         macros/mm.diff.
9445
9446         * troff/input.c (macro::print_size): Just print the size in bytes.
9447
9448         * troff/div.c (return_request): Correct the argument
9449         interpretation.
9450
9451 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
9452
9453         * troff/node.h (class composite_node): Add sz member.
9454         * troff/node.c (composite_node::size): Return sz.
9455         * troff/input.c (macro_to_node):  Use the initial size in the
9456         environment as the size of the composite_node.
9457
9458         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
9459         default.
9460
9461 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
9462
9463         * troff/div.c (change_trap): If we get a bad number expression,
9464         do nothing.
9465
9466 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
9467
9468         * lib/matherr.c (matherr): Define this only if math.h defines
9469         TLOSS.
9470
9471 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
9472
9473         * troff/div.c (macro_diversion::distance_to_next_trap): If there
9474         no diversion trap return vunits(INT_MAX - vresolution).
9475
9476 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
9477
9478         * troff/input.c (do_zero_width): New implementation that doesn't
9479         use a temporary environment. Use instead:
9480         (token::add_to_node_list): New function.
9481         * troff/env.c (environment::get_prev_char_height),
9482         (environment::get_prev_char_height),
9483         (environment::get_prev_char_skew): New functions.
9484         (environment::get_prev_char): New function.
9485         (environment::get_prev_char_width): Change to use get_prev_char.
9486         (init_env_request): Implement new registers .cht, .cdp, .csk.
9487         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
9488         \Z being processed in a separate environment.
9489
9490 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
9491
9492         * tbl/table.c: Removed TABLE_BOTTOM_REG.
9493
9494         * tbl/table.c (table::init_output): In the section release macro,
9495         give a warning message if the section won't fit on one page.
9496
9497         * tbl/table.c (table::do_top): Emit table keep only if table is
9498         boxed.
9499         (table::do_bottom): Likewise for table release.
9500         (table::table), (table::add_vertical_rule):  Remove reference to
9501         keep member.
9502         * tbl/table.h: Remove keep member.
9503
9504         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
9505         SECTION_RELEASE_MACRO, if there's not enough space before the next
9506         trap to output the diversion, call T# ourselves, set
9507         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
9508         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
9509         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
9510         vertical position and return to it before turning traps on again.
9511         
9512 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
9513
9514         * troff/node.c, troff/node.h: In classes derived from node,
9515         replace prev_char_width method by last_char_node method.
9516         * troff/env.c (environment::get_prev_char_width): Use
9517         node::last_char_node rather than node::get_prev_char_width.
9518
9519         * Makefile: Added comment about -fno-inline on 68030-based
9520         Apollos.
9521
9522         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
9523         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
9524         expressions using sizeof to int.
9525         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
9526
9527         * macros/tmac.e (TS):  Don't move @f back past the current
9528         position.
9529
9530 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
9531
9532         * ps/ps.c (main): Buffer stderr.
9533         * dvi/dvi.c (main): Likewise.
9534         * tty/tty.c (main): Likewise.
9535
9536         * ps/ps.c (ps_printer::do_import): Improve error handling.
9537
9538         * troff/input.c (abort_request): Use asciify.
9539
9540         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
9541         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
9542         type of first argument int rather than char.  This works around a
9543         bug on the 68030 based Apollo using g++ 1.37.1.
9544
9545         * tbl/table.h (class table): Add `keep' member.
9546         * tbl/table.c (table::table): Initialize `keep'.
9547         (table::add_vertical_rule): Set `keep' to 1.
9548         (table::do_top): Only emit table keep macro is `keep' is non-zero.
9549         (table::do_bottom): Likewise for table release macro.
9550         (table::do_row): Emit section keep macro even if the row is 0.
9551
9552 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
9553
9554         * macros/tmac.e (@C): Preserve the font family across the change
9555         in environments.
9556
9557 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
9558
9559         * lib/font.c: Initialize font::hor and font::vert to 1.
9560         (font::load_desc): Check the values of font::hor and font::vert.
9561
9562         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
9563         be included in a C compilation.
9564         (iftoa): Use INT_DIGITS. Include lib.h.
9565         (itoa): Likewise.
9566         (as_string): Likewise.
9567         * tbl/table.c: Removed definition of INT_DIGITS.
9568         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
9569         * troff/input.c (input_input_requests): Likewise.
9570         * ps/ps.c (make_encoding_name): Likewise.
9571         (ps_printer::set_style): Likewise.
9572         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
9573
9574         * tty/devascii/R.proto: Map fm onto '.
9575         * tty/devlatin1/R.proto: Likewise.
9576
9577 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
9578
9579         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
9580         argument to \w is at a different input level.
9581
9582         * tbl/table.c (table::init_output): Define a new macro
9583         REPEATED_VPT_MACRO, like vpt but if in a diversion also
9584         transparently outputs itself.
9585         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
9586         vpt.
9587         (table::do_row): Likewise.
9588
9589         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
9590         TRANSPARENT_STRING_NAME.
9591
9592         * tbl/table.c (table::init_output): In the table release macro
9593         print an error message and don't produce any output if after
9594         issuing the need request the table still will not fit.  Also
9595         remove the diversion after bringing it back.
9596
9597         * tbl/table.c (table::init_output): Define a new macro
9598         REPEATED_MARK_MACRO, like mk but if in a diversion also
9599         transparently outputs itself.
9600         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
9601         is necessary because .TH might not call .T#.
9602         (table::do_top): Likewise TOP_REG.
9603         (table::define_bottom_macro): If TOP_REG is no longer valid, use
9604         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
9605         table header might contain just the two top rules.
9606
9607 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
9608
9609         * troff/div.c: Implement new request `ptr' to print all traps.
9610
9611         * troff/env.c (init_env_requests): Implement `.tabs' reg with
9612         init_string_env_reg.
9613         * troff/env.c (class tab_reg): Deleted.
9614
9615 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
9616
9617         * troff/div.c: New number register .pn returns the number of the
9618         next page as set by the pn request.
9619
9620         * macros/tmac.an: Redid headers and footers.  Number each manual
9621         entry starting from 1 unless \nC is > 0, like Sun.  Added an
9622         optional 5th argument to .TH which specifies the manual name and
9623         appears in the center of the header.  Understand the X, P and D
9624         registers like Sun.
9625
9626 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
9627
9628         * troff/env.c (init_env_requests): New number register `.lt' to
9629         return the title length.
9630
9631         * troff/node.h (class transparent_dummy_node): New class.
9632         * troff/node.c (class transparent_dummy_node): Provide member
9633         functions. 
9634         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
9635         than a dummy_node.
9636
9637         * troff/input.c (token::next): New escape sequence \).
9638         * troff/input.c (get_copy): Recognize \) in copy mode.
9639
9640         * troff/input.c (input_stack::clear): New function.
9641         * troff/input.c (exit_request): Use input_stack::clear.
9642
9643         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
9644         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
9645
9646         * troff/env.c: Move set_page_character to input.c.  Move
9647         page_character to input.c also.
9648         * troff/env.c (title): Split off the reading of the parts of the
9649         title into read_title_parts.
9650         * troff/input.c (read_title_parts): New function.  Check the
9651         input_level when testing whether a token matches the delimiter.
9652
9653         * troff/input.c (exit_request): New function.
9654         * troff/input.c (init_input_requests): Bind ex request to
9655         exit_request rather than exit_groff.
9656
9657         * troff/input.c (exit_groff): Call tok.next() before
9658         process_input_stack().
9659
9660 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
9661
9662         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
9663         * troff/env.h: ditto.
9664         * troff/input.c: ditto.
9665
9666         * troff/env.c (environment::is_empty): Test pending_lines.
9667
9668         * troff/env.c (environment::have_pending_lines): Removed.
9669
9670         * troff/input.c: Add request to flush pending lines from the
9671         environment.
9672
9673         * troff/env.c, troff/env.h: Add automatic widow control feature.
9674
9675         * troff/input.c (exit_groff):  Do process_input_stack() after
9676         do_break() but before setting exit_flag to 2.
9677
9678         * troff/input.c: Remove FLUSH_PENDING_LINES and
9679         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
9680         environment after END_TRAP token seen, but only if there aren't
9681         any more traps still unfinished.
9682         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
9683
9684 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
9685
9686         * troff/env.c: Rename the `retain_size' member of class
9687         pending_output_line to `no_fill'.
9688
9689         * troff/env.c (title): When the line is output, make the
9690         retain_size argument !fill.
9691
9692         * troff/node.h: Add `hyphenated' member to struct breakpoint.
9693         * troff/node.c (space_node::get_breakpoints),
9694         (dbreak_node::get_breakpoints):  Fill this in.
9695         * troff/env.c:  Allow specification of maximum number of
9696         consecutive hyphenated lines.
9697
9698         * troff/env.c (environment::is_empty): Add test for !current_tab.
9699
9700 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
9701
9702         * troff/env.c (environment::hyphenate_line): Don't completely give
9703         up if the word is not to be hyphenated; continue so that breaks
9704         can be made at break_char_node's.
9705
9706         * lib/lib.h: Only define INT_MAX if it's not already defined;
9707         undef INT_MIN if it's already defined.
9708
9709         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
9710
9711         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
9712         This works around a bug in AT&T C++ 2.0 used with an ANSI C
9713         compiler.
9714         
9715         * macros/tmac.an (an-header): Set no-space mode.
9716
9717         * macros/tmac.an (TH): Start a new page if necessary.
9718
9719         * Started using ChangeLog at version 0.4.
9720
9721 Local Variables:
9722 version-control: never
9723 coding: latin-1
9724 End: