* Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
[s-roff.git] / ChangeLog
blob673a9fb05f7c32f3952c3b33a63d37c8c801444e
1 2004-03-08  Werner LEMBERG  <wl@gnu.org>
3         * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
4         against empty argument.  Problem reported by <cgd@broadcom.com>.
6 2004-03-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
8         * Makefile.in (SEP): Replaced with...
9         (RT_SEP, SH_SEP): Separators for the target platform's native path
10         separator and the build environment, respectively.
11         (fontpath, tmacpath): Use RT_SEP.
12         (MDEFINES): Updated.
14         * contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
15         * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
16         * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
17         * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
19 2004-03-05  Werner LEMBERG  <wl@gnu.org>
21         * fonts/devlj4/Makefile.sub (LJ4RES): Set to 1200.  This helps to
22         reduce alignment problems with newer printers which use built-in
23         TrueType fonts (instead of the older Intellifonts).  The ideal
24         solution is to provide a second set of groff metric files, but this
25         is extremely time-consuming to produce, given that HP's metric
26         files are very rudimentary.
28 2004-03-01  Werner LEMBERG  <wl@gnu.org>
30         * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
31         s/operand/argument/ in error message.
33 2004-03-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
35         * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
36         is in use.
38 2004-03-01  Antti Kantee  <pooka@netbsd.org>
40         * tmac/s.tmac (XE): Fix error message.
42 2004-02-27  Jeff Conrad  <jeff_conrad@msn.com>
44         * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
45         New macros.
47         * src/roff/groff/pipeline.c: Declare strcasecmp.
48         (run_pipeline) [_WIN32]: Use function name variants which don't
49         start with `_'.
50         Fix stream handling.
52 2004-02-27  Keith Marshall  <keith.d.marshall@ntlworld.com>
54         * src/include/nonposix.h: Fix declaration of `system_shell_name'.
55         Declare `spawnvp_wrapper' and macro definitions of spawnvp only
56         for platforms which use the native Win32 runtime libraries.
57         (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
59         * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
60         QUOTE_ARG_REALLOC_ERROR): Fix string.
62         * src/preproc/html/pre-html.cpp: Remove declaration of
63         `spawnvp_wrapper'.
64         Don't use __MINGW32__.
65         s/DEBUG_FILE/DEBUG_FILE_DIR/.
66         (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
67         (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
68         (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
69         calls to `set_redirection' and `WAIT'.
70         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
71         Fix calls to `set_redirection' and `save_and_redirect'.
72         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
73         to `set_redirection' and `save_and_redirect'.
74         (usage): Fix message.
75         (makeTempFiles, main): Use `DEBUG_FILE'.
77 2004-02-21  Werner LEMBERG  <wl@gnu.org>
79         * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
81 2004-02-21  Keith Marshall  <keith.d.marshall@ntlworld.com>
83         * src/libs/libgroff/quotearg.c: New file, providing proper argument
84         quoting for MSVC's spawn* and exec* functions.
85         * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
86         spawnvp with proper quoting for MSVC.
88         * src/libs/libgroff/assert.cpp (program_name),
89         src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
90         * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
92         * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
94         * src/include/error.h (program_name): Declare as `extern "C"'.
95         * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
97 2004-02-21  Jeff Conrad  <jeff_conrad@msn.com>
99         * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
100         spawnvp_wrapper.
101         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
103 2004-02-20  Jeff Conrad  <jeff_conrad@msn.com>
105         * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
106         variable.
107         (sbasename) [__MSDOS__ || ...]: New function.
108         (system_shell_name) [__MSDOS__ || ...]: Use a different, more
109         generic algorithm.
110         (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
111         (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
112         of XXX.
113         Use STDOUT_FILENO instead of hardcoded file handle.
114         (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
116 2004-02-19  Werner LEMBERG  <wl@gnu.org>
118         * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
119         avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
121 2004-02-18  Werner LEMBERG  <wl@gnu.org>
123         * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
124         new font and mapping files.
126 2004-02-18  Jeff Conrad  <jeff_conrad@msn.com>
127             Keith Marshall  <keith.d.marshall@ntlworld.com>
129         * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
130         an input pipe.  This is needed for the MSVC compiler to make troff's
131         `-o' option work.
133         * src/roff/troff/div.cpp: Include nonposix.h.
134         (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
136 2004-02-17  Werner LEMBERG  <wl@gnu.org>
138         * font/devlj4/generate/special.awk: New script.
139         * font/devlj4/generate/Makefile (S): Use special.awk.
140         * font/devlj4/*: Regenerated, including the following new files:
141         Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
142         MS Symbol (SYMBOL), Wingdings (WINGDINGS).
143         * NEWS: Document new lj4 fonts and revised hpftodit.
145 2004-02-17  Paco Andrés Verdú  <pandres@dragonet.es>
147         * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
149 2004-01-25  Werner LEMBERG  <wl@gnu.org>
151         * src/libs/libgroff/progname.cpp: Replaced with...
152         * src/libs/libgroff/progname.c: New file.
153         * src/libs/libgroff/Makefile.sub: Updated accordingly.
155 2004-01-17  Werner LEMBERG  <wl@gnu.org>
157         * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
159 2004-01-16  Jeff Conrad  <jeff_conrad@msn.com>
161         * font/devlj4/generate/wingdings.map,
162         font/devlj4/generate/symbol.map: Include unnamed glyphs.
163         Use groff glyph names where possible.
164         * src/devices/grolj4/lj4_font.man: Minor updates.
166 2004-01-13  Werner LEMBERG  <wl@gnu.org>
168         * tmac/www.tmac (DC): Handle TTY devices.
170         * doc/webpage.ms: Document viewCVS from ffii.org.
171         * NEWS, README: Updated.
173         * src/roff/groff/groff.man: Mention lj4_font man page.
175         * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
176         variables.
177         (FONTS): Add SYMBOL and WINGDINGS.
178         (SYMBOL, WINGDINGS): New targets.
180 2004-01-13  Jeff Conrad  <jeff_conrad@msn.com>
182         * src/devices/grolj4/lj4_font.man: New man page.
183         * src/devices/grolj4/Makefile.sub (MAN5): New variable.
184         * src/devices/grolj4.man: Mention lj4_font man page.
186         * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
187         * src/utils/hpftodit/hpftodit.man: Document it.
188         (CW): New macro.
189         Remove details about fonts (which are now in lj4_font.man).
191         * font/devlj4/generate/symbol.map,
192         font/devlj4/generate/wingdings.map: New files.
194 2004-01-12  Werner LEMBERG  <wl@gnu.org>
196         * README: Mention ffii's viewcvs access.
198 2004-01-09  Werner LEMBERG  <wl@gnu.org>
200         * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
202 2004-01-09  Jeff Conrad  <jeff_conrad@msn.com>
204         Revert most of the change from 2004-01-03 to better control used
205         symbol sets.
207         * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
208         (text_symbol_sets, special_symbol_sets): New arrays.
209         (symbol_set_table): New global variable.
210         (read_symbol_sets): Use search order given in the text_symbol_sets
211         and special_symbol_sets arrays.  If command line flag -a is not
212         given, search both arrays.
213         (output_charset): Require x_height_tag only for command line flag -i.
215 2004-01-06  Werner LEMBERG  <wl@gnu.org>
217         Implement string-valued registers \n[.m] and \n[.M] to return the
218         name of the current drawing and background color, respectively.
220         * src/roff/troff/symbol.h: Moved to...
221         * src/include/symbol.h: Here.
222         Small fixes to make it work outside of the `troff' directory.
223         * src/roff/troff/symbol.cpp: Moved to...
224         * src/libs/libgroff/symbol.cpp: Here.
225         Small fixes to make it work outside of the `troff' directory.
227         * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
228         (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
229         Updated.
231         * src/include/color.h: Include symbol.h.
232         (color): Add new field `nm'.
233         * src/libs/libgroff/color.cpp (color::color): Updated.
235         * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
236         src/roff/troff/node.cpp, src/roff/troff/number.cpp,
237         src/roff/troff/reg.cpp: Don't include symbol.h.
239         * src/roff/troff/env.cpp: Don't include symbol.h.
240         (environment::get_glyph_color_string,
241         environment_get_fill_color_string): New member functions.
242         (init_env_requests): Handle `.m' and `.M' registers.
243         * src/roff/troff/input.cpp: Don't include symbol.h.
244         (default_symbol): Moved to symbol.cpp/symbol.h.
245         (do_glyph_color, do_fill_color, define_color): Pass symbol name
246         to color constructor.
247         * src/roff/troff/env.h: Updated.
249         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
250         Document new registers.
252 2004-01-05  Werner LEMBERG  <wl@gnu.org>
254         * src/roff/troff/nroff.cpp (space_node::get_breakpoints,
255         space_node::nbreaks): Protect against zero `next' field.
257 2004-01-03  Jeff Conrad  <jeff_conrad@msn.com>
259         In hpftodit, use the symbol sets offered in the TFM.
261         * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
262         (symbol_set, text_symbol_sets, special_symbol_sets,
263         symbol_set_table): Removed.
264         (get_printcode): Removed.
265         (read_symbol_sets): Initialize `symbol_set' field with
266         `NO_SYMBOL_SET'.
267         Simplify code to just use the `kind' value.
268         (output_charset): Improve output formatting.
269         (dump_symbols): Simplified.
271 2004-01-02  Werner LEMBERG  <wl@gnu.org>
273         * font/devlj4/generate/text.map: Add more MSL numbers.
275 2004-01-02  Jeff Conrad  <jeff_conrad@msn.com>
277         * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
278         (text_symbol_sets): Add more symbol sets.
279         (debug_flag): New static variable (moved from `main').
280         (get_printcode, show_symset): New functions.
281         (main): Remove `debug_flag'.
282         (output_charset): Use `show_symset'.
283         (dump_symbols):  Use `show_symset'.
284         Print symsets for all glyphs.
285         (read_map): Actually call `unicode_to_ucode_make' but this time
286         correctly.
288 2004-01-01  Werner LEMBERG  <wl@gnu.org>
290         * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
291         Fix placement of comments.
293 2004-01-01  Jeff Conrad  <jeff_conrad@msn.com>
295         * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
296         option `-d' is given.
297         (output_charset): Improve warning messages to give more information.
298         (dump_symbols): Make information more precise.
299         (usage): Updated.
300         (read_map): Don't call unicode_to_ucode_name; the glyph names must
301         appear as-is and shouldn't be decomposed.
303 2003-12-31  Werner LEMBERG  <wl@gnu.org>
305         * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
306         * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
307         (FONTS): Add TrueType font families Arial and Times New Roman.
308         (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
309         * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
310         `fl'.
312 2003-12-31  Jeff Conrad  <jeff_conrad@msn.com>
314         * test-groff.in (SEP): Quote value.
315         * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
316         `tem' to `char*' to avoid deallocation of a pointer to a constant
317         object which some compilers don't like.
319 2003-12-31  Werner LEMBERG  <wl@gnu.org>
321         * font/devlj4/generate (text.map, special.map): Rewritten to work
322         with the new hpftodit version.
324 2003-12-30  Jeff Conrad  <jeff_conrad@msn.com>
326         * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
327         set and 8bit character code for all glyphs also.
329 2003-12-30  Werner LEMBERG  <wl@gnu.org>
331         * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
333 2003-12-29  Werner LEMBERG  <wl@gnu.org>
335         More fixes for MSVC compiler.
337         * doc/Makefile.sub, contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use
338         $(SEP).
340         * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
341         STDERR_FILENO) [_MSC_VER]: Define conditionally.
342         (getpid) [_MSC_VER]: Remove.
343         Include direct.h and process.h conditionally.
345         * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
346         parentheses for a_delete.
348         * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
350         * test-groff: Replaced with...
351         * test-groff.in: This new template to handle path separator
352         properly.
354         * configure.ac: Check for direct.h and process.h.
355         Generate test-groff script.
356         * configure, src/include/config.hin: Regenerated.
358 2003-12-28  Werner LEMBERG  <wl@gnu.org>
360         Add integral extension glyph.
361         Add new option `-x' to afmtodit to suppress use of built-in AGL.
363         * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
365         * font/devps/generate/textmap: Provide entry for `integralex' to
366         override (old) PUA value of the AGL.
367         * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
368         * font/devps/*: Regenerated.
370         * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
371         * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
373 2003-12-27  Werner LEMBERG  <wl@gnu.org>
375         Add forgotten `coproduct' symbol (already available for DVI).
377         * font/devhtml/R.proto, font/devps/generate/textmap,
378         font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
379         src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
380         U+2210 (\[coproduct]).
382 2003-12-26  Jeff Conrad  <jeff_conrad@msn.com>
384         hpftodit has been extended to handle TrueType metric files and
385         more glyphs.  See hpftodit.man for more details.
387         * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h, 
388         ctype.h, and unicode.h.
389         s/msl/charcode/ everywhere since we now handle Unicode values also.
390         (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
391         Use it where appropriate.
392         (MULTIPLIER): Replaced with...
393         (multiplier): New global static variable.
394         (scale): Updated.
395         (tag_type): Add more TFM tags.
396         (tag_name): New array.
397         (ENUM_TYPE, FLOAT_TYPE): Removed.
398         (BYTE_TYPE): New value assigned.
399         (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
400         (text_symbol_sets, special_symbol_sets): Extended to cover more
401         sets.
402         (check_type): Add return value.
403         (check_units): Add parameters to get ppi and upem values.
404         Handle TrueType TFM data.
405         (output_font_name): New function.
406         (output_charset): Add parameter to handle TFM type.
407         Handle TrueType TFMs also.
408         (em_fract): New macro.
409         (dump_tags): Be much more verbose and handle more tags.
410         (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
411         (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
412         functions.
413         (read_map): Add parameter to handle TFM type.
414         Handle both MSL and Unicode mappings.
415         (main): Add two new command line options `-a' and `-q'.
416         Updated to make use of new functions.
417         (usage): Updated.
419         * src/utils/hpftodit/hpuni.cpp: New file.
421         * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
422         Updated.
424 2003-12-25  Werner LEMBERG  <wl@gnu.org>
426         * src/include/nonposix.h (read) [_MSC_VER]: Define.
428 2003-12-24  Werner LEMBERG  <wl@gnu.org>
430         * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
431         by Michail Vidiassov <master@iaas.msu.ru>.
433 2003-12-20  Werner LEMBERG  <wl@gnu.org>
435         * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
436         and u0049_0307.
437         Add missing latin-2 glyphs.
438         * font/devutf8/R.proto: Add missing latin-2 glyphs.
440         * tmac/troffrc: Load `composite.tmac' earlier.
442         * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
443         u00{53,73}_0327, and u0049_0307.
444         * tmac/X.tmac: Add u00{47,67}_0306.
445         * tmac/tty-char.tmac: Use composite glyph names for readability.
447         * NEWS: Updated.
449         * src/include/unicode.h: Remove `extern' keywords.
451 2003-12-20  Nilgün Belma Bugüner  <nilgun@superonline.com>
453         * tmac/latin5.tmac: New file.
455 2003-12-19  Werner LEMBERG  <wl@gnu.org>
457         Add some glyphs needed for Turkish.
459         * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
460         and u0049_0307.
462         * tmac/composite.tmac: Add `,' as a synonym for `ac' accent. 
463         * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
464         u00{53,73}_0327, and u0049_0307.
466 2003-12-18  Werner LEMBERG  <wl@gnu.org>
468         * src/devices/grops/ps.cc (ps_output::put_float): Revert change
469         from 2001-10-04.
470         Remove trailing zeros.
472 2003-12-17  Werner LEMBERG  <wl@gnu.org>
474         Make \? transparent to end-of-sentence recognition.
476         * src/roff/troff/input.cc (non_interpreted_node): Add
477         `ends_sentence' member function.
479 2003-12-16  Werner LEMBERG  <wl@gnu.org>
481         * doc/groff.texinfo: Document `dt' request correctly.
482         Other minor typographical improvements.
484 2003-12-10  Michail Vidiassov  <master@iaas.msu.ru>
486         * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
488 2003-12-10  Richard Stallman  <rms@gnu.org>
490         * LICENSE: Better wording.
492 2003-12-09  Werner LEMBERG  <wl@gnu.org>
494         * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
495         * configure, NEWS: Updated.
497 2003-12-08  Werner LEMBERG  <wl@gnu.org>
499         * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
501 2003-12-07  Bernd Warken  <bwarken@mayn.de>
503         * LICENSE: Updated.
505 2003-12-07  Werner LEMBERG  <wl@gnu.org>
507         * INSTALL: Improved.
509 2003-12-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
511         Use path separator character of target platform for compiled-in
512         default paths.
514         * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
515         * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
516         * configure: Regenerated.
517         * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
519 2003-12-05  Werner LEMBERG  <wl@gnu.org>
521         * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
522         Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
524 2003-12-04  Bernd Warken  <bwarken@mayn.de>
526         * LICENSE: New file.
528 2003-12-03  Werner LEMBERG  <wl@gnu.org>
530         * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
531         ligatures present in AFM files since groff currently only
532         understands some standard ligatures and nothing else.
534 2003-12-03  Jeff Conrad  <jeff_conrad@msn.com>
536         * src/roff/groff/groff.cpp (main): Don't run the spooler if
537         option -v is given.
539         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
540         messages.
541         Close stdout copy.
542         Don't use Unix wait flags.
544 2003-12-02  Werner LEMBERG  <wl@gnu.org>
546         * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
547         src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
548         src/roff/troff/uniuni.cpp: Moved to...
549         * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
550         src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
551         src/libs/libgroff/uniuni.cpp: Here.
553         * src/include/Makefile.sub.old (HDRS),
554         src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
555         src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
557 2003-12-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
559         * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
560         `DEBUG_FILE'.
561         Updated all users.
563 2003-12-01  Werner LEMBERG  <wl@gnu.org>
565         * groff.texinfo: Document special behaviour of `.vs 0'.
566         Improve documentation of `cflags' request.
567         * NEWS: Updated.
569 2003-11-29  Werner LEMBERG  <wl@gnu.org>
571         * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
572         * font/devlj4/CORONET: Regenerated.
574 2003-11-24  Werner LEMBERG  <wl@gnu.org>
576         * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
577         if processing hyphenation patterns in traditional mode.
578         Improve error messages.
580 2003-11-20  Werner LEMBERG  <wl@gnu.org>
582         * src/roff/troff/node.cpp (troff_output_file::put_char_width,
583         troff_output_file::put_char): Fix type of local variable `c'.
585 2003-11-19  Werner LEMBERG  <wl@gnu.org>
587         * src/roff/groff/pipeline.c (P): Removed.  Updated all function
588         declarations.
589         (i_to_a): Removed.  libgroff already provides this function.
590         (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
592 2003-11-18  Keith Marshall  <keith.d.marshall@ntlworld.com>
594         * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
595         HAVE_DECL_SYS_LIST.
597 2003-11-17  Werner LEMBERG  <wl@gnu.org>
599         * COPYING: Use correct version.
601 2003-11-11  Werner LEMBERG  <wl@gnu.org>
603         LynxOS 4.0.0 doesn't declare vfprintf.
605         * configure.ac: Check for vfprintf.
606         * configure: Regenerated.
607         * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
608         * src/include/config.hin: Regenerated.
610 2003-11-10  Werner LEMBERG  <wl@gnu.org>
612         LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
614         * configure.ac: Check for vsnprintf.
615         * configure: Regenerated.
616         * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
617         `HAVE_VSNPRINTF'.
618         * src/include/config.hin: Regenerated.
620 2003-11-09  Werner LEMBERG  <wl@gnu.org>
622         * aclocal.m4: Updated syntax to autoconf 2.59.
623         (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
624         Don't check for gsos2.
625         (GROFF_SRCDIR, GROFF_BUILDDIR): Removed.  autoconf 2.59 provides
626         working abs_top_srcdir and abs_top_builddir.
628         * configure.ac: Updated syntax to autoconf 2.59.
629         Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
630         Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
631         * configure: Regenerated.
633         * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
634         s/@groff_top_builddir@/@abs_top_builddir@/.
636         * src/roff/groff/pipeline.c (xstrsignal):
637         s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
639 2003-11-07  Werner LEMBERG  <wl@gnu.org>
641         * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
642         make start angle smaller than end angle to circumvent a bug in tpic
643         handling of some versions of dvipdfm (and dvipdfmx).
645 2003-10-30  Werner LEMBERG  <wl@gnu.org>
647         * src/devices/grops/grops.man: Improve section on creating EPS.
649 2003-10-29  Werner LEMBERG  <wl@gnu.org>
651         * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
652         -P-pletter).
654 2003-10-28  Werner LEMBERG  <wl@gnu.org>
656         * doc/groff.texinfo: Fix documentation of `.if'.
658 2003-10-27  Michail Vidiassov  <master@iaas.msu.ru>
660         * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
661         the form `uniXXXX' also.
663 2003-10-27  Werner LEMBERG  <wl@gnu.org>
665         * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
666         contrib/pic2graph/pic2graph.sh: Implement secure management of
667         temporary files.
668         Pass `-P-pletter' to groff to avoid data outside of the converted
669         area -- some versions of `convert' (for example 5.3.8) don't check
670         the bounding box of the image but always use a fixed image size
671         (letter paper format).
672         * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
673         contrib/pic2graph/pic2graph.man: Updated.
675         * src/roff/groff/groff.man: Document $TMP and $TEMP.
677 2003-10-26  Werner LEMBERG  <wl@gnu.org>
679         * src/preproc/pic/troff.cpp (troff_output::simple_circle,
680         troff_output::simple_ellipse, troff_output::simple_arc,
681         troff_output::simple_line, troff_output::simple_spline,
682         troff_output::simple_polygon): Insert a space before arguments.
683         (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
684         latter doesn't produce a node, so the following `.sp -1' would do
685         the wrong thing.
686         Don't emit `.sp -1' after \M.  This also doesn't produce a token
687         (and we don't have to care about compatibility mode).
688         (troff_output::set_color, troff_output::reset_color): Don't emit
689         `.sp -1' after \M and \m.
691         * src/roff/troff/input.cpp (old_have_input): New global variable.
692         (input_stack::get): Handle `old_have_input'.
693         (process_input_stack) <token::TOKEN_NEWLINE>: Call
694         `trapping_blank_line' depending on `old_have_input', not
695         `have_input'.
697 2003-10-20  Keith Marshall  <keith.d.marshall@ntlworld.com>
699         * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
700         (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
701         default directory names for temporary files.
702         [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
704         * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
705         [__MSDOS__] (run_pipeline): Honour environment variables.
706         Don't use `tmpnam' but `tempnam' to work around messy
707         implementation.
709         * README.MinGW: New file.
711 2003-10-16  Werner LEMBERG  <wl@gnu.org>
713         * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
714         `(*t)->next' without testing validity of `*t'.
715         (usage): Make it more readable.
717 2003-10-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
719         Make html device run under both MS-DOS and Win32.
721         * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
722         MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
723         spawn or fork+exec has to be used, and whether parent must sleep
724         until the child process terminates.  Used in
725         `char_buffer::run_output_filter'.
726         (copyofstdoutfd): Removed.
727         (char_buffer): Replace `write_file_html' and `write_file_troff'
728         member functions with `emit_troff_output' and `run_output_filter'.
729         (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
730         macros.
731         (replaceFd): Replaced with...
732         (set_redirection): New auxiliary function.
733         (waitForChild): Replaced with...
734         (save_and_redirect): New auxiliary function for.
736         (char_buffer::do_html, char_buffer::do_image): Simplified, using new
737         functions.
739 2003-10-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
741         * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
742         (GROFF_LIBC): New function.
743         * configure.ac: Call GROFF_LIBC.
744         Check for `kill'.
745         * configure: Regenerated.
747         * src/include/lib.h: Handle __MINGW32__.
748         * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
749         Add macro for `pipe'.
750         Define P_tmpdir.
752         * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
753         correctly.
755         * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
756         Implement.
758 2003-10-13  Werner LEMBERG  <wl@gnu.org>
760         Finally fix change 2003-08-26, based on ideas from Chuck Silvers
761         <chuq@chuq.com>.
763         * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
764         directory.
766 2003-10-12  Werner LEMBERG  <wl@gnu.org>
768         * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
769         src/roff/troff/input.cc (usage): Updated.
771         * NEWS, doc/groff.texinfo: Updated.
773 2003-10-12  Peter Miller  <millerp@canb.auug.org.au>
775         * src/libs/libgroff/searchpath.cpp
776         (search_path::open_file_cautious): New function which also handles
777         `-' as stdin and stdout depending on the access mode.
778         * src/include/searchpath.h (search_path): Updated.
780         * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
781         * src/devices/grops/ps.h: Include `searchpath.h'.
782         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
783         Open resource file with `include_search_path.open_file_cautious'.
784         * src/devices/grops/grops.man: Document new `-I' switch.
786         * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
787         (main), src/devices/grolj4/lj4.cpp (main),
788         src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
790         * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
791         Replaced with...
792         (include_search_path): New global variable.
793         (include_path_append): Removed.
794         (main): Use `include_search_path.command_line_dir' to handle `-I'.
795         (do_file): Simplify, using new
796         `include_search_path.open_file_cautious'.
798         * src/roff/groff/groff.cpp (print_commands): Accept file handle as
799         parameter.
800         (main): Pass arguments to `-I' to both troff and devices.
801         Improve handling of `-V'.
802         * src/roff/groff/groff.man: Document changes to -I and -V.
804         * src/roff/troff/input.cpp (include_search_path): New global
805         variable.
806         (next_file, source, ps_bbox_request, transparent_file,
807         process_input_file): Use new
808         `include_search_path.open_file_cautious'.
809         (main) Handle `-I' switch.
810         * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
811         Use new `include_search_path.open_file_cautious'.
812         * src/roff/troff/node.h: New extern symbol `include_search_path'.
813         * src/roff/troff/troff.man: Document new `-I' switch.
815 2003-09-15  Ruslan Ermilov  <ru@FreeBSD.org>
817         Support multiple calls of .Lb in LIBRARY section.
819         * tmac/doc-common (doc-in-library-section): New register.
820         (doc-section-library): New string.
821         (Sh): Set `doc-in-library-section'.
822         (Rd): Updated.
823         * tmac/doc-syms (Lb): Insert breaks before and after arguments
824         if in LIBRARY section.
825         * tmac/doc.tmac (doc-save-global-vars): Updated.
826         * NEWS, tmac/groff_mdoc.man: Updated.
828 2003-09-14  Ruslan Ermilov  <ru@FreeBSD.org>
830         * tmac/doc-common (doc-default-operating-system): New variable.
831         (Os): Use it.
833 2003-09-08  Werner LEMBERG  <wl@gnu.org>
835         * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
837 2003-08-31  Werner LEMBERG  <wl@gnu.org>
839         * contrib/mom/Makefile.sub: Fix last change to make it really work.
840         * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
841         (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
842         $(DEVFILES) are not empty.
843         * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
845 2003-08-26  Chuck Silvers  <chuq@chuq.com>
847         * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
848         with parallel runs of `make'.
850 2003-08-23  Stephen Gildea  <gildea@stop.mail-abuse.org>
852         * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
853         insert SORT_SEP.  With certain combinations of sort specifications,
854         refer sorted entries in the wrong order.  In particular, entries
855         with a missing field should be be sorted before all entries that
856         have that field, before refer looks to the next field.
858 2003-08-23  Werner LEMBERG  <wl@gnu.org>
860         * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
861         g++ linker is used.  Reported by Mark J. Reed
862         <mark.reed@turner.com>.
864 2003-08-16  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
866         Add key character `x' to tbl which makes tbl call a user-defined
867         macro on a table cell.
869         * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
870         * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
871         `set_modifier' after printing the compatibility request.
872         (set_modifier): Print call to `m->macro' if not empty.
873         * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
874         `macro'.
875         (process_format): Implement cases `x' and `X'.
876         * src/preproc/tbl/tbl.man, NEWS: Updated.
878 2003-08-15  Werner LEMBERG  <wl@gnu.org>
880         * doc/groff.texinfo: Minor fixes.
882 2003-08-09  Werner LEMBERG  <wl@gnu.org>
884         * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
886 2003-08-07  Werner LEMBERG  <wl@gnu.org>
888         * doc/Makefile.sub: Not all shells expand wildcards in the `for'
889         argument list to nothing if there is no file to match.  Use `ls' as
890         a protection, similar to autoconf.
892         * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
893         empty argument lists.
895         * doc/groff.texinfo: Improve documentation how vertical spacing
896         and line breaks interact.
897         Other minor fixes.
899         * tmac/www.tmac: Initialize `www-htmlimage-gap'.
901 2003-08-03  Werner LEMBERG  <wl@gnu.org>
903         * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
904         EPS (using eps2eps or similar programs to compute the bounding box).
906 2003-07-24  Werner LEMBERG  <wl@gnu.org>
908         * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
909         * doc/texinfo.tex: Updated from texinfo 4.6.
910         * README.CVS: From now on we need texinfo 4.6.
912 2003-07-23  Werner LEMBERG  <wl@gnu.org>
914         Add requests `dei1' and `ami1' for completeness.
916         * src/roff/troff/input.cc (calling_mode): Remove
917         CALLING_DISABLE_COMP.
918         (comp_mode): New enumeration.
919         (do_define_string, define_string, define_nocomp_string,
920         append_string, append_nocomp_string): Updated.
921         (do_define_macro): Add third parameter.
922         (define_macro, define_nocomp_macro, define_indirect_macro,
923         append_macro, append_nocomp_macro, append_indirect_macro): Updated.
924         (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
925         functions.
926         (ignore): Updated.
927         (init_input_requests): Add `dei1' and `ami1'.
929         * tmac/trace.tmac: Handle de1 and am1.
930         (de): Improve tracing message.
931         (am): Add missing `do'.
932         (return): Use de1.
934         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
935         Document new requests.
937 2003-07-22  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
939         Add option -G to .MPIMG to insert a gap between text and the image.
941         * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
942         www-finish-left-ll): Updated.
943         (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
944         (MPIMG): Make option -L and -R optional.
945         Implement option -G.
947 2003-07-22  Gaius Mulley  <gaius@glam.ac.uk>
949         * src/devices/grohtml/post-html.cpp
950         (html_printer::do_file_components): Don't use `stdout' as lvalue
951         since it can be a macro.
953 2003-07-22  Werner LEMBERG  <wl@gnu.org>
955         * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
956         the corresponding test in aclocal.m4.
958 2003-07-21  Werner LEMBERG  <wl@gnu.org>
960         * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
961         names but RGB values directly.  Otherwise pnmtopng depends on
962         an external file `rgb.txt' which maps colour names to values.
964 2003-07-20  Werner LEMBERG  <wl@gnu.org>
966         * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
967         * configure, src/include/config.hin: Regenerated.
969         * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
971 2003-07-19  Werner LEMBERG  <wl@gnu.org>
973         * PROBLEMS: Add solution for UTF-8 problem with hyphens.
975 2003-07-18  Werner LEMBERG  <wl@gnu.org>
977         * *.man: Switch to non-compatibility mode temporarily if GNU
978         syntax extensions are used in the particular man page.
980         * PROBLEMS: Add solutions for SGR problems.
982 2003-07-17  Werner LEMBERG  <wl@gnu.org>
984         Don't ignore grotty's command line options if \X'tty: sgr ...' is
985         used to change the drawing scheme.
987         * src/devives/grotty/tty.cpp (bold_flag_option,
988         underline_flag_option, italic_flag_option, reverse_flag_option,
989         bold_underline_mode_option): New global variables.
990         (update_options): New function.
991         (tty_printer::special): Call update_options.
992         (main): Don't set xxx_flag but xxx_flag_option, then call
993         update_options.
995 2003-07-14  Werner LEMBERG  <wl@gnu.org>
997         Make grotty emit proper Unicode box drawing characters for -Tutf8.
999         * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
1000         values.
1001         (hline_char, vline_char): New global variables.
1002         (tty_printer::tty_printer): Initialize them.
1003         (tty_printer::draw): Emit START_LINE and END_LINE flags for both
1004         horizontal and vertical lines.
1005         (crossings): New global array.
1006         (tty_printer::end_page): Use it to determine the proper crossing
1007         character for -Tutf8.
1009 2003-07-12  Werner LEMBERG  <wl@gnu.org>
1011         * doc/Makefilesub (HTMLDOCFILESALL): New macro.
1012         (HTMLDOCFILES): Revert to `pic.html'.
1013         (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
1015 2003-07-11  Werner LEMBERG  <wl@gnu.org>
1017         * doc/pic.ms: Improve documentation of absolute coordinates.
1018         Document absolute positioning of pictures.
1020         * NEWS: Add new pic capability.
1022 2003-07-09  Hartmut Henkel  <hartmut_henkel@gmx.de>
1024         * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
1025         Rewritten.
1027 2003-07-07  Werner LEMBERG  <wl@gnu.org>
1029         Implement support for dashed and dotted ellipses in pic.  Based on
1030         a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
1032         * src/preproc/pic/common.cpp (common_output::ellipse_arc,
1033         common_output::dashed_ellipse, common_output::dotted_ellipse): New
1034         functions.  Ellipse arcs are approximated with circle arcs.
1035         * src/preproc/pic/common.h (common_output): Updated.
1036         * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
1037         functions.
1038         * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
1040         * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
1042 2003-07-06  Werner LEMBERG  <wl@gnu.org>
1044         Make grotty work on platforms which have unsigned char as the
1045         default for char.  Based on a patch by Thomas Klausner
1046         <wiz@netbsd.org>.
1048         * src/devices/grotty/tty.cpp (schar): New typedef.
1049         Updated calls to declare_ptable and implement_ptable.
1050         (glyph): Use schar for back_color_idx and fore_color_idx.
1051         (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
1052         (tty_printer::tty_color, tty_printer::tty_printer,
1053         tty_printer::color_to_idx, tty_printer::put_color): Updated.
1055 2003-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
1057         * src/roff/nroff/nroff.sh: Add option -d for completeness.
1058         * src/roff/nroff/nroff.man: Updated.
1060 2003-07-05  Werner LEMBERG  <wl@gnu.org>
1062         * NEWS, tmac/groff_www.man: Updated.
1063         * doc/Makefile.sub: Updated.
1065 2003-07-05  Gaius Mulley  <gaius@glam.ac.uk>
1067         Implement support for multiple HTML output files.
1069         * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
1070         -j command line option.
1072         * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
1073         global variables.
1074         (file): New fields `new_output_file', `require_links',
1075         `output_file_name'.
1076         (file::file): Updated.
1077         (files::set_file_name, files::set_links_required,
1078         files::are_links_required, files::is_new_output_file,
1079         files::file_name, files::next_file_name): New functions.
1080         (header_desc): New fields `no_of_level_one_headings',
1081         `header_filename'.
1082         (header_desc::header_desc): Updated.
1083         (header_desc::write_headings): Handle multiple files.
1084         (html_printer::write_header): Save file name in which header occurs.
1085         (html_printer::determine_header_level): Possibly split files on
1086         level one headings.
1087         (html_printer::do_links, html_printer::troff_tag): Updated.
1088         (html_printer::insert_split_file, html_printer::do_job_name,
1089         html_printer::emit_link, html_printer::write_navigation,
1090         html_printer::do_file_components): New functions.
1091         (html_printer::~html_printer): Handle multiple files.
1092         (main): Handle command line option `-j'.
1094         * src/devices/grohtml/grohtml.man: Updated.
1096         * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
1097         which splits file.
1099         * tmac/www.tmac (JOBNAME): New macro.
1100         * tmac/s.tmac (SH-NO-TAG): New macro.
1101         (@SH): Call SH-NO-TAG.
1102         (@NH): Updated.
1104 2003-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
1106         * tmac/groff_mdoc.man: Improve documentation of punctuation
1107         characters.
1109 2003-07-04  Ruslan Ermilov  <ru@FreeBSD.org>
1111         * tmac/doc.tmac (Bd): Change to doc-Li-font later.
1113 2003-07-03  Werner LEMBERG  <wl@gnu.org>
1115         * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
1117 2003-07-01  Ruslan Ermilov  <ru@FreeBSD.org>
1119         * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
1120         after `/*' and `*/'.
1121         Fix spacing.
1122         (Fn, Fo): Reduce indentation in synopsis.
1124         * tmac/doc-common (doc-check-depth): New macro.
1125         (doc-end-macro, Sh, Ss): Use it.
1126         (Cd): Fix behaviour in synopsis.
1127         (In): Make it parsed and callable.
1128         If not in the synopsis, represent the C header file enclosed in
1129         angle brackets.
1130         (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
1131         Use minus, not hyphen.
1133         * tmc/groff_mdoc.man: Updated.
1135 2003-07-01  Werner LEMBERG  <wl@gnu.org>
1137         Integrated grap2graph, contributed by Eric S. Raymond.
1139         * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
1140         New files.
1141         * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
1142         contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
1144 2003-07-01  Colin Watson  <cjwatson@debian.org>
1146         * src/xditview/*.c: Add prototypes, fix return types, add includes.
1147         Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
1149 2003-06-31  Ruslan Ermilov  <ru@FreeBSD.org>
1151         * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
1153 2003-06-31  Werner LEMBERG  <wl@gnu.org>
1155         * doc/Makefile.sub (CLEANADD): Remove all files created by
1156         running `make groff.{pdf,dvi}'.
1158         * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
1159         src/xditview also.
1161 2003-06-30  Werner LEMBERG  <wl@gnu.org>
1163         * Makefile.in (SHELL): Define as @SHELL@.
1164         (mkinstalldirs): Use $(SHELL).
1165         (MDEFINES): Add $(SHELL).
1166         * Makefile.comm (SHELL): Removed.
1168 2003-06-29  Werner LEMBERG  <wl@gnu.org>
1170         * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
1171         The X11 documentation files use them.
1172         * tmac/groff_ms.man, doc/groff.texinfo: Document them.
1174 2003-06-15  Robert Goulding  <goulding@Princeton.EDU>
1176         * tmac/e.tmac (@C): Handle .ad also.
1178 2003-06-12  Werner LEMBERG  <wl@gnu.org>
1180         * src/preproc/tbl/tbl.man: Document formatting of text blocks.
1182         * src/roff/troff/input.cc (token::next) <handle_escape_char>:
1183         Assign `n' even here.  It is possible to construct a node
1184         immediately following an escape character:
1186           .di xx
1187           \?\\\?a
1188           .br
1189           .di
1190           .xx
1192 2003-06-10  Werner LEMBERG  <wl@gnu.org>
1194         * README.WIN32: Removed.
1195         * MANIFEST: Updated.
1197 2003-06-07  Werner LEMBERG  <wl@gnu.org>
1199         * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
1201 2003-06-05  Werner LEMBERG  <wl@gnu.org>
1203         * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
1204         in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
1206 2003-06-03  Werner LEMBERG  <wl@gnu.org>
1208         * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
1209         is done by the calling function.
1211 2003-05-22  Ruslan Ermilov  <ru@FreeBSD.org>
1213         * tmac/X.tmac: Fix definition of `em'.
1215 2003-05-22  Werner LEMBERG  <wl@gnu.org>
1217         * src/roff/troff/input.cc (return_macro_request): Fix detection of
1218         argument.
1220 2003-05-18  Werner LEMBERG  <wl@gnu.org>
1222         * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
1223         to make items work which consist only of a tag.
1225 2003-05-17  Werner LEMBERG  <wl@gnu.org>
1227         * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
1228         aren't stretched in a tag (this can fail with unformatted boxes).
1229         Instead, insert a break and go back one line.
1231 2003-05-16  Werner LEMBERG  <wl@gnu.org>
1233         * src/roff/troff/input.cc (return_macro_request): If called with
1234         argument pop macro twice.  We need this to trace `return'.
1236         * tmac/trace.tmac: Handle `return'.
1237         Fix typos.
1239         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1240         Document.
1242 2003-05-15  Larry Kollar  <kollar@alltel.net>
1244         * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
1245         registers `FPS', `FVS', and `FPD'.
1247 2003-05-15  Werner LEMBERG  <wl@gnu.org>
1249         * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
1250         correctly.
1252 2003-05-03  Ruslan Ermilov  <ru@FreeBSD.org>
1254         * tmac/groff_mdoc.man: Slight improvements.
1256 2003-05-03  Werner LEMBERG  <wl@gnu.org>
1258         * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
1259         `doc-header-space' after header line if register `cR' is set.
1261 2003-05-02  Werner LEMBERG  <wl@gnu.org>
1263         * TODO: Updated.
1265 2003-05-01  Ruslan Ermilov  <ru@FreeBSD.org>
1267         * tmac/doc-common (Nd): Use \[em].
1269 2003-05-01  Werner LEMBERG  <wl@gnu.org>
1271         * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
1272         doc-footer-space): Initialize to 0.5i.
1273         (doc-setup-page-layout): Don't set doc-header-space and
1274         doc-footer-space.
1276 2003-04-30  Werner LEMBERG  <wl@gnu.org>
1278         * REVISION: Set to 1.
1280         * doc/pic.ms: Document possible problems with `figname'.
1282 2003-04-29  Werner LEMBERG  <wl@gnu.org>
1284 Version 1.19 released
1285 =====================
1287         * VERSION: Set to 1.19.
1288         * REVISION: Set to 0.
1289         * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
1291         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
1292         Define charset as `US-ASCII' in html output.
1294         * tmac/www.tmac (ULE): Add missing scaling indicator.
1296         * win32-diffs: Removed.
1298 2003-04-28  Werner LEMBERG  <wl@gnu.org>
1300         * doc/groff.texinfo: Document `dn' and `dl' registers if used with
1301         `.da' and `.boxa'.
1302         Document how to insert discardable whitespace with `.ss'.
1304 2003-04-27  Werner LEMBERG  <wl@gnu.org>
1306         * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
1307         work with plain TeX also.
1309         * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
1311 2003-04-25  Gaius Mulley  <gaius@glam.ac.uk>
1313         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
1314         Use a loose DTD.
1316 2003-04-24  Werner LEMBERG  <wl@gnu.org>
1318         * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
1319         vbox with positive height and zero depth if in TeX mode.
1321         * NEWS: Document glyph name changes for grodvi and grolj4.
1323 2003-04-23  Werner LEMBERG  <wl@gnu.org>
1325         * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
1326         * doc/pic.ms: Fixed.
1328 2003-04-21  Werner LEMBERG  <wl@gnu.org>
1330         HP-UX 10.20 has `snprintf' but it isn't declared.
1332         * configure.ac: Add declaration test for snprintf.
1333         * configure: Regenerated.
1334         * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
1335         * src/include/config.hin: Regenerated.
1337 2003-04-19  Werner LEMBERG  <wl@gnu.org>
1339         Add keyword `figname' to pic, specifying the name of the picture
1340         box in TeX mode.  Based on a patch from William J Poser
1341         <wjposer@unagi.cis.upenn.edu>.
1343         * src/preproc/pic/pic.y: New token `FIGNAME'.
1344         (macro_name): New rule of type <str>.
1345         (placeless_element): Handle `FIGNAME'.
1346         * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
1347         * src/preproc/pic/main.cpp (graphname): New global variable.
1348         (do_picture): Initialize `graphname'.
1349         * src/preproc/pic/pic.h: Updated.
1350         * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
1351         `graphname'.
1352         Simplify TeX code.
1353         (tex_output::text): Beautify output.
1354         * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
1355         `shaded' and `outlined' unconditionally.
1356         * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
1357         Minor improvements.
1359         * PROBLEMS, README.CVS: Mention that bison version 1.875b or
1360         greater is necessary.
1362 2003-04-17  Hartmut Henkel  <hartmut_henkel@gmx.de>
1364         Add option -r to soelim to avoid emission of `.lf' lines.
1365         Add option -t to produces TeX comment lines instead of `.lf' lines.
1367         * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
1368         and `tex_flag'.
1369         (usage): Updated.
1370         (main): Handle `-r' and `-t'.
1371         (set_location): Handle `raw_flag' and `tex_flag'.
1372         * src/preproc/soelim/soelim.man, NEWS: Updated.
1374 2003-04-17  Werner LEMBERG  <wl@gnu.org>
1376         * tmac/hyphenex.sh: Replaced with...
1377         * tmac/hyphenex.pl: This perl script to avoid sed compatibility
1378         nightmares.
1380         * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
1381         if --quiet is used for the configure script.
1382         * configure: Regenerated.
1384 2003-04-16  Werner LEMBERG  <wl@gnu.org>
1386         * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
1387         Add `const' to second argument.
1388         (html_printer::add_table_end): Add `const' to argument.
1389         * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
1390         `const' to arguments.
1391         * src/devices/grohtml/html-text.h: Updated.
1393         * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
1394         * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
1395         argument.
1397         * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
1398         cast for integer constant.
1400         * src/preproc/html/pre-html.cpp (image_device): Use `const'.
1401         (writeNbytes): Add `const' to first argument.
1402         (writeString): Add `const' to argument.
1403         (char_buffer::can_see): Add `const' to third argument.
1404         * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
1405         `const' to argument.
1406         * src/preproc/html/pushback.h: Updated.
1408         * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
1409         (include_path_append): Add `const' to argument.
1410         (do_file): Updated.
1412         * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
1413         for `value'.
1414         (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
1415         * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
1416         for `value'.
1417         (unicode_decompose_init::unicode_decompose_init): Updated.
1418         * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
1419         for `value'.
1420         (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
1421         * src/roff/troff/input.cc (process_startup_file): Add `const' to
1422         argument.
1424         * tmac/hyphenex.sh: Make script more portable by using a here
1425         document.
1427 2003-04-15  Werner LEMBERG  <wl@gnu.org>
1429         Renamed all `*.cc' files to `*.cpp'.
1430         Updated all configuration files, makefiles, and documentation.
1432 2003-04-14  Werner LEMBERG  <wl@gnu.org>
1434         * tmac/hyphenex.sh: Slight improvements.
1436 2003-04-13  Werner LEMBERG  <wl@gnu.org>
1438         * font/devascii/R.proto, font/devcp1037/R.proto,
1439         font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
1440         character slots with unnamed glyphs.
1442         * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
1443         (an-first): New global variable.
1444         (an-header): Emit vertical space between multiple man pages.
1446 2003-04-11  Werner LEMBERG  <wl@gnu.org>
1448         * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
1449         values.
1451 2003-04-10  Werner LEMBERG  <wl@gnu.org>
1453         * PROBLEMS: Revised.
1455 2003-04-10  Bernd Warken  <bwarken@mayn.de>
1457         * doc/webpage.ms: Improved.
1459 2003-04-09  Werner LEMBERG  <wl@gnu.org>
1461         Add register \n[.height] which returns the value of \H.
1462         Add register \n[.slant] which returns the value of \S.
1464         * src/roff/troff/env.cc (init_env_requests): Implement.
1465         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1466         Document.
1468 2003-04-08  Werner LEMBERG  <wl@gnu.org>
1470         * tmac/html.tmac: Move some of the data into html-end.tmac.
1471         Remove most of the character translations for eqn since html fonts
1472         now cover those characters.
1473         Load www.tmac.
1474         * tmac/html-end.tmac: New file.
1475         * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
1476         * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
1477         * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
1479 2003-04-07  Werner LEMBERG  <wl@gnu.org>
1481         * man/groff_out.man: Document negative values of `N' if -Thtml is
1482         used.
1484 2003-04-06  Werner LEMBERG  <wl@gnu.org>
1486         * Makefile.comm (depend.temp): Check location of YTABC.
1488 2003-04-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1490         * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
1491         binary path.
1492         (groff_bin_path): Rename to GROFF_BIN_PATH.
1493         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
1494         * doc/Makefile.in (TROFFBIN): New variable for troff
1495         binary path.
1496         (GROFFBIN): New variable for groff binary path.
1497         (groff_bin_path): Rename to GROFF_BIN_PATH.
1498         (TROFF): Use TROFFBIN.
1499         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
1500         * doc/Makefile.sub (GROFFBIN): New variable for groff
1501         binary path.
1502         (groff_bin_path): Rename to GROFF_BIN_PATH.
1503         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
1505         * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
1506         with INSTALL_SCRIPT.
1507         (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
1508         * Makefile.dev (all): Depend on DEVSCRIPTS.
1509         (install_dev): Likewise.
1510         * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
1511         scripts.
1512         * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
1513         (DEVGENSCRIPTS): New variable to hold generated scripts.
1515 2003-04-05  Werner LEMBERG  <wl@gnu.org>
1517         * src/libs/libdriver/input.cc (IntArray::operator[],
1518         IntArray::get_data): Remove meaningless `const' in return value.
1520         * README.CVS: New file.
1522 2003-04-04  Werner LEMBERG  <wl@gnu.org>
1524         Check for stdint.h in C++, not in C.
1526         * aclocal.m4 (GROFF_STDINT_H): New function,
1527         * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
1528         AC_CHECK_HEADERS.
1529         * configure, src/include/config.hin: Regenerated.
1530         * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
1533         Fix handling of &nbsp; in grohtml.  To do this, troff emits `N'
1534         with a negative value, representing the width of the unbreakable
1535         space (only for -Thtml).  grohtml then converts this back to
1536         &nbsp; and uses the value of N as its width.
1538         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
1539         unbreakable_space_node::tprint): Emit `N-<width>'.
1540         * src/include/printer.h (printer::set_numbered_char): Make it
1541         virtual.
1542         Make members `font_table' and `nfonts' protected instead of private.
1543         * src/devices/grohtml/post-html.cc
1544         (html_printer::set_numbered_char): New member function.
1547         * src/libs/libgroff/maxfilename.cc:
1548         s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
1550         * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
1551         emit word marker.
1553 2003-04-03  Sergey A. Osokin  <osa@freebsd.org.ru>
1555         * man/roff.man: Small fixes.
1557 2003-04-03  Werner LEMBERG  <wl@gnu.org>
1559         Make groff independent from locale's numeric settings.
1561         * configure.ac: Check for `setlocale'.
1562         * configure, src/include/config.hin: Regenerated.
1564         * src/include/lib.h: Handle HAVE_SETLOCALE.
1566         * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
1567         (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
1568         (main), src/preproc/pic/main.cc (main): Call `setlocale'.
1571         * doc/groff.texinfo: Change dir category to `Typesetting'.
1572         (Man font macros): Mention that there is no space between arguments
1573         of .BI and friends.
1575         * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
1576         (*printer::change_color, *printer::change_fill_color): Add missing
1577         `const'.
1579 2003-04-02  Werner LEMBERG  <wl@gnu.org>
1581         * src/devices/grohtml/html-table.cc (html_table::emit_col,
1582         html_table::is_gap): Compute table widths after converting border
1583         positions to avoid rounding errors.
1585 2003-04-01  Werner LEMBERG  <wl@gnu.org>
1587         * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
1588         `space_emitted' properly.
1590 2003-03-31  Werner LEMBERG  <wl@gnu.org>
1592         * src/devices/grohtml/html-table.cc: Fix column width calculation.
1593         (html_table::set_linelength): Don't add 1.
1594         (html_table::add_indent): Don't subtract 1.
1596         * tmac/html.tmac: Set default page offset to zero.
1598 2003-03-30  Werner LEMBERG  <wl@gnu.org>
1600         Make groff emit `&nbsp;' for `\ ' and `\~' if `-Thtml' is used.
1602         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
1603         unbreakable_space_node::tprint): New functions.
1604         (troff_output_file): Make space_char_hmotion_mode::tprint and
1605         unbreakable_space_node::tprint to friends.
1606         * src/roff/troff/node.h: Updated.
1608         * font/devhtml/R.proto: Add `&nbsp' at position 0xA0 (as defined
1609         in the HTML standard).
1611 2003-03-29  Werner LEMBERG  <wl@gnu.org>
1613         * src/roff/troff/env.cc (point_size): Fix emission of html tag.
1614         Otherwise, the following code
1616           .di xxx
1617           .ps 10
1618           a
1619           .br
1620           .di
1621           x\*[xxx]
1623         produces `x a' instead of `xa'.  This is a temporary fix, disabling
1624         font changes in diversions for -Thtml.
1626         * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
1627         `HTML-TAG'.
1628         (an-do-tag-html): Merge with ...
1629         (an-do-tag): This macro.
1630         Change code slightly to circumvent grohtml bug.
1631         * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
1633         * src/devices/grohtml/html-table.cc (html_table::emit_col,
1634         html_table::is_gap): Round `width' properly.
1636         * tmac/html.tmac: Provide some default layout parameters for
1637         grohtml.
1639         * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
1640         command.
1642 2003-03-28  Werner LEMBERG  <wl@gnu.org>
1644         src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
1646 2003-03-27  Werner LEMBERG  <wl@gnu.org>
1648         * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
1649         defined.
1651 2003-03-20  Werner LEMBERG  <wl@gnu.org>
1653         * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
1654         `.vs'.
1655         * doc/groff.texinfo: Updated.
1657 2003-03-19  Werner LEMBERG  <wl@gnu.org>
1659         * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
1660         TOKEN_END_TRAP>: Reset `have_input'.
1662 2003-03-18  Werner LEMBERG  <wl@gnu.org>
1664         * src/roff/groff/groff.man: Mention groff_trace man page.
1666 2003-03-16  Werner LEMBERG  <wl@gnu.org>
1668         * Makefile.in (LIBEXT): New variable to indicate the file extension
1669         of library files.  Computed heuristically from $(OBJEXT).
1670         (MDEFINES): Add $(LIBEXT).
1671         * Makefile.lib, Makefile.comm: Use it.
1673         * src/utils/pfbtops/pfbtops.c (get_text): New function.  Split
1674         overlong lines into smaller chunks.
1675         (get_binary): New function.
1676         (main): Use them.
1677         * src/utils/pfbtops/pfbtops.man: Updated.
1679 2003-03-15  Colin Watson  <cjwatson@debian.org>
1681         * src/roff/groff/groff.man: Minor syntax fix.
1683 2003-03-14  Egil Kvaleberg  <egil@kvaleberg.no>
1685         * src/devices/grops/ps.cc (ps_printer::media_set,
1686         ps_printer::~ps_printer): Handle zero paper width and length.
1688 2003-03-13  Werner LEMBERG  <wl@gnu.org>
1690         Add options -p and -l to grodvi.
1692         * src/devices/grodvi/dvi.cc: Include paper.h.
1693         (landscape_flag, user_paper_length, user_paper_width): New global
1694         variables.
1695         (dvi_printer::begin_page): Emit `papersize' special.
1696         Set color after initialization of `cur_h' and `cur_v'.
1697         (main): Add options `-l' and `-p'.
1698         * font/devdvi/Makefile.sub (DESC): Set `papersize'.
1699         * src/devices/grodvi/grodvi.man, NEWS: Updated.
1701         * src/devices/grops/psrm.cc (valid_input_table): Fixed.
1703 2003-03-12  Werner LEMBERG  <wl@gnu.org>
1705         * src/devices/grops/grops.man: Move documentation of .PSPIC to...
1706         * man/groff_tmac.man: This man page.
1707         * man/groff_font.man: Declare `paperwidth' and `paperlength' as
1708         deprecated.
1710         * tmac/X.tmac: Don't load pspic.tmac.
1712 2003-03-11  Werner LEMBERG  <wl@gnu.org>
1714         Make variable `pr' local to libdriver/input.cc.  Based on a patch
1715         by Bernd Warken <bwarken@mayn.de>.
1717         * src/include/driver.h (pr): Removed.
1719         * src/libs/libdriver/input.cc (pr): New global variable.
1720         (do_file): Deallocate `pr'.
1721         * src/libs/libdriver/printer.cc (pr): Removed.
1723         * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
1724         (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
1725         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
1726         (main): Don't delete `pr'.
1728 2003-03-10  Werner LEMBERG  <wl@gnu.org>
1730         * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
1731         * tmac/papersize.tmac: New file.
1732         * tmac/troffrc: Include `papersize.tmac'.
1733         * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
1734         * tmac/an-old.tmac: Set LT to LL by default.
1736         * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
1737         doc/groff.texinfo: Updated.
1739         * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
1740         bug which caused all odd iso papers to have wrong dimensions.
1742         * src/devices/grops/ps.cc (user_paper_width): New global variable.
1743         (main) <'p'>: Set `user_paper_width' also.
1744         (ps_printer::media_width, ps_printer::media_height): Use values
1745         given with option `-p'.
1747 2003-03-09  Werner LEMBERG  <wl@gnu.org>
1749         * src/include/nonposix.h: Provide default for SET_BINARY.
1751         * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
1752         src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
1753         unconditionally.
1755         * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
1756         (main): Treat \r\n as \n.
1758 2003-03-08  Werner LEMBERG  <wl@gnu.org>
1760         * tmac/an-old.tmac: Use register `HY' to control hyphenation.
1761         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
1763 2003-03-07  Werner LEMBERG  <wl@gnu.org>
1765         Added support to access more than 256 glyphs in Type 1 fonts.
1767         * src/devices/grops/ps.cc (subencoding): New structure.
1768         (style): Add `sub' field.
1769         Updated all users.
1770         (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
1771         Add `set_subencoding', `get_subfont' and `encode_subfont' member
1772         functions.
1773         Updated all users.
1774         (ps_printer::set_char): Use `set_subencoding'.
1775         (make_subencoding_name): New function.
1776         (ps_printer::set_style): Handle case where `sty.sub' is not zero.
1777         (ps_printer::~ps_printer): Emit subencoding definitions.
1779         * src/devices/grops/psrm.cc (valid_input_table): New array to
1780         properly support EBCDIC.
1781         (white_space): Add `\f'.
1782         (ps_get_line): Change first argument to be of type `string &'.
1783         Updated all callers.
1784         This allows to get lines of arbitrary length.
1785         Use `valid_input_table'.
1786         Remove warning about non-conforming PS line length.  This seems
1787         not to be of great importance -- for example, dvips don't emit
1788         a warning either.
1789         (PS_LINE_MAX): Removed.
1790         (matches_comment): Change first argument to be of type `string &'.
1792         * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
1794         * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
1795         %AGL_to_unicode, %default_ligatures): New hash tables.
1796         Read all map entries.
1797         Add unencoded characters.
1798         Check for default ligatures if there are no `L' entries.
1799         Print all kern entries.
1800         Print all characters in charset.
1801         * src/utils/afmtodit/afmtodit.man: Updated.
1803         * font/devps/*: Regerated all fonts.
1805         * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
1806         of characters, just use `.trin'.  Otherwise the mapping depends
1807         on the font encoding.
1808         * tmac/ps.tmac: Add `fi' and `fl'.
1809         Improve `Fi' and `Fl'.
1810         * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
1811         * tmac/Xps.tmac: Fix `em'.
1813         * NEWS: Updated.
1815 2003-03-04  Werner LEMBERG  <wl@gnu.org>
1817         * src/roff/troff/input.cc (charinfo_to_node_list): Reset
1818         `have_input'.
1820 2003-03-03  Werner LEMBERG  <wl@gnu.org>
1822         * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
1824         * font/devps/generate/textmap: Remove entry `similarequal'.
1825         * font/devps/symbolmap: Updated.
1827 2003-03-02  Werner LEMBERG  <wl@gnu.org>
1829         * src/libs/libgroff/font.cc (font::load): Fix error message for
1830         bad character type.
1832         * src/devices/grops/grops.man: Improve documentation of the -b
1833         flag.
1835         * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
1836         `ascii' and `cp1047'.
1838 2003-03-01  Werner LEMBERG  <wl@gnu.org>
1840         Document composite glyphs and the `composite' request.
1842         * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
1844 2003-02-28  Werner LEMBERG  <wl@gnu.org>
1846         * font/devdvi/generate/ec.map: Add some more Unicode entities.
1847         * font/devdvi/*EC: Updated.
1849         * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
1850         * tmac/latin1 (latin1-tr): Undo any previous mapping.
1851         * tmac/troffrc: Load `composite.tmac'.
1852         * tmac/Makefile.sub (NORMALFILES): Updated.
1854         * doc/groff.texinfo (Input Encodings): New section.
1855         * NEWS: Updated.
1857 2003-02-27  Werner LEMBERG  <wl@gnu.org>
1859         * doc/texinfo.tex: New version 2003-02-11.06.
1861         * tmac/doc-common (Dt): Don't emit warning for unknown section.
1862         * tmac/groff_mdoc.man: Fix description of `Dt'.
1864 2003-02-26  Egil Kvaleberg  <egil@kvaleberg.no>
1866         * font/devps/prologue.ps: Fix for included Postscript that does
1867         a setpagedevice -- which is now safely ignored.
1869         * NEWS: Updated.
1871         * src/devices/grops/ps.cc: Now sets the page size in the generated
1872         document.  This is done in two ways: Via a %%-comment for gv and
1873         the like, and via a PageSize and setpagedevice for programs that
1874         understands Postscript proper, like ps2pdf.
1876         * src/devices/grops/ps.h: New broken-flag to avoid page size
1877         definition, if required.
1879         * src/devices/grops/grops.man: New broken-flag 16 mentioned.
1881         * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
1882         Not really necessary due to the fix in prologue.ps, but cleaner:
1883         Such information does not belong in an .eps file.
1885         * doc/Makefile.sub: See doc/Makefile.in.
1887 2003-02-26  Ralph Corderoy  <ralph@inputplus.co.uk>
1889         * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
1890         instead of P1 since the latter is broken in some versions of netpbm.
1891         * configure: Updated.
1893 2003-02-26  Larry Kollar  <kollar@alltel.net>
1895         Make man pages more customizable.
1897         * tmac/an-old.tmac (FT): New register holding footer distance from
1898         bottom.
1899         (HF): New string holding the default heading font.
1900         (TH): Handle registers `IN' and `SN' set on the command line.
1901         Use `FT'.
1902         (PT, BT): New strings to customize header and footer lines.
1903         (an-header, an-footer): Use them.
1904         (SH, SS): Use `HF'.
1905         * tmac/groff_man.man: Document changes.
1907         * doc/groff.texinfo: Document man changes.
1908         Document Ultrix extensions of man.
1910 2003-02-26  Werner LEMBERG  <wl@gnu.org>
1912         * src/roff/troff/input.cc (do_width, do_if_request): Reset
1913         `have_input' after changing back to old environment.
1915         * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
1916         function up to be defined before first call.  This is necessary to
1917         avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
1919         * src/utils/afmtodit/afmtodit.pl: Make script search for files in
1920         the default font directory also.  Based on a patch from James
1921         J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
1922         * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
1923         * src/utils/afmtodit/afmtodit.man: Document it.
1925         * NEWS: Updated.
1927         * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
1929 2003-02-25  Gaius Mulley  <gaius@glam.ac.uk>
1931         * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
1932         (GROFF_PNMTOPS_NOSETPAGE): New macro.
1933         * configure.ac: Use it.
1934         * configure: Regenerated.
1935         * Makefile.in: Updated.
1937         * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
1938         (CLEANADD): Add www.tmac-sed.
1939         (pnmtops_nosetpage): Define default.
1940         (install_data): Handle www.tmac-sed and substitute
1941         @PNMTOPS_NOSETPAGE@.
1942         (stamp-sed): Add www.tmac.
1943         * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
1944         It now breaks URLs at suitable places.
1945         (www:substring_ok): New register set by...
1946         (www:@test_substring): New macro.
1947         (www:error): New alias to www-error.
1948         (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
1949         New macros.
1950         (URL): Use www:url_breaks.
1951         (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
1952         (CDS, CDE): New macros.
1954 2003-02-25  Werner LEMBERG  <wl@gnu.org>
1956         * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
1957         buffer overflow.
1959 2003-02-24  Werner LEMBERG  <wl@gnu.org>
1961         Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
1962         can be negative also.
1964         * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
1965         `int16'.
1966         (read_char_table): Avoid negative ascenders.
1967         (output_charset): Add cast.
1968         * font/devlj4/*: Regenerated.
1970         Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
1971         possible.
1973         * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
1974         * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
1975         of `<>'.
1976         * font/devdvi/*: Regenerated.
1978         Map `la' and `ra' to U+27E8 and U+27E9.  These two characters have
1979         normal width, while the previously used characters (U+2329 and
1980         U+232A) are classified as wide due to canonical equivalence with the
1981         CJK punctuation characters U+3008 and U+3009.
1983         * font/devutf8/R.proto: Updated.
1984         * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
1986         * man/groff_char.man: Simplify handling of table traps by
1987         introducing `start block' and `end block' macros.
1988         (Ns, Ne, 2s, 2e, Ds, De): New macros.
1989         (DL): Make it work with Unix troff also.
1990         Fix code values of `la' and `ra'.
1992         * tmac/dvi.tmac: Define `<>' for CW and CWI.
1994 2003-02-23  Gaius Mulley  <gaius@glam.ac.uk>
1996         * src/devices/grohtml/post-html.cc (element_list::~element_list):
1997         New destructor, fixing a major memory leak.
1999 2003-02-22  Werner LEMBERG  <wl@gnu.org>
2001         * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
2002         to be in conformance with Unicode 3.0 and newer.
2004         * font/devlj4/generate/text.map: Add `Eu'.
2005         * font/devlj4/generate/special.map: Flip `*e' and `+e'.
2006         * font/devlj4/S: Regenerated.
2008         * man/groff_char.man: Completely rewritten.
2010         * doc/groff.texinfo: Fix description of request and macro arguments.
2012 2003-02-20  Gaius Mulley  <gaius@glam.ac.uk>
2014         Valgrind fixes.
2016         * src/devices/grohtml/html-table.cc (html_table::~html_table):
2017         Deallocate `columns' list.
2018         * src/devices/grohtml/post-html.cc (char_block::~char_block):
2019         New destructor.
2020         (text_glob::text_glob_html, text_glob::text_glob_special,
2021         text_glob::text_glob_line, text_glob::text_glob_auto_image,
2022         text_glob::text_glob_tag): Avoid memory leaks.
2023         (text_glob::remember_table): Free memory before reassigning.
2025 2003-02-19  Werner LEMBERG  <wl@gnu.org>
2027         Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
2028         alias `hbar'), the Planck constant over two pi.
2030         * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
2031         `+e' for position 34.
2032         * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
2033         `u2662' and `u2661'.
2034         * font/devdvi/{MI,S}: Regenerated.
2035         * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
2036         * font/devlbp/*: Add `hbar' alias.
2037         * font/devlj4/generate/special.map: Ditto.
2038         * font/devlj4/S: Regenerated.
2039         * font/devps/generate/symbolchars: Add `+e'.
2040         * font/devps/generate/textmap: Fix PS name for `-h'.
2041         Add `hbar' alias.
2042         * font/devps/symbolmap: Regenerated.
2044         * src/devices/grops/ps.cc (transform_fill): Removed since unused.
2046         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
2047         `-h', `hbar'.
2048         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
2049         `-h'.
2051         * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
2052         `hbar'.
2053         * tmac/tty-char.tmac: Add `+e'.
2055 2003-02-17  Werner LEMBERG  <wl@gnu.org>
2057         Another round trying to really fix problems with `have_input'.
2059         * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
2060         (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
2062         * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
2063         handling if both foreground and background colors are default.
2065         * doc/groff.texinfo (Debugging): Document .lf differences to
2066         AT&T troff.
2068 2003-02-16  Werner LEMBERG  <wl@gnu.org>
2070         * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
2071         null-bytes in created string.
2073         * src/roff/troff/input.cc (lookup_color, interpolate_macro,
2074         alias_macro, lookup_request): Improve warning messages.
2076         * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
2077         not `strdup'.
2078         Free `last_image_filename'.
2080         * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
2081         `buffer'.
2082         (imageList::createPage, imageList::createImage): Use `free', not
2083         `a_delete'.
2084         (imageItem::~imageItem): Free `imageName'.
2085         (addRegDef): Use `strsave', not `strdup'.
2086         (get_resolution): Free `pathp'.
2088 2003-02-15  Werner LEMBERG  <wl@gnu.org>
2090         * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
2091         to `dummy'.
2093 2003-02-14  Werner LEMBERG  <wl@gnu.org>
2095         Add memory management for colors to deallocate unnamed colors
2096         properly.
2098         * src/include/color.h (color): New members `free_list' and `next'.
2099         New member functions `new' and `delete'.
2100         Add destructor.
2101         * src/libs/libgroff/color.cc: Implement it.
2103         * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
2104         for array size of new operator.
2106         * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
2107         redundant comparison.
2109         * src/roff/troff/input.cc (word_space_node::reread,
2110         hmotion_node::reread): Avoid warning about unused parameter.
2111         (reset_output_registers): Remove redundant parameter.
2112         (define_color): Undo change 2003-02-12.
2114         * src/roff/troff/reg.h: Updated.
2116         * src/roff/troff/node.cc (troff_output_file::really_print_line,
2117         output_file::put_filename, real_output_file::really_put_filename,
2118         ascii_output_file::really_print_line,
2119         break_char_node::get_hyphen_list): Avoid warning about unused
2120         parameter.
2121         (suppress_node::tprint): Updated.
2123         * configure.ac: Check declaration for rand() and srand().
2124         * configure: Regenerated.
2126         * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
2127         conditionally.
2128         * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
2129         and srand().
2131         * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
2132         to avoid compiler warnings.
2134         * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
2135         unused.
2137         * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
2138         is unused.
2139         * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
2140         (unused) parameter.
2141         Updated all callers.
2143         * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
2144         is unused.
2145         * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
2146         * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
2148         * src/devices/grohtml/post-html.cc (html_printer::emit_line):
2149         Parameter is unused.
2150         (html_printer::add_table_end): Define parameter conditionally.
2151         * src/devices/grohtml/output.cc (simple_output::special): Parameter
2152         is unused.
2154         * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
2155         (lbp_printer::set_char): Last parameter is unused.
2157         * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
2159 2003-02-13  Werner LEMBERG  <wl@gnu.org>
2161         New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
2162         Make \D'f ...' move horizontally again for backwards compatibility.
2163         Replace it with \D'Fg ...' where appropriate to avoid dependency
2164         on horizontal resolution.
2166         * src/roff/troff/input.cc (do_get_long_name): New function.
2167         (get_long_name): Call it.
2169         (read_draw_node): Handle `\D'Fx ...' by calling ...
2170         (read_color_draw_node): New function.
2172         (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
2173         `end'.
2174         Pass it to `do_get_long_name' which is used instead of
2175         `get_long_name'.
2177         * src/libs/libdriver/input.cc (color_from_Df_command): Remove
2178         unnecessary value guard.
2179         (parse_D_command) <'f'>: Add horizontal shift.
2181         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
2182         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
2183         (FILL_MAX): Removed.
2185         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2186         Updated.
2188 2003-02-12  Werner LEMBERG  <wl@gnu.org>
2190         * src/roff/troff/input.cc (do_name_test, do_expr_test,
2191         do_zero_width): Push `\n' if closing delimiter is missing.
2193         (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
2194         <'F'>: Make \F non-transparent at the beginning of line.
2195         (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
2196         token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
2197         `have_input'.
2199         (define_color): Free color in case of reassignment.
2201         * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
2202         @DefescListEnd): Use @Var, not @var.
2203         Fix all calls.
2205         * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
2207         * src/preproc/pic/object.cc (object_spec::~object_spec): Free
2208         `shaded' and `outlined' arrays.
2209         (object_spec::object_spec): Initialize `shaded' and `outlined'.
2210         (graphic_object::set_fill_color, graphic_object::set_outline_color):
2211         Use strsave.
2212         (closed_object::set_fill_color): Ditto.
2213         * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
2214         instead of strdup.
2215         (troff_output::reset_color): Use a_delete instead of free.
2216         * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
2218 2003-02-11  Werner LEMBERG  <wl@gnu.org>
2220         * doc/groff.texinfo: Improve documentation of `ad'.
2221         Document that \D'f...' is dependent on the horizontal resolution.
2222         * man/groff_diff.man: Improve documentation of \D'f...'.
2224         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
2225         compensating \h'...' for \D'f ...' since the latter no longer moves
2226         current position.
2227         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
2229 2003-02-10  Werner LEMBERG  <wl@gnu.org>
2231         Improve error messages for `x F' (and `F') commands.
2233         * src/include/error.h: Add declaration for
2234         `current_source_filename'.
2235         * src/libs/libgroff/filename.cc: Add `current_source_filename'.
2236         * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
2237         parameter for source file string.
2238         Updated all callers.
2240         * src/libs/libdriver/input.cc: Add `current_source_filename'.
2241         (remember_source_filename): New function.
2242         (parse_x_command <'F'>, do_file <'F'>): Use it.
2244 2003-02-09  Werner LEMBERG  <wl@gnu.org>
2246         Make grotty not emit warnings about unknown colors more than
2247         necessary.
2249         * src/devices/grotty/tty.cc: Include `ptable.h'.
2250         (TTY_MAX_COLORS): Removed.
2251         (DEFAULT_COLOR_IDX): Defined to -1.
2252         (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
2253         (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
2254         Change `tty_colors' to be a ptable.
2255         First arg of `put_color' is now `char'.
2256         New functions `make_rgb_string' and `tty_color'.
2257         (tty_printer::tty_printer): Use `tty_color'.
2258         (tty_printer::color_to_idx): Return value is now `char'.
2259         Use `tty_color'.
2261         * src/include/color.h (color): Add `print_color' member function.
2262         * src/libs/libgroff/color.cc (color::print_color): Implement it.
2264 2003-02-08  Werner LEMBERG  <wl@gnu.org>
2266         Valgrind fixes.
2268         * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
2269         encoding file.
2271         * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
2272         assume that value has been allocated with `new[]', thus use
2273         `a_delete' for deallocation.
2275         * src/libs/libdriver/input.cc (get_integer_arg,
2276         get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
2277         where appropriate.
2279         * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
2280         * src/libs/libgroff/nametoindex.cc
2281         (character_indexer::named_char_index): Use `new <type>[1]'.
2283         * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
2284         <type>[1]'.
2285         * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
2286         (split_text): Use `a_delete'.
2288         * src/preproc/pic/pic.y (define_label, define_variable): Use `new
2289         <type>[1]'.
2291         * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
2292         harmless memory leak.
2293         (hyphen_trie::read_patterns_file): Initialize `buf'.
2294         * src/roff/troff/node.cc (troff_output_file::troff_output_file):
2295         Initialize `current_fill_color'and `current_glyph_color'.
2296         * src/roff/troff/glyphuni.cc
2297         (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
2298         * src/roff/troff/uniuni.cc
2299         (unicode_decompose_init::unicode_decompose_init): Ditto.
2300         * src/roff/troff/uniglyph.cc
2301         (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
2303 2003-01-26  Werner LEMBERG  <wl@gnu.org>
2305         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
2306         `access' before calling `unlink'.
2307         (do_file): Handle __EMX__.
2309         * src/include/nonposix.h: Handle __EMX__.
2311         * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
2312         (fontpath,tmacpath): Use it.
2313         (MDEFINES): Add it.
2314         Sorted alphabetically.
2316         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
2317         @SEP@.
2318         * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
2319         @SEP@.
2321 2003-01-27  Werner LEMBERG  <wl@gnu.org>
2323         * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
2324         New files, copied from gnulib.
2325         * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
2326         * configure.ac: Updated.
2327         * configure: Regenerated.
2329         * src/include/config.hin: Regenerated.
2330         * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
2331         Don't define `strcasecmp' as `strcmp'.
2332         [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
2333         Dont define `strncasecmp' as `strncmp'.
2335         * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
2336         Removed.
2338 2003-01-26  Werner LEMBERG  <wl@gnu.org>
2340         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
2341         s/unline/unlink/.
2343 2003-01-25  Werner LEMBERG  <wl@gnu.org>
2345         * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
2347 2003-01-24  Werner LEMBERG  <wl@gnu.org>
2349         Add US-english hyphenation exceptions (converted from Barbara
2350         Beeton's hyphenation exception log reports which appear irregularly
2351         in TUGBoat).
2353         * tmac/hyphen.us: Updated to latest version.
2354         * tmac/README: Updated.
2355         * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
2356         * tmac/troffrc: Load `hyphenex.us'.
2357         * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
2358         * doc/groff.texinfo: Updated.
2360 2003-01-23  Werner LEMBERG  <wl@gnu.org>
2362         Improve hyphenation slightly.  This is a first step in redesigning
2363         the hyphenation algorithm to make it more flexible (e.g. allowing
2364         kerns and ligatures between the hyphenation character and the
2365         following character -- while not used normally in English, other
2366         languages like German would benefit).
2368         * src/roff/troff/env.cc (environment::hyphenate_line): Use
2369         assertion instead of if-clause.
2370         Let `get_hyphen_list' return the number of involved characters in
2371         the hyphenation pattern instead of computing it directly (which
2372         often yields too small values).
2373         * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
2374         * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
2375         parameter.
2377 2003-01-22  Werner LEMBERG  <wl@gnu.org>
2379         Fixing a bug which caused groff to hang if the hyphenation exception
2380         dictionary tried to grow.
2382         * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
2383         hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
2384         pointer to dictionary.
2386 2003-01-20  Werner LEMBERG  <wl@gnu.org>
2388         * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
2389         negative left italic correction.
2390         * src/utils/afmtodit/afmtodit.man: Document it.
2392         * font/devps/generate/Makefile (RFLAG): Add `-m'.
2393         * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
2394         S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
2396         * NEWS: Updated.
2398 2003-01-16  Werner LEMBERG  <wl@gnu.org>
2400         * NEWS: Updated.
2402 2003-01-16  Jörgen Grahn  <jgrahn@algonet.se>
2404         * src/preproc/refer/refer.man: Mention REFER environment variable.
2406 2003-01-05  Werner LEMBERG  <wl@gnu.org>
2408         Similar to \[is], the square root glyph (\[sr]) and the square root
2409         extension glyph (\[radicalex]) are now text symbols.  The new
2410         mathematical versions are called \[sqrt] and \[sqrtex],
2411         respectively.
2413         * font/devX*/S: Regenerated.
2414         * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
2415         * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
2416         * font/devdvi/EX, font/devdvi/S: Regenerated.
2417         * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
2418         * font/devlj4/generate/special.map: Add `sqrt'.
2419         * font/devlj4/S: Regenerated.
2420         * font/devps/generate/textmap: Add `sqrt'.
2421         * font/devps/S, font/devps/symbolmap: Regenerated.
2423         * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
2424         SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
2425         * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
2426         overlap horizontally.
2428         * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
2429         * tmac/dvi.tmac: Add `sr', and `sqrtex'.
2430         Fix `radicalex'.
2432         * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
2433         and `sqrtex' are overlapping glyphs.
2435 2003-01-04  Werner LEMBERG  <wl@gnu.org>
2437         * font/devdvi/generate/texsy.map: Add `is'.
2438         * font/devps/symbolmap: Regenerated.
2439         * font/devdvi/*TC, MI, S: Regenerated.
2441         * tmac/dvi.tmac: Remove `is'.
2443 2003-01-03  Werner LEMBERG  <wl@gnu.org>
2445         `is' is now a text symbol (only relevant for dvi).  The math variant
2446         can be accessed with `integral'.
2448         * font/devX*/S: Regenerated.
2449         * font/devdvi/generate/texex.map: Remove `is'.
2450         * font/devdvi/EX: Updated.
2451         * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
2452         * font/devlj4/generate/special.map: Ditto.
2453         * font/devlj4/S: Regenerated.
2454         * font/devps/generate/textmap: Add `integral'.
2455         * font/devps/S: Regenerated.
2457         * tmac/dvi.tmac: Define `is'.
2459         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
2461         * src/preproc/tbl/main.cc (process_format): Fix error message.
2463 2003-01-02  Werner LEMBERG  <wl@gnu.org>
2465         * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
2466         * font/devps/textmap: Fix entries for `ne' and `nc'.
2467         * font/devps/symbolmap: Regenerated.
2469         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
2470         src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
2471         `38', `58', `78', `-+', `|=', `nc', `ne'.
2473         * tmac/dvi.tmac: Add `nm', `ne', `nc'.
2474         Use `schar' for `aq'.
2475         * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
2476         * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
2477         * tmac/tty.tmac: Add `ne'.
2479         * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
2480         for fallback glyphs.
2482 2002-12-29  Werner LEMBERG  <wl@gnu.org>
2484         Add glyph `|='.
2486         * font/devX*/*: Regenerated.
2487         * font/devdvi/generate/ec.map: Remove `eq'.
2488         * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
2489         Assign `|=' to position 39.
2490         * font/devdvi/*EC, S: Regenerated.
2491         * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
2492         * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
2493         Assign `|=' to position 549.
2494         * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
2495         `equalmath'.
2496         Add `uni2243' for `|='.
2498         * tmac/ec.tmac: Add `eq'.
2499         * tmac/dvi.tmac: Add `=~'.
2500         * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
2501         `|='.
2503 2002-12-21  Werner LEMBERG  <wl@gnu.org>
2505         * font/devdvi/generate/tc.map: Remove `**'.
2506         * font/devdvi/*TC: Regenerated.
2507         * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
2508         `78', `<<', `>>'.
2509         * font/devutf8/NOTES: Updated.
2511         * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
2512         Don't give default parameter to `set_macro'.
2513         * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
2514         instead of `set_macro'.
2515         (charinfo::setx_macro): Implement it.
2516         (charinfo::set_macro): Don't change `mode'.
2518         * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
2519         * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
2520         * tmac/dvi.tmac: Define `!=' with `.schar'.
2522 2002-12-20  Werner LEMBERG  <wl@gnu.org>
2524         * font/devX*/S: Regenerated.
2525         * font/devdvi/generate/ec.map: Remove `pl'.
2526         * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
2527         * font/devdvi/*{TC,EC}: Regenerated.
2528         * font/devhtml/R.proto: Add `-+'.
2529         Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
2530         * font/devlbp/*: Remove `or'.
2531         * font/devlj4/generate/special.map: Remove `or'.
2532         * font/devlj4/S: Regenerated.
2533         * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
2534         `seveneighths', `threeeighths'.
2535         Remove `plusmath'.
2536         Replace `minusplus' with `uni2213'.
2537         * font/devps/symbolmap: Regenerated.
2538         * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
2539         Add `-+'.
2541         * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
2542         function.
2543         * src/roff/troff/node.cc (troff_output_file::put_char_width):
2544         Call glyph_color and fill_color even if tcommand_flag isn't set.
2545         (make_node, node::add_char): Check not ci->is_fallback but
2546         ci->is_normal.
2548         * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
2549         * tmac/ec.tmac: Add .rchar entry for `f/'.
2550         Don't remove `12', `14', `34'.
2551         Define `pl' to be always roman.
2552         * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
2553         Define `18', `38', `58', `78'.
2554         * tmac/tty.tmac: Add `-+'.
2555         * tmac/dvi.tmac: Define `f/'.
2556         (dvi-frac): Use `f/'.
2557         * tmac/X.tmac (X-frac, X-frac-mono): New macros.
2558         Define `18', `38', `58', `78'.
2560 2002-12-15  Colin Watson  <cjwatson@debian.org>
2562         * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
2564 2002-12-10  Werner LEMBERG  <wl@gnu.org>
2566         Add glyph `tno', a textual variant of `no'.
2568         * font/devX*/*: Regenerated.
2569         * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
2570         * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
2571         * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
2572         * font/devdvi/*: Regenerated.
2573         * font/devlbp/*: Add `tno'.
2574         * font/devlj4/generate/tex.map: Replace `no' with `tno'.
2575         * font/devlj4/*: Regenerated.
2576         * font/devps/generate/textmap: Replace `no' with `tno'.
2577         * font/devps/generate/symbolchars: Add `no'.
2578         * font/devps/*: Regenerated.
2580         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
2582         * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
2583         * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
2585         * NEWS: Updated.
2587         * tmac/dvi.tmac: Replace most `\\' with `\E'.
2588         Add definition for `sd'.
2589         * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
2591         * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
2593 2002-12-08  Werner LEMBERG  <wl@gnu.org>
2595         * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
2596         mode to avoid rounding errors.
2597         (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
2599         * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
2600         src/roff/troff/troff.man: Improve documentation of -T.
2602 2002-12-07  Jeff Conrad  <jeff_conrad@msn.com>
2604         * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
2605         (run_pipeline) [_WIN32]: Provide working function without `fork'.
2607 2002-12-06  Werner LEMBERG  <wl@gnu.org>
2609         * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
2610         glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
2611         Scaling Euro.sansserif glyphs down to have the same height as
2612         digits.
2613         Removed unnecessary points; added some extrema.
2615         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
2616         Regenerated.
2618 2002-12-04  Werner LEMBERG  <wl@gnu.org>
2620         * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
2621         and `Euro.symbol.bold.slanted'.
2622         Improve some glyph offsets and widths.
2623         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
2624         Regenerated.
2625         * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
2626         typo.
2627         * font/devps/generate/sfdtopfa.pe: Generate PFA in current
2628         direcory.
2630         * tmac/europs.tmac: Updated to new glyph indices.
2631         Use Euro.symbol for font familiy `A'.
2633         * doc/groff.texinfo: Minor improvements.
2635 2002-12-02  Werner LEMBERG  <wl@gnu.org>
2637         * font/devdvi/generate.tc.map: s/%O/%0/.
2638         * font/devdvi/*TC: Regenerated.
2640         * src/roff/troff/div.cc (init_div_requests): Sorted.
2642         * tmac/dvi.tmac: Remove `Ye'.
2643         * tmac/ec.tmac: Remove `Ye'.
2644         Add .rchar entry for `de'.
2646         * man/groff.man, man/groff_diff.man: Document register `.pe'.
2647         * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
2648         * NEWS: Updated.
2650 2002-11-30  Werner LEMBERG  <wl@gnu.org>
2652         Add PS font for various Euro glyphs.
2654         * font/devps/generate/freeeuro.sfd: New master font file for
2655         pfaedit.
2656         * font/devps/generate/sfdtopfa.pe: New conversion script for
2657         pfaedit.
2658         * font/devps/generate/Makefile (FONTS): Add `EURO'.
2659         (EURO, freeeuro.afm, freeeuro.pfa): New rules.
2660         * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
2661         `freeeuro.sfd'.
2662         * font/devps/EURO: Generated from `freeeuro.afm'.
2663         * font/devps/download: Add `freeuro.pfa'.
2664         * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
2665         `freeeuro.pfa'.
2667         * tmac/europs.tmac: New file.
2668         * tmac/ps.tmac: Include `europs.tmac'.
2669         * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
2671 2002-11-29  Werner LEMBERG  <wl@gnu.org>
2673         * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
2674         * font/devdvi/S: Regenerated.
2675         * font/devhtml/R.proto: Fix `CR' and `ci'.
2676         Add `OK'.
2677         * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
2678         Remove `bs'.
2679         * font/devps/symbolmap: Regenerated.
2680         * font/devutf8/R.proto: Fix `CR' and `ci'.
2681         Add `OK'.
2682         * font/devutf8/NOTES: Updated.
2684         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
2685         `ci'.
2686         Add `OK'.
2687         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
2689         * tmac/dvi.tmac: Add `lh' and `rh'.
2690         * tmac/Xps.tmac: Fix `lh' and `rh'.
2691         * tmac/X.tmac: Add `OK'.
2692         * tmac/lj4.tmac: Ditto.
2694 2002-11-24  Werner LEMBERG  <wl@gnu.org>
2696         * font/devX*/S: Regenerated.
2697         * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
2698         `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
2699         * font/devdvi/generate/texsy.map: Remove `or' glyph.
2700         * font/devdvi/S: Regenerated.
2701         * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
2702         `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
2703         `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
2704         `bracketleftbt', `bracketrighttp', `bracketrightex',
2705         `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
2706         `braceex', `braceleftex', `bracerightex', `bracerighttp',
2707         `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
2708         `rb', and `bv'.
2709         * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
2710         * font/devutf8/NOTES: Updated.
2711         * font/devlj4/generate/special.map: Add glyph `braceex'.
2712         * font/devlj4/S: Regenerated.
2714         * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
2716 2002-11-14  Werner LEMBERG  <wl@gnu.org>
2718         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
2719         and `vA'.
2720         Fix code for `an'.
2721         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
2723         * doc/texinfo.tex: New version from texinfo 4.3.
2724         * doc/groff.texinfo: Updated for texinfo 4.3.
2725         Use @tie{} where appropriate.
2726         * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
2727         * font/devdvi/generate/tc.map: Remove `rn'.
2728         * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
2729         * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
2730         Fix code for `an'.
2731         * font/devX100/*, font/devX100-12/*, font/devX75/*,
2732         font/devX75-12/*: Regenerated.
2734         * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
2735         Use .char (again) for `br', `ul', `rn', `or', and `ru'.
2736         Improve definition of `an'.
2737         * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
2738         `ru'.
2739         * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
2740         * tmac/X.tmac: Add definition for `or'.
2741         * tmac/Xps.tmac: Undo change 2002-11-05.
2742         * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
2744 2002-11-11  Werner LEMBERG  <wl@gnu.org>
2746         * src/roff/troff/node.cc (troff_output_file::put_char): Always
2747         call flush_tbuf.
2749 2002-11-10  Werner LEMBERG  <wl@gnu.org>
2751         Added three new requests `schar', `fschar', and `rfschar'.  `schar'
2752         defines a glyph which is searched after the check for fonts declared
2753         with `.special' (and before the check for all mounted special
2754         fonts).  `fschar' defines a glyph for a particular font which is
2755         searched after the check for fonts declared with `.fspecial' (and
2756         before the check for fonts declared with `.special').  `rfschar'
2757         removes glyphs defined with `fschar'.
2759         * src/roff/troff/token.h (char_mode): New enum.
2760         Declare do_define_character.
2761         * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
2762         `mode'.
2763         (charinfo::is_fallback): Updated.
2764         (charinfo::is_special): New method.
2765         * src/roff/troff/input.cc (do_define_character): Add and use
2766         optional second parameter used as a prefix for font-specific glyph
2767         names.
2768         (define_character, define_fallback_character): Updated.
2769         (define_special_character): New function.
2770         (init_input_requests): Add `schar'.
2771         (charinfo::charinfo, charinfo::set_macro): Updated.
2772         * src/roff/troff/node.cc: Include `stringclass.h'.
2773         (make_glyph_node): Handle special glyphs defined with `.schar' and
2774         `.fschar'.
2775         (define_font_special_character, remove_font_special_character): New
2776         functions.
2777         (init_node_requests): Sorted.
2778         Add `fschar' and `rfschar'.
2779         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2780         Document new requests.
2782         * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
2783         * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
2785 2002-11-08  Werner LEMBERG  <wl@gnu.org>
2787         Added new font `SC' (cmtex10) to devdvi.
2789         * devdvi/generate/Makefile (FONTS): Add `SC'.
2790         (SC): New rule.
2791         * devdvi/generate/textex.map: New map file for cmtex.
2792         * devdvi/SC: New.
2793         * devdvi/Makefile.sub (DEVFILES): Updated.
2794         * tmac/dvi.tmac: Add fspecial entries for SC.
2795         Add `MI', `S' and `CW' to the `special' call.  Otherwise, `SC' is
2796         found before `S' since the font position of `SC' is lower due to the
2797         gaps in DESC's `font' line.
2798         * tmac/ec.tmac: Add a `special' call.
2799         * NEWS: Updated.
2801         * font/devhtml/R.proto: Remove double entry for `ti'.
2802         * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
2803         * tmac/tty-char.tmac: Remove entry for `bq'.
2804         * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
2805         * tmac/ec.tmac: Don't remove `aq' glyph.
2806         * tmac/X.tmac: Fix entry for `em'.
2807         Add entries for `fo' and `fc'.
2808         * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
2810         * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
2811         documentation of `special' and `fspecial' requests.
2813 2002-11-05  Werner LEMBERG  <wl@gnu.org>
2815         * font/devascii/R.proto, font/devcp1047/R.proto,
2816         font/devlatin1/R.proto: Remove entry for `.i'.
2817         * font/devdvi/generate/textt.map: Add entry for `ad'.
2818         * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
2819         font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
2820         We need this for getting kerning values to compose `/l' and `/L'.
2821         * font/devdvi: Regenerated font definition files for CM fonts.
2822         * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
2823         * font/devutf8/R.proto: Ditto.
2824         Remove double entry for `ti'.
2826         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
2827         for (groff) ligatures, `la', and `ra'.
2828         Add "'C", "'c", `IJ', and `ij'.
2829         Remove double entry for `ti'.
2830         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
2831         double entries.
2832         Add "'C", "'c", `IJ', and `ij'.
2833         Fix entries for (groff) ligatures, `la', and `ra'.
2835         * tmac/ps.tmac (ps-achar): New macro.
2836         Define "'c" and "'C".
2837         * tmac/tty.tmac: Add entry for `.i'.
2838         * tmac/X.tmac (X-achar): New macro.
2839         Define "'c", "'C", and `:Y'.
2840         Add entries for `IJ' and `ij'.
2841         * tmac/Xps.tmac (Xps-achar): New macro.
2842         Define "'c" and "'C".
2843         Add entries for `IJ' and `ij'.
2844         * tmac/lbp.tmac (lbp-achar): New macro.
2845         Add fallback characters for all groff ligatures and many other
2846         glyphs.
2847         * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
2848         Add entries for `/l' and `/L'.
2849         Define "'c" and "'C".
2850         Add entries for `IJ' and `ij'.
2852 2002-11-02  Larry Kollar  <kollar@alltel.net>
2854         * PROBLEMS: Document how to solve Mac OS X compilation problems.
2856 2002-11-02  Werner LEMBERG  <wl@gnu.org>
2858         Adding support for composite glyphs: \[xxx yyy ...] and the
2859         `composite' request.
2861         * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
2862         to Unicode-based glyph names.
2863         * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
2864         glyph names to groff glyph names.
2865         * src/roff/troff/uniuni.cc: New file for canonically decomposing
2866         Unicode-based glyph names.
2867         * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
2868         for handling Unicode glyph names.
2869         * src/roff/troff/input.cc: Include unicode.h.
2870         (composite_glyph_name): New function.
2871         (token::next) <'['>: Handle Unicode glyph names and composite
2872         glyphs.
2873         (composite_dictionary): New dictionary for the `composite' request.
2874         (composite_request): Implement `composite' request.
2875         (init_input_requests): Add `composite'.
2876         Alphabetically sorted.
2877         * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
2878         commented out).
2879         (init_env_requests): Alphabetically sorted.
2880         Removed `tas' and `tar' (already commented out).
2881         * src/roff/troff/Makefile.sub: Updated.
2883 2002-10-31  Ruslan Ermilov  <ru@FreeBSD.org>
2885         * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
2886         of options.
2888 2002-10-29  Werner LEMBERG  <wl@gnu.org>
2890         Fix computation of .trunc register.  Additionally, its value (and
2891         the value of the .ne register) is now always set before entering the
2892         trap.
2894         * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
2895         `needed_space' before calling `space'.
2896         (top_level_diversion::space): Remove special code for 'sp before the
2897         first page.
2898         Call `begin_page' with the discarded space as a parameter.
2899         (top_level_diversion::begin_page): Add optional parameter to set
2900         `truncated_space'.
2901         * src/roff/troff/div.h: Updated.
2903         * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
2904         \n[.ne].
2906         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
2907         (LP): Remove superfluous call to `br'.
2908         * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
2909         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
2911 2002-10-26  Werner LEMBERG  <wl@gnu.org>
2913         * tmac/doc-ditroff: Remove useless switch/variable -rC.
2914         (doc-setup-header): Don't set page register `%'.
2915         * tmac/doc-nroff: Remove variable `C'.
2916         (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
2917         (doc-setup-header): Don't set page register `%'.
2918         Don't call `bp'.
2919         * tmac/doc-common (doc-header): Call `ns'.
2920         (doc-paragraph): Protect .sp with .br so that it survives traps
2921         possibly set by the user.
2922         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
2924         * tmac/doc*: Replace ' with . for consistency if no effect.
2926 2002-10-26  Werner LEMBERG  <wl@gnu.org>
2928         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
2929         so that it survives traps possibly set by the user.
2931         * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
2932         (troff_output_file::set_font): Call flush_tbuf if necessary.
2933         (troff_output_file::fill_color, troff_output_file::glyph_color): Call
2934         flush_tbuf and do_motion only if necessary.
2935         (troff_output_file::start_special,
2936         troff_output_file::put_char_width, troff_output_file::put_char,
2937         troff_output_file::draw): Updated.
2938         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
2939         vmotion_node::tprint): Undo change 2002-10-23.
2941 2002-10-25  Werner LEMBERG  <wl@gnu.org>
2943         * tmac/www.tmac (DC): Fix case of overlapping images.
2945 2002-10-23  Werner LEMBERG  <wl@gnu.org>
2947         * src/roff/troff/node.cc (troff_output_file::fill_color,
2948         troff_output_file::glyph_color): Set current color before testing
2949         color_flag.
2950         (troff_output_file::put_char_width, troff_output_file::put_char,
2951         troff_output_file::draw): Don't call flush_tbuf and/or do_motion
2952         before glyph_color.
2953         (troff_output_file::file_color, troff_output_file::glyph_color):
2954         Call do_motion.
2955         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
2956         vmotion_node::tprint): Move first, then call fill_color.
2958 2002-10-20  Werner LEMBERG  <wl@gnu.org>
2960         * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
2961         possible to use multiple main macro packages.
2963 2002-10-19  Werner LEMBERG  <wl@gnu.org>
2965         * src/devices/grops/ps.cc (cmyk_flag): New global variable.
2966         (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
2967         (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
2968         is set.
2969         * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
2970         `where' construction since `cmyksetcolor' is a PS Level 2 operator.
2972 2002-10-16  Werner LEMBERG  <wl@gnu.org>
2974         * NEWS, doc/webpage.ms: Updated.
2976 2002-10-14  Werner LEMBERG  <wl@gnu.org>
2978         * src/roff/troff/node.cc (troff_output_file::put_char_width,
2979         troff_output_file::put_char, troff_output_file::fill_color,
2980         troff_output_file::glyph_color): Handle case where color pointer
2981         is null.
2983 2002-10-13  Ruslan Ermilov  <ru@FreeBSD.org>
2985         Add the new -r option to grotty.  It is similar to the -i option
2986         except it tells grotty(1) to use the "reverse video" attribute to
2987         render italic fonts.
2989         * src/devices/grotty/tty.cc (reverse_flag): New global variable.
2990         (SGR_REVERSE, SGR_NO_REVERSE): New macros.
2991         (tty_printer::make_underline, tty_printer::put_color,
2992         tty_printer::end_page): Use it.
2993         (main): Add -r switch.
2994         (usage): Updated.
2995         * src/devices/grotty/grotty.man: Document it.
2997 2002-10-11  Ruslan Ermilov  <ru@FreeBSD.org>
2999         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
3000         cast to `unsigned char' to properly read patterns with 8bit
3001         characters.
3003 2002-10-08  Werner LEMBERG  <wl@gnu.org>
3005         * REVISION: Increased to 2.
3007 Version 1.18.1 released
3008 =======================
3010 2002-10-08  Werner LEMBERG  <wl@gnu.org>
3012         * doc/webpage.ms, NEWS: Updated.
3014 2002-10-07  Werner LEMBERG  <wl@gnu.org>
3016         * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
3017         suppress additional whitespace after the header.
3019         * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
3020         with NetBSD.
3022         * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
3024 2002-10-07  Ruslan Ermilov  <ru@FreeBSD.org>
3026         * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
3027         (Dt): Use it to improve language localization (especially Russian
3028         and French).
3030 2002-10-07  Daniel Senderowicz  <daniel@synchrods.com>
3032         * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
3033         * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
3034         drawing commands.
3035         * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
3036         curve type.
3037         Call `picurve' for BSPLINE.
3038         (HGPrintElt): Handle BSPLINE.
3039         * src/preproc/grn/README: Document it.
3041 2002-10-03  Werner LEMBERG  <wl@gnu.org>
3043         * src/roff/troff/node.cc (break_char_node::col): New variable.
3044         Updated constructor.
3045         (space_node::tprint, word_space_node::tprint): Call `fill_color'
3046         unconditionally.
3047         (space_node::space_node): Remove assertion.
3048         (break_char_node::add_self): Pass color argument to space node.
3049         * src/roff/troff/input.cc (token::add_to_node_list, token::process):
3050         Ditto.
3051         * src/roff/troff/env.cc (environment::do_break,
3052         environment::add_padding): Ditto.
3054 2002-10-02  Werner LEMBERG  <wl@gnu.org>
3056         Redesigning color support in troff.  Colors are no longer
3057         represented as separate nodes but are now part of glyph nodes and
3058         friends.  This fixes the current formatting misbehaviour due to the
3059         changes introduced on 2002-09-20.  Some extra code is necessary for
3060         proper grotty support: Without adding color variables to
3061         space-related nodes, the background color would be changed too late.
3063         * src/roff/troff/node.h, src/roff/troff/node.cc:
3064         s/current_pagecolor/current_fill_color/.
3065         s/current_glyphcolor/current_glyph_color/.
3066         (glyph_color_node, fill_color_node): Removed.
3067         (node::get_glyph_color, node::get_fill_color): New virtual member
3068         functions.
3069         (space_node::col): New variable.
3070         Updated constructors of space_node and derived classes accordingly.
3071         (hmotion_node::col): New variable.
3072         Updated constructors of hmotion_node and space_char_hmotion_node
3073         accordingly.
3074         (vmotion_node::col): New variable.
3075         Updated constructor accordingly.
3076         (draw_node::gcol, draw_node::fcol): New variables.
3077         Updated constructor accordingly.
3078         (special_node::gcol, special_node::fcol): New variables.
3079         Updated constructors accordingly.
3080         (troff_output_file::put_char, troff_output_file::put_charwidth,
3081         troff_output_file::draw): Set glyph and fill color.
3082         (troff_output_file::start_special): Set glyph and fill color.
3083         Always set current font.
3084         (troff_output_file::fill_color, troff_output_file::glyph_color):
3085         Don't call `do_motion'.
3086         (glyph_node::gcol, glyph_node::fcol): New variables.
3087         Updated constructors of glyph_node and ligature_node accordingly.
3088         (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
3089         member functions.
3090         (glyph_node::merge_glyph_node,
3091         kern_pair_node::add_discretionary_hyphen,
3092         node::add_discretionary_hyphen): Updated.
3093         (break_char_node::merge_self): Updated.
3094         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
3095         vmotion_node::tprint): Handle color.
3096         (make_glyph_node, make_node, node::add_char): Updated.
3098         * src/roff/troff/env.cc (environment::space_newline,
3099         environment::space, environment::output_line, environment::do_break,
3100         environment::make_tab_node, environment::add_padding, title):
3101         Updated.
3102         (environment_switch, environment_copy): Don't add color nodes.
3104         * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
3105         nothing.
3106         (token::next): Updated.
3107         \m and \M now are as transparent as \s.
3108         (process_input_stack, token::add_to_node_list, token::process,
3109         read_draw_node): Updated.
3110         (charinfo_to_node_list): Don't add color nodes.
3112         * doc/groff.texinfo: Updated.
3114 2002-09-27  Ruslan Ermilov  <ru@FreeBSD.org>
3116         * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
3117         strings.
3119 2002-09-27  Colin Watson  <cjwatson@debian.org>
3121         * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
3123 2002-09-23  Werner LEMBERG  <wl@gnu.org>
3125         * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
3126         appropriate.
3127         (DEFAULT_LINEWIDTH_FACTOR): New macro.
3128         (linewidth_factor): New global variable.
3129         (lbp_printer::set_line_thickness): Fix case for size < 0, using
3130         linewidth_factor.
3131         (long_options): Add -w/--linewidth option.
3132         (usage): Updated.
3133         (main): Handle -w option to set linewidth_factor.
3134         (lbp_printer::lbp_printer): Initialize req_linethickness, not
3135         line_thickness.
3137         * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
3139 2002-09-22  Paco Andrés Verdú  <pandres@dragonet.es>
3141         Fixed a bug in the line thickness setting code.
3143         * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
3144         variable.
3145         (lbp_printer::set_line_thickness): Pass environment as second
3146         parameter.
3147         Implement it actually.
3148         (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
3149         and `set_line_thickness, depending on the current font size.
3151 2002-09-21  Werner LEMBERG  <wl@gnu.org>
3153         Some Debian patches.
3155         * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
3156         * src/roff/troff/node.cc (bracket_node::copy): Initialize
3157         `list->last'.
3159 2002-09-20  Werner LEMBERG  <wl@gnu.org>
3161         * configure: Regenerated with autoconf 2.54.
3163 2002-09-20  Werner LEMBERG  <wl@gnu.org>
3165         * src/roff/troff/env.h (environment): Rename cur_glyph_color to
3166         glyph_color.
3167         Rename cur_fill_color to fill_color.
3168         * src/roff/troff/env.cc: Updated.
3170 2002-09-20  Werner LEMBERG  <wl@gnu.org>
3172         * src/roff/troff/env.cc (title): Copy color status after processing
3173         title.
3174         * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
3175         fill color nodes to reset colors properly.
3177         * tmac/www.tmac (DC): Fix color handling.
3179         * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
3180         * doc/groff.texinfo: Fixing documentation of `tl' request.
3181         * doc/webpage.ms: Updated.
3183 2002-09-19  Werner LEMBERG  <wl@gnu.org>
3185         * src/roff/troff/env.cc (environent_switch, environment_copy):
3186         Emit glyph and fill color nodes to initialize colors properly.
3188 2002-09-17  Colin Watson  <cjwatson@debian.org>
3190         * src/roff/troff/env.cc (environment::set_glyph_color,
3191         environment::set_fill_color): Fix typo which prevented \m[] work
3192         correctly.
3194 2002-09-17  Werner LEMBERG  <wl@gnu.org>
3196         Add left and right italic correction to non-slanted PS fonts.  This
3197         is an experimental feature to improve image rendering of grohtml.
3199         * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
3200         ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
3201         * font/devps/*: All non-slanted fonts regenerated.
3202         * NEWS: Updated.
3204 2002-09-16  Werner LEMBERG  <wl@gnu.org>
3206         Add a site-specific font directory.
3208         * Makefile.in (localfontdir, legacyfontdir): New variables.
3209         (fontpath): Use them.
3210         (MDEFINES, uninstall_dirs): Updated.
3211         * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
3212         Remove `FONTPATH' and `MACROPATH'.
3214         * src/roff/troff/troff.man, NEWS: Updated.
3215         * doc/groff.texinfo (Font Directories): New section.
3216         Other minor fixes.
3218         * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
3219         src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
3220         src/preproc/grn/grn.man: Minor fixes.
3222         * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
3223         Remove unused variable.
3225 2002-09-11  Werner LEMBERG  <wl@gnu.org>
3227         * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
3228         * man/groff_out.man: Fix documentation of 'N'.
3230 2002-09-09  Gaius Mulley  <gaius@glam.ac.uk>
3232         * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
3233         * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
3234         set.
3235         * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
3236         (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
3237         (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
3238         * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
3239         PRE_TAG>: Call `begin' with `FALSE'.
3241 2002-09-09  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
3243         * src/libs/libgroff/string.cc (string::extract): Fix position of
3244         terminating null byte.
3246 2002-09-08  Werner LEMBERG  <wl@gnu.org>
3248         Add global option `nospaces' to tbl so that leading and trailing
3249         spaces in data items are ignored.
3251         * src/libs/libgroff/string.cc (string::remove_spaces): New member
3252         function to remove leading and trailing spaces.
3253         * src/include/stringclass.h: Updated.
3255         * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
3257         * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
3258         option.
3259         Fix typo in error messages.
3260         (process_data): Implement `nospaces' option.
3261         * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
3263 2002-09-07  Werner LEMBERG  <wl@gnu.org>
3265         * src/include/config.hin: Add `HAVE_ISATTY'.
3266         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
3267         `fname' member.
3268         * src/libs/libgroff/tmpname.cc: Include `time.h'.
3269         * src/libs/libdriver/input.cc (Char): Add `operator==' and
3270         `operator!=' for `char'.
3271         * doc/groff.texinfo: Replace @ifnottex block for top node with
3272         @ifhtml block.
3274 2002-09-06  Werner LEMBERG  <wl@gnu.org>
3276         * doc/Makefile.in (.texinfo.html): Add -I switch.
3277         * doc/groff.texinfo: Add @ifnottex block for top node to make
3278         translation to HTML work.
3280 2002-09-05  Gaius Mulley  <gaius@glam.ac.uk>
3282         * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
3283         (get_papersize, determine_vertical_offset): Removed.
3284         (char_buffer::do_image): Always specify letter size.
3285         (main): Updated.
3286         (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
3287         -sPAPERSIZE.
3289 2002-09-05  Werner LEMBERG  <wl@gnu.org>
3291         * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
3292         default indentation.
3294 2002-09-04  Gaius Mulley  <gaius@glam.ac.uk>
3296         * src/preproc/html/pre-html.cc (imageList::createPage): Use
3297         -sPAPERSIZE for gs.
3298         (generateImages): Clean up push-back buffer.
3300 2002-09-04  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
3302         * doc/groff.texinfo: Minor fixes.
3304 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
3306         * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
3307         (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
3308         (gsPaper): Removed.
3309         (determine_vertical_offset): Use LETTER_LENGTH.
3310         (createPage): Moved to ...
3311         (imageList::createPage): This.
3312         Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
3313         (imageList::getMaxX): New function.
3314         (createImage): Moved to ...
3315         (imageList::createImage): This.
3316         (imageList::createImages): New function.
3317         (generateImages): Read `maxx' directly.
3318         Updated.
3319         (scanArguments): Don't specify `gsPaper' for `-o'.
3320         (makeTempFiles): Call `xtmpfile' with the last argument set to
3321         `TRUE'.
3323 2002-08-24  Werner LEMBERG  <wl@gnu.org>
3325         * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
3326         (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
3327         * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
3328         * src/preproc/html/pushback.cc: Include nonposix.h.
3329         * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
3330         conditionally.
3332 2002-08-23  Werner LEMBERG  <wl@gnu.org>
3334         Use $(OBJEXT) for the object file extension.
3336         * Makefile.comm (.SUFFIXES): Add .obj.
3337         (.cc.obj, .c.obj): New implicit rules.
3338         * Makefile.in (OBJEXT): New variable, initialized from autoconf.
3339         (MDEFINES): Add EXEEXT and OBJEXT.
3340         * */Makefile.sub: s/.o/.$(OBJEXT)/.
3342 2002-08-22  Werner LEMBERG  <wl@gnu.org>
3344         * INSTALL: Mention texinfo 4.2 as a prerequisite.
3346 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
3348         * src/devices/grohtml/post-html.cc (colType): Make enum global to
3349         the file.
3350         (html_printer::update_min_max, html_printer::add_table_end): New
3351         methods.
3352         (html_printer::lookahead_for_tables): Use them.
3353         Reset page offset correctly.
3354         (html_printer::~html_printer): Add creation of creator comment up.
3356 2002-08-20  Werner LEMBERG  <wl@gnu.org>
3358         * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
3359         * man/groff_tmac.man: Fix typos.
3360         * man/groff_font.man: Minor reordering.
3361         * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
3362         * contrib/groffer/groffer.man: Fix typos.
3364 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
3366         Avoid endless loops while scanning for tables.
3368         * src/devices/grohtml/post-html.cc (list::insert): Set
3369         ptr->right->left.
3370         (html_printer::next_horiz_pos): Add `text_glob' argument; update
3371         all callers.
3372         Return immediately if that argument is NULL.
3373         (html_printer::calc_nf): Don't test if `g' is NULL.
3374         (html_printer::lookahead_for_tables): Use
3375         `glyphs.move_right_get_data'.
3376         Don't test if `g' is NULL.
3378 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
3380         A better fix, replacing fix 2002-08-15, for increasing SIZE.
3382         * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
3383         a pointer.
3384         (char_block::char_block): Allocate `buffer'.
3385         (char_buffer::add_string): Use it.
3387 2002-08-15  Werner LEMBERG  <wl@gnu.org>
3389         * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
3390         src/devices/grodvi/grodvi.man: Document default line thickness.
3392 2002-08-15  Gaius Mulley  <gaius@glam.ac.uk>
3394         * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
3395         8192.
3397 2002-08-14  Werner LEMBERG  <wl@gnu.org>
3399         * doc/webpage.ms: Updated.
3401 2002-08-09  Werner LEMBERG  <wl@gnu.org>
3403         * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
3404         unbreakable space.
3406 2002-08-08  Aaron Campbell  <aaron@monkey.org>
3408         * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
3409         (&& -> &).
3411 2002-08-08  Werner LEMBERG  <wl@gnu.org>
3413         * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
3414         tok.next().
3415         (read_gray): Ditto.
3416         Don't push back a space but a newline onto the stack.
3418 2002-08-07  Gaius Mulley  <gaius@glam.ac.uk>
3420         Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
3421         inadvertently.
3423         * src/devices/grohtml/post-html.cc (html_printer::end_font,
3424         html_printer::start_font): Handle them.
3425         * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
3426         reset bold and tt.
3427         (html_text::do_bold): Don't reset italic and tt.
3428         (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
3429         * font/devhtml/DESC.proto: Add those fonts.
3430         * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
3432 2002-08-07  Werner LEMBERG  <wl@gnu.org>
3434         * MORE.STUFF: Added gpresent.
3436         * tmac/trace.tmac: Show nesting level by a corresponding amount of
3437         whitespace before printing the logging message.
3439 2002-07-31  Colin Watson  <cjwatson@debian.org>
3441         * src/devices/grohtml/html-table.cc (html_table::finish_row):
3442         Initialize `n' to zero.  This fixes a segfault on ARM.
3444 2002-07-30  Werner LEMBERG  <wl@gnu.org>
3446         * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
3448 2002-07-29  Werner LEMBERG  <wl@gnu.org>
3450         * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
3451         final semicolon.
3453 2002-07-28  Colin Watson  <cjwatson@debian.org>
3455         * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
3456         `.ps'.
3457         (html_printer::html_printer): Initialize `pointsize'.
3459 2002-07-26  Werner LEMBERG  <wl@gnu.org>
3461         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
3462         gnu.png.
3463         (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
3464         (gnu.eps): Add -rle switch to pnmtops.
3465         (distfiles): Add gnu.eps and gnu.png.
3467 2002-07-25  Petter Reinholdtsen  <pere@hungry.com>
3469         * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
3470         Add `operator!='.
3472 2002-07-24  Werner LEMBERG  <wl@gnu.org>
3474         * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
3475         ' \+' but '  *' for sed.
3476         (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
3478 2002-07-23  Werner LEMBERG  <wl@gnu.org>
3480         * doc/groff.texinfo: Document `papersize' keyword.
3481         * NEWS, man/groff_font.man: Updated.
3483 2002-07-23  Colin Watson  <cjwatson@debian.org>
3485         Extend papersize keyword to accept more than a single entry.  The
3486         first valid will be used.
3488         * src/libs/libgroff/font.cc (font::load_desc): Implement it.
3489         (font::scan_papersize): Really skip final newline.
3490         * src/preproc/html/pre-html.cc (get_papersize): Ditto.
3492 2002-07-23  Werner LEMBERG  <wl@gnu.org>
3494         * configure.ac: Test for isatty.
3495         * configure: Regenerated.
3496         * src/include/posix.h: Check HAVE_ISATTY.
3497         * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
3498         * src/utils/lookbib/lookbib.cc: Include posix.h.
3499         Don't declare isatty.
3501 2002-07-21  Werner LEMBERG  <wl@gnu.org>
3503         * NEWS: Add `output' request.
3505         * REVISION: Increased to 1.
3507 Version 1.18.0 released
3508 =======================
3510 2002-07-19  Gaius Mulley  <gaius@glam.ac.uk>
3512         Allow internal glyph indices > 0xFF in grohtml for input characters.
3514         * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
3515         as parameter.
3516         (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
3517         Updated all callers.
3518         (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
3519         (html_printer): Updated.
3521 2002-07-19  Werner LEMBERG  <wl@gnu.org>
3523         * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
3524         * font/devutf8/R.proto: Adding some missing glyphs.
3525         * font/devutf8/NOTES: Updated.
3527         * tmac/dvi.tmac: Add more composite glyphs.
3528         * tmac/html.tmac: Updated.
3530         * man/groff_char.man: Add `sum' and `product' entities.
3532         * NEWS: Updated.
3534 2002-07-18  Gaius Mulley  <gaius@glam.ac.uk>
3536         Improved table, tab, and indenting support.
3538         * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
3539         string_iterator::suppress_newline_flag): Removed.  Updated all
3540         function which have used it.
3542         * src/roff/troff/env.cc: Include `input.h'.
3543         (environment::add_node): Accept 0 as parameter.
3544         (environment::add_html_tag): Add `force' parameter.
3545         Updated all callers.
3546         (environment::add_html_tag_tabs): Ditto.
3547         For the moment, support left-aligned tabs only.
3548         (environment::make_html_tag): New function.
3549         (fill, no_fill): Set .br html tag additionally.
3550         (environment::newline): Emit `eol.ce' or `eol' tag for html.
3551         (environment::add_html_tag_eol): Removed.
3552         (tab_stops::distance_to_next_tab): Add variant for handling 
3553         nextpos'.
3554         (environment::distance_to_next_tab): Ditto.
3555         Updated all callers.
3556         (environment::handle_tab): Handle tabs for html.
3557         
3558         * src/roff/troff/env.h: Updated.
3560         * src/roff/troff/div.cc: Updated all callers of
3561         `environment::add_html_tag'.
3563         * src/devices/grohtml/html-table.cc,
3564         src/devices/grohtml/html-table.h: New files.
3566         * src/devices/grohtml/html-text.cc (html_text): New members
3567         `blank_para' and `start_space'.
3568         (html_text::issue_tag): Don't emit TABLE_TAG.
3569         Handle indentation for PRE_TAG and P_TAG.
3570         (html_text::end_tag): Updated.
3571         (html_text::table_is_void, html_text::issue_table_begin,
3572         html_text::issue_table_end): Removed.
3573         (html_text::do_push): Simplified.
3574         [DEBUGGING]: Small fix.
3575         (html_text::push_para): Add new parameter for indentation; updated
3576         all callers.
3577         Handle PRE_TAG.
3578         (html_text::do_indent, html_text::do_table, html_text::done_table,
3579         html_text::is_in_table): Removed.
3580         (html_text::do_pre): Handle P_TAG also.
3581         (html_text::shutdown): Handle p->indent.
3582         (html_text::check_emit_text): Simplified.
3583         (html_text::do_emittext): Reset `blank_para'.
3584         (html_text::do_para): Add new parameter for indentation; updated
3585         all callers.
3586         (html_text::remove_indent): New function.
3587         (html_text::do_space): Handle verbatim text properly.
3588         (html_text::ever_emitted_text, html_text::starts_with_space,
3589         html_text::remove_para_align): New functions.
3590         (html_text::dump_stack_element, html_text::dump_stack): Updated.
3592         * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
3593         Updated.
3595         * src/devices/grohtml/post-html.cc: Include html-table.h.
3596         (INDENTATION): Removed.
3597         (text_glob): Added many `is_<foo>' functions.
3598         Added table description `tab'.
3599         Added `get_arg',`get_tab_args', `remember_table', and `get_table'
3600         member functions.
3601         (list): Add `insert' and `move_to' member functions.
3602         (page): Add `insert_tag' member function.
3603         (page::dump_page) [DEBUG_TABLES]: Improved.
3604         (html_printer): Add `table' and `max_linelength' elements.
3605         Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
3606         `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
3607         `remove_tabs', `remove_courier_tabs'.
3608         (html_printer::emit_raw): Handle indentation.
3609         (html_printer::do_center, html_printer::write_header): Updated.
3610         (html_printer::is_courier_until_eol): Check for tag.
3611         (html_printer::do_linelength): Handle max_linelength.
3612         (html_printer::do_page_offset, html_printer::do_indentation): Handle
3613         fill_on.
3614         (html_printer::do_tempindent): Updated.
3615         (html_printer::do_indentedparagraph): Removed.
3616         (html_printer::do_indent): Simplified.
3617         (html_printer::do_eol): Use `ever_emitted_text'.
3618         (html_printer::do_flush, html_printer::do_links): Don't call
3619         done_table.
3620         (html_printer::do_break): Handle end_tempindent.
3621         (html_printer::troff_tag): Get argument.
3622         Don't handle `.ip'.
3623         Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
3624         (html_printer::flush_page): Call `lookahead_for_tables'.
3625         Don't call `done_table'.
3626         (html_printer::add_to_sbuf): Always call do_indent.
3628         * src/devices/grohtml/Makefile.sub: Updated.
3630         * tmac/an-old.tmac (TP): Don't handle html device specially.
3631         (an-do-tag-html): New function which will be used instead of
3632         `an-do-tag' if html device is used.
3634         * tmac/html.tmac: Call .po to pass default page offset to grohtml.
3636         * tmac/s.tmac (@IP): Don't handle html device specially.
3637         (@IP-html): New function which will be used instead of `@IP' if
3638         html device is used.
3640         * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
3641         is a hack which will eventually vanish again.
3642         (PIMG): Handle `-C' option correctly if not html.
3643         (HR): Use HTML-NS.
3645 2002-07-17  Werner LEMBERG  <wl@gnu.org>
3647         * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
3649 2002-07-14  Eric S. Raymond  <esr@thyrsus.com>
3651         * contrib/pic2graph/pic2graph.*: Use convert(1).
3652         * contrib/eqn2graph/eqn2graph.*: Minor fixes.
3654 2002-07-14  Bernd Warken  <bwarken@mayn.de>
3656         * tmac/groff_trace.man: New file.
3657         * tmac/Makefile.sub: Updated.
3658         * NEWS: Updated.
3660 2002-07-13  Werner LEMBERG  <wl@gnu.org>
3662         * src/roff/groff/groff.man: Add some cross references.
3664 2002-07-12  Werner LEMBERG  <wl@gnu.org>
3666         * src/roff/troff/input.cc (substring_request): Add warnings for
3667         string indices out of range.
3669 2002-07-11  Werner LEMBERG  <wl@gnu.org>
3671         * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
3672         * font/devdvi/*EC: Regenerated.
3674 2002-07-10  Bernd Warken  <bwarken@mayn.de>
3676         * man/groff_char.man: Updated and extended.
3678 2002-07-10  Werner LEMBERG  <wl@gnu.org>
3680         * src/roff/troff/input.cc (length_macro): Renamed to...
3681         (length_request): This.
3682         Move call of `tok.next()' to the very end, otherwise the register
3683         value hasn't been updated yet.
3684         (init_input_requests): Updated.
3686 2002-07-09  Werner LEMBERG  <wl@gnu.org>
3688         * src/roff/troff/input.cc (substring_macro): Renamed to...
3689         (substring_request): This.
3690         (init_input_requests): Updated.
3691         * src/roff/troff/request.h: Updated.
3693 2002-07-08  Robert D. Goulding  <goulding@Princeton.EDU>
3695         * src/roff/grog/grog.sh: Fix typo.
3697 2002-07-08  Werner LEMBERG  <wl@gnu.org>
3699         * win32-diffs: Updated.
3701         Handle `papersize' keyword properly in DESC.
3703         * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
3704         type.
3705         Updated all callers.
3706         * src/libs/libgroff/paper.cc: Add four more paper formats used by
3707         grolj4.
3708         * src/include/paper.h: Updated.
3710         * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
3711         Other minor C syntax fixes.
3712         (papersize, paperlength, paperwidth): Renamed to `user_*'.
3713         (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
3714         members.
3715         (lbp_printer::lbp_printer): Pass three arguments.
3716         Set paper dimensions properly.
3717         (make_printer, main): Updated.
3718         (handle_unknown_desc_command): Fix error messages.
3719         (main): Handle papersize keyword in DESC properly.
3721         * src/devices/grolj4/lj4.cc (paper_size): Renamed to
3722         `user_paper_size'.
3723         (lbp_printer::lbp_printer): Pass an argument.
3724         Set paper_size properly.
3725         (handle_unknown_desc_command): Removed.
3726         (make_printer, main): Updated.
3727         * src/devices/grolj4/grolj4.man: Minor documentation fix.
3729         * man/groff_font.man, NEWS: Updated.
3731 2002-07-07  Werner LEMBERG  <wl@gnu.org>
3733         Integrated eqn2graph, contributed by Eric S. Raymond.
3735         * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
3736         files.
3737         * Makefile.in, NEWS: Updated.
3739 2002-06-04  Werner LEMBERG  <wl@gnu.org>
3741         Changing the substring request to make it fit better with other
3742         string manipulation functions in other programming languages:
3743         Index 0 is now the first character in the string, and index -1
3744         indicates the last character.  Since this request didn't work
3745         properly anyway in the last release, it doesn't harm too much to
3746         change the syntax.
3748         * src/roff/troff/input.cc (substring_macro): Use loops to get
3749         the real string length (ignoring COMPATIBLE_SAVE and
3750         COMPATIBLE_RESTORE) and offsets.
3751         Implement change described above.
3753         * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
3754         (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
3756         * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
3758 2002-06-03  Werner LEMBERG  <wl@gnu.org>
3760         Make .chop work with .de1 and friends.  COMPATIBLE_SAVE and
3761         COMPATIBLE_RESTORE are completely ignored.
3763         * src/roff/troff/input.cc (char_list::set, char_list::get): New
3764         functions.
3765         (macro): `length' field renamed to `len'.
3766         Added new field `empty_macro' (1 if macro is empty), to be used
3767         instead of checking `len'.
3768         Updated all callers.
3769         (macro::empty): Updated.
3770         (macro::length, macro::set, macro::get): New functions.
3771         (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
3772         Set `empty_macro'.
3773         (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
3774         COMPATIBLE_RESTORE pairs.
3775         (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
3776         * src/roff/troff/request.h: Updated.
3778         * doc/groff.texinfo: Document .chop's behaviour better.
3780 2002-06-02  Werner LEMBERG  <wl@gnu.org>
3782         * doc/pic.ms: Fix documentation for the addition of positions.
3784         * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
3786 2002-06-29  Werner LEMBERG  <wl@gnu.org>
3788         Implementation of string arguments of the form \*[foo arg1 arg2 ...]
3790         * src/roff/troff/input.cc (have_string_arg): New global variable.
3791         (read_mode): New enumeration.
3792         (read_escape_name): Use it.  Update all calls.
3793         (read_long_escape_name): Use it.  Update all calls.
3794         Set have_string_arg if appropriate.
3795         (get_char_for_escape_name): Add parameter for handling space
3796         character.
3797         (interpolate_string_with_args, decode_string_args): New functions.
3798         (get_copy, token::next): Call it if necessary.
3799         (interpolate_string): Fix error message.
3801         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
3802         Document it.
3804 2002-06-24  Bernd Warken  <bwarken@mayn.de>
3806         * man/groff_tmac.man: Updated and extended.
3808 2002-06-24  Werner LEMBERG  <wl@gnu.org>
3810         * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
3812 2002-06-23  Werner LEMBERG  <wl@gnu.org>
3814         * doc/pic.ms: Improve documentation of composite block objects.
3816 2002-06-22  Werner LEMBERG  <wl@gnu.org>
3818         * src/roff/troff/input.cc (init_registers): Add three registers
3819         `seconds', `minutes', and `hours' to hold the current time.
3821         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
3822         Updated.
3824 2002-06-20  Werner LEMBERG  <wl@gnu.org>
3826         Make \X accept both `\ ' and `\~', converting them to single space
3827         characters.
3829         * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
3830         (token::unstretchable_space): New inline function.
3831         * src/roff/troff/input.cc (token::next, token::delimiter,
3832         token::description, token::add_to_node_list, token::process): Handle
3833         TOKEN_UNSTRETCHABLE_NODE.
3834         (encode_char): Handle tok.stretchable_space and
3835         tok.unstretchable_space.
3837         * NEWS, doc/groff.texinfo: Document it..
3839 2002-06-19  Werner LEMBERG  <wl@gnu.org>
3841         * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
3843         * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
3844         keyword to enable/disable SGR output.
3845         (tty_printer::change_fill_color): New function.
3846         * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
3848         * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
3849         call.
3851 2002-06-18  Werner LEMBERG  <wl@gnu.org>
3853         Add a `color' request and a `.color' register to control usage of
3854         colours.
3856         * src/roff/troff/input.cc (disable_color_flag): Replaced with...
3857         (color_flag): This (which is the inverse).
3858         (activate_color): New function.
3859         (main, init_input_requests): Updated.
3860         * src/roff/troff/troff.h, src/roff/troff/node.cc
3861         (troff_output_file::fill_color, troff_output_file::glyph_color):
3862         Updated.
3864         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
3865         Document the changes.
3867 2002-06-17  Colin Watson  <cjwatson@debian.org>
3869         Circumvent bug in autoconf 2.53 regarding top_builddir.
3871         * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
3872         * Makefile.in, doc/Makefile.in:
3873         s/@top_builddir@/@groff_top_builddir@/.
3874         * configure: Regenerated (with autoconf 2.53).
3876 2002-06-17  Werner LEMBERG  <wl@gnu.org>
3878         * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
3879         `paperwidth' and `paperlength' for the `papersize' keyword.
3881 2002-06-16  P. Alejandro Lopez-Valencia  <dradul@007mundo.com>
3883         * src/devices/grops/grops.man: Add info about Type 42 fonts.
3885 2002-06-15  Gaius Mulley  <gaius@glam.ac.uk>
3887         * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
3888         html_printer::do_linelength, html_printer::do_pageoffset,
3889         html_printer::do_indentation, html_printer::do_tempindent,
3890         html_printer::do_break, html_printer::begin_page): Clear indented
3891         text.
3892         * tmac/html.tmac: Disable hyphenation.
3894 2002-06-15  Werner LEMBERG  <wl@gnu.org>
3896         Don't produce HTML files if utility programs are missing.
3898         * Makefile.in (make_html, make_install_html): New variables.
3899         (MDEFINES): Updated.
3901         * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
3902         utility programs.
3903         * configure.ac: Use it.
3904         * configure: Regenerated.
3906         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
3907         (HTMLEXAMPLESFILES): This new variable.
3908         (EXAMPLESIMAGEFILES): Renamed to...
3909         (HTMLEXAMPLEIMAGEFILES): This.
3910         (CLEANADD): Add HTMLEXAMPLEFILES.
3911         (all): Use `make_html'.
3912         (html): New target.
3913         (install_data): Use `make_install_html'.
3914         Move html stuff to...
3915         (install_html): This new target.
3916         (uninstall_sub): Updated.
3918 2002-06-14  Bernd Warken  <bwarken@mayn.de>
3920         * src/roff/grog/Makefile.sub (grog): Renamed to...
3921         (grog.old): This.
3922         (grog): New rule to always install grog.sh as grog.
3924 2002-06-08  Bernd Warken  <bwarken@mayn.de>
3926         * src/roff/grog/grog.pl: Fix typo.
3928 2002-06-07  Werner LEMBERG  <wl@gnu.org>
3930         * doc/groff.texinfo: Add more info on .tr arguments.
3932 2002-06-05  Werner LEMBERG  <wl@gnu.org>
3934         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
3936         * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
3937         * configure: Regenerated.
3939 2002-06-05  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
3941         * src/roff/troff/symbol.cc (table_sizes): Add more values.
3943         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
3945 2002-06-04  Werner LEMBERG  <wl@gnu.org>
3947         * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
3948         is not initialized at the time we need it in case `--prefix' hasn't
3949         been set.  Check for `ac_default_prefix' also.
3950         Test for `papersize' keyword also and generalize allowed whitespace.
3951         * configure: Regenerated.
3953         * font/devps/Makefile.sub (DESC): Use `papersize' instead of
3954         `paperlength'.
3956         * src/libs/libgroff/Makefile.sub (version, revision): Replaced
3957         with...
3958         (src_version, src_revision): New variables to avoid overwriting
3959         from parent make process.
3960         (version.cc): Updated.
3962         * src/preproc/html/pre-html.cc: Include paper.h and font.h.
3963         (linebuf, linebufsize): New global variables.
3964         (sys_fatal): Use `fatal' to abort properly.
3965         (get_line): New function.
3966         (get_resolution): Use it.
3967         Improve error messages.
3968         (get_papersize): Check `papersize' also.
3969         Use `get_line'.
3970         Improve error messages.
3972 2002-06-03  Werner LEMBERG  <wl@gnu.org>
3974         * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
3975         should be removed only if builddir is not srcdir.
3976         (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
3977         (clean): Depend on `mostlyclean'.
3978         (distclean): Depend on `clean'.
3979         (realclean, extraclean): Depend on `distclean'.
3980         (.y.cc, .y.o): Simplified.  The output files are no longer written
3981         to srcdir but to builddir.
3982         * Makefile.in (MDEFINES): Add `version' and `revision'.
3983         (uninstall_dirs): Fix order of directories.
3984         * doc/Makefile.sub (version, revision): Removed.
3985         (CLEANADD): Removed grnexmpl.g, groff, groff-*.
3986         Added `HTMLDOCFILES'.
3987         (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
3988         * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
3989         src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
3990         as prefix.
3992         * doc/texinfo.tex (\authortt): New macro.
3993         (\shortcontt): Define.
3994         (\titlepage): Set \tt to \authortt while defining \authorfont.
3995         (\appendixbox): New macro.
3996         (\chapmacro, \appendixentry): Use \appendixbox to get even
3997         indentation for letters.
3998         (\summarycontents): Set \tt.
3999         (\internalpagesize): Add two arguments for real paper width and
4000         height as needed by pdfTeX.
4001         (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
4002         Updated.
4003         (\tempdima, \tempdimb): New temporary dimensions.
4004         (\pagesizesyyy): Updated.
4006 2002-06-02  Werner LEMBERG  <wl@gnu.org>
4008         Adding a new keyword `papersize' to the DESC file format (similar
4009         but not completely identical to grolbp's extension).  grops now has
4010         a -p command line option to override `papersize'.  Finally, grolbp
4011         has been adapted to the new syntax.
4013         * src/libs/libgroff/paper.cc, src/include/paper.h: New files.  It
4014         defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
4015         elements.
4016         * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
4017         (CCSRCS): Add `paper.cc'.
4019         * src/include/font.h (font): Add `papersize' element.
4020         * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
4021         (font::scan_papersize): New function.
4022         (font::load_desc): Use it for handling `papersize' keyword.
4023         * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
4025         * src/devices/grops/ps.cc: Include paper.h.
4026         (user_paper_length): New global variable.
4027         (ps_printer): Use paper length as initializer.
4028         (make_printer): Updated.
4029         (main): Handle new `-p' option.
4030         * src/devices/grops/grops.man: Updated.
4032         * src/devices/grolbp/lbp.cc: Include paper.h.
4033         s/papersizes/lbp_papersizes/.
4034         (set_papersize): Use new `papersizes' array.
4035         (handle_unknown_desc_command): Don't handle `papersize'.
4036         (main): Use `font::scan_papersize' for handling `-p' option.
4037         * src/devices/grolbp/grolbp.man: Updated.
4039         * man/groff_font.man: Document `papersize'.
4040         * NEWS: Updated.
4042 2002-05-30  Werner LEMBERG  <wl@gnu.org>
4044         * src/devices/grops/TODO: Updated.
4045         * src/devices/grops/grops.man: More info on paper formats.
4046         * man/groff_font.man: Document `paperheight' and `paperwidth'.
4048 2002-05-29  Werner LEMBERG  <wl@gnu.org>
4050         * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
4051         to list only if srcdir != currdir.
4052         (distfiles): New target.
4054         * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
4055         (NOMAKEDIRS): New variable.
4056         (DISTDIRS): Use it.
4058 2002-05-26  Werner LEMBERG  <wl@gnu.org>
4060         Add .output request, similar to \! at top-level.
4062         * src/roff/troff/input.cc (transparent): Remove unused declaration.
4063         (output_request): New function.
4064         (init_input_requests): Add it.
4065         Sorted.
4066         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
4067         Document it.
4069         * Makefile.in (MDEFINES): Add INSTALL_INFO.
4070         (prepare_examples): Fix typo.
4071         * doc/groff.texinfo (@direntry): Fix it.
4073 2002-05-25  Werner LEMBERG  <wl@gnu.org>
4075         Including the doc subdir into groff's Makefile system.
4077         * aclocal.m4 (GROFF_INSTALL_INFO): New function.
4078         * configure.ac: Use it.
4079         Generate `doc/Makefile'.
4080         * configure: Regenerated.
4082         * Makefile.in (infodir, INSTALL_INFO): New variables.
4083         (MDEFINES, uninstall_dirs): Updated.
4084         (OTHERDIRS): Add `doc'.
4085         * Makefile.comm (CLEANDIRADD): New variable.
4086         (mostlyclean): Use it.
4088         * doc/Makefile.sub, doc/Makefile.in: New files.
4089         * doc/Makefile: Removed.
4091         * NEWS, INSTALL: Updated.
4093 2002-05-24  Werner LEMBERG  <wl@gnu.org>
4095         * doc/homepage.ms: Renamed to ...
4096         * doc/webpage.ms: This.
4097         Use `.NHR'.
4099 2002-05-23  Werner LEMBERG  <wl@gnu.org>
4101         Integrating the `mom' macro package, contributed by Peter Schaffter
4102         <df191@ncf.ca>.
4104         * contrib/mom/*: New subdirectory tree.
4105         * Makefile.in (docdir, exampledir, htmldocdir): New variables to
4106         be used for documentation files.
4107         (MDEFINES, uninstall_dirs): Use them.
4108         (OTHERDIRS): Add contrib/mom.
4109         * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
4110         @HTMLDOCDIR@.
4111         * MANIFEST, NEWS: Updated.
4113 2002-05-22  Gaius Mulley  <gaius@glam.ac.uk>
4115         Change syntax of \O: \O[0] suppresses output, \O[1] enables output
4116         if at outer level; at start-up we are at outer level.
4118         * src/roff/troff/input.cc (do_suppress): Implement it.
4119         Simplify \O[3].
4121         Add option -p to show progress information.
4122         pre-grohtml will now render only one page at a time, reducing the
4123         size of needed disk resources enormously.
4125         * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
4126         (imagePageName): New global variable.
4127         (psPageName, show_progress, currentPageNo): New global variables.
4128         (html_system): Close saved stderr and stdout handles.
4129         (write_end_image): Accept a parameter to control \O escape.
4130         (write_start_image): Adapted to new \O meaning.
4131         (char_buffer::write_upto_newline): Updated.
4132         (createAllPages): Replaced with...
4133         (createPage): This new function to create a single page for images.
4134         It uses `psselect' from the psutils package.
4135         (removeAllPages): Removed.
4136         (createImage): Updated.
4137         Handle progress display.
4138         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
4139         (scanArguments): Add option -p.
4140         (makeTempFiles): Updated to create temp files for psPageName and
4141         imagePageName.
4142         (removeTempFiles): Removed.
4143         (main): Updated.
4145         * src/devices/grohtml/post-html.cc (header_desc::write_headings,
4146         html_printer::write_header): Append `\0' to `buffer'.
4147         (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
4148         (main): Handle -p.
4149         * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
4150         Handle `text_emitted'.
4151         (html_text::table_is_void): Slightly rewritten.
4152         (stop): New external symbol.
4153         (html_text::do_push) [DEBUGGING]: Use it and simplify.
4154         (html_text::shutdown): Call `dump_stack'.
4155         (html_text::do_space): Rewritten.
4156         * src/devices/grohtml/grohtml.man: Document -p and the need of
4157         `psselect'.
4159         * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
4160         new \O syntax.
4161         Call \O[0] if `ps4html' is active.
4162         * tmac/s.tmac (@EQ, @EN): Handle html better.
4163         (@TS, TE): Ditto.
4164         * tmac/html.tmac: Don't use black for background colour.
4166         * src/roff/troff/node.cc: Include `div.h'.
4167         (troff_output_file::really_print_line): Don't use `is_on'. 
4168         (troff_output_file::word_marker, troff_output_file::flush_tbuf
4169         troff_output_file::check_charinfo,
4170         troff_output_file::put_char_width, troff_output_file::put_char,
4171         troff_output_file::determine_line_limits, troff_output_file::draw,
4172         real_output_file::begin_page, glyph_color_node::tprintf,
4173         fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
4174         Use `is_on'.
4175         (troff_output_file::really_on): Call `do_motion'.
4176         (suppress_node::tprint): Use `get_page_number' instead of `%'
4177         register.
4178         Call `reset_output_registers' conditionally on `is_on'.
4180         * doc/groff.texinfo: Document new syntax of \O.
4181         * NEWS, man/groff_diff.man: Updated.
4183 2002-05-22  Werner LEMBERG  <wl@gnu.org>
4185         * MORE.STUFF: Add info about David Frey's deroff implementation.
4186         Mention troff.org.
4188 2002-05-16  Werner LEMBERG  <wl@gnu.org>
4190         Pic's `with' attribute now accepts positions.
4192         * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
4193         ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
4194         conflicts.
4195         (object_spec): Add rule for `WITH' and `position'.
4196         (relative_path): Give `corner' the precedence of `CHOP'.
4197         * src/preproc/pic/object.h (path): New members `pos' and
4198         `is_position'.
4199         * src/preproc/pic/object.cc: Updated initializers of `path'.
4200         (path::follow): Handle `is_position'.
4202         * doc/pic.ms: Completely updated grammar description.
4203         Many typographical improvements.
4205 2002-05-15  Werner LEMBERG  <wl@gnu.org>
4207         * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
4208         code of x in range 0-127) also.
4209         * doc/groff.texinfo, man/groff_diff.man: Updated.
4211         Added keywords `north', `south', `east', and `west' for corners
4212         in pic.
4214         * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
4215         and WEST.
4216         (yylex): Handle them.
4217         * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
4218         (corner): Handle them.
4220 2002-05-14  Werner LEMBERG  <wl@gnu.org>
4222         * src/devices/grops/grops.man: Clarify handling of `download' file.
4224 2002-05-11  Werner LEMBERG  <wl@gnu.org>
4226         Adding `warnscale' and `spreadwarn' requests, based on a patch from
4227         Jeffrey Friedl <jfriedl@yahoo.com>.
4229         * src/roff/troff/input.cc (spread_limit, warn_scale,
4230         warn_scaling_indicator): New global variables.
4231         (warnscale_request, spreadwarn_requests): New functions.
4232         (main): Initialize `warn_scale' and `warn_scaling_indicator'.
4233         (init_input_requests): Updated.
4234         (error_type): Add `OUTPUT_WARNING'.
4235         (do_error): Handle it.
4236         (output_warning): New warning function which shows output location.
4237         * src/roff/troff/env.h (spread_limit): New external variable.
4238         * src/roff/troff/env.cc (environment::choose_breakpoint): Use
4239         `output_warning'.
4240         (distribute_space): Emit warning if added space is larger than
4241         `spread_limit'.
4242         (environment::possibly_break_line): Emit warning if a line can't
4243         be adjusted on both sides.
4245         * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
4247 2002-05-08  Werner LEMBERG  <wl@gnu.org>
4249         * src/roff/troff/node.cc (special_node::special_node): Use
4250         env_definite_font(curenv) instead of curenv->get_font().  Otherwise
4251         \X''\% crashes, for example.
4253         * doc/groff.texinfo: Document \! and \? used at top-level.
4255 2002-05-06  Werner LEMBERG  <wl@gnu.org>
4257         * src/preproc/pic/pic.man: Fix some keyword syntax.
4258         Other minor typographical fixes.
4260         * src/roff/groff/groff.man: Fix typos.
4262 2002-05-04  Werner LEMBERG  <wl@gnu.org>
4264         * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
4265         (ShortOpt[]): This to avoid problems with refer.
4267         * doc/pic.ms: Fix typo.
4268         Fix pic grammar description.
4270         * tmac/an-old.tmac (ne): Use de1, not de.
4272 2002-05-03  Werner LEMBERG  <wl@gnu.org>
4274         * doc/groff.texinfo: Finished separation of glyphs and characters.
4275         Don't use the string `Appendix' for appendix headers (both in
4276         the text and the table of contents).
4277         * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
4278         directories.
4280         Use registers LL and LT (similar to -ms) for controlling the
4281         length of title and line, respectively, in the -man and -mdoc
4282         macro packages.
4284         * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
4285         (doc-setup-page-layout): Use \n[LL] and \n[LT].
4286         * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
4287         (TH): Use \n[LL].
4288         (an-header, an-p-footer): Use \n[LT].
4289         * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
4290         doc/groff.texinfo: Document it.
4292 2002-05-02  Werner LEMBERG  <wl@gnu.org>
4294         * doc/fdl.texi: New file.
4295         * doc/groff.texinfo: Include it.
4296         Define and use @copying.
4297         Starting with separating glyph, symbol, and character.
4299 2002-04-27  Werner LEMBERG  <wl@gnu.org>
4301         * Makefile.in (EXEEXT): Set it.
4302         * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
4303         programs.
4305         * src/include/nonposix.h: Define GS_NAME.
4306         * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
4308         Some preliminary changes for EMX support under OS/2.
4310         * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
4311         __EMX__ similar to __MSDOS__.
4312         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
4314 2002-04-25  Werner LEMBERG  <wl@gnu.org>
4316         * doc/groff.texinfo: Integrated groff_out.man.
4317         Some macro fixes.
4319 2002-04-23  Werner LEMBERG  <wl@gnu.org>
4321         * man/groff_out.man: Minor fixes.
4323 2002-04-23  Werner LEMBERG  <wl@gnu.org>
4325         * doc/groff.texinfo: Moving @cindex entries after @Def* to get
4326         correct page references.
4327         Fixed many index entries.
4329 2002-04-23  Bernd Warken  <bwarken@mayn.de>
4331         * man/roff.man: Enlarged.
4333 2002-04-22  Werner LEMBERG  <wl@gnu.org>
4335         * doc/groff.texinfo: More examples, other fixes.
4337 2002-04-20  Werner LEMBERG  <wl@gnu.org>
4339         * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
4340         will now form a chain, e.g.
4342           .pi foo
4343           .pi bar
4345         is now the same as
4347           .pi foo | bar
4349         This is for compatibility with plan 9's troff.
4351         * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
4352         with UNIX troff.
4353         * NEWS: Updated.
4355         * doc/groff.texinfo: Add documentation of remaining requests and
4356         registers.
4358 2002-04-19  Werner LEMBERG  <wl@gnu.org>
4360         * doc/groff.texinfo: Add documentation of remaining escapes.
4362         * font/devdvi/generate/tc.map: Remove entry for `sr'.
4363         * font/devdvi/*TC: Regenerated.
4365 2002-04-18  Werner LEMBERG  <wl@gnu.org>
4367         * src/roff/troff/input.cc (token::next): Make \H behave consistently
4368         if not in compatibility mode, i.e., increment relative to the
4369         previous height.
4370         * doc/groff.texinfo: Updated accordingly.
4372 2002-04-17  Werner LEMBERG  <wl@gnu.org>
4374         * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
4376 2002-04-16  Bernd Warken  <bwarken@mayn.de>
4378         * src/roff/groff/groff.man: Improve documentation of -P option.
4379         Other minor fixes.
4381 2002-04-15  Werner LEMBERG  <wl@gnu.org>
4383         Add new escape \F to switch font family.
4385         * src/roff/troff/input.cc (token::next): Handle \F.
4386         * src/roff/troff/env.cc (environment::set_family): Handle
4387         `interrupted' flag.
4388         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
4389         Document it.
4391 2002-04-14  Werner LEMBERG  <wl@gnu.org>
4393         * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
4394         spaces in tags.
4396 2002-04-13  Werner LEMBERG  <wl@gnu.org>
4398         Implement \f[] as an alternative to \fP.  Change \mP and \MP to
4399         \m[] and \M[], respectively.
4401         * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
4402         (symbol::symbol): Handle NULL string and empty string differently.
4403         * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
4404         * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
4405         Add optional parameter.
4406         Updated calling functions.
4407         (get_copy, do_glyph_color, do_fill_color, token::next): Use
4408         `symbol::is_empty'.
4409         * src/roff/troff/env.cc (environment::set_font): Ditto.
4411         * src/preproc/pic/troff.cc (troff_output::set_fill,
4412         troff_output::reset_color: Updated.
4414         * tmac/www.tmac: Updated.
4416         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
4417         doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
4418         Updated.
4420         * tmac/Xps.tmac: Remove some redundant code.
4422         * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
4423         tmac/dvi.tmac, contrib/groffer/groffer.man, man/roff.man,
4424         man/groff_out.man, man/groff.man, man/groff_diff.man,
4425         src/roff/groff/groff.man: Replace \f[P] with \f[].
4427 2002-04-13  Bernd Warken  <bwarken@mayn.de>
4429         * src/include/printer.h, src/libs/libdriver/printer.cc
4430         (printer::change_fill_color): New member function.
4431         * src/libs/libdriver/input.cc (parse_D_command): Use it.
4433 2002-04-12  Werner LEMBERG  <wl@gnu.org>
4435         * doc/groff.texinfo: Completed pass on gtroff reference.
4437 2002-04-11  Werner LEMBERG  <wl@gnu.org>
4439         * doc/groff.texinfo: More fixes.
4441 2002-04-11  Bernd Warken  <bwarken@mayn.de>
4443         * src/include/color.h: Decorate with `const'.
4444         Use `size_t'.
4445         Include `stddef.h'.
4446         * src/libs/libgroff.color.cc: Decorate with `const'.
4447         Use `size_t'.
4448         (color::color): Initialize members.
4449         * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
4450         command according to the documentation.
4452         * man/groff_out.man: Updated.
4453         Minor fixes.
4455 2002-04-11  Gaius Mulley  <gaius@glam.ac.uk>
4457         * src/preproc/html/pre-html.cc (write_start_image): Remove
4458         redundant output.
4459         * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
4461         * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
4462         \C'hy' caused an assertion failure.
4464         * src/roff/troff/env.cc (environment::environment): Initialize
4465         `emitted_node'.
4466         (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
4468 2002-04-10  Werner LEMBERG  <wl@gnu.org>
4470         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
4471         Document pvs request and .pvs register.
4473 2002-04-09  Werner LEMBERG  <wl@gnu.org>
4475         * doc/groff.texinfo: Improve and fix documentation of diversions
4476         and environments.
4478 2002-04-08  Werner LEMBERG  <wl@gnu.org>
4480         * doc/groff.texinfo: Fix documentation of drawing functions.
4481         Other minor fixes.
4483 2002-04-07  Werner LEMBERG  <wl@gnu.org>
4485         * doc/groff.texinfo: Better documentation of double quotes as
4486         arguments.
4487         Other minor fixes.
4489 2002-04-06  Werner LEMBERG  <wl@gnu.org>
4491         * man/groff_font.man: Document names of special characters better.
4492         * doc/groff.texinfo: Minor improvements.
4494         * tmac/lbp.tmac: Load latin1.tmac.
4495         * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
4497         * font/devX*/*: Regenerated (all chars > 0x80 removed).
4499 2002-04-05  Werner LEMBERG  <wl@gnu.org>
4501         * tmac/tty.tmac: Don't use shc request.
4502         * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
4503         * NEWS: Updated.
4505         * man/groff_diff.man: Minor fixes.
4507         * font/devlbp/*: Remove all `charXXX' entities.
4509         * src/libs/libgroff/font.cc (font::~font): Deallocate
4510         `special_device_coding'.
4511         (font::load): Use `new' for allocating `special_device_coding'.
4512         * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
4513         Removed unused member.
4515 2002-04-05  Werner LEMBERG  <wl@gnu.org>
4517         * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
4518         (resource_manager::do_begin_binary,
4519         resource_manager::do_begin_data): Use it.
4521         * doc/texinfo.tex: Updated to version 4.2.
4523         * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
4524         (token::zero_width_break): New inline function.
4525         * src/roff/troff/input.cc (token::next): Use it.
4526         (token::description): Updated.
4527         (encode_char): Ignore `\%', `\&', `\)', and `\:'.
4528         (token::add_to_node_list, token::process): Use it.
4529         * NEWS, doc/groff.texinfo: Updated.
4531         * src/preproc/eqn/over.cc (over_box::output): Fix typo.
4532         * tmac/tty.tmac: Add missing backslash.
4534 2002-04-04  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
4536         * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
4537         `.ps' register instead of `.s' to handle fractional point sizes.
4538         * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
4539         limit_box::output): Ditto.
4540         * src/preproc/eqn/other.cc (size_box::compute_metrics,
4541         size_box::output): Ditto.
4542         * src/preproc/eqn/over.cc (over_box::compute_metrics,
4543         over_box::output): Ditto.
4544         * src/preproc/eqn/script.cc (script_box::compute_metrics,
4545         script_box::output): Ditto.
4546         * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
4547         sqrt_box::output): Ditto.
4549 2002-04-03  Michael Selway  <mas@ssl.co.uk>
4551         * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
4552         Fix typo.
4554 2002-04-03  Werner LEMBERG  <wl@gnu.org>
4556         * doc/homepage.ms: Reduce title size.
4557         * doc/groff.texinfo: Fix documentation of .t register.
4558         Fix handling of colon.
4559         Fix `\' vs. `\\'.
4561         * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
4562         only if page length is positive to avoid a loop.
4564         * tmac/an-old.tmac (ne): Increase page length to avoid problems with
4565         tbl.
4567 2002-04-02  P. Alejandro Lopez-Valencia  <dradul@yahoo.com>
4569         * src/include/nonposix.h, src/roff/groff/pipeline.c:
4570         s/__CYGWIN32__/__CYGWIN__/.
4572 2002-03-28  Gaius Mulley  <gaius@glam.ac.uk>
4574         * doc/gnu.xpm: New image contributed by Emily Mulley.
4575         * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
4576         (homepage.html): Be dependent on gnu.eps.
4577         * doc/homepage.ms: Updated to new image.
4579         * src/devices/grohtml/post-html.cc (html_printer): New member
4580         `sbuf_prev_hpos'.
4581         (html_printer::flush_sbuf, html_printer::set_char): Set it.
4582         (html_printer::sbuf_continuation): Use it.
4584 2002-03-28  Werner LEMBERG  <wl@gnu.org>
4586         * src/libs/libgroff/getopt.c: Updated to latest version.
4588         * tmac/README: More on hyphen.tex license.
4590 2002-03-26  Larry Kollar  <kollar@alltel.net>
4592         * doc/groff.texinfo: Add documentation of most missing requests.
4594 2002-03-25  Werner LEMBERG  <wl@gnu.org>
4596         Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
4597         of `+-', `mu', and `di', respectively.
4599         * font/devascii/R.proto, font/devutf8/R.proto,
4600         font/devlatin1/R.proto, font/devhtml/R.proto,
4601         font/devcp1047/R.proto, font/devlpb/*: Add them.
4602         * font/devps/generate/textmap: Ditto.
4603         * font/devps/*: Regenerated.
4604         * font/devlj4/generate/text.map: Add them.
4605         * font/devlj4/*: Regenerated.
4606         * font/devdvi/generate/tc.map: Use them.
4607         * font/devdvi/generate/texsy.map: Add them.
4608         * font/devdvi/*: Regenerated.
4609         * font/devX*/*: Regenerated.
4611         * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
4612         tmac/tty-char.tmac: Updated.
4614         * NEWS, man/groff_char.man: Updated.
4616 2002-03-24  Werner LEMBERG  <wl@gnu.org>
4618         * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
4619         tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
4620         * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
4621         we use `.fchar' in dvi.tmac.
4622         * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
4623         * tmac/Xps.tmac: Simplify some char definitions.
4624         Add definition for \[f/].
4625         * man/groff_char.man: Updated for new X.tmac.
4627         * tmac/README: New file.
4629 2002-03-23  Phil Lobbes  <phil@perkpartners.com>
4631         * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
4632         internal .y.o rule took precendence over the .y.cc rule, compiling
4633         the yacc files with gcc instead of g++.
4635 2002-03-23  Werner LEMBERG  <wl@gnu.org>
4637         * tmac/dvi.tmac: Add replacement font for `CB'.
4639         * tmac/doc.tmac: s/request/macro/ in messages.
4640         (doc-generic-macro): Improve error message.
4641         * tmac/groff_mdoc.man: Minor improvements.
4643 2002-03-22  Werner LEMBERG  <wl@gnu.org>
4645         * doc/groff.texinfo: Document possible conflict between `tr' and
4646         `char' requests.
4648 2002-03-21  Werner LEMBERG  <wl@gnu.org>
4650         Improve handling of hyphenation patterns.  It is now possible to
4651         use most of TeX's pattern files unmodified.  To make the process
4652         more flexible, a new request `hpfcode' has been added which
4653         provides a character code mapping for the `hpf' request.  See
4654         comment before hpf_getc() for more details.
4656         * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
4657         functions.
4658         (read_patterns_file): Additional parameter for exception dictionary.
4659         Extended to recognize \pattern, \hyphenation, and \endinput.
4660         (do_hyphenation_patterns_file): Updated.
4661         * src/roff/troff/env.h (hpf_code_table): New extern.
4663         * src/roff/troff/input.cc (hpf_code_table): New array.
4664         (init_hpf_code_table, hyphenation_patterns_file_code): New
4665         functions.
4666         (hyphenation_code): Handle translation from `trin' correctly.
4667         (main, init_input_requests): Updated.
4668         (charinfo::set_translation): Handle hyphenation code also.
4670         * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
4671         inline function.
4673         * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
4674         char' is used for offsets in hyphenation exceptions.
4676         * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
4678         * NEWS, man/groff_diff.man, man/groff.man: Document it.
4680 2002-03-20  Larry Kollar  <kollar@alltel.net>
4682         * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
4683         requests.
4685 2002-03-18  Werner LEMBERG  <wl@gnu.org>
4687         * tmac/html.tmac: Fix serious typo.
4689 2002-03-17  Larry Kollar  <kollar@alltel.net>
4691         * doc/groff.texinfo: Add documentation for `writec' request.
4693 2002-03-17  Werner LEMBERG  <wl@gnu.org>
4695         Added request `hpfa' to append hyphenation patterns.
4697         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
4698         parameter `append'.
4699         (hyphenation_patterns_file): Renamed to...
4700         (do_hyphenation_patterns_file): This.
4701         (hyphenation_patterns_file, hyphenation_patterns_file_append): New
4702         functions.
4703         (init_hyphen_requests): Updated.
4704         * NEWS, man/groff.man, man/groff_diff.man: Document it.
4706 2002-03-16  Werner LEMBERG  <wl@gnu.org>
4708         Added request `writec' in analogy to `tmc'.
4710         * src/roff/troff/input.cc (write_request): Renamed to...
4711         (do_write_request): This.
4712         Added one parameter.
4713         (write_request, write_request_continue): New functions.
4714         (init_input_requests): Updated.
4715         * NEWS, man/groff.man, man/groff_diff.man: Document it.
4717         * font/devdvi/DESC.in (sizes): Allow all sizes in the range
4718         5-10000pt.
4719         * NEWS: Document it.
4721 2002-03-15  Werner LEMBERG  <wl@gnu.org>
4723         * man/groff.man: Add writem request.
4725         Add request `trin' (translate input) to make `.asciify' work
4726         correctly.  This is necessary since `charXXX' entity names are no
4727         longer hardcoded in font definition files.
4729         * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
4730         `translate_input' members.
4731         (charinfo::set_asciify_code, charinfo::get_asciify_code,
4732         charinfo::set_translation_input): New methods.
4733         (charinfo::set_translation): Add third argument.
4734         * src/roff/troff/input.cc (charinfo:set_translation): Set
4735         `asciify_code'.
4736         (do_translate): Add second argument.
4737         (translate_input): New function.
4738         (init_input_requests): Updated.
4739         * src/roff/troff/node.cc (glyph_node::asciify,
4740         composite_node::asciify): Use `get_asciify_code'.
4742         * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
4744         * NEWS, man/groff.man, man/groff_diff.man: Updated.
4746 2002-03-14  Larry Kollar  <kollar@alltel.net>
4748         * doc/groff.texinfo: Improve documentation of .RS and .RE.
4750 2002-03-14  Werner LEMBERG  <wl@gnu.org>
4752         Add a new request `sizes' similar to the `sizes' command in DESC
4753         files.
4755         * src/roff/troff/env.cc (override_sizes): New function.
4756         (init_env_requests): Use it.
4757         * src/roff/troff/token.h: Export `read_string'.
4758         * NEWS, man/groff_diff.man, man/groff.man: Document it.
4760 2002-03-12  Werner LEMBERG  <wl@gnu.org>
4762         * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
4764 2002-03-10  Werner LEMBERG  <wl@gnu.org>
4766         * tmac/pspic.tmac: Add support for -Tdvi.
4767         * tmac/dvi.tmac: Include pspic.tmac.
4768         * src/devices/grodvi/grodvi.man: Document it.
4769         * NEWS: Updated.
4771         * font/devlj4/generate/Makefile: Fix URL of metric files.
4773 2002-03-09  Werner LEMBERG  <wl@gnu.org>
4775         * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
4777 2002-03-09  Larry Kollar  <kollar@alltel.net>
4779         * tmac/groff_ms.man: Add documentation for RS and RE macros.
4781 2002-03-08  Werner LEMBERG  <wl@gnu.org>
4783         * doc/groff.texinfo: Fixes for texinfo 4.1.
4785 2002-03-07  Werner LEMBERG  <wl@gnu.org>
4787         * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
4788         included.
4789         Handle CYGWIN properly.
4791 2002-03-07  Paco Andrés Verdú  <pandres@dragonet.es>
4793         * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
4794         * tmac/lbp.tmac: Add some font translations.
4796 2002-03-02  Werner LEMBERG  <wl@gnu.org>
4798         * font/devcp1047/R.proto, font/devlatin1/R.proto,
4799         font/devhtml/R.proto: Remove `charXXX'  entries.
4800         * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
4801         where appropriate.
4803         * font/devlj4/generate/text.map: Remove `charXXX' entries.
4804         * font/devlj4/*: Regenerated all font definition files.
4805         * tmac/lj4.tmac: Load latin1.tmac.
4807         * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
4808         from 2000-06-17: LJ4 metric files are *not* text files.
4810         * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
4811         register to test for EBCDIC.
4813 2002-03-01  Werner LEMBERG  <wl@gnu.org>
4815         * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
4816         files (as grops already does).
4817         * src/utils/afmtodit/afmtodit.man: Document comment lines in map
4818         files.
4819         * src/devices/grops/grops.man: Document comment lines in encoding
4820         files.
4822         * tmac/cp1047.tmac: New file.
4823         * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
4824         * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
4825         * tmac/Makefile.sub (NORMALFILES): Updated.
4827         * tmac/ec.tmac: Don't load latin1.tmac again.
4829         * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
4830         font/devps/generate/dingbats.map,
4831         font/devps/generate/dingbats.rmap, font/devps/text.enc,
4832         font/devps/generate/Makefile (symbolmap): Add header comment.
4833         * font/devps/generate/textmap: Ditto.
4834         Remove `charXXX' entries.
4835         * font/devps/symbolmap: Regenerated.
4836         * font/devps/*: Regenerated all font definition files.
4838 2002-02-28  Werner LEMBERG  <wl@gnu.org>
4840         Add color support to grodvi (for drawing colors are currently
4841         translated to gray values).
4843         * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
4844         (dvi_printer): Add `cur_color' member.
4845         (dvi_printer::set_color): New function.
4846         (draw_dvi_printer): Remove `fill'.
4847         (draw_dvi_printer::fill_next): Pass environment as parameter.
4848         Update code for new color support translated to gray.
4849         (dvi_printer::set_char): Updated.
4850         (dvi_printer::begin_page, dvi_printer::end_page): Handle color
4851         changes crossing the page border.
4852         (dvi_printer::draw): Updated.
4853         Remove cases `f' and `F'.
4854         * tmac/dvi.tmac: Add color definitions.
4855         * NEWS, src/devices/grodvi/grodvi.man: Updated.
4857         * tmac/an-old.tmac (R): Make this a macro to emit a warning if
4858         used incorrectly.
4860         * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
4861         versions of autoconf.
4862         * configure: Updated.
4864         * doc/homepage.ms: Use `.blm'.
4865         * tmac/www.tmac (www-depth): New auxiliary variable.
4866         (www-pop-level): Don't issue HTML tag.
4867         (ULS, ULE, LI): Use absolute indentation.
4869         * src/devices/grops/ps.cc (ps_printer::begin_page,
4870         ps_printer::end_page): Switch forth and back to default color while
4871         starting a new page.
4873 2002-02-27  Werner LEMBERG  <wl@gnu.org>
4875         Add EC and TC fonts to devdvi.
4877         * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
4878         * font/devdvi/generate/cork.map: Renamed to...
4879         * font/devdvi/generate/ec.map: This.
4880         Remove entry for `aq'.
4881         * font/devdvi/generate/tc.map: New file.
4882         * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
4883         EC and TC fonts.
4884         (FONTS): Updated.
4885         * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
4886         * font/devdvi/Makefile.sub (DEVFILES): Updated.
4887         * tmac/ec.tmac: New file.
4888         * tmac/Makefile.sub (NORMALFILES): Updated.
4889         * NEWS, src/devices/grodvi/grodvi.man: Updated.
4890         * man/groff_char.man: Check `ECFONTS' register.
4892         * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
4894 2002-02-26  Werner LEMBERG  <wl@gnu.org>
4896         * font/devdvi/generate/*.map: Remove all `charXXX' entries.
4897         * font/devdvi/generate/cork.map: Add 'y and 'Y.
4898         * font/devdvi/*: Updated.
4899         * tmac/dvi.tmac: Formatting.
4901         Add font `HBI' for the dvi output.
4902         Add support for font families `T' and `H'.
4904         * font/devdvi/HBI: New file.
4905         * font/devdvi/B: Renamed to ...
4906         * font/devdvi/TB: This.
4907         * font/devdvi/BI: Renamed to ...
4908         * font/devdvi/TBI: This.
4909         * font/devdvi/I: Renamed to ...
4910         * font/devdvi/TI: This.
4911         * font/devdvi/R: Renamed to ...
4912         * font/devdvi/TR: This.
4913         * font/devdvi/H: Renamed to ...
4914         * font/devdvi/HR: This.
4915         * font/devdvi/Makefile.sub (DEVFILES): Updated.
4916         * font/devdvi/generate/Makefile (HBI): New rule.
4917         (FONTS): Updated.
4918         (R, I, B, BI, H): Renamed to ...
4919         (TR, TI, TB, TBI, HR): This, respectively.
4920         (srcdir): Fixed.
4921         * NEWS, src/devices/grodvi/grodvi.man: Updated.
4922         * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
4923         Add `styles' and `family' keywords.
4924         * tmac/dvi.tmac: Alias `H' to `HR'.
4925         Add some fspecial requests for italic fonts.
4926         Add TR and TI as special.
4927         Add support for `_' with font CWI.
4929         * src/roff/troff/number.cc (parse_expr): Add missing `break' for
4930         operator `:'.  Until now, the expression `0:1' would return 2
4931         instead of 1.
4933 2002-02-25  Werner LEMBERG  <wl@gnu.org>
4935         * man/groff_char.man: Added some missing PS glyph names (from the
4936         Adobe Glyph List).
4937         * font/devps/generate/textmap, font/devps/symbolmap: Add
4938         `arrowupdn'.
4940         * doc/groff.texinfo: Minor additions and fixes.
4941         * man/groff_diff.man: Remove documentation of fp request.  This
4942         is already covered in the original troff manual.
4943         Updated to be consistent with other doc files.
4944         * NEWS: Updated.
4946 2002-02-24  Werner LEMBERG  <wl@gnu.org>
4948         * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
4949         TTYDEVDIRS.
4950         Define new variable OTHERDEVDIRS (containing `font/devlj4
4951         font/devlbp' if not EBCDIC).
4952         * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
4953         (OTHERDEVDIRS): New variable.
4954         (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
4955         * configure: Regenerated.
4957         * NEWS, src/devices/grotty/grotty.man: Updated.
4959 2002-02-23  Werner LEMBERG  <wl@gnu.org>
4961         * src/roff/troff/input.cc (do_overstrike, do_bracket,
4962         get_line_arg): Honour input level.
4964         Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
4966         * font/*/*: Implement it in all font files.
4967         * font/devps/generate/textmap, font/devps/generate/symbolchars,
4968         * font/devps/symbolmap: Updated.
4969         * font/devlj4/generate/text.map: Updated.
4970         * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
4971         * font/devdvi/generate/texmi.map: Updated.
4973         * font/devutf8/R.proto: Remove all `charXXX' entries.
4974         * font/devutf8/NOTES: Updated.
4976         * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
4977         version 4.1.0.
4979         * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
4981         * NEWS, man/groff_char.man: Updated.
4983 2002-02-21  Phil Lobbes  <phil@perkpartners.com>
4985         * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
4987 2002-02-20  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
4989         * src/roff/grog/grog.pl: Fix computation of $refer.
4991 2002-02-19  Werner LEMBERG  <wl@gnu.org>
4993         * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
4994         `snprintf' and `vsnprintf'.
4996         * src/include/htmlindicate.h: Renamed to...
4997         * src/include/htmlhint.h: This.
4998         * src/include/Makefile.sub: Updated.
4999         * src/preproc/eqn/main.cc: Updated.
5001 2002-02-18  Werner LEMBERG  <wl@gnu.org>
5003         * man/roff.man, man/groff_out.man, man/groff.man,
5004         man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
5005         src/roff/troff/troff.man: Updated to latest changes in www.tmac.
5007         * win32-diffs: Updated.
5009 2002-02-17  Werner LEMBERG  <wl@gnu.org>
5011         * doc/Makefile (clean): Add *.eps.
5012         (MEMACROS): Removed.
5013         (TFLAG): New variable.
5014         (TROFF): Use it.
5015         Add -ww.
5016         (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
5017         (.me.dit): Fixed.
5018         (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
5020         * tmac/www.tmac: Use dummy diversion while resetting and disabling
5021         `.tl'.
5022         * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
5023         unstripped.
5024         * src/roff/troff/troff.man: Fix order of parameter description.
5026         * NEWS: Updated.
5028 2002-02-16  Gaius Mulley  <gaius@glam.ac.uk>
5030         Simplify image handling for grohtml.
5031         Fix <p> bug.
5033         * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
5034         comment out.
5035         (html_text::dump_stack): Don't emit newline while debugging.
5036         (html_text::do_push) [DEBUGGING]: Print more info.
5037         (html_text::check_emit_text): Fix handling of <p>.
5038         * src/devices/grohtml/html.h: Updated.
5039         * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
5040         replacing `fputc', `fputs', `putc'.  If DEBUGGING is defined, they
5041         send its data to stderr also.
5042         Update all callers.
5043         (simple_output::space_or_newline) [DEBUGGING]: Removed.
5044         * src/devices/grohtml/post-html.cc (html_printer::do_links,
5045         html_printer::html_printer): Remove `DEBUGGING' conditionals.
5047         * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
5048         Removed.
5049         * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
5050         is_inline_image): Removed.
5051         (html_begin_suppress, html_end_suppress): Don't take a parameter.
5052         (graphic_start, graphic_end): Removed.
5053         * src/include/htmlindicate.h: Updated.
5054         * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
5055         (macroset_template): New global variable.
5056         (makeFileName): Use `macroset_template'.
5057         (write_end_image): Don't take a parameter.
5058         Don't emit newline.
5059         (write_start_image: Don't emit newline.
5060         (char_buffer::write_upto_newline): Updated.
5061         (char_buffer::skip_to_newline): Renamed to ...
5062         (char_buffer::skip_until_newline): This.
5063         Fix code.
5064         (char_buffer::write_file_troff, char_buffer::write_file_html):
5065         Simplified.
5066         (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
5067         (removeAllPages): Remove `DEBUGGING' conditionals.
5068         (addRegDef, dump_args): New functions.
5069         (char_buffer::do_html, char_buffer::do_image): Handle
5070         `www-image-template' command line variable.
5071         Add more debugging code.
5072         (addps4html): Removed.
5073         (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
5075         * src/preproc/eqn/main.cc: Include `ctype.h'.
5076         (suppress_html): Removed.
5077         (do_file): Updated.
5078         (inline_equation): Use `html_begin_suppress' and
5079         `html_end_suppress'.
5080         * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
5081         (troff_output::start_picture, troff_output::finish_picture):
5082         Updated.
5083         * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
5084         (process_input_file): Updated.
5086         * src/roff/troff/div.cc (page_number): Set page number only if the
5087         `ps4html' register isn't defined.
5088         * src/roff/troff/input.cc (image_no): New external variable.
5089         (do_suppress): Use it.
5090         * src/roff/troff/node.h (suppress_node::image_id): New member.
5091         * src/roff/troff/node.cc (image_no): Remove `static' keyword.
5092         (suppress_node::suppress_node): Initialize `image_id' member.
5093         (suppress_node::same): Handle `image_id' also.
5094         (suppress_node::copy): Updated.
5095         (last_image_id): New global variable.
5096         (suppress_node::tprint): Use it.
5098         * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
5099         HTML-IMAGE-END.
5100         * tmac/pspic.mac (PSPIC): Fix html support.
5101         * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
5102         * tmac/www.tmac (www-image-template): Set up.
5103         (HTMLINDEX): Renamed to...
5104         (HX): This.
5105         (BODYCOLOR): Renamed to...
5106         (BCL): This.
5107         (BACKGROUND): Renamed to...
5108         (BGIMG): This.
5109         (URL): Change order of parameters for consistency.
5110         (MAILTO): Renamed to...
5111         (MTO): This.
5112         (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
5113         (IMG, PIMG, MPIMG): This.
5114         (HTML-H-BEGIN, HTML-H-END): Renamed to...
5115         (HnS, HnE): This.
5116         (LINKS): Renamed to...
5117         (LK): This.
5118         (LINE): Renamed to...
5119         (HR): This.
5120         (NO-AUTO-RULE): Renamed to...
5121         (NHR): This.
5122         (HTML-TL): Renamed to...
5123         (HTL): This.
5124         (UL-BEGIN, UL-END): Renamed to...
5125         (ULS, ULE): This.
5126         (DROPCAP): Renamed to...
5127         (DC): This.
5128         (TS, TE, EQ, EN): Provide default definitions.
5129         (www-make-unique-name): Updated.
5130         (HTML-IMAGE-INLINE): Fix typo.
5131         * tmac/groff_www.man: Updated.
5133         * doc/Makefile (homepage.html): Add option -r to grohtml.
5134         Use shortened image name.
5135         * doc/groff.texinfo: Updated info on grohtml strings and macros.
5136         * doc/homepage.ms: Updated and extended.
5138 2002-02-14  Werner LEMBERG  <wl@gnu.org>
5140         Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
5142         * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
5143         SGR_BACK_DEFAULT_COLOR): Replaced with ...
5144         (tty_printer::put_color): Use it.
5145         (ttr_printer::end_page): Simplify.
5147 2002-02-13  Werner LEMBERG  <wl@gnu.org>
5149         * tmac/groff_tmac.man: Moved to...
5150         * man/groff_tmac.man: This place.
5151         * tmac/Makefile.sub, man/Makefile.sub: Updated.
5153 2002-02-12  Werner LEMBERG  <wl@gnu.org>
5155         * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
5156         $(COMPILE.c) to not include groff's assert.h.
5158         * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
5159         variable.
5160         * NEWS, src/drivers/grotty/grotty.man: Document it.
5162 2002-02-11  Werner LEMBERG  <wl@gnu.org>
5164         * src/libs/snprintf/snprintf.c: Updated to latest version
5165         (2002-02-11).
5167         * src/roff/grog/grog.pl (process): Fix handling of `.['.  We now
5168         test whether there is `.]' also.
5169         Don't check for spaces after `.['.
5170         * src/roff/grog/grog.sh: Do the same.
5172 2002-02-10  Werner LEMBERG  <wl@gnu.org>
5174         Illegal -> Invalid.
5176         * src/libs/libgroff/illegal.cc: Renamed to ...
5177         * src/libs/libgroff/invalid.cc: This.
5178         (illegal_char_table): Renamed to ...
5179         (invalid_char_table): This.
5180         * src/libs/libgroff/Makefile.sub: Updated.
5181         * win32-diffs: Updated.
5183         * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
5184         src/libs/libdriver/input.cc (fatal_command, parse_color_command,
5185         parse_x_command), src/libs/libgroff/font.cc (text_file::next,
5186         font::load), src/preproc/eqn/main.cc (read_line, main),
5187         src/preproc/eqn/lex.cc (file_input::read_line),
5188         src/preproc/pic/lex.cc (file_input::read_line,
5189         simple_file_input::get, simple_file_input::peek),
5190         src/preproc/pic/main.cc (top_input::get, top_input::peek),
5191         src/preproc/pic/pic.man, src/preproc/refer/main.cc
5192         (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
5193         do_bib), src/preproc/tbl/main.cc (table_input::get),
5194         src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
5195         src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
5196         do_zero_width, read_request, encode_char, ps_get_line,
5197         transparent_file, get_char_for_escape_name, transparent_translate,
5198         asciify, input_char_description, read_string, set_string),
5199         src/roff/troff/env.cc (environment::add_html_tag),
5200         src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
5202         * src/include/lib.h: Updated.
5204         * src/preproc/eqn/eqn.cc: Removed.
5206         * NEWS: Updated.
5208         * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
5210 2002-02-09  Werner LEMBERG  <wl@gnu.org>
5212         * doc/gnu.xpm: New image.
5213         * doc/Makefile (DOCS): Add homepage.ps.
5214         Add rules for converting xpm->png and xpm->eps.
5215         Use `gnu.{xpm,eps}' as image names.
5216         * doc/homepage.ms: Updated.
5218 2002-02-09  Gaius Mulley  <gaius@glam.ac.uk>
5220         * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
5221         (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
5222         Remove calls to `B1' and `B2'
5223         (PNG-IMAGE): New macro for inclusion of images in PNG format.
5224         (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
5225         auxiliary variables for MARGIN-PNG-IMAGE.
5226         (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
5227         auxiliary macros for MARGIN-PNG-IMAGE.
5228         (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
5229         the margin.
5230         (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
5231         (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
5232         (DROPCAP): New macro to produce dropcap characters.
5233         (www-do-image): Renamed back to...
5234         (HTML-DO-IMAGE): This.
5235         Updated all callers.
5237         * doc/Makefile (gnubw.eps): Updated.
5238         * doc/homepage.ms: Updated.
5240 2002-02-08  Werner LEMBERG  <wl@gnu.org>
5242         * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
5243         Added `linethick' to table in section `Style Variables'.
5245 2002-02-08  Gaius Mulley  <gaius@glam.ac.uk>
5247         * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
5249 2002-02-07  Werner LEMBERG  <wl@gnu.org>
5251         Adding options -C (compatibility mode) and -c (grotty's old output
5252         scheme) to nroff.
5254         * src/roff/nroff/nroff.sh: Implement it.
5255         Remove `-Wall'.
5256         * NEWS, src/roff/nroff/nroff.man: Updated.
5258         * PROBLEMS: Document bison 1.32 bug.
5260         Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
5262         * src/roff/troff/node.cc (make_tfont): Define it earlier.
5263         * src/roff/troff/div.h: Add prototype for `end_diversions'.
5264         * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
5265         * src/roff/troff/env.h: Add prototype for `title'.
5267         Adding EBCDIC support to grotty.
5269         * src/devices/grotty/tty.cc (CSI): New macro.
5270         (SGR_*, tty_printer::put_color): Use it.
5272 2002-02-06  Werner LEMBERG  <wl@gnu.org>
5274         Implementing color support in grotty.  The new switch -c activates
5275         the old drawing scheme, disabling color at the same time.  The new
5276         switch `-i' selects italic instead of underlining (SGR only).
5278         * src/devices/grotty/tty.cc (putstring): New define instead of
5279         `fputs'.  Updated all callers.
5280         (old_drawing_scheme): New global variable.
5281         (COLOR_CHANGE): New enum value.
5282         (SGR_*): New defines containing color handling escape sequences.
5283         (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
5284         (glyph): New members `back_color_idx' and `fore_color_idx'.
5285         (glyph::order): Add COLOR_CHANGE.
5286         (tty_printer): New members `cur_fore_idx', `curr_back_idx',
5287         `is_underline', `is_bold', `cu_flag', `tty_colors'.
5288         New methods `make_underline', `make_bold', `color_to_idx',
5289         `change_color', `put_color'.
5290         (cu_flag): Moved into `tty_printer' class.
5291         (tty_printer::tty_printer): Initialize colors.
5292         (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
5293         tty_printer::draw, tty_printer::end_page): Handle colors also.
5294         (main): Add options `-c' and `-i'.
5295         (usage): Updated.
5296         * NEWS, src/devices/grotty/grotty.man: Updated.
5298         * src/include/errarg.h (errarg): Add support for `unsigned int'.
5299         * src/libs/libgroff/errarg.c: Implement it.
5301         * src/include/printer.h (printer): Add `change_color' method
5302         (currently used by grotty only).
5303         * src/libs/libdriver/printer.cc: Implement it.
5304         * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
5305         call to `pr->change_color'.
5307         * src/roff/troff/node.cc (troff_output_file::fill_color,
5308         troff_output_file::glyph_color): Call `do_motion'.
5310         * tmac/tty.tmac: Add color definitions.
5312         * src/roff/groff/groff.man: Minor fixes.
5314 2002-02-05  Bernd Warken  <bwarken@mayn.de>
5316         * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
5317         it.  This is a preparation for future changes.
5319 2002-02-05  Werner LEMBERG  <wl@gnu.org>
5321         * src/roff/troff/input.cc (process_input_stack): Fix the case
5322         where leading spaces are followed by \f or \s; previously, an
5323         incorrect space width has been used.
5325         * doc/roff.man (quoted_char): Fix argument.
5326         (comment): Define string.
5328 2002-02-04  Larry Kollar  <kollar@alltel.net>
5330         * doc/groff.texinfo: More fixes.
5332 2002-02-04  Werner LEMBERG  <wl@gnu.org>
5334         * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
5335         * src/preproc/eqn/main.cc (do_file, inline_equation): Call
5336         `restore_compatibility' before `output_string' -- the LINE_STRING
5337         register now already contains proper switches from and to
5338         compatibility mode.
5340         * man/groff_char.man: Add Euro symbol.
5341         * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
5342         * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
5343         * doc/groff.texinfo (Defstr*): Print strings with full syntax.
5344         Other minor fixes.
5346         * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
5347         texinfo->pdf.
5348         (.texinfo.html): Add support for texinfo->html.
5350 2002-02-03  Werner LEMBERG  <wl@gnu.org>
5352         Added three new requests `ds1', `as1', and `ami'.  The former two
5353         are equivalent to `ds' and `as' with the difference that
5354         compatibility mode is saved on entry, switched off during string
5355         expansion, and restored on exit.  The latter is the pendant to `dei'
5356         for `am'.
5358         (do_define_string): Use `define_mode' and `calling mode'.
5359         Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
5360         end of string, respectively.
5361         (define_string, append_string): Use `calling_mode'.
5362         (define_nocomp_string, append_nocomp_string,
5363         define_string_indirect): New functions.
5364         (init_input_requests): Updated.
5365         * NEWS, man/groff_diff.man, man/groff.man: Document it.
5367         * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
5368         `as1' for assigning LINE_STRING (this is `10' usually).  Sun's
5369         mm macro package accesses this string register directly.
5370         * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
5372         * tmac/trace.tmac: Trace calls to `am' also.  Make it work in
5373         compatibility mode.
5375 2002-02-02  Larry Kollar  <kollar@alltel.net>
5377         * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
5379 2002-01-31  Werner LEMBERG  <wl@gnu.org>
5381         * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
5383 2002-01-31  Bernd Warken  <bwarken@mayn.de>
5385         * src/devices/grolbp/lbp.cc (main): Delete `pr'.
5386         * man/groff_out.man: Revised and updated.
5388 2002-01-30  Bernd Warken  <bwarken@mayn.de>
5390         * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
5391         out the unused `{' and `}' commands.  Undefined by default.
5392         (IntArray): Make `data' private.
5393         (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
5394         new methods instead.
5395         (skip_line_D, skip_to_end_of_line): New functions.
5396         (get_D_fixed_args): Use `skip_line_D'.
5397         Changed to handle dummy odd arguments by ...
5398         (get_D_fixed_args_odd_dummy): This new function.
5399         (get_D_variable_args): Split some code into ...
5400         (get_possibly_integer_args): This new function.
5401         (send_draw): Use more `const'.
5402         (delete_current_env): New function.
5403         (position_to_end_of_args): Use `size_t'.
5404         Updated.
5405         (send_draw): Updated.
5406         (parse_D_command): Handle `c', `C', and `t' better.
5407         Updated.
5408         (do_file): Updated.
5410 2002-01-29  Werner LEMBERG  <wl@gnu.org>
5412         * NEWS: Revised.
5413         * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
5414         @Def...ListEnd which replaces @Def...x.  This is necessary to get
5415         proper HTML output -- see the comment in the file for more
5416         information.
5417         Updated all calls.
5419 2002-01-29  Gaius Mulley  <gaius@glam.ac.uk>
5421         Fixes to make color changes of 2002-01-21 work with grohtml.
5423         * src/devices/grohtml/post-html.cc (style): Updated.
5424         (html_printer): Remove unused methods.
5425         (html_printer::do_font, html_printer::draw, html_printer::set_char,
5426         html_printer::special): Updated.
5427         * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
5428         html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
5429         Added some debugging code.
5430         (html_text::start_tag): Updated.
5431         (html_text::do_push): New method.
5432         (html_text::push_para): Call it.
5433         Add method for handling color.
5434         (html_text::do_color): Updated.
5435         (html_text::shutdown): Handle color.
5436         * src/devices/grohtml/html-text.h (tag_definition): New member
5437         `col'.
5438         Updated.
5440 2002-01-28  Werner LEMBERG  <wl@gnu.org>
5442         * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
5444 2002-01-27  Gaius Mulley  <gaius@glam.ac.uk>
5446         Add two switches -a and -g to control the antialiasing bits for
5447         text and graphics, respectively.
5449         * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
5450         `-g'.
5451         * src/devices/grohtml/grohtml.man: Document them.
5452         * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
5453         New macros.
5454         (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
5455         (setupAntiAlias): New function.
5456         (createAllPages): Updated.
5457         (scanArguments): Handle `-a' and `-g'.
5458         (main): Call `setupAntiAlias'.
5459         * NEWS: Updated.
5461 2002-01-27  Werner LEMBERG  <wl@gnu.org>
5463         * doc/groff.texinfo (Def*): Call index function after deffn.
5465         * tmac/html.tmac: Call `nroff' request.
5467 2002-01-26  Larry Kollar  <kollar@alltel.net>
5469         * tmac/groff_ms.man: Add some omissions.
5471 2002-01-25  Larry Kollar  <kollar@alltel.net>
5473         * tmac/groff_ms.man: Typographical improvements.
5475 2002-01-25  Werner LEMBERG  <wl@gnu.org>
5477         * doc/groff.texinfo: Updated version and copyright.
5478         * src/devices/grops/grops.man: Updated.
5480         * tmac/groff_tmac.man: Fix `ig' macro.
5482         * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
5483         nroff mode.
5484         Use `.ne' unconditionally everywhere.
5485         (TS): Only insert some vertical space.  Doing a page break is no
5486         longer necessary due to the redefinition of the `ne' request.
5488         * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
5489         warning for unknown subcommands but parse and pass them to the
5490         device driver.
5492 2002-01-24  Werner LEMBERG  <wl@gnu.org>
5494         * tmac/groff_www.man, NEWS: Fix typos.
5496 2002-01-21  Werner LEMBERG  <wl@gnu.org>
5498         Complete revision of color support:
5500           Adapt programs to the new libdriver/input.cc.
5502           Color spaces are no longer converted to RGB but transferred as-is
5503           in the troff intermediate output format.
5505           Handle default color gracefully.  troff now supports a `default'
5506           color (which can't be changed).
5508           grops will now use the proper color space functions if available.
5510           Update pic.
5512         Note that currently grohtml doesn't handle colors properly.  This
5513         has to be fixed.
5515         * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
5516         (ui_to_a): New function.
5517         * src/include/lib.h: Updated.
5519         * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
5520         (color): Simplified; removed all `double' members and methods.
5521         A new array `components' now holds the color parameters.
5522         (color::is_default, color::get_components): New methods.
5523         (color::operator==, color:operator!=): New.
5524         (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
5525         to make access to the `components' array more comprehensible.
5526         * src/libs/libgroff/color.cc: Implement new color support.
5527         (atoh): Small fixes.
5528         (color::read_encoding): Simplified for new troff intermediate color
5529         output format.
5530         (default_color): New global variable.
5532         * src/roff/troff/input.cc (default_symbol): New global variable.
5533         (lookup_color): Use it.
5534         (default_black): Removed.
5535         (do_glyph_color, do_fill_color): Simplified.
5536         (define_color): Handle default color.
5537         Improve warnings.
5538         (do_if_request): Handle default color.
5539         * src/roff/troff/env.cc (environment::environment): Initialize
5540         colors with `default_color'.
5541         * src/roff/troff/node.cc (troff_output_file::put): Add method
5542         for `unsigned int'.
5543         (troff_output_file::hex): Removed.
5544         (troff_output_file::fill_color, troff_output_file::glyph_color):
5545         Updated to include/color.h and libdriver/input.cc.
5547         * src/preproc/pic/object.cc (draw_arrow): New parameter to set
5548         fill color properly (identically to the outline color).  \D'f...'
5549         doesn't work any more.
5550         All function calls to it updated.
5552         * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
5553         Updated.
5554         * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
5555         Updated.
5557         * src/devices/grops/ps.cc (ps_output::put_color): New method.
5558         (ps_printer::sbuf_color): Make a real member instead of pointer.
5559         (ps_printer::fill_color, ps_printer::output_color): Removed.
5560         (ps_printer::ps_printer): Updated.
5561         (ps_printer::set_char): Ditto.
5562         (ps_printer::set_color): Use various color schemes.
5563         Use `put_color' method.
5564         (ps_printer::flush_sbuf): Don't set color.
5565         (ps_printer::fill_path): Take `environment' as parameter.
5566         Simplify color handling.
5567         (ps_printer::set_line_thickness): Renamed to ...
5568         (ps_printer::set_line_thickness_and_color): This (and updated).
5569         (ps_printer::set_color): Change second parameter from `complete'
5570         to `fill' which better describes what it does.
5571         (ps_printer::draw): Call `flush_sbuf' to output graphic commands
5572         and text in the right order.
5573         Updated.
5574         Remove branches for `f' and `F'; this is handled by
5575         libdriver/input.cc.
5576         * src/devices/grops/ps.h: Updated.
5577         * font/devps/prologue (FL): Redefined.
5578         ({F,C}r,k,g: New color functions (with and without filling).
5580         * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
5581         * man/groff_diff.man, man/groff.man, man/groff_out.man,
5582         doc/groff.texinfo, NEWS: Updated.
5584 2002-01-20  Bernd Warken  <bwarken@mayn.de>
5586         * src/libs/libdriver/input.cc: Completely rewritten.  See comments
5587         in this file for what has been changed.
5589 2002-01-19  Werner LEMBERG  <wl@gnu.org>
5591         * test-groff: Fix GROFF_FONT_PATH.
5592         * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
5593         is read before .TH or .Dd is parsed.
5595 2002-01-18  Gaius Mulley  <gaius@glam.ac.uk>
5597         * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
5598         quadrant boundaries.
5600 2002-01-18  Werner LEMBERG  <wl@gnu.org>
5602         * devices/grops/ps.cc: Aargh!  Fix the fix of the incorrectly
5603         applied last patch.
5605 2002-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
5607         * tmac/doc.common: Initialize %I register for the %I macro to
5608         avoid (harmless) warning.
5609         * tmac/doc.tmac (Bd): There is no reason to enforce -compact
5610         when in the SYNOPSIS section.
5612 2002-01-17  Bruno Haible  <haible@clisp.cons.org>
5614         * src/preproc/pic/lex.cc (get_token): Fix typo.
5616 2002-01-17  Werner LEMBERG  <wl@gnu.org>
5618         * devices/grops/ps.cc: Fix incorrectly applied last patch.
5620 2002-01-17  Larry Kollar  <kollar@alltel.net>
5622         * tmac/groff_ms.man: Completely rewritten.
5624 2002-01-16  Werner LEMBERG  <wl@gnu.org>
5626         * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
5628 2002-01-15  Gaius Mulley  <gaius@glam.ac.uk>
5630         * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
5631         fill colors.
5632         (ps_printer::draw): Ditto.
5634 2002-01-14  Ruslan Ermilov  <ru@FreeBSD.org>
5636         * tmac/groff_mdoc.man: Minor fixes.
5638 2002-01-13  Werner LEMBERG  <wl@gnu.org>
5640         * man/groff_out.man: Some fixes.
5642 2002-01-13  Gaius Mulley  <gaius@glam.ac.uk>
5644         * doc/pic.ms: Fix typos.
5646 2002-01-12  Werner LEMBERG  <wl@gnu.org>
5648         * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
5650 2002-01-10  Werner LEMBERG  <wl@gnu.org>
5652         * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
5653         symbols.
5654         * NEWS: Updated.
5656 2002-01-09  Bernd Warken  <bwarken@mayn.de>
5658         * man/groff_out.man: Revised.
5659         * man/roff.man: Minor fixes.
5660         * src/roff/troff/troff.man: Some reordering.
5662 2002-01-09  Werner LEMBERG  <wl@gnu.org>
5664         * tmac/an-old.tmac: Add dummy macros for equation support.
5666 2002-01-07  Werner LEMBERG  <wl@gnu.org>
5668         doc/groff.texinfo: Fix documentation of glyph searching algorithm.
5670         * tmac/an-old.tmac: Revert change 2001-12-23.  This breaks too many
5671         man pages.
5672         * tmac/groff_man.man: Small improvements.
5674 2002-01-07  Bernd Warken  <bwarken@mayn.de>
5676         * man/groff_diff.man: Revised.
5678 2002-01-06  Werner LEMBERG  <wl@gnu.org>
5680         * tmac/www.tmac: Remove extraneous backslash.
5682 2002-01-06  Bernd Warken  <bwarken@mayn.de>
5684         * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
5686 2002-01-05  Werner LEMBERG  <wl@gnu.org>
5688         Integrated groffer, contributed by Bernd Warken.
5690         * contrib/groffer/*: New.       
5691         * Makefile.in, NEWS: Updated.
5693 2002-01-04  Werner LEMBERG  <wl@gnu.org>
5695         * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
5696         registers defined in macro packages.
5697         Revising the ms part.
5699 2002-01-04  Larry Kollar  <kollar@alltel.net>
5701         * doc/groff.texinfo: Add documentation for ms macros.
5703 2002-01-02  Werner LEMBERG  <wl@gnu.org>
5705         First step in adding PS support for the Euro symbol.  `eu' is the
5706         official Euro logo, `Eu' is a font-specific glyph variant.
5708         * font/devps/text.enc: Add `Euro' at position 9.
5709         * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
5710         * font/devps/symbolmap: Regenerated.
5712         * NEWS: Updated.
5714 2002-01-02  Bernd Warken  <bwarken@mayn.de>
5716         * man/roff.man: Revised.
5718 2002-01-01  Bernd Warken  <bwarken@mayn.de>
5720         * src/roff/groff/groff.man: Completely rewritten.
5722 2001-12-31  Werner LEMBERG  <wl@gnu.org>
5724         * doc/Makefile: Updated.
5726 2001-12-30  Werner LEMBERG  <wl@gnu.org>
5728         * tmac/www.tmac: Make all names of internal macros/registers/strings
5729         lowercase, and prepend `www-'.
5730         Other minor changes.
5731         * src/roff/troff/troff.man: Add preprocessor string at BOF.
5733 2001-12-30  Gaius Mulley  <gaius@glam.ac.uk>
5735         Implement option `-b' in grohtml to set the HTML background colour.
5737         * src/devices/grohtml/post-html.cc (default_background): New global
5738         variable.
5739         (html_printer::html_printer): Initialize `background' to
5740         `default_background'.
5741         (main): Implement option `-b'.
5742         (usage): Updated.
5743         * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
5744         of `-b' option.
5745         * src/devices/grohtml/grohtml.man: Updated.
5746         * doc/Makefile (.ms.html): Use `-b'.
5747         * tmac/html.tmac: Don't set background color.
5749         Add new grohtml tag `.html-tl'.
5751         * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
5752         member variable.
5753         (title_desc::title_desc): Updated.
5754         (html_printer::troff_tag): Handle `.html-tl'.
5755         (html_printer::write_title): Use `with_h1'.
5756         * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
5757         (HTML-TL): New macro.
5759         Add support for unordered lists in HTML.
5761         * tmac/www.tmac (www-level): New auxiliary register.
5762         (www-level1, www-level2, www-level3): New auxiliary strings.
5763         (www-push-level, www-pop-level): New auxiliary macros
5764         (UL-BEGIN, UL-END, LI): User macros for unordered lists.
5766         Miscellaneous.
5768         * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
5769         (DEFAULT_VERTICAL_OFFSET): Removed.
5770         (IMAGE_BOARDER_PIXELS): Set to 0.
5771         (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
5772         (vertical_offset): Initialize with 0.
5773         (gsPaper): New global variable.
5774         (get_resolution): Scan for and return unsigned int.
5775         (get_papersize): New function to get paper length from devps/DESC.
5776         (determine_vertical_offset): New function.
5777         (createAllPages): Produce gray-level images and use proper page
5778         length.
5779         (createImage): Use `-quiet' option of pnmcrop.
5780         (addZ): Fix passing of `-Z'.
5781         (scanArguments): Fix handling of `-o'.
5782         (main): Call `determine_vertical_offset'.
5783         * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
5784         code for `l'.
5786         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
5787         * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
5788         glyph descenders properly.
5790         * doc/homepage.ms: Include `gnubw.eps'.
5791         * doc/Makefile (gnubw.eps): New rule.
5792         (homepage.html): Depend on `gnubw.eps'.
5794 2001-12-25  Werner LEMBERG  <wl@gnu.org>
5796         * src/roff/troff/input.cc (default_black): Fix return value.
5798 2001-12-24  Ruslan Ermilov  <ru@FreeBSD.org>
5800         * tmac/doc-common (Dt): Change output of architecture strings.
5801         Do some syntax cleanup.
5802         * tmac/groff_mdoc.man: Updated.
5804 2001-12-23  Werner LEMBERG  <wl@gnu.org>
5806         Adding an `itc' request (input line trap accepting \c).
5808         * src/roff/troff/env.h (environment): New member
5809         `continued_input_trap'.
5810         Make `do_input_trap' a friend function instead of `input_trap'.
5811         * src/roff/troff/env.cc (environment::environment,
5812         environment::copy): Updated.
5813         (environment::newline): Implement it.
5814         (do_input_trap): New function.
5815         (input_trap): Call `do_input_trap'.
5816         (input_trap_continued): New function.
5817         (init_env_requests): Updated.
5818         * src/roff/troff/TODO: Updated.
5820         * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
5821         `.it'.
5823         * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
5825 2001-12-22  Ruslan Ermilov  <ru@FreeBSD.org>
5827         * tmac/doc-common, tmac/doc-syms: Small updates.
5829 2001-12-22  Colin Watson  <cjwatson@debian.org>
5831         * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
5833 2001-12-22  Bernd Warken  <bwarken@mayn.de>
5835         * MANIFEST: New file.
5837 2001-12-22  Werner LEMBERG  <wl@gnu.org>
5839         * src/preproc/grn/grn.man: Updated.
5841 2001-12-22  Solar Designer  <solar@openwall.com>
5843         * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
5844         (DBRead): Use it.
5846 2001-12-19  Werner LEMBERG  <wl@gnu.org>
5848         Implement a fallback character request `.fchar'.
5850         * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
5851         (is_fallback): New inline function.
5852         * src/roff/troff/input.cc (do_define_character): New function.
5853         (define_character): Call `do_define_character'.
5854         (define_fallback_character): New function.
5855         (init_input_requests): Add `fchar'.
5856         (charinfo::charinfo): Updated.
5857         (charinfo::set_macro): New argument to set `fallback' flag.
5858         * src/roff/troff/node.cc (make_glyph_node, make_node,
5859         node::add_char): Check `fallback' flag.
5860         * NEWS, man/groff_diff.man, man/groff_man: Updated.
5862 2001-12-16  Werner LEMBERG  <wl@gnu.org>
5864         * groff.texinfo: Document exact search algorithm for glyphs.
5866 2001-12-15  Werner LEMBERG  <wl@gnu.org>
5868         * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
5869         the left side of $(MANPAGES) rule to make it always non-empty.
5871 2001-12-14  Werner LEMBERG  <wl@gnu.org>
5873         * src/roff/troff/input.cc (default_black): Define default color
5874         `black' if not yet defined.
5876 2001-12-13  Werner LEMBERG  <wl@gnu.org>
5878         Implement new string-valued register `.fn' to return the current
5879         real (internal) font name.
5881         * env.cc (environment::get_font_name_string): New function.
5882         (init_env_requests): Add `.fn' register.
5883         * env.h (environment): Updated.
5884         * node.cc (font_info): Make `get_font_name' a friend.
5885         (get_font_name): New function.
5886         * node.h: Updated.
5888         * man/groff_diff.man, man/groff.man, NEWS: Updated.
5890 2001-12-12  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5892         * src/preproc/eqn/main.cc (inline_equation): Fix typos.
5894 2001-12-12  Werner LEMBERG  <wl@gnu.org>
5896         * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
5898 2001-12-10  Gaius Mulley  <gaius@glam.ac.uk>
5900         * man/groff_diff.man: Adding documentation for \O.
5902 2001-12-10  Werner LEMBERG  <wl@gnu.org>
5904         * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
5905         (scanArguments): Use PROG_PREFIX for the name of the troff binary.
5907 2001-12-09  Werner LEMBERG  <wl@gnu.org>
5909         * man/roff.man: Revised.
5910         * src/roff/groff/groff.man: Replace man page references with a
5911         pointer to roff.man.
5913 2001-12-09  Bernd Warken  <bwarken@mayn.de>
5915         * man/roff.man: Completely rewritten.
5917 2001-12-06  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5919         * src/preproc/eqn/main.cc (inline_equation): Improve error message.
5921 2001-12-05  Werner LEMBERG  <wl@gnu.org>
5923         * src/roff/troff/input.cc (get_delim_file_name): Removed since no
5924         longer used.
5925         * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
5926         order of initializers.
5927         * NEWS: Updated.
5929 2001-12-05  Gaius Mulley  <gaius@glam.ac.uk>
5931         * doc/groff.texinfo: Fix documentation of \O.
5933         * src/devices/grohtml/html-text.cc (html_text::do_indent,
5934         html_text::do_table, html_text::do_emittext, html_text::do_para):
5935         Use `const' for first argument.
5936         (html_text::do_table): Use cast.
5937         * src/devices/grohtml/html-text.h: Updated.
5938         * src/devices/grohtml/output.cc (simple_output::put_string): Add
5939         method for `const string &s'.
5940         * src/devices/grohtml/html.h: Updated.
5941         * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
5942         (ANCHOR_TEMPLATE): Modified.
5943         (manufacture_headings): New global variable to handle `-h' option.
5944         (is_subsection): Removed.
5945         (char_buffer::add_string): Add `const' to first argument.
5946         Protect against invalid string argument.
5947         Add method for `const string &s'.
5948         (text_glob): Completely redesigned.
5949         (page): Use `const' for strings and remove string length variable.
5950         (page::add_html): Removed.
5951         (page::add_end_encode): New member function.
5952         (to_unicode): Moved upwards.
5953         (title_desc, header_desc): Updated.
5954         (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
5955         definition.
5956         (html_printer::is_bold, html_printer::make_bold): New member
5957         functions.
5958         (html_printer::end_of_line): Updated.
5959         (generate_img_src, html_printer::do_auto_image,
5960         html_printer::do_title, html_printer::write_header,
5961         html_printer::determine_header_level, html_printer::do_heading,
5962         html_printer::do_linelength, html_printer::do_pageoffset,
5963         html_printer::do_indentation, html_printer::do_tempindent,
5964         html_printer::do_indentedparagraph, html_printer::do_break,
5965         html_printer::flush_sbuf, get_html_translation,
5966         html_printer::begin_page, html_printer::special): Rewritten to get
5967         rid of static string length limit.
5968         (html_printer::troff_tag): Added `.no-auto-rule'.
5969         (html_printer::flush_globs): Small fix.
5970         (html_printer::determine_space): Don't compute `space_width'.
5971         (html_printer::translate_to_html): Renamed to ...
5972         (html_printer::emit_html): This (with updates).
5973         (html_printer::write_header): Implement `-h' option.
5974         (html_printer::draw): Remove commented-out code.  Handle `F'
5975         command.
5976         (html_printer::add_char_to_sbuf): Removed.
5977         (html_printer::add_to_sbuf): Rewritten.
5978         (html_printer::sbuf_continuation): Fixed.
5979         (html_printer::seen_backwards_escape, reverse,
5980         html_printer::remove_last_char_from_sbuf): Removed.
5981         (char_translate_to_html, str_translate_to_html): Removed.
5982         (html_printer::overstrike): New function member.
5983         (html_printer::set_char): Use it.
5984         (html_printer::do_body): New function member.
5985         (html_printer::~html_printer): Use it.
5986         (main): Handle `-h' option.
5987         (usage): Updated.
5988         * src/devices/grohtml/grohtml.man: Document -h switch.
5990         * src/preproc/html/pre-html.cc: Include searchpath.h
5991         Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
5992         (get_resolution): New function.
5993         (checkImageDir): Use `0777' permissions in mkdir()
5994         (write_start_image): Rewritten to use `\O[5...]'.
5995         (createImage, generateImages): Updated.
5996         (main): Handle `F' and `h' options.
5997         Use `get_resolution'.
5999         * src/roff/troff/input.cc (begin, end, image): Removed.
6000         (do_suppress): Take parameter.
6001         Handle modified syntax of `\O'.
6002         (token::next): Updated.
6003         (init_markup_requests): Removed.
6004         (main): Updated.
6006         * src/roff/troff/div.h: Add declaration for begin_page().
6008         * tmac/color-html.tmac: Removed.  Contents moved to...
6009         * tmac/html.tmac: Here.  Set background color.
6010         * tmac/color.tmac: Removed.  Contents moved to...
6011         * tmac/ps.tmac: Here.
6012         * tmac/www.tmac: Remove the title command when generating images
6013         for html.
6014         (NO_AUTO_RULE): New macro.
6015         (HTML_DO_IMAGE): Use revised `\O' escapes.
6016         * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
6018 2001-12-02  Werner LEMBERG  <wl@gnu.org>
6020         * tmac/groff_mdoc.man: Fix typo.
6022 2001-12-01  Colin Watson  <cjwatson@debian.org>
6024         * man/roff.man: Fix typo.
6026 2001-11-29  Werner LEMBERG  <wl@gnu.org>
6028         * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
6029         stdlib.h.
6031         * src/roff/troff/input.cc (read_draw_node): Emit error message if
6032         more than one argument to \D'f ...'.
6034         * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
6036 2001-11-28  Werner LEMBERG  <wl@gnu.org>
6038         * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
6039         loaded only once.
6041         * tmac/groff_man.man: Minor cosmetic fix.
6043 2001-11-27  Werner LEMBERG  <wl@gnu.org>
6045         * src/roff/groff/groff.man, tmac/groff_tmac.man,
6046         tmac/groff_www.man: s/mwww/www/.
6048 2001-11-26  Werner LEMBERG  <wl@gnu.org>
6050         * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
6051         * configure: Regenerated.
6052         * win32-diffs: Updated.
6054         * tmac/groff_mwww.tmac: Renamed to ...
6055         * tmac/groff_www.tmac: This.
6056         * tmac/mwww.tmac: Removed.
6057         * NEWS, tmac/Makefile.sub: Updated.
6059 2001-11-21  Werner LEMBERG  <wl@gnu.org>
6061         * doc/groff.texinfo: Improve documentation of the `\v' escape.
6062         Fix explanation of `\D' and `rt'.
6064 2001-11-20  Werner LEMBERG  <wl@gnu.org>
6066         * tmac/an-old.tmac (an-header): Set header length equal to page
6067         width.
6068         * doc/groff.texinfo: Improve documentation of `ne' request.  Other
6069         minor fixes.
6070         * NEWS: Small fix.
6072 2001-11-19  Werner LEMBERG  <wl@gnu.org>
6074         * NEWS, man/Makefile.sub: Updated.
6076 2001-11-19  Bernd Warken  <bwarken@mayn.de>
6078         * man/ditroff.man: New file.
6080 2001-11-17  Werner LEMBERG  <wl@gnu.org>
6082         * man/groff_differences.man: Renamed to ...
6083         * man/groff_diff.man: This.  Updated.
6084         * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
6086         * src/preproc/html/pushbackbuffer.cc: Renamed to ...
6087         * src/preproc/html/pushback.cc: This.  Updated.
6088         * src/preproc/html/pushbackbuffer.h: Renamed to ...
6089         * src/preproc/html/pushback.h: This.
6090         * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
6091         Updated.
6093         * src/libs/libgroff/htmlindicate.cc: Renamed to ...
6094         * src/libs/libgroff/htmlhint.cc: This.
6095         * src/libs/libgroff/Makefile.sub: Updated.
6097         * tmac/an-old.tmac (an-end): Fix page length.
6099 2001-11-16  Werner LEMBERG  <wl@gnu.org>
6101         * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
6102         * man/Makefile.sub: Include groff_differences.man.
6103         * VERSION: Set to 1.18.
6104         * REVISION: Set to 0.
6106 2001-11-16  Bernd Warken  <bwarken@mayn.de>
6108         * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
6109         the second dot (or ending macro name) to end a macro.
6110         * doc/groff.texinfo: Doc fix.
6112 2001-11-16  Ruslan Ermilov  <ru@FreeBSD.org>
6114         * tmac/doc-common (doc-header): Handle very long document titles
6115         better.
6117 2001-11-16  Werner LEMBERG  <wl@gnu.org>
6119         * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
6121 2001-11-15  Werner LEMBERG  <wl@gnu.org>
6123         * src/roff/troff/troff.man: Revised and split into troff.man and...
6124         * man/groff_differences.man: New file.
6125         * NEWS: Updated.
6127 2001-11-13  Werner LEMBERG  <wl@gnu.org>
6129         * tmac/an-old.tmac (TS, TE): New macros for table support.
6131 2001-11-12  Werner LEMBERG  <wl@gnu.org>
6133         * src/include/lib.h: Provide a fix for emx to not include
6134         groff-getopt.h.
6136 2001-10-27  Werner LEMBERG  <wl@gnu.org>
6138         * src/roff/troff/input.cc (substring_macro): Fix computation of
6139         boundary values.
6141 2001-10-20  Werner LEMBERG  <wl@gnu.org>
6143         Undo change from 2001-08-28.
6145         * src/roff/troff/input.cc (have_input): New global variable.
6146         (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
6147         in compatibility mode.
6148         (process_input_stack): Use it.
6150 2001-10-19  Ruslan Ermilov  <ru@FreeBSD.org>
6152         * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
6153         being handled as end-of-sentence characters,
6155 2001-10-10  Gaius Mulley  <gaius@glam.ac.uk>
6157         * src/roff/troff/input.cc (file_iterator): New members
6158         `suppress_newline_flag' and `seen_escape'.
6159         (file_iterator::next_file): Updated.
6160         (file_iterator::fill): Use it.
6161         (string_iterator): New member `suppress_newline_flag'.
6162         (string_iterator::fill): Set it.
6163         (get_color_element): Use MAX_COLOR_VAL.
6164         * src/roff/troff/env.cc (environment): Remove `need_eol'.
6165         (no_fill): Don't set `env->ignore_next_eol'.
6166         (environment::newline): Handle `eol' tag properly.
6167         Emit `eol.ce'.
6168         (environment::add_html_tag): Set `env->ignore_next_eol'.
6169         Don't handle `.ce'.
6170         * src/roff/troff/env.h (environment): Updated.
6172         * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
6173         member function.
6174         (html_printer::outstanding_eol): New member function.
6175         (html_printer::do_title): Use new functions.
6176         (html_printer::troff_tag): Test `id_eol_ce'.
6178 2001-10-10  Werner LEMBERG  <wl@gnu.org>
6180         * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
6181         files work with -C also.
6183 2001-10-05  Werner LEMBERG  <wl@gnu.org>
6185         * doc/pic.ms: Minor fix.
6186         * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
6187         as a valid command line switch.
6188         * src/devices/grohtml/post-html.cc (main): Ditto.
6189         (usage): Updated.
6190         * src/devices/grohtml/grohtml.man: Updated.
6191         * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
6193 2001-10-04  Werner LEMBERG  <wl@gnu.org>
6195         Implementing color support in troff, pic, grops, and grohtml.  These
6196         changes are based on a major patch provided by Gaius Mulley
6197         <gaius@glam.ac.uk>.
6199         New request: `defcolor', supporting rgb, cmy, cmyk, and gray
6200         definitions with both hex values and fractions.
6202         New escapes: \m and \M for drawing and background color,
6203         respectively.  This corresponds to the troff output commands `m'
6204         and `DF'.
6206         groff and troff accept command line switch `-c' to disable color
6207         output (which is automatically disabled in compatibility mode).
6209         New scaling indicator `f' for fractions (1f = 65536u).
6211         New conditional operator `m' to test for defined colors with `if'
6212         and `ie'.
6214         New keywords `color' (or `colour', `colored', `coloured'), `outline'
6215         (or `outlined'), and `shaded' added to pic.
6217         * src/include/color.h: New file.
6218         * src/include/driver.h: Include it.
6219         * src/include/printer.h: Include color.h.
6220         (environment): New members `col' and `fill'.
6221         (printer): Remove `adjust_arc_center' member function.
6222         * src/include/Makefile.sub: Updated.
6224         * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
6225         `env.fill'.
6226         Handle `m' and `DF' troff commands.
6227         * src/libs/libgroff/color.cc: New file.
6228         * src/libs/libgroff/Makefile.sub: Updated.
6230         * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
6231         (stop): Removed.
6232         (createImage): Fix computation of `y2'.
6233         Use `pnmcrop' also.
6234         (buffer::write_file_html): Remove calls to `stop'.
6236         * src/preproc/pic/common.h (common_output): New abstract function
6237         members `set_color', `reset_color', `get_last_filled', and
6238         `get_outline_color'.
6239         * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
6240         (object_spec): Add members `shaded' and `outlined'.
6241         * src/preproc/pic/output.h (output): `command' is now abstract.
6242         New function members `set_color', `reset_color', `get_last_filled',
6243         and `get_outline_color'.
6244         * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
6245         `outline[d]', and `shaded'.
6246         * src/preproc/pic/object.cc (output::command): Removed.
6247         (output::set_location): Moved to output.h.
6248         (graphic_object): Add protected members `outline_color' and
6249         `color_fill'.
6250         Add member functions `set_outline_color', `get_outline_color', and
6251         `set_fill_color'.
6252         (closed_object): Add member function `set_fill_color'.
6253         Add member `color_fill'.
6254         (graphic_object::print_text): Use `out->set_color' and
6255         `out->reset_color'.
6256         (box_object::print, ellipse_object::print, circle_object::print,
6257         line_object::print, spline_object::print, arc_object::print): Ditto.
6258         (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
6259         * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
6260         `SHADED', making them `%left'.
6261         Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
6262         * src/preproc/pic/tex.cc (tex_output): New dummy function members
6263         `set_color', `reset_color', `get_last_filled', and
6264         `get_outline_color'.
6265         * src/preproc/pic/troff.cc (simple_output): New abstract function
6266         members `set_color', `reset_color', and `get_last_filled'.
6267         (simple_output::polygon, simple_output::circle,
6268         simple_output::ellipse): Use `get_last_filled'.
6269         (troff_output): New members `last_filled' and `last_outlined'.
6270         New function members `set_color', `reset_color', `get_last_filled',
6271         and `get_outline_color'.
6272         (troff_output::finish_picture): Use `reset_color'.
6273         (troff_output::set_fill): Test `last_filled'.
6274         * src/preproc/pic/pic.man: Updated.
6276         * src/roff/groff/groff.cc (main): Implement `-c' option.
6277         (synopsis, help): Updated.
6278         src/roff/groff/groff.man: Updated.
6280         * src/roff/troff/troff.h: Include color.h.
6281         (warning_type): Add WARN_COLOR.
6282         * src/roff/troff/env.h (environment): New members
6283         `{cur,prev}_{glyph,fill}_color'.
6284         New member functions `get_{prev_,}{glyph,fill}_color'.
6285         * src/roff/troff/env.cc: Initialize and implement them.
6286         * src/roff/troff/input.cc: New global variable `disable_color_flag'.
6287         Replace `NULL' with `0' everywhere for consistency.
6288         (lookup_color, default_black, do_glyph_color, do_fill_color,
6289         get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
6290         define_color): New functions.
6291         (token::next): Implement \M and \m escapes.
6292         (do_if_request): Implement `m' operator.
6293         (usage): Updated.
6294         (main): Implement `-c' option.
6295         (init_markup_requests): Add `defcolor' request.
6296         (warning_table): Add `color' warning.
6297         * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
6298         classes.
6299         * src/roff/troff/node.cc (troff_output_file): New members
6300         `current_{page,glyph}color'.  New member functions `put_hex',
6301         `glyph_color', and `fill_color'.
6302         (glyph_color_node::*, fill_color_node::*): Implement it.
6303         * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
6304         (parse_term): Add support for `f'.
6305         * src/roff/troff/troff.man: Updated.
6307         * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
6308         entry for `F'.
6309         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
6310         * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
6312         * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
6313         (tag_definition): Use `void *' for arg1.
6314         (html_text): New member functions `do_color' and `done_color'.
6315         Use `void *' for second parameter of `push_para' member function.
6316         New `push_para' member function with a single parameter.
6317         Use `char *' for parameter of `issue_table_begin' member funtion.
6318         New `issue_color_begin' member function.
6319         * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
6320         COLOR_TAG.
6321         (html_text::issue_color_begin): New function.
6322         (html_text::issue_table_begin): Use `char *' for parameter.
6323         (html_text::start_tag, html_text::shutdown,
6324         html_text::check_emit_text): Updated.
6325         (html_text::push_para): Use `void *' for second parameter.
6326         Add same function with only one parameter.
6327         (html_text::do_*): Updated.
6328         (html_text::do_color, html_text::done_color): New functions.
6329         * src/devices/grohtml/post-html.cc (style): New member `col'.
6330         Mew member `style' with 6 parameters.
6331         (style::style, style::operator==): Updated.
6332         (html_printer::do_font): Use it.
6333         (html_printer::draw): Add dummy entry for `F'.
6334         (html_printer::set_char): Updated.
6335         * src/devices/grohtml/grohtml.man: Updated.
6337         * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
6338         trailing zeroes removed.
6339         (ps_printer): New members `sbuf_color', `fill_color', and
6340         `output_color'.
6341         Removed member `fill'.
6342         New member function `set_color'.
6343         (ps_printer::ps_printer, ps_printer::set_char): Updated.
6344         (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
6345         ps_printer::fill_path, ps_printer::draw): Use `set_color'.
6347         * tmac/color-html.tmac, tmac/color.tmac: New files.
6348         * tmac/troffrc: Include them.
6349         * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
6350         * tmac/Makefile.sub: Updated.
6352         * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
6353         man/groff.man: Updated.
6354         * font/devps/prologue.ps: Define FC and CO functions.
6356 2001-10-04  Gaius Mulley  <gaius@glam.ac.uk>
6358         Fix incorrect cropping of images and incorrect handling of special
6359         characters.  Fix handling of file names in \O.
6361         * src/include/geometry.h: New file.
6362         * src/libs/libgroff/geometry.cc: New file.
6363         * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
6364         to `geometry.cc'.
6365         * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
6366         initial spaces.
6367         (do_suppress): Updated.
6368         * src/roff/troff/node.cc: Include geometry.h.
6369         (troff_output_file::flush_tbuf): Fixed parameters to
6370         `check_output_limits'.
6371         (troff_output_file::check_charinfo): Ditto.
6372         (troff_output_file::determine_line_limits): Add support for `Da'
6373         and `Dl' commands.
6375         * src/devices/grohtml/post-html.cc (str_translate_to_html):
6376         Add new parameter `is_special' to decode special characters from
6377         escape sequences.
6378         (html_printer::do_title, html_printer::do_heading,
6379         html_printer::do_indentedparagraph,
6380         html_printer::translate_to_html, html_printer::special): Updated.
6382 2001-10-03  Werner LEMBERG  <wl@gnu.org>
6384         * Makefile.sub (DISTCLEANFILES): Add stamp-h.
6385         Fix entry for config.h.
6386         * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
6387         * tmac/troffrc: Translate nonbreakable space character to `\~'.
6388         * src/preproc/eqn/eqn.man: Document -d command line option.
6390 2001-09-27  Werner LEMBERG  <wl@gnu.org>
6392         * man/groff.man: Use
6394           .ev xxx
6395           .na
6396           .nh
6397           <table>
6398           .ev
6400         instead of the old code (`.ad .hy' after the table) to suppress
6401         incorrect hyphenation for grohtml output.
6403 2001-09-22  Werner LEMBERG  <wl@gnu.org>
6405         * man/groff_font.man, man/groff_out.man: Minor fixes.
6407 2001-09-20  Werner LEMBERG  <wl@gnu.org>
6409         * PROBLEMS: Updated, reordered.  Improved EPS section (thanks to
6410         Arnold Robbins <arnold@skeeve.com>).
6412 2001-09-09  Werner LEMBERG  <wl@gnu.org>
6414         * configure: Regenerated with autoconf 2.52.
6416         * doc/groff.texinfo: Complete revision of indices.
6418 2001-09-07  Werner LEMBERG  <wl@gnu.org>
6420         * doc/Makefile (clean): Updated to delete all indices.
6422 2001-09-05  Werner LEMBERG  <wl@gnu.org>
6424         * src/roff/troff/troff.man: Remove superfluous line.
6426         * tmac/s.tmac: Enable all warnings only if no -W or -w option is
6427         given on the command line (or rather, if only the default warnings
6428         are set).
6430 2001-09-03  Werner LEMBERG  <wl@gnu.org>
6432         * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
6433         use .ne for TTY devices.
6435 2001-08-31  Werner LEMBERG  <wl@gnu.org>
6437         * src/roff/troff/token.h, src/roff/troff/input.cc:
6438         s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
6440 2001-08-28  Werner LEMBERG  <wl@gnu.org>
6442         * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
6443         * src/roff/troff/input.cc (token::next): Return
6444         TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
6445         compatibility mode.
6446         (token::description): Updated.
6447         (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
6448         (token::add_to_node_list, token::process): Ignore
6449         TOKEN_TRANSPARENT_ESCAPE.
6451 2001-08-27  Werner LEMBERG  <wl@gnu.org>
6453         * tmac/an-old.tmac: Fix `S' string.
6455 2001-08-26  Werner LEMBERG  <wl@gnu.org>
6457         * src/roff/troff/troff.man: Don't use .ne for TTY devices.
6459 2001-08-25  Werner LEMBERG  <wl@gnu.org>
6461         * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
6462         backslashes).
6463         Many other minor fixes.
6465         * configure.ac: Add message at end to inform how to compile
6466         xditview.
6467         * configure: Regenerated.
6469 2001-08-24  Werner LEMBERG  <wl@gnu.org>
6471         * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
6472         Updated to latest version of libc.
6474 2001-08-23  Werner LEMBERG  <wl@gnu.org>
6476         * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
6477         Autoconf 2.50 and newer can handle this.
6478         * configure: Regenerated.
6480 2001-08-21  Werner LEMBERG  <wl@gnu.org>
6482         * doc/pic.ms: Fix typo.
6483         * src/preproc/tbl/tbl.man: Document case of global options.
6485 2001-08-21  Gaius Mulley  <gaius@glam.ac.uk>
6487         * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
6488         handling of `CR' font.
6490 2001-08-20  Werner LEMBERG  <wl@gnu.org>
6492         Use a config.h file.
6494         * src/include/lib.h: Include config.h.
6495         * All C files: Ditto (if necessary).
6496         * All C++ source and header files: Include lib.h first (if
6497         necessary).
6499         * src/include/config.hin: New file (autogenerated by autoheader).
6500         * stamp-h.in: New file.
6501         * configure.ac: Updated.
6502         * aclocal.m4: Add third parameters to AC_DEFINE macros.
6503         (GROFF_ARRAY_DELETE): Simplified.
6504         * Makefile.sub (DISTCLEANFILES): Updated.
6505         Added targets for remaking config.status, config.hin, config.h,
6506         stamp-h.in, and stamp-h.
6507         * configure: Regenerated.
6509 2001-08-19  Werner LEMBERG  <wl@gnu.org>
6511         * NEWS: Updated.
6513 2001-08-18  Sebastian Krahmer  <krahmer@suse.de>
6515         * src/preproc/pic/pic.y (format_number): Use do_sprintf().
6516         (do_sprintf): Use snprintf().
6518 2001-08-18  Werner LEMBERG  <wl@gnu.org>
6520         * src/libs/snprintf/*: Added an snprintf module written by Mark
6521         Martinec.
6522         * src/libs/libgroff/Makefile.sub: Updated.
6523         * configure.ac: Add test for snprintf().
6524         * Makefile.in: Updated.
6525         * configure: Regenerated.
6527         * src/preproc/html/pre-html.cc (make_message): Reactivate code which
6528         uses snprintf().
6530 2001-08-14  Ruslan Ermilov  <ru@FreeBSD.org>
6532         * tmac/doc.tmac (Ex): New implementation.
6533         * tmac/doc-common, tmac/groff_tmac.man: Updated.
6535 2001-08-13  Ruslan Ermilov  <ru@FreeBSD.org>
6537         * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
6538         argument.
6539         * tmac/groff_tmac.man: Updated.
6541 2001-08-13  Werner LEMBERG  <wl@gnu.org>
6543         * src/preproc/tbl/tbl.man: Minor documentation update.
6545 2001-08-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6547         * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
6548         * configure.ac: Add declaration test for gettimeofday().
6549         * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
6550         * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
6551         * configure: Regenerated.
6553 2001-08-11  Werner LEMBERG  <wl@gnu.org>
6555         * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
6556         * configure.ac: Add declaration test for strcasecmp().
6557         * Makefile.in: Updated.
6558         * configure: Regenerated.
6559         * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
6560         this is necessary because groff's mkstemp.cc is C++.
6561         Add declaration conditionally for strcasecmp().
6563 2001-08-10  Werner LEMBERG  <wl@gnu.org>
6565         Integrated pic2graph, contributed by Eric S. Raymond.
6567         * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
6568         files.
6569         * Makefile.in, NEWS: Updated.
6571         * src/preproc/tbl/tbl.man: Revised.
6573 2001-08-09  Eric S. Raymond  <esr@thyrsus.com>
6575         * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
6577 2001-08-09  Werner LEMBERG  <wl@gnu.org>
6579         * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
6580         requests.
6582 2001-08-08  Paul Eggert  <eggert@twinsun.com>
6584         * Makefile.sub (configure): Depend on configure.ac, not
6585         configure.in.
6586         * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
6588 2001-08-07  Werner LEMBERG  <wl@gnu.org>
6590         * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
6591         fixes.
6593 2001-08-06  Werner LEMBERG  <wl@gnu.org>
6595         * src/roff/troff/troff.man: Improve documentation of -E option.
6597 2001-07-28  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
6599         * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
6600         Simplified.
6602 2001-07-27  Werner LEMBERG  <wl@gnu.org>
6604         * src/preproc/refer/refer.cc: Undo last change.
6605         * src/devices/grohtml/post-html.cc: Ditto.
6607 2001-07-26  Werner LEMBERG  <wl@gnu.org>
6609         * src/preproc/refer/refer.cc: Include `lib.h'.
6610         * src/devices/grohtml/post-html.cc: Ditto.
6612 2001-07-25  Gaius Mulley  <gaius@glam.ac.uk>
6614         * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
6615         * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
6616         * Makefile.in: Comment updated.
6617         * configure: Regenerated.
6619 2001-07-25  Werner LEMBERG  <wl@gnu.org>
6621         * src/preproc/pic/pic.cc: Removed.
6622         * src/preproc/pic/pic_tab.h: Removed.
6623         * src/preproc/refer/label.cc: Removed.
6625         * doc/Makefile (.ms.html): Don't use a file name extension in
6626         argument to grohtml's -I option.
6627         * Makefile.in (dist): Remove CVS directories.
6628         Call `distfiles' target.
6630         * src/devices/grohtml/grohtml.man: Add information about valid
6631         versions of pnmtopng.
6632         * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
6633         name instead of number.
6635 2001-07-24  Werner LEMBERG  <wl@gnu.org>
6637         * doc/groff.texinfo: Minor fixes.
6639 2001-07-21  Gaius Mulley  <gaius@glam.ac.uk>
6641         * doc/Makefile (.ms.html): Put image files into a subdirectory.
6642         (clean): Updated.
6644 2001-07-20  Werner LEMBERG  <wl@gnu.org>
6646         * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
6647         * src/libs/libgroff/mkstemp.cc: New file.
6648         * src/libs/libgroff/mksdir.cc: New file.
6649         * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
6650         (xtmpfile) [!HAVE_MKSTEMP]: Removed.
6651         * src/libs/libgroff/Makefile.sub: Updated.
6652         * src/include/lib.h: Add mksdir() prototype.
6653         * src/include/posix.h: Define S_IXUSR if not yet defined.
6655         * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
6656         (createAllPages): Use mksdir() instead of current code.
6657         * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
6658         (main): [!HAVE_MKSTEMP]: Removed.
6660         * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
6661         (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
6662         macros.
6663         * configure.ac: Add tests for stdint.h, sys/time.h, and
6664         gettimeofday().
6665         Call new GROFF_xxx macros.
6666         * configure: Regenerated.
6667         * Makefile.in: Comments updated.
6669 2001-07-20  Gaius Mulley  <gaius@glam.ac.uk>
6671         * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
6672         instead of current code.
6673         * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
6674         * src/roff/groff/groff.cc (possible_command::insert_args): New
6675         function.
6676         (main): Use it for predriver handling instead of insert_arg().
6678 2001-07-19  Werner LEMBERG  <wl@gnu.org>
6680         * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
6681         groff also.
6683         * src/include/posix.h: Define S_IWUSR if not yet defined.
6685 2001-07-18  Werner LEMBERG  <wl@gnu.org>
6687         * NEWS: Updated.
6689 2001-07-18  Ruslan Ermilov  <ru@FreeBSD.org>
6691         * tmac/groff_mdoc.man: Document new -width and -column syntax.
6692         Some other minor fixes.
6693         * tmac/an-old.tmac: Add `AT' and `UC' macros.
6695 2001-07-17  Gaius Mulley  <gaius@glam.ac.uk>
6697         Replace call to `troff' with `groff -Z' to make it aware of
6698         GROFF_BIN_PATH.
6700         * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
6701         (troff_command, command_prefix): Removed.
6702         (alterDeviceTo): Use groff.
6703         (addZ): New function.
6704         (char_buffer::do_html): Use it.
6705         (scanArguments): Use TROFF_COMMAND.
6706         (findPrefix): Removed.
6707         (main): Updated.
6708         * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
6710 2001-07-17  Eric S. Raymond  <esr@snark.thyrsus.com>
6712         * doc/pic.ms: Documentation fixes.
6714 2001-07-17  Werner LEMBERG  <wl@gnu.org>
6716         Replace atexit() with global destructor.
6718         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
6719         (xtmpfile_list_init): New global structure to deallocate
6720         xtmpfile_list on exit.  Its destructor inherits most code from
6721         remove_tmp_files().
6722         (remove_tmp_files): Deleted.
6723         (add_tmp_file): Simplified.
6725 2001-07-16  Werner LEMBERG  <wl@gnu.org>
6727         Replace strdup() with strsave().
6729         * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
6730         (set_papersize): Use strsave() and a_delete.
6731         (main): Use strsave().
6732         * src/preproc/html/pre-html.cc (make_message, createAllPages,
6733         removeAllPages): Use strsave() and a_delete.
6735         * configure.ac: Remove test for strdup.
6736         * Makefile.in: Comment updated.
6737         * configure: Regenerated.
6739 2001-07-15  Werner LEMBERG  <wl@gnu.org>
6741         * win32-diffs: Updated.
6743 2001-07-14  Werner LEMBERG  <wl@gnu.org>
6745         * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
6746         removing the old one.
6747         * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
6749 2001-07-14  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
6751         * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
6753 2001-07-12  Ruslan Ermilov  <ru@FreeBSD.org>
6755         Merge -xwidth into -width.  Add -xwidth functionality to -column
6756         also.
6758         * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
6759         avoid warning.
6760         (doc-do-Bl-args): Merge -xwidth code with -width.  Test whether
6761         string immediately following a leading dot starts with a valid mdoc
6762         argument.
6763         Add similar code to the -column branch.
6764         (doc-Bl-usage): Updated.
6765         * groff_mdoc.man: s/-xwidth/-width/.
6767 2001-07-12  Gaius Mulley  <gaius@glam.ac.uk>
6769         * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
6770         running into centered or non-formatted text.
6772 2001-07-11  Werner LEMBERG  <wl@gnu.org>
6774         Introduce short and long prefixes to have the selection at run-time
6775         whether there is a 8+3 limit for names of temporary files.
6777         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
6778         (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
6779         (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
6780         variables.
6781         (temp_init): New global structure to initialize above three
6782         variables.
6783         (xtmptemplate): Use two parameters for long and short prefix.
6784         Simplify code use above three variables.
6785         (xtmpfile): Use long and short prefixes as parameters.
6786         * src/include/lib.h: Updated.
6788         * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
6789         with ...
6790         ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
6791         (createAllPages, makeTempFiles): Updated.
6793 2001-07-09  Werner LEMBERG  <wl@gnu.org>
6795         * REVISION: Increased to 3.
6797 Version 1.17.2 released
6798 =======================
6800 2001-07-07  Werner LEMBERG  <wl@gnu.org>
6802         * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
6803         to size_t.
6805 2001-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
6807         * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
6808         Fix synopsis.
6809         * tmac/groff_mdoc.man: Fix synopsis.
6811 2001-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
6813         * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
6814         Restore `doc-Pa-font'.
6816 2001-07-04  Werner LEMBERG  <wl@gnu.org>
6818         * src/utils/indxbib/dirnamemax.c: Moved to ...
6819         * src/libs/libgroff/maxfilename.cc: Here.
6820         s/dir_name_max/file_name_max/.
6821         Add copyright.
6822         * src/include/lib.h: Add file_name_max.
6823         * src/utils/indxbib/indxbib.cc: Updated.
6824         * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
6825         Updated.
6827         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
6828         as empty.
6829         (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
6831         * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
6832         REGION_TEMPLATE): New macros.
6833         (createAllPages, makeTempFiles): Use them.
6834         Include `nonposix.h'.
6835         (html_system): New function.
6836         (createAllPages, createImage): Use it.
6837         Use EXE_EXT.
6839         * tmac/www.tmac: Fix typos.
6841 2001-07-03  Werner LEMBERG  <wl@gnu.org>
6843         * tmac/www.tmac: Disable hyphenation in normal text only if output
6844         device is html.
6845         (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
6846         * tmac/groff_mwww.man, NEWS: Updated.
6848 2001-07-03  Gaius Mulley  <gaius@glam.ac.uk>
6850         * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
6851         image location.
6853 2001-07-02  Ruslan Ermilov  <ru@FreeBSD.org>
6855         * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
6856         doc-display-ps-stack): Implement font and font size stack for
6857         displays.
6859 2001-07-02  Werner LEMBERG  <wl@gnu.org>
6861         * REVISION: Increased to 2.
6862         * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
6864         * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
6865         beginning of a line.
6866         * src/groff/grog/grog.sh: Ditto.
6868 2001-06-29  Peter Marquardt  <wwwutz@molgen.mpg.de>
6870         * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
6871         make it portable.
6873 2001-06-27  Werner LEMBERG  <wl@gnu.org>
6875         Fix problems with preprocessor string for `man' program.
6877         * *.man: Don't use `s' in preprocessor string --  it doesn't exist.
6878         Updated/added copyright.
6879         Moved Emacs's local variable to identify nroff mode to the end of
6880         the file; add local variable if missing.
6882 2001-06-26  Andras Salamon  <andras@cs.wits.ac.za>
6884         * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
6885         AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
6886         * configure: Regenerated.
6888 2001-06-25  Andras Salamon  <andras@cs.wits.ac.za>
6890         * aclocal.m4 (GROFF_PAGE): Fix page detection code.
6891         * configure: Regenerated.
6893 2001-06-24  Werner LEMBERG  <wl@gnu.org>
6895         * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
6896         but www.tmac.
6897         * doc/pic.ms: Fix typos.
6899 Version 1.17.1 released
6900 =======================
6902 2001-06-21  Golubev I. N.  <gin@mo.msk.ru>
6904         * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
6905         * configure: Updated.
6907 2001-06-20  Gaius Mulley  <gaius@glam.ac.uk>
6909         * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
6910         image names.
6911         * src/roff/troff/dic.cc (blank_line): Add html tag.
6913 2001-06-19  Gaius Mulley  <gaius@glam.ac.uk>
6915         * src/roff/troff/input.cc (do_suppress): Fix typo.
6917 2001-06-18  Gaius Mulley  <gaius@glam.ac.uk>
6919         Added two new options (-D and -I) to specify image names and a
6920         subdirectory to place the images in.
6922         Change syntax from \\Ox to \\O[x].
6924         * src/devices/grohtml/post-html.cc (main): Add options.
6925         (usage): Updated.
6926         * src/preproc/html/pre-html.cc: Include `stdarg.h'.
6927         Use `NULL' instead of `0' for null string pointers.
6928         (MAX_RETRIES): New macro.
6929         (lengthOfintToStr, intToStr, make_message): New functions.
6930         (makeFileName): Make function static.
6931         Implement -D and -I options.
6932         (checkImageDir): New function.
6933         (write_end_image, write_start_image): Use new syntax of \O.
6934         (createAllPages, removeAllPages): Implement -D and -I options.  Use
6935         make_message().
6936         (createImage): Use make_message().
6937         (addps4html): Add guard for malloc().
6938         (usage, scanArguments): Updated.
6939         (makeTempFiles): Use mkstemp().
6940         (removeTempFiles): Use unlink().
6941         (findPrefix): Add guard for malloc().
6942         (main): Updated.
6943         * src/roff/troff/input.cc (get_delim_file_name): New function to
6944         parse \O.
6945         (do_suppress): Updated to parse new syntax.
6946         * src/devices/grohtml/grohtml.man: Updated.
6947         * tmac/www.tmac: Updated to new syntax.
6949         * NEWS: Updated.
6951 2001-06-15  Werner LEMBERG  <wl@gnu.org>
6953         * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
6955         * src/devices/grohtml/grohtml.man: Minor improvements.
6957 2001-06-14  Werner LEMBERG  <wl@gnu.org>
6959         * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
6961 2001-06-11  Werner LEMBERG  <wl@gnu.org>
6963         * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
6964         line to specify preprocessor options -- mandb 2.3.1 only recognizes
6965         the former.
6966         * src/preproc/grn/grn.man: Add proper '\" string.
6968 2001-06-11  OKAZAKI Tetsurou  <okazaki@be.to>
6970         * test-groff: Don't use PATH but GROFF_BIN_PATH.
6972 2001-06-08  Werner LEMBERG  <wl@gnu.org>
6974         Updated to autoconf 2.50.
6976         * configure.in: Renamed to...
6977         * configure.ac: This.
6978         * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
6979         (GROFF_OS390): Updated.
6980         * configure: Regenerated.
6982 2001-05-18  Werner LEMBERG  <wl@gnu.org>
6984         * src/roff/troff/env.c, src/roff/troff/env.h,
6985         src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
6986         from 2000-12-21.
6988 2001-05-17  Jeffrey Friedl  <jfriedl@yahoo-inc.com>
6990         * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
6992 2001-05-16  Werner LEMBERG  <wl@gnu.org>
6994         * src/roff/troff/input.cc (read_size): Emit warning if value becomes
6995         less than or equal zero; set it to 1 then.
6996         * src/roff/troff/node.h (node::node): Initialize `last'.
6998 2001-05-08  Werner LEMBERG  <wl@gnu.org>
7000         * tmac/an-old.tmac: Make predefined strings work in compatibility
7001         mode.
7002         Add troff version guard.
7003         * tmac/doc.tmac: Simplify version guard.
7005 2001-05-07  Werner LEMBERG  <wl@gnu.org>
7007         The .ns and .rs requests are now honoured not only in the top-level
7008         but in all diversions (similar to UNIX troff).
7010         This change is based on a patch from Tadziu Hoffmann
7011         <hoffmann@usm.uni-muenchen.de>.
7013         * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
7014         (top_level_diversion): Remove `no_space_mode' member.
7015         * src/roff/troff/div.cc (diversion::diversion,
7016         top_level_diversion::top_level_diversion): Updated.
7017         (macro_diversion::output): Reset `no_space_mode'.
7018         (no_space, restore_spacing): Use `curdiv' unconditionally.
7019         (space_request, blank_line): Check `curdiv->no_space_mode'.
7020         (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
7021         `curdiv' unconditionally.
7022         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
7023         Updated.
7025 2001-05-06  Werner LEMBERG  <wl@gnu.org>
7027         Added two new requests `de1' and `am1' which are similar to `de' and
7028         `am' with the difference that compatibility mode is saved on entry,
7029         switched off during macro execution, and restored on exit.
7031         * src/roff/troff/input.h: Added two new special characters
7032         (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
7033         * src/roff/troff/input.cc (input_iterator): Added two member
7034         functions `save_compatible_flag' and `get_compatible_flag'.
7035         (input_stack): Ditto.
7036         (string_iterator): Ditto.  Also add private member
7037         `saved_compatible_flag'.
7038         (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
7039         (calling_mode): New enumeration.
7040         (do_define_macro): Use it.  Insert COMPATIBLE_SAVE and
7041         COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
7042         (define_macro, define_indirect_macro, append_macro, ignore): Use
7043         `calling_mode'.
7044         (define_nocomp_macro, append_nocomp_macro): New functions.
7045         (init_input_requests): Updated.
7046         (do_request): Rename local variable `saved_compatible_flag' to
7047         `old_compatible_flag'.
7048         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7050         * tmac/an-old.tmac: Use `de1' instead of `de' request for all
7051         public and trap-invoked macros.  As a consequence, the man macros
7052         work in compatibility mode also.
7054 2001-05-06  Solar Designer  <solar@openwall.com>
7056         * Makefile.in: Use $(mandir).
7058 2001-05-06  Alexios Zavras  <zvr@pobox.com>
7060         * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
7062 2001-05-05  Werner LEMBERG  <wl@gnu.org>
7064         Added `.ns' number register: Returns 1 in no-space mode (if in
7065         top-level diversion), 0 otherwise.
7067         * src/roff/troff/div.cc (no_space_mode_reg): New class.
7068         (init_div_requests): Updated.
7069         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
7070         Document it.
7072 2001-05-04  Werner LEMBERG  <wl@gnu.org>
7074         * src/roff/nroff/nroff.man: Improved documentation (especially
7075         locales).
7077 2001-05-02  Werner LEMBERG  <wl@gnu.org>
7079         Added `brp' request: This is \p as a request.
7081         * src/roff/troff/env.cc (environment::do_break): Add parameter
7082         `spread'.
7083         (do_break_request): New function (was `break_request').
7084         (break_request): Calls `do_break_request'.
7085         (break_spread_request): New; calls `do_break_request'.
7086         (init_env_requests): Updated.
7087         * src/roff/troff/env.h: Updated.
7088         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7090         * REVISION: Increased to 1.
7091         * win32-diffs: Updated.
7093 2001-05-01  Werner LEMBERG  <wl@gnu.org>
7095         * tmac/an-old.tmac: Fix minor compatibility mode issue.
7096         * tmac/troffrc-end: Make it really work in compatibility mode.
7098 2001-04-27  Werner LEMBERG  <wl@gnu.org>
7100         * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
7101         stdlib.h.
7103 2001-04-22  Werner LEMBERG  <wl@gnu.org>
7105         * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
7106         latest versions from glibc CVS archive.
7108         * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
7109         <c.zeelenberg@hccnet.nl>.
7111 2001-04-21  Werner LEMBERG  <wl@gnu.org>
7113         * configure.in: Move check for mkstemp() to...
7114         * aclocal.m4 (GROFF_MKSTEMP): This new function.
7115         * configure: Regenerated.
7117         * src/include/groff-getopt.h: Don't use variable names in
7118         declarations.
7120         * src/devices/grohtml/html-chars.h: Removed.  It isn't used.
7121         * src/devices/grohtml/Makefile.sub,
7122         src/devices/grohtml/post-html.cc: Updated.
7124 2001-04-21  Albert Chin-A-Young  <china@thewrittenword.com>
7126         * configure.in: Add special check for mkstemp().
7127         * src/libs/libgroff/tmpfile.cc: Use it.
7128         * src/utils/indxbib/indxbib.cc: Ditto.
7129         * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
7130         * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
7131         `const'.
7133 2001-04-20  Bruce Lilly  <blilly@erols.com>
7135         `Version_string' as C++ object was not visible to linker from C
7136         object files.
7137         Add `const' to `Version_string'.
7139         * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
7140         (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
7141         (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
7142         (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
7143         (scanArguments), src/preproc/refer/refer.cc (main),
7144         src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
7145         (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
7146         (main), src/devices/grohtml/post-html.cc (main),
7147         src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
7148         (main), src/utils/hpftodit/hpftodit.cc (main),
7149         src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
7150         (main), src/utils/lkbib/lkbib.cc (main),
7151         src/utils/addftinfo/addftinfo.cc (main): Implement it.
7153         * src/roff/groff/pipeline.c: Add _UWIN.
7154         * src/include/nonposix.h: Ditto.
7156 2001-04-20  Werner LEMBERG  <wl@gnu.org>
7158         * src/include/lib.h: Use HAVE_STRERROR.
7159         * src/roff/groff/pipeline.c: Ditto.
7160         * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
7161         * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
7162         * src/utils/pfbtops/pfbtops.c: Add copyright notice.
7163         * win32-diffs: Updated.
7164         * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
7166 2001-04-19  Werner LEMBERG  <wl@gnu.org>
7168         * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
7169         instead of hardwired `"troff"'.
7170         (char_buffer::read_file): Remove unused variables.
7171         (char_buffer::write_file_troff): Ditto.
7172         (char_buffer::write_file_html): Ditto.
7173         (generateImages): Ditto.
7174         (abs): Removed.
7175         * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
7177         * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
7179         * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
7180         * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
7181         index_search_item::search1): Ditto.
7182         * src/roff/troff/node.h (width_list): Reorder members.
7183         * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
7184         (lookup_warning): Ditto.
7185         (prepend_string): Commented out.
7186         * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
7187         * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
7188         * src/preproc/tbl/main.cc (process_format): Ditto.
7189         * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
7190         compiler warnings.
7191         * src/preproc/pic/pic.cc: Updated.
7192         * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
7193         * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
7194         * src/preproc/refer/command.cc (execute_command): Ditto.
7195         * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
7196         * src/preproc/refer/token.cc (lookup_token): Ditto.
7197         * src/preproc/soelim/soelim.cc: Ditto.
7198         * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
7199         (isHexDigit): Commented out.
7200         (pushBackBuffer::isString): Remove unused variable.
7201         * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
7202         warning.
7203         * src/devices/grops/psrm.cc (resource_manager::lookup_font,
7204         resource_manager::read_resource_arg, read_one_of, parse_extensions):
7205         Ditto.
7206         * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
7207         * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
7208         lookup_paper_size): Ditto.
7209         * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
7210         (text_glob, element_list): Reorder members.
7211         * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
7212         compiler warning.
7213         * src/devices/grohtml/html-text.h (html_text::emit_space): Change
7214         return value to `void'.
7215         * src/devices/grohtml/output.cc (word_list::word_list): Fix order
7216         of initializers.
7217         * src/devices/grohtml/html.h (simple_output::check_newline,
7218         simple_output::space_or_newline, simple_output::enable_newlines):
7219         Add return value.
7220         * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
7221         compiler warnings.
7222         * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
7223         * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
7224         output_ligatures, output_charset, read_map): Ditto.
7225         * src/utils/lookbib/lookbib.cc (main): Ditto.
7226         * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
7227         (do_file): Fix typo (`=' -> `==').
7228         * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
7229         * src/utils/addftinfo/addftinfo.cc (main): Ditto.
7231 2001-04-18  Ruslan Ermilov  <ru@FreeBSD.org>
7233         * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
7234         Fix usage of GROFF_BIN_PATH.
7235         * src/roff/nroff/nroff.man: Updated.
7237 2001-04-18  Werner LEMBERG  <wl@gnu.org>
7239         * NEWS: Fixing typos.
7240         Updated.
7242 Version 1.17 released
7243 =====================
7245 2001-04-17  Werner LEMBERG  <wl@gnu.org>
7247         * tmac/Makefile.sub (install-data): mdoc.local-s is in current
7248         directory, not in $(srcdir).
7250 2001-04-16  Werner LEMBERG  <wl@gnu.org>
7252         * doc/groff.texinfo: More info on conditionals.
7254 2001-04-15  Werner LEMBERG  <wl@gnu.org>
7256         * doc/groff.texinfo: Added some info about groff internals.
7258         * src/roff/troff/node.cc (make_glyph_node): Emit warning message
7259         about missing special character only if the name is non-null.
7261 2001-04-14  Werner LEMBERG  <wl@gnu.org>
7263         Removing the grohtml-old device driver which is now obsolete.
7265         * src/devices/grohtml-old/*: Removed.
7266         * font/devhtml-old/*: Removed.
7267         * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
7268         Remove comments.
7269         * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
7270         * test-groff (PATH): Updated.
7271         * tmac/Makefile.sub (NORMALFILES): Updated.
7272         * tmac/an-old.tmac: Remove special code for html-old device.
7273         Replace `html-or-html-old' register with `an-html'.
7274         * tmac/eqnrc: Updated.
7275         * tmac/html-old.tmac: Removed.
7276         * tmac/troffrc, tmac/troffrc-end: Updated.
7277         * tmac/www.tmac: Remove special code for html-old device.
7278         Replace `html-or-html-old' register with `www-html'.
7280         * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
7281         src/libs/libgroff/htmlindicate.cc (graphic_end),
7282         include/htmlindicate.h, src/preproc/grn/*.cc,
7283         src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
7284         single argument for consistency with rest of source code.
7286         * aclocal.m4, tmac/an-old.tmac: Fix copyright.
7288 2001-04-13  Ruslan Ermilov  <ru@FreeBSD.org>
7290         * src/roff/troff/troff.man: Fixing typos.
7292 2001-04-13  Werner LEMBERG  <wl@gnu.org>
7294         * doc/pic.ms: Fixing many font switches.
7295         * doc/groff.texinfo: Fixes, additions.
7296         * MORE.STUFF: Updated.
7298 2001-04-12  Gaius Mulley  <gaius@glam.ac.uk>
7300         * src/devices/grohtml/grohtml.man: Updated manual page regarding
7301         simple anchor.
7302         * src/preproc/html/pre-html.cc (createImage): Fixed right hand
7303         cropping of images.
7304         (removeTempFiles): New function to tidy up temporary files.
7305         * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
7306         Many fixes to do with the new inline suppress node and image regions
7307         are much tighter.
7308         * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
7309         (generate_img_src): New function.
7310         (html_printer::do_auto_image): Utilizes it.
7311         (do_heading, do_title): Include inline images within their contents.
7312         (html_printer::begin_page): Tidied up comments that are issued to
7313         the html output file.
7314         (html_printer::do_fill): Fixed so that `.nf' works with fonts other
7315         than courier.
7316         (text_glob::is_br): New method used by do_heading.
7317         * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
7318         equivalent diversion.
7319         * src/include/html-strings.h: Altered image tags to reflect the
7320         inline image node.
7321         * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
7322         parameter.
7323         * src/preproc/eqn/main.cc: Will suppress generation of image tags if
7324         it is already inside a pic image.  Only emit tags if the argument
7325         `-Tps:html' is present.
7326         * src/preproc/tbl/main.cc: Changes to reflect additional
7327         `html_end_suppress' parameter.
7328         * src/roff/troff/env.cc: Only emit eol tag if a node has been
7329         emitted since the last eol tag was written.
7330         * src/roff/troff/env.h: New boolean `emitted_node'.
7331         * src/roff/troff/input.cc (do_suppress): Handles extra suppress
7332         nodes \O3, \O4, \O5.  No longer use `output_low_mark_miny'.
7333         * src/roff/troff/node.cc (check_charinfo): New method. 
7334         (troff_output_file::determine_line_limits): Alterations to limit
7335         checking.
7336         * tmac/www.tmac: Changes to reflect new suppress nodes.
7337           
7338 2001-04-12  Bruno Haible  <haible@clisp.cons.org>
7340         * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
7341         Escape the html_glyph in the buffer.
7342         (str_translate_to_html): Output the unescaped escaped_char.
7343         * src/devices/grohtml/html-text.cc (issue_table_begin): Set
7344         `frame=void', not `frame=none'.  Add `border=0'.
7346 2001-04-12  Werner LEMBERG  <wl@gnu.org>
7348         * PROBLEMS: Add some words on how to avoid wrapper macros.
7350 2001-04-11  Blake McBride  <blake@florida-software.com>
7352         * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
7354 2001-04-11  Werner LEMBERG  <wl@gnu.org>
7356         * font/devlbp/Makefile.sub (CLEANADD): Set it.
7357         * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
7358         * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
7359         * Makefile.sub (DISTCLEANFILES): Here.
7361         * libs/libgroff/new.cc: Include `nonposix.h'.
7362         * win32-diffs: Updated.
7364 2001-04-10  Ruslan Ermilov  <ru@FreeBSD.org>
7366         Added skeleton macro for defunct macros.
7368         Updated documentation.
7370         When inside displays, an empty input line warning should be
7371         suppressed.  If another macro call is put inside a display,
7372         all subsequent empty lines found in that display caused a
7373         warning to be emitted.
7375         * tmac/doc.tmac (doc-defunct-macro): New macro.
7376         (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
7377         (doc-restore-global-vars): Fixed typo.
7378         (doc-empty-line): Check the `doc-display-depth' register to
7379         determine whether we are inside display or not.
7381         * tmac/doc-common: Removed `Or' and `Sf' registers.
7382         Moved obsolete `Ds' macro to doc.tmac.
7384         * tmac/groff_mdoc.man: Bump document date.
7385         Document `.Vt' under ``Variable Types''.
7386         Removed documentation for obsolete `.Or' macro.
7388 2001-04-10  Werner LEMBERG  <wl@gnu.org>
7390         * NEWS: Updated.
7391         * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
7393 2001-04-10  Bruno Haible  <haible@clisp.cons.org>
7395         * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
7396         (usage): Add stream argument. Don't exit.
7397         * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
7398         Write --version output to stdout, not stderr.
7399         (usage): Add stream argument. Don't exit.
7400         * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
7401         (usage): Add stream argument. Don't exit.
7402         * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
7403         constants.
7404         (usage): Add stream argument. Don't exit.
7405         (main): Write --help output to stdout, not stderr.
7406         * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
7407         (usage): Add stream argument. Don't exit.
7408         * src/devices/grops/ps.cc (main): Accept --help and --version.
7409         (usage): Add stream argument. Don't exit.
7410         * src/devices/grotty/tty.cc (main): Accept --help and --version.
7411         (usage): Add stream argument. Don't exit.
7412         * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
7413         (main): Accept --help and --version.
7414         * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
7415         (main): Accept --help and --version.
7416         * src/preproc/html/pre-html.cc (usage): Add stream argument.
7417         (scanArguments): Accept --help and --version.
7418         * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
7419         (main): Accept --help and --version.
7420         * src/preproc/refer/refer.cc (main): Accept --help and --version.
7421         (usage): Add stream argument. Don't exit.
7422         * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
7423         exit.
7424         (main): Accept --help and --version.
7425         * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
7426         (main): Accept --help and --version.
7427         * src/roff/groff/groff.cc (main): Accept --help and --version.
7428         (synopsis): Add stream argument.
7429         (help): Write --help output to stdout, not stderr.
7430         (usage): Add stream argument. Don't exit.
7431         * src/roff/grog/grog.pl: Accept --help and --version.
7432         (help): New sub.
7433         * src/roff/grog/grog.sh: Accept --help and --version.
7434         * src/roff/nroff/nroff.sh: Accept --help and --version.
7435         * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
7436         (usage): Add stream argument. Don't exit.
7437         (main): Accept --help and --version.
7438         * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
7439         (usage): New function with stream argument, doesn't exit.
7440         * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
7441         (usage): New function with stream argument, doesn't exit.
7442         * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
7443         (usage): Add stream argument. Don't exit.
7444         * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
7445         (main): Accept --help and --version.
7446         * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
7447         exit.
7448         (main): Accept --help and --version.
7449         * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
7450         (main): Accept --help and --version.
7451         * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
7452         (usage): Add stream argument. Don't exit.
7454 2001-04-10  Ruslan Ermilov  <ru@freebsd.org>
7456         Fix indentation in SYNOPSIS.
7458         Updated to include changes of latest BSD mdoc version (basically,
7459         the only change is that `.Fn' and `.Fc' put a final semicolon after
7460         a function declaration in the SYNOPSIS section).
7462         * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
7463         (doc-in-synopsis-section): New variable.  Updated all related
7464         functions.
7465         (doc-indent-synopsis-active): New register.
7466         (Nd, Fn, Fo): Use it.
7467         (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
7468         `.Cd' with long argument line produces indented wrapped lines. 
7469         Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
7470         undesirable line break to be output.
7471         (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
7472         `.rs'.
7473         (Fn, Fc): Add final `;' to output.
7474         (doc-save-global-vars, doc-restore-global-vars): Updated.
7475         * tmac/doc-common: Remove `Ex' register.
7476         Updated.
7477         * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
7478         copyright.
7480 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
7482         * tmac/doc.tmac (Cd): Simplify code.
7483         * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
7485 2001-04-06  Werner LEMBERG  <wl@gnu.org>
7487         Implement continuous underlining for nroff mode.  To do that, a new
7488         request in the ditroff language has been added: `x u N' (N is 0
7489         or 1).
7491         \X and \Y are now transparent to end-of-sentence recognition.
7493         * src/include/printer.h (printer): Add `type' parameter to `special'
7494         method.
7495         * src/libs/libdriver/printer.cc (printer::special): Updated.
7496         * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
7498         * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
7499         specials of type `p'.
7500         * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
7501         * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
7502         * src/devices/grops/ps.cc (ps_printer::special): Ditto.
7503         * src/devices/grotty/tty.cc: Add new enum CU_MODE.
7504         (glyph::order): New method.
7505         (tty_printer::add_char): Use it.
7506         (tty_printer::special): New method.
7507         (tty_printer::end_page): Implement it.
7509         * src/roff/troff/node.h (special_node): Add `no_init_string' member.
7510         * src/roff/troff/node.cc (special_node::special_node): Add parameter
7511         to set `no_init_string'.
7512         (special_node::tprint_start): Use it.
7513         (special_node::same, special_node::copy): Updated.
7514         (special_node::ends_sentence): New method.
7515         (troff_output_file::start_special): Add parameter to include
7516         inititialization of special conditionally.
7518         * src/roff/troff/env.h (environment): New member `underline_spaces'.
7519         * src/roff/troff/env.cc (do_underline_special): New function.
7520         (environment::set_font): Use it.
7521         (do_underline): Use it.  This was `underline()'.
7522         (underline): Call `do_underline()'.
7523         (continuous_underline): New function which calls `do_underline()'.
7524         (environment::newline): Use `do_underline_special()'.
7525         (init_env_requests): Updated.
7527         * NEWS, man/troff_out.man: Updated.
7529 2001-04-06  Bruno Haible  <haible@clisp.cons.org>
7531         * font/devutf8/R.proto: Fix code of 'shc'.
7533 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
7535         Many fixes.  Diag lists can now be nested also; additionally,
7536         `-compact' and `-offset' are supported.
7538         * tmac/doc.tmac (doc-have-indent): Replaced with ...
7539         (doc-list-have-indent-stackXXX): A new register stack.
7540         (doc-have-diag-list): Removed.
7541         (Bl): Use `doc-list-have-indent-stackXXX'.
7542         (El): Updated.
7543         (doc-diag-list): Use `doc-compact-list-stackXXX'.
7544         (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
7545         (doc-set-vertical-and-indent): Ditto.
7546         (doc-next-list-depth): Removed.
7547         (doc-increment-list-stack): Updated.
7548         (doc-decrement-list-stack): Use `doc-list-depth' instead of
7549         `doc-next-list-depth'.
7550         (doc-end-list, doc-end-column-list): Don't use
7551         `doc-increment-list-stack'.
7552         (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
7553         (doc-save-global-vars, doc-restore-global-vars): Updated.
7554         * tmac/doc-common: Updated.
7555         * tmac/groff_mdoc.man: Updated.
7556         * NEWS: Fix typo.
7558 2001-04-02  Werner LEMBERG  <wl@gnu.org>
7560         * src/devices/grotty/grotty.man: Fix grammatical error.
7562 2001-03-30  Ruslan Ermilov  <ru@freebsd.org>
7564         Remove .Ld from mdoc package; replace it with special handling of
7565         `...'.
7567         * tmac/doc-common: Remove `Ld' register.
7568         Uncomment `doc-volume-ds-*' strings.
7569         Remove `doc-operating-system-default'.
7570         (Os): Updated.
7571         * tmac/doc-syms (Ld): Removed.
7572         * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
7573         `...' specially.
7574         * NEWS: Updated.
7576         * tmac/groff_mdoc.man: Many fixes and updates.
7578 2001-03-29  Werner LEMBERG  <wl@gnu.org>
7580         * tmac/troffrc-end: Protect data with `.do'.  Reported by T. Kurt
7581         Bond <tkb@tkb.mpl.com>.
7582         * tmac/www.tmac: Save compatibility mode.
7584 2001-03-28  Ruslan Ermilov  <ru@freebsd.org>
7586         * tmac/groff_mdoc.man: Many fixes.
7588 2001-03-28  Werner LEMBERG  <wl@gnu.org>
7590         * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
7591         isn't recognized.
7593 2001-03-27  Werner LEMBERG  <wl@gnu.org>
7595         * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
7596         diversion.  This fixes overlong tags.
7598 2001-03-26  Werner LEMBERG  <wl@gnu.org>
7600         * doc/groff.texinfo: Fixed and improved documentation of fonts.
7601         * tmac/doc-syms: Fix error messages.
7602         * tmac/an-old.tmac: Remove incorrect double backslashes.
7604 2001-03-24  Ruslan Ermilov  <ru@freebsd.org>
7606         * tmac/Makefile.sub: Strip mdoc.local also
7607         * tmac/strip.sed: Fixed.
7609 2001-03-24  Werner LEMBERG  <wl@gnu.org>
7611         * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
7612         selecting the font size.
7613         * tmac/groff_mdoc.man, NEWS: Document it.
7615 2001-03-23  Werner LEMBERG  <wl@gnu.org>
7617         * src/roff/troff/div.cc (save_vertical_space): Add default argument
7618         to `sv' request.
7619         * src/roff/troff/env.cc (family_change): Make `.fam' accept no
7620         argument to restore previous font family.
7621         * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
7623         * doc/groff.texinfo: More fixes and additions (mainly for font
7624         manipulating commands).
7626         * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
7627         * tmac/groff_mdoc.man: This.  The quick reference has been removed.
7628         * tmac/Makefile.sub, NEWS: Updated.
7630 2001-03-23  Werner LEMBERG  <wl@gnu.org>
7632         Replaced mdoc implementation.  The new version is `state of the
7633         art', using almost all new features of groff 1.17 -- it won't run
7634         with older versions.
7636         * tmac/doc.tmac: Completely rewritten.
7637         * tmac/doc-common: Ditto.
7638         * tmac/doc-nroff: Ditto.
7639         * tmac/doc-ditroff: Ditto.
7640         * tmac/doc-syms: Ditto.
7641         * tmac/mdoc.local: New file.
7642         * tmac/groff_mdoc.samples.man: Replaced with ...
7643         * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
7644         * tmac/strip.sed: Updated.
7645         * tmac/Makefile.sub: Updated.
7646         * INSTALL: Updated.
7648         * tmac/groff_man.man: Add `man.local' to the FILES section.
7650 2001-03-22  Werner LEMBERG  <wl@gnu.org>
7652         * doc/groff.texinfo: Added many @noindent.
7653         Replaced @end_Example -> @endExample.
7654         Added info whether registers are r/o.
7655         Many other additions and fixes.
7657 2001-03-21  Werner LEMBERG  <wl@gnu.org>
7659         * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
7660         in makeinfo of texinfo 4.0) to be used in @Def* macros.
7661         Improved @Def* macros: Now the exact syntax of request, register,
7662         and escapes is shown.
7663         Added macros for parentheses and brackets to be used in @Def*.
7664         Many fixes and improvements of the documentation.
7666 2001-03-20  Werner LEMBERG  <wl@gnu.org>
7668         * doc/groff.texinfo: Added new index: `st' (for strings).
7669         Added macros @Defstr(x).
7670         Added macro @Example (adding @group).
7671         Other minor improvements.
7673 2001-03-19  Werner LEMBERG  <wl@gnu.org>
7675         * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
7676         `rq' for requests.  `fn' is no longer used.
7677         Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
7678         Removed @Deffn(x).
7680         * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
7681         number with name of man page.
7683 2001-03-19  Larry Kollar  <kollar@alltel.net>
7685         * doc/groff.texinfo: Complete revision.  Added many @Deffn to gain
7686         consistency.
7688 2001-03-19  Werner LEMBERG  <wl@gnu.org>
7690         * man/groff_font.man: Document `prepro', `postpro', and `print'.
7691         * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
7692         * src/devices/grohtml/grohtml.man: Fixing typos.
7694 2001-03-19  Gaius Mulley  <gaius@glam.ac.uk>
7696         * tmac/s.tmac (@IP): Pass `.ip' html tag.
7697         * tmac/groff_mwww.man: Remove .LINE macro
7698         * tmac/www.tmac (LINE): Add `.ti'.
7700         * src/devices/grohtml/post-html.cc (html_printer): New member
7701         `indent'.
7702         (html_printer::emit_raw): Use it.
7703         (html_printer::do_linelength): Ditto.
7704         (html_printer::do_pageoffset): Ditto.
7705         (html_printer::do_indentation): Ditto.
7706         (html_printer::do_tempindent): Ditto.
7707         (html_printer::do_break): Ditto.
7708         (html_printer::begin_page): Ditto.
7709         (html_printer::do_indentedparagraph): New function.
7710         (html_printer::troff_tag): Handle `.ip'.
7711         * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
7712         Add `<td width=...>' handling.
7713         (html_text::do_table): Add parameter.
7714         (html_text::do_indent): Updated.
7715         * src/devices/groohtml/html-text.h: Updated.
7717 2001-03-16  Gaius Mulley  <gaius@glam.ac.uk>
7719         Introduced simple html tables to implement indentation.
7721         * src/devices/grohtml/html.h (word, word_list): New structures.
7722         (simple_output): Use it.
7723         * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
7724         (html_printer): Improve indentation handling.
7725         (html_printer::emit_raw): Set `in_table' element.  Handle
7726         indentation if set.
7727         (html_printer::write_header): Move conditional downwards.
7728         Don't allow whitespace in tags.
7729         (html_printer::do_linelength): Handle line length and indentation
7730         conditionally.
7731         (html_printer::do_pageoffset): Handle indentation conditionally.
7732         (html_printer::do_indentation): Ditto.
7733         (html_printer::do_tempindent): New function member.
7734         (html_printer::do_fill): Take care of indentation.
7735         (html_printer::do_flush): Finish table.
7736         (html_printer::do_links): Ditto.
7737         (html_printer::do_break): New function for handling `.br' and `.ti'.
7738         (html_printer::troff_tag): Use it.
7739         Handle `.ti'.
7740         (html_printer::flush_globs): Fix.
7741         (html_printer::flush_page): Finish table.
7742         (html_printer::html_printer): Fix error message.  Set up
7743         `linelength'.
7744         (html_printer::add_to_sbuf): Remove special handling of character
7745         code 255.
7746         (to_unicode): Remove `stop()'.
7747         (html_printer::write_title): Cleanup.
7748         (html_printer::begin_page): Use `put_string()'.  Handle indentation.
7749         (html_printer::~html_printer): Flush text and end the line.
7750         Use `put_string()'.
7751         * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
7752         * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
7753         emission of tags.
7754         (html_text::start_tag): Disable newlines.
7755         (html_text::table_is_void): New function.
7756         (html_text::issue_table_begin): Ditto.
7757         (html_text::issue_table_end): Ditto.
7758         (html_text::push_para): Better table handling.
7759         (html_text::do_indent): New function.
7760         (html_text::do_table): Ditto.
7761         (html_text::done_table): Ditto.
7762         (html_text::do_tt): Handle PRE_TAG.
7763         (html_text::is_in_table): New function.
7764         (html_text::check_emit_text): Handle tables.
7765         (html_text::do_emittext): Use `nl()'.
7766         (html_text::do_para): Handle table.
7767         (html_text::remove_def): New function.
7768         * src/devices/grohtml/output.cc (word, word_list): Implement
7769         methods.
7770         (simple_output::end_line): Flush last word.
7771         (simple_output::simple_comment): Ditto.
7772         (simple_output::begin_comment): Recoded.
7773         (simple_output::end_comment): Ditto.
7774         (simple_output::comment_arg): Removed.
7775         (simple_output::check_newline): Improve test and flush last word.
7776         (simple_output::space_or_newline): Improved.
7777         (simple_output::write_newline): Replaced with...
7778         (simple_output::nl): This.
7779         (simple_output::put_raw_char): Flush last word.
7780         (simple_output::check_space): Removed.
7781         (simple_output::put_translated_string): Ditto.
7782         (simple_output::put_string): Simplified.
7783         (simple_output::put_number): Updated.
7784         (simple_output::put_float): Ditto.
7785         (simple_output::put_symbol): Removed.
7786         (simple_output::enable_newlines): Add `check_newline()'.
7787         (simple_output::flush_last_word): New function.
7789         * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
7790         * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
7792         * tmac/s.tmac (@PP, @IP): Add html conditional code.
7793         * tmac/an-old.tmac (TP): Ditto.
7795 2001-03-09  Ruslan Ermilov  <ru@freebsd.org>
7797         * mdate.sh: Make it POSIX compliant.
7799 2001-03-09  Werner LEMBERG  <wl@gnu.org>
7801         Added the `return' request to end a macro immediately.  It simply
7802         pops iterators from the input stack until a macro iterator is found.
7804         * src/roff/troff/input.cc (input_iterator::is_macro,
7805         macro_iterator::is_macro): New member.
7806         (input_return_boundary): New class to signal an immediate return
7807         to while_request().
7808         (input_stack::add_return_boundary, input_stack::is_return_boundary):
7809         New functions.
7810         (input_stack::clear): Use it.
7811         (input_stack::pop_macro): New function.
7812         (while_request): Use `is_return_boundary()'.
7813         (return_macro_request): New function.
7814         (init_input_requests): Use it.
7816         * src/roff/troff/TODO: Updated.
7817         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7819 2001-03-08  Werner LEMBERG  <wl@gnu.org>
7821         * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
7822         cleanup.
7824 2001-03-07  Werner LEMBERG  <wl@gnu.org>
7826         Make `\B' more rigid.
7828         * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
7829         parameter.
7830         (get_number_rigidly): New function.
7831         * src/roff/troff/input.cc (do_expr_test): Use it.
7832         * src/roff/troff/token.h: Updated.
7834         * src/roff/troff/request.h: Fix typo (init_html_request ->
7835         init_markup_request).
7837 2001-03-04  Gaius Mulley  <gaius@glam.ac.uk>
7839         Fixed grohtml handling of any named glyph for glyph indexes < 0x80. 
7840         Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
7841         are now `.begin', `.end', `.image'.
7843         * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
7844         (html_printer::add_to_sbuf): Changing type of `code' parameter.
7845         Use add_char_to_sbuf().
7846         (to_unicode): New function.
7847         (char_translate_to_html): Changing type of `ch' parameter.
7848         Use `to_unicode()'.
7849         (html_printer::~html_printer): Comment out doctype string.
7850         * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
7851         instead of `.html-end'.
7852         (write_start_image): Use `.begin' and `.image' instead of
7853         `.html-begin' and `.html-image'.
7854         * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
7855         (html_begin): Renamed to ...
7856         (begin): This.
7857         (html_end): Renamed to ...
7858         (end): This.
7859         (html_image): Renamed to ...
7860         (image): This.
7861         (init_html_requests): Renamed to ...
7862         (init_markup_requests): This.
7863         * tmac/www.tmac: Updated.
7865 2001-02-28  Bram  <bram@avontuur.org>
7867         * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
7868         constructor.
7870 2001-02-26  David Leonard  <david.leonard@csee.uq.edu.au>
7872         * doc/meref.me: Fixing some typos.
7874 2001-02-16  Werner LEMBERG  <wl@gnu.org>
7876         * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
7877         method.  Return `HYPHEN_MIDDLE' if it was `\:'.
7878         * src/roff/troff/node.h: Updated.
7880 2001-02-17  Ruslan Ermilov  <ru@FreeBSD.org>
7882         * tmac/groff_tmac.man: Fix typo.
7884 2001-02-16  Werner LEMBERG  <wl@gnu.org>
7886         Fixing a bug which prevented proper end-of-sentence recognition
7887         between an `unformatted' box and the following text.  As a
7888         consequence, vertical line distances are no longer preserved in
7889         boxes after a call to `.unformat' -- because boxes aren't
7890         line-oriented (contrary to diversions), this doesn't make sense
7891         anyway.
7893         * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
7894         value.
7895         (vertical_size_node::set_unformat_flag): New method.
7896         * src/roff/troff/node.hh: Updated.
7897         * src/roff/troff/input.cc (word_space_node::reread,
7898         hmotion_node::reread): Reset `unformat' flag after usage.
7899         (unformat_macro): Append only if `set_unformat_flag()' returns
7900         non-zero.
7901         * src/roff/troff/troff.man: Updated.
7903 2001-02-15  Werner LEMBERG  <wl@gnu.org>
7905         * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
7906         documentation of `asciify' and `unformat' requests.
7908 2001-02-13  Werner LEMBERG  <wl@gnu.org>
7910         Redesigned the `unformat' request.  It is no longer connected with
7911         `asciify' but rather uses new `reread()' methods if the `unformat'
7912         flag is set.  Additionally, the handling of space characters after
7913         unformatting has been fixed so that they retain their width.
7915         * src/roff/troff/node.h (width_list): New structure to store
7916         original widths of spaces.
7917         (node): Added `unformat' member.
7918         Replaced `num_spaces' variable with `orig_width' list.
7919         * src/roff/troff/node.cc (*node::asciify,
7920         asciify_reverse_node_list): Removed `unformat_only' flag and related
7921         code.
7922         (word_space_node::asciify, word_space_node::word_space_node): Use
7923         `orig_width'.
7924         (word_space_node::~word_space_node): New destructor.
7925         (word_space_node::copy): Updated to handle `orig_width'.
7926         (hmotion_node::copy, unbreakable_space_node::copy): Updated.
7927         (*node::merge_space): Update `orig_width' list if necessary.
7928         (*node::set_unformat_flag): New methods to set the `unformat' flag.
7929         * src/roff/troff/enc.cc (environment::space_newline): Use
7930         `width_list'.
7931         (environment::space): Added method to handle space width and
7932         sentence space width as parameters.  Use `width_list'.
7933         (environment::make_tab_node): Updated.
7934         * src/roff/troff/env.h: Updated.
7935         * src/roff/troff/input.cc (word_space_node::reread,
7936         unbreakable_space_node::reread, hmotion_node::reread): New methods
7937         to handle nodes specially if `unformat' flag is set.
7938         (do_asciify_macro): Renamed back to ...
7939         (asciify_macro): This.
7940         (unformat_macro): New implementation to simply set the `unformat'
7941         flag.
7943         * MORE.STUFF: Added more info about deroff.
7945 2001-02-08  Werner LEMBERG  <wl@gnu.org>
7947         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
7948         space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
7949         and `add_self()' methods to avoid hyphenation.  For example, the
7950         hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
7951         soft hyphen after `foo'.  Now the hyphen list is correctly
7952         `foo<ignore><ignore>bar'.
7954 2001-02-05  Yoshiteru Kageyama  <yt-kage@cb3.so-net.ne.jp>
7956         * tmac/groff_tmac.man: Fix `BIR' macro.
7958 2001-02-04  Werner LEMBERG  <wl@gnu.org>
7960         A new escape sequence `\:', inserting a zero-width break point.
7962         * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
7963         * src/roff/troff/input.cc (get_copy, token::next, asciify):
7964         Implement it.
7965         * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
7966         method.
7967         (space_node): Add `was_escape_colon' member.  Add `is_escape_colon()'
7968         and `asciify()' methods.
7969         * src/roff/troff/node.cc (space_node::space_node): Updated.
7970         (space_node::asciify): Handle `was_escape_colon'.
7971         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7973         Handle `\~' similar to other comparable requests.
7975         * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
7976         label.
7977         (token::next): Move creation of an unbreakable_space_node to...
7978         (token::add_to_node_list): Here.
7980         Fix a bug which sometimes prevented hyphenation of words connected
7981         with `\~' or `\ ' (and other escape sequences handled as
7982         TOKEN_NODE).  This also fixes a hyphenation problem with boxes
7983         (after a call to the `unformat' request).
7985         * src/roff/troff/env.h (environment::possibly_break_line,
7986         environment::hyphenate_line): Introducing `start_here' parameter.
7987         * src/roff/troff/env.cc (environment::space_newline,
7988         environment::space): Use it.
7989         (environment::possibly_break_line, environment::hyphenate_line):
7990         Implement it.
7991         * src/roff/troff/input.cc (process_input_stack): Use it.
7992         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
7993         space_char_hmotion_node, overstrike_node): Add
7994         `get_hyphenation_type()' method.
7995         * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
7996         if `unformat_only' is active.
7998 2001-01-30  Werner LEMBERG  <wl@gnu.org>
8000         Implemented new read-only number register `.linetabs' which
8001         returns 1 if in line-tabs mode, 0 otherwise.
8003         * src/roff/troff/env.h (environment): Add get_line_tabs() member.
8004         * src/roff/troff/env.cc (get_line_tabs): New function.
8005         (init_env_requests): Use it.
8006         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8008         * VERSION, REVISION: Changing to 1.17.0.
8010 2001-01-28  Werner LEMBERG  <wl@gnu.org>
8012         Fixed a bug which prevented hyphenation of words which are finished
8013         with `\)'.
8015         * src/roff/troff/token.h (token): Add enum type
8016         `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
8017         * src/roff/troff/input.cc (token::next, token::description,
8018         get_line_arg, token::add_to_node_list, token::process): Use it.
8020 2001-01-27  Werner LEMBERG  <wl@gnu.org>
8022         * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
8023         * src/roff/troff/div.cc (do_divert): Use it.
8025         * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
8027 2001-01-25  Werner LEMBERG  <wl@gnu.org>
8029         Adding the `linetabs' request.  If set, tab distances are not
8030         computed relative to the input line but relative to the output line.
8032         * src/roff/troff/env.h (environment): New member `line_tabs'.
8033         * src/roff/troff/env.cc (line_tabs_request): Implement request.
8034         (environment::environment, environment::copy): Updated.
8035         (environment::distance_to_next_tab): Use `line_tabs'.
8036         (init_env_requests): Register request.
8037         * src/roff/troff/troff.man, man/groff.man, NEWS: Document it.  Other
8038         fixes.
8040 2001-01-24  Werner LEMBERG  <wl@gnu.org>
8042         Introducing a new read-only register `.int' which is set to a
8043         positive value if the last output line is interrupted (i.e., if it
8044         contains `\c').
8046         * src/roff/troff/env.cc (init_env_requests): Add it.
8047         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8049 2001-01-23  Gaius Mulley  <gaius@glam.ac.uk>
8051         * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
8052         * src/preproc/html/pre-html.cc (findPrefix): New function which
8053         generates the troff executable name via the system prefix.
8054         * src/preproc/eqn/main.cc: Modified warning message.
8056 2001-01-23  Werner LEMBERG  <wl@gnu.org>
8058         troff's `box' and `boxa' requests didn't preserve temporary
8059         indentation.
8061         * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
8062         `saved_target_text_length' members.
8063         * src/roff/troff/div.cc (do_divert): Use them.
8065         Tabs (but not yet leaders and fields) are now handled correctly by
8066         `asciify' request.
8068         * node.h (hmotion_node): Add field `was_tab'.
8069         * env.cc (environment::make_tab_node): Set it.
8070         * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
8072         Added new request `unformat' which will, contrary to `asciify',
8073         preserve font information after unformatting (i.e., only nodes
8074         dealing with horizontal space are converted back to input
8075         characters).
8077         * input.cc (asciify_macro): Renamed to ...
8078         (do_asciify_macro): this, having a new parameter `unformat_only'.
8079         (asciify_macro, unformat_macro): New; using do_asciify_macro.
8080         (init_input_requests): Added `unformat'.
8081         * node.cc (*_node::asciify), asciify_reverse_node_list: Added
8082         parameter to control asciification process.
8083         * node.h (*_node::asciify): Ditto.
8084         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8086 2001-01-20  Werner LEMBERG  <wl@gnu.org>
8088         * doc/groff.texinfo: Minor improvement of `.in' documentation.
8090 2001-01-18  Werner LEMBERG  <wl@gnu.org>
8092         * tmac/ps.tmac: Remove call of psold.tmac.
8093         * tmac/psold.tmac: Comment updated.
8094         * tmac/psnew.tmac: Removed since no longer needed.
8095         * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
8097         * font/devutf8/R.proto: Adding `shc' glyph.
8098         * font/devutf8/NOTES: Updated.
8100         * test-groff: Updated.
8102 2001-01-15  Gaius Mulley  <gaius@glam.ac.uk>
8104         First cut of the new html device driver.  Changes to pre-html and
8105         the new grohtml are too numerous to be documented here.
8107         Stuff related to `html' has been renamed to `html-old' and `html2'
8108         stuff has been renamed to `html' (including directories).  The new
8109         html device driver is therefore invoked as `-Thtml'.
8111         Added new `\O' escape to suppress output (needed by html driver).
8113         Added functions and code to pass info about input-level commands
8114         (`.in', `.fl', etc.) to html driver.
8116         Three new functions (.html-begin, .html-end, and .html-image) for
8117         better html handling: `html-begin' will execute the remaining line
8118         if at the outermost nesting level, increasing an internal counter.
8119         `html-end' does the same but decreases the internal counter.
8120         `html_image' puts its arguments into a special node (suppress_node)
8121         to define an image region.
8123         The `output' request has been removed.
8125         * tmac/html-tags.tmac: Removed.
8126         * tmac/arkup.tmac: Updated and renamed to ...
8127         * tmac/www.tmac: New file.
8128         * tmac/markup.tmac Updated and renamed to ...
8129         * tmac/mwww.tmac: New file.
8130         * tmac/Makefile.sub: Updated.
8131         * tmac/an-old.tmac: Updated.
8132         * tmac/eqnrc: Updated.
8133         * tmac/groff_man.man
8134         * tmac/groff_markup.man: Updated and renamed to ...
8135         * tmac/groff_mwww.man: New file.
8136         * tmac/groff_tmac.man: Updated.
8137         * tmac/html-old.tmac: Updated and Renamed from html.tmac.
8138         * tmac/html.tmac: Updated and renamed from html2.tmac.
8139         * tmac/pspic.tmac: Updated html support.
8140         * tmac/s.tmac: Added html output support.
8141         * tmac/troffrc, tmac/troffrc-end: Updated.
8143         * Makefile.in, doc/Makefile: Updated.
8144         * doc/groff.texinfo: Added info about new `\O' escape.
8145         * doc/homepage.ms: Use `MAILTO' macro.
8147         * font/devhtml/DESC.proto: Add `C' font.
8148         * font/devhtml/Makefile.sub: Updated.
8149         * font/devhtml/R.proto: Minor fixes.
8150         * font/devhtml-old/Makefile.sub: Updated.
8152         * src/devices/grohtml-old/Makefile.sub: Updated.
8154         * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
8155         method.
8156         * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
8157         graphic_start): Add `inline' parameter.  Update.
8158         (html_end_suppress, graphic_end): Update.
8160         * src/include/html-strings.h: New file.
8161         * src/include/htmlindicate.h: Comments updated.
8162         * src/include/printer.h: Updated.
8164         * src/preproc/eqn/main.cc (do_file, main): Updated.
8165         * src/preproc/pic/troff.cc (troff_output::start_picture,
8166         troff_output::finish_picture): Updated.
8167         * src/preproc/tbl/main.cc (process_input_file): Updated.
8169         * src/roff/groff/groff.cc (main): Updated.
8170         Pass device arguments to predrivers also.
8171         Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
8172         * src/roff/troff/env.h (environment): Updated.
8173         New elements `need_eol' and `ignore_next_eol' (for html output).
8174         * src/roff/troff/env.cc (environment::environment): Add initializers
8175         for `need_eol' and `ignore_next_eol'.
8176         (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
8177         functions.
8178         (point_size, fill, no_fill, center, right_justify, line_length,
8179         indent, temporary_indent, break_request, handle_tab): Use
8180         `add_html_tag()'.
8181         (set_tabs): Use `add_html_tag_tabs()'.
8182         (environment::add_html_tag): Updated.
8183         (environment::do_break): Updated.
8184         * src/roff/troff/div.cc (space_request, flush_output): Use
8185         `environment::add_html_tag()'.
8186         * src/roff/troff/input.cc: Updated.
8187         New variable `html_level' to indicate nested `html-begin' requests.
8188         (file_iterator::fill): Use `environment::add_html_tag_eol()'.
8189         (non_interpreted_char_node, token_node, non_interpreted_node): Add
8190         `force_tprint()' method.
8191         (token::next): Handle `\O'.
8192         (do_suppress): Implement it.
8193         (html_begin, html_end, html_image): New functions.
8194         (init_output_requests): Renamed to ...
8195         (init_html_requests): this.
8196         (main): Use it.
8197         (macro::append_str, macro::append_unsigned, macro::append_int): New
8198         methods.
8199         New variable `output_low_mark_miny' to limit minimal value of y.
8200         (reset_output_registers): Use it.
8201         (output_request): Removed.
8202         (get_output_registers): New function.
8203         * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
8204         (*_node): Added `force_tprint()' if necessary.
8205         (special_node): New elements `tf' and `get_tfont()'.
8206         (suppress_node): New class.
8207         * src/roff/troff/node.cc:
8208         New global variables `image_no' and `suppress_start_page'.
8209         (real_output_file): New method `is_on()'.
8210         (troff_output_file): New method `start_special(tfont)'.
8211         (troff_output_file::really_print_line): Use `tprint' conditionally.
8212         (real_output_file::print_line): Updated.
8213         (real_output_file::on): Updated.
8214         (*_node): Added `force_tprint()'.
8215         (special_node::special_node): Initializer updated.
8216         (special_node::same, special_node::copy, special_node::tprint_start):
8217         Updated.
8218         (get_reg_int, get_reg_str): New functions.
8219         (suppress_node::*): New methods.
8220         New global variables last_position, last_image_filename;
8221         (min): New inline function.
8222         * src/roff/troff/reg.h, src/roff/troff/request.h,
8223         src/roff/troff/troff.h: Updated.
8225 2001-01-13  Werner LEMBERG  <wl@gnu.org>
8227         * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
8228         documentation of `asciify' request.
8230 2001-01-12  Werner LEMBERG  <wl@gnu.org>
8232         * src/roff/troff/input.cc: Move definition of special characters
8233         like `ESCAPE_TILDE' to ...
8234         * src/roff/troff/input.h: New file.
8235         * src/roff/troff/Makefile.sub (HDRS): Add it.
8237         Extending the .asciify request to `unformat' space characters also.
8239         * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
8240         to count input space characters.
8241         Update constructors to take care of it.
8242         * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
8243         `ESCAPE_SPACE' instead of normal space.
8244         (word_space_node::asciify): New method.
8245         (unbreakable_space_node::asciify): New method.
8246         (word_space_node::merge_space): New method.
8247         * src/roff/troff/env.cc (environment::space_newline,
8248         environment::space): Add code to initialize `num_spaces' (using the
8249         constructor of `word_space_node').
8250         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8251         Document it.
8253 2001-01-09  Werner LEMBERG  <wl@gnu.org>
8255         * man/groff_char.man: Use table header traps only conditionally.
8257 2001-01-09  Bjarni Ingi Gíslason  <bjarniig@hi.is>
8259         * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
8261 2001-01-08  Werner LEMBERG  <wl@gnu.org>
8263         Introducing the `box' and `boxa' requests which are similar to
8264         `di' resp. `da' but omitting a partially filled line (which is
8265         restored after ending the diversion).
8267         * src/roff/troff/div.h (diversion): Add elements to save partially
8268         filled line.
8269         * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
8270         partially filled line.
8271         (divert, divert_append): Updated.
8272         (box, box_append): New functions.
8273         (init_div_requests): Use them.
8274         * src/roff/troff/env.h (environment): do_divert() is now a friend.
8275         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8277         * doc/groff.texinfo: Fix documentation of `lf' request.
8279 2000-12-25  Werner LEMBERG  <wl@gnu.org>
8281         * src/roff/troff/troff.man, NEWS: Document `writem' request.
8283 2000-12-21  Werner LEMBERG  <wl@gnu.org>
8285         Ignore `ss' request if in compatibility mode.
8287         * src/roff/troff/input.cc: Make `compatible_flag' non-static.
8288         * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
8289         * src/roff/troff/env.cc (space_size): Use it.
8291         * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
8292         `ss' request in nroff mode.
8294         * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
8295         changes.
8297 2000-12-15  Ruslan Ermilov  <ru@FreeBSD.org>
8299         * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
8301 2000-12-13  Werner LEMBERG  <wl@gnu.org>
8303         * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
8304         * src/preproc/eqn/neqn.man: Small fixes and additions.
8306 2000-12-13  Ruslan Ermilov  <ru@FreeBSD.org>
8308         * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
8309         Fixing typo.
8311         * src/preproc/eqn/neqn.man: New file.
8313         * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
8314         negative' warning.
8316         * tmac/e.tmac: Add `T&' macro.
8317         Fix `indent cannot be negative' warning.
8318         * tmac/s.tmac: Fix `indent cannot be negative' warning.
8320 2000-12-07  Werner LEMBERG  <wl@gnu.org>
8322         * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
8324 2000-12-06  Werner LEMBERG  <wl@gnu.org>
8326         * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
8327         `alloca' symbol .
8329         * MORE.STUFF: Added info about deroff for djgpp.
8331         * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
8332         documentation of -rcR switch.
8334 2000-12-03  Werner LEMBERG  <wl@gnu.org>
8336         * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
8337         if -rcR=1 (which is now the default in nroff mode), a single, very
8338         long page is created instead of multiple pages: All `ne' and `wh'
8339         requests are put into conditionals; a new macro `an-end' is added to
8340         be called with `em'.
8342         Some other minor cleanups.
8344         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
8346 2000-12-02  Werner LEMBERG  <wl@gnu.org>
8348         Fixing a bug which prevented hyphenation in words followed
8349         immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
8351         * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
8352         Adding possibly_break_line().
8353         * src/roff/troff/env.h (environment): Make possibly_break_line()
8354         public.
8356         Make `\~' usable in .tr request.
8358         * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
8359         (token): Add stretchable_space().
8360         * src/roff/troff/input.cc (token::next, token::delimiter,
8361         token::description, process_input_stack, do_translate,
8362         add_to_node_list, token::process): Use it.
8363         * src/roff/troff/node.h (node): Add fourth parameter to add_char()
8364         for adjusting the space.
8365         * src/roff/troff/node.cc (node::add_char): Implement it.  Add code
8366         for stretchable space.
8367         * src/roff/troff/input.cc (token::add_to_node_list): Use it.
8368         (make_node): Add code for stretchable space.
8369         * src/roff/troff/env.cc (environment::add_char): Use it.
8370         * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
8371         (get_copy, token::next, transparent_translate, asciify): Use it.
8373         * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
8374         doc/groff.texinfo: Updated.
8375         * man/groff.man: Small reorderings.
8377 2000-11-23  Werner LEMBERG  <wl@gnu.org>
8379         * NEWS: Fixes.
8380         * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
8381         option.
8382         * src/roff/troff/input.cc (main): Add `config_macro_path' and
8383         `safer_macro_path' to -M option.
8384         * src/roff/troff/troff.man: Fixes.
8386 2000-11-22  Werner LEMBERG  <wl@gnu.org>
8388         Use safer path (except for config files) if -U isn't specified.  Add
8389         a special macro path (without home and current directory) for config
8390         files.  Add home directory to unsafe path for consistency.  Don't
8391         include the home directory in the font path.
8393         * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
8394         `macro_path'.
8395         * src/include/macropath.h: Add `config_macrp_path'.
8396         * src/libs/libgroff/fontfile.cc: Fix font path.
8397         * src/roff/troff/input.cc (process_startup_file): Use
8398         `config_macro_path'.
8399         (main): Select unsafe path if -U is given.
8401         * src/preproc/eqn/main.cc (main): Fixing search path for
8402         configuration file.
8403         * src/preproc/eqn/eqn.man: Updated.
8405         * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
8406         Updated.
8408         * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
8409         src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
8410         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
8411         src/devices/grotty/grotty.man: Updated.
8413         * Makefile.in: Fix comments.
8415 2000-11-17  Werner LEMBERG  <wl@gnu.org>
8417         * tmac/safer.tmac: Empty file added (again) for compatibility
8418         reasons.
8419         * tmac/Makefile.sub: Updated.
8421 2000-11-16  Werner LEMBERG  <wl@gnu.org>
8423         * src/devices/grodvi/dvi.cc (main),
8424         src/devices/grohtml2/post-html.cc (main),
8425         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
8426         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
8427         (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
8428         (main), src/preproc/html2/pre-html.cc (main),
8429         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
8430         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
8431         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
8432         (main), src/utils/hpftodit/hpftodit.cc (main),
8433         src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
8434         (main), src/utils/lookbib/lookbib.cc (main),
8435         src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
8436         (main): Use stdout for -v.
8437         * src/roff/groff/groff.cc (run_commands),
8438         src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
8439         to make direct printing to stdout possible.
8440         * src/roff/groff/pipeline.h: Updated.
8442         * src/utils/afmtodit/afmtodit.pl: Add -v switch.
8443         * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
8444         * src/utils/afmtodit/afmtodit.man: Updated.
8446         * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
8447         (version): New function.
8448         (usage): Updated.
8449         * src/utils/addftinfo/addftinfo.man: Updated.
8451         * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
8452         Fixing copyright dates.
8454         * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
8455         replacing it.
8457         * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
8458         version_string.
8460         * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
8462 2000-11-15  Werner LEMBERG  <wl@gnu.org>
8464         In all programs, make -v return immediately with exit status 0 to
8465         be compliant with the GNU standard.
8467         * src/devices/grodvi/dvi.cc (main),
8468         src/devices/grohtml2/post-html.cc (main),
8469         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
8470         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
8471         (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
8472         (main), src/preproc/html2/pre-html.cc (main),
8473         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
8474         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
8475         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
8476         (main): Implement it.
8477         * NEWS: Updated.
8479         * src/roff/groff/groff.cc (main): Add copyright notice.  Add refer
8480         and postprocessors to the -v option.
8482         * src/roff/grog/grog.pl: Implement -v.
8483         * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
8484         * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
8486         * src/roff/nroff/nroff.sh: Implement -v.
8487         * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
8488         * src/roff/nroff/nroff.man: Updated.
8489         
8490         * src/preproc/eqn/main.cc (main): Fix comment typo.
8492         * MORE.STUFF: Added info about djgpp port of grap.
8494 2000-11-14  Werner LEMBERG  <wl@gnu.org>
8496         * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
8497         mode (or rather, implemented non-compatibility mode).
8498         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
8500         * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
8501         replacing it -- we don't find gxditview otherwise.
8502         * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
8504         * src/preproc/pic/depend: Removed.  Unnecessary.
8506         Implemented dummy keyword `solid' in pic for compatibility with
8507         AT&T pic.
8509         * lex.cc (lookup_keyword): Added `solid'.
8510         * pic.y: Added SOLID with dummy rule.
8511         * pic.cc, pic_tab.h: Regenerated.
8512         * doc/pic.ms: Updated.
8514 2000-11-13  Werner LEMBERG  <wl@gnu.org>
8516         For security reasons, don't use the current directory but the home
8517         directory while searching and scanning troffrc and troffrc-end.
8518         Similarly, replace the current directory with the home directory
8519         in the font path.
8521         * Makefile.in (fontpath, tmacpath): Remove current directory.
8523         * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
8524         two parameters `add_home' and `add_current'.
8525         (search_path::~search_path, search_path::command_line_dir,
8526         search_path::open_file): Remove tests for `dirs' being zero.
8527         * src/include/searchpath.h: Adjust.
8528         * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
8529         `safer_macro_path'.
8530         * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
8532         * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
8533         * src/roff/troff/input.cc: Use `mac_path', initialized with
8534         `macro_path'.
8535         (process_startup_file): Set `mac_path' to `safer_macro_path'.
8536         * src/roff/troff/env.cc: Use `mac_path'.
8538         * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
8540         * NEWS, man/roff.man, src/roff/troff/troff.man,
8541         src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
8542         Updated.
8544 2000-11-12  Werner LEMBERG  <wl@gnu.org>
8546         * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
8548         * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
8549         * configure.in: Fix typo in comment.
8550         * configure: Regenerated.
8552         * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
8553         copyright dates.
8555 2000-11-08  Werner LEMBERG  <wl@gnu.org>
8557         Add system tmac directory (/usr/local/lib/groff/site-tmac).
8559         * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
8560         (uninstall_dirs): Add $(libdir), $(libprogramdir), and
8561         $(systemtmacdir).
8562         Use @libdir@.
8563         * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
8564         * tmac/Makefile.sub (install_data): Create
8565         $(systemtmacdir) and $(localtmacdir).
8566         (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
8567         * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
8568         NEWS, doc/groff.texinfo: Updated and minor fixes.
8570         * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
8571         * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
8572         $(systemtmacdir) since the wrapper files are platform-dependent.
8574 2000-11-01  Werner LEMBERG  <wl@gnu.org>
8576         * doc/groff.texinfo: Fix typo.
8578 2000-10-26  Werner LEMBERG  <wl@gnu.org>
8580         Convert macros `tmac.XXX' to `XXX.tmac'.  Special cases:
8581           tmac.doc.old -> doc-old.tmac
8582           tmac.an.old  -> an-old.tmac
8584         * tmac/tmac.*: Moved to ...
8585         * tmac/*.tmac: this.
8586         * tmac/man.local: Fix comment.
8587         * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
8588         tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. 
8589         Added some `FILES' sections.  More use of @...@ directives.  Other
8590         minor updates.
8591         * arch/djgpp/README, font/devutf8/NOTES: Updated.
8592         * doc/homepage.ms, doc/groff.texinfo: Updated.
8593         * man/groff.man, man/roff.man: Updated.
8594         * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
8595         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
8596         src/devices/grotty/grotty.man: Updated.
8597         * src/preproc/pic/pic.man: Updated.
8598         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
8599         instead of -mdoc.old.
8600         * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
8601         * src/roff/nroff/nroff.man: Updated.
8602         * NEWS: Updated.
8604         * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
8606         * tmac/mm.diff: Removed -- it has no use now since the mm package
8607         is part of groff.
8609         * tmac/*: Removed trailing spaces.
8611         * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
8612         the tmac subdirectory also).
8614         * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
8615         * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
8616         stuff since it is no longer needed.
8618         * README, PROBLEMS: Updated.
8620 2000-10-25  Werner LEMBERG  <wl@gnu.org>
8622         Invert current behaviour: Search first FOOBAR.tmac, then
8623         tmac.FOOBAR.
8625         * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
8626         (open_mac_file, macro_source): Implement it.
8627         * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
8628         doc/groff.texinfo, NEWS: Document it.
8630         * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
8631         Small documentation improvements.
8633         * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
8634         subdirectory also).
8636         * font/devps/Makefile.sub: Fix rules for dingbats.*map.
8638 2000-10-24  Werner LEMBERG  <wl@gnu.org>
8640         Add local tmac directory (groff/site-tmac).
8642         * Makefile.in: Add $(localtmacdir).
8643         (uninstall_dirs): Add $(localtmacdir).
8644         * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
8645         * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
8646         in $(localtmacdir).  Create $(localtmacdir).
8647         * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
8648         Updated and minor fixes.
8650         Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
8652         * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
8654 2000-10-23  Werner LEMBERG  <wl@gnu.org>
8656         Move hyphen.us to tmac directory.
8658         * src/roff/troff/hyphen.us: Removed.
8659         * src/tmac/hyphen.us: Added.
8660         * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
8662         Change installation structure for data files from .../groff/... to
8663         .../groff/<version><revision>/... to be conform with other GNU
8664         programs.
8666         * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
8667         doc/Makefile: Implement it.
8668         * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
8669         * configure: Updated.
8670         * arch/djgpp/README, font/devutf8/NOTES: Use it.
8671         * NEWS: Document it.
8672         * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
8673         @MACRODIR@ instead of hard-coded directories.
8675 2000-10-22  Werner LEMBERG  <wl@gnu.org>
8677         Implement $GROFF_BIN_PATH environment variable (which defaults to
8678         $bindir) used for child programs of groff and similar wrappers.
8680         * gendefs.sh: Improve documentation.
8681         * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
8682         src/preproc/eqn/Makefile.sub (neqn),
8683         src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
8684         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
8685         $GROFF_BIN_PATH.
8686         * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
8687         $GROFF_PATH__ (the latter for communication with troff).
8688         * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
8689         set.
8690         * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
8691         doc/groff.texinfo: Document it.
8693         * doc/groff.texinfo: Improve documentation of troff's -a option.
8695 2000-10-17  Gaius Mulley  <gaius@glam.ac.uk>
8697         * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
8698         non-intrusive eol marker.
8699         (troff_output_file::determine_line_limits): New function.
8700         (troff_output_file::draw): Use it.
8701         * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
8702         output_pending_lines() instead of output_line().
8703         * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
8704         * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
8705         createImage): Small fixes.
8706         
8707 2000-10-14  Werner LEMBERG  <wl@gnu.org>
8709         Replace tmac.safer with a real secure solution.
8711         * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
8712         system_request, pipe_output): Disable requests if in safer mode.
8713         * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
8714         * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
8715         * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
8716         doc/groff.texinfo, src/roff/groff/groff.man,
8717         src/roff/troff/troff.man, arch/djgpp/README: Updated.
8719         * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
8720         (resource_manager::output_prolog): Replace setenv() with putenv().
8722 2000-10-09  Werner LEMBERG  <wl@gnu.org>
8724         * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
8725         src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
8726         src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
8727         src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
8728         compilation errors with some compilers.  It seems that this code
8729         is no longer necessary -- if yes, it is easy to add some #ifdef's
8730         for that particular old-fashioned compiler.
8732         * MORE.STUFF: Added info about Meta-tbl.
8734         * doc/groff.texinfo: Added more info about `.if "..."..."'.
8736 2000-10-07  Werner LEMBERG  <wl@gnu.org>
8738         Adding a new escape sequence \B'...': If the string between
8739         the delimiters is a valid numeric expression, return the character
8740         `1', and `0' otherwise.  This is an analogon to \A.
8742         * src/roff/troff/input.cc (do_expr_test): Implement it.
8743         (token::next): Use it.
8744         * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
8746         * tmac/tmac.trace: Made independent from escape character.
8748 2000-10-06  Werner LEMBERG  <wl@gnu.org>
8750         Adding a new request .dei: define indirect.  The first and second
8751         parameter of .dei are taken from string registers instead directly;
8752         this very special request is needed to make tmac.trace independent
8753         from the escape character (which might even be disabled).
8755         * src/roff/troff/input.cc (do_define_macro): Implement it.
8756         (define_macro_indirect): New function.
8757         (init_input_requests): Use it.
8759         Adding two requests .ecs and .ecr: Save and restore the escape
8760         character.  These two requests are needed to make tmac.trace
8761         independent from the escape character (which might even be
8762         disabled).
8764         * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
8765         Implement it.
8766         (init_input_requests): Use it.
8768         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
8770 2000-09-22  Ricardo Soares Guimarães  <ricardo@conectiva.com.br>
8772         Adding a new option -P and new environment variable GROPS_PROLOGUE
8773         to grops, selecting a different prologue file (minor modifications
8774         by WL).
8776         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
8777         src/devices/grops/ps.cc (main): Implement it.
8778         * src/devices/grops/grops.man, NEWS: Document it.
8780 2000-09-22  Werner LEMBERG  <wl@gnu.org>
8782         * INSTALL: Add info about selecting paper format.
8784 2000-09-21  Werner LEMBERG  <wl@gnu.org>
8786         * src/roff/troff/input.cc (main): Fixing compiler warning.
8787         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
8788         strings.h from the former to the latter.
8789         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
8790         stuff from the former to the latter.
8792 2000-09-11  Werner LEMBERG  <wl@gnu.org>
8794         Implementing two new requests .tm1 and .tmc: The former is similar
8795         to .tm but can output leading spaces; its syntax is similar to
8796         defining a string, i.e., a `"' can be used to mark the beginning of
8797         the string to be written to stderr: `.tm1 " test'.  The latter is
8798         similar to .tm1 but doesn't write out a final newline character.
8800         * src/roff/troff/input.cc (terminal1, terminal_continue,
8801         do_terminal): New functions.
8802         (init_input_requests): Use them.
8803         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
8805 2000-09-09  Werner LEMBERG  <wl@gnu.org>
8807         * tmac/groff_mdoc.samples.man: Small fixes.
8809 2000-09-08  Werner LEMBERG  <wl@gnu.org>
8811         * tmac/groff_mdoc.man: Fixing typo.
8813 2000-09-02  Werner LEMBERG  <wl@gnu.org>
8815         Implementing a .nop request which does nothing.
8817         * src/roff/troff/input.cc (nop_request): New function.
8818         (init_input_requests): Use it.
8819         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
8821 2000-09-01  Werner LEMBERG  <wl@gnu.org>
8823         * doc/groff.texinfo: Added some comments.
8825 2000-08-30  Werner LEMBERG  <wl@gnu.org>
8827         * src/roff/troff/TODO: Updated.
8829 2000-08-25  Werner LEMBERG  <wl@gnu.org>
8831         * doc/groff.texinfo: Fix comment how to compile the DVI file.
8833 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
8835         * font/devps/generate/Makefile (SHELL): Define explicitly to
8836         "/bin/sh", for non-Unix platforms.
8837         (extraclean): Use a more portable "" quoting instead of a
8838         backslash (which doesn't work on DOS/Windows).
8839         
8840         * font/devlj4/generate/Makefile (extraclean): Ditto.
8842         * font/devdvi/generate/Makefile (extraclean): Ditto.
8844 2000-08-25  Werner LEMBERG  <wl@gnu.org>
8846         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
8847         src/roff/troff/troff.man: Document Eli's latest changes.
8849 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
8851         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
8852         macro file names of the form NAME.tmac as well as tmac.NAME.
8854 2000-08-25  Werner LEMBERG  <wl@gnu.org>
8856         * src/include/posix.h: Remove definition of FILENAME_MAX.
8858         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
8859         `sys_fatal' and `stop' function().
8861         * test-groff: Updated.
8863 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
8865         Added the new troff command .output <arg> to suppress output (while
8866         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
8867         registers (for passing the output dimensions to the output device).
8869         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
8870         parameter.
8871         * src/roff/troff/node.h, src/roff/troff/node.cc
8872         (troff_output_file::really_print_line,
8873         ascii_output_file::really_print_line,
8874         supress_output_file::really_print_line): Use `width' parameter.
8875         (troff_output_file::really_on, troff_output_file::really_off,
8876         output_file::on, output_file::off, real_output_file::on,
8877         real_output_file::off, real_output_file::really_on,
8878         real_output_file::really_off): New functions.
8879         (real_output_file:public output_file): New variable `output_on'.
8880         (real_output_file::begin_page, real_output_file::copy_file,
8881         real_output_file::transparent_char, real_output_file::print_line):
8882         Use it.
8883         (real_output_file::print_line): Use check_output_limits.
8884         * src/roff/troff/reg.h, src/roff/troff/request.h,
8885         src/roff/troff/input.cc (assign_registers): New function to remove
8886         two `goto's.
8887         (do_ps_file): Use it.
8888         (check_output_limits, reset_output_registers, output_request,
8889         init_output_requests): New functions.
8890         (init_input_requests): Updated.
8892         Added new grohtml2 device and html2 preprocessor (coding
8893         not yet finished) which will eventually replace grohtml.
8895         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
8896         Updated.
8897         * src/include/htmlindicate.h, src/include/htmlindicate
8898         (html_begin_suppress, html_end_suppress): New functions.
8899         * src/preproc/tbl/main.cc: Use it.
8900         * src/roff/groff/groff.cc: Add support for html2 device (which will
8901         automatically invoke the html2 preprocessor).
8902         * src/roff/troff/input.cc (is_html2): New variable.
8903         * src/roff/troff/troff.h, src/roff/troff/env.h,
8904         src/roff/troff/env.cc (environment::add_html_tag): New function
8905         (uses `is_html2').
8906         (environment::do_break): Use it.
8907         * font/devhtml2/*: New files.
8908         * src/devices/grohtml2: New device.
8909         * src/preproc/html2: New preprocessor.
8910         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
8912 2000-08-23  Werner LEMBERG  <wl@gnu.org>
8914         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
8916 2000-08-22  Werner LEMBERG  <wl@gnu.org>
8918         * src/include/lib.h: Provide a fix for IRIX to not include
8919         groff-getopt.h.
8921 2000-08-18  Werner LEMBERG  <wl@gnu.org>
8923         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
8924         since some non-GNU sed programs can't handle null regexps.
8925         * configure, src/preproc/eqn/Makefile.sub,
8926         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
8928         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
8929         bug (string.h and strings.h are both needed according to latest
8930         POSIX standard).
8932         * MORE.STUFF: Added info about unroff and troffcvt.
8934 2000-08-08  Werner LEMBERG  <wl@gnu.org>
8936         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
8937         used before -ms.
8939         * tmac/tmac.man.old: Remove unused number register.
8941         * tmac.doc: Minor documentation fix.
8943 2000-08-07  Paul Eggert  <eggert@twinsun.com>
8945         * src/roff/groff/pipeline.c (is_system_shell):
8946         Fix typo: "monocased_shell" no longer exists.
8948 2000-08-07  Paul Eggert  <eggert@twinsun.com>
8950         Remove FILENAME_MAX limits.
8952         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
8953         that the argument length is less than FILENAME_MAX.
8954         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
8955         Use struct hack to allocate and free file name.
8956         (struct xtmpfile_list): fname is now part of the structure,
8957         not a pointer to another string.
8959 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
8961         * src/include/posix.h: Add a default value for FILENAME_MAX.
8963 2000-08-06  Paul Eggert  <eggert@twinsun.com>
8965         Add support for new BSD-style man pages (with ".Dd" instead of
8966         ".TH"), so that "groff -man" understands both styles, even
8967         when running "groff -man" on a host whose system man page
8968         macros don't support ".Dd".
8970         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
8971         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
8972         in case the system man macros don't define Dd or TH.
8974         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
8975         * tmac/tmac.an: New one-line file.
8976         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
8978 2000-08-06  Werner LEMBERG  <wl@gnu.org>
8980         * src/roff/troff/troff.man: Fixing typos.
8982 Version 1.16.1 released
8983 =======================
8985 2000-07-31  Werner LEMBERG  <wl@gnu.org>
8987         Preparing release 1.16.1.
8989         * REVISION: Revision number set to 1.
8990         * MORE.STUFF: Added info about port to DOS.
8991         * NEWS, win32-diffs: Updated.
8993         * src/include/nonposix.h: Remove first line -- this file is used
8994         in C also.
8996         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
8997         link to it.
8999 2000-07-30  Werner LEMBERG  <wl@gnu.org>
9001         * doc/texinfo.tex: Update to latest version.
9003 2000-06-28  Paul Eggert  <eggert@twinsun.com>
9005         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
9006         commands that fail.  Don't assume that "export a=b" is valid shell
9007         syntax.  This is needed for Solaris 2.5.1.
9009         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
9010         comment about missing Solaris headers.
9012         * PROBLEMS: Add section about problems with Sun Make and VPATH.
9014 2000-06-25  Werner LEMBERG  <wl@gnu.org>
9016         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
9017         SET_BINARY().
9019         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
9021         * win32-diffs: Updated.
9022         * README.WIN32: Added CRs to make all Windows editors happy.
9024         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
9025         src/roff/groff/pipeline.c).
9027 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
9029         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
9030         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
9032 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
9034         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
9035         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
9036         are binary files.
9037         (main): Support non-Posix systems with several different styles of
9038         slash characters in file names.
9040         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
9041         (main) [SET_BINARY]: Switch stdin into binary mode.
9043         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
9044         (main): Support file names with several possible slash-type
9045         characters, as given by DIR_SEPS[] in nonposix.h.
9046         (main) [__MSDOS__]: If renaming the temporary index file fails
9047         because it has more than one dot in its trunk, replace the dot
9048         with an underscore and try again.
9049         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
9050         Newline.
9051         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
9053         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
9054         (File::File): Open the input file in binary mode.  Strip CR
9055         characters from each CR-LF pair.
9056         (xbasename): Support file names with several possible slash-type
9057         characters, as given by DIR_SEPS[] in nonposix.h.
9059         * src/include/Makefile.sub (HDRS): Add nonposix.h.
9061         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
9062         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
9063         [!_POSIX_VERSION]: Define for traditional Unix systems.
9064         (real_output_file::real_output_file): Remove the MSVC-specific
9065         call to popen, use instead POPEN_WT, appropriately defined on
9066         nonposix.h.  #include nonposix.h.
9067         (real_output_file::~real_output_file): Remove the MSVC-specific
9068         call to pclose, a suitable macro is now defined on nonposix.h.
9069         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
9070         and WEXITSTATUS instead of assuming traditional Unix
9071         interpretation of the status returned by pclose.
9073         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
9074         call to popen, use POPEN_RT instead (appropriately defined on
9075         nonposix.h).  #include nonposix.h.
9076         (ps_bbox_request): Open the PostScript file in binary mode.
9077         Close the file after processing it.
9078         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
9079         nonposix.h.
9081         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
9082         A version of run_pipeline that doesn't use `fork'.
9083         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
9084         (system_shell_name, system_shell_dash_c)
9085         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
9086         the ugliness of testing DOS/Windows file names for equality, and
9087         support both stock shells and ports of Unix shells.
9089         * src/roff/groff/groff.cc: #include nonposix.h.
9090         (BSHELL): Definition moved to nonposix.h.
9091         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
9092         instead of a literal "-c".
9093         (xbasename): Support file names with several possible slash-type
9094         characters, as given by DIR_SEPS[] in nonposix.h.
9095         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
9096         of literal strings.
9098         * src/preproc/soelim/soelim.cc: #include nonposix.h.
9099         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
9101         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
9102         pic_tab.h.
9104         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
9106         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
9107         eqn_tab.h.
9109         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
9111         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
9112         P_tmpdir is defined, use it instead of the literal "/tmp".
9113         (remove_tmp_files, add_tmp_file): New functions.
9114         (xtmpfile): Record temporary files and register an atexit function
9115         to delete them explicitly, instead of relying on the OS to do
9116         that, which doesn't work on non-Unix systems.
9118         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
9119         (search_path::search_path): Use PATH_SEP instead of a literal
9120         colon.
9121         (search_path::command_line_dir): Ditto.
9122         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
9123         to support non-Posix systems.
9125         * src/libs/libbib/search.cc: #include nonposix.h.
9126         (search_list::add_file): Open the file in binary mode.
9128         * src/libs/libbib/linear.cc: #include nonposix.h.
9129         (file_buffer::load): Remove \r characters preceding \n from the
9130         loaded buffer.
9132         * src/libs/libbib/index.cc: #include nonposix.h.
9133         (make_index_search_item): Open index_filename in O_BINARY mode.
9134         (index_search_item_iterator::get_tag): Ditto.  Remove \r
9135         characters before \n characters.
9136         (index_search_item::check_files): Open files in binary mode.
9137         (index_search_item::munge_filename): Support DOS-style file names
9138         with backslashes and drive letters, use IS_ABSOLUTE.
9140         * src/devices/grops/ps.cc: #include nonposix.h.
9141         (main) [SET_BINARY]: Switch stdout to binary mode.
9143         * src/devices/grolj4/lj4.cc: #include nonposix.h.
9144         (main) [SET_BINARY]: Switch stdout to binary mode.
9146         * src/devices/grolbp/lbp.cc: #include nonposix.h
9147         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
9149         * src/devices/grodvi/dvi.cc: #include nonposix.h.
9150         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
9151         nonposix.h).
9152         (main) [SET_BINARY]: Switch stdout to binary mode.
9153         [_MSC_VER]: Remove an explicit call to _setmode.
9155         * src/include/nonposix.h: New file.
9157         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
9158         operation when building with DJGPP.
9159         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
9160         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
9161         ENVSETUP.
9163         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
9164         MS-DOS.
9165         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
9166         etc. can include a semi-colon on DOS/Windows.
9167         (depend.temp): Use depend1.temp instead of depend.temp1, to
9168         prevent files from overerwiting each other on 8+3 filesystems.
9170         * gendef.sh (t): Change definition to work with DOS/Windows.
9172         doc/groff.texinfo: Apart of some typo corrections, I also changed
9173         some index entris, to make them more non-ambiguous, and also put
9174         @ignore around some parts that are not yet written, to allow the
9175         Info output be readable.
9177 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
9179         Replaced specific checks for function declarations with a generic
9180         routine taken from GNU bfd.
9182         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
9183         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
9184         * configure.in: Use it.
9185         * src/devices/grolbp/lbp.cc, src/include/lib.h,
9186         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
9187         src/roff/groff/groff.cc: Use it.
9188         * Makefile.in, configure: Updated.
9190 2000-06-07  Paco Andrés Verdú  <pandres@dragonet.es>
9192         * src/devides/grolbp/lbp.h: Removed unused variables.
9194 2000-05-31  Keith Thompson  <kst@sdsc.edu>
9196         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
9197         strncasecmp().
9199 2000-05-31  Werner LEMBERG  <wl@gnu.org>
9201         * aclocal.m4 (GROFF_SRAND): New function to test the return value
9202         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
9203         * configure.in: Use it.
9204         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
9205         * configure, Makefile.in: Updated.
9207         * configure.in: Add test for strncasecmp().
9208         * src/include/lib.h: Use it.
9210 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
9212         * src/preproc/grn/Makefile.sub: Add MLIB.
9214 2000-05-29  Nix  <nix@esperi.demon.co.uk>
9216         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
9218 2000-05-29  Werner LEMBERG  <wl@gnu.org>
9220         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
9222         * PROBLEMS: Small update.
9224         * src/devices/grolbp/lbp.cc: Various small fixes.
9226 2000-05-28  Keith Thompson  <kst@sdsc.edu>
9228         * src/roff/nroff/nroff.sh: Fix main loop syntax.
9230         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
9232 2000-05-25  Werner LEMBERG  <wl@gnu.org>
9234         * man/roff.man: Removed unused macro.
9236 2000-05-24  Werner LEMBERG  <wl@gnu.org>
9238         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
9239         This is needed e.g. if you do
9240         `make distclean; ./configure; make dist'.
9242 Version 1.16 released
9243 =====================
9245 2000-05-23  Werner LEMBERG  <wl@gnu.org>
9247         Adding font CWI (constant width italic) to devdvi.
9249         * font/devdvi/CWI: New file.
9250         * font/devdvi/generate/Makefile: Add generating rule.
9251         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
9252         tmac/tmac.dvi: Use it.
9253         * NEWS: Announce it.
9255         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
9256         * font/devlj4/generate/Makefile: Cosmetic changes only.
9258         * man/groff.man: Removed most of the redundant description of
9259         special characters (which is in groff_char.man).  Added font
9260         translation CB->CR for devdvi.  Other minor fixes.
9262         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
9263         (registered) symbols.
9265 2000-05-22  Werner LEMBERG  <wl@gnu.org>
9267         * doc/Makefile: Added rule for creating info files.
9269         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
9270         AMS font metrics.
9271         * font/devdvi/generate/Makefile: Fixed dependencies.
9273         * font/devps/*: Regenerated.  Heavy changes for Bookman and
9274         NewCentury Schoolbook!
9275         * font/devps/generate/afmname: Will now run with GNU awk.
9276         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
9277         * font/devps/generate/Makefile: Cosmetic changes only.
9279 2000-05-21  Werner LEMBERG  <wl@gnu.org>
9281         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
9282         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
9283         `.SS' now produces a heading with a smaller size than `.SH'. 
9284         Completely formatted.
9285         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
9287         * man/groff.man: Improved table appearance.  Use of `eo' request
9288         to reduce number of doubled backslashes in macro definitions.
9289         Replacing `\e' with `\(rs'.  Other minor fixes.
9291         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
9292         to have correct line number.
9294         * INSTALL: Small improvement.
9296 2000-05-20  Bernd Warken  <bwarken@mayn.de>
9298         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
9299         WL).
9301 2000-05-19  Bernd Warken  <bwarken@mayn.de>
9303         * man/groff.man: Complete update (with a lot of corrections by WL).
9305 2000-05-18  Werner LEMBERG  <wl@gnu.org>
9307         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
9309         * font/*/*: Implement it.
9310         * man/groff_char.man, NEWS: Document it.
9312         * src/include/unix.h: Removed.  It isn't used.
9314         * doc/groff.texinfo: Slight improvements.
9316 2000-05-17  Werner LEMBERG  <wl@gnu.org>
9318         * README, win32-diffs: Small fixes and improvements.
9320 2000-05-16  Werner LEMBERG  <wl@gnu.org>
9322         * FDL: New file (the Free Documentation License version 1.1).
9324         * doc/groff.texinfo: Added many start-up values for gtroff.
9325         Some structural improvements of the source code.
9327 2000-05-15  Werner LEMBERG  <wl@gnu.org>
9329         * src/roff/troff/input.cc: Added small comment about troffrc-end.
9330         * src/roff/troff/troff.man: Added info about troffrc-end.
9332 2000-05-14  Werner LEMBERG  <wl@gnu.org>
9334         * Makefile.in (EXTRADIRS): Fix typos.
9335         (dist): Handle deletion of old .tar.gz file correctly.
9336         (DISTDIRS): Include all tty output devices.
9338         * doc/groff.texinfo: Adding more cross references; countless other
9339         fixes.
9341 2000-05-13  Werner LEMBERG  <wl@gnu.org>
9343         * MORE.STUFF: Added Robert Marks's utilities.
9345 2000-05-12  Werner LEMBERG  <wl@gnu.org>
9347         Added win32 port contributed by Blake McBride
9348         <blake@florida-software.com>.
9350         * README.WIN32, win32-diffs: New files.
9351         * NEWS: Updated.
9353         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
9354         (tmove, tmove2): Added parentheses to avoid compiler warnings.
9355         (change): Removed unused variables.
9357         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
9358         (savebounds): Changed return value from `int' to `void'.
9359         * src/preproc/grn/hdb.cc: Ditto.
9361         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
9362         final backslash in comment to avoid compiler warning.
9364         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
9366         * doc/groff.texinfo: More fixes.
9368 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
9370         * tmac/tmac.doc: Documentation fix.
9372 2000-05-11  Werner LEMBERG  <wl@gnu.org>
9374         * doc/groff.texinfo: Reading the source code shows up a lot of
9375         omissions and incorrect data...  More conversion to @Deffn macros.
9377 2000-05-10  Werner LEMBERG  <wl@gnu.org>
9379         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
9380         dependency.
9382         * src/roff/troff/request.h: Removing unused `no_break_flag'.
9384 2000-05-09  Werner LEMBERG  <wl@gnu.org>
9386         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
9387         improvements.
9389         * doc/groff.texinfo: Extended history section.  More conversion to
9390         @Deffn macros.  More .tr documentation.
9392 2000-05-07  Werner LEMBERG  <wl@gnu.org>
9394         * doc/groff.texinfo: Completed tab section.  Added info about
9395         fields.
9397 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
9399         * PROBLEMS: Describe configure script fix for OS/390 Unix.
9401 2000-05-05  Werner LEMBERG  <wl@gnu.org>
9403         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
9404         LaTeX 2e).
9405         * NEWS: Document it.
9407         * man/troff.man: Minor optical improvements.
9409 2000-05-03  Werner LEMBERG  <wl@gnu.org>
9411         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
9413         * font/*/*: Implement it.
9414         * man/groff_char.man, NEWS: Document it.
9416 2000-05-02  Werner LEMBERG  <wl@gnu.org>
9418         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
9419         expansion.
9420         * NEWS: Document the three new man pages.
9422         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
9423         * configure: Updated.
9425         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
9427 2000-05-01  Werner LEMBERG  <wl@gnu.org>
9429         Added grap support to grog.
9431         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
9432         * src/roff/grog/grog.man: Document it.
9434         * doc/groff.texinfo, NEWS: Add info about grap support.
9436         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
9437         (with slight fixes by me).
9439         * tmac/groff_tmac.man: New file documenting tmac mechanism.
9440         * tmac/Makefile.sub: Add groff_tmac.man.
9441         * man/roff.man: New file giving overview of roff system.
9442         * man/troff.man: A short reference of troff.
9443         * man/Makefile.sub: Add roff.man and troff.man.
9445 2000-04-30  Werner LEMBERG  <wl@gnu.org>
9447         Added grap support to groff.
9449         * src/roff/groff/groff.cc: Implement it.
9450         * src/roff/groff/groff.man: Document it.
9452         * src/devices/grotty/grotty.man: Add cp1047 device.
9453         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
9454         Ditto.
9455         * src/roff/groff/groff.man: Ditto.
9456         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
9457         * doc/groff.texinfo: Ditto.
9459         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
9460         for cp1047.
9462 2000-04-29  Werner LEMBERG  <wl@gnu.org>
9464         * man/groff_char.man: Add `pc' glyph.
9465         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
9466         * tmac/tmac.tty: Add `pc' glyph.
9467         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
9468         we use cp1047 output device.
9470         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
9471         there are still hardcoded latin1->unicode values in utf8's font
9472         definition files.
9473         * configure: Updated.
9474         * NEWS: Minor clarification.  Updated.
9476         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
9477         Unix.
9479 2000-04-28  Werner LEMBERG  <wl@gnu.org>
9481         Adding EBCDIC code page 1047.
9483         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
9484         font/devcp1047/DESC.proto: New files.
9486         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
9487         either ascii/latin1 or cp1047.
9488         * Makefile.in: Use it.
9489         * configure: Updated.
9491         Replacing and/or adding `md' (mathdot) glyph with `pc'
9492         (periodcentered) in all text fonts.
9494         * font/*/*: Change it.
9496 2000-04-27  Werner LEMBERG  <wl@gnu.org>
9498         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
9500         * configure.in: Add check for strings.h.
9501         * src/include/driver.h: Use HAVE_STRINGS_H.
9502         * src/devices/grolbp/lpb.cc: Remove string.h.
9504         * src/include/groff-getopt.h: New file.  It will be used instead of
9505         getopt.h (to be included in lib.h) to avoid endless problems with
9506         picky C++ compilers.
9507         * src/include/lib.h: Use groff-getopt.h.
9508         * src/include/Makefile.sub: Updated.
9510         * configure: Updated.
9511         * Makefile.in: Updated.
9513         * NEWS: Mention EBCDIC support.
9515 2000-04-26  Werner LEMBERG  <wl@gnu.org>
9517         * TODO: Some additions.
9519 2000-04-25  Werner LEMBERG  <wl@gnu.org>
9521         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
9522         of mso request.
9524 2000-04-23  Werner LEMBERG  <wl@gnu.org>
9526         * src/roff/troff/troff.man: Minor fixes.
9528 2000-04-22  Werner LEMBERG  <wl@gnu.org>
9530         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
9531         `.T' string register and the incompatible definition of the `.T'
9532         number register (compared to Unix troff).
9534         * man/groff_char.man: Add some missing characters.
9535         * font/devutf8/NOTES: Update.
9537 2000-04-21  Werner LEMBERG  <wl@gnu.org>
9539         * src/include/htmlindicate.h, src/include/lib.h,
9540         src/include/posix.h: Fix copyright.
9542         * src/include/Makefile.sub: Update.
9544 2000-04-20  Werner LEMBERG  <wl@gnu.org>
9546         * src/roff/troff/input.cc (input_char_description): Removing
9547         superfluous space char.
9549         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
9551         * doc/groff.texinfo: Document EBCDIC.
9553 2000-04-19  Werner LEMBERG  <wl@gnu.org>
9555         Introducing `shc' as the glyph name for the soft hyphen character.
9557         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
9558         font/devlatin1/R.proto: Use it.
9560         * NEWS: Updated.
9562 2000-04-18  Werner LEMBERG  <wl@gnu.org>
9564         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
9565         dependency on ASCII order.
9567 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
9569         * src/libs/libgroff/illegal.c: Added EBCDIC table.
9570         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
9572         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
9573         to increase portability.
9575 2000-04-15  Werner LEMBERG  <wl@gnu.org>
9577         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
9578         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
9579         the generic `\n' if under OS/390 Unix.
9581         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
9583         * configure: Regenerated.
9585 2000-04-14  Werner LEMBERG  <wl@gnu.org>
9587         * doc/groff.texinfo: More conversions to @Deffn.
9589 2000-04-12  Werner LEMBERG  <wl@gnu.org>
9591         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
9592         with `:'.
9594         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
9596 2000-04-10  Werner LEMBERG  <wl@gnu.org>
9598         * doc/groff.texinfo: More conversions to @Deffn.
9600 2000-04-08  Werner LEMBERG  <wl@gnu.org>
9602         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
9603         Updated to latest version (glibc 2.1.3).
9605 2000-04-07  Werner LEMBERG  <wl@gnu.org>
9607         * doc/Makefile (clean): Include more index files.
9608         Add rule texinfo->dvi.
9610 2000-04-05  Werner LEMBERG  <wl@gnu.org>
9612         * doc/groff.texinfo: Added new index `op' for operators.  More
9613         info on end of sentence characters.  More use of @Deffn.
9615 2000-03-30  Werner LEMBERG  <wl@gnu.org>
9617         * */*.man: Adding a note that a whitespace can be inserted between
9618         a command line option and its parameter -- we are using GNU getopt.
9620         * src/roff/groff/groff.man: Add example of `-m mandoc'.
9622 2000-03-28  Werner LEMBERG  <wl@gnu.org>
9624         Correct anachronism of calling the man macro file with `-man'
9625         instead of `-m man' etc.
9627         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
9628         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
9629         load tmac.<package>.
9631         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
9633         * NEWS: Updated.
9635         * doc/groff.texinfo: Updated.
9637         * tmac/groff_man.man: Copyright added.
9639 2000-03-27  Werner LEMBERG  <wl@gnu.org>
9641         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
9642         typeset the request resp. escape name with a tt font -- due to a
9643         bug in texinfo.tex it is necessary to use the `-e' switch with
9644         texi2dvi.
9646         Improving info about usage of groff units.
9648         Other minor fixes.
9650 2000-03-20  Werner LEMBERG  <wl@gnu.org>
9652         * doc/groff.texinfo: Added section about man macro package
9653         (I've basically taken groff_man.man).  Introducing new indices `ma'
9654         for macros/strings and `gl' for glyph names.  Other minor fixes.
9656         * tmac/groff_man.man: Fixed some typos.
9658 2000-03-19  Werner LEMBERG  <wl@gnu.org>
9660         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
9661         Other minor fixes.
9663         * doc/texinfo.tex: New file.
9665 2000-03-18  Werner LEMBERG  <wl@gnu.org>
9667         * doc/groff.texinfo: Improved section on number registers.  Other
9668         minor updates.
9670 2000-03-16  Werner LEMBERG  <wl@gnu.org>
9672         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
9673         synopsis.
9675         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
9676         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
9677         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
9678         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
9680         * src/preproc/grn/grn.man: Better synopsis; added copyright.
9682         * src/roff/grog/grog.man: Updated copyright date.
9684 2000-03-14  Francisco Andrés Verdú  <pandres@dragonet.es>
9686         * configure.in: Added test for strdup.
9688         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
9689         is available.
9691         Replaced dynamic allocation of arrays `[...]' with `new' operator.
9693         Other minor fixes.
9695 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
9697         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
9699 2000-03-11  Werner LEMBERG  <wl@gnu.org>
9701         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
9702         compilers silent.
9703         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
9704         * src/include/lib.h: Remove some spaces.
9706 2000-03-10  Werner LEMBERG  <wl@gnu.org>
9708         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
9709         initializers from arguments (some compilers don't like this).
9711 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
9713         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
9714         used by pic and eqn to tell grohtml where the graphic regions start
9715         and end.
9716         * src/libs/libgroff/Makefile.sub: Use it.
9717         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
9718         graphic_start() and graphic_end() from htmlindicate.cc.
9720 2000-03-09  Werner LEMBERG  <wl@gnu.org>
9722         * tmac/tmac.safer: Will now work correctly in compatibility mode.
9723         * tmac/groff_man.man: More fixes.
9725 2000-03-08  Werner LEMBERG  <wl@gnu.org>
9727         * doc/Makefile: Added texput.log to the `clean' target.
9728         * doc/groff.texinfo: Added info about delimiters for escapes.
9730 2000-03-08  Bernd Warken  <bwarken@mayn.de>
9732         * src/preproc/pic/pic.man: Add info on conversion of pic images to
9733         other graphic formats.
9735 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
9737         * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
9738         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
9739         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
9740         files.
9742 2000-03-07  Werner LEMBERG  <wl@gnu.org>
9744         * doc/groff.texinfo: Spelling fixes.
9746 2000-03-06  Werner LEMBERG  <wl@gnu.org>
9748         * tmac/groff_man.man: Completely revised to cover everything in
9749         tmac.an.
9751         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
9752         Other minor fixings.
9753         * src/roff/troff/env.cc (environment_copy): Improve error message and
9754         fix itoa->i_to_a.
9755         * src/roff/troff/TODO: Updated.
9757         * doc/Makefile: Bug fixes -- this is still provisional, though...
9759         * tmac/eqnrc: Small fixes.
9761 2000-03-05  Abramo Bagnara  <abramo@alsa-project.org>
9763         Adding a request `evc' to copy environments.
9765         * src/roff/troff/env.cc (environment::copy, environment_copy):
9766         Implement it.
9767         * src/roff/troff/env.h: Add prototype.
9769 2000-03-05  Francisco Andrés Verdú  <pandres@dragonet.es>
9771         Adding strsep() -- Solaris 8 doesn't have it.
9773         * configure.in: Test it.
9774         * src/devices/grolbp/lbp.cc: Add code.
9776 2000-03-05  Werner LEMBERG  <wl@gnu.org>
9778         * src/roff/troff/div.cc (macro_diversion::output,
9779         top_level_diversion::output): Fixing an incompatibility with
9780         original troff: \x'0' updates the .a register also.  Thanks to
9781         <Andries.Brouwer@cwi.nl> for pointing this out.
9782         * doc/groff.texinfo: Document it.
9784         * Makefile.in: Create Makefile.dep if necessary before calling the
9785         submake process to avoid warning about nonexistent file.
9787         * NEWS, PROJECTS: Updated.
9789 2000-03-04  Werner LEMBERG  <wl@gnu.org>
9791         * tmac/troffrc: Add tmac.lbp.
9793 2000-03-03  Francisco Andrés Verdú  <pandres@dragonet.es>
9795         * tmac/tmac.lbp: New file.
9796         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
9797         command.
9799 2000-03-03  Werner LEMBERG  <wl@gnu.org>
9801         * Makefile.in: Fixing $(subdir).
9803         * README, NEWS: Small fixes.
9805         * test-groff: Adding path to grolbp.
9807         * configure.in: The (new) file src/xditview/Imakefile.in will be
9808         also configured -- it is now possible to build gxditview in a
9809         directory different from $srcdir.
9811 2000-03-02  Blake McBride  <blake@florida-software.com>
9813         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
9815         * MORE.STUFF: Added website of bell labs and info about plot2dev.
9817 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
9819         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
9820         files.
9822 2000-02-29  Werner LEMBERG  <wl@gnu.org>
9824         Adding GNU getopt to the groff distribution.
9826         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
9827         New files.
9828         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
9829         * aclocal.a4: Remove GROFF_GETOPT function.
9830         * configure.in, Makefile.in, PROBLEMS: Update.
9831         * src/include/lib.h: Replace getopt tests with getopt.h.
9832         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
9834         * doc/groff.texinfo: Further checking/updating.  Adding more index
9835         entries.
9837         * man/groff_out.man: Fix nroff mode activation (for emacs).
9838         * man/groff_font.man: Add missing ligature.
9840 2000-02-28  Werner LEMBERG  <wl@gnu.org>
9842         * doc/groff.texinfo: Further checking/updating.  Adding more index
9843         entries.
9845         * src/devices/grolbp/grolbp.man: Added a comment line at the
9846         beginning of the file (similar to shell scripts) which indicates
9847         that `tbl' should be used as a preprocessor.
9849 2000-02-27  Blake McBride  <blake@florida-software.com>
9851         Adapting groff to MS Visual C++ 6.0 compiler (tested with
9852         Windows NT 4.0).  Uses _MSC_VER define where necessary.
9854         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
9855         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
9856         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
9857         src/include/lib.h, src/libs/libgroff/errarg.cc,
9858         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
9859         src/preproc/refer/label.y, src/preproc/refer/label.cc,
9860         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
9861         src/roff/troff/div.cc, src/roff/troff/env.cc,
9862         src/roff/troff/input.cc, src/roff/troff/node.cc,
9863         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
9864         if_to_a() to avoid name clashes.
9865         * src/include/posix.h: Don't use unistd.h.
9866         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
9867         clause for integrating non-Unix xtmpfile() code.
9868         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
9869         structure; use "rt" for popen() in pipe_source(); add getpid()
9870         dummy function.
9871         * src/roff/troff/node.cc: Use special versions of popen() in
9872         real_output_file() and pclose() in ~real_output_file().
9874 2000-02-27  Werner LEMBERG  <wl@gnu.org>
9876         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
9877         LBP-8 series laser printers).  This code has been contributed by
9878         Francisco Andrés Verdú <pandres@dragonet.es>.
9880         * src/devices/grolbp/*: The grolbp output device.
9881         * font/devlpb/*: The font description files.
9882         * Makefile.in: Add grolpb and devlbp subdirectories.
9884         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
9885         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
9886         typographic fixes.
9888         * doc/groff.texinfo: Further checking/updating.  Adding more index
9889         entries.
9891         * NEWS: Updated.
9893         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
9895         * man/groff_font.man: Adding info about obsolete DESC keywords.
9896         * src/devices/grolj4/grolj4.man: Documenting additional DESC
9897         keywords.
9899 2000-02-26  Werner LEMBERG  <wl@gnu.org>
9901         * src/preproc/grn/grn.man: Added info about the gremlin file format
9902         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
9904 2000-02-25  Werner LEMBERG  <wl@gnu.org>
9906         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
9907         friends to be non-integer.
9909         * src/preproc/grn/grn.man: Document it.
9911         * doc/groff.texinfo: Further checking/updating.  Adding more index
9912         entries.
9914 2000-02-24  Werner LEMBERG  <wl@gnu.org>
9916         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
9917         line thicknesses to be integer multiples of this value.
9919         * src/preproc/grn/grn.man: Commenting out the -s option -- the
9920         corresponding code doesn't work (yet).
9922         * doc/groff.texinfo: Further checking/updating.  Adding more index
9923         entries.
9925 2000-02-23  Werner LEMBERG  <wl@gnu.org>
9927         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
9928         specify line thickness instead of base units.  The new default
9929         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
9930         thick lines respectively.
9932         Removed unused variable `prevval'.
9934         * src/preproc/grn/grn.man: Updated.
9936 2000-02-22  Werner LEMBERG  <wl@gnu.org>
9938         * src/preproc/grn/main.cc: Slight formatting.
9940         * src/roff/groff/groff.man: Formatting fix.
9941         * src/preproc/grn/grn.man: Ditto.
9943         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
9945         * doc/groff.texinfo: Further checking/updating.
9947 2000-02-21  Werner LEMBERG  <wl@gnu.org>
9949         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
9951         * test-groff: Added grn subdir to path.
9953         * doc/groff.texinfo: Some restructing and other small improvements.
9955         * src/roff/groff/groff.cc (help): Fixed info string.
9957 2000-02-20  Werner LEMBERG  <wl@gnu.org>
9959         * doc/meref.me: Fix description of .GS request.
9961         * src/roff/troff/troff.man: Fixing typo.
9963         Adding the `grn' preprocessor for gremlin graphic files.
9965         * src/preproc/grn/*: This is the Berkeley distribution written by
9966         David Slattengren and Barry Roitblat, adapted to groff by Daniel
9967         Senderowicz and Werner Lemberg.
9969         * doc/grnexampl.{me,g}: A sample for grn.
9971         * Makefile.in: Added subdirectory entry for grn.
9973         * src/roff/groff/groff.cc: Added support for grn.  It can be now
9974         called with the switch `-g'.
9976         * src/roff/groff/groff.man: Updated.
9978         * src/roff/grog/grog.{man,pl,sh}: Updated.
9980         * NEWS: Updated.
9982 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
9984         * src/include/lib.h: Added xtmptemplate and made xtmpfile
9985         parametrically polymorphic.
9987         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
9988         and the alterations to xtmpfile.
9989         xtmpfile can be requested to return the filename created
9990         and asked not to unlink the temp file.  The default behaviour
9991         if parameters are absent is exactly the same as before.
9993 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
9995         A new request `length' is available which returns the length of a
9996         string in a number register:
9998         * src/roff/troff/input.cc (length_macro): Implement it.
9999         * src/roff/troff/input.cc (init_input_requests): Register it.
10001 2000-02-11  Werner LEMBERG  <wl@gnu.org>
10003         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
10004         of the `substring' request.
10006         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
10007         request.
10009         * src/roff/troff/TODO, NEWS: Updated.
10011 2000-02-09  Werner LEMBERG  <wl@gnu.org>
10013         * src/roff/groff/groff.man: Added an example.
10015 2000-02-06  Werner LEMBERG  <wl@gnu.org>
10017         I've considerably modified the directory structure of the
10018         distribution to get a more vertical layout.  For example, the number
10019         of top level directories has been reduced from 42 to 6.
10021         As a consequence, many changes, especially to the makefiles, were
10022         necessary:
10024         * The makefile variables `top_builddir' and `top_srcdir' have been
10025         introduced.  Virtually all relative paths have been replaced with
10026         absolute ones using these two variables.
10028         * Dependencies (in the files `Makefile.dep') are no longer part of
10029         the distribution.  Instead, they are created during a `make install'
10030         in the build directory.
10032         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
10033         make `top_srcdir' and `top_builddir' absolute.
10035         Some other changes:
10037         * Man pages now depend on the files `VERSION' and `REVISION'.
10039         * The added shell script `mkinstalldirs' will replace `mkdir' in
10040         almost all cases.
10042         * VERSION: Version number increased to 1.16.
10044 2000-02-04  Werner LEMBERG  <wl@gnu.org>
10046         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
10048         * Makefile.in: Removed $(tmac_m) since it is no longer needed
10049         (after an update of the mm stuff).
10051         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
10053 2000-02-03  Werner LEMBERG  <wl@gnu.org>
10055         The .psbb request will now also accept Mac PS images (i.e. using LF
10056         as the EOL character).
10058         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
10059         (with slight modifications).
10060         * troff/input.cc (do_ps_file): Use it.
10062         * test-groff: Add grohtml and grolj4 output devices to PATH.
10064 2000-01-30  Werner LEMBERG  <wl@gnu.org>
10066         * NEWS, MORE.STUFF: Updated.
10068 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
10070         Add the `srand' command to pic.
10072         * pic/lex.cc, pic/pic.y: Implement it.
10073         * pic/pic.man: Document it.
10074         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
10076 2000-01-30  Werner LEMBERG  <wl@gnu.org>
10078         Add a new request `.psbb'.  This does exactly what the external
10079         program psbb did.  It scans a PostScript image file for a
10080         %%BoundingBox comment and extracts the bounding box values (in
10081         PostScript units) which are then stored in the four new (read-only)
10082         number registers `llx', `lly', `urx', and `ury'.
10084         This will allow the usage of the .PSPIC macro without worrying
10085         about unsafe behaviour of groff, i.e., it will work without the
10086         `-U' switch of groff.
10088         * troff/input.cc: Implement it.
10089         * tmac/tmac.pspic: Use it.
10090         * troff/troff.man, grops/grops.man, NEWS: Document it.
10091         * psbb/*, Makefile.in: Remove it since it is no longer needed.
10093         This is bloody C code simply adapted from psbb.c!  Any improvements
10094         welcome.
10096 2000-01-29  Werner LEMBERG  <wl@gnu.org>
10098         * man/groff_font.man: Minor clarifications.
10100         * NEWS: Updated.
10102 2000-01-28  Werner LEMBERG  <wl@gnu.org>
10104         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
10106 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
10108         * man/groff_font.man: Brought up to date regarding tcommand
10109         extensions.
10110         * libgroff/font.cc: Handle everything after `--' as a comment
10111         in the font files.
10112         * devps/*: Added comment delimiter inside devps font files.
10114 2000-01-28  Werner LEMBERG  <wl@gnu.org>
10116         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
10117         \fC...\fP (which now works as expected).
10119         * troff/troff.man: Fix typo.
10121 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
10123         Completed the pass_filenames implementation in troff.
10125         * libdriver/input.cc: Will read the new `F' tcommand.
10126         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
10127         * troff/input.cc: Use it.
10129 2000-01-26  Werner LEMBERG  <wl@gnu.org>
10131         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
10132         font will now be updated even if an invalid font is selected.
10134 2000-01-24  Werner LEMBERG  <wl@gnu.org>
10136         * doc/homepage.ms: Updated for new tmac.arkup.
10138         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
10140         * tmac/tmac.arkup: Cleanup.
10142         Added `\&' to .HTML macro to `leave vertical mode', so to say.
10144         Removed obsolete .LINK macro completely.
10146         The macros .URL, .FTP, and .MAILTO now accept a third argument which
10147         will be immediately appended to the second argument (to be used with
10148         punctuation, for example).
10150         Disabled .CDFTP macro temporarily for security reasons.
10152         * tmac/groff_markup.man: Complete revision for latest changes in
10153         tmac.arkup -- note that it does not yet format correctly with
10154         grohtml :-(
10156 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
10158         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
10159         * devutf8/R.proto: Add mappings for wp, lh, rh.
10160         * devutf8/NOTES: Updated.
10162 2000-01-23  Werner LEMBERG  <wl@gnu.org>
10164         * doc/groff.texinfo: Updated version/copyright info.
10166 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
10168         Added support for two new directives in device descriptions:
10169         `pass_filenames' (to pass the input file name to the output device)
10170         and `use_charnames_in_special' (to support e.g. accented characters
10171         in the `X' request).
10173         * include/font.h, troff/charinfo.h: Declare it.
10175         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
10177         * devhtml/DESC: Use it.
10179         * troff/input.cc: New function encoded_char.
10181         * troff/token.h: Add test for `specialness'.
10183 2000-01-21  Werner LEMBERG  <wl@gnu.org>
10185         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
10186         mistake from the list of files to be installed.
10188 2000-01-18  Werner LEMBERG  <wl@gnu.org>
10190         * README: Added info how to apply patches.
10192 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
10194         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
10196 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
10198         * troff/input.cc: Add support for troffrc-end.
10200         * tbl/main.cc: Altered to issue table-start and table-end special
10201         characters if using the html device.
10203         * devhtml/*: Modified font files to incorporate html encoding of
10204         characters.
10206         * tmac/groff_markup.man: New file documenting tmac.arkup.
10208         * tmac/troffrc-end: New file.  This is invoked after all user
10209         specified macros.  Currently used by the html device to include
10210         tmac.html.  Thus no need for users to specify -mhtml anymore.
10212         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
10213         (MAN7): Add groff_markup.man.
10215         * tmac/tmac.an, tmac/tmac.html: Small html updates.
10217         * tmac/troffrc: tmac.arkup will now be called for the html device.
10219         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
10220         extra device specific information about fonts.
10222         * doc/homepage.ms: New file.  It is an example how an HTML home page
10223         could look like with grohtml.
10225         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
10227 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
10229         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
10230         of Im, Re.
10232         * devutf8/NOTES: Updated.
10234 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
10236         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
10237         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
10238         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
10239         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
10240         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
10241         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
10242         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
10243         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
10244         warnings.
10246         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
10248 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
10250         grolj4: Paper size will be searched case-insensitively.
10252         * include/lib.h: Add check for strcasecmp().
10253         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
10254         * configure.in: Check for strcasecmp().
10256 2000-01-11  Werner LEMBERG  <wl@gnu.org>
10258         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
10259         `REVISION'.
10261 2000-01-10  Werner LEMBERG  <wl@gnu.org>
10263         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
10264         revision scheme.
10266         Add a new read-only register, `.Y', which contains the groff
10267         revision.
10269         * troff/input.cc (init_input_requests): Define it.
10270         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
10271         * doc/groff.texinfo, troff/troff.man: Document it.
10273         * libgroff/Makefile.sub (version.cc): Add definition of
10274         `Version_string[]', consisting of `<major>.<minor>.<revision>'
10275         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
10276         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
10277         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
10278         troff/input.cc, pfbtops/pfbtops.c: Use it.
10280 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
10282         Add a revision scheme to the groff package.
10284         * REVISION: New file.
10285         * libgroff/Makefile.sub (version.cc): Use it to define
10286         `revision_string[]'.
10287         * grops/psrm.cc: Use revision_string (converted to an unsigned
10288         integer) in constructor of resource_manager.
10290 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
10292         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
10293         files.
10294         * Makefile.in (DEVDIRS): Add devutf8.
10295         * grotty/tty.cc: Include device.h.
10296         (glyph): Change type of `code' to `unsigned int'.
10297         (tty_printer): New field is_utf8.  Constructor takes device argument.
10298         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
10299         (tty_printer::add_char): Change type of first arg to `unsigned int'.
10300         (tty_printer::put_char): New function.
10301         (tty_printer::end_page): Use put_char() instead of ::putchar().
10302         (make_printer): Pass device to tty_printer constructor.
10303         * nroff.sh: Determine default device by calling 'locale'.  As a
10304         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
10305         Recognize UTF-8 locales.
10306         * tmac/eqnrc: Recognize utf8 like latin1.
10307         * tmac/troffrc: Device utf8 needs tmac.tty.
10309 2000-01-07  Werner LEMBERG  <wl@gnu.org>
10311         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
10313 2000-01-07  Paul Eggert  <eggert@twinsun.com>
10315         Add a new predefined writeable number register, `year',
10316         which contains the current year.
10318         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
10319         * tmac/tmac.s: Use it.
10320         * troff/input.cc (init_registers): Initialize it.
10322 2000-01-06  Werner LEMBERG  <wl@gnu.org>
10324         * PROBLEMS: Fixed typo.
10326 2000-01-04  Paul Eggert  <eggert@twinsun.com>
10328         * PROBLEMS: Add Y2k advice for the yr number register.
10330 2000-01-03  Paul Eggert  <eggert@twinsun.com>
10332         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
10334 2000-01-02  Werner LEMBERG  <wl@gnu.org>
10336         * tmac/tmac.arkup: Slight modification of macros to provide better
10337         appearance for non-HTML formats.
10339 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
10341         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
10342         does not automatically translate to malloc(n) on all OSes
10343         (e.g., SunOS) so do it explicitly.  Also, check the returned
10344         value.
10346 2000-01-01  Werner LEMBERG  <wl@gnu.org>
10348         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
10350         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
10351         expects this variable
10353 2000-01-01  Gaius Mulley  <gaius@glam.ac.uk>
10355         * doc/Makefile: Added instructions to create HTML and text
10356         versions of some files.
10358 1999-12-31  Werner LEMBERG  <wl@gnu.org>
10360         * Updated INSTALL.gen.
10362         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
10363         better resp. correctly with non-HTML devices.
10365 Version 1.15 released
10366 =====================
10368 1999-12-28  Werner LEMBERG  <wl@gnu.org>
10370         * NEWS, VERSION: Changed to 1.15
10372 1999-12-27  Paul Eggert  <eggert@twinsun.com>
10374         * nroff/nroff.man: -S is safer, not safe.
10376         * groff/groff.cc (main): Use `safer', not `safe', in variable
10377         names.  This does not change the behavior.
10379         * troff/input.cc (main): Likewise.
10381         * nroff/nroff.sh: Likewise.
10383         * troff/input.cc (prepend_string): New function.
10384         (main): Prepend -msafer, so that we check macro libraries for
10385         safety.
10387         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
10389 Version 1.14 released
10390 =====================
10392 1999-12-26  Werner LEMBERG  <wl@gnu.org>
10394         * NEWS, VERSION: Changed to 1.14.
10396 1999-12-24  Werner LEMBERG  <wl@gnu.org>
10398         * refer/refer.cc: Fixing the last fix.
10400 Version 1.13 released
10401 =====================
10403 1999-12-23  Werner LEMBERG  <wl@gnu.org>
10405         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
10406         number disappear.
10408         * NEWS: Updated.
10410         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
10412         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
10413         document conventions, the version number must be a real.
10415 Version 1.12.1 released
10416 =======================
10418 1999-12-22  Werner LEMBERG  <wl@gnu.org>
10420         * VERSION: Changed to 1.12.1.
10422 1999-12-22  Alan Rooks  <arooks@istar.ca>
10424         * refer/refer.cc (do_file): Slight modification to satisfy the
10425         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
10426         UnixWare 7.1.
10428 1999-12-20  Werner LEMBERG  <wl@gnu.org>
10430         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
10431         notices.
10433         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
10434         list of unsafe requests.
10436         * pic/pic.man: Fixed a typo.
10438         * man/groff_out.man: Fixed a typo.
10440 1999-12-18  Werner LEMBERG  <wl@gnu.org>
10442         * Makefile.in: Doc fixes.
10444 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
10446         * groff/groff.cc: Missing `U' option added to getopt().
10448         * troff/troff.man: Missing `U' option added to synopsis.
10450 Version 1.12 released
10451 =====================
10453 1999-12-14  Werner LEMBERG  <wl@gnu.org>
10455         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
10456         to the synopsis.
10458         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
10459         with the more appropriate terms `safer' and `unsafe'.
10461         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
10462         sys_nerr and sys_errlist[].
10464         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
10466         * pic/pic.y, pic/pic.cc: Added check for fmod().
10468 1999-12-13  Werner LEMBERG  <wl@gnu.org>
10470         * VERSION: Changed to 1.12.
10472         Here some patches from various sources; most of them taken from
10473         the Debian distribution.
10475         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
10476         tmac/Makefile.sub: New files copied directly from the NetBSD
10477         distribution.  Probably, some additional adaptation later on is
10478         necessary...
10480         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
10481         of unsafe requests.
10483         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
10484         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
10485         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
10486         (`-S') is now the default.
10488         * README, NEWS: Updated.
10490 1999-12-09  Werner LEMBERG  <wl@gnu.org>
10492         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
10494         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
10496 1999-12-06  Werner LEMBERG  <wl@gnu.org>
10498         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
10499         grief than relief today.  Additionally, it is against the GNU
10500         coding standards.
10502         * configure: Recreated.
10504 1999-12-05  Werner LEMBERG  <wl@gnu.org>
10506         * configure.in: Added GROFF_LIBM.
10508         * configure: Recreated.
10510         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
10511         necessary.
10513         * Makefile.in: Added definition of $(LIBM).
10515         * Makefile.comm (LIBM): Removed.
10517         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
10519 1999-12-03  Gaius Mulley  <gaius@glam.ac.uk>
10521         * doc/Makefile: Added rule for generation pic.html.
10523         (clean): Files produced by grohtml will be removed also.
10525         * doc/pic.ms: Small fix.
10527         * tmac/tmac.html: Fixed suppression of headers.
10529 1999-11-16  Gaius Mulley  <gaius@glam.ac.uk>
10531         * tmac/tmac.html: Fixing horizontal arrows.
10533         Turning off hyphenation.
10535         * tmac/tmac.an: Improved support for grohtml; better indentation,
10536         no footers/headers.
10538 1999-10-31  Gaius Mulley  <gaius@glam.ac.uk>
10540         * tmac/tmac.arkup: Added CDFTP macro
10542         * tmac/tmac.html: All headers are turned off for ms, me, and mm
10543         macros.
10545         * tmac/troffrc: Some additions for HTML stuff.
10547 1999-10-06  Gaius Mulley  <gaius@glam.ac.uk>
10549         * tmac/tmac.html: Small changes.
10551 1999-09-26  Werner LEMBERG  <wl@gnu.org>
10553         * doc/groff.texinfo: Minor fixes.
10555 1999-09-26  Gaius Mulley  <gaius@glam.ac.uk>
10557         * devhtml/TR: Changed spacewidth to 3.
10559         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
10561         * tmac/tmac.html: Moved markup macros to tmap.arkup.
10563         * tmac/tmac.arkup: New file.
10565         * grohtml/ChangeLog: New file.
10567 1999-09-16  Werner LEMBERG  <wl@gnu.org>
10569         * doc/groff.texinfo (Common Features): Added Copying chapter.
10570         Changed format to @smallbook.
10572 1999-09-15  Werner LEMBERG  <wl@gnu.org>
10574         * NEWS: Added info about groff.texinfo.
10576         * doc/groff.texinfo: Will now compile (using texi2dvi) without
10577         warning messages.
10579 1999-09-14  Werner LEMBERG  <wl@gnu.org>
10581         * groff/groff.man: More updates.
10583 1999-09-13  Werner LEMBERG  <wl@gnu.org>
10585         * doc/groff.texinfo: New file.  This manual is still very
10586         rudimentary.  It has been originally contributed by Trent
10587         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
10588         additions by me.
10590         * INSTALL: Added information about the `doc' subdir
10592         * troff/troff.man: Minor fixes.
10594         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
10595         reordered options.
10597         * troff/input.cc (usage): Added missing `-ffam' to usage message.
10599         * Makefile.in (dist): groff-$(version).tar.gz must be removed
10600         also, otherwise it is included itself in another call of `make
10601         dist'.
10603         * groff/groff.cc (synopsis): Removed superfluous space.
10605         * PROJECTS, PROBLEMS, NEWS: Updated.
10607         * VERSION: Updated to 1.12beta.
10609         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
10611         * README: Updated: Included documentation about CVS repository,
10612         mailing lists, and daily snapshots.
10614         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
10616 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
10618         * tmac/tmac.an: If the tag didn't fit into the space that the
10619         macro `TP' specifies, the rest of the tag went into the space for
10620         the next line.
10622 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
10624         * grolj4/lj4.cc: Added duplex printing (option `-d').
10626         * grolj4/grolj4.man: Document duplex printing.
10628 1999-09-12  Werner LEMBERG  <wl@gnu.org>
10630         * doc/Makefile (pic.ps): Fixed rule which caused problems with
10631         non-GNUish sed programs.
10633         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
10634         definition.
10636         * configure.in (LIBS): Added `-lc'
10638         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
10640         * pic/tex.cc (solid_arc): Casting M_PI to double.
10642         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
10644         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
10645         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
10646         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
10648         * groff/groff_man.man: New file.  This manual page was originally
10649         written for the Debian GNU/Linux system by Susan G. Kleinmann
10650         <sgk@debian.org>.
10652         * eqn/list.cc (list_box::compute_metrics,
10653         list_box::compute_sublist_width): Removed variable declaration to
10654         avoid shadowing warnings.
10656         * grops/psrm.cc (resource_manager::process_file): Ditto.
10658         * tfmtodit/tfmtodit.cc (main): Ditto.
10660         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
10661         to avoid shadowing warnings.
10663         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
10664         shadowing loop variable.
10666         * groff/groff.man, troff/troff.man: Added doc about grohtml.
10668 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
10670         New grohtml frontend to convert groff input to html.
10672         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
10674         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
10676         * tmac/eqnrc: Added html device.
10678         * tmac/tmac.html: New file.
10680         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
10681         (troff_output::start_picture, troff_output::finish_picture),
10682         tbl/main.cc (process_input_file):
10683         Surrounded output with `graphics_start' and `graphics_end' so that
10684         the html driver can identify non-text portions.
10686         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
10687         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
10688         grotty/tty.ps (tty_printer::set_char): Additional parameter
10689         `name'.
10691         * include/printer.h: Class printer: New function
10692         set_char_and_width; new variables (is_char_named, is_named_set,
10693         named_command, named_char_s, named_char_n) to hold information
10694         about named characters -- needed by the html driver.
10696         * libdriver/printer.cc (printer::set_ascii_char,
10697         printer::set_special_char): Use set_char_and_width.
10699         * devhtml/*: New device files for html driver.
10701         * grohtml/*: New driver grohtml.
10703 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
10705         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
10706         default strings.
10708 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
10710         * libgroff/string.cc (search): Small fix to test against NULL
10711         pointer.
10713 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
10715         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
10716         \b'abc') were stacked in reverse order when processed in a
10717         diversion.
10719         * troff/node.h: Added `*last' to struct `node' to make the above
10720         fix work.
10722         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
10723         The default scale for the 'f' and 't' graphics functions were 'm'
10724         rather than 'u' (i.e., no scaling).
10726 1999-09-11  Peter Miller  <peterm@jna.com.au>
10728         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
10729         do_file), soelim/soelim.man: Added `-I file' option to soelim,
10730         defining include paths.
10732         * soelim/soelim.cc (include_path_append): New function.
10734 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
10736         * tbl/main.cc (process_options): Unix (at least Documenter's
10737         Workbench) tbl allows arbitrary non-alpha characters between
10738         options.
10740 1999-09-11  Paul Eggert  <eggert@twinsun.com>
10742         Y2k fixes.  Don't assume that the current year precedes 2000.
10744         * doc/meref.me: Add \n(y2, \n(y4.
10746         * tmac/doc-common (Yr): New number register.
10747         (Dd): Don't assume current year precedes 2000.
10749         * tmac/tmac.e (td): Likewise.
10750         (y2, y4): New number registers.
10752         * pic/pic.man: Update reference for pic paper to May, 1991
10753         version.
10755 1999-09-11  Werner LEMBERG  <wl@gnu.org>
10757         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
10758         Removed quotation marks which prevented correct expansion of
10759         $(tmac_wrap).
10761         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
10763 1999-09-10  Werner LEMBERG  <wl@gnu.org>
10765         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
10766         `config.cache'.
10768         * Removed configure.old.
10770 1999-08-31  Werner LEMBERG  <wl@gnu.org>
10772         * VERSION: Updated to 1.11.1
10774 1999-05-27  Werner LEMBERG  <wl@gnu.org>
10776         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
10778         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
10779         added quotations around $(tmac_wrap) to avoid syntax error if
10780         variable is empty.
10782         * configure: Newly generated using autoconf 2.13.
10784         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
10786 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
10788         * README, PROJECTS, NEWS, INSTALL, VERSION, 
10789         doc/Makefile. doc/pic.ms, groff/groff.man:
10790         Prepare for 1.11 release.  No code changes.
10791         Documentation for pic added (doc/pic.ms).
10793 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
10795         * Version 1.10 released.
10797 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
10799         * afmtodit/afmtodit.pl: Avoid comment on first line.
10801 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
10803         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
10804         * configure.in: Call it.
10806         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
10807         (distfiles): Doesn't depend on config.log or config.cache.
10809 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
10811         * grog/grog.sh: Use print "" rather than print in END rule.
10813 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
10815         * tbl/main.cc (process_data): Don't give error for excess data
10816         entries that are comments.
10818 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
10820         * tbl/main.cc (process_data): Fix case where new for-scope rules
10821         silently change meaning of code.
10823 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
10825         * troff/env.cc (hyphenate): Loop over all consecutive sequences
10826         of non-zero hyphenation codes.
10828 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
10830         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
10832 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
10834         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
10836 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
10838         * tmac/tmac.andoc: Make it work in compatibility mode.
10840         * refer/token.h (token_info::is_range_sep): New function.
10841         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
10842         * refer/ref.cc (reference::output): More sophisticated check for
10843         multiple pages.
10845         * devps/prologue.ps (MANUAL): New procedure.
10846         * grops/ps.cc (main): New -m option.
10847         (usage): Include -m.
10848         (ps_printer::~ps_printer): Implement -m.
10850         * aclocal.m4 (GROFF_G): New macro.
10851         * configure.in: Call it.
10852         * Makefile.in (g): Provided by configure.
10854         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
10856         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
10857         translations.
10859         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
10860         (tmac_m, tmac_s): Deleted.
10861         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
10862         tmac_s_prefix): New variables.
10863         (MDEFINES): Change accordingly.
10864         * Makefile.comm (.man.n): Use new TMAC_* variables.
10865         * configure.in (GROFF_TMAC): Call.
10866         * aclocal.m4 (GROFF_TMAC): Define.
10867         * tmac/Makefile.sub (stamp_wrap): New target.
10868         (install_data, uninstall_sub): Handle macro wrapping.
10870 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
10872         * tbl/main.cc (main): Ignore -T option.
10874 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
10876         * devlj4/generate/special.map: Add definition of \(nb.
10878         * tmac/tmac.dvi: Add definition of \(nb.
10880         * troff/dictionary.c (dictionary::dictionary): association::v gets
10881         initialized by association::association.
10883         * tmac/Makefile.sub: Avoid using temporary files when installing.
10885         * troff/env.cc (environment::set_font): Make bad font number a
10886         warning.
10888         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
10890         * Makefile.in (datadir): Use share rather than lib.
10892         * groff/groff.cc (basename): Rename to xbasename.
10894 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
10896         * Makefile (CCLIBS): Don't use.
10897         * Makefile.ccpg: Likewise.
10899         * acgroff.m4: Rename to...
10900         * aclocal.m4: Modify extensively for autoconf 2.
10901         * configure.in: Likewise.
10902         * Makefile.in: Likewise.
10904         * groff/pipeline.c (const): Declare as empty if __STDC__ not
10905         defined.
10906         (xstrsignal): Check for definition of NSIG. Conditionalize
10907         on SYS_SIGLIST_DECLARED.  Make return type const.
10909 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
10911         * troff/input.cc (interpolate_macro): Rephrase missing space
10912         warning.
10914 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
10916         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
10917         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
10918         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
10919         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
10920         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
10921         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
10922         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
10923         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
10924         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
10925         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
10926         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
10927         Fix 'for' scoping.
10929 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
10931         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
10932         string_iterator.
10933         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
10934         file.
10935         (macro_iterator::macro_iterator): Add additional argument.
10937 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
10939         * troff/div.cc (vertical_size::vertical_size): In place of integer
10940         specifying line spacing use cunits specifying post vertical
10941         space.
10942         (macro_diversion::output, top_level_diversion::output): Likewise.
10943         * troff/div.h: Change declarations accordingly.
10944         * troff/env.cc (pending_output_line): Replace ls field by post_vs
10945         field.
10946         (pending_output_line::pending_output_line,
10947         pending_output_line::output, environment::output,
10948         environment::output_line, environment::output_title,
10949         environment::hyphenate_line):  In place of
10950         integer specifying line spacing use cunits specifying post vertical
10951         space.
10952         (environment::environment): Add post_vertical_spacing and
10953         prev_post_vertical_spacing arguments.
10954         (environment::get_post_vertical_spacing): New function.
10955         (environment::total_post_vertical_spacing): New function.
10956         (environment::post_vertical_spacing): New function.
10957         (init_env_requests): Initialize pvs request and .pvs register.
10958         * troff/env.h: Change declarations.
10960 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
10962         * tmac/tmac.pspic: Immediately remove the temporary file.
10964 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
10966         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
10967         height is specified.
10969 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
10971         * tbl/table.c (struct vertical rule, class table_entry): Use int
10972         not short for start_row and end_row.
10974 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
10976         * troff/input.cc (trapping_blank_line, blank_line_macro): New
10977         functions.
10978         (diverted_space_node::reread, process_input_stack): Call
10979         trapping_blank_line() rather than blank_line().
10980         (init_input_requests): Bind "blm" to blank_line_macro().
10982         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
10984 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
10986         * troff/env.cc (environment::possibly_break_line): Require that
10987         width total excluding width of final space node be greater than
10988         the target text length.
10990 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
10992         * troff/node.cc (kern_pair_node::vertical_extent): New function.
10994 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
10996         * troff/node.cc (charinfo_node): New class.
10997         (glyph_node, composite_node): Derive from charinfo_node.  Change
10998         member functions accordingly.
11000 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
11002         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
11004 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
11006         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
11008         * devps/generate/textmap (notsubset): Add.
11010         * tmac/tmac.a4: New file.
11012 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
11014         * pic/main.cc (had_parse_error): New variable.
11015         (do_picture, do_whole_file): Set had_parse_error if yyparse()
11016         returns non-zero.
11017         (main): Return 1 if had_parse_error is true.
11019 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
11021         * grolj4/lj4.cc (main): Avoid use of strtoul.
11023 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
11025         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
11026         iso_8859_1 or $LESSCHARSET is latin1.
11028 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
11030         * hpftodit: New directory.
11031         * Makefile.in (CCPROGDIRS): Add hpftodit.
11032         * devlj4/generate: New directory.
11034 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
11036         * configure.in: Don't use AC_VFORK.
11037         * groff/pipeline.c (run_pipeline): Use fork() always.
11039 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
11041         * grops/ps.cc (main): Use %1 not %s in error message for -w.
11043         * Makefile.in (CCPROGDIRS): Add grolj4.
11044         (DEVDIRS): Add devlj4.
11045         * grolj4, devlj4: New directories.
11046         * tmac/troffrc: Handle lj4.
11047         * tmac/tmac.lj4: New file.
11049 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
11051         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
11053 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
11055         * troff/input.cc (do_if_request): At end of second string, switch
11056         environments before getting next token.
11058 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
11060         * devps/psstrip.sed: Split rule that strips whitespace on either
11061         side of delimiters.
11063 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
11065         * troff/node.h (font_family::make_definition): Add return value to
11066         declaration.  * troff/symbol.h (symbol::operator==,
11067         symbol::operator!=): Likewise.
11069 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
11071         * groff/groff.cc (main, help, synopsis): Handle -S.
11072         (possible_command::insert_arg): New function.
11074         * tmac/tmac.safer: New file.
11075         * tmac/msafer.man: New file.
11076         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
11078 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
11080         * pic/pic.h, pic/main.cc (safer_flag): New variable.
11081         * pic/pic.y (placeless_element): Avoid unsafe operations if
11082         `safer_flag' is set.
11083         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
11085 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
11087         * eqn/lex.cc (get_token): Put call to add_context() in block to
11088         work around Sun C++ 4.0 bug.
11090         * include/stringclass.h (operator +): Use ?: instead of `if' to
11091         work around Sun C++ 4.0 bug.
11093 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
11095         * tbl/main.cc (process_format): Accept - as a synonym for the _
11096         key letter.
11098         * libbib/index.cc (minus_one): Don't declare as const.
11100 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
11102         * troff/input.cc (get_char_for_escape_name): Push back a newline.
11104 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
11106         * troff/input.cc (write_macro_request): New function.
11107         (init_input_requests): Bind write_macro_request to writem.
11109 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
11111         * tmac/tmac.s (@EN): Turn filling back on even if there was no
11112         equation.
11114         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
11116         * tmac/tmac.s (@TS): Renamed from TS.
11117         (TS): Call LP then TS again.
11118         (cov*ab-init): Alias @TS to TS.
11120         * tmac/tmac.s: Allow QP or RS to initialize.
11122         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
11123         Move initializations of PS and LL here.
11124         (par@init): Don't initialize HY.  Avoid changing environment 0.
11125         (par*env-init): Don't all par@reset.
11127 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
11129         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
11131 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
11133         * Makefile.in (MDEFINES): Add LDFLAGS.
11134         (LDFLAGS): Add definition line.
11136 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
11138         * troff/input.cc (get_optional_char): Split off error check into...
11139         (check_missing_character): New function.
11140         * troff/token.h: Declare it.
11141         * troff/env.cc (margin_character): Don't call get_optional_char.
11142         Only call tok.next() after making the node.
11144         * include/lib.h (getopt): Make 2nd argument char *const *.
11146 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
11148         * nroff/conftest.sh: Deleted.
11150 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
11152         * pic/make-dos-dist: Deleted.
11154 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
11156         * devps/psstrip.sed: Strip comments before stripping trailing
11157         white space.
11159 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
11161         * Version 1.09 released.
11163 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
11165         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
11167 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
11169         * libgroff/font.cc (font::load_desc): Fix typo in error message.
11171 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
11173         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
11174         about returning without a value.
11176         * troff/charinfo.h (charinfo::get_special_translation): Cast
11177         TRANSLATE_NONE to int.
11179         * refer/token.cc (lookup_token, store_token): Remove bogus loop
11180         test.  Fix test so that it works with n unsigned.
11182         * pic/pic.y (defaults_table): Fully bracket initializer.
11183         * pic/lex.cc (lookup_keyword): Likewise.
11184         * eqn/lex.cc (token_table, def_table): Likewise.
11185         * eqn/box.cc (param_table): Likewise.
11186         * troff/input.cc (warning_table): Likewise.
11187         * libgroff/font.cc (table): Likewise.
11188         * grops/ps.cc (ps_printer::special): Likewise.
11189         * grops/psrm.cc (resource_manager::process_file): Likewise.
11190         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
11191         * refer/command.cc (command_table): Likewise.
11192         * addftinfo/addftinfo.cc (param_table): Likewise.
11194         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
11195         about temp's being unused.
11196         (unused): New function.
11198         * groff/pipeline.cc: Declare c_fatal.
11200         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
11201         uchar.
11203         * libbib/index.cc (index_search_item::load): Prevent compiler
11204         warnings about fd_closer's being unused.
11205         (unused): New function.
11207 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
11209         * troff/input.cc (copy_mode_error): Make `prefix' static.
11210         Fix typo.
11212         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
11213         defined.
11214         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
11215         HAVE_CC_OSFCN_H and modify accordingly.
11217         * troff/input.cc (init_charset_table): radicalex overlaps
11218         horizontally.
11220         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
11221         udodo!hans@relay.NL.net).
11222         * groff/configure.in: Call it.
11224         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
11225         * groff/configure.in: Call it.
11226         * include/lib.h: Conditionalize declaration of pclose.
11228         * troff/div.cc (last_page_number): New global variable.
11229         (top_level_diversion::begin_page): Exit if we just printed the
11230         last page.
11231         * troff/div.h (last_page_number): Declare it.
11232         * troff/input.cc (parse_output_page_list): Set last_page_number.
11234         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
11235         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
11236         tmac/tmac.X: Likewise.
11237         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
11238         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
11240 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
11242         * tmac/doc-ditroff (hK): Remove groff specific code which
11243         prevented page-breaks between separate manual entries.  If this is
11244         the first page, don't set the page number to 1.
11246         * acgroff.m4 (GROFF_POSIX): New macro.
11247         * configure.in: Use it.
11249         * troff/node.cc (class real_output_file,
11250         real_output_file::real_output_file,
11251         real_output_file::~real_output_file): Conditionalize use of
11252         popen/pclose on POPEN_MISSING.
11253         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
11254         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
11255         (pipe_source): Similarily.
11257         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
11259         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
11260         presence of declarations by trying to compile example with
11261         conflicting declarations.  (gcc only gives a warning for missing
11262         declarations.)
11264 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
11266         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
11267         (from Ulrich Lauther).
11269 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
11271         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
11273 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
11275         * indxbib/indxbib.cc (write_hash_table): Add code for case where
11276         pointers and ints have different sizes.
11278 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
11280         * tmac/tmac.s (par*env-init): Call par@reset.
11282 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
11284         * tmac/tmac.s (@IP): Switch to a new environment when diverting
11285         tag.
11286         (par*push-tag-env, par*pop-tag-env): New macros.
11288 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
11290         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
11291         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
11293         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
11294         comment.  Include <time.h>.
11296 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
11298         * grops/ps.cc (is_small_h, is_small_v): Deleted.
11299         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
11300         lines.
11302 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
11304         * troff/input.cc (read_request): Only print a prompt if reading
11305         from the terminal.  Also clearerr on EOF if reading from the
11306         terminal.  Declare isatty.
11308 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
11310         * refer/label.y: Rename map_t to map_func and extractor_t to
11311         extractor_func.
11313 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
11315         * include/assert.h: Don't use volatile.
11316         * libgroff/assert.cc: Likewise.
11318 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
11320         * troff/input.cc (abort_request): Look at character in tok before
11321         calling get_copy().
11323 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
11325         * troff/troff.h (NO_RETURN): Deleted.
11326         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
11327         * troff/input.cc (exit_troff): Likewise
11329         * Makefile.in: Remove `Making ...' messages since GNU make now
11330         gives these. 
11332         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
11334 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
11336         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
11337         to constant 1 inch.
11339 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
11341         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
11343 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
11345         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
11346         MARK_REG if there was no left delimiter.
11348 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
11350         * pic/troff.cc (troff_output::text): Set line thickness to
11351         relative before outputting text.
11353         * tmac/tmac.e (@k): Don't zero ?T.
11354         ((z): Likewise.
11356 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
11358         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
11360 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
11362         * troff/input.cc (decode_args): Warn about unquoted tabs (from
11363         Paul Eggert).
11365 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
11367         * troff/input.cc (ignoring): New variable.
11368         (ignore): Set ignoring during call to do_define_macro.
11369         (do_define_macro): Clear ignoring before interpolating terminating
11370         macro.
11371         (copy_mode_error): New function.
11372         (get_char_for_escape_name, read_long_escape_name,
11373         interpolate_arg): Use copy_mode_error.
11374         (warning_table): Add WARN_IG.
11375         * troff/troff.h (WARN_IG): Declare.
11376         (WARN_TOTAL): Change accordingly.
11378         * groff/pipeline.c (strsignal): Rename to xstrsignal.
11379         * groff/groff.cc (strsignal): Delete declaration.
11381 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
11383         * troff/div.cc (page_offset): Use 'm' as default scaling.
11385 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
11387         * nroff/nroff.sh: Ignore -u.
11389 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
11391         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
11393 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
11395         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
11396         drawing box.
11397         (B2): With -Tascii, leave additional vertical space before
11398         and after. Ensure that the left and right indent is restored to
11399         what it was even if the point size changes.  Don't call
11400         par@finish. Change the indent, line length and title length
11401         directly.  With -Tascii, make the width of the box 1n less.
11402         (B1): Remember 1n at the current point size.  Don't call
11403         par@reset.  Change the indent, line length and title length
11404         directly.  Ensure that the temporary indent is preserved.
11405         (par*box-mark-top): Turn off no spacing mode.
11407 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
11409         * Makefile.in (dist): Use .gz suffix.
11411 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
11413         * troff/input.cc (main): Add return 0.
11414         * pic/main.cc (main): Use return instead of exit.
11415         * tbl/main.cc (main): Likewise.
11416         * eqn/main.cc (main): Likewise.
11417         * grops/ps.cc (main): Likewise.
11418         * grotty/tty.cc (main): Likewise.
11419         * groff/groff.cc (main): Likewise.
11420         * grodvi/dvi.cc (main): Likewise.
11421         * refer/refer.cc (main): Likewise.
11422         * indxbib/indxbib.cc (main): Likewise.
11423         * lkbib/lkbib.cc (main): Likewise.
11424         * soelim/soelim.cc (main): Likewise.
11425         * addftinfo/addftinfo.cc (main): Likewise.
11426         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
11427         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
11429         * troff/token.h (process_input_stack): Don't declare as static.
11430         * troff/input.cc: Likewise.
11432         * troff/node.c (invalidate_fontno): Make it a static member of
11433         class font_family.  Change callers.
11434         * troff/node.c: Change declaration.
11436         * tbl/main.cc (struct input_entry_format): Add explicit public
11437         specifier.
11438         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
11439         struct double_hline_stuff): Likewise.
11440         * tbl/table.h (struct entry_format): Likewise.
11441         * pic/object.h (struct saved_state): Likewise.
11443         * include/stringclass.h: Add forward declarations of friend
11444         functions that are later declared as inline.  Don't include inline
11445         specifier in friend declaration.
11447         * libgroff/lib.h: Declare popen and pclose.
11448         * acgroff.m4 (GROFF_POPEN): New macro.
11449         * configure.in: Call it.
11451         * include/lib.h (PI): New constant. Undef first if necessary.
11452         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
11453         * grops/ps.cc (degrees, radians): Likewise.
11454         * libgroff/font.cc (font::get_skew): Likewise.
11456         * grops/ps.cc (is_ascii): New function.
11457         (ps_output::put_string): Use is_ascii.  Use csprint rather than
11458         isprint.
11459         (ps_printer::define_encoding): Use csspace.
11460         * libgroff/strtol.c (ISASCII): New macro.
11461         (strtol): Cast arguments to is*() and tolower() to unsigned char.
11462         Use ISASCII rather than isascii.
11463         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
11464         * libgroff/cset.cc: Likewise.
11465         * libdriver/input.cc: Include cset.h.
11466         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
11467         than isdigit().
11469         * refer/refer.cc (main): Use %ld rather than %d for longs.
11471         * libbib/index.cc (index_search_item_iterator::get_tag): Use
11472         S_ISREG macro.
11474         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
11476 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
11478         * troff/input.cc (hyphenation_code): Skip white space between
11479         char/code pairs.
11481 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
11483         * tbl/table.h (table::entry_list_tailp): New member.
11484         (table::table): Initialize it.
11485         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
11486         behaviour.
11488 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
11490         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
11491         with negative horizontal positions. Remove casts of glyph::hpos to
11492         int.
11493         (USHRT_MAX): Delete definition.
11494         (SHRT_MAX, SHRT_MIN): New definitions.
11495         (glyph::hpos): Change type to short.
11496         (tty_printer::end_page): Output multiple backspaces if necessary.
11497          Remove casts of glyph::hpos to int.
11498         
11499 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
11501         * tmac/tmac.s (@RT): New definition.
11503 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
11505         * refer/refer.cc (do_file): Make sure current_filename is set when
11506         filename is "-".
11508         * pic/common.cc (common_output::dot_line): Handle zero length
11509         lines.
11511 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
11513         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
11514         (par@init): Initialize \n[HY].
11516 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
11518         * troff/dictionary.cc (dictionary::remove): Continue when
11519         r < j < i.
11521 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
11523         * Makefile.com (.y.cc): Avoid ending up with two versions of
11524         $(YTABH).
11526 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
11528         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
11529         (\(,C): Likewise.  Also fix typo.
11531 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
11533         * lib.h: Delete extraneous semi-colon.
11535         * Add pso request: `so' from a pipe.
11536         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
11537         (file_iterator::close): New function.
11538         (file_iterator::~file_iterator, file_iterator::next_file): Use
11539         file_iterator::close.
11540         (file_iterator::backtrace): Say `process' rather than `file' when
11541         the stream is popened.
11542         (pipe_source): New function.
11543         (init_input_requests): Bind ".pso" to pipe_source.
11545 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
11547         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
11549         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
11550         digits in lower case.
11552 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
11554         * Version 1.08 released.
11556         * Makefile.in (dist): Insert || true after ln -s commands that
11557         might fail.
11559         * mm: Update to mm 1.16.
11561         * acgroff.m4 (GROFF_CSH_HACK): New macro.
11562         * configure.in: Call GROFF_CSH_HACK.  Substitute for
11563         SH_SCRIPT_SED_CMD.
11564         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
11565         MDEFINES.
11566         * nroff/Makefile.sub (nroff): New target.
11567         (install_data): Install nroff.
11568         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
11569         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
11571 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
11573         * eqn/Makefile.sub (neqn): Add chmod +x.
11575         * grog/Makefile.sub (grog): Remove spurious semi-colon.
11577 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
11579         * troff/input.cc (string_iterator::string_iterator()): Initialize
11580         lineno and count.
11582 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
11584         * troff/div.cc (macro_diversion::space,
11585         top_level_diversion::space): Don't set high_water_mark.
11586         (macro_diversion::output, top_level_diversion::output): Don't
11587         include post line space in high water mark.
11589 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
11591         * eqn/eqn.y: Don't define YYDEBUG.
11592         * pic/pic.y: Likewise.
11594 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
11596         * tmac/tmac.e ([3): Add space after comma following editors.
11597         Change double spaces to single spaces.
11598         ([4): Change double spaces to single spaces.
11600         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
11601         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
11602         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
11603         after %!PS-Adobe- (for Newsprint).
11605         * troff/div.cc (top_level_diversion::begin_page): When
11606         before_first_page is 1, set page_number to 1.
11608 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
11610         * eqn/box.cc (box::top_level): Protect equation with \&.
11612 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
11614         * groff/groff.cc (possible_command::set_name): Delete old name.
11616         * groff/groff.cc (possible_command::~possible_command): Use
11617         a_delete.
11619         * troff/node.cc (troff_output_file::begun_page): New member.
11620         (troff_output_file::troff_output_file): Initialize it.
11621         (troff_output_file::really_begin_page): Only output V command if a
11622         page has been begun.
11624         * pic/pic.y (placeless_element): Delete argument to PRINT after
11625         use.
11627 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
11629         * Make wrapman work.
11630         * troff/div.h (class top_level_diversion): Replace
11631         first_page_begun by before_first_page (with opposite sense).
11632         * Change first_page_begun to before_first_page inverting sense.
11633         * troff/div.cc (class nl_reg): New class.
11634         (init_div_requests): Use class nl_reg for \n(nl.
11635         (top_level_diversion::begin_page): Don't call
11636         output_file::begin_page if before_first_page is 2;
11637         reset before_first_page afterwards.  If have_next_page_number is
11638         false, then always increment page_number.
11639         * tmac/tmac.an: Set traps within TH rather than at the top-level.
11640         Restore compatibility mode after loading, and then disable
11641         compatibility mode in TH.
11643 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
11645         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
11646         past last line.
11647         * troff/node.h (output_file::trailer): Declare.
11648         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
11649         * troff/node.cc (output_file::trailer): New function.
11650         (troff_output_file::~troff_output_file): Move most code into...
11651         (troff_output_file::trailer): New function.
11652         (class troff_output_file): Delete page_length member. Declare
11653         trailer().
11654         (troff_output_file::really_begin_page): Use current page length
11655         for final V command.
11657         * tbl/main.cc (struct options): New decimal_point_char member.
11658         (options::options): Initialize this.
11659         (process_options): Implement decimalpoint option.
11660         (process_data): Pass decimal_point_char option to table::table.
11661         * tbl/table.h (class table): New decimal_point_char member.
11662         (table::table): Add additional argument.
11663         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
11664         second argument specifying decimal point character.  Use this
11665         instead of '.'.
11666         (table::table): Initialize decimal_point_char.
11667         (table::add_entry): Change call to find_dot.
11669         * troff/input.cc (get_copy, token::next): Implement \V.
11670         (interpolate_environment_variable): New function.
11672 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
11674         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
11675         * pic/pic.y: Likewise.
11677         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
11678         Add casts to int.
11679         * refer/ref.cc (reference::insert_field, reference::delete_field):
11680         Likewise.
11681         * troff/number.cc (parse_term): Likewise.
11683         * acgroff.m4 (GROFF_PROG_YACC): New macro.
11684         * configure.in: Use GROFF_PROG_YACC.
11686         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
11687         and g++.
11688         * Makefile.in (OPTIMIZE): New define.
11689         (DEBUG): Empty by default.
11690         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
11692         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
11693         (GROFF_ARRAY_DELETE): Likewise.
11694         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
11696         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
11698         * devps/psstrip.sed: Use different delimiter on last line (so that
11699         it works with BSD 4.4 sed.)
11701 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
11703         * devps/psstrip.sed: Delete comments.
11705         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
11706         optind, opterr, optarg.
11707         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
11708         opterr, optarg.
11710 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
11712         * Makefile.in (check): Dummy target.
11714 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
11716         * Version 1.07 released.
11718         * Integrate mm 1.11.
11720         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
11721         where start_col was meant.
11723 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
11725         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
11727 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
11729         * troff/input.cc (token::next): Make \z\o'...' and similar things
11730         work.
11732         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
11733         constants.
11734         (environment): Add margin_character_flags member.
11735         * env.cc (environment::environment(symbol),
11736         environment::environment(const environment *): Initialize
11737         margin_character_flags.
11738         (margin_character): Rewrite.
11739         (environment::output_line): Add a margin character if
11740         margin_character_flags is non-zero.  Turn off the
11741         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
11742         zero, use margin_character_node without copying and then set
11743         margin_character_node to 0.
11745         * devps/DESC.in: Change minimum size to 1000.
11747 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
11749         * troff/symbol.h (symbol::hash): Change return type to unsigned
11750         long.
11751         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
11752         Add casts to int.
11754         * test-groff: Use -r rather than -x.
11756         * grops/psfig.diff: Include in distribution again.
11758 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
11760         * Makefile.in (dist): Use gzip.
11762 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
11764         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
11765         unistd.h as well as in stdlib.h.
11766         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
11767         defined; otherwise include <sys/types.h> and <unistd.h> if
11768         UNISTD_H_DECLARES_GETOPT is defined.
11770         * configure.in: use builtin(include, ... rather than include(...
11771         * configure: Regenerate with autoconf 1.3.
11773         * libdriver/print.cc (printer::adjust_arc_center): Use new
11774         algorithm suggested by Andy Fyfe.
11776         * libdriver/printer.cc (printer::adjust_arc_center): New function.
11777         * include/printer.h: Declare this.
11778         * grops/ps.cc (ps_printer::draw): Use it.
11779         * grodvi/dvi.cc (dvi_printer::draw): Use it.
11781 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
11783         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
11785 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
11787         * eqn/main.cc (main): Handle "eqn -".
11789 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
11791         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
11793         * mm: Integrate version 1.08.
11795         * pic/troff.cc (troff_output::finish_picture): Set
11796         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
11797         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
11798         if it's not defined. Check whether the register is non-zero rather
11799         than whether it's not defined.
11800         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
11802         * indxbib/indxbib.cc: Move all signal handling into...
11803         * indxbib/signal.c: New file.
11804         * configure.in: Call AC_RETSIGTYPE.
11806         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
11807         * configure.in: Call GROFF_STRUCT_EXCEPTION.
11808         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
11810         * troff/input.cc (token::token, token::operator=): Work round SGI
11811         C++ bug.
11812         * pic/object.cc (position::position): Likewise.
11814 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
11816         * pic/pic.h: Move declaration of hypot().
11818 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
11820         * pic/pic.h: Declare hypot().
11822         * pic/pic.h: Define M_PI if necessary.
11824 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
11826         * tmac/tmac.e (re): Add alternative version that doesn't use groff
11827         `.ta T' feature.
11829         * devps/prologue.ps (RE): Handle the possibility that the old font
11830         doesn't have a FontName entry.
11832 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
11834         * tmac/tmac.e (fam): Redefine to set family in environment 2.
11835         (@C): Use @fam not fam.
11837 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
11839         * lookbib/lookbib.cc (main): Change type of start to const char *.
11840         * lkbib/lkbib.cc (main): Likewise.
11842         * eqn/lex.cc (definition::definition): Don't use member
11843         initializer syntax for members of anonymous unions.
11845         * troff/input.cc (input_stack::backtrace): Change type of to const
11846         char *.
11848 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
11850         * include/stringclass.h (class string): Declare inline friend
11851         functions as inline in class declaration.
11852         * troff/hvunits.h (class hunits, class vunits): Likewise.
11853         * include/refid.h (class reference_id): Likewise
11854         * troff/troff.h (points_to_units(units), scale(units, double)):
11855         Delete declarations.
11856         * libdriver/input.cc (get_char): Delete declaration.
11857         * include/lib.h: Change 2nd argument of getopt from const char **
11858         to char **.
11859         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
11860         char **' before assigning to a `const char **'.
11861         * tbl/table.cc: Delete extra declarations of prints().
11863 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
11865         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
11866         char **' before assigning to a `const char **'.
11868         * libgroff/errarg.cc (errarg::errarg): Don't use member
11869         initializer syntax for members of anonymous unions.
11871 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
11873         * mm: Integrate version 1.07.
11875 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
11877         * troff/input.c (translate2): Rename to
11878         (translate_no_transparent).
11879         (init_input_requests): Rename tr2 to trnt.
11881 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
11883         * troff/charinfo.h (class charinfo): Add transparent_translate field.
11884         (charinfo::set_translation, charinfo::set_special_translation):
11885         Add second argument that specifies value for
11886         transparent_translate.
11887         (charinfo::get_translation, charinfo::get_special_translation):
11888         Add optional second argument that specifies whether translation is
11889         being used for transparent throughput.
11890         * troff/input.cc (charinfo::set_translation,
11891         charinfo::set_special_translation): Handle second argument.
11892         (charinfo::charinfo): Initialize transparent_translate.
11893         (translate): Split main part off into
11894         (do_translate): New function.  Pass argument saying whether
11895         translation applies to transparent throughput.
11896         (translate2): New request.
11897         (init_input_requests): Bind translate2 to `tr2'.
11899 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
11901         * tbl/table.h (class table): Add `nokeep' flag.
11902         * tbl/main.cc (process_options): Handle `nokeep' option.
11903         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
11904         table::do_bottom): Don't output keep/release macro definitions or
11905         calls when `nokeep' option has been specified.
11907 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
11909         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
11911 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
11913         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
11914         block_entry::divert, alphabetic_block_entry::divert): Add extra
11915         argument giving column separation.
11916         (table::compute_widths): Pass column separation to
11917         table_entry::divert().
11918         (block_entry::do_divert): If an entry spans multiple columns and a
11919         minimumum width has been specified for each column, then set the
11920         line length to the sum of the widths (plus possibly the column
11921         separations).
11923         * troff/input.cc (set_escape_char): Don't set the escape_char
11924         until after calling has_arg().
11926 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
11928         * tbl/table.cc (table::do_top): Add missing \s0 for double box
11929         case.
11931         * tbl/table.cc (table::print_double_hline): Avoid extra new line
11932         in case where r > nrows - 1.
11934         * tbl/table.cc (BODY_HEIGHT): Deleted.
11935         (LINE_SEP): New definition.
11936         (table::print_single_hline, table::print_double_hline,
11937         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
11938         table::do_row, table::do_top): Use LINE_SEP space before a line
11939         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
11941         * tbl/table.cc (text_entry::print_contents): New function.
11942         (text_string_name, right_text_string_name): Deleted.
11943         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
11944         (simple_text_entry::do_width, numeric_text_entry::do_width,
11945         alphabetic_text_entry::do_width): Don't store the contents of the
11946         entry in a string.
11947         (left_text_entry::simple_print, right_text_entry::simple_print,
11948         center_text_entry::simple_print,
11949         alphabetic_text_entry::simple_print,
11950         numeric_text_entry::simple_print): Print the entry directly
11951         instead of using the stored string.
11953 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
11955         * devps/Makefile: Strip PostScript files.
11956         * devps/prologue: Rename to...
11957         * devps/prologue.ps.
11958         * devps/psstrip.sed: New file.
11959         * devps/download: Use .pfa rather than .ps for installed versions
11960         of fonts.
11962 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
11964         * troff/env.cc (input_trap): Give a warning if the argument is out
11965         of range.
11967         * troff/env.cc (adjust): Treat negative argument as missing. Round
11968         argument > 5 down to 5.
11970         * troff/env.cc (center, right_justify): Make negative argument zero.
11972         * troff/div.cc (page_offset, vertical_position_traps): Treat
11973         invalid argument as missing.
11974         * troff/env.cc (line_spacing, line_length, title_length, indent,
11975         underline, hyphen_line_max_request, control_char,
11976         no_break_control_char, widow_control_request, adjust, input_trap,
11977         point_size): Likewise.
11978         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
11979         constant_space): Likewise.
11980         * troff/input.cc (compatible, shift, warn_request,
11981         set_escape_char): Likewise.
11983         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
11984         * tbl/table.cc (table::table): Likewise.
11986         * Makefile.dev (install_dev): depends on $(DEVFILES).
11988 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
11990         * devX75, devX75-12, devX100, devX100-12: New directories.
11991         * Makefile.in: Add these to DEVDIRS.
11993         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
11994         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
11995         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
11996         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
11997         targets.
11998         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
11999         (uninstall): New target.
12000         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
12001         uninstall_prog, uninstall_dev): New targets.
12003         * troff/div.cc (return_request): Treat an invalid argument as
12004         missing.
12006 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
12008         * tmac/tmac.e ((f): Set up the environment even when there's a
12009         current diversion.  Transperently throughput a call to @N.
12010         (@N): New macro.
12012 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
12014         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
12015         up to vertical resolution.
12017         * tbl/table.cc (table::do_row): Change row number after printing
12018         stuff list.
12020         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
12022 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
12024         * Rename CHANGES to NEWS.
12026 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
12028         * libgroff/new.cc (operator new): Avoid calling malloc(0).
12030 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
12032         * man.ultrix: Removed.
12034 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
12036         * Makefile.comm (extraclean): Delete files whose names begin with
12037         `='.
12039         * pic/troff.cc (troff_output::text): Fix typo in implementation of
12040         aligned text.
12042 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
12044         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
12045         * troff/div.cc (page_length, need_space, space_request): Treat
12046         invalid optional argument as missing.
12047         * troff/env.cc (number_lines): If the first argument is present
12048         but not a number, turn on line numbering, don't change the next
12049         line number and parse the remaining arguments.
12051         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
12053 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
12055         * eqn/box.h: Change declaration accordingly.
12056         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
12057         the specified size was bad but don't give an error.  Check for
12058         overflow.
12059         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
12060         * eqn/lex (do_size): Likewise.
12062 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
12064         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
12065         compatible headers.
12067 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
12069         * tbl/table.cc (table::init_output): Improve error message when
12070         table won't fit on one page.
12072 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
12074         * pic/troff.cc (troff_output::start_picture): Generate line
12075         containing a horizontal motion equal to the width of the picture.
12077         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
12078         using GROFF_COMMAND_PREFIX environment variable.
12080 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
12082         * mdate.sh: Use $NF rather than $(NF).
12084 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
12086         * pic/main.cc (main):  Use %1 not %c in argument to warning.
12088         * eqn/main.cc (main): Output code to check that geqn was given the
12089         correct -T option.
12091 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
12093         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
12094         `ln -s ../Makefile .; make; rm -f Makefile'.
12096         * troff/hyphen: Rename to...
12097         * troff/hyphen.us:
12098         * troff/input.cc (main): Delete -H option. Don't call
12099         read_hyphen_file().
12100         * troff/env.cc: Include searchpath.h and macropath.h.
12101         (exception_dictionary): Deleted.
12102         (ht): Deleted.
12103         (read_hyphen_file): Deleted.
12104         (hyphenation_language): New struct.
12105         (class trie, class hyphen_trie): Move declarations up.
12106         (trie_node::~trie_node): Deleted.
12107         (trie::delete_trie_node): New function.
12108         (trie::do_delete): New pure virtual function.
12109         (hyphen_trie::do_delete): New function.
12110         (trie::~trie): New function.
12111         (hyphen_trie::~hyphen_trie): New function.
12112         (trie::clear): No need to chcek that tp is not 0.
12113         (current_language, language_dictionary): New variables.
12114         (hyphen_word): Give an error if no current language.  Use
12115         exceptions dictionary in current language.
12116         (hyphen_trie::read_patterns_file): Find file using macro_path.
12117         Allow comments (starting with %) in patterns file.  Don't make it
12118         a fatal error if the file can't be found.
12119         (hyphenate): Return if no current language.  Get the exceptions
12120         dictionary and the hyphenation patterns from the current language.
12121         (set_hyphenation_language): New variable.
12122         (hyphenation_patterns_file): New function.
12123         (hyphenation_language_reg): New class.
12124         (hyphenation_language_reg::get_string): New function.
12125         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
12126         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
12127         register.
12128         * groff/groff.cc (main, help, synopsis): Delete -H option.
12129         * include/Makefile.sub: Don't define HYPHENFILE.
12130         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
12131         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
12132         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
12133         hyphenation patterns.
12135 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
12137         * eqn/neqn.sh: New file.
12138         * eqn/Makefile.sub: Handle neqn.sh.
12140         * eqn/eqn.h: Declare `nroff' variable.
12141         * eqn/box.cc (param_table): Add `nroff' param.
12142         (nroff): Define it.
12143         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
12144         variable.
12145         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
12147         * troff/troff.h (WARN_FONT): New warning.
12148         (WARN_TOTAL): Change accordingly.
12149         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
12150         (warning_table): Add WARN_FONT.
12151         * troff/node.cc (mount_font_no_translate): Pass argument to
12152         font::load_font.  If this is non-zero, give a warning.
12153         Don't give an error message when accessing a font that has already
12154         been found to be invalid.
12155         * include/font.h (font::load, font::load_font): Add additional
12156         optional argument which suppresses error message if the font is
12157         not found.
12158         * libgroff/font.cc (font::load_font): Handle additional argument.
12159         (font::load): Add additional argument. If this is non-null, set it
12160         to 1 and don't give error message.
12162         * include/printer.h (printer::end_page): Add argument giving
12163         length of page.
12164         * libdriver/input.cc (do_file): Pass this.
12165         * grops/ps.cc (ps_printer::end_page): Add argument.
12166         * grodvi/dvi.cc (dvi_printer::end_page,
12167         draw_dvi_printer::end_page): Add argument.
12168         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
12169         columns_per_page members. New member nlines.
12170         (DEFAULT_LINES_PER_PAGE): Deleted.
12171         (tty_printer::tty_printer): Don't compute lines_per_page from
12172         font::paperlength. Don't compute columns_per_page from
12173         font::paperwidth.
12174         (tty_printer::add_char): Don't check horizontal position against
12175         columns_per_page. Grow glyphs vector if neccessary.
12176         (tty_printer::end_page): Add argument giving page_length in units.
12177         Discard lines past end of page.
12179 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
12181         * tmac/tmac.tty-char: Fix definition of \(/l.
12183         * tmac/tmac.X: Define \(en.
12185 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
12187         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
12188         lpq, then use lp rather than lpr.
12190         * tmac/tmac.s (par@reset): Don't call `ad'.
12191         (par*env-init): Call `ad'.
12193 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
12195         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
12196         date.
12198         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
12199         * indxbib/indxbib.cc: Likewise.
12201 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
12203         * libgroff/putenv.c: New file.
12204         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
12205         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
12206         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
12207         stdlib.h with AC_HAVE_HEADERS.
12209 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
12211         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
12212         does not exist.
12214 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
12216         * eqn/box.cc (gsize): Make it an int.
12217         (set_gsize): Parse argument handling increment or decrement.
12218         (box::top_level): Convert gsize to a string.
12220         * troff/input.cc (exit_troff): Make buf unsigned char [].
12221         Call to make_temp_iterator casts buf to char*.
12223         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
12225         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
12226         * Makefile.cpg (depend.temp): Likewise.
12228         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
12230         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
12232 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
12234         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
12236 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
12238         * Version 1.06 released.
12240         * Integrate mm 1.04.
12242 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
12244         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
12246 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
12248         * afmtodit/afmtodit.pl: Add -n option that disables generation of
12249         ligatures command.
12250         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
12251         afmtodit. Regenerate.
12253         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
12254         @f back past the current position.
12256         * tmac/tmac.e: Change calls to @R so that comments are not part of
12257         arguments.
12259 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
12261         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
12263         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
12264         check that we can link a call to a function declared in <stdio.h>.
12265         (GROFF_UNISTD_H): New macro.
12266         * configure.in: Call it.
12267         * Makefile.in: Document it.
12268         * include/posix.h: New file.
12269         * troff/troff.h: Don't include <osfcn.h>
12270         * troff/input.cc: Include posix.h.
12271         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
12272         osfcn.h.
12273         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
12274         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
12275         <fcntl.h>.
12276         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
12277         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
12278         * libbib/search.cc (O_RDONLY): Delete definition.
12279         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
12280         Don't include <osfcn.h>.
12282         * acgroff.m4 (GROFF_TIME_T): New macro.
12283         * configure.in: Call it.
12284         * Makefile.in: Document it.
12286         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
12287         * configure.in: Call it.
12288         * Makefile.in: Document -DTRADITIONAL_CPP.
12289         * include/ptable.h: Don't include generic.h.
12290         (name2): Define it.
12292         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
12293         Afterwards remove [T1 and [T2.
12294         (ref*spec!0, ref*spec!2): Use T1 rather than T.
12295         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
12296         (ref*add-T2): Renamed from ref*add-T.
12297         (ref*add-T1): New macro.
12299 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
12301         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
12303         * libbib/index.cc: Include <fcntl.h>.
12304         (O_RDONLY): Define if necessary.
12305         (make_index_search_item, index_search_item_iterator::get_tag,
12306         index_search_item::check_files): Use O_RDONLY.
12307         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
12308         (O_RDONLY): Define if necessary.
12309         (search_list::add_file): Use O_RDONLY.
12310         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
12311         <sys/stat.h>.
12312         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
12313         (main): Use these.
12315         * libbib/index.cc (S_ISREG): Define it if necessary.
12316         (index_search_item::load): Use S_ISREG.
12318         * include/driver.h: Include <errno.h>.
12320 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
12322         * eqn/box.cc (body_height): Increase default value to 85.
12323         (body_depth): Increase default value to 35.
12325 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
12327         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
12328         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
12329         protected from expansion with \E.
12331         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
12333         * Makefile (Makefile): New target.
12335         * Makefile.sub (configure, distfiles): New targets.
12337         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
12338         construct.
12340 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
12342         * eqn/box.cc (param_table): Add body_height and body_depth.
12344         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
12346 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
12348         * psbb/Makefile.sub: Don't link with libgroff.a.
12350         * acgroff.m4 (GROFF_PUTENV): New macro.
12351         * configure.in: Call GROFF_PUTENV.
12352         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
12353         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
12354         is defined.
12356         * troff/env.cc (distribute_space): Rename force_forward argument
12357         to force_reverse.  Reverse the list if force_reverse is true.
12359 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
12361         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
12363         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
12364         height or depth to be negative.  Guard against SUP_RAISE quantity
12365         being negative.
12367 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
12369         * devps/generate/textmap: Add `an' (arrowhorizex).
12370         * tmac/tmac.ps: \(an overlaps horizontally.
12371         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
12373         * devps/symbolchars: Add arrowverttp, arrowvertbt.
12374         * devps/textmap: Add arrowvertex.
12375         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
12376         updownarrow delimiters.
12377         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
12379         * tbl/table.cc (simple_entry::position_vertically,
12380         block_entry::position_vertically):  For a centered entry, perform
12381         the motion in two stages.
12383         * refer/refer.cc (split_punct): Don't call lookup_token if there
12384         is no token.
12386 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
12388         * troff/input.cc (token::next): Delete token_node after copying
12389         token.
12391         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
12392         cur_point_size.
12394         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
12396         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
12398 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
12400         * grops/ps.cc (usage): -b option takes an argument.
12402         * devps/prologue (PLG): New procedure.
12403         * grops/ps.cc (main, usage): New -g option.
12404         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
12405         length using PLG.
12407 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
12409         * include/cset.h: Include <limits.h> if we have it.
12411         * libgroff/illegal.cc: New file.
12412         * include/lib.h (illegal_input_char): Use table.
12413         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
12414         * pic/lex.cc (ARG1): Renumber to 14.
12415         * eqn/lex.cc (ARG1): Likewise.
12417         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
12418         (eg 1.05.90) correctly.
12420 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
12422         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
12423         Rename $r and $R registers to $v and $V.
12424         ($r, $R): Initialize to 0.
12425         (@v, @V): New macros.
12426         (sz): Call @v.
12427         (@M): Call @V.
12429         * troff/input.cc (main, usage): Add -R option that says not to
12430         load troffrc.
12431         * eqn/main.cc (main, usage): Rename -n to -R.
12433 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
12435         * devps/DESC.in: Leave font positions 5-9 blank.
12436         * devdvi/DESC.in: Likewise.
12438         * grog/grog.pl: Handle `.PS <file' correctly.
12440         * troff/input.cc (input_stack::push): Improve error message when
12441         input stack limit exceeded.
12443 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
12445         * refer/refer.cc (main): Fix typo in handling of `a' option.
12447         * refer/refer.cc (do_bib): In state START after a newline remain
12448         in state START.
12450         * groff/groff.sh: Deleted.
12451         * groff/Makefile.sub: Delete handling of groff.sh.
12453         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
12454         to determine whether to use \X'ps:...'.
12455         * tmac/troffrc: Set 0p register to 0.
12456         * tmac/tmac.ps: Set 0p register to 1.
12458         * groff/groff.cc: Support -X option. Give warning for -TXps and
12459         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
12460         * tmac/troffrc: Support -r.X=1.
12462         * pic/troff.cc (troff_output::dot): Don't test
12463         zero_length_line_flag.
12465 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
12467         * include/lib.h: Declare getopt() and friends unless
12468         STDLIB_H_DECLARES_GETOPT is defined.
12470         * doc/chars.tr: Delete.
12471         * man/groff_char.man: New file.
12473 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
12475         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
12476         user has changed register format.
12478 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
12480         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
12481         `postpro' command in DESC file.  Get spooler command from `print'
12482         command in DESC file.  Execute spooler command with /bin/sh.
12484         * groff/groff.cc: Split Unix-specific parts into...
12485         * groff/pipeline.c: New file.
12487         * LICENSE: Delete.
12488         * COPYING: New file.
12489         * all files: Update copyright notices.
12491         * Rearrange files.  Redo Makefiles.  Use autoconf.
12493 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
12495         * troff/input.c (charinfo_to_node_list): Interpret character
12496         definition with escape_char of `\'.
12498 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
12500         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
12501         Define INT_DIGITS as big enough for 64-bit integer.
12502         * lib/strtol.c: Don't include lib.h.
12503         * lib/lib.h: Delete ifdef __cplusplus stuff.
12505 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
12507         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
12508         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
12509         get DESC from current directory.
12511 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
12513         * tbl/main.c (main): Always reset the line number when reading
12514         from stdin.
12516         * tbl/table.c (table::print_single_hline, table::print_double_hline,
12517         table::define_bottom_macro, table::do_row, table::do_top): Round
12518         vertical spacing up to vertical resolution.
12520 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
12522         * ps/ps.h (enum resource_type): Avoid comma at end of
12523         enumerator-list.
12524         * dvi/dvi.c (class dvi_printer): Likewise.
12525         * dvi/tfmtodit.c (gf::load): Likewise.
12526         * refer/label.y (struct expression): Likewise.
12527         * refer/refer.c (class label_processing_state): Likewise.
12528         * refer/indxbib.c (do_file): Likewise.
12529         * troff/troff.c (enum warning_type): Likewise.
12530         * tbl/main.c (process_data): Likewise.
12531         * troff/charinfo.h (class charinfo):
12533 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
12535         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
12537 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
12539         * groff.c: Move to new groff subdirectory.
12540         * groff/Makefile: New file.
12541         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
12543         * man/mdate.sh: Use ls -L if supported.
12545         * Consolidate all header files produced by gendef into lib/defs.h.
12546         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
12547         Don't include path.h.
12548         * lib/Makefile (path.h): Don't generate.
12549         * troff/input.c: Include defs.h. Don't include config.h.
12550         * troff/Makefile (config.h): Don't generate.
12551         * refer/index.h: Don't include suffix.h.
12552         * refer/index.c: Include defs.h.
12553         * refer/indxbib.c: Include defs.h.
12554         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
12555         defs.h.
12556         * refer/Makefile (suffix.h, path.h): Don't generate.
12557         * groff.c: Don't include config.h. Include defs.h.
12558         * Makefile (config.h): Don't generate.
12559         (lib/defs.h): Generate.
12560         (topclean): Remove lib/defs.h.
12562 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
12564         * lib/malloc.c, lib/getpagesize.h: Deleted.
12565         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
12566         related stuff.
12567         * lib/Makefile: Delete malloc-related stuff.
12568         * lib/new.c: Workaround COOKIE_BUG if necessary.
12570         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
12571         needed header files directly.
12572         * refer/refer.h: Omit definition of DEFAULT_INDEX.
12573         * Makefile: Include definition of DEFAULT_INDEX in path.h.
12575 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
12577         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
12578         argument.
12579         * lib/font (font::load_desc, font::load): Don't split argument of
12580         unknown command.
12581         (font::handle_unknown_font_command): Change type.
12582         * ps/ps.c (ps_font::handle_unknown_font_command,
12583         handle_unknown_desc_command): Change type.
12584         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
12586 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
12588         * lib/font.h (font::handle_unknown_font_command): Add file and
12589         line arguments.
12590         * lib/font.c (font::handle_unknown_font_command):
12591         * ps/ps.c (ps_font::handle_unknown_font_command):
12592         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
12593         lineno arguments.  Use _with_file_and_line functions for error
12594         reporting.
12596         * lib/fontfile.c (font::unknown_desc_command_handler): New static
12597         data member.
12598         * lib/font.c (font::set_unknown_desc_command_handler): New
12599         function.
12600         (font::load_desc): For unknown commands, call
12601         unknown_desc_command_handler if not null.
12602         * lib/font.h (class font): Declare them.
12603         (FONT_COMMAND_HANDLER): New typedef.
12604         * ps/ps.c (handle_unknown_desc_command): New function.
12605         (main): Set bflag if we had a -b option. Call
12606         font::set_unknown_desc_command_handler.
12607         (broken.h): Don't include.
12608         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
12609         submake 
12610         * ps/devps/Makefile: Add `broken' command to DESC file using
12611         BROKEN_SPOOLER_FLAGS.
12613         * macros/tmac.e ([, ]): Add as synonyms for { and }.
12615         * macros/tmac.e ($p): Only exdent if \$3 > 0.
12617         * macros/tmac.e (@R, @S): New macros.
12618         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
12619         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
12620         Declare $H, $[0-9], .. macros with @S.
12621         Declare |0, |1, |2, |3 strings with @S.
12623         * macros/tmac.e (@S): Rename to @U.
12625         * macros/tmac.e (@z): Define @b and bp as empty instead of
12626         deleting them,
12628         * macros/tmac.e (@m): Deleted.
12629         (@h): Don't call @m.
12630         (@z): Don't set @m trap.
12632         * macros/tmac.e ($h, $f): Define |z as empty string.
12634         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
12635         (@q): Likewise.
12637         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
12638         removing them.
12639         ()f): Likewise for * register.
12641         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
12642         argument is missing, don't change $R.  Call sr with three
12643         arguments when initializing.
12645 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
12647         * macros/tmac.e (sr): New macro.
12648         Initialize $r and $R using sr.
12650         * macros/tmac.e (,): Delete \*(#[.
12652         * troff/env.c (set_tabs): Read the tab type even if the position
12653         is bad.  Allow the position of the first tab stop to be negative.
12655 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
12657         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
12658         _POSIX_VERSION.
12659         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
12660         rather than -DPATHCONF_MISSING.
12661         * Makefile: Get rid of PATHCONF_MISSING.
12663         * refer/map.c: New file.
12664         * refer/index.c: Interface to mmap through map.c.  Rename map_size
12665         to map_len.
12666         * refer/Makefile: Handle map.c.
12667         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
12669 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
12671         * Makefile: RANLIB should be `true' if there is no ranlib.
12672         * lib/Makefile (libgroff.a): Simplify.
12673         * driver/Makefile (libdriver.a): Simplify.
12675         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
12676         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
12677         defined.
12679 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
12681         * troff/env.c (compare_ranges): Declare as extern "C".
12683         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
12685         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
12687 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
12689         * pic/troff.c (troff_output::text): Merge in grops_output::text,
12690         but conditionalize use of \X based on \*(.T.
12691         (grops_output::*): Deleted.
12692         * pic/output.h: Delete declaration of make_grops_output.
12693         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
12694         by default. -n sets it to 0.
12695         (usage): Corresponding changes.
12696         * groff.c (main): Don't pass -x or -p to pic.
12697         * groff.sh: Likewise.
12699         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
12700         to be non-zero.
12702         * ps/devps/afmtodit: Change calculation of asc_boundary and
12703         desc_boundary.  Make these bounds inclusive.
12704         * ps/devps: Regenerate font files.
12706 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
12708         * macros/tmac.latin1: New file.
12709         * macros/tmac.tty-char: Use tmac.latin1.
12710         (tmac.tty-tr): Deleted.
12711         * macros/Makefile: Install tmac.latin1.
12712         * macros/tmac.dvi: Use tmac.latin1.
12713         * macros/troffrc: Translate \[char160] onto no-break space here.
12714         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
12716 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
12718         * macros/tmac.Xps: Use `do' request.
12720         * macros/tmac.ps: Use `do' request.
12722         * macros/tmac.e (@C): Use `do' request.
12724         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
12725         * macros/Makefile: Install tmac.X*.
12727         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
12728         * tty/Makefile: Don't install tmac.tty*.
12729         * macros/Makefile: Install tmac.tty*.
12731         * dvi/tmac.dvi: Move to macros.
12732         * dvi/Makefile: Don't install tmac.dvi.
12733         * macros/Makefile: Install tmac.dvi.
12735         * ps/tmac.ps*: Move to macros.
12736         * ps/Makefile: Don't install tmac.ps*.
12737         * macros/Makefile: Install tmac.ps*.
12739         * eqn/box.c: Provide draw_lines parameter corresponding to -D
12740         option.
12741         * macros/eqnrc: Set draw_lines parameter based on device.
12742         * groff.c: Don't pass -D flag to eqn.
12743         * groff.sh: Likewise.
12744         * eqn/main.c: Warn about use of -D.
12746         * troff/input.c (process_startup_file): New function.
12747         (main): Call process_startup_file().
12748         * macros/troffrc: New file.
12749         * macros/Makefile: Install troffrc.
12750         * groff.c (main): Don't pass extra -m option to troff. For a 
12751         pseudo device pass the name of the pseudo device to troff using
12752         -d.
12753         * groff.sh: Likewise.
12754         * groff.c (possible_command::prepend_arg): Deleted.
12756         * troff/input.c (do_request): New function.
12757         (init_input_requests): Bind "do" to do_request.
12759         * eqn/main.c (main): Instead of loading eqnchar from device directory,
12760         load eqnrc from macro directory.
12761         * macros/eqnrc: New file.
12762         * macros/Makefile: Install eqnrc.
12763         * ps/devps/eqnchar: Deleted.
12764         * ps/devps/Makefile: Don't install eqnchar.
12765         * dvi/devdvi/eqnchar: Deleted.
12766         * dvi/devdvi/Makefile: Don't install eqnchar.
12767         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
12768         variable optM.
12770         * lib/device.[ch]: New files.
12771         * lib/font.h (font::set_device_name, font::get_device_name):
12772         Deleted.
12773         * lib/fontfile.c: Use device.h.
12774         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
12775         * troff/input.c: Delete definition of `device'.
12776         (main): Don't initialize device.
12777         * troff/troff.h: Include device.h rather than declaring device.
12778         * troff/Makefile: No need to handle DEVICE.
12779         * driver/input.c: Include device.h. Don't use
12780         font::{set,get}_device_name.
12781         * groff.c, Makefile: Rename device.h to config.h.
12782         * groff.c: Use library device variable.
12783         * eqn/main.c: Use library device variable.
12784         * eqn/Makefile: No need to handle DEVICE.
12786         * lib/searchpath.[ch]: New files.
12787         * lib/Makefile: Handle searchpath.[ch].
12788         * troff/input.c (open_file, init_dirs): Deleted.
12789         (macro_dirs): Deleted.
12790         (open_mac_file, macro_source): Use class search_path.
12791         (add_string, struct string_list): Move definition.
12792         (main): Change -M option to use macro_path. Delete call to
12793         init_dirs().
12794         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
12795         Rewrite to use class search_path.
12796         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
12797         * lib/Makefile: fontfile.c depends on searchpath.h.
12798         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
12799         MACROPATH.
12800         * lib/macropath.[ch]: New files.
12801         * troff/Makefile: No need to handle MACROPATH.
12803         * troff/input.c: Delete DUMP code.
12804         * lib/fontfile.c, lib/font.h: Delete
12805         font::forget_command_line_font_dirs.
12807         * troff/input.c (push_token): New function.
12808         (handle_first_page_transition): Use push_token().
12809         (process_input_stack): Change handling of a space at the beginning
12810         of the line.
12812 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
12814         * troff/input.c (font_dirs): Delete unused variable.
12816         * eqn/lex.c (do_set): Correct error messages.
12818 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
12820         * troff/input.c (do_define_string): Allow the string name to be
12821         followed immediately by a tab.
12822         (define_character): Likewise.
12824 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
12826         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
12827         be negative.
12829         * troff/input.c (input_iterator::is_file): New virtual function.
12830         (file_iterator::is_file): New function.
12831         (input_stack::end_file): New function.
12832         (input_stack::next_file): Handle the situation where there is no
12833         file on the input stack correctly.  Avoid making two passes over
12834         the input stack.
12835         (next_file): Make the filename optional; in this case call
12836         input_stack::end_file().
12838 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
12840         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
12841         produce a real _ charater when the current font is CW and _
12842         otherwise.
12844         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
12845         expression to work around gcc 2.2 bug.
12847 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
12849         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
12851         * troff/env.c (environment::add_padding): New function.
12852         (environment::add_char): Use add_padding().
12853         (environment::space): Likewise.
12854         (environment::wrap_up_field): Add some padding if there is none
12855         and there's no current tab.
12856         * troff/env.h: Declare environment::add_padding.
12858 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
12860         * pic/pic.y: undef fmod and rand before declaring them.
12862 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
12864         * troff/input.c (main): If the DESC file specifies a font name of
12865         0, then leave the corresponding font position empty.
12867         * nroff.sh: New file.
12868         * Makefile (install.nobin): Install nroff.sh.
12870         * tty/devlatin1/R.proto: Add ao as synonym for de.
12871         * tty/tmac.tty-char: Define ao as o.
12873         * tty/dev{ascii,latin1}/R.proto: Add aq.
12874         * tty/tmac.tty-char: Delete definition of aq.
12876 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
12878         * troff/input.c (init_charset_table): Don't translate 0240.
12879         * ps/tmac.ps: Translate char160 to space.
12880         * dvi/tmac.dvi: Likewise.
12881         * tty/tmac.tty: Likewise.
12883 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
12885         * dvi/tmac.dvi: Add support for all Latin-1 characters.
12887         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
12888         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
12889         \(oe, \(r?, \(r!.
12891         * tty/tmac.tty-char: Add \(ah.
12893         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
12894         No need to define \(FM and \(!/. Conditionalize all character
12895         definitions.
12897         * ps/devps/lgreekmap: Add +h, +f, +p.
12899         * ps/tmac.psnew: New file.
12900         * ps/Makefile: Install tmac.psnew.
12902         * troff/input.c (charinfo_to_node_list): Don't ever interpret
12903         character definitions in compatible mode.
12905         * troff/input.c (remove_character): New function.
12906         (init_input_requests): Bind remove_character to "rchar".
12908         * ps/tmac.psold: New file.
12909         * ps/Makefile: Install tmac.psold.
12910         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
12911         characters into tmac.psold.  Make these definitions unconditional.
12913         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
12915         * ps/tmac.ps: Don't define \('c and \('C.
12917         * ps/devps/textmap: Move Greek characters to...
12918         * ps/devps/symbolchars:
12920 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
12922         * ps/devps/text.enc: Add quotesingle.
12923         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
12924         * tty/tmac.tty-char: Likewise.
12925         * dvi/devdvi/texmi.map: Add +h, +f, +p.
12926         * dvi/devdvi/texi.map: Add Fn.
12927         * dvi/devdvi/msam.map: Add lz.
12928         * dvi/tmac.dvi: Handle Bq, bq, aq.
12930         * pic/lex.c (get_token): Recognize 'th.
12931         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
12933 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
12935         * ps/devps/textmap: Move di, mu, +- to...
12936         * ps/devps/symbolchars:
12938         * macros/tmac.s (@XS): Don't call par@reset or fi.
12939         (XA): Call LP. Turn off adjustment. Reduce line length.
12941         * macros/tmac.s: Initially alias XS to LP.
12942         (XS): Rename to @XS.
12943         (cov*ab-init): Alias XS to @XS.
12945 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
12947         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
12948         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
12949         (token::is_size, token::changes_env): Deleted.
12950         * troff/number.c (parse_term): No need to process \s explicitly.
12951         Call tok.next() only after scale indicator has been processed.
12952         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
12953         \f etc explicitly.
12954         (token::next): Handle \s, \f, \S, \H immediately rather than
12955         returning them as tokens.
12956         (token::operator==, token::description, token::add_to_node_list,
12957         token::process): Remove handling of deleted tokens.
12959         * troff/env.c (environment::add_char): When adding padding
12960         indicator character, call start_line() if necessary.
12962 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
12964         * ps/devps/afmtodit: Don't output 0 kerns.
12966         * ps/devps/afmtodit: Remove directory from name of encoding in
12967         font description file.
12969         * ps/devps/afmtodit: Improve error messages.
12971         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
12973         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
12974         * ps/devps/FontMakefile: Deleted.
12975         * ps/devps/afmname: New file.
12977         * ps/devps/symbol.sed: New file.
12978         * ps/devps/symbol.diff: Deleted.
12979         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
12980         Generate zapfdr.afm from zapfd.afm.
12982         * tty/tmac.tty (tty-char): Prefix definition with ".
12984         * macros/tmac.an (TP): Don't start a diversion if one has already
12985         been started.
12987         * tty/tmac.tty-char: Add Latin-1 characters.
12989         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
12991 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
12993         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
12994         Move declaration of struct horizontal_span.
12996         * tbl/table.c (table::table): Initialize span_list.
12997         (table::~table): Delete span_list.
12999         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
13001         * ps/devps/Makefile: Avoid dependency on GNU make.
13003         * ps/tmac.ps: Check that character does not already exist before
13004         defining it.
13006         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
13007         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
13008         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
13009         files.
13011         * tty/tmac.tty-char: New file.
13012         * tty/Makefile: Install tmac.tty-char.
13013         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
13014         tmac.tty-char.
13016         * tty/tmac.tty: Fix definition of \(34.
13018         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
13019         bracket-drawing characters onto |. Add *o.
13021         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
13022         only if current_field.
13024         * troff/dictionary.c (dictionary::lookup): Free old_table after
13025         rehashing. 
13027 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
13029         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
13030         whose glyphs are identical to glyphs of some Roman character.
13032         * tty/devlatin1/R.proto (bu): Deleted.
13033         * tty/devascii/R.proto (bu): Deleted.
13034         * tty/tmac.tty: Add definition of \(bu.
13036         * eqn/main.c (do_file): Pass FILE as argument.
13037         (main): Automatically load eqnchar.  New options -F and -n.
13038         Pass do_file an opened FILE.
13039         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
13040         No need to include font.h.
13041         * groff.sh: Likewise.  Don't need to use - for standard input.
13042         Prefix files with -- if first file starts with -.
13044         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
13046         * troff/env.c (environment::possibly_break_line): Don't set line
13047         to 0 across call to output_line().  Don't call output_line() until
13048         after discarding nodes after break.
13050 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
13052         * request.h (macro::empty): Declare it.
13053         * input.c (macro::empty): New method.
13054         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
13055         macro is empty.
13057 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
13059         * troff/env.c (environment::start_field): Decrement space_total
13060         when a space is frozen.
13062 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
13064         * macros/tmac.an (R): Delete macro.
13066         * troff/input.c (get_copy, token::next): Support \# (like \" but
13067         newline is ignored).
13069         * troff/input.c (token::next): Fix error message in 'Y' case.
13071 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
13073         * eqn/delim.c (define_extensible_string): Recognize any prefix of
13074         a delimiter name.
13076 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
13078         * c++test.c: Include <osfcn.h>.
13080         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
13081         <errno.h> doesn't.
13083 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
13085         * tbl/table.c (table::divide_span): Don't count column separation
13086         if expand was specified.
13088         * tbl/main.c (process_format): Don't ignore width specs in
13089         continued format.  Give warning for changing equal widths or
13090         column separation in continued format.
13091         (process_data): Set column separation, minimum width, equal
13092         columns at end of table.
13094 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
13096         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
13097         node::add_discretionary_hyphen): Use soft_hyphen_char.
13098         (set_soft_hyphen_char): New function.
13099         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
13101         * Makefile (c++tested): Give more helpful message if test fails.
13103 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
13105         * troff/input.c (init_charset_table): Translate 0240 to
13106         an unbreakable space.
13108         * troff/token.h (token::hyphen_indicator): New function.
13109         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
13110         translation.
13111         * troff/input.c (translate): Allow translation to \%.
13112         * troff/node.c (node::add_char): Handle
13113         TRANSLATE_HYPHEN_INDICATOR.     
13114         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
13116         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
13117         for \(hy.
13119         * tty/devlatin1/R.proto: \(hy and - should print as 055.
13121 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
13123         * groff.c (run_commands): If the last command gets a SIGPIPE send
13124         a SIGPIPE to all children than haven't yet terminated.  When
13125         command terminates, set pid field to -1.
13127 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
13129         * groff.c (main): Pass an appropriate -filename option to gxditview.
13131 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
13133         * Makefile.bd (install): Remove existing program before copying.
13135         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
13136         programs which have Unix counterparts to be installed with
13137         user-specified prefix.
13139         * troff/input.c (exit_troff): Don't check if exit_started.
13140         (exit_request): Don't call exit_troff if exit_started.
13142         * Makefile.bd (install.mm): Rename to install.dwbmm.
13144 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
13146         * driver/input.c (do_file): Add missing break for '#' case.
13148 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
13150         * troff/input.c (input_stack::clear):  Clear past any boundaries and
13151         then add the boundaries back.
13153         * troff/input.c (exit_troff): Return immediately if already
13154         exiting.
13156         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
13157         end macro.
13158         (pg*end-page): If the text has ended and there are no more
13159         footnotes or keeps, exit.
13161         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
13163         * troff/input.c (init_charset_table): Make \(rq transparent by
13164         default.
13166         * macros/tmac.an: Define lq and rq strings.
13168         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
13170 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
13172         * troff/env.c (environment::final_break): New function.
13173         (environment::newline): Set prev_line_interrupted to 2 if
13174         exit_started.
13175         * troff/env.h: Declare environment::final_break.
13176         * troff/input.c (exit_troff): Call environment::final_break()
13177         instead of environment::do_break().
13179         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
13180         doesn't already exist.
13181         * macros/man.local: New file.
13182         * macros/tmac.an: Load man.local.
13183         * macros/man.ultrix: New file.
13185 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
13187         * troff/input.c (exit_groff): Rename to...
13188         (exit_troff): New function.
13190         * troff/div.c (exit_started, done_end_macro,
13191         seen_last_page_ejector): New global variables.
13192         (began_page_in_end_macro): New static variable.
13193         (exit_flag): Deleted.
13194         (top_level_diversion::top_level_diversion): Initialize
13195         last_page_count.
13196         (top_level_diversion): More elaborate test for whether
13197         cleanup_and_exit() should be called.
13198         Set began_page_in_end_macro if the end macro isn't yet finished.
13199         * troff/div.h (top_level_diversion::last_page_count): New data
13200         member.
13201         (top_level_diversion::set_last_page): New function.
13202         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
13203         * troff/env.c (do_break): Zero prev_line_interrupted.
13204         * troff/input.c (exit_flag): Delete declaration.
13205         (LAST_PAGE_EJECTOR): New magic cookie.
13206         (token::next): Handle LAST_PAGE_EJECTOR.
13207         (exit_groff): Set exit_started and done_end_macro instead of
13208         exit_flag.  Call top_level_diversion::set_last_page.  Push a
13209         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
13210         another ejection after setting seen_last_page_ejector.
13212 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
13214         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
13216         * macros/tmac.e (TH): Make sure there's room for the initial
13217         header.
13219         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
13220         Set FVS in points rather than units.
13222 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
13224         * troff/div.c (top_level_diversion::add_trap): Don't consider the
13225         position of empty slots.
13227 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
13229         * ps/devps/S: Fix height and depth of parenrightex.
13230         * ps/devps/symbol.diff: Regenerate.
13232 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
13234         * tmac.e (u): Do underlining as in -mgs.
13236 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
13238         * tty/tty.c (tty_printer::end_page): If overstriking is
13239         suppressed, still turn overstruck horizontal and vertical lines
13240         into +.
13242         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
13243         2.1.
13245         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
13247 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
13249         * Version 1.05 released.
13251 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
13253         * tty/tty.c: Instead of keeping an array of glyphs and then
13254         sorting it, keep a ordered linked list of glyphs for each line.
13256         * driver/driver.h: Include stddef.h.
13258         * tty/tty.c (compare_glyph):
13259         * refer/refer.c (rcompare):
13260         * troff/env.c (compare_ranges): Arguments of qsort comparison
13261         function should be const void *.
13263         * troff/number.c (parse_term):
13264         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
13265         switch statement.
13267         * refer/label.y (consider_authors): Don't access variables
13268         constructed under a condition outside that condition: put braces
13269         round for statement containing declaration; redeclare use of same
13270         variable later.
13272         * pic/pic.y (text_expr): Delete production that allows
13273         parenthesised text_expr.
13274         (expr): Allow a conditional_expr to appear in parentheses.
13275         (conditional_expr): Rename to any_expr.
13277         * mm: Install new version 1.01 from jh.
13279         * lib/font.c (font::get_width): Cache scaled widths.
13280         (font::font): Initialize widths_cache.
13281         (font::~font): Destroy widths_cache.
13282         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
13284 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
13286         * c++test.c, c++test.ref: New files.
13287         * Makefile: Check that the C++ compiler works.
13289         * ps/tmac.pspic (PSPIC): Do a break.
13291         * ps/tmac.ps: Move definition of PSPIC into...
13292         * ps/tmac.pspic: New file.
13293         (PSPIC): Draw box around picture, but make it invisible to grops.
13294         * ps/tmac.ps: Load tmac.pspic.
13295         * ps/Makefile: Install tmac.pspic.
13297 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
13299         * lib/font.c (scale_round): If n is negative,
13300         subtract .5 before truncating floating point result.
13302         * lib/fontfile.c: Include <errno.h>.
13304 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
13306         * driver/input.c (get_char): Inline. Don't update current_lineno.
13307         Change callers to up date current_lineno if necessary.
13308         Use get_char() instead of getc(current_file).
13310 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
13312         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
13314 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
13316         * tty/tty.c (tmac.tty): Define \(rg as (R).
13318 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
13320         * lib/lib.h: New define a_delete.
13321         * Use a_delete instead of delete when deleting an array of objects
13322         without destructors.
13324         * lib/lib.h: Rename adelete to ad_delete.
13325         * Change uses of adelete.
13327 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
13329         * eqn/eqn.y: Include lib.h.
13331         * troff/node.c (grow_font_table): Delete old_font_table.
13333         * mm: Install new version from jh.
13335 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
13337         * tbl/table.h (format_type): Make global instead of local to class
13338         entry_format.  Prefix enumerators with FORMAT_.
13339         * tbl/table.c, tbl/main.c: Corresponding changes.
13340         * refer/token.h (token_type): Make global.  Prefix enumerators
13341         with TOKEN_.
13342         * refer/token.[ch]: Corresponding changes.
13343         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
13345         * troff/div.c (node::set_vertical_size): Don't name argument.
13347 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
13349         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
13350         * lib/lib.h: Define adelete accordingly.
13351         * pic/object.c (graphic_object::graphic_object):
13352         * tbl/main.c (format::~format):
13353         * tbl/table.c (table::~table):
13354         * refer/ref.c (reference::~reference, reference::merge,
13355         reference::insert_field, reference::delete_field): Use adelete.
13357         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
13358         * refer/token.h:
13359         * tbl/table.h: Corresponding changes.
13361         * common.c (common_output::dashed_arc, common_output::dotted_arc):
13362         Ensure total_angle is positive.
13364 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
13366         * refer/ref.c (reference::merge, reference::insert_field,
13367         reference::delete_field): Avoid delete[0].
13369         * refer/token.c (init_special_chars): Move calls to cmupper
13370         outside calls to init_two_char_letter to work around bug in gcc
13371         2.0.
13373 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
13375         * lib/new.c (operator new): Use __builtin_new for g++.
13377         * pic/object.c (graphic_object::~graphic_object):  Don't use
13378         delete [] on 0.
13380         * pic/object.c (output::compute_scale): Initialize max_width and
13381         max_height.
13383 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
13385         * troff/input.c (write_request): Call fflush.
13387         * troff/node.h (class composite_node): Move declaration to node.c
13388         * troff/input.c (charinfo_to_node): Rename to ...
13389         (charinfo_to_node_list): Return node list rather than composite
13390         node.
13391         * troff/node.c (make_composite_node): New function.
13392         (make_node, add_char): Call make_composite_node instead of
13393         charinfo_to_node.
13394         (class composite_node): Add a tfont * member.  Delete font_size
13395         member.
13396         (composite_node::composite_node, composite_node::copy,
13397         composite_node::size): Corresponding changes.
13398         (composite_node::tprint): Provide constant spacing, emboldening
13399         and track kerning as specified in tfont.
13400         (composite_node::width): Change width calculation accordingly.
13401         * troff/env.h (environment::composite): New member.
13402         (environment::is_composite, environment::set_composite): New
13403         functions.
13404         * troff/env.c (environment::environment): Initialize composite.
13405         * troff/input.c (charinfo_to_node): Call
13406         environment::set_composite.
13407         * troff/node.c (make_composite_node, make_glyph_node): Use the
13408         plain version of the tfont if the environment is composite.
13410         * troff/node.c (font_info::get_space_width): Additional argument
13411         giving space_size.  Handle constant space correctly. Scale by
13412         space_size unless constant spaced.
13413         (env_sentence_space_width): New function.
13414         * troff/node.h: Declare it.
13415         * troff/env.h (environment::get_space_size,
13416         environment::get_sentence_space_size,
13417         environment::get_narrow_space_width,
13418         environment::get_half_narrow_space_width): Make inline.
13419         (environment::get_space_width): Make inline.  Just call
13420         env_space_width.
13421         * troff/env.c: Delete definitions for funtions made inline.
13422         (environment::space_newline, environment::space): Use
13423         env_sentence_space_width(). Don't scale by space_size.
13424         * troff/node.h: Move declarations of env*space_width() functions
13425         into env.h.
13427 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
13429         * macros/tmac.s (PS): Don't try to set negative indent.
13431 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
13433         * pic/pic.y: Fix min function.
13435 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
13437         * man/mdate.sh: Clear LANGUAGE.
13439 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
13441         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
13442         * pic/lex.c: New COMMAND keyword.
13443         * pic/pic.y (print_args, print_arg): New rules.
13444         (placeless_element): Use print_args for PRINT.
13445         New COMMAND element.
13447 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
13449         * troff/input.c (terminal): Handle missing argument correctly.
13451         * pic/pic.y (text_expr): New rule.
13453         * pic/pic.y: Implement := operator.
13455 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
13457         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
13458         mdoc.
13460 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
13462         * ps/devps/dingbatsrmap: Include this in the distribution.
13464         * macros/tmac.doc: Replace with new version from 2nd Networking
13465         Release. Fix loading of doc-* files.
13466         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
13467         * macros/tmac.doc.old: New file.  Apply fixes that had been
13468         applied to old tmac.doc.
13469         * macros/tmac.andoc: Check that we're running under groff.
13470         * macros/Makefile: Rework.
13472 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
13474         * tbl/table.h (format_type): 
13475         * refer/token.h (token_type): If NESTED_TYPES is defined, use
13476         typedef to make these types visible at file scope.
13477         * Makefile: Add NESTED_TYPES configuration option.
13479         * troff/div.c (mark): At the top level use the value of
13480         nl_reg_contents rather than the current vertical position.
13482 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
13484         * tty/tty.c: Implement \D for horizontal or vertical lines.
13485         (tty_printer::set_char): Use vec_used+2 as serial number.
13486         Don't allow size of vector to exceed USHRT_MAX-2.
13487         Split off part into...
13488         (tty_printer::add_char): New function.
13489         (tty_printer::draw): New function.
13490         (compare_glyph): Handle equal serial numbers.
13491         (tty_printer::end_page): Handle overstruck characters from \D.
13492         (main, usage): Implement -d option.
13494 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
13496         * tbl/main.c (process_format):
13497         * eqn/text.c (split_text):
13498         * troff/input.c (token::next): Use inner block for declarations
13499         with initializers in switch statement.
13501 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
13503         * pic/common.c (common_output::dash_line): Cope with zero-length
13504         lines.
13506 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
13508         * Version 1.04 released.
13510 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
13512         * macros/tmac.an (TH): Define a macro an-init to define variables
13513         based on command line arguments.
13514         (an-header): Call it.
13516 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
13518         * Makefile (install.mm): Rename to install.dwbmm.
13520         * Makefile: Integrate mm.
13521         * mm: New directory.
13523 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
13525         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
13526         <sys/types.h>.
13528         * pic/troff.c (troff_output::simple_spline,
13529         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
13530         shadowing parameter.
13532         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
13534         * lib/ptable.h: Add explicit casts when converting from unsigned
13535         long to unsigned.
13537         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
13538         * dvi/devdvi/Makefile: Install SA, SB.
13540         * refer/indxbib.c: Add declaration of mktemp.
13542         * refer/lookbib.c: Add declaration of isatty.
13544 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
13546         * pic/lex.c (interpolate_macro_with_args):  While collecting
13547         arguments, keep track of whether we're in a string.
13549 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
13551         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
13552         down with \v, so as to avoid problems with top of page trap
13553         setting no space mode.
13555 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
13557         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
13559 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
13561         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
13562         Improve error message.
13564 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
13566         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
13567         printf("%03o");
13569 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
13571         * groff.c (possible_command::execp): Always use _exit() after a
13572         failed exec.
13574         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
13575         NO_SYS_WAIT_H   configuration options.
13576         * groff.c: Use these options.  Use POSIX-style macros to extract
13577         fields from the status returned by wait().
13579 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
13581         * tbl/table.c (table::compute_separation_factor): Allow the
13582         separation factor to drop to 0.
13584 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
13586         * refer/search.c: Include <errno.h>.
13588 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
13590         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
13592         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
13593         C++. 
13595         * pic/lex.c (input_stack::bol): Move definition out of class body.
13597         * pic/main.c: On MSDOS munge argv[0].
13599         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
13601         * lib/ptable.c (hash_string): Use unsigned long rather than
13602         unsigned.
13603         (next_ptable_size): Use unsigned rather than int.  Give an error
13604         message if we've hit the largest table size.
13605         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
13606         table size.
13608         * pic/object.h (object_spec): Make flags unsigned long.  Declare
13609         flags as const unisgned long rather than as enums.
13611         * pic/output.c: Deleted.
13613         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
13615         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
13616         Add additional argument.
13617         (line_entry::note_double_vrule_on_{left,right}): Set value of
13618         douvle_vrule_on_{right,left} flag according to argument.
13619         (simple_line_entry::simple_print,
13620         simple_line_entry::double_line_print): If adjacent to double vrule
13621         on a corner extend rather than shorten the rule by half the double
13622         vrule sep.
13624         * troff/number.c (parse_term): In checking for overflow, handle the
13625         case where the current horizontal position is negative.
13627 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
13629         * pic/object.c (draw_arrow): Check for object having zero length.
13631 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
13633         * eqn/main.c (do_file): Split off inline equation handling into...
13634         (inline_equation): New function.  Search for starting delimiter
13635         using...
13636         (delim_search): New function. Don't recognize a delimiter that
13637         occurs in the name of an escape sequence, number register, string
13638         etc.
13640 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
13642         * eqn/delim.c (delim_box::compute_metrics): Don't call
13643         define_extensible_string if left is 0.
13644         (delim_box::output):  Don't print the left delimiter if left is 0.
13645         (delim_box::debug_print): Check for left == 0 before calling printf.
13647 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
13649         * troff/Makefile (majorminor.c): Include only digits in
13650         minor_version.
13652 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
13654         * refer/dirnamemax.c: new file.
13655         * refer/genlimits.c: Deleted.
13656         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
13657         Don't check path length.
13658         * refer/Makefile: Add dir_name_max.o; delete genlimits.
13659         * Makefile: Add PATHCONF_MISSING option.
13661         * refer/indxbib.c (get_cwd): New function.
13662         (main): Use get_cwd().
13663         * lib/getcwd.c: New file.
13664         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
13665         GETCWD in SUBFLAGS.
13666         * lib/Makefile: Compile getcwd.o.
13668         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
13669         userdict.
13671         * refer/indxbib.c (main): Check success of mktemp.
13673         * lib/tmpfile.c: New file.
13674         * lib/Makefile: Add tmpfile.c.
13675         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
13676         * ps/ps.h: Delete declaration of mktemp().
13677         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
13678         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
13679         * driver/driver.h: No need now to include errno.h.
13681         * everywhere: Set errno to 0 before calling fopen().
13683         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
13684         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
13685         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
13687 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
13689         * troff/env.h (translate_space_to_dummy): Declare it.
13690         * troff/env.c (environment::space_newline, environment::space):
13691         If translate_space_to_dummy is set then make the width of spaces 0.
13692         * troff/input.c (translate): If the second character of a
13693         translation is a space, translate to unbreakable space.  If the
13694         first character is a space, set or clear translate_space_to_dummy
13695         according to whether the second character is \&.  Weird!
13697 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
13699         * groff.c (run_commands): Don't use non-zero exit code because a
13700         command gets SIGPIPE.
13702         * groff.c, groff.sh: Use -mXps with -TXps.
13704         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
13705         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
13706         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
13707         (ps_printer::special): New specials invis and endinvis.
13708         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
13709         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
13710         (ps_printer::end_page): Check that invis_count == 0.
13711         (ps_printer::invis_count): New member.
13712         (ps_printer::ps_printer): Initialize invis_count to 0.
13714         * troff/env.c (environment::hyphenate_line): Hyphenation
13715         indicator at beginning of word inhibits splitting after -, \(em
13716         etc.
13718         * pic/pic.y (element): Allow another element to follow } without
13719         any intervening separator.
13721 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
13723         * pic/lex.c (get_delimited): Allow tabs before delimiter.
13725 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
13727         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
13728         declaration of wait() in header files.
13729         * Makefile: Get rid of -DHAVE_UNION_WAIT.
13731         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
13733         * lib/lib.h: Declare return type of strerror as char *.
13735         * man/Makefile: Add g flag to sed substitutions.
13736         * Makefile (shgroff, bindist): Likewise.
13738 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
13740         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
13741         * ps/devps/prologue (PBEGIN): Define showpage after pushing
13742         userdict.
13744 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
13746         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
13747         userdict.
13749 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
13751         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
13752         group.
13754 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
13756         * troff/input.c (define_number_reg):  If currently undefined,
13757         don't define it if the argument is an invalid expression.
13759         * Makefile: Ignore return value of `if' commands without `else'
13760         parts.
13762         * Makefile: Split up CPPDEFINES into a series of separate
13763         configuration options.
13765         * troff/input.c (init_registers): Use time_t instead of long
13766         unless LONG_FOR_TIME_T is defined.  Use returned result rather
13767         than passing pointer.
13768         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
13770         * lib/Makefile (fontpath.h): Use gendef.
13772 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
13774         * troff/input.c (input_iterator::shift): Delete argument name.
13775         * troff/node.c (suppress_output_file::really_begin_page,
13776         suppress_output_file::really_transparent_char, node::ascii_print,
13777         node::tprint): Delete names of unused arguments.
13779 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
13781         * refer/label.y (string):  Pass $4 to command_error.
13783 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
13785         * Version 1.03 released.
13787 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
13789         * Makefile: Pass definition of SHELL in SUBFLAGS.
13791         * gendef: New file.
13792         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
13793         ps/Makefile: Use gendef to construct header files that are
13794         constructed from the Makefile.
13796         * macros/Makefile: make all should build stripped version of tmac.e.
13798         * refer/Makefile (clean): Remove y.output.
13800 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
13802         * ps/pfbtops.c (main): Add -v option which prints out a version
13803         number.
13804         * ps/Makefile (pfbtops): Link with libgroff.a.
13806 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
13808         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
13809         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
13811         * refer/lkbib.c (main): Always terminate reference with blank
13812         line.
13813         * refer/lookbib.c (main): Likewise.
13815         * refer/linear.c (file_buffer::load): Check that the file is not a
13816         binary file.
13818         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
13819         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
13820         Delete second inclusion of <sys/param.h>.
13822 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
13824         * troff/token.h (token::special): Deleted.
13826         * tbl/main.c (process_format): Rework so that opt->tab_char is
13827         recognized only when appropriate.
13829         * ps/Makefile (clean): Remove pfbtops.
13831 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
13833         * lib/font.c (text_file::next): Don't return if we have got a
13834         blank line.
13836 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
13838         * refer/refer.c (store_reference): Get hash code from old_table[i]
13839         when rehashing the table.
13841 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
13843         * eqn/box.c (box::top_level): Save size and prev size using \R and
13844         restore it afterwards. Set the size to the size at the beginning
13845         of the line.
13846         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
13847         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
13849         * refer/Makefile (limits.h): Use ./genlimits.
13851 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
13853         * refer/index.c: Delete declarations of stat() and fstat().
13855 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
13857         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
13859 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
13861         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
13863 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
13865         * troff/input.c (token::get_char): Handle \e.
13867         * refer/linear.c: Delete declarations of fstat() and stat().
13869 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
13871         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
13872         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
13874 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
13876         * troff/input.c (do_define_macro): Improve error handling for end
13877         of file while defining macro.
13879 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
13881         * eqn/box.h: Fix declaration of set_gsize.
13882         * eqn/box.c (set_gsize): Make argument const char *.
13883         (gsize): Declare as char *.
13884         * eqn/main.c (main): Don't convert gsize to int.
13885         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
13887         * Version 1.02 released.
13889 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
13891         * macros/tmac.andoc: New file.
13892         * macros/Makefile: Install tmac.andoc.
13894         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
13895         operator new and delete on OP_DELETE_BROKEN not being defined.
13896         * Makefile: Mention OP_DELETE_BROKEN.
13898 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
13900         * Makefile (bindist): Pass SUBFLAGS.
13902 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
13904         * Makefile, groff.c: Pass definitions to groff.c via device.h.
13906         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
13907         parameter.
13909         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
13911         * ps/ps.h, ps/psrm.c: Make comment_table and
13912         header_comment_table local to resource_manager::process_file.
13914         * groff.sh: With -TXps pass -printCommand option to gxditview.
13916         * groff.c (possible_command::print): Implement using
13917         append_arg_to_string.
13919         * xditview: Merge in new implementation with own ChangeLog.
13921 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
13923         * groff.c (main): Implement PRINT_OPTION.
13924         (append_arg_to_string): New command.
13925         (device_table): Set PRINT_OPTION flag for Xps.
13927 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
13929         * troff/groff.h: Rename to troff.h.
13931         * pic/lex.c (lookup_keyword, docmp): New functions.
13932         (get_token): Use new lookup_keyword.
13933         Don't include key.h.
13934         * pic/key.[ch], pic/pic.gperf: Deleted.
13935         * pic/Makefile: Remove gperf stuff.
13937         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
13938         into output.h.
13939         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
13941         * troff/Makefile, troff/node.c: Move definition of
13942         STORE_WIDTH into node.c.
13944         * etc/grog.pl, etc/grog.sh: Support -mdoc.
13946 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
13948         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
13949         dvi/devdvi/texb.map: Add lq and rq.
13950         dvi/devdvi: Regenerate fonts.
13951         * ps/devps/textmap: Add lq and rq.
13952         * ps/devps: Regenerate fonts.
13953         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
13954         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
13956         * pic/object.c (position_rectangle): When checking radius
13957         cope with possiblity that width or height is negative.
13958         (box_object::box_object): Have separate xrad and yrad with
13959         signs matching signs of dim components.
13960         (box_object::{north,south}_{east,west}): Use xrad and yrad.
13961         (box_object::print): With rounded boxes use absolute values
13962         for dim and rad arguments.
13964         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
13965         in fontpath.h.
13967         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
13969         * various files: Add explicit destructors to keep Saber CC +d
13970         happy.
13972 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
13974         * eqn/box.c (box::top_level): Restore fonts correctly after
13975         font changes in line containing inline equation.  Also
13976         restore previous font as well as current font.
13977         * eqn/pbox.h: Define necessary string and register names.
13979         * troff/input.c (token::next): Case 'R' calls do_register.
13980         (do_register): New function.
13982 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
13984         * groff.c, groff.sh: Support Xps device.  Allow each device
13985         to have a pseudo_name and a real_name.
13987         * groff.c (run_commands): Don't print `Broken pipe' messages.
13989         * ps/pfbtops.c: New file.
13990         * ps/Makefile: Add pfbtops.
13992         * troff/number.c (parse_term): Improved error message.
13994 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
13996         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
13998         * Makefile: Integrate refer.
13999         * refer: New directory.
14000         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
14001         man/lkbib.man: New files.
14002         * man/Makefile: Support refer man pages.
14004         * lib/lib.h: Declare is_prime.
14005         * lib/prime.c: New file.
14007         * troff/input.c (macro_source): New function.
14008         (init_input_requests): Bind "mso" to macro_source.
14010         * troff/env.c (environment::possibly_break_line): Maintain
14011         pointer to pointer to node to be split in ndp so as to avoid
14012         using address of freed node.
14014         * troff/env.c (environment::hyphenate_line): Maintain pointer to
14015         pointer to first node to be hyphenated in startp so as to
14016         avoid using address of freed node.
14018         * troff/env.c (class trie, class hyphen_trie): Make the
14019         elements of the trie be of type char not unsigned char.
14020         Declare arguments to be const char* instead of unsigned char *.
14021         
14022         * troff/env.c (hyphenate): Initialize hbuf[0].
14024         * troff/input.c (set_string): Declare p to be char * and cast
14025         *p to unsigned char when necessary.
14027         * troff/input.c (do_define_macro): Declare s to be const
14028         char*. Cast element to unisgned char when necessary, Declare
14029         d to be an int.  Handle EOF better.
14031         * troff/Makefile, troff/input.c: Different scheme for passing
14032         definitions of MACROPATH, HYPHENFILE and DEVICE.
14034 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
14036         * tty/devascii/R.proto: Delete entry for em.
14037         * tty/devlatin1/R.proto: Likewise.
14039 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
14041         * troff/input.c (translate): Stop when we get a space. Treat eof
14042         like newline.
14044         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
14046 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
14048         * tbl/main.c (process_format): A font name following a `f'
14049         modifier that starts with a digit can be only one character long.
14050         Also deal with EOF on the second character of the font name.
14052 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
14054         * troff/input.c (token::next): Turn \~ into an
14055         unbreakable_space_node.
14056         * troff/node.c (unbreakable_space_node): New class.
14057         * troff/node.h: Declare it.
14059 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
14061         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
14062         it's >= 0, before outputting it as a single byte.
14064 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
14066         * lib/font.c: Make font_char_metric::code an int.
14067         (font::get_code): Change return type to int.
14068         (font::load): Allow code to be arbitrary integer.
14069         * lib/font.h (font::get_code): Change return type to int.
14070         (font::number_to_index): Change argument type to int.
14071         * troff/input.c (token::next):  In case 'N', allow any value.
14072         Store value in token::val.
14073         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
14074         (token::get_char, token::add_to_node_list, token::process): Get
14075         number from val.
14076         (charinfo::set_number): Change argument to int.
14077         (charinfo::get_number):  Require that NUMBERED flag be set.
14078         (get_charinfo_by_number): Store numbered characters not between 0
14079         and 255 in a dictionary.
14080         * troff/charinfo.h (get_charinfo_by_number): Change argument type
14081         to int.
14082         (charinfo::number): Change type to int.
14083         (charinfo::set_number): Change type of set_number to int.
14084         * troff/node.c (troff_output_file::put_char_width,
14085         troff_output_file::put_char): Test whether character is numbered
14086         using charinfo::numbered().
14087         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
14088         values of num.
14089         * lib/nametoindex.c: New implementation to cope with arbitrary
14090         number characters.
14092         * troff/input.c (token::operator==): Test val for
14093         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
14094         TOKEN_SIZE.
14096         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
14097         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
14099 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
14101         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
14102         variable.
14104         * all Makefiles: rm targets of cp and >.
14106         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
14107         it.
14109         * eqn/lex.c (def_table): Add dollar.
14111 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
14113         * troff/input.c (do_width): Push back newline before closing delim
14114         like do_bracket.
14116 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
14118         * groff.c (possible_command::prepend_arg): New function.
14119         (main): Prepend device -m option.
14120         * groff.sh: Put device -m options before command-line options.
14122 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
14124         * macros/tmac.an (IP): Quote argument to TP.
14126         * ps/ps.c (main): New option -b, which sets...
14127         (broken_flags): New variable.
14128         (ps_printer::~ps_printer): Incorporate the setup section in the
14129         prolog if (broken_flags & NO_SETUP_SECTION).
14130         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
14131         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
14132         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
14133         ps_printer::print_needed_font_comment,
14134         ps_printer::print_supplied_font_comment,
14135         ps_printer::print_include_font_comments,
14136         ps_printer::lookup_doc_font, ps_printer::download_fonts,
14137         ps_printer::read_download_file, read_document_fonts, add_font,
14138         skip_line, parse_fonts_arg, document_font::document_font,
14139         document_font::~document_font, document_font::download,
14140         ps_output::include_file):  Deleted.
14141         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
14142         rather than %!PS-Adobe-2.0.  Make calls to
14143         resource_manager::need_font for each font that we used. Replace
14144         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
14145         print_supplied_font_comment, print_needed_font_comment by call to
14146         resource_manager::print_header_comments. Output %%Orientation
14147         comment. Output %%Requirements: numcopies comment if ncopies > 1.
14148         Don't output the prolog directly.  Instead call
14149         resource_manager::output_prolog.  Only define #copies when ncopies
14150         > 1.  Delete calls to print_include_font_comments  and
14151         download_fonts.  Add call to resource_manager::document_setup.
14152         (ps_printer::do_file): Call resource_manager::import_file instead
14153         of including it ourselves.
14154         (ps_printer::do_import): Likewise.  Also don't call
14155         merge_import_fonts. Push userdict on the dictionary stack before
14156         and pop it afterwards.
14157         Move declaration of ps_output into ps.h.
14158         * ps/psrm.c: New file implementing resource_manager class.
14159         * ps/ps.h: New file declaring ps_output and resource_manager
14160         classes.
14161         * ps/devps/zapfdr.ps:
14162         * ps/devps/symbolsl.ps:
14163         * ps/devps/prologue:  Use 3.0 conventions.
14164         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
14165         Add default definition of BROKEN_SPOOLER_FLAGS.
14166         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
14167         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
14169 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
14171         * etc/grog.pl: New file.
14172         * Makefile (GROG): New variable.
14173         Add GROG to SUBFLAGS.
14174         * etc/Makefile (GROG): New variable.
14175         (install.nobin): Install $(GROG) rather than grog.sh.
14177 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
14179         * eqn/special.c (special_box::compute_metrics): Make the input and
14180         output strings the same.  Get the new height and depth from the
14181         predefined height and depth registers.  Also make subscript kern
14182         and skew available.
14183         (special_box::compute_subscript_kern, special_box::compute_skew):
14184         New functions.
14186         * eqn/box.c (pointer_box::compute_skew,
14187         simple_box::compute_metrics, box::top_level)
14188         * eqn/text.c (prime_box::compute_metrics,
14189         prime_box::comput_subscript_kern)
14190         * eqn/limit.c (limit_box::compute_metrics):
14191         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
14192         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
14193         negative numbers in `nr' requests with a leading 0.
14195 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
14197         * eqn/special.c: New file.
14198         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
14199         Add new rule for simple.
14200         * eqn/lex.c (token_table): Add SPECIAL.
14201         * eqn/box.h: Declare make_special_box.
14202         * eqn/Makefile: Add special.[co].
14204 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
14206         * ps/devps/prologue: Possibly set packing to true while defining.
14207         Create grops dictionary here.  Initialize local variables before
14208         defining procedures.
14209         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
14210         the dictionary stack. Set strokeadjust and overprint to false if
14211         the relevant operators are defined.
14212         (PEND): New procedure.
14213         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
14214         prologue.  Do everything else in the setup section.
14215         (ps_printer::do_import): Just call PBEGIN and PEND around the
14216         picture. Also push userdict before, and pop it afterwards.
14218 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
14220         * troff/node.c (bracket_node::tprint): Brackets were being printed
14221         1m too low.
14223         * macros/tmac.an (SH, SS): Set fill mode.
14225 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
14227         * troff/div.c (top_level_diversion::begin_page): Set
14228         high_water_mark to 0.
14230 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
14232         * man/mdate.sh: New file.
14233         * man/mdate.c: Deleted.
14234         * man/Makefile: Use mdate.sh instead of mdate.
14235         (mdate): Deleted.
14237         * eqn/lex.c (do_gsize): Supply missing argument to error message.
14239 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
14241         * man/mdate.c: New file.
14242         * man/*.man: Replace modification date by @MDATE@.
14243         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
14244         (mdate): New target.
14246         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
14247         Remove illegal input characters.
14249 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
14251         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
14253 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
14255         * troff/div.c (begin_page): Change behaviour when
14256         !first_page_begun and !break_flag.
14258         * troff/input.c (do_name_test): Return 0 if argument is empty.
14260         * troff/input.c (read_long_escape_name): Require closing ] to be
14261         at same input level as opening [.
14263         * troff/input.c (read_increment_and_escape_name): New function.
14264         (get_copy, process_input_stack): Use this for \n.
14266 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
14268         * troff/div.c (top_level_diversion::begin_page): Ignore the
14269         current value of page_number if !first_page_begun.
14271         * groff.c (main): Fix declaration of buf.
14273         * troff/input.c (do_name_test): New function.
14274         (token::next): Implement \A.
14275         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
14276         (token::description, token::add_to_node_list, token::process):
14277         Handle TOKEN_ESCAPE.
14278         * troff/token.h: New token TOKEN_ESCAPE.
14280 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
14282         * pic/main.c (do_picture): Allow space before and after filename
14283         following `<'.  Check that the filename is not empty.
14285 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
14287         * Version 1.01 released. 
14289         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
14291         * dvi/tmac.dvi: ftr HR to H.
14293         * macros/tmac.e: Round up computation of $r.
14295         * xditview/tmac.X:  Don't give up completely in compatibility mode.
14296         Use \n(.s instead of \n[.s].
14298         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
14299         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
14300         Add u to factors inside \s[...]. Rename frac to dvi-frac.
14301         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
14302         short names in the char definitions.
14304         * ps/tmac.ps: Don't give up completely in compatibility mode.
14305         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
14306         quote in front of \n(.s. Add u to factors inside \s[...].
14308 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
14310         * tty/tmac.tty: Call the nroff request.
14312         * macros/tmac.e ((x, )x):  Better definitions that work properly
14313         in a diversion.
14314         (@0, @1): Helper macros for (x.
14316         * macros/tmac.e ($s, hl): Use \l rather than \D.
14318         * tty/tmac.tty: Make it work better in compatibility mode.
14319         (pchar): Rename to tty-char.
14321         * macros/tmac.e (@E): New macro.
14322         (r, i, b, rb, bi): Use @E.
14324         * macros/tmac.e (@F): Don't use (;...) syntax.
14326         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
14327         it was modified for groff.
14329         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
14331         * macros/tmac.e (<., .>): Removed.
14332         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
14334         * macros/tmac.e: Remove check that groff is being used.
14336         * macros/tmac.e (@C): Change families only if using groff; turn
14337         compatibility mode off while changing familes. Save compatibility
14338         mode before changing families and restore it afterwards.
14340         * macros/tmac.e (@h): Remove test for offset + line length.
14342         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
14343         (lo, th, ac): Define to call @S instead of using als.
14345         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
14346         the ratio of the vertical spacing to the point size in units
14347         expressed as a percentage.  Use these instead of $10r and $10R,
14348         Delete $10r and $10R.
14350         * lib/font.c (font::load): In default computation of space_width,
14351         divide by sizescale.  Use scale_round.
14353         * macros/tmac.an (TP): Don't call `nf'.
14354         (an-do-tag): Don't call `fi'.
14356 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
14358         * troff/input.c (process_input_stack): Handle the case where
14359         spaces at the beginning of an input line are followed by a
14360         newline.
14362 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
14364         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
14365         * groff.sh: Use pic -x with the dvi device.
14367         * dvi/devdvi/FontMakefile (H): Don't use -s.
14369         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
14370         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
14371         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
14372         in FONTS.
14374 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
14376         * ps/psfig.diff: New file.
14377         * ps/tmac.psfig: New file.
14379 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
14381         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
14382         (]-): Don't call ref*do-tl.
14384         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
14386         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
14387         (fn@do-FS): Rename to fn*do-FS.
14389         * troff/input.c (transparent_translate): New function.
14390         (process_input_stack): Apply transparent_translate before calling
14391         diversion::transparent_output(unsigned char).
14393 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
14395         * troff/input.c (do_define_macro): Define the macro before calling
14396         skip_line.
14398         * xditview/Makefile: Add DEVICES variable.  Change install target
14399         to use this.
14401 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
14403         * groff.c (run_commands): Handle the possibility that there are
14404         child processes other than those forked by us.
14406 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
14408         * lib/string.c (string::append): New function.
14409         * lib/stringclass.h: Declare it.
14411 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
14413         * eqn/main.c (main): New option -N which sets
14414         no_newline_in_delim_flag. 
14415         (do_file): If no_newline_in_delim_flag is set don't allow newlines
14416         in delimiters.
14417         * groff.c (main): Pass -N on to eqn.
14418         (help, synopsis): Mention -N.
14419         * groff.sh: Implement -N.
14421 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
14423         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
14424         (]-): Call ref*do-tl if ref*need-tl is non-zero.
14425         (XP): Allow as initializer.
14427 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
14429         * troff/env.c (environment::wrap_up_field): If field_spaces are
14430         non-zero and we have a current_tab, subtract padding from
14431         tab_distance.  If this makes tab_distance <= 0, use the next tab
14432         stop instead.  If there isn't any next tab or it's a left tab,
14433         wrap up the current tab.
14434         (environment::start_field): Initialize tab_precedes_field.
14435         (environment::wrap_up_tab): If there's a current field, update
14436         pre_field_width, field_distance and tab_precedes_field.
14437         * troff/env.h (environment::tab_precedes_field): New member.
14439 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
14441         * ps/ps.c (ps_printer::do_file): New function.
14442         (ps_printer::special): Bind to `file' special.
14443         (ps_printer::do_exec): Set ndefined_styles to 0.
14445 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
14447         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
14448         Avoid stripping first character from the start of unrecognized
14449         escapes.  Use lex_error instead of error to report errors.
14450         * eqn/lex.c (get_token): Rework handling of escapes.
14451         (lex_error): Move declaration into...
14452         * eqn/eqn.h.
14454         * xditview/xditview.c (main): Make -page option work.
14456         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
14458 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
14460         * macros/tmac.s (B2): Correct size of box.
14462 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
14464         * macros/tmac.s (B2): Postpone drawing the box until in the
14465         top-level diversion.
14467         * tty/tmac.tty: Add font translations for C, CR, CW.
14469         * groff.c (synopsis, help): Document -i.
14470         * groff.sh: Implement -i.
14472         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
14473         Simplify the construction of SN.
14475         * troff/number.c (parse_term): Give `|' a higher precedence.
14476         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
14477         accordingly.
14479         * macros/tmac.s (B2): Use par@finish instead of par@reset.
14481 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
14483         * lib/string.c (string::move): New function.
14484         * lib/stringclass.h: Declare it.
14486 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
14488         * troff/env.c (distribute_space): Add optional argument
14489         `force_forward'.
14490         (environment::wrap_up_field): Call distribute_space with
14491         `force_forward' argument of 1.
14493 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
14495         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
14496         Inline it.  Move reallocation into...
14497         (string::grow1): New function.
14498         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
14499         dependencies to include library header files.
14500         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
14502 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
14504         * macros/tmac.s (@NH): Use the same number registers than -ms does
14505         for the heading level counters.  Use the same string that -ms does
14506         for the number for this heading.
14508 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
14510         * lib/new.c (operator new): Cast result of malloc to char *.
14512         * troff/input.c (spring_trap, lookup_request): Add assert that nm
14513         is not null.
14515 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
14517         * groff.c (main): Support -i.
14519 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
14521         * pic/pic.h: Include <osfcn.h>.
14523         * ps/ps.c: Add declaration of mktemp.
14525         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
14526         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
14527         argument as union wait *.
14528         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
14529         argument to union wait *.
14531 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
14533         * tty/tmac.tty: Add definition of \(co.
14535         * pic/object.c (make_arc): Only increase radius when radius
14536         strictly less than d.
14537         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
14538         more than once.
14540         * troff/env.c (environment::environment(symbol),
14541         environment::environment(const environment *)):  Initialize
14542         input_trap_count.
14544 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
14546         * tbl/main.c (main): Add exit(0).
14548         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
14550         * pic/main.c (main):
14551         * eqn/main.c (main):
14552         * tbl/main.c (main):
14553         * etc/soelim.c (main):
14554         * driver/printer.c (printer::~printer):
14555         * troff/node.c (real_output_file::~real_output_file,
14556         real_output_file::flush):  Check for errors on stdout.
14558         * most files: Add 1991 to copyright notice.
14560         * macros/tmac.s: Don't test \n(.x and \n(.y.
14562         * troff/input.c (token::next): Rename `escape_char' label to
14563         `handle_escape_char' and `normal_char' label to
14564         `handle_normal_char'.
14566 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
14568         * groff.c (main, synopsis, help): Support -a option.
14569         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
14570         to trflags while parsing options.
14572 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
14574         * troff/number.c (parse_term): With `m', `M' and `n' scale
14575         indicators, convert scale factor to hunits before scaling.
14577 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
14579         * lib/font.c (scale_round): Better test for overflow when n is
14580         negative.
14582 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
14584         * tbl/main.c (process_format): Add second argument of type
14585         options*. Change callers.  Allow opt->tab_char as well as '\t'
14586         between format items.
14588 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
14590         * macros/tmac.an (PD): With no arguments, make sure register PD is
14591         at least \n[.V].
14592         (TH): Call PD with no argument, instead of setting register PD
14593         directly.
14595 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
14597         * Version 1.00 released.
14599 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
14601         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
14603         * dvi/devdvi/DESC: Mount CW instead of CR.
14605         * dvi/tmac.dvi: Add definition of \(tm.
14607         * dvi/devdvi/texsy.map: Add lh, and rh.
14608         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
14609         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
14611         * dvi/devdvi/FontMakefile: Generate H from cmss10.
14612         * dvi/devdvi/Makefile: Install H.
14613         * dvi/devdvi/H: New file.
14615 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
14617         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
14618         be 0.
14620 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
14622         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
14624         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
14626         * macros/tmac.s (@EN): Handle the case where the equation is empty
14627         but the label is not.
14629 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
14631         * troff/groff.h: New warning category WARN_SPACE.
14632         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
14633         WARN_SPACE to warning_table.
14634         (interpolate_macro): Give a warning of type WARN_SPACE if the name
14635         is longer than two characters and is not defined, but the first
14636         two characters do make a defined name.
14638         * PROBLEMS: New file.
14640         * CHANGES: New file.
14641         * README-0.6, README-1.00: Deleted.
14643         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
14644         * xditview/devX75/Makefile: Make devX75-12.
14645         * xditview/devX100/Makefile: Make devX100-12.
14647         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
14648         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
14650 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
14652         * README-0.7: Rename to README-1.00.
14654         * macros/tmac.pic: New file.
14655         * macros/Makefile (install.nobin): Install tmac.pic.
14657 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
14659         * troff/env.c (hyphen_word): Correct the test for whether the
14660         token is a hyphen.  Reset npos to 0.
14662         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
14664 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
14666         * macros/tmac.s (ds*common-end): Call par*reset.
14667         (PE): Likewise.
14668         (par@reset-indent): Deleted.
14670         * macros/tmac.s (@IP): Divert the label.
14672 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
14674         * xditview/draw.c (setGC): Use a line width of .1m rather than
14675         .04m by default; round rather than truncate value.
14677         * tbl/table.c (class empty_entry): New class.
14678         (empty_entry::empty_entry, empty_entry::line_type): New functions.
14679         (table::add_entry): Represent empty entries by objects of type
14680         empty_entry.
14681         (table_entry::line_type): Return -1.
14682         (table::determine_row_type): Ignore entries with line_type 0.
14683         Treat type -1 as non-lines.
14685 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
14687         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
14688         macros/tmac.s: Rename \(-d to \(Sd.
14690 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
14692         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
14693         * xditview/libXdvi/DviChar.c: Likewise.
14694         * dvi/devdvi/texsy.map: Add `<<', `>>'.
14696 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
14698         * troff/div.c (top_level_diversion::begin_page): Call
14699         init_output() if the_output is 0.
14701 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
14703         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
14704         ESCAPE_c.
14705         (get_copy): Turn \E into ESCAPE_E.
14706         (token::process, asciify): Handle ESCAPE_E.
14708         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
14709         (RD): New macro.
14710         (DS): Implement `.DS R'.
14712 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
14714         * macros/tmac.s (FS): New macro.
14716         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
14718         * macros/tmac.s (cov*tl-init): Remove after first execution
14719         instead of aliasing to @nop.  Call top of page macro explicitly
14720         instead of setting trap; call @init first.  Set pg@top as top of
14721         page macro.
14722         (cov*auto-init): Deleted.  Set cov*tl-init instead of
14723         cov*auto-init as top of page trap. 
14724         (TL, LP): Do a break instead of calling cov*tl-init.
14725         (cov*print): With RP format but no TL, alias FS and FE to @FS and
14726         @FE; in this case also give a warning and always start another
14727         page. No need to set pg@top here.
14728         (cov*tl-init): Rename to cov*first-page-init.
14730         * macros/tmac.s (RP): Do `.pn 0'.
14731         (cov*tl-init): With RP format don't do `.pn 0'.
14733         * macros/tmac.s (pg@cs-top): Set no space mode.
14735         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
14736         (cov*ab-init): Alias TL, AU and AI to these.
14738 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
14740         * macros/tmac.s (@EQ): Move the space before the equation into @EN
14741         (@EN): Do nothing unless \n[dl] is > 0.
14743 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
14745         * pic/object.c (ellipse_object::radius): New function.
14747         * VERSION: Change version to 0.7.
14749         * tbl/table.c (block_entry::do_divert): Declare return type as
14750         void.
14751         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
14753 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
14755         * troff/column.c: New file.
14756         * troff/Makefile: Corresponding changes.
14758         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
14759         Friend of vunits.
14761         * troff/div.c (top_level_diversion::space): If the space causes
14762         the first-page transition and springs a trap, truncate the space
14763         to 0.
14765 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
14767         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
14768         the document.
14770         * pic/troff.c (troff_output::line_thickness,
14771         troff_output::set_fill): Do a horizontal motion to compensate for
14772         the width of the \D escape sequence.
14774 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
14776         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
14777         (not X75).
14779         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
14780         to printf.
14782         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
14783         Supply empty definition.
14784         (text_entry::simple_print, simple_text_entry::simple_print):
14785         Delete declarations.
14786         (table::add_entry): Represent empty entries by objects of type
14787         `simple_entry'.
14789 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
14791         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
14793         * tbl/table.c (left_text_entry::add_tab): New function.
14795         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
14796         initialize like LP.
14798 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
14800         * troff/env.c (environment::start_field): Give an error message if
14801         there is no next tab.
14803 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
14805         * troff/env.c (hyphenate): Skip initial elements with zero
14806         hyphenation code.
14808         * macros/tmac.s (par@init): Keep VS in points rather than units.
14810 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
14812         * pic/main.c (main): Implement `-c' option.
14813         * pic/output.h: Declare make_tpic_output().
14814         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
14815         protected.
14816         (tpic_output): New class.
14817         (tpic_output::tpic_output, tpic_output::set_pen_size,
14818         tpic_output::command, make_tpic_output): New functions.
14820 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
14822         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
14823         if they're not already defined.
14824         * tbl/table.c (init_output): Don't test \n(.g.
14826         * troff/input.c (do_if_request): Delete `g' condition. Recognize
14827         `d', `r' and `c' conditions even in compatibility mode.
14829 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
14831         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
14832         box.
14834 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
14836         * troff/env.h (environment::prev_line_interrupted): New member.
14837         (environment::get_prev_line_interrupted): New function.
14838         * troff/env.c (environment::newline): Set prev_line_interrupted.
14839         (environment::environment(const environment *),
14840         environment::environment(symbol)): Initialize
14841         prev_line_interrupted.
14842         * troff/input.c (process_input_stack): Don't give special
14843         treatment to space and newline at the beginning of the line if the
14844         previous line was interrupted.
14846 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
14848         * eqn/eqn.y: Disallow PRIME by itself.
14849         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
14850         PRIME.
14851         (def_table): Remove definition of '.  Define prime to be `.
14853         * eqn/eqn.y: Split off part of rule `script' into a new rule
14854         `nonsup'.
14856 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
14858         * macros/tmac.s ({, }): New string aliases.
14860 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
14862         * README-0.7: New file.
14864 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
14866         * macros/tmac.s: New file.
14867         * man/groff_ms.man: New file.
14868         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
14869         * Makefile.bd: Similarily.
14870         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
14871         definition of TMAC_S.
14872         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
14873         * macros/TODO: New file.
14875 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
14877         * troff/env.c (right_justify): New function.
14878         (init_env_requests): Bind this to request "rj".
14879         (center_lines): Set right_justify_lines to 0. If we get a bad
14880         integer, center 1 line.
14881         (environment::environment(symbol), environment::environment(const
14882         environment *)): Initialize right_justify_lines.
14883         (environment::get_right_justify_lines): New function.
14884         (init_env_requests): Bind this to number_register ".rj".
14886         * troff/env.c (environment::choose_breakpoint): Implement
14887         hyphenation_margin and hyphenation_space.
14888         (environment::get_hyphenation_space,
14889         environment::get_hyphenation_margin): New functions.
14890         (init_env_requests): Bind these to .hys and .hym.
14891         (hyphenation_space_request, hyphenation_margin_request): New
14892         functions
14893         (init_env_requests): Bind these to hys and hym.
14894         (environment::environment(symbol), environment::environment(const
14895         environment *)): Initialize hyphenation_margin and
14896         hyphenation_space.
14897         * troff/env.h: Corresponding changes to class environment.
14899 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
14901         * troff/div.c (blank_line): Always do a break.
14903         * eqn/box.c (do_text): Turn off escapes while appending text to
14904         string.
14906 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
14908         * troff/input.c (while_break_request, while_continue_request): New
14909         functions.
14910         (init_input_requests): Bind these to "break" and "continue".
14911         (while_depth, while_break_flag): New variables.
14912         (while_request): Update while_depth.  Break out of loop if
14913         while_break_flag is set.
14915 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
14917         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
14918         rather than 0.
14920 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
14922         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
14924         * stringify: New file.
14925         * Makefile (groff.o): Use stringify.
14927         * xditview/tmac.X: Remove definition of \(rn.
14928         * xditview/libXdvi/DviChar.c: Remove radicalex from
14929         Adobe_symbol_map.
14931 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
14933         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
14934         (alphabetic_block_entry::alphabetic_block_entry,
14935         alphabetic_block_entry::divert, alphabetic_block_entry::print):
14936         New functions.
14937         (block_entry::divert): Split off body into ...
14938         (block_entry::do_divert): If the block is alphabetic, subtract 2n
14939         from the line length; also update the span width to dl+2n, and the
14940         alphabetic span width to dl.
14942         * driver/input.c (do_file):  While reading argument to D command,
14943         when expanding buffer, multiply szp by sizeof(int) rather than 2
14944         in the argument to memcpy.
14946         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
14947         width of alphabetic columns.
14949 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
14951         * troff/node.c (lookup_family): Supply second argument to lookup.
14953         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
14954         search, return immediately if v is 0.
14956         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
14957         (troff_output::start_picture): Set this reg.
14958         (troff_output::end_picture): Remove this reg
14959         * eqn/box.c (box::extra_space): Don't produce `\x's if
14960         EQN_NO_EXTRA_SPACE_REG is defined.
14962         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
14963         * eqn/text.c (split_text): Map ' to \(fm when it's the first
14964         character.
14966 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
14968         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
14969         requests.
14971         * troff/div.c (top_level_diversion::top_level_diversion):
14972         Initialize page_number to 0.
14974 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
14976         * groff/troff (environment::environment(const environment *)):
14977         Initialize name to e->name, rather than "anonymous".
14979 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
14981         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
14982         requested_page.  Split middle part into ...
14983         (FindPage): New function.
14984         (SetValues): If we don't yet know the last page, and the requested
14985         page is greater than the current page, call FindPage.
14986         Update the font_map_string before doing this.
14988         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
14989         Translate \(lh and \(rh into left and right double arrows.
14991         * troff/node.c (class hyphen_inhibitor_node): New class.
14992         (hyphen_inhibitor_node::hyphen_inhibitor_node,
14993         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
14994         hyphen_inhibitor_node::type,
14995         hyphen_inhibitor_node::get_hyphenation_type): New functions.
14996         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
14997         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
14998         word.
15000 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
15002         * troff/node.h (dummy_node::get_hyphenation_type,
15003         transparent_dummy_node::get_hyphenation_type):  Declare them.
15004         * troff/node.c: (dummy_node::get_hyphenation_type,
15005         transparent_dummy_node::get_hyphenation_type): New functions.
15007 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
15009         * xditview/libXdvi/draw.c: If M_PI not defined after including
15010         math.h, then define it.
15012         * xditview/Makefile: Add definition of AR. Pass it to the submake
15013         in libXdvi.
15014         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
15016 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
15018         * troff/dictionary.h (object_dictionary::alias): Declare return
15019         value as int.
15020         * troff/dictionary.c (object_dictionary::alias): Return non-zero
15021         if the old name was defined.
15022         * troff/input.c (alias_macro): Give a warning if the old name was
15023         not defined.
15024         * troff/reg.c (alias_reg): Likewise.
15026 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
15028         * troff/input.c (token::next): Delete implementation of \R.
15030         * macros/Makefile: Strip comments from tmac.e while installing it.
15032         * troff/input.c: New variable `nroff_mode'.
15033         (troff_request, nroff_request): New functions.
15034         (init_input_requests): Bind `troff' and `nroff' to troff_request
15035         and nroff_request.
15036         (do_if_request): Compute results of t and n conditions from
15037         nroff_mode.
15039         * text/text.c (split_text): Fix typo in >=.
15041         * eqn/lex.c: Add definition of `==' to def_table.
15043 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
15045         * pic/tex.c (tex_output::start_picture): Change the definitions of
15046         \graph and \graphtemp so that they work properly with Plain TeX.
15048         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
15049         argument to `ar' is not less than the first.
15051         * pic/pic.y: Allow a comma between elements of the variable list
15052         in the argument to `reset'.
15054         * pic/object.c (arc_object::arc_object): Fix computation of
15055         radius.
15057         * eqn/main.c (main): Add exit(0).
15059 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
15061         * troff/div.c (begin_page): Test no_space_mode after doing the
15062         break, but still push the page ejector cookie before doing the
15063         break.  Also set the next page number after doing the break.
15064         
15065         * xditview/xditview.c (NewFile): Don't set the title and icon name
15066         if this is the first file and its name is `-'.
15067         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
15068         the X75 and X100 devices.
15069         (main): If a device has the XT_OPTION flag set and there's exactly
15070         one file argument, pass the driver -xrm and -title options to set
15071         the icon name and window title to the name of the file.
15073         * troff/env.c (environment_switch): If there was an argument but
15074         it wasn't a valid number or name, then pop an environment but
15075         don't give an error message on underflow.
15077         * troff/number.c (start_number): Correct spelling in error message.
15079         * troff/input.c (token::delimiter): Don't print an error message
15080         if err is false.
15082         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
15083         ParseDrawFunction if dw->display_enable is true.
15085 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
15087         * pic/pic.y: Parse text positioning like normal attributes, so as
15088         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
15089         positioning attribute.
15091 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
15093         * tbl/main.c (process_data): When in state START while reading a
15094         text block, don't change to state MIDDLE if c is a newline.
15096 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
15098         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
15099         so as to avoid shadowing parameter.
15101 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
15103         * tbl/table.c (trim_space): Deleted.
15104         (table::add_entry): Don't call trim_space.
15106 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
15108         * VERSION: Change version to 0.6.
15110         * troff/number.c (parse_expr): Make == work.
15112 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
15114         * man/grog.man: New file.
15115         * man/Makefile: Add grog.n to MAN1PAGES.
15116         * etc/grog.sh: New file.
15117         * etc/Makefile: Install grog.sh as grog.
15119 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
15121         * troff/input.c (token::next): Implement \E.
15123 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
15125         * xditview/tmac.X: Change font translations to match tmac.ps.
15127         * troff/input.c (non_empty_name_warning): Don't give a warning if
15128         `\{' terminates the name.
15130 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
15132         * ps/devps/symbol.diff: New file.
15133         * ps/devps/FontMakefile: Mention symbol.diff.
15135 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
15137         * troff/node.c (font_position): Use get_long_name to read the
15138         external_name.
15140         * troff/env.c (environment_switch): If we get a number that's < 0
15141         or >= NENVIRONMENTS, treat it like a name.
15142         Change NENVIRONMENTS to 10.
15144         * troff/groff.h: Remove definition of FONTS_MAX.
15145         * troff/node.h (class font_family): Make map a pointer instead of
15146         an array. Add a map_size member. Make it a class. Make nm const
15147         and public. Make invalidate_fontno a friend.
15148         * troff/node.c: Define font_table_size. Make font_info a pointer
15149         rather than an array.
15150         (class troff_output_file): Allocate font_position dynamically. Add
15151         nfont_positions member.
15152         (troff_output_file::set_font): Grow font_position if necessary.
15153         (troff_output_file::~troff_output_file): Delete font_position.
15154         (troff_output_file::troff_output_file): Allocate font_position.
15155         (grow_font_table): New function.
15156         (troff_output_file::really_begin_page,
15157         troff_output_file:really_copy_page): Use nfont_positions rather
15158         than FONTS_MAX.
15159         (mount_font_no_translate, mount_style): Call grow_font_table if
15160         necessary.
15161         (font_family::font_family): Allocate map.
15162         (font_family::make_definite): Grow map if necessary. Use
15163         font_table_size instead of FONTS_MAX.
15164         (font_family::~font_family): New function.
15165         (invalidate_fontno): Use font_family::map_size.
15166         (get_fontno, env_space_width, env_half_narrow_space_width,
15167         env_narrow_space_width, symbol_fotno, is_good_fontno,
15168         get_bold_fontno, make_glyph_node): Use font_table_size rather than
15169         FONTS_MAX.
15170         (next_available_font_position): Never return 0.
15172 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
15174         * ps/tmac.ps: Add font translations for compatibility with dpost.
15176 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
15178         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
15179         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
15180         Move definitions baseline_sep, shift_down, column_sep,
15181         matrix_side_sep into...
15182         * eqn/box.c: Add them to param_table.
15183         * eqn/pbox.h: Add declarations to pbox.h.
15185         * troff/input.c (set_string): Cast value to unsigned char *.
15187         * troff/token.h (process_input_stack): Declare it static before
15188         declaring it a friend.
15190 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
15192         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
15193         and bottom.
15194         * dvi/devdvi/EX: Regenerate.
15196         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
15197         transparent.
15199 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
15201         * eqn/lex.c: In defaults_table, make definition of `dot' call
15202         `dot_def'.  Don't explicitly make it roman.  Similarily for other
15203         accents.
15205         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
15206         argument.
15207         (for_input::get, for_input::peek): Use this.
15208         (do_for): Add by_is_multiplicative argument.
15209         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
15210         Change semantic value of optional_by to be a double plus a flag
15211         saying whethet the by clause is multiplicative.
15213         * eqn/lex.c (get_delimited_text): Remember location of start of
15214         definition.  Improve error handling when EOF is encountered.
15216         * lib/font.h: Rename handle_x_command to
15217         handle_unknown_font_command.
15218         * lib/font.c (font::load): Call handle_unknown_font_command for
15219         any unknown command in the font description file.  Don't call
15220         handle_x_command. Include the name of the command in the argv.
15221         Improve message for unknown command after kernpairs or charset
15222         command.
15223         * ps/ps.c (ps_font::handle_x_command): Rename to
15224         handle_unknown_font_command.  Remove message about `x download'
15225         command.  Give error message for wrong number of arguments.
15226         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
15227         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
15228         handle_unknown_font_command. Give an error message for wrong
15229         number of arguments.  Rename design_size to designsize.
15230         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
15231         checksum', `designsize' instead of `design_size'.
15233 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
15235         * eqn/*.[chy]: Change underaccent to uaccent.
15237         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
15238         give it the same precedence as ACCENT.
15239         * eqn/other.c (make_underaccent_box): New function.
15240         * eqn/box.h: Declare it.
15241         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
15242         def_table.
15244 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
15246         * pic/pic.y (reset_all): New function. Called in rule for RESET.
15247         (parse_init): Call reset_all.
15248         (define_variable): When defining scale reset only those
15249         pre-defined variables that are scaled.
15250         (defaults_table): Add `scale' as non-scaled value.
15252         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
15253         together with the text; allow any number of positioning words;
15254         allow center as a positioning word.
15256         * pic/object.c (output::compute_scale): Get picture maximum height
15257         and width from variables called maxpswid and maxpsht.
15258         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
15260 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
15262         * pic/object.c (object_spec::make_text): Multiply textht by number
15263         of text items.
15265         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
15266         occur.
15267         (do_sprintf): New function.
15268         (pic.gperf): Add sprintf token.
15269         (text, sprintf): New rules.
15271         * pic/pic.y: `rand()' with no arguments returns a random number
15272         in the range [0,1).
15274         * pic/pic.y: Allow a bare expression to be an attribute: change
15275         precedences to support this.  Change optional_ordinal rule to
15276         optional_ordinal_last to avoid reduce/reduce conflict.
15277         * pic/object.c (object_spec::object_spec): Initialize direction.
15279         * pic/pic.y: Implement ^ operator meaning exponentiation.
15281         * troff/node.h: Add default argument to mount_font.
15282         * troff/node.c (font_position): Read an optional third argument
15283         giving the external_name.
15284         (mount_font): Add optional argument giving the external_name.
15285         (mount_font_not_translate): Have additional argument giving
15286         external name.  Use this name to load the font.  Pass both names
15287         to font_info::font_info.
15288         (font_info::font_info): Have additional argument giving
15289         external_name.
15290         (class tfont): New member external_name.
15291         (font_info::get_tfont): Use external name to construct tfont_spec.
15293 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
15295         * eqn/lex.c (init_table): Add argument giving device.  Define
15296         name of device to be "1".
15297         (do_ifdef): Counts as true if the argument has been defined with
15298         `define'.
15299         * eqn/main.c (main): Call init_table with device argument. Make
15300         device local to main.
15301         * eqn/eqn.h: Change declaration of init_table. Remove declaration
15302         of device.
15304         * pic/lex.c (get_delimited): Allow text to be delimited by
15305         matching {}s.  Don't recognize ending delimiter within a string.
15307         * troff/input.c (get_delim_name): New function.
15308         (token::next): Implement \C.
15310         * lib/font.c (font::load): Grok ---.  Add an alias for each
15311         character based on its code.
15312         (font::get_code_width): Deleted.
15313         * lib/font.h (class font): Declare font::number_to_index().
15314         Remove declaration of font::get_code_width.
15315         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
15316         to indices of named characters.
15317         (font::number_to_index): New function.
15318         * troff/input.c (font::number_to_index): New function.
15319         (get_charinfo_by_number, charinfo::get_number,
15320         charinfo::set_number): New functions.
15321         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
15322         (token::process, token::description, token::get_char,
15323         token::add_to_node_list, token::operator==): Handle
15324         TOKEN_NUMBERED_CHAR.
15325         * troff/charinfo.h: Declare get_charinfo_by_number,
15326         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
15327         charinfo class.
15328         (charinfo::numbered): New function.
15329         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
15330         * troff/env.h (class environment): Remove declaration of ...
15331         * troff/env.c (environment::make_numbered_char_node): Deleted.
15332         * troff/node.c (make_numbered_node): Deleted.
15333         (class numbered_glyph_node): Remove.
15334         (troff_output_file::put_char_width, troff_output_file::put_char):
15335         Handle numbered chars.
15336         (troff_output_file::numbered_char): Removed.
15337         (tfont::get_code_width): Removed.
15338         (make_glyph_node): Don't search special fonts for numbered
15339         characters.
15340         * troff/node.h: Remove declaration of make_numbered_node.
15341         * driver/input.c (do_file): Handle N command.
15342         * driver/printer.h: Add declaration of ...
15343         * driver/printer.c (printer::set_numbered_char): New function.
15344         * dvi/tfmtodit.c (main): Generate unnamed entries.
15345         * ps/devps/afmtodit: Likewise.
15346         * xditview/xtotroff.c (MapFont): Likewise.
15347         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
15349         * tbl/main.c (process_format): If multiple widths are specified
15350         for a column but all the widths are the same, don't give an error
15351         message.
15353         * tbl/table.c (table::do_row): If the current row is all lines and
15354         the stuff doesn't contains a line, mark the top of the row after
15355         printing stuff before the row.  If the current row is not all
15356         lines and the stuff doesn't contain a line, don't unnecessarily
15357         mark the top of the row before printing the stuff.
15358         
15359 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
15361         * troff/groff.h: Remove MAX_PATH.
15362         * troff/input.c (open_file): Dynamically allocate space for the
15363         path.
15364         (open_mac_file, process_macro_file): Corresponding changes.
15366 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
15368         * troff/node.h (class output_file): Make copy_file pure.  Add
15369         vspace method ifdef COLUMN. Add is_printing method.
15370         * troff/node.c: Add class printing_reg. Add class
15371         real_output_file. Derive other output_file classes from
15372         real_output_file; in these classes rename begin_page to
15373         really_begin_page, print_line to really_print_line, copy_file to
15374         really_copy_file, transparent_char to really_transparent_char.
15375         Move output_file::flush to real_output_file. Add printing member
15376         to class output_file.
15377         * troff/div.h: Remove printing member from top_level_diversion.
15378         Add vspace member function to class diversion ifdef COLUMN. Add
15379         some declarations ifdef COLUMN.
15380         * troff/div.c (top_level_diversion::copy_file,
15381         top_level_diversion::transparent_output,
15382         top_level_diversion::output): Don't test printing member before
15383         output.
15384         * troff/input.c: Handle initial variable_space_request ifdef
15385         COLUMN.
15386         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
15387         but comment it out.
15389 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
15391         * troff/div.c (diversion::need): Make any space forced.  If we
15392         sprung a trap, set truncated_space to minus the distance to the
15393         trap and set needed_space to the amount that was needed.
15394         (top_level_diversion::space): A forced space turns no_space_mode
15395         off.
15396         (class constant_vunits_reg): New class.
15397         (init_div_requests): Implement number registers .trunc and .ne
15398         using constant_vunits_reg.
15399         (class truncated_space_reg): Deleted.   
15401         * troff/div.h: Don't have a no_space_mode member in diversion.
15402         Instead have it in top_level_diversion.
15403         * troff/div.c (diversion::diversion): Don't initialize
15404         no_space_mode.
15405         (top_level_diversion::top_level_diversion): Initialize
15406         no_space_mode.
15407         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
15408         (macro_diversion::output): Don't clear no_space_mode.
15410         * troff/input.c (diverted_space_node::reread): Don't call
15411         environment::do_break.  In fill mode, act like a blank line.
15412         (diverted_copy_file_node::reread): Don't call
15413         environment::do_break.
15415         * troff/div.c (blank_line): New function.
15416         * troff/div.h: Declare it.
15417         * troff/input.c (process_input_stack): Call it.
15419         * troff/div.c (truncated_space_reg::get_string): New function.
15420         (init_div_requests): Bind to .trunc.
15421         (space_request, top_level_diversion::space,
15422         top_level_diversion::output, macro_diversion::space,
15423         macro_diversion::output): Update truncated_space.
15424         (macro_diversion::output): Redo calculations when trap sprung.
15425         (macro_diversion::output, macro_diversion::space): No need for
15426         trap_flag.
15428         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
15429         after truncating post line spacing.
15431 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
15433         * ps/devps/prologue (MF, SF): Make them work even if setfont is
15434         defined as a procedure rather than as an operator.
15436 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
15438         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
15440 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
15442         * troff/div.c (top_level_diversion::output): Merge
15443         output_file::print_line and output_file::end_of_line member
15444         functions.
15445         * troff/div.h (class output_file):
15446         * troff/node.c (troff_output_file::print_line,
15447         troff_output_file::end_of_line, output_file::end_of_line,
15448         ascii_output_file::print_line, suppress_output_file::print_line):
15449         Corresponding changes.  
15451 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
15453         * troff/input.c (token::next): Don't give a warning for `\.'.
15455         * troff/env.c (environment::get_center_lines): New function.
15456         (init_env_requests): Bind number register .ce to it.
15457         * troff/env.h: Declare it.
15458         * tbl/table.c (table::init_output): Define reset macro to restore
15459         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
15460         Then do .ce 0.
15461         (table::print): If center option not given, then imply center
15462         option if SAVED_CENTER_REG > 0.
15464 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
15466         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
15467         Troff.ps from DOWNLOAD.
15468         
15469         * troff/Makefile: Change comment in DEFINES to avoid confusing
15470         System V make.
15472         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
15473         code.  Don't try to catch errors with stopped.
15474         (check_line_lengths): New function.
15475         * ps/devps/prologue (EXEC): Deleted.
15476         (EBEGIN, EEND): New procedures.
15478 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
15480         * troff/input.c: Include request.h before node.h.
15481         * troff/node.c: Likewise.
15482         * troff/env.c: Likewise.
15483         * troff/div.c: Likewise.
15484         * troff/node.h (class special_node): Store argument as a macro
15485         rather than a char *.
15486         * troff/node.c (special_node::special_node, special_node::copy):
15487         Grok this.
15488         (special_node::~special_node): Deleted.
15489         (special_node::tprint): Deleted.
15490         (special_node::tprint_start, special_node::tprint_end,
15491         special_node::tprint_char): New functions.
15492         (troff_output_file::special): Deleted.
15493         (troff_output_file::start_special, troff_output_file::end_special,
15494         troff_output_file::special_char): New functions.
15495         * troff/input.c (special_node::tprint): New function.
15496         (do_special): Use macro not char *.
15497         (do_transparent_macro): Deleted.
15498         (token::next): Don't call do_transparent_macro.
15500         * troff/input.c (token::next): Add 'Y' case.
15501         (do_transparent_macro): New function.
15502         * troff/node.c (troff_output_file::special): Handle newlines with
15503         argument using new continuation convention.
15504         * driver/input.c (get_string): Cope with continuation convention.
15505         (do_file): Don't call skip_line after calling get_string(1).
15506         * ps/ps.c (ps_printer::special, ps_printer::do_import,
15507         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
15508         arg.
15509         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
15510         with +.
15512 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
15514         * troff/input.c (asciify): By default, illegal input characters
15515         should return empty string.
15517         * troff/input.c (copy_file): Handle first page transition like title.
15518         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
15520         * troff/input.c (token::next): Improve error message for EOF after
15521         escape character.
15522         (input_char_description): New function.
15523         (get_char_for_escape_name): Use input_char_description.
15524         (token::next): Warn about unrecognized escape sequences.
15525         (warning_table): Add WARN_ESCAPE.
15526         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
15527         accordingly.
15529         * troff/token.h: Remove declaration of process_input_stack.
15531         * troff/input.c: Remove declaration of init_hyphen_requests.
15532         * troff/request.h: Correct spelling in declaration of same.
15534         * troff/input.c (token::next): Check whether escape_char is 0.
15536 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
15538         * groff.c (main, usage, help): Implement -P and -L options.
15539         * groff.sh: Likewise.
15541         * troff/input.c (token::next): Use some gotos to avoid code
15542         duplication.
15544         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
15545         Avoid calling symbol::symbol if name empty.
15547 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
15549         * troff/input.c (init_input_requests): Make \n(.x return the major
15550         version number and \n(.y return the minor version number.
15551         * troff/Makefile: Construct file majorminor.c defining
15552         major_version and minor_version automatically from ../VERSION.
15554         * troff/node.c (class glyph_node): Make operator new and operator
15555         delete public.
15556         (class ligature_node): Similarily.
15558         * troff/input.c (operator==(const macro &, const macro &)): New
15559         function.
15560         (non_interpreted_node::same): Use this.
15561         (string_iterator::string_iterator): Make macro& argument const.
15563         * troff/input.c (input_iterator::get): New function. Don't make
15564         asciify_macro or class non_interpreted_node friends of class
15565         input_iterator.
15566         (non_interpreted_node::interpret): Use input_iterator::get.
15567         (asciify_macro): Likewise.
15569         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
15570         ~non_interpreted_node): Deleted.
15571         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
15572         Deleted.
15574         * troff/symbol.h: Make all symbol member functions const.
15576         * lib/strtol.c: New file.
15577         * lib/Makefile: Add strtol.c.
15578         * Makefile: Define STRTOL as strtol.o to include strtol in
15579         libgroff.a.
15581 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
15583         * pic/troff.c (troff_output::simple_circle): Divide by scale.
15585 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
15587         * troff/input.c (do_special): Use input_level.
15589         * troff/token.h (TOKEN_BACKSPACE): New token.
15590         (token::backspace): New function.
15591         * troff/input.c (token::description, token::next, token::process):
15592         Grok TOKEN_BACKSPACE.
15593         (do_special): Turn TOKEN_BACKSPACE back into \b.
15595         * troff/token.h (token::leader): New function.
15596         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
15598         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
15600         * troff/input.c (do_special): Use token::description in error
15601         message.
15603 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
15605         * troff/input.c (decode_args): Combine quoted and
15606         quote_input_level variables. Make it a for (;;) loop.
15608         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
15610         * troff/input.c (read_long_escape_name): The test for whether to
15611         expand buffer was off by 1.
15612         (read_string): Similarily.
15614 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
15616         * troff/input.c: Use `const int' rather than `static const int'.
15618         * troff/div.h (diversion::copy_file): Declare as pure virtual.
15619         (macro_diversion::copy_file): New function.
15620         * troff/node.h: New class diverted_copy_file_node.
15621         * troff/node.c: Implement it.
15622         * troff/input.c (copy_file): Use diversion::copy_file. Handle
15623         first page transition by pushing a diverted_copy_file_node.
15624         * troff/input.c (token::next, process_input_stack): Don't handle
15625         COPY_FILE_REQUEST.
15627 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
15629         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
15630         whether space widths need adjusting.
15632         * troff/charinfo.h: Generalize translated_to_space to
15633         special_translation so as to allow translation to \&.
15634         * troff/input.c (translate): Allow translation to \&.
15635         (charinfo::*): Corresponding changes.
15636         * troff/node.c (make_node, node::add_char): Corresponding changes.
15637         * troff/node.h (dummy_node::dummy_node): Allow optional first
15638         argument.
15640         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
15641         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
15642         TOKEN_REQUEST.
15643         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
15644         TOKEN_REQUEST with an argument of TITLE_REQUEST.
15645         (token::process): Grok that.
15646         * troff/input.c (copy_file): Handle first page transition like
15647         title by pushing a COPY_FILE_REQUEST cookie.
15648         (token::next, process_input_stack): Grok that.
15649         * troff/node.h (output_file::copy_file): Add x and y arguments.
15650         Make it non-pure.
15651         * troff/div.c (top_level_diversion::copy_file): Supply them.
15652         * troff/node.c (troff_output_file::copy_file): Add x and y
15653         arguments; moveto specified position.  Invalidate font_position
15654         array after copying file.
15655         (output_file::copy_file): New function.
15656         (suppressed_output_file::copy_file, ascii_output::copy_file):
15657         Removed.
15658         * troff/input.c (transparent_file): New function.
15659         (init_input_requests): Bind to "trf".
15660         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
15661         (process_input_stack): Likewise.
15663         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
15665         * troff/node.c (init_node_requests): New number registers .kern
15666         pointing to global_kern_mode, and .lg pointing to
15667         global_ligature_mode.
15669         * troff/node.c (ligature): Don't change it if we get a bad
15670         integer.
15672         * troff/input.c (do_define_string): Don't strip tabs.
15674         * troff/input.c (asciify_macro): Make the string_iterator auto.
15676         * troff/node.c (init_font_requests): Rename to...
15677         (init_node_requests):
15678         * troff/node.h: Change declaration.
15679         * troff/input.c (main): Change call.
15681         * troff/input.c (node::reread, diverted_space_node::reread): New
15682         methods.
15683         (process_input_stack): Call reread rather than
15684         get_diverted_space_node.
15685         * troff/node.c (node::get_diverted_space_node,
15686         diverted_space_node::get_diverted_space_node): Removed.
15687         * troff/node.h: Declare reread methods instead of
15688         get_diverted_space_node methods. Make `n' member private.
15689         * troff/input.c: (token::diverted_space): Removed.
15690         * troff/token.h: Removed declaration.
15691         
15693 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
15695         * eqn/script.c (script_box::compute_metrics): Don't let
15696         SUP_RAISE_FORMAT become negative.
15698         * tbl/table.c (table::do_row): Entries that don't end in the
15699         this row shouldn't make the row non-blank.
15700         
15701         * tbl/table.c (table::make_columns_equal): Only set the width of
15702         columns which are marked as equal.
15703         
15704         * tbl/main.c (process_data): Before issuing excess data error,
15705         if last character was a newline unget it; then get it again after
15706         the error.  Also include the contents of the entry in the message.
15708         * groff.c: New file.
15709         * Makefile: Build groff from groff.c.  Make it possible to use
15710         either groff.sh or groff.c as groff.
15711         * Makefile.bd: Similarily.
15713 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
15715         * groff.sh: Don't delay expansion of $@ in assignment to files.
15716         Remove occurrences of \".
15718 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
15720         * all Makefiles: Simplify and rearrange.
15722         * Makefile: Handle fmod like malloc.
15723         * lib/Makefile: Similarily.
15724         * lib/fmod.c: Remove #ifdef NEED_FMOD.
15726         * Makefile: Rename OPTIMISE to OPTIMIZE.
15728         * groff.sh: Remove assignment to PATH.
15729         * Makefile: Remove SHPATH variable.
15730         * Makefile.bd: Similarily.
15732         * groff.sh: Add -V option to print the pipeline instead of
15733         executing it.
15735 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
15737         * lib/font.c: Split off file searching into ...
15738         * lib/fontfile.c: New file.
15740         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
15742 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
15744         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
15745         Also change misleading comment.
15746         (table::do_vspan): Change similarily misleading comment.
15747         * tbl/main.c (process_data): A format row with an explicit `s'
15748         uses up a data line, even if all the other columns are `_' or `='.
15750         * troff/input.c (token::description): Fix description of
15751         TOKEN_DUMMY and TOKEN_EMPTY.
15753 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
15755         * groff.sh: Fix description of -Z in help message.
15757 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
15759         * pic/object.c (object_spec::make_object): Allow negative and zero
15760         line thicknesses.
15761         * pic/pic.y: Give linethick default value of -1.0.
15762         * pic/troff.c (troff_output::troff_output): Initialize
15763         last_line_thickness to BAD_THICKNESS.
15764         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
15765         (troff_output::line_thickness): Canonicalize negative thicknesses
15766         to RELATIVE_THICKNESS.
15767         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
15768         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
15769         to -1.0.
15770         (tex_output::start_picture): Set pen_size to -2.0.
15772         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
15773         0, then use 0 linewidth.
15774         (ps_printer::ps_printer): Initialize line_thickness to -1.
15776         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
15778         * ps/devps/symbolchars: Remove `or'.
15779         * ps/tmac.ps: Implement \(or with .char.
15781         * ps/devps/symbolchars: Move most characters into textmap.
15782         * ps/devps/textmap: Add names for troff bracket characters. Remove
15783         ul, ru, br, bv.
15785         * ps/devps/TSymbol.ps: Removed.
15786         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
15787         * ps/tmac.ps: Do with .char what TSymbol did.
15788         * ps/devps/download: Remove TSymbol.
15790         * ps/devps/T: Removed.
15791         * ps/devps/Troff.ps: Removed.
15792         * ps/devps/Troff.afm: Removed.
15793         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
15794         * ps/devps/download: Remove Troff.
15795         * ps/devps/FontMakefile: Remove T target.
15796         * ps/devps/DESC-A4: Remove T from font list.
15797         * ps/devps/DESC-letter: Likewise.
15799         * troff/input.c (macro_to_node): Rename to ...
15800         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
15801         character's definition while processing it.
15802         * troff/node.c (node::add_char, make_node): Change calls to
15803         macro_to_node accordingly.
15805         * troff/input.c (token::next): Translate \_ to \(ul.
15807         * tty/devascii/R.proto: Add `|'.
15808         * tty/devlatin1/R.proto: Likewise.
15810 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
15812         * man: Put the version number in all the man pages.
15814 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
15816         * Makefile.bd: New file.
15817         * README.bd: New file.
15819         * VERSION: New file.
15820         * lib/version.c: Removed.
15821         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
15822         in clean target.
15824         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
15825         environment variable.
15827         * all Makefiles: Split install target into install.bin for
15828         binaries, and install.nobin for everything else.
15829         * Makefile: Add bindist target.
15831         * man/afmtodit.man: New file.
15832         * man/Makefile: Add afmtodit.n to MAN1PAGES.
15833         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
15834         in BINDIR.
15835         * ps/Makefile: Pass BINDIR to make install in devps.
15837         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
15838         the space character.
15840         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
15842 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
15844         * ps/ps.c: Redo font downloading.
15845         * ps/devps/download: New file.
15846         * ps/devps/Makefile: Add download to DEVICEFILES.
15847         * ps/devps/afmtodit: Remove -d option.
15848         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
15849         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
15850         * ps/devps/zapfdr.ps: Likewise.
15851         * ps/devps/TSymbol.ps: Likewise.
15853 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
15855         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
15857 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
15859         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
15860         then strip the first line if it starts with %.
15861         * Makefile: Add a comment about this.
15863         * man/tfmtodit.man: New file.
15864         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
15865         * dvi/Makefile: Install tfmtodit in BINDIR.
15867         * dvi/tfmtodit.c (usage): Mention -v option.
15869 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
15871         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
15872         * troff/node.c (troff_output_file::transparent_char): Don't call
15873         flush_tbuf.
15875         * eqn: Add check_tabs method to most box classes.
15876         * eqn/box.c (box::top_level): Call check_tabs.
15878         * eqn/script.c (script_box::output): Use \Z.
15879         * eqn/limit.c (limit_box::output): Use \Z.
15881         * eqn/box.c (box::top_level): Use itoa.
15883 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
15885         * dvi/tmac.dvi: Add font translations for CR, C, TT.
15886         * dvi/devdvi/Makefile: Don't make links to CW.
15888         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
15889         HX, HD.
15890         * xditview/tmac.X: Likewise.
15892         * troff/node.c: Add font translation feature.
15893         (get_font_translation): New function.
15894         (symbol_fontno): Translate the font name.
15895         (mount_font_no_translate): Rename to mount_font to this.
15896         (mount_font): New function.
15897         (font_family::make_definite): Call mount_font_no_translate instead
15898         of mount_font.
15899         (mount_style): Translate the font name.
15900         (font_translate): New function.
15901         (init_font_requests): Bind "ftr" to font_translate.
15903         * ps/devps/prologue (SN): New procedure that rounds a position to
15904         the nearest (pixel + (.25,.25)).
15905         (DL): Use SN to round endpoints.
15907         * lib/version.c: Changed version to 0.5.
15909 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
15911         * Makefile: Move definition of PAGE to the very beginning, so that
15912         people are less likely to miss it.
15914 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
15916         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
15918         * troff/env.c (environment::choose_breakpoint): Make `can't find
15919         breakpoint' error a warning of type WARN_BREAK.  Change message to
15920         `can't break line'.
15921         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
15922         code 040000.
15923         * troff/input.c: Add WARN_BREAK to warning_table.  Include
15924         WARN_BREAK in DEFAULT_WARNING_MASK.
15926         * tty/tmac.tty: Add definition of \(+-.
15928         * groff.sh: Remove `--' option to set command.
15930         * dvi/devdvi/texsy.map: Remove duplicate md entry.
15932         * ps/devps/eqnchar: Better definition of cdot using md.
15933         * dvi/devdvi/eqnchar:  Likewise.
15934         * xditview/devX100/eqnchar:  Likewise.
15935         * xditview/devX75/eqnchar: Likewise.
15936         * eqn/lex.c: Add definition of cdot.
15938 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
15940         * troff/input.c (get_optional_char): New function.
15941         * troff/input.c (set_page_character): Use get_optional_char(),
15942         rather than has_arg() and tok.get_char(1).
15943         * troff/env.c (tab_character, leader_character, hyphen_char,
15944         field_characters): Likewise.
15945         (margin_character): Likewise.  Also always delete the
15946         margin_character_node.
15948         * troff/input.c (token::get_char): Use token::description.
15950         * troff/input.c (has_arg): Don't skip over tab and \}.
15951         * troff/number.c (start_number): Give a warning if the number
15952         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
15954 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
15956         * troff/input.c (empty_name_warning, non_empty_name_warning): New
15957         functions.
15958         (get_name, get_long_name): Use these.  Rename `warn' argument to
15959         `required'.
15961         * troff/node.c (get_fontno): Test that the symbol is not null.
15963         * troff/input.c (token::description): New function.
15964         * troff/number.c (parse_term): Use token::description in `numeric
15965         expression expected' message.
15966         * troff/groff.h: Add WARN_MISSING.
15967         * troff/number.c (start_number): New function.
15968         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
15969         get_incr_number): Use start_number().
15970         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
15971         default.
15972         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
15973         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
15974         token::descripion.
15975         * troff/input.c (token::get_char): Use WARN_MISSING.
15976         * troff/input.c (token::delimiter): Use token::description.
15977         * troff/env.c (environment_switch): Back out Aug 3 change.
15978         * troff/input.c (has_arg): Skip over \}s and tabs but give a
15979         warning.
15980         * troff/token.h (token::tab): New function.
15981         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
15982         * troff/reg.c (alter_format): Likewise.
15983         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
15985 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
15987         * troff (most files): Redo warnings. Divide warnings into various
15988         categories; warning() has an additional first argument indicating
15989         the category it falls into.
15990         * troff/input.c (main): -w now takes an argument. New option -W.
15991         (enable_warning, disable_warning): New functions.
15993         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
15994         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
15996 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
15998         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
15999         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
16000         * xditview/devX75/eqnchar: Likewise.
16001         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
16003         * eqn/other.c: When bar or over applies to a single character
16004         don't produce an overline_box or an underline_box. Instead produce
16005         an accent_box or an underaccent_box, with the accent a line
16006         whose width is accent_width.  New classes underaccent_box,
16007         overline_char_box and underline_char_box.
16008         * eqn/box.h: Move overline_box, underline_box, accent_box class
16009         declarations into eqn/other.c. Add declarations of
16010         make_underline_box, make_overline_box, make_accent_box.
16011         * eqn/eqn.y: Call make_overline_box, make_underline_box
16012         make_accent_box instead of constructors.
16013         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
16015         * eqn/other.c: Add accent_box::~accent_box.
16016         * eqn/box.h: Declare it.
16018         * groff.sh: With -Tps, use eqn -D.
16020         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
16021         rather than \l.
16022         (underline_box::output): Similarily.
16023         (accent_box::output): Use \Z.
16025         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
16026         bit smaller.)
16028 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
16030         * troff/div.c (top_level_diversion::transparent_output(unsigned
16031         char)): Use asciify.
16032         * troff/input.c (asciify): Don't make it static.
16033         * troff/token.h (asciify): Declare it.
16034         
16035         * troff/input.c (get_name, get_long_name, token::get_char,
16036         token::delimiter): Add an extra default argument which says
16037         whether a warning should be printed.
16038         * troff: Pass a non-zero argument to one of these rather than
16039         printing a warning directly.
16041 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
16043         * troff: Consistently use symbol::is_null.
16045         * troff/dictionary.h: Move some inline functions into
16046         dictionary.c.
16048         * troff/request.h: Move inline functions into input.c.
16049         (request_or_macro::invoke): Make it pure.
16051         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
16052         * troff/input.c (init_input_requests): Use class constant_int_reg.
16053         (class compatible_reg): Deleted.
16054         * troff/div.c (init_div_requests): Use class constant_int_reg.
16055         (class last_post_line_extra_space_reg): Deleted.
16057         * troff/env.c (tab_character): Don't change the tab character if
16058         we get an invalid argument.
16059         (hyphen_char): Similarily.
16061         * troff/reg.c (alter_format): Check that nm is not null.
16063         * Makefile, groff.sh: Make it possible to customize the commands
16064         used for printing PostScript and dvi files. Also make it possible
16065         to customize the path used by groff.sh.
16067         * eqn/eqn.y: Make `left' right associative.
16069 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
16071         * pic/pic.h: Added definition of M_SQRT2 for those systems that
16072         don't have it.
16074         * pic/pic.h: Removed definition of INT_MAX.
16076         * troff/node.c (italic_corrected_node::vertical_extent): Omit
16077         `return'.
16079         * troff/input.c (token::next):  Handle \R like \n.
16081 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
16083         * ps/tmac.pc (PSPIC): Simplify.
16085         * troff/env.c (tab_stops::to_string):
16086         * pic/pic.y (object_type_name):
16087         * pic/troff.c (simple_output::line):
16088         * pic/tex.c (tex_output::spline):
16089         * pic/object.c (object_spec::make_object):
16090         * tbl/main.c (process_data):  Add cases to switch statements to
16091         avoid cfront warnings. (Some of these are spurious, since the
16092         switch already has a default case.)
16094         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
16095         `ps-'.  Don't test systat; instead check number of arguments to
16096         ps-bb.
16098 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
16100         * macros/tmac.e: Do not decrease the page offset by 0.5i.
16102         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
16103         Unlink the file as soon as we have opened it, so that we don't
16104         have to bother with signal handlers.
16105         (handler): Deleted.
16106         (fatal_error_exit): Deleted.
16107         (main): Don't call signal.
16109         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
16110         can be ignored.
16111         * dvi/devdvi/Makefile: Use the -k option with S and MI.
16113         * pic/pic.y:  If there is a label, or an nth construction before
16114         the first `.' in the argument to `with', ignore it and generate a
16115         warning.
16116         * pic/lex.c (lex_warning): New function.
16118         * tbl/table.c (table::init_output): In section keep and release
16119         macro, use 0 indent when diverting and the correct indent when
16120         rereading.
16122         * troff/input.c (interpolate_number_format): Do not interpolate
16123         anything if the number register is not defined.
16125         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
16127 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
16129         * ps/devps/prologue (PICTURE): Set components of graphics state to
16130         their default values.
16132         * ps/devps/text.enc: Add trademark
16133         * ps/devps/textmap: Add names for club, spade, heart, diamond,
16134         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
16135         * ps/devps/symbolchars: Add names for summation and product.
16137         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
16138         suchthat. Add pp. Add upper-case letters.
16140         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
16141         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
16142         Upsilon.
16144         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
16145         rA (right angle bracket) to ra.  Introduce names for double-headed
16146         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
16147         * ps/devps/textmap: Likewise for ps device.
16148         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
16149         * tty/devascii/R.proto: Rename lA to la and rA to ra.
16150         * tty/devascii/R.proto: Likewise.
16151         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
16152         \(uA, \(dA.
16153         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
16155         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
16157         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
16158         def_table.
16160 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
16162         * troff/div.c (when_request): Use symbol::is_null rather than
16163         has_arg to determine whether we have an argument.
16164         (change_trap): Remove the trap if we get an invalid number. Give
16165         an error if we don't get at least the macro name.
16166         (diversion_trap): Remove trap if we get an invalid name or number.
16168         * troff/env.c (environment_switch): Pop if we get an invalid
16169         symbol or numeric expression.
16171         * troff/input.c (do_define_macro):  If EOF is encoutered while
16172         defining the macro, do tok.next() before returning.
16174         * troff/token.h (has_arg): Move definition from here, to ...
16175         * troff/input.c (has_arg): ... here
16177         * troff/env.c (space_size): Do nothing if we get an invalid argument.
16178         * troff/input.c (shift): Likewise.
16180         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
16181         for `.c'.
16183         * pic/troff.c (troff_output::start_picture):  Comment out calls to
16184         `..'.
16186         * eqn/main.c (do_file): Subtract 1 from current_lineno if
16187         interpret_lf_args succeeds.
16189         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
16190         \\.  This avoids problems with \$N.
16192         * groff.sh: Pass -C to preprocessors.
16194         * lib/lf.c (interpret_lf_args):  Be more flexible.
16196         * tbl/main.c (main): Add -C option.
16197         (table_input::get): Do not recognize TE if followed by character
16198         other than a space or newline unless -C option given.
16199         (process_input_file): Likewise for lf, TS.
16200         (process_data): Likewise for lf in text blocks.
16202         * eqn/main.c (main): Add -C option.
16203         (do_file): Don't recognize EQ, EN or lf if followed by character
16204         other than space or newline unless -C option given.
16205         * eqn/lex.c (file_input::read_line): Similarily.
16206         * eqn/eqn.h: Declare compatible_flag.
16208         * etc/soelim.c (main): Add -C option.
16209         (interpret_lf_args): Use version in libgroff.
16210         (do_file):
16212         * pic/main.c (main): Add -C option, which sets compatible_flag.
16213         (top_input::get), (top_input::peek):  If -C option not given,
16214         do not recognize .PS/.PE/.PF/.lf if followed by a character
16215         other than space or newline.
16216         * pic/lex.c (file_input::read_line): Similarily.
16217         * pic/pic.h: Add declaration of compatible_flag.
16219 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
16221         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
16223         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
16224         derived from node.  New class space_char_hmotion_node.
16225         * troff/input.c (asciify_macro): New function.
16226         * troff/input.c (init_input_requests): New request `asciify' bound
16227         to asciify_macro.
16228         * macros/mm.diff: New file.
16229         * Makefile:  In install.mm target use `patch' to apply
16230         macros/mm.diff.
16232         * troff/input.c (macro::print_size): Just print the size in bytes.
16234         * troff/div.c (return_request): Correct the argument
16235         interpretation.
16237 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
16239         * troff/node.h (class composite_node): Add sz member.
16240         * troff/node.c (composite_node::size): Return sz.
16241         * troff/input.c (macro_to_node):  Use the initial size in the
16242         environment as the size of the composite_node.
16244         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
16245         default.
16247 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
16249         * troff/div.c (change_trap): If we get a bad number expression,
16250         do nothing.
16252 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
16254         * lib/matherr.c (matherr): Define this only if math.h defines
16255         TLOSS.
16257 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
16259         * troff/div.c (macro_diversion::distance_to_next_trap): If there
16260         no diversion trap return vunits(INT_MAX - vresolution).
16262 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
16264         * troff/input.c (do_zero_width): New implementation that doesn't
16265         use a temporary environment. Use instead:
16266         (token::add_to_node_list): New function.
16267         * troff/env.c (environment::get_prev_char_height),
16268         (environment::get_prev_char_height),
16269         (environment::get_prev_char_skew): New functions.
16270         (environment::get_prev_char): New function.
16271         (environment::get_prev_char_width): Change to use get_prev_char.
16272         (init_env_request): Implement new registers .cht, .cdp, .csk.
16273         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
16274         \Z being processed in a separate environment.
16276 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
16278         * tbl/table.c: Removed TABLE_BOTTOM_REG.
16280         * tbl/table.c (table::init_output): In the section release macro,
16281         give a warning message if the section won't fit on one page.
16283         * tbl/table.c (table::do_top): Emit table keep only if table is
16284         boxed.
16285         (table::do_bottom): Likewise for table release.
16286         (table::table), (table::add_vertical_rule):  Remove reference to
16287         keep member.
16288         * tbl/table.h: Remove keep member.
16290         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
16291         SECTION_RELEASE_MACRO, if there's not enough space before the next
16292         trap to output the diversion, call T# ourselves, set
16293         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
16294         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
16295         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
16296         vertical position and return to it before turning traps on again.
16297         
16298 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
16300         * troff/node.c, troff/node.h: In classes derived from node,
16301         replace prev_char_width method by last_char_node method.
16302         * troff/env.c (environment::get_prev_char_width): Use
16303         node::last_char_node rather than node::get_prev_char_width.
16305         * Makefile: Added comment about -fno-inline on 68030-based
16306         Apollos.
16308         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
16309         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
16310         expressions using sizeof to int.
16311         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
16313         * macros/tmac.e (TS):  Don't move @f back past the current
16314         position.
16316 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
16318         * ps/ps.c (main): Buffer stderr.
16319         * dvi/dvi.c (main): Likewise.
16320         * tty/tty.c (main): Likewise.
16322         * ps/ps.c (ps_printer::do_import): Improve error handling.
16324         * troff/input.c (abort_request): Use asciify.
16326         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
16327         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
16328         type of first argument int rather than char.  This works around a
16329         bug on the 68030 based Apollo using g++ 1.37.1.
16331         * tbl/table.h (class table): Add `keep' member.
16332         * tbl/table.c (table::table): Initialize `keep'.
16333         (table::add_vertical_rule): Set `keep' to 1.
16334         (table::do_top): Only emit table keep macro is `keep' is non-zero.
16335         (table::do_bottom): Likewise for table release macro.
16336         (table::do_row): Emit section keep macro even if the row is 0.
16338 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
16340         * macros/tmac.e (@C): Preserve the font family across the change
16341         in environments.
16343 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
16345         * lib/font.c: Initialize font::hor and font::vert to 1.
16346         (font::load_desc): Check the values of font::hor and font::vert.
16348         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
16349         be included in a C compilation.
16350         (iftoa): Use INT_DIGITS. Include lib.h.
16351         (itoa): Likewise.
16352         (as_string): Likewise.
16353         * tbl/table.c: Removed definition of INT_DIGITS.
16354         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
16355         * troff/input.c (input_input_requests): Likewise.
16356         * ps/ps.c (make_encoding_name): Likewise.
16357         (ps_printer::set_style): Likewise.
16358         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
16360         * tty/devascii/R.proto: Map fm onto '.
16361         * tty/devlatin1/R.proto: Likewise.
16363 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
16365         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
16366         argument to \w is at a different input level.
16368         * tbl/table.c (table::init_output): Define a new macro
16369         REPEATED_VPT_MACRO, like vpt but if in a diversion also
16370         transparently outputs itself.
16371         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
16372         vpt.
16373         (table::do_row): Likewise.
16375         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
16376         TRANSPARENT_STRING_NAME.
16378         * tbl/table.c (table::init_output): In the table release macro
16379         print an error message and don't produce any output if after
16380         issuing the need request the table still will not fit.  Also
16381         remove the diversion after bringing it back.
16383         * tbl/table.c (table::init_output): Define a new macro
16384         REPEATED_MARK_MACRO, like mk but if in a diversion also
16385         transparently outputs itself.
16386         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
16387         is necessary because .TH might not call .T#.
16388         (table::do_top): Likewise TOP_REG.
16389         (table::define_bottom_macro): If TOP_REG is no longer valid, use
16390         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
16391         table header might contain just the two top rules.
16393 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
16395         * troff/div.c: Implement new request `ptr' to print all traps.
16397         * troff/env.c (init_env_requests): Implement `.tabs' reg with
16398         init_string_env_reg.
16399         * troff/env.c (class tab_reg): Deleted.
16401 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
16403         * troff/div.c: New number register .pn returns the number of the
16404         next page as set by the pn request.
16406         * macros/tmac.an: Redid headers and footers.  Number each manual
16407         entry starting from 1 unless \nC is > 0, like Sun.  Added an
16408         optional 5th argument to .TH which specifies the manual name and
16409         appears in the center of the header.  Understand the X, P and D
16410         registers like Sun.
16412 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
16414         * troff/env.c (init_env_requests): New number register `.lt' to
16415         return the title length.
16417         * troff/node.h (class transparent_dummy_node): New class.
16418         * troff/node.c (class transparent_dummy_node): Provide member
16419         functions. 
16420         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
16421         than a dummy_node.
16423         * troff/input.c (token::next): New escape sequence \).
16424         * troff/input.c (get_copy): Recognize \) in copy mode.
16426         * troff/input.c (input_stack::clear): New function.
16427         * troff/input.c (exit_request): Use input_stack::clear.
16429         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
16430         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
16432         * troff/env.c: Move set_page_character to input.c.  Move
16433         page_character to input.c also.
16434         * troff/env.c (title): Split off the reading of the parts of the
16435         title into read_title_parts.
16436         * troff/input.c (read_title_parts): New function.  Check the
16437         input_level when testing whether a token matches the delimiter.
16439         * troff/input.c (exit_request): New function.
16440         * troff/input.c (init_input_requests): Bind ex request to
16441         exit_request rather than exit_groff.
16443         * troff/input.c (exit_groff): Call tok.next() before
16444         process_input_stack().
16446 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
16448         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
16449         * troff/env.h: ditto.
16450         * troff/input.c: ditto.
16452         * troff/env.c (environment::is_empty): Test pending_lines.
16454         * troff/env.c (environment::have_pending_lines): Removed.
16456         * troff/input.c: Add request to flush pending lines from the
16457         environment.
16459         * troff/env.c, troff/env.h: Add automatic widow control feature.
16461         * troff/input.c (exit_groff):  Do process_input_stack() after
16462         do_break() but before setting exit_flag to 2.
16464         * troff/input.c: Remove FLUSH_PENDING_LINES and
16465         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
16466         environment after END_TRAP token seen, but only if there aren't
16467         any more traps still unfinished.
16468         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
16470 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
16472         * troff/env.c: Rename the `retain_size' member of class
16473         pending_output_line to `no_fill'.
16475         * troff/env.c (title): When the line is output, make the
16476         retain_size argument !fill.
16478         * troff/node.h: Add `hyphenated' member to struct breakpoint.
16479         * troff/node.c (space_node::get_breakpoints),
16480         (dbreak_node::get_breakpoints):  Fill this in.
16481         * troff/env.c:  Allow specification of maximum number of
16482         consecutive hyphenated lines.
16484         * troff/env.c (environment::is_empty): Add test for !current_tab.
16486 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
16488         * troff/env.c (environment::hyphenate_line): Don't completely give
16489         up if the word is not to be hyphenated; continue so that breaks
16490         can be made at break_char_node's.
16492         * lib/lib.h: Only define INT_MAX if it's not already defined;
16493         undef INT_MIN if it's already defined.
16495         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
16497         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
16498         This works around a bug in AT&T C++ 2.0 used with an ANSI C
16499         compiler.
16500         
16501         * macros/tmac.an (an-header): Set no-space mode.
16503         * macros/tmac.an (TH): Start a new page if necessary.
16505         * Started using ChangeLog at version 0.4.
16507 Local Variables:
16508 version-control: never
16509 coding: latin-1
16510 End: